akpm-knowledge-base-chat 2.0.12 → 2.0.13
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 +657 -649
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* Version: 2.0.
|
|
1
|
+
/* Version: 2.0.13 */
|
|
2
2
|
var co = Object.defineProperty;
|
|
3
|
-
var
|
|
3
|
+
var Ws = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
5
5
|
};
|
|
6
6
|
var uo = (t, e, n) => e in t ? co(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
7
|
-
var I = (t, e, n) => uo(t, typeof e != "symbol" ? e + "" : e, n),
|
|
8
|
-
var st = (t, e, n) => (
|
|
7
|
+
var I = (t, e, n) => uo(t, typeof e != "symbol" ? e + "" : e, n), Zs = (t, e, n) => e.has(t) || Ws("Cannot " + n);
|
|
8
|
+
var st = (t, e, n) => (Zs(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Mr = (t, e, n) => e.has(t) ? Ws("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Nr = (t, e, n, r) => (Zs(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
9
9
|
const fo = "5";
|
|
10
10
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fo);
|
|
11
|
-
const
|
|
11
|
+
const hs = 1, vs = 2, Li = 4, po = 8, ho = 16, vo = 1, go = 2, ji = 4, mo = 8, bo = 16, xo = 1, wo = 2, _o = 4, ko = 1, yo = 2, Ri = "[", gs = "[!", ms = "]", gn = {}, it = Symbol();
|
|
12
12
|
function zo(t) {
|
|
13
13
|
return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
|
|
14
14
|
}
|
|
@@ -59,7 +59,7 @@ function Io(t) {
|
|
|
59
59
|
return Co.includes(t);
|
|
60
60
|
}
|
|
61
61
|
const Wr = !1;
|
|
62
|
-
var kr = Array.isArray, Ao = Array.prototype.indexOf,
|
|
62
|
+
var kr = Array.isArray, Ao = Array.prototype.indexOf, bs = Array.from, lr = Object.keys, cr = Object.defineProperty, an = Object.getOwnPropertyDescriptor, Fi = Object.getOwnPropertyDescriptors, Lo = Object.prototype, jo = Array.prototype, xs = Object.getPrototypeOf;
|
|
63
63
|
function Ro(t) {
|
|
64
64
|
return typeof t == "function";
|
|
65
65
|
}
|
|
@@ -72,14 +72,14 @@ function ur(t) {
|
|
|
72
72
|
for (var e = 0; e < t.length; e++)
|
|
73
73
|
t[e]();
|
|
74
74
|
}
|
|
75
|
-
const vt = 2,
|
|
76
|
-
function
|
|
75
|
+
const vt = 2, Di = 4, Hn = 8, yr = 16, Ft = 32, un = 64, dr = 128, dn = 256, fr = 512, Ve = 1024, Ht = 2048, fn = 4096, It = 8192, kn = 16384, Oi = 32768, zr = 65536, Do = 1 << 17, Oo = 1 << 19, Pi = 1 << 20, qt = Symbol("$state"), Mi = Symbol("legacy props"), Po = Symbol("");
|
|
76
|
+
function Ni(t) {
|
|
77
77
|
return t === this.v;
|
|
78
78
|
}
|
|
79
79
|
function Mo(t, e) {
|
|
80
80
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ws(t) {
|
|
83
83
|
return !Mo(t, this.v);
|
|
84
84
|
}
|
|
85
85
|
function No(t) {
|
|
@@ -122,48 +122,48 @@ function at(t, e) {
|
|
|
122
122
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
123
123
|
v: t,
|
|
124
124
|
reactions: null,
|
|
125
|
-
equals:
|
|
125
|
+
equals: Ni,
|
|
126
126
|
rv: 0,
|
|
127
127
|
wv: 0
|
|
128
128
|
};
|
|
129
129
|
return n;
|
|
130
130
|
}
|
|
131
131
|
function G(t) {
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ Ui(at(t));
|
|
133
133
|
}
|
|
134
134
|
// @__NO_SIDE_EFFECTS__
|
|
135
135
|
function $r(t, e = !1) {
|
|
136
136
|
var r;
|
|
137
137
|
const n = at(t);
|
|
138
|
-
return e || (n.equals =
|
|
138
|
+
return e || (n.equals = ws), yn && Se !== null && Se.l !== null && ((r = Se.l).s ?? (r.s = [])).push(n), n;
|
|
139
139
|
}
|
|
140
140
|
function Jt(t, e = !1) {
|
|
141
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ Ui(/* @__PURE__ */ $r(t, e));
|
|
142
142
|
}
|
|
143
143
|
// @__NO_SIDE_EFFECTS__
|
|
144
|
-
function
|
|
144
|
+
function Ui(t) {
|
|
145
145
|
return Le !== null && Le.f & vt && (At === null ? ul([t]) : At.push(t)), t;
|
|
146
146
|
}
|
|
147
147
|
function Ur(t, e) {
|
|
148
|
-
return
|
|
148
|
+
return m(
|
|
149
149
|
t,
|
|
150
150
|
Rt(() => f(t))
|
|
151
151
|
), e;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function m(t, e) {
|
|
154
154
|
return Le !== null && !Vt && Jn() && Le.f & (vt | yr) && // If the source was created locally within the current derived, then
|
|
155
155
|
// we allow the mutation.
|
|
156
156
|
(At === null || !At.includes(t)) && Zo(), Zr(t, e);
|
|
157
157
|
}
|
|
158
158
|
function Zr(t, e) {
|
|
159
|
-
return t.equals(e) || (t.v, t.v = e, t.wv =
|
|
159
|
+
return t.equals(e) || (t.v, t.v = e, t.wv = aa(), Bi(t, Ht), Jn() && pe !== null && pe.f & Ve && !(pe.f & (Ft | un)) && (Ot === null ? dl([t]) : Ot.push(t))), e;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Bi(t, e) {
|
|
162
162
|
var n = t.reactions;
|
|
163
163
|
if (n !== null)
|
|
164
164
|
for (var r = Jn(), s = n.length, i = 0; i < s; i++) {
|
|
165
165
|
var a = n[i], o = a.f;
|
|
166
|
-
o & Ht || !r && a === pe || (yt(a, e), o & (Ve | dn) && (o & vt ?
|
|
166
|
+
o & Ht || !r && a === pe || (yt(a, e), o & (Ve | dn) && (o & vt ? Bi(
|
|
167
167
|
/** @type {Derived} */
|
|
168
168
|
a,
|
|
169
169
|
fn
|
|
@@ -206,10 +206,10 @@ function Xr() {
|
|
|
206
206
|
/** @type {Comment} */
|
|
207
207
|
e.data
|
|
208
208
|
);
|
|
209
|
-
if (n ===
|
|
209
|
+
if (n === ms) {
|
|
210
210
|
if (t === 0) return e;
|
|
211
211
|
t -= 1;
|
|
212
|
-
} else (n ===
|
|
212
|
+
} else (n === Ri || n === gs) && (t += 1);
|
|
213
213
|
}
|
|
214
214
|
var r = (
|
|
215
215
|
/** @type {TemplateNode} */
|
|
@@ -221,7 +221,7 @@ function Xr() {
|
|
|
221
221
|
function C(t, e = null, n) {
|
|
222
222
|
if (typeof t != "object" || t === null || qt in t)
|
|
223
223
|
return t;
|
|
224
|
-
const r =
|
|
224
|
+
const r = xs(t);
|
|
225
225
|
if (r !== Lo && r !== jo)
|
|
226
226
|
return t;
|
|
227
227
|
var s = /* @__PURE__ */ new Map(), i = kr(t), a = at(0);
|
|
@@ -237,7 +237,7 @@ function C(t, e = null, n) {
|
|
|
237
237
|
defineProperty(c, l, u) {
|
|
238
238
|
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Go();
|
|
239
239
|
var d = s.get(l);
|
|
240
|
-
return d === void 0 ? (d = at(u.value), s.set(l, d)) :
|
|
240
|
+
return d === void 0 ? (d = at(u.value), s.set(l, d)) : m(d, C(u.value, o)), !0;
|
|
241
241
|
},
|
|
242
242
|
deleteProperty(c, l) {
|
|
243
243
|
var u = s.get(l);
|
|
@@ -249,9 +249,9 @@ function C(t, e = null, n) {
|
|
|
249
249
|
/** @type {Source<number>} */
|
|
250
250
|
s.get("length")
|
|
251
251
|
), p = Number(l);
|
|
252
|
-
Number.isInteger(p) && p < d.v &&
|
|
252
|
+
Number.isInteger(p) && p < d.v && m(d, p);
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
m(u, it), Xs(a);
|
|
255
255
|
}
|
|
256
256
|
return !0;
|
|
257
257
|
},
|
|
@@ -302,10 +302,10 @@ function C(t, e = null, n) {
|
|
|
302
302
|
if (i && l === "length")
|
|
303
303
|
for (var w = u; w < /** @type {Source<number>} */
|
|
304
304
|
p.v; w += 1) {
|
|
305
|
-
var
|
|
306
|
-
|
|
305
|
+
var b = s.get(w + "");
|
|
306
|
+
b !== void 0 ? m(b, it) : w in c && (b = at(it), s.set(w + "", b));
|
|
307
307
|
}
|
|
308
|
-
p === void 0 ? (!h || (y = an(c, l)) != null && y.writable) && (p = at(void 0),
|
|
308
|
+
p === void 0 ? (!h || (y = an(c, l)) != null && y.writable) && (p = at(void 0), m(p, C(u, o)), s.set(l, p)) : (h = p.v !== it, m(p, C(u, o)));
|
|
309
309
|
var S = Reflect.getOwnPropertyDescriptor(c, l);
|
|
310
310
|
if (S != null && S.set && S.set.call(d, u), !h) {
|
|
311
311
|
if (i && typeof l == "string") {
|
|
@@ -313,9 +313,9 @@ function C(t, e = null, n) {
|
|
|
313
313
|
/** @type {Source<number>} */
|
|
314
314
|
s.get("length")
|
|
315
315
|
), _ = Number(l);
|
|
316
|
-
Number.isInteger(_) && _ >= x.v &&
|
|
316
|
+
Number.isInteger(_) && _ >= x.v && m(x, _ + 1);
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
Xs(a);
|
|
319
319
|
}
|
|
320
320
|
return !0;
|
|
321
321
|
},
|
|
@@ -335,21 +335,21 @@ function C(t, e = null, n) {
|
|
|
335
335
|
}
|
|
336
336
|
);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
|
|
338
|
+
function Xs(t, e = 1) {
|
|
339
|
+
m(t, t.v + e);
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Vs(t) {
|
|
342
342
|
return t !== null && typeof t == "object" && qt in t ? t[qt] : t;
|
|
343
343
|
}
|
|
344
344
|
function Qo(t, e) {
|
|
345
|
-
return Object.is(
|
|
345
|
+
return Object.is(Vs(t), Vs(e));
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var Qs, qi, Hi;
|
|
348
348
|
function Vr() {
|
|
349
|
-
if (
|
|
350
|
-
|
|
349
|
+
if (Qs === void 0) {
|
|
350
|
+
Qs = window;
|
|
351
351
|
var t = Element.prototype, e = Node.prototype;
|
|
352
|
-
|
|
352
|
+
qi = an(e, "firstChild").get, Hi = an(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function Qt(t = "") {
|
|
@@ -357,11 +357,11 @@ function Qt(t = "") {
|
|
|
357
357
|
}
|
|
358
358
|
// @__NO_SIDE_EFFECTS__
|
|
359
359
|
function lt(t) {
|
|
360
|
-
return
|
|
360
|
+
return qi.call(t);
|
|
361
361
|
}
|
|
362
362
|
// @__NO_SIDE_EFFECTS__
|
|
363
363
|
function Yt(t) {
|
|
364
|
-
return
|
|
364
|
+
return Hi.call(t);
|
|
365
365
|
}
|
|
366
366
|
function z(t, e) {
|
|
367
367
|
if (!de)
|
|
@@ -406,13 +406,13 @@ function P(t, e = 1, n = !1) {
|
|
|
406
406
|
return ht(r), /** @type {TemplateNode} */
|
|
407
407
|
r;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function _s(t) {
|
|
410
410
|
t.textContent = "";
|
|
411
411
|
}
|
|
412
412
|
// @__NO_SIDE_EFFECTS__
|
|
413
413
|
function qe(t) {
|
|
414
414
|
var e = vt | Ht;
|
|
415
|
-
pe === null ? e |= dn : pe.f |=
|
|
415
|
+
pe === null ? e |= dn : pe.f |= Pi;
|
|
416
416
|
var n = Le !== null && Le.f & vt ? (
|
|
417
417
|
/** @type {Derived} */
|
|
418
418
|
Le
|
|
@@ -421,7 +421,7 @@ function qe(t) {
|
|
|
421
421
|
children: null,
|
|
422
422
|
ctx: Se,
|
|
423
423
|
deps: null,
|
|
424
|
-
equals:
|
|
424
|
+
equals: Ni,
|
|
425
425
|
f: e,
|
|
426
426
|
fn: t,
|
|
427
427
|
reactions: null,
|
|
@@ -436,17 +436,17 @@ function qe(t) {
|
|
|
436
436
|
return n !== null && (n.children ?? (n.children = [])).push(r), r;
|
|
437
437
|
}
|
|
438
438
|
// @__NO_SIDE_EFFECTS__
|
|
439
|
-
function
|
|
439
|
+
function Yi(t) {
|
|
440
440
|
const e = /* @__PURE__ */ qe(t);
|
|
441
|
-
return e.equals =
|
|
441
|
+
return e.equals = ws, e;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Gi(t) {
|
|
444
444
|
var e = t.children;
|
|
445
445
|
if (e !== null) {
|
|
446
446
|
t.children = null;
|
|
447
447
|
for (var n = 0; n < e.length; n += 1) {
|
|
448
448
|
var r = e[n];
|
|
449
|
-
r.f & vt ?
|
|
449
|
+
r.f & vt ? ks(
|
|
450
450
|
/** @type {Derived} */
|
|
451
451
|
r
|
|
452
452
|
) : Lt(
|
|
@@ -467,25 +467,25 @@ function Ko(t) {
|
|
|
467
467
|
}
|
|
468
468
|
return null;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Ji(t) {
|
|
471
471
|
var e, n = pe;
|
|
472
472
|
kt(Ko(t));
|
|
473
473
|
try {
|
|
474
|
-
|
|
474
|
+
Gi(t), e = la(t);
|
|
475
475
|
} finally {
|
|
476
476
|
kt(n);
|
|
477
477
|
}
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
var e =
|
|
482
|
-
yt(t, n), t.equals(e) || (t.v = e, t.wv =
|
|
480
|
+
function Wi(t) {
|
|
481
|
+
var e = Ji(t), n = (sn || t.f & dn) && t.deps !== null ? fn : Ve;
|
|
482
|
+
yt(t, n), t.equals(e) || (t.v = e, t.wv = aa());
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
|
|
484
|
+
function ks(t) {
|
|
485
|
+
Gi(t), Un(t, 0), yt(t, kn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
pe === null && Le === null && Bo(), Le !== null && Le.f & dn && Uo(),
|
|
487
|
+
function Zi(t) {
|
|
488
|
+
pe === null && Le === null && Bo(), Le !== null && Le.f & dn && Uo(), $s && No();
|
|
489
489
|
}
|
|
490
490
|
function el(t, e) {
|
|
491
491
|
var n = e.last;
|
|
@@ -512,14 +512,14 @@ function pn(t, e, n, r = !0) {
|
|
|
512
512
|
if (n) {
|
|
513
513
|
var o = mn;
|
|
514
514
|
try {
|
|
515
|
-
|
|
515
|
+
Ks(!0), Cr(a), a.f |= Oi;
|
|
516
516
|
} catch (u) {
|
|
517
517
|
throw Lt(a), u;
|
|
518
518
|
} finally {
|
|
519
|
-
|
|
519
|
+
Ks(o);
|
|
520
520
|
}
|
|
521
521
|
} else e !== null && Ir(a);
|
|
522
|
-
var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (
|
|
522
|
+
var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (Pi | dr)) === 0;
|
|
523
523
|
if (!c && !s && r && (i !== null && el(a, i), Le !== null && Le.f & vt)) {
|
|
524
524
|
var l = (
|
|
525
525
|
/** @type {Derived} */
|
|
@@ -534,7 +534,7 @@ function tl(t) {
|
|
|
534
534
|
return yt(e, Ve), e.teardown = t, e;
|
|
535
535
|
}
|
|
536
536
|
function Ct(t) {
|
|
537
|
-
|
|
537
|
+
Zi();
|
|
538
538
|
var e = pe !== null && (pe.f & Ft) !== 0 && Se !== null && !Se.m;
|
|
539
539
|
if (e) {
|
|
540
540
|
var n = (
|
|
@@ -552,7 +552,7 @@ function Ct(t) {
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function nl(t) {
|
|
555
|
-
return
|
|
555
|
+
return Zi(), $n(t);
|
|
556
556
|
}
|
|
557
557
|
function rl(t) {
|
|
558
558
|
const e = pn(un, t, !0);
|
|
@@ -569,7 +569,7 @@ function sl(t) {
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
function zn(t) {
|
|
572
|
-
return pn(
|
|
572
|
+
return pn(Di, t, !1);
|
|
573
573
|
}
|
|
574
574
|
function Yn(t, e) {
|
|
575
575
|
var n = (
|
|
@@ -577,7 +577,7 @@ function Yn(t, e) {
|
|
|
577
577
|
Se
|
|
578
578
|
), r = { effect: null, ran: !1 };
|
|
579
579
|
n.l.r1.push(r), r.effect = $n(() => {
|
|
580
|
-
t(), !r.ran && (r.ran = !0,
|
|
580
|
+
t(), !r.ran && (r.ran = !0, m(n.l.r2, !0), Rt(e));
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
function Gn() {
|
|
@@ -608,27 +608,27 @@ function Sr(t, e = 0) {
|
|
|
608
608
|
function wn(t, e = !0) {
|
|
609
609
|
return pn(Hn | Ft, t, !0, e);
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Xi(t) {
|
|
612
612
|
var e = t.teardown;
|
|
613
613
|
if (e !== null) {
|
|
614
|
-
const n =
|
|
615
|
-
|
|
614
|
+
const n = $s, r = Le;
|
|
615
|
+
ei(!0), jt(null);
|
|
616
616
|
try {
|
|
617
617
|
e.call(null);
|
|
618
618
|
} finally {
|
|
619
|
-
|
|
619
|
+
ei(n), jt(r);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Vi(t) {
|
|
624
624
|
var e = t.deriveds;
|
|
625
625
|
if (e !== null) {
|
|
626
626
|
t.deriveds = null;
|
|
627
627
|
for (var n = 0; n < e.length; n += 1)
|
|
628
|
-
|
|
628
|
+
ks(e[n]);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Qi(t, e = !1) {
|
|
632
632
|
var n = t.first;
|
|
633
633
|
for (t.first = t.last = null; n !== null; ) {
|
|
634
634
|
var r = n.next;
|
|
@@ -653,26 +653,26 @@ function Lt(t, e = !0) {
|
|
|
653
653
|
}
|
|
654
654
|
n = !0;
|
|
655
655
|
}
|
|
656
|
-
|
|
656
|
+
Qi(t, e && !n), Vi(t), Un(t, 0), yt(t, kn);
|
|
657
657
|
var a = t.transitions;
|
|
658
658
|
if (a !== null)
|
|
659
659
|
for (const c of a)
|
|
660
660
|
c.stop();
|
|
661
|
-
|
|
661
|
+
Xi(t);
|
|
662
662
|
var o = t.parent;
|
|
663
|
-
o !== null && o.first !== null &&
|
|
663
|
+
o !== null && o.first !== null && Ki(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Ki(t) {
|
|
666
666
|
var e = t.parent, n = t.prev, r = t.next;
|
|
667
667
|
n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
|
|
668
668
|
}
|
|
669
669
|
function pr(t, e) {
|
|
670
670
|
var n = [];
|
|
671
|
-
|
|
671
|
+
ys(t, n, !0), ea(n, () => {
|
|
672
672
|
Lt(t), e && e();
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function ea(t, e) {
|
|
676
676
|
var n = t.length;
|
|
677
677
|
if (n > 0) {
|
|
678
678
|
var r = () => --n || e();
|
|
@@ -681,26 +681,26 @@ function Ki(t, e) {
|
|
|
681
681
|
} else
|
|
682
682
|
e();
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function ys(t, e, n) {
|
|
685
685
|
if (!(t.f & It)) {
|
|
686
686
|
if (t.f ^= It, t.transitions !== null)
|
|
687
687
|
for (const a of t.transitions)
|
|
688
688
|
(a.is_global || n) && e.push(a);
|
|
689
689
|
for (var r = t.first; r !== null; ) {
|
|
690
690
|
var s = r.next, i = (r.f & zr) !== 0 || (r.f & Ft) !== 0;
|
|
691
|
-
|
|
691
|
+
ys(r, e, i ? n : !1), r = s;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
function hr(t) {
|
|
696
|
-
|
|
696
|
+
ta(t, !0);
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function ta(t, e) {
|
|
699
699
|
if (t.f & It) {
|
|
700
700
|
t.f ^= It, t.f & Ve || (t.f ^= Ve), Sn(t) && (yt(t, Ht), Ir(t));
|
|
701
701
|
for (var n = t.first; n !== null; ) {
|
|
702
702
|
var r = n.next, s = (n.f & zr) !== 0 || (n.f & Ft) !== 0;
|
|
703
|
-
|
|
703
|
+
ta(n, s ? e : !1), n = r;
|
|
704
704
|
}
|
|
705
705
|
if (t.transitions !== null)
|
|
706
706
|
for (const i of t.transitions)
|
|
@@ -709,35 +709,35 @@ function ea(t, e) {
|
|
|
709
709
|
}
|
|
710
710
|
const al = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
|
|
711
711
|
let vr = !1, gr = !1, Qr = [], Kr = [];
|
|
712
|
-
function
|
|
712
|
+
function na() {
|
|
713
713
|
vr = !1;
|
|
714
714
|
const t = Qr.slice();
|
|
715
715
|
Qr = [], ur(t);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function ra() {
|
|
718
718
|
gr = !1;
|
|
719
719
|
const t = Kr.slice();
|
|
720
720
|
Kr = [], ur(t);
|
|
721
721
|
}
|
|
722
722
|
function Tn(t) {
|
|
723
|
-
vr || (vr = !0, queueMicrotask(
|
|
723
|
+
vr || (vr = !0, queueMicrotask(na)), Qr.push(t);
|
|
724
724
|
}
|
|
725
725
|
function ol(t) {
|
|
726
|
-
gr || (gr = !0, al(
|
|
726
|
+
gr || (gr = !0, al(ra)), Kr.push(t);
|
|
727
727
|
}
|
|
728
728
|
function ll() {
|
|
729
|
-
vr &&
|
|
729
|
+
vr && na(), gr && ra();
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function zs(t) {
|
|
732
732
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
733
733
|
}
|
|
734
|
-
const
|
|
735
|
-
let rr = !1, sr =
|
|
736
|
-
function
|
|
734
|
+
const sa = 0, cl = 1;
|
|
735
|
+
let rr = !1, sr = sa, Mn = !1, Nn = null, mn = !1, $s = !1;
|
|
736
|
+
function Ks(t) {
|
|
737
737
|
mn = t;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
|
|
739
|
+
function ei(t) {
|
|
740
|
+
$s = t;
|
|
741
741
|
}
|
|
742
742
|
let rn = [], bn = 0;
|
|
743
743
|
let Le = null, Vt = !1;
|
|
@@ -756,9 +756,9 @@ let ot = null, dt = 0, Ot = null;
|
|
|
756
756
|
function dl(t) {
|
|
757
757
|
Ot = t;
|
|
758
758
|
}
|
|
759
|
-
let
|
|
760
|
-
function
|
|
761
|
-
return ++
|
|
759
|
+
let ia = 1, mr = 0, sn = !1, Se = null;
|
|
760
|
+
function aa() {
|
|
761
|
+
return ++ia;
|
|
762
762
|
}
|
|
763
763
|
function Jn() {
|
|
764
764
|
return !yn || Se !== null && Se.l === null;
|
|
@@ -781,7 +781,7 @@ function Sn(t) {
|
|
|
781
781
|
if (i = n[s], Sn(
|
|
782
782
|
/** @type {Derived} */
|
|
783
783
|
i
|
|
784
|
-
) &&
|
|
784
|
+
) && Wi(
|
|
785
785
|
/** @type {Derived} */
|
|
786
786
|
i
|
|
787
787
|
), i.wv > t.wv)
|
|
@@ -819,12 +819,12 @@ function Er(t, e, n, r) {
|
|
|
819
819
|
return;
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function oa(t, e, n = 0) {
|
|
823
823
|
var r = t.reactions;
|
|
824
824
|
if (r !== null)
|
|
825
825
|
for (var s = 0; s < r.length; s++) {
|
|
826
826
|
var i = r[s];
|
|
827
|
-
i.f & vt ?
|
|
827
|
+
i.f & vt ? oa(
|
|
828
828
|
/** @type {Derived} */
|
|
829
829
|
i,
|
|
830
830
|
e,
|
|
@@ -835,7 +835,7 @@ function aa(t, e, n = 0) {
|
|
|
835
835
|
));
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function la(t) {
|
|
839
839
|
var h;
|
|
840
840
|
var e = ot, n = dt, r = Ot, s = Le, i = sn, a = At, o = Se, c = Vt, l = t.f;
|
|
841
841
|
ot = /** @type {null | Value[]} */
|
|
@@ -859,7 +859,7 @@ function oa(t) {
|
|
|
859
859
|
if (Jn() && Ot !== null && !(t.f & (vt | fn | Ht)))
|
|
860
860
|
for (p = 0; p < /** @type {Source[]} */
|
|
861
861
|
Ot.length; p++)
|
|
862
|
-
|
|
862
|
+
oa(
|
|
863
863
|
Ot[p],
|
|
864
864
|
/** @type {Effect} */
|
|
865
865
|
t
|
|
@@ -900,9 +900,9 @@ function Cr(t) {
|
|
|
900
900
|
var n = pe, r = Se;
|
|
901
901
|
pe = t;
|
|
902
902
|
try {
|
|
903
|
-
e & yr ? il(t) :
|
|
904
|
-
var s =
|
|
905
|
-
t.teardown = typeof s == "function" ? s : null, t.wv =
|
|
903
|
+
e & yr ? il(t) : Qi(t), Vi(t), Xi(t);
|
|
904
|
+
var s = la(t);
|
|
905
|
+
t.teardown = typeof s == "function" ? s : null, t.wv = ia;
|
|
906
906
|
var i = t.deps, a;
|
|
907
907
|
Wr && Xo && t.f & Ht;
|
|
908
908
|
} catch (o) {
|
|
@@ -912,7 +912,7 @@ function Cr(t) {
|
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function ca() {
|
|
916
916
|
if (bn > 1e3) {
|
|
917
917
|
bn = 0;
|
|
918
918
|
try {
|
|
@@ -926,10 +926,10 @@ function la() {
|
|
|
926
926
|
}
|
|
927
927
|
bn++;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function ua(t) {
|
|
930
930
|
var e = t.length;
|
|
931
931
|
if (e !== 0) {
|
|
932
|
-
|
|
932
|
+
ca();
|
|
933
933
|
var n = mn;
|
|
934
934
|
mn = !0;
|
|
935
935
|
try {
|
|
@@ -937,7 +937,7 @@ function ca(t) {
|
|
|
937
937
|
var s = t[r];
|
|
938
938
|
s.f & Ve || (s.f ^= Ve);
|
|
939
939
|
var i = [];
|
|
940
|
-
|
|
940
|
+
da(s, i), vl(i);
|
|
941
941
|
}
|
|
942
942
|
} finally {
|
|
943
943
|
mn = n;
|
|
@@ -951,7 +951,7 @@ function vl(t) {
|
|
|
951
951
|
var r = t[n];
|
|
952
952
|
if (!(r.f & (kn | It)))
|
|
953
953
|
try {
|
|
954
|
-
Sn(r) && (Cr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ?
|
|
954
|
+
Sn(r) && (Cr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Ki(r) : r.fn = null));
|
|
955
955
|
} catch (s) {
|
|
956
956
|
Er(s, r, null, r.ctx);
|
|
957
957
|
}
|
|
@@ -961,10 +961,10 @@ function gl() {
|
|
|
961
961
|
if (Mn = !1, bn > 1001)
|
|
962
962
|
return;
|
|
963
963
|
const t = rn;
|
|
964
|
-
rn = [],
|
|
964
|
+
rn = [], ua(t), Mn || (bn = 0, Nn = null);
|
|
965
965
|
}
|
|
966
966
|
function Ir(t) {
|
|
967
|
-
sr ===
|
|
967
|
+
sr === sa && (Mn || (Mn = !0, queueMicrotask(gl))), Nn = t;
|
|
968
968
|
for (var e = t; e.parent !== null; ) {
|
|
969
969
|
e = e.parent;
|
|
970
970
|
var n = e.f;
|
|
@@ -975,7 +975,7 @@ function Ir(t) {
|
|
|
975
975
|
}
|
|
976
976
|
rn.push(e);
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function da(t, e) {
|
|
979
979
|
var n = t.first, r = [];
|
|
980
980
|
e: for (; n !== null; ) {
|
|
981
981
|
var s = n.f, i = (s & Ft) !== 0, a = i && (s & Ve) !== 0, o = n.next;
|
|
@@ -994,7 +994,7 @@ function ua(t, e) {
|
|
|
994
994
|
n = c;
|
|
995
995
|
continue;
|
|
996
996
|
}
|
|
997
|
-
} else s &
|
|
997
|
+
} else s & Di && r.push(n);
|
|
998
998
|
if (o === null) {
|
|
999
999
|
let d = n.parent;
|
|
1000
1000
|
for (; d !== null; ) {
|
|
@@ -1011,14 +1011,14 @@ function ua(t, e) {
|
|
|
1011
1011
|
n = o;
|
|
1012
1012
|
}
|
|
1013
1013
|
for (var u = 0; u < r.length; u++)
|
|
1014
|
-
c = r[u], e.push(c),
|
|
1014
|
+
c = r[u], e.push(c), da(c, e);
|
|
1015
1015
|
}
|
|
1016
1016
|
function v(t) {
|
|
1017
1017
|
var e = sr, n = rn;
|
|
1018
1018
|
try {
|
|
1019
|
-
|
|
1019
|
+
ca();
|
|
1020
1020
|
const s = [];
|
|
1021
|
-
sr = cl, rn = s, Mn = !1,
|
|
1021
|
+
sr = cl, rn = s, Mn = !1, ua(n);
|
|
1022
1022
|
var r = t == null ? void 0 : t();
|
|
1023
1023
|
return ll(), (rn.length > 0 || s.length > 0) && v(), bn = 0, Nn = null, r;
|
|
1024
1024
|
} finally {
|
|
@@ -1032,11 +1032,11 @@ function f(t) {
|
|
|
1032
1032
|
var u;
|
|
1033
1033
|
var e = t.f, n = (e & vt) !== 0;
|
|
1034
1034
|
if (n && e & kn) {
|
|
1035
|
-
var r =
|
|
1035
|
+
var r = Ji(
|
|
1036
1036
|
/** @type {Derived} */
|
|
1037
1037
|
t
|
|
1038
1038
|
);
|
|
1039
|
-
return
|
|
1039
|
+
return ks(
|
|
1040
1040
|
/** @type {Derived} */
|
|
1041
1041
|
t
|
|
1042
1042
|
), r;
|
|
@@ -1066,7 +1066,7 @@ function f(t) {
|
|
|
1066
1066
|
break;
|
|
1067
1067
|
}
|
|
1068
1068
|
return n && (i = /** @type {Derived} */
|
|
1069
|
-
t, Sn(i) &&
|
|
1069
|
+
t, Sn(i) && Wi(i)), t.v;
|
|
1070
1070
|
}
|
|
1071
1071
|
function Rt(t) {
|
|
1072
1072
|
var e = Vt;
|
|
@@ -1082,7 +1082,7 @@ function yt(t, e) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
function Bn(t, e = 1) {
|
|
1084
1084
|
var n = f(t), r = e === 1 ? n++ : n--;
|
|
1085
|
-
return
|
|
1085
|
+
return m(t, n), r;
|
|
1086
1086
|
}
|
|
1087
1087
|
function ie(t, e = !1, n) {
|
|
1088
1088
|
Se = {
|
|
@@ -1142,9 +1142,9 @@ function es(t, e = /* @__PURE__ */ new Set()) {
|
|
|
1142
1142
|
es(t[r], e);
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
}
|
|
1145
|
-
const n =
|
|
1145
|
+
const n = xs(t);
|
|
1146
1146
|
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1147
|
-
const r =
|
|
1147
|
+
const r = Fi(n);
|
|
1148
1148
|
for (let s in r) {
|
|
1149
1149
|
const i = r[s].get;
|
|
1150
1150
|
if (i)
|
|
@@ -1165,11 +1165,11 @@ function bl(t, e) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
function xl(t) {
|
|
1168
|
-
de && /* @__PURE__ */ lt(t) !== null &&
|
|
1168
|
+
de && /* @__PURE__ */ lt(t) !== null && _s(t);
|
|
1169
1169
|
}
|
|
1170
|
-
let
|
|
1171
|
-
function
|
|
1172
|
-
|
|
1170
|
+
let ti = !1;
|
|
1171
|
+
function fa() {
|
|
1172
|
+
ti || (ti = !0, document.addEventListener(
|
|
1173
1173
|
"reset",
|
|
1174
1174
|
(t) => {
|
|
1175
1175
|
Promise.resolve().then(() => {
|
|
@@ -1187,7 +1187,7 @@ function da() {
|
|
|
1187
1187
|
{ capture: !0 }
|
|
1188
1188
|
));
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function pa(t) {
|
|
1191
1191
|
var e = Le, n = pe;
|
|
1192
1192
|
jt(null), kt(null);
|
|
1193
1193
|
try {
|
|
@@ -1196,32 +1196,32 @@ function fa(t) {
|
|
|
1196
1196
|
jt(e), kt(n);
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
t.addEventListener(e, () =>
|
|
1199
|
+
function ha(t, e, n, r = n) {
|
|
1200
|
+
t.addEventListener(e, () => pa(n));
|
|
1201
1201
|
const s = t.__on_r;
|
|
1202
1202
|
s ? t.__on_r = () => {
|
|
1203
1203
|
s(), r(!0);
|
|
1204
|
-
} : t.__on_r = () => r(!0),
|
|
1204
|
+
} : t.__on_r = () => r(!0), fa();
|
|
1205
1205
|
}
|
|
1206
|
-
const
|
|
1207
|
-
function
|
|
1206
|
+
const va = /* @__PURE__ */ new Set(), ts = /* @__PURE__ */ new Set();
|
|
1207
|
+
function ga(t, e, n, r) {
|
|
1208
1208
|
function s(i) {
|
|
1209
1209
|
if (r.capture || Fn.call(e, i), !i.cancelBubble)
|
|
1210
|
-
return
|
|
1210
|
+
return pa(() => n.call(this, i));
|
|
1211
1211
|
}
|
|
1212
1212
|
return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Tn(() => {
|
|
1213
1213
|
e.addEventListener(t, s, r);
|
|
1214
1214
|
}) : e.addEventListener(t, s, r), s;
|
|
1215
1215
|
}
|
|
1216
1216
|
function Wt(t, e, n, r, s) {
|
|
1217
|
-
var i = { capture: r, passive: s }, a =
|
|
1217
|
+
var i = { capture: r, passive: s }, a = ga(t, e, n, i);
|
|
1218
1218
|
(e === document.body || e === window || e === document) && tl(() => {
|
|
1219
1219
|
e.removeEventListener(t, a, i);
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
1222
|
function nn(t) {
|
|
1223
1223
|
for (var e = 0; e < t.length; e++)
|
|
1224
|
-
|
|
1224
|
+
va.add(t[e]);
|
|
1225
1225
|
for (var n of ts)
|
|
1226
1226
|
n(t);
|
|
1227
1227
|
}
|
|
@@ -1261,14 +1261,14 @@ function Fn(t) {
|
|
|
1261
1261
|
var w = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
1262
1262
|
i.host || null;
|
|
1263
1263
|
try {
|
|
1264
|
-
var
|
|
1265
|
-
if (
|
|
1264
|
+
var b = i["__" + r];
|
|
1265
|
+
if (b !== void 0 && !/** @type {any} */
|
|
1266
1266
|
i.disabled)
|
|
1267
|
-
if (kr(
|
|
1268
|
-
var [S, ...x] =
|
|
1267
|
+
if (kr(b)) {
|
|
1268
|
+
var [S, ...x] = b;
|
|
1269
1269
|
S.apply(i, [t, ...x]);
|
|
1270
1270
|
} else
|
|
1271
|
-
|
|
1271
|
+
b.call(i, t);
|
|
1272
1272
|
} catch (y) {
|
|
1273
1273
|
p ? h.push(y) : p = y;
|
|
1274
1274
|
}
|
|
@@ -1288,7 +1288,7 @@ function Fn(t) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function Ts(t) {
|
|
1292
1292
|
var e = document.createElement("template");
|
|
1293
1293
|
return e.innerHTML = t, e.content;
|
|
1294
1294
|
}
|
|
@@ -1305,7 +1305,7 @@ function j(t, e) {
|
|
|
1305
1305
|
return () => {
|
|
1306
1306
|
if (de)
|
|
1307
1307
|
return _t(we, null), we;
|
|
1308
|
-
s === void 0 && (s =
|
|
1308
|
+
s === void 0 && (s = Ts(i ? t : "<!>" + t), n || (s = /** @type {Node} */
|
|
1309
1309
|
/* @__PURE__ */ lt(s)));
|
|
1310
1310
|
var a = (
|
|
1311
1311
|
/** @type {TemplateNode} */
|
|
@@ -1334,7 +1334,7 @@ function wl(t, e, n = "svg") {
|
|
|
1334
1334
|
if (!i) {
|
|
1335
1335
|
var a = (
|
|
1336
1336
|
/** @type {DocumentFragment} */
|
|
1337
|
-
|
|
1337
|
+
Ts(s)
|
|
1338
1338
|
), o = (
|
|
1339
1339
|
/** @type {Element} */
|
|
1340
1340
|
/* @__PURE__ */ lt(a)
|
|
@@ -1378,8 +1378,8 @@ function $e(t, e) {
|
|
|
1378
1378
|
var n = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
1379
1379
|
n !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = n, t.nodeValue = n == null ? "" : n + "");
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1381
|
+
function ma(t, e) {
|
|
1382
|
+
return ba(t, e);
|
|
1383
1383
|
}
|
|
1384
1384
|
function _l(t, e) {
|
|
1385
1385
|
Vr(), e.intro = e.intro ?? !1;
|
|
@@ -1389,7 +1389,7 @@ function _l(t, e) {
|
|
|
1389
1389
|
/** @type {TemplateNode} */
|
|
1390
1390
|
/* @__PURE__ */ lt(n)
|
|
1391
1391
|
); i && (i.nodeType !== 8 || /** @type {Comment} */
|
|
1392
|
-
i.data !==
|
|
1392
|
+
i.data !== Ri); )
|
|
1393
1393
|
i = /** @type {TemplateNode} */
|
|
1394
1394
|
/* @__PURE__ */ Yt(i);
|
|
1395
1395
|
if (!i)
|
|
@@ -1398,22 +1398,22 @@ function _l(t, e) {
|
|
|
1398
1398
|
/** @type {Comment} */
|
|
1399
1399
|
i
|
|
1400
1400
|
), xn();
|
|
1401
|
-
const a =
|
|
1401
|
+
const a = ba(t, { ...e, anchor: i });
|
|
1402
1402
|
if (we === null || we.nodeType !== 8 || /** @type {Comment} */
|
|
1403
|
-
we.data !==
|
|
1403
|
+
we.data !== ms)
|
|
1404
1404
|
throw Tr(), gn;
|
|
1405
1405
|
return Ut(!1), /** @type {Exports} */
|
|
1406
1406
|
a;
|
|
1407
1407
|
} catch (a) {
|
|
1408
1408
|
if (a === gn)
|
|
1409
|
-
return e.recover === !1 && Ho(), Vr(),
|
|
1409
|
+
return e.recover === !1 && Ho(), Vr(), _s(n), Ut(!1), ma(t, e);
|
|
1410
1410
|
throw a;
|
|
1411
1411
|
} finally {
|
|
1412
1412
|
Ut(r), ht(s);
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
const vn = /* @__PURE__ */ new Map();
|
|
1416
|
-
function
|
|
1416
|
+
function ba(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
|
|
1417
1417
|
Vr();
|
|
1418
1418
|
var o = /* @__PURE__ */ new Set(), c = (d) => {
|
|
1419
1419
|
for (var p = 0; p < d.length; p++) {
|
|
@@ -1422,12 +1422,12 @@ function ma(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
1422
1422
|
o.add(h);
|
|
1423
1423
|
var w = Io(h);
|
|
1424
1424
|
e.addEventListener(h, Fn, { passive: w });
|
|
1425
|
-
var
|
|
1426
|
-
|
|
1425
|
+
var b = vn.get(h);
|
|
1426
|
+
b === void 0 ? (document.addEventListener(h, Fn, { passive: w }), vn.set(h, 1)) : vn.set(h, b + 1);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
};
|
|
1430
|
-
c(
|
|
1430
|
+
c(bs(va)), ts.add(c);
|
|
1431
1431
|
var l = void 0, u = sl(() => {
|
|
1432
1432
|
var d = n ?? e.appendChild(Qt());
|
|
1433
1433
|
return wn(() => {
|
|
@@ -1475,7 +1475,7 @@ function V(t, e, n = !1) {
|
|
|
1475
1475
|
if (de) {
|
|
1476
1476
|
const w = (
|
|
1477
1477
|
/** @type {Comment} */
|
|
1478
|
-
r.data ===
|
|
1478
|
+
r.data === gs
|
|
1479
1479
|
);
|
|
1480
1480
|
!!a === w && (r = Xr(), ht(r), Ut(!1), h = !0);
|
|
1481
1481
|
}
|
|
@@ -1494,7 +1494,7 @@ function Qe(t, e) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
function yl(t, e, n, r) {
|
|
1496
1496
|
for (var s = [], i = e.length, a = 0; a < i; a++)
|
|
1497
|
-
|
|
1497
|
+
ys(e[a].e, s, !0);
|
|
1498
1498
|
var o = i > 0 && s.length === 0 && n !== null;
|
|
1499
1499
|
if (o) {
|
|
1500
1500
|
var c = (
|
|
@@ -1502,12 +1502,12 @@ function yl(t, e, n, r) {
|
|
|
1502
1502
|
/** @type {Element} */
|
|
1503
1503
|
n.parentNode
|
|
1504
1504
|
);
|
|
1505
|
-
|
|
1505
|
+
_s(c), c.append(
|
|
1506
1506
|
/** @type {Element} */
|
|
1507
1507
|
n
|
|
1508
1508
|
), r.clear(), Gt(t, e[0].prev, e[i - 1].next);
|
|
1509
1509
|
}
|
|
1510
|
-
|
|
1510
|
+
ea(s, () => {
|
|
1511
1511
|
for (var l = 0; l < i; l++) {
|
|
1512
1512
|
var u = e[l];
|
|
1513
1513
|
o || (r.delete(u.k), Gt(t, u.prev, u.next)), Lt(u.e, !o);
|
|
@@ -1515,7 +1515,7 @@ function yl(t, e, n, r) {
|
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
1517
1517
|
function Ke(t, e, n, r, s, i = null) {
|
|
1518
|
-
var a = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, c = (e &
|
|
1518
|
+
var a = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, c = (e & Li) !== 0;
|
|
1519
1519
|
if (c) {
|
|
1520
1520
|
var l = (
|
|
1521
1521
|
/** @type {Element} */
|
|
@@ -1527,33 +1527,33 @@ function Ke(t, e, n, r, s, i = null) {
|
|
|
1527
1527
|
) : l.appendChild(Qt());
|
|
1528
1528
|
}
|
|
1529
1529
|
de && xn();
|
|
1530
|
-
var u = null, d = !1, p = /* @__PURE__ */
|
|
1530
|
+
var u = null, d = !1, p = /* @__PURE__ */ Yi(() => {
|
|
1531
1531
|
var h = n();
|
|
1532
|
-
return kr(h) ? h : h == null ? [] :
|
|
1532
|
+
return kr(h) ? h : h == null ? [] : bs(h);
|
|
1533
1533
|
});
|
|
1534
1534
|
Sr(() => {
|
|
1535
1535
|
var h = f(p), w = h.length;
|
|
1536
1536
|
if (d && w === 0)
|
|
1537
1537
|
return;
|
|
1538
1538
|
d = w === 0;
|
|
1539
|
-
let
|
|
1539
|
+
let b = !1;
|
|
1540
1540
|
if (de) {
|
|
1541
1541
|
var S = (
|
|
1542
1542
|
/** @type {Comment} */
|
|
1543
|
-
a.data ===
|
|
1543
|
+
a.data === gs
|
|
1544
1544
|
);
|
|
1545
|
-
S !== (w === 0) && (a = Xr(), ht(a), Ut(!1),
|
|
1545
|
+
S !== (w === 0) && (a = Xr(), ht(a), Ut(!1), b = !0);
|
|
1546
1546
|
}
|
|
1547
1547
|
if (de) {
|
|
1548
1548
|
for (var x = null, _, y = 0; y < w; y++) {
|
|
1549
1549
|
if (we.nodeType === 8 && /** @type {Comment} */
|
|
1550
|
-
we.data ===
|
|
1550
|
+
we.data === ms) {
|
|
1551
1551
|
a = /** @type {Comment} */
|
|
1552
|
-
we,
|
|
1552
|
+
we, b = !0, Ut(!1);
|
|
1553
1553
|
break;
|
|
1554
1554
|
}
|
|
1555
1555
|
var F = h[y], $ = r(F, y);
|
|
1556
|
-
_ =
|
|
1556
|
+
_ = xa(
|
|
1557
1557
|
we,
|
|
1558
1558
|
o,
|
|
1559
1559
|
x,
|
|
@@ -1584,12 +1584,12 @@ function Ke(t, e, n, r, s, i = null) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
i !== null && (w === 0 ? u ? hr(u) : u = wn(() => i(a)) : u !== null && pr(u, () => {
|
|
1586
1586
|
u = null;
|
|
1587
|
-
})),
|
|
1587
|
+
})), b && Ut(!0), f(p);
|
|
1588
1588
|
}), de && (a = we);
|
|
1589
1589
|
}
|
|
1590
1590
|
function zl(t, e, n, r, s, i, a, o) {
|
|
1591
1591
|
var Ze, Xe, ut, gt;
|
|
1592
|
-
var c = (s & po) !== 0, l = (s & (
|
|
1592
|
+
var c = (s & po) !== 0, l = (s & (hs | vs)) !== 0, u = t.length, d = e.items, p = e.first, h = p, w, b = null, S, x = [], _ = [], y, F, $, A;
|
|
1593
1593
|
if (c)
|
|
1594
1594
|
for (A = 0; A < u; A += 1)
|
|
1595
1595
|
y = t[A], F = a(y, A), $ = d.get(F), $ !== void 0 && ((Ze = $.a) == null || Ze.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add($));
|
|
@@ -1599,32 +1599,32 @@ function zl(t, e, n, r, s, i, a, o) {
|
|
|
1599
1599
|
/** @type {TemplateNode} */
|
|
1600
1600
|
h.e.nodes_start
|
|
1601
1601
|
) : n;
|
|
1602
|
-
|
|
1602
|
+
b = xa(
|
|
1603
1603
|
L,
|
|
1604
1604
|
e,
|
|
1605
|
-
|
|
1606
|
-
|
|
1605
|
+
b,
|
|
1606
|
+
b === null ? e.first : b.next,
|
|
1607
1607
|
y,
|
|
1608
1608
|
F,
|
|
1609
1609
|
A,
|
|
1610
1610
|
r,
|
|
1611
1611
|
s
|
|
1612
|
-
), d.set(F,
|
|
1612
|
+
), d.set(F, b), x = [], _ = [], h = b.next;
|
|
1613
1613
|
continue;
|
|
1614
1614
|
}
|
|
1615
1615
|
if (l && $l($, y, A, s), $.e.f & It && (hr($.e), c && ((Xe = $.a) == null || Xe.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete($))), $ !== h) {
|
|
1616
1616
|
if (w !== void 0 && w.has($)) {
|
|
1617
1617
|
if (x.length < _.length) {
|
|
1618
1618
|
var M = _[0], H;
|
|
1619
|
-
|
|
1619
|
+
b = M.prev;
|
|
1620
1620
|
var le = x[0], Oe = x[x.length - 1];
|
|
1621
1621
|
for (H = 0; H < x.length; H += 1)
|
|
1622
|
-
|
|
1622
|
+
ni(x[H], M, n);
|
|
1623
1623
|
for (H = 0; H < _.length; H += 1)
|
|
1624
1624
|
w.delete(_[H]);
|
|
1625
|
-
Gt(e, le.prev, Oe.next), Gt(e,
|
|
1625
|
+
Gt(e, le.prev, Oe.next), Gt(e, b, le), Gt(e, Oe, M), h = M, b = Oe, A -= 1, x = [], _ = [];
|
|
1626
1626
|
} else
|
|
1627
|
-
w.delete($),
|
|
1627
|
+
w.delete($), ni($, h, n), Gt(e, $.prev, $.next), Gt(e, $, b === null ? e.first : b.next), Gt(e, b, $), b = $;
|
|
1628
1628
|
continue;
|
|
1629
1629
|
}
|
|
1630
1630
|
for (x = [], _ = []; h !== null && h.k !== F; )
|
|
@@ -1633,21 +1633,21 @@ function zl(t, e, n, r, s, i, a, o) {
|
|
|
1633
1633
|
continue;
|
|
1634
1634
|
$ = h;
|
|
1635
1635
|
}
|
|
1636
|
-
x.push($),
|
|
1636
|
+
x.push($), b = $, h = $.next;
|
|
1637
1637
|
}
|
|
1638
1638
|
if (h !== null || w !== void 0) {
|
|
1639
|
-
for (var je = w === void 0 ? [] :
|
|
1639
|
+
for (var je = w === void 0 ? [] : bs(w); h !== null; )
|
|
1640
1640
|
(i || !(h.e.f & It)) && je.push(h), h = h.next;
|
|
1641
1641
|
var ge = je.length;
|
|
1642
1642
|
if (ge > 0) {
|
|
1643
|
-
var
|
|
1643
|
+
var ce = s & Li && u === 0 ? n : null;
|
|
1644
1644
|
if (c) {
|
|
1645
1645
|
for (A = 0; A < ge; A += 1)
|
|
1646
1646
|
(ut = je[A].a) == null || ut.measure();
|
|
1647
1647
|
for (A = 0; A < ge; A += 1)
|
|
1648
1648
|
(gt = je[A].a) == null || gt.fix();
|
|
1649
1649
|
}
|
|
1650
|
-
yl(e, je,
|
|
1650
|
+
yl(e, je, ce, d);
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
1653
|
c && Tn(() => {
|
|
@@ -1655,17 +1655,17 @@ function zl(t, e, n, r, s, i, a, o) {
|
|
|
1655
1655
|
if (S !== void 0)
|
|
1656
1656
|
for ($ of S)
|
|
1657
1657
|
(R = $.a) == null || R.apply();
|
|
1658
|
-
}), pe.first = e.first && e.first.e, pe.last =
|
|
1658
|
+
}), pe.first = e.first && e.first.e, pe.last = b && b.e;
|
|
1659
1659
|
}
|
|
1660
1660
|
function $l(t, e, n, r) {
|
|
1661
|
-
r &
|
|
1661
|
+
r & hs && Zr(t.v, e), r & vs ? Zr(
|
|
1662
1662
|
/** @type {Value<number>} */
|
|
1663
1663
|
t.i,
|
|
1664
1664
|
n
|
|
1665
1665
|
) : t.i = n;
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1668
|
-
var u = (c &
|
|
1667
|
+
function xa(t, e, n, r, s, i, a, o, c, l) {
|
|
1668
|
+
var u = (c & hs) !== 0, d = (c & ho) === 0, p = u ? d ? /* @__PURE__ */ $r(s) : at(s) : s, h = c & vs ? at(a) : a, w = {
|
|
1669
1669
|
i: h,
|
|
1670
1670
|
v: p,
|
|
1671
1671
|
k: i,
|
|
@@ -1680,7 +1680,7 @@ function ba(t, e, n, r, s, i, a, o, c, l) {
|
|
|
1680
1680
|
} finally {
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function ni(t, e, n) {
|
|
1684
1684
|
for (var r = t.next ? (
|
|
1685
1685
|
/** @type {TemplateNode} */
|
|
1686
1686
|
t.next.e.nodes_start
|
|
@@ -1722,7 +1722,7 @@ function ss(t, e, n, r, s) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
var u = a + "";
|
|
1724
1724
|
n && (u = `<svg>${u}</svg>`);
|
|
1725
|
-
var d =
|
|
1725
|
+
var d = Ts(u);
|
|
1726
1726
|
if ((n || r) && (d = /** @type {Element} */
|
|
1727
1727
|
/* @__PURE__ */ lt(d)), _t(
|
|
1728
1728
|
/** @type {TemplateNode} */
|
|
@@ -1740,7 +1740,7 @@ function ss(t, e, n, r, s) {
|
|
|
1740
1740
|
}));
|
|
1741
1741
|
});
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function ue(t, e) {
|
|
1744
1744
|
Tn(() => {
|
|
1745
1745
|
var n = t.getRootNode(), r = (
|
|
1746
1746
|
/** @type {ShadowRoot} */
|
|
@@ -1759,17 +1759,17 @@ function ce(t, e) {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function wa(t) {
|
|
1763
1763
|
var e, n, r = "";
|
|
1764
1764
|
if (typeof t == "string" || typeof t == "number") r += t;
|
|
1765
1765
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1766
1766
|
var s = t.length;
|
|
1767
|
-
for (e = 0; e < s; e++) t[e] && (n =
|
|
1767
|
+
for (e = 0; e < s; e++) t[e] && (n = wa(t[e])) && (r && (r += " "), r += n);
|
|
1768
1768
|
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
1769
1769
|
return r;
|
|
1770
1770
|
}
|
|
1771
1771
|
function Tl() {
|
|
1772
|
-
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e =
|
|
1772
|
+
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = wa(t)) && (r && (r += " "), r += e);
|
|
1773
1773
|
return r;
|
|
1774
1774
|
}
|
|
1775
1775
|
function Ar(t) {
|
|
@@ -1789,7 +1789,7 @@ function Sl(t) {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
};
|
|
1792
|
-
t.__on_r = n, ol(n),
|
|
1792
|
+
t.__on_r = n, ol(n), fa();
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
function El(t, e) {
|
|
@@ -1804,14 +1804,14 @@ function Cl(t, e) {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
function N(t, e, n, r) {
|
|
1806
1806
|
var s = t.__attributes ?? (t.__attributes = {});
|
|
1807
|
-
de && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Po] = n), n == null ? t.removeAttribute(e) : typeof n != "string" &&
|
|
1807
|
+
de && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Po] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && _a(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function ri(t, e, n, r, s = !1, i = !1, a = !1) {
|
|
1810
1810
|
var o = e || {}, c = t.tagName === "OPTION";
|
|
1811
1811
|
for (var l in e)
|
|
1812
1812
|
l in n || (n[l] = null);
|
|
1813
1813
|
n.class && (n.class = Ar(n.class));
|
|
1814
|
-
var u =
|
|
1814
|
+
var u = _a(t), d = (
|
|
1815
1815
|
/** @type {Record<string, unknown>} **/
|
|
1816
1816
|
t.__attributes ?? (t.__attributes = {})
|
|
1817
1817
|
);
|
|
@@ -1841,7 +1841,7 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
|
|
|
1841
1841
|
let A = function(L) {
|
|
1842
1842
|
o[x].call(this, L);
|
|
1843
1843
|
};
|
|
1844
|
-
o[F] =
|
|
1844
|
+
o[F] = ga($, t, A, y);
|
|
1845
1845
|
}
|
|
1846
1846
|
else w && (t[`__${$}`] = void 0);
|
|
1847
1847
|
} else if (x === "style" && _ != null)
|
|
@@ -1861,25 +1861,25 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
|
|
|
1861
1861
|
_
|
|
1862
1862
|
);
|
|
1863
1863
|
else {
|
|
1864
|
-
var
|
|
1865
|
-
s || (
|
|
1866
|
-
var S =
|
|
1864
|
+
var b = x;
|
|
1865
|
+
s || (b = Eo(b));
|
|
1866
|
+
var S = b === "defaultValue" || b === "defaultChecked";
|
|
1867
1867
|
if (_ == null && !i && !S)
|
|
1868
|
-
if (d[x] = null,
|
|
1868
|
+
if (d[x] = null, b === "value" || b === "checked") {
|
|
1869
1869
|
let y = (
|
|
1870
1870
|
/** @type {HTMLInputElement} */
|
|
1871
1871
|
t
|
|
1872
1872
|
);
|
|
1873
|
-
if (
|
|
1873
|
+
if (b === "value") {
|
|
1874
1874
|
let F = y.defaultValue;
|
|
1875
|
-
y.removeAttribute(
|
|
1875
|
+
y.removeAttribute(b), y.defaultValue = F;
|
|
1876
1876
|
} else {
|
|
1877
1877
|
let F = y.defaultChecked;
|
|
1878
|
-
y.removeAttribute(
|
|
1878
|
+
y.removeAttribute(b), y.defaultChecked = F;
|
|
1879
1879
|
}
|
|
1880
1880
|
} else
|
|
1881
1881
|
t.removeAttribute(x);
|
|
1882
|
-
else S || u.includes(
|
|
1882
|
+
else S || u.includes(b) && (i || typeof _ != "string") ? t[b] = _ : typeof _ != "function" && (de && (b === "src" || b === "href" || b === "srcset") || N(t, b, _));
|
|
1883
1883
|
}
|
|
1884
1884
|
x === "style" && "__styles" in t && (t.__styles = {});
|
|
1885
1885
|
}
|
|
@@ -1887,16 +1887,16 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
return o;
|
|
1889
1889
|
}
|
|
1890
|
-
var
|
|
1891
|
-
function
|
|
1892
|
-
var e =
|
|
1890
|
+
var si = /* @__PURE__ */ new Map();
|
|
1891
|
+
function _a(t) {
|
|
1892
|
+
var e = si.get(t.nodeName);
|
|
1893
1893
|
if (e) return e;
|
|
1894
|
-
|
|
1894
|
+
si.set(t.nodeName, e = []);
|
|
1895
1895
|
for (var n, r = t, s = Element.prototype; s !== r; ) {
|
|
1896
|
-
n =
|
|
1896
|
+
n = Fi(r);
|
|
1897
1897
|
for (var i in n)
|
|
1898
1898
|
n[i].set && e.push(i);
|
|
1899
|
-
r =
|
|
1899
|
+
r = xs(r);
|
|
1900
1900
|
}
|
|
1901
1901
|
return e;
|
|
1902
1902
|
}
|
|
@@ -1927,15 +1927,15 @@ const Al = () => performance.now(), Nt = {
|
|
|
1927
1927
|
now: () => Al(),
|
|
1928
1928
|
tasks: /* @__PURE__ */ new Set()
|
|
1929
1929
|
};
|
|
1930
|
-
function
|
|
1930
|
+
function ka() {
|
|
1931
1931
|
const t = Nt.now();
|
|
1932
1932
|
Nt.tasks.forEach((e) => {
|
|
1933
1933
|
e.c(t) || (Nt.tasks.delete(e), e.f());
|
|
1934
|
-
}), Nt.tasks.size !== 0 && Nt.tick(
|
|
1934
|
+
}), Nt.tasks.size !== 0 && Nt.tick(ka);
|
|
1935
1935
|
}
|
|
1936
1936
|
function Ll(t) {
|
|
1937
1937
|
let e;
|
|
1938
|
-
return Nt.tasks.size === 0 && Nt.tick(
|
|
1938
|
+
return Nt.tasks.size === 0 && Nt.tick(ka), {
|
|
1939
1939
|
promise: new Promise((n) => {
|
|
1940
1940
|
Nt.tasks.add(e = { c: t, f: n });
|
|
1941
1941
|
}),
|
|
@@ -1957,7 +1957,7 @@ function jl(t) {
|
|
|
1957
1957
|
(n) => n[0].toUpperCase() + n.slice(1)
|
|
1958
1958
|
).join("");
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function ii(t) {
|
|
1961
1961
|
const e = {}, n = t.split(";");
|
|
1962
1962
|
for (const r of n) {
|
|
1963
1963
|
const [s, i] = r.split(":");
|
|
@@ -1982,7 +1982,7 @@ function bt(t, e, n, r) {
|
|
|
1982
1982
|
jt(y), kt(F);
|
|
1983
1983
|
}
|
|
1984
1984
|
}
|
|
1985
|
-
var
|
|
1985
|
+
var b = {
|
|
1986
1986
|
is_global: o,
|
|
1987
1987
|
in() {
|
|
1988
1988
|
var y;
|
|
@@ -2010,7 +2010,7 @@ function bt(t, e, n, r) {
|
|
|
2010
2010
|
/** @type {Effect} */
|
|
2011
2011
|
pe
|
|
2012
2012
|
);
|
|
2013
|
-
if ((S.transitions ?? (S.transitions = [])).push(
|
|
2013
|
+
if ((S.transitions ?? (S.transitions = [])).push(b), s && ns) {
|
|
2014
2014
|
var x = o;
|
|
2015
2015
|
if (!x) {
|
|
2016
2016
|
for (var _ = (
|
|
@@ -2019,10 +2019,10 @@ function bt(t, e, n, r) {
|
|
|
2019
2019
|
); _ && _.f & zr; )
|
|
2020
2020
|
for (; (_ = _.parent) && !(_.f & yr); )
|
|
2021
2021
|
;
|
|
2022
|
-
x = !_ || (_.f &
|
|
2022
|
+
x = !_ || (_.f & Oi) !== 0;
|
|
2023
2023
|
}
|
|
2024
2024
|
x && zn(() => {
|
|
2025
|
-
Rt(() =>
|
|
2025
|
+
Rt(() => b.in());
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
@@ -2054,11 +2054,11 @@ function is(t, e, n, r, s) {
|
|
|
2054
2054
|
const { delay: c = 0, css: l, tick: u, easing: d = Rl } = e;
|
|
2055
2055
|
var p = [];
|
|
2056
2056
|
if (i && n === void 0 && (u && u(0, 1), l)) {
|
|
2057
|
-
var h =
|
|
2057
|
+
var h = ii(l(0, 1));
|
|
2058
2058
|
p.push(h, h);
|
|
2059
2059
|
}
|
|
2060
|
-
var w = () => 1 - r,
|
|
2061
|
-
return
|
|
2060
|
+
var w = () => 1 - r, b = t.animate(p, { duration: c });
|
|
2061
|
+
return b.onfinish = () => {
|
|
2062
2062
|
var S = (n == null ? void 0 : n.t()) ?? 1 - r;
|
|
2063
2063
|
n == null || n.abort();
|
|
2064
2064
|
var x = r - S, _ = (
|
|
@@ -2069,28 +2069,28 @@ function is(t, e, n, r, s) {
|
|
|
2069
2069
|
var F = !1;
|
|
2070
2070
|
if (l)
|
|
2071
2071
|
for (var $ = Math.ceil(_ / 16.666666666666668), A = 0; A <= $; A += 1) {
|
|
2072
|
-
var L = S + x * d(A / $), M =
|
|
2072
|
+
var L = S + x * d(A / $), M = ii(l(L, 1 - L));
|
|
2073
2073
|
y.push(M), F || (F = M.overflow === "hidden");
|
|
2074
2074
|
}
|
|
2075
2075
|
F && (t.style.overflow = "hidden"), w = () => {
|
|
2076
2076
|
var H = (
|
|
2077
2077
|
/** @type {number} */
|
|
2078
2078
|
/** @type {globalThis.Animation} */
|
|
2079
|
-
|
|
2079
|
+
b.currentTime
|
|
2080
2080
|
);
|
|
2081
2081
|
return S + x * d(H / _);
|
|
2082
2082
|
}, u && Ll(() => {
|
|
2083
|
-
if (
|
|
2083
|
+
if (b.playState !== "running") return !1;
|
|
2084
2084
|
var H = w();
|
|
2085
2085
|
return u(H, 1 - H), !0;
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
|
-
|
|
2088
|
+
b = t.animate(y, { duration: _, fill: "forwards" }), b.onfinish = () => {
|
|
2089
2089
|
w = () => r, u == null || u(r, 1 - r), s();
|
|
2090
2090
|
};
|
|
2091
2091
|
}, {
|
|
2092
2092
|
abort: () => {
|
|
2093
|
-
|
|
2093
|
+
b && (b.cancel(), b.effect = null, b.onfinish = In);
|
|
2094
2094
|
},
|
|
2095
2095
|
deactivate: () => {
|
|
2096
2096
|
s = In;
|
|
@@ -2103,7 +2103,7 @@ function is(t, e, n, r, s) {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
function Fl(t, e, n = e) {
|
|
2105
2105
|
var r = Jn();
|
|
2106
|
-
|
|
2106
|
+
ha(t, "input", (s) => {
|
|
2107
2107
|
var i = s ? t.defaultValue : t.value;
|
|
2108
2108
|
if (i = qr(t) ? Hr(i) : i, n(i), r && i !== (i = e())) {
|
|
2109
2109
|
var a = t.selectionStart, o = t.selectionEnd;
|
|
@@ -2125,7 +2125,7 @@ function qr(t) {
|
|
|
2125
2125
|
function Hr(t) {
|
|
2126
2126
|
return t === "" ? null : +t;
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function ya(t, e, n) {
|
|
2129
2129
|
if (t.multiple)
|
|
2130
2130
|
return Ol(t, e);
|
|
2131
2131
|
for (var r of t.options) {
|
|
@@ -2141,7 +2141,7 @@ function Dl(t, e) {
|
|
|
2141
2141
|
zn(() => {
|
|
2142
2142
|
var n = new MutationObserver(() => {
|
|
2143
2143
|
var r = t.__value;
|
|
2144
|
-
|
|
2144
|
+
ya(t, r);
|
|
2145
2145
|
});
|
|
2146
2146
|
return n.observe(t, {
|
|
2147
2147
|
// Listen to option element changes
|
|
@@ -2158,9 +2158,9 @@ function Dl(t, e) {
|
|
|
2158
2158
|
};
|
|
2159
2159
|
});
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function za(t, e, n = e) {
|
|
2162
2162
|
var r = !0;
|
|
2163
|
-
|
|
2163
|
+
ha(t, "change", (s) => {
|
|
2164
2164
|
var i = s ? "[selected]" : ":checked", a;
|
|
2165
2165
|
if (t.multiple)
|
|
2166
2166
|
a = [].map.call(t.querySelectorAll(i), Dn);
|
|
@@ -2172,7 +2172,7 @@ function ya(t, e, n = e) {
|
|
|
2172
2172
|
n(a);
|
|
2173
2173
|
}), zn(() => {
|
|
2174
2174
|
var s = e();
|
|
2175
|
-
if (
|
|
2175
|
+
if (ya(t, s, r), r && s === void 0) {
|
|
2176
2176
|
var i = t.querySelector(":checked");
|
|
2177
2177
|
i !== null && (s = Dn(i), n(s));
|
|
2178
2178
|
}
|
|
@@ -2186,7 +2186,7 @@ function Ol(t, e) {
|
|
|
2186
2186
|
function Dn(t) {
|
|
2187
2187
|
return "__value" in t ? t.__value : t.value;
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function ai(t, e) {
|
|
2190
2190
|
return t === e || (t == null ? void 0 : t[qt]) === e;
|
|
2191
2191
|
}
|
|
2192
2192
|
function as(t = {}, e, n, r) {
|
|
@@ -2194,11 +2194,11 @@ function as(t = {}, e, n, r) {
|
|
|
2194
2194
|
var s, i;
|
|
2195
2195
|
return $n(() => {
|
|
2196
2196
|
s = i, i = [], Rt(() => {
|
|
2197
|
-
t !== n(...i) && (e(t, ...i), s &&
|
|
2197
|
+
t !== n(...i) && (e(t, ...i), s && ai(n(...s), t) && e(null, ...s));
|
|
2198
2198
|
});
|
|
2199
2199
|
}), () => {
|
|
2200
2200
|
Tn(() => {
|
|
2201
|
-
i &&
|
|
2201
|
+
i && ai(n(...i), t) && e(null, ...i);
|
|
2202
2202
|
});
|
|
2203
2203
|
};
|
|
2204
2204
|
}), t;
|
|
@@ -2225,7 +2225,7 @@ function ct(t = !1) {
|
|
|
2225
2225
|
r = () => f(a);
|
|
2226
2226
|
}
|
|
2227
2227
|
n.b.length && nl(() => {
|
|
2228
|
-
|
|
2228
|
+
oi(e, r), ur(n.b);
|
|
2229
2229
|
}), Ct(() => {
|
|
2230
2230
|
const s = Rt(() => n.m.map(Fo));
|
|
2231
2231
|
return () => {
|
|
@@ -2233,16 +2233,16 @@ function ct(t = !1) {
|
|
|
2233
2233
|
typeof i == "function" && i();
|
|
2234
2234
|
};
|
|
2235
2235
|
}), n.a.length && Ct(() => {
|
|
2236
|
-
|
|
2236
|
+
oi(e, r), ur(n.a);
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function oi(t, e) {
|
|
2240
2240
|
if (t.l.s)
|
|
2241
2241
|
for (const n of t.l.s) f(n);
|
|
2242
2242
|
e();
|
|
2243
2243
|
}
|
|
2244
2244
|
function Lr(t) {
|
|
2245
|
-
Se === null &&
|
|
2245
|
+
Se === null && zs(), yn && Se.l !== null ? Ul(Se).m.push(t) : Ct(() => {
|
|
2246
2246
|
const e = Rt(t);
|
|
2247
2247
|
if (typeof e == "function") return (
|
|
2248
2248
|
/** @type {() => void} */
|
|
@@ -2251,14 +2251,14 @@ function Lr(t) {
|
|
|
2251
2251
|
});
|
|
2252
2252
|
}
|
|
2253
2253
|
function Pl(t) {
|
|
2254
|
-
Se === null &&
|
|
2254
|
+
Se === null && zs(), Lr(() => () => Rt(t));
|
|
2255
2255
|
}
|
|
2256
2256
|
function Ml(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
2257
2257
|
return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
|
|
2258
2258
|
}
|
|
2259
2259
|
function Nl() {
|
|
2260
2260
|
const t = Se;
|
|
2261
|
-
return t === null &&
|
|
2261
|
+
return t === null && zs(), (e, n, r) => {
|
|
2262
2262
|
var i;
|
|
2263
2263
|
const s = (
|
|
2264
2264
|
/** @type {Record<string, Function | Function[]>} */
|
|
@@ -2311,7 +2311,7 @@ const ql = {
|
|
|
2311
2311
|
},
|
|
2312
2312
|
/** @type {string} */
|
|
2313
2313
|
e,
|
|
2314
|
-
|
|
2314
|
+
ji
|
|
2315
2315
|
)), t.special[e](n), Bn(t.version), !0;
|
|
2316
2316
|
},
|
|
2317
2317
|
getOwnPropertyDescriptor(t, e) {
|
|
@@ -2335,7 +2335,7 @@ const ql = {
|
|
|
2335
2335
|
function Hl(t, e) {
|
|
2336
2336
|
return new Proxy({ props: t, exclude: e, special: {}, version: at(0) }, ql);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function li(t) {
|
|
2339
2339
|
for (var e = pe, n = pe; e !== null && !(e.f & (Ft | un)); )
|
|
2340
2340
|
e = e.parent;
|
|
2341
2341
|
try {
|
|
@@ -2352,15 +2352,15 @@ function g(t, e, n, r) {
|
|
|
2352
2352
|
t[e]
|
|
2353
2353
|
)) : l = /** @type {V} */
|
|
2354
2354
|
t[e];
|
|
2355
|
-
var u = qt in t ||
|
|
2355
|
+
var u = qt in t || Mi in t, d = a && (((L = an(t, e)) == null ? void 0 : L.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, p = (
|
|
2356
2356
|
/** @type {V} */
|
|
2357
2357
|
r
|
|
2358
|
-
), h = !0, w = !1,
|
|
2358
|
+
), h = !0, w = !1, b = () => (w = !0, h && (h = !1, o ? p = Rt(
|
|
2359
2359
|
/** @type {() => V} */
|
|
2360
2360
|
r
|
|
2361
2361
|
) : p = /** @type {V} */
|
|
2362
2362
|
r), p);
|
|
2363
|
-
l === void 0 && r !== void 0 && (d && i && Yo(), l =
|
|
2363
|
+
l === void 0 && r !== void 0 && (d && i && Yo(), l = b(), d && d(l));
|
|
2364
2364
|
var S;
|
|
2365
2365
|
if (i)
|
|
2366
2366
|
S = () => {
|
|
@@ -2368,11 +2368,11 @@ function g(t, e, n, r) {
|
|
|
2368
2368
|
/** @type {V} */
|
|
2369
2369
|
t[e]
|
|
2370
2370
|
);
|
|
2371
|
-
return M === void 0 ?
|
|
2371
|
+
return M === void 0 ? b() : (h = !0, w = !1, M);
|
|
2372
2372
|
};
|
|
2373
2373
|
else {
|
|
2374
|
-
var x =
|
|
2375
|
-
() => (s ? qe :
|
|
2374
|
+
var x = li(
|
|
2375
|
+
() => (s ? qe : Yi)(() => (
|
|
2376
2376
|
/** @type {V} */
|
|
2377
2377
|
t[e]
|
|
2378
2378
|
))
|
|
@@ -2383,7 +2383,7 @@ function g(t, e, n, r) {
|
|
|
2383
2383
|
void 0), M === void 0 ? p : M;
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
if (!(n &
|
|
2386
|
+
if (!(n & ji))
|
|
2387
2387
|
return S;
|
|
2388
2388
|
if (d) {
|
|
2389
2389
|
var _ = t.$$legacy;
|
|
@@ -2391,16 +2391,16 @@ function g(t, e, n, r) {
|
|
|
2391
2391
|
return arguments.length > 0 ? ((!i || !H || _ || c) && d(H ? S() : M), M) : S();
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
var y = !1, F = !1, $ = /* @__PURE__ */ $r(l), A =
|
|
2394
|
+
var y = !1, F = !1, $ = /* @__PURE__ */ $r(l), A = li(
|
|
2395
2395
|
() => /* @__PURE__ */ qe(() => {
|
|
2396
2396
|
var M = S(), H = f($);
|
|
2397
2397
|
return y ? (y = !1, F = !0, H) : (F = !1, $.v = M);
|
|
2398
2398
|
})
|
|
2399
2399
|
);
|
|
2400
|
-
return s || (A.equals =
|
|
2400
|
+
return s || (A.equals = ws), function(M, H) {
|
|
2401
2401
|
if (arguments.length > 0) {
|
|
2402
2402
|
const le = H ? f(A) : i && a ? C(M) : M;
|
|
2403
|
-
return A.equals(le) || (y = !0,
|
|
2403
|
+
return A.equals(le) || (y = !0, m($, le), w && p !== void 0 && (p = le), Rt(() => f(A))), M;
|
|
2404
2404
|
}
|
|
2405
2405
|
return f(A);
|
|
2406
2406
|
};
|
|
@@ -2432,14 +2432,14 @@ class Gl {
|
|
|
2432
2432
|
return f(n.get(o) ?? r(o, Reflect.get(a, o)));
|
|
2433
2433
|
},
|
|
2434
2434
|
has(a, o) {
|
|
2435
|
-
return o ===
|
|
2435
|
+
return o === Mi ? !0 : (f(n.get(o) ?? r(o, Reflect.get(a, o))), Reflect.has(a, o));
|
|
2436
2436
|
},
|
|
2437
2437
|
set(a, o, c) {
|
|
2438
|
-
return
|
|
2438
|
+
return m(n.get(o) ?? r(o, c), c), Reflect.set(a, o, c);
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
2441
|
);
|
|
2442
|
-
Nr(this, mt, (e.hydrate ? _l :
|
|
2442
|
+
Nr(this, mt, (e.hydrate ? _l : ma)(e.component, {
|
|
2443
2443
|
target: e.target,
|
|
2444
2444
|
anchor: e.anchor,
|
|
2445
2445
|
props: s,
|
|
@@ -2489,8 +2489,8 @@ class Gl {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
Mt = new WeakMap(), mt = new WeakMap();
|
|
2492
|
-
let
|
|
2493
|
-
typeof HTMLElement == "function" && (
|
|
2492
|
+
let $a;
|
|
2493
|
+
typeof HTMLElement == "function" && ($a = class extends HTMLElement {
|
|
2494
2494
|
/**
|
|
2495
2495
|
* @param {*} $$componentCtor
|
|
2496
2496
|
* @param {*} $$slots
|
|
@@ -2661,7 +2661,7 @@ function Jl(t) {
|
|
|
2661
2661
|
}), e;
|
|
2662
2662
|
}
|
|
2663
2663
|
function oe(t, e, n, r, s, i) {
|
|
2664
|
-
let a = class extends
|
|
2664
|
+
let a = class extends $a {
|
|
2665
2665
|
constructor() {
|
|
2666
2666
|
super(t, n, s), this.$$p_d = e;
|
|
2667
2667
|
}
|
|
@@ -2697,11 +2697,11 @@ function oe(t, e, n, r, s, i) {
|
|
|
2697
2697
|
a, a;
|
|
2698
2698
|
}
|
|
2699
2699
|
const Wl = (t) => t;
|
|
2700
|
-
function
|
|
2700
|
+
function Ss(t) {
|
|
2701
2701
|
const e = t - 1;
|
|
2702
2702
|
return e * e * e + 1;
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function ci(t) {
|
|
2705
2705
|
const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
2706
2706
|
return e ? [parseFloat(e[1]), e[2] || "px"] : [
|
|
2707
2707
|
/** @type {number} */
|
|
@@ -2718,24 +2718,24 @@ function Bt(t, { delay: e = 0, duration: n = 400, easing: r = Wl } = {}) {
|
|
|
2718
2718
|
css: (i) => `opacity: ${i * s}`
|
|
2719
2719
|
};
|
|
2720
2720
|
}
|
|
2721
|
-
function Zl(t, { delay: e = 0, duration: n = 400, easing: r =
|
|
2722
|
-
const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - a), [d, p] =
|
|
2721
|
+
function Zl(t, { delay: e = 0, duration: n = 400, easing: r = Ss, x: s = 0, y: i = 0, opacity: a = 0 } = {}) {
|
|
2722
|
+
const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - a), [d, p] = ci(s), [h, w] = ci(i);
|
|
2723
2723
|
return {
|
|
2724
2724
|
delay: e,
|
|
2725
2725
|
duration: n,
|
|
2726
2726
|
easing: r,
|
|
2727
|
-
css: (
|
|
2728
|
-
transform: ${l} translate(${(1 -
|
|
2727
|
+
css: (b, S) => `
|
|
2728
|
+
transform: ${l} translate(${(1 - b) * d}${p}, ${(1 - b) * h}${w});
|
|
2729
2729
|
opacity: ${c - u * S}`
|
|
2730
2730
|
};
|
|
2731
2731
|
}
|
|
2732
|
-
function Xl(t, { delay: e = 0, duration: n = 400, easing: r =
|
|
2732
|
+
function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ss, axis: s = "y" } = {}) {
|
|
2733
2733
|
const i = getComputedStyle(t), a = +i.opacity, o = s === "y" ? "height" : "width", c = parseFloat(i[o]), l = s === "y" ? ["top", "bottom"] : ["left", "right"], u = l.map(
|
|
2734
2734
|
(x) => (
|
|
2735
2735
|
/** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
|
|
2736
2736
|
`${x[0].toUpperCase()}${x.slice(1)}`
|
|
2737
2737
|
)
|
|
2738
|
-
), d = parseFloat(i[`padding${u[0]}`]), p = parseFloat(i[`padding${u[1]}`]), h = parseFloat(i[`margin${u[0]}`]), w = parseFloat(i[`margin${u[1]}`]),
|
|
2738
|
+
), d = parseFloat(i[`padding${u[0]}`]), p = parseFloat(i[`padding${u[1]}`]), h = parseFloat(i[`margin${u[0]}`]), w = parseFloat(i[`margin${u[1]}`]), b = parseFloat(
|
|
2739
2739
|
i[`border${u[0]}Width`]
|
|
2740
2740
|
), S = parseFloat(
|
|
2741
2741
|
i[`border${u[1]}Width`]
|
|
@@ -2744,10 +2744,10 @@ function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, axis: s = "y"
|
|
|
2744
2744
|
delay: e,
|
|
2745
2745
|
duration: n,
|
|
2746
2746
|
easing: r,
|
|
2747
|
-
css: (x) => `overflow: hidden;opacity: ${Math.min(x * 20, 1) * a};${o}: ${x * c}px;padding-${l[0]}: ${x * d}px;padding-${l[1]}: ${x * p}px;margin-${l[0]}: ${x * h}px;margin-${l[1]}: ${x * w}px;border-${l[0]}-width: ${x *
|
|
2747
|
+
css: (x) => `overflow: hidden;opacity: ${Math.min(x * 20, 1) * a};${o}: ${x * c}px;padding-${l[0]}: ${x * d}px;padding-${l[1]}: ${x * p}px;margin-${l[0]}: ${x * h}px;margin-${l[1]}: ${x * w}px;border-${l[0]}-width: ${x * b}px;border-${l[1]}-width: ${x * S}px;min-${o}: 0`
|
|
2748
2748
|
};
|
|
2749
2749
|
}
|
|
2750
|
-
function Vl(t, { delay: e = 0, duration: n = 400, easing: r =
|
|
2750
|
+
function Vl(t, { delay: e = 0, duration: n = 400, easing: r = Ss, start: s = 0, opacity: i = 0 } = {}) {
|
|
2751
2751
|
const a = getComputedStyle(t), o = +a.opacity, c = a.transform === "none" ? "" : a.transform, l = 1 - s, u = o * (1 - i);
|
|
2752
2752
|
return {
|
|
2753
2753
|
delay: e,
|
|
@@ -2781,7 +2781,7 @@ class Zt {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
static fromJson(e) {
|
|
2783
2783
|
var n;
|
|
2784
|
-
return new Zt(e.timeStamp, e.sentByUser, e.content, e.html, ((n = e.attachments) == null ? void 0 : n.map((r) =>
|
|
2784
|
+
return new Zt(e.timeStamp, e.sentByUser, e.content, e.html, ((n = e.attachments) == null ? void 0 : n.map((r) => Es.fromJson(r))) ?? [], e.agentUsed);
|
|
2785
2785
|
}
|
|
2786
2786
|
static firstMessage(e = "it", n = "", r = "") {
|
|
2787
2787
|
let s = [], i = "AInstein";
|
|
@@ -2827,7 +2827,7 @@ class Zt {
|
|
|
2827
2827
|
return new Zt(0, !1, o, c);
|
|
2828
2828
|
}
|
|
2829
2829
|
}
|
|
2830
|
-
class
|
|
2830
|
+
class Es {
|
|
2831
2831
|
constructor(e, n, r, s, i, a = "Documento Comune") {
|
|
2832
2832
|
I(this, "filename");
|
|
2833
2833
|
I(this, "external_id");
|
|
@@ -2848,7 +2848,7 @@ class Ss {
|
|
|
2848
2848
|
};
|
|
2849
2849
|
}
|
|
2850
2850
|
static fromJson(e) {
|
|
2851
|
-
return new
|
|
2851
|
+
return new Es(e.filename, e.external_id, e.path || "", e.gendoc_id, e.isCommon, e.commonType);
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
2854
|
class on {
|
|
@@ -2884,9 +2884,9 @@ const Ql = "it", Kl = (
|
|
|
2884
2884
|
);
|
|
2885
2885
|
let X = () => Ql;
|
|
2886
2886
|
const ec = (t) => {
|
|
2887
|
-
typeof t == "function" ? X =
|
|
2887
|
+
typeof t == "function" ? X = ui(t) : X = ui(() => t);
|
|
2888
2888
|
};
|
|
2889
|
-
function
|
|
2889
|
+
function ui(t) {
|
|
2890
2890
|
return () => {
|
|
2891
2891
|
const e = t();
|
|
2892
2892
|
if (!tc(e))
|
|
@@ -2906,7 +2906,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
|
|
|
2906
2906
|
})[e.languageTag ?? X()](), Ru = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2907
2907
|
en: Gc,
|
|
2908
2908
|
it: sc
|
|
2909
|
-
})[e.languageTag ?? X()](),
|
|
2909
|
+
})[e.languageTag ?? X()](), Ta = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2910
2910
|
en: Jc,
|
|
2911
2911
|
it: ic
|
|
2912
2912
|
})[e.languageTag ?? X()](), Fu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2933,10 +2933,10 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
|
|
|
2933
2933
|
})[e.languageTag ?? X()](), Bu = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
|
|
2934
2934
|
en: tu,
|
|
2935
2935
|
it: pc
|
|
2936
|
-
})[e.languageTag ?? X()](t),
|
|
2936
|
+
})[e.languageTag ?? X()](t), Sa = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2937
2937
|
en: nu,
|
|
2938
2938
|
it: hc
|
|
2939
|
-
})[e.languageTag ?? X()](),
|
|
2939
|
+
})[e.languageTag ?? X()](), Ea = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2940
2940
|
en: ru,
|
|
2941
2941
|
it: vc
|
|
2942
2942
|
})[e.languageTag ?? X()](), qu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2954,13 +2954,13 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
|
|
|
2954
2954
|
})[e.languageTag ?? X()](), Ju = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2955
2955
|
en: lu,
|
|
2956
2956
|
it: wc
|
|
2957
|
-
})[e.languageTag ?? X()](),
|
|
2957
|
+
})[e.languageTag ?? X()](), di = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2958
2958
|
en: cu,
|
|
2959
2959
|
it: _c
|
|
2960
2960
|
})[e.languageTag ?? X()](), Wu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2961
2961
|
en: uu,
|
|
2962
2962
|
it: kc
|
|
2963
|
-
})[e.languageTag ?? X()](),
|
|
2963
|
+
})[e.languageTag ?? X()](), fi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2964
2964
|
en: du,
|
|
2965
2965
|
it: yc
|
|
2966
2966
|
})[e.languageTag ?? X()](), Zu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2972,7 +2972,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
|
|
|
2972
2972
|
})[e.languageTag ?? X()](), Vu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2973
2973
|
en: hu,
|
|
2974
2974
|
it: Tc
|
|
2975
|
-
})[e.languageTag ?? X()](),
|
|
2975
|
+
})[e.languageTag ?? X()](), os = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2976
2976
|
en: vu,
|
|
2977
2977
|
it: Sc
|
|
2978
2978
|
})[e.languageTag ?? X()](), Qu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2981,7 +2981,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
|
|
|
2981
2981
|
})[e.languageTag ?? X()](), Ku = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2982
2982
|
en: mu,
|
|
2983
2983
|
it: Cc
|
|
2984
|
-
})[e.languageTag ?? X()](),
|
|
2984
|
+
})[e.languageTag ?? X()](), pi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2985
2985
|
en: bu,
|
|
2986
2986
|
it: Ic
|
|
2987
2987
|
})[e.languageTag ?? X()](), ed = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -3005,7 +3005,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
|
|
|
3005
3005
|
})[e.languageTag ?? X()](), sd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3006
3006
|
en: $u,
|
|
3007
3007
|
it: Oc
|
|
3008
|
-
})[e.languageTag ?? X()](),
|
|
3008
|
+
})[e.languageTag ?? X()](), hi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3009
3009
|
en: Tu,
|
|
3010
3010
|
it: Pc
|
|
3011
3011
|
})[e.languageTag ?? X()](), id = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
|
|
@@ -3037,14 +3037,14 @@ const md = {
|
|
|
3037
3037
|
code: "header.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;height:50px;border-radius:30px 30px 0 0;}.header-left.svelte-ib8fo5 {display:flex;align-items:center;gap:12px;}h1.svelte-ib8fo5 {font-size:1.5rem;color:#fff;}.language-select.svelte-ib8fo5 {padding:5px;border-radius:5px;border:none;background:#3c4450;color:white;font-size:20px;font-weight:900;transition:200ms;}.language-select.svelte-ib8fo5:hover {background:#576374;cursor:pointer;}section.svelte-ib8fo5 {display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px;}.buttons.svelte-ib8fo5 {display:flex;gap:10px;}button.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:30px;transition:200ms;}.new-chat.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;padding:0;}.new-chat.svelte-ib8fo5:hover {background:#1e3a8a;}.history-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;font-weight:bold;}.history-button.svelte-ib8fo5:hover {background:#1e3a8a;}.close-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;}.close-button.svelte-ib8fo5:hover {background:red;}"
|
|
3038
3038
|
};
|
|
3039
3039
|
function Ia(t, e) {
|
|
3040
|
-
ie(e, !0),
|
|
3040
|
+
ie(e, !0), ue(t, md);
|
|
3041
3041
|
let n = g(e, "show", 15, !1), r = g(e, "showHistory", 15), s = g(e, "actChat", 15), i = g(e, "muted", 15), a = g(e, "languageSelected", 15), o = g(e, "username", 15), c = g(e, "error", 15), l = g(e, "newChat", 7);
|
|
3042
3042
|
Lr(() => {
|
|
3043
3043
|
});
|
|
3044
3044
|
var u = gd(), d = z(u), p = z(d), h = P(z(p), 2), w = z(h);
|
|
3045
3045
|
w.value = (w.__value = "it") == null ? "" : "it";
|
|
3046
|
-
var
|
|
3047
|
-
|
|
3046
|
+
var b = P(w);
|
|
3047
|
+
b.value = (b.__value = "en") == null ? "" : "en", k(h), k(p);
|
|
3048
3048
|
var S = P(p, 2), x = z(S);
|
|
3049
3049
|
{
|
|
3050
3050
|
var _ = (L) => {
|
|
@@ -3076,12 +3076,12 @@ function Ia(t, e) {
|
|
|
3076
3076
|
N(F, "title", L), N($, "title", M), N($, "aria-label", H), N(A, "title", le), N(A, "aria-label", le);
|
|
3077
3077
|
},
|
|
3078
3078
|
[
|
|
3079
|
-
() => /* @__PURE__ */ Ta(),
|
|
3080
3079
|
() => /* @__PURE__ */ Sa(),
|
|
3080
|
+
() => /* @__PURE__ */ Ea(),
|
|
3081
3081
|
() => /* @__PURE__ */ Yu(),
|
|
3082
3082
|
() => /* @__PURE__ */ Gu()
|
|
3083
3083
|
]
|
|
3084
|
-
),
|
|
3084
|
+
), za(h, a), bt(3, u, () => Bt, () => ({ duration: 300 })), T(t, u), ae({
|
|
3085
3085
|
get show() {
|
|
3086
3086
|
return n();
|
|
3087
3087
|
},
|
|
@@ -3438,7 +3438,7 @@ function Ed(t) {
|
|
|
3438
3438
|
return "https://versioneditorfs-573906316236.europe-west1.run.app";
|
|
3439
3439
|
}
|
|
3440
3440
|
}
|
|
3441
|
-
const
|
|
3441
|
+
const Cs = (t) => {
|
|
3442
3442
|
switch (t) {
|
|
3443
3443
|
case "aks_svi":
|
|
3444
3444
|
return "sviluppo";
|
|
@@ -3472,7 +3472,7 @@ const Es = (t) => {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
}, Id = () => {
|
|
3474
3474
|
let t = U.getEnvironmentId();
|
|
3475
|
-
return t == "aks_svi" ? "https://mike.aksiliasuite.com/pages/editor_documenti/" : `https://${
|
|
3475
|
+
return t == "aks_svi" ? "https://mike.aksiliasuite.com/pages/editor_documenti/" : `https://${Cs(t)}.aksiliasuite.com/pages/editor_documenti/`;
|
|
3476
3476
|
}, Ad = (t) => {
|
|
3477
3477
|
let e = U.getEnvironmentId(), n = U.getToken();
|
|
3478
3478
|
return `${Cd(e)}/it/edit/${t}?token=${n}&envId=${e}`;
|
|
@@ -3502,7 +3502,10 @@ const jd = async (t) => {
|
|
|
3502
3502
|
let o = i.result[0].file_content;
|
|
3503
3503
|
if (a.endsWith(".akd")) {
|
|
3504
3504
|
const u = `${Ed(e)}/api/download/${t.split("_")[1]}?token=${n}&envId=aks_${t.split("_")[0]}`, d = await fetch(u, {
|
|
3505
|
-
method: "GET"
|
|
3505
|
+
method: "GET",
|
|
3506
|
+
headers: {
|
|
3507
|
+
"ngrok-skip-browser-warning": "true"
|
|
3508
|
+
}
|
|
3506
3509
|
});
|
|
3507
3510
|
if (!d.ok)
|
|
3508
3511
|
throw new Error(`Failed to fetch document: ${d.status} - ${d.statusText}`);
|
|
@@ -3539,7 +3542,7 @@ const jd = async (t) => {
|
|
|
3539
3542
|
function: "edit"
|
|
3540
3543
|
});
|
|
3541
3544
|
}, Dd = async () => {
|
|
3542
|
-
let t = U.getEnvironmentId(), e = `https://${
|
|
3545
|
+
let t = U.getEnvironmentId(), e = `https://${Cs(t)}.aksiliasuite.com/api/v1/operatore`;
|
|
3543
3546
|
t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/operatore");
|
|
3544
3547
|
const n = await fetch(e, {
|
|
3545
3548
|
headers: {
|
|
@@ -3552,7 +3555,7 @@ const jd = async (t) => {
|
|
|
3552
3555
|
const r = await n.text();
|
|
3553
3556
|
return JSON.parse(r).result[0].nome;
|
|
3554
3557
|
}, Od = async () => {
|
|
3555
|
-
let t = U.getEnvironmentId(), e = `https://${
|
|
3558
|
+
let t = U.getEnvironmentId(), e = `https://${Cs(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
|
|
3556
3559
|
t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/check_permission/assessment");
|
|
3557
3560
|
let n = await fetch(e, {
|
|
3558
3561
|
method: "GET",
|
|
@@ -3662,7 +3665,7 @@ const jd = async (t) => {
|
|
|
3662
3665
|
getGenDocs: Ud,
|
|
3663
3666
|
getTranscriptions: Bd,
|
|
3664
3667
|
getMeetingSingle: qd
|
|
3665
|
-
},
|
|
3668
|
+
}, Is = (t) => {
|
|
3666
3669
|
switch (t) {
|
|
3667
3670
|
case "en":
|
|
3668
3671
|
return "en-US";
|
|
@@ -3671,7 +3674,7 @@ const jd = async (t) => {
|
|
|
3671
3674
|
}
|
|
3672
3675
|
}, Hd = async (t, e) => {
|
|
3673
3676
|
const n = new FormData();
|
|
3674
|
-
n.append("file", t), n.append("lang",
|
|
3677
|
+
n.append("file", t), n.append("lang", Is(e));
|
|
3675
3678
|
const r = await fetch(`${U.getUrl()}/audio/stt`, {
|
|
3676
3679
|
method: "POST",
|
|
3677
3680
|
headers: {
|
|
@@ -3691,13 +3694,13 @@ const jd = async (t) => {
|
|
|
3691
3694
|
"ngrok-skip-browser-warning": "true",
|
|
3692
3695
|
"Content-Type": "application/json"
|
|
3693
3696
|
},
|
|
3694
|
-
body: JSON.stringify({ text: t, lang:
|
|
3697
|
+
body: JSON.stringify({ text: t, lang: Is(e) })
|
|
3695
3698
|
});
|
|
3696
3699
|
if (!n.ok)
|
|
3697
3700
|
throw new Error("Failed to fetch audio");
|
|
3698
3701
|
const r = await n.blob();
|
|
3699
3702
|
return URL.createObjectURL(r);
|
|
3700
|
-
},
|
|
3703
|
+
}, As = {
|
|
3701
3704
|
getText: Hd,
|
|
3702
3705
|
getAudio: Yd
|
|
3703
3706
|
};
|
|
@@ -3717,7 +3720,7 @@ const Jd = {
|
|
|
3717
3720
|
}`
|
|
3718
3721
|
};
|
|
3719
3722
|
function Wd(t, e) {
|
|
3720
|
-
ie(e, !1),
|
|
3723
|
+
ie(e, !1), ue(t, Jd);
|
|
3721
3724
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.75s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
3722
3725
|
var o = Gd();
|
|
3723
3726
|
return O(() => {
|
|
@@ -3789,7 +3792,7 @@ const Xd = {
|
|
|
3789
3792
|
}`
|
|
3790
3793
|
};
|
|
3791
3794
|
function Vd(t, e) {
|
|
3792
|
-
ie(e, !1),
|
|
3795
|
+
ie(e, !1), ue(t, Xd);
|
|
3793
3796
|
let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), i = g(e, "colorOuter", 12, "#FF3E00"), a = g(e, "colorCenter", 12, "#40B3FF"), o = g(e, "colorInner", 12, "#676778"), c = g(e, "durationMultiplier", 12, 1), l = g(e, "durationOuter", 28, () => `${c() * 2}s`), u = g(e, "durationInner", 28, () => `${c() * 1.5}s`), d = g(e, "durationCenter", 28, () => `${c() * 3}s`);
|
|
3794
3797
|
var p = Zd();
|
|
3795
3798
|
return O(() => {
|
|
@@ -3908,13 +3911,13 @@ const Kd = {
|
|
|
3908
3911
|
}`
|
|
3909
3912
|
};
|
|
3910
3913
|
function ef(t, e) {
|
|
3911
|
-
ie(e, !1),
|
|
3914
|
+
ie(e, !1), ue(t, Kd);
|
|
3912
3915
|
let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), i = g(e, "ballTopLeft", 12, "#FF3E00"), a = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), c = g(e, "ballBottomRight", 12, "#676778"), l = g(e, "duration", 12, "1.5s");
|
|
3913
3916
|
var u = Qd(), d = z(u), p = z(d), h = z(p), w = z(h);
|
|
3914
3917
|
k(h);
|
|
3915
|
-
var
|
|
3916
|
-
k(
|
|
3917
|
-
var x = P(
|
|
3918
|
+
var b = P(h, 2), S = z(b);
|
|
3919
|
+
k(b);
|
|
3920
|
+
var x = P(b, 2), _ = z(x);
|
|
3918
3921
|
k(x);
|
|
3919
3922
|
var y = P(x, 2), F = z(y);
|
|
3920
3923
|
return k(y), k(p), k(d), k(u), O(() => {
|
|
@@ -3986,7 +3989,7 @@ oe(
|
|
|
3986
3989
|
[],
|
|
3987
3990
|
!0
|
|
3988
3991
|
);
|
|
3989
|
-
const Ge = /[a-zA-Z]/,
|
|
3992
|
+
const Ge = /[a-zA-Z]/, Ls = (t, e) => {
|
|
3990
3993
|
if (t[0] === "#" && (t = t.slice(1)), t.length === 3) {
|
|
3991
3994
|
let r = "";
|
|
3992
3995
|
t.split("").forEach((s) => {
|
|
@@ -4012,7 +4015,7 @@ const rf = {
|
|
|
4012
4015
|
};
|
|
4013
4016
|
function sf(t, e) {
|
|
4014
4017
|
var u;
|
|
4015
|
-
ie(e, !1),
|
|
4018
|
+
ie(e, !1), ue(t, rf);
|
|
4016
4019
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
|
|
4017
4020
|
ct();
|
|
4018
4021
|
var l = nf();
|
|
@@ -4241,11 +4244,11 @@ const of = {
|
|
|
4241
4244
|
}`
|
|
4242
4245
|
};
|
|
4243
4246
|
function lf(t, e) {
|
|
4244
|
-
ie(e, !1),
|
|
4247
|
+
ie(e, !1), ue(t, of);
|
|
4245
4248
|
const n = Jt();
|
|
4246
4249
|
let r = g(e, "size", 12, "40px"), s = g(e, "duration", 12, "3s"), i = g(e, "pause", 12, !1);
|
|
4247
4250
|
Yn(() => En(r()), () => {
|
|
4248
|
-
|
|
4251
|
+
m(n, [
|
|
4249
4252
|
`width: ${r()}`,
|
|
4250
4253
|
`height: ${r()}`
|
|
4251
4254
|
].join(";"));
|
|
@@ -4291,7 +4294,7 @@ const uf = {
|
|
|
4291
4294
|
}`
|
|
4292
4295
|
};
|
|
4293
4296
|
function df(t, e) {
|
|
4294
|
-
ie(e, !1),
|
|
4297
|
+
ie(e, !1), ue(t, uf);
|
|
4295
4298
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4296
4299
|
var o = cf(), c = z(o);
|
|
4297
4300
|
return k(o), O(() => {
|
|
@@ -4404,7 +4407,7 @@ const pf = {
|
|
|
4404
4407
|
}`
|
|
4405
4408
|
};
|
|
4406
4409
|
function hf(t, e) {
|
|
4407
|
-
ie(e, !1),
|
|
4410
|
+
ie(e, !1), ue(t, pf);
|
|
4408
4411
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "4s"), i = g(e, "size", 12, "60"), a = g(e, "stroke", 28, () => +i() / 12 + r()), o = g(e, "pause", 12, !1);
|
|
4409
4412
|
var c = ff(), l = z(c);
|
|
4410
4413
|
return k(c), O(() => {
|
|
@@ -4480,7 +4483,7 @@ const mf = {
|
|
|
4480
4483
|
};
|
|
4481
4484
|
function bf(t, e) {
|
|
4482
4485
|
var u;
|
|
4483
|
-
ie(e, !1),
|
|
4486
|
+
ie(e, !1), ue(t, mf);
|
|
4484
4487
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
|
|
4485
4488
|
ct();
|
|
4486
4489
|
var l = gf();
|
|
@@ -4574,12 +4577,12 @@ const _f = {
|
|
|
4574
4577
|
}`
|
|
4575
4578
|
};
|
|
4576
4579
|
function kf(t, e) {
|
|
4577
|
-
ie(e, !1),
|
|
4580
|
+
ie(e, !1), ue(t, _f);
|
|
4578
4581
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Jt();
|
|
4579
4582
|
Yn(
|
|
4580
4583
|
() => En(n()),
|
|
4581
4584
|
() => {
|
|
4582
|
-
|
|
4585
|
+
m(o, Ls(n(), 0.2));
|
|
4583
4586
|
}
|
|
4584
4587
|
), Gn(), ct();
|
|
4585
4588
|
var c = wf();
|
|
@@ -4655,7 +4658,7 @@ const $f = {
|
|
|
4655
4658
|
};
|
|
4656
4659
|
function Tf(t, e) {
|
|
4657
4660
|
var u;
|
|
4658
|
-
ie(e, !1),
|
|
4661
|
+
ie(e, !1), ue(t, $f);
|
|
4659
4662
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
|
|
4660
4663
|
ct();
|
|
4661
4664
|
var l = zf();
|
|
@@ -4735,7 +4738,7 @@ const Cf = {
|
|
|
4735
4738
|
}`
|
|
4736
4739
|
};
|
|
4737
4740
|
function If(t, e) {
|
|
4738
|
-
ie(e, !1),
|
|
4741
|
+
ie(e, !1), ue(t, Cf);
|
|
4739
4742
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4740
4743
|
ct();
|
|
4741
4744
|
var o = Ef();
|
|
@@ -4827,7 +4830,7 @@ const jf = {
|
|
|
4827
4830
|
};
|
|
4828
4831
|
function Rf(t, e) {
|
|
4829
4832
|
var u;
|
|
4830
|
-
ie(e, !1),
|
|
4833
|
+
ie(e, !1), ue(t, jf);
|
|
4831
4834
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
|
|
4832
4835
|
ct();
|
|
4833
4836
|
var l = Lf();
|
|
@@ -4907,7 +4910,7 @@ const Df = {
|
|
|
4907
4910
|
}`
|
|
4908
4911
|
};
|
|
4909
4912
|
function Of(t, e) {
|
|
4910
|
-
ie(e, !1),
|
|
4913
|
+
ie(e, !1), ue(t, Df);
|
|
4911
4914
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4912
4915
|
var o = Ff(), c = z(o);
|
|
4913
4916
|
return k(o), O(() => {
|
|
@@ -4979,7 +4982,7 @@ const Mf = {
|
|
|
4979
4982
|
}`
|
|
4980
4983
|
};
|
|
4981
4984
|
function Nf(t, e) {
|
|
4982
|
-
ie(e, !1),
|
|
4985
|
+
ie(e, !1), ue(t, Mf);
|
|
4983
4986
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4984
4987
|
var o = Pf(), c = z(o);
|
|
4985
4988
|
return k(o), O(() => {
|
|
@@ -5047,9 +5050,9 @@ const qf = {
|
|
|
5047
5050
|
}
|
|
5048
5051
|
}`
|
|
5049
5052
|
};
|
|
5050
|
-
function
|
|
5053
|
+
function js(t, e) {
|
|
5051
5054
|
var u;
|
|
5052
|
-
ie(e, !1),
|
|
5055
|
+
ie(e, !1), ue(t, qf);
|
|
5053
5056
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
|
|
5054
5057
|
ct();
|
|
5055
5058
|
var l = Bf();
|
|
@@ -5092,7 +5095,7 @@ function Ls(t, e) {
|
|
|
5092
5095
|
});
|
|
5093
5096
|
}
|
|
5094
5097
|
oe(
|
|
5095
|
-
|
|
5098
|
+
js,
|
|
5096
5099
|
{
|
|
5097
5100
|
color: {},
|
|
5098
5101
|
unit: {},
|
|
@@ -5123,7 +5126,7 @@ const Gf = {
|
|
|
5123
5126
|
};
|
|
5124
5127
|
function Jf(t, e) {
|
|
5125
5128
|
var u;
|
|
5126
|
-
ie(e, !1),
|
|
5129
|
+
ie(e, !1), ue(t, Gf);
|
|
5127
5130
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
|
|
5128
5131
|
ct();
|
|
5129
5132
|
var l = Yf();
|
|
@@ -5202,7 +5205,7 @@ const Xf = {
|
|
|
5202
5205
|
};
|
|
5203
5206
|
function Vf(t, e) {
|
|
5204
5207
|
var d;
|
|
5205
|
-
ie(e, !1),
|
|
5208
|
+
ie(e, !1), ue(t, Xf);
|
|
5206
5209
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = s().match(Ge)) == null ? void 0 : d[0]) ?? "s", c = s().replace(Ge, "");
|
|
5207
5210
|
ct();
|
|
5208
5211
|
var l = Zf(), u = z(l);
|
|
@@ -5284,7 +5287,7 @@ const Kf = {
|
|
|
5284
5287
|
}`
|
|
5285
5288
|
};
|
|
5286
5289
|
function ep(t, e) {
|
|
5287
|
-
ie(e, !1),
|
|
5290
|
+
ie(e, !1), ue(t, Kf);
|
|
5288
5291
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
5289
5292
|
var o = Qf();
|
|
5290
5293
|
return O(() => {
|
|
@@ -5378,7 +5381,7 @@ const np = {
|
|
|
5378
5381
|
}`
|
|
5379
5382
|
};
|
|
5380
5383
|
function rp(t, e) {
|
|
5381
|
-
ie(e, !1),
|
|
5384
|
+
ie(e, !1), ue(t, np);
|
|
5382
5385
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.7s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
5383
5386
|
var o = tp(), c = z(o);
|
|
5384
5387
|
return k(o), O(() => {
|
|
@@ -5442,7 +5445,7 @@ const ip = {
|
|
|
5442
5445
|
}`
|
|
5443
5446
|
};
|
|
5444
5447
|
function ap(t, e) {
|
|
5445
|
-
ie(e, !1),
|
|
5448
|
+
ie(e, !1), ue(t, ip);
|
|
5446
5449
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = +i() / 7, c = +i() / 2 - o / 2;
|
|
5447
5450
|
var l = sp(), u = z(l), d = P(u, 2);
|
|
5448
5451
|
return k(l), O(() => {
|
|
@@ -5527,12 +5530,12 @@ const lp = {
|
|
|
5527
5530
|
}`
|
|
5528
5531
|
};
|
|
5529
5532
|
function cp(t, e) {
|
|
5530
|
-
ie(e, !1),
|
|
5533
|
+
ie(e, !1), ue(t, lp);
|
|
5531
5534
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Jt();
|
|
5532
5535
|
Yn(
|
|
5533
5536
|
() => En(n()),
|
|
5534
5537
|
() => {
|
|
5535
|
-
|
|
5538
|
+
m(o, Ls(n(), 0.6));
|
|
5536
5539
|
}
|
|
5537
5540
|
), Gn(), ct();
|
|
5538
5541
|
var c = op(), l = z(c);
|
|
@@ -5602,7 +5605,7 @@ const dp = {
|
|
|
5602
5605
|
}`
|
|
5603
5606
|
};
|
|
5604
5607
|
function fp(t, e) {
|
|
5605
|
-
ie(e, !1),
|
|
5608
|
+
ie(e, !1), ue(t, dp);
|
|
5606
5609
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
5607
5610
|
var o = up();
|
|
5608
5611
|
return O(() => {
|
|
@@ -5669,7 +5672,7 @@ const hp = {
|
|
|
5669
5672
|
}`
|
|
5670
5673
|
};
|
|
5671
5674
|
function vp(t, e) {
|
|
5672
|
-
ie(e, !1),
|
|
5675
|
+
ie(e, !1), ue(t, hp);
|
|
5673
5676
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "8s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
5674
5677
|
var o = pp();
|
|
5675
5678
|
return O(() => {
|
|
@@ -5740,7 +5743,7 @@ const bp = {
|
|
|
5740
5743
|
};
|
|
5741
5744
|
function xp(t, e) {
|
|
5742
5745
|
var u;
|
|
5743
|
-
ie(e, !1),
|
|
5746
|
+
ie(e, !1), ue(t, bp);
|
|
5744
5747
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
|
|
5745
5748
|
ct();
|
|
5746
5749
|
var l = mp();
|
|
@@ -5819,12 +5822,12 @@ const kp = {
|
|
|
5819
5822
|
};
|
|
5820
5823
|
function yp(t, e) {
|
|
5821
5824
|
var d;
|
|
5822
|
-
ie(e, !1),
|
|
5825
|
+
ie(e, !1), ue(t, kp);
|
|
5823
5826
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = s().match(Ge)) == null ? void 0 : d[0]) ?? "s", c = s().replace(Ge, ""), l = Jt();
|
|
5824
5827
|
Yn(
|
|
5825
5828
|
() => En(n()),
|
|
5826
5829
|
() => {
|
|
5827
|
-
|
|
5830
|
+
m(l, Ls(n(), 1));
|
|
5828
5831
|
}
|
|
5829
5832
|
), Gn(), ct();
|
|
5830
5833
|
var u = _p();
|
|
@@ -5894,7 +5897,7 @@ const $p = {
|
|
|
5894
5897
|
}`
|
|
5895
5898
|
};
|
|
5896
5899
|
function Tp(t, e) {
|
|
5897
|
-
ie(e, !1),
|
|
5900
|
+
ie(e, !1), ue(t, $p);
|
|
5898
5901
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.4s"), i = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
|
|
5899
5902
|
var o = zp();
|
|
5900
5903
|
return O(() => {
|
|
@@ -5960,7 +5963,7 @@ const Ep = {
|
|
|
5960
5963
|
}`
|
|
5961
5964
|
};
|
|
5962
5965
|
function Cp(t, e) {
|
|
5963
|
-
ie(e, !1),
|
|
5966
|
+
ie(e, !1), ue(t, Ep);
|
|
5964
5967
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.4s"), i = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
|
|
5965
5968
|
var o = Sp();
|
|
5966
5969
|
return O(() => {
|
|
@@ -6049,10 +6052,10 @@ const Aa = (t) => {
|
|
|
6049
6052
|
pptx: { icon: "fa-solid fa-file-powerpoint", color: "#d14b2b" },
|
|
6050
6053
|
akd: { icon: "fa-solid fa-passport", color: "#0DCAF0" },
|
|
6051
6054
|
tldv: { icon: "fa-solid fa-video", color: "#1d1dff" }
|
|
6052
|
-
},
|
|
6055
|
+
}, Rs = (t) => {
|
|
6053
6056
|
const e = Aa(t);
|
|
6054
6057
|
return Ap[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
|
|
6055
|
-
}, Lp = (t) =>
|
|
6058
|
+
}, Lp = (t) => Rs(t).icon;
|
|
6056
6059
|
function jp(t) {
|
|
6057
6060
|
return {
|
|
6058
6061
|
normative: "File Forge",
|
|
@@ -6076,7 +6079,7 @@ const tr = (t, e) => `${t}-${e}`, La = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6076
6079
|
color: s.name === "Documento Comune" ? "#295DCF" : s.color
|
|
6077
6080
|
};
|
|
6078
6081
|
}
|
|
6079
|
-
return
|
|
6082
|
+
return Rs(e);
|
|
6080
6083
|
}, Fp = (t, e) => t >= 50 || e === "suite", Dp = (t, e) => {
|
|
6081
6084
|
const n = t.isCommon || !1, r = t.commonType || "";
|
|
6082
6085
|
return n && e < 50 && r !== "suite";
|
|
@@ -6109,7 +6112,7 @@ const tr = (t, e) => `${t}-${e}`, La = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6109
6112
|
const n = t;
|
|
6110
6113
|
if (n.isCommon)
|
|
6111
6114
|
return { class: "fa-solid fa-file", color: "#295DCF" };
|
|
6112
|
-
const r =
|
|
6115
|
+
const r = Rs(n.title);
|
|
6113
6116
|
return {
|
|
6114
6117
|
class: r.icon,
|
|
6115
6118
|
color: r.color
|
|
@@ -6133,17 +6136,17 @@ const tr = (t, e) => `${t}-${e}`, La = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6133
6136
|
}
|
|
6134
6137
|
return null;
|
|
6135
6138
|
}, qp = (t, e, n, r) => {
|
|
6136
|
-
e(!1),
|
|
6139
|
+
e(!1), m(n, ""), r();
|
|
6137
6140
|
}, Hp = (t, e, n, r, s, i, a, o) => {
|
|
6138
6141
|
const c = t.target;
|
|
6139
|
-
|
|
6142
|
+
m(e, C(c.value));
|
|
6140
6143
|
const u = {
|
|
6141
|
-
normative: () => n(f(e), () => ft.getForge(f(e), r()), (d) =>
|
|
6142
|
-
suite: () => n(f(e), () => ft.getForge(f(e), r()), (d) =>
|
|
6143
|
-
gendoc: () => n(f(e), () => ft.getGenDocs(f(e)), (d) =>
|
|
6144
|
-
transcriptions: () => n(f(e), () => ft.getTranscriptions(f(e)), (d) =>
|
|
6144
|
+
normative: () => n(f(e), () => ft.getForge(f(e), r()), (d) => m(s, C(d)), "Errore nella ricerca forge:"),
|
|
6145
|
+
suite: () => n(f(e), () => ft.getForge(f(e), r()), (d) => m(s, C(d)), "Errore nella ricerca forge:"),
|
|
6146
|
+
gendoc: () => n(f(e), () => ft.getGenDocs(f(e)), (d) => m(i, C(d)), "Errore nella ricerca gendocs:"),
|
|
6147
|
+
transcriptions: () => n(f(e), () => ft.getTranscriptions(f(e)), (d) => m(a, C(d)), "Errore nella ricerca trascrizioni:")
|
|
6145
6148
|
}[r()];
|
|
6146
|
-
u ? u() : n(f(e), () => ft.getDocuments(f(e)), (d) =>
|
|
6149
|
+
u ? u() : n(f(e), () => ft.getDocuments(f(e)), (d) => m(o, C(d)), "Errore nella ricerca documenti:");
|
|
6147
6150
|
};
|
|
6148
6151
|
var Yp = /* @__PURE__ */ j('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), Gp = /* @__PURE__ */ j('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted"> </p></div>'), Jp = /* @__PURE__ */ j('<div class="text-center p-3"><i class="fa-solid fa-file-circle-exclamation text-muted fa-2x"></i> <p class="mt-2 text-muted"><!></p></div>'), Wp = (t, e, n) => e(f(n)), Zp = /* @__PURE__ */ j('<div class="document-path svelte-zrlk2s"> </div>'), Xp = /* @__PURE__ */ j('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), Vp = /* @__PURE__ */ j('<button class="document-item svelte-zrlk2s"><div class="document-icon svelte-zrlk2s"><i></i></div> <div class="document-info"><div class="document-title svelte-zrlk2s"> </div> <!></div> <!></button>'), Qp = /* @__PURE__ */ j('<div class="documents-list svelte-zrlk2s"></div>'), Kp = /* @__PURE__ */ j('<div class="modal-overlay svelte-zrlk2s"><div class="document-search-modal svelte-zrlk2s"><div class="modal-header svelte-zrlk2s"><h5 class="svelte-zrlk2s"> </h5> <button class="btn btn-sm btn-danger aks-btn-rounded" aria-label="Chiudi modale"><i class="fa-solid fa-xmark"></i></button></div> <div class="modal-body svelte-zrlk2s"><div class="search-container svelte-zrlk2s"><div class="input-group"><span class="input-group-text svelte-zrlk2s"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" style="color: black;"></div></div> <div class="documents-container svelte-zrlk2s"><!></div></div></div></div>');
|
|
6149
6152
|
const eh = {
|
|
@@ -6152,12 +6155,12 @@ const eh = {
|
|
|
6152
6155
|
/* Stili per la modale di ricerca documenti */.modal-overlay.svelte-zrlk2s {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;z-index:1050;}.document-search-modal.svelte-zrlk2s {background:white;border-radius:12px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.2);width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;}.modal-header.svelte-zrlk2s {display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef;}.modal-header.svelte-zrlk2s h5:where(.svelte-zrlk2s) {margin:0;font-weight:600;color:#295dcf;}.modal-body.svelte-zrlk2s {padding:20px;flex:1;overflow:hidden;display:flex;flex-direction:column;}.search-container.svelte-zrlk2s {margin-bottom:20px;}.documents-container.svelte-zrlk2s {flex:1;overflow:hidden;display:flex;flex-direction:column;}.documents-list.svelte-zrlk2s {overflow-y:auto;max-height:300px;border:1px solid #e9ecef;border-radius:8px;}.document-item.svelte-zrlk2s {display:flex;align-items:flex-start;width:100%;padding:12px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-bottom:1px solid #f0f0f0;text-align:left;}.document-item.svelte-zrlk2s:last-child {border-bottom:none;}.document-item.svelte-zrlk2s:hover {background:#f8f9fa;color:#295dcf;}.document-icon.svelte-zrlk2s {margin-right:12px;color:#6c757d;width:20px;flex-shrink:0;margin-top:2px;}.document-title.svelte-zrlk2s {font-weight:500;margin-bottom:4px;word-wrap:break-word;}.document-path.svelte-zrlk2s {font-size:0.85em;color:#6c757d;word-wrap:break-word;}.input-group-text.svelte-zrlk2s {background:#f8f9fa;border-color:#e9ecef;color:#6c757d;}.document-item.selected.svelte-zrlk2s {background:#e7f3ff;border-left:3px solid #295dcf;}.document-item.selected.svelte-zrlk2s:hover {background:#d0e8ff;}.selected-indicator.svelte-zrlk2s {margin-left:auto;color:#28a745;font-size:1.2em;display:flex;align-items:center;}`
|
|
6153
6156
|
};
|
|
6154
6157
|
function Fa(t, e) {
|
|
6155
|
-
ie(e, !0),
|
|
6158
|
+
ie(e, !0), ue(t, eh);
|
|
6156
6159
|
let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "modeSelected", 15);
|
|
6157
6160
|
const i = { default: 3, gendoc: 1, transcriptions: 1 }, a = 3;
|
|
6158
6161
|
let o = /* @__PURE__ */ qe(() => Wn(s())), c = G(C([])), l = G(C([])), u = G(C([])), d = G(C([])), p = G(!1), h = G(""), w = /* @__PURE__ */ qe(() => s() === "normative" || s() === "suite" ? f(l) : s() === "gendoc" ? f(u) : s() === "transcriptions" ? f(d) : f(c));
|
|
6159
|
-
const
|
|
6160
|
-
|
|
6162
|
+
const b = () => {
|
|
6163
|
+
m(c, C([])), m(l, C([])), m(u, C([])), m(d, C([]));
|
|
6161
6164
|
}, S = (R) => n()[R._id] ? (delete n()[R._id], !0) : !1, x = (R) => Object.keys(n()).length >= R ? (alert(/* @__PURE__ */ id({ count: R })), !1) : !0, _ = (R) => {
|
|
6162
6165
|
if (R instanceof Kt)
|
|
6163
6166
|
return {
|
|
@@ -6198,14 +6201,14 @@ function Fa(t, e) {
|
|
|
6198
6201
|
Ee([]);
|
|
6199
6202
|
return;
|
|
6200
6203
|
}
|
|
6201
|
-
|
|
6204
|
+
m(p, !0);
|
|
6202
6205
|
try {
|
|
6203
6206
|
const Pe = await Q();
|
|
6204
6207
|
Ee(Pe);
|
|
6205
6208
|
} catch (Pe) {
|
|
6206
6209
|
console.error(Ce, Pe), Ee([]);
|
|
6207
6210
|
} finally {
|
|
6208
|
-
|
|
6211
|
+
m(p, !1);
|
|
6209
6212
|
}
|
|
6210
6213
|
};
|
|
6211
6214
|
var $ = Kp(), A = z($), L = z(A), M = z(L), H = z(M);
|
|
@@ -6215,10 +6218,10 @@ function Fa(t, e) {
|
|
|
6215
6218
|
qp,
|
|
6216
6219
|
r,
|
|
6217
6220
|
h,
|
|
6218
|
-
|
|
6221
|
+
b
|
|
6219
6222
|
], k(L);
|
|
6220
|
-
var Oe = P(L, 2), je = z(Oe), ge = z(je),
|
|
6221
|
-
Sl(
|
|
6223
|
+
var Oe = P(L, 2), je = z(Oe), ge = z(je), ce = P(z(ge), 2);
|
|
6224
|
+
Sl(ce), ce.__input = [
|
|
6222
6225
|
Hp,
|
|
6223
6226
|
h,
|
|
6224
6227
|
F,
|
|
@@ -6232,7 +6235,7 @@ function Fa(t, e) {
|
|
|
6232
6235
|
{
|
|
6233
6236
|
var ut = (R) => {
|
|
6234
6237
|
var Q = Yp(), Ee = z(Q);
|
|
6235
|
-
|
|
6238
|
+
js(Ee, { size: "30", color: "#295dcf" });
|
|
6236
6239
|
var Ce = P(Ee, 2), Pe = z(Ce, !0);
|
|
6237
6240
|
k(Ce), k(Q), O((Ie) => $e(Pe, Ie), [() => /* @__PURE__ */ Zu()]), T(R, Q);
|
|
6238
6241
|
}, gt = (R) => {
|
|
@@ -6264,7 +6267,7 @@ function Fa(t, e) {
|
|
|
6264
6267
|
O((Te) => $e(ve, Te), [() => /* @__PURE__ */ od()]), T(fe, ve);
|
|
6265
6268
|
}, be = (fe) => {
|
|
6266
6269
|
var ve = Qn();
|
|
6267
|
-
O((Te) => $e(ve, Te), [() => /* @__PURE__ */
|
|
6270
|
+
O((Te) => $e(ve, Te), [() => /* @__PURE__ */ os()]), T(fe, ve);
|
|
6268
6271
|
};
|
|
6269
6272
|
V(
|
|
6270
6273
|
K,
|
|
@@ -6354,12 +6357,12 @@ function Fa(t, e) {
|
|
|
6354
6357
|
return k(Ze), k(Oe), k(A), k($), O(
|
|
6355
6358
|
(R, Q, Ee) => {
|
|
6356
6359
|
$e(H, `${R ?? ""}
|
|
6357
|
-
${Q ?? ""}`), N(
|
|
6360
|
+
${Q ?? ""}`), N(ce, "placeholder", `${R ?? ""} ${Ee ?? ""} (min 3 caratteri)...`), El(ce, f(h));
|
|
6358
6361
|
},
|
|
6359
6362
|
[
|
|
6360
6363
|
() => /* @__PURE__ */ Wu(),
|
|
6361
|
-
() => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */
|
|
6362
|
-
() => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */
|
|
6364
|
+
() => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ fi(),
|
|
6365
|
+
() => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ fi()
|
|
6363
6366
|
]
|
|
6364
6367
|
), T(t, $), ae({
|
|
6365
6368
|
get attachments() {
|
|
@@ -6398,7 +6401,7 @@ const th = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includ
|
|
|
6398
6401
|
function sh(t) {
|
|
6399
6402
|
return Object.keys(t).map((e) => t[e].ext_id);
|
|
6400
6403
|
}
|
|
6401
|
-
function
|
|
6404
|
+
function vi(t) {
|
|
6402
6405
|
switch (t) {
|
|
6403
6406
|
case 1:
|
|
6404
6407
|
return "Knowledge Base Agent";
|
|
@@ -6463,13 +6466,13 @@ const ih = async (t) => {
|
|
|
6463
6466
|
const d = U.getUrl().replace(/^http/, "ws"), p = `chat/${t}/message?mode=${l}`, h = p.includes("?") ? "&" : "?", w = `${d}/${p}${h}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}`;
|
|
6464
6467
|
o = new WebSocket(w), a && a.addEventListener("abort", () => {
|
|
6465
6468
|
o && o.readyState === WebSocket.OPEN && (o.close(), c = !0);
|
|
6466
|
-
}), await new Promise((
|
|
6469
|
+
}), await new Promise((b, S) => {
|
|
6467
6470
|
if (!o) return S(new Error("WebSocket not initialized"));
|
|
6468
6471
|
o.onopen = () => {
|
|
6469
6472
|
o && o.send(JSON.stringify({
|
|
6470
6473
|
content: e,
|
|
6471
6474
|
attachments: r,
|
|
6472
|
-
lang:
|
|
6475
|
+
lang: Is(i)
|
|
6473
6476
|
}));
|
|
6474
6477
|
}, o.onmessage = (x) => {
|
|
6475
6478
|
let _ = JSON.parse(x.data);
|
|
@@ -6477,7 +6480,7 @@ const ih = async (t) => {
|
|
|
6477
6480
|
}, o.onerror = (x) => {
|
|
6478
6481
|
console.error("WebSocket error:", x), S(new Error("WebSocket connection error"));
|
|
6479
6482
|
}, o.onclose = (x) => {
|
|
6480
|
-
x.wasClean ?
|
|
6483
|
+
x.wasClean ? b() : S(new Error(`WebSocket closed unexpectedly: ${x.code} ${x.reason}`));
|
|
6481
6484
|
};
|
|
6482
6485
|
});
|
|
6483
6486
|
} catch (l) {
|
|
@@ -6579,9 +6582,9 @@ const ih = async (t) => {
|
|
|
6579
6582
|
const r = t.target;
|
|
6580
6583
|
e(r.value), n({});
|
|
6581
6584
|
}, hh = (t, e) => {
|
|
6582
|
-
|
|
6585
|
+
m(e, !f(e));
|
|
6583
6586
|
}, vh = (t, e, n) => {
|
|
6584
|
-
|
|
6587
|
+
m(e, !1), m(n, !0);
|
|
6585
6588
|
};
|
|
6586
6589
|
var gh = /* @__PURE__ */ j('<div class="dropdown-content svelte-dx030c"><button><i class="fa-solid fa-file-circle-plus svelte-dx030c"></i> <span> </span></button> <button><i class="fa-solid fa-upload svelte-dx030c"></i> <span> </span></button></div>'), mh = /* @__PURE__ */ j("<option>Generatore di Normative</option>"), bh = /* @__PURE__ */ j('<div class="attachment-title noopen-file-button svelte-dx030c"> </div>'), xh = (t, e, n, r, s) => e(n(), r(), s()), wh = /* @__PURE__ */ j('<button class="attachment-title open-file-button svelte-dx030c"> </button>'), _h = (t, e, n, r, s) => e(n(), r(), s()), kh = /* @__PURE__ */ j('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-dx030c"></i></button></div>'), yh = /* @__PURE__ */ j('<button class="btn send-button stop-recording-btn svelte-dx030c" aria-label="Stop recording"><i class="fa-solid fa-stop"></i></button>'), zh = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Synthesizing" disabled><!></button>'), $h = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Start recording"><i class="fa-solid fa-microphone"></i></button>'), Th = /* @__PURE__ */ j('<button class="btn send-button stop-stream-btn svelte-dx030c" aria-label="Stop message"><i class="fa-solid fa-stop"></i></button>'), Sh = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer send-message-btn svelte-dx030c" aria-label="Send message"><i class="fa-solid fa-paper-plane"></i></button>'), Eh = /* @__PURE__ */ j('<div class="input svelte-dx030c"><div class="top svelte-dx030c"><textarea style="color: black !important;" class="form-control form-control-sm svelte-dx030c" rows="2"></textarea></div> <div class="bottom svelte-dx030c"><div class="controls-row svelte-dx030c"><div class="plus-button-container svelte-dx030c"><button><i></i></button> <!></div> <select class="mode-select svelte-dx030c" aria-label="Select mode"><option>Auto</option><option>Manuale Suite</option><option> </option><option>Knowledge Base</option><option>GenDoc</option><option>Trascrizioni</option><!></select> <div class="attachments-container svelte-dx030c"></div> <div class="send-buttons svelte-dx030c"><!> <!></div></div></div></div> <!>', 1);
|
|
6587
6590
|
const Ch = {
|
|
@@ -6592,14 +6595,14 @@ const Ch = {
|
|
|
6592
6595
|
/* Stili per il dropdown */.dropdown-content.svelte-dx030c {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-dx030c {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-dx030c:first-child {border-top-left-radius:8px;border-top-right-radius:8px;}.dropdown-option.svelte-dx030c:last-child {border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.dropdown-option.svelte-dx030c:hover {background:#f8f9fa;color:#295dcf;}.dropdown-option.svelte-dx030c i:where(.svelte-dx030c) {margin-right:10px;width:16px;text-align:center;}.option-disabled.svelte-dx030c {color:#ccc;cursor:default;}.option-disabled.svelte-dx030c:hover {background:white;color:#ccc;}`
|
|
6593
6596
|
};
|
|
6594
6597
|
function Oa(t, e) {
|
|
6595
|
-
ie(e, !0),
|
|
6596
|
-
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), i = g(e, "languageSelected", 15), a = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), d = G(""), p, h, w = G(C([])),
|
|
6598
|
+
ie(e, !0), ue(t, Ch);
|
|
6599
|
+
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), i = g(e, "languageSelected", 15), a = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), d = G(""), p, h, w = G(C([])), b = G(!1), S = G(!1), x = G(!1), _ = G(!1), y, F = /* @__PURE__ */ qe(() => Wn(a()));
|
|
6597
6600
|
const $ = 20, A = 5, L = 0.5;
|
|
6598
6601
|
function M(E, D) {
|
|
6599
6602
|
return E ? a() === "normative" || a() === "suite" ? f(F).name : "" : D;
|
|
6600
6603
|
}
|
|
6601
6604
|
function H() {
|
|
6602
|
-
|
|
6605
|
+
m(d, ""), o({}), p && (p.style.height = "auto");
|
|
6603
6606
|
}
|
|
6604
6607
|
function le() {
|
|
6605
6608
|
h != null && h.stream && h.stream.getTracks().forEach((E) => E.stop());
|
|
@@ -6620,29 +6623,29 @@ function Oa(t, e) {
|
|
|
6620
6623
|
if (s() || !f(d).trim()) return;
|
|
6621
6624
|
const E = sh(o());
|
|
6622
6625
|
n()(f(d), a(), E), H();
|
|
6623
|
-
},
|
|
6626
|
+
}, ce = async () => {
|
|
6624
6627
|
if (!s())
|
|
6625
6628
|
try {
|
|
6626
6629
|
const E = await navigator.mediaDevices.getUserMedia({ audio: !0 });
|
|
6627
6630
|
h = new MediaRecorder(E, { mimeType: "audio/webm" }), h.ondataavailable = (D) => {
|
|
6628
6631
|
D.data.size > 0 && f(w).push(D.data);
|
|
6629
6632
|
}, h.onstop = async () => {
|
|
6630
|
-
|
|
6633
|
+
m(S, !0);
|
|
6631
6634
|
const D = new Blob(f(w), { type: "audio/webm" });
|
|
6632
6635
|
try {
|
|
6633
|
-
const Z = await
|
|
6634
|
-
Z && (
|
|
6636
|
+
const Z = await As.getText(D, i());
|
|
6637
|
+
Z && (m(d, C(Z)), ge());
|
|
6635
6638
|
} finally {
|
|
6636
|
-
|
|
6639
|
+
m(S, !1);
|
|
6637
6640
|
}
|
|
6638
|
-
}, b
|
|
6641
|
+
}, m(b, !0), h.start();
|
|
6639
6642
|
} catch (E) {
|
|
6640
6643
|
console.error("Failed to start recording:", E);
|
|
6641
6644
|
}
|
|
6642
6645
|
}, Ze = () => {
|
|
6643
|
-
h && (h.stop(), le(), b
|
|
6646
|
+
h && (h.stop(), le(), m(b, !1), m(w, C([])));
|
|
6644
6647
|
}, Xe = () => {
|
|
6645
|
-
|
|
6648
|
+
m(x, !1);
|
|
6646
6649
|
const E = document.createElement("input");
|
|
6647
6650
|
E.type = "file", E.multiple = !1, E.onchange = async (D) => {
|
|
6648
6651
|
var te;
|
|
@@ -6750,8 +6753,8 @@ function Oa(t, e) {
|
|
|
6750
6753
|
var Or = (St) => {
|
|
6751
6754
|
var zt = bh(), Cn = z(zt, !0);
|
|
6752
6755
|
k(zt), O(
|
|
6753
|
-
(
|
|
6754
|
-
N(zt, "title",
|
|
6756
|
+
(Js) => {
|
|
6757
|
+
N(zt, "title", Js), $e(Cn, Js);
|
|
6755
6758
|
},
|
|
6756
6759
|
[() => te().split(".")[0]]
|
|
6757
6760
|
), T(St, zt);
|
|
@@ -6799,10 +6802,10 @@ function Oa(t, e) {
|
|
|
6799
6802
|
{
|
|
6800
6803
|
var te = (De) => {
|
|
6801
6804
|
var He = zh(), We = z(He);
|
|
6802
|
-
|
|
6805
|
+
js(We, { size: "20", color: "white" }), k(He), T(De, He);
|
|
6803
6806
|
}, Fe = (De) => {
|
|
6804
6807
|
var He = $h();
|
|
6805
|
-
He.__click =
|
|
6808
|
+
He.__click = ce, O((We) => N(He, "title", We), [() => /* @__PURE__ */ Nu()]), T(De, He);
|
|
6806
6809
|
};
|
|
6807
6810
|
V(
|
|
6808
6811
|
Z,
|
|
@@ -6815,7 +6818,7 @@ function Oa(t, e) {
|
|
|
6815
6818
|
T(E, D);
|
|
6816
6819
|
};
|
|
6817
6820
|
V(be, (E) => {
|
|
6818
|
-
f(
|
|
6821
|
+
f(b) ? E(fe) : E(ve, !1);
|
|
6819
6822
|
});
|
|
6820
6823
|
}
|
|
6821
6824
|
var Te = P(be, 2);
|
|
@@ -6849,7 +6852,7 @@ function Oa(t, e) {
|
|
|
6849
6852
|
return f(_);
|
|
6850
6853
|
},
|
|
6851
6854
|
set showDocumentSearchModal(D) {
|
|
6852
|
-
|
|
6855
|
+
m(_, C(D));
|
|
6853
6856
|
},
|
|
6854
6857
|
get modeSelected() {
|
|
6855
6858
|
return a();
|
|
@@ -6870,11 +6873,11 @@ function Oa(t, e) {
|
|
|
6870
6873
|
[
|
|
6871
6874
|
() => /* @__PURE__ */ ju(),
|
|
6872
6875
|
() => /* @__PURE__ */ Ru(),
|
|
6873
|
-
() => /* @__PURE__ */
|
|
6876
|
+
() => /* @__PURE__ */ Ta()
|
|
6874
6877
|
]
|
|
6875
6878
|
), Wt("keypress", Ie, (E) => {
|
|
6876
6879
|
E.key === "Enter" && !E.shiftKey && (E.preventDefault(), ge());
|
|
6877
|
-
}), Fl(Ie, () => f(d), (E) =>
|
|
6880
|
+
}), Fl(Ie, () => f(d), (E) => m(d, E)), za(he, a), Wt("wheel", K, je), bt(3, Ce, () => Bt, () => ({ duration: 300, delay: 200 })), T(t, Ee), ae({
|
|
6878
6881
|
get sendMessage() {
|
|
6879
6882
|
return n();
|
|
6880
6883
|
},
|
|
@@ -7001,7 +7004,7 @@ const Pa = /^[a-z0-9]+(-[a-z0-9]+)*$/, jr = (t, e, n, r = "") => {
|
|
|
7001
7004
|
}), Rr = Object.freeze({
|
|
7002
7005
|
...Ma,
|
|
7003
7006
|
...br
|
|
7004
|
-
}),
|
|
7007
|
+
}), ls = Object.freeze({
|
|
7005
7008
|
...Rr,
|
|
7006
7009
|
body: "",
|
|
7007
7010
|
hidden: !1
|
|
@@ -7012,9 +7015,9 @@ function Ih(t, e) {
|
|
|
7012
7015
|
const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
|
|
7013
7016
|
return r && (n.rotate = r), n;
|
|
7014
7017
|
}
|
|
7015
|
-
function
|
|
7018
|
+
function gi(t, e) {
|
|
7016
7019
|
const n = Ih(t, e);
|
|
7017
|
-
for (const r in
|
|
7020
|
+
for (const r in ls)
|
|
7018
7021
|
r in br ? r in t && !(r in n) && (n[r] = br[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
|
|
7019
7022
|
return n;
|
|
7020
7023
|
}
|
|
@@ -7036,12 +7039,12 @@ function Lh(t, e, n) {
|
|
|
7036
7039
|
const r = t.icons, s = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
7037
7040
|
let i = {};
|
|
7038
7041
|
function a(o) {
|
|
7039
|
-
i =
|
|
7042
|
+
i = gi(
|
|
7040
7043
|
r[o] || s[o],
|
|
7041
7044
|
i
|
|
7042
7045
|
);
|
|
7043
7046
|
}
|
|
7044
|
-
return a(e), n.forEach(a),
|
|
7047
|
+
return a(e), n.forEach(a), gi(t, i);
|
|
7045
7048
|
}
|
|
7046
7049
|
function Na(t, e) {
|
|
7047
7050
|
const n = [];
|
|
@@ -7084,7 +7087,7 @@ function Ua(t) {
|
|
|
7084
7087
|
typeof i.body != "string" || // Check other props
|
|
7085
7088
|
!Gr(
|
|
7086
7089
|
i,
|
|
7087
|
-
|
|
7090
|
+
ls
|
|
7088
7091
|
)
|
|
7089
7092
|
)
|
|
7090
7093
|
return null;
|
|
@@ -7098,14 +7101,14 @@ function Ua(t) {
|
|
|
7098
7101
|
typeof a != "string" || !n[a] && !r[a] || // Check other props
|
|
7099
7102
|
!Gr(
|
|
7100
7103
|
i,
|
|
7101
|
-
|
|
7104
|
+
ls
|
|
7102
7105
|
)
|
|
7103
7106
|
)
|
|
7104
7107
|
return null;
|
|
7105
7108
|
}
|
|
7106
7109
|
return e;
|
|
7107
7110
|
}
|
|
7108
|
-
const
|
|
7111
|
+
const mi = /* @__PURE__ */ Object.create(null);
|
|
7109
7112
|
function Rh(t, e) {
|
|
7110
7113
|
return {
|
|
7111
7114
|
provider: t,
|
|
@@ -7115,7 +7118,7 @@ function Rh(t, e) {
|
|
|
7115
7118
|
};
|
|
7116
7119
|
}
|
|
7117
7120
|
function _n(t, e) {
|
|
7118
|
-
const n =
|
|
7121
|
+
const n = mi[t] || (mi[t] = /* @__PURE__ */ Object.create(null));
|
|
7119
7122
|
return n[e] || (n[e] = Rh(t, e));
|
|
7120
7123
|
}
|
|
7121
7124
|
function Ba(t, e) {
|
|
@@ -7177,7 +7180,7 @@ const Ha = Object.freeze({
|
|
|
7177
7180
|
// Transformations
|
|
7178
7181
|
...br
|
|
7179
7182
|
}), Mh = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Nh = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
7180
|
-
function
|
|
7183
|
+
function bi(t, e, n) {
|
|
7181
7184
|
if (e === 1)
|
|
7182
7185
|
return t;
|
|
7183
7186
|
if (n = n || 100, typeof t == "number")
|
|
@@ -7239,9 +7242,9 @@ function Yh(t, e) {
|
|
|
7239
7242
|
height: n.height
|
|
7240
7243
|
};
|
|
7241
7244
|
let i = n.body;
|
|
7242
|
-
[n, r].forEach((
|
|
7243
|
-
const S = [], x =
|
|
7244
|
-
let y =
|
|
7245
|
+
[n, r].forEach((b) => {
|
|
7246
|
+
const S = [], x = b.hFlip, _ = b.vFlip;
|
|
7247
|
+
let y = b.rotate;
|
|
7245
7248
|
x ? _ ? y += 2 : (S.push(
|
|
7246
7249
|
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
7247
7250
|
), S.push("scale(-1 1)"), s.top = s.left = 0) : _ && (S.push(
|
|
@@ -7273,9 +7276,9 @@ function Yh(t, e) {
|
|
|
7273
7276
|
});
|
|
7274
7277
|
const a = r.width, o = r.height, c = s.width, l = s.height;
|
|
7275
7278
|
let u, d;
|
|
7276
|
-
a === null ? (d = o === null ? "1em" : o === "auto" ? l : o, u =
|
|
7277
|
-
const p = {}, h = (
|
|
7278
|
-
Hh(S) || (p[
|
|
7279
|
+
a === null ? (d = o === null ? "1em" : o === "auto" ? l : o, u = bi(d, c / l)) : (u = a === "auto" ? c : a, d = o === null ? bi(u, l / c) : o === "auto" ? l : o);
|
|
7280
|
+
const p = {}, h = (b, S) => {
|
|
7281
|
+
Hh(S) || (p[b] = S.toString());
|
|
7279
7282
|
};
|
|
7280
7283
|
h("width", u), h("height", d);
|
|
7281
7284
|
const w = [s.left, s.top, c, l];
|
|
@@ -7305,14 +7308,14 @@ function Zh(t, e = Jh) {
|
|
|
7305
7308
|
);
|
|
7306
7309
|
}), t = t.replace(new RegExp(s, "g"), ""), t;
|
|
7307
7310
|
}
|
|
7308
|
-
const
|
|
7311
|
+
const cs = /* @__PURE__ */ Object.create(null);
|
|
7309
7312
|
function Xh(t, e) {
|
|
7310
|
-
|
|
7313
|
+
cs[t] = e;
|
|
7311
7314
|
}
|
|
7312
|
-
function
|
|
7313
|
-
return
|
|
7315
|
+
function us(t) {
|
|
7316
|
+
return cs[t] || cs[""];
|
|
7314
7317
|
}
|
|
7315
|
-
function
|
|
7318
|
+
function Fs(t) {
|
|
7316
7319
|
let e;
|
|
7317
7320
|
if (typeof t.resources == "string")
|
|
7318
7321
|
e = [t.resources];
|
|
@@ -7337,21 +7340,21 @@ function Rs(t) {
|
|
|
7337
7340
|
dataAfterTimeout: t.dataAfterTimeout !== !1
|
|
7338
7341
|
};
|
|
7339
7342
|
}
|
|
7340
|
-
const
|
|
7343
|
+
const Ds = /* @__PURE__ */ Object.create(null), An = [
|
|
7341
7344
|
"https://api.simplesvg.com",
|
|
7342
7345
|
"https://api.unisvg.com"
|
|
7343
7346
|
], or = [];
|
|
7344
7347
|
for (; An.length > 0; )
|
|
7345
7348
|
An.length === 1 || Math.random() > 0.5 ? or.push(An.shift()) : or.push(An.pop());
|
|
7346
|
-
|
|
7349
|
+
Ds[""] = Fs({
|
|
7347
7350
|
resources: ["https://api.iconify.design"].concat(or)
|
|
7348
7351
|
});
|
|
7349
7352
|
function Vh(t, e) {
|
|
7350
|
-
const n =
|
|
7351
|
-
return n === null ? !1 : (
|
|
7353
|
+
const n = Fs(e);
|
|
7354
|
+
return n === null ? !1 : (Ds[t] = n, !0);
|
|
7352
7355
|
}
|
|
7353
|
-
function
|
|
7354
|
-
return
|
|
7356
|
+
function Os(t) {
|
|
7357
|
+
return Ds[t];
|
|
7355
7358
|
}
|
|
7356
7359
|
const Qh = () => {
|
|
7357
7360
|
let t;
|
|
@@ -7361,9 +7364,9 @@ const Qh = () => {
|
|
|
7361
7364
|
} catch {
|
|
7362
7365
|
}
|
|
7363
7366
|
};
|
|
7364
|
-
let
|
|
7367
|
+
let xi = Qh();
|
|
7365
7368
|
function Kh(t, e) {
|
|
7366
|
-
const n =
|
|
7369
|
+
const n = Os(t);
|
|
7367
7370
|
if (!n)
|
|
7368
7371
|
return 0;
|
|
7369
7372
|
let r;
|
|
@@ -7401,14 +7404,14 @@ const tv = (t, e, n) => {
|
|
|
7401
7404
|
};
|
|
7402
7405
|
function nv(t) {
|
|
7403
7406
|
if (typeof t == "string") {
|
|
7404
|
-
const e =
|
|
7407
|
+
const e = Os(t);
|
|
7405
7408
|
if (e)
|
|
7406
7409
|
return e.path;
|
|
7407
7410
|
}
|
|
7408
7411
|
return "/";
|
|
7409
7412
|
}
|
|
7410
7413
|
const rv = (t, e, n) => {
|
|
7411
|
-
if (!
|
|
7414
|
+
if (!xi) {
|
|
7412
7415
|
n("abort", 424);
|
|
7413
7416
|
return;
|
|
7414
7417
|
}
|
|
@@ -7431,7 +7434,7 @@ const rv = (t, e, n) => {
|
|
|
7431
7434
|
return;
|
|
7432
7435
|
}
|
|
7433
7436
|
let s = 503;
|
|
7434
|
-
|
|
7437
|
+
xi(t + r).then((i) => {
|
|
7435
7438
|
const a = i.status;
|
|
7436
7439
|
if (a !== 200) {
|
|
7437
7440
|
setTimeout(() => {
|
|
@@ -7576,7 +7579,7 @@ function dv(t, e, n, r) {
|
|
|
7576
7579
|
function w() {
|
|
7577
7580
|
d && (clearTimeout(d), d = null);
|
|
7578
7581
|
}
|
|
7579
|
-
function
|
|
7582
|
+
function b() {
|
|
7580
7583
|
c === "pending" && (c = "aborted"), w(), p.forEach((A) => {
|
|
7581
7584
|
A.status === "pending" && (A.status = "aborted");
|
|
7582
7585
|
}), p = [];
|
|
@@ -7592,7 +7595,7 @@ function dv(t, e, n, r) {
|
|
|
7592
7595
|
queriesSent: l,
|
|
7593
7596
|
queriesPending: p.length,
|
|
7594
7597
|
subscribe: S,
|
|
7595
|
-
abort:
|
|
7598
|
+
abort: b
|
|
7596
7599
|
};
|
|
7597
7600
|
}
|
|
7598
7601
|
function _() {
|
|
@@ -7692,12 +7695,12 @@ function Ja(t) {
|
|
|
7692
7695
|
cleanup: r
|
|
7693
7696
|
};
|
|
7694
7697
|
}
|
|
7695
|
-
function
|
|
7698
|
+
function wi() {
|
|
7696
7699
|
}
|
|
7697
7700
|
const Jr = /* @__PURE__ */ Object.create(null);
|
|
7698
7701
|
function fv(t) {
|
|
7699
7702
|
if (!Jr[t]) {
|
|
7700
|
-
const e =
|
|
7703
|
+
const e = Os(t);
|
|
7701
7704
|
if (!e)
|
|
7702
7705
|
return;
|
|
7703
7706
|
const n = Ja(e), r = {
|
|
@@ -7711,23 +7714,23 @@ function fv(t) {
|
|
|
7711
7714
|
function pv(t, e, n) {
|
|
7712
7715
|
let r, s;
|
|
7713
7716
|
if (typeof t == "string") {
|
|
7714
|
-
const i =
|
|
7717
|
+
const i = us(t);
|
|
7715
7718
|
if (!i)
|
|
7716
|
-
return n(void 0, 424),
|
|
7719
|
+
return n(void 0, 424), wi;
|
|
7717
7720
|
s = i.send;
|
|
7718
7721
|
const a = fv(t);
|
|
7719
7722
|
a && (r = a.redundancy);
|
|
7720
7723
|
} else {
|
|
7721
|
-
const i =
|
|
7724
|
+
const i = Fs(t);
|
|
7722
7725
|
if (i) {
|
|
7723
7726
|
r = Ja(i);
|
|
7724
|
-
const a = t.resources ? t.resources[0] : "", o =
|
|
7727
|
+
const a = t.resources ? t.resources[0] : "", o = us(a);
|
|
7725
7728
|
o && (s = o.send);
|
|
7726
7729
|
}
|
|
7727
7730
|
}
|
|
7728
|
-
return !r || !s ? (n(void 0, 424),
|
|
7731
|
+
return !r || !s ? (n(void 0, 424), wi) : r.query(e, s, n)().abort;
|
|
7729
7732
|
}
|
|
7730
|
-
function
|
|
7733
|
+
function _i() {
|
|
7731
7734
|
}
|
|
7732
7735
|
function hv(t) {
|
|
7733
7736
|
t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
|
|
@@ -7761,7 +7764,7 @@ function Ln(t, e, n) {
|
|
|
7761
7764
|
}
|
|
7762
7765
|
r(), hv(t);
|
|
7763
7766
|
}
|
|
7764
|
-
function
|
|
7767
|
+
function ki(t, e) {
|
|
7765
7768
|
t instanceof Promise ? t.then((n) => {
|
|
7766
7769
|
e(n);
|
|
7767
7770
|
}).catch(() => {
|
|
@@ -7776,7 +7779,7 @@ function gv(t, e) {
|
|
|
7776
7779
|
return;
|
|
7777
7780
|
const i = t.loadIcon;
|
|
7778
7781
|
if (t.loadIcons && (s.length > 1 || !i)) {
|
|
7779
|
-
|
|
7782
|
+
ki(
|
|
7780
7783
|
t.loadIcons(s, r, n),
|
|
7781
7784
|
(u) => {
|
|
7782
7785
|
Ln(t, s, u);
|
|
@@ -7787,7 +7790,7 @@ function gv(t, e) {
|
|
|
7787
7790
|
if (i) {
|
|
7788
7791
|
s.forEach((u) => {
|
|
7789
7792
|
const d = i(u, r, n);
|
|
7790
|
-
|
|
7793
|
+
ki(d, (p) => {
|
|
7791
7794
|
const h = p ? {
|
|
7792
7795
|
prefix: r,
|
|
7793
7796
|
icons: {
|
|
@@ -7802,7 +7805,7 @@ function gv(t, e) {
|
|
|
7802
7805
|
const { valid: a, invalid: o } = vv(s);
|
|
7803
7806
|
if (o.length && Ln(t, o, null), !a.length)
|
|
7804
7807
|
return;
|
|
7805
|
-
const c = r.match(Pa) ?
|
|
7808
|
+
const c = r.match(Pa) ? us(n) : null;
|
|
7806
7809
|
if (!c) {
|
|
7807
7810
|
Ln(t, a, null);
|
|
7808
7811
|
return;
|
|
@@ -7823,7 +7826,7 @@ const mv = (t, e) => {
|
|
|
7823
7826
|
r.loaded,
|
|
7824
7827
|
r.missing,
|
|
7825
7828
|
r.pending,
|
|
7826
|
-
|
|
7829
|
+
_i
|
|
7827
7830
|
);
|
|
7828
7831
|
}), () => {
|
|
7829
7832
|
c = !1;
|
|
@@ -7844,7 +7847,7 @@ const mv = (t, e) => {
|
|
|
7844
7847
|
}), i.forEach((c) => {
|
|
7845
7848
|
const l = s[c.provider][c.prefix];
|
|
7846
7849
|
l.length && gv(c, l);
|
|
7847
|
-
}), e ? lv(e, r, i) :
|
|
7850
|
+
}), e ? lv(e, r, i) : _i;
|
|
7848
7851
|
};
|
|
7849
7852
|
function bv(t, e) {
|
|
7850
7853
|
const n = {
|
|
@@ -7910,7 +7913,7 @@ function zv(t) {
|
|
|
7910
7913
|
function $v(t) {
|
|
7911
7914
|
return 'url("' + zv(t) + '")';
|
|
7912
7915
|
}
|
|
7913
|
-
const
|
|
7916
|
+
const yi = {
|
|
7914
7917
|
...Ya,
|
|
7915
7918
|
inline: !1
|
|
7916
7919
|
}, Tv = {
|
|
@@ -7920,29 +7923,29 @@ const ki = {
|
|
|
7920
7923
|
role: "img"
|
|
7921
7924
|
}, Sv = {
|
|
7922
7925
|
display: "inline-block"
|
|
7923
|
-
},
|
|
7926
|
+
}, ds = {
|
|
7924
7927
|
"background-color": "currentColor"
|
|
7925
7928
|
}, Wa = {
|
|
7926
7929
|
"background-color": "transparent"
|
|
7927
|
-
},
|
|
7930
|
+
}, zi = {
|
|
7928
7931
|
image: "var(--svg)",
|
|
7929
7932
|
repeat: "no-repeat",
|
|
7930
7933
|
size: "100% 100%"
|
|
7931
|
-
},
|
|
7932
|
-
"-webkit-mask":
|
|
7933
|
-
mask:
|
|
7934
|
+
}, $i = {
|
|
7935
|
+
"-webkit-mask": ds,
|
|
7936
|
+
mask: ds,
|
|
7934
7937
|
background: Wa
|
|
7935
7938
|
};
|
|
7936
|
-
for (const t in
|
|
7937
|
-
const e =
|
|
7938
|
-
for (const n in
|
|
7939
|
-
e[t + "-" + n] =
|
|
7939
|
+
for (const t in $i) {
|
|
7940
|
+
const e = $i[t];
|
|
7941
|
+
for (const n in zi)
|
|
7942
|
+
e[t + "-" + n] = zi[n];
|
|
7940
7943
|
}
|
|
7941
7944
|
function Ev(t) {
|
|
7942
7945
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
7943
7946
|
}
|
|
7944
7947
|
function Cv(t, e) {
|
|
7945
|
-
const n = bv(
|
|
7948
|
+
const n = bv(yi, e), r = e.mode || "svg", s = r === "svg" ? { ...Tv } : {};
|
|
7946
7949
|
t.body.indexOf("xlink:") === -1 && delete s["xmlns:xlink"];
|
|
7947
7950
|
let i = typeof e.style == "string" ? e.style : "";
|
|
7948
7951
|
for (let x in e) {
|
|
@@ -7976,7 +7979,7 @@ function Cv(t, e) {
|
|
|
7976
7979
|
default:
|
|
7977
7980
|
if (x.slice(0, 3) === "on:")
|
|
7978
7981
|
break;
|
|
7979
|
-
|
|
7982
|
+
yi[x] === void 0 && (s[x] = _);
|
|
7980
7983
|
}
|
|
7981
7984
|
}
|
|
7982
7985
|
const a = Yh(t, n), o = a.attributes;
|
|
@@ -7995,11 +7998,11 @@ function Cv(t, e) {
|
|
|
7995
7998
|
height: u + ""
|
|
7996
7999
|
}), w = {
|
|
7997
8000
|
"--svg": $v(p)
|
|
7998
|
-
},
|
|
8001
|
+
}, b = (x) => {
|
|
7999
8002
|
const _ = o[x];
|
|
8000
8003
|
_ && (w[x] = Ev(_));
|
|
8001
8004
|
};
|
|
8002
|
-
|
|
8005
|
+
b("width"), b("height"), Object.assign(w, Sv, d ? ds : Wa);
|
|
8003
8006
|
let S = "";
|
|
8004
8007
|
for (const x in w)
|
|
8005
8008
|
S += x + ": " + w[x] + ";";
|
|
@@ -8060,7 +8063,7 @@ function Iv(t, e, n, r, s) {
|
|
|
8060
8063
|
const c = ["iconify"];
|
|
8061
8064
|
return a.prefix !== "" && c.push("iconify--" + a.prefix), a.provider !== "" && c.push("iconify--" + a.provider), { data: o, classes: c };
|
|
8062
8065
|
}
|
|
8063
|
-
function
|
|
8066
|
+
function Ti(t, e) {
|
|
8064
8067
|
return t ? Cv({
|
|
8065
8068
|
...Rr,
|
|
8066
8069
|
...t
|
|
@@ -8092,15 +8095,15 @@ function Xt(t, e) {
|
|
|
8092
8095
|
Bn(i);
|
|
8093
8096
|
}
|
|
8094
8097
|
Lr(() => {
|
|
8095
|
-
|
|
8098
|
+
m(s, !0);
|
|
8096
8099
|
}), Pl(() => {
|
|
8097
8100
|
Ur(r, f(r).destroyed = !0), f(r).loading && (f(r).loading.abort(), Ur(r, f(r).loading = null));
|
|
8098
8101
|
}), Yn(
|
|
8099
|
-
() => (f(i), En(n), f(s), f(r), f(a),
|
|
8102
|
+
() => (f(i), En(n), f(s), f(r), f(a), Ti),
|
|
8100
8103
|
() => {
|
|
8101
8104
|
f(i);
|
|
8102
8105
|
const p = !!n.ssr || f(s), h = Iv(n.icon, f(r), p, c, o);
|
|
8103
|
-
|
|
8106
|
+
m(a, h ? Ti(h.data, n) : null), f(a) && h.classes && Ur(a, f(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
|
|
8104
8107
|
}
|
|
8105
8108
|
), Gn(), ct();
|
|
8106
8109
|
var l = $t(), u = pt(l);
|
|
@@ -8108,18 +8111,18 @@ function Xt(t, e) {
|
|
|
8108
8111
|
var d = (p) => {
|
|
8109
8112
|
var h = $t(), w = pt(h);
|
|
8110
8113
|
{
|
|
8111
|
-
var
|
|
8114
|
+
var b = (x) => {
|
|
8112
8115
|
var _ = Av();
|
|
8113
8116
|
let y;
|
|
8114
8117
|
var F = z(_);
|
|
8115
|
-
ss(F, () => f(a).body, !0, !1), k(_), O(() => y =
|
|
8118
|
+
ss(F, () => f(a).body, !0, !1), k(_), O(() => y = ri(_, y, { ...f(a).attributes }, void 0, !0)), T(x, _);
|
|
8116
8119
|
}, S = (x) => {
|
|
8117
8120
|
var _ = Lv();
|
|
8118
8121
|
let y;
|
|
8119
|
-
O(() => y =
|
|
8122
|
+
O(() => y = ri(_, y, { ...f(a).attributes })), T(x, _);
|
|
8120
8123
|
};
|
|
8121
8124
|
V(w, (x) => {
|
|
8122
|
-
f(a).svg ? x(
|
|
8125
|
+
f(a).svg ? x(b) : x(S, !1);
|
|
8123
8126
|
});
|
|
8124
8127
|
}
|
|
8125
8128
|
T(p, h);
|
|
@@ -8131,7 +8134,7 @@ function Xt(t, e) {
|
|
|
8131
8134
|
T(t, l), ae();
|
|
8132
8135
|
}
|
|
8133
8136
|
oe(Xt, {}, [], [], !0);
|
|
8134
|
-
function
|
|
8137
|
+
function Ps() {
|
|
8135
8138
|
return {
|
|
8136
8139
|
async: !1,
|
|
8137
8140
|
breaks: !1,
|
|
@@ -8145,7 +8148,7 @@ function Os() {
|
|
|
8145
8148
|
walkTokens: null
|
|
8146
8149
|
};
|
|
8147
8150
|
}
|
|
8148
|
-
let hn =
|
|
8151
|
+
let hn = Ps();
|
|
8149
8152
|
function Za(t) {
|
|
8150
8153
|
hn = t;
|
|
8151
8154
|
}
|
|
@@ -8218,7 +8221,7 @@ const nt = {
|
|
|
8218
8221
|
fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
|
|
8219
8222
|
headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
|
|
8220
8223
|
htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
8221
|
-
}, jv = /^(?:[ \t]*(?:\n|$))+/, Rv = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Zn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
|
|
8224
|
+
}, jv = /^(?:[ \t]*(?:\n|$))+/, Rv = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Zn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ms = /(?:[*+-]|\d{1,9}[.)])/, Xa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Va = ke(Xa).replace(/bull/g, Ms).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ov = ke(Xa).replace(/bull/g, Ms).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ns = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pv = /^[^\n]+/, Us = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Mv = ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Us).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Nv = ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ms).getRegex(), Fr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Bs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Uv = ke("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Bs).replace("tag", Fr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Qa = ke(Ns).replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Fr).getRegex(), Bv = ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Qa).getRegex(), qs = {
|
|
8222
8225
|
blockquote: Bv,
|
|
8223
8226
|
code: Rv,
|
|
8224
8227
|
def: Mv,
|
|
@@ -8232,22 +8235,22 @@ const nt = {
|
|
|
8232
8235
|
paragraph: Qa,
|
|
8233
8236
|
table: On,
|
|
8234
8237
|
text: Pv
|
|
8235
|
-
},
|
|
8236
|
-
...
|
|
8238
|
+
}, Si = ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Fr).getRegex(), qv = {
|
|
8239
|
+
...qs,
|
|
8237
8240
|
lheading: Ov,
|
|
8238
|
-
table:
|
|
8239
|
-
paragraph: ke(
|
|
8241
|
+
table: Si,
|
|
8242
|
+
paragraph: ke(Ns).replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Si).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Fr).getRegex()
|
|
8240
8243
|
}, Hv = {
|
|
8241
|
-
...
|
|
8242
|
-
html: ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
|
8244
|
+
...qs,
|
|
8245
|
+
html: ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Bs).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
8243
8246
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
8244
8247
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
8245
8248
|
fences: On,
|
|
8246
8249
|
// fences not supported
|
|
8247
8250
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
8248
|
-
paragraph: ke(
|
|
8251
|
+
paragraph: ke(Ns).replace("hr", Zn).replace("heading", ` *#{1,6} *[^
|
|
8249
8252
|
]`).replace("lheading", Va).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
8250
|
-
}, Yv = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gv = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ka = /^( {2,}|\\)\n(?!\s*$)/, Jv = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dr = /[\p{P}\p{S}]/u,
|
|
8253
|
+
}, Yv = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gv = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ka = /^( {2,}|\\)\n(?!\s*$)/, Jv = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dr = /[\p{P}\p{S}]/u, Hs = /[\s\p{P}\p{S}]/u, eo = /[^\s\p{P}\p{S}]/u, Wv = ke(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Hs).getRegex(), to = /(?!~)[\p{P}\p{S}]/u, Zv = /(?!~)[\s\p{P}\p{S}]/u, Xv = /(?:[^\s\p{P}\p{S}]|~)/u, Vv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, no = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Qv = ke(no, "u").replace(/punct/g, Dr).getRegex(), Kv = ke(no, "u").replace(/punct/g, to).getRegex(), ro = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", eg = ke(ro, "gu").replace(/notPunctSpace/g, eo).replace(/punctSpace/g, Hs).replace(/punct/g, Dr).getRegex(), tg = ke(ro, "gu").replace(/notPunctSpace/g, Xv).replace(/punctSpace/g, Zv).replace(/punct/g, to).getRegex(), ng = ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, eo).replace(/punctSpace/g, Hs).replace(/punct/g, Dr).getRegex(), rg = ke(/\\(punct)/, "gu").replace(/punct/g, Dr).getRegex(), sg = ke(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ig = ke(Bs).replace("(?:-->|$)", "-->").getRegex(), ag = ke("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ig).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), xr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, og = ke(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", xr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), so = ke(/^!?\[(label)\]\[(ref)\]/).replace("label", xr).replace("ref", Us).getRegex(), io = ke(/^!?\[(ref)\](?:\[\])?/).replace("ref", Us).getRegex(), lg = ke("reflink|nolink(?!\\()", "g").replace("reflink", so).replace("nolink", io).getRegex(), Ys = {
|
|
8251
8254
|
_backpedal: On,
|
|
8252
8255
|
// only used for GFM url
|
|
8253
8256
|
anyPunctuation: rg,
|
|
@@ -8269,11 +8272,11 @@ const nt = {
|
|
|
8269
8272
|
text: Jv,
|
|
8270
8273
|
url: On
|
|
8271
8274
|
}, cg = {
|
|
8272
|
-
...
|
|
8275
|
+
...Ys,
|
|
8273
8276
|
link: ke(/^!?\[(label)\]\((.*?)\)/).replace("label", xr).getRegex(),
|
|
8274
8277
|
reflink: ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", xr).getRegex()
|
|
8275
|
-
},
|
|
8276
|
-
...
|
|
8278
|
+
}, fs = {
|
|
8279
|
+
...Ys,
|
|
8277
8280
|
emStrongRDelimAst: tg,
|
|
8278
8281
|
emStrongLDelim: Kv,
|
|
8279
8282
|
url: ke(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
@@ -8281,16 +8284,16 @@ const nt = {
|
|
|
8281
8284
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
8282
8285
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
8283
8286
|
}, ug = {
|
|
8284
|
-
...
|
|
8287
|
+
...fs,
|
|
8285
8288
|
br: ke(Ka).replace("{2,}", "*").getRegex(),
|
|
8286
|
-
text: ke(
|
|
8289
|
+
text: ke(fs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
8287
8290
|
}, nr = {
|
|
8288
|
-
normal:
|
|
8291
|
+
normal: qs,
|
|
8289
8292
|
gfm: qv,
|
|
8290
8293
|
pedantic: Hv
|
|
8291
8294
|
}, jn = {
|
|
8292
|
-
normal:
|
|
8293
|
-
gfm:
|
|
8295
|
+
normal: Ys,
|
|
8296
|
+
gfm: fs,
|
|
8294
8297
|
breaks: ug,
|
|
8295
8298
|
pedantic: cg
|
|
8296
8299
|
}, dg = {
|
|
@@ -8299,16 +8302,16 @@ const nt = {
|
|
|
8299
8302
|
">": ">",
|
|
8300
8303
|
'"': """,
|
|
8301
8304
|
"'": "'"
|
|
8302
|
-
},
|
|
8305
|
+
}, Ei = (t) => dg[t];
|
|
8303
8306
|
function Et(t, e) {
|
|
8304
8307
|
if (e) {
|
|
8305
8308
|
if (nt.escapeTest.test(t))
|
|
8306
|
-
return t.replace(nt.escapeReplace,
|
|
8309
|
+
return t.replace(nt.escapeReplace, Ei);
|
|
8307
8310
|
} else if (nt.escapeTestNoEncode.test(t))
|
|
8308
|
-
return t.replace(nt.escapeReplaceNoEncode,
|
|
8311
|
+
return t.replace(nt.escapeReplaceNoEncode, Ei);
|
|
8309
8312
|
return t;
|
|
8310
8313
|
}
|
|
8311
|
-
function
|
|
8314
|
+
function Ci(t) {
|
|
8312
8315
|
try {
|
|
8313
8316
|
t = encodeURI(t).replace(nt.percentDecode, "%");
|
|
8314
8317
|
} catch {
|
|
@@ -8316,7 +8319,7 @@ function Ei(t) {
|
|
|
8316
8319
|
}
|
|
8317
8320
|
return t;
|
|
8318
8321
|
}
|
|
8319
|
-
function
|
|
8322
|
+
function Ii(t, e) {
|
|
8320
8323
|
var i;
|
|
8321
8324
|
const n = t.replace(nt.findPipe, (a, o, c) => {
|
|
8322
8325
|
let l = !1, u = o;
|
|
@@ -8357,7 +8360,7 @@ function fg(t, e) {
|
|
|
8357
8360
|
return r;
|
|
8358
8361
|
return -1;
|
|
8359
8362
|
}
|
|
8360
|
-
function
|
|
8363
|
+
function Ai(t, e, n, r, s) {
|
|
8361
8364
|
const i = e.href, a = e.title || null, o = t[1].replace(s.other.outputLinkReplace, "$1");
|
|
8362
8365
|
if (t[0].charAt(0) !== "!") {
|
|
8363
8366
|
r.state.inLink = !0;
|
|
@@ -8494,16 +8497,16 @@ ${d}` : d;
|
|
|
8494
8497
|
if ((h == null ? void 0 : h.type) === "code")
|
|
8495
8498
|
break;
|
|
8496
8499
|
if ((h == null ? void 0 : h.type) === "blockquote") {
|
|
8497
|
-
const w = h,
|
|
8500
|
+
const w = h, b = w.raw + `
|
|
8498
8501
|
` + r.join(`
|
|
8499
|
-
`), S = this.blockquote(
|
|
8502
|
+
`), S = this.blockquote(b);
|
|
8500
8503
|
a[a.length - 1] = S, s = s.substring(0, s.length - w.raw.length) + S.raw, i = i.substring(0, i.length - w.text.length) + S.text;
|
|
8501
8504
|
break;
|
|
8502
8505
|
} else if ((h == null ? void 0 : h.type) === "list") {
|
|
8503
|
-
const w = h,
|
|
8506
|
+
const w = h, b = w.raw + `
|
|
8504
8507
|
` + r.join(`
|
|
8505
|
-
`), S = this.list(
|
|
8506
|
-
a[a.length - 1] = S, s = s.substring(0, s.length - h.raw.length) + S.raw, i = i.substring(0, i.length - w.raw.length) + S.raw, r =
|
|
8508
|
+
`), S = this.list(b);
|
|
8509
|
+
a[a.length - 1] = S, s = s.substring(0, s.length - h.raw.length) + S.raw, i = i.substring(0, i.length - w.raw.length) + S.raw, r = b.substring(a.at(-1).raw.length).split(`
|
|
8507
8510
|
`);
|
|
8508
8511
|
continue;
|
|
8509
8512
|
}
|
|
@@ -8538,19 +8541,19 @@ ${d}` : d;
|
|
|
8538
8541
|
u = n[0], e = e.substring(u.length);
|
|
8539
8542
|
let p = n[2].split(`
|
|
8540
8543
|
`, 1)[0].replace(this.rules.other.listReplaceTabs, (_) => " ".repeat(3 * _.length)), h = e.split(`
|
|
8541
|
-
`, 1)[0], w = !p.trim(),
|
|
8542
|
-
if (this.options.pedantic ? (
|
|
8544
|
+
`, 1)[0], w = !p.trim(), b = 0;
|
|
8545
|
+
if (this.options.pedantic ? (b = 2, d = p.trimStart()) : w ? b = n[1].length + 1 : (b = n[2].search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, d = p.slice(b), b += n[1].length), w && this.rules.other.blankLine.test(h) && (u += h + `
|
|
8543
8546
|
`, e = e.substring(h.length + 1), l = !0), !l) {
|
|
8544
|
-
const _ = this.rules.other.nextBulletRegex(
|
|
8547
|
+
const _ = this.rules.other.nextBulletRegex(b), y = this.rules.other.hrRegex(b), F = this.rules.other.fencesBeginRegex(b), $ = this.rules.other.headingBeginRegex(b), A = this.rules.other.htmlBeginRegex(b);
|
|
8545
8548
|
for (; e; ) {
|
|
8546
8549
|
const L = e.split(`
|
|
8547
8550
|
`, 1)[0];
|
|
8548
8551
|
let M;
|
|
8549
8552
|
if (h = L, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), F.test(h) || $.test(h) || A.test(h) || _.test(h) || y.test(h))
|
|
8550
8553
|
break;
|
|
8551
|
-
if (M.search(this.rules.other.nonSpaceChar) >=
|
|
8554
|
+
if (M.search(this.rules.other.nonSpaceChar) >= b || !h.trim())
|
|
8552
8555
|
d += `
|
|
8553
|
-
` + M.slice(
|
|
8556
|
+
` + M.slice(b);
|
|
8554
8557
|
else {
|
|
8555
8558
|
if (w || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(p) || $.test(p) || y.test(p))
|
|
8556
8559
|
break;
|
|
@@ -8558,7 +8561,7 @@ ${d}` : d;
|
|
|
8558
8561
|
` + h;
|
|
8559
8562
|
}
|
|
8560
8563
|
!w && !h.trim() && (w = !0), u += L + `
|
|
8561
|
-
`, e = e.substring(L.length + 1), p = M.slice(
|
|
8564
|
+
`, e = e.substring(L.length + 1), p = M.slice(b);
|
|
8562
8565
|
}
|
|
8563
8566
|
}
|
|
8564
8567
|
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
|
|
@@ -8619,7 +8622,7 @@ ${d}` : d;
|
|
|
8619
8622
|
const n = this.rules.block.table.exec(e);
|
|
8620
8623
|
if (!n || !this.rules.other.tableDelimiter.test(n[2]))
|
|
8621
8624
|
return;
|
|
8622
|
-
const r =
|
|
8625
|
+
const r = Ii(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (o = n[3]) != null && o.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
8623
8626
|
`) : [], a = {
|
|
8624
8627
|
type: "table",
|
|
8625
8628
|
raw: n[0],
|
|
@@ -8638,7 +8641,7 @@ ${d}` : d;
|
|
|
8638
8641
|
align: a.align[c]
|
|
8639
8642
|
});
|
|
8640
8643
|
for (const c of i)
|
|
8641
|
-
a.rows.push(
|
|
8644
|
+
a.rows.push(Ii(c, a.header.length).map((l, u) => ({
|
|
8642
8645
|
text: l,
|
|
8643
8646
|
tokens: this.lexer.inline(l),
|
|
8644
8647
|
header: !1,
|
|
@@ -8725,7 +8728,7 @@ ${d}` : d;
|
|
|
8725
8728
|
a && (s = a[1], i = a[3]);
|
|
8726
8729
|
} else
|
|
8727
8730
|
i = n[3] ? n[3].slice(1, -1) : "";
|
|
8728
|
-
return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)),
|
|
8731
|
+
return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), Ai(n, {
|
|
8729
8732
|
href: s && s.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
8730
8733
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
8731
8734
|
}, n[0], this.lexer, this.rules);
|
|
@@ -8743,7 +8746,7 @@ ${d}` : d;
|
|
|
8743
8746
|
text: a
|
|
8744
8747
|
};
|
|
8745
8748
|
}
|
|
8746
|
-
return
|
|
8749
|
+
return Ai(r, i, r[0], this.lexer, this.rules);
|
|
8747
8750
|
}
|
|
8748
8751
|
}
|
|
8749
8752
|
emStrong(e, n, r = "") {
|
|
@@ -8769,12 +8772,12 @@ ${d}` : d;
|
|
|
8769
8772
|
c = Math.min(c, c + l + u);
|
|
8770
8773
|
const p = [...s[0]][0].length, h = e.slice(0, a + s.index + p + c);
|
|
8771
8774
|
if (Math.min(a, c) % 2) {
|
|
8772
|
-
const
|
|
8775
|
+
const b = h.slice(1, -1);
|
|
8773
8776
|
return {
|
|
8774
8777
|
type: "em",
|
|
8775
8778
|
raw: h,
|
|
8776
|
-
text:
|
|
8777
|
-
tokens: this.lexer.inlineTokens(
|
|
8779
|
+
text: b,
|
|
8780
|
+
tokens: this.lexer.inlineTokens(b)
|
|
8778
8781
|
};
|
|
8779
8782
|
}
|
|
8780
8783
|
const w = h.slice(2, -2);
|
|
@@ -9101,8 +9104,8 @@ class xt {
|
|
|
9101
9104
|
let p = 1 / 0;
|
|
9102
9105
|
const h = e.slice(1);
|
|
9103
9106
|
let w;
|
|
9104
|
-
this.options.extensions.startInline.forEach((
|
|
9105
|
-
w =
|
|
9107
|
+
this.options.extensions.startInline.forEach((b) => {
|
|
9108
|
+
w = b.call({ lexer: this }, h), typeof w == "number" && w >= 0 && (p = Math.min(p, w));
|
|
9106
9109
|
}), p < 1 / 0 && p >= 0 && (d = e.substring(0, p + 1));
|
|
9107
9110
|
}
|
|
9108
9111
|
if (u = this.tokenizer.inlineText(d)) {
|
|
@@ -9239,7 +9242,7 @@ ${e}</tr>
|
|
|
9239
9242
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
9240
9243
|
}
|
|
9241
9244
|
link({ href: e, title: n, tokens: r }) {
|
|
9242
|
-
const s = this.parser.parseInline(r), i =
|
|
9245
|
+
const s = this.parser.parseInline(r), i = Ci(e);
|
|
9243
9246
|
if (i === null)
|
|
9244
9247
|
return s;
|
|
9245
9248
|
e = i;
|
|
@@ -9247,7 +9250,7 @@ ${e}</tr>
|
|
|
9247
9250
|
return n && (a += ' title="' + Et(n) + '"'), a += ">" + s + "</a>", a;
|
|
9248
9251
|
}
|
|
9249
9252
|
image({ href: e, title: n, text: r }) {
|
|
9250
|
-
const s =
|
|
9253
|
+
const s = Ci(e);
|
|
9251
9254
|
if (s === null)
|
|
9252
9255
|
return Et(r);
|
|
9253
9256
|
e = s;
|
|
@@ -9258,7 +9261,7 @@ ${e}</tr>
|
|
|
9258
9261
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Et(e.text);
|
|
9259
9262
|
}
|
|
9260
9263
|
}
|
|
9261
|
-
class
|
|
9264
|
+
class Gs {
|
|
9262
9265
|
// no need for block level renderers
|
|
9263
9266
|
strong({ text: e }) {
|
|
9264
9267
|
return e;
|
|
@@ -9293,7 +9296,7 @@ class wt {
|
|
|
9293
9296
|
I(this, "options");
|
|
9294
9297
|
I(this, "renderer");
|
|
9295
9298
|
I(this, "textRenderer");
|
|
9296
|
-
this.options = e || hn, this.options.renderer = this.options.renderer || new _r(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new
|
|
9299
|
+
this.options = e || hn, this.options.renderer = this.options.renderer || new _r(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Gs();
|
|
9297
9300
|
}
|
|
9298
9301
|
/**
|
|
9299
9302
|
* Static Parse Method
|
|
@@ -9495,13 +9498,13 @@ I(Pn, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
|
9495
9498
|
]));
|
|
9496
9499
|
class hg {
|
|
9497
9500
|
constructor(...e) {
|
|
9498
|
-
I(this, "defaults",
|
|
9501
|
+
I(this, "defaults", Ps());
|
|
9499
9502
|
I(this, "options", this.setOptions);
|
|
9500
9503
|
I(this, "parse", this.parseMarkdown(!0));
|
|
9501
9504
|
I(this, "parseInline", this.parseMarkdown(!1));
|
|
9502
9505
|
I(this, "Parser", wt);
|
|
9503
9506
|
I(this, "Renderer", _r);
|
|
9504
|
-
I(this, "TextRenderer",
|
|
9507
|
+
I(this, "TextRenderer", Gs);
|
|
9505
9508
|
I(this, "Lexer", xt);
|
|
9506
9509
|
I(this, "Tokenizer", wr);
|
|
9507
9510
|
I(this, "Hooks", Pn);
|
|
@@ -9673,7 +9676,7 @@ function _e(t, e) {
|
|
|
9673
9676
|
_e.options = _e.setOptions = function(t) {
|
|
9674
9677
|
return cn.setOptions(t), _e.defaults = cn.defaults, Za(_e.defaults), _e;
|
|
9675
9678
|
};
|
|
9676
|
-
_e.getDefaults =
|
|
9679
|
+
_e.getDefaults = Ps;
|
|
9677
9680
|
_e.defaults = hn;
|
|
9678
9681
|
_e.use = function(...t) {
|
|
9679
9682
|
return cn.use(...t), _e.defaults = cn.defaults, Za(_e.defaults), _e;
|
|
@@ -9685,7 +9688,7 @@ _e.parseInline = cn.parseInline;
|
|
|
9685
9688
|
_e.Parser = wt;
|
|
9686
9689
|
_e.parser = wt.parse;
|
|
9687
9690
|
_e.Renderer = _r;
|
|
9688
|
-
_e.TextRenderer =
|
|
9691
|
+
_e.TextRenderer = Gs;
|
|
9689
9692
|
_e.Lexer = xt;
|
|
9690
9693
|
_e.lexer = xt.lex;
|
|
9691
9694
|
_e.Tokenizer = wr;
|
|
@@ -9716,15 +9719,15 @@ const zg = {
|
|
|
9716
9719
|
hash: "svelte-173vhzm",
|
|
9717
9720
|
code: ".sources-container.svelte-173vhzm {display:flex;flex-direction:column;width:100%;}.sources-expanded.svelte-173vhzm {background:rgba(255, 255, 255, 0.2);border-radius:0 0 8px 0;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);margin-top:-10px;overflow:hidden;width:fit-content;min-width:350px;}.sources-header.svelte-173vhzm {height:10px;}.sources-footer.svelte-173vhzm {display:flex;justify-content:flex-end;align-items:center;padding:0 10px 10px 10px;}.sources-title.svelte-173vhzm {margin:0;font-size:16px;font-weight:600;color:#333;}.copy-sources-btn.svelte-173vhzm {display:flex;align-items:center;gap:6px;padding:8px 12px;background:rgba(255, 255, 255, 0.9);color:#295dcf;border:1px solid rgba(255, 255, 255, 0.3);border-radius:8px;cursor:pointer;font-size:13px;transition:all 0.2s;white-space:nowrap;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.copy-sources-btn.svelte-173vhzm:hover {background:white;box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.copy-sources-btn.svelte-173vhzm i:where(.svelte-173vhzm) {font-size:12px;}.sources-list.svelte-173vhzm {display:flex;flex-wrap:wrap;gap:10px;padding:10px;}.dropdown-option.svelte-173vhzm {display:flex;align-items:center;flex:0 1 calc(50% - 5px);min-width:250px;padding:12px 15px;border:1px solid rgba(255, 255, 255, 0.5);border-radius:8px;background:white;color:#333;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.dropdown-option.svelte-173vhzm:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-173vhzm {color:#8fa1c9;cursor:default;opacity:0.8;}.dropdown-option.svelte-173vhzm:hover {background:white;color:#295dcf;border-color:rgba(41, 93, 207, 0.3);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.dropdown-option.common.svelte-173vhzm:hover {background:white;color:#8fa1c9;border-color:rgba(255, 255, 255, 0.5);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);transform:none;}.dropdown-option.svelte-173vhzm i:where(.svelte-173vhzm) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-173vhzm span:where(.svelte-173vhzm) {font-size:14px;}.document-info.svelte-173vhzm {display:flex;flex-direction:column;align-items:flex-start;flex:1;}.document-title.svelte-173vhzm {font-weight:500;margin-bottom:4px;text-align:left;word-break:break-word;}.document-path.svelte-173vhzm {font-size:0.85em;color:#6c757d;text-align:left;word-break:break-word;}"
|
|
9718
9721
|
};
|
|
9719
|
-
function
|
|
9720
|
-
ie(e, !0),
|
|
9722
|
+
function ps(t, e) {
|
|
9723
|
+
ie(e, !0), ue(t, zg);
|
|
9721
9724
|
let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), i = G(C({})), a = G(C(/* @__PURE__ */ Yr()));
|
|
9722
9725
|
const o = (x, _) => {
|
|
9723
9726
|
f(i)[x] = _;
|
|
9724
9727
|
}, c = () => {
|
|
9725
|
-
|
|
9728
|
+
m(a, C(/* @__PURE__ */ rd())), setTimeout(
|
|
9726
9729
|
() => {
|
|
9727
|
-
|
|
9730
|
+
m(a, C(/* @__PURE__ */ Yr()));
|
|
9728
9731
|
},
|
|
9729
9732
|
2e3
|
|
9730
9733
|
);
|
|
@@ -9786,7 +9789,7 @@ function fs(t, e) {
|
|
|
9786
9789
|
const L = Aa(y);
|
|
9787
9790
|
!Ip(y) || L === "mp3" ? await d(_, A || "", y) : await u(_, A || "", y);
|
|
9788
9791
|
};
|
|
9789
|
-
var w = yg(),
|
|
9792
|
+
var w = yg(), b = z(w);
|
|
9790
9793
|
{
|
|
9791
9794
|
var S = (x) => {
|
|
9792
9795
|
var _ = kg(), y = z(_);
|
|
@@ -9794,10 +9797,10 @@ function fs(t, e) {
|
|
|
9794
9797
|
var F = ($) => {
|
|
9795
9798
|
var A = _g(), L = P(z(A), 2);
|
|
9796
9799
|
Ke(L, 21, r, Qe, (je, ge) => {
|
|
9797
|
-
var
|
|
9798
|
-
const Ze = /* @__PURE__ */ qe(() => tr(f(ge).external_id, f(ge).filename)), Xe = /* @__PURE__ */ qe(() => Rp(f(ge))), ut = /* @__PURE__ */ qe(() => f(i)[f(Ze)]), gt = /* @__PURE__ */ qe(() => Dp(f(ge), s())), R = /* @__PURE__ */ qe(() => La(f(ge))), Q = /* @__PURE__ */ qe(() => ja(f(ge))), Ee = /* @__PURE__ */ qe(() => f(ge).isCommon ? Wn(f(ge).commonType).name : /* @__PURE__ */
|
|
9799
|
-
|
|
9800
|
-
var Ce = z(
|
|
9800
|
+
var ce = wg();
|
|
9801
|
+
const Ze = /* @__PURE__ */ qe(() => tr(f(ge).external_id, f(ge).filename)), Xe = /* @__PURE__ */ qe(() => Rp(f(ge))), ut = /* @__PURE__ */ qe(() => f(i)[f(Ze)]), gt = /* @__PURE__ */ qe(() => Dp(f(ge), s())), R = /* @__PURE__ */ qe(() => La(f(ge))), Q = /* @__PURE__ */ qe(() => ja(f(ge))), Ee = /* @__PURE__ */ qe(() => f(ge).isCommon ? Wn(f(ge).commonType).name : /* @__PURE__ */ di());
|
|
9802
|
+
ce.__click = [gg, h, ge];
|
|
9803
|
+
var Ce = z(ce);
|
|
9801
9804
|
{
|
|
9802
9805
|
var Pe = (ne) => {
|
|
9803
9806
|
var me = mg();
|
|
@@ -9824,12 +9827,12 @@ function fs(t, e) {
|
|
|
9824
9827
|
f(ge).isCommon || ne(ze);
|
|
9825
9828
|
});
|
|
9826
9829
|
}
|
|
9827
|
-
k(Ue), k(
|
|
9830
|
+
k(Ue), k(ce), O(
|
|
9828
9831
|
(ne) => {
|
|
9829
|
-
tt(
|
|
9832
|
+
tt(ce, `${`dropdown-option ${f(gt) ? "common" : ""}` ?? ""} svelte-173vhzm`), N(ce, "aria-label", ne), N(ce, "title", f(Ee)), ce.disabled = f(ut), $e(ye, f(R));
|
|
9830
9833
|
},
|
|
9831
|
-
[() => /* @__PURE__ */
|
|
9832
|
-
), T(je,
|
|
9834
|
+
[() => /* @__PURE__ */ di()]
|
|
9835
|
+
), T(je, ce);
|
|
9833
9836
|
}), k(L);
|
|
9834
9837
|
var M = P(L, 2), H = z(M);
|
|
9835
9838
|
H.__click = [
|
|
@@ -9851,7 +9854,7 @@ function fs(t, e) {
|
|
|
9851
9854
|
}
|
|
9852
9855
|
k(_), T(x, _);
|
|
9853
9856
|
};
|
|
9854
|
-
V(
|
|
9857
|
+
V(b, (x) => {
|
|
9855
9858
|
r().length > 0 && x(S);
|
|
9856
9859
|
});
|
|
9857
9860
|
}
|
|
@@ -9878,7 +9881,7 @@ function fs(t, e) {
|
|
|
9878
9881
|
}
|
|
9879
9882
|
nn(["click"]);
|
|
9880
9883
|
oe(
|
|
9881
|
-
|
|
9884
|
+
ps,
|
|
9882
9885
|
{
|
|
9883
9886
|
isDropdownOpen: {},
|
|
9884
9887
|
attachmentList: {},
|
|
@@ -9889,7 +9892,7 @@ oe(
|
|
|
9889
9892
|
!0
|
|
9890
9893
|
);
|
|
9891
9894
|
const $g = (t, e, n) => {
|
|
9892
|
-
f(e).pause(),
|
|
9895
|
+
f(e).pause(), m(n, !1);
|
|
9893
9896
|
};
|
|
9894
9897
|
var Tg = /* @__PURE__ */ j('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1c80pjc"><i class="fa-solid fa-pause"></i></button>'), Sg = (t, e, n) => e(f(n)), Eg = /* @__PURE__ */ j('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1c80pjc"><i class="fa-solid fa-play"></i></button>'), Cg = /* @__PURE__ */ j('<div class="agent-badge svelte-1c80pjc" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-1c80pjc"></i> <span> </span></div>'), Ig = /* @__PURE__ */ j('<button class="sources-toggle-btn svelte-1c80pjc" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Ag = /* @__PURE__ */ j('<i class="fa-solid fa-check"></i>'), Lg = /* @__PURE__ */ j('<i class="fa-regular fa-copy"></i>'), jg = /* @__PURE__ */ j('<div><div class="message-plus-play svelte-1c80pjc"><div><div class="message-content svelte-1c80pjc"><!></div></div> <!></div> <div class="w-100 d-flex"><div class="attachments-container svelte-1c80pjc"><!> <div class="d-flex gap-1"><!> <!> <button aria-label="Copy message" class="copy-button svelte-1c80pjc"><!></button></div></div></div></div>'), Rg = /* @__PURE__ */ j('<div><div class="message-plus-play svelte-1c80pjc"><div class="message-received svelte-1c80pjc"><div class="message-content svelte-1c80pjc"><!></div></div> <!></div> <div class="w-100 d-flex" style="justify-content: flex-start"><div class="attachments-container svelte-1c80pjc"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-1c80pjc" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-1c80pjc"></i> <span> </span></div></div></div></div></div>'), Fg = /* @__PURE__ */ j('<div class="loading svelte-1c80pjc"><!></div>'), Dg = /* @__PURE__ */ j('<div class="alert alert-danger"> </div>'), Og = /* @__PURE__ */ j('<div class="messages-wrapper svelte-1c80pjc"><div class="empty-placeholder svelte-1c80pjc"></div> <!> <!> <!></div>'), Pg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1c80pjc"><!></div>'), Mg = /* @__PURE__ */ j('<div class="chat-body svelte-1c80pjc"><!> <!></div>');
|
|
9895
9898
|
const Ng = {
|
|
@@ -9902,22 +9905,22 @@ const Ng = {
|
|
|
9902
9905
|
); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-1c80pjc::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-1c80pjc {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:fit-content;max-width:80%;margin-left:auto;transition:200ms;z-index:1000;user-select:text;}.message-received.svelte-1c80pjc {background:white;border-radius:10px;border-bottom-left-radius:0;width:fit-content;max-width:80%;transition:200ms;position:relative;z-index:1000;user-select:text;}.message-content.svelte-1c80pjc {padding:10px;font-size:16px;}.attachments-container.svelte-1c80pjc {display:flex;flex-direction:column;width:80%;height:35px;}.play-button.svelte-1c80pjc {transition:opacity 200ms;opacity:0;background-color:white;color:#295dcf;transition:200ms;}.play-button.svelte-1c80pjc:hover {background-color:#e9ecef;translate:0 -1px;}.sources-toggle-btn.svelte-1c80pjc {display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:rgba(255, 255, 255, 0.2);color:white;border-radius:0 0 8px 8px;cursor:pointer;font-size:14px;transition:all 200ms;width:fit-content;gap:10px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);border:none;height:30px;}.sources-toggle-btn.svelte-1c80pjc:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.sources-toggle-btn.svelte-1c80pjc i:where(.svelte-1c80pjc) {font-size:12px;transition:transform 200ms;}.copy-button.svelte-1c80pjc {transition:opacity 200ms;background-color:rgba(255, 255, 255, 0.2);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);border:none;color:white;transition:200ms;border-radius:0 0 8px 8px;height:30px;width:30px;padding:0;font-size:18px;margin:0;}.copy-button.svelte-1c80pjc:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.agent-badge.svelte-1c80pjc {display:flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(60, 60, 60, 0.75);color:white;border-radius:0 0 8px 8px;font-size:12px;font-weight:500;width:fit-content;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);backdrop-filter:blur(5px);cursor:default;pointer-events:none;height:30px;}.agent-badge.svelte-1c80pjc i:where(.svelte-1c80pjc) {font-size:14px;opacity:0.9;}.message-plus-play.svelte-1c80pjc {display:flex;justify-content:flex-start;align-items:center;gap:5px;}.message-plus-play.svelte-1c80pjc:hover .play-button:where(.svelte-1c80pjc) {opacity:1;}.loading.svelte-1c80pjc {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
|
|
9903
9906
|
};
|
|
9904
9907
|
function ao(t, e) {
|
|
9905
|
-
ie(e, !0),
|
|
9906
|
-
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), i = g(e, "streamMessage", 15), a = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), d = G(void 0), p = G(C(new Audio())), h = G(!1), w = G(C({})),
|
|
9908
|
+
ie(e, !0), ue(t, Ng);
|
|
9909
|
+
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), i = g(e, "streamMessage", 15), a = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), d = G(void 0), p = G(C(new Audio())), h = G(!1), w = G(C({})), b = G(C({})), S = G(C(n())), x = G(null), _ = G(!0), y = G(!1), F = G(!1), $ = G(C(u())), A = G(!1);
|
|
9907
9910
|
const L = async () => {
|
|
9908
9911
|
await Br(), f(d) && (f(d).scrollTop = f(d).scrollHeight);
|
|
9909
9912
|
}, M = async () => {
|
|
9910
|
-
await Br(),
|
|
9913
|
+
await Br(), m(_, !1);
|
|
9911
9914
|
}, H = async () => {
|
|
9912
|
-
f(A) || (
|
|
9915
|
+
f(A) || (m(A, !0), await Br(), m(y, !1));
|
|
9913
9916
|
}, le = () => {
|
|
9914
|
-
f(F) &&
|
|
9917
|
+
f(F) && m(y, !0);
|
|
9915
9918
|
}, Oe = () => {
|
|
9916
|
-
f(F) && (
|
|
9919
|
+
f(F) && (m(S, C(f(x) ?? n())), m(x, null), m(_, !0), m(F, !1), m(A, !1));
|
|
9917
9920
|
}, je = (R) => {
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
+
As.getAudio(R.content, c()).then((Q) => {
|
|
9922
|
+
m(p, C(new Audio(Q))), f(p).play(), m(h, !0), f(p).onended = () => {
|
|
9923
|
+
m(h, !1);
|
|
9921
9924
|
};
|
|
9922
9925
|
});
|
|
9923
9926
|
}, ge = async (R, Q) => {
|
|
@@ -9926,18 +9929,18 @@ function ao(t, e) {
|
|
|
9926
9929
|
const Pe = Ce.innerHTML, Ie = Ce.textContent || Ce.innerText || "";
|
|
9927
9930
|
try {
|
|
9928
9931
|
const Ue = new Blob([Pe], { type: "text/html" }), Me = new Blob([Ie], { type: "text/plain" }), ye = new ClipboardItem({ "text/html": Ue, "text/plain": Me });
|
|
9929
|
-
await navigator.clipboard.write([ye]), f(
|
|
9932
|
+
await navigator.clipboard.write([ye]), f(b)[Q] = /* @__PURE__ */ hi(), setTimeout(
|
|
9930
9933
|
() => {
|
|
9931
|
-
f(
|
|
9934
|
+
f(b)[Q] = "";
|
|
9932
9935
|
},
|
|
9933
9936
|
2e3
|
|
9934
9937
|
);
|
|
9935
9938
|
} catch (Ue) {
|
|
9936
9939
|
console.error("Errore durante la copia:", Ue);
|
|
9937
9940
|
try {
|
|
9938
|
-
await navigator.clipboard.writeText(Ie), f(
|
|
9941
|
+
await navigator.clipboard.writeText(Ie), f(b)[Q] = /* @__PURE__ */ hi(), setTimeout(
|
|
9939
9942
|
() => {
|
|
9940
|
-
f(
|
|
9943
|
+
f(b)[Q] = "";
|
|
9941
9944
|
},
|
|
9942
9945
|
2e3
|
|
9943
9946
|
);
|
|
@@ -9947,15 +9950,15 @@ function ao(t, e) {
|
|
|
9947
9950
|
}
|
|
9948
9951
|
};
|
|
9949
9952
|
Ct(() => {
|
|
9950
|
-
u() && !f($) ? (
|
|
9953
|
+
u() && !f($) ? (m(F, !0), m(x, null), m(y, !1), m(_, !0), M()) : !u() && f($) && (m(x, C(n())), f(y) && H()), m($, C(u()));
|
|
9951
9954
|
}), Ct(() => {
|
|
9952
9955
|
f(F) && f(y) && !u() && H();
|
|
9953
9956
|
}), Ct(() => {
|
|
9954
|
-
f(F) ?
|
|
9957
|
+
f(F) ? m(x, C(n())) : u() || m(S, C(n()));
|
|
9955
9958
|
}), Ct(() => {
|
|
9956
9959
|
i(), f(S), L();
|
|
9957
9960
|
});
|
|
9958
|
-
var
|
|
9961
|
+
var ce = Mg(), Ze = z(ce);
|
|
9959
9962
|
{
|
|
9960
9963
|
var Xe = (R) => {
|
|
9961
9964
|
var Q = Og(), Ee = P(z(Q), 2);
|
|
@@ -9989,7 +9992,7 @@ function ao(t, e) {
|
|
|
9989
9992
|
{
|
|
9990
9993
|
var B = (W) => {
|
|
9991
9994
|
var ee = /* @__PURE__ */ qe(() => f(w)[ze] || !1);
|
|
9992
|
-
|
|
9995
|
+
ps(W, {
|
|
9993
9996
|
get isDropdownOpen() {
|
|
9994
9997
|
return f(ee);
|
|
9995
9998
|
},
|
|
@@ -10016,7 +10019,7 @@ function ao(t, e) {
|
|
|
10016
10019
|
var re = (W) => {
|
|
10017
10020
|
var ee = Cg(), E = P(z(ee), 2), D = z(E, !0);
|
|
10018
10021
|
k(E), k(ee), O((Z) => $e(D, Z), [
|
|
10019
|
-
() =>
|
|
10022
|
+
() => vi(f(J).agentUsed)
|
|
10020
10023
|
]), T(W, ee);
|
|
10021
10024
|
};
|
|
10022
10025
|
V(K, (W) => {
|
|
@@ -10054,7 +10057,7 @@ function ao(t, e) {
|
|
|
10054
10057
|
T(W, ee);
|
|
10055
10058
|
};
|
|
10056
10059
|
V(Te, (W) => {
|
|
10057
|
-
f(
|
|
10060
|
+
f(b)[ze] ? W(Ae) : W(xe, !1);
|
|
10058
10061
|
});
|
|
10059
10062
|
}
|
|
10060
10063
|
k(ve), k(Y), k(et), k(Be), k(ne), O(
|
|
@@ -10062,7 +10065,7 @@ function ao(t, e) {
|
|
|
10062
10065
|
tt(he, Ar(f(J).sentByUser ? "message-sent" : "message-received"), "svelte-1c80pjc"), N(Be, "style", `justify-content: ${(f(J).sentByUser ? "flex-end" : "flex-start") ?? ""}`), N(Y, "style", `width: 100%; align-items: flex-start; justify-content: ${(f(J).sentByUser ? "flex-end" : "flex-start") ?? ""}`), N(ve, "title", W);
|
|
10063
10066
|
},
|
|
10064
10067
|
[
|
|
10065
|
-
() => f(
|
|
10068
|
+
() => f(b)[ze] || /* @__PURE__ */ sd()
|
|
10066
10069
|
]
|
|
10067
10070
|
), T(ye, ne);
|
|
10068
10071
|
});
|
|
@@ -10090,7 +10093,7 @@ function ao(t, e) {
|
|
|
10090
10093
|
{
|
|
10091
10094
|
var et = (re) => {
|
|
10092
10095
|
var be = /* @__PURE__ */ qe(() => f(w)[-1] || !1);
|
|
10093
|
-
|
|
10096
|
+
ps(re, {
|
|
10094
10097
|
get isDropdownOpen() {
|
|
10095
10098
|
return f(be);
|
|
10096
10099
|
},
|
|
@@ -10113,7 +10116,7 @@ function ao(t, e) {
|
|
|
10113
10116
|
});
|
|
10114
10117
|
}
|
|
10115
10118
|
var Je = P(Be, 2), B = z(Je), Y = P(z(B), 2), K = z(Y, !0);
|
|
10116
|
-
k(Y), k(B), k(Je), k(Ye), k(Re), k(J), O((re) => $e(K, re), [() =>
|
|
10119
|
+
k(Y), k(B), k(Je), k(Ye), k(Re), k(J), O((re) => $e(K, re), [() => vi(o())]), T(ye, J);
|
|
10117
10120
|
}, Ie = (ye) => {
|
|
10118
10121
|
var J = $t(), ze = pt(J);
|
|
10119
10122
|
{
|
|
@@ -10171,7 +10174,7 @@ function ao(t, e) {
|
|
|
10171
10174
|
f(y) && R(gt);
|
|
10172
10175
|
});
|
|
10173
10176
|
}
|
|
10174
|
-
return k(
|
|
10177
|
+
return k(ce), as(ce, (R) => m(d, R), () => f(d)), T(t, ce), ae({
|
|
10175
10178
|
get messages() {
|
|
10176
10179
|
return n();
|
|
10177
10180
|
},
|
|
@@ -10269,20 +10272,20 @@ const Jg = {
|
|
|
10269
10272
|
}`
|
|
10270
10273
|
};
|
|
10271
10274
|
function oo(t, e) {
|
|
10272
|
-
ie(e, !0),
|
|
10275
|
+
ie(e, !0), ue(t, Jg);
|
|
10273
10276
|
let n = g(e, "showHistory", 15), r = g(e, "actChat", 15), s = g(e, "chats", 15), i = g(e, "messages", 15), a = g(e, "error", 15), o = g(e, "loadingChat", 15), c = g(e, "loadingChats", 15), l = g(e, "newChat", 7);
|
|
10274
|
-
const u = async (
|
|
10277
|
+
const u = async (b) => {
|
|
10275
10278
|
o(!0);
|
|
10276
|
-
let S = await Pt.getChat(
|
|
10279
|
+
let S = await Pt.getChat(b);
|
|
10277
10280
|
r(S), i(r().messages), o(!1), a("");
|
|
10278
|
-
}, d = (
|
|
10279
|
-
confirm(/* @__PURE__ */ Bu({ chatTitle: S })) && Pt.deleteChat(
|
|
10280
|
-
s(s().filter((x) => x._id !==
|
|
10281
|
+
}, d = (b, S) => {
|
|
10282
|
+
confirm(/* @__PURE__ */ Bu({ chatTitle: S })) && Pt.deleteChat(b).then(() => {
|
|
10283
|
+
s(s().filter((x) => x._id !== b)), r()._id === b && l()();
|
|
10281
10284
|
});
|
|
10282
10285
|
};
|
|
10283
10286
|
var p = Gg(), h = z(p);
|
|
10284
10287
|
{
|
|
10285
|
-
var w = (
|
|
10288
|
+
var w = (b) => {
|
|
10286
10289
|
var S = Yg(), x = z(S), _ = z(x, !0);
|
|
10287
10290
|
k(x);
|
|
10288
10291
|
var y = P(x, 2), F = z(y);
|
|
@@ -10295,8 +10298,8 @@ function oo(t, e) {
|
|
|
10295
10298
|
Ke(H, 17, s, Qe, (le, Oe) => {
|
|
10296
10299
|
var je = Hg(), ge = z(je);
|
|
10297
10300
|
ge.__click = [Bg, r, Oe, u];
|
|
10298
|
-
var
|
|
10299
|
-
k(
|
|
10301
|
+
var ce = z(ge), Ze = z(ce, !0);
|
|
10302
|
+
k(ce), k(ge);
|
|
10300
10303
|
var Xe = P(ge, 2);
|
|
10301
10304
|
Xe.__click = [qg, d, Oe], k(je), O(() => {
|
|
10302
10305
|
N(je, "style", r()._id === f(Oe)._id ? "background: #295dcf; cursor: default;" : ""), $e(Ze, f(Oe).title);
|
|
@@ -10307,60 +10310,60 @@ function oo(t, e) {
|
|
|
10307
10310
|
c() ? L($) : L(A, !1);
|
|
10308
10311
|
});
|
|
10309
10312
|
}
|
|
10310
|
-
k(y), k(S), O((L) => $e(_, L), [() => /* @__PURE__ */
|
|
10313
|
+
k(y), k(S), O((L) => $e(_, L), [() => /* @__PURE__ */ Ea()]), bt(3, S, () => Vl, () => ({ duration: 600 })), T(b, S);
|
|
10311
10314
|
};
|
|
10312
|
-
V(h, (
|
|
10313
|
-
n() &&
|
|
10315
|
+
V(h, (b) => {
|
|
10316
|
+
n() && b(w);
|
|
10314
10317
|
});
|
|
10315
10318
|
}
|
|
10316
10319
|
return k(p), T(t, p), ae({
|
|
10317
10320
|
get showHistory() {
|
|
10318
10321
|
return n();
|
|
10319
10322
|
},
|
|
10320
|
-
set showHistory(
|
|
10321
|
-
n(
|
|
10323
|
+
set showHistory(b) {
|
|
10324
|
+
n(b), v();
|
|
10322
10325
|
},
|
|
10323
10326
|
get actChat() {
|
|
10324
10327
|
return r();
|
|
10325
10328
|
},
|
|
10326
|
-
set actChat(
|
|
10327
|
-
r(
|
|
10329
|
+
set actChat(b) {
|
|
10330
|
+
r(b), v();
|
|
10328
10331
|
},
|
|
10329
10332
|
get chats() {
|
|
10330
10333
|
return s();
|
|
10331
10334
|
},
|
|
10332
|
-
set chats(
|
|
10333
|
-
s(
|
|
10335
|
+
set chats(b) {
|
|
10336
|
+
s(b), v();
|
|
10334
10337
|
},
|
|
10335
10338
|
get messages() {
|
|
10336
10339
|
return i();
|
|
10337
10340
|
},
|
|
10338
|
-
set messages(
|
|
10339
|
-
i(
|
|
10341
|
+
set messages(b) {
|
|
10342
|
+
i(b), v();
|
|
10340
10343
|
},
|
|
10341
10344
|
get error() {
|
|
10342
10345
|
return a();
|
|
10343
10346
|
},
|
|
10344
|
-
set error(
|
|
10345
|
-
a(
|
|
10347
|
+
set error(b) {
|
|
10348
|
+
a(b), v();
|
|
10346
10349
|
},
|
|
10347
10350
|
get loadingChat() {
|
|
10348
10351
|
return o();
|
|
10349
10352
|
},
|
|
10350
|
-
set loadingChat(
|
|
10351
|
-
o(
|
|
10353
|
+
set loadingChat(b) {
|
|
10354
|
+
o(b), v();
|
|
10352
10355
|
},
|
|
10353
10356
|
get loadingChats() {
|
|
10354
10357
|
return c();
|
|
10355
10358
|
},
|
|
10356
|
-
set loadingChats(
|
|
10357
|
-
c(
|
|
10359
|
+
set loadingChats(b) {
|
|
10360
|
+
c(b), v();
|
|
10358
10361
|
},
|
|
10359
10362
|
get newChat() {
|
|
10360
10363
|
return l();
|
|
10361
10364
|
},
|
|
10362
|
-
set newChat(
|
|
10363
|
-
l(
|
|
10365
|
+
set newChat(b) {
|
|
10366
|
+
l(b), v();
|
|
10364
10367
|
}
|
|
10365
10368
|
});
|
|
10366
10369
|
}
|
|
@@ -10382,18 +10385,18 @@ oe(
|
|
|
10382
10385
|
!0
|
|
10383
10386
|
);
|
|
10384
10387
|
const Wg = (t, e, n, r, s) => {
|
|
10385
|
-
|
|
10388
|
+
m(e, "auto"), n(), r(), m(s, C({}));
|
|
10386
10389
|
};
|
|
10387
|
-
var Zg = /* @__PURE__ */ j('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), Xg = /* @__PURE__ */ j('<div class="upload-progress-overlay svelte-1uxkxb0"><div class="upload-progress-content svelte-1uxkxb0"><!> <p class="upload-filename svelte-1uxkxb0"> </p> <div class="progress-bar-container svelte-1uxkxb0"><div class="progress-bar svelte-1uxkxb0"></div></div> <p class="upload-percentage svelte-1uxkxb0"> </p></div></div>'), Vg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), Qg = /* @__PURE__ */ j('<!> <div class="resize-border-left svelte-1uxkxb0"></div> <div class="resize-border-top svelte-1uxkxb0"></div> <div class="resize-handle svelte-1uxkxb0"><!></div> <!> <!> <!>', 1), Kg = /* @__PURE__ */ j('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), em = (t, e) =>
|
|
10390
|
+
var Zg = /* @__PURE__ */ j('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), Xg = /* @__PURE__ */ j('<div class="upload-progress-overlay svelte-1uxkxb0"><div class="upload-progress-content svelte-1uxkxb0"><!> <p class="upload-filename svelte-1uxkxb0"> </p> <div class="progress-bar-container svelte-1uxkxb0"><div class="progress-bar svelte-1uxkxb0"></div></div> <p class="upload-percentage svelte-1uxkxb0"> </p></div></div>'), Vg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), Qg = /* @__PURE__ */ j('<!> <div class="resize-border-left svelte-1uxkxb0"></div> <div class="resize-border-top svelte-1uxkxb0"></div> <div class="resize-handle svelte-1uxkxb0"><!></div> <!> <!> <!>', 1), Kg = /* @__PURE__ */ j('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), em = (t, e) => m(e, !f(e)), tm = (t, e) => e("normative"), nm = (t, e) => e("suite"), rm = /* @__PURE__ */ j('<div class="bottom-right-buttons svelte-1uxkxb0"><button class="pin-forge-buttons svelte-1uxkxb0"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-1 svelte-1uxkxb0" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-2 svelte-1uxkxb0" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), sm = /* @__PURE__ */ j('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button> <!></div>');
|
|
10388
10391
|
const im = {
|
|
10389
10392
|
hash: "svelte-1uxkxb0",
|
|
10390
10393
|
code: ".loading-placeholder.svelte-1uxkxb0 {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1uxkxb0 {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1uxkxb0 {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1uxkxb0 {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1uxkxb0 {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1uxkxb0 {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1uxkxb0 {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1uxkxb0 {transform:translateX(0);}.bottom-right-buttons.svelte-1uxkxb0:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1uxkxb0 {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1uxkxb0:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1uxkxb0 {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1uxkxb0:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1uxkxb0 {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1uxkxb0:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1uxkxb0 {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.bottom-right-buttons.visible.svelte-1uxkxb0 .custom-tooltip:where(.svelte-1uxkxb0) {opacity:1;}.btn-with-tooltip.svelte-1uxkxb0:hover .custom-tooltip:where(.svelte-1uxkxb0) {opacity:1;}.hidden-btn.svelte-1uxkxb0 {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1uxkxb0 {background:#28853d;color:white;}.hidden-btn-1.svelte-1uxkxb0:hover {background:#206a31;}.hidden-btn-2.svelte-1uxkxb0 {background:#0099ff;color:white;}.hidden-btn-2.svelte-1uxkxb0:hover {background:#007acc;}.drag-overlay.svelte-1uxkxb0 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(41, 93, 207, 0.95);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1010;pointer-events:none;}.drag-content.svelte-1uxkxb0 {text-align:center;color:white;}.drag-content.svelte-1uxkxb0 p:where(.svelte-1uxkxb0) {margin-top:20px;font-size:24px;font-weight:600;}.upload-progress-overlay.svelte-1uxkxb0 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1011;}.upload-progress-content.svelte-1uxkxb0 {text-align:center;color:white;padding:30px;background:rgba(41, 93, 207, 0.9);border-radius:10px;min-width:300px;}.upload-filename.svelte-1uxkxb0 {margin:15px 0 10px 0;font-size:16px;font-weight:500;}.progress-bar-container.svelte-1uxkxb0 {width:100%;height:8px;background:rgba(255, 255, 255, 0.2);border-radius:4px;overflow:hidden;margin:10px 0;}.progress-bar.svelte-1uxkxb0 {height:100%;background:white;border-radius:4px;transition:width 0.3s ease;}.upload-percentage.svelte-1uxkxb0 {margin:10px 0 0 0;font-size:20px;font-weight:600;}"
|
|
10391
10394
|
};
|
|
10392
10395
|
function lo(t, e) {
|
|
10393
|
-
ie(e, !0),
|
|
10394
|
-
let n = G(!1), r = G(!1), s = G("it"), i = G(""), a = G(0), o = G(null), c = G(C([])), l = G(C([])), u = G(!1), d = G(!0), p = G(C(new Audio())), h = G(!0), w = G(""),
|
|
10396
|
+
ie(e, !0), ue(t, im);
|
|
10397
|
+
let n = G(!1), r = G(!1), s = G("it"), i = G(""), a = G(0), o = G(null), c = G(C([])), l = G(C([])), u = G(!1), d = G(!0), p = G(C(new Audio())), h = G(!0), w = G(""), b = G(""), S = G(C([])), x = G(0), _ = G(null), y = G(!1), F = G(0), $ = G("");
|
|
10395
10398
|
const A = (B, Y, K) => {
|
|
10396
|
-
b
|
|
10399
|
+
m(b, f(b) + B), m(S, C(Y)), m(x, C(K));
|
|
10397
10400
|
};
|
|
10398
10401
|
let L = G("auto");
|
|
10399
10402
|
const M = ["auto", "audit_handler"];
|
|
@@ -10403,70 +10406,75 @@ function lo(t, e) {
|
|
|
10403
10406
|
});
|
|
10404
10407
|
const je = async (B, Y, K = []) => {
|
|
10405
10408
|
var re, be;
|
|
10406
|
-
if (
|
|
10409
|
+
if (m(w, ""), m(u, !0), m(l, C([
|
|
10407
10410
|
...f(l),
|
|
10408
10411
|
new Zt((/* @__PURE__ */ new Date()).getTime(), !0, B, B)
|
|
10409
|
-
])), console.log("Current messages:", f(l)), f(l).length == 2 && (console.log("Creating new chat with state:", (re = f(o)) == null ? void 0 : re.state),
|
|
10410
|
-
|
|
10412
|
+
])), console.log("Current messages:", f(l)), f(l).length == 2 && (console.log("Creating new chat with state:", (re = f(o)) == null ? void 0 : re.state), m(o, C(await Pt.newChat((be = f(o)) == null ? void 0 : be.state))), m(c, C([...f(c), f(o)])), f(o).messages = f(l), await Me()), f(o)) {
|
|
10413
|
+
m(_, C(new AbortController()));
|
|
10411
10414
|
try {
|
|
10412
10415
|
let fe = await Pt.sendMessage(f(o)._id, B, Y, K, A, f(s), f(_).signal);
|
|
10413
10416
|
if (console.log(fe), fe) {
|
|
10414
|
-
|
|
10417
|
+
m(l, C([
|
|
10415
10418
|
...f(l),
|
|
10416
|
-
new Zt((/* @__PURE__ */ new Date()).getTime(), !1, "", f(
|
|
10417
|
-
])), b
|
|
10419
|
+
new Zt((/* @__PURE__ */ new Date()).getTime(), !1, "", f(b))
|
|
10420
|
+
])), m(b, "");
|
|
10418
10421
|
return;
|
|
10419
10422
|
}
|
|
10420
|
-
if (
|
|
10423
|
+
if (m(o, C(await Pt.getChat(f(o)._id))), await Me(), m(b, ""), m(S, C([])), m(l, C([
|
|
10421
10424
|
...f(l),
|
|
10422
10425
|
f(o).messages[f(o).messages.length - 1]
|
|
10423
10426
|
])), !f(h)) {
|
|
10424
10427
|
const ve = f(o).messages[f(o).messages.length - 1];
|
|
10425
10428
|
try {
|
|
10426
|
-
const Te = await
|
|
10427
|
-
|
|
10429
|
+
const Te = await As.getAudio(ve.content, f(s));
|
|
10430
|
+
m(p, C(new Audio(Te))), await f(p).play();
|
|
10428
10431
|
} catch (Te) {
|
|
10429
10432
|
console.error("Error playing audio:", Te);
|
|
10430
10433
|
}
|
|
10431
10434
|
}
|
|
10432
10435
|
} catch (fe) {
|
|
10433
|
-
fe instanceof Error && fe.name !== "AbortError" && (console.error("Error sending message:", fe),
|
|
10436
|
+
fe instanceof Error && fe.name !== "AbortError" && (console.error("Error sending message:", fe), m(w, C(/* @__PURE__ */ pi())));
|
|
10434
10437
|
} finally {
|
|
10435
|
-
|
|
10438
|
+
m(_, null), m(u, !1);
|
|
10436
10439
|
}
|
|
10437
10440
|
} else
|
|
10438
|
-
|
|
10441
|
+
m(w, C(/* @__PURE__ */ ed())), m(u, !1);
|
|
10439
10442
|
}, ge = () => {
|
|
10440
10443
|
f(_) && f(_).abort();
|
|
10441
10444
|
};
|
|
10442
|
-
let
|
|
10445
|
+
let ce = G(0);
|
|
10443
10446
|
const Ze = (B) => {
|
|
10444
|
-
M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(
|
|
10447
|
+
M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(ce), m(y, !0));
|
|
10445
10448
|
}, Xe = (B) => {
|
|
10446
10449
|
M.includes(f(L)) && (B.preventDefault(), B.stopPropagation());
|
|
10447
10450
|
}, ut = (B) => {
|
|
10448
|
-
M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(
|
|
10451
|
+
M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(ce, -1), f(ce) === 0 && m(y, !1));
|
|
10449
10452
|
}, gt = async (B) => {
|
|
10450
10453
|
var fe, ve, Te;
|
|
10451
10454
|
if (!M.includes(f(L))) return;
|
|
10452
10455
|
B.preventDefault(), B.stopPropagation();
|
|
10453
10456
|
const Y = (fe = B.dataTransfer) == null ? void 0 : fe.types;
|
|
10454
|
-
console.log("[DROP DEBUG] DataTransfer types:", Y),
|
|
10457
|
+
console.log("[DROP DEBUG] DataTransfer types:", Y), m($, C(/* @__PURE__ */ cd())), m(F, 0);
|
|
10455
10458
|
let K = "", re = "";
|
|
10456
10459
|
if (Y && Y.includes("file_id")) {
|
|
10457
10460
|
let Ae = B.dataTransfer.getData("file_id");
|
|
10458
10461
|
console.log("[DROP DEBUG] externalId:", Ae);
|
|
10459
|
-
let W = U.getEnvironmentId().split("_")[1] + "_" + Ae
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10462
|
+
let W = U.getEnvironmentId().split("_")[1] + "_" + Ae;
|
|
10463
|
+
try {
|
|
10464
|
+
let ee = await ft.getDocumentFromSuite(W);
|
|
10465
|
+
if (!ee) {
|
|
10466
|
+
alert(/* @__PURE__ */ os()), m(y, !1), m(ce, 0), m($, ""), m(F, 0);
|
|
10467
|
+
return;
|
|
10468
|
+
}
|
|
10469
|
+
m($, C(ee.name)), Ae = await R(ee), re = ee.name;
|
|
10470
|
+
} catch (ee) {
|
|
10471
|
+
console.error("Error fetching document from Suite:", ee), alert(/* @__PURE__ */ os()), m(y, !1), m(ce, 0), m($, "");
|
|
10463
10472
|
}
|
|
10464
|
-
b($, C(ee.name)), Ae = await R(ee), re = ee.name;
|
|
10465
10473
|
} else {
|
|
10466
10474
|
const Ae = (ve = B.dataTransfer) == null ? void 0 : ve.files;
|
|
10467
|
-
Ae && Ae.length > 0 && (
|
|
10475
|
+
Ae && Ae.length > 0 && (m($, C(Array.from(Ae)[0].name)), await R(Array.from(Ae)[0]), re = Array.from(Ae)[0].name);
|
|
10468
10476
|
}
|
|
10469
|
-
|
|
10477
|
+
m(y, !1), m(ce, 0);
|
|
10470
10478
|
let be = {
|
|
10471
10479
|
id: K,
|
|
10472
10480
|
filename: re,
|
|
@@ -10479,11 +10487,11 @@ function lo(t, e) {
|
|
|
10479
10487
|
}, R = async (B) => {
|
|
10480
10488
|
try {
|
|
10481
10489
|
const Y = await Pt.uploadFile(B, (K) => {
|
|
10482
|
-
|
|
10490
|
+
m(F, C(K));
|
|
10483
10491
|
});
|
|
10484
10492
|
return Object.keys(f(H)).forEach((K) => {
|
|
10485
10493
|
f(H)[K].storage_id && f(H)[K].storage_id !== "" && (delete f(H)[K], Pt.deleteFile(f(H)[K].storage_id, f(H)[K].title));
|
|
10486
|
-
}),
|
|
10494
|
+
}), m($, ""), m(F, 0), f(H)[Y] = {
|
|
10487
10495
|
title: B.name,
|
|
10488
10496
|
ext_id: "",
|
|
10489
10497
|
gendoc_id: "",
|
|
@@ -10491,7 +10499,7 @@ function lo(t, e) {
|
|
|
10491
10499
|
isCommon: !0
|
|
10492
10500
|
}, Y;
|
|
10493
10501
|
} catch (Y) {
|
|
10494
|
-
throw console.error("Error uploading file:", Y),
|
|
10502
|
+
throw console.error("Error uploading file:", Y), m(w, C(/* @__PURE__ */ pi())), m($, ""), m(F, 0), Y;
|
|
10495
10503
|
}
|
|
10496
10504
|
};
|
|
10497
10505
|
Ct(() => {
|
|
@@ -10526,22 +10534,22 @@ function lo(t, e) {
|
|
|
10526
10534
|
}
|
|
10527
10535
|
}
|
|
10528
10536
|
const Me = async () => {
|
|
10529
|
-
|
|
10537
|
+
m(c, C(await Pt.getChats())), m(c, C(f(c).sort((B, Y) => Y.lastUpdate - B.lastUpdate)));
|
|
10530
10538
|
};
|
|
10531
10539
|
let ye = G(!1), J = G(!1);
|
|
10532
10540
|
const ze = async () => {
|
|
10533
|
-
f(n) ? f(r) ? (
|
|
10541
|
+
f(n) ? f(r) ? (m(r, !1), setTimeout(
|
|
10534
10542
|
() => {
|
|
10535
|
-
|
|
10543
|
+
m(n, !1);
|
|
10536
10544
|
},
|
|
10537
10545
|
450
|
|
10538
|
-
)) :
|
|
10546
|
+
)) : m(n, !1) : (m(n, !0), m(J, !0), await Me(), m(J, !1));
|
|
10539
10547
|
}, ne = () => {
|
|
10540
|
-
|
|
10548
|
+
m(o, C(new on(
|
|
10541
10549
|
"",
|
|
10542
10550
|
"",
|
|
10543
10551
|
"",
|
|
10544
|
-
/* @__PURE__ */
|
|
10552
|
+
/* @__PURE__ */ Sa(),
|
|
10545
10553
|
{
|
|
10546
10554
|
lockedAgentId: null,
|
|
10547
10555
|
pendingAction: null,
|
|
@@ -10550,19 +10558,19 @@ function lo(t, e) {
|
|
|
10550
10558
|
[
|
|
10551
10559
|
Zt.firstMessage(f(s), f(i), f(L))
|
|
10552
10560
|
]
|
|
10553
|
-
))), b
|
|
10561
|
+
))), m(b, ""), m(l, C(f(o).messages)), m(w, "");
|
|
10554
10562
|
}, me = (B) => {
|
|
10555
|
-
f(L) !== B && (
|
|
10563
|
+
f(L) !== B && (m(L, C(B)), ne()), ze(), m(H, C({}));
|
|
10556
10564
|
};
|
|
10557
10565
|
Lr(async () => {
|
|
10558
10566
|
try {
|
|
10559
|
-
|
|
10567
|
+
m(s, C(X()));
|
|
10560
10568
|
const B = await ft.getUsername();
|
|
10561
|
-
|
|
10569
|
+
m(i, C(B));
|
|
10562
10570
|
const Y = await ft.getUserLevel();
|
|
10563
|
-
|
|
10571
|
+
m(a, C(Y));
|
|
10564
10572
|
const K = Zt.firstMessage(f(s), f(i), f(L));
|
|
10565
|
-
|
|
10573
|
+
m(l, C([K])), m(o, C(new on(
|
|
10566
10574
|
"",
|
|
10567
10575
|
"",
|
|
10568
10576
|
"",
|
|
@@ -10573,15 +10581,15 @@ function lo(t, e) {
|
|
|
10573
10581
|
info: []
|
|
10574
10582
|
},
|
|
10575
10583
|
[K]
|
|
10576
|
-
))),
|
|
10584
|
+
))), m(le, C(U.getForgeButtonsPinned())), m(Oe, !0);
|
|
10577
10585
|
const re = (be) => {
|
|
10578
|
-
(be.clientX <= 0 || be.clientY <= 0 || be.clientX >= window.innerWidth || be.clientY >= window.innerHeight) && (
|
|
10586
|
+
(be.clientX <= 0 || be.clientY <= 0 || be.clientX >= window.innerWidth || be.clientY >= window.innerHeight) && (m(y, !1), m(ce, 0));
|
|
10579
10587
|
};
|
|
10580
10588
|
window.addEventListener("dragleave", re), window.addEventListener("dragend", () => {
|
|
10581
|
-
|
|
10582
|
-
}),
|
|
10589
|
+
m(y, !1), m(ce, 0);
|
|
10590
|
+
}), m(d, !1);
|
|
10583
10591
|
} catch (B) {
|
|
10584
|
-
console.error("Failed to load username", B),
|
|
10592
|
+
console.error("Failed to load username", B), m(w, C(/* @__PURE__ */ td())), m(d, !1);
|
|
10585
10593
|
}
|
|
10586
10594
|
});
|
|
10587
10595
|
var he = sm(), Ne = z(he);
|
|
@@ -10657,43 +10665,43 @@ function lo(t, e) {
|
|
|
10657
10665
|
return f(r);
|
|
10658
10666
|
},
|
|
10659
10667
|
set showHistory(q) {
|
|
10660
|
-
|
|
10668
|
+
m(r, C(q));
|
|
10661
10669
|
},
|
|
10662
10670
|
get actChat() {
|
|
10663
10671
|
return f(o);
|
|
10664
10672
|
},
|
|
10665
10673
|
set actChat(q) {
|
|
10666
|
-
|
|
10674
|
+
m(o, C(q));
|
|
10667
10675
|
},
|
|
10668
10676
|
get chats() {
|
|
10669
10677
|
return f(c);
|
|
10670
10678
|
},
|
|
10671
10679
|
set chats(q) {
|
|
10672
|
-
|
|
10680
|
+
m(c, C(q));
|
|
10673
10681
|
},
|
|
10674
10682
|
get messages() {
|
|
10675
10683
|
return f(l);
|
|
10676
10684
|
},
|
|
10677
10685
|
set messages(q) {
|
|
10678
|
-
|
|
10686
|
+
m(l, C(q));
|
|
10679
10687
|
},
|
|
10680
10688
|
get error() {
|
|
10681
10689
|
return f(w);
|
|
10682
10690
|
},
|
|
10683
10691
|
set error(q) {
|
|
10684
|
-
|
|
10692
|
+
m(w, C(q));
|
|
10685
10693
|
},
|
|
10686
10694
|
get loadingChat() {
|
|
10687
10695
|
return f(ye);
|
|
10688
10696
|
},
|
|
10689
10697
|
set loadingChat(q) {
|
|
10690
|
-
|
|
10698
|
+
m(ye, C(q));
|
|
10691
10699
|
},
|
|
10692
10700
|
get loadingChats() {
|
|
10693
10701
|
return f(J);
|
|
10694
10702
|
},
|
|
10695
10703
|
set loadingChats(q) {
|
|
10696
|
-
|
|
10704
|
+
m(J, C(q));
|
|
10697
10705
|
}
|
|
10698
10706
|
});
|
|
10699
10707
|
var Fe = P(te, 6), De = z(Fe);
|
|
@@ -10713,43 +10721,43 @@ function lo(t, e) {
|
|
|
10713
10721
|
return f(n);
|
|
10714
10722
|
},
|
|
10715
10723
|
set show(q) {
|
|
10716
|
-
|
|
10724
|
+
m(n, C(q));
|
|
10717
10725
|
},
|
|
10718
10726
|
get showHistory() {
|
|
10719
10727
|
return f(r);
|
|
10720
10728
|
},
|
|
10721
10729
|
set showHistory(q) {
|
|
10722
|
-
|
|
10730
|
+
m(r, C(q));
|
|
10723
10731
|
},
|
|
10724
10732
|
get actChat() {
|
|
10725
10733
|
return f(o);
|
|
10726
10734
|
},
|
|
10727
10735
|
set actChat(q) {
|
|
10728
|
-
|
|
10736
|
+
m(o, C(q));
|
|
10729
10737
|
},
|
|
10730
10738
|
get muted() {
|
|
10731
10739
|
return f(h);
|
|
10732
10740
|
},
|
|
10733
10741
|
set muted(q) {
|
|
10734
|
-
|
|
10742
|
+
m(h, C(q));
|
|
10735
10743
|
},
|
|
10736
10744
|
get languageSelected() {
|
|
10737
10745
|
return f(s);
|
|
10738
10746
|
},
|
|
10739
10747
|
set languageSelected(q) {
|
|
10740
|
-
|
|
10748
|
+
m(s, C(q));
|
|
10741
10749
|
},
|
|
10742
10750
|
get username() {
|
|
10743
10751
|
return f(i);
|
|
10744
10752
|
},
|
|
10745
10753
|
set username(q) {
|
|
10746
|
-
|
|
10754
|
+
m(i, C(q));
|
|
10747
10755
|
},
|
|
10748
10756
|
get error() {
|
|
10749
10757
|
return f(w);
|
|
10750
10758
|
},
|
|
10751
10759
|
set error(q) {
|
|
10752
|
-
|
|
10760
|
+
m(w, C(q));
|
|
10753
10761
|
}
|
|
10754
10762
|
});
|
|
10755
10763
|
var We = P(He, 2);
|
|
@@ -10758,55 +10766,55 @@ function lo(t, e) {
|
|
|
10758
10766
|
return f(l);
|
|
10759
10767
|
},
|
|
10760
10768
|
set messages(q) {
|
|
10761
|
-
|
|
10769
|
+
m(l, C(q));
|
|
10762
10770
|
},
|
|
10763
10771
|
get loading() {
|
|
10764
10772
|
return f(u);
|
|
10765
10773
|
},
|
|
10766
10774
|
set loading(q) {
|
|
10767
|
-
|
|
10775
|
+
m(u, C(q));
|
|
10768
10776
|
},
|
|
10769
10777
|
get error() {
|
|
10770
10778
|
return f(w);
|
|
10771
10779
|
},
|
|
10772
10780
|
set error(q) {
|
|
10773
|
-
|
|
10781
|
+
m(w, C(q));
|
|
10774
10782
|
},
|
|
10775
10783
|
get streamMessage() {
|
|
10776
|
-
return f(
|
|
10784
|
+
return f(b);
|
|
10777
10785
|
},
|
|
10778
10786
|
set streamMessage(q) {
|
|
10779
|
-
b
|
|
10787
|
+
m(b, C(q));
|
|
10780
10788
|
},
|
|
10781
10789
|
get streamAttachments() {
|
|
10782
10790
|
return f(S);
|
|
10783
10791
|
},
|
|
10784
10792
|
set streamAttachments(q) {
|
|
10785
|
-
|
|
10793
|
+
m(S, C(q));
|
|
10786
10794
|
},
|
|
10787
10795
|
get streamedAgent() {
|
|
10788
10796
|
return f(x);
|
|
10789
10797
|
},
|
|
10790
10798
|
set streamedAgent(q) {
|
|
10791
|
-
|
|
10799
|
+
m(x, C(q));
|
|
10792
10800
|
},
|
|
10793
10801
|
get languageSelected() {
|
|
10794
10802
|
return f(s);
|
|
10795
10803
|
},
|
|
10796
10804
|
set languageSelected(q) {
|
|
10797
|
-
|
|
10805
|
+
m(s, C(q));
|
|
10798
10806
|
},
|
|
10799
10807
|
get userLevel() {
|
|
10800
10808
|
return f(a);
|
|
10801
10809
|
},
|
|
10802
10810
|
set userLevel(q) {
|
|
10803
|
-
|
|
10811
|
+
m(a, C(q));
|
|
10804
10812
|
},
|
|
10805
10813
|
get loadingChat() {
|
|
10806
10814
|
return f(ye);
|
|
10807
10815
|
},
|
|
10808
10816
|
set loadingChat(q) {
|
|
10809
|
-
|
|
10817
|
+
m(ye, C(q));
|
|
10810
10818
|
}
|
|
10811
10819
|
});
|
|
10812
10820
|
var Dt = P(We, 2);
|
|
@@ -10818,37 +10826,37 @@ function lo(t, e) {
|
|
|
10818
10826
|
return f(u);
|
|
10819
10827
|
},
|
|
10820
10828
|
set loading(q) {
|
|
10821
|
-
|
|
10829
|
+
m(u, C(q));
|
|
10822
10830
|
},
|
|
10823
10831
|
get languageSelected() {
|
|
10824
10832
|
return f(s);
|
|
10825
10833
|
},
|
|
10826
10834
|
set languageSelected(q) {
|
|
10827
|
-
|
|
10835
|
+
m(s, C(q));
|
|
10828
10836
|
},
|
|
10829
10837
|
get modeSelected() {
|
|
10830
10838
|
return f(L);
|
|
10831
10839
|
},
|
|
10832
10840
|
set modeSelected(q) {
|
|
10833
|
-
|
|
10841
|
+
m(L, C(q));
|
|
10834
10842
|
},
|
|
10835
10843
|
get attachments() {
|
|
10836
10844
|
return f(H);
|
|
10837
10845
|
},
|
|
10838
10846
|
set attachments(q) {
|
|
10839
|
-
|
|
10847
|
+
m(H, C(q));
|
|
10840
10848
|
},
|
|
10841
10849
|
get userLevel() {
|
|
10842
10850
|
return f(a);
|
|
10843
10851
|
},
|
|
10844
10852
|
set userLevel(q) {
|
|
10845
|
-
|
|
10853
|
+
m(a, C(q));
|
|
10846
10854
|
},
|
|
10847
10855
|
get actChat() {
|
|
10848
10856
|
return f(o);
|
|
10849
10857
|
},
|
|
10850
10858
|
set actChat(q) {
|
|
10851
|
-
|
|
10859
|
+
m(o, C(q));
|
|
10852
10860
|
}
|
|
10853
10861
|
}), T(D, Z);
|
|
10854
10862
|
};
|
|
@@ -10899,7 +10907,7 @@ function lo(t, e) {
|
|
|
10899
10907
|
se(Y, "visible", f(le)), N(K, "aria-label", f(le) ? "unpin forge buttons" : "pin forge buttons"), se(K, "pinned", f(le)), $e(fe, ee), $e(xe, E);
|
|
10900
10908
|
},
|
|
10901
10909
|
[
|
|
10902
|
-
() => /* @__PURE__ */
|
|
10910
|
+
() => /* @__PURE__ */ Ta(),
|
|
10903
10911
|
() => /* @__PURE__ */ Ca()
|
|
10904
10912
|
]
|
|
10905
10913
|
), bt(3, Y, () => Bt), T(B, Y);
|