@somecat/ai-assist-sdk 1.1.26 → 1.2.0
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/react/index.mjs +112 -109
- package/dist/vue/index.mjs +4 -1
- package/package.json +1 -1
package/dist/react/index.mjs
CHANGED
|
@@ -60,9 +60,9 @@ function eA() {
|
|
|
60
60
|
return ct.now();
|
|
61
61
|
};
|
|
62
62
|
} else {
|
|
63
|
-
var
|
|
63
|
+
var vt = Date, B = vt.now();
|
|
64
64
|
A.unstable_now = function() {
|
|
65
|
-
return
|
|
65
|
+
return vt.now() - B;
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
var ot = [], zt = [], Ot = 1, lt = null, rt = 3, tt = !1, Tt = !1, et = !1, P = !1, j = typeof setTimeout == "function" ? setTimeout : null, xt = typeof clearTimeout == "function" ? clearTimeout : null, Rt = typeof setImmediate < "u" ? setImmediate : null;
|
|
@@ -263,7 +263,7 @@ function lA() {
|
|
|
263
263
|
var W = j;
|
|
264
264
|
try {
|
|
265
265
|
e: {
|
|
266
|
-
for (
|
|
266
|
+
for (vt(b), P = M(tt); P !== null && !(P.expirationTime > b && ot()); ) {
|
|
267
267
|
var pt = P.callback;
|
|
268
268
|
if (typeof pt == "function") {
|
|
269
269
|
P.callback = null, j = P.priorityLevel;
|
|
@@ -271,10 +271,10 @@ function lA() {
|
|
|
271
271
|
P.expirationTime <= b
|
|
272
272
|
);
|
|
273
273
|
if (b = A.unstable_now(), typeof Ut == "function") {
|
|
274
|
-
P.callback = Ut,
|
|
274
|
+
P.callback = Ut, vt(b), Y = !0;
|
|
275
275
|
break e;
|
|
276
276
|
}
|
|
277
|
-
P === M(tt) && st(tt),
|
|
277
|
+
P === M(tt) && st(tt), vt(b);
|
|
278
278
|
} else st(tt);
|
|
279
279
|
P = M(tt);
|
|
280
280
|
}
|
|
@@ -331,7 +331,7 @@ function lA() {
|
|
|
331
331
|
var W = b.sortIndex - Y.sortIndex;
|
|
332
332
|
return W !== 0 ? W : b.id - Y.id;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function vt(b) {
|
|
335
335
|
for (var Y = M(Tt); Y !== null; ) {
|
|
336
336
|
if (Y.callback === null) st(Tt);
|
|
337
337
|
else if (Y.startTime <= b)
|
|
@@ -341,7 +341,7 @@ function lA() {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
function B(b) {
|
|
344
|
-
if (wt = !1,
|
|
344
|
+
if (wt = !1, vt(b), !Rt)
|
|
345
345
|
if (M(tt) !== null)
|
|
346
346
|
Rt = !0, At || (At = !0, V());
|
|
347
347
|
else {
|
|
@@ -512,7 +512,7 @@ function aA() {
|
|
|
512
512
|
}
|
|
513
513
|
return n.tag === 3 ? u : null;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function vt(l) {
|
|
516
516
|
if (l.tag === 13) {
|
|
517
517
|
var n = l.memoizedState;
|
|
518
518
|
if (n === null && (l = l.alternate, l !== null && (n = l.memoizedState)), n !== null) return n.dehydrated;
|
|
@@ -2737,7 +2737,7 @@ Error generating stack: ` + i.message + `
|
|
|
2737
2737
|
}
|
|
2738
2738
|
return null;
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function St(U, O, _, J) {
|
|
2741
2741
|
for (var Ct = null, re = null, Et = O, Jt = O = 0, Wt = null; Et !== null && Jt < _.length; Jt++) {
|
|
2742
2742
|
Et.index > Jt ? (Wt = Et, Et = null) : Wt = Et.sibling;
|
|
2743
2743
|
var ye = x(
|
|
@@ -2879,7 +2879,7 @@ Error generating stack: ` + i.message + `
|
|
|
2879
2879
|
);
|
|
2880
2880
|
}
|
|
2881
2881
|
if (gt(_))
|
|
2882
|
-
return
|
|
2882
|
+
return St(
|
|
2883
2883
|
U,
|
|
2884
2884
|
O,
|
|
2885
2885
|
_,
|
|
@@ -3028,21 +3028,21 @@ Error generating stack: ` + i.message + `
|
|
|
3028
3028
|
next: null
|
|
3029
3029
|
});
|
|
3030
3030
|
t: {
|
|
3031
|
-
var
|
|
3031
|
+
var St = l, jt = g;
|
|
3032
3032
|
x = n;
|
|
3033
3033
|
var He = u;
|
|
3034
3034
|
switch (jt.tag) {
|
|
3035
3035
|
case 1:
|
|
3036
|
-
if (
|
|
3037
|
-
K =
|
|
3036
|
+
if (St = jt.payload, typeof St == "function") {
|
|
3037
|
+
K = St.call(He, K, x);
|
|
3038
3038
|
break t;
|
|
3039
3039
|
}
|
|
3040
|
-
K =
|
|
3040
|
+
K = St;
|
|
3041
3041
|
break t;
|
|
3042
3042
|
case 3:
|
|
3043
|
-
|
|
3043
|
+
St.flags = St.flags & -65537 | 128;
|
|
3044
3044
|
case 0:
|
|
3045
|
-
if (
|
|
3045
|
+
if (St = jt.payload, x = typeof St == "function" ? St.call(He, K, x) : St, x == null) break t;
|
|
3046
3046
|
K = lt({}, K, x);
|
|
3047
3047
|
break t;
|
|
3048
3048
|
case 2:
|
|
@@ -5775,12 +5775,12 @@ Error generating stack: ` + i.message + `
|
|
|
5775
5775
|
if ((l & 1024) !== 0 && r !== null) {
|
|
5776
5776
|
l = void 0, u = n, s = r.memoizedProps, r = r.memoizedState, i = u.stateNode;
|
|
5777
5777
|
try {
|
|
5778
|
-
var
|
|
5778
|
+
var St = Pc(
|
|
5779
5779
|
u.type,
|
|
5780
5780
|
s
|
|
5781
5781
|
);
|
|
5782
5782
|
l = i.getSnapshotBeforeUpdate(
|
|
5783
|
-
|
|
5783
|
+
St,
|
|
5784
5784
|
r
|
|
5785
5785
|
), i.__reactInternalSnapshotBeforeUpdate = l;
|
|
5786
5786
|
} catch (jt) {
|
|
@@ -6208,8 +6208,8 @@ Error generating stack: ` + i.message + `
|
|
|
6208
6208
|
s = l.stateNode;
|
|
6209
6209
|
try {
|
|
6210
6210
|
nu(s, "");
|
|
6211
|
-
} catch (
|
|
6212
|
-
Oe(l, l.return,
|
|
6211
|
+
} catch (St) {
|
|
6212
|
+
Oe(l, l.return, St);
|
|
6213
6213
|
}
|
|
6214
6214
|
}
|
|
6215
6215
|
i & 4 && l.stateNode != null && (s = l.memoizedProps, ch(
|
|
@@ -6225,8 +6225,8 @@ Error generating stack: ` + i.message + `
|
|
|
6225
6225
|
i = l.memoizedProps, u = l.stateNode;
|
|
6226
6226
|
try {
|
|
6227
6227
|
u.nodeValue = i;
|
|
6228
|
-
} catch (
|
|
6229
|
-
Oe(l, l.return,
|
|
6228
|
+
} catch (St) {
|
|
6229
|
+
Oe(l, l.return, St);
|
|
6230
6230
|
}
|
|
6231
6231
|
}
|
|
6232
6232
|
break;
|
|
@@ -6234,8 +6234,8 @@ Error generating stack: ` + i.message + `
|
|
|
6234
6234
|
if (jf = null, s = kt, kt = Fl(n.containerInfo), pa(n, l), kt = s, Da(l), i & 4 && u !== null && u.memoizedState.isDehydrated)
|
|
6235
6235
|
try {
|
|
6236
6236
|
Xf(n.containerInfo);
|
|
6237
|
-
} catch (
|
|
6238
|
-
Oe(l, l.return,
|
|
6237
|
+
} catch (St) {
|
|
6238
|
+
Oe(l, l.return, St);
|
|
6239
6239
|
}
|
|
6240
6240
|
ih && (ih = !1, Ky(l));
|
|
6241
6241
|
break;
|
|
@@ -6269,8 +6269,8 @@ Error generating stack: ` + i.message + `
|
|
|
6269
6269
|
var K = E.memoizedProps.style, x = K != null && K.hasOwnProperty("display") ? K.display : null;
|
|
6270
6270
|
g.style.display = x == null || typeof x == "boolean" ? "" : ("" + x).trim();
|
|
6271
6271
|
}
|
|
6272
|
-
} catch (
|
|
6273
|
-
Oe(E, E.return,
|
|
6272
|
+
} catch (St) {
|
|
6273
|
+
Oe(E, E.return, St);
|
|
6274
6274
|
}
|
|
6275
6275
|
}
|
|
6276
6276
|
} else if (n.tag === 6) {
|
|
@@ -6278,8 +6278,8 @@ Error generating stack: ` + i.message + `
|
|
|
6278
6278
|
E = n;
|
|
6279
6279
|
try {
|
|
6280
6280
|
E.stateNode.nodeValue = s ? "" : E.memoizedProps;
|
|
6281
|
-
} catch (
|
|
6282
|
-
Oe(E, E.return,
|
|
6281
|
+
} catch (St) {
|
|
6282
|
+
Oe(E, E.return, St);
|
|
6283
6283
|
}
|
|
6284
6284
|
}
|
|
6285
6285
|
} else if (n.tag === 18) {
|
|
@@ -6288,8 +6288,8 @@ Error generating stack: ` + i.message + `
|
|
|
6288
6288
|
try {
|
|
6289
6289
|
var X = E.stateNode;
|
|
6290
6290
|
s ? fl(X, !0) : fl(E.stateNode, !1);
|
|
6291
|
-
} catch (
|
|
6292
|
-
Oe(E, E.return,
|
|
6291
|
+
} catch (St) {
|
|
6292
|
+
Oe(E, E.return, St);
|
|
6293
6293
|
}
|
|
6294
6294
|
}
|
|
6295
6295
|
} else if ((n.tag !== 22 && n.tag !== 23 || n.memoizedState === null || n === l) && n.child !== null) {
|
|
@@ -7042,12 +7042,12 @@ Error generating stack: ` + i.message + `
|
|
|
7042
7042
|
r,
|
|
7043
7043
|
K
|
|
7044
7044
|
);
|
|
7045
|
-
var
|
|
7046
|
-
if (
|
|
7045
|
+
var St = (r & 62914560) === r ? Qn - yl() : (r & 4194048) === r ? Wy - yl() : 0;
|
|
7046
|
+
if (St = T0(
|
|
7047
7047
|
K,
|
|
7048
|
-
|
|
7049
|
-
),
|
|
7050
|
-
Ou = r, l.cancelPendingCommit =
|
|
7048
|
+
St
|
|
7049
|
+
), St !== null) {
|
|
7050
|
+
Ou = r, l.cancelPendingCommit = St(
|
|
7051
7051
|
Ag.bind(
|
|
7052
7052
|
null,
|
|
7053
7053
|
l,
|
|
@@ -7445,7 +7445,7 @@ Error generating stack: ` + i.message + `
|
|
|
7445
7445
|
else {
|
|
7446
7446
|
var K = g.ownerDocument || document, x = K && K.defaultView || window;
|
|
7447
7447
|
if (x.getSelection) {
|
|
7448
|
-
var X = x.getSelection(),
|
|
7448
|
+
var X = x.getSelection(), St = g.textContent.length, jt = Math.min(E.start, St), He = E.end === void 0 ? jt : Math.min(E.end, St);
|
|
7449
7449
|
!X.extend && jt > He && (m = He, He = jt, jt = m);
|
|
7450
7450
|
var U = km(
|
|
7451
7451
|
g,
|
|
@@ -7950,7 +7950,7 @@ Error generating stack: ` + i.message + `
|
|
|
7950
7950
|
t: {
|
|
7951
7951
|
var x = fu.get(l);
|
|
7952
7952
|
if (x !== void 0) {
|
|
7953
|
-
var X = Ts,
|
|
7953
|
+
var X = Ts, St = l;
|
|
7954
7954
|
switch (l) {
|
|
7955
7955
|
case "keypress":
|
|
7956
7956
|
if (dd(u) === 0) break t;
|
|
@@ -7959,10 +7959,10 @@ Error generating stack: ` + i.message + `
|
|
|
7959
7959
|
X = pd;
|
|
7960
7960
|
break;
|
|
7961
7961
|
case "focusin":
|
|
7962
|
-
|
|
7962
|
+
St = "focus", X = md;
|
|
7963
7963
|
break;
|
|
7964
7964
|
case "focusout":
|
|
7965
|
-
|
|
7965
|
+
St = "blur", X = md;
|
|
7966
7966
|
break;
|
|
7967
7967
|
case "beforeblur":
|
|
7968
7968
|
case "afterblur":
|
|
@@ -8041,7 +8041,7 @@ Error generating stack: ` + i.message + `
|
|
|
8041
8041
|
}
|
|
8042
8042
|
0 < jt.length && (x = new X(
|
|
8043
8043
|
x,
|
|
8044
|
-
|
|
8044
|
+
St,
|
|
8045
8045
|
null,
|
|
8046
8046
|
u,
|
|
8047
8047
|
Z
|
|
@@ -8050,10 +8050,10 @@ Error generating stack: ` + i.message + `
|
|
|
8050
8050
|
}
|
|
8051
8051
|
if ((n & 7) === 0) {
|
|
8052
8052
|
t: {
|
|
8053
|
-
if (x = l === "mouseover" || l === "pointerover", X = l === "mouseout" || l === "pointerout", x && u !== fd && (
|
|
8053
|
+
if (x = l === "mouseover" || l === "pointerover", X = l === "mouseout" || l === "pointerout", x && u !== fd && (St = u.relatedTarget || u.fromElement) && (bi(St) || St[_c]))
|
|
8054
8054
|
break t;
|
|
8055
|
-
if ((X || x) && (x = Z.window === Z ? Z : (x = Z.ownerDocument) ? x.defaultView || x.parentWindow : window, X ? (
|
|
8056
|
-
if (jt = wo, J = "onMouseLeave", U = "onMouseEnter", O = "mouse", (l === "pointerout" || l === "pointerover") && (jt = Rn, J = "onPointerLeave", U = "onPointerEnter", O = "pointer"), He = X == null ? x : xo(X), _ =
|
|
8055
|
+
if ((X || x) && (x = Z.window === Z ? Z : (x = Z.ownerDocument) ? x.defaultView || x.parentWindow : window, X ? (St = u.relatedTarget || u.toElement, X = H, St = St ? bi(St) : null, St !== null && (He = ct(St), jt = St.tag, St !== He || jt !== 5 && jt !== 27 && jt !== 6) && (St = null)) : (X = null, St = H), X !== St)) {
|
|
8056
|
+
if (jt = wo, J = "onMouseLeave", U = "onMouseEnter", O = "mouse", (l === "pointerout" || l === "pointerover") && (jt = Rn, J = "onPointerLeave", U = "onPointerEnter", O = "pointer"), He = X == null ? x : xo(X), _ = St == null ? x : xo(St), x = new jt(
|
|
8057
8057
|
J,
|
|
8058
8058
|
O + "leave",
|
|
8059
8059
|
X,
|
|
@@ -8062,12 +8062,12 @@ Error generating stack: ` + i.message + `
|
|
|
8062
8062
|
), x.target = He, x.relatedTarget = _, J = null, bi(Z) === H && (jt = new jt(
|
|
8063
8063
|
U,
|
|
8064
8064
|
O + "enter",
|
|
8065
|
-
|
|
8065
|
+
St,
|
|
8066
8066
|
u,
|
|
8067
8067
|
Z
|
|
8068
|
-
), jt.target = _, jt.relatedTarget = He, J = jt), He = J, X &&
|
|
8068
|
+
), jt.target = _, jt.relatedTarget = He, J = jt), He = J, X && St)
|
|
8069
8069
|
e: {
|
|
8070
|
-
for (jt = Bg, U = X, O =
|
|
8070
|
+
for (jt = Bg, U = X, O = St, _ = 0, J = U; J; J = jt(J))
|
|
8071
8071
|
_++;
|
|
8072
8072
|
J = 0;
|
|
8073
8073
|
for (var Ct = O; Ct; Ct = jt(Ct))
|
|
@@ -8092,10 +8092,10 @@ Error generating stack: ` + i.message + `
|
|
|
8092
8092
|
X,
|
|
8093
8093
|
jt,
|
|
8094
8094
|
!1
|
|
8095
|
-
),
|
|
8095
|
+
), St !== null && He !== null && Dh(
|
|
8096
8096
|
K,
|
|
8097
8097
|
He,
|
|
8098
|
-
|
|
8098
|
+
St,
|
|
8099
8099
|
jt,
|
|
8100
8100
|
!0
|
|
8101
8101
|
);
|
|
@@ -8876,9 +8876,9 @@ Error generating stack: ` + i.message + `
|
|
|
8876
8876
|
Cm(l, x, X);
|
|
8877
8877
|
return;
|
|
8878
8878
|
case "option":
|
|
8879
|
-
for (var
|
|
8880
|
-
if (x = u[
|
|
8881
|
-
switch (
|
|
8879
|
+
for (var St in u)
|
|
8880
|
+
if (x = u[St], u.hasOwnProperty(St) && x != null && !i.hasOwnProperty(St))
|
|
8881
|
+
switch (St) {
|
|
8882
8882
|
case "selected":
|
|
8883
8883
|
l.selected = !1;
|
|
8884
8884
|
break;
|
|
@@ -8886,7 +8886,7 @@ Error generating stack: ` + i.message + `
|
|
|
8886
8886
|
_e(
|
|
8887
8887
|
l,
|
|
8888
8888
|
n,
|
|
8889
|
-
|
|
8889
|
+
St,
|
|
8890
8890
|
null,
|
|
8891
8891
|
i,
|
|
8892
8892
|
x
|
|
@@ -9819,7 +9819,7 @@ Error generating stack: ` + i.message + `
|
|
|
9819
9819
|
else {
|
|
9820
9820
|
var u = n.tag;
|
|
9821
9821
|
if (u === 13) {
|
|
9822
|
-
if (l =
|
|
9822
|
+
if (l = vt(n), l !== null) return l;
|
|
9823
9823
|
l = null;
|
|
9824
9824
|
} else if (u === 31) {
|
|
9825
9825
|
if (l = B(n), l !== null) return l;
|
|
@@ -10024,7 +10024,7 @@ Error generating stack: ` + i.message + `
|
|
|
10024
10024
|
var u = ct(n);
|
|
10025
10025
|
if (u !== null) {
|
|
10026
10026
|
if (n = u.tag, n === 13) {
|
|
10027
|
-
if (n =
|
|
10027
|
+
if (n = vt(u), n !== null) {
|
|
10028
10028
|
l.blockedOn = n, zm(l.priority, function() {
|
|
10029
10029
|
so(u);
|
|
10030
10030
|
});
|
|
@@ -10310,7 +10310,7 @@ function nA() {
|
|
|
10310
10310
|
function ct() {
|
|
10311
10311
|
return !1;
|
|
10312
10312
|
}
|
|
10313
|
-
function
|
|
10313
|
+
function vt() {
|
|
10314
10314
|
return null;
|
|
10315
10315
|
}
|
|
10316
10316
|
function B() {
|
|
@@ -16551,7 +16551,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
16551
16551
|
), cl(t, e), c = Gi(), t !== null && !Bl ? (js(t, e, f), Bn(t, e, f)) : (ie && c && bd(e), e.flags |= 1, Ul(t, e, a, f), e.child);
|
|
16552
16552
|
}
|
|
16553
16553
|
function Wi(t, e, a, c, o) {
|
|
16554
|
-
switch (
|
|
16554
|
+
switch (vt(e)) {
|
|
16555
16555
|
case !1:
|
|
16556
16556
|
var f = e.stateNode, d = new e.type(
|
|
16557
16557
|
e.memoizedProps,
|
|
@@ -22996,7 +22996,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
22996
22996
|
for (f in e)
|
|
22997
22997
|
if (e.hasOwnProperty(f)) {
|
|
22998
22998
|
var d = e[f];
|
|
22999
|
-
d != null && typeof d != "boolean" && d !== "" && (f.indexOf("--") === 0 ? (ss(d, f), c += o + f + ":" + ("" + d).trim()) : typeof d != "number" || d === 0 || Et.has(f) ? (ss(d, f), c += o + f.replace(X, "-$1").toLowerCase().replace(
|
|
22999
|
+
d != null && typeof d != "boolean" && d !== "" && (f.indexOf("--") === 0 ? (ss(d, f), c += o + f + ":" + ("" + d).trim()) : typeof d != "number" || d === 0 || Et.has(f) ? (ss(d, f), c += o + f.replace(X, "-$1").toLowerCase().replace(St, "-ms-") + ":" + ("" + d).trim()) : c += o + f.replace(X, "-$1").toLowerCase().replace(St, "-ms-") + ":" + d + "px", o = ";");
|
|
23000
23000
|
}
|
|
23001
23001
|
c = c || null, e = t.getAttribute("style"), e !== c && (c = Qn(c), Qn(e) !== c && (a.style = ui(t)));
|
|
23002
23002
|
}
|
|
@@ -25063,7 +25063,7 @@ Check the render method of %s.`,
|
|
|
25063
25063
|
"transitionTimingFunction"
|
|
25064
25064
|
],
|
|
25065
25065
|
wordWrap: ["overflowWrap"]
|
|
25066
|
-
}, X = /([A-Z])/g,
|
|
25066
|
+
}, X = /([A-Z])/g, St = /^ms-/, jt = /^(?:webkit|moz|o)[A-Z]/, He = /^-ms-/, U = /-(.)/g, O = /;\s*$/, _ = {}, J = {}, Ct = !1, re = !1, Et = new Set(
|
|
25067
25067
|
"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
|
|
25068
25068
|
" "
|
|
25069
25069
|
)
|
|
@@ -27189,7 +27189,7 @@ Check the top-level render call using <` + c + ">.");
|
|
|
27189
27189
|
var e = Uo(), a = $l(t, e);
|
|
27190
27190
|
a !== null && Xt(a, t, e);
|
|
27191
27191
|
}, H2 = function(t) {
|
|
27192
|
-
|
|
27192
|
+
vt = t;
|
|
27193
27193
|
}, x2 = function(t) {
|
|
27194
27194
|
ct = t;
|
|
27195
27195
|
};
|
|
@@ -27345,8 +27345,8 @@ function iA() {
|
|
|
27345
27345
|
Z2 = 1;
|
|
27346
27346
|
var A = Symbol.for("react.transitional.element"), F = Symbol.for("react.fragment");
|
|
27347
27347
|
function dt(M, st, ct) {
|
|
27348
|
-
var
|
|
27349
|
-
if (ct !== void 0 && (
|
|
27348
|
+
var vt = null;
|
|
27349
|
+
if (ct !== void 0 && (vt = "" + ct), st.key !== void 0 && (vt = "" + st.key), "key" in st) {
|
|
27350
27350
|
ct = {};
|
|
27351
27351
|
for (var B in st)
|
|
27352
27352
|
B !== "key" && (ct[B] = st[B]);
|
|
@@ -27354,7 +27354,7 @@ function iA() {
|
|
|
27354
27354
|
return st = ct.ref, {
|
|
27355
27355
|
$$typeof: A,
|
|
27356
27356
|
type: M,
|
|
27357
|
-
key:
|
|
27357
|
+
key: vt,
|
|
27358
27358
|
ref: st !== void 0 ? st : null,
|
|
27359
27359
|
props: ct
|
|
27360
27360
|
};
|
|
@@ -27455,7 +27455,7 @@ function oA() {
|
|
|
27455
27455
|
function ct() {
|
|
27456
27456
|
return Error("react-stack-top-frame");
|
|
27457
27457
|
}
|
|
27458
|
-
function
|
|
27458
|
+
function vt(Q) {
|
|
27459
27459
|
if (V.call(Q, "key")) {
|
|
27460
27460
|
var at = Object.getOwnPropertyDescriptor(Q, "key").get;
|
|
27461
27461
|
if (at && at.isReactWarning) return !1;
|
|
@@ -27544,7 +27544,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
27544
27544
|
be
|
|
27545
27545
|
), Ut[be + bt] = !0);
|
|
27546
27546
|
}
|
|
27547
|
-
if (be = null, mt !== void 0 && (dt(mt), be = "" + mt),
|
|
27547
|
+
if (be = null, mt !== void 0 && (dt(mt), be = "" + mt), vt(at) && (dt(at.key), be = "" + at.key), "key" in at) {
|
|
27548
27548
|
mt = {};
|
|
27549
27549
|
for (var zl in at)
|
|
27550
27550
|
zl !== "key" && (mt[zl] = at[zl]);
|
|
@@ -27616,9 +27616,9 @@ const Rc = {
|
|
|
27616
27616
|
STOP: "stop",
|
|
27617
27617
|
ERROR: "error"
|
|
27618
27618
|
}, K2 = ({ content: A, status: F, onContentGrow: dt }) => {
|
|
27619
|
-
const M = F === Rc.ANSWERING, [st, ct] = Kt(A),
|
|
27619
|
+
const M = F === Rc.ANSWERING, [st, ct] = Kt(A), vt = Se(A), B = Se(A.length), ot = Se(0), zt = Se(0), Ot = Se(0), lt = Se(dt);
|
|
27620
27620
|
return lt.current = dt, Xl(() => {
|
|
27621
|
-
|
|
27621
|
+
vt.current = A, M || (ct(A), B.current = A.length, ot.current = 0);
|
|
27622
27622
|
}, [A, M]), Xl(() => {
|
|
27623
27623
|
if (!M) return;
|
|
27624
27624
|
const rt = 80, tt = 200, Tt = (et) => {
|
|
@@ -27629,7 +27629,7 @@ const Rc = {
|
|
|
27629
27629
|
}
|
|
27630
27630
|
const P = Math.min(et - Ot.current, 100);
|
|
27631
27631
|
Ot.current = et;
|
|
27632
|
-
const j =
|
|
27632
|
+
const j = vt.current, xt = j.length - B.current;
|
|
27633
27633
|
if (xt > 0) {
|
|
27634
27634
|
const wt = Math.min(rt + xt, tt);
|
|
27635
27635
|
ot.current += wt * P / 1e3;
|
|
@@ -27645,9 +27645,9 @@ const Rc = {
|
|
|
27645
27645
|
M && /* @__PURE__ */ C.jsx("span", { className: "streaming-cursor" })
|
|
27646
27646
|
] });
|
|
27647
27647
|
}, sA = ({ content: A, isStreaming: F }) => {
|
|
27648
|
-
const [dt, M] = Kt(!1), [st, ct] = Kt(A),
|
|
27648
|
+
const [dt, M] = Kt(!1), [st, ct] = Kt(A), vt = Se(A), B = Se(A.length), ot = Se(0), zt = Se(0), Ot = Se(0);
|
|
27649
27649
|
return Xl(() => {
|
|
27650
|
-
|
|
27650
|
+
vt.current = A, F || (ct(A), B.current = A.length, ot.current = 0);
|
|
27651
27651
|
}, [A, F]), Xl(() => {
|
|
27652
27652
|
if (!F) return;
|
|
27653
27653
|
const lt = 80, rt = (tt) => {
|
|
@@ -27657,7 +27657,7 @@ const Rc = {
|
|
|
27657
27657
|
}
|
|
27658
27658
|
const Tt = Math.min(tt - Ot.current, 100);
|
|
27659
27659
|
Ot.current = tt;
|
|
27660
|
-
const et =
|
|
27660
|
+
const et = vt.current, P = et.length - B.current;
|
|
27661
27661
|
if (P > 0) {
|
|
27662
27662
|
const j = lt + P;
|
|
27663
27663
|
ot.current += j * Tt / 1e3;
|
|
@@ -27719,8 +27719,8 @@ const Rc = {
|
|
|
27719
27719
|
/* @__PURE__ */ C.jsx("span", { className: "agent-thought__text", children: A ? "工具调用" : "工具调用中" })
|
|
27720
27720
|
] }), dA = {
|
|
27721
27721
|
pre({ node: A, children: F, ...dt }) {
|
|
27722
|
-
var
|
|
27723
|
-
const M = (
|
|
27722
|
+
var vt, B, ot;
|
|
27723
|
+
const M = (vt = A == null ? void 0 : A.children) == null ? void 0 : vt.find(
|
|
27724
27724
|
(zt) => zt.type === "element" && zt.tagName === "code"
|
|
27725
27725
|
), ct = (((ot = (B = M == null ? void 0 : M.properties) == null ? void 0 : B.className) == null ? void 0 : ot[0]) || "").replace("language-", "") || "";
|
|
27726
27726
|
return /* @__PURE__ */ C.jsxs("pre", { ...dt, children: [
|
|
@@ -27750,7 +27750,7 @@ const Rc = {
|
|
|
27750
27750
|
scrollToBottom: dt,
|
|
27751
27751
|
onRegenerate: M
|
|
27752
27752
|
}) => {
|
|
27753
|
-
const [st, ct] = Kt(!1), [
|
|
27753
|
+
const [st, ct] = Kt(!1), [vt, B] = Kt(""), ot = (tt) => {
|
|
27754
27754
|
const Tt = tt.target;
|
|
27755
27755
|
Tt.tagName === "IMG" && B(Tt.src);
|
|
27756
27756
|
}, zt = (tt) => {
|
|
@@ -27818,7 +27818,7 @@ const Rc = {
|
|
|
27818
27818
|
/* @__PURE__ */ C.jsx("div", { className: "tooltip-enhanced", "data-tooltip": "重新回答", children: /* @__PURE__ */ C.jsx($E, { onClick: M }) })
|
|
27819
27819
|
] })
|
|
27820
27820
|
] }) : /* @__PURE__ */ C.jsx("div", { className: "message-content", children: A.content }),
|
|
27821
|
-
|
|
27821
|
+
vt && OE(
|
|
27822
27822
|
/* @__PURE__ */ C.jsxs(
|
|
27823
27823
|
"div",
|
|
27824
27824
|
{
|
|
@@ -27828,7 +27828,7 @@ const Rc = {
|
|
|
27828
27828
|
/* @__PURE__ */ C.jsx(
|
|
27829
27829
|
"img",
|
|
27830
27830
|
{
|
|
27831
|
-
src:
|
|
27831
|
+
src: vt,
|
|
27832
27832
|
className: "ai-image-preview-overlay__img",
|
|
27833
27833
|
onClick: (tt) => tt.stopPropagation()
|
|
27834
27834
|
}
|
|
@@ -27856,7 +27856,7 @@ const Rc = {
|
|
|
27856
27856
|
onStop: M,
|
|
27857
27857
|
isGenerating: st,
|
|
27858
27858
|
lastUserMessage: ct,
|
|
27859
|
-
hasScroll:
|
|
27859
|
+
hasScroll: vt,
|
|
27860
27860
|
isAtBottom: B,
|
|
27861
27861
|
onScrollToBottom: ot
|
|
27862
27862
|
}) => {
|
|
@@ -27942,7 +27942,7 @@ const Rc = {
|
|
|
27942
27942
|
children: /* @__PURE__ */ C.jsx(Mc, { className: "op-icon", icon: "fluent-color:send-16" })
|
|
27943
27943
|
}
|
|
27944
27944
|
),
|
|
27945
|
-
|
|
27945
|
+
vt && !B && /* @__PURE__ */ C.jsx("div", { className: "moveTB", children: /* @__PURE__ */ C.jsx(Mc, { onClick: ot, icon: "ep:bottom" }) })
|
|
27946
27946
|
] }) : /* @__PURE__ */ C.jsxs("div", { className: "input-container", children: [
|
|
27947
27947
|
/* @__PURE__ */ C.jsx(
|
|
27948
27948
|
"input",
|
|
@@ -27978,7 +27978,7 @@ const Rc = {
|
|
|
27978
27978
|
)
|
|
27979
27979
|
}
|
|
27980
27980
|
),
|
|
27981
|
-
|
|
27981
|
+
vt && !B && /* @__PURE__ */ C.jsx("div", { className: "moveTB", children: /* @__PURE__ */ C.jsx(Mc, { onClick: ot, icon: "ep:bottom" }) })
|
|
27982
27982
|
] });
|
|
27983
27983
|
};
|
|
27984
27984
|
function yA(A) {
|
|
@@ -27986,22 +27986,22 @@ function yA(A) {
|
|
|
27986
27986
|
requestAnimationFrame(() => {
|
|
27987
27987
|
A.current && (A.current.scrollTop = A.current.scrollHeight);
|
|
27988
27988
|
});
|
|
27989
|
-
}, [A]),
|
|
27989
|
+
}, [A]), vt = In(() => {
|
|
27990
27990
|
if (!A.current) return;
|
|
27991
27991
|
const B = A.current, ot = B.scrollTop + B.clientHeight >= B.scrollHeight - 1, zt = B.scrollHeight > B.clientHeight;
|
|
27992
27992
|
dt(ot), st(zt);
|
|
27993
27993
|
}, [A]);
|
|
27994
|
-
return { isAtBottom: F, hasScroll: M, scrollToBottom: ct, checkScrollStatus:
|
|
27994
|
+
return { isAtBottom: F, hasScroll: M, scrollToBottom: ct, checkScrollStatus: vt };
|
|
27995
27995
|
}
|
|
27996
27996
|
function pA(A) {
|
|
27997
27997
|
const F = Se([]), dt = Se(0), M = In(
|
|
27998
27998
|
(ct) => {
|
|
27999
27999
|
F.current.push(ct), dt.current || (dt.current = requestAnimationFrame(() => {
|
|
28000
28000
|
dt.current = 0;
|
|
28001
|
-
const
|
|
28002
|
-
F.current = [],
|
|
28001
|
+
const vt = F.current;
|
|
28002
|
+
F.current = [], vt.length > 0 && A((B) => {
|
|
28003
28003
|
let ot = B;
|
|
28004
|
-
for (const zt of
|
|
28004
|
+
for (const zt of vt)
|
|
28005
28005
|
ot = zt(ot);
|
|
28006
28006
|
return ot;
|
|
28007
28007
|
});
|
|
@@ -28011,8 +28011,8 @@ function pA(A) {
|
|
|
28011
28011
|
), st = In(() => {
|
|
28012
28012
|
dt.current && (cancelAnimationFrame(dt.current), dt.current = 0);
|
|
28013
28013
|
const ct = F.current;
|
|
28014
|
-
F.current = [], ct.length > 0 && A((
|
|
28015
|
-
let B =
|
|
28014
|
+
F.current = [], ct.length > 0 && A((vt) => {
|
|
28015
|
+
let B = vt;
|
|
28016
28016
|
for (const ot of ct)
|
|
28017
28017
|
B = ot(B);
|
|
28018
28018
|
return B;
|
|
@@ -28029,7 +28029,7 @@ function gA({
|
|
|
28029
28029
|
batchSetMessages: M,
|
|
28030
28030
|
flushBatch: st,
|
|
28031
28031
|
STATUS: ct,
|
|
28032
|
-
cfg:
|
|
28032
|
+
cfg: vt
|
|
28033
28033
|
}) {
|
|
28034
28034
|
const B = Se(/* @__PURE__ */ new Map()), ot = Se(/* @__PURE__ */ new Map()), zt = Se(/* @__PURE__ */ new Map()), Ot = Se(/* @__PURE__ */ new Map()), lt = Se(!1), rt = In(
|
|
28035
28035
|
(et) => {
|
|
@@ -28067,11 +28067,14 @@ function gA({
|
|
|
28067
28067
|
async (et, P, j, xt, Rt = !1) => {
|
|
28068
28068
|
lt.current = !1, B.current.set(j, []), F(!0);
|
|
28069
28069
|
try {
|
|
28070
|
-
const wt =
|
|
28070
|
+
const wt = vt.baseUrl.replace(/\/+$/, "") + "/" + et.replace(/^\/+/, "");
|
|
28071
28071
|
await WE(wt, {
|
|
28072
28072
|
method: "POST",
|
|
28073
|
-
headers: {
|
|
28074
|
-
|
|
28073
|
+
headers: {
|
|
28074
|
+
"Content-Type": "application/json",
|
|
28075
|
+
Authorization: `Bearer ${vt.token}`
|
|
28076
|
+
},
|
|
28077
|
+
body: JSON.stringify({ app: vt.app ?? 1, data: P }),
|
|
28075
28078
|
signal: xt,
|
|
28076
28079
|
openWhenHidden: !0,
|
|
28077
28080
|
async onopen(Bt) {
|
|
@@ -28280,7 +28283,7 @@ function gA({
|
|
|
28280
28283
|
rt,
|
|
28281
28284
|
tt,
|
|
28282
28285
|
ct,
|
|
28283
|
-
|
|
28286
|
+
vt
|
|
28284
28287
|
]
|
|
28285
28288
|
), issTopRef: lt };
|
|
28286
28289
|
}
|
|
@@ -28294,8 +28297,8 @@ function $2(A) {
|
|
|
28294
28297
|
const ct = st.startsWith("data:") ? st.slice(5).trim() : "";
|
|
28295
28298
|
if (ct)
|
|
28296
28299
|
try {
|
|
28297
|
-
const
|
|
28298
|
-
|
|
28300
|
+
const vt = JSON.parse(ct);
|
|
28301
|
+
vt.event === "message" && vt.answer !== void 0 && (M += vt.answer);
|
|
28299
28302
|
} catch {
|
|
28300
28303
|
}
|
|
28301
28304
|
}
|
|
@@ -28313,7 +28316,7 @@ function SA({
|
|
|
28313
28316
|
setUserInput: M,
|
|
28314
28317
|
isGenerating: st,
|
|
28315
28318
|
setIsGenerating: ct,
|
|
28316
|
-
lastUserMessage:
|
|
28319
|
+
lastUserMessage: vt,
|
|
28317
28320
|
setLastUserMessage: B,
|
|
28318
28321
|
conversationIdRef: ot,
|
|
28319
28322
|
doStreamRequest: zt,
|
|
@@ -28404,7 +28407,7 @@ AI回答:${gt}`, W = await B2().post(et.chatQueryApi, {
|
|
|
28404
28407
|
});
|
|
28405
28408
|
}
|
|
28406
28409
|
}, Bt = async () => {
|
|
28407
|
-
if (!
|
|
28410
|
+
if (!vt || st) return;
|
|
28408
28411
|
P.current.again.abort(), P.current.again = new AbortController(), F((k) => {
|
|
28409
28412
|
const V = [...k];
|
|
28410
28413
|
return V.length > 0 && V[V.length - 1].type === "ai" && V.pop(), V.push({ type: "ai", content: "", status: rt.RETHINKING }), V;
|
|
@@ -28413,7 +28416,7 @@ AI回答:${gt}`, W = await B2().post(et.chatQueryApi, {
|
|
|
28413
28416
|
await zt(
|
|
28414
28417
|
I,
|
|
28415
28418
|
{
|
|
28416
|
-
MessageID:
|
|
28419
|
+
MessageID: vt,
|
|
28417
28420
|
AppConversationID: ot.current,
|
|
28418
28421
|
ResponseMode: "streaming"
|
|
28419
28422
|
},
|
|
@@ -28425,7 +28428,7 @@ AI回答:${gt}`, W = await B2().post(et.chatQueryApi, {
|
|
|
28425
28428
|
if (!et.stopMessageApi || !st) return;
|
|
28426
28429
|
const w = A.length - 1 - 1;
|
|
28427
28430
|
try {
|
|
28428
|
-
await _E(et,
|
|
28431
|
+
await _E(et, vt), F((I) => {
|
|
28429
28432
|
const k = [...I];
|
|
28430
28433
|
return k[w] && (k[w] = {
|
|
28431
28434
|
...k[w],
|
|
@@ -28471,8 +28474,8 @@ AI回答:${gt}`, W = await B2().post(et.chatQueryApi, {
|
|
|
28471
28474
|
}
|
|
28472
28475
|
const tT = k2(
|
|
28473
28476
|
({ defaultSayhello: A, defaultRecommend: F, onTitleGenerated: dt }, M) => {
|
|
28474
|
-
const st = bm(), [ct,
|
|
28475
|
-
setMessages:
|
|
28477
|
+
const st = bm(), [ct, vt] = Kt([]), [B, ot] = Kt(""), [zt, Ot] = Kt(!1), [lt, rt] = Kt(""), [tt, Tt] = Kt({ text1: "", text2: "" }), [et, P] = Kt([]), [j, xt] = Kt(0), Rt = Se(null), wt = Se(""), { isAtBottom: Bt, hasScroll: Lt, scrollToBottom: Mt, checkScrollStatus: it } = yA(Rt), { batchSetMessages: At, flushBatch: w } = pA(vt), { doStreamRequest: I, issTopRef: k } = gA({
|
|
28478
|
+
setMessages: vt,
|
|
28476
28479
|
setIsGenerating: Ot,
|
|
28477
28480
|
setLastUserMessage: rt,
|
|
28478
28481
|
batchSetMessages: At,
|
|
@@ -28481,7 +28484,7 @@ const tT = k2(
|
|
|
28481
28484
|
cfg: st
|
|
28482
28485
|
}), { sendMessage: V, regenerateResponse: nt, toggleStop: gt, goHistoryMessage: b, resetConversation: Y } = SA({
|
|
28483
28486
|
messages: ct,
|
|
28484
|
-
setMessages:
|
|
28487
|
+
setMessages: vt,
|
|
28485
28488
|
userInput: B,
|
|
28486
28489
|
setUserInput: ot,
|
|
28487
28490
|
isGenerating: zt,
|
|
@@ -28496,7 +28499,7 @@ const tT = k2(
|
|
|
28496
28499
|
cfg: st,
|
|
28497
28500
|
onTitleGenerated: dt
|
|
28498
28501
|
}), W = () => {
|
|
28499
|
-
|
|
28502
|
+
vt([]), rt(""), Y();
|
|
28500
28503
|
};
|
|
28501
28504
|
W2(M, () => ({
|
|
28502
28505
|
goHistoryMessage: b,
|
|
@@ -28554,7 +28557,7 @@ const tT = k2(
|
|
|
28554
28557
|
);
|
|
28555
28558
|
tT.displayName = "Answer";
|
|
28556
28559
|
const bA = ({ onHistoryDetail: A, onNewConversation: F }) => {
|
|
28557
|
-
const M = bm().apis, [st, ct] = Kt([]), [
|
|
28560
|
+
const M = bm().apis, [st, ct] = Kt([]), [vt, B] = Kt(!0), [ot, zt] = Kt(!1), [Ot, lt] = Kt(""), rt = DE(() => jE(st), [st]), tt = async () => {
|
|
28558
28561
|
try {
|
|
28559
28562
|
const P = await BE(M);
|
|
28560
28563
|
if (P != null && P.conversationList) {
|
|
@@ -28579,7 +28582,7 @@ const bA = ({ onHistoryDetail: A, onNewConversation: F }) => {
|
|
|
28579
28582
|
return Xl(() => {
|
|
28580
28583
|
tt();
|
|
28581
28584
|
}, []), /* @__PURE__ */ C.jsxs("div", { className: "ai-history", children: [
|
|
28582
|
-
/* @__PURE__ */ C.jsx("div", { className: "content", children:
|
|
28585
|
+
/* @__PURE__ */ C.jsx("div", { className: "content", children: vt ? /* @__PURE__ */ C.jsx("div", { className: "ai-history-loading", children: /* @__PURE__ */ C.jsx("div", { className: "ai-history-spinner" }) }) : rt.length > 0 ? rt.map((P) => /* @__PURE__ */ C.jsxs("div", { className: "ai-history-group", children: [
|
|
28583
28586
|
/* @__PURE__ */ C.jsx("div", { className: "ai-history-group-title", children: P.label }),
|
|
28584
28587
|
P.items.map((j, xt) => /* @__PURE__ */ C.jsxs(
|
|
28585
28588
|
"div",
|
|
@@ -28674,7 +28677,7 @@ const bA = ({ onHistoryDetail: A, onNewConversation: F }) => {
|
|
|
28674
28677
|
] })
|
|
28675
28678
|
] });
|
|
28676
28679
|
}, EA = 78, Ep = 78, Ir = EA / 2, eT = () => {
|
|
28677
|
-
const A = bm(), [F, dt] = Kt(!1), [M, st] = Kt("idle"), [ct,
|
|
28680
|
+
const A = bm(), [F, dt] = Kt(!1), [M, st] = Kt("idle"), [ct, vt] = Kt(!1), [B, ot] = Kt({ x: 0, y: 0, w: 78, h: 78, radius: "14px" }), [zt, Ot] = Kt(!1), [lt, rt] = Kt(() => window.innerWidth < 768), [tt, Tt] = Kt(() => window.innerWidth < 768), [et, P] = Kt("answer"), [j, xt] = Kt(!1), [Rt, wt] = Kt(""), [Bt, Lt] = Kt(""), [Mt, it] = Kt(""), [At, w] = Kt(!1), [I, k] = Kt(!1), [V, nt] = Kt({
|
|
28678
28681
|
x: window.innerWidth - Ir,
|
|
28679
28682
|
y: window.innerHeight / 2 - Ep / 2
|
|
28680
28683
|
}), [gt, b] = Kt(!1), [Y, W] = Kt(!1), [pt, Ut] = Kt("right"), [Q, at] = Kt("left"), mt = Se({ x: 0, y: 0 }), bt = Se(!1), Ne = Se(null), Al = Se(null), be = In(() => {
|
|
@@ -28760,16 +28763,16 @@ const bA = ({ onHistoryDetail: A, onNewConversation: F }) => {
|
|
|
28760
28763
|
w: 78,
|
|
28761
28764
|
h: 78,
|
|
28762
28765
|
radius: "50%"
|
|
28763
|
-
}),
|
|
28764
|
-
|
|
28766
|
+
}), vt(!0), st("expanding"), dt(!0), requestAnimationFrame(() => {
|
|
28767
|
+
vt(!1), ot(Nt);
|
|
28765
28768
|
}), setTimeout(() => st("idle"), 400);
|
|
28766
28769
|
} else
|
|
28767
28770
|
bt.current = !1;
|
|
28768
28771
|
}, ss = () => {
|
|
28769
28772
|
if (M !== "idle") return;
|
|
28770
28773
|
const Nt = Pn();
|
|
28771
|
-
ot(Nt),
|
|
28772
|
-
|
|
28774
|
+
ot(Nt), vt(!0), st("collapsing"), requestAnimationFrame(() => {
|
|
28775
|
+
vt(!1), ot({
|
|
28773
28776
|
x: V.x + Cc * 6,
|
|
28774
28777
|
y: V.y,
|
|
28775
28778
|
w: 78,
|
|
@@ -28927,7 +28930,7 @@ const bA = ({ onHistoryDetail: A, onNewConversation: F }) => {
|
|
|
28927
28930
|
stopText: M,
|
|
28928
28931
|
connectingText: st,
|
|
28929
28932
|
stoppingText: ct,
|
|
28930
|
-
className:
|
|
28933
|
+
className: vt,
|
|
28931
28934
|
onResult: B,
|
|
28932
28935
|
onFinal: ot,
|
|
28933
28936
|
onError: zt,
|
|
@@ -29004,7 +29007,7 @@ const bA = ({ onHistoryDetail: A, onNewConversation: F }) => {
|
|
|
29004
29007
|
j === "connecting" ? "is-connecting" : "",
|
|
29005
29008
|
j === "stopping" ? "is-stopping" : ""
|
|
29006
29009
|
].filter(Boolean).join(" "), w = j === "connecting" || j === "stopping", I = !tt && !et;
|
|
29007
|
-
return /* @__PURE__ */ C.jsxs("div", { className: `ai-voice-input ${
|
|
29010
|
+
return /* @__PURE__ */ C.jsxs("div", { className: `ai-voice-input ${vt || ""}`.trim(), "data-theme": Bt, children: [
|
|
29008
29011
|
/* @__PURE__ */ C.jsxs("div", { className: `ai-voice-input-display ${I ? "is-empty" : ""}`, children: [
|
|
29009
29012
|
tt && /* @__PURE__ */ C.jsx("span", { className: "ai-voice-input-final", children: tt }),
|
|
29010
29013
|
et && /* @__PURE__ */ C.jsx("span", { className: "ai-voice-input-interim", children: et }),
|
package/dist/vue/index.mjs
CHANGED
|
@@ -580,7 +580,10 @@ function en({
|
|
|
580
580
|
const H = i.baseUrl.replace(/\/+$/, "") + "/" + M.replace(/^\/+/, "");
|
|
581
581
|
await ut(H, {
|
|
582
582
|
method: "POST",
|
|
583
|
-
headers: {
|
|
583
|
+
headers: {
|
|
584
|
+
"Content-Type": "application/json",
|
|
585
|
+
Authorization: `Bearer ${i.token}`
|
|
586
|
+
},
|
|
584
587
|
body: JSON.stringify({ app: i.app ?? 1, data: P }),
|
|
585
588
|
signal: E,
|
|
586
589
|
openWhenHidden: !0,
|