@webappwiz/arbor 0.0.29 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -10
- package/dev.d.ts +3 -2
- package/index.js +374 -378
- package/package.json +2 -2
- package/snapshot.d.ts +5 -1
- package/todo.d.ts +41 -7
package/index.js
CHANGED
|
@@ -222,10 +222,10 @@ function checkPlan(text, { task, escalated = false }) {
|
|
|
222
222
|
const numbers = open.map((asked) => asked.number).join(", ");
|
|
223
223
|
problems.push(`## Blocked has open questions ${numbers}: ask the reviewer before merging`);
|
|
224
224
|
}
|
|
225
|
-
const known = SECTIONS.map((
|
|
226
|
-
for (const
|
|
227
|
-
if (
|
|
228
|
-
problems.push(`unexpected section "## ${
|
|
225
|
+
const known = SECTIONS.map((section) => section.toLowerCase());
|
|
226
|
+
for (const section of md.sections) {
|
|
227
|
+
if (section.level === 2 && !known.includes(section.heading.toLowerCase())) {
|
|
228
|
+
problems.push(`unexpected section "## ${section.heading}" (line ${section.line}): keep to ${SECTIONS.join(", ")}`);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
return problems;
|
|
@@ -313,10 +313,10 @@ function goal(todos) {
|
|
|
313
313
|
|
|
314
314
|
`);
|
|
315
315
|
}
|
|
316
|
-
function PLAN(task,
|
|
316
|
+
function PLAN(task, goal) {
|
|
317
317
|
const writer = new MarkdownWriter().heading(1, task).heading(2, "Goal");
|
|
318
|
-
if (
|
|
319
|
-
writer.text(
|
|
318
|
+
if (goal !== null) {
|
|
319
|
+
writer.text(goal);
|
|
320
320
|
}
|
|
321
321
|
return writer.heading(2, "Files").heading(2, "Next").checklist("fill in Goal and list the steps here as `- [ ]` items").toString();
|
|
322
322
|
}
|
|
@@ -469,7 +469,8 @@ function diff(details) {
|
|
|
469
469
|
async function snapshot({
|
|
470
470
|
service,
|
|
471
471
|
todos,
|
|
472
|
-
fs
|
|
472
|
+
fs,
|
|
473
|
+
home
|
|
473
474
|
}) {
|
|
474
475
|
const details = new TaskDetails({ fs });
|
|
475
476
|
const tasks = [];
|
|
@@ -478,6 +479,7 @@ async function snapshot({
|
|
|
478
479
|
}
|
|
479
480
|
return {
|
|
480
481
|
repo: basename(service.git.root),
|
|
482
|
+
path: tilde(service.git.root, home),
|
|
481
483
|
todoStalenessMs: service.config.todoStalenessMs,
|
|
482
484
|
todos: (await todos.all()).map((todo) => todo.state),
|
|
483
485
|
tasks
|
|
@@ -500,6 +502,15 @@ function fingerprint({ todos, tasks }) {
|
|
|
500
502
|
])
|
|
501
503
|
]);
|
|
502
504
|
}
|
|
505
|
+
function tilde(root, home) {
|
|
506
|
+
if (!home) {
|
|
507
|
+
return root;
|
|
508
|
+
}
|
|
509
|
+
if (root === home) {
|
|
510
|
+
return "~";
|
|
511
|
+
}
|
|
512
|
+
return root.startsWith(`${home}/`) ? `~${root.slice(home.length)}` : root;
|
|
513
|
+
}
|
|
503
514
|
|
|
504
515
|
// dev.ts
|
|
505
516
|
var DEFAULT_PORT = 4269;
|
|
@@ -525,12 +536,14 @@ var STATUS = {
|
|
|
525
536
|
async function dev({
|
|
526
537
|
service,
|
|
527
538
|
fs,
|
|
539
|
+
ps,
|
|
528
540
|
journal,
|
|
529
541
|
todos,
|
|
530
542
|
log,
|
|
531
543
|
assets
|
|
532
544
|
}, { ports = devPorts(DEFAULT_PORT), hosts = [] } = {}) {
|
|
533
|
-
const
|
|
545
|
+
const home = ps.env("HOME");
|
|
546
|
+
const read = () => snapshot({ service, todos, fs, home });
|
|
534
547
|
const allowed = new Set([...LOCAL_HOSTS, ...hosts]);
|
|
535
548
|
const open = new Set;
|
|
536
549
|
const encoder = new TextEncoder;
|
|
@@ -627,6 +640,7 @@ async function dev({
|
|
|
627
640
|
await tick();
|
|
628
641
|
return Response.json(todo.state);
|
|
629
642
|
};
|
|
643
|
+
const tagsIn = (form) => String(form.get("tags") ?? "").split(",").map((tag) => tag.trim()).filter(Boolean);
|
|
630
644
|
const positionIn = (form) => form.has("position") ? Number(form.get("position")) : undefined;
|
|
631
645
|
const todoAt = async (request) => {
|
|
632
646
|
const raw = new URL(request.url).pathname.split("/")[3] ?? "";
|
|
@@ -644,7 +658,8 @@ async function dev({
|
|
|
644
658
|
text: form.has("text") ? String(form.get("text")) : undefined,
|
|
645
659
|
position: positionIn(form),
|
|
646
660
|
files: await uploads(form),
|
|
647
|
-
keep: form.getAll("keep").map(String)
|
|
661
|
+
keep: form.getAll("keep").map(String),
|
|
662
|
+
tags: form.has("tags") ? tagsIn(form) : undefined
|
|
648
663
|
}));
|
|
649
664
|
await tick();
|
|
650
665
|
return Response.json(todo.state);
|
|
@@ -745,7 +760,7 @@ async function escalate({
|
|
|
745
760
|
if (review) {
|
|
746
761
|
const path = `${found.path}/${PLAN_FILE}`;
|
|
747
762
|
const plan = await fs.read(path).catch(() => "");
|
|
748
|
-
const unchecked = questions(plan).filter((
|
|
763
|
+
const unchecked = questions(plan).filter((question) => !question.done).map((question) => question.number);
|
|
749
764
|
if (unchecked.length > 0) {
|
|
750
765
|
fail("blocked", `'${name}' has questions ${unchecked.join(", ")} unchecked under ## Blocked: settle those first, or escalate without --review to ask them`, { task: name, blocked: unchecked });
|
|
751
766
|
}
|
|
@@ -812,14 +827,14 @@ async function list({ service, log, fs }, { json = false, files = false } = {})
|
|
|
812
827
|
}
|
|
813
828
|
async function row(worktree) {
|
|
814
829
|
const { state } = worktree;
|
|
815
|
-
const
|
|
830
|
+
const diff = state ? await worktree.diffStat() : null;
|
|
816
831
|
return {
|
|
817
832
|
task: worktree.task,
|
|
818
833
|
status: worktree.status,
|
|
819
834
|
lease: worktree.leaseStatus,
|
|
820
835
|
ahead: state ? await worktree.commitsAhead() : null,
|
|
821
|
-
added:
|
|
822
|
-
removed:
|
|
836
|
+
added: diff?.added ?? null,
|
|
837
|
+
removed: diff?.removed ?? null,
|
|
823
838
|
age: state ? age(state.createdAt) : "?",
|
|
824
839
|
worktree: state ? worktree.path : null
|
|
825
840
|
};
|
|
@@ -831,45 +846,45 @@ async function paths(worktree, fs) {
|
|
|
831
846
|
planned: plan === null ? [] : plannedFiles(plan)
|
|
832
847
|
};
|
|
833
848
|
}
|
|
834
|
-
function diff2(
|
|
835
|
-
if (
|
|
849
|
+
function diff2(row) {
|
|
850
|
+
if (row.added === null || row.removed === null) {
|
|
836
851
|
return "?";
|
|
837
852
|
}
|
|
838
|
-
return `${color6.green(`+${
|
|
853
|
+
return `${color6.green(`+${row.added}`)} ${color6.red(`-${row.removed}`)}`;
|
|
839
854
|
}
|
|
840
855
|
function listing(rows) {
|
|
841
|
-
const cells = rows.map((
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
diff2(
|
|
847
|
-
|
|
856
|
+
const cells = rows.map((row) => [
|
|
857
|
+
row.task,
|
|
858
|
+
row.status,
|
|
859
|
+
row.lease,
|
|
860
|
+
row.ahead === null ? "?" : String(row.ahead),
|
|
861
|
+
diff2(row),
|
|
862
|
+
row.age
|
|
848
863
|
]);
|
|
849
864
|
const out = [
|
|
850
865
|
table(["TASK", "STATUS", "LEASE", "AHEAD", "DIFF", "AGE"], cells)
|
|
851
866
|
];
|
|
852
|
-
for (const
|
|
853
|
-
if (
|
|
854
|
-
out.push("", ...files(
|
|
867
|
+
for (const row of rows) {
|
|
868
|
+
if (row.changed !== undefined) {
|
|
869
|
+
out.push("", ...files(row));
|
|
855
870
|
}
|
|
856
871
|
}
|
|
857
|
-
const orphaned = rows.filter((
|
|
872
|
+
const orphaned = rows.filter((row) => row.status === "orphaned");
|
|
858
873
|
if (orphaned.length > 0) {
|
|
859
874
|
out.push("", color6.yellow(`${orphaned.length} orphaned record(s): run \`arbor remove ${orphaned[0]?.task}\``));
|
|
860
875
|
}
|
|
861
876
|
return out.join(`
|
|
862
877
|
`);
|
|
863
878
|
}
|
|
864
|
-
function files(
|
|
865
|
-
const changed =
|
|
866
|
-
const planned = (
|
|
879
|
+
function files(row) {
|
|
880
|
+
const changed = row.changed ?? [];
|
|
881
|
+
const planned = (row.planned ?? []).filter((path) => !changed.includes(path));
|
|
867
882
|
const lines = [
|
|
868
883
|
...changed.map((path) => ` changed ${path}`),
|
|
869
884
|
...planned.map((path) => ` ${color6.dim("planned")} ${path}`)
|
|
870
885
|
];
|
|
871
886
|
return [
|
|
872
|
-
color6.bold(
|
|
887
|
+
color6.bold(row.task),
|
|
873
888
|
...lines.length > 0 ? lines : [color6.dim(" no files yet")]
|
|
874
889
|
];
|
|
875
890
|
}
|
|
@@ -877,17 +892,17 @@ function files(row2) {
|
|
|
877
892
|
// log.ts
|
|
878
893
|
import { color as color7 } from "webappwiz/log";
|
|
879
894
|
var DEFAULT_COUNT = 20;
|
|
880
|
-
async function log({ journal, log
|
|
895
|
+
async function log({ journal, log }, { count = DEFAULT_COUNT, json = false } = {}) {
|
|
881
896
|
const entries = await journal.tail(count);
|
|
882
897
|
if (json) {
|
|
883
|
-
|
|
898
|
+
log.info(JSON.stringify(entries, null, "\t"));
|
|
884
899
|
return;
|
|
885
900
|
}
|
|
886
901
|
if (entries.length === 0) {
|
|
887
|
-
|
|
902
|
+
log.info("nothing recorded yet");
|
|
888
903
|
return;
|
|
889
904
|
}
|
|
890
|
-
|
|
905
|
+
log.info(table(["WHEN", "ACTION", "TASK", "RESULT"], entries.map(row2)));
|
|
891
906
|
}
|
|
892
907
|
function row2(entry) {
|
|
893
908
|
return [
|
|
@@ -919,13 +934,13 @@ class Attachments {
|
|
|
919
934
|
this.fs = fs;
|
|
920
935
|
this.ids = ids;
|
|
921
936
|
}
|
|
922
|
-
async store(
|
|
923
|
-
if (
|
|
937
|
+
async store(files) {
|
|
938
|
+
if (files.length === 0) {
|
|
924
939
|
return [];
|
|
925
940
|
}
|
|
926
941
|
await this.fs.mkdir(this.dir);
|
|
927
942
|
const stored = [];
|
|
928
|
-
for (const file of
|
|
943
|
+
for (const file of files) {
|
|
929
944
|
const path = `${this.dir}/${this.ids.next()}-${safe(file.name)}`;
|
|
930
945
|
await this.fs.writeBytes(path, file.bytes);
|
|
931
946
|
stored.push(path);
|
|
@@ -935,8 +950,8 @@ class Attachments {
|
|
|
935
950
|
owns(path) {
|
|
936
951
|
return resolve(path).startsWith(`${resolve(this.dir)}/`);
|
|
937
952
|
}
|
|
938
|
-
async remove(
|
|
939
|
-
for (const path of
|
|
953
|
+
async remove(paths) {
|
|
954
|
+
for (const path of paths.filter((path) => this.owns(path))) {
|
|
940
955
|
await this.fs.rm(path, { force: true });
|
|
941
956
|
}
|
|
942
957
|
}
|
|
@@ -944,9 +959,9 @@ class Attachments {
|
|
|
944
959
|
await this.fs.rm(this.dir, { recursive: true, force: true });
|
|
945
960
|
}
|
|
946
961
|
}
|
|
947
|
-
async function readFiles({ fs, ps },
|
|
962
|
+
async function readFiles({ fs, ps }, paths) {
|
|
948
963
|
const read = [];
|
|
949
|
-
for (const given of
|
|
964
|
+
for (const given of paths) {
|
|
950
965
|
const path = resolve(ps.cwd(), given);
|
|
951
966
|
const bytes = await fs.readBytes(path).catch(() => null);
|
|
952
967
|
if (bytes === null) {
|
|
@@ -963,6 +978,15 @@ function safe(name) {
|
|
|
963
978
|
}
|
|
964
979
|
|
|
965
980
|
// todo.ts
|
|
981
|
+
var TAG = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
982
|
+
function tagList(tags) {
|
|
983
|
+
const bad = tags.find((tag) => !TAG.test(tag));
|
|
984
|
+
if (bad !== undefined) {
|
|
985
|
+
fail("usage", `'${bad}' is not a tag: use one lowercase word, or a few joined by hyphens, like uploads or dark-mode`, { tag: bad });
|
|
986
|
+
}
|
|
987
|
+
return [...new Set(tags)].sort();
|
|
988
|
+
}
|
|
989
|
+
|
|
966
990
|
class Todo {
|
|
967
991
|
todos;
|
|
968
992
|
state;
|
|
@@ -1011,6 +1035,9 @@ class Todo {
|
|
|
1011
1035
|
get files() {
|
|
1012
1036
|
return this.state.files;
|
|
1013
1037
|
}
|
|
1038
|
+
get tags() {
|
|
1039
|
+
return this.state.tags;
|
|
1040
|
+
}
|
|
1014
1041
|
get attachments() {
|
|
1015
1042
|
return this.todos.attachments(this.id);
|
|
1016
1043
|
}
|
|
@@ -1018,8 +1045,9 @@ class Todo {
|
|
|
1018
1045
|
subject,
|
|
1019
1046
|
text,
|
|
1020
1047
|
position,
|
|
1021
|
-
files
|
|
1022
|
-
keep
|
|
1048
|
+
files = [],
|
|
1049
|
+
keep,
|
|
1050
|
+
tags
|
|
1023
1051
|
}) {
|
|
1024
1052
|
const words = wording(subject ?? this.subject, text ?? this.text);
|
|
1025
1053
|
if (words.subject === "") {
|
|
@@ -1027,13 +1055,15 @@ class Todo {
|
|
|
1027
1055
|
todo: this.id
|
|
1028
1056
|
});
|
|
1029
1057
|
}
|
|
1058
|
+
const tagged = tags === undefined ? this.tags : tagList(tags);
|
|
1030
1059
|
const kept = keep === undefined ? this.files : this.files.filter((path) => keep.includes(path));
|
|
1031
1060
|
await this.attachments.remove(this.files.filter((path) => !kept.includes(path)));
|
|
1032
|
-
const added = await this.attachments.store(
|
|
1061
|
+
const added = await this.attachments.store(files);
|
|
1033
1062
|
const updated = await this.todos.revise(this.id, (state) => ({
|
|
1034
1063
|
...state,
|
|
1035
1064
|
...words,
|
|
1036
|
-
files: [...kept, ...added]
|
|
1065
|
+
files: [...kept, ...added],
|
|
1066
|
+
tags: tagged
|
|
1037
1067
|
}));
|
|
1038
1068
|
return position === undefined ? updated : this.todos.move(this.id, position);
|
|
1039
1069
|
}
|
|
@@ -1060,11 +1090,12 @@ class Todos {
|
|
|
1060
1090
|
owns(path) {
|
|
1061
1091
|
return new Attachments(this.dir, this.fs).owns(path);
|
|
1062
1092
|
}
|
|
1063
|
-
async add(subject, from, { text = "", files
|
|
1093
|
+
async add(subject, from, { text = "", files = [], position, tags = [] } = {}) {
|
|
1064
1094
|
const words = wording(subject, text);
|
|
1065
1095
|
if (words.subject === "") {
|
|
1066
1096
|
fail("usage", "a todo needs a subject: say what is left to do", {});
|
|
1067
1097
|
}
|
|
1098
|
+
const tagged = tagList(tags);
|
|
1068
1099
|
await this.fs.mkdir(this.dir);
|
|
1069
1100
|
return this.locked(async () => {
|
|
1070
1101
|
const id = await this.lastId() + 1;
|
|
@@ -1076,7 +1107,8 @@ class Todos {
|
|
|
1076
1107
|
from,
|
|
1077
1108
|
createdAt: new Date().toISOString(),
|
|
1078
1109
|
takenBy: null,
|
|
1079
|
-
files: await this.attachments(id).store(
|
|
1110
|
+
files: await this.attachments(id).store(files),
|
|
1111
|
+
tags: tagged
|
|
1080
1112
|
});
|
|
1081
1113
|
return this.place(todo.state, position);
|
|
1082
1114
|
});
|
|
@@ -1087,6 +1119,15 @@ class Todos {
|
|
|
1087
1119
|
async find(id) {
|
|
1088
1120
|
return (await this.all()).find((todo) => todo.id === id) ?? missing(id);
|
|
1089
1121
|
}
|
|
1122
|
+
async tags() {
|
|
1123
|
+
const counts = new Map;
|
|
1124
|
+
for (const todo of await this.all()) {
|
|
1125
|
+
for (const tag of todo.tags) {
|
|
1126
|
+
counts.set(tag, (counts.get(tag) ?? 0) + 1);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
return [...counts].map(([tag, todos]) => ({ tag, todos })).sort((left, right) => left.tag.localeCompare(right.tag));
|
|
1130
|
+
}
|
|
1090
1131
|
async takenBy(task) {
|
|
1091
1132
|
return (await this.all()).filter((todo) => todo.takenBy === task);
|
|
1092
1133
|
}
|
|
@@ -1138,7 +1179,7 @@ class Todos {
|
|
|
1138
1179
|
async stored() {
|
|
1139
1180
|
const entries = await this.fs.readdir(this.dir).catch(() => []);
|
|
1140
1181
|
const states = [];
|
|
1141
|
-
for (const entry of entries.filter((
|
|
1182
|
+
for (const entry of entries.filter((entry) => entry.endsWith(".json"))) {
|
|
1142
1183
|
const state = await this.read(`${this.dir}/${entry}`);
|
|
1143
1184
|
if (state) {
|
|
1144
1185
|
states.push(state);
|
|
@@ -1172,7 +1213,8 @@ class Todos {
|
|
|
1172
1213
|
...state,
|
|
1173
1214
|
...state.subject === undefined ? wording(state.text, "") : { subject: state.subject, text: state.text },
|
|
1174
1215
|
position: state.position ?? 0,
|
|
1175
|
-
files: state.files ?? []
|
|
1216
|
+
files: state.files ?? [],
|
|
1217
|
+
tags: state.tags ?? []
|
|
1176
1218
|
};
|
|
1177
1219
|
} catch {
|
|
1178
1220
|
return null;
|
|
@@ -1193,8 +1235,9 @@ function wording(subject, text) {
|
|
|
1193
1235
|
`)
|
|
1194
1236
|
};
|
|
1195
1237
|
}
|
|
1196
|
-
async function recommend(todos, task, staleness) {
|
|
1197
|
-
const
|
|
1238
|
+
async function recommend(todos, task, staleness, settled = []) {
|
|
1239
|
+
const rank = (todo) => todo.from === task ? 2 : todo.tags.some((tag) => settled.includes(tag)) ? 1 : 0;
|
|
1240
|
+
const open = (await todos.all()).filter((todo) => todo.takenBy === null).sort((left, right) => rank(right) - rank(left));
|
|
1198
1241
|
return {
|
|
1199
1242
|
next: open.find((todo) => todo.waited <= staleness) ?? null,
|
|
1200
1243
|
stale: open.filter((todo) => todo.waited > staleness)
|
|
@@ -1216,11 +1259,12 @@ function recommendation({ next, stale }) {
|
|
|
1216
1259
|
function from(todo) {
|
|
1217
1260
|
return todo.from === null ? "added by hand" : `from ${todo.from}`;
|
|
1218
1261
|
}
|
|
1219
|
-
async function todoAdd(deps, subject,
|
|
1220
|
-
const todo = await deps.todos.add(subject,
|
|
1262
|
+
async function todoAdd(deps, subject, from, { text, files = [], position, tags } = {}) {
|
|
1263
|
+
const todo = await deps.todos.add(subject, from, {
|
|
1221
1264
|
text,
|
|
1222
|
-
files: await readFiles(deps,
|
|
1223
|
-
position
|
|
1265
|
+
files: await readFiles(deps, files),
|
|
1266
|
+
position,
|
|
1267
|
+
tags
|
|
1224
1268
|
});
|
|
1225
1269
|
deps.log.info([
|
|
1226
1270
|
`${color8.green("added")} todo ${todo.id} at position ${todo.position}`,
|
|
@@ -1230,30 +1274,36 @@ async function todoAdd(deps, subject, from2, { text, files: files2 = [], positio
|
|
|
1230
1274
|
`));
|
|
1231
1275
|
return todo;
|
|
1232
1276
|
}
|
|
1233
|
-
async function todoList({ todos, log
|
|
1234
|
-
const
|
|
1277
|
+
async function todoList({ todos, log }, { json = false, open = false, tag } = {}) {
|
|
1278
|
+
const every = await todos.all();
|
|
1279
|
+
const listed = every.filter((todo) => (!open || todo.takenBy === null) && (tag === undefined || todo.tags.includes(tag)));
|
|
1235
1280
|
if (json) {
|
|
1236
|
-
|
|
1281
|
+
log.info(JSON.stringify(listed.map((todo) => todo.state), null, "\t"));
|
|
1282
|
+
return;
|
|
1283
|
+
}
|
|
1284
|
+
if (every.length === 0) {
|
|
1285
|
+
log.info("no todos: `arbor todo add <subject>` defers work for later");
|
|
1237
1286
|
return;
|
|
1238
1287
|
}
|
|
1239
|
-
if (
|
|
1240
|
-
|
|
1288
|
+
if (listed.length === 0) {
|
|
1289
|
+
log.info(tag === undefined ? "no open todos: every one is taken, see `arbor todo list`" : `no ${open ? "open " : ""}todos tagged ${tag}: see \`arbor todo tags\``);
|
|
1241
1290
|
return;
|
|
1242
1291
|
}
|
|
1243
|
-
|
|
1292
|
+
log.info(table(["POS", "ID", "SUBJECT", "TAGS", "FROM", "AGE", "TAKEN BY", "FILES"], listed.map((todo) => [
|
|
1244
1293
|
String(todo.position),
|
|
1245
1294
|
String(todo.id),
|
|
1246
1295
|
todo.subject,
|
|
1296
|
+
todo.tags.join(","),
|
|
1247
1297
|
todo.from ?? "",
|
|
1248
1298
|
age(todo.state.createdAt),
|
|
1249
1299
|
todo.takenBy ?? "",
|
|
1250
1300
|
todo.files.length === 0 ? "" : String(todo.files.length)
|
|
1251
1301
|
])));
|
|
1252
1302
|
}
|
|
1253
|
-
async function todoShow({ todos, log
|
|
1303
|
+
async function todoShow({ todos, log }, id, { json = false } = {}) {
|
|
1254
1304
|
const todo = await todos.find(id);
|
|
1255
1305
|
if (json) {
|
|
1256
|
-
|
|
1306
|
+
log.info(JSON.stringify(todo.state, null, "\t"));
|
|
1257
1307
|
return;
|
|
1258
1308
|
}
|
|
1259
1309
|
const lines = [
|
|
@@ -1261,23 +1311,30 @@ async function todoShow({ todos, log: log2 }, id, { json = false } = {}) {
|
|
|
1261
1311
|
` position: ${todo.position}`,
|
|
1262
1312
|
` from: ${todo.from ?? "added by hand"}`,
|
|
1263
1313
|
` taken by: ${todo.takenBy ?? "nobody yet"}`,
|
|
1314
|
+
...todo.tags.length === 0 ? [] : [` tags: ${todo.tags.join(", ")}`],
|
|
1264
1315
|
` age: ${age(todo.state.createdAt)}`,
|
|
1265
1316
|
...todo.files.map((path) => ` file: ${path}`)
|
|
1266
1317
|
];
|
|
1267
1318
|
if (todo.text !== "") {
|
|
1268
1319
|
lines.push("", todo.text);
|
|
1269
1320
|
}
|
|
1270
|
-
|
|
1321
|
+
log.info(lines.join(`
|
|
1271
1322
|
`));
|
|
1272
1323
|
}
|
|
1273
1324
|
async function todoUpdate(deps, id, {
|
|
1274
1325
|
subject,
|
|
1275
1326
|
text,
|
|
1276
1327
|
position,
|
|
1277
|
-
files
|
|
1278
|
-
removeFiles = []
|
|
1328
|
+
files = [],
|
|
1329
|
+
removeFiles = [],
|
|
1330
|
+
tags = [],
|
|
1331
|
+
removeTags = []
|
|
1279
1332
|
} = {}) {
|
|
1280
1333
|
const todo = await deps.todos.find(id);
|
|
1334
|
+
const unknownTag = removeTags.find((tag) => !todo.tags.includes(tag));
|
|
1335
|
+
if (unknownTag !== undefined) {
|
|
1336
|
+
fail("not_found", `todo ${id} has no tag '${unknownTag}': nothing was changed`, { todo: id, tag: unknownTag });
|
|
1337
|
+
}
|
|
1281
1338
|
const matches = (path, named) => path === named || basename3(path) === named;
|
|
1282
1339
|
const unknown = removeFiles.find((named) => !todo.files.some((path) => matches(path, named)));
|
|
1283
1340
|
if (unknown !== undefined) {
|
|
@@ -1288,8 +1345,9 @@ async function todoUpdate(deps, id, {
|
|
|
1288
1345
|
subject: subject || undefined,
|
|
1289
1346
|
text: text || undefined,
|
|
1290
1347
|
position,
|
|
1291
|
-
files: await readFiles(deps,
|
|
1292
|
-
keep: todo.files.filter((path) => !dropped.includes(path))
|
|
1348
|
+
files: await readFiles(deps, files),
|
|
1349
|
+
keep: todo.files.filter((path) => !dropped.includes(path)),
|
|
1350
|
+
tags: [...todo.tags, ...tags].filter((tag) => !removeTags.includes(tag))
|
|
1293
1351
|
});
|
|
1294
1352
|
deps.log.info([
|
|
1295
1353
|
`${color8.green("updated")} todo ${id} at position ${updated.position}: ${updated.subject}`,
|
|
@@ -1298,7 +1356,7 @@ async function todoUpdate(deps, id, {
|
|
|
1298
1356
|
`));
|
|
1299
1357
|
return updated;
|
|
1300
1358
|
}
|
|
1301
|
-
async function todoTake({ todos, log
|
|
1359
|
+
async function todoTake({ todos, log }, ids, task) {
|
|
1302
1360
|
if (task === null) {
|
|
1303
1361
|
fail("usage", "take todos from the worktree of the task they belong to, or start one with `arbor add <task> --todo <id>`", { todos: ids });
|
|
1304
1362
|
}
|
|
@@ -1309,21 +1367,21 @@ async function todoTake({ todos, log: log2 }, ids, task) {
|
|
|
1309
1367
|
}
|
|
1310
1368
|
}
|
|
1311
1369
|
const taken = await Promise.all(found.map((todo) => todo.take(task)));
|
|
1312
|
-
|
|
1370
|
+
log.info([
|
|
1313
1371
|
...taken.map((todo) => `${color8.green("took")} todo ${todo.id}: ${todo.subject}`),
|
|
1314
1372
|
` add ${taken.length === 1 ? "it" : "them"} to the Goal in ARBOR.md; merging removes ${taken.length === 1 ? "it" : "them"}`
|
|
1315
1373
|
].join(`
|
|
1316
1374
|
`));
|
|
1317
1375
|
return taken;
|
|
1318
1376
|
}
|
|
1319
|
-
async function todoRelease({ todos, log
|
|
1377
|
+
async function todoRelease({ todos, log }, ids, task) {
|
|
1320
1378
|
const found = await findAll(todos, ids);
|
|
1321
1379
|
const other = found.find((todo) => task !== null && todo.takenBy !== null && todo.takenBy !== task);
|
|
1322
1380
|
if (other) {
|
|
1323
1381
|
fail("exists", `todo ${other.id} is taken by '${other.takenBy}', not '${task}': nothing was released`, { todo: other.id, takenBy: other.takenBy });
|
|
1324
1382
|
}
|
|
1325
1383
|
const released = await Promise.all(found.map((todo) => todo.release()));
|
|
1326
|
-
|
|
1384
|
+
log.info(released.map((todo) => `${color8.green("released")} todo ${todo.id}: ${todo.subject}`).join(`
|
|
1327
1385
|
`));
|
|
1328
1386
|
return released;
|
|
1329
1387
|
}
|
|
@@ -1333,10 +1391,22 @@ async function findAll(todos, ids) {
|
|
|
1333
1391
|
}
|
|
1334
1392
|
return Promise.all([...new Set(ids)].map((id) => todos.find(id)));
|
|
1335
1393
|
}
|
|
1336
|
-
async function todoRemove({ todos, log
|
|
1394
|
+
async function todoRemove({ todos, log }, id) {
|
|
1337
1395
|
const todo = await todos.find(id);
|
|
1338
1396
|
await todo.remove();
|
|
1339
|
-
|
|
1397
|
+
log.info(`${color8.green("removed")} todo ${id}: ${todo.subject}`);
|
|
1398
|
+
}
|
|
1399
|
+
async function todoTags({ todos, log }, { json = false } = {}) {
|
|
1400
|
+
const tags = await todos.tags();
|
|
1401
|
+
if (json) {
|
|
1402
|
+
log.info(JSON.stringify(tags, null, "\t"));
|
|
1403
|
+
return;
|
|
1404
|
+
}
|
|
1405
|
+
if (tags.length === 0) {
|
|
1406
|
+
log.info("no tags: `arbor todo add <subject> --tag <tag>` adds one");
|
|
1407
|
+
return;
|
|
1408
|
+
}
|
|
1409
|
+
log.info(table(["TAG", "TODOS"], tags.map(({ tag, todos }) => [tag, String(todos)])));
|
|
1340
1410
|
}
|
|
1341
1411
|
|
|
1342
1412
|
// merge.ts
|
|
@@ -1347,7 +1417,7 @@ async function merge({
|
|
|
1347
1417
|
lock,
|
|
1348
1418
|
shell,
|
|
1349
1419
|
config,
|
|
1350
|
-
log
|
|
1420
|
+
log,
|
|
1351
1421
|
todos,
|
|
1352
1422
|
fs
|
|
1353
1423
|
}, cwd) {
|
|
@@ -1382,19 +1452,19 @@ async function merge({
|
|
|
1382
1452
|
const before = await git.head(worktree.path);
|
|
1383
1453
|
const rebase = await git.rebase(worktree.path, base);
|
|
1384
1454
|
if (rebase.code !== 0) {
|
|
1385
|
-
const
|
|
1455
|
+
const paths = await git.conflictedPaths(worktree.path);
|
|
1386
1456
|
await lock.release();
|
|
1387
1457
|
await bump(worktree);
|
|
1388
1458
|
fail("conflict", [
|
|
1389
|
-
`rebase onto ${base} conflicted in ${
|
|
1390
|
-
...
|
|
1459
|
+
`rebase onto ${base} conflicted in ${paths.length || "?"} file(s):`,
|
|
1460
|
+
...paths.map((file) => ` ${file}`),
|
|
1391
1461
|
"",
|
|
1392
1462
|
"The rebase is still in progress. Resolve the conflicts, `git add` them,",
|
|
1393
1463
|
"`git rebase --continue`, then run `arbor merge` again.",
|
|
1394
1464
|
"If both sides restructured the same logic, prefer `arbor escalate <reason>`",
|
|
1395
1465
|
`or \`arbor remove ${task}\` and redo the task against current ${base}.`
|
|
1396
1466
|
].join(`
|
|
1397
|
-
`), { task, paths
|
|
1467
|
+
`), { task, paths });
|
|
1398
1468
|
}
|
|
1399
1469
|
const gate = [config.postRewrite, config.preMerge].filter(Boolean).join(" && ");
|
|
1400
1470
|
const gated = gate ? await shell.run(gate, worktree.path, {
|
|
@@ -1472,9 +1542,9 @@ ${ran.stderr}`)
|
|
|
1472
1542
|
...done.map((todo) => ` done todo ${todo.id}: ${todo.subject}`)
|
|
1473
1543
|
];
|
|
1474
1544
|
if (landing === git.root) {
|
|
1475
|
-
lines.push(...recommendation(await recommend(todos, task, config.todoStalenessMs)));
|
|
1545
|
+
lines.push(...recommendation(await recommend(todos, task, config.todoStalenessMs, done.flatMap((todo) => todo.tags))));
|
|
1476
1546
|
}
|
|
1477
|
-
|
|
1547
|
+
log.info(lines.join(`
|
|
1478
1548
|
`));
|
|
1479
1549
|
}
|
|
1480
1550
|
async function bump(worktree) {
|
|
@@ -1490,9 +1560,9 @@ function tail(output) {
|
|
|
1490
1560
|
}
|
|
1491
1561
|
|
|
1492
1562
|
// path.ts
|
|
1493
|
-
async function path({ service, log
|
|
1563
|
+
async function path({ service, log }, task) {
|
|
1494
1564
|
if (!task) {
|
|
1495
|
-
|
|
1565
|
+
log.info(service.git.root);
|
|
1496
1566
|
return;
|
|
1497
1567
|
}
|
|
1498
1568
|
const worktree = await service.find(task);
|
|
@@ -1505,14 +1575,14 @@ async function path({ service, log: log2 }, task) {
|
|
|
1505
1575
|
worktree: worktree.path
|
|
1506
1576
|
});
|
|
1507
1577
|
}
|
|
1508
|
-
|
|
1578
|
+
log.info(worktree.path);
|
|
1509
1579
|
}
|
|
1510
1580
|
|
|
1511
1581
|
// remove.ts
|
|
1512
1582
|
import { color as color10 } from "webappwiz/log";
|
|
1513
1583
|
async function remove({
|
|
1514
1584
|
service,
|
|
1515
|
-
log
|
|
1585
|
+
log,
|
|
1516
1586
|
todos
|
|
1517
1587
|
}, task, { force = false } = {}) {
|
|
1518
1588
|
const worktree = await service.find(task);
|
|
@@ -1524,7 +1594,7 @@ async function remove({
|
|
|
1524
1594
|
if (!force) {
|
|
1525
1595
|
fail("lease_held", `'${task}' is held by pid ${worktree.lease?.pid} on ${worktree.lease?.hostname}: pass --force to discard it anyway`, { task, lease: worktree.lease });
|
|
1526
1596
|
}
|
|
1527
|
-
|
|
1597
|
+
log.error(color10.yellow(`arbor: --force discarding a tree held by pid ${worktree.lease?.pid}`));
|
|
1528
1598
|
}
|
|
1529
1599
|
const unlanded = worktree.hasBranch ? await worktree.commitsAhead() : 0;
|
|
1530
1600
|
const discarded = await worktree.discard();
|
|
@@ -1549,7 +1619,7 @@ async function remove({
|
|
|
1549
1619
|
for (const todo of released) {
|
|
1550
1620
|
lines.push(` todo ${todo.id} is open again: ${todo.subject}`);
|
|
1551
1621
|
}
|
|
1552
|
-
|
|
1622
|
+
log.info(lines.join(`
|
|
1553
1623
|
`));
|
|
1554
1624
|
}
|
|
1555
1625
|
|
|
@@ -1629,18 +1699,18 @@ class Git {
|
|
|
1629
1699
|
if (committed.code !== 0) {
|
|
1630
1700
|
return null;
|
|
1631
1701
|
}
|
|
1632
|
-
const
|
|
1702
|
+
const paths = lines(committed.stdout);
|
|
1633
1703
|
if (worktree !== null) {
|
|
1634
1704
|
const edited = await this.run(worktree, "diff", "--name-only", "HEAD");
|
|
1635
1705
|
const added = await this.run(worktree, "ls-files", "--others", "--exclude-standard");
|
|
1636
|
-
|
|
1706
|
+
paths.push(...lines(edited.stdout), ...lines(added.stdout));
|
|
1637
1707
|
}
|
|
1638
|
-
return [...new Set(
|
|
1708
|
+
return [...new Set(paths)].sort();
|
|
1639
1709
|
}
|
|
1640
1710
|
async paths(cwd) {
|
|
1641
|
-
const
|
|
1642
|
-
const found = new Set(
|
|
1643
|
-
for (const file of
|
|
1711
|
+
const files = lines(await this.out(cwd, "ls-files", "--cached", "--others", "--exclude-standard"));
|
|
1712
|
+
const found = new Set(files);
|
|
1713
|
+
for (const file of files) {
|
|
1644
1714
|
const parts = file.split("/");
|
|
1645
1715
|
for (let depth = 1;depth < parts.length; depth++) {
|
|
1646
1716
|
found.add(`${parts.slice(0, depth).join("/")}/`);
|
|
@@ -1661,23 +1731,23 @@ class Git {
|
|
|
1661
1731
|
return this.run(cwd, "merge", "--ff-only", branch);
|
|
1662
1732
|
}
|
|
1663
1733
|
async worktreeFor(branch) {
|
|
1664
|
-
const
|
|
1665
|
-
let
|
|
1666
|
-
for (const line of
|
|
1734
|
+
const listing = await this.out(this.root, "worktree", "list", "--porcelain");
|
|
1735
|
+
let path = null;
|
|
1736
|
+
for (const line of listing.split(`
|
|
1667
1737
|
`)) {
|
|
1668
1738
|
if (line.startsWith("worktree ")) {
|
|
1669
|
-
|
|
1739
|
+
path = line.slice("worktree ".length);
|
|
1670
1740
|
} else if (line === `branch refs/heads/${branch}`) {
|
|
1671
|
-
return
|
|
1741
|
+
return path;
|
|
1672
1742
|
}
|
|
1673
1743
|
}
|
|
1674
1744
|
return null;
|
|
1675
1745
|
}
|
|
1676
|
-
addWorktree(branch,
|
|
1677
|
-
return this.run(this.root, "worktree", "add", "-b", branch,
|
|
1746
|
+
addWorktree(branch, path, from) {
|
|
1747
|
+
return this.run(this.root, "worktree", "add", "-b", branch, path, from);
|
|
1678
1748
|
}
|
|
1679
|
-
removeWorktree(
|
|
1680
|
-
return this.run(this.root, "worktree", "remove",
|
|
1749
|
+
removeWorktree(path) {
|
|
1750
|
+
return this.run(this.root, "worktree", "remove", path, "--force");
|
|
1681
1751
|
}
|
|
1682
1752
|
pruneWorktrees() {
|
|
1683
1753
|
return this.run(this.root, "worktree", "prune");
|
|
@@ -1723,8 +1793,8 @@ class Journal {
|
|
|
1723
1793
|
path;
|
|
1724
1794
|
capacity;
|
|
1725
1795
|
fs;
|
|
1726
|
-
constructor(
|
|
1727
|
-
this.path =
|
|
1796
|
+
constructor(path, capacity, opts = {}) {
|
|
1797
|
+
this.path = path;
|
|
1728
1798
|
this.capacity = capacity;
|
|
1729
1799
|
this.fs = opts.fs ?? new NodeFs4;
|
|
1730
1800
|
}
|
|
@@ -1744,7 +1814,7 @@ class Journal {
|
|
|
1744
1814
|
async append(action, task, reason) {
|
|
1745
1815
|
const entry = { at: new Date().toISOString(), action, task, reason };
|
|
1746
1816
|
const kept = [...await this.entries(), entry].slice(-this.capacity);
|
|
1747
|
-
await this.fs.write(this.path, kept.map((
|
|
1817
|
+
await this.fs.write(this.path, kept.map((entry) => `${JSON.stringify(entry)}
|
|
1748
1818
|
`).join(""));
|
|
1749
1819
|
}
|
|
1750
1820
|
async entries() {
|
|
@@ -1784,12 +1854,12 @@ function defaults(root, trunk) {
|
|
|
1784
1854
|
};
|
|
1785
1855
|
}
|
|
1786
1856
|
async function file(fs, root) {
|
|
1787
|
-
const
|
|
1788
|
-
if (!await fs.exists(
|
|
1857
|
+
const path = `${root}/arbor.config.ts`;
|
|
1858
|
+
if (!await fs.exists(path)) {
|
|
1789
1859
|
return {};
|
|
1790
1860
|
}
|
|
1791
|
-
const mod = await import(
|
|
1792
|
-
throw new Error(`could not load ${
|
|
1861
|
+
const mod = await import(path).catch((cause) => {
|
|
1862
|
+
throw new Error(`could not load ${path}: ${cause}. Its imports may be stale: try \`bun install\` in ${root}.`, { cause });
|
|
1793
1863
|
});
|
|
1794
1864
|
return mod.default ?? {};
|
|
1795
1865
|
}
|
|
@@ -1820,9 +1890,9 @@ import { NodeFs as NodeFs6, NodePs as NodePs3 } from "webappwiz/system";
|
|
|
1820
1890
|
class Worktree {
|
|
1821
1891
|
service;
|
|
1822
1892
|
snapshot;
|
|
1823
|
-
constructor(service,
|
|
1893
|
+
constructor(service, snapshot) {
|
|
1824
1894
|
this.service = service;
|
|
1825
|
-
this.snapshot =
|
|
1895
|
+
this.snapshot = snapshot;
|
|
1826
1896
|
}
|
|
1827
1897
|
get task() {
|
|
1828
1898
|
return this.snapshot.task;
|
|
@@ -1994,13 +2064,13 @@ class WorktreeService {
|
|
|
1994
2064
|
} catch {
|
|
1995
2065
|
corrupt = true;
|
|
1996
2066
|
}
|
|
1997
|
-
const
|
|
1998
|
-
const exists = await this.fs.exists(
|
|
2067
|
+
const path = state?.worktree ?? this.pathFor(task);
|
|
2068
|
+
const exists = await this.fs.exists(path);
|
|
1999
2069
|
const hasBranch = await this.git.branchExists(this.branchFor(task));
|
|
2000
2070
|
return new Worktree(this, {
|
|
2001
2071
|
task,
|
|
2002
2072
|
branch: state?.branch ?? this.branchFor(task),
|
|
2003
|
-
path
|
|
2073
|
+
path,
|
|
2004
2074
|
state,
|
|
2005
2075
|
exists,
|
|
2006
2076
|
hasBranch,
|
|
@@ -2037,11 +2107,11 @@ class WorktreeService {
|
|
|
2037
2107
|
return removed;
|
|
2038
2108
|
}
|
|
2039
2109
|
async saveRecord(state) {
|
|
2040
|
-
const
|
|
2041
|
-
const tmp = `${
|
|
2110
|
+
const path = this.recordPath(state.task);
|
|
2111
|
+
const tmp = `${path}.${this.ps.pid}.tmp`;
|
|
2042
2112
|
await this.fs.write(tmp, `${JSON.stringify(state, null, "\t")}
|
|
2043
2113
|
`);
|
|
2044
|
-
await this.fs.rename(tmp,
|
|
2114
|
+
await this.fs.rename(tmp, path);
|
|
2045
2115
|
}
|
|
2046
2116
|
async readRecord(task) {
|
|
2047
2117
|
const raw = await this.fs.read(this.recordPath(task)).catch(() => null);
|
|
@@ -2076,7 +2146,7 @@ class WorktreeService {
|
|
|
2076
2146
|
// repository.ts
|
|
2077
2147
|
function repository(at) {
|
|
2078
2148
|
return async (ctx, next) => {
|
|
2079
|
-
const { fs, ps, log
|
|
2149
|
+
const { fs, ps, log } = ctx;
|
|
2080
2150
|
const cwd = at ?? ps.cwd();
|
|
2081
2151
|
const { exitCode, stdout } = await ps.spawnCapture([
|
|
2082
2152
|
"git",
|
|
@@ -2103,7 +2173,7 @@ function repository(at) {
|
|
|
2103
2173
|
lock: new FileLock(`${arborDir}/merge.lock`, {
|
|
2104
2174
|
fs,
|
|
2105
2175
|
ps,
|
|
2106
|
-
log
|
|
2176
|
+
log,
|
|
2107
2177
|
stalenessMs: config.leaseStalenessMs
|
|
2108
2178
|
}),
|
|
2109
2179
|
shell: new Shell({ ps }),
|
|
@@ -2113,7 +2183,7 @@ function repository(at) {
|
|
|
2113
2183
|
todos: new Todos(`${arborDir}/todos`, new FileLock(`${arborDir}/todos.lock`, {
|
|
2114
2184
|
fs,
|
|
2115
2185
|
ps,
|
|
2116
|
-
log
|
|
2186
|
+
log,
|
|
2117
2187
|
stalenessMs: config.leaseStalenessMs
|
|
2118
2188
|
}), { fs })
|
|
2119
2189
|
});
|
|
@@ -2125,7 +2195,7 @@ import { color as color11 } from "webappwiz/log";
|
|
|
2125
2195
|
async function retry({
|
|
2126
2196
|
service,
|
|
2127
2197
|
config,
|
|
2128
|
-
log
|
|
2198
|
+
log
|
|
2129
2199
|
}, task) {
|
|
2130
2200
|
const found = await service.find(task);
|
|
2131
2201
|
if (found.gone) {
|
|
@@ -2135,7 +2205,7 @@ async function retry({
|
|
|
2135
2205
|
fail("usage", `'${task}' is ${found.status}, not escalated: only a task handed to a human can be granted more merge attempts`, { task, status: found.status });
|
|
2136
2206
|
}
|
|
2137
2207
|
const worktree = await found.save({ status: "working", mergeAttempts: 0 });
|
|
2138
|
-
|
|
2208
|
+
log.info([
|
|
2139
2209
|
`${color11.green("retry")} ${worktree.task}`,
|
|
2140
2210
|
` attempts: 0 of ${config.mergeRetryCount}`,
|
|
2141
2211
|
` status: working`,
|
|
@@ -2151,7 +2221,7 @@ import { Duration, sleep } from "webappwiz/time";
|
|
|
2151
2221
|
var DEFAULT_TIMEOUT = Duration.mins(15);
|
|
2152
2222
|
var POLL = Duration.secs(2);
|
|
2153
2223
|
var RUNNING = ["working", "merging"];
|
|
2154
|
-
async function wait({ service, log
|
|
2224
|
+
async function wait({ service, log }, task, { timeout = DEFAULT_TIMEOUT, poll = POLL } = {}) {
|
|
2155
2225
|
const deadline = Date.now() + timeout.ms;
|
|
2156
2226
|
for (;; ) {
|
|
2157
2227
|
const worktree = await service.find(task);
|
|
@@ -2159,7 +2229,7 @@ async function wait({ service, log: log2 }, task, { timeout = DEFAULT_TIMEOUT, p
|
|
|
2159
2229
|
fail("not_found", `no task '${task}': run \`arbor list\` to see what there is`, { task });
|
|
2160
2230
|
}
|
|
2161
2231
|
if (!RUNNING.includes(worktree.status)) {
|
|
2162
|
-
|
|
2232
|
+
log.info(report2(worktree));
|
|
2163
2233
|
return;
|
|
2164
2234
|
}
|
|
2165
2235
|
const left = deadline - Date.now();
|
|
@@ -2170,15 +2240,15 @@ async function wait({ service, log: log2 }, task, { timeout = DEFAULT_TIMEOUT, p
|
|
|
2170
2240
|
}
|
|
2171
2241
|
}
|
|
2172
2242
|
function report2(worktree) {
|
|
2173
|
-
const
|
|
2243
|
+
const lines = [`${color12.bold(worktree.task)} ${worktree.status}`];
|
|
2174
2244
|
const escalation = worktree.state?.escalations?.at(-1)?.reason;
|
|
2175
2245
|
if (escalation) {
|
|
2176
|
-
|
|
2246
|
+
lines.push(` ${color12.yellow(`escalated: ${escalation}`)}`);
|
|
2177
2247
|
}
|
|
2178
2248
|
if (worktree.status === "removed") {
|
|
2179
|
-
|
|
2249
|
+
lines.push("", `Nothing left of it here: \`arbor log\` says whether it landed.`);
|
|
2180
2250
|
}
|
|
2181
|
-
return
|
|
2251
|
+
return lines.join(`
|
|
2182
2252
|
`);
|
|
2183
2253
|
}
|
|
2184
2254
|
|
|
@@ -2196,15 +2266,15 @@ arbor.command("add").description("start a new task: create branch task/<task>, a
|
|
|
2196
2266
|
})));
|
|
2197
2267
|
arbor.command("claim").description("resume an existing task: take ownership of its worktree and print its path, status and any half-finished rebase; an escalated task goes back to working; refuses while another agent holds the lease, but takes a stale one silently, so `arbor show` first if the tree may not be abandoned").arg("task", z.string(), { description: "task name" }).action((opts, ctx) => ctx.journal.record("claim", opts.task, () => claim(ctx, opts.task)));
|
|
2198
2268
|
arbor.command("merge").description("land this worktree's branch on its base (trunk unless created with --base): rebase onto it, run tests on the rebased code, fast-forward it in whichever worktree has it checked out, then discard the worktree, branch and record (linear history, never a merge commit, no flag to skip tests); requires committed work, refusing a dirty worktree").action(async (_opts, ctx) => ctx.journal.record("merge", await here(ctx), () => merge(ctx, ctx.ps.cwd())));
|
|
2199
|
-
arbor.command("remove").description("discard a task: worktree, branch and state file; cheap and encouraged, since redoing a task against current trunk often beats a hard rebase").arg("task", z.string(), { description: "task name" }).option("force", z.
|
|
2269
|
+
arbor.command("remove").description("discard a task: worktree, branch and state file; cheap and encouraged, since redoing a task against current trunk often beats a hard rebase").arg("task", z.string(), { description: "task name" }).option("force", z.boolean(), {
|
|
2200
2270
|
default: false,
|
|
2201
2271
|
description: "discard even when another agent holds the lease"
|
|
2202
2272
|
}).action((opts, ctx) => ctx.journal.record("remove", opts.task, () => remove(ctx, opts.task, { force: opts.force })));
|
|
2203
|
-
arbor.command("list").description("list every task: name, status, lease (held: an agent is on it now; stale: gone quiet, normal for a task mid-edit; none), commits ahead of trunk, age").option("json", z.
|
|
2273
|
+
arbor.command("list").description("list every task: name, status, lease (held: an agent is on it now; stale: gone quiet, normal for a task mid-edit; none), commits ahead of trunk, age").option("json", z.boolean(), { default: false, description: "emit JSON" }).option("files", z.boolean(), {
|
|
2204
2274
|
default: false,
|
|
2205
2275
|
description: "add each task's changed files (committed or not) and the files its ARBOR.md plans to touch, to check for overlap before starting"
|
|
2206
2276
|
}).action((opts, ctx) => list(ctx, { json: opts.json, files: opts.files }));
|
|
2207
|
-
arbor.command("show").description("read one task without touching it: everything `list` shows for it, plus the ARBOR.md its agent left at the worktree root; takes no lease, so it cannot knock that agent off its own tree").arg("task", z.string(), { description: "task name" }).option("json", z.
|
|
2277
|
+
arbor.command("show").description("read one task without touching it: everything `list` shows for it, plus the ARBOR.md its agent left at the worktree root; takes no lease, so it cannot knock that agent off its own tree").arg("task", z.string(), { description: "task name" }).option("json", z.boolean(), { default: false, description: "emit JSON" }).action((opts, ctx) => show(ctx, opts.task, { json: opts.json }));
|
|
2208
2278
|
arbor.command("wait").description("block until a task stops moving: escalated, or gone (merged or removed), or broken; takes no lease, and gives up with `timeout` rather than waiting forever").arg("task", z.string(), { description: "task name" }).option("timeout-secs", z.coerce.number(), {
|
|
2209
2279
|
default: DEFAULT_TIMEOUT.secs,
|
|
2210
2280
|
description: "how long to wait before giving up"
|
|
@@ -2214,7 +2284,7 @@ arbor.command("wait").description("block until a task stops moving: escalated, o
|
|
|
2214
2284
|
arbor.command("log").description("show what has been done here recently: one line per add, claim, merge, remove, escalate, retry, todo and more, with how it ended; outlives the tasks themselves").option("count", z.coerce.number(), {
|
|
2215
2285
|
default: DEFAULT_COUNT,
|
|
2216
2286
|
description: "how many entries to show"
|
|
2217
|
-
}).option("json", z.
|
|
2287
|
+
}).option("json", z.boolean(), { default: false, description: "emit JSON" }).action((opts, ctx) => log(ctx, { count: opts.count, json: opts.json }));
|
|
2218
2288
|
arbor.command("dev").description("serve the todos and the tasks as a web page on this machine, where todos can be added, updated, reordered or removed").option("port", z.coerce.number(), {
|
|
2219
2289
|
default: DEFAULT_PORT,
|
|
2220
2290
|
description: "port to listen on, or the next open one above it"
|
|
@@ -2234,7 +2304,7 @@ arbor.command("escalate").description("hand this task to a human and stop: recor
|
|
|
2234
2304
|
}).option("task", z.string(), {
|
|
2235
2305
|
default: "",
|
|
2236
2306
|
description: "task name, when run outside its worktree"
|
|
2237
|
-
}).option("review", z.
|
|
2307
|
+
}).option("review", z.boolean(), {
|
|
2238
2308
|
default: false,
|
|
2239
2309
|
description: "ask a person to approve merging: adds a `Ready to merge?` question under ## Blocked with the reason as its detail, answered in chat; refused while another question is unchecked"
|
|
2240
2310
|
}).action(async (opts, ctx) => ctx.journal.record("escalate", opts.task || await here(ctx), () => escalate(ctx, opts.reason, ctx.ps.cwd(), {
|
|
@@ -2252,17 +2322,32 @@ todo.command("add").description("note something to do later and move on; run fro
|
|
|
2252
2322
|
}).option("file", z.string(), {
|
|
2253
2323
|
default: "",
|
|
2254
2324
|
description: "files to attach, comma separated: copied under .git/arbor/todos/<id>/"
|
|
2325
|
+
}).option("tag", z.string(), {
|
|
2326
|
+
default: "",
|
|
2327
|
+
description: "tags, comma separated, each one lowercase word (or a few joined by hyphens): the areas or goals it belongs to; `arbor todo tags` lists those in use"
|
|
2255
2328
|
}).action(async (opts, ctx) => {
|
|
2256
|
-
const
|
|
2257
|
-
await ctx.journal.record("todo add",
|
|
2329
|
+
const from = await here(ctx);
|
|
2330
|
+
await ctx.journal.record("todo add", from, () => todoAdd(ctx, opts.subject, from, {
|
|
2258
2331
|
text: opts.text,
|
|
2259
2332
|
position: opts.position,
|
|
2260
|
-
files: commaList(opts.file)
|
|
2333
|
+
files: commaList(opts.file),
|
|
2334
|
+
tags: commaList(opts.tag)
|
|
2261
2335
|
}));
|
|
2262
2336
|
});
|
|
2263
|
-
todo.command("list").description("every todo, top of the list first, with the task it came from and the task that took it up").option("json", z.
|
|
2264
|
-
|
|
2265
|
-
|
|
2337
|
+
todo.command("list").description("every todo, top of the list first, with the task it came from and the task that took it up").option("json", z.boolean(), { default: false, description: "emit JSON" }).option("open", z.boolean(), {
|
|
2338
|
+
default: false,
|
|
2339
|
+
description: "only todos no task has taken up: the ones free to pick up"
|
|
2340
|
+
}).option("tag", z.string(), {
|
|
2341
|
+
default: "",
|
|
2342
|
+
description: "only todos with this tag"
|
|
2343
|
+
}).action((opts, ctx) => todoList(ctx, {
|
|
2344
|
+
json: opts.json,
|
|
2345
|
+
open: opts.open,
|
|
2346
|
+
tag: opts.tag || undefined
|
|
2347
|
+
}));
|
|
2348
|
+
todo.command("tags").description("every tag in use, with how many todos have it: reuse one before making up another").option("json", z.boolean(), { default: false, description: "emit JSON" }).action((opts, ctx) => todoTags(ctx, { json: opts.json }));
|
|
2349
|
+
todo.command("show").description("one todo in full: where it stands, its files, and its detail").arg("id", z.coerce.number().int().positive(), { description: "todo id" }).option("json", z.boolean(), { default: false, description: "emit JSON" }).action((opts, ctx) => todoShow(ctx, opts.id, { json: opts.json }));
|
|
2350
|
+
todo.command("update").description("say what a todo is in other words, move it up or down the list, tag it, or attach and drop files; it keeps its id").arg("id", z.coerce.number().int().positive(), { description: "todo id" }).arg("text", z.string(), {
|
|
2266
2351
|
default: "",
|
|
2267
2352
|
description: "whatever more there is to say about it, in markdown; leave out to keep the detail"
|
|
2268
2353
|
}).option("subject", z.string(), {
|
|
@@ -2276,12 +2361,20 @@ todo.command("update").description("say what a todo is in other words, move it u
|
|
|
2276
2361
|
}).option("remove-file", z.string(), {
|
|
2277
2362
|
default: "",
|
|
2278
2363
|
description: "attached files to drop, comma separated, by path or stored name"
|
|
2364
|
+
}).option("tag", z.string(), {
|
|
2365
|
+
default: "",
|
|
2366
|
+
description: "tags to add, comma separated"
|
|
2367
|
+
}).option("remove-tag", z.string(), {
|
|
2368
|
+
default: "",
|
|
2369
|
+
description: "tags to drop, comma separated"
|
|
2279
2370
|
}).action((opts, ctx) => ctx.journal.record("todo update", null, () => todoUpdate(ctx, opts.id, {
|
|
2280
2371
|
subject: opts.subject,
|
|
2281
2372
|
text: opts.text,
|
|
2282
2373
|
position: opts.position,
|
|
2283
2374
|
files: commaList(opts.file),
|
|
2284
|
-
removeFiles: commaList(opts["remove-file"])
|
|
2375
|
+
removeFiles: commaList(opts["remove-file"]),
|
|
2376
|
+
tags: commaList(opts.tag),
|
|
2377
|
+
removeTags: commaList(opts["remove-tag"])
|
|
2285
2378
|
})));
|
|
2286
2379
|
todo.command("take").description("take up todos for the task whose worktree you are in, as when they turn out to be part of its work: merging removes them, removing the task puts them back").rest("ids", z.coerce.number().int().positive(), {
|
|
2287
2380
|
description: "todo ids"
|
|
@@ -2317,7 +2410,7 @@ async function here({
|
|
|
2317
2410
|
}
|
|
2318
2411
|
|
|
2319
2412
|
// dev/build/main.txt
|
|
2320
|
-
var main_default = 'var yD=Object.create;var{getPrototypeOf:ED,defineProperty:iG,getOwnPropertyNames:vD}=Object;var gD=Object.prototype.hasOwnProperty;function uD(A){return this[A]}var cD,mD,g=(A,Z,J)=>{var q=A!=null&&typeof A==="object";if(q){var Q=Z?cD??=new WeakMap:mD??=new WeakMap,z=Q.get(A);if(z)return z}J=A!=null?yD(ED(A)):{};let G=Z||!A||!A.__esModule?iG(J,"default",{value:A,enumerable:!0}):J;for(let X of vD(A))if(!gD.call(G,X))iG(G,X,{get:uD.bind(A,X),enumerable:!0});if(q)Q.set(A,G);return G};var hJ=(A,Z)=>()=>(Z||A((Z={exports:{}}).exports,Z),Z.exports);var pD=(A)=>A;function dD(A,Z){this[A]=pD.bind(null,Z)}var r2=(A,Z)=>{for(var J in Z)iG(A,J,{get:Z[J],enumerable:!0,configurable:!0,set:dD.bind(Z,J)})};var rG=(A,Z)=>()=>(A&&(Z=A(A=0)),Z);var p=hJ((XT)=>{var sG=Symbol.for("react.transitional.element"),lD=Symbol.for("react.portal"),iD=Symbol.for("react.fragment"),rD=Symbol.for("react.strict_mode"),oD=Symbol.for("react.profiler"),aD=Symbol.for("react.consumer"),sD=Symbol.for("react.context"),nD=Symbol.for("react.forward_ref"),tD=Symbol.for("react.suspense"),eD=Symbol.for("react.memo"),nW=Symbol.for("react.lazy"),AT=Symbol.for("react.activity"),rW=Symbol.iterator;function ZT(A){if(A===null||typeof A!=="object")return null;return A=rW&&A[rW]||A["@@iterator"],typeof A==="function"?A:null}var tW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eW=Object.assign,AB={};function d5(A,Z,J){this.props=A,this.context=Z,this.refs=AB,this.updater=J||tW}d5.prototype.isReactComponent={};d5.prototype.setState=function(A,Z){if(typeof A!=="object"&&typeof A!=="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Z,"setState")};d5.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function ZB(){}ZB.prototype=d5.prototype;function nG(A,Z,J){this.props=A,this.context=Z,this.refs=AB,this.updater=J||tW}var tG=nG.prototype=new ZB;tG.constructor=nG;eW(tG,d5.prototype);tG.isPureReactComponent=!0;var oW=Array.isArray;function aG(){}var u1={H:null,A:null,T:null,S:null},JB=Object.prototype.hasOwnProperty;function eG(A,Z,J){var q=J.ref;return{$$typeof:sG,type:A,key:Z,ref:q!==void 0?q:null,props:J}}function JT(A,Z){return eG(A.type,Z,A.props)}function A3(A){return typeof A==="object"&&A!==null&&A.$$typeof===sG}function qT(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return Z[J]})}var aW=/\\/+/g;function oG(A,Z){return typeof A==="object"&&A!==null&&A.key!=null?qT(""+A.key):Z.toString(36)}function QT(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status==="string"?A.then(aG,aG):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function p5(A,Z,J,q,Q){var z=typeof A;if(z==="undefined"||z==="boolean")A=null;var G=!1;if(A===null)G=!0;else switch(z){case"bigint":case"string":case"number":G=!0;break;case"object":switch(A.$$typeof){case sG:case lD:G=!0;break;case nW:return G=A._init,p5(G(A._payload),Z,J,q,Q)}}if(G)return Q=Q(A),G=q===""?"."+oG(A,0):q,oW(Q)?(J="",G!=null&&(J=G.replace(aW,"$&/")+"/"),p5(Q,Z,J,"",function(U){return U})):Q!=null&&(A3(Q)&&(Q=JT(Q,J+(Q.key==null||A&&A.key===Q.key?"":(""+Q.key).replace(aW,"$&/")+"/")+G)),Z.push(Q)),1;G=0;var X=q===""?".":q+":";if(oW(A))for(var Y=0;Y<A.length;Y++)q=A[Y],z=X+oG(q,Y),G+=p5(q,Z,J,z,Q);else if(Y=ZT(A),typeof Y==="function")for(A=Y.call(A),Y=0;!(q=A.next()).done;)q=q.value,z=X+oG(q,Y++),G+=p5(q,Z,J,z,Q);else if(z==="object"){if(typeof A.then==="function")return p5(QT(A),Z,J,q,Q);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return G}function xJ(A,Z,J){if(A==null)return A;var q=[],Q=0;return p5(A,q,"","",function(z){return Z.call(J,z,Q++)}),q}function zT(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.then(function(J){if(A._status===0||A._status===-1)A._status=1,A._result=J},function(J){if(A._status===0||A._status===-1)A._status=2,A._result=J}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var sW=typeof reportError==="function"?reportError:function(A){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A==="object"&&A!==null&&typeof A.message==="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",A);return}console.error(A)},GT={map:xJ,forEach:function(A,Z,J){xJ(A,function(){Z.apply(this,arguments)},J)},count:function(A){var Z=0;return xJ(A,function(){Z++}),Z},toArray:function(A){return xJ(A,function(Z){return Z})||[]},only:function(A){if(!A3(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};XT.Activity=AT;XT.Children=GT;XT.Component=d5;XT.Fragment=iD;XT.Profiler=oD;XT.PureComponent=nG;XT.StrictMode=rD;XT.Suspense=tD;XT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u1;XT.__COMPILER_RUNTIME={__proto__:null,c:function(A){return u1.H.useMemoCache(A)}};XT.cache=function(A){return function(){return A.apply(null,arguments)}};XT.cacheSignal=function(){return null};XT.cloneElement=function(A,Z,J){if(A===null||A===void 0)throw Error("The argument must be a React element, but you passed "+A+".");var q=eW({},A.props),Q=A.key;if(Z!=null)for(z in Z.key!==void 0&&(Q=""+Z.key),Z)!JB.call(Z,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&Z.ref===void 0||(q[z]=Z[z]);var z=arguments.length-2;if(z===1)q.children=J;else if(1<z){for(var G=Array(z),X=0;X<z;X++)G[X]=arguments[X+2];q.children=G}return eG(A.type,Q,q)};XT.createContext=function(A){return A={$$typeof:sD,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:aD,_context:A},A};XT.createElement=function(A,Z,J){var q,Q={},z=null;if(Z!=null)for(q in Z.key!==void 0&&(z=""+Z.key),Z)JB.call(Z,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(Q[q]=Z[q]);var G=arguments.length-2;if(G===1)Q.children=J;else if(1<G){for(var X=Array(G),Y=0;Y<G;Y++)X[Y]=arguments[Y+2];Q.children=X}if(A&&A.defaultProps)for(q in G=A.defaultProps,G)Q[q]===void 0&&(Q[q]=G[q]);return eG(A,z,Q)};XT.createRef=function(){return{current:null}};XT.forwardRef=function(A){return{$$typeof:nD,render:A}};XT.isValidElement=A3;XT.lazy=function(A){return{$$typeof:nW,_payload:{_status:-1,_result:A},_init:zT}};XT.memo=function(A,Z){return{$$typeof:eD,type:A,compare:Z===void 0?null:Z}};XT.startTransition=function(A){var Z=u1.T,J={};u1.T=J;try{var q=A(),Q=u1.S;Q!==null&&Q(J,q),typeof q==="object"&&q!==null&&typeof q.then==="function"&&q.then(aG,sW)}catch(z){sW(z)}finally{Z!==null&&J.types!==null&&(Z.types=J.types),u1.T=Z}};XT.unstable_useCacheRefresh=function(){return u1.H.useCacheRefresh()};XT.use=function(A){return u1.H.use(A)};XT.useActionState=function(A,Z,J){return u1.H.useActionState(A,Z,J)};XT.useCallback=function(A,Z){return u1.H.useCallback(A,Z)};XT.useContext=function(A){return u1.H.useContext(A)};XT.useDebugValue=function(){};XT.useDeferredValue=function(A,Z){return u1.H.useDeferredValue(A,Z)};XT.useEffect=function(A,Z){return u1.H.useEffect(A,Z)};XT.useEffectEvent=function(A){return u1.H.useEffectEvent(A)};XT.useId=function(){return u1.H.useId()};XT.useImperativeHandle=function(A,Z,J){return u1.H.useImperativeHandle(A,Z,J)};XT.useInsertionEffect=function(A,Z){return u1.H.useInsertionEffect(A,Z)};XT.useLayoutEffect=function(A,Z){return u1.H.useLayoutEffect(A,Z)};XT.useMemo=function(A,Z){return u1.H.useMemo(A,Z)};XT.useOptimistic=function(A,Z){return u1.H.useOptimistic(A,Z)};XT.useReducer=function(A,Z,J){return u1.H.useReducer(A,Z,J)};XT.useRef=function(A){return u1.H.useRef(A)};XT.useState=function(A){return u1.H.useState(A)};XT.useSyncExternalStore=function(A,Z,J){return u1.H.useSyncExternalStore(A,Z,J)};XT.useTransition=function(){return u1.H.useTransition()};XT.version="19.2.8"});function J3(A,Z){var J=A.length;A.push(Z);A:for(;0<J;){var q=J-1>>>1,Q=A[q];if(0<SJ(Q,Z))A[q]=Z,A[J]=Q,J=q;else break A}}function _4(A){return A.length===0?null:A[0]}function RJ(A){if(A.length===0)return null;var Z=A[0],J=A.pop();if(J!==Z){A[0]=J;A:for(var q=0,Q=A.length,z=Q>>>1;q<z;){var G=2*(q+1)-1,X=A[G],Y=G+1,U=A[Y];if(0>SJ(X,J))Y<Q&&0>SJ(U,X)?(A[q]=U,A[Y]=J,q=Y):(A[q]=X,A[G]=J,q=G);else if(Y<Q&&0>SJ(U,J))A[q]=U,A[Y]=J,q=Y;else break A}}return Z}function SJ(A,Z){var J=A.sortIndex-Z.sortIndex;return J!==0?J:A.id-Z.id}function fJ(A){for(var Z=_4(NA);Z!==null;){if(Z.callback===null)RJ(NA);else if(Z.startTime<=A)RJ(NA),Z.sortIndex=Z.expirationTime,J3(d4,Z);else break;Z=_4(NA)}}function Y3(A){if(k8=!1,fJ(A),!_8)if(_4(d4)!==null)_8=!0,i5||(i5=!0,l5());else{var Z=_4(NA);Z!==null&&U3(Y3,Z.startTime-A)}}function XB(){return X3?!0:k4()-GB<nT?!1:!0}function Z3(){if(X3=!1,i5){var A=k4();GB=A;var Z=!0;try{A:{_8=!1,k8&&(k8=!1,zB(j8),j8=-1),z3=!0;var J=IJ;try{Z:{fJ(A);for(f6=_4(d4);f6!==null&&!(f6.expirationTime>A&&XB());){var q=f6.callback;if(typeof q==="function"){f6.callback=null,IJ=f6.priorityLevel;var Q=q(f6.expirationTime<=A);if(A=k4(),typeof Q==="function"){f6.callback=Q,fJ(A),Z=!0;break Z}f6===_4(d4)&&RJ(d4),fJ(A)}else RJ(d4);f6=_4(d4)}if(f6!==null)Z=!0;else{var z=_4(NA);z!==null&&U3(Y3,z.startTime-A),Z=!1}}break A}finally{f6=null,IJ=J,z3=!1}Z=void 0}}finally{Z?l5():i5=!1}}}function U3(A,Z){j8=QB(function(){A(k4())},Z)}var k4=void 0,q3,PJ,Q3,d4,NA,sT=1,f6=null,IJ=3,z3=!1,_8=!1,k8=!1,X3=!1,QB,zB,qB,i5=!1,j8=-1,nT=5,GB=-1,l5,bJ,G3,H3=5,W3=1,B3=4,r5=3,K3=2,$3=function(A){A.callback=null},L3=function(){return IJ},V3=function(){X3=!0},o5=function(A,Z,J){var q=k4();switch(typeof J==="object"&&J!==null?(J=J.delay,J=typeof J==="number"&&0<J?q+J:q):J=q,A){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5000}return Q=J+Q,A={id:sT++,callback:Z,priorityLevel:A,startTime:J,expirationTime:Q,sortIndex:-1},J>q?(A.sortIndex=J,J3(NA,A),_4(d4)===null&&A===_4(NA)&&(k8?(zB(j8),j8=-1):k8=!0,U3(Y3,J-q))):(A.sortIndex=Q,J3(d4,A),_8||z3||(_8=!0,i5||(i5=!0,l5()))),A},M3;var YB=rG(()=>{if(typeof performance==="object"&&typeof performance.now==="function")q3=performance,k4=function(){return q3.now()};else PJ=Date,Q3=PJ.now(),k4=function(){return PJ.now()-Q3};d4=[],NA=[],QB=typeof setTimeout==="function"?setTimeout:null,zB=typeof clearTimeout==="function"?clearTimeout:null,qB=typeof setImmediate<"u"?setImmediate:null;if(typeof qB==="function")l5=function(){qB(Z3)};else if(typeof MessageChannel<"u")bJ=new MessageChannel,G3=bJ.port2,bJ.port1.onmessage=Z3,l5=function(){G3.postMessage(null)};else l5=function(){QB(Z3,0)};M3=XB});var F3={};r2(F3,{version:()=>OB,useFormStatus:()=>NB,useFormState:()=>CB,unstable_batchedUpdates:()=>jB,requestFormReset:()=>kB,preloadModule:()=>_B,preload:()=>FB,preinitModule:()=>MB,preinit:()=>VB,prefetchDNS:()=>LB,preconnect:()=>$B,flushSync:()=>KB,createPortal:()=>BB,__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>WB});function HB(A){var Z="https://react.dev/errors/"+A;if(1<arguments.length){Z+="?args[]="+encodeURIComponent(arguments[1]);for(var J=2;J<arguments.length;J++)Z+="&args[]="+encodeURIComponent(arguments[J])}return"Minified React error #"+A+"; visit "+Z+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function OA(){}function Aw(A,Z,J){var q=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:eT,key:q==null?null:""+q,children:A,containerInfo:Z,implementation:J}}function yJ(A,Z){if(A==="font")return"";if(typeof Z==="string")return Z==="use-credentials"?Z:""}var UB,o2,eT,C8,WB,BB=function(A,Z){var J=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Z||Z.nodeType!==1&&Z.nodeType!==9&&Z.nodeType!==11)throw Error(HB(299));return Aw(A,Z,null,J)},KB=function(A){var Z=C8.T,J=o2.p;try{if(C8.T=null,o2.p=2,A)return A()}finally{C8.T=Z,o2.p=J,o2.d.f()}},$B=function(A,Z){typeof A==="string"&&(Z?(Z=Z.crossOrigin,Z=typeof Z==="string"?Z==="use-credentials"?Z:"":void 0):Z=null,o2.d.C(A,Z))},LB=function(A){typeof A==="string"&&o2.d.D(A)},VB=function(A,Z){if(typeof A==="string"&&Z&&typeof Z.as==="string"){var J=Z.as,q=yJ(J,Z.crossOrigin),Q=typeof Z.integrity==="string"?Z.integrity:void 0,z=typeof Z.fetchPriority==="string"?Z.fetchPriority:void 0;J==="style"?o2.d.S(A,typeof Z.precedence==="string"?Z.precedence:void 0,{crossOrigin:q,integrity:Q,fetchPriority:z}):J==="script"&&o2.d.X(A,{crossOrigin:q,integrity:Q,fetchPriority:z,nonce:typeof Z.nonce==="string"?Z.nonce:void 0})}},MB=function(A,Z){if(typeof A==="string")if(typeof Z==="object"&&Z!==null){if(Z.as==null||Z.as==="script"){var J=yJ(Z.as,Z.crossOrigin);o2.d.M(A,{crossOrigin:J,integrity:typeof Z.integrity==="string"?Z.integrity:void 0,nonce:typeof Z.nonce==="string"?Z.nonce:void 0})}}else Z==null&&o2.d.M(A)},FB=function(A,Z){if(typeof A==="string"&&typeof Z==="object"&&Z!==null&&typeof Z.as==="string"){var J=Z.as,q=yJ(J,Z.crossOrigin);o2.d.L(A,J,{crossOrigin:q,integrity:typeof Z.integrity==="string"?Z.integrity:void 0,nonce:typeof Z.nonce==="string"?Z.nonce:void 0,type:typeof Z.type==="string"?Z.type:void 0,fetchPriority:typeof Z.fetchPriority==="string"?Z.fetchPriority:void 0,referrerPolicy:typeof Z.referrerPolicy==="string"?Z.referrerPolicy:void 0,imageSrcSet:typeof Z.imageSrcSet==="string"?Z.imageSrcSet:void 0,imageSizes:typeof Z.imageSizes==="string"?Z.imageSizes:void 0,media:typeof Z.media==="string"?Z.media:void 0})}},_B=function(A,Z){if(typeof A==="string")if(Z){var J=yJ(Z.as,Z.crossOrigin);o2.d.m(A,{as:typeof Z.as==="string"&&Z.as!=="script"?Z.as:void 0,crossOrigin:J,integrity:typeof Z.integrity==="string"?Z.integrity:void 0})}else o2.d.m(A)},kB=function(A){o2.d.r(A)},jB=function(A,Z){return A(Z)},CB=function(A,Z,J){return C8.H.useFormState(A,Z,J)},NB=function(){return C8.H.useHostTransitionStatus()},OB="19.2.8";var DB=rG(()=>{UB=g(p(),1);o2={d:{f:OA,r:function(){throw Error(HB(522))},D:OA,C:OA,L:OA,m:OA,X:OA,S:OA,M:OA},p:0,findDOMNode:null},eT=Symbol.for("react.portal");C8=UB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;WB=o2});var l4=hJ((sE,wB)=>{DB();function TB(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TB)}catch(A){console.error(A)}}TB(),wB.exports=F3});var dY={};r2(dY,{version:()=>gV,hydrateRoot:()=>vV,createRoot:()=>EV});function i(A){var Z="https://react.dev/errors/"+A;if(1<arguments.length){Z+="?args[]="+encodeURIComponent(arguments[1]);for(var J=2;J<arguments.length;J++)Z+="&args[]="+encodeURIComponent(arguments[J])}return"Minified React error #"+A+"; visit "+Z+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function tK(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function WZ(A){var Z=A,J=A;if(A.alternate)for(;Z.return;)Z=Z.return;else{A=Z;do Z=A,(Z.flags&4098)!==0&&(J=Z.return),A=Z.return;while(A)}return Z.tag===3?J:null}function eK(A){if(A.tag===13){var Z=A.memoizedState;if(Z===null&&(A=A.alternate,A!==null&&(Z=A.memoizedState)),Z!==null)return Z.dehydrated}return null}function A$(A){if(A.tag===31){var Z=A.memoizedState;if(Z===null&&(A=A.alternate,A!==null&&(Z=A.memoizedState)),Z!==null)return Z.dehydrated}return null}function hB(A){if(WZ(A)!==A)throw Error(i(188))}function Zw(A){var Z=A.alternate;if(!Z){if(Z=WZ(A),Z===null)throw Error(i(188));return Z!==A?null:A}for(var J=A,q=Z;;){var Q=J.return;if(Q===null)break;var z=Q.alternate;if(z===null){if(q=Q.return,q!==null){J=q;continue}break}if(Q.child===z.child){for(z=Q.child;z;){if(z===J)return hB(Q),A;if(z===q)return hB(Q),Z;z=z.sibling}throw Error(i(188))}if(J.return!==q.return)J=Q,q=z;else{for(var G=!1,X=Q.child;X;){if(X===J){G=!0,J=Q,q=z;break}if(X===q){G=!0,q=Q,J=z;break}X=X.sibling}if(!G){for(X=z.child;X;){if(X===J){G=!0,J=z,q=Q;break}if(X===q){G=!0,q=z,J=Q;break}X=X.sibling}if(!G)throw Error(i(189))}}if(J.alternate!==q)throw Error(i(190))}if(J.tag!==3)throw Error(i(188));return J.stateNode.current===J?A:Z}function Z$(A){var Z=A.tag;if(Z===5||Z===26||Z===27||Z===6)return A;for(A=A.child;A!==null;){if(Z=Z$(A),Z!==null)return Z;A=A.sibling}return null}function N8(A){if(A===null||typeof A!=="object")return null;return A=xB&&A[xB]||A["@@iterator"],typeof A==="function"?A:null}function ZX(A){if(A==null)return null;if(typeof A==="function")return A.$$typeof===Qw?null:A.displayName||A.name||null;if(typeof A==="string")return A;switch(A){case A7:return"Fragment";case n3:return"Profiler";case J$:return"StrictMode";case t3:return"Suspense";case e3:return"SuspenseList";case AX:return"Activity"}if(typeof A==="object")switch(A.$$typeof){case x8:return"Portal";case e4:return A.displayName||"Context";case q$:return(A._context.displayName||"Context")+".Consumer";case oX:var Z=A.render;return A=A.displayName,A||(A=Z.displayName||Z.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case aX:return Z=A.displayName||null,Z!==null?Z:ZX(A.type)||"Memo";case DA:Z=A._payload,A=A._init;try{return ZX(A(Z))}catch(J){}}return null}function D4(A){return{current:A}}function w2(A){0>Z7||(A.current=JX[Z7],JX[Z7]=null,Z7--)}function E1(A,Z){Z7++,JX[Z7]=A.current,A.current=Z}function $q(A,Z){switch(E1(yA,Z),E1(n8,A),E1(O4,null),Z.nodeType){case 9:case 11:A=(A=Z.documentElement)?(A=A.namespaceURI)?bK(A):0:0;break;default:if(A=Z.tagName,Z=Z.namespaceURI)Z=bK(Z),A=NV(Z,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}w2(O4),E1(O4,A)}function _7(){w2(O4),w2(n8),w2(yA)}function qX(A){A.memoizedState!==null&&E1(Kq,A);var Z=O4.current,J=NV(Z,A.type);Z!==J&&(E1(n8,A),E1(O4,J))}function Lq(A){n8.current===A&&(w2(O4),w2(n8)),Kq.current===A&&(w2(Kq),YZ._currentValue=R9)}function S9(A){if(_3===void 0)try{throw Error()}catch(J){var Z=J.stack.trim().match(/\\n( *(at )?)/);_3=Z&&Z[1]||"",SB=-1<J.stack.indexOf(`\n at`)?" (<anonymous>)":-1<J.stack.indexOf("@")?"@unknown:0:0":""}return`\n`+_3+A+SB}function j3(A,Z){if(!A||k3)return"";k3=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var q={DetermineComponentFrameRoot:function(){try{if(Z){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(K){var B=K}Reflect.construct(A,[],W)}else{try{W.call()}catch(K){B=K}A.call(W.prototype)}}else{try{throw Error()}catch(K){B=K}(W=A())&&typeof W.catch==="function"&&W.catch(function(){})}}catch(K){if(K&&B&&typeof K.stack==="string")return[K.stack,B.stack]}return[null,null]}};q.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Q=Object.getOwnPropertyDescriptor(q.DetermineComponentFrameRoot,"name");Q&&Q.configurable&&Object.defineProperty(q.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=q.DetermineComponentFrameRoot(),G=z[0],X=z[1];if(G&&X){var Y=G.split(`\n`),U=X.split(`\n`);for(Q=q=0;q<Y.length&&!Y[q].includes("DetermineComponentFrameRoot");)q++;for(;Q<U.length&&!U[Q].includes("DetermineComponentFrameRoot");)Q++;if(q===Y.length||Q===U.length)for(q=Y.length-1,Q=U.length-1;1<=q&&0<=Q&&Y[q]!==U[Q];)Q--;for(;1<=q&&0<=Q;q--,Q--)if(Y[q]!==U[Q]){if(q!==1||Q!==1)do if(q--,Q--,0>Q||Y[q]!==U[Q]){var H=`\n`+Y[q].replace(" at new "," at ");return A.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",A.displayName)),H}while(1<=q&&0<=Q);break}}}finally{k3=!1,Error.prepareStackTrace=J}return(J=A?A.displayName||A.name:"")?S9(J):""}function zw(A,Z){switch(A.tag){case 26:case 27:case 5:return S9(A.type);case 16:return S9("Lazy");case 13:return A.child!==Z&&Z!==null?S9("Suspense Fallback"):S9("Suspense");case 19:return S9("SuspenseList");case 0:case 15:return j3(A.type,!1);case 11:return j3(A.type.render,!1);case 1:return j3(A.type,!0);case 31:return S9("Activity");default:return""}}function PB(A){try{var Z="",J=null;do Z+=zw(A,J),J=A,A=A.return;while(A);return Z}catch(q){return`\nError generating stack: `+q.message+`\n`+q.stack}}function PA(A){if(typeof Hw==="function"&&Ww(A),_6&&typeof _6.setStrictMode==="function")try{_6.setStrictMode(BZ,A)}catch(Z){}}function $w(A){return A>>>=0,A===0?32:31-(Bw(A)/Kw|0)|0}function P9(A){var Z=A&42;if(Z!==0)return Z;switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return A&261888;case 262144:case 524288:case 1048576:case 2097152:return A&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return A&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return A}}function pq(A,Z,J){var q=A.pendingLanes;if(q===0)return 0;var Q=0,z=A.suspendedLanes,G=A.pingedLanes;A=A.warmLanes;var X=q&134217727;return X!==0?(q=X&~z,q!==0?Q=P9(q):(G&=X,G!==0?Q=P9(G):J||(J=X&~A,J!==0&&(Q=P9(J))))):(X=q&~z,X!==0?Q=P9(X):G!==0?Q=P9(G):J||(J=q&~A,J!==0&&(Q=P9(J)))),Q===0?0:Z!==0&&Z!==Q&&(Z&z)===0&&(z=Q&-Q,J=Z&-Z,z>=J||z===32&&(J&4194048)!==0)?Z:Q}function KZ(A,Z){return(A.pendingLanes&~(A.suspendedLanes&~A.pingedLanes)&Z)===0}function Lw(A,Z){switch(A){case 1:case 2:case 4:case 8:case 64:return Z+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Z+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function X$(){var A=uJ;return uJ<<=1,(uJ&62914560)===0&&(uJ=4194304),A}function N3(A){for(var Z=[],J=0;31>J;J++)Z.push(A);return Z}function $Z(A,Z){A.pendingLanes|=Z,Z!==268435456&&(A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0)}function Vw(A,Z,J,q,Q,z){var G=A.pendingLanes;A.pendingLanes=J,A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0,A.expiredLanes&=J,A.entangledLanes&=J,A.errorRecoveryDisabledLanes&=J,A.shellSuspendCounter=0;var{entanglements:X,expirationTimes:Y,hiddenUpdates:U}=A;for(J=G&~J;0<J;){var H=31-k6(J),W=1<<H;X[H]=0,Y[H]=-1;var B=U[H];if(B!==null)for(U[H]=null,H=0;H<B.length;H++){var K=B[H];K!==null&&(K.lane&=-536870913)}J&=~W}q!==0&&Y$(A,q,0),z!==0&&Q===0&&A.tag!==0&&(A.suspendedLanes|=z&~(G&~Z))}function Y$(A,Z,J){A.pendingLanes|=Z,A.suspendedLanes&=~Z;var q=31-k6(Z);A.entangledLanes|=Z,A.entanglements[q]=A.entanglements[q]|1073741824|J&261930}function U$(A,Z){var J=A.entangledLanes|=Z;for(A=A.entanglements;J;){var q=31-k6(J),Q=1<<q;Q&Z|A[q]&Z&&(A[q]|=Z),J&=~Q}}function H$(A,Z){var J=Z&-Z;return J=(J&42)!==0?1:nX(J),(J&(A.suspendedLanes|Z))!==0?0:J}function nX(A){switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:A=128;break;case 268435456:A=134217728;break;default:A=0}return A}function tX(A){return A&=-A,2<A?8<A?(A&134217727)!==0?32:268435456:8:2}function W$(){var A=W1.p;if(A!==0)return A;return A=window.event,A===void 0?32:bV(A.type)}function IB(A,Z){var J=W1.p;try{return W1.p=A,Z()}finally{W1.p=J}}function eX(A){delete A[f2],delete A[X6],delete A[zX],delete A[Mw],delete A[Fw]}function J7(A){var Z=A[f2];if(Z)return Z;for(var J=A.parentNode;J;){if(Z=J[S7]||J[f2]){if(J=Z.alternate,Z.child!==null||J!==null&&J.child!==null)for(A=gK(A);A!==null;){if(J=A[f2])return J;A=gK(A)}return Z}A=J,J=A.parentNode}return null}function P7(A){if(A=A[f2]||A[S7]){var Z=A.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return A}return null}function P8(A){var Z=A.tag;if(Z===5||Z===26||Z===27||Z===6)return A.stateNode;throw Error(i(33))}function B7(A){var Z=A[fB];return Z||(Z=A[fB]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function T2(A){A[LZ]=!0}function l9(A,Z){k7(A,Z),k7(A+"Capture",Z)}function k7(A,Z){K$[A]=Z;for(A=0;A<Z.length;A++)B$.add(Z[A])}function kw(A){if(QX.call(RB,A))return!0;if(QX.call(bB,A))return!1;if(_w.test(A))return RB[A]=!0;return bB[A]=!0,!1}function nJ(A,Z,J){if(kw(Z))if(J===null)A.removeAttribute(Z);else{switch(typeof J){case"undefined":case"function":case"symbol":A.removeAttribute(Z);return;case"boolean":var q=Z.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){A.removeAttribute(Z);return}}A.setAttribute(Z,""+J)}}function cJ(A,Z,J){if(J===null)A.removeAttribute(Z);else{switch(typeof J){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(Z);return}A.setAttribute(Z,""+J)}}function i4(A,Z,J,q){if(q===null)A.removeAttribute(J);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(J);return}A.setAttributeNS(Z,J,""+q)}}function R6(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function $$(A){var Z=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function jw(A,Z,J){var q=Object.getOwnPropertyDescriptor(A.constructor.prototype,Z);if(!A.hasOwnProperty(Z)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:Q,set:z}=q;return Object.defineProperty(A,Z,{configurable:!0,get:function(){return Q.call(this)},set:function(G){J=""+G,z.call(this,G)}}),Object.defineProperty(A,Z,{enumerable:q.enumerable}),{getValue:function(){return J},setValue:function(G){J=""+G},stopTracking:function(){A._valueTracker=null,delete A[Z]}}}}function GX(A){if(!A._valueTracker){var Z=$$(A)?"checked":"value";A._valueTracker=jw(A,Z,""+A[Z])}}function L$(A){if(!A)return!1;var Z=A._valueTracker;if(!Z)return!0;var J=Z.getValue(),q="";return A&&(q=$$(A)?A.checked?"true":"false":A.value),A=q,A!==J?(Z.setValue(A),!0):!1}function Mq(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch(Z){return A.body}}function v6(A){return A.replace(Cw,function(Z){return"\\\\"+Z.charCodeAt(0).toString(16)+" "})}function XX(A,Z,J,q,Q,z,G,X){if(A.name="",G!=null&&typeof G!=="function"&&typeof G!=="symbol"&&typeof G!=="boolean"?A.type=G:A.removeAttribute("type"),Z!=null)if(G==="number"){if(Z===0&&A.value===""||A.value!=Z)A.value=""+R6(Z)}else A.value!==""+R6(Z)&&(A.value=""+R6(Z));else G!=="submit"&&G!=="reset"||A.removeAttribute("value");Z!=null?YX(A,G,R6(Z)):J!=null?YX(A,G,R6(J)):q!=null&&A.removeAttribute("value"),Q==null&&z!=null&&(A.defaultChecked=!!z),Q!=null&&(A.checked=Q&&typeof Q!=="function"&&typeof Q!=="symbol"),X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"?A.name=""+R6(X):A.removeAttribute("name")}function V$(A,Z,J,q,Q,z,G,X){if(z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(A.type=z),Z!=null||J!=null){if(!(z!=="submit"&&z!=="reset"||Z!==void 0&&Z!==null)){GX(A);return}J=J!=null?""+R6(J):"",Z=Z!=null?""+R6(Z):J,X||Z===A.value||(A.value=Z),A.defaultValue=Z}q=q!=null?q:Q,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,A.checked=X?A.checked:!!q,A.defaultChecked=!!q,G!=null&&typeof G!=="function"&&typeof G!=="symbol"&&typeof G!=="boolean"&&(A.name=G),GX(A)}function YX(A,Z,J){Z==="number"&&Mq(A.ownerDocument)===A||A.defaultValue===""+J||(A.defaultValue=""+J)}function K7(A,Z,J,q){if(A=A.options,Z){Z={};for(var Q=0;Q<J.length;Q++)Z["$"+J[Q]]=!0;for(J=0;J<A.length;J++)Q=Z.hasOwnProperty("$"+A[J].value),A[J].selected!==Q&&(A[J].selected=Q),Q&&q&&(A[J].defaultSelected=!0)}else{J=""+R6(J),Z=null;for(Q=0;Q<A.length;Q++){if(A[Q].value===J){A[Q].selected=!0,q&&(A[Q].defaultSelected=!0);return}Z!==null||A[Q].disabled||(Z=A[Q])}Z!==null&&(Z.selected=!0)}}function M$(A,Z,J){if(Z!=null&&(Z=""+R6(Z),Z!==A.value&&(A.value=Z),J==null)){A.defaultValue!==Z&&(A.defaultValue=Z);return}A.defaultValue=J!=null?""+R6(J):""}function F$(A,Z,J,q){if(Z==null){if(q!=null){if(J!=null)throw Error(i(92));if(S8(q)){if(1<q.length)throw Error(i(93));q=q[0]}J=q}J==null&&(J=""),Z=J}J=R6(Z),A.defaultValue=J,q=A.textContent,q===J&&q!==""&&q!==null&&(A.value=q),GX(A)}function j7(A,Z){if(Z){var J=A.firstChild;if(J&&J===A.lastChild&&J.nodeType===3){J.nodeValue=Z;return}}A.textContent=Z}function yB(A,Z,J){var q=Z.indexOf("--")===0;J==null||typeof J==="boolean"||J===""?q?A.setProperty(Z,""):Z==="float"?A.cssFloat="":A[Z]="":q?A.setProperty(Z,J):typeof J!=="number"||J===0||Nw.has(Z)?Z==="float"?A.cssFloat=J:A[Z]=(""+J).trim():A[Z]=J+"px"}function _$(A,Z,J){if(Z!=null&&typeof Z!=="object")throw Error(i(62));if(A=A.style,J!=null){for(var q in J)!J.hasOwnProperty(q)||Z!=null&&Z.hasOwnProperty(q)||(q.indexOf("--")===0?A.setProperty(q,""):q==="float"?A.cssFloat="":A[q]="");for(var Q in Z)q=Z[Q],Z.hasOwnProperty(Q)&&J[Q]!==q&&yB(A,Q,q)}else for(var z in Z)Z.hasOwnProperty(z)&&yB(A,z,Z[z])}function AY(A){if(A.indexOf("-")===-1)return!1;switch(A){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function tJ(A){return Dw.test(""+A)?"javascript:throw new Error(\'React has blocked a javascript: URL as a security precaution.\')":A}function AA(){}function ZY(A){return A=A.target||A.srcElement||window,A.correspondingUseElement&&(A=A.correspondingUseElement),A.nodeType===3?A.parentNode:A}function EB(A){var Z=P7(A);if(Z&&(A=Z.stateNode)){var J=A[X6]||null;A:switch(A=Z.stateNode,Z.type){case"input":if(XX(A,J.value,J.defaultValue,J.defaultValue,J.checked,J.defaultChecked,J.type,J.name),Z=J.name,J.type==="radio"&&Z!=null){for(J=A;J.parentNode;)J=J.parentNode;J=J.querySelectorAll(\'input[name="\'+v6(""+Z)+\'"][type="radio"]\');for(Z=0;Z<J.length;Z++){var q=J[Z];if(q!==A&&q.form===A.form){var Q=q[X6]||null;if(!Q)throw Error(i(90));XX(q,Q.value,Q.defaultValue,Q.defaultValue,Q.checked,Q.defaultChecked,Q.type,Q.name)}}for(Z=0;Z<J.length;Z++)q=J[Z],q.form===A.form&&L$(q)}break A;case"textarea":M$(A,J.value,J.defaultValue);break A;case"select":Z=J.value,Z!=null&&K7(A,!!J.multiple,Z,!1)}}}function k$(A,Z,J){if(O3)return A(Z,J);O3=!0;try{var q=A(Z);return q}finally{if(O3=!1,q7!==null||$7!==null){if(ZQ(),q7&&(Z=q7,A=$7,$7=q7=null,EB(Z),A))for(Z=0;Z<A.length;Z++)EB(A[Z])}}}function t8(A,Z){var J=A.stateNode;if(J===null)return null;var q=J[X6]||null;if(q===null)return null;J=q[Z];A:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(A=A.type,q=!(A==="button"||A==="input"||A==="select"||A==="textarea")),A=!q;break A;default:A=!1}if(A)return null;if(J&&typeof J!=="function")throw Error(i(231,Z,typeof J));return J}function j$(){if(eJ)return eJ;var A,Z=JY,J=Z.length,q,Q="value"in IA?IA.value:IA.textContent,z=Q.length;for(A=0;A<J&&Z[A]===Q[A];A++);var G=J-A;for(q=1;q<=G&&Z[J-q]===Q[z-q];q++);return eJ=Q.slice(A,1<q?1-q:void 0)}function Aq(A){var Z=A.keyCode;return"charCode"in A?(A=A.charCode,A===0&&Z===13&&(A=13)):A=Z,A===10&&(A=13),32<=A||A===13?A:0}function mJ(){return!0}function vB(){return!1}function Y6(A){function Z(J,q,Q,z,G){this._reactName=J,this._targetInst=Q,this.type=q,this.nativeEvent=z,this.target=G,this.currentTarget=null;for(var X in A)A.hasOwnProperty(X)&&(J=A[X],this[X]=J?J(z):z[X]);return this.isDefaultPrevented=(z.defaultPrevented!=null?z.defaultPrevented:z.returnValue===!1)?mJ:vB,this.isPropagationStopped=vB,this}return p1(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var J=this.nativeEvent;J&&(J.preventDefault?J.preventDefault():typeof J.returnValue!=="unknown"&&(J.returnValue=!1),this.isDefaultPrevented=mJ)},stopPropagation:function(){var J=this.nativeEvent;J&&(J.stopPropagation?J.stopPropagation():typeof J.cancelBubble!=="unknown"&&(J.cancelBubble=!0),this.isPropagationStopped=mJ)},persist:function(){},isPersistent:mJ}),Z}function vw(A){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState(A):(A=Ew[A])?!!Z[A]:!1}function qY(){return vw}function N$(A,Z){switch(A){case"keyup":return sw.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function O$(A){return A=A.detail,typeof A==="object"&&"data"in A?A.data:null}function tw(A,Z){switch(A){case"compositionend":return O$(Z);case"keypress":if(Z.which!==32)return null;return pB=!0,mB;case"textInput":return A=Z.data,A===mB&&pB?null:A;default:return null}}function ew(A,Z){if(Q7)return A==="compositionend"||!QY&&N$(A,Z)?(A=j$(),eJ=JY=IA=null,Q7=!1,A):null;switch(A){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return C$&&Z.locale!=="ko"?null:Z.data;default:return null}}function dB(A){var Z=A&&A.nodeName&&A.nodeName.toLowerCase();return Z==="input"?!!Ah[A.type]:Z==="textarea"?!0:!1}function D$(A,Z,J,q){q7?$7?$7.push(q):$7=[q]:q7=q,Z=Rq(Z,"onChange"),0<Z.length&&(J=new dq("onChange","change",null,J,q),A.push({event:J,listeners:Z}))}function Zh(A){kV(A,0)}function iq(A){var Z=P8(A);if(L$(Z))return A}function lB(A,Z){if(A==="change")return Z}function iB(){g8&&(g8.detachEvent("onpropertychange",w$),e8=g8=null)}function w$(A){if(A.propertyName==="value"&&iq(e8)){var Z=[];D$(Z,e8,A,ZY(A)),k$(Zh,Z)}}function Jh(A,Z,J){A==="focusin"?(iB(),g8=Z,e8=J,g8.attachEvent("onpropertychange",w$)):A==="focusout"&&iB()}function qh(A){if(A==="selectionchange"||A==="keyup"||A==="keydown")return iq(e8)}function Qh(A,Z){if(A==="click")return iq(Z)}function zh(A,Z){if(A==="input"||A==="change")return iq(Z)}function Gh(A,Z){return A===Z&&(A!==0||1/A===1/Z)||A!==A&&Z!==Z}function AZ(A,Z){if(C6(A,Z))return!0;if(typeof A!=="object"||A===null||typeof Z!=="object"||Z===null)return!1;var J=Object.keys(A),q=Object.keys(Z);if(J.length!==q.length)return!1;for(q=0;q<J.length;q++){var Q=J[q];if(!QX.call(Z,Q)||!C6(A[Q],Z[Q]))return!1}return!0}function rB(A){for(;A&&A.firstChild;)A=A.firstChild;return A}function oB(A,Z){var J=rB(A);A=0;for(var q;J;){if(J.nodeType===3){if(q=A+J.textContent.length,A<=Z&&q>=Z)return{node:J,offset:Z-A};A=q}A:{for(;J;){if(J.nextSibling){J=J.nextSibling;break A}J=J.parentNode}J=void 0}J=rB(J)}}function h$(A,Z){return A&&Z?A===Z?!0:A&&A.nodeType===3?!1:Z&&Z.nodeType===3?h$(A,Z.parentNode):("contains"in A)?A.contains(Z):A.compareDocumentPosition?!!(A.compareDocumentPosition(Z)&16):!1:!1}function x$(A){A=A!=null&&A.ownerDocument!=null&&A.ownerDocument.defaultView!=null?A.ownerDocument.defaultView:window;for(var Z=Mq(A.document);Z instanceof A.HTMLIFrameElement;){try{var J=typeof Z.contentWindow.location.href==="string"}catch(q){J=!1}if(J)A=Z.contentWindow;else break;Z=Mq(A.document)}return Z}function zY(A){var Z=A&&A.nodeName&&A.nodeName.toLowerCase();return Z&&(Z==="input"&&(A.type==="text"||A.type==="search"||A.type==="tel"||A.type==="url"||A.type==="password")||Z==="textarea"||A.contentEditable==="true")}function aB(A,Z,J){var q=J.window===J?J.document:J.nodeType===9?J:J.ownerDocument;BX||z7==null||z7!==Mq(q)||(q=z7,("selectionStart"in q)&&zY(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),u8&&AZ(u8,q)||(u8=q,q=Rq(WX,"onSelect"),0<q.length&&(Z=new dq("onSelect","select",null,Z,J),A.push({event:Z,listeners:q}),Z.target=z7)))}function x9(A,Z){var J={};return J[A.toLowerCase()]=Z.toLowerCase(),J["Webkit"+A]="webkit"+Z,J["Moz"+A]="moz"+Z,J}function r9(A){if(h3[A])return h3[A];if(!G7[A])return A;var Z=G7[A],J;for(J in Z)if(Z.hasOwnProperty(J)&&J in S$)return h3[A]=Z[J];return A}function Q4(A,Z){R$.set(A,Z),l9(Z,[A])}function rq(){for(var A=X7,Z=GY=X7=0;Z<A;){var J=b6[Z];b6[Z++]=null;var q=b6[Z];b6[Z++]=null;var Q=b6[Z];b6[Z++]=null;var z=b6[Z];if(b6[Z++]=null,q!==null&&Q!==null){var G=q.pending;G===null?Q.next=Q:(Q.next=G.next,G.next=Q),q.pending=Q}z!==0&&y$(J,Q,z)}}function oq(A,Z,J,q){b6[X7++]=A,b6[X7++]=Z,b6[X7++]=J,b6[X7++]=q,GY|=q,A.lanes|=q,A=A.alternate,A!==null&&(A.lanes|=q)}function XY(A,Z,J,q){return oq(A,Z,J,q),_q(A)}function o9(A,Z){return oq(A,null,null,Z),_q(A)}function y$(A,Z,J){A.lanes|=J;var q=A.alternate;q!==null&&(q.lanes|=J);for(var Q=!1,z=A.return;z!==null;)z.childLanes|=J,q=z.alternate,q!==null&&(q.childLanes|=J),z.tag===22&&(A=z.stateNode,A===null||A._visibility&1||(Q=!0)),A=z,z=z.return;return A.tag===3?(z=A.stateNode,Q&&Z!==null&&(Q=31-k6(J),A=z.hiddenUpdates,q=A[Q],q===null?A[Q]=[Z]:q.push(Z),Z.lane=J|536870912),z):null}function _q(A){if(50<a8)throw a8=0,bX=null,Error(i(185));for(var Z=A.return;Z!==null;)A=Z,Z=A.return;return A.tag===3?A.stateNode:null}function Wh(A,Z,J,q){this.tag=A,this.key=J,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function V6(A,Z,J,q){return new Wh(A,Z,J,q)}function YY(A){return A=A.prototype,!(!A||!A.isReactComponent)}function JA(A,Z){var J=A.alternate;return J===null?(J=V6(A.tag,Z,A.key,A.mode),J.elementType=A.elementType,J.type=A.type,J.stateNode=A.stateNode,J.alternate=A,A.alternate=J):(J.pendingProps=Z,J.type=A.type,J.flags=0,J.subtreeFlags=0,J.deletions=null),J.flags=A.flags&65011712,J.childLanes=A.childLanes,J.lanes=A.lanes,J.child=A.child,J.memoizedProps=A.memoizedProps,J.memoizedState=A.memoizedState,J.updateQueue=A.updateQueue,Z=A.dependencies,J.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext},J.sibling=A.sibling,J.index=A.index,J.ref=A.ref,J.refCleanup=A.refCleanup,J}function E$(A,Z){A.flags&=65011714;var J=A.alternate;return J===null?(A.childLanes=0,A.lanes=Z,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=J.childLanes,A.lanes=J.lanes,A.child=J.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=J.memoizedProps,A.memoizedState=J.memoizedState,A.updateQueue=J.updateQueue,A.type=J.type,Z=J.dependencies,A.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext}),A}function Jq(A,Z,J,q,Q,z){var G=0;if(q=A,typeof A==="function")YY(A)&&(G=1);else if(typeof A==="string")G=$x(A,J,O4.current)?26:A==="html"||A==="head"||A==="body"?27:5;else A:switch(A){case AX:return A=V6(31,J,Z,Q),A.elementType=AX,A.lanes=z,A;case A7:return y9(J.children,Q,z,Z);case J$:G=8,Q|=24;break;case n3:return A=V6(12,J,Z,Q|2),A.elementType=n3,A.lanes=z,A;case t3:return A=V6(13,J,Z,Q),A.elementType=t3,A.lanes=z,A;case e3:return A=V6(19,J,Z,Q),A.elementType=e3,A.lanes=z,A;default:if(typeof A==="object"&&A!==null)switch(A.$$typeof){case e4:G=10;break A;case q$:G=9;break A;case oX:G=11;break A;case aX:G=14;break A;case DA:G=16,q=null;break A}G=29,J=Error(i(130,A===null?"null":typeof A,"")),q=null}return Z=V6(G,J,Z,Q),Z.elementType=A,Z.type=q,Z.lanes=z,Z}function y9(A,Z,J,q){return A=V6(7,A,q,Z),A.lanes=J,A}function x3(A,Z,J){return A=V6(6,A,null,Z),A.lanes=J,A}function v$(A){var Z=V6(18,null,null,0);return Z.stateNode=A,Z}function S3(A,Z,J){return Z=V6(4,A.children!==null?A.children:[],A.key,Z),Z.lanes=J,Z.stateNode={containerInfo:A.containerInfo,pendingChildren:null,implementation:A.implementation},Z}function g6(A,Z){if(typeof A==="object"&&A!==null){var J=sB.get(A);if(J!==void 0)return J;return Z={value:A,source:Z,stack:PB(Z)},sB.set(A,Z),Z}return{value:A,source:Z,stack:PB(Z)}}function n4(A,Z){U7[H7++]=ZZ,U7[H7++]=kq,kq=A,ZZ=Z}function g$(A,Z,J){y6[E6++]=j4,y6[E6++]=C4,y6[E6++]=lA,lA=A;var q=j4;A=C4;var Q=32-k6(q)-1;q&=~(1<<Q),J+=1;var z=32-k6(Z)+Q;if(30<z){var G=Q-Q%5;z=(q&(1<<G)-1).toString(32),q>>=G,Q-=G,j4=1<<32-k6(Z)+Q|J<<Q|q,C4=z+A}else j4=1<<z|J<<Q|q,C4=A}function UY(A){A.return!==null&&(n4(A,1),g$(A,1,0))}function HY(A){for(;A===kq;)kq=U7[--H7],U7[H7]=null,ZZ=U7[--H7],U7[H7]=null;for(;A===lA;)lA=y6[--E6],y6[E6]=null,C4=y6[--E6],y6[E6]=null,j4=y6[--E6],y6[E6]=null}function u$(A,Z){y6[E6++]=j4,y6[E6++]=C4,y6[E6++]=lA,j4=Z.id,C4=Z.overflow,lA=A}function iA(A){var Z=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw JZ(g6(Z,A)),$X}function nB(A){var{stateNode:Z,type:J,memoizedProps:q}=A;switch(Z[f2]=A,Z[X6]=q,J){case"dialog":p0("cancel",Z),p0("close",Z);break;case"iframe":case"object":case"embed":p0("load",Z);break;case"video":case"audio":for(J=0;J<GZ.length;J++)p0(GZ[J],Z);break;case"source":p0("error",Z);break;case"img":case"image":case"link":p0("error",Z),p0("load",Z);break;case"details":p0("toggle",Z);break;case"input":p0("invalid",Z),V$(Z,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"select":p0("invalid",Z);break;case"textarea":p0("invalid",Z),F$(Z,q.value,q.defaultValue,q.children)}J=q.children,typeof J!=="string"&&typeof J!=="number"&&typeof J!=="bigint"||Z.textContent===""+J||q.suppressHydrationWarning===!0||CV(Z.textContent,J)?(q.popover!=null&&(p0("beforetoggle",Z),p0("toggle",Z)),q.onScroll!=null&&p0("scroll",Z),q.onScrollEnd!=null&&p0("scrollend",Z),q.onClick!=null&&(Z.onclick=AA),Z=!0):Z=!1,Z||iA(A,!0)}function tB(A){for(b2=A.return;b2;)switch(b2.tag){case 5:case 31:case 13:u6=!1;return;case 27:case 3:u6=!0;return;default:b2=b2.return}}function a5(A){if(A!==b2)return!1;if(!t0)return tB(A),t0=!0,!1;var Z=A.tag,J;if(J=Z!==3&&Z!==27){if(J=Z===5)J=A.type,J=!(J!=="form"&&J!=="button")||cX(A.type,A.memoizedProps);J=!J}if(J&&m1&&iA(A),tB(A),Z===13){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));m1=vK(A)}else if(Z===31){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));m1=vK(A)}else Z===27?(Z=m1,sA(A.type)?(A=lX,lX=null,m1=A):m1=Z):m1=b2?m6(A.stateNode.nextSibling):null;return!0}function u9(){m1=b2=null,t0=!1}function P3(){var A=EA;return A!==null&&(z6===null?z6=A:z6.push.apply(z6,A),EA=null),A}function JZ(A){EA===null?EA=[A]:EA.push(A)}function wA(A,Z,J){E1(LX,Z._currentValue),Z._currentValue=J}function qA(A){A._currentValue=LX.current,w2(LX)}function VX(A,Z,J){for(;A!==null;){var q=A.alternate;if((A.childLanes&Z)!==Z?(A.childLanes|=Z,q!==null&&(q.childLanes|=Z)):q!==null&&(q.childLanes&Z)!==Z&&(q.childLanes|=Z),A===J)break;A=A.return}}function MX(A,Z,J,q){var Q=A.child;Q!==null&&(Q.return=A);for(;Q!==null;){var z=Q.dependencies;if(z!==null){var G=Q.child;z=z.firstContext;A:for(;z!==null;){var X=z;z=Q;for(var Y=0;Y<Z.length;Y++)if(X.context===Z[Y]){z.lanes|=J,X=z.alternate,X!==null&&(X.lanes|=J),VX(z.return,J,A),q||(G=null);break A}z=X.next}}else if(Q.tag===18){if(G=Q.return,G===null)throw Error(i(341));G.lanes|=J,z=G.alternate,z!==null&&(z.lanes|=J),VX(G,J,A),G=null}else G=Q.child;if(G!==null)G.return=Q;else for(G=Q;G!==null;){if(G===A){G=null;break}if(Q=G.sibling,Q!==null){Q.return=G.return,G=Q;break}G=G.return}Q=G}}function I7(A,Z,J,q){A=null;for(var Q=Z,z=!1;Q!==null;){if(!z){if((Q.flags&524288)!==0)z=!0;else if((Q.flags&262144)!==0)break}if(Q.tag===10){var G=Q.alternate;if(G===null)throw Error(i(387));if(G=G.memoizedProps,G!==null){var X=Q.type;C6(Q.pendingProps.value,G.value)||(A!==null?A.push(X):A=[X])}}else if(Q===Kq.current){if(G=Q.alternate,G===null)throw Error(i(387));G.memoizedState.memoizedState!==Q.memoizedState.memoizedState&&(A!==null?A.push(YZ):A=[YZ])}Q=Q.return}A!==null&&MX(Z,A,J,q),Z.flags|=262144}function jq(A){for(A=A.firstContext;A!==null;){if(!C6(A.context._currentValue,A.memoizedValue))return!0;A=A.next}return!1}function c9(A){a9=A,ZA=null,A=A.dependencies,A!==null&&(A.firstContext=null)}function R2(A){return c$(a9,A)}function pJ(A,Z){return a9===null&&c9(A),c$(A,Z)}function c$(A,Z){var J=Z._currentValue;if(Z={context:Z,memoizedValue:J,next:null},ZA===null){if(A===null)throw Error(i(308));ZA=Z,A.dependencies={lanes:0,firstContext:Z},A.flags|=524288}else ZA=ZA.next=Z;return J}function WY(){return{controller:new Bh,data:new Map,refCount:0}}function MZ(A){A.refCount--,A.refCount===0&&Kh($h,function(){A.controller.abort()})}function Lh(A,Z){if(c8===null){var J=c8=[];FX=0,C7=yY(),L7={status:"pending",value:void 0,then:function(q){J.push(q)}}}return FX++,Z.then(eB,eB),Z}function eB(){if(--FX===0&&c8!==null){L7!==null&&(L7.status="fulfilled");var A=c8;c8=null,C7=0,L7=null;for(var Z=0;Z<A.length;Z++)(0,A[Z])()}}function Vh(A,Z){var J=[],q={status:"pending",value:null,reason:null,then:function(Q){J.push(Q)}};return A.then(function(){q.status="fulfilled",q.value=Z;for(var Q=0;Q<J.length;Q++)(0,J[Q])(Z)},function(Q){q.status="rejected",q.reason=Q;for(Q=0;Q<J.length;Q++)(0,J[Q])(void 0)}),q}function BY(){var A=E9.current;return A!==null?A:R1.pooledCache}function qq(A,Z){Z===null?E1(E9,E9.current):E1(E9,Z.pool)}function m$(){var A=BY();return A===null?null:{parent:B2._currentValue,pool:A}}function ZK(A){return A=A.status,A==="fulfilled"||A==="rejected"}function p$(A,Z,J){switch(J=A[J],J===void 0?A.push(Z):J!==Z&&(Z.then(AA,AA),Z=J),Z.status){case"fulfilled":return Z.value;case"rejected":throw A=Z.reason,qK(A),A;default:if(typeof Z.status==="string")Z.then(AA,AA);else{if(A=R1,A!==null&&100<A.shellSuspendCounter)throw Error(i(482));A=Z,A.status="pending",A.then(function(q){if(Z.status==="pending"){var Q=Z;Q.status="fulfilled",Q.value=q}},function(q){if(Z.status==="pending"){var Q=Z;Q.status="rejected",Q.reason=q}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw A=Z.reason,qK(A),A}throw v9=Z,f7}}function f9(A){try{var Z=A._init;return Z(A._payload)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw v9=J,f7;throw J}}function JK(){if(v9===null)throw Error(i(459));var A=v9;return v9=null,A}function qK(A){if(A===f7||A===aq)throw Error(i(483))}function dJ(A){var Z=qZ;return qZ+=1,V7===null&&(V7=[]),p$(V7,A,Z)}function D8(A,Z){Z=Z.props.ref,A.ref=Z!==void 0?Z:null}function lJ(A,Z){if(Z.$$typeof===Jw)throw Error(i(525));throw A=Object.prototype.toString.call(Z),Error(i(31,A==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":A))}function d$(A){function Z($,L){if(A){var M=$.deletions;M===null?($.deletions=[L],$.flags|=16):M.push(L)}}function J($,L){if(!A)return null;for(;L!==null;)Z($,L),L=L.sibling;return null}function q($){for(var L=new Map;$!==null;)$.key!==null?L.set($.key,$):L.set($.index,$),$=$.sibling;return L}function Q($,L){return $=JA($,L),$.index=0,$.sibling=null,$}function z($,L,M){if($.index=M,!A)return $.flags|=1048576,L;if(M=$.alternate,M!==null)return M=M.index,M<L?($.flags|=67108866,L):M;return $.flags|=67108866,L}function G($){return A&&$.alternate===null&&($.flags|=67108866),$}function X($,L,M,_){if(L===null||L.tag!==6)return L=x3(M,$.mode,_),L.return=$,L;return L=Q(L,M),L.return=$,L}function Y($,L,M,_){var k=M.type;if(k===A7)return H($,L,M.props.children,_,M.key);if(L!==null&&(L.elementType===k||typeof k==="object"&&k!==null&&k.$$typeof===DA&&f9(k)===L.type))return L=Q(L,M.props),D8(L,M),L.return=$,L;return L=Jq(M.type,M.key,M.props,null,$.mode,_),D8(L,M),L.return=$,L}function U($,L,M,_){if(L===null||L.tag!==4||L.stateNode.containerInfo!==M.containerInfo||L.stateNode.implementation!==M.implementation)return L=S3(M,$.mode,_),L.return=$,L;return L=Q(L,M.children||[]),L.return=$,L}function H($,L,M,_,k){if(L===null||L.tag!==7)return L=y9(M,$.mode,_,k),L.return=$,L;return L=Q(L,M),L.return=$,L}function W($,L,M){if(typeof L==="string"&&L!==""||typeof L==="number"||typeof L==="bigint")return L=x3(""+L,$.mode,M),L.return=$,L;if(typeof L==="object"&&L!==null){switch(L.$$typeof){case EJ:return M=Jq(L.type,L.key,L.props,null,$.mode,M),D8(M,L),M.return=$,M;case x8:return L=S3(L,$.mode,M),L.return=$,L;case DA:return L=f9(L),W($,L,M)}if(S8(L)||N8(L))return L=y9(L,$.mode,M,null),L.return=$,L;if(typeof L.then==="function")return W($,dJ(L),M);if(L.$$typeof===e4)return W($,pJ($,L),M);lJ($,L)}return null}function B($,L,M,_){var k=L!==null?L.key:null;if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return k!==null?null:X($,L,""+M,_);if(typeof M==="object"&&M!==null){switch(M.$$typeof){case EJ:return M.key===k?Y($,L,M,_):null;case x8:return M.key===k?U($,L,M,_):null;case DA:return M=f9(M),B($,L,M,_)}if(S8(M)||N8(M))return k!==null?null:H($,L,M,_,null);if(typeof M.then==="function")return B($,L,dJ(M),_);if(M.$$typeof===e4)return B($,L,pJ($,M),_);lJ($,M)}return null}function K($,L,M,_,k){if(typeof _==="string"&&_!==""||typeof _==="number"||typeof _==="bigint")return $=$.get(M)||null,X(L,$,""+_,k);if(typeof _==="object"&&_!==null){switch(_.$$typeof){case EJ:return $=$.get(_.key===null?M:_.key)||null,Y(L,$,_,k);case x8:return $=$.get(_.key===null?M:_.key)||null,U(L,$,_,k);case DA:return _=f9(_),K($,L,M,_,k)}if(S8(_)||N8(_))return $=$.get(M)||null,H(L,$,_,k,null);if(typeof _.then==="function")return K($,L,M,dJ(_),k);if(_.$$typeof===e4)return K($,L,M,pJ(L,_),k);lJ(L,_)}return null}function V($,L,M,_){for(var k=null,C=null,O=L,N=L=0,D=null;O!==null&&N<M.length;N++){O.index>N?(D=O,O=null):D=O.sibling;var T=B($,O,M[N],_);if(T===null){O===null&&(O=D);break}A&&O&&T.alternate===null&&Z($,O),L=z(T,L,N),C===null?k=T:C.sibling=T,C=T,O=D}if(N===M.length)return J($,O),t0&&n4($,N),k;if(O===null){for(;N<M.length;N++)O=W($,M[N],_),O!==null&&(L=z(O,L,N),C===null?k=O:C.sibling=O,C=O);return t0&&n4($,N),k}for(O=q(O);N<M.length;N++)D=K(O,$,N,M[N],_),D!==null&&(A&&D.alternate!==null&&O.delete(D.key===null?N:D.key),L=z(D,L,N),C===null?k=D:C.sibling=D,C=D);return A&&O.forEach(function(h){return Z($,h)}),t0&&n4($,N),k}function F($,L,M,_){if(M==null)throw Error(i(151));for(var k=null,C=null,O=L,N=L=0,D=null,T=M.next();O!==null&&!T.done;N++,T=M.next()){O.index>N?(D=O,O=null):D=O.sibling;var h=B($,O,T.value,_);if(h===null){O===null&&(O=D);break}A&&O&&h.alternate===null&&Z($,O),L=z(h,L,N),C===null?k=h:C.sibling=h,C=h,O=D}if(T.done)return J($,O),t0&&n4($,N),k;if(O===null){for(;!T.done;N++,T=M.next())T=W($,T.value,_),T!==null&&(L=z(T,L,N),C===null?k=T:C.sibling=T,C=T);return t0&&n4($,N),k}for(O=q(O);!T.done;N++,T=M.next())T=K(O,$,N,T.value,_),T!==null&&(A&&T.alternate!==null&&O.delete(T.key===null?N:T.key),L=z(T,L,N),C===null?k=T:C.sibling=T,C=T);return A&&O.forEach(function(S){return Z($,S)}),t0&&n4($,N),k}function j($,L,M,_){if(typeof M==="object"&&M!==null&&M.type===A7&&M.key===null&&(M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case EJ:A:{for(var k=M.key;L!==null;){if(L.key===k){if(k=M.type,k===A7){if(L.tag===7){J($,L.sibling),_=Q(L,M.props.children),_.return=$,$=_;break A}}else if(L.elementType===k||typeof k==="object"&&k!==null&&k.$$typeof===DA&&f9(k)===L.type){J($,L.sibling),_=Q(L,M.props),D8(_,M),_.return=$,$=_;break A}J($,L);break}else Z($,L);L=L.sibling}M.type===A7?(_=y9(M.props.children,$.mode,_,M.key),_.return=$,$=_):(_=Jq(M.type,M.key,M.props,null,$.mode,_),D8(_,M),_.return=$,$=_)}return G($);case x8:A:{for(k=M.key;L!==null;){if(L.key===k)if(L.tag===4&&L.stateNode.containerInfo===M.containerInfo&&L.stateNode.implementation===M.implementation){J($,L.sibling),_=Q(L,M.children||[]),_.return=$,$=_;break A}else{J($,L);break}else Z($,L);L=L.sibling}_=S3(M,$.mode,_),_.return=$,$=_}return G($);case DA:return M=f9(M),j($,L,M,_)}if(S8(M))return V($,L,M,_);if(N8(M)){if(k=N8(M),typeof k!=="function")throw Error(i(150));return M=k.call(M),F($,L,M,_)}if(typeof M.then==="function")return j($,L,dJ(M),_);if(M.$$typeof===e4)return j($,L,pJ($,M),_);lJ($,M)}return typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint"?(M=""+M,L!==null&&L.tag===6?(J($,L.sibling),_=Q(L,M),_.return=$,$=_):(J($,L),_=x3(M,$.mode,_),_.return=$,$=_),G($)):J($,L)}return function($,L,M,_){try{qZ=0;var k=j($,L,M,_);return V7=null,k}catch(O){if(O===f7||O===aq)throw O;var C=V6(29,O,null,$.mode);return C.lanes=_,C.return=$,C}finally{}}}function $Y(A){A.updateQueue={baseState:A.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _X(A,Z){A=A.updateQueue,Z.updateQueue===A&&(Z.updateQueue={baseState:A.baseState,firstBaseUpdate:A.firstBaseUpdate,lastBaseUpdate:A.lastBaseUpdate,shared:A.shared,callbacks:null})}function vA(A){return{lane:A,tag:0,payload:null,callback:null,next:null}}function gA(A,Z,J){var q=A.updateQueue;if(q===null)return null;if(q=q.shared,(H1&2)!==0){var Q=q.pending;return Q===null?Z.next=Z:(Z.next=Q.next,Q.next=Z),q.pending=Z,Z=_q(A),y$(A,null,J),Z}return oq(A,q,Z,J),_q(A)}function m8(A,Z,J){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(J&4194048)!==0)){var q=Z.lanes;q&=A.pendingLanes,J|=q,Z.lanes=J,U$(A,J)}}function I3(A,Z){var{updateQueue:J,alternate:q}=A;if(q!==null&&(q=q.updateQueue,J===q)){var Q=null,z=null;if(J=J.firstBaseUpdate,J!==null){do{var G={lane:J.lane,tag:J.tag,payload:J.payload,callback:null,next:null};z===null?Q=z=G:z=z.next=G,J=J.next}while(J!==null);z===null?Q=z=Z:z=z.next=Z}else Q=z=Z;J={baseState:q.baseState,firstBaseUpdate:Q,lastBaseUpdate:z,shared:q.shared,callbacks:q.callbacks},A.updateQueue=J;return}A=J.lastBaseUpdate,A===null?J.firstBaseUpdate=Z:A.next=Z,J.lastBaseUpdate=Z}function p8(){if(kX){var A=L7;if(A!==null)throw A}}function d8(A,Z,J,q){kX=!1;var Q=A.updateQueue;TA=!1;var{firstBaseUpdate:z,lastBaseUpdate:G}=Q,X=Q.shared.pending;if(X!==null){Q.shared.pending=null;var Y=X,U=Y.next;Y.next=null,G===null?z=U:G.next=U,G=Y;var H=A.alternate;H!==null&&(H=H.updateQueue,X=H.lastBaseUpdate,X!==G&&(X===null?H.firstBaseUpdate=U:X.next=U,H.lastBaseUpdate=Y))}if(z!==null){var W=Q.baseState;G=0,H=U=Y=null,X=z;do{var B=X.lane&-536870913,K=B!==X.lane;if(K?(s0&B)===B:(q&B)===B){B!==0&&B===C7&&(kX=!0),H!==null&&(H=H.next={lane:0,tag:X.tag,payload:X.payload,callback:null,next:null});A:{var V=A,F=X;B=Z;var j=J;switch(F.tag){case 1:if(V=F.payload,typeof V==="function"){W=V.call(j,W,B);break A}W=V;break A;case 3:V.flags=V.flags&-65537|128;case 0:if(V=F.payload,B=typeof V==="function"?V.call(j,W,B):V,B===null||B===void 0)break A;W=p1({},W,B);break A;case 2:TA=!0}}B=X.callback,B!==null&&(A.flags|=64,K&&(A.flags|=8192),K=Q.callbacks,K===null?Q.callbacks=[B]:K.push(B))}else K={lane:B,tag:X.tag,payload:X.payload,callback:X.callback,next:null},H===null?(U=H=K,Y=W):H=H.next=K,G|=B;if(X=X.next,X===null)if(X=Q.shared.pending,X===null)break;else K=X,X=K.next,K.next=null,Q.lastBaseUpdate=K,Q.shared.pending=null}while(1);H===null&&(Y=W),Q.baseState=Y,Q.firstBaseUpdate=U,Q.lastBaseUpdate=H,z===null&&(Q.shared.lanes=0),oA|=G,A.lanes=G,A.memoizedState=W}}function i$(A,Z){if(typeof A!=="function")throw Error(i(191,A));A.call(Z)}function r$(A,Z){var J=A.callbacks;if(J!==null)for(A.callbacks=null,A=0;A<J.length;A++)i$(J[A],Z)}function QK(A,Z){A=UA,E1(Nq,A),E1(N7,Z),UA=A|Z.baseLanes}function jX(){E1(Nq,UA),E1(N7,N7.current)}function LY(){UA=Nq.current,w2(N7),w2(Nq)}function hA(A){var Z=A.alternate;E1(Z2,Z2.current&1),E1(N6,A),c6===null&&(Z===null||N7.current!==null?c6=A:Z.memoizedState!==null&&(c6=A))}function CX(A){E1(Z2,Z2.current),E1(N6,A),c6===null&&(c6=A)}function o$(A){A.tag===22?(E1(Z2,Z2.current),E1(N6,A),c6===null&&(c6=A)):xA(A)}function xA(){E1(Z2,Z2.current),E1(N6,N6.current)}function L6(A){w2(N6),c6===A&&(c6=null),w2(Z2)}function Oq(A){for(var Z=A;Z!==null;){if(Z.tag===13){var J=Z.memoizedState;if(J!==null&&(J=J.dehydrated,J===null||pX(J)||dX(J)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===A)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===A)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function t1(){throw Error(i(321))}function VY(A,Z){if(Z===null)return!1;for(var J=0;J<Z.length&&J<A.length;J++)if(!C6(A[J],Z[J]))return!1;return!0}function MY(A,Z,J,q,Q,z){return GA=z,R0=Z,Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,S0.H=A===null||A.memoizedState===null?DL:hY,p9=!1,z=J(q,Q),p9=!1,M7&&(z=s$(Z,J,q,Q)),a$(A),z}function a$(A){S0.H=zZ;var Z=S1!==null&&S1.next!==null;if(GA=0,H2=S1=R0=null,Dq=!1,QZ=0,F7=null,Z)throw Error(i(300));A===null||K2||(A=A.dependencies,A!==null&&jq(A)&&(K2=!0))}function s$(A,Z,J,q){R0=A;var Q=0;do{if(M7&&(F7=null),QZ=0,M7=!1,25<=Q)throw Error(i(301));if(Q+=1,H2=S1=null,A.updateQueue!=null){var z=A.updateQueue;z.lastEffect=null,z.events=null,z.stores=null,z.memoCache!=null&&(z.memoCache.index=0)}S0.H=TL,z=Z(J,q)}while(M7);return z}function Fh(){var A=S0.H,Z=A.useState()[0];return Z=typeof Z.then==="function"?FZ(Z):Z,A=A.useState()[0],(S1!==null?S1.memoizedState:null)!==A&&(R0.flags|=1024),Z}function FY(){var A=Tq!==0;return Tq=0,A}function _Y(A,Z,J){Z.updateQueue=A.updateQueue,Z.flags&=-2053,A.lanes&=~J}function kY(A){if(Dq){for(A=A.memoizedState;A!==null;){var Z=A.queue;Z!==null&&(Z.pending=null),A=A.next}Dq=!1}GA=0,H2=S1=R0=null,M7=!1,QZ=Tq=0,F7=null}function a2(){var A={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return H2===null?R0.memoizedState=H2=A:H2=H2.next=A,H2}function J2(){if(S1===null){var A=R0.alternate;A=A!==null?A.memoizedState:null}else A=S1.next;var Z=H2===null?R0.memoizedState:H2.next;if(Z!==null)H2=Z,S1=A;else{if(A===null){if(R0.alternate===null)throw Error(i(467));throw Error(i(310))}S1=A,A={memoizedState:S1.memoizedState,baseState:S1.baseState,baseQueue:S1.baseQueue,queue:S1.queue,next:null},H2===null?R0.memoizedState=H2=A:H2=H2.next=A}return H2}function sq(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function FZ(A){var Z=QZ;return QZ+=1,F7===null&&(F7=[]),A=p$(F7,A,Z),Z=R0,(H2===null?Z.memoizedState:H2.next)===null&&(Z=Z.alternate,S0.H=Z===null||Z.memoizedState===null?DL:hY),A}function nq(A){if(A!==null&&typeof A==="object"){if(typeof A.then==="function")return FZ(A);if(A.$$typeof===e4)return R2(A)}throw Error(i(438,String(A)))}function jY(A){var Z=null,J=R0.updateQueue;if(J!==null&&(Z=J.memoCache),Z==null){var q=R0.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(Z={data:q.data.map(function(Q){return Q.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),J===null&&(J=sq(),R0.updateQueue=J),J.memoCache=Z,J=Z.data[Z.index],J===void 0)for(J=Z.data[Z.index]=Array(A),q=0;q<A;q++)J[q]=qw;return Z.index++,J}function XA(A,Z){return typeof Z==="function"?Z(A):Z}function Qq(A){var Z=J2();return CY(Z,S1,A)}function CY(A,Z,J){var q=A.queue;if(q===null)throw Error(i(311));q.lastRenderedReducer=J;var Q=A.baseQueue,z=q.pending;if(z!==null){if(Q!==null){var G=Q.next;Q.next=z.next,z.next=G}Z.baseQueue=Q=z,q.pending=null}if(z=A.baseState,Q===null)A.memoizedState=z;else{Z=Q.next;var X=G=null,Y=null,U=Z,H=!1;do{var W=U.lane&-536870913;if(W!==U.lane?(s0&W)===W:(GA&W)===W){var B=U.revertLane;if(B===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),W===C7&&(H=!0);else if((GA&B)===B){U=U.next,B===C7&&(H=!0);continue}else W={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},Y===null?(X=Y=W,G=z):Y=Y.next=W,R0.lanes|=B,oA|=B;W=U.action,p9&&J(z,W),z=U.hasEagerState?U.eagerState:J(z,W)}else B={lane:W,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},Y===null?(X=Y=B,G=z):Y=Y.next=B,R0.lanes|=W,oA|=W;U=U.next}while(U!==null&&U!==Z);if(Y===null?G=z:Y.next=X,!C6(z,A.memoizedState)&&(K2=!0,H&&(J=L7,J!==null)))throw J;A.memoizedState=z,A.baseState=G,A.baseQueue=Y,q.lastRenderedState=z}return Q===null&&(q.lanes=0),[A.memoizedState,q.dispatch]}function f3(A){var Z=J2(),J=Z.queue;if(J===null)throw Error(i(311));J.lastRenderedReducer=A;var{dispatch:q,pending:Q}=J,z=Z.memoizedState;if(Q!==null){J.pending=null;var G=Q=Q.next;do z=A(z,G.action),G=G.next;while(G!==Q);C6(z,Z.memoizedState)||(K2=!0),Z.memoizedState=z,Z.baseQueue===null&&(Z.baseState=z),J.lastRenderedState=z}return[z,q]}function n$(A,Z,J){var q=R0,Q=J2(),z=t0;if(z){if(J===void 0)throw Error(i(407));J=J()}else J=Z();var G=!C6((S1||Q).memoizedState,J);if(G&&(Q.memoizedState=J,K2=!0),Q=Q.queue,NY(AL.bind(null,q,Q,A),[A]),Q.getSnapshot!==Z||G||H2!==null&&H2.memoizedState.tag&1){if(q.flags|=2048,O7(9,{destroy:void 0},e$.bind(null,q,Q,J,Z),null),R1===null)throw Error(i(349));z||(GA&127)!==0||t$(q,Z,J)}return J}function t$(A,Z,J){A.flags|=16384,A={getSnapshot:Z,value:J},Z=R0.updateQueue,Z===null?(Z=sq(),R0.updateQueue=Z,Z.stores=[A]):(J=Z.stores,J===null?Z.stores=[A]:J.push(A))}function e$(A,Z,J,q){Z.value=J,Z.getSnapshot=q,ZL(Z)&&JL(A)}function AL(A,Z,J){return J(function(){ZL(Z)&&JL(A)})}function ZL(A){var Z=A.getSnapshot;A=A.value;try{var J=Z();return!C6(A,J)}catch(q){return!0}}function JL(A){var Z=o9(A,2);Z!==null&&G6(Z,A,2)}function NX(A){var Z=a2();if(typeof A==="function"){var J=A;if(A=J(),p9){PA(!0);try{J()}finally{PA(!1)}}}return Z.memoizedState=Z.baseState=A,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:XA,lastRenderedState:A},Z}function qL(A,Z,J,q){return A.baseState=J,CY(A,S1,typeof q==="function"?q:XA)}function _h(A,Z,J,q,Q){if(eq(A))throw Error(i(485));if(A=Z.action,A!==null){var z={payload:Q,action:A,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(G){z.listeners.push(G)}};S0.T!==null?J(!0):z.isTransition=!1,q(z),J=Z.pending,J===null?(z.next=Z.pending=z,QL(Z,z)):(z.next=J.next,Z.pending=J.next=z)}}function QL(A,Z){var{action:J,payload:q}=Z,Q=A.state;if(Z.isTransition){var z=S0.T,G={};S0.T=G;try{var X=J(Q,q),Y=S0.S;Y!==null&&Y(G,X),zK(A,Z,X)}catch(U){OX(A,Z,U)}finally{z!==null&&G.types!==null&&(z.types=G.types),S0.T=z}}else try{z=J(Q,q),zK(A,Z,z)}catch(U){OX(A,Z,U)}}function zK(A,Z,J){J!==null&&typeof J==="object"&&typeof J.then==="function"?J.then(function(q){GK(A,Z,q)},function(q){return OX(A,Z,q)}):GK(A,Z,J)}function GK(A,Z,J){Z.status="fulfilled",Z.value=J,zL(Z),A.state=J,Z=A.pending,Z!==null&&(J=Z.next,J===Z?A.pending=null:(J=J.next,Z.next=J,QL(A,J)))}function OX(A,Z,J){var q=A.pending;if(A.pending=null,q!==null){q=q.next;do Z.status="rejected",Z.reason=J,zL(Z),Z=Z.next;while(Z!==q)}A.action=null}function zL(A){A=A.listeners;for(var Z=0;Z<A.length;Z++)(0,A[Z])()}function GL(A,Z){return Z}function XK(A,Z){if(t0){var J=R1.formState;if(J!==null){A:{var q=R0;if(t0){if(m1){Z:{var Q=m1;for(var z=u6;Q.nodeType!==8;){if(!z){Q=null;break Z}if(Q=m6(Q.nextSibling),Q===null){Q=null;break Z}}z=Q.data,Q=z==="F!"||z==="F"?Q:null}if(Q){m1=m6(Q.nextSibling),q=Q.data==="F!";break A}}iA(q)}q=!1}q&&(Z=J[0])}}return J=a2(),J.memoizedState=J.baseState=Z,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:GL,lastRenderedState:Z},J.queue=q,J=CL.bind(null,R0,q),q.dispatch=J,q=NX(!1),z=wY.bind(null,R0,!1,q.queue),q=a2(),Q={state:Z,dispatch:null,action:A,pending:null},q.queue=Q,J=_h.bind(null,R0,Q,z,J),Q.dispatch=J,q.memoizedState=A,[Z,J,!1]}function YK(A){var Z=J2();return XL(Z,S1,A)}function XL(A,Z,J){if(Z=CY(A,Z,GL)[0],A=Qq(XA)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var q=FZ(Z)}catch(G){if(G===f7)throw aq;throw G}else q=Z;Z=J2();var Q=Z.queue,z=Q.dispatch;return J!==Z.memoizedState&&(R0.flags|=2048,O7(9,{destroy:void 0},kh.bind(null,Q,J),null)),[q,z,A]}function kh(A,Z){A.action=Z}function UK(A){var Z=J2(),J=S1;if(J!==null)return XL(Z,J,A);J2(),Z=Z.memoizedState,J=J2();var q=J.queue.dispatch;return J.memoizedState=A,[Z,q,!1]}function O7(A,Z,J,q){return A={tag:A,create:J,deps:q,inst:Z,next:null},Z=R0.updateQueue,Z===null&&(Z=sq(),R0.updateQueue=Z),J=Z.lastEffect,J===null?Z.lastEffect=A.next=A:(q=J.next,J.next=A,A.next=q,Z.lastEffect=A),A}function YL(){return J2().memoizedState}function zq(A,Z,J,q){var Q=a2();R0.flags|=A,Q.memoizedState=O7(1|Z,{destroy:void 0},J,q===void 0?null:q)}function tq(A,Z,J,q){var Q=J2();q=q===void 0?null:q;var z=Q.memoizedState.inst;S1!==null&&q!==null&&VY(q,S1.memoizedState.deps)?Q.memoizedState=O7(Z,z,J,q):(R0.flags|=A,Q.memoizedState=O7(1|Z,z,J,q))}function HK(A,Z){zq(8390656,8,A,Z)}function NY(A,Z){tq(2048,8,A,Z)}function jh(A){R0.flags|=4;var Z=R0.updateQueue;if(Z===null)Z=sq(),R0.updateQueue=Z,Z.events=[A];else{var J=Z.events;J===null?Z.events=[A]:J.push(A)}}function UL(A){var Z=J2().memoizedState;return jh({ref:Z,nextImpl:A}),function(){if((H1&2)!==0)throw Error(i(440));return Z.impl.apply(void 0,arguments)}}function HL(A,Z){return tq(4,2,A,Z)}function WL(A,Z){return tq(4,4,A,Z)}function BL(A,Z){if(typeof Z==="function"){A=A();var J=Z(A);return function(){typeof J==="function"?J():Z(null)}}if(Z!==null&&Z!==void 0)return A=A(),Z.current=A,function(){Z.current=null}}function KL(A,Z,J){J=J!==null&&J!==void 0?J.concat([A]):null,tq(4,4,BL.bind(null,Z,A),J)}function OY(){}function $L(A,Z){var J=J2();Z=Z===void 0?null:Z;var q=J.memoizedState;if(Z!==null&&VY(Z,q[1]))return q[0];return J.memoizedState=[A,Z],A}function LL(A,Z){var J=J2();Z=Z===void 0?null:Z;var q=J.memoizedState;if(Z!==null&&VY(Z,q[1]))return q[0];if(q=A(),p9){PA(!0);try{A()}finally{PA(!1)}}return J.memoizedState=[q,Z],q}function DY(A,Z,J){if(J===void 0||(GA&1073741824)!==0&&(s0&261930)===0)return A.memoizedState=Z;return A.memoizedState=J,A=qV(),R0.lanes|=A,oA|=A,J}function VL(A,Z,J,q){if(C6(J,Z))return J;if(N7.current!==null)return A=DY(A,J,q),C6(A,Z)||(K2=!0),A;if((GA&42)===0||(GA&1073741824)!==0&&(s0&261930)===0)return K2=!0,A.memoizedState=J;return A=qV(),R0.lanes|=A,oA|=A,Z}function ML(A,Z,J,q,Q){var z=W1.p;W1.p=z!==0&&8>z?z:8;var G=S0.T,X={};S0.T=X,wY(A,!1,Z,J);try{var Y=Q(),U=S0.S;if(U!==null&&U(X,Y),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){var H=Vh(Y,q);l8(A,Z,H,j6(A))}else l8(A,Z,q,j6(A))}catch(W){l8(A,Z,{then:function(){},status:"rejected",reason:W},j6())}finally{W1.p=z,G!==null&&X.types!==null&&(G.types=X.types),S0.T=G}}function Ch(){}function DX(A,Z,J,q){if(A.tag!==5)throw Error(i(476));var Q=FL(A).queue;ML(A,Q,Z,R9,J===null?Ch:function(){return _L(A),J(q)})}function FL(A){var Z=A.memoizedState;if(Z!==null)return Z;Z={memoizedState:R9,baseState:R9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:XA,lastRenderedState:R9},next:null};var J={};return Z.next={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:XA,lastRenderedState:J},next:null},A.memoizedState=Z,A=A.alternate,A!==null&&(A.memoizedState=Z),Z}function _L(A){var Z=FL(A);Z.next===null&&(Z=A.alternate.memoizedState),l8(A,Z.next.queue,{},j6())}function TY(){return R2(YZ)}function kL(){return J2().memoizedState}function jL(){return J2().memoizedState}function Nh(A){for(var Z=A.return;Z!==null;){switch(Z.tag){case 24:case 3:var J=j6();A=vA(J);var q=gA(Z,A,J);q!==null&&(G6(q,Z,J),m8(q,Z,J)),Z={cache:WY()},A.payload=Z;return}Z=Z.return}}function Oh(A,Z,J){var q=j6();J={lane:q,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null},eq(A)?NL(Z,J):(J=XY(A,Z,J,q),J!==null&&(G6(J,A,q),OL(J,Z,q)))}function CL(A,Z,J){var q=j6();l8(A,Z,J,q)}function l8(A,Z,J,q){var Q={lane:q,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};if(eq(A))NL(Z,Q);else{var z=A.alternate;if(A.lanes===0&&(z===null||z.lanes===0)&&(z=Z.lastRenderedReducer,z!==null))try{var G=Z.lastRenderedState,X=z(G,J);if(Q.hasEagerState=!0,Q.eagerState=X,C6(X,G))return oq(A,Z,Q,0),R1===null&&rq(),!1}catch(Y){}finally{}if(J=XY(A,Z,Q,q),J!==null)return G6(J,A,q),OL(J,Z,q),!0}return!1}function wY(A,Z,J,q){if(q={lane:2,revertLane:yY(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},eq(A)){if(Z)throw Error(i(479))}else Z=XY(A,J,q,2),Z!==null&&G6(Z,A,2)}function eq(A){var Z=A.alternate;return A===R0||Z!==null&&Z===R0}function NL(A,Z){M7=Dq=!0;var J=A.pending;J===null?Z.next=Z:(Z.next=J.next,J.next=Z),A.pending=Z}function OL(A,Z,J){if((J&4194048)!==0){var q=Z.lanes;q&=A.pendingLanes,J|=q,Z.lanes=J,U$(A,J)}}function b3(A,Z,J,q){Z=A.memoizedState,J=J(q,Z),J=J===null||J===void 0?Z:p1({},Z,J),A.memoizedState=J,A.lanes===0&&(A.updateQueue.baseState=J)}function WK(A,Z,J,q,Q,z,G){return A=A.stateNode,typeof A.shouldComponentUpdate==="function"?A.shouldComponentUpdate(q,z,G):Z.prototype&&Z.prototype.isPureReactComponent?!AZ(J,q)||!AZ(Q,z):!0}function BK(A,Z,J,q){A=Z.state,typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(J,q),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(J,q),Z.state!==A&&TX.enqueueReplaceState(Z,Z.state,null)}function d9(A,Z){var J=Z;if("ref"in Z){J={};for(var q in Z)q!=="ref"&&(J[q]=Z[q])}if(A=A.defaultProps){J===Z&&(J=p1({},J));for(var Q in A)J[Q]===void 0&&(J[Q]=A[Q])}return J}function wL(A){Fq(A)}function hL(A){console.error(A)}function xL(A){Fq(A)}function wq(A,Z){try{var J=A.onUncaughtError;J(Z.value,{componentStack:Z.stack})}catch(q){setTimeout(function(){throw q})}}function KK(A,Z,J){try{var q=A.onCaughtError;q(J.value,{componentStack:J.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(Q){setTimeout(function(){throw Q})}}function wX(A,Z,J){return J=vA(J),J.tag=3,J.payload={element:null},J.callback=function(){wq(A,Z)},J}function SL(A){return A=vA(A),A.tag=3,A}function PL(A,Z,J,q){var Q=J.type.getDerivedStateFromError;if(typeof Q==="function"){var z=q.value;A.payload=function(){return Q(z)},A.callback=function(){KK(Z,J,q)}}var G=J.stateNode;G!==null&&typeof G.componentDidCatch==="function"&&(A.callback=function(){KK(Z,J,q),typeof Q!=="function"&&(uA===null?uA=new Set([this]):uA.add(this));var X=q.stack;this.componentDidCatch(q.value,{componentStack:X!==null?X:""})})}function Dh(A,Z,J,q,Q){if(J.flags|=32768,q!==null&&typeof q==="object"&&typeof q.then==="function"){if(Z=J.alternate,Z!==null&&I7(Z,J,Q,!0),J=N6.current,J!==null){switch(J.tag){case 31:case 13:return c6===null?Iq():J.alternate===null&&e1===0&&(e1=3),J.flags&=-257,J.flags|=65536,J.lanes=Q,q===Cq?J.flags|=16384:(Z=J.updateQueue,Z===null?J.updateQueue=new Set([q]):Z.add(q),l3(A,q,Q)),!1;case 22:return J.flags|=65536,q===Cq?J.flags|=16384:(Z=J.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([q])},J.updateQueue=Z):(J=Z.retryQueue,J===null?Z.retryQueue=new Set([q]):J.add(q)),l3(A,q,Q)),!1}throw Error(i(435,J.tag))}return l3(A,q,Q),Iq(),!1}if(t0)return Z=N6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=Q,q!==$X&&(A=Error(i(422),{cause:q}),JZ(g6(A,J)))):(q!==$X&&(Z=Error(i(423),{cause:q}),JZ(g6(Z,J))),A=A.current.alternate,A.flags|=65536,Q&=-Q,A.lanes|=Q,q=g6(q,J),Q=wX(A.stateNode,q,Q),I3(A,Q),e1!==4&&(e1=2)),!1;var z=Error(i(520),{cause:q});if(z=g6(z,J),o8===null?o8=[z]:o8.push(z),e1!==4&&(e1=2),Z===null)return!0;q=g6(q,J),J=Z;do{switch(J.tag){case 3:return J.flags|=65536,A=Q&-Q,J.lanes|=A,A=wX(J.stateNode,q,A),I3(J,A),!1;case 1:if(Z=J.type,z=J.stateNode,(J.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||z!==null&&typeof z.componentDidCatch==="function"&&(uA===null||!uA.has(z))))return J.flags|=65536,Q&=-Q,J.lanes|=Q,Q=SL(Q),PL(Q,A,J,q),I3(J,Q),!1}J=J.return}while(J!==null);return!1}function I2(A,Z,J,q){Z.child=A===null?l$(Z,null,J,q):m9(Z,A.child,J,q)}function $K(A,Z,J,q,Q){J=J.render;var z=Z.ref;if("ref"in q){var G={};for(var X in q)X!=="ref"&&(G[X]=q[X])}else G=q;if(c9(Z),q=MY(A,Z,J,G,z,Q),X=FY(),A!==null&&!K2)return _Y(A,Z,Q),YA(A,Z,Q);return t0&&X&&UY(Z),Z.flags|=1,I2(A,Z,q,Q),Z.child}function LK(A,Z,J,q,Q){if(A===null){var z=J.type;if(typeof z==="function"&&!YY(z)&&z.defaultProps===void 0&&J.compare===null)return Z.tag=15,Z.type=z,IL(A,Z,z,q,Q);return A=Jq(J.type,null,q,Z,Z.mode,Q),A.ref=Z.ref,A.return=Z,Z.child=A}if(z=A.child,!SY(A,Q)){var G=z.memoizedProps;if(J=J.compare,J=J!==null?J:AZ,J(G,q)&&A.ref===Z.ref)return YA(A,Z,Q)}return Z.flags|=1,A=JA(z,q),A.ref=Z.ref,A.return=Z,Z.child=A}function IL(A,Z,J,q,Q){if(A!==null){var z=A.memoizedProps;if(AZ(z,q)&&A.ref===Z.ref)if(K2=!1,Z.pendingProps=q=z,SY(A,Q))(A.flags&131072)!==0&&(K2=!0);else return Z.lanes=A.lanes,YA(A,Z,Q)}return hX(A,Z,J,q,Q)}function fL(A,Z,J,q){var Q=q.children,z=A!==null?A.memoizedState:null;if(A===null&&Z.stateNode===null&&(Z.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((Z.flags&128)!==0){if(z=z!==null?z.baseLanes|J:J,A!==null){q=Z.child=A.child;for(Q=0;q!==null;)Q=Q|q.lanes|q.childLanes,q=q.sibling;q=Q&~z}else q=0,Z.child=null;return VK(A,Z,z,J,q)}if((J&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},A!==null&&qq(Z,z!==null?z.cachePool:null),z!==null?QK(Z,z):jX(),o$(Z);else return q=Z.lanes=536870912,VK(A,Z,z!==null?z.baseLanes|J:J,J,q)}else z!==null?(qq(Z,z.cachePool),QK(Z,z),xA(Z),Z.memoizedState=null):(A!==null&&qq(Z,null),jX(),xA(Z));return I2(A,Z,Q,J),Z.child}function b8(A,Z){return A!==null&&A.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function VK(A,Z,J,q,Q){var z=BY();return z=z===null?null:{parent:B2._currentValue,pool:z},Z.memoizedState={baseLanes:J,cachePool:z},A!==null&&qq(Z,null),jX(),o$(Z),A!==null&&I7(A,Z,q,!0),Z.childLanes=Q,null}function Gq(A,Z){return Z=hq({mode:Z.mode,children:Z.children},A.mode),Z.ref=A.ref,A.child=Z,Z.return=A,Z}function MK(A,Z,J){return m9(Z,A.child,null,J),A=Gq(Z,Z.pendingProps),A.flags|=2,L6(Z),Z.memoizedState=null,A}function Th(A,Z,J){var q=Z.pendingProps,Q=(Z.flags&128)!==0;if(Z.flags&=-129,A===null){if(t0){if(q.mode==="hidden")return A=Gq(Z,q),Z.lanes=536870912,b8(null,A);if(CX(Z),(A=m1)?(A=DV(A,u6),A=A!==null&&A.data==="&"?A:null,A!==null&&(Z.memoizedState={dehydrated:A,treeContext:lA!==null?{id:j4,overflow:C4}:null,retryLane:536870912,hydrationErrors:null},J=v$(A),J.return=Z,Z.child=J,b2=Z,m1=null)):A=null,A===null)throw iA(Z);return Z.lanes=536870912,null}return Gq(Z,q)}var z=A.memoizedState;if(z!==null){var G=z.dehydrated;if(CX(Z),Q)if(Z.flags&256)Z.flags&=-257,Z=MK(A,Z,J);else if(Z.memoizedState!==null)Z.child=A.child,Z.flags|=128,Z=null;else throw Error(i(558));else if(K2||I7(A,Z,J,!1),Q=(J&A.childLanes)!==0,K2||Q){if(q=R1,q!==null&&(G=H$(q,J),G!==0&&G!==z.retryLane))throw z.retryLane=G,o9(A,G),G6(q,A,G),xY;Iq(),Z=MK(A,Z,J)}else A=z.treeContext,m1=m6(G.nextSibling),b2=Z,t0=!0,EA=null,u6=!1,A!==null&&u$(Z,A),Z=Gq(Z,q),Z.flags|=4096;return Z}return A=JA(A.child,{mode:q.mode,children:q.children}),A.ref=Z.ref,Z.child=A,A.return=Z,A}function Xq(A,Z){var J=Z.ref;if(J===null)A!==null&&A.ref!==null&&(Z.flags|=4194816);else{if(typeof J!=="function"&&typeof J!=="object")throw Error(i(284));if(A===null||A.ref!==J)Z.flags|=4194816}}function hX(A,Z,J,q,Q){if(c9(Z),J=MY(A,Z,J,q,void 0,Q),q=FY(),A!==null&&!K2)return _Y(A,Z,Q),YA(A,Z,Q);return t0&&q&&UY(Z),Z.flags|=1,I2(A,Z,J,Q),Z.child}function FK(A,Z,J,q,Q,z){if(c9(Z),Z.updateQueue=null,J=s$(Z,q,J,Q),a$(A),q=FY(),A!==null&&!K2)return _Y(A,Z,z),YA(A,Z,z);return t0&&q&&UY(Z),Z.flags|=1,I2(A,Z,J,z),Z.child}function _K(A,Z,J,q,Q){if(c9(Z),Z.stateNode===null){var z=Y7,G=J.contextType;typeof G==="object"&&G!==null&&(z=R2(G)),z=new J(q,z),Z.memoizedState=z.state!==null&&z.state!==void 0?z.state:null,z.updater=TX,Z.stateNode=z,z._reactInternals=Z,z=Z.stateNode,z.props=q,z.state=Z.memoizedState,z.refs={},$Y(Z),G=J.contextType,z.context=typeof G==="object"&&G!==null?R2(G):Y7,z.state=Z.memoizedState,G=J.getDerivedStateFromProps,typeof G==="function"&&(b3(Z,J,G,q),z.state=Z.memoizedState),typeof J.getDerivedStateFromProps==="function"||typeof z.getSnapshotBeforeUpdate==="function"||typeof z.UNSAFE_componentWillMount!=="function"&&typeof z.componentWillMount!=="function"||(G=z.state,typeof z.componentWillMount==="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount==="function"&&z.UNSAFE_componentWillMount(),G!==z.state&&TX.enqueueReplaceState(z,z.state,null),d8(Z,q,z,Q),p8(),z.state=Z.memoizedState),typeof z.componentDidMount==="function"&&(Z.flags|=4194308),q=!0}else if(A===null){z=Z.stateNode;var X=Z.memoizedProps,Y=d9(J,X);z.props=Y;var U=z.context,H=J.contextType;G=Y7,typeof H==="object"&&H!==null&&(G=R2(H));var W=J.getDerivedStateFromProps;H=typeof W==="function"||typeof z.getSnapshotBeforeUpdate==="function",X=Z.pendingProps!==X,H||typeof z.UNSAFE_componentWillReceiveProps!=="function"&&typeof z.componentWillReceiveProps!=="function"||(X||U!==G)&&BK(Z,z,q,G),TA=!1;var B=Z.memoizedState;z.state=B,d8(Z,q,z,Q),p8(),U=Z.memoizedState,X||B!==U||TA?(typeof W==="function"&&(b3(Z,J,W,q),U=Z.memoizedState),(Y=TA||WK(Z,J,Y,q,B,U,G))?(H||typeof z.UNSAFE_componentWillMount!=="function"&&typeof z.componentWillMount!=="function"||(typeof z.componentWillMount==="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount==="function"&&z.UNSAFE_componentWillMount()),typeof z.componentDidMount==="function"&&(Z.flags|=4194308)):(typeof z.componentDidMount==="function"&&(Z.flags|=4194308),Z.memoizedProps=q,Z.memoizedState=U),z.props=q,z.state=U,z.context=G,q=Y):(typeof z.componentDidMount==="function"&&(Z.flags|=4194308),q=!1)}else{z=Z.stateNode,_X(A,Z),G=Z.memoizedProps,H=d9(J,G),z.props=H,W=Z.pendingProps,B=z.context,U=J.contextType,Y=Y7,typeof U==="object"&&U!==null&&(Y=R2(U)),X=J.getDerivedStateFromProps,(U=typeof X==="function"||typeof z.getSnapshotBeforeUpdate==="function")||typeof z.UNSAFE_componentWillReceiveProps!=="function"&&typeof z.componentWillReceiveProps!=="function"||(G!==W||B!==Y)&&BK(Z,z,q,Y),TA=!1,B=Z.memoizedState,z.state=B,d8(Z,q,z,Q),p8();var K=Z.memoizedState;G!==W||B!==K||TA||A!==null&&A.dependencies!==null&&jq(A.dependencies)?(typeof X==="function"&&(b3(Z,J,X,q),K=Z.memoizedState),(H=TA||WK(Z,J,H,q,B,K,Y)||A!==null&&A.dependencies!==null&&jq(A.dependencies))?(U||typeof z.UNSAFE_componentWillUpdate!=="function"&&typeof z.componentWillUpdate!=="function"||(typeof z.componentWillUpdate==="function"&&z.componentWillUpdate(q,K,Y),typeof z.UNSAFE_componentWillUpdate==="function"&&z.UNSAFE_componentWillUpdate(q,K,Y)),typeof z.componentDidUpdate==="function"&&(Z.flags|=4),typeof z.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof z.componentDidUpdate!=="function"||G===A.memoizedProps&&B===A.memoizedState||(Z.flags|=4),typeof z.getSnapshotBeforeUpdate!=="function"||G===A.memoizedProps&&B===A.memoizedState||(Z.flags|=1024),Z.memoizedProps=q,Z.memoizedState=K),z.props=q,z.state=K,z.context=Y,q=H):(typeof z.componentDidUpdate!=="function"||G===A.memoizedProps&&B===A.memoizedState||(Z.flags|=4),typeof z.getSnapshotBeforeUpdate!=="function"||G===A.memoizedProps&&B===A.memoizedState||(Z.flags|=1024),q=!1)}return z=q,Xq(A,Z),q=(Z.flags&128)!==0,z||q?(z=Z.stateNode,J=q&&typeof J.getDerivedStateFromError!=="function"?null:z.render(),Z.flags|=1,A!==null&&q?(Z.child=m9(Z,A.child,null,Q),Z.child=m9(Z,null,J,Q)):I2(A,Z,J,Q),Z.memoizedState=z.state,A=Z.child):A=YA(A,Z,Q),A}function kK(A,Z,J,q){return u9(),Z.flags|=256,I2(A,Z,J,q),Z.child}function y3(A){return{baseLanes:A,cachePool:m$()}}function E3(A,Z,J){return A=A!==null?A.childLanes&~J:0,Z&&(A|=M6),A}function bL(A,Z,J){var q=Z.pendingProps,Q=!1,z=(Z.flags&128)!==0,G;if((G=z)||(G=A!==null&&A.memoizedState===null?!1:(Z2.current&2)!==0),G&&(Q=!0,Z.flags&=-129),G=(Z.flags&32)!==0,Z.flags&=-33,A===null){if(t0){if(Q?hA(Z):xA(Z),(A=m1)?(A=DV(A,u6),A=A!==null&&A.data!=="&"?A:null,A!==null&&(Z.memoizedState={dehydrated:A,treeContext:lA!==null?{id:j4,overflow:C4}:null,retryLane:536870912,hydrationErrors:null},J=v$(A),J.return=Z,Z.child=J,b2=Z,m1=null)):A=null,A===null)throw iA(Z);return dX(A)?Z.lanes=32:Z.lanes=536870912,null}var X=q.children;if(q=q.fallback,Q)return xA(Z),Q=Z.mode,X=hq({mode:"hidden",children:X},Q),q=y9(q,Q,J,null),X.return=Z,q.return=Z,X.sibling=q,Z.child=X,q=Z.child,q.memoizedState=y3(J),q.childLanes=E3(A,G,J),Z.memoizedState=R3,b8(null,q);return hA(Z),xX(Z,X)}var Y=A.memoizedState;if(Y!==null&&(X=Y.dehydrated,X!==null)){if(z)Z.flags&256?(hA(Z),Z.flags&=-257,Z=v3(A,Z,J)):Z.memoizedState!==null?(xA(Z),Z.child=A.child,Z.flags|=128,Z=null):(xA(Z),X=q.fallback,Q=Z.mode,q=hq({mode:"visible",children:q.children},Q),X=y9(X,Q,J,null),X.flags|=2,q.return=Z,X.return=Z,q.sibling=X,Z.child=q,m9(Z,A.child,null,J),q=Z.child,q.memoizedState=y3(J),q.childLanes=E3(A,G,J),Z.memoizedState=R3,Z=b8(null,q));else if(hA(Z),dX(X)){if(G=X.nextSibling&&X.nextSibling.dataset,G)var U=G.dgst;G=U,q=Error(i(419)),q.stack="",q.digest=G,JZ({value:q,source:null,stack:null}),Z=v3(A,Z,J)}else if(K2||I7(A,Z,J,!1),G=(J&A.childLanes)!==0,K2||G){if(G=R1,G!==null&&(q=H$(G,J),q!==0&&q!==Y.retryLane))throw Y.retryLane=q,o9(A,q),G6(G,A,q),xY;pX(X)||Iq(),Z=v3(A,Z,J)}else pX(X)?(Z.flags|=192,Z.child=A.child,Z=null):(A=Y.treeContext,m1=m6(X.nextSibling),b2=Z,t0=!0,EA=null,u6=!1,A!==null&&u$(Z,A),Z=xX(Z,q.children),Z.flags|=4096);return Z}if(Q)return xA(Z),X=q.fallback,Q=Z.mode,Y=A.child,U=Y.sibling,q=JA(Y,{mode:"hidden",children:q.children}),q.subtreeFlags=Y.subtreeFlags&65011712,U!==null?X=JA(U,X):(X=y9(X,Q,J,null),X.flags|=2),X.return=Z,q.return=Z,q.sibling=X,Z.child=q,b8(null,q),q=Z.child,X=A.child.memoizedState,X===null?X=y3(J):(Q=X.cachePool,Q!==null?(Y=B2._currentValue,Q=Q.parent!==Y?{parent:Y,pool:Y}:Q):Q=m$(),X={baseLanes:X.baseLanes|J,cachePool:Q}),q.memoizedState=X,q.childLanes=E3(A,G,J),Z.memoizedState=R3,b8(A.child,q);return hA(Z),J=A.child,A=J.sibling,J=JA(J,{mode:"visible",children:q.children}),J.return=Z,J.sibling=null,A!==null&&(G=Z.deletions,G===null?(Z.deletions=[A],Z.flags|=16):G.push(A)),Z.child=J,Z.memoizedState=null,J}function xX(A,Z){return Z=hq({mode:"visible",children:Z},A.mode),Z.return=A,A.child=Z}function hq(A,Z){return A=V6(22,A,null,Z),A.lanes=0,A}function v3(A,Z,J){return m9(Z,A.child,null,J),A=xX(Z,Z.pendingProps.children),A.flags|=2,Z.memoizedState=null,A}function jK(A,Z,J){A.lanes|=Z;var q=A.alternate;q!==null&&(q.lanes|=Z),VX(A.return,Z,J)}function g3(A,Z,J,q,Q,z){var G=A.memoizedState;G===null?A.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:q,tail:J,tailMode:Q,treeForkCount:z}:(G.isBackwards=Z,G.rendering=null,G.renderingStartTime=0,G.last=q,G.tail=J,G.tailMode=Q,G.treeForkCount=z)}function RL(A,Z,J){var q=Z.pendingProps,Q=q.revealOrder,z=q.tail;q=q.children;var G=Z2.current,X=(G&2)!==0;if(X?(G=G&1|2,Z.flags|=128):G&=1,E1(Z2,G),I2(A,Z,q,J),q=t0?ZZ:0,!X&&A!==null&&(A.flags&128)!==0)A:for(A=Z.child;A!==null;){if(A.tag===13)A.memoizedState!==null&&jK(A,J,Z);else if(A.tag===19)jK(A,J,Z);else if(A.child!==null){A.child.return=A,A=A.child;continue}if(A===Z)break A;for(;A.sibling===null;){if(A.return===null||A.return===Z)break A;A=A.return}A.sibling.return=A.return,A=A.sibling}switch(Q){case"forwards":J=Z.child;for(Q=null;J!==null;)A=J.alternate,A!==null&&Oq(A)===null&&(Q=J),J=J.sibling;J=Q,J===null?(Q=Z.child,Z.child=null):(Q=J.sibling,J.sibling=null),g3(Z,!1,Q,J,z,q);break;case"backwards":case"unstable_legacy-backwards":J=null,Q=Z.child;for(Z.child=null;Q!==null;){if(A=Q.alternate,A!==null&&Oq(A)===null){Z.child=Q;break}A=Q.sibling,Q.sibling=J,J=Q,Q=A}g3(Z,!0,J,null,z,q);break;case"together":g3(Z,!1,null,null,void 0,q);break;default:Z.memoizedState=null}return Z.child}function YA(A,Z,J){if(A!==null&&(Z.dependencies=A.dependencies),oA|=Z.lanes,(J&Z.childLanes)===0)if(A!==null){if(I7(A,Z,J,!1),(J&Z.childLanes)===0)return null}else return null;if(A!==null&&Z.child!==A.child)throw Error(i(153));if(Z.child!==null){A=Z.child,J=JA(A,A.pendingProps),Z.child=J;for(J.return=Z;A.sibling!==null;)A=A.sibling,J=J.sibling=JA(A,A.pendingProps),J.return=Z;J.sibling=null}return Z.child}function SY(A,Z){if((A.lanes&Z)!==0)return!0;return A=A.dependencies,A!==null&&jq(A)?!0:!1}function wh(A,Z,J){switch(Z.tag){case 3:$q(Z,Z.stateNode.containerInfo),wA(Z,B2,A.memoizedState.cache),u9();break;case 27:case 5:qX(Z);break;case 4:$q(Z,Z.stateNode.containerInfo);break;case 10:wA(Z,Z.type,Z.memoizedProps.value);break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,CX(Z),null;break;case 13:var q=Z.memoizedState;if(q!==null){if(q.dehydrated!==null)return hA(Z),Z.flags|=128,null;if((J&Z.child.childLanes)!==0)return bL(A,Z,J);return hA(Z),A=YA(A,Z,J),A!==null?A.sibling:null}hA(Z);break;case 19:var Q=(A.flags&128)!==0;if(q=(J&Z.childLanes)!==0,q||(I7(A,Z,J,!1),q=(J&Z.childLanes)!==0),Q){if(q)return RL(A,Z,J);Z.flags|=128}if(Q=Z.memoizedState,Q!==null&&(Q.rendering=null,Q.tail=null,Q.lastEffect=null),E1(Z2,Z2.current),q)break;else return null;case 22:return Z.lanes=0,fL(A,Z,J,Z.pendingProps);case 24:wA(Z,B2,A.memoizedState.cache)}return YA(A,Z,J)}function yL(A,Z,J){if(A!==null)if(A.memoizedProps!==Z.pendingProps)K2=!0;else{if(!SY(A,J)&&(Z.flags&128)===0)return K2=!1,wh(A,Z,J);K2=(A.flags&131072)!==0?!0:!1}else K2=!1,t0&&(Z.flags&1048576)!==0&&g$(Z,ZZ,Z.index);switch(Z.lanes=0,Z.tag){case 16:A:{var q=Z.pendingProps;if(A=f9(Z.elementType),Z.type=A,typeof A==="function")YY(A)?(q=d9(A,q),Z.tag=1,Z=_K(null,Z,A,q,J)):(Z.tag=0,Z=hX(null,Z,A,q,J));else{if(A!==void 0&&A!==null){var Q=A.$$typeof;if(Q===oX){Z.tag=11,Z=$K(null,Z,A,q,J);break A}else if(Q===aX){Z.tag=14,Z=LK(null,Z,A,q,J);break A}}throw Z=ZX(A)||A,Error(i(306,Z,""))}}return Z;case 0:return hX(A,Z,Z.type,Z.pendingProps,J);case 1:return q=Z.type,Q=d9(q,Z.pendingProps),_K(A,Z,q,Q,J);case 3:A:{if($q(Z,Z.stateNode.containerInfo),A===null)throw Error(i(387));q=Z.pendingProps;var z=Z.memoizedState;Q=z.element,_X(A,Z),d8(Z,q,null,J);var G=Z.memoizedState;if(q=G.cache,wA(Z,B2,q),q!==z.cache&&MX(Z,[B2],J,!0),p8(),q=G.element,z.isDehydrated)if(z={element:q,isDehydrated:!1,cache:G.cache},Z.updateQueue.baseState=z,Z.memoizedState=z,Z.flags&256){Z=kK(A,Z,q,J);break A}else if(q!==Q){Q=g6(Error(i(424)),Z),JZ(Q),Z=kK(A,Z,q,J);break A}else{switch(A=Z.stateNode.containerInfo,A.nodeType){case 9:A=A.body;break;default:A=A.nodeName==="HTML"?A.ownerDocument.body:A}m1=m6(A.firstChild),b2=Z,t0=!0,EA=null,u6=!0,J=l$(Z,null,q,J);for(Z.child=J;J;)J.flags=J.flags&-3|4096,J=J.sibling}else{if(u9(),q===Q){Z=YA(A,Z,J);break A}I2(A,Z,q,J)}Z=Z.child}return Z;case 26:return Xq(A,Z),A===null?(J=cK(Z.type,null,Z.pendingProps,null))?Z.memoizedState=J:t0||(J=Z.type,A=Z.pendingProps,q=yq(yA.current).createElement(J),q[f2]=Z,q[X6]=A,y2(q,J,A),T2(q),Z.stateNode=q):Z.memoizedState=cK(Z.type,A.memoizedProps,Z.pendingProps,A.memoizedState),null;case 27:return qX(Z),A===null&&t0&&(q=Z.stateNode=TV(Z.type,Z.pendingProps,yA.current),b2=Z,u6=!0,Q=m1,sA(Z.type)?(lX=Q,m1=m6(q.firstChild)):m1=Q),I2(A,Z,Z.pendingProps.children,J),Xq(A,Z),A===null&&(Z.flags|=4194304),Z.child;case 5:if(A===null&&t0){if(Q=q=m1)q=Zx(q,Z.type,Z.pendingProps,u6),q!==null?(Z.stateNode=q,b2=Z,m1=m6(q.firstChild),u6=!1,Q=!0):Q=!1;Q||iA(Z)}return qX(Z),Q=Z.type,z=Z.pendingProps,G=A!==null?A.memoizedProps:null,q=z.children,cX(Q,z)?q=null:G!==null&&cX(Q,G)&&(Z.flags|=32),Z.memoizedState!==null&&(Q=MY(A,Z,Fh,null,null,J),YZ._currentValue=Q),Xq(A,Z),I2(A,Z,q,J),Z.child;case 6:if(A===null&&t0){if(A=J=m1)J=Jx(J,Z.pendingProps,u6),J!==null?(Z.stateNode=J,b2=Z,m1=null,A=!0):A=!1;A||iA(Z)}return null;case 13:return bL(A,Z,J);case 4:return $q(Z,Z.stateNode.containerInfo),q=Z.pendingProps,A===null?Z.child=m9(Z,null,q,J):I2(A,Z,q,J),Z.child;case 11:return $K(A,Z,Z.type,Z.pendingProps,J);case 7:return I2(A,Z,Z.pendingProps,J),Z.child;case 8:return I2(A,Z,Z.pendingProps.children,J),Z.child;case 12:return I2(A,Z,Z.pendingProps.children,J),Z.child;case 10:return q=Z.pendingProps,wA(Z,Z.type,q.value),I2(A,Z,q.children,J),Z.child;case 9:return Q=Z.type._context,q=Z.pendingProps.children,c9(Z),Q=R2(Q),q=q(Q),Z.flags|=1,I2(A,Z,q,J),Z.child;case 14:return LK(A,Z,Z.type,Z.pendingProps,J);case 15:return IL(A,Z,Z.type,Z.pendingProps,J);case 19:return RL(A,Z,J);case 31:return Th(A,Z,J);case 22:return fL(A,Z,J,Z.pendingProps);case 24:return c9(Z),q=R2(B2),A===null?(Q=BY(),Q===null&&(Q=R1,z=WY(),Q.pooledCache=z,z.refCount++,z!==null&&(Q.pooledCacheLanes|=J),Q=z),Z.memoizedState={parent:q,cache:Q},$Y(Z),wA(Z,B2,Q)):((A.lanes&J)!==0&&(_X(A,Z),d8(Z,null,null,J),p8()),Q=A.memoizedState,z=Z.memoizedState,Q.parent!==q?(Q={parent:q,cache:q},Z.memoizedState=Q,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=Q),wA(Z,B2,q)):(q=z.cache,wA(Z,B2,q),q!==Q.cache&&MX(Z,[B2],J,!0))),I2(A,Z,Z.pendingProps.children,J),Z.child;case 29:throw Z.pendingProps}throw Error(i(156,Z.tag))}function r4(A){A.flags|=4}function u3(A,Z,J,q,Q){if(Z=(A.mode&32)!==0)Z=!1;if(Z){if(A.flags|=16777216,(Q&335544128)===Q)if(A.stateNode.complete)A.flags|=8192;else if(GV())A.flags|=8192;else throw v9=Cq,KY}else A.flags&=-16777217}function CK(A,Z){if(Z.type!=="stylesheet"||(Z.state.loading&4)!==0)A.flags&=-16777217;else if(A.flags|=16777216,!xV(Z))if(GV())A.flags|=8192;else throw v9=Cq,KY}function iJ(A,Z){Z!==null&&(A.flags|=4),A.flags&16384&&(Z=A.tag!==22?X$():536870912,A.lanes|=Z,D7|=Z)}function T8(A,Z){if(!t0)switch(A.tailMode){case"hidden":Z=A.tail;for(var J=null;Z!==null;)Z.alternate!==null&&(J=Z),Z=Z.sibling;J===null?A.tail=null:J.sibling=null;break;case"collapsed":J=A.tail;for(var q=null;J!==null;)J.alternate!==null&&(q=J),J=J.sibling;q===null?Z||A.tail===null?A.tail=null:A.tail.sibling=null:q.sibling=null}}function c1(A){var Z=A.alternate!==null&&A.alternate.child===A.child,J=0,q=0;if(Z)for(var Q=A.child;Q!==null;)J|=Q.lanes|Q.childLanes,q|=Q.subtreeFlags&65011712,q|=Q.flags&65011712,Q.return=A,Q=Q.sibling;else for(Q=A.child;Q!==null;)J|=Q.lanes|Q.childLanes,q|=Q.subtreeFlags,q|=Q.flags,Q.return=A,Q=Q.sibling;return A.subtreeFlags|=q,A.childLanes=J,Z}function hh(A,Z,J){var q=Z.pendingProps;switch(HY(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return c1(Z),null;case 1:return c1(Z),null;case 3:if(J=Z.stateNode,q=null,A!==null&&(q=A.memoizedState.cache),Z.memoizedState.cache!==q&&(Z.flags|=2048),qA(B2),_7(),J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),A===null||A.child===null)a5(Z)?r4(Z):A===null||A.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,P3());return c1(Z),null;case 26:var{type:Q,memoizedState:z}=Z;return A===null?(r4(Z),z!==null?(c1(Z),CK(Z,z)):(c1(Z),u3(Z,Q,null,q,J))):z?z!==A.memoizedState?(r4(Z),c1(Z),CK(Z,z)):(c1(Z),Z.flags&=-16777217):(A=A.memoizedProps,A!==q&&r4(Z),c1(Z),u3(Z,Q,A,q,J)),null;case 27:if(Lq(Z),J=yA.current,Q=Z.type,A!==null&&Z.stateNode!=null)A.memoizedProps!==q&&r4(Z);else{if(!q){if(Z.stateNode===null)throw Error(i(166));return c1(Z),null}A=O4.current,a5(Z)?nB(Z,A):(A=TV(Q,q,J),Z.stateNode=A,r4(Z))}return c1(Z),null;case 5:if(Lq(Z),Q=Z.type,A!==null&&Z.stateNode!=null)A.memoizedProps!==q&&r4(Z);else{if(!q){if(Z.stateNode===null)throw Error(i(166));return c1(Z),null}if(z=O4.current,a5(Z))nB(Z,z);else{var G=yq(yA.current);switch(z){case 1:z=G.createElementNS("http://www.w3.org/2000/svg",Q);break;case 2:z=G.createElementNS("http://www.w3.org/1998/Math/MathML",Q);break;default:switch(Q){case"svg":z=G.createElementNS("http://www.w3.org/2000/svg",Q);break;case"math":z=G.createElementNS("http://www.w3.org/1998/Math/MathML",Q);break;case"script":z=G.createElement("div"),z.innerHTML="<script></script>",z=z.removeChild(z.firstChild);break;case"select":z=typeof q.is==="string"?G.createElement("select",{is:q.is}):G.createElement("select"),q.multiple?z.multiple=!0:q.size&&(z.size=q.size);break;default:z=typeof q.is==="string"?G.createElement(Q,{is:q.is}):G.createElement(Q)}}z[f2]=Z,z[X6]=q;A:for(G=Z.child;G!==null;){if(G.tag===5||G.tag===6)z.appendChild(G.stateNode);else if(G.tag!==4&&G.tag!==27&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===Z)break A;for(;G.sibling===null;){if(G.return===null||G.return===Z)break A;G=G.return}G.sibling.return=G.return,G=G.sibling}Z.stateNode=z;A:switch(y2(z,Q,q),Q){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break A;case"img":q=!0;break A;default:q=!1}q&&r4(Z)}}return c1(Z),u3(Z,Z.type,A===null?null:A.memoizedProps,Z.pendingProps,J),null;case 6:if(A&&Z.stateNode!=null)A.memoizedProps!==q&&r4(Z);else{if(typeof q!=="string"&&Z.stateNode===null)throw Error(i(166));if(A=yA.current,a5(Z)){if(A=Z.stateNode,J=Z.memoizedProps,q=null,Q=b2,Q!==null)switch(Q.tag){case 27:case 5:q=Q.memoizedProps}A[f2]=Z,A=A.nodeValue===J||q!==null&&q.suppressHydrationWarning===!0||CV(A.nodeValue,J)?!0:!1,A||iA(Z,!0)}else A=yq(A).createTextNode(q),A[f2]=Z,Z.stateNode=A}return c1(Z),null;case 31:if(J=Z.memoizedState,A===null||A.memoizedState!==null){if(q=a5(Z),J!==null){if(A===null){if(!q)throw Error(i(318));if(A=Z.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(557));A[f2]=Z}else u9(),(Z.flags&128)===0&&(Z.memoizedState=null),Z.flags|=4;c1(Z),A=!1}else J=P3(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=J),A=!0;if(!A){if(Z.flags&256)return L6(Z),Z;return L6(Z),null}if((Z.flags&128)!==0)throw Error(i(558))}return c1(Z),null;case 13:if(q=Z.memoizedState,A===null||A.memoizedState!==null&&A.memoizedState.dehydrated!==null){if(Q=a5(Z),q!==null&&q.dehydrated!==null){if(A===null){if(!Q)throw Error(i(318));if(Q=Z.memoizedState,Q=Q!==null?Q.dehydrated:null,!Q)throw Error(i(317));Q[f2]=Z}else u9(),(Z.flags&128)===0&&(Z.memoizedState=null),Z.flags|=4;c1(Z),Q=!1}else Q=P3(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=Q),Q=!0;if(!Q){if(Z.flags&256)return L6(Z),Z;return L6(Z),null}}if(L6(Z),(Z.flags&128)!==0)return Z.lanes=J,Z;return J=q!==null,A=A!==null&&A.memoizedState!==null,J&&(q=Z.child,Q=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(Q=q.alternate.memoizedState.cachePool.pool),z=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(z=q.memoizedState.cachePool.pool),z!==Q&&(q.flags|=2048)),J!==A&&J&&(Z.child.flags|=8192),iJ(Z,Z.updateQueue),c1(Z),null;case 4:return _7(),A===null&&EY(Z.stateNode.containerInfo),c1(Z),null;case 10:return qA(Z.type),c1(Z),null;case 19:if(w2(Z2),q=Z.memoizedState,q===null)return c1(Z),null;if(Q=(Z.flags&128)!==0,z=q.rendering,z===null)if(Q)T8(q,!1);else{if(e1!==0||A!==null&&(A.flags&128)!==0)for(A=Z.child;A!==null;){if(z=Oq(A),z!==null){Z.flags|=128,T8(q,!1),A=z.updateQueue,Z.updateQueue=A,iJ(Z,A),Z.subtreeFlags=0,A=J;for(J=Z.child;J!==null;)E$(J,A),J=J.sibling;return E1(Z2,Z2.current&1|2),t0&&n4(Z,q.treeForkCount),Z.child}A=A.sibling}q.tail!==null&&F6()>Sq&&(Z.flags|=128,Q=!0,T8(q,!1),Z.lanes=4194304)}else{if(!Q)if(A=Oq(z),A!==null){if(Z.flags|=128,Q=!0,A=A.updateQueue,Z.updateQueue=A,iJ(Z,A),T8(q,!0),q.tail===null&&q.tailMode==="hidden"&&!z.alternate&&!t0)return c1(Z),null}else 2*F6()-q.renderingStartTime>Sq&&J!==536870912&&(Z.flags|=128,Q=!0,T8(q,!1),Z.lanes=4194304);q.isBackwards?(z.sibling=Z.child,Z.child=z):(A=q.last,A!==null?A.sibling=z:Z.child=z,q.last=z)}if(q.tail!==null)return A=q.tail,q.rendering=A,q.tail=A.sibling,q.renderingStartTime=F6(),A.sibling=null,J=Z2.current,E1(Z2,Q?J&1|2:J&1),t0&&n4(Z,q.treeForkCount),A;return c1(Z),null;case 22:case 23:return L6(Z),LY(),q=Z.memoizedState!==null,A!==null?A.memoizedState!==null!==q&&(Z.flags|=8192):q&&(Z.flags|=8192),q?(J&536870912)!==0&&(Z.flags&128)===0&&(c1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):c1(Z),J=Z.updateQueue,J!==null&&iJ(Z,J.retryQueue),J=null,A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(J=A.memoizedState.cachePool.pool),q=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(q=Z.memoizedState.cachePool.pool),q!==J&&(Z.flags|=2048),A!==null&&w2(E9),null;case 24:return J=null,A!==null&&(J=A.memoizedState.cache),Z.memoizedState.cache!==J&&(Z.flags|=2048),qA(B2),c1(Z),null;case 25:return null;case 30:return null}throw Error(i(156,Z.tag))}function xh(A,Z){switch(HY(Z),Z.tag){case 1:return A=Z.flags,A&65536?(Z.flags=A&-65537|128,Z):null;case 3:return qA(B2),_7(),A=Z.flags,(A&65536)!==0&&(A&128)===0?(Z.flags=A&-65537|128,Z):null;case 26:case 27:case 5:return Lq(Z),null;case 31:if(Z.memoizedState!==null){if(L6(Z),Z.alternate===null)throw Error(i(340));u9()}return A=Z.flags,A&65536?(Z.flags=A&-65537|128,Z):null;case 13:if(L6(Z),A=Z.memoizedState,A!==null&&A.dehydrated!==null){if(Z.alternate===null)throw Error(i(340));u9()}return A=Z.flags,A&65536?(Z.flags=A&-65537|128,Z):null;case 19:return w2(Z2),null;case 4:return _7(),null;case 10:return qA(Z.type),null;case 22:case 23:return L6(Z),LY(),A!==null&&w2(E9),A=Z.flags,A&65536?(Z.flags=A&-65537|128,Z):null;case 24:return qA(B2),null;case 25:return null;default:return null}}function EL(A,Z){switch(HY(Z),Z.tag){case 3:qA(B2),_7();break;case 26:case 27:case 5:Lq(Z);break;case 4:_7();break;case 31:Z.memoizedState!==null&&L6(Z);break;case 13:L6(Z);break;case 19:w2(Z2);break;case 10:qA(Z.type);break;case 22:case 23:L6(Z),LY(),A!==null&&w2(E9);break;case 24:qA(B2)}}function _Z(A,Z){try{var J=Z.updateQueue,q=J!==null?J.lastEffect:null;if(q!==null){var Q=q.next;J=Q;do{if((J.tag&A)===A){q=void 0;var{create:z,inst:G}=J;q=z(),G.destroy=q}J=J.next}while(J!==Q)}}catch(X){N1(Z,Z.return,X)}}function rA(A,Z,J){try{var q=Z.updateQueue,Q=q!==null?q.lastEffect:null;if(Q!==null){var z=Q.next;q=z;do{if((q.tag&A)===A){var G=q.inst,X=G.destroy;if(X!==void 0){G.destroy=void 0,Q=Z;var Y=J,U=X;try{U()}catch(H){N1(Q,Y,H)}}}q=q.next}while(q!==z)}}catch(H){N1(Z,Z.return,H)}}function vL(A){var Z=A.updateQueue;if(Z!==null){var J=A.stateNode;try{r$(Z,J)}catch(q){N1(A,A.return,q)}}}function gL(A,Z,J){J.props=d9(A.type,A.memoizedProps),J.state=A.memoizedState;try{J.componentWillUnmount()}catch(q){N1(A,Z,q)}}function i8(A,Z){try{var J=A.ref;if(J!==null){switch(A.tag){case 26:case 27:case 5:var q=A.stateNode;break;case 30:q=A.stateNode;break;default:q=A.stateNode}typeof J==="function"?A.refCleanup=J(q):J.current=q}}catch(Q){N1(A,Z,Q)}}function N4(A,Z){var{ref:J,refCleanup:q}=A;if(J!==null)if(typeof q==="function")try{q()}catch(Q){N1(A,Z,Q)}finally{A.refCleanup=null,A=A.alternate,A!=null&&(A.refCleanup=null)}else if(typeof J==="function")try{J(null)}catch(Q){N1(A,Z,Q)}else J.current=null}function uL(A){var{type:Z,memoizedProps:J,stateNode:q}=A;try{A:switch(Z){case"button":case"input":case"select":case"textarea":J.autoFocus&&q.focus();break A;case"img":J.src?q.src=J.src:J.srcSet&&(q.srcset=J.srcSet)}}catch(Q){N1(A,A.return,Q)}}function c3(A,Z,J){try{var q=A.stateNode;ah(q,A.type,J,Z),q[X6]=Z}catch(Q){N1(A,A.return,Q)}}function cL(A){return A.tag===5||A.tag===3||A.tag===26||A.tag===27&&sA(A.type)||A.tag===4}function m3(A){A:for(;;){for(;A.sibling===null;){if(A.return===null||cL(A.return))return null;A=A.return}A.sibling.return=A.return;for(A=A.sibling;A.tag!==5&&A.tag!==6&&A.tag!==18;){if(A.tag===27&&sA(A.type))continue A;if(A.flags&2)continue A;if(A.child===null||A.tag===4)continue A;else A.child.return=A,A=A.child}if(!(A.flags&2))return A.stateNode}}function SX(A,Z,J){var q=A.tag;if(q===5||q===6)A=A.stateNode,Z?(J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J).insertBefore(A,Z):(Z=J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J,Z.appendChild(A),J=J._reactRootContainer,J!==null&&J!==void 0||Z.onclick!==null||(Z.onclick=AA));else if(q!==4&&(q===27&&sA(A.type)&&(J=A.stateNode,Z=null),A=A.child,A!==null))for(SX(A,Z,J),A=A.sibling;A!==null;)SX(A,Z,J),A=A.sibling}function xq(A,Z,J){var q=A.tag;if(q===5||q===6)A=A.stateNode,Z?J.insertBefore(A,Z):J.appendChild(A);else if(q!==4&&(q===27&&sA(A.type)&&(J=A.stateNode),A=A.child,A!==null))for(xq(A,Z,J),A=A.sibling;A!==null;)xq(A,Z,J),A=A.sibling}function mL(A){var{stateNode:Z,memoizedProps:J}=A;try{for(var q=A.type,Q=Z.attributes;Q.length;)Z.removeAttributeNode(Q[0]);y2(Z,q,J),Z[f2]=A,Z[X6]=J}catch(z){N1(A,A.return,z)}}function Sh(A,Z){if(A=A.containerInfo,gX=uq,A=x$(A),zY(A)){if("selectionStart"in A)var J={start:A.selectionStart,end:A.selectionEnd};else A:{J=(J=A.ownerDocument)&&J.defaultView||window;var q=J.getSelection&&J.getSelection();if(q&&q.rangeCount!==0){J=q.anchorNode;var{anchorOffset:Q,focusNode:z}=q;q=q.focusOffset;try{J.nodeType,z.nodeType}catch(F){J=null;break A}var G=0,X=-1,Y=-1,U=0,H=0,W=A,B=null;Z:for(;;){for(var K;;){if(W!==J||Q!==0&&W.nodeType!==3||(X=G+Q),W!==z||q!==0&&W.nodeType!==3||(Y=G+q),W.nodeType===3&&(G+=W.nodeValue.length),(K=W.firstChild)===null)break;B=W,W=K}for(;;){if(W===A)break Z;if(B===J&&++U===Q&&(X=G),B===z&&++H===q&&(Y=G),(K=W.nextSibling)!==null)break;W=B,B=W.parentNode}W=K}J=X===-1||Y===-1?null:{start:X,end:Y}}else J=null}J=J||{start:0,end:0}}else J=null;uX={focusedElem:A,selectionRange:J},uq=!1;for(D2=Z;D2!==null;)if(Z=D2,A=Z.child,(Z.subtreeFlags&1028)!==0&&A!==null)A.return=Z,D2=A;else for(;D2!==null;){switch(Z=D2,z=Z.alternate,A=Z.flags,Z.tag){case 0:if((A&4)!==0&&(A=Z.updateQueue,A=A!==null?A.events:null,A!==null))for(J=0;J<A.length;J++)Q=A[J],Q.ref.impl=Q.nextImpl;break;case 11:case 15:break;case 1:if((A&1024)!==0&&z!==null){A=void 0,J=Z,Q=z.memoizedProps,z=z.memoizedState,q=J.stateNode;try{var V=d9(J.type,Q);A=q.getSnapshotBeforeUpdate(V,z),q.__reactInternalSnapshotBeforeUpdate=A}catch(F){N1(J,J.return,F)}}break;case 3:if((A&1024)!==0){if(A=Z.stateNode.containerInfo,J=A.nodeType,J===9)mX(A);else if(J===1)switch(A.nodeName){case"HEAD":case"HTML":case"BODY":mX(A);break;default:A.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((A&1024)!==0)throw Error(i(163))}if(A=Z.sibling,A!==null){A.return=Z.return,D2=A;break}D2=Z.return}}function pL(A,Z,J){var q=J.flags;switch(J.tag){case 0:case 11:case 15:a4(A,J),q&4&&_Z(5,J);break;case 1:if(a4(A,J),q&4)if(A=J.stateNode,Z===null)try{A.componentDidMount()}catch(G){N1(J,J.return,G)}else{var Q=d9(J.type,Z.memoizedProps);Z=Z.memoizedState;try{A.componentDidUpdate(Q,Z,A.__reactInternalSnapshotBeforeUpdate)}catch(G){N1(J,J.return,G)}}q&64&&vL(J),q&512&&i8(J,J.return);break;case 3:if(a4(A,J),q&64&&(A=J.updateQueue,A!==null)){if(Z=null,J.child!==null)switch(J.child.tag){case 27:case 5:Z=J.child.stateNode;break;case 1:Z=J.child.stateNode}try{r$(A,Z)}catch(G){N1(J,J.return,G)}}break;case 27:Z===null&&q&4&&mL(J);case 26:case 5:a4(A,J),Z===null&&q&4&&uL(J),q&512&&i8(J,J.return);break;case 12:a4(A,J);break;case 31:a4(A,J),q&4&&iL(A,J);break;case 13:a4(A,J),q&4&&rL(A,J),q&64&&(A=J.memoizedState,A!==null&&(A=A.dehydrated,A!==null&&(J=gh.bind(null,J),qx(A,J))));break;case 22:if(q=J.memoizedState!==null||t4,!q){Z=Z!==null&&Z.memoizedState!==null||W2,Q=t4;var z=W2;t4=q,(W2=Z)&&!z?s4(A,J,(J.subtreeFlags&8772)!==0):a4(A,J),t4=Q,W2=z}break;case 30:break;default:a4(A,J)}}function dL(A){var Z=A.alternate;Z!==null&&(A.alternate=null,dL(Z)),A.child=null,A.deletions=null,A.sibling=null,A.tag===5&&(Z=A.stateNode,Z!==null&&eX(Z)),A.stateNode=null,A.return=null,A.dependencies=null,A.memoizedProps=null,A.memoizedState=null,A.pendingProps=null,A.stateNode=null,A.updateQueue=null}function o4(A,Z,J){for(J=J.child;J!==null;)lL(A,Z,J),J=J.sibling}function lL(A,Z,J){if(_6&&typeof _6.onCommitFiberUnmount==="function")try{_6.onCommitFiberUnmount(BZ,J)}catch(z){}switch(J.tag){case 26:W2||N4(J,Z),o4(A,Z,J),J.memoizedState?J.memoizedState.count--:J.stateNode&&(J=J.stateNode,J.parentNode.removeChild(J));break;case 27:W2||N4(J,Z);var q=o1,Q=Q6;sA(J.type)&&(o1=J.stateNode,Q6=!1),o4(A,Z,J),s8(J.stateNode),o1=q,Q6=Q;break;case 5:W2||N4(J,Z);case 6:if(q=o1,Q=Q6,o1=null,o4(A,Z,J),o1=q,Q6=Q,o1!==null)if(Q6)try{(o1.nodeType===9?o1.body:o1.nodeName==="HTML"?o1.ownerDocument.body:o1).removeChild(J.stateNode)}catch(z){N1(J,Z,z)}else try{o1.removeChild(J.stateNode)}catch(z){N1(J,Z,z)}break;case 18:o1!==null&&(Q6?(A=o1,yK(A.nodeType===9?A.body:A.nodeName==="HTML"?A.ownerDocument.body:A,J.stateNode),x7(A)):yK(o1,J.stateNode));break;case 4:q=o1,Q=Q6,o1=J.stateNode.containerInfo,Q6=!0,o4(A,Z,J),o1=q,Q6=Q;break;case 0:case 11:case 14:case 15:rA(2,J,Z),W2||rA(4,J,Z),o4(A,Z,J);break;case 1:W2||(N4(J,Z),q=J.stateNode,typeof q.componentWillUnmount==="function"&&gL(J,Z,q)),o4(A,Z,J);break;case 21:o4(A,Z,J);break;case 22:W2=(q=W2)||J.memoizedState!==null,o4(A,Z,J),W2=q;break;default:o4(A,Z,J)}}function iL(A,Z){if(Z.memoizedState===null&&(A=Z.alternate,A!==null&&(A=A.memoizedState,A!==null))){A=A.dehydrated;try{x7(A)}catch(J){N1(Z,Z.return,J)}}}function rL(A,Z){if(Z.memoizedState===null&&(A=Z.alternate,A!==null&&(A=A.memoizedState,A!==null&&(A=A.dehydrated,A!==null))))try{x7(A)}catch(J){N1(Z,Z.return,J)}}function Ph(A){switch(A.tag){case 31:case 13:case 19:var Z=A.stateNode;return Z===null&&(Z=A.stateNode=new NK),Z;case 22:return A=A.stateNode,Z=A._retryCache,Z===null&&(Z=A._retryCache=new NK),Z;default:throw Error(i(435,A.tag))}}function rJ(A,Z){var J=Ph(A);Z.forEach(function(q){if(!J.has(q)){J.add(q);var Q=uh.bind(null,A,q);q.then(Q,Q)}})}function J6(A,Z){var J=Z.deletions;if(J!==null)for(var q=0;q<J.length;q++){var Q=J[q],z=A,G=Z,X=G;A:for(;X!==null;){switch(X.tag){case 27:if(sA(X.type)){o1=X.stateNode,Q6=!1;break A}break;case 5:o1=X.stateNode,Q6=!1;break A;case 3:case 4:o1=X.stateNode.containerInfo,Q6=!0;break A}X=X.return}if(o1===null)throw Error(i(160));lL(z,G,Q),o1=null,Q6=!1,z=Q.alternate,z!==null&&(z.return=null),Q.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)oL(Z,A),Z=Z.sibling}function oL(A,Z){var{alternate:J,flags:q}=A;switch(A.tag){case 0:case 11:case 14:case 15:J6(Z,A),q6(A),q&4&&(rA(3,A,A.return),_Z(3,A),rA(5,A,A.return));break;case 1:J6(Z,A),q6(A),q&512&&(W2||J===null||N4(J,J.return)),q&64&&t4&&(A=A.updateQueue,A!==null&&(q=A.callbacks,q!==null&&(J=A.shared.hiddenCallbacks,A.shared.hiddenCallbacks=J===null?q:J.concat(q))));break;case 26:var Q=q4;if(J6(Z,A),q6(A),q&512&&(W2||J===null||N4(J,J.return)),q&4){var z=J!==null?J.memoizedState:null;if(q=A.memoizedState,J===null)if(q===null)if(A.stateNode===null){A:{q=A.type,J=A.memoizedProps,Q=Q.ownerDocument||Q;Z:switch(q){case"title":if(z=Q.getElementsByTagName("title")[0],!z||z[LZ]||z[f2]||z.namespaceURI==="http://www.w3.org/2000/svg"||z.hasAttribute("itemprop"))z=Q.createElement(q),Q.head.insertBefore(z,Q.querySelector("head > title"));y2(z,q,J),z[f2]=A,T2(z),q=z;break A;case"link":var G=pK("link","href",Q).get(q+(J.href||""));if(G){for(var X=0;X<G.length;X++)if(z=G[X],z.getAttribute("href")===(J.href==null||J.href===""?null:J.href)&&z.getAttribute("rel")===(J.rel==null?null:J.rel)&&z.getAttribute("title")===(J.title==null?null:J.title)&&z.getAttribute("crossorigin")===(J.crossOrigin==null?null:J.crossOrigin)){G.splice(X,1);break Z}}z=Q.createElement(q),y2(z,q,J),Q.head.appendChild(z);break;case"meta":if(G=pK("meta","content",Q).get(q+(J.content||""))){for(X=0;X<G.length;X++)if(z=G[X],z.getAttribute("content")===(J.content==null?null:""+J.content)&&z.getAttribute("name")===(J.name==null?null:J.name)&&z.getAttribute("property")===(J.property==null?null:J.property)&&z.getAttribute("http-equiv")===(J.httpEquiv==null?null:J.httpEquiv)&&z.getAttribute("charset")===(J.charSet==null?null:J.charSet)){G.splice(X,1);break Z}}z=Q.createElement(q),y2(z,q,J),Q.head.appendChild(z);break;default:throw Error(i(468,q))}z[f2]=A,T2(z),q=z}A.stateNode=q}else dK(Q,A.type,A.stateNode);else A.stateNode=mK(Q,q,A.memoizedProps);else z!==q?(z===null?J.stateNode!==null&&(J=J.stateNode,J.parentNode.removeChild(J)):z.count--,q===null?dK(Q,A.type,A.stateNode):mK(Q,q,A.memoizedProps)):q===null&&A.stateNode!==null&&c3(A,A.memoizedProps,J.memoizedProps)}break;case 27:J6(Z,A),q6(A),q&512&&(W2||J===null||N4(J,J.return)),J!==null&&q&4&&c3(A,A.memoizedProps,J.memoizedProps);break;case 5:if(J6(Z,A),q6(A),q&512&&(W2||J===null||N4(J,J.return)),A.flags&32){Q=A.stateNode;try{j7(Q,"")}catch(V){N1(A,A.return,V)}}q&4&&A.stateNode!=null&&(Q=A.memoizedProps,c3(A,Q,J!==null?J.memoizedProps:Q)),q&1024&&(p3=!0);break;case 6:if(J6(Z,A),q6(A),q&4){if(A.stateNode===null)throw Error(i(162));q=A.memoizedProps,J=A.stateNode;try{J.nodeValue=q}catch(V){N1(A,A.return,V)}}break;case 3:if(Hq=null,Q=q4,q4=Eq(Z.containerInfo),J6(Z,A),q4=Q,q6(A),q&4&&J!==null&&J.memoizedState.isDehydrated)try{x7(Z.containerInfo)}catch(V){N1(A,A.return,V)}p3&&(p3=!1,aL(A));break;case 4:q=q4,q4=Eq(A.stateNode.containerInfo),J6(Z,A),q6(A),q4=q;break;case 12:J6(Z,A),q6(A);break;case 31:J6(Z,A),q6(A),q&4&&(q=A.updateQueue,q!==null&&(A.updateQueue=null,rJ(A,q)));break;case 13:J6(Z,A),q6(A),A.child.flags&8192&&A.memoizedState!==null!==(J!==null&&J.memoizedState!==null)&&(AQ=F6()),q&4&&(q=A.updateQueue,q!==null&&(A.updateQueue=null,rJ(A,q)));break;case 22:Q=A.memoizedState!==null;var Y=J!==null&&J.memoizedState!==null,U=t4,H=W2;if(t4=U||Q,W2=H||Y,J6(Z,A),W2=H,t4=U,q6(A),q&8192)A:for(Z=A.stateNode,Z._visibility=Q?Z._visibility&-2:Z._visibility|1,Q&&(J===null||Y||t4||W2||b9(A)),J=null,Z=A;;){if(Z.tag===5||Z.tag===26){if(J===null){Y=J=Z;try{if(z=Y.stateNode,Q)G=z.style,typeof G.setProperty==="function"?G.setProperty("display","none","important"):G.display="none";else{X=Y.stateNode;var W=Y.memoizedProps.style,B=W!==void 0&&W!==null&&W.hasOwnProperty("display")?W.display:null;X.style.display=B==null||typeof B==="boolean"?"":(""+B).trim()}}catch(V){N1(Y,Y.return,V)}}}else if(Z.tag===6){if(J===null){Y=Z;try{Y.stateNode.nodeValue=Q?"":Y.memoizedProps}catch(V){N1(Y,Y.return,V)}}}else if(Z.tag===18){if(J===null){Y=Z;try{var K=Y.stateNode;Q?EK(K,!0):EK(Y.stateNode,!1)}catch(V){N1(Y,Y.return,V)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===A)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===A)break A;for(;Z.sibling===null;){if(Z.return===null||Z.return===A)break A;J===Z&&(J=null),Z=Z.return}J===Z&&(J=null),Z.sibling.return=Z.return,Z=Z.sibling}q&4&&(q=A.updateQueue,q!==null&&(J=q.retryQueue,J!==null&&(q.retryQueue=null,rJ(A,J))));break;case 19:J6(Z,A),q6(A),q&4&&(q=A.updateQueue,q!==null&&(A.updateQueue=null,rJ(A,q)));break;case 30:break;case 21:break;default:J6(Z,A),q6(A)}}function q6(A){var Z=A.flags;if(Z&2){try{for(var J,q=A.return;q!==null;){if(cL(q)){J=q;break}q=q.return}if(J==null)throw Error(i(160));switch(J.tag){case 27:var Q=J.stateNode,z=m3(A);xq(A,z,Q);break;case 5:var G=J.stateNode;J.flags&32&&(j7(G,""),J.flags&=-33);var X=m3(A);xq(A,X,G);break;case 3:case 4:var Y=J.stateNode.containerInfo,U=m3(A);SX(A,U,Y);break;default:throw Error(i(161))}}catch(H){N1(A,A.return,H)}A.flags&=-3}Z&4096&&(A.flags&=-4097)}function aL(A){if(A.subtreeFlags&1024)for(A=A.child;A!==null;){var Z=A;aL(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),A=A.sibling}}function a4(A,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)pL(A,Z.alternate,Z),Z=Z.sibling}function b9(A){for(A=A.child;A!==null;){var Z=A;switch(Z.tag){case 0:case 11:case 14:case 15:rA(4,Z,Z.return),b9(Z);break;case 1:N4(Z,Z.return);var J=Z.stateNode;typeof J.componentWillUnmount==="function"&&gL(Z,Z.return,J),b9(Z);break;case 27:s8(Z.stateNode);case 26:case 5:N4(Z,Z.return),b9(Z);break;case 22:Z.memoizedState===null&&b9(Z);break;case 30:b9(Z);break;default:b9(Z)}A=A.sibling}}function s4(A,Z,J){J=J&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;){var q=Z.alternate,Q=A,z=Z,G=z.flags;switch(z.tag){case 0:case 11:case 15:s4(Q,z,J),_Z(4,z);break;case 1:if(s4(Q,z,J),q=z,Q=q.stateNode,typeof Q.componentDidMount==="function")try{Q.componentDidMount()}catch(U){N1(q,q.return,U)}if(q=z,Q=q.updateQueue,Q!==null){var X=q.stateNode;try{var Y=Q.shared.hiddenCallbacks;if(Y!==null)for(Q.shared.hiddenCallbacks=null,Q=0;Q<Y.length;Q++)i$(Y[Q],X)}catch(U){N1(q,q.return,U)}}J&&G&64&&vL(z),i8(z,z.return);break;case 27:mL(z);case 26:case 5:s4(Q,z,J),J&&q===null&&G&4&&uL(z),i8(z,z.return);break;case 12:s4(Q,z,J);break;case 31:s4(Q,z,J),J&&G&4&&iL(Q,z);break;case 13:s4(Q,z,J),J&&G&4&&rL(Q,z);break;case 22:z.memoizedState===null&&s4(Q,z,J),i8(z,z.return);break;case 30:break;default:s4(Q,z,J)}Z=Z.sibling}}function PY(A,Z){var J=null;A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(J=A.memoizedState.cachePool.pool),A=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(A=Z.memoizedState.cachePool.pool),A!==J&&(A!=null&&A.refCount++,J!=null&&MZ(J))}function IY(A,Z){A=null,Z.alternate!==null&&(A=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==A&&(Z.refCount++,A!=null&&MZ(A))}function J4(A,Z,J,q){if(Z.subtreeFlags&10256)for(Z=Z.child;Z!==null;)sL(A,Z,J,q),Z=Z.sibling}function sL(A,Z,J,q){var Q=Z.flags;switch(Z.tag){case 0:case 11:case 15:J4(A,Z,J,q),Q&2048&&_Z(9,Z);break;case 1:J4(A,Z,J,q);break;case 3:J4(A,Z,J,q),Q&2048&&(A=null,Z.alternate!==null&&(A=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==A&&(Z.refCount++,A!=null&&MZ(A)));break;case 12:if(Q&2048){J4(A,Z,J,q),A=Z.stateNode;try{var z=Z.memoizedProps,G=z.id,X=z.onPostCommit;typeof X==="function"&&X(G,Z.alternate===null?"mount":"update",A.passiveEffectDuration,-0)}catch(Y){N1(Z,Z.return,Y)}}else J4(A,Z,J,q);break;case 31:J4(A,Z,J,q);break;case 13:J4(A,Z,J,q);break;case 23:break;case 22:z=Z.stateNode,G=Z.alternate,Z.memoizedState!==null?z._visibility&2?J4(A,Z,J,q):r8(A,Z):z._visibility&2?J4(A,Z,J,q):(z._visibility|=2,n5(A,Z,J,q,(Z.subtreeFlags&10256)!==0||!1)),Q&2048&&PY(G,Z);break;case 24:J4(A,Z,J,q),Q&2048&&IY(Z.alternate,Z);break;default:J4(A,Z,J,q)}}function n5(A,Z,J,q,Q){Q=Q&&((Z.subtreeFlags&10256)!==0||!1);for(Z=Z.child;Z!==null;){var z=A,G=Z,X=J,Y=q,U=G.flags;switch(G.tag){case 0:case 11:case 15:n5(z,G,X,Y,Q),_Z(8,G);break;case 23:break;case 22:var H=G.stateNode;G.memoizedState!==null?H._visibility&2?n5(z,G,X,Y,Q):r8(z,G):(H._visibility|=2,n5(z,G,X,Y,Q)),Q&&U&2048&&PY(G.alternate,G);break;case 24:n5(z,G,X,Y,Q),Q&&U&2048&&IY(G.alternate,G);break;default:n5(z,G,X,Y,Q)}Z=Z.sibling}}function r8(A,Z){if(Z.subtreeFlags&10256)for(Z=Z.child;Z!==null;){var J=A,q=Z,Q=q.flags;switch(q.tag){case 22:r8(J,q),Q&2048&&PY(q.alternate,q);break;case 24:r8(J,q),Q&2048&&IY(q.alternate,q);break;default:r8(J,q)}Z=Z.sibling}}function s5(A,Z,J){if(A.subtreeFlags&R8)for(A=A.child;A!==null;)nL(A,Z,J),A=A.sibling}function nL(A,Z,J){switch(A.tag){case 26:s5(A,Z,J),A.flags&R8&&A.memoizedState!==null&&Lx(J,q4,A.memoizedState,A.memoizedProps);break;case 5:s5(A,Z,J);break;case 3:case 4:var q=q4;q4=Eq(A.stateNode.containerInfo),s5(A,Z,J),q4=q;break;case 22:A.memoizedState===null&&(q=A.alternate,q!==null&&q.memoizedState!==null?(q=R8,R8=16777216,s5(A,Z,J),R8=q):s5(A,Z,J));break;default:s5(A,Z,J)}}function tL(A){var Z=A.alternate;if(Z!==null&&(A=Z.child,A!==null)){Z.child=null;do Z=A.sibling,A.sibling=null,A=Z;while(A!==null)}}function w8(A){var Z=A.deletions;if((A.flags&16)!==0){if(Z!==null)for(var J=0;J<Z.length;J++){var q=Z[J];D2=q,AV(q,A)}tL(A)}if(A.subtreeFlags&10256)for(A=A.child;A!==null;)eL(A),A=A.sibling}function eL(A){switch(A.tag){case 0:case 11:case 15:w8(A),A.flags&2048&&rA(9,A,A.return);break;case 3:w8(A);break;case 12:w8(A);break;case 22:var Z=A.stateNode;A.memoizedState!==null&&Z._visibility&2&&(A.return===null||A.return.tag!==13)?(Z._visibility&=-3,Yq(A)):w8(A);break;default:w8(A)}}function Yq(A){var Z=A.deletions;if((A.flags&16)!==0){if(Z!==null)for(var J=0;J<Z.length;J++){var q=Z[J];D2=q,AV(q,A)}tL(A)}for(A=A.child;A!==null;){switch(Z=A,Z.tag){case 0:case 11:case 15:rA(8,Z,Z.return),Yq(Z);break;case 22:J=Z.stateNode,J._visibility&2&&(J._visibility&=-3,Yq(Z));break;default:Yq(Z)}A=A.sibling}}function AV(A,Z){for(;D2!==null;){var J=D2;switch(J.tag){case 0:case 11:case 15:rA(8,J,Z);break;case 23:case 22:if(J.memoizedState!==null&&J.memoizedState.cachePool!==null){var q=J.memoizedState.cachePool.pool;q!=null&&q.refCount++}break;case 24:MZ(J.memoizedState.cache)}if(q=J.child,q!==null)q.return=J,D2=q;else A:for(J=A;D2!==null;){q=D2;var{sibling:Q,return:z}=q;if(dL(q),q===J){D2=null;break A}if(Q!==null){Q.return=z,D2=Q;break A}D2=z}}}function j6(){return(H1&2)!==0&&s0!==0?s0&-s0:S0.T!==null?yY():W$()}function qV(){if(M6===0)if((s0&536870912)===0||t0){var A=gJ;gJ<<=1,(gJ&3932160)===0&&(gJ=262144),M6=A}else M6=536870912;return A=N6.current,A!==null&&(A.flags|=32),M6}function G6(A,Z,J){if(A===R1&&(C1===2||C1===9)||A.cancelPendingCommit!==null)w7(A,0),bA(A,s0,M6,!1);if($Z(A,J),(H1&2)===0||A!==R1)A===R1&&((H1&2)===0&&(g9|=J),e1===4&&bA(A,s0,M6,!1)),T4(A)}function QV(A,Z,J){if((H1&6)!==0)throw Error(i(327));var q=!J&&(Z&127)===0&&(Z&A.expiredLanes)===0||KZ(A,Z),Q=q?yh(A,Z):d3(A,Z,!0),z=q;do{if(Q===0){b7&&!q&&bA(A,Z,0,!1);break}else{if(J=A.current.alternate,z&&!bh(J)){Q=d3(A,Z,!1),z=!1;continue}if(Q===2){if(z=Z,A.errorRecoveryDisabledLanes&z)var G=0;else G=A.pendingLanes&-536870913,G=G!==0?G:G&536870912?536870912:0;if(G!==0){Z=G;A:{var X=A;Q=o8;var Y=X.current.memoizedState.isDehydrated;if(Y&&(w7(X,G).flags|=256),G=d3(X,G,!1),G!==2){if(fY&&!Y){X.errorRecoveryDisabledLanes|=z,g9|=z,Q=4;break A}z=z6,z6=Q,z!==null&&(z6===null?z6=z:z6.push.apply(z6,z))}Q=G}if(z=!1,Q!==2)continue}}if(Q===1){w7(A,0),bA(A,Z,0,!0);break}A:{switch(q=A,z=Q,z){case 0:case 1:throw Error(i(345));case 4:if((Z&4194048)!==Z)break;case 6:bA(q,Z,M6,!fA);break A;case 2:z6=null;break;case 3:case 5:break;default:throw Error(i(329))}if((Z&62914560)===Z&&(Q=AQ+300-F6(),10<Q)){if(bA(q,Z,M6,!fA),pq(q,0,!0)!==0)break A;QA=Z,q.timeoutHandle=OV(OK.bind(null,q,J,z6,Pq,PX,Z,M6,g9,D7,fA,z,"Throttled",-0,0),Q);break A}OK(q,J,z6,Pq,PX,Z,M6,g9,D7,fA,z,null,-0,0)}}break}while(1);T4(A)}function OK(A,Z,J,q,Q,z,G,X,Y,U,H,W,B,K){if(A.timeoutHandle=-1,W=Z.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:AA},nL(Z,z,W);var V=(z&62914560)===z?AQ-F6():(z&4194048)===z?ZV-F6():0;if(V=Vx(W,V),V!==null){QA=z,A.cancelPendingCommit=V(TK.bind(null,A,Z,z,J,q,Q,G,X,Y,H,W,null,B,K)),bA(A,z,G,!U);return}}TK(A,Z,z,J,q,Q,G,X,Y)}function bh(A){for(var Z=A;;){var J=Z.tag;if((J===0||J===11||J===15)&&Z.flags&16384&&(J=Z.updateQueue,J!==null&&(J=J.stores,J!==null)))for(var q=0;q<J.length;q++){var Q=J[q],z=Q.getSnapshot;Q=Q.value;try{if(!C6(z(),Q))return!1}catch(G){return!1}}if(J=Z.child,Z.subtreeFlags&16384&&J!==null)J.return=Z,Z=J;else{if(Z===A)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===A)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function bA(A,Z,J,q){Z&=~bY,Z&=~g9,A.suspendedLanes|=Z,A.pingedLanes&=~Z,q&&(A.warmLanes|=Z),q=A.expirationTimes;for(var Q=Z;0<Q;){var z=31-k6(Q),G=1<<z;q[z]=-1,Q&=~G}J!==0&&Y$(A,J,Z)}function ZQ(){return(H1&6)===0?(kZ(0,!1),!1):!0}function RY(){if(d0!==null){if(C1===0)var A=d0.return;else A=d0,ZA=a9=null,kY(A),V7=null,qZ=0,A=d0;for(;A!==null;)EL(A.alternate,A),A=A.return;d0=null}}function w7(A,Z){var J=A.timeoutHandle;J!==-1&&(A.timeoutHandle=-1,th(J)),J=A.cancelPendingCommit,J!==null&&(A.cancelPendingCommit=null,J()),QA=0,RY(),R1=A,d0=J=JA(A.current,null),s0=Z,C1=0,$6=null,fA=!1,b7=KZ(A,Z),fY=!1,D7=M6=bY=g9=oA=e1=0,z6=o8=null,PX=!1,(Z&8)!==0&&(Z|=Z&32);var q=A.entangledLanes;if(q!==0)for(A=A.entanglements,q&=Z;0<q;){var Q=31-k6(q),z=1<<Q;Z|=A[Q],q&=~z}return UA=Z,rq(),J}function zV(A,Z){R0=null,S0.H=zZ,Z===f7||Z===aq?(Z=JK(),C1=3):Z===KY?(Z=JK(),C1=4):C1=Z===xY?8:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?6:1,$6=Z,d0===null&&(e1=1,wq(A,g6(Z,A.current)))}function GV(){var A=N6.current;return A===null?!0:(s0&4194048)===s0?c6===null?!0:!1:(s0&62914560)===s0||(s0&536870912)!==0?A===c6:!1}function XV(){var A=S0.H;return S0.H=zZ,A===null?zZ:A}function YV(){var A=S0.A;return S0.A=Ih,A}function Iq(){e1=4,fA||(s0&4194048)!==s0&&N6.current!==null||(b7=!0),(oA&134217727)===0&&(g9&134217727)===0||R1===null||bA(R1,s0,M6,!1)}function d3(A,Z,J){var q=H1;H1|=2;var Q=XV(),z=YV();if(R1!==A||s0!==Z)Pq=null,w7(A,Z);Z=!1;var G=e1;A:do try{if(C1!==0&&d0!==null){var X=d0,Y=$6;switch(C1){case 8:RY(),G=6;break A;case 3:case 2:case 9:case 6:N6.current===null&&(Z=!0);var U=C1;if(C1=0,$6=null,W7(A,X,Y,U),J&&b7){G=0;break A}break;default:U=C1,C1=0,$6=null,W7(A,X,Y,U)}}Rh(),G=e1;break}catch(H){zV(A,H)}while(1);return Z&&A.shellSuspendCounter++,ZA=a9=null,H1=q,S0.H=Q,S0.A=z,d0===null&&(R1=null,s0=0,rq()),G}function Rh(){for(;d0!==null;)UV(d0)}function yh(A,Z){var J=H1;H1|=2;var q=XV(),Q=YV();R1!==A||s0!==Z?(Pq=null,Sq=F6()+500,w7(A,Z)):b7=KZ(A,Z);A:do try{if(C1!==0&&d0!==null){Z=d0;var z=$6;Z:switch(C1){case 1:C1=0,$6=null,W7(A,Z,z,1);break;case 2:case 9:if(ZK(z)){C1=0,$6=null,DK(Z);break}Z=function(){C1!==2&&C1!==9||R1!==A||(C1=7),T4(A)},z.then(Z,Z);break A;case 3:C1=7;break A;case 4:C1=5;break A;case 7:ZK(z)?(C1=0,$6=null,DK(Z)):(C1=0,$6=null,W7(A,Z,z,7));break;case 5:var G=null;switch(d0.tag){case 26:G=d0.memoizedState;case 5:case 27:var X=d0;if(G?xV(G):X.stateNode.complete){C1=0,$6=null;var Y=X.sibling;if(Y!==null)d0=Y;else{var U=X.return;U!==null?(d0=U,JQ(U)):d0=null}break Z}}C1=0,$6=null,W7(A,Z,z,5);break;case 6:C1=0,$6=null,W7(A,Z,z,6);break;case 8:RY(),e1=6;break A;default:throw Error(i(462))}}Eh();break}catch(H){zV(A,H)}while(1);if(ZA=a9=null,S0.H=q,S0.A=Q,H1=J,d0!==null)return 0;return R1=null,s0=0,rq(),e1}function Eh(){for(;d0!==null&&!Gw();)UV(d0)}function UV(A){var Z=yL(A.alternate,A,UA);A.memoizedProps=A.pendingProps,Z===null?JQ(A):d0=Z}function DK(A){var Z=A,J=Z.alternate;switch(Z.tag){case 15:case 0:Z=FK(J,Z,Z.pendingProps,Z.type,void 0,s0);break;case 11:Z=FK(J,Z,Z.pendingProps,Z.type.render,Z.ref,s0);break;case 5:kY(Z);default:EL(J,Z),Z=d0=E$(Z,UA),Z=yL(J,Z,UA)}A.memoizedProps=A.pendingProps,Z===null?JQ(A):d0=Z}function W7(A,Z,J,q){ZA=a9=null,kY(Z),V7=null,qZ=0;var Q=Z.return;try{if(Dh(A,Q,Z,J,s0)){e1=1,wq(A,g6(J,A.current)),d0=null;return}}catch(z){if(Q!==null)throw d0=Q,z;e1=1,wq(A,g6(J,A.current)),d0=null;return}if(Z.flags&32768){if(t0||q===1)A=!0;else if(b7||(s0&536870912)!==0)A=!1;else if(fA=A=!0,q===2||q===9||q===3||q===6)q=N6.current,q!==null&&q.tag===13&&(q.flags|=16384);HV(Z,A)}else JQ(Z)}function JQ(A){var Z=A;do{if((Z.flags&32768)!==0){HV(Z,fA);return}A=Z.return;var J=hh(Z.alternate,Z,UA);if(J!==null){d0=J;return}if(Z=Z.sibling,Z!==null){d0=Z;return}d0=Z=A}while(Z!==null);e1===0&&(e1=5)}function HV(A,Z){do{var J=xh(A.alternate,A);if(J!==null){J.flags&=32767,d0=J;return}if(J=A.return,J!==null&&(J.flags|=32768,J.subtreeFlags=0,J.deletions=null),!Z&&(A=A.sibling,A!==null)){d0=A;return}d0=A=J}while(A!==null);e1=6,d0=null}function TK(A,Z,J,q,Q,z,G,X,Y){A.cancelPendingCommit=null;do qQ();while(F2!==0);if((H1&6)!==0)throw Error(i(327));if(Z!==null){if(Z===A.current)throw Error(i(177));if(z=Z.lanes|Z.childLanes,z|=GY,Vw(A,J,z,G,X,Y),A===R1&&(d0=R1=null,s0=0),T7=Z,cA=A,QA=J,IX=z,fX=Q,JV=q,(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?(A.callbackNode=null,A.callbackPriority=0,ch(Vq,function(){return LV(),null})):(A.callbackNode=null,A.callbackPriority=0),q=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||q){q=S0.T,S0.T=null,Q=W1.p,W1.p=2,G=H1,H1|=4;try{Sh(A,Z,J)}finally{H1=G,W1.p=Q,S0.T=q}}F2=1,WV(),BV(),KV()}}function WV(){if(F2===1){F2=0;var A=cA,Z=T7,J=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||J){J=S0.T,S0.T=null;var q=W1.p;W1.p=2;var Q=H1;H1|=4;try{oL(Z,A);var z=uX,G=x$(A.containerInfo),X=z.focusedElem,Y=z.selectionRange;if(G!==X&&X&&X.ownerDocument&&h$(X.ownerDocument.documentElement,X)){if(Y!==null&&zY(X)){var{start:U,end:H}=Y;if(H===void 0&&(H=U),"selectionStart"in X)X.selectionStart=U,X.selectionEnd=Math.min(H,X.value.length);else{var W=X.ownerDocument||document,B=W&&W.defaultView||window;if(B.getSelection){var K=B.getSelection(),V=X.textContent.length,F=Math.min(Y.start,V),j=Y.end===void 0?F:Math.min(Y.end,V);!K.extend&&F>j&&(G=j,j=F,F=G);var $=oB(X,F),L=oB(X,j);if($&&L&&(K.rangeCount!==1||K.anchorNode!==$.node||K.anchorOffset!==$.offset||K.focusNode!==L.node||K.focusOffset!==L.offset)){var M=W.createRange();M.setStart($.node,$.offset),K.removeAllRanges(),F>j?(K.addRange(M),K.extend(L.node,L.offset)):(M.setEnd(L.node,L.offset),K.addRange(M))}}}}W=[];for(K=X;K=K.parentNode;)K.nodeType===1&&W.push({element:K,left:K.scrollLeft,top:K.scrollTop});typeof X.focus==="function"&&X.focus();for(X=0;X<W.length;X++){var _=W[X];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}uq=!!gX,uX=gX=null}finally{H1=Q,W1.p=q,S0.T=J}}A.current=Z,F2=2}}function BV(){if(F2===2){F2=0;var A=cA,Z=T7,J=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||J){J=S0.T,S0.T=null;var q=W1.p;W1.p=2;var Q=H1;H1|=4;try{pL(A,Z.alternate,Z)}finally{H1=Q,W1.p=q,S0.T=J}}F2=3}}function KV(){if(F2===4||F2===3){F2=0,Xw();var A=cA,Z=T7,J=QA,q=JV;(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?F2=5:(F2=0,T7=cA=null,$V(A,A.pendingLanes));var Q=A.pendingLanes;if(Q===0&&(uA=null),tX(J),Z=Z.stateNode,_6&&typeof _6.onCommitFiberRoot==="function")try{_6.onCommitFiberRoot(BZ,Z,void 0,(Z.current.flags&128)===128)}catch(Y){}if(q!==null){Z=S0.T,Q=W1.p,W1.p=2,S0.T=null;try{for(var z=A.onRecoverableError,G=0;G<q.length;G++){var X=q[G];z(X.value,{componentStack:X.stack})}}finally{S0.T=Z,W1.p=Q}}(QA&3)!==0&&qQ(),T4(A),Q=A.pendingLanes,(J&261930)!==0&&(Q&42)!==0?A===bX?a8++:(a8=0,bX=A):a8=0,kZ(0,!1)}}function $V(A,Z){(A.pooledCacheLanes&=Z)===0&&(Z=A.pooledCache,Z!=null&&(A.pooledCache=null,MZ(Z)))}function qQ(){return WV(),BV(),KV(),LV()}function LV(){if(F2!==5)return!1;var A=cA,Z=IX;IX=0;var J=tX(QA),q=S0.T,Q=W1.p;try{W1.p=32>J?32:J,S0.T=null,J=fX,fX=null;var z=cA,G=QA;if(F2=0,T7=cA=null,QA=0,(H1&6)!==0)throw Error(i(331));var X=H1;if(H1|=4,eL(z.current),sL(z,z.current,G,J),H1=X,kZ(0,!1),_6&&typeof _6.onPostCommitFiberRoot==="function")try{_6.onPostCommitFiberRoot(BZ,z)}catch(Y){}return!0}finally{W1.p=Q,S0.T=q,$V(A,Z)}}function wK(A,Z,J){Z=g6(J,Z),Z=wX(A.stateNode,Z,2),A=gA(A,Z,2),A!==null&&($Z(A,2),T4(A))}function N1(A,Z,J){if(A.tag===3)wK(A,A,J);else for(;Z!==null;){if(Z.tag===3){wK(Z,A,J);break}else if(Z.tag===1){var q=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(uA===null||!uA.has(q))){A=g6(J,A),J=SL(2),q=gA(Z,J,2),q!==null&&(PL(J,q,Z,A),$Z(q,2),T4(q));break}}Z=Z.return}}function l3(A,Z,J){var q=A.pingCache;if(q===null){q=A.pingCache=new fh;var Q=new Set;q.set(Z,Q)}else Q=q.get(Z),Q===void 0&&(Q=new Set,q.set(Z,Q));Q.has(J)||(fY=!0,Q.add(J),A=vh.bind(null,A,Z,J),Z.then(A,A))}function vh(A,Z,J){var q=A.pingCache;q!==null&&q.delete(Z),A.pingedLanes|=A.suspendedLanes&J,A.warmLanes&=~J,R1===A&&(s0&J)===J&&(e1===4||e1===3&&(s0&62914560)===s0&&300>F6()-AQ?(H1&2)===0&&w7(A,0):bY|=J,D7===s0&&(D7=0)),T4(A)}function VV(A,Z){Z===0&&(Z=X$()),A=o9(A,Z),A!==null&&($Z(A,Z),T4(A))}function gh(A){var Z=A.memoizedState,J=0;Z!==null&&(J=Z.retryLane),VV(A,J)}function uh(A,Z){var J=0;switch(A.tag){case 31:case 13:var{stateNode:q,memoizedState:Q}=A;Q!==null&&(J=Q.retryLane);break;case 19:q=A.stateNode;break;case 22:q=A.stateNode._retryCache;break;default:throw Error(i(314))}q!==null&&q.delete(Z),VV(A,J)}function ch(A,Z){return sX(A,Z)}function T4(A){A!==t5&&A.next===null&&(t5===null?fq=t5=A:t5=t5.next=A),bq=!0,RX||(RX=!0,ph())}function kZ(A,Z){if(!i3&&bq){i3=!0;do{var J=!1;for(var q=fq;q!==null;){if(!Z)if(A!==0){var Q=q.pendingLanes;if(Q===0)var z=0;else{var{suspendedLanes:G,pingedLanes:X}=q;z=(1<<31-k6(42|A)+1)-1,z&=Q&~(G&~X),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(J=!0,hK(q,z))}else z=s0,z=pq(q,q===R1?z:0,q.cancelPendingCommit!==null||q.timeoutHandle!==-1),(z&3)===0||KZ(q,z)||(J=!0,hK(q,z));q=q.next}}while(J);i3=!1}}function mh(){MV()}function MV(){bq=RX=!1;var A=0;RA!==0&&nh()&&(A=RA);for(var Z=F6(),J=null,q=fq;q!==null;){var Q=q.next,z=FV(q,Z);if(z===0)q.next=null,J===null?fq=Q:J.next=Q,Q===null&&(t5=J);else if(J=q,A!==0||(z&3)!==0)bq=!0;q=Q}F2!==0&&F2!==5||kZ(A,!1),RA!==0&&(RA=0)}function FV(A,Z){for(var{suspendedLanes:J,pingedLanes:q,expirationTimes:Q}=A,z=A.pendingLanes&-62914561;0<z;){var G=31-k6(z),X=1<<G,Y=Q[G];if(Y===-1){if((X&J)===0||(X&q)!==0)Q[G]=Lw(X,Z)}else Y<=Z&&(A.expiredLanes|=X);z&=~X}if(Z=R1,J=s0,J=pq(A,A===Z?J:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),q=A.callbackNode,J===0||A===Z&&(C1===2||C1===9)||A.cancelPendingCommit!==null)return q!==null&&q!==null&&C3(q),A.callbackNode=null,A.callbackPriority=0;if((J&3)===0||KZ(A,J)){if(Z=J&-J,Z===A.callbackPriority)return Z;switch(q!==null&&C3(q),tX(J)){case 2:case 8:J=z$;break;case 32:J=Vq;break;case 268435456:J=G$;break;default:J=Vq}return q=_V.bind(null,A),J=sX(J,q),A.callbackPriority=Z,A.callbackNode=J,Z}return q!==null&&q!==null&&C3(q),A.callbackPriority=2,A.callbackNode=null,2}function _V(A,Z){if(F2!==0&&F2!==5)return A.callbackNode=null,A.callbackPriority=0,null;var J=A.callbackNode;if(qQ()&&A.callbackNode!==J)return null;var q=s0;if(q=pq(A,A===R1?q:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),q===0)return null;return QV(A,q,Z),FV(A,F6()),A.callbackNode!=null&&A.callbackNode===J?_V.bind(null,A):null}function hK(A,Z){if(qQ())return null;QV(A,Z,!0)}function ph(){eh(function(){(H1&6)!==0?sX(Q$,mh):MV()})}function yY(){if(RA===0){var A=C7;A===0&&(A=vJ,vJ<<=1,(vJ&261888)===0&&(vJ=256)),RA=A}return RA}function xK(A){return A==null||typeof A==="symbol"||typeof A==="boolean"?null:typeof A==="function"?A:tJ(""+A)}function SK(A,Z){var J=Z.ownerDocument.createElement("input");return J.name=Z.name,J.value=Z.value,A.id&&J.setAttribute("form",A.id),Z.parentNode.insertBefore(J,Z),A=new FormData(A),J.parentNode.removeChild(J),A}function dh(A,Z,J,q,Q){if(Z==="submit"&&J&&J.stateNode===Q){var z=xK((Q[X6]||null).action),G=q.submitter;G&&(Z=(Z=G[X6]||null)?xK(Z.formAction):G.getAttribute("formAction"),Z!==null&&(z=Z,G=null));var X=new dq("action","action",null,q,Q);A.push({event:X,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(RA!==0){var Y=G?SK(Q,G):new FormData(Q);DX(J,{pending:!0,data:Y,method:Q.method,action:z},null,Y)}}else typeof z==="function"&&(X.preventDefault(),Y=G?SK(Q,G):new FormData(Q),DX(J,{pending:!0,data:Y,method:Q.method,action:z},z,Y))},currentTarget:Q}]})}}function kV(A,Z){Z=(Z&4)!==0;for(var J=0;J<A.length;J++){var q=A[J],Q=q.event;q=q.listeners;A:{var z=void 0;if(Z)for(var G=q.length-1;0<=G;G--){var X=q[G],Y=X.instance,U=X.currentTarget;if(X=X.listener,Y!==z&&Q.isPropagationStopped())break A;z=X,Q.currentTarget=U;try{z(Q)}catch(H){Fq(H)}Q.currentTarget=null,z=Y}else for(G=0;G<q.length;G++){if(X=q[G],Y=X.instance,U=X.currentTarget,X=X.listener,Y!==z&&Q.isPropagationStopped())break A;z=X,Q.currentTarget=U;try{z(Q)}catch(H){Fq(H)}Q.currentTarget=null,z=Y}}}}function p0(A,Z){var J=Z[zX];J===void 0&&(J=Z[zX]=new Set);var q=A+"__bubble";J.has(q)||(jV(Z,A,2,!1),J.add(q))}function r3(A,Z,J){var q=0;Z&&(q|=4),jV(J,A,q,Z)}function EY(A){if(!A[oJ]){A[oJ]=!0,B$.forEach(function(J){J!=="selectionchange"&&(lh.has(J)||r3(J,!1,A),r3(J,!0,A))});var Z=A.nodeType===9?A:A.ownerDocument;Z===null||Z[oJ]||(Z[oJ]=!0,r3("selectionchange",!1,Z))}}function jV(A,Z,J,q){switch(bV(Z)){case 2:var Q=_x;break;case 8:Q=kx;break;default:Q=cY}J=Q.bind(null,Z,J,A),Q=void 0,!HX||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(Q=!0),q?Q!==void 0?A.addEventListener(Z,J,{capture:!0,passive:Q}):A.addEventListener(Z,J,!0):Q!==void 0?A.addEventListener(Z,J,{passive:Q}):A.addEventListener(Z,J,!1)}function o3(A,Z,J,q,Q){var z=q;if((Z&1)===0&&(Z&2)===0&&q!==null)A:for(;;){if(q===null)return;var G=q.tag;if(G===3||G===4){var X=q.stateNode.containerInfo;if(X===Q)break;if(G===4)for(G=q.return;G!==null;){var Y=G.tag;if((Y===3||Y===4)&&G.stateNode.containerInfo===Q)return;G=G.return}for(;X!==null;){if(G=J7(X),G===null)return;if(Y=G.tag,Y===5||Y===6||Y===26||Y===27){q=z=G;continue A}X=X.parentNode}}q=q.return}k$(function(){var U=z,H=ZY(J),W=[];A:{var B=R$.get(A);if(B!==void 0){var K=dq,V=A;switch(A){case"keypress":if(Aq(J)===0)break A;case"keydown":case"keyup":K=uw;break;case"focusin":V="focus",K=w3;break;case"focusout":V="blur",K=w3;break;case"beforeblur":case"afterblur":K=w3;break;case"click":if(J.button===2)break A;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=gB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=hw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=pw;break;case P$:case I$:case f$:K=Pw;break;case b$:K=lw;break;case"scroll":case"scrollend":K=Tw;break;case"wheel":K=rw;break;case"copy":case"cut":case"paste":K=fw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=cB;break;case"toggle":case"beforetoggle":K=aw}var F=(Z&4)!==0,j=!F&&(A==="scroll"||A==="scrollend"),$=F?B!==null?B+"Capture":null:B;F=[];for(var L=U,M;L!==null;){var _=L;if(M=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||M===null||$===null||(_=t8(L,$),_!=null&&F.push(XZ(L,_,M))),j)break;L=L.return}0<F.length&&(B=new K(B,V,null,J,H),W.push({event:B,listeners:F}))}}if((Z&7)===0){A:{if(B=A==="mouseover"||A==="pointerover",K=A==="mouseout"||A==="pointerout",B&&J!==UX&&(V=J.relatedTarget||J.fromElement)&&(J7(V)||V[S7]))break A;if(K||B){if(B=H.window===H?H:(B=H.ownerDocument)?B.defaultView||B.parentWindow:window,K){if(V=J.relatedTarget||J.toElement,K=U,V=V?J7(V):null,V!==null&&(j=WZ(V),F=V.tag,V!==j||F!==5&&F!==27&&F!==6))V=null}else K=null,V=U;if(K!==V){if(F=gB,_="onMouseLeave",$="onMouseEnter",L="mouse",A==="pointerout"||A==="pointerover")F=cB,_="onPointerLeave",$="onPointerEnter",L="pointer";if(j=K==null?B:P8(K),M=V==null?B:P8(V),B=new F(_,L+"leave",K,J,H),B.target=j,B.relatedTarget=M,_=null,J7(H)===U&&(F=new F($,L+"enter",V,J,H),F.target=M,F.relatedTarget=j,_=F),j=_,K&&V)Z:{F=ih,$=K,L=V,M=0;for(_=$;_;_=F(_))M++;_=0;for(var k=L;k;k=F(k))_++;for(;0<M-_;)$=F($),M--;for(;0<_-M;)L=F(L),_--;for(;M--;){if($===L||L!==null&&$===L.alternate){F=$;break Z}$=F($),L=F(L)}F=null}else F=null;K!==null&&PK(W,B,K,F,!1),V!==null&&j!==null&&PK(W,j,V,F,!0)}}}A:{if(B=U?P8(U):window,K=B.nodeName&&B.nodeName.toLowerCase(),K==="select"||K==="input"&&B.type==="file")var C=lB;else if(dB(B))if(T$)C=zh;else{C=qh;var O=Jh}else K=B.nodeName,!K||K.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?U&&AY(U.elementType)&&(C=lB):C=Qh;if(C&&(C=C(A,U))){D$(W,C,J,H);break A}O&&O(A,B,U),A==="focusout"&&U&&B.type==="number"&&U.memoizedProps.value!=null&&YX(B,"number",B.value)}switch(O=U?P8(U):window,A){case"focusin":if(dB(O)||O.contentEditable==="true")z7=O,WX=U,u8=null;break;case"focusout":u8=WX=z7=null;break;case"mousedown":BX=!0;break;case"contextmenu":case"mouseup":case"dragend":BX=!1,aB(W,J,H);break;case"selectionchange":if(Xh)break;case"keydown":case"keyup":aB(W,J,H)}var N;if(QY)A:{switch(A){case"compositionstart":var D="onCompositionStart";break A;case"compositionend":D="onCompositionEnd";break A;case"compositionupdate":D="onCompositionUpdate";break A}D=void 0}else Q7?N$(A,J)&&(D="onCompositionEnd"):A==="keydown"&&J.keyCode===229&&(D="onCompositionStart");if(D&&(C$&&J.locale!=="ko"&&(Q7||D!=="onCompositionStart"?D==="onCompositionEnd"&&Q7&&(N=j$()):(IA=H,JY=("value"in IA)?IA.value:IA.textContent,Q7=!0)),O=Rq(U,D),0<O.length&&(D=new uB(D,A,null,J,H),W.push({event:D,listeners:O}),N?D.data=N:(N=O$(J),N!==null&&(D.data=N)))),N=nw?tw(A,J):ew(A,J))D=Rq(U,"onBeforeInput"),0<D.length&&(O=new uB("onBeforeInput","beforeinput",null,J,H),W.push({event:O,listeners:D}),O.data=N);dh(W,A,U,J,H)}kV(W,Z)})}function XZ(A,Z,J){return{instance:A,listener:Z,currentTarget:J}}function Rq(A,Z){for(var J=Z+"Capture",q=[];A!==null;){var Q=A,z=Q.stateNode;if(Q=Q.tag,Q!==5&&Q!==26&&Q!==27||z===null||(Q=t8(A,J),Q!=null&&q.unshift(XZ(A,Q,z)),Q=t8(A,Z),Q!=null&&q.push(XZ(A,Q,z))),A.tag===3)return q;A=A.return}return[]}function ih(A){if(A===null)return null;do A=A.return;while(A&&A.tag!==5&&A.tag!==27);return A?A:null}function PK(A,Z,J,q,Q){for(var z=Z._reactName,G=[];J!==null&&J!==q;){var X=J,Y=X.alternate,U=X.stateNode;if(X=X.tag,Y!==null&&Y===q)break;X!==5&&X!==26&&X!==27||U===null||(Y=U,Q?(U=t8(J,z),U!=null&&G.unshift(XZ(J,U,Y))):Q||(U=t8(J,z),U!=null&&G.push(XZ(J,U,Y)))),J=J.return}G.length!==0&&A.push({event:Z,listeners:G})}function IK(A){return(typeof A==="string"?A:""+A).replace(rh,`\n`).replace(oh,"")}function CV(A,Z){return Z=IK(Z),IK(A)===Z?!0:!1}function x1(A,Z,J,q,Q,z){switch(J){case"children":typeof q==="string"?Z==="body"||Z==="textarea"&&q===""||j7(A,q):(typeof q==="number"||typeof q==="bigint")&&Z!=="body"&&j7(A,""+q);break;case"className":cJ(A,"class",q);break;case"tabIndex":cJ(A,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":cJ(A,J,q);break;case"style":_$(A,q,z);break;case"data":if(Z!=="object"){cJ(A,"data",q);break}case"src":case"href":if(q===""&&(Z!=="a"||J!=="href")){A.removeAttribute(J);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){A.removeAttribute(J);break}q=tJ(""+q),A.setAttribute(J,q);break;case"action":case"formAction":if(typeof q==="function"){A.setAttribute(J,"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}else typeof z==="function"&&(J==="formAction"?(Z!=="input"&&x1(A,Z,"name",Q.name,Q,null),x1(A,Z,"formEncType",Q.formEncType,Q,null),x1(A,Z,"formMethod",Q.formMethod,Q,null),x1(A,Z,"formTarget",Q.formTarget,Q,null)):(x1(A,Z,"encType",Q.encType,Q,null),x1(A,Z,"method",Q.method,Q,null),x1(A,Z,"target",Q.target,Q,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){A.removeAttribute(J);break}q=tJ(""+q),A.setAttribute(J,q);break;case"onClick":q!=null&&(A.onclick=AA);break;case"onScroll":q!=null&&p0("scroll",A);break;case"onScrollEnd":q!=null&&p0("scrollend",A);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error(i(61));if(J=q.__html,J!=null){if(Q.children!=null)throw Error(i(60));A.innerHTML=J}}break;case"multiple":A.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":A.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){A.removeAttribute("xlink:href");break}J=tJ(""+q),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",J);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?A.setAttribute(J,""+q):A.removeAttribute(J);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q&&typeof q!=="function"&&typeof q!=="symbol"?A.setAttribute(J,""):A.removeAttribute(J);break;case"capture":case"download":q===!0?A.setAttribute(J,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?A.setAttribute(J,q):A.removeAttribute(J);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?A.setAttribute(J,q):A.removeAttribute(J);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?A.removeAttribute(J):A.setAttribute(J,q);break;case"popover":p0("beforetoggle",A),p0("toggle",A),nJ(A,"popover",q);break;case"xlinkActuate":i4(A,"http://www.w3.org/1999/xlink","xlink:actuate",q);break;case"xlinkArcrole":i4(A,"http://www.w3.org/1999/xlink","xlink:arcrole",q);break;case"xlinkRole":i4(A,"http://www.w3.org/1999/xlink","xlink:role",q);break;case"xlinkShow":i4(A,"http://www.w3.org/1999/xlink","xlink:show",q);break;case"xlinkTitle":i4(A,"http://www.w3.org/1999/xlink","xlink:title",q);break;case"xlinkType":i4(A,"http://www.w3.org/1999/xlink","xlink:type",q);break;case"xmlBase":i4(A,"http://www.w3.org/XML/1998/namespace","xml:base",q);break;case"xmlLang":i4(A,"http://www.w3.org/XML/1998/namespace","xml:lang",q);break;case"xmlSpace":i4(A,"http://www.w3.org/XML/1998/namespace","xml:space",q);break;case"is":nJ(A,"is",q);break;case"innerText":case"textContent":break;default:if(!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N")J=Ow.get(J)||J,nJ(A,J,q)}}function vX(A,Z,J,q,Q,z){switch(J){case"style":_$(A,q,z);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error(i(61));if(J=q.__html,J!=null){if(Q.children!=null)throw Error(i(60));A.innerHTML=J}}break;case"children":typeof q==="string"?j7(A,q):(typeof q==="number"||typeof q==="bigint")&&j7(A,""+q);break;case"onScroll":q!=null&&p0("scroll",A);break;case"onScrollEnd":q!=null&&p0("scrollend",A);break;case"onClick":q!=null&&(A.onclick=AA);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!K$.hasOwnProperty(J))A:{if(J[0]==="o"&&J[1]==="n"&&(Q=J.endsWith("Capture"),Z=J.slice(2,Q?J.length-7:void 0),z=A[X6]||null,z=z!=null?z[J]:null,typeof z==="function"&&A.removeEventListener(Z,z,Q),typeof q==="function")){typeof z!=="function"&&z!==null&&(J in A?A[J]=null:A.hasAttribute(J)&&A.removeAttribute(J)),A.addEventListener(Z,q,Q);break A}J in A?A[J]=q:q===!0?A.setAttribute(J,""):nJ(A,J,q)}}}function y2(A,Z,J){switch(Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":p0("error",A),p0("load",A);var q=!1,Q=!1,z;for(z in J)if(J.hasOwnProperty(z)){var G=J[z];if(G!=null)switch(z){case"src":q=!0;break;case"srcSet":Q=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,Z));default:x1(A,Z,z,G,J,null)}}Q&&x1(A,Z,"srcSet",J.srcSet,J,null),q&&x1(A,Z,"src",J.src,J,null);return;case"input":p0("invalid",A);var X=z=G=Q=null,Y=null,U=null;for(q in J)if(J.hasOwnProperty(q)){var H=J[q];if(H!=null)switch(q){case"name":Q=H;break;case"type":G=H;break;case"checked":Y=H;break;case"defaultChecked":U=H;break;case"value":z=H;break;case"defaultValue":X=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,Z));break;default:x1(A,Z,q,H,J,null)}}V$(A,z,X,Y,U,G,Q,!1);return;case"select":p0("invalid",A),q=G=z=null;for(Q in J)if(J.hasOwnProperty(Q)&&(X=J[Q],X!=null))switch(Q){case"value":z=X;break;case"defaultValue":G=X;break;case"multiple":q=X;default:x1(A,Z,Q,X,J,null)}Z=z,J=G,A.multiple=!!q,Z!=null?K7(A,!!q,Z,!1):J!=null&&K7(A,!!q,J,!0);return;case"textarea":p0("invalid",A),z=Q=q=null;for(G in J)if(J.hasOwnProperty(G)&&(X=J[G],X!=null))switch(G){case"value":q=X;break;case"defaultValue":Q=X;break;case"children":z=X;break;case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(91));break;default:x1(A,Z,G,X,J,null)}F$(A,q,Q,z);return;case"option":for(Y in J)if(J.hasOwnProperty(Y)&&(q=J[Y],q!=null))switch(Y){case"selected":A.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:x1(A,Z,Y,q,J,null)}return;case"dialog":p0("beforetoggle",A),p0("toggle",A),p0("cancel",A),p0("close",A);break;case"iframe":case"object":p0("load",A);break;case"video":case"audio":for(q=0;q<GZ.length;q++)p0(GZ[q],A);break;case"image":p0("error",A),p0("load",A);break;case"details":p0("toggle",A);break;case"embed":case"source":case"link":p0("error",A),p0("load",A);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in J)if(J.hasOwnProperty(U)&&(q=J[U],q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,Z));default:x1(A,Z,U,q,J,null)}return;default:if(AY(Z)){for(H in J)J.hasOwnProperty(H)&&(q=J[H],q!==void 0&&vX(A,Z,H,q,J,void 0));return}}for(X in J)J.hasOwnProperty(X)&&(q=J[X],q!=null&&x1(A,Z,X,q,J,null))}function ah(A,Z,J,q){switch(Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var Q=null,z=null,G=null,X=null,Y=null,U=null,H=null;for(K in J){var W=J[K];if(J.hasOwnProperty(K)&&W!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":Y=W;default:q.hasOwnProperty(K)||x1(A,Z,K,null,q,W)}}for(var B in q){var K=q[B];if(W=J[B],q.hasOwnProperty(B)&&(K!=null||W!=null))switch(B){case"type":z=K;break;case"name":Q=K;break;case"checked":U=K;break;case"defaultChecked":H=K;break;case"value":G=K;break;case"defaultValue":X=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,Z));break;default:K!==W&&x1(A,Z,B,K,q,W)}}XX(A,G,X,Y,U,H,z,Q);return;case"select":K=G=X=B=null;for(z in J)if(Y=J[z],J.hasOwnProperty(z)&&Y!=null)switch(z){case"value":break;case"multiple":K=Y;default:q.hasOwnProperty(z)||x1(A,Z,z,null,q,Y)}for(Q in q)if(z=q[Q],Y=J[Q],q.hasOwnProperty(Q)&&(z!=null||Y!=null))switch(Q){case"value":B=z;break;case"defaultValue":X=z;break;case"multiple":G=z;default:z!==Y&&x1(A,Z,Q,z,q,Y)}Z=X,J=G,q=K,B!=null?K7(A,!!J,B,!1):!!q!==!!J&&(Z!=null?K7(A,!!J,Z,!0):K7(A,!!J,J?[]:"",!1));return;case"textarea":K=B=null;for(X in J)if(Q=J[X],J.hasOwnProperty(X)&&Q!=null&&!q.hasOwnProperty(X))switch(X){case"value":break;case"children":break;default:x1(A,Z,X,null,q,Q)}for(G in q)if(Q=q[G],z=J[G],q.hasOwnProperty(G)&&(Q!=null||z!=null))switch(G){case"value":B=Q;break;case"defaultValue":K=Q;break;case"children":break;case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(91));break;default:Q!==z&&x1(A,Z,G,Q,q,z)}M$(A,B,K);return;case"option":for(var V in J)if(B=J[V],J.hasOwnProperty(V)&&B!=null&&!q.hasOwnProperty(V))switch(V){case"selected":A.selected=!1;break;default:x1(A,Z,V,null,q,B)}for(Y in q)if(B=q[Y],K=J[Y],q.hasOwnProperty(Y)&&B!==K&&(B!=null||K!=null))switch(Y){case"selected":A.selected=B&&typeof B!=="function"&&typeof B!=="symbol";break;default:x1(A,Z,Y,B,q,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var F in J)B=J[F],J.hasOwnProperty(F)&&B!=null&&!q.hasOwnProperty(F)&&x1(A,Z,F,null,q,B);for(U in q)if(B=q[U],K=J[U],q.hasOwnProperty(U)&&B!==K&&(B!=null||K!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,Z));break;default:x1(A,Z,U,B,q,K)}return;default:if(AY(Z)){for(var j in J)B=J[j],J.hasOwnProperty(j)&&B!==void 0&&!q.hasOwnProperty(j)&&vX(A,Z,j,void 0,q,B);for(H in q)B=q[H],K=J[H],!q.hasOwnProperty(H)||B===K||B===void 0&&K===void 0||vX(A,Z,H,B,q,K);return}}for(var $ in J)B=J[$],J.hasOwnProperty($)&&B!=null&&!q.hasOwnProperty($)&&x1(A,Z,$,null,q,B);for(W in q)B=q[W],K=J[W],!q.hasOwnProperty(W)||B===K||B==null&&K==null||x1(A,Z,W,B,q,K)}function fK(A){switch(A){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sh(){if(typeof performance.getEntriesByType==="function"){for(var A=0,Z=0,J=performance.getEntriesByType("resource"),q=0;q<J.length;q++){var Q=J[q],z=Q.transferSize,G=Q.initiatorType,X=Q.duration;if(z&&X&&fK(G)){G=0,X=Q.responseEnd;for(q+=1;q<J.length;q++){var Y=J[q],U=Y.startTime;if(U>X)break;var{transferSize:H,initiatorType:W}=Y;H&&fK(W)&&(Y=Y.responseEnd,G+=H*(Y<X?1:(X-U)/(Y-U)))}if(--q,Z+=8*(z+G)/(Q.duration/1000),A++,10<A)break}}if(0<A)return Z/A/1e6}return navigator.connection&&(A=navigator.connection.downlink,typeof A==="number")?A:5}function yq(A){return A.nodeType===9?A:A.ownerDocument}function bK(A){switch(A){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function NV(A,Z){if(A===0)switch(Z){case"svg":return 1;case"math":return 2;default:return 0}return A===1&&Z==="foreignObject"?0:A}function cX(A,Z){return A==="textarea"||A==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function nh(){var A=window.event;if(A&&A.type==="popstate"){if(A===a3)return!1;return a3=A,!0}return a3=null,!1}function Ax(A){setTimeout(function(){throw A})}function sA(A){return A==="head"}function yK(A,Z){var J=Z,q=0;do{var Q=J.nextSibling;if(A.removeChild(J),Q&&Q.nodeType===8)if(J=Q.data,J==="/$"||J==="/&"){if(q===0){A.removeChild(Q),x7(Z);return}q--}else if(J==="$"||J==="$?"||J==="$~"||J==="$!"||J==="&")q++;else if(J==="html")s8(A.ownerDocument.documentElement);else if(J==="head"){J=A.ownerDocument.head,s8(J);for(var z=J.firstChild;z;){var{nextSibling:G,nodeName:X}=z;z[LZ]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&z.rel.toLowerCase()==="stylesheet"||J.removeChild(z),z=G}}else J==="body"&&s8(A.ownerDocument.body);J=Q}while(J);x7(Z)}function EK(A,Z){var J=A;A=0;do{var q=J.nextSibling;if(J.nodeType===1?Z?(J._stashedDisplay=J.style.display,J.style.display="none"):(J.style.display=J._stashedDisplay||"",J.getAttribute("style")===""&&J.removeAttribute("style")):J.nodeType===3&&(Z?(J._stashedText=J.nodeValue,J.nodeValue=""):J.nodeValue=J._stashedText||""),q&&q.nodeType===8)if(J=q.data,J==="/$")if(A===0)break;else A--;else J!=="$"&&J!=="$?"&&J!=="$~"&&J!=="$!"||A++;J=q}while(J)}function mX(A){var Z=A.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var J=Z;switch(Z=Z.nextSibling,J.nodeName){case"HTML":case"HEAD":case"BODY":mX(J),eX(J);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(J.rel.toLowerCase()==="stylesheet")continue}A.removeChild(J)}}function Zx(A,Z,J,q){for(;A.nodeType===1;){var Q=J;if(A.nodeName.toLowerCase()!==Z.toLowerCase()){if(!q&&(A.nodeName!=="INPUT"||A.type!=="hidden"))break}else if(!q)if(Z==="input"&&A.type==="hidden"){var z=Q.name==null?null:""+Q.name;if(Q.type==="hidden"&&A.getAttribute("name")===z)return A}else return A;else if(!A[LZ])switch(Z){case"meta":if(!A.hasAttribute("itemprop"))break;return A;case"link":if(z=A.getAttribute("rel"),z==="stylesheet"&&A.hasAttribute("data-precedence"))break;else if(z!==Q.rel||A.getAttribute("href")!==(Q.href==null||Q.href===""?null:Q.href)||A.getAttribute("crossorigin")!==(Q.crossOrigin==null?null:Q.crossOrigin)||A.getAttribute("title")!==(Q.title==null?null:Q.title))break;return A;case"style":if(A.hasAttribute("data-precedence"))break;return A;case"script":if(z=A.getAttribute("src"),(z!==(Q.src==null?null:Q.src)||A.getAttribute("type")!==(Q.type==null?null:Q.type)||A.getAttribute("crossorigin")!==(Q.crossOrigin==null?null:Q.crossOrigin))&&z&&A.hasAttribute("async")&&!A.hasAttribute("itemprop"))break;return A;default:return A}if(A=m6(A.nextSibling),A===null)break}return null}function Jx(A,Z,J){if(Z==="")return null;for(;A.nodeType!==3;){if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!J)return null;if(A=m6(A.nextSibling),A===null)return null}return A}function DV(A,Z){for(;A.nodeType!==8;){if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!Z)return null;if(A=m6(A.nextSibling),A===null)return null}return A}function pX(A){return A.data==="$?"||A.data==="$~"}function dX(A){return A.data==="$!"||A.data==="$?"&&A.ownerDocument.readyState!=="loading"}function qx(A,Z){var J=A.ownerDocument;if(A.data==="$~")A._reactRetry=Z;else if(A.data!=="$?"||J.readyState!=="loading")Z();else{var q=function(){Z(),J.removeEventListener("DOMContentLoaded",q)};J.addEventListener("DOMContentLoaded",q),A._reactRetry=q}}function m6(A){for(;A!=null;A=A.nextSibling){var Z=A.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=A.data,Z==="$"||Z==="$!"||Z==="$?"||Z==="$~"||Z==="&"||Z==="F!"||Z==="F")break;if(Z==="/$"||Z==="/&")return null}}return A}function vK(A){A=A.nextSibling;for(var Z=0;A;){if(A.nodeType===8){var J=A.data;if(J==="/$"||J==="/&"){if(Z===0)return m6(A.nextSibling);Z--}else J!=="$"&&J!=="$!"&&J!=="$?"&&J!=="$~"&&J!=="&"||Z++}A=A.nextSibling}return null}function gK(A){A=A.previousSibling;for(var Z=0;A;){if(A.nodeType===8){var J=A.data;if(J==="$"||J==="$!"||J==="$?"||J==="$~"||J==="&"){if(Z===0)return A;Z--}else J!=="/$"&&J!=="/&"||Z++}A=A.previousSibling}return null}function TV(A,Z,J){switch(Z=yq(J),A){case"html":if(A=Z.documentElement,!A)throw Error(i(452));return A;case"head":if(A=Z.head,!A)throw Error(i(453));return A;case"body":if(A=Z.body,!A)throw Error(i(454));return A;default:throw Error(i(451))}}function s8(A){for(var Z=A.attributes;Z.length;)A.removeAttributeNode(Z[0]);eX(A)}function Eq(A){return typeof A.getRootNode==="function"?A.getRootNode():A.nodeType===9?A:A.ownerDocument}function Qx(){var A=HA.f(),Z=ZQ();return A||Z}function zx(A){var Z=P7(A);Z!==null&&Z.tag===5&&Z.type==="form"?_L(Z):HA.r(A)}function wV(A,Z,J){var q=R7;if(q&&typeof Z==="string"&&Z){var Q=v6(Z);Q=\'link[rel="\'+A+\'"][href="\'+Q+\'"]\',typeof J==="string"&&(Q+=\'[crossorigin="\'+J+\'"]\'),uK.has(Q)||(uK.add(Q),A={rel:A,crossOrigin:J,href:Z},q.querySelector(Q)===null&&(Z=q.createElement("link"),y2(Z,"link",A),T2(Z),q.head.appendChild(Z)))}}function Gx(A){HA.D(A),wV("dns-prefetch",A,null)}function Xx(A,Z){HA.C(A,Z),wV("preconnect",A,Z)}function Yx(A,Z,J){HA.L(A,Z,J);var q=R7;if(q&&A&&Z){var Q=\'link[rel="preload"][as="\'+v6(Z)+\'"]\';Z==="image"?J&&J.imageSrcSet?(Q+=\'[imagesrcset="\'+v6(J.imageSrcSet)+\'"]\',typeof J.imageSizes==="string"&&(Q+=\'[imagesizes="\'+v6(J.imageSizes)+\'"]\')):Q+=\'[href="\'+v6(A)+\'"]\':Q+=\'[href="\'+v6(A)+\'"]\';var z=Q;switch(Z){case"style":z=h7(A);break;case"script":z=y7(A)}p6.has(z)||(A=p1({rel:"preload",href:Z==="image"&&J&&J.imageSrcSet?void 0:A,as:Z},J),p6.set(z,A),q.querySelector(Q)!==null||Z==="style"&&q.querySelector(jZ(z))||Z==="script"&&q.querySelector(CZ(z))||(Z=q.createElement("link"),y2(Z,"link",A),T2(Z),q.head.appendChild(Z)))}}function Ux(A,Z){HA.m(A,Z);var J=R7;if(J&&A){var q=Z&&typeof Z.as==="string"?Z.as:"script",Q=\'link[rel="modulepreload"][as="\'+v6(q)+\'"][href="\'+v6(A)+\'"]\',z=Q;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=y7(A)}if(!p6.has(z)&&(A=p1({rel:"modulepreload",href:A},Z),p6.set(z,A),J.querySelector(Q)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(J.querySelector(CZ(z)))return}q=J.createElement("link"),y2(q,"link",A),T2(q),J.head.appendChild(q)}}}function Hx(A,Z,J){HA.S(A,Z,J);var q=R7;if(q&&A){var Q=B7(q).hoistableStyles,z=h7(A);Z=Z||"default";var G=Q.get(z);if(!G){var X={loading:0,preload:null};if(G=q.querySelector(jZ(z)))X.loading=5;else{A=p1({rel:"stylesheet",href:A,"data-precedence":Z},J),(J=p6.get(z))&&vY(A,J);var Y=G=q.createElement("link");T2(Y),y2(Y,"link",A),Y._p=new Promise(function(U,H){Y.onload=U,Y.onerror=H}),Y.addEventListener("load",function(){X.loading|=1}),Y.addEventListener("error",function(){X.loading|=2}),X.loading|=4,Uq(G,Z,q)}G={type:"stylesheet",instance:G,count:1,state:X},Q.set(z,G)}}}function Wx(A,Z){HA.X(A,Z);var J=R7;if(J&&A){var q=B7(J).hoistableScripts,Q=y7(A),z=q.get(Q);z||(z=J.querySelector(CZ(Q)),z||(A=p1({src:A,async:!0},Z),(Z=p6.get(Q))&&gY(A,Z),z=J.createElement("script"),T2(z),y2(z,"link",A),J.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},q.set(Q,z))}}function Bx(A,Z){HA.M(A,Z);var J=R7;if(J&&A){var q=B7(J).hoistableScripts,Q=y7(A),z=q.get(Q);z||(z=J.querySelector(CZ(Q)),z||(A=p1({src:A,async:!0,type:"module"},Z),(Z=p6.get(Q))&&gY(A,Z),z=J.createElement("script"),T2(z),y2(z,"link",A),J.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},q.set(Q,z))}}function cK(A,Z,J,q){var Q=(Q=yA.current)?Eq(Q):null;if(!Q)throw Error(i(446));switch(A){case"meta":case"title":return null;case"style":return typeof J.precedence==="string"&&typeof J.href==="string"?(Z=h7(J.href),J=B7(Q).hoistableStyles,q=J.get(Z),q||(q={type:"style",instance:null,count:0,state:null},J.set(Z,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if(J.rel==="stylesheet"&&typeof J.href==="string"&&typeof J.precedence==="string"){A=h7(J.href);var z=B7(Q).hoistableStyles,G=z.get(A);if(G||(Q=Q.ownerDocument||Q,G={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(A,G),(z=Q.querySelector(jZ(A)))&&!z._p&&(G.instance=z,G.state.loading=5),p6.has(A)||(J={rel:"preload",as:"style",href:J.href,crossOrigin:J.crossOrigin,integrity:J.integrity,media:J.media,hrefLang:J.hrefLang,referrerPolicy:J.referrerPolicy},p6.set(A,J),z||Kx(Q,A,J,G.state))),Z&&q===null)throw Error(i(528,""));return G}if(Z&&q!==null)throw Error(i(529,""));return null;case"script":return Z=J.async,J=J.src,typeof J==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(Z=y7(J),J=B7(Q).hoistableScripts,q=J.get(Z),q||(q={type:"script",instance:null,count:0,state:null},J.set(Z,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,A))}}function h7(A){return\'href="\'+v6(A)+\'"\'}function jZ(A){return\'link[rel="stylesheet"][\'+A+"]"}function hV(A){return p1({},A,{"data-precedence":A.precedence,precedence:null})}function Kx(A,Z,J,q){A.querySelector(\'link[rel="preload"][as="style"][\'+Z+"]")?q.loading=1:(Z=A.createElement("link"),q.preload=Z,Z.addEventListener("load",function(){return q.loading|=1}),Z.addEventListener("error",function(){return q.loading|=2}),y2(Z,"link",J),T2(Z),A.head.appendChild(Z))}function y7(A){return\'[src="\'+v6(A)+\'"]\'}function CZ(A){return"script[async]"+A}function mK(A,Z,J){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var q=A.querySelector(\'style[data-href~="\'+v6(J.href)+\'"]\');if(q)return Z.instance=q,T2(q),q;var Q=p1({},J,{"data-href":J.href,"data-precedence":J.precedence,href:null,precedence:null});return q=(A.ownerDocument||A).createElement("style"),T2(q),y2(q,"style",Q),Uq(q,J.precedence,A),Z.instance=q;case"stylesheet":Q=h7(J.href);var z=A.querySelector(jZ(Q));if(z)return Z.state.loading|=4,Z.instance=z,T2(z),z;q=hV(J),(Q=p6.get(Q))&&vY(q,Q),z=(A.ownerDocument||A).createElement("link"),T2(z);var G=z;return G._p=new Promise(function(X,Y){G.onload=X,G.onerror=Y}),y2(z,"link",q),Z.state.loading|=4,Uq(z,J.precedence,A),Z.instance=z;case"script":if(z=y7(J.src),Q=A.querySelector(CZ(z)))return Z.instance=Q,T2(Q),Q;if(q=J,Q=p6.get(z))q=p1({},J),gY(q,Q);return A=A.ownerDocument||A,Q=A.createElement("script"),T2(Q),y2(Q,"link",q),A.head.appendChild(Q),Z.instance=Q;case"void":return null;default:throw Error(i(443,Z.type))}else Z.type==="stylesheet"&&(Z.state.loading&4)===0&&(q=Z.instance,Z.state.loading|=4,Uq(q,J.precedence,A));return Z.instance}function Uq(A,Z,J){for(var q=J.querySelectorAll(\'link[rel="stylesheet"][data-precedence],style[data-precedence]\'),Q=q.length?q[q.length-1]:null,z=Q,G=0;G<q.length;G++){var X=q[G];if(X.dataset.precedence===Z)z=X;else if(z!==Q)break}z?z.parentNode.insertBefore(A,z.nextSibling):(Z=J.nodeType===9?J.head:J,Z.insertBefore(A,Z.firstChild))}function vY(A,Z){A.crossOrigin==null&&(A.crossOrigin=Z.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=Z.referrerPolicy),A.title==null&&(A.title=Z.title)}function gY(A,Z){A.crossOrigin==null&&(A.crossOrigin=Z.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=Z.referrerPolicy),A.integrity==null&&(A.integrity=Z.integrity)}function pK(A,Z,J){if(Hq===null){var q=new Map,Q=Hq=new Map;Q.set(J,q)}else Q=Hq,q=Q.get(J),q||(q=new Map,Q.set(J,q));if(q.has(A))return q;q.set(A,null),J=J.getElementsByTagName(A);for(Q=0;Q<J.length;Q++){var z=J[Q];if(!(z[LZ]||z[f2]||A==="link"&&z.getAttribute("rel")==="stylesheet")&&z.namespaceURI!=="http://www.w3.org/2000/svg"){var G=z.getAttribute(Z)||"";G=A+G;var X=q.get(G);X?X.push(z):q.set(G,[z])}}return q}function dK(A,Z,J){A=A.ownerDocument||A,A.head.insertBefore(J,Z==="title"?A.querySelector("head > title"):null)}function $x(A,Z,J){if(J===1||Z.itemProp!=null)return!1;switch(A){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href==="")break;return!0;case"link":if(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError)break;switch(Z.rel){case"stylesheet":return A=Z.disabled,typeof Z.precedence==="string"&&A==null;default:return!0}case"script":if(Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol"&&!Z.onLoad&&!Z.onError&&Z.src&&typeof Z.src==="string")return!0}return!1}function xV(A){return A.type==="stylesheet"&&(A.state.loading&3)===0?!1:!0}function Lx(A,Z,J,q){if(J.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&(J.state.loading&4)===0){if(J.instance===null){var Q=h7(q.href),z=Z.querySelector(jZ(Q));if(z){Z=z._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&(A.count++,A=vq.bind(A),Z.then(A,A)),J.state.loading|=4,J.instance=z,T2(z);return}z=Z.ownerDocument||Z,q=hV(q),(Q=p6.get(Q))&&vY(q,Q),z=z.createElement("link"),T2(z);var G=z;G._p=new Promise(function(X,Y){G.onload=X,G.onerror=Y}),y2(z,"link",q),J.instance=z}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(J,Z),(Z=J.state.preload)&&(J.state.loading&3)===0&&(A.count++,J=vq.bind(A),Z.addEventListener("load",J),Z.addEventListener("error",J))}}function Vx(A,Z){return A.stylesheets&&A.count===0&&Wq(A,A.stylesheets),0<A.count||0<A.imgCount?function(J){var q=setTimeout(function(){if(A.stylesheets&&Wq(A,A.stylesheets),A.unsuspend){var z=A.unsuspend;A.unsuspend=null,z()}},60000+Z);0<A.imgBytes&&s3===0&&(s3=62500*sh());var Q=setTimeout(function(){if(A.waitingForImages=!1,A.count===0&&(A.stylesheets&&Wq(A,A.stylesheets),A.unsuspend)){var z=A.unsuspend;A.unsuspend=null,z()}},(A.imgBytes>s3?50:800)+Z);return A.unsuspend=J,function(){A.unsuspend=null,clearTimeout(q),clearTimeout(Q)}}:null}function vq(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wq(this,this.stylesheets);else if(this.unsuspend){var A=this.unsuspend;this.unsuspend=null,A()}}}function Wq(A,Z){A.stylesheets=null,A.unsuspend!==null&&(A.count++,gq=new Map,Z.forEach(Mx,A),gq=null,vq.call(A))}function Mx(A,Z){if(!(Z.state.loading&4)){var J=gq.get(A);if(J)var q=J.get(null);else{J=new Map,gq.set(A,J);for(var Q=A.querySelectorAll("link[data-precedence],style[data-precedence]"),z=0;z<Q.length;z++){var G=Q[z];if(G.nodeName==="LINK"||G.getAttribute("media")!=="not all")J.set(G.dataset.precedence,G),q=G}q&&J.set(null,q)}Q=Z.instance,G=Q.getAttribute("data-precedence"),z=J.get(G)||q,z===q&&J.set(null,Q),J.set(G,Q),this.count++,q=vq.bind(this),Q.addEventListener("load",q),Q.addEventListener("error",q),z?z.parentNode.insertBefore(Q,z.nextSibling):(A=A.nodeType===9?A.head:A,A.insertBefore(Q,A.firstChild)),Z.state.loading|=4}}function Fx(A,Z,J,q,Q,z,G,X,Y){this.tag=1,this.containerInfo=A,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=N3(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N3(0),this.hiddenUpdates=N3(null),this.identifierPrefix=q,this.onUncaughtError=Q,this.onCaughtError=z,this.onRecoverableError=G,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Y,this.incompleteTransitions=new Map}function SV(A,Z,J,q,Q,z,G,X,Y,U,H,W){return A=new Fx(A,Z,J,G,Y,U,H,W,X),Z=1,z===!0&&(Z|=24),z=V6(3,null,null,Z),A.current=z,z.stateNode=A,Z=WY(),Z.refCount++,A.pooledCache=Z,Z.refCount++,z.memoizedState={element:q,isDehydrated:J,cache:Z},$Y(z),A}function PV(A){if(!A)return Y7;return A=Y7,A}function IV(A,Z,J,q,Q,z){Q=PV(Q),q.context===null?q.context=Q:q.pendingContext=Q,q=vA(Z),q.payload={element:J},z=z===void 0?null:z,z!==null&&(q.callback=z),J=gA(A,q,Z),J!==null&&(G6(J,A,Z),m8(J,A,Z))}function lK(A,Z){if(A=A.memoizedState,A!==null&&A.dehydrated!==null){var J=A.retryLane;A.retryLane=J!==0&&J<Z?J:Z}}function uY(A,Z){lK(A,Z),(A=A.alternate)&&lK(A,Z)}function fV(A){if(A.tag===13||A.tag===31){var Z=o9(A,67108864);Z!==null&&G6(Z,A,67108864),uY(A,67108864)}}function iK(A){if(A.tag===13||A.tag===31){var Z=j6();Z=nX(Z);var J=o9(A,Z);J!==null&&G6(J,A,Z),uY(A,Z)}}function _x(A,Z,J,q){var Q=S0.T;S0.T=null;var z=W1.p;try{W1.p=2,cY(A,Z,J,q)}finally{W1.p=z,S0.T=Q}}function kx(A,Z,J,q){var Q=S0.T;S0.T=null;var z=W1.p;try{W1.p=8,cY(A,Z,J,q)}finally{W1.p=z,S0.T=Q}}function cY(A,Z,J,q){if(uq){var Q=iX(q);if(Q===null)o3(A,Z,q,cq,J),rK(A,q);else if(Cx(Q,A,Z,J,q))q.stopPropagation();else if(rK(A,q),Z&4&&-1<jx.indexOf(A)){for(;Q!==null;){var z=P7(Q);if(z!==null)switch(z.tag){case 3:if(z=z.stateNode,z.current.memoizedState.isDehydrated){var G=P9(z.pendingLanes);if(G!==0){var X=z;X.pendingLanes|=2;for(X.entangledLanes|=2;G;){var Y=1<<31-k6(G);X.entanglements[1]|=Y,G&=~Y}T4(z),(H1&6)===0&&(Sq=F6()+500,kZ(0,!1))}}break;case 31:case 13:X=o9(z,2),X!==null&&G6(X,z,2),ZQ(),uY(z,2)}if(z=iX(q),z===null&&o3(A,Z,q,cq,J),z===Q)break;Q=z}Q!==null&&q.stopPropagation()}else o3(A,Z,q,null,J)}}function iX(A){return A=ZY(A),mY(A)}function mY(A){if(cq=null,A=J7(A),A!==null){var Z=WZ(A);if(Z===null)A=null;else{var J=Z.tag;if(J===13){if(A=eK(Z),A!==null)return A;A=null}else if(J===31){if(A=A$(Z),A!==null)return A;A=null}else if(J===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;A=null}else Z!==A&&(A=null)}}return cq=A,null}function bV(A){switch(A){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Yw()){case Q$:return 2;case z$:return 8;case Vq:case Uw:return 32;case G$:return 268435456;default:return 32}default:return 32}}function rK(A,Z){switch(A){case"focusin":case"focusout":mA=null;break;case"dragenter":case"dragleave":pA=null;break;case"mouseover":case"mouseout":dA=null;break;case"pointerover":case"pointerout":UZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":HZ.delete(Z.pointerId)}}function h8(A,Z,J,q,Q,z){if(A===null||A.nativeEvent!==z)return A={blockedOn:Z,domEventName:J,eventSystemFlags:q,nativeEvent:z,targetContainers:[Q]},Z!==null&&(Z=P7(Z),Z!==null&&fV(Z)),A;return A.eventSystemFlags|=q,Z=A.targetContainers,Q!==null&&Z.indexOf(Q)===-1&&Z.push(Q),A}function Cx(A,Z,J,q,Q){switch(Z){case"focusin":return mA=h8(mA,A,Z,J,q,Q),!0;case"dragenter":return pA=h8(pA,A,Z,J,q,Q),!0;case"mouseover":return dA=h8(dA,A,Z,J,q,Q),!0;case"pointerover":var z=Q.pointerId;return UZ.set(z,h8(UZ.get(z)||null,A,Z,J,q,Q)),!0;case"gotpointercapture":return z=Q.pointerId,HZ.set(z,h8(HZ.get(z)||null,A,Z,J,q,Q)),!0}return!1}function RV(A){var Z=J7(A.target);if(Z!==null){var J=WZ(Z);if(J!==null){if(Z=J.tag,Z===13){if(Z=eK(J),Z!==null){A.blockedOn=Z,IB(A.priority,function(){iK(J)});return}}else if(Z===31){if(Z=A$(J),Z!==null){A.blockedOn=Z,IB(A.priority,function(){iK(J)});return}}else if(Z===3&&J.stateNode.current.memoizedState.isDehydrated){A.blockedOn=J.tag===3?J.stateNode.containerInfo:null;return}}}A.blockedOn=null}function Bq(A){if(A.blockedOn!==null)return!1;for(var Z=A.targetContainers;0<Z.length;){var J=iX(A.nativeEvent);if(J===null){J=A.nativeEvent;var q=new J.constructor(J.type,J);UX=q,J.target.dispatchEvent(q),UX=null}else return Z=P7(J),Z!==null&&fV(Z),A.blockedOn=J,!1;Z.shift()}return!0}function oK(A,Z,J){Bq(A)&&J.delete(Z)}function Nx(){rX=!1,mA!==null&&Bq(mA)&&(mA=null),pA!==null&&Bq(pA)&&(pA=null),dA!==null&&Bq(dA)&&(dA=null),UZ.forEach(oK),HZ.forEach(oK)}function aJ(A,Z){A.blockedOn===Z&&(A.blockedOn=null,rX||(rX=!0,o5(r5,Nx)))}function aK(A){sJ!==A&&(sJ=A,o5(r5,function(){sJ===A&&(sJ=null);for(var Z=0;Z<A.length;Z+=3){var J=A[Z],q=A[Z+1],Q=A[Z+2];if(typeof q!=="function")if(mY(q||J)===null)continue;else break;var z=P7(J);z!==null&&(A.splice(Z,3),Z-=3,DX(z,{pending:!0,data:Q,method:J.method,action:q},q,Q))}}))}function x7(A){function Z(Y){return aJ(Y,A)}mA!==null&&aJ(mA,A),pA!==null&&aJ(pA,A),dA!==null&&aJ(dA,A),UZ.forEach(Z),HZ.forEach(Z);for(var J=0;J<SA.length;J++){var q=SA[J];q.blockedOn===A&&(q.blockedOn=null)}for(;0<SA.length&&(J=SA[0],J.blockedOn===null);)RV(J),J.blockedOn===null&&SA.shift();if(J=(A.ownerDocument||A).$$reactFormReplay,J!=null)for(q=0;q<J.length;q+=3){var Q=J[q],z=J[q+1],G=Q[X6]||null;if(typeof z==="function")G||aK(J);else if(G){var X=null;if(z&&z.hasAttribute("formAction")){if(Q=z,G=z[X6]||null)X=G.formAction;else if(mY(Q)!==null)continue}else X=G.action;typeof X==="function"?J[q+1]=X:(J.splice(q,3),q-=3),aK(J)}}}function yV(){function A(z){z.canIntercept&&z.info==="react-transition"&&z.intercept({handler:function(){return new Promise(function(G){return Q=G})},focusReset:"manual",scroll:"manual"})}function Z(){Q!==null&&(Q(),Q=null),q||setTimeout(J,20)}function J(){if(!q&&!navigation.transition){var z=navigation.currentEntry;z&&z.url!=null&&navigation.navigate(z.url,{state:z.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,Q=null;return navigation.addEventListener("navigate",A),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(J,100),function(){q=!0,navigation.removeEventListener("navigate",A),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),Q!==null&&(Q(),Q=null)}}}function pY(A){this._internalRoot=A}function QQ(A){this._internalRoot=A}var mq,nK,p1,Jw,EJ,x8,A7,J$,n3,q$,e4,oX,t3,e3,aX,DA,AX,qw,xB,Qw,S8,S0,W1,R9,JX,Z7=-1,O4,n8,yA,Kq,_3,SB,k3=!1,QX,sX,C3,Gw,Xw,F6,Yw,Q$,z$,Vq,Uw,G$,Hw,Ww,BZ=null,_6=null,k6,Bw,Kw,vJ=256,gJ=262144,uJ=4194304,aA,f2,X6,S7,zX,Mw,Fw,fB,LZ,B$,K$,_w,bB,RB,Cw,Nw,Ow,Dw,UX=null,q7=null,$7=null,O3=!1,zA,HX=!1,I9,IA=null,JY=null,eJ=null,i9,dq,VZ,Tw,D3,T3,O8,lq,gB,ww,hw,xw,w3,Sw,Pw,Iw,fw,bw,uB,Rw,yw,Ew,gw,uw,cw,cB,mw,pw,dw,lw,iw,rw,ow,aw,sw,QY,v8=null,nw,C$,mB,pB=!1,Q7=!1,Ah,g8=null,e8=null,T$=!1,I8,f8,Zq,C6,Xh,z7=null,WX=null,u8=null,BX=!1,G7,h3,S$,P$,I$,f$,Yh,Uh,Hh,b$,R$,KX,Fq,b6,X7=0,GY=0,Y7,sB,U7,H7=0,kq=null,ZZ=0,y6,E6=0,lA=null,j4=1,C4="",b2=null,m1=null,t0=!1,EA=null,u6=!1,$X,LX,a9=null,ZA=null,Bh,Kh,$h,B2,c8=null,FX=0,C7=0,L7=null,AK,E9,f7,KY,aq,Cq,v9=null,V7=null,qZ=0,m9,l$,TA=!1,kX=!1,N7,Nq,N6,c6=null,Z2,GA=0,R0=null,S1=null,H2=null,Dq=!1,M7=!1,p9=!1,Tq=0,QZ=0,F7=null,Mh=0,zZ,DL,hY,TL,TX,xY,K2=!1,R3,t4=!1,W2=!1,p3=!1,NK,D2=null,o1=null,Q6=!1,q4=null,R8=8192,Ih,fh,H1=0,R1=null,d0=null,s0=0,C1=0,$6=null,fA=!1,b7=!1,fY=!1,UA=0,e1=0,oA=0,g9=0,bY=0,M6=0,D7=0,o8=null,z6=null,PX=!1,AQ=0,ZV=0,Sq=1/0,Pq=null,uA=null,F2=0,cA=null,T7=null,QA=0,IX=0,fX=null,JV=null,a8=0,bX=null,fq=null,t5=null,RX=!1,bq=!1,i3=!1,RA=0,E8,yX,EX,y8,GZ,lh,oJ,rh,oh,gX=null,uX=null,a3=null,OV,th,RK,eh,lX=null,p6,uK,HA,R7,Hq=null,s3=0,gq=null,YZ,uq=!0,cq=null,rX=!1,mA=null,pA=null,dA=null,UZ,HZ,SA,jx,sJ=null,sK,Ox,e5,EV=function(A,Z){if(!tK(A))throw Error(i(299));var J=!1,q="",Q=wL,z=hL,G=xL;return Z!==null&&Z!==void 0&&(Z.unstable_strictMode===!0&&(J=!0),Z.identifierPrefix!==void 0&&(q=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(Q=Z.onUncaughtError),Z.onCaughtError!==void 0&&(z=Z.onCaughtError),Z.onRecoverableError!==void 0&&(G=Z.onRecoverableError)),Z=SV(A,1,!1,null,null,J,q,null,Q,z,G,yV),A[S7]=Z.current,EY(A),new pY(Z)},vV=function(A,Z,J){if(!tK(A))throw Error(i(299));var q=!1,Q="",z=wL,G=hL,X=xL,Y=null;return J!==null&&J!==void 0&&(J.unstable_strictMode===!0&&(q=!0),J.identifierPrefix!==void 0&&(Q=J.identifierPrefix),J.onUncaughtError!==void 0&&(z=J.onUncaughtError),J.onCaughtError!==void 0&&(G=J.onCaughtError),J.onRecoverableError!==void 0&&(X=J.onRecoverableError),J.formState!==void 0&&(Y=J.formState)),Z=SV(A,1,!0,Z,J!=null?J:null,q,Q,Y,z,G,X,yV),Z.context=PV(null),J=Z.current,q=j6(),q=nX(q),Q=vA(q),Q.callback=null,gA(J,Q,q),J=q,Z.current.lanes=J,$Z(Z,J),T4(Z),A[S7]=Z.current,EY(A),new QQ(Z)},gV="19.2.8";var uV=rG(()=>{YB();mq=g(p(),1),nK=g(l4(),1);p1=Object.assign,Jw=Symbol.for("react.element"),EJ=Symbol.for("react.transitional.element"),x8=Symbol.for("react.portal"),A7=Symbol.for("react.fragment"),J$=Symbol.for("react.strict_mode"),n3=Symbol.for("react.profiler"),q$=Symbol.for("react.consumer"),e4=Symbol.for("react.context"),oX=Symbol.for("react.forward_ref"),t3=Symbol.for("react.suspense"),e3=Symbol.for("react.suspense_list"),aX=Symbol.for("react.memo"),DA=Symbol.for("react.lazy"),AX=Symbol.for("react.activity"),qw=Symbol.for("react.memo_cache_sentinel"),xB=Symbol.iterator;Qw=Symbol.for("react.client.reference");S8=Array.isArray,S0=mq.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W1=nK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R9={pending:!1,data:null,method:null,action:null},JX=[];O4=D4(null),n8=D4(null),yA=D4(null),Kq=D4(null);QX=Object.prototype.hasOwnProperty,sX=o5,C3=$3,Gw=M3,Xw=V3,F6=k4,Yw=L3,Q$=W3,z$=K3,Vq=r5,Uw=B3,G$=H3,Hw=void 0,Ww=void 0;k6=Math.clz32?Math.clz32:$w,Bw=Math.log,Kw=Math.LN2;aA=Math.random().toString(36).slice(2),f2="__reactFiber$"+aA,X6="__reactProps$"+aA,S7="__reactContainer$"+aA,zX="__reactEvents$"+aA,Mw="__reactListeners$"+aA,Fw="__reactHandles$"+aA,fB="__reactResources$"+aA,LZ="__reactMarker$"+aA;B$=new Set,K$={};_w=RegExp("^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$"),bB={},RB={};Cw=/[\\n"\\\\]/g;Nw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));Ow=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dw=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;zA=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u");if(zA)try{I9={},Object.defineProperty(I9,"passive",{get:function(){HX=!0}}),window.addEventListener("test",I9,I9),window.removeEventListener("test",I9,I9)}catch(A){HX=!1}i9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(A){return A.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dq=Y6(i9),VZ=p1({},i9,{view:0,detail:0}),Tw=Y6(VZ),lq=p1({},VZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qY,button:0,buttons:0,relatedTarget:function(A){return A.relatedTarget===void 0?A.fromElement===A.srcElement?A.toElement:A.fromElement:A.relatedTarget},movementX:function(A){if("movementX"in A)return A.movementX;return A!==O8&&(O8&&A.type==="mousemove"?(D3=A.screenX-O8.screenX,T3=A.screenY-O8.screenY):T3=D3=0,O8=A),D3},movementY:function(A){return"movementY"in A?A.movementY:T3}}),gB=Y6(lq),ww=p1({},lq,{dataTransfer:0}),hw=Y6(ww),xw=p1({},VZ,{relatedTarget:0}),w3=Y6(xw),Sw=p1({},i9,{animationName:0,elapsedTime:0,pseudoElement:0}),Pw=Y6(Sw),Iw=p1({},i9,{clipboardData:function(A){return"clipboardData"in A?A.clipboardData:window.clipboardData}}),fw=Y6(Iw),bw=p1({},i9,{data:0}),uB=Y6(bw),Rw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ew={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};gw=p1({},VZ,{key:function(A){if(A.key){var Z=Rw[A.key]||A.key;if(Z!=="Unidentified")return Z}return A.type==="keypress"?(A=Aq(A),A===13?"Enter":String.fromCharCode(A)):A.type==="keydown"||A.type==="keyup"?yw[A.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qY,charCode:function(A){return A.type==="keypress"?Aq(A):0},keyCode:function(A){return A.type==="keydown"||A.type==="keyup"?A.keyCode:0},which:function(A){return A.type==="keypress"?Aq(A):A.type==="keydown"||A.type==="keyup"?A.keyCode:0}}),uw=Y6(gw),cw=p1({},lq,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cB=Y6(cw),mw=p1({},VZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qY}),pw=Y6(mw),dw=p1({},i9,{propertyName:0,elapsedTime:0,pseudoElement:0}),lw=Y6(dw),iw=p1({},lq,{deltaX:function(A){return"deltaX"in A?A.deltaX:("wheelDeltaX"in A)?-A.wheelDeltaX:0},deltaY:function(A){return"deltaY"in A?A.deltaY:("wheelDeltaY"in A)?-A.wheelDeltaY:("wheelDelta"in A)?-A.wheelDelta:0},deltaZ:0,deltaMode:0}),rw=Y6(iw),ow=p1({},i9,{newState:0,oldState:0}),aw=Y6(ow),sw=[9,13,27,32],QY=zA&&"CompositionEvent"in window;zA&&"documentMode"in document&&(v8=document.documentMode);nw=zA&&"TextEvent"in window&&!v8,C$=zA&&(!QY||v8&&8<v8&&11>=v8),mB=String.fromCharCode(32);Ah={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};if(zA){if(zA){if(f8="oninput"in document,!f8)Zq=document.createElement("div"),Zq.setAttribute("oninput","return;"),f8=typeof Zq.oninput==="function";I8=f8}else I8=!1;T$=I8&&(!document.documentMode||9<document.documentMode)}C6=typeof Object.is==="function"?Object.is:Gh;Xh=zA&&"documentMode"in document&&11>=document.documentMode;G7={animationend:x9("Animation","AnimationEnd"),animationiteration:x9("Animation","AnimationIteration"),animationstart:x9("Animation","AnimationStart"),transitionrun:x9("Transition","TransitionRun"),transitionstart:x9("Transition","TransitionStart"),transitioncancel:x9("Transition","TransitionCancel"),transitionend:x9("Transition","TransitionEnd")},h3={},S$={};zA&&(S$=document.createElement("div").style,("AnimationEvent"in window)||(delete G7.animationend.animation,delete G7.animationiteration.animation,delete G7.animationstart.animation),("TransitionEvent"in window)||delete G7.transitionend.transition);P$=r9("animationend"),I$=r9("animationiteration"),f$=r9("animationstart"),Yh=r9("transitionrun"),Uh=r9("transitionstart"),Hh=r9("transitioncancel"),b$=r9("transitionend"),R$=new Map,KX="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");KX.push("scrollEnd");Fq=typeof reportError==="function"?reportError:function(A){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A==="object"&&A!==null&&typeof A.message==="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",A);return}console.error(A)},b6=[];Y7={};sB=new WeakMap;U7=[],y6=[];$X=Error(i(519));LX=D4(null);Bh=typeof AbortController<"u"?AbortController:function(){var A=[],Z=this.signal={aborted:!1,addEventListener:function(J,q){A.push(q)}};this.abort=function(){Z.aborted=!0,A.forEach(function(J){return J()})}},Kh=o5,$h=r5,B2={$$typeof:e4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};AK=S0.S;S0.S=function(A,Z){ZV=F6(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"&&Lh(A,Z),AK!==null&&AK(A,Z)};E9=D4(null);f7=Error(i(460)),KY=Error(i(474)),aq=Error(i(542)),Cq={then:function(){}};m9=d$(!0),l$=d$(!1);N7=D4(null),Nq=D4(0);N6=D4(null);Z2=D4(0);zZ={readContext:R2,use:nq,useCallback:t1,useContext:t1,useEffect:t1,useImperativeHandle:t1,useLayoutEffect:t1,useInsertionEffect:t1,useMemo:t1,useReducer:t1,useRef:t1,useState:t1,useDebugValue:t1,useDeferredValue:t1,useTransition:t1,useSyncExternalStore:t1,useId:t1,useHostTransitionStatus:t1,useFormState:t1,useActionState:t1,useOptimistic:t1,useMemoCache:t1,useCacheRefresh:t1};zZ.useEffectEvent=t1;DL={readContext:R2,use:nq,useCallback:function(A,Z){return a2().memoizedState=[A,Z===void 0?null:Z],A},useContext:R2,useEffect:HK,useImperativeHandle:function(A,Z,J){J=J!==null&&J!==void 0?J.concat([A]):null,zq(4194308,4,BL.bind(null,Z,A),J)},useLayoutEffect:function(A,Z){return zq(4194308,4,A,Z)},useInsertionEffect:function(A,Z){zq(4,2,A,Z)},useMemo:function(A,Z){var J=a2();Z=Z===void 0?null:Z;var q=A();if(p9){PA(!0);try{A()}finally{PA(!1)}}return J.memoizedState=[q,Z],q},useReducer:function(A,Z,J){var q=a2();if(J!==void 0){var Q=J(Z);if(p9){PA(!0);try{J(Z)}finally{PA(!1)}}}else Q=Z;return q.memoizedState=q.baseState=Q,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A,lastRenderedState:Q},q.queue=A,A=A.dispatch=Oh.bind(null,R0,A),[q.memoizedState,A]},useRef:function(A){var Z=a2();return A={current:A},Z.memoizedState=A},useState:function(A){A=NX(A);var Z=A.queue,J=CL.bind(null,R0,Z);return Z.dispatch=J,[A.memoizedState,J]},useDebugValue:OY,useDeferredValue:function(A,Z){var J=a2();return DY(J,A,Z)},useTransition:function(){var A=NX(!1);return A=ML.bind(null,R0,A.queue,!0,!1),a2().memoizedState=A,[!1,A]},useSyncExternalStore:function(A,Z,J){var q=R0,Q=a2();if(t0){if(J===void 0)throw Error(i(407));J=J()}else{if(J=Z(),R1===null)throw Error(i(349));(s0&127)!==0||t$(q,Z,J)}Q.memoizedState=J;var z={value:J,getSnapshot:Z};return Q.queue=z,HK(AL.bind(null,q,z,A),[A]),q.flags|=2048,O7(9,{destroy:void 0},e$.bind(null,q,z,J,Z),null),J},useId:function(){var A=a2(),Z=R1.identifierPrefix;if(t0){var J=C4,q=j4;J=(q&~(1<<32-k6(q)-1)).toString(32)+J,Z="_"+Z+"R_"+J,J=Tq++,0<J&&(Z+="H"+J.toString(32)),Z+="_"}else J=Mh++,Z="_"+Z+"r_"+J.toString(32)+"_";return A.memoizedState=Z},useHostTransitionStatus:TY,useFormState:XK,useActionState:XK,useOptimistic:function(A){var Z=a2();Z.memoizedState=Z.baseState=A;var J={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=J,Z=wY.bind(null,R0,!0,J),J.dispatch=Z,[A,Z]},useMemoCache:jY,useCacheRefresh:function(){return a2().memoizedState=Nh.bind(null,R0)},useEffectEvent:function(A){var Z=a2(),J={impl:A};return Z.memoizedState=J,function(){if((H1&2)!==0)throw Error(i(440));return J.impl.apply(void 0,arguments)}}},hY={readContext:R2,use:nq,useCallback:$L,useContext:R2,useEffect:NY,useImperativeHandle:KL,useInsertionEffect:HL,useLayoutEffect:WL,useMemo:LL,useReducer:Qq,useRef:YL,useState:function(){return Qq(XA)},useDebugValue:OY,useDeferredValue:function(A,Z){var J=J2();return VL(J,S1.memoizedState,A,Z)},useTransition:function(){var A=Qq(XA)[0],Z=J2().memoizedState;return[typeof A==="boolean"?A:FZ(A),Z]},useSyncExternalStore:n$,useId:kL,useHostTransitionStatus:TY,useFormState:YK,useActionState:YK,useOptimistic:function(A,Z){var J=J2();return qL(J,S1,A,Z)},useMemoCache:jY,useCacheRefresh:jL};hY.useEffectEvent=UL;TL={readContext:R2,use:nq,useCallback:$L,useContext:R2,useEffect:NY,useImperativeHandle:KL,useInsertionEffect:HL,useLayoutEffect:WL,useMemo:LL,useReducer:f3,useRef:YL,useState:function(){return f3(XA)},useDebugValue:OY,useDeferredValue:function(A,Z){var J=J2();return S1===null?DY(J,A,Z):VL(J,S1.memoizedState,A,Z)},useTransition:function(){var A=f3(XA)[0],Z=J2().memoizedState;return[typeof A==="boolean"?A:FZ(A),Z]},useSyncExternalStore:n$,useId:kL,useHostTransitionStatus:TY,useFormState:UK,useActionState:UK,useOptimistic:function(A,Z){var J=J2();if(S1!==null)return qL(J,S1,A,Z);return J.baseState=A,[A,J.queue.dispatch]},useMemoCache:jY,useCacheRefresh:jL};TL.useEffectEvent=UL;TX={enqueueSetState:function(A,Z,J){A=A._reactInternals;var q=j6(),Q=vA(q);Q.payload=Z,J!==void 0&&J!==null&&(Q.callback=J),Z=gA(A,Q,q),Z!==null&&(G6(Z,A,q),m8(Z,A,q))},enqueueReplaceState:function(A,Z,J){A=A._reactInternals;var q=j6(),Q=vA(q);Q.tag=1,Q.payload=Z,J!==void 0&&J!==null&&(Q.callback=J),Z=gA(A,Q,q),Z!==null&&(G6(Z,A,q),m8(Z,A,q))},enqueueForceUpdate:function(A,Z){A=A._reactInternals;var J=j6(),q=vA(J);q.tag=2,Z!==void 0&&Z!==null&&(q.callback=Z),Z=gA(A,q,J),Z!==null&&(G6(Z,A,J),m8(Z,A,J))}};xY=Error(i(461));R3={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};NK=typeof WeakSet==="function"?WeakSet:Set;Ih={getCacheForType:function(A){var Z=R2(B2),J=Z.data.get(A);return J===void 0&&(J=A(),Z.data.set(A,J)),J},cacheSignal:function(){return R2(B2).controller.signal}},fh=typeof WeakMap==="function"?WeakMap:Map;for(y8=0;y8<KX.length;y8++)E8=KX[y8],yX=E8.toLowerCase(),EX=E8[0].toUpperCase()+E8.slice(1),Q4(yX,"on"+EX);Q4(P$,"onAnimationEnd");Q4(I$,"onAnimationIteration");Q4(f$,"onAnimationStart");Q4("dblclick","onDoubleClick");Q4("focusin","onFocus");Q4("focusout","onBlur");Q4(Yh,"onTransitionRun");Q4(Uh,"onTransitionStart");Q4(Hh,"onTransitionCancel");Q4(b$,"onTransitionEnd");k7("onMouseEnter",["mouseout","mouseover"]);k7("onMouseLeave",["mouseout","mouseover"]);k7("onPointerEnter",["pointerout","pointerover"]);k7("onPointerLeave",["pointerout","pointerover"]);l9("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));l9("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));l9("onBeforeInput",["compositionend","keypress","textInput","paste"]);l9("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));l9("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));l9("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));GZ="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(" "),lh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(GZ));oJ="_reactListening"+Math.random().toString(36).slice(2);rh=/\\r\\n?/g,oh=/\\u0000|\\uFFFD/g;OV=typeof setTimeout==="function"?setTimeout:void 0,th=typeof clearTimeout==="function"?clearTimeout:void 0,RK=typeof Promise==="function"?Promise:void 0,eh=typeof queueMicrotask==="function"?queueMicrotask:typeof RK<"u"?function(A){return RK.resolve(null).then(A).catch(Ax)}:OV;p6=new Map,uK=new Set;HA=W1.d;W1.d={f:Qx,r:zx,D:Gx,C:Xx,L:Yx,m:Ux,X:Wx,S:Hx,M:Bx};R7=typeof document>"u"?null:document;YZ={$$typeof:e4,Provider:null,Consumer:null,_currentValue:R9,_currentValue2:R9,_threadCount:0};UZ=new Map,HZ=new Map,SA=[],jx="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(" ");QQ.prototype.render=pY.prototype.render=function(A){var Z=this._internalRoot;if(Z===null)throw Error(i(409));var J=Z.current,q=j6();IV(J,q,A,Z,null,null)};QQ.prototype.unmount=pY.prototype.unmount=function(){var A=this._internalRoot;if(A!==null){this._internalRoot=null;var Z=A.containerInfo;IV(A.current,2,null,A,null,null),ZQ(),Z[S7]=null}};QQ.prototype.unstable_scheduleHydration=function(A){if(A){var Z=W$();A={blockedOn:null,target:A,priority:Z};for(var J=0;J<SA.length&&Z!==0&&Z<SA[J].priority;J++);SA.splice(J,0,A),J===0&&RV(A)}};sK=mq.version;if(sK!=="19.2.8")throw Error(i(527,sK,"19.2.8"));W1.findDOMNode=function(A){var Z=A._reactInternals;if(Z===void 0){if(typeof A.render==="function")throw Error(i(188));throw A=Object.keys(A).join(","),Error(i(268,A))}return A=Zw(Z),A=A!==null?Z$(A):null,A=A===null?null:A.stateNode,A};Ox={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:S0,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(e5=__REACT_DEVTOOLS_GLOBAL_HOOK__,!e5.isDisabled&&e5.supportsFiber)try{BZ=e5.inject(Ox),_6=e5}catch(A){}}});var pV=hJ((nE,mV)=>{uV();function cV(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cV)}catch(A){console.error(A)}}cV(),mV.exports=dY});var oZ=hJ((wP)=>{var G4=g(p());function FP(A,Z){return A===Z&&(A!==0||1/A===1/Z)||A!==A&&Z!==Z}var _P=typeof Object.is==="function"?Object.is:FP,kP=G4.useState,jP=G4.useEffect,CP=G4.useLayoutEffect,NP=G4.useDebugValue;function OP(A,Z){var J=Z(),q=kP({inst:{value:J,getSnapshot:Z}}),Q=q[0].inst,z=q[1];return CP(function(){Q.value=J,Q.getSnapshot=Z,xU(Q)&&z({inst:Q})},[A,J,Z]),jP(function(){return xU(Q)&&z({inst:Q}),A(function(){xU(Q)&&z({inst:Q})})},[A]),NP(J),J}function xU(A){var Z=A.getSnapshot;A=A.value;try{var J=Z();return!_P(A,J)}catch(q){return!0}}function DP(A,Z){return Z()}var TP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?DP:OP;wP.useSyncExternalStore=G4.useSyncExternalStore!==void 0?G4.useSyncExternalStore:TP});var YD=g(p(),1),UD=g(pV(),1);class s9{constructor(){}static noop(){return s9.callback(()=>{})}static callback(A){return{dispose:A}}static nullable(A){return A??s9.noop()}}class E7{resources=[];_disposed=!1;get disposed(){return this._disposed}use(A){return this.assertOpen(),this.resources.push(A),A}adopt(A,Z){return this.assertOpen(),this.resources.push(s9.callback(()=>Z(A))),A}defer(A){this.assertOpen(),this.resources.push(s9.callback(A))}dispose(){if(this._disposed)return;this._disposed=!0;let A=this.resources.pop();while(A)A.dispose(),A=this.resources.pop()}assertOpen(){if(this._disposed)throw Error("cannot register a resource on a disposed Disposer")}}function dV(A,Z){if(Object.is(A,Z))return!0;if(typeof A!=="object"||typeof Z!=="object"||A===null||Z===null)return!1;let J=Object.keys(A),q=Object.keys(Z);if(J.length!==q.length)return!1;return J.every((Q)=>Object.hasOwn(Z,Q)&&Object.is(A[Q],Z[Q]))}class zQ{source;select;events;state;constructor(A,Z,J){this.source=A;this.select=Z;this.events=J;this.state=this.select(this.source)}subscribe=(A)=>{let Z=new E7,J=()=>{let q=this.select(this.source);if(!dV(this.state,q))this.state=q,A()};for(let q of this.events)Z.defer(this.source.events.on(q,J));return J(),()=>{Z.dispose()}};getSnapshot=()=>this.state;getServerSnapshot=()=>this.state}var lV=g(p(),1);function GQ(A,Z){lV.useEffect(()=>{let J=new E7;try{A(J)}catch(q){throw J.dispose(),q}return()=>{J.dispose()}},Z)}var iV=g(p(),1);function lY(A){return iV.useSyncExternalStore(A.subscribe,A.getSnapshot,A.getServerSnapshot)}var XQ=g(p(),1);function iY(A,Z,J){let q=XQ.useRef(Z);q.current=Z;let[Q]=XQ.useState(()=>new zQ(A,(z)=>q.current(z),J));return lY(Q)}var rV=g(p(),1);var YQ=g(p(),1);var oV=(A)=>A?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function aV(A,Z,J=[]){if(Z==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:oV(A),size:24,node:Z,...J.length>0?{aliases:J}:{}}}var sV=(A)=>{let Z="",J=!1;for(let q of A){if(q==="-"||q==="_"||q<=" "){J=Z.length>0;continue}if(Z.length===0)Z+=q.toLowerCase();else Z+=J?q.toUpperCase():q;J=!1}return Z};var nV=(A)=>{let Z=sV(A);return Z.charAt(0).toUpperCase()+Z.slice(1)};var OZ=g(p(),1);var NZ=(...A)=>A.filter((Z,J,q)=>{return Boolean(Z)&&Z.trim()!==""&&q.indexOf(Z)===J}).join(" ").trim();var nA={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function rY(A){return A!==null&&A!==void 0}function tV(A,Z={}){let J=Z.attributeNames??{},q=(B)=>J[B]??B,Q=A.size??A.width??nA.width,z=A.size??A.height??nA.height,G=A.aliases?.filter((B)=>typeof B==="string"&&B.trim()!=="").map((B)=>`lucide-${B}`)??[],X=[...A.name?[`lucide-${A.name}`]:[],...G],Y=Z.className?.split(" ").filter(Boolean)??[],U=Z.includeDefaultClasses===!1?NZ(...Y):NZ("lucide",...X,...Y),H=Z.absoluteStrokeWidth?Number(Z.strokeWidth??nA["stroke-width"])*Number(A.size??A.width??nA.width)/Number(Z.size??Z.width??nA.width):Z.strokeWidth??nA["stroke-width"];return["svg",{...Object.entries(nA).reduce((B,[K,V])=>{return B[q(K)]=V,B},{}),..."color"in Z&&Z.color&&{[q("stroke")]:Z.color},..."size"in Z&&rY(Z.size)&&{[q("width")]:Z.size,[q("height")]:Z.size},..."width"in Z&&rY(Z.width)&&{[q("width")]:Z.width},..."height"in Z&&rY(Z.height)&&{[q("height")]:Z.height},[q("stroke-width")]:H,...U&&{[q("class")]:U},[q("viewBox")]:`0 0 ${Q} ${z}`,...Z.hasA11yProp===!1?{[q("aria-hidden")]:"true"}:{},..."attributes"in Z&&Z.attributes},A.node.map((B)=>{let[K,V,F]=B,j=Z.nonScalingStroke?{[q("vector-effect")]:"non-scaling-stroke",...V}:V;return F?[K,j,F]:[K,j]})]}function eV(A,Z={}){return tV(A,{...Z,attributeNames:{...Z.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var AM=(A)=>{for(let Z in A)if(Z.startsWith("aria-")||Z==="role"||Z==="title")return!0;return!1};var v7=g(p(),1),wx=v7.createContext({});var ZM=()=>v7.useContext(wx);var JM=OZ.forwardRef(({color:A,size:Z,width:J,height:q,strokeWidth:Q,absoluteStrokeWidth:z,nonScalingStroke:G,className:X="",children:Y,iconNode:U=[],icon:H={node:U,aliases:[],size:24},...W},B)=>{let{size:K=24,strokeWidth:V=2,absoluteStrokeWidth:F=!1,nonScalingStroke:j=!1,color:$="currentColor",className:L=""}=ZM()??{},M=Boolean(Y)||AM(W),[_,k,C=[]]=eV(H,{color:A??$,width:J??Z??K,height:q??Z??K,strokeWidth:Q??V,absoluteStrokeWidth:z??F,nonScalingStroke:G??j,className:NZ(L,X),hasA11yProp:M,attributes:W});return OZ.createElement(_,{ref:B,...k},[...C.map(([O,N])=>OZ.createElement(O,N)),...Array.isArray(Y)?Y:[Y]])});function M1(A,Z=[],J=[]){let q=typeof A==="string"?aV(A,Z,J):A,Q=YQ.forwardRef(({className:z,...G},X)=>YQ.createElement(JM,{ref:X,icon:q,className:z,...G}));if(q.name)Q.displayName=nV(q.name);return Q}var qM={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};qM.node;var tA=M1(qM);var QM={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};QM.node;var eA=M1(QM);var zM={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};zM.node;var A9=M1(zM);var GM={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};GM.node;var Z9=M1(GM);var XM={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};XM.node;var J9=M1(XM);var YM={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};YM.node;var DZ=M1(YM);var UM={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};UM.node;var n9=M1(UM);var HM={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};HM.node;var TZ=M1(HM);var WM={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};WM.node;var WA=M1(WM);var BM={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};BM.node;var wZ=M1(BM);var KM={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};KM.node;var hZ=M1(KM);var $M={name:"link",size:24,node:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]};$M.node;var xZ=M1($M);var LM={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};LM.node;var t9=M1(LM);var VM={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]};VM.node;var e9=M1(VM);var MM={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};MM.node;var BA=M1(MM);var $8=g(p(),1);var $5={};r2($5,{Tab:()=>_F,Root:()=>gM,Panel:()=>mF,List:()=>aF,Indicator:()=>yF});var q2=g(p(),1);var A5=g(p(),1);function UQ({controlled:A,default:Z,name:J,state:q="value"}){let{current:Q}=A5.useRef(A!==void 0),[z,G]=A5.useState(Z),X=Q&&A!==void 0?A:z,Y=A5.useCallback((U)=>{if(!Q)G(U)},[]);return[X,Y]}var FM=g(p(),1),hx=()=>{},J0=typeof document<"u"?FM.useLayoutEffect:hx;var xx=g(p(),1),SZ={...xx};var kM=g(p(),1),_M={};function F1(A,Z){let J=kM.useRef(_M);if(J.current===_M)J.current=A(Z);return J}var oY=SZ.useInsertionEffect,Sx=oY&&oY!==SZ.useLayoutEffect?oY:(A)=>A();function X0(A){let Z=F1(Px).current;return Z.next=A,Sx(Z.effect),Z.trampoline}function Px(){let A={next:void 0,callback:Ix,trampoline:(...Z)=>A.callback?.(...Z),effect:()=>{A.callback=A.next}};return A}function Ix(){}function fx(A,Z){return function(q,...Q){let z=new URL(A);return z.searchParams.set("code",q.toString()),Q.forEach((G)=>z.searchParams.append("args[]",G)),`${Z} error #${q}; visit ${z} for the full message.`}}var bx=fx("https://base-ui.com/production-error","Base UI"),v1=bx;var q9=g(p(),1);function w4(A,Z,J,q){let Q=F1(CM).current;if(Rx(Q,A,Z,J,q))NM(Q,[A,Z,J,q]);return Q.callback}function jM(A){let Z=F1(CM).current;if(yx(Z,A))NM(Z,A);return Z.callback}function CM(){return{callback:null,cleanup:null,refs:[]}}function Rx(A,Z,J,q,Q){return A.refs[0]!==Z||A.refs[1]!==J||A.refs[2]!==q||A.refs[3]!==Q}function yx(A,Z){return A.refs.length!==Z.length||A.refs.some((J,q)=>J!==Z[q])}function NM(A,Z){if(A.refs=Z,Z.every((J)=>J==null)){A.callback=null;return}A.callback=(J)=>{if(A.cleanup)A.cleanup(),A.cleanup=null;if(J!=null){let q=Array(Z.length).fill(null);for(let Q=0;Q<Z.length;Q+=1){let z=Z[Q];if(z==null)continue;switch(typeof z){case"function":{let G=z(J);if(typeof G==="function")q[Q]=G;break}case"object":{z.current=J;break}default:}}A.cleanup=()=>{for(let Q=0;Q<Z.length;Q+=1){let z=Z[Q];if(z==null)continue;switch(typeof z){case"function":{let G=q[Q];if(typeof G==="function")G();else z(null);break}case"object":{z.current=null;break}default:}}}}}}var DM=g(p(),1);var OM=g(p(),1),Ex=parseInt(OM.version,10);function g7(A){return Ex>=A}function aY(A){if(!DM.isValidElement(A))return null;let Z=A,J=Z.props;return(g7(19)?J?.ref:Z.ref)??null}function PZ(A,Z){if(A&&!Z)return A;if(!A&&Z)return Z;if(A||Z)return{...A,...Z};return}function B1(){}var KA=Object.freeze([]),_1=Object.freeze({});function TM(A,Z){let J={};for(let q in A){let Q=A[q];if(Z?.hasOwnProperty(q)){let z=Z[q](Q);if(z!=null)Object.assign(J,z);continue}if(Q===!0)J[`data-${q.toLowerCase()}`]="";else if(Q)J[`data-${q.toLowerCase()}`]=Q.toString()}return J}function wM(A,Z){return typeof A==="function"?A(Z):A}function hM(A,Z){return typeof A==="function"?A(Z):A}var sY={};function $A(A,Z,J,q,Q){if(!J&&!q&&!Q&&!A)return HQ(Z);let z=HQ(A);if(Z)z=IZ(z,Z);if(J)z=IZ(z,J);if(q)z=IZ(z,q);if(Q)z=IZ(z,Q);return z}function xM(A){if(A.length===0)return sY;if(A.length===1)return HQ(A[0]);let Z=HQ(A[0]);for(let J=1;J<A.length;J+=1)Z=IZ(Z,A[J]);return Z}function HQ(A){if(nY(A))return{...PM(A,sY)};return vx(A)}function IZ(A,Z){if(nY(Z))return PM(Z,A);return gx(A,Z)}function vx(A){let Z={...A};for(let J in Z){let q=Z[J];if(SM(J,q))Z[J]=IM(q)}return Z}function gx(A,Z){if(!Z)return A;for(let J in Z){let q=Z[J];switch(J){case"style":{A[J]=PZ(A.style,q);break}case"className":{A[J]=tY(A.className,q);break}default:if(SM(J,q))A[J]=ux(A[J],q);else A[J]=q}}return A}function SM(A,Z){let J=A.charCodeAt(0),q=A.charCodeAt(1),Q=A.charCodeAt(2);return J===111&&q===110&&Q>=65&&Q<=90&&(typeof Z==="function"||typeof Z>"u")}function nY(A){return typeof A==="function"}function PM(A,Z){if(nY(A))return A(Z);return A??sY}function ux(A,Z){if(!Z)return A;if(!A)return IM(Z);return(...J)=>{let q=J[0];if(fM(q)){let z=q;fZ(z);let G=Z(...J);if(!z.baseUIHandlerPrevented)A?.(...J);return G}let Q=Z(...J);return A?.(...J),Q}}function IM(A){if(!A)return A;return(...Z)=>{let J=Z[0];if(fM(J))fZ(J);return A(...Z)}}function fZ(A){return A.preventBaseUIHandler=()=>{A.baseUIHandlerPrevented=!0},A}function tY(A,Z){if(Z){if(A)return Z+" "+A;return Z}return A}function fM(A){return A!=null&&typeof A==="object"&&"nativeEvent"in A}var eY=g(p(),1);function O0(A,Z,J={}){let q=Z.render;if(J.enabled!==!1)q=dx(q);let Q=cx(Z,J,q);if(J.enabled===!1)return null;let z=J.state??_1;return lx(A,q,Q,z)}function cx(A,Z,J){let{className:q,style:Q}=A,{state:z=_1,ref:G,props:X,stateAttributesMapping:Y,enabled:U=!0}=Z,H=U?wM(q,z):void 0,W=U?hM(Q,z):void 0,B=U?TM(z,Y):_1,K=U&&X?mx(X):void 0,V=U?PZ(B,K)??{}:_1;if(typeof document<"u")if(!U)w4(null,null);else if(Array.isArray(G))V.ref=jM([V.ref,aY(J),...G]);else V.ref=w4(V.ref,aY(J),G);if(!U)return _1;if(H!==void 0)V.className=tY(V.className,H);if(W!==void 0)V.style=PZ(V.style,W);return V}function mx(A){if(Array.isArray(A))return xM(A);return $A(void 0,A)}var px=Symbol.for("react.lazy");function dx(A){if(A?.$$typeof!==px)return A;let Z=q9.Children.toArray(A)[0];return q9.isValidElement(Z)?Z:A}function lx(A,Z,J,q){if(Z){if(typeof Z==="function")return Z(J,q);let Q=$A(J,Z.props);return Q.ref=J.ref,q9.cloneElement(Z,Q)}if(A){if(typeof A==="string")return ix(A,J)}throw Error(v1(8))}function ix(A,Z){if(A==="button")return eY.createElement("button",{type:"button",...Z,key:Z.key});if(A==="img")return eY.createElement("img",{alt:"",...Z,key:Z.key});return q9.createElement(A,Z)}var LA=g(p(),1);var WQ=g(p(),1),AU=WQ.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function bM(){return WQ.useContext(AU)}var rx=Symbol.for("react.transitional.element"),ox=Symbol.for("react.fragment");function RM(A,Z,J){var q=null;if(J!==void 0&&(q=""+J),Z.key!==void 0&&(q=""+Z.key),"key"in Z){J={};for(var Q in Z)Q!=="key"&&(J[Q]=Z[Q])}else J=Z;return Z=J.ref,{$$typeof:rx,type:A,key:q,ref:Z!==void 0?Z:null,props:J}}var Q9=ox,w=RM,Y0=RM;function BQ(A){let{children:Z,elementsRef:J,labelsRef:q,onMapChange:Q}=A,z=X0(Q),[,G]=LA.useState(!1),X=F1(sx).current,Y=F1(ax).current,U=LA.useRef(0),H=LA.useRef(!0),W=LA.useRef(null),B=LA.useRef(null),K=X0(()=>{if(H.current)return;H.current=!0,G((k)=>!k)}),V=X0((k,C)=>{Y.set(k,C),K()}),F=X0((k)=>{Y.delete(k),K()}),j=X0((k)=>{let C=new Map;if(J.current.length=0,q)q.current.length=0;return k.forEach((O)=>{if(C.set(O.element,{...O.registration.metadata??{},index:O.index}),J.current[O.index]=O.element,q)q.current[O.index]=O.registration.label!==void 0?O.registration.label:O.registration.textRef?.current?.textContent??O.element.textContent}),U.current=J.current.length,C});function $(k){if(B.current?.disconnect(),B.current=null,typeof MutationObserver!=="function"||k.length<2)return;let C=new MutationObserver((N)=>{if(!ex(N))return;let D=null;for(let T of k){if(!T.isConnected)continue;if(D&&yM(D,T)>0){C.disconnect(),K();return}D=T}});B.current=C;let O=new Set;for(let N=1;N<k.length;N+=1){let D=tx(k[N-1],k[N]);if(D)O.add(D)}O.forEach((N)=>C.observe(N,{childList:!0}))}let L=X0(()=>{let[k,C]=nx(Y),O=j(k),N=W.current,D=!N||N.length!==k.length||k.some((T,h)=>{let S=N[h];return T.index!==S.index||T.element!==S.element||T.registration.index!==S.registration.index||T.registration.metadata!==S.registration.metadata});if($(C),W.current=k,H.current=!1,!D)return;X.forEach((T)=>T(O)),z(O)});J0(()=>{if(!H.current&&W.current)j(W.current);return()=>{if(J.current=[],q)q.current=[]}},[J,q,j]),J0(()=>{if(H.current)L()}),J0(()=>{return()=>{B.current?.disconnect(),H.current=!0}},[]);let M=X0((k)=>{return X.add(k),()=>{X.delete(k)}}),_=LA.useMemo(()=>({register:V,unregister:F,subscribeMapChange:M,nextIndexRef:U}),[V,F,M,U]);return w(AU.Provider,{value:_,children:Z})}function ax(){return new Map}function sx(){return new Set}function nx(A){let Z=new Set,J=[],q=[];A.forEach((z,G)=>{if(!G.isConnected)return;let X=z.index,Y={index:X??-1,element:G,registration:z};if(X===null)q.push(Y);else if(X>=0)Z.add(X),J.push(Y)});let Q=0;if(q.sort((z,G)=>yM(z.element,G.element)),q.forEach((z)=>{while(Z.has(Q))Q+=1;z.index=Q,J.push(z),Q+=1}),Z.size>0)J.sort((z,G)=>z.index-G.index);return[J,q.map((z)=>z.element)]}function tx(A,Z){let J=A.parentElement;while(J&&!J.contains(Z))J=J.parentElement;return J}function ex(A){for(let Z of A)for(let J=0;J<Z.removedNodes.length;J+=1)if(Z.removedNodes[J].isConnected)return!0;return!1}function yM(A,Z){return A.compareDocumentPosition(Z)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var KQ=g(p(),1),ZU=KQ.createContext(void 0);function z9(){let A=KQ.useContext(ZU);if(A===void 0)throw Error(v1(64));return A}var EM="data-activation-direction";var h4={tabActivationDirection:(A)=>({[EM]:A})};var e0={};r2(e0,{windowResize:()=>RS,wheel:()=>TS,triggerPress:()=>JS,triggerHover:()=>qS,triggerFocus:()=>QS,trackPress:()=>WS,swipe:()=>bS,siblingOpen:()=>xS,scrub:()=>wS,pointer:()=>OS,outsidePress:()=>zS,none:()=>ZS,missing:()=>PS,listNavigation:()=>CS,linkPress:()=>YS,keyboard:()=>NS,itemPress:()=>GS,inputPress:()=>FS,inputPaste:()=>MS,inputClear:()=>LS,inputChange:()=>$S,inputBlur:()=>VS,initial:()=>IS,incrementPress:()=>BS,imperativeAction:()=>fS,focusOut:()=>_S,escapeKey:()=>kS,drag:()=>DS,disabled:()=>SS,decrementPress:()=>KS,closeWatcher:()=>jS,closePress:()=>XS,clearPress:()=>US,chipRemovePress:()=>HS,cancelOpen:()=>hS});var ZS="none",JS="trigger-press",qS="trigger-hover",QS="trigger-focus",zS="outside-press",GS="item-press",XS="close-press",YS="link-press",US="clear-press",HS="chip-remove-press",WS="track-press",BS="increment-press",KS="decrement-press",$S="input-change",LS="input-clear",VS="input-blur",MS="input-paste",FS="input-press",_S="focus-out",kS="escape-key",jS="close-watcher",CS="list-navigation",NS="keyboard",OS="pointer",DS="drag",TS="wheel",wS="scrub",hS="cancel-open",xS="sibling-open",SS="disabled",PS="missing",IS="initial",fS="imperative-action",bS="swipe",RS="window-resize";function y1(A,Z,J,q){let Q=!1,z=!1,G=q??_1;return{reason:A,event:Z??new Event("base-ui"),cancel(){Q=!0},allowPropagation(){z=!0},get isCanceled(){return Q},get isPropagationAllowed(){return z},trigger:J,...G}}var gM=q2.forwardRef(function(Z,J){let{className:q,defaultValue:Q=0,onValueChange:z,orientation:G="horizontal",render:X,value:Y,style:U,...H}=Z,W=Z.defaultValue!==void 0,B=q2.useRef([]),[K,V]=q2.useState(()=>new Map),[F,j]=UQ({controlled:Y,default:Q,name:"Tabs",state:"value"}),$=Y!==void 0,[L,M]=q2.useState(()=>new Map),_=q2.useRef(void 0),k=q2.useCallback((o)=>JU(L,o),[L]),[C,O]=q2.useState(()=>({previousValue:F,tabActivationDirection:"none"})),{previousValue:N,tabActivationDirection:D}=C,T=D,h=!1;if(N!==F)T=vM(N,F,G,L),h=N!=null&&F!=null&&k(F)==null;let S=h?N:F,x=N!==S||D!==T;J0(()=>{if(!x)return;O({previousValue:S,tabActivationDirection:T})},[S,x,T]);let f=X0((o,a)=>{let e=vM(F,o,G,L);if(a.activationDirection=e,z?.(o,a),a.isCanceled)return;j(o)}),R=X0((o,a)=>{z?.(o,y1(a,void 0,void 0,{activationDirection:"none"}))}),P=X0((o,a)=>{return V((e)=>{let K0=new Map(e);return K0.set(o,a),K0}),()=>{V((e)=>{if(e.get(o)!==a)return e;let K0=new Map(e);return K0.delete(o),K0})}}),E=q2.useCallback((o)=>{return K.get(o)},[K]),u=q2.useCallback((o)=>{for(let a of L.values())if(o===a.value)return a.id;return},[L]),v=q2.useMemo(()=>({getTabElementBySelectedValue:k,getTabIdByPanelValue:u,getTabPanelIdByValue:E,onValueChange:f,orientation:G,registerMountedTabPanel:P,setTabMap:M,tabActivationDirection:T,value:F}),[k,u,E,f,G,P,M,T,F]),I=q2.useMemo(()=>{for(let o of L.values())if(o.value===F)return o;return},[L,F]),t=q2.useMemo(()=>{for(let o of L.values())if(!o.disabled)return o.value;return},[L]),W0=q2.useRef(!W),Q0=q2.useRef(Q),b=q2.useRef(W),y=q2.useRef(!1);J0(()=>{if($)return;function o(G0,Z0){j(G0),O({previousValue:G0,tabActivationDirection:"none"}),R(G0,Z0),W0.current=!1}if(L.size===0){if(y.current&&F!==null&&!_.current?.isConnected)o(null,e0.missing);return}y.current=!0,_.current=L.keys().next().value;let a=I?.disabled,e=I==null&&F!==null;if(!a&&F===Q0.current)b.current=!1;if(b.current&&a&&F===Q0.current)return;let K0=W0.current;if(a||e){let G0=t??null;if(F===G0){W0.current=!1;return}let Z0=e0.missing;if(K0)Z0=e0.initial;else if(a)Z0=e0.disabled;o(G0,Z0);return}if(K0&&I!=null)R(F,e0.initial),W0.current=!1},[t,$,R,I,j,L,F]);let l=O0("div",Z,{state:{orientation:G,tabActivationDirection:T},ref:J,props:H,stateAttributesMapping:h4});return w(ZU.Provider,{value:v,children:w(BQ,{elementsRef:B,children:l})})});function JU(A,Z){for(let[J,q]of A.entries())if(Z===q.value)return J;return null}function vM(A,Z,J,q){if(A==null||Z==null)return"none";let[Q,z,G]=J==="horizontal"?["left","left","right"]:["top","up","down"],X=JU(q,A),Y=JU(q,Z);if(X==null||Y==null){if(X!==Y&&(typeof A==="number"||typeof A==="string")&&typeof A===typeof Z)return Z>A?G:z;return"none"}let U=X.getBoundingClientRect()[Q],H=Y.getBoundingClientRect()[Q];if(H<U)return z;if(H>U)return G;return"none"}var VA=g(p(),1);function $Q(){return typeof window<"u"}function Q2(A){if(LQ(A))return(A.nodeName||"").toLowerCase();return"#document"}function q1(A){var Z;return(A==null||(Z=A.ownerDocument)==null?void 0:Z.defaultView)||window}function S4(A){var Z;return(Z=(LQ(A)?A.ownerDocument:A.document)||window.document)==null?void 0:Z.documentElement}function LQ(A){if(!$Q())return!1;return A instanceof Node||A instanceof q1(A).Node}function O1(A){if(!$Q())return!1;return A instanceof Element||A instanceof q1(A).Element}function l0(A){if(!$Q())return!1;return A instanceof HTMLElement||A instanceof q1(A).HTMLElement}function x4(A){if(!$Q()||typeof ShadowRoot>"u")return!1;return A instanceof ShadowRoot||A instanceof q1(A).ShadowRoot}function J5(A){let{overflow:Z,overflowX:J,overflowY:q,display:Q}=_2(A);return/auto|scroll|overlay|hidden|clip/.test(Z+q+J)&&Q!=="inline"&&Q!=="contents"}function uM(A){return/^(table|td|th)$/.test(Q2(A))}function bZ(A){try{if(A.matches(":popover-open"))return!0}catch(Z){}try{return A.matches(":modal")}catch(Z){return!1}}var yS=/transform|translate|scale|rotate|perspective|filter/,ES=/paint|layout|strict|content/,Z5=(A)=>!!A&&A!=="none",qU;function VQ(A){let Z=O1(A)?_2(A):A;return Z5(Z.transform)||Z5(Z.translate)||Z5(Z.scale)||Z5(Z.rotate)||Z5(Z.perspective)||!MQ()&&(Z5(Z.backdropFilter)||Z5(Z.filter))||yS.test(Z.willChange||"")||ES.test(Z.contain||"")}function cM(A){let Z=O6(A);while(l0(Z)&&!d6(Z)){if(VQ(Z))return Z;else if(bZ(Z))return null;Z=O6(Z)}return null}function MQ(){if(qU==null)qU=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return qU}function d6(A){return/^(html|body|#document)$/.test(Q2(A))}function _2(A){return q1(A).getComputedStyle(A)}function RZ(A){if(O1(A))return{scrollLeft:A.scrollLeft,scrollTop:A.scrollTop};return{scrollLeft:A.scrollX,scrollTop:A.scrollY}}function O6(A){if(Q2(A)==="html")return A;let Z=A.assignedSlot||A.parentNode||x4(A)&&A.host||S4(A);return x4(Z)?Z.host:Z}function mM(A){let Z=O6(A);if(d6(Z))return(A.ownerDocument||A).body;if(l0(Z)&&J5(Z))return Z;return mM(Z)}function G9(A,Z,J){var q;if(Z===void 0)Z=[];if(J===void 0)J=!0;let Q=mM(A),z=Q===((q=A.ownerDocument)==null?void 0:q.body),G=q1(Q);if(z){let X=FQ(G);return Z.concat(G,G.visualViewport||[],J5(Q)?Q:[],X&&J?G9(X):[])}else return Z.concat(Q,G9(Q,[],J))}function FQ(A){return A.parent&&Object.getPrototypeOf(A.parent)?A.frameElement:null}function y0(A){return A?.ownerDocument||document}var _Q=g(p(),1);var pM=0;function vS(A,Z="mui"){let[J,q]=_Q.useState(A),Q=A||J;return _Q.useEffect(()=>{if(J==null)pM+=1,q(`${Z}-${pM}`)},[J,Z]),Q}var dM=SZ.useId;function P4(A,Z){if(dM!==void 0){let J=dM();return A??(Z?`${Z}-${J}`:J)}return vS(A,Z)}function $2(A){return P4(A,"base-ui")}var c7=g(p(),1);var kQ=g(p(),1),QU=kQ.createContext(void 0);function u7(A=!1){let Z=kQ.useContext(QU);if(Z===void 0&&!A)throw Error(v1(16));return Z}var lM=g(p(),1);function iM(A){let{focusableWhenDisabled:Z,disabled:J,composite:q=!1,tabIndex:Q=0,isNativeButton:z}=A,G=q&&Z!==!1,X=q&&Z===!1;return{props:lM.useMemo(()=>{let U={onKeyDown(H){if(J&&Z&&H.key!=="Tab")H.preventDefault()}};if(!q){if(U.tabIndex=Q,!z&&J)U.tabIndex=Z?Q:-1}if(z&&(Z||G)||!z&&J)U["aria-disabled"]=J;if(z&&(!Z||X))U.disabled=J;return U},[q,J,Z,G,X,z,Q])}}function jQ(A,Z,{detail:J=0}={}){A.dispatchEvent(new(q1(A)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:J,shiftKey:Z.shiftKey,ctrlKey:Z.ctrlKey,altKey:Z.altKey,metaKey:Z.metaKey}))}function D6(A={}){let{disabled:Z=!1,focusableWhenDisabled:J,tabIndex:q=0,native:Q=!0,composite:z}=A,G=c7.useRef(null),X=u7(!0),Y=z??X!==void 0,{props:U}=iM({focusableWhenDisabled:J,disabled:Z,composite:Y,tabIndex:q,isNativeButton:Q}),H=c7.useCallback(()=>{let K=G.current;if(!zU(K))return;if(Y&&Z&&U.disabled===void 0&&K.disabled)K.disabled=!1},[Z,U.disabled,Y]);J0(H,[H]);let W=c7.useCallback((K={})=>{let{onClick:V,onMouseDown:F,onKeyUp:j,onKeyDown:$,onPointerDown:L,...M}=K;return $A({onClick(_){if(Z){_.preventDefault();return}V?.(_)},onMouseDown(_){if(!Z)F?.(_)},onKeyDown(_){if(Z)return;if(fZ(_),$?.(_),_.baseUIHandlerPrevented)return;let k=_.target===_.currentTarget,C=_.currentTarget,O=zU(C),N=!Q&&gS(C),D=k&&(Q?O:!N),T=_.key==="Enter",h=_.key===" ",S=C.getAttribute("role"),x=S?.startsWith("menuitem")||S==="option"||S==="gridcell";if(k&&Y&&h){if(_.defaultPrevented&&x)return;if(_.preventDefault(),!Q||O)_.preventBaseUIHandler(),jQ(C,_);return}if(!D||Q||!h&&!T){if(k&&N&&h)_.preventDefault();return}if(_.defaultPrevented)return;if(_.preventDefault(),T)_.preventBaseUIHandler(),jQ(C,_)},onKeyUp(_){if(Z)return;if(fZ(_),j?.(_),_.target===_.currentTarget&&Q&&Y&&zU(_.currentTarget)&&_.key===" "){_.preventDefault();return}if(_.baseUIHandlerPrevented)return;if(_.target===_.currentTarget&&!Q&&!Y&&!_.defaultPrevented&&_.key===" ")_.preventBaseUIHandler(),jQ(_.currentTarget,_)},onPointerDown(_){if(Z){_.preventDefault();return}L?.(_)}},Q?{type:"button"}:{role:"button"},U,M)},[Z,U,Y,Q]),B=X0((K)=>{G.current=K,H()});return{getButtonProps:W,buttonRef:B}}function zU(A){return l0(A)&&A.tagName==="BUTTON"}function gS(A){return l0(A)&&A.tagName==="A"&&Boolean(A.href)}var yZ="data-composite-item-active";var rM=g(p(),1);var q5=g(p(),1);function CQ(A={}){let{guess:Z,label:J,metadata:q,textRef:Q,index:z}=A,{register:G,unregister:X,subscribeMapChange:Y,nextIndexRef:U}=bM(),H=q5.useRef(-1),[W,B]=q5.useState(z==null&&Z?()=>{if(H.current===-1){let j=U.current;U.current+=1,H.current=j}return H.current}:-1),K=z??W,V=q5.useRef(null),F=q5.useCallback((j)=>{let $=V.current;if($)X($);if(V.current=j,j)G(j,{metadata:q??null,index:z??null,label:J,textRef:Q})},[z,G,X,q,J,Q]);return J0(()=>{if(z!=null)return;return Y((j)=>{let $=V.current?j.get(V.current)?.index:null;if($!=null)B($)})},[z,Y]),{ref:F,index:K}}function oM(A={}){let{highlightItemOnHover:Z,highlightedIndex:J,onHighlightedIndexChange:q}=u7(),{ref:Q,index:z}=CQ(A),G=J===z,X=rM.useRef(null),Y=w4(Q,X);return{compositeProps:{tabIndex:G?0:-1,onFocus(){q(z)},onMouseMove(){let H=X.current;if(!Z||!H)return;let W=H.hasAttribute("disabled")||H.ariaDisabled==="true";if(!G&&!W)H.focus()}},compositeRef:Y,index:z}}var NQ=g(p(),1),GU=NQ.createContext(void 0);function OQ(){let A=NQ.useContext(GU);if(A===void 0)throw Error(v1(65));return A}var z2={};r2(z2,{screenReader:()=>BU,os:()=>UU,mediaQuery:()=>$U,env:()=>KU,engine:()=>WU});var UU={};r2(UU,{windows:()=>pS,mac:()=>tM,linux:()=>dS,ios:()=>XU,apple:()=>YU,android:()=>nM});function uS(){if(typeof navigator>"u")return{userAgent:"",platform:"",maxTouchPoints:0};return{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:cS,platform:mS,maxTouchPoints:aM}=uS(),Q5=cS.toLowerCase(),z5=mS.toLowerCase();var XU=/^i(os$|p)/.test(z5)||z5==="macintel"&&aM>1,sM="android",nM=z5===sM||Q5.includes(sM),tM=!XU&&z5.startsWith("mac"),pS=z5.startsWith("win"),dS=!nM&&/^(linux|chrome os)/.test(z5),YU=tM||XU;var WU={};r2(WU,{webkit:()=>HU,gecko:()=>lS,blink:()=>iS});var HU=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),lS=!HU&&Q5.includes("firefox"),iS=!HU&&Q5.includes("chrom");var BU={};r2(BU,{voiceOver:()=>rS});var rS=YU;var KU={};r2(KU,{jsdom:()=>oS});var oS=/jsdom|happydom/.test(Q5);var $U={};r2($U,{iOS:()=>aS});var aS="@supports (-webkit-touch-callout: none)";function a1(A){let Z=A.activeElement;while(Z?.shadowRoot?.activeElement!=null)Z=Z.shadowRoot.activeElement;return Z}function I0(A,Z){if(!A||!Z)return!1;let J=Z.getRootNode?.();if(A.contains(Z))return!0;if(J&&x4(J)){let q=Z;while(q){if(A===q)return!0;q=q.parentNode||q.host}}return!1}function D1(A){if("composedPath"in A)return A.composedPath()[0]??A.target;return A.target}var EZ="data-base-ui-focusable";var eM="input:not([type=\'hidden\']):not([disabled]),[contenteditable]:not([contenteditable=\'false\']),textarea:not([disabled])";var I4={};r2(I4,{startingStyle:()=>G5,endingStyle:()=>vZ});var G5="data-starting-style",vZ="data-ending-style";var sS={[G5]:""},nS={[vZ]:""},f4={transitionStatus(A){if(A==="starting")return sS;if(A==="ending")return nS;return null}};var X5={};r2(X5,{startingStyle:()=>tS,side:()=>AP,open:()=>LU,endingStyle:()=>eS,closed:()=>VU,anchorHidden:()=>MU,align:()=>ZP});var LU="data-open",VU="data-closed",tS=G5,eS=vZ,MU="data-anchor-hidden",AP="data-side",ZP="data-align";var FU="data-popup-open",AF="data-pressed";var qP={[FU]:""},jZ2={[FU]:"",[AF]:""},QP={[LU]:""},zP={[VU]:""},GP={[MU]:""},ZF={open(A){if(A)return qP;return null}};var gZ={open(A){if(A)return QP;return zP},anchorHidden(A){if(A)return GP;return null}},JF={...gZ,...f4};function DQ(A,Z){if(Z==null)return!1;if("composedPath"in A)return A.composedPath().includes(Z);let J=A;return J.target!=null&&Z.contains(J.target)}function qF(A){return A.matches("html,body")}function uZ(A){return l0(A)&&A.matches(eM)}function _U(A){if(!A)return!1;return A.getAttribute("role")==="combobox"&&uZ(A)}function m7(A){if(!A||z2.env.jsdom)return!0;try{return A.matches(":focus-visible")}catch(Z){return!0}}function kU(A){if(!A)return null;return A.hasAttribute(EZ)?A:A.querySelector(`[${EZ}]`)||A}function Y5(A,Z,J=!0){return A.filter((Q)=>Q.parentId===Z).flatMap((Q)=>[...!J||Q.context?.open?[Q]:[],...Y5(A,Q.id,J)])}function jU(A,Z){let J=[],q=A.find((Q)=>Q.id===Z)?.parentId;while(q){let Q=A.find((z)=>z.id===q);if(q=Q?.parentId,Q)J=J.concat(Q)}return J}function CU(A){A.preventDefault(),A.stopPropagation()}function QF(A){return"nativeEvent"in A}function TQ(A){if(A.pointerType===""&&A.isTrusted)return!0;if(z2.os.android&&A.pointerType)return A.type==="click"&&A.buttons===1;return A.detail===0&&!A.pointerType}function wQ(A){if(z2.env.jsdom)return!1;return!z2.os.android&&A.width===0&&A.height===0||z2.os.android&&A.width===1&&A.height===1&&A.pressure===0&&A.detail===0&&A.pointerType==="mouse"||A.width<1&&A.height<1&&A.pressure===0&&A.detail===0&&A.pointerType==="touch"}function hQ(A,Z){let J=["mouse","pen"];if(!Z)J.push("",void 0);return J.includes(A)}function zF(A){let Z=A.type;return Z==="click"||Z==="mousedown"||Z==="keydown"||Z==="keyup"}var{min:X9,max:z4,round:Y9,floor:mZ}=Math,b4=(A)=>({x:A,y:A}),XP={left:"right",right:"left",bottom:"top",top:"bottom"};function SQ(A,Z,J){return z4(A,X9(Z,J))}function R4(A,Z){return typeof A==="function"?A(Z):A}function U6(A){return A.split("-")[0]}function l6(A){return A.split("-")[1]}function PQ(A){return A==="x"?"y":"x"}function pZ(A){return A==="y"?"height":"width"}function H6(A){let Z=A[0];return Z==="t"||Z==="b"?"y":"x"}function dZ(A){return PQ(H6(A))}function YF(A,Z,J){if(J===void 0)J=!1;let q=l6(A),Q=dZ(A),z=pZ(Q),G=Q==="x"?q===(J?"end":"start")?"right":"left":q==="start"?"bottom":"top";if(Z.reference[z]>Z.floating[z])G=cZ(G);return[G,cZ(G)]}function UF(A){let Z=cZ(A);return[xQ(A),Z,xQ(Z)]}function xQ(A){return A.includes("start")?A.replace("start","end"):A.replace("end","start")}var GF=["left","right"],XF=["right","left"],YP=["top","bottom"],UP=["bottom","top"];function HP(A,Z,J){switch(A){case"top":case"bottom":if(J)return Z?XF:GF;return Z?GF:XF;case"left":case"right":return Z?YP:UP;default:return[]}}function HF(A,Z,J,q){let Q=l6(A),z=HP(U6(A),J==="start",q);if(Q){if(z=z.map((G)=>G+"-"+Q),Z)z=z.concat(z.map(xQ))}return z}function cZ(A){let Z=U6(A);return XP[Z]+A.slice(Z.length)}function WP(A){var Z,J,q,Q;return{top:(Z=A.top)!=null?Z:0,right:(J=A.right)!=null?J:0,bottom:(q=A.bottom)!=null?q:0,left:(Q=A.left)!=null?Q:0}}function IQ(A){return typeof A!=="number"?WP(A):{top:A,right:A,bottom:A,left:A}}function U5(A){let{x:Z,y:J,width:q,height:Q}=A;return{width:q,height:Q,top:J,left:Z,right:Z+q,bottom:J+Q,x:Z,y:J}}function lZ(A,Z){return Z<0||Z>=A.length}function NU(A,Z){return H5(A.current,{disabledIndices:Z})}function OU(A,Z){return H5(A.current,{decrement:!0,startingIndex:A.current.length,disabledIndices:Z})}function H5(A,{startingIndex:Z=-1,decrement:J=!1,disabledIndices:q,amount:Q=1}={}){let z=Z;do z+=J?-Q:Q;while(z>=0&&z<=A.length-1&&W5(A,z,q));return z}function W5(A,Z,J){if(typeof J==="function"?J(Z):J?.includes(Z)??!1)return!0;let Q=A[Z];if(!Q)return!1;if(!iZ(Q))return!0;if(Q.matches(":disabled"))return!0;return!J&&(Q.hasAttribute("disabled")||Q.getAttribute("aria-disabled")==="true")}function BP(A){return A.visibility==="hidden"||A.visibility==="collapse"}function iZ(A,Z=A?_2(A):null){if(!A||!A.isConnected||!Z||BP(Z))return!1;if(typeof A.checkVisibility==="function")return A.checkVisibility();return Z.display!=="none"&&Z.display!=="contents"}var KP=\'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]\';function $P(A){let Z=A.assignedSlot;if(Z)return Z;if(A.parentElement)return A.parentElement;let J=A.getRootNode();return x4(J)?J.host:null}function TU(A){for(let Z of Array.from(A.children))if(Q2(Z)==="summary")return Z;return null}function LP(A,Z){let J=TU(Z);return!!J&&(A===J||I0(J,A))}function WF(A){let Z=A?Q2(A):"";return A!=null&&A.matches(KP)&&(Z!=="summary"||A.parentElement!=null&&Q2(A.parentElement)==="details"&&TU(A.parentElement)===A)&&(Z!=="details"||TU(A)==null)&&(Z!=="input"||A.type!=="hidden")}function BF(A){if(!WF(A)||!A.isConnected||A.matches(":disabled"))return!1;for(let Z=A;Z;Z=$P(Z)){let J=Z!==A,q=Q2(Z)==="slot";if(Z.hasAttribute("inert"))return!1;if(J&&Q2(Z)==="details"&&!Z.open&&!LP(A,Z)||Z.hasAttribute("hidden")||!q&&!VP(Z,J))return!1}return!0}function VP(A,Z){let J=_2(A);if(!Z)return iZ(A,J);return J.display!=="none"}function KF(A){let Z=A.tabIndex;if(Z<0){let J=Q2(A);if(J==="details"||J==="audio"||J==="video"||l0(A)&&A.isContentEditable)return 0}return Z}function DU(A){if(Q2(A)!=="input")return null;let Z=A;return Z.type==="radio"&&Z.name!==""?Z:null}function MP(A,Z){let J=DU(A);if(!J)return!0;let q=Z.find((Q)=>{let z=DU(Q);return z?.name===J.name&&z.form===J.form&&z.checked});if(q)return q===J;return Z.find((Q)=>{let z=DU(Q);return z?.name===J.name&&z.form===J.form})===J}function $F(A){if(l0(A)&&Q2(A)==="slot"){let Z=A.assignedElements({flatten:!0});if(Z.length>0)return Z}if(l0(A)&&A.shadowRoot)return Array.from(A.shadowRoot.children);return Array.from(A.children)}function LF(A,Z){$F(A).forEach((J)=>{if(WF(J))Z.push(J);LF(J,Z)})}function VF(A,Z,J){$F(A).forEach((q)=>{if(l0(q)&&q.matches(Z))J.push(q);VF(q,Z,J)})}function fQ(A){return BF(A)&&KF(A)>=0}function wU(A){let Z=[];return LF(A,Z),Z.filter(BF)}function rZ(A){let Z=wU(A);return Z.filter((J)=>KF(J)>=0&&MP(J,Z))}function MF(A,Z){let J=rZ(A),q=J.length;if(q===0)return;let Q=a1(y0(A)),z=J.indexOf(Q),G=z===-1?Z===1?0:q-1:z+Z;return J[G]}function bQ(A){return MF(y0(A).body,1)||A}function RQ(A){return MF(y0(A).body,-1)||A}function B5(A,Z){let J=Z||A.currentTarget,q=A.relatedTarget;return!q||!I0(J,q)}function FF(A){rZ(A).forEach((J)=>{J.dataset.tabindex=J.getAttribute("tabindex")||"",J.setAttribute("tabindex","-1")})}function hU(A){let Z=[];VF(A,"[data-tabindex]",Z),Z.forEach((J)=>{let q=J.dataset.tabindex;if(delete J.dataset.tabindex,q)J.setAttribute("tabindex",q);else J.removeAttribute("tabindex")})}var _F=VA.forwardRef(function(Z,J){let{className:q,disabled:Q=!1,render:z,value:G,id:X,nativeButton:Y=!0,style:U,...H}=Z,{value:W,getTabPanelIdByValue:B,onValueChange:K,orientation:V,tabActivationDirection:F}=z9(),{activateOnFocus:j,registerTabResizeObserverElement:$,tabsListElement:L}=OQ(),{highlightedIndex:M,onHighlightedIndexChange:_}=u7(),k=$2(X),C=VA.useMemo(()=>({disabled:Q,id:k,value:G}),[Q,k,G]),{compositeProps:O,compositeRef:N,index:D}=oM({metadata:C}),T=G===W,h=VA.useRef(!1),S=VA.useRef(null),x=X0((y)=>{S.current?.(),S.current=y?$(y):null});J0(()=>{if(h.current){h.current=!1;return}if(!(T&&D>-1&&M!==D))return;let y=L;if(y!=null){let m=a1(y0(y));if(m&&I0(y,m))return}if(!Q)_(D)},[T,D,M,_,Q,L]);let{getButtonProps:f,buttonRef:R}=D6({disabled:Q,native:Y,focusableWhenDisabled:!0}),P=B(G),E=VA.useRef(!1),u=VA.useRef(!1);function v(y){K(G,y1(e0.none,y.nativeEvent,void 0,{activationDirection:"none"}))}function I(y){if(T||Q)return;v(y)}function t(y){if(T||Q)return;if(j&&(!E.current||u.current))v(y)}function W0(y){if(T||Q)return;E.current=!0,u.current=y.button===0;let m=y0(y.currentTarget);function l(){E.current=!1,u.current=!1,m.removeEventListener("pointerup",l),m.removeEventListener("pointercancel",l)}m.addEventListener("pointerup",l),m.addEventListener("pointercancel",l)}return O0("button",Z,{state:{disabled:Q,active:T,orientation:V,tabActivationDirection:F},ref:[J,R,N,x],props:[O,{role:"tab","aria-controls":P,"aria-selected":T,id:k,onClick:I,onFocus:t,onPointerDown:W0,[yZ]:T?"":void 0,onKeyDownCapture(){h.current=!0}},H,f],stateAttributesMapping:h4})});var p7=g(p(),1);var yQ=g(p(),1);function kF(){let[,A]=yQ.useState({});return yQ.useCallback(()=>{A({})},[])}var jF="";var UJ2=g(p(),1);var CF=g(oZ(),1);function xP(){return B1}function SP(){return!1}function PP(){return!0}function NF(){return CF.useSyncExternalStore(xP,SP,PP)}var EQ=g(p(),1),IP=EQ.createContext(void 0),fP={disableStyleElements:!1};function OF(){return EQ.useContext(IP)??fP}function DF(A){let{script:Z}=A,{nonce:J}=OF();if(!NF())return null;return w("script",{nonce:J,dangerouslySetInnerHTML:{__html:Z},suppressHydrationWarning:!0})}function SU(A){let Z=_2(A),J=parseFloat(Z.width)||0,q=parseFloat(Z.height)||0,Q=l0(A),z=Q?A.offsetWidth:J,G=Q?A.offsetHeight:q;if(Y9(J)!==z||Y9(q)!==G)J=z,q=G;return{width:J,height:q}}function vQ(A,Z){let J=(Z??q1(A).getComputedStyle(A)).transform,q=0,Q=0,z=1;if(J&&J!=="none"){let G=J.match(/matrix(?:3d)?\\(([^)]+)\\)/);if(G){let X=G[1].split(", ").map(parseFloat);if(X.length===6)q=X[4],Q=X[5],z=Math.sqrt(X[0]*X[0]+X[1]*X[1]);else if(X.length===16)q=X[12],Q=X[13],z=X[0]}}return{x:q,y:Q,scale:z}}var TF="--active-tab-left",wF="--active-tab-right",hF="--active-tab-top",xF="--active-tab-bottom",SF="--active-tab-width",PF="--active-tab-height";var IF,RP={...h4,activeTabPosition:()=>null,activeTabSize:()=>null},fF=2,yF=p7.forwardRef(function(Z,J){let{className:q,render:Q,renderBeforeHydration:z=!1,style:G,...X}=Z,{getTabElementBySelectedValue:Y,orientation:U,tabActivationDirection:H,value:W}=z9(),{tabsListElement:B,registerIndicatorUpdateListener:K}=OQ(),V=kF();p7.useEffect(()=>{return K(V)},[K,V]);let F=0,j=0,$=0,L=0,M=0,_=0,k=!1;if(W!=null&&B!=null){let S=Y(W);if(S!=null){k=!0;let{width:x,height:f}=SU(S),{width:R,height:P}=SU(B),E=S.getBoundingClientRect(),u=B.getBoundingClientRect(),v=R>0?u.width/R:1,I=P>0?u.height/P:1,t=yP(S,B);F=t.left,$=t.top;let W0=(E.left-u.left)/v+B.scrollLeft-B.clientLeft,Q0=(E.top-u.top)/I+B.scrollTop-B.clientTop,b=EP(S);if(Math.abs(W0-b.x-F)<=fF&&Math.abs(Q0-b.y-$)<=fF)F=W0,$=Q0;M=x,_=f,j=B.scrollWidth-F-M,L=B.scrollHeight-$-_}}let C=k?{left:F,right:j,top:$,bottom:L}:null,O=k?{width:M,height:_}:null,N=k?{[TF]:`${F}px`,[wF]:`${j}px`,[hF]:`${$}px`,[xF]:`${L}px`,[SF]:`${M}px`,[PF]:`${_}px`}:void 0,D=k&&M>0&&_>0,h=O0("span",Z,{state:{orientation:U,activeTabPosition:C,activeTabSize:O,tabActivationDirection:H},ref:J,props:[{role:"presentation",style:N,hidden:!D},X,{suppressHydrationWarning:!0}],stateAttributesMapping:RP});if(W==null)return null;return Y0(p7.Fragment,{children:[h,z&&(IF||(IF=w(DF,{script:jF})))]})});function yP(A,Z){let J=bF(A),q=bF(Z),Q=J.left-q.left-Z.clientLeft,z=J.top-q.top-Z.clientTop,G=O6(A);while(l0(G)&&G!==Z&&!d6(G))Q-=G.scrollLeft,z-=G.scrollTop,G=O6(G);return{left:Q,top:z}}function bF(A){let Z=0,J=0,q=A;while(q!=null){Z+=q.offsetLeft,J+=q.offsetTop;let Q=q.offsetParent;if(Q!=null)Z+=Q.clientLeft,J+=Q.clientTop;q=Q}return{left:Z,top:J}}function EP(A){let Z=q1(A).getComputedStyle(A),{x:J,y:q}=vQ(A,Z),Q=J,z=q,{translate:G}=Z;if(G&&G!=="none"){let X=G.split(" ");Q+=RF(X[0],A.offsetWidth),z+=RF(X[1],A.offsetHeight)}return{x:Q,y:z}}function RF(A,Z){if(!A)return 0;let J=parseFloat(A);if(!Number.isFinite(J))return 0;return A.endsWith("%")?J/100*Z:J}var mQ=g(p(),1);function d7(A){if(g7(19))return A;return A?"true":void 0}var uF=g(p(),1);var PU=g(l4(),1);var EF=g(p(),1);function l7(A){EF.useEffect(A,KA)}var gQ=null,vJ2=globalThis.requestAnimationFrame;class vF{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=(A)=>{this.isScheduled=!1;let Z=this.callbacks,J=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,J>0)for(let q=0;q<Z.length;q+=1)Z[q]?.(A)};request(A){let Z=this.nextId;this.nextId+=1,this.callbacks.push(A),this.callbacksCount+=1;let J=!1;if(!this.isScheduled||J)requestAnimationFrame(this.tick),this.isScheduled=!0;return Z}cancel(A){let Z=A-this.startId;if(Z<0||Z>=this.callbacks.length)return;if(this.callbacks[Z]===null)return;this.callbacks[Z]=null,this.callbacksCount-=1}}var uQ=new vF;class i6{static create(){return new i6}static request(A){return uQ.request(A)}static cancel(A){return uQ.cancel(A)}currentId=gQ;request(A){this.cancel(),this.currentId=uQ.request(()=>{this.currentId=gQ,A()})}cancel=()=>{if(this.currentId!==gQ)uQ.cancel(this.currentId),this.currentId=gQ};disposeEffect=()=>{return this.cancel}}function i7(){let A=F1(i6.create).current;return l7(A.disposeEffect),A}function X4(A){if(A==null)return A;return"current"in A?A.current:A}var cQ=null;function vP(A){if(!cQ){let Z=[];cQ=Z,queueMicrotask(()=>{cQ=null,PU.flushSync(()=>{for(let J of Z)J()})})}cQ.push(A)}function gF(A,Z=!1,J=!1){let q=i7();return X0((Q,z=null)=>{q.cancel();let G=X4(A);if(G==null)return;let X=G,Y=()=>{if(!J){PU.flushSync(Q);return}vP(()=>{if(!z?.aborted)Q()})};if(typeof X.getAnimations!=="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){Q();return}function U(){Promise.all(X.getAnimations().map((H)=>H.finished)).then(()=>{if(!z?.aborted)Y()},()=>{if(z?.aborted)return;if(X.getAnimations().some((W)=>W.pending||W.playState!=="finished")){U();return}Y()})}if(Z){let H=G5;if(!X.hasAttribute(H)){q.request(U);return}let W=new MutationObserver(()=>{if(!X.hasAttribute(H))W.disconnect(),U()});W.observe(X,{attributes:!0,attributeFilter:[H]}),z?.addEventListener("abort",()=>W.disconnect(),{once:!0});return}q.request(U)})}function y4(A){let{enabled:Z=!0,open:J,ref:q,batch:Q=!1,onComplete:z}=A,G=X0(z),X=gF(q,J,Q);uF.useEffect(()=>{if(!Z)return;let Y=new AbortController;return X(G,Y.signal),()=>{Y.abort()}},[Z,J,G,X])}var IU=g(p(),1);function U9(A,Z=!1,J=!1,q=!1){let[Q,z]=IU.useState(A&&Z?"idle":void 0),[G,X]=IU.useState(A&&!q);if(A&&!G)X(!0),z("starting");if(!A&&G&&Q!=="ending"&&!J)z("ending");if(!A&&!G&&Q==="ending")z(void 0);return J0(()=>{if(!A&&G&&Q!=="ending"&&J){let Y=i6.request(()=>{z("ending")});return()=>{i6.cancel(Y)}}return},[A,G,Q,J]),J0(()=>{if(!A||Z)return;let Y=i6.request(()=>{z(void 0)});return()=>{i6.cancel(Y)}},[Z,A]),J0(()=>{if(!A||!Z)return;if(A&&G&&Q!=="idle")z("starting");let Y=i6.request(()=>{z("idle")});return()=>{i6.cancel(Y)}},[Z,A,G,Q]),{mounted:G,setMounted:X,transitionStatus:Q}}var cF="data-index";var tJ2=I4.startingStyle,eJ2=I4.endingStyle;var uP={...h4,...f4},mF=mQ.forwardRef(function(Z,J){let{className:q,value:Q,render:z,keepMounted:G=!1,style:X,...Y}=Z,{value:U,getTabIdByPanelValue:H,orientation:W,tabActivationDirection:B,registerMountedTabPanel:K}=z9(),V=$2(),{ref:F,index:j}=CQ(),$=Q===U,{mounted:L,transitionStatus:M,setMounted:_}=U9($),k=!L,C=H(Q),O={hidden:k,orientation:W,tabActivationDirection:B,transitionStatus:M},N=mQ.useRef(null),D=O0("div",Z,{state:O,ref:[J,F,N],props:[{"aria-labelledby":C,hidden:k,id:V,role:"tabpanel",tabIndex:$?0:-1,inert:d7(!$),[cF]:j},Y],stateAttributesMapping:uP});if(y4({open:$,ref:N,onComplete(){if(!$)_(!1)}}),J0(()=>{if(V==null||k&&!G)return;return K(Q,V)},[k,G,Q,V,K]),!(G||L))return null;return D});var Y4=g(p(),1);var rF=g(p(),1);var K5=g(p(),1);function pF(A){return A==null||A.hasAttribute("disabled")||A.getAttribute("aria-disabled")==="true"}var dQ="ArrowUp",lQ="ArrowDown",iQ="ArrowLeft",rQ="ArrowRight",oQ="Home",aQ="End";var sQ=new Set([dQ,lQ,iQ,rQ,oQ,aQ]),cP="Shift",lF=[cP,"Control","Alt","Meta"];function mP(A){return l0(A)&&A.tagName==="INPUT"}function fU(A){if(mP(A)&&A.selectionStart!=null)return!0;if(l0(A)&&A.tagName==="TEXTAREA")return!0;return!1}function bU(A,Z,J,q){if(!A||!Z||!Z.scrollTo)return;let{scrollLeft:Q,scrollTop:z}=A,G=A.clientWidth<A.scrollWidth,X=A.clientHeight<A.scrollHeight;if(G&&q!=="vertical"){let Y=dF(A,Z,"left"),U=pQ(A),H=pQ(Z);if(J==="ltr"){if(Y+Z.offsetWidth+H.scrollMarginRight>A.scrollLeft+A.clientWidth-U.scrollPaddingRight)Q=Y+Z.offsetWidth+H.scrollMarginRight-A.clientWidth+U.scrollPaddingRight;else if(Y-H.scrollMarginLeft<A.scrollLeft+U.scrollPaddingLeft)Q=Y-H.scrollMarginLeft-U.scrollPaddingLeft}if(J==="rtl"){if(Y-H.scrollMarginLeft<A.scrollLeft+U.scrollPaddingLeft)Q=Y-H.scrollMarginLeft-U.scrollPaddingLeft;else if(Y+Z.offsetWidth+H.scrollMarginRight>A.scrollLeft+A.clientWidth-U.scrollPaddingRight)Q=Y+Z.offsetWidth+H.scrollMarginRight-A.clientWidth+U.scrollPaddingRight}}if(X&&q!=="horizontal"){let Y=dF(A,Z,"top"),U=pQ(A),H=pQ(Z);if(Y-H.scrollMarginTop<A.scrollTop+U.scrollPaddingTop)z=Y-H.scrollMarginTop-U.scrollPaddingTop;else if(Y+Z.offsetHeight+H.scrollMarginBottom>A.scrollTop+A.clientHeight-U.scrollPaddingBottom)z=Y+Z.offsetHeight+H.scrollMarginBottom-A.clientHeight+U.scrollPaddingBottom}A.scrollTo({left:Q,top:z,behavior:"auto"})}function dF(A,Z,J){let q=J==="left"?"offsetLeft":"offsetTop",Q=0;while(Z.offsetParent){if(Q+=Z[q],Z.offsetParent===A)break;Z=Z.offsetParent}return Q}function pQ(A){let Z=getComputedStyle(A);return{scrollMarginTop:parseFloat(Z.scrollMarginTop)||0,scrollMarginRight:parseFloat(Z.scrollMarginRight)||0,scrollMarginBottom:parseFloat(Z.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(Z.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(Z.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(Z.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(Z.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(Z.scrollPaddingLeft)||0}}function iF(A){let{loopFocus:Z=!0,orientation:J="both",grid:q,onLoop:Q,direction:z,highlightedIndex:G,onHighlightedIndexChange:X,rootRef:Y,enableHomeAndEndKeys:U=!1,stopEventPropagation:H,disabledIndices:W,modifierKeys:B=KA}=A,[K,V]=K5.useState(0),F=q!=null,j=K5.useRef(null),$=w4(j,Y),L=K5.useRef([]),M=K5.useRef(!1),_=K5.useRef(null),k=G??K,C=X0((h,S=!1)=>{if(_.current=L.current[h]??null,(X??V)(h),S){let x=L.current[h];bU(j.current,x,z,J)}}),O=X0((h)=>{if(h.size===0)return;if(M.current){let R=L.current,P=R.indexOf(_.current);if(P===-1){let E=R[k];if(!E||W5(R,k,W))C(pP(R,W));else _.current=E}else if(P!==k)C(P);return}M.current=!0;let S=Array.from(h.keys()),x=S.find((R)=>R?.hasAttribute(yZ))??null,f=x?h.get(x)?.index??-1:-1;if(f!==-1)C(f);else if(W5(S,k,W)){let R=H5(S,{disabledIndices:W});if(!lZ(S,R))C(R)}bU(j.current,x,z,J)});J0(()=>{if(W==null||G!=null||!M.current)return;let h=L.current;if(W5(h,k,W)){let S=H5(h,{disabledIndices:W});if(!lZ(h,S))C(S)}},[W,G,k,L,C]);let N=X0((h,S,x)=>{if(!Q)return x;return Q(h,S,x,L)}),D=X0((h)=>{let S=h.key===oQ||h.key===aQ;if(!sQ.has(h.key)||!U&&S)return;if(dP(h,B))return;if(!j.current)return;let f=z==="rtl",R=f?iQ:rQ,P=f?rQ:iQ,E=J==="vertical"?lQ:R,u=J==="vertical"?dQ:P,v=D1(h.nativeEvent);if(v!=null&&fU(v)&&!pF(v)){let{selectionStart:y,selectionEnd:m,value:l}=v;if(y==null||h.shiftKey||y!==m)return;if(h.key!==u&&y<l.length)return;if(h.key!==E&&y>0)return}let I=k,t=NU(L,W),W0=OU(L,W);if(q!=null)I=q({disabledIndices:W,elementsRef:L,event:h,highlightedIndex:k,loopFocus:Z,maxIndex:W0,minIndex:t,onLoop:N,orientation:J,rtl:f});let Q0=J!=="vertical"&&h.key===R||J!=="horizontal"&&h.key===lQ,b=J!=="vertical"&&h.key===P||J!=="horizontal"&&h.key===dQ;if(U){if(h.key===oQ)I=t;else if(h.key===aQ)I=W0}if(I===k&&(Q0||b))if(Z&&I===W0&&Q0){if(I=t,Q)I=Q(h,k,I,L)}else if(Z&&I===t&&b){if(I=W0,Q)I=Q(h,k,I,L)}else I=H5(L.current,{startingIndex:I,decrement:b,disabledIndices:W});if(I!==k&&!lZ(L.current,I)){if(H)h.stopPropagation();if(F||S||Q0||b)h.preventDefault();C(I,!0),queueMicrotask(()=>{L.current[I]?.focus()})}});return{props:{ref:$,onFocus(h){let S=j.current,x=D1(h.nativeEvent);if(!S||x==null||!fU(x))return;x.setSelectionRange(0,x.value.length)},onKeyDown:D},highlightedIndex:k,onHighlightedIndexChange:C,elementsRef:L,onMapChange:O,relayKeyboardEvent:D}}function pP(A,Z){let J=-1;for(let q=0;q<A.length;q+=1){let Q=A[q];if(!Q||W5(A,q,Z))continue;if(Q.hasAttribute(yZ))return q;if(J===-1)J=q}return Math.max(J,0)}function dP(A,Z){for(let J of lF){if(Z.includes(J))continue;if(A.getModifierState(J))return!0}return!1}var nQ=g(p(),1),lP=nQ.createContext(void 0);function tQ(){return nQ.useContext(lP)?.direction??"ltr"}function oF(A){let{render:Z,className:J,style:q,refs:Q=KA,props:z=KA,state:G=_1,stateAttributesMapping:X,highlightedIndex:Y,onHighlightedIndexChange:U,orientation:H,grid:W,loopFocus:B,onLoop:K,enableHomeAndEndKeys:V,onMapChange:F,stopEventPropagation:j=!0,rootRef:$,disabledIndices:L,modifierKeys:M,highlightItemOnHover:_=!1,tag:k="div",...C}=A,O=tQ(),{props:N,highlightedIndex:D,onHighlightedIndexChange:T,elementsRef:h,onMapChange:S,relayKeyboardEvent:x}=iF({grid:W,loopFocus:B,onLoop:K,orientation:H,highlightedIndex:Y,onHighlightedIndexChange:U,rootRef:$,stopEventPropagation:j,enableHomeAndEndKeys:V,direction:O,disabledIndices:L,modifierKeys:M}),f=O0(k,A,{state:G,ref:Q,props:[N,...z,C],stateAttributesMapping:X}),R=rF.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:T,highlightItemOnHover:_,relayKeyboardEvent:x}),[D,T,_,x]);return w(QU.Provider,{value:R,children:w(BQ,{elementsRef:h,onMapChange:(P)=>{F?.(P),S(P)},children:f})})}var aF=Y4.forwardRef(function(Z,J){let{activateOnFocus:q=!1,className:Q,loopFocus:z=!0,render:G,style:X,...Y}=Z,{orientation:U,setTabMap:H,tabActivationDirection:W}=z9(),[B,K]=Y4.useState(0),[V,F]=Y4.useState(null),j=Y4.useRef(new Set),$=Y4.useRef(new Set),L=Y4.useRef(null);J0(()=>{if(typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{j.current.forEach((D)=>{D()})});if(L.current=N,V)N.observe(V);return $.current.forEach((D)=>{N.observe(D)}),()=>{N.disconnect(),L.current=null}},[V]);let M=X0((N)=>{return j.current.add(N),()=>{j.current.delete(N)}}),_=X0((N)=>{return $.current.add(N),L.current?.observe(N),()=>{$.current.delete(N),L.current?.unobserve(N)}}),k={orientation:U,tabActivationDirection:W},C={"aria-orientation":U==="vertical"?"vertical":void 0,role:"tablist"},O=Y4.useMemo(()=>({activateOnFocus:q,registerIndicatorUpdateListener:M,registerTabResizeObserverElement:_,tabsListElement:V}),[q,M,_,V]);return w(GU.Provider,{value:O,children:w(oF,{render:G,className:Q,style:X,state:k,refs:[J,F],props:[C,Y],stateAttributesMapping:h4,highlightedIndex:B,enableHomeAndEndKeys:!0,loopFocus:z,orientation:U,onHighlightedIndexChange:K,onMapChange:H,disabledIndices:KA})})});function sF(A){var Z,J,q="";if(typeof A=="string"||typeof A=="number")q+=A;else if(typeof A=="object")if(Array.isArray(A)){var Q=A.length;for(Z=0;Z<Q;Z++)A[Z]&&(J=sF(A[Z]))&&(q&&(q+=" "),q+=J)}else for(J in A)A[J]&&(q&&(q+=" "),q+=J);return q}function eQ(){for(var A,Z,J=0,q="",Q=arguments.length;J<Q;J++)(A=arguments[J])&&(Z=sF(A))&&(q&&(q+=" "),q+=Z);return q}var nF=(A)=>typeof A==="boolean"?`${A}`:A===0?"0":A,tF=eQ,U4=(A,Z)=>(J)=>{var q;if((Z===null||Z===void 0?void 0:Z.variants)==null)return tF(A,J===null||J===void 0?void 0:J.class,J===null||J===void 0?void 0:J.className);let{variants:Q,defaultVariants:z}=Z,G=Object.keys(Q).map((U)=>{let H=J===null||J===void 0?void 0:J[U],W=z===null||z===void 0?void 0:z[U];if(H===null)return null;let B=nF(H)||nF(W);return Q[U][B]}),X=J&&Object.entries(J).reduce((U,H)=>{let[W,B]=H;if(B===void 0)return U;return U[W]=B,U},{}),Y=Z===null||Z===void 0?void 0:(q=Z.compoundVariants)===null||q===void 0?void 0:q.reduce((U,H)=>{let{class:W,className:B,...K}=H;return Object.entries(K).every((V)=>{let[F,j]=V;return Array.isArray(j)?j.includes({...z,...X}[F]):{...z,...X}[F]===j})?[...U,W,B]:U},[]);return tF(A,G,Y,J===null||J===void 0?void 0:J.class,J===null||J===void 0?void 0:J.className)};var iP=(A,Z)=>{let J=Array(A.length+Z.length);for(let q=0;q<A.length;q++)J[q]=A[q];for(let q=0;q<Z.length;q++)J[A.length+q]=Z[q];return J},rP=(A,Z)=>({classGroupId:A,validator:Z}),Q_=(A=new Map,Z=null,J)=>({nextPart:A,validators:Z,classGroupId:J});var eF=[];var oP=(A)=>{let Z=sP(A),{conflictingClassGroups:J,conflictingClassGroupModifiers:q}=A;return{getClassGroupId:(G)=>{if(G.startsWith("[")&&G.endsWith("]"))return aP(G);let X=G.split("-"),Y=X[0]===""&&X.length>1?1:0;return z_(X,Y,Z)},getConflictingClassGroupIds:(G,X)=>{if(X){let Y=q[G],U=J[G];if(Y){if(U)return iP(U,Y);return Y}return U||eF}return J[G]||eF}}},z_=(A,Z,J)=>{if(A.length-Z===0)return J.classGroupId;let Q=A[Z],z=J.nextPart.get(Q);if(z){let U=z_(A,Z+1,z);if(U)return U}let G=J.validators;if(G===null)return;let X=Z===0?A.join("-"):A.slice(Z).join("-"),Y=G.length;for(let U=0;U<Y;U++){let H=G[U];if(H.validator(X))return H.classGroupId}return},aP=(A)=>A.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let Z=A.slice(1,-1),J=Z.indexOf(":"),q=Z.slice(0,J);return q?"arbitrary.."+q:void 0})(),sP=(A)=>{let{theme:Z,classGroups:J}=A;return nP(J,Z)},nP=(A,Z)=>{let J=Q_();for(let q in A){let Q=A[q];yU(Q,J,q,Z)}return J},yU=(A,Z,J,q)=>{let Q=A.length;for(let z=0;z<Q;z++){let G=A[z];tP(G,Z,J,q)}},tP=(A,Z,J,q)=>{if(typeof A==="string"){eP(A,Z,J);return}if(typeof A==="function"){AI(A,Z,J,q);return}ZI(A,Z,J,q)},eP=(A,Z,J)=>{let q=A===""?Z:G_(Z,A);q.classGroupId=J},AI=(A,Z,J,q)=>{if(JI(A)){yU(A(q),Z,J,q);return}if(Z.validators===null)Z.validators=[];Z.validators.push(rP(J,A))},ZI=(A,Z,J,q)=>{let Q=Object.entries(A),z=Q.length;for(let G=0;G<z;G++){let[X,Y]=Q[G];yU(Y,G_(Z,X),J,q)}},G_=(A,Z)=>{let J=A,q=Z.split("-"),Q=q.length;for(let z=0;z<Q;z++){let G=q[z],X=J.nextPart.get(G);if(!X)X=Q_(),J.nextPart.set(G,X);J=X}return J},JI=(A)=>("isThemeGetter"in A)&&A.isThemeGetter===!0,qI=(A)=>{if(A<1)return{get:()=>{return},set:()=>{}};let Z=0,J=Object.create(null),q=Object.create(null),Q=(z,G)=>{if(J[z]=G,Z++,Z>A)Z=0,q=J,J=Object.create(null)};return{get(z){let G=J[z];if(G!==void 0)return G;if((G=q[z])!==void 0)return Q(z,G),G},set(z,G){if(z in J)J[z]=G;else Q(z,G)}}};var QI=[],A_=(A,Z,J,q,Q)=>({modifiers:A,hasImportantModifier:Z,baseClassName:J,maybePostfixModifierPosition:q,isExternal:Q}),zI=(A)=>{let{prefix:Z,experimentalParseClassName:J}=A,q=(Q)=>{let z=[],G=0,X=0,Y=0,U,H=Q.length;for(let F=0;F<H;F++){let j=Q[F];if(G===0&&X===0){if(j===":"){z.push(Q.slice(Y,F)),Y=F+1;continue}if(j==="/"){U=F;continue}}if(j==="[")G++;else if(j==="]")G--;else if(j==="(")X++;else if(j===")")X--}let W=z.length===0?Q:Q.slice(Y),B=W,K=!1;if(W.endsWith("!"))B=W.slice(0,-1),K=!0;else if(W.startsWith("!"))B=W.slice(1),K=!0;let V=U&&U>Y?U-Y:void 0;return A_(z,K,B,V)};if(Z){let Q=Z+":",z=q;q=(G)=>G.startsWith(Q)?z(G.slice(Q.length)):A_(QI,!1,G,void 0,!0)}if(J){let Q=q;q=(z)=>J({className:z,parseClassName:Q})}return q},GI=(A)=>{let Z=new Map;return A.orderSensitiveModifiers.forEach((J,q)=>{Z.set(J,1e6+q)}),(J)=>{let q=[],Q=[];for(let z=0;z<J.length;z++){let G=J[z],X=G[0]==="[",Y=Z.has(G);if(X||Y){if(Q.length>0)Q.sort(),q.push(...Q),Q=[];q.push(G)}else Q.push(G)}if(Q.length>0)Q.sort(),q.push(...Q);return q}},XI=(A)=>({cache:qI(A.cacheSize),parseClassName:zI(A),sortModifiers:GI(A),postfixLookupClassGroupIds:YI(A),...oP(A)}),YI=(A)=>{let Z=Object.create(null),J=A.postfixLookupClassGroups;if(J)for(let q=0;q<J.length;q++)Z[J[q]]=!0;return Z},UI=/\\s+/,HI=(A,Z)=>{let{parseClassName:J,getClassGroupId:q,getConflictingClassGroupIds:Q,sortModifiers:z,postfixLookupClassGroupIds:G}=Z,X=[],Y=A.trim().split(UI),U="";for(let H=Y.length-1;H>=0;H-=1){let W=Y[H],{isExternal:B,modifiers:K,hasImportantModifier:V,baseClassName:F,maybePostfixModifierPosition:j}=J(W);if(B){U=W+(U.length>0?" "+U:U);continue}let $=!!j,L;if($){let O=F.substring(0,j);L=q(O);let N=L&&G[L]?q(F):void 0;if(N&&N!==L)L=N,$=!1}else L=q(F);if(!L){if(!$){U=W+(U.length>0?" "+U:U);continue}if(L=q(F),!L){U=W+(U.length>0?" "+U:U);continue}$=!1}let M=K.length===0?"":K.length===1?K[0]:z(K).join(":"),_=V?M+"!":M,k=_+L;if(X.indexOf(k)>-1)continue;X.push(k);let C=Q(L,$);for(let O=0;O<C.length;++O){let N=C[O];X.push(_+N)}U=W+(U.length>0?" "+U:U)}return U},WI=(...A)=>{let Z=0,J,q,Q="";while(Z<A.length)if(J=A[Z++]){if(q=X_(J))Q&&(Q+=" "),Q+=q}return Q},X_=(A)=>{if(typeof A==="string")return A;let Z,J="";for(let q=0;q<A.length;q++)if(A[q]){if(Z=X_(A[q]))J&&(J+=" "),J+=Z}return J},BI=(A,...Z)=>{let J,q,Q,z,G=(Y)=>{let U=Z.reduce((H,W)=>W(H),A());return J=XI(U),q=J.cache.get,Q=J.cache.set,z=X,X(Y)},X=(Y)=>{let U=q(Y);if(U)return U;let H=HI(Y,J);return Q(Y,H),H};return z=G,(...Y)=>z(WI(...Y))},KI=[],k2=(A)=>{let Z=(J)=>J[A]||KI;return Z.isThemeGetter=!0,Z.themeKey=A,Z},Y_=/^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i,U_=/^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i,$I=/^\\d+(?:\\.\\d+)?\\/\\d+(?:\\.\\d+)?$/,LI=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,VI=/\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/,MI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\\(.+\\)$/,FI=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,_I=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/,H9=(A)=>$I.test(A),v0=(A)=>!!A&&!Number.isNaN(Number(A)),E4=(A)=>!!A&&Number.isInteger(Number(A)),RU=(A)=>A.endsWith("%")&&v0(A.slice(0,-1)),MA=(A)=>LI.test(A),H_=()=>!0,kI=(A)=>VI.test(A)&&!MI.test(A),EU=()=>!1,jI=(A)=>FI.test(A),CI=(A)=>_I.test(A),NI=(A)=>!L0(A)&&!V0(A),OI=(A)=>A.startsWith("@container")&&(A[10]==="/"&&A[11]!==void 0||A[11]==="s"&&A[16]!==void 0&&A.startsWith("-size/",10)||A[11]==="n"&&A[18]!==void 0&&A.startsWith("-normal/",10)),DI=(A)=>W9(A,K_,EU),L0=(A)=>Y_.test(A),L5=(A)=>W9(A,$_,kI),Z_=(A)=>W9(A,fI,v0),TI=(A)=>W9(A,V_,H_),wI=(A)=>W9(A,L_,EU),J_=(A)=>W9(A,W_,EU),hI=(A)=>W9(A,B_,CI),Az=(A)=>W9(A,M_,jI),V0=(A)=>U_.test(A),aZ=(A)=>V5(A,$_),xI=(A)=>V5(A,L_),q_=(A)=>V5(A,W_),SI=(A)=>V5(A,K_),PI=(A)=>V5(A,B_),Zz=(A)=>V5(A,M_,!0),II=(A)=>V5(A,V_,!0),W9=(A,Z,J)=>{let q=Y_.exec(A);if(q){if(q[1])return Z(q[1]);return J(q[2])}return!1},V5=(A,Z,J=!1)=>{let q=U_.exec(A);if(q){if(q[1])return Z(q[1]);return J}return!1},W_=(A)=>A==="position"||A==="percentage",B_=(A)=>A==="image"||A==="url",K_=(A)=>A==="length"||A==="size"||A==="bg-size",$_=(A)=>A==="length",fI=(A)=>A==="number",L_=(A)=>A==="family-name",V_=(A)=>A==="number"||A==="weight",M_=(A)=>A==="shadow";var bI=()=>{let A=k2("color"),Z=k2("font"),J=k2("text"),q=k2("font-weight"),Q=k2("tracking"),z=k2("leading"),G=k2("breakpoint"),X=k2("container"),Y=k2("spacing"),U=k2("radius"),H=k2("shadow"),W=k2("inset-shadow"),B=k2("text-shadow"),K=k2("drop-shadow"),V=k2("blur"),F=k2("perspective"),j=k2("aspect"),$=k2("ease"),L=k2("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[..._(),V0,L0],C=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],N=()=>[V0,L0,Y],D=()=>[H9,"full","auto",...N()],T=()=>[E4,"none","subgrid",V0,L0],h=()=>["auto",{span:["full",E4,V0,L0]},E4,V0,L0],S=()=>[E4,"auto",V0,L0],x=()=>["auto","min","max","fr",V0,L0],f=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...N()],E=()=>[H9,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],u=()=>[X,H9,"screen","full","dvw","lvw","svw","min","max","fit",...N()],v=()=>[H9,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],I=()=>[A,V0,L0],t=()=>[..._(),q_,J_,{position:[V0,L0]}],W0=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q0=()=>["auto","cover","contain",SI,DI,{size:[V0,L0]}],b=()=>[RU,aZ,L5],y=()=>["","none","full",U,V0,L0],m=()=>["",v0,aZ,L5],l=()=>["solid","dashed","dotted","double"],o=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],a=()=>[v0,RU,q_,J_],e=()=>["","none",V,V0,L0],K0=()=>["none",v0,V0,L0],G0=()=>["none",v0,V0,L0],Z0=()=>[v0,V0,L0],F0=()=>[H9,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[MA],breakpoint:[MA],color:[H_],container:[MA],"drop-shadow":[MA],ease:["in","out","in-out"],font:[NI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[MA],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[MA],shadow:[MA],spacing:["px",v0],text:[MA],"text-shadow":[MA],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H9,L0,V0,j]}],container:["container"],"container-type":[{"@container":["","normal","size",V0,L0]}],"container-named":[OI],columns:[{columns:[v0,"auto",L0,V0,X]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[E4,"auto",V0,L0]}],basis:[{basis:[H9,"full","auto",X,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v0,H9,"auto","initial","none",L0]}],grow:[{grow:["",v0,V0,L0]}],shrink:[{shrink:["",v0,V0,L0]}],order:[{order:[E4,"first","last","none",V0,L0]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:h()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:h()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":x()}],"auto-rows":[{"auto-rows":x()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...f(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...f()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":f()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],"inline-size":[{inline:["auto",...u()]}],"min-inline-size":[{"min-inline":["auto",...u()]}],"max-inline-size":[{"max-inline":["none",...u()]}],"block-size":[{block:["auto",...v()]}],"min-block-size":[{"min-block":["auto",...v()]}],"max-block-size":[{"max-block":["none",...v()]}],w:[{w:[X,"screen",...E()]}],"min-w":[{"min-w":[X,"screen","none",...E()]}],"max-w":[{"max-w":[X,"screen","none","prose",{screen:[G]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh","none",...E()]}],"font-size":[{text:["base",J,aZ,L5]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[q,II,TI]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",RU,L0]}],"font-family":[{font:[xI,wI,Z]}],"font-features":[{"font-features":[L0]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[Q,V0,L0]}],"line-clamp":[{"line-clamp":[v0,"none",V0,Z_]}],leading:[{leading:["none",z,...N()]}],"list-image":[{"list-image":["none",V0,L0]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",V0,L0]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...l(),"wavy"]}],"text-decoration-thickness":[{decoration:[v0,"from-font","auto",V0,L5]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[v0,"auto",V0,L0]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"tab-size":[{tab:[E4,V0,L0]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V0,L0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V0,L0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:t()}],"bg-repeat":[{bg:W0()}],"bg-size":[{bg:Q0()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},E4,V0,L0],radial:["",V0,L0],conic:["",E4,V0,L0]},PI,hI]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:b()}],"gradient-via-pos":[{via:b()}],"gradient-to-pos":[{to:b()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:y()}],"rounded-s":[{"rounded-s":y()}],"rounded-e":[{"rounded-e":y()}],"rounded-t":[{"rounded-t":y()}],"rounded-r":[{"rounded-r":y()}],"rounded-b":[{"rounded-b":y()}],"rounded-l":[{"rounded-l":y()}],"rounded-ss":[{"rounded-ss":y()}],"rounded-se":[{"rounded-se":y()}],"rounded-ee":[{"rounded-ee":y()}],"rounded-es":[{"rounded-es":y()}],"rounded-tl":[{"rounded-tl":y()}],"rounded-tr":[{"rounded-tr":y()}],"rounded-br":[{"rounded-br":y()}],"rounded-bl":[{"rounded-bl":y()}],"border-w":[{border:m()}],"border-w-x":[{"border-x":m()}],"border-w-y":[{"border-y":m()}],"border-w-s":[{"border-s":m()}],"border-w-e":[{"border-e":m()}],"border-w-bs":[{"border-bs":m()}],"border-w-be":[{"border-be":m()}],"border-w-t":[{"border-t":m()}],"border-w-r":[{"border-r":m()}],"border-w-b":[{"border-b":m()}],"border-w-l":[{"border-l":m()}],"divide-x":[{"divide-x":m()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":m()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...l(),"hidden","none"]}],"divide-style":[{divide:[...l(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...l(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v0,V0,L0]}],"outline-w":[{outline:["",v0,aZ,L5]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","inner","none",H,Zz,Az]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",W,Zz,Az]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:m()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[v0,L5]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":m()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",B,Zz,Az]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[v0,V0,L0]}],"mix-blend":[{"mix-blend":[...o(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":o()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v0]}],"mask-image-linear-from-pos":[{"mask-linear-from":a()}],"mask-image-linear-to-pos":[{"mask-linear-to":a()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":a()}],"mask-image-t-to-pos":[{"mask-t-to":a()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":a()}],"mask-image-r-to-pos":[{"mask-r-to":a()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":a()}],"mask-image-b-to-pos":[{"mask-b-to":a()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":a()}],"mask-image-l-to-pos":[{"mask-l-to":a()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":a()}],"mask-image-x-to-pos":[{"mask-x-to":a()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":a()}],"mask-image-y-to-pos":[{"mask-y-to":a()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[V0,L0]}],"mask-image-radial-from-pos":[{"mask-radial-from":a()}],"mask-image-radial-to-pos":[{"mask-radial-to":a()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[v0]}],"mask-image-conic-from-pos":[{"mask-conic-from":a()}],"mask-image-conic-to-pos":[{"mask-conic-to":a()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:t()}],"mask-repeat":[{mask:W0()}],"mask-size":[{mask:Q0()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",V0,L0]}],filter:[{filter:["","none",V0,L0]}],blur:[{blur:e()}],brightness:[{brightness:[v0,V0,L0]}],contrast:[{contrast:[v0,V0,L0]}],"drop-shadow":[{"drop-shadow":["","none",K,Zz,Az]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",v0,V0,L0]}],"hue-rotate":[{"hue-rotate":[v0,V0,L0]}],invert:[{invert:["",v0,V0,L0]}],saturate:[{saturate:[v0,V0,L0]}],sepia:[{sepia:["",v0,V0,L0]}],"backdrop-filter":[{"backdrop-filter":["","none",V0,L0]}],"backdrop-blur":[{"backdrop-blur":e()}],"backdrop-brightness":[{"backdrop-brightness":[v0,V0,L0]}],"backdrop-contrast":[{"backdrop-contrast":[v0,V0,L0]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v0,V0,L0]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v0,V0,L0]}],"backdrop-invert":[{"backdrop-invert":["",v0,V0,L0]}],"backdrop-opacity":[{"backdrop-opacity":[v0,V0,L0]}],"backdrop-saturate":[{"backdrop-saturate":[v0,V0,L0]}],"backdrop-sepia":[{"backdrop-sepia":["",v0,V0,L0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",V0,L0]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v0,"initial",V0,L0]}],ease:[{ease:["linear","initial",$,V0,L0]}],delay:[{delay:[v0,V0,L0]}],animate:[{animate:["none",L,V0,L0]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[F,V0,L0]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:K0()}],"rotate-x":[{"rotate-x":K0()}],"rotate-y":[{"rotate-y":K0()}],"rotate-z":[{"rotate-z":K0()}],scale:[{scale:G0()}],"scale-x":[{"scale-x":G0()}],"scale-y":[{"scale-y":G0()}],"scale-z":[{"scale-z":G0()}],"scale-3d":["scale-3d"],skew:[{skew:Z0()}],"skew-x":[{"skew-x":Z0()}],"skew-y":[{"skew-y":Z0()}],transform:[{transform:[V0,L0,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F0()}],"translate-x":[{"translate-x":F0()}],"translate-y":[{"translate-y":F0()}],"translate-z":[{"translate-z":F0()}],"translate-none":["translate-none"],zoom:[{zoom:[E4,V0,L0]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V0,L0]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V0,L0]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[v0,aZ,L5,Z_]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var F_=BI(bI);function T0(...A){return F_(eQ(A))}function __({className:A,orientation:Z="horizontal",...J}){return w($5.Root,{"data-slot":"tabs","data-orientation":Z,className:T0("group/tabs flex gap-2 data-horizontal:flex-col",A),...J})}var RI=U4("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function k_({className:A,variant:Z="default",...J}){return w($5.List,{"data-slot":"tabs-list","data-variant":Z,className:T0(RI({variant:Z}),A),...J})}function j_({className:A,...Z}){return w($5.Tab,{"data-slot":"tabs-trigger",className:T0("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",A),...Z})}function vU({className:A,...Z}){return w($5.Panel,{"data-slot":"tabs-content",className:T0("min-w-0 flex-1 text-sm outline-none",A),...Z})}var c2={};r2(c2,{useToastManager:()=>Ij,createToastManager:()=>fj,Viewport:()=>I_,Title:()=>Ak,Root:()=>r_,Provider:()=>x_,Positioner:()=>hj,Portal:()=>Yk,Description:()=>t_,Content:()=>o_,Close:()=>Zk,Arrow:()=>Sj,Action:()=>qk});var h_=g(p(),1);var Jz=g(p(),1),gU=Jz.createContext(void 0);function v4(){let A=Jz.useContext(gU);if(!A)throw Error(v1(73));return A}var T_=g(p(),1),dU=g(oZ(),1);var B9=g(p(),1),yI=oZ();function EI(A,Z){return A===Z&&(A!==0||1/A===1/Z)||A!==A&&Z!==Z}var vI=typeof Object.is==="function"?Object.is:EI,gI=yI.useSyncExternalStore,uI=B9.useRef,cI=B9.useEffect,mI=B9.useMemo,pI=B9.useDebugValue;var uU=function(A,Z,J,q,Q){var z=uI(null);if(z.current===null){var G={hasValue:!1,value:null};z.current=G}else G=z.current;z=mI(function(){function Y(K){if(!U){if(U=!0,H=K,K=q(K),Q!==void 0&&G.hasValue){var V=G.value;if(Q(V,K))return W=V}return W=K}if(V=W,vI(H,K))return V;var F=q(K);if(Q!==void 0&&Q(V,F))return H=K,V;return H=K,W=F}var U=!1,H,W,B=J===void 0?null:J;return[function(){return Y(Z())},B===null?void 0:function(){return Y(B())}]},[Z,J,q,Q]);var X=gI(A,z[0],z[1]);return cI(function(){G.hasValue=!0,G.value=X},[X]),pI(X),X};var C_=g(p(),1);var cU=[],mU=void 0;function N_(){return mU}function O_(A){cU.push(A)}function pU(A){let Z=(J,q)=>{let Q=F1(dI).current,z;try{mU=Q;for(let G of cU)G.before(Q);z=A(J,q);for(let G of cU)G.after(Q);Q.didInitialize=!0}finally{mU=void 0}return z};return Z.displayName=A.displayName||A.name,Z}function D_(A){return C_.forwardRef(pU(A))}function dI(){return{didInitialize:!1}}var lI=g7(19),iI=lI?oI:aI;function qz(A,Z,J,q,Q){return iI(A,Z,J,q,Q)}function rI(A,Z,J,q,Q){let z=T_.useCallback(()=>Z(A.getSnapshot(),J,q,Q),[A,Z,J,q,Q]);return dU.useSyncExternalStore(A.subscribe,z,z)}O_({before(A){if(A.syncIndex=0,!A.didInitialize)A.syncTick=1,A.syncHooks=[],A.didChangeStore=!0,A.getSnapshot=()=>{let Z=!1;for(let J=0;J<A.syncHooks.length;J+=1){let q=A.syncHooks[J],Q=q.selector(q.store.state,q.a1,q.a2,q.a3);if(!Object.is(q.value,Q))Z=!0,q.value=Q}if(Z)A.syncTick+=1;return A.syncTick}},after(A){if(A.syncHooks.length>0){if(A.didChangeStore)A.didChangeStore=!1,A.subscribe=(Z)=>{let J=new Set;for(let Q of A.syncHooks)J.add(Q.store);let q=[];for(let Q of J)q.push(Q.subscribe(Z));return()=>{for(let Q of q)Q()}};dU.useSyncExternalStore(A.subscribe,A.getSnapshot,A.getSnapshot)}}});function oI(A,Z,J,q,Q){let z=N_();if(!z)return rI(A,Z,J,q,Q);let G=z.syncIndex;z.syncIndex+=1;let X;if(!z.didInitialize)X={store:A,selector:Z,a1:J,a2:q,a3:Q,value:Z(A.getSnapshot(),J,q,Q)},z.syncHooks.push(X);else if(X=z.syncHooks[G],X.store!==A||X.selector!==Z||!Object.is(X.a1,J)||!Object.is(X.a2,q)||!Object.is(X.a3,Q)){if(X.store!==A)z.didChangeStore=!0;X.store=A,X.selector=Z,X.a1=J,X.a2=q,X.a3=Q,X.value=Z(A.getSnapshot(),J,q,Q)}return X.value}function aI(A,Z,J,q,Q){return uU(A.subscribe,A.getSnapshot,A.getSnapshot,(z)=>Z(z,J,q,Q))}class lU{static create(A){return new this(A)}constructor(A){this.state=A,this.listeners=new Set,this.updateTick=0}subscribe=(A)=>{return this.listeners.add(A),()=>{this.listeners.delete(A)}};getSnapshot=()=>{return this.state};setState(A){if(this.state===A)return;this.state=A,this.updateTick+=1;let Z=this.updateTick;for(let J of this.listeners){if(Z!==this.updateTick)return;J(A)}}update(A){for(let Z in A)if(!Object.is(this.state[Z],A[Z])){this.setState({...this.state,...A});return}}set(A,Z){if(!Object.is(this.state[A],Z))this.setState({...this.state,[A]:Z})}notifyAll(){let A={...this.state};this.setState(A)}use(A,Z,J,q){return qz(this,A,Z,J,q)}}var M5=g(p(),1);class FA extends lU{constructor(A,Z={},J){super(A);this.context=Z,this.selectors=J}useSyncedValue(A,Z){M5.useDebugValue(A);let J=this;J0(()=>{if(J.state[A]!==Z)J.set(A,Z)},[J,A,Z])}useSyncedValueWithCleanup(A,Z){let J=this;J0(()=>{if(J.state[A]!==Z)J.set(A,Z);return()=>{J.set(A,void 0)}},[J,A,Z])}useSyncedValues(A){let Z=this,J=Object.values(A);J0(()=>{Z.update(A)},[Z,...J])}useControlledProp(A,Z){M5.useDebugValue(A);let J=this,q=Z!==void 0;J0(()=>{if(q&&!Object.is(J.state[A],Z))J.setState({...J.state,[A]:Z})},[J,A,Z,q])}select(A,Z,J,q){let Q=this.selectors[A];return Q(this.state,Z,J,q)}useState(A,Z,J,q){return M5.useDebugValue(A),qz(this,this.selectors[A],Z,J,q)}useContextCallback(A,Z){M5.useDebugValue(A);let J=X0(Z??B1);this.context[A]=J}useStateSetter(A){let Z=M5.useRef(void 0);if(Z.current===void 0)Z.current=(J)=>{this.set(A,J)};return Z.current}observe(A,Z){let J;if(typeof A==="function")J=A;else J=this.selectors[A];let q=J(this.state);return Z(q,q,this),this.subscribe((Q)=>{let z=J(Q);if(!Object.is(q,z)){let G=q;q=z,Z(z,G,this)}})}}function H4(...A){return()=>{for(let Z=0;Z<A.length;Z+=1){let J=A[Z];if(J)J()}}}function i0(A,Z,J,q){return A.addEventListener(Z,J,q),()=>{A.removeEventListener(Z,J,q)}}var sZ=0;class T6{static create(){return new T6}currentId=sZ;start(A,Z){this.clear(),this.currentId=setTimeout(()=>{this.currentId=sZ,Z()},A)}isStarted(){return this.currentId!==sZ}clear=()=>{if(this.currentId!==sZ)clearTimeout(this.currentId),this.currentId=sZ};disposeEffect=()=>{return this.clear}}function W6(){let A=F1(T6.create).current;return l7(A.disposeEffect),A}var w_=0;function Qz(A){return w_+=1,`${A}-${Math.random().toString(36).slice(2,6)}-${w_}`}function zz(A,Z){if(typeof A==="string")return{description:A};if(typeof A==="function"){let J=A(Z);return typeof J==="string"?{description:J}:J}return A}function iU(A){let Z=new Map,J=0,q=0;return A.forEach((Q,z)=>{let G=Q.transitionStatus==="ending";if(Z.set(Q.id,{value:Q,domIndex:z,visibleIndex:G?-1:J,offsetY:q}),q+=Q.height||0,!G)J+=1}),Z}function rU(A,Z){let J=0;return A.map((q)=>{if(q.transitionStatus==="ending")return q;let Q=J>=Z;return J+=1,q.limited===Q?q:{...q,limited:Q}})}var W4={toasts:(A)=>A.toasts,isEmpty:(A)=>A.toasts.length===0,toast:(A,Z)=>A.toastMetadata.get(Z)?.value,toastIndex:(A,Z)=>A.toastMetadata.get(Z)?.domIndex??-1,toastOffsetY:(A,Z)=>A.toastMetadata.get(Z)?.offsetY??0,toastVisibleIndex:(A,Z)=>A.toastMetadata.get(Z)?.visibleIndex??-1,focused:(A)=>A.focused,expanded:(A)=>A.hovering||A.focused,expandedOrOutOfFocus:(A)=>A.hovering||A.focused||!A.isWindowFocused,prevFocusElement:(A)=>A.prevFocusElement};class oU extends FA{timers=new Map;areTimersPaused=!1;constructor(A){super({...A,toastMetadata:iU(A.toasts)},{},W4)}setViewport=(A)=>{this.set("viewport",A)};syncProviderProps(A,Z){let J=this.state.limit!==Z;if(this.state.timeout===A&&!J)return;let q={timeout:A,limit:Z};if(J){let Q=rU(this.state.toasts,Z);q.toasts=Q,q.toastMetadata=iU(Q)}this.update(q)}disposeEffect=()=>{return()=>{this.timers.forEach((A)=>{A.timeout?.clear()}),this.timers.clear()}};removeToast(A,Z=!1){let J=W4.toastIndex(this.state,A);if(J===-1)return;let q=this.state.toasts[J];if(!Z)q?.onRemove?.();let Q=[...this.state.toasts];Q.splice(J,1),this.setToasts(Q)}addToast=(A)=>{let{timeout:Z,limit:J}=this.state,q=A.id||Qz("toast");if(A.id){let X=W4.toast(this.state,A.id);if(X)if(X.transitionStatus==="ending")this.removeToast(A.id,!0);else{let{id:Y,transitionStatus:U,...H}=A;return this.updateToastInternal(A.id,H,!0,!0),A.id}}let Q={...A,id:q,updateKey:0,transitionStatus:"starting"},z=[Q,...this.state.toasts];this.setToasts(rU(z,J));let G=Q.timeout??Z;if(Q.type!=="loading"&&G>0)this.scheduleTimer(q,G,()=>this.closeToast(q));if(W4.expandedOrOutOfFocus(this.state))this.pauseTimers();return q};updateToast=(A,Z)=>{let J=W4.toast(this.state,A);if(!J||J.transitionStatus==="ending")return;this.updateToastInternal(A,typeof Z==="function"?Z(J):Z,!1,!0)};updateToastInternal=(A,Z,J=!1,q=!1)=>{let{timeout:Q,toasts:z}=this.state,G=W4.toast(this.state,A);if(!G)return;if(G.transitionStatus==="ending")return;let X={...G,...Z,...q&&{updateKey:G.updateKey+1}};this.setToasts(z.map((F)=>F.id===A?X:F));let Y=X.timeout??Q,U=G.timeout??Q,H=Object.hasOwn(Z,"timeout"),W=X.transitionStatus!=="ending"&&X.type!=="loading"&&Y>0,B=this.timers.has(A),K=U!==Y,V=G.type==="loading";if(!W&&B){this.clearTimer(A);return}if(W&&(!B||K||H||V||J)){if(this.clearTimer(A),this.scheduleTimer(A,Y,()=>this.closeToast(A)),W4.expandedOrOutOfFocus(this.state))this.pauseTimers()}};closeToast=(A)=>{let Z=A===void 0,{limit:J,toasts:q}=this.state,Q;if(Z)Q=q,this.clearTimers();else{let X=W4.toast(this.state,A);if(!X)return;Q=[X],this.clearTimer(A)}let z=q.map((X)=>Z||X.id===A?{...X,transitionStatus:"ending",height:0}:X),G=rU(z,J);this.setToasts(G,!G.some((X)=>X.transitionStatus!=="ending")),Q.forEach((X)=>{if(X.transitionStatus!=="ending")X.onClose?.()}),this.handleFocusManagement(A)};promiseToast=(A,Z)=>{let J=zz(Z.loading),q=this.addToast({...J,type:"loading"}),Q=A.then((z)=>{let G=zz(Z.success,z);return this.updateToast(q,{...G,type:"success",timeout:G.timeout}),z}).catch((z)=>{let G=zz(Z.error,z);return this.updateToast(q,{...G,type:"error",timeout:G.timeout}),Promise.reject(z)});if({}.hasOwnProperty.call(Z,"setPromise"))Z.setPromise(Q);return Q};pauseTimers(){if(this.areTimersPaused)return;this.areTimersPaused=!0,this.timers.forEach((A)=>{if(A.timeout)A.timeout.clear(),A.remaining=Math.max(A.remaining-(Date.now()-A.start),0)})}resumeTimers(){if(!this.areTimersPaused)return;this.areTimersPaused=!1,this.timers.forEach((A,Z)=>{A.remaining=A.remaining>0?A.remaining:A.delay,A.timeout??=T6.create(),A.timeout.start(A.remaining,()=>{this.handleTimerFired(Z),A.callback()}),A.start=Date.now()})}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=(A)=>{if(A.pointerType!=="touch")return;let Z=D1(A);if(I0(this.state.viewport,Z))return;this.resumeTimers(),this.update({hovering:!1,focused:!1})};scheduleTimer(A,Z,J){let q=Date.now(),z=!W4.expandedOrOutOfFocus(this.state)?T6.create():void 0;z?.start(Z,()=>{this.handleTimerFired(A),J()}),this.timers.set(A,{timeout:z,start:q,delay:Z,remaining:Z,callback:J})}clearTimers(){this.timers.forEach((A)=>{A.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(A){this.timers.get(A)?.timeout?.clear(),this.timers.delete(A),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(A){this.timers.delete(A),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){if(this.timers.size===0)this.areTimersPaused=!1}setToasts(A,Z=A.length===0){let J={toasts:A,toastMetadata:iU(A)};if(Z)J.hovering=!1,J.focused=!1;this.update(J)}handleFocusManagement(A){let Z=a1(y0(this.state.viewport));if(!this.state.viewport||!I0(this.state.viewport,Z)||!m7(Z))return;if(A===void 0){this.restoreFocusToPrevElement();return}let J=W4.toasts(this.state),q=W4.toastIndex(this.state,A),Q=(G,X)=>{for(let Y=G;Y>=0&&Y<J.length;Y+=X)if(J[Y].transitionStatus!=="ending")return J[Y];return null},z=Q(q+1,1)??Q(q-1,-1);if(z)z.ref?.current?.focus();else this.restoreFocusToPrevElement()}}var x_=function(Z){let{children:J,timeout:q=5000,limit:Q=3,toastManager:z}=Z,G=F1(()=>new oU({timeout:q,limit:Q,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return l7(G.disposeEffect),h_.useEffect(function(){if(!z)return;return z[" subscribe"](({action:U,options:H})=>{let W=H.id;if(U==="promise"&&H.promise)G.promiseToast(H.promise,H);else if(U==="update"&&W)G.updateToast(W,H.updates);else if(U==="close")G.closeToast(W);else G.addToast(H)})},[G,z]),Y0(gU.Provider,{value:G,children:[w(sI,{store:G,timeout:q,limit:Q}),J]})};function sI(A){let{store:Z,timeout:J,limit:q}=A;return J0(()=>{Z.syncProviderProps(J,q)},[Z,J,q]),null}var r6=g(p(),1);var S_={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Gz={...S_,position:"fixed",top:0,left:0},rQ2={...S_,position:"absolute"};var Xz=g(p(),1);var K9=Xz.forwardRef(function(Z,J){let[q,Q]=Xz.useState();return J0(()=>{if(z2.screenReader.voiceOver&&z2.engine.webkit)Q("button")},[]),w("span",{...Z,ref:J,style:Gz,"aria-hidden":q?void 0:!0,...{tabIndex:0,role:q},"data-base-ui-focus-guard":""})});var P_="--toast-frontmost-height";var I_=r6.forwardRef(function(Z,J){let{render:q,className:Q,style:z,children:G,...X}=Z,Y=v4(),U=W6(),H=r6.useRef(!1),W=r6.useRef(!1),B=r6.useRef(!1),K=Y.useState("isEmpty"),V=Y.useState("toasts"),F=Y.useState("focused"),j=Y.useState("expanded"),$=Y.useState("prevFocusElement"),L=V[0]?.height,M=V.some((v)=>v.transitionStatus==="ending"),_=V.filter((v)=>v.priority==="high");r6.useEffect(()=>{let v=Y.state.viewport;if(!v||K)return;let I=q1(v),t=y0(v);function W0(y){if(y.key==="F6"&&D1(y)!==v)y.preventDefault(),Y.set("prevFocusElement",a1(t)),v?.focus({preventScroll:!0}),Y.pauseTimers(),Y.set("focused",!0)}function Q0(y){if(D1(y)!==I)return;Y.set("isWindowFocused",!1),Y.pauseTimers()}function b(y){if(y.relatedTarget)return;let m=D1(y),l=a1(y0(v));if(m===I||!I0(v,m)||!m7(l))Y.resumeTimers();U.start(0,()=>Y.set("isWindowFocused",!0))}return H4(i0(I,"keydown",W0),i0(I,"blur",Q0,!0),i0(I,"focus",b,!0),i0(t,"pointerdown",Y.handleDocumentPointerDown,!0))},[Y,U,K]);function k(v){H.current=!0;let I=v.relatedTarget===Y.state.viewport?V.find((t)=>t.transitionStatus!=="ending"&&!t.limited):void 0;if(I)I.ref?.current?.focus();else Y.restoreFocusToPrevElement()}function C(v){if(v.key==="Tab"&&v.shiftKey&&D1(v.nativeEvent)===Y.state.viewport)v.preventDefault(),Y.restoreFocusToPrevElement()}function O(){if(Y.state.toasts.some((I)=>I.transitionStatus==="ending")||B.current||!W.current)return;if(Y.state.isWindowFocused)Y.resumeTimers();Y.set("hovering",!1),W.current=!1}r6.useEffect(O,[M,Y]);function N(){Y.pauseTimers(),Y.set("hovering",!0),W.current=!1}function D(){if(Y.state.isWindowFocused)Y.resumeTimers()}function T(){W.current=!0,O()}function h(v){if(v.pointerType==="touch")B.current=!0}function S(v){if(v.pointerType!=="touch")return;B.current=!1,O()}function x(){if(H.current){H.current=!1;return}if(F)return;if(m7(a1(y0(Y.state.viewport))))Y.set("focused",!0),Y.pauseTimers()}function f(v){if(!F||I0(Y.state.viewport,v.relatedTarget))return;Y.set("focused",!1),D()}let R={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:N,onMouseMove:N,onMouseLeave:T,onFocus:x,onBlur:f,onKeyDown:C,onClick:x,onPointerDown:h,onPointerUp:S,onPointerCancel:S,style:{[P_]:L?`${L}px`:void 0}},P={expanded:j},E=!K&&$&&w(K9,{onFocus:k}),u=O0("div",Z,{ref:[J,Y.setViewport],state:P,props:[R,X,{children:Y0(r6.Fragment,{children:[E,G,E]})}]});return Y0(r6.Fragment,{children:[E,u,!F&&_.length>0&&w("div",{style:Gz,children:_.map((v)=>Y0("div",{role:"alert","aria-atomic":!0,children:[w("div",{children:v.title}),w("div",{children:v.description})]},v.id))})]})});var P1=g(p(),1),i_=g(l4(),1);var Yz=g(p(),1),aU=Yz.createContext(void 0);function $9(){let A=Yz.useContext(aU);if(!A)throw Error(v1(66));return A}var f_={style:{transition:"none"}},Uz="data-base-ui-click-trigger";var b_="[data-base-ui-swipe-ignore]",R_="[data-swipe-ignore]";var y_={fallbackAxisSide:"end"},E_={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Hz=g(p(),1);function Wz(A,Z,J){switch(A){case"up":return-J;case"down":return J;case"left":return-Z;case"right":return Z;default:return 0}}var Bz="--toast-index",v_="--toast-offset-y",g_="--toast-height",u_="--toast-swipe-movement-x",c_="--toast-swipe-movement-y";var p_="data-swipe-direction",Mz2=I4.startingStyle,Fz2=I4.endingStyle;var eI={...f4,swipeDirection(A){return A?{[p_]:A}:null}},d_=40,Af=10,l_=0.5,Zf=1,Jf=`${b_},${R_}`,r_=P1.forwardRef(function(Z,J){let{toast:q,render:Q,className:z,swipeDirection:G=["down","right"],style:X,...Y}=Z,U=q.positionerProps?.anchor!==void 0,H=[];if(!U)H=Array.isArray(G)?G:[G];let W=H.length>0,B=v4(),[K,V]=P1.useState(void 0),[F,j]=P1.useState(!1),[$,L]=P1.useState(!1),[M,_]=P1.useState({x:0,y:0}),[k,C]=P1.useState({x:0,y:0,scale:1}),[O,N]=P1.useState(),[D,T]=P1.useState(),[h,S]=P1.useState(null),x=P1.useRef(null),f=P1.useRef(void 0),R=P1.useRef({x:0,y:0}),P=P1.useRef({x:0,y:0,scale:1}),E=P1.useRef(void 0),u=P1.useRef(0),v=P1.useRef(!1),I=P1.useRef({x:0,y:0}),t=P1.useRef(!1),W0=P1.useRef({x:0,y:0}),Q0=P1.useRef(null),b=P1.useRef(null),y=B.useState("toastIndex",q.id),m=B.useState("toastVisibleIndex",q.id),l=B.useState("toastOffsetY",q.id),o=B.useState("focused"),a=B.useState("expanded");y4({open:q.transitionStatus!=="ending",ref:x,onComplete(){if(q.transitionStatus==="ending")B.removeToast(q.id)}});let e=X0((A0=!1)=>{let M0=x.current;if(!M0)return;let $0=M0.style.height;M0.style.height="auto";let n=M0.offsetHeight;M0.style.height=$0;function s(){B.updateToastInternal(q.id,{ref:x,height:n,transitionStatus:void 0})}if(A0)i_.flushSync(s);else s()});J0(()=>{let A0=f.current;if(q.transitionStatus!=="starting"&&A0===q.id)return;if(A0!==void 0)V(void 0),C({x:0,y:0,scale:1}),K0({x:0,y:0});f.current=q.id,e()},[e,q.id,q.transitionStatus]);function K0(A0){W0.current=A0,_(A0)}J0(()=>{return()=>{b.current?.abort()}},[]);function G0(A0,M0){let $0=(z0)=>z0>0?z0**l_:-(Math.abs(z0)**l_),n=A0>0&&!H.includes("right")||A0<0&&!H.includes("left"),s=M0>0&&!H.includes("down")||M0<0&&!H.includes("up");return{x:n?$0(A0):A0,y:s?$0(M0):M0}}let Z0=X0((A0)=>{if(A0.pointerId!==Q0.current)return;Q0.current=null,b.current?.abort(),b.current=null,j(!1),L(!1),S(null);let M0=P.current;if(A0.type==="pointercancel"||v.current){K0({x:M0.x,y:M0.y}),V(void 0);return}let $0=W0.current,n=$0.x-M0.x,s=$0.y-M0.y,z0;for(let d of H)if(Wz(d,n,s)>d_){z0=d;break}if(z0)V(z0),B.closeToast(q.id);else K0({x:M0.x,y:M0.y}),V(void 0)});function F0(A0){if(A0.button!==0)return;if(A0.pointerType==="touch")B.pauseTimers();if(D1(A0.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${Jf}`))return;v.current=!1,E.current=void 0,u.current=0,Q0.current=A0.pointerId,R.current={x:A0.clientX,y:A0.clientY},I.current=R.current;let n=A0.currentTarget,s=vQ(n);P.current=s,C(s),K0({x:s.x,y:s.y}),B.set("hovering",!0),j(!0),L(!1),S(null),t.current=!0,b.current?.abort();let z0=new AbortController;b.current=z0;let d=y0(n);d.addEventListener("pointerup",Z0,{signal:z0.signal}),d.addEventListener("pointercancel",Z0,{signal:z0.signal}),n.setPointerCapture?.(A0.pointerId)}function k0(A0){if(A0.pointerId!==Q0.current)return;if(A0.preventDefault(),t.current)R.current={x:A0.clientX,y:A0.clientY},t.current=!1;let{clientY:M0,clientX:$0,movementX:n,movementY:s}=A0;if(s<0&&M0>I.current.y||s>0&&M0<I.current.y)I.current={x:I.current.x,y:M0};if(n<0&&$0>I.current.x||n>0&&$0<I.current.x)I.current={x:$0,y:I.current.y};let z0=$0-R.current.x,d=M0-R.current.y,f1=M0-I.current.y,w0=$0-I.current.x,X1=h;if(!$){if(Math.sqrt(z0*z0+d*d)>=Zf){L(!0);let U2=H.includes("left")||H.includes("right"),Y1=H.includes("up")||H.includes("down");if(U2&&Y1){let N0=Math.abs(z0),A1=Math.abs(d);X1=N0>A1?"horizontal":"vertical",S(X1)}}}let C0;if(!E.current){if(X1==="vertical"){if(d>0)C0="down";else if(d<0)C0="up"}else if(X1==="horizontal"){if(z0>0)C0="right";else if(z0<0)C0="left"}else if(Math.abs(z0)>=Math.abs(d))C0=z0>0?"right":"left";else C0=d>0?"down":"up";if(C0&&H.includes(C0))E.current=C0,u.current=Wz(C0,z0,d),V(C0)}else{let O2=E.current,U2=Wz(O2,w0,f1);if(U2>d_)v.current=!1,V(O2);else if(!(H.includes("left")&&H.includes("right"))&&!(H.includes("up")&&H.includes("down"))&&u.current-U2>=Af)v.current=!0}let m0=G0(z0,d),$1=P.current.x,J1=P.current.y,b1=H.includes("left")||H.includes("right"),w1=H.includes("up")||H.includes("down");if(X1!=="vertical"&&b1)$1+=m0.x;if(X1!=="horizontal"&&w1)J1+=m0.y;K0({x:$1,y:J1})}function j0(A0){if(A0.key==="Escape"){if(!x.current||!I0(x.current,a1(y0(x.current))))return;B.closeToast(q.id)}}P1.useEffect(()=>{let A0=x.current;if(!W||!A0)return;function M0($0){if(Q0.current===null||!I0(A0,D1($0)))return;$0.preventDefault()}return i0(A0,"touchmove",M0,{passive:!1})},[W]);function B0(){let A0=M.x-k.x,M0=M.y-k.y;return{transition:F?"none":void 0,transform:F?`translateX(${M.x}px) translateY(${M.y}px) scale(${k.scale})`:void 0,[u_]:`${A0}px`,[c_]:`${M0}px`}}let h0=q.priority==="high",H0={role:h0?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":O,"aria-describedby":D,"aria-hidden":h0&&!o?!0:void 0,onPointerDown:W?F0:void 0,onPointerMove:W?k0:void 0,onPointerUp:W?Z0:void 0,onPointerCancel:W?Z0:void 0,onKeyDown:j0,inert:d7(q.limited),style:{...B0(),[Bz]:q.transitionStatus==="ending"?y:m,[v_]:`${l}px`,[g_]:q.height?`${q.height}px`:void 0}},D0=P1.useMemo(()=>({toast:q,setTitleId:N,setDescriptionId:T,recalculateHeight:e,visibleIndex:m,expanded:a}),[q,N,T,e,m,a]),x0={transitionStatus:q.transitionStatus,expanded:a,limited:q.limited||!1,type:q.type,swiping:F,swipeDirection:K},b0=O0("div",Z,{ref:[J,x],state:x0,stateAttributesMapping:eI,props:[H0,Y]});return w(aU.Provider,{value:D0,children:b0})});var Kz=g(p(),1);var o_=Kz.forwardRef(function(Z,J){let{render:q,className:Q,style:z,...G}=Z,{visibleIndex:X,expanded:Y,recalculateHeight:U}=$9(),H=Kz.useRef(null);J0(()=>{U();let K=H.current;if(!K||typeof ResizeObserver!=="function"||typeof MutationObserver!=="function")return;let V=new ResizeObserver(()=>U(!0)),F=new MutationObserver(()=>U(!0));return V.observe(K),F.observe(K,{childList:!0,subtree:!0,characterData:!0}),()=>{V.disconnect(),F.disconnect()}},[U]);let W=X>0;return O0("div",Z,{ref:[J,H],state:{expanded:Y,behind:W},props:G})});var n_=g(p(),1);var a_=g(p(),1);function s_(A){if(A==null||typeof A==="boolean"||A==="")return!1;if(Array.isArray(A))return A.some(s_);return!0}function $z(A){return a_.isValidElement(A)&&s_(A.props.children)}function Lz(A,Z,J){let{toast:q,setTitleId:Q,setDescriptionId:z}=$9(),G=J==="title"?Q:z,X=Z??(J==="title"?q.title:q.description);return{id:P4(A),children:X,type:q.type,setId:G}}function Vz(A,Z,J){let q=$z(A);return J0(()=>{if(!q)return;return J(Z),()=>{J((Q)=>Q===Z?void 0:Q)}},[q,Z,J]),q?A:null}var t_=n_.forwardRef(function(Z,J){let{render:q,className:Q,style:z,id:G,children:X,...Y}=Z,{id:U,children:H,type:W,setId:B}=Lz(G,X,"description"),V=O0("p",Z,{ref:J,state:{type:W},props:{...Y,id:U,children:H}});return Vz(V,U,B)});var e_=g(p(),1);var Ak=e_.forwardRef(function(Z,J){let{render:q,className:Q,style:z,id:G,children:X,...Y}=Z,{id:U,children:H,type:W,setId:B}=Lz(G,X,"title"),V=O0("h2",Z,{ref:J,state:{type:W},props:{...Y,id:U,children:H}});return Vz(V,U,B)});var Mz=g(p(),1);var Zk=Mz.forwardRef(function(Z,J){let{render:q,className:Q,style:z,disabled:G,nativeButton:X=!0,...Y}=Z,U=v4(),{toast:H,expanded:W}=$9(),[B,K]=Mz.useState(!1),{getButtonProps:V,buttonRef:F}=D6({disabled:G,native:X}),j={type:H.type};return O0("button",Z,{ref:[J,F],state:j,props:[{"aria-hidden":!W&&!B,onClick(){U.closeToast(H.id)},onFocus(){K(!0)},onBlur(){K(!1)}},Y,V]})});var Jk=g(p(),1);var qk=Jk.forwardRef(function(Z,J){let{render:q,className:Q,style:z,disabled:G,nativeButton:X=!0,...Y}=Z,{toast:U}=$9(),H=U.actionProps?.children??Y.children,{getButtonProps:W,buttonRef:B}=D6({disabled:G,native:X}),K={type:U.type},V=O0("button",Z,{ref:[J,B],state:K,props:[Y,U.actionProps,W,{children:H}]});return $z(V)?V:null});var Xk=g(p(),1);var _z=g(p(),1),zk=g(l4(),1);var d1=g(p(),1),sU=g(l4(),1);function F5(A){return`data-base-ui-${A}`}var Qk=d1.createContext(null),nU=()=>d1.useContext(Qk),qf=F5("portal");function Fz(A={}){let{ref:Z,container:J,componentProps:q=_1,elementProps:Q}=A,z=P4(),X=nU()?.portalNode,[Y,U]=d1.useState(null),[H,W]=d1.useState(null),B=X0((j)=>{if(j!==null)W(j)}),K=d1.useRef(null);J0(()=>{if(J===null){if(K.current)K.current=null,W(null),U(null);return}let j=(J&&(LQ(J)?J:J.current))??X??document.body;if(j==null){if(K.current)K.current=null,W(null),U(null);return}if(K.current!==j)K.current=j,W(null),U(j)},[J,X]);let V=O0("div",q,{ref:[Z,B],props:[{id:z,[qf]:""},Q]}),F=Y&&V?sU.createPortal(V,Y):null;return{node:H,nodeId:d1.isValidElement(V)?V.props.id:void 0,subtree:F}}var tU=d1.forwardRef(function(Z,J){let{render:q,className:Q,style:z,children:G,container:X,portalOwnerRole:Y,...U}=Z,{node:H,nodeId:W,subtree:B}=Fz({container:X,ref:J,componentProps:Z,elementProps:U}),K=d1.useRef(null),V=d1.useRef(null),F=d1.useRef(null),j=d1.useRef(null),[$,L]=d1.useState(null),M=d1.useRef(!1),_=$?.modal,k=$?.open,C=!!$&&!$.modal&&$.open&&!!H;d1.useEffect(()=>{if(!H||_)return;function N(D){if(H&&D.relatedTarget&&B5(D))if(D.type==="focusin"){if(M.current)hU(H),M.current=!1}else FF(H),M.current=!0}return H4(i0(H,"focusin",N,!0),i0(H,"focusout",N,!0))},[H,_]),J0(()=>{if(!H||k!==!0||!M.current)return;hU(H),M.current=!1},[k,H]);let O=d1.useMemo(()=>({beforeOutsideRef:K,afterOutsideRef:V,beforeInsideRef:F,afterInsideRef:j,portalNode:H,setFocusManagerState:L}),[H]);return Y0(d1.Fragment,{children:[B,Y0(Qk.Provider,{value:O,children:[C&&H&&w(K9,{"data-type":"outside",ref:K,onFocus:(N)=>{if(B5(N,H))F.current?.focus();else{let D=$?$.domReference:null;RQ(D)?.focus()}}}),C&&H&&w("span",{role:Y,"aria-owns":W,style:E_}),H&&sU.createPortal(G,H),C&&H&&w(K9,{"data-type":"outside",ref:V,onFocus:(N)=>{if(B5(N,H))j.current?.focus();else{let D=$?$.domReference:null;if(bQ(D)?.focus(),$?.closeOnFocusOut)$?.onOpenChange(!1,y1(e0.focusOut,N.nativeEvent))}}})]})]})});var Gk=_z.forwardRef(function(Z,J){let{children:q,container:Q,className:z,render:G,style:X,...Y}=Z,{node:U,subtree:H}=Fz({container:Q,ref:J,componentProps:Z,elementProps:Y});if(!H&&!U)return null;return Y0(_z.Fragment,{children:[H,U&&zk.createPortal(q,U)]})});var Yk=Xk.forwardRef(function(Z,J){return w(Gk,{ref:J,...Z})});var hz=g(p(),1);var w6=g(p(),1);function g4(A){let Z=F1(Qf,A).current;return Z.next=A,J0(Z.effect),Z}function Qf(A){let Z={current:A,next:A,effect:()=>{Z.current=Z.next}};return Z}var g2=g(p(),1);var kz=0;function jz(A,Z={}){let{preventScroll:J=!1,sync:q=!1,shouldFocus:Q}=Z;cancelAnimationFrame(kz);function z(){if(Q&&!Q())return;A?.focus({preventScroll:J})}if(q)return z(),B1;let G=requestAnimationFrame(z);return kz=G,()=>{if(kz===G)cancelAnimationFrame(G),kz=0}}var eU={inert:new WeakMap,"aria-hidden":new WeakMap},Uk="data-base-ui-inert",ZH={inert:new WeakSet,"aria-hidden":new WeakSet},nZ=new WeakMap,AH=0;function zf(A){return ZH[A]}function Kk(A){if(!A)return null;return x4(A)?A.host:Kk(A.parentNode)}var Hk=(A,Z)=>Z.map((J)=>{if(A.contains(J))return J;let q=Kk(J);if(A.contains(q))return q;return null}).filter((J)=>J!=null),Wk=(A)=>{let Z=new Set;return A.forEach((J)=>{let q=J;while(q&&!Z.has(q))Z.add(q),q=q.parentNode}),Z},Bk=(A,Z,J)=>{let q=[],Q=(z)=>{if(!z||J.has(z))return;Array.from(z.children).forEach((G)=>{if(Q2(G)==="script")return;if(Z.has(G))Q(G);else q.push(G)})};return Q(A),q};function Gf(A,Z,J,q,{mark:Q=!0}){let z=null;if(q)z="inert";else if(J)z="aria-hidden";let G=null,X=null,Y=Hk(Z,A),U=Q?Bk(Z,Wk(Y),new Set(Y)):[],H=[],W=[];if(z){let B=eU[z],K=zf(z);X=K,G=B;let V=Hk(Z,Array.from(Z.querySelectorAll("[aria-live]"))),F=Y.concat(V);Bk(Z,Wk(F),new Set(F)).forEach(($)=>{let L=$.getAttribute(z),M=L!==null&&L!=="false",_=(B.get($)||0)+1;if(B.set($,_),H.push($),_===1&&M)K.add($);if(!M)$.setAttribute(z,z==="inert"?"":"true")})}if(Q)U.forEach((B)=>{let K=(nZ.get(B)||0)+1;if(nZ.set(B,K),W.push(B),K===1)B.setAttribute(Uk,"")});return AH+=1,()=>{if(G)H.forEach((B)=>{let V=(G.get(B)||0)-1;if(G.set(B,V),!V){if(!X?.has(B)&&z)B.removeAttribute(z);X?.delete(B)}});if(Q)W.forEach((B)=>{let K=(nZ.get(B)||0)-1;if(nZ.set(B,K),!K)B.removeAttribute(Uk)});if(AH-=1,!AH)eU.inert=new WeakMap,eU["aria-hidden"]=new WeakMap,ZH.inert=new WeakSet,ZH["aria-hidden"]=new WeakSet,nZ=new WeakMap}}function JH(A,Z={}){let{ariaHidden:J=!1,inert:q=!1,mark:Q=!0}=Z,z=y0(A[0]).body;return Gf(A,z,J,q,{mark:Q})}var _5=g(p(),1);function $k(){let A=new Map;return{emit(Z,J){A.get(Z)?.forEach((q)=>q(J))},on(Z,J){if(!A.has(Z))A.set(Z,new Set);A.get(Z).add(J)},off(Z,J){A.get(Z)?.delete(J)}}}var Xf=_5.createContext(null),Yf=_5.createContext(null),Cz=()=>_5.useContext(Xf)?.id||null,r7=(A)=>{let Z=_5.useContext(Yf);return A??Z};function Uf(A,Z){let J=q1(D1(A));if(A instanceof J.KeyboardEvent)return"keyboard";if(A instanceof J.FocusEvent)return Z||"keyboard";if("pointerType"in A)return A.pointerType||"keyboard";if("touches"in A)return"touch";if(A instanceof J.MouseEvent)return Z||(A.detail===0?"keyboard":"mouse");return""}var Lk=20,L9=[];function qH(){L9=L9.filter((A)=>{return A.deref()?.isConnected})}function Vk(A){if(qH(),A&&Q2(A)!=="body"){if(L9.push(new WeakRef(A)),L9.length>Lk)L9=L9.slice(-Lk)}}function Mk(){return qH(),L9[L9.length-1]?.deref()}function Hf(A){if(!A)return null;if(fQ(A))return A;return rZ(A)[0]||A}function Fk(A){if(A.hasAttribute("tabindex")&&!A.hasAttribute("data-tabindex"))return;if(!A.getAttribute("role")?.includes("dialog"))return;let J=wU(A).filter((Q)=>{let z=Q.getAttribute("data-tabindex")||"";return fQ(Q)||Q.hasAttribute("data-tabindex")&&!z.startsWith("-")}),q=A.getAttribute("tabindex");if(J.length===0){if(q!=="0")A.setAttribute("tabindex","0"),A.setAttribute("data-tabindex","0")}else if(q!=="-1"||A.hasAttribute("data-tabindex")&&A.getAttribute("data-tabindex")!=="-1")A.setAttribute("tabindex","-1"),A.setAttribute("data-tabindex","-1")}function QH(A){let{context:Z,children:J,disabled:q=!1,initialFocus:Q=!0,returnFocus:z=!0,restoreFocus:G=!1,modal:X=!0,closeOnFocusOut:Y=!0,openInteractionType:U="",nextFocusableElement:H,previousFocusableElement:W,beforeContentFocusGuardRef:B,externalTree:K,getInsideElements:V}=A,F="rootStore"in Z?Z.rootStore:Z,j=F.useState("open"),$=F.useState("domReferenceElement"),L=F.useState("floatingElement"),{events:M,dataRef:_}=F.context,k=X0(()=>_.current.floatingContext?.nodeId),C=Q===!1,O=_U($)&&C,N=g4(Q),D=g4(z),T=g4(U),h=g4(j),S=r7(K),x=nU(),f=g2.useRef(!1),R=g2.useRef(!1),P=g2.useRef(!1),E=g2.useRef(null),u=g2.useRef(""),v=g2.useRef(""),I=g2.useRef(null),t=g2.useRef(null),W0=w4(I,B,x?.beforeInsideRef),Q0=w4(t,x?.afterInsideRef),b=W6(),y=W6(),m=i7(),l=x!=null,o=kU(L),a=X0((G0=o)=>{return G0?rZ(G0):[]}),e=X0(()=>V?.().filter((G0)=>G0!=null)??[]);g2.useEffect(()=>{if(q||!X)return;function G0(F0){if(F0.key==="Tab"){if(I0(o,a1(y0(o)))&&a().length===0&&!O)CU(F0)}}let Z0=y0(o);return i0(Z0,"keydown",G0)},[q,o,X,O,a]),g2.useEffect(()=>{if(q||!j)return;let G0=y0(o);function Z0(){P.current=!1}function F0(j0){let B0=D1(j0),h0=e(),H0=I0(L,B0)||I0($,B0)||I0(x?.portalNode,B0)||h0.some((D0)=>D0===B0||I0(D0,B0));if(P.current=!H0,v.current=j0.pointerType||"keyboard",B0?.closest(`[${Uz}]`))R.current=!0,y.start(0,()=>{R.current=!1})}function k0(){v.current="keyboard"}return H4(i0(G0,"pointerdown",F0,!0),i0(G0,"pointerup",Z0,!0),i0(G0,"pointercancel",Z0,!0),i0(G0,"keydown",k0,!0),Z0)},[q,L,$,o,j,x,y,e]),g2.useEffect(()=>{if(q||!Y)return;let G0=y0(o);function Z0(){R.current=!0,y.start(0,()=>{R.current=!1})}function F0(h0){let H0=D1(h0);if(fQ(H0))E.current=H0}function k0(h0){let{relatedTarget:H0,currentTarget:D0}=h0,x0=D1(h0);if(X&&H0==null&&x0!=null&&I0(L,x0))Vk(x0);queueMicrotask(()=>{let b0=k(),A0=F.context.triggerElements,M0=e(),$0=H0?.hasAttribute(F5("focus-guard"))&&[I.current,t.current,x?.beforeInsideRef.current,x?.afterInsideRef.current,x?.beforeOutsideRef.current,x?.afterOutsideRef.current,X4(W),X4(H)].includes(H0),n=!(I0($,H0)||I0(L,H0)||I0(H0,L)||I0(x?.portalNode,H0)||M0.some((s)=>s===H0||I0(s,H0))||A0.hasMatchingElement((s)=>I0(s,H0))||$0||S&&(Y5(S.nodesRef.current,b0).find((s)=>I0(s.context?.elements.floating,H0)||I0(s.context?.elements.domReference,H0))||jU(S.nodesRef.current,b0).find((s)=>[s.context?.elements.floating,kU(s.context?.elements.floating)].includes(H0)||s.context?.elements.domReference===H0)));if(D0===$&&o)Fk(o);if(G&&D0!==$&&!iZ(x0)&&a1(G0)===G0.body){if(l0(o)){if(o.focus(),G==="popup"){m.request(()=>{o.focus()});return}}let s=a(),z0=E.current,d=(z0&&s.includes(z0)?z0:null)||s[s.length-1]||o;if(l0(d))d.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}if((O?!0:!X)&&H0&&n&&!R.current&&(O||H0!==Mk()))f.current=!0,F.setOpen(!1,y1(e0.focusOut,h0))})}function j0(){if(P.current)return;_.current.insideReactTree=!0,b.start(0,()=>{_.current.insideReactTree=!1})}let B0=l0($)?$:null;if(!L&&!B0)return;return H4(B0&&i0(B0,"focusout",k0),B0&&i0(B0,"pointerdown",Z0),L&&i0(L,"focusin",F0),L&&i0(L,"focusout",k0),L&&x&&i0(L,"focusout",j0,!0))},[q,$,L,o,X,S,x,F,Y,G,a,O,k,_,b,y,m,H,W,e]),g2.useEffect(()=>{if(q||!L||!j)return;let G0=Array.from(x?.portalNode?.querySelectorAll(`[${F5("portal")}]`)||[]),F0=(S?jU(S.nodesRef.current,k()):[]).find((D0)=>_U(D0.context?.elements.domReference||null))?.context?.elements.domReference,j0=[...[L,...G0,I.current,t.current,x?.beforeOutsideRef.current,x?.afterOutsideRef.current,...e()],F0,X4(W),X4(H),O?$:null].filter((D0)=>D0!=null),B0=JH(j0,{ariaHidden:X||O,mark:!1}),h0=[L,...G0].filter((D0)=>D0!=null),H0=JH(h0);return()=>{H0(),B0()}},[j,q,$,L,X,x,O,S,k,H,W,e]),J0(()=>{if(!j||q||!l0(o))return;u.current="",v.current="";let G0=y0(o),Z0=a1(G0);queueMicrotask(()=>{let F0=N.current,k0=typeof F0==="function"?F0(T.current||""):F0;if(k0===void 0||k0===!1)return;if(I0(o,Z0))return;let B0=null,h0=()=>{if(B0==null)B0=a(o);return B0[0]||o},H0;if(k0===!0||k0===null)H0=h0();else H0=X4(k0);H0=H0||h0();let D0=I0(o,a1(G0));jz(H0,{preventScroll:H0===o,shouldFocus(){if(!h.current)return!1;if(D0)return!0;let x0=a1(G0);return!(x0!==H0&&I0(o,x0))}})})},[q,j,o,a,N,T,h]),J0(()=>{if(q||!o)return;let G0=y0(o),Z0=a1(G0),F0=T.current==null;Vk(Z0);function k0(B0){if(!B0.open)u.current=Uf(B0.nativeEvent,v.current);if(B0.reason===e0.triggerHover&&B0.nativeEvent.type==="mouseleave")f.current=!0;if(B0.reason!==e0.outsidePress)return;if(B0.nested)f.current=!1;else if(TQ(B0.nativeEvent)||wQ(B0.nativeEvent))f.current=!1;else{let h0=!1;if(y0(o).createElement("div").focus({get preventScroll(){return h0=!0,!1}}),h0)f.current=!1;else f.current=!0}}M.on("openchange",k0);function j0(B0){let h0=D.current,H0=typeof h0==="function"?h0(B0):h0;if(H0===void 0||H0===!1)return null;if(H0===null)H0=!0;let D0=$?.isConnected?$:null,x0=Z0?.isConnected&&Q2(Z0)!=="body"?Z0:null,b0=F0?x0||D0:D0||x0;if(!b0)b0=Mk()||null;if(typeof H0==="boolean")return b0;return X4(H0)||b0||null}return()=>{M.off("openchange",k0);let B0=a1(G0),h0=e(),H0=I0(L,B0)||h0.some((A0)=>A0===B0||I0(A0,B0))||S&&Y5(S.nodesRef.current,k(),!1).some((A0)=>I0(A0.context?.elements.floating,B0)),D0=D.current,x0=u.current,b0=j0(x0);queueMicrotask(()=>{let A0=Hf(b0),M0=typeof D0!=="boolean";if(D0&&!f.current&&l0(A0)&&(!M0&&A0!==B0&&B0!==G0.body?H0:!0)){let $0={preventScroll:!0};if(x0==="keyboard")$0.focusVisible=!0;A0.focus($0)}f.current=!1})}},[q,L,o,D,T,M,S,$,k,e]),J0(()=>{if(!z2.engine.webkit||j||!L)return;let G0=a1(y0(L));if(!l0(G0)||!uZ(G0))return;if(I0(L,G0))G0.blur()},[j,L]),J0(()=>{if(q||!x)return;return x.setFocusManagerState({modal:X,closeOnFocusOut:Y,open:j,onOpenChange:F.setOpen,domReference:$}),()=>{x.setFocusManagerState(null)}},[q,x,X,j,F,Y,$]),J0(()=>{if(q||!o)return;return Fk(o),()=>{queueMicrotask(qH)}},[q,o]);let K0=!q&&(X?!O:!0)&&(l||X);return Y0(g2.Fragment,{children:[K0&&w(K9,{"data-type":"inside",ref:W0,onFocus:(G0)=>{if(X){let Z0=a();jz(Z0[Z0.length-1])}else if(x?.portalNode)if(f.current=!1,B5(G0,x.portalNode))bQ($)?.focus();else X4(W??x.beforeOutsideRef)?.focus()}}),J,K0&&w(K9,{"data-type":"inside",ref:Q0,onFocus:(G0)=>{if(X)jz(a()[0]);else if(x?.portalNode){if(Y)f.current=!0;if(B5(G0,x.portalNode))RQ($)?.focus();else X4(H??x.afterOutsideRef)?.focus()}}})]})}var tZ=g(p(),1);function zH(A,Z={}){let{enabled:J=!0,event:q="click",toggle:Q=!0,ignoreMouse:z=!1,stickIfOpen:G=!0,touchOpenDelay:X=0,reason:Y=e0.triggerPress}=Z,U="rootStore"in A?A.rootStore:A,H=U.context.dataRef,W=tZ.useRef(void 0),B=i7(),K=W6(),V=tZ.useMemo(()=>{function F($,L,M,_){let k=y1(Y,L,M);if($&&_==="touch"&&X>0)K.start(X,()=>{U.setOpen(!0,k)});else U.setOpen($,k)}function j($,L,M){let _=H.current.openEvent,k=U.select("domReferenceElement")!==L;if($&&k)return!0;if(!$)return!0;if(!Q)return!0;if(_&&G)return!M(_.type);return!1}return{onPointerDown($){W.current=hQ($.pointerType,!0)&&wQ($.nativeEvent)?"virtual":$.pointerType},onMouseDown($){let L=W.current,M=$.nativeEvent,_=U.select("open");if($.button!==0||q==="click"||hQ(L,!0)&&z)return;let k=j(_,$.currentTarget,(N)=>N==="click"||N==="mousedown"),C=D1(M);if(uZ(C)){F(k,M,C,L);return}let O=$.currentTarget;B.request(()=>{F(k,M,O,L)})},onClick($){if(q==="mousedown-only")return;let L=W.current;if(q==="mousedown"&&L){W.current=void 0;return}if(hQ(L,!0)&&z)return;let M=U.select("open"),_=j(M,$.currentTarget,(k)=>k==="click"||k==="mousedown"||k==="keydown"||k==="keyup");F(_,$.nativeEvent,$.currentTarget,L)},onKeyDown(){W.current=void 0}}},[H,q,z,Y,U,G,Q,B,K,X]);return tZ.useMemo(()=>J?{reference:V}:_1,[J,V])}var s2=g(p(),1);function Wf(){return!1}function Bf(A){return{escapeKey:typeof A==="boolean"?A:A?.escapeKey??!1,outsidePress:typeof A==="boolean"?A:A?.outsidePress??!0}}function GH(A,Z={}){let{enabled:J=!0,escapeKey:q=!0,outsidePress:Q=!0,outsidePressEvent:z="sloppy",referencePress:G=Wf,bubbles:X,externalTree:Y}=Z,U="rootStore"in A?A.rootStore:A,H=U.useState("open"),W=U.useState("floatingElement"),{dataRef:B,events:K}=U.context,V=r7(Y),F=X0(typeof Q==="function"?Q:()=>!1),j=typeof Q==="function"?F:Q,$=j!==!1,L=X0(()=>z),{escapeKey:M,outsidePress:_}=Bf(X),k=s2.useRef(!1),C=s2.useRef(!1),O=s2.useRef(!1),N=s2.useRef(!1),D=s2.useRef(!1),T=s2.useRef(""),h=s2.useRef(null),S=W6(),x=W6(),f=X0(()=>{x.clear(),B.current.insideReactTree=!1}),R=X0((b)=>{let y=B.current.floatingContext?.nodeId;return(V?Y5(V.nodesRef.current,y):[]).some((l)=>l.context?.open&&!l.context.dataRef.current[b])}),P=X0((b)=>{return DQ(b,U.select("floatingElement"))||DQ(b,U.select("domReferenceElement"))}),E=X0((b)=>{if(!G())return;U.setOpen(!1,y1(e0.triggerPress,b.nativeEvent))}),u=X0((b)=>{if(!H||!J||!q||b.key!=="Escape")return;if(D.current)return;if(!M&&R("__escapeKeyBubbles"))return;let y=QF(b)?b.nativeEvent:b,m=y1(e0.escapeKey,y);if(U.setOpen(!1,m),!m.isCanceled)b.preventDefault();if(!M&&!m.isPropagationAllowed)b.stopPropagation()}),v=X0(()=>{B.current.insideReactTree=!0,x.start(0,f)}),I=X0((b)=>{if(!H||!J||b.button!==0)return;let y=D1(b.nativeEvent);if(!I0(U.select("floatingElement"),y))return;if(!k.current)k.current=!0,C.current=!1}),t=X0((b)=>{if(!H||!J)return;if(!(b.defaultPrevented||b.nativeEvent.defaultPrevented))return;if(k.current)C.current=!0});s2.useEffect(()=>{function b(y){if(!y.open)N.current=!1}return K.on("openchange",b),()=>{K.off("openchange",b)}},[K]),s2.useEffect(()=>{if(!H||!J){if(!H)N.current=!1;return f}B.current.__escapeKeyBubbles=M,B.current.__outsidePressBubbles=_;let b=new T6,y=new T6,m=y0(W);function l(){b.clear(),D.current=!0}function o(){b.start(z2.engine.webkit?5:0,()=>{D.current=!1})}function a(){O.current=!0,y.start(0,()=>{O.current=!1})}function e(){k.current=!1,C.current=!1}function K0(){let n=T.current,s=n==="pen"||!n?"mouse":n,z0=L(),d=typeof z0==="function"?z0():z0;if(typeof d==="string")return d;return d[s]}function G0(n){let s=K0();return s==="intentional"&&n.type!=="click"||s==="sloppy"&&n.type==="click"}function Z0(n){let s=B.current.floatingContext?.nodeId,z0=V&&Y5(V.nodesRef.current,s).some((d)=>DQ(n,d.context?.elements.floating));return P(n)||z0}function F0(n){if(G0(n)){if(n.type!=="click"&&!P(n))y.clear(),O.current=!1;f();return}if(B.current.insideReactTree){f();return}let s=D1(n),z0=`[${F5("inert")}]`,d=O1(s)?s.getRootNode():null,f1=Array.from((x4(d)?d:y0(U.select("floatingElement"))).querySelectorAll(z0)),w0=U.context.triggerElements;if(s&&(w0.hasElement(s)||w0.hasMatchingElement((C0)=>I0(C0,s))))return;let X1=O1(s)?s:null;while(X1&&!d6(X1)){let C0=O6(X1);if(d6(C0)||!O1(C0))break;X1=C0}if(f1.length&&O1(s)&&!qF(s)&&!I0(s,U.select("floatingElement"))&&f1.every((C0)=>!I0(X1,C0)))return;if(l0(s)&&!("touches"in n)){let C0=d6(s),m0=_2(s),$1=/auto|scroll/,J1=C0||$1.test(m0.overflowX),b1=C0||$1.test(m0.overflowY),w1=J1&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,O2=b1&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,U2=m0.direction==="rtl",Y1=O2&&(U2?n.offsetX<=s.offsetWidth-s.clientWidth:n.offsetX>s.clientWidth),N0=w1&&n.offsetY>s.clientHeight;if(Y1||N0)return}if(Z0(n))return;if(K0()==="intentional"){if(n.detail!==0&&!TQ(n)&&!N.current)return;if(O.current){y.clear(),O.current=!1;return}}if(typeof j==="function"&&!j(n))return;if(R("__outsidePressBubbles"))return;U.setOpen(!1,y1(e0.outsidePress,n)),f()}function k0(n){if(K0()!=="sloppy"||n.pointerType==="touch"||!U.select("open")||!J||P(n))return;F0(n)}function j0(n){if(K0()!=="sloppy"||!U.select("open")||!J||P(n))return;let s=n.touches[0];if(s)h.current={startTime:Date.now(),startX:s.clientX,startY:s.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},S.start(1000,()=>{if(h.current)h.current.dismissOnTouchEnd=!1,h.current.dismissOnMouseDown=!1})}function B0(n,s){let z0=D1(n);if(!z0)return;let d=i0(z0,n.type,()=>{s(n),d()})}function h0(n){T.current="touch",B0(n,j0)}function H0(n){if(S.clear(),n.type==="pointerdown"){if(n.button===0)N.current=!0;T.current=n.pointerType}if(n.type==="mousedown"&&h.current&&!h.current.dismissOnMouseDown)return;B0(n,(s)=>{if(s.type==="pointerdown")k0(s);else F0(s)})}function D0(n){if(n.type==="pointercancel")N.current=!1;if(!k.current)return;let s=C.current;if(e(),K0()!=="intentional")return;if(n.type==="pointercancel"){if(s)a();return}if(Z0(n))return;if(s){a();return}if(typeof j==="function"&&!j(n))return;y.clear(),O.current=!0,f()}function x0(n){if(K0()!=="sloppy"||!h.current||P(n))return;let s=n.touches[0];if(!s)return;let z0=Math.abs(s.clientX-h.current.startX),d=Math.abs(s.clientY-h.current.startY),f1=Math.sqrt(z0*z0+d*d);if(f1>5)h.current.dismissOnTouchEnd=!0;if(f1>10)F0(n),S.clear(),h.current=null}function b0(n){B0(n,x0)}function A0(n){if(K0()!=="sloppy"||!h.current||P(n))return;if(h.current.dismissOnTouchEnd)F0(n);S.clear(),h.current=null}function M0(n){B0(n,A0)}let $0=H4(q&&H4(i0(m,"keydown",u),i0(m,"compositionstart",l),i0(m,"compositionend",o)),$&&H4(i0(m,"click",H0,!0),i0(m,"pointerdown",H0,!0),i0(m,"pointerup",D0,!0),i0(m,"pointercancel",D0,!0),i0(m,"mousedown",H0,!0),i0(m,"mouseup",D0,!0),i0(m,"touchstart",h0,{capture:!0,passive:!0}),i0(m,"touchmove",b0,{capture:!0,passive:!0}),i0(m,"touchend",M0,{capture:!0,passive:!0})));return()=>{$0(),b.clear(),y.clear(),e(),O.current=!1,f()}},[B,W,q,$,j,H,J,M,_,u,f,L,R,P,V,U,S]);let W0=s2.useMemo(()=>({onKeyDown:u,onPointerDown:E,onClick:E}),[u,E]),Q0=s2.useMemo(()=>({onKeyDown:u,onPointerDown:t,onMouseDown:t,onClickCapture:v,onMouseDownCapture(b){v(),I(b)},onPointerDownCapture(b){v(),I(b)},onMouseUpCapture:v,onTouchEndCapture:v,onTouchMoveCapture:v}),[u,v,I,t]);return s2.useMemo(()=>J?{reference:W0,floating:Q0,trigger:W0}:{},[J,W0,Q0])}class XH{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(A,Z,J=!0){this.fallbackStore=A,this.componentName=Z,this.throwOnMissingTrigger=J}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(A){return this.storeListeners.add(A),()=>{this.storeListeners.delete(A)}}attachStore(A){return this.attachedStores.push(A),this.setActiveStore(A),()=>{let Z=this.attachedStores.lastIndexOf(A);if(Z!==-1)this.attachedStores.splice(Z,1);this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(A){if(this.attachedStoreValue!==A)this.attachedStoreValue=A,this.storeListeners.forEach((Z)=>{Z()})}openByTrigger(A){let Z=this.attachedStore;if(Z===null)return;let J;if(A){for(let q=this.attachedStores.length-1;q>=0&&!J;q-=1)J=this.attachedStores[q].context.triggerElements.getById(A);J??=this.fallbackStore.context.triggerElements.getById(A)}if(A&&!J){if(this.throwOnMissingTrigger)throw Error(v1(99,this.componentName,A,this.componentName))}Z.setOpen(!0,y1(e0.imperativeAction,void 0,J))}closePopup(){let A=this.attachedStore;if(A===null)return;A.setOpen(!1,y1(e0.imperativeAction))}}var YH=g(p(),1),$f=g(l4(),1);var _k=g(p(),1);var Kf={open:(A)=>A.open,transitionStatus:(A)=>A.transitionStatus,domReferenceElement:(A)=>A.domReferenceElement,referenceElement:(A)=>A.positionReference??A.referenceElement,floatingElement:(A)=>A.floatingElement,floatingId:(A)=>A.floatingId};class k5 extends FA{constructor(A){let{syncOnly:Z,nested:J,onOpenChange:q,triggerElements:Q,...z}=A;super({...z,positionReference:z.referenceElement,domReferenceElement:z.referenceElement},{onOpenChange:q,dataRef:{current:{}},events:$k(),nested:J,triggerElements:Q},Kf);this.syncOnly=Z}syncOpenEvent=(A,Z)=>{if(!A||!this.state.open||Z!=null&&zF(Z))this.context.dataRef.current.openEvent=A?Z:void 0};dispatchOpenChange=(A,Z)=>{this.syncOpenEvent(A,Z.event);let J={open:A,reason:Z.reason,nativeEvent:Z.event,nested:this.context.nested,triggerElement:Z.trigger};this.context.events.emit("openchange",J)};setOpen=(A,Z)=>{if(this.syncOnly){this.context.onOpenChange?.(A,Z);return}this.dispatchOpenChange(A,Z),this.context.onOpenChange?.(A,Z)}}function kk(A){let{popupStore:Z,treatPopupAsFloatingElement:J=!1,floatingRootContext:q,floatingId:Q,nested:z,onOpenChange:G}=A,X=Z.useState("open"),Y=Z.useState("activeTriggerElement"),U=Z.useState(J?"popupElement":"positionerElement"),H=Z.context.triggerElements,W=G,B=_k.useRef(null);if(q===void 0&&B.current===null)B.current=new k5({open:X,transitionStatus:void 0,referenceElement:Y,floatingElement:U,triggerElements:H,onOpenChange:W,floatingId:Q,syncOnly:!0,nested:z});let K=q??B.current;return Z.useSyncedValue("floatingId",Q),J0(()=>{let V={open:X,floatingId:Q,referenceElement:Y,floatingElement:U};if(O1(Y))V.domReferenceElement=Y;if(K.state.positionReference===K.state.referenceElement)V.positionReference=Y;K.update(V)},[X,Q,Y,U,K]),K.context.onOpenChange=W,K.context.nested=z,K}var Ck={tabIndex:-1,[EZ]:""};function Nk(A){return(Z)=>Z==="touch"?A.current:!0}function Ok(A,Z=!1){let J=P4(),q=Cz()!=null,Q=F1(()=>A(J,q)).current;return kk({popupStore:Q,treatPopupAsFloatingElement:Z,floatingRootContext:Q.state.floatingRootContext,floatingId:J,nested:q,onOpenChange:Q.setOpen}),Q}function Dk({handle:A,store:Z}){return J0(()=>{return A.attachStore(Z)},[A,Z]),null}function jk(A){let Z=A.context.triggerElements.size;if(A.select("open")&&A.state.triggerCount!==Z)A.set("triggerCount",Z)}function Lf(A,Z){let J=YH.useRef(null);return X0((q)=>{let Q=J.current;if(Q!==null){if(Q.element===q&&Q.store===Z&&Q.id===A)return;J.current=null;let z=Q.store;if(z.context.triggerElements.getById(Q.id)===Q.element)z.context.triggerElements.delete(Q.id),jk(z)}if(q!==null&&A!==void 0)J.current={store:Z,id:A,element:q},Z.context.triggerElements.add(A,q),jk(Z)})}function Tk(A,Z,J,q=!1){let Q=A.preventUnmountingOnClose;if(Z)Q=!1;else if(q)Q=!0;let z=J?.id??null,G=A.activeTriggerId,X=A.activeTriggerElement;if(z||Z)G=z,X=J??null;return{open:Z,preventUnmountingOnClose:Q,activeTriggerId:G,activeTriggerElement:X}}function wk(A,Z,J,q){let Q=J.useState("isMountedByTrigger",A),z=Lf(A,J),G=X0((Y)=>{let U=J.select("open"),H=J.select("activeTriggerId");if(H===A){let W={activeTriggerElement:Y,...U?q:null};J.update(W);return}if(H==null&&U){let W={activeTriggerId:A??null,activeTriggerElement:Y,...q};J.update(W)}}),X=X0((Y)=>{if(z(Y),Y)G(Y)});return J0(()=>{return X(Z.current),()=>X(null)},[X,Z,J,A]),J0(()=>{if(Q){let Y={activeTriggerElement:Z.current,...q};J.update(Y)}},[Q,J,Z,...Object.values(q)]),{registerTrigger:X,isMountedByThisTrigger:Q}}function hk(A,Z={}){let{closeOnActiveTriggerUnmount:J=!1}=Z,q=YH.useRef(null),Q=A.useState("open"),z=A.useState("triggerCount"),G=A.useState("activeTriggerId"),X=A.useState("activeTriggerElement");J0(()=>{if(!Q){if(q.current=null,A.state.triggerCount!==0)A.set("triggerCount",0);return}let Y=A.context.triggerElements.size,U={};if(A.state.triggerCount!==Y)U.triggerCount=Y;let H=A.select("activeTriggerId"),W=null;if(H){let B=A.context.triggerElements.getById(H);if(!B){for(let[K,V]of A.context.triggerElements.entries())if(V===A.state.activeTriggerElement){U.activeTriggerId=K,U.activeTriggerElement=V,q.current=K;break}if(U.activeTriggerId===void 0)if(q.current===H)W=H;else q.current=null}else if(q.current=H,B!==A.state.activeTriggerElement)U.activeTriggerElement=B}else q.current=null;if(!W&&!H&&Y===1){let B=A.context.triggerElements.entries().next();if(!B.done){let[K,V]=B.value;U.activeTriggerId=K,U.activeTriggerElement=V,q.current=K}}if(U.triggerCount!==void 0||U.activeTriggerId!==void 0||U.activeTriggerElement!==void 0)A.update(U);if(W){if(J)queueMicrotask(()=>{if(A.select("open")&&A.select("activeTriggerId")===W&&!A.context.triggerElements.getById(W)){let B=y1(e0.none);if(A.setOpen(!1,B),!B.isCanceled)A.update({activeTriggerId:null,activeTriggerElement:null})}})}},[Q,A,z,G,X,J])}function xk(A,Z,J,q){let{mounted:Q,setMounted:z,transitionStatus:G}=U9(A,!1,!1,q),X=Z.useState("preventUnmountingOnClose"),Y=A?!1:X;Z.useSyncedValues({mounted:Q,transitionStatus:G,preventUnmountingOnClose:Y});let U=X0(()=>{z(!1),Z.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),J?.(),Z.context.onOpenChangeComplete?.(!1)});return y4({enabled:Q&&!A&&!Y,open:A,ref:Z.context.popupRef,onComplete(){if(!A)U()}}),{forceUnmount:U,transitionStatus:G}}function Sk(A,Z){A.useSyncedValues(Z),J0(()=>()=>{A.update({activeTriggerProps:_1,inactiveTriggerProps:_1,popupProps:_1})},[A])}function Pk(A,Z){J0(()=>{if(!Z&&A.state.openMethod!==null)A.set("openMethod",null)},[Z,A]),J0(()=>()=>{if(A.state.openMethod!==null)A.set("openMethod",null)},[A])}class o7{constructor(){this.idMap=new Map}add(A,Z){this.idMap.set(A,Z)}delete(A){this.idMap.delete(A)}hasElement(A){for(let Z of this.idMap.values())if(Z===A)return!0;return!1}hasMatchingElement(A){for(let Z of this.idMap.values())if(A(Z))return!0;return!1}getById(A){return this.idMap.get(A)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function fk(A,Z,J=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new k5({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:A,floatingId:Z,syncOnly:!0,nested:J,onOpenChange:void 0}),floatingId:Z,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:_1,inactiveTriggerProps:_1,popupProps:_1}}var eZ=(A)=>A.triggerIdProp??A.activeTriggerId,UH=(A)=>A.openProp??A.open,Ik=(A)=>{return(A.popupElement?.id??A.floatingId)||void 0};function bk(A,Z){return Z!==void 0&&UH(A)&&eZ(A)===Z}function Vf(A,Z){if(bk(A,Z))return!0;return Z!==void 0&&UH(A)&&eZ(A)==null&&A.triggerCount===1}var Rk={open:UH,mounted:(A)=>A.mounted,transitionStatus:(A)=>A.transitionStatus,floatingRootContext:(A)=>A.floatingRootContext,triggerCount:(A)=>A.triggerCount,preventUnmountingOnClose:(A)=>A.preventUnmountingOnClose,payload:(A)=>A.payload,activeTriggerId:eZ,activeTriggerElement:(A)=>A.mounted?A.activeTriggerElement:null,popupId:Ik,isTriggerActive:(A,Z)=>Z!==void 0&&eZ(A)===Z,isOpenedByTrigger:(A,Z)=>bk(A,Z),isMountedByTrigger:(A,Z)=>Z!==void 0&&eZ(A)===Z&&A.mounted,triggerProps:(A,Z)=>Z?A.activeTriggerProps:A.inactiveTriggerProps,triggerPopupId:(A,Z)=>Vf(A,Z)?Ik(A):void 0,popupProps:(A)=>A.popupProps,popupElement:(A)=>A.popupElement,positionerElement:(A)=>A.positionerElement};var HH=g(p(),1),yk=g(oZ(),1);function Ek(A){let Z=HH.useCallback((q)=>{if(A===void 0)return B1;return A.subscribeStore(q)},[A]),J=HH.useCallback(()=>{return A===void 0?void 0:A.store},[A]);return yk.useSyncExternalStore(Z,J,()=>A?.serverStore)}function WH(A){let{open:Z=!1,onOpenChange:J,elements:q={}}=A,Q=P4(),z=Cz()!=null,G=F1(()=>new k5({open:Z,transitionStatus:void 0,onOpenChange:J,referenceElement:q.reference??null,floatingElement:q.floating??null,triggerElements:new o7,floatingId:Q,syncOnly:!1,nested:z})).current;return J0(()=>{let X={open:Z,floatingId:Q};if(q.reference!==void 0)X.referenceElement=q.reference,X.domReferenceElement=O1(q.reference)?q.reference:null;if(q.floating!==void 0)X.floatingElement=q.floating;G.update(X)},[Z,Q,q.reference,q.floating,G]),G.context.onOpenChange=J,G.context.nested=z,G}function vk(A,Z,J){let{reference:q,floating:Q}=A,z=H6(Z),G=dZ(Z),X=pZ(G),Y=U6(Z),U=z==="y",H=q.x+q.width/2-Q.width/2,W=q.y+q.height/2-Q.height/2,B=q[X]/2-Q[X]/2,K;switch(Y){case"top":K={x:H,y:q.y-Q.height};break;case"bottom":K={x:H,y:q.y+q.height};break;case"right":K={x:q.x+q.width,y:W};break;case"left":K={x:q.x-Q.width,y:W};break;default:K={x:q.x,y:q.y}}let V=l6(Z);if(V)K[G]+=B*(V==="end"?1:-1)*(J&&U?-1:1);return K}async function gk(A,Z){var J;if(Z===void 0)Z={};let{x:q,y:Q,platform:z,rects:G,elements:X,strategy:Y}=A,{boundary:U="clippingAncestors",rootBoundary:H="viewport",elementContext:W="floating",altBoundary:B=!1,padding:K=0}=R4(Z,A),V=IQ(K),j=X[B?W==="floating"?"reference":"floating":W],$=U5(await z.getClippingRect({element:((J=await(z.isElement==null?void 0:z.isElement(j)))!=null?J:!0)?j:j.contextElement||await(z.getDocumentElement==null?void 0:z.getDocumentElement(X.floating)),boundary:U,rootBoundary:H,strategy:Y})),L=W==="floating"?{x:q,y:Q,width:G.floating.width,height:G.floating.height}:G.reference,M=await(z.getOffsetParent==null?void 0:z.getOffsetParent(X.floating)),_=await(z.isElement==null?void 0:z.isElement(M))&&await(z.getScale==null?void 0:z.getScale(M))||{x:1,y:1},k=U5(z.convertOffsetParentRelativeRectToViewportRelativeRect?await z.convertOffsetParentRelativeRectToViewportRelativeRect({elements:X,rect:L,offsetParent:M,strategy:Y}):L);return{top:($.top-k.top+V.top)/_.y,bottom:(k.bottom-$.bottom+V.bottom)/_.y,left:($.left-k.left+V.left)/_.x,right:(k.right-$.right+V.right)/_.x}}var Mf=50,uk=async(A,Z,J)=>{let{placement:q="bottom",strategy:Q="absolute",middleware:z=[],platform:G}=J,X=G.detectOverflow?G:{...G,detectOverflow:gk},Y=await(G.isRTL==null?void 0:G.isRTL(Z)),U=await G.getElementRects({reference:A,floating:Z,strategy:Q}),{x:H,y:W}=vk(U,q,Y),B=q,K=0,V={};for(let F=0;F<z.length;F++){let j=z[F];if(!j)continue;let{name:$,fn:L}=j,{x:M,y:_,data:k,reset:C}=await L({x:H,y:W,initialPlacement:q,placement:B,strategy:Q,middlewareData:V,rects:U,platform:X,elements:{reference:A,floating:Z}});if(H=M!=null?M:H,W=_!=null?_:W,V[$]={...V[$],...k},C&&K<Mf){if(K++,typeof C==="object"){if(C.placement)B=C.placement;if(C.rects)U=C.rects===!0?await G.getElementRects({reference:A,floating:Z,strategy:Q}):C.rects;({x:H,y:W}=vk(U,B,Y))}F=-1}}return{x:H,y:W,placement:B,strategy:Q,middlewareData:V}};var ck=function(A){if(A===void 0)A={};return{name:"flip",options:A,async fn(Z){var J,q;let{placement:Q,middlewareData:z,rects:G,initialPlacement:X,platform:Y,elements:U}=Z,{mainAxis:H=!0,crossAxis:W=!0,fallbackPlacements:B,fallbackStrategy:K="bestFit",fallbackAxisSideDirection:V="none",flipAlignment:F=!0,...j}=R4(A,Z);if((J=z.arrow)!=null&&J.alignmentOffset)return{};let $=U6(Q),L=H6(X),M=U6(X)===X,_=await(Y.isRTL==null?void 0:Y.isRTL(U.floating)),k=B||(M||!F?[cZ(X)]:UF(X)),C=V!=="none";if(!B&&C)k.push(...HF(X,F,V,_));let O=[X,...k],N=await Y.detectOverflow(Z,j),D=[],T=((q=z.flip)==null?void 0:q.overflows)||[];if(H)D.push(N[$]);if(W){let f=YF(Q,G,_);D.push(N[f[0]],N[f[1]])}if(T=[...T,{placement:Q,overflows:D}],!D.every((f)=>f<=0)){var h,S;let f=(((h=z.flip)==null?void 0:h.index)||0)+1,R=O[f];if(R){if(!(W==="alignment"?L!==H6(R):!1)||T.every((u)=>H6(u.placement)===L?u.overflows[0]>0:!0))return{data:{index:f,overflows:T},reset:{placement:R}}}let P=(S=T.filter((E)=>E.overflows[0]<=0).sort((E,u)=>E.overflows[1]-u.overflows[1])[0])==null?void 0:S.placement;if(!P)switch(K){case"bestFit":{var x;let E=(x=T.filter((u)=>{if(C){let v=H6(u.placement);return v===L||v==="y"}return!0}).map((u)=>[u.placement,u.overflows.filter((v)=>v>0).reduce((v,I)=>v+I,0)]).sort((u,v)=>u[1]-v[1])[0])==null?void 0:x[0];if(E)P=E;break}case"initialPlacement":P=X;break}if(Q!==P)return{reset:{placement:P}}}return{}}}};var mk=new Set(["left","top"]);async function Ff(A,Z){let{placement:J,platform:q,elements:Q}=A,z=await(q.isRTL==null?void 0:q.isRTL(Q.floating)),G=U6(J),X=l6(J),Y=H6(J)==="y",U=mk.has(G)?-1:1,H=z&&Y?-1:1,W=R4(Z,A),{mainAxis:B,crossAxis:K,alignmentAxis:V}=typeof W==="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};if(X&&typeof V==="number")K=X==="end"?V*-1:V;return Y?{x:K*H,y:B*U}:{x:B*U,y:K*H}}var pk=function(A){if(A===void 0)A=0;return{name:"offset",options:A,async fn(Z){var J,q;let{x:Q,y:z,placement:G,middlewareData:X}=Z,Y=await Ff(Z,A);if(G===((J=X.offset)==null?void 0:J.placement)&&(q=X.arrow)!=null&&q.alignmentOffset)return{};return{x:Q+Y.x,y:z+Y.y,data:{...Y,placement:G}}}}},dk=function(A){if(A===void 0)A={};return{name:"shift",options:A,async fn(Z){let{x:J,y:q,placement:Q,platform:z}=Z,{mainAxis:G=!0,crossAxis:X=!1,limiter:Y={fn:(L)=>{let{x:M,y:_}=L;return{x:M,y:_}}},...U}=R4(A,Z),H={x:J,y:q},W=await z.detectOverflow(Z,U),B=H6(Q),K=PQ(B),V=H[K],F=H[B],j=(L,M)=>SQ(M+W[L==="y"?"top":"left"],M,M-W[L==="y"?"bottom":"right"]);if(G)V=j(K,V);if(X)F=j(B,F);let $=Y.fn({...Z,[K]:V,[B]:F});return{...$,data:{x:$.x-J,y:$.y-q,enabled:{[K]:G,[B]:X}}}}}},lk=function(A){if(A===void 0)A={};return{options:A,fn(Z){var J,q;let{x:Q,y:z,placement:G,rects:X,middlewareData:Y}=Z,{offset:U=0,mainAxis:H=!0,crossAxis:W=!0}=R4(A,Z),B={x:Q,y:z},K=H6(G),V=PQ(K),F=B[V],j=B[K],$=R4(U,Z),L=typeof $==="number"?{mainAxis:$,crossAxis:0}:{mainAxis:(J=$.mainAxis)!=null?J:0,crossAxis:(q=$.crossAxis)!=null?q:0};if(H){let k=V==="y"?"height":"width",C=X.reference[V]-X.floating[k]+L.mainAxis,O=X.reference[V]+X.reference[k]-L.mainAxis;if(F<C)F=C;else if(F>O)F=O}if(W){var M,_;let k=V==="y"?"width":"height",C=mk.has(U6(G)),O=X.reference[K]-X.floating[k]+(C?((M=Y.offset)==null?void 0:M[K])||0:0)+(C?0:L.crossAxis),N=X.reference[K]+X.reference[k]+(C?0:((_=Y.offset)==null?void 0:_[K])||0)-(C?L.crossAxis:0);if(j<O)j=O;else if(j>N)j=N}return{[V]:F,[K]:j}}}},ik=function(A){if(A===void 0)A={};return{name:"size",options:A,async fn(Z){let{placement:J,rects:q,platform:Q,elements:z}=Z,{apply:G=()=>{},...X}=R4(A,Z),Y=await Q.detectOverflow(Z,X),U=U6(J),H=l6(J),W=H6(J)==="y",{width:B,height:K}=q.floating,V,F;if(U==="top"||U==="bottom")V=U,F=H===(await(Q.isRTL==null?void 0:Q.isRTL(z.floating))?"start":"end")?"left":"right";else F=U,V=H==="end"?"top":"bottom";let j=K-Y.top-Y.bottom,$=B-Y.left-Y.right,L=X9(K-Y[V],j),M=X9(B-Y[F],$),_=Z.middlewareData.shift,k=!_,C=L,O=M;if(_!=null&&_.enabled.x)O=$;if(_!=null&&_.enabled.y)C=j;if(k&&!H)if(W)O=B-2*z4(Y.left,Y.right);else C=K-2*z4(Y.top,Y.bottom);await G({...Z,availableWidth:O,availableHeight:C});let N=await Q.getDimensions(z.floating);if(B!==N.width||K!==N.height)return{reset:{rects:!0}};return{}}}};function ak(A){let Z=_2(A),J=parseFloat(Z.width)||0,q=parseFloat(Z.height)||0,Q=l0(A),z=Q?A.offsetWidth:J,G=Q?A.offsetHeight:q,X=Y9(J)!==z||Y9(q)!==G;if(X)J=z,q=G;return{width:J,height:q,$:X}}function KH(A){return!O1(A)?A.contextElement:A}function a7(A){let Z=KH(A);if(!l0(Z))return b4(1);let J=Z.getBoundingClientRect(),{width:q,height:Q,$:z}=ak(Z),G=(z?Y9(J.width):J.width)/q,X=(z?Y9(J.height):J.height)/Q;if(!G||!Number.isFinite(G))G=1;if(!X||!Number.isFinite(X))X=1;return{x:G,y:X}}var _f=b4(0);function sk(A){let Z=q1(A);if(!MQ()||!Z.visualViewport)return _f;return{x:Z.visualViewport.offsetLeft,y:Z.visualViewport.offsetTop}}function kf(A,Z,J){if(Z===void 0)Z=!1;return!!J&&Z&&J===q1(A)}function j5(A,Z,J,q){if(Z===void 0)Z=!1;if(J===void 0)J=!1;let Q=A.getBoundingClientRect(),z=KH(A),G=b4(1);if(Z)if(q){if(O1(q))G=a7(q)}else G=a7(A);let X=kf(z,J,q)?sk(z):b4(0),Y=(Q.left+X.x)/G.x,U=(Q.top+X.y)/G.y,H=Q.width/G.x,W=Q.height/G.y;if(z&&q){let B=q1(z),K=O1(q)?q1(q):q,V=B,F=FQ(V);while(F&&K!==V){let j=a7(F),$=F.getBoundingClientRect(),L=_2(F),M=$.left+(F.clientLeft+parseFloat(L.paddingLeft))*j.x,_=$.top+(F.clientTop+parseFloat(L.paddingTop))*j.y;Y*=j.x,U*=j.y,H*=j.x,W*=j.y,Y+=M,U+=_,V=q1(F),F=FQ(V)}}return U5({width:H,height:W,x:Y,y:U})}function Nz(A,Z){let J=RZ(A).scrollLeft;if(!Z)return j5(S4(A)).left+J;return Z.left+J}function nk(A,Z){let J=A.getBoundingClientRect(),q=J.left+Z.scrollLeft-Nz(A,J),Q=J.top+Z.scrollTop;return{x:q,y:Q}}function jf(A){let{elements:Z,rect:J,offsetParent:q,strategy:Q}=A,z=Q==="fixed",G=S4(q),X=Z?bZ(Z.floating):!1;if(q===G||X&&z)return J;let Y={scrollLeft:0,scrollTop:0},U=b4(1),H=b4(0),W=l0(q);if(W||!z){if(Q2(q)!=="body"||J5(G))Y=RZ(q);if(W){let K=j5(q);U=a7(q),H.x=K.x+q.clientLeft,H.y=K.y+q.clientTop}}let B=G&&!W&&!z?nk(G,Y):b4(0);return{width:J.width*U.x,height:J.height*U.y,x:J.x*U.x-Y.scrollLeft*U.x+H.x+B.x,y:J.y*U.y-Y.scrollTop*U.y+H.y+B.y}}function Cf(A){return A.getClientRects?Array.from(A.getClientRects()):[]}function Nf(A){let Z=RZ(A),J=A.ownerDocument.body,q=z4(A.scrollWidth,A.clientWidth,J.scrollWidth,J.clientWidth),Q=z4(A.scrollHeight,A.clientHeight,J.scrollHeight,J.clientHeight),z=-Z.scrollLeft+Nz(A),G=-Z.scrollTop;if(_2(J).direction==="rtl")z+=z4(A.clientWidth,J.clientWidth)-q;return{width:q,height:Q,x:z,y:G}}var Of=25;function Df(A,Z,J){if(J===void 0)J="viewport";let q=J==="layoutViewport",Q=q1(A),z=S4(A),G=Q.visualViewport,X=z.clientWidth,Y=z.clientHeight,U=0,H=0;if(G){let B=!MQ()||Z==="fixed";if(q){if(!B)U=-G.offsetLeft,H=-G.offsetTop}else if(X=G.width,Y=G.height,B)U=G.offsetLeft,H=G.offsetTop}if(Nz(z)<=0){let B=z.ownerDocument,K=B.body,V=getComputedStyle(K),F=B.compatMode==="CSS1Compat"?parseFloat(V.marginLeft)+parseFloat(V.marginRight)||0:0,j=Math.abs(z.clientWidth-K.clientWidth-F),$=getComputedStyle(z).scrollbarGutter==="stable both-edges"?j/2:j;if($<=Of)X-=$}return{width:X,height:Y,x:U,y:H}}function Tf(A,Z){let J=j5(A,!0,Z==="fixed"),q=J.top+A.clientTop,Q=J.left+A.clientLeft,z=a7(A),G=A.clientWidth*z.x,X=A.clientHeight*z.y,Y=Q*z.x,U=q*z.y;return{width:G,height:X,x:Y,y:U}}function rk(A,Z,J){let q;if(Z==="viewport"||Z==="layoutViewport")q=Df(A,J,Z);else if(Z==="document")q=Nf(S4(A));else if(O1(Z))q=Tf(Z,J);else{let Q=sk(A);q={x:Z.x-Q.x,y:Z.y-Q.y,width:Z.width,height:Z.height}}return U5(q)}function wf(A,Z){let J=Z.get(A);if(J)return J;let q=G9(A,[],!1).filter((X)=>O1(X)&&Q2(X)!=="body"),Q=null,z=_2(A).position==="fixed",G=z?O6(A):A;while(O1(G)&&!d6(G)){let X=_2(G),Y=VQ(G),U=Q?Q.position:z?"fixed":"";if(!Y&&(U==="fixed"||U==="absolute"&&X.position==="static"))q=q.filter((W)=>W!==G);else Q=X;G=O6(G)}return Z.set(A,q),q}function hf(A){let{element:Z,boundary:J,rootBoundary:q,strategy:Q}=A,G=[...J==="clippingAncestors"?bZ(Z)?[]:wf(Z,this._c):[].concat(J),q],X=rk(Z,G[0],Q),Y=X.top,U=X.right,H=X.bottom,W=X.left;for(let B=1;B<G.length;B++){let K=rk(Z,G[B],Q);Y=z4(K.top,Y),U=X9(K.right,U),H=X9(K.bottom,H),W=z4(K.left,W)}return{width:U-W,height:H-Y,x:W,y:Y}}function xf(A){let{width:Z,height:J}=ak(A);return{width:Z,height:J}}function Sf(A,Z,J){let q=l0(Z),Q=S4(Z),z=J==="fixed",G=j5(A,!0,z,Z),X={scrollLeft:0,scrollTop:0},Y=b4(0);if(q||!z){if(Q2(Z)!=="body"||J5(Q))X=RZ(Z);if(q){let B=j5(Z,!0,z,Z);Y.x=B.x+Z.clientLeft,Y.y=B.y+Z.clientTop}}if(!q&&Q)Y.x=Nz(Q);let U=Q&&!q&&!z?nk(Q,X):b4(0),H=G.left+X.scrollLeft-Y.x-U.x,W=G.top+X.scrollTop-Y.y-U.y;return{x:H,y:W,width:G.width,height:G.height}}function BH(A){return _2(A).position==="static"}function ok(A,Z){if(!l0(A)||_2(A).position==="fixed")return null;if(Z)return Z(A);let J=A.offsetParent;if(S4(A)===J)J=J.ownerDocument.body;return J}function tk(A,Z){let J=q1(A);if(bZ(A))return J;if(!l0(A)){let Q=O6(A);while(Q&&!d6(Q)){if(O1(Q)&&!BH(Q))return Q;Q=O6(Q)}return J}let q=ok(A,Z);while(q&&uM(q)&&BH(q))q=ok(q,Z);if(q&&d6(q)&&BH(q)&&!VQ(q))return J;return q||cM(A)||J}var Pf=async function(A){let Z=this.getOffsetParent||tk,J=this.getDimensions,q=await J(A.floating);return{reference:Sf(A.reference,await Z(A.floating),A.strategy),floating:{x:0,y:0,width:q.width,height:q.height}}};function If(A){return _2(A).direction==="rtl"}var $H={convertOffsetParentRelativeRectToViewportRelativeRect:jf,getDocumentElement:S4,getClippingRect:hf,getOffsetParent:tk,getElementRects:Pf,getClientRects:Cf,getDimensions:xf,getScale:a7,isElement:O1,isRTL:If};function ek(A,Z){return A.x===Z.x&&A.y===Z.y&&A.width===Z.width&&A.height===Z.height}function ff(A,Z,J){let q=null,Q,z=S4(A);function G(){var H;clearTimeout(Q),(H=q)==null||H.disconnect(),q=null}function X(H,W){if(H===void 0)H=!1;if(W===void 0)W=1;G();let B=A.getBoundingClientRect(),{left:K,top:V,width:F,height:j}=B;if(!H)Z();if(!F||!j)return;let $=mZ(V),L=mZ(z.clientWidth-(K+F)),M=mZ(z.clientHeight-(V+j)),_=mZ(K),C={rootMargin:-$+"px "+-L+"px "+-M+"px "+-_+"px",threshold:z4(0,X9(1,W))||1},O=!0;function N(D){let T=D[0].intersectionRatio;if(!ek(B,A.getBoundingClientRect()))return X();if(T!==W){if(!O)return X();if(!T)Q=setTimeout(()=>{X(!1,0.0000001)},1000);else X(!1,T)}O=!1}try{q=new IntersectionObserver(N,{...C,root:z.ownerDocument})}catch(D){q=new IntersectionObserver(N,C)}q.observe(A)}let Y=q1(A),U=()=>X(J);return Y.addEventListener("resize",U),X(!0),()=>{Y.removeEventListener("resize",U),G()}}function AJ(A,Z,J,q){if(q===void 0)q={};let{ancestorScroll:Q=!0,ancestorResize:z=!0,elementResize:G=typeof ResizeObserver==="function",layoutShift:X=typeof IntersectionObserver==="function",animationFrame:Y=!1}=q,U=KH(A),H=Q||z?[...U?G9(U):[],...Z?G9(Z):[]]:[];H.forEach(($)=>{Q&&$.addEventListener("scroll",J),z&&$.addEventListener("resize",J)});let W=U&&X?ff(U,J,z):null,B=-1,K=null;if(G){if(K=new ResizeObserver(($)=>{let[L]=$;if(L&&L.target===U&&K&&Z)K.unobserve(Z),cancelAnimationFrame(B),B=requestAnimationFrame(()=>{var M;(M=K)==null||M.observe(Z)});J()}),U&&!Y)K.observe(U);if(Z)K.observe(Z)}let V,F=Y?j5(A):null;if(Y)j();function j(){let $=j5(A);if(F&&!ek(F,$))J();F=$,V=requestAnimationFrame(j)}return J(),()=>{var $;if(H.forEach((L)=>{Q&&L.removeEventListener("scroll",J),z&&L.removeEventListener("resize",J)}),W==null||W(),($=K)==null||$.disconnect(),K=null,Y)cancelAnimationFrame(V)}}var Aj=pk;var Zj=dk,Jj=ck,qj=ik;var Qj=lk,Oz=(A,Z,J)=>{let q=new Map,Q=J!=null?J:{},z={...$H,...Q.platform,_c:q};return uk(A,Z,{...Q,platform:z})};var L2=g(p(),1),Gj=g(p(),1),Xj=g(l4(),1),Rf=typeof document<"u",yf=function(){},Dz=Rf?Gj.useLayoutEffect:yf;function Tz(A,Z){if(A===Z)return!0;if(typeof A!==typeof Z)return!1;if(typeof A==="function"&&A.toString()===Z.toString())return!0;let J,q,Q;if(A&&Z&&typeof A==="object"){if(Array.isArray(A)){if(J=A.length,J!==Z.length)return!1;for(q=J;q--!==0;)if(!Tz(A[q],Z[q]))return!1;return!0}if(Q=Object.keys(A),J=Q.length,J!==Object.keys(Z).length)return!1;for(q=J;q--!==0;)if(!{}.hasOwnProperty.call(Z,Q[q]))return!1;for(q=J;q--!==0;){let z=Q[q];if(z==="_owner"&&A.$$typeof)continue;if(!Tz(A[z],Z[z]))return!1}return!0}return A!==A&&Z!==Z}function Yj(A){if(typeof window>"u")return 1;return(A.ownerDocument.defaultView||window).devicePixelRatio||1}function zj(A,Z){let J=Yj(A);return Math.round(Z*J)/J}function LH(A){let Z=L2.useRef(A);return Dz(()=>{Z.current=A}),Z}function Uj(A){if(A===void 0)A={};let{placement:Z="bottom",strategy:J="absolute",middleware:q=[],platform:Q,elements:{reference:z,floating:G}={},transform:X=!0,whileElementsMounted:Y,open:U}=A,[H,W]=L2.useState({x:0,y:0,strategy:J,placement:Z,middlewareData:{},isPositioned:!1}),[B,K]=L2.useState(q);if(!Tz(B,q))K(q);let[V,F]=L2.useState(null),[j,$]=L2.useState(null),L=L2.useCallback((u)=>{if(u!==C.current)C.current=u,F(u)},[]),M=L2.useCallback((u)=>{if(u!==O.current)O.current=u,$(u)},[]),_=z||V,k=G||j,C=L2.useRef(null),O=L2.useRef(null),N=L2.useRef(H),D=Y!=null,T=LH(Y),h=LH(Q),S=LH(U),x=L2.useCallback(()=>{if(!C.current||!O.current)return;let u={placement:Z,strategy:J,middleware:B};if(h.current)u.platform=h.current;Oz(C.current,O.current,u).then((v)=>{let I={...v,isPositioned:S.current!==!1};if(f.current&&!Tz(N.current,I))N.current=I,Xj.flushSync(()=>{W(I)})})},[B,Z,J,h,S]);Dz(()=>{if(U===!1&&N.current.isPositioned)N.current.isPositioned=!1,W((u)=>({...u,isPositioned:!1}))},[U]);let f=L2.useRef(!1);Dz(()=>{return f.current=!0,()=>{f.current=!1}},[]),Dz(()=>{if(_)C.current=_;if(k)O.current=k;if(_&&k){if(T.current)return T.current(_,k,x);x()}},[_,k,x,T,D]);let R=L2.useMemo(()=>({reference:C,floating:O,setReference:L,setFloating:M}),[L,M]),P=L2.useMemo(()=>({reference:_,floating:k}),[_,k]),E=L2.useMemo(()=>{let u={position:J,left:0,top:0};if(!P.floating)return u;let v=zj(P.floating,H.x),I=zj(P.floating,H.y);if(X)return{...u,transform:"translate("+v+"px, "+I+"px)",...Yj(P.floating)>=1.5&&{willChange:"transform"}};return{position:J,left:v,top:I}},[J,X,P.floating,H.x,H.y]);return L2.useMemo(()=>({...H,update:x,refs:R,elements:P,floatingStyles:E}),[H,x,R,P,E])}var VH=(A,Z)=>{let J=Aj(A);return{name:J.name,fn:J.fn,options:[A,Z]}},MH=(A,Z)=>{let J=Zj(A);return{name:J.name,fn:J.fn,options:[A,Z]}},FH=(A,Z)=>{return{fn:Qj(A).fn,options:[A,Z]}},_H=(A,Z)=>{let J=Jj(A);return{name:J.name,fn:J.fn,options:[A,Z]}},kH=(A,Z)=>{let J=qj(A);return{name:J.name,fn:J.fn,options:[A,Z]}};var u2=g(p(),1);function Hj(A){return Ef(A,A.rootContext)}function Ef(A,Z){let{nodeId:J,externalTree:q}=A,Q=Z.useState("referenceElement"),z=Z.useState("floatingElement"),G=Z.useState("domReferenceElement"),X=Z.useState("open"),Y=Z.useState("floatingId"),[U,H]=u2.useState(null),[W,B]=u2.useState(void 0),[K,V]=u2.useState(void 0),F=u2.useRef(null),j=r7(q),$=u2.useMemo(()=>({reference:Q,floating:z,domReference:G}),[Q,z,G]),L=Uj({...A,elements:{...$,...U&&{reference:U}}}),M=O1(W)?W:null,_=K===void 0?Z.state.floatingElement:K;Z.useSyncedValue("referenceElement",W??null),Z.useSyncedValue("domReferenceElement",W===void 0?G:M),Z.useSyncedValue("floatingElement",_);let k=u2.useCallback((h)=>{let S=O1(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),getClientRects:()=>h.getClientRects(),contextElement:h}:h;H(S),L.refs.setReference(S)},[L.refs]),C=u2.useCallback((h)=>{if(O1(h)||h===null)F.current=h,B(h);if(O1(L.refs.reference.current)||L.refs.reference.current===null||h!==null&&!O1(h))L.refs.setReference(h)},[L.refs,B]),O=u2.useCallback((h)=>{V(h),L.refs.setFloating(h)},[L.refs]),N=u2.useMemo(()=>({...L.refs,setReference:C,setFloating:O,setPositionReference:k,domReference:F}),[L.refs,C,O,k]),D=u2.useMemo(()=>({...L.elements,domReference:G}),[L.elements,G]),T=u2.useMemo(()=>({...L,dataRef:Z.context.dataRef,open:X,onOpenChange:Z.setOpen,events:Z.context.events,floatingId:Y,refs:N,elements:D,nodeId:J,rootStore:Z}),[L,N,D,J,Z,X,Y]);return J0(()=>{if(G)F.current=G},[G]),J0(()=>{Z.context.dataRef.current.floatingContext=T;let h=j?.nodesRef.current.find((S)=>S.id===J);if(h)h.context=T}),u2.useMemo(()=>({...L,context:T,refs:N,elements:D,rootStore:Z}),[L,N,D,T,Z])}var vf=(A)=>({name:"arrow",options:A,async fn(Z){let{x:J,y:q,placement:Q,rects:z,platform:G,elements:X,middlewareData:Y}=Z,{element:U,padding:H=0,offsetParent:W="real"}=R4(A,Z)||{};if(U==null)return{};let B=IQ(H),K={x:J,y:q},V=dZ(Q),F=pZ(V),j=await G.getDimensions(U),$=V==="y",L=$?"top":"left",M=$?"bottom":"right",_=$?"clientHeight":"clientWidth",k=z.reference[F]+z.reference[V]-K[V]-z.floating[F],C=K[V]-z.reference[V],O=W==="real"?await G.getOffsetParent?.(U):X.floating,N=X.floating[_]||z.floating[F];if(!N||!await G.isElement?.(O))N=X.floating[_]||z.floating[F];let D=k/2-C/2,T=N/2-j[F]/2-1,h=Math.min(B[L],T),S=Math.min(B[M],T),x=h,f=N-j[F]-S,R=N/2-j[F]/2+D,P=SQ(x,R,f),E=!Y.arrow&&l6(Q)!=null&&R!==P&&z.reference[F]/2-(R<x?h:S)-j[F]/2<0,u=E?R<x?R-x:R-f:0;return{[V]:K[V]+u,data:{[V]:P,centerOffset:R-P-u,...E&&{alignmentOffset:u}},reset:E}}}),Wj=(A,Z)=>{let{name:J,fn:q}=vf(A);return{name:J,fn:q,options:[A,Z]}};var Bj={name:"hide",async fn(A){let{width:Z,height:J,x:q,y:Q}=A.rects.reference,z=Z===0&&J===0&&q===0&&Q===0,G=await A.platform.detectOverflow(A,{elementContext:"reference"});return{data:{referenceHidden:G.top-J>=0||G.right-Z>=0||G.bottom-J>=0||G.left-Z>=0||z}}}};var Kj={sideX:"left",sideY:"top"};var $j="--available-width",Lj="--available-height",Vj="--anchor-width",Mj="--anchor-height",Fj="--transform-origin";var _j=$j,kj=Lj;function Nj(A,Z,J){let q=A==="inline-start"||A==="inline-end";return{top:"top",right:q?J?"inline-start":"inline-end":"right",bottom:"bottom",left:q?J?"inline-end":"inline-start":"left"}[Z]}function jj(A,Z,J){let{rects:q,placement:Q}=A;return{side:Nj(Z,U6(Q),J),align:l6(Q)||"center",anchor:{width:q.reference.width,height:q.reference.height},positioner:{width:q.floating.width,height:q.floating.height}}}function Oj(A){return uf(A,Hj)}function uf(A,Z){let{anchor:J,positionMethod:q="absolute",side:Q="bottom",sideOffset:z=0,align:G="center",alignOffset:X=0,collisionBoundary:Y,collisionPadding:U=5,sticky:H=!1,arrowPadding:W=5,disableAnchorTracking:B=!1,inline:K,keepMounted:V=!1,floatingRootContext:F,mounted:j,collisionAvoidance:$,shift:L,nodeId:M,adaptiveOrigin:_,lazyFlip:k=!1,externalTree:C}=A,[O,N]=w6.useState(null);if(!j&&O!==null)N(null);let D=$.side||"flip",T=$.align||"flip",h=$.fallbackAxisSide||"end",S=L?.crossAxis??!1,x=L?.rootBoundary,f=typeof J==="function"?J:void 0,R=X0(f),P=f?R:J,E=g4(J),u=g4(j),I=tQ()==="rtl",t=O||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":I?"left":"right","inline-start":I?"right":"left"}[Q],W0=G==="center"?t:`${t}-${G}`,Q0=U;if(typeof Q0==="number")Q0={top:Q0,right:Q0,bottom:Q0,left:Q0};else if(Q0)Q0={top:Q0.top||0,right:Q0.right||0,bottom:Q0.bottom||0,left:Q0.left||0};let b=1,y=Q==="bottom"?b:0,m=Q==="top"?b:0,l=Q==="right"?b:0,o=Q==="left"?b:0,a={boundary:Y==="clipping-ancestors"?"clippingAncestors":Y,padding:Q0},e=w6.useRef(null),K0=g4(z),G0=g4(X),Z0=typeof z!=="function"?z:0,F0=typeof X!=="function"?X:0,k0=[];if(K)k0.push(K);k0.push(VH((N0)=>{let A1=jj(N0,Q,I),o0=typeof K0.current==="function"?K0.current(A1):K0.current,U1=typeof G0.current==="function"?G0.current(A1):G0.current;return{mainAxis:o0,crossAxis:U1,alignmentAxis:U1}},[Z0,F0,I,Q]));let j0=T==="none"&&D!=="shift",B0=!j0&&(H||S||D==="shift"),h0=D==="none"?null:_H({...a,padding:{top:Q0.top+b+y,right:Q0.right+b+o,bottom:Q0.bottom+b+m,left:Q0.left+b+l},mainAxis:!S&&D==="flip",crossAxis:T==="flip"?"alignment":!1,fallbackAxisSideDirection:h}),H0=j0?null:MH({...a,rootBoundary:x,mainAxis:T!=="none",crossAxis:B0,limiter:H||S?void 0:FH((N0)=>{if(!e.current)return{};let{width:A1,height:o0}=e.current.getBoundingClientRect(),U1=H6(U6(N0.placement)),L1=U1==="y"?A1:o0,a0=U1==="y"?Q0.left+Q0.right:Q0.top+Q0.bottom;return{offset:L1/2+a0/2}})},[a,H,S,x,Q0,T]);if(D==="shift"||T==="shift"||G==="center")k0.push(H0,h0);else k0.push(h0,H0);k0.push(kH({...a,apply({elements:{floating:N0},availableWidth:A1,availableHeight:o0,rects:U1}){if(!u.current)return;let L1=N0.style;L1.setProperty(_j,`${A1}px`),L1.setProperty(kj,`${o0}px`);let a0=q1(N0).devicePixelRatio||1,{x:V1,y:i1,width:j1,height:g1}=U1.reference,h1=(Math.round((V1+j1)*a0)-Math.round(V1*a0))/a0,P2=(Math.round((i1+g1)*a0)-Math.round(i1*a0))/a0;L1.setProperty(Vj,`${h1}px`),L1.setProperty(Mj,`${P2}px`)}}),Wj((N0)=>({element:e.current||y0(N0.elements.floating).createElement("div"),padding:e.current?W:0,offsetParent:"floating"}),[W]),{name:"transformOrigin",fn(N0){let{elements:{floating:A1},middlewareData:o0,placement:U1,platform:L1,rects:a0,y:V1}=N0,i1=U6(U1),j1=l6(U1),g1=H6(i1)==="y",h1=e.current,P2=typeof z==="function"?z(jj(N0,Q,I)):z,I6;if(!h1&&j1&&Math.abs(g1?o0.shift?.x||0:o0.shift?.y||0)<=1)I6=j1==="start"===(g1&&L1.isRTL?.(A1)===!0)?"100%":"0%";else{let r1=g1?o0.arrow?.x||0:o0.arrow?.y||0,Z6=g1?h1?.clientWidth||0:h1?.clientHeight||0;I6=`${r1+Z6/2}px`}let E2=i1==="top"||i1==="left"?`calc(100% + ${P2}px)`:`${-P2}px`;if(B0&&g1&&Math.abs(o0.shift?.y||0)>P2)E2=`${a0.reference.y+a0.reference.height/2-V1}px`;return A1.style.setProperty(Fj,g1?`${I6} ${E2}`:`${E2} ${I6}`),{}}},Bj,_),J0(()=>{if(!j&&F)F.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[j,F]);let D0=w6.useMemo(()=>({ancestorScroll:!B,elementResize:!B&&typeof ResizeObserver<"u",layoutShift:!B&&typeof IntersectionObserver<"u"}),[B]),{refs:x0,elements:b0,x:A0,y:M0,middlewareData:$0,update:n,placement:s,context:z0,isPositioned:d,floatingStyles:f1}=Z({rootContext:F,open:V?j:void 0,placement:W0,middleware:k0,strategy:q,whileElementsMounted:V?void 0:(...N0)=>AJ(...N0,D0),nodeId:M,externalTree:C}),{sideX:w0,sideY:X1}=$0.adaptiveOrigin||Kj,C0=d?q:"fixed",m0=w6.useMemo(()=>{let N0;if(!d)N0={position:C0,top:0,left:0};else if(_)N0={position:C0,[w0]:A0,[X1]:M0};else N0={...f1,position:C0};if(N0[_j]="100vw",N0[kj]="100vh",!d)N0.opacity=0;return N0},[_,C0,w0,A0,X1,M0,f1,d]),$1=w6.useRef(null);J0(()=>{if(!j)return;let N0=E.current,A1=typeof N0==="function"?N0():N0,U1=(Cj(A1)?A1.current:A1)||null||null;if(U1!==$1.current)x0.setPositionReference(U1),$1.current=U1},[j,x0,P,E]),w6.useEffect(()=>{if(!j)return;let N0=E.current;if(typeof N0==="function")return;if(Cj(N0)&&N0.current!==$1.current)x0.setPositionReference(N0.current),$1.current=N0.current},[j,x0,P,E]),w6.useEffect(()=>{if(V&&j&&b0.reference&&b0.floating)return AJ(b0.reference,b0.floating,n,D0);return},[V,j,b0,n,D0]);let J1=U6(s),b1=Nj(Q,J1,I),w1=l6(s)||"center",O2=Boolean($0.hide?.referenceHidden);J0(()=>{if(k&&j&&d&&J1!==t)N(J1)},[k,j,d,J1,t]);let U2=w6.useMemo(()=>({position:"absolute",top:$0.arrow?.y,left:$0.arrow?.x}),[$0.arrow]),Y1=$0.arrow?.centerOffset!==0;return w6.useMemo(()=>({positionerStyles:m0,arrowStyles:U2,arrowRef:e,arrowUncentered:Y1,side:b1,align:w1,physicalSide:J1,anchorHidden:O2,refs:x0,context:z0,isPositioned:d,update:n}),[m0,U2,e,Y1,b1,w1,J1,O2,x0,z0,d,n])}function Cj(A){return A!=null&&"current"in A}var wz=g(p(),1),jH=wz.createContext(void 0);function Dj(){let A=wz.useContext(jH);if(A===void 0)throw Error(v1(84));return A}function Tj(A){return A==="starting"?f_:_1}function wj(A,Z,{styles:J,transitionStatus:q,props:Q,refs:z,hidden:G,inert:X=!1}){let Y={...J};if(X)Y.pointerEvents="none";return O0("div",A,{state:Z,ref:z,props:[{role:"presentation",hidden:G,style:Y},Tj(q),Q],stateAttributesMapping:gZ})}var hj=hz.forwardRef(function(Z,J){let{toast:q,...Q}=Z,z=v4(),G=q.positionerProps??_1,{render:X,className:Y,anchor:U=G.anchor,positionMethod:H=G.positionMethod??"absolute",side:W=G.side??"top",align:B=G.align??"center",sideOffset:K=G.sideOffset??0,alignOffset:V=G.alignOffset??0,collisionBoundary:F=G.collisionBoundary??"clipping-ancestors",collisionPadding:j=G.collisionPadding??5,arrowPadding:$=G.arrowPadding??5,sticky:L=G.sticky??!1,disableAnchorTracking:M=G.disableAnchorTracking??!1,collisionAvoidance:_=G.collisionAvoidance??y_,style:k,...C}=Q,[O,N]=hz.useState(null),D=z.useState("toastIndex",q.id),T=z.useState("toastVisibleIndex",q.id),h=O1(U)?U:null,S=WH({open:!0,onOpenChange:B1,elements:{floating:O,reference:h}}),x=Oj({anchor:h,positionMethod:H,floatingRootContext:S,mounted:!0,side:W,sideOffset:K,align:B,alignOffset:V,collisionBoundary:F,collisionPadding:j,sticky:L,arrowPadding:$,disableAnchorTracking:M,keepMounted:!0,collisionAvoidance:_}),f={side:x.side,align:x.align,anchorHidden:x.anchorHidden},R=wj(Z,f,{styles:{...x.positionerStyles,[Bz]:q.transitionStatus==="ending"?D:T},transitionStatus:q.transitionStatus,props:C,refs:[J,N]});return w(jH.Provider,{value:x,children:R})});var xj=g(p(),1);var Sj=xj.forwardRef(function(Z,J){let{className:q,render:Q,style:z,...G}=Z,{arrowRef:X,side:Y,align:U,arrowUncentered:H,arrowStyles:W}=Dj();return O0("div",Z,{state:{side:Y,align:U,uncentered:H},ref:[J,X],props:[{style:W,"aria-hidden":!0},G]})});var Pj=g(p(),1);function Ij(){let A=v4(),Z=A.useState("toasts");return Pj.useMemo(()=>({toasts:Z,add:A.addToast,close:A.closeToast,update:A.updateToast,promise:A.promiseToast}),[Z,A])}function fj(){let A=new Set;function Z(J){A.forEach((q)=>q(J))}return{" subscribe":function(q){return A.add(q),()=>{A.delete(q)}},add(J){let q=J.id||Qz("toast"),Q={...J,id:q,transitionStatus:"starting"};return Z({action:"add",options:Q}),q},close(J){Z({action:"close",options:{id:J}})},update(J,q){Z({action:"update",options:{id:J,updates:q}})},promise(J,q){let Q=J;return Z({action:"promise",options:{...q,promise:J,setPromise(z){Q=z}}}),Q}}}var bj=g(p(),1);var CH=bj.forwardRef(function(Z,J){let{render:q,className:Q,disabled:z=!1,focusableWhenDisabled:G=!1,nativeButton:X=!0,style:Y,...U}=Z,{getButtonProps:H,buttonRef:W}=D6({disabled:z,focusableWhenDisabled:G,native:X});return O0("button",Z,{state:{disabled:z},ref:[J,W],props:[U,H]})});var cf=U4("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=\'size-\'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=\'size-\'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*=\'size-\'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function n2({className:A,variant:Z="default",size:J="default",...q}){return w(CH,{"data-slot":"button",className:T0(cf({variant:Z,size:J,className:A})),...q})}var C5=c2.createToastManager();function mf({...A}){return w(c2.Provider,{...A})}function pf({...A}){return w(c2.Portal,{"data-slot":"toast-portal",...A})}function df({className:A,...Z}){return w(c2.Viewport,{"data-slot":"toast-viewport",className:T0("pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full",A),...Z})}function lf({className:A,...Z}){return w(c2.Root,{"data-slot":"toast",className:T0("group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-2xl border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]","h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]","after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-[\'\']","data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]","data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]","[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]","data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]","data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",A),...Z})}function rf({className:A,...Z}){return w(c2.Content,{"data-slot":"toast-content",className:T0("flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100",A),...Z})}function of({className:A,...Z}){return w(c2.Title,{"data-slot":"toast-title",className:T0("text-sm font-medium",A),...Z})}function af({className:A,...Z}){return w(c2.Description,{"data-slot":"toast-description",className:T0("text-sm text-muted-foreground",A),...Z})}function sf({className:A,render:Z=w(n2,{variant:"outline",size:"sm"}),...J}){return w(c2.Action,{"data-slot":"toast-action",render:Z,className:T0("shrink-0",A),...J})}function nf({className:A,children:Z,render:J=w(n2,{variant:"ghost",size:"icon-sm"}),...q}){return w(c2.Close,{"data-slot":"toast-close","aria-label":"Close toast",render:J,className:T0("relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[\'\'] hover:text-foreground",A),...q,children:Z??w(BA,{"aria-hidden":"true"})})}function tf({type:A}){let Z=null;if(A==="success")Z=w(tA,{"aria-hidden":"true"});if(A==="info")Z=w(hZ,{"aria-hidden":"true"});if(A==="warning")Z=w(J9,{"aria-hidden":"true"});if(A==="error")Z=w(A9,{className:"text-destructive","aria-hidden":"true"});if(A==="loading")Z=w(eA,{className:"animate-spin","aria-hidden":"true"});if(!Z)return null;return w("span",{"data-slot":"toast-icon",className:"shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*=\'size-\'])]:size-4",children:Z})}function ef(){let{toasts:A}=c2.useToastManager();return A.map((Z)=>w(lf,{toast:Z,children:Y0(rf,{children:[w(tf,{type:Z.type}),Y0("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[w(of,{}),w(af,{})]}),w(sf,{}),w(nf,{})]})},Z.id))}function Rj({children:A,toastManager:Z=C5,...J}){return Y0(mf,{toastManager:Z,...J,children:[A,w(pf,{children:w(df,{children:w(ef,{})})})]})}var eU2=c2.createToastManager,AH2=c2.useToastManager;class xz{events=this;scopedEntries=new Map;universalEntries=[];nextId=0;nextOrder=0;on(A,Z,J){let q=this.nextId++,Q=this.scopedEntries.get(A)??[];return Q.push({kind:"scoped",listener:Z,once:J?.once??!1,id:q,order:this.nextOrder++}),this.scopedEntries.set(A,Q),()=>this.off(q)}all(A,Z){let J=this.nextId++;return this.universalEntries.push({kind:"universal",typeListener:A,once:Z?.once??!1,id:J,order:this.nextOrder++}),()=>this.off(J)}dispatch(A,...Z){let J=[...this.scopedEntries.get(A)??[],...this.universalEntries].sort((Q,z)=>Q.order-z.order),q=Z[0];for(let Q of J){if(Q.kind==="scoped")Q.listener(q);else Q.typeListener(A,q);if(Q.once)this.off(Q.id)}}dispose(){this.scopedEntries.clear(),this.universalEntries.length=0}off(A){for(let[Z,J]of this.scopedEntries){let q=J.filter((Q)=>Q.id!==A);if(q.length!==J.length)this.scopedEntries.set(Z,q)}this.universalEntries=this.universalEntries.filter((Z)=>Z.id!==A)}}class NH{dispatcher=new xz;events=this.dispatcher.events;snapshot=null;offline=!1;stream=null;start(){if(this.stream!==null)return;let A=new EventSource("/events");this.stream=A,A.onmessage=()=>void this.load(),A.onopen=()=>this.set({offline:!1}),A.onerror=()=>this.set({offline:!0}),this.load()}dispose(){this.stream?.close(),this.stream=null}async load(){try{let A=await fetch("/api/snapshot");if(!A.ok)throw Error(`snapshot: ${A.status}`);this.set({snapshot:await A.json(),offline:!1})}catch{this.set({offline:!0})}}set(A){Object.assign(this,A),this.dispatcher.dispatch("changed")}}var MN=g(p(),1);function yj(A){return O0(A.defaultTagName??"div",A,A)}var Ab=U4("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function OH({className:A,variant:Z="default",render:J,...q}){return yj({defaultTagName:"span",props:$A({className:T0(Ab({variant:Z}),A)},q),render:J,state:{slot:"badge",variant:Z}})}var B4={};r2(B4,{createHandle:()=>jC,Viewport:()=>BC,Trigger:()=>kC,Title:()=>$C,Root:()=>HC,Portal:()=>sj,Popup:()=>ij,Handle:()=>yz,Description:()=>mj,Close:()=>uj,Backdrop:()=>vj});var Ej=g(p(),1);var Sz=g(p(),1),DH=Sz.createContext(void 0);function h2(A){let Z=Sz.useContext(DH);if(!A&&Z===void 0)throw Error(v1(27));return Z}var vj=Ej.forwardRef(function(Z,J){let{render:q,className:Q,style:z,forceRender:G=!1,...X}=Z,Y=h2(),U=Y.useState("open"),H=Y.useState("nested"),W=Y.useState("mounted"),B=Y.useState("transitionStatus");return O0("div",Z,{state:{open:U,transitionStatus:B},ref:[Y.context.backdropRef,J],stateAttributesMapping:JF,props:[{role:"presentation",hidden:!W,style:{userSelect:"none",WebkitUserSelect:"none"}},X],enabled:G||!H})});var gj=g(p(),1);var uj=gj.forwardRef(function(Z,J){let{render:q,className:Q,style:z,disabled:G=!1,nativeButton:X=!0,...Y}=Z,U=h2(),H=U.useState("open"),{getButtonProps:W,buttonRef:B}=D6({disabled:G,native:X}),K={disabled:G};function V(F){if(H)U.setOpen(!1,y1(e0.closePress,F.nativeEvent))}return O0("button",Z,{state:K,ref:[J,B],props:[{onClick:V},Y,W]})});var cj=g(p(),1);var mj=cj.forwardRef(function(Z,J){let{render:q,className:Q,style:z,id:G,...X}=Z,Y=h2(),U=$2(G);return Y.useSyncedValueWithCleanup("descriptionElementId",U),O0("p",Z,{ref:J,props:[{id:U},X]})});var lj=g(p(),1);var Pz=g(p(),1),TH=Pz.createContext(void 0);function Iz(){let A=Pz.useContext(TH);if(A===void 0)throw Error(v1(26));return A}var pj="--nested-dialogs";var EH2=X5.open,vH2=X5.closed,gH2=X5.startingStyle,uH2=X5.endingStyle;var dj="data-nested-dialog-open";var fz={...gZ,...f4,nestedDialogOpen(A){return A?{[dj]:""}:null}};var ij=lj.forwardRef(function(Z,J){let{render:q,className:Q,style:z,finalFocus:G,initialFocus:X,...Y}=Z,U=h2(),H=U.useState("descriptionElementId"),W=U.useState("disablePointerDismissal"),B=U.useState("floatingRootContext"),K=U.useState("popupProps"),V=U.useState("modal"),F=U.useState("mounted"),j=U.useState("nested"),$=U.useState("nestedOpenDialogCount"),L=U.useState("open"),M=U.useState("openMethod"),_=U.useState("titleElementId"),k=U.useState("transitionStatus"),C=U.useState("role"),O=B.useState("floatingId");Iz(),y4({open:L,ref:U.context.popupRef,onComplete(){if(L)U.context.onOpenChangeComplete?.(!0)}});let N=X===void 0?Nk(U.context.popupRef):X,D=$>0,T=U.useStateSetter("popupElement"),S=O0("div",Z,{state:{open:L,nested:j,transitionStatus:k,nestedDialogOpen:D},props:[K,{id:O,"aria-labelledby":_,"aria-describedby":H,role:C,...Ck,hidden:!F,onKeyDown(x){if(sQ.has(x.key))x.stopPropagation()},style:{[pj]:$}},Y],ref:[J,U.context.popupRef,T],stateAttributesMapping:fz});return w(QH,{context:B,openInteractionType:M,disabled:!F,closeOnFocusOut:!W,initialFocus:N,returnFocus:G,modal:V!==!1,restoreFocus:"popup",children:S})});var aj=g(p(),1);var rj=g(p(),1);var oj=rj.forwardRef(function(Z,J){let{cutout:q,...Q}=Z,z;if(q){let G=q.getBoundingClientRect();z=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${G.left}px ${G.top}px,${G.left}px ${G.bottom}px,${G.right}px ${G.bottom}px,${G.right}px ${G.top}px,${G.left}px ${G.top}px)`}return w("div",{ref:J,role:"presentation","data-base-ui-inert":"",...Q,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:z}})});var sj=aj.forwardRef(function(Z,J){let{keepMounted:q=!1,...Q}=Z,z=h2(),G=z.useState("mounted"),X=z.useState("modal"),Y=z.useState("open");if(!(G||q))return null;return w(TH.Provider,{value:q,children:Y0(tU,{ref:J,...Q,children:[G&&X===!0&&w(oj,{ref:z.context.internalBackdropRef,inert:d7(!Y)}),Z.children]})})});var YC=g(p(),1);var wH=g(p(),1);var nj={},tj={},ej="";function bz(A,Z){return J5(A)?A:Z}function AC(A,Z,J){return/hidden|clip/.test(A.getComputedStyle(bz(Z,J)).overflowY)}function qb(A){if(typeof document>"u")return!1;let Z=y0(A);return q1(Z).innerWidth-Z.documentElement.clientWidth>0}function Qb(A){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let J=y0(A),q=J.documentElement,Q=J.body,z=bz(q,Q),G=z.style.overflowY,X=q.style.scrollbarGutter;q.style.scrollbarGutter="stable",z.style.overflowY="scroll";let Y=z.offsetWidth;z.style.overflowY="hidden";let U=z.offsetWidth;return z.style.overflowY=G,q.style.scrollbarGutter=X,Y===U}function zb(A){let Z=y0(A),J=Z.documentElement,q=Z.body,Q=bz(J,q),z={overflowY:Q.style.overflowY,overflowX:Q.style.overflowX};return Object.assign(Q.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(Q.style,z)}}function Gb(A){let Z=y0(A),J=Z.documentElement,q=Z.body,Q=q1(J),z=0,G=0,X=!1,Y=i6.create();if(z2.engine.webkit&&(Q.visualViewport?.scale??1)!==1)return()=>{};function U(){let K=Q.getComputedStyle(J),V=Q.getComputedStyle(q),$=(K.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";z=J.scrollTop,G=J.scrollLeft,nj={scrollbarGutter:J.style.scrollbarGutter,overflowY:J.style.overflowY,overflowX:J.style.overflowX},ej=J.style.scrollBehavior,tj={position:q.style.position,height:q.style.height,width:q.style.width,boxSizing:q.style.boxSizing,overflowY:q.style.overflowY,overflowX:q.style.overflowX,scrollBehavior:q.style.scrollBehavior};let L=J.scrollHeight>J.clientHeight,M=J.scrollWidth>J.clientWidth,_=K.overflowY==="scroll"||V.overflowY==="scroll",k=K.overflowX==="scroll"||V.overflowX==="scroll",C=Math.max(0,Q.innerWidth-q.clientWidth),O=Math.max(0,Q.innerHeight-q.clientHeight),N=parseFloat(V.marginTop)+parseFloat(V.marginBottom),D=parseFloat(V.marginLeft)+parseFloat(V.marginRight),T=bz(J,q);if(X=Qb(A),X){J.style.scrollbarGutter=$,T.style.overflowY="hidden",T.style.overflowX="hidden";return}if(Object.assign(J.style,{scrollbarGutter:$,overflowY:"hidden",overflowX:"hidden"}),L||_)J.style.overflowY="scroll";if(M||k)J.style.overflowX="scroll";Object.assign(q.style,{position:"relative",height:N||O?`calc(100dvh - ${N+O}px)`:"100dvh",width:D||C?`calc(100vw - ${D+C}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),q.scrollTop=z,q.scrollLeft=G,J.setAttribute("data-base-ui-scroll-locked",""),J.style.scrollBehavior="unset"}function H(){if(Object.assign(J.style,nj),Object.assign(q.style,tj),!X)J.scrollTop=z,J.scrollLeft=G,J.removeAttribute("data-base-ui-scroll-locked"),J.style.scrollBehavior=ej}function W(){H(),Y.request(U)}U();let B=i0(Q,"resize",W);return()=>{if(Y.cancel(),H(),typeof Q.removeEventListener==="function")B()}}class ZC{lockCount=0;restore=null;timeoutLock=T6.create();timeoutUnlock=T6.create();acquire(A){if(this.lockCount+=1,this.lockCount===1&&this.restore===null)this.timeoutLock.start(0,()=>this.lock(A));return this.release}release=()=>{if(this.lockCount-=1,this.lockCount===0&&this.restore)this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{if(this.lockCount===0&&this.restore)this.restore?.(),this.restore=null};lock(A){if(this.lockCount===0||this.restore!==null)return;let Z=y0(A),J=Z.documentElement,q=Z.body,Q=q1(J);if(AC(Q,J,q)){let G=new Q.MutationObserver(()=>{if(AC(Q,J,q))return;G.disconnect(),this.restore=null,this.lock(A)}),X={attributes:!0};G.observe(J,X),G.observe(q,X),this.restore=()=>G.disconnect();return}let z=z2.os.ios||!qb(A);this.restore=z?zb(A):Gb(A)}}var Xb=new ZC;function JC(A=!0,Z=null){J0(()=>{if(!A)return;return Xb.acquire(Z)},[A,Z])}function qC({store:A,parentContext:Z,isDrawer:J}){let q=A.useState("open"),Q=A.useState("disablePointerDismissal"),z=A.useState("modal"),G=A.useState("popupElement"),X=A.useState("floatingRootContext"),[Y,U]=wH.useState(0),[H,W]=wH.useState(0),B=Y===0,K=GH(X,{outsidePressEvent(){if(A.context.internalBackdropRef.current||A.context.backdropRef.current)return"intentional";return{mouse:z==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(V){if(!A.context.outsidePressEnabledRef.current)return!1;if("button"in V&&V.button!==0)return!1;if("touches"in V){if(V.type==="touchend"){if(V.changedTouches.length!==1||V.touches.length!==0)return!1}else if(V.touches.length!==1)return!1}let F=D1(V);if(B&&!Q){if(z){let j=A.context.internalBackdropRef.current,$=A.context.backdropRef.current;return j||$?j===F||$===F||I0(F,G)&&!F?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:B});return JC(q&&z===!0,G),A.useContextCallback("onNestedDialogOpen",(V,F)=>{U(V),W(F)}),J0(()=>{if(Z?.onNestedDialogOpen)if(q)Z.onNestedDialogOpen(Y+1,H+(J?1:0));else Z.onNestedDialogOpen(0,0);return()=>{if(Z?.onNestedDialogOpen&&q)Z.onNestedDialogOpen(0,0)}},[J,q,Y,H,Z]),Sk(A,{activeTriggerProps:K.reference,inactiveTriggerProps:K.trigger,popupProps:K.floating,nestedOpenDialogCount:Y,nestedOpenDrawerCount:H}),null}var Rz=g(p(),1);class hH extends FA{setState(A){}update(A){}set(A,Z){}notifyAll(){}}var QC={...Rk,modal:(A)=>A.modal,nested:(A)=>A.nested,nestedOpenDialogCount:(A)=>A.nestedOpenDialogCount,nestedOpenDrawerCount:(A)=>A.nestedOpenDrawerCount,disablePointerDismissal:(A)=>A.disablePointerDismissal,openMethod:(A)=>A.openMethod,descriptionElementId:(A)=>A.descriptionElementId,titleElementId:(A)=>A.titleElementId,viewportElement:(A)=>A.viewportElement,role:(A)=>A.role};class xH extends FA{constructor(A,Z,J){let q=new o7,Q=GC(A,q,Z,J);super(Q,XC(q),QC)}setOpen=(A,Z)=>{if(Z.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!A&&Z.trigger==null&&this.state.activeTriggerId!=null)Z.trigger=this.state.activeTriggerElement??void 0;if(this.context.onOpenChange?.(A,Z),Z.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(A,Z),this.update(Tk(this.state,A,Z.trigger))}}function zC(){let A=new o7;return new hH(Object.freeze(GC(void 0,A)),Object.freeze(XC(A)),QC)}function GC(A,Z,J,q=!1){return{...fk(Z,J,q),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...A}}function XC(A){return{popupRef:Rz.createRef(),backdropRef:Rz.createRef(),internalBackdropRef:Rz.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:A,onOpenChange:void 0,onOpenChangeComplete:void 0}}function UC(A,Z){let{children:J,open:q,defaultOpen:Q=!1,onOpenChange:z,onOpenChangeComplete:G,disablePointerDismissal:X=!1,modal:Y=!0,actionsRef:U,handle:H,triggerId:W,defaultTriggerId:B=null}=Z,K=A==="drawer",V=A==="alert-dialog",F=V?!0:Y,j=V||X,$=V?"alertdialog":"dialog",L=h2(!0),M=L!=null,_={modal:F,disablePointerDismissal:j,nested:M,role:$},k=Ok((h,S)=>new xH({open:Q,openProp:q,activeTriggerId:B,triggerIdProp:W,..._},h,S),!0);k.useControlledProp("openProp",q),k.useControlledProp("triggerIdProp",W),k.useSyncedValues(_),k.useContextCallback("onOpenChange",z),k.useContextCallback("onOpenChangeComplete",G);let C=k.useState("open"),O=k.useState("mounted"),N=k.useState("payload");Pk(k,C),hk(k);let{forceUnmount:D}=xk(C,k);YC.useImperativeHandle(U,()=>({unmount:D,close:()=>k.setOpen(!1,y1(e0.imperativeAction))}),[D,k]);let T=C||O;return Y0(DH.Provider,{value:k,children:[H&&w(Dk,{handle:H,store:k}),T&&w(qC,{store:k,parentContext:L?.context,isDrawer:K}),typeof J==="function"?J({payload:N}):J]})}var HC=pU(function(Z){return UC("dialog",Z)});var WC=g(p(),1);var BC=WC.forwardRef(function(Z,J){let{render:q,className:Q,style:z,children:G,...X}=Z,Y=Iz(),U=h2(),H=U.useState("open"),W=U.useState("nested"),B=U.useState("transitionStatus"),K=U.useState("nestedOpenDialogCount"),V=U.useState("mounted"),F=U.useStateSetter("viewportElement"),j=K>0;return O0("div",Z,{enabled:Y||V,state:{open:H,nested:W,transitionStatus:B,nestedDialogOpen:j},ref:[J,F],stateAttributesMapping:fz,props:[{role:"presentation",hidden:!V,style:{pointerEvents:!H?"none":void 0},children:G},X]})});var KC=g(p(),1);var $C=KC.forwardRef(function(Z,J){let{render:q,className:Q,style:z,id:G,...X}=Z,Y=h2(),U=$2(G);return Y.useSyncedValueWithCleanup("titleElementId",U),O0("h2",Z,{ref:J,props:[{id:U},X]})});var _C=g(p(),1);var SH=g(p(),1);var ZJ=g(p(),1);function LC(A){let Z=ZJ.useRef(""),J=ZJ.useCallback((Q)=>{if(Q.defaultPrevented)return;Z.current=Q.pointerType,A(Q,Q.pointerType)},[A]);return{onClick:ZJ.useCallback((Q)=>{if(Q.detail===0){A(Q,"keyboard");return}if("pointerType"in Q)A(Q,Q.pointerType);else A(Q,Z.current);Z.current=""},[A]),onPointerDown:J}}var VC=g(p(),1);function MC(A,Z){let J=VC.useRef(A),q=X0(Z);J0(()=>{if(J.current!==A)q(J.current);J.current=A},[A,q])}function FC(A,Z){let J=X0((z,G)=>{if(!(typeof A==="function"?A():A))Z(G||(z2.os.ios?"touch":""))}),{onClick:q,onPointerDown:Q}=LC(J);return SH.useMemo(()=>({onClick:q,onPointerDown:Q}),[q,Q])}var kC=D_(function(Z,J){let{render:q,className:Q,style:z,disabled:G=!1,nativeButton:X=!0,id:Y,payload:U,handle:H,...W}=Z,B=h2(!0),V=Ek(H)??B;if(!V)throw Error(v1(79));let F=$2(Y),j=V.useState("floatingRootContext"),$=V.useState("isOpenedByTrigger",F),L=V.useState("triggerPopupId",F),M=_C.useRef(null),{registerTrigger:_,isMountedByThisTrigger:k}=wk(F,M,V,{payload:U}),{getButtonProps:C,buttonRef:O}=D6({disabled:G,native:X}),N=zH(j),D=FC(()=>V.select("open"),(S)=>{V.set("openMethod",S)}),T={disabled:G,open:$},h=V.useState("triggerProps",k);return O0("button",Z,{state:T,ref:[O,J,_,M],props:[N.reference,h,D,{[Uz]:"",id:F,"aria-haspopup":"dialog","aria-expanded":$,"aria-controls":L},W,C],stateAttributesMapping:ZF})});class yz extends XH{constructor(){super(zC(),"Dialog",!1)}open(A){this.openByTrigger(A)}openWithPayload(A){let Z=this.attachedStore;if(Z===null)return;Z.set("payload",A),Z.setOpen(!0,y1(e0.imperativeAction))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}function jC(){return new yz}function JJ({...A}){return w(B4.Root,{"data-slot":"dialog",...A})}function Yb({...A}){return w(B4.Portal,{"data-slot":"dialog-portal",...A})}function Ub({className:A,...Z}){return w(B4.Backdrop,{"data-slot":"dialog-overlay",className:T0("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",A),...Z})}function Ez({className:A,children:Z,showCloseButton:J=!0,...q}){return Y0(Yb,{children:[w(Ub,{}),Y0(B4.Popup,{"data-slot":"dialog-content",className:T0("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",A),...q,children:[Z,J&&Y0(B4.Close,{"data-slot":"dialog-close",render:w(n2,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[w(BA,{}),w("span",{className:"sr-only",children:"Close"})]})]})]})}function vz({className:A,...Z}){return w("div",{"data-slot":"dialog-header",className:T0("flex flex-col gap-2",A),...Z})}function CC({className:A,showCloseButton:Z=!1,children:J,...q}){return Y0("div",{"data-slot":"dialog-footer",className:T0("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",A),...q,children:[J,Z&&w(B4.Close,{render:w(n2,{variant:"outline"}),children:"Close"})]})}function gz({className:A,...Z}){return w(B4.Title,{"data-slot":"dialog-title",className:T0("text-base leading-none font-medium",A),...Z})}function uz({className:A,...Z}){return w(B4.Description,{"data-slot":"dialog-description",className:T0("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",A),...Z})}function cz({className:A,...Z}){return w("div",{"data-slot":"empty",className:T0("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",A),...Z})}function mz({className:A,...Z}){return w("div",{"data-slot":"empty-header",className:T0("flex max-w-sm flex-col items-center gap-2",A),...Z})}var Hb=U4("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*=\'size-\'])]:size-4"}},defaultVariants:{variant:"default"}});function pz({className:A,variant:Z="default",...J}){return w("div",{"data-slot":"empty-icon","data-variant":Z,className:T0(Hb({variant:Z,className:A})),...J})}function dz({className:A,...Z}){return w("div",{"data-slot":"empty-title",className:T0("text-sm font-medium tracking-tight",A),...Z})}function lz({className:A,...Z}){return w("div",{"data-slot":"empty-description",className:T0("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",A),...Z})}class iz extends Error{}class PH{heading;level;line;body;lead;constructor(A,Z,J,q,Q){this.heading=A;this.level=Z;this.line=J;this.body=q;this.lead=Q}codeBlocks(A="body"){let Z=[],J=null;for(let q of this[A].split(`\n`)){let Q=q.match(/^(```+|~~~+)\\s*(\\S*)/);if(J===null&&Q)J={mark:Q[1]??"`",lang:Q[2]??"",code:[]};else if(J!==null&&Q&&Q[2]===""&&Q[1]?.[0]===J.mark[0])Z.push({lang:J.lang,code:J.code.join(`\n`)}),J=null;else if(J!==null)J.code.push(q)}return Z}}class s7{text;fields;body;sections;constructor(A,Z,J,q){this.text=A;this.fields=Z;this.body=J;this.sections=q}static parse(A){let{fields:Z,body:J,offset:q}=Wb(A);return new s7(A,Z,J,Bb(J,q))}get title(){return this.sections.find((A)=>A.level===1)?.heading??null}field(A){let Z=this.fields[A];if(Z===void 0)throw new iz(`no field "${A}" (have: ${Object.keys(this.fields).join(", ")||"none"})`);return Z}has(A){return this.find(A)!==void 0}section(A){let Z=this.find(A);if(!Z)throw new iz(`no section "${A}" (have: ${this.sections.map((J)=>J.heading).join(", ")||"none"})`);return Z}find(A){let Z=A.toLowerCase();return this.sections.find((J)=>J.heading.toLowerCase()===Z)}}function Wb(A){let Z=A.match(/^---\\n([\\s\\S]*?)\\n---(?:\\n|$)/);if(!Z)return{fields:{},body:A,offset:0};let J={};for(let q of(Z[1]??"").split(`\n`)){let Q=q.match(/^(\\S+):\\s*(.*)$/);if(Q?.[1])J[Q[1]]=(Q[2]??"").trim().replace(/^(["\'])(.*)\\1$/,"$2")}return{fields:J,body:A.slice(Z[0].length),offset:Z[0].split(`\n`).length-1}}function Bb(A,Z){let J=A.split(`\n`),q=[],Q=null;for(let[z,G]of J.entries()){let X=G.match(/^(```+|~~~+)/)?.[1];if(X){Q=Q===null?X:Q[0]===X[0]?null:Q;continue}let Y=Q===null&&G.match(/^(#{1,6})\\s+(.*)$/);if(Y)q.push({heading:(Y[2]??"").trim(),level:(Y[1]??"#").length,index:z})}return q.map(({heading:z,level:G,index:X},Y)=>{let U=q.slice(Y+1),H=U.find((B)=>B.level<=G)?.index??J.length,W=U.find((B)=>B.index<H)?.index??H;return new PH(z,G,X+Z+1,J.slice(X+1,H).join(`\n`).trim(),J.slice(X+1,W).join(`\n`).trim())})}var Kb=/^[ \\t]*- \\[([ xX])\\]/gm,$b=["Done","Next"];function NC(A){let Z=s7.parse(A),J=$b.flatMap((q)=>Z.has(q)?[...Z.section(q).body.matchAll(Kb)]:[]);if(J.length===0)return null;return{done:J.filter((q)=>q[1]!==" ").length,total:J.length}}var A6=g(p(),1);var rz;function OC(A){if(!rz){if(typeof document>"u")return;rz=document.createElement("textarea")}var Z=`&${A};`;rz.innerHTML=Z;var J=rz.value;return J===Z?void 0:J}var q0=32,U0=9,C9=13,_0=10,z1=96,V2=126,T1=91,kA=94,c0=62,e6=35,yH=37,E0=45,s6=61,G2=92,n1=42,l1=95,k1=60,qN=64,S6=93,d2=33,GG=38,p2=58,EH=70,w5=102,AG=104,T5=119,J8=116,vH=112,QN=115,Lb=160,Vb=12,Mb=44,ZG=59,z8=63,n6=46,s1=47,h5=39,x5=34,N9=43,j2=124,S5=123,AW=125,x6=40,t6=41,Fb=78,_b=110,kb=79,jb=111,zN=120,GN=88,gH=30,g0=48,u0=57,P0=65,f0=90,K1=97,I1=122,XG=128,$4=32,Cb={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},r=Cb;function Nb(A){if(!TC(A,"---"))return null;let Z=3;for(;Z<A.length&&(A[Z]===" "||A[Z]==="\\t");)Z++;if(Z<A.length&&A[Z]==="\\r"&&Z++,Z>=A.length||A[Z]!==`\n`)return null;Z++;let J=!1;for(;Z<A.length;){let q=Z;for(;Z<A.length&&A[Z]!==`\n`&&A[Z]!=="\\r";)Z++;if(Z>=A.length)break;let Q=Z;if(A[Z]==="\\r"&&Z++,Z<A.length&&A[Z]===`\n`&&Z++,TC(A,"---",q))return{endPos:Z,hasValidYaml:J};if(!J){let z=bb(A,q,Q);if(z<Q){let G=A.charCodeAt(z);if(G>=K1&&G<=I1||G>=P0&&G<=f0||G>=g0&&G<=u0||G===l1){for(z++;z<Q&&(G=A.charCodeAt(z),G>=K1&&G<=I1||G>=P0&&G<=f0||G>=g0&&G<=u0||G===l1||G===E0||G===n6);)z++;z<Q&&A.charCodeAt(z)===p2&&(z++,z>=Q?J=!0:(G=A.charCodeAt(z),(G===q0||G===U0)&&(J=!0)))}}}}return null}var Ob=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,Db={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},Tb={};function XN(A){if(!A)return Tb;var Z={};for(var J in A){var q=J.toLowerCase(),Q=Db[q];if(Q)Z[Q]=A[J];else{var z=J.indexOf(":");z===-1?Z[J]=A[J]:Z[J.slice(0,z)+J[z+1].toUpperCase()+J.slice(z+2)]=A[J]}}return Z}var wb=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\\b)/i;function _9(A){return A.indexOf("&")===-1?A:A.replace(Ob,(Z,J)=>{var q=OC(J);if(q)return q;if(J[0]==="#"){var Q=J[1]==="x"||J[1]==="X"?Number.parseInt(J.slice(2),16):Number.parseInt(J.slice(1),10);return Q===0||Q>=55296&&Q<=57343||Q>1114111?"�":Q<=65535?String.fromCharCode(Q):String.fromCharCode(55296+(Q-65536>>10),56320+(Q-65536&1023))}return Z})}var DC=/(javascript|vbscript|data(?!:image)):/i;function _A(A){if(DC.test(A))return null;if(A.indexOf("%")===-1)return A;try{let Z=decodeURIComponent(A).replace(/[^A-Za-z0-9/:]/g,"");if(DC.test(Z))return null}catch{return null}return A}var m2={},t2,M2;for(t2=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],M2=0;M2<t2.length;M2++)m2[t2[M2]]="a";for(m2[231]=m2[199]="c",m2[240]=m2[208]="d",t2=[200,201,202,203,233,232,234,235],M2=0;M2<t2.length;M2++)m2[t2[M2]]="e";for(t2=[207,239,206,238,205,237,204,236],M2=0;M2<t2.length;M2++)m2[t2[M2]]="i";for(m2[209]=m2[241]="n",t2=[248,216,339,338,213,245,212,244,211,243,210,242],M2=0;M2<t2.length;M2++)m2[t2[M2]]="o";for(t2=[220,252,219,251,218,250,217,249],M2=0;M2<t2.length;M2++)m2[t2[M2]]="u";m2[376]=m2[255]=m2[221]=m2[253]="y";function P5(A){for(var Z="",J=-1,q=A.length,Q=0;Q<q;Q++){var z=A.charCodeAt(Q);if(z>=K1&&z<=I1||z>=g0&&z<=u0){J<0&&(J=Q);continue}if(z>=P0&&z<=f0){J>=0&&(Z+=A.slice(J,Q),J=-1),Z+=String.fromCharCode(z+$4);continue}if(z===q0||z===E0){J>=0&&(Z+=A.slice(J,Q),J=-1),Z+="-";continue}J>=0&&(Z+=A.slice(J,Q),J=-1);var G=m2[z];G&&(Z+=G)}return J>=0&&(Z+=A.slice(J)),Z}function TC(A,Z,J){return A.startsWith(Z,J)}var wC=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function zJ(A){let Z=A.toLowerCase();if(wC.has(Z))return!0;let J=Z.indexOf(":");return J!==-1?(Z=Z.slice(J+1),wC.has(Z)):!1}var D5=1,hC=2,e7=4,xC=8,hb=16,K4=32,V9=64,xb=(()=>{var A=new Uint8Array(128),Z;for(A[U0]=D5,A[_0]=D5|hC,A[Vb]=D5,A[C9]=D5|hC,A[q0]=D5,Z=d2;Z<=s1;Z++)A[Z]=e7;for(Z=p2;Z<=qN;Z++)A[Z]=e7;for(Z=T1;Z<=z1;Z++)A[Z]=e7;for(Z=S5;Z<=V2;Z++)A[Z]=e7;for(Z=g0;Z<=u0;Z++)A[Z]=hb;for(Z=P0;Z<=f0;Z++)A[Z]=xC;for(Z=K1;Z<=I1;Z++)A[Z]=xC;return A})(),Sb=/[\\p{P}\\p{S}]/u,Pb=/\\p{Zs}/u,N5=[];function Ib(A){var Z=A.indexOf("\\r"),J=A.indexOf("\\x00");if(Z===-1&&J===-1)return A;var q=A.length;N5.length=0;var Q=0,z=0;for(Z===-1?z=J:J===-1?z=Z:z=Z<J?Z:J;z<q;z++){var G=A.charCodeAt(z);G===C9?(Q<z&&N5.push(A.slice(Q,z)),z+1<q&&A.charCodeAt(z+1)===_0&&z++,N5.push(`\n`),Q=z+1):G===0&&(Q<z&&N5.push(A.slice(Q,z)),N5.push("�"),Q=z+1)}return Q<q&&N5.push(A.slice(Q)),N5.join("")}function fb(A){return A.replace(/>\\s+</g,"><").replace(/\\n+/g," ").trim()}function bb(A,Z,J){let q=J??A.length;for(;Z<q&&(A[Z]===" "||A[Z]==="\\t");)Z++;return Z}function YN(A){if(!A)return!1;for(var Z in A)return!0;return!1}function Rb(A){return{attrs:{},children:[{type:r.text,text:A}],c:!0,type:r.htmlBlock,tag:"header"}}var yb=/^\\n+/;function Eb(A){for(var Z=A.length;Z>0&&(A[Z-1]===`\n`||A[Z-1]==="\\r");)Z--;return`${A.slice(0,Z).replace(yb,"")}\n\n`}function A8(A){if((A.type===r.htmlSelfClosing||A.type===r.htmlBlock)&&A.a)return[];if(A.type===r.paragraph){var Z=A.children;return Z?Z.flatMap(A8):[]}return A.type===r.text?A.text?.trim()?[A]:[]:A.type===r.htmlBlock&&A.children?[{...A,children:A.children?.flatMap(A8)}]:[A]}function UN(A){for(var Z=0;Z<A.length;Z++){if(A[Z].type===r.htmlBlock){var J=A[Z],q=!1;if(J.c&&Z===A.length-1){var Q=J.j===void 0?J.a?J.e||"":(J.e||"")+(J.h||""):J.j,z=`</${String(J.tag).toLowerCase()}>`,G=Q.toLowerCase().indexOf(z);if(G!==-1){var X=Q.slice(G+z.length).replace(/<\\/[a-z][a-z0-9-]*\\s*>/gi,"");X.trim()&&(q=!0)}}q||(J.c=!1)}"children"in A[Z]&&A[Z].children&&UN(A[Z].children)}}function vb(A,Z){for(var J=0;J<A.length;J++){var q=A[J];if(q.type===r.paragraph&&q.children)for(var Q=q.children,z=0;z<Q.length;z++){var G=Q[z];if(G.type===r.htmlSelfClosing&&G.a&&G.tag.toLowerCase()===Z){var X=A.slice(0,J);z>0&&X.push({type:r.paragraph,children:Q.slice(0,z)});var Y=[];if(z+1<Q.length){var U=Q.slice(z+1).filter((H)=>!(H.type===r.htmlSelfClosing&&H.a));U.length>0&&(Y=U)}return Y=Y.concat(A.slice(J+1)),{found:!0,beforeClose:X,afterClose:Y}}}if((q.type===r.htmlSelfClosing||q.type===r.htmlBlock)&&q.a&&q.tag.toLowerCase()===Z)return{found:!0,beforeClose:A.slice(0,J),afterClose:A.slice(J+1)}}return{found:!1,beforeClose:A,afterClose:[]}}function gb(A){var Z="";for(var J in A){var q=A[J];q===!0?Z+=` ${J}`:q!==void 0&&q!=null&&q!==!1&&(Z+=` ${J}="${String(q)}"`)}return Z}function SC(A,Z,J,q){var Q;return Z===void 0?Q=gb(J):Q=Z.length>0&&Z.charCodeAt(0)>q0?` ${Z}`:Z,`<${A}${Q}${q}`}function PC(A){var Z=A.tag,J=A.type===r.htmlSelfClosing,q=A,Q=q.b,z=`</${Z}>`;if(!J&&q.a)return{kind:"literal",literal:(q.h||z)+(q.e||"")};if(J){var G=A;return G.a?{kind:"literal",literal:G.h||z}:G.m?{kind:"literal",literal:G.m}:{kind:"literal",literal:SC(Z,Q,A.attrs," />")}}var X=SC(Z,Q,A.attrs,">"),Y=q.children,U=Y!=null&&Y.length>0;if(q.c&&q.j!==void 0)return U?{kind:"sandwich",open:X,close:z}:{kind:"literal",literal:q.j};if(q.c&&!U)return{kind:"literal",literal:X+(q.e||"")+(q.h||z)};if(Y!=null&&Y.length>0){for(var H="",W=0;W<Y.length;W++){var B=Y[W];if(B.type!==r.text)return{kind:"sandwich",open:X,close:z};H+=B.text}return{kind:"literal",literal:X+H+z}}var K=q.e||"";return K&&K.indexOf(z)!==-1?{kind:"literal",literal:X+K}:{kind:"literal",literal:X+K+z}}function ub(A,Z,J){var q=[],Q=A,z=J;if(Q&&q.push(Q),Array.isArray(Z))for(var G=0;G<Z.length;G++)q.push(Z[G]);else Z!=null&&q.push(Z);z&&q.push(z);for(var X=[],Y=0;Y<q.length;Y++){var U=q[Y];typeof U=="string"&&X.length>0&&typeof X.at(-1)=="string"?X[X.length-1]=X.at(-1)+U:X.push(U)}return X}function t7(A){return A==null||A.tagfilter!==!1}function cb(A,Z,J,q){var Q=Z(A,J,q);return Q===null?null:pb(Q)}function mb(A){var Z=[];if(!A)return Z;for(var J in A)J.charCodeAt(0)===94&&Z.push({identifier:J,footnote:A[J].target});return Z}function IC(A){for(var Z=0,J=A.length;Z<J;){var q=A.charCodeAt(Z);if(q>=P0&&q<=f0)return A.toLowerCase();Z++}return A}function uH(A,Z,J){if(Z.indexOf(".")===-1){var q=A?.[Z];if(q)return q;if(A){var Q=IC(Z);if(Q!==Z){var z=A[Q];if(z)return z}}return J}for(var G=A,X=Z.split("."),Y=0,U=!1;Y<X.length;){if(G=G?.[X[Y]],G===void 0){U=Y===0;break}Y++}if(U&&A){var H=IC(X[0]);if(H!==X[0])for(G=A[H],Y=1;G!==void 0&&Y<X.length;)G=G?.[X[Y]],Y++}return G||J}function pb(A){for(var Z=!1,J=0;J<A.length;J++){var q=A.charCodeAt(J);if(q<=q0||q===x5||q===yH||q===k1||q===c0||q===T1||q===G2||q===S6||q===kA||q===z1||q>=123){Z=!0;break}}if(!Z)return A;for(var Q="",J=0;J<A.length;J++){var q=A.charCodeAt(J);if(q===yH&&J+2<A.length){var z=A.charCodeAt(J+1),G=A.charCodeAt(J+2);if((z>=g0&&z<=u0||z>=P0&&z<=EH||z>=K1&&z<=w5)&&(G>=g0&&G<=u0||G>=P0&&G<=EH||G>=K1&&G<=w5)){Q+=A[J]+A[J+1]+A[J+2],J+=2;continue}}if(q>=55296&&q<=57343){if(q<=56319&&J+1<A.length){var X=A.charCodeAt(J+1);if(X>=56320&&X<=57343){Q+=encodeURI(A[J]+A[J+1]),J++;continue}}Q+=A[J];continue}Q+=encodeURI(A[J])}return Q}function db(...A){return A.filter(Boolean).join(" ")}var lb=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),JG=/<(\\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\\s|>|\\/)/gi;function fC(A){return lb.has(A.toLowerCase())}function ib(A){return JG.lastIndex=0,JG.test(A)}function bC(A){return JG.lastIndex=0,A.replace(JG,(Z,J,q,Q)=>`<${J}${q}${Q}`)}function ZW(A,Z){var J=A||{},q=J.slugify,Q;if(q){var z=q;Q=(G)=>z(G,P5)}else Q=P5;return{disableAutoLink:J.disableAutoLink,disableFrontmatter:J.disableFrontmatter,disableParsingRawHTML:J.disableParsingRawHTML,enforceAtxHeadings:J.enforceAtxHeadings,evalUnserializableExpressions:J.evalUnserializableExpressions,forceBlock:J.forceBlock,forceInline:Z===void 0?J.forceInline:Z,ignoreHTMLBlocks:J.ignoreHTMLBlocks,optimizeForStreaming:J.optimizeForStreaming,preserveFrontmatter:J.preserveFrontmatter,sanitizer:J.sanitizer||_A,slugify:Q,tagfilter:t7(J)}}var rb=/^<([a-zA-Z][a-zA-Z0-9-]*)\\s[^>]*>/,ob=/^<[A-Z]/,cH=["script","pre","style","textarea"],GJ=new Set(cH),ab=/<(?:pre|script|style|textarea)\\b/i,RC=/<(?:pre|script|style|textarea)\\b/iy,IH=/^(\\s{0,3}#[#\\s]|\\s{0,3}[-*+]\\s|\\s{0,3}\\d+\\.\\s|\\s{0,3}>\\s|\\s{0,3}```)/m,yC=/^<([a-z][^ >/\\n\\r]*) ?([^>]*?)>/im,HN=new Uint8Array(128);(()=>{for(var A=[z1,n1,l1,V2,s6,T1,d2,k1,G2,GG,_0,AG,T5,w5],Z=0;Z<A.length;Z++)HN[A[Z]]=1})();var EC=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|\'([^\']*)\')/g;function sb(A){return GJ.has(A)}function nb(A){return ab.test(A)}function WN(A,Z,J){for(var q=Z,Q=J;q<Q&&(A.charCodeAt(q)===q0||A.charCodeAt(q)===U0);)q++;if(q>=Q)return!1;A.charCodeAt(q)===j2&&q++;for(var z=0;q<Q;){for(;q<Q&&(A.charCodeAt(q)===q0||A.charCodeAt(q)===U0);)q++;if(q>=Q)break;if(A.charCodeAt(q)===j2&&z>0){for(var G=q+1;G<Q&&(A.charCodeAt(G)===q0||A.charCodeAt(G)===U0);)G++;if(G>=Q)return!0}if(A.charCodeAt(q)===p2&&q++,q>=Q||A.charCodeAt(q)!==E0)return!1;for(;q<Q&&A.charCodeAt(q)===E0;)q++;for(q<Q&&A.charCodeAt(q)===p2&&q++,z++;q<Q&&(A.charCodeAt(q)===q0||A.charCodeAt(q)===U0);)q++;if(q<Q)if(A.charCodeAt(q)===j2)q++;else return!1}return z>0}var tb=/[\\u0000-\\u001F\\u007F]/g,eb={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},AR=/&#(x[0-9a-f]+|[0-9]+);?/gi;function ZR(A){return A.indexOf("&#")===-1?A:A.replace(AR,(Z,J)=>{var q=J.charCodeAt(0)===zN||J.charCodeAt(0)===GN?Number.parseInt(J.slice(1),16):Number.parseInt(J,10);return q>0&&q<=1114111?String.fromCodePoint(q):Z})}function JR(A,Z,J){if(J&&Z.charCodeAt(0)===S5)return!1;var q=A.charCodeAt(0),Q=A.charCodeAt(1);if((q===jb||q===kb)&&(Q===_b||Q===Fb))return!(J&&Z==="");var z=A.toLowerCase();if(z==="srcdoc")return!0;if(z==="style")return/url\\s*\\(\\s*(javascript|vbscript|data:(?!image\\/))/i.test(Z);if(eb[z]===1){var G=ZR(_9(Z));if(_A(G)===null)return!0;var X=G.replace(tb,"");return X!==G&&_A(X)===null}return!1}function mH(A){return"<"+(A.f?"/":"")+A.tag+A.g+A.b+(A.n?A.r?" />":"/>":">")}function vC(A,Z,J,q){for(var Q=[],z=Z,G=0;G<q.length;G+=2){var X=q[G];if(X>z){var Y=A.slice(z,X).trim();Y&&Q.push(Y)}z=q[G+1]}if(z<J){var U=A.slice(z,J).trim();U&&Q.push(U)}return Q.join(" ")}function c4(A,Z){if(A.charCodeAt(Z)!==k1)return null;let J=Z+1,q=A.length,Q=!1;A.charCodeAt(J)===s1&&(J++,Q=!0);let z=J,G=A.charCodeAt(J);if(!(G>=K1&&G<=I1||G>=P0&&G<=f0))return null;for(;J<q&&(A.charCodeAt(J)>=K1&&A.charCodeAt(J)<=I1||A.charCodeAt(J)>=P0&&A.charCodeAt(J)<=f0||A.charCodeAt(J)>=g0&&A.charCodeAt(J)<=u0||A.charCodeAt(J)===E0);)J++;let X=A.slice(z,J);if(!X)return null;let Y=X.charCodeAt(0),U=Y>=P0&&Y<=f0||X.indexOf("-")!==-1,H=J;for(;J<q&&(A.charCodeAt(J)===q0||A.charCodeAt(J)===U0||A.charCodeAt(J)===_0);)J++;let W=A.slice(H,J);if(J===H&&J<q){var B=A.charCodeAt(J);if(B!==c0&&B!==s1)return null}let K=J,V={},F=!1;for(var j=null;J<q;){let x=A.charCodeAt(J);if(x===c0){let f=j?vC(A,K,J,j):A.slice(K,J);return{r:F,u:U,f:Q,b:f,q:j!=null,n:!1,g:W,attrs:V,end:J+1,tag:X}}if(x===q0||x===U0||x===_0){J++;continue}if(x===s1&&J+1<q&&A.charCodeAt(J+1)===c0){F=J>K&&A.charCodeAt(J-1)===q0;let f=j?vC(A,K,J,j):A.slice(K,J);return{r:F,u:U,f:Q,b:f,q:j!=null,n:!0,g:W,attrs:V,end:J+2,tag:X}}var $=J,L=A.charCodeAt(J);if(!(L>=K1&&L<=I1||L>=P0&&L<=f0||L===l1||L===p2))return null;for(J++;J<q;){var M=A.charCodeAt(J);if(M>=K1&&M<=I1||M>=P0&&M<=f0||M>=g0&&M<=u0||M===l1||M===n6||M===p2||M===E0)J++;else break}for(var _=A.slice($,J),k=J;J<q&&(A.charCodeAt(J)===q0||A.charCodeAt(J)===U0);)J++;var C,O;if(A.charCodeAt(J)===s6){for(J++;J<q&&(A.charCodeAt(J)===q0||A.charCodeAt(J)===U0);)J++;var N=A.charCodeAt(J);if(N===x5||N===h5){J++;for(var D=J;J<q&&A.charCodeAt(J)!==N;)J++;if(J>=q)return null;if(C=A.slice(D,J),J++,J<q){var T=A.charCodeAt(J);if(T!==q0&&T!==U0&&T!==_0&&T!==c0&&T!==s1)return null}O=J}else if(N===S5){var h=1,D=J;for(J++;J<q&&h>0;){var M=A.charCodeAt(J);M===S5?h++:M===AW&&h--,J++}C=A.slice(D,J),O=J}else{for(var D=J;J<q;){var S=A.charCodeAt(J);if(S===q0||S===U0||S===c0||S===_0||S===x5||S===h5||S===s6||S===k1||S===z1)break;J++}if(J===D)return null;C=A.slice(D,J),O=J}}else C="",O=k;JR(_,C,U)?(j===null&&(j=[]),j.push($,O)):V[_]=C}return null}function h6(A){var Z=A.indexOf("<");if(Z===-1)return A;for(var J="",q=0,Q=!1;Z!==-1;){var z=c4(A,Z);z?(z.q&&(J+=A.slice(q,Z)+mH(z),q=z.end,Q=!0),Z=A.indexOf("<",z.end)):Z=A.indexOf("<",Z+1)}return Q?J+A.slice(q):A}function qR(A,Z,J){if(!J.optimizeForStreaming&&A.indexOf("[")===-1)return!1;for(var q=0,Q=A.length,z=!1,G=!1;q<Q;){for(var X=A.indexOf(`\n`,q),Y=X<0?Q:X,U=q,H=0;U<Y&&H<4;)if(A.charCodeAt(U)===q0)H++,U++;else if(A.charCodeAt(U)===U0)H+=4,U++;else break;if(U>=Y){z=!1,q=X<0?Q:X+1;continue}if(H<4){var W=A.charCodeAt(U);if(W===z1||W===V2){for(var B=W,K=0,V=U;V<Y&&A.charCodeAt(V)===B;)K++,V++;if(K>=3){var F=!0;if(B===z1){for(var j=V;j<Y;j++)if(A.charCodeAt(j)===z1){F=!1;break}}if(F){z=!1;for(var $=X<0?Q:X+1;$<Q;){for(var L=$,M=0;L<Q&&M<4;){var _=A.charCodeAt(L);if(_===q0)M++,L++;else if(_===U0)M+=4,L++;else break}if(M<4&&L<Q&&A.charCodeAt(L)===B){for(var k=0;L<Q&&A.charCodeAt(L)===B;)k++,L++;if(k>=K){for(;L<Q&&(A.charCodeAt(L)===q0||A.charCodeAt(L)===U0);)L++;if(L>=Q||A.charCodeAt(L)===_0){q=L>=Q?Q:L+1;break}}}for(;$<Q&&A.charCodeAt($)!==_0;)$++;$<Q&&$++}$>=Q&&(q=Q,G=!0);continue}}}}for(var C=U;C<Y&&A.charCodeAt(C)===c0;){C++,C<Y&&A.charCodeAt(C)===q0&&C++;for(var O=0;C<Y&&O<4;)if(A.charCodeAt(C)===q0)O++,C++;else if(A.charCodeAt(C)===U0)O+=4,C++;else break;if(O>=4)break;z=!1}if(!z&&H<4&&C<Y&&A.charCodeAt(C)===T1&&!(C+1<Q&&A.charCodeAt(C+1)===kA)){var N=BN(A,C,Z);if(N){q=N,z=!1;continue}}var D=A.charCodeAt(U);if(D===e6&&H<4)z=!1;else if(H<4&&(D===E0||D===n1||D===l1)){for(var T=U,h=0;T<Y;){var S=A.charCodeAt(T);if(S===D)h++;else if(S!==q0&&S!==U0)break;T++}z=!(h>=3&&T>=Y)}else z=!0;q=X<0?Q:X+1}return G}function BN(A,Z,J){let q=A.length;if(A.charCodeAt(Z)!==T1)return null;let Q=Z+1<q&&A.charCodeAt(Z+1)===kA,z=Z+1;for(;z<q;){var G=A.charCodeAt(z);if(G===S6){z++;break}if(G===T1)return null;G===G2&&z+1<q&&z++,z++}if(z>q||A.charCodeAt(z-1)!==S6)return null;let X=A.slice(Z+1,z-1);if(X.length>999)return null;let Y=nz(X);if(!Y||z>=q||A.charCodeAt(z)!==p2)return null;z++;let U=!1;for(;z<q;){let x=A.charCodeAt(z);if(x===q0||x===U0)z++;else if(x===_0&&!U)U=!0,z++;else break}if(Q){let x=A.indexOf(`\n`,z),f=x<0?q:x,R=A.slice(z,f).trim();return J[Y]={target:R,title:void 0},x<0?q:x+1}var H;if(z<q&&A.charCodeAt(z)===k1){z++;for(var W=z;z<q&&A.charCodeAt(z)!==c0&&A.charCodeAt(z)!==_0;)A.charCodeAt(z)===G2&&z+1<q&&z++,z++;if(z>=q||A.charCodeAt(z)!==c0)return null;H=A.slice(W,z),z++;for(var B=A.indexOf(`\n`,z),K=B<0?q:B,V=z;V<K&&(A.charCodeAt(V)===q0||A.charCodeAt(V)===U0);)V++;if(V<K){if(V===z)return null;var F=A.charCodeAt(V);if(F!==x5&&F!==h5&&F!==x6)return null}}else{for(var W=z,j=0;z<q;){var G=A.charCodeAt(z);if(G===x6)j++;else if(G===t6){if(j===0)break;j--}else{if(G===q0||G===U0||G===_0)break;G===G2&&z+1<q&&z++}z++}if(H=A.slice(W,z),!H)return null}for(;z<q&&(A.charCodeAt(z)===q0||A.charCodeAt(z)===U0);)z++;var $=A.indexOf(`\n`,z),L=$<0?q:$,M,_=!1,k=z,C=z;if(z===L&&z<q)for(C=z+1;C<q&&(A.charCodeAt(C)===q0||A.charCodeAt(C)===U0);)C++;if(C<q){var O=A.charCodeAt(C);if(O===x5||O===h5||O===x6){for(var N=O===x6?41:O,D=C+1,T=D;D<q;){var h=A.charCodeAt(D);if(h===N){for(var S=D+1;S<q&&(A.charCodeAt(S)===q0||A.charCodeAt(S)===U0);)S++;(S>=q||A.charCodeAt(S)===_0)&&(M=A.slice(T,D),_=!0,k=S<q?S+1:q);break}if(h===G2&&D+1<q){D+=2;continue}if(h===_0&&D+1<q&&A.charCodeAt(D+1)===_0)break;D++}if(!_&&C===z)return null}}if(_)return J[Y]||(J[Y]={target:_9(q8(H)),title:M===void 0?M:_9(q8(M))}),k;for(;z<L&&(A.charCodeAt(z)===q0||A.charCodeAt(z)===U0);)z++;return z<L?null:(J[Y]||(J[Y]={target:_9(q8(H)),title:M}),$<0?q:$+1)}var B6=new Uint8Array(xb);for(B6[e6]|=K4,B6[c0]|=K4,B6[E0]|=K4|V9,B6[N9]|=K4,B6[n1]|=K4|V9,B6[l1]|=K4|V9,B6[z1]|=K4|V9,B6[V2]|=K4|V9,B6[k1]|=K4|V9,B6[T1]|=V9,B6[d2]|=V9,B6[j2]|=K4,oz=g0;oz<=u0;oz++)B6[oz]|=K4;var oz;function gC(A){if(A.indexOf("[")<0&&A.indexOf("]")<0)return!1;for(var Z=0;Z<A.length;Z++){if(A.charCodeAt(Z)===G2){Z++;continue}if(A.charCodeAt(Z)===T1||A.charCodeAt(Z)===S6)return!0}return!1}function nz(A){for(var Z=A.length,J=!0,q=Z>0,Q=0;Q<Z;Q++){var z=A.charCodeAt(Q);if(z===q0){if(J){q=!1;break}J=!0}else if(z<33||z>126||z>=P0&&z<=f0){q=!1;break}else J=!1}if(q&&!J)return A;var G=A.replace(/\\s+/g," ").trim();return G.indexOf("ẞ")!==-1?G.replace(/\\u1E9E/g,"ss").toLowerCase():G.toLowerCase()}function JW(A){return A<XG?B6[A]:A===Lb?D5:0}function q8(A){return A.indexOf("\\\\")===-1?A:A.replace(/\\\\([!"#$%&\'()*+,\\-./:;<=>?@[\\\\\\]^_`{|}~])/g,"$1")}var pH=null,dH=-1,tz=-1;function G1(A,Z){if(Z>=dH&&Z<=tz&&A===pH)return tz;var J=A.indexOf(`\n`,Z),q=J<0?A.length:J;return pH=A,dH=Z,tz=q,q}function r0(A,Z){let J=G1(A,Z);return J<A.length?J+1:J}function QJ(A,Z,J){for(;Z<J;){let q=A.charCodeAt(Z);if(q!==q0&&q!==U0)break;Z++}return Z}function uC(A,Z){let J=r0(A,Z);for(;J<A.length;){let q=G1(A,J);if(e2(A,J,q))return J;J=r0(A,J)}return A.length}function O9(A,Z,J,q){let Q=0;for(;Z+Q<J&&A.charCodeAt(Z+Q)===q;)Q++;return Q}var Q1=0,Z1=0;function A2(A,Z,J){for(Q1=0,Z1=0;Z+Z1<J;){let q=A.charCodeAt(Z+Z1);if(q===U0)Q1+=4-Q1%4;else if(q===q0)Q1++;else break;Z1++}}function e2(A,Z,J){return QJ(A,Z,J)>=J}function QR(A,Z){if(!A)return A;var J=Z.v||(Z.v=Object.create(null)),q=J[A];if(q===void 0)return J[A]=0,A;for(var Q=q+1,z=`${A}-${Q}`;J[z]!==void 0;)Q++,z=`${A}-${Q}`;return J[A]=Q,J[z]=0,z}function zR(A,Z,J,q){let Q=G1(A,Z);if(A2(A,Z,Q),Q1>3)return null;let z=Z+Z1;if(A.charCodeAt(z)!==e6)return null;let G=O9(A,z,Q,35);if(G<1||G>6||(z+=G,z<Q&&A.charCodeAt(z)!==q0&&A.charCodeAt(z)!==U0))return null;z=QJ(A,z,Q);for(var X=Q;X>z&&A.charCodeAt(X-1)===q0;)X--;for(var Y=X;X>z&&A.charCodeAt(X-1)===e6;)X--;if(X<Y)if(X===z||A.charCodeAt(X-1)===q0)for(;X>z&&A.charCodeAt(X-1)===q0;)X--;else X=Y;let U=A.slice(z,X),H=Q8(U,!1,J,q);return{node:{type:r.heading,level:G,children:H,id:""},end:r0(A,Q)}}function GR(A,Z,J){var q=A.charCodeAt(Z);if(q!==s6&&q!==E0)return!1;for(var Q=Z;Q<J&&A.charCodeAt(Q)===q;)Q++;for(;Q<J&&(A.charCodeAt(Q)===q0||A.charCodeAt(Q)===U0);)Q++;return Q>=J}function k9(A,Z){let J=G1(A,Z);if(A2(A,Z,J),Q1>3)return null;let q=Z+Z1,Q=A.charCodeAt(q);if(Q!==E0&&Q!==n1&&Q!==l1)return null;let z=0;for(;q<J;){let G=A.charCodeAt(q);if(G===Q)z++;else if(G!==q0&&G!==U0)return null;q++}return z<3?null:{node:{type:r.breakThematic},end:r0(A,J)}}var cC=0,mC=0,pC="";function XR(A,Z,J){let q=G1(A,Z);if(A2(A,Z,q),Q1>3)return null;let Q=Q1,z=Z1,G=Z+Z1,X=A.charCodeAt(G);if(X!==z1&&X!==V2)return null;let Y=O9(A,G,q,X);if(Y<3)return null;G+=Y;let U=QJ(A,G,q),H=q;if(X===z1){for(let R=U;R<q;R++)if(A.charCodeAt(R)===z1)return null}for(;H>U&&(A.charCodeAt(H-1)===q0||A.charCodeAt(H-1)===U0);)H--;let W=A.slice(U,H),B="",K="",V=W.indexOf(" ");V===-1?B=W:(B=W.slice(0,V),K=W.slice(V+1).trim()),B=q8(B);var F;if(K){EC.lastIndex=0;for(var j;(j=EC.exec(K))!=null;)F||(F={}),F[j[1]]=j[2]===void 0?j[3]:j[2]}let $=r0(A,q),{length:L,length:M}=A;var _;X===cC&&Y===mC?_=pC:(_=String.fromCharCode(X).repeat(Y),cC=X,mC=Y,pC=_);for(var k=$;k<A.length;){var C=A.indexOf(_,k);if(C===-1)break;for(var O=C,N=0;O>0&&N<4&&A.charCodeAt(O-1)===q0;)O--,N++;if(N<=3&&(O===0||A.charCodeAt(O-1)===_0)){for(var D=C+Y;D<A.length&&A.charCodeAt(D)===X;)D++;var T=G1(A,D);if(e2(A,D,T)){L=O,M=r0(A,T);break}}k=C+1}var h;if(Q===0)h=L>$&&A.charCodeAt(L-1)===_0?A.slice($,L-1):A.slice($,L);else{h="";for(var S=$;S<L;){var x=G1(A,S);A2(A,S,x);var f=Math.min(Z1,Q);h+=`${A.slice(S+f,x)}\n`,S=r0(A,x)}h.length>0&&h.charCodeAt(h.length-1)===_0&&(h=h.slice(0,-1))}return{node:{type:r.codeBlock,lang:B||void 0,text:h,infoString:K||void 0,attrs:F},end:M}}function dC(A,Z,J){for(var q=0,Q=Z;Q<J&&q<4;)A.charCodeAt(Q)===U0?q+=4-q%4:q++,Q++;if(q<4)return"";for(var z="",G=4;G<q;G++)z+=" ";return z+A.slice(Q,J)}function YR(A,Z){let J=G1(A,Z);if(A2(A,Z,J),Q1<4)return null;let q="",Q=Z;for(;Q<A.length;){let B=G1(A,Q);if(A2(A,Q,B),e2(A,Q,B)){for(var z=`${dC(A,Q,B)}\n`,G=r0(A,B);G<A.length;){var X=G1(A,G);if(e2(A,G,X)){z+=`${dC(A,G,X)}\n`,G=r0(A,X);continue}A2(A,G,X),Q1>=4&&(q+=z,Q=G);break}if(Q!==G)break;continue}if(Q1<4)break;let K=0,V=0;var Y=0;for(let F=Q;F<B&&V<4;F++){if(A.charCodeAt(F)===U0){var U=4-V%4;V+U>4&&(Y=V+U-4),V+=U}else V++;K++}var H="";if(Y>0)for(var W=0;W<Y;W++)H+=" ";H+=A.slice(Q+K,B),q+=`${H}\n`,Q=r0(A,B)}for(;q.length>0&&q.charCodeAt(q.length-1)===_0;)q=q.slice(0,-1);return q?{node:{type:r.codeBlock,lang:void 0,text:q,infoString:void 0,attrs:void 0},end:Q}:null}function UR(A,Z,J,q){let Q=G1(A,Z);if(A2(A,Z,Q),Q1>3)return null;let z=Z+Z1;if(A.charCodeAt(z)!==c0)return null;let G="",X=Z,Y,U=!1,H=!1,W=!1;for(;X<A.length;){let P=G1(A,X);A2(A,X,P);let E=X+Z1;if(A.charCodeAt(E)===c0){let u=E+1;var B=Q1+1,K=!1;if(u<P){var V=A.charCodeAt(u);V===q0?(u++,B++,K=!0):V===U0&&(K=!0)}for(var F="",j=!1,$=u;$<P;$++)if(A.charCodeAt($)===U0){j=!0;break}if(j){var L=B;if(K&&u<P&&A.charCodeAt(u)===U0){for(var M=4-L%4,_=0;_<M-1;_++)F+=" ";L+=M,u++}for(var k=u;k<P;k++)if(A.charCodeAt(k)===U0){for(var C=4-L%4,O=0;O<C;O++)F+=" ";L+=C}else F+=A[k],L++}else F=A.slice(u,P);if(!(G||Y)){let v=F.match(/^\\[!([A-Za-z]+)\\]\\s*$/);if(v){Y=v[1].toUpperCase(),X=r0(A,P);continue}}G+=`${F}\n`;var N=F.trimStart();N.startsWith("```")||N.startsWith("~~~")?W=!W:(F.startsWith(" ")||F.startsWith("\\t"))&&(W=!0),H=N.length>0,X=r0(A,P)}else if(G&&!e2(A,X,P)&&H){if(Q1<4){var D=X+Z1,T=D<P?A.charCodeAt(D):0;if(T===e6||T===c0||T===z1||T===V2||T===k1||(T===E0||T===n1||T===l1)&&k9(A,X)||(T===E0||T===n1||T===N9)&&D+1<P&&(A.charCodeAt(D+1)===q0||A.charCodeAt(D+1)===U0))break;if(T>=g0&&T<=u0){for(var h=D;h<P&&A.charCodeAt(h)>=g0&&A.charCodeAt(h)<=u0;)h++;if(h<P&&(A.charCodeAt(h)===n6||A.charCodeAt(h)===t6))break}}if(W)break;G+=`${A.slice(X,P)}\n`,U=!0,X=r0(A,P)}else break}if(!(G||Y))return null;var{inBlockQuote:S,l:x}=J;J.inBlockQuote=!0,U&&(J.l=!0);var f=J.i;J.i=f||!e2(A,X,A.length);let R=j9(G||"",J,q);return J.i=f,J.inBlockQuote=S,J.l=x,{node:{type:r.blockQuote,children:R,alert:Y||void 0},end:X}}function KN(A,Z,J){for(var q=0,Q=Z;Q<J;Q++)A.charCodeAt(Q)===U0?q+=4-q%4:q++;return q}function M9(A,Z,J){if(A2(A,Z,J),Q1>3)return null;var q=Z+Z1;if(q>=J)return null;var Q=A.charCodeAt(q),z=Q1,G=q,X=q;if(Q===E0||Q===n1||Q===N9){if(G=q+1,G<J&&A.charCodeAt(G)!==q0&&A.charCodeAt(G)!==U0&&A.charCodeAt(G)!==_0)return null}else if(Q>=g0&&Q<=u0){for(;X<J&&X-q<9;){var Y=A.charCodeAt(X);if(Y<g0||Y>u0)break;X++}if(X>q&&X<J){var U=A.charCodeAt(X);if(U===n6||U===t6){if(G=X+1,G<J&&A.charCodeAt(G)!==q0&&A.charCodeAt(G)!==U0&&A.charCodeAt(G)!==_0)return null}else return null}else return null}else return null;var H=G,W=KN(A,Z,G),B=0,K=H,V=W;if(H>=J)return{ordered:Q>=g0&&Q<=u0,marker:Q>=g0&&Q<=u0?A[X]:A[q],start:Q>=g0&&Q<=u0?Number.parseInt(A.slice(q,X),10):void 0,contentStart:H,contentCol:W+1,markerCol:z,isEmpty:!0};for(;K<J&&(A.charCodeAt(K)===q0||A.charCodeAt(K)===U0);){if(A.charCodeAt(K)===U0){var F=4-V%4;V+=F}else V++;K++,B++}var j=K>=J,$=V-W;return j||$>4?(V=W+1,K=H+1,B=1):B===0&&(V=W+1,K=H,B=1),{ordered:Q>=g0&&Q<=u0,marker:Q>=g0&&Q<=u0?A[X]:A[q],start:Q>=g0&&Q<=u0?Number.parseInt(A.slice(q,X),10):void 0,contentStart:K,contentCol:V,markerCol:z,isEmpty:j}}var Z8=0;function lC(A,Z,J,q){var Q=0,z=Z;for(Z8=0;z<J&&Q<q;){var G=A.charCodeAt(z);if(G===U0){var X=4-Q%4;if(Q+X>q){Z8=Q+X-q,z++,Q=q;break}Q+=X}else if(G===q0)Q++;else break;z++}return z}function iC(A,Z,J,q){var Q=G1(A,Z),z=M9(A,Z,Q);if(!z)return null;var G=[],X=Z,Y=z.contentCol,U="",H=z.isEmpty,W=!1,B=!1;if(!z.isEmpty){for(var K=!1,V=z.contentStart;V<Q;V++)if(A.charCodeAt(V)===U0){K=!0;break}if(K){var F="",j=KN(A,Z,z.contentStart),$=j-z.contentCol;if($>0)for(var L=0;L<$;L++)F+=" ";for(var M=z.contentStart;M<Q;M++)if(A.charCodeAt(M)===U0){for(var _=4-j%4,k=0;k<_;k++)F+=" ";j+=_}else F+=A[M],j++;U=`${F}\n`}else U=`${A.slice(z.contentStart,Q)}\n`}for(X=r0(A,Q);X<A.length;){var C=G1(A,X);A2(A,X,C);var O=A.charCodeAt(X+Z1);if(Q1<Y&&(O===E0||O===n1||O===l1)&&Q1<=3&&k9(A,X))break;var N=M9(A,X,C);if(N&&N.ordered===z.ordered&&N.marker===z.marker&&N.markerCol<Y){G.push({contentCol:Y,raw:U,hasBlankAfter:W,isEmpty:H}),W&&(B=!0),Y=N.contentCol,H=N.isEmpty,W=!1,U=N.isEmpty?"":`${A.slice(N.contentStart,C)}\n`,X=r0(A,C);continue}if(e2(A,X,C)){var D=lC(A,X,C,Y);if(Z8>0||D<C){for(var T="",h=0;h<Z8;h++)T+=" ";U+=`${T+A.slice(D,C)}\n`}else U+=`\n`;X=r0(A,C);for(var S=!1,x=0;x<U.length;x++){var f=U.charCodeAt(x);if(f!==_0&&f!==C9&&f!==q0&&f!==U0){S=!0;break}}if(H&&!S)if(X<A.length){var R=G1(A,X),P=M9(A,X,R);if(!P||P.ordered!==z.ordered||P.marker!==z.marker)break;W=!0}else break;if(X<A.length){var E=G1(A,X);A2(A,X,E);var u=A.charCodeAt(X+Z1);if((u===E0||u===n1||u===l1)&&Q1<=3&&k9(A,X))break;var v=M9(A,X,E);if(v&&v.ordered===z.ordered&&v.marker===z.marker&&v.markerCol<Y){W=!0;continue}if(!e2(A,X,E)&&Q1<Y)break}continue}if(Q1>=Y){var I=lC(A,X,C,Y);if(Z8>0){for(var t="",W0=Y,Q0=0;Q0<Z8;Q0++)t+=" ",W0++;for(var b=I;b<C;b++)if(A.charCodeAt(b)===U0){for(var y=4-W0%4,m=0;m<y;m++)t+=" ";W0+=y}else t+=A[b],W0++;U+=`${t}\n`}else U+=`${A.slice(I,C)}\n`;X=r0(A,C);continue}for(var l=!1,o=0;o<U.length;o++){var a=U.charCodeAt(o);if(a!==_0&&a!==C9&&a!==q0&&a!==U0){l=!0;break}}if(!W&&l&&!H){var e=X+Z1,K0=A.charCodeAt(e),G0=K0===e6||K0===c0||K0===k1||K0===z1||K0===V2||(K0===E0||K0===n1||K0===l1||K0===N9)&&(k9(A,X)!=null||M9(A,X,C)!=null)||K0>=g0&&K0<=u0&&M9(A,X,C)!=null;if(!G0){U+=`\\x1E${A.slice(e,C)}\n`,X=r0(A,C);continue}}break}if(G.push({contentCol:Y,raw:U,hasBlankAfter:W,isEmpty:H}),G.length===0)return null;var Z0=B;if(!Z0)for(var F0=0;F0<G.length;F0++){if(G[F0].hasBlankAfter&&F0<G.length-1){Z0=!0;break}if(!G[F0].isEmpty){for(var k0=G[F0].raw,j0=k0.length,B0=0,h0=!1,H0=!1,D0=!1,x0=!1,b0=0,A0=0,M0=-1;B0<j0;){var $0=k0.indexOf(`\n`,B0);if($0<0&&($0=j0),x0){A2(k0,B0,$0);for(var n=k0.slice(B0+Z1,$0),s=0;s<n.length&&n.charCodeAt(s)===b0;)s++;s>=A0&&n.slice(s).trim()===""&&(x0=!1),B0=$0<j0?$0+1:j0;continue}if(e2(k0,B0,$0)){M0>=0?D0=!0:h0&&(H0=!0),B0=$0<j0?$0+1:j0;continue}if(A2(k0,B0,$0),M0>=0){if(Q1>=M0){B0=$0<j0?$0+1:j0;continue}var z0=M9(k0,B0,$0);if(z0&&z0.markerCol<M0&&z0.contentCol<=M0){B0=$0<j0?$0+1:j0;continue}if(z0){B0=$0<j0?$0+1:j0;continue}M0=-1,D0&&(H0=!0,D0=!1)}var d=k0.slice(B0+Z1,$0),f1=d.charCodeAt(0);if((f1===z1||f1===V2)&&Q1<=3){for(var w0=0;w0<d.length&&d.charCodeAt(w0)===f1;)w0++;if(w0>=3){if(H0&&h0){Z0=!0;break}x0=!0,b0=f1,A0=w0,h0=!0,B0=$0<j0?$0+1:j0;continue}}var X1=Q1<=3?M9(k0,B0,$0):null;if(X1&&h0){if(H0){Z0=!0;break}M0=X1.contentCol,D0=!1,B0=$0<j0?$0+1:j0,h0=!0;continue}if(H0){Z0=!0;break}h0=!0,B0=$0<j0?$0+1:j0}if(Z0)break}}for(var C0=[],m0=0;m0<G.length;m0++){for(var $1=G[m0],J1=$1.raw,b1=J1.length;b1>0&&J1.charCodeAt(b1-1)===_0;)b1--;var w1=b1<J1.length?J1.slice(0,b1):J1,O2=null;if(w1.length>=3&&w1.charCodeAt(0)===T1){var U2=w1[1];(U2===" "||U2==="x"||U2==="X")&&w1.charCodeAt(2)===S6&&(O2={type:r.gfmTask,completed:U2==="x"||U2==="X"},w1=w1.slice(3))}var Y1;if($1.isEmpty&&w1.trim()==="")Y1=[];else if(Z0){var N0=J.inList;J.inList=!0;var A1=J.i;J.i=A1||m0!==G.length-1,Y1=j9(w1,J,q),J.i=A1,J.inList=N0}else{var o0=J.inList;J.inList=!0;var U1=J.i;if(J.i=U1||m0!==G.length-1,Y1=j9(w1,J,q),J.i=U1,J.inList=o0,Y1.length===1&&Y1[0].type===r.paragraph)Y1=Y1[0].children;else if(J.p){var L1=[];J.p.push({src:Y1,dest:L1,unwrap:!0}),Y1=L1}else{for(var a0=[],V1=0;V1<Y1.length;V1++)if(Y1[V1].type===r.paragraph)for(var i1=Y1[V1].children,j1=0;j1<i1.length;j1++)a0.push(i1[j1]);else a0.push(Y1[V1]);Y1=a0}}if(O2){var g1=[O2,{type:r.text,text:" "}];if(J.p)J.p.push({src:Y1,dest:g1,unwrap:!1});else for(var h1=0;h1<Y1.length;h1++)g1.push(Y1[h1]);C0.push(g1)}else C0.push(Y1)}return{node:{type:z.ordered?r.orderedList:r.unorderedList,start:z.ordered?z.start:void 0,items:C0},end:X}}var qG=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function u4(A,Z,J){let q={};for(let[G,X]of Object.entries(A)){let Y=G.toLowerCase();if(Y==="style"&&typeof X=="string"){let U={},H=[],W=0,B=0;for(let V=0;V<X.length;V++){let F=X.charCodeAt(V);F===x6?W++:F===t6?W--:F===ZG&&W===0&&(H.push(X.slice(B,V)),B=V+1)}B<X.length&&H.push(X.slice(B));let K=!1;H.forEach((V)=>{let F=V.indexOf(":");if(F===-1)return;let j=V.slice(0,F).trim(),$=V.slice(F+1).trim();if(j&&$){if(/url\\s*\\(\\s*(javascript|vbscript|data:(?!image\\/))/i.test($)){K=!0;return}let L=j.indexOf("-")===-1?j:j.replace(/-([a-z])/g,(M,_)=>_.toUpperCase());U[L]=$}}),!K&&Object.keys(U).length>0&&(q[G]=U)}else if((Y==="href"||Y==="src")&&J?.sanitizer){let U=J.sanitizer(X,Z,Y);U!=null&&(q[G]=U)}else if(X==="")q[G]=!0;else if(X.length>=2&&X.charCodeAt(0)===S5&&X.charCodeAt(X.length-1)===AW){var Q=X.slice(1,-1);if(Q.length>0){var z=Q.charCodeAt(0);if(z===T1||z===S5)try{q[G]=JSON.parse(Q);continue}catch{}}if(Q==="true"){q[G]=!0;continue}if(Q==="false"){q[G]=!1;continue}if(J?.evalUnserializableExpressions)try{q[G]=(0,eval)(`(${Q})`);continue}catch{}q[G]=Q}else q[G]=X}return q}function F9(A,Z,J){let q=Z.length;if(q===0)return J;var Q=Z.charCodeAt(0),z=Q>=P0&&Q<=f0||Q>=K1&&Q<=I1;if(!z){for(var G=String.fromCharCode(Q),X=A.length-q,Y=J;Y<=X;){var U=A.indexOf(G,Y);if(U===-1||U>X)return-1;for(var H=!0,W=1;W<q;W++){var B=A.charCodeAt(U+W),K=Z.charCodeAt(W);if(B>=P0&&B<=f0&&(B+=$4),K>=P0&&K<=f0&&(K+=$4),B!==K){H=!1;break}}if(H)return U;Y=U+1}return-1}Q>=P0&&Q<=f0&&(Q+=$4);for(let F=J;F<=A.length-q;F++){var V=A.charCodeAt(F);if(V>=P0&&V<=f0&&(V+=$4),V!==Q)continue;let j=!0;for(let $=1;$<q;$++){let L=A.charCodeAt(F+$),M=Z.charCodeAt($);if(L>=P0&&L<=f0&&(L+=$4),M>=P0&&M<=f0&&(M+=$4),L!==M){j=!1;break}}if(j)return F}return-1}function HR(A,Z,J){let q=Z.length;var Q=Z.charCodeAt(0);Q>=P0&&Q<=f0&&(Q+=$4);for(let G=Math.min(J,A.length-q);G>=0;G--){var z=A.charCodeAt(G);if(z>=P0&&z<=f0&&(z+=$4),z!==Q)continue;let X=!0;for(let Y=1;Y<q;Y++){let U=A.charCodeAt(G+Y),H=Z.charCodeAt(Y);if(U>=P0&&U<=f0&&(U+=$4),H>=P0&&H<=f0&&(H+=$4),U!==H){X=!1;break}}if(X)return G}return-1}var QG=-1;function lH(A,Z,J){let q=J.toLowerCase(),Q=`<${q}`,z=`</${q}`,G=1,X=Z,Y=A.length;for(QG=-1;X<Y&&G>0;){let W=F9(A,Q,X),B=F9(A,z,X);if(B===-1)return-1;if(W!==-1&&W<B){let K=c4(A,W);K?(K.tag.toLowerCase()===q&&!K.f&&!K.n&&!zJ(K.tag)&&G++,X=K.end):X=W+1}else{var U=B+z.length,H=U<Y?A.charCodeAt(U):62;if((H===c0||H===q0||H===U0||H===_0)&&(G--,G===0)){QG=B;let K=B+z.length;for(;K<Y&&A.charCodeAt(K)!==c0;)K++;return K+1}X=B+1}}return-1}function $N(A,Z,J,q){if(q.ignoreHTMLBlocks||q.disableParsingRawHTML)return null;var Q=G1(A,Z);if(A2(A,Z,Q),Q1>3&&!J.inHTML)return null;var z=Z+Z1;if(A.charCodeAt(z)!==k1)return null;var G=A.indexOf(">",z+1);if(G!==-1&&G<Q){var X=A.slice(z+1,G);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(X)||/^[^\\s@]+@[^\\s@]+$/.test(X))return null}var Y=WR(A,z);if(Y>=1&&Y<=5){var U=A.length;if(Y===1){for(var H=A.length,W=0;W<cH.length;W++){var B=F9(A,`</${cH[W]}>`,z);B>=0&&B<H&&(H=B)}if(H<A.length){var K=A.indexOf(">",H);U=K>=0?r0(A,K+1):A.length}}else{var V=Y===2?"-->":Y===3?"?>":Y===4?">":"]]>",F=A.indexOf(V,z);F>=0&&(U=r0(A,F+V.length))}var j=A.slice(z,U);if(Y>=2)return{node:{type:r.htmlComment,text:j,s:!1,raw:!0},end:U};var $="div",L=j.match(/^<\\/?([a-zA-Z][a-zA-Z0-9-]*)/);L&&($=L[1]);var M=c4(A,z),_={},k;M&&!M.f&&(_=u4(M.attrs,$,q),k=M.g+M.b);var C=[],O=$.toLowerCase(),N=`</${O}`,D=F9(j,N,0),T="",h,S,x;if(M?.f){x=j.slice(0,M.end-z);for(var f=j.slice(M.end-z);f.length>0&&f.charCodeAt(f.length-1)===_0;)f=f.slice(0,-1);f&&(S=h6(f))}else if(M&&!M.f){var R=M.end-z;if(D===-1){for(var P=j;P.length>0&&P.charCodeAt(P.length-1)===_0;)P=P.slice(0,-1);h=h6(P)}else{var E=R;j.charCodeAt(E)===_0&&E++;for(var u=D;u>E;){var v=j.charCodeAt(u-1);if(v!==q0&&v!==U0&&v!==_0&&v!==C9)break;u--}var I=j.slice(E,u);I&&(S=h6(I));for(var t=j.slice(D);t.length>0&&t.charCodeAt(t.length-1)===_0;)t=t.slice(0,-1);x=h6(t),T=j.slice(R,D).trim()}}var W0=M?M.f:!1;return{node:{type:r.htmlBlock,tag:$,attrs:_,b:k,children:C,e:S,h:x,j:h,text:T,c:!0,a:W0},end:U}}if(Y===6||Y===7){var Q0=uC(A,Z),b=Q0<A.length?Q0:A.length,y=A.slice(z,b),m=Q0<A.length?r0(A,Q0):A.length,l=c4(A,z);if(l){var o=l.tag,a=o.toLowerCase(),e=l.f;if(e){var K0=A.slice(l.end,b);return{node:{type:r.htmlBlock,tag:o,attrs:{},children:[],h:A.slice(z,l.end),e:K0?h6(K0):void 0,text:K0,c:!0,a:!0},end:m}}if(l.n||zJ(o))return{node:{type:r.htmlBlock,tag:o,attrs:u4(l.attrs,o,q),b:l.g+l.b,children:[],text:"",c:!1,a:!1},end:l.end<A.length&&A.charCodeAt(l.end)===_0?l.end+1:l.end};var G0=J.d||0,Z0=A.slice(z,b),F0=-1,k0=-1,j0=!1;if(G0<10){for(var B0=`</${a}`,h0=l.end-z,H0=1,D0=h0;D0<Z0.length&&H0>0;){var x0=F9(Z0,`<${a}`,D0),b0=F9(Z0,B0,D0);if(b0===-1)break;if(x0!==-1&&x0<b0){var A0=x0+a.length+1;if(A0<Z0.length){var M0=Z0.charCodeAt(A0);(M0===q0||M0===U0||M0===_0||M0===c0||M0===s1)&&H0++}D0=x0+1}else{var $0=b0+B0.length;if($0<Z0.length){var n=Z0.charCodeAt($0);if((n===c0||n===q0||n===U0||n===_0)&&(H0--,H0===0)){F0=b0;for(var s=$0;s<Z0.length&&Z0.charCodeAt(s)!==c0;)s++;k0=s+1;break}}else if(H0--,H0===0){F0=b0,k0=Z0.length;break}D0=b0+1}}if(F0===-1&&!l.f&&(Y===6||l.u)){var z0=lH(A,l.end,a);if(z0!==-1){for(var d=QG,f1=l.end,w0=!1,X1=!1,C0=!1,m0=0,$1=!1,J1=!1,b1=f1;b1<d;){var w1=A.charCodeAt(b1);if(w1===_0)J1&&(w0=!0),$1||m0++,J1=!0,b1++;else if(w1===q0||w1===U0)b1++;else{if(!$1&&($1=!0,m0>=2&&w1===k1)){C0=!0;break}if(J1=!1,w1===k1){var O2=A.charCodeAt(b1+1)|32;if((O2===vH||O2===QN||O2===J8)&&(RC.lastIndex=b1,RC.test(A))){X1=!0;break}}b1++}}if(w0&&!C0&&!X1){var U2=G1(A,z0);b=U2,m=r0(A,U2),Z0=A.slice(z,b),y=A.slice(z,b),F0=d-z,k0=z0-z,j0=!0}}}}var Y1=l.b.indexOf(`\n`)!==-1||l.g.indexOf(`\n`)!==-1,N0=!1;if(F0!==-1){var A1=Z0.slice(k0).trim();N0=A1.length===0}var o0=!1,U1=b,L1=m;if(F0!==-1){var a0=z+k0,V1=G1(A,a0-1);if(a0<V1){for(var i1=a0;i1<V1&&(A.charCodeAt(i1)===q0||A.charCodeAt(i1)===U0);)i1++;if(i1<V1&&A.charCodeAt(i1)===k1){var j1=c4(A,i1);j1&&!j1.f&&(o0=!0,U1=a0,L1=a0,N0=!0)}}if(!o0){var g1=r0(A,V1);if(g1<b){for(var h1=g1;h1<b&&(A.charCodeAt(h1)===q0||A.charCodeAt(h1)===U0);)h1++;if(h1<b&&A.charCodeAt(h1)===k1){var P2=c4(A,h1);P2&&(o0=!0,U1=V1,L1=g1,N0=!0)}}}if(!o0&&J.inHTML){o0=!0,U1=V1,L1=r0(A,V1);var I6=A.slice(a0,V1).trim();N0=I6.length===0}}var E2=[],r1="";if(F0!==-1){r1=Z0.slice(l.end-z,F0);var Z6=r1.trim();if(Z6){var{inline:L8,inHTML:KD,d:$D}=J;J.inHTML=!0,J.d=G0+1;var LD=a==="p";if(LD)J.inline=!0,E2=Q8(Z6,!1,J,q);else{var RW=r1.indexOf(`\n\n`)!==-1,yW=IH.test(Z6),EG=yC.test(Z6),VD=RW||yW||J.inHTML&&EG,MD=r1.length>=2&&r1.charCodeAt(0)===_0&&r1.charCodeAt(r1.length-1)===_0&&!RW;MD&&!yW&&!EG?E2=[{type:r.text,text:Z6}]:VD||EG?(J.inline=!1,E2=j9(r1,J,q)):(J.inline=!0,E2=Q8(Z6,!1,J,q))}J.inline=L8,J.inHTML=KD,J.d=$D}}var EW=!1;if(Y===6&&F0!==-1&&!J.inHTML&&!Y1){var FD=/<[a-zA-Z][^>]*>/.test(r1),_D=r1.indexOf(`\n\n`)!==-1||IH.test(r1);FD&&!_D&&(EW=!0)}var kD=!j0&&(J.inHTML||Y===7||Y1||!N0||EW);if(kD){var V8,F4,vW=!1;if(F0!==-1&&o0){var gW=!1;if(J.inHTML&&k0<Z0.length){for(var CJ=k0;CJ<Z0.length&&Z0.charCodeAt(CJ)!==_0;)CJ++;var vG=Z0.slice(k0,CJ).trim();gW=vG.length>1&&vG.charCodeAt(0)===k1&&vG.charCodeAt(1)!==s1}F4=gW?Z0.slice(l.end-z):r1,vW=!0}else(Y===7||J.inHTML)&&F0!==-1?(F4=Z0.slice(l.end-z),F4.charCodeAt(0)===_0&&(F4=F4.slice(1))):o0?V8=A.slice(z,U1):Y1?V8=y:(F4=Z0.slice(l.end-z),F4.charCodeAt(0)===_0&&(F4=F4.slice(1)));var uW=V8!==void 0,gG=h6(V8===void 0?F4||"":V8),cW={type:r.htmlBlock,tag:o,attrs:u4(l.attrs,o,q),b:l.g+l.b,children:E2,e:uW?void 0:gG,j:uW?gG:void 0,text:gG,c:!0,a:!1};return vW&&(cW.x=!0),{node:cW,end:L1}}var mW=h6(r1);return{node:{type:r.htmlBlock,tag:o,attrs:u4(l.attrs,o,q),b:l.g+l.b,children:E2,e:j0?void 0:mW,text:mW,c:!1,a:!1},end:L1}}var NJ=y.match(/^<(\\/?)([a-zA-Z][a-zA-Z0-9-]*)/),jD=NJ?NJ[2]:"div",uG=NJ?NJ[1]==="/":!1,cG,pW,dW,OJ="";if(uG){var mG=y.indexOf(">");mG===-1?cG=y:(cG=y.slice(0,mG+1),OJ=y.slice(mG+1),OJ&&(pW=h6(OJ)))}else dW=h6(y);return{node:{type:r.htmlBlock,tag:jD,attrs:{},children:[],e:pW,h:cG,j:dW,text:uG?OJ:y,c:!0,a:uG},end:m}}var v2=c4(A,z);if(!v2)return null;var CA=v2.tag,pG=CA.toLowerCase(),lW=CA.charCodeAt(0),DJ=lW>=P0&&lW<=f0;if(!(DJ||qG.has(pG)||GJ.has(pG)||pG.includes("-")))return null;if(v2.f)return{node:{type:r.htmlSelfClosing,tag:CA,attrs:{},h:A.slice(z,v2.end),a:!0},end:v2.end};var h9=lH(A,v2.end,CA),M8=[];if(h9!==-1){var CD=QG,TJ=A.slice(v2.end,CD),wJ=TJ.trim();if(wJ){var ND=TJ.indexOf(`\n\n`)!==-1,OD=IH.test(wJ),DD=yC.test(wJ),{inline:TD,inHTML:wD,d:hD}=J;J.inHTML=!0,J.d=(J.d||0)+1,ND||OD||DD?(J.inline=!1,M8=j9(TJ,J,q)):(J.inline=!0,M8=Q8(wJ,!1,J,q)),J.inline=TD,J.inHTML=wD,J.d=hD}var xD=G1(A,h9),SD=A.slice(h9,xD).trim(),dG=SD?h9:r0(A,h9),iW=DJ?A.slice(z,h9):A.slice(z,dG),rE=DJ?h9:dG;return{node:{type:r.htmlBlock,tag:CA,attrs:u4(v2.attrs,CA,q),b:v2.g+v2.b,children:M8,j:h6(iW),text:DJ?TJ:iW,c:!0,a:!1},end:dG}}var F8=uC(A,v2.end),PD=F8<A.length?r0(A,F8):F8,lG=A.slice(v2.end,F8);if(lG.trim()){var{inline:ID,inHTML:fD,d:bD}=J;J.inline=!1,J.inHTML=!0,J.d=(J.d||0)+1,M8=j9(lG,J,q),J.inline=ID,J.inHTML=fD,J.d=bD}var RD=A.slice(v2.end,F8);return{node:{type:r.htmlBlock,tag:CA,attrs:u4(v2.attrs,CA,q),b:v2.g+v2.b,children:M8,e:h6(RD),text:lG,c:!0,a:!1},end:PD}}function WR(A,Z){if(A.charCodeAt(Z)!==k1)return 0;var J=Z+1,q=A.length;if(A.charCodeAt(J)===d2&&A.charCodeAt(J+1)===E0&&A.charCodeAt(J+2)===E0)return 2;if(A.charCodeAt(J)===z8)return 3;if(A.charCodeAt(J)===d2){var Q=A.charCodeAt(J+1);if(Q>=P0&&Q<=f0)return 4;if(A.slice(J+1,J+8)==="[CDATA[")return 5}for(var z=A.charCodeAt(J)===s1,G=z?J+1:J,X=G;X<q;){var Y=A.charCodeAt(X);if(Y>=P0&&Y<=f0||Y>=K1&&Y<=I1||Y>=g0&&Y<=u0||Y===E0)X++;else break}if(X===G)return 0;var U=A.slice(G,X);if(GJ.has(U.toLowerCase())){if(z)return 0;var H=A.charCodeAt(X);return H===q0||H===U0||H===c0||H===_0||X>=q?1:0}if(qG.has(U.toLowerCase())){if(z){for(var W=X;W<q&&(A.charCodeAt(W)===q0||A.charCodeAt(W)===U0);)W++;return W<q&&A.charCodeAt(W)===c0?6:0}var B=X<q?A.charCodeAt(X):-1;return B===q0||B===U0||B===c0||B===_0||B===s1||B===-1?6:0}if(z){for(var K=X;K<q&&(A.charCodeAt(K)===q0||A.charCodeAt(K)===U0);)K++;if(K<q&&A.charCodeAt(K)===c0){var V=G1(A,Z),F=A.slice(K+1,V).trim();if(F==="")return 7}}else{var j=G1(A,Z),$=c4(A,Z);if($&&$.end<=j){var L=A.slice($.end,j).trim();if(L==="")return 7}}return 0}function rC(A,Z,J){for(var q=0,Q=A.length;q<Q&&(A.charCodeAt(q)===q0||A.charCodeAt(q)===U0);)q++;for(;Q>q&&(A.charCodeAt(Q-1)===q0||A.charCodeAt(Q-1)===U0);)Q--;q<Q&&A.charCodeAt(q)===j2&&q++,Q>q&&A.charCodeAt(Q-1)===j2&&(Q-2<q||A.charCodeAt(Q-2)!==G2)&&Q--;for(var z=[],G=q,X=!1,Y=[],U=q;U<Q;){var H=A.charCodeAt(U);if(H===G2&&U+1<Q){A.charCodeAt(U+1)===j2?(X||(X=!0,Y=[]),Y.push(A.slice(G,U)),Y.push("|"),U+=2,G=U):U+=2;continue}if(H===z1){for(var W=0;U<Q&&A.charCodeAt(U)===z1;)W++,U++;for(var B=!1;U<Q&&!B;){for(var K=0;U<Q&&A.charCodeAt(U)===z1;)K++,U++;K===W?B=!0:K===0&&U++}continue}if(H===j2){var V=X?(Y.push(A.slice(G,U)),Y.join("")):A.slice(G,U);z.push(V.trim()),U++,G=U,X=!1,Y=[];continue}U++}var F=X?(Y.push(A.slice(G,Q)),Y.join("")):A.slice(G,Q);return z.push(F.trim()),z.map((j)=>{var $=j.indexOf("\\\\|")===-1?j:j.replace(/\\\\\\|/g,"|");return $?Q8($,!1,Z,J):[]})}function oC(A,Z,J,q){let Q=G1(A,Z);var z=A.indexOf("|",Z);if(z<0||z>=Q)return null;let G=r0(A,Q);if(G>=A.length)return null;let X=G1(A,G);if(!WN(A,G,X))return null;let Y=A.slice(Z,Q),U=A.slice(G,X);for(var H=[],W=0,B=U.length;W<B&&(U.charCodeAt(W)===q0||U.charCodeAt(W)===U0);)W++;for(W<B&&U.charCodeAt(W)===j2&&W++;W<B;){for(;W<B&&(U.charCodeAt(W)===q0||U.charCodeAt(W)===U0);)W++;if(W>=B||U.charCodeAt(W)===j2)break;var K=U.charCodeAt(W)===p2;for(K&&W++;W<B&&U.charCodeAt(W)===E0;)W++;var V=W<B&&U.charCodeAt(W)===p2;for(V&&W++,H.push(K&&V?"center":V?"right":K?"left":null);W<B&&(U.charCodeAt(W)===q0||U.charCodeAt(W)===U0);)W++;W<B&&U.charCodeAt(W)===j2&&W++}let F=rC(Y,J,q);if(H.length!==F.length)return null;let j=[],$=r0(A,X);for(;$<A.length;){let O=G1(A,$),N=A.slice($,O);if(e2(A,$,O))break;if(A2(A,$,O),Q1<4){var L=A.charCodeAt($+Z1);if(L===c0||L===e6||(L===E0||L===n1||L===l1)&&k9(A,$))break;if(L===z1||L===V2){for(var M=$+Z1,_=0;M<O&&A.charCodeAt(M)===L;)_++,M++;if(_>=3)break}}j.push(rC(N,J,q)),$=r0(A,O)}if(q.optimizeForStreaming&&j.length===0)return null;for(var k=F.length,C=0;C<j.length;C++)if(j[C].length<k)for(;j[C].length<k;)j[C].push([]);else j[C].length>k&&(j[C].length=k);return{node:{type:r.table,header:F,cells:j,align:H},end:$}}function BR(A,Z,J){var q=G1(A,Z);if(A2(A,Z,q),Q1>3)return null;var Q=Z+Z1;if(A.charCodeAt(Q)!==T1)return null;if(Q+1<A.length&&A.charCodeAt(Q+1)===kA){var z=KR(A,Q,J);return z||null}J.refs||(J.refs=Object.create(null));var G=BN(A,Q,J.refs);return G===null?null:{node:{type:r.refCollection},end:G}}function KR(A,Z,J){var q=A.length;if(A.charCodeAt(Z)!==T1||Z+1>=q||A.charCodeAt(Z+1)!==kA)return null;for(var Q=Z+2,z=Q;Q<q&&A.charCodeAt(Q)!==S6;){if(A.charCodeAt(Q)===_0)return null;Q++}if(Q>=q)return null;var G=`^${A.slice(z,Q)}`.toLowerCase();if(Q++,Q>=q||A.charCodeAt(Q)!==p2)return null;for(Q++;Q<q&&(A.charCodeAt(Q)===q0||A.charCodeAt(Q)===U0);)Q++;if(Q<q&&A.charCodeAt(Q)===_0)for(Q++;Q<q&&(A.charCodeAt(Q)===q0||A.charCodeAt(Q)===U0);)Q++;var X=A.indexOf(`\n`,Q);X<0&&(X=q);for(var Y=A.slice(Q,X).trim(),U=X<q?X+1:q;U<q;){var H=G1(A,U);if(A2(A,U,H),Q1>=2&&!e2(A,U,H))Y+=`\n${A.slice(U,H)}`,U=r0(A,H);else if(e2(A,U,H)){var W=r0(A,H);if(W<q){var B=G1(A,W);if(A2(A,W,B),Q1>=2){Y+=`\n`,U=r0(A,H);continue}}break}else break}var K=J.refs;return K&&!K[G]&&(K[G]={target:Y,title:void 0}),{node:{type:r.footnote},end:U}}function $R(A,Z,J,q){let Q=Z,z=0,G=0,X=-1;for(;Q<A.length;){let x=X>=0?X:G1(A,Q);if(X=-1,e2(A,Q,x))break;if(A2(A,Q,x),Q1<4&&G>0&&!J.l){let R=A.charCodeAt(Q+Z1);if(R===s6||R===E0){let P=Q+Z1;for(;P<x&&A.charCodeAt(P)===R;)P++;for(;P<x&&(A.charCodeAt(P)===q0||A.charCodeAt(P)===U0);)P++;if(P>=x){z=R===s6?1:2,Q=r0(A,x);break}}}G=x;let f=r0(A,x);if(f<A.length){if(A.charCodeAt(f)===gH){var Y=G1(A,f);Q=r0(A,Y),G=Y;continue}let R=G1(A,f);if(X=R,A2(A,f,R),Q1<4){let P=A.charCodeAt(f+Z1);if(P===c0){Q=f;break}if(P===e6){for(var U=f+Z1,H=0;U<R&&A.charCodeAt(U)===e6&&H<=6;)H++,U++;if(H>=1&&H<=6&&(U>=R||A.charCodeAt(U)===q0||A.charCodeAt(U)===U0)){Q=f;break}}if(P===z1||P===V2){for(var W=f+Z1,B=0;W<R&&A.charCodeAt(W)===P;)B++,W++;if(B>=3){Q=f;break}}if(P===k1){var K=f+Z1+1,V=K<R?A.charCodeAt(K):0,F=V===d2||V===z8;if(!F&&V===s1){for(var j=K+1,$=j;$<R&&(A.charCodeAt($)>=P0&&A.charCodeAt($)<=f0||A.charCodeAt($)>=K1&&A.charCodeAt($)<=I1||A.charCodeAt($)>=g0&&A.charCodeAt($)<=u0||A.charCodeAt($)===E0);)$++;$>j&&(F=qG.has(A.slice(j,$).toLowerCase()))}else if(!F){for(var L=K;L<R&&(A.charCodeAt(L)>=P0&&A.charCodeAt(L)<=f0||A.charCodeAt(L)>=K1&&A.charCodeAt(L)<=I1||A.charCodeAt(L)>=g0&&A.charCodeAt(L)<=u0||A.charCodeAt(L)===E0);)L++;if(L>K){var M=A.slice(K,L).toLowerCase();F=qG.has(M)||GJ.has(M)}}if(F&&$N(A,f,J,q)){Q=f;break}}if(P===E0||P===n1||P===N9){let E=f+Z1+1;if(E<R&&(A.charCodeAt(E)===q0||A.charCodeAt(E)===U0)){var _=QJ(A,E,R);if(_<R&&!k9(A,f)){Q=f;break}}}if(P>=g0&&P<=u0){let E=f+Z1;for(;E<R&&A.charCodeAt(E)>=g0&&A.charCodeAt(E)<=u0;)E++;if(E<R&&(A.charCodeAt(E)===n6||A.charCodeAt(E)===t6)&&E-(f+Z1)===1&&A.charCodeAt(f+Z1)===49){var k=E+1;if(k<R&&(A.charCodeAt(k)===q0||A.charCodeAt(k)===U0)){var C=QJ(A,k,R);if(C<R){Q=f;break}}}}if(P===j2){let E=r0(A,R);if(E<A.length){let u=G1(A,E);if(WN(A,E,u)){Q=f;break}}}if((P===E0||P===n1||P===l1)&&k9(A,f)){if(P!==E0){Q=f;break}let E=0,u=f+Z1;for(;u<R&&A.charCodeAt(u)===E0;)E++,u++;for(;u<R&&(A.charCodeAt(u)===q0||A.charCodeAt(u)===U0);)u++;if(u<R){Q=f;break}}}}Q=r0(A,x)}for(var O=z?G:Q;O>Z&&(A.charCodeAt(O-1)===_0||A.charCodeAt(O-1)===C9||A.charCodeAt(O-1)===q0||A.charCodeAt(O-1)===U0);)O--;for(var N=Z;N<O&&(A.charCodeAt(N)===q0||A.charCodeAt(N)===U0);)N++;if(N>=O)return null;for(var D=!1,T=N;T<O;T++)if(A.charCodeAt(T)===gH){D=!0;break}var h=D?A.slice(N,O).replace(/\\u001E/g,""):A.slice(N,O);if(!h)return null;let S=Q8(h,!0,J,q);return z?{node:{type:r.heading,level:z,children:S,id:""},end:Q}:{node:{type:r.paragraph,children:S},end:Q}}function Q8(A,Z,J,q){var Q=J.t;if(!Q){var z=J.k;J.k=Z;var G=m4(A,0,A.length,J,q);return J.k=z,G}var X=[];return Q.push({dest:X,text:A,breaks:Z,inline:J.inline,inAnchor:J.inAnchor,inHTML:J.inHTML,htmlDepth:J.d,inList:J.inList,inBlockQuote:J.inBlockQuote,noSetext:J.l,depth:J.o}),X}function LR(A,Z,J){if(A.charCodeAt(Z)!==z1)return null;let q=O9(A,Z,J,96),Q=Z+q;for(;Q<J;){let z=A.indexOf("`",Q);if(z<0||z>=J)return null;let G=O9(A,z,J,96);if(G===q){let X=A.slice(Z+q,z);return X.indexOf(`\n`)!==-1&&(X=X.replace(/\\n/g," ")),X.length>0&&X[0]===" "&&X.at(-1)===" "&&X.trim().length>0&&(X=X.slice(1,-1)),{node:{type:r.codeInline,text:X},end:z+G}}Q=z+G}return null}function qW(A,Z,J){if(A.charCodeAt(Z)!==z1)return Z;let q=O9(A,Z,J,96),Q=Z+q;for(;Q<J;){let z=A.indexOf("`",Q);if(z<0||z>=J)return Z;let G=O9(A,z,J,96);if(G===q)return z+G;Q=z+G}return Z}function VR(A,Z,J){if(A.charCodeAt(Z)!==k1)return Z;if(Z+1<J&&A.charCodeAt(Z+1)===s1){let U=Z+2;for(;U<J&&A.charCodeAt(U)!==c0;)U++;return U<J?U+1:Z}if(Z+3<J&&A.charCodeAt(Z+1)===d2&&A.charCodeAt(Z+2)===E0&&A.charCodeAt(Z+3)===E0){let U=A.indexOf("-->",Z+4);return U>=0?U+3:Z}let q=Z+1,Q=q;for(;q<J;){let U=A.charCodeAt(q);if(U>=P0&&U<=f0||U>=K1&&U<=I1||U>=g0&&U<=u0||U===E0)q++;else break}if(q===Q)return Z;let z=A.slice(Q,q).toLowerCase(),G=!1;for(;q<J;){let U=A.charCodeAt(q);if(U===c0){q++;break}if(U===s1&&q+1<J&&A.charCodeAt(q+1)===c0){q+=2,G=!0;break}if(U===x5||U===h5){var X=U;for(q++;q<J&&A.charCodeAt(q)!==X;)q++;q<J&&q++;continue}if(U===_0)return Z;q++}if(G||zJ(z))return q;let Y=1;for(;q<J&&Y>0;)if(A.charCodeAt(q)===k1)if(q+1<J&&A.charCodeAt(q+1)===s1){let U=q+2,H=U;for(;H<J&&(A.charCodeAt(H)>=P0&&A.charCodeAt(H)<=f0||A.charCodeAt(H)>=K1&&A.charCodeAt(H)<=I1);)H++;if(A.slice(U,H).toLowerCase()===z){for(;H<J&&A.charCodeAt(H)!==c0;)H++;if(H<J&&H++,Y--,Y===0)return H}q=H}else{let U=q+1,H=U;for(;H<J&&(A.charCodeAt(H)>=P0&&A.charCodeAt(H)<=f0||A.charCodeAt(H)>=K1&&A.charCodeAt(H)<=I1);)H++;A.slice(U,H).toLowerCase()===z&&Y++,q++}else q++;return q}function MR(A,Z,J){let q=A.charCodeAt(Z)===d2?Z+1:Z;if(A.charCodeAt(q)!==T1)return Z;let Q=1,z=q+1;for(;z<J&&Q>0;){let X=A.charCodeAt(z);if(X===G2&&z+1<J){z+=2;continue}X===T1?Q++:X===S6&&Q--,z++}if(Q!==0||z>=J)return Z;let G=A.charCodeAt(z);if(G===x6){let X=1;for(z++;z<J&&X>0;){let Y=A.charCodeAt(z);if(Y===G2&&z+1<J){z+=2;continue}Y===x6?X++:Y===t6&&X--,z++}return X===0?z:Z}if(G===T1){let X=1;for(z++;z<J&&X>0;){let Y=A.charCodeAt(z);Y===T1?X++:Y===S6&&X--,z++}return X===0?z:Z}return Z}function FR(A,Z,J,q,Q){if(A.charCodeAt(Z)!==V2||Z+1>=J||A.charCodeAt(Z+1)!==V2)return null;let z=Z+2;for(;z+1<J;){let G=A.charCodeAt(z);if(G===z1){let X=qW(A,z,J);if(X>z){z=X;continue}}if(G===V2&&A.charCodeAt(z+1)===V2){let X=A.slice(Z+2,z),Y=m4(X,0,X.length,q,Q);return{node:{type:r.textFormatted,tag:"del",children:Y},end:z+2}}G===G2&&z+1<J&&z++,z++}return null}function _R(A,Z,J,q,Q){if(A.charCodeAt(Z)!==s6||Z+1>=J||A.charCodeAt(Z+1)!==s6)return null;let z=Z+2;for(;z+1<J;){let G=A.charCodeAt(z);if(G===z1){let X=qW(A,z,J);if(X>z){z=X;continue}}if(G===s6&&A.charCodeAt(z+1)===s6&&z>Z+2){let X=A.slice(Z+2,z),Y=m4(X,0,X.length,q,Q);return{node:{type:r.textFormatted,tag:"mark",children:Y},end:z+2}}G===G2&&z+1<J&&z++,z++}return null}function aC(A,Z,J){return A<XG?!!(JW(A)&e7):Sb.test(Z[J])}function sC(A,Z,J){return A<XG?!!(JW(A)&D5):Pb.test(Z[J])}function kR(A,Z,J){var q=A.charCodeAt(Z);if(q!==n1&&q!==l1)return null;var Q=O9(A,Z,J,q);if(Q===0)return null;var z=Z>0?A.charCodeAt(Z-1):32,G=Z+Q<J?A.charCodeAt(Z+Q):32,X=sC(z,A,Z-1),Y=sC(G,A,Z+Q),U=Z>0?aC(z,A,Z-1):!1,H=Z+Q<J?aC(G,A,Z+Q):!1,W=!Y&&(!H||X||U),B=!X&&(!U||Y||H),K,V;return q===n1?(K=W,V=B):(K=W&&(!B||U),V=B&&(!W||H)),{len:Q,canOpen:K,canClose:V}}function jR(A,Z,J,q){if(Z.length!==0){for(var Q=A.length,z=Array(Q),G=null,X=null,Y=0;Y<Q;Y++){var U={node:A[Y],prev:X,next:null};X?X.next=U:G=U,z[Y]=U,X=U}for(var H=Array(Z.length),W=0;W<Z.length;W++)H[W]=z[Z[W].idx];for(var B=[],K=0;K<12;K++)B[K]=-1;for(var V=0;V<Z.length;){var F=Z[V];if(!(F.active&&F.canClose)){V++;continue}for(var j=F.ch===n1?0:1,$=j*6+F.len%3*2+(F.canOpen?1:0),L=B[$]===void 0?-1:B[$],M=-1,_=V-1;_>L;_--){var k=Z[_];if(!(!k.active||k.ch!==F.ch||!k.canOpen)&&!((F.canOpen||k.canClose)&&(k.len+F.len)%3===0&&k.len%3!==0)){M=_;break}}if(M<0){B[$]=V-1,!F.canOpen&&(F.active=!1),V++;continue}var C=Z[M],O=C.len>=2&&F.len>=2,N=O?2:1;C.len-=N,F.len-=N;var D=H[M],T=H[V],h=D.node,S=T.node;h.text=h.text.slice(0,h.text.length-N),S.text=S.text.slice(N);for(var x=[],f=D.next;f&&f!==T;)x.push(f.node),f=f.next;var R={type:r.textFormatted,tag:O?"strong":"em",children:x},P={node:R,prev:D,next:T};D.next=P,T.prev=P;for(var E=M+1;E<V;E++)Z[E].active=!1;if(C.len===0&&(C.active=!1,h.text==="")){var u=D.prev;P.prev=u,u?u.next=P:G=P}if(F.len===0){if(F.active=!1,S.text===""){var v=T.next;P.next=v,v&&(v.prev=P)}}else continue;V++}for(var I=0,t=G;t;){var W0=t.node;if(W0.type===r.text){var Q0=W0;if(Q0.text===""){t=t.next;continue}if(I>0&&A[I-1].type===r.text){A[I-1].text+=Q0.text,t=t.next;continue}}A[I++]=W0,t=t.next}A.length=I}}function az(A,Z,J,q){return Z(A,J,q)===null?null:A}var nC=0,iH=0,tC=0,rH=0,eC=0,oH=0,fH=0,a6=0;function CR(){return fH===2147483647&&(iH=0,rH=0,oH=0,ez=0,fH=0),++fH}var bH=null,ez=0,sz=[],RH=256;function AN(A,Z,J,q,Q){let z=A.charCodeAt(Z)===d2,G=z?Z+1:Z;if(A.charCodeAt(G)!==T1||rH===a6&&G>=tC)return null;var X=ez===a6?bH:null,Y=X===null?0:X[G];if(Y<0)return null;var U=Y;if(Y===0){var H=A.indexOf("]",G+1);if(H<0||H>=J)return tC=G,rH=a6,null;U=G+1;var W=0;sz[W++]=G;for(var B=J-G>=RH;U<J&&W>0;){var K=A.charCodeAt(U);if(K===G2&&U+1<J){U+=2;continue}if(K===z1){var V=qW(A,U,J);if(V>U){U=V;continue}}if(K===k1){var F=LN(A,U,J);if(F){U=F.end;continue}var j=VR(A,U,J);if(j>U){U=j;continue}}if(K===T1)sz[W++]=U;else if(K===S6){var $=sz[--W];X===null&&B&&U-G>=RH&&(X=bH=new Int32Array(J),ez=a6),X!==null&&(X[$]=U+1)}U++}if(W>0){if(X===null&&B&&U-G>=RH&&(X=bH=new Int32Array(J),ez=a6),X!==null)for(;W>0;)X[sz[--W]]=-1;return null}}var L=U-1,M=A.slice(G+1,L),_=U<J?A.charCodeAt(U):0,k=!1;if(_===x6){var C=!0;for(U++;U<J&&(A.charCodeAt(U)===q0||A.charCodeAt(U)===_0);)U++;var O="",N=U;if(U<J&&A.charCodeAt(U)===k1){for(U++,N=U;N<J&&A.charCodeAt(N)!==c0;){if(A.charCodeAt(N)===G2&&N+1<J){N+=2;continue}if(A.charCodeAt(N)===_0){C=!1;break}N++}C&&(N>=J||A.charCodeAt(N)!==c0)&&(C=!1),C&&(O=A.slice(U,N),N++)}else if(C){var D=iH===a6?nC:-1;if(D>=0&&U>=D)C=!1;else{for(var T=0,h=!1;N<J;){var S=A.charCodeAt(N);if(S===G2&&N+1<J){N+=2;continue}if(S===x6)T++;else if(S===t6){if(h=!0,T===0)break;T--}else if(S===q0||S===_0)break;N++}N>=J&&!h&&(D<0||U<D)&&(nC=U,iH=a6),O=A.slice(U,N)}}if(C){for(U=N;U<J&&(A.charCodeAt(U)===q0||A.charCodeAt(U)===_0);)U++;var x;if(U<J){var f=A.charCodeAt(U);if(f===x5||f===h5||f===x6){var R=f===x6?41:f;U++;for(var P=U;U<J&&A.charCodeAt(U)!==R;)A.charCodeAt(U)===G2&&U+1<J&&U++,U++;U>=J?C=!1:(x=A.slice(P,U),U++)}}if(C){for(;U<J&&(A.charCodeAt(U)===q0||A.charCodeAt(U)===_0);)U++;(U>=J||A.charCodeAt(U)!==t6)&&(C=!1)}}if(C){if(U++,O=_9(q8(O)),x!==void 0&&(x=_9(q8(x))),z){var E=m4(M,0,M.length,q,Q),u=zG(E);return{node:{type:r.image,target:az(O,Q?.sanitizer||_A,"img","src"),alt:u,title:x},end:U}}var v=q.inAnchor;q.inAnchor=!0;var l=v?[{type:r.text,text:M}]:m4(M,0,M.length,q,Q);return q.inAnchor=v,!q.inAnchor&&aH(l)?null:{node:{type:r.link,target:az(O,Q?.sanitizer||_A,"a","href"),title:x,children:l},end:U}}U=L+1,k=!0}var I="",t=U;if(!k&&_===T1){var W0=U+1;t=W0;for(var Q0=!1;t<J&&A.charCodeAt(t)!==S6;){if(A.charCodeAt(t)===G2&&t+1<J){t+=2;continue}if(A.charCodeAt(t)===T1){Q0=!0;break}t++}if(Q0||t>=J)return null;var b=A.slice(W0,t);if(b.trim())I=nz(b);else{if(gC(M))return null;I=nz(M)}t+=1}else{if(gC(M))return null;I=nz(M)}var y=q.refs?.[I];if(!y)return null;if(z)return{node:{type:r.image,target:az(y.target,Q?.sanitizer||_A,"img","src"),alt:zG(m4(M,0,M.length,q,Q)),title:y.title},end:t};var m=q.inAnchor;q.inAnchor=!0;var l=m?[{type:r.text,text:M}]:m4(M,0,M.length,q,Q);return q.inAnchor=m,!q.inAnchor&&aH(l)?null:{node:{type:r.link,target:az(y.target,Q?.sanitizer||_A,"a","href"),title:y.title,children:l},end:t}}function LN(A,Z,J){if(A.charCodeAt(Z)!==k1)return null;for(var q=Z+1;q<J;){var Q=A.charCodeAt(q);if(Q===c0)break;if(Q===q0||Q===_0||Q===C9||Q===k1)return null;q++}if(q>=J||A.charCodeAt(q)!==c0)return null;var z=A.slice(Z+1,q),G=z.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\\x00-\\x20]*)$/);return G?{node:{type:r.link,target:z,title:void 0,children:[{type:r.text,text:z}]},end:q+1}:z.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(z)?{node:{type:r.link,target:`mailto:${z}`,title:void 0,children:[{type:r.text,text:z}]},end:q+1}:null}function NR(A,Z,J,q){if(A.charCodeAt(Z)!==T1||Z+1>=J||A.charCodeAt(Z+1)!==kA||oH===a6&&Z>=eC)return null;let Q=Z+2;for(;Q<J&&A.charCodeAt(Q)!==S6&&A.charCodeAt(Q)!==_0;)Q++;if(Q>=J)return eC=Z,oH=a6,null;if(A.charCodeAt(Q)!==S6)return null;let z=A.slice(Z+2,Q);return z?{node:{type:r.footnoteReference,target:`#${P5(z)}`,text:z},end:Q+1}:null}function OR(A,Z,J,q){if(q.disableBareUrls)return null;var Q="",z=!1,G=A.charCodeAt(Z);if(G===AG||G===72?Z+8<=J&&A.charCodeAt(Z+1)===J8&&A.charCodeAt(Z+2)===J8&&A.charCodeAt(Z+3)===vH&&(A.charCodeAt(Z+4)===QN&&A.charCodeAt(Z+5)===p2&&A.charCodeAt(Z+6)===s1&&A.charCodeAt(Z+7)===s1?Q="https://":A.charCodeAt(Z+4)===p2&&A.charCodeAt(Z+5)===s1&&A.charCodeAt(Z+6)===s1&&(Q="http://")):G===w5||G===70?Z+6<=J&&A.charCodeAt(Z+1)===J8&&A.charCodeAt(Z+2)===vH&&A.charCodeAt(Z+3)===p2&&A.charCodeAt(Z+4)===s1&&A.charCodeAt(Z+5)===s1&&(Q="ftp://"):(G===T5||G===87)&&Z+4<=J&&A.charCodeAt(Z+1)===T5&&A.charCodeAt(Z+2)===T5&&A.charCodeAt(Z+3)===n6&&(Q="www.",z=!0),!Q)return null;let X=Z+Q.length;for(;X<J;){let C=A.charCodeAt(X);if(C===q0||C===_0||C===U0||C===C9||C===k1||C===c0)break;X++}for(var Y=0,U=0,H=Z;H<X;H++){var W=A.charCodeAt(H);W===x6?Y++:W===t6&&U++}let B=X;for(;B>Z+Q.length;){let C=A.charCodeAt(B-1);if(C===n6||C===Mb||C===p2||C===d2||C===z8||C===t6||C===n1||C===l1||C===V2){if(C===t6){if(Y>=U)break;U--}B--}else if(C===ZG){for(var K=B-2;K>Z&&(A.charCodeAt(K)>=P0&&A.charCodeAt(K)<=f0||A.charCodeAt(K)>=K1&&A.charCodeAt(K)<=I1||A.charCodeAt(K)>=g0&&A.charCodeAt(K)<=u0);)K--;K>=Z&&A.charCodeAt(K)===GG?B=K:B--}else break}if(B<=Z+Q.length)return null;var V=Z+(z?4:Q.length),F=A.indexOf("/",V);if((F<0||F>B)&&(F=B),z&&A.indexOf(".",V)===-1)return null;for(var j=-1,$=-1,L=F-1;L>=V;L--)if(A.charCodeAt(L)===n6)if(j<0)j=L;else{$=L;break}for(var M=$>=0?$+1:V,L=M;L<F;L++)if(A.charCodeAt(L)===l1)return null;var _=A.slice(Z,B),k=z?`http://${_}`:_;return{node:{type:r.link,target:k,title:void 0,children:[{type:r.text,text:_}]},end:B}}function DR(A,Z,J,q){if(q.disableBareUrls)return null;for(var Q=Z,z=Q;Q<J;){var G=A.charCodeAt(Q);if(G>=P0&&G<=f0||G>=K1&&G<=I1||G>=g0&&G<=u0||G===n6||G===d2||G===e6||G===36||G===yH||G===GG||G===h5||G===n1||G===N9||G===s1||G===s6||G===z8||G===kA||G===l1||G===z1||G===S5||G===j2||G===AW||G===V2||G===E0)Q++;else break}if(Q===z||Q>=J||A.charCodeAt(Q)!==qN)return null;Q++;for(var X=Q,Y=-1,U=Q;Q<J;){var G=A.charCodeAt(Q);if(G>=P0&&G<=f0||G>=K1&&G<=I1||G>=g0&&G<=u0)Q++;else if((G===E0||G===l1)&&Q>X)Q++;else if(G===n6){if(Q===X)break;var H=A.charCodeAt(Q-1);if(H===E0||H===l1||Q-U>63)break;if(Q+1<J){var W=A.charCodeAt(Q+1);if(W>=P0&&W<=f0||W>=K1&&W<=I1||W>=g0&&W<=u0)Y=Q,U=Q+1,Q++;else break}else break}else break}if(Q-U>63||Y<0)return null;var B=A.charCodeAt(Q-1);if(!(B>=P0&&B<=f0||B>=K1&&B<=I1||B>=g0&&B<=u0)||Q<=Y+1)return null;for(var K=-1,V=Y-1;V>=X;V--)if(A.charCodeAt(V)===n6){K=V;break}for(var F=K>=0?K+1:X,V=F;V<Q;V++)if(A.charCodeAt(V)===l1)return null;var j=A.slice(Z,Q);return{node:{type:r.link,target:`mailto:${j}`,title:void 0,children:[{type:r.text,text:j}]},end:Q}}function aH(A){for(var Z=0;Z<A.length;Z++)if(A[Z].type===r.link||"children"in A[Z]&&Array.isArray(A[Z].children)&&aH(A[Z].children))return!0;return!1}function zG(A,Z){for(var J="",q=0;q<A.length;q++){var Q=A[q];Q.type===r.text?J+=Q.text:Q.type===r.breakLine?J+=" ":Q.type===r.codeInline||Q.type===r.footnoteReference?J+=Q.text:("children"in Q)&&Array.isArray(Q.children)?J+=zG(Q.children,Z):!Z&&Q.type===r.image&&(J+=Q.alt||"")}return J}function sH(A,Z,J){for(var q=0;q<A.length;q++){var Q=A[q];if(Q.type===r.heading){var z=Q;z.id=QR(J(zG(z.children,!0)),Z)}if("children"in Q){var G=Q.children;Array.isArray(G)&&sH(G,Z,J)}if((Q.type===r.orderedList||Q.type===r.unorderedList)&&Array.isArray(Q.items))for(var X=Q.items,Y=0;Y<X.length;Y++)sH(X[Y],Z,J)}}function O5(A){return{type:r.text,text:A}}function TR(A,Z,J){var q=Z+1;if(q>=J)return-1;if(A.charCodeAt(q)===e6){q++;var Q=q<J&&(A.charCodeAt(q)===zN||A.charCodeAt(q)===GN);Q&&q++;for(var z=q,G=Q?6:7;q<J&&q-z<=G;){var X=A.charCodeAt(q),Y=X>=g0&&X<=u0||Q&&(X>=P0&&X<=EH||X>=K1&&X<=w5);if(!Y)break;q++}return q===z||q-z>G?-1:q<J&&A.charCodeAt(q)===ZG?q+1:-1}for(var U=q;q<J&&q-U<48;){var H=A.charCodeAt(q);if(H>=P0&&H<=f0||H>=K1&&H<=I1||H>=g0&&H<=u0){q++;continue}break}return q===U?-1:q<J&&A.charCodeAt(q)===ZG?q+1:-1}function wR(A,Z,J,q,Q){if(A.charCodeAt(Z)!==k1)return null;var z=Z+1;if(z>=J)return null;var G=A.charCodeAt(z);if(G===d2&&z+1<J&&A.charCodeAt(z+1)===E0&&z+2<J&&A.charCodeAt(z+2)===E0){var X=z+3;if(X<J&&A.charCodeAt(X)===c0)return{node:{type:r.htmlComment,text:"",s:!0},end:X+1};if(X+1<J&&A.charCodeAt(X)===E0&&A.charCodeAt(X+1)===c0)return{node:{type:r.htmlComment,text:"-",s:!0},end:X+2};var Y=A.indexOf("-->",X);return Y!==-1&&Y<=J-3?{node:{type:r.htmlComment,text:A.slice(Z+4,Y),s:!1},end:Y+3}:null}if(G===z8){var U=A.indexOf("?>",z+1);return U!==-1&&U<J?{node:{type:r.htmlSelfClosing,tag:"?",attrs:{},m:A.slice(Z,U+2),a:!1},end:U+2}:null}if(G===d2&&z+1<J){var H=A.charCodeAt(z+1);if(H===T1&&A.slice(z+1,z+8)==="[CDATA["){var W=A.indexOf("]]>",z+8);return W!==-1&&W<J?{node:{type:r.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:A.slice(Z,W+3),a:!1},end:W+3}:null}if(H>=P0&&H<=f0){var B=A.indexOf(">",z+2);return B!==-1&&B<J?{node:{type:r.htmlSelfClosing,tag:`!${A.slice(z+1,B)}`,attrs:{},m:A.slice(Z,B+1),a:!1},end:B+1}:null}}if(G===s1){var K=z+1;if(K>=J)return null;var V=A.charCodeAt(K);if(!(V>=P0&&V<=f0||V>=K1&&V<=I1))return null;for(K++;K<J;){var F=A.charCodeAt(K);if(F>=P0&&F<=f0||F>=K1&&F<=I1||F>=g0&&F<=u0||F===E0)K++;else break}for(;K<J&&(A.charCodeAt(K)===q0||A.charCodeAt(K)===U0||A.charCodeAt(K)===_0);)K++;if(K<J&&A.charCodeAt(K)===c0){var j=A.slice(z+1,K).trim();return{node:{type:r.htmlSelfClosing,tag:j,attrs:{},h:A.slice(Z,K+1),a:!0},end:K+1}}return null}if(!(G>=P0&&G<=f0||G>=K1&&G<=I1))return null;var $=c4(A,Z);if(!$)return null;var L=$.tag,M=L.toLowerCase(),_=$.n;if(_||zJ(L))return{node:{type:r.htmlSelfClosing,tag:L,attrs:u4($.attrs,L,Q),m:$.q?mH($):A.slice(Z,$.end),a:!1},end:$.end};var k=GJ.has(M),C=lH(A.slice(0,J),$.end,L);if(C===-1)return{node:{type:r.htmlSelfClosing,tag:L,attrs:u4($.attrs,L,Q),m:$.q?mH($):A.slice(Z,$.end),a:!1},end:$.end};var O=HR(A,`</${M}`,C),N=A.slice($.end,O);if(k){var D=h6(N);return{node:{type:r.htmlBlock,tag:L,attrs:u4($.attrs,L,Q),b:$.g+$.b,children:[],e:D||void 0,h:A.slice(O,C),text:D,c:!0,a:!1},end:C}}var T=[],h=N.trim();if(h){var{inAnchor:S,inline:x,k:f}=q;M==="a"&&(q.inAnchor=!0),q.k=!1;var R=h.indexOf(`\n\n`)!==-1||/^#{1,6}\\s/.test(h);R?(q.inline=!1,T=j9(h,q,Q)):T=m4(h,0,h.length,q,Q),q.inAnchor=S,q.inline=x,q.k=f}return{node:{type:r.htmlBlock,tag:L,attrs:u4($.attrs,L,Q),b:$.b,children:T,text:h6(N),c:!1,a:!1},end:C}}var hR=200,qJ=0;function m4(A,Z,J,q,Q){if(qJ++,qJ>hR)return qJ--,[{type:r.text,text:A.slice(Z,J)}];var z=a6;a6=CR();let G=q;if(Q.optimizeForStreaming){let z0=function(m0,$1){for(var J1=1,b1=$1+1;b1<m0.length;b1++){var w1=m0.charCodeAt(b1);if(w1===T1)J1++;else if(w1===S6&&(J1--,J1===0))return b1}return-1},d=A.slice(Z,J),f1=d;for(var X=0,Y=0,U=0,H=0,W=0,B=-1,K=-1,V=-1,F=-1,j=-1,$=0;$<d.length;$++){var L=d.charCodeAt($);if(L===T1){var M=MR(d,$,d.length);if(M>$){$=M-1;continue}}L===n1?$+1<d.length&&d.charCodeAt($+1)===n1?(X++,B=$,$++):(Y++,K=$):L===l1?$+1<d.length&&d.charCodeAt($+1)===l1?(U++,V=$,$++):(H++,F=$):L===V2&&$+1<d.length&&d.charCodeAt($+1)===V2&&(W++,j=$,$++)}var _=[];W%2===1&&j>=0&&_.push([j,2]),U%2===1&&V>=0&&_.push([V,2]),H%2===1&&F>=0&&_.push([F,1]),X%2===1&&B>=0&&_.push([B,2]),Y%2===1&&K>=0&&_.push([K,1]),_.sort((m0,$1)=>$1[0]-m0[0]);for(var k=0;k<_.length;k++){var C=_[k][0],O=_[k][1];d=d.slice(0,C)+d.slice(C+O)}let w0=0,X1=-1;for(let m0=0;m0<d.length;m0++)d.charCodeAt(m0)===z1&&(w0++,X1=m0);if(w0%2===1&&X1!==-1){let m0=!1,$1=-1,J1=0;for(;J1<d.length;)d.charCodeAt(J1)===z1&&(m0?(m0=!1,$1=-1):($1=J1,m0=!0)),J1++;m0&&$1!==-1&&(d=d.slice(0,$1))}for(var N=!0;N;){N=!1;for(var D=-1,T=-1,h=-1,S=!1,x=0;x<d.length;x++){var f=d.charCodeAt(x);if(f===T1&&(x===0||d.charCodeAt(x-1)!==G2)){var R=x>0&&d.charCodeAt(x-1)===d2,P=R?x-1:x,E=z0(d,x);if(E===-1)D=P,S=R,T=x+1,h=d.length;else{var u=E+1;if(u>=d.length)D=P,S=R,T=x+1,h=E;else if(d.charCodeAt(u)===x6){var v=d.indexOf(")",u+1);v===-1?(D=P,S=R,T=x+1,h=E,x=d.length):x=v}else if(d.charCodeAt(u)===T1){var I=d.indexOf("]",u+1);I===-1?(D=P,S=R,T=x+1,h=E,x=d.length):x=I}else x=E}}}if(D>=0){var t=S?"":d.slice(T,h);d=d.slice(0,D)+t,N=!0}}let C0=d.match(/<([A-Z][A-Za-z0-9]*)(?:\\s[^>]*)?>([^<]*)$/);if(C0&&C0.index!==void 0){var W0=C0[0].length-C0[2].length,Q0=W0>=2&&C0[0].charCodeAt(W0-2)===s1;if(!Q0){for(var b=!1,y=0,m=0;m<C0.index;m++)d.charCodeAt(m)===z1&&y++;if(b=y%2===1,!b){let m0=C0[1];F9(d,`</${m0}`,0)===-1&&(d=d.slice(0,C0.index)+C0[2])}}}d!==f1&&(A=A.slice(0,Z)+d,J=Z+d.length)}let l=[];var o=[];let a=Z;var e="",K0=Q.disableAutoLink||Q.disableBareUrls||G.inAnchor?-1:A.indexOf("@",Z);for(K0>=J&&(K0=-1);Z<J;){let z0=A.charCodeAt(Z),d=null;if(z0===z1){if(d=LR(A,Z,J),!d){var G0=O9(A,Z,J,z1);Z+=G0-1}}else if(z0===n1||z0===l1){var Z0=kR(A,Z,J);if(Z0){if(Z0.canOpen||Z0.canClose){(e||Z>a)&&(l.push(O5(e+A.slice(a,Z))),e="");var F0=A.slice(Z,Z+Z0.len),k0=O5(F0);o.push({idx:l.length,ch:z0,len:Z0.len,canOpen:Z0.canOpen,canClose:Z0.canClose,active:!0}),l.push(k0),Z+=Z0.len,a=Z;continue}Z+=Z0.len-1}}else if(z0===V2)d=FR(A,Z,J,G,Q);else if(z0===s6)d=_R(A,Z,J,G,Q);else if(z0===T1)Z+1<J&&A.charCodeAt(Z+1)===kA&&(d=NR(A,Z,J,G)),d||(d=AN(A,Z,J,G,Q));else if(z0===d2&&Z+1<J&&A.charCodeAt(Z+1)===T1)d=AN(A,Z,J,G,Q);else if(z0===k1)d=LN(A,Z,J),!(d||Q.disableParsingRawHTML||Q.ignoreHTMLBlocks)&&(d=wR(A,Z,J,G,Q));else if(z0===GG){var j0=TR(A,Z,J);if(j0!==-1){var B0=A.slice(Z,j0),h0=_9(B0);if(h0!==B0){e=e+A.slice(a,Z)+h0,Z=j0,a=j0;continue}}}else if((z0===AG||z0===T5||z0===w5)&&!G.inAnchor&&!Q.disableAutoLink&&(Z===0||A.charCodeAt(Z-1)!==k1)){var H0=Z+1<J?A.charCodeAt(Z+1):0;(z0===AG&&H0===J8||z0===w5&&H0===J8||z0===T5&&H0===T5)&&(d=OR(A,Z,J,Q))}if(!d&&K0>=0&&K0-Z<=64&&!G.inAnchor&&!Q.disableAutoLink&&!Q.disableBareUrls&&(z0>=P0&&z0<=f0||z0>=K1&&z0<=I1||z0>=g0&&z0<=u0)&&(d=DR(A,Z,J,Q),!d&&Z>=K0&&(K0=A.indexOf("@",Z+1),K0>=J&&(K0=-1))),z0===_0&&G.k){var D0=!1,x0=0;if(Z>a&&A.charCodeAt(Z-1)===G2)D0=!0,x0=1;else{for(var b0=0,A0=Z-1;A0>=a&&A.charCodeAt(A0)===q0;)b0++,A0--;b0>=2&&(D0=!0,x0=b0)}if(D0){for((e||Z-x0>a)&&(l.push(O5(e+A.slice(a,Z-x0))),e=""),l.push({type:r.breakLine}),Z++;Z<J&&A.charCodeAt(Z)===q0;)Z++;a=Z;continue}var M0=Z>a&&A.charCodeAt(Z-1)===q0,$0=Z+1<J&&A.charCodeAt(Z+1)===q0;if(M0||$0){for(var n=Z;n>a&&A.charCodeAt(n-1)===q0;)n--;for(e+=`${A.slice(a,n)}\n`,Z++;Z<J&&A.charCodeAt(Z)===q0;)Z++;a=Z;continue}}if(d)(e||Z>a)&&(l.push(O5(e+A.slice(a,Z))),e=""),l.push(d.node),Z=d.end,a=Z;else{if(z0===G2&&Z+1<J){let f1=A.charCodeAt(Z+1);if(JW(f1)&e7){(e||Z>a)&&(l.push(O5(e+A.slice(a,Z))),e=""),l.push(O5(A[Z+1])),Z+=2,a=Z;continue}}if(Z++,K0<0||K0-Z>64)for(;Z<J&&!(K0>=0&&K0-Z<=64);){var s=A.charCodeAt(Z);if(s<XG&&!HN[s])Z++;else break}}}return(e||J>a)&&(l.push(O5(e+A.slice(a,J))),e=""),o.length>0&&jR(l,o,q,Q),a6=z,qJ--,l}var xR=500;function j9(A,Z,J){var q=Z.o||0;if(q>xR)return[{type:r.text,text:A}];Z.o=q+1;let Q=Z;if(J.optimizeForStreaming&&!(Z.i||Z.w)){for(var z=A.length;z>0&&A.charCodeAt(z-1)===_0;)z--;for(var G=z;G>0&&A.charCodeAt(G-1)!==_0;)G--;if(z>G&&A.charCodeAt(G)===j2){for(var X=!1,Y=G+1;Y<z;Y++){var U=A.charCodeAt(Y);if(U!==q0&&U!==U0&&U!==j2&&U!==p2&&U!==E0){X=!0;break}}for(var H=!1,W=!1,B=0,K=G,V=G-1;V>0;){for(var F=V;F>0&&A.charCodeAt(F-1)!==_0;)F--;if(A.charCodeAt(F)!==j2)break;K=F;for(var j=!0,$=!1,L=F;L<V;L++){var M=A.charCodeAt(L);if(M===E0)$=!0;else if(M!==q0&&M!==U0&&M!==p2&&M!==j2){j=!1;break}}j&&$?(H=!0,W=!0):W||B++,V=F-1}X?H||(A=A.slice(0,G).trimEnd()):A=H&&B>0?A.slice(0,G).trimEnd():A.slice(0,K).trimEnd()}for(var _=-1,k=-1,C=-1,O=!1,N=A.length-1;N>=0;N--)if(A.charCodeAt(N)===k1){for(var D=N+1<A.length?A.charCodeAt(N+1):0,T=D>=P0&&D<=f0||D>=K1&&D<=I1,h=D===s1&&N+2<A.length&&(A.charCodeAt(N+2)>=P0&&A.charCodeAt(N+2)<=f0||A.charCodeAt(N+2)>=K1&&A.charCodeAt(N+2)<=I1),S=D===d2||D===z8,x=A.length;x>N+1&&A.charCodeAt(x-1)===_0;)x--;var f=N+1>=x;if(T||h||S||f){var R=N+1;if((h||T)&&(R=N+2),T||h)for(;R<A.length;){var P=A.charCodeAt(R);if(P>=P0&&P<=f0||P>=K1&&P<=I1||P>=g0&&P<=u0)R++;else break}for(var E=T||h?R:N+2;E<A.length&&A.charCodeAt(E)!==c0;)E++;if(E>=A.length)_=N,O=!0;else if((T||h)&&A.charCodeAt(E-1)!==s1){for(var u=!1,v=E+1;v<A.length;v++)if(A.charCodeAt(v)===k1){u=!0;break}u||(_=N,k=R,C=E+1)}}break}if(_>=0){for(var I=0,t=0;t<_;t++)A.charCodeAt(t)===z1&&I++;if(I%2===0)if(O)A=A.slice(0,_);else{var W0=A.slice(_+1,k);F9(A,`</${W0}`,0)===-1&&(A=A.slice(0,_)+A.slice(C))}}for(var Q0=A.length;Q0>0&&A.charCodeAt(Q0-1)===_0;)Q0--;if(Q0>0){for(var b=Q0;b>0&&A.charCodeAt(b-1)!==_0;)b--;for(var y=b,m=0;y<Q0&&A.charCodeAt(y)===q0&&m<3;)y++,m++;if(b>0&&y<Q0&&GR(A,y,Q0)){for(var l=b-1,o=l;o>0&&A.charCodeAt(o-1)!==_0;)o--;e2(A,o,l)||(A=A.slice(0,b).trimEnd())}}var a=A.length;if(a>0){for(var e=A.lastIndexOf(`\n`),K0=e===-1?0:e+1,G0=a,Z0=K0,F0=0;Z0<G0&&A.charCodeAt(Z0)===q0&&F0<3;)Z0++,F0++;if(Z0<G0){var k0=A.charCodeAt(Z0),j0=!1;if(k0===n1||k0===E0||k0===N9){var B0=Z0+1;if(B0>=G0||A.charCodeAt(B0)===q0||A.charCodeAt(B0)===U0){for(var h0=B0;h0<G0&&(A.charCodeAt(h0)===q0||A.charCodeAt(h0)===U0);)h0++;h0>=G0&&(j0=!0)}}else if(k0>=g0&&k0<=u0){for(var H0=Z0;H0<G0&&A.charCodeAt(H0)>=g0&&A.charCodeAt(H0)<=u0;)H0++;if(H0<G0&&(A.charCodeAt(H0)===n6||A.charCodeAt(H0)===t6)){var D0=H0+1;if(D0>=G0||A.charCodeAt(D0)===q0||A.charCodeAt(D0)===U0){for(var x0=D0;x0<G0&&(A.charCodeAt(x0)===q0||A.charCodeAt(x0)===U0);)x0++;x0>=G0&&(j0=!0)}}}j0&&(A=A.slice(0,K0).trimEnd())}}}if(Z.inline)return m4(A,0,A.length,Z,J);let b0=[],A0=0,M0=A.length;if(A0===0&&!J.disableFrontmatter&&A.startsWith("---")){let w0=Nb(A);if(w0?.hasValidYaml){if(J.preserveFrontmatter!==!1){let X1=A.slice(0,w0.endPos).trimEnd();b0.push({type:r.frontmatter,text:X1})}A0=w0.endPos}}for(;A0<M0;){for(var $0=A.indexOf(`\n`,A0),n=$0<0?M0:$0;A0<M0&&e2(A,A0,n);)A0=n<M0?n+1:n,A0<M0&&($0=A.indexOf(`\n`,A0),n=$0<0?M0:$0);if(A0>=M0)break;var s=A.charCodeAt(A0)===gH;A2(A,A0,n);let w0=null;if(pH=A,dH=A0,tz=n,!s&&Q1>=4&&!Z.inHTML)w0=YR(A,A0);else if(!s){let X1=A0+Z1,C0=A.charCodeAt(X1);C0===e6?w0=zR(A,A0,Z,J):C0===c0?w0=UR(A,A0,Z,J):C0===z1||C0===V2?w0=XR(A,A0,Z):C0===E0||C0===n1||C0===l1?(w0=k9(A,A0),!w0&&(w0=iC(A,A0,Z,J))):C0===N9||C0>=g0&&C0<=u0?w0=iC(A,A0,Z,J):C0===k1?w0=$N(A,A0,Z,J):C0===j2?w0=oC(A,A0,Z,J):C0===T1&&(w0=BR(A,A0,Z))}if(!w0){for(var z0=!1,d=A0;d<n;d++)if(A.charCodeAt(d)===j2){z0=!0;break}z0&&(w0=oC(A,A0,Z,J))}if(w0||(w0=$R(A,A0,Z,J)),w0)w0.node.type!==r.refCollection&&b0.push(w0.node),A0=w0.end;else{var f1=A.indexOf(`\n`,A0);A0=f1<0?M0:f1+1}}return Z.o=q,b0}function SR(A,Z,J,q){var Q=c4(A,Z);return Q?{tagName:Q.tag,tagLower:Q.tag.toLowerCase(),attrs:Q.b,whitespaceBeforeAttrs:Q.g,isSelfClosing:Q.n,hasSpaceBeforeSlash:Q.r,isClosing:Q.f,hasNewline:Q.g.includes(`\n`)||Q.b.includes(`\n`),endPos:Q.end}:null}function QW(A,Z,J){qJ=0,A=Ib(A),!Z.refs&&(Z.refs=Object.create(null)),(J.optimizeForStreaming||Z.inline)&&(Z.w=qR(A,Z.refs,J));var q,Q;Z.t||(Z.t=q=[],Z.p=Q=[]);let z=j9(A,Z,J);if(q&&Q){for(var G=q,X={inline:Z.inline,inAnchor:Z.inAnchor,inHTML:Z.inHTML,htmlDepth:Z.d,inList:Z.inList,inBlockQuote:Z.inBlockQuote,noSetext:Z.l,depth:Z.o},Y=0;Y<G.length;Y++){var U=G[Y];Z.inline=U.inline,Z.inAnchor=U.inAnchor,Z.inHTML=U.inHTML,Z.d=U.htmlDepth,Z.inList=U.inList,Z.inBlockQuote=U.inBlockQuote,Z.l=U.noSetext,Z.o=U.depth,Z.k=U.breaks;var H=m4(U.text,0,U.text.length,Z,J);Z.k=!1;for(var W=0;W<H.length;W++)U.dest.push(H[W])}Z.inline=X.inline,Z.inAnchor=X.inAnchor,Z.inHTML=X.inHTML,Z.d=X.htmlDepth,Z.inList=X.inList,Z.inBlockQuote=X.inBlockQuote,Z.l=X.noSetext,Z.o=X.depth;for(var B=Q,K=0;K<B.length;K++)for(var V=B[K],F=0;F<V.src.length;F++){var j=V.src[F];if(V.unwrap&&j.type===r.paragraph)for(var $=j.children,L=0;L<$.length;L++)V.dest.push($[L]);else V.dest.push(j)}Z.t=void 0,Z.p=void 0,sH(z,Z,J.slugify)}return YN(Z.refs)?[{type:r.refCollection,refs:Z.refs},...z]:z}var nH;try{n7=A6.createElement("div"),nH=n7!=null&&typeof n7=="object"&&"$$typeof"in n7&&typeof n7.$$typeof=="symbol"?n7.$$typeof:Symbol.for("react.transitional.element")}catch{nH=Symbol.for("react.transitional.element")}var n7;function tH(A,Z,J){return{$$typeof:nH,type:A,key:J==null?null:String(J),ref:null,props:Z,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function o6(A,Z){var J={key:A};if(Z){var q=XN(Z);for(var Q in q)J[Q]=q[Q]}return J}var ZN=typeof A6.createContext>"u"?void 0:A6.createContext(void 0);function JN(A,Z,J,q,Q,z,G,X,Y){switch(A.type){case r.blockQuote:{let $={key:J.key};return A.alert&&($.className=`markdown-alert-${z(A.alert.toLowerCase(),P5)}`,A.children.unshift(Rb(A.alert))),q("blockquote",$,Z(A.children,J))}case r.breakLine:return q("br",{key:J.key});case r.breakThematic:return q("hr",{key:J.key});case r.frontmatter:return X.preserveFrontmatter?q("pre",{key:J.key},A.text):null;case r.codeBlock:{let $=A.lang?_9(A.lang):"";var U=A.attrs?XN(A.attrs):{};return U.className=$?`language-${$} lang-${$}`:"",q("pre",{key:J.key},q("code",U,A.text))}case r.codeInline:return q("code",{key:J.key},A.text);case r.footnoteReference:return q("a",{key:J.key,href:Q(A.target,"a","href")||void 0},q("sup",null,A.text));case r.gfmTask:return q("input",{checked:A.completed,key:J.key,readOnly:!0,type:"checkbox"});case r.heading:return q(`h${A.level}`,{id:A.id,key:J.key},Z(A.children,J));case r.htmlBlock:{let $=A;if(t7(X)&&fC($.tag)){var H=PC($);return H.kind==="literal"?q("span",{key:J.key},H.literal):q("span",{key:J.key},...ub(H.open,$.children?Z($.children,J):null,H.close))}let L=$.j,M=L!==void 0,_=M?L:$.a?$.e||"":($.e||"")+($.h||"");if(_&&$.c){let k=$.tag.toLowerCase(),C=sb(k),O=$.children,N=O!=null&&O.length>0;if(C){let R=M?L:$.e||"",P=t7(X)?bC(R):R;if(/<[a-z][^>]{0,100}>/i.test(_)){var W=o6(J.key,A.attrs);return W.dangerouslySetInnerHTML={__html:P},Y(A.tag,W)}return Y(A.tag,o6(J.key,A.attrs),P)}let D=new RegExp(`^<${$.tag}(\\\\s|>)`,"i");if(N&&!D.test(_)&&t7(X)&&ib(_))return Y(A.tag,o6(J.key,A.attrs),Z(O,J));if(nb(_)){let R=t7(X)?bC(_):_;var B=o6(J.key,A.attrs);return B.dangerouslySetInnerHTML={__html:R},Y(A.tag,B)}let T=ZW({slugify:X.slugify,sanitizer:Q,tagfilter:!0}),h=fb(_);if(new RegExp(`^<${$.tag}(\\\\s[^>]*)?>(\\\\s*</${$.tag}>)?$`,"i").test(h))return $.children&&$.children.length>0?Y(A.tag,o6(J.key,A.attrs),Z($.children,J)):Y(A.tag,o6(J.key,A.attrs));let S=QW(h,{inline:!1,refs:G,inHTML:!1},T);UN(S);let x=$.tag.toLowerCase(),f=M;if(f&&N)return Y(A.tag,o6(J.key,A.attrs),Z(O,J));if(f)return Z(S.flatMap(A8),J);var K=vb(S,x);if(K.found&&K.afterClose.length>0){var V=K.beforeClose.flatMap(A8),F=K.afterClose.flatMap(A8);return tH(A6.Fragment,{children:[Y(A.tag,o6(J.key,A.attrs),Z(V,J)),Z(F,J)]},J.key)}return Y(A.tag,o6(J.key,A.attrs),Z(S.flatMap(A8),J))}return zJ(A.tag)?Y(A.tag,o6(J.key,A.attrs)):Y(A.tag,o6(J.key,A.attrs),A.children?Z(A.children,J):"")}case r.htmlSelfClosing:{let $=A;if(t7(X)&&fC($.tag)){var j=PC($);return q("span",{key:J.key},j.kind==="literal"?j.literal:j.open+(j.close||""))}return Y(A.tag,o6(J.key,A.attrs))}case r.image:{let $=A.target===null?null:Q(A.target,"img","src");return q("img",{key:J.key,alt:A.alt&&A.alt.length>0?A.alt:void 0,title:A.title||void 0,src:$||void 0})}case r.link:{let $={key:J.key};if(A.target!=null){let L=cb(A.target,Q,"a","href");L!=null&&($.href=L)}return A.title&&($.title=A.title),q("a",$,Z(A.children,J))}case r.table:{let $=A;return q("table",{key:J.key},q("thead",{key:"thead"},q("tr",null,$.header.map(function(L,M){return q("th",{key:M,style:$.align[M]===null?{}:{textAlign:$.align[M]}},Z(L,J))}))),$.cells.length>0&&q("tbody",{key:"tbody"},$.cells.map(function(L,M){return q("tr",{key:M},L.map(function(_,k){return q("td",{key:k,style:$.align[k]===null?{}:{textAlign:$.align[k]}},Z(_,J))}))})))}case r.text:return A.text;case r.textFormatted:return q(A.tag,{key:J.key},Z(A.children,J));case r.orderedList:case r.unorderedList:{let $=A.type===r.orderedList?"ol":"ul";return q($,{key:J.key,start:A.type===r.orderedList?A.start:void 0},A.items.map(function(L,M){return q("li",{key:M},Z(L,J))}))}case r.paragraph:return q("p",{key:J.key},Z(A.children,J));case r.ref:return null;default:return null}}var PR=(A,Z,J,q,Q,z,G)=>{var X=(U)=>U.map((H)=>("text"in H)?H.text:""),Y=(U,H={})=>{var W=Array.isArray(U)?U:[U],B=(H.renderDepth||0)+1;if(B>2500)return X(W);H.renderDepth=B;for(var K=H.key,V=[],F=!1,j=0;j<W.length;j++){H.key=j;var $;if(A){var L=JN.bind(null,W[j],Y,H,Z,J,q,Q,z,G);$=A(L,W[j],Y,H)}else $=JN(W[j],Y,H,Z,J,q,Q,z,G);var M=typeof $=="string";if(F&&typeof $=="string"){var _=V.at(-1);V[V.length-1]=(typeof _=="string"?_:"")+$}else if($!=null)if(Array.isArray($))for(var k=0;k<$.length;k++)V.push($[k]);else V.push($);F=M}return H.key=K,H.renderDepth=B-1,V};return Y},IR=(A,Z)=>{let J=uH(Z,A,void 0);return J?typeof J=="function"||typeof J=="object"&&"render"in J?J:uH(Z,`${A}.component`,A):A};function fR(A,Z){let J={...Z||{}};J.overrides=J.overrides||{};let q=J.slugify||P5,Q=J.sanitizer||_A,z=J.createElement,G=YN(J.overrides),X=(M)=>eH(M,{...J,wrapper:null});function Y(M){for(var _ in M){var k=M[_];if(typeof k=="string"&&k.length>0&&k.charCodeAt(0)===k1&&(rb.test(k)||ob.test(k)||SR(k,0))){var C=X(k.trim());M[_]=_==="innerHTML"&&Array.isArray(C)?C[0]:C}}}function U(M,_,...k){var C=_||{},O=M;if(G){var N=uH(J.overrides,`${M}.props`,{});O=IR(M,J.overrides),C={...C,...N,className:db(C.className,N.className)||void 0}}if(!z){var D=C.key;return D!=null&&delete C.key,k.length===1?C.children=k[0]:k.length>1&&(C.children=k),tH(O,C,D)}return z(O,C,...k)}function H(M,_,...k){return _&&Y(_),U(M,_,...k)}let W=ZW(J,J.forceInline),B=A[0]&&A[0].type===r.refCollection?A[0].refs:Object.create(null),K=PR(J.renderRule,U,Q,q,B,J,H),V=K(A,{inline:J.forceInline,refs:B}),F=mb(B);if(F.length>0&&V.push(U("footer",{key:"footer"},F.map(function(M){let _=M.identifier.charCodeAt(0)===kA?M.identifier.slice(1):M.identifier,k=QW(M.footnote,{inline:!0,refs:B},W);return U("div",{id:q(_,P5),key:M.identifier},`${_}: `,K(k,{inline:!0,refs:B}))}))),J.wrapper===null)return V;let j=J.wrapper||(J.forceInline?"span":"div"),$;if(V.length>1||J.forceWrapper)$=V;else return V.length===1?V[0]:null;var L=J.wrapperProps?{...J.wrapperProps}:{};return L.children=$,tH(j,L,"outer")}function eH(A="",Z={}){let J={...Z||{}};J.overrides=J.overrides||{};let q=J.slugify||P5,Q=J.sanitizer||_A;function z(X){let Y=J.forceInline||!(J.forceBlock||wb.test(X)),U=ZW(J,Y),H=Y?X:Eb(X),W=QW(H,{inline:Y,refs:G},U);return fR(W,{...J,forceInline:Y})}let G=Object.create(null);return z(A)}function bR(A){let Z=A6.useRef(A),J=Z.current;if(J!==A){var q=!0,Q=0;for(var z in A)if(Q++,!Object.is(J[z],A[z])){q=!1;break}if(q){var G=0;for(var X in J)G++;q=G===Q}q||(Z.current=A)}return Z.current}var VN=({children:A,options:Z,...J})=>{if(!(typeof A6.useContext<"u")){let X={...Z,overrides:{...Z?.overrides},wrapperProps:{...Z?.wrapperProps,...J}};return eH(A??"",X)}let q=ZN?A6.useContext(ZN):void 0,Q=bR(J),z=A6.useMemo(()=>({...q,...Z,overrides:{...q?.overrides,...Z?.overrides},wrapperProps:{...q?.wrapperProps,...Z?.wrapperProps,...Q}}),[q,Z,Q]),G=A??"";return A6.useMemo(()=>eH(G,z),[G,z])};var RR="mt-[0.9rem] mb-[0.3rem] first:mt-0 font-bold text-[0.8rem] uppercase tracking-[0.08em] opacity-55",G8=(A)=>({component:A,props:{className:RR}});function yR(A){return w("a",{...A,target:"_blank",rel:"noreferrer noopener",className:"break-all underline"})}function ER({alt:A}){return Y0("span",{className:"text-muted-foreground",children:["[",A||"image","]"]})}function vR(A){return w("input",{...A,disabled:!0,className:"mr-1.5 align-[-0.1em]",readOnly:!0})}var gR={disableParsingRawHTML:!0,forceBlock:!0,overrides:{h1:G8("h1"),h2:G8("h2"),h3:G8("h3"),h4:G8("h4"),h5:G8("h5"),h6:G8("h6"),p:{props:{className:"my-1"}},ul:{props:{className:"my-1 list-disc pl-5"}},li:{props:{className:"has-[>input]:-ml-5 has-[>input]:list-none has-[>input:checked]:opacity-50"}},ol:{props:{className:"my-1 list-decimal pl-5"}},blockquote:{props:{className:"my-1 border-l-2 pl-3 text-muted-foreground"}},pre:{props:{className:"my-2 overflow-x-auto rounded bg-current/8 p-3 text-xs"}},code:{props:{className:"rounded bg-current/10 px-1 [pre_&]:p-0 [pre_&]:bg-transparent"}},table:{props:{className:"my-2 block overflow-x-auto text-xs"}},th:{props:{className:"border px-2 py-1 text-left font-medium"}},td:{props:{className:"border px-2 py-1"}},hr:{props:{className:"my-3"}},a:yR,img:ER,input:vR}};function XJ({text:A,className:Z,preview:J=!1}){return w("div",{className:T0("min-w-0 break-words",J&&"max-h-[2lh] overflow-hidden [&_*]:my-0 [&_*]:text-[length:inherit] [&_*]:normal-case [&_*]:tracking-normal [&_pre]:p-0 [&_pre]:bg-transparent",Z),children:w(VN,{options:gR,children:A})})}var uR=new Set(["orphaned","stray","unrecorded","unknown"]);function FN({tasks:A}){let[Z,J]=MN.useState(null);if(A.length===0)return w(cz,{children:Y0(mz,{children:[w(pz,{variant:"icon",children:w(WA,{})}),w(dz,{children:"No tasks"}),Y0(lz,{children:[w("code",{children:"arbor add <task>"})," starts one."]})]})});return Y0(Q9,{children:[w("ul",{className:"flex flex-col",children:A.map((q)=>w("li",{children:Y0("button",{type:"button",onClick:()=>J(q),className:"-mx-2 flex w-[calc(100%+1rem)] items-center gap-3 rounded-lg px-2 py-2 text-left hover:bg-muted",children:[w("span",{className:"min-w-0 flex-1 truncate text-sm",children:q.task}),w(cR,{status:q.status}),w(mR,{plan:q.plan})]})},q.task))}),w(JJ,{open:Z!==null,onOpenChange:(q)=>{if(!q)J(null)},children:Z&&w(zW,{task:Z})})]})}function cR({status:A}){if(A==="escalated")return w(OH,{variant:"secondary",children:"escalated"});if(uR.has(A))return w(OH,{variant:"destructive",children:A});return null}function mR({plan:A}){let Z=A===null?null:NC(A);if(Z===null)return null;return Y0("span",{className:"w-10 shrink-0 text-right text-muted-foreground text-xs tabular-nums",children:[Z.done,"/",Z.total]})}function zW({task:A}){let Z=[["status",A.status],["branch",A.branch],["base",A.base],["worktree",A.worktree],["lease",A.lease],["commits",String(A.ahead??"?")],["diff",A.added===null?"?":Y0("span",{className:"tabular-nums",children:[Y0("span",{className:"text-success",children:["+",A.added]})," ",Y0("span",{className:"text-destructive",children:["-",A.removed??0]})]},"diff")],["age",A.age??"?"]];return Y0(Ez,{className:"max-h-[85dvh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-xl",children:[Y0(vz,{children:[w(gz,{children:A.task}),w(uz,{children:A.escalation??A.status})]}),Y0("div",{className:"flex min-w-0 flex-col gap-6 text-sm",children:[w("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1",children:Z.map(([J,q])=>Y0("div",{className:"contents",children:[w("dt",{className:"text-muted-foreground",children:J}),w("dd",{className:"truncate",children:q})]},J))}),A.plan===null?w("p",{className:"text-muted-foreground",children:"No ARBOR.md: whoever picks this up starts from the diff."}):w(XJ,{text:A.plan.replace(/^\\s*#\\s[^\\n]*/,"")}),A.planProblems.length>0&&w("ul",{className:"flex flex-col gap-1 text-muted-foreground text-xs",children:A.planProblems.map((J)=>w("li",{children:J},J))})]})]})}var c=g(p(),1),v5=g(l4(),1);var X2=g(p(),1);function kN(){for(var A=arguments.length,Z=Array(A),J=0;J<A;J++)Z[J]=arguments[J];return X2.useMemo(()=>(q)=>{Z.forEach((Q)=>Q(q))},Z)}var YJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function I5(A){let Z=Object.prototype.toString.call(A);return Z==="[object Window]"||Z==="[object global]"}function YG(A){return"nodeType"in A}function l2(A){var Z,J;if(!A)return window;if(I5(A))return A;if(!YG(A))return window;return(Z=(J=A.ownerDocument)==null?void 0:J.defaultView)!=null?Z:window}function UG(A){let{Document:Z}=l2(A);return A instanceof Z}function X8(A){if(I5(A))return!1;return A instanceof l2(A).HTMLElement}function XW(A){return A instanceof l2(A).SVGElement}function f5(A){if(!A)return document;if(I5(A))return A.document;if(!YG(A))return document;if(UG(A))return A;if(X8(A)||XW(A))return A.ownerDocument;return document}var P6=YJ?X2.useLayoutEffect:X2.useEffect;function UJ(A){let Z=X2.useRef(A);return P6(()=>{Z.current=A}),X2.useCallback(function(){for(var J=arguments.length,q=Array(J),Q=0;Q<J;Q++)q[Q]=arguments[Q];return Z.current==null?void 0:Z.current(...q)},[])}function jN(){let A=X2.useRef(null),Z=X2.useCallback((q,Q)=>{A.current=setInterval(q,Q)},[]),J=X2.useCallback(()=>{if(A.current!==null)clearInterval(A.current),A.current=null},[]);return[Z,J]}function Y8(A,Z){if(Z===void 0)Z=[A];let J=X2.useRef(A);return P6(()=>{if(J.current!==A)J.current=A},Z),J}function U8(A,Z){let J=X2.useRef();return X2.useMemo(()=>{let q=A(J.current);return J.current=q,q},[...Z])}function HJ(A){let Z=UJ(A),J=X2.useRef(null),q=X2.useCallback((Q)=>{if(Q!==J.current)Z==null||Z(Q,J.current);J.current=Q},[]);return[J,q]}function WJ(A){let Z=X2.useRef();return X2.useEffect(()=>{Z.current=A},[A]),Z.current}var GW={};function b5(A,Z){return X2.useMemo(()=>{if(Z)return Z;let J=GW[A]==null?0:GW[A]+1;return GW[A]=J,A+"-"+J},[A,Z])}function CN(A){return function(Z){for(var J=arguments.length,q=Array(J>1?J-1:0),Q=1;Q<J;Q++)q[Q-1]=arguments[Q];return q.reduce((z,G)=>{let X=Object.entries(G);for(let[Y,U]of X){let H=z[Y];if(H!=null)z[Y]=H+A*U}return z},{...Z})}}var R5=CN(1),y5=CN(-1);function pR(A){return"clientX"in A&&"clientY"in A}function H8(A){if(!A)return!1;let{KeyboardEvent:Z}=l2(A.target);return Z&&A instanceof Z}function dR(A){if(!A)return!1;let{TouchEvent:Z}=l2(A.target);return Z&&A instanceof Z}function W8(A){if(dR(A)){if(A.touches&&A.touches.length){let{clientX:Z,clientY:J}=A.touches[0];return{x:Z,y:J}}else if(A.changedTouches&&A.changedTouches.length){let{clientX:Z,clientY:J}=A.changedTouches[0];return{x:Z,y:J}}}if(pR(A))return{x:A.clientX,y:A.clientY};return null}var L4=Object.freeze({Translate:{toString(A){if(!A)return;let{x:Z,y:J}=A;return"translate3d("+(Z?Math.round(Z):0)+"px, "+(J?Math.round(J):0)+"px, 0)"}},Scale:{toString(A){if(!A)return;let{scaleX:Z,scaleY:J}=A;return"scaleX("+Z+") scaleY("+J+")"}},Transform:{toString(A){if(!A)return;return[L4.Translate.toString(A),L4.Scale.toString(A)].join(" ")}},Transition:{toString(A){let{property:Z,duration:J,easing:q}=A;return Z+" "+J+"ms "+q}}}),_N="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function NN(A){if(A.matches(_N))return A;return A.querySelector(_N)}var E5=g(p(),1),lR={display:"none"};function ON(A){let{id:Z,value:J}=A;return E5.default.createElement("div",{id:Z,style:lR},J)}function DN(A){let{id:Z,announcement:J,ariaLiveType:q="assertive"}=A,Q={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return E5.default.createElement("div",{id:Z,style:Q,role:"status","aria-live":q,"aria-atomic":!0},J)}function TN(){let[A,Z]=E5.useState("");return{announce:E5.useCallback((q)=>{if(q!=null)Z(q)},[]),announcement:A}}var uN=c.createContext(null);function iR(A){let Z=c.useContext(uN);c.useEffect(()=>{if(!Z)throw Error("useDndMonitor must be used within a children of <DndContext>");return Z(A)},[A,Z])}function rR(){let[A]=c.useState(()=>new Set),Z=c.useCallback((q)=>{return A.add(q),()=>A.delete(q)},[A]);return[c.useCallback((q)=>{let{type:Q,event:z}=q;A.forEach((G)=>{var X;return(X=G[Q])==null?void 0:X.call(G,z)})},[A]),Z]}var oR={draggable:`\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n `},aR={onDragStart(A){let{active:Z}=A;return"Picked up draggable item "+Z.id+"."},onDragOver(A){let{active:Z,over:J}=A;if(J)return"Draggable item "+Z.id+" was moved over droppable area "+J.id+".";return"Draggable item "+Z.id+" is no longer over a droppable area."},onDragEnd(A){let{active:Z,over:J}=A;if(J)return"Draggable item "+Z.id+" was dropped over droppable area "+J.id;return"Draggable item "+Z.id+" was dropped."},onDragCancel(A){let{active:Z}=A;return"Dragging was cancelled. Draggable item "+Z.id+" was dropped."}};function sR(A){let{announcements:Z=aR,container:J,hiddenTextDescribedById:q,screenReaderInstructions:Q=oR}=A,{announce:z,announcement:G}=TN(),X=b5("DndLiveRegion"),[Y,U]=c.useState(!1);if(c.useEffect(()=>{U(!0)},[]),iR(c.useMemo(()=>({onDragStart(W){let{active:B}=W;z(Z.onDragStart({active:B}))},onDragMove(W){let{active:B,over:K}=W;if(Z.onDragMove)z(Z.onDragMove({active:B,over:K}))},onDragOver(W){let{active:B,over:K}=W;z(Z.onDragOver({active:B,over:K}))},onDragEnd(W){let{active:B,over:K}=W;z(Z.onDragEnd({active:B,over:K}))},onDragCancel(W){let{active:B,over:K}=W;z(Z.onDragCancel({active:B,over:K}))}}),[z,Z])),!Y)return null;let H=c.default.createElement(c.default.Fragment,null,c.default.createElement(ON,{id:q,value:Q.draggable}),c.default.createElement(DN,{id:X,announcement:G}));return J?v5.createPortal(H,J):H}var C2;(function(A){A.DragStart="dragStart",A.DragMove="dragMove",A.DragEnd="dragEnd",A.DragCancel="dragCancel",A.DragOver="dragOver",A.RegisterDroppable="registerDroppable",A.SetDroppableDisabled="setDroppableDisabled",A.UnregisterDroppable="unregisterDroppable"})(C2||(C2={}));function WG(){}function KG(A,Z){return c.useMemo(()=>({sensor:A,options:Z!=null?Z:{}}),[A,Z])}function cN(){for(var A=arguments.length,Z=Array(A),J=0;J<A;J++)Z[J]=arguments[J];return c.useMemo(()=>[...Z].filter((q)=>q!=null),[...Z])}var V4=Object.freeze({x:0,y:0});function mN(A,Z){return Math.sqrt(Math.pow(A.x-Z.x,2)+Math.pow(A.y-Z.y,2))}function nR(A,Z){let J=W8(A);if(!J)return"0 0";let q={x:(J.x-Z.left)/Z.width*100,y:(J.y-Z.top)/Z.height*100};return q.x+"% "+q.y+"%"}function pN(A,Z){let{data:{value:J}}=A,{data:{value:q}}=Z;return J-q}function tR(A,Z){let{data:{value:J}}=A,{data:{value:q}}=Z;return q-J}function wN(A){let{left:Z,top:J,height:q,width:Q}=A;return[{x:Z,y:J},{x:Z+Q,y:J},{x:Z,y:J+q},{x:Z+Q,y:J+q}]}function $W(A,Z){if(!A||A.length===0)return null;let[J]=A;return Z?J[Z]:J}function hN(A,Z,J){if(Z===void 0)Z=A.left;if(J===void 0)J=A.top;return{x:Z+A.width*0.5,y:J+A.height*0.5}}var dN=(A)=>{let{collisionRect:Z,droppableRects:J,droppableContainers:q}=A,Q=hN(Z,Z.left,Z.top),z=[];for(let G of q){let{id:X}=G,Y=J.get(X);if(Y){let U=mN(hN(Y),Q);z.push({id:X,data:{droppableContainer:G,value:U}})}}return z.sort(pN)},lN=(A)=>{let{collisionRect:Z,droppableRects:J,droppableContainers:q}=A,Q=wN(Z),z=[];for(let G of q){let{id:X}=G,Y=J.get(X);if(Y){let U=wN(Y),H=Q.reduce((B,K,V)=>{return B+mN(U[V],K)},0),W=Number((H/4).toFixed(4));z.push({id:X,data:{droppableContainer:G,value:W}})}}return z.sort(pN)};function eR(A,Z){let J=Math.max(Z.top,A.top),q=Math.max(Z.left,A.left),Q=Math.min(Z.left+Z.width,A.left+A.width),z=Math.min(Z.top+Z.height,A.top+A.height),G=Q-q,X=z-J;if(q<Q&&J<z){let Y=Z.width*Z.height,U=A.width*A.height,H=G*X,W=H/(Y+U-H);return Number(W.toFixed(4))}return 0}var Ay=(A)=>{let{collisionRect:Z,droppableRects:J,droppableContainers:q}=A,Q=[];for(let z of q){let{id:G}=z,X=J.get(G);if(X){let Y=eR(X,Z);if(Y>0)Q.push({id:G,data:{droppableContainer:z,value:Y}})}}return Q.sort(tR)};function Zy(A,Z,J){return{...A,scaleX:Z&&J?Z.width/J.width:1,scaleY:Z&&J?Z.height/J.height:1}}function iN(A,Z){return A&&Z?{x:A.left-Z.left,y:A.top-Z.top}:V4}function Jy(A){return function(J){for(var q=arguments.length,Q=Array(q>1?q-1:0),z=1;z<q;z++)Q[z-1]=arguments[z];return Q.reduce((G,X)=>({...G,top:G.top+A*X.y,bottom:G.bottom+A*X.y,left:G.left+A*X.x,right:G.right+A*X.x}),{...J})}}var qy=Jy(1);function rN(A){if(A.startsWith("matrix3d(")){let Z=A.slice(9,-1).split(/, /);return{x:+Z[12],y:+Z[13],scaleX:+Z[0],scaleY:+Z[5]}}else if(A.startsWith("matrix(")){let Z=A.slice(7,-1).split(/, /);return{x:+Z[4],y:+Z[5],scaleX:+Z[0],scaleY:+Z[3]}}return null}function Qy(A,Z,J){let q=rN(Z);if(!q)return A;let{scaleX:Q,scaleY:z,x:G,y:X}=q,Y=A.left-G-(1-Q)*parseFloat(J),U=A.top-X-(1-z)*parseFloat(J.slice(J.indexOf(" ")+1)),H=Q?A.width/Q:A.width,W=z?A.height/z:A.height;return{width:H,height:W,top:U,right:Y+H,bottom:U+W,left:Y}}var zy={ignoreTransform:!1};function g5(A,Z){if(Z===void 0)Z=zy;let J=A.getBoundingClientRect();if(Z.ignoreTransform){let{transform:U,transformOrigin:H}=l2(A).getComputedStyle(A);if(U)J=Qy(J,U,H)}let{top:q,left:Q,width:z,height:G,bottom:X,right:Y}=J;return{top:q,left:Q,width:z,height:G,bottom:X,right:Y}}function xN(A){return g5(A,{ignoreTransform:!0})}function Gy(A){let{innerWidth:Z,innerHeight:J}=A;return{top:0,left:0,right:Z,bottom:J,width:Z,height:J}}function Xy(A,Z){if(Z===void 0)Z=l2(A).getComputedStyle(A);return Z.position==="fixed"}function Yy(A,Z){if(Z===void 0)Z=l2(A).getComputedStyle(A);let J=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((Q)=>{let z=Z[Q];return typeof z==="string"?J.test(z):!1})}function $J(A,Z){let J=[];function q(Q){if(Z!=null&&J.length>=Z)return J;if(!Q)return J;if(UG(Q)&&Q.scrollingElement!=null&&!J.includes(Q.scrollingElement))return J.push(Q.scrollingElement),J;if(!X8(Q)||XW(Q))return J;if(J.includes(Q))return J;let z=l2(A).getComputedStyle(Q);if(Q!==A){if(Yy(Q,z))J.push(Q)}if(Xy(Q,z))return J;return q(Q.parentNode)}if(!A)return J;return q(A)}function oN(A){let[Z]=$J(A,1);return Z!=null?Z:null}function YW(A){if(!YJ||!A)return null;if(I5(A))return A;if(!YG(A))return null;if(UG(A)||A===f5(A).scrollingElement)return window;if(X8(A))return A;return null}function aN(A){if(I5(A))return A.scrollX;return A.scrollLeft}function sN(A){if(I5(A))return A.scrollY;return A.scrollTop}function WW(A){return{x:aN(A),y:sN(A)}}var x2;(function(A){A[A.Forward=1]="Forward",A[A.Backward=-1]="Backward"})(x2||(x2={}));function nN(A){if(!YJ||!A)return!1;return A===document.scrollingElement}function tN(A){let Z={x:0,y:0},J=nN(A)?{height:window.innerHeight,width:window.innerWidth}:{height:A.clientHeight,width:A.clientWidth},q={x:A.scrollWidth-J.width,y:A.scrollHeight-J.height},Q=A.scrollTop<=Z.y,z=A.scrollLeft<=Z.x,G=A.scrollTop>=q.y,X=A.scrollLeft>=q.x;return{isTop:Q,isLeft:z,isBottom:G,isRight:X,maxScroll:q,minScroll:Z}}var Uy={x:0.2,y:0.2};function Hy(A,Z,J,q,Q){let{top:z,left:G,right:X,bottom:Y}=J;if(q===void 0)q=10;if(Q===void 0)Q=Uy;let{isTop:U,isBottom:H,isLeft:W,isRight:B}=tN(A),K={x:0,y:0},V={x:0,y:0},F={height:Z.height*Q.y,width:Z.width*Q.x};if(!U&&z<=Z.top+F.height)K.y=x2.Backward,V.y=q*Math.abs((Z.top+F.height-z)/F.height);else if(!H&&Y>=Z.bottom-F.height)K.y=x2.Forward,V.y=q*Math.abs((Z.bottom-F.height-Y)/F.height);if(!B&&X>=Z.right-F.width)K.x=x2.Forward,V.x=q*Math.abs((Z.right-F.width-X)/F.width);else if(!W&&G<=Z.left+F.width)K.x=x2.Backward,V.x=q*Math.abs((Z.left+F.width-G)/F.width);return{direction:K,speed:V}}function Wy(A){if(A===document.scrollingElement){let{innerWidth:z,innerHeight:G}=window;return{top:0,left:0,right:z,bottom:G,width:z,height:G}}let{top:Z,left:J,right:q,bottom:Q}=A.getBoundingClientRect();return{top:Z,left:J,right:q,bottom:Q,width:A.clientWidth,height:A.clientHeight}}function eN(A){return A.reduce((Z,J)=>{return R5(Z,WW(J))},V4)}function By(A){return A.reduce((Z,J)=>{return Z+aN(J)},0)}function Ky(A){return A.reduce((Z,J)=>{return Z+sN(J)},0)}function AO(A,Z){if(Z===void 0)Z=g5;if(!A)return;let{top:J,left:q,bottom:Q,right:z}=Z(A);if(!oN(A))return;if(Q<=0||z<=0||J>=window.innerHeight||q>=window.innerWidth)A.scrollIntoView({block:"center",inline:"center"})}var $y=[["x",["left","right"],By],["y",["top","bottom"],Ky]];class $G{constructor(A,Z){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let J=$J(Z),q=eN(J);this.rect={...A},this.width=A.width,this.height=A.height;for(let[Q,z,G]of $y)for(let X of z)Object.defineProperty(this,X,{get:()=>{let Y=G(J),U=q[Q]-Y;return this.rect[X]+U},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class B8{constructor(A){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((Z)=>{var J;return(J=this.target)==null?void 0:J.removeEventListener(...Z)})},this.target=A}add(A,Z,J){var q;(q=this.target)==null||q.addEventListener(A,Z,J),this.listeners.push([A,Z,J])}}function Ly(A){let{EventTarget:Z}=l2(A);return A instanceof Z?A:f5(A)}function UW(A,Z){let J=Math.abs(A.x),q=Math.abs(A.y);if(typeof Z==="number")return Math.sqrt(J**2+q**2)>Z;if("x"in Z&&"y"in Z)return J>Z.x&&q>Z.y;if("x"in Z)return J>Z.x;if("y"in Z)return q>Z.y;return!1}var A4;(function(A){A.Click="click",A.DragStart="dragstart",A.Keydown="keydown",A.ContextMenu="contextmenu",A.Resize="resize",A.SelectionChange="selectionchange",A.VisibilityChange="visibilitychange"})(A4||(A4={}));function SN(A){A.preventDefault()}function Vy(A){A.stopPropagation()}var n0;(function(A){A.Space="Space",A.Down="ArrowDown",A.Right="ArrowRight",A.Left="ArrowLeft",A.Up="ArrowUp",A.Esc="Escape",A.Enter="Enter",A.Tab="Tab"})(n0||(n0={}));var ZO={start:[n0.Space,n0.Enter],cancel:[n0.Esc],end:[n0.Space,n0.Enter,n0.Tab]},My=(A,Z)=>{let{currentCoordinates:J}=Z;switch(A.code){case n0.Right:return{...J,x:J.x+25};case n0.Left:return{...J,x:J.x-25};case n0.Down:return{...J,y:J.y+25};case n0.Up:return{...J,y:J.y-25}}return};class LJ{constructor(A){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=A;let{event:{target:Z}}=A;this.props=A,this.listeners=new B8(f5(Z)),this.windowListeners=new B8(l2(Z)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(A4.Resize,this.handleCancel),this.windowListeners.add(A4.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(A4.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:A,onStart:Z}=this.props,J=A.node.current;if(J)AO(J);Z(V4)}handleKeyDown(A){if(H8(A)){let{active:Z,context:J,options:q}=this.props,{keyboardCodes:Q=ZO,coordinateGetter:z=My,scrollBehavior:G="smooth"}=q,{code:X}=A;if(Q.end.includes(X)){this.handleEnd(A);return}if(Q.cancel.includes(X)){this.handleCancel(A);return}let{collisionRect:Y}=J.current,U=Y?{x:Y.left,y:Y.top}:V4;if(!this.referenceCoordinates)this.referenceCoordinates=U;let H=z(A,{active:Z,context:J.current,currentCoordinates:U});if(H){let W=y5(H,U),B={x:0,y:0},{scrollableAncestors:K}=J.current;for(let V of K){let F=A.code,{isTop:j,isRight:$,isLeft:L,isBottom:M,maxScroll:_,minScroll:k}=tN(V),C=Wy(V),O={x:Math.min(F===n0.Right?C.right-C.width/2:C.right,Math.max(F===n0.Right?C.left:C.left+C.width/2,H.x)),y:Math.min(F===n0.Down?C.bottom-C.height/2:C.bottom,Math.max(F===n0.Down?C.top:C.top+C.height/2,H.y))},N=F===n0.Right&&!$||F===n0.Left&&!L,D=F===n0.Down&&!M||F===n0.Up&&!j;if(N&&O.x!==H.x){let T=V.scrollLeft+W.x,h=F===n0.Right&&T<=_.x||F===n0.Left&&T>=k.x;if(h&&!W.y){V.scrollTo({left:T,behavior:G});return}if(h)B.x=V.scrollLeft-T;else B.x=F===n0.Right?V.scrollLeft-_.x:V.scrollLeft-k.x;if(B.x)V.scrollBy({left:-B.x,behavior:G});break}else if(D&&O.y!==H.y){let T=V.scrollTop+W.y,h=F===n0.Down&&T<=_.y||F===n0.Up&&T>=k.y;if(h&&!W.x){V.scrollTo({top:T,behavior:G});return}if(h)B.y=V.scrollTop-T;else B.y=F===n0.Down?V.scrollTop-_.y:V.scrollTop-k.y;if(B.y)V.scrollBy({top:-B.y,behavior:G});break}}this.handleMove(A,R5(y5(H,this.referenceCoordinates),B))}}}handleMove(A,Z){let{onMove:J}=this.props;A.preventDefault(),J(Z)}handleEnd(A){let{onEnd:Z}=this.props;A.preventDefault(),this.detach(),Z()}handleCancel(A){let{onCancel:Z}=this.props;A.preventDefault(),this.detach(),Z()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}LJ.activators=[{eventName:"onKeyDown",handler:(A,Z,J)=>{let{keyboardCodes:q=ZO,onActivation:Q}=Z,{active:z}=J,{code:G}=A.nativeEvent;if(q.start.includes(G)){let X=z.activatorNode.current;if(X&&A.target!==X)return!1;return A.preventDefault(),Q==null||Q({event:A.nativeEvent}),!0}return!1}}];function PN(A){return Boolean(A&&"distance"in A)}function IN(A){return Boolean(A&&"delay"in A)}class LG{constructor(A,Z,J){var q;if(J===void 0)J=Ly(A.event.target);this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=A,this.events=Z;let{event:Q}=A,{target:z}=Q;this.props=A,this.events=Z,this.document=f5(z),this.documentListeners=new B8(this.document),this.listeners=new B8(J),this.windowListeners=new B8(l2(z)),this.initialCoordinates=(q=W8(Q))!=null?q:V4,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:A,props:{options:{activationConstraint:Z,bypassActivationConstraint:J}}}=this;if(this.listeners.add(A.move.name,this.handleMove,{passive:!1}),this.listeners.add(A.end.name,this.handleEnd),A.cancel)this.listeners.add(A.cancel.name,this.handleCancel);if(this.windowListeners.add(A4.Resize,this.handleCancel),this.windowListeners.add(A4.DragStart,SN),this.windowListeners.add(A4.VisibilityChange,this.handleCancel),this.windowListeners.add(A4.ContextMenu,SN),this.documentListeners.add(A4.Keydown,this.handleKeydown),Z){if(J!=null&&J({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(IN(Z)){this.timeoutId=setTimeout(this.handleStart,Z.delay),this.handlePending(Z);return}if(PN(Z)){this.handlePending(Z);return}}this.handleStart()}detach(){if(this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null)clearTimeout(this.timeoutId),this.timeoutId=null}handlePending(A,Z){let{active:J,onPending:q}=this.props;q(J,A,this.initialCoordinates,Z)}handleStart(){let{initialCoordinates:A}=this,{onStart:Z}=this.props;if(A)this.activated=!0,this.documentListeners.add(A4.Click,Vy,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(A4.SelectionChange,this.removeTextSelection),Z(A)}handleMove(A){var Z;let{activated:J,initialCoordinates:q,props:Q}=this,{onMove:z,options:{activationConstraint:G}}=Q;if(!q)return;let X=(Z=W8(A))!=null?Z:V4,Y=y5(q,X);if(!J&&G){if(PN(G)){if(G.tolerance!=null&&UW(Y,G.tolerance))return this.handleCancel();if(UW(Y,G.distance))return this.handleStart()}if(IN(G)){if(UW(Y,G.tolerance))return this.handleCancel()}this.handlePending(G,Y);return}if(A.cancelable)A.preventDefault();z(X)}handleEnd(){let{onAbort:A,onEnd:Z}=this.props;if(this.detach(),!this.activated)A(this.props.active);Z()}handleCancel(){let{onAbort:A,onCancel:Z}=this.props;if(this.detach(),!this.activated)A(this.props.active);Z()}handleKeydown(A){if(A.code===n0.Esc)this.handleCancel()}removeTextSelection(){var A;(A=this.document.getSelection())==null||A.removeAllRanges()}}var Fy={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class LW extends LG{constructor(A){let{event:Z}=A,J=f5(Z.target);super(A,Fy,J)}}LW.activators=[{eventName:"onPointerDown",handler:(A,Z)=>{let{nativeEvent:J}=A,{onActivation:q}=Z;if(!J.isPrimary||J.button!==0)return!1;return q==null||q({event:J}),!0}}];var _y={move:{name:"mousemove"},end:{name:"mouseup"}},BW;(function(A){A[A.RightClick=2]="RightClick"})(BW||(BW={}));class VG extends LG{constructor(A){super(A,_y,f5(A.event.target))}}VG.activators=[{eventName:"onMouseDown",handler:(A,Z)=>{let{nativeEvent:J}=A,{onActivation:q}=Z;if(J.button===BW.RightClick)return!1;return q==null||q({event:J}),!0}}];var HW={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class MG extends LG{constructor(A){super(A,HW)}static setup(){return window.addEventListener(HW.move.name,A,{capture:!1,passive:!1}),function(){window.removeEventListener(HW.move.name,A)};function A(){}}}MG.activators=[{eventName:"onTouchStart",handler:(A,Z)=>{let{nativeEvent:J}=A,{onActivation:q}=Z,{touches:Q}=J;if(Q.length>1)return!1;return q==null||q({event:J}),!0}}];var BJ;(function(A){A[A.Pointer=0]="Pointer",A[A.DraggableRect=1]="DraggableRect"})(BJ||(BJ={}));var BG;(function(A){A[A.TreeOrder=0]="TreeOrder",A[A.ReversedTreeOrder=1]="ReversedTreeOrder"})(BG||(BG={}));function ky(A){let{acceleration:Z,activator:J=BJ.Pointer,canScroll:q,draggingRect:Q,enabled:z,interval:G=5,order:X=BG.TreeOrder,pointerCoordinates:Y,scrollableAncestors:U,scrollableAncestorRects:H,delta:W,threshold:B}=A,K=Cy({delta:W,disabled:!z}),[V,F]=jN(),j=c.useRef({x:0,y:0}),$=c.useRef({x:0,y:0}),L=c.useMemo(()=>{switch(J){case BJ.Pointer:return Y?{top:Y.y,bottom:Y.y,left:Y.x,right:Y.x}:null;case BJ.DraggableRect:return Q}},[J,Q,Y]),M=c.useRef(null),_=c.useCallback(()=>{let C=M.current;if(!C)return;let O=j.current.x*$.current.x,N=j.current.y*$.current.y;C.scrollBy(O,N)},[]),k=c.useMemo(()=>X===BG.TreeOrder?[...U].reverse():U,[X,U]);c.useEffect(()=>{if(!z||!U.length||!L){F();return}for(let C of k){if((q==null?void 0:q(C))===!1)continue;let O=U.indexOf(C),N=H[O];if(!N)continue;let{direction:D,speed:T}=Hy(C,N,L,Z,B);for(let h of["x","y"])if(!K[h][D[h]])T[h]=0,D[h]=0;if(T.x>0||T.y>0){F(),M.current=C,V(_,G),j.current=T,$.current=D;return}}j.current={x:0,y:0},$.current={x:0,y:0},F()},[Z,_,q,F,z,G,JSON.stringify(L),JSON.stringify(K),V,U,k,H,JSON.stringify(B)])}var jy={x:{[x2.Backward]:!1,[x2.Forward]:!1},y:{[x2.Backward]:!1,[x2.Forward]:!1}};function Cy(A){let{delta:Z,disabled:J}=A,q=WJ(Z);return U8((Q)=>{if(J||!q||!Q)return jy;let z={x:Math.sign(Z.x-q.x),y:Math.sign(Z.y-q.y)};return{x:{[x2.Backward]:Q.x[x2.Backward]||z.x===-1,[x2.Forward]:Q.x[x2.Forward]||z.x===1},y:{[x2.Backward]:Q.y[x2.Backward]||z.y===-1,[x2.Forward]:Q.y[x2.Forward]||z.y===1}}},[J,Z,q])}function Ny(A,Z){let J=Z!=null?A.get(Z):void 0,q=J?J.node.current:null;return U8((Q)=>{var z;if(Z==null)return null;return(z=q!=null?q:Q)!=null?z:null},[q,Z])}function Oy(A,Z){return c.useMemo(()=>A.reduce((J,q)=>{let{sensor:Q}=q,z=Q.activators.map((G)=>({eventName:G.eventName,handler:Z(G.handler,q)}));return[...J,...z]},[]),[A,Z])}var KJ;(function(A){A[A.Always=0]="Always",A[A.BeforeDragging=1]="BeforeDragging",A[A.WhileDragging=2]="WhileDragging"})(KJ||(KJ={}));var KW;(function(A){A.Optimized="optimized"})(KW||(KW={}));var fN=new Map;function Dy(A,Z){let{dragging:J,dependencies:q,config:Q}=Z,[z,G]=c.useState(null),{frequency:X,measure:Y,strategy:U}=Q,H=c.useRef(A),W=j(),B=Y8(W),K=c.useCallback(function($){if($===void 0)$=[];if(B.current)return;G((L)=>{if(L===null)return $;return L.concat($.filter((M)=>!L.includes(M)))})},[B]),V=c.useRef(null),F=U8(($)=>{if(W&&!J)return fN;if(!$||$===fN||H.current!==A||z!=null){let L=new Map;for(let M of A){if(!M)continue;if(z&&z.length>0&&!z.includes(M.id)&&M.rect.current){L.set(M.id,M.rect.current);continue}let _=M.node.current,k=_?new $G(Y(_),_):null;if(M.rect.current=k,k)L.set(M.id,k)}return L}return $},[A,z,J,W,Y]);return c.useEffect(()=>{H.current=A},[A]),c.useEffect(()=>{if(W)return;K()},[J,W]),c.useEffect(()=>{if(z&&z.length>0)G(null)},[JSON.stringify(z)]),c.useEffect(()=>{if(W||typeof X!=="number"||V.current!==null)return;V.current=setTimeout(()=>{K(),V.current=null},X)},[X,W,K,...q]),{droppableRects:F,measureDroppableContainers:K,measuringScheduled:z!=null};function j(){switch(U){case KJ.Always:return!1;case KJ.BeforeDragging:return J;default:return!J}}}function VW(A,Z){return U8((J)=>{if(!A)return null;if(J)return J;return typeof Z==="function"?Z(A):A},[Z,A])}function Ty(A,Z){return VW(A,Z)}function wy(A){let{callback:Z,disabled:J}=A,q=UJ(Z),Q=c.useMemo(()=>{if(J||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:z}=window;return new z(q)},[q,J]);return c.useEffect(()=>{return()=>Q==null?void 0:Q.disconnect()},[Q]),Q}function FG(A){let{callback:Z,disabled:J}=A,q=UJ(Z),Q=c.useMemo(()=>{if(J||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:z}=window;return new z(q)},[J]);return c.useEffect(()=>{return()=>Q==null?void 0:Q.disconnect()},[Q]),Q}function hy(A){return new $G(g5(A),A)}function bN(A,Z,J){if(Z===void 0)Z=hy;let[q,Q]=c.useState(null);function z(){Q((Y)=>{if(!A)return null;if(A.isConnected===!1){var U;return(U=Y!=null?Y:J)!=null?U:null}let H=Z(A);if(JSON.stringify(Y)===JSON.stringify(H))return Y;return H})}let G=wy({callback(Y){if(!A)return;for(let U of Y){let{type:H,target:W}=U;if(H==="childList"&&W instanceof HTMLElement&&W.contains(A)){z();break}}}}),X=FG({callback:z});return P6(()=>{if(z(),A)X==null||X.observe(A),G==null||G.observe(document.body,{childList:!0,subtree:!0});else X==null||X.disconnect(),G==null||G.disconnect()},[A]),q}function xy(A){let Z=VW(A);return iN(A,Z)}var RN=[];function Sy(A){let Z=c.useRef(A),J=U8((q)=>{if(!A)return RN;if(q&&q!==RN&&A&&Z.current&&A.parentNode===Z.current.parentNode)return q;return $J(A)},[A]);return c.useEffect(()=>{Z.current=A},[A]),J}function Py(A){let[Z,J]=c.useState(null),q=c.useRef(A),Q=c.useCallback((z)=>{let G=YW(z.target);if(!G)return;J((X)=>{if(!X)return null;return X.set(G,WW(G)),new Map(X)})},[]);return c.useEffect(()=>{let z=q.current;if(A!==z){G(z);let X=A.map((Y)=>{let U=YW(Y);if(U)return U.addEventListener("scroll",Q,{passive:!0}),[U,WW(U)];return null}).filter((Y)=>Y!=null);J(X.length?new Map(X):null),q.current=A}return()=>{G(A),G(z)};function G(X){X.forEach((Y)=>{let U=YW(Y);U==null||U.removeEventListener("scroll",Q)})}},[Q,A]),c.useMemo(()=>{if(A.length)return Z?Array.from(Z.values()).reduce((z,G)=>R5(z,G),V4):eN(A);return V4},[A,Z])}function yN(A,Z){if(Z===void 0)Z=[];let J=c.useRef(null);return c.useEffect(()=>{J.current=null},Z),c.useEffect(()=>{let q=A!==V4;if(q&&!J.current)J.current=A;if(!q&&J.current)J.current=null},[A]),J.current?y5(A,J.current):V4}function Iy(A){c.useEffect(()=>{if(!YJ)return;let Z=A.map((J)=>{let{sensor:q}=J;return q.setup==null?void 0:q.setup()});return()=>{for(let J of Z)J==null||J()}},A.map((Z)=>{let{sensor:J}=Z;return J}))}function fy(A,Z){return c.useMemo(()=>{return A.reduce((J,q)=>{let{eventName:Q,handler:z}=q;return J[Q]=(G)=>{z(G,Z)},J},{})},[A,Z])}function JO(A){return c.useMemo(()=>A?Gy(A):null,[A])}var EN=[];function by(A,Z){if(Z===void 0)Z=g5;let[J]=A,q=JO(J?l2(J):null),[Q,z]=c.useState(EN);function G(){z(()=>{if(!A.length)return EN;return A.map((Y)=>nN(Y)?q:new $G(Z(Y),Y))})}let X=FG({callback:G});return P6(()=>{X==null||X.disconnect(),G(),A.forEach((Y)=>X==null?void 0:X.observe(Y))},[A]),Q}function qO(A){if(!A)return null;if(A.children.length>1)return A;let Z=A.children[0];return X8(Z)?Z:A}function Ry(A){let{measure:Z}=A,[J,q]=c.useState(null),Q=c.useCallback((U)=>{for(let{target:H}of U)if(X8(H)){q((W)=>{let B=Z(H);return W?{...W,width:B.width,height:B.height}:B});break}},[Z]),z=FG({callback:Q}),G=c.useCallback((U)=>{let H=qO(U);if(z==null||z.disconnect(),H)z==null||z.observe(H);q(H?Z(H):null)},[Z,z]),[X,Y]=HJ(G);return c.useMemo(()=>({nodeRef:X,rect:J,setRef:Y}),[J,X,Y])}var yy=[{sensor:LW,options:{}},{sensor:LJ,options:{}}],Ey={current:{}},HG={draggable:{measure:xN},droppable:{measure:xN,strategy:KJ.WhileDragging,frequency:KW.Optimized},dragOverlay:{measure:g5}};class K8 extends Map{get(A){var Z;return A!=null?(Z=super.get(A))!=null?Z:void 0:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((A)=>{let{disabled:Z}=A;return!Z})}getNodeFor(A){var Z,J;return(Z=(J=this.get(A))==null?void 0:J.node.current)!=null?Z:void 0}}var vy={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new K8,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:WG},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:HG,measureDroppableContainers:WG,windowRect:null,measuringScheduled:!1},QO={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:WG,draggableNodes:new Map,over:null,measureDroppableContainers:WG},VJ=c.createContext(QO),zO=c.createContext(vy);function gy(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new K8}}}function uy(A,Z){switch(Z.type){case C2.DragStart:return{...A,draggable:{...A.draggable,initialCoordinates:Z.initialCoordinates,active:Z.active}};case C2.DragMove:if(A.draggable.active==null)return A;return{...A,draggable:{...A.draggable,translate:{x:Z.coordinates.x-A.draggable.initialCoordinates.x,y:Z.coordinates.y-A.draggable.initialCoordinates.y}}};case C2.DragEnd:case C2.DragCancel:return{...A,draggable:{...A.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case C2.RegisterDroppable:{let{element:J}=Z,{id:q}=J,Q=new K8(A.droppable.containers);return Q.set(q,J),{...A,droppable:{...A.droppable,containers:Q}}}case C2.SetDroppableDisabled:{let{id:J,key:q,disabled:Q}=Z,z=A.droppable.containers.get(J);if(!z||q!==z.key)return A;let G=new K8(A.droppable.containers);return G.set(J,{...z,disabled:Q}),{...A,droppable:{...A.droppable,containers:G}}}case C2.UnregisterDroppable:{let{id:J,key:q}=Z,Q=A.droppable.containers.get(J);if(!Q||q!==Q.key)return A;let z=new K8(A.droppable.containers);return z.delete(J),{...A,droppable:{...A.droppable,containers:z}}}default:return A}}function cy(A){let{disabled:Z}=A,{active:J,activatorEvent:q,draggableNodes:Q}=c.useContext(VJ),z=WJ(q),G=WJ(J==null?void 0:J.id);return c.useEffect(()=>{if(Z)return;if(!q&&z&&G!=null){if(!H8(z))return;if(document.activeElement===z.target)return;let X=Q.get(G);if(!X)return;let{activatorNode:Y,node:U}=X;if(!Y.current&&!U.current)return;requestAnimationFrame(()=>{for(let H of[Y.current,U.current]){if(!H)continue;let W=NN(H);if(W){W.focus();break}}})}},[q,Z,Q,G,z]),null}function GO(A,Z){let{transform:J,...q}=Z;return A!=null&&A.length?A.reduce((Q,z)=>{return z({transform:Q,...q})},J):J}function my(A){return c.useMemo(()=>({draggable:{...HG.draggable,...A==null?void 0:A.draggable},droppable:{...HG.droppable,...A==null?void 0:A.droppable},dragOverlay:{...HG.dragOverlay,...A==null?void 0:A.dragOverlay}}),[A==null?void 0:A.draggable,A==null?void 0:A.droppable,A==null?void 0:A.dragOverlay])}function py(A){let{activeNode:Z,measure:J,initialRect:q,config:Q=!0}=A,z=c.useRef(!1),{x:G,y:X}=typeof Q==="boolean"?{x:Q,y:Q}:Q;P6(()=>{if(!G&&!X||!Z){z.current=!1;return}if(z.current||!q)return;let U=Z==null?void 0:Z.node.current;if(!U||U.isConnected===!1)return;let H=J(U),W=iN(H,q);if(!G)W.x=0;if(!X)W.y=0;if(z.current=!0,Math.abs(W.x)>0||Math.abs(W.y)>0){let B=oN(U);if(B)B.scrollBy({top:W.y,left:W.x})}},[Z,G,X,q,J])}var _G=c.createContext({...V4,scaleX:1,scaleY:1}),D9;(function(A){A[A.Uninitialized=0]="Uninitialized",A[A.Initializing=1]="Initializing",A[A.Initialized=2]="Initialized"})(D9||(D9={}));var XO=c.memo(function(Z){var J,q,Q,z;let{id:G,accessibility:X,autoScroll:Y=!0,children:U,sensors:H=yy,collisionDetection:W=Ay,measuring:B,modifiers:K,...V}=Z,F=c.useReducer(uy,void 0,gy),[j,$]=F,[L,M]=rR(),[_,k]=c.useState(D9.Uninitialized),C=_===D9.Initialized,{draggable:{active:O,nodes:N,translate:D},droppable:{containers:T}}=j,h=O!=null?N.get(O):null,S=c.useRef({initial:null,translated:null}),x=c.useMemo(()=>{var N0;return O!=null?{id:O,data:(N0=h==null?void 0:h.data)!=null?N0:Ey,rect:S}:null},[O,h]),f=c.useRef(null),[R,P]=c.useState(null),[E,u]=c.useState(null),v=Y8(V,Object.values(V)),I=b5("DndDescribedBy",G),t=c.useMemo(()=>T.getEnabled(),[T]),W0=my(B),{droppableRects:Q0,measureDroppableContainers:b,measuringScheduled:y}=Dy(t,{dragging:C,dependencies:[D.x,D.y],config:W0.droppable}),m=Ny(N,O),l=c.useMemo(()=>E?W8(E):null,[E]),o=Y1(),a=Ty(m,W0.draggable.measure);py({activeNode:O!=null?N.get(O):null,config:o.layoutShiftCompensation,initialRect:a,measure:W0.draggable.measure});let e=bN(m,W0.draggable.measure,a),K0=bN(m?m.parentElement:null),G0=c.useRef({activatorEvent:null,active:null,activeNode:m,collisionRect:null,collisions:null,droppableRects:Q0,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Z0=T.getNodeFor((J=G0.current.over)==null?void 0:J.id),F0=Ry({measure:W0.dragOverlay.measure}),k0=(q=F0.nodeRef.current)!=null?q:m,j0=C?(Q=F0.rect)!=null?Q:e:null,B0=Boolean(F0.nodeRef.current&&F0.rect),h0=xy(B0?null:e),H0=JO(k0?l2(k0):null),D0=Sy(C?Z0!=null?Z0:m:null),x0=by(D0),b0=GO(K,{transform:{x:D.x-h0.x,y:D.y-h0.y,scaleX:1,scaleY:1},activatorEvent:E,active:x,activeNodeRect:e,containerNodeRect:K0,draggingNodeRect:j0,over:G0.current.over,overlayNodeRect:F0.rect,scrollableAncestors:D0,scrollableAncestorRects:x0,windowRect:H0}),A0=l?R5(l,D):null,M0=Py(D0),$0=yN(M0),n=yN(M0,[e]),s=R5(b0,$0),z0=j0?qy(j0,b0):null,d=x&&z0?W({active:x,collisionRect:z0,droppableRects:Q0,droppableContainers:t,pointerCoordinates:A0}):null,f1=$W(d,"id"),[w0,X1]=c.useState(null),C0=B0?b0:R5(b0,n),m0=Zy(C0,(z=w0==null?void 0:w0.rect)!=null?z:null,e),$1=c.useRef(null),J1=c.useCallback((N0,A1)=>{let{sensor:o0,options:U1}=A1;if(f.current==null)return;let L1=N.get(f.current);if(!L1)return;let a0=N0.nativeEvent,V1=new o0({active:f.current,activeNode:L1,event:a0,options:U1,context:G0,onAbort(j1){if(!N.get(j1))return;let{onDragAbort:h1}=v.current,P2={id:j1};h1==null||h1(P2),L({type:"onDragAbort",event:P2})},onPending(j1,g1,h1,P2){if(!N.get(j1))return;let{onDragPending:E2}=v.current,r1={id:j1,constraint:g1,initialCoordinates:h1,offset:P2};E2==null||E2(r1),L({type:"onDragPending",event:r1})},onStart(j1){let g1=f.current;if(g1==null)return;let h1=N.get(g1);if(!h1)return;let{onDragStart:P2}=v.current,I6={activatorEvent:a0,active:{id:g1,data:h1.data,rect:S}};v5.unstable_batchedUpdates(()=>{P2==null||P2(I6),k(D9.Initializing),$({type:C2.DragStart,initialCoordinates:j1,active:g1}),L({type:"onDragStart",event:I6}),P($1.current),u(a0)})},onMove(j1){$({type:C2.DragMove,coordinates:j1})},onEnd:i1(C2.DragEnd),onCancel:i1(C2.DragCancel)});$1.current=V1;function i1(j1){return async function(){let{active:h1,collisions:P2,over:I6,scrollAdjustedTranslate:E2}=G0.current,r1=null;if(h1&&E2){let{cancelDrop:Z6}=v.current;if(r1={activatorEvent:a0,active:h1,collisions:P2,delta:E2,over:I6},j1===C2.DragEnd&&typeof Z6==="function"){if(await Promise.resolve(Z6(r1)))j1=C2.DragCancel}}f.current=null,v5.unstable_batchedUpdates(()=>{$({type:j1}),k(D9.Uninitialized),X1(null),P(null),u(null),$1.current=null;let Z6=j1===C2.DragEnd?"onDragEnd":"onDragCancel";if(r1){let L8=v.current[Z6];L8==null||L8(r1),L({type:Z6,event:r1})}})}}},[N]),b1=c.useCallback((N0,A1)=>{return(o0,U1)=>{let L1=o0.nativeEvent,a0=N.get(U1);if(f.current!==null||!a0||L1.dndKit||L1.defaultPrevented)return;let V1={active:a0};if(N0(o0,A1.options,V1)===!0)L1.dndKit={capturedBy:A1.sensor},f.current=U1,J1(o0,A1)}},[N,J1]),w1=Oy(H,b1);Iy(H),P6(()=>{if(e&&_===D9.Initializing)k(D9.Initialized)},[e,_]),c.useEffect(()=>{let{onDragMove:N0}=v.current,{active:A1,activatorEvent:o0,collisions:U1,over:L1}=G0.current;if(!A1||!o0)return;let a0={active:A1,activatorEvent:o0,collisions:U1,delta:{x:s.x,y:s.y},over:L1};v5.unstable_batchedUpdates(()=>{N0==null||N0(a0),L({type:"onDragMove",event:a0})})},[s.x,s.y]),c.useEffect(()=>{let{active:N0,activatorEvent:A1,collisions:o0,droppableContainers:U1,scrollAdjustedTranslate:L1}=G0.current;if(!N0||f.current==null||!A1||!L1)return;let{onDragOver:a0}=v.current,V1=U1.get(f1),i1=V1&&V1.rect.current?{id:V1.id,rect:V1.rect.current,data:V1.data,disabled:V1.disabled}:null,j1={active:N0,activatorEvent:A1,collisions:o0,delta:{x:L1.x,y:L1.y},over:i1};v5.unstable_batchedUpdates(()=>{X1(i1),a0==null||a0(j1),L({type:"onDragOver",event:j1})})},[f1]),P6(()=>{G0.current={activatorEvent:E,active:x,activeNode:m,collisionRect:z0,collisions:d,droppableRects:Q0,draggableNodes:N,draggingNode:k0,draggingNodeRect:j0,droppableContainers:T,over:w0,scrollableAncestors:D0,scrollAdjustedTranslate:s},S.current={initial:j0,translated:z0}},[x,m,d,z0,N,k0,j0,Q0,T,w0,D0,s]),ky({...o,delta:D,draggingRect:z0,pointerCoordinates:A0,scrollableAncestors:D0,scrollableAncestorRects:x0});let O2=c.useMemo(()=>{return{active:x,activeNode:m,activeNodeRect:e,activatorEvent:E,collisions:d,containerNodeRect:K0,dragOverlay:F0,draggableNodes:N,droppableContainers:T,droppableRects:Q0,over:w0,measureDroppableContainers:b,scrollableAncestors:D0,scrollableAncestorRects:x0,measuringConfiguration:W0,measuringScheduled:y,windowRect:H0}},[x,m,e,E,d,K0,F0,N,T,Q0,w0,b,D0,x0,W0,y,H0]),U2=c.useMemo(()=>{return{activatorEvent:E,activators:w1,active:x,activeNodeRect:e,ariaDescribedById:{draggable:I},dispatch:$,draggableNodes:N,over:w0,measureDroppableContainers:b}},[E,w1,x,e,$,I,N,w0,b]);return c.default.createElement(uN.Provider,{value:M},c.default.createElement(VJ.Provider,{value:U2},c.default.createElement(zO.Provider,{value:O2},c.default.createElement(_G.Provider,{value:m0},U)),c.default.createElement(cy,{disabled:(X==null?void 0:X.restoreFocus)===!1})),c.default.createElement(sR,{...X,hiddenTextDescribedById:I}));function Y1(){let N0=(R==null?void 0:R.autoScrollEnabled)===!1,A1=typeof Y==="object"?Y.enabled===!1:Y===!1,o0=C&&!N0&&!A1;if(typeof Y==="object")return{...Y,enabled:o0};return{enabled:o0}}}),dy=c.createContext(null),vN="button",ly="Draggable";function YO(A){let{id:Z,data:J,disabled:q=!1,attributes:Q}=A,z=b5(ly),{activators:G,activatorEvent:X,active:Y,activeNodeRect:U,ariaDescribedById:H,draggableNodes:W,over:B}=c.useContext(VJ),{role:K=vN,roleDescription:V="draggable",tabIndex:F=0}=Q!=null?Q:{},j=(Y==null?void 0:Y.id)===Z,$=c.useContext(j?_G:dy),[L,M]=HJ(),[_,k]=HJ(),C=fy(G,Z),O=Y8(J);P6(()=>{return W.set(Z,{id:Z,key:z,node:L,activatorNode:_,data:O}),()=>{let D=W.get(Z);if(D&&D.key===z)W.delete(Z)}},[W,Z]);let N=c.useMemo(()=>({role:K,tabIndex:F,"aria-disabled":q,"aria-pressed":j&&K===vN?!0:void 0,"aria-roledescription":V,"aria-describedby":H.draggable}),[q,K,F,j,V,H.draggable]);return{active:Y,activatorEvent:X,activeNodeRect:U,attributes:N,isDragging:j,listeners:q?void 0:C,node:L,over:B,setNodeRef:M,setActivatorNodeRef:k,transform:$}}function MW(){return c.useContext(zO)}var iy="Droppable",ry={timeout:25};function UO(A){let{data:Z,disabled:J=!1,id:q,resizeObserverConfig:Q}=A,z=b5(iy),{active:G,dispatch:X,over:Y,measureDroppableContainers:U}=c.useContext(VJ),H=c.useRef({disabled:J}),W=c.useRef(!1),B=c.useRef(null),K=c.useRef(null),{disabled:V,updateMeasurementsFor:F,timeout:j}={...ry,...Q},$=Y8(F!=null?F:q),L=c.useCallback(()=>{if(!W.current){W.current=!0;return}if(K.current!=null)clearTimeout(K.current);K.current=setTimeout(()=>{U(Array.isArray($.current)?$.current:[$.current]),K.current=null},j)},[j]),M=FG({callback:L,disabled:V||!G}),_=c.useCallback((N,D)=>{if(!M)return;if(D)M.unobserve(D),W.current=!1;if(N)M.observe(N)},[M]),[k,C]=HJ(_),O=Y8(Z);return c.useEffect(()=>{if(!M||!k.current)return;M.disconnect(),W.current=!1,M.observe(k.current)},[k,M]),c.useEffect(()=>{return X({type:C2.RegisterDroppable,element:{id:q,key:z,disabled:J,node:k,rect:B,data:O}}),()=>X({type:C2.UnregisterDroppable,key:z,id:q})},[q]),c.useEffect(()=>{if(J!==H.current.disabled)X({type:C2.SetDroppableDisabled,id:q,key:z,disabled:J}),H.current.disabled=J},[q,z,J,X]),{active:G,rect:B,isOver:(Y==null?void 0:Y.id)===q,node:k,over:Y,setNodeRef:C}}function oy(A){let{animation:Z,children:J}=A,[q,Q]=c.useState(null),[z,G]=c.useState(null),X=WJ(J);if(!J&&!q&&X)Q(X);return P6(()=>{if(!z)return;let Y=q==null?void 0:q.key,U=q==null?void 0:q.props.id;if(Y==null||U==null){Q(null);return}Promise.resolve(Z(U,z)).then(()=>{Q(null)})},[Z,q,z]),c.default.createElement(c.default.Fragment,null,J,q?c.cloneElement(q,{ref:G}):null)}var ay={x:0,y:0,scaleX:1,scaleY:1};function sy(A){let{children:Z}=A;return c.default.createElement(VJ.Provider,{value:QO},c.default.createElement(_G.Provider,{value:ay},Z))}var ny={position:"fixed",touchAction:"none"},ty=(A)=>{return H8(A)?"transform 250ms ease":void 0},ey=c.forwardRef((A,Z)=>{let{as:J,activatorEvent:q,adjustScale:Q,children:z,className:G,rect:X,style:Y,transform:U,transition:H=ty}=A;if(!X)return null;let W=Q?U:{...U,scaleX:1,scaleY:1},B={...ny,width:X.width,height:X.height,top:X.top,left:X.left,transform:L4.Transform.toString(W),transformOrigin:Q&&q?nR(q,X):void 0,transition:typeof H==="function"?H(q):H,...Y};return c.default.createElement(J,{className:G,style:B,ref:Z},z)}),AE=(A)=>(Z)=>{let{active:J,dragOverlay:q}=Z,Q={},{styles:z,className:G}=A;if(z!=null&&z.active)for(let[X,Y]of Object.entries(z.active)){if(Y===void 0)continue;Q[X]=J.node.style.getPropertyValue(X),J.node.style.setProperty(X,Y)}if(z!=null&&z.dragOverlay)for(let[X,Y]of Object.entries(z.dragOverlay)){if(Y===void 0)continue;q.node.style.setProperty(X,Y)}if(G!=null&&G.active)J.node.classList.add(G.active);if(G!=null&&G.dragOverlay)q.node.classList.add(G.dragOverlay);return function(){for(let[Y,U]of Object.entries(Q))J.node.style.setProperty(Y,U);if(G!=null&&G.active)J.node.classList.remove(G.active)}},ZE=(A)=>{let{transform:{initial:Z,final:J}}=A;return[{transform:L4.Transform.toString(Z)},{transform:L4.Transform.toString(J)}]},JE={duration:250,easing:"ease",keyframes:ZE,sideEffects:AE({styles:{active:{opacity:"0"}}})};function qE(A){let{config:Z,draggableNodes:J,droppableContainers:q,measuringConfiguration:Q}=A;return UJ((z,G)=>{if(Z===null)return;let X=J.get(z);if(!X)return;let Y=X.node.current;if(!Y)return;let U=qO(G);if(!U)return;let{transform:H}=l2(G).getComputedStyle(G),W=rN(H);if(!W)return;let B=typeof Z==="function"?Z:QE(Z);return AO(Y,Q.draggable.measure),B({active:{id:z,data:X.data,node:Y,rect:Q.draggable.measure(Y)},draggableNodes:J,dragOverlay:{node:G,rect:Q.dragOverlay.measure(U)},droppableContainers:q,measuringConfiguration:Q,transform:W})})}function QE(A){let{duration:Z,easing:J,sideEffects:q,keyframes:Q}={...JE,...A};return(z)=>{let{active:G,dragOverlay:X,transform:Y,...U}=z;if(!Z)return;let H={x:X.rect.left-G.rect.left,y:X.rect.top-G.rect.top},W={scaleX:Y.scaleX!==1?G.rect.width*Y.scaleX/X.rect.width:1,scaleY:Y.scaleY!==1?G.rect.height*Y.scaleY/X.rect.height:1},B={x:Y.x-H.x,y:Y.y-H.y,...W},K=Q({...U,active:G,dragOverlay:X,transform:{initial:Y,final:B}}),[V]=K,F=K[K.length-1];if(JSON.stringify(V)===JSON.stringify(F))return;let j=q==null?void 0:q({active:G,dragOverlay:X,...U}),$=X.node.animate(K,{duration:Z,easing:J,fill:"forwards"});return new Promise((L)=>{$.onfinish=()=>{j==null||j(),L()}})}}var gN=0;function zE(A){return c.useMemo(()=>{if(A==null)return;return gN++,gN},[A])}var HO=c.default.memo((A)=>{let{adjustScale:Z=!1,children:J,dropAnimation:q,style:Q,transition:z,modifiers:G,wrapperElement:X="div",className:Y,zIndex:U=999}=A,{activatorEvent:H,active:W,activeNodeRect:B,containerNodeRect:K,draggableNodes:V,droppableContainers:F,dragOverlay:j,over:$,measuringConfiguration:L,scrollableAncestors:M,scrollableAncestorRects:_,windowRect:k}=MW(),C=c.useContext(_G),O=zE(W==null?void 0:W.id),N=GO(G,{activatorEvent:H,active:W,activeNodeRect:B,containerNodeRect:K,draggingNodeRect:j.rect,over:$,overlayNodeRect:j.rect,scrollableAncestors:M,scrollableAncestorRects:_,transform:C,windowRect:k}),D=VW(B),T=qE({config:q,draggableNodes:V,droppableContainers:F,measuringConfiguration:L}),h=D?j.setRef:void 0;return c.default.createElement(sy,null,c.default.createElement(oy,{animation:T},W&&O?c.default.createElement(ey,{key:O,id:W.id,ref:h,as:X,activatorEvent:H,adjustScale:Z,className:Y,transition:z,rect:D,style:{zIndex:U,...Q},transform:N},J):null))});function GE(A,Z,J){let q={...A};if(Z.top+A.y<=J.top)q.y=J.top-Z.top;else if(Z.bottom+A.y>=J.top+J.height)q.y=J.top+J.height-Z.bottom;if(Z.left+A.x<=J.left)q.x=J.left-Z.left;else if(Z.right+A.x>=J.left+J.width)q.x=J.left+J.width-Z.right;return q}var WO=(A)=>{let{containerNodeRect:Z,draggingNodeRect:J,transform:q}=A;if(!J||!Z)return q;return GE(q,J,Z)};var BO=(A)=>{let{transform:Z}=A;return{...Z,x:0}};var Y2=g(p(),1);function NG(A,Z,J){let q=A.slice();return q.splice(J<0?q.length+J:J,0,q.splice(Z,1)[0]),q}function XE(A,Z){return A.reduce((J,q,Q)=>{let z=Z.get(q);if(z)J[Q]=z;return J},Array(A.length))}function kG(A){return A!==null&&A>=0}function YE(A,Z){if(A===Z)return!0;if(A.length!==Z.length)return!1;for(let J=0;J<A.length;J++)if(A[J]!==Z[J])return!1;return!0}function UE(A){if(typeof A==="boolean")return{draggable:A,droppable:A};return A}var KO=(A)=>{let{rects:Z,activeIndex:J,overIndex:q,index:Q}=A,z=NG(Z,q,J),G=Z[Q],X=z[Q];if(!X||!G)return null;return{x:X.left-G.left,y:X.top-G.top,scaleX:X.width/G.width,scaleY:X.height/G.height}};var jG={scaleX:1,scaleY:1},$O=(A)=>{var Z;let{activeIndex:J,activeNodeRect:q,index:Q,rects:z,overIndex:G}=A,X=(Z=z[J])!=null?Z:q;if(!X)return null;if(Q===J){let U=z[G];if(!U)return null;return{x:0,y:J<G?U.top+U.height-(X.top+X.height):U.top-X.top,...jG}}let Y=HE(z,Q,J);if(Q>J&&Q<=G)return{x:0,y:-X.height-Y,...jG};if(Q<J&&Q>=G)return{x:0,y:X.height+Y,...jG};return{x:0,y:0,...jG}};function HE(A,Z,J){let q=A[Z],Q=A[Z-1],z=A[Z+1];if(!q)return 0;if(J<Z)return Q?q.top-(Q.top+Q.height):z?z.top-(q.top+q.height):0;return z?z.top-(q.top+q.height):Q?q.top-(Q.top+Q.height):0}var LO="Sortable",VO=Y2.default.createContext({activeIndex:-1,containerId:LO,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:KO,disabled:{draggable:!1,droppable:!1}});function MO(A){let{children:Z,id:J,items:q,strategy:Q=KO,disabled:z=!1}=A,{active:G,dragOverlay:X,droppableRects:Y,over:U,measureDroppableContainers:H}=MW(),W=b5(LO,J),B=Boolean(X.rect!==null),K=Y2.useMemo(()=>q.map((C)=>typeof C==="object"&&("id"in C)?C.id:C),[q]),V=G!=null,F=G?K.indexOf(G.id):-1,j=U?K.indexOf(U.id):-1,$=Y2.useRef(K),L=!YE(K,$.current),M=j!==-1&&F===-1||L,_=UE(z);P6(()=>{if(L&&V)H(K)},[L,K,V,H]),Y2.useEffect(()=>{$.current=K},[K]);let k=Y2.useMemo(()=>({activeIndex:F,containerId:W,disabled:_,disableTransforms:M,items:K,overIndex:j,useDragOverlay:B,sortedRects:XE(K,Y),strategy:Q}),[F,W,_.draggable,_.droppable,M,K,j,Y,B,Q]);return Y2.default.createElement(VO.Provider,{value:k},Z)}var WE=(A)=>{let{id:Z,items:J,activeIndex:q,overIndex:Q}=A;return NG(J,q,Q).indexOf(Z)},BE=(A)=>{let{containerId:Z,isSorting:J,wasDragging:q,index:Q,items:z,newIndex:G,previousItems:X,previousContainerId:Y,transition:U}=A;if(!U||!q)return!1;if(X!==z&&Q===G)return!1;if(J)return!0;return G!==Q&&Z===Y},KE={duration:200,easing:"ease"},FO="transform",$E=L4.Transition.toString({property:FO,duration:0,easing:"linear"}),LE={roleDescription:"sortable"};function VE(A){let{disabled:Z,index:J,node:q,rect:Q}=A,[z,G]=Y2.useState(null),X=Y2.useRef(J);return P6(()=>{if(!Z&&J!==X.current&&q.current){let Y=Q.current;if(Y){let U=g5(q.current,{ignoreTransform:!0}),H={x:Y.left-U.left,y:Y.top-U.top,scaleX:Y.width/U.width,scaleY:Y.height/U.height};if(H.x||H.y)G(H)}}if(J!==X.current)X.current=J},[Z,J,q,Q]),Y2.useEffect(()=>{if(z)G(null)},[z]),z}function _O(A){let{animateLayoutChanges:Z=BE,attributes:J,disabled:q,data:Q,getNewIndex:z=WE,id:G,strategy:X,resizeObserverConfig:Y,transition:U=KE}=A,{items:H,containerId:W,activeIndex:B,disabled:K,disableTransforms:V,sortedRects:F,overIndex:j,useDragOverlay:$,strategy:L}=Y2.useContext(VO),M=ME(q,K),_=H.indexOf(G),k=Y2.useMemo(()=>({sortable:{containerId:W,index:_,items:H},...Q}),[W,Q,_,H]),C=Y2.useMemo(()=>H.slice(H.indexOf(G)),[H,G]),{rect:O,node:N,isOver:D,setNodeRef:T}=UO({id:G,data:k,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...Y}}),{active:h,activatorEvent:S,activeNodeRect:x,attributes:f,setNodeRef:R,listeners:P,isDragging:E,over:u,setActivatorNodeRef:v,transform:I}=YO({id:G,data:k,attributes:{...LE,...J},disabled:M.draggable}),t=kN(T,R),W0=Boolean(h),Q0=W0&&!V&&kG(B)&&kG(j),b=!$&&E,y=b&&Q0?I:null,m=X!=null?X:L,l=Q0?y!=null?y:m({rects:F,activeNodeRect:x,activeIndex:B,overIndex:j,index:_}):null,o=kG(B)&&kG(j)?z({id:G,items:H,activeIndex:B,overIndex:j}):_,a=h==null?void 0:h.id,e=Y2.useRef({activeId:a,items:H,newIndex:o,containerId:W}),K0=H!==e.current.items,G0=Z({active:h,containerId:W,isDragging:E,isSorting:W0,id:G,index:_,items:H,newIndex:e.current.newIndex,previousItems:e.current.items,previousContainerId:e.current.containerId,transition:U,wasDragging:e.current.activeId!=null}),Z0=VE({disabled:!G0,index:_,node:N,rect:O});return Y2.useEffect(()=>{if(W0&&e.current.newIndex!==o)e.current.newIndex=o;if(W!==e.current.containerId)e.current.containerId=W;if(H!==e.current.items)e.current.items=H},[W0,o,W,H]),Y2.useEffect(()=>{if(a===e.current.activeId)return;if(a!=null&&e.current.activeId==null){e.current.activeId=a;return}let k0=setTimeout(()=>{e.current.activeId=a},50);return()=>clearTimeout(k0)},[a]),{active:h,activeIndex:B,attributes:f,data:k,rect:O,index:_,newIndex:o,items:H,isOver:D,isSorting:W0,isDragging:E,listeners:P,node:N,overIndex:j,over:u,setNodeRef:t,setActivatorNodeRef:v,setDroppableNodeRef:T,setDraggableNodeRef:R,transform:Z0!=null?Z0:l,transition:F0()};function F0(){if(Z0||K0&&e.current.newIndex===_)return $E;if(b&&!H8(S)||!U)return;if(W0||G0)return L4.Transition.toString({...U,property:FO});return}}function ME(A,Z){var J,q;if(typeof A==="boolean")return{draggable:A,droppable:!1};return{draggable:(J=A==null?void 0:A.draggable)!=null?J:Z.draggable,droppable:(q=A==null?void 0:A.droppable)!=null?q:Z.droppable}}function CG(A){if(!A)return!1;let Z=A.data.current;if(Z&&"sortable"in Z&&typeof Z.sortable==="object"&&"containerId"in Z.sortable&&"items"in Z.sortable&&"index"in Z.sortable)return!0;return!1}var FE=[n0.Down,n0.Right,n0.Up,n0.Left],kO=(A,Z)=>{let{context:{active:J,collisionRect:q,droppableRects:Q,droppableContainers:z,over:G,scrollableAncestors:X}}=Z;if(FE.includes(A.code)){if(A.preventDefault(),!J||!q)return;let Y=[];z.getEnabled().forEach((W)=>{if(!W||W!=null&&W.disabled)return;let B=Q.get(W.id);if(!B)return;switch(A.code){case n0.Down:if(q.top<B.top)Y.push(W);break;case n0.Up:if(q.top>B.top)Y.push(W);break;case n0.Left:if(q.left>B.left)Y.push(W);break;case n0.Right:if(q.left<B.left)Y.push(W);break}});let U=lN({active:J,collisionRect:q,droppableRects:Q,droppableContainers:Y,pointerCoordinates:null}),H=$W(U,"id");if(H===(G==null?void 0:G.id)&&U.length>1)H=U[1].id;if(H!=null){let W=z.get(J.id),B=z.get(H),K=B?Q.get(B.id):null,V=B==null?void 0:B.node.current;if(V&&K&&W&&B){let j=$J(V).some((C,O)=>X[O]!==C),$=jO(W,B),L=_E(W,B),M=j||!$?{x:0,y:0}:{x:L?q.width-K.width:0,y:L?q.height-K.height:0},_={x:K.left,y:K.top};return M.x&&M.y?_:y5(_,M)}}}return};function jO(A,Z){if(!CG(A)||!CG(Z))return!1;return A.data.current.sortable.containerId===Z.data.current.sortable.containerId}function _E(A,Z){if(!CG(A)||!CG(Z))return!1;if(!jO(A,Z))return!1;return A.data.current.sortable.index<Z.data.current.sortable.index}var N2=g(p(),1);var mO=g(p(),1);var bG={};r2(bG,{Validity:()=>uO,Root:()=>SO,Label:()=>fO,Item:()=>cO,Error:()=>bO,Description:()=>yO,Control:()=>gO});var S2=g(p(),1);var OG=g(p(),1);var CO="data-valid",NO="data-invalid";var u5={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},jE={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},OO={disabled:!1,...jE},Z4={valid(A){if(A===null)return null;if(A)return{[CO]:""};return{[NO]:""}}};var CE={invalid:void 0,name:void 0,validityData:{state:u5,errors:[],error:"",value:"",initialValue:null},setValidityData:B1,disabled:void 0,setTouched:B1,setDirty:B1,setFilled:B1,setFocused:B1,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:OO,registerFieldControl:B1,validation:{getValidationProps:(A,Z=_1)=>Z,inputRef:{current:null},registeredInputs:new Map,registerInput:B1,getInputControl:()=>null,commit:async()=>{},change:B1}},FW=OG.createContext(CE);function K6(A=!0){let Z=OG.useContext(FW);if(Z.setValidityData===B1&&!A)throw Error(v1(28));return Z}var DG=g(p(),1),NE=DG.createContext(void 0);function DO(A=!1){let Z=DG.useContext(NE);if(!Z&&!A)throw Error(v1(86));return Z}var TG=g(p(),1);var OE=TG.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:B1,validationMode:"onSubmit",submitCountRef:{current:0}});function p4(){return TG.useContext(OE)}var T9=g(p(),1);var wG=g(p(),1);var _W=wG.createContext({controlId:void 0,registerControlId:B1,resetControlId:B1,labelId:void 0,setLabelId:B1,messageIds:[],setMessageIds:B1,getDescriptionProps:(A)=>A});function i2(){return wG.useContext(_W)}var hG=function(Z){let J=$2(),[q,Q]=T9.useState(J),[z,G]=T9.useState(),[X,Y]=T9.useState([]),U=q===void 0?J:q,H=F1(()=>new Map),{messageIds:W}=i2(),B=X0((j,$)=>{let L=H.current;if($===void 0)L.delete(j);else L.set(j,$);Q((M)=>{if(L.size===0)return M;let _;for(let k of L.values()){if(k===M)return M;if(_===void 0)_=k}return _})}),K=X0(()=>{if(H.current.size===0)Q(J)}),V=T9.useCallback((j)=>{let $=j["aria-describedby"]?j["aria-describedby"].split(" "):[];return $.push(...W,...X),{...j,"aria-describedby":Array.from(new Set($)).join(" ")||void 0}},[W,X]),F=T9.useMemo(()=>({controlId:U,registerControlId:B,resetControlId:K,labelId:z,setLabelId:G,messageIds:X,setMessageIds:Y,getDescriptionProps:V}),[U,B,K,z,G,X,Y,V]);return w(_W.Provider,{value:F,children:Z.children})};var jA=g(p(),1);function c5(A,Z){return{...A,state:{...A.state,valid:!Z&&A.state.valid}}}var kW=Object.keys(u5);function DE(A,Z){if(A.matches(":disabled"))return!1;if(!Z||A.form===Z)return!0;return A.form===null&&!A.hasAttribute("form")}function TO(A,Z){let J=null;for(let q of A.keys()){if(!DE(q,Z))continue;if(!q.validity.valid)return q;J??=q}return J}function wO(A){return{...u5,valid:!A,customError:A}}function jW(A){return A&&A.validationMessage?[A.validationMessage]:[]}function hO(A){let{elementRef:Z,formRef:J}=p4(),{setValidityData:q,validate:Q,validityData:z,validationDebounceTime:G,invalid:X,markedDirtyRef:Y,state:U,shouldValidateOnChange:H,validationMode:W,registeredFieldIdRef:B}=A,{controlId:K,getDescriptionProps:V}=i2(),F=W6(),j=jA.useRef(null),$=F1(()=>new Map).current,L=jA.useRef(0),M=jA.useRef(null),_=jA.useCallback((D,T)=>{return $.set(D,T),()=>{$.delete(D)}},[$]),k=X0(()=>{let D=TO($,Z.current);return D&&$.get(D)?.controlRef.current||null}),C=X0(async(D,T=!1)=>{L.current+=1;let h=L.current;function S(b,y=X){let m=B.current??K;if(m==null)return;let l=J.current.fields.get(m);if(!l)return;let o=c5(b,y);J.current.fields.set(m,{...l,validityData:o})}function x(b,y){let m=b.valid===!1?y:[];return{value:D,state:b,error:m[0]??"",errors:m,initialValue:z.initialValue}}function f(b,y){let m=b.validity.customError?b.validationMessage:"",l=y.replace(/\\r\\n?/g,`\n`);b.setCustomValidity(l),M.current=[b,l,m]}function R(){let b=M.current;if(M.current=null,b&&(!b[0].willValidate||b[0].validationMessage===b[1]))b[0].setCustomValidity(b[2])}function P(b,y,m){let l=x(b,y);S(l,m),q(l)}function E(b){let y=kW.reduce((l,o)=>{return l[o]=b.validity[o],l},{}),m=!1;for(let l of kW){if(l==="valid")continue;if(l==="valueMissing"&&y[l])m=!0;else if(y[l])return y}if(m&&!Y.current)y.valid=!0,y.valueMissing=!1;return y}function u(){return $.size>0?TO($,Z.current):j.current}let v=u();function I(){return v=u(),v?.willValidate?E(v):wO(!1)}if(T){if(U.valid!==!1||!v)return;if(!v.validity.valueMissing){R();let b=u(),y=b?.validity.customError?jW(b):[];P(wO(y.length>0),y,!1);return}for(let b of kW)if(b!=="valid"&&b!=="valueMissing"&&b!=="customError"&&v.validity[b])return}F.clear(),R();let t=I(),W0=jW(v),Q0=H();if(W0.length===0||Q0){let b=Array.from(J.current.fields.values()).reduce((l,o)=>{if(o.name)l[o.name]=o.getValue();return l},{}),y=Q(D,b),m;if(typeof y==="object"&&y!==null&&"then"in y){if(t.valid===!1)P(t,W0);else if(W==="onSubmit"||!z.state.customError)t.valid=null,P(t,W0);if(m=await y,h!==L.current)return;t=I()}else m=y;if(W0=m?[].concat(m).filter(Boolean):[],W0.length>0){if(t.valid=!1,t.customError=!0,v?.willValidate)f(v,W0.join(`\n`))}else W0=jW(v)}P(t,W0)}),O=X0((D,T=!1)=>{if(F.clear(),L.current+=1,T)return;let h=H();if(h&&D!==""&&G)F.start(G,()=>{C(D)});else C(D,!h)}),N=jA.useCallback((D,T={})=>$A(V(T),U.valid===!1&&!U.disabled&&!D?{"aria-invalid":!0}:_1),[V,U.disabled,U.valid]);return jA.useMemo(()=>({getValidationProps:N,inputRef:j,registeredInputs:$,registerInput:_,getInputControl:k,commit:C,change:O}),[N,$,_,k,C,O])}var xG=g(p(),1);function xO(A){let{change:Z,commit:J,invalid:q,markedDirtyRef:Q,name:z,setRegisteredFieldName:G,registeredFieldIdRef:X,setValidityData:Y,validityData:U}=A,{formRef:H}=p4(),W=xG.useRef(null),B=xG.useRef(null),K=xG.useRef(!1),V=X0(()=>{let k=B.current;if(!k)return;if(k.getValue)return k.getValue();return k.value});function F(k){return k.value===void 0?V():k.value}let j=X0(()=>{let k=B.current;if(Q.current=!0,!k){J(U.value);return}J(F(k))});function $(){let k=B.current;if(!k||!k.id)return;H.current.fields.set(k.id,{getValue:V,name:z??k.name,controlRef:k.controlRef,validityData:c5(U,q),validate:j})}function L(k=B.current?.id){if(k)H.current.fields.delete(k)}function M(k){if(K.current)return;K.current=!0;let C=F(k);Y((O)=>O.initialValue===C?O:{...O,initialValue:C})}J0(()=>{let k=B.current;if(!k||!k.id)return;G(z?void 0:k.name),H.current.fields.set(k.id,{getValue:V,name:z??k.name,controlRef:k.controlRef,validityData:c5(U,q),validate:j})},[H,V,q,z,G,j,U]),J0(()=>{let k=H.current.fields;return()=>{let C=B.current?.id;if(C)k.delete(C)}},[H]);let _=X0((k,C)=>{if(!C){if(W.current===k)W.current=null,Z(void 0,!0),L(),B.current=null,G(void 0),X.current=void 0;return}let O=B.current?.id,N=W.current;if(N&&N!==k)Z(void 0,!0);if(W.current=k,B.current=C,!z)G(C.name);if(X.current=C.id,O&&O!==C.id)L(O);M(C),$()});return[j,_]}var TE=S2.forwardRef(function(Z,J){let{errors:q,validationMode:Q,submitCountRef:z}=p4(),{render:G,className:X,validate:Y,validationDebounceTime:U=0,validationMode:H=Q,name:W,disabled:B=!1,invalid:K,dirty:V,touched:F,actionsRef:j,style:$,...L}=Z,M=DO(!0)?.disabled,_=X0(Y||(()=>null)),k=M||B,[C,O]=S2.useState(!1),[N,D]=S2.useState(!1),[T,h]=S2.useState(!1),[S,x]=S2.useState(!1),f=V??N,R=F??C,P=S2.useRef(f),E=S2.useRef(void 0),[u,v]=S2.useState(),I=W??u;J0(()=>{if(V!==void 0)P.current=V},[V]);let t=X0((j0)=>{if(V!==void 0)return;if(j0)P.current=!0;D(j0)}),W0=X0((j0)=>{if(F!==void 0)return;O(j0)}),Q0=X0(()=>H==="onChange"||H==="onSubmit"&&z.current>0),b=I&&Object.hasOwn(q,I)?q[I]:null,y=!!(Array.isArray(b)?b.length:b),m=K===!0||y,[l,o]=S2.useState({state:u5,error:"",errors:[],value:null,initialValue:null}),a=!m&&(k?null:l.state.valid),e=S2.useMemo(()=>({disabled:k,touched:R,dirty:f,valid:a,filled:T,focused:S}),[k,R,f,a,T,S]),K0=hO({setValidityData:o,validate:_,validityData:l,validationDebounceTime:U,invalid:m,markedDirtyRef:P,state:e,shouldValidateOnChange:Q0,validationMode:H,registeredFieldIdRef:E}),[G0,Z0]=xO({change:K0.change,commit:K0.commit,invalid:m,markedDirtyRef:P,name:W,setRegisteredFieldName:v,registeredFieldIdRef:E,setValidityData:o,validityData:l});S2.useImperativeHandle(j,()=>({validate:G0}),[G0]);let F0=S2.useMemo(()=>({invalid:m,name:I,validityData:l,setValidityData:o,disabled:k,setTouched:W0,setDirty:t,setFilled:h,setFocused:x,validationMode:H,shouldValidateOnChange:Q0,state:e,registerFieldControl:Z0,validation:K0}),[m,I,l,k,W0,t,h,x,H,Q0,e,Z0,K0]),k0=O0("div",Z,{ref:J,state:e,props:L,stateAttributesMapping:Z4});return w(FW.Provider,{value:F0,children:k0})}),SO=S2.forwardRef(function(Z,J){return w(hG,{children:w(TE,{...Z,ref:J})})});var MJ=g(p(),1);function PO(A,Z){let J=$2(A);return J0(()=>{return Z(J),()=>{Z((q)=>q===J?void 0:q)}},[J,Z]),J}function IO(A={}){let{id:Z,fallbackControlId:J,native:q=!1,setLabelId:Q,focusControl:z}=A,{controlId:G,setLabelId:X}=i2(),Y=X0((K)=>{X(K),Q?.(K)}),U=PO(Z,Y),H=G??J;function W(K){if(z){z(K,H);return}if(!H)return;let V=y0(K.currentTarget).getElementById(H);if(l0(V))wE(V)}function B(K){if(D1(K.nativeEvent)?.closest("button,input,select,textarea"))return;if(!K.defaultPrevented&&K.detail>1)K.preventDefault();if(q)return;W(K)}return q?{id:U,htmlFor:H,onMouseDown:B}:{id:U,onClick:B,onPointerDown(K){K.preventDefault()}}}function wE(A){A.focus({focusVisible:!0})}var SG=g(p(),1),CW=SG.createContext({disabled:!1});function PG(){return SG.useContext(CW)}var fO=MJ.forwardRef(function(Z,J){let{render:q,className:Q,style:z,id:G,nativeLabel:X=!0,...Y}=Z,U=K6(!1),H=PG(),{labelId:W}=i2(),B={...U.state,disabled:U.disabled||H.disabled},K=MJ.useRef(null),V=IO({id:W??G,native:X});return O0("label",Z,{ref:[J,K],state:B,props:[V,Y],stateAttributesMapping:Z4})});var m5=g(p(),1);var hE={...Z4,...f4},bO=m5.forwardRef(function(Z,J){let{render:q,id:Q,className:z,match:G,style:X,...Y}=Z,U=$2(Q),{validityData:H,state:W,name:B}=K6(!1),{setMessageIds:K}=i2(),{errors:V}=p4(),F=B&&Object.hasOwn(V,B)?V[B]:null,j=!!(Array.isArray(F)?F.length:F),$=typeof G==="string",L=!1;if(G===!0)L=!0;else if(W.disabled)L=!1;else if($)L=Boolean(H.state[G]);else L=j||H.state.valid===!1;let{mounted:M,transitionStatus:_,setMounted:k}=U9(L);J0(()=>{if(!L||!U)return;return K((P)=>P.concat(U)),()=>{K((P)=>P.filter((E)=>E!==U))}},[L,U,K]);let C=m5.useRef(null),[O,N]=m5.useState(null),[D,T]=m5.useState(null),h=H.error;if(!$&&j)h=F;else if(H.errors.length>1)h=H.errors;let S=h;if(Array.isArray(h))S=h.length>1?w("ul",{children:h.map((P)=>w("li",{children:P},P))}):h[0];let x=Array.isArray(h)?JSON.stringify(h):h;if(L&&x!==D)T(x),N(S);y4({open:L,ref:C,onComplete(){if(!L)k(!1)}});let f={...W,transitionStatus:_},R=O0("div",Z,{ref:[J,C],state:f,props:[{id:U,children:L?S:O},Y],stateAttributesMapping:hE,enabled:M});if(!M)return null;return R});var RO=g(p(),1);var yO=RO.forwardRef(function(Z,J){let{render:q,id:Q,className:z,style:G,...X}=Z,Y=$2(Q),U=K6(!1),H=PG(),{setMessageIds:W}=i2(),B={...U.state,disabled:U.disabled||H.disabled};return J0(()=>{if(!Y)return;return W((V)=>V.concat(Y)),()=>{W((V)=>V.filter((F)=>F!==Y))}},[Y,W]),O0("p",Z,{ref:J,state:B,props:[{id:Y},X],stateAttributesMapping:Z4})});var IG=g(p(),1);function EO(A,Z,J,q,Q=!0,z){let{registerFieldControl:G}=K6(),X=F1(()=>Symbol());J0(()=>{let Y=X.current;if(!Q){G(Y,void 0);return}G(Y,{controlRef:A,getValue:q,id:Z,name:z,value:J})},[A,Q,q,Z,z,G,X,J]),J0(()=>{let Y=X.current;return()=>{G(Y,void 0)}},[G,X])}var NW=g(p(),1);function vO(A={}){let{id:Z,enabled:J=!0}=A,{controlId:q,registerControlId:Q,resetControlId:z}=i2(),G=$2(),X=F1(()=>Symbol()),Y=NW.useRef(!1),U=NW.useRef(!1),H=X0(()=>{if(!Y.current||Q===B1)return;Y.current=!1,Q(X.current,void 0)});return J0(()=>{if(!J||Q===B1){H();return}let W;if(Z!==void 0)U.current=!0,W=Z;else if(U.current)W=G;else{z();return}if(W===void 0){H();return}Y.current=!0,Q(X.current,W);return},[Z,J,Q,z,G,X,H]),J0(()=>{return H},[H]),(J?q:void 0)??Z??G}var gO=IG.forwardRef(function(Z,J){let{render:q,className:Q,id:z,name:G,value:X,disabled:Y=!1,onValueChange:U,defaultValue:H,autoFocus:W=!1,style:B,...K}=Z,{state:V,name:F,disabled:j,setTouched:$,setDirty:L,validityData:M,setFocused:_,setFilled:k,validationMode:C,validation:O}=K6(),{clearErrors:N,elementRef:D,submitCountRef:T}=p4(),h=j||Y,S=F??G,x={...V,disabled:h},{labelId:f}=i2(),R=vO({id:z}),[P]=UQ({controlled:X,default:H,name:"FieldControl",state:"value"}),E=X!==void 0,u=E?P:void 0,v=u==null?void 0:String(u),I=X0(()=>O.inputRef.current?.value);EO(O.inputRef,R,v,I,!h,G),J0(()=>{let b=v??O.inputRef.current?.value;if(b!==void 0)k(b!=="")},[v,O.inputRef,k]),MC(v,()=>{if(v===void 0)return;N(S),L(v!==(M.initialValue??"")),O.change(v)});let t=IG.useRef(null),W0=W6();return J0(()=>{if(W&&t.current===a1(y0(t.current)))_(!0)},[W,_]),O0("input",Z,{ref:[J,t],state:x,props:[{id:R,disabled:h,name:S,ref:O.inputRef,"aria-labelledby":f,autoFocus:W,...E?{value:u}:{defaultValue:H},onChange(b){let y=b.currentTarget.value,m=y1(e0.none,b.nativeEvent);if(U?.(y,m),E)return;if(L(y!==(M.initialValue??"")),k(y!==""),!b.nativeEvent.defaultPrevented&&!m.isCanceled)N(S),O.change(y)},onFocus(){_(!0)},onBlur(b){if($(!0),_(!1),C==="onBlur"){let y=b.currentTarget.value;if(O.commit(y),E)queueMicrotask(()=>{let m=O.inputRef.current?.value;if(m!==void 0&&m!==y&&m!==(M.initialValue??""))O.commit(m)})}},onKeyDown(b){if(b.currentTarget.tagName==="INPUT"&&b.key==="Enter"){$(!0);let y=b.currentTarget.value,m=b.currentTarget.form;if(m&&m===D.current&&!b.defaultPrevented){let l=b.currentTarget,o=T.current;W0.start(0,()=>{if(T.current===o)O.commit(l.value)})}else O.commit(y)}}},K,(b)=>O.getValidationProps(h,b)],stateAttributesMapping:Z4})});var FJ=g(p(),1);var uO=function(Z){let{children:J}=Z,{validityData:q,invalid:Q}=K6(!1),z=FJ.useMemo(()=>c5(q,Q),[q,Q]),G=z.state.valid===!1,{transitionStatus:X}=U9(G),Y=FJ.useMemo(()=>{return{...z,validity:z.state,transitionStatus:X}},[z,X]);return w(FJ.Fragment,{children:J(Y)})};var fG=g(p(),1);var cO=fG.forwardRef(function(Z,J){let{render:q,className:Q,style:z,disabled:G=!1,...X}=Z,{state:Y,disabled:U}=K6(!1),H=U||G,W={...Y,disabled:H},B=fG.useMemo(()=>({disabled:H}),[H]),K=O0("div",Z,{ref:J,state:W,props:X,stateAttributesMapping:Z4});return w(hG,{children:w(CW.Provider,{value:B,children:K})})});var OW=mO.forwardRef(function(Z,J){return w(bG.Control,{ref:J,...Z})});function pO({className:A,type:Z,...J}){return w(OW,{type:Z,"data-slot":"input",className:T0("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",A),...J})}function dO({className:A,...Z}){return w("textarea",{"data-slot":"textarea",className:T0("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",A),...Z})}function _J({className:A,...Z}){return w("div",{"data-slot":"input-group",role:"group",className:T0("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",A),...Z})}var xE=U4("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=\'size-\'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function DW({className:A,align:Z="inline-start",...J}){return w("div",{role:"group","data-slot":"input-group-addon","data-align":Z,className:T0(xE({align:Z}),A),onClick:(q)=>{if(q.target.closest("button"))return;q.currentTarget.parentElement?.querySelector("input")?.focus()},...J})}var SE=U4("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*=\'size-\'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function RG({className:A,type:Z="button",variant:J="ghost",size:q="xs",...Q}){return w(n2,{type:Z,"data-size":q,variant:J,className:T0(SE({size:q}),A),...Q})}function TW({className:A,...Z}){return w(pO,{"data-slot":"input-group-control",className:T0("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",A),...Z})}function wW({className:A,...Z}){return w(dO,{"data-slot":"input-group-control",className:T0("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",A),...Z})}function lO(A){let Z=Math.floor((Date.now()-Date.parse(A))/60000);if(Z<60)return`${Z}m`;if(Z<1440)return`${Math.floor(Z/60)}h`;return`${Math.floor(Z/1440)}d`}class hW extends Error{reason;constructor(A,Z){super(Z);this.reason=A}}async function yG(A,Z){let J=await fetch(A,{method:"POST",...Z}),q=await J.json().catch(()=>({}));if(!J.ok)throw new hW(q.reason??"error",q.message??`${A}: ${J.status}`);return q}async function iO({subject:A,text:Z,position:J},q){let Q=nO({files:q,keep:[]});sO(Q,{subject:A,text:Z,position:J}),await yG("/api/todos",{body:Q})}async function rO(A,{subject:Z,text:J,position:q,files:Q,keep:z}){let G=nO({files:Q,keep:z});sO(G,{subject:Z,text:J,position:q}),await yG(`/api/todos/${A}`,{method:"PATCH",body:G})}async function oO(A,Z){await yG(`/api/todos/${A}/position`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({position:Z})})}async function aO(A){await yG(`/api/todos/${A}`,{method:"DELETE"})}function xW(A){return`/api/file?${new URLSearchParams({path:A})}`}function sO(A,{subject:Z,text:J,position:q}){if(A.set("subject",Z),A.set("text",J),q!==void 0)A.set("position",String(q))}function nO({files:A,keep:Z}){let J=new FormData;for(let q of A)J.append("file",q,q.name);for(let q of Z)J.append("keep",q);return J}async function tO(A=""){let Z=await fetch(`/api/paths?${new URLSearchParams({task:A})}`);if(!Z.ok)throw new hW("error",`/api/paths: ${Z.status}`);return await Z.json()}var w9=g(p(),1);var PE=/\\.(png|jpe?g|gif|webp|svg)$/i;function SW(A=[]){let[Z,J]=w9.useState([]),[q,Q]=w9.useState(A),z=(X)=>{let Y=[...X];if(Y.length>0)J((U)=>[...U,...Y])};return{files:Z,keep:q,add:z,paste:(X)=>{let Y=[...X.clipboardData.files];if(Y.length>0)X.preventDefault(),z(Y)},drop:(X)=>J((Y)=>Y.filter((U,H)=>H!==X)),unkeep:(X)=>Q((Y)=>Y.filter((U)=>U!==X)),clear:()=>{J([]),Q([])},any:Z.length>0||q.length>0}}function PW({files:A}){let Z=w9.useRef(null);return Y0(Q9,{children:[w(RG,{"aria-label":"attach files",size:"icon-xs",variant:"ghost",onClick:()=>Z.current?.click(),children:w(e9,{})}),w("input",{ref:Z,type:"file",multiple:!0,hidden:!0,onChange:(J)=>{A.add(J.target.files??[]),J.target.value=""}})]})}function IW({files:A}){if(!A.any)return null;return Y0("div",{className:"flex flex-wrap gap-2",children:[A.keep.map((Z)=>w(eO,{name:bE(Z),src:PE.test(Z)?xW(Z):void 0,href:xW(Z),onRemove:()=>A.unkeep(Z)},Z)),A.files.map((Z,J)=>w(IE,{file:Z,onRemove:()=>A.drop(J)},`${Z.name}-${Z.size}-${Z.lastModified}`))]})}function IE({file:A,onRemove:Z}){let J=A.type.startsWith("image/"),[q,Q]=w9.useState();return w9.useEffect(()=>{if(!J)return;let z=URL.createObjectURL(A);return Q(z),()=>URL.revokeObjectURL(z)},[A,J]),w(eO,{name:A.name,src:J?q:void 0,onRemove:Z})}function eO({name:A,src:Z,href:J,onRemove:q}){let Q=Z===void 0?Y0("div",{className:"flex h-16 max-w-40 items-center gap-2 rounded-md border px-3 text-xs",children:[w(n9,{className:"size-4 shrink-0 text-muted-foreground"}),w("span",{className:"truncate",children:A})]}):w("img",{src:Z,alt:A,className:"size-16 rounded-md border object-cover"});return Y0("div",{className:"relative",children:[J===void 0?Q:w("a",{href:J,target:"_blank",rel:"noreferrer",children:Q}),q&&w(n2,{"aria-label":`remove ${A}`,variant:"secondary",size:"icon-xs",className:"absolute -top-2 -right-2 rounded-full",onClick:q,children:w(BA,{})})]})}var fE=/^([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|\\d+)-/i;function bE(A){return(A.split("/").at(-1)??A).replace(fE,"")}var M4=g(p(),1);var fW=8,bW=32;function kJ({task:A,text:Z,setText:J}){let q=M4.useRef(null),[Q,z]=M4.useState([]),[G,X]=M4.useState(0),[Y,U]=M4.useState(0),[H,W]=M4.useState(null),[B,K]=M4.useState({below:!1,room:fW*bW});M4.useEffect(()=>{let C=!0;return tO(A).then((O)=>C&&z(O),()=>{return}),()=>{C=!1}},[A]);let V=yE(Z,G),F=V===null||V.start===H?[]:EE(Q,V.query).slice(0,fW),j=F.length>0,$=Math.min(Y,F.length-1),L=j&&V!==null,M=V?.start;M4.useEffect(()=>{if(!L||q.current===null)return;let C=q.current.getBoundingClientRect(),O=q.current.closest("[data-slot=dialog-content]")?.getBoundingClientRect()??{top:0,bottom:innerHeight},N=C.top-O.top,D=Math.min(O.bottom,innerHeight)-C.bottom,T=fW*bW+10,h=N<T&&D>N;K({below:h,room:Math.min(T,(h?D:N)-8)}),U(0)},[L]);let _=()=>X(q.current?.selectionStart??0),k=(C)=>{if(V===null)return;let O=V.start+1+V.query.length,N=`@${C}${C.endsWith("/")?"":" "}`,D=Z.slice(0,V.start)+N+Z.slice(O),T=V.start+N.length;J(D),X(T),requestAnimationFrame(()=>{q.current?.focus(),q.current?.setSelectionRange(T,T)})};return{ref:q,onChange:(C)=>{J(C.target.value),X(C.target.selectionStart??C.target.value.length)},onSelect:_,onClick:_,onKeyDown:(C)=>{if(!j)return!1;let O={ArrowDown:1,ArrowUp:-1}[C.key];if(O!==void 0)U(($+O+F.length)%F.length);else if(C.key==="Enter"||C.key==="Tab")k(F[$]??"");else if(C.key==="Escape")W(V?.start??null);else return!1;return C.preventDefault(),C.stopPropagation(),!0},menu:j?w(RE,{matches:F,active:$,place:B,onPick:k,onHover:U}):null}}function RE({matches:A,active:Z,place:J,onPick:q,onHover:Q}){return w("div",{role:"listbox","aria-label":"files",style:{maxHeight:J.room},className:T0("absolute inset-x-0 z-50 overflow-y-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-md",J.below?"top-full mt-1":"bottom-full mb-1"),children:A.map((z,G)=>{let Y=z.endsWith("/")?TZ:n9,[U,H]=AD(z);return Y0("div",{role:"option",tabIndex:-1,"aria-selected":G===Z,onMouseDown:(W)=>{W.preventDefault(),q(z)},onMouseEnter:()=>Q(G),ref:(W)=>{if(G===Z)W?.scrollIntoView({block:"nearest"})},style:{height:bW},className:T0("flex cursor-default items-center gap-2 rounded-md px-2 text-sm",G===Z&&"bg-muted"),children:[w(Y,{className:"size-4 shrink-0 text-muted-foreground"}),w("span",{className:"truncate",children:H}),w("span",{className:"shrink-1000 truncate text-muted-foreground text-xs",children:U})]},z)})})}function yE(A,Z){let J=/(^|\\s)@([^\\s@]*)$/.exec(A.slice(0,Z));if(J===null)return null;let q=J[2]??"";return{start:Z-q.length-1,query:q}}function EE(A,Z){let J=Z.toLowerCase(),q=[];for(let Q of A){let z=Q.toLowerCase();if(z===J)continue;let[,G]=AD(z),X=G.startsWith(J.split("/").at(-1)??"")&&z.includes(J)?0:z.includes(J)?1:vE(z,J)?2:null;if(X!==null)q.push({path:Q,score:X,depth:Q.replace(/\\/$/,"").split("/").length})}return q.sort((Q,z)=>Q.score-z.score||Q.depth-z.depth||Number(!Q.path.endsWith("/"))-Number(!z.path.endsWith("/"))||Q.path.localeCompare(z.path)).map(({path:Q})=>Q)}function AD(A){let Z=A.endsWith("/")?A.slice(0,-1):A,J=Z.lastIndexOf("/");return[Z.slice(0,J+1),Z.slice(J+1)+(A.endsWith("/")?"/":"")]}function vE(A,Z){let J=0;for(let q of Z)if(J=A.indexOf(q,J)+1,J===0)return!1;return!0}function jJ({mentions:A,children:Z}){return Y0("div",{className:"relative",children:[Z,A.menu]})}function qD({snapshot:A}){let{todos:Z,todoStalenessMs:J,tasks:q}=A,[Q,z]=N2.useState(null),G=Z.find((W)=>W.id===Q),[X,Y]=N2.useState(null),U=q.find((W)=>W.task===X);return w(QD,{value:(W)=>q.some((B)=>B.task===W)?Y(W):null,children:Y0("div",{className:"flex flex-col gap-6",children:[w(pE,{}),Z.length===0?w(cz,{children:Y0(mz,{children:[w(pz,{variant:"icon",children:w(t9,{})}),w(dz,{children:"Nothing deferred"}),w(lz,{children:"Agents add what comes up outside their task here."})]})}):w(gE,{todos:Z,staleness:J,onOpen:z}),w(JJ,{open:G!==void 0,onOpenChange:(W)=>{if(!W)z(null)},children:G&&w(dE,{todo:G,onDone:()=>z(null)})}),w(JJ,{open:U!==void 0,onOpenChange:(W)=>{if(!W)Y(null)},children:U&&w(zW,{task:U})})]})})}var QD=N2.createContext(()=>{});function gE({todos:A,staleness:Z,onOpen:J}){let[q,Q]=N2.useState(null),[z,G]=N2.useState(null);N2.useEffect(()=>Q(null),[A]);let X=cN(KG(VG,{activationConstraint:{distance:4}}),KG(MG,{activationConstraint:{delay:200,tolerance:6}}),KG(LJ,{coordinateGetter:kO})),Y=q??A.map((B)=>B.id),U=Y.flatMap((B)=>A.filter((K)=>K.id===B)),H=A.find((B)=>B.id===z);return Y0(XO,{sensors:X,collisionDetection:dN,modifiers:[BO,WO],onDragStart:({active:B})=>G(Number(B.id)),onDragCancel:()=>G(null),onDragEnd:({active:B,over:K})=>{if(G(null),K===null||B.id===K.id)return;let V=Y.indexOf(Number(K.id));Q(NG(Y,Y.indexOf(Number(B.id)),V)),oO(Number(B.id),V+1).catch((F)=>{Q(null),C5.add({title:"Not moved",description:F instanceof Error?F.message:String(F),type:"error"})})},children:[w(MO,{items:Y,strategy:$O,children:w("ul",{"aria-label":"todos",className:"flex flex-col gap-2",children:U.map((B)=>w(uE,{todo:B,staleness:Z,onOpen:()=>J(B.id)},B.id))})}),w(HO,{children:H&&w(zD,{todo:H,staleness:Z,className:"rotate-2 cursor-grabbing shadow-lg"})})]})}function uE({todo:A,staleness:Z,onOpen:J}){let{attributes:q,listeners:Q,setNodeRef:z,setActivatorNodeRef:G,transform:X,transition:Y,isDragging:U}=_O({id:A.id});return w("li",{ref:z,style:{transform:L4.Translate.toString(X),transition:Y},children:w(zD,{todo:A,staleness:Z,onOpen:J,pointer:{onMouseDown:Q?.onMouseDown,onTouchStart:Q?.onTouchStart},grip:{...q,onKeyDown:Q?.onKeyDown,ref:G},className:T0(U&&"border-dashed bg-muted shadow-none *:invisible hover:shadow-none")})})}function zD({todo:A,staleness:Z,onOpen:J,pointer:q,grip:Q,className:z}){let G=A.takenBy===null&&Date.now()-Date.parse(A.createdAt)>Z;return Y0("div",{...q,className:T0("group relative flex cursor-grab touch-manipulation items-stretch rounded-lg border bg-card text-card-foreground shadow-xs transition-shadow select-none hover:shadow-sm active:cursor-grabbing",A.takenBy&&"border-l-4 border-l-success",z),children:[Y0("div",{className:T0("flex min-w-0 flex-1 flex-col gap-1.5 py-2.5 pl-3",G&&"opacity-60"),children:[w("button",{type:"button",onClick:J,className:"cursor-grab text-left font-semibold text-sm outline-none after:absolute after:inset-0 after:rounded-lg focus-visible:after:ring-2 focus-visible:after:ring-ring active:cursor-grabbing",children:A.subject}),A.text!==""&&w(XJ,{text:A.text,preview:!0,className:"text-muted-foreground text-xs"}),Y0("span",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-muted-foreground text-xs",children:[w(mE,{id:A.id}),A.files.length>0&&w(JD,{Icon:e9,label:"files",children:A.files.length}),A.takenBy&&w(cE,{task:A.takenBy}),G&&Y0(JD,{Icon:DZ,label:"stale",children:["stale, ",lO(A.createdAt)]})]})]}),w("button",{type:"button",...Q,"aria-label":`move ${A.subject}`,className:"relative flex w-8 shrink-0 cursor-grab items-center justify-center rounded-r-lg text-muted-foreground opacity-40 outline-none group-hover:opacity-100 focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring",children:w(wZ,{className:"size-4"})})]})}function cE({task:A}){let Z=N2.useContext(QD);return Y0("button",{type:"button",onClick:()=>Z(A),onMouseDown:(J)=>J.stopPropagation(),onTouchStart:(J)=>J.stopPropagation(),className:"relative inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-full bg-success/15 px-2 py-0.5 font-medium text-success outline-none hover:bg-success/25 focus-visible:ring-2 focus-visible:ring-ring",children:[w(WA,{"aria-label":"taken by",role:"img",className:"size-3.5 shrink-0"}),Y0("span",{className:"truncate",children:["Taken by ",A]})]})}function ZD(A){return`[ARBOR TODO #${A}]`}function mE({id:A}){let Z=async()=>{try{await navigator.clipboard.writeText(ZD(A)),C5.add({title:`Copied ${ZD(A)}`})}catch(J){C5.add({title:"Not copied",description:J instanceof Error?J.message:String(J),type:"error"})}};return Y0("button",{type:"button","aria-label":`copy a link to todo ${A}`,onClick:()=>void Z(),onMouseDown:(J)=>J.stopPropagation(),onTouchStart:(J)=>J.stopPropagation(),className:"relative -mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 tabular-nums outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[w(xZ,{className:"size-3.5"}),"#",A]})}function JD({Icon:A,label:Z,children:J}){return Y0("span",{className:"inline-flex items-center gap-1",title:Z,children:[w(A,{"aria-label":Z,role:"img",className:"size-3.5"}),J]})}function pE(){let[A,Z]=N2.useState(""),[J,q]=N2.useState(""),Q=SW(),z=kJ({task:"",text:A,setText:Z}),G=kJ({task:"",text:J,setText:q}),[X,Y]=N2.useState(!1);return Y0("form",{onSubmit:async(H)=>{if(H.preventDefault(),A.trim()===""||X)return;Y(!0);try{await iO({subject:A,text:J},Q.files),Z(""),q(""),Q.clear()}catch(W){C5.add({title:"Not added",description:W instanceof Error?W.message:String(W),type:"error"})}finally{Y(!1)}},className:"flex flex-col gap-2",children:[w(jJ,{mentions:z,children:Y0(_J,{children:[w(TW,{ref:z.ref,"aria-label":"new todo",placeholder:"Something to do later, @ for a file",value:A,onChange:z.onChange,onSelect:z.onSelect,onClick:z.onClick,onKeyDown:z.onKeyDown,onPaste:Q.paste}),Y0(DW,{align:"inline-end",children:[w(PW,{files:Q}),w(RG,{type:"submit",variant:"secondary",disabled:A.trim()===""||X,children:"Add"})]})]})}),(A!==""||J!=="")&&w(jJ,{mentions:G,children:w(_J,{children:w(wW,{ref:G.ref,"aria-label":"new todo detail",placeholder:"More to say in markdown, if any",value:J,onChange:G.onChange,onSelect:G.onSelect,onClick:G.onClick,onKeyDown:G.onKeyDown,onPaste:Q.paste,rows:2})})}),w(IW,{files:Q})]})}function dE({todo:A,onDone:Z}){let[J,q]=N2.useState(A.subject),[Q,z]=N2.useState(A.text),[G,X]=N2.useState(A.text===""),Y=SW(A.files),U=kJ({task:"",text:J,setText:q}),H=kJ({task:"",text:Q,setText:z}),[W,B]=N2.useState(!1),[K,V]=N2.useState(!1),F=async($,L)=>{B(!0);try{await $(),Z()}catch(M){C5.add({title:L,description:M instanceof Error?M.message:String(M),type:"error"}),B(!1)}},j=J.trim()!==""&&(J.trim()!==A.subject||Q.trim()!==A.text||Y.files.length>0||Y.keep.length!==A.files.length);return Y0(Ez,{className:"max-h-[85dvh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-lg",children:[Y0(vz,{children:[Y0(gz,{children:["Todo ",A.id]}),w(uz,{children:A.takenBy?`Taken by ${A.takenBy}`:`Number ${A.position} on the list`})]}),Y0("div",{className:"flex flex-col gap-2",children:[w(jJ,{mentions:U,children:w(_J,{children:w(TW,{ref:U.ref,"aria-label":"subject",value:J,onChange:U.onChange,onSelect:U.onSelect,onClick:U.onClick,onKeyDown:U.onKeyDown,onPaste:Y.paste})})}),Y0("div",{className:"flex items-center justify-between",children:[Y0("div",{className:"flex gap-1",children:[w(n2,{size:"xs",variant:G?"secondary":"ghost","aria-pressed":G,onClick:()=>X(!0),children:"Write"}),w(n2,{size:"xs",variant:G?"ghost":"secondary","aria-pressed":!G,onClick:()=>X(!1),children:"Preview"})]}),w("span",{className:"text-muted-foreground text-xs",children:"Markdown supported"})]}),G?w(jJ,{mentions:H,children:Y0(_J,{children:[w(wW,{ref:H.ref,"aria-label":"detail",placeholder:"More to say in markdown, if any",value:Q,onChange:H.onChange,onSelect:H.onSelect,onClick:H.onClick,onKeyDown:H.onKeyDown,onPaste:Y.paste,rows:6}),w(DW,{align:"block-end",children:w(PW,{files:Y})})]})}):w("div",{className:"min-h-20 rounded-md border px-3 py-2 text-sm",children:Q.trim()===""?w("span",{className:"text-muted-foreground",children:"Nothing to preview"}):w(XJ,{text:Q})}),w(IW,{files:Y})]}),Y0(CC,{className:"flex-row justify-between sm:justify-between",children:[Y0(n2,{variant:K?"destructive":"ghost",disabled:W,onClick:()=>K?void F(()=>aO(A.id),"Not removed"):V(!0),children:[w(Z9,{"data-icon":"inline-start"}),K?"Remove for good":"Remove"]}),w(n2,{disabled:!j||W,onClick:()=>void F(()=>rO(A.id,{subject:J,text:Q,files:Y.files,keep:Y.keep}),"Not saved"),children:"Save"})]})]})}var lE=[{value:"todos",label:"Todos",Icon:t9},{value:"tasks",label:"Tasks",Icon:WA}],GD="(min-width: 768px)";function iE(){return $8.useSyncExternalStore((A)=>{let Z=matchMedia(GD);return Z.addEventListener("change",A),()=>Z.removeEventListener("change",A)},()=>matchMedia(GD).matches)}function XD(){let[A]=$8.useState(()=>new NH);GQ((Q)=>{A.start(),Q.use(A)},[A]);let Z=iE(),{snapshot:J,offline:q}=iY(A,(Q)=>({snapshot:Q.snapshot,offline:Q.offline}),["changed"]);return $8.useEffect(()=>{document.title=J?.repo??"arbor"},[J?.repo]),w(Rj,{children:w("div",{className:T0(Z&&"pl-56"),children:Y0("main",{className:T0("mx-auto flex min-h-dvh max-w-xl flex-col gap-6 px-4 pt-6",!Z&&"pb-28"),children:[Y0("header",{className:"flex items-center justify-between",children:[w("h1",{className:T0("min-w-0 truncate font-medium text-sm",Z&&"fixed top-6 left-6 z-50 max-w-44"),children:J?.repo??"arbor"}),q&&w("span",{role:"status",className:"shrink-0 text-destructive text-xs",children:"Offline: is `arbor dev` still running?"})]}),J===null?null:Y0(__,{defaultValue:"todos",orientation:Z?"vertical":"horizontal",className:"gap-6",children:[w(k_,{variant:"line",className:Z?"fixed inset-y-0 left-0 z-40 w-56 items-stretch justify-start gap-1 border-r bg-background px-3 pt-16 group-data-vertical/tabs:h-dvh":"fixed inset-x-0 bottom-0 z-40 w-full group-data-horizontal/tabs:h-auto justify-around rounded-none border-t bg-background/95 px-2 pt-1.5 pb-[max(0.375rem,env(safe-area-inset-bottom))] backdrop-blur",children:lE.map(({value:Q,label:z,Icon:G})=>w(j_,{value:Q,className:Z?"h-9 flex-none gap-3 px-3 after:hidden data-active:bg-muted":"h-auto flex-1 flex-col gap-0.5 py-1 text-xs after:hidden",children:Z?Y0(Q9,{children:[w(G,{}),z]}):Y0(Q9,{children:[w(G,{className:"size-5"}),z]})},Q))}),w(vU,{value:"todos",children:w(qD,{snapshot:J})}),w(vU,{value:"tasks",children:w(FN,{tasks:J.tasks})})]})]})})})}var HD=document.getElementById("root");if(HD===null)throw Error("no #root to mount into: index.html and main.tsx disagree");var WD=matchMedia("(prefers-color-scheme: dark)"),BD=()=>document.documentElement.classList.toggle("dark",WD.matches);BD();WD.addEventListener("change",BD);UD.createRoot(HD).render(w(YD.StrictMode,{children:w(XD,{})}));\n';
|
|
2413
|
+
var main_default = 'var yR=Object.create;var{getPrototypeOf:bR,defineProperty:xc,getOwnPropertyNames:LR}=Object;var Yv=Object.prototype.hasOwnProperty;function SR(e){return this[e]}var IR,AR,TR=(e,t,a)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?IR??=new WeakMap:AR??=new WeakMap,n=r.get(e);if(n)return n}a=e!=null?yR(bR(e)):{};let l=t||!e||!e.__esModule||!Yv.call(e,"default")?xc(a,"default",{value:e,enumerable:!0}):a;if(e&&typeof e==="object"||typeof e==="function"){for(let s of LR(e))if(!Yv.call(l,s))xc(l,s,{get:SR.bind(e,s),enumerable:!0})}if(o)r.set(e,l);return l};var wR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var RR=(e)=>e;function DR(e,t){this[e]=RR.bind(null,t)}var vc=(e,t)=>{for(var a in t)xc(e,a,{get:t[a],enumerable:!0,configurable:!0,set:DR.bind(t,a)})};var kR=(e,t,a)=>()=>{if(e)try{t=e(e=0)}catch(o){a=[o]}if(a)throw a[0];return t};var Wv=(e,t,a)=>{for(var o in t)xc(e,o,{get:t[o],set:a[o],enumerable:!0,configurable:!0})};var se={};Wv(se,{Activity:()=>nC,Children:()=>yc,Component:()=>lC,Fragment:()=>ya,Profiler:()=>sC,PureComponent:()=>uC,StrictMode:()=>bc,Suspense:()=>iC,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>jl,__COMPILER_RUNTIME:()=>cC,cache:()=>fC,cacheSignal:()=>dC,cloneElement:()=>Yl,createContext:()=>Ue,createElement:()=>at,createRef:()=>Wl,forwardRef:()=>Ce,isValidElement:()=>Wo,lazy:()=>pC,memo:()=>Lu,startTransition:()=>mC,unstable_useCacheRefresh:()=>hC,use:()=>gC,useActionState:()=>xC,useCallback:()=>dt,useContext:()=>Be,useDebugValue:()=>Po,useDeferredValue:()=>vC,useEffect:()=>ce,useEffectEvent:()=>CC,useId:()=>Lc,useImperativeHandle:()=>Sc,useInsertionEffect:()=>yC,useLayoutEffect:()=>Pr,useMemo:()=>Le,useOptimistic:()=>bC,useReducer:()=>Ic,useRef:()=>z,useState:()=>J,useSyncExternalStore:()=>Fn,useTransition:()=>LC,version:()=>Kl},{Activity:(Az)=>nC=Az,Children:(Az)=>yc=Az,Component:(Az)=>lC=Az,Fragment:(Az)=>ya=Az,Profiler:(Az)=>sC=Az,PureComponent:(Az)=>uC=Az,StrictMode:(Az)=>bc=Az,Suspense:(Az)=>iC=Az,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(Az)=>jl=Az,__COMPILER_RUNTIME:(Az)=>cC=Az,cache:(Az)=>fC=Az,cacheSignal:(Az)=>dC=Az,cloneElement:(Az)=>Yl=Az,createContext:(Az)=>Ue=Az,createElement:(Az)=>at=Az,createRef:(Az)=>Wl=Az,forwardRef:(Az)=>Ce=Az,isValidElement:(Az)=>Wo=Az,lazy:(Az)=>pC=Az,memo:(Az)=>Lu=Az,startTransition:(Az)=>mC=Az,unstable_useCacheRefresh:(Az)=>hC=Az,use:(Az)=>gC=Az,useActionState:(Az)=>xC=Az,useCallback:(Az)=>dt=Az,useContext:(Az)=>Be=Az,useDebugValue:(Az)=>Po=Az,useDeferredValue:(Az)=>vC=Az,useEffect:(Az)=>ce=Az,useEffectEvent:(Az)=>CC=Az,useId:(Az)=>Lc=Az,useImperativeHandle:(Az)=>Sc=Az,useInsertionEffect:(Az)=>yC=Az,useLayoutEffect:(Az)=>Pr=Az,useMemo:(Az)=>Le=Az,useOptimistic:(Az)=>bC=Az,useReducer:(Az)=>Ic=Az,useRef:(Az)=>z=Az,useState:(Az)=>J=Az,useSyncExternalStore:(Az)=>Fn=Az,useTransition:(Az)=>LC=Az,version:(Az)=>Kl=Az});function HR(e){if(e===null||typeof e!=="object")return null;return e=Kv&&e[Kv]||e["@@iterator"],typeof e==="function"?e:null}function Xl(e,t,a){this.props=e,this.context=t,this.refs=aC,this.updater=a||eC}function oC(){}function Vp(e,t,a){this.props=e,this.context=t,this.refs=aC,this.updater=a||eC}function Hp(){}function Xp(e,t,a){var o=a.ref;return{$$typeof:_p,type:e,key:t,ref:o!==void 0?o:null,props:a}}function _R(e,t){return Xp(e.type,t,e.props)}function jp(e){return typeof e==="object"&&e!==null&&e.$$typeof===_p}function VR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}function qp(e,t){return typeof e==="object"&&e!==null&&e.key!=null?VR(""+e.key):t.toString(36)}function GR(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(Hp,Hp):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Gl(e,t,a,o,r){var n=typeof e;if(n==="undefined"||n==="boolean")e=null;var l=!1;if(e===null)l=!0;else switch(n){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case _p:case ER:l=!0;break;case $v:return l=e._init,Gl(l(e._payload),t,a,o,r)}}if(l)return r=r(e),l=o===""?"."+qp(e,0):o,Zv(r)?(a="",l!=null&&(a=l.replace(Qv,"$&/")+"/"),Gl(r,t,a,"",function(i){return i})):r!=null&&(jp(r)&&(r=_R(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Qv,"$&/")+"/")+l)),t.push(r)),1;l=0;var s=o===""?".":o+":";if(Zv(e))for(var u=0;u<e.length;u++)o=e[u],n=s+qp(o,u),l+=Gl(o,t,a,n,r);else if(u=HR(e),typeof u==="function")for(e=u.call(e),u=0;!(o=e.next()).done;)o=o.value,n=s+qp(o,u++),l+=Gl(o,t,a,n,r);else if(n==="object"){if(typeof e.then==="function")return Gl(GR(e),t,a,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function Cc(e,t,a){if(e==null)return e;var o=[],r=0;return Gl(e,o,"","",function(n){return t.call(a,n,r++)}),o}function XR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){if(e._status===0||e._status===-1)e._status=1,e._result=a},function(a){if(e._status===0||e._status===-1)e._status=2,e._result=a}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _p,ER,MR,OR,BR,PR,NR,zR,FR,UR,$v,qR,Kv,eC,tC,aC,Gp,Zv,Rt,rC,Qv,Jv,jR,nC,yc,lC,ya,sC,uC,bc,iC,jl,cC,fC=function(e){return function(){return e.apply(null,arguments)}},dC=function(){return null},Yl=function(e,t,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=tC({},e.props),r=e.key;if(t!=null)for(n in t.key!==void 0&&(r=""+t.key),t)!rC.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=a;else if(1<n){for(var l=Array(n),s=0;s<n;s++)l[s]=arguments[s+2];o.children=l}return Xp(e.type,r,o)},Ue=function(e){return e={$$typeof:NR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:PR,_context:e},e},at=function(e,t,a){var o,r={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)rC.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)r[o]===void 0&&(r[o]=l[o]);return Xp(e,n,r)},Wl=function(){return{current:null}},Ce=function(e){return{$$typeof:zR,render:e}},Wo,pC=function(e){return{$$typeof:$v,_payload:{_status:-1,_result:e},_init:XR}},Lu=function(e,t){return{$$typeof:UR,type:e,compare:t===void 0?null:t}},mC=function(e){var t=Rt.T,a={};Rt.T=a;try{var o=e(),r=Rt.S;r!==null&&r(a,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(Hp,Jv)}catch(n){Jv(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),Rt.T=t}},hC=function(){return Rt.H.useCacheRefresh()},gC=function(e){return Rt.H.use(e)},xC=function(e,t,a){return Rt.H.useActionState(e,t,a)},dt=function(e,t){return Rt.H.useCallback(e,t)},Be=function(e){return Rt.H.useContext(e)},Po=function(){},vC=function(e,t){return Rt.H.useDeferredValue(e,t)},ce=function(e,t){return Rt.H.useEffect(e,t)},CC=function(e){return Rt.H.useEffectEvent(e)},Lc=function(){return Rt.H.useId()},Sc=function(e,t,a){return Rt.H.useImperativeHandle(e,t,a)},yC=function(e,t){return Rt.H.useInsertionEffect(e,t)},Pr=function(e,t){return Rt.H.useLayoutEffect(e,t)},Le=function(e,t){return Rt.H.useMemo(e,t)},bC=function(e,t){return Rt.H.useOptimistic(e,t)},Ic=function(e,t,a){return Rt.H.useReducer(e,t,a)},z=function(e){return Rt.H.useRef(e)},J=function(e){return Rt.H.useState(e)},Fn=function(e,t,a){return Rt.H.useSyncExternalStore(e,t,a)},LC=function(){return Rt.H.useTransition()},Kl="19.2.8";var W=kR(()=>{_p=Symbol.for("react.transitional.element"),ER=Symbol.for("react.portal"),MR=Symbol.for("react.fragment"),OR=Symbol.for("react.strict_mode"),BR=Symbol.for("react.profiler"),PR=Symbol.for("react.consumer"),NR=Symbol.for("react.context"),zR=Symbol.for("react.forward_ref"),FR=Symbol.for("react.suspense"),UR=Symbol.for("react.memo"),$v=Symbol.for("react.lazy"),qR=Symbol.for("react.activity"),Kv=Symbol.iterator;eC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tC=Object.assign,aC={};Xl.prototype.isReactComponent={};Xl.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};oC.prototype=Xl.prototype;Gp=Vp.prototype=new oC;Gp.constructor=Vp;tC(Gp,Xl.prototype);Gp.isPureReactComponent=!0;Zv=Array.isArray;Rt={H:null,A:null,T:null,S:null},rC=Object.prototype.hasOwnProperty;Qv=/\\/+/g;Jv=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},jR={map:Cc,forEach:function(e,t,a){Cc(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Cc(e,function(){t++}),t},toArray:function(e){return Cc(e,function(t){return t})||[]},only:function(e){if(!jp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};nC=qR,yc=jR,lC=Xl,ya=MR,sC=BR,uC=Vp,bc=OR,iC=FR,jl=Rt,cC={__proto__:null,c:function(e){return Rt.H.useMemoCache(e)}},Wo=jp});var Og=wR(function(HE){W();function ME(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OE=typeof Object.is==="function"?Object.is:ME,BE=J,PE=ce,NE=Pr,zE=Po;function FE(e,t){var a=t(),o=BE({inst:{value:a,getSnapshot:t}}),r=o[0].inst,n=o[1];return NE(function(){r.value=a,r.getSnapshot=t,Mg(r)&&n({inst:r})},[e,a,t]),PE(function(){return Mg(r)&&n({inst:r}),e(function(){Mg(r)&&n({inst:r})})},[e]),zE(a),a}function Mg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!OE(e,a)}catch(o){return!0}}function UE(e,t){return t()}var qE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UE:FE;HE.useSyncExternalStore=Fn!==void 0?Fn:qE});W();function US(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(US)}catch(e){console.error(e)}}var Un={};Wv(Un,{unstable_now:()=>No,unstable_IdlePriority:()=>kc,unstable_ImmediatePriority:()=>Ec,unstable_LowPriority:()=>Mc,unstable_NormalPriority:()=>qn,unstable_Profiling:()=>DC,unstable_UserBlockingPriority:()=>Oc,unstable_cancelCallback:()=>Bc,unstable_forceFrameRate:()=>kC,unstable_getCurrentPriorityLevel:()=>Pc,unstable_next:()=>EC,unstable_requestPaint:()=>Nc,unstable_runWithPriority:()=>MC,unstable_scheduleCallback:()=>Hn,unstable_shouldYield:()=>zc,unstable_wrapCallback:()=>OC},{unstable_now:(Tz)=>No=Tz,unstable_IdlePriority:(Tz)=>kc=Tz,unstable_ImmediatePriority:(Tz)=>Ec=Tz,unstable_LowPriority:(Tz)=>Mc=Tz,unstable_NormalPriority:(Tz)=>qn=Tz,unstable_Profiling:(Tz)=>DC=Tz,unstable_UserBlockingPriority:(Tz)=>Oc=Tz,unstable_cancelCallback:(Tz)=>Bc=Tz,unstable_forceFrameRate:(Tz)=>kC=Tz,unstable_getCurrentPriorityLevel:(Tz)=>Pc=Tz,unstable_next:(Tz)=>EC=Tz,unstable_requestPaint:(Tz)=>Nc=Tz,unstable_runWithPriority:(Tz)=>MC=Tz,unstable_scheduleCallback:(Tz)=>Hn=Tz,unstable_shouldYield:(Tz)=>zc=Tz,unstable_wrapCallback:(Tz)=>OC=Tz});function Wp(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,r=e[o];if(0<Ac(r,t))e[o]=t,e[a]=r,a=o;else break e}}function Ko(e){return e.length===0?null:e[0]}function Dc(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,r=e.length,n=r>>>1;o<n;){var l=2*(o+1)-1,s=e[l],u=l+1,i=e[u];if(0>Ac(s,a))u<r&&0>Ac(i,s)?(e[o]=i,e[u]=a,o=u):(e[o]=s,e[l]=a,o=l);else if(u<r&&0>Ac(i,a))e[o]=i,e[u]=a,o=u;else break e}}return t}function Ac(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}var No=void 0;if(typeof performance==="object"&&typeof performance.now==="function")Kp=performance,No=function(){return Kp.now()};else Tc=Date,Zp=Tc.now(),No=function(){return Tc.now()-Zp};var Kp,Tc,Zp,sr=[],Nr=[],YR=1,po=null,Da=3,Qp=!1,Su=!1,Iu=!1,$p=!1,IC=typeof setTimeout==="function"?setTimeout:null,AC=typeof clearTimeout==="function"?clearTimeout:null,SC=typeof setImmediate<"u"?setImmediate:null;function wc(e){for(var t=Ko(Nr);t!==null;){if(t.callback===null)Dc(Nr);else if(t.startTime<=e)Dc(Nr),t.sortIndex=t.expirationTime,Wp(sr,t);else break;t=Ko(Nr)}}function em(e){if(Iu=!1,wc(e),!Su)if(Ko(sr)!==null)Su=!0,Ql||(Ql=!0,Zl());else{var t=Ko(Nr);t!==null&&tm(em,t.startTime-e)}}var Ql=!1,Au=-1,TC=5,wC=-1;function RC(){return $p?!0:Un.unstable_now()-wC<TC?!1:!0}function Yp(){if($p=!1,Ql){var e=Un.unstable_now();wC=e;var t=!0;try{e:{Su=!1,Iu&&(Iu=!1,AC(Au),Au=-1),Qp=!0;var a=Da;try{t:{wc(e);for(po=Ko(sr);po!==null&&!(po.expirationTime>e&&RC());){var o=po.callback;if(typeof o==="function"){po.callback=null,Da=po.priorityLevel;var r=o(po.expirationTime<=e);if(e=Un.unstable_now(),typeof r==="function"){po.callback=r,wc(e),t=!0;break t}po===Ko(sr)&&Dc(sr),wc(e)}else Dc(sr);po=Ko(sr)}if(po!==null)t=!0;else{var n=Ko(Nr);n!==null&&tm(em,n.startTime-e),t=!1}}break e}finally{po=null,Da=a,Qp=!1}t=void 0}}finally{t?Zl():Ql=!1}}}var Zl;if(typeof SC==="function")Zl=function(){SC(Yp)};else if(typeof MessageChannel<"u")Rc=new MessageChannel,Jp=Rc.port2,Rc.port1.onmessage=Yp,Zl=function(){Jp.postMessage(null)};else Zl=function(){IC(Yp,0)};var Rc,Jp;function tm(e,t){Au=IC(function(){e(Un.unstable_now())},t)}var kc=5,Ec=1,Mc=4,qn=3,DC=null,Oc=2,Bc=function(e){e.callback=null},kC=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):TC=0<e?Math.floor(1000/e):5},Pc=function(){return Da},EC=function(e){switch(Da){case 1:case 2:case 3:var t=3;break;default:t=Da}var a=Da;Da=t;try{return e()}finally{Da=a}},Nc=function(){$p=!0},MC=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Da;Da=e;try{return t()}finally{Da=a}},Hn=function(e,t,a){var o=Un.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?o+a:o):a=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5000}return r=a+r,e={id:YR++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>o?(e.sortIndex=a,Wp(Nr,e),Ko(sr)===null&&e===Ko(Nr)&&(Iu?(AC(Au),Au=-1):Iu=!0,tm(em,a-o))):(e.sortIndex=r,Wp(sr,e),Su||Qp||(Su=!0,Ql||(Ql=!0,Zl()))),e},zc=RC,OC=function(e){var t=Da;return function(){var a=Da;Da=t;try{return e.apply(this,arguments)}finally{Da=a}}};W();function PC(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(PC)}catch(e){console.error(e)}}W();function BC(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zr(){}var Tu={d:{f:zr,r:function(){throw Error(BC(522))},D:zr,C:zr,L:zr,m:zr,X:zr,S:zr,M:zr},p:0,findDOMNode:null},WR=Symbol.for("react.portal");function KR(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:WR,key:o==null?null:""+o,children:e,containerInfo:t,implementation:a}}var am=jl;var om=Tu,Fr=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(BC(299));return KR(e,t,null,a)},_n=function(e){var t=am.T,a=Tu.p;try{if(am.T=null,Tu.p=2,e)return e()}finally{am.T=t,Tu.p=a,Tu.d.f()}};var Jl=function(e,t){return e(t)};PC();function O(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ZR(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hi(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function nb(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function lb(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function NC(e){if(hi(e)!==e)throw Error(O(188))}function QR(e){var t=e.alternate;if(!t){if(t=hi(e),t===null)throw Error(O(188));return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return NC(r),e;if(n===o)return NC(r),t;n=n.sibling}throw Error(O(188))}if(a.return!==o.return)a=r,o=n;else{for(var l=!1,s=r.child;s;){if(s===a){l=!0,a=r,o=n;break}if(s===o){l=!0,o=r,a=n;break}s=s.sibling}if(!l){for(s=n.child;s;){if(s===a){l=!0,a=n,o=r;break}if(s===o){l=!0,o=n,a=r;break}s=s.sibling}if(!l)throw Error(O(189))}}if(a.alternate!==o)throw Error(O(190))}if(a.tag!==3)throw Error(O(188));return a.stateNode.current===a?e:t}function sb(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=sb(e),t!==null)return t;e=e.sibling}return null}var Et=Object.assign,JR=Symbol.for("react.element"),Fc=Symbol.for("react.transitional.element"),Ou=Symbol.for("react.portal"),ns=Symbol.for("react.fragment"),ub=Symbol.for("react.strict_mode"),Nm=Symbol.for("react.profiler"),ib=Symbol.for("react.consumer"),hr=Symbol.for("react.context"),Oh=Symbol.for("react.forward_ref"),zm=Symbol.for("react.suspense"),Fm=Symbol.for("react.suspense_list"),Bh=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),Um=Symbol.for("react.activity"),$R=Symbol.for("react.memo_cache_sentinel"),zC=Symbol.iterator;function wu(e){if(e===null||typeof e!=="object")return null;return e=zC&&e[zC]||e["@@iterator"],typeof e==="function"?e:null}var eD=Symbol.for("react.client.reference");function qm(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===eD?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case ns:return"Fragment";case Nm:return"Profiler";case ub:return"StrictMode";case zm:return"Suspense";case Fm:return"SuspenseList";case Um:return"Activity"}if(typeof e==="object")switch(e.$$typeof){case Ou:return"Portal";case hr:return e.displayName||"Context";case ib:return(e._context.displayName||"Context")+".Consumer";case Oh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bh:return t=e.displayName||null,t!==null?t:qm(e.type)||"Memo";case Ur:t=e._payload,e=e._init;try{return qm(e(t))}catch(a){}}return null}var Bu=Array.isArray,Ee=jl,it=om,Kn={pending:!1,data:null,method:null,action:null},Hm=[],ls=-1;function er(e){return{current:e}}function ha(e){0>ls||(e.current=Hm[ls],Hm[ls]=null,ls--)}function It(e,t){ls++,Hm[ls]=e.current,e.current=t}var $o=er(null),ti=er(null),Zr=er(null),hf=er(null);function gf(e,t){switch(It(Zr,t),It(ti,e),It($o,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)?(e=e.namespaceURI)?_y(e):0:0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_y(t),e=RS(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ha($o),It($o,e)}function Is(){ha($o),ha(ti),ha(Zr)}function _m(e){e.memoizedState!==null&&It(hf,e);var t=$o.current,a=RS(t,e.type);t!==a&&(It(ti,e),It($o,a))}function xf(e){ti.current===e&&(ha($o),ha(ti)),hf.current===e&&(ha(hf),di._currentValue=Kn)}var rm,FC;function Gn(e){if(rm===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\\n( *(at )?)/);rm=t&&t[1]||"",FC=-1<a.stack.indexOf(`\n at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`\n`+rm+e+FC}var nm=!1;function lm(e,t){if(!e||nm)return"";nm=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch==="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack==="string")return[p.stack,f.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),l=n[0],s=n[1];if(l&&s){var u=l.split(`\n`),i=s.split(`\n`);for(r=o=0;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;for(;r<i.length&&!i[r].includes("DetermineComponentFrameRoot");)r++;if(o===u.length||r===i.length)for(o=u.length-1,r=i.length-1;1<=o&&0<=r&&u[o]!==i[r];)r--;for(;1<=o&&0<=r;o--,r--)if(u[o]!==i[r]){if(o!==1||r!==1)do if(o--,r--,0>r||u[o]!==i[r]){var c=`\n`+u[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=r);break}}}finally{nm=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Gn(a):""}function tD(e,t){switch(e.tag){case 26:case 27:case 5:return Gn(e.type);case 16:return Gn("Lazy");case 13:return e.child!==t&&t!==null?Gn("Suspense Fallback"):Gn("Suspense");case 19:return Gn("SuspenseList");case 0:case 15:return lm(e.type,!1);case 11:return lm(e.type.render,!1);case 1:return lm(e.type,!0);case 31:return Gn("Activity");default:return""}}function UC(e){try{var t="",a=null;do t+=tD(e,a),a=e,e=e.return;while(e);return t}catch(o){return`\nError generating stack: `+o.message+`\n`+o.stack}}var Vm=Object.prototype.hasOwnProperty,Ph=Hn,sm=Bc,aD=zc,oD=Nc,to=No,rD=Pc,cb=Ec,fb=Oc,vf=qn,nD=Mc,db=kc,lD=void 0,sD=void 0,gi=null,ao=null;function Xr(e){if(typeof lD==="function"&&sD(e),ao&&typeof ao.setStrictMode==="function")try{ao.setStrictMode(gi,e)}catch(t){}}var oo=Math.clz32?Math.clz32:cD,{log:uD,LN2:iD}=Math;function cD(e){return e>>>=0,e===0?32:31-(uD(e)/iD|0)|0}var Uc=256,qc=262144,Hc=4194304;function Xn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gf(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~n,o!==0?r=Xn(o):(l&=s,l!==0?r=Xn(l):a||(a=s&~e,a!==0&&(r=Xn(a))))):(s=o&~n,s!==0?r=Xn(s):l!==0?r=Xn(l):a||(a=o&~e,a!==0&&(r=Xn(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fD(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pb(){var e=Hc;return Hc<<=1,(Hc&62914560)===0&&(Hc=4194304),e}function um(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xf(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dD(e,t,a,o,r,n){var l=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:s,expirationTimes:u,hiddenUpdates:i}=e;for(a=l&~a;0<a;){var c=31-oo(a),d=1<<c;s[c]=0,u[c]=-1;var f=i[c];if(f!==null)for(i[c]=null,c=0;c<f.length;c++){var p=f[c];p!==null&&(p.lane&=-536870913)}a&=~d}o!==0&&mb(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(l&~t))}function mb(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-oo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function hb(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-oo(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function gb(e,t){var a=t&-t;return a=(a&42)!==0?1:xb(a),(a&(e.suspendedLanes|t))!==0?0:a}function xb(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Nh(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vb(){var e=it.p;if(e!==0)return e;return e=window.event,e===void 0?32:zS(e.type)}function qC(e,t){var a=it.p;try{return it.p=e,t()}finally{it.p=a}}var sn=Math.random().toString(36).slice(2),La="__reactFiber$"+sn,Ya="__reactProps$"+sn,vi="__reactContainer$"+sn,Gm="__reactEvents$"+sn,pD="__reactListeners$"+sn,mD="__reactHandles$"+sn,HC="__reactResources$"+sn,Ci="__reactMarker$"+sn;function zh(e){delete e[La],delete e[Ya],delete e[Gm],delete e[pD],delete e[mD]}function ss(e){var t=e[La];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vi]||a[La]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Yy(e);e!==null;){if(a=e[La])return a;e=Yy(e)}return t}e=a,a=e.parentNode}return null}function Ps(e){if(e=e[La]||e[vi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(O(33))}function xs(e){var t=e[HC];return t||(t=e[HC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ma(e){e[Ci]=!0}var Cb=new Set,yb={};function sl(e,t){As(e,t),As(e+"Capture",t)}function As(e,t){yb[e]=t;for(e=0;e<t.length;e++)Cb.add(t[e])}var hD=RegExp("^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$"),_C={},VC={};function gD(e){if(Vm.call(VC,e))return!0;if(Vm.call(_C,e))return!1;if(hD.test(e))return VC[e]=!0;return _C[e]=!0,!1}function Jc(e,t,a){if(gD(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function _c(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ur(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}function ho(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xD(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:r,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){a=""+l,n.call(this,l)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xm(e){if(!e._valueTracker){var t=bb(e)?"checked":"value";e._valueTracker=xD(e,t,""+e[t])}}function Lb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=bb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Cf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var vD=/[\\n"\\\\]/g;function vo(e){return e.replace(vD,function(t){return"\\\\"+t.charCodeAt(0).toString(16)+" "})}function jm(e,t,a,o,r,n,l,s){if(e.name="",l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"?e.type=l:e.removeAttribute("type"),t!=null)if(l==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+ho(t)}else e.value!==""+ho(t)&&(e.value=""+ho(t));else l!=="submit"&&l!=="reset"||e.removeAttribute("value");t!=null?Ym(e,l,ho(t)):a!=null?Ym(e,l,ho(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!=="function"&&typeof r!=="symbol"),s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?e.name=""+ho(s):e.removeAttribute("name")}function Sb(e,t,a,o,r,n,l,s){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){Xm(e);return}a=a!=null?""+ho(a):"",t=t!=null?""+ho(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:r,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"&&(e.name=l),Xm(e)}function Ym(e,t,a){t==="number"&&Cf(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function vs(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{a=""+ho(a),t=null;for(r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Ib(e,t,a){if(t!=null&&(t=""+ho(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ho(a):""}function Ab(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(O(92));if(Bu(o)){if(1<o.length)throw Error(O(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=ho(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Xm(e)}function Ts(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var CD=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function GC(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||CD.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Tb(e,t,a){if(t!=null&&typeof t!=="object")throw Error(O(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var r in t)o=t[r],t.hasOwnProperty(r)&&a[r]!==o&&GC(e,r,o)}else for(var n in t)t.hasOwnProperty(n)&&GC(e,n,t[n])}function Fh(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yD=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bD=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;function $c(e){return bD.test(""+e)?"javascript:throw new Error(\'React has blocked a javascript: URL as a security precaution.\')":e}function gr(){}var Wm=null;function Uh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var us=null,Cs=null;function XC(e){var t=Ps(e);if(t&&(e=t.stateNode)){var a=e[Ya]||null;e:switch(e=t.stateNode,t.type){case"input":if(jm(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll(\'input[name="\'+vo(""+t)+\'"][type="radio"]\');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[Ya]||null;if(!r)throw Error(O(90));jm(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Lb(o)}break e;case"textarea":Ib(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&vs(e,!!a.multiple,t,!1)}}}var im=!1;function wb(e,t,a){if(im)return e(t,a);im=!0;try{var o=e(t);return o}finally{if(im=!1,us!==null||Cs!==null){if(od(),us&&(t=us,e=Cs,Cs=us=null,XC(t),e))for(t=0;t<e.length;t++)XC(e[t])}}}function ai(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Ya]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(O(231,t,typeof a));return a}var br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Km=!1;if(br)try{jn={},Object.defineProperty(jn,"passive",{get:function(){Km=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch(e){Km=!1}var jn,jr=null,qh=null,ef=null;function Rb(){if(ef)return ef;var e,t=qh,a=t.length,o,r="value"in jr?jr.value:jr.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var l=a-e;for(o=1;o<=l&&t[a-o]===r[n-o];o++);return ef=r.slice(e,1<o?1-o:void 0)}function tf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vc(){return!0}function jC(){return!1}function Wa(e){function t(a,o,r,n,l){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(n):n[s]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Vc:jC,this.isPropagationStopped=jC,this}return Et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),t}var ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jf=Wa(ul),yi=Et({},ul,{view:0,detail:0}),LD=Wa(yi),cm,fm,Ru,Yf=Et({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==Ru&&(Ru&&e.type==="mousemove"?(cm=e.screenX-Ru.screenX,fm=e.screenY-Ru.screenY):fm=cm=0,Ru=e),cm},movementY:function(e){return"movementY"in e?e.movementY:fm}}),YC=Wa(Yf),SD=Et({},Yf,{dataTransfer:0}),ID=Wa(SD),AD=Et({},yi,{relatedTarget:0}),dm=Wa(AD),TD=Et({},ul,{animationName:0,elapsedTime:0,pseudoElement:0}),wD=Wa(TD),RD=Et({},ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DD=Wa(RD),kD=Et({},ul,{data:0}),WC=Wa(kD),ED={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MD={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},OD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=OD[e])?!!t[e]:!1}function Hh(){return BD}var PD=Et({},yi,{key:function(e){if(e.key){var t=ED[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?MD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hh,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ND=Wa(PD),zD=Et({},Yf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),KC=Wa(zD),FD=Et({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hh}),UD=Wa(FD),qD=Et({},ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),HD=Wa(qD),_D=Et({},Yf,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),VD=Wa(_D),GD=Et({},ul,{newState:0,oldState:0}),XD=Wa(GD),jD=[9,13,27,32],_h=br&&"CompositionEvent"in window,_u=null;br&&"documentMode"in document&&(_u=document.documentMode);var YD=br&&"TextEvent"in window&&!_u,Db=br&&(!_h||_u&&8<_u&&11>=_u),ZC=String.fromCharCode(32),QC=!1;function kb(e,t){switch(e){case"keyup":return jD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eb(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}var is=!1;function WD(e,t){switch(e){case"compositionend":return Eb(t);case"keypress":if(t.which!==32)return null;return QC=!0,ZC;case"textInput":return e=t.data,e===ZC&&QC?null:e;default:return null}}function KD(e,t){if(is)return e==="compositionend"||!_h&&kb(e,t)?(e=Rb(),ef=qh=jr=null,is=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Db&&t.locale!=="ko"?null:t.data;default:return null}}var ZD={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function JC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ZD[e.type]:t==="textarea"?!0:!1}function Mb(e,t,a,o){us?Cs?Cs.push(o):Cs=[o]:us=o,t=zf(t,"onChange"),0<t.length&&(a=new jf("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Vu=null,oi=null;function QD(e){IS(e,0)}function Wf(e){var t=Pu(e);if(Lb(t))return e}function $C(e,t){if(e==="change")return t}var Ob=!1;if(br){if(br){if(zu="oninput"in document,!zu)af=document.createElement("div"),af.setAttribute("oninput","return;"),zu=typeof af.oninput==="function";Nu=zu}else Nu=!1;Ob=Nu&&(!document.documentMode||9<document.documentMode)}var Nu,zu,af;function ey(){Vu&&(Vu.detachEvent("onpropertychange",Bb),oi=Vu=null)}function Bb(e){if(e.propertyName==="value"&&Wf(oi)){var t=[];Mb(t,oi,e,Uh(e)),wb(QD,t)}}function JD(e,t,a){e==="focusin"?(ey(),Vu=t,oi=a,Vu.attachEvent("onpropertychange",Bb)):e==="focusout"&&ey()}function $D(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wf(oi)}function ek(e,t){if(e==="click")return Wf(t)}function tk(e,t){if(e==="input"||e==="change")return Wf(t)}function ak(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ro=typeof Object.is==="function"?Object.is:ak;function ri(e,t){if(ro(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!Vm.call(t,r)||!ro(e[r],t[r]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ay(e,t){var a=ty(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ty(a)}}function Pb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pb(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Cf(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Cf(e.document)}return t}function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ok=br&&"documentMode"in document&&11>=document.documentMode,cs=null,Zm=null,Gu=null,Qm=!1;function oy(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Qm||cs==null||cs!==Cf(o)||(o=cs,("selectionStart"in o)&&Vh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Gu&&ri(Gu,o)||(Gu=o,o=zf(Zm,"onSelect"),0<o.length&&(t=new jf("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=cs)))}function Vn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fs={animationend:Vn("Animation","AnimationEnd"),animationiteration:Vn("Animation","AnimationIteration"),animationstart:Vn("Animation","AnimationStart"),transitionrun:Vn("Transition","TransitionRun"),transitionstart:Vn("Transition","TransitionStart"),transitioncancel:Vn("Transition","TransitionCancel"),transitionend:Vn("Transition","TransitionEnd")},pm={},zb={};br&&(zb=document.createElement("div").style,("AnimationEvent"in window)||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),("TransitionEvent"in window)||delete fs.transitionend.transition);function il(e){if(pm[e])return pm[e];if(!fs[e])return e;var t=fs[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in zb)return pm[e]=t[a];return e}var Fb=il("animationend"),Ub=il("animationiteration"),qb=il("animationstart"),rk=il("transitionrun"),nk=il("transitionstart"),lk=il("transitioncancel"),Hb=il("transitionend"),_b=new Map,Jm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jm.push("scrollEnd");function Uo(e,t){_b.set(e,t),sl(t,[e])}var yf=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},mo=[],ds=0,Gh=0;function Kf(){for(var e=ds,t=Gh=ds=0;t<e;){var a=mo[t];mo[t++]=null;var o=mo[t];mo[t++]=null;var r=mo[t];mo[t++]=null;var n=mo[t];if(mo[t++]=null,o!==null&&r!==null){var l=o.pending;l===null?r.next=r:(r.next=l.next,l.next=r),o.pending=r}n!==0&&Vb(a,r,n)}}function Zf(e,t,a,o){mo[ds++]=e,mo[ds++]=t,mo[ds++]=a,mo[ds++]=o,Gh|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Xh(e,t,a,o){return Zf(e,t,a,o),bf(e)}function cl(e,t){return Zf(e,null,null,t),bf(e)}function Vb(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-oo(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function bf(e){if(50<$u)throw $u=0,Ch=null,Error(O(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ps={};function sk(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $a(e,t,a,o){return new sk(e,t,a,o)}function jh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vr(e,t){var a=e.alternate;return a===null?(a=$a(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Gb(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function of(e,t,a,o,r,n){var l=0;if(o=e,typeof e==="function")jh(e)&&(l=1);else if(typeof e==="string")l=pE(e,a,$o.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Um:return e=$a(31,a,t,r),e.elementType=Um,e.lanes=n,e;case ns:return Zn(a.children,r,n,t);case ub:l=8,r|=24;break;case Nm:return e=$a(12,a,t,r|2),e.elementType=Nm,e.lanes=n,e;case zm:return e=$a(13,a,t,r),e.elementType=zm,e.lanes=n,e;case Fm:return e=$a(19,a,t,r),e.elementType=Fm,e.lanes=n,e;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case hr:l=10;break e;case ib:l=9;break e;case Oh:l=11;break e;case Bh:l=14;break e;case Ur:l=16,o=null;break e}l=29,a=Error(O(130,e===null?"null":typeof e,"")),o=null}return t=$a(l,a,t,r),t.elementType=e,t.type=o,t.lanes=n,t}function Zn(e,t,a,o){return e=$a(7,e,o,t),e.lanes=a,e}function mm(e,t,a){return e=$a(6,e,null,t),e.lanes=a,e}function Xb(e){var t=$a(18,null,null,0);return t.stateNode=e,t}function hm(e,t,a){return t=$a(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ry=new WeakMap;function Co(e,t){if(typeof e==="object"&&e!==null){var a=ry.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:UC(t)},ry.set(e,t),t}return{value:e,source:t,stack:UC(t)}}var ms=[],hs=0,Lf=null,ni=0,go=[],xo=0,on=null,Zo=1,Qo="";function pr(e,t){ms[hs++]=ni,ms[hs++]=Lf,Lf=e,ni=t}function jb(e,t,a){go[xo++]=Zo,go[xo++]=Qo,go[xo++]=on,on=e;var o=Zo;e=Qo;var r=32-oo(o)-1;o&=~(1<<r),a+=1;var n=32-oo(t)+r;if(30<n){var l=r-r%5;n=(o&(1<<l)-1).toString(32),o>>=l,r-=l,Zo=1<<32-oo(t)+r|a<<r|o,Qo=n+e}else Zo=1<<n|a<<r|o,Qo=e}function Yh(e){e.return!==null&&(pr(e,1),jb(e,1,0))}function Wh(e){for(;e===Lf;)Lf=ms[--hs],ms[hs]=null,ni=ms[--hs],ms[hs]=null;for(;e===on;)on=go[--xo],go[xo]=null,Qo=go[--xo],go[xo]=null,Zo=go[--xo],go[xo]=null}function Yb(e,t){go[xo++]=Zo,go[xo++]=Qo,go[xo++]=on,Zo=t.id,Qo=t.overflow,on=e}var Sa=null,kt=null,$e=!1,Qr=null,yo=!1,$m=Error(O(519));function rn(e){var t=Error(O(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw li(Co(t,e)),$m}function ny(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[La]=e,t[Ya]=o,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<ci.length;a++)je(ci[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Sb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Ab(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||wS(t.textContent,a)?(o.popover!=null&&(je("beforetoggle",t),je("toggle",t)),o.onScroll!=null&&je("scroll",t),o.onScrollEnd!=null&&je("scrollend",t),o.onClick!=null&&(t.onclick=gr),t=!0):t=!1,t||rn(e,!0)}function ly(e){for(Sa=e.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:yo=!1;return;case 27:case 3:yo=!0;return;default:Sa=Sa.return}}function es(e){if(e!==Sa)return!1;if(!$e)return ly(e),$e=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Th(e.type,e.memoizedProps);a=!a}if(a&&kt&&rn(e),ly(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));kt=jy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));kt=jy(e)}else t===27?(t=kt,un(e.type)?(e=kh,kh=null,kt=e):kt=t):kt=Sa?So(e.stateNode.nextSibling):null;return!0}function al(){kt=Sa=null,$e=!1}function gm(){var e=Qr;return e!==null&&(Xa===null?Xa=e:Xa.push.apply(Xa,e),Qr=null),e}function li(e){Qr===null?Qr=[e]:Qr.push(e)}var eh=er(null),fl=null,xr=null;function Hr(e,t,a){It(eh,t._currentValue),t._currentValue=a}function Cr(e){e._currentValue=eh.current,ha(eh)}function th(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function ah(e,t,a,o){var r=e.child;r!==null&&(r.return=e);for(;r!==null;){var n=r.dependencies;if(n!==null){var l=r.child;n=n.firstContext;e:for(;n!==null;){var s=n;n=r;for(var u=0;u<t.length;u++)if(s.context===t[u]){n.lanes|=a,s=n.alternate,s!==null&&(s.lanes|=a),th(n.return,a,e),o||(l=null);break e}n=s.next}}else if(r.tag===18){if(l=r.return,l===null)throw Error(O(341));l.lanes|=a,n=l.alternate,n!==null&&(n.lanes|=a),th(l,a,e),l=null}else l=r.child;if(l!==null)l.return=r;else for(l=r;l!==null;){if(l===e){l=null;break}if(r=l.sibling,r!==null){r.return=l.return,l=r;break}l=l.return}r=l}}function Ns(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var l=r.alternate;if(l===null)throw Error(O(387));if(l=l.memoizedProps,l!==null){var s=r.type;ro(r.pendingProps.value,l.value)||(e!==null?e.push(s):e=[s])}}else if(r===hf.current){if(l=r.alternate,l===null)throw Error(O(387));l.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(di):e=[di])}r=r.return}e!==null&&ah(t,e,a,o),t.flags|=262144}function Sf(e){for(e=e.firstContext;e!==null;){if(!ro(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){fl=e,xr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ia(e){return Wb(fl,e)}function Gc(e,t){return fl===null&&ol(e),Wb(e,t)}function Wb(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xr===null){if(e===null)throw Error(O(308));xr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xr=xr.next=t;return a}var uk=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},ik=Hn,ck=qn,oa={$$typeof:hr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kh(){return{controller:new uk,data:new Map,refCount:0}}function bi(e){e.refCount--,e.refCount===0&&ik(ck,function(){e.controller.abort()})}var Xu=null,oh=0,ws=0,ys=null;function fk(e,t){if(Xu===null){var a=Xu=[];oh=0,ws=yg(),ys={status:"pending",value:void 0,then:function(o){a.push(o)}}}return oh++,t.then(sy,sy),t}function sy(){if(--oh===0&&Xu!==null){ys!==null&&(ys.status="fulfilled");var e=Xu;Xu=null,ws=0,ys=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dk(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){o.status="rejected",o.reason=r;for(r=0;r<a.length;r++)(0,a[r])(void 0)}),o}var uy=Ee.S;Ee.S=function(e,t){nS=to(),typeof t==="object"&&t!==null&&typeof t.then==="function"&&fk(e,t),uy!==null&&uy(e,t)};var Qn=er(null);function Zh(){var e=Qn.current;return e!==null?e:Lt.pooledCache}function rf(e,t){t===null?It(Qn,Qn.current):It(Qn,t.pool)}function Kb(){var e=Zh();return e===null?null:{parent:oa._currentValue,pool:e}}var zs=Error(O(460)),Qh=Error(O(474)),Qf=Error(O(542)),If={then:function(){}};function iy(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zb(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(gr,gr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fy(e),e;default:if(typeof t.status==="string")t.then(gr,gr);else{if(e=Lt,e!==null&&100<e.shellSuspendCounter)throw Error(O(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fy(e),e}throw Jn=t,zs}}function Yn(e){try{var t=e._init;return t(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw Jn=a,zs;throw a}}var Jn=null;function cy(){if(Jn===null)throw Error(O(459));var e=Jn;return Jn=null,e}function fy(e){if(e===zs||e===Qf)throw Error(O(483))}var bs=null,si=0;function Xc(e){var t=si;return si+=1,bs===null&&(bs=[]),Zb(bs,e,t)}function Du(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function jc(e,t){if(t.$$typeof===JR)throw Error(O(525));throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qb(e){function t(m,h){if(e){var x=m.deletions;x===null?(m.deletions=[h],m.flags|=16):x.push(h)}}function a(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function o(m){for(var h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function r(m,h){return m=vr(m,h),m.index=0,m.sibling=null,m}function n(m,h,x){if(m.index=x,!e)return m.flags|=1048576,h;if(x=m.alternate,x!==null)return x=x.index,x<h?(m.flags|=67108866,h):x;return m.flags|=67108866,h}function l(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,h,x,C){if(h===null||h.tag!==6)return h=mm(x,m.mode,C),h.return=m,h;return h=r(h,x),h.return=m,h}function u(m,h,x,C){var I=x.type;if(I===ns)return c(m,h,x.props.children,C,x.key);if(h!==null&&(h.elementType===I||typeof I==="object"&&I!==null&&I.$$typeof===Ur&&Yn(I)===h.type))return h=r(h,x.props),Du(h,x),h.return=m,h;return h=of(x.type,x.key,x.props,null,m.mode,C),Du(h,x),h.return=m,h}function i(m,h,x,C){if(h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation)return h=hm(x,m.mode,C),h.return=m,h;return h=r(h,x.children||[]),h.return=m,h}function c(m,h,x,C,I){if(h===null||h.tag!==7)return h=Zn(x,m.mode,C,I),h.return=m,h;return h=r(h,x),h.return=m,h}function d(m,h,x){if(typeof h==="string"&&h!==""||typeof h==="number"||typeof h==="bigint")return h=mm(""+h,m.mode,x),h.return=m,h;if(typeof h==="object"&&h!==null){switch(h.$$typeof){case Fc:return x=of(h.type,h.key,h.props,null,m.mode,x),Du(x,h),x.return=m,x;case Ou:return h=hm(h,m.mode,x),h.return=m,h;case Ur:return h=Yn(h),d(m,h,x)}if(Bu(h)||wu(h))return h=Zn(h,m.mode,x,null),h.return=m,h;if(typeof h.then==="function")return d(m,Xc(h),x);if(h.$$typeof===hr)return d(m,Gc(m,h),x);jc(m,h)}return null}function f(m,h,x,C){var I=h!==null?h.key:null;if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return I!==null?null:s(m,h,""+x,C);if(typeof x==="object"&&x!==null){switch(x.$$typeof){case Fc:return x.key===I?u(m,h,x,C):null;case Ou:return x.key===I?i(m,h,x,C):null;case Ur:return x=Yn(x),f(m,h,x,C)}if(Bu(x)||wu(x))return I!==null?null:c(m,h,x,C,null);if(typeof x.then==="function")return f(m,h,Xc(x),C);if(x.$$typeof===hr)return f(m,h,Gc(m,x),C);jc(m,x)}return null}function p(m,h,x,C,I){if(typeof C==="string"&&C!==""||typeof C==="number"||typeof C==="bigint")return m=m.get(x)||null,s(h,m,""+C,I);if(typeof C==="object"&&C!==null){switch(C.$$typeof){case Fc:return m=m.get(C.key===null?x:C.key)||null,u(h,m,C,I);case Ou:return m=m.get(C.key===null?x:C.key)||null,i(h,m,C,I);case Ur:return C=Yn(C),p(m,h,x,C,I)}if(Bu(C)||wu(C))return m=m.get(x)||null,c(h,m,C,I,null);if(typeof C.then==="function")return p(m,h,x,Xc(C),I);if(C.$$typeof===hr)return p(m,h,x,Gc(h,C),I);jc(h,C)}return null}function g(m,h,x,C){for(var I=null,b=null,S=h,y=h=0,T=null;S!==null&&y<x.length;y++){S.index>y?(T=S,S=null):T=S.sibling;var w=f(m,S,x[y],C);if(w===null){S===null&&(S=T);break}e&&S&&w.alternate===null&&t(m,S),h=n(w,h,y),b===null?I=w:b.sibling=w,b=w,S=T}if(y===x.length)return a(m,S),$e&&pr(m,y),I;if(S===null){for(;y<x.length;y++)S=d(m,x[y],C),S!==null&&(h=n(S,h,y),b===null?I=S:b.sibling=S,b=S);return $e&&pr(m,y),I}for(S=o(S);y<x.length;y++)T=p(S,m,y,x[y],C),T!==null&&(e&&T.alternate!==null&&S.delete(T.key===null?y:T.key),h=n(T,h,y),b===null?I=T:b.sibling=T,b=T);return e&&S.forEach(function(D){return t(m,D)}),$e&&pr(m,y),I}function v(m,h,x,C){if(x==null)throw Error(O(151));for(var I=null,b=null,S=h,y=h=0,T=null,w=x.next();S!==null&&!w.done;y++,w=x.next()){S.index>y?(T=S,S=null):T=S.sibling;var D=f(m,S,w.value,C);if(D===null){S===null&&(S=T);break}e&&S&&D.alternate===null&&t(m,S),h=n(D,h,y),b===null?I=D:b.sibling=D,b=D,S=T}if(w.done)return a(m,S),$e&&pr(m,y),I;if(S===null){for(;!w.done;y++,w=x.next())w=d(m,w.value,C),w!==null&&(h=n(w,h,y),b===null?I=w:b.sibling=w,b=w);return $e&&pr(m,y),I}for(S=o(S);!w.done;y++,w=x.next())w=p(S,m,y,w.value,C),w!==null&&(e&&w.alternate!==null&&S.delete(w.key===null?y:w.key),h=n(w,h,y),b===null?I=w:b.sibling=w,b=w);return e&&S.forEach(function(M){return t(m,M)}),$e&&pr(m,y),I}function L(m,h,x,C){if(typeof x==="object"&&x!==null&&x.type===ns&&x.key===null&&(x=x.props.children),typeof x==="object"&&x!==null){switch(x.$$typeof){case Fc:e:{for(var I=x.key;h!==null;){if(h.key===I){if(I=x.type,I===ns){if(h.tag===7){a(m,h.sibling),C=r(h,x.props.children),C.return=m,m=C;break e}}else if(h.elementType===I||typeof I==="object"&&I!==null&&I.$$typeof===Ur&&Yn(I)===h.type){a(m,h.sibling),C=r(h,x.props),Du(C,x),C.return=m,m=C;break e}a(m,h);break}else t(m,h);h=h.sibling}x.type===ns?(C=Zn(x.props.children,m.mode,C,x.key),C.return=m,m=C):(C=of(x.type,x.key,x.props,null,m.mode,C),Du(C,x),C.return=m,m=C)}return l(m);case Ou:e:{for(I=x.key;h!==null;){if(h.key===I)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(m,h.sibling),C=r(h,x.children||[]),C.return=m,m=C;break e}else{a(m,h);break}else t(m,h);h=h.sibling}C=hm(x,m.mode,C),C.return=m,m=C}return l(m);case Ur:return x=Yn(x),L(m,h,x,C)}if(Bu(x))return g(m,h,x,C);if(wu(x)){if(I=wu(x),typeof I!=="function")throw Error(O(150));return x=I.call(x),v(m,h,x,C)}if(typeof x.then==="function")return L(m,h,Xc(x),C);if(x.$$typeof===hr)return L(m,h,Gc(m,x),C);jc(m,x)}return typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint"?(x=""+x,h!==null&&h.tag===6?(a(m,h.sibling),C=r(h,x),C.return=m,m=C):(a(m,h),C=mm(x,m.mode,C),C.return=m,m=C),l(m)):a(m,h)}return function(m,h,x,C){try{si=0;var I=L(m,h,x,C);return bs=null,I}catch(S){if(S===zs||S===Qf)throw S;var b=$a(29,S,null,m.mode);return b.lanes=C,b.return=m,b}finally{}}}var rl=Qb(!0),Jb=Qb(!1),qr=!1;function Jh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function el(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ut&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=bf(e),Vb(e,null,a),t}return Zf(e,o,t,a),bf(e)}function ju(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,hb(e,a)}}function xm(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var l={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=l:n=n.next=l,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var nh=!1;function Yu(){if(nh){var e=ys;if(e!==null)throw e}}function Wu(e,t,a,o){nh=!1;var r=e.updateQueue;qr=!1;var{firstBaseUpdate:n,lastBaseUpdate:l}=r,s=r.shared.pending;if(s!==null){r.shared.pending=null;var u=s,i=u.next;u.next=null,l===null?n=i:l.next=i,l=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=i:s.next=i,c.lastBaseUpdate=u))}if(n!==null){var d=r.baseState;l=0,c=i=u=null,s=n;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Ze&f)===f:(o&f)===f){f!==0&&f===ws&&(nh=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,v=s;f=t;var L=a;switch(v.tag){case 1:if(g=v.payload,typeof g==="function"){d=g.call(L,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g==="function"?g.call(L,d,f):g,f===null||f===void 0)break e;d=Et({},d,f);break e;case 2:qr=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=r.callbacks,p===null?r.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(i=c=p,u=d):c=c.next=p,l|=f;if(s=s.next,s===null)if(s=r.shared.pending,s===null)break;else p=s,s=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}while(1);c===null&&(u=d),r.baseState=u,r.firstBaseUpdate=i,r.lastBaseUpdate=c,n===null&&(r.shared.lanes=0),ln|=l,e.lanes=l,e.memoizedState=d}}function $b(e,t){if(typeof e!=="function")throw Error(O(191,e));e.call(t)}function eL(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)$b(a[e],t)}var Rs=er(null),Af=er(0);function dy(e,t){e=Ar,It(Af,e),It(Rs,t),Ar=e|t.baseLanes}function lh(){It(Af,Ar),It(Rs,Rs.current)}function $h(){Ar=Af.current,ha(Rs),ha(Af)}var no=er(null),bo=null;function _r(e){var t=e.alternate;It(Zt,Zt.current&1),It(no,e),bo===null&&(t===null||Rs.current!==null?bo=e:t.memoizedState!==null&&(bo=e))}function sh(e){It(Zt,Zt.current),It(no,e),bo===null&&(bo=e)}function tL(e){e.tag===22?(It(Zt,Zt.current),It(no,e),bo===null&&(bo=e)):Vr(e)}function Vr(){It(Zt,Zt.current),It(no,no.current)}function Ja(e){ha(no),bo===e&&(bo=null),ha(Zt)}var Zt=er(0);function Tf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rh(a)||Dh(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lr=0,Ne=null,yt=null,ta=null,wf=!1,Ls=!1,nl=!1,Rf=0,ui=0,Ss=null,pk=0;function Gt(){throw Error(O(321))}function eg(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ro(e[a],t[a]))return!1;return!0}function tg(e,t,a,o,r,n){return Lr=n,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ee.H=e===null||e.memoizedState===null?ML:dg,nl=!1,n=a(o,r),nl=!1,Ls&&(n=oL(t,a,o,r)),aL(e),n}function aL(e){Ee.H=ii;var t=yt!==null&&yt.next!==null;if(Lr=0,ta=yt=Ne=null,wf=!1,ui=0,Ss=null,t)throw Error(O(300));e===null||ra||(e=e.dependencies,e!==null&&Sf(e)&&(ra=!0))}function oL(e,t,a,o){Ne=e;var r=0;do{if(Ls&&(Ss=null),ui=0,Ls=!1,25<=r)throw Error(O(301));if(r+=1,ta=yt=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Ee.H=OL,n=t(a,o)}while(Ls);return n}function mk(){var e=Ee.H,t=e.useState()[0];return t=typeof t.then==="function"?Li(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Ne.flags|=1024),t}function ag(){var e=Rf!==0;return Rf=0,e}function og(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function rg(e){if(wf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wf=!1}Lr=0,ta=yt=Ne=null,Ls=!1,ui=Rf=0,Ss=null}function Fa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ta===null?Ne.memoizedState=ta=e:ta=ta.next=e,ta}function Qt(){if(yt===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=ta===null?Ne.memoizedState:ta.next;if(t!==null)ta=t,yt=e;else{if(e===null){if(Ne.alternate===null)throw Error(O(467));throw Error(O(310))}yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},ta===null?Ne.memoizedState=ta=e:ta=ta.next=e}return ta}function Jf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Li(e){var t=ui;return ui+=1,Ss===null&&(Ss=[]),e=Zb(Ss,e,t),t=Ne,(ta===null?t.memoizedState:ta.next)===null&&(t=t.alternate,Ee.H=t===null||t.memoizedState===null?ML:dg),e}function $f(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Li(e);if(e.$$typeof===hr)return Ia(e)}throw Error(O(438,String(e)))}function ng(e){var t=null,a=Ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ne.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Jf(),Ne.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=$R;return t.index++,a}function Sr(e,t){return typeof t==="function"?t(e):t}function nf(e){var t=Qt();return lg(t,yt,e)}function lg(e,t,a){var o=e.queue;if(o===null)throw Error(O(311));o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var l=r.next;r.next=n.next,n.next=l}t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var s=l=null,u=null,i=t,c=!1;do{var d=i.lane&-536870913;if(d!==i.lane?(Ze&d)===d:(Lr&d)===d){var f=i.revertLane;if(f===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null}),d===ws&&(c=!0);else if((Lr&f)===f){i=i.next,f===ws&&(c=!0);continue}else d={lane:0,revertLane:i.revertLane,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},u===null?(s=u=d,l=n):u=u.next=d,Ne.lanes|=f,ln|=f;d=i.action,nl&&a(n,d),n=i.hasEagerState?i.eagerState:a(n,d)}else f={lane:d,revertLane:i.revertLane,gesture:i.gesture,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},u===null?(s=u=f,l=n):u=u.next=f,Ne.lanes|=d,ln|=d;i=i.next}while(i!==null&&i!==t);if(u===null?l=n:u.next=s,!ro(n,e.memoizedState)&&(ra=!0,c&&(a=ys,a!==null)))throw a;e.memoizedState=n,e.baseState=l,e.baseQueue=u,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function vm(e){var t=Qt(),a=t.queue;if(a===null)throw Error(O(311));a.lastRenderedReducer=e;var{dispatch:o,pending:r}=a,n=t.memoizedState;if(r!==null){a.pending=null;var l=r=r.next;do n=e(n,l.action),l=l.next;while(l!==r);ro(n,t.memoizedState)||(ra=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function rL(e,t,a){var o=Ne,r=Qt(),n=$e;if(n){if(a===void 0)throw Error(O(407));a=a()}else a=t();var l=!ro((yt||r).memoizedState,a);if(l&&(r.memoizedState=a,ra=!0),r=r.queue,sg(sL.bind(null,o,r,e),[e]),r.getSnapshot!==t||l||ta!==null&&ta.memoizedState.tag&1){if(o.flags|=2048,Ds(9,{destroy:void 0},lL.bind(null,o,r,a,t),null),Lt===null)throw Error(O(349));n||(Lr&127)!==0||nL(o,t,a)}return a}function nL(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ne.updateQueue,t===null?(t=Jf(),Ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lL(e,t,a,o){t.value=a,t.getSnapshot=o,uL(t)&&iL(e)}function sL(e,t,a){return a(function(){uL(t)&&iL(e)})}function uL(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ro(e,a)}catch(o){return!0}}function iL(e){var t=cl(e,2);t!==null&&ja(t,e,2)}function uh(e){var t=Fa();if(typeof e==="function"){var a=e;if(e=a(),nl){Xr(!0);try{a()}finally{Xr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:e},t}function cL(e,t,a,o){return e.baseState=a,lg(e,yt,typeof o==="function"?o:Sr)}function hk(e,t,a,o,r){if(td(e))throw Error(O(485));if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){n.listeners.push(l)}};Ee.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,fL(t,n)):(n.next=a.next,t.pending=a.next=n)}}function fL(e,t){var{action:a,payload:o}=t,r=e.state;if(t.isTransition){var n=Ee.T,l={};Ee.T=l;try{var s=a(r,o),u=Ee.S;u!==null&&u(l,s),py(e,t,s)}catch(i){ih(e,t,i)}finally{n!==null&&l.types!==null&&(n.types=l.types),Ee.T=n}}else try{n=a(r,o),py(e,t,n)}catch(i){ih(e,t,i)}}function py(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(o){my(e,t,o)},function(o){return ih(e,t,o)}):my(e,t,a)}function my(e,t,a){t.status="fulfilled",t.value=a,dL(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fL(e,a)))}function ih(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,dL(t),t=t.next;while(t!==o)}e.action=null}function dL(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pL(e,t){return t}function hy(e,t){if($e){var a=Lt.formState;if(a!==null){e:{var o=Ne;if($e){if(kt){t:{var r=kt;for(var n=yo;r.nodeType!==8;){if(!n){r=null;break t}if(r=So(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n==="F!"||n==="F"?r:null}if(r){kt=So(r.nextSibling),o=r.data==="F!";break e}}rn(o)}o=!1}o&&(t=a[0])}}return a=Fa(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pL,lastRenderedState:t},a.queue=o,a=DL.bind(null,Ne,o),o.dispatch=a,o=uh(!1),n=fg.bind(null,Ne,!1,o.queue),o=Fa(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=hk.bind(null,Ne,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function gy(e){var t=Qt();return mL(t,yt,e)}function mL(e,t,a){if(t=lg(e,t,pL)[0],e=nf(Sr)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Li(t)}catch(l){if(l===zs)throw Qf;throw l}else o=t;t=Qt();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(Ne.flags|=2048,Ds(9,{destroy:void 0},gk.bind(null,r,a),null)),[o,n,e]}function gk(e,t){e.action=t}function xy(e){var t=Qt(),a=yt;if(a!==null)return mL(t,a,e);Qt(),t=t.memoizedState,a=Qt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Ds(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ne.updateQueue,t===null&&(t=Jf(),Ne.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function hL(){return Qt().memoizedState}function lf(e,t,a,o){var r=Fa();Ne.flags|=e,r.memoizedState=Ds(1|t,{destroy:void 0},a,o===void 0?null:o)}function ed(e,t,a,o){var r=Qt();o=o===void 0?null:o;var n=r.memoizedState.inst;yt!==null&&o!==null&&eg(o,yt.memoizedState.deps)?r.memoizedState=Ds(t,n,a,o):(Ne.flags|=e,r.memoizedState=Ds(1|t,n,a,o))}function vy(e,t){lf(8390656,8,e,t)}function sg(e,t){ed(2048,8,e,t)}function xk(e){Ne.flags|=4;var t=Ne.updateQueue;if(t===null)t=Jf(),Ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function gL(e){var t=Qt().memoizedState;return xk({ref:t,nextImpl:e}),function(){if((ut&2)!==0)throw Error(O(440));return t.impl.apply(void 0,arguments)}}function xL(e,t){return ed(4,2,e,t)}function vL(e,t){return ed(4,4,e,t)}function CL(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return e=e(),t.current=e,function(){t.current=null}}function yL(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,ed(4,4,CL.bind(null,t,e),a)}function ug(){}function bL(e,t){var a=Qt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&eg(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function LL(e,t){var a=Qt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&eg(t,o[1]))return o[0];if(o=e(),nl){Xr(!0);try{e()}finally{Xr(!1)}}return a.memoizedState=[o,t],o}function ig(e,t,a){if(a===void 0||(Lr&1073741824)!==0&&(Ze&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=sS(),Ne.lanes|=e,ln|=e,a}function SL(e,t,a,o){if(ro(a,t))return a;if(Rs.current!==null)return e=ig(e,a,o),ro(e,t)||(ra=!0),e;if((Lr&42)===0||(Lr&1073741824)!==0&&(Ze&261930)===0)return ra=!0,e.memoizedState=a;return e=sS(),Ne.lanes|=e,ln|=e,t}function IL(e,t,a,o,r){var n=it.p;it.p=n!==0&&8>n?n:8;var l=Ee.T,s={};Ee.T=s,fg(e,!1,t,a);try{var u=r(),i=Ee.S;if(i!==null&&i(s,u),u!==null&&typeof u==="object"&&typeof u.then==="function"){var c=dk(u,o);Ku(e,t,c,Lo(e))}else Ku(e,t,o,Lo(e))}catch(d){Ku(e,t,{then:function(){},status:"rejected",reason:d},Lo())}finally{it.p=n,l!==null&&s.types!==null&&(l.types=s.types),Ee.T=l}}function vk(){}function ch(e,t,a,o){if(e.tag!==5)throw Error(O(476));var r=AL(e).queue;IL(e,r,t,Kn,a===null?vk:function(){return TL(e),a(o)})}function AL(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Kn,baseState:Kn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:Kn},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function TL(e){var t=AL(e);t.next===null&&(t=e.alternate.memoizedState),Ku(e,t.next.queue,{},Lo())}function cg(){return Ia(di)}function wL(){return Qt().memoizedState}function RL(){return Qt().memoizedState}function Ck(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Lo();e=$n(a);var o=el(t,e,a);o!==null&&(ja(o,t,a),ju(o,t,a)),t={cache:Kh()},e.payload=t;return}t=t.return}}function yk(e,t,a){var o=Lo();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},td(e)?kL(t,a):(a=Xh(e,t,a,o),a!==null&&(ja(a,e,o),EL(a,t,o)))}function DL(e,t,a){var o=Lo();Ku(e,t,a,o)}function Ku(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(td(e))kL(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var l=t.lastRenderedState,s=n(l,a);if(r.hasEagerState=!0,r.eagerState=s,ro(s,l))return Zf(e,t,r,0),Lt===null&&Kf(),!1}catch(u){}finally{}if(a=Xh(e,t,r,o),a!==null)return ja(a,e,o),EL(a,t,o),!0}return!1}function fg(e,t,a,o){if(o={lane:2,revertLane:yg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},td(e)){if(t)throw Error(O(479))}else t=Xh(e,a,o,2),t!==null&&ja(t,e,2)}function td(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function kL(e,t){Ls=wf=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function EL(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,hb(e,a)}}var ii={readContext:Ia,use:$f,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};ii.useEffectEvent=Gt;var ML={readContext:Ia,use:$f,useCallback:function(e,t){return Fa().memoizedState=[e,t===void 0?null:t],e},useContext:Ia,useEffect:vy,useImperativeHandle:function(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,lf(4194308,4,CL.bind(null,t,e),a)},useLayoutEffect:function(e,t){return lf(4194308,4,e,t)},useInsertionEffect:function(e,t){lf(4,2,e,t)},useMemo:function(e,t){var a=Fa();t=t===void 0?null:t;var o=e();if(nl){Xr(!0);try{e()}finally{Xr(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=Fa();if(a!==void 0){var r=a(t);if(nl){Xr(!0);try{a(t)}finally{Xr(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=yk.bind(null,Ne,e),[o.memoizedState,e]},useRef:function(e){var t=Fa();return e={current:e},t.memoizedState=e},useState:function(e){e=uh(e);var t=e.queue,a=DL.bind(null,Ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ug,useDeferredValue:function(e,t){var a=Fa();return ig(a,e,t)},useTransition:function(){var e=uh(!1);return e=IL.bind(null,Ne,e.queue,!0,!1),Fa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Ne,r=Fa();if($e){if(a===void 0)throw Error(O(407));a=a()}else{if(a=t(),Lt===null)throw Error(O(349));(Ze&127)!==0||nL(o,t,a)}r.memoizedState=a;var n={value:a,getSnapshot:t};return r.queue=n,vy(sL.bind(null,o,n,e),[e]),o.flags|=2048,Ds(9,{destroy:void 0},lL.bind(null,o,n,a,t),null),a},useId:function(){var e=Fa(),t=Lt.identifierPrefix;if($e){var a=Qo,o=Zo;a=(o&~(1<<32-oo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Rf++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=pk++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cg,useFormState:hy,useActionState:hy,useOptimistic:function(e){var t=Fa();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=fg.bind(null,Ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:ng,useCacheRefresh:function(){return Fa().memoizedState=Ck.bind(null,Ne)},useEffectEvent:function(e){var t=Fa(),a={impl:e};return t.memoizedState=a,function(){if((ut&2)!==0)throw Error(O(440));return a.impl.apply(void 0,arguments)}}},dg={readContext:Ia,use:$f,useCallback:bL,useContext:Ia,useEffect:sg,useImperativeHandle:yL,useInsertionEffect:xL,useLayoutEffect:vL,useMemo:LL,useReducer:nf,useRef:hL,useState:function(){return nf(Sr)},useDebugValue:ug,useDeferredValue:function(e,t){var a=Qt();return SL(a,yt.memoizedState,e,t)},useTransition:function(){var e=nf(Sr)[0],t=Qt().memoizedState;return[typeof e==="boolean"?e:Li(e),t]},useSyncExternalStore:rL,useId:wL,useHostTransitionStatus:cg,useFormState:gy,useActionState:gy,useOptimistic:function(e,t){var a=Qt();return cL(a,yt,e,t)},useMemoCache:ng,useCacheRefresh:RL};dg.useEffectEvent=gL;var OL={readContext:Ia,use:$f,useCallback:bL,useContext:Ia,useEffect:sg,useImperativeHandle:yL,useInsertionEffect:xL,useLayoutEffect:vL,useMemo:LL,useReducer:vm,useRef:hL,useState:function(){return vm(Sr)},useDebugValue:ug,useDeferredValue:function(e,t){var a=Qt();return yt===null?ig(a,e,t):SL(a,yt.memoizedState,e,t)},useTransition:function(){var e=vm(Sr)[0],t=Qt().memoizedState;return[typeof e==="boolean"?e:Li(e),t]},useSyncExternalStore:rL,useId:wL,useHostTransitionStatus:cg,useFormState:xy,useActionState:xy,useOptimistic:function(e,t){var a=Qt();if(yt!==null)return cL(a,yt,e,t);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:ng,useCacheRefresh:RL};OL.useEffectEvent=gL;function Cm(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a===null||a===void 0?t:Et({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var fh={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Lo(),r=$n(o);r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=el(e,r,o),t!==null&&(ja(t,e,o),ju(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Lo(),r=$n(o);r.tag=1,r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=el(e,r,o),t!==null&&(ja(t,e,o),ju(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Lo(),o=$n(a);o.tag=2,t!==void 0&&t!==null&&(o.callback=t),t=el(e,o,a),t!==null&&(ja(t,e,a),ju(t,e,a))}};function Cy(e,t,a,o,r,n,l){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(o,n,l):t.prototype&&t.prototype.isPureReactComponent?!ri(a,o)||!ri(r,n):!0}function yy(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&fh.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=Et({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function bk(e){yf(e)}function Lk(e){console.error(e)}function Sk(e){yf(e)}function Df(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function by(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function dh(e,t,a){return a=$n(a),a.tag=3,a.payload={element:null},a.callback=function(){Df(e,t)},a}function BL(e){return e=$n(e),e.tag=3,e}function PL(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r==="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){by(t,a,o)}}var l=a.stateNode;l!==null&&typeof l.componentDidCatch==="function"&&(e.callback=function(){by(t,a,o),typeof r!=="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function Ik(e,t,a,o,r){if(a.flags|=32768,o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&Ns(t,a,r,!0),a=no.current,a!==null){switch(a.tag){case 31:case 13:return bo===null?Bf():a.alternate===null&&Xt===0&&(Xt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,o===If?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),km(e,o,r)),!1;case 22:return a.flags|=65536,o===If?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),km(e,o,r)),!1}throw Error(O(435,a.tag))}return km(e,o,r),Bf(),!1}if($e)return t=no.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==$m&&(e=Error(O(422),{cause:o}),li(Co(e,a)))):(o!==$m&&(t=Error(O(423),{cause:o}),li(Co(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=Co(o,a),r=dh(e.stateNode,o,r),xm(e,r),Xt!==4&&(Xt=2)),!1;var n=Error(O(520),{cause:o});if(n=Co(n,a),Ju===null?Ju=[n]:Ju.push(n),Xt!==4&&(Xt=2),t===null)return!0;o=Co(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=dh(a.stateNode,o,e),xm(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(Jr===null||!Jr.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=BL(r),PL(r,e,a,o),xm(a,r),!1}a=a.return}while(a!==null);return!1}var pg=Error(O(461)),ra=!1;function ba(e,t,a,o){t.child=e===null?Jb(t,null,a,o):rl(t,e.child,a,o)}function Ly(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var l={};for(var s in o)s!=="ref"&&(l[s]=o[s])}else l=o;if(ol(t),o=tg(e,t,a,l,n,r),s=ag(),e!==null&&!ra)return og(e,t,r),Ir(e,t,r);return $e&&s&&Yh(t),t.flags|=1,ba(e,t,o,r),t.child}function Sy(e,t,a,o,r){if(e===null){var n=a.type;if(typeof n==="function"&&!jh(n)&&n.defaultProps===void 0&&a.compare===null)return t.tag=15,t.type=n,NL(e,t,n,o,r);return e=of(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!mg(e,r)){var l=n.memoizedProps;if(a=a.compare,a=a!==null?a:ri,a(l,o)&&e.ref===t.ref)return Ir(e,t,r)}return t.flags|=1,e=vr(n,o),e.ref=t.ref,e.return=t,t.child=e}function NL(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(ri(n,o)&&e.ref===t.ref)if(ra=!1,t.pendingProps=o=n,mg(e,r))(e.flags&131072)!==0&&(ra=!0);else return t.lanes=e.lanes,Ir(e,t,r)}return ph(e,t,a,o,r)}function zL(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return Iy(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rf(t,n!==null?n.cachePool:null),n!==null?dy(t,n):lh(),tL(t);else return o=t.lanes=536870912,Iy(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(rf(t,n.cachePool),dy(t,n),Vr(t),t.memoizedState=null):(e!==null&&rf(t,null),lh(),Vr(t));return ba(e,t,r,a),t.child}function Fu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Iy(e,t,a,o,r){var n=Zh();return n=n===null?null:{parent:oa._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&rf(t,null),lh(),tL(t),e!==null&&Ns(e,t,o,!0),t.childLanes=r,null}function sf(e,t){return t=kf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ay(e,t,a){return rl(t,e.child,null,a),e=sf(t,t.pendingProps),e.flags|=2,Ja(t),t.memoizedState=null,e}function Ak(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if($e){if(o.mode==="hidden")return e=sf(t,o),t.lanes=536870912,Fu(null,e);if(sh(t),(e=kt)?(e=kS(e,yo),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:on!==null?{id:Zo,overflow:Qo}:null,retryLane:536870912,hydrationErrors:null},a=Xb(e),a.return=t,t.child=a,Sa=t,kt=null)):e=null,e===null)throw rn(t);return t.lanes=536870912,null}return sf(t,o)}var n=e.memoizedState;if(n!==null){var l=n.dehydrated;if(sh(t),r)if(t.flags&256)t.flags&=-257,t=Ay(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(O(558));else if(ra||Ns(e,t,a,!1),r=(a&e.childLanes)!==0,ra||r){if(o=Lt,o!==null&&(l=gb(o,a),l!==0&&l!==n.retryLane))throw n.retryLane=l,cl(e,l),ja(o,e,l),pg;Bf(),t=Ay(e,t,a)}else e=n.treeContext,kt=So(l.nextSibling),Sa=t,$e=!0,Qr=null,yo=!1,e!==null&&Yb(t,e),t=sf(t,o),t.flags|=4096;return t}return e=vr(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uf(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(O(284));if(e===null||e.ref!==a)t.flags|=4194816}}function ph(e,t,a,o,r){if(ol(t),a=tg(e,t,a,o,void 0,r),o=ag(),e!==null&&!ra)return og(e,t,r),Ir(e,t,r);return $e&&o&&Yh(t),t.flags|=1,ba(e,t,a,r),t.child}function Ty(e,t,a,o,r,n){if(ol(t),t.updateQueue=null,a=oL(t,o,a,r),aL(e),o=ag(),e!==null&&!ra)return og(e,t,n),Ir(e,t,n);return $e&&o&&Yh(t),t.flags|=1,ba(e,t,a,n),t.child}function wy(e,t,a,o,r){if(ol(t),t.stateNode===null){var n=ps,l=a.contextType;typeof l==="object"&&l!==null&&(n=Ia(l)),n=new a(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=fh,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},Jh(t),l=a.contextType,n.context=typeof l==="object"&&l!==null?Ia(l):ps,n.state=t.memoizedState,l=a.getDerivedStateFromProps,typeof l==="function"&&(Cm(t,a,l,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(l=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),l!==n.state&&fh.enqueueReplaceState(n,n.state,null),Wu(t,o,n,r),Yu(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var s=t.memoizedProps,u=ll(a,s);n.props=u;var i=n.context,c=a.contextType;l=ps,typeof c==="object"&&c!==null&&(l=Ia(c));var d=a.getDerivedStateFromProps;c=typeof d==="function"||typeof n.getSnapshotBeforeUpdate==="function",s=t.pendingProps!==s,c||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s||i!==l)&&yy(t,n,o,l),qr=!1;var f=t.memoizedState;n.state=f,Wu(t,o,n,r),Yu(),i=t.memoizedState,s||f!==i||qr?(typeof d==="function"&&(Cm(t,a,d,o),i=t.memoizedState),(u=qr||Cy(t,a,u,o,f,i,l))?(c||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=i),n.props=o,n.state=i,n.context=l,o=u):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,rh(e,t),l=t.memoizedProps,c=ll(a,l),n.props=c,d=t.pendingProps,f=n.context,i=a.contextType,u=ps,typeof i==="object"&&i!==null&&(u=Ia(i)),s=a.getDerivedStateFromProps,(i=typeof s==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(l!==d||f!==u)&&yy(t,n,o,u),qr=!1,f=t.memoizedState,n.state=f,Wu(t,o,n,r),Yu();var p=t.memoizedState;l!==d||f!==p||qr||e!==null&&e.dependencies!==null&&Sf(e.dependencies)?(typeof s==="function"&&(Cm(t,a,s,o),p=t.memoizedState),(c=qr||Cy(t,a,c,o,f,p,u)||e!==null&&e.dependencies!==null&&Sf(e.dependencies))?(i||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,p,u),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,p,u)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=p),n.props=o,n.state=p,n.context=u,o=c):(typeof n.componentDidUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,uf(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,a=o&&typeof a.getDerivedStateFromError!=="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=rl(t,e.child,null,r),t.child=rl(t,null,a,r)):ba(e,t,a,r),t.memoizedState=n.state,e=t.child):e=Ir(e,t,r),e}function Ry(e,t,a,o){return al(),t.flags|=256,ba(e,t,a,o),t.child}var ym={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bm(e){return{baseLanes:e,cachePool:Kb()}}function Lm(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=eo),e}function FL(e,t,a){var o=t.pendingProps,r=!1,n=(t.flags&128)!==0,l;if((l=n)||(l=e!==null&&e.memoizedState===null?!1:(Zt.current&2)!==0),l&&(r=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if($e){if(r?_r(t):Vr(t),(e=kt)?(e=kS(e,yo),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:on!==null?{id:Zo,overflow:Qo}:null,retryLane:536870912,hydrationErrors:null},a=Xb(e),a.return=t,t.child=a,Sa=t,kt=null)):e=null,e===null)throw rn(t);return Dh(e)?t.lanes=32:t.lanes=536870912,null}var s=o.children;if(o=o.fallback,r)return Vr(t),r=t.mode,s=kf({mode:"hidden",children:s},r),o=Zn(o,r,a,null),s.return=t,o.return=t,s.sibling=o,t.child=s,o=t.child,o.memoizedState=bm(a),o.childLanes=Lm(e,l,a),t.memoizedState=ym,Fu(null,o);return _r(t),mh(t,s)}var u=e.memoizedState;if(u!==null&&(s=u.dehydrated,s!==null)){if(n)t.flags&256?(_r(t),t.flags&=-257,t=Sm(e,t,a)):t.memoizedState!==null?(Vr(t),t.child=e.child,t.flags|=128,t=null):(Vr(t),s=o.fallback,r=t.mode,o=kf({mode:"visible",children:o.children},r),s=Zn(s,r,a,null),s.flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,rl(t,e.child,null,a),o=t.child,o.memoizedState=bm(a),o.childLanes=Lm(e,l,a),t.memoizedState=ym,t=Fu(null,o));else if(_r(t),Dh(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var i=l.dgst;l=i,o=Error(O(419)),o.stack="",o.digest=l,li({value:o,source:null,stack:null}),t=Sm(e,t,a)}else if(ra||Ns(e,t,a,!1),l=(a&e.childLanes)!==0,ra||l){if(l=Lt,l!==null&&(o=gb(l,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,cl(e,o),ja(l,e,o),pg;Rh(s)||Bf(),t=Sm(e,t,a)}else Rh(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,kt=So(s.nextSibling),Sa=t,$e=!0,Qr=null,yo=!1,e!==null&&Yb(t,e),t=mh(t,o.children),t.flags|=4096);return t}if(r)return Vr(t),s=o.fallback,r=t.mode,u=e.child,i=u.sibling,o=vr(u,{mode:"hidden",children:o.children}),o.subtreeFlags=u.subtreeFlags&65011712,i!==null?s=vr(i,s):(s=Zn(s,r,a,null),s.flags|=2),s.return=t,o.return=t,o.sibling=s,t.child=o,Fu(null,o),o=t.child,s=e.child.memoizedState,s===null?s=bm(a):(r=s.cachePool,r!==null?(u=oa._currentValue,r=r.parent!==u?{parent:u,pool:u}:r):r=Kb(),s={baseLanes:s.baseLanes|a,cachePool:r}),o.memoizedState=s,o.childLanes=Lm(e,l,a),t.memoizedState=ym,Fu(e.child,o);return _r(t),a=e.child,e=a.sibling,a=vr(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=a,t.memoizedState=null,a}function mh(e,t){return t=kf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function kf(e,t){return e=$a(22,e,null,t),e.lanes=0,e}function Sm(e,t,a){return rl(t,e.child,null,a),e=mh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dy(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),th(e.return,t,a)}function Im(e,t,a,o,r,n){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=o,l.tail=a,l.tailMode=r,l.treeForkCount=n)}function UL(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail;o=o.children;var l=Zt.current,s=(l&2)!==0;if(s?(l=l&1|2,t.flags|=128):l&=1,It(Zt,l),ba(e,t,o,a),o=$e?ni:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dy(e,a,t);else if(e.tag===19)Dy(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":a=t.child;for(r=null;a!==null;)e=a.alternate,e!==null&&Tf(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Im(t,!1,r,a,n,o);break;case"backwards":case"unstable_legacy-backwards":a=null,r=t.child;for(t.child=null;r!==null;){if(e=r.alternate,e!==null&&Tf(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Im(t,!0,a,null,n,o);break;case"together":Im(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Ir(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ln|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ns(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){e=t.child,a=vr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function mg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Sf(e)?!0:!1}function Tk(e,t,a){switch(t.tag){case 3:gf(t,t.stateNode.containerInfo),Hr(t,oa,e.memoizedState.cache),al();break;case 27:case 5:_m(t);break;case 4:gf(t,t.stateNode.containerInfo);break;case 10:Hr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sh(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return _r(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return FL(e,t,a);return _r(t),e=Ir(e,t,a),e!==null?e.sibling:null}_r(t);break;case 19:var r=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Ns(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return UL(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),It(Zt,Zt.current),o)break;else return null;case 22:return t.lanes=0,zL(e,t,a,t.pendingProps);case 24:Hr(t,oa,e.memoizedState.cache)}return Ir(e,t,a)}function qL(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ra=!0;else{if(!mg(e,a)&&(t.flags&128)===0)return ra=!1,Tk(e,t,a);ra=(e.flags&131072)!==0?!0:!1}else ra=!1,$e&&(t.flags&1048576)!==0&&jb(t,ni,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Yn(t.elementType),t.type=e,typeof e==="function")jh(e)?(o=ll(e,o),t.tag=1,t=wy(null,t,e,o,a)):(t.tag=0,t=ph(null,t,e,o,a));else{if(e!==void 0&&e!==null){var r=e.$$typeof;if(r===Oh){t.tag=11,t=Ly(null,t,e,o,a);break e}else if(r===Bh){t.tag=14,t=Sy(null,t,e,o,a);break e}}throw t=qm(e)||e,Error(O(306,t,""))}}return t;case 0:return ph(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=ll(o,t.pendingProps),wy(e,t,o,r,a);case 3:e:{if(gf(t,t.stateNode.containerInfo),e===null)throw Error(O(387));o=t.pendingProps;var n=t.memoizedState;r=n.element,rh(e,t),Wu(t,o,null,a);var l=t.memoizedState;if(o=l.cache,Hr(t,oa,o),o!==n.cache&&ah(t,[oa],a,!0),Yu(),o=l.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Ry(e,t,o,a);break e}else if(o!==r){r=Co(Error(O(424)),t),li(r),t=Ry(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}kt=So(e.firstChild),Sa=t,$e=!0,Qr=null,yo=!0,a=Jb(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(al(),o===r){t=Ir(e,t,a);break e}ba(e,t,o,a)}t=t.child}return t;case 26:return uf(e,t),e===null?(a=Ky(t.type,null,t.pendingProps,null))?t.memoizedState=a:$e||(a=t.type,e=t.pendingProps,o=Ff(Zr.current).createElement(a),o[La]=t,o[Ya]=e,Aa(o,a,e),ma(o),t.stateNode=o):t.memoizedState=Ky(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _m(t),e===null&&$e&&(o=t.stateNode=ES(t.type,t.pendingProps,Zr.current),Sa=t,yo=!0,r=kt,un(t.type)?(kh=r,kt=So(o.firstChild)):kt=r),ba(e,t,t.pendingProps.children,a),uf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:if(e===null&&$e){if(r=o=kt)o=eE(o,t.type,t.pendingProps,yo),o!==null?(t.stateNode=o,Sa=t,kt=So(o.firstChild),yo=!1,r=!0):r=!1;r||rn(t)}return _m(t),r=t.type,n=t.pendingProps,l=e!==null?e.memoizedProps:null,o=n.children,Th(r,n)?o=null:l!==null&&Th(r,l)&&(t.flags|=32),t.memoizedState!==null&&(r=tg(e,t,mk,null,null,a),di._currentValue=r),uf(e,t),ba(e,t,o,a),t.child;case 6:if(e===null&&$e){if(e=a=kt)a=tE(a,t.pendingProps,yo),a!==null?(t.stateNode=a,Sa=t,kt=null,e=!0):e=!1;e||rn(t)}return null;case 13:return FL(e,t,a);case 4:return gf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=rl(t,null,o,a):ba(e,t,o,a),t.child;case 11:return Ly(e,t,t.type,t.pendingProps,a);case 7:return ba(e,t,t.pendingProps,a),t.child;case 8:return ba(e,t,t.pendingProps.children,a),t.child;case 12:return ba(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,Hr(t,t.type,o.value),ba(e,t,o.children,a),t.child;case 9:return r=t.type._context,o=t.pendingProps.children,ol(t),r=Ia(r),o=o(r),t.flags|=1,ba(e,t,o,a),t.child;case 14:return Sy(e,t,t.type,t.pendingProps,a);case 15:return NL(e,t,t.type,t.pendingProps,a);case 19:return UL(e,t,a);case 31:return Ak(e,t,a);case 22:return zL(e,t,a,t.pendingProps);case 24:return ol(t),o=Ia(oa),e===null?(r=Zh(),r===null&&(r=Lt,n=Kh(),r.pooledCache=n,n.refCount++,n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},Jh(t),Hr(t,oa,r)):((e.lanes&a)!==0&&(rh(e,t),Wu(t,null,null,a),Yu()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Hr(t,oa,o)):(o=n.cache,Hr(t,oa,o),o!==r.cache&&ah(t,[oa],a,!0))),ba(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(O(156,t.tag))}function ir(e){e.flags|=4}function Am(e,t,a,o,r){if(t=(e.mode&32)!==0)t=!1;if(t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(cS())e.flags|=8192;else throw Jn=If,Qh}else e.flags&=-16777217}function ky(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!BS(t))if(cS())e.flags|=8192;else throw Jn=If,Qh}function Yc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pb():536870912,e.lanes|=t,ks|=t)}function ku(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function wk(e,t,a){var o=t.pendingProps;switch(Wh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Cr(oa),Is(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)es(t)?ir(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gm());return Dt(t),null;case 26:var{type:r,memoizedState:n}=t;return e===null?(ir(t),n!==null?(Dt(t),ky(t,n)):(Dt(t),Am(t,r,null,o,a))):n?n!==e.memoizedState?(ir(t),Dt(t),ky(t,n)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ir(t),Dt(t),Am(t,r,e,o,a)),null;case 27:if(xf(t),a=Zr.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(!o){if(t.stateNode===null)throw Error(O(166));return Dt(t),null}e=$o.current,es(t)?ny(t,e):(e=ES(r,o,a),t.stateNode=e,ir(t))}return Dt(t),null;case 5:if(xf(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(!o){if(t.stateNode===null)throw Error(O(166));return Dt(t),null}if(n=$o.current,es(t))ny(t,n);else{var l=Ff(Zr.current);switch(n){case 1:n=l.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=l.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=l.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?l.createElement(r,{is:o.is}):l.createElement(r)}}n[La]=t,n[Ya]=o;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=n;e:switch(Aa(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ir(t)}}return Dt(t),Am(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error(O(166));if(e=Zr.current,es(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Sa,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[La]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||wS(e.nodeValue,a)?!0:!1,e||rn(t,!0)}else e=Ff(e).createTextNode(o),e[La]=t,t.stateNode=e}return Dt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=es(t),a!==null){if(e===null){if(!o)throw Error(O(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(557));e[La]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),e=!1}else a=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Ja(t),t;return Ja(t),null}if((t.flags&128)!==0)throw Error(O(558))}return Dt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=es(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(O(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(O(317));r[La]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),r=!1}else r=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r){if(t.flags&256)return Ja(t),t;return Ja(t),null}}if(Ja(t),(t.flags&128)!==0)return t.lanes=a,t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Yc(t,t.updateQueue),Dt(t),null;case 4:return Is(),e===null&&AS(t.stateNode.containerInfo),Dt(t),null;case 10:return Cr(t.type),Dt(t),null;case 19:if(ha(Zt),o=t.memoizedState,o===null)return Dt(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)ku(o,!1);else{if(Xt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Tf(e),n!==null){t.flags|=128,ku(o,!1),e=n.updateQueue,t.updateQueue=e,Yc(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)Gb(a,e),a=a.sibling;return It(Zt,Zt.current&1|2),$e&&pr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&to()>Mf&&(t.flags|=128,r=!0,ku(o,!1),t.lanes=4194304)}else{if(!r)if(e=Tf(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Yc(t,e),ku(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!$e)return Dt(t),null}else 2*to()-o.renderingStartTime>Mf&&a!==536870912&&(t.flags|=128,r=!0,ku(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=to(),e.sibling=null,a=Zt.current,It(Zt,r?a&1|2:a&1),$e&&pr(t,o.treeForkCount),e;return Dt(t),null;case 22:case 23:return Ja(t),$h(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),a=t.updateQueue,a!==null&&Yc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&ha(Qn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Cr(oa),Dt(t),null;case 25:return null;case 30:return null}throw Error(O(156,t.tag))}function Rk(e,t){switch(Wh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(oa),Is(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xf(t),null;case 31:if(t.memoizedState!==null){if(Ja(t),t.alternate===null)throw Error(O(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ja(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ha(Zt),null;case 4:return Is(),null;case 10:return Cr(t.type),null;case 22:case 23:return Ja(t),$h(),e!==null&&ha(Qn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cr(oa),null;case 25:return null;default:return null}}function HL(e,t){switch(Wh(t),t.tag){case 3:Cr(oa),Is();break;case 26:case 27:case 5:xf(t);break;case 4:Is();break;case 31:t.memoizedState!==null&&Ja(t);break;case 13:Ja(t);break;case 19:ha(Zt);break;case 10:Cr(t.type);break;case 22:case 23:Ja(t),$h(),e!==null&&ha(Qn);break;case 24:Cr(oa)}}function Si(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var n=a.create,l=a.inst;o=n(),l.destroy=o}a=a.next}while(a!==r)}}catch(s){mt(t,t.return,s)}}function nn(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var l=o.inst,s=l.destroy;if(s!==void 0){l.destroy=void 0,r=t;var u=a,i=s;try{i()}catch(c){mt(r,u,c)}}}o=o.next}while(o!==n)}}catch(c){mt(t,t.return,c)}}function _L(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{eL(t,a)}catch(o){mt(e,e.return,o)}}}function VL(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){mt(e,t,o)}}function Zu(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a==="function"?e.refCleanup=a(o):a.current=o}}catch(r){mt(e,t,r)}}function Jo(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{o()}catch(r){mt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(r){mt(e,t,r)}else a.current=null}function GL(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(r){mt(e,e.return,r)}}function Tm(e,t,a){try{var o=e.stateNode;Wk(o,e.type,a,t),o[Ya]=t}catch(r){mt(e,e.return,r)}}function XL(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&un(e.type)||e.tag===4}function wm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XL(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&un(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hh(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=gr));else if(o!==4&&(o===27&&un(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(hh(e,t,a),e=e.sibling;e!==null;)hh(e,t,a),e=e.sibling}function Ef(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&un(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ef(e,t,a),e=e.sibling;e!==null;)Ef(e,t,a),e=e.sibling}function jL(e){var{stateNode:t,memoizedProps:a}=e;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Aa(t,o,a),t[La]=e,t[Ya]=a}catch(n){mt(e,e.return,n)}}var mr=!1,aa=!1,Rm=!1,Ey=typeof WeakSet==="function"?WeakSet:Set,pa=null;function Dk(e,t){if(e=e.containerInfo,Ih=_f,e=Nb(e),Vh(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var r=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(v){a=null;break e}var l=0,s=-1,u=-1,i=0,c=0,d=e,f=null;t:for(;;){for(var p;;){if(d!==a||r!==0&&d.nodeType!==3||(s=l+r),d!==n||o!==0&&d.nodeType!==3||(u=l+o),d.nodeType===3&&(l+=d.nodeValue.length),(p=d.firstChild)===null)break;f=d,d=p}for(;;){if(d===e)break t;if(f===a&&++i===r&&(s=l),f===n&&++c===o&&(u=l),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}a=s===-1||u===-1?null:{start:s,end:u}}else a=null}a=a||{start:0,end:0}}else a=null;Ah={focusedElem:e,selectionRange:a},_f=!1;for(pa=t;pa!==null;)if(t=pa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pa=e;else for(;pa!==null;){switch(t=pa,n=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&n!==null){e=void 0,a=t,r=n.memoizedProps,n=n.memoizedState,o=a.stateNode;try{var g=ll(a.type,r);e=o.getSnapshotBeforeUpdate(g,n),o.__reactInternalSnapshotBeforeUpdate=e}catch(v){mt(a,a.return,v)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)wh(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(O(163))}if(e=t.sibling,e!==null){e.return=t.return,pa=e;break}pa=t.return}}function YL(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:fr(e,a),o&4&&Si(5,a);break;case 1:if(fr(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(l){mt(a,a.return,l)}else{var r=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){mt(a,a.return,l)}}o&64&&_L(a),o&512&&Zu(a,a.return);break;case 3:if(fr(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{eL(e,t)}catch(l){mt(a,a.return,l)}}break;case 27:t===null&&o&4&&jL(a);case 26:case 5:fr(e,a),t===null&&o&4&&GL(a),o&512&&Zu(a,a.return);break;case 12:fr(e,a);break;case 31:fr(e,a),o&4&&ZL(e,a);break;case 13:fr(e,a),o&4&&QL(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Fk.bind(null,a),aE(e,a))));break;case 22:if(o=a.memoizedState!==null||mr,!o){t=t!==null&&t.memoizedState!==null||aa,r=mr;var n=aa;mr=o,(aa=t)&&!n?dr(e,a,(a.subtreeFlags&8772)!==0):fr(e,a),mr=r,aa=n}break;case 30:break;default:fr(e,a)}}function WL(e){var t=e.alternate;t!==null&&(e.alternate=null,WL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zh(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 Ft=null,Ga=!1;function cr(e,t,a){for(a=a.child;a!==null;)KL(e,t,a),a=a.sibling}function KL(e,t,a){if(ao&&typeof ao.onCommitFiberUnmount==="function")try{ao.onCommitFiberUnmount(gi,a)}catch(n){}switch(a.tag){case 26:aa||Jo(a,t),cr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:aa||Jo(a,t);var o=Ft,r=Ga;un(a.type)&&(Ft=a.stateNode,Ga=!1),cr(e,t,a),ei(a.stateNode),Ft=o,Ga=r;break;case 5:aa||Jo(a,t);case 6:if(o=Ft,r=Ga,Ft=null,cr(e,t,a),Ft=o,Ga=r,Ft!==null)if(Ga)try{(Ft.nodeType===9?Ft.body:Ft.nodeName==="HTML"?Ft.ownerDocument.body:Ft).removeChild(a.stateNode)}catch(n){mt(a,t,n)}else try{Ft.removeChild(a.stateNode)}catch(n){mt(a,t,n)}break;case 18:Ft!==null&&(Ga?(e=Ft,Gy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bs(e)):Gy(Ft,a.stateNode));break;case 4:o=Ft,r=Ga,Ft=a.stateNode.containerInfo,Ga=!0,cr(e,t,a),Ft=o,Ga=r;break;case 0:case 11:case 14:case 15:nn(2,a,t),aa||nn(4,a,t),cr(e,t,a);break;case 1:aa||(Jo(a,t),o=a.stateNode,typeof o.componentWillUnmount==="function"&&VL(a,t,o)),cr(e,t,a);break;case 21:cr(e,t,a);break;case 22:aa=(o=aa)||a.memoizedState!==null,cr(e,t,a),aa=o;break;default:cr(e,t,a)}}function ZL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bs(e)}catch(a){mt(t,t.return,a)}}}function QL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bs(e)}catch(a){mt(t,t.return,a)}}function kk(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ey),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ey),t;default:throw Error(O(435,e.tag))}}function Wc(e,t){var a=kk(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var r=Uk.bind(null,e,o);o.then(r,r)}})}function _a(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o],n=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 27:if(un(s.type)){Ft=s.stateNode,Ga=!1;break e}break;case 5:Ft=s.stateNode,Ga=!1;break e;case 3:case 4:Ft=s.stateNode.containerInfo,Ga=!0;break e}s=s.return}if(Ft===null)throw Error(O(160));KL(n,l,r),Ft=null,Ga=!1,n=r.alternate,n!==null&&(n.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)JL(t,e),t=t.sibling}var Fo=null;function JL(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_a(t,e),Va(e),o&4&&(nn(3,e,e.return),Si(3,e),nn(5,e,e.return));break;case 1:_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),o&64&&mr&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var r=Fo;if(_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),o&4){var n=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(o){case"title":if(n=r.getElementsByTagName("title")[0],!n||n[Ci]||n[La]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))n=r.createElement(o),r.head.insertBefore(n,r.querySelector("head > title"));Aa(n,o,a),n[La]=e,ma(n),o=n;break e;case"link":var l=Qy("link","href",r).get(o+(a.href||""));if(l){for(var s=0;s<l.length;s++)if(n=l[s],n.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){l.splice(s,1);break t}}n=r.createElement(o),Aa(n,o,a),r.head.appendChild(n);break;case"meta":if(l=Qy("meta","content",r).get(o+(a.content||""))){for(s=0;s<l.length;s++)if(n=l[s],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){l.splice(s,1);break t}}n=r.createElement(o),Aa(n,o,a),r.head.appendChild(n);break;default:throw Error(O(468,o))}n[La]=e,ma(n),o=n}e.stateNode=o}else Jy(r,e.type,e.stateNode);else e.stateNode=Zy(r,o,e.memoizedProps);else n!==o?(n===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):n.count--,o===null?Jy(r,e.type,e.stateNode):Zy(r,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Tm(e,e.memoizedProps,a.memoizedProps)}break;case 27:_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),a!==null&&o&4&&Tm(e,e.memoizedProps,a.memoizedProps);break;case 5:if(_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),e.flags&32){r=e.stateNode;try{Ts(r,"")}catch(g){mt(e,e.return,g)}}o&4&&e.stateNode!=null&&(r=e.memoizedProps,Tm(e,r,a!==null?a.memoizedProps:r)),o&1024&&(Rm=!0);break;case 6:if(_a(t,e),Va(e),o&4){if(e.stateNode===null)throw Error(O(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(g){mt(e,e.return,g)}}break;case 3:if(df=null,r=Fo,Fo=Uf(t.containerInfo),_a(t,e),Fo=r,Va(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Bs(t.containerInfo)}catch(g){mt(e,e.return,g)}Rm&&(Rm=!1,$L(e));break;case 4:o=Fo,Fo=Uf(e.stateNode.containerInfo),_a(t,e),Va(e),Fo=o;break;case 12:_a(t,e),Va(e);break;case 31:_a(t,e),Va(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Wc(e,o)));break;case 13:_a(t,e),Va(e),e.child.flags&8192&&e.memoizedState!==null!==(a!==null&&a.memoizedState!==null)&&(ad=to()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Wc(e,o)));break;case 22:r=e.memoizedState!==null;var u=a!==null&&a.memoizedState!==null,i=mr,c=aa;if(mr=i||r,aa=c||u,_a(t,e),aa=c,mr=i,Va(e),o&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||u||mr||aa||Wn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){u=a=t;try{if(n=u.stateNode,r)l=n.style,typeof l.setProperty==="function"?l.setProperty("display","none","important"):l.display="none";else{s=u.stateNode;var d=u.memoizedProps.style,f=d!==void 0&&d!==null&&d.hasOwnProperty("display")?d.display:null;s.style.display=f==null||typeof f==="boolean"?"":(""+f).trim()}}catch(g){mt(u,u.return,g)}}}else if(t.tag===6){if(a===null){u=t;try{u.stateNode.nodeValue=r?"":u.memoizedProps}catch(g){mt(u,u.return,g)}}}else if(t.tag===18){if(a===null){u=t;try{var p=u.stateNode;r?Xy(p,!0):Xy(u.stateNode,!1)}catch(g){mt(u,u.return,g)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Wc(e,a))));break;case 19:_a(t,e),Va(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Wc(e,o)));break;case 30:break;case 21:break;default:_a(t,e),Va(e)}}function Va(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(XL(o)){a=o;break}o=o.return}if(a==null)throw Error(O(160));switch(a.tag){case 27:var r=a.stateNode,n=wm(e);Ef(e,n,r);break;case 5:var l=a.stateNode;a.flags&32&&(Ts(l,""),a.flags&=-33);var s=wm(e);Ef(e,s,l);break;case 3:case 4:var u=a.stateNode.containerInfo,i=wm(e);hh(e,i,u);break;default:throw Error(O(161))}}catch(c){mt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $L(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$L(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)YL(e,t.alternate,t),t=t.sibling}function Wn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nn(4,t,t.return),Wn(t);break;case 1:Jo(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount==="function"&&VL(t,t.return,a),Wn(t);break;case 27:ei(t.stateNode);case 26:case 5:Jo(t,t.return),Wn(t);break;case 22:t.memoizedState===null&&Wn(t);break;case 30:Wn(t);break;default:Wn(t)}e=e.sibling}}function dr(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;){var o=t.alternate,r=e,n=t,l=n.flags;switch(n.tag){case 0:case 11:case 15:dr(r,n,a),Si(4,n);break;case 1:if(dr(r,n,a),o=n,r=o.stateNode,typeof r.componentDidMount==="function")try{r.componentDidMount()}catch(i){mt(o,o.return,i)}if(o=n,r=o.updateQueue,r!==null){var s=o.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)$b(u[r],s)}catch(i){mt(o,o.return,i)}}a&&l&64&&_L(n),Zu(n,n.return);break;case 27:jL(n);case 26:case 5:dr(r,n,a),a&&o===null&&l&4&&GL(n),Zu(n,n.return);break;case 12:dr(r,n,a);break;case 31:dr(r,n,a),a&&l&4&&ZL(r,n);break;case 13:dr(r,n,a),a&&l&4&&QL(r,n);break;case 22:n.memoizedState===null&&dr(r,n,a),Zu(n,n.return);break;case 30:break;default:dr(r,n,a)}t=t.sibling}}function hg(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&bi(a))}function gg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e))}function zo(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eS(e,t,a,o),t=t.sibling}function eS(e,t,a,o){var r=t.flags;switch(t.tag){case 0:case 11:case 15:zo(e,t,a,o),r&2048&&Si(9,t);break;case 1:zo(e,t,a,o);break;case 3:zo(e,t,a,o),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e)));break;case 12:if(r&2048){zo(e,t,a,o),e=t.stateNode;try{var n=t.memoizedProps,l=n.id,s=n.onPostCommit;typeof s==="function"&&s(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){mt(t,t.return,u)}}else zo(e,t,a,o);break;case 31:zo(e,t,a,o);break;case 13:zo(e,t,a,o);break;case 23:break;case 22:n=t.stateNode,l=t.alternate,t.memoizedState!==null?n._visibility&2?zo(e,t,a,o):Qu(e,t):n._visibility&2?zo(e,t,a,o):(n._visibility|=2,as(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),r&2048&&hg(l,t);break;case 24:zo(e,t,a,o),r&2048&&gg(t.alternate,t);break;default:zo(e,t,a,o)}}function as(e,t,a,o,r){r=r&&((t.subtreeFlags&10256)!==0||!1);for(t=t.child;t!==null;){var n=e,l=t,s=a,u=o,i=l.flags;switch(l.tag){case 0:case 11:case 15:as(n,l,s,u,r),Si(8,l);break;case 23:break;case 22:var c=l.stateNode;l.memoizedState!==null?c._visibility&2?as(n,l,s,u,r):Qu(n,l):(c._visibility|=2,as(n,l,s,u,r)),r&&i&2048&&hg(l.alternate,l);break;case 24:as(n,l,s,u,r),r&&i&2048&&gg(l.alternate,l);break;default:as(n,l,s,u,r)}t=t.sibling}}function Qu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,r=o.flags;switch(o.tag){case 22:Qu(a,o),r&2048&&hg(o.alternate,o);break;case 24:Qu(a,o),r&2048&&gg(o.alternate,o);break;default:Qu(a,o)}t=t.sibling}}var Uu=8192;function ts(e,t,a){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)tS(e,t,a),e=e.sibling}function tS(e,t,a){switch(e.tag){case 26:ts(e,t,a),e.flags&Uu&&e.memoizedState!==null&&mE(a,Fo,e.memoizedState,e.memoizedProps);break;case 5:ts(e,t,a);break;case 3:case 4:var o=Fo;Fo=Uf(e.stateNode.containerInfo),ts(e,t,a),Fo=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Uu,Uu=16777216,ts(e,t,a),Uu=o):ts(e,t,a));break;default:ts(e,t,a)}}function aS(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Eu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];pa=o,rS(o,e)}aS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oS(e),e=e.sibling}function oS(e){switch(e.tag){case 0:case 11:case 15:Eu(e),e.flags&2048&&nn(9,e,e.return);break;case 3:Eu(e);break;case 12:Eu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cf(e)):Eu(e);break;default:Eu(e)}}function cf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];pa=o,rS(o,e)}aS(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nn(8,t,t.return),cf(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cf(t));break;default:cf(t)}e=e.sibling}}function rS(e,t){for(;pa!==null;){var a=pa;switch(a.tag){case 0:case 11:case 15:nn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:bi(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,pa=o;else e:for(a=e;pa!==null;){o=pa;var r=o.sibling,n=o.return;if(WL(o),o===a){pa=null;break e}if(r!==null){r.return=n,pa=r;break e}pa=n}}}var Ek={getCacheForType:function(e){var t=Ia(oa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ia(oa).controller.signal}},Mk=typeof WeakMap==="function"?WeakMap:Map,ut=0,Lt=null,Ye=null,Ze=0,pt=0,Qa=null,Yr=!1,Fs=!1,xg=!1,Ar=0,Xt=0,ln=0,tl=0,vg=0,eo=0,ks=0,Ju=null,Xa=null,gh=!1,ad=0,nS=0,Mf=1/0,Of=null,Jr=null,ua=0,$r=null,Es=null,yr=0,xh=0,vh=null,lS=null,$u=0,Ch=null;function Lo(){return(ut&2)!==0&&Ze!==0?Ze&-Ze:Ee.T!==null?yg():vb()}function sS(){if(eo===0)if((Ze&536870912)===0||$e){var e=qc;qc<<=1,(qc&3932160)===0&&(qc=262144),eo=e}else eo=536870912;return e=no.current,e!==null&&(e.flags|=32),eo}function ja(e,t,a){if(e===Lt&&(pt===2||pt===9)||e.cancelPendingCommit!==null)Ms(e,0),Wr(e,Ze,eo,!1);if(Xf(e,a),(ut&2)===0||e!==Lt)e===Lt&&((ut&2)===0&&(tl|=a),Xt===4&&Wr(e,Ze,eo,!1)),Tr(e)}function uS(e,t,a){if((ut&6)!==0)throw Error(O(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||xi(e,t),r=o?Pk(e,t):Dm(e,t,!0),n=o;do{if(r===0){Fs&&!o&&Wr(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!Ok(a)){r=Dm(e,t,!1),n=!1;continue}if(r===2){if(n=t,e.errorRecoveryDisabledLanes&n)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var s=e;r=Ju;var u=s.current.memoizedState.isDehydrated;if(u&&(Ms(s,l).flags|=256),l=Dm(s,l,!1),l!==2){if(xg&&!u){s.errorRecoveryDisabledLanes|=n,tl|=n,r=4;break e}n=Xa,Xa=r,n!==null&&(Xa===null?Xa=n:Xa.push.apply(Xa,n))}r=l}if(n=!1,r!==2)continue}}if(r===1){Ms(e,0),Wr(e,t,0,!0);break}e:{switch(o=e,n=r,n){case 0:case 1:throw Error(O(345));case 4:if((t&4194048)!==t)break;case 6:Wr(o,t,eo,!Yr);break e;case 2:Xa=null;break;case 3:case 5:break;default:throw Error(O(329))}if((t&62914560)===t&&(r=ad+300-to(),10<r)){if(Wr(o,t,eo,!Yr),Gf(o,0,!0)!==0)break e;yr=t,o.timeoutHandle=DS(My.bind(null,o,a,Xa,Of,gh,t,eo,tl,ks,Yr,n,"Throttled",-0,0),r);break e}My(o,a,Xa,Of,gh,t,eo,tl,ks,Yr,n,null,-0,0)}}break}while(1);Tr(e)}function My(e,t,a,o,r,n,l,s,u,i,c,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gr},tS(t,n,d);var g=(n&62914560)===n?ad-to():(n&4194048)===n?nS-to():0;if(g=hE(d,g),g!==null){yr=n,e.cancelPendingCommit=g(By.bind(null,e,t,n,a,o,r,l,s,u,c,d,null,f,p)),Wr(e,n,l,!i);return}}By(e,t,n,a,o,r,l,s,u)}function Ok(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!ro(n(),r))return!1}catch(l){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wr(e,t,a,o){t&=~vg,t&=~tl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-oo(r),l=1<<n;o[n]=-1,r&=~l}a!==0&&mb(e,a,t)}function od(){return(ut&6)===0?(Ii(0,!1),!1):!0}function Cg(){if(Ye!==null){if(pt===0)var e=Ye.return;else e=Ye,xr=fl=null,rg(e),bs=null,si=0,e=Ye;for(;e!==null;)HL(e.alternate,e),e=e.return;Ye=null}}function Ms(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Qk(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),yr=0,Cg(),Lt=e,Ye=a=vr(e.current,null),Ze=t,pt=0,Qa=null,Yr=!1,Fs=xi(e,t),xg=!1,ks=eo=vg=tl=ln=Xt=0,Xa=Ju=null,gh=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var r=31-oo(o),n=1<<r;t|=e[r],o&=~n}return Ar=t,Kf(),a}function iS(e,t){Ne=null,Ee.H=ii,t===zs||t===Qf?(t=cy(),pt=3):t===Qh?(t=cy(),pt=4):pt=t===pg?8:t!==null&&typeof t==="object"&&typeof t.then==="function"?6:1,Qa=t,Ye===null&&(Xt=1,Df(e,Co(t,e.current)))}function cS(){var e=no.current;return e===null?!0:(Ze&4194048)===Ze?bo===null?!0:!1:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===bo:!1}function fS(){var e=Ee.H;return Ee.H=ii,e===null?ii:e}function dS(){var e=Ee.A;return Ee.A=Ek,e}function Bf(){Xt=4,Yr||(Ze&4194048)!==Ze&&no.current!==null||(Fs=!0),(ln&134217727)===0&&(tl&134217727)===0||Lt===null||Wr(Lt,Ze,eo,!1)}function Dm(e,t,a){var o=ut;ut|=2;var r=fS(),n=dS();if(Lt!==e||Ze!==t)Of=null,Ms(e,t);t=!1;var l=Xt;e:do try{if(pt!==0&&Ye!==null){var s=Ye,u=Qa;switch(pt){case 8:Cg(),l=6;break e;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var i=pt;if(pt=0,Qa=null,gs(e,s,u,i),a&&Fs){l=0;break e}break;default:i=pt,pt=0,Qa=null,gs(e,s,u,i)}}Bk(),l=Xt;break}catch(c){iS(e,c)}while(1);return t&&e.shellSuspendCounter++,xr=fl=null,ut=o,Ee.H=r,Ee.A=n,Ye===null&&(Lt=null,Ze=0,Kf()),l}function Bk(){for(;Ye!==null;)pS(Ye)}function Pk(e,t){var a=ut;ut|=2;var o=fS(),r=dS();Lt!==e||Ze!==t?(Of=null,Mf=to()+500,Ms(e,t)):Fs=xi(e,t);e:do try{if(pt!==0&&Ye!==null){t=Ye;var n=Qa;t:switch(pt){case 1:pt=0,Qa=null,gs(e,t,n,1);break;case 2:case 9:if(iy(n)){pt=0,Qa=null,Oy(t);break}t=function(){pt!==2&&pt!==9||Lt!==e||(pt=7),Tr(e)},n.then(t,t);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:iy(n)?(pt=0,Qa=null,Oy(t)):(pt=0,Qa=null,gs(e,t,n,7));break;case 5:var l=null;switch(Ye.tag){case 26:l=Ye.memoizedState;case 5:case 27:var s=Ye;if(l?BS(l):s.stateNode.complete){pt=0,Qa=null;var u=s.sibling;if(u!==null)Ye=u;else{var i=s.return;i!==null?(Ye=i,rd(i)):Ye=null}break t}}pt=0,Qa=null,gs(e,t,n,5);break;case 6:pt=0,Qa=null,gs(e,t,n,6);break;case 8:Cg(),Xt=6;break e;default:throw Error(O(462))}}Nk();break}catch(c){iS(e,c)}while(1);if(xr=fl=null,Ee.H=o,Ee.A=r,ut=a,Ye!==null)return 0;return Lt=null,Ze=0,Kf(),Xt}function Nk(){for(;Ye!==null&&!aD();)pS(Ye)}function pS(e){var t=qL(e.alternate,e,Ar);e.memoizedProps=e.pendingProps,t===null?rd(e):Ye=t}function Oy(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ty(a,t,t.pendingProps,t.type,void 0,Ze);break;case 11:t=Ty(a,t,t.pendingProps,t.type.render,t.ref,Ze);break;case 5:rg(t);default:HL(a,t),t=Ye=Gb(t,Ar),t=qL(a,t,Ar)}e.memoizedProps=e.pendingProps,t===null?rd(e):Ye=t}function gs(e,t,a,o){xr=fl=null,rg(t),bs=null,si=0;var r=t.return;try{if(Ik(e,r,t,a,Ze)){Xt=1,Df(e,Co(a,e.current)),Ye=null;return}}catch(n){if(r!==null)throw Ye=r,n;Xt=1,Df(e,Co(a,e.current)),Ye=null;return}if(t.flags&32768){if($e||o===1)e=!0;else if(Fs||(Ze&536870912)!==0)e=!1;else if(Yr=e=!0,o===2||o===9||o===3||o===6)o=no.current,o!==null&&o.tag===13&&(o.flags|=16384);mS(t,e)}else rd(t)}function rd(e){var t=e;do{if((t.flags&32768)!==0){mS(t,Yr);return}e=t.return;var a=wk(t.alternate,t,Ar);if(a!==null){Ye=a;return}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);Xt===0&&(Xt=5)}function mS(e,t){do{var a=Rk(e.alternate,e);if(a!==null){a.flags&=32767,Ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ye=e;return}Ye=e=a}while(e!==null);Xt=6,Ye=null}function By(e,t,a,o,r,n,l,s,u){e.cancelPendingCommit=null;do nd();while(ua!==0);if((ut&6)!==0)throw Error(O(327));if(t!==null){if(t===e.current)throw Error(O(177));if(n=t.lanes|t.childLanes,n|=Gh,dD(e,a,n,l,s,u),e===Lt&&(Ye=Lt=null,Ze=0),Es=t,$r=e,yr=a,xh=n,vh=r,lS=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qk(vf,function(){return CS(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=Ee.T,Ee.T=null,r=it.p,it.p=2,l=ut,ut|=4;try{Dk(e,t,a)}finally{ut=l,it.p=r,Ee.T=o}}ua=1,hS(),gS(),xS()}}function hS(){if(ua===1){ua=0;var e=$r,t=Es,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Ee.T,Ee.T=null;var o=it.p;it.p=2;var r=ut;ut|=4;try{JL(t,e);var n=Ah,l=Nb(e.containerInfo),{focusedElem:s,selectionRange:u}=n;if(l!==s&&s&&s.ownerDocument&&Pb(s.ownerDocument.documentElement,s)){if(u!==null&&Vh(s)){var{start:i,end:c}=u;if(c===void 0&&(c=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),g=s.textContent.length,v=Math.min(u.start,g),L=u.end===void 0?v:Math.min(u.end,g);!p.extend&&v>L&&(l=L,L=v,v=l);var m=ay(s,v),h=ay(s,L);if(m&&h&&(p.rangeCount!==1||p.anchorNode!==m.node||p.anchorOffset!==m.offset||p.focusNode!==h.node||p.focusOffset!==h.offset)){var x=d.createRange();x.setStart(m.node,m.offset),p.removeAllRanges(),v>L?(p.addRange(x),p.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),p.addRange(x))}}}}d=[];for(p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});typeof s.focus==="function"&&s.focus();for(s=0;s<d.length;s++){var C=d[s];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}_f=!!Ih,Ah=Ih=null}finally{ut=r,it.p=o,Ee.T=a}}e.current=t,ua=2}}function gS(){if(ua===2){ua=0;var e=$r,t=Es,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Ee.T,Ee.T=null;var o=it.p;it.p=2;var r=ut;ut|=4;try{YL(e,t.alternate,t)}finally{ut=r,it.p=o,Ee.T=a}}ua=3}}function xS(){if(ua===4||ua===3){ua=0,oD();var e=$r,t=Es,a=yr,o=lS;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ua=5:(ua=0,Es=$r=null,vS(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Jr=null),Nh(a),t=t.stateNode,ao&&typeof ao.onCommitFiberRoot==="function")try{ao.onCommitFiberRoot(gi,t,void 0,(t.current.flags&128)===128)}catch(u){}if(o!==null){t=Ee.T,r=it.p,it.p=2,Ee.T=null;try{for(var n=e.onRecoverableError,l=0;l<o.length;l++){var s=o[l];n(s.value,{componentStack:s.stack})}}finally{Ee.T=t,it.p=r}}(yr&3)!==0&&nd(),Tr(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Ch?$u++:($u=0,Ch=e):$u=0,Ii(0,!1)}}function vS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bi(t)))}function nd(){return hS(),gS(),xS(),CS()}function CS(){if(ua!==5)return!1;var e=$r,t=xh;xh=0;var a=Nh(yr),o=Ee.T,r=it.p;try{it.p=32>a?32:a,Ee.T=null,a=vh,vh=null;var n=$r,l=yr;if(ua=0,Es=$r=null,yr=0,(ut&6)!==0)throw Error(O(331));var s=ut;if(ut|=4,oS(n.current),eS(n,n.current,l,a),ut=s,Ii(0,!1),ao&&typeof ao.onPostCommitFiberRoot==="function")try{ao.onPostCommitFiberRoot(gi,n)}catch(u){}return!0}finally{it.p=r,Ee.T=o,vS(e,t)}}function Py(e,t,a){t=Co(a,t),t=dh(e.stateNode,t,2),e=el(e,t,2),e!==null&&(Xf(e,2),Tr(e))}function mt(e,t,a){if(e.tag===3)Py(e,e,a);else for(;t!==null;){if(t.tag===3){Py(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Jr===null||!Jr.has(o))){e=Co(a,e),a=BL(2),o=el(t,a,2),o!==null&&(PL(a,o,t,e),Xf(o,2),Tr(o));break}}t=t.return}}function km(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new Mk;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(xg=!0,r.add(a),e=zk.bind(null,e,t,a),t.then(e,e))}function zk(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Lt===e&&(Ze&a)===a&&(Xt===4||Xt===3&&(Ze&62914560)===Ze&&300>to()-ad?(ut&2)===0&&Ms(e,0):vg|=a,ks===Ze&&(ks=0)),Tr(e)}function yS(e,t){t===0&&(t=pb()),e=cl(e,t),e!==null&&(Xf(e,t),Tr(e))}function Fk(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),yS(e,a)}function Uk(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:r}=e;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(O(314))}o!==null&&o.delete(t),yS(e,a)}function qk(e,t){return Ph(e,t)}var Pf=null,os=null,yh=!1,Nf=!1,Em=!1,Kr=0;function Tr(e){e!==os&&e.next===null&&(os===null?Pf=os=e:os=os.next=e),Nf=!0,yh||(yh=!0,_k())}function Ii(e,t){if(!Em&&Nf){Em=!0;do{var a=!1;for(var o=Pf;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var l=o.suspendedLanes,s=o.pingedLanes;n=(1<<31-oo(42|e)+1)-1,n&=r&~(l&~s),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,Ny(o,n))}else n=Ze,n=Gf(o,o===Lt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||xi(o,n)||(a=!0,Ny(o,n));o=o.next}}while(a);Em=!1}}function Hk(){bS()}function bS(){Nf=yh=!1;var e=0;Kr!==0&&Zk()&&(e=Kr);for(var t=to(),a=null,o=Pf;o!==null;){var r=o.next,n=LS(o,t);if(n===0)o.next=null,a===null?Pf=r:a.next=r,r===null&&(os=a);else if(a=o,e!==0||(n&3)!==0)Nf=!0;o=r}ua!==0&&ua!==5||Ii(e,!1),Kr!==0&&(Kr=0)}function LS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:r}=e,n=e.pendingLanes&-62914561;0<n;){var l=31-oo(n),s=1<<l,u=r[l];if(u===-1){if((s&a)===0||(s&o)!==0)r[l]=fD(s,t)}else u<=t&&(e.expiredLanes|=s);n&=~s}if(t=Lt,a=Ze,a=Gf(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(pt===2||pt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&sm(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||xi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&sm(o),Nh(a)){case 2:case 8:a=fb;break;case 32:a=vf;break;case 268435456:a=db;break;default:a=vf}return o=SS.bind(null,e),a=Ph(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&sm(o),e.callbackPriority=2,e.callbackNode=null,2}function SS(e,t){if(ua!==0&&ua!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(nd()&&e.callbackNode!==a)return null;var o=Ze;if(o=Gf(e,e===Lt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0)return null;return uS(e,o,t),LS(e,to()),e.callbackNode!=null&&e.callbackNode===a?SS.bind(null,e):null}function Ny(e,t){if(nd())return null;uS(e,t,!0)}function _k(){Jk(function(){(ut&6)!==0?Ph(cb,Hk):bS()})}function yg(){if(Kr===0){var e=ws;e===0&&(e=Uc,Uc<<=1,(Uc&261888)===0&&(Uc=256)),Kr=e}return Kr}function zy(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:$c(""+e)}function Fy(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Vk(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=zy((r[Ya]||null).action),l=o.submitter;l&&(t=(t=l[Ya]||null)?zy(t.formAction):l.getAttribute("formAction"),t!==null&&(n=t,l=null));var s=new jf("action","action",null,o,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Kr!==0){var u=l?Fy(r,l):new FormData(r);ch(a,{pending:!0,data:u,method:r.method,action:n},null,u)}}else typeof n==="function"&&(s.preventDefault(),u=l?Fy(r,l):new FormData(r),ch(a,{pending:!0,data:u,method:r.method,action:n},n,u))},currentTarget:r}]})}}for(qu=0;qu<Jm.length;qu++)Hu=Jm[qu],bh=Hu.toLowerCase(),Lh=Hu[0].toUpperCase()+Hu.slice(1),Uo(bh,"on"+Lh);var Hu,bh,Lh,qu;Uo(Fb,"onAnimationEnd");Uo(Ub,"onAnimationIteration");Uo(qb,"onAnimationStart");Uo("dblclick","onDoubleClick");Uo("focusin","onFocus");Uo("focusout","onBlur");Uo(rk,"onTransitionRun");Uo(nk,"onTransitionStart");Uo(lk,"onTransitionCancel");Uo(Hb,"onTransitionEnd");As("onMouseEnter",["mouseout","mouseover"]);As("onMouseLeave",["mouseout","mouseover"]);As("onPointerEnter",["pointerout","pointerover"]);As("onPointerLeave",["pointerout","pointerover"]);sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));sl("onBeforeInput",["compositionend","keypress","textInput","paste"]);sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ci="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(" "),Gk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ci));function IS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],r=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var l=o.length-1;0<=l;l--){var s=o[l],u=s.instance,i=s.currentTarget;if(s=s.listener,u!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=i;try{n(r)}catch(c){yf(c)}r.currentTarget=null,n=u}else for(l=0;l<o.length;l++){if(s=o[l],u=s.instance,i=s.currentTarget,s=s.listener,u!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=i;try{n(r)}catch(c){yf(c)}r.currentTarget=null,n=u}}}}function je(e,t){var a=t[Gm];a===void 0&&(a=t[Gm]=new Set);var o=e+"__bubble";a.has(o)||(TS(t,e,2,!1),a.add(o))}function Mm(e,t,a){var o=0;t&&(o|=4),TS(a,e,o,t)}var Kc="_reactListening"+Math.random().toString(36).slice(2);function AS(e){if(!e[Kc]){e[Kc]=!0,Cb.forEach(function(a){a!=="selectionchange"&&(Gk.has(a)||Mm(a,!1,e),Mm(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kc]||(t[Kc]=!0,Mm("selectionchange",!1,t))}}function TS(e,t,a,o){switch(zS(t)){case 2:var r=yE;break;case 8:r=bE;break;default:r=Ig}a=r.bind(null,t,a,e),r=void 0,!Km||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Om(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var l=o.tag;if(l===3||l===4){var s=o.stateNode.containerInfo;if(s===r)break;if(l===4)for(l=o.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===r)return;l=l.return}for(;s!==null;){if(l=ss(s),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){o=n=l;continue e}s=s.parentNode}}o=o.return}wb(function(){var i=n,c=Uh(a),d=[];e:{var f=_b.get(e);if(f!==void 0){var p=jf,g=e;switch(e){case"keypress":if(tf(a)===0)break e;case"keydown":case"keyup":p=ND;break;case"focusin":g="focus",p=dm;break;case"focusout":g="blur",p=dm;break;case"beforeblur":case"afterblur":p=dm;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=YC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ID;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=UD;break;case Fb:case Ub:case qb:p=wD;break;case Hb:p=HD;break;case"scroll":case"scrollend":p=LD;break;case"wheel":p=VD;break;case"copy":case"cut":case"paste":p=DD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=KC;break;case"toggle":case"beforetoggle":p=XD}var v=(t&4)!==0,L=!v&&(e==="scroll"||e==="scrollend"),m=v?f!==null?f+"Capture":null:f;v=[];for(var h=i,x;h!==null;){var C=h;if(x=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||x===null||m===null||(C=ai(h,m),C!=null&&v.push(fi(h,C,x))),L)break;h=h.return}0<v.length&&(f=new p(f,g,null,a,c),d.push({event:f,listeners:v}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&a!==Wm&&(g=a.relatedTarget||a.fromElement)&&(ss(g)||g[vi]))break e;if(p||f){if(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p){if(g=a.relatedTarget||a.toElement,p=i,g=g?ss(g):null,g!==null&&(L=hi(g),v=g.tag,g!==L||v!==5&&v!==27&&v!==6))g=null}else p=null,g=i;if(p!==g){if(v=YC,C="onMouseLeave",m="onMouseEnter",h="mouse",e==="pointerout"||e==="pointerover")v=KC,C="onPointerLeave",m="onPointerEnter",h="pointer";if(L=p==null?f:Pu(p),x=g==null?f:Pu(g),f=new v(C,h+"leave",p,a,c),f.target=L,f.relatedTarget=x,C=null,ss(c)===i&&(v=new v(m,h+"enter",g,a,c),v.target=x,v.relatedTarget=L,C=v),L=C,p&&g)t:{v=Xk,m=p,h=g,x=0;for(C=m;C;C=v(C))x++;C=0;for(var I=h;I;I=v(I))C++;for(;0<x-C;)m=v(m),x--;for(;0<C-x;)h=v(h),C--;for(;x--;){if(m===h||h!==null&&m===h.alternate){v=m;break t}m=v(m),h=v(h)}v=null}else v=null;p!==null&&Uy(d,f,p,v,!1),g!==null&&L!==null&&Uy(d,L,g,v,!0)}}}e:{if(f=i?Pu(i):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var b=$C;else if(JC(f))if(Ob)b=tk;else{b=$D;var S=JD}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?i&&Fh(i.elementType)&&(b=$C):b=ek;if(b&&(b=b(e,i))){Mb(d,b,a,c);break e}S&&S(e,f,i),e==="focusout"&&i&&f.type==="number"&&i.memoizedProps.value!=null&&Ym(f,"number",f.value)}switch(S=i?Pu(i):window,e){case"focusin":if(JC(S)||S.contentEditable==="true")cs=S,Zm=i,Gu=null;break;case"focusout":Gu=Zm=cs=null;break;case"mousedown":Qm=!0;break;case"contextmenu":case"mouseup":case"dragend":Qm=!1,oy(d,a,c);break;case"selectionchange":if(ok)break;case"keydown":case"keyup":oy(d,a,c)}var y;if(_h)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else is?kb(e,a)&&(T="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(T="onCompositionStart");if(T&&(Db&&a.locale!=="ko"&&(is||T!=="onCompositionStart"?T==="onCompositionEnd"&&is&&(y=Rb()):(jr=c,qh=("value"in jr)?jr.value:jr.textContent,is=!0)),S=zf(i,T),0<S.length&&(T=new WC(T,e,null,a,c),d.push({event:T,listeners:S}),y?T.data=y:(y=Eb(a),y!==null&&(T.data=y)))),y=YD?WD(e,a):KD(e,a))T=zf(i,"onBeforeInput"),0<T.length&&(S=new WC("onBeforeInput","beforeinput",null,a,c),d.push({event:S,listeners:T}),S.data=y);Vk(d,e,i,a,c)}IS(d,t)})}function fi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function zf(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=ai(e,a),r!=null&&o.unshift(fi(e,r,n)),r=ai(e,t),r!=null&&o.push(fi(e,r,n))),e.tag===3)return o;e=e.return}return[]}function Xk(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function Uy(e,t,a,o,r){for(var n=t._reactName,l=[];a!==null&&a!==o;){var s=a,u=s.alternate,i=s.stateNode;if(s=s.tag,u!==null&&u===o)break;s!==5&&s!==26&&s!==27||i===null||(u=i,r?(i=ai(a,n),i!=null&&l.unshift(fi(a,i,u))):r||(i=ai(a,n),i!=null&&l.push(fi(a,i,u)))),a=a.return}l.length!==0&&e.push({event:t,listeners:l})}var jk=/\\r\\n?/g,Yk=/\\u0000|\\uFFFD/g;function qy(e){return(typeof e==="string"?e:""+e).replace(jk,`\n`).replace(Yk,"")}function wS(e,t){return t=qy(t),qy(e)===t?!0:!1}function Ct(e,t,a,o,r,n){switch(a){case"children":typeof o==="string"?t==="body"||t==="textarea"&&o===""||Ts(e,o):(typeof o==="number"||typeof o==="bigint")&&t!=="body"&&Ts(e,""+o);break;case"className":_c(e,"class",o);break;case"tabIndex":_c(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":_c(e,a,o);break;case"style":Tb(e,o,n);break;case"data":if(t!=="object"){_c(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=$c(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o==="function"){e.setAttribute(a,"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}else typeof n==="function"&&(a==="formAction"?(t!=="input"&&Ct(e,t,"name",r.name,r,null),Ct(e,t,"formEncType",r.formEncType,r,null),Ct(e,t,"formMethod",r.formMethod,r,null),Ct(e,t,"formTarget",r.formTarget,r,null)):(Ct(e,t,"encType",r.encType,r,null),Ct(e,t,"method",r.method,r,null),Ct(e,t,"target",r.target,r,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=$c(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=gr);break;case"onScroll":o!=null&&je("scroll",e);break;case"onScrollEnd":o!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(O(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}a=$c(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":je("beforetoggle",e),je("toggle",e),Jc(e,"popover",o);break;case"xlinkActuate":ur(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ur(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ur(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ur(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ur(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ur(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ur(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ur(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ur(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Jc(e,"is",o);break;case"innerText":case"textContent":break;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=yD.get(a)||a,Jc(e,a,o)}}function Sh(e,t,a,o,r,n){switch(a){case"style":Tb(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(O(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"children":typeof o==="string"?Ts(e,o):(typeof o==="number"||typeof o==="bigint")&&Ts(e,""+o);break;case"onScroll":o!=null&&je("scroll",e);break;case"onScrollEnd":o!=null&&je("scrollend",e);break;case"onClick":o!=null&&(e.onclick=gr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yb.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),n=e[Ya]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,r),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,r);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Jc(e,a,o)}}}function Aa(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var l=a[n];if(l!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:Ct(e,t,n,l,a,null)}}r&&Ct(e,t,"srcSet",a.srcSet,a,null),o&&Ct(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var s=n=l=r=null,u=null,i=null;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"name":r=c;break;case"type":l=c;break;case"checked":u=c;break;case"defaultChecked":i=c;break;case"value":n=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(O(137,t));break;default:Ct(e,t,o,c,a,null)}}Sb(e,n,s,u,i,l,r,!1);return;case"select":je("invalid",e),o=l=n=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":n=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:Ct(e,t,r,s,a,null)}t=n,a=l,e.multiple=!!o,t!=null?vs(e,!!o,t,!1):a!=null&&vs(e,!!o,a,!0);return;case"textarea":je("invalid",e),n=r=o=null;for(l in a)if(a.hasOwnProperty(l)&&(s=a[l],s!=null))switch(l){case"value":o=s;break;case"defaultValue":r=s;break;case"children":n=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(O(91));break;default:Ct(e,t,l,s,a,null)}Ab(e,o,r,n);return;case"option":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Ct(e,t,u,o,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(o=0;o<ci.length;o++)je(ci[o],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(i in a)if(a.hasOwnProperty(i)&&(o=a[i],o!=null))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:Ct(e,t,i,o,a,null)}return;default:if(Fh(t)){for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!==void 0&&Sh(e,t,c,o,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(o=a[s],o!=null&&Ct(e,t,s,o,a,null))}function Wk(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,l=null,s=null,u=null,i=null,c=null;for(p in a){var d=a[p];if(a.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":u=d;default:o.hasOwnProperty(p)||Ct(e,t,p,null,o,d)}}for(var f in o){var p=o[f];if(d=a[f],o.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":n=p;break;case"name":r=p;break;case"checked":i=p;break;case"defaultChecked":c=p;break;case"value":l=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(O(137,t));break;default:p!==d&&Ct(e,t,f,p,o,d)}}jm(e,l,s,u,i,c,n,r);return;case"select":p=l=s=f=null;for(n in a)if(u=a[n],a.hasOwnProperty(n)&&u!=null)switch(n){case"value":break;case"multiple":p=u;default:o.hasOwnProperty(n)||Ct(e,t,n,null,o,u)}for(r in o)if(n=o[r],u=a[r],o.hasOwnProperty(r)&&(n!=null||u!=null))switch(r){case"value":f=n;break;case"defaultValue":s=n;break;case"multiple":l=n;default:n!==u&&Ct(e,t,r,n,o,u)}t=s,a=l,o=p,f!=null?vs(e,!!a,f,!1):!!o!==!!a&&(t!=null?vs(e,!!a,t,!0):vs(e,!!a,a?[]:"",!1));return;case"textarea":p=f=null;for(s in a)if(r=a[s],a.hasOwnProperty(s)&&r!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ct(e,t,s,null,o,r)}for(l in o)if(r=o[l],n=a[l],o.hasOwnProperty(l)&&(r!=null||n!=null))switch(l){case"value":f=r;break;case"defaultValue":p=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(O(91));break;default:r!==n&&Ct(e,t,l,r,o,n)}Ib(e,f,p);return;case"option":for(var g in a)if(f=a[g],a.hasOwnProperty(g)&&f!=null&&!o.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ct(e,t,g,null,o,f)}for(u in o)if(f=o[u],p=a[u],o.hasOwnProperty(u)&&f!==p&&(f!=null||p!=null))switch(u){case"selected":e.selected=f&&typeof f!=="function"&&typeof f!=="symbol";break;default:Ct(e,t,u,f,o,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in a)f=a[v],a.hasOwnProperty(v)&&f!=null&&!o.hasOwnProperty(v)&&Ct(e,t,v,null,o,f);for(i in o)if(f=o[i],p=a[i],o.hasOwnProperty(i)&&f!==p&&(f!=null||p!=null))switch(i){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(O(137,t));break;default:Ct(e,t,i,f,o,p)}return;default:if(Fh(t)){for(var L in a)f=a[L],a.hasOwnProperty(L)&&f!==void 0&&!o.hasOwnProperty(L)&&Sh(e,t,L,void 0,o,f);for(c in o)f=o[c],p=a[c],!o.hasOwnProperty(c)||f===p||f===void 0&&p===void 0||Sh(e,t,c,f,o,p);return}}for(var m in a)f=a[m],a.hasOwnProperty(m)&&f!=null&&!o.hasOwnProperty(m)&&Ct(e,t,m,null,o,f);for(d in o)f=o[d],p=a[d],!o.hasOwnProperty(d)||f===p||f==null&&p==null||Ct(e,t,d,f,o,p)}function Hy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kk(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],{transferSize:n,initiatorType:l,duration:s}=r;if(n&&s&&Hy(l)){l=0,s=r.responseEnd;for(o+=1;o<a.length;o++){var u=a[o],i=u.startTime;if(i>s)break;var c=u.transferSize,d=u.initiatorType;c&&Hy(d)&&(u=u.responseEnd,l+=c*(u<s?1:(s-i)/(u-i)))}if(--o,t+=8*(n+l)/(r.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}var Ih=null,Ah=null;function Ff(e){return e.nodeType===9?e:e.ownerDocument}function _y(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 RS(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Th(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 Bm=null;function Zk(){var e=window.event;if(e&&e.type==="popstate"){if(e===Bm)return!1;return Bm=e,!0}return Bm=null,!1}var DS=typeof setTimeout==="function"?setTimeout:void 0,Qk=typeof clearTimeout==="function"?clearTimeout:void 0,Vy=typeof Promise==="function"?Promise:void 0,Jk=typeof queueMicrotask==="function"?queueMicrotask:typeof Vy<"u"?function(e){return Vy.resolve(null).then(e).catch($k)}:DS;function $k(e){setTimeout(function(){throw e})}function un(e){return e==="head"}function Gy(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(r),Bs(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")ei(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ei(a);for(var n=a.firstChild;n;){var l=n.nextSibling,s=n.nodeName;n[Ci]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=l}}else a==="body"&&ei(e.ownerDocument.body);a=r}while(a);Bs(t)}function Xy(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function wh(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":wh(a),zh(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function eE(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[Ci])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=So(e.nextSibling),e===null)break}return null}function tE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=So(e.nextSibling),e===null)return null}return e}function kS(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=So(e.nextSibling),e===null)return null}return e}function Rh(e){return e.data==="$?"||e.data==="$~"}function Dh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function aE(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function So(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kh=null;function jy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return So(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Yy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ES(e,t,a){switch(t=Ff(a),e){case"html":if(e=t.documentElement,!e)throw Error(O(452));return e;case"head":if(e=t.head,!e)throw Error(O(453));return e;case"body":if(e=t.body,!e)throw Error(O(454));return e;default:throw Error(O(451))}}function ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zh(e)}var Io=new Map,Wy=new Set;function Uf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wr=it.d;it.d={f:oE,r:rE,D:nE,C:lE,L:sE,m:uE,X:cE,S:iE,M:fE};function oE(){var e=wr.f(),t=od();return e||t}function rE(e){var t=Ps(e);t!==null&&t.tag===5&&t.type==="form"?TL(t):wr.r(e)}var Us=typeof document>"u"?null:document;function MS(e,t,a){var o=Us;if(o&&typeof t==="string"&&t){var r=vo(t);r=\'link[rel="\'+e+\'"][href="\'+r+\'"]\',typeof a==="string"&&(r+=\'[crossorigin="\'+a+\'"]\'),Wy.has(r)||(Wy.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Aa(t,"link",e),ma(t),o.head.appendChild(t)))}}function nE(e){wr.D(e),MS("dns-prefetch",e,null)}function lE(e,t){wr.C(e,t),MS("preconnect",e,t)}function sE(e,t,a){wr.L(e,t,a);var o=Us;if(o&&e&&t){var r=\'link[rel="preload"][as="\'+vo(t)+\'"]\';t==="image"?a&&a.imageSrcSet?(r+=\'[imagesrcset="\'+vo(a.imageSrcSet)+\'"]\',typeof a.imageSizes==="string"&&(r+=\'[imagesizes="\'+vo(a.imageSizes)+\'"]\')):r+=\'[href="\'+vo(e)+\'"]\':r+=\'[href="\'+vo(e)+\'"]\';var n=r;switch(t){case"style":n=Os(e);break;case"script":n=qs(e)}Io.has(n)||(e=Et({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Io.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(Ai(n))||t==="script"&&o.querySelector(Ti(n))||(t=o.createElement("link"),Aa(t,"link",e),ma(t),o.head.appendChild(t)))}}function uE(e,t){wr.m(e,t);var a=Us;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",r=\'link[rel="modulepreload"][as="\'+vo(o)+\'"][href="\'+vo(e)+\'"]\',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=qs(e)}if(!Io.has(n)&&(e=Et({rel:"modulepreload",href:e},t),Io.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ti(n)))return}o=a.createElement("link"),Aa(o,"link",e),ma(o),a.head.appendChild(o)}}}function iE(e,t,a){wr.S(e,t,a);var o=Us;if(o&&e){var r=xs(o).hoistableStyles,n=Os(e);t=t||"default";var l=r.get(n);if(!l){var s={loading:0,preload:null};if(l=o.querySelector(Ai(n)))s.loading=5;else{e=Et({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Io.get(n))&&bg(e,a);var u=l=o.createElement("link");ma(u),Aa(u,"link",e),u._p=new Promise(function(i,c){u.onload=i,u.onerror=c}),u.addEventListener("load",function(){s.loading|=1}),u.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ff(l,t,o)}l={type:"stylesheet",instance:l,count:1,state:s},r.set(n,l)}}}function cE(e,t){wr.X(e,t);var a=Us;if(a&&e){var o=xs(a).hoistableScripts,r=qs(e),n=o.get(r);n||(n=a.querySelector(Ti(r)),n||(e=Et({src:e,async:!0},t),(t=Io.get(r))&&Lg(e,t),n=a.createElement("script"),ma(n),Aa(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function fE(e,t){wr.M(e,t);var a=Us;if(a&&e){var o=xs(a).hoistableScripts,r=qs(e),n=o.get(r);n||(n=a.querySelector(Ti(r)),n||(e=Et({src:e,async:!0,type:"module"},t),(t=Io.get(r))&&Lg(e,t),n=a.createElement("script"),ma(n),Aa(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function Ky(e,t,a,o){var r=(r=Zr.current)?Uf(r):null;if(!r)throw Error(O(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(t=Os(a.href),a=xs(r).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Os(a.href);var n=xs(r).hoistableStyles,l=n.get(e);if(l||(r=r.ownerDocument||r,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,l),(n=r.querySelector(Ai(e)))&&!n._p&&(l.instance=n,l.state.loading=5),Io.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Io.set(e,a),n||dE(r,e,a,l.state))),t&&o===null)throw Error(O(528,""));return l}if(t&&o!==null)throw Error(O(529,""));return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(t=qs(a),a=xs(r).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(O(444,e))}}function Os(e){return\'href="\'+vo(e)+\'"\'}function Ai(e){return\'link[rel="stylesheet"][\'+e+"]"}function OS(e){return Et({},e,{"data-precedence":e.precedence,precedence:null})}function dE(e,t,a,o){e.querySelector(\'link[rel="preload"][as="style"][\'+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Aa(t,"link",a),ma(t),e.head.appendChild(t))}function qs(e){return\'[src="\'+vo(e)+\'"]\'}function Ti(e){return"script[async]"+e}function Zy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector(\'style[data-href~="\'+vo(a.href)+\'"]\');if(o)return t.instance=o,ma(o),o;var r=Et({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ma(o),Aa(o,"style",r),ff(o,a.precedence,e),t.instance=o;case"stylesheet":r=Os(a.href);var n=e.querySelector(Ai(r));if(n)return t.state.loading|=4,t.instance=n,ma(n),n;o=OS(a),(r=Io.get(r))&&bg(o,r),n=(e.ownerDocument||e).createElement("link"),ma(n);var l=n;return l._p=new Promise(function(s,u){l.onload=s,l.onerror=u}),Aa(n,"link",o),t.state.loading|=4,ff(n,a.precedence,e),t.instance=n;case"script":if(n=qs(a.src),r=e.querySelector(Ti(n)))return t.instance=r,ma(r),r;if(o=a,r=Io.get(n))o=Et({},a),Lg(o,r);return e=e.ownerDocument||e,r=e.createElement("script"),ma(r),Aa(r,"link",o),e.head.appendChild(r),t.instance=r;case"void":return null;default:throw Error(O(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,ff(o,a.precedence,e));return t.instance}function ff(e,t,a){for(var o=a.querySelectorAll(\'link[rel="stylesheet"][data-precedence],style[data-precedence]\'),r=o.length?o[o.length-1]:null,n=r,l=0;l<o.length;l++){var s=o[l];if(s.dataset.precedence===t)n=s;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function bg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var df=null;function Qy(e,t,a){if(df===null){var o=new Map,r=df=new Map;r.set(a,o)}else r=df,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(r=0;r<a.length;r++){var n=a[r];if(!(n[Ci]||n[La]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var l=n.getAttribute(t)||"";l=e+l;var s=o.get(l);s?s.push(n):o.set(l,[n])}}return o}function Jy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function pE(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence==="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==="string")return!0}return!1}function BS(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function mE(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Os(o.href),n=t.querySelector(Ai(r));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=qf.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,ma(n);return}n=t.ownerDocument||t,o=OS(o),(r=Io.get(r))&&bg(o,r),n=n.createElement("link"),ma(n);var l=n;l._p=new Promise(function(s,u){l.onload=s,l.onerror=u}),Aa(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Pm=0;function hE(e,t){return e.stylesheets&&e.count===0&&pf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&pf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},60000+t);0<e.imgBytes&&Pm===0&&(Pm=62500*Kk());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>Pm?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hf=null;function pf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hf=new Map,t.forEach(gE,e),Hf=null,qf.call(e))}function gE(e,t){if(!(t.state.loading&4)){var a=Hf.get(e);if(a)var o=a.get(null);else{a=new Map,Hf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var l=r[n];if(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")a.set(l.dataset.precedence,l),o=l}o&&a.set(null,o)}r=t.instance,l=r.getAttribute("data-precedence"),n=a.get(l)||o,n===o&&a.set(null,r),a.set(l,r),this.count++,o=qf.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var di={$$typeof:hr,Provider:null,Consumer:null,_currentValue:Kn,_currentValue2:Kn,_threadCount:0};function xE(e,t,a,o,r,n,l,s,u){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=um(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=um(0),this.hiddenUpdates=um(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function vE(e,t,a,o,r,n,l,s,u,i,c,d){return e=new xE(e,t,a,l,u,i,c,d,s),t=1,n===!0&&(t|=24),n=$a(3,null,null,t),e.current=n,n.stateNode=e,t=Kh(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:a,cache:t},Jh(n),e}function CE(e){if(!e)return ps;return e=ps,e}function PS(e,t,a,o,r,n){r=CE(r),o.context===null?o.context=r:o.pendingContext=r,o=$n(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(o.callback=n),a=el(e,o,t),a!==null&&(ja(a,e,t),ju(a,e,t))}function $y(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Sg(e,t){$y(e,t),(e=e.alternate)&&$y(e,t)}function NS(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&ja(t,e,67108864),Sg(e,67108864)}}function eb(e){if(e.tag===13||e.tag===31){var t=Lo();t=xb(t);var a=cl(e,t);a!==null&&ja(a,e,t),Sg(e,t)}}var _f=!0;function yE(e,t,a,o){var r=Ee.T;Ee.T=null;var n=it.p;try{it.p=2,Ig(e,t,a,o)}finally{it.p=n,Ee.T=r}}function bE(e,t,a,o){var r=Ee.T;Ee.T=null;var n=it.p;try{it.p=8,Ig(e,t,a,o)}finally{it.p=n,Ee.T=r}}function Ig(e,t,a,o){if(_f){var r=Eh(o);if(r===null)Om(e,t,o,Vf,a),tb(e,o);else if(SE(r,e,t,a,o))o.stopPropagation();else if(tb(e,o),t&4&&-1<LE.indexOf(e)){for(;r!==null;){var n=Ps(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var l=Xn(n.pendingLanes);if(l!==0){var s=n;s.pendingLanes|=2;for(s.entangledLanes|=2;l;){var u=1<<31-oo(l);s.entanglements[1]|=u,l&=~u}Tr(n),(ut&6)===0&&(Mf=to()+500,Ii(0,!1))}}break;case 31:case 13:s=cl(n,2),s!==null&&ja(s,n,2),od(),Sg(n,2)}if(n=Eh(o),n===null&&Om(e,t,o,Vf,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else Om(e,t,o,null,a)}}function Eh(e){return e=Uh(e),Ag(e)}var Vf=null;function Ag(e){if(Vf=null,e=ss(e),e!==null){var t=hi(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=nb(t),e!==null)return e;e=null}else if(a===31){if(e=lb(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Vf=e,null}function zS(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(rD()){case cb:return 2;case fb:return 8;case vf:case nD:return 32;case db:return 268435456;default:return 32}default:return 32}}var Mh=!1,en=null,tn=null,an=null,pi=new Map,mi=new Map,Gr=[],LE="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 tb(e,t){switch(e){case"focusin":case"focusout":en=null;break;case"dragenter":case"dragleave":tn=null;break;case"mouseover":case"mouseout":an=null;break;case"pointerover":case"pointerout":pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mi.delete(t.pointerId)}}function Mu(e,t,a,o,r,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Ps(t),t!==null&&NS(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e}function SE(e,t,a,o,r){switch(t){case"focusin":return en=Mu(en,e,t,a,o,r),!0;case"dragenter":return tn=Mu(tn,e,t,a,o,r),!0;case"mouseover":return an=Mu(an,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return pi.set(n,Mu(pi.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,mi.set(n,Mu(mi.get(n)||null,e,t,a,o,r)),!0}return!1}function FS(e){var t=ss(e.target);if(t!==null){var a=hi(t);if(a!==null){if(t=a.tag,t===13){if(t=nb(a),t!==null){e.blockedOn=t,qC(e.priority,function(){eb(a)});return}}else if(t===31){if(t=lb(a),t!==null){e.blockedOn=t,qC(e.priority,function(){eb(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Eh(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Wm=o,a.target.dispatchEvent(o),Wm=null}else return t=Ps(a),t!==null&&NS(t),e.blockedOn=a,!1;t.shift()}return!0}function ab(e,t,a){mf(e)&&a.delete(t)}function IE(){Mh=!1,en!==null&&mf(en)&&(en=null),tn!==null&&mf(tn)&&(tn=null),an!==null&&mf(an)&&(an=null),pi.forEach(ab),mi.forEach(ab)}function Zc(e,t){e.blockedOn===t&&(e.blockedOn=null,Mh||(Mh=!0,Hn(qn,IE)))}var Qc=null;function ob(e){Qc!==e&&(Qc=e,Hn(qn,function(){Qc===e&&(Qc=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!=="function")if(Ag(o||a)===null)continue;else break;var n=Ps(a);n!==null&&(e.splice(t,3),t-=3,ch(n,{pending:!0,data:r,method:a.method,action:o},o,r))}}))}function Bs(e){function t(u){return Zc(u,e)}en!==null&&Zc(en,e),tn!==null&&Zc(tn,e),an!==null&&Zc(an,e),pi.forEach(t),mi.forEach(t);for(var a=0;a<Gr.length;a++){var o=Gr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Gr.length&&(a=Gr[0],a.blockedOn===null);)FS(a),a.blockedOn===null&&Gr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],l=r[Ya]||null;if(typeof n==="function")l||ob(a);else if(l){var s=null;if(n&&n.hasAttribute("formAction")){if(r=n,l=n[Ya]||null)s=l.formAction;else if(Ag(r)!==null)continue}else s=l.action;typeof s==="function"?a[o+1]=s:(a.splice(o,3),o-=3),ob(a)}}}function AE(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(l){return r=l})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Tg(e){this._internalRoot=e}wg.prototype.render=Tg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));var a=t.current,o=Lo();PS(a,o,e,t,null,null)};wg.prototype.unmount=Tg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;PS(e.current,2,null,e,null,null),od(),t[vi]=null}};function wg(e){this._internalRoot=e}wg.prototype.unstable_scheduleHydration=function(e){if(e){var t=vb();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Gr.length&&t!==0&&t<Gr[a].priority;a++);Gr.splice(a,0,e),a===0&&FS(e)}};var rb=Kl;if(rb!=="19.2.8")throw Error(O(527,rb,"19.2.8"));it.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error(O(188));throw e=Object.keys(e).join(","),Error(O(268,e))}return e=QR(t),e=e!==null?sb(e):null,e=e===null?null:e.stateNode,e};var TE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:Ee,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(rs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!rs.isDisabled&&rs.supportsFiber)try{gi=rs.inject(TE),ao=rs}catch(e){}}var rs;var Rg=function(e,t){if(!ZR(e))throw Error(O(299));var a=!1,o="",r=bk,n=Lk,l=Sk;return t!==null&&t!==void 0&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=vE(e,1,!1,null,null,a,o,null,r,n,l,AE),e[vi]=t.current,AS(e),new Tg(t)};US();class dl{constructor(){}static noop(){return dl.callback(()=>{})}static callback(e){return{dispose:e}}static nullable(e){return e??dl.noop()}}class Hs{resources=[];_disposed=!1;get disposed(){return this._disposed}use(e){return this.assertOpen(),this.resources.push(e),e}adopt(e,t){return this.assertOpen(),this.resources.push(dl.callback(()=>t(e))),e}defer(e){this.assertOpen(),this.resources.push(dl.callback(e))}dispose(){if(this._disposed)return;this._disposed=!0;let e=this.resources.pop();while(e)e.dispose(),e=this.resources.pop()}assertOpen(){if(this._disposed)throw Error("cannot register a resource on a disposed Disposer")}}function qS(e,t){if(Object.is(e,t))return!0;if(typeof e!=="object"||typeof t!=="object"||e===null||t===null)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;return a.every((r)=>Object.hasOwn(t,r)&&Object.is(e[r],t[r]))}class ld{source;select;events;state;constructor(e,t,a){this.source=e;this.select=t;this.events=a;this.state=this.select(this.source)}subscribe=(e)=>{let t=new Hs,a=()=>{let o=this.select(this.source);if(!qS(this.state,o))this.state=o,e()};for(let o of this.events)t.defer(this.source.events.on(o,a));return a(),()=>{t.dispose()}};getSnapshot=()=>this.state;getServerSnapshot=()=>this.state}W();function sd(e,t){ce(()=>{let a=new Hs;try{e(a)}catch(o){throw a.dispose(),o}return()=>{a.dispose()}},t)}W();function Dg(e){return Fn(e.subscribe,e.getSnapshot,e.getServerSnapshot)}W();function kg(e,t,a){let o=z(t);o.current=t;let[r]=J(()=>new ld(e,(n)=>o.current(n),a));return Dg(r)}W();W();W();W();function Mt(){}var HS=Object.freeze([]),na=Object.freeze({});function _s(e){ce(e,HS)}W();var _S={};function Jt(e,t){let a=z(_S);if(a.current===_S)a.current=e(t);return a}W();var DE=()=>{},ye=typeof document<"u"?Pr:DE;function kE(e,t){return function(o,...r){let n=new URL(e);return n.searchParams.set("code",o.toString()),r.forEach((l)=>n.searchParams.append("args[]",l)),`${t} error #${o}; visit ${n} for the full message.`}}var EE=kE("https://base-ui.com/production-error","Base UI"),ka=EE;W();var Eg=Ue(void 0);function cn(){let e=Be(Eg);if(!e)throw Error(ka(73));return e}W();var zg=TR(Og(),1);W();var VE=Og();function GE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var XE=typeof Object.is==="function"?Object.is:GE,jE=VE.useSyncExternalStore,YE=z,WE=ce,KE=Le,ZE=Po;var Bg=function(e,t,a,o,r){var n=YE(null);if(n.current===null){var l={hasValue:!1,value:null};n.current=l}else l=n.current;n=KE(function(){function u(p){if(!i){if(i=!0,c=p,p=o(p),r!==void 0&&l.hasValue){var g=l.value;if(r(g,p))return d=g}return d=p}if(g=d,XE(c,p))return g;var v=o(p);if(r!==void 0&&r(g,v))return c=p,g;return c=p,d=v}var i=!1,c,d,f=a===void 0?null:a;return[function(){return u(t())},f===null?void 0:function(){return u(f())}]},[t,a,o,r]);var s=jE(e,n[0],n[1]);return WE(function(){l.hasValue=!0,l.value=s},[s]),ZE(s),s};W();var QE=parseInt(Kl,10);function Vs(e){return QE>=e}W();var Pg=[],Ng=void 0;function VS(){return Ng}function GS(e){Pg.push(e)}function XS(e){let t=(a,o)=>{let r=Jt(JE).current,n;try{Ng=r;for(let l of Pg)l.before(r);n=e(a,o);for(let l of Pg)l.after(r);r.didInitialize=!0}finally{Ng=void 0}return n};return t.displayName=e.displayName||e.name,t}function JE(){return{didInitialize:!1}}var $E=Vs(19),eM=$E?aM:oM;function ud(e,t,a,o,r){return eM(e,t,a,o,r)}function tM(e,t,a,o,r){let n=dt(()=>t(e.getSnapshot(),a,o,r),[e,t,a,o,r]);return zg.useSyncExternalStore(e.subscribe,n,n)}GS({before(e){if(e.syncIndex=0,!e.didInitialize)e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let a=0;a<e.syncHooks.length;a+=1){let o=e.syncHooks[a],r=o.selector(o.store.state,o.a1,o.a2,o.a3);if(!Object.is(o.value,r))t=!0,o.value=r}if(t)e.syncTick+=1;return e.syncTick}},after(e){if(e.syncHooks.length>0){if(e.didChangeStore)e.didChangeStore=!1,e.subscribe=(t)=>{let a=new Set;for(let r of e.syncHooks)a.add(r.store);let o=[];for(let r of a)o.push(r.subscribe(t));return()=>{for(let r of o)r()}};zg.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}}});function aM(e,t,a,o,r){let n=VS();if(!n)return tM(e,t,a,o,r);let l=n.syncIndex;n.syncIndex+=1;let s;if(!n.didInitialize)s={store:e,selector:t,a1:a,a2:o,a3:r,value:t(e.getSnapshot(),a,o,r)},n.syncHooks.push(s);else if(s=n.syncHooks[l],s.store!==e||s.selector!==t||!Object.is(s.a1,a)||!Object.is(s.a2,o)||!Object.is(s.a3,r)){if(s.store!==e)n.didChangeStore=!0;s.store=e,s.selector=t,s.a1=a,s.a2=o,s.a3=r,s.value=t(e.getSnapshot(),a,o,r)}return s.value}function oM(e,t,a,o,r){return Bg(e.subscribe,e.getSnapshot,e.getSnapshot,(n)=>t(n,a,o,r))}class Fg{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=(e)=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let a of this.listeners){if(t!==this.updateTick)return;a(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){if(!Object.is(this.state[e],t))this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,a,o){return ud(this,e,t,a,o)}}W();W();var wi={...se};var Ug=wi.useInsertionEffect,rM=Ug&&Ug!==wi.useLayoutEffect?Ug:(e)=>e();function Qe(e){let t=Jt(nM).current;return t.next=e,rM(t.effect),t.trampoline}function nM(){let e={next:void 0,callback:lM,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function lM(){}class pl extends Fg{constructor(e,t={},a){super(e);this.context=t,this.selectors=a}useSyncedValue(e,t){Po(e);let a=this;ye(()=>{if(a.state[e]!==t)a.set(e,t)},[a,e,t])}useSyncedValueWithCleanup(e,t){let a=this;ye(()=>{if(a.state[e]!==t)a.set(e,t);return()=>{a.set(e,void 0)}},[a,e,t])}useSyncedValues(e){let t=this,a=Object.values(e);ye(()=>{t.update(e)},[t,...a])}useControlledProp(e,t){Po(e);let a=this,o=t!==void 0;ye(()=>{if(o&&!Object.is(a.state[e],t))a.setState({...a.state,[e]:t})},[a,e,t,o])}select(e,t,a,o){let r=this.selectors[e];return r(this.state,t,a,o)}useState(e,t,a,o){return Po(e),ud(this,this.selectors[e],t,a,o)}useContextCallback(e,t){Po(e);let a=Qe(t??Mt);this.context[e]=a}useStateSetter(e){let t=z(void 0);if(t.current===void 0)t.current=(a)=>{this.set(e,a)};return t.current}observe(e,t){let a;if(typeof e==="function")a=e;else a=this.selectors[e];let o=a(this.state);return t(o,o,this),this.subscribe((r)=>{let n=a(r);if(!Object.is(o,n)){let l=o;o=n,t(n,l,this)}})}}function id(){return typeof window<"u"}function Ea(e){if(cd(e))return(e.nodeName||"").toLowerCase();return"#document"}function ga(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sM(e){var t;return(t=(cd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cd(e){if(!id())return!1;return e instanceof Node||e instanceof ga(e).Node}function fn(e){if(!id())return!1;return e instanceof Element||e instanceof ga(e).Element}function ia(e){if(!id())return!1;return e instanceof HTMLElement||e instanceof ga(e).HTMLElement}function tr(e){if(!id()||typeof ShadowRoot>"u")return!1;return e instanceof ShadowRoot||e instanceof ga(e).ShadowRoot}function jS(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=ml(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function fd(e){return/^(html|body|#document)$/.test(Ea(e))}function ml(e){return ga(e).getComputedStyle(e)}function YS(e){if(Ea(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tr(e)&&e.host||sM(e);return tr(t)?t.host:t}function qo(...e){return()=>{for(let t=0;t<e.length;t+=1){let a=e[t];if(a)a()}}}function et(e){return e?.ownerDocument||document}function We(e,t,a,o){return e.addEventListener(t,a,o),()=>{e.removeEventListener(t,a,o)}}var dd=null,jF=globalThis.requestAnimationFrame;class WS{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=(e)=>{this.isScheduled=!1;let t=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let o=0;o<t.length;o+=1)t[o]?.(e)};request(e){let t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;let a=!1;if(!this.isScheduled||a)requestAnimationFrame(this.tick),this.isScheduled=!0;return t}cancel(e){let t=e-this.startId;if(t<0||t>=this.callbacks.length)return;if(this.callbacks[t]===null)return;this.callbacks[t]=null,this.callbacksCount-=1}}var pd=new WS;class Ao{static create(){return new Ao}static request(e){return pd.request(e)}static cancel(e){return pd.cancel(e)}currentId=dd;request(e){this.cancel(),this.currentId=pd.request(()=>{this.currentId=dd,e()})}cancel=()=>{if(this.currentId!==dd)pd.cancel(this.currentId),this.currentId=dd};disposeEffect=()=>this.cancel}function md(){let e=Jt(Ao.create).current;return _s(e.disposeEffect),e}var Ri=0;class To{static create(){return new To}currentId=Ri;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ri,t()},e)}isStarted(){return this.currentId!==Ri}clear=()=>{if(this.currentId!==Ri)clearTimeout(this.currentId),this.currentId=Ri};disposeEffect=()=>this.clear}function ar(){let e=Jt(To.create).current;return _s(e.disposeEffect),e}var uM=Symbol.for("react.transitional.element"),iM=Symbol.for("react.fragment");function KS(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:uM,type:e,key:o,ref:t!==void 0?t:null,props:a}}var hl=iM,A=KS,j=KS;var ZS=0;function hd(e){return ZS+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${ZS}`}function gd(e,t){if(typeof e==="string")return{description:e};if(typeof e==="function"){let a=e(t);return typeof a==="string"?{description:a}:a}return e}var Gs={};vc(Gs,{android:()=>$S,apple:()=>Hg,ios:()=>qg,linux:()=>mM,mac:()=>e0,windows:()=>pM});function cM(){if(typeof navigator>"u")return{userAgent:"",platform:"",maxTouchPoints:0};return{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:fM,platform:dM,maxTouchPoints:QS}=cM(),gl=fM.toLowerCase(),xl=dM.toLowerCase();var qg=/^i(os$|p)/.test(xl)||xl==="macintel"&&QS>1,JS="android",$S=xl===JS||gl.includes(JS),e0=!qg&&xl.startsWith("mac"),pM=xl.startsWith("win"),mM=!$S&&/^(linux|chrome os)/.test(xl),Hg=e0||qg;var Xs={};vc(Xs,{blink:()=>gM,gecko:()=>hM,webkit:()=>_g});var _g=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),hM=!_g&&gl.includes("firefox"),gM=!_g&&gl.includes("chrom");var Vg={};vc(Vg,{voiceOver:()=>xM});var xM=Hg;var xd={};vc(xd,{jsdom:()=>vM});var vM=/jsdom|happydom/.test(gl);function jt(e){let t=e.activeElement;while(t?.shadowRoot?.activeElement!=null)t=t.shadowRoot.activeElement;return t}function ze(e,t){if(!e||!t)return!1;let a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&tr(a)){let o=t;while(o){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Yt(e){if("composedPath"in e)return e.composedPath()[0]??e.target;return e.target}var Di="data-base-ui-focusable";var t0="input:not([type=\'hidden\']):not([disabled]),[contenteditable]:not([contenteditable=\'false\']),textarea:not([disabled])";var Cl="data-starting-style",ki="data-ending-style";var CM={[Cl]:""},yM={[ki]:""},js={transitionStatus(e){if(e==="starting")return CM;if(e==="ending")return yM;return null}};var Gg="data-open",Xg="data-closed",bM=Cl,LM=ki,a0="data-anchor-hidden";var jg="data-popup-open",r0="data-pressed";var dU={[jg]:""},pU={[jg]:"",[r0]:""},IM={[Gg]:""},AM={[Xg]:""},TM={[a0]:""};var Yg={open(e){if(e)return IM;return AM},anchorHidden(e){if(e)return TM;return null}},n0={...Yg,...js};function Cd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let a=e;return a.target!=null&&t.contains(a.target)}function l0(e){return e.matches("html,body")}function Wg(e){return ia(e)&&e.matches(t0)}function Kg(e){if(!e)return!1;return e.getAttribute("role")==="combobox"&&Wg(e)}function Ys(e){if(!e||xd.jsdom)return!0;try{return e.matches(":focus-visible")}catch(t){return!0}}function Zg(e){if(!e)return null;return e.hasAttribute(Di)?e:e.querySelector(`[${Di}]`)||e}function yl(e,t,a=!0){return e.filter((r)=>r.parentId===t).flatMap((r)=>[...!a||r.context?.open?[r]:[],...yl(e,r.id,a)])}function Qg(e,t){let a=[],o=e.find((r)=>r.id===t)?.parentId;while(o){let r=e.find((n)=>n.id===o);if(o=r?.parentId,r)a=a.concat(r)}return a}function s0(e){e.preventDefault(),e.stopPropagation()}function u0(e){return"nativeEvent"in e}function yd(e){if(e.pointerType===""&&e.isTrusted)return!0;if(Gs.android&&e.pointerType)return e.type==="click"&&e.buttons===1;return e.detail===0&&!e.pointerType}function i0(e){if(xd.jsdom)return!1;return!Gs.android&&e.width===0&&e.height===0||Gs.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function c0(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function wM(e){return e.visibility==="hidden"||e.visibility==="collapse"}function bd(e,t=e?ml(e):null){if(!e||!e.isConnected||!t||wM(t))return!1;if(typeof e.checkVisibility==="function")return e.checkVisibility();return t.display!=="none"&&t.display!=="contents"}var RM=\'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]\';function DM(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let a=e.getRootNode();return tr(a)?a.host:null}function $g(e){for(let t of Array.from(e.children))if(Ea(t)==="summary")return t;return null}function kM(e,t){let a=$g(t);return!!a&&(e===a||ze(a,e))}function f0(e){let t=e?Ea(e):"";return e!=null&&e.matches(RM)&&(t!=="summary"||e.parentElement!=null&&Ea(e.parentElement)==="details"&&$g(e.parentElement)===e)&&(t!=="details"||$g(e)==null)&&(t!=="input"||e.type!=="hidden")}function d0(e){if(!f0(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=DM(t)){let a=t!==e,o=Ea(t)==="slot";if(t.hasAttribute("inert"))return!1;if(a&&Ea(t)==="details"&&!t.open&&!kM(e,t)||t.hasAttribute("hidden")||!o&&!EM(t,a))return!1}return!0}function EM(e,t){let a=ml(e);if(!t)return bd(e,a);return a.display!=="none"}function p0(e){let t=e.tabIndex;if(t<0){let a=Ea(e);if(a==="details"||a==="audio"||a==="video"||ia(e)&&e.isContentEditable)return 0}return t}function Jg(e){if(Ea(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function MM(e,t){let a=Jg(e);if(!a)return!0;let o=t.find((r)=>{let n=Jg(r);return n?.name===a.name&&n.form===a.form&&n.checked});if(o)return o===a;return t.find((r)=>{let n=Jg(r);return n?.name===a.name&&n.form===a.form})===a}function m0(e){if(ia(e)&&Ea(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}if(ia(e)&&e.shadowRoot)return Array.from(e.shadowRoot.children);return Array.from(e.children)}function h0(e,t){m0(e).forEach((a)=>{if(f0(a))t.push(a);h0(a,t)})}function g0(e,t,a){m0(e).forEach((o)=>{if(ia(o)&&o.matches(t))a.push(o);g0(o,t,a)})}function Ld(e){return d0(e)&&p0(e)>=0}function ex(e){let t=[];return h0(e,t),t.filter(d0)}function Ei(e){let t=ex(e);return t.filter((a)=>p0(a)>=0&&MM(a,t))}function x0(e,t){let a=Ei(e),o=a.length;if(o===0)return;let r=jt(et(e)),n=a.indexOf(r),l=n===-1?t===1?0:o-1:n+t;return a[l]}function Sd(e){return x0(et(e).body,1)||e}function Id(e){return x0(et(e).body,-1)||e}function bl(e,t){let a=t||e.currentTarget,o=e.relatedTarget;return!o||!ze(a,o)}function v0(e){Ei(e).forEach((a)=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function tx(e){let t=[];g0(e,"[data-tabindex]",t),t.forEach((a)=>{let o=a.dataset.tabindex;if(delete a.dataset.tabindex,o)a.setAttribute("tabindex",o);else a.removeAttribute("tabindex")})}function ax(e){let t=new Map,a=0,o=0;return e.forEach((r,n)=>{let l=r.transitionStatus==="ending";if(t.set(r.id,{value:r,domIndex:n,visibleIndex:l?-1:a,offsetY:o}),o+=r.height||0,!l)a+=1}),t}function ox(e,t){let a=0;return e.map((o)=>{if(o.transitionStatus==="ending")return o;let r=a>=t;return a+=1,o.limited===r?o:{...o,limited:r}})}var Ho={toasts:(e)=>e.toasts,isEmpty:(e)=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:(e)=>e.focused,expanded:(e)=>e.hovering||e.focused,expandedOrOutOfFocus:(e)=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:(e)=>e.prevFocusElement};class rx extends pl{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:ax(e.toasts)},{},Ho)}setViewport=(e)=>{this.set("viewport",e)};syncProviderProps(e,t){let a=this.state.limit!==t;if(this.state.timeout===e&&!a)return;let o={timeout:e,limit:t};if(a){let r=ox(this.state.toasts,t);o.toasts=r,o.toastMetadata=ax(r)}this.update(o)}disposeEffect=()=>()=>{this.timers.forEach((e)=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let a=Ho.toastIndex(this.state,e);if(a===-1)return;let o=this.state.toasts[a];if(!t)o?.onRemove?.();let r=[...this.state.toasts];r.splice(a,1),this.setToasts(r)}addToast=(e)=>{let{timeout:t,limit:a}=this.state,o=e.id||hd("toast");if(e.id){let s=Ho.toast(this.state,e.id);if(s)if(s.transitionStatus==="ending")this.removeToast(e.id,!0);else{let{id:u,transitionStatus:i,...c}=e;return this.updateToastInternal(e.id,c,!0,!0),e.id}}let r={...e,id:o,updateKey:0,transitionStatus:"starting"},n=[r,...this.state.toasts];this.setToasts(ox(n,a));let l=r.timeout??t;if(r.type!=="loading"&&l>0)this.scheduleTimer(o,l,()=>this.closeToast(o));if(Ho.expandedOrOutOfFocus(this.state))this.pauseTimers();return o};updateToast=(e,t)=>{let a=Ho.toast(this.state,e);if(!a||a.transitionStatus==="ending")return;this.updateToastInternal(e,typeof t==="function"?t(a):t,!1,!0)};updateToastInternal=(e,t,a=!1,o=!1)=>{let{timeout:r,toasts:n}=this.state,l=Ho.toast(this.state,e);if(!l)return;if(l.transitionStatus==="ending")return;let s={...l,...t,...o&&{updateKey:l.updateKey+1}};this.setToasts(n.map((v)=>v.id===e?s:v));let u=s.timeout??r,i=l.timeout??r,c=Object.hasOwn(t,"timeout"),d=s.transitionStatus!=="ending"&&s.type!=="loading"&&u>0,f=this.timers.has(e),p=i!==u,g=l.type==="loading";if(!d&&f){this.clearTimer(e);return}if(d&&(!f||p||c||g||a)){if(this.clearTimer(e),this.scheduleTimer(e,u,()=>this.closeToast(e)),Ho.expandedOrOutOfFocus(this.state))this.pauseTimers()}};closeToast=(e)=>{let t=e===void 0,{limit:a,toasts:o}=this.state,r;if(t)r=o,this.clearTimers();else{let s=Ho.toast(this.state,e);if(!s)return;r=[s],this.clearTimer(e)}let n=o.map((s)=>t||s.id===e?{...s,transitionStatus:"ending",height:0}:s),l=ox(n,a);this.setToasts(l,!l.some((s)=>s.transitionStatus!=="ending")),r.forEach((s)=>{if(s.transitionStatus!=="ending")s.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let a=gd(t.loading),o=this.addToast({...a,type:"loading"}),r=e.then((n)=>{let l=gd(t.success,n);return this.updateToast(o,{...l,type:"success",timeout:l.timeout}),n}).catch((n)=>{let l=gd(t.error,n);return this.updateToast(o,{...l,type:"error",timeout:l.timeout}),Promise.reject(n)});if({}.hasOwnProperty.call(t,"setPromise"))t.setPromise(r);return r};pauseTimers(){if(this.areTimersPaused)return;this.areTimersPaused=!0,this.timers.forEach((e)=>{if(e.timeout)e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0)})}resumeTimers(){if(!this.areTimersPaused)return;this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=To.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()})}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=(e)=>{if(e.pointerType!=="touch")return;let t=Yt(e);if(ze(this.state.viewport,t))return;this.resumeTimers(),this.update({hovering:!1,focused:!1})};scheduleTimer(e,t,a){let o=Date.now(),n=!Ho.expandedOrOutOfFocus(this.state)?To.create():void 0;n?.start(t,()=>{this.handleTimerFired(e),a()}),this.timers.set(e,{timeout:n,start:o,delay:t,remaining:t,callback:a})}clearTimers(){this.timers.forEach((e)=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){if(this.timers.size===0)this.areTimersPaused=!1}setToasts(e,t=e.length===0){let a={toasts:e,toastMetadata:ax(e)};if(t)a.hovering=!1,a.focused=!1;this.update(a)}handleFocusManagement(e){let t=jt(et(this.state.viewport));if(!this.state.viewport||!ze(this.state.viewport,t)||!Ys(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let a=Ho.toasts(this.state),o=Ho.toastIndex(this.state,e),r=(l,s)=>{for(let u=l;u>=0&&u<a.length;u+=s)if(a[u].transitionStatus!=="ending")return a[u];return null},n=r(o+1,1)??r(o-1,-1);if(n)n.ref?.current?.focus();else this.restoreFocusToPrevElement()}}var C0=function(t){let{children:a,timeout:o=5000,limit:r=3,toastManager:n}=t,l=Jt(()=>new rx({timeout:o,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return _s(l.disposeEffect),ce(function(){if(!n)return;return n[" subscribe"](({action:i,options:c})=>{let d=c.id;if(i==="promise"&&c.promise)l.promiseToast(c.promise,c);else if(i==="update"&&d)l.updateToast(d,c.updates);else if(i==="close")l.closeToast(d);else l.addToast(c)})},[l,n]),j(Eg.Provider,{value:l,children:[A(OM,{store:l,timeout:o,limit:r}),a]})};function OM(e){let{store:t,timeout:a,limit:o}=e;return ye(()=>{t.syncProviderProps(a,o)},[t,a,o]),null}W();var y0={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Ws={...y0,position:"fixed",top:0,left:0},YU={...y0,position:"absolute"};W();var dn=Ce(function(t,a){let[o,r]=J();return ye(()=>{if(Vg.voiceOver&&Xs.webkit)r("button")},[]),A("span",{...t,ref:a,style:Ws,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});W();function Ks(e,t,a,o){let r=Jt(L0).current;if(BM(r,e,t,a,o))S0(r,[e,t,a,o]);return r.callback}function b0(e){let t=Jt(L0).current;if(PM(t,e))S0(t,e);return t.callback}function L0(){return{callback:null,cleanup:null,refs:[]}}function BM(e,t,a,o,r){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==r}function PM(e,t){return e.refs.length!==t.length||e.refs.some((a,o)=>a!==t[o])}function S0(e,t){if(e.refs=t,t.every((a)=>a==null)){e.callback=null;return}e.callback=(a)=>{if(e.cleanup)e.cleanup(),e.cleanup=null;if(a!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let n=t[r];if(n==null)continue;switch(typeof n){case"function":{let l=n(a);if(typeof l==="function")o[r]=l;break}case"object":{n.current=a;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let n=t[r];if(n==null)continue;switch(typeof n){case"function":{let l=o[r];if(typeof l==="function")l();else n(null);break}case"object":{n.current=null;break}default:}}}}}}W();function nx(e){if(!Wo(e))return null;let t=e,a=t.props;return(Vs(19)?a?.ref:t.ref)??null}function Mi(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t};return}function I0(e,t){let a={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let n=t[o](r);if(n!=null)Object.assign(a,n);continue}if(r===!0)a[`data-${o.toLowerCase()}`]="";else if(r)a[`data-${o.toLowerCase()}`]=r.toString()}return a}function A0(e,t){return typeof e==="function"?e(t):e}function T0(e,t){return typeof e==="function"?e(t):e}var lx={};function Ll(e,t,a,o,r){if(!a&&!o&&!r&&!e)return Ad(t);let n=Ad(e);if(t)n=Oi(n,t);if(a)n=Oi(n,a);if(o)n=Oi(n,o);if(r)n=Oi(n,r);return n}function w0(e){if(e.length===0)return lx;if(e.length===1)return Ad(e[0]);let t=Ad(e[0]);for(let a=1;a<e.length;a+=1)t=Oi(t,e[a]);return t}function Ad(e){if(sx(e))return{...D0(e,lx)};return NM(e)}function Oi(e,t){if(sx(t))return D0(t,e);return zM(e,t)}function NM(e){let t={...e};for(let a in t){let o=t[a];if(R0(a,o))t[a]=k0(o)}return t}function zM(e,t){if(!t)return e;for(let a in t){let o=t[a];switch(a){case"style":{e[a]=Mi(e.style,o);break}case"className":{e[a]=ux(e.className,o);break}default:if(R0(a,o))e[a]=FM(e[a],o);else e[a]=o}}return e}function R0(e,t){let a=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return a===111&&o===110&&r>=65&&r<=90&&(typeof t==="function"||typeof t>"u")}function sx(e){return typeof e==="function"}function D0(e,t){if(sx(e))return e(t);return e??lx}function FM(e,t){if(!t)return e;if(!e)return k0(t);return(...a)=>{let o=a[0];if(E0(o)){let n=o;Bi(n);let l=t(...a);if(!n.baseUIHandlerPrevented)e?.(...a);return l}let r=t(...a);return e?.(...a),r}}function k0(e){if(!e)return e;return(...t)=>{let a=t[0];if(E0(a))Bi(a);return e(...t)}}function Bi(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ux(e,t){if(t){if(e)return t+" "+e;return t}return e}function E0(e){return e!=null&&typeof e==="object"&&"nativeEvent"in e}W();function Ge(e,t,a={}){let o=t.render;if(a.enabled!==!1)o=_M(o);let r=UM(t,a,o);if(a.enabled===!1)return null;let n=a.state??na;return VM(e,o,r,n)}function UM(e,t,a){let{className:o,style:r}=e,{state:n=na,ref:l,props:s,stateAttributesMapping:u,enabled:i=!0}=t,c=i?A0(o,n):void 0,d=i?T0(r,n):void 0,f=i?I0(n,u):na,p=i&&s?qM(s):void 0,g=i?Mi(f,p)??{}:na;if(typeof document<"u")if(!i)Ks(null,null);else if(Array.isArray(l))g.ref=b0([g.ref,nx(a),...l]);else g.ref=Ks(g.ref,nx(a),l);if(!i)return na;if(c!==void 0)g.className=ux(g.className,c);if(d!==void 0)g.style=Mi(g.style,d);return g}function qM(e){if(Array.isArray(e))return w0(e);return Ll(void 0,e)}var HM=Symbol.for("react.lazy");function _M(e){if(e?.$$typeof!==HM)return e;let t=yc.toArray(e)[0];return Wo(t)?t:e}function VM(e,t,a,o){if(t){if(typeof t==="function")return t(a,o);let r=Ll(a,t.props);return r.ref=a.ref,Yl(t,r)}if(e){if(typeof e==="string")return GM(e,a)}throw Error(ka(8))}function GM(e,t){if(e==="button")return at("button",{type:"button",...t,key:t.key});if(e==="img")return at("img",{alt:"",...t,key:t.key});return at(e,t)}var M0="--toast-frontmost-height";var O0=Ce(function(t,a){let{render:o,className:r,style:n,children:l,...s}=t,u=cn(),i=ar(),c=z(!1),d=z(!1),f=z(!1),p=u.useState("isEmpty"),g=u.useState("toasts"),v=u.useState("focused"),L=u.useState("expanded"),m=u.useState("prevFocusElement"),h=g[0]?.height,x=g.some((V)=>V.transitionStatus==="ending"),C=g.filter((V)=>V.priority==="high");ce(()=>{let V=u.state.viewport;if(!V||p)return;let P=ga(V),fe=et(V);function Re(Y){if(Y.key==="F6"&&Yt(Y)!==V)Y.preventDefault(),u.set("prevFocusElement",jt(fe)),V?.focus({preventScroll:!0}),u.pauseTimers(),u.set("focused",!0)}function Te(Y){if(Yt(Y)!==P)return;u.set("isWindowFocused",!1),u.pauseTimers()}function U(Y){if(Y.relatedTarget)return;let K=Yt(Y),ae=jt(et(V));if(K===P||!ze(V,K)||!Ys(ae))u.resumeTimers();i.start(0,()=>u.set("isWindowFocused",!0))}return qo(We(P,"keydown",Re),We(P,"blur",Te,!0),We(P,"focus",U,!0),We(fe,"pointerdown",u.handleDocumentPointerDown,!0))},[u,i,p]);function I(V){c.current=!0;let P=V.relatedTarget===u.state.viewport?g.find((fe)=>fe.transitionStatus!=="ending"&&!fe.limited):void 0;if(P)P.ref?.current?.focus();else u.restoreFocusToPrevElement()}function b(V){if(V.key==="Tab"&&V.shiftKey&&Yt(V.nativeEvent)===u.state.viewport)V.preventDefault(),u.restoreFocusToPrevElement()}function S(){if(u.state.toasts.some((P)=>P.transitionStatus==="ending")||f.current||!d.current)return;if(u.state.isWindowFocused)u.resumeTimers();u.set("hovering",!1),d.current=!1}ce(S,[x,u]);function y(){u.pauseTimers(),u.set("hovering",!0),d.current=!1}function T(){if(u.state.isWindowFocused)u.resumeTimers()}function w(){d.current=!0,S()}function D(V){if(V.pointerType==="touch")f.current=!0}function M(V){if(V.pointerType!=="touch")return;f.current=!1,S()}function R(){if(c.current){c.current=!1;return}if(v)return;if(Ys(jt(et(u.state.viewport))))u.set("focused",!0),u.pauseTimers()}function B(V){if(!v||ze(u.state.viewport,V.relatedTarget))return;u.set("focused",!1),T()}let H={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:y,onMouseMove:y,onMouseLeave:w,onFocus:R,onBlur:B,onKeyDown:b,onClick:R,onPointerDown:D,onPointerUp:M,onPointerCancel:M,style:{[M0]:h?`${h}px`:void 0}},k={expanded:L},_=!p&&m&&A(dn,{onFocus:I}),le=Ge("div",t,{ref:[a,u.setViewport],state:k,props:[H,s,{children:j(ya,{children:[_,l,_]})}]});return j(ya,{children:[_,le,!v&&C.length>0&&A("div",{style:Ws,children:C.map((V)=>j("div",{role:"alert","aria-atomic":!0,children:[A("div",{children:V.title}),A("div",{children:V.description})]},V.id))})]})});W();function Td(e){if(Vs(19))return e;return e?"true":void 0}W();var ix=Ue(void 0);function pn(){let e=Be(ix);if(!e)throw Error(ka(66));return e}W();function _o(e){if(e==null)return e;return"current"in e?e.current:e}var wd=null;function jM(e){if(!wd){let t=[];wd=t,queueMicrotask(()=>{wd=null,_n(()=>{for(let a of t)a()})})}wd.push(e)}function B0(e,t=!1,a=!1){let o=md();return Qe((r,n=null)=>{o.cancel();let l=_o(e);if(l==null)return;let s=l,u=()=>{if(!a){_n(r);return}jM(()=>{if(!n?.aborted)r()})};if(typeof s.getAnimations!=="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function i(){Promise.all(s.getAnimations().map((c)=>c.finished)).then(()=>{if(!n?.aborted)u()},()=>{if(n?.aborted)return;if(s.getAnimations().some((d)=>d.pending||d.playState!=="finished")){i();return}u()})}if(t){let c=Cl;if(!s.hasAttribute(c)){o.request(i);return}let d=new MutationObserver(()=>{if(!s.hasAttribute(c))d.disconnect(),i()});d.observe(s,{attributes:!0,attributeFilter:[c]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(i)})}function Zs(e){let{enabled:t=!0,open:a,ref:o,batch:r=!1,onComplete:n}=e,l=Qe(n),s=B0(o,a,r);ce(()=>{if(!t)return;let u=new AbortController;return s(l,u.signal),()=>{u.abort()}},[t,a,l,s])}var P0="data-base-ui-click-trigger";var N0="[data-base-ui-swipe-ignore]",z0="[data-swipe-ignore]";var F0={clipPath:"inset(50%)",position:"fixed",top:0,left:0};W();function cx(e,t=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,a))}function U0(e,t){let a=(t??ga(e).getComputedStyle(e)).transform,o=0,r=0,n=1;if(a&&a!=="none"){let l=a.match(/matrix(?:3d)?\\(([^)]+)\\)/);if(l){let s=l[1].split(", ").map(parseFloat);if(s.length===6)o=s[4],r=s[5],n=Math.sqrt(s[0]*s[0]+s[1]*s[1]);else if(s.length===16)o=s[12],r=s[13],n=s[0]}}return{x:o,y:r,scale:n}}function Rd(e,t,a){switch(e){case"up":return-a;case"down":return a;case"left":return-t;case"right":return t;default:return 0}}var q0="--toast-index",H0="--toast-offset-y",_0="--toast-height",V0="--toast-swipe-movement-x",G0="--toast-swipe-movement-y";var X0="data-swipe-direction",Q3=Cl,J3=ki;var KM={...js,swipeDirection(e){return e?{[X0]:e}:null}},j0=40,ZM=10,Y0=0.5,QM=1,JM=`${N0},${z0}`,W0=Ce(function(t,a){let{toast:o,render:r,className:n,swipeDirection:l=["down","right"],style:s,...u}=t,i=o.positionerProps?.anchor!==void 0,c=[];if(!i)c=Array.isArray(l)?l:[l];let d=c.length>0,f=cn(),[p,g]=J(void 0),[v,L]=J(!1),[m,h]=J(!1),[x,C]=J({x:0,y:0}),[I,b]=J({x:0,y:0,scale:1}),[S,y]=J(),[T,w]=J(),[D,M]=J(null),R=z(null),B=z(void 0),H=z({x:0,y:0}),k=z({x:0,y:0,scale:1}),_=z(void 0),le=z(0),V=z(!1),P=z({x:0,y:0}),fe=z(!1),Re=z({x:0,y:0}),Te=z(null),U=z(null),Y=f.useState("toastIndex",o.id),K=f.useState("toastVisibleIndex",o.id),ae=f.useState("toastOffsetY",o.id),ue=f.useState("focused"),ee=f.useState("expanded");Zs({open:o.transitionStatus!=="ending",ref:R,onComplete(){if(o.transitionStatus==="ending")f.removeToast(o.id)}});let re=Qe((G=!1)=>{let he=R.current;if(!he)return;let me=he.style.height;he.style.height="auto";let q=he.offsetHeight;he.style.height=me;function F(){f.updateToastInternal(o.id,{ref:R,height:q,transitionStatus:void 0})}if(G)_n(F);else F()});ye(()=>{let G=B.current;if(o.transitionStatus!=="starting"&&G===o.id)return;if(G!==void 0)g(void 0),b({x:0,y:0,scale:1}),ve({x:0,y:0});B.current=o.id,re()},[re,o.id,o.transitionStatus]);function ve(G){Re.current=G,C(G)}ye(()=>()=>{U.current?.abort()},[]);function ie(G,he){let me=(Q)=>Q>0?Q**Y0:-(Math.abs(Q)**Y0),q=G>0&&!c.includes("right")||G<0&&!c.includes("left"),F=he>0&&!c.includes("down")||he<0&&!c.includes("up");return{x:q?me(G):G,y:F?me(he):he}}let Z=Qe((G)=>{if(G.pointerId!==Te.current)return;Te.current=null,U.current?.abort(),U.current=null,L(!1),h(!1),M(null);let he=k.current;if(G.type==="pointercancel"||V.current){ve({x:he.x,y:he.y}),g(void 0);return}let me=Re.current,q=me.x-he.x,F=me.y-he.y,Q;for(let N of c)if(Rd(N,q,F)>j0){Q=N;break}if(Q)g(Q),f.closeToast(o.id);else ve({x:he.x,y:he.y}),g(void 0)});function xe(G){if(G.button!==0)return;if(G.pointerType==="touch")f.pauseTimers();if(Yt(G.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${JM}`))return;V.current=!1,_.current=void 0,le.current=0,Te.current=G.pointerId,H.current={x:G.clientX,y:G.clientY},P.current=H.current;let q=G.currentTarget,F=U0(q);k.current=F,b(F),ve({x:F.x,y:F.y}),f.set("hovering",!0),L(!0),h(!1),M(null),fe.current=!0,U.current?.abort();let Q=new AbortController;U.current=Q;let N=et(q);N.addEventListener("pointerup",Z,{signal:Q.signal}),N.addEventListener("pointercancel",Z,{signal:Q.signal}),q.setPointerCapture?.(G.pointerId)}function Ie(G){if(G.pointerId!==Te.current)return;if(G.preventDefault(),fe.current)H.current={x:G.clientX,y:G.clientY},fe.current=!1;let{clientY:he,clientX:me,movementX:q,movementY:F}=G;if(F<0&&he>P.current.y||F>0&&he<P.current.y)P.current={x:P.current.x,y:he};if(q<0&&me>P.current.x||q>0&&me<P.current.x)P.current={x:me,y:P.current.y};let Q=me-H.current.x,N=he-H.current.y,Bt=he-P.current.y,De=me-P.current.x,gt=D;if(!m){if(Math.sqrt(Q*Q+N*N)>=QM){h(!0);let va=c.includes("left")||c.includes("right"),xt=c.includes("up")||c.includes("down");if(va&&xt){let vt=Math.abs(Q),ea=Math.abs(N);gt=vt>ea?"horizontal":"vertical",M(gt)}}}let be;if(!_.current){if(gt==="vertical"){if(N>0)be="down";else if(N<0)be="up"}else if(gt==="horizontal"){if(Q>0)be="right";else if(Q<0)be="left"}else if(Math.abs(Q)>=Math.abs(N))be=Q>0?"right":"left";else be=N>0?"down":"up";if(be&&c.includes(be))_.current=be,le.current=Rd(be,Q,N),g(be)}else{let za=_.current,va=Rd(za,De,Bt);if(va>j0)V.current=!1,g(za);else if(!(c.includes("left")&&c.includes("right"))&&!(c.includes("up")&&c.includes("down"))&&le.current-va>=ZM)V.current=!0}let tt=ie(Q,N),At=k.current.x,St=k.current.y,Pt=c.includes("left")||c.includes("right"),Tt=c.includes("up")||c.includes("down");if(gt!=="vertical"&&Pt)At+=tt.x;if(gt!=="horizontal"&&Tt)St+=tt.y;ve({x:At,y:St})}function Ae(G){if(G.key==="Escape"){if(!R.current||!ze(R.current,jt(et(R.current))))return;f.closeToast(o.id)}}ce(()=>{let G=R.current;if(!d||!G)return;function he(me){if(Te.current===null||!ze(G,Yt(me)))return;me.preventDefault()}return We(G,"touchmove",he,{passive:!1})},[d]);function ne(){let G=x.x-I.x,he=x.y-I.y;return{transition:v?"none":void 0,transform:v?`translateX(${x.x}px) translateY(${x.y}px) scale(${I.scale})`:void 0,[V0]:`${G}px`,[G0]:`${he}px`}}let ke=o.priority==="high",oe={role:ke?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":T,"aria-hidden":ke&&!ue?!0:void 0,onPointerDown:d?xe:void 0,onPointerMove:d?Ie:void 0,onPointerUp:d?Z:void 0,onPointerCancel:d?Z:void 0,onKeyDown:Ae,inert:Td(o.limited),style:{...ne(),[q0]:o.transitionStatus==="ending"?Y:K,[H0]:`${ae}px`,[_0]:o.height?`${o.height}px`:void 0}},Se=Le(()=>({toast:o,setTitleId:y,setDescriptionId:w,recalculateHeight:re,visibleIndex:K,expanded:ee}),[o,y,w,re,K,ee]),Pe={transitionStatus:o.transitionStatus,expanded:ee,limited:o.limited||!1,type:o.type,swiping:v,swipeDirection:p},Xe=Ge("div",t,{ref:[a,R],state:Pe,stateAttributesMapping:KM,props:[oe,u]});return A(ix.Provider,{value:Se,children:Xe})});W();var K0=Ce(function(t,a){let{render:o,className:r,style:n,...l}=t,{visibleIndex:s,expanded:u,recalculateHeight:i}=pn(),c=z(null);ye(()=>{i();let p=c.current;if(!p||typeof ResizeObserver!=="function"||typeof MutationObserver!=="function")return;let g=new ResizeObserver(()=>i(!0)),v=new MutationObserver(()=>i(!0));return g.observe(p),v.observe(p,{childList:!0,subtree:!0,characterData:!0}),()=>{g.disconnect(),v.disconnect()}},[i]);let d=s>0;return Ge("div",t,{ref:[a,c],state:{expanded:u,behind:d},props:l})});W();W();var Z0=0;function $M(e,t="mui"){let[a,o]=J(e),r=e||a;return ce(()=>{if(a==null)Z0+=1,o(`${t}-${Z0}`)},[a,t]),r}var Q0=wi.useId;function mn(e,t){if(Q0!==void 0){let a=Q0();return e??(t?`${t}-${a}`:a)}return $M(e,t)}W();function J0(e){if(e==null||typeof e==="boolean"||e==="")return!1;if(Array.isArray(e))return e.some(J0);return!0}function Dd(e){return Wo(e)&&J0(e.props.children)}function kd(e,t,a){let{toast:o,setTitleId:r,setDescriptionId:n}=pn(),l=a==="title"?r:n,s=t??(a==="title"?o.title:o.description);return{id:mn(e),children:s,type:o.type,setId:l}}function Ed(e,t,a){let o=Dd(e);return ye(()=>{if(!o)return;return a(t),()=>{a((r)=>r===t?void 0:r)}},[o,t,a]),o?e:null}var $0=Ce(function(t,a){let{render:o,className:r,style:n,id:l,children:s,...u}=t,{id:i,children:c,type:d,setId:f}=kd(l,s,"description"),g=Ge("p",t,{ref:a,state:{type:d},props:{...u,id:i,children:c}});return Ed(g,i,f)});W();var eI=Ce(function(t,a){let{render:o,className:r,style:n,id:l,children:s,...u}=t,{id:i,children:c,type:d,setId:f}=kd(l,s,"title"),g=Ge("h2",t,{ref:a,state:{type:d},props:{...u,id:i,children:c}});return Ed(g,i,f)});W();W();W();var eO=Ue(void 0);function tI(e=!1){let t=Be(eO);if(t===void 0&&!e)throw Error(ka(16));return t}W();function aI(e){let{focusableWhenDisabled:t,disabled:a,composite:o=!1,tabIndex:r=0,isNativeButton:n}=e,l=o&&t!==!1,s=o&&t===!1;return{props:Le(()=>{let i={onKeyDown(c){if(a&&t&&c.key!=="Tab")c.preventDefault()}};if(!o){if(i.tabIndex=r,!n&&a)i.tabIndex=t?r:-1}if(n&&(t||l)||!n&&a)i["aria-disabled"]=a;if(n&&(!t||s))i.disabled=a;return i},[o,a,t,l,s,n,r])}}function Md(e,t,{detail:a=0}={}){e.dispatchEvent(new(ga(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:a,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Rr(e={}){let{disabled:t=!1,focusableWhenDisabled:a,tabIndex:o=0,native:r=!0,composite:n}=e,l=z(null),s=tI(!0),u=n??s!==void 0,{props:i}=aI({focusableWhenDisabled:a,disabled:t,composite:u,tabIndex:o,isNativeButton:r}),c=dt(()=>{let p=l.current;if(!fx(p))return;if(u&&t&&i.disabled===void 0&&p.disabled)p.disabled=!1},[t,i.disabled,u]);ye(c,[c]);let d=dt((p={})=>{let{onClick:g,onMouseDown:v,onKeyUp:L,onKeyDown:m,onPointerDown:h,...x}=p;return Ll({onClick(C){if(t){C.preventDefault();return}g?.(C)},onMouseDown(C){if(!t)v?.(C)},onKeyDown(C){if(t)return;if(Bi(C),m?.(C),C.baseUIHandlerPrevented)return;let I=C.target===C.currentTarget,b=C.currentTarget,S=fx(b),y=!r&&tO(b),T=I&&(r?S:!y),w=C.key==="Enter",D=C.key===" ",M=b.getAttribute("role"),R=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(I&&u&&D){if(C.defaultPrevented&&R)return;if(C.preventDefault(),!r||S)C.preventBaseUIHandler(),Md(b,C);return}if(!T||r||!D&&!w){if(I&&y&&D)C.preventDefault();return}if(C.defaultPrevented)return;if(C.preventDefault(),w)C.preventBaseUIHandler(),Md(b,C)},onKeyUp(C){if(t)return;if(Bi(C),L?.(C),C.target===C.currentTarget&&r&&u&&fx(C.currentTarget)&&C.key===" "){C.preventDefault();return}if(C.baseUIHandlerPrevented)return;if(C.target===C.currentTarget&&!r&&!u&&!C.defaultPrevented&&C.key===" ")C.preventBaseUIHandler(),Md(C.currentTarget,C)},onPointerDown(C){if(t){C.preventDefault();return}h?.(C)}},r?{type:"button"}:{role:"button"},i,x)},[t,i,u,r]),f=Qe((p)=>{l.current=p,c()});return{getButtonProps:d,buttonRef:f}}function fx(e){return ia(e)&&e.tagName==="BUTTON"}function tO(e){return ia(e)&&e.tagName==="A"&&Boolean(e.href)}var oI=Ce(function(t,a){let{render:o,className:r,style:n,disabled:l,nativeButton:s=!0,...u}=t,i=cn(),{toast:c,expanded:d}=pn(),[f,p]=J(!1),{getButtonProps:g,buttonRef:v}=Rr({disabled:l,native:s}),L={type:c.type};return Ge("button",t,{ref:[a,v],state:L,props:[{"aria-hidden":!d&&!f,onClick(){i.closeToast(c.id)},onFocus(){p(!0)},onBlur(){p(!1)}},u,g]})});W();var rI=Ce(function(t,a){let{render:o,className:r,style:n,disabled:l,nativeButton:s=!0,...u}=t,{toast:i}=pn(),c=i.actionProps?.children??u.children,{getButtonProps:d,buttonRef:f}=Rr({disabled:l,native:s}),p={type:i.type},g=Ge("button",t,{ref:[a,f],state:p,props:[u,i.actionProps,d,{children:c}]});return Dd(g)?g:null});W();W();W();var nI="none",aO="trigger-press",oO="trigger-hover";var lI="outside-press";var rO="close-press";var sI="focus-out",nO="escape-key";var lO="imperative-action";function Ma(e,t,a,o){let r=!1,n=!1,l=o??na;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){n=!0},get isCanceled(){return r},get isPropagationAllowed(){return n},trigger:a,...l}}function Sl(e){return`data-base-ui-${e}`}var uI=Ue(null),dx=()=>Be(uI),sO=Sl("portal");function Od(e={}){let{ref:t,container:a,componentProps:o=na,elementProps:r}=e,n=mn(),s=dx()?.portalNode,[u,i]=J(null),[c,d]=J(null),f=Qe((L)=>{if(L!==null)d(L)}),p=z(null);ye(()=>{if(a===null){if(p.current)p.current=null,d(null),i(null);return}let L=(a&&(cd(a)?a:a.current))??s??document.body;if(L==null){if(p.current)p.current=null,d(null),i(null);return}if(p.current!==L)p.current=L,d(null),i(L)},[a,s]);let g=Ge("div",o,{ref:[t,f],props:[{id:n,[sO]:""},r]}),v=u&&g?Fr(g,u):null;return{node:c,nodeId:Wo(g)?g.props.id:void 0,subtree:v}}var px=Ce(function(t,a){let{render:o,className:r,style:n,children:l,container:s,portalOwnerRole:u,...i}=t,{node:c,nodeId:d,subtree:f}=Od({container:s,ref:a,componentProps:t,elementProps:i}),p=z(null),g=z(null),v=z(null),L=z(null),[m,h]=J(null),x=z(!1),C=m?.modal,I=m?.open,b=!!m&&!m.modal&&m.open&&!!c;ce(()=>{if(!c||C)return;function y(T){if(c&&T.relatedTarget&&bl(T))if(T.type==="focusin"){if(x.current)tx(c),x.current=!1}else v0(c),x.current=!0}return qo(We(c,"focusin",y,!0),We(c,"focusout",y,!0))},[c,C]),ye(()=>{if(!c||I!==!0||!x.current)return;tx(c),x.current=!1},[I,c]);let S=Le(()=>({beforeOutsideRef:p,afterOutsideRef:g,beforeInsideRef:v,afterInsideRef:L,portalNode:c,setFocusManagerState:h}),[c]);return j(ya,{children:[f,j(uI.Provider,{value:S,children:[b&&c&&A(dn,{"data-type":"outside",ref:p,onFocus:(y)=>{if(bl(y,c))v.current?.focus();else{let T=m?m.domReference:null;Id(T)?.focus()}}}),b&&c&&A("span",{role:u,"aria-owns":d,style:F0}),c&&Fr(l,c),b&&c&&A(dn,{"data-type":"outside",ref:g,onFocus:(y)=>{if(bl(y,c))L.current?.focus();else{let T=m?m.domReference:null;if(Sd(T)?.focus(),m?.closeOnFocusOut)m?.onOpenChange(!1,Ma(sI,y.nativeEvent))}}})]})]})});var iI=Ce(function(t,a){let{children:o,container:r,className:n,render:l,style:s,...u}=t,{node:i,subtree:c}=Od({container:r,ref:a,componentProps:t,elementProps:u});if(!c&&!i)return null;return j(ya,{children:[c,i&&Fr(o,i)]})});var cI=Ce(function(t,a){return A(iI,{ref:a,...t})});function Pi(e){let t=Jt(uO,e).current;return t.next=e,ye(t.effect),t}function uO(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}W();var Bd=0;function Pd(e,t={}){let{preventScroll:a=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(Bd);function n(){if(r&&!r())return;e?.focus({preventScroll:a})}if(o)return n(),Mt;let l=requestAnimationFrame(n);return Bd=l,()=>{if(Bd===l)cancelAnimationFrame(l),Bd=0}}var mx={inert:new WeakMap,"aria-hidden":new WeakMap},fI="data-base-ui-inert",gx={inert:new WeakSet,"aria-hidden":new WeakSet},Ni=new WeakMap,hx=0;function iO(e){return gx[e]}function hI(e){if(!e)return null;return tr(e)?e.host:hI(e.parentNode)}var dI=(e,t)=>t.map((a)=>{if(e.contains(a))return a;let o=hI(a);if(e.contains(o))return o;return null}).filter((a)=>a!=null),pI=(e)=>{let t=new Set;return e.forEach((a)=>{let o=a;while(o&&!t.has(o))t.add(o),o=o.parentNode}),t},mI=(e,t,a)=>{let o=[],r=(n)=>{if(!n||a.has(n))return;Array.from(n.children).forEach((l)=>{if(Ea(l)==="script")return;if(t.has(l))r(l);else o.push(l)})};return r(e),o};function cO(e,t,a,o,{mark:r=!0}){let n=null;if(o)n="inert";else if(a)n="aria-hidden";let l=null,s=null,u=dI(t,e),i=r?mI(t,pI(u),new Set(u)):[],c=[],d=[];if(n){let f=mx[n],p=iO(n);s=p,l=f;let g=dI(t,Array.from(t.querySelectorAll("[aria-live]"))),v=u.concat(g);mI(t,pI(v),new Set(v)).forEach((m)=>{let h=m.getAttribute(n),x=h!==null&&h!=="false",C=(f.get(m)||0)+1;if(f.set(m,C),c.push(m),C===1&&x)p.add(m);if(!x)m.setAttribute(n,n==="inert"?"":"true")})}if(r)i.forEach((f)=>{let p=(Ni.get(f)||0)+1;if(Ni.set(f,p),d.push(f),p===1)f.setAttribute(fI,"")});return hx+=1,()=>{if(l)c.forEach((f)=>{let g=(l.get(f)||0)-1;if(l.set(f,g),!g){if(!s?.has(f)&&n)f.removeAttribute(n);s?.delete(f)}});if(r)d.forEach((f)=>{let p=(Ni.get(f)||0)-1;if(Ni.set(f,p),!p)f.removeAttribute(fI)});if(hx-=1,!hx)mx.inert=new WeakMap,mx["aria-hidden"]=new WeakMap,gx.inert=new WeakSet,gx["aria-hidden"]=new WeakSet,Ni=new WeakMap}}function xx(e,t={}){let{ariaHidden:a=!1,inert:o=!1,mark:r=!0}=t,n=et(e[0]).body;return cO(e,n,a,o,{mark:r})}W();function gI(){let e=new Map;return{emit(t,a){e.get(t)?.forEach((o)=>o(a))},on(t,a){if(!e.has(t))e.set(t,new Set);e.get(t).add(a)},off(t,a){e.get(t)?.delete(a)}}}var fO=Ue(null),dO=Ue(null),xI=()=>Be(fO)?.id||null,Nd=(e)=>{let t=Be(dO);return e??t};function pO(e,t){let a=ga(Yt(e));if(e instanceof a.KeyboardEvent)return"keyboard";if(e instanceof a.FocusEvent)return t||"keyboard";if("pointerType"in e)return e.pointerType||"keyboard";if("touches"in e)return"touch";if(e instanceof a.MouseEvent)return t||(e.detail===0?"keyboard":"mouse");return""}var vI=20,gn=[];function vx(){gn=gn.filter((e)=>e.deref()?.isConnected)}function CI(e){if(vx(),e&&Ea(e)!=="body"){if(gn.push(new WeakRef(e)),gn.length>vI)gn=gn.slice(-vI)}}function yI(){return vx(),gn[gn.length-1]?.deref()}function mO(e){if(!e)return null;if(Ld(e))return e;return Ei(e)[0]||e}function bI(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex"))return;if(!e.getAttribute("role")?.includes("dialog"))return;let a=ex(e).filter((r)=>{let n=r.getAttribute("data-tabindex")||"";return Ld(r)||r.hasAttribute("data-tabindex")&&!n.startsWith("-")}),o=e.getAttribute("tabindex");if(a.length===0){if(o!=="0")e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")}else if(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1")}function Cx(e){let{context:t,children:a,disabled:o=!1,initialFocus:r=!0,returnFocus:n=!0,restoreFocus:l=!1,modal:s=!0,closeOnFocusOut:u=!0,openInteractionType:i="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:g}=e,v="rootStore"in t?t.rootStore:t,L=v.useState("open"),m=v.useState("domReferenceElement"),h=v.useState("floatingElement"),{events:x,dataRef:C}=v.context,I=Qe(()=>C.current.floatingContext?.nodeId),b=r===!1,S=Kg(m)&&b,y=Pi(r),T=Pi(n),w=Pi(i),D=Pi(L),M=Nd(p),R=dx(),B=z(!1),H=z(!1),k=z(!1),_=z(null),le=z(""),V=z(""),P=z(null),fe=z(null),Re=Ks(P,f,R?.beforeInsideRef),Te=Ks(fe,R?.afterInsideRef),U=ar(),Y=ar(),K=md(),ae=R!=null,ue=Zg(h),ee=Qe((ie=ue)=>ie?Ei(ie):[]),re=Qe(()=>g?.().filter((ie)=>ie!=null)??[]);ce(()=>{if(o||!s)return;function ie(xe){if(xe.key==="Tab"){if(ze(ue,jt(et(ue)))&&ee().length===0&&!S)s0(xe)}}let Z=et(ue);return We(Z,"keydown",ie)},[o,ue,s,S,ee]),ce(()=>{if(o||!L)return;let ie=et(ue);function Z(){k.current=!1}function xe(Ae){let ne=Yt(Ae),ke=re(),oe=ze(h,ne)||ze(m,ne)||ze(R?.portalNode,ne)||ke.some((Se)=>Se===ne||ze(Se,ne));if(k.current=!oe,V.current=Ae.pointerType||"keyboard",ne?.closest(`[${P0}]`))H.current=!0,Y.start(0,()=>{H.current=!1})}function Ie(){V.current="keyboard"}return qo(We(ie,"pointerdown",xe,!0),We(ie,"pointerup",Z,!0),We(ie,"pointercancel",Z,!0),We(ie,"keydown",Ie,!0),Z)},[o,h,m,ue,L,R,Y,re]),ce(()=>{if(o||!u)return;let ie=et(ue);function Z(){H.current=!0,Y.start(0,()=>{H.current=!1})}function xe(ke){let oe=Yt(ke);if(Ld(oe))_.current=oe}function Ie(ke){let{relatedTarget:oe,currentTarget:Se}=ke,Pe=Yt(ke);if(s&&oe==null&&Pe!=null&&ze(h,Pe))CI(Pe);queueMicrotask(()=>{let Xe=I(),G=v.context.triggerElements,he=re(),me=oe?.hasAttribute(Sl("focus-guard"))&&[P.current,fe.current,R?.beforeInsideRef.current,R?.afterInsideRef.current,R?.beforeOutsideRef.current,R?.afterOutsideRef.current,_o(d),_o(c)].includes(oe),q=!(ze(m,oe)||ze(h,oe)||ze(oe,h)||ze(R?.portalNode,oe)||he.some((F)=>F===oe||ze(F,oe))||G.hasMatchingElement((F)=>ze(F,oe))||me||M&&(yl(M.nodesRef.current,Xe).find((F)=>ze(F.context?.elements.floating,oe)||ze(F.context?.elements.domReference,oe))||Qg(M.nodesRef.current,Xe).find((F)=>[F.context?.elements.floating,Zg(F.context?.elements.floating)].includes(oe)||F.context?.elements.domReference===oe)));if(Se===m&&ue)bI(ue);if(l&&Se!==m&&!bd(Pe)&&jt(ie)===ie.body){if(ia(ue)){if(ue.focus(),l==="popup"){K.request(()=>{ue.focus()});return}}let F=ee(),Q=_.current,N=(Q&&F.includes(Q)?Q:null)||F[F.length-1]||ue;if(ia(N))N.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}if((S?!0:!s)&&oe&&q&&!H.current&&(S||oe!==yI()))B.current=!0,v.setOpen(!1,Ma(sI,ke))})}function Ae(){if(k.current)return;C.current.insideReactTree=!0,U.start(0,()=>{C.current.insideReactTree=!1})}let ne=ia(m)?m:null;if(!h&&!ne)return;return qo(ne&&We(ne,"focusout",Ie),ne&&We(ne,"pointerdown",Z),h&&We(h,"focusin",xe),h&&We(h,"focusout",Ie),h&&R&&We(h,"focusout",Ae,!0))},[o,m,h,ue,s,M,R,v,u,l,ee,S,I,C,U,Y,K,c,d,re]),ce(()=>{if(o||!h||!L)return;let ie=Array.from(R?.portalNode?.querySelectorAll(`[${Sl("portal")}]`)||[]),xe=(M?Qg(M.nodesRef.current,I()):[]).find((Se)=>Kg(Se.context?.elements.domReference||null))?.context?.elements.domReference,Ae=[...[h,...ie,P.current,fe.current,R?.beforeOutsideRef.current,R?.afterOutsideRef.current,...re()],xe,_o(d),_o(c),S?m:null].filter((Se)=>Se!=null),ne=xx(Ae,{ariaHidden:s||S,mark:!1}),ke=[h,...ie].filter((Se)=>Se!=null),oe=xx(ke);return()=>{oe(),ne()}},[L,o,m,h,s,R,S,M,I,c,d,re]),ye(()=>{if(!L||o||!ia(ue))return;le.current="",V.current="";let ie=et(ue),Z=jt(ie);queueMicrotask(()=>{let xe=y.current,Ie=typeof xe==="function"?xe(w.current||""):xe;if(Ie===void 0||Ie===!1)return;if(ze(ue,Z))return;let ne=null,ke=()=>{if(ne==null)ne=ee(ue);return ne[0]||ue},oe;if(Ie===!0||Ie===null)oe=ke();else oe=_o(Ie);oe=oe||ke();let Se=ze(ue,jt(ie));Pd(oe,{preventScroll:oe===ue,shouldFocus(){if(!D.current)return!1;if(Se)return!0;let Pe=jt(ie);return!(Pe!==oe&&ze(ue,Pe))}})})},[o,L,ue,ee,y,w,D]),ye(()=>{if(o||!ue)return;let ie=et(ue),Z=jt(ie),xe=w.current==null;CI(Z);function Ie(ne){if(!ne.open)le.current=pO(ne.nativeEvent,V.current);if(ne.reason===oO&&ne.nativeEvent.type==="mouseleave")B.current=!0;if(ne.reason!==lI)return;if(ne.nested)B.current=!1;else if(yd(ne.nativeEvent)||i0(ne.nativeEvent))B.current=!1;else{let ke=!1;if(et(ue).createElement("div").focus({get preventScroll(){return ke=!0,!1}}),ke)B.current=!1;else B.current=!0}}x.on("openchange",Ie);function Ae(ne){let ke=T.current,oe=typeof ke==="function"?ke(ne):ke;if(oe===void 0||oe===!1)return null;if(oe===null)oe=!0;let Se=m?.isConnected?m:null,Pe=Z?.isConnected&&Ea(Z)!=="body"?Z:null,Xe=xe?Pe||Se:Se||Pe;if(!Xe)Xe=yI()||null;if(typeof oe==="boolean")return Xe;return _o(oe)||Xe||null}return()=>{x.off("openchange",Ie);let ne=jt(ie),ke=re(),oe=ze(h,ne)||ke.some((G)=>G===ne||ze(G,ne))||M&&yl(M.nodesRef.current,I(),!1).some((G)=>ze(G.context?.elements.floating,ne)),Se=T.current,Pe=le.current,Xe=Ae(Pe);queueMicrotask(()=>{let G=mO(Xe),he=typeof Se!=="boolean";if(Se&&!B.current&&ia(G)&&(!he&&G!==ne&&ne!==ie.body?oe:!0)){let me={preventScroll:!0};if(Pe==="keyboard")me.focusVisible=!0;G.focus(me)}B.current=!1})}},[o,h,ue,T,w,x,M,m,I,re]),ye(()=>{if(!Xs.webkit||L||!h)return;let ie=jt(et(h));if(!ia(ie)||!Wg(ie))return;if(ze(h,ie))ie.blur()},[L,h]),ye(()=>{if(o||!R)return;return R.setFocusManagerState({modal:s,closeOnFocusOut:u,open:L,onOpenChange:v.setOpen,domReference:m}),()=>{R.setFocusManagerState(null)}},[o,R,s,L,v,u,m]),ye(()=>{if(o||!ue)return;return bI(ue),()=>{queueMicrotask(vx)}},[o,ue]);let ve=!o&&(s?!S:!0)&&(ae||s);return j(ya,{children:[ve&&A(dn,{"data-type":"inside",ref:Re,onFocus:(ie)=>{if(s){let Z=ee();Pd(Z[Z.length-1])}else if(R?.portalNode)if(B.current=!1,bl(ie,R.portalNode))Sd(m)?.focus();else _o(d??R.beforeOutsideRef)?.focus()}}),a,ve&&A(dn,{"data-type":"inside",ref:Te,onFocus:(ie)=>{if(s)Pd(ee()[0]);else if(R?.portalNode){if(u)B.current=!0;if(bl(ie,R.portalNode))Id(m)?.focus();else _o(c??R.afterOutsideRef)?.focus()}}})]})}W();function hO(){return!1}function gO(e){return{escapeKey:typeof e==="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e==="boolean"?e:e?.outsidePress??!0}}function yx(e,t={}){let{enabled:a=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:n="sloppy",referencePress:l=hO,bubbles:s,externalTree:u}=t,i="rootStore"in e?e.rootStore:e,c=i.useState("open"),d=i.useState("floatingElement"),{dataRef:f,events:p}=i.context,g=Nd(u),v=Qe(typeof r==="function"?r:()=>!1),L=typeof r==="function"?v:r,m=L!==!1,h=Qe(()=>n),{escapeKey:x,outsidePress:C}=gO(s),I=z(!1),b=z(!1),S=z(!1),y=z(!1),T=z(!1),w=z(""),D=z(null),M=ar(),R=ar(),B=Qe(()=>{R.clear(),f.current.insideReactTree=!1}),H=Qe((U)=>{let Y=f.current.floatingContext?.nodeId;return(g?yl(g.nodesRef.current,Y):[]).some((ae)=>ae.context?.open&&!ae.context.dataRef.current[U])}),k=Qe((U)=>Cd(U,i.select("floatingElement"))||Cd(U,i.select("domReferenceElement"))),_=Qe((U)=>{if(!l())return;i.setOpen(!1,Ma(aO,U.nativeEvent))}),le=Qe((U)=>{if(!c||!a||!o||U.key!=="Escape")return;if(T.current)return;if(!x&&H("__escapeKeyBubbles"))return;let Y=u0(U)?U.nativeEvent:U,K=Ma(nO,Y);if(i.setOpen(!1,K),!K.isCanceled)U.preventDefault();if(!x&&!K.isPropagationAllowed)U.stopPropagation()}),V=Qe(()=>{f.current.insideReactTree=!0,R.start(0,B)}),P=Qe((U)=>{if(!c||!a||U.button!==0)return;let Y=Yt(U.nativeEvent);if(!ze(i.select("floatingElement"),Y))return;if(!I.current)I.current=!0,b.current=!1}),fe=Qe((U)=>{if(!c||!a)return;if(!(U.defaultPrevented||U.nativeEvent.defaultPrevented))return;if(I.current)b.current=!0});ce(()=>{function U(Y){if(!Y.open)y.current=!1}return p.on("openchange",U),()=>{p.off("openchange",U)}},[p]),ce(()=>{if(!c||!a){if(!c)y.current=!1;return B}f.current.__escapeKeyBubbles=x,f.current.__outsidePressBubbles=C;let U=new To,Y=new To,K=et(d);function ae(){U.clear(),T.current=!0}function ue(){U.start(Xs.webkit?5:0,()=>{T.current=!1})}function ee(){S.current=!0,Y.start(0,()=>{S.current=!1})}function re(){I.current=!1,b.current=!1}function ve(){let q=w.current,F=q==="pen"||!q?"mouse":q,Q=h(),N=typeof Q==="function"?Q():Q;if(typeof N==="string")return N;return N[F]}function ie(q){let F=ve();return F==="intentional"&&q.type!=="click"||F==="sloppy"&&q.type==="click"}function Z(q){let F=f.current.floatingContext?.nodeId,Q=g&&yl(g.nodesRef.current,F).some((N)=>Cd(q,N.context?.elements.floating));return k(q)||Q}function xe(q){if(ie(q)){if(q.type!=="click"&&!k(q))Y.clear(),S.current=!1;B();return}if(f.current.insideReactTree){B();return}let F=Yt(q),Q=`[${Sl("inert")}]`,N=fn(F)?F.getRootNode():null,Bt=Array.from((tr(N)?N:et(i.select("floatingElement"))).querySelectorAll(Q)),De=i.context.triggerElements;if(F&&(De.hasElement(F)||De.hasMatchingElement((be)=>ze(be,F))))return;let gt=fn(F)?F:null;while(gt&&!fd(gt)){let be=YS(gt);if(fd(be)||!fn(be))break;gt=be}if(Bt.length&&fn(F)&&!l0(F)&&!ze(F,i.select("floatingElement"))&&Bt.every((be)=>!ze(gt,be)))return;if(ia(F)&&!("touches"in q)){let be=fd(F),tt=ml(F),At=/auto|scroll/,St=be||At.test(tt.overflowX),Pt=be||At.test(tt.overflowY),Tt=St&&F.clientWidth>0&&F.scrollWidth>F.clientWidth,za=Pt&&F.clientHeight>0&&F.scrollHeight>F.clientHeight,va=tt.direction==="rtl",xt=za&&(va?q.offsetX<=F.offsetWidth-F.clientWidth:q.offsetX>F.clientWidth),vt=Tt&&q.offsetY>F.clientHeight;if(xt||vt)return}if(Z(q))return;if(ve()==="intentional"){if(q.detail!==0&&!yd(q)&&!y.current)return;if(S.current){Y.clear(),S.current=!1;return}}if(typeof L==="function"&&!L(q))return;if(H("__outsidePressBubbles"))return;i.setOpen(!1,Ma(lI,q)),B()}function Ie(q){if(ve()!=="sloppy"||q.pointerType==="touch"||!i.select("open")||!a||k(q))return;xe(q)}function Ae(q){if(ve()!=="sloppy"||!i.select("open")||!a||k(q))return;let F=q.touches[0];if(F)D.current={startTime:Date.now(),startX:F.clientX,startY:F.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1000,()=>{if(D.current)D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1})}function ne(q,F){let Q=Yt(q);if(!Q)return;let N=We(Q,q.type,()=>{F(q),N()})}function ke(q){w.current="touch",ne(q,Ae)}function oe(q){if(M.clear(),q.type==="pointerdown"){if(q.button===0)y.current=!0;w.current=q.pointerType}if(q.type==="mousedown"&&D.current&&!D.current.dismissOnMouseDown)return;ne(q,(F)=>{if(F.type==="pointerdown")Ie(F);else xe(F)})}function Se(q){if(q.type==="pointercancel")y.current=!1;if(!I.current)return;let F=b.current;if(re(),ve()!=="intentional")return;if(q.type==="pointercancel"){if(F)ee();return}if(Z(q))return;if(F){ee();return}if(typeof L==="function"&&!L(q))return;Y.clear(),S.current=!0,B()}function Pe(q){if(ve()!=="sloppy"||!D.current||k(q))return;let F=q.touches[0];if(!F)return;let Q=Math.abs(F.clientX-D.current.startX),N=Math.abs(F.clientY-D.current.startY),Bt=Math.sqrt(Q*Q+N*N);if(Bt>5)D.current.dismissOnTouchEnd=!0;if(Bt>10)xe(q),M.clear(),D.current=null}function Xe(q){ne(q,Pe)}function G(q){if(ve()!=="sloppy"||!D.current||k(q))return;if(D.current.dismissOnTouchEnd)xe(q);M.clear(),D.current=null}function he(q){ne(q,G)}let me=qo(o&&qo(We(K,"keydown",le),We(K,"compositionstart",ae),We(K,"compositionend",ue)),m&&qo(We(K,"click",oe,!0),We(K,"pointerdown",oe,!0),We(K,"pointerup",Se,!0),We(K,"pointercancel",Se,!0),We(K,"mousedown",oe,!0),We(K,"mouseup",Se,!0),We(K,"touchstart",ke,{capture:!0,passive:!0}),We(K,"touchmove",Xe,{capture:!0,passive:!0}),We(K,"touchend",he,{capture:!0,passive:!0})));return()=>{me(),U.clear(),Y.clear(),re(),S.current=!1,B()}},[f,d,o,m,L,c,a,x,C,le,B,h,H,k,g,i,M]);let Re=Le(()=>({onKeyDown:le,onPointerDown:_,onClick:_}),[le,_]),Te=Le(()=>({onKeyDown:le,onPointerDown:fe,onMouseDown:fe,onClickCapture:V,onMouseDownCapture(U){V(),P(U)},onPointerDownCapture(U){V(),P(U)},onMouseUpCapture:V,onTouchEndCapture:V,onTouchMoveCapture:V}),[le,V,P,fe]);return Le(()=>a?{reference:Re,floating:Te,trigger:Re}:{},[a,Re,Te])}W();W();var xO={open:(e)=>e.open,transitionStatus:(e)=>e.transitionStatus,domReferenceElement:(e)=>e.domReferenceElement,referenceElement:(e)=>e.positionReference??e.referenceElement,floatingElement:(e)=>e.floatingElement,floatingId:(e)=>e.floatingId};class zi extends pl{constructor(e){let{syncOnly:t,nested:a,onOpenChange:o,triggerElements:r,...n}=e;super({...n,positionReference:n.referenceElement,domReferenceElement:n.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:gI(),nested:a,triggerElements:r},xO);this.syncOnly=t}syncOpenEvent=(e,t)=>{if(!e||!this.state.open||t!=null&&c0(t))this.context.dataRef.current.openEvent=e?t:void 0};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let a={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",a)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}function LI(e){let{popupStore:t,treatPopupAsFloatingElement:a=!1,floatingRootContext:o,floatingId:r,nested:n,onOpenChange:l}=e,s=t.useState("open"),u=t.useState("activeTriggerElement"),i=t.useState(a?"popupElement":"positionerElement"),c=t.context.triggerElements,d=l,f=z(null);if(o===void 0&&f.current===null)f.current=new zi({open:s,transitionStatus:void 0,referenceElement:u,floatingElement:i,triggerElements:c,onOpenChange:d,floatingId:r,syncOnly:!0,nested:n});let p=o??f.current;return t.useSyncedValue("floatingId",r),ye(()=>{let g={open:s,floatingId:r,referenceElement:u,floatingElement:i};if(fn(u))g.domReferenceElement=u;if(p.state.positionReference===p.state.referenceElement)g.positionReference=u;p.update(g)},[s,r,u,i,p]),p.context.onOpenChange=d,p.context.nested=n,p}W();function SI(e,t=!1,a=!1,o=!1){let[r,n]=J(e&&t?"idle":void 0),[l,s]=J(e&&!o);if(e&&!l)s(!0),n("starting");if(!e&&l&&r!=="ending"&&!a)n("ending");if(!e&&!l&&r==="ending")n(void 0);return ye(()=>{if(!e&&l&&r!=="ending"&&a){let u=Ao.request(()=>{n("ending")});return()=>{Ao.cancel(u)}}return},[e,l,r,a]),ye(()=>{if(!e||t)return;let u=Ao.request(()=>{n(void 0)});return()=>{Ao.cancel(u)}},[t,e]),ye(()=>{if(!e||!t)return;if(e&&l&&r!=="idle")n("starting");let u=Ao.request(()=>{n("idle")});return()=>{Ao.cancel(u)}},[t,e,l,r]),{mounted:l,setMounted:s,transitionStatus:r}}var II={tabIndex:-1,[Di]:""};function AI(e){return(t)=>t==="touch"?e.current:!0}function TI(e,t=!1){let a=mn(),o=xI()!=null,r=Jt(()=>e(a,o)).current;return LI({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:a,nested:o,onOpenChange:r.setOpen}),r}function wI({handle:e,store:t}){return ye(()=>e.attachStore(t),[e,t]),null}function RI(e,t,a,o=!1){let r=e.preventUnmountingOnClose;if(t)r=!1;else if(o)r=!0;let n=a?.id??null,{activeTriggerId:l,activeTriggerElement:s}=e;if(n||t)l=n,s=a??null;return{open:t,preventUnmountingOnClose:r,activeTriggerId:l,activeTriggerElement:s}}function DI(e,t={}){let{closeOnActiveTriggerUnmount:a=!1}=t,o=z(null),r=e.useState("open"),n=e.useState("triggerCount"),l=e.useState("activeTriggerId"),s=e.useState("activeTriggerElement");ye(()=>{if(!r){if(o.current=null,e.state.triggerCount!==0)e.set("triggerCount",0);return}let u=e.context.triggerElements.size,i={};if(e.state.triggerCount!==u)i.triggerCount=u;let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(!f){for(let[p,g]of e.context.triggerElements.entries())if(g===e.state.activeTriggerElement){i.activeTriggerId=p,i.activeTriggerElement=g,o.current=p;break}if(i.activeTriggerId===void 0)if(o.current===c)d=c;else o.current=null}else if(o.current=c,f!==e.state.activeTriggerElement)i.activeTriggerElement=f}else o.current=null;if(!d&&!c&&u===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[p,g]=f.value;i.activeTriggerId=p,i.activeTriggerElement=g,o.current=p}}if(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)e.update(i);if(d){if(a)queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=Ma(nI);if(e.setOpen(!1,f),!f.isCanceled)e.update({activeTriggerId:null,activeTriggerElement:null})}})}},[r,e,n,l,s,a])}function kI(e,t,a,o){let{mounted:r,setMounted:n,transitionStatus:l}=SI(e,!1,!1,o),s=t.useState("preventUnmountingOnClose"),u=e?!1:s;t.useSyncedValues({mounted:r,transitionStatus:l,preventUnmountingOnClose:u});let i=Qe(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),a?.(),t.context.onOpenChangeComplete?.(!1)});return Zs({enabled:r&&!e&&!u,open:e,ref:t.context.popupRef,onComplete(){if(!e)i()}}),{forceUnmount:i,transitionStatus:l}}function EI(e,t){e.useSyncedValues(t),ye(()=>()=>{e.update({activeTriggerProps:na,inactiveTriggerProps:na,popupProps:na})},[e])}function MI(e,t){ye(()=>{if(!t&&e.state.openMethod!==null)e.set("openMethod",null)},[t,e]),ye(()=>()=>{if(e.state.openMethod!==null)e.set("openMethod",null)},[e])}class bx{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function BI(e,t,a=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new zi({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:a,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:na,inactiveTriggerProps:na,popupProps:na}}var Fi=(e)=>e.triggerIdProp??e.activeTriggerId,Lx=(e)=>e.openProp??e.open,OI=(e)=>(e.popupElement?.id??e.floatingId)||void 0;function PI(e,t){return t!==void 0&&Lx(e)&&Fi(e)===t}function vO(e,t){if(PI(e,t))return!0;return t!==void 0&&Lx(e)&&Fi(e)==null&&e.triggerCount===1}var NI={open:Lx,mounted:(e)=>e.mounted,transitionStatus:(e)=>e.transitionStatus,floatingRootContext:(e)=>e.floatingRootContext,triggerCount:(e)=>e.triggerCount,preventUnmountingOnClose:(e)=>e.preventUnmountingOnClose,payload:(e)=>e.payload,activeTriggerId:Fi,activeTriggerElement:(e)=>e.mounted?e.activeTriggerElement:null,popupId:OI,isTriggerActive:(e,t)=>t!==void 0&&Fi(e)===t,isOpenedByTrigger:(e,t)=>PI(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Fi(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>vO(e,t)?OI(e):void 0,popupProps:(e)=>e.popupProps,popupElement:(e)=>e.popupElement,positionerElement:(e)=>e.positionerElement};W();function Sx(){let e=cn(),t=e.useState("toasts");return Le(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function Ix(){let e=new Set;function t(a){e.forEach((o)=>o(a))}return{" subscribe":function(o){return e.add(o),()=>{e.delete(o)}},add(a){let o=a.id||hd("toast"),r={...a,id:o,transitionStatus:"starting"};return t({action:"add",options:r}),o},close(a){t({action:"close",options:{id:a}})},update(a,o){t({action:"update",options:{id:a,updates:o}})},promise(a,o){let r=a;return t({action:"promise",options:{...o,promise:a,setPromise(n){r=n}}}),r}}}W();var FI=(e)=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function UI(e,t,a=[]){if(t==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:FI(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var qI=(e)=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}if(t.length===0)t+=o.toLowerCase();else t+=a?o.toUpperCase():o;a=!1}return t};var HI=(e)=>{let t=qI(e);return t.charAt(0).toUpperCase()+t.slice(1)};W();var Ui=(...e)=>e.filter((t,a,o)=>Boolean(t)&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var xn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Ax(e){return e!==null&&e!==void 0}function _I(e,t={}){let a=t.attributeNames??{},o=(f)=>a[f]??f,r=e.size??e.width??xn.width,n=e.size??e.height??xn.height,l=e.aliases?.filter((f)=>typeof f==="string"&&f.trim()!=="").map((f)=>`lucide-${f}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...l],u=t.className?.split(" ").filter(Boolean)??[],i=t.includeDefaultClasses===!1?Ui(...u):Ui("lucide",...s,...u),c=t.absoluteStrokeWidth?Number(t.strokeWidth??xn["stroke-width"])*Number(e.size??e.width??xn.width)/Number(t.size??t.width??xn.width):t.strokeWidth??xn["stroke-width"];return["svg",{...Object.entries(xn).reduce((f,[p,g])=>(f[o(p)]=g,f),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&Ax(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&Ax(t.width)&&{[o("width")]:t.width},..."height"in t&&Ax(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:c,...i&&{[o("class")]:i},[o("viewBox")]:`0 0 ${r} ${n}`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map((f)=>{let[p,g,v]=f,L=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...g}:g;return v?[p,L,v]:[p,L]})]}function VI(e,t={}){return _I(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var GI=(e)=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};W();var CO=Ue({});var XI=()=>Be(CO);var jI=Ce(({color:e,size:t,width:a,height:o,strokeWidth:r,absoluteStrokeWidth:n,nonScalingStroke:l,className:s="",children:u,iconNode:i=[],icon:c={node:i,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,nonScalingStroke:L=!1,color:m="currentColor",className:h=""}=XI()??{},x=Boolean(u)||GI(d),[C,I,b=[]]=VI(c,{color:e??m,width:a??t??p,height:o??t??p,strokeWidth:r??g,absoluteStrokeWidth:n??v,nonScalingStroke:l??L,className:Ui(h,s),hasA11yProp:x,attributes:d});return at(C,{ref:f,...I},[...b.map(([S,y])=>at(S,y)),...Array.isArray(u)?u:[u]])});function rt(e,t=[],a=[]){let o=typeof e==="string"?UI(e,t,a):e,r=Ce(({className:n,...l},s)=>at(jI,{ref:s,icon:o,className:n,...l}));if(o.name)r.displayName=HI(o.name);return r}var YI={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};YI.node;var vn=rt(YI);var WI={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};WI.node;var Cn=rt(WI);var KI={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};KI.node;var yn=rt(KI);var ZI={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};ZI.node;var bn=rt(ZI);var QI={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};QI.node;var Ln=rt(QI);var JI={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};JI.node;var qi=rt(JI);var $I={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};$I.node;var Il=rt($I);var e1={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};e1.node;var Hi=rt(e1);var t1={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};t1.node;var _i=rt(t1);var a1={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};a1.node;var Vi=rt(a1);var o1={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};o1.node;var Gi=rt(o1);var r1={name:"link",size:24,node:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]};r1.node;var Xi=rt(r1);var n1={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};n1.node;var ji=rt(n1);var l1={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]};l1.node;var Al=rt(l1);var s1={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};s1.node;var Sn=rt(s1);var u1={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};u1.node;var Dr=rt(u1);W();var Tx=Ce(function(t,a){let{render:o,className:r,disabled:n=!1,focusableWhenDisabled:l=!1,nativeButton:s=!0,style:u,...i}=t,{getButtonProps:c,buttonRef:d}=Rr({disabled:n,focusableWhenDisabled:l,native:s});return Ge("button",t,{state:{disabled:n},ref:[a,d],props:[i,c]})});function i1(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=i1(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function zd(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=i1(e))&&(o&&(o+=" "),o+=t);return o}var c1=(e)=>typeof e==="boolean"?`${e}`:e===0?"0":e,f1=zd,kr=(e,t)=>(a)=>{var o;if((t===null||t===void 0?void 0:t.variants)==null)return f1(e,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className);let{variants:r,defaultVariants:n}=t,l=Object.keys(r).map((i)=>{let c=a===null||a===void 0?void 0:a[i],d=n===null||n===void 0?void 0:n[i];if(c===null)return null;let f=c1(c)||c1(d);return r[i][f]}),s=a&&Object.entries(a).reduce((i,c)=>{let[d,f]=c;if(f===void 0)return i;return i[d]=f,i},{}),u=t===null||t===void 0?void 0:(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((i,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every((g)=>{let[v,L]=g;return Array.isArray(L)?L.includes({...n,...s}[v]):{...n,...s}[v]===L})?[...i,d,f]:i},[]);return f1(e,l,u,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className)};var yO=(e,t)=>{let a=Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},bO=(e,t)=>({classGroupId:e,validator:t}),x1=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var d1=[];var LO=(e)=>{let t=IO(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:(l)=>{if(l.startsWith("[")&&l.endsWith("]"))return SO(l);let s=l.split("-"),u=s[0]===""&&s.length>1?1:0;return v1(s,u,t)},getConflictingClassGroupIds:(l,s)=>{if(s){let u=o[l],i=a[l];if(u){if(i)return yO(i,u);return u}return i||d1}return a[l]||d1}}},v1=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let i=v1(e,t+1,n);if(i)return i}let l=a.validators;if(l===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),u=l.length;for(let i=0;i<u;i++){let c=l[i];if(c.validator(s))return c.classGroupId}return},SO=(e)=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?"arbitrary.."+o:void 0})(),IO=(e)=>{let{theme:t,classGroups:a}=e;return AO(a,t)},AO=(e,t)=>{let a=x1();for(let o in e){let r=e[o];Rx(r,a,o,t)}return a},Rx=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let l=e[n];TO(l,t,a,o)}},TO=(e,t,a,o)=>{if(typeof e==="string"){wO(e,t,a);return}if(typeof e==="function"){RO(e,t,a,o);return}DO(e,t,a,o)},wO=(e,t,a)=>{let o=e===""?t:C1(t,e);o.classGroupId=a},RO=(e,t,a,o)=>{if(kO(e)){Rx(e(o),t,a,o);return}if(t.validators===null)t.validators=[];t.validators.push(bO(a,e))},DO=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let l=0;l<n;l++){let[s,u]=r[l];Rx(u,C1(t,s),a,o)}},C1=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let l=o[n],s=a.nextPart.get(l);if(!s)s=x1(),a.nextPart.set(l,s);a=s}return a},kO=(e)=>("isThemeGetter"in e)&&e.isThemeGetter===!0,EO=(e)=>{if(e<1)return{get:()=>{return},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,l)=>{if(a[n]=l,t++,t>e)t=0,o=a,a=Object.create(null)};return{get(n){let l=a[n];if(l!==void 0)return l;if((l=o[n])!==void 0)return r(n,l),l},set(n,l){if(n in a)a[n]=l;else r(n,l)}}};var MO=[],p1=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),OO=(e)=>{let{prefix:t,experimentalParseClassName:a}=e,o=(r)=>{let n=[],l=0,s=0,u=0,i,c=r.length;for(let v=0;v<c;v++){let L=r[v];if(l===0&&s===0){if(L===":"){n.push(r.slice(u,v)),u=v+1;continue}if(L==="/"){i=v;continue}}if(L==="[")l++;else if(L==="]")l--;else if(L==="(")s++;else if(L===")")s--}let d=n.length===0?r:r.slice(u),f=d,p=!1;if(d.endsWith("!"))f=d.slice(0,-1),p=!0;else if(d.startsWith("!"))f=d.slice(1),p=!0;let g=i&&i>u?i-u:void 0;return p1(n,p,f,g)};if(t){let r=t+":",n=o;o=(l)=>l.startsWith(r)?n(l.slice(r.length)):p1(MO,!1,l,void 0,!0)}if(a){let r=o;o=(n)=>a({className:n,parseClassName:r})}return o},BO=(e)=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),(a)=>{let o=[],r=[];for(let n=0;n<a.length;n++){let l=a[n],s=l[0]==="[",u=t.has(l);if(s||u){if(r.length>0)r.sort(),o.push(...r),r=[];o.push(l)}else r.push(l)}if(r.length>0)r.sort(),o.push(...r);return o}},PO=(e)=>({cache:EO(e.cacheSize),parseClassName:OO(e),sortModifiers:BO(e),postfixLookupClassGroupIds:NO(e),...LO(e)}),NO=(e)=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},zO=/\\s+/,FO=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:l}=t,s=[],u=e.trim().split(zO),i="";for(let c=u.length-1;c>=0;c-=1){let d=u[c],{isExternal:f,modifiers:p,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:L}=a(d);if(f){i=d+(i.length>0?" "+i:i);continue}let m=!!L,h;if(m){let S=v.substring(0,L);h=o(S);let y=h&&l[h]?o(v):void 0;if(y&&y!==h)h=y,m=!1}else h=o(v);if(!h){if(!m){i=d+(i.length>0?" "+i:i);continue}if(h=o(v),!h){i=d+(i.length>0?" "+i:i);continue}m=!1}let x=p.length===0?"":p.length===1?p[0]:n(p).join(":"),C=g?x+"!":x,I=C+h;if(s.indexOf(I)>-1)continue;s.push(I);let b=r(h,m);for(let S=0;S<b.length;++S){let y=b[S];s.push(C+y)}i=d+(i.length>0?" "+i:i)}return i},UO=(...e)=>{let t=0,a,o,r="";while(t<e.length)if(a=e[t++]){if(o=y1(a))r&&(r+=" "),r+=o}return r},y1=(e)=>{if(typeof e==="string")return e;let t,a="";for(let o=0;o<e.length;o++)if(e[o]){if(t=y1(e[o]))a&&(a+=" "),a+=t}return a},qO=(e,...t)=>{let a,o,r,n,l=(u)=>{let i=t.reduce((c,d)=>d(c),e());return a=PO(i),o=a.cache.get,r=a.cache.set,n=s,s(u)},s=(u)=>{let i=o(u);if(i)return i;let c=FO(u,a);return r(u,c),c};return n=l,(...u)=>n(UO(...u))},HO=[],ca=(e)=>{let t=(a)=>a[e]||HO;return t.isThemeGetter=!0,t.themeKey=e,t},b1=/^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i,L1=/^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i,_O=/^\\d+(?:\\.\\d+)?\\/\\d+(?:\\.\\d+)?$/,VO=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,GO=/\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/,XO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\\(.+\\)$/,jO=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,YO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/,In=(e)=>_O.test(e),qe=(e)=>!!e&&!Number.isNaN(Number(e)),or=(e)=>!!e&&Number.isInteger(Number(e)),wx=(e)=>e.endsWith("%")&&qe(e.slice(0,-1)),Er=(e)=>VO.test(e),S1=()=>!0,WO=(e)=>GO.test(e)&&!XO.test(e),Dx=()=>!1,KO=(e)=>jO.test(e),ZO=(e)=>YO.test(e),QO=(e)=>!de(e)&&!pe(e),JO=(e)=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),$O=(e)=>An(e,T1,Dx),de=(e)=>b1.test(e),Tl=(e)=>An(e,w1,WO),m1=(e)=>An(e,s2,qe),e2=(e)=>An(e,D1,S1),t2=(e)=>An(e,R1,Dx),h1=(e)=>An(e,I1,Dx),a2=(e)=>An(e,A1,ZO),Fd=(e)=>An(e,k1,KO),pe=(e)=>L1.test(e),Yi=(e)=>wl(e,w1),o2=(e)=>wl(e,R1),g1=(e)=>wl(e,I1),r2=(e)=>wl(e,T1),n2=(e)=>wl(e,A1),Ud=(e)=>wl(e,k1,!0),l2=(e)=>wl(e,D1,!0),An=(e,t,a)=>{let o=b1.exec(e);if(o){if(o[1])return t(o[1]);return a(o[2])}return!1},wl=(e,t,a=!1)=>{let o=L1.exec(e);if(o){if(o[1])return t(o[1]);return a}return!1},I1=(e)=>e==="position"||e==="percentage",A1=(e)=>e==="image"||e==="url",T1=(e)=>e==="length"||e==="size"||e==="bg-size",w1=(e)=>e==="length",s2=(e)=>e==="number",R1=(e)=>e==="family-name",D1=(e)=>e==="number"||e==="weight",k1=(e)=>e==="shadow";var u2=()=>{let e=ca("color"),t=ca("font"),a=ca("text"),o=ca("font-weight"),r=ca("tracking"),n=ca("leading"),l=ca("breakpoint"),s=ca("container"),u=ca("spacing"),i=ca("radius"),c=ca("shadow"),d=ca("inset-shadow"),f=ca("text-shadow"),p=ca("drop-shadow"),g=ca("blur"),v=ca("perspective"),L=ca("aspect"),m=ca("ease"),h=ca("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...C(),pe,de],b=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],y=()=>[pe,de,u],T=()=>[In,"full","auto",...y()],w=()=>[or,"none","subgrid",pe,de],D=()=>["auto",{span:["full",or,pe,de]},or,pe,de],M=()=>[or,"auto",pe,de],R=()=>["auto","min","max","fr",pe,de],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...y()],_=()=>[In,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],le=()=>[s,In,"screen","full","dvw","lvw","svw","min","max","fit",...y()],V=()=>[In,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],P=()=>[e,pe,de],fe=()=>[...C(),g1,h1,{position:[pe,de]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",r2,$O,{size:[pe,de]}],U=()=>[wx,Yi,Tl],Y=()=>["","none","full",i,pe,de],K=()=>["",qe,Yi,Tl],ae=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[qe,wx,g1,h1],re=()=>["","none",g,pe,de],ve=()=>["none",qe,pe,de],ie=()=>["none",qe,pe,de],Z=()=>[qe,pe,de],xe=()=>[In,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Er],breakpoint:[Er],color:[S1],container:[Er],"drop-shadow":[Er],ease:["in","out","in-out"],font:[QO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Er],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Er],shadow:[Er],spacing:["px",qe],text:[Er],"text-shadow":[Er],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",In,de,pe,L]}],container:["container"],"container-type":[{"@container":["","normal","size",pe,de]}],"container-named":[JO],columns:[{columns:[qe,"auto",de,pe,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[or,"auto",pe,de]}],basis:[{basis:[In,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qe,In,"auto","initial","none",de]}],grow:[{grow:["",qe,pe,de]}],shrink:[{shrink:["",qe,pe,de]}],order:[{order:[or,"first","last","none",pe,de]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...V()]}],"min-block-size":[{"min-block":["auto",...V()]}],"max-block-size":[{"max-block":["none",...V()]}],w:[{w:[s,"screen",..._()]}],"min-w":[{"min-w":[s,"screen","none",..._()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh","none",..._()]}],"font-size":[{text:["base",a,Yi,Tl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,l2,e2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wx,de]}],"font-family":[{font:[o2,t2,t]}],"font-features":[{"font-features":[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,pe,de]}],"line-clamp":[{"line-clamp":[qe,"none",pe,m1]}],leading:[{leading:["none",n,...y()]}],"list-image":[{"list-image":["none",pe,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[qe,"from-font","auto",pe,Tl]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[qe,"auto",pe,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"tab-size":[{tab:[or,pe,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:Re()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},or,pe,de],radial:["",pe,de],conic:["",or,pe,de]},n2,a2]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-bs":[{"border-bs":K()}],"border-w-be":[{"border-be":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qe,pe,de]}],"outline-w":[{outline:["",qe,Yi,Tl]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","inner","none",c,Ud,Fd]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,Ud,Fd]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[qe,Tl]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,Ud,Fd]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[qe,pe,de]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[pe,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:Re()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,de]}],filter:[{filter:["","none",pe,de]}],blur:[{blur:re()}],brightness:[{brightness:[qe,pe,de]}],contrast:[{contrast:[qe,pe,de]}],"drop-shadow":[{"drop-shadow":["","none",p,Ud,Fd]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",qe,pe,de]}],"hue-rotate":[{"hue-rotate":[qe,pe,de]}],invert:[{invert:["",qe,pe,de]}],saturate:[{saturate:[qe,pe,de]}],sepia:[{sepia:["",qe,pe,de]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,de]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[qe,pe,de]}],"backdrop-contrast":[{"backdrop-contrast":[qe,pe,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qe,pe,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qe,pe,de]}],"backdrop-invert":[{"backdrop-invert":["",qe,pe,de]}],"backdrop-opacity":[{"backdrop-opacity":[qe,pe,de]}],"backdrop-saturate":[{"backdrop-saturate":[qe,pe,de]}],"backdrop-sepia":[{"backdrop-sepia":["",qe,pe,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[qe,"initial",pe,de]}],ease:[{ease:["linear","initial",m,pe,de]}],delay:[{delay:[qe,pe,de]}],animate:[{animate:["none",h,pe,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,pe,de]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[pe,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":["translate-none"],zoom:[{zoom:[or,pe,de]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,de]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[qe,Yi,Tl,m1]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var E1=qO(u2);function we(...e){return E1(zd(e))}var i2=kr("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=\'size-\'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=\'size-\'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*=\'size-\'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ua({className:e,variant:t="default",size:a="default",...o}){return A(Tx,{"data-slot":"button",className:we(i2({variant:t,size:a,className:e})),...o})}var Rl=Ix();function c2({...e}){return A(C0,{...e})}function f2({...e}){return A(cI,{"data-slot":"toast-portal",...e})}function d2({className:e,...t}){return A(O0,{"data-slot":"toast-viewport",className:we("pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full",e),...t})}function p2({className:e,...t}){return A(W0,{"data-slot":"toast",className:we("group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-2xl border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]","h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]","after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-[\'\']","data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]","data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]","[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]","data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]","data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",e),...t})}function m2({className:e,...t}){return A(K0,{"data-slot":"toast-content",className:we("flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100",e),...t})}function h2({className:e,...t}){return A(eI,{"data-slot":"toast-title",className:we("text-sm font-medium",e),...t})}function g2({className:e,...t}){return A($0,{"data-slot":"toast-description",className:we("text-sm text-muted-foreground",e),...t})}function x2({className:e,render:t=A(Ua,{variant:"outline",size:"sm"}),...a}){return A(rI,{"data-slot":"toast-action",render:t,className:we("shrink-0",e),...a})}function v2({className:e,children:t,render:a=A(Ua,{variant:"ghost",size:"icon-sm"}),...o}){return A(oI,{"data-slot":"toast-close","aria-label":"Close toast",render:a,className:we("relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[\'\'] hover:text-foreground",e),...o,children:t??A(Dr,{"aria-hidden":"true"})})}function C2({type:e}){let t=null;if(e==="success")t=A(vn,{"aria-hidden":"true"});if(e==="info")t=A(Gi,{"aria-hidden":"true"});if(e==="warning")t=A(Ln,{"aria-hidden":"true"});if(e==="error")t=A(yn,{className:"text-destructive","aria-hidden":"true"});if(e==="loading")t=A(Cn,{className:"animate-spin","aria-hidden":"true"});if(!t)return null;return A("span",{"data-slot":"toast-icon",className:"shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*=\'size-\'])]:size-4",children:t})}function y2(){let{toasts:e}=Sx();return e.map((t)=>A(p2,{toast:t,children:j(m2,{children:[A(C2,{type:t.type}),j("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[A(h2,{}),A(g2,{})]}),A(x2,{}),A(v2,{})]})},t.id))}function M1({children:e,toastManager:t=Rl,...a}){return j(c2,{toastManager:t,...a,children:[e,A(f2,{children:A(d2,{children:A(y2,{})})})]})}var Dua=Ix,kua=Sx;class qd{events=this;scopedEntries=new Map;universalEntries=[];nextId=0;nextOrder=0;on(e,t,a){let o=this.nextId++,r=this.scopedEntries.get(e)??[];return r.push({kind:"scoped",listener:t,once:a?.once??!1,id:o,order:this.nextOrder++}),this.scopedEntries.set(e,r),()=>this.off(o)}all(e,t){let a=this.nextId++;return this.universalEntries.push({kind:"universal",typeListener:e,once:t?.once??!1,id:a,order:this.nextOrder++}),()=>this.off(a)}dispatch(e,...t){let a=[...this.scopedEntries.get(e)??[],...this.universalEntries].sort((r,n)=>r.order-n.order),o=t[0];for(let r of a){if(r.kind==="scoped")r.listener(o);else r.typeListener(e,o);if(r.once)this.off(r.id)}}dispose(){this.scopedEntries.clear(),this.universalEntries.length=0}off(e){for(let[t,a]of this.scopedEntries){let o=a.filter((r)=>r.id!==e);if(o.length!==a.length)this.scopedEntries.set(t,o)}this.universalEntries=this.universalEntries.filter((t)=>t.id!==e)}}class kx{dispatcher=new qd;events=this.dispatcher.events;snapshot=null;offline=!1;stream=null;start(){if(this.stream!==null)return;let e=new EventSource("/events");this.stream=e,e.onmessage=()=>void this.load(),e.onopen=()=>this.set({offline:!1}),e.onerror=()=>this.set({offline:!0}),this.load()}dispose(){this.stream?.close(),this.stream=null}async load(){try{let e=await fetch("/api/snapshot");if(!e.ok)throw Error(`snapshot: ${e.status}`);this.set({snapshot:await e.json(),offline:!1})}catch{this.set({offline:!0})}}set(e){Object.assign(this,e),this.dispatcher.dispatch("changed")}}W();function O1(e){return Ge(e.defaultTagName??"div",e,e)}var b2=kr("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Ex({className:e,variant:t="default",render:a,...o}){return O1({defaultTagName:"span",props:Ll({className:we(b2({variant:t}),e)},o),render:a,state:{slot:"badge",variant:t}})}W();W();var Mx=Ue(void 0);function Ka(e){let t=Be(Mx);if(!e&&t===void 0)throw Error(ka(27));return t}var B1=Ce(function(t,a){let{render:o,className:r,style:n,forceRender:l=!1,...s}=t,u=Ka(),i=u.useState("open"),c=u.useState("nested"),d=u.useState("mounted"),f=u.useState("transitionStatus");return Ge("div",t,{state:{open:i,transitionStatus:f},ref:[u.context.backdropRef,a],stateAttributesMapping:n0,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},s],enabled:l||!c})});W();var Ox=Ce(function(t,a){let{render:o,className:r,style:n,disabled:l=!1,nativeButton:s=!0,...u}=t,i=Ka(),c=i.useState("open"),{getButtonProps:d,buttonRef:f}=Rr({disabled:l,native:s}),p={disabled:l};function g(v){if(c)i.setOpen(!1,Ma(rO,v.nativeEvent))}return Ge("button",t,{state:p,ref:[a,f],props:[{onClick:g},u,d]})});W();function Qs(e){return mn(e,"base-ui")}var P1=Ce(function(t,a){let{render:o,className:r,style:n,id:l,...s}=t,u=Ka(),i=Qs(l);return u.useSyncedValueWithCleanup("descriptionElementId",i),Ge("p",t,{ref:a,props:[{id:i},s]})});W();W();var Bx=Ue(void 0);function N1(){let e=Be(Bx);if(e===void 0)throw Error(ka(26));return e}var L2="ArrowUp",S2="ArrowDown",I2="ArrowLeft",A2="ArrowRight",T2="Home",w2="End";var z1=new Set([L2,S2,I2,A2,T2,w2]);var F1="--nested-dialogs";var via=Gg,Cia=Xg,yia=bM,bia=LM;var U1="data-nested-dialog-open";var q1={...Yg,...js,nestedDialogOpen(e){return e?{[U1]:""}:null}};var H1=Ce(function(t,a){let{render:o,className:r,style:n,finalFocus:l,initialFocus:s,...u}=t,i=Ka(),c=i.useState("descriptionElementId"),d=i.useState("disablePointerDismissal"),f=i.useState("floatingRootContext"),p=i.useState("popupProps"),g=i.useState("modal"),v=i.useState("mounted"),L=i.useState("nested"),m=i.useState("nestedOpenDialogCount"),h=i.useState("open"),x=i.useState("openMethod"),C=i.useState("titleElementId"),I=i.useState("transitionStatus"),b=i.useState("role"),S=f.useState("floatingId");N1(),Zs({open:h,ref:i.context.popupRef,onComplete(){if(h)i.context.onOpenChangeComplete?.(!0)}});let y=s===void 0?AI(i.context.popupRef):s,T=m>0,w=i.useStateSetter("popupElement"),M=Ge("div",t,{state:{open:h,nested:L,transitionStatus:I,nestedDialogOpen:T},props:[p,{id:S,"aria-labelledby":C,"aria-describedby":c,role:b,...II,hidden:!v,onKeyDown(R){if(z1.has(R.key))R.stopPropagation()},style:{[F1]:m}},u],ref:[a,i.context.popupRef,w],stateAttributesMapping:q1});return A(Cx,{context:f,openInteractionType:x,disabled:!v,closeOnFocusOut:!d,initialFocus:y,returnFocus:l,modal:g!==!1,restoreFocus:"popup",children:M})});W();W();var _1=Ce(function(t,a){let{cutout:o,...r}=t,n;if(o){let l=o.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${l.left}px ${l.top}px,${l.left}px ${l.bottom}px,${l.right}px ${l.bottom}px,${l.right}px ${l.top}px,${l.left}px ${l.top}px)`}return A("div",{ref:a,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});var V1=Ce(function(t,a){let{keepMounted:o=!1,...r}=t,n=Ka(),l=n.useState("mounted"),s=n.useState("modal"),u=n.useState("open");if(!(l||o))return null;return A(Bx.Provider,{value:o,children:j(px,{ref:a,...r,children:[l&&s===!0&&A(_1,{ref:n.context.internalBackdropRef,inert:Td(!u)}),t.children]})})});W();W();var G1={},X1={},j1="";function Hd(e,t){return jS(e)?e:t}function Y1(e,t,a){return/hidden|clip/.test(e.getComputedStyle(Hd(t,a)).overflowY)}function k2(e){if(typeof document>"u")return!1;let t=et(e);return ga(t).innerWidth-t.documentElement.clientWidth>0}function E2(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let a=et(e),{documentElement:o,body:r}=a,n=Hd(o,r),l=n.style.overflowY,s=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",n.style.overflowY="scroll";let u=n.offsetWidth;n.style.overflowY="hidden";let i=n.offsetWidth;return n.style.overflowY=l,o.style.scrollbarGutter=s,u===i}function M2(e){let t=et(e),{documentElement:a,body:o}=t,r=Hd(a,o),n={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,n)}}function O2(e){let t=et(e),{documentElement:a,body:o}=t,r=ga(a),n=0,l=0,s=!1,u=Ao.create();if(Xs.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function i(){let p=r.getComputedStyle(a),g=r.getComputedStyle(o),m=(p.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";n=a.scrollTop,l=a.scrollLeft,G1={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},j1=a.style.scrollBehavior,X1={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let h=a.scrollHeight>a.clientHeight,x=a.scrollWidth>a.clientWidth,C=p.overflowY==="scroll"||g.overflowY==="scroll",I=p.overflowX==="scroll"||g.overflowX==="scroll",b=Math.max(0,r.innerWidth-o.clientWidth),S=Math.max(0,r.innerHeight-o.clientHeight),y=parseFloat(g.marginTop)+parseFloat(g.marginBottom),T=parseFloat(g.marginLeft)+parseFloat(g.marginRight),w=Hd(a,o);if(s=E2(e),s){a.style.scrollbarGutter=m,w.style.overflowY="hidden",w.style.overflowX="hidden";return}if(Object.assign(a.style,{scrollbarGutter:m,overflowY:"hidden",overflowX:"hidden"}),h||C)a.style.overflowY="scroll";if(x||I)a.style.overflowX="scroll";Object.assign(o.style,{position:"relative",height:y||S?`calc(100dvh - ${y+S}px)`:"100dvh",width:T||b?`calc(100vw - ${T+b}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=n,o.scrollLeft=l,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function c(){if(Object.assign(a.style,G1),Object.assign(o.style,X1),!s)a.scrollTop=n,a.scrollLeft=l,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=j1}function d(){c(),u.request(i)}i();let f=We(r,"resize",d);return()=>{if(u.cancel(),c(),typeof r.removeEventListener==="function")f()}}class W1{lockCount=0;restore=null;timeoutLock=To.create();timeoutUnlock=To.create();acquire(e){if(this.lockCount+=1,this.lockCount===1&&this.restore===null)this.timeoutLock.start(0,()=>this.lock(e));return this.release}release=()=>{if(this.lockCount-=1,this.lockCount===0&&this.restore)this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{if(this.lockCount===0&&this.restore)this.restore?.(),this.restore=null};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=et(e),{documentElement:a,body:o}=t,r=ga(a);if(Y1(r,a,o)){let l=new r.MutationObserver(()=>{if(Y1(r,a,o))return;l.disconnect(),this.restore=null,this.lock(e)}),s={attributes:!0};l.observe(a,s),l.observe(o,s),this.restore=()=>l.disconnect();return}let n=Gs.ios||!k2(e);this.restore=n?M2(e):O2(e)}}var B2=new W1;function K1(e=!0,t=null){ye(()=>{if(!e)return;return B2.acquire(t)},[e,t])}function Z1({store:e,parentContext:t,isDrawer:a}){let o=e.useState("open"),r=e.useState("disablePointerDismissal"),n=e.useState("modal"),l=e.useState("popupElement"),s=e.useState("floatingRootContext"),[u,i]=J(0),[c,d]=J(0),f=u===0,p=yx(s,{outsidePressEvent(){if(e.context.internalBackdropRef.current||e.context.backdropRef.current)return"intentional";return{mouse:n==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(g){if(!e.context.outsidePressEnabledRef.current)return!1;if("button"in g&&g.button!==0)return!1;if("touches"in g){if(g.type==="touchend"){if(g.changedTouches.length!==1||g.touches.length!==0)return!1}else if(g.touches.length!==1)return!1}let v=Yt(g);if(f&&!r){if(n){let L=e.context.internalBackdropRef.current,m=e.context.backdropRef.current;return L||m?L===v||m===v||ze(v,l)&&!v?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:f});return K1(o&&n===!0,l),e.useContextCallback("onNestedDialogOpen",(g,v)=>{i(g),d(v)}),ye(()=>{if(t?.onNestedDialogOpen)if(o)t.onNestedDialogOpen(u+1,c+(a?1:0));else t.onNestedDialogOpen(0,0);return()=>{if(t?.onNestedDialogOpen&&o)t.onNestedDialogOpen(0,0)}},[a,o,u,c,t]),EI(e,{activeTriggerProps:p.reference,inactiveTriggerProps:p.trigger,popupProps:p.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:c}),null}W();var P2={...NI,modal:(e)=>e.modal,nested:(e)=>e.nested,nestedOpenDialogCount:(e)=>e.nestedOpenDialogCount,nestedOpenDrawerCount:(e)=>e.nestedOpenDrawerCount,disablePointerDismissal:(e)=>e.disablePointerDismissal,openMethod:(e)=>e.openMethod,descriptionElementId:(e)=>e.descriptionElementId,titleElementId:(e)=>e.titleElementId,viewportElement:(e)=>e.viewportElement,role:(e)=>e.role};class Px extends pl{constructor(e,t,a){let o=new bx,r=N2(e,o,t,a);super(r,z2(o),P2)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null)t.trigger=this.state.activeTriggerElement??void 0;if(this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(RI(this.state,e,t.trigger))}}function N2(e,t,a,o=!1){return{...BI(t,a,o),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function z2(e){return{popupRef:Wl(),backdropRef:Wl(),internalBackdropRef:Wl(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Q1(e,t){let{children:a,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:l,disablePointerDismissal:s=!1,modal:u=!0,actionsRef:i,handle:c,triggerId:d,defaultTriggerId:f=null}=t,p=e==="drawer",g=e==="alert-dialog",v=g?!0:u,L=g||s,m=g?"alertdialog":"dialog",h=Ka(!0),x=h!=null,C={modal:v,disablePointerDismissal:L,nested:x,role:m},I=TI((D,M)=>new Px({open:r,openProp:o,activeTriggerId:f,triggerIdProp:d,...C},D,M),!0);I.useControlledProp("openProp",o),I.useControlledProp("triggerIdProp",d),I.useSyncedValues(C),I.useContextCallback("onOpenChange",n),I.useContextCallback("onOpenChangeComplete",l);let b=I.useState("open"),S=I.useState("mounted"),y=I.useState("payload");MI(I,b),DI(I);let{forceUnmount:T}=kI(b,I);Sc(i,()=>({unmount:T,close:()=>I.setOpen(!1,Ma(lO))}),[T,I]);let w=b||S;return j(Mx.Provider,{value:I,children:[c&&A(wI,{handle:c,store:I}),w&&A(Z1,{store:I,parentContext:h?.context,isDrawer:p}),typeof a==="function"?a({payload:y}):a]})}var J1=XS(function(t){return Q1("dialog",t)});W();var $1=Ce(function(t,a){let{render:o,className:r,style:n,id:l,...s}=t,u=Ka(),i=Qs(l);return u.useSyncedValueWithCleanup("titleElementId",i),Ge("h2",t,{ref:a,props:[{id:i},s]})});W();function eA(e,t){let a=z(e),o=Qe(t);ye(()=>{if(a.current!==e)o(a.current);a.current=e},[e,o])}function Wi({...e}){return A(J1,{"data-slot":"dialog",...e})}function F2({...e}){return A(V1,{"data-slot":"dialog-portal",...e})}function U2({className:e,...t}){return A(B1,{"data-slot":"dialog-overlay",className:we("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function _d({className:e,children:t,showCloseButton:a=!0,...o}){return j(F2,{children:[A(U2,{}),j(H1,{"data-slot":"dialog-content",className:we("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[t,a&&j(Ox,{"data-slot":"dialog-close",render:A(Ua,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[A(Dr,{}),A("span",{className:"sr-only",children:"Close"})]})]})]})}function Vd({className:e,...t}){return A("div",{"data-slot":"dialog-header",className:we("flex flex-col gap-2",e),...t})}function aA({className:e,showCloseButton:t=!1,children:a,...o}){return j("div",{"data-slot":"dialog-footer",className:we("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...o,children:[a,t&&A(Ox,{render:A(Ua,{variant:"outline"}),children:"Close"})]})}function Gd({className:e,...t}){return A($1,{"data-slot":"dialog-title",className:we("text-base leading-none font-medium",e),...t})}function Xd({className:e,...t}){return A(P1,{"data-slot":"dialog-description",className:we("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}W();function Nx(e){if(Array.isArray(e))return e.map((t)=>Nx(t)).join(",");if(e==null)return"";return String(e)}var oA=new Map;function q2(e,t){let a=JSON.stringify({locale:Nx(e),options:t}),o=oA.get(a);if(o)return o;let r=new Intl.NumberFormat(e,t);return oA.set(a,r),r}function zx(e,t,a){if(e==null)return"";return q2(t,a).format(e)}function rA(e,t,a){return(e-t)*100/(a-t)}W();var Fx=Ue(void 0);function jd(){let e=Be(Fx);if(e===void 0)throw Error(ka(51));return e}var nA="data-complete",lA="data-indeterminate",sA="data-progressing";var Js={status(e){if(e==="progressing")return{[sA]:""};if(e==="complete")return{[nA]:""};if(e==="indeterminate")return{[lA]:""};return null}};var uA=Ce(function(t,a){let{format:o,getAriaValueText:r,locale:n,max:l=100,min:s=0,value:u,render:i,className:c,children:d,style:f,...p}=t,[g,v]=J(),L="indeterminate",m=null,h=null,x="",C="indeterminate progress";if(u!=null&&Number.isFinite(u)){let T=rA(u,s,l);m=cx(Number.isNaN(T)?0:T,0,100),h=cx(u,s,l),L=h===l?"complete":"progressing",x=o?zx(h,n,o):zx(m/100,n,{style:"percent"}),C=x}let I=Le(()=>({status:L}),[L]),b={"aria-labelledby":g,"aria-valuemax":l,"aria-valuemin":s,"aria-valuenow":h??void 0,"aria-valuetext":r?r(x,u):C,role:"progressbar",children:j(ya,{children:[d,A("span",{role:"presentation",style:Ws,children:"x"})]})},S=Le(()=>({formattedValue:x,percentageValue:m,setLabelId:v,state:I,value:u}),[x,m,v,I,u]),y=Ge("div",t,{state:I,ref:a,props:[b,p],stateAttributesMapping:Js});return A(Fx.Provider,{value:S,children:y})});W();var iA=Ce(function(t,a){let{render:o,className:r,style:n,...l}=t,{state:s}=jd();return Ge("div",t,{state:s,ref:a,props:l,stateAttributesMapping:Js})});W();var cA=Ce(function(t,a){let{render:o,className:r,style:n,...l}=t,{percentageValue:s,state:u}=jd(),i=s==null?{}:{insetInlineStart:0,height:"inherit",width:`${s}%`};return Ge("div",t,{state:u,ref:a,props:[{style:i},l],stateAttributesMapping:Js})});function dA({className:e,children:t,value:a,...o}){return j(uA,{value:a,"data-slot":"progress",className:we("flex flex-wrap gap-3",e),...o,children:[t,A(_2,{children:A(V2,{})})]})}function _2({className:e,...t}){return A(iA,{className:we("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...t})}function V2({className:e,...t}){return A(cA,{"data-slot":"progress-indicator",className:we("h-full bg-primary transition-all",e),...t})}class Yd extends Error{}class Ux{heading;level;line;body;lead;constructor(e,t,a,o,r){this.heading=e;this.level=t;this.line=a;this.body=o;this.lead=r}codeBlocks(e="body"){let t=[],a=null;for(let o of this[e].split(`\n`)){let r=o.match(/^(```+|~~~+)\\s*(\\S*)/);if(a===null&&r)a={mark:r[1]??"`",lang:r[2]??"",code:[]};else if(a!==null&&r&&r[2]===""&&r[1]?.[0]===a.mark[0])t.push({lang:a.lang,code:a.code.join(`\n`)}),a=null;else if(a!==null)a.code.push(o)}return t}}class $s{text;fields;body;sections;constructor(e,t,a,o){this.text=e;this.fields=t;this.body=a;this.sections=o}static parse(e){let{fields:t,body:a,offset:o}=G2(e);return new $s(e,t,a,X2(a,o))}get title(){return this.sections.find((e)=>e.level===1)?.heading??null}field(e){let t=this.fields[e];if(t===void 0)throw new Yd(`no field "${e}" (have: ${Object.keys(this.fields).join(", ")||"none"})`);return t}has(e){return this.find(e)!==void 0}section(e){let t=this.find(e);if(!t)throw new Yd(`no section "${e}" (have: ${this.sections.map((a)=>a.heading).join(", ")||"none"})`);return t}find(e){let t=e.toLowerCase();return this.sections.find((a)=>a.heading.toLowerCase()===t)}}function G2(e){let t=e.match(/^---\\n([\\s\\S]*?)\\n---(?:\\n|$)/);if(!t)return{fields:{},body:e,offset:0};let a={};for(let o of(t[1]??"").split(`\n`)){let r=o.match(/^(\\S+):\\s*(.*)$/);if(r?.[1])a[r[1]]=(r[2]??"").trim().replace(/^(["\'])(.*)\\1$/,"$2")}return{fields:a,body:e.slice(t[0].length),offset:t[0].split(`\n`).length-1}}function X2(e,t){let a=e.split(`\n`),o=[],r=null;for(let[n,l]of a.entries()){let s=l.match(/^(```+|~~~+)/)?.[1];if(s){r=r===null?s:r[0]===s[0]?null:r;continue}let u=r===null&&l.match(/^(#{1,6})\\s+(.*)$/);if(u)o.push({heading:(u[2]??"").trim(),level:(u[1]??"#").length,index:n})}return o.map(({heading:n,level:l,index:s},u)=>{let i=o.slice(u+1),c=i.find((f)=>f.level<=l)?.index??a.length,d=i.find((f)=>f.index<c)?.index??c;return new Ux(n,l,s+t+1,a.slice(s+1,c).join(`\n`).trim(),a.slice(s+1,d).join(`\n`).trim())})}var j2=/^[ \\t]*- \\[([ xX])\\]/gm,Y2=["Done","Next"];function pA(e){let t=$s.parse(e),a=Y2.flatMap((o)=>t.has(o)?[...t.section(o).body.matchAll(j2)]:[]);if(a.length===0)return null;return{done:a.filter((o)=>o[1]!==" ").length,total:a.length}}W();var Wd;function mA(e){if(!Wd){if(typeof document>"u")return;Wd=document.createElement("textarea")}var t=`&${e};`;Wd.innerHTML=t;var a=Wd.value;return a===t?void 0:a}var X=32,te=9,Mn=13,ge=10,lt=96,la=126,ht=91,Or=94,Ve=62,Mo=35,Gx=37,Fe=45,Do=61,$t=92,Ht=42,Ot=95,ft=60,YA=64,uo=93,Pa=33,sp=38,Ba=58,Xx=70,Ol=102,tp=104,Ml=119,nu=116,jx=112,WA=115,W2=160,K2=12,Z2=44,ap=59,uu=63,ko=46,Ut=47,Bl=39,Pl=34,On=43,fa=124,Nl=123,uv=125,so=40,Eo=41,Q2=78,J2=110,$2=79,eB=111,KA=120,ZA=88,Yx=30,He=48,_e=57,Me=65,Oe=90,ct=97,bt=122,up=128,Go=32,tB={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},E=tB;function aB(e){if(!gA(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]==="\\t");)t++;if(t<e.length&&e[t]==="\\r"&&t++,t>=e.length||e[t]!==`\n`)return null;t++;let a=!1;for(;t<e.length;){let o=t;for(;t<e.length&&e[t]!==`\n`&&e[t]!=="\\r";)t++;if(t>=e.length)break;let r=t;if(e[t]==="\\r"&&t++,t<e.length&&e[t]===`\n`&&t++,gA(e,"---",o))return{endPos:t,hasValidYaml:a};if(!a){let n=pB(e,o,r);if(n<r){let l=e.charCodeAt(n);if(l>=ct&&l<=bt||l>=Me&&l<=Oe||l>=He&&l<=_e||l===Ot){for(n++;n<r&&(l=e.charCodeAt(n),l>=ct&&l<=bt||l>=Me&&l<=Oe||l>=He&&l<=_e||l===Ot||l===Fe||l===ko);)n++;n<r&&e.charCodeAt(n)===Ba&&(n++,n>=r?a=!0:(l=e.charCodeAt(n),(l===X||l===te)&&(a=!0)))}}}}return null}var oB=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,rB={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},nB={};function QA(e){if(!e)return nB;var t={};for(var a in e){var o=a.toLowerCase(),r=rB[o];if(r)t[r]=e[a];else{var n=a.indexOf(":");n===-1?t[a]=e[a]:t[a.slice(0,n)+a[n+1].toUpperCase()+a.slice(n+2)]=e[a]}}return t}var lB=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\\b)/i;function Dn(e){return e.indexOf("&")===-1?e:e.replace(oB,(t,a)=>{var o=mA(a);if(o)return o;if(a[0]==="#"){var r=a[1]==="x"||a[1]==="X"?Number.parseInt(a.slice(2),16):Number.parseInt(a.slice(1),10);return r===0||r>=55296&&r<=57343||r>1114111?"�":r<=65535?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10),56320+(r-65536&1023))}return t})}var hA=/(javascript|vbscript|data(?!:image)):/i;function Mr(e){if(hA.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(hA.test(t))return null}catch{return null}return e}var Oa={},qa,sa;for(qa=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="a";for(Oa[231]=Oa[199]="c",Oa[240]=Oa[208]="d",qa=[200,201,202,203,233,232,234,235],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="e";for(qa=[207,239,206,238,205,237,204,236],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="i";for(Oa[209]=Oa[241]="n",qa=[248,216,339,338,213,245,212,244,211,243,210,242],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="o";for(qa=[220,252,219,251,218,250,217,249],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="u";Oa[376]=Oa[255]=Oa[221]=Oa[253]="y";function zl(e){for(var t="",a=-1,o=e.length,r=0;r<o;r++){var n=e.charCodeAt(r);if(n>=ct&&n<=bt||n>=He&&n<=_e){a<0&&(a=r);continue}if(n>=Me&&n<=Oe){a>=0&&(t+=e.slice(a,r),a=-1),t+=String.fromCharCode(n+Go);continue}if(n===X||n===Fe){a>=0&&(t+=e.slice(a,r),a=-1),t+="-";continue}a>=0&&(t+=e.slice(a,r),a=-1);var l=Oa[n];l&&(t+=l)}return a>=0&&(t+=e.slice(a)),t}function gA(e,t,a){return e.startsWith(t,a)}var xA=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function Qi(e){let t=e.toLowerCase();if(xA.has(t))return!0;let a=t.indexOf(":");return a!==-1?(t=t.slice(a+1),xA.has(t)):!1}var El=1,vA=2,au=4,CA=8,sB=16,Vo=32,Tn=64,uB=(()=>{var e=new Uint8Array(128),t;for(e[te]=El,e[ge]=El|vA,e[K2]=El,e[Mn]=El|vA,e[X]=El,t=Pa;t<=Ut;t++)e[t]=au;for(t=Ba;t<=YA;t++)e[t]=au;for(t=ht;t<=lt;t++)e[t]=au;for(t=Nl;t<=la;t++)e[t]=au;for(t=He;t<=_e;t++)e[t]=sB;for(t=Me;t<=Oe;t++)e[t]=CA;for(t=ct;t<=bt;t++)e[t]=CA;return e})(),iB=/[\\p{P}\\p{S}]/u,cB=/\\p{Zs}/u,Dl=[];function fB(e){var t=e.indexOf("\\r"),a=e.indexOf("\\x00");if(t===-1&&a===-1)return e;var o=e.length;Dl.length=0;var r=0,n=0;for(t===-1?n=a:a===-1?n=t:n=t<a?t:a;n<o;n++){var l=e.charCodeAt(n);l===Mn?(r<n&&Dl.push(e.slice(r,n)),n+1<o&&e.charCodeAt(n+1)===ge&&n++,Dl.push(`\n`),r=n+1):l===0&&(r<n&&Dl.push(e.slice(r,n)),Dl.push("�"),r=n+1)}return r<o&&Dl.push(e.slice(r)),Dl.join("")}function dB(e){return e.replace(/>\\s+</g,"><").replace(/\\n+/g," ").trim()}function pB(e,t,a){let o=a??e.length;for(;t<o&&(e[t]===" "||e[t]==="\\t");)t++;return t}function JA(e){if(!e)return!1;for(var t in e)return!0;return!1}function mB(e){return{attrs:{},children:[{type:E.text,text:e}],c:!0,type:E.htmlBlock,tag:"header"}}var hB=/^\\n+/;function gB(e){for(var t=e.length;t>0&&(e[t-1]===`\n`||e[t-1]==="\\r");)t--;return`${e.slice(0,t).replace(hB,"")}\n\n`}function ou(e){if((e.type===E.htmlSelfClosing||e.type===E.htmlBlock)&&e.a)return[];if(e.type===E.paragraph){var t=e.children;return t?t.flatMap(ou):[]}return e.type===E.text?e.text?.trim()?[e]:[]:e.type===E.htmlBlock&&e.children?[{...e,children:e.children?.flatMap(ou)}]:[e]}function $A(e){for(var t=0;t<e.length;t++){if(e[t].type===E.htmlBlock){var a=e[t],o=!1;if(a.c&&t===e.length-1){var r=a.j===void 0?a.a?a.e||"":(a.e||"")+(a.h||""):a.j,n=`</${String(a.tag).toLowerCase()}>`,l=r.toLowerCase().indexOf(n);if(l!==-1){var s=r.slice(l+n.length).replace(/<\\/[a-z][a-z0-9-]*\\s*>/gi,"");s.trim()&&(o=!0)}}o||(a.c=!1)}"children"in e[t]&&e[t].children&&$A(e[t].children)}}function xB(e,t){for(var a=0;a<e.length;a++){var o=e[a];if(o.type===E.paragraph&&o.children)for(var r=o.children,n=0;n<r.length;n++){var l=r[n];if(l.type===E.htmlSelfClosing&&l.a&&l.tag.toLowerCase()===t){var s=e.slice(0,a);n>0&&s.push({type:E.paragraph,children:r.slice(0,n)});var u=[];if(n+1<r.length){var i=r.slice(n+1).filter((c)=>!(c.type===E.htmlSelfClosing&&c.a));i.length>0&&(u=i)}return u=u.concat(e.slice(a+1)),{found:!0,beforeClose:s,afterClose:u}}}if((o.type===E.htmlSelfClosing||o.type===E.htmlBlock)&&o.a&&o.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,a),afterClose:e.slice(a+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function vB(e){var t="";for(var a in e){var o=e[a];o===!0?t+=` ${a}`:o!==void 0&&o!=null&&o!==!1&&(t+=` ${a}="${String(o)}"`)}return t}function yA(e,t,a,o){var r;return t===void 0?r=vB(a):r=t.length>0&&t.charCodeAt(0)>X?` ${t}`:t,`<${e}${r}${o}`}function bA(e){var t=e.tag,a=e.type===E.htmlSelfClosing,o=e,r=o.b,n=`</${t}>`;if(!a&&o.a)return{kind:"literal",literal:(o.h||n)+(o.e||"")};if(a){var l=e;return l.a?{kind:"literal",literal:l.h||n}:l.m?{kind:"literal",literal:l.m}:{kind:"literal",literal:yA(t,r,e.attrs," />")}}var s=yA(t,r,e.attrs,">"),u=o.children,i=u!=null&&u.length>0;if(o.c&&o.j!==void 0)return i?{kind:"sandwich",open:s,close:n}:{kind:"literal",literal:o.j};if(o.c&&!i)return{kind:"literal",literal:s+(o.e||"")+(o.h||n)};if(u!=null&&u.length>0){for(var c="",d=0;d<u.length;d++){var f=u[d];if(f.type!==E.text)return{kind:"sandwich",open:s,close:n};c+=f.text}return{kind:"literal",literal:s+c+n}}var p=o.e||"";return p&&p.indexOf(n)!==-1?{kind:"literal",literal:s+p}:{kind:"literal",literal:s+p+n}}function CB(e,t,a){var o=[],r=e,n=a;if(r&&o.push(r),Array.isArray(t))for(var l=0;l<t.length;l++)o.push(t[l]);else t!=null&&o.push(t);n&&o.push(n);for(var s=[],u=0;u<o.length;u++){var i=o[u];typeof i=="string"&&s.length>0&&typeof s.at(-1)=="string"?s[s.length-1]=s.at(-1)+i:s.push(i)}return s}function tu(e){return e==null||e.tagfilter!==!1}function yB(e,t,a,o){var r=t(e,a,o);return r===null?null:LB(r)}function bB(e){var t=[];if(!e)return t;for(var a in e)a.charCodeAt(0)===94&&t.push({identifier:a,footnote:e[a].target});return t}function LA(e){for(var t=0,a=e.length;t<a;){var o=e.charCodeAt(t);if(o>=Me&&o<=Oe)return e.toLowerCase();t++}return e}function Wx(e,t,a){if(t.indexOf(".")===-1){var o=e?.[t];if(o)return o;if(e){var r=LA(t);if(r!==t){var n=e[r];if(n)return n}}return a}for(var l=e,s=t.split("."),u=0,i=!1;u<s.length;){if(l=l?.[s[u]],l===void 0){i=u===0;break}u++}if(i&&e){var c=LA(s[0]);if(c!==s[0])for(l=e[c],u=1;l!==void 0&&u<s.length;)l=l?.[s[u]],u++}return l||a}function LB(e){for(var t=!1,a=0;a<e.length;a++){var o=e.charCodeAt(a);if(o<=X||o===Pl||o===Gx||o===ft||o===Ve||o===ht||o===$t||o===uo||o===Or||o===lt||o>=123){t=!0;break}}if(!t)return e;for(var r="",a=0;a<e.length;a++){var o=e.charCodeAt(a);if(o===Gx&&a+2<e.length){var n=e.charCodeAt(a+1),l=e.charCodeAt(a+2);if((n>=He&&n<=_e||n>=Me&&n<=Xx||n>=ct&&n<=Ol)&&(l>=He&&l<=_e||l>=Me&&l<=Xx||l>=ct&&l<=Ol)){r+=e[a]+e[a+1]+e[a+2],a+=2;continue}}if(o>=55296&&o<=57343){if(o<=56319&&a+1<e.length){var s=e.charCodeAt(a+1);if(s>=56320&&s<=57343){r+=encodeURI(e[a]+e[a+1]),a++;continue}}r+=e[a];continue}r+=encodeURI(e[a])}return r}function SB(...e){return e.filter(Boolean).join(" ")}var IB=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),op=/<(\\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\\s|>|\\/)/gi;function SA(e){return IB.has(e.toLowerCase())}function AB(e){return op.lastIndex=0,op.test(e)}function IA(e){return op.lastIndex=0,e.replace(op,(t,a,o,r)=>`<${a}${o}${r}`)}function iv(e,t){var a=e||{},o=a.slugify,r;if(o){var n=o;r=(l)=>n(l,zl)}else r=zl;return{disableAutoLink:a.disableAutoLink,disableFrontmatter:a.disableFrontmatter,disableParsingRawHTML:a.disableParsingRawHTML,enforceAtxHeadings:a.enforceAtxHeadings,evalUnserializableExpressions:a.evalUnserializableExpressions,forceBlock:a.forceBlock,forceInline:t===void 0?a.forceInline:t,ignoreHTMLBlocks:a.ignoreHTMLBlocks,optimizeForStreaming:a.optimizeForStreaming,preserveFrontmatter:a.preserveFrontmatter,sanitizer:a.sanitizer||Mr,slugify:r,tagfilter:tu(a)}}var TB=/^<([a-zA-Z][a-zA-Z0-9-]*)\\s[^>]*>/,wB=/^<[A-Z]/,Kx=["script","pre","style","textarea"],Ji=new Set(Kx),RB=/<(?:pre|script|style|textarea)\\b/i,AA=/<(?:pre|script|style|textarea)\\b/iy,qx=/^(\\s{0,3}#[#\\s]|\\s{0,3}[-*+]\\s|\\s{0,3}\\d+\\.\\s|\\s{0,3}>\\s|\\s{0,3}```)/m,TA=/^<([a-z][^ >/\\n\\r]*) ?([^>]*?)>/im,eT=new Uint8Array(128);(()=>{for(var e=[lt,Ht,Ot,la,Do,ht,Pa,ft,$t,sp,ge,tp,Ml,Ol],t=0;t<e.length;t++)eT[e[t]]=1})();var wA=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|\'([^\']*)\')/g;function DB(e){return Ji.has(e)}function kB(e){return RB.test(e)}function tT(e,t,a){for(var o=t,r=a;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;if(o>=r)return!1;e.charCodeAt(o)===fa&&o++;for(var n=0;o<r;){for(;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;if(o>=r)break;if(e.charCodeAt(o)===fa&&n>0){for(var l=o+1;l<r&&(e.charCodeAt(l)===X||e.charCodeAt(l)===te);)l++;if(l>=r)return!0}if(e.charCodeAt(o)===Ba&&o++,o>=r||e.charCodeAt(o)!==Fe)return!1;for(;o<r&&e.charCodeAt(o)===Fe;)o++;for(o<r&&e.charCodeAt(o)===Ba&&o++,n++;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;if(o<r)if(e.charCodeAt(o)===fa)o++;else return!1}return n>0}var EB=/[\\u0000-\\u001F\\u007F]/g,MB={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},OB=/&#(x[0-9a-f]+|[0-9]+);?/gi;function BB(e){return e.indexOf("&#")===-1?e:e.replace(OB,(t,a)=>{var o=a.charCodeAt(0)===KA||a.charCodeAt(0)===ZA?Number.parseInt(a.slice(1),16):Number.parseInt(a,10);return o>0&&o<=1114111?String.fromCodePoint(o):t})}function PB(e,t,a){if(a&&t.charCodeAt(0)===Nl)return!1;var o=e.charCodeAt(0),r=e.charCodeAt(1);if((o===eB||o===$2)&&(r===J2||r===Q2))return!(a&&t==="");var n=e.toLowerCase();if(n==="srcdoc")return!0;if(n==="style")return/url\\s*\\(\\s*(javascript|vbscript|data:(?!image\\/))/i.test(t);if(MB[n]===1){var l=BB(Dn(t));if(Mr(l)===null)return!0;var s=l.replace(EB,"");return s!==l&&Mr(s)===null}return!1}function Zx(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function RA(e,t,a,o){for(var r=[],n=t,l=0;l<o.length;l+=2){var s=o[l];if(s>n){var u=e.slice(n,s).trim();u&&r.push(u)}n=o[l+1]}if(n<a){var i=e.slice(n,a).trim();i&&r.push(i)}return r.join(" ")}function nr(e,t){if(e.charCodeAt(t)!==ft)return null;let a=t+1,o=e.length,r=!1;e.charCodeAt(a)===Ut&&(a++,r=!0);let n=a,l=e.charCodeAt(a);if(!(l>=ct&&l<=bt||l>=Me&&l<=Oe))return null;for(;a<o&&(e.charCodeAt(a)>=ct&&e.charCodeAt(a)<=bt||e.charCodeAt(a)>=Me&&e.charCodeAt(a)<=Oe||e.charCodeAt(a)>=He&&e.charCodeAt(a)<=_e||e.charCodeAt(a)===Fe);)a++;let s=e.slice(n,a);if(!s)return null;let u=s.charCodeAt(0),i=u>=Me&&u<=Oe||s.indexOf("-")!==-1,c=a;for(;a<o&&(e.charCodeAt(a)===X||e.charCodeAt(a)===te||e.charCodeAt(a)===ge);)a++;let d=e.slice(c,a);if(a===c&&a<o){var f=e.charCodeAt(a);if(f!==Ve&&f!==Ut)return null}let p=a,g={},v=!1;for(var L=null;a<o;){let R=e.charCodeAt(a);if(R===Ve){let B=L?RA(e,p,a,L):e.slice(p,a);return{r:v,u:i,f:r,b:B,q:L!=null,n:!1,g:d,attrs:g,end:a+1,tag:s}}if(R===X||R===te||R===ge){a++;continue}if(R===Ut&&a+1<o&&e.charCodeAt(a+1)===Ve){v=a>p&&e.charCodeAt(a-1)===X;let B=L?RA(e,p,a,L):e.slice(p,a);return{r:v,u:i,f:r,b:B,q:L!=null,n:!0,g:d,attrs:g,end:a+2,tag:s}}var m=a,h=e.charCodeAt(a);if(!(h>=ct&&h<=bt||h>=Me&&h<=Oe||h===Ot||h===Ba))return null;for(a++;a<o;){var x=e.charCodeAt(a);if(x>=ct&&x<=bt||x>=Me&&x<=Oe||x>=He&&x<=_e||x===Ot||x===ko||x===Ba||x===Fe)a++;else break}for(var C=e.slice(m,a),I=a;a<o&&(e.charCodeAt(a)===X||e.charCodeAt(a)===te);)a++;var b,S;if(e.charCodeAt(a)===Do){for(a++;a<o&&(e.charCodeAt(a)===X||e.charCodeAt(a)===te);)a++;var y=e.charCodeAt(a);if(y===Pl||y===Bl){a++;for(var T=a;a<o&&e.charCodeAt(a)!==y;)a++;if(a>=o)return null;if(b=e.slice(T,a),a++,a<o){var w=e.charCodeAt(a);if(w!==X&&w!==te&&w!==ge&&w!==Ve&&w!==Ut)return null}S=a}else if(y===Nl){var D=1,T=a;for(a++;a<o&&D>0;){var x=e.charCodeAt(a);x===Nl?D++:x===uv&&D--,a++}b=e.slice(T,a),S=a}else{for(var T=a;a<o;){var M=e.charCodeAt(a);if(M===X||M===te||M===Ve||M===ge||M===Pl||M===Bl||M===Do||M===ft||M===lt)break;a++}if(a===T)return null;b=e.slice(T,a),S=a}}else b="",S=I;PB(C,b,i)?(L===null&&(L=[]),L.push(m,S)):g[C]=b}return null}function lo(e){var t=e.indexOf("<");if(t===-1)return e;for(var a="",o=0,r=!1;t!==-1;){var n=nr(e,t);n?(n.q&&(a+=e.slice(o,t)+Zx(n),o=n.end,r=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return r?a+e.slice(o):e}function NB(e,t,a){if(!a.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var o=0,r=e.length,n=!1,l=!1;o<r;){for(var s=e.indexOf(`\n`,o),u=s<0?r:s,i=o,c=0;i<u&&c<4;)if(e.charCodeAt(i)===X)c++,i++;else if(e.charCodeAt(i)===te)c+=4,i++;else break;if(i>=u){n=!1,o=s<0?r:s+1;continue}if(c<4){var d=e.charCodeAt(i);if(d===lt||d===la){for(var f=d,p=0,g=i;g<u&&e.charCodeAt(g)===f;)p++,g++;if(p>=3){var v=!0;if(f===lt){for(var L=g;L<u;L++)if(e.charCodeAt(L)===lt){v=!1;break}}if(v){n=!1;for(var m=s<0?r:s+1;m<r;){for(var h=m,x=0;h<r&&x<4;){var C=e.charCodeAt(h);if(C===X)x++,h++;else if(C===te)x+=4,h++;else break}if(x<4&&h<r&&e.charCodeAt(h)===f){for(var I=0;h<r&&e.charCodeAt(h)===f;)I++,h++;if(I>=p){for(;h<r&&(e.charCodeAt(h)===X||e.charCodeAt(h)===te);)h++;if(h>=r||e.charCodeAt(h)===ge){o=h>=r?r:h+1;break}}}for(;m<r&&e.charCodeAt(m)!==ge;)m++;m<r&&m++}m>=r&&(o=r,l=!0);continue}}}}for(var b=i;b<u&&e.charCodeAt(b)===Ve;){b++,b<u&&e.charCodeAt(b)===X&&b++;for(var S=0;b<u&&S<4;)if(e.charCodeAt(b)===X)S++,b++;else if(e.charCodeAt(b)===te)S+=4,b++;else break;if(S>=4)break;n=!1}if(!n&&c<4&&b<u&&e.charCodeAt(b)===ht&&!(b+1<r&&e.charCodeAt(b+1)===Or)){var y=aT(e,b,t);if(y){o=y,n=!1;continue}}var T=e.charCodeAt(i);if(T===Mo&&c<4)n=!1;else if(c<4&&(T===Fe||T===Ht||T===Ot)){for(var w=i,D=0;w<u;){var M=e.charCodeAt(w);if(M===T)D++;else if(M!==X&&M!==te)break;w++}n=!(D>=3&&w>=u)}else n=!0;o=s<0?r:s+1}return l}function aT(e,t,a){let o=e.length;if(e.charCodeAt(t)!==ht)return null;let r=t+1<o&&e.charCodeAt(t+1)===Or,n=t+1;for(;n<o;){var l=e.charCodeAt(n);if(l===uo){n++;break}if(l===ht)return null;l===$t&&n+1<o&&n++,n++}if(n>o||e.charCodeAt(n-1)!==uo)return null;let s=e.slice(t+1,n-1);if(s.length>999)return null;let u=Jd(s);if(!u||n>=o||e.charCodeAt(n)!==Ba)return null;n++;let i=!1;for(;n<o;){let R=e.charCodeAt(n);if(R===X||R===te)n++;else if(R===ge&&!i)i=!0,n++;else break}if(r){let R=e.indexOf(`\n`,n),B=R<0?o:R,H=e.slice(n,B).trim();return a[u]={target:H,title:void 0},R<0?o:R+1}var c;if(n<o&&e.charCodeAt(n)===ft){n++;for(var d=n;n<o&&e.charCodeAt(n)!==Ve&&e.charCodeAt(n)!==ge;)e.charCodeAt(n)===$t&&n+1<o&&n++,n++;if(n>=o||e.charCodeAt(n)!==Ve)return null;c=e.slice(d,n),n++;for(var f=e.indexOf(`\n`,n),p=f<0?o:f,g=n;g<p&&(e.charCodeAt(g)===X||e.charCodeAt(g)===te);)g++;if(g<p){if(g===n)return null;var v=e.charCodeAt(g);if(v!==Pl&&v!==Bl&&v!==so)return null}}else{for(var d=n,L=0;n<o;){var l=e.charCodeAt(n);if(l===so)L++;else if(l===Eo){if(L===0)break;L--}else{if(l===X||l===te||l===ge)break;l===$t&&n+1<o&&n++}n++}if(c=e.slice(d,n),!c)return null}for(;n<o&&(e.charCodeAt(n)===X||e.charCodeAt(n)===te);)n++;var m=e.indexOf(`\n`,n),h=m<0?o:m,x,C=!1,I=n,b=n;if(n===h&&n<o)for(b=n+1;b<o&&(e.charCodeAt(b)===X||e.charCodeAt(b)===te);)b++;if(b<o){var S=e.charCodeAt(b);if(S===Pl||S===Bl||S===so){for(var y=S===so?41:S,T=b+1,w=T;T<o;){var D=e.charCodeAt(T);if(D===y){for(var M=T+1;M<o&&(e.charCodeAt(M)===X||e.charCodeAt(M)===te);)M++;(M>=o||e.charCodeAt(M)===ge)&&(x=e.slice(w,T),C=!0,I=M<o?M+1:o);break}if(D===$t&&T+1<o){T+=2;continue}if(D===ge&&T+1<o&&e.charCodeAt(T+1)===ge)break;T++}if(!C&&b===n)return null}}if(C)return a[u]||(a[u]={target:Dn(lu(c)),title:x===void 0?x:Dn(lu(x))}),I;for(;n<h&&(e.charCodeAt(n)===X||e.charCodeAt(n)===te);)n++;return n<h?null:(a[u]||(a[u]={target:Dn(lu(c)),title:x}),m<0?o:m+1)}var Za=new Uint8Array(uB);for(Za[Mo]|=Vo,Za[Ve]|=Vo,Za[Fe]|=Vo|Tn,Za[On]|=Vo,Za[Ht]|=Vo|Tn,Za[Ot]|=Vo|Tn,Za[lt]|=Vo|Tn,Za[la]|=Vo|Tn,Za[ft]|=Vo|Tn,Za[ht]|=Tn,Za[Pa]|=Tn,Za[fa]|=Vo,Kd=He;Kd<=_e;Kd++)Za[Kd]|=Vo;var Kd;function DA(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===$t){t++;continue}if(e.charCodeAt(t)===ht||e.charCodeAt(t)===uo)return!0}return!1}function Jd(e){for(var t=e.length,a=!0,o=t>0,r=0;r<t;r++){var n=e.charCodeAt(r);if(n===X){if(a){o=!1;break}a=!0}else if(n<33||n>126||n>=Me&&n<=Oe){o=!1;break}else a=!1}if(o&&!a)return e;var l=e.replace(/\\s+/g," ").trim();return l.indexOf("ẞ")!==-1?l.replace(/\\u1E9E/g,"ss").toLowerCase():l.toLowerCase()}function cv(e){return e<up?Za[e]:e===W2?El:0}function lu(e){return e.indexOf("\\\\")===-1?e:e.replace(/\\\\([!"#$%&\'()*+,\\-./:;<=>?@[\\\\\\]^_`{|}~])/g,"$1")}var Qx=null,Jx=-1,$d=-1;function st(e,t){if(t>=Jx&&t<=$d&&e===Qx)return $d;var a=e.indexOf(`\n`,t),o=a<0?e.length:a;return Qx=e,Jx=t,$d=o,o}function Ke(e,t){let a=st(e,t);return a<e.length?a+1:a}function Zi(e,t,a){for(;t<a;){let o=e.charCodeAt(t);if(o!==X&&o!==te)break;t++}return t}function kA(e,t){let a=Ke(e,t);for(;a<e.length;){let o=st(e,a);if(Ha(e,a,o))return a;a=Ke(e,a)}return e.length}function Bn(e,t,a,o){let r=0;for(;t+r<a&&e.charCodeAt(t+r)===o;)r++;return r}var nt=0,ot=0;function Wt(e,t,a){for(nt=0,ot=0;t+ot<a;){let o=e.charCodeAt(t+ot);if(o===te)nt+=4-nt%4;else if(o===X)nt++;else break;ot++}}function Ha(e,t,a){return Zi(e,t,a)>=a}function zB(e,t){if(!e)return e;var a=t.v||(t.v=Object.create(null)),o=a[e];if(o===void 0)return a[e]=0,e;for(var r=o+1,n=`${e}-${r}`;a[n]!==void 0;)r++,n=`${e}-${r}`;return a[e]=r,a[n]=0,n}function FB(e,t,a,o){let r=st(e,t);if(Wt(e,t,r),nt>3)return null;let n=t+ot;if(e.charCodeAt(n)!==Mo)return null;let l=Bn(e,n,r,35);if(l<1||l>6||(n+=l,n<r&&e.charCodeAt(n)!==X&&e.charCodeAt(n)!==te))return null;n=Zi(e,n,r);for(var s=r;s>n&&e.charCodeAt(s-1)===X;)s--;for(var u=s;s>n&&e.charCodeAt(s-1)===Mo;)s--;if(s<u)if(s===n||e.charCodeAt(s-1)===X)for(;s>n&&e.charCodeAt(s-1)===X;)s--;else s=u;let i=e.slice(n,s),c=su(i,!1,a,o);return{node:{type:E.heading,level:l,children:c,id:""},end:Ke(e,r)}}function UB(e,t,a){var o=e.charCodeAt(t);if(o!==Do&&o!==Fe)return!1;for(var r=t;r<a&&e.charCodeAt(r)===o;)r++;for(;r<a&&(e.charCodeAt(r)===X||e.charCodeAt(r)===te);)r++;return r>=a}function kn(e,t){let a=st(e,t);if(Wt(e,t,a),nt>3)return null;let o=t+ot,r=e.charCodeAt(o);if(r!==Fe&&r!==Ht&&r!==Ot)return null;let n=0;for(;o<a;){let l=e.charCodeAt(o);if(l===r)n++;else if(l!==X&&l!==te)return null;o++}return n<3?null:{node:{type:E.breakThematic},end:Ke(e,a)}}var EA=0,MA=0,OA="";function qB(e,t,a){let o=st(e,t);if(Wt(e,t,o),nt>3)return null;let r=nt,n=ot,l=t+ot,s=e.charCodeAt(l);if(s!==lt&&s!==la)return null;let u=Bn(e,l,o,s);if(u<3)return null;l+=u;let i=Zi(e,l,o),c=o;if(s===lt){for(let H=i;H<o;H++)if(e.charCodeAt(H)===lt)return null}for(;c>i&&(e.charCodeAt(c-1)===X||e.charCodeAt(c-1)===te);)c--;let d=e.slice(i,c),f="",p="",g=d.indexOf(" ");g===-1?f=d:(f=d.slice(0,g),p=d.slice(g+1).trim()),f=lu(f);var v;if(p){wA.lastIndex=0;for(var L;(L=wA.exec(p))!=null;)v||(v={}),v[L[1]]=L[2]===void 0?L[3]:L[2]}let m=Ke(e,o),{length:h,length:x}=e;var C;s===EA&&u===MA?C=OA:(C=String.fromCharCode(s).repeat(u),EA=s,MA=u,OA=C);for(var I=m;I<e.length;){var b=e.indexOf(C,I);if(b===-1)break;for(var S=b,y=0;S>0&&y<4&&e.charCodeAt(S-1)===X;)S--,y++;if(y<=3&&(S===0||e.charCodeAt(S-1)===ge)){for(var T=b+u;T<e.length&&e.charCodeAt(T)===s;)T++;var w=st(e,T);if(Ha(e,T,w)){h=S,x=Ke(e,w);break}}I=b+1}var D;if(r===0)D=h>m&&e.charCodeAt(h-1)===ge?e.slice(m,h-1):e.slice(m,h);else{D="";for(var M=m;M<h;){var R=st(e,M);Wt(e,M,R);var B=Math.min(ot,r);D+=`${e.slice(M+B,R)}\n`,M=Ke(e,R)}D.length>0&&D.charCodeAt(D.length-1)===ge&&(D=D.slice(0,-1))}return{node:{type:E.codeBlock,lang:f||void 0,text:D,infoString:p||void 0,attrs:v},end:x}}function BA(e,t,a){for(var o=0,r=t;r<a&&o<4;)e.charCodeAt(r)===te?o+=4-o%4:o++,r++;if(o<4)return"";for(var n="",l=4;l<o;l++)n+=" ";return n+e.slice(r,a)}function HB(e,t){let a=st(e,t);if(Wt(e,t,a),nt<4)return null;let o="",r=t;for(;r<e.length;){let f=st(e,r);if(Wt(e,r,f),Ha(e,r,f)){for(var n=`${BA(e,r,f)}\n`,l=Ke(e,f);l<e.length;){var s=st(e,l);if(Ha(e,l,s)){n+=`${BA(e,l,s)}\n`,l=Ke(e,s);continue}Wt(e,l,s),nt>=4&&(o+=n,r=l);break}if(r!==l)break;continue}if(nt<4)break;let p=0,g=0;var u=0;for(let v=r;v<f&&g<4;v++){if(e.charCodeAt(v)===te){var i=4-g%4;g+i>4&&(u=g+i-4),g+=i}else g++;p++}var c="";if(u>0)for(var d=0;d<u;d++)c+=" ";c+=e.slice(r+p,f),o+=`${c}\n`,r=Ke(e,f)}for(;o.length>0&&o.charCodeAt(o.length-1)===ge;)o=o.slice(0,-1);return o?{node:{type:E.codeBlock,lang:void 0,text:o,infoString:void 0,attrs:void 0},end:r}:null}function _B(e,t,a,o){let r=st(e,t);if(Wt(e,t,r),nt>3)return null;let n=t+ot;if(e.charCodeAt(n)!==Ve)return null;let l="",s=t,u,i=!1,c=!1,d=!1;for(;s<e.length;){let k=st(e,s);Wt(e,s,k);let _=s+ot;if(e.charCodeAt(_)===Ve){let le=_+1;var f=nt+1,p=!1;if(le<k){var g=e.charCodeAt(le);g===X?(le++,f++,p=!0):g===te&&(p=!0)}for(var v="",L=!1,m=le;m<k;m++)if(e.charCodeAt(m)===te){L=!0;break}if(L){var h=f;if(p&&le<k&&e.charCodeAt(le)===te){for(var x=4-h%4,C=0;C<x-1;C++)v+=" ";h+=x,le++}for(var I=le;I<k;I++)if(e.charCodeAt(I)===te){for(var b=4-h%4,S=0;S<b;S++)v+=" ";h+=b}else v+=e[I],h++}else v=e.slice(le,k);if(!(l||u)){let V=v.match(/^\\[!([A-Za-z]+)\\]\\s*$/);if(V){u=V[1].toUpperCase(),s=Ke(e,k);continue}}l+=`${v}\n`;var y=v.trimStart();y.startsWith("```")||y.startsWith("~~~")?d=!d:(v.startsWith(" ")||v.startsWith("\\t"))&&(d=!0),c=y.length>0,s=Ke(e,k)}else if(l&&!Ha(e,s,k)&&c){if(nt<4){var T=s+ot,w=T<k?e.charCodeAt(T):0;if(w===Mo||w===Ve||w===lt||w===la||w===ft||(w===Fe||w===Ht||w===Ot)&&kn(e,s)||(w===Fe||w===Ht||w===On)&&T+1<k&&(e.charCodeAt(T+1)===X||e.charCodeAt(T+1)===te))break;if(w>=He&&w<=_e){for(var D=T;D<k&&e.charCodeAt(D)>=He&&e.charCodeAt(D)<=_e;)D++;if(D<k&&(e.charCodeAt(D)===ko||e.charCodeAt(D)===Eo))break}}if(d)break;l+=`${e.slice(s,k)}\n`,i=!0,s=Ke(e,k)}else break}if(!(l||u))return null;var{inBlockQuote:M,l:R}=a;a.inBlockQuote=!0,i&&(a.l=!0);var B=a.i;a.i=B||!Ha(e,s,e.length);let H=En(l||"",a,o);return a.i=B,a.inBlockQuote=M,a.l=R,{node:{type:E.blockQuote,children:H,alert:u||void 0},end:s}}function oT(e,t,a){for(var o=0,r=t;r<a;r++)e.charCodeAt(r)===te?o+=4-o%4:o++;return o}function wn(e,t,a){if(Wt(e,t,a),nt>3)return null;var o=t+ot;if(o>=a)return null;var r=e.charCodeAt(o),n=nt,l=o,s=o;if(r===Fe||r===Ht||r===On){if(l=o+1,l<a&&e.charCodeAt(l)!==X&&e.charCodeAt(l)!==te&&e.charCodeAt(l)!==ge)return null}else if(r>=He&&r<=_e){for(;s<a&&s-o<9;){var u=e.charCodeAt(s);if(u<He||u>_e)break;s++}if(s>o&&s<a){var i=e.charCodeAt(s);if(i===ko||i===Eo){if(l=s+1,l<a&&e.charCodeAt(l)!==X&&e.charCodeAt(l)!==te&&e.charCodeAt(l)!==ge)return null}else return null}else return null}else return null;var c=l,d=oT(e,t,l),f=0,p=c,g=d;if(c>=a)return{ordered:r>=He&&r<=_e,marker:r>=He&&r<=_e?e[s]:e[o],start:r>=He&&r<=_e?Number.parseInt(e.slice(o,s),10):void 0,contentStart:c,contentCol:d+1,markerCol:n,isEmpty:!0};for(;p<a&&(e.charCodeAt(p)===X||e.charCodeAt(p)===te);){if(e.charCodeAt(p)===te){var v=4-g%4;g+=v}else g++;p++,f++}var L=p>=a,m=g-d;return L||m>4?(g=d+1,p=c+1,f=1):f===0&&(g=d+1,p=c,f=1),{ordered:r>=He&&r<=_e,marker:r>=He&&r<=_e?e[s]:e[o],start:r>=He&&r<=_e?Number.parseInt(e.slice(o,s),10):void 0,contentStart:p,contentCol:g,markerCol:n,isEmpty:L}}var ru=0;function PA(e,t,a,o){var r=0,n=t;for(ru=0;n<a&&r<o;){var l=e.charCodeAt(n);if(l===te){var s=4-r%4;if(r+s>o){ru=r+s-o,n++,r=o;break}r+=s}else if(l===X)r++;else break;n++}return n}function NA(e,t,a,o){var r=st(e,t),n=wn(e,t,r);if(!n)return null;var l=[],s=t,u=n.contentCol,i="",c=n.isEmpty,d=!1,f=!1;if(!n.isEmpty){for(var p=!1,g=n.contentStart;g<r;g++)if(e.charCodeAt(g)===te){p=!0;break}if(p){var v="",L=oT(e,t,n.contentStart),m=L-n.contentCol;if(m>0)for(var h=0;h<m;h++)v+=" ";for(var x=n.contentStart;x<r;x++)if(e.charCodeAt(x)===te){for(var C=4-L%4,I=0;I<C;I++)v+=" ";L+=C}else v+=e[x],L++;i=`${v}\n`}else i=`${e.slice(n.contentStart,r)}\n`}for(s=Ke(e,r);s<e.length;){var b=st(e,s);Wt(e,s,b);var S=e.charCodeAt(s+ot);if(nt<u&&(S===Fe||S===Ht||S===Ot)&&nt<=3&&kn(e,s))break;var y=wn(e,s,b);if(y&&y.ordered===n.ordered&&y.marker===n.marker&&y.markerCol<u){l.push({contentCol:u,raw:i,hasBlankAfter:d,isEmpty:c}),d&&(f=!0),u=y.contentCol,c=y.isEmpty,d=!1,i=y.isEmpty?"":`${e.slice(y.contentStart,b)}\n`,s=Ke(e,b);continue}if(Ha(e,s,b)){var T=PA(e,s,b,u);if(ru>0||T<b){for(var w="",D=0;D<ru;D++)w+=" ";i+=`${w+e.slice(T,b)}\n`}else i+=`\n`;s=Ke(e,b);for(var M=!1,R=0;R<i.length;R++){var B=i.charCodeAt(R);if(B!==ge&&B!==Mn&&B!==X&&B!==te){M=!0;break}}if(c&&!M)if(s<e.length){var H=st(e,s),k=wn(e,s,H);if(!k||k.ordered!==n.ordered||k.marker!==n.marker)break;d=!0}else break;if(s<e.length){var _=st(e,s);Wt(e,s,_);var le=e.charCodeAt(s+ot);if((le===Fe||le===Ht||le===Ot)&&nt<=3&&kn(e,s))break;var V=wn(e,s,_);if(V&&V.ordered===n.ordered&&V.marker===n.marker&&V.markerCol<u){d=!0;continue}if(!Ha(e,s,_)&&nt<u)break}continue}if(nt>=u){var P=PA(e,s,b,u);if(ru>0){for(var fe="",Re=u,Te=0;Te<ru;Te++)fe+=" ",Re++;for(var U=P;U<b;U++)if(e.charCodeAt(U)===te){for(var Y=4-Re%4,K=0;K<Y;K++)fe+=" ";Re+=Y}else fe+=e[U],Re++;i+=`${fe}\n`}else i+=`${e.slice(P,b)}\n`;s=Ke(e,b);continue}for(var ae=!1,ue=0;ue<i.length;ue++){var ee=i.charCodeAt(ue);if(ee!==ge&&ee!==Mn&&ee!==X&&ee!==te){ae=!0;break}}if(!d&&ae&&!c){var re=s+ot,ve=e.charCodeAt(re),ie=ve===Mo||ve===Ve||ve===ft||ve===lt||ve===la||(ve===Fe||ve===Ht||ve===Ot||ve===On)&&(kn(e,s)!=null||wn(e,s,b)!=null)||ve>=He&&ve<=_e&&wn(e,s,b)!=null;if(!ie){i+=`\\x1E${e.slice(re,b)}\n`,s=Ke(e,b);continue}}break}if(l.push({contentCol:u,raw:i,hasBlankAfter:d,isEmpty:c}),l.length===0)return null;var Z=f;if(!Z)for(var xe=0;xe<l.length;xe++){if(l[xe].hasBlankAfter&&xe<l.length-1){Z=!0;break}if(!l[xe].isEmpty){for(var Ie=l[xe].raw,Ae=Ie.length,ne=0,ke=!1,oe=!1,Se=!1,Pe=!1,Xe=0,G=0,he=-1;ne<Ae;){var me=Ie.indexOf(`\n`,ne);if(me<0&&(me=Ae),Pe){Wt(Ie,ne,me);for(var q=Ie.slice(ne+ot,me),F=0;F<q.length&&q.charCodeAt(F)===Xe;)F++;F>=G&&q.slice(F).trim()===""&&(Pe=!1),ne=me<Ae?me+1:Ae;continue}if(Ha(Ie,ne,me)){he>=0?Se=!0:ke&&(oe=!0),ne=me<Ae?me+1:Ae;continue}if(Wt(Ie,ne,me),he>=0){if(nt>=he){ne=me<Ae?me+1:Ae;continue}var Q=wn(Ie,ne,me);if(Q&&Q.markerCol<he&&Q.contentCol<=he){ne=me<Ae?me+1:Ae;continue}if(Q){ne=me<Ae?me+1:Ae;continue}he=-1,Se&&(oe=!0,Se=!1)}var N=Ie.slice(ne+ot,me),Bt=N.charCodeAt(0);if((Bt===lt||Bt===la)&&nt<=3){for(var De=0;De<N.length&&N.charCodeAt(De)===Bt;)De++;if(De>=3){if(oe&&ke){Z=!0;break}Pe=!0,Xe=Bt,G=De,ke=!0,ne=me<Ae?me+1:Ae;continue}}var gt=nt<=3?wn(Ie,ne,me):null;if(gt&&ke){if(oe){Z=!0;break}he=gt.contentCol,Se=!1,ne=me<Ae?me+1:Ae,ke=!0;continue}if(oe){Z=!0;break}ke=!0,ne=me<Ae?me+1:Ae}if(Z)break}}for(var be=[],tt=0;tt<l.length;tt++){for(var At=l[tt],St=At.raw,Pt=St.length;Pt>0&&St.charCodeAt(Pt-1)===ge;)Pt--;var Tt=Pt<St.length?St.slice(0,Pt):St,za=null;if(Tt.length>=3&&Tt.charCodeAt(0)===ht){var va=Tt[1];(va===" "||va==="x"||va==="X")&&Tt.charCodeAt(2)===uo&&(za={type:E.gfmTask,completed:va==="x"||va==="X"},Tt=Tt.slice(3))}var xt;if(At.isEmpty&&Tt.trim()==="")xt=[];else if(Z){var vt=a.inList;a.inList=!0;var ea=a.i;a.i=ea||tt!==l.length-1,xt=En(Tt,a,o),a.i=ea,a.inList=vt}else{var qt=a.inList;a.inList=!0;var Ta=a.i;if(a.i=Ta||tt!==l.length-1,xt=En(Tt,a,o),a.i=Ta,a.inList=qt,xt.length===1&&xt[0].type===E.paragraph)xt=xt[0].children;else if(a.p){var Kt=[];a.p.push({src:xt,dest:Kt,unwrap:!0}),xt=Kt}else{for(var Nt=[],wt=0;wt<xt.length;wt++)if(xt[wt].type===E.paragraph)for(var Ca=xt[wt].children,zt=0;zt<Ca.length;zt++)Nt.push(Ca[zt]);else Nt.push(xt[wt]);xt=Nt}}if(za){var wa=[za,{type:E.text,text:" "}];if(a.p)a.p.push({src:xt,dest:wa,unwrap:!1});else for(var _t=0;_t<xt.length;_t++)wa.push(xt[_t]);be.push(wa)}else be.push(xt)}return{node:{type:n.ordered?E.orderedList:E.unorderedList,start:n.ordered?n.start:void 0,items:be},end:s}}var rp=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function rr(e,t,a){let o={};for(let[l,s]of Object.entries(e)){let u=l.toLowerCase();if(u==="style"&&typeof s=="string"){let i={},c=[],d=0,f=0;for(let g=0;g<s.length;g++){let v=s.charCodeAt(g);v===so?d++:v===Eo?d--:v===ap&&d===0&&(c.push(s.slice(f,g)),f=g+1)}f<s.length&&c.push(s.slice(f));let p=!1;c.forEach((g)=>{let v=g.indexOf(":");if(v===-1)return;let L=g.slice(0,v).trim(),m=g.slice(v+1).trim();if(L&&m){if(/url\\s*\\(\\s*(javascript|vbscript|data:(?!image\\/))/i.test(m)){p=!0;return}let h=L.indexOf("-")===-1?L:L.replace(/-([a-z])/g,(x,C)=>C.toUpperCase());i[h]=m}}),!p&&Object.keys(i).length>0&&(o[l]=i)}else if((u==="href"||u==="src")&&a?.sanitizer){let i=a.sanitizer(s,t,u);i!=null&&(o[l]=i)}else if(s==="")o[l]=!0;else if(s.length>=2&&s.charCodeAt(0)===Nl&&s.charCodeAt(s.length-1)===uv){var r=s.slice(1,-1);if(r.length>0){var n=r.charCodeAt(0);if(n===ht||n===Nl)try{o[l]=JSON.parse(r);continue}catch{}}if(r==="true"){o[l]=!0;continue}if(r==="false"){o[l]=!1;continue}if(a?.evalUnserializableExpressions)try{o[l]=(0,eval)(`(${r})`);continue}catch{}o[l]=r}else o[l]=s}return o}function Rn(e,t,a){let o=t.length;if(o===0)return a;var r=t.charCodeAt(0),n=r>=Me&&r<=Oe||r>=ct&&r<=bt;if(!n){for(var l=String.fromCharCode(r),s=e.length-o,u=a;u<=s;){var i=e.indexOf(l,u);if(i===-1||i>s)return-1;for(var c=!0,d=1;d<o;d++){var f=e.charCodeAt(i+d),p=t.charCodeAt(d);if(f>=Me&&f<=Oe&&(f+=Go),p>=Me&&p<=Oe&&(p+=Go),f!==p){c=!1;break}}if(c)return i;u=i+1}return-1}r>=Me&&r<=Oe&&(r+=Go);for(let v=a;v<=e.length-o;v++){var g=e.charCodeAt(v);if(g>=Me&&g<=Oe&&(g+=Go),g!==r)continue;let L=!0;for(let m=1;m<o;m++){let h=e.charCodeAt(v+m),x=t.charCodeAt(m);if(h>=Me&&h<=Oe&&(h+=Go),x>=Me&&x<=Oe&&(x+=Go),h!==x){L=!1;break}}if(L)return v}return-1}function VB(e,t,a){let o=t.length;var r=t.charCodeAt(0);r>=Me&&r<=Oe&&(r+=Go);for(let l=Math.min(a,e.length-o);l>=0;l--){var n=e.charCodeAt(l);if(n>=Me&&n<=Oe&&(n+=Go),n!==r)continue;let s=!0;for(let u=1;u<o;u++){let i=e.charCodeAt(l+u),c=t.charCodeAt(u);if(i>=Me&&i<=Oe&&(i+=Go),c>=Me&&c<=Oe&&(c+=Go),i!==c){s=!1;break}}if(s)return l}return-1}var np=-1;function $x(e,t,a){let o=a.toLowerCase(),r=`<${o}`,n=`</${o}`,l=1,s=t,u=e.length;for(np=-1;s<u&&l>0;){let d=Rn(e,r,s),f=Rn(e,n,s);if(f===-1)return-1;if(d!==-1&&d<f){let p=nr(e,d);p?(p.tag.toLowerCase()===o&&!p.f&&!p.n&&!Qi(p.tag)&&l++,s=p.end):s=d+1}else{var i=f+n.length,c=i<u?e.charCodeAt(i):62;if((c===Ve||c===X||c===te||c===ge)&&(l--,l===0)){np=f;let p=f+n.length;for(;p<u&&e.charCodeAt(p)!==Ve;)p++;return p+1}s=f+1}}return-1}function rT(e,t,a,o){if(o.ignoreHTMLBlocks||o.disableParsingRawHTML)return null;var r=st(e,t);if(Wt(e,t,r),nt>3&&!a.inHTML)return null;var n=t+ot;if(e.charCodeAt(n)!==ft)return null;var l=e.indexOf(">",n+1);if(l!==-1&&l<r){var s=e.slice(n+1,l);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\\s@]+@[^\\s@]+$/.test(s))return null}var u=GB(e,n);if(u>=1&&u<=5){var i=e.length;if(u===1){for(var c=e.length,d=0;d<Kx.length;d++){var f=Rn(e,`</${Kx[d]}>`,n);f>=0&&f<c&&(c=f)}if(c<e.length){var p=e.indexOf(">",c);i=p>=0?Ke(e,p+1):e.length}}else{var g=u===2?"-->":u===3?"?>":u===4?">":"]]>",v=e.indexOf(g,n);v>=0&&(i=Ke(e,v+g.length))}var L=e.slice(n,i);if(u>=2)return{node:{type:E.htmlComment,text:L,s:!1,raw:!0},end:i};var m="div",h=L.match(/^<\\/?([a-zA-Z][a-zA-Z0-9-]*)/);h&&(m=h[1]);var x=nr(e,n),C={},I;x&&!x.f&&(C=rr(x.attrs,m,o),I=x.g+x.b);var b=[],S=m.toLowerCase(),y=`</${S}`,T=Rn(L,y,0),w="",D,M,R;if(x?.f){R=L.slice(0,x.end-n);for(var B=L.slice(x.end-n);B.length>0&&B.charCodeAt(B.length-1)===ge;)B=B.slice(0,-1);B&&(M=lo(B))}else if(x&&!x.f){var H=x.end-n;if(T===-1){for(var k=L;k.length>0&&k.charCodeAt(k.length-1)===ge;)k=k.slice(0,-1);D=lo(k)}else{var _=H;L.charCodeAt(_)===ge&&_++;for(var le=T;le>_;){var V=L.charCodeAt(le-1);if(V!==X&&V!==te&&V!==ge&&V!==Mn)break;le--}var P=L.slice(_,le);P&&(M=lo(P));for(var fe=L.slice(T);fe.length>0&&fe.charCodeAt(fe.length-1)===ge;)fe=fe.slice(0,-1);R=lo(fe),w=L.slice(H,T).trim()}}var Re=x?x.f:!1;return{node:{type:E.htmlBlock,tag:m,attrs:C,b:I,children:b,e:M,h:R,j:D,text:w,c:!0,a:Re},end:i}}if(u===6||u===7){var Te=kA(e,t),U=Te<e.length?Te:e.length,Y=e.slice(n,U),K=Te<e.length?Ke(e,Te):e.length,ae=nr(e,n);if(ae){var ue=ae.tag,ee=ue.toLowerCase(),re=ae.f;if(re){var ve=e.slice(ae.end,U);return{node:{type:E.htmlBlock,tag:ue,attrs:{},children:[],h:e.slice(n,ae.end),e:ve?lo(ve):void 0,text:ve,c:!0,a:!0},end:K}}if(ae.n||Qi(ue))return{node:{type:E.htmlBlock,tag:ue,attrs:rr(ae.attrs,ue,o),b:ae.g+ae.b,children:[],text:"",c:!1,a:!1},end:ae.end<e.length&&e.charCodeAt(ae.end)===ge?ae.end+1:ae.end};var ie=a.d||0,Z=e.slice(n,U),xe=-1,Ie=-1,Ae=!1;if(ie<10){for(var ne=`</${ee}`,ke=ae.end-n,oe=1,Se=ke;Se<Z.length&&oe>0;){var Pe=Rn(Z,`<${ee}`,Se),Xe=Rn(Z,ne,Se);if(Xe===-1)break;if(Pe!==-1&&Pe<Xe){var G=Pe+ee.length+1;if(G<Z.length){var he=Z.charCodeAt(G);(he===X||he===te||he===ge||he===Ve||he===Ut)&&oe++}Se=Pe+1}else{var me=Xe+ne.length;if(me<Z.length){var q=Z.charCodeAt(me);if((q===Ve||q===X||q===te||q===ge)&&(oe--,oe===0)){xe=Xe;for(var F=me;F<Z.length&&Z.charCodeAt(F)!==Ve;)F++;Ie=F+1;break}}else if(oe--,oe===0){xe=Xe,Ie=Z.length;break}Se=Xe+1}}if(xe===-1&&!ae.f&&(u===6||ae.u)){var Q=$x(e,ae.end,ee);if(Q!==-1){for(var N=np,Bt=ae.end,De=!1,gt=!1,be=!1,tt=0,At=!1,St=!1,Pt=Bt;Pt<N;){var Tt=e.charCodeAt(Pt);if(Tt===ge)St&&(De=!0),At||tt++,St=!0,Pt++;else if(Tt===X||Tt===te)Pt++;else{if(!At&&(At=!0,tt>=2&&Tt===ft)){be=!0;break}if(St=!1,Tt===ft){var za=e.charCodeAt(Pt+1)|32;if((za===jx||za===WA||za===nu)&&(AA.lastIndex=Pt,AA.test(e))){gt=!0;break}}Pt++}}if(De&&!be&&!gt){var va=st(e,Q);U=va,K=Ke(e,va),Z=e.slice(n,U),Y=e.slice(n,U),xe=N-n,Ie=Q-n,Ae=!0}}}}var xt=ae.b.indexOf(`\n`)!==-1||ae.g.indexOf(`\n`)!==-1,vt=!1;if(xe!==-1){var ea=Z.slice(Ie).trim();vt=ea.length===0}var qt=!1,Ta=U,Kt=K;if(xe!==-1){var Nt=n+Ie,wt=st(e,Nt-1);if(Nt<wt){for(var Ca=Nt;Ca<wt&&(e.charCodeAt(Ca)===X||e.charCodeAt(Ca)===te);)Ca++;if(Ca<wt&&e.charCodeAt(Ca)===ft){var zt=nr(e,Ca);zt&&!zt.f&&(qt=!0,Ta=Nt,Kt=Nt,vt=!0)}}if(!qt){var wa=Ke(e,wt);if(wa<U){for(var _t=wa;_t<U&&(e.charCodeAt(_t)===X||e.charCodeAt(_t)===te);)_t++;if(_t<U&&e.charCodeAt(_t)===ft){var Bo=nr(e,_t);Bo&&(qt=!0,Ta=wt,Kt=wa,vt=!0)}}}if(!qt&&a.inHTML){qt=!0,Ta=wt,Kt=Ke(e,wt);var Nn=e.slice(Nt,wt).trim();vt=Nn.length===0}}var co=[],Vt="";if(xe!==-1){Vt=Z.slice(ae.end-n,xe);var fo=Vt.trim();if(fo){var{inline:vu,inHTML:Qw,d:Jw}=a;a.inHTML=!0,a.d=ie+1;var $w=ee==="p";if($w)a.inline=!0,co=su(fo,!1,a,o);else{var Pv=Vt.indexOf(`\n\n`)!==-1,Nv=qx.test(fo),Ep=TA.test(fo),eR=Pv||Nv||a.inHTML&&Ep,tR=Vt.length>=2&&Vt.charCodeAt(0)===ge&&Vt.charCodeAt(Vt.length-1)===ge&&!Pv;tR&&!Nv&&!Ep?co=[{type:E.text,text:fo}]:eR||Ep?(a.inline=!1,co=En(Vt,a,o)):(a.inline=!0,co=su(fo,!1,a,o))}a.inline=vu,a.inHTML=Qw,a.d=Jw}}var zv=!1;if(u===6&&xe!==-1&&!a.inHTML&&!xt){var aR=/<[a-zA-Z][^>]*>/.test(Vt),oR=Vt.indexOf(`\n\n`)!==-1||qx.test(Vt);aR&&!oR&&(zv=!0)}var rR=!Ae&&(a.inHTML||u===7||xt||!vt||zv);if(rR){var Cu,Yo,Fv=!1;if(xe!==-1&&qt){var Uv=!1;if(a.inHTML&&Ie<Z.length){for(var fc=Ie;fc<Z.length&&Z.charCodeAt(fc)!==ge;)fc++;var Mp=Z.slice(Ie,fc).trim();Uv=Mp.length>1&&Mp.charCodeAt(0)===ft&&Mp.charCodeAt(1)!==Ut}Yo=Uv?Z.slice(ae.end-n):Vt,Fv=!0}else(u===7||a.inHTML)&&xe!==-1?(Yo=Z.slice(ae.end-n),Yo.charCodeAt(0)===ge&&(Yo=Yo.slice(1))):qt?Cu=e.slice(n,Ta):xt?Cu=Y:(Yo=Z.slice(ae.end-n),Yo.charCodeAt(0)===ge&&(Yo=Yo.slice(1)));var qv=Cu!==void 0,Op=lo(Cu===void 0?Yo||"":Cu),Hv={type:E.htmlBlock,tag:ue,attrs:rr(ae.attrs,ue,o),b:ae.g+ae.b,children:co,e:qv?void 0:Op,j:qv?Op:void 0,text:Op,c:!0,a:!1};return Fv&&(Hv.x=!0),{node:Hv,end:Kt}}var _v=lo(Vt);return{node:{type:E.htmlBlock,tag:ue,attrs:rr(ae.attrs,ue,o),b:ae.g+ae.b,children:co,e:Ae?void 0:_v,text:_v,c:!1,a:!1},end:Kt}}var dc=Y.match(/^<(\\/?)([a-zA-Z][a-zA-Z0-9-]*)/),nR=dc?dc[2]:"div",Bp=dc?dc[1]==="/":!1,Pp,Vv,Gv,pc="";if(Bp){var Np=Y.indexOf(">");Np===-1?Pp=Y:(Pp=Y.slice(0,Np+1),pc=Y.slice(Np+1),pc&&(Vv=lo(pc)))}else Gv=lo(Y);return{node:{type:E.htmlBlock,tag:nR,attrs:{},children:[],e:Vv,h:Pp,j:Gv,text:Bp?pc:Y,c:!0,a:Bp},end:K}}var Ra=nr(e,n);if(!Ra)return null;var Br=Ra.tag,zp=Br.toLowerCase(),Xv=Br.charCodeAt(0),mc=Xv>=Me&&Xv<=Oe;if(!(mc||rp.has(zp)||Ji.has(zp)||zp.includes("-")))return null;if(Ra.f)return{node:{type:E.htmlSelfClosing,tag:Br,attrs:{},h:e.slice(n,Ra.end),a:!0},end:Ra.end};var zn=$x(e,Ra.end,Br),yu=[];if(zn!==-1){var lR=np,hc=e.slice(Ra.end,lR),gc=hc.trim();if(gc){var sR=hc.indexOf(`\n\n`)!==-1,uR=qx.test(gc),iR=TA.test(gc),{inline:cR,inHTML:fR,d:dR}=a;a.inHTML=!0,a.d=(a.d||0)+1,sR||uR||iR?(a.inline=!1,yu=En(hc,a,o)):(a.inline=!0,yu=su(gc,!1,a,o)),a.inline=cR,a.inHTML=fR,a.d=dR}var pR=st(e,zn),mR=e.slice(zn,pR).trim(),Fp=mR?zn:Ke(e,zn),jv=mc?e.slice(n,zn):e.slice(n,Fp),Sz=mc?zn:Fp;return{node:{type:E.htmlBlock,tag:Br,attrs:rr(Ra.attrs,Br,o),b:Ra.g+Ra.b,children:yu,j:lo(jv),text:mc?hc:jv,c:!0,a:!1},end:Fp}}var bu=kA(e,Ra.end),hR=bu<e.length?Ke(e,bu):bu,Up=e.slice(Ra.end,bu);if(Up.trim()){var{inline:gR,inHTML:xR,d:vR}=a;a.inline=!1,a.inHTML=!0,a.d=(a.d||0)+1,yu=En(Up,a,o),a.inline=gR,a.inHTML=xR,a.d=vR}var CR=e.slice(Ra.end,bu);return{node:{type:E.htmlBlock,tag:Br,attrs:rr(Ra.attrs,Br,o),b:Ra.g+Ra.b,children:yu,e:lo(CR),text:Up,c:!0,a:!1},end:hR}}function GB(e,t){if(e.charCodeAt(t)!==ft)return 0;var a=t+1,o=e.length;if(e.charCodeAt(a)===Pa&&e.charCodeAt(a+1)===Fe&&e.charCodeAt(a+2)===Fe)return 2;if(e.charCodeAt(a)===uu)return 3;if(e.charCodeAt(a)===Pa){var r=e.charCodeAt(a+1);if(r>=Me&&r<=Oe)return 4;if(e.slice(a+1,a+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(a)===Ut,l=n?a+1:a,s=l;s<o;){var u=e.charCodeAt(s);if(u>=Me&&u<=Oe||u>=ct&&u<=bt||u>=He&&u<=_e||u===Fe)s++;else break}if(s===l)return 0;var i=e.slice(l,s);if(Ji.has(i.toLowerCase())){if(n)return 0;var c=e.charCodeAt(s);return c===X||c===te||c===Ve||c===ge||s>=o?1:0}if(rp.has(i.toLowerCase())){if(n){for(var d=s;d<o&&(e.charCodeAt(d)===X||e.charCodeAt(d)===te);)d++;return d<o&&e.charCodeAt(d)===Ve?6:0}var f=s<o?e.charCodeAt(s):-1;return f===X||f===te||f===Ve||f===ge||f===Ut||f===-1?6:0}if(n){for(var p=s;p<o&&(e.charCodeAt(p)===X||e.charCodeAt(p)===te);)p++;if(p<o&&e.charCodeAt(p)===Ve){var g=st(e,t),v=e.slice(p+1,g).trim();if(v==="")return 7}}else{var L=st(e,t),m=nr(e,t);if(m&&m.end<=L){var h=e.slice(m.end,L).trim();if(h==="")return 7}}return 0}function zA(e,t,a){for(var o=0,r=e.length;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;for(;r>o&&(e.charCodeAt(r-1)===X||e.charCodeAt(r-1)===te);)r--;o<r&&e.charCodeAt(o)===fa&&o++,r>o&&e.charCodeAt(r-1)===fa&&(r-2<o||e.charCodeAt(r-2)!==$t)&&r--;for(var n=[],l=o,s=!1,u=[],i=o;i<r;){var c=e.charCodeAt(i);if(c===$t&&i+1<r){e.charCodeAt(i+1)===fa?(s||(s=!0,u=[]),u.push(e.slice(l,i)),u.push("|"),i+=2,l=i):i+=2;continue}if(c===lt){for(var d=0;i<r&&e.charCodeAt(i)===lt;)d++,i++;for(var f=!1;i<r&&!f;){for(var p=0;i<r&&e.charCodeAt(i)===lt;)p++,i++;p===d?f=!0:p===0&&i++}continue}if(c===fa){var g=s?(u.push(e.slice(l,i)),u.join("")):e.slice(l,i);n.push(g.trim()),i++,l=i,s=!1,u=[];continue}i++}var v=s?(u.push(e.slice(l,r)),u.join("")):e.slice(l,r);return n.push(v.trim()),n.map((L)=>{var m=L.indexOf("\\\\|")===-1?L:L.replace(/\\\\\\|/g,"|");return m?su(m,!1,t,a):[]})}function FA(e,t,a,o){let r=st(e,t);var n=e.indexOf("|",t);if(n<0||n>=r)return null;let l=Ke(e,r);if(l>=e.length)return null;let s=st(e,l);if(!tT(e,l,s))return null;let u=e.slice(t,r),i=e.slice(l,s);for(var c=[],d=0,f=i.length;d<f&&(i.charCodeAt(d)===X||i.charCodeAt(d)===te);)d++;for(d<f&&i.charCodeAt(d)===fa&&d++;d<f;){for(;d<f&&(i.charCodeAt(d)===X||i.charCodeAt(d)===te);)d++;if(d>=f||i.charCodeAt(d)===fa)break;var p=i.charCodeAt(d)===Ba;for(p&&d++;d<f&&i.charCodeAt(d)===Fe;)d++;var g=d<f&&i.charCodeAt(d)===Ba;for(g&&d++,c.push(p&&g?"center":g?"right":p?"left":null);d<f&&(i.charCodeAt(d)===X||i.charCodeAt(d)===te);)d++;d<f&&i.charCodeAt(d)===fa&&d++}let v=zA(u,a,o);if(c.length!==v.length)return null;let L=[],m=Ke(e,s);for(;m<e.length;){let S=st(e,m),y=e.slice(m,S);if(Ha(e,m,S))break;if(Wt(e,m,S),nt<4){var h=e.charCodeAt(m+ot);if(h===Ve||h===Mo||(h===Fe||h===Ht||h===Ot)&&kn(e,m))break;if(h===lt||h===la){for(var x=m+ot,C=0;x<S&&e.charCodeAt(x)===h;)C++,x++;if(C>=3)break}}L.push(zA(y,a,o)),m=Ke(e,S)}if(o.optimizeForStreaming&&L.length===0)return null;for(var I=v.length,b=0;b<L.length;b++)if(L[b].length<I)for(;L[b].length<I;)L[b].push([]);else L[b].length>I&&(L[b].length=I);return{node:{type:E.table,header:v,cells:L,align:c},end:m}}function XB(e,t,a){var o=st(e,t);if(Wt(e,t,o),nt>3)return null;var r=t+ot;if(e.charCodeAt(r)!==ht)return null;if(r+1<e.length&&e.charCodeAt(r+1)===Or){var n=jB(e,r,a);return n||null}a.refs||(a.refs=Object.create(null));var l=aT(e,r,a.refs);return l===null?null:{node:{type:E.refCollection},end:l}}function jB(e,t,a){var o=e.length;if(e.charCodeAt(t)!==ht||t+1>=o||e.charCodeAt(t+1)!==Or)return null;for(var r=t+2,n=r;r<o&&e.charCodeAt(r)!==uo;){if(e.charCodeAt(r)===ge)return null;r++}if(r>=o)return null;var l=`^${e.slice(n,r)}`.toLowerCase();if(r++,r>=o||e.charCodeAt(r)!==Ba)return null;for(r++;r<o&&(e.charCodeAt(r)===X||e.charCodeAt(r)===te);)r++;if(r<o&&e.charCodeAt(r)===ge)for(r++;r<o&&(e.charCodeAt(r)===X||e.charCodeAt(r)===te);)r++;var s=e.indexOf(`\n`,r);s<0&&(s=o);for(var u=e.slice(r,s).trim(),i=s<o?s+1:o;i<o;){var c=st(e,i);if(Wt(e,i,c),nt>=2&&!Ha(e,i,c))u+=`\n${e.slice(i,c)}`,i=Ke(e,c);else if(Ha(e,i,c)){var d=Ke(e,c);if(d<o){var f=st(e,d);if(Wt(e,d,f),nt>=2){u+=`\n`,i=Ke(e,c);continue}}break}else break}var p=a.refs;return p&&!p[l]&&(p[l]={target:u,title:void 0}),{node:{type:E.footnote},end:i}}function YB(e,t,a,o){let r=t,n=0,l=0,s=-1;for(;r<e.length;){let R=s>=0?s:st(e,r);if(s=-1,Ha(e,r,R))break;if(Wt(e,r,R),nt<4&&l>0&&!a.l){let H=e.charCodeAt(r+ot);if(H===Do||H===Fe){let k=r+ot;for(;k<R&&e.charCodeAt(k)===H;)k++;for(;k<R&&(e.charCodeAt(k)===X||e.charCodeAt(k)===te);)k++;if(k>=R){n=H===Do?1:2,r=Ke(e,R);break}}}l=R;let B=Ke(e,R);if(B<e.length){if(e.charCodeAt(B)===Yx){var u=st(e,B);r=Ke(e,u),l=u;continue}let H=st(e,B);if(s=H,Wt(e,B,H),nt<4){let k=e.charCodeAt(B+ot);if(k===Ve){r=B;break}if(k===Mo){for(var i=B+ot,c=0;i<H&&e.charCodeAt(i)===Mo&&c<=6;)c++,i++;if(c>=1&&c<=6&&(i>=H||e.charCodeAt(i)===X||e.charCodeAt(i)===te)){r=B;break}}if(k===lt||k===la){for(var d=B+ot,f=0;d<H&&e.charCodeAt(d)===k;)f++,d++;if(f>=3){r=B;break}}if(k===ft){var p=B+ot+1,g=p<H?e.charCodeAt(p):0,v=g===Pa||g===uu;if(!v&&g===Ut){for(var L=p+1,m=L;m<H&&(e.charCodeAt(m)>=Me&&e.charCodeAt(m)<=Oe||e.charCodeAt(m)>=ct&&e.charCodeAt(m)<=bt||e.charCodeAt(m)>=He&&e.charCodeAt(m)<=_e||e.charCodeAt(m)===Fe);)m++;m>L&&(v=rp.has(e.slice(L,m).toLowerCase()))}else if(!v){for(var h=p;h<H&&(e.charCodeAt(h)>=Me&&e.charCodeAt(h)<=Oe||e.charCodeAt(h)>=ct&&e.charCodeAt(h)<=bt||e.charCodeAt(h)>=He&&e.charCodeAt(h)<=_e||e.charCodeAt(h)===Fe);)h++;if(h>p){var x=e.slice(p,h).toLowerCase();v=rp.has(x)||Ji.has(x)}}if(v&&rT(e,B,a,o)){r=B;break}}if(k===Fe||k===Ht||k===On){let _=B+ot+1;if(_<H&&(e.charCodeAt(_)===X||e.charCodeAt(_)===te)){var C=Zi(e,_,H);if(C<H&&!kn(e,B)){r=B;break}}}if(k>=He&&k<=_e){let _=B+ot;for(;_<H&&e.charCodeAt(_)>=He&&e.charCodeAt(_)<=_e;)_++;if(_<H&&(e.charCodeAt(_)===ko||e.charCodeAt(_)===Eo)&&_-(B+ot)===1&&e.charCodeAt(B+ot)===49){var I=_+1;if(I<H&&(e.charCodeAt(I)===X||e.charCodeAt(I)===te)){var b=Zi(e,I,H);if(b<H){r=B;break}}}}if(k===fa){let _=Ke(e,H);if(_<e.length){let le=st(e,_);if(tT(e,_,le)){r=B;break}}}if((k===Fe||k===Ht||k===Ot)&&kn(e,B)){if(k!==Fe){r=B;break}let _=0,le=B+ot;for(;le<H&&e.charCodeAt(le)===Fe;)_++,le++;for(;le<H&&(e.charCodeAt(le)===X||e.charCodeAt(le)===te);)le++;if(le<H){r=B;break}}}}r=Ke(e,R)}for(var S=n?l:r;S>t&&(e.charCodeAt(S-1)===ge||e.charCodeAt(S-1)===Mn||e.charCodeAt(S-1)===X||e.charCodeAt(S-1)===te);)S--;for(var y=t;y<S&&(e.charCodeAt(y)===X||e.charCodeAt(y)===te);)y++;if(y>=S)return null;for(var T=!1,w=y;w<S;w++)if(e.charCodeAt(w)===Yx){T=!0;break}var D=T?e.slice(y,S).replace(/\\u001E/g,""):e.slice(y,S);if(!D)return null;let M=su(D,!0,a,o);return n?{node:{type:E.heading,level:n,children:M,id:""},end:r}:{node:{type:E.paragraph,children:M},end:r}}function su(e,t,a,o){var r=a.t;if(!r){var n=a.k;a.k=t;var l=lr(e,0,e.length,a,o);return a.k=n,l}var s=[];return r.push({dest:s,text:e,breaks:t,inline:a.inline,inAnchor:a.inAnchor,inHTML:a.inHTML,htmlDepth:a.d,inList:a.inList,inBlockQuote:a.inBlockQuote,noSetext:a.l,depth:a.o}),s}function WB(e,t,a){if(e.charCodeAt(t)!==lt)return null;let o=Bn(e,t,a,96),r=t+o;for(;r<a;){let n=e.indexOf("`",r);if(n<0||n>=a)return null;let l=Bn(e,n,a,96);if(l===o){let s=e.slice(t+o,n);return s.indexOf(`\n`)!==-1&&(s=s.replace(/\\n/g," ")),s.length>0&&s[0]===" "&&s.at(-1)===" "&&s.trim().length>0&&(s=s.slice(1,-1)),{node:{type:E.codeInline,text:s},end:n+l}}r=n+l}return null}function fv(e,t,a){if(e.charCodeAt(t)!==lt)return t;let o=Bn(e,t,a,96),r=t+o;for(;r<a;){let n=e.indexOf("`",r);if(n<0||n>=a)return t;let l=Bn(e,n,a,96);if(l===o)return n+l;r=n+l}return t}function KB(e,t,a){if(e.charCodeAt(t)!==ft)return t;if(t+1<a&&e.charCodeAt(t+1)===Ut){let i=t+2;for(;i<a&&e.charCodeAt(i)!==Ve;)i++;return i<a?i+1:t}if(t+3<a&&e.charCodeAt(t+1)===Pa&&e.charCodeAt(t+2)===Fe&&e.charCodeAt(t+3)===Fe){let i=e.indexOf("-->",t+4);return i>=0?i+3:t}let o=t+1,r=o;for(;o<a;){let i=e.charCodeAt(o);if(i>=Me&&i<=Oe||i>=ct&&i<=bt||i>=He&&i<=_e||i===Fe)o++;else break}if(o===r)return t;let n=e.slice(r,o).toLowerCase(),l=!1;for(;o<a;){let i=e.charCodeAt(o);if(i===Ve){o++;break}if(i===Ut&&o+1<a&&e.charCodeAt(o+1)===Ve){o+=2,l=!0;break}if(i===Pl||i===Bl){var s=i;for(o++;o<a&&e.charCodeAt(o)!==s;)o++;o<a&&o++;continue}if(i===ge)return t;o++}if(l||Qi(n))return o;let u=1;for(;o<a&&u>0;)if(e.charCodeAt(o)===ft)if(o+1<a&&e.charCodeAt(o+1)===Ut){let i=o+2,c=i;for(;c<a&&(e.charCodeAt(c)>=Me&&e.charCodeAt(c)<=Oe||e.charCodeAt(c)>=ct&&e.charCodeAt(c)<=bt);)c++;if(e.slice(i,c).toLowerCase()===n){for(;c<a&&e.charCodeAt(c)!==Ve;)c++;if(c<a&&c++,u--,u===0)return c}o=c}else{let i=o+1,c=i;for(;c<a&&(e.charCodeAt(c)>=Me&&e.charCodeAt(c)<=Oe||e.charCodeAt(c)>=ct&&e.charCodeAt(c)<=bt);)c++;e.slice(i,c).toLowerCase()===n&&u++,o++}else o++;return o}function ZB(e,t,a){let o=e.charCodeAt(t)===Pa?t+1:t;if(e.charCodeAt(o)!==ht)return t;let r=1,n=o+1;for(;n<a&&r>0;){let s=e.charCodeAt(n);if(s===$t&&n+1<a){n+=2;continue}s===ht?r++:s===uo&&r--,n++}if(r!==0||n>=a)return t;let l=e.charCodeAt(n);if(l===so){let s=1;for(n++;n<a&&s>0;){let u=e.charCodeAt(n);if(u===$t&&n+1<a){n+=2;continue}u===so?s++:u===Eo&&s--,n++}return s===0?n:t}if(l===ht){let s=1;for(n++;n<a&&s>0;){let u=e.charCodeAt(n);u===ht?s++:u===uo&&s--,n++}return s===0?n:t}return t}function QB(e,t,a,o,r){if(e.charCodeAt(t)!==la||t+1>=a||e.charCodeAt(t+1)!==la)return null;let n=t+2;for(;n+1<a;){let l=e.charCodeAt(n);if(l===lt){let s=fv(e,n,a);if(s>n){n=s;continue}}if(l===la&&e.charCodeAt(n+1)===la){let s=e.slice(t+2,n),u=lr(s,0,s.length,o,r);return{node:{type:E.textFormatted,tag:"del",children:u},end:n+2}}l===$t&&n+1<a&&n++,n++}return null}function JB(e,t,a,o,r){if(e.charCodeAt(t)!==Do||t+1>=a||e.charCodeAt(t+1)!==Do)return null;let n=t+2;for(;n+1<a;){let l=e.charCodeAt(n);if(l===lt){let s=fv(e,n,a);if(s>n){n=s;continue}}if(l===Do&&e.charCodeAt(n+1)===Do&&n>t+2){let s=e.slice(t+2,n),u=lr(s,0,s.length,o,r);return{node:{type:E.textFormatted,tag:"mark",children:u},end:n+2}}l===$t&&n+1<a&&n++,n++}return null}function UA(e,t,a){return e<up?!!(cv(e)&au):iB.test(t[a])}function qA(e,t,a){return e<up?!!(cv(e)&El):cB.test(t[a])}function $B(e,t,a){var o=e.charCodeAt(t);if(o!==Ht&&o!==Ot)return null;var r=Bn(e,t,a,o);if(r===0)return null;var n=t>0?e.charCodeAt(t-1):32,l=t+r<a?e.charCodeAt(t+r):32,s=qA(n,e,t-1),u=qA(l,e,t+r),i=t>0?UA(n,e,t-1):!1,c=t+r<a?UA(l,e,t+r):!1,d=!u&&(!c||s||i),f=!s&&(!i||u||c),p,g;return o===Ht?(p=d,g=f):(p=d&&(!f||i),g=f&&(!d||c)),{len:r,canOpen:p,canClose:g}}function eP(e,t,a,o){if(t.length!==0){for(var r=e.length,n=Array(r),l=null,s=null,u=0;u<r;u++){var i={node:e[u],prev:s,next:null};s?s.next=i:l=i,n[u]=i,s=i}for(var c=Array(t.length),d=0;d<t.length;d++)c[d]=n[t[d].idx];for(var f=[],p=0;p<12;p++)f[p]=-1;for(var g=0;g<t.length;){var v=t[g];if(!(v.active&&v.canClose)){g++;continue}for(var L=v.ch===Ht?0:1,m=L*6+v.len%3*2+(v.canOpen?1:0),h=f[m]===void 0?-1:f[m],x=-1,C=g-1;C>h;C--){var I=t[C];if(!(!I.active||I.ch!==v.ch||!I.canOpen)&&!((v.canOpen||I.canClose)&&(I.len+v.len)%3===0&&I.len%3!==0)){x=C;break}}if(x<0){f[m]=g-1,!v.canOpen&&(v.active=!1),g++;continue}var b=t[x],S=b.len>=2&&v.len>=2,y=S?2:1;b.len-=y,v.len-=y;var T=c[x],w=c[g],D=T.node,M=w.node;D.text=D.text.slice(0,D.text.length-y),M.text=M.text.slice(y);for(var R=[],B=T.next;B&&B!==w;)R.push(B.node),B=B.next;var H={type:E.textFormatted,tag:S?"strong":"em",children:R},k={node:H,prev:T,next:w};T.next=k,w.prev=k;for(var _=x+1;_<g;_++)t[_].active=!1;if(b.len===0&&(b.active=!1,D.text==="")){var le=T.prev;k.prev=le,le?le.next=k:l=k}if(v.len===0){if(v.active=!1,M.text===""){var V=w.next;k.next=V,V&&(V.prev=k)}}else continue;g++}for(var P=0,fe=l;fe;){var Re=fe.node;if(Re.type===E.text){var Te=Re;if(Te.text===""){fe=fe.next;continue}if(P>0&&e[P-1].type===E.text){e[P-1].text+=Te.text,fe=fe.next;continue}}e[P++]=Re,fe=fe.next}e.length=P}}function Zd(e,t,a,o){return t(e,a,o)===null?null:e}var HA=0,ev=0,_A=0,tv=0,VA=0,av=0,Hx=0,Ro=0;function tP(){return Hx===2147483647&&(ev=0,tv=0,av=0,ep=0,Hx=0),++Hx}var _x=null,ep=0,Qd=[],Vx=256;function GA(e,t,a,o,r){let n=e.charCodeAt(t)===Pa,l=n?t+1:t;if(e.charCodeAt(l)!==ht||tv===Ro&&l>=_A)return null;var s=ep===Ro?_x:null,u=s===null?0:s[l];if(u<0)return null;var i=u;if(u===0){var c=e.indexOf("]",l+1);if(c<0||c>=a)return _A=l,tv=Ro,null;i=l+1;var d=0;Qd[d++]=l;for(var f=a-l>=Vx;i<a&&d>0;){var p=e.charCodeAt(i);if(p===$t&&i+1<a){i+=2;continue}if(p===lt){var g=fv(e,i,a);if(g>i){i=g;continue}}if(p===ft){var v=nT(e,i,a);if(v){i=v.end;continue}var L=KB(e,i,a);if(L>i){i=L;continue}}if(p===ht)Qd[d++]=i;else if(p===uo){var m=Qd[--d];s===null&&f&&i-l>=Vx&&(s=_x=new Int32Array(a),ep=Ro),s!==null&&(s[m]=i+1)}i++}if(d>0){if(s===null&&f&&i-l>=Vx&&(s=_x=new Int32Array(a),ep=Ro),s!==null)for(;d>0;)s[Qd[--d]]=-1;return null}}var h=i-1,x=e.slice(l+1,h),C=i<a?e.charCodeAt(i):0,I=!1;if(C===so){var b=!0;for(i++;i<a&&(e.charCodeAt(i)===X||e.charCodeAt(i)===ge);)i++;var S="",y=i;if(i<a&&e.charCodeAt(i)===ft){for(i++,y=i;y<a&&e.charCodeAt(y)!==Ve;){if(e.charCodeAt(y)===$t&&y+1<a){y+=2;continue}if(e.charCodeAt(y)===ge){b=!1;break}y++}b&&(y>=a||e.charCodeAt(y)!==Ve)&&(b=!1),b&&(S=e.slice(i,y),y++)}else if(b){var T=ev===Ro?HA:-1;if(T>=0&&i>=T)b=!1;else{for(var w=0,D=!1;y<a;){var M=e.charCodeAt(y);if(M===$t&&y+1<a){y+=2;continue}if(M===so)w++;else if(M===Eo){if(D=!0,w===0)break;w--}else if(M===X||M===ge)break;y++}y>=a&&!D&&(T<0||i<T)&&(HA=i,ev=Ro),S=e.slice(i,y)}}if(b){for(i=y;i<a&&(e.charCodeAt(i)===X||e.charCodeAt(i)===ge);)i++;var R;if(i<a){var B=e.charCodeAt(i);if(B===Pl||B===Bl||B===so){var H=B===so?41:B;i++;for(var k=i;i<a&&e.charCodeAt(i)!==H;)e.charCodeAt(i)===$t&&i+1<a&&i++,i++;i>=a?b=!1:(R=e.slice(k,i),i++)}}if(b){for(;i<a&&(e.charCodeAt(i)===X||e.charCodeAt(i)===ge);)i++;(i>=a||e.charCodeAt(i)!==Eo)&&(b=!1)}}if(b){if(i++,S=Dn(lu(S)),R!==void 0&&(R=Dn(lu(R))),n){var _=lr(x,0,x.length,o,r),le=lp(_);return{node:{type:E.image,target:Zd(S,r?.sanitizer||Mr,"img","src"),alt:le,title:R},end:i}}var V=o.inAnchor;o.inAnchor=!0;var ae=V?[{type:E.text,text:x}]:lr(x,0,x.length,o,r);return o.inAnchor=V,!o.inAnchor&&ov(ae)?null:{node:{type:E.link,target:Zd(S,r?.sanitizer||Mr,"a","href"),title:R,children:ae},end:i}}i=h+1,I=!0}var P="",fe=i;if(!I&&C===ht){var Re=i+1;fe=Re;for(var Te=!1;fe<a&&e.charCodeAt(fe)!==uo;){if(e.charCodeAt(fe)===$t&&fe+1<a){fe+=2;continue}if(e.charCodeAt(fe)===ht){Te=!0;break}fe++}if(Te||fe>=a)return null;var U=e.slice(Re,fe);if(U.trim())P=Jd(U);else{if(DA(x))return null;P=Jd(x)}fe+=1}else{if(DA(x))return null;P=Jd(x)}var Y=o.refs?.[P];if(!Y)return null;if(n)return{node:{type:E.image,target:Zd(Y.target,r?.sanitizer||Mr,"img","src"),alt:lp(lr(x,0,x.length,o,r)),title:Y.title},end:fe};var K=o.inAnchor;o.inAnchor=!0;var ae=K?[{type:E.text,text:x}]:lr(x,0,x.length,o,r);return o.inAnchor=K,!o.inAnchor&&ov(ae)?null:{node:{type:E.link,target:Zd(Y.target,r?.sanitizer||Mr,"a","href"),title:Y.title,children:ae},end:fe}}function nT(e,t,a){if(e.charCodeAt(t)!==ft)return null;for(var o=t+1;o<a;){var r=e.charCodeAt(o);if(r===Ve)break;if(r===X||r===ge||r===Mn||r===ft)return null;o++}if(o>=a||e.charCodeAt(o)!==Ve)return null;var n=e.slice(t+1,o),l=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\\x00-\\x20]*)$/);return l?{node:{type:E.link,target:n,title:void 0,children:[{type:E.text,text:n}]},end:o+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:E.link,target:`mailto:${n}`,title:void 0,children:[{type:E.text,text:n}]},end:o+1}:null}function aP(e,t,a,o){if(e.charCodeAt(t)!==ht||t+1>=a||e.charCodeAt(t+1)!==Or||av===Ro&&t>=VA)return null;let r=t+2;for(;r<a&&e.charCodeAt(r)!==uo&&e.charCodeAt(r)!==ge;)r++;if(r>=a)return VA=t,av=Ro,null;if(e.charCodeAt(r)!==uo)return null;let n=e.slice(t+2,r);return n?{node:{type:E.footnoteReference,target:`#${zl(n)}`,text:n},end:r+1}:null}function oP(e,t,a,o){if(o.disableBareUrls)return null;var r="",n=!1,l=e.charCodeAt(t);if(l===tp||l===72?t+8<=a&&e.charCodeAt(t+1)===nu&&e.charCodeAt(t+2)===nu&&e.charCodeAt(t+3)===jx&&(e.charCodeAt(t+4)===WA&&e.charCodeAt(t+5)===Ba&&e.charCodeAt(t+6)===Ut&&e.charCodeAt(t+7)===Ut?r="https://":e.charCodeAt(t+4)===Ba&&e.charCodeAt(t+5)===Ut&&e.charCodeAt(t+6)===Ut&&(r="http://")):l===Ol||l===70?t+6<=a&&e.charCodeAt(t+1)===nu&&e.charCodeAt(t+2)===jx&&e.charCodeAt(t+3)===Ba&&e.charCodeAt(t+4)===Ut&&e.charCodeAt(t+5)===Ut&&(r="ftp://"):(l===Ml||l===87)&&t+4<=a&&e.charCodeAt(t+1)===Ml&&e.charCodeAt(t+2)===Ml&&e.charCodeAt(t+3)===ko&&(r="www.",n=!0),!r)return null;let s=t+r.length;for(;s<a;){let b=e.charCodeAt(s);if(b===X||b===ge||b===te||b===Mn||b===ft||b===Ve)break;s++}for(var u=0,i=0,c=t;c<s;c++){var d=e.charCodeAt(c);d===so?u++:d===Eo&&i++}let f=s;for(;f>t+r.length;){let b=e.charCodeAt(f-1);if(b===ko||b===Z2||b===Ba||b===Pa||b===uu||b===Eo||b===Ht||b===Ot||b===la){if(b===Eo){if(u>=i)break;i--}f--}else if(b===ap){for(var p=f-2;p>t&&(e.charCodeAt(p)>=Me&&e.charCodeAt(p)<=Oe||e.charCodeAt(p)>=ct&&e.charCodeAt(p)<=bt||e.charCodeAt(p)>=He&&e.charCodeAt(p)<=_e);)p--;p>=t&&e.charCodeAt(p)===sp?f=p:f--}else break}if(f<=t+r.length)return null;var g=t+(n?4:r.length),v=e.indexOf("/",g);if((v<0||v>f)&&(v=f),n&&e.indexOf(".",g)===-1)return null;for(var L=-1,m=-1,h=v-1;h>=g;h--)if(e.charCodeAt(h)===ko)if(L<0)L=h;else{m=h;break}for(var x=m>=0?m+1:g,h=x;h<v;h++)if(e.charCodeAt(h)===Ot)return null;var C=e.slice(t,f),I=n?`http://${C}`:C;return{node:{type:E.link,target:I,title:void 0,children:[{type:E.text,text:C}]},end:f}}function rP(e,t,a,o){if(o.disableBareUrls)return null;for(var r=t,n=r;r<a;){var l=e.charCodeAt(r);if(l>=Me&&l<=Oe||l>=ct&&l<=bt||l>=He&&l<=_e||l===ko||l===Pa||l===Mo||l===36||l===Gx||l===sp||l===Bl||l===Ht||l===On||l===Ut||l===Do||l===uu||l===Or||l===Ot||l===lt||l===Nl||l===fa||l===uv||l===la||l===Fe)r++;else break}if(r===n||r>=a||e.charCodeAt(r)!==YA)return null;r++;for(var s=r,u=-1,i=r;r<a;){var l=e.charCodeAt(r);if(l>=Me&&l<=Oe||l>=ct&&l<=bt||l>=He&&l<=_e)r++;else if((l===Fe||l===Ot)&&r>s)r++;else if(l===ko){if(r===s)break;var c=e.charCodeAt(r-1);if(c===Fe||c===Ot||r-i>63)break;if(r+1<a){var d=e.charCodeAt(r+1);if(d>=Me&&d<=Oe||d>=ct&&d<=bt||d>=He&&d<=_e)u=r,i=r+1,r++;else break}else break}else break}if(r-i>63||u<0)return null;var f=e.charCodeAt(r-1);if(!(f>=Me&&f<=Oe||f>=ct&&f<=bt||f>=He&&f<=_e)||r<=u+1)return null;for(var p=-1,g=u-1;g>=s;g--)if(e.charCodeAt(g)===ko){p=g;break}for(var v=p>=0?p+1:s,g=v;g<r;g++)if(e.charCodeAt(g)===Ot)return null;var L=e.slice(t,r);return{node:{type:E.link,target:`mailto:${L}`,title:void 0,children:[{type:E.text,text:L}]},end:r}}function ov(e){for(var t=0;t<e.length;t++)if(e[t].type===E.link||"children"in e[t]&&Array.isArray(e[t].children)&&ov(e[t].children))return!0;return!1}function lp(e,t){for(var a="",o=0;o<e.length;o++){var r=e[o];r.type===E.text?a+=r.text:r.type===E.breakLine?a+=" ":r.type===E.codeInline||r.type===E.footnoteReference?a+=r.text:("children"in r)&&Array.isArray(r.children)?a+=lp(r.children,t):!t&&r.type===E.image&&(a+=r.alt||"")}return a}function rv(e,t,a){for(var o=0;o<e.length;o++){var r=e[o];if(r.type===E.heading){var n=r;n.id=zB(a(lp(n.children,!0)),t)}if("children"in r){var l=r.children;Array.isArray(l)&&rv(l,t,a)}if((r.type===E.orderedList||r.type===E.unorderedList)&&Array.isArray(r.items))for(var s=r.items,u=0;u<s.length;u++)rv(s[u],t,a)}}function kl(e){return{type:E.text,text:e}}function nP(e,t,a){var o=t+1;if(o>=a)return-1;if(e.charCodeAt(o)===Mo){o++;var r=o<a&&(e.charCodeAt(o)===KA||e.charCodeAt(o)===ZA);r&&o++;for(var n=o,l=r?6:7;o<a&&o-n<=l;){var s=e.charCodeAt(o),u=s>=He&&s<=_e||r&&(s>=Me&&s<=Xx||s>=ct&&s<=Ol);if(!u)break;o++}return o===n||o-n>l?-1:o<a&&e.charCodeAt(o)===ap?o+1:-1}for(var i=o;o<a&&o-i<48;){var c=e.charCodeAt(o);if(c>=Me&&c<=Oe||c>=ct&&c<=bt||c>=He&&c<=_e){o++;continue}break}return o===i?-1:o<a&&e.charCodeAt(o)===ap?o+1:-1}function lP(e,t,a,o,r){if(e.charCodeAt(t)!==ft)return null;var n=t+1;if(n>=a)return null;var l=e.charCodeAt(n);if(l===Pa&&n+1<a&&e.charCodeAt(n+1)===Fe&&n+2<a&&e.charCodeAt(n+2)===Fe){var s=n+3;if(s<a&&e.charCodeAt(s)===Ve)return{node:{type:E.htmlComment,text:"",s:!0},end:s+1};if(s+1<a&&e.charCodeAt(s)===Fe&&e.charCodeAt(s+1)===Ve)return{node:{type:E.htmlComment,text:"-",s:!0},end:s+2};var u=e.indexOf("-->",s);return u!==-1&&u<=a-3?{node:{type:E.htmlComment,text:e.slice(t+4,u),s:!1},end:u+3}:null}if(l===uu){var i=e.indexOf("?>",n+1);return i!==-1&&i<a?{node:{type:E.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,i+2),a:!1},end:i+2}:null}if(l===Pa&&n+1<a){var c=e.charCodeAt(n+1);if(c===ht&&e.slice(n+1,n+8)==="[CDATA["){var d=e.indexOf("]]>",n+8);return d!==-1&&d<a?{node:{type:E.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,d+3),a:!1},end:d+3}:null}if(c>=Me&&c<=Oe){var f=e.indexOf(">",n+2);return f!==-1&&f<a?{node:{type:E.htmlSelfClosing,tag:`!${e.slice(n+1,f)}`,attrs:{},m:e.slice(t,f+1),a:!1},end:f+1}:null}}if(l===Ut){var p=n+1;if(p>=a)return null;var g=e.charCodeAt(p);if(!(g>=Me&&g<=Oe||g>=ct&&g<=bt))return null;for(p++;p<a;){var v=e.charCodeAt(p);if(v>=Me&&v<=Oe||v>=ct&&v<=bt||v>=He&&v<=_e||v===Fe)p++;else break}for(;p<a&&(e.charCodeAt(p)===X||e.charCodeAt(p)===te||e.charCodeAt(p)===ge);)p++;if(p<a&&e.charCodeAt(p)===Ve){var L=e.slice(n+1,p).trim();return{node:{type:E.htmlSelfClosing,tag:L,attrs:{},h:e.slice(t,p+1),a:!0},end:p+1}}return null}if(!(l>=Me&&l<=Oe||l>=ct&&l<=bt))return null;var m=nr(e,t);if(!m)return null;var h=m.tag,x=h.toLowerCase(),C=m.n;if(C||Qi(h))return{node:{type:E.htmlSelfClosing,tag:h,attrs:rr(m.attrs,h,r),m:m.q?Zx(m):e.slice(t,m.end),a:!1},end:m.end};var I=Ji.has(x),b=$x(e.slice(0,a),m.end,h);if(b===-1)return{node:{type:E.htmlSelfClosing,tag:h,attrs:rr(m.attrs,h,r),m:m.q?Zx(m):e.slice(t,m.end),a:!1},end:m.end};var S=VB(e,`</${x}`,b),y=e.slice(m.end,S);if(I){var T=lo(y);return{node:{type:E.htmlBlock,tag:h,attrs:rr(m.attrs,h,r),b:m.g+m.b,children:[],e:T||void 0,h:e.slice(S,b),text:T,c:!0,a:!1},end:b}}var w=[],D=y.trim();if(D){var{inAnchor:M,inline:R,k:B}=o;x==="a"&&(o.inAnchor=!0),o.k=!1;var H=D.indexOf(`\n\n`)!==-1||/^#{1,6}\\s/.test(D);H?(o.inline=!1,w=En(D,o,r)):w=lr(D,0,D.length,o,r),o.inAnchor=M,o.inline=R,o.k=B}return{node:{type:E.htmlBlock,tag:h,attrs:rr(m.attrs,h,r),b:m.b,children:w,text:lo(y),c:!1,a:!1},end:b}}var sP=200,Ki=0;function lr(e,t,a,o,r){if(Ki++,Ki>sP)return Ki--,[{type:E.text,text:e.slice(t,a)}];var n=Ro;Ro=tP();let l=o;if(r.optimizeForStreaming){let Q=function(tt,At){for(var St=1,Pt=At+1;Pt<tt.length;Pt++){var Tt=tt.charCodeAt(Pt);if(Tt===ht)St++;else if(Tt===uo&&(St--,St===0))return Pt}return-1},N=e.slice(t,a),Bt=N;for(var s=0,u=0,i=0,c=0,d=0,f=-1,p=-1,g=-1,v=-1,L=-1,m=0;m<N.length;m++){var h=N.charCodeAt(m);if(h===ht){var x=ZB(N,m,N.length);if(x>m){m=x-1;continue}}h===Ht?m+1<N.length&&N.charCodeAt(m+1)===Ht?(s++,f=m,m++):(u++,p=m):h===Ot?m+1<N.length&&N.charCodeAt(m+1)===Ot?(i++,g=m,m++):(c++,v=m):h===la&&m+1<N.length&&N.charCodeAt(m+1)===la&&(d++,L=m,m++)}var C=[];d%2===1&&L>=0&&C.push([L,2]),i%2===1&&g>=0&&C.push([g,2]),c%2===1&&v>=0&&C.push([v,1]),s%2===1&&f>=0&&C.push([f,2]),u%2===1&&p>=0&&C.push([p,1]),C.sort((tt,At)=>At[0]-tt[0]);for(var I=0;I<C.length;I++){var b=C[I][0],S=C[I][1];N=N.slice(0,b)+N.slice(b+S)}let De=0,gt=-1;for(let tt=0;tt<N.length;tt++)N.charCodeAt(tt)===lt&&(De++,gt=tt);if(De%2===1&>!==-1){let tt=!1,At=-1,St=0;for(;St<N.length;)N.charCodeAt(St)===lt&&(tt?(tt=!1,At=-1):(At=St,tt=!0)),St++;tt&&At!==-1&&(N=N.slice(0,At))}for(var y=!0;y;){y=!1;for(var T=-1,w=-1,D=-1,M=!1,R=0;R<N.length;R++){var B=N.charCodeAt(R);if(B===ht&&(R===0||N.charCodeAt(R-1)!==$t)){var H=R>0&&N.charCodeAt(R-1)===Pa,k=H?R-1:R,_=Q(N,R);if(_===-1)T=k,M=H,w=R+1,D=N.length;else{var le=_+1;if(le>=N.length)T=k,M=H,w=R+1,D=_;else if(N.charCodeAt(le)===so){var V=N.indexOf(")",le+1);V===-1?(T=k,M=H,w=R+1,D=_,R=N.length):R=V}else if(N.charCodeAt(le)===ht){var P=N.indexOf("]",le+1);P===-1?(T=k,M=H,w=R+1,D=_,R=N.length):R=P}else R=_}}}if(T>=0){var fe=M?"":N.slice(w,D);N=N.slice(0,T)+fe,y=!0}}let be=N.match(/<([A-Z][A-Za-z0-9]*)(?:\\s[^>]*)?>([^<]*)$/);if(be&&be.index!==void 0){var Re=be[0].length-be[2].length,Te=Re>=2&&be[0].charCodeAt(Re-2)===Ut;if(!Te){for(var U=!1,Y=0,K=0;K<be.index;K++)N.charCodeAt(K)===lt&&Y++;if(U=Y%2===1,!U){let tt=be[1];Rn(N,`</${tt}`,0)===-1&&(N=N.slice(0,be.index)+be[2])}}}N!==Bt&&(e=e.slice(0,t)+N,a=t+N.length)}let ae=[];var ue=[];let ee=t;var re="",ve=r.disableAutoLink||r.disableBareUrls||l.inAnchor?-1:e.indexOf("@",t);for(ve>=a&&(ve=-1);t<a;){let Q=e.charCodeAt(t),N=null;if(Q===lt){if(N=WB(e,t,a),!N){var ie=Bn(e,t,a,lt);t+=ie-1}}else if(Q===Ht||Q===Ot){var Z=$B(e,t,a);if(Z){if(Z.canOpen||Z.canClose){(re||t>ee)&&(ae.push(kl(re+e.slice(ee,t))),re="");var xe=e.slice(t,t+Z.len),Ie=kl(xe);ue.push({idx:ae.length,ch:Q,len:Z.len,canOpen:Z.canOpen,canClose:Z.canClose,active:!0}),ae.push(Ie),t+=Z.len,ee=t;continue}t+=Z.len-1}}else if(Q===la)N=QB(e,t,a,l,r);else if(Q===Do)N=JB(e,t,a,l,r);else if(Q===ht)t+1<a&&e.charCodeAt(t+1)===Or&&(N=aP(e,t,a,l)),N||(N=GA(e,t,a,l,r));else if(Q===Pa&&t+1<a&&e.charCodeAt(t+1)===ht)N=GA(e,t,a,l,r);else if(Q===ft)N=nT(e,t,a),!(N||r.disableParsingRawHTML||r.ignoreHTMLBlocks)&&(N=lP(e,t,a,l,r));else if(Q===sp){var Ae=nP(e,t,a);if(Ae!==-1){var ne=e.slice(t,Ae),ke=Dn(ne);if(ke!==ne){re=re+e.slice(ee,t)+ke,t=Ae,ee=Ae;continue}}}else if((Q===tp||Q===Ml||Q===Ol)&&!l.inAnchor&&!r.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==ft)){var oe=t+1<a?e.charCodeAt(t+1):0;(Q===tp&&oe===nu||Q===Ol&&oe===nu||Q===Ml&&oe===Ml)&&(N=oP(e,t,a,r))}if(!N&&ve>=0&&ve-t<=64&&!l.inAnchor&&!r.disableAutoLink&&!r.disableBareUrls&&(Q>=Me&&Q<=Oe||Q>=ct&&Q<=bt||Q>=He&&Q<=_e)&&(N=rP(e,t,a,r),!N&&t>=ve&&(ve=e.indexOf("@",t+1),ve>=a&&(ve=-1))),Q===ge&&l.k){var Se=!1,Pe=0;if(t>ee&&e.charCodeAt(t-1)===$t)Se=!0,Pe=1;else{for(var Xe=0,G=t-1;G>=ee&&e.charCodeAt(G)===X;)Xe++,G--;Xe>=2&&(Se=!0,Pe=Xe)}if(Se){for((re||t-Pe>ee)&&(ae.push(kl(re+e.slice(ee,t-Pe))),re=""),ae.push({type:E.breakLine}),t++;t<a&&e.charCodeAt(t)===X;)t++;ee=t;continue}var he=t>ee&&e.charCodeAt(t-1)===X,me=t+1<a&&e.charCodeAt(t+1)===X;if(he||me){for(var q=t;q>ee&&e.charCodeAt(q-1)===X;)q--;for(re+=`${e.slice(ee,q)}\n`,t++;t<a&&e.charCodeAt(t)===X;)t++;ee=t;continue}}if(N)(re||t>ee)&&(ae.push(kl(re+e.slice(ee,t))),re=""),ae.push(N.node),t=N.end,ee=t;else{if(Q===$t&&t+1<a){let Bt=e.charCodeAt(t+1);if(cv(Bt)&au){(re||t>ee)&&(ae.push(kl(re+e.slice(ee,t))),re=""),ae.push(kl(e[t+1])),t+=2,ee=t;continue}}if(t++,ve<0||ve-t>64)for(;t<a&&!(ve>=0&&ve-t<=64);){var F=e.charCodeAt(t);if(F<up&&!eT[F])t++;else break}}}return(re||a>ee)&&(ae.push(kl(re+e.slice(ee,a))),re=""),ue.length>0&&eP(ae,ue,o,r),Ro=n,Ki--,ae}var uP=500;function En(e,t,a){var o=t.o||0;if(o>uP)return[{type:E.text,text:e}];t.o=o+1;let r=t;if(a.optimizeForStreaming&&!(t.i||t.w)){for(var n=e.length;n>0&&e.charCodeAt(n-1)===ge;)n--;for(var l=n;l>0&&e.charCodeAt(l-1)!==ge;)l--;if(n>l&&e.charCodeAt(l)===fa){for(var s=!1,u=l+1;u<n;u++){var i=e.charCodeAt(u);if(i!==X&&i!==te&&i!==fa&&i!==Ba&&i!==Fe){s=!0;break}}for(var c=!1,d=!1,f=0,p=l,g=l-1;g>0;){for(var v=g;v>0&&e.charCodeAt(v-1)!==ge;)v--;if(e.charCodeAt(v)!==fa)break;p=v;for(var L=!0,m=!1,h=v;h<g;h++){var x=e.charCodeAt(h);if(x===Fe)m=!0;else if(x!==X&&x!==te&&x!==Ba&&x!==fa){L=!1;break}}L&&m?(c=!0,d=!0):d||f++,g=v-1}s?c||(e=e.slice(0,l).trimEnd()):e=c&&f>0?e.slice(0,l).trimEnd():e.slice(0,p).trimEnd()}for(var C=-1,I=-1,b=-1,S=!1,y=e.length-1;y>=0;y--)if(e.charCodeAt(y)===ft){for(var T=y+1<e.length?e.charCodeAt(y+1):0,w=T>=Me&&T<=Oe||T>=ct&&T<=bt,D=T===Ut&&y+2<e.length&&(e.charCodeAt(y+2)>=Me&&e.charCodeAt(y+2)<=Oe||e.charCodeAt(y+2)>=ct&&e.charCodeAt(y+2)<=bt),M=T===Pa||T===uu,R=e.length;R>y+1&&e.charCodeAt(R-1)===ge;)R--;var B=y+1>=R;if(w||D||M||B){var H=y+1;if((D||w)&&(H=y+2),w||D)for(;H<e.length;){var k=e.charCodeAt(H);if(k>=Me&&k<=Oe||k>=ct&&k<=bt||k>=He&&k<=_e)H++;else break}for(var _=w||D?H:y+2;_<e.length&&e.charCodeAt(_)!==Ve;)_++;if(_>=e.length)C=y,S=!0;else if((w||D)&&e.charCodeAt(_-1)!==Ut){for(var le=!1,V=_+1;V<e.length;V++)if(e.charCodeAt(V)===ft){le=!0;break}le||(C=y,I=H,b=_+1)}}break}if(C>=0){for(var P=0,fe=0;fe<C;fe++)e.charCodeAt(fe)===lt&&P++;if(P%2===0)if(S)e=e.slice(0,C);else{var Re=e.slice(C+1,I);Rn(e,`</${Re}`,0)===-1&&(e=e.slice(0,C)+e.slice(b))}}for(var Te=e.length;Te>0&&e.charCodeAt(Te-1)===ge;)Te--;if(Te>0){for(var U=Te;U>0&&e.charCodeAt(U-1)!==ge;)U--;for(var Y=U,K=0;Y<Te&&e.charCodeAt(Y)===X&&K<3;)Y++,K++;if(U>0&&Y<Te&&UB(e,Y,Te)){for(var ae=U-1,ue=ae;ue>0&&e.charCodeAt(ue-1)!==ge;)ue--;Ha(e,ue,ae)||(e=e.slice(0,U).trimEnd())}}var ee=e.length;if(ee>0){for(var re=e.lastIndexOf(`\n`),ve=re===-1?0:re+1,ie=ee,Z=ve,xe=0;Z<ie&&e.charCodeAt(Z)===X&&xe<3;)Z++,xe++;if(Z<ie){var Ie=e.charCodeAt(Z),Ae=!1;if(Ie===Ht||Ie===Fe||Ie===On){var ne=Z+1;if(ne>=ie||e.charCodeAt(ne)===X||e.charCodeAt(ne)===te){for(var ke=ne;ke<ie&&(e.charCodeAt(ke)===X||e.charCodeAt(ke)===te);)ke++;ke>=ie&&(Ae=!0)}}else if(Ie>=He&&Ie<=_e){for(var oe=Z;oe<ie&&e.charCodeAt(oe)>=He&&e.charCodeAt(oe)<=_e;)oe++;if(oe<ie&&(e.charCodeAt(oe)===ko||e.charCodeAt(oe)===Eo)){var Se=oe+1;if(Se>=ie||e.charCodeAt(Se)===X||e.charCodeAt(Se)===te){for(var Pe=Se;Pe<ie&&(e.charCodeAt(Pe)===X||e.charCodeAt(Pe)===te);)Pe++;Pe>=ie&&(Ae=!0)}}}Ae&&(e=e.slice(0,ve).trimEnd())}}}if(t.inline)return lr(e,0,e.length,t,a);let Xe=[],G=0,he=e.length;if(G===0&&!a.disableFrontmatter&&e.startsWith("---")){let De=aB(e);if(De?.hasValidYaml){if(a.preserveFrontmatter!==!1){let gt=e.slice(0,De.endPos).trimEnd();Xe.push({type:E.frontmatter,text:gt})}G=De.endPos}}for(;G<he;){for(var me=e.indexOf(`\n`,G),q=me<0?he:me;G<he&&Ha(e,G,q);)G=q<he?q+1:q,G<he&&(me=e.indexOf(`\n`,G),q=me<0?he:me);if(G>=he)break;var F=e.charCodeAt(G)===Yx;Wt(e,G,q);let De=null;if(Qx=e,Jx=G,$d=q,!F&&nt>=4&&!t.inHTML)De=HB(e,G);else if(!F){let gt=G+ot,be=e.charCodeAt(gt);be===Mo?De=FB(e,G,t,a):be===Ve?De=_B(e,G,t,a):be===lt||be===la?De=qB(e,G,t):be===Fe||be===Ht||be===Ot?(De=kn(e,G),!De&&(De=NA(e,G,t,a))):be===On||be>=He&&be<=_e?De=NA(e,G,t,a):be===ft?De=rT(e,G,t,a):be===fa?De=FA(e,G,t,a):be===ht&&(De=XB(e,G,t))}if(!De){for(var Q=!1,N=G;N<q;N++)if(e.charCodeAt(N)===fa){Q=!0;break}Q&&(De=FA(e,G,t,a))}if(De||(De=YB(e,G,t,a)),De)De.node.type!==E.refCollection&&Xe.push(De.node),G=De.end;else{var Bt=e.indexOf(`\n`,G);G=Bt<0?he:Bt+1}}return t.o=o,Xe}function iP(e,t,a,o){var r=nr(e,t);return r?{tagName:r.tag,tagLower:r.tag.toLowerCase(),attrs:r.b,whitespaceBeforeAttrs:r.g,isSelfClosing:r.n,hasSpaceBeforeSlash:r.r,isClosing:r.f,hasNewline:r.g.includes(`\n`)||r.b.includes(`\n`),endPos:r.end}:null}function dv(e,t,a){Ki=0,e=fB(e),!t.refs&&(t.refs=Object.create(null)),(a.optimizeForStreaming||t.inline)&&(t.w=NB(e,t.refs,a));var o,r;t.t||(t.t=o=[],t.p=r=[]);let n=En(e,t,a);if(o&&r){for(var l=o,s={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},u=0;u<l.length;u++){var i=l[u];t.inline=i.inline,t.inAnchor=i.inAnchor,t.inHTML=i.inHTML,t.d=i.htmlDepth,t.inList=i.inList,t.inBlockQuote=i.inBlockQuote,t.l=i.noSetext,t.o=i.depth,t.k=i.breaks;var c=lr(i.text,0,i.text.length,t,a);t.k=!1;for(var d=0;d<c.length;d++)i.dest.push(c[d])}t.inline=s.inline,t.inAnchor=s.inAnchor,t.inHTML=s.inHTML,t.d=s.htmlDepth,t.inList=s.inList,t.inBlockQuote=s.inBlockQuote,t.l=s.noSetext,t.o=s.depth;for(var f=r,p=0;p<f.length;p++)for(var g=f[p],v=0;v<g.src.length;v++){var L=g.src[v];if(g.unwrap&&L.type===E.paragraph)for(var m=L.children,h=0;h<m.length;h++)g.dest.push(m[h]);else g.dest.push(L)}t.t=void 0,t.p=void 0,rv(n,t,a.slugify)}return JA(t.refs)?[{type:E.refCollection,refs:t.refs},...n]:n}var nv;try{eu=at("div"),nv=eu!=null&&typeof eu=="object"&&"$$typeof"in eu&&typeof eu.$$typeof=="symbol"?eu.$$typeof:Symbol.for("react.transitional.element")}catch{nv=Symbol.for("react.transitional.element")}var eu;function lv(e,t,a){return{$$typeof:nv,type:e,key:a==null?null:String(a),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function wo(e,t){var a={key:e};if(t){var o=QA(t);for(var r in o)a[r]=o[r]}return a}var XA=typeof Ue>"u"?void 0:Ue(void 0);function jA(e,t,a,o,r,n,l,s,u){switch(e.type){case E.blockQuote:{let m={key:a.key};return e.alert&&(m.className=`markdown-alert-${n(e.alert.toLowerCase(),zl)}`,e.children.unshift(mB(e.alert))),o("blockquote",m,t(e.children,a))}case E.breakLine:return o("br",{key:a.key});case E.breakThematic:return o("hr",{key:a.key});case E.frontmatter:return s.preserveFrontmatter?o("pre",{key:a.key},e.text):null;case E.codeBlock:{let m=e.lang?Dn(e.lang):"";var i=e.attrs?QA(e.attrs):{};return i.className=m?`language-${m} lang-${m}`:"",o("pre",{key:a.key},o("code",i,e.text))}case E.codeInline:return o("code",{key:a.key},e.text);case E.footnoteReference:return o("a",{key:a.key,href:r(e.target,"a","href")||void 0},o("sup",null,e.text));case E.gfmTask:return o("input",{checked:e.completed,key:a.key,readOnly:!0,type:"checkbox"});case E.heading:return o(`h${e.level}`,{id:e.id,key:a.key},t(e.children,a));case E.htmlBlock:{let m=e;if(tu(s)&&SA(m.tag)){var c=bA(m);return c.kind==="literal"?o("span",{key:a.key},c.literal):o("span",{key:a.key},...CB(c.open,m.children?t(m.children,a):null,c.close))}let h=m.j,x=h!==void 0,C=x?h:m.a?m.e||"":(m.e||"")+(m.h||"");if(C&&m.c){let I=m.tag.toLowerCase(),b=DB(I),S=m.children,y=S!=null&&S.length>0;if(b){let H=x?h:m.e||"",k=tu(s)?IA(H):H;if(/<[a-z][^>]{0,100}>/i.test(C)){var d=wo(a.key,e.attrs);return d.dangerouslySetInnerHTML={__html:k},u(e.tag,d)}return u(e.tag,wo(a.key,e.attrs),k)}let T=new RegExp(`^<${m.tag}(\\\\s|>)`,"i");if(y&&!T.test(C)&&tu(s)&&AB(C))return u(e.tag,wo(a.key,e.attrs),t(S,a));if(kB(C)){let H=tu(s)?IA(C):C;var f=wo(a.key,e.attrs);return f.dangerouslySetInnerHTML={__html:H},u(e.tag,f)}let w=iv({slugify:s.slugify,sanitizer:r,tagfilter:!0}),D=dB(C);if(new RegExp(`^<${m.tag}(\\\\s[^>]*)?>(\\\\s*</${m.tag}>)?$`,"i").test(D))return m.children&&m.children.length>0?u(e.tag,wo(a.key,e.attrs),t(m.children,a)):u(e.tag,wo(a.key,e.attrs));let M=dv(D,{inline:!1,refs:l,inHTML:!1},w);$A(M);let R=m.tag.toLowerCase(),B=x;if(B&&y)return u(e.tag,wo(a.key,e.attrs),t(S,a));if(B)return t(M.flatMap(ou),a);var p=xB(M,R);if(p.found&&p.afterClose.length>0){var g=p.beforeClose.flatMap(ou),v=p.afterClose.flatMap(ou);return lv(ya,{children:[u(e.tag,wo(a.key,e.attrs),t(g,a)),t(v,a)]},a.key)}return u(e.tag,wo(a.key,e.attrs),t(M.flatMap(ou),a))}return Qi(e.tag)?u(e.tag,wo(a.key,e.attrs)):u(e.tag,wo(a.key,e.attrs),e.children?t(e.children,a):"")}case E.htmlSelfClosing:{let m=e;if(tu(s)&&SA(m.tag)){var L=bA(m);return o("span",{key:a.key},L.kind==="literal"?L.literal:L.open+(L.close||""))}return u(e.tag,wo(a.key,e.attrs))}case E.image:{let m=e.target===null?null:r(e.target,"img","src");return o("img",{key:a.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:m||void 0})}case E.link:{let m={key:a.key};if(e.target!=null){let h=yB(e.target,r,"a","href");h!=null&&(m.href=h)}return e.title&&(m.title=e.title),o("a",m,t(e.children,a))}case E.table:{let m=e;return o("table",{key:a.key},o("thead",{key:"thead"},o("tr",null,m.header.map(function(h,x){return o("th",{key:x,style:m.align[x]===null?{}:{textAlign:m.align[x]}},t(h,a))}))),m.cells.length>0&&o("tbody",{key:"tbody"},m.cells.map(function(h,x){return o("tr",{key:x},h.map(function(C,I){return o("td",{key:I,style:m.align[I]===null?{}:{textAlign:m.align[I]}},t(C,a))}))})))}case E.text:return e.text;case E.textFormatted:return o(e.tag,{key:a.key},t(e.children,a));case E.orderedList:case E.unorderedList:{let m=e.type===E.orderedList?"ol":"ul";return o(m,{key:a.key,start:e.type===E.orderedList?e.start:void 0},e.items.map(function(h,x){return o("li",{key:x},t(h,a))}))}case E.paragraph:return o("p",{key:a.key},t(e.children,a));case E.ref:return null;default:return null}}var cP=(e,t,a,o,r,n,l)=>{var s=(i)=>i.map((c)=>("text"in c)?c.text:""),u=(i,c={})=>{var d=Array.isArray(i)?i:[i],f=(c.renderDepth||0)+1;if(f>2500)return s(d);c.renderDepth=f;for(var p=c.key,g=[],v=!1,L=0;L<d.length;L++){c.key=L;var m;if(e){var h=jA.bind(null,d[L],u,c,t,a,o,r,n,l);m=e(h,d[L],u,c)}else m=jA(d[L],u,c,t,a,o,r,n,l);var x=typeof m=="string";if(v&&typeof m=="string"){var C=g.at(-1);g[g.length-1]=(typeof C=="string"?C:"")+m}else if(m!=null)if(Array.isArray(m))for(var I=0;I<m.length;I++)g.push(m[I]);else g.push(m);v=x}return c.key=p,c.renderDepth=f-1,g};return u},fP=(e,t)=>{let a=Wx(t,e,void 0);return a?typeof a=="function"||typeof a=="object"&&"render"in a?a:Wx(t,`${e}.component`,e):e};function dP(e,t){let a={...t||{}};a.overrides=a.overrides||{};let o=a.slugify||zl,r=a.sanitizer||Mr,n=a.createElement,l=JA(a.overrides),s=(x)=>sv(x,{...a,wrapper:null});function u(x){for(var C in x){var I=x[C];if(typeof I=="string"&&I.length>0&&I.charCodeAt(0)===ft&&(TB.test(I)||wB.test(I)||iP(I,0))){var b=s(I.trim());x[C]=C==="innerHTML"&&Array.isArray(b)?b[0]:b}}}function i(x,C,...I){var b=C||{},S=x;if(l){var y=Wx(a.overrides,`${x}.props`,{});S=fP(x,a.overrides),b={...b,...y,className:SB(b.className,y.className)||void 0}}if(!n){var T=b.key;return T!=null&&delete b.key,I.length===1?b.children=I[0]:I.length>1&&(b.children=I),lv(S,b,T)}return n(S,b,...I)}function c(x,C,...I){return C&&u(C),i(x,C,...I)}let d=iv(a,a.forceInline),f=e[0]&&e[0].type===E.refCollection?e[0].refs:Object.create(null),p=cP(a.renderRule,i,r,o,f,a,c),g=p(e,{inline:a.forceInline,refs:f}),v=bB(f);if(v.length>0&&g.push(i("footer",{key:"footer"},v.map(function(x){let C=x.identifier.charCodeAt(0)===Or?x.identifier.slice(1):x.identifier,I=dv(x.footnote,{inline:!0,refs:f},d);return i("div",{id:o(C,zl),key:x.identifier},`${C}: `,p(I,{inline:!0,refs:f}))}))),a.wrapper===null)return g;let L=a.wrapper||(a.forceInline?"span":"div"),m;if(g.length>1||a.forceWrapper)m=g;else return g.length===1?g[0]:null;var h=a.wrapperProps?{...a.wrapperProps}:{};return h.children=m,lv(L,h,"outer")}function sv(e="",t={}){let a={...t||{}};a.overrides=a.overrides||{};let o=a.slugify||zl,r=a.sanitizer||Mr;function n(s){let u=a.forceInline||!(a.forceBlock||lB.test(s)),i=iv(a,u),c=u?s:gB(s),d=dv(c,{inline:u,refs:l},i);return dP(d,{...a,forceInline:u})}let l=Object.create(null);return n(e)}function pP(e){let t=z(e),a=t.current;if(a!==e){var o=!0,r=0;for(var n in e)if(r++,!Object.is(a[n],e[n])){o=!1;break}if(o){var l=0;for(var s in a)l++;o=l===r}o||(t.current=e)}return t.current}var lT=({children:e,options:t,...a})=>{if(!(typeof Be<"u")){let s={...t,overrides:{...t?.overrides},wrapperProps:{...t?.wrapperProps,...a}};return sv(e??"",s)}let o=XA?Be(XA):void 0,r=pP(a),n=Le(()=>({...o,...t,overrides:{...o?.overrides,...t?.overrides},wrapperProps:{...o?.wrapperProps,...t?.wrapperProps,...r}}),[o,t,r]),l=e??"";return Le(()=>sv(l,n),[l,n])};var mP="mt-[0.9rem] mb-[0.3rem] first:mt-0 font-bold text-[0.8rem] uppercase tracking-[0.08em] opacity-55",iu=(e)=>({component:e,props:{className:mP}});function hP(e){return A("a",{...e,target:"_blank",rel:"noreferrer noopener",className:"break-all underline"})}function gP({alt:e}){return j("span",{className:"text-muted-foreground",children:["[",e||"image","]"]})}function xP(e){return A("input",{...e,disabled:!0,className:"mr-1.5 align-[-0.1em]",readOnly:!0})}var vP={disableParsingRawHTML:!0,forceBlock:!0,overrides:{h1:iu("h1"),h2:iu("h2"),h3:iu("h3"),h4:iu("h4"),h5:iu("h5"),h6:iu("h6"),p:{props:{className:"my-1"}},ul:{props:{className:"my-1 list-disc pl-5"}},li:{props:{className:"has-[>input]:-ml-5 has-[>input]:list-none has-[>input:checked]:opacity-50"}},ol:{props:{className:"my-1 list-decimal pl-5"}},blockquote:{props:{className:"my-1 border-l-2 pl-3 text-muted-foreground"}},pre:{props:{className:"my-2 overflow-x-auto rounded bg-current/8 p-3 text-xs"}},code:{props:{className:"rounded bg-current/10 px-1 [pre_&]:p-0 [pre_&]:bg-transparent"}},table:{props:{className:"my-2 block overflow-x-auto text-xs"}},th:{props:{className:"border px-2 py-1 text-left font-medium"}},td:{props:{className:"border px-2 py-1"}},hr:{props:{className:"my-3"}},a:hP,img:gP,input:xP}};function $i({text:e,className:t,preview:a=!1}){return A("div",{className:we("min-w-0 break-words",a&&"max-h-[2lh] overflow-hidden [&_*]:my-0 [&_*]:text-[length:inherit] [&_*]:normal-case [&_*]:tracking-normal [&_pre]:p-0 [&_pre]:bg-transparent",t),children:A(lT,{options:vP,children:e})})}var CP=new Set(["orphaned","stray","unrecorded","unknown"]);function sT({tasks:e}){let[t,a]=J(null);if(e.length===0)return j("p",{className:"text-muted-foreground text-sm",children:["No tasks: ",A("code",{children:"arbor add <task>"})," starts one."]});return j(hl,{children:[A("ul",{className:"flex flex-col",children:e.map((o)=>A("li",{children:j("button",{type:"button",onClick:()=>a(o),className:"-mx-2 flex w-[calc(100%+1rem)] items-center gap-3 rounded-lg px-2 py-2 text-left hover:bg-muted",children:[A("span",{className:"min-w-0 flex-1 truncate text-sm",children:o.task}),A(yP,{status:o.status}),A(bP,{plan:o.plan})]})},o.task))}),A(Wi,{open:t!==null,onOpenChange:(o)=>{if(!o)a(null)},children:t&&A(pv,{task:t})})]})}function yP({status:e}){if(e==="escalated")return A(Ex,{variant:"secondary",children:"escalated"});if(CP.has(e))return A(Ex,{variant:"destructive",children:e});return null}function bP({plan:e}){let t=e===null?null:pA(e);return t&&A(LP,{...t})}function LP({done:e,total:t}){return j("span",{className:"flex w-28 shrink-0 items-center gap-2",children:[A(dA,{value:e,max:t,"aria-label":"progress",className:"flex-1"}),j("span",{className:"w-8 text-right text-muted-foreground text-xs tabular-nums",children:[e,"/",t]})]})}function pv({task:e}){let t=[["status",e.status],["branch",e.branch],["base",e.base],["worktree",e.worktree],["lease",e.lease],["commits",String(e.ahead??"?")],["diff",e.added===null?"?":j("span",{className:"tabular-nums",children:[j("span",{className:"text-success",children:["+",e.added]})," ",j("span",{className:"text-destructive",children:["-",e.removed??0]})]},"diff")],["age",e.age??"?"]];return j(_d,{className:"max-h-[85dvh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-xl",children:[j(Vd,{children:[A(Gd,{children:e.task}),A(Xd,{children:e.escalation??e.status})]}),j("div",{className:"flex min-w-0 flex-col gap-6 text-sm",children:[A("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1",children:t.map(([a,o])=>j("div",{className:"contents",children:[A("dt",{className:"text-muted-foreground",children:a}),A("dd",{className:"truncate",children:o})]},a))}),e.plan===null?A("p",{className:"text-muted-foreground",children:"No ARBOR.md: whoever picks this up starts from the diff."}):A($i,{text:e.plan.replace(/^\\s*#\\s[^\\n]*/,"")}),e.planProblems.length>0&&A("ul",{className:"flex flex-col gap-1 text-muted-foreground text-xs",children:e.planProblems.map((a)=>A("li",{children:a},a))})]})]})}W();W();function iT(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return Le(()=>(o)=>{t.forEach((r)=>r(o))},t)}var ec=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fl(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ip(e){return"nodeType"in e}function Na(e){var t,a;if(!e)return window;if(Fl(e))return e;if(!ip(e))return window;return(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window}function cp(e){let{Document:t}=Na(e);return e instanceof t}function cu(e){if(Fl(e))return!1;return e instanceof Na(e).HTMLElement}function hv(e){return e instanceof Na(e).SVGElement}function Ul(e){if(!e)return document;if(Fl(e))return e.document;if(!ip(e))return document;if(cp(e))return e;if(cu(e)||hv(e))return e.ownerDocument;return document}var io=ec?Pr:ce;function tc(e){let t=z(e);return io(()=>{t.current=e}),dt(function(){for(var a=arguments.length,o=Array(a),r=0;r<a;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function cT(){let e=z(null),t=dt((o,r)=>{e.current=setInterval(o,r)},[]),a=dt(()=>{if(e.current!==null)clearInterval(e.current),e.current=null},[]);return[t,a]}function fu(e,t){if(t===void 0)t=[e];let a=z(e);return io(()=>{if(a.current!==e)a.current=e},t),a}function du(e,t){let a=z();return Le(()=>{let o=e(a.current);return a.current=o,o},[...t])}function ac(e){let t=tc(e),a=z(null),o=dt((r)=>{if(r!==a.current)t==null||t(r,a.current);a.current=r},[]);return[a,o]}function oc(e){let t=z();return ce(()=>{t.current=e},[e]),t.current}var mv={};function ql(e,t){return Le(()=>{if(t)return t;let a=mv[e]==null?0:mv[e]+1;return mv[e]=a,e+"-"+a},[e,t])}function fT(e){return function(t){for(var a=arguments.length,o=Array(a>1?a-1:0),r=1;r<a;r++)o[r-1]=arguments[r];return o.reduce((n,l)=>{let s=Object.entries(l);for(let[u,i]of s){let c=n[u];if(c!=null)n[u]=c+e*i}return n},{...t})}}var Hl=fT(1),_l=fT(-1);function SP(e){return"clientX"in e&&"clientY"in e}function pu(e){if(!e)return!1;let{KeyboardEvent:t}=Na(e.target);return t&&e instanceof t}function IP(e){if(!e)return!1;let{TouchEvent:t}=Na(e.target);return t&&e instanceof t}function mu(e){if(IP(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}if(SP(e))return{x:e.clientX,y:e.clientY};return null}var Xo=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(!e)return;return[Xo.Translate.toString(e),Xo.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:o}=e;return t+" "+a+"ms "+o}}}),uT="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dT(e){if(e.matches(uT))return e;return e.querySelector(uT)}W();var AP={display:"none"};function pT(e){let{id:t,value:a}=e;return at("div",{id:t,style:AP},a)}function mT(e){let{id:t,announcement:a,ariaLiveType:o="assertive"}=e,r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return at("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},a)}function hT(){let[e,t]=J("");return{announce:dt((o)=>{if(o!=null)t(o)},[]),announcement:e}}var DT=Ue(null);function TP(e){let t=Be(DT);ce(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wP(){let[e]=J(()=>new Set),t=dt((o)=>(e.add(o),()=>e.delete(o)),[e]);return[dt((o)=>{let{type:r,event:n}=o;e.forEach((l)=>{var s;return(s=l[r])==null?void 0:s.call(l,n)})},[e]),t]}var RP={draggable:`\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n `},DP={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was moved over droppable area "+a.id+".";return"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was dropped over droppable area "+a.id;return"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function kP(e){let{announcements:t=DP,container:a,hiddenTextDescribedById:o,screenReaderInstructions:r=RP}=e,{announce:n,announcement:l}=hT(),s=ql("DndLiveRegion"),[u,i]=J(!1);if(ce(()=>{i(!0)},[]),TP(Le(()=>({onDragStart(d){let{active:f}=d;n(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;if(t.onDragMove)n(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;n(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;n(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;n(t.onDragCancel({active:f,over:p}))}}),[n,t])),!u)return null;let c=at(ya,null,at(pT,{id:o,value:r.draggable}),at(mT,{id:s,announcement:l}));return a?Fr(c,a):c}var da;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(da||(da={}));function dp(){}function mp(e,t){return Le(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function kT(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return Le(()=>[...t].filter((o)=>o!=null),[...t])}var jo=Object.freeze({x:0,y:0});function ET(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function EP(e,t){let a=mu(e);if(!a)return"0 0";let o={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function MT(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return a-o}function MP(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return o-a}function gT(e){let{left:t,top:a,height:o,width:r}=e;return[{x:t,y:a},{x:t+r,y:a},{x:t,y:a+o},{x:t+r,y:a+o}]}function Lv(e,t){if(!e||e.length===0)return null;let[a]=e;return t?a[t]:a}function xT(e,t,a){if(t===void 0)t=e.left;if(a===void 0)a=e.top;return{x:t+e.width*0.5,y:a+e.height*0.5}}var OT=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=xT(t,t.left,t.top),n=[];for(let l of o){let{id:s}=l,u=a.get(s);if(u){let i=ET(xT(u),r);n.push({id:s,data:{droppableContainer:l,value:i}})}}return n.sort(MT)},BT=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=gT(t),n=[];for(let l of o){let{id:s}=l,u=a.get(s);if(u){let i=gT(u),c=r.reduce((f,p,g)=>f+ET(i[g],p),0),d=Number((c/4).toFixed(4));n.push({id:s,data:{droppableContainer:l,value:d}})}}return n.sort(MT)};function OP(e,t){let a=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),n=Math.min(t.top+t.height,e.top+e.height),l=r-o,s=n-a;if(o<r&&a<n){let u=t.width*t.height,i=e.width*e.height,c=l*s,d=c/(u+i-c);return Number(d.toFixed(4))}return 0}var BP=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=[];for(let n of o){let{id:l}=n,s=a.get(l);if(s){let u=OP(s,t);if(u>0)r.push({id:l,data:{droppableContainer:n,value:u}})}}return r.sort(MP)};function PP(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function PT(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:jo}function NP(e){return function(a){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return r.reduce((l,s)=>({...l,top:l.top+e*s.y,bottom:l.bottom+e*s.y,left:l.left+e*s.x,right:l.right+e*s.x}),{...a})}}var zP=NP(1);function NT(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function FP(e,t,a){let o=NT(t);if(!o)return e;let{scaleX:r,scaleY:n,x:l,y:s}=o,u=e.left-l-(1-r)*parseFloat(a),i=e.top-s-(1-n)*parseFloat(a.slice(a.indexOf(" ")+1)),c=r?e.width/r:e.width,d=n?e.height/n:e.height;return{width:c,height:d,top:i,right:u+c,bottom:i+d,left:u}}var UP={ignoreTransform:!1};function Vl(e,t){if(t===void 0)t=UP;let a=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:i,transformOrigin:c}=Na(e).getComputedStyle(e);if(i)a=FP(a,i,c)}let{top:o,left:r,width:n,height:l,bottom:s,right:u}=a;return{top:o,left:r,width:n,height:l,bottom:s,right:u}}function vT(e){return Vl(e,{ignoreTransform:!0})}function qP(e){let{innerWidth:t,innerHeight:a}=e;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function HP(e,t){if(t===void 0)t=Na(e).getComputedStyle(e);return t.position==="fixed"}function _P(e,t){if(t===void 0)t=Na(e).getComputedStyle(e);let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((r)=>{let n=t[r];return typeof n==="string"?a.test(n):!1})}function lc(e,t){let a=[];function o(r){if(t!=null&&a.length>=t)return a;if(!r)return a;if(cp(r)&&r.scrollingElement!=null&&!a.includes(r.scrollingElement))return a.push(r.scrollingElement),a;if(!cu(r)||hv(r))return a;if(a.includes(r))return a;let n=Na(e).getComputedStyle(r);if(r!==e){if(_P(r,n))a.push(r)}if(HP(r,n))return a;return o(r.parentNode)}if(!e)return a;return o(e)}function zT(e){let[t]=lc(e,1);return t!=null?t:null}function gv(e){if(!ec||!e)return null;if(Fl(e))return e;if(!ip(e))return null;if(cp(e)||e===Ul(e).scrollingElement)return window;if(cu(e))return e;return null}function FT(e){if(Fl(e))return e.scrollX;return e.scrollLeft}function UT(e){if(Fl(e))return e.scrollY;return e.scrollTop}function Cv(e){return{x:FT(e),y:UT(e)}}var xa;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xa||(xa={}));function qT(e){if(!ec||!e)return!1;return e===document.scrollingElement}function HT(e){let t={x:0,y:0},a=qT(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},r=e.scrollTop<=t.y,n=e.scrollLeft<=t.x,l=e.scrollTop>=o.y,s=e.scrollLeft>=o.x;return{isTop:r,isLeft:n,isBottom:l,isRight:s,maxScroll:o,minScroll:t}}var VP={x:0.2,y:0.2};function GP(e,t,a,o,r){let{top:n,left:l,right:s,bottom:u}=a;if(o===void 0)o=10;if(r===void 0)r=VP;let{isTop:i,isBottom:c,isLeft:d,isRight:f}=HT(e),p={x:0,y:0},g={x:0,y:0},v={height:t.height*r.y,width:t.width*r.x};if(!i&&n<=t.top+v.height)p.y=xa.Backward,g.y=o*Math.abs((t.top+v.height-n)/v.height);else if(!c&&u>=t.bottom-v.height)p.y=xa.Forward,g.y=o*Math.abs((t.bottom-v.height-u)/v.height);if(!f&&s>=t.right-v.width)p.x=xa.Forward,g.x=o*Math.abs((t.right-v.width-s)/v.width);else if(!d&&l<=t.left+v.width)p.x=xa.Backward,g.x=o*Math.abs((t.left+v.width-l)/v.width);return{direction:p,speed:g}}function XP(e){if(e===document.scrollingElement){let{innerWidth:n,innerHeight:l}=window;return{top:0,left:0,right:n,bottom:l,width:n,height:l}}let{top:t,left:a,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:a,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function _T(e){return e.reduce((t,a)=>Hl(t,Cv(a)),jo)}function jP(e){return e.reduce((t,a)=>t+FT(a),0)}function YP(e){return e.reduce((t,a)=>t+UT(a),0)}function VT(e,t){if(t===void 0)t=Vl;if(!e)return;let{top:a,left:o,bottom:r,right:n}=t(e);if(!zT(e))return;if(r<=0||n<=0||a>=window.innerHeight||o>=window.innerWidth)e.scrollIntoView({block:"center",inline:"center"})}var WP=[["x",["left","right"],jP],["y",["top","bottom"],YP]];class hp{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let a=lc(t),o=_T(a);this.rect={...e},this.width=e.width,this.height=e.height;for(let[r,n,l]of WP)for(let s of n)Object.defineProperty(this,s,{get:()=>{let u=l(a),i=o[r]-u;return this.rect[s]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class hu{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((t)=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...t)})},this.target=e}add(e,t,a){var o;(o=this.target)==null||o.addEventListener(e,t,a),this.listeners.push([e,t,a])}}function KP(e){let{EventTarget:t}=Na(e);return e instanceof t?e:Ul(e)}function xv(e,t){let a=Math.abs(e.x),o=Math.abs(e.y);if(typeof t==="number")return Math.sqrt(a**2+o**2)>t;if("x"in t&&"y"in t)return a>t.x&&o>t.y;if("x"in t)return a>t.x;if("y"in t)return o>t.y;return!1}var Oo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Oo||(Oo={}));function CT(e){e.preventDefault()}function ZP(e){e.stopPropagation()}var Je;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Je||(Je={}));var GT={start:[Je.Space,Je.Enter],cancel:[Je.Esc],end:[Je.Space,Je.Enter,Je.Tab]},QP=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case Je.Right:return{...a,x:a.x+25};case Je.Left:return{...a,x:a.x-25};case Je.Down:return{...a,y:a.y+25};case Je.Up:return{...a,y:a.y-25}}return};class sc{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new hu(Ul(t)),this.windowListeners=new hu(Na(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Oo.Resize,this.handleCancel),this.windowListeners.add(Oo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Oo.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,a=e.node.current;if(a)VT(a);t(jo)}handleKeyDown(e){if(pu(e)){let{active:t,context:a,options:o}=this.props,{keyboardCodes:r=GT,coordinateGetter:n=QP,scrollBehavior:l="smooth"}=o,{code:s}=e;if(r.end.includes(s)){this.handleEnd(e);return}if(r.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:u}=a.current,i=u?{x:u.left,y:u.top}:jo;if(!this.referenceCoordinates)this.referenceCoordinates=i;let c=n(e,{active:t,context:a.current,currentCoordinates:i});if(c){let d=_l(c,i),f={x:0,y:0},{scrollableAncestors:p}=a.current;for(let g of p){let v=e.code,{isTop:L,isRight:m,isLeft:h,isBottom:x,maxScroll:C,minScroll:I}=HT(g),b=XP(g),S={x:Math.min(v===Je.Right?b.right-b.width/2:b.right,Math.max(v===Je.Right?b.left:b.left+b.width/2,c.x)),y:Math.min(v===Je.Down?b.bottom-b.height/2:b.bottom,Math.max(v===Je.Down?b.top:b.top+b.height/2,c.y))},y=v===Je.Right&&!m||v===Je.Left&&!h,T=v===Je.Down&&!x||v===Je.Up&&!L;if(y&&S.x!==c.x){let w=g.scrollLeft+d.x,D=v===Je.Right&&w<=C.x||v===Je.Left&&w>=I.x;if(D&&!d.y){g.scrollTo({left:w,behavior:l});return}if(D)f.x=g.scrollLeft-w;else f.x=v===Je.Right?g.scrollLeft-C.x:g.scrollLeft-I.x;if(f.x)g.scrollBy({left:-f.x,behavior:l});break}else if(T&&S.y!==c.y){let w=g.scrollTop+d.y,D=v===Je.Down&&w<=C.y||v===Je.Up&&w>=I.y;if(D&&!d.x){g.scrollTo({top:w,behavior:l});return}if(D)f.y=g.scrollTop-w;else f.y=v===Je.Down?g.scrollTop-C.y:g.scrollTop-I.y;if(f.y)g.scrollBy({top:-f.y,behavior:l});break}}this.handleMove(e,Hl(_l(c,this.referenceCoordinates),f))}}}handleMove(e,t){let{onMove:a}=this.props;e.preventDefault(),a(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}sc.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:o=GT,onActivation:r}=t,{active:n}=a,{code:l}=e.nativeEvent;if(o.start.includes(l)){let s=n.activatorNode.current;if(s&&e.target!==s)return!1;return e.preventDefault(),r==null||r({event:e.nativeEvent}),!0}return!1}}];function yT(e){return Boolean(e&&"distance"in e)}function bT(e){return Boolean(e&&"delay"in e)}class gp{constructor(e,t,a){var o;if(a===void 0)a=KP(e.event.target);this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:n}=r;this.props=e,this.events=t,this.document=Ul(n),this.documentListeners=new hu(this.document),this.listeners=new hu(a),this.windowListeners=new hu(Na(n)),this.initialCoordinates=(o=mu(r))!=null?o:jo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:a}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel)this.listeners.add(e.cancel.name,this.handleCancel);if(this.windowListeners.add(Oo.Resize,this.handleCancel),this.windowListeners.add(Oo.DragStart,CT),this.windowListeners.add(Oo.VisibilityChange,this.handleCancel),this.windowListeners.add(Oo.ContextMenu,CT),this.documentListeners.add(Oo.Keydown,this.handleKeydown),t){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(bT(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(yT(t)){this.handlePending(t);return}}this.handleStart()}detach(){if(this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null)clearTimeout(this.timeoutId),this.timeoutId=null}handlePending(e,t){let{active:a,onPending:o}=this.props;o(a,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;if(e)this.activated=!0,this.documentListeners.add(Oo.Click,ZP,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Oo.SelectionChange,this.removeTextSelection),t(e)}handleMove(e){var t;let{activated:a,initialCoordinates:o,props:r}=this,{onMove:n,options:{activationConstraint:l}}=r;if(!o)return;let s=(t=mu(e))!=null?t:jo,u=_l(o,s);if(!a&&l){if(yT(l)){if(l.tolerance!=null&&xv(u,l.tolerance))return this.handleCancel();if(xv(u,l.distance))return this.handleStart()}if(bT(l)){if(xv(u,l.tolerance))return this.handleCancel()}this.handlePending(l,u);return}if(e.cancelable)e.preventDefault();n(s)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleKeydown(e){if(e.code===Je.Esc)this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}var JP={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Sv extends gp{constructor(e){let{event:t}=e,a=Ul(t.target);super(e,JP,a)}}Sv.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(!a.isPrimary||a.button!==0)return!1;return o==null||o({event:a}),!0}}];var $P={move:{name:"mousemove"},end:{name:"mouseup"}},yv;(function(e){e[e.RightClick=2]="RightClick"})(yv||(yv={}));class xp extends gp{constructor(e){super(e,$P,Ul(e.event.target))}}xp.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(a.button===yv.RightClick)return!1;return o==null||o({event:a}),!0}}];var vv={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class vp extends gp{constructor(e){super(e,vv)}static setup(){return window.addEventListener(vv.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(vv.move.name,e)};function e(){}}}vp.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t,{touches:r}=a;if(r.length>1)return!1;return o==null||o({event:a}),!0}}];var rc;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(rc||(rc={}));var pp;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(pp||(pp={}));function eN(e){let{acceleration:t,activator:a=rc.Pointer,canScroll:o,draggingRect:r,enabled:n,interval:l=5,order:s=pp.TreeOrder,pointerCoordinates:u,scrollableAncestors:i,scrollableAncestorRects:c,delta:d,threshold:f}=e,p=aN({delta:d,disabled:!n}),[g,v]=cT(),L=z({x:0,y:0}),m=z({x:0,y:0}),h=Le(()=>{switch(a){case rc.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case rc.DraggableRect:return r}},[a,r,u]),x=z(null),C=dt(()=>{let b=x.current;if(!b)return;let S=L.current.x*m.current.x,y=L.current.y*m.current.y;b.scrollBy(S,y)},[]),I=Le(()=>s===pp.TreeOrder?[...i].reverse():i,[s,i]);ce(()=>{if(!n||!i.length||!h){v();return}for(let b of I){if((o==null?void 0:o(b))===!1)continue;let S=i.indexOf(b),y=c[S];if(!y)continue;let{direction:T,speed:w}=GP(b,y,h,t,f);for(let D of["x","y"])if(!p[D][T[D]])w[D]=0,T[D]=0;if(w.x>0||w.y>0){v(),x.current=b,g(C,l),L.current=w,m.current=T;return}}L.current={x:0,y:0},m.current={x:0,y:0},v()},[t,C,o,v,n,l,JSON.stringify(h),JSON.stringify(p),g,i,I,c,JSON.stringify(f)])}var tN={x:{[xa.Backward]:!1,[xa.Forward]:!1},y:{[xa.Backward]:!1,[xa.Forward]:!1}};function aN(e){let{delta:t,disabled:a}=e,o=oc(t);return du((r)=>{if(a||!o||!r)return tN;let n={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[xa.Backward]:r.x[xa.Backward]||n.x===-1,[xa.Forward]:r.x[xa.Forward]||n.x===1},y:{[xa.Backward]:r.y[xa.Backward]||n.y===-1,[xa.Forward]:r.y[xa.Forward]||n.y===1}}},[a,t,o])}function oN(e,t){let a=t!=null?e.get(t):void 0,o=a?a.node.current:null;return du((r)=>{var n;if(t==null)return null;return(n=o!=null?o:r)!=null?n:null},[o,t])}function rN(e,t){return Le(()=>e.reduce((a,o)=>{let{sensor:r}=o,n=r.activators.map((l)=>({eventName:l.eventName,handler:t(l.handler,o)}));return[...a,...n]},[]),[e,t])}var nc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(nc||(nc={}));var bv;(function(e){e.Optimized="optimized"})(bv||(bv={}));var LT=new Map;function nN(e,t){let{dragging:a,dependencies:o,config:r}=t,[n,l]=J(null),{frequency:s,measure:u,strategy:i}=r,c=z(e),d=L(),f=fu(d),p=dt(function(m){if(m===void 0)m=[];if(f.current)return;l((h)=>{if(h===null)return m;return h.concat(m.filter((x)=>!h.includes(x)))})},[f]),g=z(null),v=du((m)=>{if(d&&!a)return LT;if(!m||m===LT||c.current!==e||n!=null){let h=new Map;for(let x of e){if(!x)continue;if(n&&n.length>0&&!n.includes(x.id)&&x.rect.current){h.set(x.id,x.rect.current);continue}let C=x.node.current,I=C?new hp(u(C),C):null;if(x.rect.current=I,I)h.set(x.id,I)}return h}return m},[e,n,a,d,u]);return ce(()=>{c.current=e},[e]),ce(()=>{if(d)return;p()},[a,d]),ce(()=>{if(n&&n.length>0)l(null)},[JSON.stringify(n)]),ce(()=>{if(d||typeof s!=="number"||g.current!==null)return;g.current=setTimeout(()=>{p(),g.current=null},s)},[s,d,p,...o]),{droppableRects:v,measureDroppableContainers:p,measuringScheduled:n!=null};function L(){switch(i){case nc.Always:return!1;case nc.BeforeDragging:return a;default:return!a}}}function Iv(e,t){return du((a)=>{if(!e)return null;if(a)return a;return typeof t==="function"?t(e):e},[t,e])}function lN(e,t){return Iv(e,t)}function sN(e){let{callback:t,disabled:a}=e,o=tc(t),r=Le(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:n}=window;return new n(o)},[o,a]);return ce(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function Cp(e){let{callback:t,disabled:a}=e,o=tc(t),r=Le(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:n}=window;return new n(o)},[a]);return ce(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function uN(e){return new hp(Vl(e),e)}function ST(e,t,a){if(t===void 0)t=uN;let[o,r]=J(null);function n(){r((u)=>{if(!e)return null;if(e.isConnected===!1){var i;return(i=u!=null?u:a)!=null?i:null}let c=t(e);if(JSON.stringify(u)===JSON.stringify(c))return u;return c})}let l=sN({callback(u){if(!e)return;for(let i of u){let{type:c,target:d}=i;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){n();break}}}}),s=Cp({callback:n});return io(()=>{if(n(),e)s==null||s.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0});else s==null||s.disconnect(),l==null||l.disconnect()},[e]),o}function iN(e){let t=Iv(e);return PT(e,t)}var IT=[];function cN(e){let t=z(e),a=du((o)=>{if(!e)return IT;if(o&&o!==IT&&e&&t.current&&e.parentNode===t.current.parentNode)return o;return lc(e)},[e]);return ce(()=>{t.current=e},[e]),a}function fN(e){let[t,a]=J(null),o=z(e),r=dt((n)=>{let l=gv(n.target);if(!l)return;a((s)=>{if(!s)return null;return s.set(l,Cv(l)),new Map(s)})},[]);return ce(()=>{let n=o.current;if(e!==n){l(n);let s=e.map((u)=>{let i=gv(u);if(i)return i.addEventListener("scroll",r,{passive:!0}),[i,Cv(i)];return null}).filter((u)=>u!=null);a(s.length?new Map(s):null),o.current=e}return()=>{l(e),l(n)};function l(s){s.forEach((u)=>{let i=gv(u);i==null||i.removeEventListener("scroll",r)})}},[r,e]),Le(()=>{if(e.length)return t?Array.from(t.values()).reduce((n,l)=>Hl(n,l),jo):_T(e);return jo},[e,t])}function AT(e,t){if(t===void 0)t=[];let a=z(null);return ce(()=>{a.current=null},t),ce(()=>{let o=e!==jo;if(o&&!a.current)a.current=e;if(!o&&a.current)a.current=null},[e]),a.current?_l(e,a.current):jo}function dN(e){ce(()=>{if(!ec)return;let t=e.map((a)=>{let{sensor:o}=a;return o.setup==null?void 0:o.setup()});return()=>{for(let a of t)a==null||a()}},e.map((t)=>{let{sensor:a}=t;return a}))}function pN(e,t){return Le(()=>e.reduce((a,o)=>{let{eventName:r,handler:n}=o;return a[r]=(l)=>{n(l,t)},a},{}),[e,t])}function XT(e){return Le(()=>e?qP(e):null,[e])}var TT=[];function mN(e,t){if(t===void 0)t=Vl;let[a]=e,o=XT(a?Na(a):null),[r,n]=J(TT);function l(){n(()=>{if(!e.length)return TT;return e.map((u)=>qT(u)?o:new hp(t(u),u))})}let s=Cp({callback:l});return io(()=>{s==null||s.disconnect(),l(),e.forEach((u)=>s==null?void 0:s.observe(u))},[e]),r}function jT(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return cu(t)?t:e}function hN(e){let{measure:t}=e,[a,o]=J(null),r=dt((i)=>{for(let{target:c}of i)if(cu(c)){o((d)=>{let f=t(c);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),n=Cp({callback:r}),l=dt((i)=>{let c=jT(i);if(n==null||n.disconnect(),c)n==null||n.observe(c);o(c?t(c):null)},[t,n]),[s,u]=ac(l);return Le(()=>({nodeRef:s,rect:a,setRef:u}),[a,s,u])}var gN=[{sensor:Sv,options:{}},{sensor:sc,options:{}}],xN={current:{}},fp={draggable:{measure:vT},droppable:{measure:vT,strategy:nc.WhileDragging,frequency:bv.Optimized},dragOverlay:{measure:Vl}};class gu extends Map{get(e){var t;return e!=null?(t=super.get(e))!=null?t:void 0:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e)=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,a;return(t=(a=this.get(e))==null?void 0:a.node.current)!=null?t:void 0}}var vN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new gu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:dp},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:fp,measureDroppableContainers:dp,windowRect:null,measuringScheduled:!1},YT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:dp,draggableNodes:new Map,over:null,measureDroppableContainers:dp},uc=Ue(YT),WT=Ue(vN);function CN(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new gu}}}function yN(e,t){switch(t.type){case da.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case da.DragMove:if(e.draggable.active==null)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case da.DragEnd:case da.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case da.RegisterDroppable:{let{element:a}=t,{id:o}=a,r=new gu(e.droppable.containers);return r.set(o,a),{...e,droppable:{...e.droppable,containers:r}}}case da.SetDroppableDisabled:{let{id:a,key:o,disabled:r}=t,n=e.droppable.containers.get(a);if(!n||o!==n.key)return e;let l=new gu(e.droppable.containers);return l.set(a,{...n,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case da.UnregisterDroppable:{let{id:a,key:o}=t,r=e.droppable.containers.get(a);if(!r||o!==r.key)return e;let n=new gu(e.droppable.containers);return n.delete(a),{...e,droppable:{...e.droppable,containers:n}}}default:return e}}function bN(e){let{disabled:t}=e,{active:a,activatorEvent:o,draggableNodes:r}=Be(uc),n=oc(o),l=oc(a==null?void 0:a.id);return ce(()=>{if(t)return;if(!o&&n&&l!=null){if(!pu(n))return;if(document.activeElement===n.target)return;let s=r.get(l);if(!s)return;let{activatorNode:u,node:i}=s;if(!u.current&&!i.current)return;requestAnimationFrame(()=>{for(let c of[u.current,i.current]){if(!c)continue;let d=dT(c);if(d){d.focus();break}}})}},[o,t,r,l,n]),null}function KT(e,t){let{transform:a,...o}=t;return e!=null&&e.length?e.reduce((r,n)=>n({transform:r,...o}),a):a}function LN(e){return Le(()=>({draggable:{...fp.draggable,...e==null?void 0:e.draggable},droppable:{...fp.droppable,...e==null?void 0:e.droppable},dragOverlay:{...fp.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function SN(e){let{activeNode:t,measure:a,initialRect:o,config:r=!0}=e,n=z(!1),{x:l,y:s}=typeof r==="boolean"?{x:r,y:r}:r;io(()=>{if(!l&&!s||!t){n.current=!1;return}if(n.current||!o)return;let i=t==null?void 0:t.node.current;if(!i||i.isConnected===!1)return;let c=a(i),d=PT(c,o);if(!l)d.x=0;if(!s)d.y=0;if(n.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let f=zT(i);if(f)f.scrollBy({top:d.y,left:d.x})}},[t,l,s,o,a])}var yp=Ue({...jo,scaleX:1,scaleY:1}),Pn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Pn||(Pn={}));var ZT=Lu(function(t){var a,o,r,n;let{id:l,accessibility:s,autoScroll:u=!0,children:i,sensors:c=gN,collisionDetection:d=BP,measuring:f,modifiers:p,...g}=t,v=Ic(yN,void 0,CN),[L,m]=v,[h,x]=wP(),[C,I]=J(Pn.Uninitialized),b=C===Pn.Initialized,{draggable:{active:S,nodes:y,translate:T},droppable:{containers:w}}=L,D=S!=null?y.get(S):null,M=z({initial:null,translated:null}),R=Le(()=>{var vt;return S!=null?{id:S,data:(vt=D==null?void 0:D.data)!=null?vt:xN,rect:M}:null},[S,D]),B=z(null),[H,k]=J(null),[_,le]=J(null),V=fu(g,Object.values(g)),P=ql("DndDescribedBy",l),fe=Le(()=>w.getEnabled(),[w]),Re=LN(f),{droppableRects:Te,measureDroppableContainers:U,measuringScheduled:Y}=nN(fe,{dragging:b,dependencies:[T.x,T.y],config:Re.droppable}),K=oN(y,S),ae=Le(()=>_?mu(_):null,[_]),ue=xt(),ee=lN(K,Re.draggable.measure);SN({activeNode:S!=null?y.get(S):null,config:ue.layoutShiftCompensation,initialRect:ee,measure:Re.draggable.measure});let re=ST(K,Re.draggable.measure,ee),ve=ST(K?K.parentElement:null),ie=z({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:Te,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:w,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Z=w.getNodeFor((a=ie.current.over)==null?void 0:a.id),xe=hN({measure:Re.dragOverlay.measure}),Ie=(o=xe.nodeRef.current)!=null?o:K,Ae=b?(r=xe.rect)!=null?r:re:null,ne=Boolean(xe.nodeRef.current&&xe.rect),ke=iN(ne?null:re),oe=XT(Ie?Na(Ie):null),Se=cN(b?Z!=null?Z:K:null),Pe=mN(Se),Xe=KT(p,{transform:{x:T.x-ke.x,y:T.y-ke.y,scaleX:1,scaleY:1},activatorEvent:_,active:R,activeNodeRect:re,containerNodeRect:ve,draggingNodeRect:Ae,over:ie.current.over,overlayNodeRect:xe.rect,scrollableAncestors:Se,scrollableAncestorRects:Pe,windowRect:oe}),G=ae?Hl(ae,T):null,he=fN(Se),me=AT(he),q=AT(he,[re]),F=Hl(Xe,me),Q=Ae?zP(Ae,Xe):null,N=R&&Q?d({active:R,collisionRect:Q,droppableRects:Te,droppableContainers:fe,pointerCoordinates:G}):null,Bt=Lv(N,"id"),[De,gt]=J(null),be=ne?Xe:Hl(Xe,q),tt=PP(be,(n=De==null?void 0:De.rect)!=null?n:null,re),At=z(null),St=dt((vt,ea)=>{let{sensor:qt,options:Ta}=ea;if(B.current==null)return;let Kt=y.get(B.current);if(!Kt)return;let Nt=vt.nativeEvent,wt=new qt({active:B.current,activeNode:Kt,event:Nt,options:Ta,context:ie,onAbort(zt){if(!y.get(zt))return;let{onDragAbort:_t}=V.current,Bo={id:zt};_t==null||_t(Bo),h({type:"onDragAbort",event:Bo})},onPending(zt,wa,_t,Bo){if(!y.get(zt))return;let{onDragPending:co}=V.current,Vt={id:zt,constraint:wa,initialCoordinates:_t,offset:Bo};co==null||co(Vt),h({type:"onDragPending",event:Vt})},onStart(zt){let wa=B.current;if(wa==null)return;let _t=y.get(wa);if(!_t)return;let{onDragStart:Bo}=V.current,Nn={activatorEvent:Nt,active:{id:wa,data:_t.data,rect:M}};Jl(()=>{Bo==null||Bo(Nn),I(Pn.Initializing),m({type:da.DragStart,initialCoordinates:zt,active:wa}),h({type:"onDragStart",event:Nn}),k(At.current),le(Nt)})},onMove(zt){m({type:da.DragMove,coordinates:zt})},onEnd:Ca(da.DragEnd),onCancel:Ca(da.DragCancel)});At.current=wt;function Ca(zt){return async function(){let{active:_t,collisions:Bo,over:Nn,scrollAdjustedTranslate:co}=ie.current,Vt=null;if(_t&&co){let{cancelDrop:fo}=V.current;if(Vt={activatorEvent:Nt,active:_t,collisions:Bo,delta:co,over:Nn},zt===da.DragEnd&&typeof fo==="function"){if(await Promise.resolve(fo(Vt)))zt=da.DragCancel}}B.current=null,Jl(()=>{m({type:zt}),I(Pn.Uninitialized),gt(null),k(null),le(null),At.current=null;let fo=zt===da.DragEnd?"onDragEnd":"onDragCancel";if(Vt){let vu=V.current[fo];vu==null||vu(Vt),h({type:fo,event:Vt})}})}}},[y]),Pt=dt((vt,ea)=>(qt,Ta)=>{let Kt=qt.nativeEvent,Nt=y.get(Ta);if(B.current!==null||!Nt||Kt.dndKit||Kt.defaultPrevented)return;let wt={active:Nt};if(vt(qt,ea.options,wt)===!0)Kt.dndKit={capturedBy:ea.sensor},B.current=Ta,St(qt,ea)},[y,St]),Tt=rN(c,Pt);dN(c),io(()=>{if(re&&C===Pn.Initializing)I(Pn.Initialized)},[re,C]),ce(()=>{let{onDragMove:vt}=V.current,{active:ea,activatorEvent:qt,collisions:Ta,over:Kt}=ie.current;if(!ea||!qt)return;let Nt={active:ea,activatorEvent:qt,collisions:Ta,delta:{x:F.x,y:F.y},over:Kt};Jl(()=>{vt==null||vt(Nt),h({type:"onDragMove",event:Nt})})},[F.x,F.y]),ce(()=>{let{active:vt,activatorEvent:ea,collisions:qt,droppableContainers:Ta,scrollAdjustedTranslate:Kt}=ie.current;if(!vt||B.current==null||!ea||!Kt)return;let{onDragOver:Nt}=V.current,wt=Ta.get(Bt),Ca=wt&&wt.rect.current?{id:wt.id,rect:wt.rect.current,data:wt.data,disabled:wt.disabled}:null,zt={active:vt,activatorEvent:ea,collisions:qt,delta:{x:Kt.x,y:Kt.y},over:Ca};Jl(()=>{gt(Ca),Nt==null||Nt(zt),h({type:"onDragOver",event:zt})})},[Bt]),io(()=>{ie.current={activatorEvent:_,active:R,activeNode:K,collisionRect:Q,collisions:N,droppableRects:Te,draggableNodes:y,draggingNode:Ie,draggingNodeRect:Ae,droppableContainers:w,over:De,scrollableAncestors:Se,scrollAdjustedTranslate:F},M.current={initial:Ae,translated:Q}},[R,K,N,Q,y,Ie,Ae,Te,w,De,Se,F]),eN({...ue,delta:T,draggingRect:Q,pointerCoordinates:G,scrollableAncestors:Se,scrollableAncestorRects:Pe});let za=Le(()=>({active:R,activeNode:K,activeNodeRect:re,activatorEvent:_,collisions:N,containerNodeRect:ve,dragOverlay:xe,draggableNodes:y,droppableContainers:w,droppableRects:Te,over:De,measureDroppableContainers:U,scrollableAncestors:Se,scrollableAncestorRects:Pe,measuringConfiguration:Re,measuringScheduled:Y,windowRect:oe}),[R,K,re,_,N,ve,xe,y,w,Te,De,U,Se,Pe,Re,Y,oe]),va=Le(()=>({activatorEvent:_,activators:Tt,active:R,activeNodeRect:re,ariaDescribedById:{draggable:P},dispatch:m,draggableNodes:y,over:De,measureDroppableContainers:U}),[_,Tt,R,re,m,P,y,De,U]);return at(DT.Provider,{value:x},at(uc.Provider,{value:va},at(WT.Provider,{value:za},at(yp.Provider,{value:tt},i)),at(bN,{disabled:(s==null?void 0:s.restoreFocus)===!1})),at(kP,{...s,hiddenTextDescribedById:P}));function xt(){let vt=(H==null?void 0:H.autoScrollEnabled)===!1,ea=typeof u==="object"?u.enabled===!1:u===!1,qt=b&&!vt&&!ea;if(typeof u==="object")return{...u,enabled:qt};return{enabled:qt}}}),IN=Ue(null),wT="button",AN="Draggable";function QT(e){let{id:t,data:a,disabled:o=!1,attributes:r}=e,n=ql(AN),{activators:l,activatorEvent:s,active:u,activeNodeRect:i,ariaDescribedById:c,draggableNodes:d,over:f}=Be(uc),{role:p=wT,roleDescription:g="draggable",tabIndex:v=0}=r!=null?r:{},L=(u==null?void 0:u.id)===t,m=Be(L?yp:IN),[h,x]=ac(),[C,I]=ac(),b=pN(l,t),S=fu(a);io(()=>(d.set(t,{id:t,key:n,node:h,activatorNode:C,data:S}),()=>{let T=d.get(t);if(T&&T.key===n)d.delete(t)}),[d,t]);let y=Le(()=>({role:p,tabIndex:v,"aria-disabled":o,"aria-pressed":L&&p===wT?!0:void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[o,p,v,L,g,c.draggable]);return{active:u,activatorEvent:s,activeNodeRect:i,attributes:y,isDragging:L,listeners:o?void 0:b,node:h,over:f,setNodeRef:x,setActivatorNodeRef:I,transform:m}}function Av(){return Be(WT)}var TN="Droppable",wN={timeout:25};function JT(e){let{data:t,disabled:a=!1,id:o,resizeObserverConfig:r}=e,n=ql(TN),{active:l,dispatch:s,over:u,measureDroppableContainers:i}=Be(uc),c=z({disabled:a}),d=z(!1),f=z(null),p=z(null),{disabled:g,updateMeasurementsFor:v,timeout:L}={...wN,...r},m=fu(v!=null?v:o),h=dt(()=>{if(!d.current){d.current=!0;return}if(p.current!=null)clearTimeout(p.current);p.current=setTimeout(()=>{i(Array.isArray(m.current)?m.current:[m.current]),p.current=null},L)},[L]),x=Cp({callback:h,disabled:g||!l}),C=dt((y,T)=>{if(!x)return;if(T)x.unobserve(T),d.current=!1;if(y)x.observe(y)},[x]),[I,b]=ac(C),S=fu(t);return ce(()=>{if(!x||!I.current)return;x.disconnect(),d.current=!1,x.observe(I.current)},[I,x]),ce(()=>(s({type:da.RegisterDroppable,element:{id:o,key:n,disabled:a,node:I,rect:f,data:S}}),()=>s({type:da.UnregisterDroppable,key:n,id:o})),[o]),ce(()=>{if(a!==c.current.disabled)s({type:da.SetDroppableDisabled,id:o,key:n,disabled:a}),c.current.disabled=a},[o,n,a,s]),{active:l,rect:f,isOver:(u==null?void 0:u.id)===o,node:I,over:u,setNodeRef:b}}function RN(e){let{animation:t,children:a}=e,[o,r]=J(null),[n,l]=J(null),s=oc(a);if(!a&&!o&&s)r(s);return io(()=>{if(!n)return;let u=o==null?void 0:o.key,i=o==null?void 0:o.props.id;if(u==null||i==null){r(null);return}Promise.resolve(t(i,n)).then(()=>{r(null)})},[t,o,n]),at(ya,null,a,o?Yl(o,{ref:l}):null)}var DN={x:0,y:0,scaleX:1,scaleY:1};function kN(e){let{children:t}=e;return at(uc.Provider,{value:YT},at(yp.Provider,{value:DN},t))}var EN={position:"fixed",touchAction:"none"},MN=(e)=>pu(e)?"transform 250ms ease":void 0,ON=Ce((e,t)=>{let{as:a,activatorEvent:o,adjustScale:r,children:n,className:l,rect:s,style:u,transform:i,transition:c=MN}=e;if(!s)return null;let d=r?i:{...i,scaleX:1,scaleY:1},f={...EN,width:s.width,height:s.height,top:s.top,left:s.left,transform:Xo.Transform.toString(d),transformOrigin:r&&o?EP(o,s):void 0,transition:typeof c==="function"?c(o):c,...u};return at(a,{className:l,style:f,ref:t},n)}),BN=(e)=>(t)=>{let{active:a,dragOverlay:o}=t,r={},{styles:n,className:l}=e;if(n!=null&&n.active)for(let[s,u]of Object.entries(n.active)){if(u===void 0)continue;r[s]=a.node.style.getPropertyValue(s),a.node.style.setProperty(s,u)}if(n!=null&&n.dragOverlay)for(let[s,u]of Object.entries(n.dragOverlay)){if(u===void 0)continue;o.node.style.setProperty(s,u)}if(l!=null&&l.active)a.node.classList.add(l.active);if(l!=null&&l.dragOverlay)o.node.classList.add(l.dragOverlay);return function(){for(let[u,i]of Object.entries(r))a.node.style.setProperty(u,i);if(l!=null&&l.active)a.node.classList.remove(l.active)}},PN=(e)=>{let{transform:{initial:t,final:a}}=e;return[{transform:Xo.Transform.toString(t)},{transform:Xo.Transform.toString(a)}]},NN={duration:250,easing:"ease",keyframes:PN,sideEffects:BN({styles:{active:{opacity:"0"}}})};function zN(e){let{config:t,draggableNodes:a,droppableContainers:o,measuringConfiguration:r}=e;return tc((n,l)=>{if(t===null)return;let s=a.get(n);if(!s)return;let u=s.node.current;if(!u)return;let i=jT(l);if(!i)return;let{transform:c}=Na(l).getComputedStyle(l),d=NT(c);if(!d)return;let f=typeof t==="function"?t:FN(t);return VT(u,r.draggable.measure),f({active:{id:n,data:s.data,node:u,rect:r.draggable.measure(u)},draggableNodes:a,dragOverlay:{node:l,rect:r.dragOverlay.measure(i)},droppableContainers:o,measuringConfiguration:r,transform:d})})}function FN(e){let{duration:t,easing:a,sideEffects:o,keyframes:r}={...NN,...e};return(n)=>{let{active:l,dragOverlay:s,transform:u,...i}=n;if(!t)return;let c={x:s.rect.left-l.rect.left,y:s.rect.top-l.rect.top},d={scaleX:u.scaleX!==1?l.rect.width*u.scaleX/s.rect.width:1,scaleY:u.scaleY!==1?l.rect.height*u.scaleY/s.rect.height:1},f={x:u.x-c.x,y:u.y-c.y,...d},p=r({...i,active:l,dragOverlay:s,transform:{initial:u,final:f}}),[g]=p,v=p[p.length-1];if(JSON.stringify(g)===JSON.stringify(v))return;let L=o==null?void 0:o({active:l,dragOverlay:s,...i}),m=s.node.animate(p,{duration:t,easing:a,fill:"forwards"});return new Promise((h)=>{m.onfinish=()=>{L==null||L(),h()}})}}var RT=0;function UN(e){return Le(()=>{if(e==null)return;return RT++,RT},[e])}var $T=Lu((e)=>{let{adjustScale:t=!1,children:a,dropAnimation:o,style:r,transition:n,modifiers:l,wrapperElement:s="div",className:u,zIndex:i=999}=e,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:p,draggableNodes:g,droppableContainers:v,dragOverlay:L,over:m,measuringConfiguration:h,scrollableAncestors:x,scrollableAncestorRects:C,windowRect:I}=Av(),b=Be(yp),S=UN(d==null?void 0:d.id),y=KT(l,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:L.rect,over:m,overlayNodeRect:L.rect,scrollableAncestors:x,scrollableAncestorRects:C,transform:b,windowRect:I}),T=Iv(f),w=zN({config:o,draggableNodes:g,droppableContainers:v,measuringConfiguration:h}),D=T?L.setRef:void 0;return at(kN,null,at(RN,{animation:w},d&&S?at(ON,{key:S,id:d.id,ref:D,as:s,activatorEvent:c,adjustScale:t,className:u,transition:n,rect:T,style:{zIndex:i,...r},transform:y},a):null))});function qN(e,t,a){let o={...e};if(t.top+e.y<=a.top)o.y=a.top-t.top;else if(t.bottom+e.y>=a.top+a.height)o.y=a.top+a.height-t.bottom;if(t.left+e.x<=a.left)o.x=a.left-t.left;else if(t.right+e.x>=a.left+a.width)o.x=a.left+a.width-t.right;return o}var ew=(e)=>{let{containerNodeRect:t,draggingNodeRect:a,transform:o}=e;if(!a||!t)return o;return qN(o,a,t)};var tw=(e)=>{let{transform:t}=e;return{...t,x:0}};W();function Ip(e,t,a){let o=e.slice();return o.splice(a<0?o.length+a:a,0,o.splice(t,1)[0]),o}function HN(e,t){return e.reduce((a,o,r)=>{let n=t.get(o);if(n)a[r]=n;return a},Array(e.length))}function bp(e){return e!==null&&e>=0}function _N(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function VN(e){if(typeof e==="boolean")return{draggable:e,droppable:e};return e}var aw=(e)=>{let{rects:t,activeIndex:a,overIndex:o,index:r}=e,n=Ip(t,o,a),l=t[r],s=n[r];if(!s||!l)return null;return{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}};var Lp={scaleX:1,scaleY:1},ow=(e)=>{var t;let{activeIndex:a,activeNodeRect:o,index:r,rects:n,overIndex:l}=e,s=(t=n[a])!=null?t:o;if(!s)return null;if(r===a){let i=n[l];if(!i)return null;return{x:0,y:a<l?i.top+i.height-(s.top+s.height):i.top-s.top,...Lp}}let u=GN(n,r,a);if(r>a&&r<=l)return{x:0,y:-s.height-u,...Lp};if(r<a&&r>=l)return{x:0,y:s.height+u,...Lp};return{x:0,y:0,...Lp}};function GN(e,t,a){let o=e[t],r=e[t-1],n=e[t+1];if(!o)return 0;if(a<t)return r?o.top-(r.top+r.height):n?n.top-(o.top+o.height):0;return n?n.top-(o.top+o.height):r?o.top-(r.top+r.height):0}var rw="Sortable",nw=Ue({activeIndex:-1,containerId:rw,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:aw,disabled:{draggable:!1,droppable:!1}});function lw(e){let{children:t,id:a,items:o,strategy:r=aw,disabled:n=!1}=e,{active:l,dragOverlay:s,droppableRects:u,over:i,measureDroppableContainers:c}=Av(),d=ql(rw,a),f=Boolean(s.rect!==null),p=Le(()=>o.map((b)=>typeof b==="object"&&("id"in b)?b.id:b),[o]),g=l!=null,v=l?p.indexOf(l.id):-1,L=i?p.indexOf(i.id):-1,m=z(p),h=!_N(p,m.current),x=L!==-1&&v===-1||h,C=VN(n);io(()=>{if(h&&g)c(p)},[h,p,g,c]),ce(()=>{m.current=p},[p]);let I=Le(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:x,items:p,overIndex:L,useDragOverlay:f,sortedRects:HN(p,u),strategy:r}),[v,d,C.draggable,C.droppable,x,p,L,u,f,r]);return at(nw.Provider,{value:I},t)}var XN=(e)=>{let{id:t,items:a,activeIndex:o,overIndex:r}=e;return Ip(a,o,r).indexOf(t)},jN=(e)=>{let{containerId:t,isSorting:a,wasDragging:o,index:r,items:n,newIndex:l,previousItems:s,previousContainerId:u,transition:i}=e;if(!i||!o)return!1;if(s!==n&&r===l)return!1;if(a)return!0;return l!==r&&t===u},YN={duration:200,easing:"ease"},sw="transform",WN=Xo.Transition.toString({property:sw,duration:0,easing:"linear"}),KN={roleDescription:"sortable"};function ZN(e){let{disabled:t,index:a,node:o,rect:r}=e,[n,l]=J(null),s=z(a);return io(()=>{if(!t&&a!==s.current&&o.current){let u=r.current;if(u){let i=Vl(o.current,{ignoreTransform:!0}),c={x:u.left-i.left,y:u.top-i.top,scaleX:u.width/i.width,scaleY:u.height/i.height};if(c.x||c.y)l(c)}}if(a!==s.current)s.current=a},[t,a,o,r]),ce(()=>{if(n)l(null)},[n]),n}function uw(e){let{animateLayoutChanges:t=jN,attributes:a,disabled:o,data:r,getNewIndex:n=XN,id:l,strategy:s,resizeObserverConfig:u,transition:i=YN}=e,{items:c,containerId:d,activeIndex:f,disabled:p,disableTransforms:g,sortedRects:v,overIndex:L,useDragOverlay:m,strategy:h}=Be(nw),x=QN(o,p),C=c.indexOf(l),I=Le(()=>({sortable:{containerId:d,index:C,items:c},...r}),[d,r,C,c]),b=Le(()=>c.slice(c.indexOf(l)),[c,l]),{rect:S,node:y,isOver:T,setNodeRef:w}=JT({id:l,data:I,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:b,...u}}),{active:D,activatorEvent:M,activeNodeRect:R,attributes:B,setNodeRef:H,listeners:k,isDragging:_,over:le,setActivatorNodeRef:V,transform:P}=QT({id:l,data:I,attributes:{...KN,...a},disabled:x.draggable}),fe=iT(w,H),Re=Boolean(D),Te=Re&&!g&&bp(f)&&bp(L),U=!m&&_,Y=U&&Te?P:null,K=s!=null?s:h,ae=Te?Y!=null?Y:K({rects:v,activeNodeRect:R,activeIndex:f,overIndex:L,index:C}):null,ue=bp(f)&&bp(L)?n({id:l,items:c,activeIndex:f,overIndex:L}):C,ee=D==null?void 0:D.id,re=z({activeId:ee,items:c,newIndex:ue,containerId:d}),ve=c!==re.current.items,ie=t({active:D,containerId:d,isDragging:_,isSorting:Re,id:l,index:C,items:c,newIndex:re.current.newIndex,previousItems:re.current.items,previousContainerId:re.current.containerId,transition:i,wasDragging:re.current.activeId!=null}),Z=ZN({disabled:!ie,index:C,node:y,rect:S});return ce(()=>{if(Re&&re.current.newIndex!==ue)re.current.newIndex=ue;if(d!==re.current.containerId)re.current.containerId=d;if(c!==re.current.items)re.current.items=c},[Re,ue,d,c]),ce(()=>{if(ee===re.current.activeId)return;if(ee!=null&&re.current.activeId==null){re.current.activeId=ee;return}let Ie=setTimeout(()=>{re.current.activeId=ee},50);return()=>clearTimeout(Ie)},[ee]),{active:D,activeIndex:f,attributes:B,data:I,rect:S,index:C,newIndex:ue,items:c,isOver:T,isSorting:Re,isDragging:_,listeners:k,node:y,overIndex:L,over:le,setNodeRef:fe,setActivatorNodeRef:V,setDroppableNodeRef:w,setDraggableNodeRef:H,transform:Z!=null?Z:ae,transition:xe()};function xe(){if(Z||ve&&re.current.newIndex===C)return WN;if(U&&!pu(M)||!i)return;if(Re||ie)return Xo.Transition.toString({...i,property:sw});return}}function QN(e,t){var a,o;if(typeof e==="boolean")return{draggable:e,droppable:!1};return{draggable:(a=e==null?void 0:e.draggable)!=null?a:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}function Sp(e){if(!e)return!1;let t=e.data.current;if(t&&"sortable"in t&&typeof t.sortable==="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)return!0;return!1}var JN=[Je.Down,Je.Right,Je.Up,Je.Left],iw=(e,t)=>{let{context:{active:a,collisionRect:o,droppableRects:r,droppableContainers:n,over:l,scrollableAncestors:s}}=t;if(JN.includes(e.code)){if(e.preventDefault(),!a||!o)return;let u=[];n.getEnabled().forEach((d)=>{if(!d||d!=null&&d.disabled)return;let f=r.get(d.id);if(!f)return;switch(e.code){case Je.Down:if(o.top<f.top)u.push(d);break;case Je.Up:if(o.top>f.top)u.push(d);break;case Je.Left:if(o.left>f.left)u.push(d);break;case Je.Right:if(o.left<f.left)u.push(d);break}});let i=BT({active:a,collisionRect:o,droppableRects:r,droppableContainers:u,pointerCoordinates:null}),c=Lv(i,"id");if(c===(l==null?void 0:l.id)&&i.length>1)c=i[1].id;if(c!=null){let d=n.get(a.id),f=n.get(c),p=f?r.get(f.id):null,g=f==null?void 0:f.node.current;if(g&&p&&d&&f){let L=lc(g).some((b,S)=>s[S]!==b),m=cw(d,f),h=$N(d,f),x=L||!m?{x:0,y:0}:{x:h?o.width-p.width:0,y:h?o.height-p.height:0},C={x:p.left,y:p.top};return x.x&&x.y?C:_l(C,x)}}}return};function cw(e,t){if(!Sp(e)||!Sp(t))return!1;return e.data.current.sortable.containerId===t.data.current.sortable.containerId}function $N(e,t){if(!Sp(e)||!Sp(t))return!1;if(!cw(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}W();function fw({className:e,...t}){return A("div",{"data-slot":"empty",className:we("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...t})}function dw({className:e,...t}){return A("div",{"data-slot":"empty-header",className:we("flex max-w-sm flex-col items-center gap-2",e),...t})}var ez=kr("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*=\'size-\'])]:size-4"}},defaultVariants:{variant:"default"}});function pw({className:e,variant:t="default",...a}){return A("div",{"data-slot":"empty-icon","data-variant":t,className:we(ez({variant:t,className:e})),...a})}function mw({className:e,...t}){return A("div",{"data-slot":"empty-title",className:we("text-sm font-medium tracking-tight",e),...t})}function hw({className:e,...t}){return A("div",{"data-slot":"empty-description",className:we("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}W();W();var gw="data-valid",xw="data-invalid";var vw={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},az={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Cw={disabled:!1,...az},yw={valid(e){if(e===null)return null;if(e)return{[gw]:""};return{[xw]:""}}};var oz={invalid:void 0,name:void 0,validityData:{state:vw,errors:[],error:"",value:"",initialValue:null},setValidityData:Mt,disabled:void 0,setTouched:Mt,setDirty:Mt,setFilled:Mt,setFocused:Mt,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Cw,registerFieldControl:Mt,validation:{getValidationProps:(e,t=na)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Mt,getInputControl:()=>null,commit:async()=>{},change:Mt}},rz=Ue(oz);function Ap(e=!0){let t=Be(rz);if(t.setValidityData===Mt&&!e)throw Error(ka(28));return t}W();var nz=Ue({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Mt,validationMode:"onSubmit",submitCountRef:{current:0}});function bw(){return Be(nz)}W();var lz=Ue({controlId:void 0,registerControlId:Mt,resetControlId:Mt,labelId:void 0,setLabelId:Mt,messageIds:[],setMessageIds:Mt,getDescriptionProps:(e)=>e});function Tp(){return Be(lz)}W();W();function Lw({controlled:e,default:t,name:a,state:o="value"}){let{current:r}=z(e!==void 0),[n,l]=J(t),s=r&&e!==void 0?e:n,u=dt((i)=>{if(!r)l(i)},[]);return[s,u]}function Sw(e,t,a,o,r=!0,n){let{registerFieldControl:l}=Ap(),s=Jt(()=>Symbol());ye(()=>{let u=s.current;if(!r){l(u,void 0);return}l(u,{controlRef:e,getValue:o,id:t,name:n,value:a})},[e,r,o,t,n,l,s,a]),ye(()=>{let u=s.current;return()=>{l(u,void 0)}},[l,s])}W();function Iw(e={}){let{id:t,enabled:a=!0}=e,{controlId:o,registerControlId:r,resetControlId:n}=Tp(),l=Qs(),s=Jt(()=>Symbol()),u=z(!1),i=z(!1),c=Qe(()=>{if(!u.current||r===Mt)return;u.current=!1,r(s.current,void 0)});return ye(()=>{if(!a||r===Mt){c();return}let d;if(t!==void 0)i.current=!0,d=t;else if(i.current)d=l;else{n();return}if(d===void 0){c();return}u.current=!0,r(s.current,d);return},[t,a,r,n,l,s,c]),ye(()=>c,[c]),(a?o:void 0)??t??l}var Aw=Ce(function(t,a){let{render:o,className:r,id:n,name:l,value:s,disabled:u=!1,onValueChange:i,defaultValue:c,autoFocus:d=!1,style:f,...p}=t,{state:g,name:v,disabled:L,setTouched:m,setDirty:h,validityData:x,setFocused:C,setFilled:I,validationMode:b,validation:S}=Ap(),{clearErrors:y,elementRef:T,submitCountRef:w}=bw(),D=L||u,M=v??l,R={...g,disabled:D},{labelId:B}=Tp(),H=Iw({id:n}),[k]=Lw({controlled:s,default:c,name:"FieldControl",state:"value"}),_=s!==void 0,le=_?k:void 0,V=le==null?void 0:String(le),P=Qe(()=>S.inputRef.current?.value);Sw(S.inputRef,H,V,P,!D,l),ye(()=>{let U=V??S.inputRef.current?.value;if(U!==void 0)I(U!=="")},[V,S.inputRef,I]),eA(V,()=>{if(V===void 0)return;y(M),h(V!==(x.initialValue??"")),S.change(V)});let fe=z(null),Re=ar();return ye(()=>{if(d&&fe.current===jt(et(fe.current)))C(!0)},[d,C]),Ge("input",t,{ref:[a,fe],state:R,props:[{id:H,disabled:D,name:M,ref:S.inputRef,"aria-labelledby":B,autoFocus:d,..._?{value:le}:{defaultValue:c},onChange(U){let Y=U.currentTarget.value,K=Ma(nI,U.nativeEvent);if(i?.(Y,K),_)return;if(h(Y!==(x.initialValue??"")),I(Y!==""),!U.nativeEvent.defaultPrevented&&!K.isCanceled)y(M),S.change(Y)},onFocus(){C(!0)},onBlur(U){if(m(!0),C(!1),b==="onBlur"){let Y=U.currentTarget.value;if(S.commit(Y),_)queueMicrotask(()=>{let K=S.inputRef.current?.value;if(K!==void 0&&K!==Y&&K!==(x.initialValue??""))S.commit(K)})}},onKeyDown(U){if(U.currentTarget.tagName==="INPUT"&&U.key==="Enter"){m(!0);let Y=U.currentTarget.value,K=U.currentTarget.form;if(K&&K===T.current&&!U.defaultPrevented){let ae=U.currentTarget,ue=w.current;Re.start(0,()=>{if(w.current===ue)S.commit(ae.value)})}else S.commit(Y)}}},p,(U)=>S.getValidationProps(D,U)],stateAttributesMapping:yw})});var Tv=Ce(function(t,a){return A(Aw,{ref:a,...t})});function ww({className:e,type:t,...a}){return A(Tv,{type:t,"data-slot":"input",className:we("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}function Rw({className:e,...t}){return A("textarea",{"data-slot":"textarea",className:we("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}function xu({className:e,...t}){return A("div",{"data-slot":"input-group",role:"group",className:we("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}var sz=kr("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=\'size-\'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function wp({className:e,align:t="inline-start",...a}){return A("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:we(sz({align:t}),e),onClick:(o)=>{if(o.target.closest("button"))return;o.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var uz=kr("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*=\'size-\'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Rp({className:e,type:t="button",variant:a="ghost",size:o="xs",...r}){return A(Ua,{type:t,"data-size":o,variant:a,className:we(uz({size:o}),e),...r})}function Dp({className:e,...t}){return A(ww,{"data-slot":"input-group-control",className:we("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function wv({className:e,...t}){return A(Rw,{"data-slot":"input-group-control",className:we("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function Dw(e){let t=Math.floor((Date.now()-Date.parse(e))/60000);if(t<60)return`${t}m`;if(t<1440)return`${Math.floor(t/60)}h`;return`${Math.floor(t/1440)}d`}class Rv extends Error{reason;constructor(e,t){super(t);this.reason=e}}async function kp(e,t){let a=await fetch(e,{method:"POST",...t}),o=await a.json().catch(()=>({}));if(!a.ok)throw new Rv(o.reason??"error",o.message??`${e}: ${a.status}`);return o}async function kw({subject:e,text:t,position:a},o){let r=Pw({files:o,keep:[]});Bw(r,{subject:e,text:t,position:a}),await kp("/api/todos",{body:r})}async function Ew(e,{subject:t,text:a,position:o,tags:r,files:n,keep:l}){let s=Pw({files:n,keep:l});Bw(s,{subject:t,text:a,position:o,tags:r}),await kp(`/api/todos/${e}`,{method:"PATCH",body:s})}async function Mw(e,t){await kp(`/api/todos/${e}/position`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({position:t})})}async function Ow(e){await kp(`/api/todos/${e}`,{method:"DELETE"})}function Dv(e){return`/api/file?${new URLSearchParams({path:e})}`}function Bw(e,{subject:t,text:a,position:o,tags:r}){if(e.set("subject",t),e.set("text",a),o!==void 0)e.set("position",String(o));if(r!==void 0)e.set("tags",r.join(","))}function Pw({files:e,keep:t}){let a=new FormData;for(let o of e)a.append("file",o,o.name);for(let o of t)a.append("keep",o);return a}async function Nw(e=""){let t=await fetch(`/api/paths?${new URLSearchParams({task:e})}`);if(!t.ok)throw new Rv("error",`/api/paths: ${t.status}`);return await t.json()}W();var iz=/\\.(png|jpe?g|gif|webp|svg)$/i;function kv(e=[]){let[t,a]=J([]),[o,r]=J(e),n=(s)=>{let u=[...s];if(u.length>0)a((i)=>[...i,...u])};return{files:t,keep:o,add:n,paste:(s)=>{let u=[...s.clipboardData.files];if(u.length>0)s.preventDefault(),n(u)},drop:(s)=>a((u)=>u.filter((i,c)=>c!==s)),unkeep:(s)=>r((u)=>u.filter((i)=>i!==s)),clear:()=>{a([]),r([])},any:t.length>0||o.length>0}}function Ev({files:e}){let t=z(null);return j(hl,{children:[A(Rp,{"aria-label":"attach files",size:"icon-xs",variant:"ghost",onClick:()=>t.current?.click(),children:A(Al,{})}),A("input",{ref:t,type:"file",multiple:!0,hidden:!0,onChange:(a)=>{e.add(a.target.files??[]),a.target.value=""}})]})}function Mv({files:e}){if(!e.any)return null;return j("div",{className:"flex flex-wrap gap-2",children:[e.keep.map((t)=>A(zw,{name:dz(t),src:iz.test(t)?Dv(t):void 0,href:Dv(t),onRemove:()=>e.unkeep(t)},t)),e.files.map((t,a)=>A(cz,{file:t,onRemove:()=>e.drop(a)},`${t.name}-${t.size}-${t.lastModified}`))]})}function cz({file:e,onRemove:t}){let a=e.type.startsWith("image/"),[o,r]=J();return ce(()=>{if(!a)return;let n=URL.createObjectURL(e);return r(n),()=>URL.revokeObjectURL(n)},[e,a]),A(zw,{name:e.name,src:a?o:void 0,onRemove:t})}function zw({name:e,src:t,href:a,onRemove:o}){let r=t===void 0?j("div",{className:"flex h-16 max-w-40 items-center gap-2 rounded-md border px-3 text-xs",children:[A(Il,{className:"size-4 shrink-0 text-muted-foreground"}),A("span",{className:"truncate",children:e})]}):A("img",{src:t,alt:e,className:"size-16 rounded-md border object-cover"});return j("div",{className:"relative",children:[a===void 0?r:A("a",{href:a,target:"_blank",rel:"noreferrer",children:r}),o&&A(Ua,{"aria-label":`remove ${e}`,variant:"secondary",size:"icon-xs",className:"absolute -top-2 -right-2 rounded-full",onClick:o,children:A(Dr,{})})]})}var fz=/^([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|\\d+)-/i;function dz(e){return(e.split("/").at(-1)??e).replace(fz,"")}W();var Ov=8,Bv=32;function ic({task:e,text:t,setText:a}){let o=z(null),[r,n]=J([]),[l,s]=J(0),[u,i]=J(0),[c,d]=J(null),[f,p]=J({below:!1,room:Ov*Bv});ce(()=>{let b=!0;return Nw(e).then((S)=>b&&n(S),()=>{return}),()=>{b=!1}},[e]);let g=mz(t,l),v=g===null||g.start===c?[]:hz(r,g.query).slice(0,Ov),L=v.length>0,m=Math.min(u,v.length-1),h=L&&g!==null,x=g?.start;ce(()=>{if(!h||o.current===null)return;let b=o.current.getBoundingClientRect(),S=o.current.closest("[data-slot=dialog-content]")?.getBoundingClientRect()??{top:0,bottom:innerHeight},y=b.top-S.top,T=Math.min(S.bottom,innerHeight)-b.bottom,w=Ov*Bv+10,D=y<w&&T>y;p({below:D,room:Math.min(w,(D?T:y)-8)}),i(0)},[h]);let C=()=>s(o.current?.selectionStart??0),I=(b)=>{if(g===null)return;let S=g.start+1+g.query.length,y=`@${b}${b.endsWith("/")?"":" "}`,T=t.slice(0,g.start)+y+t.slice(S),w=g.start+y.length;a(T),s(w),requestAnimationFrame(()=>{o.current?.focus(),o.current?.setSelectionRange(w,w)})};return{ref:o,onChange:(b)=>{a(b.target.value),s(b.target.selectionStart??b.target.value.length)},onSelect:C,onClick:C,onKeyDown:(b)=>{if(!L)return!1;let S={ArrowDown:1,ArrowUp:-1}[b.key];if(S!==void 0)i((m+S+v.length)%v.length);else if(b.key==="Enter"||b.key==="Tab")I(v[m]??"");else if(b.key==="Escape")d(g?.start??null);else return!1;return b.preventDefault(),b.stopPropagation(),!0},menu:L?A(pz,{matches:v,active:m,place:f,onPick:I,onHover:i}):null}}function pz({matches:e,active:t,place:a,onPick:o,onHover:r}){return A("div",{role:"listbox","aria-label":"files",style:{maxHeight:a.room},className:we("absolute inset-x-0 z-50 overflow-y-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-md",a.below?"top-full mt-1":"bottom-full mb-1"),children:e.map((n,l)=>{let u=n.endsWith("/")?Hi:Il,[i,c]=Fw(n);return j("div",{role:"option",tabIndex:-1,"aria-selected":l===t,onMouseDown:(d)=>{d.preventDefault(),o(n)},onMouseEnter:()=>r(l),ref:(d)=>{if(l===t)d?.scrollIntoView({block:"nearest"})},style:{height:Bv},className:we("flex cursor-default items-center gap-2 rounded-md px-2 text-sm",l===t&&"bg-muted"),children:[A(u,{className:"size-4 shrink-0 text-muted-foreground"}),A("span",{className:"truncate",children:c}),A("span",{className:"shrink-1000 truncate text-muted-foreground text-xs",children:i})]},n)})})}function mz(e,t){let a=/(^|\\s)@([^\\s@]*)$/.exec(e.slice(0,t));if(a===null)return null;let o=a[2]??"";return{start:t-o.length-1,query:o}}function hz(e,t){let a=t.toLowerCase(),o=[];for(let r of e){let n=r.toLowerCase();if(n===a)continue;let[,l]=Fw(n),s=l.startsWith(a.split("/").at(-1)??"")&&n.includes(a)?0:n.includes(a)?1:gz(n,a)?2:null;if(s!==null)o.push({path:r,score:s,depth:r.replace(/\\/$/,"").split("/").length})}return o.sort((r,n)=>r.score-n.score||r.depth-n.depth||Number(!r.path.endsWith("/"))-Number(!n.path.endsWith("/"))||r.path.localeCompare(n.path)).map(({path:r})=>r)}function Fw(e){let t=e.endsWith("/")?e.slice(0,-1):e,a=t.lastIndexOf("/");return[t.slice(0,a+1),t.slice(a+1)+(e.endsWith("/")?"/":"")]}function gz(e,t){let a=0;for(let o of t)if(a=e.indexOf(o,a)+1,a===0)return!1;return!0}function cc({mentions:e,children:t}){return j("div",{className:"relative",children:[t,e.menu]})}function Uw({tags:e,selected:t,onSelect:a}){let o=(r,n)=>j("button",{type:"button","aria-pressed":t===n,onClick:()=>a(n),className:we("inline-flex cursor-pointer items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring",t===n?"border-primary bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[n!==null&&A(Sn,{"aria-hidden":!0,className:"size-3"}),r]},r);return j("fieldset",{"aria-label":"filter by tag",className:"m-0 flex flex-wrap gap-1.5 border-0 p-0",children:[o("All",null),e.map((r)=>o(r,r))]})}function _w({snapshot:e}){let{todoStalenessMs:t,tasks:a}=e,[o,r]=J(null),n=[...new Set(e.todos.flatMap((v)=>v.tags))].sort(),l=o!==null&&n.includes(o)?o:null,s=e.todos.filter((v)=>l===null||v.tags.includes(l)),[u,i]=J(null),c=s.find((v)=>v.id===u),[d,f]=J(null),p=a.find((v)=>v.task===d);return A(Gw,{value:(v)=>a.some((L)=>L.task===v)?f(v):null,children:A(Vw,{value:r,children:j("div",{className:"flex flex-col gap-6",children:[A(bz,{}),n.length>0&&A(Uw,{tags:n,selected:l,onSelect:r}),s.length===0?A(fw,{children:j(dw,{children:[A(pw,{variant:"icon",children:A(ji,{})}),A(mw,{children:"Nothing deferred"}),A(hw,{children:"Agents add what comes up outside their task here."})]})}):A(xz,{todos:s,staleness:t,onOpen:i}),A(Wi,{open:c!==void 0,onOpenChange:(v)=>{if(!v)i(null)},children:c&&A(Lz,{todo:c,onDone:()=>i(null)})}),A(Wi,{open:p!==void 0,onOpenChange:(v)=>{if(!v)f(null)},children:p&&A(pv,{task:p})})]})})})}var Vw=Ue(()=>{}),Gw=Ue(()=>{});function xz({todos:e,staleness:t,onOpen:a}){let[o,r]=J(null),[n,l]=J(null);ce(()=>r(null),[e]);let s=kT(mp(xp,{activationConstraint:{distance:4}}),mp(vp,{activationConstraint:{delay:200,tolerance:6}}),mp(sc,{coordinateGetter:iw})),u=o??e.map((f)=>f.id),i=u.flatMap((f)=>e.filter((p)=>p.id===f)),c=e.find((f)=>f.id===n);return j(ZT,{sensors:s,collisionDetection:OT,modifiers:[tw,ew],onDragStart:({active:f})=>l(Number(f.id)),onDragCancel:()=>l(null),onDragEnd:({active:f,over:p})=>{if(l(null),p===null||f.id===p.id)return;let g=u.indexOf(Number(p.id));r(Ip(u,u.indexOf(Number(f.id)),g));let v=e.find((L)=>L.id===Number(p.id))?.position??g+1;Mw(Number(f.id),v).catch((L)=>{r(null),Rl.add({title:"Not moved",description:L instanceof Error?L.message:String(L),type:"error"})})},children:[A(lw,{items:u,strategy:ow,children:A("ul",{"aria-label":"todos",className:"flex flex-col gap-2",children:i.map((f)=>A(vz,{todo:f,staleness:t,onOpen:()=>a(f.id)},f.id))})}),A($T,{children:c&&A(Xw,{todo:c,staleness:t,className:"rotate-2 cursor-grabbing shadow-lg"})})]})}function vz({todo:e,staleness:t,onOpen:a}){let{attributes:o,listeners:r,setNodeRef:n,setActivatorNodeRef:l,transform:s,transition:u,isDragging:i}=uw({id:e.id});return A("li",{ref:n,style:{transform:Xo.Translate.toString(s),transition:u},children:A(Xw,{todo:e,staleness:t,onOpen:a,pointer:{onMouseDown:r?.onMouseDown,onTouchStart:r?.onTouchStart},grip:{...o,onKeyDown:r?.onKeyDown,ref:l},className:we(i&&"border-dashed bg-muted shadow-none *:invisible hover:shadow-none")})})}function Xw({todo:e,staleness:t,onOpen:a,pointer:o,grip:r,className:n}){let l=e.takenBy===null&&Date.now()-Date.parse(e.createdAt)>t;return j("div",{...o,className:we("group relative flex cursor-pointer touch-manipulation items-stretch rounded-lg border bg-card text-card-foreground shadow-xs transition-[background-color,border-color,box-shadow] select-none hover:border-foreground/25 hover:bg-muted/70 hover:shadow-sm",e.takenBy&&"border-l-4 border-l-success",n),children:[j("div",{className:we("flex min-w-0 flex-1 flex-col gap-1.5 py-2.5 pl-3",l&&"opacity-60"),children:[A("button",{type:"button",onClick:a,className:"cursor-pointer text-left font-semibold text-sm outline-none after:absolute after:inset-0 after:rounded-lg focus-visible:after:ring-2 focus-visible:after:ring-ring",children:e.subject}),e.text!==""&&A($i,{text:e.text,preview:!0,className:"text-muted-foreground text-xs"}),j("span",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-muted-foreground text-xs",children:[A(jw,{id:e.id}),e.files.length>0&&A(Hw,{Icon:Al,label:"files",children:e.files.length}),e.takenBy&&A(Cz,{task:e.takenBy}),e.tags.map((s)=>A(yz,{tag:s},s)),l&&j(Hw,{Icon:qi,label:"stale",children:["stale, ",Dw(e.createdAt)]})]})]}),A("button",{type:"button",...r,"aria-label":`move ${e.subject}`,className:"relative flex w-8 shrink-0 cursor-grab items-center active:cursor-grabbing justify-center rounded-r-lg text-muted-foreground opacity-40 outline-none group-hover:opacity-100 focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring",children:A(Vi,{className:"size-4"})})]})}function Cz({task:e}){let t=Be(Gw);return j("button",{type:"button",onClick:()=>t(e),onMouseDown:(a)=>a.stopPropagation(),onTouchStart:(a)=>a.stopPropagation(),className:"relative inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-full bg-success/15 px-2 py-0.5 font-medium text-success outline-none hover:bg-success/25 focus-visible:ring-2 focus-visible:ring-ring",children:[A(_i,{"aria-label":"taken by",role:"img",className:"size-3.5 shrink-0"}),j("span",{className:"truncate",children:["Taken by ",e]})]})}function yz({tag:e}){let t=Be(Vw);return j("button",{type:"button","aria-label":`show only ${e}`,onClick:()=>t(e),onMouseDown:(a)=>a.stopPropagation(),onTouchStart:(a)=>a.stopPropagation(),className:"relative inline-flex cursor-pointer items-center gap-1 rounded-full border px-2 py-0.5 outline-none hover:bg-background hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[A(Sn,{"aria-hidden":!0,className:"size-3"}),e]})}function qw(e){return`[ARBOR TODO #${e}]`}function jw({id:e}){let t=async()=>{try{await navigator.clipboard.writeText(qw(e)),Rl.add({title:`Copied ${qw(e)}`})}catch(a){Rl.add({title:"Not copied",description:a instanceof Error?a.message:String(a),type:"error"})}};return j("button",{type:"button","aria-label":`copy a link to todo ${e}`,onClick:()=>void t(),onMouseDown:(a)=>a.stopPropagation(),onTouchStart:(a)=>a.stopPropagation(),className:"relative -mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 tabular-nums outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[A(Xi,{className:"size-3.5"}),"#",e]})}function Hw({Icon:e,label:t,children:a}){return j("span",{className:"inline-flex items-center gap-1",title:t,children:[A(e,{"aria-label":t,role:"img",className:"size-3.5"}),a]})}function bz(){let[e,t]=J(""),[a,o]=J(""),r=kv(),n=ic({task:"",text:e,setText:t}),l=ic({task:"",text:a,setText:o}),[s,u]=J(!1);return j("form",{onSubmit:async(c)=>{if(c.preventDefault(),e.trim()===""||s)return;u(!0);try{await kw({subject:e,text:a},r.files),t(""),o(""),r.clear()}catch(d){Rl.add({title:"Not added",description:d instanceof Error?d.message:String(d),type:"error"})}finally{u(!1)}},className:"flex flex-col gap-2",children:[A(cc,{mentions:n,children:j(xu,{children:[A(Dp,{ref:n.ref,"aria-label":"new todo",placeholder:"Something to do later, @ for a file",value:e,onChange:n.onChange,onSelect:n.onSelect,onClick:n.onClick,onKeyDown:n.onKeyDown,onPaste:r.paste}),j(wp,{align:"inline-end",children:[A(Ev,{files:r}),A(Rp,{type:"submit",variant:"secondary",disabled:e.trim()===""||s,children:"Add"})]})]})}),(e!==""||a!=="")&&A(cc,{mentions:l,children:A(xu,{children:A(wv,{ref:l.ref,"aria-label":"new todo detail",placeholder:"More to say in markdown, if any",value:a,onChange:l.onChange,onSelect:l.onSelect,onClick:l.onClick,onKeyDown:l.onKeyDown,onPaste:r.paste,rows:2})})}),A(Mv,{files:r})]})}function Lz({todo:e,onDone:t}){let[a,o]=J(e.subject),[r,n]=J(e.text),[l,s]=J(e.tags.join(", ")),u=Lc(),i=l.split(",").map((I)=>I.trim()).filter(Boolean),[c,d]=J(e.text===""),f=kv(e.files),p=ic({task:"",text:a,setText:o}),g=ic({task:"",text:r,setText:n}),[v,L]=J(!1),[m,h]=J(!1),x=async(I,b)=>{L(!0);try{await I(),t()}catch(S){Rl.add({title:b,description:S instanceof Error?S.message:String(S),type:"error"}),L(!1)}},C=a.trim()!==""&&(a.trim()!==e.subject||r.trim()!==e.text||i.join(",")!==e.tags.join(",")||f.files.length>0||f.keep.length!==e.files.length);return j(_d,{className:"max-h-[85dvh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-lg",children:[j(Vd,{children:[j(Gd,{className:"flex items-center gap-2",children:["Todo ",e.id,A("span",{className:"font-normal text-muted-foreground text-xs",children:A(jw,{id:e.id})})]}),A(Xd,{children:e.takenBy?`Taken by ${e.takenBy}`:`Number ${e.position} on the list`})]}),j("div",{className:"flex flex-col gap-2",children:[A(cc,{mentions:p,children:A(xu,{children:A(Dp,{ref:p.ref,"aria-label":"subject",value:a,onChange:p.onChange,onSelect:p.onSelect,onClick:p.onClick,onKeyDown:p.onKeyDown,onPaste:f.paste})})}),j("div",{className:"flex items-center justify-between",children:[j("div",{className:"flex gap-1",children:[A(Ua,{size:"xs",variant:c?"secondary":"ghost","aria-pressed":c,onClick:()=>d(!0),children:"Write"}),A(Ua,{size:"xs",variant:c?"ghost":"secondary","aria-pressed":!c,onClick:()=>d(!1),children:"Preview"})]}),A("span",{className:"text-muted-foreground text-xs",children:"Markdown supported"})]}),c?A(cc,{mentions:g,children:j(xu,{children:[A(wv,{ref:g.ref,"aria-label":"detail",placeholder:"More to say in markdown, if any",value:r,onChange:g.onChange,onSelect:g.onSelect,onClick:g.onClick,onKeyDown:g.onKeyDown,onPaste:f.paste,rows:6}),A(wp,{align:"block-end",children:A(Ev,{files:f})})]})}):A("div",{className:"min-h-20 rounded-md border px-3 py-2 text-sm",children:r.trim()===""?A("span",{className:"text-muted-foreground",children:"Nothing to preview"}):A($i,{text:r})}),A(Mv,{files:f}),j("div",{className:"flex flex-col gap-1",children:[j(xu,{children:[A(wp,{children:A(Sn,{})}),A(Dp,{"aria-label":"tags","aria-describedby":u,placeholder:"uploads, merge",value:l,onChange:(I)=>s(I.target.value)})]}),A("p",{id:u,className:"text-muted-foreground text-xs",children:"Separate tags with commas."})]})]}),j(aA,{className:"flex-row justify-between sm:justify-between",children:[j(Ua,{variant:m?"destructive":"ghost",disabled:v,onClick:()=>m?void x(()=>Ow(e.id),"Not removed"):h(!0),children:[A(bn,{"data-icon":"inline-start"}),m?"Remove for good":"Remove"]}),A(Ua,{disabled:!C||v,onClick:()=>void x(()=>Ew(e.id,{subject:a,text:r,tags:i,files:f.files,keep:f.keep}),"Not saved"),children:"Save"})]})]})}function Yw(){let[e]=J(()=>new kx);sd((o)=>{e.start(),o.use(e)},[e]);let{snapshot:t,offline:a}=kg(e,(o)=>({snapshot:o.snapshot,offline:o.offline}),["changed"]);return ce(()=>{document.title=t?.repo??"arbor"},[t?.repo]),A(M1,{children:j("main",{className:"mx-auto flex min-h-dvh max-w-xl flex-col gap-8 px-4 py-6",children:[j("header",{className:"flex items-center justify-between",children:[j("div",{className:"flex min-w-0 items-baseline gap-2",children:[A("h1",{className:"shrink-0 font-medium text-sm",children:t?.repo??"arbor"}),t&&A("span",{className:"min-w-0 truncate text-muted-foreground text-xs",children:t.path})]}),a&&A("span",{role:"status",className:"shrink-0 text-destructive text-xs",children:"Offline: is `arbor dev` still running?"})]}),t===null?null:j(hl,{children:[j("section",{"aria-labelledby":"tasks",className:"flex flex-col gap-2",children:[A("h2",{id:"tasks",className:"font-medium text-muted-foreground text-xs",children:"Tasks"}),A(sT,{tasks:t.tasks})]}),j("section",{"aria-labelledby":"todos",className:"flex flex-col gap-2",children:[A("h2",{id:"todos",className:"font-medium text-muted-foreground text-xs",children:"Todos"}),A(_w,{snapshot:t})]})]})]})})}var Ww=document.getElementById("root");if(Ww===null)throw Error("no #root to mount into: index.html and main.tsx disagree");var Kw=matchMedia("(prefers-color-scheme: dark)"),Zw=()=>document.documentElement.classList.toggle("dark",Kw.matches);Zw();Kw.addEventListener("change",Zw);Rg(Ww).render(A(bc,{children:A(Yw,{})}));\n';
|
|
2321
2414
|
|
|
2322
2415
|
// dev/build/shell.txt
|
|
2323
2416
|
var shell_default = `<!doctype html>
|
|
@@ -2365,6 +2458,7 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2365
2458
|
--text-sm--line-height: calc(1.25 / 0.875);
|
|
2366
2459
|
--text-base: 1rem;
|
|
2367
2460
|
--text-base--line-height: calc(1.5 / 1);
|
|
2461
|
+
--font-weight-normal: 400;
|
|
2368
2462
|
--font-weight-medium: 500;
|
|
2369
2463
|
--font-weight-semibold: 600;
|
|
2370
2464
|
--font-weight-bold: 700;
|
|
@@ -2566,9 +2660,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2566
2660
|
.inset-x-4 {
|
|
2567
2661
|
inset-inline: calc(var(--spacing) * 4);
|
|
2568
2662
|
}
|
|
2569
|
-
.inset-y-0 {
|
|
2570
|
-
inset-block: 0px;
|
|
2571
|
-
}
|
|
2572
2663
|
.-top-2 {
|
|
2573
2664
|
top: calc(var(--spacing) * -2);
|
|
2574
2665
|
}
|
|
@@ -2578,9 +2669,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2578
2669
|
.top-2 {
|
|
2579
2670
|
top: calc(var(--spacing) * 2);
|
|
2580
2671
|
}
|
|
2581
|
-
.top-6 {
|
|
2582
|
-
top: calc(var(--spacing) * 6);
|
|
2583
|
-
}
|
|
2584
2672
|
.top-full {
|
|
2585
2673
|
top: 100%;
|
|
2586
2674
|
}
|
|
@@ -2602,21 +2690,12 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2602
2690
|
.bottom-full {
|
|
2603
2691
|
bottom: 100%;
|
|
2604
2692
|
}
|
|
2605
|
-
.left-0 {
|
|
2606
|
-
left: 0px;
|
|
2607
|
-
}
|
|
2608
2693
|
.left-1\\/2 {
|
|
2609
2694
|
left: calc(1 / 2 * 100%);
|
|
2610
2695
|
}
|
|
2611
|
-
.left-6 {
|
|
2612
|
-
left: calc(var(--spacing) * 6);
|
|
2613
|
-
}
|
|
2614
2696
|
.isolate {
|
|
2615
2697
|
isolation: isolate;
|
|
2616
2698
|
}
|
|
2617
|
-
.z-40 {
|
|
2618
|
-
z-index: 40;
|
|
2619
|
-
}
|
|
2620
2699
|
.z-50 {
|
|
2621
2700
|
z-index: 50;
|
|
2622
2701
|
}
|
|
@@ -2629,6 +2708,9 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2629
2708
|
.order-last {
|
|
2630
2709
|
order: 9999;
|
|
2631
2710
|
}
|
|
2711
|
+
.m-0 {
|
|
2712
|
+
margin: 0px;
|
|
2713
|
+
}
|
|
2632
2714
|
.-mx-1 {
|
|
2633
2715
|
margin-inline: calc(var(--spacing) * -1);
|
|
2634
2716
|
}
|
|
@@ -2671,6 +2753,9 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2671
2753
|
.mb-\\[0\\.3rem\\] {
|
|
2672
2754
|
margin-bottom: 0.3rem;
|
|
2673
2755
|
}
|
|
2756
|
+
.ml-auto {
|
|
2757
|
+
margin-left: auto;
|
|
2758
|
+
}
|
|
2674
2759
|
.block {
|
|
2675
2760
|
display: block;
|
|
2676
2761
|
}
|
|
@@ -2695,6 +2780,10 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2695
2780
|
.field-sizing-content {
|
|
2696
2781
|
field-sizing: content;
|
|
2697
2782
|
}
|
|
2783
|
+
.size-3 {
|
|
2784
|
+
width: calc(var(--spacing) * 3);
|
|
2785
|
+
height: calc(var(--spacing) * 3);
|
|
2786
|
+
}
|
|
2698
2787
|
.size-3\\.5 {
|
|
2699
2788
|
width: calc(var(--spacing) * 3.5);
|
|
2700
2789
|
height: calc(var(--spacing) * 3.5);
|
|
@@ -2703,10 +2792,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2703
2792
|
width: calc(var(--spacing) * 4);
|
|
2704
2793
|
height: calc(var(--spacing) * 4);
|
|
2705
2794
|
}
|
|
2706
|
-
.size-5 {
|
|
2707
|
-
width: calc(var(--spacing) * 5);
|
|
2708
|
-
height: calc(var(--spacing) * 5);
|
|
2709
|
-
}
|
|
2710
2795
|
.size-6 {
|
|
2711
2796
|
width: calc(var(--spacing) * 6);
|
|
2712
2797
|
height: calc(var(--spacing) * 6);
|
|
@@ -2730,6 +2815,9 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2730
2815
|
.h-\\(--height\\) {
|
|
2731
2816
|
height: var(--height);
|
|
2732
2817
|
}
|
|
2818
|
+
.h-1 {
|
|
2819
|
+
height: var(--spacing);
|
|
2820
|
+
}
|
|
2733
2821
|
.h-5 {
|
|
2734
2822
|
height: calc(var(--spacing) * 5);
|
|
2735
2823
|
}
|
|
@@ -2748,9 +2836,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2748
2836
|
.h-16 {
|
|
2749
2837
|
height: calc(var(--spacing) * 16);
|
|
2750
2838
|
}
|
|
2751
|
-
.h-\\[calc\\(100\\%-1px\\)\\] {
|
|
2752
|
-
height: calc(100% - 1px);
|
|
2753
|
-
}
|
|
2754
2839
|
.h-auto {
|
|
2755
2840
|
height: auto;
|
|
2756
2841
|
}
|
|
@@ -2775,11 +2860,8 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2775
2860
|
.w-8 {
|
|
2776
2861
|
width: calc(var(--spacing) * 8);
|
|
2777
2862
|
}
|
|
2778
|
-
.w-
|
|
2779
|
-
width: calc(var(--spacing) *
|
|
2780
|
-
}
|
|
2781
|
-
.w-56 {
|
|
2782
|
-
width: calc(var(--spacing) * 56);
|
|
2863
|
+
.w-28 {
|
|
2864
|
+
width: calc(var(--spacing) * 28);
|
|
2783
2865
|
}
|
|
2784
2866
|
.w-\\[calc\\(100\\%\\+1rem\\)\\] {
|
|
2785
2867
|
width: calc(100% + 1rem);
|
|
@@ -2796,9 +2878,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2796
2878
|
.max-w-40 {
|
|
2797
2879
|
max-width: calc(var(--spacing) * 40);
|
|
2798
2880
|
}
|
|
2799
|
-
.max-w-44 {
|
|
2800
|
-
max-width: calc(var(--spacing) * 44);
|
|
2801
|
-
}
|
|
2802
2881
|
.max-w-\\[calc\\(100\\%-2rem\\)\\] {
|
|
2803
2882
|
max-width: calc(100% - 2rem);
|
|
2804
2883
|
}
|
|
@@ -2814,9 +2893,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2814
2893
|
.flex-1 {
|
|
2815
2894
|
flex: 1;
|
|
2816
2895
|
}
|
|
2817
|
-
.flex-none {
|
|
2818
|
-
flex: none;
|
|
2819
|
-
}
|
|
2820
2896
|
.shrink-0 {
|
|
2821
2897
|
flex-shrink: 0;
|
|
2822
2898
|
}
|
|
@@ -2891,15 +2967,15 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2891
2967
|
.flex-wrap {
|
|
2892
2968
|
flex-wrap: wrap;
|
|
2893
2969
|
}
|
|
2970
|
+
.items-baseline {
|
|
2971
|
+
align-items: baseline;
|
|
2972
|
+
}
|
|
2894
2973
|
.items-center {
|
|
2895
2974
|
align-items: center;
|
|
2896
2975
|
}
|
|
2897
2976
|
.items-stretch {
|
|
2898
2977
|
align-items: stretch;
|
|
2899
2978
|
}
|
|
2900
|
-
.justify-around {
|
|
2901
|
-
justify-content: space-around;
|
|
2902
|
-
}
|
|
2903
2979
|
.justify-between {
|
|
2904
2980
|
justify-content: space-between;
|
|
2905
2981
|
}
|
|
@@ -2909,9 +2985,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2909
2985
|
.justify-start {
|
|
2910
2986
|
justify-content: flex-start;
|
|
2911
2987
|
}
|
|
2912
|
-
.gap-0\\.5 {
|
|
2913
|
-
gap: calc(var(--spacing) * 0.5);
|
|
2914
|
-
}
|
|
2915
2988
|
.gap-1 {
|
|
2916
2989
|
gap: var(--spacing);
|
|
2917
2990
|
}
|
|
@@ -2933,6 +3006,9 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2933
3006
|
.gap-6 {
|
|
2934
3007
|
gap: calc(var(--spacing) * 6);
|
|
2935
3008
|
}
|
|
3009
|
+
.gap-8 {
|
|
3010
|
+
gap: calc(var(--spacing) * 8);
|
|
3011
|
+
}
|
|
2936
3012
|
.gap-x-3 {
|
|
2937
3013
|
column-gap: calc(var(--spacing) * 3);
|
|
2938
3014
|
}
|
|
@@ -2953,6 +3029,9 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
2953
3029
|
.overflow-x-auto {
|
|
2954
3030
|
overflow-x: auto;
|
|
2955
3031
|
}
|
|
3032
|
+
.overflow-x-hidden {
|
|
3033
|
+
overflow-x: hidden;
|
|
3034
|
+
}
|
|
2956
3035
|
.overflow-y-auto {
|
|
2957
3036
|
overflow-y: auto;
|
|
2958
3037
|
}
|
|
@@ -3009,10 +3088,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3009
3088
|
border-top-style: var(--tw-border-style);
|
|
3010
3089
|
border-top-width: 1px;
|
|
3011
3090
|
}
|
|
3012
|
-
.border-r {
|
|
3013
|
-
border-right-style: var(--tw-border-style);
|
|
3014
|
-
border-right-width: 1px;
|
|
3015
|
-
}
|
|
3016
3091
|
.border-l-2 {
|
|
3017
3092
|
border-left-style: var(--tw-border-style);
|
|
3018
3093
|
border-left-width: 2px;
|
|
@@ -3031,6 +3106,9 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3031
3106
|
.border-input {
|
|
3032
3107
|
border-color: var(--input);
|
|
3033
3108
|
}
|
|
3109
|
+
.border-primary {
|
|
3110
|
+
border-color: var(--primary);
|
|
3111
|
+
}
|
|
3034
3112
|
.border-transparent {
|
|
3035
3113
|
border-color: transparent;
|
|
3036
3114
|
}
|
|
@@ -3040,12 +3118,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3040
3118
|
.bg-background {
|
|
3041
3119
|
background-color: var(--background);
|
|
3042
3120
|
}
|
|
3043
|
-
.bg-background\\/95 {
|
|
3044
|
-
background-color: var(--background);
|
|
3045
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3046
|
-
background-color: color-mix(in oklab, var(--background) 95%, transparent);
|
|
3047
|
-
}
|
|
3048
|
-
}
|
|
3049
3121
|
.bg-black\\/10 {
|
|
3050
3122
|
background-color: color-mix(in srgb, #000 10%, transparent);
|
|
3051
3123
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -3121,9 +3193,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3121
3193
|
.p-6 {
|
|
3122
3194
|
padding: calc(var(--spacing) * 6);
|
|
3123
3195
|
}
|
|
3124
|
-
.p-\\[3px\\] {
|
|
3125
|
-
padding: 3px;
|
|
3126
|
-
}
|
|
3127
3196
|
.px-1 {
|
|
3128
3197
|
padding-inline: var(--spacing);
|
|
3129
3198
|
}
|
|
@@ -3157,30 +3226,18 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3157
3226
|
.py-2\\.5 {
|
|
3158
3227
|
padding-block: calc(var(--spacing) * 2.5);
|
|
3159
3228
|
}
|
|
3160
|
-
.
|
|
3161
|
-
padding-
|
|
3229
|
+
.py-6 {
|
|
3230
|
+
padding-block: calc(var(--spacing) * 6);
|
|
3162
3231
|
}
|
|
3163
3232
|
.pt-2 {
|
|
3164
3233
|
padding-top: calc(var(--spacing) * 2);
|
|
3165
3234
|
}
|
|
3166
|
-
.pt-6 {
|
|
3167
|
-
padding-top: calc(var(--spacing) * 6);
|
|
3168
|
-
}
|
|
3169
|
-
.pt-16 {
|
|
3170
|
-
padding-top: calc(var(--spacing) * 16);
|
|
3171
|
-
}
|
|
3172
3235
|
.pr-2 {
|
|
3173
3236
|
padding-right: calc(var(--spacing) * 2);
|
|
3174
3237
|
}
|
|
3175
3238
|
.pb-2 {
|
|
3176
3239
|
padding-bottom: calc(var(--spacing) * 2);
|
|
3177
3240
|
}
|
|
3178
|
-
.pb-28 {
|
|
3179
|
-
padding-bottom: calc(var(--spacing) * 28);
|
|
3180
|
-
}
|
|
3181
|
-
.pb-\\[max\\(0\\.375rem\\,env\\(safe-area-inset-bottom\\)\\)\\] {
|
|
3182
|
-
padding-bottom: max(0.375rem, env(safe-area-inset-bottom));
|
|
3183
|
-
}
|
|
3184
3241
|
.pl-2 {
|
|
3185
3242
|
padding-left: calc(var(--spacing) * 2);
|
|
3186
3243
|
}
|
|
@@ -3190,9 +3247,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3190
3247
|
.pl-5 {
|
|
3191
3248
|
padding-left: calc(var(--spacing) * 5);
|
|
3192
3249
|
}
|
|
3193
|
-
.pl-56 {
|
|
3194
|
-
padding-left: calc(var(--spacing) * 56);
|
|
3195
|
-
}
|
|
3196
3250
|
.text-center {
|
|
3197
3251
|
text-align: center;
|
|
3198
3252
|
}
|
|
@@ -3236,6 +3290,10 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3236
3290
|
--tw-font-weight: var(--font-weight-medium);
|
|
3237
3291
|
font-weight: var(--font-weight-medium);
|
|
3238
3292
|
}
|
|
3293
|
+
.font-normal {
|
|
3294
|
+
--tw-font-weight: var(--font-weight-normal);
|
|
3295
|
+
font-weight: var(--font-weight-normal);
|
|
3296
|
+
}
|
|
3239
3297
|
.font-semibold {
|
|
3240
3298
|
--tw-font-weight: var(--font-weight-semibold);
|
|
3241
3299
|
font-weight: var(--font-weight-semibold);
|
|
@@ -3269,12 +3327,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3269
3327
|
.text-foreground {
|
|
3270
3328
|
color: var(--foreground);
|
|
3271
3329
|
}
|
|
3272
|
-
.text-foreground\\/60 {
|
|
3273
|
-
color: var(--foreground);
|
|
3274
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3275
|
-
color: color-mix(in oklab, var(--foreground) 60%, transparent);
|
|
3276
|
-
}
|
|
3277
|
-
}
|
|
3278
3330
|
.text-muted-foreground {
|
|
3279
3331
|
color: var(--muted-foreground);
|
|
3280
3332
|
}
|
|
@@ -3349,16 +3401,19 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3349
3401
|
outline-style: var(--tw-outline-style);
|
|
3350
3402
|
outline-width: 1px;
|
|
3351
3403
|
}
|
|
3352
|
-
.
|
|
3353
|
-
--tw-
|
|
3354
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
3355
|
-
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
3404
|
+
.filter {
|
|
3405
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
3356
3406
|
}
|
|
3357
3407
|
.transition {
|
|
3358
3408
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
3359
3409
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
3360
3410
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
3361
3411
|
}
|
|
3412
|
+
.transition-\\[background-color\\,border-color\\,box-shadow\\] {
|
|
3413
|
+
transition-property: background-color,border-color,box-shadow;
|
|
3414
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
3415
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
3416
|
+
}
|
|
3362
3417
|
.transition-all {
|
|
3363
3418
|
transition-property: all;
|
|
3364
3419
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -3374,11 +3429,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3374
3429
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
3375
3430
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
3376
3431
|
}
|
|
3377
|
-
.transition-shadow {
|
|
3378
|
-
transition-property: box-shadow;
|
|
3379
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
3380
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
3381
|
-
}
|
|
3382
3432
|
.duration-100 {
|
|
3383
3433
|
--tw-duration: 100ms;
|
|
3384
3434
|
transition-duration: 100ms;
|
|
@@ -3440,30 +3490,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3440
3490
|
.group-data-\\[disabled\\=true\\]\\/input-group\\:opacity-50:is(:where(.group\\/input-group)[data-disabled="true"] *) {
|
|
3441
3491
|
opacity: 50%;
|
|
3442
3492
|
}
|
|
3443
|
-
.group-data-\\[variant\\=line\\]\\/tabs-list\\:bg-transparent:is(:where(.group\\/tabs-list)[data-variant="line"] *) {
|
|
3444
|
-
background-color: transparent;
|
|
3445
|
-
}
|
|
3446
|
-
.group-data-horizontal\\/tabs\\:h-8:is(:where(.group\\/tabs):where([data-orientation="horizontal"]) *) {
|
|
3447
|
-
height: calc(var(--spacing) * 8);
|
|
3448
|
-
}
|
|
3449
|
-
.group-data-horizontal\\/tabs\\:h-auto:is(:where(.group\\/tabs):where([data-orientation="horizontal"]) *) {
|
|
3450
|
-
height: auto;
|
|
3451
|
-
}
|
|
3452
|
-
.group-data-vertical\\/tabs\\:h-dvh:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *) {
|
|
3453
|
-
height: 100dvh;
|
|
3454
|
-
}
|
|
3455
|
-
.group-data-vertical\\/tabs\\:h-fit:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *) {
|
|
3456
|
-
height: fit-content;
|
|
3457
|
-
}
|
|
3458
|
-
.group-data-vertical\\/tabs\\:w-full:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *) {
|
|
3459
|
-
width: 100%;
|
|
3460
|
-
}
|
|
3461
|
-
.group-data-vertical\\/tabs\\:flex-col:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *) {
|
|
3462
|
-
flex-direction: column;
|
|
3463
|
-
}
|
|
3464
|
-
.group-data-vertical\\/tabs\\:justify-start:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *) {
|
|
3465
|
-
justify-content: flex-start;
|
|
3466
|
-
}
|
|
3467
3493
|
.file\\:inline-flex::file-selector-button {
|
|
3468
3494
|
display: inline-flex;
|
|
3469
3495
|
}
|
|
@@ -3511,10 +3537,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3511
3537
|
content: var(--tw-content);
|
|
3512
3538
|
left: 0px;
|
|
3513
3539
|
}
|
|
3514
|
-
.after\\:hidden::after {
|
|
3515
|
-
content: var(--tw-content);
|
|
3516
|
-
display: none;
|
|
3517
|
-
}
|
|
3518
3540
|
.after\\:h-\\[calc\\(var\\(--gap\\)\\+1px\\)\\]::after {
|
|
3519
3541
|
content: var(--tw-content);
|
|
3520
3542
|
height: calc(var(--gap) + 1px);
|
|
@@ -3527,52 +3549,22 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3527
3549
|
content: var(--tw-content);
|
|
3528
3550
|
border-radius: var(--radius);
|
|
3529
3551
|
}
|
|
3530
|
-
.after\\:bg-foreground::after {
|
|
3531
|
-
content: var(--tw-content);
|
|
3532
|
-
background-color: var(--foreground);
|
|
3533
|
-
}
|
|
3534
|
-
.after\\:opacity-0::after {
|
|
3535
|
-
content: var(--tw-content);
|
|
3536
|
-
opacity: 0%;
|
|
3537
|
-
}
|
|
3538
|
-
.after\\:transition-opacity::after {
|
|
3539
|
-
content: var(--tw-content);
|
|
3540
|
-
transition-property: opacity;
|
|
3541
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
3542
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
3543
|
-
}
|
|
3544
3552
|
.after\\:content-\\[\\'\\'\\]::after {
|
|
3545
3553
|
--tw-content: '';
|
|
3546
3554
|
content: var(--tw-content);
|
|
3547
3555
|
}
|
|
3548
|
-
.group-data-horizontal\\/tabs\\:after\\:inset-x-0:is(:where(.group\\/tabs):where([data-orientation="horizontal"]) *)::after {
|
|
3549
|
-
content: var(--tw-content);
|
|
3550
|
-
inset-inline: 0px;
|
|
3551
|
-
}
|
|
3552
|
-
.group-data-horizontal\\/tabs\\:after\\:bottom-\\[-5px\\]:is(:where(.group\\/tabs):where([data-orientation="horizontal"]) *)::after {
|
|
3553
|
-
content: var(--tw-content);
|
|
3554
|
-
bottom: -5px;
|
|
3555
|
-
}
|
|
3556
|
-
.group-data-horizontal\\/tabs\\:after\\:h-0\\.5:is(:where(.group\\/tabs):where([data-orientation="horizontal"]) *)::after {
|
|
3557
|
-
content: var(--tw-content);
|
|
3558
|
-
height: calc(var(--spacing) * 0.5);
|
|
3559
|
-
}
|
|
3560
|
-
.group-data-vertical\\/tabs\\:after\\:inset-y-0:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *)::after {
|
|
3561
|
-
content: var(--tw-content);
|
|
3562
|
-
inset-block: 0px;
|
|
3563
|
-
}
|
|
3564
|
-
.group-data-vertical\\/tabs\\:after\\:-right-1:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *)::after {
|
|
3565
|
-
content: var(--tw-content);
|
|
3566
|
-
right: calc(var(--spacing) * -1);
|
|
3567
|
-
}
|
|
3568
|
-
.group-data-vertical\\/tabs\\:after\\:w-0\\.5:is(:where(.group\\/tabs):where([data-orientation="vertical"]) *)::after {
|
|
3569
|
-
content: var(--tw-content);
|
|
3570
|
-
width: calc(var(--spacing) * 0.5);
|
|
3571
|
-
}
|
|
3572
3556
|
.first\\:mt-0:first-child {
|
|
3573
3557
|
margin-top: 0px;
|
|
3574
3558
|
}
|
|
3575
3559
|
@media (hover: hover) {
|
|
3560
|
+
.hover\\:border-foreground\\/25:hover {
|
|
3561
|
+
border-color: var(--foreground);
|
|
3562
|
+
}
|
|
3563
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3564
|
+
.hover\\:border-foreground\\/25:hover {
|
|
3565
|
+
border-color: color-mix(in oklab, var(--foreground) 25%, transparent);
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3576
3568
|
.hover\\:bg-\\[color-mix\\(in_oklch\\,var\\(--secondary\\)\\,var\\(--foreground\\)_5\\%\\)\\]:hover {
|
|
3577
3569
|
background-color: var(--secondary);
|
|
3578
3570
|
}
|
|
@@ -3581,6 +3573,9 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3581
3573
|
background-color: color-mix(in oklch,var(--secondary),var(--foreground) 5%);
|
|
3582
3574
|
}
|
|
3583
3575
|
}
|
|
3576
|
+
.hover\\:bg-background:hover {
|
|
3577
|
+
background-color: var(--background);
|
|
3578
|
+
}
|
|
3584
3579
|
.hover\\:bg-destructive\\/20:hover {
|
|
3585
3580
|
background-color: var(--destructive);
|
|
3586
3581
|
}
|
|
@@ -3592,6 +3587,14 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3592
3587
|
.hover\\:bg-muted:hover {
|
|
3593
3588
|
background-color: var(--muted);
|
|
3594
3589
|
}
|
|
3590
|
+
.hover\\:bg-muted\\/70:hover {
|
|
3591
|
+
background-color: var(--muted);
|
|
3592
|
+
}
|
|
3593
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3594
|
+
.hover\\:bg-muted\\/70:hover {
|
|
3595
|
+
background-color: color-mix(in oklab, var(--muted) 70%, transparent);
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3595
3598
|
.hover\\:bg-primary\\/80:hover {
|
|
3596
3599
|
background-color: var(--primary);
|
|
3597
3600
|
}
|
|
@@ -3669,13 +3672,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3669
3672
|
--tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
|
|
3670
3673
|
}
|
|
3671
3674
|
}
|
|
3672
|
-
.focus-visible\\:outline-1:focus-visible {
|
|
3673
|
-
outline-style: var(--tw-outline-style);
|
|
3674
|
-
outline-width: 1px;
|
|
3675
|
-
}
|
|
3676
|
-
.focus-visible\\:outline-ring:focus-visible {
|
|
3677
|
-
outline-color: var(--ring);
|
|
3678
|
-
}
|
|
3679
3675
|
.focus-visible\\:after\\:ring-2:focus-visible::after {
|
|
3680
3676
|
content: var(--tw-content);
|
|
3681
3677
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
@@ -3729,18 +3725,12 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3729
3725
|
.has-disabled\\:opacity-50:has(:disabled) {
|
|
3730
3726
|
opacity: 50%;
|
|
3731
3727
|
}
|
|
3732
|
-
.has-data-\\[icon\\=inline-end\\]\\:pr-1:has([data-icon="inline-end"]) {
|
|
3733
|
-
padding-right: var(--spacing);
|
|
3734
|
-
}
|
|
3735
3728
|
.has-data-\\[icon\\=inline-end\\]\\:pr-1\\.5:has([data-icon="inline-end"]) {
|
|
3736
3729
|
padding-right: calc(var(--spacing) * 1.5);
|
|
3737
3730
|
}
|
|
3738
3731
|
.has-data-\\[icon\\=inline-end\\]\\:pr-2:has([data-icon="inline-end"]) {
|
|
3739
3732
|
padding-right: calc(var(--spacing) * 2);
|
|
3740
3733
|
}
|
|
3741
|
-
.has-data-\\[icon\\=inline-start\\]\\:pl-1:has([data-icon="inline-start"]) {
|
|
3742
|
-
padding-left: var(--spacing);
|
|
3743
|
-
}
|
|
3744
3734
|
.has-data-\\[icon\\=inline-start\\]\\:pl-1\\.5:has([data-icon="inline-start"]) {
|
|
3745
3735
|
padding-left: calc(var(--spacing) * 1.5);
|
|
3746
3736
|
}
|
|
@@ -3812,12 +3802,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3812
3802
|
.has-\\[\\>textarea\\]\\:h-auto:has( > textarea) {
|
|
3813
3803
|
height: auto;
|
|
3814
3804
|
}
|
|
3815
|
-
.aria-disabled\\:pointer-events-none[aria-disabled="true"] {
|
|
3816
|
-
pointer-events: none;
|
|
3817
|
-
}
|
|
3818
|
-
.aria-disabled\\:opacity-50[aria-disabled="true"] {
|
|
3819
|
-
opacity: 50%;
|
|
3820
|
-
}
|
|
3821
3805
|
.aria-expanded\\:bg-muted[aria-expanded="true"] {
|
|
3822
3806
|
background-color: var(--muted);
|
|
3823
3807
|
}
|
|
@@ -3889,9 +3873,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3889
3873
|
.data-expanded\\:data-ending-style\\:data-\\[swipe-direction\\=up\\]\\:\\[transform\\:translateY\\(calc\\(var\\(--toast-swipe-movement-y\\)-150\\%\\)\\)\\][data-expanded][data-ending-style][data-swipe-direction="up"] {
|
|
3890
3874
|
transform: translateY(calc(var(--toast-swipe-movement-y) - 150%));
|
|
3891
3875
|
}
|
|
3892
|
-
.data-\\[variant\\=line\\]\\:rounded-none[data-variant="line"] {
|
|
3893
|
-
border-radius: 0;
|
|
3894
|
-
}
|
|
3895
3876
|
@supports (backdrop-filter: var(--tw)) {
|
|
3896
3877
|
.supports-backdrop-filter\\:backdrop-blur-xs {
|
|
3897
3878
|
--tw-backdrop-blur: blur(var(--blur-xs));
|
|
@@ -3955,9 +3936,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3955
3936
|
.dark\\:bg-transparent:is(.dark *) {
|
|
3956
3937
|
background-color: transparent;
|
|
3957
3938
|
}
|
|
3958
|
-
.dark\\:text-muted-foreground:is(.dark *) {
|
|
3959
|
-
color: var(--muted-foreground);
|
|
3960
|
-
}
|
|
3961
3939
|
@media (hover: hover) {
|
|
3962
3940
|
.dark\\:hover\\:bg-destructive\\/30:is(.dark *):hover {
|
|
3963
3941
|
background-color: var(--destructive);
|
|
@@ -3983,9 +3961,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
3983
3961
|
background-color: color-mix(in oklab, var(--muted) 50%, transparent);
|
|
3984
3962
|
}
|
|
3985
3963
|
}
|
|
3986
|
-
.dark\\:hover\\:text-foreground:is(.dark *):hover {
|
|
3987
|
-
color: var(--foreground);
|
|
3988
|
-
}
|
|
3989
3964
|
}
|
|
3990
3965
|
.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible {
|
|
3991
3966
|
--tw-ring-color: var(--destructive);
|
|
@@ -4048,51 +4023,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
4048
4023
|
--tw-exit-scale: calc(95*1%);
|
|
4049
4024
|
--tw-exit-scale: .95;
|
|
4050
4025
|
}
|
|
4051
|
-
.data-active\\:bg-background:where([data-state="active"]), .data-active\\:bg-background:where([data-active]:not([data-active="false"])) {
|
|
4052
|
-
background-color: var(--background);
|
|
4053
|
-
}
|
|
4054
|
-
.data-active\\:bg-muted:where([data-state="active"]), .data-active\\:bg-muted:where([data-active]:not([data-active="false"])) {
|
|
4055
|
-
background-color: var(--muted);
|
|
4056
|
-
}
|
|
4057
|
-
.data-active\\:text-foreground:where([data-state="active"]), .data-active\\:text-foreground:where([data-active]:not([data-active="false"])) {
|
|
4058
|
-
color: var(--foreground);
|
|
4059
|
-
}
|
|
4060
|
-
.group-data-\\[variant\\=default\\]\\/tabs-list\\:data-active\\:shadow-sm:is(:where(.group\\/tabs-list)[data-variant="default"] *):where([data-state="active"]), .group-data-\\[variant\\=default\\]\\/tabs-list\\:data-active\\:shadow-sm:is(:where(.group\\/tabs-list)[data-variant="default"] *):where([data-active]:not([data-active="false"])) {
|
|
4061
|
-
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
4062
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4063
|
-
}
|
|
4064
|
-
.group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:bg-transparent:is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-state="active"]), .group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:bg-transparent:is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-active]:not([data-active="false"])) {
|
|
4065
|
-
background-color: transparent;
|
|
4066
|
-
}
|
|
4067
|
-
.group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:shadow-none:is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-state="active"]), .group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:shadow-none:is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-active]:not([data-active="false"])) {
|
|
4068
|
-
--tw-shadow: 0 0 #0000;
|
|
4069
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4070
|
-
}
|
|
4071
|
-
:is(.group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:after\\:opacity-100:is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-state="active"]), .group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:after\\:opacity-100:is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-active]:not([data-active="false"])))::after {
|
|
4072
|
-
content: var(--tw-content);
|
|
4073
|
-
opacity: 100%;
|
|
4074
|
-
}
|
|
4075
|
-
.dark\\:data-active\\:border-input:is(.dark *):where([data-state="active"]), .dark\\:data-active\\:border-input:is(.dark *):where([data-active]:not([data-active="false"])) {
|
|
4076
|
-
border-color: var(--input);
|
|
4077
|
-
}
|
|
4078
|
-
.dark\\:data-active\\:bg-input\\/30:is(.dark *):where([data-state="active"]), .dark\\:data-active\\:bg-input\\/30:is(.dark *):where([data-active]:not([data-active="false"])) {
|
|
4079
|
-
background-color: var(--input);
|
|
4080
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
4081
|
-
background-color: color-mix(in oklab, var(--input) 30%, transparent);
|
|
4082
|
-
}
|
|
4083
|
-
}
|
|
4084
|
-
.dark\\:data-active\\:text-foreground:is(.dark *):where([data-state="active"]), .dark\\:data-active\\:text-foreground:is(.dark *):where([data-active]:not([data-active="false"])) {
|
|
4085
|
-
color: var(--foreground);
|
|
4086
|
-
}
|
|
4087
|
-
.dark\\:group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:border-transparent:is(.dark *):is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-state="active"]), .dark\\:group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:border-transparent:is(.dark *):is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-active]:not([data-active="false"])) {
|
|
4088
|
-
border-color: transparent;
|
|
4089
|
-
}
|
|
4090
|
-
.dark\\:group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:bg-transparent:is(.dark *):is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-state="active"]), .dark\\:group-data-\\[variant\\=line\\]\\/tabs-list\\:data-active\\:bg-transparent:is(.dark *):is(:where(.group\\/tabs-list)[data-variant="line"] *):where([data-active]:not([data-active="false"])) {
|
|
4091
|
-
background-color: transparent;
|
|
4092
|
-
}
|
|
4093
|
-
.data-horizontal\\:flex-col:where([data-orientation="horizontal"]) {
|
|
4094
|
-
flex-direction: column;
|
|
4095
|
-
}
|
|
4096
4026
|
.\\[\\&_\\*\\]\\:my-0 * {
|
|
4097
4027
|
margin-block: 0px;
|
|
4098
4028
|
}
|
|
@@ -4559,39 +4489,56 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
4559
4489
|
inherits: false;
|
|
4560
4490
|
initial-value: solid;
|
|
4561
4491
|
}
|
|
4562
|
-
@property --tw-
|
|
4492
|
+
@property --tw-blur {
|
|
4563
4493
|
syntax: "*";
|
|
4564
4494
|
inherits: false;
|
|
4565
4495
|
}
|
|
4566
|
-
@property --tw-
|
|
4496
|
+
@property --tw-brightness {
|
|
4567
4497
|
syntax: "*";
|
|
4568
4498
|
inherits: false;
|
|
4569
4499
|
}
|
|
4570
|
-
@property --tw-
|
|
4500
|
+
@property --tw-contrast {
|
|
4571
4501
|
syntax: "*";
|
|
4572
4502
|
inherits: false;
|
|
4573
4503
|
}
|
|
4574
|
-
@property --tw-
|
|
4504
|
+
@property --tw-grayscale {
|
|
4575
4505
|
syntax: "*";
|
|
4576
4506
|
inherits: false;
|
|
4577
4507
|
}
|
|
4578
|
-
@property --tw-
|
|
4508
|
+
@property --tw-hue-rotate {
|
|
4579
4509
|
syntax: "*";
|
|
4580
4510
|
inherits: false;
|
|
4581
4511
|
}
|
|
4582
|
-
@property --tw-
|
|
4512
|
+
@property --tw-invert {
|
|
4583
4513
|
syntax: "*";
|
|
4584
4514
|
inherits: false;
|
|
4585
4515
|
}
|
|
4586
|
-
@property --tw-
|
|
4516
|
+
@property --tw-opacity {
|
|
4587
4517
|
syntax: "*";
|
|
4588
4518
|
inherits: false;
|
|
4589
4519
|
}
|
|
4590
|
-
@property --tw-
|
|
4520
|
+
@property --tw-saturate {
|
|
4591
4521
|
syntax: "*";
|
|
4592
4522
|
inherits: false;
|
|
4593
4523
|
}
|
|
4594
|
-
@property --tw-
|
|
4524
|
+
@property --tw-sepia {
|
|
4525
|
+
syntax: "*";
|
|
4526
|
+
inherits: false;
|
|
4527
|
+
}
|
|
4528
|
+
@property --tw-drop-shadow {
|
|
4529
|
+
syntax: "*";
|
|
4530
|
+
inherits: false;
|
|
4531
|
+
}
|
|
4532
|
+
@property --tw-drop-shadow-color {
|
|
4533
|
+
syntax: "*";
|
|
4534
|
+
inherits: false;
|
|
4535
|
+
}
|
|
4536
|
+
@property --tw-drop-shadow-alpha {
|
|
4537
|
+
syntax: "<percentage>";
|
|
4538
|
+
inherits: false;
|
|
4539
|
+
initial-value: 100%;
|
|
4540
|
+
}
|
|
4541
|
+
@property --tw-drop-shadow-size {
|
|
4595
4542
|
syntax: "*";
|
|
4596
4543
|
inherits: false;
|
|
4597
4544
|
}
|
|
@@ -4608,6 +4555,42 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
4608
4555
|
initial-value: "";
|
|
4609
4556
|
inherits: false;
|
|
4610
4557
|
}
|
|
4558
|
+
@property --tw-backdrop-blur {
|
|
4559
|
+
syntax: "*";
|
|
4560
|
+
inherits: false;
|
|
4561
|
+
}
|
|
4562
|
+
@property --tw-backdrop-brightness {
|
|
4563
|
+
syntax: "*";
|
|
4564
|
+
inherits: false;
|
|
4565
|
+
}
|
|
4566
|
+
@property --tw-backdrop-contrast {
|
|
4567
|
+
syntax: "*";
|
|
4568
|
+
inherits: false;
|
|
4569
|
+
}
|
|
4570
|
+
@property --tw-backdrop-grayscale {
|
|
4571
|
+
syntax: "*";
|
|
4572
|
+
inherits: false;
|
|
4573
|
+
}
|
|
4574
|
+
@property --tw-backdrop-hue-rotate {
|
|
4575
|
+
syntax: "*";
|
|
4576
|
+
inherits: false;
|
|
4577
|
+
}
|
|
4578
|
+
@property --tw-backdrop-invert {
|
|
4579
|
+
syntax: "*";
|
|
4580
|
+
inherits: false;
|
|
4581
|
+
}
|
|
4582
|
+
@property --tw-backdrop-opacity {
|
|
4583
|
+
syntax: "*";
|
|
4584
|
+
inherits: false;
|
|
4585
|
+
}
|
|
4586
|
+
@property --tw-backdrop-saturate {
|
|
4587
|
+
syntax: "*";
|
|
4588
|
+
inherits: false;
|
|
4589
|
+
}
|
|
4590
|
+
@property --tw-backdrop-sepia {
|
|
4591
|
+
syntax: "*";
|
|
4592
|
+
inherits: false;
|
|
4593
|
+
}
|
|
4611
4594
|
@keyframes spin {
|
|
4612
4595
|
to {
|
|
4613
4596
|
transform: rotate(360deg);
|
|
@@ -4665,6 +4648,22 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
4665
4648
|
--tw-ring-offset-color: #fff;
|
|
4666
4649
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
4667
4650
|
--tw-outline-style: solid;
|
|
4651
|
+
--tw-blur: initial;
|
|
4652
|
+
--tw-brightness: initial;
|
|
4653
|
+
--tw-contrast: initial;
|
|
4654
|
+
--tw-grayscale: initial;
|
|
4655
|
+
--tw-hue-rotate: initial;
|
|
4656
|
+
--tw-invert: initial;
|
|
4657
|
+
--tw-opacity: initial;
|
|
4658
|
+
--tw-saturate: initial;
|
|
4659
|
+
--tw-sepia: initial;
|
|
4660
|
+
--tw-drop-shadow: initial;
|
|
4661
|
+
--tw-drop-shadow-color: initial;
|
|
4662
|
+
--tw-drop-shadow-alpha: 100%;
|
|
4663
|
+
--tw-drop-shadow-size: initial;
|
|
4664
|
+
--tw-duration: initial;
|
|
4665
|
+
--tw-ease: initial;
|
|
4666
|
+
--tw-content: "";
|
|
4668
4667
|
--tw-backdrop-blur: initial;
|
|
4669
4668
|
--tw-backdrop-brightness: initial;
|
|
4670
4669
|
--tw-backdrop-contrast: initial;
|
|
@@ -4674,9 +4673,6 @@ var styles_default = `/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss
|
|
|
4674
4673
|
--tw-backdrop-opacity: initial;
|
|
4675
4674
|
--tw-backdrop-saturate: initial;
|
|
4676
4675
|
--tw-backdrop-sepia: initial;
|
|
4677
|
-
--tw-duration: initial;
|
|
4678
|
-
--tw-ease: initial;
|
|
4679
|
-
--tw-content: "";
|
|
4680
4676
|
--tw-animation-delay: 0s;
|
|
4681
4677
|
--tw-animation-direction: normal;
|
|
4682
4678
|
--tw-animation-duration: initial;
|