@eloquentai/chat-sdk 0.35.0-dev.1 → 0.35.0-dev.2
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.
|
@@ -5,12 +5,12 @@ import { useState as ye, forwardRef as Te, createContext as Gr, useContext as Yr
|
|
|
5
5
|
import * as ks from "react-dom";
|
|
6
6
|
try {
|
|
7
7
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
8
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
8
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6324415c-afb2-4590-b4b6-276630565927", e._sentryDebugIdIdentifier = "sentry-dbid-6324415c-afb2-4590-b4b6-276630565927");
|
|
9
9
|
} catch {
|
|
10
10
|
}
|
|
11
11
|
{
|
|
12
12
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
13
|
-
e.SENTRY_RELEASE = { id: "
|
|
13
|
+
e.SENTRY_RELEASE = { id: "345c86084cb7c2b17d19e60ed84af391fcb86b22" };
|
|
14
14
|
}
|
|
15
15
|
function vs(e) {
|
|
16
16
|
var t, n, r = "";
|
|
@@ -346,7 +346,7 @@ const id = (e, t) => {
|
|
|
346
346
|
"left-bottom"
|
|
347
347
|
], N = () => [...I(), H, U], A = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", "contain", "none"], P = () => [H, U, s], j = () => [Vt, "full", "auto", ...P()], E = () => [vt, "none", "subgrid", H, U], L = () => ["auto", {
|
|
348
348
|
span: ["full", vt, H, U]
|
|
349
|
-
}, vt, H, U], O = () => [vt, "auto", H, U], te = () => ["auto", "min", "max", "fr", H, U], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], F = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"],
|
|
349
|
+
}, vt, H, U], O = () => [vt, "auto", H, U], te = () => ["auto", "min", "max", "fr", H, U], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], F = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...P()], ae = () => [Vt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...P()], qe = () => [Vt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...P()], Le = () => [Vt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...P()], g = () => [e, H, U], Se = () => [...I(), Vl, jl, {
|
|
350
350
|
position: [H, U]
|
|
351
351
|
}], Oe = () => ["no-repeat", {
|
|
352
352
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -953,77 +953,77 @@ const id = (e, t) => {
|
|
|
953
953
|
* @see https://tailwindcss.com/docs/margin
|
|
954
954
|
*/
|
|
955
955
|
m: [{
|
|
956
|
-
m:
|
|
956
|
+
m: J()
|
|
957
957
|
}],
|
|
958
958
|
/**
|
|
959
959
|
* Margin Inline
|
|
960
960
|
* @see https://tailwindcss.com/docs/margin
|
|
961
961
|
*/
|
|
962
962
|
mx: [{
|
|
963
|
-
mx:
|
|
963
|
+
mx: J()
|
|
964
964
|
}],
|
|
965
965
|
/**
|
|
966
966
|
* Margin Block
|
|
967
967
|
* @see https://tailwindcss.com/docs/margin
|
|
968
968
|
*/
|
|
969
969
|
my: [{
|
|
970
|
-
my:
|
|
970
|
+
my: J()
|
|
971
971
|
}],
|
|
972
972
|
/**
|
|
973
973
|
* Margin Inline Start
|
|
974
974
|
* @see https://tailwindcss.com/docs/margin
|
|
975
975
|
*/
|
|
976
976
|
ms: [{
|
|
977
|
-
ms:
|
|
977
|
+
ms: J()
|
|
978
978
|
}],
|
|
979
979
|
/**
|
|
980
980
|
* Margin Inline End
|
|
981
981
|
* @see https://tailwindcss.com/docs/margin
|
|
982
982
|
*/
|
|
983
983
|
me: [{
|
|
984
|
-
me:
|
|
984
|
+
me: J()
|
|
985
985
|
}],
|
|
986
986
|
/**
|
|
987
987
|
* Margin Block Start
|
|
988
988
|
* @see https://tailwindcss.com/docs/margin
|
|
989
989
|
*/
|
|
990
990
|
mbs: [{
|
|
991
|
-
mbs:
|
|
991
|
+
mbs: J()
|
|
992
992
|
}],
|
|
993
993
|
/**
|
|
994
994
|
* Margin Block End
|
|
995
995
|
* @see https://tailwindcss.com/docs/margin
|
|
996
996
|
*/
|
|
997
997
|
mbe: [{
|
|
998
|
-
mbe:
|
|
998
|
+
mbe: J()
|
|
999
999
|
}],
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Margin Top
|
|
1002
1002
|
* @see https://tailwindcss.com/docs/margin
|
|
1003
1003
|
*/
|
|
1004
1004
|
mt: [{
|
|
1005
|
-
mt:
|
|
1005
|
+
mt: J()
|
|
1006
1006
|
}],
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Margin Right
|
|
1009
1009
|
* @see https://tailwindcss.com/docs/margin
|
|
1010
1010
|
*/
|
|
1011
1011
|
mr: [{
|
|
1012
|
-
mr:
|
|
1012
|
+
mr: J()
|
|
1013
1013
|
}],
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Margin Bottom
|
|
1016
1016
|
* @see https://tailwindcss.com/docs/margin
|
|
1017
1017
|
*/
|
|
1018
1018
|
mb: [{
|
|
1019
|
-
mb:
|
|
1019
|
+
mb: J()
|
|
1020
1020
|
}],
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Margin Left
|
|
1023
1023
|
* @see https://tailwindcss.com/docs/margin
|
|
1024
1024
|
*/
|
|
1025
1025
|
ml: [{
|
|
1026
|
-
ml:
|
|
1026
|
+
ml: J()
|
|
1027
1027
|
}],
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Space Between X
|
|
@@ -3030,7 +3030,7 @@ const id = (e, t) => {
|
|
|
3030
3030
|
const r = t[n];
|
|
3031
3031
|
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
|
|
3032
3032
|
}, Yd = (e, ...t) => typeof e == "function" ? Ul($l, e, ...t) : Ul(() => Gd($l(), e), ...t), Xd = Yd({ prefix: "eloq" });
|
|
3033
|
-
function
|
|
3033
|
+
function Z(...e) {
|
|
3034
3034
|
return Xd(od(e));
|
|
3035
3035
|
}
|
|
3036
3036
|
function Ii(e) {
|
|
@@ -3040,7 +3040,7 @@ function Ii(e) {
|
|
|
3040
3040
|
return /* @__PURE__ */ x(
|
|
3041
3041
|
"div",
|
|
3042
3042
|
{
|
|
3043
|
-
className:
|
|
3043
|
+
className: Z(
|
|
3044
3044
|
"eloq:relative eloq:flex eloq:items-center eloq:justify-center eloq:w-full eloq:h-full",
|
|
3045
3045
|
t
|
|
3046
3046
|
),
|
|
@@ -3087,7 +3087,7 @@ const Pi = Te(
|
|
|
3087
3087
|
"div",
|
|
3088
3088
|
{
|
|
3089
3089
|
ref: n,
|
|
3090
|
-
className:
|
|
3090
|
+
className: Z(
|
|
3091
3091
|
"eloq:rounded-lg eloq:border eloq:bg-card eloq:text-card-foreground eloq:shadow-sm",
|
|
3092
3092
|
e
|
|
3093
3093
|
),
|
|
@@ -3101,7 +3101,7 @@ const Di = Te(
|
|
|
3101
3101
|
"div",
|
|
3102
3102
|
{
|
|
3103
3103
|
ref: n,
|
|
3104
|
-
className:
|
|
3104
|
+
className: Z(
|
|
3105
3105
|
"eloq:flex eloq:flex-col eloq:space-y-1.5 eloq:p-6",
|
|
3106
3106
|
e
|
|
3107
3107
|
),
|
|
@@ -3115,7 +3115,7 @@ const Kd = Te(
|
|
|
3115
3115
|
"div",
|
|
3116
3116
|
{
|
|
3117
3117
|
ref: n,
|
|
3118
|
-
className:
|
|
3118
|
+
className: Z(
|
|
3119
3119
|
"eloq:text-2xl eloq:font-semibold eloq:leading-none eloq:tracking-tight",
|
|
3120
3120
|
e
|
|
3121
3121
|
),
|
|
@@ -3128,13 +3128,13 @@ const Qd = Te(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
3128
3128
|
"div",
|
|
3129
3129
|
{
|
|
3130
3130
|
ref: n,
|
|
3131
|
-
className:
|
|
3131
|
+
className: Z("eloq:text-sm eloq:text-muted-foreground", e),
|
|
3132
3132
|
...t
|
|
3133
3133
|
}
|
|
3134
3134
|
));
|
|
3135
3135
|
Qd.displayName = "CardDescription";
|
|
3136
3136
|
const Ni = Te(
|
|
3137
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ x("div", { ref: n, className:
|
|
3137
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ x("div", { ref: n, className: Z("eloq:p-6 eloq:pt-0", e), ...t })
|
|
3138
3138
|
);
|
|
3139
3139
|
Ni.displayName = "CardContent";
|
|
3140
3140
|
const Li = Te(
|
|
@@ -3142,7 +3142,7 @@ const Li = Te(
|
|
|
3142
3142
|
"div",
|
|
3143
3143
|
{
|
|
3144
3144
|
ref: n,
|
|
3145
|
-
className:
|
|
3145
|
+
className: Z(
|
|
3146
3146
|
"eloq:flex eloq:items-center eloq:p-6 eloq:pt-0",
|
|
3147
3147
|
e
|
|
3148
3148
|
),
|
|
@@ -4396,7 +4396,7 @@ const mc = Te(({ className: e, children: t, onViewportScroll: n, ...r }, o) => /
|
|
|
4396
4396
|
hc,
|
|
4397
4397
|
{
|
|
4398
4398
|
ref: o,
|
|
4399
|
-
className:
|
|
4399
|
+
className: Z("eloq:relative eloq:overflow-hidden", e),
|
|
4400
4400
|
...r,
|
|
4401
4401
|
children: [
|
|
4402
4402
|
/* @__PURE__ */ x(
|
|
@@ -4418,7 +4418,7 @@ const gc = Te(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__
|
|
|
4418
4418
|
{
|
|
4419
4419
|
ref: r,
|
|
4420
4420
|
orientation: t,
|
|
4421
|
-
className:
|
|
4421
|
+
className: Z(
|
|
4422
4422
|
"eloq:flex eloq:touch-none eloq:select-none eloq:transition-colors",
|
|
4423
4423
|
t === "vertical" && "eloq:h-full eloq:w-2.5 eloq:border-l eloq:border-l-transparent eloq:p-[1px]",
|
|
4424
4424
|
t === "horizontal" && "eloq:h-2.5 eloq:flex-col eloq:border-t eloq:border-t-transparent eloq:p-[1px]",
|
|
@@ -4464,7 +4464,7 @@ function wh({
|
|
|
4464
4464
|
}
|
|
4465
4465
|
o(!0), setTimeout(() => o(!1), 2e3);
|
|
4466
4466
|
},
|
|
4467
|
-
className:
|
|
4467
|
+
className: Z(xo, r && "eloq:text-primary"),
|
|
4468
4468
|
title: "Copy message",
|
|
4469
4469
|
"aria-label": "Copy message",
|
|
4470
4470
|
children: /* @__PURE__ */ x(mp, { size: 16 })
|
|
@@ -4475,7 +4475,7 @@ function wh({
|
|
|
4475
4475
|
"button",
|
|
4476
4476
|
{
|
|
4477
4477
|
onClick: () => n(t === "up" ? null : "up"),
|
|
4478
|
-
className:
|
|
4478
|
+
className: Z(
|
|
4479
4479
|
xo,
|
|
4480
4480
|
t === "up" && "eloq:text-primary"
|
|
4481
4481
|
),
|
|
@@ -4486,7 +4486,7 @@ function wh({
|
|
|
4486
4486
|
"button",
|
|
4487
4487
|
{
|
|
4488
4488
|
onClick: () => n(t === "down" ? null : "down"),
|
|
4489
|
-
className:
|
|
4489
|
+
className: Z(
|
|
4490
4490
|
xo,
|
|
4491
4491
|
t === "down" && "eloq:text-primary"
|
|
4492
4492
|
),
|
|
@@ -5662,7 +5662,7 @@ const Hm = Im, jm = Dm, Kc = Te(({ className: e, ...t }, n) => /* @__PURE__ */ x
|
|
|
5662
5662
|
$c,
|
|
5663
5663
|
{
|
|
5664
5664
|
ref: n,
|
|
5665
|
-
className:
|
|
5665
|
+
className: Z(
|
|
5666
5666
|
"eloq:fixed eloq:inset-0 eloq:z-50 eloq:bg-black/80 eloq:data-[state=open]:animate-dialog-overlay-in eloq:data-[state=closed]:animate-dialog-overlay-out",
|
|
5667
5667
|
e
|
|
5668
5668
|
),
|
|
@@ -5676,7 +5676,7 @@ const Qc = Te(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ K(jm,
|
|
|
5676
5676
|
Wc,
|
|
5677
5677
|
{
|
|
5678
5678
|
ref: r,
|
|
5679
|
-
className:
|
|
5679
|
+
className: Z(
|
|
5680
5680
|
"eloq:fixed eloq:left-[50%] eloq:top-[50%] eloq:z-50 eloq:grid eloq:w-full eloq:max-w-lg eloq:translate-x-[-50%] eloq:translate-y-[-50%] eloq:gap-4 eloq:border eloq:bg-background eloq:p-6 eloq:shadow-lg eloq:data-[state=open]:animate-dialog-content-in eloq:data-[state=closed]:animate-dialog-content-out eloq:sm:rounded-lg",
|
|
5681
5681
|
e
|
|
5682
5682
|
),
|
|
@@ -5686,7 +5686,7 @@ const Qc = Te(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ K(jm,
|
|
|
5686
5686
|
/* @__PURE__ */ K(
|
|
5687
5687
|
Um,
|
|
5688
5688
|
{
|
|
5689
|
-
className:
|
|
5689
|
+
className: Z(
|
|
5690
5690
|
// Placement + surface
|
|
5691
5691
|
"eloq:absolute eloq:right-4 eloq:top-4 eloq:rounded-sm eloq:bg-white/90 eloq:dark:bg-card/90 eloq:dark:text-foreground",
|
|
5692
5692
|
// Hover / disabled affordances
|
|
@@ -5711,7 +5711,7 @@ const Zc = Te(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
5711
5711
|
Yc,
|
|
5712
5712
|
{
|
|
5713
5713
|
ref: n,
|
|
5714
|
-
className:
|
|
5714
|
+
className: Z(
|
|
5715
5715
|
"eloq:text-lg eloq:font-semibold eloq:leading-none eloq:tracking-tight",
|
|
5716
5716
|
e
|
|
5717
5717
|
),
|
|
@@ -5723,7 +5723,7 @@ const Jc = Te(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
5723
5723
|
Xc,
|
|
5724
5724
|
{
|
|
5725
5725
|
ref: n,
|
|
5726
|
-
className:
|
|
5726
|
+
className: Z("eloq:text-sm eloq:text-muted-foreground", e),
|
|
5727
5727
|
...t
|
|
5728
5728
|
}
|
|
5729
5729
|
));
|
|
@@ -6941,8 +6941,8 @@ function ag() {
|
|
|
6941
6941
|
function I(V) {
|
|
6942
6942
|
var F = V.match(t);
|
|
6943
6943
|
F && (C += F.length);
|
|
6944
|
-
var
|
|
6945
|
-
T = ~
|
|
6944
|
+
var J = V.lastIndexOf(s);
|
|
6945
|
+
T = ~J ? V.length - J : T + V.length;
|
|
6946
6946
|
}
|
|
6947
6947
|
function N() {
|
|
6948
6948
|
var V = { line: C, column: T };
|
|
@@ -6963,8 +6963,8 @@ function ag() {
|
|
|
6963
6963
|
function P(V) {
|
|
6964
6964
|
var F = V.exec(k);
|
|
6965
6965
|
if (F) {
|
|
6966
|
-
var
|
|
6967
|
-
return I(
|
|
6966
|
+
var J = F[0];
|
|
6967
|
+
return I(J), k = k.slice(J.length), F;
|
|
6968
6968
|
}
|
|
6969
6969
|
}
|
|
6970
6970
|
function j() {
|
|
@@ -6983,10 +6983,10 @@ function ag() {
|
|
|
6983
6983
|
++F;
|
|
6984
6984
|
if (F += 2, u === k.charAt(F - 1))
|
|
6985
6985
|
return z("End of comment missing");
|
|
6986
|
-
var
|
|
6987
|
-
return T += 2, I(
|
|
6986
|
+
var J = k.slice(2, F - 2);
|
|
6987
|
+
return T += 2, I(J), k = k.slice(F), T += 2, V({
|
|
6988
6988
|
type: p,
|
|
6989
|
-
comment:
|
|
6989
|
+
comment: J
|
|
6990
6990
|
});
|
|
6991
6991
|
}
|
|
6992
6992
|
}
|
|
@@ -6994,10 +6994,10 @@ function ag() {
|
|
|
6994
6994
|
var V = N(), F = P(r);
|
|
6995
6995
|
if (F) {
|
|
6996
6996
|
if (L(), !P(o)) return z("property missing ':'");
|
|
6997
|
-
var
|
|
6997
|
+
var J = P(l), ae = V({
|
|
6998
6998
|
type: d,
|
|
6999
6999
|
property: b(F[0].replace(e, u)),
|
|
7000
|
-
value:
|
|
7000
|
+
value: J ? b(J[0].replace(e, u)) : u
|
|
7001
7001
|
});
|
|
7002
7002
|
return P(i), ae;
|
|
7003
7003
|
}
|
|
@@ -10923,7 +10923,7 @@ function Pb(e, t, n) {
|
|
|
10923
10923
|
return w === null || Y(w) ? O(w) : oe(w) ? (e.consume(w), L) : n(w);
|
|
10924
10924
|
}
|
|
10925
10925
|
function O(w) {
|
|
10926
|
-
return w === 45 && o === 2 ? (e.consume(w),
|
|
10926
|
+
return w === 45 && o === 2 ? (e.consume(w), J) : w === 60 && o === 1 ? (e.consume(w), ae) : w === 62 && o === 4 ? (e.consume(w), Se) : w === 63 && o === 3 ? (e.consume(w), g) : w === 93 && o === 5 ? (e.consume(w), Le) : Y(w) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check(_b, Oe, te)(w)) : w === null || Y(w) ? (e.exit("htmlFlowData"), te(w)) : (e.consume(w), O);
|
|
10927
10927
|
}
|
|
10928
10928
|
function te(w) {
|
|
10929
10929
|
return e.check(Rb, V, Oe)(w);
|
|
@@ -10934,7 +10934,7 @@ function Pb(e, t, n) {
|
|
|
10934
10934
|
function F(w) {
|
|
10935
10935
|
return w === null || Y(w) ? te(w) : (e.enter("htmlFlowData"), O(w));
|
|
10936
10936
|
}
|
|
10937
|
-
function
|
|
10937
|
+
function J(w) {
|
|
10938
10938
|
return w === 45 ? (e.consume(w), g) : O(w);
|
|
10939
10939
|
}
|
|
10940
10940
|
function ae(w) {
|
|
@@ -11003,7 +11003,7 @@ function Ob(e, t, n) {
|
|
|
11003
11003
|
return g === 45 ? (e.consume(g), d) : u(g);
|
|
11004
11004
|
}
|
|
11005
11005
|
function d(g) {
|
|
11006
|
-
return g === 62 ?
|
|
11006
|
+
return g === 62 ? J(g) : g === 45 ? p(g) : u(g);
|
|
11007
11007
|
}
|
|
11008
11008
|
function m(g) {
|
|
11009
11009
|
const Se = "CDATA[";
|
|
@@ -11016,16 +11016,16 @@ function Ob(e, t, n) {
|
|
|
11016
11016
|
return g === 93 ? (e.consume(g), v) : b(g);
|
|
11017
11017
|
}
|
|
11018
11018
|
function v(g) {
|
|
11019
|
-
return g === 62 ?
|
|
11019
|
+
return g === 62 ? J(g) : g === 93 ? (e.consume(g), v) : b(g);
|
|
11020
11020
|
}
|
|
11021
11021
|
function C(g) {
|
|
11022
|
-
return g === null || g === 62 ?
|
|
11022
|
+
return g === null || g === 62 ? J(g) : Y(g) ? (i = C, ae(g)) : (e.consume(g), C);
|
|
11023
11023
|
}
|
|
11024
11024
|
function T(g) {
|
|
11025
11025
|
return g === null ? n(g) : g === 63 ? (e.consume(g), I) : Y(g) ? (i = T, ae(g)) : (e.consume(g), T);
|
|
11026
11026
|
}
|
|
11027
11027
|
function I(g) {
|
|
11028
|
-
return g === 62 ?
|
|
11028
|
+
return g === 62 ? J(g) : T(g);
|
|
11029
11029
|
}
|
|
11030
11030
|
function N(g) {
|
|
11031
11031
|
return ze(g) ? (e.consume(g), A) : n(g);
|
|
@@ -11034,13 +11034,13 @@ function Ob(e, t, n) {
|
|
|
11034
11034
|
return g === 45 || Pe(g) ? (e.consume(g), A) : z(g);
|
|
11035
11035
|
}
|
|
11036
11036
|
function z(g) {
|
|
11037
|
-
return Y(g) ? (i = z, ae(g)) : oe(g) ? (e.consume(g), z) :
|
|
11037
|
+
return Y(g) ? (i = z, ae(g)) : oe(g) ? (e.consume(g), z) : J(g);
|
|
11038
11038
|
}
|
|
11039
11039
|
function P(g) {
|
|
11040
11040
|
return g === 45 || Pe(g) ? (e.consume(g), P) : g === 47 || g === 62 || pe(g) ? j(g) : n(g);
|
|
11041
11041
|
}
|
|
11042
11042
|
function j(g) {
|
|
11043
|
-
return g === 47 ? (e.consume(g),
|
|
11043
|
+
return g === 47 ? (e.consume(g), J) : g === 58 || g === 95 || ze(g) ? (e.consume(g), E) : Y(g) ? (i = j, ae(g)) : oe(g) ? (e.consume(g), j) : J(g);
|
|
11044
11044
|
}
|
|
11045
11045
|
function E(g) {
|
|
11046
11046
|
return g === 45 || g === 46 || g === 58 || g === 95 || Pe(g) ? (e.consume(g), E) : L(g);
|
|
@@ -11060,7 +11060,7 @@ function Ob(e, t, n) {
|
|
|
11060
11060
|
function F(g) {
|
|
11061
11061
|
return g === 47 || g === 62 || pe(g) ? j(g) : n(g);
|
|
11062
11062
|
}
|
|
11063
|
-
function
|
|
11063
|
+
function J(g) {
|
|
11064
11064
|
return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
|
|
11065
11065
|
}
|
|
11066
11066
|
function ae(g) {
|
|
@@ -11690,7 +11690,7 @@ function Sy(e, t, n) {
|
|
|
11690
11690
|
}
|
|
11691
11691
|
function z(L, O) {
|
|
11692
11692
|
return te;
|
|
11693
|
-
function te(V, F,
|
|
11693
|
+
function te(V, F, J) {
|
|
11694
11694
|
let ae, qe, Le, g;
|
|
11695
11695
|
return Array.isArray(V) ? (
|
|
11696
11696
|
/* c8 ignore next 1 */
|
|
@@ -11715,7 +11715,7 @@ function Sy(e, t, n) {
|
|
|
11715
11715
|
}
|
|
11716
11716
|
}
|
|
11717
11717
|
function Oe($) {
|
|
11718
|
-
return ae = $, qe = 0, $.length === 0 ?
|
|
11718
|
+
return ae = $, qe = 0, $.length === 0 ? J : w($[qe]);
|
|
11719
11719
|
}
|
|
11720
11720
|
function w($) {
|
|
11721
11721
|
return tt;
|
|
@@ -11735,7 +11735,7 @@ function Sy(e, t, n) {
|
|
|
11735
11735
|
return L(Le, g), F;
|
|
11736
11736
|
}
|
|
11737
11737
|
function me($) {
|
|
11738
|
-
return g.restore(), ++qe < ae.length ? w(ae[qe]) :
|
|
11738
|
+
return g.restore(), ++qe < ae.length ? w(ae[qe]) : J;
|
|
11739
11739
|
}
|
|
11740
11740
|
}
|
|
11741
11741
|
}
|
|
@@ -11746,9 +11746,9 @@ function Sy(e, t, n) {
|
|
|
11746
11746
|
const L = m(), O = c.previous, te = c.currentConstruct, V = c.events.length, F = Array.from(a);
|
|
11747
11747
|
return {
|
|
11748
11748
|
from: V,
|
|
11749
|
-
restore:
|
|
11749
|
+
restore: J
|
|
11750
11750
|
};
|
|
11751
|
-
function
|
|
11751
|
+
function J() {
|
|
11752
11752
|
r = L, c.previous = O, c.currentConstruct = te, c.events.length = V, a = F, E();
|
|
11753
11753
|
}
|
|
11754
11754
|
}
|
|
@@ -11973,7 +11973,7 @@ function Dy(e) {
|
|
|
11973
11973
|
label: Le,
|
|
11974
11974
|
labelText: qe,
|
|
11975
11975
|
lineEnding: L,
|
|
11976
|
-
link: s(
|
|
11976
|
+
link: s(J),
|
|
11977
11977
|
listItem: s(),
|
|
11978
11978
|
listOrdered: s(),
|
|
11979
11979
|
listUnordered: s(),
|
|
@@ -12006,14 +12006,14 @@ function Dy(e) {
|
|
|
12006
12006
|
buffer: i,
|
|
12007
12007
|
resume: f,
|
|
12008
12008
|
data: n
|
|
12009
|
-
},
|
|
12009
|
+
}, ee = [];
|
|
12010
12010
|
let le = -1;
|
|
12011
12011
|
for (; ++le < q.length; )
|
|
12012
12012
|
if (q[le][1].type === "listOrdered" || q[le][1].type === "listUnordered")
|
|
12013
12013
|
if (q[le][0] === "enter")
|
|
12014
|
-
|
|
12014
|
+
ee.push(le);
|
|
12015
12015
|
else {
|
|
12016
|
-
const Me =
|
|
12016
|
+
const Me = ee.pop();
|
|
12017
12017
|
le = o(q, Me, le);
|
|
12018
12018
|
}
|
|
12019
12019
|
for (le = -1; ++le < q.length; ) {
|
|
@@ -12042,9 +12042,9 @@ function Dy(e) {
|
|
|
12042
12042
|
return B;
|
|
12043
12043
|
}
|
|
12044
12044
|
function o(q, B, G) {
|
|
12045
|
-
let
|
|
12046
|
-
for (; ++
|
|
12047
|
-
const Ee = q[
|
|
12045
|
+
let ee = B - 1, le = -1, Me = !1, nt, je, _t, rt;
|
|
12046
|
+
for (; ++ee <= G; ) {
|
|
12047
|
+
const Ee = q[ee];
|
|
12048
12048
|
switch (Ee[1].type) {
|
|
12049
12049
|
case "listUnordered":
|
|
12050
12050
|
case "listOrdered":
|
|
@@ -12053,7 +12053,7 @@ function Dy(e) {
|
|
|
12053
12053
|
break;
|
|
12054
12054
|
}
|
|
12055
12055
|
case "lineEndingBlank": {
|
|
12056
|
-
Ee[0] === "enter" && (nt && !rt && !le && !_t && (_t =
|
|
12056
|
+
Ee[0] === "enter" && (nt && !rt && !le && !_t && (_t = ee), rt = void 0);
|
|
12057
12057
|
break;
|
|
12058
12058
|
}
|
|
12059
12059
|
case "linePrefix":
|
|
@@ -12067,7 +12067,7 @@ function Dy(e) {
|
|
|
12067
12067
|
}
|
|
12068
12068
|
if (!le && Ee[0] === "enter" && Ee[1].type === "listItemPrefix" || le === -1 && Ee[0] === "exit" && (Ee[1].type === "listUnordered" || Ee[1].type === "listOrdered")) {
|
|
12069
12069
|
if (nt) {
|
|
12070
|
-
let ht =
|
|
12070
|
+
let ht = ee;
|
|
12071
12071
|
for (je = void 0; ht--; ) {
|
|
12072
12072
|
const ot = q[ht];
|
|
12073
12073
|
if (ot[1].type === "lineEnding" || ot[1].type === "lineEndingBlank") {
|
|
@@ -12075,7 +12075,7 @@ function Dy(e) {
|
|
|
12075
12075
|
je && (q[je][1].type = "lineEndingBlank", Me = !0), ot[1].type = "lineEnding", je = ht;
|
|
12076
12076
|
} else if (!(ot[1].type === "linePrefix" || ot[1].type === "blockQuotePrefix" || ot[1].type === "blockQuotePrefixWhitespace" || ot[1].type === "blockQuoteMarker" || ot[1].type === "listItemIndent")) break;
|
|
12077
12077
|
}
|
|
12078
|
-
_t && (!je || _t < je) && (nt._spread = !0), nt.end = Object.assign({}, je ? q[je][1].start : Ee[1].end), q.splice(je ||
|
|
12078
|
+
_t && (!je || _t < je) && (nt._spread = !0), nt.end = Object.assign({}, je ? q[je][1].start : Ee[1].end), q.splice(je || ee, 0, ["exit", nt, Ee[2]]), ee++, G++;
|
|
12079
12079
|
}
|
|
12080
12080
|
if (Ee[1].type === "listItemPrefix") {
|
|
12081
12081
|
const ht = {
|
|
@@ -12085,7 +12085,7 @@ function Dy(e) {
|
|
|
12085
12085
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
12086
12086
|
end: void 0
|
|
12087
12087
|
};
|
|
12088
|
-
nt = ht, q.splice(
|
|
12088
|
+
nt = ht, q.splice(ee, 0, ["enter", ht, Ee[2]]), ee++, G++, _t = void 0, rt = !0;
|
|
12089
12089
|
}
|
|
12090
12090
|
}
|
|
12091
12091
|
}
|
|
@@ -12093,8 +12093,8 @@ function Dy(e) {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
function l(q, B) {
|
|
12095
12095
|
return G;
|
|
12096
|
-
function G(
|
|
12097
|
-
a.call(this, q(
|
|
12096
|
+
function G(ee) {
|
|
12097
|
+
a.call(this, q(ee), ee), B && B.call(this, ee);
|
|
12098
12098
|
}
|
|
12099
12099
|
}
|
|
12100
12100
|
function i() {
|
|
@@ -12117,9 +12117,9 @@ function Dy(e) {
|
|
|
12117
12117
|
}
|
|
12118
12118
|
}
|
|
12119
12119
|
function c(q, B) {
|
|
12120
|
-
const G = this.stack.pop(),
|
|
12121
|
-
if (
|
|
12122
|
-
|
|
12120
|
+
const G = this.stack.pop(), ee = this.tokenStack.pop();
|
|
12121
|
+
if (ee)
|
|
12122
|
+
ee[0].type !== q.type && (B ? B.call(this, q, ee[0]) : (ee[1] || Ea).call(this, q, ee[0]));
|
|
12123
12123
|
else throw new Error("Cannot close `" + q.type + "` (" + Qn({
|
|
12124
12124
|
start: q.start,
|
|
12125
12125
|
end: q.end
|
|
@@ -12188,12 +12188,12 @@ function Dy(e) {
|
|
|
12188
12188
|
}
|
|
12189
12189
|
function j(q) {
|
|
12190
12190
|
const G = this.stack[this.stack.length - 1].children;
|
|
12191
|
-
let
|
|
12192
|
-
(!
|
|
12191
|
+
let ee = G[G.length - 1];
|
|
12192
|
+
(!ee || ee.type !== "text") && (ee = hr(), ee.position = {
|
|
12193
12193
|
start: $t(q.start),
|
|
12194
12194
|
// @ts-expect-error: we’ll add `end` later.
|
|
12195
12195
|
end: void 0
|
|
12196
|
-
}, G.push(
|
|
12196
|
+
}, G.push(ee)), this.stack.push(ee);
|
|
12197
12197
|
}
|
|
12198
12198
|
function E(q) {
|
|
12199
12199
|
const B = this.stack.pop();
|
|
@@ -12223,7 +12223,7 @@ function Dy(e) {
|
|
|
12223
12223
|
const q = this.resume(), B = this.stack[this.stack.length - 1];
|
|
12224
12224
|
B.value = q;
|
|
12225
12225
|
}
|
|
12226
|
-
function
|
|
12226
|
+
function J() {
|
|
12227
12227
|
const q = this.stack[this.stack.length - 1];
|
|
12228
12228
|
if (this.data.inReference) {
|
|
12229
12229
|
const B = this.data.referenceType || "shortcut";
|
|
@@ -12248,8 +12248,8 @@ function Dy(e) {
|
|
|
12248
12248
|
function Le() {
|
|
12249
12249
|
const q = this.stack[this.stack.length - 1], B = this.resume(), G = this.stack[this.stack.length - 1];
|
|
12250
12250
|
if (this.data.inReference = !0, G.type === "link") {
|
|
12251
|
-
const
|
|
12252
|
-
G.children =
|
|
12251
|
+
const ee = q.children;
|
|
12252
|
+
G.children = ee;
|
|
12253
12253
|
} else
|
|
12254
12254
|
G.alt = B;
|
|
12255
12255
|
}
|
|
@@ -12276,10 +12276,10 @@ function Dy(e) {
|
|
|
12276
12276
|
}
|
|
12277
12277
|
function $(q) {
|
|
12278
12278
|
const B = this.sliceSerialize(q), G = this.data.characterReferenceType;
|
|
12279
|
-
let
|
|
12280
|
-
G ? (
|
|
12279
|
+
let ee;
|
|
12280
|
+
G ? (ee = bu(B, G === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ee = rl(B);
|
|
12281
12281
|
const le = this.stack[this.stack.length - 1];
|
|
12282
|
-
le.value +=
|
|
12282
|
+
le.value += ee;
|
|
12283
12283
|
}
|
|
12284
12284
|
function tt(q) {
|
|
12285
12285
|
const B = this.stack.pop();
|
|
@@ -17378,7 +17378,7 @@ function Ja({
|
|
|
17378
17378
|
isBot: t,
|
|
17379
17379
|
isSibling: n
|
|
17380
17380
|
}) {
|
|
17381
|
-
const [r, o] = ye(null), l = Oi(), { onMessageClick: i } = fn(), a =
|
|
17381
|
+
const [r, o] = ye(null), l = Oi(), { onMessageClick: i } = fn(), a = Z({
|
|
17382
17382
|
[l.botBubbleColor]: e.sender === "assistant",
|
|
17383
17383
|
[l.userBubbleColor]: e.sender === "user"
|
|
17384
17384
|
}), c = (e.sender === "assistant" ? l.botBubbleTextColor : l.userBubbleTextColor) || hl(a), f = e.content === "...", u = e.attachments ?? [], p = e.type === "image" || e.content !== "" || u.length === 0, [d, m] = ye(!f);
|
|
@@ -17420,7 +17420,10 @@ function Ja({
|
|
|
17420
17420
|
] }) : null : /* @__PURE__ */ K(
|
|
17421
17421
|
"div",
|
|
17422
17422
|
{
|
|
17423
|
-
className:
|
|
17423
|
+
className: Z(
|
|
17424
|
+
"eloq:flex eloq:flex-col eloq:flex-1 eloq:self-stretch eloq:gap-1.5 eloq:text-sm",
|
|
17425
|
+
{ "eloq:items-end": e.sender === "user" }
|
|
17426
|
+
),
|
|
17424
17427
|
onClick: () => !e.isWelcomeMessage && i?.(e),
|
|
17425
17428
|
role: i && !e.isWelcomeMessage ? "button" : void 0,
|
|
17426
17429
|
tabIndex: 0,
|
|
@@ -17428,7 +17431,7 @@ function Ja({
|
|
|
17428
17431
|
p && /* @__PURE__ */ x(
|
|
17429
17432
|
"div",
|
|
17430
17433
|
{
|
|
17431
|
-
className:
|
|
17434
|
+
className: Z(
|
|
17432
17435
|
"eloq:relative eloq:rounded-2xl eloq:py-[12px] eloq:px-[16px] eloq:align-center",
|
|
17433
17436
|
{
|
|
17434
17437
|
"eloq:ml-1": e.sender === "assistant",
|
|
@@ -17466,7 +17469,7 @@ function Ja({
|
|
|
17466
17469
|
/* @__PURE__ */ K(
|
|
17467
17470
|
"div",
|
|
17468
17471
|
{
|
|
17469
|
-
className:
|
|
17472
|
+
className: Z(
|
|
17470
17473
|
`eloq:flex eloq:flex-1 eloq:self-stretch eloq:items-center eloq:gap-1.5 ${e.sender === "user" ? "eloq:justify-end" : "eloq:justify-start"}`
|
|
17471
17474
|
),
|
|
17472
17475
|
children: [
|
|
@@ -17474,7 +17477,7 @@ function Ja({
|
|
|
17474
17477
|
/* @__PURE__ */ x(
|
|
17475
17478
|
"div",
|
|
17476
17479
|
{
|
|
17477
|
-
className:
|
|
17480
|
+
className: Z("eloq:relative eloq:flex eloq:self-stretch", {
|
|
17478
17481
|
"eloq:max-w-[88%]": t,
|
|
17479
17482
|
"eloq:max-w-[75%]": !t,
|
|
17480
17483
|
"eloq:max-w-full": n
|
|
@@ -17512,7 +17515,7 @@ const wf = "eloq:p-4 eloq:flex eloq:flex-row eloq:items-center eloq:justify-betw
|
|
|
17512
17515
|
isOpen: e,
|
|
17513
17516
|
isMobile: t,
|
|
17514
17517
|
skipAnimation: n = !1
|
|
17515
|
-
}) =>
|
|
17518
|
+
}) => Z(
|
|
17516
17519
|
"eloq:w-full eloq:h-full eloq:flex eloq:flex-col eloq:overflow-hidden eloq:origin-bottom-right",
|
|
17517
17520
|
{
|
|
17518
17521
|
"eloq:animate-panel-in": e && !n,
|
|
@@ -17586,7 +17589,7 @@ function Zv({
|
|
|
17586
17589
|
return /* @__PURE__ */ x(
|
|
17587
17590
|
"div",
|
|
17588
17591
|
{
|
|
17589
|
-
className:
|
|
17592
|
+
className: Z({
|
|
17590
17593
|
"eloq:animate-message-in": s,
|
|
17591
17594
|
// The list spaces messages 16px apart. The thinking indicator is a
|
|
17592
17595
|
// pending turn rather than a finished one, so pull it closer to the
|
|
@@ -17599,7 +17602,7 @@ function Zv({
|
|
|
17599
17602
|
children: /* @__PURE__ */ K(
|
|
17600
17603
|
"div",
|
|
17601
17604
|
{
|
|
17602
|
-
className:
|
|
17605
|
+
className: Z(e, {
|
|
17603
17606
|
"eloq:flex eloq:flex-col eloq:items-start": l,
|
|
17604
17607
|
"eloq:flex eloq:justify-end": !l
|
|
17605
17608
|
}),
|
|
@@ -17631,7 +17634,7 @@ function Jv({
|
|
|
17631
17634
|
disabled: n,
|
|
17632
17635
|
onClick: () => t(i),
|
|
17633
17636
|
onMouseEnter: () => !n && o(i),
|
|
17634
|
-
className:
|
|
17637
|
+
className: Z(
|
|
17635
17638
|
"eloq:p-0.5 eloq:transition-colors",
|
|
17636
17639
|
n ? "eloq:cursor-default eloq:opacity-70" : "eloq:cursor-pointer"
|
|
17637
17640
|
),
|
|
@@ -17639,7 +17642,7 @@ function Jv({
|
|
|
17639
17642
|
Cp,
|
|
17640
17643
|
{
|
|
17641
17644
|
size: 22,
|
|
17642
|
-
className:
|
|
17645
|
+
className: Z(
|
|
17643
17646
|
"eloq:transition-colors",
|
|
17644
17647
|
i <= l ? "eloq:fill-yellow-400 eloq:text-yellow-400" : "eloq:fill-none eloq:text-gray-300 eloq:dark:text-gray-500"
|
|
17645
17648
|
)
|
|
@@ -17739,7 +17742,7 @@ function oS() {
|
|
|
17739
17742
|
{
|
|
17740
17743
|
message: d,
|
|
17741
17744
|
nextMessage: b[m + 1],
|
|
17742
|
-
className:
|
|
17745
|
+
className: Z({
|
|
17743
17746
|
"eloq:pt-4": m === 0,
|
|
17744
17747
|
"eloq:pb-2": m >= b.length - 1,
|
|
17745
17748
|
"eloq:pb-14": v && m >= b.length - 1
|
|
@@ -18636,17 +18639,17 @@ function qf() {
|
|
|
18636
18639
|
D.content && D.content.ownerDocument && (n = D.content.ownerDocument);
|
|
18637
18640
|
}
|
|
18638
18641
|
let L, O = "", te, V = !1, F = 0;
|
|
18639
|
-
const
|
|
18642
|
+
const J = function() {
|
|
18640
18643
|
if (F > 0) throw Pt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
18641
18644
|
}, ae = function(h) {
|
|
18642
|
-
|
|
18645
|
+
J(), F++;
|
|
18643
18646
|
try {
|
|
18644
18647
|
return L.createHTML(h);
|
|
18645
18648
|
} finally {
|
|
18646
18649
|
F--;
|
|
18647
18650
|
}
|
|
18648
18651
|
}, qe = function(h) {
|
|
18649
|
-
|
|
18652
|
+
J(), F++;
|
|
18650
18653
|
try {
|
|
18651
18654
|
return L.createScriptURL(h);
|
|
18652
18655
|
} finally {
|
|
@@ -18707,7 +18710,7 @@ function qf() {
|
|
|
18707
18710
|
value: null
|
|
18708
18711
|
}
|
|
18709
18712
|
}));
|
|
18710
|
-
let hr = !0, Mn = !0, q = !1, B = !0, G = !1,
|
|
18713
|
+
let hr = !0, Mn = !0, q = !1, B = !0, G = !1, ee = !0, le = !1, Me = !1, nt = null, je = null, _t = !1, rt = !1, Ee = !1, ht = !1, ot = !0, ml = !1;
|
|
18711
18714
|
const gl = "user-content-";
|
|
18712
18715
|
let no = !0, ro = !1, Qt = null, mn = {}, Zt = null;
|
|
18713
18716
|
const bl = ce({}, [
|
|
@@ -18800,7 +18803,7 @@ function qf() {
|
|
|
18800
18803
|
}), yl = Wt(h, "ADD_DATA_URI_TAGS", wl, {
|
|
18801
18804
|
transform: be,
|
|
18802
18805
|
base: wl
|
|
18803
|
-
}), Zt = Wt(h, "FORBID_CONTENTS", bl, { transform: be }), Kt = Wt(h, "FORBID_TAGS", Je({}), { transform: be }), pr = Wt(h, "FORBID_ATTR", Je({}), { transform: be }), mn = Ge(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Je(h.USE_PROFILES) : h.USE_PROFILES : !1, hr = h.ALLOW_ARIA_ATTR !== !1, Mn = h.ALLOW_DATA_ATTR !== !1, q = h.ALLOW_UNKNOWN_PROTOCOLS || !1, B = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = h.SAFE_FOR_TEMPLATES || !1,
|
|
18806
|
+
}), Zt = Wt(h, "FORBID_CONTENTS", bl, { transform: be }), Kt = Wt(h, "FORBID_TAGS", Je({}), { transform: be }), pr = Wt(h, "FORBID_ATTR", Je({}), { transform: be }), mn = Ge(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Je(h.USE_PROFILES) : h.USE_PROFILES : !1, hr = h.ALLOW_ARIA_ATTR !== !1, Mn = h.ALLOW_DATA_ATTR !== !1, q = h.ALLOW_UNKNOWN_PROTOCOLS || !1, B = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = h.SAFE_FOR_TEMPLATES || !1, ee = h.SAFE_FOR_XML !== !1, le = h.WHOLE_DOCUMENT || !1, rt = h.RETURN_DOM || !1, Ee = h.RETURN_DOM_FRAGMENT || !1, ht = h.RETURN_TRUSTED_TYPE || !1, _t = h.FORCE_BODY || !1, ot = h.SANITIZE_DOM !== !1, ml = h.SANITIZE_NAMED_PROPS || !1, no = h.KEEP_CONTENT !== !1, ro = h.IN_PLACE || !1, On = xS(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : fs, gn = typeof h.NAMESPACE == "string" ? h.NAMESPACE : xt, lo = Zo(h, "MATHML_TEXT_INTEGRATION_POINTS", () => ce({}, vl)), ao = Zo(h, "HTML_INTEGRATION_POINTS", () => ce({}, Sl));
|
|
18804
18807
|
const S = Zo(h, "CUSTOM_ELEMENT_HANDLING", () => _n(null));
|
|
18805
18808
|
if (Qe = _n(null), Ge(S, "tagNameCheck") && El(S.tagNameCheck) && (Qe.tagNameCheck = S.tagNameCheck), Ge(S, "attributeNameCheck") && El(S.attributeNameCheck) && (Qe.attributeNameCheck = S.attributeNameCheck), Ge(S, "allowCustomizedBuiltInElements") && typeof S.allowCustomizedBuiltInElements == "boolean" && (Qe.allowCustomizedBuiltInElements = S.allowCustomizedBuiltInElements), Ie(Qe), G && (Mn = !1), Ee && (rt = !0), mn && (fe = ce({}, ss), he = _n(null), mn.html === !0 && (ce(fe, as), ce(he, cs)), mn.svg === !0 && (ce(fe, Go), ce(he, Ko), ce(he, Nr)), mn.svgFilters === !0 && (ce(fe, Yo), ce(he, Ko), ce(he, Nr)), mn.mathMl === !0 && (ce(fe, Xo), ce(he, us), ce(he, Nr))), wt.tagCheck = null, wt.attributeCheck = null, Ge(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? wt.tagCheck = h.ADD_TAGS : In(h.ADD_TAGS) && (fe === pn && (fe = Je(fe)), ce(fe, h.ADD_TAGS, be))), Ge(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? wt.attributeCheck = h.ADD_ATTR : In(h.ADD_ATTR) && (he === hn && (he = Je(he)), ce(he, h.ADD_ATTR, be))), Ge(h, "ADD_FORBID_CONTENTS") && In(h.ADD_FORBID_CONTENTS) && (Zt === bl && (Zt = Je(Zt)), ce(Zt, h.ADD_FORBID_CONTENTS, be)), no && (fe["#text"] = !0), le && ce(fe, [
|
|
18806
18809
|
"html",
|
|
@@ -18955,9 +18958,9 @@ function qf() {
|
|
|
18955
18958
|
}, Qf = function(h) {
|
|
18956
18959
|
Qt && $o(Qt, h);
|
|
18957
18960
|
}, Rl = function(h, S) {
|
|
18958
|
-
return
|
|
18961
|
+
return ee ? h === "patchsrc" ? !0 : h === "for" && S !== "label" && S !== "output" : !1;
|
|
18959
18962
|
}, Zf = function(h) {
|
|
18960
|
-
|
|
18963
|
+
ee && uo(h, (S) => {
|
|
18961
18964
|
const _ = z(S);
|
|
18962
18965
|
if (_ === we.processingInstruction || _ === we.comment && Re(ds, S.data)) {
|
|
18963
18966
|
try {
|
|
@@ -19039,7 +19042,7 @@ function qf() {
|
|
|
19039
19042
|
});
|
|
19040
19043
|
}
|
|
19041
19044
|
const Jf = function(h, S) {
|
|
19042
|
-
return !!(
|
|
19045
|
+
return !!(ee && h.hasChildNodes() && !zn(h.firstElementChild) && Re(Qo, h.textContent) && Re(Qo, h.innerHTML) || ee && DS[S] && z(h) === we.element && E(h) === xt && (zn(h.firstElementChild) || typeof h.textContent == "string" && Re(Qo, h.textContent)) || h.nodeType === we.processingInstruction || ee && h.nodeType === we.comment && Re(ds, h.data));
|
|
19043
19046
|
}, wr = function(h, S) {
|
|
19044
19047
|
if (h instanceof RegExp) return Re(h, S);
|
|
19045
19048
|
if (h instanceof Function) {
|
|
@@ -19116,7 +19119,7 @@ function qf() {
|
|
|
19116
19119
|
return yn(S, h), !1;
|
|
19117
19120
|
}
|
|
19118
19121
|
}, Ol = function(h, S) {
|
|
19119
|
-
return
|
|
19122
|
+
return ee && Re(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, S) ? !0 : rn(h) === "attributename" && rs(S, "href") !== null;
|
|
19120
19123
|
}, bo = function(h, S) {
|
|
19121
19124
|
if (mt($.beforeSanitizeAttributes, h, null), wn(h, S)) return;
|
|
19122
19125
|
const _ = h.attributes;
|
|
@@ -19284,7 +19287,7 @@ const _f = Te(
|
|
|
19284
19287
|
({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
19285
19288
|
"textarea",
|
|
19286
19289
|
{
|
|
19287
|
-
className:
|
|
19290
|
+
className: Z(
|
|
19288
19291
|
"eloq:flex eloq:min-h-[80px] eloq:w-full eloq:rounded-md eloq:border eloq:border-input eloq:bg-background eloq:px-3 eloq:py-2 eloq:text-base eloq:ring-offset-background eloq:placeholder:text-muted-foreground eloq:focus-visible:outline-none eloq:focus-visible:ring-1 eloq:focus-visible:ring-offset-2 eloq:focus-visible:ring-muted eloq:disabled:cursor-not-allowed eloq:disabled:opacity-50 eloq:md:text-sm",
|
|
19289
19292
|
e
|
|
19290
19293
|
),
|
|
@@ -19577,7 +19580,7 @@ function ZS({ onSelect: e }) {
|
|
|
19577
19580
|
"button",
|
|
19578
19581
|
{
|
|
19579
19582
|
onClick: () => e(b),
|
|
19580
|
-
className:
|
|
19583
|
+
className: Z(
|
|
19581
19584
|
// Pointer on the pill itself (it's a click target). The closed hand
|
|
19582
19585
|
// while held only appears when the row overflows — that's when
|
|
19583
19586
|
// dragging can actually shift it.
|
|
@@ -19598,7 +19601,7 @@ function ZS({ onSelect: e }) {
|
|
|
19598
19601
|
/* @__PURE__ */ x(
|
|
19599
19602
|
"span",
|
|
19600
19603
|
{
|
|
19601
|
-
className:
|
|
19604
|
+
className: Z(
|
|
19602
19605
|
"eloq-aura-shine",
|
|
19603
19606
|
u && "eloq-aura-shine--active"
|
|
19604
19607
|
),
|
|
@@ -19614,7 +19617,7 @@ function ZS({ onSelect: e }) {
|
|
|
19614
19617
|
{
|
|
19615
19618
|
ref: o,
|
|
19616
19619
|
"data-testid": "suggested-messages",
|
|
19617
|
-
className:
|
|
19620
|
+
className: Z(
|
|
19618
19621
|
"eloq:w-full eloq:px-4 eloq:pb-10 eloq:-mt-20 eloq:overflow-x-auto no-scrollbar eloq:z-10",
|
|
19619
19622
|
// Drag-to-scroll (and its grab cursor) only when the pills actually
|
|
19620
19623
|
// overflow the row; the hook also sets inline cursor styles on mouse
|
|
@@ -19810,13 +19813,13 @@ function c1() {
|
|
|
19810
19813
|
className: "eloq:relative eloq:flex eloq:items-center eloq:w-full eloq:m-0",
|
|
19811
19814
|
onSubmit: C,
|
|
19812
19815
|
children: [
|
|
19813
|
-
/* @__PURE__ */ x("div", { className:
|
|
19816
|
+
/* @__PURE__ */ x("div", { className: Z("eloq:flex-1", r1), children: /* @__PURE__ */ x(
|
|
19814
19817
|
_f,
|
|
19815
19818
|
{
|
|
19816
19819
|
ref: r,
|
|
19817
19820
|
name: "message",
|
|
19818
19821
|
placeholder: "Type a message...",
|
|
19819
|
-
className:
|
|
19822
|
+
className: Z(
|
|
19820
19823
|
"eloq:flex-1 eloq:min-h-[48px] eloq:max-h-[132px] eloq:text-base eloq:sm:text-sm eloq:resize-none eloq:border-0 eloq:pl-4 eloq:pr-12 eloq:py-3.5 eloq-thin-scrollbar eloq:leading-5 eloq:bg-card eloq:rounded-3xl",
|
|
19821
19824
|
f && "eloq:pl-11"
|
|
19822
19825
|
),
|
|
@@ -19853,7 +19856,7 @@ function c1() {
|
|
|
19853
19856
|
{
|
|
19854
19857
|
type: "submit",
|
|
19855
19858
|
disabled: !m || u,
|
|
19856
|
-
className:
|
|
19859
|
+
className: Z(
|
|
19857
19860
|
"eloq:absolute eloq:top-0 eloq:bottom-2 eloq:right-2 eloq:self-end eloq:p-2 eloq:text-muted eloq:rounded-full eloq:transition-colors",
|
|
19858
19861
|
m && !t ? "eloq:text-primary-foreground" : a1
|
|
19859
19862
|
),
|
|
@@ -19882,7 +19885,7 @@ function c1() {
|
|
|
19882
19885
|
/* @__PURE__ */ K(
|
|
19883
19886
|
"div",
|
|
19884
19887
|
{
|
|
19885
|
-
className:
|
|
19888
|
+
className: Z(
|
|
19886
19889
|
"eloq:w-full eloq:flex eloq:flex-col eloq:items-center eloq:justify-center eloq:space-x-2 eloq:px-0",
|
|
19887
19890
|
l1
|
|
19888
19891
|
),
|
|
@@ -20001,7 +20004,7 @@ const Mf = Te(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
20001
20004
|
Pf,
|
|
20002
20005
|
{
|
|
20003
20006
|
ref: n,
|
|
20004
|
-
className:
|
|
20007
|
+
className: Z(
|
|
20005
20008
|
"eloq:relative eloq:flex eloq:h-10 eloq:w-10 eloq:shrink-0 eloq:overflow-hidden eloq:rounded-full",
|
|
20006
20009
|
e
|
|
20007
20010
|
),
|
|
@@ -20013,7 +20016,7 @@ const b1 = Te(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
20013
20016
|
Df,
|
|
20014
20017
|
{
|
|
20015
20018
|
ref: n,
|
|
20016
|
-
className:
|
|
20019
|
+
className: Z("eloq:aspect-square eloq:h-full eloq:w-full", e),
|
|
20017
20020
|
...t
|
|
20018
20021
|
}
|
|
20019
20022
|
));
|
|
@@ -20022,7 +20025,7 @@ const y1 = Te(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
20022
20025
|
Nf,
|
|
20023
20026
|
{
|
|
20024
20027
|
ref: n,
|
|
20025
|
-
className:
|
|
20028
|
+
className: Z(
|
|
20026
20029
|
"eloq:flex eloq:h-full eloq:w-full eloq:items-center eloq:justify-center eloq:rounded-full eloq:bg-muted",
|
|
20027
20030
|
e
|
|
20028
20031
|
),
|
|
@@ -20036,7 +20039,7 @@ function x1({
|
|
|
20036
20039
|
onClose: t
|
|
20037
20040
|
}) {
|
|
20038
20041
|
const n = fn(), r = n.hasCleanChatButton ?? n.cleanChatButton ?? !0, o = n.hasCloseButton ?? n.closeButton ?? !0;
|
|
20039
|
-
return /* @__PURE__ */ K(Di, { className:
|
|
20042
|
+
return /* @__PURE__ */ K(Di, { className: Z(wf, w1), children: [
|
|
20040
20043
|
/* @__PURE__ */ K("div", { className: xf, children: [
|
|
20041
20044
|
/* @__PURE__ */ x(Mf, { className: "eloq:h-10 eloq:w-10", children: /* @__PURE__ */ x(
|
|
20042
20045
|
Ii,
|
|
@@ -20073,7 +20076,7 @@ function N1(e) {
|
|
|
20073
20076
|
// rendered as page content (embedded playground, transcript previews),
|
|
20074
20077
|
// where a popup-style "rise from the corner" animation is wrong.
|
|
20075
20078
|
skipAnimation: !i
|
|
20076
|
-
}), c = () => /* @__PURE__ */ K(Pi, { className:
|
|
20079
|
+
}), c = () => /* @__PURE__ */ K(Pi, { className: Z(s, { "eloq:relative": a }), children: [
|
|
20077
20080
|
a && /* @__PURE__ */ x(
|
|
20078
20081
|
"div",
|
|
20079
20082
|
{
|
|
@@ -20094,7 +20097,7 @@ function N1(e) {
|
|
|
20094
20097
|
return /* @__PURE__ */ x(Zd, { ...l, children: /* @__PURE__ */ x(yh, { ...e, children: /* @__PURE__ */ x(
|
|
20095
20098
|
"main",
|
|
20096
20099
|
{
|
|
20097
|
-
className:
|
|
20100
|
+
className: Z(
|
|
20098
20101
|
"eloquent-chat eloq:w-full eloq:h-full eloq:flex eloq:flex-col eloq:justify-end eloq:items-end eloq:overflow-hidden",
|
|
20099
20102
|
{
|
|
20100
20103
|
dark: l?.mode === "dark"
|
|
@@ -20108,7 +20111,7 @@ function St({ className: e, ...t }) {
|
|
|
20108
20111
|
return /* @__PURE__ */ x(
|
|
20109
20112
|
"div",
|
|
20110
20113
|
{
|
|
20111
|
-
className:
|
|
20114
|
+
className: Z(
|
|
20112
20115
|
"eloq:animate-pulse eloq:rounded-md eloq:bg-muted",
|
|
20113
20116
|
e
|
|
20114
20117
|
),
|
|
@@ -20141,7 +20144,7 @@ function L1({
|
|
|
20141
20144
|
/* @__PURE__ */ x(
|
|
20142
20145
|
Di,
|
|
20143
20146
|
{
|
|
20144
|
-
className:
|
|
20147
|
+
className: Z(wf, "eloq:mb-4 eloq:shadow-sm"),
|
|
20145
20148
|
children: /* @__PURE__ */ K("div", { className: xf, children: [
|
|
20146
20149
|
/* @__PURE__ */ x(St, { className: "eloq:h-8 eloq:w-8" }),
|
|
20147
20150
|
/* @__PURE__ */ x(St, { className: "eloq:h-6 eloq:w-32" })
|
|
@@ -20179,7 +20182,7 @@ export {
|
|
|
20179
20182
|
Mi as X,
|
|
20180
20183
|
yh as a,
|
|
20181
20184
|
Zv as b,
|
|
20182
|
-
|
|
20185
|
+
Z as c,
|
|
20183
20186
|
zS as d,
|
|
20184
20187
|
t1 as e,
|
|
20185
20188
|
JS as f,
|
|
@@ -20199,4 +20202,4 @@ export {
|
|
|
20199
20202
|
Oi as u,
|
|
20200
20203
|
Mv as w
|
|
20201
20204
|
};
|
|
20202
|
-
//# sourceMappingURL=skeleton-
|
|
20205
|
+
//# sourceMappingURL=skeleton-CunqvnAX.js.map
|