teodor-new-chat-ui 4.3.646 → 4.3.647
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/dist/index.esm.js +801 -805
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +24 -24
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ import { cva as Ec } from "class-variance-authority";
|
|
|
10
10
|
import * as Ac from "react-dom";
|
|
11
11
|
import Nc from "react-dom";
|
|
12
12
|
import { X as Xo, XCircle as yp, CheckCircle2 as bp, Loader2 as An, ChevronUp as wp, ChevronDown as vp, Loader as Va, ChevronLeft as Sp, ChevronRight as hr, Copy as jc, Edit as _c, RotateCcw as Pc, Bot as Ws, Wrench as Cp, User as kp, Check as Oc, Circle as Tp, Square as Ip, Send as Rp, Paperclip as Ka, Plus as Ep, FileSpreadsheet as Ap, Edit3 as oo, Search as Np, MoreVertical as jp, Share2 as _p, Trash2 as Pp, MessageSquare as Mc, MoreHorizontal as Op, Maximize2 as Mp, Minimize2 as Dp, History as Lp } from "lucide-react";
|
|
13
|
-
function
|
|
13
|
+
function Ck(...e) {
|
|
14
14
|
return Rc(Ic(e));
|
|
15
15
|
}
|
|
16
16
|
function Dc(e, t) {
|
|
@@ -1747,22 +1747,22 @@ pt.getAdapter = nu.getAdapter;
|
|
|
1747
1747
|
pt.HttpStatusCode = wi;
|
|
1748
1748
|
pt.default = pt;
|
|
1749
1749
|
const {
|
|
1750
|
-
Axios:
|
|
1751
|
-
AxiosError:
|
|
1752
|
-
CanceledError:
|
|
1750
|
+
Axios: Ik,
|
|
1751
|
+
AxiosError: Rk,
|
|
1752
|
+
CanceledError: Ek,
|
|
1753
1753
|
isCancel: cl,
|
|
1754
|
-
CancelToken:
|
|
1755
|
-
VERSION:
|
|
1756
|
-
all:
|
|
1757
|
-
Cancel:
|
|
1758
|
-
isAxiosError:
|
|
1759
|
-
spread:
|
|
1760
|
-
toFormData:
|
|
1761
|
-
AxiosHeaders:
|
|
1762
|
-
HttpStatusCode:
|
|
1763
|
-
formToJSON:
|
|
1764
|
-
getAdapter:
|
|
1765
|
-
mergeConfig:
|
|
1754
|
+
CancelToken: Ak,
|
|
1755
|
+
VERSION: Nk,
|
|
1756
|
+
all: jk,
|
|
1757
|
+
Cancel: _k,
|
|
1758
|
+
isAxiosError: Pk,
|
|
1759
|
+
spread: Ok,
|
|
1760
|
+
toFormData: Mk,
|
|
1761
|
+
AxiosHeaders: Dk,
|
|
1762
|
+
HttpStatusCode: Lk,
|
|
1763
|
+
formToJSON: $k,
|
|
1764
|
+
getAdapter: Fk,
|
|
1765
|
+
mergeConfig: zk
|
|
1766
1766
|
} = pt, Kn = {
|
|
1767
1767
|
authToken: "authToken",
|
|
1768
1768
|
authTokenExpiresAt: "authTokenExpiresAt",
|
|
@@ -3693,7 +3693,7 @@ function Gr(e) {
|
|
|
3693
3693
|
return "";
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
|
-
function
|
|
3696
|
+
function Bk(e) {
|
|
3697
3697
|
const t = Gr(e);
|
|
3698
3698
|
return typeof e == "string" && Rg(e) ? { content: e, isMarkdown: !0 } : { content: t, isMarkdown: !1 };
|
|
3699
3699
|
}
|
|
@@ -3769,6 +3769,9 @@ function Yg(e) {
|
|
|
3769
3769
|
value: t
|
|
3770
3770
|
};
|
|
3771
3771
|
}
|
|
3772
|
+
function Xg(e, t) {
|
|
3773
|
+
return t < e.length - 1;
|
|
3774
|
+
}
|
|
3772
3775
|
function $o(e) {
|
|
3773
3776
|
var s;
|
|
3774
3777
|
const t = e.map((i) => Ui(i)).filter(Boolean), n = /* @__PURE__ */ new Map();
|
|
@@ -3781,25 +3784,18 @@ function $o(e) {
|
|
|
3781
3784
|
if (i.role !== "assistant" || !Array.isArray(i.toolCalls) || i.toolCalls.length === 0)
|
|
3782
3785
|
return i;
|
|
3783
3786
|
const c = i.toolCalls.map((l) => {
|
|
3784
|
-
var
|
|
3785
|
-
const u = l.id || l.toolCallId || l.tool_call_id, f = u ? n.get(u) : void 0, h = f && Array.isArray(f.content) ? (
|
|
3787
|
+
var w;
|
|
3788
|
+
const u = l.id || l.toolCallId || l.tool_call_id, f = u ? n.get(u) : void 0, h = f && Array.isArray(f.content) ? (w = f.content.find((k) => k.type === "text")) == null ? void 0 : w.text : typeof (f == null ? void 0 : f.content) == "string" ? f == null ? void 0 : f.content : void 0;
|
|
3786
3789
|
let p = (f == null ? void 0 : f.artifact) ?? l.artifact;
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
const x = p.metadata || {};
|
|
3791
|
-
x.status !== "failed" && (p = {
|
|
3792
|
-
...p,
|
|
3793
|
-
metadata: {
|
|
3794
|
-
...x,
|
|
3795
|
-
status: "in_progress"
|
|
3796
|
-
}
|
|
3797
|
-
});
|
|
3790
|
+
if (!p && l.args) {
|
|
3791
|
+
const k = l.args;
|
|
3792
|
+
typeof k == "object" && k !== null && (k.type || k.question) && (p = k);
|
|
3798
3793
|
}
|
|
3794
|
+
const m = f ? t.indexOf(f) : -1, g = Math.max(a, m), x = Xg(t, g), y = f && x ? "completed" : l.status === "failed" ? "failed" : "running";
|
|
3799
3795
|
return {
|
|
3800
3796
|
...l,
|
|
3801
3797
|
id: u || l.id,
|
|
3802
|
-
status:
|
|
3798
|
+
status: y,
|
|
3803
3799
|
content: h,
|
|
3804
3800
|
artifact: p
|
|
3805
3801
|
};
|
|
@@ -3841,7 +3837,7 @@ function $o(e) {
|
|
|
3841
3837
|
function Ar(e, t, n) {
|
|
3842
3838
|
return t < 0 || t >= e.length ? e : [...e.slice(0, t), n, ...e.slice(t + 1)];
|
|
3843
3839
|
}
|
|
3844
|
-
function
|
|
3840
|
+
function Jg(e) {
|
|
3845
3841
|
let t = !1;
|
|
3846
3842
|
const n = e.map((r) => {
|
|
3847
3843
|
var s;
|
|
@@ -3850,7 +3846,7 @@ function Xg(e) {
|
|
|
3850
3846
|
});
|
|
3851
3847
|
return t ? n : e;
|
|
3852
3848
|
}
|
|
3853
|
-
function
|
|
3849
|
+
function Zg(e, t, n) {
|
|
3854
3850
|
for (let r = e.length - 1; r >= 0; r--)
|
|
3855
3851
|
if (e[r].role === "assistant") {
|
|
3856
3852
|
const s = { ...e[r], checkpointId: t, checkpointNs: n ?? void 0 };
|
|
@@ -3858,7 +3854,7 @@ function Jg(e, t, n) {
|
|
|
3858
3854
|
}
|
|
3859
3855
|
return e;
|
|
3860
3856
|
}
|
|
3861
|
-
function
|
|
3857
|
+
function Qg(e) {
|
|
3862
3858
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
3863
3859
|
return e.slice().sort((r, o) => {
|
|
3864
3860
|
const s = r.createdAt ? Date.parse(r.createdAt) : 0, i = o.createdAt ? Date.parse(o.createdAt) : 0;
|
|
@@ -3872,7 +3868,7 @@ function Zg(e) {
|
|
|
3872
3868
|
return s - i;
|
|
3873
3869
|
}), n;
|
|
3874
3870
|
}
|
|
3875
|
-
const
|
|
3871
|
+
const ex = {
|
|
3876
3872
|
messages: [],
|
|
3877
3873
|
assemblingId: null,
|
|
3878
3874
|
lastCheckpointId: null,
|
|
@@ -3881,7 +3877,7 @@ const Qg = {
|
|
|
3881
3877
|
pendingInterrupt: null,
|
|
3882
3878
|
values: {}
|
|
3883
3879
|
};
|
|
3884
|
-
function
|
|
3880
|
+
function tx(e, t) {
|
|
3885
3881
|
var n;
|
|
3886
3882
|
switch (t.type) {
|
|
3887
3883
|
case "reset":
|
|
@@ -3936,8 +3932,8 @@ function ex(e, t) {
|
|
|
3936
3932
|
return e;
|
|
3937
3933
|
}
|
|
3938
3934
|
}
|
|
3939
|
-
function
|
|
3940
|
-
const [t, n] = hp(
|
|
3935
|
+
function nx(e = []) {
|
|
3936
|
+
const [t, n] = hp(tx, { ...ex, messages: e }), r = ve([]), o = ve(null), s = ve(null), i = ne(() => {
|
|
3941
3937
|
o.current !== null && typeof window < "u" && window.cancelAnimationFrame(o.current), s.current !== null && clearTimeout(s.current), o.current = null, s.current = null;
|
|
3942
3938
|
const u = r.current;
|
|
3943
3939
|
u.length && (r.current = [], n({ type: "batch", payload: { events: u } }));
|
|
@@ -3960,17 +3956,17 @@ function tx(e = []) {
|
|
|
3960
3956
|
}
|
|
3961
3957
|
function gl(e, t) {
|
|
3962
3958
|
if (t.type === "tool.start")
|
|
3963
|
-
return ox(e, t);
|
|
3964
|
-
if (t.type === "tool.progress")
|
|
3965
3959
|
return sx(e, t);
|
|
3960
|
+
if (t.type === "tool.progress")
|
|
3961
|
+
return ix(e, t);
|
|
3966
3962
|
if (t.type === "tool.end") {
|
|
3967
3963
|
const n = { ...t };
|
|
3968
|
-
return delete n.artifact,
|
|
3964
|
+
return delete n.artifact, ax(e, n);
|
|
3969
3965
|
}
|
|
3970
3966
|
if (t.type === "artifact.update")
|
|
3971
|
-
return
|
|
3967
|
+
return lx(e, t);
|
|
3972
3968
|
if (t.type === "checkpoint") {
|
|
3973
|
-
const n = t.checkpointNs ?? e.lastCheckpointNs ?? null, r =
|
|
3969
|
+
const n = t.checkpointNs ?? e.lastCheckpointNs ?? null, r = Zg(e.messages, t.checkpointId, n);
|
|
3974
3970
|
return { ...e, lastCheckpointId: t.checkpointId, lastCheckpointNs: n, messages: r };
|
|
3975
3971
|
}
|
|
3976
3972
|
if (t.type === "error") {
|
|
@@ -3983,7 +3979,7 @@ function gl(e, t) {
|
|
|
3983
3979
|
return { ...e, messages: [...e.messages, n] };
|
|
3984
3980
|
}
|
|
3985
3981
|
if (t.type === "state_history") {
|
|
3986
|
-
const n = pr(t), r = n.interrupt, o = n.latest, s =
|
|
3982
|
+
const n = pr(t), r = n.interrupt, o = n.latest, s = Qg(n.checkpoints);
|
|
3987
3983
|
let i = s.length ? s : o == null ? void 0 : o.messages;
|
|
3988
3984
|
if (i) {
|
|
3989
3985
|
if (e.assemblingId && !i.some((a) => a.id === e.assemblingId)) {
|
|
@@ -3992,7 +3988,7 @@ function gl(e, t) {
|
|
|
3992
3988
|
}
|
|
3993
3989
|
i = $o(i);
|
|
3994
3990
|
} else
|
|
3995
|
-
i = r === null ?
|
|
3991
|
+
i = r === null ? Jg(e.messages) : e.messages;
|
|
3996
3992
|
return {
|
|
3997
3993
|
...e,
|
|
3998
3994
|
messages: i,
|
|
@@ -4043,7 +4039,7 @@ function Ki(e, t) {
|
|
|
4043
4039
|
}
|
|
4044
4040
|
return -1;
|
|
4045
4041
|
}
|
|
4046
|
-
function
|
|
4042
|
+
function rx(e, t) {
|
|
4047
4043
|
var n;
|
|
4048
4044
|
if (!t) return -1;
|
|
4049
4045
|
for (let r = e.length - 1; r >= 0; r--) {
|
|
@@ -4054,14 +4050,14 @@ function nx(e, t) {
|
|
|
4054
4050
|
return -1;
|
|
4055
4051
|
}
|
|
4056
4052
|
function qi(e, t, n) {
|
|
4057
|
-
const r =
|
|
4053
|
+
const r = rx(e, t);
|
|
4058
4054
|
if (r === -1) return e;
|
|
4059
4055
|
const o = e[r], s = (o.toolCalls ?? []).map(
|
|
4060
4056
|
(i) => i.id === t ? { ...i, ...n } : i
|
|
4061
4057
|
);
|
|
4062
4058
|
return Ar(e, r, { ...o, toolCalls: s });
|
|
4063
4059
|
}
|
|
4064
|
-
function
|
|
4060
|
+
function ox(e) {
|
|
4065
4061
|
if (e == null)
|
|
4066
4062
|
return [];
|
|
4067
4063
|
const t = wr(e);
|
|
@@ -4080,7 +4076,7 @@ function Gi(e, t) {
|
|
|
4080
4076
|
additionalKwargs: o
|
|
4081
4077
|
};
|
|
4082
4078
|
}
|
|
4083
|
-
function
|
|
4079
|
+
function sx(e, t) {
|
|
4084
4080
|
const n = Vi(t), r = t.name ?? t.tool ?? void 0, o = mu(t), s = {
|
|
4085
4081
|
type: t.type,
|
|
4086
4082
|
content: `Starting ${r ?? "tool"}...`,
|
|
@@ -4108,7 +4104,7 @@ function ox(e, t) {
|
|
|
4108
4104
|
const c = gu(o, n, r, t.args), l = Gi(c, s);
|
|
4109
4105
|
return { ...e, messages: [...i, l] };
|
|
4110
4106
|
}
|
|
4111
|
-
function
|
|
4107
|
+
function ix(e, t) {
|
|
4112
4108
|
var l, u, f;
|
|
4113
4109
|
const n = t.id ?? t.callId ?? ((l = t.data) == null ? void 0 : l.id) ?? Vi(t);
|
|
4114
4110
|
if (!n) return e;
|
|
@@ -4128,7 +4124,7 @@ function sx(e, t) {
|
|
|
4128
4124
|
const c = Gi(i[a], s);
|
|
4129
4125
|
return { ...e, messages: Ar(i, a, c) };
|
|
4130
4126
|
}
|
|
4131
|
-
function
|
|
4127
|
+
function ax(e, t) {
|
|
4132
4128
|
const n = Vi(t), r = mu(t);
|
|
4133
4129
|
let o = e.messages;
|
|
4134
4130
|
const s = t.content ?? t.error ?? null, i = typeof s == "string" ? s : JSON.stringify(s), a = wr(s);
|
|
@@ -4143,7 +4139,7 @@ function ix(e, t) {
|
|
|
4143
4139
|
const y = t.name ?? t.tool ?? void 0;
|
|
4144
4140
|
o = [...o, gu(r, n, y, {})], l = o.length - 1;
|
|
4145
4141
|
}
|
|
4146
|
-
const u = o[l], f =
|
|
4142
|
+
const u = o[l], f = ox(s), h = [...u.content, ...f], p = {
|
|
4147
4143
|
type: t.type,
|
|
4148
4144
|
content: typeof t.content == "string" ? t.content : void 0,
|
|
4149
4145
|
seq: t.seq ?? null,
|
|
@@ -4162,7 +4158,7 @@ function ix(e, t) {
|
|
|
4162
4158
|
};
|
|
4163
4159
|
return { ...e, messages: Ar(o, l, x) };
|
|
4164
4160
|
}
|
|
4165
|
-
function
|
|
4161
|
+
function lx(e, t) {
|
|
4166
4162
|
const n = t.artifactId ?? t.artifact_id, r = Gg(e.messages, n);
|
|
4167
4163
|
if (!r) {
|
|
4168
4164
|
const i = {
|
|
@@ -4202,7 +4198,7 @@ function ax(e, t) {
|
|
|
4202
4198
|
};
|
|
4203
4199
|
}
|
|
4204
4200
|
const xl = 120;
|
|
4205
|
-
function
|
|
4201
|
+
function cx(e) {
|
|
4206
4202
|
if (!Array.isArray(e))
|
|
4207
4203
|
return "";
|
|
4208
4204
|
const t = e.filter((r) => !!(r && r.type === "text")).map((r) => (r.text ?? "").trim()).filter(Boolean);
|
|
@@ -4211,10 +4207,10 @@ function lx(e) {
|
|
|
4211
4207
|
const n = t.join(" ").replace(/\s+/g, " ").trim();
|
|
4212
4208
|
return n ? n.length > xl ? `${n.slice(0, xl - 3)}…` : n : "";
|
|
4213
4209
|
}
|
|
4214
|
-
function cx(e) {
|
|
4215
|
-
return lx(e.content) || "";
|
|
4216
|
-
}
|
|
4217
4210
|
function ux(e) {
|
|
4211
|
+
return cx(e.content) || "";
|
|
4212
|
+
}
|
|
4213
|
+
function dx(e) {
|
|
4218
4214
|
const t = /* @__PURE__ */ new Map(), n = [], r = /* @__PURE__ */ new Map(), o = [];
|
|
4219
4215
|
for (let l = 0; l < e.length; l++) {
|
|
4220
4216
|
const u = e[l], f = u.checkpointId, h = f ?? `cp-${l}`, p = u.metadata ?? {}, m = typeof p.step == "number" ? p.step : null, g = typeof p.source == "string" ? p.source : null;
|
|
@@ -4234,7 +4230,7 @@ function ux(e) {
|
|
|
4234
4230
|
userMessageId: x
|
|
4235
4231
|
};
|
|
4236
4232
|
if (o.push(C), f && t.set(f, C), f && y) {
|
|
4237
|
-
const v =
|
|
4233
|
+
const v = ux(y);
|
|
4238
4234
|
v && r.set(f, v);
|
|
4239
4235
|
}
|
|
4240
4236
|
n.push({
|
|
@@ -4287,7 +4283,7 @@ function ux(e) {
|
|
|
4287
4283
|
}
|
|
4288
4284
|
};
|
|
4289
4285
|
}
|
|
4290
|
-
function
|
|
4286
|
+
function fx(e, t, n) {
|
|
4291
4287
|
if (!e)
|
|
4292
4288
|
return { attemptCount: 1, attemptIndex: 0, attempts: [] };
|
|
4293
4289
|
const r = n.getMessageAttempts(e);
|
|
@@ -4304,10 +4300,10 @@ function dx(e, t, n) {
|
|
|
4304
4300
|
attempts: r
|
|
4305
4301
|
};
|
|
4306
4302
|
}
|
|
4307
|
-
function
|
|
4308
|
-
return De(() =>
|
|
4303
|
+
function hx(e) {
|
|
4304
|
+
return De(() => dx(e), [e]);
|
|
4309
4305
|
}
|
|
4310
|
-
function
|
|
4306
|
+
function px({
|
|
4311
4307
|
api: e,
|
|
4312
4308
|
seed: t,
|
|
4313
4309
|
onError: n,
|
|
@@ -4322,7 +4318,7 @@ function hx({
|
|
|
4322
4318
|
const [u, f] = ue(null), p = De(
|
|
4323
4319
|
() => pr(u),
|
|
4324
4320
|
[u]
|
|
4325
|
-
).checkpoints, m =
|
|
4321
|
+
).checkpoints, m = hx(p), g = m.timeline, [x, y] = ue(!1), [w, k] = ue(!1), [I, C] = ue(null), v = ve(r), T = ve(null), A = ve(null), N = ve(null), D = ve(null), H = ve(null), q = ve(/* @__PURE__ */ new Map()), W = ve(null);
|
|
4326
4322
|
Pe(() => {
|
|
4327
4323
|
v.current = r;
|
|
4328
4324
|
}, [r]);
|
|
@@ -4521,13 +4517,13 @@ function vs() {
|
|
|
4521
4517
|
if (!e) throw new Error("useThreadState must be used within a ThreadStateProvider");
|
|
4522
4518
|
return e;
|
|
4523
4519
|
}
|
|
4524
|
-
function
|
|
4520
|
+
function mx() {
|
|
4525
4521
|
const e = kr(yu);
|
|
4526
4522
|
if (!e)
|
|
4527
4523
|
throw new Error("useThreadStateUpdater must be used within a ThreadStateProvider");
|
|
4528
4524
|
return e;
|
|
4529
4525
|
}
|
|
4530
|
-
function
|
|
4526
|
+
function gx({
|
|
4531
4527
|
children: e,
|
|
4532
4528
|
initialThreadId: t = null,
|
|
4533
4529
|
initialCheckpointId: n = null,
|
|
@@ -4536,7 +4532,7 @@ function mx({
|
|
|
4536
4532
|
isStreaming: s,
|
|
4537
4533
|
onError: i
|
|
4538
4534
|
}) {
|
|
4539
|
-
const { chatApi: a } = Rr(), { currentThreadId: c } = co(), { state: l, seed: u, onEvent: f, dispatch: h } =
|
|
4535
|
+
const { chatApi: a } = Rr(), { currentThreadId: c } = co(), { state: l, seed: u, onEvent: f, dispatch: h } = nx(), {
|
|
4540
4536
|
threadCheckpoints: p,
|
|
4541
4537
|
threadTimeline: m,
|
|
4542
4538
|
checkpointIndex: g,
|
|
@@ -4551,7 +4547,7 @@ function mx({
|
|
|
4551
4547
|
markSkipNextLoad: A,
|
|
4552
4548
|
markStreamPendingThread: N,
|
|
4553
4549
|
resetHistoryState: D
|
|
4554
|
-
} =
|
|
4550
|
+
} = px({
|
|
4555
4551
|
api: a,
|
|
4556
4552
|
seed: u,
|
|
4557
4553
|
onError: i,
|
|
@@ -4678,23 +4674,23 @@ function yl(e, t) {
|
|
|
4678
4674
|
const r = Gn(n.configurable) ?? n;
|
|
4679
4675
|
return zr(r, t) ?? null;
|
|
4680
4676
|
}
|
|
4681
|
-
function
|
|
4677
|
+
function xx(e) {
|
|
4682
4678
|
const t = yl(e, ["checkpoint_id", "checkpointId"]);
|
|
4683
4679
|
if (!t) return null;
|
|
4684
4680
|
const n = yl(e, ["checkpoint_ns", "checkpointNs"]);
|
|
4685
4681
|
return { checkpointId: t, checkpointNs: n };
|
|
4686
4682
|
}
|
|
4687
|
-
function
|
|
4683
|
+
function yx(e, t) {
|
|
4688
4684
|
const n = typeof e.step == "number" ? e.step : Number.POSITIVE_INFINITY, r = typeof t.step == "number" ? t.step : Number.POSITIVE_INFINITY;
|
|
4689
4685
|
if (n !== r) return n - r;
|
|
4690
4686
|
const o = e.createdAt ? Date.parse(e.createdAt) : 0, s = t.createdAt ? Date.parse(t.createdAt) : 0;
|
|
4691
4687
|
return o - s;
|
|
4692
4688
|
}
|
|
4693
|
-
function
|
|
4694
|
-
const n = [...e].sort(
|
|
4689
|
+
function bx(e, t) {
|
|
4690
|
+
const n = [...e].sort(yx);
|
|
4695
4691
|
for (const r of n) {
|
|
4696
4692
|
if (r.messageId !== t) continue;
|
|
4697
|
-
const o =
|
|
4693
|
+
const o = xx(r.parentConfig);
|
|
4698
4694
|
if (!o)
|
|
4699
4695
|
throw new Error(`Parent checkpoint info missing for message ${t}`);
|
|
4700
4696
|
return o;
|
|
@@ -4702,7 +4698,7 @@ function yx(e, t) {
|
|
|
4702
4698
|
throw new Error(`Message ${t} not found in timeline`);
|
|
4703
4699
|
}
|
|
4704
4700
|
const bu = Cr(null), wu = Cr(!1);
|
|
4705
|
-
function
|
|
4701
|
+
function wx({
|
|
4706
4702
|
children: e,
|
|
4707
4703
|
initialThreadId: t = null,
|
|
4708
4704
|
initialCheckpointId: n = null,
|
|
@@ -4724,7 +4720,7 @@ function bx({
|
|
|
4724
4720
|
onError: s,
|
|
4725
4721
|
onThreadChange: a,
|
|
4726
4722
|
children: /* @__PURE__ */ d.jsx(
|
|
4727
|
-
|
|
4723
|
+
gx,
|
|
4728
4724
|
{
|
|
4729
4725
|
initialThreadId: t,
|
|
4730
4726
|
initialCheckpointId: n,
|
|
@@ -4733,7 +4729,7 @@ function bx({
|
|
|
4733
4729
|
onError: s,
|
|
4734
4730
|
isStreaming: k,
|
|
4735
4731
|
children: /* @__PURE__ */ d.jsx(wu.Provider, { value: !0, children: /* @__PURE__ */ d.jsx(
|
|
4736
|
-
|
|
4732
|
+
vx,
|
|
4737
4733
|
{
|
|
4738
4734
|
api: u,
|
|
4739
4735
|
streamApi: { stream: p, stop: m, clear: g, isStreaming: x, error: y, connected: w },
|
|
@@ -4749,7 +4745,7 @@ function bx({
|
|
|
4749
4745
|
}
|
|
4750
4746
|
);
|
|
4751
4747
|
}
|
|
4752
|
-
function
|
|
4748
|
+
function vx({
|
|
4753
4749
|
children: e,
|
|
4754
4750
|
api: t,
|
|
4755
4751
|
streamApi: n,
|
|
@@ -4773,7 +4769,7 @@ function wx({
|
|
|
4773
4769
|
pushUser: A,
|
|
4774
4770
|
onEvent: N,
|
|
4775
4771
|
messages: D
|
|
4776
|
-
} = vs(), { registerClearThread: H, registerRespondToInterrupt: q } =
|
|
4772
|
+
} = vs(), { registerClearThread: H, registerRespondToInterrupt: q } = mx(), W = ne(
|
|
4777
4773
|
(B) => {
|
|
4778
4774
|
g(B), m.current !== B.threadId && ((B.created ?? !m.current) && C(B.threadId), v(B.threadId), p(B.threadId));
|
|
4779
4775
|
},
|
|
@@ -4863,7 +4859,7 @@ function wx({
|
|
|
4863
4859
|
He.length ? nt.messages = He : "messages" in nt || (nt.messages = []);
|
|
4864
4860
|
let xt = (R == null ? void 0 : R.checkpointId) ?? w.id ?? void 0, at = (R == null ? void 0 : R.checkpointNs) ?? w.namespace ?? void 0;
|
|
4865
4861
|
if (We && xe) {
|
|
4866
|
-
const Le =
|
|
4862
|
+
const Le = bx(k, xe);
|
|
4867
4863
|
xt = Le.checkpointId, at = Le.checkpointNs ?? void 0;
|
|
4868
4864
|
}
|
|
4869
4865
|
const Ue = {
|
|
@@ -4901,13 +4897,13 @@ function vu() {
|
|
|
4901
4897
|
if (!e) throw new Error("useStream must be used within StreamingProvider");
|
|
4902
4898
|
return e;
|
|
4903
4899
|
}
|
|
4904
|
-
function
|
|
4900
|
+
function Hk() {
|
|
4905
4901
|
return kr(wu);
|
|
4906
4902
|
}
|
|
4907
4903
|
function bl(e) {
|
|
4908
4904
|
return typeof e == "object" && e !== null;
|
|
4909
4905
|
}
|
|
4910
|
-
function
|
|
4906
|
+
function Sx(e, t) {
|
|
4911
4907
|
if (Object.is(e, t)) return !0;
|
|
4912
4908
|
if (!bl(e) || !bl(t)) return !1;
|
|
4913
4909
|
const n = Object.keys(e), r = Object.keys(t);
|
|
@@ -4918,18 +4914,18 @@ function vx(e, t) {
|
|
|
4918
4914
|
return !1;
|
|
4919
4915
|
return !0;
|
|
4920
4916
|
}
|
|
4921
|
-
function
|
|
4917
|
+
function Cx(e) {
|
|
4922
4918
|
const t = ve(e), n = ve(e);
|
|
4923
|
-
return
|
|
4919
|
+
return Sx(t.current, e) || (t.current = e, n.current = e), n.current;
|
|
4924
4920
|
}
|
|
4925
|
-
function
|
|
4921
|
+
function kx(e) {
|
|
4926
4922
|
const t = e.artifact && typeof e.artifact == "object" ? e.artifact : null, n = !t && e.content && typeof e.content == "object" ? e.content : null, r = t ?? n, o = (r == null ? void 0 : r.task_id) ?? (r == null ? void 0 : r.taskId) ?? null;
|
|
4927
4923
|
return typeof o == "string" ? o : null;
|
|
4928
4924
|
}
|
|
4929
|
-
function
|
|
4925
|
+
function Uk(e) {
|
|
4930
4926
|
const { setCurrentTaskId: t, getCurrentTaskId: n, onToolEnd: r } = e;
|
|
4931
4927
|
return (o) => {
|
|
4932
|
-
const s =
|
|
4928
|
+
const s = kx(o), i = (n == null ? void 0 : n()) ?? null;
|
|
4933
4929
|
s && s !== i && t(s), r == null || r(o);
|
|
4934
4930
|
};
|
|
4935
4931
|
}
|
|
@@ -4946,7 +4942,7 @@ function Fo({
|
|
|
4946
4942
|
onThreadChange: l,
|
|
4947
4943
|
onToolEnd: u
|
|
4948
4944
|
}) {
|
|
4949
|
-
const f =
|
|
4945
|
+
const f = Cx(t), h = Lr(a), p = Lr(c), m = Lr(i), g = Lr(l), x = Lr(u), y = De(
|
|
4950
4946
|
() => ({
|
|
4951
4947
|
initialThreadId: n,
|
|
4952
4948
|
initialCheckpointId: r,
|
|
@@ -4970,7 +4966,7 @@ function Fo({
|
|
|
4970
4966
|
x
|
|
4971
4967
|
]
|
|
4972
4968
|
);
|
|
4973
|
-
return /* @__PURE__ */ d.jsx(vg, { apiConfig: f, children: /* @__PURE__ */ d.jsx(
|
|
4969
|
+
return /* @__PURE__ */ d.jsx(vg, { apiConfig: f, children: /* @__PURE__ */ d.jsx(wx, { ...y, children: e }) });
|
|
4974
4970
|
}
|
|
4975
4971
|
function Lr(e) {
|
|
4976
4972
|
const t = ve(e);
|
|
@@ -5012,12 +5008,12 @@ function ku(...e) {
|
|
|
5012
5008
|
return t.trim().replace(/\/+$/, "");
|
|
5013
5009
|
return "";
|
|
5014
5010
|
}
|
|
5015
|
-
function
|
|
5011
|
+
function Tx() {
|
|
5016
5012
|
const e = {}, t = Su(), n = Cu();
|
|
5017
5013
|
return t && (e.baseUrl = t), n && (e.apiKey = n), e;
|
|
5018
5014
|
}
|
|
5019
|
-
function
|
|
5020
|
-
const e =
|
|
5015
|
+
function Ix() {
|
|
5016
|
+
const e = Tx(), t = Jn.getAuthToken(), n = Su();
|
|
5021
5017
|
return {
|
|
5022
5018
|
apiBaseUrl: ku(
|
|
5023
5019
|
e.baseUrl,
|
|
@@ -5036,7 +5032,7 @@ function Tx() {
|
|
|
5036
5032
|
};
|
|
5037
5033
|
}
|
|
5038
5034
|
const Tu = Kn.chatSettings;
|
|
5039
|
-
function
|
|
5035
|
+
function Rx() {
|
|
5040
5036
|
try {
|
|
5041
5037
|
const e = localStorage.getItem(Tu);
|
|
5042
5038
|
return e ? JSON.parse(e) : {};
|
|
@@ -5044,7 +5040,7 @@ function Ix() {
|
|
|
5044
5040
|
return console.error("Failed to parse stored settings:", e), {};
|
|
5045
5041
|
}
|
|
5046
5042
|
}
|
|
5047
|
-
function
|
|
5043
|
+
function Ex(e) {
|
|
5048
5044
|
try {
|
|
5049
5045
|
const t = {
|
|
5050
5046
|
...e,
|
|
@@ -5055,8 +5051,8 @@ function Rx(e) {
|
|
|
5055
5051
|
console.error("Failed to save settings:", t);
|
|
5056
5052
|
}
|
|
5057
5053
|
}
|
|
5058
|
-
function
|
|
5059
|
-
const e =
|
|
5054
|
+
function Wk() {
|
|
5055
|
+
const e = Ix(), t = Rx(), n = Jn.getAuthToken(), r = typeof t.apiBaseUrl == "string" ? t.apiBaseUrl : void 0;
|
|
5060
5056
|
return {
|
|
5061
5057
|
...e,
|
|
5062
5058
|
...t,
|
|
@@ -5070,16 +5066,16 @@ function Uk() {
|
|
|
5070
5066
|
)
|
|
5071
5067
|
};
|
|
5072
5068
|
}
|
|
5073
|
-
function
|
|
5069
|
+
function Vk(e) {
|
|
5074
5070
|
Jn.updateConfig({
|
|
5075
5071
|
baseUrl: e.apiBaseUrl,
|
|
5076
5072
|
apiKey: e.apiKey ?? void 0
|
|
5077
|
-
}),
|
|
5073
|
+
}), Ex(e);
|
|
5078
5074
|
}
|
|
5079
5075
|
function le(...e) {
|
|
5080
5076
|
return Rc(Ic(e));
|
|
5081
5077
|
}
|
|
5082
|
-
const
|
|
5078
|
+
const Ax = Ec(
|
|
5083
5079
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
5084
5080
|
{
|
|
5085
5081
|
variants: {
|
|
@@ -5109,7 +5105,7 @@ const Ex = Ec(
|
|
|
5109
5105
|
return /* @__PURE__ */ d.jsx(
|
|
5110
5106
|
i,
|
|
5111
5107
|
{
|
|
5112
|
-
className: le(
|
|
5108
|
+
className: le(Ax({ variant: t, size: n, className: e })),
|
|
5113
5109
|
ref: s,
|
|
5114
5110
|
...o
|
|
5115
5111
|
}
|
|
@@ -5121,7 +5117,7 @@ const Ss = 0, $n = 1, Nr = 2, Iu = 4;
|
|
|
5121
5117
|
function wl(e) {
|
|
5122
5118
|
return () => e;
|
|
5123
5119
|
}
|
|
5124
|
-
function
|
|
5120
|
+
function Nx(e) {
|
|
5125
5121
|
e();
|
|
5126
5122
|
}
|
|
5127
5123
|
function Ru(e, t) {
|
|
@@ -5130,15 +5126,15 @@ function Ru(e, t) {
|
|
|
5130
5126
|
function vl(e, t) {
|
|
5131
5127
|
return () => e(t);
|
|
5132
5128
|
}
|
|
5133
|
-
function
|
|
5129
|
+
function jx(e, t) {
|
|
5134
5130
|
return (n) => e(t, n);
|
|
5135
5131
|
}
|
|
5136
5132
|
function Yi(e) {
|
|
5137
5133
|
return e !== void 0;
|
|
5138
5134
|
}
|
|
5139
|
-
function
|
|
5135
|
+
function _x(...e) {
|
|
5140
5136
|
return () => {
|
|
5141
|
-
e.map(
|
|
5137
|
+
e.map(Nx);
|
|
5142
5138
|
};
|
|
5143
5139
|
}
|
|
5144
5140
|
function jr() {
|
|
@@ -5146,7 +5142,7 @@ function jr() {
|
|
|
5146
5142
|
function Cs(e, t) {
|
|
5147
5143
|
return t(e), e;
|
|
5148
5144
|
}
|
|
5149
|
-
function
|
|
5145
|
+
function Px(e, t) {
|
|
5150
5146
|
return t(e);
|
|
5151
5147
|
}
|
|
5152
5148
|
function tt(...e) {
|
|
@@ -5165,7 +5161,7 @@ function ht(e) {
|
|
|
5165
5161
|
return e(Iu);
|
|
5166
5162
|
}
|
|
5167
5163
|
function pe(e, t) {
|
|
5168
|
-
return Be(e,
|
|
5164
|
+
return Be(e, jx(t, Ss));
|
|
5169
5165
|
}
|
|
5170
5166
|
function on(e, t) {
|
|
5171
5167
|
const n = e($n, (r) => {
|
|
@@ -5204,7 +5200,7 @@ function hn(e) {
|
|
|
5204
5200
|
};
|
|
5205
5201
|
}
|
|
5206
5202
|
function Q(e, ...t) {
|
|
5207
|
-
const n =
|
|
5203
|
+
const n = Ox(...t);
|
|
5208
5204
|
return (r, o) => {
|
|
5209
5205
|
switch (r) {
|
|
5210
5206
|
case Nr:
|
|
@@ -5250,10 +5246,10 @@ function je(...e) {
|
|
|
5250
5246
|
n === o ? a() : r = a;
|
|
5251
5247
|
};
|
|
5252
5248
|
}
|
|
5253
|
-
function
|
|
5254
|
-
return (t) => e.reduceRight(
|
|
5249
|
+
function Ox(...e) {
|
|
5250
|
+
return (t) => e.reduceRight(Px, t);
|
|
5255
5251
|
}
|
|
5256
|
-
function
|
|
5252
|
+
function Mx(e) {
|
|
5257
5253
|
let t, n;
|
|
5258
5254
|
const r = () => t == null ? void 0 : t();
|
|
5259
5255
|
return function(o, s) {
|
|
@@ -5314,12 +5310,12 @@ function $e(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
|
5314
5310
|
return {
|
|
5315
5311
|
constructor: e,
|
|
5316
5312
|
dependencies: t,
|
|
5317
|
-
id:
|
|
5313
|
+
id: Dx(),
|
|
5318
5314
|
singleton: n
|
|
5319
5315
|
};
|
|
5320
5316
|
}
|
|
5321
|
-
const
|
|
5322
|
-
function
|
|
5317
|
+
const Dx = () => Symbol();
|
|
5318
|
+
function Lx(e) {
|
|
5323
5319
|
const t = /* @__PURE__ */ new Map(), n = ({ constructor: r, dependencies: o, id: s, singleton: i }) => {
|
|
5324
5320
|
if (i && t.has(s))
|
|
5325
5321
|
return t.get(s);
|
|
@@ -5357,17 +5353,17 @@ function Ci(...e) {
|
|
|
5357
5353
|
case Nr:
|
|
5358
5354
|
return;
|
|
5359
5355
|
case $n:
|
|
5360
|
-
return
|
|
5356
|
+
return _x(...e.map((r) => Be(r, n)));
|
|
5361
5357
|
}
|
|
5362
5358
|
};
|
|
5363
5359
|
}
|
|
5364
5360
|
var Bt = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Bt || {});
|
|
5365
|
-
const
|
|
5361
|
+
const $x = {
|
|
5366
5362
|
0: "debug",
|
|
5367
5363
|
3: "error",
|
|
5368
5364
|
1: "log",
|
|
5369
5365
|
2: "warn"
|
|
5370
|
-
},
|
|
5366
|
+
}, Fx = () => typeof globalThis > "u" ? window : globalThis, Fn = $e(
|
|
5371
5367
|
() => {
|
|
5372
5368
|
const e = oe(
|
|
5373
5369
|
3
|
|
@@ -5376,8 +5372,8 @@ const Lx = {
|
|
|
5376
5372
|
return {
|
|
5377
5373
|
log: oe((t, n, r = 1) => {
|
|
5378
5374
|
var o;
|
|
5379
|
-
const s = (o =
|
|
5380
|
-
r >= s && console[
|
|
5375
|
+
const s = (o = Fx().VIRTUOSO_LOG_LEVEL) != null ? o : ht(e);
|
|
5376
|
+
r >= s && console[$x[r]](
|
|
5381
5377
|
"%creact-virtuoso: %c%s %o",
|
|
5382
5378
|
"color: #0253b3; font-weight: bold",
|
|
5383
5379
|
"color: initial",
|
|
@@ -5409,10 +5405,10 @@ function Ji(e, t, n) {
|
|
|
5409
5405
|
i && t ? (s == null || s.observe(i), r.current = i) : (r.current && (s == null || s.unobserve(r.current)), r.current = null);
|
|
5410
5406
|
}, { callbackRef: o, ref: r };
|
|
5411
5407
|
}
|
|
5412
|
-
function
|
|
5408
|
+
function zx(e, t, n, r, o, s, i, a, c) {
|
|
5413
5409
|
const l = ee.useCallback(
|
|
5414
5410
|
(u) => {
|
|
5415
|
-
const f =
|
|
5411
|
+
const f = Bx(u.children, t, a ? "offsetWidth" : "offsetHeight", o);
|
|
5416
5412
|
let h = u.parentElement;
|
|
5417
5413
|
for (; !h.dataset.virtuosoScroller; )
|
|
5418
5414
|
h = h.parentElement;
|
|
@@ -5432,7 +5428,7 @@ function Fx(e, t, n, r, o, s, i, a, c) {
|
|
|
5432
5428
|
);
|
|
5433
5429
|
return Ji(l, n, c);
|
|
5434
5430
|
}
|
|
5435
|
-
function
|
|
5431
|
+
function Bx(e, t, n, r) {
|
|
5436
5432
|
const o = e.length;
|
|
5437
5433
|
if (o === 0)
|
|
5438
5434
|
return null;
|
|
@@ -5575,7 +5571,7 @@ function ks(e, t, n) {
|
|
|
5575
5571
|
if (qe(e))
|
|
5576
5572
|
return [];
|
|
5577
5573
|
const r = sn(e, t)[0];
|
|
5578
|
-
return
|
|
5574
|
+
return Hx(Ti(e, r, n));
|
|
5579
5575
|
}
|
|
5580
5576
|
function ki(e, t) {
|
|
5581
5577
|
if (qe(e)) return Yr;
|
|
@@ -5667,7 +5663,7 @@ function Ii(e) {
|
|
|
5667
5663
|
const { lvl: t, r: n } = e;
|
|
5668
5664
|
return !qe(n) && !qe(n.r) && n.lvl === t && n.r.lvl === t ? bt(n, { l: bt(e, { r: n.l }), lvl: t + 1 }) : e;
|
|
5669
5665
|
}
|
|
5670
|
-
function
|
|
5666
|
+
function Hx(e) {
|
|
5671
5667
|
return Nu(e, ({ k: t, v: n }) => ({ index: t, value: n }));
|
|
5672
5668
|
}
|
|
5673
5669
|
function Mu(e, t) {
|
|
@@ -5702,7 +5698,7 @@ function es(e, t, n, r = 0) {
|
|
|
5702
5698
|
}
|
|
5703
5699
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
5704
5700
|
}
|
|
5705
|
-
function
|
|
5701
|
+
function Ux(e, t, n, r) {
|
|
5706
5702
|
const o = es(e, t, r), s = es(e, n, r, o);
|
|
5707
5703
|
return e.slice(o, s + 1);
|
|
5708
5704
|
}
|
|
@@ -5715,7 +5711,7 @@ function Ts(e) {
|
|
|
5715
5711
|
function Qi({ index: e }, t) {
|
|
5716
5712
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
5717
5713
|
}
|
|
5718
|
-
function
|
|
5714
|
+
function Wx() {
|
|
5719
5715
|
return {
|
|
5720
5716
|
groupIndices: [],
|
|
5721
5717
|
groupOffsetTree: gr(),
|
|
@@ -5726,7 +5722,7 @@ function Ux() {
|
|
|
5726
5722
|
sizeTree: gr()
|
|
5727
5723
|
};
|
|
5728
5724
|
}
|
|
5729
|
-
function
|
|
5725
|
+
function Vx(e, t) {
|
|
5730
5726
|
let n = qe(e) ? 0 : 1 / 0;
|
|
5731
5727
|
for (const r of t) {
|
|
5732
5728
|
const { endIndex: o, size: s, startIndex: i } = r;
|
|
@@ -5735,7 +5731,7 @@ function Wx(e, t) {
|
|
|
5735
5731
|
continue;
|
|
5736
5732
|
}
|
|
5737
5733
|
const a = ks(e, i - 1, o + 1);
|
|
5738
|
-
if (a.some(
|
|
5734
|
+
if (a.some(Zx(r)))
|
|
5739
5735
|
continue;
|
|
5740
5736
|
let c = !1, l = !1;
|
|
5741
5737
|
for (const { end: u, start: f, value: h } of a)
|
|
@@ -5744,10 +5740,10 @@ function Wx(e, t) {
|
|
|
5744
5740
|
}
|
|
5745
5741
|
return [e, n];
|
|
5746
5742
|
}
|
|
5747
|
-
function
|
|
5743
|
+
function Kx(e) {
|
|
5748
5744
|
return typeof e.groupIndex < "u";
|
|
5749
5745
|
}
|
|
5750
|
-
function
|
|
5746
|
+
function qx({ offset: e }, t) {
|
|
5751
5747
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
5752
5748
|
}
|
|
5753
5749
|
function Zr(e, t, n) {
|
|
@@ -5765,7 +5761,7 @@ function Lu(e, t) {
|
|
|
5765
5761
|
return e + n;
|
|
5766
5762
|
}
|
|
5767
5763
|
function $u(e, t, n) {
|
|
5768
|
-
if (
|
|
5764
|
+
if (Kx(e))
|
|
5769
5765
|
return t.groupIndices[e.groupIndex] + 1;
|
|
5770
5766
|
{
|
|
5771
5767
|
const r = e.index === "LAST" ? n : e.index;
|
|
@@ -5773,10 +5769,10 @@ function $u(e, t, n) {
|
|
|
5773
5769
|
return o = Math.max(0, o, Math.min(n, o)), o;
|
|
5774
5770
|
}
|
|
5775
5771
|
}
|
|
5776
|
-
function
|
|
5777
|
-
return r > 0 && (t = Math.max(t, Du(e, r, Qi).offset)), Nu(
|
|
5772
|
+
function Gx(e, t, n, r = 0) {
|
|
5773
|
+
return r > 0 && (t = Math.max(t, Du(e, r, Qi).offset)), Nu(Ux(e, t, n, qx), Jx);
|
|
5778
5774
|
}
|
|
5779
|
-
function
|
|
5775
|
+
function Yx(e, [t, n, r, o]) {
|
|
5780
5776
|
t.length > 0 && r("received item sizes", t, Bt.DEBUG);
|
|
5781
5777
|
const s = e.sizeTree;
|
|
5782
5778
|
let i = s, a = 0;
|
|
@@ -5784,7 +5780,7 @@ function Gx(e, [t, n, r, o]) {
|
|
|
5784
5780
|
const h = t[0].size, p = t[1].size;
|
|
5785
5781
|
i = n.reduce((m, g) => Kt(Kt(m, g, h), g + 1, p), i);
|
|
5786
5782
|
} else
|
|
5787
|
-
[i, a] =
|
|
5783
|
+
[i, a] = Vx(i, t);
|
|
5788
5784
|
if (i === s)
|
|
5789
5785
|
return e;
|
|
5790
5786
|
const { lastIndex: c, lastOffset: l, lastSize: u, offsetTree: f } = Ri(e.offsetTree, a, i, o);
|
|
@@ -5798,7 +5794,7 @@ function Gx(e, [t, n, r, o]) {
|
|
|
5798
5794
|
sizeTree: i
|
|
5799
5795
|
};
|
|
5800
5796
|
}
|
|
5801
|
-
function
|
|
5797
|
+
function Xx(e) {
|
|
5802
5798
|
return Wn(e).map(({ k: t, v: n }, r, o) => {
|
|
5803
5799
|
const s = o[r + 1];
|
|
5804
5800
|
return { endIndex: s ? s.k - 1 : 1 / 0, size: n, startIndex: t };
|
|
@@ -5833,20 +5829,20 @@ function Ri(e, t, n, r) {
|
|
|
5833
5829
|
offsetTree: o
|
|
5834
5830
|
};
|
|
5835
5831
|
}
|
|
5836
|
-
function
|
|
5832
|
+
function Jx(e) {
|
|
5837
5833
|
return { index: e.index, value: e };
|
|
5838
5834
|
}
|
|
5839
|
-
function
|
|
5835
|
+
function Zx(e) {
|
|
5840
5836
|
const { endIndex: t, size: n, startIndex: r } = e;
|
|
5841
5837
|
return (o) => o.start === r && (o.end === t || o.end === 1 / 0) && o.value === n;
|
|
5842
5838
|
}
|
|
5843
|
-
const
|
|
5839
|
+
const Qx = {
|
|
5844
5840
|
offsetHeight: "height",
|
|
5845
5841
|
offsetWidth: "width"
|
|
5846
5842
|
}, wn = $e(
|
|
5847
5843
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
5848
|
-
const n = Me(), r = Me(), o = At(r, 0), s = Me(), i = Me(), a = oe(0), c = oe([]), l = oe(void 0), u = oe(void 0), f = oe((C, v) => jn(C,
|
|
5849
|
-
Q(n, je(c, e, p), mn(
|
|
5844
|
+
const n = Me(), r = Me(), o = At(r, 0), s = Me(), i = Me(), a = oe(0), c = oe([]), l = oe(void 0), u = oe(void 0), f = oe((C, v) => jn(C, Qx[v])), h = oe(void 0), p = oe(0), m = Wx(), g = At(
|
|
5845
|
+
Q(n, je(c, e, p), mn(Yx, m), et()),
|
|
5850
5846
|
m
|
|
5851
5847
|
), x = At(
|
|
5852
5848
|
Q(
|
|
@@ -6079,7 +6075,7 @@ const Zx = {
|
|
|
6079
6075
|
tt(Fn, Zi),
|
|
6080
6076
|
{ singleton: !0 }
|
|
6081
6077
|
);
|
|
6082
|
-
function
|
|
6078
|
+
function ey(e) {
|
|
6083
6079
|
return e.reduce(
|
|
6084
6080
|
(t, n) => (t.groupIndices.push(t.totalCount), t.totalCount += n + 1, t),
|
|
6085
6081
|
{
|
|
@@ -6090,7 +6086,7 @@ function Qx(e) {
|
|
|
6090
6086
|
}
|
|
6091
6087
|
const Fu = $e(
|
|
6092
6088
|
([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
|
|
6093
|
-
const s = Me(), i = Me(), a = qt(Q(s, ce(
|
|
6089
|
+
const s = Me(), i = Me(), a = qt(Q(s, ce(ey)));
|
|
6094
6090
|
return pe(
|
|
6095
6091
|
Q(
|
|
6096
6092
|
a,
|
|
@@ -6130,10 +6126,10 @@ const Fu = $e(
|
|
|
6130
6126
|
},
|
|
6131
6127
|
tt(Fn),
|
|
6132
6128
|
{ singleton: !0 }
|
|
6133
|
-
),
|
|
6129
|
+
), ty = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
|
|
6134
6130
|
function zu(e) {
|
|
6135
6131
|
const t = typeof e == "number" ? { index: e } : e;
|
|
6136
|
-
return t.align || (t.align = "start"), (!t.behavior || !
|
|
6132
|
+
return t.align || (t.align = "start"), (!t.behavior || !ty) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
6137
6133
|
}
|
|
6138
6134
|
const uo = $e(
|
|
6139
6135
|
([
|
|
@@ -6181,7 +6177,7 @@ const uo = $e(
|
|
|
6181
6177
|
R(E);
|
|
6182
6178
|
});
|
|
6183
6179
|
} else
|
|
6184
|
-
x = on(Q(t,
|
|
6180
|
+
x = on(Q(t, ny(150)), R);
|
|
6185
6181
|
return y = setTimeout(() => {
|
|
6186
6182
|
k();
|
|
6187
6183
|
}, 1200), Ae(c, !0), H("scrolling from index to", { behavior: ie, index: X, top: B }, Bt.DEBUG), { behavior: ie, top: B };
|
|
@@ -6198,7 +6194,7 @@ const uo = $e(
|
|
|
6198
6194
|
tt(wn, jt, Fn),
|
|
6199
6195
|
{ singleton: !0 }
|
|
6200
6196
|
);
|
|
6201
|
-
function
|
|
6197
|
+
function ny(e) {
|
|
6202
6198
|
return (t) => {
|
|
6203
6199
|
const n = setTimeout(() => {
|
|
6204
6200
|
t(!1);
|
|
@@ -6264,7 +6260,7 @@ const fo = $e(
|
|
|
6264
6260
|
function Bu(e, t) {
|
|
6265
6261
|
return Math.abs(e - t) < 1.01;
|
|
6266
6262
|
}
|
|
6267
|
-
const Qr = "up", Ur = "down",
|
|
6263
|
+
const Qr = "up", Ur = "down", ry = "none", oy = {
|
|
6268
6264
|
atBottom: !1,
|
|
6269
6265
|
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
6270
6266
|
state: {
|
|
@@ -6273,8 +6269,8 @@ const Qr = "up", Ur = "down", ny = "none", ry = {
|
|
|
6273
6269
|
scrollTop: 0,
|
|
6274
6270
|
viewportHeight: 0
|
|
6275
6271
|
}
|
|
6276
|
-
},
|
|
6277
|
-
const i = oe(!1), a = oe(!0), c = Me(), l = Me(), u = oe(4), f = oe(
|
|
6272
|
+
}, sy = 0, ho = $e(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
6273
|
+
const i = oe(!1), a = oe(!0), c = Me(), l = Me(), u = oe(4), f = oe(sy), h = At(
|
|
6278
6274
|
Q(
|
|
6279
6275
|
Ci(Q(be(o), Zn(1), hn(!0)), Q(be(o), Zn(1), hn(!1), Sl(100))),
|
|
6280
6276
|
et()
|
|
@@ -6316,7 +6312,7 @@ const Qr = "up", Ur = "down", ny = "none", ry = {
|
|
|
6316
6312
|
notAtBottomBecause: H,
|
|
6317
6313
|
state: D
|
|
6318
6314
|
};
|
|
6319
|
-
},
|
|
6315
|
+
}, oy),
|
|
6320
6316
|
et((w, k) => w && w.atBottom === k.atBottom)
|
|
6321
6317
|
)
|
|
6322
6318
|
), g = At(
|
|
@@ -6373,7 +6369,7 @@ const Qr = "up", Ur = "down", ny = "none", ry = {
|
|
|
6373
6369
|
ce((w) => w.direction)
|
|
6374
6370
|
),
|
|
6375
6371
|
x
|
|
6376
|
-
), pe(Q(r, Tn(50), hn(
|
|
6372
|
+
), pe(Q(r, Tn(50), hn(ry)), x);
|
|
6377
6373
|
const y = oe(0);
|
|
6378
6374
|
return pe(
|
|
6379
6375
|
Q(
|
|
@@ -6467,7 +6463,7 @@ const na = $e(
|
|
|
6467
6463
|
tt(jt),
|
|
6468
6464
|
{ singleton: !0 }
|
|
6469
6465
|
);
|
|
6470
|
-
function
|
|
6466
|
+
function iy(e, t, n) {
|
|
6471
6467
|
if (Ts(t)) {
|
|
6472
6468
|
const r = Lu(e, t);
|
|
6473
6469
|
return [
|
|
@@ -6604,7 +6600,7 @@ const rr = $e(
|
|
|
6604
6600
|
return L === 0 ? { ...Xs, totalCount: A } : Hu(L, D, N, W, P, G || []);
|
|
6605
6601
|
if (qe(U))
|
|
6606
6602
|
return L > 0 ? null : Bo(
|
|
6607
|
-
|
|
6603
|
+
iy(ta(D, A), Y, G),
|
|
6608
6604
|
[],
|
|
6609
6605
|
A,
|
|
6610
6606
|
P,
|
|
@@ -6623,7 +6619,7 @@ const rr = $e(
|
|
|
6623
6619
|
}
|
|
6624
6620
|
if (!H)
|
|
6625
6621
|
return Bo([], X, A, P, Y, W);
|
|
6626
|
-
const B = q.length > 0 ? q[q.length - 1] + 1 : 0, R =
|
|
6622
|
+
const B = q.length > 0 ? q[q.length - 1] + 1 : 0, R = Gx(ie, v, T, B);
|
|
6627
6623
|
if (R.length === 0)
|
|
6628
6624
|
return null;
|
|
6629
6625
|
const E = A - 1, M = Cs([], (O) => {
|
|
@@ -6739,7 +6735,7 @@ const rr = $e(
|
|
|
6739
6735
|
},
|
|
6740
6736
|
tt(jt, rr),
|
|
6741
6737
|
{ singleton: !0 }
|
|
6742
|
-
),
|
|
6738
|
+
), ay = $e(
|
|
6743
6739
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
6744
6740
|
const n = oe(!1), r = At(
|
|
6745
6741
|
Q(
|
|
@@ -6757,7 +6753,7 @@ const rr = $e(
|
|
|
6757
6753
|
{ singleton: !0 }
|
|
6758
6754
|
), Wu = $e(() => ({
|
|
6759
6755
|
context: oe(null)
|
|
6760
|
-
})),
|
|
6756
|
+
})), ly = ({
|
|
6761
6757
|
itemBottom: e,
|
|
6762
6758
|
itemTop: t,
|
|
6763
6759
|
locationParams: { align: n, behavior: r, ...o },
|
|
@@ -6776,7 +6772,7 @@ const rr = $e(
|
|
|
6776
6772
|
je(t, c, n, s, o, r, a),
|
|
6777
6773
|
je(e),
|
|
6778
6774
|
ce(([[f, h, p, m, g, x, y, w], k]) => {
|
|
6779
|
-
const { align: I, behavior: C, calculateViewLocation: v =
|
|
6775
|
+
const { align: I, behavior: C, calculateViewLocation: v = ly, done: T, ...A } = f, N = $u(f, h, m - 1), D = Zr(N, h.offsetTree, k) + g + x, H = D + sn(h.sizeTree, N)[1], q = w + x, W = w + p - y, P = v({
|
|
6780
6776
|
itemBottom: H,
|
|
6781
6777
|
itemTop: D,
|
|
6782
6778
|
locationParams: { align: I, behavior: C, ...A },
|
|
@@ -6807,7 +6803,7 @@ const rr = $e(
|
|
|
6807
6803
|
function Nl(e) {
|
|
6808
6804
|
return e ? e === "smooth" ? "smooth" : "auto" : !1;
|
|
6809
6805
|
}
|
|
6810
|
-
const
|
|
6806
|
+
const cy = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), uy = $e(
|
|
6811
6807
|
([
|
|
6812
6808
|
{ listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
|
|
6813
6809
|
{ atBottomState: o, isAtBottom: s },
|
|
@@ -6834,7 +6830,7 @@ const ly = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), cy = $e(
|
|
|
6834
6830
|
je(be(m), s, a, f),
|
|
6835
6831
|
ce(([[C, v], T, A, N, D]) => {
|
|
6836
6832
|
let H = v && N, q = "auto";
|
|
6837
|
-
return H && (q =
|
|
6833
|
+
return H && (q = cy(T, A || D), H = H && !!q), { followOutputBehavior: q, shouldFollow: H, totalCount: C };
|
|
6838
6834
|
}),
|
|
6839
6835
|
we(({ shouldFollow: C }) => C)
|
|
6840
6836
|
),
|
|
@@ -6912,7 +6908,7 @@ const ly = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), cy = $e(
|
|
|
6912
6908
|
Wu,
|
|
6913
6909
|
Vu
|
|
6914
6910
|
)
|
|
6915
|
-
),
|
|
6911
|
+
), dy = $e(
|
|
6916
6912
|
([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: o }, { initialItemCount: s, listState: i }, { didMount: a }]) => (pe(
|
|
6917
6913
|
Q(
|
|
6918
6914
|
a,
|
|
@@ -6925,7 +6921,7 @@ const ly = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), cy = $e(
|
|
|
6925
6921
|
), {}),
|
|
6926
6922
|
tt(wn, fo, rr, zn),
|
|
6927
6923
|
{ singleton: !0 }
|
|
6928
|
-
),
|
|
6924
|
+
), fy = $e(
|
|
6929
6925
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
6930
6926
|
const r = oe(0);
|
|
6931
6927
|
return Be(
|
|
@@ -7016,7 +7012,7 @@ const ly = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), cy = $e(
|
|
|
7016
7012
|
windowScrollTo: o,
|
|
7017
7013
|
windowViewportRect: r
|
|
7018
7014
|
};
|
|
7019
|
-
}, tt(jt)),
|
|
7015
|
+
}, tt(jt)), hy = $e(
|
|
7020
7016
|
([
|
|
7021
7017
|
{ sizeRanges: e, sizes: t },
|
|
7022
7018
|
{ headerHeight: n, scrollTop: r },
|
|
@@ -7031,10 +7027,10 @@ const ly = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), cy = $e(
|
|
|
7031
7027
|
je(t, r, i, f, h, n)
|
|
7032
7028
|
),
|
|
7033
7029
|
([p, m, g, x, y, w, k]) => {
|
|
7034
|
-
const I =
|
|
7030
|
+
const I = Xx(m.sizeTree);
|
|
7035
7031
|
x && y !== null && w !== null && (g = y.scrollTop - w.offsetTop), g -= k, p({ ranges: I, scrollTop: g });
|
|
7036
7032
|
}
|
|
7037
|
-
), pe(Q(u, we(Yi), ce(
|
|
7033
|
+
), pe(Q(u, we(Yi), ce(py)), o), pe(
|
|
7038
7034
|
Q(
|
|
7039
7035
|
s,
|
|
7040
7036
|
je(u),
|
|
@@ -7050,10 +7046,10 @@ const ly = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), cy = $e(
|
|
|
7050
7046
|
},
|
|
7051
7047
|
tt(wn, jt, fo, zn, ra)
|
|
7052
7048
|
);
|
|
7053
|
-
function
|
|
7049
|
+
function py(e) {
|
|
7054
7050
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
7055
7051
|
}
|
|
7056
|
-
const
|
|
7052
|
+
const my = $e(([{ topItemsIndexes: e }]) => {
|
|
7057
7053
|
const t = oe(0);
|
|
7058
7054
|
return pe(
|
|
7059
7055
|
Q(
|
|
@@ -7068,7 +7064,7 @@ function qu(e) {
|
|
|
7068
7064
|
let t = !1, n;
|
|
7069
7065
|
return () => (t || (t = !0, n = e()), n);
|
|
7070
7066
|
}
|
|
7071
|
-
const
|
|
7067
|
+
const gy = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), xy = $e(
|
|
7072
7068
|
([
|
|
7073
7069
|
{ deviation: e, scrollBy: t, scrollingInProgress: n, scrollTop: r },
|
|
7074
7070
|
{ isAtBottom: o, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: a },
|
|
@@ -7099,7 +7095,7 @@ const my = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7099
7095
|
y > 0 ? (Ae(t, { behavior: "auto", top: -y }), Ae(e, 0)) : (Ae(e, 0), Ae(t, { behavior: "auto", top: -y }));
|
|
7100
7096
|
}
|
|
7101
7097
|
return Be(Q(g, je(e, s)), ([y, w, k]) => {
|
|
7102
|
-
k &&
|
|
7098
|
+
k && gy() ? Ae(e, w - y) : x(-y);
|
|
7103
7099
|
}), Be(
|
|
7104
7100
|
Q(
|
|
7105
7101
|
gt(At(s, !1), e, m),
|
|
@@ -7147,7 +7143,7 @@ const my = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7147
7143
|
), { deviation: e };
|
|
7148
7144
|
},
|
|
7149
7145
|
tt(jt, ho, rr, wn, Fn, Zi)
|
|
7150
|
-
),
|
|
7146
|
+
), yy = $e(
|
|
7151
7147
|
([
|
|
7152
7148
|
e,
|
|
7153
7149
|
t,
|
|
@@ -7175,12 +7171,12 @@ const my = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7175
7171
|
}),
|
|
7176
7172
|
tt(
|
|
7177
7173
|
na,
|
|
7178
|
-
|
|
7174
|
+
dy,
|
|
7179
7175
|
zn,
|
|
7180
7176
|
Ku,
|
|
7181
7177
|
Uu,
|
|
7182
|
-
|
|
7183
|
-
|
|
7178
|
+
fy,
|
|
7179
|
+
ay,
|
|
7184
7180
|
ra,
|
|
7185
7181
|
Vu,
|
|
7186
7182
|
Fn,
|
|
@@ -7253,17 +7249,17 @@ const my = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7253
7249
|
wn,
|
|
7254
7250
|
fo,
|
|
7255
7251
|
jt,
|
|
7256
|
-
|
|
7257
|
-
|
|
7252
|
+
hy,
|
|
7253
|
+
uy,
|
|
7258
7254
|
rr,
|
|
7259
7255
|
uo,
|
|
7260
|
-
|
|
7261
|
-
|
|
7256
|
+
xy,
|
|
7257
|
+
my,
|
|
7262
7258
|
Fu,
|
|
7263
|
-
|
|
7259
|
+
yy
|
|
7264
7260
|
)
|
|
7265
7261
|
);
|
|
7266
|
-
function
|
|
7262
|
+
function by(e, t) {
|
|
7267
7263
|
const n = {}, r = {};
|
|
7268
7264
|
let o = 0;
|
|
7269
7265
|
const s = e.length;
|
|
@@ -7296,10 +7292,10 @@ function Yu(e, t, n) {
|
|
|
7296
7292
|
}, y), {});
|
|
7297
7293
|
}
|
|
7298
7294
|
function u(x) {
|
|
7299
|
-
return i.reduce((y, w) => (y[w] =
|
|
7295
|
+
return i.reduce((y, w) => (y[w] = Mx(x[t.events[w]]), y), {});
|
|
7300
7296
|
}
|
|
7301
7297
|
const f = ee.forwardRef((x, y) => {
|
|
7302
|
-
const { children: w, ...k } = x, [I] = ee.useState(() => Cs(
|
|
7298
|
+
const { children: w, ...k } = x, [I] = ee.useState(() => Cs(Lx(e), (T) => {
|
|
7303
7299
|
c(T, k);
|
|
7304
7300
|
})), [C] = ee.useState(vl(u, I));
|
|
7305
7301
|
wo(() => {
|
|
@@ -7312,7 +7308,7 @@ function Yu(e, t, n) {
|
|
|
7312
7308
|
c(I, k);
|
|
7313
7309
|
}), ee.useImperativeHandle(y, wl(l(I)));
|
|
7314
7310
|
const v = n;
|
|
7315
|
-
return /* @__PURE__ */ d.jsx(a.Provider, { value: I, children: n ? /* @__PURE__ */ d.jsx(v, { ...
|
|
7311
|
+
return /* @__PURE__ */ d.jsx(a.Provider, { value: I, children: n ? /* @__PURE__ */ d.jsx(v, { ...by([...r, ...o, ...i], k), children: w }) : w });
|
|
7316
7312
|
}), h = (x) => {
|
|
7317
7313
|
const y = ee.useContext(a);
|
|
7318
7314
|
return ee.useCallback(
|
|
@@ -7354,7 +7350,7 @@ const Xu = ee.createContext(void 0), Ju = ee.createContext(void 0), Zu = typeof
|
|
|
7354
7350
|
function Js(e) {
|
|
7355
7351
|
return "self" in e;
|
|
7356
7352
|
}
|
|
7357
|
-
function
|
|
7353
|
+
function wy(e) {
|
|
7358
7354
|
return "body" in e;
|
|
7359
7355
|
}
|
|
7360
7356
|
function Qu(e, t, n, r = jr, o, s) {
|
|
@@ -7362,7 +7358,7 @@ function Qu(e, t, n, r = jr, o, s) {
|
|
|
7362
7358
|
(h) => {
|
|
7363
7359
|
let p, m, g;
|
|
7364
7360
|
const x = h.target;
|
|
7365
|
-
if (
|
|
7361
|
+
if (wy(x) || Js(x)) {
|
|
7366
7362
|
const w = Js(x) ? x : x.defaultView;
|
|
7367
7363
|
g = s ? w.scrollX : w.scrollY, p = s ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight, m = s ? w.innerWidth : w.innerHeight;
|
|
7368
7364
|
} else
|
|
@@ -7417,7 +7413,7 @@ const Zs = "-webkit-sticky", jl = "sticky", oa = qu(() => {
|
|
|
7417
7413
|
function sa(e) {
|
|
7418
7414
|
return e;
|
|
7419
7415
|
}
|
|
7420
|
-
const
|
|
7416
|
+
const vy = /* @__PURE__ */ $e(() => {
|
|
7421
7417
|
const e = oe((a) => `Item ${a}`), t = oe((a) => `Group ${a}`), n = oe({}), r = oe(sa), o = oe("div"), s = oe(jr), i = (a, c = null) => At(
|
|
7422
7418
|
Q(
|
|
7423
7419
|
n,
|
|
@@ -7443,11 +7439,11 @@ const wy = /* @__PURE__ */ $e(() => {
|
|
|
7443
7439
|
ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
|
|
7444
7440
|
TopItemListComponent: i("TopItemList")
|
|
7445
7441
|
};
|
|
7446
|
-
}),
|
|
7442
|
+
}), Sy = /* @__PURE__ */ $e(
|
|
7447
7443
|
([e, t]) => ({ ...e, ...t }),
|
|
7448
|
-
tt(Gu,
|
|
7449
|
-
),
|
|
7450
|
-
const t = Ie("listState"), n = Zt("sizeRanges"), r = Ie("useWindowScroll"), o = Ie("customScrollParent"), s = Zt("windowScrollContainerState"), i = Zt("scrollContainerState"), a = o || r ? s : i, c = Ie("itemContent"), l = Ie("context"), u = Ie("groupContent"), f = Ie("trackItemSizes"), h = Ie("itemSize"), p = Ie("log"), m = Zt("gap"), g = Ie("horizontalDirection"), { callbackRef: x } =
|
|
7444
|
+
tt(Gu, vy)
|
|
7445
|
+
), Cy = ({ height: e }) => /* @__PURE__ */ d.jsx("div", { style: { height: e } }), ky = { overflowAnchor: "none", position: oa(), zIndex: 1 }, ed = { overflowAnchor: "none" }, Ty = { ...ed, display: "inline-block", height: "100%" }, _l = /* @__PURE__ */ ee.memo(function({ showTopList: e = !1 }) {
|
|
7446
|
+
const t = Ie("listState"), n = Zt("sizeRanges"), r = Ie("useWindowScroll"), o = Ie("customScrollParent"), s = Zt("windowScrollContainerState"), i = Zt("scrollContainerState"), a = o || r ? s : i, c = Ie("itemContent"), l = Ie("context"), u = Ie("groupContent"), f = Ie("trackItemSizes"), h = Ie("itemSize"), p = Ie("log"), m = Zt("gap"), g = Ie("horizontalDirection"), { callbackRef: x } = zx(
|
|
7451
7447
|
n,
|
|
7452
7448
|
h,
|
|
7453
7449
|
f,
|
|
@@ -7461,7 +7457,7 @@ const wy = /* @__PURE__ */ $e(() => {
|
|
|
7461
7457
|
ia("deviation", (P) => {
|
|
7462
7458
|
y !== P && w(P);
|
|
7463
7459
|
});
|
|
7464
|
-
const k = Ie("EmptyPlaceholder"), I = Ie("ScrollSeekPlaceholder") ||
|
|
7460
|
+
const k = Ie("EmptyPlaceholder"), I = Ie("ScrollSeekPlaceholder") || Cy, C = Ie("ListComponent"), v = Ie("ItemComponent"), T = Ie("GroupComponent"), A = Ie("computeItemKey"), N = Ie("isSeeking"), D = Ie("groupIndices").length > 0, H = Ie("alignToBottom"), q = Ie("initialItemFinalLocationReached"), W = e ? {} : {
|
|
7465
7461
|
boxSizing: "border-box",
|
|
7466
7462
|
...g ? {
|
|
7467
7463
|
display: "inline-block",
|
|
@@ -7504,33 +7500,33 @@ const wy = /* @__PURE__ */ $e(() => {
|
|
|
7504
7500
|
"data-item-index": P.index,
|
|
7505
7501
|
"data-known-size": P.size,
|
|
7506
7502
|
key: Y,
|
|
7507
|
-
style:
|
|
7503
|
+
style: ky
|
|
7508
7504
|
},
|
|
7509
7505
|
u(P.index, l)
|
|
7510
7506
|
) : /* @__PURE__ */ _o(
|
|
7511
7507
|
v,
|
|
7512
7508
|
{
|
|
7513
7509
|
...Rt(v, l),
|
|
7514
|
-
...
|
|
7510
|
+
...Ay(v, P.data),
|
|
7515
7511
|
"data-index": G,
|
|
7516
7512
|
"data-item-group-index": P.groupIndex,
|
|
7517
7513
|
"data-item-index": P.index,
|
|
7518
7514
|
"data-known-size": P.size,
|
|
7519
7515
|
key: Y,
|
|
7520
|
-
style: g ?
|
|
7516
|
+
style: g ? Ty : ed
|
|
7521
7517
|
},
|
|
7522
7518
|
D ? c(P.index, P.groupIndex, P.data, l) : c(P.index, P.data, l)
|
|
7523
7519
|
);
|
|
7524
7520
|
})
|
|
7525
7521
|
}
|
|
7526
7522
|
);
|
|
7527
|
-
}),
|
|
7523
|
+
}), Iy = {
|
|
7528
7524
|
height: "100%",
|
|
7529
7525
|
outline: "none",
|
|
7530
7526
|
overflowY: "auto",
|
|
7531
7527
|
position: "relative",
|
|
7532
7528
|
WebkitOverflowScrolling: "touch"
|
|
7533
|
-
},
|
|
7529
|
+
}, Ry = {
|
|
7534
7530
|
outline: "none",
|
|
7535
7531
|
overflowX: "auto",
|
|
7536
7532
|
position: "relative"
|
|
@@ -7540,7 +7536,7 @@ const wy = /* @__PURE__ */ $e(() => {
|
|
|
7540
7536
|
top: 0,
|
|
7541
7537
|
width: "100%",
|
|
7542
7538
|
...e ? { display: "flex", flexDirection: "column" } : {}
|
|
7543
|
-
}),
|
|
7539
|
+
}), Ey = {
|
|
7544
7540
|
position: oa(),
|
|
7545
7541
|
top: 0,
|
|
7546
7542
|
width: "100%",
|
|
@@ -7550,10 +7546,10 @@ function Rt(e, t) {
|
|
|
7550
7546
|
if (typeof e != "string")
|
|
7551
7547
|
return { context: t };
|
|
7552
7548
|
}
|
|
7553
|
-
function
|
|
7549
|
+
function Ay(e, t) {
|
|
7554
7550
|
return { item: typeof e == "string" ? void 0 : t };
|
|
7555
7551
|
}
|
|
7556
|
-
const
|
|
7552
|
+
const Ny = /* @__PURE__ */ ee.memo(function() {
|
|
7557
7553
|
const e = Ie("HeaderComponent"), t = Zt("headerHeight"), n = Ie("HeaderFooterTag"), r = nr(
|
|
7558
7554
|
ee.useMemo(
|
|
7559
7555
|
() => (s) => {
|
|
@@ -7565,7 +7561,7 @@ const Ay = /* @__PURE__ */ ee.memo(function() {
|
|
|
7565
7561
|
Ie("skipAnimationFrameInResizeObserver")
|
|
7566
7562
|
), o = Ie("context");
|
|
7567
7563
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...Rt(e, o) }) }) : null;
|
|
7568
|
-
}),
|
|
7564
|
+
}), jy = /* @__PURE__ */ ee.memo(function() {
|
|
7569
7565
|
const e = Ie("FooterComponent"), t = Zt("footerHeight"), n = Ie("HeaderFooterTag"), r = nr(
|
|
7570
7566
|
ee.useMemo(
|
|
7571
7567
|
() => (s) => {
|
|
@@ -7594,7 +7590,7 @@ function td({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
7594
7590
|
"data-testid": "virtuoso-scroller",
|
|
7595
7591
|
"data-virtuoso-scroller": !0,
|
|
7596
7592
|
ref: p,
|
|
7597
|
-
style: { ...f ?
|
|
7593
|
+
style: { ...f ? Ry : Iy, ...o },
|
|
7598
7594
|
tabIndex: 0,
|
|
7599
7595
|
...i,
|
|
7600
7596
|
...Rt(c, s),
|
|
@@ -7630,7 +7626,7 @@ function nd({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
7630
7626
|
);
|
|
7631
7627
|
});
|
|
7632
7628
|
}
|
|
7633
|
-
const
|
|
7629
|
+
const _y = ({ children: e }) => {
|
|
7634
7630
|
const t = ee.useContext(Xu), n = Zt("viewportHeight"), r = Zt("fixedItemHeight"), o = Ie("alignToBottom"), s = Ie("horizontalDirection"), i = ee.useMemo(
|
|
7635
7631
|
() => Ru(n, (c) => jn(c, s ? "width" : "height")),
|
|
7636
7632
|
[n, s]
|
|
@@ -7638,7 +7634,7 @@ const jy = ({ children: e }) => {
|
|
|
7638
7634
|
return ee.useEffect(() => {
|
|
7639
7635
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
7640
7636
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { "data-viewport-type": "element", ref: a, style: Is(o), children: e });
|
|
7641
|
-
},
|
|
7637
|
+
}, Py = ({ children: e }) => {
|
|
7642
7638
|
const t = ee.useContext(Xu), n = Zt("windowViewportRect"), r = Zt("fixedItemHeight"), o = Ie("customScrollParent"), s = Au(
|
|
7643
7639
|
n,
|
|
7644
7640
|
o,
|
|
@@ -7647,26 +7643,26 @@ const jy = ({ children: e }) => {
|
|
|
7647
7643
|
return ee.useEffect(() => {
|
|
7648
7644
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
7649
7645
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { "data-viewport-type": "window", ref: s, style: Is(i), children: e });
|
|
7650
|
-
},
|
|
7651
|
-
const t = Ie("TopItemListComponent") || "div", n = Ie("headerHeight"), r = { ...
|
|
7646
|
+
}, Oy = ({ children: e }) => {
|
|
7647
|
+
const t = Ie("TopItemListComponent") || "div", n = Ie("headerHeight"), r = { ...Ey, marginTop: `${n}px` }, o = Ie("context");
|
|
7652
7648
|
return /* @__PURE__ */ d.jsx(t, { style: r, ...Rt(t, o), children: e });
|
|
7653
|
-
},
|
|
7649
|
+
}, My = /* @__PURE__ */ ee.memo(function(e) {
|
|
7654
7650
|
const t = Ie("useWindowScroll"), n = Ie("topItemsIndexes").length > 0, r = Ie("customScrollParent"), o = Ie("context");
|
|
7655
|
-
return /* @__PURE__ */ d.jsxs(r || t ?
|
|
7656
|
-
n && /* @__PURE__ */ d.jsx(
|
|
7657
|
-
/* @__PURE__ */ d.jsxs(r || t ?
|
|
7658
|
-
/* @__PURE__ */ d.jsx(
|
|
7651
|
+
return /* @__PURE__ */ d.jsxs(r || t ? $y : Ly, { ...e, context: o, children: [
|
|
7652
|
+
n && /* @__PURE__ */ d.jsx(Oy, { children: /* @__PURE__ */ d.jsx(_l, { showTopList: !0 }) }),
|
|
7653
|
+
/* @__PURE__ */ d.jsxs(r || t ? Py : _y, { children: [
|
|
7654
|
+
/* @__PURE__ */ d.jsx(Ny, {}),
|
|
7659
7655
|
/* @__PURE__ */ d.jsx(_l, {}),
|
|
7660
|
-
/* @__PURE__ */ d.jsx(
|
|
7656
|
+
/* @__PURE__ */ d.jsx(jy, {})
|
|
7661
7657
|
] })
|
|
7662
7658
|
] });
|
|
7663
7659
|
}), {
|
|
7664
|
-
Component:
|
|
7660
|
+
Component: Dy,
|
|
7665
7661
|
useEmitter: ia,
|
|
7666
7662
|
useEmitterValue: Ie,
|
|
7667
7663
|
usePublisher: Zt
|
|
7668
7664
|
} = /* @__PURE__ */ Yu(
|
|
7669
|
-
|
|
7665
|
+
Sy,
|
|
7670
7666
|
{
|
|
7671
7667
|
required: {},
|
|
7672
7668
|
optional: {
|
|
@@ -7723,8 +7719,8 @@ const jy = ({ children: e }) => {
|
|
|
7723
7719
|
groupIndices: "groupIndices"
|
|
7724
7720
|
}
|
|
7725
7721
|
},
|
|
7726
|
-
|
|
7727
|
-
),
|
|
7722
|
+
My
|
|
7723
|
+
), Ly = /* @__PURE__ */ td({ useEmitter: ia, useEmitterValue: Ie, usePublisher: Zt }), $y = /* @__PURE__ */ nd({ useEmitter: ia, useEmitterValue: Ie, usePublisher: Zt }), Fy = Dy, zy = /* @__PURE__ */ $e(() => {
|
|
7728
7724
|
const e = oe((l) => /* @__PURE__ */ d.jsxs("td", { children: [
|
|
7729
7725
|
"Item $",
|
|
7730
7726
|
l
|
|
@@ -7760,7 +7756,7 @@ const jy = ({ children: e }) => {
|
|
|
7760
7756
|
GroupComponent: c("Group", "tr")
|
|
7761
7757
|
};
|
|
7762
7758
|
});
|
|
7763
|
-
tt(Gu,
|
|
7759
|
+
tt(Gu, zy);
|
|
7764
7760
|
oa();
|
|
7765
7761
|
const Pl = {
|
|
7766
7762
|
bottom: 0,
|
|
@@ -7770,7 +7766,7 @@ const Pl = {
|
|
|
7770
7766
|
offsetBottom: 0,
|
|
7771
7767
|
offsetTop: 0,
|
|
7772
7768
|
top: 0
|
|
7773
|
-
},
|
|
7769
|
+
}, By = {
|
|
7774
7770
|
bottom: 0,
|
|
7775
7771
|
itemHeight: 0,
|
|
7776
7772
|
items: [{ index: 0 }],
|
|
@@ -7782,19 +7778,19 @@ const Pl = {
|
|
|
7782
7778
|
function Dl(e, t, n) {
|
|
7783
7779
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
7784
7780
|
}
|
|
7785
|
-
function
|
|
7781
|
+
function Hy(e) {
|
|
7786
7782
|
return {
|
|
7787
|
-
...
|
|
7783
|
+
...By,
|
|
7788
7784
|
items: e
|
|
7789
7785
|
};
|
|
7790
7786
|
}
|
|
7791
7787
|
function vo(e, t) {
|
|
7792
7788
|
return e && e.width === t.width && e.height === t.height;
|
|
7793
7789
|
}
|
|
7794
|
-
function
|
|
7790
|
+
function Uy(e, t) {
|
|
7795
7791
|
return e && e.column === t.column && e.row === t.row;
|
|
7796
7792
|
}
|
|
7797
|
-
const
|
|
7793
|
+
const Wy = /* @__PURE__ */ $e(
|
|
7798
7794
|
([
|
|
7799
7795
|
{ increaseViewportBy: e, listBoundary: t, overscan: n, visibleRange: r },
|
|
7800
7796
|
{ footerHeight: o, headerHeight: s, scrollBy: i, scrollContainerState: a, scrollTo: c, scrollTop: l, smoothScrollTargetReached: u, viewportHeight: f },
|
|
@@ -7871,7 +7867,7 @@ const Uy = /* @__PURE__ */ $e(
|
|
|
7871
7867
|
gt(
|
|
7872
7868
|
be(v),
|
|
7873
7869
|
r,
|
|
7874
|
-
be(G,
|
|
7870
|
+
be(G, Uy),
|
|
7875
7871
|
be(D, vo),
|
|
7876
7872
|
be(N, vo),
|
|
7877
7873
|
be(P),
|
|
@@ -7899,7 +7895,7 @@ const Uy = /* @__PURE__ */ $e(
|
|
|
7899
7895
|
return Pl;
|
|
7900
7896
|
if (xt === 0) {
|
|
7901
7897
|
const lt = ta(Fe, j), nn = lt + Math.max(xe - 1, 0);
|
|
7902
|
-
return
|
|
7898
|
+
return Hy(Dl(lt, nn, ke));
|
|
7903
7899
|
}
|
|
7904
7900
|
const Ue = rd(at, xt, _e);
|
|
7905
7901
|
let Le, Qe;
|
|
@@ -8055,7 +8051,7 @@ function Ei(e, t, n, r) {
|
|
|
8055
8051
|
const o = rd(e.width, n.width, t.column), s = rs(r / o), i = s * n.height + Wr(0, s - 1) * t.row;
|
|
8056
8052
|
return i > 0 ? i + t.row : i;
|
|
8057
8053
|
}
|
|
8058
|
-
const
|
|
8054
|
+
const Vy = /* @__PURE__ */ $e(() => {
|
|
8059
8055
|
const e = oe((f) => `Item ${f}`), t = oe({}), n = oe(null), r = oe("virtuoso-grid-item"), o = oe("virtuoso-grid-list"), s = oe(sa), i = oe("div"), a = oe(jr), c = (f, h = null) => At(
|
|
8060
8056
|
Q(
|
|
8061
8057
|
t,
|
|
@@ -8082,10 +8078,10 @@ const Wy = /* @__PURE__ */ $e(() => {
|
|
|
8082
8078
|
scrollerRef: a,
|
|
8083
8079
|
ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
|
|
8084
8080
|
};
|
|
8085
|
-
}),
|
|
8081
|
+
}), Ky = /* @__PURE__ */ $e(
|
|
8086
8082
|
([e, t]) => ({ ...e, ...t }),
|
|
8087
|
-
tt(
|
|
8088
|
-
),
|
|
8083
|
+
tt(Wy, Vy)
|
|
8084
|
+
), qy = /* @__PURE__ */ ee.memo(function() {
|
|
8089
8085
|
const e = ot("gridState"), t = ot("listClassName"), n = ot("itemClassName"), r = ot("itemContent"), o = ot("computeItemKey"), s = ot("isSeeking"), i = Qt("scrollHeight"), a = ot("ItemComponent"), c = ot("ListComponent"), l = ot("ScrollSeekPlaceholder"), u = ot("context"), f = Qt("itemDimensions"), h = Qt("gap"), p = ot("log"), m = ot("stateRestoreInProgress"), g = Qt("reportReadyState"), x = nr(
|
|
8090
8086
|
ee.useMemo(
|
|
8091
8087
|
() => (y) => {
|
|
@@ -8140,7 +8136,7 @@ const Wy = /* @__PURE__ */ $e(() => {
|
|
|
8140
8136
|
})
|
|
8141
8137
|
}
|
|
8142
8138
|
);
|
|
8143
|
-
}),
|
|
8139
|
+
}), Gy = ee.memo(function() {
|
|
8144
8140
|
const e = ot("HeaderComponent"), t = Qt("headerHeight"), n = ot("headerFooterTag"), r = nr(
|
|
8145
8141
|
ee.useMemo(
|
|
8146
8142
|
() => (s) => {
|
|
@@ -8152,7 +8148,7 @@ const Wy = /* @__PURE__ */ $e(() => {
|
|
|
8152
8148
|
!1
|
|
8153
8149
|
), o = ot("context");
|
|
8154
8150
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...Rt(e, o) }) }) : null;
|
|
8155
|
-
}),
|
|
8151
|
+
}), Yy = ee.memo(function() {
|
|
8156
8152
|
const e = ot("FooterComponent"), t = Qt("footerHeight"), n = ot("headerFooterTag"), r = nr(
|
|
8157
8153
|
ee.useMemo(
|
|
8158
8154
|
() => (s) => {
|
|
@@ -8164,7 +8160,7 @@ const Wy = /* @__PURE__ */ $e(() => {
|
|
|
8164
8160
|
!1
|
|
8165
8161
|
), o = ot("context");
|
|
8166
8162
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...Rt(e, o) }) }) : null;
|
|
8167
|
-
}),
|
|
8163
|
+
}), Xy = ({ children: e }) => {
|
|
8168
8164
|
const t = ee.useContext(Ju), n = Qt("itemDimensions"), r = Qt("viewportDimensions"), o = nr(
|
|
8169
8165
|
ee.useMemo(
|
|
8170
8166
|
() => (s) => {
|
|
@@ -8178,24 +8174,24 @@ const Wy = /* @__PURE__ */ $e(() => {
|
|
|
8178
8174
|
return ee.useEffect(() => {
|
|
8179
8175
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
8180
8176
|
}, [t, r, n]), /* @__PURE__ */ d.jsx("div", { ref: o, style: Is(!1), children: e });
|
|
8181
|
-
},
|
|
8177
|
+
}, Jy = ({ children: e }) => {
|
|
8182
8178
|
const t = ee.useContext(Ju), n = Qt("windowViewportRect"), r = Qt("itemDimensions"), o = ot("customScrollParent"), s = Au(n, o, !1);
|
|
8183
8179
|
return ee.useEffect(() => {
|
|
8184
8180
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
8185
8181
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { ref: s, style: Is(!1), children: e });
|
|
8186
|
-
},
|
|
8187
|
-
const t = ot("useWindowScroll"), n = ot("customScrollParent"), r = n || t ?
|
|
8182
|
+
}, Zy = /* @__PURE__ */ ee.memo(function({ ...e }) {
|
|
8183
|
+
const t = ot("useWindowScroll"), n = ot("customScrollParent"), r = n || t ? eb : Qy, o = n || t ? Jy : Xy, s = ot("context");
|
|
8188
8184
|
return /* @__PURE__ */ d.jsx(r, { ...e, ...Rt(r, s), children: /* @__PURE__ */ d.jsxs(o, { children: [
|
|
8185
|
+
/* @__PURE__ */ d.jsx(Gy, {}),
|
|
8189
8186
|
/* @__PURE__ */ d.jsx(qy, {}),
|
|
8190
|
-
/* @__PURE__ */ d.jsx(
|
|
8191
|
-
/* @__PURE__ */ d.jsx(Gy, {})
|
|
8187
|
+
/* @__PURE__ */ d.jsx(Yy, {})
|
|
8192
8188
|
] }) });
|
|
8193
8189
|
}), {
|
|
8194
8190
|
useEmitter: od,
|
|
8195
8191
|
useEmitterValue: ot,
|
|
8196
8192
|
usePublisher: Qt
|
|
8197
8193
|
} = /* @__PURE__ */ Yu(
|
|
8198
|
-
|
|
8194
|
+
Ky,
|
|
8199
8195
|
{
|
|
8200
8196
|
optional: {
|
|
8201
8197
|
context: "context",
|
|
@@ -8234,8 +8230,8 @@ const Wy = /* @__PURE__ */ $e(() => {
|
|
|
8234
8230
|
readyStateChanged: "readyStateChanged"
|
|
8235
8231
|
}
|
|
8236
8232
|
},
|
|
8237
|
-
|
|
8238
|
-
),
|
|
8233
|
+
Zy
|
|
8234
|
+
), Qy = /* @__PURE__ */ td({ useEmitter: od, useEmitterValue: ot, usePublisher: Qt }), eb = /* @__PURE__ */ nd({ useEmitter: od, useEmitterValue: ot, usePublisher: Qt });
|
|
8239
8235
|
function $l(e, t, n) {
|
|
8240
8236
|
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Bt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
8241
8237
|
}
|
|
@@ -8269,7 +8265,7 @@ function _n(...e) {
|
|
|
8269
8265
|
function st(...e) {
|
|
8270
8266
|
return b.useCallback(_n(...e), e);
|
|
8271
8267
|
}
|
|
8272
|
-
function
|
|
8268
|
+
function tb(e, t) {
|
|
8273
8269
|
const n = b.createContext(t), r = (s) => {
|
|
8274
8270
|
const { children: i, ...a } = s, c = b.useMemo(() => a, Object.values(a));
|
|
8275
8271
|
return /* @__PURE__ */ d.jsx(n.Provider, { value: c, children: i });
|
|
@@ -8313,9 +8309,9 @@ function Bn(e, t = []) {
|
|
|
8313
8309
|
);
|
|
8314
8310
|
};
|
|
8315
8311
|
};
|
|
8316
|
-
return o.scopeName = e, [r,
|
|
8312
|
+
return o.scopeName = e, [r, nb(o, ...t)];
|
|
8317
8313
|
}
|
|
8318
|
-
function
|
|
8314
|
+
function nb(...e) {
|
|
8319
8315
|
const t = e[0];
|
|
8320
8316
|
if (e.length === 1) return t;
|
|
8321
8317
|
const n = () => {
|
|
@@ -8334,15 +8330,15 @@ function tb(...e) {
|
|
|
8334
8330
|
return n.scopeName = t.scopeName, n;
|
|
8335
8331
|
}
|
|
8336
8332
|
var yn = globalThis != null && globalThis.document ? b.useLayoutEffect : () => {
|
|
8337
|
-
},
|
|
8338
|
-
}),
|
|
8333
|
+
}, rb = b[" useId ".trim().toString()] || (() => {
|
|
8334
|
+
}), ob = 0;
|
|
8339
8335
|
function Gt(e) {
|
|
8340
|
-
const [t, n] = b.useState(
|
|
8336
|
+
const [t, n] = b.useState(rb());
|
|
8341
8337
|
return yn(() => {
|
|
8342
|
-
n((r) => r ?? String(
|
|
8338
|
+
n((r) => r ?? String(ob++));
|
|
8343
8339
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
8344
8340
|
}
|
|
8345
|
-
var
|
|
8341
|
+
var sb = b[" useInsertionEffect ".trim().toString()] || yn;
|
|
8346
8342
|
function Rs({
|
|
8347
8343
|
prop: e,
|
|
8348
8344
|
defaultProp: t,
|
|
@@ -8350,7 +8346,7 @@ function Rs({
|
|
|
8350
8346
|
},
|
|
8351
8347
|
caller: r
|
|
8352
8348
|
}) {
|
|
8353
|
-
const [o, s, i] =
|
|
8349
|
+
const [o, s, i] = ib({
|
|
8354
8350
|
defaultProp: t,
|
|
8355
8351
|
onChange: n
|
|
8356
8352
|
}), a = e !== void 0, c = a ? e : o;
|
|
@@ -8367,7 +8363,7 @@ function Rs({
|
|
|
8367
8363
|
(u) => {
|
|
8368
8364
|
var f;
|
|
8369
8365
|
if (a) {
|
|
8370
|
-
const h =
|
|
8366
|
+
const h = ab(u) ? u(e) : u;
|
|
8371
8367
|
h !== e && ((f = i.current) == null || f.call(i, h));
|
|
8372
8368
|
} else
|
|
8373
8369
|
s(u);
|
|
@@ -8376,22 +8372,22 @@ function Rs({
|
|
|
8376
8372
|
);
|
|
8377
8373
|
return [c, l];
|
|
8378
8374
|
}
|
|
8379
|
-
function
|
|
8375
|
+
function ib({
|
|
8380
8376
|
defaultProp: e,
|
|
8381
8377
|
onChange: t
|
|
8382
8378
|
}) {
|
|
8383
8379
|
const [n, r] = b.useState(e), o = b.useRef(n), s = b.useRef(t);
|
|
8384
|
-
return
|
|
8380
|
+
return sb(() => {
|
|
8385
8381
|
s.current = t;
|
|
8386
8382
|
}, [t]), b.useEffect(() => {
|
|
8387
8383
|
var i;
|
|
8388
8384
|
o.current !== n && ((i = s.current) == null || i.call(s, n), o.current = n);
|
|
8389
8385
|
}, [n, o]), [n, r, s];
|
|
8390
8386
|
}
|
|
8391
|
-
function
|
|
8387
|
+
function ab(e) {
|
|
8392
8388
|
return typeof e == "function";
|
|
8393
8389
|
}
|
|
8394
|
-
var
|
|
8390
|
+
var lb = [
|
|
8395
8391
|
"a",
|
|
8396
8392
|
"button",
|
|
8397
8393
|
"div",
|
|
@@ -8409,7 +8405,7 @@ var ab = [
|
|
|
8409
8405
|
"span",
|
|
8410
8406
|
"svg",
|
|
8411
8407
|
"ul"
|
|
8412
|
-
], Oe =
|
|
8408
|
+
], Oe = lb.reduce((e, t) => {
|
|
8413
8409
|
const n = qr(`Primitive.${t}`), r = b.forwardRef((o, s) => {
|
|
8414
8410
|
const { asChild: i, ...a } = o, c = i ? n : t;
|
|
8415
8411
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d.jsx(c, { ...a, ref: s });
|
|
@@ -8428,7 +8424,7 @@ function Et(e) {
|
|
|
8428
8424
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
8429
8425
|
}, []);
|
|
8430
8426
|
}
|
|
8431
|
-
function
|
|
8427
|
+
function cb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8432
8428
|
const n = Et(e);
|
|
8433
8429
|
b.useEffect(() => {
|
|
8434
8430
|
const r = (o) => {
|
|
@@ -8437,7 +8433,7 @@ function lb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8437
8433
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
8438
8434
|
}, [n, t]);
|
|
8439
8435
|
}
|
|
8440
|
-
var
|
|
8436
|
+
var ub = "DismissableLayer", Ai = "dismissableLayer.update", db = "dismissableLayer.pointerDownOutside", fb = "dismissableLayer.focusOutside", zl, id = b.createContext({
|
|
8441
8437
|
layers: /* @__PURE__ */ new Set(),
|
|
8442
8438
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
8443
8439
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -8451,14 +8447,14 @@ var cb = "DismissableLayer", Ai = "dismissableLayer.update", ub = "dismissableLa
|
|
|
8451
8447
|
onInteractOutside: i,
|
|
8452
8448
|
onDismiss: a,
|
|
8453
8449
|
...c
|
|
8454
|
-
} = e, l = b.useContext(id), [u, f] = b.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = b.useState({}), m = st(t, (T) => f(T)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(x), w = u ? g.indexOf(u) : -1, k = l.layersWithOutsidePointerEventsDisabled.size > 0, I = w >= y, C =
|
|
8450
|
+
} = e, l = b.useContext(id), [u, f] = b.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = b.useState({}), m = st(t, (T) => f(T)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(x), w = u ? g.indexOf(u) : -1, k = l.layersWithOutsidePointerEventsDisabled.size > 0, I = w >= y, C = mb((T) => {
|
|
8455
8451
|
const A = T.target, N = [...l.branches].some((D) => D.contains(A));
|
|
8456
8452
|
!I || N || (o == null || o(T), i == null || i(T), T.defaultPrevented || a == null || a());
|
|
8457
|
-
}, h), v =
|
|
8453
|
+
}, h), v = gb((T) => {
|
|
8458
8454
|
const A = T.target;
|
|
8459
8455
|
[...l.branches].some((D) => D.contains(A)) || (s == null || s(T), i == null || i(T), T.defaultPrevented || a == null || a());
|
|
8460
8456
|
}, h);
|
|
8461
|
-
return
|
|
8457
|
+
return cb((T) => {
|
|
8462
8458
|
w === l.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && a && (T.preventDefault(), a()));
|
|
8463
8459
|
}, h), b.useEffect(() => {
|
|
8464
8460
|
if (u)
|
|
@@ -8489,8 +8485,8 @@ var cb = "DismissableLayer", Ai = "dismissableLayer.update", ub = "dismissableLa
|
|
|
8489
8485
|
);
|
|
8490
8486
|
}
|
|
8491
8487
|
);
|
|
8492
|
-
aa.displayName =
|
|
8493
|
-
var
|
|
8488
|
+
aa.displayName = ub;
|
|
8489
|
+
var hb = "DismissableLayerBranch", pb = b.forwardRef((e, t) => {
|
|
8494
8490
|
const n = b.useContext(id), r = b.useRef(null), o = st(t, r);
|
|
8495
8491
|
return b.useEffect(() => {
|
|
8496
8492
|
const s = r.current;
|
|
@@ -8500,8 +8496,8 @@ var fb = "DismissableLayerBranch", hb = b.forwardRef((e, t) => {
|
|
|
8500
8496
|
};
|
|
8501
8497
|
}, [n.branches]), /* @__PURE__ */ d.jsx(Oe.div, { ...e, ref: o });
|
|
8502
8498
|
});
|
|
8503
|
-
|
|
8504
|
-
function
|
|
8499
|
+
pb.displayName = hb;
|
|
8500
|
+
function mb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8505
8501
|
const n = Et(e), r = b.useRef(!1), o = b.useRef(() => {
|
|
8506
8502
|
});
|
|
8507
8503
|
return b.useEffect(() => {
|
|
@@ -8509,7 +8505,7 @@ function pb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8509
8505
|
if (a.target && !r.current) {
|
|
8510
8506
|
let c = function() {
|
|
8511
8507
|
ad(
|
|
8512
|
-
|
|
8508
|
+
db,
|
|
8513
8509
|
n,
|
|
8514
8510
|
l,
|
|
8515
8511
|
{ discrete: !0 }
|
|
@@ -8531,11 +8527,11 @@ function pb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8531
8527
|
onPointerDownCapture: () => r.current = !0
|
|
8532
8528
|
};
|
|
8533
8529
|
}
|
|
8534
|
-
function
|
|
8530
|
+
function gb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8535
8531
|
const n = Et(e), r = b.useRef(!1);
|
|
8536
8532
|
return b.useEffect(() => {
|
|
8537
8533
|
const o = (s) => {
|
|
8538
|
-
s.target && !r.current && ad(
|
|
8534
|
+
s.target && !r.current && ad(fb, n, { originalEvent: s }, {
|
|
8539
8535
|
discrete: !1
|
|
8540
8536
|
});
|
|
8541
8537
|
};
|
|
@@ -8553,7 +8549,7 @@ function ad(e, t, n, { discrete: r }) {
|
|
|
8553
8549
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
8554
8550
|
t && o.addEventListener(e, t, { once: !0 }), r ? sd(o, s) : o.dispatchEvent(s);
|
|
8555
8551
|
}
|
|
8556
|
-
var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl = { bubbles: !1, cancelable: !0 },
|
|
8552
|
+
var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl = { bubbles: !1, cancelable: !0 }, xb = "FocusScope", la = b.forwardRef((e, t) => {
|
|
8557
8553
|
const {
|
|
8558
8554
|
loop: n = !1,
|
|
8559
8555
|
trapped: r = !1,
|
|
@@ -8596,7 +8592,7 @@ var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl
|
|
|
8596
8592
|
const g = document.activeElement;
|
|
8597
8593
|
if (!a.contains(g)) {
|
|
8598
8594
|
const y = new CustomEvent(ei, Hl);
|
|
8599
|
-
a.addEventListener(ei, l), a.dispatchEvent(y), y.defaultPrevented || (
|
|
8595
|
+
a.addEventListener(ei, l), a.dispatchEvent(y), y.defaultPrevented || (yb(Cb(ld(a)), { select: !0 }), document.activeElement === g && En(a));
|
|
8600
8596
|
}
|
|
8601
8597
|
return () => {
|
|
8602
8598
|
a.removeEventListener(ei, l), setTimeout(() => {
|
|
@@ -8611,7 +8607,7 @@ var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl
|
|
|
8611
8607
|
if (!n && !r || p.paused) return;
|
|
8612
8608
|
const x = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, y = document.activeElement;
|
|
8613
8609
|
if (x && y) {
|
|
8614
|
-
const w = g.currentTarget, [k, I] =
|
|
8610
|
+
const w = g.currentTarget, [k, I] = bb(w);
|
|
8615
8611
|
k && I ? !g.shiftKey && y === I ? (g.preventDefault(), n && En(k, { select: !0 })) : g.shiftKey && y === k && (g.preventDefault(), n && En(I, { select: !0 })) : y === w && g.preventDefault();
|
|
8616
8612
|
}
|
|
8617
8613
|
},
|
|
@@ -8619,13 +8615,13 @@ var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl
|
|
|
8619
8615
|
);
|
|
8620
8616
|
return /* @__PURE__ */ d.jsx(Oe.div, { tabIndex: -1, ...i, ref: h, onKeyDown: m });
|
|
8621
8617
|
});
|
|
8622
|
-
la.displayName =
|
|
8623
|
-
function
|
|
8618
|
+
la.displayName = xb;
|
|
8619
|
+
function yb(e, { select: t = !1 } = {}) {
|
|
8624
8620
|
const n = document.activeElement;
|
|
8625
8621
|
for (const r of e)
|
|
8626
8622
|
if (En(r, { select: t }), document.activeElement !== n) return;
|
|
8627
8623
|
}
|
|
8628
|
-
function
|
|
8624
|
+
function bb(e) {
|
|
8629
8625
|
const t = ld(e), n = Ul(t, e), r = Ul(t.reverse(), e);
|
|
8630
8626
|
return [n, r];
|
|
8631
8627
|
}
|
|
@@ -8641,9 +8637,9 @@ function ld(e) {
|
|
|
8641
8637
|
}
|
|
8642
8638
|
function Ul(e, t) {
|
|
8643
8639
|
for (const n of e)
|
|
8644
|
-
if (!
|
|
8640
|
+
if (!wb(n, { upTo: t })) return n;
|
|
8645
8641
|
}
|
|
8646
|
-
function
|
|
8642
|
+
function wb(e, { upTo: t }) {
|
|
8647
8643
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
8648
8644
|
for (; e; ) {
|
|
8649
8645
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -8652,17 +8648,17 @@ function bb(e, { upTo: t }) {
|
|
|
8652
8648
|
}
|
|
8653
8649
|
return !1;
|
|
8654
8650
|
}
|
|
8655
|
-
function
|
|
8651
|
+
function vb(e) {
|
|
8656
8652
|
return e instanceof HTMLInputElement && "select" in e;
|
|
8657
8653
|
}
|
|
8658
8654
|
function En(e, { select: t = !1 } = {}) {
|
|
8659
8655
|
if (e && e.focus) {
|
|
8660
8656
|
const n = document.activeElement;
|
|
8661
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
8657
|
+
e.focus({ preventScroll: !0 }), e !== n && vb(e) && t && e.select();
|
|
8662
8658
|
}
|
|
8663
8659
|
}
|
|
8664
|
-
var Wl =
|
|
8665
|
-
function
|
|
8660
|
+
var Wl = Sb();
|
|
8661
|
+
function Sb() {
|
|
8666
8662
|
let e = [];
|
|
8667
8663
|
return {
|
|
8668
8664
|
add(t) {
|
|
@@ -8679,27 +8675,27 @@ function Vl(e, t) {
|
|
|
8679
8675
|
const n = [...e], r = n.indexOf(t);
|
|
8680
8676
|
return r !== -1 && n.splice(r, 1), n;
|
|
8681
8677
|
}
|
|
8682
|
-
function
|
|
8678
|
+
function Cb(e) {
|
|
8683
8679
|
return e.filter((t) => t.tagName !== "A");
|
|
8684
8680
|
}
|
|
8685
|
-
var
|
|
8681
|
+
var kb = "Portal", ca = b.forwardRef((e, t) => {
|
|
8686
8682
|
var a;
|
|
8687
8683
|
const { container: n, ...r } = e, [o, s] = b.useState(!1);
|
|
8688
8684
|
yn(() => s(!0), []);
|
|
8689
8685
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
8690
8686
|
return i ? Nc.createPortal(/* @__PURE__ */ d.jsx(Oe.div, { ...r, ref: t }), i) : null;
|
|
8691
8687
|
});
|
|
8692
|
-
ca.displayName =
|
|
8693
|
-
function
|
|
8688
|
+
ca.displayName = kb;
|
|
8689
|
+
function Tb(e, t) {
|
|
8694
8690
|
return b.useReducer((n, r) => t[n][r] ?? n, e);
|
|
8695
8691
|
}
|
|
8696
8692
|
var Xt = (e) => {
|
|
8697
|
-
const { present: t, children: n } = e, r =
|
|
8693
|
+
const { present: t, children: n } = e, r = Ib(t), o = typeof n == "function" ? n({ present: r.isPresent }) : b.Children.only(n), s = st(r.ref, Rb(o));
|
|
8698
8694
|
return typeof n == "function" || r.isPresent ? b.cloneElement(o, { ref: s }) : null;
|
|
8699
8695
|
};
|
|
8700
8696
|
Xt.displayName = "Presence";
|
|
8701
|
-
function
|
|
8702
|
-
const [t, n] = b.useState(), r = b.useRef(null), o = b.useRef(e), s = b.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] =
|
|
8697
|
+
function Ib(e) {
|
|
8698
|
+
const [t, n] = b.useState(), r = b.useRef(null), o = b.useRef(e), s = b.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Tb(i, {
|
|
8703
8699
|
mounted: {
|
|
8704
8700
|
UNMOUNT: "unmounted",
|
|
8705
8701
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -8750,7 +8746,7 @@ function Tb(e) {
|
|
|
8750
8746
|
function So(e) {
|
|
8751
8747
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
8752
8748
|
}
|
|
8753
|
-
function
|
|
8749
|
+
function Rb(e) {
|
|
8754
8750
|
var r, o;
|
|
8755
8751
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
8756
8752
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -8785,16 +8781,16 @@ function ud(e, t) {
|
|
|
8785
8781
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
8786
8782
|
return n;
|
|
8787
8783
|
}
|
|
8788
|
-
function
|
|
8784
|
+
function Eb(e, t, n) {
|
|
8789
8785
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
8790
8786
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
8791
8787
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
8792
8788
|
}
|
|
8793
|
-
var Ho = "right-scroll-bar-position", Uo = "width-before-scroll-bar",
|
|
8789
|
+
var Ho = "right-scroll-bar-position", Uo = "width-before-scroll-bar", Ab = "with-scroll-bars-hidden", Nb = "--removed-body-scroll-bar-size";
|
|
8794
8790
|
function ri(e, t) {
|
|
8795
8791
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
8796
8792
|
}
|
|
8797
|
-
function
|
|
8793
|
+
function jb(e, t) {
|
|
8798
8794
|
var n = ue(function() {
|
|
8799
8795
|
return {
|
|
8800
8796
|
// value
|
|
@@ -8815,14 +8811,14 @@ function Nb(e, t) {
|
|
|
8815
8811
|
})[0];
|
|
8816
8812
|
return n.callback = t, n.facade;
|
|
8817
8813
|
}
|
|
8818
|
-
var
|
|
8819
|
-
function
|
|
8820
|
-
var n =
|
|
8814
|
+
var _b = typeof window < "u" ? b.useLayoutEffect : b.useEffect, ql = /* @__PURE__ */ new WeakMap();
|
|
8815
|
+
function Pb(e, t) {
|
|
8816
|
+
var n = jb(null, function(r) {
|
|
8821
8817
|
return e.forEach(function(o) {
|
|
8822
8818
|
return ri(o, r);
|
|
8823
8819
|
});
|
|
8824
8820
|
});
|
|
8825
|
-
return
|
|
8821
|
+
return _b(function() {
|
|
8826
8822
|
var r = ql.get(n);
|
|
8827
8823
|
if (r) {
|
|
8828
8824
|
var o = new Set(r), s = new Set(e), i = n.current;
|
|
@@ -8835,11 +8831,11 @@ function _b(e, t) {
|
|
|
8835
8831
|
ql.set(n, e);
|
|
8836
8832
|
}, [e]), n;
|
|
8837
8833
|
}
|
|
8838
|
-
function
|
|
8834
|
+
function Ob(e) {
|
|
8839
8835
|
return e;
|
|
8840
8836
|
}
|
|
8841
|
-
function
|
|
8842
|
-
t === void 0 && (t =
|
|
8837
|
+
function Mb(e, t) {
|
|
8838
|
+
t === void 0 && (t = Ob);
|
|
8843
8839
|
var n = [], r = !1, o = {
|
|
8844
8840
|
read: function() {
|
|
8845
8841
|
if (r)
|
|
@@ -8893,9 +8889,9 @@ function Ob(e, t) {
|
|
|
8893
8889
|
};
|
|
8894
8890
|
return o;
|
|
8895
8891
|
}
|
|
8896
|
-
function
|
|
8892
|
+
function Db(e) {
|
|
8897
8893
|
e === void 0 && (e = {});
|
|
8898
|
-
var t =
|
|
8894
|
+
var t = Mb(null);
|
|
8899
8895
|
return t.options = pn({ async: !0, ssr: !1 }, e), t;
|
|
8900
8896
|
}
|
|
8901
8897
|
var dd = function(e) {
|
|
@@ -8908,16 +8904,16 @@ var dd = function(e) {
|
|
|
8908
8904
|
return b.createElement(r, pn({}, n));
|
|
8909
8905
|
};
|
|
8910
8906
|
dd.isSideCarExport = !0;
|
|
8911
|
-
function
|
|
8907
|
+
function Lb(e, t) {
|
|
8912
8908
|
return e.useMedium(t), dd;
|
|
8913
8909
|
}
|
|
8914
|
-
var fd =
|
|
8910
|
+
var fd = Db(), oi = function() {
|
|
8915
8911
|
}, Es = b.forwardRef(function(e, t) {
|
|
8916
8912
|
var n = b.useRef(null), r = b.useState({
|
|
8917
8913
|
onScrollCapture: oi,
|
|
8918
8914
|
onWheelCapture: oi,
|
|
8919
8915
|
onTouchMoveCapture: oi
|
|
8920
|
-
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, m = e.noIsolation, g = e.inert, x = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, k = e.gapMode, I = ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, v =
|
|
8916
|
+
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, m = e.noIsolation, g = e.inert, x = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, k = e.gapMode, I = ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, v = Pb([n, t]), T = pn(pn({}, I), o);
|
|
8921
8917
|
return b.createElement(
|
|
8922
8918
|
b.Fragment,
|
|
8923
8919
|
null,
|
|
@@ -8934,37 +8930,37 @@ Es.classNames = {
|
|
|
8934
8930
|
fullWidth: Uo,
|
|
8935
8931
|
zeroRight: Ho
|
|
8936
8932
|
};
|
|
8937
|
-
var
|
|
8933
|
+
var $b = function() {
|
|
8938
8934
|
if (typeof __webpack_nonce__ < "u")
|
|
8939
8935
|
return __webpack_nonce__;
|
|
8940
8936
|
};
|
|
8941
|
-
function
|
|
8937
|
+
function Fb() {
|
|
8942
8938
|
if (!document)
|
|
8943
8939
|
return null;
|
|
8944
8940
|
var e = document.createElement("style");
|
|
8945
8941
|
e.type = "text/css";
|
|
8946
|
-
var t =
|
|
8942
|
+
var t = $b();
|
|
8947
8943
|
return t && e.setAttribute("nonce", t), e;
|
|
8948
8944
|
}
|
|
8949
|
-
function
|
|
8945
|
+
function zb(e, t) {
|
|
8950
8946
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
8951
8947
|
}
|
|
8952
|
-
function
|
|
8948
|
+
function Bb(e) {
|
|
8953
8949
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
8954
8950
|
t.appendChild(e);
|
|
8955
8951
|
}
|
|
8956
|
-
var
|
|
8952
|
+
var Hb = function() {
|
|
8957
8953
|
var e = 0, t = null;
|
|
8958
8954
|
return {
|
|
8959
8955
|
add: function(n) {
|
|
8960
|
-
e == 0 && (t =
|
|
8956
|
+
e == 0 && (t = Fb()) && (zb(t, n), Bb(t)), e++;
|
|
8961
8957
|
},
|
|
8962
8958
|
remove: function() {
|
|
8963
8959
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
8964
8960
|
}
|
|
8965
8961
|
};
|
|
8966
|
-
},
|
|
8967
|
-
var e =
|
|
8962
|
+
}, Ub = function() {
|
|
8963
|
+
var e = Hb();
|
|
8968
8964
|
return function(t, n) {
|
|
8969
8965
|
b.useEffect(function() {
|
|
8970
8966
|
return e.add(t), function() {
|
|
@@ -8973,35 +8969,35 @@ var Bb = function() {
|
|
|
8973
8969
|
}, [t && n]);
|
|
8974
8970
|
};
|
|
8975
8971
|
}, hd = function() {
|
|
8976
|
-
var e =
|
|
8972
|
+
var e = Ub(), t = function(n) {
|
|
8977
8973
|
var r = n.styles, o = n.dynamic;
|
|
8978
8974
|
return e(r, o), null;
|
|
8979
8975
|
};
|
|
8980
8976
|
return t;
|
|
8981
|
-
},
|
|
8977
|
+
}, Wb = {
|
|
8982
8978
|
left: 0,
|
|
8983
8979
|
top: 0,
|
|
8984
8980
|
right: 0,
|
|
8985
8981
|
gap: 0
|
|
8986
8982
|
}, si = function(e) {
|
|
8987
8983
|
return parseInt(e || "", 10) || 0;
|
|
8988
|
-
},
|
|
8984
|
+
}, Vb = function(e) {
|
|
8989
8985
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
8990
8986
|
return [si(n), si(r), si(o)];
|
|
8991
|
-
},
|
|
8987
|
+
}, Kb = function(e) {
|
|
8992
8988
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
8993
|
-
return
|
|
8994
|
-
var t =
|
|
8989
|
+
return Wb;
|
|
8990
|
+
var t = Vb(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
8995
8991
|
return {
|
|
8996
8992
|
left: t[0],
|
|
8997
8993
|
top: t[1],
|
|
8998
8994
|
right: t[2],
|
|
8999
8995
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
9000
8996
|
};
|
|
9001
|
-
},
|
|
8997
|
+
}, qb = hd(), xr = "data-scroll-locked", Gb = function(e, t, n, r) {
|
|
9002
8998
|
var o = e.left, s = e.top, i = e.right, a = e.gap;
|
|
9003
8999
|
return n === void 0 && (n = "margin"), `
|
|
9004
|
-
.`.concat(
|
|
9000
|
+
.`.concat(Ab, ` {
|
|
9005
9001
|
overflow: hidden `).concat(r, `;
|
|
9006
9002
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
9007
9003
|
}
|
|
@@ -9039,26 +9035,26 @@ var Bb = function() {
|
|
|
9039
9035
|
}
|
|
9040
9036
|
|
|
9041
9037
|
body[`).concat(xr, `] {
|
|
9042
|
-
`).concat(
|
|
9038
|
+
`).concat(Nb, ": ").concat(a, `px;
|
|
9043
9039
|
}
|
|
9044
9040
|
`);
|
|
9045
9041
|
}, Gl = function() {
|
|
9046
9042
|
var e = parseInt(document.body.getAttribute(xr) || "0", 10);
|
|
9047
9043
|
return isFinite(e) ? e : 0;
|
|
9048
|
-
},
|
|
9044
|
+
}, Yb = function() {
|
|
9049
9045
|
b.useEffect(function() {
|
|
9050
9046
|
return document.body.setAttribute(xr, (Gl() + 1).toString()), function() {
|
|
9051
9047
|
var e = Gl() - 1;
|
|
9052
9048
|
e <= 0 ? document.body.removeAttribute(xr) : document.body.setAttribute(xr, e.toString());
|
|
9053
9049
|
};
|
|
9054
9050
|
}, []);
|
|
9055
|
-
},
|
|
9051
|
+
}, Xb = function(e) {
|
|
9056
9052
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
9057
|
-
|
|
9053
|
+
Yb();
|
|
9058
9054
|
var s = b.useMemo(function() {
|
|
9059
|
-
return
|
|
9055
|
+
return Kb(o);
|
|
9060
9056
|
}, [o]);
|
|
9061
|
-
return b.createElement(
|
|
9057
|
+
return b.createElement(qb, { styles: Gb(s, !t, o, n ? "" : "!important") });
|
|
9062
9058
|
}, Ni = !1;
|
|
9063
9059
|
if (typeof window < "u")
|
|
9064
9060
|
try {
|
|
@@ -9071,7 +9067,7 @@ if (typeof window < "u")
|
|
|
9071
9067
|
} catch {
|
|
9072
9068
|
Ni = !1;
|
|
9073
9069
|
}
|
|
9074
|
-
var lr = Ni ? { passive: !1 } : !1,
|
|
9070
|
+
var lr = Ni ? { passive: !1 } : !1, Jb = function(e) {
|
|
9075
9071
|
return e.tagName === "TEXTAREA";
|
|
9076
9072
|
}, pd = function(e, t) {
|
|
9077
9073
|
if (!(e instanceof Element))
|
|
@@ -9080,11 +9076,11 @@ var lr = Ni ? { passive: !1 } : !1, Xb = function(e) {
|
|
|
9080
9076
|
return (
|
|
9081
9077
|
// not-not-scrollable
|
|
9082
9078
|
n[t] !== "hidden" && // contains scroll inside self
|
|
9083
|
-
!(n.overflowY === n.overflowX && !
|
|
9079
|
+
!(n.overflowY === n.overflowX && !Jb(e) && n[t] === "visible")
|
|
9084
9080
|
);
|
|
9085
|
-
}, Jb = function(e) {
|
|
9086
|
-
return pd(e, "overflowY");
|
|
9087
9081
|
}, Zb = function(e) {
|
|
9082
|
+
return pd(e, "overflowY");
|
|
9083
|
+
}, Qb = function(e) {
|
|
9088
9084
|
return pd(e, "overflowX");
|
|
9089
9085
|
}, Yl = function(e, t) {
|
|
9090
9086
|
var n = t.ownerDocument, r = t;
|
|
@@ -9099,14 +9095,14 @@ var lr = Ni ? { passive: !1 } : !1, Xb = function(e) {
|
|
|
9099
9095
|
r = r.parentNode;
|
|
9100
9096
|
} while (r && r !== n.body);
|
|
9101
9097
|
return !1;
|
|
9102
|
-
},
|
|
9098
|
+
}, ew = function(e) {
|
|
9103
9099
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
9104
9100
|
return [
|
|
9105
9101
|
t,
|
|
9106
9102
|
n,
|
|
9107
9103
|
r
|
|
9108
9104
|
];
|
|
9109
|
-
},
|
|
9105
|
+
}, tw = function(e) {
|
|
9110
9106
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
9111
9107
|
return [
|
|
9112
9108
|
t,
|
|
@@ -9114,13 +9110,13 @@ var lr = Ni ? { passive: !1 } : !1, Xb = function(e) {
|
|
|
9114
9110
|
r
|
|
9115
9111
|
];
|
|
9116
9112
|
}, md = function(e, t) {
|
|
9117
|
-
return e === "v" ?
|
|
9113
|
+
return e === "v" ? Zb(t) : Qb(t);
|
|
9118
9114
|
}, gd = function(e, t) {
|
|
9119
|
-
return e === "v" ?
|
|
9120
|
-
},
|
|
9115
|
+
return e === "v" ? ew(t) : tw(t);
|
|
9116
|
+
}, nw = function(e, t) {
|
|
9121
9117
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
9122
|
-
},
|
|
9123
|
-
var s =
|
|
9118
|
+
}, rw = function(e, t, n, r, o) {
|
|
9119
|
+
var s = nw(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, u = i > 0, f = 0, h = 0;
|
|
9124
9120
|
do {
|
|
9125
9121
|
if (!a)
|
|
9126
9122
|
break;
|
|
@@ -9140,22 +9136,22 @@ var lr = Ni ? { passive: !1 } : !1, Xb = function(e) {
|
|
|
9140
9136
|
return [e.deltaX, e.deltaY];
|
|
9141
9137
|
}, Jl = function(e) {
|
|
9142
9138
|
return e && "current" in e ? e.current : e;
|
|
9143
|
-
},
|
|
9139
|
+
}, ow = function(e, t) {
|
|
9144
9140
|
return e[0] === t[0] && e[1] === t[1];
|
|
9145
|
-
},
|
|
9141
|
+
}, sw = function(e) {
|
|
9146
9142
|
return `
|
|
9147
9143
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
9148
9144
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
9149
9145
|
`);
|
|
9150
|
-
},
|
|
9151
|
-
function
|
|
9152
|
-
var t = b.useRef([]), n = b.useRef([0, 0]), r = b.useRef(), o = b.useState(
|
|
9146
|
+
}, iw = 0, cr = [];
|
|
9147
|
+
function aw(e) {
|
|
9148
|
+
var t = b.useRef([]), n = b.useRef([0, 0]), r = b.useRef(), o = b.useState(iw++)[0], s = b.useState(hd)[0], i = b.useRef(e);
|
|
9153
9149
|
b.useEffect(function() {
|
|
9154
9150
|
i.current = e;
|
|
9155
9151
|
}, [e]), b.useEffect(function() {
|
|
9156
9152
|
if (e.inert) {
|
|
9157
9153
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
9158
|
-
var g =
|
|
9154
|
+
var g = Eb([e.lockRef.current], (e.shards || []).map(Jl), !0).filter(Boolean);
|
|
9159
9155
|
return g.forEach(function(x) {
|
|
9160
9156
|
return x.classList.add("allow-interactivity-".concat(o));
|
|
9161
9157
|
}), function() {
|
|
@@ -9179,12 +9175,12 @@ function iw(e) {
|
|
|
9179
9175
|
if (!r.current && "changedTouches" in g && (k || I) && (r.current = C), !C)
|
|
9180
9176
|
return !0;
|
|
9181
9177
|
var N = r.current || C;
|
|
9182
|
-
return
|
|
9178
|
+
return rw(N, x, g, N === "h" ? k : I);
|
|
9183
9179
|
}, []), c = b.useCallback(function(g) {
|
|
9184
9180
|
var x = g;
|
|
9185
9181
|
if (!(!cr.length || cr[cr.length - 1] !== s)) {
|
|
9186
9182
|
var y = "deltaY" in x ? Xl(x) : ko(x), w = t.current.filter(function(C) {
|
|
9187
|
-
return C.name === x.type && (C.target === x.target || x.target === C.shadowParent) &&
|
|
9183
|
+
return C.name === x.type && (C.target === x.target || x.target === C.shadowParent) && ow(C.delta, y);
|
|
9188
9184
|
})[0];
|
|
9189
9185
|
if (w && w.should) {
|
|
9190
9186
|
x.cancelable && x.preventDefault();
|
|
@@ -9198,7 +9194,7 @@ function iw(e) {
|
|
|
9198
9194
|
}
|
|
9199
9195
|
}
|
|
9200
9196
|
}, []), l = b.useCallback(function(g, x, y, w) {
|
|
9201
|
-
var k = { name: g, delta: x, target: y, should: w, shadowParent:
|
|
9197
|
+
var k = { name: g, delta: x, target: y, should: w, shadowParent: lw(y) };
|
|
9202
9198
|
t.current.push(k), setTimeout(function() {
|
|
9203
9199
|
t.current = t.current.filter(function(I) {
|
|
9204
9200
|
return I !== k;
|
|
@@ -9226,28 +9222,28 @@ function iw(e) {
|
|
|
9226
9222
|
return b.createElement(
|
|
9227
9223
|
b.Fragment,
|
|
9228
9224
|
null,
|
|
9229
|
-
m ? b.createElement(s, { styles:
|
|
9230
|
-
p ? b.createElement(
|
|
9225
|
+
m ? b.createElement(s, { styles: sw(o) }) : null,
|
|
9226
|
+
p ? b.createElement(Xb, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
9231
9227
|
);
|
|
9232
9228
|
}
|
|
9233
|
-
function
|
|
9229
|
+
function lw(e) {
|
|
9234
9230
|
for (var t = null; e !== null; )
|
|
9235
9231
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
9236
9232
|
return t;
|
|
9237
9233
|
}
|
|
9238
|
-
const
|
|
9234
|
+
const cw = Lb(fd, aw);
|
|
9239
9235
|
var ua = b.forwardRef(function(e, t) {
|
|
9240
|
-
return b.createElement(Es, pn({}, e, { ref: t, sideCar:
|
|
9236
|
+
return b.createElement(Es, pn({}, e, { ref: t, sideCar: cw }));
|
|
9241
9237
|
});
|
|
9242
9238
|
ua.classNames = Es.classNames;
|
|
9243
|
-
var
|
|
9239
|
+
var uw = function(e) {
|
|
9244
9240
|
if (typeof document > "u")
|
|
9245
9241
|
return null;
|
|
9246
9242
|
var t = Array.isArray(e) ? e[0] : e;
|
|
9247
9243
|
return t.ownerDocument.body;
|
|
9248
9244
|
}, ur = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Io = {}, ii = 0, xd = function(e) {
|
|
9249
9245
|
return e && (e.host || xd(e.parentNode));
|
|
9250
|
-
},
|
|
9246
|
+
}, dw = function(e, t) {
|
|
9251
9247
|
return t.map(function(n) {
|
|
9252
9248
|
if (e.contains(n))
|
|
9253
9249
|
return n;
|
|
@@ -9256,8 +9252,8 @@ var cw = function(e) {
|
|
|
9256
9252
|
}).filter(function(n) {
|
|
9257
9253
|
return !!n;
|
|
9258
9254
|
});
|
|
9259
|
-
},
|
|
9260
|
-
var o =
|
|
9255
|
+
}, fw = function(e, t, n, r) {
|
|
9256
|
+
var o = dw(t, Array.isArray(e) ? e : [e]);
|
|
9261
9257
|
Io[n] || (Io[n] = /* @__PURE__ */ new WeakMap());
|
|
9262
9258
|
var s = Io[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(f) {
|
|
9263
9259
|
!f || a.has(f) || (a.add(f), l(f.parentNode));
|
|
@@ -9284,11 +9280,11 @@ var cw = function(e) {
|
|
|
9284
9280
|
};
|
|
9285
9281
|
}, yd = function(e, t, n) {
|
|
9286
9282
|
n === void 0 && (n = "data-aria-hidden");
|
|
9287
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
9288
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
9283
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = uw(e);
|
|
9284
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), fw(r, o, n, "aria-hidden")) : function() {
|
|
9289
9285
|
return null;
|
|
9290
9286
|
};
|
|
9291
|
-
}, As = "Dialog", [bd,
|
|
9287
|
+
}, As = "Dialog", [bd, Kk] = Bn(As), [hw, un] = bd(As), wd = (e) => {
|
|
9292
9288
|
const {
|
|
9293
9289
|
__scopeDialog: t,
|
|
9294
9290
|
children: n,
|
|
@@ -9303,7 +9299,7 @@ var cw = function(e) {
|
|
|
9303
9299
|
caller: As
|
|
9304
9300
|
});
|
|
9305
9301
|
return /* @__PURE__ */ d.jsx(
|
|
9306
|
-
|
|
9302
|
+
hw,
|
|
9307
9303
|
{
|
|
9308
9304
|
scope: t,
|
|
9309
9305
|
triggerRef: a,
|
|
@@ -9320,7 +9316,7 @@ var cw = function(e) {
|
|
|
9320
9316
|
);
|
|
9321
9317
|
};
|
|
9322
9318
|
wd.displayName = As;
|
|
9323
|
-
var vd = "DialogTrigger",
|
|
9319
|
+
var vd = "DialogTrigger", pw = b.forwardRef(
|
|
9324
9320
|
(e, t) => {
|
|
9325
9321
|
const { __scopeDialog: n, ...r } = e, o = un(vd, n), s = st(t, o.triggerRef);
|
|
9326
9322
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -9338,28 +9334,28 @@ var vd = "DialogTrigger", hw = b.forwardRef(
|
|
|
9338
9334
|
);
|
|
9339
9335
|
}
|
|
9340
9336
|
);
|
|
9341
|
-
|
|
9342
|
-
var da = "DialogPortal", [
|
|
9337
|
+
pw.displayName = vd;
|
|
9338
|
+
var da = "DialogPortal", [mw, Sd] = bd(da, {
|
|
9343
9339
|
forceMount: void 0
|
|
9344
9340
|
}), Cd = (e) => {
|
|
9345
9341
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = un(da, t);
|
|
9346
|
-
return /* @__PURE__ */ d.jsx(
|
|
9342
|
+
return /* @__PURE__ */ d.jsx(mw, { scope: t, forceMount: n, children: b.Children.map(r, (i) => /* @__PURE__ */ d.jsx(Xt, { present: n || s.open, children: /* @__PURE__ */ d.jsx(ca, { asChild: !0, container: o, children: i }) })) });
|
|
9347
9343
|
};
|
|
9348
9344
|
Cd.displayName = da;
|
|
9349
9345
|
var os = "DialogOverlay", kd = b.forwardRef(
|
|
9350
9346
|
(e, t) => {
|
|
9351
9347
|
const n = Sd(os, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = un(os, e.__scopeDialog);
|
|
9352
|
-
return s.modal ? /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(
|
|
9348
|
+
return s.modal ? /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(xw, { ...o, ref: t }) }) : null;
|
|
9353
9349
|
}
|
|
9354
9350
|
);
|
|
9355
9351
|
kd.displayName = os;
|
|
9356
|
-
var
|
|
9352
|
+
var gw = qr("DialogOverlay.RemoveScroll"), xw = b.forwardRef(
|
|
9357
9353
|
(e, t) => {
|
|
9358
9354
|
const { __scopeDialog: n, ...r } = e, o = un(os, n);
|
|
9359
9355
|
return (
|
|
9360
9356
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
9361
9357
|
// ie. when `Overlay` and `Content` are siblings
|
|
9362
|
-
/* @__PURE__ */ d.jsx(ua, { as:
|
|
9358
|
+
/* @__PURE__ */ d.jsx(ua, { as: gw, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ d.jsx(
|
|
9363
9359
|
Oe.div,
|
|
9364
9360
|
{
|
|
9365
9361
|
"data-state": ha(o.open),
|
|
@@ -9373,11 +9369,11 @@ var mw = qr("DialogOverlay.RemoveScroll"), gw = b.forwardRef(
|
|
|
9373
9369
|
), Qn = "DialogContent", Td = b.forwardRef(
|
|
9374
9370
|
(e, t) => {
|
|
9375
9371
|
const n = Sd(Qn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = un(Qn, e.__scopeDialog);
|
|
9376
|
-
return /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ d.jsx(
|
|
9372
|
+
return /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ d.jsx(yw, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(bw, { ...o, ref: t }) });
|
|
9377
9373
|
}
|
|
9378
9374
|
);
|
|
9379
9375
|
Td.displayName = Qn;
|
|
9380
|
-
var
|
|
9376
|
+
var yw = b.forwardRef(
|
|
9381
9377
|
(e, t) => {
|
|
9382
9378
|
const n = un(Qn, e.__scopeDialog), r = b.useRef(null), o = st(t, n.contentRef, r);
|
|
9383
9379
|
return b.useEffect(() => {
|
|
@@ -9405,7 +9401,7 @@ var xw = b.forwardRef(
|
|
|
9405
9401
|
}
|
|
9406
9402
|
);
|
|
9407
9403
|
}
|
|
9408
|
-
),
|
|
9404
|
+
), bw = b.forwardRef(
|
|
9409
9405
|
(e, t) => {
|
|
9410
9406
|
const n = un(Qn, e.__scopeDialog), r = b.useRef(!1), o = b.useRef(!1);
|
|
9411
9407
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -9456,8 +9452,8 @@ var xw = b.forwardRef(
|
|
|
9456
9452
|
}
|
|
9457
9453
|
),
|
|
9458
9454
|
/* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
9459
|
-
/* @__PURE__ */ d.jsx(
|
|
9460
|
-
/* @__PURE__ */ d.jsx(
|
|
9455
|
+
/* @__PURE__ */ d.jsx(ww, { titleId: a.titleId }),
|
|
9456
|
+
/* @__PURE__ */ d.jsx(Sw, { contentRef: c, descriptionId: a.descriptionId })
|
|
9461
9457
|
] })
|
|
9462
9458
|
] });
|
|
9463
9459
|
}
|
|
@@ -9493,11 +9489,11 @@ jd.displayName = Nd;
|
|
|
9493
9489
|
function ha(e) {
|
|
9494
9490
|
return e ? "open" : "closed";
|
|
9495
9491
|
}
|
|
9496
|
-
var _d = "DialogTitleWarning", [
|
|
9492
|
+
var _d = "DialogTitleWarning", [qk, Pd] = tb(_d, {
|
|
9497
9493
|
contentName: Qn,
|
|
9498
9494
|
titleName: fa,
|
|
9499
9495
|
docsSlug: "dialog"
|
|
9500
|
-
}),
|
|
9496
|
+
}), ww = ({ titleId: e }) => {
|
|
9501
9497
|
const t = Pd(_d), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
9502
9498
|
|
|
9503
9499
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -9506,15 +9502,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
9506
9502
|
return b.useEffect(() => {
|
|
9507
9503
|
e && (document.getElementById(e) || console.error(n));
|
|
9508
9504
|
}, [n, e]), null;
|
|
9509
|
-
},
|
|
9510
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pd(
|
|
9505
|
+
}, vw = "DialogDescriptionWarning", Sw = ({ contentRef: e, descriptionId: t }) => {
|
|
9506
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pd(vw).contentName}}.`;
|
|
9511
9507
|
return b.useEffect(() => {
|
|
9512
9508
|
var s;
|
|
9513
9509
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
9514
9510
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
9515
9511
|
}, [r, e, t]), null;
|
|
9516
|
-
}, Od = wd, Md = Cd, pa = kd, ma = Td, Vr = Rd, Dd = Ad,
|
|
9517
|
-
const Ld = Od,
|
|
9512
|
+
}, Od = wd, Md = Cd, pa = kd, ma = Td, Vr = Rd, Dd = Ad, Cw = jd;
|
|
9513
|
+
const Ld = Od, kw = Md, $d = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
9518
9514
|
pa,
|
|
9519
9515
|
{
|
|
9520
9516
|
ref: n,
|
|
@@ -9542,7 +9538,7 @@ const ga = b.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
9542
9538
|
}
|
|
9543
9539
|
return i(t), s;
|
|
9544
9540
|
}, [t]);
|
|
9545
|
-
return /* @__PURE__ */ d.jsxs(
|
|
9541
|
+
return /* @__PURE__ */ d.jsxs(kw, { children: [
|
|
9546
9542
|
/* @__PURE__ */ d.jsx($d, {}),
|
|
9547
9543
|
/* @__PURE__ */ d.jsxs(
|
|
9548
9544
|
ma,
|
|
@@ -9556,7 +9552,7 @@ const ga = b.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
9556
9552
|
children: [
|
|
9557
9553
|
!o && /* @__PURE__ */ d.jsx(Vr, { className: "sr-only", children: "Dialog" }),
|
|
9558
9554
|
t,
|
|
9559
|
-
/* @__PURE__ */ d.jsxs(
|
|
9555
|
+
/* @__PURE__ */ d.jsxs(Cw, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
9560
9556
|
/* @__PURE__ */ d.jsx(Xo, { className: "h-4 w-4" }),
|
|
9561
9557
|
/* @__PURE__ */ d.jsx("span", { className: "sr-only", children: "Close" })
|
|
9562
9558
|
] })
|
|
@@ -9592,7 +9588,7 @@ const zd = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
9592
9588
|
}
|
|
9593
9589
|
));
|
|
9594
9590
|
zd.displayName = Vr.displayName;
|
|
9595
|
-
const
|
|
9591
|
+
const Tw = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
9596
9592
|
Dd,
|
|
9597
9593
|
{
|
|
9598
9594
|
ref: n,
|
|
@@ -9600,14 +9596,14 @@ const kw = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
9600
9596
|
...t
|
|
9601
9597
|
}
|
|
9602
9598
|
));
|
|
9603
|
-
|
|
9604
|
-
function
|
|
9599
|
+
Tw.displayName = Dd.displayName;
|
|
9600
|
+
function Iw(e, t) {
|
|
9605
9601
|
return t === "application/octet-stream" && e.toLowerCase().endsWith(".pdf") ? "application/pdf" : t;
|
|
9606
9602
|
}
|
|
9607
|
-
function
|
|
9603
|
+
function Rw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
9608
9604
|
const { chatApi: s } = Rr(), i = s.getAuthToken();
|
|
9609
9605
|
if (!e || !n) return null;
|
|
9610
|
-
const a = `${s.baseUrl}/files/${n}/view?token=${i}`, l =
|
|
9606
|
+
const a = `${s.baseUrl}/files/${n}/view?token=${i}`, l = Iw(r, o).startsWith("image/");
|
|
9611
9607
|
return /* @__PURE__ */ d.jsx(Ld, { open: e, onOpenChange: t, children: /* @__PURE__ */ d.jsx(ga, { className: "max-w-6xl w-[95vw] h-[90vh] p-0 overflow-hidden border-none bg-background/95 backdrop-blur-md shadow-2xl", children: /* @__PURE__ */ d.jsxs("div", { className: "w-full h-full flex flex-col relative group", children: [
|
|
9612
9608
|
/* @__PURE__ */ d.jsx("div", { className: "flex-1 min-h-0 w-full h-full bg-background/50 overflow-hidden", children: l ? /* @__PURE__ */ d.jsx("div", { className: "w-full h-full flex items-center justify-center p-8", children: /* @__PURE__ */ d.jsx(
|
|
9613
9609
|
"img",
|
|
@@ -9629,7 +9625,7 @@ function Iw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
9629
9625
|
/* @__PURE__ */ d.jsx("div", { className: "absolute top-4 left-4 bg-background/80 backdrop-blur-md px-3 py-1.5 rounded-full border border-border text-xs font-medium text-muted-foreground opacity-100 group-hover:opacity-0 transition-opacity pointer-events-none shadow-sm", children: r })
|
|
9630
9626
|
] }) }) });
|
|
9631
9627
|
}
|
|
9632
|
-
function
|
|
9628
|
+
function Ew({ artifact: e, showPartialData: t = !1 }) {
|
|
9633
9629
|
if (!e || typeof e != "object") return null;
|
|
9634
9630
|
const n = ws({ artifact: e });
|
|
9635
9631
|
if (!n) return null;
|
|
@@ -9683,11 +9679,11 @@ function Rw({ artifact: e, showPartialData: t = !1 }) {
|
|
|
9683
9679
|
] })
|
|
9684
9680
|
] });
|
|
9685
9681
|
}
|
|
9686
|
-
const
|
|
9687
|
-
function
|
|
9688
|
-
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ d.jsx("div", { className:
|
|
9682
|
+
const Aw = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
|
|
9683
|
+
function Nw({ data: e }) {
|
|
9684
|
+
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ d.jsx("div", { className: Aw, children: /* @__PURE__ */ d.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ d.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ d.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Gr(e) }) : /* @__PURE__ */ d.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Gr(e) });
|
|
9689
9685
|
}
|
|
9690
|
-
function
|
|
9686
|
+
function jw(e) {
|
|
9691
9687
|
return e.toolCalls ? e.toolCalls.map((t) => {
|
|
9692
9688
|
let n = t.artifact;
|
|
9693
9689
|
if (!n && typeof t.content == "string") {
|
|
@@ -9710,7 +9706,7 @@ function Bd(e) {
|
|
|
9710
9706
|
}, []);
|
|
9711
9707
|
return {
|
|
9712
9708
|
...De(() => {
|
|
9713
|
-
const s =
|
|
9709
|
+
const s = jw(e), i = s.filter((a) => a.artifact).map((a) => a.artifact);
|
|
9714
9710
|
return t && !s.some((a) => a.toolCallId === t) && n(null), {
|
|
9715
9711
|
steps: s,
|
|
9716
9712
|
artifacts: i,
|
|
@@ -9803,7 +9799,7 @@ const Kd = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
9803
9799
|
}
|
|
9804
9800
|
));
|
|
9805
9801
|
Kd.displayName = "CardFooter";
|
|
9806
|
-
const
|
|
9802
|
+
const _w = (e) => !!e && typeof e == "object" && e.type === "user_choice" && typeof e.question == "string" && Array.isArray(e.alternatives);
|
|
9807
9803
|
function qd({
|
|
9808
9804
|
interruptPart: e,
|
|
9809
9805
|
onApprove: t,
|
|
@@ -9813,7 +9809,7 @@ function qd({
|
|
|
9813
9809
|
isActive: s,
|
|
9814
9810
|
payload: i
|
|
9815
9811
|
}) {
|
|
9816
|
-
const a =
|
|
9812
|
+
const a = _w(i) ? i : null, c = (a == null ? void 0 : a.question) ?? e.title ?? "Approve the result?", l = a ? s ? "Select one of the alternatives to continue." : "Waiting for approval from another participant." : s ? "Please approve or reject this action to resume the workflow." : "Waiting for approval from another participant.";
|
|
9817
9813
|
let u = null;
|
|
9818
9814
|
if (!a && i !== void 0 && i !== null)
|
|
9819
9815
|
if (typeof i == "string")
|
|
@@ -9876,7 +9872,7 @@ function qd({
|
|
|
9876
9872
|
}
|
|
9877
9873
|
);
|
|
9878
9874
|
}
|
|
9879
|
-
function
|
|
9875
|
+
function Pw({ className: e }) {
|
|
9880
9876
|
const t = ve(null);
|
|
9881
9877
|
return Pe(() => {
|
|
9882
9878
|
let n = 0;
|
|
@@ -9924,50 +9920,50 @@ function Gd() {
|
|
|
9924
9920
|
};
|
|
9925
9921
|
}
|
|
9926
9922
|
let or = Gd();
|
|
9927
|
-
function
|
|
9923
|
+
function Ow(e) {
|
|
9928
9924
|
or = e;
|
|
9929
9925
|
}
|
|
9930
|
-
const Yd = /[&<>"']/,
|
|
9926
|
+
const Yd = /[&<>"']/, Mw = new RegExp(Yd.source, "g"), Xd = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Dw = new RegExp(Xd.source, "g"), Lw = {
|
|
9931
9927
|
"&": "&",
|
|
9932
9928
|
"<": "<",
|
|
9933
9929
|
">": ">",
|
|
9934
9930
|
'"': """,
|
|
9935
9931
|
"'": "'"
|
|
9936
|
-
}, Ql = (e) =>
|
|
9932
|
+
}, Ql = (e) => Lw[e];
|
|
9937
9933
|
function Tt(e, t) {
|
|
9938
9934
|
if (t) {
|
|
9939
9935
|
if (Yd.test(e))
|
|
9940
|
-
return e.replace(
|
|
9936
|
+
return e.replace(Mw, Ql);
|
|
9941
9937
|
} else if (Xd.test(e))
|
|
9942
|
-
return e.replace(
|
|
9938
|
+
return e.replace(Dw, Ql);
|
|
9943
9939
|
return e;
|
|
9944
9940
|
}
|
|
9945
|
-
const
|
|
9941
|
+
const $w = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
|
9946
9942
|
function Jd(e) {
|
|
9947
|
-
return e.replace(
|
|
9943
|
+
return e.replace($w, (t, n) => (n = n.toLowerCase(), n === "colon" ? ":" : n.charAt(0) === "#" ? n.charAt(1) === "x" ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1)) : ""));
|
|
9948
9944
|
}
|
|
9949
|
-
const
|
|
9945
|
+
const Fw = /(^|[^\[])\^/g;
|
|
9950
9946
|
function Ge(e, t) {
|
|
9951
9947
|
e = typeof e == "string" ? e : e.source, t = t || "";
|
|
9952
9948
|
const n = {
|
|
9953
|
-
replace: (r, o) => (o = o.source || o, o = o.replace(
|
|
9949
|
+
replace: (r, o) => (o = o.source || o, o = o.replace(Fw, "$1"), e = e.replace(r, o), n),
|
|
9954
9950
|
getRegex: () => new RegExp(e, t)
|
|
9955
9951
|
};
|
|
9956
9952
|
return n;
|
|
9957
9953
|
}
|
|
9958
|
-
const
|
|
9954
|
+
const zw = /[^\w:]/g, Bw = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
|
|
9959
9955
|
function ec(e, t, n) {
|
|
9960
9956
|
if (e) {
|
|
9961
9957
|
let r;
|
|
9962
9958
|
try {
|
|
9963
|
-
r = decodeURIComponent(Jd(n)).replace(
|
|
9959
|
+
r = decodeURIComponent(Jd(n)).replace(zw, "").toLowerCase();
|
|
9964
9960
|
} catch {
|
|
9965
9961
|
return null;
|
|
9966
9962
|
}
|
|
9967
9963
|
if (r.indexOf("javascript:") === 0 || r.indexOf("vbscript:") === 0 || r.indexOf("data:") === 0)
|
|
9968
9964
|
return null;
|
|
9969
9965
|
}
|
|
9970
|
-
t && !
|
|
9966
|
+
t && !Bw.test(n) && (n = Vw(t, n));
|
|
9971
9967
|
try {
|
|
9972
9968
|
n = encodeURI(n).replace(/%25/g, "%");
|
|
9973
9969
|
} catch {
|
|
@@ -9975,11 +9971,11 @@ function ec(e, t, n) {
|
|
|
9975
9971
|
}
|
|
9976
9972
|
return n;
|
|
9977
9973
|
}
|
|
9978
|
-
const Ro = {},
|
|
9979
|
-
function
|
|
9980
|
-
Ro[" " + e] || (
|
|
9974
|
+
const Ro = {}, Hw = /^[^:]+:\/*[^/]*$/, Uw = /^([^:]+:)[\s\S]*$/, Ww = /^([^:]+:\/*[^/]*)[\s\S]*$/;
|
|
9975
|
+
function Vw(e, t) {
|
|
9976
|
+
Ro[" " + e] || (Hw.test(e) ? Ro[" " + e] = e + "/" : Ro[" " + e] = Wo(e, "/", !0)), e = Ro[" " + e];
|
|
9981
9977
|
const n = e.indexOf(":") === -1;
|
|
9982
|
-
return t.substring(0, 2) === "//" ? n ? t : e.replace(
|
|
9978
|
+
return t.substring(0, 2) === "//" ? n ? t : e.replace(Uw, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(Ww, "$1") + t : e + t;
|
|
9983
9979
|
}
|
|
9984
9980
|
const ss = { exec: function() {
|
|
9985
9981
|
} };
|
|
@@ -10014,7 +10010,7 @@ function Wo(e, t, n) {
|
|
|
10014
10010
|
}
|
|
10015
10011
|
return e.slice(0, r - o);
|
|
10016
10012
|
}
|
|
10017
|
-
function
|
|
10013
|
+
function Kw(e, t) {
|
|
10018
10014
|
if (e.indexOf(t[1]) === -1)
|
|
10019
10015
|
return -1;
|
|
10020
10016
|
const n = e.length;
|
|
@@ -10028,7 +10024,7 @@ function Vw(e, t) {
|
|
|
10028
10024
|
return o;
|
|
10029
10025
|
return -1;
|
|
10030
10026
|
}
|
|
10031
|
-
function
|
|
10027
|
+
function qw(e) {
|
|
10032
10028
|
e && e.sanitize && !e.silent && console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options");
|
|
10033
10029
|
}
|
|
10034
10030
|
function nc(e, t) {
|
|
@@ -10061,7 +10057,7 @@ function rc(e, t, n, r) {
|
|
|
10061
10057
|
text: Tt(i)
|
|
10062
10058
|
};
|
|
10063
10059
|
}
|
|
10064
|
-
function
|
|
10060
|
+
function Gw(e, t) {
|
|
10065
10061
|
const n = e.match(/^(\s+)(?:```)/);
|
|
10066
10062
|
if (n === null)
|
|
10067
10063
|
return t;
|
|
@@ -10104,7 +10100,7 @@ class xa {
|
|
|
10104
10100
|
fences(t) {
|
|
10105
10101
|
const n = this.rules.block.fences.exec(t);
|
|
10106
10102
|
if (n) {
|
|
10107
|
-
const r = n[0], o =
|
|
10103
|
+
const r = n[0], o = Gw(r, n[3] || "");
|
|
10108
10104
|
return {
|
|
10109
10105
|
type: "code",
|
|
10110
10106
|
raw: r,
|
|
@@ -10329,7 +10325,7 @@ class xa {
|
|
|
10329
10325
|
if ((r.length - i.length) % 2 === 0)
|
|
10330
10326
|
return;
|
|
10331
10327
|
} else {
|
|
10332
|
-
const i =
|
|
10328
|
+
const i = Kw(n[2], "()");
|
|
10333
10329
|
if (i > -1) {
|
|
10334
10330
|
const c = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + i;
|
|
10335
10331
|
n[2] = n[2].substring(0, i), n[0] = n[0].substring(0, c).trim(), n[3] = "";
|
|
@@ -10617,7 +10613,7 @@ de.breaks = {
|
|
|
10617
10613
|
br: Ge(de.br).replace("{2,}", "*").getRegex(),
|
|
10618
10614
|
text: Ge(de.gfm.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
10619
10615
|
};
|
|
10620
|
-
function
|
|
10616
|
+
function Yw(e) {
|
|
10621
10617
|
return e.replace(/---/g, "—").replace(/--/g, "–").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1‘").replace(/'/g, "’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1“").replace(/"/g, "”").replace(/\.{3}/g, "…");
|
|
10622
10618
|
}
|
|
10623
10619
|
function oc(e) {
|
|
@@ -10831,7 +10827,7 @@ class Pn {
|
|
|
10831
10827
|
h = p.call({ lexer: this }, f), typeof h == "number" && h >= 0 && (u = Math.min(u, h));
|
|
10832
10828
|
}), u < 1 / 0 && u >= 0 && (s = t.substring(0, u + 1));
|
|
10833
10829
|
}
|
|
10834
|
-
if (r = this.tokenizer.inlineText(s,
|
|
10830
|
+
if (r = this.tokenizer.inlineText(s, Yw)) {
|
|
10835
10831
|
t = t.substring(r.raw.length), r.raw.slice(-1) !== "_" && (l = r.raw.slice(-1)), c = !0, o = n[n.length - 1], o && o.type === "text" ? (o.raw += r.raw, o.text += r.text) : n.push(r);
|
|
10836
10832
|
continue;
|
|
10837
10833
|
}
|
|
@@ -11255,7 +11251,7 @@ Us(is, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
|
11255
11251
|
"preprocess",
|
|
11256
11252
|
"postprocess"
|
|
11257
11253
|
]));
|
|
11258
|
-
function
|
|
11254
|
+
function Xw(e, t, n) {
|
|
11259
11255
|
return (r) => {
|
|
11260
11256
|
if (r.message += `
|
|
11261
11257
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
@@ -11282,12 +11278,12 @@ function ef(e, t) {
|
|
|
11282
11278
|
typeof r == "function" && (o = r, r = null);
|
|
11283
11279
|
const s = { ...r };
|
|
11284
11280
|
r = { ...me.defaults, ...s };
|
|
11285
|
-
const i =
|
|
11281
|
+
const i = Xw(r.silent, r.async, o);
|
|
11286
11282
|
if (typeof n > "u" || n === null)
|
|
11287
11283
|
return i(new Error("marked(): input parameter is undefined or null"));
|
|
11288
11284
|
if (typeof n != "string")
|
|
11289
11285
|
return i(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
11290
|
-
if (
|
|
11286
|
+
if (qw(r), r.hooks && (r.hooks.options = r), o) {
|
|
11291
11287
|
const a = r.highlight;
|
|
11292
11288
|
let c;
|
|
11293
11289
|
try {
|
|
@@ -11335,7 +11331,7 @@ function me(e, t, n) {
|
|
|
11335
11331
|
return ef(Pn.lex, On.parse)(e, t, n);
|
|
11336
11332
|
}
|
|
11337
11333
|
me.options = me.setOptions = function(e) {
|
|
11338
|
-
return me.defaults = { ...me.defaults, ...e },
|
|
11334
|
+
return me.defaults = { ...me.defaults, ...e }, Ow(me.defaults), me;
|
|
11339
11335
|
};
|
|
11340
11336
|
me.getDefaults = Gd;
|
|
11341
11337
|
me.defaults = or;
|
|
@@ -11514,7 +11510,7 @@ function Vo({
|
|
|
11514
11510
|
}
|
|
11515
11511
|
);
|
|
11516
11512
|
}
|
|
11517
|
-
function
|
|
11513
|
+
function Jw({
|
|
11518
11514
|
text: e,
|
|
11519
11515
|
expanded: t,
|
|
11520
11516
|
onExpandedChange: n,
|
|
@@ -11557,7 +11553,7 @@ function Xw({
|
|
|
11557
11553
|
)
|
|
11558
11554
|
] });
|
|
11559
11555
|
}
|
|
11560
|
-
function
|
|
11556
|
+
function Zw(e, t, n) {
|
|
11561
11557
|
const [r, o] = ue(e), s = ve(e), i = ve(null);
|
|
11562
11558
|
return Pe(() => {
|
|
11563
11559
|
s.current = e;
|
|
@@ -11575,7 +11571,7 @@ function Jw(e, t, n) {
|
|
|
11575
11571
|
};
|
|
11576
11572
|
}, [e, t, n]), r;
|
|
11577
11573
|
}
|
|
11578
|
-
function
|
|
11574
|
+
function Qw({
|
|
11579
11575
|
message: e,
|
|
11580
11576
|
isToolMessage: t,
|
|
11581
11577
|
showToolMessages: n,
|
|
@@ -11608,7 +11604,7 @@ function Zw({
|
|
|
11608
11604
|
const q = ne(() => /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-2 p-2 bg-muted/30 rounded", children: [
|
|
11609
11605
|
/* @__PURE__ */ d.jsx(Va, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11610
11606
|
/* @__PURE__ */ d.jsx("span", { className: "text-sm text-muted-foreground", children: "File upload" })
|
|
11611
|
-
] }), []), P =
|
|
11607
|
+
] }), []), P = Zw(
|
|
11612
11608
|
r,
|
|
11613
11609
|
(f ?? !0) && c,
|
|
11614
11610
|
l ?? 0
|
|
@@ -11621,7 +11617,7 @@ function Zw({
|
|
|
11621
11617
|
), { artifacts: ie } = Bd(e), U = De(() => {
|
|
11622
11618
|
if (!h)
|
|
11623
11619
|
return null;
|
|
11624
|
-
const $ =
|
|
11620
|
+
const $ = tv(Y);
|
|
11625
11621
|
return {
|
|
11626
11622
|
stablePart: Y.slice(0, $),
|
|
11627
11623
|
tailPart: Y.slice($)
|
|
@@ -11669,8 +11665,8 @@ function Zw({
|
|
|
11669
11665
|
if (h)
|
|
11670
11666
|
return null;
|
|
11671
11667
|
const K = $.text ?? "", re = K.trim(), fe = Er(re);
|
|
11672
|
-
return fe && g !== "tool" ? /* @__PURE__ */ d.jsx(
|
|
11673
|
-
|
|
11668
|
+
return fe && g !== "tool" ? /* @__PURE__ */ d.jsx(Nw, { data: fe }, j) : g === "user" && x && re.length > y ? /* @__PURE__ */ d.jsx(
|
|
11669
|
+
Jw,
|
|
11674
11670
|
{
|
|
11675
11671
|
text: re,
|
|
11676
11672
|
expanded: w,
|
|
@@ -11745,7 +11741,7 @@ function Zw({
|
|
|
11745
11741
|
toolConfig: v
|
|
11746
11742
|
}
|
|
11747
11743
|
) }),
|
|
11748
|
-
R.map(($, j) => h &&
|
|
11744
|
+
R.map(($, j) => h && nv($) ? L ? /* @__PURE__ */ d.jsx("div", { className: "space-y-2", children: L }, `streaming-md-${j}`) : null : /* @__PURE__ */ d.jsx(M, { part: $, i: j }, j)),
|
|
11749
11745
|
E(),
|
|
11750
11746
|
H && (ie.length > 0 || !!e.artifact) && /* @__PURE__ */ d.jsxs("div", { className: "mt-4 pt-4 border-t border-border/40 space-y-4", children: [
|
|
11751
11747
|
!!e.artifact && /* @__PURE__ */ d.jsx(
|
|
@@ -11779,29 +11775,29 @@ function Zw({
|
|
|
11779
11775
|
className: "inline-block w-2 h-4 ml-0.5 bg-current opacity-70 animate-pulse align-middle",
|
|
11780
11776
|
"aria-hidden": "true"
|
|
11781
11777
|
}
|
|
11782
|
-
) : /* @__PURE__ */ d.jsx(
|
|
11778
|
+
) : /* @__PURE__ */ d.jsx(Pw, { className: C })
|
|
11783
11779
|
] });
|
|
11784
11780
|
}
|
|
11785
11781
|
return V;
|
|
11786
11782
|
}
|
|
11787
|
-
function
|
|
11783
|
+
function ev(e) {
|
|
11788
11784
|
return e ? !($r(e, /```/g) || $r(e, /`/g) || $r(e, /\*\*/g) || $r(e, /__/g) || $r(e, /~~/g) || /[^\\]\[[^\]]*$/.test(e) || /\[[^\]]*\]\([^)]*$/.test(e)) : !0;
|
|
11789
11785
|
}
|
|
11790
11786
|
function $r(e, t) {
|
|
11791
11787
|
const n = e.match(t);
|
|
11792
11788
|
return ((n == null ? void 0 : n.length) ?? 0) % 2 !== 0;
|
|
11793
11789
|
}
|
|
11794
|
-
function
|
|
11790
|
+
function tv(e) {
|
|
11795
11791
|
if (!e) return 0;
|
|
11796
11792
|
for (let t = e.length; t >= 0; t -= 1)
|
|
11797
|
-
if (
|
|
11793
|
+
if (ev(e.slice(0, t)))
|
|
11798
11794
|
return t;
|
|
11799
11795
|
return 0;
|
|
11800
11796
|
}
|
|
11801
|
-
function
|
|
11797
|
+
function nv(e) {
|
|
11802
11798
|
return e.type === "text" && !!e.__streamingMarkdownAggregate;
|
|
11803
11799
|
}
|
|
11804
|
-
const
|
|
11800
|
+
const rv = Ec(
|
|
11805
11801
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
11806
11802
|
{
|
|
11807
11803
|
variants: {
|
|
@@ -11817,10 +11813,10 @@ const nv = Ec(
|
|
|
11817
11813
|
}
|
|
11818
11814
|
}
|
|
11819
11815
|
);
|
|
11820
|
-
function
|
|
11821
|
-
return /* @__PURE__ */ d.jsx("div", { className: le(
|
|
11816
|
+
function ov({ className: e, variant: t, ...n }) {
|
|
11817
|
+
return /* @__PURE__ */ d.jsx("div", { className: le(rv({ variant: t }), e), ...n });
|
|
11822
11818
|
}
|
|
11823
|
-
function
|
|
11819
|
+
function sv({
|
|
11824
11820
|
showTimestamp: e,
|
|
11825
11821
|
showAgentName: t,
|
|
11826
11822
|
isToolMessage: n,
|
|
@@ -11860,7 +11856,7 @@ function ov({
|
|
|
11860
11856
|
i,
|
|
11861
11857
|
t && s && /* @__PURE__ */ d.jsx("span", { className: le("font-medium", l ? "text-xs" : "text-sm"), children: s }),
|
|
11862
11858
|
n && !r && /* @__PURE__ */ d.jsx(
|
|
11863
|
-
|
|
11859
|
+
ov,
|
|
11864
11860
|
{
|
|
11865
11861
|
variant: "outline",
|
|
11866
11862
|
className: le(
|
|
@@ -11974,9 +11970,9 @@ function ov({
|
|
|
11974
11970
|
}
|
|
11975
11971
|
);
|
|
11976
11972
|
}
|
|
11977
|
-
const
|
|
11973
|
+
const iv = 1, av = 1e6;
|
|
11978
11974
|
let ai = 0;
|
|
11979
|
-
function
|
|
11975
|
+
function lv() {
|
|
11980
11976
|
return ai = (ai + 1) % Number.MAX_SAFE_INTEGER, ai.toString();
|
|
11981
11977
|
}
|
|
11982
11978
|
const li = /* @__PURE__ */ new Map(), sc = (e) => {
|
|
@@ -11987,14 +11983,14 @@ const li = /* @__PURE__ */ new Map(), sc = (e) => {
|
|
|
11987
11983
|
type: "REMOVE_TOAST",
|
|
11988
11984
|
toastId: e
|
|
11989
11985
|
});
|
|
11990
|
-
},
|
|
11986
|
+
}, av);
|
|
11991
11987
|
li.set(e, t);
|
|
11992
|
-
},
|
|
11988
|
+
}, cv = (e, t) => {
|
|
11993
11989
|
switch (t.type) {
|
|
11994
11990
|
case "ADD_TOAST":
|
|
11995
11991
|
return {
|
|
11996
11992
|
...e,
|
|
11997
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
11993
|
+
toasts: [t.toast, ...e.toasts].slice(0, iv)
|
|
11998
11994
|
};
|
|
11999
11995
|
case "UPDATE_TOAST":
|
|
12000
11996
|
return {
|
|
@@ -12029,12 +12025,12 @@ const li = /* @__PURE__ */ new Map(), sc = (e) => {
|
|
|
12029
12025
|
}, Ko = [];
|
|
12030
12026
|
let qo = { toasts: [] };
|
|
12031
12027
|
function Kr(e) {
|
|
12032
|
-
qo =
|
|
12028
|
+
qo = cv(qo, e), Ko.forEach((t) => {
|
|
12033
12029
|
t(qo);
|
|
12034
12030
|
});
|
|
12035
12031
|
}
|
|
12036
|
-
function
|
|
12037
|
-
const t =
|
|
12032
|
+
function uv({ ...e }) {
|
|
12033
|
+
const t = lv(), n = (o) => Kr({
|
|
12038
12034
|
type: "UPDATE_TOAST",
|
|
12039
12035
|
toast: { ...o, id: t }
|
|
12040
12036
|
}), r = () => Kr({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -12054,19 +12050,19 @@ function cv({ ...e }) {
|
|
|
12054
12050
|
update: n
|
|
12055
12051
|
};
|
|
12056
12052
|
}
|
|
12057
|
-
function
|
|
12053
|
+
function dv() {
|
|
12058
12054
|
const [e, t] = b.useState(qo);
|
|
12059
12055
|
return b.useEffect(() => (Ko.push(t), () => {
|
|
12060
12056
|
const n = Ko.indexOf(t);
|
|
12061
12057
|
n > -1 && Ko.splice(n, 1);
|
|
12062
12058
|
}), [e]), {
|
|
12063
12059
|
...e,
|
|
12064
|
-
toast:
|
|
12060
|
+
toast: uv,
|
|
12065
12061
|
dismiss: (n) => Kr({ type: "DISMISS_TOAST", toastId: n })
|
|
12066
12062
|
};
|
|
12067
12063
|
}
|
|
12068
|
-
function
|
|
12069
|
-
const { allowFileOpen: t, currentThreadId: n } = e, { fileApi: r } = Rr(), { toast: o } =
|
|
12064
|
+
function fv(e) {
|
|
12065
|
+
const { allowFileOpen: t, currentThreadId: n } = e, { fileApi: r } = Rr(), { toast: o } = dv(), [s, i] = ue({}), [a, c] = ue(null), [l, u] = ue(!1), f = ne(() => {
|
|
12070
12066
|
u(!1), c(null);
|
|
12071
12067
|
}, []), h = ne((m) => {
|
|
12072
12068
|
c(m), u(!0);
|
|
@@ -12137,7 +12133,7 @@ function dv(e) {
|
|
|
12137
12133
|
closeFileViewer: f
|
|
12138
12134
|
};
|
|
12139
12135
|
}
|
|
12140
|
-
function
|
|
12136
|
+
function hv(e) {
|
|
12141
12137
|
return De(() => {
|
|
12142
12138
|
const t = e;
|
|
12143
12139
|
let n = Array.isArray(t.content) ? t.content : [];
|
|
@@ -12156,7 +12152,7 @@ function fv(e) {
|
|
|
12156
12152
|
}, [e]);
|
|
12157
12153
|
}
|
|
12158
12154
|
const ic = "data:";
|
|
12159
|
-
function
|
|
12155
|
+
function pv(e) {
|
|
12160
12156
|
if (!e) return [];
|
|
12161
12157
|
const t = [], n = e.split(/\r?\n/);
|
|
12162
12158
|
for (const r of n) {
|
|
@@ -12171,7 +12167,7 @@ function hv(e) {
|
|
|
12171
12167
|
}
|
|
12172
12168
|
return t;
|
|
12173
12169
|
}
|
|
12174
|
-
function
|
|
12170
|
+
function mv(e) {
|
|
12175
12171
|
for (let t = e.length - 1; t >= 0; t -= 1) {
|
|
12176
12172
|
const n = e[t];
|
|
12177
12173
|
if (n && typeof n == "object" && n.type === "tool.end")
|
|
@@ -12179,7 +12175,7 @@ function pv(e) {
|
|
|
12179
12175
|
}
|
|
12180
12176
|
return null;
|
|
12181
12177
|
}
|
|
12182
|
-
function
|
|
12178
|
+
function gv(e) {
|
|
12183
12179
|
return De(() => {
|
|
12184
12180
|
const t = e.content.filter(
|
|
12185
12181
|
(l) => l.type === "text"
|
|
@@ -12187,7 +12183,7 @@ function mv(e) {
|
|
|
12187
12183
|
if (!t.length)
|
|
12188
12184
|
return null;
|
|
12189
12185
|
let r = t.flatMap(
|
|
12190
|
-
(l) =>
|
|
12186
|
+
(l) => pv(l.text ?? "")
|
|
12191
12187
|
);
|
|
12192
12188
|
if (!r.length) {
|
|
12193
12189
|
const l = t.map((f) => f.text ?? "").join(`
|
|
@@ -12196,7 +12192,7 @@ function mv(e) {
|
|
|
12196
12192
|
}
|
|
12197
12193
|
if (!r.length)
|
|
12198
12194
|
return null;
|
|
12199
|
-
const s =
|
|
12195
|
+
const s = mv(r) ?? r[r.length - 1];
|
|
12200
12196
|
if (!s)
|
|
12201
12197
|
return null;
|
|
12202
12198
|
const i = s.output ?? s.payload ?? s, a = Hr(i), c = wr(a);
|
|
@@ -12246,7 +12242,7 @@ const tf = pp(function({
|
|
|
12246
12242
|
fileViewerOpen: K,
|
|
12247
12243
|
currentFileInfo: re,
|
|
12248
12244
|
closeFileViewer: fe
|
|
12249
|
-
} =
|
|
12245
|
+
} = fv({ allowFileOpen: V, currentThreadId: G }), te = De(() => {
|
|
12250
12246
|
switch (X) {
|
|
12251
12247
|
case "user":
|
|
12252
12248
|
return "text-[hsl(var(--chat-bubble-user-text))]";
|
|
@@ -12261,7 +12257,7 @@ const tf = pp(function({
|
|
|
12261
12257
|
default:
|
|
12262
12258
|
return "text-[hsl(var(--chat-bubble-ai-text))]";
|
|
12263
12259
|
}
|
|
12264
|
-
}, [X]), ye =
|
|
12260
|
+
}, [X]), ye = hv(t), {
|
|
12265
12261
|
contentParts: ke,
|
|
12266
12262
|
imageParts: xe,
|
|
12267
12263
|
fileParts: We,
|
|
@@ -12398,7 +12394,7 @@ const tf = pp(function({
|
|
|
12398
12394
|
);
|
|
12399
12395
|
}
|
|
12400
12396
|
}, [L, X]), Nt = f || B, ut = /* @__PURE__ */ d.jsx(
|
|
12401
|
-
|
|
12397
|
+
Qw,
|
|
12402
12398
|
{
|
|
12403
12399
|
message: t,
|
|
12404
12400
|
isToolMessage: R,
|
|
@@ -12442,7 +12438,7 @@ const tf = pp(function({
|
|
|
12442
12438
|
return R && !f ? null : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
12443
12439
|
/* @__PURE__ */ d.jsx("div", { className: le(lt(), p.container), children: /* @__PURE__ */ d.jsxs("div", { className: le(nn(), p.content), children: [
|
|
12444
12440
|
/* @__PURE__ */ d.jsx(
|
|
12445
|
-
|
|
12441
|
+
sv,
|
|
12446
12442
|
{
|
|
12447
12443
|
showTimestamp: i,
|
|
12448
12444
|
showAgentName: a,
|
|
@@ -12514,7 +12510,7 @@ const tf = pp(function({
|
|
|
12514
12510
|
)
|
|
12515
12511
|
] }) }),
|
|
12516
12512
|
re && /* @__PURE__ */ d.jsx(
|
|
12517
|
-
|
|
12513
|
+
Rw,
|
|
12518
12514
|
{
|
|
12519
12515
|
isOpen: K,
|
|
12520
12516
|
onClose: fe,
|
|
@@ -12541,7 +12537,7 @@ const tf = pp(function({
|
|
|
12541
12537
|
return !(!o || !s);
|
|
12542
12538
|
});
|
|
12543
12539
|
tf.displayName = "MessageComponent";
|
|
12544
|
-
const
|
|
12540
|
+
const xv = {
|
|
12545
12541
|
checkpoints: [],
|
|
12546
12542
|
checkpointMetaByCheckpointId: /* @__PURE__ */ new Map(),
|
|
12547
12543
|
timeline: [],
|
|
@@ -12570,8 +12566,8 @@ const gv = {
|
|
|
12570
12566
|
toolConfig: x,
|
|
12571
12567
|
renderArtifactsInline: y = !0
|
|
12572
12568
|
}) {
|
|
12573
|
-
const w = nf(t, n), C = !!t.__syntheticStreaming || r === t.id && t.role === "assistant", v = h ??
|
|
12574
|
-
() =>
|
|
12569
|
+
const w = nf(t, n), C = !!t.__syntheticStreaming || r === t.id && t.role === "assistant", v = h ?? xv, T = t.checkpointId ?? null, { attemptCount: A, attemptIndex: N, attempts: D } = De(
|
|
12570
|
+
() => fx(t.id, T, v),
|
|
12575
12571
|
[t.id, T, v]
|
|
12576
12572
|
), H = m == null ? void 0 : m(t);
|
|
12577
12573
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -12614,7 +12610,7 @@ const gv = {
|
|
|
12614
12610
|
);
|
|
12615
12611
|
});
|
|
12616
12612
|
rf.displayName = "MessageRow";
|
|
12617
|
-
const
|
|
12613
|
+
const yv = Object.freeze({}), of = ee.forwardRef(({
|
|
12618
12614
|
messages: e = [],
|
|
12619
12615
|
isStreaming: t,
|
|
12620
12616
|
streamingAssistantId: n,
|
|
@@ -12680,7 +12676,7 @@ const xv = Object.freeze({}), of = ee.forwardRef(({
|
|
|
12680
12676
|
expandable: !0
|
|
12681
12677
|
};
|
|
12682
12678
|
}, [D, C]), B = ee.useMemo(() => !X || ie || e.some((te) => te.id === X.id) ? e : [...e, X], [e, X, ie]), R = De(() => B.filter((te) => te.role !== "tool"), [B]), E = De(
|
|
12683
|
-
() => k ??
|
|
12679
|
+
() => k ?? yv,
|
|
12684
12680
|
[k]
|
|
12685
12681
|
), M = ne((te) => {
|
|
12686
12682
|
x && x(!te), y && y(te);
|
|
@@ -12733,7 +12729,7 @@ const xv = Object.freeze({}), of = ee.forwardRef(({
|
|
|
12733
12729
|
}),
|
|
12734
12730
|
[R]
|
|
12735
12731
|
), /* @__PURE__ */ d.jsx("div", { className: j, style: h, children: /* @__PURE__ */ d.jsx("div", { className: "relative flex-1 min-h-0 min-w-0", children: fe ? /* @__PURE__ */ d.jsx(
|
|
12736
|
-
|
|
12732
|
+
Fy,
|
|
12737
12733
|
{
|
|
12738
12734
|
ref: (te) => {
|
|
12739
12735
|
W.current = te;
|
|
@@ -12820,20 +12816,20 @@ function sf(e) {
|
|
|
12820
12816
|
r
|
|
12821
12817
|
];
|
|
12822
12818
|
}
|
|
12823
|
-
var
|
|
12819
|
+
var bv = b.createContext(void 0);
|
|
12824
12820
|
function ba(e) {
|
|
12825
|
-
const t = b.useContext(
|
|
12821
|
+
const t = b.useContext(bv);
|
|
12826
12822
|
return e || t || "ltr";
|
|
12827
12823
|
}
|
|
12828
|
-
const
|
|
12824
|
+
const wv = ["top", "right", "bottom", "left"], Mn = Math.min, Vt = Math.max, as = Math.round, Eo = Math.floor, xn = (e) => ({
|
|
12829
12825
|
x: e,
|
|
12830
12826
|
y: e
|
|
12831
|
-
}),
|
|
12827
|
+
}), vv = {
|
|
12832
12828
|
left: "right",
|
|
12833
12829
|
right: "left",
|
|
12834
12830
|
bottom: "top",
|
|
12835
12831
|
top: "bottom"
|
|
12836
|
-
},
|
|
12832
|
+
}, Sv = {
|
|
12837
12833
|
start: "end",
|
|
12838
12834
|
end: "start"
|
|
12839
12835
|
};
|
|
@@ -12855,48 +12851,48 @@ function wa(e) {
|
|
|
12855
12851
|
function va(e) {
|
|
12856
12852
|
return e === "y" ? "height" : "width";
|
|
12857
12853
|
}
|
|
12858
|
-
const
|
|
12854
|
+
const Cv = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
12859
12855
|
function gn(e) {
|
|
12860
|
-
return
|
|
12856
|
+
return Cv.has(Rn(e)) ? "y" : "x";
|
|
12861
12857
|
}
|
|
12862
12858
|
function Sa(e) {
|
|
12863
12859
|
return wa(gn(e));
|
|
12864
12860
|
}
|
|
12865
|
-
function
|
|
12861
|
+
function kv(e, t, n) {
|
|
12866
12862
|
n === void 0 && (n = !1);
|
|
12867
12863
|
const r = _r(e), o = Sa(e), s = va(o);
|
|
12868
12864
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
12869
12865
|
return t.reference[s] > t.floating[s] && (i = ls(i)), [i, ls(i)];
|
|
12870
12866
|
}
|
|
12871
|
-
function
|
|
12867
|
+
function Tv(e) {
|
|
12872
12868
|
const t = ls(e);
|
|
12873
12869
|
return [Pi(e), t, Pi(t)];
|
|
12874
12870
|
}
|
|
12875
12871
|
function Pi(e) {
|
|
12876
|
-
return e.replace(/start|end/g, (t) =>
|
|
12872
|
+
return e.replace(/start|end/g, (t) => Sv[t]);
|
|
12877
12873
|
}
|
|
12878
|
-
const ac = ["left", "right"], lc = ["right", "left"],
|
|
12879
|
-
function
|
|
12874
|
+
const ac = ["left", "right"], lc = ["right", "left"], Iv = ["top", "bottom"], Rv = ["bottom", "top"];
|
|
12875
|
+
function Ev(e, t, n) {
|
|
12880
12876
|
switch (e) {
|
|
12881
12877
|
case "top":
|
|
12882
12878
|
case "bottom":
|
|
12883
12879
|
return n ? t ? lc : ac : t ? ac : lc;
|
|
12884
12880
|
case "left":
|
|
12885
12881
|
case "right":
|
|
12886
|
-
return t ?
|
|
12882
|
+
return t ? Iv : Rv;
|
|
12887
12883
|
default:
|
|
12888
12884
|
return [];
|
|
12889
12885
|
}
|
|
12890
12886
|
}
|
|
12891
|
-
function
|
|
12887
|
+
function Av(e, t, n, r) {
|
|
12892
12888
|
const o = _r(e);
|
|
12893
|
-
let s =
|
|
12889
|
+
let s = Ev(Rn(e), n === "start", r);
|
|
12894
12890
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Pi)))), s;
|
|
12895
12891
|
}
|
|
12896
12892
|
function ls(e) {
|
|
12897
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
12893
|
+
return e.replace(/left|right|bottom|top/g, (t) => vv[t]);
|
|
12898
12894
|
}
|
|
12899
|
-
function
|
|
12895
|
+
function Nv(e) {
|
|
12900
12896
|
return {
|
|
12901
12897
|
top: 0,
|
|
12902
12898
|
right: 0,
|
|
@@ -12906,7 +12902,7 @@ function Av(e) {
|
|
|
12906
12902
|
};
|
|
12907
12903
|
}
|
|
12908
12904
|
function af(e) {
|
|
12909
|
-
return typeof e != "number" ?
|
|
12905
|
+
return typeof e != "number" ? Nv(e) : {
|
|
12910
12906
|
top: e,
|
|
12911
12907
|
right: e,
|
|
12912
12908
|
bottom: e,
|
|
@@ -12979,7 +12975,7 @@ function cc(e, t, n) {
|
|
|
12979
12975
|
}
|
|
12980
12976
|
return p;
|
|
12981
12977
|
}
|
|
12982
|
-
const
|
|
12978
|
+
const jv = async (e, t, n) => {
|
|
12983
12979
|
const {
|
|
12984
12980
|
placement: r = "bottom",
|
|
12985
12981
|
strategy: o = "absolute",
|
|
@@ -13085,7 +13081,7 @@ async function eo(e, t) {
|
|
|
13085
13081
|
right: (C.right - y.right + m.right) / I.x
|
|
13086
13082
|
};
|
|
13087
13083
|
}
|
|
13088
|
-
const
|
|
13084
|
+
const _v = (e) => ({
|
|
13089
13085
|
name: "arrow",
|
|
13090
13086
|
options: e,
|
|
13091
13087
|
async fn(t) {
|
|
@@ -13122,7 +13118,7 @@ const jv = (e) => ({
|
|
|
13122
13118
|
reset: Y
|
|
13123
13119
|
};
|
|
13124
13120
|
}
|
|
13125
|
-
}),
|
|
13121
|
+
}), Pv = function(e) {
|
|
13126
13122
|
return e === void 0 && (e = {}), {
|
|
13127
13123
|
name: "flip",
|
|
13128
13124
|
options: e,
|
|
@@ -13146,12 +13142,12 @@ const jv = (e) => ({
|
|
|
13146
13142
|
} = In(e, t);
|
|
13147
13143
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
13148
13144
|
return {};
|
|
13149
|
-
const y = Rn(o), w = gn(a), k = Rn(a) === a, I = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = h || (k || !g ? [ls(a)] :
|
|
13150
|
-
!h && v && C.push(...
|
|
13145
|
+
const y = Rn(o), w = gn(a), k = Rn(a) === a, I = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = h || (k || !g ? [ls(a)] : Tv(a)), v = m !== "none";
|
|
13146
|
+
!h && v && C.push(...Av(a, g, m, I));
|
|
13151
13147
|
const T = [a, ...C], A = await eo(t, x), N = [];
|
|
13152
13148
|
let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
13153
13149
|
if (u && N.push(A[y]), f) {
|
|
13154
|
-
const P =
|
|
13150
|
+
const P = kv(o, i, I);
|
|
13155
13151
|
N.push(A[P[0]], A[P[1]]);
|
|
13156
13152
|
}
|
|
13157
13153
|
if (D = [...D, {
|
|
@@ -13213,9 +13209,9 @@ function uc(e, t) {
|
|
|
13213
13209
|
};
|
|
13214
13210
|
}
|
|
13215
13211
|
function dc(e) {
|
|
13216
|
-
return
|
|
13212
|
+
return wv.some((t) => e[t] >= 0);
|
|
13217
13213
|
}
|
|
13218
|
-
const
|
|
13214
|
+
const Ov = function(e) {
|
|
13219
13215
|
return e === void 0 && (e = {}), {
|
|
13220
13216
|
name: "hide",
|
|
13221
13217
|
options: e,
|
|
@@ -13257,7 +13253,7 @@ const Pv = function(e) {
|
|
|
13257
13253
|
}
|
|
13258
13254
|
};
|
|
13259
13255
|
}, lf = /* @__PURE__ */ new Set(["left", "top"]);
|
|
13260
|
-
async function
|
|
13256
|
+
async function Mv(e, t) {
|
|
13261
13257
|
const {
|
|
13262
13258
|
placement: n,
|
|
13263
13259
|
platform: r,
|
|
@@ -13284,7 +13280,7 @@ async function Ov(e, t) {
|
|
|
13284
13280
|
y: p * u
|
|
13285
13281
|
};
|
|
13286
13282
|
}
|
|
13287
|
-
const
|
|
13283
|
+
const Dv = function(e) {
|
|
13288
13284
|
return e === void 0 && (e = 0), {
|
|
13289
13285
|
name: "offset",
|
|
13290
13286
|
options: e,
|
|
@@ -13295,7 +13291,7 @@ const Mv = function(e) {
|
|
|
13295
13291
|
y: s,
|
|
13296
13292
|
placement: i,
|
|
13297
13293
|
middlewareData: a
|
|
13298
|
-
} = t, c = await
|
|
13294
|
+
} = t, c = await Mv(t, e);
|
|
13299
13295
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
13300
13296
|
x: o + c.x,
|
|
13301
13297
|
y: s + c.y,
|
|
@@ -13306,7 +13302,7 @@ const Mv = function(e) {
|
|
|
13306
13302
|
};
|
|
13307
13303
|
}
|
|
13308
13304
|
};
|
|
13309
|
-
},
|
|
13305
|
+
}, Lv = function(e) {
|
|
13310
13306
|
return e === void 0 && (e = {}), {
|
|
13311
13307
|
name: "shift",
|
|
13312
13308
|
options: e,
|
|
@@ -13362,7 +13358,7 @@ const Mv = function(e) {
|
|
|
13362
13358
|
};
|
|
13363
13359
|
}
|
|
13364
13360
|
};
|
|
13365
|
-
},
|
|
13361
|
+
}, $v = function(e) {
|
|
13366
13362
|
return e === void 0 && (e = {}), {
|
|
13367
13363
|
options: e,
|
|
13368
13364
|
fn(t) {
|
|
@@ -13404,7 +13400,7 @@ const Mv = function(e) {
|
|
|
13404
13400
|
};
|
|
13405
13401
|
}
|
|
13406
13402
|
};
|
|
13407
|
-
},
|
|
13403
|
+
}, Fv = function(e) {
|
|
13408
13404
|
return e === void 0 && (e = {}), {
|
|
13409
13405
|
name: "size",
|
|
13410
13406
|
options: e,
|
|
@@ -13471,7 +13467,7 @@ function bn(e) {
|
|
|
13471
13467
|
function fc(e) {
|
|
13472
13468
|
return !Ns() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Yt(e).ShadowRoot;
|
|
13473
13469
|
}
|
|
13474
|
-
const
|
|
13470
|
+
const zv = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
13475
13471
|
function po(e) {
|
|
13476
13472
|
const {
|
|
13477
13473
|
overflow: t,
|
|
@@ -13479,15 +13475,15 @@ function po(e) {
|
|
|
13479
13475
|
overflowY: r,
|
|
13480
13476
|
display: o
|
|
13481
13477
|
} = ln(e);
|
|
13482
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
13478
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !zv.has(o);
|
|
13483
13479
|
}
|
|
13484
|
-
const
|
|
13485
|
-
function
|
|
13486
|
-
return
|
|
13480
|
+
const Bv = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
13481
|
+
function Hv(e) {
|
|
13482
|
+
return Bv.has(Pr(e));
|
|
13487
13483
|
}
|
|
13488
|
-
const
|
|
13484
|
+
const Uv = [":popover-open", ":modal"];
|
|
13489
13485
|
function js(e) {
|
|
13490
|
-
return
|
|
13486
|
+
return Uv.some((t) => {
|
|
13491
13487
|
try {
|
|
13492
13488
|
return e.matches(t);
|
|
13493
13489
|
} catch {
|
|
@@ -13495,12 +13491,12 @@ function js(e) {
|
|
|
13495
13491
|
}
|
|
13496
13492
|
});
|
|
13497
13493
|
}
|
|
13498
|
-
const
|
|
13494
|
+
const Wv = ["transform", "translate", "scale", "rotate", "perspective"], Vv = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Kv = ["paint", "layout", "strict", "content"];
|
|
13499
13495
|
function Ca(e) {
|
|
13500
13496
|
const t = ka(), n = an(e) ? ln(e) : e;
|
|
13501
|
-
return
|
|
13497
|
+
return Wv.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Vv.some((r) => (n.willChange || "").includes(r)) || Kv.some((r) => (n.contain || "").includes(r));
|
|
13502
13498
|
}
|
|
13503
|
-
function
|
|
13499
|
+
function qv(e) {
|
|
13504
13500
|
let t = Dn(e);
|
|
13505
13501
|
for (; bn(t) && !vr(t); ) {
|
|
13506
13502
|
if (Ca(t))
|
|
@@ -13514,9 +13510,9 @@ function Kv(e) {
|
|
|
13514
13510
|
function ka() {
|
|
13515
13511
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
13516
13512
|
}
|
|
13517
|
-
const
|
|
13513
|
+
const Gv = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
13518
13514
|
function vr(e) {
|
|
13519
|
-
return
|
|
13515
|
+
return Gv.has(Pr(e));
|
|
13520
13516
|
}
|
|
13521
13517
|
function ln(e) {
|
|
13522
13518
|
return Yt(e).getComputedStyle(e);
|
|
@@ -13587,15 +13583,15 @@ function yr(e) {
|
|
|
13587
13583
|
y: a
|
|
13588
13584
|
};
|
|
13589
13585
|
}
|
|
13590
|
-
const
|
|
13586
|
+
const Yv = /* @__PURE__ */ xn(0);
|
|
13591
13587
|
function ff(e) {
|
|
13592
13588
|
const t = Yt(e);
|
|
13593
|
-
return !ka() || !t.visualViewport ?
|
|
13589
|
+
return !ka() || !t.visualViewport ? Yv : {
|
|
13594
13590
|
x: t.visualViewport.offsetLeft,
|
|
13595
13591
|
y: t.visualViewport.offsetTop
|
|
13596
13592
|
};
|
|
13597
13593
|
}
|
|
13598
|
-
function
|
|
13594
|
+
function Xv(e, t, n) {
|
|
13599
13595
|
return t === void 0 && (t = !1), !n || t && n !== Yt(e) ? !1 : t;
|
|
13600
13596
|
}
|
|
13601
13597
|
function er(e, t, n, r) {
|
|
@@ -13603,7 +13599,7 @@ function er(e, t, n, r) {
|
|
|
13603
13599
|
const o = e.getBoundingClientRect(), s = Ta(e);
|
|
13604
13600
|
let i = xn(1);
|
|
13605
13601
|
t && (r ? an(r) && (i = yr(r)) : i = yr(e));
|
|
13606
|
-
const a =
|
|
13602
|
+
const a = Xv(s, n, r) ? ff(s) : xn(0);
|
|
13607
13603
|
let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, u = o.width / i.x, f = o.height / i.y;
|
|
13608
13604
|
if (s) {
|
|
13609
13605
|
const h = Yt(s), p = r && an(r) ? Yt(r) : r;
|
|
@@ -13631,7 +13627,7 @@ function hf(e, t) {
|
|
|
13631
13627
|
y: o
|
|
13632
13628
|
};
|
|
13633
13629
|
}
|
|
13634
|
-
function
|
|
13630
|
+
function Jv(e) {
|
|
13635
13631
|
let {
|
|
13636
13632
|
elements: t,
|
|
13637
13633
|
rect: n,
|
|
@@ -13658,10 +13654,10 @@ function Xv(e) {
|
|
|
13658
13654
|
y: n.y * l.y - c.scrollTop * l.y + u.y + h.y
|
|
13659
13655
|
};
|
|
13660
13656
|
}
|
|
13661
|
-
function
|
|
13657
|
+
function Zv(e) {
|
|
13662
13658
|
return Array.from(e.getClientRects());
|
|
13663
13659
|
}
|
|
13664
|
-
function
|
|
13660
|
+
function Qv(e) {
|
|
13665
13661
|
const t = vn(e), n = _s(e), r = e.ownerDocument.body, o = Vt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Vt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
13666
13662
|
let i = -n.scrollLeft + Ps(e);
|
|
13667
13663
|
const a = -n.scrollTop;
|
|
@@ -13673,7 +13669,7 @@ function Zv(e) {
|
|
|
13673
13669
|
};
|
|
13674
13670
|
}
|
|
13675
13671
|
const hc = 25;
|
|
13676
|
-
function
|
|
13672
|
+
function e0(e, t) {
|
|
13677
13673
|
const n = Yt(e), r = vn(e), o = n.visualViewport;
|
|
13678
13674
|
let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
|
|
13679
13675
|
if (o) {
|
|
@@ -13693,8 +13689,8 @@ function Qv(e, t) {
|
|
|
13693
13689
|
y: c
|
|
13694
13690
|
};
|
|
13695
13691
|
}
|
|
13696
|
-
const
|
|
13697
|
-
function
|
|
13692
|
+
const t0 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
13693
|
+
function n0(e, t) {
|
|
13698
13694
|
const n = er(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = bn(e) ? yr(e) : xn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, l = r * s.y;
|
|
13699
13695
|
return {
|
|
13700
13696
|
width: i,
|
|
@@ -13706,11 +13702,11 @@ function t0(e, t) {
|
|
|
13706
13702
|
function pc(e, t, n) {
|
|
13707
13703
|
let r;
|
|
13708
13704
|
if (t === "viewport")
|
|
13709
|
-
r =
|
|
13705
|
+
r = e0(e, n);
|
|
13710
13706
|
else if (t === "document")
|
|
13711
|
-
r =
|
|
13707
|
+
r = Qv(vn(e));
|
|
13712
13708
|
else if (an(t))
|
|
13713
|
-
r =
|
|
13709
|
+
r = n0(t, n);
|
|
13714
13710
|
else {
|
|
13715
13711
|
const o = ff(e);
|
|
13716
13712
|
r = {
|
|
@@ -13726,7 +13722,7 @@ function pf(e, t) {
|
|
|
13726
13722
|
const n = Dn(e);
|
|
13727
13723
|
return n === t || !an(n) || vr(n) ? !1 : ln(n).position === "fixed" || pf(n, t);
|
|
13728
13724
|
}
|
|
13729
|
-
function
|
|
13725
|
+
function r0(e, t) {
|
|
13730
13726
|
const n = t.get(e);
|
|
13731
13727
|
if (n)
|
|
13732
13728
|
return n;
|
|
@@ -13735,18 +13731,18 @@ function n0(e, t) {
|
|
|
13735
13731
|
let i = s ? Dn(e) : e;
|
|
13736
13732
|
for (; an(i) && !vr(i); ) {
|
|
13737
13733
|
const a = ln(i), c = Ca(i);
|
|
13738
|
-
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o &&
|
|
13734
|
+
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && t0.has(o.position) || po(i) && !c && pf(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = Dn(i);
|
|
13739
13735
|
}
|
|
13740
13736
|
return t.set(e, r), r;
|
|
13741
13737
|
}
|
|
13742
|
-
function
|
|
13738
|
+
function o0(e) {
|
|
13743
13739
|
let {
|
|
13744
13740
|
element: t,
|
|
13745
13741
|
boundary: n,
|
|
13746
13742
|
rootBoundary: r,
|
|
13747
13743
|
strategy: o
|
|
13748
13744
|
} = e;
|
|
13749
|
-
const i = [...n === "clippingAncestors" ? js(t) ? [] :
|
|
13745
|
+
const i = [...n === "clippingAncestors" ? js(t) ? [] : r0(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, u) => {
|
|
13750
13746
|
const f = pc(t, u, o);
|
|
13751
13747
|
return l.top = Vt(f.top, l.top), l.right = Mn(f.right, l.right), l.bottom = Mn(f.bottom, l.bottom), l.left = Vt(f.left, l.left), l;
|
|
13752
13748
|
}, pc(t, a, o));
|
|
@@ -13757,7 +13753,7 @@ function r0(e) {
|
|
|
13757
13753
|
y: c.top
|
|
13758
13754
|
};
|
|
13759
13755
|
}
|
|
13760
|
-
function
|
|
13756
|
+
function s0(e) {
|
|
13761
13757
|
const {
|
|
13762
13758
|
width: t,
|
|
13763
13759
|
height: n
|
|
@@ -13767,7 +13763,7 @@ function o0(e) {
|
|
|
13767
13763
|
height: n
|
|
13768
13764
|
};
|
|
13769
13765
|
}
|
|
13770
|
-
function
|
|
13766
|
+
function i0(e, t, n) {
|
|
13771
13767
|
const r = bn(t), o = vn(t), s = n === "fixed", i = er(e, !0, s, t);
|
|
13772
13768
|
let a = {
|
|
13773
13769
|
scrollLeft: 0,
|
|
@@ -13816,14 +13812,14 @@ function mf(e, t) {
|
|
|
13816
13812
|
return n;
|
|
13817
13813
|
}
|
|
13818
13814
|
let r = mc(e, t);
|
|
13819
|
-
for (; r &&
|
|
13815
|
+
for (; r && Hv(r) && ci(r); )
|
|
13820
13816
|
r = mc(r, t);
|
|
13821
|
-
return r && vr(r) && ci(r) && !Ca(r) ? n : r ||
|
|
13817
|
+
return r && vr(r) && ci(r) && !Ca(r) ? n : r || qv(e) || n;
|
|
13822
13818
|
}
|
|
13823
|
-
const
|
|
13819
|
+
const a0 = async function(e) {
|
|
13824
13820
|
const t = this.getOffsetParent || mf, n = this.getDimensions, r = await n(e.floating);
|
|
13825
13821
|
return {
|
|
13826
|
-
reference:
|
|
13822
|
+
reference: i0(e.reference, await t(e.floating), e.strategy),
|
|
13827
13823
|
floating: {
|
|
13828
13824
|
x: 0,
|
|
13829
13825
|
y: 0,
|
|
@@ -13832,25 +13828,25 @@ const i0 = async function(e) {
|
|
|
13832
13828
|
}
|
|
13833
13829
|
};
|
|
13834
13830
|
};
|
|
13835
|
-
function
|
|
13831
|
+
function l0(e) {
|
|
13836
13832
|
return ln(e).direction === "rtl";
|
|
13837
13833
|
}
|
|
13838
|
-
const
|
|
13839
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
13834
|
+
const c0 = {
|
|
13835
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Jv,
|
|
13840
13836
|
getDocumentElement: vn,
|
|
13841
|
-
getClippingRect:
|
|
13837
|
+
getClippingRect: o0,
|
|
13842
13838
|
getOffsetParent: mf,
|
|
13843
|
-
getElementRects:
|
|
13844
|
-
getClientRects:
|
|
13845
|
-
getDimensions:
|
|
13839
|
+
getElementRects: a0,
|
|
13840
|
+
getClientRects: Zv,
|
|
13841
|
+
getDimensions: s0,
|
|
13846
13842
|
getScale: yr,
|
|
13847
13843
|
isElement: an,
|
|
13848
|
-
isRTL:
|
|
13844
|
+
isRTL: l0
|
|
13849
13845
|
};
|
|
13850
13846
|
function gf(e, t) {
|
|
13851
13847
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
13852
13848
|
}
|
|
13853
|
-
function
|
|
13849
|
+
function u0(e, t) {
|
|
13854
13850
|
let n = null, r;
|
|
13855
13851
|
const o = vn(e);
|
|
13856
13852
|
function s() {
|
|
@@ -13896,7 +13892,7 @@ function c0(e, t) {
|
|
|
13896
13892
|
}
|
|
13897
13893
|
return i(!0), s;
|
|
13898
13894
|
}
|
|
13899
|
-
function
|
|
13895
|
+
function d0(e, t, n, r) {
|
|
13900
13896
|
r === void 0 && (r = {});
|
|
13901
13897
|
const {
|
|
13902
13898
|
ancestorScroll: o = !0,
|
|
@@ -13910,7 +13906,7 @@ function u0(e, t, n, r) {
|
|
|
13910
13906
|
passive: !0
|
|
13911
13907
|
}), s && y.addEventListener("resize", n);
|
|
13912
13908
|
});
|
|
13913
|
-
const f = l && a ?
|
|
13909
|
+
const f = l && a ? u0(l, n) : null;
|
|
13914
13910
|
let h = -1, p = null;
|
|
13915
13911
|
i && (p = new ResizeObserver((y) => {
|
|
13916
13912
|
let [w] = y;
|
|
@@ -13932,21 +13928,21 @@ function u0(e, t, n, r) {
|
|
|
13932
13928
|
}), f == null || f(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
13933
13929
|
};
|
|
13934
13930
|
}
|
|
13935
|
-
const
|
|
13931
|
+
const f0 = Dv, h0 = Lv, p0 = Pv, m0 = Fv, g0 = Ov, gc = _v, x0 = $v, y0 = (e, t, n) => {
|
|
13936
13932
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
13937
|
-
platform:
|
|
13933
|
+
platform: c0,
|
|
13938
13934
|
...n
|
|
13939
13935
|
}, s = {
|
|
13940
13936
|
...o.platform,
|
|
13941
13937
|
_c: r
|
|
13942
13938
|
};
|
|
13943
|
-
return
|
|
13939
|
+
return jv(e, t, {
|
|
13944
13940
|
...o,
|
|
13945
13941
|
platform: s
|
|
13946
13942
|
});
|
|
13947
13943
|
};
|
|
13948
|
-
var
|
|
13949
|
-
}, Go =
|
|
13944
|
+
var b0 = typeof document < "u", w0 = function() {
|
|
13945
|
+
}, Go = b0 ? gp : w0;
|
|
13950
13946
|
function us(e, t) {
|
|
13951
13947
|
if (e === t)
|
|
13952
13948
|
return !0;
|
|
@@ -13990,7 +13986,7 @@ function ui(e) {
|
|
|
13990
13986
|
t.current = e;
|
|
13991
13987
|
}), t;
|
|
13992
13988
|
}
|
|
13993
|
-
function
|
|
13989
|
+
function v0(e) {
|
|
13994
13990
|
e === void 0 && (e = {});
|
|
13995
13991
|
const {
|
|
13996
13992
|
placement: t = "bottom",
|
|
@@ -14025,7 +14021,7 @@ function w0(e) {
|
|
|
14025
14021
|
strategy: n,
|
|
14026
14022
|
middleware: h
|
|
14027
14023
|
};
|
|
14028
|
-
H.current && (U.platform = H.current),
|
|
14024
|
+
H.current && (U.platform = H.current), y0(v.current, T.current, U).then((L) => {
|
|
14029
14025
|
const X = {
|
|
14030
14026
|
...L,
|
|
14031
14027
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -14092,7 +14088,7 @@ function w0(e) {
|
|
|
14092
14088
|
floatingStyles: ie
|
|
14093
14089
|
}), [u, W, G, Y, ie]);
|
|
14094
14090
|
}
|
|
14095
|
-
const
|
|
14091
|
+
const S0 = (e) => {
|
|
14096
14092
|
function t(n) {
|
|
14097
14093
|
return {}.hasOwnProperty.call(n, "current");
|
|
14098
14094
|
}
|
|
@@ -14113,17 +14109,14 @@ const v0 = (e) => {
|
|
|
14113
14109
|
}).fn(n) : {};
|
|
14114
14110
|
}
|
|
14115
14111
|
};
|
|
14116
|
-
},
|
|
14117
|
-
...d0(e),
|
|
14118
|
-
options: [e, t]
|
|
14119
|
-
}), C0 = (e, t) => ({
|
|
14112
|
+
}, C0 = (e, t) => ({
|
|
14120
14113
|
...f0(e),
|
|
14121
14114
|
options: [e, t]
|
|
14122
14115
|
}), k0 = (e, t) => ({
|
|
14123
|
-
...
|
|
14116
|
+
...h0(e),
|
|
14124
14117
|
options: [e, t]
|
|
14125
14118
|
}), T0 = (e, t) => ({
|
|
14126
|
-
...
|
|
14119
|
+
...x0(e),
|
|
14127
14120
|
options: [e, t]
|
|
14128
14121
|
}), I0 = (e, t) => ({
|
|
14129
14122
|
...p0(e),
|
|
@@ -14132,10 +14125,13 @@ const v0 = (e) => {
|
|
|
14132
14125
|
...m0(e),
|
|
14133
14126
|
options: [e, t]
|
|
14134
14127
|
}), E0 = (e, t) => ({
|
|
14135
|
-
...
|
|
14128
|
+
...g0(e),
|
|
14129
|
+
options: [e, t]
|
|
14130
|
+
}), A0 = (e, t) => ({
|
|
14131
|
+
...S0(e),
|
|
14136
14132
|
options: [e, t]
|
|
14137
14133
|
});
|
|
14138
|
-
var
|
|
14134
|
+
var N0 = "Arrow", yf = b.forwardRef((e, t) => {
|
|
14139
14135
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
14140
14136
|
return /* @__PURE__ */ d.jsx(
|
|
14141
14137
|
Oe.svg,
|
|
@@ -14150,9 +14146,9 @@ var A0 = "Arrow", yf = b.forwardRef((e, t) => {
|
|
|
14150
14146
|
}
|
|
14151
14147
|
);
|
|
14152
14148
|
});
|
|
14153
|
-
yf.displayName =
|
|
14154
|
-
var
|
|
14155
|
-
function
|
|
14149
|
+
yf.displayName = N0;
|
|
14150
|
+
var j0 = yf;
|
|
14151
|
+
function _0(e) {
|
|
14156
14152
|
const [t, n] = b.useState(void 0);
|
|
14157
14153
|
return yn(() => {
|
|
14158
14154
|
if (e) {
|
|
@@ -14174,9 +14170,9 @@ function j0(e) {
|
|
|
14174
14170
|
n(void 0);
|
|
14175
14171
|
}, [e]), t;
|
|
14176
14172
|
}
|
|
14177
|
-
var Ia = "Popper", [bf, wf] = Bn(Ia), [
|
|
14173
|
+
var Ia = "Popper", [bf, wf] = Bn(Ia), [P0, vf] = bf(Ia), Sf = (e) => {
|
|
14178
14174
|
const { __scopePopper: t, children: n } = e, [r, o] = b.useState(null);
|
|
14179
|
-
return /* @__PURE__ */ d.jsx(
|
|
14175
|
+
return /* @__PURE__ */ d.jsx(P0, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
14180
14176
|
};
|
|
14181
14177
|
Sf.displayName = Ia;
|
|
14182
14178
|
var Cf = "PopperAnchor", kf = b.forwardRef(
|
|
@@ -14189,7 +14185,7 @@ var Cf = "PopperAnchor", kf = b.forwardRef(
|
|
|
14189
14185
|
}
|
|
14190
14186
|
);
|
|
14191
14187
|
kf.displayName = Cf;
|
|
14192
|
-
var Ra = "PopperContent", [
|
|
14188
|
+
var Ra = "PopperContent", [O0, M0] = bf(Ra), Tf = b.forwardRef(
|
|
14193
14189
|
(e, t) => {
|
|
14194
14190
|
var $, j, K, re, fe, te;
|
|
14195
14191
|
const {
|
|
@@ -14207,40 +14203,40 @@ var Ra = "PopperContent", [P0, O0] = bf(Ra), Tf = b.forwardRef(
|
|
|
14207
14203
|
updatePositionStrategy: p = "optimized",
|
|
14208
14204
|
onPlaced: m,
|
|
14209
14205
|
...g
|
|
14210
|
-
} = e, x = vf(Ra, n), [y, w] = b.useState(null), k = st(t, (ye) => w(ye)), [I, C] = b.useState(null), v =
|
|
14206
|
+
} = e, x = vf(Ra, n), [y, w] = b.useState(null), k = st(t, (ye) => w(ye)), [I, C] = b.useState(null), v = _0(I), T = (v == null ? void 0 : v.width) ?? 0, A = (v == null ? void 0 : v.height) ?? 0, N = r + (s !== "center" ? "-" + s : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, H = Array.isArray(l) ? l : [l], q = H.length > 0, W = {
|
|
14211
14207
|
padding: D,
|
|
14212
|
-
boundary: H.filter(
|
|
14208
|
+
boundary: H.filter(L0),
|
|
14213
14209
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
14214
14210
|
altBoundary: q
|
|
14215
|
-
}, { refs: P, floatingStyles: G, placement: Y, isPositioned: ie, middlewareData: U } =
|
|
14211
|
+
}, { refs: P, floatingStyles: G, placement: Y, isPositioned: ie, middlewareData: U } = v0({
|
|
14216
14212
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
14217
14213
|
strategy: "fixed",
|
|
14218
14214
|
placement: N,
|
|
14219
|
-
whileElementsMounted: (...ye) =>
|
|
14215
|
+
whileElementsMounted: (...ye) => d0(...ye, {
|
|
14220
14216
|
animationFrame: p === "always"
|
|
14221
14217
|
}),
|
|
14222
14218
|
elements: {
|
|
14223
14219
|
reference: x.anchor
|
|
14224
14220
|
},
|
|
14225
14221
|
middleware: [
|
|
14226
|
-
|
|
14227
|
-
c &&
|
|
14222
|
+
C0({ mainAxis: o + A, alignmentAxis: i }),
|
|
14223
|
+
c && k0({
|
|
14228
14224
|
mainAxis: !0,
|
|
14229
14225
|
crossAxis: !1,
|
|
14230
|
-
limiter: f === "partial" ?
|
|
14226
|
+
limiter: f === "partial" ? T0() : void 0,
|
|
14231
14227
|
...W
|
|
14232
14228
|
}),
|
|
14233
|
-
c &&
|
|
14234
|
-
|
|
14229
|
+
c && I0({ ...W }),
|
|
14230
|
+
R0({
|
|
14235
14231
|
...W,
|
|
14236
14232
|
apply: ({ elements: ye, rects: ke, availableWidth: xe, availableHeight: We }) => {
|
|
14237
14233
|
const { width: Fe, height: _e } = ke.reference, He = ye.floating.style;
|
|
14238
14234
|
He.setProperty("--radix-popper-available-width", `${xe}px`), He.setProperty("--radix-popper-available-height", `${We}px`), He.setProperty("--radix-popper-anchor-width", `${Fe}px`), He.setProperty("--radix-popper-anchor-height", `${_e}px`);
|
|
14239
14235
|
}
|
|
14240
14236
|
}),
|
|
14241
|
-
I &&
|
|
14242
|
-
|
|
14243
|
-
h &&
|
|
14237
|
+
I && A0({ element: I, padding: a }),
|
|
14238
|
+
$0({ arrowWidth: T, arrowHeight: A }),
|
|
14239
|
+
h && E0({ strategy: "referenceHidden", ...W })
|
|
14244
14240
|
]
|
|
14245
14241
|
}), [L, X] = Ef(Y), B = Et(m);
|
|
14246
14242
|
yn(() => {
|
|
@@ -14274,7 +14270,7 @@ var Ra = "PopperContent", [P0, O0] = bf(Ra), Tf = b.forwardRef(
|
|
|
14274
14270
|
},
|
|
14275
14271
|
dir: e.dir,
|
|
14276
14272
|
children: /* @__PURE__ */ d.jsx(
|
|
14277
|
-
|
|
14273
|
+
O0,
|
|
14278
14274
|
{
|
|
14279
14275
|
scope: n,
|
|
14280
14276
|
placedSide: L,
|
|
@@ -14304,13 +14300,13 @@ var Ra = "PopperContent", [P0, O0] = bf(Ra), Tf = b.forwardRef(
|
|
|
14304
14300
|
}
|
|
14305
14301
|
);
|
|
14306
14302
|
Tf.displayName = Ra;
|
|
14307
|
-
var If = "PopperArrow",
|
|
14303
|
+
var If = "PopperArrow", D0 = {
|
|
14308
14304
|
top: "bottom",
|
|
14309
14305
|
right: "left",
|
|
14310
14306
|
bottom: "top",
|
|
14311
14307
|
left: "right"
|
|
14312
14308
|
}, Rf = b.forwardRef(function(t, n) {
|
|
14313
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
14309
|
+
const { __scopePopper: r, ...o } = t, s = M0(If, r), i = D0[s.placedSide];
|
|
14314
14310
|
return (
|
|
14315
14311
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
14316
14312
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -14339,7 +14335,7 @@ var If = "PopperArrow", M0 = {
|
|
|
14339
14335
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
14340
14336
|
},
|
|
14341
14337
|
children: /* @__PURE__ */ d.jsx(
|
|
14342
|
-
|
|
14338
|
+
j0,
|
|
14343
14339
|
{
|
|
14344
14340
|
...o,
|
|
14345
14341
|
ref: n,
|
|
@@ -14355,10 +14351,10 @@ var If = "PopperArrow", M0 = {
|
|
|
14355
14351
|
);
|
|
14356
14352
|
});
|
|
14357
14353
|
Rf.displayName = If;
|
|
14358
|
-
function
|
|
14354
|
+
function L0(e) {
|
|
14359
14355
|
return e !== null;
|
|
14360
14356
|
}
|
|
14361
|
-
var
|
|
14357
|
+
var $0 = (e) => ({
|
|
14362
14358
|
name: "transformOrigin",
|
|
14363
14359
|
options: e,
|
|
14364
14360
|
fn(t) {
|
|
@@ -14372,14 +14368,14 @@ function Ef(e) {
|
|
|
14372
14368
|
const [t, n = "center"] = e.split("-");
|
|
14373
14369
|
return [t, n];
|
|
14374
14370
|
}
|
|
14375
|
-
var
|
|
14371
|
+
var F0 = Sf, z0 = kf, B0 = Tf, H0 = Rf, di = "rovingFocusGroup.onEntryFocus", U0 = { bubbles: !1, cancelable: !0 }, mo = "RovingFocusGroup", [Mi, Af, W0] = sf(mo), [V0, Nf] = Bn(
|
|
14376
14372
|
mo,
|
|
14377
|
-
[
|
|
14378
|
-
), [
|
|
14379
|
-
(e, t) => /* @__PURE__ */ d.jsx(Mi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(Mi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(
|
|
14373
|
+
[W0]
|
|
14374
|
+
), [K0, q0] = V0(mo), jf = b.forwardRef(
|
|
14375
|
+
(e, t) => /* @__PURE__ */ d.jsx(Mi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(Mi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(G0, { ...e, ref: t }) }) })
|
|
14380
14376
|
);
|
|
14381
14377
|
jf.displayName = mo;
|
|
14382
|
-
var
|
|
14378
|
+
var G0 = b.forwardRef((e, t) => {
|
|
14383
14379
|
const {
|
|
14384
14380
|
__scopeRovingFocusGroup: n,
|
|
14385
14381
|
orientation: r,
|
|
@@ -14402,7 +14398,7 @@ var q0 = b.forwardRef((e, t) => {
|
|
|
14402
14398
|
if (A)
|
|
14403
14399
|
return A.addEventListener(di, k), () => A.removeEventListener(di, k);
|
|
14404
14400
|
}, [k]), /* @__PURE__ */ d.jsx(
|
|
14405
|
-
|
|
14401
|
+
K0,
|
|
14406
14402
|
{
|
|
14407
14403
|
scope: n,
|
|
14408
14404
|
orientation: r,
|
|
@@ -14436,7 +14432,7 @@ var q0 = b.forwardRef((e, t) => {
|
|
|
14436
14432
|
onFocus: Se(e.onFocus, (A) => {
|
|
14437
14433
|
const N = !C.current;
|
|
14438
14434
|
if (A.target === A.currentTarget && N && !y) {
|
|
14439
|
-
const D = new CustomEvent(di,
|
|
14435
|
+
const D = new CustomEvent(di, U0);
|
|
14440
14436
|
if (A.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
14441
14437
|
const H = I().filter((Y) => Y.focusable), q = H.find((Y) => Y.active), W = H.find((Y) => Y.id === g), G = [q, W, ...H].filter(
|
|
14442
14438
|
Boolean
|
|
@@ -14460,7 +14456,7 @@ var q0 = b.forwardRef((e, t) => {
|
|
|
14460
14456
|
tabStopId: s,
|
|
14461
14457
|
children: i,
|
|
14462
14458
|
...a
|
|
14463
|
-
} = e, c = Gt(), l = s || c, u =
|
|
14459
|
+
} = e, c = Gt(), l = s || c, u = q0(_f, n), f = u.currentTabStopId === l, h = Af(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: g } = u;
|
|
14464
14460
|
return b.useEffect(() => {
|
|
14465
14461
|
if (r)
|
|
14466
14462
|
return p(), () => m();
|
|
@@ -14488,7 +14484,7 @@ var q0 = b.forwardRef((e, t) => {
|
|
|
14488
14484
|
return;
|
|
14489
14485
|
}
|
|
14490
14486
|
if (x.target !== x.currentTarget) return;
|
|
14491
|
-
const y =
|
|
14487
|
+
const y = J0(x, u.orientation, u.dir);
|
|
14492
14488
|
if (y !== void 0) {
|
|
14493
14489
|
if (x.metaKey || x.ctrlKey || x.altKey || x.shiftKey) return;
|
|
14494
14490
|
x.preventDefault();
|
|
@@ -14497,7 +14493,7 @@ var q0 = b.forwardRef((e, t) => {
|
|
|
14497
14493
|
else if (y === "prev" || y === "next") {
|
|
14498
14494
|
y === "prev" && k.reverse();
|
|
14499
14495
|
const I = k.indexOf(x.currentTarget);
|
|
14500
|
-
k = u.loop ?
|
|
14496
|
+
k = u.loop ? Z0(k, I + 1) : k.slice(I + 1);
|
|
14501
14497
|
}
|
|
14502
14498
|
setTimeout(() => Of(k));
|
|
14503
14499
|
}
|
|
@@ -14510,7 +14506,7 @@ var q0 = b.forwardRef((e, t) => {
|
|
|
14510
14506
|
}
|
|
14511
14507
|
);
|
|
14512
14508
|
Pf.displayName = _f;
|
|
14513
|
-
var
|
|
14509
|
+
var Y0 = {
|
|
14514
14510
|
ArrowLeft: "prev",
|
|
14515
14511
|
ArrowUp: "prev",
|
|
14516
14512
|
ArrowRight: "next",
|
|
@@ -14520,33 +14516,33 @@ var G0 = {
|
|
|
14520
14516
|
PageDown: "last",
|
|
14521
14517
|
End: "last"
|
|
14522
14518
|
};
|
|
14523
|
-
function
|
|
14519
|
+
function X0(e, t) {
|
|
14524
14520
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
14525
14521
|
}
|
|
14526
|
-
function
|
|
14527
|
-
const r =
|
|
14522
|
+
function J0(e, t, n) {
|
|
14523
|
+
const r = X0(e.key, n);
|
|
14528
14524
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
14529
|
-
return
|
|
14525
|
+
return Y0[r];
|
|
14530
14526
|
}
|
|
14531
14527
|
function Of(e, t = !1) {
|
|
14532
14528
|
const n = document.activeElement;
|
|
14533
14529
|
for (const r of e)
|
|
14534
14530
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
14535
14531
|
}
|
|
14536
|
-
function
|
|
14532
|
+
function Z0(e, t) {
|
|
14537
14533
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
14538
14534
|
}
|
|
14539
|
-
var
|
|
14535
|
+
var Q0 = jf, eS = Pf, Di = ["Enter", " "], tS = ["ArrowDown", "PageUp", "Home"], Mf = ["ArrowUp", "PageDown", "End"], nS = [...tS, ...Mf], rS = {
|
|
14540
14536
|
ltr: [...Di, "ArrowRight"],
|
|
14541
14537
|
rtl: [...Di, "ArrowLeft"]
|
|
14542
|
-
},
|
|
14538
|
+
}, oS = {
|
|
14543
14539
|
ltr: ["ArrowLeft"],
|
|
14544
14540
|
rtl: ["ArrowRight"]
|
|
14545
|
-
}, go = "Menu", [no,
|
|
14546
|
-
|
|
14541
|
+
}, go = "Menu", [no, sS, iS] = sf(go), [sr, Df] = Bn(go, [
|
|
14542
|
+
iS,
|
|
14547
14543
|
wf,
|
|
14548
14544
|
Nf
|
|
14549
|
-
]), Os = wf(), Lf = Nf(), [
|
|
14545
|
+
]), Os = wf(), Lf = Nf(), [aS, ir] = sr(go), [lS, xo] = sr(go), $f = (e) => {
|
|
14550
14546
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Os(t), [c, l] = b.useState(null), u = b.useRef(!1), f = Et(s), h = ba(o);
|
|
14551
14547
|
return b.useEffect(() => {
|
|
14552
14548
|
const p = () => {
|
|
@@ -14555,8 +14551,8 @@ var Z0 = jf, Q0 = Pf, Di = ["Enter", " "], eS = ["ArrowDown", "PageUp", "Home"],
|
|
|
14555
14551
|
return document.addEventListener("keydown", p, { capture: !0 }), () => {
|
|
14556
14552
|
document.removeEventListener("keydown", p, { capture: !0 }), document.removeEventListener("pointerdown", m, { capture: !0 }), document.removeEventListener("pointermove", m, { capture: !0 });
|
|
14557
14553
|
};
|
|
14558
|
-
}, []), /* @__PURE__ */ d.jsx(
|
|
14559
|
-
|
|
14554
|
+
}, []), /* @__PURE__ */ d.jsx(F0, { ...a, children: /* @__PURE__ */ d.jsx(
|
|
14555
|
+
aS,
|
|
14560
14556
|
{
|
|
14561
14557
|
scope: t,
|
|
14562
14558
|
open: n,
|
|
@@ -14564,7 +14560,7 @@ var Z0 = jf, Q0 = Pf, Di = ["Enter", " "], eS = ["ArrowDown", "PageUp", "Home"],
|
|
|
14564
14560
|
content: c,
|
|
14565
14561
|
onContentChange: l,
|
|
14566
14562
|
children: /* @__PURE__ */ d.jsx(
|
|
14567
|
-
|
|
14563
|
+
lS,
|
|
14568
14564
|
{
|
|
14569
14565
|
scope: t,
|
|
14570
14566
|
onClose: b.useCallback(() => f(!1), [f]),
|
|
@@ -14578,26 +14574,26 @@ var Z0 = jf, Q0 = Pf, Di = ["Enter", " "], eS = ["ArrowDown", "PageUp", "Home"],
|
|
|
14578
14574
|
) });
|
|
14579
14575
|
};
|
|
14580
14576
|
$f.displayName = go;
|
|
14581
|
-
var
|
|
14577
|
+
var cS = "MenuAnchor", Ea = b.forwardRef(
|
|
14582
14578
|
(e, t) => {
|
|
14583
14579
|
const { __scopeMenu: n, ...r } = e, o = Os(n);
|
|
14584
|
-
return /* @__PURE__ */ d.jsx(
|
|
14580
|
+
return /* @__PURE__ */ d.jsx(z0, { ...o, ...r, ref: t });
|
|
14585
14581
|
}
|
|
14586
14582
|
);
|
|
14587
|
-
Ea.displayName =
|
|
14588
|
-
var Aa = "MenuPortal", [
|
|
14583
|
+
Ea.displayName = cS;
|
|
14584
|
+
var Aa = "MenuPortal", [uS, Ff] = sr(Aa, {
|
|
14589
14585
|
forceMount: void 0
|
|
14590
14586
|
}), zf = (e) => {
|
|
14591
14587
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = ir(Aa, t);
|
|
14592
|
-
return /* @__PURE__ */ d.jsx(
|
|
14588
|
+
return /* @__PURE__ */ d.jsx(uS, { scope: t, forceMount: n, children: /* @__PURE__ */ d.jsx(Xt, { present: n || s.open, children: /* @__PURE__ */ d.jsx(ca, { asChild: !0, container: o, children: r }) }) });
|
|
14593
14589
|
};
|
|
14594
14590
|
zf.displayName = Aa;
|
|
14595
|
-
var en = "MenuContent", [
|
|
14591
|
+
var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
14596
14592
|
(e, t) => {
|
|
14597
14593
|
const n = Ff(en, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ir(en, e.__scopeMenu), i = xo(en, e.__scopeMenu);
|
|
14598
|
-
return /* @__PURE__ */ d.jsx(no.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(no.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ d.jsx(
|
|
14594
|
+
return /* @__PURE__ */ d.jsx(no.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(no.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ d.jsx(fS, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(hS, { ...o, ref: t }) }) }) });
|
|
14599
14595
|
}
|
|
14600
|
-
),
|
|
14596
|
+
), fS = b.forwardRef(
|
|
14601
14597
|
(e, t) => {
|
|
14602
14598
|
const n = ir(en, e.__scopeMenu), r = b.useRef(null), o = st(t, r);
|
|
14603
14599
|
return b.useEffect(() => {
|
|
@@ -14620,7 +14616,7 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14620
14616
|
}
|
|
14621
14617
|
);
|
|
14622
14618
|
}
|
|
14623
|
-
),
|
|
14619
|
+
), hS = b.forwardRef((e, t) => {
|
|
14624
14620
|
const n = ir(en, e.__scopeMenu);
|
|
14625
14621
|
return /* @__PURE__ */ d.jsx(
|
|
14626
14622
|
ja,
|
|
@@ -14633,7 +14629,7 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14633
14629
|
onDismiss: () => n.onOpenChange(!1)
|
|
14634
14630
|
}
|
|
14635
14631
|
);
|
|
14636
|
-
}),
|
|
14632
|
+
}), pS = qr("MenuContent.ScrollLock"), ja = b.forwardRef(
|
|
14637
14633
|
(e, t) => {
|
|
14638
14634
|
const {
|
|
14639
14635
|
__scopeMenu: n,
|
|
@@ -14650,9 +14646,9 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14650
14646
|
onDismiss: p,
|
|
14651
14647
|
disableOutsideScroll: m,
|
|
14652
14648
|
...g
|
|
14653
|
-
} = e, x = ir(en, n), y = xo(en, n), w = Os(n), k = Lf(n), I =
|
|
14649
|
+
} = e, x = ir(en, n), y = xo(en, n), w = Os(n), k = Lf(n), I = sS(n), [C, v] = b.useState(null), T = b.useRef(null), A = st(t, T, x.onContentChange), N = b.useRef(0), D = b.useRef(""), H = b.useRef(0), q = b.useRef(null), W = b.useRef("right"), P = b.useRef(0), G = m ? ua : b.Fragment, Y = m ? { as: pS, allowPinchZoom: !0 } : void 0, ie = (L) => {
|
|
14654
14650
|
var $, j;
|
|
14655
|
-
const X = D.current + L, B = I().filter((K) => !K.disabled), R = document.activeElement, E = ($ = B.find((K) => K.ref.current === R)) == null ? void 0 : $.textValue, M = B.map((K) => K.textValue), O =
|
|
14651
|
+
const X = D.current + L, B = I().filter((K) => !K.disabled), R = document.activeElement, E = ($ = B.find((K) => K.ref.current === R)) == null ? void 0 : $.textValue, M = B.map((K) => K.textValue), O = IS(M, X, E), V = (j = B.find((K) => K.textValue === O)) == null ? void 0 : j.ref.current;
|
|
14656
14652
|
(function K(re) {
|
|
14657
14653
|
D.current = re, window.clearTimeout(N.current), re !== "" && (N.current = window.setTimeout(() => K(""), 1e3));
|
|
14658
14654
|
})(X), V && setTimeout(() => V.focus());
|
|
@@ -14660,10 +14656,10 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14660
14656
|
b.useEffect(() => () => window.clearTimeout(N.current), []), cd();
|
|
14661
14657
|
const U = b.useCallback((L) => {
|
|
14662
14658
|
var B, R;
|
|
14663
|
-
return W.current === ((B = q.current) == null ? void 0 : B.side) &&
|
|
14659
|
+
return W.current === ((B = q.current) == null ? void 0 : B.side) && ES(L, (R = q.current) == null ? void 0 : R.area);
|
|
14664
14660
|
}, []);
|
|
14665
14661
|
return /* @__PURE__ */ d.jsx(
|
|
14666
|
-
|
|
14662
|
+
dS,
|
|
14667
14663
|
{
|
|
14668
14664
|
scope: n,
|
|
14669
14665
|
searchRef: D,
|
|
@@ -14711,7 +14707,7 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14711
14707
|
onInteractOutside: h,
|
|
14712
14708
|
onDismiss: p,
|
|
14713
14709
|
children: /* @__PURE__ */ d.jsx(
|
|
14714
|
-
|
|
14710
|
+
Q0,
|
|
14715
14711
|
{
|
|
14716
14712
|
asChild: !0,
|
|
14717
14713
|
...k,
|
|
@@ -14725,7 +14721,7 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14725
14721
|
}),
|
|
14726
14722
|
preventScrollOnEntryFocus: !0,
|
|
14727
14723
|
children: /* @__PURE__ */ d.jsx(
|
|
14728
|
-
|
|
14724
|
+
B0,
|
|
14729
14725
|
{
|
|
14730
14726
|
role: "menu",
|
|
14731
14727
|
"aria-orientation": "vertical",
|
|
@@ -14740,10 +14736,10 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14740
14736
|
const B = L.target.closest("[data-radix-menu-content]") === L.currentTarget, R = L.ctrlKey || L.altKey || L.metaKey, E = L.key.length === 1;
|
|
14741
14737
|
B && (L.key === "Tab" && L.preventDefault(), !R && E && ie(L.key));
|
|
14742
14738
|
const M = T.current;
|
|
14743
|
-
if (L.target !== M || !
|
|
14739
|
+
if (L.target !== M || !nS.includes(L.key)) return;
|
|
14744
14740
|
L.preventDefault();
|
|
14745
14741
|
const V = I().filter(($) => !$.disabled).map(($) => $.ref.current);
|
|
14746
|
-
Mf.includes(L.key) && V.reverse(),
|
|
14742
|
+
Mf.includes(L.key) && V.reverse(), kS(V);
|
|
14747
14743
|
}),
|
|
14748
14744
|
onBlur: Se(e.onBlur, (L) => {
|
|
14749
14745
|
L.currentTarget.contains(L.target) || (window.clearTimeout(N.current), D.current = "");
|
|
@@ -14771,20 +14767,20 @@ var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14771
14767
|
}
|
|
14772
14768
|
);
|
|
14773
14769
|
Bf.displayName = en;
|
|
14774
|
-
var
|
|
14770
|
+
var mS = "MenuGroup", _a = b.forwardRef(
|
|
14775
14771
|
(e, t) => {
|
|
14776
14772
|
const { __scopeMenu: n, ...r } = e;
|
|
14777
14773
|
return /* @__PURE__ */ d.jsx(Oe.div, { role: "group", ...r, ref: t });
|
|
14778
14774
|
}
|
|
14779
14775
|
);
|
|
14780
|
-
_a.displayName =
|
|
14781
|
-
var
|
|
14776
|
+
_a.displayName = mS;
|
|
14777
|
+
var gS = "MenuLabel", Hf = b.forwardRef(
|
|
14782
14778
|
(e, t) => {
|
|
14783
14779
|
const { __scopeMenu: n, ...r } = e;
|
|
14784
14780
|
return /* @__PURE__ */ d.jsx(Oe.div, { ...r, ref: t });
|
|
14785
14781
|
}
|
|
14786
14782
|
);
|
|
14787
|
-
Hf.displayName =
|
|
14783
|
+
Hf.displayName = gS;
|
|
14788
14784
|
var ds = "MenuItem", yc = "menu.itemSelect", Ms = b.forwardRef(
|
|
14789
14785
|
(e, t) => {
|
|
14790
14786
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = b.useRef(null), i = xo(ds, e.__scopeMenu), a = Na(ds, e.__scopeMenu), c = st(t, s), l = b.useRef(!1), u = () => {
|
|
@@ -14830,7 +14826,7 @@ var Uf = b.forwardRef(
|
|
|
14830
14826
|
scope: n,
|
|
14831
14827
|
disabled: r,
|
|
14832
14828
|
textValue: o ?? h,
|
|
14833
|
-
children: /* @__PURE__ */ d.jsx(
|
|
14829
|
+
children: /* @__PURE__ */ d.jsx(eS, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ d.jsx(
|
|
14834
14830
|
Oe.div,
|
|
14835
14831
|
{
|
|
14836
14832
|
role: "menuitem",
|
|
@@ -14856,7 +14852,7 @@ var Uf = b.forwardRef(
|
|
|
14856
14852
|
}
|
|
14857
14853
|
);
|
|
14858
14854
|
}
|
|
14859
|
-
),
|
|
14855
|
+
), xS = "MenuCheckboxItem", Wf = b.forwardRef(
|
|
14860
14856
|
(e, t) => {
|
|
14861
14857
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
14862
14858
|
return /* @__PURE__ */ d.jsx(Yf, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ d.jsx(
|
|
@@ -14876,21 +14872,21 @@ var Uf = b.forwardRef(
|
|
|
14876
14872
|
) });
|
|
14877
14873
|
}
|
|
14878
14874
|
);
|
|
14879
|
-
Wf.displayName =
|
|
14880
|
-
var Vf = "MenuRadioGroup", [
|
|
14875
|
+
Wf.displayName = xS;
|
|
14876
|
+
var Vf = "MenuRadioGroup", [yS, bS] = sr(
|
|
14881
14877
|
Vf,
|
|
14882
14878
|
{ value: void 0, onValueChange: () => {
|
|
14883
14879
|
} }
|
|
14884
14880
|
), Kf = b.forwardRef(
|
|
14885
14881
|
(e, t) => {
|
|
14886
14882
|
const { value: n, onValueChange: r, ...o } = e, s = Et(r);
|
|
14887
|
-
return /* @__PURE__ */ d.jsx(
|
|
14883
|
+
return /* @__PURE__ */ d.jsx(yS, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ d.jsx(_a, { ...o, ref: t }) });
|
|
14888
14884
|
}
|
|
14889
14885
|
);
|
|
14890
14886
|
Kf.displayName = Vf;
|
|
14891
14887
|
var qf = "MenuRadioItem", Gf = b.forwardRef(
|
|
14892
14888
|
(e, t) => {
|
|
14893
|
-
const { value: n, ...r } = e, o =
|
|
14889
|
+
const { value: n, ...r } = e, o = bS(qf, e.__scopeMenu), s = n === o.value;
|
|
14894
14890
|
return /* @__PURE__ */ d.jsx(Yf, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ d.jsx(
|
|
14895
14891
|
Ms,
|
|
14896
14892
|
{
|
|
@@ -14912,12 +14908,12 @@ var qf = "MenuRadioItem", Gf = b.forwardRef(
|
|
|
14912
14908
|
}
|
|
14913
14909
|
);
|
|
14914
14910
|
Gf.displayName = qf;
|
|
14915
|
-
var Pa = "MenuItemIndicator", [Yf,
|
|
14911
|
+
var Pa = "MenuItemIndicator", [Yf, wS] = sr(
|
|
14916
14912
|
Pa,
|
|
14917
14913
|
{ checked: !1 }
|
|
14918
14914
|
), Xf = b.forwardRef(
|
|
14919
14915
|
(e, t) => {
|
|
14920
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
14916
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = wS(Pa, n);
|
|
14921
14917
|
return /* @__PURE__ */ d.jsx(
|
|
14922
14918
|
Xt,
|
|
14923
14919
|
{
|
|
@@ -14935,7 +14931,7 @@ var Pa = "MenuItemIndicator", [Yf, bS] = sr(
|
|
|
14935
14931
|
}
|
|
14936
14932
|
);
|
|
14937
14933
|
Xf.displayName = Pa;
|
|
14938
|
-
var
|
|
14934
|
+
var vS = "MenuSeparator", Jf = b.forwardRef(
|
|
14939
14935
|
(e, t) => {
|
|
14940
14936
|
const { __scopeMenu: n, ...r } = e;
|
|
14941
14937
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -14949,15 +14945,15 @@ var wS = "MenuSeparator", Jf = b.forwardRef(
|
|
|
14949
14945
|
);
|
|
14950
14946
|
}
|
|
14951
14947
|
);
|
|
14952
|
-
Jf.displayName =
|
|
14953
|
-
var
|
|
14948
|
+
Jf.displayName = vS;
|
|
14949
|
+
var SS = "MenuArrow", Zf = b.forwardRef(
|
|
14954
14950
|
(e, t) => {
|
|
14955
14951
|
const { __scopeMenu: n, ...r } = e, o = Os(n);
|
|
14956
|
-
return /* @__PURE__ */ d.jsx(
|
|
14952
|
+
return /* @__PURE__ */ d.jsx(H0, { ...o, ...r, ref: t });
|
|
14957
14953
|
}
|
|
14958
14954
|
);
|
|
14959
|
-
Zf.displayName =
|
|
14960
|
-
var
|
|
14955
|
+
Zf.displayName = SS;
|
|
14956
|
+
var CS = "MenuSub", [Gk, Qf] = sr(CS), Br = "MenuSubTrigger", eh = b.forwardRef(
|
|
14961
14957
|
(e, t) => {
|
|
14962
14958
|
const n = ir(Br, e.__scopeMenu), r = xo(Br, e.__scopeMenu), o = Qf(Br, e.__scopeMenu), s = Na(Br, e.__scopeMenu), i = b.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = s, l = { __scopeMenu: e.__scopeMenu }, u = b.useCallback(() => {
|
|
14963
14959
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
@@ -15021,7 +15017,7 @@ var SS = "MenuSub", [qk, Qf] = sr(SS), Br = "MenuSubTrigger", eh = b.forwardRef(
|
|
|
15021
15017
|
onKeyDown: Se(e.onKeyDown, (f) => {
|
|
15022
15018
|
var p;
|
|
15023
15019
|
const h = s.searchRef.current !== "";
|
|
15024
|
-
e.disabled || h && f.key === " " ||
|
|
15020
|
+
e.disabled || h && f.key === " " || rS[r.dir].includes(f.key) && (n.onOpenChange(!0), (p = n.content) == null || p.focus(), f.preventDefault());
|
|
15025
15021
|
})
|
|
15026
15022
|
}
|
|
15027
15023
|
) });
|
|
@@ -15056,7 +15052,7 @@ var th = "MenuSubContent", nh = b.forwardRef(
|
|
|
15056
15052
|
}),
|
|
15057
15053
|
onKeyDown: Se(e.onKeyDown, (u) => {
|
|
15058
15054
|
var p;
|
|
15059
|
-
const f = u.currentTarget.contains(u.target), h =
|
|
15055
|
+
const f = u.currentTarget.contains(u.target), h = oS[i.dir].includes(u.key);
|
|
15060
15056
|
f && h && (s.onOpenChange(!1), (p = a.trigger) == null || p.focus(), u.preventDefault());
|
|
15061
15057
|
})
|
|
15062
15058
|
}
|
|
@@ -15073,24 +15069,24 @@ function fs(e) {
|
|
|
15073
15069
|
function Oa(e) {
|
|
15074
15070
|
return fs(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
15075
15071
|
}
|
|
15076
|
-
function
|
|
15072
|
+
function kS(e) {
|
|
15077
15073
|
const t = document.activeElement;
|
|
15078
15074
|
for (const n of e)
|
|
15079
15075
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
15080
15076
|
}
|
|
15081
|
-
function
|
|
15077
|
+
function TS(e, t) {
|
|
15082
15078
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
15083
15079
|
}
|
|
15084
|
-
function
|
|
15080
|
+
function IS(e, t, n) {
|
|
15085
15081
|
const o = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
15086
|
-
let i =
|
|
15082
|
+
let i = TS(e, Math.max(s, 0));
|
|
15087
15083
|
o.length === 1 && (i = i.filter((l) => l !== n));
|
|
15088
15084
|
const c = i.find(
|
|
15089
15085
|
(l) => l.toLowerCase().startsWith(o.toLowerCase())
|
|
15090
15086
|
);
|
|
15091
15087
|
return c !== n ? c : void 0;
|
|
15092
15088
|
}
|
|
15093
|
-
function
|
|
15089
|
+
function RS(e, t) {
|
|
15094
15090
|
const { x: n, y: r } = e;
|
|
15095
15091
|
let o = !1;
|
|
15096
15092
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -15099,18 +15095,18 @@ function IS(e, t) {
|
|
|
15099
15095
|
}
|
|
15100
15096
|
return o;
|
|
15101
15097
|
}
|
|
15102
|
-
function
|
|
15098
|
+
function ES(e, t) {
|
|
15103
15099
|
if (!t) return !1;
|
|
15104
15100
|
const n = { x: e.clientX, y: e.clientY };
|
|
15105
|
-
return
|
|
15101
|
+
return RS(n, t);
|
|
15106
15102
|
}
|
|
15107
15103
|
function ro(e) {
|
|
15108
15104
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
15109
15105
|
}
|
|
15110
|
-
var
|
|
15106
|
+
var AS = $f, NS = Ea, jS = zf, _S = Bf, PS = _a, OS = Hf, MS = Ms, DS = Wf, LS = Kf, $S = Gf, FS = Xf, zS = Jf, BS = Zf, HS = eh, US = nh, Ds = "DropdownMenu", [WS, Yk] = Bn(
|
|
15111
15107
|
Ds,
|
|
15112
15108
|
[Df]
|
|
15113
|
-
), _t = Df(), [
|
|
15109
|
+
), _t = Df(), [VS, oh] = WS(Ds), sh = (e) => {
|
|
15114
15110
|
const {
|
|
15115
15111
|
__scopeDropdownMenu: t,
|
|
15116
15112
|
children: n,
|
|
@@ -15126,7 +15122,7 @@ var ES = $f, AS = Ea, NS = zf, jS = Bf, _S = _a, PS = Hf, OS = Ms, MS = Wf, DS =
|
|
|
15126
15122
|
caller: Ds
|
|
15127
15123
|
});
|
|
15128
15124
|
return /* @__PURE__ */ d.jsx(
|
|
15129
|
-
|
|
15125
|
+
VS,
|
|
15130
15126
|
{
|
|
15131
15127
|
scope: t,
|
|
15132
15128
|
triggerId: Gt(),
|
|
@@ -15136,7 +15132,7 @@ var ES = $f, AS = Ea, NS = zf, jS = Bf, _S = _a, PS = Hf, OS = Ms, MS = Wf, DS =
|
|
|
15136
15132
|
onOpenChange: f,
|
|
15137
15133
|
onOpenToggle: b.useCallback(() => f((h) => !h), [f]),
|
|
15138
15134
|
modal: a,
|
|
15139
|
-
children: /* @__PURE__ */ d.jsx(
|
|
15135
|
+
children: /* @__PURE__ */ d.jsx(AS, { ...c, open: u, onOpenChange: f, dir: r, modal: a, children: n })
|
|
15140
15136
|
}
|
|
15141
15137
|
);
|
|
15142
15138
|
};
|
|
@@ -15144,7 +15140,7 @@ sh.displayName = Ds;
|
|
|
15144
15140
|
var ih = "DropdownMenuTrigger", ah = b.forwardRef(
|
|
15145
15141
|
(e, t) => {
|
|
15146
15142
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = oh(ih, n), i = _t(n);
|
|
15147
|
-
return /* @__PURE__ */ d.jsx(
|
|
15143
|
+
return /* @__PURE__ */ d.jsx(NS, { asChild: !0, ...i, children: /* @__PURE__ */ d.jsx(
|
|
15148
15144
|
Oe.button,
|
|
15149
15145
|
{
|
|
15150
15146
|
type: "button",
|
|
@@ -15168,16 +15164,16 @@ var ih = "DropdownMenuTrigger", ah = b.forwardRef(
|
|
|
15168
15164
|
}
|
|
15169
15165
|
);
|
|
15170
15166
|
ah.displayName = ih;
|
|
15171
|
-
var
|
|
15167
|
+
var KS = "DropdownMenuPortal", lh = (e) => {
|
|
15172
15168
|
const { __scopeDropdownMenu: t, ...n } = e, r = _t(t);
|
|
15173
|
-
return /* @__PURE__ */ d.jsx(
|
|
15169
|
+
return /* @__PURE__ */ d.jsx(jS, { ...r, ...n });
|
|
15174
15170
|
};
|
|
15175
|
-
lh.displayName =
|
|
15171
|
+
lh.displayName = KS;
|
|
15176
15172
|
var ch = "DropdownMenuContent", uh = b.forwardRef(
|
|
15177
15173
|
(e, t) => {
|
|
15178
15174
|
const { __scopeDropdownMenu: n, ...r } = e, o = oh(ch, n), s = _t(n), i = b.useRef(!1);
|
|
15179
15175
|
return /* @__PURE__ */ d.jsx(
|
|
15180
|
-
|
|
15176
|
+
_S,
|
|
15181
15177
|
{
|
|
15182
15178
|
id: o.contentId,
|
|
15183
15179
|
"aria-labelledby": o.triggerId,
|
|
@@ -15205,68 +15201,68 @@ var ch = "DropdownMenuContent", uh = b.forwardRef(
|
|
|
15205
15201
|
}
|
|
15206
15202
|
);
|
|
15207
15203
|
uh.displayName = ch;
|
|
15208
|
-
var
|
|
15204
|
+
var qS = "DropdownMenuGroup", GS = b.forwardRef(
|
|
15209
15205
|
(e, t) => {
|
|
15210
15206
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15211
|
-
return /* @__PURE__ */ d.jsx(
|
|
15207
|
+
return /* @__PURE__ */ d.jsx(PS, { ...o, ...r, ref: t });
|
|
15212
15208
|
}
|
|
15213
15209
|
);
|
|
15214
|
-
|
|
15215
|
-
var
|
|
15210
|
+
GS.displayName = qS;
|
|
15211
|
+
var YS = "DropdownMenuLabel", dh = b.forwardRef(
|
|
15216
15212
|
(e, t) => {
|
|
15217
15213
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15218
|
-
return /* @__PURE__ */ d.jsx(
|
|
15214
|
+
return /* @__PURE__ */ d.jsx(OS, { ...o, ...r, ref: t });
|
|
15219
15215
|
}
|
|
15220
15216
|
);
|
|
15221
|
-
dh.displayName =
|
|
15222
|
-
var
|
|
15217
|
+
dh.displayName = YS;
|
|
15218
|
+
var XS = "DropdownMenuItem", fh = b.forwardRef(
|
|
15223
15219
|
(e, t) => {
|
|
15224
15220
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15225
|
-
return /* @__PURE__ */ d.jsx(
|
|
15221
|
+
return /* @__PURE__ */ d.jsx(MS, { ...o, ...r, ref: t });
|
|
15226
15222
|
}
|
|
15227
15223
|
);
|
|
15228
|
-
fh.displayName =
|
|
15229
|
-
var
|
|
15230
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15231
|
-
return /* @__PURE__ */ d.jsx(MS, { ...o, ...r, ref: t });
|
|
15232
|
-
});
|
|
15233
|
-
hh.displayName = XS;
|
|
15234
|
-
var JS = "DropdownMenuRadioGroup", ZS = b.forwardRef((e, t) => {
|
|
15224
|
+
fh.displayName = XS;
|
|
15225
|
+
var JS = "DropdownMenuCheckboxItem", hh = b.forwardRef((e, t) => {
|
|
15235
15226
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15236
15227
|
return /* @__PURE__ */ d.jsx(DS, { ...o, ...r, ref: t });
|
|
15237
15228
|
});
|
|
15238
|
-
|
|
15239
|
-
var
|
|
15229
|
+
hh.displayName = JS;
|
|
15230
|
+
var ZS = "DropdownMenuRadioGroup", QS = b.forwardRef((e, t) => {
|
|
15240
15231
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15241
15232
|
return /* @__PURE__ */ d.jsx(LS, { ...o, ...r, ref: t });
|
|
15242
15233
|
});
|
|
15243
|
-
|
|
15244
|
-
var eC = "
|
|
15234
|
+
QS.displayName = ZS;
|
|
15235
|
+
var eC = "DropdownMenuRadioItem", ph = b.forwardRef((e, t) => {
|
|
15245
15236
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15246
15237
|
return /* @__PURE__ */ d.jsx($S, { ...o, ...r, ref: t });
|
|
15247
15238
|
});
|
|
15248
|
-
|
|
15249
|
-
var tC = "
|
|
15239
|
+
ph.displayName = eC;
|
|
15240
|
+
var tC = "DropdownMenuItemIndicator", mh = b.forwardRef((e, t) => {
|
|
15250
15241
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15251
15242
|
return /* @__PURE__ */ d.jsx(FS, { ...o, ...r, ref: t });
|
|
15252
15243
|
});
|
|
15253
|
-
|
|
15254
|
-
var nC = "
|
|
15244
|
+
mh.displayName = tC;
|
|
15245
|
+
var nC = "DropdownMenuSeparator", gh = b.forwardRef((e, t) => {
|
|
15246
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15247
|
+
return /* @__PURE__ */ d.jsx(zS, { ...o, ...r, ref: t });
|
|
15248
|
+
});
|
|
15249
|
+
gh.displayName = nC;
|
|
15250
|
+
var rC = "DropdownMenuArrow", oC = b.forwardRef(
|
|
15255
15251
|
(e, t) => {
|
|
15256
15252
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15257
|
-
return /* @__PURE__ */ d.jsx(
|
|
15253
|
+
return /* @__PURE__ */ d.jsx(BS, { ...o, ...r, ref: t });
|
|
15258
15254
|
}
|
|
15259
15255
|
);
|
|
15260
|
-
|
|
15261
|
-
var
|
|
15256
|
+
oC.displayName = rC;
|
|
15257
|
+
var sC = "DropdownMenuSubTrigger", xh = b.forwardRef((e, t) => {
|
|
15262
15258
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15263
|
-
return /* @__PURE__ */ d.jsx(
|
|
15259
|
+
return /* @__PURE__ */ d.jsx(HS, { ...o, ...r, ref: t });
|
|
15264
15260
|
});
|
|
15265
|
-
xh.displayName =
|
|
15266
|
-
var
|
|
15261
|
+
xh.displayName = sC;
|
|
15262
|
+
var iC = "DropdownMenuSubContent", yh = b.forwardRef((e, t) => {
|
|
15267
15263
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15268
15264
|
return /* @__PURE__ */ d.jsx(
|
|
15269
|
-
|
|
15265
|
+
US,
|
|
15270
15266
|
{
|
|
15271
15267
|
...o,
|
|
15272
15268
|
...r,
|
|
@@ -15282,9 +15278,9 @@ var sC = "DropdownMenuSubContent", yh = b.forwardRef((e, t) => {
|
|
|
15282
15278
|
}
|
|
15283
15279
|
);
|
|
15284
15280
|
});
|
|
15285
|
-
yh.displayName =
|
|
15286
|
-
var
|
|
15287
|
-
const Ma =
|
|
15281
|
+
yh.displayName = iC;
|
|
15282
|
+
var aC = sh, lC = ah, cC = lh, bh = uh, wh = dh, vh = fh, Sh = hh, Ch = ph, kh = mh, Th = gh, Ih = xh, Rh = yh;
|
|
15283
|
+
const Ma = aC, Da = lC, uC = b.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ d.jsxs(
|
|
15288
15284
|
Ih,
|
|
15289
15285
|
{
|
|
15290
15286
|
ref: o,
|
|
@@ -15300,8 +15296,8 @@ const Ma = iC, Da = aC, cC = b.forwardRef(({ className: e, inset: t, children: n
|
|
|
15300
15296
|
]
|
|
15301
15297
|
}
|
|
15302
15298
|
));
|
|
15303
|
-
|
|
15304
|
-
const
|
|
15299
|
+
uC.displayName = Ih.displayName;
|
|
15300
|
+
const dC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
15305
15301
|
Rh,
|
|
15306
15302
|
{
|
|
15307
15303
|
ref: n,
|
|
@@ -15312,8 +15308,8 @@ const uC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
15312
15308
|
...t
|
|
15313
15309
|
}
|
|
15314
15310
|
));
|
|
15315
|
-
|
|
15316
|
-
const Ls = b.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ d.jsx(
|
|
15311
|
+
dC.displayName = Rh.displayName;
|
|
15312
|
+
const Ls = b.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ d.jsx(cC, { children: /* @__PURE__ */ d.jsx(
|
|
15317
15313
|
bh,
|
|
15318
15314
|
{
|
|
15319
15315
|
ref: r,
|
|
@@ -15339,7 +15335,7 @@ const Yn = b.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
15339
15335
|
}
|
|
15340
15336
|
));
|
|
15341
15337
|
Yn.displayName = vh.displayName;
|
|
15342
|
-
const
|
|
15338
|
+
const fC = b.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ d.jsxs(
|
|
15343
15339
|
Sh,
|
|
15344
15340
|
{
|
|
15345
15341
|
ref: o,
|
|
@@ -15355,8 +15351,8 @@ const dC = b.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
15355
15351
|
]
|
|
15356
15352
|
}
|
|
15357
15353
|
));
|
|
15358
|
-
|
|
15359
|
-
const
|
|
15354
|
+
fC.displayName = Sh.displayName;
|
|
15355
|
+
const hC = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d.jsxs(
|
|
15360
15356
|
Ch,
|
|
15361
15357
|
{
|
|
15362
15358
|
ref: r,
|
|
@@ -15371,8 +15367,8 @@ const fC = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
15371
15367
|
]
|
|
15372
15368
|
}
|
|
15373
15369
|
));
|
|
15374
|
-
|
|
15375
|
-
const
|
|
15370
|
+
hC.displayName = Ch.displayName;
|
|
15371
|
+
const pC = b.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ d.jsx(
|
|
15376
15372
|
wh,
|
|
15377
15373
|
{
|
|
15378
15374
|
ref: r,
|
|
@@ -15384,8 +15380,8 @@ const hC = b.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
15384
15380
|
...n
|
|
15385
15381
|
}
|
|
15386
15382
|
));
|
|
15387
|
-
|
|
15388
|
-
const
|
|
15383
|
+
pC.displayName = wh.displayName;
|
|
15384
|
+
const mC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
15389
15385
|
Th,
|
|
15390
15386
|
{
|
|
15391
15387
|
ref: n,
|
|
@@ -15393,7 +15389,7 @@ const pC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
15393
15389
|
...t
|
|
15394
15390
|
}
|
|
15395
15391
|
));
|
|
15396
|
-
|
|
15392
|
+
mC.displayName = Th.displayName;
|
|
15397
15393
|
const Eh = b.forwardRef(
|
|
15398
15394
|
({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
15399
15395
|
"textarea",
|
|
@@ -15408,14 +15404,14 @@ const Eh = b.forwardRef(
|
|
|
15408
15404
|
)
|
|
15409
15405
|
);
|
|
15410
15406
|
Eh.displayName = "Textarea";
|
|
15411
|
-
const
|
|
15412
|
-
function
|
|
15407
|
+
const gC = 1e4;
|
|
15408
|
+
function xC({
|
|
15413
15409
|
initialValue: e = "",
|
|
15414
15410
|
editingMessageId: t = null,
|
|
15415
15411
|
placeholder: n = "Type your message...",
|
|
15416
15412
|
isStreaming: r = !1,
|
|
15417
15413
|
disabled: o = !1,
|
|
15418
|
-
maxLength: s =
|
|
15414
|
+
maxLength: s = gC,
|
|
15419
15415
|
value: i,
|
|
15420
15416
|
onValueChange: a,
|
|
15421
15417
|
onSend: c,
|
|
@@ -15553,8 +15549,8 @@ function gC({
|
|
|
15553
15549
|
) })
|
|
15554
15550
|
] }) });
|
|
15555
15551
|
}
|
|
15556
|
-
const
|
|
15557
|
-
function
|
|
15552
|
+
const yC = ee.memo(xC);
|
|
15553
|
+
function bC({
|
|
15558
15554
|
composerValue: e,
|
|
15559
15555
|
onComposerChange: t,
|
|
15560
15556
|
onSend: n,
|
|
@@ -15719,7 +15715,7 @@ function yC({
|
|
|
15719
15715
|
] })
|
|
15720
15716
|
] }),
|
|
15721
15717
|
/* @__PURE__ */ d.jsx("div", { className: "flex-1", children: /* @__PURE__ */ d.jsx(
|
|
15722
|
-
|
|
15718
|
+
yC,
|
|
15723
15719
|
{
|
|
15724
15720
|
initialValue: i,
|
|
15725
15721
|
editingMessageId: s,
|
|
@@ -15739,7 +15735,7 @@ function yC({
|
|
|
15739
15735
|
] })
|
|
15740
15736
|
] });
|
|
15741
15737
|
}
|
|
15742
|
-
const
|
|
15738
|
+
const wC = ee.memo(bC), bc = {
|
|
15743
15739
|
value: ""
|
|
15744
15740
|
};
|
|
15745
15741
|
function Yo({
|
|
@@ -16057,7 +16053,7 @@ function Yo({
|
|
|
16057
16053
|
] }) }),
|
|
16058
16054
|
wt && /* @__PURE__ */ d.jsx("div", { className: "mb-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded px-3 py-2", children: wt }),
|
|
16059
16055
|
/* @__PURE__ */ d.jsx(
|
|
16060
|
-
|
|
16056
|
+
wC,
|
|
16061
16057
|
{
|
|
16062
16058
|
composerValue: ut,
|
|
16063
16059
|
onComposerChange: ze,
|
|
@@ -16082,25 +16078,25 @@ function Yo({
|
|
|
16082
16078
|
] })
|
|
16083
16079
|
] });
|
|
16084
16080
|
}
|
|
16085
|
-
var wc = 1,
|
|
16081
|
+
var wc = 1, vC = 0.9, SC = 0.8, CC = 0.17, fi = 0.1, hi = 0.999, kC = 0.9999, TC = 0.99, IC = /[\\\/_+.#"@\[\(\{&]/, RC = /[\\\/_+.#"@\[\(\{&]/g, EC = /[\s-]/, Ah = /[\s-]/g;
|
|
16086
16082
|
function Li(e, t, n, r, o, s, i) {
|
|
16087
|
-
if (s === t.length) return o === e.length ? wc :
|
|
16083
|
+
if (s === t.length) return o === e.length ? wc : TC;
|
|
16088
16084
|
var a = `${o},${s}`;
|
|
16089
16085
|
if (i[a] !== void 0) return i[a];
|
|
16090
|
-
for (var c = r.charAt(s), l = n.indexOf(c, o), u = 0, f, h, p, m; l >= 0; ) f = Li(e, t, n, r, l + 1, s + 1, i), f > u && (l === o ? f *= wc :
|
|
16086
|
+
for (var c = r.charAt(s), l = n.indexOf(c, o), u = 0, f, h, p, m; l >= 0; ) f = Li(e, t, n, r, l + 1, s + 1, i), f > u && (l === o ? f *= wc : IC.test(e.charAt(l - 1)) ? (f *= SC, p = e.slice(o, l - 1).match(RC), p && o > 0 && (f *= Math.pow(hi, p.length))) : EC.test(e.charAt(l - 1)) ? (f *= vC, m = e.slice(o, l - 1).match(Ah), m && o > 0 && (f *= Math.pow(hi, m.length))) : (f *= CC, o > 0 && (f *= Math.pow(hi, l - o))), e.charAt(l) !== t.charAt(s) && (f *= kC)), (f < fi && n.charAt(l - 1) === r.charAt(s + 1) || r.charAt(s + 1) === r.charAt(s) && n.charAt(l - 1) !== r.charAt(s)) && (h = Li(e, t, n, r, l + 1, s + 2, i), h * fi > f && (f = h * fi)), f > u && (u = f), l = n.indexOf(c, l + 1);
|
|
16091
16087
|
return i[a] = u, u;
|
|
16092
16088
|
}
|
|
16093
16089
|
function vc(e) {
|
|
16094
16090
|
return e.toLowerCase().replace(Ah, " ");
|
|
16095
16091
|
}
|
|
16096
|
-
function
|
|
16092
|
+
function AC(e, t, n) {
|
|
16097
16093
|
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, Li(e, t, vc(e), vc(t), 0, 0, {});
|
|
16098
16094
|
}
|
|
16099
|
-
var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]',
|
|
16095
|
+
var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', NC = '[cmdk-group-heading=""]', Nh = '[cmdk-item=""]', Sc = `${Nh}:not([aria-disabled="true"])`, $i = "cmdk-item-select", dr = "data-value", jC = (e, t, n) => AC(e, t, n), jh = b.createContext(void 0), yo = () => b.useContext(jh), _h = b.createContext(void 0), La = () => b.useContext(_h), Ph = b.createContext(void 0), Oh = b.forwardRef((e, t) => {
|
|
16100
16096
|
let n = fr(() => {
|
|
16101
16097
|
var R, E;
|
|
16102
16098
|
return { search: "", value: (E = (R = e.value) != null ? R : e.defaultValue) != null ? E : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
16103
|
-
}), r = fr(() => /* @__PURE__ */ new Set()), o = fr(() => /* @__PURE__ */ new Map()), s = fr(() => /* @__PURE__ */ new Map()), i = fr(() => /* @__PURE__ */ new Set()), a = Mh(e), { label: c, children: l, value: u, onValueChange: f, filter: h, shouldFilter: p, loop: m, disablePointerSelection: g = !1, vimBindings: x = !0, ...y } = e, w = Gt(), k = Gt(), I = Gt(), C = b.useRef(null), v =
|
|
16099
|
+
}), r = fr(() => /* @__PURE__ */ new Set()), o = fr(() => /* @__PURE__ */ new Map()), s = fr(() => /* @__PURE__ */ new Map()), i = fr(() => /* @__PURE__ */ new Set()), a = Mh(e), { label: c, children: l, value: u, onValueChange: f, filter: h, shouldFilter: p, loop: m, disablePointerSelection: g = !1, vimBindings: x = !0, ...y } = e, w = Gt(), k = Gt(), I = Gt(), C = b.useRef(null), v = HC();
|
|
16104
16100
|
tr(() => {
|
|
16105
16101
|
if (u !== void 0) {
|
|
16106
16102
|
let R = u.trim();
|
|
@@ -16149,7 +16145,7 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', AC = '[cmdk-group-head
|
|
|
16149
16145
|
}), filter: () => a.current.shouldFilter, label: c || e["aria-label"], getDisablePointerSelection: () => a.current.disablePointerSelection, listId: w, inputId: I, labelId: k, listInnerRef: C }), []);
|
|
16150
16146
|
function N(R, E) {
|
|
16151
16147
|
var M, O;
|
|
16152
|
-
let V = (O = (M = a.current) == null ? void 0 : M.filter) != null ? O :
|
|
16148
|
+
let V = (O = (M = a.current) == null ? void 0 : M.filter) != null ? O : jC;
|
|
16153
16149
|
return R ? V(R, n.current.search, E) : 0;
|
|
16154
16150
|
}
|
|
16155
16151
|
function D() {
|
|
@@ -16201,7 +16197,7 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', AC = '[cmdk-group-head
|
|
|
16201
16197
|
function W() {
|
|
16202
16198
|
var R, E, M;
|
|
16203
16199
|
let O = P();
|
|
16204
|
-
O && (((R = O.parentElement) == null ? void 0 : R.firstChild) === O && ((M = (E = O.closest(Fr)) == null ? void 0 : E.querySelector(
|
|
16200
|
+
O && (((R = O.parentElement) == null ? void 0 : R.firstChild) === O && ((M = (E = O.closest(Fr)) == null ? void 0 : E.querySelector(NC)) == null || M.scrollIntoView({ block: "nearest" })), O.scrollIntoView({ block: "nearest" }));
|
|
16205
16201
|
}
|
|
16206
16202
|
function P() {
|
|
16207
16203
|
var R;
|
|
@@ -16222,7 +16218,7 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', AC = '[cmdk-group-head
|
|
|
16222
16218
|
}
|
|
16223
16219
|
function U(R) {
|
|
16224
16220
|
let E = P(), M = E == null ? void 0 : E.closest(Fr), O;
|
|
16225
|
-
for (; M && !O; ) M = R > 0 ?
|
|
16221
|
+
for (; M && !O; ) M = R > 0 ? zC(M, Fr) : BC(M, Fr), O = M == null ? void 0 : M.querySelector(Sc);
|
|
16226
16222
|
O ? T.setState("value", O.getAttribute(dr)) : ie(R);
|
|
16227
16223
|
}
|
|
16228
16224
|
let L = () => Y(G().length - 1), X = (R) => {
|
|
@@ -16270,8 +16266,8 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', AC = '[cmdk-group-head
|
|
|
16270
16266
|
}
|
|
16271
16267
|
}
|
|
16272
16268
|
}
|
|
16273
|
-
} }, b.createElement("label", { "cmdk-label": "", htmlFor: A.inputId, id: A.labelId, style:
|
|
16274
|
-
}),
|
|
16269
|
+
} }, b.createElement("label", { "cmdk-label": "", htmlFor: A.inputId, id: A.labelId, style: WC }, c), $s(e, (R) => b.createElement(_h.Provider, { value: T }, b.createElement(jh.Provider, { value: A }, R))));
|
|
16270
|
+
}), _C = b.forwardRef((e, t) => {
|
|
16275
16271
|
var n, r;
|
|
16276
16272
|
let o = Gt(), s = b.useRef(null), i = b.useContext(Ph), a = yo(), c = Mh(e), l = (r = (n = c.current) == null ? void 0 : n.forceMount) != null ? r : i == null ? void 0 : i.forceMount;
|
|
16277
16273
|
tr(() => {
|
|
@@ -16292,22 +16288,22 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', AC = '[cmdk-group-head
|
|
|
16292
16288
|
if (!p) return null;
|
|
16293
16289
|
let { disabled: x, value: y, onSelect: w, forceMount: k, keywords: I, ...C } = e;
|
|
16294
16290
|
return b.createElement(Oe.div, { ref: _n(s, t), ...C, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!x, "aria-selected": !!h, "data-disabled": !!x, "data-selected": !!h, onPointerMove: x || a.getDisablePointerSelection() ? void 0 : g, onClick: x ? void 0 : m }, e.children);
|
|
16295
|
-
}),
|
|
16291
|
+
}), PC = b.forwardRef((e, t) => {
|
|
16296
16292
|
let { heading: n, children: r, forceMount: o, ...s } = e, i = Gt(), a = b.useRef(null), c = b.useRef(null), l = Gt(), u = yo(), f = Ln((p) => o || u.filter() === !1 ? !0 : p.search ? p.filtered.groups.has(i) : !0);
|
|
16297
16293
|
tr(() => u.group(i), []), Dh(i, a, [e.value, e.heading, c]);
|
|
16298
16294
|
let h = b.useMemo(() => ({ id: i, forceMount: o }), [o]);
|
|
16299
16295
|
return b.createElement(Oe.div, { ref: _n(a, t), ...s, "cmdk-group": "", role: "presentation", hidden: f ? void 0 : !0 }, n && b.createElement("div", { ref: c, "cmdk-group-heading": "", "aria-hidden": !0, id: l }, n), $s(e, (p) => b.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? l : void 0 }, b.createElement(Ph.Provider, { value: h }, p))));
|
|
16300
|
-
}),
|
|
16296
|
+
}), OC = b.forwardRef((e, t) => {
|
|
16301
16297
|
let { alwaysRender: n, ...r } = e, o = b.useRef(null), s = Ln((i) => !i.search);
|
|
16302
16298
|
return !n && !s ? null : b.createElement(Oe.div, { ref: _n(o, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
16303
|
-
}),
|
|
16299
|
+
}), MC = b.forwardRef((e, t) => {
|
|
16304
16300
|
let { onValueChange: n, ...r } = e, o = e.value != null, s = La(), i = Ln((l) => l.search), a = Ln((l) => l.selectedItemId), c = yo();
|
|
16305
16301
|
return b.useEffect(() => {
|
|
16306
16302
|
e.value != null && s.setState("search", e.value);
|
|
16307
16303
|
}, [e.value]), b.createElement(Oe.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": c.listId, "aria-labelledby": c.labelId, "aria-activedescendant": a, id: c.inputId, type: "text", value: o ? e.value : i, onChange: (l) => {
|
|
16308
16304
|
o || s.setState("search", l.target.value), n == null || n(l.target.value);
|
|
16309
16305
|
} });
|
|
16310
|
-
}),
|
|
16306
|
+
}), DC = b.forwardRef((e, t) => {
|
|
16311
16307
|
let { children: n, label: r = "Suggestions", ...o } = e, s = b.useRef(null), i = b.useRef(null), a = Ln((l) => l.selectedItemId), c = yo();
|
|
16312
16308
|
return b.useEffect(() => {
|
|
16313
16309
|
if (i.current && s.current) {
|
|
@@ -16322,21 +16318,21 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', AC = '[cmdk-group-head
|
|
|
16322
16318
|
};
|
|
16323
16319
|
}
|
|
16324
16320
|
}, []), b.createElement(Oe.div, { ref: _n(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": a, "aria-label": r, id: c.listId }, $s(e, (l) => b.createElement("div", { ref: _n(i, c.listInnerRef), "cmdk-list-sizer": "" }, l)));
|
|
16325
|
-
}),
|
|
16321
|
+
}), LC = b.forwardRef((e, t) => {
|
|
16326
16322
|
let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: s, container: i, ...a } = e;
|
|
16327
16323
|
return b.createElement(Od, { open: n, onOpenChange: r }, b.createElement(Md, { container: i }, b.createElement(pa, { "cmdk-overlay": "", className: o }), b.createElement(ma, { "aria-label": e.label, "cmdk-dialog": "", className: s }, b.createElement(Oh, { ref: t, ...a }))));
|
|
16328
|
-
}),
|
|
16324
|
+
}), $C = b.forwardRef((e, t) => Ln((n) => n.filtered.count === 0) ? b.createElement(Oe.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), FC = b.forwardRef((e, t) => {
|
|
16329
16325
|
let { progress: n, children: r, label: o = "Loading...", ...s } = e;
|
|
16330
16326
|
return b.createElement(Oe.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, $s(e, (i) => b.createElement("div", { "aria-hidden": !0 }, i)));
|
|
16331
|
-
}), Ht = Object.assign(Oh, { List:
|
|
16332
|
-
function
|
|
16327
|
+
}), Ht = Object.assign(Oh, { List: DC, Item: _C, Input: MC, Group: PC, Separator: OC, Dialog: LC, Empty: $C, Loading: FC });
|
|
16328
|
+
function zC(e, t) {
|
|
16333
16329
|
let n = e.nextElementSibling;
|
|
16334
16330
|
for (; n; ) {
|
|
16335
16331
|
if (n.matches(t)) return n;
|
|
16336
16332
|
n = n.nextElementSibling;
|
|
16337
16333
|
}
|
|
16338
16334
|
}
|
|
16339
|
-
function
|
|
16335
|
+
function BC(e, t) {
|
|
16340
16336
|
let n = e.previousElementSibling;
|
|
16341
16337
|
for (; n; ) {
|
|
16342
16338
|
if (n.matches(t)) return n;
|
|
@@ -16372,7 +16368,7 @@ function Dh(e, t, n, r = []) {
|
|
|
16372
16368
|
s.value(e, a, c), (i = t.current) == null || i.setAttribute(dr, a), o.current = a;
|
|
16373
16369
|
}), o;
|
|
16374
16370
|
}
|
|
16375
|
-
var
|
|
16371
|
+
var HC = () => {
|
|
16376
16372
|
let [e, t] = b.useState(), n = fr(() => /* @__PURE__ */ new Map());
|
|
16377
16373
|
return tr(() => {
|
|
16378
16374
|
n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
|
|
@@ -16380,14 +16376,14 @@ var BC = () => {
|
|
|
16380
16376
|
n.current.set(r, o), t({});
|
|
16381
16377
|
};
|
|
16382
16378
|
};
|
|
16383
|
-
function
|
|
16379
|
+
function UC(e) {
|
|
16384
16380
|
let t = e.type;
|
|
16385
16381
|
return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
|
|
16386
16382
|
}
|
|
16387
16383
|
function $s({ asChild: e, children: t }, n) {
|
|
16388
|
-
return e && b.isValidElement(t) ? b.cloneElement(
|
|
16384
|
+
return e && b.isValidElement(t) ? b.cloneElement(UC(t), { ref: t.ref }, n(t.props.children)) : n(t);
|
|
16389
16385
|
}
|
|
16390
|
-
var
|
|
16386
|
+
var WC = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
16391
16387
|
const Lh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
16392
16388
|
Ht,
|
|
16393
16389
|
{
|
|
@@ -16445,7 +16441,7 @@ const Bh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
16445
16441
|
}
|
|
16446
16442
|
));
|
|
16447
16443
|
Bh.displayName = Ht.Group.displayName;
|
|
16448
|
-
const
|
|
16444
|
+
const VC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
16449
16445
|
Ht.Separator,
|
|
16450
16446
|
{
|
|
16451
16447
|
ref: n,
|
|
@@ -16453,7 +16449,7 @@ const WC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
16453
16449
|
...t
|
|
16454
16450
|
}
|
|
16455
16451
|
));
|
|
16456
|
-
|
|
16452
|
+
VC.displayName = Ht.Separator.displayName;
|
|
16457
16453
|
const Hh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
16458
16454
|
Ht.Item,
|
|
16459
16455
|
{
|
|
@@ -16466,13 +16462,13 @@ const Hh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
16466
16462
|
}
|
|
16467
16463
|
));
|
|
16468
16464
|
Hh.displayName = Ht.Item.displayName;
|
|
16469
|
-
function
|
|
16465
|
+
function KC(e, [t, n]) {
|
|
16470
16466
|
return Math.min(n, Math.max(t, e));
|
|
16471
16467
|
}
|
|
16472
|
-
function
|
|
16468
|
+
function qC(e, t) {
|
|
16473
16469
|
return b.useReducer((n, r) => t[n][r] ?? n, e);
|
|
16474
16470
|
}
|
|
16475
|
-
var $a = "ScrollArea", [Uh,
|
|
16471
|
+
var $a = "ScrollArea", [Uh, Xk] = Bn($a), [GC, tn] = Uh($a), Wh = b.forwardRef(
|
|
16476
16472
|
(e, t) => {
|
|
16477
16473
|
const {
|
|
16478
16474
|
__scopeScrollArea: n,
|
|
@@ -16482,7 +16478,7 @@ var $a = "ScrollArea", [Uh, Yk] = Bn($a), [qC, tn] = Uh($a), Wh = b.forwardRef(
|
|
|
16482
16478
|
...i
|
|
16483
16479
|
} = e, [a, c] = b.useState(null), [l, u] = b.useState(null), [f, h] = b.useState(null), [p, m] = b.useState(null), [g, x] = b.useState(null), [y, w] = b.useState(0), [k, I] = b.useState(0), [C, v] = b.useState(!1), [T, A] = b.useState(!1), N = st(t, (H) => c(H)), D = ba(o);
|
|
16484
16480
|
return /* @__PURE__ */ d.jsx(
|
|
16485
|
-
|
|
16481
|
+
GC,
|
|
16486
16482
|
{
|
|
16487
16483
|
scope: n,
|
|
16488
16484
|
type: r,
|
|
@@ -16570,11 +16566,11 @@ var Sn = "ScrollAreaScrollbar", Fa = b.forwardRef(
|
|
|
16570
16566
|
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
|
|
16571
16567
|
return b.useEffect(() => (a ? s(!0) : i(!0), () => {
|
|
16572
16568
|
a ? s(!1) : i(!1);
|
|
16573
|
-
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ d.jsx(
|
|
16569
|
+
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ d.jsx(YC, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ d.jsx(XC, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ d.jsx(qh, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ d.jsx(za, { ...r, ref: t }) : null;
|
|
16574
16570
|
}
|
|
16575
16571
|
);
|
|
16576
16572
|
Fa.displayName = Sn;
|
|
16577
|
-
var
|
|
16573
|
+
var YC = b.forwardRef((e, t) => {
|
|
16578
16574
|
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), [s, i] = b.useState(!1);
|
|
16579
16575
|
return b.useEffect(() => {
|
|
16580
16576
|
const a = o.scrollArea;
|
|
@@ -16597,8 +16593,8 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16597
16593
|
ref: t
|
|
16598
16594
|
}
|
|
16599
16595
|
) });
|
|
16600
|
-
}),
|
|
16601
|
-
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = zs(() => c("SCROLL_END"), 100), [a, c] =
|
|
16596
|
+
}), XC = b.forwardRef((e, t) => {
|
|
16597
|
+
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = zs(() => c("SCROLL_END"), 100), [a, c] = qC("hidden", {
|
|
16602
16598
|
hidden: {
|
|
16603
16599
|
SCROLL: "scrolling"
|
|
16604
16600
|
},
|
|
@@ -16671,10 +16667,10 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16671
16667
|
onThumbPointerDown: (h) => i.current = h
|
|
16672
16668
|
};
|
|
16673
16669
|
function f(h, p) {
|
|
16674
|
-
return
|
|
16670
|
+
return nk(h, i.current, a, p);
|
|
16675
16671
|
}
|
|
16676
16672
|
return n === "horizontal" ? /* @__PURE__ */ d.jsx(
|
|
16677
|
-
|
|
16673
|
+
JC,
|
|
16678
16674
|
{
|
|
16679
16675
|
...u,
|
|
16680
16676
|
ref: t,
|
|
@@ -16692,7 +16688,7 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16692
16688
|
}
|
|
16693
16689
|
}
|
|
16694
16690
|
) : n === "vertical" ? /* @__PURE__ */ d.jsx(
|
|
16695
|
-
|
|
16691
|
+
ZC,
|
|
16696
16692
|
{
|
|
16697
16693
|
...u,
|
|
16698
16694
|
ref: t,
|
|
@@ -16710,7 +16706,7 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16710
16706
|
}
|
|
16711
16707
|
}
|
|
16712
16708
|
) : null;
|
|
16713
|
-
}),
|
|
16709
|
+
}), JC = b.forwardRef((e, t) => {
|
|
16714
16710
|
const { sizes: n, onSizesChange: r, ...o } = e, s = tn(Sn, e.__scopeScrollArea), [i, a] = b.useState(), c = b.useRef(null), l = st(t, c, s.onScrollbarXChange);
|
|
16715
16711
|
return b.useEffect(() => {
|
|
16716
16712
|
c.current && a(getComputedStyle(c.current));
|
|
@@ -16749,7 +16745,7 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16749
16745
|
}
|
|
16750
16746
|
}
|
|
16751
16747
|
);
|
|
16752
|
-
}),
|
|
16748
|
+
}), ZC = b.forwardRef((e, t) => {
|
|
16753
16749
|
const { sizes: n, onSizesChange: r, ...o } = e, s = tn(Sn, e.__scopeScrollArea), [i, a] = b.useState(), c = b.useRef(null), l = st(t, c, s.onScrollbarYChange);
|
|
16754
16750
|
return b.useEffect(() => {
|
|
16755
16751
|
c.current && a(getComputedStyle(c.current));
|
|
@@ -16789,7 +16785,7 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16789
16785
|
}
|
|
16790
16786
|
}
|
|
16791
16787
|
);
|
|
16792
|
-
}), [
|
|
16788
|
+
}), [QC, Gh] = Uh(Sn), Yh = b.forwardRef((e, t) => {
|
|
16793
16789
|
const {
|
|
16794
16790
|
__scopeScrollArea: n,
|
|
16795
16791
|
sizes: r,
|
|
@@ -16816,7 +16812,7 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16816
16812
|
};
|
|
16817
16813
|
return document.addEventListener("wheel", N, { passive: !1 }), () => document.removeEventListener("wheel", N, { passive: !1 });
|
|
16818
16814
|
}, [k, m, I, C]), b.useEffect(v, [r, v]), Sr(m, T), Sr(p.content, T), /* @__PURE__ */ d.jsx(
|
|
16819
|
-
|
|
16815
|
+
QC,
|
|
16820
16816
|
{
|
|
16821
16817
|
scope: n,
|
|
16822
16818
|
scrollbar: m,
|
|
@@ -16846,9 +16842,9 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16846
16842
|
}), hs = "ScrollAreaThumb", Xh = b.forwardRef(
|
|
16847
16843
|
(e, t) => {
|
|
16848
16844
|
const { forceMount: n, ...r } = e, o = Gh(hs, e.__scopeScrollArea);
|
|
16849
|
-
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.hasThumb, children: /* @__PURE__ */ d.jsx(
|
|
16845
|
+
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.hasThumb, children: /* @__PURE__ */ d.jsx(ek, { ref: t, ...r }) });
|
|
16850
16846
|
}
|
|
16851
|
-
),
|
|
16847
|
+
), ek = b.forwardRef(
|
|
16852
16848
|
(e, t) => {
|
|
16853
16849
|
const { __scopeScrollArea: n, style: r, ...o } = e, s = tn(hs, n), i = Gh(hs, n), { onThumbPositionChange: a } = i, c = st(
|
|
16854
16850
|
t,
|
|
@@ -16861,7 +16857,7 @@ var GC = b.forwardRef((e, t) => {
|
|
|
16861
16857
|
if (f) {
|
|
16862
16858
|
const h = () => {
|
|
16863
16859
|
if (u(), !l.current) {
|
|
16864
|
-
const p =
|
|
16860
|
+
const p = rk(f, a);
|
|
16865
16861
|
l.current = p, a();
|
|
16866
16862
|
}
|
|
16867
16863
|
};
|
|
@@ -16891,11 +16887,11 @@ Xh.displayName = hs;
|
|
|
16891
16887
|
var Ba = "ScrollAreaCorner", Jh = b.forwardRef(
|
|
16892
16888
|
(e, t) => {
|
|
16893
16889
|
const n = tn(Ba, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
16894
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ d.jsx(
|
|
16890
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ d.jsx(tk, { ...e, ref: t }) : null;
|
|
16895
16891
|
}
|
|
16896
16892
|
);
|
|
16897
16893
|
Jh.displayName = Ba;
|
|
16898
|
-
var
|
|
16894
|
+
var tk = b.forwardRef((e, t) => {
|
|
16899
16895
|
const { __scopeScrollArea: n, ...r } = e, o = tn(Ba, n), [s, i] = b.useState(0), [a, c] = b.useState(0), l = !!(s && a);
|
|
16900
16896
|
return Sr(o.scrollbarX, () => {
|
|
16901
16897
|
var f;
|
|
@@ -16933,12 +16929,12 @@ function Fs(e) {
|
|
|
16933
16929
|
const t = Zh(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
16934
16930
|
return Math.max(r, 18);
|
|
16935
16931
|
}
|
|
16936
|
-
function
|
|
16932
|
+
function nk(e, t, n, r = "ltr") {
|
|
16937
16933
|
const o = Fs(n), s = o / 2, i = t || s, a = o - i, c = n.scrollbar.paddingStart + i, l = n.scrollbar.size - n.scrollbar.paddingEnd - a, u = n.content - n.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
16938
16934
|
return Qh([c, l], f)(e);
|
|
16939
16935
|
}
|
|
16940
16936
|
function Cc(e, t, n = "ltr") {
|
|
16941
|
-
const r = Fs(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - r, c = n === "ltr" ? [0, i] : [i * -1, 0], l =
|
|
16937
|
+
const r = Fs(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - r, c = n === "ltr" ? [0, i] : [i * -1, 0], l = KC(e, c);
|
|
16942
16938
|
return Qh([0, i], [0, a])(l);
|
|
16943
16939
|
}
|
|
16944
16940
|
function Qh(e, t) {
|
|
@@ -16951,7 +16947,7 @@ function Qh(e, t) {
|
|
|
16951
16947
|
function ep(e, t) {
|
|
16952
16948
|
return e > 0 && e < t;
|
|
16953
16949
|
}
|
|
16954
|
-
var
|
|
16950
|
+
var rk = (e, t = () => {
|
|
16955
16951
|
}) => {
|
|
16956
16952
|
let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
16957
16953
|
return function o() {
|
|
@@ -16979,7 +16975,7 @@ function Sr(e, t) {
|
|
|
16979
16975
|
}
|
|
16980
16976
|
}, [e, n]);
|
|
16981
16977
|
}
|
|
16982
|
-
var tp = Wh,
|
|
16978
|
+
var tp = Wh, ok = Kh, sk = Jh;
|
|
16983
16979
|
const np = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d.jsxs(
|
|
16984
16980
|
tp,
|
|
16985
16981
|
{
|
|
@@ -16987,9 +16983,9 @@ const np = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
16987
16983
|
className: le("relative overflow-hidden", e),
|
|
16988
16984
|
...n,
|
|
16989
16985
|
children: [
|
|
16990
|
-
/* @__PURE__ */ d.jsx(
|
|
16986
|
+
/* @__PURE__ */ d.jsx(ok, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
|
|
16991
16987
|
/* @__PURE__ */ d.jsx(rp, {}),
|
|
16992
|
-
/* @__PURE__ */ d.jsx(
|
|
16988
|
+
/* @__PURE__ */ d.jsx(sk, {})
|
|
16993
16989
|
]
|
|
16994
16990
|
}
|
|
16995
16991
|
));
|
|
@@ -17109,7 +17105,7 @@ function mi({
|
|
|
17109
17105
|
}
|
|
17110
17106
|
);
|
|
17111
17107
|
}
|
|
17112
|
-
var Bs = "Collapsible", [
|
|
17108
|
+
var Bs = "Collapsible", [ik, Jk] = Bn(Bs), [ak, Ha] = ik(Bs), op = b.forwardRef(
|
|
17113
17109
|
(e, t) => {
|
|
17114
17110
|
const {
|
|
17115
17111
|
__scopeCollapsible: n,
|
|
@@ -17125,7 +17121,7 @@ var Bs = "Collapsible", [sk, Xk] = Bn(Bs), [ik, Ha] = sk(Bs), op = b.forwardRef(
|
|
|
17125
17121
|
caller: Bs
|
|
17126
17122
|
});
|
|
17127
17123
|
return /* @__PURE__ */ d.jsx(
|
|
17128
|
-
|
|
17124
|
+
ak,
|
|
17129
17125
|
{
|
|
17130
17126
|
scope: n,
|
|
17131
17127
|
disabled: s,
|
|
@@ -17169,11 +17165,11 @@ ip.displayName = sp;
|
|
|
17169
17165
|
var Ua = "CollapsibleContent", ap = b.forwardRef(
|
|
17170
17166
|
(e, t) => {
|
|
17171
17167
|
const { forceMount: n, ...r } = e, o = Ha(Ua, e.__scopeCollapsible);
|
|
17172
|
-
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ d.jsx(
|
|
17168
|
+
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ d.jsx(lk, { ...r, ref: t, present: s }) });
|
|
17173
17169
|
}
|
|
17174
17170
|
);
|
|
17175
17171
|
ap.displayName = Ua;
|
|
17176
|
-
var
|
|
17172
|
+
var lk = b.forwardRef((e, t) => {
|
|
17177
17173
|
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, i = Ha(Ua, n), [a, c] = b.useState(r), l = b.useRef(null), u = st(t, l), f = b.useRef(0), h = f.current, p = b.useRef(0), m = p.current, g = i.open || a, x = b.useRef(g), y = b.useRef(void 0);
|
|
17178
17174
|
return b.useEffect(() => {
|
|
17179
17175
|
const w = requestAnimationFrame(() => x.current = !1);
|
|
@@ -17209,22 +17205,22 @@ var ak = b.forwardRef((e, t) => {
|
|
|
17209
17205
|
function Wa(e) {
|
|
17210
17206
|
return e ? "open" : "closed";
|
|
17211
17207
|
}
|
|
17212
|
-
var
|
|
17213
|
-
const Ao =
|
|
17208
|
+
var ck = op;
|
|
17209
|
+
const Ao = ck, No = ip, jo = ap, kc = 25, lp = Kn.threadManagerView, uk = (e) => e === "default" || e === "shared", dk = () => {
|
|
17214
17210
|
if (typeof window > "u")
|
|
17215
17211
|
return null;
|
|
17216
17212
|
try {
|
|
17217
17213
|
const e = window.localStorage.getItem(lp);
|
|
17218
|
-
if (
|
|
17214
|
+
if (uk(e))
|
|
17219
17215
|
return e;
|
|
17220
17216
|
} catch {
|
|
17221
17217
|
}
|
|
17222
17218
|
return null;
|
|
17223
17219
|
};
|
|
17224
|
-
function
|
|
17220
|
+
function fk({
|
|
17225
17221
|
defaultView: e
|
|
17226
17222
|
} = {}) {
|
|
17227
|
-
const [t, n] = ue(() =>
|
|
17223
|
+
const [t, n] = ue(() => dk() ?? e ?? "default");
|
|
17228
17224
|
Pe(() => {
|
|
17229
17225
|
if (!(typeof window > "u"))
|
|
17230
17226
|
try {
|
|
@@ -17237,7 +17233,7 @@ function dk({
|
|
|
17237
17233
|
}, []);
|
|
17238
17234
|
return { view: t, setView: r };
|
|
17239
17235
|
}
|
|
17240
|
-
const
|
|
17236
|
+
const hk = [
|
|
17241
17237
|
{ key: "default", label: "My chats" },
|
|
17242
17238
|
{ key: "shared", label: "Shared with you" }
|
|
17243
17239
|
];
|
|
@@ -17296,7 +17292,7 @@ function Fi({
|
|
|
17296
17292
|
}
|
|
17297
17293
|
})();
|
|
17298
17294
|
}, [xe, y, xt.length, Ue, v]);
|
|
17299
|
-
const it = y ?? xt, Ye = w ?? Ue, mt = m && m.length > 0 ? m :
|
|
17295
|
+
const it = y ?? xt, Ye = w ?? Ue, mt = m && m.length > 0 ? m : hk, wt = fk({ defaultView: h }), Ve = g ?? wt, lt = f ?? Ve.view, nn = ne(
|
|
17300
17296
|
(J) => {
|
|
17301
17297
|
f || Ve.setView(J), p == null || p(J);
|
|
17302
17298
|
},
|
|
@@ -17642,7 +17638,7 @@ function Fi({
|
|
|
17642
17638
|
] }) })
|
|
17643
17639
|
] });
|
|
17644
17640
|
}
|
|
17645
|
-
function
|
|
17641
|
+
function Zk({
|
|
17646
17642
|
layout: e = "sidebar",
|
|
17647
17643
|
layoutSize: t = "desktop",
|
|
17648
17644
|
showThreads: n = !0,
|
|
@@ -17717,7 +17713,7 @@ function Jk({
|
|
|
17717
17713
|
}
|
|
17718
17714
|
) });
|
|
17719
17715
|
}
|
|
17720
|
-
function
|
|
17716
|
+
function pk({ placeholder: e, onMessageSent: t }) {
|
|
17721
17717
|
const [n, r] = ue("chat");
|
|
17722
17718
|
return /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
17723
17719
|
/* @__PURE__ */ d.jsxs("div", { className: "flex border-b border-gray-200 bg-gray-50", children: [
|
|
@@ -17761,7 +17757,7 @@ function hk({ placeholder: e, onMessageSent: t }) {
|
|
|
17761
17757
|
) })
|
|
17762
17758
|
] });
|
|
17763
17759
|
}
|
|
17764
|
-
function
|
|
17760
|
+
function Qk({
|
|
17765
17761
|
className: e = "",
|
|
17766
17762
|
placeholder: t,
|
|
17767
17763
|
isAuthenticated: n = !0,
|
|
@@ -17828,14 +17824,14 @@ function Zk({
|
|
|
17828
17824
|
)
|
|
17829
17825
|
] })
|
|
17830
17826
|
] }) }),
|
|
17831
|
-
!a && /* @__PURE__ */ d.jsx("div", { className: "h-96 flex flex-col", children: /* @__PURE__ */ d.jsx(
|
|
17827
|
+
!a && /* @__PURE__ */ d.jsx("div", { className: "h-96 flex flex-col", children: /* @__PURE__ */ d.jsx(pk, { placeholder: t, onMessageSent: r }) })
|
|
17832
17828
|
]
|
|
17833
17829
|
}
|
|
17834
17830
|
)
|
|
17835
17831
|
}
|
|
17836
17832
|
) }) : null;
|
|
17837
17833
|
}
|
|
17838
|
-
function
|
|
17834
|
+
function eT({
|
|
17839
17835
|
label: e = "New chat",
|
|
17840
17836
|
children: t,
|
|
17841
17837
|
className: n,
|
|
@@ -17869,7 +17865,7 @@ function Tc({
|
|
|
17869
17865
|
artifactOverride: s = null,
|
|
17870
17866
|
contentOverride: i = null
|
|
17871
17867
|
}) {
|
|
17872
|
-
const { toolRenderers: a, toolArtifactRenderers: c } = r ?? {}, l = Wi(e), u = s ?? e.artifact ?? null, f = Array.isArray(i) ? i : e.content, h =
|
|
17868
|
+
const { toolRenderers: a, toolArtifactRenderers: c } = r ?? {}, l = Wi(e), u = s ?? e.artifact ?? null, f = Array.isArray(i) ? i : e.content, h = gv(e), m = (h ? Yg(h) : null) ?? h, g = f.find((P) => P.type !== "tool_call"), x = (P) => {
|
|
17873
17869
|
if (P == null) return null;
|
|
17874
17870
|
const G = typeof P == "string" ? P : (() => {
|
|
17875
17871
|
try {
|
|
@@ -17928,7 +17924,7 @@ function Tc({
|
|
|
17928
17924
|
}) : null, q = A ?? v, W = D ? H : null;
|
|
17929
17925
|
return /* @__PURE__ */ d.jsxs("div", { className: "space-y-2", children: [
|
|
17930
17926
|
n && /* @__PURE__ */ d.jsx(
|
|
17931
|
-
|
|
17927
|
+
Ew,
|
|
17932
17928
|
{
|
|
17933
17929
|
artifact: u,
|
|
17934
17930
|
showPartialData: !1
|
|
@@ -17938,7 +17934,7 @@ function Tc({
|
|
|
17938
17934
|
T ? q : null
|
|
17939
17935
|
] });
|
|
17940
17936
|
}
|
|
17941
|
-
function
|
|
17937
|
+
function tT({
|
|
17942
17938
|
submit: e,
|
|
17943
17939
|
chatRequest: t,
|
|
17944
17940
|
lastCheckpointId: n,
|
|
@@ -18107,52 +18103,52 @@ function eT({
|
|
|
18107
18103
|
export {
|
|
18108
18104
|
vg as ApiProvider,
|
|
18109
18105
|
mg as ChatApi,
|
|
18110
|
-
|
|
18106
|
+
Zk as ChatApp,
|
|
18111
18107
|
Yo as ChatContainer,
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18108
|
+
xC as ChatInput,
|
|
18109
|
+
bC as ChatInputArea,
|
|
18110
|
+
bC as ChatInputRow,
|
|
18115
18111
|
Yo as ChatInterface,
|
|
18116
18112
|
of as ChatMessagesArea,
|
|
18117
18113
|
Fo as ChatProviders,
|
|
18118
|
-
|
|
18119
|
-
|
|
18114
|
+
Qk as ChatWidget,
|
|
18115
|
+
xC as Composer,
|
|
18120
18116
|
fg as DEFAULT_TIMEOUT_MS,
|
|
18121
18117
|
gg as FileApi,
|
|
18122
18118
|
hg as HISTORY_TIMEOUT_MS,
|
|
18123
18119
|
Vo as MarkdownContent,
|
|
18124
18120
|
tf as MessageComponent,
|
|
18125
|
-
|
|
18121
|
+
Qw as MessageContent,
|
|
18126
18122
|
of as MessageList,
|
|
18127
18123
|
rf as MessageRow,
|
|
18128
|
-
|
|
18124
|
+
eT as NewChatButton,
|
|
18129
18125
|
Tu as SETTINGS_STORAGE_KEY,
|
|
18130
18126
|
Kn as STORAGE_KEYS,
|
|
18131
18127
|
Fi as ThreadManager,
|
|
18132
|
-
|
|
18128
|
+
gx as ThreadStateProvider,
|
|
18133
18129
|
Hg as ThreadsProvider,
|
|
18134
18130
|
Tc as ToolContent,
|
|
18135
|
-
|
|
18131
|
+
Vk as applySettings,
|
|
18136
18132
|
Jn as chatApiClient,
|
|
18137
|
-
|
|
18138
|
-
|
|
18133
|
+
Ck as cn,
|
|
18134
|
+
Uk as createTaskSyncToolEndHandler,
|
|
18139
18135
|
ul as del,
|
|
18140
18136
|
Gs as draftKey,
|
|
18141
|
-
|
|
18137
|
+
kx as extractTaskIdFromToolEnd,
|
|
18142
18138
|
wr as extractToolContent,
|
|
18143
18139
|
lu as fileApiClient,
|
|
18144
18140
|
Sg as fileToBase64,
|
|
18145
|
-
|
|
18141
|
+
Bk as formatToolOutput,
|
|
18146
18142
|
Wt as get,
|
|
18147
18143
|
iu as getChatToken,
|
|
18148
|
-
|
|
18149
|
-
|
|
18150
|
-
|
|
18144
|
+
Wk as getCurrentSettings,
|
|
18145
|
+
Tx as getDefaultApiConfig,
|
|
18146
|
+
Ix as getDefaultChatSettings,
|
|
18151
18147
|
nf as getMessageDomKey,
|
|
18152
18148
|
$t as httpClient,
|
|
18153
18149
|
Lg as isEnvelope,
|
|
18154
18150
|
pu as isFileLike,
|
|
18155
|
-
|
|
18151
|
+
Rx as loadStoredSettings,
|
|
18156
18152
|
Rg as looksLikeMarkdown,
|
|
18157
18153
|
Yg as normalizeToolPayload,
|
|
18158
18154
|
Hr as normalizeToolPayloadValue,
|
|
@@ -18163,19 +18159,19 @@ export {
|
|
|
18163
18159
|
Cg as processAttachments,
|
|
18164
18160
|
pg as put,
|
|
18165
18161
|
Qo as sanitizeForDisplay,
|
|
18166
|
-
|
|
18162
|
+
Ex as saveSettings,
|
|
18167
18163
|
qn as setChatToken,
|
|
18168
18164
|
Vg as stringifyTool,
|
|
18169
18165
|
Lt as unwrap,
|
|
18170
18166
|
Rr as useApi,
|
|
18171
|
-
|
|
18172
|
-
|
|
18173
|
-
|
|
18167
|
+
tT as useChatController,
|
|
18168
|
+
Hk as useHasChatSession,
|
|
18169
|
+
Cx as useShallowStableValue,
|
|
18174
18170
|
vu as useStream,
|
|
18175
|
-
|
|
18176
|
-
|
|
18171
|
+
px as useThreadHistoryState,
|
|
18172
|
+
fk as useThreadManagerViewState,
|
|
18177
18173
|
vs as useThreadState,
|
|
18178
|
-
|
|
18174
|
+
mx as useThreadStateUpdater,
|
|
18179
18175
|
co as useThreads,
|
|
18180
18176
|
Bg as useThreadsState
|
|
18181
18177
|
};
|