@streamoid/agent 0.6.34 → 0.6.36
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.d.ts +24 -5
- package/dist/index.js +146 -129
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15924,6 +15924,15 @@ function subscribeToChatPrompts(e) {
|
|
|
15924
15924
|
promptListeners.delete(e);
|
|
15925
15925
|
};
|
|
15926
15926
|
}
|
|
15927
|
+
const composerFocusListeners = /* @__PURE__ */ new Set();
|
|
15928
|
+
function focusAgentComposer() {
|
|
15929
|
+
composerFocusListeners.forEach((e) => e());
|
|
15930
|
+
}
|
|
15931
|
+
function subscribeToComposerFocus(e) {
|
|
15932
|
+
return composerFocusListeners.add(e), () => {
|
|
15933
|
+
composerFocusListeners.delete(e);
|
|
15934
|
+
};
|
|
15935
|
+
}
|
|
15927
15936
|
function sendToParent(e) {
|
|
15928
15937
|
if (!(window.parent && window.parent !== window)) return !1;
|
|
15929
15938
|
const t = getExpectedParentOrigin();
|
|
@@ -38516,7 +38525,7 @@ function requireDist$1() {
|
|
|
38516
38525
|
}, POW: function(z, ee) {
|
|
38517
38526
|
return arguments.length !== 2 ? Q : lr(z, ee);
|
|
38518
38527
|
} });
|
|
38519
|
-
const _r = new Date(Date.UTC(1900, 0, 1)), dr = [void 0, 0, 1, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, 1, 2, 3, 4, 5, 6, 0], Oi = [[], [1, 2, 3, 4, 5, 6, 7], [7, 1, 2, 3, 4, 5, 6], [6, 0, 1, 2, 3, 4, 5], [], [], [], [], [], [], [], [7, 1, 2, 3, 4, 5, 6], [6, 7, 1, 2, 3, 4, 5], [5, 6, 7, 1, 2, 3, 4], [4, 5, 6, 7, 1, 2, 3], [3, 4, 5, 6, 7, 1, 2], [2, 3, 4, 5, 6, 7, 1], [1, 2, 3, 4, 5, 6, 7]],
|
|
38528
|
+
const _r = new Date(Date.UTC(1900, 0, 1)), dr = [void 0, 0, 1, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, 1, 2, 3, 4, 5, 6, 0], Oi = [[], [1, 2, 3, 4, 5, 6, 7], [7, 1, 2, 3, 4, 5, 6], [6, 0, 1, 2, 3, 4, 5], [], [], [], [], [], [], [], [7, 1, 2, 3, 4, 5, 6], [6, 7, 1, 2, 3, 4, 5], [5, 6, 7, 1, 2, 3, 4], [4, 5, 6, 7, 1, 2, 3], [3, 4, 5, 6, 7, 1, 2], [2, 3, 4, 5, 6, 7, 1], [1, 2, 3, 4, 5, 6, 7]], si = [[], [6, 0], [0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [5, 6], void 0, void 0, void 0, [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]];
|
|
38520
38529
|
function Tr(z, ee, Fe) {
|
|
38521
38530
|
Fe = Fe.toUpperCase(), z = At(z), ee = At(ee);
|
|
38522
38531
|
const Ye = z.getFullYear(), dt = z.getMonth(), Tt = z.getDate(), Ut = ee.getFullYear(), sn = ee.getMonth(), _n = ee.getDate();
|
|
@@ -38637,11 +38646,11 @@ function requireDist$1() {
|
|
|
38637
38646
|
if ((ee = At(ee)) instanceof Error) return ee;
|
|
38638
38647
|
let dt = !1;
|
|
38639
38648
|
const Tt = [], Ut = [1, 2, 3, 4, 5, 6, 0], sn = new RegExp("^[0|1]{7}$");
|
|
38640
|
-
if (Fe === void 0) Fe =
|
|
38649
|
+
if (Fe === void 0) Fe = si[1];
|
|
38641
38650
|
else if (typeof Fe == "string" && sn.test(Fe)) {
|
|
38642
38651
|
dt = !0, Fe = Fe.split("");
|
|
38643
38652
|
for (let ir = 0; ir < Fe.length; ir++) Fe[ir] === "1" && Tt.push(Ut[ir]);
|
|
38644
|
-
} else Fe =
|
|
38653
|
+
} else Fe = si[Fe];
|
|
38645
38654
|
if (!(Fe instanceof Array)) return M;
|
|
38646
38655
|
Ye === void 0 ? Ye = [] : Ye instanceof Array || (Ye = [Ye]);
|
|
38647
38656
|
for (let ir = 0; ir < Ye.length; ir++) {
|
|
@@ -38669,7 +38678,7 @@ function requireDist$1() {
|
|
|
38669
38678
|
if ((z = At(z)) instanceof Error) return z;
|
|
38670
38679
|
if ((ee = oe(ee)) instanceof Error) return ee;
|
|
38671
38680
|
if (ee < 0) return F;
|
|
38672
|
-
if (!((Fe = Fe === void 0 ?
|
|
38681
|
+
if (!((Fe = Fe === void 0 ? si[1] : si[Fe]) instanceof Array)) return M;
|
|
38673
38682
|
Ye === void 0 ? Ye = [] : Ye instanceof Array || (Ye = [Ye]);
|
|
38674
38683
|
for (let Tt = 0; Tt < Ye.length; Tt++) {
|
|
38675
38684
|
const Ut = At(Ye[Tt]);
|
|
@@ -44910,8 +44919,8 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
44910
44919
|
vr > 0 && (vr < 4096 ? $n += vr + 63 >> 6 : qn += vr + 511 >> 9);
|
|
44911
44920
|
}
|
|
44912
44921
|
}
|
|
44913
|
-
for (var Rr = Pn.FullPaths.length + 3 >> 2, sa = $n + 7 >> 3, _r = $n + 127 >> 7, dr = sa + qn + Rr + _r, Oi = dr + 127 >> 7,
|
|
44914
|
-
var Tr = [1,
|
|
44922
|
+
for (var Rr = Pn.FullPaths.length + 3 >> 2, sa = $n + 7 >> 3, _r = $n + 127 >> 7, dr = sa + qn + Rr + _r, Oi = dr + 127 >> 7, si = Oi <= 109 ? 0 : Math.ceil((Oi - 109) / 127); dr + Oi + si + 127 >> 7 > Oi; ) si = ++Oi <= 109 ? 0 : Math.ceil((Oi - 109) / 127);
|
|
44923
|
+
var Tr = [1, si, Oi, _r, Rr, qn, $n, 0];
|
|
44915
44924
|
return Pn.FileIndex[0].size = $n << 6, Tr[7] = (Pn.FileIndex[0].start = Tr[0] + Tr[1] + Tr[2] + Tr[3] + Tr[4] + Tr[5]) + (Tr[6] + 7 >> 3), Tr;
|
|
44916
44925
|
})(Oe), lt = new_buf(mt[7] << 9), _t = 0, Yt = 0;
|
|
44917
44926
|
{
|
|
@@ -87422,9 +87431,9 @@ Error generating stack: ` + te.message + `
|
|
|
87422
87431
|
}
|
|
87423
87432
|
var dr = RegExp(
|
|
87424
87433
|
"^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
87425
|
-
), Oi = {},
|
|
87434
|
+
), Oi = {}, si = {};
|
|
87426
87435
|
function Tr(C) {
|
|
87427
|
-
return Un.call(
|
|
87436
|
+
return Un.call(si, C) ? !0 : Un.call(Oi, C) ? !1 : dr.test(C) ? si[C] = !0 : (Oi[C] = !0, !1);
|
|
87428
87437
|
}
|
|
87429
87438
|
function Ea(C, j, V) {
|
|
87430
87439
|
if (Tr(j))
|
|
@@ -88273,15 +88282,15 @@ Error generating stack: ` + te.message + `
|
|
|
88273
88282
|
transitionstart: vo("Transition", "TransitionStart"),
|
|
88274
88283
|
transitioncancel: vo("Transition", "TransitionCancel"),
|
|
88275
88284
|
transitionend: vo("Transition", "TransitionEnd")
|
|
88276
|
-
},
|
|
88285
|
+
}, oi = {}, Vo = {};
|
|
88277
88286
|
ps && (Vo = document.createElement("div").style, "AnimationEvent" in window || (delete Ks.animationend.animation, delete Ks.animationiteration.animation, delete Ks.animationstart.animation), "TransitionEvent" in window || delete Ks.transitionend.transition);
|
|
88278
88287
|
function Jr(C) {
|
|
88279
|
-
if (
|
|
88288
|
+
if (oi[C]) return oi[C];
|
|
88280
88289
|
if (!Ks[C]) return C;
|
|
88281
88290
|
var j = Ks[C], V;
|
|
88282
88291
|
for (V in j)
|
|
88283
88292
|
if (j.hasOwnProperty(V) && V in Vo)
|
|
88284
|
-
return
|
|
88293
|
+
return oi[C] = j[V];
|
|
88285
88294
|
return C;
|
|
88286
88295
|
}
|
|
88287
88296
|
var xi = Jr("animationend"), Hu = Jr("animationiteration"), Gu = Jr("animationstart"), Oa = Jr("transitionrun"), qu = Jr("transitionstart"), yo = Jr("transitioncancel"), Qs = Jr("transitionend"), Uo = /* @__PURE__ */ new Map(), jl = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(
|
|
@@ -88712,7 +88721,7 @@ Error generating stack: ` + te.message + `
|
|
|
88712
88721
|
return V();
|
|
88713
88722
|
});
|
|
88714
88723
|
};
|
|
88715
|
-
}, kg = t.unstable_scheduleCallback, Eg = t.unstable_NormalPriority,
|
|
88724
|
+
}, kg = t.unstable_scheduleCallback, Eg = t.unstable_NormalPriority, li = {
|
|
88716
88725
|
$$typeof: ke,
|
|
88717
88726
|
Consumer: null,
|
|
88718
88727
|
Provider: null,
|
|
@@ -88788,7 +88797,7 @@ Error generating stack: ` + te.message + `
|
|
|
88788
88797
|
}
|
|
88789
88798
|
function Zu() {
|
|
88790
88799
|
var C = _o();
|
|
88791
|
-
return C === null ? null : { parent:
|
|
88800
|
+
return C === null ? null : { parent: li._currentValue, pool: C };
|
|
88792
88801
|
}
|
|
88793
88802
|
var ou = Error(o(460)), Ju = Error(o(474)), Wd = Error(o(542)), ed = { then: function() {
|
|
88794
88803
|
} };
|
|
@@ -89434,7 +89443,7 @@ Error generating stack: ` + te.message + `
|
|
|
89434
89443
|
}
|
|
89435
89444
|
return null;
|
|
89436
89445
|
}
|
|
89437
|
-
var Fl = 0, $r = null, ga = null,
|
|
89446
|
+
var Fl = 0, $r = null, ga = null, ci = null, rd = !1, ad = !1, Tc = !1, wp = 0, Jd = 0, mu = null, Ux = 0;
|
|
89438
89447
|
function Ya() {
|
|
89439
89448
|
throw Error(o(321));
|
|
89440
89449
|
}
|
|
@@ -89455,15 +89464,15 @@ Error generating stack: ` + te.message + `
|
|
|
89455
89464
|
function Bh(C) {
|
|
89456
89465
|
et.H = Rp;
|
|
89457
89466
|
var j = ga !== null && ga.next !== null;
|
|
89458
|
-
if (Fl = 0,
|
|
89459
|
-
C === null ||
|
|
89467
|
+
if (Fl = 0, ci = ga = $r = null, rd = !1, Jd = 0, mu = null, j) throw Error(o(300));
|
|
89468
|
+
C === null || ui || (C = C.dependencies, C !== null && Ku(C) && (ui = !0));
|
|
89460
89469
|
}
|
|
89461
89470
|
function Hx(C, j, V, te) {
|
|
89462
89471
|
$r = C;
|
|
89463
89472
|
var Be = 0;
|
|
89464
89473
|
do {
|
|
89465
89474
|
if (ad && (mu = null), Jd = 0, ad = !1, 25 <= Be) throw Error(o(301));
|
|
89466
|
-
if (Be += 1,
|
|
89475
|
+
if (Be += 1, ci = ga = null, C.updateQueue != null) {
|
|
89467
89476
|
var He = C.updateQueue;
|
|
89468
89477
|
He.lastEffect = null, He.events = null, He.stores = null, He.memoCache != null && (He.memoCache.index = 0);
|
|
89469
89478
|
}
|
|
@@ -89490,7 +89499,7 @@ Error generating stack: ` + te.message + `
|
|
|
89490
89499
|
}
|
|
89491
89500
|
rd = !1;
|
|
89492
89501
|
}
|
|
89493
|
-
Fl = 0,
|
|
89502
|
+
Fl = 0, ci = ga = $r = null, ad = !1, Jd = wp = 0, mu = null;
|
|
89494
89503
|
}
|
|
89495
89504
|
function zi() {
|
|
89496
89505
|
var C = {
|
|
@@ -89500,16 +89509,16 @@ Error generating stack: ` + te.message + `
|
|
|
89500
89509
|
queue: null,
|
|
89501
89510
|
next: null
|
|
89502
89511
|
};
|
|
89503
|
-
return
|
|
89512
|
+
return ci === null ? $r.memoizedState = ci = C : ci = ci.next = C, ci;
|
|
89504
89513
|
}
|
|
89505
89514
|
function ri() {
|
|
89506
89515
|
if (ga === null) {
|
|
89507
89516
|
var C = $r.alternate;
|
|
89508
89517
|
C = C !== null ? C.memoizedState : null;
|
|
89509
89518
|
} else C = ga.next;
|
|
89510
|
-
var j =
|
|
89519
|
+
var j = ci === null ? $r.memoizedState : ci.next;
|
|
89511
89520
|
if (j !== null)
|
|
89512
|
-
|
|
89521
|
+
ci = j, ga = C;
|
|
89513
89522
|
else {
|
|
89514
89523
|
if (C === null)
|
|
89515
89524
|
throw $r.alternate === null ? Error(o(467)) : Error(o(310));
|
|
@@ -89519,16 +89528,16 @@ Error generating stack: ` + te.message + `
|
|
|
89519
89528
|
baseQueue: ga.baseQueue,
|
|
89520
89529
|
queue: ga.queue,
|
|
89521
89530
|
next: null
|
|
89522
|
-
},
|
|
89531
|
+
}, ci === null ? $r.memoizedState = ci = C : ci = ci.next = C;
|
|
89523
89532
|
}
|
|
89524
|
-
return
|
|
89533
|
+
return ci;
|
|
89525
89534
|
}
|
|
89526
89535
|
function Cp() {
|
|
89527
89536
|
return { lastEffect: null, events: null, stores: null, memoCache: null };
|
|
89528
89537
|
}
|
|
89529
89538
|
function od(C) {
|
|
89530
89539
|
var j = Jd;
|
|
89531
|
-
return Jd += 1, mu === null && (mu = []), C = Ag(mu, C, j), j = $r, (
|
|
89540
|
+
return Jd += 1, mu === null && (mu = []), C = Ag(mu, C, j), j = $r, (ci === null ? j.memoizedState : ci.next) === null && (j = j.alternate, et.H = j === null || j.memoizedState === null ? Qx : nm), C;
|
|
89532
89541
|
}
|
|
89533
89542
|
function ef(C) {
|
|
89534
89543
|
if (C !== null && typeof C == "object") {
|
|
@@ -89616,7 +89625,7 @@ Error generating stack: ` + te.message + `
|
|
|
89616
89625
|
}, an === null ? (zt = an = Tn, pt = He) : an = an.next = Tn, $r.lanes |= Vn, pl |= Vn;
|
|
89617
89626
|
kn = kn.next;
|
|
89618
89627
|
} while (kn !== null && kn !== j);
|
|
89619
|
-
if (an === null ? pt = He : an.next = zt, !Kn(He, C.memoizedState) && (
|
|
89628
|
+
if (an === null ? pt = He : an.next = zt, !Kn(He, C.memoizedState) && (ui = !0, On && (V = yi, V !== null)))
|
|
89620
89629
|
throw V;
|
|
89621
89630
|
C.memoizedState = He, C.baseState = pt, C.baseQueue = an, te.lastRenderedState = He;
|
|
89622
89631
|
}
|
|
@@ -89633,7 +89642,7 @@ Error generating stack: ` + te.message + `
|
|
|
89633
89642
|
do
|
|
89634
89643
|
He = C(He, pt.action), pt = pt.next;
|
|
89635
89644
|
while (pt !== Be);
|
|
89636
|
-
Kn(He, j.memoizedState) || (
|
|
89645
|
+
Kn(He, j.memoizedState) || (ui = !0), j.memoizedState = He, j.baseQueue === null && (j.baseState = He), V.lastRenderedState = He;
|
|
89637
89646
|
}
|
|
89638
89647
|
return [He, te];
|
|
89639
89648
|
}
|
|
@@ -89647,9 +89656,9 @@ Error generating stack: ` + te.message + `
|
|
|
89647
89656
|
(ga || Be).memoizedState,
|
|
89648
89657
|
V
|
|
89649
89658
|
);
|
|
89650
|
-
if (pt && (Be.memoizedState = V,
|
|
89659
|
+
if (pt && (Be.memoizedState = V, ui = !0), Be = Be.queue, Yh(Gh.bind(null, te, Be, C), [
|
|
89651
89660
|
C
|
|
89652
|
-
]), Be.getSnapshot !== j || pt ||
|
|
89661
|
+
]), Be.getSnapshot !== j || pt || ci !== null && ci.memoizedState.tag & 1) {
|
|
89653
89662
|
if (te.flags |= 2048, cd(
|
|
89654
89663
|
9,
|
|
89655
89664
|
{ destroy: void 0 },
|
|
@@ -89988,7 +89997,7 @@ Error generating stack: ` + te.message + `
|
|
|
89988
89997
|
return V === void 0 || (Fl & 1073741824) !== 0 && (Hr & 261930) === 0 ? C.memoizedState = j : (C.memoizedState = V, C = l1(), $r.lanes |= C, pl |= C, V);
|
|
89989
89998
|
}
|
|
89990
89999
|
function Vl(C, j, V, te) {
|
|
89991
|
-
return Kn(V, j) ? V : $i.current !== null ? (C = Np(C, V, te), Kn(C, j) || (
|
|
90000
|
+
return Kn(V, j) ? V : $i.current !== null ? (C = Np(C, V, te), Kn(C, j) || (ui = !0), C) : (Fl & 42) === 0 || (Fl & 1073741824) !== 0 && (Hr & 261930) === 0 ? (ui = !0, C.memoizedState = V) : (C = l1(), $r.lanes |= C, pl |= C, j);
|
|
89992
90001
|
}
|
|
89993
90002
|
function Jh(C, j, V, te, Be) {
|
|
89994
90003
|
var He = st.p;
|
|
@@ -90608,7 +90617,7 @@ Error generating stack: ` + te.message + `
|
|
|
90608
90617
|
} while (V !== null);
|
|
90609
90618
|
return !1;
|
|
90610
90619
|
}
|
|
90611
|
-
var im = Error(o(461)),
|
|
90620
|
+
var im = Error(o(461)), ui = !1;
|
|
90612
90621
|
function Pa(C, j, V, te) {
|
|
90613
90622
|
j.child = C === null ? $g(j, null, V, te) : du(
|
|
90614
90623
|
j,
|
|
@@ -90632,7 +90641,7 @@ Error generating stack: ` + te.message + `
|
|
|
90632
90641
|
pt,
|
|
90633
90642
|
He,
|
|
90634
90643
|
Be
|
|
90635
|
-
), zt = zh(), C !== null && !
|
|
90644
|
+
), zt = zh(), C !== null && !ui ? (sd(C, j, Be), To(C, j, Be)) : (Ir && zt && ru(j), j.flags |= 1, Pa(C, j, te, Be), j.child);
|
|
90636
90645
|
}
|
|
90637
90646
|
function t0(C, j, V, te, Be) {
|
|
90638
90647
|
if (C === null) {
|
|
@@ -90663,8 +90672,8 @@ Error generating stack: ` + te.message + `
|
|
|
90663
90672
|
if (C !== null) {
|
|
90664
90673
|
var He = C.memoizedProps;
|
|
90665
90674
|
if (or(He, te) && C.ref === j.ref)
|
|
90666
|
-
if (
|
|
90667
|
-
(C.flags & 131072) !== 0 && (
|
|
90675
|
+
if (ui = !1, j.pendingProps = te = He, lm(C, Be))
|
|
90676
|
+
(C.flags & 131072) !== 0 && (ui = !0);
|
|
90668
90677
|
else
|
|
90669
90678
|
return j.lanes = C.lanes, To(C, j, Be);
|
|
90670
90679
|
}
|
|
@@ -90725,7 +90734,7 @@ Error generating stack: ` + te.message + `
|
|
|
90725
90734
|
}
|
|
90726
90735
|
function Os(C, j, V, te, Be) {
|
|
90727
90736
|
var He = _o();
|
|
90728
|
-
return He = He === null ? null : { parent:
|
|
90737
|
+
return He = He === null ? null : { parent: li._currentValue, pool: He }, j.memoizedState = {
|
|
90729
90738
|
baseLanes: V,
|
|
90730
90739
|
cachePool: He
|
|
90731
90740
|
}, C !== null && Xd(j, null), bp(), Fh(j), C !== null && Bi(C, j, te, !0), j.childLanes = Be, null;
|
|
@@ -90771,7 +90780,7 @@ Error generating stack: ` + te.message + `
|
|
|
90771
90780
|
else if (j.memoizedState !== null)
|
|
90772
90781
|
j.child = C.child, j.flags |= 128, j = null;
|
|
90773
90782
|
else throw Error(o(558));
|
|
90774
|
-
else if (
|
|
90783
|
+
else if (ui || Bi(C, j, V, !1), Be = (V & C.childLanes) !== 0, ui || Be) {
|
|
90775
90784
|
if (te = _a, te !== null && (pt = jt(te, V), pt !== 0 && pt !== He.retryLane))
|
|
90776
90785
|
throw He.retryLane = pt, al(C, pt), zs(te, C, pt), im;
|
|
90777
90786
|
Sm(), j = Is(
|
|
@@ -90806,7 +90815,7 @@ Error generating stack: ` + te.message + `
|
|
|
90806
90815
|
te,
|
|
90807
90816
|
void 0,
|
|
90808
90817
|
Be
|
|
90809
|
-
), te = zh(), C !== null && !
|
|
90818
|
+
), te = zh(), C !== null && !ui ? (sd(C, j, Be), To(C, j, Be)) : (Ir && te && ru(j), j.flags |= 1, Pa(C, j, V, Be), j.child);
|
|
90810
90819
|
}
|
|
90811
90820
|
function yu(C, j, V, te, Be, He) {
|
|
90812
90821
|
return Cr(j), j.updateQueue = null, V = Hx(
|
|
@@ -90814,7 +90823,7 @@ Error generating stack: ` + te.message + `
|
|
|
90814
90823
|
te,
|
|
90815
90824
|
V,
|
|
90816
90825
|
Be
|
|
90817
|
-
), Bh(C), te = zh(), C !== null && !
|
|
90826
|
+
), Bh(C), te = zh(), C !== null && !ui ? (sd(C, j, He), To(C, j, He)) : (Ir && te && ru(j), j.flags |= 1, Pa(C, j, V, He), j.child);
|
|
90818
90827
|
}
|
|
90819
90828
|
function r0(C, j, V, te, Be) {
|
|
90820
90829
|
if (Cr(j), j.stateNode === null) {
|
|
@@ -90973,7 +90982,7 @@ Error generating stack: ` + te.message + `
|
|
|
90973
90982
|
j,
|
|
90974
90983
|
V
|
|
90975
90984
|
);
|
|
90976
|
-
} else if (
|
|
90985
|
+
} else if (ui || Bi(C, j, V, !1), pt = (V & C.childLanes) !== 0, ui || pt) {
|
|
90977
90986
|
if (pt = _a, pt !== null && (te = jt(pt, V), te !== 0 && te !== an.retryLane))
|
|
90978
90987
|
throw an.retryLane = te, al(C, te), zs(pt, C, te), im;
|
|
90979
90988
|
Yo(zt) || Sm(), j = dd(
|
|
@@ -91001,7 +91010,7 @@ Error generating stack: ` + te.message + `
|
|
|
91001
91010
|
Be,
|
|
91002
91011
|
V,
|
|
91003
91012
|
null
|
|
91004
|
-
), zt.flags |= 2), zt.return = j, te.return = j, te.sibling = zt, j.child = te, vu(null, te), te = j.child, zt = C.child.memoizedState, zt === null ? zt = Lp(V) : (Be = zt.cachePool, Be !== null ? (an =
|
|
91013
|
+
), zt.flags |= 2), zt.return = j, te.return = j, te.sibling = zt, j.child = te, vu(null, te), te = j.child, zt = C.child.memoizedState, zt === null ? zt = Lp(V) : (Be = zt.cachePool, Be !== null ? (an = li._currentValue, Be = Be.parent !== an ? { parent: an, pool: an } : Be) : Be = Zu(), zt = {
|
|
91005
91014
|
baseLanes: zt.baseLanes | V,
|
|
91006
91015
|
cachePool: Be
|
|
91007
91016
|
}), te.memoizedState = zt, te.childLanes = Eo(
|
|
@@ -91139,7 +91148,7 @@ Error generating stack: ` + te.message + `
|
|
|
91139
91148
|
function cm(C, j, V) {
|
|
91140
91149
|
switch (j.tag) {
|
|
91141
91150
|
case 3:
|
|
91142
|
-
yt(j, j.stateNode.containerInfo), Ms(j,
|
|
91151
|
+
yt(j, j.stateNode.containerInfo), Ms(j, li, C.memoizedState.cache), iu();
|
|
91143
91152
|
break;
|
|
91144
91153
|
case 27:
|
|
91145
91154
|
case 5:
|
|
@@ -91195,25 +91204,25 @@ Error generating stack: ` + te.message + `
|
|
|
91195
91204
|
j.pendingProps
|
|
91196
91205
|
);
|
|
91197
91206
|
case 24:
|
|
91198
|
-
Ms(j,
|
|
91207
|
+
Ms(j, li, C.memoizedState.cache);
|
|
91199
91208
|
}
|
|
91200
91209
|
return To(C, j, V);
|
|
91201
91210
|
}
|
|
91202
91211
|
function s0(C, j, V) {
|
|
91203
91212
|
if (C !== null)
|
|
91204
91213
|
if (C.memoizedProps !== j.pendingProps)
|
|
91205
|
-
|
|
91214
|
+
ui = !0;
|
|
91206
91215
|
else {
|
|
91207
91216
|
if (!lm(C, V) && (j.flags & 128) === 0)
|
|
91208
|
-
return
|
|
91217
|
+
return ui = !1, cm(
|
|
91209
91218
|
C,
|
|
91210
91219
|
j,
|
|
91211
91220
|
V
|
|
91212
91221
|
);
|
|
91213
|
-
|
|
91222
|
+
ui = (C.flags & 131072) !== 0;
|
|
91214
91223
|
}
|
|
91215
91224
|
else
|
|
91216
|
-
|
|
91225
|
+
ui = !1, Ir && (j.flags & 1048576) !== 0 && lp(j, oa, j.index);
|
|
91217
91226
|
switch (j.lanes = 0, j.tag) {
|
|
91218
91227
|
case 16:
|
|
91219
91228
|
e: {
|
|
@@ -91288,9 +91297,9 @@ Error generating stack: ` + te.message + `
|
|
|
91288
91297
|
var He = j.memoizedState;
|
|
91289
91298
|
Be = He.element, Oh(C, j), Il(j, te, null, V);
|
|
91290
91299
|
var pt = j.memoizedState;
|
|
91291
|
-
if (te = pt.cache, Ms(j,
|
|
91300
|
+
if (te = pt.cache, Ms(j, li, te), te !== He.cache && Ol(
|
|
91292
91301
|
j,
|
|
91293
|
-
[
|
|
91302
|
+
[li],
|
|
91294
91303
|
V,
|
|
91295
91304
|
!0
|
|
91296
91305
|
), pu(), te = pt.element, He.isDehydrated)
|
|
@@ -91457,9 +91466,9 @@ Error generating stack: ` + te.message + `
|
|
|
91457
91466
|
j.pendingProps
|
|
91458
91467
|
);
|
|
91459
91468
|
case 24:
|
|
91460
|
-
return Cr(j), te = Hn(
|
|
91469
|
+
return Cr(j), te = Hn(li), C === null ? (Be = _o(), Be === null && (Be = _a, He = fp(), Be.pooledCache = He, He.refCount++, He !== null && (Be.pooledCacheLanes |= V), Be = He), j.memoizedState = { parent: te, cache: Be }, yp(j), Ms(j, li, Be)) : ((C.lanes & V) !== 0 && (Oh(C, j), Il(j, null, null, V), pu()), Be = C.memoizedState, He = j.memoizedState, Be.parent !== te ? (Be = { parent: te, cache: te }, j.memoizedState = Be, j.lanes === 0 && (j.memoizedState = j.updateQueue.baseState = Be), Ms(j, li, te)) : (te = He.cache, Ms(j, li, te), te !== Be.cache && Ol(
|
|
91461
91470
|
j,
|
|
91462
|
-
[
|
|
91471
|
+
[li],
|
|
91463
91472
|
V,
|
|
91464
91473
|
!0
|
|
91465
91474
|
))), Pa(
|
|
@@ -91538,7 +91547,7 @@ Error generating stack: ` + te.message + `
|
|
|
91538
91547
|
case 1:
|
|
91539
91548
|
return wr(j), null;
|
|
91540
91549
|
case 3:
|
|
91541
|
-
return V = j.stateNode, te = null, C !== null && (te = C.memoizedState.cache), j.memoizedState.cache !== te && (j.flags |= 2048), sl(
|
|
91550
|
+
return V = j.stateNode, te = null, C !== null && (te = C.memoizedState.cache), j.memoizedState.cache !== te && (j.flags |= 2048), sl(li), Et(), V.pendingContext && (V.context = V.pendingContext, V.pendingContext = null), (C === null || C.child === null) && (Ll(j) ? Hl(j) : C === null || C.memoizedState.isDehydrated && (j.flags & 256) === 0 || (j.flags |= 1024, Cg())), wr(j), null;
|
|
91542
91551
|
case 26:
|
|
91543
91552
|
var Be = j.type, He = j.memoizedState;
|
|
91544
91553
|
return C === null ? (Hl(j), He !== null ? (wr(j), l0(j, He)) : (wr(j), o0(
|
|
@@ -91756,7 +91765,7 @@ Error generating stack: ` + te.message + `
|
|
|
91756
91765
|
case 23:
|
|
91757
91766
|
return Ls(j), Kd(), te = j.memoizedState !== null, C !== null ? C.memoizedState !== null !== te && (j.flags |= 8192) : te && (j.flags |= 8192), te ? (V & 536870912) !== 0 && (j.flags & 128) === 0 && (wr(j), j.subtreeFlags & 6 && (j.flags |= 8192)) : wr(j), V = j.updateQueue, V !== null && ws(j, V.retryQueue), V = null, C !== null && C.memoizedState !== null && C.memoizedState.cachePool !== null && (V = C.memoizedState.cachePool.pool), te = null, j.memoizedState !== null && j.memoizedState.cachePool !== null && (te = j.memoizedState.cachePool.pool), te !== V && (j.flags |= 2048), C !== null && oe(wo), null;
|
|
91758
91767
|
case 24:
|
|
91759
|
-
return V = null, C !== null && (V = C.memoizedState.cache), j.memoizedState.cache !== V && (j.flags |= 2048), sl(
|
|
91768
|
+
return V = null, C !== null && (V = C.memoizedState.cache), j.memoizedState.cache !== V && (j.flags |= 2048), sl(li), wr(j), null;
|
|
91760
91769
|
case 25:
|
|
91761
91770
|
return null;
|
|
91762
91771
|
case 30:
|
|
@@ -91769,7 +91778,7 @@ Error generating stack: ` + te.message + `
|
|
|
91769
91778
|
case 1:
|
|
91770
91779
|
return C = j.flags, C & 65536 ? (j.flags = C & -65537 | 128, j) : null;
|
|
91771
91780
|
case 3:
|
|
91772
|
-
return sl(
|
|
91781
|
+
return sl(li), Et(), C = j.flags, (C & 65536) !== 0 && (C & 128) === 0 ? (j.flags = C & -65537 | 128, j) : null;
|
|
91773
91782
|
case 26:
|
|
91774
91783
|
case 27:
|
|
91775
91784
|
case 5:
|
|
@@ -91798,7 +91807,7 @@ Error generating stack: ` + te.message + `
|
|
|
91798
91807
|
case 23:
|
|
91799
91808
|
return Ls(j), Kd(), C !== null && oe(wo), C = j.flags, C & 65536 ? (j.flags = C & -65537 | 128, j) : null;
|
|
91800
91809
|
case 24:
|
|
91801
|
-
return sl(
|
|
91810
|
+
return sl(li), null;
|
|
91802
91811
|
case 25:
|
|
91803
91812
|
return null;
|
|
91804
91813
|
default:
|
|
@@ -91808,7 +91817,7 @@ Error generating stack: ` + te.message + `
|
|
|
91808
91817
|
function a1(C, j) {
|
|
91809
91818
|
switch (Yu(j), j.tag) {
|
|
91810
91819
|
case 3:
|
|
91811
|
-
sl(
|
|
91820
|
+
sl(li), Et();
|
|
91812
91821
|
break;
|
|
91813
91822
|
case 26:
|
|
91814
91823
|
case 27:
|
|
@@ -91835,7 +91844,7 @@ Error generating stack: ` + te.message + `
|
|
|
91835
91844
|
Ls(j), Kd(), C !== null && oe(wo);
|
|
91836
91845
|
break;
|
|
91837
91846
|
case 24:
|
|
91838
|
-
sl(
|
|
91847
|
+
sl(li);
|
|
91839
91848
|
}
|
|
91840
91849
|
}
|
|
91841
91850
|
function Xo(C, j) {
|
|
@@ -92585,7 +92594,7 @@ Error generating stack: ` + te.message + `
|
|
|
92585
92594
|
an = j;
|
|
92586
92595
|
try {
|
|
92587
92596
|
var Mn = an.stateNode;
|
|
92588
|
-
Be ?
|
|
92597
|
+
Be ? di(Mn, !0) : di(an.stateNode, !1);
|
|
92589
92598
|
} catch (ar) {
|
|
92590
92599
|
va(an, an.return, ar);
|
|
92591
92600
|
}
|
|
@@ -93172,11 +93181,11 @@ Error generating stack: ` + te.message + `
|
|
|
93172
93181
|
}
|
|
93173
93182
|
var o1 = {
|
|
93174
93183
|
getCacheForType: function(C) {
|
|
93175
|
-
var j = Hn(
|
|
93184
|
+
var j = Hn(li), V = j.data.get(C);
|
|
93176
93185
|
return V === void 0 && (V = C(), j.data.set(C, V)), V;
|
|
93177
93186
|
},
|
|
93178
93187
|
cacheSignal: function() {
|
|
93179
|
-
return Hn(
|
|
93188
|
+
return Hn(li).controller.signal;
|
|
93180
93189
|
}
|
|
93181
93190
|
}, v0 = typeof WeakMap == "function" ? WeakMap : Map, la = 0, _a = null, Wr = null, Hr = 0, xa = 0, yr = null, Wl = !1, _u = !1, vm = !1, fl = 0, Ra = 0, pl = 0, hd = 0, ym = 0, Bs = 0, Ka = 0, Vp = null, Qa = null, bm = !1, hl = 0, y0 = 0, fa = 1 / 0, mf = null, za = null, Ri = 0, jc = null, Su = null, Yl = 0, io = 0, wm = null, _m = null, gf = 0, Up = null;
|
|
93182
93191
|
function so() {
|
|
@@ -95353,7 +95362,7 @@ Error generating stack: ` + te.message + `
|
|
|
95353
95362
|
} while (V);
|
|
95354
95363
|
Of(j);
|
|
95355
95364
|
}
|
|
95356
|
-
function
|
|
95365
|
+
function di(C, j) {
|
|
95357
95366
|
var V = C;
|
|
95358
95367
|
C = 0;
|
|
95359
95368
|
do {
|
|
@@ -97867,7 +97876,7 @@ Check the render method of \`` + d + "`." : "";
|
|
|
97867
97876
|
return N;
|
|
97868
97877
|
});
|
|
97869
97878
|
}
|
|
97870
|
-
function
|
|
97879
|
+
function si(d, v) {
|
|
97871
97880
|
switch (typeof d) {
|
|
97872
97881
|
case "string":
|
|
97873
97882
|
return d = JSON.stringify(d), d.length > v ? 5 > v ? '"..."' : d.slice(0, v - 4) + '..."' : d;
|
|
@@ -97882,7 +97891,7 @@ Check the render method of \`` + d + "`." : "";
|
|
|
97882
97891
|
for (var q in d)
|
|
97883
97892
|
if (d.hasOwnProperty(q)) {
|
|
97884
97893
|
var ne = JSON.stringify(q);
|
|
97885
|
-
if (ne !== '"' + q + '"' && (q = ne), v -= q.length - 2, ne =
|
|
97894
|
+
if (ne !== '"' + q + '"' && (q = ne), v -= q.length - 2, ne = si(
|
|
97886
97895
|
d[q],
|
|
97887
97896
|
15 > v ? v : 15
|
|
97888
97897
|
), v -= ne.length, 0 > v) {
|
|
@@ -97901,7 +97910,7 @@ Check the render method of \`` + d + "`." : "";
|
|
|
97901
97910
|
}
|
|
97902
97911
|
}
|
|
97903
97912
|
function Tr(d, v) {
|
|
97904
|
-
return typeof d != "string" || He.test(d) ? "{" +
|
|
97913
|
+
return typeof d != "string" || He.test(d) ? "{" + si(d, v - 2) + "}" : d.length > v - 2 ? 5 > v ? '"..."' : '"' + d.slice(0, v - 5) + '..."' : '"' + d + '"';
|
|
97905
97914
|
}
|
|
97906
97915
|
function Ea(d, v, N) {
|
|
97907
97916
|
var q = 120 - N.length - d.length, ne = [], $e;
|
|
@@ -97926,14 +97935,14 @@ Check the render method of \`` + d + "`." : "";
|
|
|
97926
97935
|
for ($e in d)
|
|
97927
97936
|
if (d.hasOwnProperty($e)) {
|
|
97928
97937
|
delete ne[$e];
|
|
97929
|
-
var Xe = 120 - 2 * N - $e.length - 2, nt =
|
|
97930
|
-
v.hasOwnProperty($e) ? (Xe =
|
|
97938
|
+
var Xe = 120 - 2 * N - $e.length - 2, nt = si(d[$e], Xe);
|
|
97939
|
+
v.hasOwnProperty($e) ? (Xe = si(v[$e], Xe), q += vr(N) + $e + ": " + nt + `
|
|
97931
97940
|
`, q += Rr(N) + $e + ": " + Xe + `
|
|
97932
97941
|
`) : q += vr(N) + $e + ": " + nt + `
|
|
97933
97942
|
`;
|
|
97934
97943
|
}
|
|
97935
97944
|
for (var Ct in ne)
|
|
97936
|
-
ne.hasOwnProperty(Ct) && (d =
|
|
97945
|
+
ne.hasOwnProperty(Ct) && (d = si(
|
|
97937
97946
|
ne[Ct],
|
|
97938
97947
|
120 - 2 * N - Ct.length - 2
|
|
97939
97948
|
), q += Rr(N) + Ct + ": " + d + `
|
|
@@ -100044,7 +100053,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
100044
100053
|
q
|
|
100045
100054
|
), v.flags |= 262144;
|
|
100046
100055
|
}
|
|
100047
|
-
function
|
|
100056
|
+
function oi(d) {
|
|
100048
100057
|
for (d = d.firstContext; d !== null; ) {
|
|
100049
100058
|
if (!Mo(
|
|
100050
100059
|
d.context._currentValue,
|
|
@@ -100101,7 +100110,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
100101
100110
|
});
|
|
100102
100111
|
}
|
|
100103
100112
|
function yo(d, v, N) {
|
|
100104
|
-
(d & 127) !== 0 ? 0 > ju && (ju = qi(), ix = ev(v), gy = v, N != null && (xy = Ue(N)), (ia & (fs | _l)) !== Es && (
|
|
100113
|
+
(d & 127) !== 0 ? 0 > ju && (ju = qi(), ix = ev(v), gy = v, N != null && (xy = Ue(N)), (ia & (fs | _l)) !== Es && (fi = !0, Hf = ax), d = vf(), v = Kl(), d !== ig || v !== sx ? ig = -1.1 : v !== null && (Hf = ax), ph = d, sx = v) : (d & 4194048) !== 0 && 0 > lc && (lc = qi(), ox = ev(v), $b = v, N != null && (Rb = Ue(N)), 0 > jd) && (d = vf(), v = Kl(), (d !== qf || v !== hh) && (qf = -1.1), Gf = d, hh = v);
|
|
100105
100114
|
}
|
|
100106
100115
|
function Qs(d) {
|
|
100107
100116
|
if (0 > ju) {
|
|
@@ -100145,8 +100154,8 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
100145
100154
|
return Za = null, d;
|
|
100146
100155
|
}
|
|
100147
100156
|
function Js() {
|
|
100148
|
-
var d =
|
|
100149
|
-
return
|
|
100157
|
+
var d = fi;
|
|
100158
|
+
return fi = !1, d;
|
|
100150
100159
|
}
|
|
100151
100160
|
function al(d) {
|
|
100152
100161
|
Do = qi(), 0 > d.actualStartTime && (d.actualStartTime = Do);
|
|
@@ -101281,9 +101290,9 @@ Incoming: %s`,
|
|
|
101281
101290
|
Wn(!1);
|
|
101282
101291
|
}
|
|
101283
101292
|
}
|
|
101284
|
-
return
|
|
101293
|
+
return li(d, v), Xe;
|
|
101285
101294
|
}
|
|
101286
|
-
function
|
|
101295
|
+
function li(d, v) {
|
|
101287
101296
|
v._debugHookTypes = dc, v.dependencies === null ? Dd !== null && (v.dependencies = {
|
|
101288
101297
|
lanes: 0,
|
|
101289
101298
|
firstContext: null,
|
|
@@ -101296,7 +101305,7 @@ Incoming: %s`,
|
|
|
101296
101305
|
throw Error(
|
|
101297
101306
|
"Rendered fewer hooks than expected. This may be caused by an accidental early return statement."
|
|
101298
101307
|
);
|
|
101299
|
-
d === null || Wi || (d = d.dependencies, d !== null &&
|
|
101308
|
+
d === null || Wi || (d = d.dependencies, d !== null && oi(d) && (Wi = !0)), vx ? (vx = !1, d = !0) : d = !1, d && (v = Ue(v) || "Unknown", iw.has(v) || Ty.has(v) || (iw.add(v), console.error(
|
|
101300
101309
|
"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary."
|
|
101301
101310
|
)));
|
|
101302
101311
|
}
|
|
@@ -102010,7 +102019,7 @@ Incoming: %s`,
|
|
|
102010
102019
|
}
|
|
102011
102020
|
function Fl(d, v) {
|
|
102012
102021
|
var N = ma();
|
|
102013
|
-
return
|
|
102022
|
+
return ci(
|
|
102014
102023
|
N,
|
|
102015
102024
|
ja.memoizedState,
|
|
102016
102025
|
d,
|
|
@@ -102019,7 +102028,7 @@ Incoming: %s`,
|
|
|
102019
102028
|
}
|
|
102020
102029
|
function $r(d, v) {
|
|
102021
102030
|
var N = ma();
|
|
102022
|
-
return ja === null ? ga(N, d, v) :
|
|
102031
|
+
return ja === null ? ga(N, d, v) : ci(
|
|
102023
102032
|
N,
|
|
102024
102033
|
ja.memoizedState,
|
|
102025
102034
|
d,
|
|
@@ -102029,7 +102038,7 @@ Incoming: %s`,
|
|
|
102029
102038
|
function ga(d, v, N) {
|
|
102030
102039
|
return N === void 0 || (Md & 1073741824) !== 0 && (zr & 261930) === 0 ? d.memoizedState = v : (d.memoizedState = N, d = of(), kr.lanes |= d, Kf |= d, N);
|
|
102031
102040
|
}
|
|
102032
|
-
function
|
|
102041
|
+
function ci(d, v, N, q) {
|
|
102033
102042
|
return Mo(N, v) ? N : cg.current !== null ? (d = ga(d, N, q), Mo(d, v) || (Wi = !0), d) : (Md & 42) === 0 || (Md & 1073741824) !== 0 && (zr & 261930) === 0 ? (Wi = !0, d.memoizedState = N) : (d = of(), kr.lanes |= d, Kf |= d, v);
|
|
102034
102043
|
}
|
|
102035
102044
|
function rd() {
|
|
@@ -102807,7 +102816,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
102807
102816
|
q,
|
|
102808
102817
|
N,
|
|
102809
102818
|
ne
|
|
102810
|
-
),
|
|
102819
|
+
), li(d, v), q = Qu(), d !== null && !Wi ? (hp(d, v, $e), ll(d, v, $e)) : (Yr && q && Tt(v), v.flags |= 1, Vi(d, v, N, $e), v.child);
|
|
102811
102820
|
}
|
|
102812
102821
|
function cd(d, v, N, q, ne) {
|
|
102813
102822
|
switch (f(v)) {
|
|
@@ -102990,7 +102999,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
|
|
|
102990
102999
|
nt
|
|
102991
103000
|
), Xf = !1, tn = v.memoizedState, $e.state = tn, Ll(v, q, $e, ne), Gd();
|
|
102992
103001
|
var An = v.memoizedState;
|
|
102993
|
-
Xe !== Ot || tn !== An || Xf || d !== null && d.dependencies !== null &&
|
|
103002
|
+
Xe !== Ot || tn !== An || Xf || d !== null && d.dependencies !== null && oi(d.dependencies) ? (typeof fn == "function" && (ef(
|
|
102994
103003
|
v,
|
|
102995
103004
|
N,
|
|
102996
103005
|
fn,
|
|
@@ -103003,7 +103012,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
|
|
|
103003
103012
|
tn,
|
|
103004
103013
|
An,
|
|
103005
103014
|
nt
|
|
103006
|
-
) || d !== null && d.dependencies !== null &&
|
|
103015
|
+
) || d !== null && d.dependencies !== null && oi(d.dependencies)) ? (hn || typeof $e.UNSAFE_componentWillUpdate != "function" && typeof $e.componentWillUpdate != "function" || (typeof $e.componentWillUpdate == "function" && $e.componentWillUpdate(q, An, nt), typeof $e.UNSAFE_componentWillUpdate == "function" && $e.UNSAFE_componentWillUpdate(
|
|
103007
103016
|
q,
|
|
103008
103017
|
An,
|
|
103009
103018
|
nt
|
|
@@ -103419,7 +103428,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
|
|
|
103419
103428
|
return v.child;
|
|
103420
103429
|
}
|
|
103421
103430
|
function Zh(d, v) {
|
|
103422
|
-
return (d.lanes & v) !== 0 ? !0 : (d = d.dependencies, !!(d !== null &&
|
|
103431
|
+
return (d.lanes & v) !== 0 ? !0 : (d = d.dependencies, !!(d !== null && oi(d)));
|
|
103423
103432
|
}
|
|
103424
103433
|
function Xx(d, v, N) {
|
|
103425
103434
|
switch (v.tag) {
|
|
@@ -104957,7 +104966,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
104957
104966
|
default:
|
|
104958
104967
|
ko(d, N);
|
|
104959
104968
|
}
|
|
104960
|
-
(N.mode & Fr) !== br && 0 <= hr && 0 <= xr && ((
|
|
104969
|
+
(N.mode & Fr) !== br && 0 <= hr && 0 <= xr && ((fi || 0.05 < ai) && Fi(
|
|
104961
104970
|
N,
|
|
104962
104971
|
hr,
|
|
104963
104972
|
xr,
|
|
@@ -104971,11 +104980,11 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
104971
104980
|
hr,
|
|
104972
104981
|
xr,
|
|
104973
104982
|
"Mount"
|
|
104974
|
-
))), Ia(q), Rs(ne), Za = $e,
|
|
104983
|
+
))), Ia(q), Rs(ne), Za = $e, fi = Xe;
|
|
104975
104984
|
}
|
|
104976
|
-
function
|
|
104985
|
+
function ui(d) {
|
|
104977
104986
|
var v = d.alternate;
|
|
104978
|
-
v !== null && (d.alternate = null,
|
|
104987
|
+
v !== null && (d.alternate = null, ui(v)), d.child = null, d.deletions = null, d.sibling = null, d.tag === 5 && (v = d.stateNode, v !== null && ut(v)), d.stateNode = null, d._debugOwner = null, d.return = null, d.dependencies = null, d.memoizedProps = null, d.memoizedState = null, d.pendingProps = null, d.stateNode = null, d.updateQueue = null;
|
|
104979
104988
|
}
|
|
104980
104989
|
function Pa(d, v, N) {
|
|
104981
104990
|
for (N = N.child; N !== null; )
|
|
@@ -105119,13 +105128,13 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
105119
105128
|
N
|
|
105120
105129
|
);
|
|
105121
105130
|
}
|
|
105122
|
-
(N.mode & Fr) !== br && 0 <= hr && 0 <= xr && (
|
|
105131
|
+
(N.mode & Fr) !== br && 0 <= hr && 0 <= xr && (fi || 0.05 < ai) && Fi(
|
|
105123
105132
|
N,
|
|
105124
105133
|
hr,
|
|
105125
105134
|
xr,
|
|
105126
105135
|
ai,
|
|
105127
105136
|
Za
|
|
105128
|
-
), Ia(q), Rs(ne), Za = $e,
|
|
105137
|
+
), Ia(q), Rs(ne), Za = $e, fi = Xe;
|
|
105129
105138
|
}
|
|
105130
105139
|
function t0(d, v) {
|
|
105131
105140
|
if (v.memoizedState === null && (d = v.alternate, d !== null && (d = d.memoizedState, d !== null))) {
|
|
@@ -105504,7 +105513,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
105504
105513
|
default:
|
|
105505
105514
|
Os(v, d), Is(d);
|
|
105506
105515
|
}
|
|
105507
|
-
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && ((
|
|
105516
|
+
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && ((fi || 0.05 < ai) && Fi(
|
|
105508
105517
|
d,
|
|
105509
105518
|
hr,
|
|
105510
105519
|
xr,
|
|
@@ -105518,7 +105527,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
105518
105527
|
hr,
|
|
105519
105528
|
xr,
|
|
105520
105529
|
"Mount"
|
|
105521
|
-
))), Ia(N), Rs(q), Za = ne,
|
|
105530
|
+
))), Ia(N), Rs(q), Za = ne, fi = $e;
|
|
105522
105531
|
}
|
|
105523
105532
|
function Is(d) {
|
|
105524
105533
|
var v = d.flags;
|
|
@@ -105585,13 +105594,13 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
105585
105594
|
default:
|
|
105586
105595
|
yu(d);
|
|
105587
105596
|
}
|
|
105588
|
-
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && (
|
|
105597
|
+
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && (fi || 0.05 < ai) && Fi(
|
|
105589
105598
|
d,
|
|
105590
105599
|
hr,
|
|
105591
105600
|
xr,
|
|
105592
105601
|
ai,
|
|
105593
105602
|
Za
|
|
105594
|
-
), Ia(v), Rs(N), Za = q,
|
|
105603
|
+
), Ia(v), Rs(N), Za = q, fi = ne;
|
|
105595
105604
|
}
|
|
105596
105605
|
function yu(d) {
|
|
105597
105606
|
for (d = d.child; d !== null; )
|
|
@@ -105700,13 +105709,13 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
105700
105709
|
q
|
|
105701
105710
|
);
|
|
105702
105711
|
}
|
|
105703
|
-
(N.mode & Fr) !== br && 0 <= hr && 0 <= xr && (
|
|
105712
|
+
(N.mode & Fr) !== br && 0 <= hr && 0 <= xr && (fi || 0.05 < ai) && Fi(
|
|
105704
105713
|
N,
|
|
105705
105714
|
hr,
|
|
105706
105715
|
xr,
|
|
105707
105716
|
ai,
|
|
105708
105717
|
Za
|
|
105709
|
-
), Ia(ne), Rs($e), Za = Xe,
|
|
105718
|
+
), Ia(ne), Rs($e), Za = Xe, fi = nt;
|
|
105710
105719
|
}
|
|
105711
105720
|
function cl(d, v, N) {
|
|
105712
105721
|
for (N = N && (v.subtreeFlags & 8772) !== 0, v = v.child; v !== null; )
|
|
@@ -105907,7 +105916,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
105907
105916
|
N,
|
|
105908
105917
|
ne,
|
|
105909
105918
|
"Mount"
|
|
105910
|
-
)), 0 <= hr && 0 <= xr && ((
|
|
105919
|
+
)), 0 <= hr && 0 <= xr && ((fi || 0.05 < ai) && Fi(
|
|
105911
105920
|
v,
|
|
105912
105921
|
hr,
|
|
105913
105922
|
xr,
|
|
@@ -105918,7 +105927,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
105918
105927
|
hr,
|
|
105919
105928
|
xr,
|
|
105920
105929
|
"Mount"
|
|
105921
|
-
))), Ia($e), Rs(Xe), Za = nt,
|
|
105930
|
+
))), Ia($e), Rs(Xe), Za = nt, fi = Ct, Ff = Ot;
|
|
105922
105931
|
}
|
|
105923
105932
|
function bu(d, v, N, q, ne, $e) {
|
|
105924
105933
|
for (ne = ne && ((v.subtreeFlags & 10256) !== 0 || v.actualDuration !== 0 && (v.alternate === null || v.alternate.child !== v.child)), v = v.child; v !== null; ) {
|
|
@@ -106005,13 +106014,13 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
106005
106014
|
$e
|
|
106006
106015
|
);
|
|
106007
106016
|
}
|
|
106008
|
-
(v.mode & Fr) !== br && 0 <= hr && 0 <= xr && (
|
|
106017
|
+
(v.mode & Fr) !== br && 0 <= hr && 0 <= xr && (fi || 0.05 < ai) && Fi(
|
|
106009
106018
|
v,
|
|
106010
106019
|
hr,
|
|
106011
106020
|
xr,
|
|
106012
106021
|
ai,
|
|
106013
106022
|
Za
|
|
106014
|
-
), Ia(Xe), Rs(nt), Za = Ct,
|
|
106023
|
+
), Ia(Xe), Rs(nt), Za = Ct, fi = Ot, Ff = fn;
|
|
106015
106024
|
}
|
|
106016
106025
|
function dd(d, v, N, q, ne) {
|
|
106017
106026
|
if (v.subtreeFlags & 10256 || v.actualDuration !== 0 && (v.alternate === null || v.alternate.child !== v.child))
|
|
@@ -106178,13 +106187,13 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
106178
106187
|
default:
|
|
106179
106188
|
To(d);
|
|
106180
106189
|
}
|
|
106181
|
-
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && (
|
|
106190
|
+
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && (fi || 0.05 < ai) && Fi(
|
|
106182
106191
|
d,
|
|
106183
106192
|
hr,
|
|
106184
106193
|
xr,
|
|
106185
106194
|
ai,
|
|
106186
106195
|
Za
|
|
106187
|
-
), Ia(v), Rs(N),
|
|
106196
|
+
), Ia(v), Rs(N), fi = ne, Za = q;
|
|
106188
106197
|
}
|
|
106189
106198
|
function cm(d) {
|
|
106190
106199
|
var v = d.deletions;
|
|
@@ -106226,13 +106235,13 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
106226
106235
|
default:
|
|
106227
106236
|
cm(d);
|
|
106228
106237
|
}
|
|
106229
|
-
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && (
|
|
106238
|
+
(d.mode & Fr) !== br && 0 <= hr && 0 <= xr && (fi || 0.05 < ai) && Fi(
|
|
106230
106239
|
d,
|
|
106231
106240
|
hr,
|
|
106232
106241
|
xr,
|
|
106233
106242
|
ai,
|
|
106234
106243
|
Za
|
|
106235
|
-
), Ia(v), Rs(N),
|
|
106244
|
+
), Ia(v), Rs(N), fi = ne, Za = q;
|
|
106236
106245
|
}
|
|
106237
106246
|
function Hl(d, v) {
|
|
106238
106247
|
for (; ks !== null; ) {
|
|
@@ -106254,16 +106263,16 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
106254
106263
|
case 24:
|
|
106255
106264
|
qu(q.memoizedState.cache);
|
|
106256
106265
|
}
|
|
106257
|
-
if ((q.mode & Fr) !== br && 0 <= hr && 0 <= xr && (
|
|
106266
|
+
if ((q.mode & Fr) !== br && 0 <= hr && 0 <= xr && (fi || 0.05 < ai) && Fi(
|
|
106258
106267
|
q,
|
|
106259
106268
|
hr,
|
|
106260
106269
|
xr,
|
|
106261
106270
|
ai,
|
|
106262
106271
|
Za
|
|
106263
|
-
), Ia($e), Rs(Xe),
|
|
106272
|
+
), Ia($e), Rs(Xe), fi = Ct, Za = nt, q = N.child, q !== null) q.return = N, ks = q;
|
|
106264
106273
|
else
|
|
106265
106274
|
e: for (N = d; ks !== null; ) {
|
|
106266
|
-
if (q = ks, $e = q.sibling, Xe = q.return,
|
|
106275
|
+
if (q = ks, $e = q.sibling, Xe = q.return, ui(q), q === N) {
|
|
106267
106276
|
ks = null;
|
|
106268
106277
|
break e;
|
|
106269
106278
|
}
|
|
@@ -111014,14 +111023,14 @@ Check the render method of %s.`,
|
|
|
111014
111023
|
ib = !1, rp !== null && Cf(rp) && (rp = null), ap !== null && Cf(ap) && (ap = null), ip !== null && Cf(ip) && (ip = null), Fx.forEach(Dm), Bx.forEach(Dm);
|
|
111015
111024
|
}
|
|
111016
111025
|
function th(d, v) {
|
|
111017
|
-
d.blockedOn === v && (d.blockedOn = null, ib || (ib = !0,
|
|
111018
|
-
|
|
111026
|
+
d.blockedOn === v && (d.blockedOn = null, ib || (ib = !0, di.unstable_scheduleCallback(
|
|
111027
|
+
di.unstable_NormalPriority,
|
|
111019
111028
|
Gv
|
|
111020
111029
|
)));
|
|
111021
111030
|
}
|
|
111022
111031
|
function D1(d) {
|
|
111023
|
-
zv !== d && (zv = d,
|
|
111024
|
-
|
|
111032
|
+
zv !== d && (zv = d, di.unstable_scheduleCallback(
|
|
111033
|
+
di.unstable_NormalPriority,
|
|
111025
111034
|
function() {
|
|
111026
111035
|
zv === d && (zv = null);
|
|
111027
111036
|
for (var v = 0; v < d.length; v += 3) {
|
|
@@ -111126,14 +111135,14 @@ Check the render method of %s.`,
|
|
|
111126
111135
|
));
|
|
111127
111136
|
}
|
|
111128
111137
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
111129
|
-
var
|
|
111138
|
+
var di = require_scheduler(), nh = require_react(), qv = require_react_dom(), Pr = Object.assign, O1 = /* @__PURE__ */ Symbol.for("react.element"), Yo = /* @__PURE__ */ Symbol.for("react.transitional.element"), Eu = /* @__PURE__ */ Symbol.for("react.portal"), kf = /* @__PURE__ */ Symbol.for("react.fragment"), Vs = /* @__PURE__ */ Symbol.for("react.strict_mode"), rh = /* @__PURE__ */ Symbol.for("react.profiler"), Lm = /* @__PURE__ */ Symbol.for("react.consumer"), gl = /* @__PURE__ */ Symbol.for("react.context"), Ef = /* @__PURE__ */ Symbol.for("react.forward_ref"), bd = /* @__PURE__ */ Symbol.for("react.suspense"), oo = /* @__PURE__ */ Symbol.for("react.suspense_list"), ah = /* @__PURE__ */ Symbol.for("react.memo"), _s = /* @__PURE__ */ Symbol.for("react.lazy"), xl = /* @__PURE__ */ Symbol.for("react.activity"), Xv = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), I1 = Symbol.iterator, Tf = /* @__PURE__ */ Symbol.for("react.client.reference"), wi = Array.isArray, jn = nh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pa = qv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Wv = Object.freeze({
|
|
111130
111139
|
pending: !1,
|
|
111131
111140
|
data: null,
|
|
111132
111141
|
method: null,
|
|
111133
111142
|
action: null
|
|
111134
111143
|
}), I0 = [], P0 = [], Oc = -1, Tu = Ge(null), Af = Ge(null), $o = Ge(null), Au = Ge(null), Nf = 0, P1, wd, $f, F0, ih, Om, Im;
|
|
111135
111144
|
At.__reactDisabledLog = !0;
|
|
111136
|
-
var Rf, B0, Pm = !1, z0 = new (typeof WeakMap == "function" ? WeakMap : Map)(), lo = null, Zl = !1, Ro = Object.prototype.hasOwnProperty, V0 =
|
|
111145
|
+
var Rf, B0, Pm = !1, z0 = new (typeof WeakMap == "function" ? WeakMap : Map)(), lo = null, Zl = !1, Ro = Object.prototype.hasOwnProperty, V0 = di.unstable_scheduleCallback, Fm = di.unstable_cancelCallback, Bm = di.unstable_shouldYield, zm = di.unstable_requestPaint, Hi = di.unstable_now, sh = di.unstable_getCurrentPriorityLevel, U0 = di.unstable_ImmediatePriority, Vm = di.unstable_UserBlockingPriority, _d = di.unstable_NormalPriority, F1 = di.unstable_LowPriority, Um = di.unstable_IdlePriority, H0 = di.log, B1 = di.unstable_setDisableYieldValue, Sd = null, ji = null, Jl = !1, ec = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u", cs = Math.clz32 ? Math.clz32 : xn, G0 = Math.log, Hm = Math.LN2, jf = 256, oh = 262144, Mf = 4194304, Mi = 2, us = 8, Ss = 32, Nu = 268435456, Ko = Math.random().toString(36).slice(2), Va = "__reactFiber$" + Ko, Us = "__reactProps$" + Ko, Ic = "__reactContainer$" + Ko, Cd = "__reactEvents$" + Ko, Yv = "__reactListeners$" + Ko, z1 = "__reactHandles$" + Ko, lh = "__reactResources$" + Ko, Df = "__reactMarker$" + Ko, V1 = /* @__PURE__ */ new Set(), tc = {}, Lf = {}, U1 = {
|
|
111137
111146
|
button: !0,
|
|
111138
111147
|
checkbox: !0,
|
|
111139
111148
|
image: !0,
|
|
@@ -112187,7 +112196,7 @@ Check the render method of %s.`,
|
|
|
112187
112196
|
return N();
|
|
112188
112197
|
});
|
|
112189
112198
|
};
|
|
112190
|
-
}, cS =
|
|
112199
|
+
}, cS = di.unstable_scheduleCallback, uS = di.unstable_NormalPriority, Gi = {
|
|
112191
112200
|
$$typeof: gl,
|
|
112192
112201
|
Consumer: null,
|
|
112193
112202
|
Provider: null,
|
|
@@ -112196,9 +112205,9 @@ Check the render method of %s.`,
|
|
|
112196
112205
|
_threadCount: 0,
|
|
112197
112206
|
_currentRenderer: null,
|
|
112198
112207
|
_currentRenderer2: null
|
|
112199
|
-
}, qi =
|
|
112208
|
+
}, qi = di.unstable_now, ev = console.createTask ? console.createTask : function() {
|
|
112200
112209
|
return null;
|
|
112201
|
-
}, ax = 1, tv = 2, Cs = -0, Uf = -0, Nd = -0, $d = null, Do = -1.1, dh = -0, ai = -0, hr = -1.1, xr = -1.1, Za = null,
|
|
112210
|
+
}, ax = 1, tv = 2, Cs = -0, Uf = -0, Nd = -0, $d = null, Do = -1.1, dh = -0, ai = -0, hr = -1.1, xr = -1.1, Za = null, fi = !1, fh = -0, ju = -1.1, ix = null, Hf = 0, gy = null, xy = null, ph = -1.1, sx = null, ig = -1.1, nv = -1.1, Rd = -0, jd = -1.1, lc = -1.1, vy = 0, ox = null, $b = null, Rb = null, Gf = -1.1, hh = null, qf = -1.1, rv = -1.1, jb = -0, Mb = -0, av = 0, dS = null, Db = 0, lx = -1.1, iv = !1, sv = !1, ux = null, yy = 0, mh = 0, sg = null, Lb = jn.S;
|
|
112202
112211
|
jn.S = function(d, v) {
|
|
112203
112212
|
if (Rw = Hi(), typeof v == "object" && v !== null && typeof v.then == "function") {
|
|
112204
112213
|
if (0 > jd && 0 > lc) {
|
|
@@ -116271,7 +116280,7 @@ var ApiError = class extends Error {
|
|
|
116271
116280
|
return ha.has(Tr) ? ha.delete(Tr) : ha.add(Tr), ha;
|
|
116272
116281
|
});
|
|
116273
116282
|
}, dr = (Tr) => ct.find((Ea) => Ea.id === Tr)?.prompt, Oi = async () => {
|
|
116274
|
-
},
|
|
116283
|
+
}, si = (0, import_react7.useMemo)(
|
|
116275
116284
|
() => ({
|
|
116276
116285
|
products: Rt,
|
|
116277
116286
|
templates: wt,
|
|
@@ -116388,7 +116397,7 @@ var ApiError = class extends Error {
|
|
|
116388
116397
|
sr
|
|
116389
116398
|
]
|
|
116390
116399
|
);
|
|
116391
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CMSContext.Provider, { value:
|
|
116400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CMSContext.Provider, { value: si, children: e });
|
|
116392
116401
|
}, useCMS = () => {
|
|
116393
116402
|
const e = (0, import_react7.useContext)(CMSContext);
|
|
116394
116403
|
if (e === void 0)
|
|
@@ -130767,12 +130776,12 @@ function QuickPrompt({
|
|
|
130767
130776
|
"aria-describedby": s ? b : void 0,
|
|
130768
130777
|
onClick: () => c?.(h),
|
|
130769
130778
|
onKeyDown: R,
|
|
130770
|
-
className: `${CARD_CHROME} items-start justify-start p-[16px] ${s ? "" : f}`,
|
|
130779
|
+
className: `${CARD_CHROME} min-h-[64px] items-start justify-start p-[16px] ${s ? "" : f}`,
|
|
130771
130780
|
children: /* @__PURE__ */ jsx("div", { "data-id": "suggested-card-body", className: "flex w-full flex-col items-start gap-[4px]", children: /* @__PURE__ */ jsx(
|
|
130772
130781
|
"p",
|
|
130773
130782
|
{
|
|
130774
130783
|
"data-id": "suggested-card-label",
|
|
130775
|
-
className: "w-full break-words text-left text-[
|
|
130784
|
+
className: "w-full break-words text-left text-[14px] font-normal leading-[20px] text-[var(--alias-text---icons-primary)]",
|
|
130776
130785
|
children: g
|
|
130777
130786
|
}
|
|
130778
130787
|
) })
|
|
@@ -130956,7 +130965,7 @@ function QuickPromptSkeleton({ className: e = "" }) {
|
|
|
130956
130965
|
"div",
|
|
130957
130966
|
{
|
|
130958
130967
|
"aria-hidden": !0,
|
|
130959
|
-
className: "flex min-h-[
|
|
130968
|
+
className: "flex min-h-[64px] flex-1 basis-[220px] min-w-[220px] flex-col items-start justify-start gap-2 rounded-[16px] border border-[var(--alias-border-subtle)] bg-[var(--alias-surface-base)] p-[16px] animate-pulse " + e,
|
|
130960
130969
|
children: /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col items-start gap-1.5", children: [
|
|
130961
130970
|
/* @__PURE__ */ jsx("div", { className: "h-3.5 w-3/4 rounded-full bg-[var(--alias-fill-neutral-neutral)]" }),
|
|
130962
130971
|
/* @__PURE__ */ jsx("div", { className: "h-3 w-2/3 rounded-full bg-[var(--alias-fill-neutral-neutral)]" })
|
|
@@ -135092,7 +135101,7 @@ function ChatScreen() {
|
|
|
135092
135101
|
const [tr, er] = useState(""), [Bt, Zt] = useState([]), mn = useRef(null), Dn = useRef(null), [gn, Ke] = useState(0), at = useRef(!1), Pe = useRef(null), je = useRef(() => {
|
|
135093
135102
|
}), gt = useRef(null), $t = useRef(() => {
|
|
135094
135103
|
}), Mt = useRef(!1), Ve = useRef(() => {
|
|
135095
|
-
}), [qe, ut] = useState(!1), St = useRef(null), [xt, Dt] = useState(() => /* @__PURE__ */ new Map()), [Rt, Ft] = useState([]), [wt, Pt] = useState(!1), [Xt, on] = useState(!1), [yn, Ht] = useState(null), [ln, En] = useState(!1), [jt, Wt] = useState(!1), [Oe, Je] = useState(null), ot = useBackendReachable(), [mt, lt] = useState(!1), [_t, Yt] = useState("general"), [Lt, It] = useState(!1), [Gt, Kt] = useState(!1), [Cn, Nn] = useState([]), [Pn, $n] = useState(!1), [qn, lr] = useState(!1), [sr, vr] = useState([]), [Rr, sa] = useState(!1), [_r, dr] = useState(0), [Oi,
|
|
135104
|
+
}), [qe, ut] = useState(!1), St = useRef(null), [xt, Dt] = useState(() => /* @__PURE__ */ new Map()), [Rt, Ft] = useState([]), [wt, Pt] = useState(!1), [Xt, on] = useState(!1), [yn, Ht] = useState(null), [ln, En] = useState(!1), [jt, Wt] = useState(!1), [Oe, Je] = useState(null), ot = useBackendReachable(), [mt, lt] = useState(!1), [_t, Yt] = useState("general"), [Lt, It] = useState(!1), [Gt, Kt] = useState(!1), [Cn, Nn] = useState([]), [Pn, $n] = useState(!1), [qn, lr] = useState(!1), [sr, vr] = useState([]), [Rr, sa] = useState(!1), [_r, dr] = useState(0), [Oi, si] = useState("cursor-end"), [Tr, Ea] = useState(0), ha = useRef(!1), { notifyProcessingComplete: ba } = useNotifications({
|
|
135096
135105
|
hasPendingAttentionInput: () => ha.current
|
|
135097
135106
|
}), [Si, uo] = useState(!1), Kr = useRef(null), pi = useCallback((Nt) => {
|
|
135098
135107
|
console.info("[SSE] reconnect -> silent refetch", { chatId: Nt }), Kr.current?.(Nt, !0);
|
|
@@ -135575,8 +135584,15 @@ function ChatScreen() {
|
|
|
135575
135584
|
},
|
|
135576
135585
|
[Fi]
|
|
135577
135586
|
), Nl = useCallback((Nt) => {
|
|
135578
|
-
er(Nt),
|
|
135579
|
-
}, [])
|
|
135587
|
+
er(Nt), si("cursor-end"), dr((Qt) => Qt + 1);
|
|
135588
|
+
}, []);
|
|
135589
|
+
useEffect(
|
|
135590
|
+
() => subscribeToComposerFocus(() => {
|
|
135591
|
+
si("cursor-end"), dr((Nt) => Nt + 1);
|
|
135592
|
+
}),
|
|
135593
|
+
[]
|
|
135594
|
+
);
|
|
135595
|
+
const $l = useCallback(
|
|
135580
135596
|
(Nt, Qt) => {
|
|
135581
135597
|
const en = parseBriefTemplate(Nt.meta);
|
|
135582
135598
|
if (!en) {
|
|
@@ -135592,7 +135608,7 @@ function ChatScreen() {
|
|
|
135592
135608
|
zo !== 0 && Zt((Nt) => Nt.length === 0 ? Nt : []);
|
|
135593
135609
|
}, [zo]), St.current = Bu;
|
|
135594
135610
|
const mi = useCallback((Nt) => {
|
|
135595
|
-
er(Nt),
|
|
135611
|
+
er(Nt), si("cursor-end"), dr((Qt) => Qt + 1), lt(!1), Yt("general"), It(!1), Kt(!1);
|
|
135596
135612
|
}, []), zu = useCallback(() => {
|
|
135597
135613
|
Yt("quickPrompts"), It(!0), Kt(!0), lt(!0);
|
|
135598
135614
|
}, []), wc = useCallback(() => {
|
|
@@ -136041,7 +136057,7 @@ function ChatScreen() {
|
|
|
136041
136057
|
}, [Qr]), Ks = useMemo(() => Qr.some((Nt) => {
|
|
136042
136058
|
const Qt = Nt.meta;
|
|
136043
136059
|
return Nt.__turnKey === vo && Qt?.source === "artifax_dreamer" && Qt?.transient === !0;
|
|
136044
|
-
}), [Qr, vo]),
|
|
136060
|
+
}), [Qr, vo]), oi = useMemo(() => {
|
|
136045
136061
|
for (let Nt = R.length - 1; Nt >= 0; Nt--) {
|
|
136046
136062
|
const Qt = R[Nt];
|
|
136047
136063
|
if (Qt.type !== "thinking" || xn && Qt.chatId !== xn) continue;
|
|
@@ -136050,7 +136066,7 @@ function ChatScreen() {
|
|
|
136050
136066
|
break;
|
|
136051
136067
|
}
|
|
136052
136068
|
return null;
|
|
136053
|
-
}, [R, xn]), Vo = useMemo(() =>
|
|
136069
|
+
}, [R, xn]), Vo = useMemo(() => oi || (Q && (!xn || Q.chatId === xn) && typeof Q.request_id == "string" && Q.request_id ? Q.request_id : null), [oi, Q, xn]), Jr = useCallback(async () => {
|
|
136054
136070
|
if (!(!s || !xn || !Vo || ln)) {
|
|
136055
136071
|
En(!0);
|
|
136056
136072
|
try {
|
|
@@ -136071,9 +136087,9 @@ function ChatScreen() {
|
|
|
136071
136087
|
};
|
|
136072
136088
|
return document.addEventListener("keydown", Nt), () => document.removeEventListener("keydown", Nt);
|
|
136073
136089
|
}, [ua, Jr]);
|
|
136074
|
-
const xi =
|
|
136090
|
+
const xi = oi ?? Et.current ?? vo;
|
|
136075
136091
|
useEffect(() => {
|
|
136076
|
-
!s || !xn || !
|
|
136092
|
+
!s || !xn || !oi || !gi || hasUserMessageForRequest(R, xn, oi) || Xn.current.has(oi) || Un.current.has(oi) || (Xn.current.add(oi), Un.current.add(oi), loadChat(s, xn).then((Nt) => {
|
|
136077
136093
|
oe.current === xn && (T(
|
|
136078
136094
|
(Qt) => mergeHydratedMessages(
|
|
136079
136095
|
Qt,
|
|
@@ -136084,12 +136100,12 @@ function ChatScreen() {
|
|
|
136084
136100
|
}).catch((Nt) => {
|
|
136085
136101
|
console.error("user message backfill failed", Nt);
|
|
136086
136102
|
}).finally(() => {
|
|
136087
|
-
Un.current.delete(
|
|
136103
|
+
Un.current.delete(oi);
|
|
136088
136104
|
}));
|
|
136089
136105
|
}, [
|
|
136090
136106
|
s,
|
|
136091
136107
|
xn,
|
|
136092
|
-
|
|
136108
|
+
oi,
|
|
136093
136109
|
gi,
|
|
136094
136110
|
R,
|
|
136095
136111
|
T,
|
|
@@ -136149,12 +136165,12 @@ function ChatScreen() {
|
|
|
136149
136165
|
const Nt = yo.current, Qt = !!Da, en = yt.current, Ln = typeof en?.id == "string" ? en.id : typeof en?.message_db_id == "string" ? en.message_db_id : void 0, Bn = typeof Da?.id == "string" ? Da.id : typeof Da?.message_db_id == "string" ? Da.message_db_id : void 0;
|
|
136150
136166
|
!Nt && Qt ? Et.current = null : (Nt && !Qt || Nt && Qt && Ln !== Bn) && (Et.current = typeof en?.__turnKey == "string" && en.__turnKey ? en.__turnKey : null, xn && Vr(xn)), yo.current = Qt, yt.current = Da;
|
|
136151
136167
|
}, [Da, xn, Vr]), useEffect(() => {
|
|
136152
|
-
if (
|
|
136168
|
+
if (oi) {
|
|
136153
136169
|
Et.current = null;
|
|
136154
136170
|
return;
|
|
136155
136171
|
}
|
|
136156
136172
|
gi || (Et.current = null);
|
|
136157
|
-
}, [
|
|
136173
|
+
}, [oi, gi]), useEffect(() => {
|
|
136158
136174
|
const Nt = kt.current;
|
|
136159
136175
|
!Nt && gi ? vt.current = bt.current : Nt && !gi && (vt.current = !0), kt.current = gi;
|
|
136160
136176
|
}, [gi]), useEffect(() => {
|
|
@@ -137567,7 +137583,7 @@ function AgentChatShell({ adapters: e }) {
|
|
|
137567
137583
|
), [P, F] = useState(!1), Q = !(l.hide?.header ?? !1);
|
|
137568
137584
|
useEffect(() => {
|
|
137569
137585
|
F(!1);
|
|
137570
|
-
}, [c.chatId, s.current.id]);
|
|
137586
|
+
}, [c.chatId, s.current.id]), useEffect(() => subscribeToComposerFocus(() => F(!1)), []);
|
|
137571
137587
|
const Z = useCallback(
|
|
137572
137588
|
(_e) => {
|
|
137573
137589
|
F(!1), c.onChatIdChange(_e);
|
|
@@ -137876,5 +137892,6 @@ export {
|
|
|
137876
137892
|
AskCxoDialog,
|
|
137877
137893
|
ConversationSearchDialog,
|
|
137878
137894
|
enqueueChatPrompt,
|
|
137895
|
+
focusAgentComposer,
|
|
137879
137896
|
startConversation
|
|
137880
137897
|
};
|