akpm-knowledge-base-chat 2.0.40 → 2.0.41
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/CDN/akb-chat.js +94 -90
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 2.0.
|
|
1
|
+
/* Version: 2.0.41 */
|
|
2
2
|
var qo = Object.defineProperty;
|
|
3
3
|
var ci = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -163,7 +163,7 @@ function la(t, e) {
|
|
|
163
163
|
if (n !== null)
|
|
164
164
|
for (var r = rr(), s = n.length, i = 0; i < s; i++) {
|
|
165
165
|
var a = n[i], o = a.f;
|
|
166
|
-
o & Kt || !r && a === ke || (
|
|
166
|
+
o & Kt || !r && a === ke || (qt(a, e), o & (dt | _n) && (o & St ? la(
|
|
167
167
|
/** @type {Derived} */
|
|
168
168
|
a,
|
|
169
169
|
xn
|
|
@@ -469,20 +469,20 @@ function xl(t) {
|
|
|
469
469
|
}
|
|
470
470
|
function ha(t) {
|
|
471
471
|
var e, n = ke;
|
|
472
|
-
|
|
472
|
+
Lt(xl(t));
|
|
473
473
|
try {
|
|
474
474
|
fa(t), e = Ia(t);
|
|
475
475
|
} finally {
|
|
476
|
-
|
|
476
|
+
Lt(n);
|
|
477
477
|
}
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
function pa(t) {
|
|
481
481
|
var e = ha(t), n = (pn || t.f & _n) && t.deps !== null ? xn : dt;
|
|
482
|
-
|
|
482
|
+
qt(t, n), t.equals(e) || (t.v = e, t.wv = Sa());
|
|
483
483
|
}
|
|
484
484
|
function Ps(t) {
|
|
485
|
-
fa(t), Xn(t, 0),
|
|
485
|
+
fa(t), Xn(t, 0), qt(t, Ln), t.v = t.children = t.deps = t.ctx = t.reactions = null;
|
|
486
486
|
}
|
|
487
487
|
function va(t) {
|
|
488
488
|
ke === null && je === null && ul(), je !== null && je.f & _n && cl(), js && ll();
|
|
@@ -531,9 +531,9 @@ function kn(t, e, n, r = !0) {
|
|
|
531
531
|
}
|
|
532
532
|
function yl(t) {
|
|
533
533
|
const e = kn(er, null, !1);
|
|
534
|
-
return
|
|
534
|
+
return qt(e, dt), e.teardown = t, e;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function It(t) {
|
|
537
537
|
va();
|
|
538
538
|
var e = ke !== null && (ke.f & Ht) !== 0 && Re !== null && !Re.m;
|
|
539
539
|
if (e) {
|
|
@@ -589,7 +589,7 @@ function nr() {
|
|
|
589
589
|
if (d(t.l.r2)) {
|
|
590
590
|
for (var e of t.l.r1) {
|
|
591
591
|
var n = e.effect;
|
|
592
|
-
n.f & dt &&
|
|
592
|
+
n.f & dt && qt(n, xn), Pn(n) && Yr(n), e.ran = !1;
|
|
593
593
|
}
|
|
594
594
|
t.l.r2.v = !1;
|
|
595
595
|
}
|
|
@@ -653,7 +653,7 @@ function Ut(t, e = !0) {
|
|
|
653
653
|
}
|
|
654
654
|
n = !0;
|
|
655
655
|
}
|
|
656
|
-
ba(t, e && !n), ma(t), Xn(t, 0),
|
|
656
|
+
ba(t, e && !n), ma(t), Xn(t, 0), qt(t, Ln);
|
|
657
657
|
var a = t.transitions;
|
|
658
658
|
if (a !== null)
|
|
659
659
|
for (const c of a)
|
|
@@ -697,7 +697,7 @@ function Cr(t) {
|
|
|
697
697
|
}
|
|
698
698
|
function xa(t, e) {
|
|
699
699
|
if (t.f & jt) {
|
|
700
|
-
t.f ^= jt, t.f & dt || (t.f ^= dt), Pn(t) && (
|
|
700
|
+
t.f ^= jt, t.f & dt || (t.f ^= dt), Pn(t) && (qt(t, Kt), Gr(t));
|
|
701
701
|
for (var n = t.first; n !== null; ) {
|
|
702
702
|
var r = n.next, s = (n.f & jr) !== 0 || (n.f & Ht) !== 0;
|
|
703
703
|
xa(n, s ? e : !1), n = r;
|
|
@@ -745,7 +745,7 @@ function Bt(t) {
|
|
|
745
745
|
je = t;
|
|
746
746
|
}
|
|
747
747
|
let ke = null;
|
|
748
|
-
function
|
|
748
|
+
function Lt(t) {
|
|
749
749
|
ke = t;
|
|
750
750
|
}
|
|
751
751
|
let Nt = null;
|
|
@@ -787,7 +787,7 @@ function Pn(t) {
|
|
|
787
787
|
), i.wv > t.wv)
|
|
788
788
|
return !0;
|
|
789
789
|
}
|
|
790
|
-
(!r || ke !== null && !pn) &&
|
|
790
|
+
(!r || ke !== null && !pn) && qt(t, dt);
|
|
791
791
|
}
|
|
792
792
|
return !1;
|
|
793
793
|
}
|
|
@@ -829,7 +829,7 @@ function Ea(t, e, n = 0) {
|
|
|
829
829
|
i,
|
|
830
830
|
e,
|
|
831
831
|
n + 1
|
|
832
|
-
) : e === i && (n === 0 ?
|
|
832
|
+
) : e === i && (n === 0 ? qt(i, Kt) : i.f & dt && qt(i, xn), Gr(
|
|
833
833
|
/** @type {Effect} */
|
|
834
834
|
i
|
|
835
835
|
));
|
|
@@ -881,7 +881,7 @@ function Dl(t, e) {
|
|
|
881
881
|
n === null && e.f & St && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
882
882
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
883
883
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
884
|
-
(bt === null || !bt.includes(e)) && (
|
|
884
|
+
(bt === null || !bt.includes(e)) && (qt(e, xn), e.f & (_n | yr) || (e.f ^= yr), Xn(
|
|
885
885
|
/** @type {Derived} **/
|
|
886
886
|
e,
|
|
887
887
|
0
|
|
@@ -896,7 +896,7 @@ function Xn(t, e) {
|
|
|
896
896
|
function Yr(t) {
|
|
897
897
|
var e = t.f;
|
|
898
898
|
if (!(e & Ln)) {
|
|
899
|
-
|
|
899
|
+
qt(t, dt);
|
|
900
900
|
var n = ke, r = Re;
|
|
901
901
|
ke = t;
|
|
902
902
|
try {
|
|
@@ -1077,7 +1077,7 @@ function Dt(t) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
const Ml = -7169;
|
|
1080
|
-
function
|
|
1080
|
+
function qt(t, e) {
|
|
1081
1081
|
t.f = t.f & Ml | e;
|
|
1082
1082
|
}
|
|
1083
1083
|
function Qn(t, e = 1) {
|
|
@@ -1111,10 +1111,10 @@ function le(t) {
|
|
|
1111
1111
|
try {
|
|
1112
1112
|
for (var s = 0; s < a.length; s++) {
|
|
1113
1113
|
var i = a[s];
|
|
1114
|
-
|
|
1114
|
+
Lt(i.effect), Bt(i.reaction), Rn(i.fn);
|
|
1115
1115
|
}
|
|
1116
1116
|
} finally {
|
|
1117
|
-
|
|
1117
|
+
Lt(n), Bt(r);
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
Re = e.p, e.m = !0;
|
|
@@ -1189,11 +1189,11 @@ function La() {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
function qa(t) {
|
|
1191
1191
|
var e = je, n = ke;
|
|
1192
|
-
Bt(null),
|
|
1192
|
+
Bt(null), Lt(null);
|
|
1193
1193
|
try {
|
|
1194
1194
|
return t();
|
|
1195
1195
|
} finally {
|
|
1196
|
-
Bt(e),
|
|
1196
|
+
Bt(e), Lt(n);
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
function Ra(t, e, n, r = n) {
|
|
@@ -1255,7 +1255,7 @@ function Yn(t) {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
});
|
|
1257
1257
|
var u = je, f = ke;
|
|
1258
|
-
Bt(null),
|
|
1258
|
+
Bt(null), Lt(null);
|
|
1259
1259
|
try {
|
|
1260
1260
|
for (var h, p = []; i !== null; ) {
|
|
1261
1261
|
var b = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
@@ -1284,7 +1284,7 @@ function Yn(t) {
|
|
|
1284
1284
|
throw h;
|
|
1285
1285
|
}
|
|
1286
1286
|
} finally {
|
|
1287
|
-
t.__root = e, delete t.currentTarget, Bt(u),
|
|
1287
|
+
t.__root = e, delete t.currentTarget, Bt(u), Lt(f);
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
@@ -1292,7 +1292,7 @@ function Ns(t) {
|
|
|
1292
1292
|
var e = document.createElement("template");
|
|
1293
1293
|
return e.innerHTML = t, e.content;
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function At(t, e) {
|
|
1296
1296
|
var n = (
|
|
1297
1297
|
/** @type {Effect} */
|
|
1298
1298
|
ke
|
|
@@ -1304,7 +1304,7 @@ function $(t, e) {
|
|
|
1304
1304
|
var n = (e & Yo) !== 0, r = (e & Go) !== 0, s, i = !t.startsWith("<!>");
|
|
1305
1305
|
return () => {
|
|
1306
1306
|
if (_e)
|
|
1307
|
-
return
|
|
1307
|
+
return At(Ie, null), Ie;
|
|
1308
1308
|
s === void 0 && (s = Ns(i ? t : "<!>" + t), n || (s = /** @type {Node} */
|
|
1309
1309
|
/* @__PURE__ */ _t(s)));
|
|
1310
1310
|
var a = (
|
|
@@ -1319,9 +1319,9 @@ function $(t, e) {
|
|
|
1319
1319
|
/** @type {TemplateNode} */
|
|
1320
1320
|
a.lastChild
|
|
1321
1321
|
);
|
|
1322
|
-
|
|
1322
|
+
At(o, c);
|
|
1323
1323
|
} else
|
|
1324
|
-
|
|
1324
|
+
At(a, a);
|
|
1325
1325
|
return a;
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
@@ -1330,7 +1330,7 @@ function Ul(t, e, n = "svg") {
|
|
|
1330
1330
|
var r = !t.startsWith("<!>"), s = `<${n}>${r ? t : "<!>" + t}</${n}>`, i;
|
|
1331
1331
|
return () => {
|
|
1332
1332
|
if (_e)
|
|
1333
|
-
return
|
|
1333
|
+
return At(Ie, null), Ie;
|
|
1334
1334
|
if (!i) {
|
|
1335
1335
|
var a = (
|
|
1336
1336
|
/** @type {DocumentFragment} */
|
|
@@ -1346,22 +1346,22 @@ function Ul(t, e, n = "svg") {
|
|
|
1346
1346
|
/** @type {TemplateNode} */
|
|
1347
1347
|
i.cloneNode(!0)
|
|
1348
1348
|
);
|
|
1349
|
-
return
|
|
1349
|
+
return At(c, c), c;
|
|
1350
1350
|
};
|
|
1351
1351
|
}
|
|
1352
1352
|
function lr(t = "") {
|
|
1353
1353
|
if (!_e) {
|
|
1354
1354
|
var e = ln(t + "");
|
|
1355
|
-
return
|
|
1355
|
+
return At(e, e), e;
|
|
1356
1356
|
}
|
|
1357
1357
|
var n = Ie;
|
|
1358
|
-
return n.nodeType !== 3 && (n.before(n = ln()), Ct(n)),
|
|
1358
|
+
return n.nodeType !== 3 && (n.before(n = ln()), Ct(n)), At(n, n), n;
|
|
1359
1359
|
}
|
|
1360
1360
|
function xt() {
|
|
1361
1361
|
if (_e)
|
|
1362
|
-
return
|
|
1362
|
+
return At(Ie, null), Ie;
|
|
1363
1363
|
var t = document.createDocumentFragment(), e = document.createComment(""), n = ln();
|
|
1364
|
-
return t.append(e, n),
|
|
1364
|
+
return t.append(e, n), At(e, n), t;
|
|
1365
1365
|
}
|
|
1366
1366
|
function C(t, e) {
|
|
1367
1367
|
if (_e) {
|
|
@@ -1439,7 +1439,7 @@ function Oa(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
1439
1439
|
);
|
|
1440
1440
|
h.c = i;
|
|
1441
1441
|
}
|
|
1442
|
-
s && (r.$$events = s), _e &&
|
|
1442
|
+
s && (r.$$events = s), _e && At(
|
|
1443
1443
|
/** @type {TemplateNode} */
|
|
1444
1444
|
f,
|
|
1445
1445
|
null
|
|
@@ -1717,14 +1717,14 @@ function vr(t, e, n, r, s) {
|
|
|
1717
1717
|
/* @__PURE__ */ en(c);
|
|
1718
1718
|
if (c === null)
|
|
1719
1719
|
throw Ur(), Sn;
|
|
1720
|
-
|
|
1720
|
+
At(Ie, l), i = Ct(c);
|
|
1721
1721
|
return;
|
|
1722
1722
|
}
|
|
1723
1723
|
var u = a + "";
|
|
1724
1724
|
n && (u = `<svg>${u}</svg>`);
|
|
1725
1725
|
var f = Ns(u);
|
|
1726
1726
|
if ((n || r) && (f = /** @type {Element} */
|
|
1727
|
-
/* @__PURE__ */ _t(f)),
|
|
1727
|
+
/* @__PURE__ */ _t(f)), At(
|
|
1728
1728
|
/** @type {TemplateNode} */
|
|
1729
1729
|
/* @__PURE__ */ _t(f),
|
|
1730
1730
|
/** @type {TemplateNode} */
|
|
@@ -1972,14 +1972,14 @@ function Ft(t, e, n, r) {
|
|
|
1972
1972
|
var s = (t & Uo) !== 0, i = (t & Bo) !== 0, a = s && i, o = (t & Ho) !== 0, c = a ? "both" : s ? "in" : "out", l, u = e.inert, f = e.style.overflow, h, p;
|
|
1973
1973
|
function b() {
|
|
1974
1974
|
var S = je, q = ke;
|
|
1975
|
-
Bt(null),
|
|
1975
|
+
Bt(null), Lt(null);
|
|
1976
1976
|
try {
|
|
1977
1977
|
return l ?? (l = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
|
|
1978
1978
|
{}, {
|
|
1979
1979
|
direction: c
|
|
1980
1980
|
}));
|
|
1981
1981
|
} finally {
|
|
1982
|
-
Bt(S),
|
|
1982
|
+
Bt(S), Lt(q);
|
|
1983
1983
|
}
|
|
1984
1984
|
}
|
|
1985
1985
|
var w = {
|
|
@@ -2226,13 +2226,13 @@ function kt(t = !1) {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
n.b.length && zl(() => {
|
|
2228
2228
|
ki(e, r), xr(n.b);
|
|
2229
|
-
}),
|
|
2229
|
+
}), It(() => {
|
|
2230
2230
|
const s = Dt(() => n.m.map(sl));
|
|
2231
2231
|
return () => {
|
|
2232
2232
|
for (const i of s)
|
|
2233
2233
|
typeof i == "function" && i();
|
|
2234
2234
|
};
|
|
2235
|
-
}), n.a.length &&
|
|
2235
|
+
}), n.a.length && It(() => {
|
|
2236
2236
|
ki(e, r), xr(n.a);
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
@@ -2242,7 +2242,7 @@ function ki(t, e) {
|
|
|
2242
2242
|
e();
|
|
2243
2243
|
}
|
|
2244
2244
|
function Jr(t) {
|
|
2245
|
-
Re === null && Ms(), qn && Re.l !== null ? cc(Re).m.push(t) :
|
|
2245
|
+
Re === null && Ms(), qn && Re.l !== null ? cc(Re).m.push(t) : It(() => {
|
|
2246
2246
|
const e = Dt(t);
|
|
2247
2247
|
if (typeof e == "function") return (
|
|
2248
2248
|
/** @type {() => void} */
|
|
@@ -2388,9 +2388,9 @@ function yi(t) {
|
|
|
2388
2388
|
for (var e = ke, n = ke; e !== null && !(e.f & (Ht | wn)); )
|
|
2389
2389
|
e = e.parent;
|
|
2390
2390
|
try {
|
|
2391
|
-
return
|
|
2391
|
+
return Lt(e), t();
|
|
2392
2392
|
} finally {
|
|
2393
|
-
|
|
2393
|
+
Lt(n);
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
2396
|
function m(t, e, n, r) {
|
|
@@ -7307,16 +7307,16 @@ const Np = async (t) => {
|
|
|
7307
7307
|
}, Kp = (t, e, n) => {
|
|
7308
7308
|
v(e, !1), v(n, !0);
|
|
7309
7309
|
};
|
|
7310
|
-
var ev = /* @__PURE__ */ $('<div class="chat-blocked-message svelte-
|
|
7310
|
+
var ev = /* @__PURE__ */ $('<div class="chat-blocked-message svelte-lntngl"><i class="fa-solid fa-clock-rotate-left svelte-lntngl"></i> <span class="svelte-lntngl"> </span></div>'), tv = /* @__PURE__ */ $('<div class="dropdown-content svelte-lntngl"><button><i class="fa-solid fa-file-circle-plus svelte-lntngl"></i> <span class="svelte-lntngl"> </span></button> <button><i class="fa-solid fa-upload svelte-lntngl"></i> <span class="svelte-lntngl"> </span></button></div>'), nv = /* @__PURE__ */ $('<option class="svelte-lntngl">Generatore di Normative</option>'), rv = /* @__PURE__ */ $('<div class="attachment-title noopen-file-button svelte-lntngl"> </div>'), sv = (t, e, n, r, s) => e(n(), r(), s()), iv = /* @__PURE__ */ $('<button class="attachment-title open-file-button svelte-lntngl"> </button>'), av = (t, e, n, r, s) => e(n(), r(), s()), ov = /* @__PURE__ */ $('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-lntngl"></i></button></div>'), lv = /* @__PURE__ */ $('<button class="btn send-button stop-recording-btn svelte-lntngl" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-lntngl"></i></button>'), cv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-lntngl" aria-label="Synthesizing" disabled><!></button>'), uv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-lntngl" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-lntngl"></i></button>'), dv = /* @__PURE__ */ $('<button class="btn send-button stop-stream-btn svelte-lntngl" aria-label="Stop message"><i class="fa-solid fa-stop svelte-lntngl"></i></button>'), fv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-lntngl" aria-label="Loading" disabled><!></button>'), hv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer send-message-btn svelte-lntngl" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-lntngl"></i></button>'), pv = /* @__PURE__ */ $('<div class="top svelte-lntngl"><textarea style="color: black !important;" class="form-control form-control-sm svelte-lntngl" rows="2"></textarea></div> <div class="bottom svelte-lntngl"><div class="controls-row svelte-lntngl"><div class="plus-button-container svelte-lntngl"><button><i></i></button> <!></div> <select class="mode-select svelte-lntngl" aria-label="Select mode"><option class="svelte-lntngl">Auto</option><option class="svelte-lntngl">Manuale Suite</option><option class="svelte-lntngl"> </option><option class="svelte-lntngl">Knowledge Base</option><option class="svelte-lntngl">GenDoc</option><option class="svelte-lntngl">Trascrizioni</option><!><option class="svelte-lntngl">Agente Suite</option></select> <div class="attachments-container svelte-lntngl"></div> <div class="send-buttons svelte-lntngl"><!> <!></div></div></div>', 1), vv = /* @__PURE__ */ $('<div class="input svelte-lntngl"><!></div> <!>', 1);
|
|
7311
7311
|
const gv = {
|
|
7312
|
-
hash: "svelte-
|
|
7313
|
-
code: `textarea.svelte-
|
|
7314
|
-
/* Migliore supporto per lo scroll su touch devices */-webkit-overflow-scrolling:touch;}.attachments-container.svelte-
|
|
7312
|
+
hash: "svelte-lntngl",
|
|
7313
|
+
code: `textarea.svelte-lntngl {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */font-size:16px;}.noopen-file-button.svelte-lntngl {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-lntngl {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-lntngl:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-lntngl {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-lntngl:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-lntngl:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-lntngl {position:relative;flex-shrink:0;}.plus-button.svelte-lntngl {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-lntngl:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-lntngl:active {transform:scale(0.95);}.plus-button-active.svelte-lntngl {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-lntngl:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-lntngl {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-lntngl {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
|
|
7314
|
+
/* Migliore supporto per lo scroll su touch devices */-webkit-overflow-scrolling:touch;}.attachments-container.svelte-lntngl::-webkit-scrollbar {height:6px;}.attachments-container.svelte-lntngl::-webkit-scrollbar-track {background:#f7fafc;border-radius:3px;}.attachments-container.svelte-lntngl::-webkit-scrollbar-thumb {background:#cbd5e0;border-radius:3px;}.attachments-container.svelte-lntngl::-webkit-scrollbar-thumb:hover {background:#a0aec0;}.attachment-item.svelte-lntngl {display:flex;align-items:center;flex-shrink:0;max-width:150px;background:#515b6a;color:white;border-radius:20px;padding:3px 10px 3px 10px;gap:5px;border:none;cursor:default;box-sizing:border-box;}.attachment-item.common.svelte-lntngl {background:#e2e8f0;color:black;}.attachment-title.svelte-lntngl {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:0.875rem;}.remove-btn.svelte-lntngl {flex-shrink:0;width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;font-size:0.75rem;background:transparent;border:none;color:white;cursor:pointer;transition:100ms;}.remove-btn.common.svelte-lntngl {color:black;}.remove-btn.svelte-lntngl:hover {background:rgba(255, 255, 255, 0.3);border-radius:50%;}.remove-btn.common.svelte-lntngl:hover {background:rgba(0, 0, 0, 0.3);color:black;}.remove-btn.svelte-lntngl i:where(.svelte-lntngl) {margin:0;}.input.svelte-lntngl {display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;background:white;border-radius:15px;margin:10px;gap:3px;width:calc(100% - 20px);min-width:0;box-sizing:border-box;}.input.svelte-lntngl > .top:where(.svelte-lntngl) {display:flex;justify-content:center;align-items:center;width:100%;}.input.svelte-lntngl > .bottom:where(.svelte-lntngl) {display:flex;justify-content:center;align-items:center;width:100%;min-width:0;}.send-buttons.svelte-lntngl {display:flex;gap:5px;flex-shrink:0;}.send-button.svelte-lntngl {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;transition:all 0.2s ease;border:none;font-size:1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.send-button.svelte-lntngl:hover {transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.send-button.svelte-lntngl:active {transform:scale(0.95);}.send-button.aks-btn-answer.svelte-lntngl:hover {background-color:#295dcf;border-color:#295dcf;color:white;}.send-button.svelte-lntngl:disabled {opacity:0.4;cursor:not-allowed;transform:none;filter:grayscale(0.3);}.send-button.svelte-lntngl:disabled:hover {transform:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);opacity:0.4;}.send-message-btn.svelte-lntngl {background-color:#295dcf;color:white;}.send-message-btn.svelte-lntngl:hover {background-color:#1d4a9e;}.stop-recording-btn.svelte-lntngl {background-color:#dc3545;color:white;border-color:#dc3545;}.stop-recording-btn.svelte-lntngl:hover {background-color:#c82333;border-color:#bd2130;transform:scale(1.05);}.stop-stream-btn.svelte-lntngl {background-color:#6c757d;color:white;border-color:#6c757d;}.stop-stream-btn.svelte-lntngl:hover {background-color:#5a6268;border-color:#545b62;transform:scale(1.05);}\r
|
|
7315
7315
|
\r
|
|
7316
|
-
/* Stili per il dropdown */.dropdown-content.svelte-
|
|
7317
|
-
animation: svelte-
|
|
7316
|
+
/* Stili per il dropdown */.dropdown-content.svelte-lntngl {position:absolute;bottom:100%;left:0;margin-bottom:5px;background:white;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);min-width:180px;z-index:1000;}.dropdown-option.svelte-lntngl {display:flex;align-items:center;width:100%;padding:10px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-radius:0;}.dropdown-option.svelte-lntngl:first-child {border-top-left-radius:8px;border-top-right-radius:8px;}.dropdown-option.svelte-lntngl:last-child {border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.dropdown-option.svelte-lntngl:hover {background:#f8f9fa;color:#295dcf;}.dropdown-option.svelte-lntngl i:where(.svelte-lntngl) {margin-right:10px;width:16px;text-align:center;}.option-disabled.svelte-lntngl {color:#ccc;cursor:default;}.option-disabled.svelte-lntngl:hover {background:white;color:#ccc;}.chat-blocked-message.svelte-lntngl {display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 20px;background:linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);border:2px solid #dee2e6;border-radius:12px;color:#6c757d;font-size:0.95rem;font-weight:500;width:100%;box-sizing:border-box;text-align:center;box-shadow:0 2px 4px rgba(0, 0, 0, 0.05);}.chat-blocked-message.svelte-lntngl i:where(.svelte-lntngl) {font-size:1.2rem;color:#ffc107;\r
|
|
7317
|
+
animation: svelte-lntngl-pulse-icon 2s ease-in-out infinite;}\r
|
|
7318
7318
|
\r
|
|
7319
|
-
@keyframes svelte-
|
|
7319
|
+
@keyframes svelte-lntngl-pulse-icon {\r
|
|
7320
7320
|
0%,\r
|
|
7321
7321
|
100% {\r
|
|
7322
7322
|
opacity: 1;\r
|
|
@@ -7438,7 +7438,7 @@ function ao(t, e) {
|
|
|
7438
7438
|
"audit_handler",
|
|
7439
7439
|
"suite_agent"
|
|
7440
7440
|
];
|
|
7441
|
-
|
|
7441
|
+
It(() => {
|
|
7442
7442
|
d(b) !== void 0 && ce();
|
|
7443
7443
|
});
|
|
7444
7444
|
var Je = vv(), xe = Ke(Je), $e = z(xe);
|
|
@@ -7469,8 +7469,8 @@ function ao(t, e) {
|
|
|
7469
7469
|
var Ee = O(z(Se), 2), nt = z(Ee, !0);
|
|
7470
7470
|
k(Ee), k(Se), k(H), P(
|
|
7471
7471
|
(Yt, Mn, ar, Kr, es, or, Ot) => {
|
|
7472
|
-
wt(ne, `${Yt ?? ""} svelte-
|
|
7473
|
-
${Kr ?? ""}`), wt(Se, `${es ?? ""} svelte-
|
|
7472
|
+
wt(ne, `${Yt ?? ""} svelte-lntngl`), ne.disabled = Mn, ye(D, `${ar ?? ""}
|
|
7473
|
+
${Kr ?? ""}`), wt(Se, `${es ?? ""} svelte-lntngl`), Se.disabled = or, ye(nt, Ot);
|
|
7474
7474
|
},
|
|
7475
7475
|
[
|
|
7476
7476
|
() => `dropdown-option ${qe.includes(a()) ? "" : "option-disabled"}`,
|
|
@@ -7522,24 +7522,24 @@ function ao(t, e) {
|
|
|
7522
7522
|
var Yt = ov(), Mn = z(Yt), ar = O(Mn, 2);
|
|
7523
7523
|
{
|
|
7524
7524
|
var Kr = (Ot) => {
|
|
7525
|
-
var
|
|
7526
|
-
k(
|
|
7525
|
+
var Rt = rv(), jn = z(Rt, !0);
|
|
7526
|
+
k(Rt), P(
|
|
7527
7527
|
(li) => {
|
|
7528
|
-
B(
|
|
7528
|
+
B(Rt, "title", li), ye(jn, li);
|
|
7529
7529
|
},
|
|
7530
7530
|
[() => Le().split(".")[0]]
|
|
7531
|
-
), C(Ot,
|
|
7531
|
+
), C(Ot, Rt);
|
|
7532
7532
|
}, es = (Ot) => {
|
|
7533
|
-
var
|
|
7534
|
-
|
|
7533
|
+
var Rt = iv();
|
|
7534
|
+
Rt.__click = [
|
|
7535
7535
|
sv,
|
|
7536
7536
|
Ce,
|
|
7537
7537
|
D,
|
|
7538
7538
|
Le,
|
|
7539
7539
|
Se
|
|
7540
7540
|
];
|
|
7541
|
-
var jn = z(
|
|
7542
|
-
k(
|
|
7541
|
+
var jn = z(Rt, !0);
|
|
7542
|
+
k(Rt), P(() => ye(jn, Le())), C(Ot, Rt);
|
|
7543
7543
|
};
|
|
7544
7544
|
Q(ar, (Ot) => {
|
|
7545
7545
|
nt() ? Ot(Kr) : Ot(es, !1);
|
|
@@ -7553,8 +7553,8 @@ function ao(t, e) {
|
|
|
7553
7553
|
Le,
|
|
7554
7554
|
Ee
|
|
7555
7555
|
], k(Yt), P(
|
|
7556
|
-
(Ot,
|
|
7557
|
-
wt(Yt, `${`attachment-item ${nt() ? "common" : ""}` ?? ""} svelte-
|
|
7556
|
+
(Ot, Rt, jn) => {
|
|
7557
|
+
wt(Yt, `${`attachment-item ${nt() ? "common" : ""}` ?? ""} svelte-lntngl`), B(Yt, "title", Ot), wt(Mn, `${Rt ?? ""} svelte-lntngl`), B(Mn, "style", jn), wt(or, `${`remove-btn ${nt() ? "common" : ""}` ?? ""} svelte-lntngl`);
|
|
7558
7558
|
},
|
|
7559
7559
|
[
|
|
7560
7560
|
() => et(nt() ?? !1, Le()),
|
|
@@ -7639,7 +7639,7 @@ function ao(t, e) {
|
|
|
7639
7639
|
}
|
|
7640
7640
|
k(Ae), k(De), k(Fe), P(
|
|
7641
7641
|
(Y, H, ne) => {
|
|
7642
|
-
B(pe, "placeholder", Y), wt(be, `${`btn plus-button ${d(q) ? "plus-button-active" : ""}` ?? ""} svelte-
|
|
7642
|
+
B(pe, "placeholder", Y), wt(be, `${`btn plus-button ${d(q) ? "plus-button-active" : ""}` ?? ""} svelte-lntngl`), B(be, "aria-label", H), B(be, "title", H), wt(lt, `${`fa-solid ${d(q) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-lntngl`), ye(X, ne);
|
|
7643
7643
|
},
|
|
7644
7644
|
[
|
|
7645
7645
|
() => Dc(),
|
|
@@ -9709,7 +9709,7 @@ ${f}` : f;
|
|
|
9709
9709
|
}
|
|
9710
9710
|
}
|
|
9711
9711
|
}
|
|
9712
|
-
class
|
|
9712
|
+
class Tt {
|
|
9713
9713
|
constructor(e) {
|
|
9714
9714
|
A(this, "tokens");
|
|
9715
9715
|
A(this, "options");
|
|
@@ -9741,13 +9741,13 @@ class It {
|
|
|
9741
9741
|
* Static Lex Method
|
|
9742
9742
|
*/
|
|
9743
9743
|
static lex(e, n) {
|
|
9744
|
-
return new
|
|
9744
|
+
return new Tt(n).lex(e);
|
|
9745
9745
|
}
|
|
9746
9746
|
/**
|
|
9747
9747
|
* Static Lex Inline Method
|
|
9748
9748
|
*/
|
|
9749
9749
|
static lexInline(e, n) {
|
|
9750
|
-
return new
|
|
9750
|
+
return new Tt(n).inlineTokens(e);
|
|
9751
9751
|
}
|
|
9752
9752
|
/**
|
|
9753
9753
|
* Preprocessing
|
|
@@ -10119,7 +10119,7 @@ class oi {
|
|
|
10119
10119
|
return "";
|
|
10120
10120
|
}
|
|
10121
10121
|
}
|
|
10122
|
-
class
|
|
10122
|
+
class $t {
|
|
10123
10123
|
constructor(e) {
|
|
10124
10124
|
A(this, "options");
|
|
10125
10125
|
A(this, "renderer");
|
|
@@ -10130,13 +10130,13 @@ class Tt {
|
|
|
10130
10130
|
* Static Parse Method
|
|
10131
10131
|
*/
|
|
10132
10132
|
static parse(e, n) {
|
|
10133
|
-
return new
|
|
10133
|
+
return new $t(n).parse(e);
|
|
10134
10134
|
}
|
|
10135
10135
|
/**
|
|
10136
10136
|
* Static Parse Inline Method
|
|
10137
10137
|
*/
|
|
10138
10138
|
static parseInline(e, n) {
|
|
10139
|
-
return new
|
|
10139
|
+
return new $t(n).parseInline(e);
|
|
10140
10140
|
}
|
|
10141
10141
|
/**
|
|
10142
10142
|
* Parse Loop
|
|
@@ -10310,13 +10310,13 @@ class Wn {
|
|
|
10310
10310
|
* Provide function to tokenize markdown
|
|
10311
10311
|
*/
|
|
10312
10312
|
provideLexer() {
|
|
10313
|
-
return this.block ?
|
|
10313
|
+
return this.block ? Tt.lex : Tt.lexInline;
|
|
10314
10314
|
}
|
|
10315
10315
|
/**
|
|
10316
10316
|
* Provide function to parse tokens
|
|
10317
10317
|
*/
|
|
10318
10318
|
provideParser() {
|
|
10319
|
-
return this.block ?
|
|
10319
|
+
return this.block ? $t.parse : $t.parseInline;
|
|
10320
10320
|
}
|
|
10321
10321
|
}
|
|
10322
10322
|
A(Wn, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
@@ -10330,10 +10330,10 @@ class tm {
|
|
|
10330
10330
|
A(this, "options", this.setOptions);
|
|
10331
10331
|
A(this, "parse", this.parseMarkdown(!0));
|
|
10332
10332
|
A(this, "parseInline", this.parseMarkdown(!1));
|
|
10333
|
-
A(this, "Parser",
|
|
10333
|
+
A(this, "Parser", $t);
|
|
10334
10334
|
A(this, "Renderer", Pr);
|
|
10335
10335
|
A(this, "TextRenderer", oi);
|
|
10336
|
-
A(this, "Lexer",
|
|
10336
|
+
A(this, "Lexer", Tt);
|
|
10337
10337
|
A(this, "Tokenizer", Dr);
|
|
10338
10338
|
A(this, "Hooks", Wn);
|
|
10339
10339
|
this.use(...e);
|
|
@@ -10455,10 +10455,10 @@ class tm {
|
|
|
10455
10455
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
10456
10456
|
}
|
|
10457
10457
|
lexer(e, n) {
|
|
10458
|
-
return
|
|
10458
|
+
return Tt.lex(e, n ?? this.defaults);
|
|
10459
10459
|
}
|
|
10460
10460
|
parser(e, n) {
|
|
10461
|
-
return
|
|
10461
|
+
return $t.parse(e, n ?? this.defaults);
|
|
10462
10462
|
}
|
|
10463
10463
|
parseMarkdown(e) {
|
|
10464
10464
|
return (r, s) => {
|
|
@@ -10470,7 +10470,7 @@ class tm {
|
|
|
10470
10470
|
if (typeof r != "string")
|
|
10471
10471
|
return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
|
|
10472
10472
|
a.hooks && (a.hooks.options = a, a.hooks.block = e);
|
|
10473
|
-
const c = a.hooks ? a.hooks.provideLexer() : e ?
|
|
10473
|
+
const c = a.hooks ? a.hooks.provideLexer() : e ? Tt.lex : Tt.lexInline, l = a.hooks ? a.hooks.provideParser() : e ? $t.parse : $t.parseInline;
|
|
10474
10474
|
if (a.async)
|
|
10475
10475
|
return Promise.resolve(a.hooks ? a.hooks.preprocess(r) : r).then((u) => c(u, a)).then((u) => a.hooks ? a.hooks.processAllTokens(u) : u).then((u) => a.walkTokens ? Promise.all(this.walkTokens(u, a.walkTokens)).then(() => u) : u).then((u) => l(u, a)).then((u) => a.hooks ? a.hooks.postprocess(u) : u).catch(o);
|
|
10476
10476
|
try {
|
|
@@ -10513,12 +10513,12 @@ ze.walkTokens = function(t, e) {
|
|
|
10513
10513
|
return bn.walkTokens(t, e);
|
|
10514
10514
|
};
|
|
10515
10515
|
ze.parseInline = bn.parseInline;
|
|
10516
|
-
ze.Parser =
|
|
10517
|
-
ze.parser =
|
|
10516
|
+
ze.Parser = $t;
|
|
10517
|
+
ze.parser = $t.parse;
|
|
10518
10518
|
ze.Renderer = Pr;
|
|
10519
10519
|
ze.TextRenderer = oi;
|
|
10520
|
-
ze.Lexer =
|
|
10521
|
-
ze.lexer =
|
|
10520
|
+
ze.Lexer = Tt;
|
|
10521
|
+
ze.lexer = Tt.lex;
|
|
10522
10522
|
ze.Tokenizer = Dr;
|
|
10523
10523
|
ze.Hooks = Wn;
|
|
10524
10524
|
ze.parse = ze;
|
|
@@ -10527,8 +10527,8 @@ ze.setOptions;
|
|
|
10527
10527
|
ze.use;
|
|
10528
10528
|
ze.walkTokens;
|
|
10529
10529
|
ze.parseInline;
|
|
10530
|
-
|
|
10531
|
-
|
|
10530
|
+
$t.parse;
|
|
10531
|
+
Tt.lex;
|
|
10532
10532
|
const nm = async (t, e, n) => {
|
|
10533
10533
|
const r = _p(e()), s = xp(e());
|
|
10534
10534
|
try {
|
|
@@ -10778,13 +10778,13 @@ function $o(t, e) {
|
|
|
10778
10778
|
}
|
|
10779
10779
|
}
|
|
10780
10780
|
};
|
|
10781
|
-
|
|
10781
|
+
It(() => {
|
|
10782
10782
|
u() && !d(E) ? (v(q, !0), v(_, null), v(S, !1), v(x, !0), M()) : !u() && d(E) && (v(_, I(n())), d(S) && V()), v(E, I(u()));
|
|
10783
|
-
}),
|
|
10783
|
+
}), It(() => {
|
|
10784
10784
|
d(q) && d(S) && !u() && V();
|
|
10785
|
-
}),
|
|
10785
|
+
}), It(() => {
|
|
10786
10786
|
d(q) ? v(_, I(n())) : u() || v(T, I(n()));
|
|
10787
|
-
}),
|
|
10787
|
+
}), It(() => {
|
|
10788
10788
|
i(), d(T), L();
|
|
10789
10789
|
});
|
|
10790
10790
|
var ce = Lm(), Xe = z(ce);
|
|
@@ -11182,10 +11182,14 @@ function Ao(t, e) {
|
|
|
11182
11182
|
});
|
|
11183
11183
|
};
|
|
11184
11184
|
let T = J(null), _;
|
|
11185
|
-
|
|
11185
|
+
It(() => {
|
|
11186
11186
|
var L;
|
|
11187
11187
|
const y = (L = s()[0]) == null ? void 0 : L._id;
|
|
11188
11188
|
y && y !== _ && d(T) && (_ = y, d(T).scrollTop = 0);
|
|
11189
|
+
}), It(() => {
|
|
11190
|
+
!h() || p() || c() || !d(T) || (s().length, Promise.resolve().then(() => {
|
|
11191
|
+
d(T) && h() && !p() && d(T).scrollHeight <= d(T).clientHeight && f()();
|
|
11192
|
+
}));
|
|
11189
11193
|
});
|
|
11190
11194
|
const x = (y) => {
|
|
11191
11195
|
const L = y.target;
|
|
@@ -11537,7 +11541,7 @@ function Lo(t, e) {
|
|
|
11537
11541
|
throw console.error("Error uploading file:", Z), v(b, I(Ai())), v(E, ""), v(q, 0), Z;
|
|
11538
11542
|
}
|
|
11539
11543
|
};
|
|
11540
|
-
|
|
11544
|
+
It(() => {
|
|
11541
11545
|
d(p) && d(h).pause();
|
|
11542
11546
|
});
|
|
11543
11547
|
let R = !1, ee, Ce, qe, Ge;
|
|
@@ -11632,7 +11636,7 @@ function Lo(t, e) {
|
|
|
11632
11636
|
console.error("Error fetching unread chats:", U);
|
|
11633
11637
|
}
|
|
11634
11638
|
};
|
|
11635
|
-
|
|
11639
|
+
It(() => (De !== void 0 && (clearInterval(De), De = void 0), d(n) && (Ne(), De = setInterval(Ne, 5e3)), () => {
|
|
11636
11640
|
De !== void 0 && (clearInterval(De), De = void 0);
|
|
11637
11641
|
})), Jr(async () => {
|
|
11638
11642
|
try {
|