akpm-knowledge-base-chat 1.0.70 → 1.0.71
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 +311 -311
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 1.0.
|
|
1
|
+
/* Version: 1.0.71 */
|
|
2
2
|
var ro = Object.defineProperty;
|
|
3
3
|
var qi = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -192,7 +192,7 @@ function bn() {
|
|
|
192
192
|
/* @__PURE__ */ Ft(de)
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function z(t) {
|
|
196
196
|
if (ae) {
|
|
197
197
|
if (/* @__PURE__ */ Ft(de) !== null)
|
|
198
198
|
throw $r(), vn;
|
|
@@ -1560,7 +1560,7 @@ function Ye(t, e, n, r, i, s = null) {
|
|
|
1560
1560
|
m > 0 && dt(Gr());
|
|
1561
1561
|
}
|
|
1562
1562
|
if (!ae) {
|
|
1563
|
-
var
|
|
1563
|
+
var y = (
|
|
1564
1564
|
/** @type {Effect} */
|
|
1565
1565
|
ke
|
|
1566
1566
|
);
|
|
@@ -1570,7 +1570,7 @@ function Ye(t, e, n, r, i, s = null) {
|
|
|
1570
1570
|
a,
|
|
1571
1571
|
i,
|
|
1572
1572
|
e,
|
|
1573
|
-
(
|
|
1573
|
+
(y.f & wt) !== 0,
|
|
1574
1574
|
r
|
|
1575
1575
|
);
|
|
1576
1576
|
}
|
|
@@ -1581,12 +1581,12 @@ function Ye(t, e, n, r, i, s = null) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
function bl(t, e, n, r, i, s, a, o) {
|
|
1583
1583
|
var Fe, Ne, ue, we;
|
|
1584
|
-
var l = (i & ao) !== 0, c = (i & (ci | ui)) !== 0, u = t.length, d = e.items, f = e.first, h = f, m, b = null, S, $ = [], _ = [], E, D, w,
|
|
1584
|
+
var l = (i & ao) !== 0, c = (i & (ci | ui)) !== 0, u = t.length, d = e.items, f = e.first, h = f, m, b = null, S, $ = [], _ = [], E, D, w, y;
|
|
1585
1585
|
if (l)
|
|
1586
|
-
for (
|
|
1587
|
-
E = t[
|
|
1588
|
-
for (
|
|
1589
|
-
if (E = t[
|
|
1586
|
+
for (y = 0; y < u; y += 1)
|
|
1587
|
+
E = t[y], D = a(E, y), w = d.get(D), w !== void 0 && ((Fe = w.a) == null || Fe.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add(w));
|
|
1588
|
+
for (y = 0; y < u; y += 1) {
|
|
1589
|
+
if (E = t[y], D = a(E, y), w = d.get(D), w === void 0) {
|
|
1590
1590
|
var I = h ? (
|
|
1591
1591
|
/** @type {TemplateNode} */
|
|
1592
1592
|
h.e.nodes_start
|
|
@@ -1598,23 +1598,23 @@ function bl(t, e, n, r, i, s, a, o) {
|
|
|
1598
1598
|
b === null ? e.first : b.next,
|
|
1599
1599
|
E,
|
|
1600
1600
|
D,
|
|
1601
|
-
|
|
1601
|
+
y,
|
|
1602
1602
|
r,
|
|
1603
1603
|
i
|
|
1604
1604
|
), d.set(D, b), $ = [], _ = [], h = b.next;
|
|
1605
1605
|
continue;
|
|
1606
1606
|
}
|
|
1607
|
-
if (c && kl(w, E,
|
|
1607
|
+
if (c && kl(w, E, y, i), w.e.f & wt && (hr(w.e), l && ((Ne = w.a) == null || Ne.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(w))), w !== h) {
|
|
1608
1608
|
if (m !== void 0 && m.has(w)) {
|
|
1609
1609
|
if ($.length < _.length) {
|
|
1610
|
-
var O = _[0],
|
|
1610
|
+
var O = _[0], U;
|
|
1611
1611
|
b = O.prev;
|
|
1612
1612
|
var W = $[0], he = $[$.length - 1];
|
|
1613
|
-
for (
|
|
1614
|
-
Wi($[
|
|
1615
|
-
for (
|
|
1616
|
-
m.delete(_[
|
|
1617
|
-
Bt(e, W.prev, he.next), Bt(e, b, W), Bt(e, he, O), h = O, b = he,
|
|
1613
|
+
for (U = 0; U < $.length; U += 1)
|
|
1614
|
+
Wi($[U], O, n);
|
|
1615
|
+
for (U = 0; U < _.length; U += 1)
|
|
1616
|
+
m.delete(_[U]);
|
|
1617
|
+
Bt(e, W.prev, he.next), Bt(e, b, W), Bt(e, he, O), h = O, b = he, y -= 1, $ = [], _ = [];
|
|
1618
1618
|
} else
|
|
1619
1619
|
m.delete(w), Wi(w, h, n), Bt(e, w.prev, w.next), Bt(e, w, b === null ? e.first : b.next), Bt(e, b, w), b = w;
|
|
1620
1620
|
continue;
|
|
@@ -1634,10 +1634,10 @@ function bl(t, e, n, r, i, s, a, o) {
|
|
|
1634
1634
|
if (le > 0) {
|
|
1635
1635
|
var Pe = i & _s && u === 0 ? n : null;
|
|
1636
1636
|
if (l) {
|
|
1637
|
-
for (
|
|
1638
|
-
(ue = N[
|
|
1639
|
-
for (
|
|
1640
|
-
(we = N[
|
|
1637
|
+
for (y = 0; y < le; y += 1)
|
|
1638
|
+
(ue = N[y].a) == null || ue.measure();
|
|
1639
|
+
for (y = 0; y < le; y += 1)
|
|
1640
|
+
(we = N[y].a) == null || we.fix();
|
|
1641
1641
|
}
|
|
1642
1642
|
ml(e, N, Pe, d);
|
|
1643
1643
|
}
|
|
@@ -1830,10 +1830,10 @@ function Ji(t, e, n, r, i = !1, s = !1, a = !1) {
|
|
|
1830
1830
|
if (m)
|
|
1831
1831
|
t[`__${w}`] = _, Wt([w]);
|
|
1832
1832
|
else {
|
|
1833
|
-
let
|
|
1833
|
+
let y = function(I) {
|
|
1834
1834
|
o[$].call(this, I);
|
|
1835
1835
|
};
|
|
1836
|
-
o[D] = sa(w, t,
|
|
1836
|
+
o[D] = sa(w, t, y, E);
|
|
1837
1837
|
}
|
|
1838
1838
|
else m && (t[`__${w}`] = void 0);
|
|
1839
1839
|
} else if ($ === "style" && _ != null)
|
|
@@ -2051,21 +2051,21 @@ function ri(t, e, n, r, i) {
|
|
|
2051
2051
|
if (_ > 0) {
|
|
2052
2052
|
var D = !1;
|
|
2053
2053
|
if (c)
|
|
2054
|
-
for (var w = Math.ceil(_ / 16.666666666666668),
|
|
2055
|
-
var I = S + $ * d(
|
|
2054
|
+
for (var w = Math.ceil(_ / 16.666666666666668), y = 0; y <= w; y += 1) {
|
|
2055
|
+
var I = S + $ * d(y / w), O = Xi(c(I, 1 - I));
|
|
2056
2056
|
E.push(O), D || (D = O.overflow === "hidden");
|
|
2057
2057
|
}
|
|
2058
2058
|
D && (t.style.overflow = "hidden"), m = () => {
|
|
2059
|
-
var
|
|
2059
|
+
var U = (
|
|
2060
2060
|
/** @type {number} */
|
|
2061
2061
|
/** @type {globalThis.Animation} */
|
|
2062
2062
|
b.currentTime
|
|
2063
2063
|
);
|
|
2064
|
-
return S + $ * d(
|
|
2064
|
+
return S + $ * d(U / _);
|
|
2065
2065
|
}, u && Sl(() => {
|
|
2066
2066
|
if (b.playState !== "running") return !1;
|
|
2067
|
-
var
|
|
2068
|
-
return u(
|
|
2067
|
+
var U = m();
|
|
2068
|
+
return u(U, 1 - U), !0;
|
|
2069
2069
|
});
|
|
2070
2070
|
}
|
|
2071
2071
|
b = t.animate(E, { duration: _, fill: "forwards" }), b.onfinish = () => {
|
|
@@ -2370,22 +2370,22 @@ function g(t, e, n, r) {
|
|
|
2370
2370
|
return S;
|
|
2371
2371
|
if (d) {
|
|
2372
2372
|
var _ = t.$$legacy;
|
|
2373
|
-
return function(O,
|
|
2374
|
-
return arguments.length > 0 ? ((!s || !
|
|
2373
|
+
return function(O, U) {
|
|
2374
|
+
return arguments.length > 0 ? ((!s || !U || _ || l) && d(U ? S() : O), O) : S();
|
|
2375
2375
|
};
|
|
2376
2376
|
}
|
|
2377
|
-
var E = !1, D = !1, w = /* @__PURE__ */ zr(c),
|
|
2377
|
+
var E = !1, D = !1, w = /* @__PURE__ */ zr(c), y = es(
|
|
2378
2378
|
() => /* @__PURE__ */ gt(() => {
|
|
2379
|
-
var O = S(),
|
|
2380
|
-
return E ? (E = !1, D = !0,
|
|
2379
|
+
var O = S(), U = p(w);
|
|
2380
|
+
return E ? (E = !1, D = !0, U) : (D = !1, w.v = O);
|
|
2381
2381
|
})
|
|
2382
2382
|
);
|
|
2383
|
-
return i || (
|
|
2383
|
+
return i || (y.equals = vi), function(O, U) {
|
|
2384
2384
|
if (arguments.length > 0) {
|
|
2385
|
-
const W =
|
|
2386
|
-
return
|
|
2385
|
+
const W = U ? p(y) : s && a ? P(O) : O;
|
|
2386
|
+
return y.equals(W) || (E = !0, x(w, W), m && f !== void 0 && (f = W), $t(() => p(y))), O;
|
|
2387
2387
|
}
|
|
2388
|
-
return p(
|
|
2388
|
+
return p(y);
|
|
2389
2389
|
};
|
|
2390
2390
|
}
|
|
2391
2391
|
function ql(t) {
|
|
@@ -2973,20 +2973,20 @@ function _a(t, e) {
|
|
|
2973
2973
|
var u = Ou(), d = C(u), f = C(d), h = q(C(f), 2), m = C(h);
|
|
2974
2974
|
m.value = (m.__value = "it") == null ? "" : "it";
|
|
2975
2975
|
var b = q(m);
|
|
2976
|
-
b.value = (b.__value = "en") == null ? "" : "en",
|
|
2976
|
+
b.value = (b.__value = "en") == null ? "" : "en", z(h), z(f);
|
|
2977
2977
|
var S = q(f, 2), $ = C(S);
|
|
2978
2978
|
{
|
|
2979
2979
|
var _ = (I) => {
|
|
2980
2980
|
var O = Ru();
|
|
2981
2981
|
O.__click = [Au, s], F(
|
|
2982
|
-
(
|
|
2983
|
-
M(O, "title",
|
|
2982
|
+
(U) => {
|
|
2983
|
+
M(O, "title", U), M(O, "aria-label", s() ? "Unmute" : "Mute");
|
|
2984
2984
|
},
|
|
2985
2985
|
[() => /* @__PURE__ */ vu()]
|
|
2986
2986
|
), k(I, O);
|
|
2987
2987
|
}, E = (I) => {
|
|
2988
2988
|
var O = ju();
|
|
2989
|
-
O.__click = [Lu, s], F((
|
|
2989
|
+
O.__click = [Lu, s], F((U) => M(O, "title", U), [() => /* @__PURE__ */ gu()]), k(I, O);
|
|
2990
2990
|
};
|
|
2991
2991
|
B($, (I) => {
|
|
2992
2992
|
s() ? I(_) : I(E, !1);
|
|
@@ -2999,10 +2999,10 @@ function _a(t, e) {
|
|
|
2999
2999
|
};
|
|
3000
3000
|
var w = q(D, 2);
|
|
3001
3001
|
w.__click = [Pu, r];
|
|
3002
|
-
var
|
|
3003
|
-
return
|
|
3004
|
-
(I, O,
|
|
3005
|
-
M(D, "title", I), M(w, "title", O), M(w, "aria-label",
|
|
3002
|
+
var y = q(w, 2);
|
|
3003
|
+
return y.__click = [Fu, r, n], z(S), z(d), z(u), F(
|
|
3004
|
+
(I, O, U, W) => {
|
|
3005
|
+
M(D, "title", I), M(w, "title", O), M(w, "aria-label", U), M(y, "title", W), M(y, "aria-label", W);
|
|
3006
3006
|
},
|
|
3007
3007
|
[
|
|
3008
3008
|
() => /* @__PURE__ */ ba(),
|
|
@@ -3079,7 +3079,7 @@ ne(
|
|
|
3079
3079
|
!0
|
|
3080
3080
|
);
|
|
3081
3081
|
const Du = () => {
|
|
3082
|
-
switch (
|
|
3082
|
+
switch (Y.getEnvironmentId()) {
|
|
3083
3083
|
case "aks_svi":
|
|
3084
3084
|
return "http://localhost:8080";
|
|
3085
3085
|
case "aks_qua":
|
|
@@ -3100,7 +3100,7 @@ const Du = () => {
|
|
|
3100
3100
|
return e ? e.split("=")[1] === "true" : !0;
|
|
3101
3101
|
}, Uu = (t) => {
|
|
3102
3102
|
document.cookie = `akb-chat-forge-pinned=${t}; path=/; max-age=31536000; SameSite=Lax`;
|
|
3103
|
-
},
|
|
3103
|
+
}, Y = {
|
|
3104
3104
|
getUrl: Du,
|
|
3105
3105
|
getToken: qu,
|
|
3106
3106
|
getEnvironmentId: Nu,
|
|
@@ -3216,10 +3216,10 @@ const yi = (t) => {
|
|
|
3216
3216
|
return "https://versioneditorfs-573906316236.europe-west1.run.app";
|
|
3217
3217
|
}
|
|
3218
3218
|
}, Hu = () => {
|
|
3219
|
-
let t =
|
|
3219
|
+
let t = Y.getEnvironmentId();
|
|
3220
3220
|
return t == "aks_svi" ? "https://hyena-popular-caiman.ngrok-free.app/pages/editor_documenti.php" : `https://${yi(t)}.aksiliasuite.com/pages/editor_documenti.php`;
|
|
3221
3221
|
}, Zu = (t) => {
|
|
3222
|
-
let e =
|
|
3222
|
+
let e = Y.getEnvironmentId(), n = Y.getToken();
|
|
3223
3223
|
return `${Yu(e)}/it/edit/${t}?token=${n}&envId=${e}`;
|
|
3224
3224
|
};
|
|
3225
3225
|
function Gu(t, e) {
|
|
@@ -3233,12 +3233,12 @@ function Gu(t, e) {
|
|
|
3233
3233
|
document.body.appendChild(n), n.submit();
|
|
3234
3234
|
}
|
|
3235
3235
|
const Wu = async (t) => {
|
|
3236
|
-
const e = await fetch(`${
|
|
3236
|
+
const e = await fetch(`${Y.getUrl()}/generals/documents`, {
|
|
3237
3237
|
method: "POST",
|
|
3238
3238
|
headers: {
|
|
3239
3239
|
"Content-Type": "application/json",
|
|
3240
|
-
akstoken:
|
|
3241
|
-
envid:
|
|
3240
|
+
akstoken: Y.getToken(),
|
|
3241
|
+
envid: Y.getEnvironmentId(),
|
|
3242
3242
|
"ngrok-skip-browser-warning": "true"
|
|
3243
3243
|
},
|
|
3244
3244
|
body: JSON.stringify({ query: t })
|
|
@@ -3259,11 +3259,11 @@ const Wu = async (t) => {
|
|
|
3259
3259
|
function: "edit"
|
|
3260
3260
|
});
|
|
3261
3261
|
}, Vu = async () => {
|
|
3262
|
-
let t =
|
|
3262
|
+
let t = Y.getEnvironmentId(), e = `https://${yi(t)}.aksiliasuite.com/api/v1/operatore`;
|
|
3263
3263
|
t == "aks_svi" && (e = "https://hyena-popular-caiman.ngrok-free.app/api/v1/operatore");
|
|
3264
3264
|
const n = await fetch(e, {
|
|
3265
3265
|
headers: {
|
|
3266
|
-
"x-token":
|
|
3266
|
+
"x-token": Y.getToken(),
|
|
3267
3267
|
"ngrok-skip-browser-warning": "true"
|
|
3268
3268
|
}
|
|
3269
3269
|
});
|
|
@@ -3272,13 +3272,13 @@ const Wu = async (t) => {
|
|
|
3272
3272
|
const r = await n.text();
|
|
3273
3273
|
return JSON.parse(r).result[0].nome;
|
|
3274
3274
|
}, Xu = async () => {
|
|
3275
|
-
let t =
|
|
3275
|
+
let t = Y.getEnvironmentId(), e = `https://${yi(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
|
|
3276
3276
|
t == "aks_svi" && (e = "https://hyena-popular-caiman.ngrok-free.app/api/v1/check_permission/assessment");
|
|
3277
3277
|
let n = await fetch(e, {
|
|
3278
3278
|
method: "GET",
|
|
3279
3279
|
headers: {
|
|
3280
3280
|
"Content-Type": "application/json",
|
|
3281
|
-
"x-token":
|
|
3281
|
+
"x-token": Y.getToken(),
|
|
3282
3282
|
"ngrok-skip-browser-warning": "true"
|
|
3283
3283
|
}
|
|
3284
3284
|
});
|
|
@@ -3289,12 +3289,12 @@ const Wu = async (t) => {
|
|
|
3289
3289
|
let i = r.result.reduce((s, a) => Math.max(s, a.level), 0);
|
|
3290
3290
|
return console.log("Highest user level:", i), i;
|
|
3291
3291
|
}, Qu = async (t, e) => {
|
|
3292
|
-
const n = await fetch(`${
|
|
3292
|
+
const n = await fetch(`${Y.getUrl()}/generals/forge?collectionName=${e}`, {
|
|
3293
3293
|
method: "POST",
|
|
3294
3294
|
headers: {
|
|
3295
3295
|
"Content-Type": "application/json",
|
|
3296
|
-
akstoken:
|
|
3297
|
-
envid:
|
|
3296
|
+
akstoken: Y.getToken(),
|
|
3297
|
+
envid: Y.getEnvironmentId(),
|
|
3298
3298
|
"ngrok-skip-browser-warning": "true"
|
|
3299
3299
|
},
|
|
3300
3300
|
body: JSON.stringify({ query: t })
|
|
@@ -3303,12 +3303,12 @@ const Wu = async (t) => {
|
|
|
3303
3303
|
throw new Error("Failed to fetch forge");
|
|
3304
3304
|
return (await n.json()).map((i) => Yn.fromJson(i));
|
|
3305
3305
|
}, Ku = async (t, e) => {
|
|
3306
|
-
const n = await fetch(`${
|
|
3306
|
+
const n = await fetch(`${Y.getUrl()}/generals/forge/${t}?collectionName=${e}`, {
|
|
3307
3307
|
method: "GET",
|
|
3308
3308
|
headers: {
|
|
3309
3309
|
"Content-Type": "application/json",
|
|
3310
|
-
akstoken:
|
|
3311
|
-
envid:
|
|
3310
|
+
akstoken: Y.getToken(),
|
|
3311
|
+
envid: Y.getEnvironmentId(),
|
|
3312
3312
|
"ngrok-skip-browser-warning": "true"
|
|
3313
3313
|
}
|
|
3314
3314
|
});
|
|
@@ -3317,11 +3317,11 @@ const Wu = async (t) => {
|
|
|
3317
3317
|
const r = await n.json();
|
|
3318
3318
|
return Yn.fromJson(r);
|
|
3319
3319
|
}, ed = async (t, e) => {
|
|
3320
|
-
const n = await fetch(`${
|
|
3320
|
+
const n = await fetch(`${Y.getUrl()}/forge/download/pdf?externalId=${t}&collectionName=${e}`, {
|
|
3321
3321
|
method: "GET",
|
|
3322
3322
|
headers: {
|
|
3323
|
-
akstoken:
|
|
3324
|
-
envid:
|
|
3323
|
+
akstoken: Y.getToken(),
|
|
3324
|
+
envid: Y.getEnvironmentId(),
|
|
3325
3325
|
"ngrok-skip-browser-warning": "true"
|
|
3326
3326
|
}
|
|
3327
3327
|
});
|
|
@@ -3346,22 +3346,22 @@ const Wu = async (t) => {
|
|
|
3346
3346
|
}, td = async (t, e) => {
|
|
3347
3347
|
const n = new FormData();
|
|
3348
3348
|
n.append("file", t), n.append("lang", zi(e));
|
|
3349
|
-
const r = await fetch(`${
|
|
3349
|
+
const r = await fetch(`${Y.getUrl()}/audio/stt`, {
|
|
3350
3350
|
method: "POST",
|
|
3351
3351
|
headers: {
|
|
3352
|
-
akstoken:
|
|
3353
|
-
envid:
|
|
3352
|
+
akstoken: Y.getToken(),
|
|
3353
|
+
envid: Y.getEnvironmentId(),
|
|
3354
3354
|
"ngrok-skip-browser-warning": "true"
|
|
3355
3355
|
},
|
|
3356
3356
|
body: n
|
|
3357
3357
|
});
|
|
3358
3358
|
return r.ok ? (await r.json()).text : (console.error("Failed to fetch text"), "");
|
|
3359
3359
|
}, nd = async (t, e) => {
|
|
3360
|
-
const n = await fetch(`${
|
|
3360
|
+
const n = await fetch(`${Y.getUrl()}/audio/tts`, {
|
|
3361
3361
|
method: "POST",
|
|
3362
3362
|
headers: {
|
|
3363
|
-
akstoken:
|
|
3364
|
-
envid:
|
|
3363
|
+
akstoken: Y.getToken(),
|
|
3364
|
+
envid: Y.getEnvironmentId(),
|
|
3365
3365
|
"ngrok-skip-browser-warning": "true",
|
|
3366
3366
|
"Content-Type": "application/json"
|
|
3367
3367
|
},
|
|
@@ -3585,13 +3585,13 @@ function dd(t, e) {
|
|
|
3585
3585
|
K(e, !1), se(t, ud);
|
|
3586
3586
|
let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), i = g(e, "pause", 12, !1), s = g(e, "ballTopLeft", 12, "#FF3E00"), a = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), l = g(e, "ballBottomRight", 12, "#676778"), c = g(e, "duration", 12, "1.5s");
|
|
3587
3587
|
var u = cd(), d = C(u), f = C(d), h = C(f), m = C(h);
|
|
3588
|
-
|
|
3588
|
+
z(h);
|
|
3589
3589
|
var b = q(h, 2), S = C(b);
|
|
3590
|
-
|
|
3590
|
+
z(b);
|
|
3591
3591
|
var $ = q(b, 2), _ = C($);
|
|
3592
|
-
|
|
3592
|
+
z($);
|
|
3593
3593
|
var E = q($, 2), D = C(E);
|
|
3594
|
-
return
|
|
3594
|
+
return z(E), z(f), z(d), z(u), F(() => {
|
|
3595
3595
|
M(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), te(f, "pause-animation", i()), te(m, "pause-animation", i()), te(S, "pause-animation", i()), te(_, "pause-animation", i()), te(D, "pause-animation", i());
|
|
3596
3596
|
}), k(t, u), ee({
|
|
3597
3597
|
get size() {
|
|
@@ -3695,7 +3695,7 @@ function vd(t, e) {
|
|
|
3695
3695
|
F(() => {
|
|
3696
3696
|
M(h, "style", `animation: ${i() ?? ""} ${(p(f) === 1 ? `${(+l - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), te(h, "pause-animation", a());
|
|
3697
3697
|
}), k(d, h);
|
|
3698
|
-
}),
|
|
3698
|
+
}), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), k(t, c), ee({
|
|
3699
3699
|
get color() {
|
|
3700
3700
|
return n();
|
|
3701
3701
|
},
|
|
@@ -3968,7 +3968,7 @@ function _d(t, e) {
|
|
|
3968
3968
|
K(e, !1), se(t, wd);
|
|
3969
3969
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
3970
3970
|
var o = kd(), l = C(o);
|
|
3971
|
-
return
|
|
3971
|
+
return z(o), F(() => {
|
|
3972
3972
|
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
|
|
3973
3973
|
}), k(t, o), ee({
|
|
3974
3974
|
get color() {
|
|
@@ -4081,7 +4081,7 @@ function zd(t, e) {
|
|
|
4081
4081
|
K(e, !1), se(t, yd);
|
|
4082
4082
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "4s"), s = g(e, "size", 12, "60"), a = g(e, "stroke", 28, () => +s() / 12 + r()), o = g(e, "pause", 12, !1);
|
|
4083
4083
|
var l = xd(), c = C(l);
|
|
4084
|
-
return
|
|
4084
|
+
return z(l), F(() => {
|
|
4085
4085
|
M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --stroke: ${a() ?? ""}; --floatSize: ${s() ?? ""}; --duration: ${i() ?? ""}`), te(c, "pause-animation", o());
|
|
4086
4086
|
}), k(t, l), ee({
|
|
4087
4087
|
get color() {
|
|
@@ -4163,7 +4163,7 @@ function Cd(t, e) {
|
|
|
4163
4163
|
F(() => {
|
|
4164
4164
|
M(h, "style", `animation-delay: ${(p(f) - 1) * (+l / 12)}${o ?? ""}`), te(h, "pause-animation", a());
|
|
4165
4165
|
}), k(d, h);
|
|
4166
|
-
}),
|
|
4166
|
+
}), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), k(t, c), ee({
|
|
4167
4167
|
get color() {
|
|
4168
4168
|
return n();
|
|
4169
4169
|
},
|
|
@@ -4262,7 +4262,7 @@ function Rd(t, e) {
|
|
|
4262
4262
|
F(() => {
|
|
4263
4263
|
Be(d, `lines small-lines ${p(u) ?? ""} svelte-bnawe9`), M(d, "style", `--color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(d, "pause-animation", a());
|
|
4264
4264
|
}), k(c, d);
|
|
4265
|
-
}),
|
|
4265
|
+
}), z(l), F(() => M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --rgba:${p(o) ?? ""}`)), k(t, l), ee({
|
|
4266
4266
|
get color() {
|
|
4267
4267
|
return n();
|
|
4268
4268
|
},
|
|
@@ -4338,7 +4338,7 @@ function Fd(t, e) {
|
|
|
4338
4338
|
F(() => {
|
|
4339
4339
|
M(h, "style", `animation-delay: ${+l / 3 * (p(f) - 1) + o};`), te(h, "pause-animation", a());
|
|
4340
4340
|
}), k(d, h);
|
|
4341
|
-
}),
|
|
4341
|
+
}), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
|
|
4342
4342
|
get color() {
|
|
4343
4343
|
return n();
|
|
4344
4344
|
},
|
|
@@ -4418,7 +4418,7 @@ function qd(t, e) {
|
|
|
4418
4418
|
F(() => {
|
|
4419
4419
|
Be(u, `border ${p(c) ?? ""} svelte-kxapcj`), te(u, "pause-animation", a());
|
|
4420
4420
|
}), k(l, u);
|
|
4421
|
-
}),
|
|
4421
|
+
}), z(o), F(() => M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, o), ee({
|
|
4422
4422
|
get color() {
|
|
4423
4423
|
return n();
|
|
4424
4424
|
},
|
|
@@ -4510,7 +4510,7 @@ function Yd(t, e) {
|
|
|
4510
4510
|
F(() => {
|
|
4511
4511
|
M(h, "style", `--dotSize:${+s() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${p(f) * (+l / 10)}${o ?? ""};`), te(h, "pause-animation", a());
|
|
4512
4512
|
}), k(d, h);
|
|
4513
|
-
}),
|
|
4513
|
+
}), z(c), F(() => M(c, "style", `--size:${s() ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
|
|
4514
4514
|
get color() {
|
|
4515
4515
|
return n();
|
|
4516
4516
|
},
|
|
@@ -4584,7 +4584,7 @@ function Gd(t, e) {
|
|
|
4584
4584
|
K(e, !1), se(t, Zd);
|
|
4585
4585
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "3s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4586
4586
|
var o = Hd(), l = C(o);
|
|
4587
|
-
return
|
|
4587
|
+
return z(o), F(() => {
|
|
4588
4588
|
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
|
|
4589
4589
|
}), k(t, o), ee({
|
|
4590
4590
|
get color() {
|
|
@@ -4656,7 +4656,7 @@ function Vd(t, e) {
|
|
|
4656
4656
|
K(e, !1), se(t, Jd);
|
|
4657
4657
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.25s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4658
4658
|
var o = Wd(), l = C(o);
|
|
4659
|
-
return
|
|
4659
|
+
return z(o), F(() => {
|
|
4660
4660
|
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
|
|
4661
4661
|
}), k(t, o), ee({
|
|
4662
4662
|
get color() {
|
|
@@ -4732,7 +4732,7 @@ function Ti(t, e) {
|
|
|
4732
4732
|
F(() => {
|
|
4733
4733
|
M(h, "style", `animation-delay: ${p(f) * (+l / 10)}${o ?? ""}; left: ${p(f) * (+s() / 3 + +s() / 15) + r()};`), te(h, "pause-animation", a());
|
|
4734
4734
|
}), k(d, h);
|
|
4735
|
-
}),
|
|
4735
|
+
}), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), k(t, c), ee({
|
|
4736
4736
|
get color() {
|
|
4737
4737
|
return n();
|
|
4738
4738
|
},
|
|
@@ -4806,7 +4806,7 @@ function rf(t, e) {
|
|
|
4806
4806
|
F(() => {
|
|
4807
4807
|
M(h, "style", `animation-delay: ${p(f) * (+l / 25)}${o ?? ""}; width: ${p(f) * (+s() / 6) + r()}; height: ${p(f) * (+s() / 6) / 2 + r()}; `), te(h, "pause-animation", a());
|
|
4808
4808
|
}), k(d, h);
|
|
4809
|
-
}),
|
|
4809
|
+
}), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-s() / 5}${r() ?? ""}; --motionTwo: ${+s() / 4}${r() ?? ""}; --motionThree: ${-s() / 5}${r() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
|
|
4810
4810
|
get color() {
|
|
4811
4811
|
return n();
|
|
4812
4812
|
},
|
|
@@ -4885,7 +4885,7 @@ function lf(t, e) {
|
|
|
4885
4885
|
F(() => {
|
|
4886
4886
|
M(m, "style", `animation-delay: ${(p(h) === 1 ? `${+l / 2}${o}` : "0s") ?? ""}; ${(p(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(p(h) === 1 ? "top: auto;" : "") ?? ""}`), te(m, "pause-animation", a());
|
|
4887
4887
|
}), k(f, m);
|
|
4888
|
-
}),
|
|
4888
|
+
}), z(u), z(c), F(() => {
|
|
4889
4889
|
M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(u, "pause-animation", a());
|
|
4890
4890
|
}), k(t, c), ee({
|
|
4891
4891
|
get color() {
|
|
@@ -5055,7 +5055,7 @@ function pf(t, e) {
|
|
|
5055
5055
|
K(e, !1), se(t, hf);
|
|
5056
5056
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.7s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
5057
5057
|
var o = ff(), l = C(o);
|
|
5058
|
-
return
|
|
5058
|
+
return z(o), F(() => {
|
|
5059
5059
|
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
|
|
5060
5060
|
}), k(t, o), ee({
|
|
5061
5061
|
get color() {
|
|
@@ -5119,7 +5119,7 @@ function mf(t, e) {
|
|
|
5119
5119
|
K(e, !1), se(t, gf);
|
|
5120
5120
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.6s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = +s() / 7, l = +s() / 2 - o / 2;
|
|
5121
5121
|
var c = vf(), u = C(c), d = q(u, 2);
|
|
5122
|
-
return
|
|
5122
|
+
return z(c), F(() => {
|
|
5123
5123
|
M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${l ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`), te(c, "pause-animation", a()), te(u, "pause-animation", a()), te(d, "pause-animation", a());
|
|
5124
5124
|
}), k(t, c), ee({
|
|
5125
5125
|
get color() {
|
|
@@ -5210,7 +5210,7 @@ function wf(t, e) {
|
|
|
5210
5210
|
}
|
|
5211
5211
|
), Jn(), rt();
|
|
5212
5212
|
var l = bf(), c = C(l);
|
|
5213
|
-
return
|
|
5213
|
+
return z(l), F(() => {
|
|
5214
5214
|
M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(o) ?? ""}; --duration: ${i() ?? ""};`), te(c, "pause-animation", a());
|
|
5215
5215
|
}), k(t, l), ee({
|
|
5216
5216
|
get color() {
|
|
@@ -5423,7 +5423,7 @@ function If(t, e) {
|
|
|
5423
5423
|
F(() => {
|
|
5424
5424
|
M(h, "style", `left: ${p(f) * (+s() / 5 + (+s() / 15 - +s() / 100)) + r()}; animation-delay: ${p(f) * (+l / 8.3)}${o ?? ""};`), te(h, "pause-animation", a());
|
|
5425
5425
|
}), k(d, h);
|
|
5426
|
-
}),
|
|
5426
|
+
}), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
|
|
5427
5427
|
get color() {
|
|
5428
5428
|
return n();
|
|
5429
5429
|
},
|
|
@@ -5507,7 +5507,7 @@ function jf(t, e) {
|
|
|
5507
5507
|
F(() => {
|
|
5508
5508
|
M(m, "style", `animation-delay: ${(p(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + o};`), te(m, "pause-animation", a());
|
|
5509
5509
|
}), k(f, m);
|
|
5510
|
-
}),
|
|
5510
|
+
}), z(u), F(() => M(u, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(c) ?? ""}; --duration: ${i() ?? ""}`)), k(t, u), ee({
|
|
5511
5511
|
get color() {
|
|
5512
5512
|
return n();
|
|
5513
5513
|
},
|
|
@@ -5775,67 +5775,67 @@ function xa(t, e) {
|
|
|
5775
5775
|
}
|
|
5776
5776
|
};
|
|
5777
5777
|
var m = sh(), b = C(m), S = C(b), $ = C(S), _ = C($);
|
|
5778
|
-
|
|
5778
|
+
z($);
|
|
5779
5779
|
var E = q($, 2);
|
|
5780
|
-
E.__click = u,
|
|
5781
|
-
var D = q(S, 2), w = C(D),
|
|
5780
|
+
E.__click = u, z(S);
|
|
5781
|
+
var D = q(S, 2), w = C(D), y = C(w), I = q(C(y), 2);
|
|
5782
5782
|
_l(I), I.__input = [
|
|
5783
5783
|
Nf,
|
|
5784
5784
|
c,
|
|
5785
5785
|
i,
|
|
5786
5786
|
f,
|
|
5787
5787
|
h
|
|
5788
|
-
], y
|
|
5789
|
-
var O = q(w, 2),
|
|
5788
|
+
], z(y), z(w);
|
|
5789
|
+
var O = q(w, 2), U = C(O);
|
|
5790
5790
|
{
|
|
5791
5791
|
var W = (N) => {
|
|
5792
5792
|
var le = Bf(), Pe = C(le);
|
|
5793
5793
|
Ti(Pe, { size: "30", color: "#295dcf" });
|
|
5794
5794
|
var Fe = q(Pe, 2), Ne = C(Fe, !0);
|
|
5795
|
-
|
|
5795
|
+
z(Fe), z(le), F((ue) => Le(Ne, ue), [() => /* @__PURE__ */ _u()]), k(N, le);
|
|
5796
5796
|
}, he = (N) => {
|
|
5797
5797
|
var le = be(), Pe = ge(le);
|
|
5798
5798
|
{
|
|
5799
5799
|
var Fe = (ue) => {
|
|
5800
|
-
var we = Uf(), ye = q(C(we), 2),
|
|
5801
|
-
|
|
5800
|
+
var we = Uf(), ye = q(C(we), 2), We = C(ye, !0);
|
|
5801
|
+
z(ye), z(we), F((pt) => Le(We, pt), [() => /* @__PURE__ */ xu()]), k(ue, we);
|
|
5802
5802
|
}, Ne = (ue) => {
|
|
5803
5803
|
var we = be(), ye = ge(we);
|
|
5804
5804
|
{
|
|
5805
|
-
var
|
|
5805
|
+
var We = (Ce) => {
|
|
5806
5806
|
var ze = be(), _e = ge(ze);
|
|
5807
5807
|
{
|
|
5808
|
-
var De = (
|
|
5808
|
+
var De = (H) => {
|
|
5809
5809
|
var G = Yf(), Q = q(C(G), 2), J = C(Q, !0);
|
|
5810
|
-
|
|
5811
|
-
},
|
|
5810
|
+
z(Q), z(G), F((X) => Le(J, X), [() => /* @__PURE__ */ yu()]), k(H, G);
|
|
5811
|
+
}, Je = (H) => {
|
|
5812
5812
|
var G = Gf();
|
|
5813
5813
|
Ye(G, 21, () => p(o), Ue, (Q, J) => {
|
|
5814
5814
|
var X = Zf();
|
|
5815
5815
|
X.__click = [Hf, d, J];
|
|
5816
5816
|
var pe = C(X), $e = C(pe);
|
|
5817
|
-
|
|
5817
|
+
z(pe);
|
|
5818
5818
|
var Ee = q(pe, 2), Ie = C(Ee), Ae = C(Ie, !0);
|
|
5819
|
-
|
|
5819
|
+
z(Ie), z(Ee), z(X), F(
|
|
5820
5820
|
(Oe) => {
|
|
5821
5821
|
Be($e, Xn(p(s).icon), "svelte-m8ylyl"), M($e, "style", `color: ${p(s).color}`), Le(Ae, Oe);
|
|
5822
5822
|
},
|
|
5823
5823
|
[() => p(J).title.split(".")[0]]
|
|
5824
5824
|
), k(Q, X);
|
|
5825
|
-
}),
|
|
5825
|
+
}), z(G), k(H, G);
|
|
5826
5826
|
};
|
|
5827
|
-
B(_e, (
|
|
5828
|
-
p(o).length === 0 ?
|
|
5827
|
+
B(_e, (H) => {
|
|
5828
|
+
p(o).length === 0 ? H(De) : H(Je, !1);
|
|
5829
5829
|
});
|
|
5830
5830
|
}
|
|
5831
5831
|
k(Ce, ze);
|
|
5832
5832
|
}, pt = (Ce) => {
|
|
5833
5833
|
var ze = be(), _e = ge(ze);
|
|
5834
5834
|
{
|
|
5835
|
-
var De = (
|
|
5835
|
+
var De = (H) => {
|
|
5836
5836
|
var G = Wf(), Q = q(C(G), 2), J = C(Q, !0);
|
|
5837
|
-
|
|
5838
|
-
},
|
|
5837
|
+
z(Q), z(G), F((X) => Le(J, X), [() => /* @__PURE__ */ zu()]), k(H, G);
|
|
5838
|
+
}, Je = (H) => {
|
|
5839
5839
|
var G = ih();
|
|
5840
5840
|
Ye(G, 21, () => p(a), Ue, (Q, J) => {
|
|
5841
5841
|
var X = rh();
|
|
@@ -5938,11 +5938,11 @@ function xa(t, e) {
|
|
|
5938
5938
|
p(J).isCommon ? Z(Ee) : Z(Ie, !1);
|
|
5939
5939
|
});
|
|
5940
5940
|
}
|
|
5941
|
-
|
|
5941
|
+
z(pe);
|
|
5942
5942
|
var Ae = q(pe, 2), Oe = C(Ae), A = C(Oe, !0);
|
|
5943
|
-
|
|
5943
|
+
z(Oe);
|
|
5944
5944
|
var L = q(Oe, 2), V = C(L, !0);
|
|
5945
|
-
|
|
5945
|
+
z(L), z(Ae), z(X), F(
|
|
5946
5946
|
(Z) => {
|
|
5947
5947
|
Le(A, Z), Le(V, p(J).path && p(J).path !== "" ? p(J).path : "root");
|
|
5948
5948
|
},
|
|
@@ -5950,12 +5950,12 @@ function xa(t, e) {
|
|
|
5950
5950
|
() => p(J).isCommon ? p(J).title.split(".")[0] : p(J).title
|
|
5951
5951
|
]
|
|
5952
5952
|
), k(Q, X);
|
|
5953
|
-
}),
|
|
5953
|
+
}), z(G), k(H, G);
|
|
5954
5954
|
};
|
|
5955
5955
|
B(
|
|
5956
5956
|
_e,
|
|
5957
|
-
(
|
|
5958
|
-
p(a).length === 0 ?
|
|
5957
|
+
(H) => {
|
|
5958
|
+
p(a).length === 0 ? H(De) : H(Je, !1);
|
|
5959
5959
|
},
|
|
5960
5960
|
!0
|
|
5961
5961
|
);
|
|
@@ -5965,7 +5965,7 @@ function xa(t, e) {
|
|
|
5965
5965
|
B(
|
|
5966
5966
|
ye,
|
|
5967
5967
|
(Ce) => {
|
|
5968
|
-
i() !== "" ? Ce(
|
|
5968
|
+
i() !== "" ? Ce(We) : Ce(pt, !1);
|
|
5969
5969
|
},
|
|
5970
5970
|
!0
|
|
5971
5971
|
);
|
|
@@ -5982,11 +5982,11 @@ function xa(t, e) {
|
|
|
5982
5982
|
}
|
|
5983
5983
|
k(N, le);
|
|
5984
5984
|
};
|
|
5985
|
-
B(
|
|
5985
|
+
B(U, (N) => {
|
|
5986
5986
|
p(l) ? N(W) : N(he, !1);
|
|
5987
5987
|
});
|
|
5988
5988
|
}
|
|
5989
|
-
return
|
|
5989
|
+
return z(O), z(D), z(b), z(m), F(
|
|
5990
5990
|
(N, le, Pe) => {
|
|
5991
5991
|
Le(_, `${N ?? ""}
|
|
5992
5992
|
${le ?? ""}`), M(I, "placeholder", `${N ?? ""} ${Pe ?? ""} (min 3 caratteri)...`), xl(I, p(c));
|
|
@@ -6088,13 +6088,13 @@ function ya(t, e) {
|
|
|
6088
6088
|
console.log("Seleziona file"), I(), O();
|
|
6089
6089
|
}, w = (A) => {
|
|
6090
6090
|
a(A), o(!1), l({}), I();
|
|
6091
|
-
},
|
|
6091
|
+
}, y = () => {
|
|
6092
6092
|
o(!0), a(""), l({}), I();
|
|
6093
6093
|
}, I = () => {
|
|
6094
6094
|
x(W, !1);
|
|
6095
6095
|
}, O = () => {
|
|
6096
6096
|
x(he, !0);
|
|
6097
|
-
},
|
|
6097
|
+
}, U = async (A, L, V) => {
|
|
6098
6098
|
await Gt.getDocumentPage(A, L, V);
|
|
6099
6099
|
};
|
|
6100
6100
|
let W = re(!1), he = re(!1);
|
|
@@ -6102,11 +6102,11 @@ function ya(t, e) {
|
|
|
6102
6102
|
Object.keys(l()).length > 0 && a() == "" && o(!0);
|
|
6103
6103
|
});
|
|
6104
6104
|
var N = Lh(), le = ge(N), Pe = C(le), Fe = C(Pe);
|
|
6105
|
-
fl(Fe), Fe.__keyup = [lh, E],
|
|
6105
|
+
fl(Fe), Fe.__keyup = [lh, E], z(Pe);
|
|
6106
6106
|
var Ne = q(Pe, 2), ue = C(Ne), we = C(ue), ye = C(we);
|
|
6107
6107
|
ye.__click = [oh, W];
|
|
6108
|
-
var
|
|
6109
|
-
|
|
6108
|
+
var We = C(ye);
|
|
6109
|
+
z(ye);
|
|
6110
6110
|
var pt = q(ye, 2);
|
|
6111
6111
|
{
|
|
6112
6112
|
var Ce = (A) => {
|
|
@@ -6127,12 +6127,12 @@ function ya(t, e) {
|
|
|
6127
6127
|
}) == null || xe.apply(this, je);
|
|
6128
6128
|
};
|
|
6129
6129
|
var Se = q(C(Z), 2), Re = C(Se, !0);
|
|
6130
|
-
|
|
6130
|
+
z(Se), z(Z);
|
|
6131
6131
|
var j = q(Z, 2);
|
|
6132
6132
|
j.__click = function(...je) {
|
|
6133
6133
|
var xe;
|
|
6134
6134
|
(xe = o() ? () => {
|
|
6135
|
-
} :
|
|
6135
|
+
} : y) == null || xe.apply(this, je);
|
|
6136
6136
|
};
|
|
6137
6137
|
var ve = q(j, 2), He = /* @__PURE__ */ gt(() => Object.keys(l()).length < 2 ? D : () => {
|
|
6138
6138
|
});
|
|
@@ -6141,7 +6141,7 @@ function ya(t, e) {
|
|
|
6141
6141
|
(xe = p(He)) == null || xe.apply(this, je);
|
|
6142
6142
|
};
|
|
6143
6143
|
var Ve = q(C(ve), 2), Jt = C(Ve);
|
|
6144
|
-
|
|
6144
|
+
z(Ve), z(ve), z(L), F(
|
|
6145
6145
|
(je, xe, at) => {
|
|
6146
6146
|
Be(V, `${`dropdown-option ${a() == "suite" ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Be(Z, `${`dropdown-option ${a() == "normative" ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Le(Re, je), Be(j, `${`dropdown-option ${o() ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Be(ve, `${xe ?? ""} svelte-18sfhki`), Le(Jt, `${at ?? ""}
|
|
6147
6147
|
${(a() !== "" ? "File Forge" : "File") ?? ""}`);
|
|
@@ -6157,12 +6157,12 @@ function ya(t, e) {
|
|
|
6157
6157
|
p(W) && A(Ce);
|
|
6158
6158
|
});
|
|
6159
6159
|
}
|
|
6160
|
-
|
|
6160
|
+
z(we);
|
|
6161
6161
|
var ze = q(we, 2), _e = C(ze);
|
|
6162
6162
|
{
|
|
6163
6163
|
var De = (A) => {
|
|
6164
6164
|
var L = fh(), V = C(L), Z = q(V, 2), Se = C(Z, !0);
|
|
6165
|
-
|
|
6165
|
+
z(Z);
|
|
6166
6166
|
var Re = q(Z, 2);
|
|
6167
6167
|
{
|
|
6168
6168
|
var j = (ve) => {
|
|
@@ -6173,7 +6173,7 @@ function ya(t, e) {
|
|
|
6173
6173
|
Object.keys(l()).length === 0 && ve(j);
|
|
6174
6174
|
});
|
|
6175
6175
|
}
|
|
6176
|
-
|
|
6176
|
+
z(L), F(() => {
|
|
6177
6177
|
M(L, "title", p(u).name), M(L, "style", `background-color: ${p(u).color}; color: ${p(u).textColor};`), Be(V, Xn(p(u).icon), "svelte-18sfhki"), Le(Se, p(u).name);
|
|
6178
6178
|
}), k(A, L);
|
|
6179
6179
|
};
|
|
@@ -6181,9 +6181,9 @@ function ya(t, e) {
|
|
|
6181
6181
|
a() !== "" && A(De);
|
|
6182
6182
|
});
|
|
6183
6183
|
}
|
|
6184
|
-
var
|
|
6184
|
+
var Je = q(_e, 2);
|
|
6185
6185
|
{
|
|
6186
|
-
var
|
|
6186
|
+
var H = (A) => {
|
|
6187
6187
|
var L = vh(), V = q(C(L), 4);
|
|
6188
6188
|
{
|
|
6189
6189
|
var Z = (Se) => {
|
|
@@ -6194,13 +6194,13 @@ function ya(t, e) {
|
|
|
6194
6194
|
Object.keys(l()).length === 0 && Se(Z);
|
|
6195
6195
|
});
|
|
6196
6196
|
}
|
|
6197
|
-
|
|
6197
|
+
z(L), k(A, L);
|
|
6198
6198
|
};
|
|
6199
|
-
B(
|
|
6200
|
-
o() && A(
|
|
6199
|
+
B(Je, (A) => {
|
|
6200
|
+
o() && A(H);
|
|
6201
6201
|
});
|
|
6202
6202
|
}
|
|
6203
|
-
var G = q(
|
|
6203
|
+
var G = q(Je, 2);
|
|
6204
6204
|
Ye(G, 17, () => Object.entries(l()), Ue, (A, L) => {
|
|
6205
6205
|
let V = () => p(L)[0], Z = () => p(L)[1].title, Se = () => p(L)[1].ext_id, Re = () => p(L)[1].gendoc_id, j = () => p(L)[1].isCommon;
|
|
6206
6206
|
var ve = Th(), He = C(ve);
|
|
@@ -6305,7 +6305,7 @@ function ya(t, e) {
|
|
|
6305
6305
|
{
|
|
6306
6306
|
var xe = (Me) => {
|
|
6307
6307
|
var Te = yh(), Xe = C(Te, !0);
|
|
6308
|
-
|
|
6308
|
+
z(Te), F(
|
|
6309
6309
|
(bt, vt) => {
|
|
6310
6310
|
M(Te, "title", bt), Le(Xe, vt);
|
|
6311
6311
|
},
|
|
@@ -6318,20 +6318,20 @@ function ya(t, e) {
|
|
|
6318
6318
|
var Te = $h();
|
|
6319
6319
|
Be(Te, "attachment-title open-file-button svelte-18sfhki"), Te.__click = [
|
|
6320
6320
|
zh,
|
|
6321
|
-
|
|
6321
|
+
U,
|
|
6322
6322
|
Se,
|
|
6323
6323
|
Z,
|
|
6324
6324
|
Re
|
|
6325
6325
|
];
|
|
6326
6326
|
var Xe = C(Te, !0);
|
|
6327
|
-
|
|
6327
|
+
z(Te), F(() => Le(Xe, Z())), k(Me, Te);
|
|
6328
6328
|
};
|
|
6329
6329
|
B(je, (Me) => {
|
|
6330
6330
|
j() ? Me(xe) : Me(at, !1);
|
|
6331
6331
|
});
|
|
6332
6332
|
}
|
|
6333
6333
|
var ot = q(je, 2);
|
|
6334
|
-
ot.__click = [Sh, l, V],
|
|
6334
|
+
ot.__click = [Sh, l, V], z(ve), F(
|
|
6335
6335
|
(Me) => {
|
|
6336
6336
|
Be(ve, `${`attachment-item ${j() ? "common" : ""}` ?? ""} svelte-18sfhki`), M(ve, "title", Me), Be(ot, `${`remove-btn ${j() ? "common" : ""}` ?? ""} svelte-18sfhki`);
|
|
6337
6337
|
},
|
|
@@ -6339,7 +6339,7 @@ function ya(t, e) {
|
|
|
6339
6339
|
() => j() ? a() !== "" ? p(u).name : /* @__PURE__ */ ma() : Z()
|
|
6340
6340
|
]
|
|
6341
6341
|
), k(A, ve);
|
|
6342
|
-
}),
|
|
6342
|
+
}), z(ze), ha(ze, (A) => b = A, () => b);
|
|
6343
6343
|
var Q = q(ze, 2), J = C(Q);
|
|
6344
6344
|
{
|
|
6345
6345
|
var X = (A) => {
|
|
@@ -6350,7 +6350,7 @@ function ya(t, e) {
|
|
|
6350
6350
|
{
|
|
6351
6351
|
var Z = (Re) => {
|
|
6352
6352
|
var j = Eh(), ve = C(j);
|
|
6353
|
-
Ti(ve, { size: "20", color: "white" }),
|
|
6353
|
+
Ti(ve, { size: "20", color: "white" }), z(j), k(Re, j);
|
|
6354
6354
|
}, Se = (Re) => {
|
|
6355
6355
|
var j = Ih();
|
|
6356
6356
|
j.__click = $, F((ve) => M(j, "title", ve), [() => /* @__PURE__ */ fu()]), k(Re, j);
|
|
@@ -6385,7 +6385,7 @@ function ya(t, e) {
|
|
|
6385
6385
|
i() ? A(Ee) : A(Ie, !1);
|
|
6386
6386
|
});
|
|
6387
6387
|
}
|
|
6388
|
-
|
|
6388
|
+
z(Q), z(ue), z(Ne), z(le);
|
|
6389
6389
|
var Ae = q(le, 2);
|
|
6390
6390
|
{
|
|
6391
6391
|
var Oe = (A) => {
|
|
@@ -6416,7 +6416,7 @@ function ya(t, e) {
|
|
|
6416
6416
|
}
|
|
6417
6417
|
return F(
|
|
6418
6418
|
(A, L) => {
|
|
6419
|
-
M(Fe, "placeholder", A), Be(ye, `${`btn plus-button ${p(W) ? "plus-button-active" : ""}` ?? ""} svelte-18sfhki`), M(ye, "aria-label", L), M(ye, "title", L), Be(
|
|
6419
|
+
M(Fe, "placeholder", A), Be(ye, `${`btn plus-button ${p(W) ? "plus-button-active" : ""}` ?? ""} svelte-18sfhki`), M(ye, "aria-label", L), M(ye, "title", L), Be(We, `${`fa-solid ${p(W) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-18sfhki`);
|
|
6420
6420
|
},
|
|
6421
6421
|
[
|
|
6422
6422
|
() => /* @__PURE__ */ ou(),
|
|
@@ -7096,12 +7096,12 @@ function gp(t, e, n, r) {
|
|
|
7096
7096
|
const i = t.resources.length, s = t.random ? Math.floor(Math.random() * i) : t.index;
|
|
7097
7097
|
let a;
|
|
7098
7098
|
if (t.random) {
|
|
7099
|
-
let
|
|
7100
|
-
for (a = [];
|
|
7101
|
-
const I = Math.floor(Math.random() *
|
|
7102
|
-
a.push(
|
|
7099
|
+
let y = t.resources.slice(0);
|
|
7100
|
+
for (a = []; y.length > 1; ) {
|
|
7101
|
+
const I = Math.floor(Math.random() * y.length);
|
|
7102
|
+
a.push(y[I]), y = y.slice(0, I).concat(y.slice(I + 1));
|
|
7103
7103
|
}
|
|
7104
|
-
a = a.concat(
|
|
7104
|
+
a = a.concat(y);
|
|
7105
7105
|
} else
|
|
7106
7106
|
a = t.resources.slice(s).concat(t.resources.slice(0, s));
|
|
7107
7107
|
const o = Date.now();
|
|
@@ -7111,12 +7111,12 @@ function gp(t, e, n, r) {
|
|
|
7111
7111
|
d && (clearTimeout(d), d = null);
|
|
7112
7112
|
}
|
|
7113
7113
|
function b() {
|
|
7114
|
-
l === "pending" && (l = "aborted"), m(), f.forEach((
|
|
7115
|
-
|
|
7114
|
+
l === "pending" && (l = "aborted"), m(), f.forEach((y) => {
|
|
7115
|
+
y.status === "pending" && (y.status = "aborted");
|
|
7116
7116
|
}), f = [];
|
|
7117
7117
|
}
|
|
7118
|
-
function S(
|
|
7119
|
-
I && (h = []), typeof
|
|
7118
|
+
function S(y, I) {
|
|
7119
|
+
I && (h = []), typeof y == "function" && h.push(y);
|
|
7120
7120
|
}
|
|
7121
7121
|
function $() {
|
|
7122
7122
|
return {
|
|
@@ -7130,22 +7130,22 @@ function gp(t, e, n, r) {
|
|
|
7130
7130
|
};
|
|
7131
7131
|
}
|
|
7132
7132
|
function _() {
|
|
7133
|
-
l = "failed", h.forEach((
|
|
7134
|
-
|
|
7133
|
+
l = "failed", h.forEach((y) => {
|
|
7134
|
+
y(void 0, u);
|
|
7135
7135
|
});
|
|
7136
7136
|
}
|
|
7137
7137
|
function E() {
|
|
7138
|
-
f.forEach((
|
|
7139
|
-
|
|
7138
|
+
f.forEach((y) => {
|
|
7139
|
+
y.status === "pending" && (y.status = "aborted");
|
|
7140
7140
|
}), f = [];
|
|
7141
7141
|
}
|
|
7142
|
-
function D(
|
|
7143
|
-
const
|
|
7144
|
-
switch (f = f.filter((W) => W !==
|
|
7142
|
+
function D(y, I, O) {
|
|
7143
|
+
const U = I !== "success";
|
|
7144
|
+
switch (f = f.filter((W) => W !== y), l) {
|
|
7145
7145
|
case "pending":
|
|
7146
7146
|
break;
|
|
7147
7147
|
case "failed":
|
|
7148
|
-
if (
|
|
7148
|
+
if (U || !t.dataAfterTimeout)
|
|
7149
7149
|
return;
|
|
7150
7150
|
break;
|
|
7151
7151
|
default:
|
|
@@ -7155,12 +7155,12 @@ function gp(t, e, n, r) {
|
|
|
7155
7155
|
u = O, _();
|
|
7156
7156
|
return;
|
|
7157
7157
|
}
|
|
7158
|
-
if (
|
|
7158
|
+
if (U) {
|
|
7159
7159
|
u = O, f.length || (a.length ? w() : _());
|
|
7160
7160
|
return;
|
|
7161
7161
|
}
|
|
7162
7162
|
if (m(), E(), !t.random) {
|
|
7163
|
-
const W = t.resources.indexOf(
|
|
7163
|
+
const W = t.resources.indexOf(y.resource);
|
|
7164
7164
|
W !== -1 && W !== t.index && (t.index = W);
|
|
7165
7165
|
}
|
|
7166
7166
|
l = "completed", h.forEach((W) => {
|
|
@@ -7171,8 +7171,8 @@ function gp(t, e, n, r) {
|
|
|
7171
7171
|
if (l !== "pending")
|
|
7172
7172
|
return;
|
|
7173
7173
|
m();
|
|
7174
|
-
const
|
|
7175
|
-
if (
|
|
7174
|
+
const y = a.shift();
|
|
7175
|
+
if (y === void 0) {
|
|
7176
7176
|
if (f.length) {
|
|
7177
7177
|
d = setTimeout(() => {
|
|
7178
7178
|
m(), l === "pending" && (E(), _());
|
|
@@ -7184,12 +7184,12 @@ function gp(t, e, n, r) {
|
|
|
7184
7184
|
}
|
|
7185
7185
|
const I = {
|
|
7186
7186
|
status: "pending",
|
|
7187
|
-
resource:
|
|
7188
|
-
callback: (O,
|
|
7189
|
-
D(I, O,
|
|
7187
|
+
resource: y,
|
|
7188
|
+
callback: (O, U) => {
|
|
7189
|
+
D(I, O, U);
|
|
7190
7190
|
}
|
|
7191
7191
|
};
|
|
7192
|
-
f.push(I), c++, d = setTimeout(w, t.rotate), n(
|
|
7192
|
+
f.push(I), c++, d = setTimeout(w, t.rotate), n(y, e, I.callback);
|
|
7193
7193
|
}
|
|
7194
7194
|
return setTimeout(w), $;
|
|
7195
7195
|
}
|
|
@@ -7646,7 +7646,7 @@ function Zn(t, e) {
|
|
|
7646
7646
|
var _ = Fp();
|
|
7647
7647
|
let E;
|
|
7648
7648
|
var D = C(_);
|
|
7649
|
-
ni(D, () => p(a).body, !0, !1),
|
|
7649
|
+
ni(D, () => p(a).body, !0, !1), z(_), F(() => E = Ji(_, E, { ...p(a).attributes }, void 0, !0)), k($, _);
|
|
7650
7650
|
}, S = ($) => {
|
|
7651
7651
|
var _ = Op();
|
|
7652
7652
|
let E;
|
|
@@ -7689,13 +7689,13 @@ function ce(t, e = "") {
|
|
|
7689
7689
|
const r = {
|
|
7690
7690
|
replace: (i, s) => {
|
|
7691
7691
|
let a = typeof s == "string" ? s : s.source;
|
|
7692
|
-
return a = a.replace(
|
|
7692
|
+
return a = a.replace(Ge.caret, "$1"), n = n.replace(i, a), r;
|
|
7693
7693
|
},
|
|
7694
7694
|
getRegex: () => new RegExp(n, e)
|
|
7695
7695
|
};
|
|
7696
7696
|
return r;
|
|
7697
7697
|
}
|
|
7698
|
-
const
|
|
7698
|
+
const Ge = {
|
|
7699
7699
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
7700
7700
|
outputLinkReplace: /\\([\[\]])/g,
|
|
7701
7701
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -7836,15 +7836,15 @@ const We = {
|
|
|
7836
7836
|
}, ms = (t) => gv[t];
|
|
7837
7837
|
function kt(t, e) {
|
|
7838
7838
|
if (e) {
|
|
7839
|
-
if (
|
|
7840
|
-
return t.replace(
|
|
7841
|
-
} else if (
|
|
7842
|
-
return t.replace(
|
|
7839
|
+
if (Ge.escapeTest.test(t))
|
|
7840
|
+
return t.replace(Ge.escapeReplace, ms);
|
|
7841
|
+
} else if (Ge.escapeTestNoEncode.test(t))
|
|
7842
|
+
return t.replace(Ge.escapeReplaceNoEncode, ms);
|
|
7843
7843
|
return t;
|
|
7844
7844
|
}
|
|
7845
7845
|
function bs(t) {
|
|
7846
7846
|
try {
|
|
7847
|
-
t = encodeURI(t).replace(
|
|
7847
|
+
t = encodeURI(t).replace(Ge.percentDecode, "%");
|
|
7848
7848
|
} catch {
|
|
7849
7849
|
return null;
|
|
7850
7850
|
}
|
|
@@ -7852,12 +7852,12 @@ function bs(t) {
|
|
|
7852
7852
|
}
|
|
7853
7853
|
function ks(t, e) {
|
|
7854
7854
|
var s;
|
|
7855
|
-
const n = t.replace(
|
|
7855
|
+
const n = t.replace(Ge.findPipe, (a, o, l) => {
|
|
7856
7856
|
let c = !1, u = o;
|
|
7857
7857
|
for (; --u >= 0 && l[u] === "\\"; )
|
|
7858
7858
|
c = !c;
|
|
7859
7859
|
return c ? "|" : " |";
|
|
7860
|
-
}), r = n.split(
|
|
7860
|
+
}), r = n.split(Ge.splitPipe);
|
|
7861
7861
|
let i = 0;
|
|
7862
7862
|
if (r[0].trim() || r.shift(), r.length > 0 && !((s = r.at(-1)) != null && s.trim()) && r.pop(), e)
|
|
7863
7863
|
if (r.length > e)
|
|
@@ -7866,7 +7866,7 @@ function ks(t, e) {
|
|
|
7866
7866
|
for (; r.length < e; )
|
|
7867
7867
|
r.push("");
|
|
7868
7868
|
for (; i < r.length; i++)
|
|
7869
|
-
r[i] = r[i].trim().replace(
|
|
7869
|
+
r[i] = r[i].trim().replace(Ge.slashPipe, "|");
|
|
7870
7870
|
return r;
|
|
7871
7871
|
}
|
|
7872
7872
|
function jn(t, e, n) {
|
|
@@ -8075,12 +8075,12 @@ ${d}` : d;
|
|
|
8075
8075
|
`, 1)[0], m = !f.trim(), b = 0;
|
|
8076
8076
|
if (this.options.pedantic ? (b = 2, d = f.trimStart()) : m ? b = n[1].length + 1 : (b = n[2].search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, d = f.slice(b), b += n[1].length), m && this.rules.other.blankLine.test(h) && (u += h + `
|
|
8077
8077
|
`, e = e.substring(h.length + 1), c = !0), !c) {
|
|
8078
|
-
const _ = this.rules.other.nextBulletRegex(b), E = this.rules.other.hrRegex(b), D = this.rules.other.fencesBeginRegex(b), w = this.rules.other.headingBeginRegex(b),
|
|
8078
|
+
const _ = this.rules.other.nextBulletRegex(b), E = this.rules.other.hrRegex(b), D = this.rules.other.fencesBeginRegex(b), w = this.rules.other.headingBeginRegex(b), y = this.rules.other.htmlBeginRegex(b);
|
|
8079
8079
|
for (; e; ) {
|
|
8080
8080
|
const I = e.split(`
|
|
8081
8081
|
`, 1)[0];
|
|
8082
8082
|
let O;
|
|
8083
|
-
if (h = I, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), O = h) : O = h.replace(this.rules.other.tabCharGlobal, " "), D.test(h) || w.test(h) ||
|
|
8083
|
+
if (h = I, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), O = h) : O = h.replace(this.rules.other.tabCharGlobal, " "), D.test(h) || w.test(h) || y.test(h) || _.test(h) || E.test(h))
|
|
8084
8084
|
break;
|
|
8085
8085
|
if (O.search(this.rules.other.nonSpaceChar) >= b || !h.trim())
|
|
8086
8086
|
d += `
|
|
@@ -8425,7 +8425,7 @@ class ct {
|
|
|
8425
8425
|
top: !0
|
|
8426
8426
|
};
|
|
8427
8427
|
const n = {
|
|
8428
|
-
other:
|
|
8428
|
+
other: Ge,
|
|
8429
8429
|
block: tr.normal,
|
|
8430
8430
|
inline: Ln.normal
|
|
8431
8431
|
};
|
|
@@ -8456,7 +8456,7 @@ class ct {
|
|
|
8456
8456
|
* Preprocessing
|
|
8457
8457
|
*/
|
|
8458
8458
|
lex(e) {
|
|
8459
|
-
e = e.replace(
|
|
8459
|
+
e = e.replace(Ge.carriageReturn, `
|
|
8460
8460
|
`), this.blockTokens(e, this.tokens);
|
|
8461
8461
|
for (let n = 0; n < this.inlineQueue.length; n++) {
|
|
8462
8462
|
const r = this.inlineQueue[n];
|
|
@@ -8466,7 +8466,7 @@ class ct {
|
|
|
8466
8466
|
}
|
|
8467
8467
|
blockTokens(e, n = [], r = !1) {
|
|
8468
8468
|
var i, s, a;
|
|
8469
|
-
for (this.options.pedantic && (e = e.replace(
|
|
8469
|
+
for (this.options.pedantic && (e = e.replace(Ge.tabCharGlobal, " ").replace(Ge.spaceLine, "")); e; ) {
|
|
8470
8470
|
let o;
|
|
8471
8471
|
if ((s = (i = this.options.extensions) == null ? void 0 : i.block) != null && s.some((c) => (o = c.call({ lexer: this }, e, n)) ? (e = e.substring(o.raw.length), n.push(o), !0) : !1))
|
|
8472
8472
|
continue;
|
|
@@ -8669,7 +8669,7 @@ class wr {
|
|
|
8669
8669
|
}
|
|
8670
8670
|
code({ text: e, lang: n, escaped: r }) {
|
|
8671
8671
|
var a;
|
|
8672
|
-
const i = (a = (n || "").match(
|
|
8672
|
+
const i = (a = (n || "").match(Ge.notSpaceStart)) == null ? void 0 : a[0], s = e.replace(Ge.endingNewline, "") + `
|
|
8673
8673
|
`;
|
|
8674
8674
|
return i ? '<pre><code class="language-' + kt(i) + '">' + (r ? s : kt(s, !0)) + `</code></pre>
|
|
8675
8675
|
` : "<pre><code>" + (r ? s : kt(s, !0)) + `</code></pre>
|
|
@@ -9237,7 +9237,7 @@ const wv = (t, e) => {
|
|
|
9237
9237
|
};
|
|
9238
9238
|
var _v = (t, e, n, r, i, s, a, o, l, c, u) => {
|
|
9239
9239
|
e() ? !p(a) || p(o) == "mp3" ? l(r(), c() || "", i()) : u(r(), c() || "", i()) : n(r(), i(), s());
|
|
9240
|
-
}, xv = /* @__PURE__ */ T('<i class="fa-solid fa-spinner fa-spin svelte-1imtnoy"></i>'), yv = /* @__PURE__ */ T("<i></i>"), zv = /* @__PURE__ */ T('<i class="fa-solid fa-file-pdf svelte-1imtnoy" style="color: #f0463c;"></i>'), $v = /* @__PURE__ */ T('<i class="fa-solid fa-file-word svelte-1imtnoy" style="color: #305b9a;"></i>'), Sv = /* @__PURE__ */ T('<i class="fa-solid fa-file-excel svelte-1imtnoy" style="color: #0c7540;"></i>'), Tv = /* @__PURE__ */ T('<i class="fa-solid fa-file-powerpoint svelte-1imtnoy" style="color: #d14b2b;"></i>'), Cv = /* @__PURE__ */ T('<i class="fa-solid fa-passport svelte-1imtnoy" style="color: #0DCAF0"></i>'), Ev = /* @__PURE__ */ T('<i class="fa-solid fa-file svelte-1imtnoy"></i>'), Iv = /* @__PURE__ */ T('<div class="document-path svelte-1imtnoy"
|
|
9240
|
+
}, xv = /* @__PURE__ */ T('<i class="fa-solid fa-spinner fa-spin svelte-1imtnoy"></i>'), yv = /* @__PURE__ */ T("<i></i>"), zv = /* @__PURE__ */ T('<i class="fa-solid fa-file-pdf svelte-1imtnoy" style="color: #f0463c;"></i>'), $v = /* @__PURE__ */ T('<i class="fa-solid fa-file-word svelte-1imtnoy" style="color: #305b9a;"></i>'), Sv = /* @__PURE__ */ T('<i class="fa-solid fa-file-excel svelte-1imtnoy" style="color: #0c7540;"></i>'), Tv = /* @__PURE__ */ T('<i class="fa-solid fa-file-powerpoint svelte-1imtnoy" style="color: #d14b2b;"></i>'), Cv = /* @__PURE__ */ T('<i class="fa-solid fa-passport svelte-1imtnoy" style="color: #0DCAF0"></i>'), Ev = /* @__PURE__ */ T('<i class="fa-solid fa-file svelte-1imtnoy"></i>'), Iv = /* @__PURE__ */ T('<div class="document-path svelte-1imtnoy"> </div>'), Av = /* @__PURE__ */ T('<button><!> <div class="document-info svelte-1imtnoy"><span class="document-title svelte-1imtnoy"> </span> <!></div></button>'), Rv = /* @__PURE__ */ T('<div class="dropdown-content svelte-1imtnoy"></div>'), Lv = /* @__PURE__ */ T('<div class="dropdown svelte-1imtnoy"><button class="allegatibtn svelte-1imtnoy" aria-label="Visualizza allegati"> </button> <!></div>'), jv = /* @__PURE__ */ T('<div class="message-attachments"><!></div>');
|
|
9241
9241
|
const Pv = {
|
|
9242
9242
|
hash: "svelte-1imtnoy",
|
|
9243
9243
|
code: ".dropdown.svelte-1imtnoy {position:relative;display:inline-block;}.allegatibtn.svelte-1imtnoy {display:flex;align-items:center;padding:8px 12px;background:#d5ddea;color:#333;border:none;border-radius:8px;cursor:pointer;font-size:14px;transition:200ms;border-radius:0 0 10px 10px;}.allegatibtn.svelte-1imtnoy:hover {background:#e9ecef;color:#295dcf;}.dropdown-content.svelte-1imtnoy {position:absolute;bottom:100%;left:5px;margin-bottom:5px;background:white;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.4);min-width:180px;z-index:1000;max-height:300px;overflow-y:auto;}.dropdown-option.svelte-1imtnoy {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-1imtnoy:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-1imtnoy {color:#8fa1c9;cursor:default;}.dropdown-option.svelte-1imtnoy:first-child {border-top-left-radius:8px;border-top-right-radius:8px;}.dropdown-option.svelte-1imtnoy:last-child {border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.dropdown-option.svelte-1imtnoy:hover {background:#f8f9fa;color:#295dcf;}.dropdown-option.common.svelte-1imtnoy:hover {background:white;color:#8fa1c9;}.dropdown-option.svelte-1imtnoy i:where(.svelte-1imtnoy) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-1imtnoy span:where(.svelte-1imtnoy) {font-size:14px;}.document-info.svelte-1imtnoy {display:flex;flex-direction:column;align-items:flex-start;}.document-title.svelte-1imtnoy {font-weight:500;margin-bottom:4px;text-align:left;}.document-path.svelte-1imtnoy {font-size:0.85em;color:#6c757d;text-align:left;}"
|
|
@@ -9280,22 +9280,22 @@ function Za(t, e) {
|
|
|
9280
9280
|
var h = Lv(), m = C(h);
|
|
9281
9281
|
m.__click = [wv, n];
|
|
9282
9282
|
var b = C(m);
|
|
9283
|
-
|
|
9283
|
+
z(m);
|
|
9284
9284
|
var S = q(m, 2);
|
|
9285
9285
|
{
|
|
9286
9286
|
var $ = (_) => {
|
|
9287
9287
|
var E = Rv();
|
|
9288
9288
|
Ye(E, 21, r, Ue, (D, w) => {
|
|
9289
|
-
let
|
|
9289
|
+
let y = () => p(w).filename, I = () => p(w).external_id, O = () => p(w).path, U = () => p(w).gendoc_id, W = () => p(w).isCommon, he = () => p(w).commonType;
|
|
9290
9290
|
var N = Av();
|
|
9291
|
-
const le = /* @__PURE__ */ gt(() =>
|
|
9291
|
+
const le = /* @__PURE__ */ gt(() => y().split(".").pop()), Pe = /* @__PURE__ */ gt(() => y().includes(".") && p(le) !== y()), Fe = /* @__PURE__ */ gt(() => `${I()}-${y()}`);
|
|
9292
9292
|
N.__click = [
|
|
9293
9293
|
_v,
|
|
9294
9294
|
W,
|
|
9295
9295
|
a,
|
|
9296
9296
|
I,
|
|
9297
|
-
|
|
9298
|
-
|
|
9297
|
+
y,
|
|
9298
|
+
U,
|
|
9299
9299
|
Pe,
|
|
9300
9300
|
le,
|
|
9301
9301
|
l,
|
|
@@ -9308,9 +9308,9 @@ function Za(t, e) {
|
|
|
9308
9308
|
var De = xv();
|
|
9309
9309
|
k(_e, De);
|
|
9310
9310
|
}, we = (_e) => {
|
|
9311
|
-
var De = be(),
|
|
9311
|
+
var De = be(), Je = ge(De);
|
|
9312
9312
|
{
|
|
9313
|
-
var
|
|
9313
|
+
var H = (Q) => {
|
|
9314
9314
|
var J = yv();
|
|
9315
9315
|
F(
|
|
9316
9316
|
(X, pe) => {
|
|
@@ -9359,7 +9359,7 @@ function Za(t, e) {
|
|
|
9359
9359
|
at,
|
|
9360
9360
|
(Te) => {
|
|
9361
9361
|
var Xe;
|
|
9362
|
-
((Xe =
|
|
9362
|
+
((Xe = y().split(".").pop()) == null ? void 0 : Xe.toLowerCase()) === "akd" ? Te(ot) : Te(Me, !1);
|
|
9363
9363
|
},
|
|
9364
9364
|
!0
|
|
9365
9365
|
);
|
|
@@ -9370,7 +9370,7 @@ function Za(t, e) {
|
|
|
9370
9370
|
He,
|
|
9371
9371
|
(je) => {
|
|
9372
9372
|
var xe;
|
|
9373
|
-
((xe =
|
|
9373
|
+
((xe = y().split(".").pop()) == null ? void 0 : xe.toLowerCase()) === "pptx" ? je(Ve) : je(Jt, !1);
|
|
9374
9374
|
},
|
|
9375
9375
|
!0
|
|
9376
9376
|
);
|
|
@@ -9381,7 +9381,7 @@ function Za(t, e) {
|
|
|
9381
9381
|
Z,
|
|
9382
9382
|
(j) => {
|
|
9383
9383
|
var ve;
|
|
9384
|
-
((ve =
|
|
9384
|
+
((ve = y().split(".").pop()) == null ? void 0 : ve.toLowerCase()) === "xlsx" ? j(Se) : j(Re, !1);
|
|
9385
9385
|
},
|
|
9386
9386
|
!0
|
|
9387
9387
|
);
|
|
@@ -9392,7 +9392,7 @@ function Za(t, e) {
|
|
|
9392
9392
|
Ae,
|
|
9393
9393
|
(L) => {
|
|
9394
9394
|
var V;
|
|
9395
|
-
((V =
|
|
9395
|
+
((V = y().split(".").pop()) == null ? void 0 : V.toLowerCase()) === "docx" ? L(Oe) : L(A, !1);
|
|
9396
9396
|
},
|
|
9397
9397
|
!0
|
|
9398
9398
|
);
|
|
@@ -9403,7 +9403,7 @@ function Za(t, e) {
|
|
|
9403
9403
|
X,
|
|
9404
9404
|
(Ee) => {
|
|
9405
9405
|
var Ie;
|
|
9406
|
-
((Ie =
|
|
9406
|
+
((Ie = y().split(".").pop()) == null ? void 0 : Ie.toLowerCase()) === "pdf" ? Ee(pe) : Ee($e, !1);
|
|
9407
9407
|
},
|
|
9408
9408
|
!0
|
|
9409
9409
|
);
|
|
@@ -9411,9 +9411,9 @@ function Za(t, e) {
|
|
|
9411
9411
|
k(Q, J);
|
|
9412
9412
|
};
|
|
9413
9413
|
B(
|
|
9414
|
-
|
|
9414
|
+
Je,
|
|
9415
9415
|
(Q) => {
|
|
9416
|
-
W() ? Q(
|
|
9416
|
+
W() ? Q(H) : Q(G, !1);
|
|
9417
9417
|
},
|
|
9418
9418
|
!0
|
|
9419
9419
|
);
|
|
@@ -9424,41 +9424,41 @@ function Za(t, e) {
|
|
|
9424
9424
|
p(s)[p(Fe)] ? _e(ue) : _e(we, !1);
|
|
9425
9425
|
});
|
|
9426
9426
|
}
|
|
9427
|
-
var ye = q(Ne, 2),
|
|
9428
|
-
|
|
9429
|
-
var Ce = q(
|
|
9427
|
+
var ye = q(Ne, 2), We = C(ye), pt = C(We, !0);
|
|
9428
|
+
z(We);
|
|
9429
|
+
var Ce = q(We, 2);
|
|
9430
9430
|
{
|
|
9431
9431
|
var ze = (_e) => {
|
|
9432
|
-
var De = Iv(),
|
|
9433
|
-
|
|
9432
|
+
var De = Iv(), Je = C(De, !0);
|
|
9433
|
+
z(De), F(() => Le(Je, O() !== "" ? O() : "root /")), k(_e, De);
|
|
9434
9434
|
};
|
|
9435
9435
|
B(Ce, (_e) => {
|
|
9436
9436
|
W() || _e(ze);
|
|
9437
9437
|
});
|
|
9438
9438
|
}
|
|
9439
|
-
|
|
9440
|
-
(_e, De,
|
|
9441
|
-
Be(N, `${`dropdown-option ${i() < 50 && he() !== "suite" ? "common" : ""}` ?? ""} svelte-1imtnoy`), M(N, "aria-label", _e), M(N, "title", De), N.disabled = p(s)[p(Fe)], Le(pt,
|
|
9439
|
+
z(ye), z(N), F(
|
|
9440
|
+
(_e, De, Je) => {
|
|
9441
|
+
Be(N, `${`dropdown-option ${i() < 50 && he() !== "suite" ? "common" : ""}` ?? ""} svelte-1imtnoy`), M(N, "aria-label", _e), M(N, "title", De), N.disabled = p(s)[p(Fe)], Le(pt, Je);
|
|
9442
9442
|
},
|
|
9443
9443
|
[
|
|
9444
9444
|
() => /* @__PURE__ */ rs(),
|
|
9445
9445
|
() => `${W() ? pn(he()).name : /* @__PURE__ */ rs()}`,
|
|
9446
|
-
() => W() ?
|
|
9446
|
+
() => W() ? y().split(".")[0] : y()
|
|
9447
9447
|
]
|
|
9448
9448
|
), k(D, N);
|
|
9449
|
-
}),
|
|
9449
|
+
}), z(E), k(_, E);
|
|
9450
9450
|
};
|
|
9451
9451
|
B(S, (_) => {
|
|
9452
9452
|
n() && _($);
|
|
9453
9453
|
});
|
|
9454
9454
|
}
|
|
9455
|
-
|
|
9455
|
+
z(h), F((_) => Le(b, `${_ ?? ""} (${r().length ?? ""})`), [() => /* @__PURE__ */ ku()]), k(f, h);
|
|
9456
9456
|
};
|
|
9457
9457
|
B(u, (f) => {
|
|
9458
9458
|
r().length > 0 && f(d);
|
|
9459
9459
|
});
|
|
9460
9460
|
}
|
|
9461
|
-
return
|
|
9461
|
+
return z(c), k(t, c), ee({
|
|
9462
9462
|
get isDropdownOpen() {
|
|
9463
9463
|
return n();
|
|
9464
9464
|
},
|
|
@@ -9510,8 +9510,8 @@ function Ga(t, e) {
|
|
|
9510
9510
|
const f = async () => {
|
|
9511
9511
|
await cl(), p(l) && (p(l).scrollTop = p(l).scrollHeight);
|
|
9512
9512
|
}, h = (w) => {
|
|
9513
|
-
$i.getAudio(w.content, a()).then((
|
|
9514
|
-
x(c, P(new Audio(
|
|
9513
|
+
$i.getAudio(w.content, a()).then((y) => {
|
|
9514
|
+
x(c, P(new Audio(y))), p(c).play(), x(u, !0), p(c).onended = () => {
|
|
9515
9515
|
x(u, !1);
|
|
9516
9516
|
};
|
|
9517
9517
|
});
|
|
@@ -9520,33 +9520,33 @@ function Ga(t, e) {
|
|
|
9520
9520
|
s(), n(), f();
|
|
9521
9521
|
});
|
|
9522
9522
|
var m = Yv(), b = q(C(m), 2);
|
|
9523
|
-
Ye(b, 17, n, Ue, (w,
|
|
9524
|
-
var O = qv(),
|
|
9525
|
-
ni(N, () => p(
|
|
9523
|
+
Ye(b, 17, n, Ue, (w, y, I) => {
|
|
9524
|
+
var O = qv(), U = C(O), W = C(U), he = C(W), N = C(he);
|
|
9525
|
+
ni(N, () => p(y).html ?? fe.parseInline(p(y).content), !1, !1), z(he), z(W);
|
|
9526
9526
|
var le = q(W, 2);
|
|
9527
9527
|
{
|
|
9528
9528
|
var Pe = (ue) => {
|
|
9529
9529
|
var we = be(), ye = ge(we);
|
|
9530
9530
|
{
|
|
9531
|
-
var
|
|
9531
|
+
var We = (Ce) => {
|
|
9532
9532
|
var ze = Ov();
|
|
9533
9533
|
ze.__click = [Fv, c, u], F((_e) => M(ze, "title", _e), [() => /* @__PURE__ */ Su()]), k(Ce, ze);
|
|
9534
9534
|
}, pt = (Ce) => {
|
|
9535
9535
|
var ze = Dv();
|
|
9536
|
-
ze.__click = [Mv, h,
|
|
9536
|
+
ze.__click = [Mv, h, y], F((_e) => M(ze, "title", _e), [() => /* @__PURE__ */ $u()]), k(Ce, ze);
|
|
9537
9537
|
};
|
|
9538
9538
|
B(ye, (Ce) => {
|
|
9539
|
-
p(u) ? Ce(
|
|
9539
|
+
p(u) ? Ce(We) : Ce(pt, !1);
|
|
9540
9540
|
});
|
|
9541
9541
|
}
|
|
9542
9542
|
k(ue, we);
|
|
9543
9543
|
};
|
|
9544
9544
|
B(le, (ue) => {
|
|
9545
|
-
p(
|
|
9545
|
+
p(y).content != "" && !p(y).sentByUser && ue(Pe);
|
|
9546
9546
|
});
|
|
9547
9547
|
}
|
|
9548
|
-
|
|
9549
|
-
var Fe = q(
|
|
9548
|
+
z(U);
|
|
9549
|
+
var Fe = q(U, 2);
|
|
9550
9550
|
{
|
|
9551
9551
|
var Ne = (ue) => {
|
|
9552
9552
|
Za(ue, {
|
|
@@ -9554,10 +9554,10 @@ function Ga(t, e) {
|
|
|
9554
9554
|
return p(d);
|
|
9555
9555
|
},
|
|
9556
9556
|
get attachmentList() {
|
|
9557
|
-
return p(
|
|
9557
|
+
return p(y).attachments;
|
|
9558
9558
|
},
|
|
9559
9559
|
set attachmentList(we) {
|
|
9560
|
-
p(
|
|
9560
|
+
p(y).attachments = we;
|
|
9561
9561
|
},
|
|
9562
9562
|
get userLevel() {
|
|
9563
9563
|
return o();
|
|
@@ -9568,16 +9568,16 @@ function Ga(t, e) {
|
|
|
9568
9568
|
});
|
|
9569
9569
|
};
|
|
9570
9570
|
B(Fe, (ue) => {
|
|
9571
|
-
p(
|
|
9571
|
+
p(y).attachments && p(y).attachments.length > 0 && p(y).sentByUser == !1 && ue(Ne);
|
|
9572
9572
|
});
|
|
9573
9573
|
}
|
|
9574
|
-
|
|
9574
|
+
z(O), F(() => Be(W, Xn(p(y).sentByUser ? "message-sent" : "message-received"), "svelte-1qmk846")), k(w, O);
|
|
9575
9575
|
});
|
|
9576
9576
|
var S = q(b, 2);
|
|
9577
9577
|
{
|
|
9578
9578
|
var $ = (w) => {
|
|
9579
|
-
var
|
|
9580
|
-
ni(
|
|
9579
|
+
var y = Nv(), I = C(y), O = C(I), U = C(O);
|
|
9580
|
+
ni(U, s, !1, !1), z(O), z(I);
|
|
9581
9581
|
var W = q(I, 2);
|
|
9582
9582
|
{
|
|
9583
9583
|
var he = (N) => {
|
|
@@ -9592,28 +9592,28 @@ function Ga(t, e) {
|
|
|
9592
9592
|
r() && N(he);
|
|
9593
9593
|
});
|
|
9594
9594
|
}
|
|
9595
|
-
y
|
|
9595
|
+
z(y), k(w, y);
|
|
9596
9596
|
}, _ = (w) => {
|
|
9597
|
-
var
|
|
9597
|
+
var y = be(), I = ge(y);
|
|
9598
9598
|
{
|
|
9599
|
-
var O = (
|
|
9599
|
+
var O = (U) => {
|
|
9600
9600
|
var W = Bv(), he = C(W);
|
|
9601
9601
|
Zn(he, {
|
|
9602
9602
|
icon: "svg-spinners:3-dots-bounce",
|
|
9603
9603
|
width: "25px",
|
|
9604
9604
|
height: "25px",
|
|
9605
9605
|
color: "white"
|
|
9606
|
-
}),
|
|
9606
|
+
}), z(W), k(U, W);
|
|
9607
9607
|
};
|
|
9608
9608
|
B(
|
|
9609
9609
|
I,
|
|
9610
|
-
(
|
|
9611
|
-
r() &&
|
|
9610
|
+
(U) => {
|
|
9611
|
+
r() && U(O);
|
|
9612
9612
|
},
|
|
9613
9613
|
!0
|
|
9614
9614
|
);
|
|
9615
9615
|
}
|
|
9616
|
-
k(w,
|
|
9616
|
+
k(w, y);
|
|
9617
9617
|
};
|
|
9618
9618
|
B(S, (w) => {
|
|
9619
9619
|
s().length > 0 ? w($) : w(_, !1);
|
|
@@ -9622,14 +9622,14 @@ function Ga(t, e) {
|
|
|
9622
9622
|
var E = q(S, 2);
|
|
9623
9623
|
{
|
|
9624
9624
|
var D = (w) => {
|
|
9625
|
-
var
|
|
9626
|
-
y
|
|
9625
|
+
var y = Uv(), I = C(y, !0);
|
|
9626
|
+
z(y), F(() => Le(I, i())), k(w, y);
|
|
9627
9627
|
};
|
|
9628
9628
|
B(E, (w) => {
|
|
9629
9629
|
i() != "" && w(D);
|
|
9630
9630
|
});
|
|
9631
9631
|
}
|
|
9632
|
-
return
|
|
9632
|
+
return z(m), ha(m, (w) => x(l, w), () => p(l)), _n(3, m, () => Ar, () => ({ duration: 300, delay: 100 })), k(t, m), ee({
|
|
9633
9633
|
get messages() {
|
|
9634
9634
|
return n();
|
|
9635
9635
|
},
|
|
@@ -9684,10 +9684,10 @@ ne(
|
|
|
9684
9684
|
!0
|
|
9685
9685
|
);
|
|
9686
9686
|
const Zv = async (t) => {
|
|
9687
|
-
const e = await fetch(`${
|
|
9687
|
+
const e = await fetch(`${Y.getUrl()}/chat/${t}`, {
|
|
9688
9688
|
headers: {
|
|
9689
|
-
akstoken:
|
|
9690
|
-
envid:
|
|
9689
|
+
akstoken: Y.getToken(),
|
|
9690
|
+
envid: Y.getEnvironmentId(),
|
|
9691
9691
|
"ngrok-skip-browser-warning": "true"
|
|
9692
9692
|
}
|
|
9693
9693
|
});
|
|
@@ -9696,10 +9696,10 @@ const Zv = async (t) => {
|
|
|
9696
9696
|
const n = await e.json();
|
|
9697
9697
|
return tn.fromJson(n);
|
|
9698
9698
|
}, Gv = async () => {
|
|
9699
|
-
const t = await fetch(`${
|
|
9699
|
+
const t = await fetch(`${Y.getUrl()}/chat`, {
|
|
9700
9700
|
headers: {
|
|
9701
|
-
akstoken:
|
|
9702
|
-
envid:
|
|
9701
|
+
akstoken: Y.getToken(),
|
|
9702
|
+
envid: Y.getEnvironmentId(),
|
|
9703
9703
|
"ngrok-skip-browser-warning": "true"
|
|
9704
9704
|
}
|
|
9705
9705
|
});
|
|
@@ -9707,11 +9707,11 @@ const Zv = async (t) => {
|
|
|
9707
9707
|
throw new Error("Failed to fetch chats");
|
|
9708
9708
|
return (await t.json()).map((n) => tn.fromJson(n));
|
|
9709
9709
|
}, Wv = async () => {
|
|
9710
|
-
const t = await fetch(`${
|
|
9710
|
+
const t = await fetch(`${Y.getUrl()}/chat`, {
|
|
9711
9711
|
method: "POST",
|
|
9712
9712
|
headers: {
|
|
9713
|
-
akstoken:
|
|
9714
|
-
envid:
|
|
9713
|
+
akstoken: Y.getToken(),
|
|
9714
|
+
envid: Y.getEnvironmentId(),
|
|
9715
9715
|
"ngrok-skip-browser-warning": "true"
|
|
9716
9716
|
}
|
|
9717
9717
|
});
|
|
@@ -9723,7 +9723,7 @@ const Zv = async (t) => {
|
|
|
9723
9723
|
let l, c = !1;
|
|
9724
9724
|
try {
|
|
9725
9725
|
await Wa(t, e, i);
|
|
9726
|
-
const d =
|
|
9726
|
+
const d = Y.getUrl().replace(/^http/, "ws"), f = `${n ? "forge/" : ""}chat/${t}/message${r ? "?kb=true" : "?collectionName=" + n}`, h = f.includes("?") ? "&" : "?", m = `${d}/${f}${h}akstoken=${Y.getToken()}&envid=${Y.getEnvironmentId()}`;
|
|
9727
9727
|
l = new WebSocket(m), o && o.addEventListener("abort", () => {
|
|
9728
9728
|
l && l.readyState === WebSocket.OPEN && (l.close(), c = !0);
|
|
9729
9729
|
}), await new Promise((b, S) => {
|
|
@@ -9757,34 +9757,34 @@ const Zv = async (t) => {
|
|
|
9757
9757
|
}
|
|
9758
9758
|
return c;
|
|
9759
9759
|
}, Vv = async (t, e) => {
|
|
9760
|
-
if (!(await fetch(`${
|
|
9760
|
+
if (!(await fetch(`${Y.getUrl()}/chat/${t}/title`, {
|
|
9761
9761
|
method: "POST",
|
|
9762
9762
|
headers: {
|
|
9763
9763
|
"Content-Type": "application/json",
|
|
9764
|
-
akstoken:
|
|
9765
|
-
envid:
|
|
9764
|
+
akstoken: Y.getToken(),
|
|
9765
|
+
envid: Y.getEnvironmentId(),
|
|
9766
9766
|
"ngrok-skip-browser-warning": "true"
|
|
9767
9767
|
},
|
|
9768
9768
|
body: JSON.stringify({ title: e })
|
|
9769
9769
|
})).ok)
|
|
9770
9770
|
throw new Error("Failed to change title");
|
|
9771
9771
|
}, Xv = async (t) => {
|
|
9772
|
-
if (!(await fetch(`${
|
|
9772
|
+
if (!(await fetch(`${Y.getUrl()}/chat/${t}`, {
|
|
9773
9773
|
method: "DELETE",
|
|
9774
9774
|
headers: {
|
|
9775
|
-
akstoken:
|
|
9776
|
-
envid:
|
|
9775
|
+
akstoken: Y.getToken(),
|
|
9776
|
+
envid: Y.getEnvironmentId(),
|
|
9777
9777
|
"ngrok-skip-browser-warning": "true"
|
|
9778
9778
|
}
|
|
9779
9779
|
})).ok)
|
|
9780
9780
|
throw new Error("Failed to delete chat");
|
|
9781
9781
|
}, Wa = async (t, e, n) => {
|
|
9782
|
-
if (!(await fetch(`${
|
|
9782
|
+
if (!(await fetch(`${Y.getUrl()}/chat/${t}/message`, {
|
|
9783
9783
|
method: "POST",
|
|
9784
9784
|
headers: {
|
|
9785
9785
|
"Content-Type": "application/json",
|
|
9786
|
-
akstoken:
|
|
9787
|
-
envid:
|
|
9786
|
+
akstoken: Y.getToken(),
|
|
9787
|
+
envid: Y.getEnvironmentId(),
|
|
9788
9788
|
"ngrok-skip-browser-warning": "true"
|
|
9789
9789
|
},
|
|
9790
9790
|
body: JSON.stringify({
|
|
@@ -9828,24 +9828,24 @@ function Ja(t, e) {
|
|
|
9828
9828
|
{
|
|
9829
9829
|
var d = (f) => {
|
|
9830
9830
|
var h = tg(), m = C(h), b = C(m, !0);
|
|
9831
|
-
|
|
9831
|
+
z(m);
|
|
9832
9832
|
var S = q(m, 2);
|
|
9833
9833
|
Ye(S, 21, i, Ue, ($, _) => {
|
|
9834
9834
|
var E = eg(), D = C(E);
|
|
9835
9835
|
D.__click = [Qv, r, _, o];
|
|
9836
|
-
var w = C(D),
|
|
9837
|
-
|
|
9836
|
+
var w = C(D), y = C(w, !0);
|
|
9837
|
+
z(w), z(D);
|
|
9838
9838
|
var I = q(D, 2);
|
|
9839
|
-
I.__click = [Kv, l, _],
|
|
9840
|
-
M(E, "style", r()._id === p(_)._id ? "background: #295dcf; cursor: default;" : ""), Le(
|
|
9839
|
+
I.__click = [Kv, l, _], z(E), F(() => {
|
|
9840
|
+
M(E, "style", r()._id === p(_)._id ? "background: #295dcf; cursor: default;" : ""), Le(y, p(_).title);
|
|
9841
9841
|
}), k($, E);
|
|
9842
|
-
}),
|
|
9842
|
+
}), z(S), z(h), F(($) => Le(b, $), [() => /* @__PURE__ */ ka()]), _n(3, h, () => Hl, () => ({ duration: 600 })), k(f, h);
|
|
9843
9843
|
};
|
|
9844
9844
|
B(u, (f) => {
|
|
9845
9845
|
n() && f(d);
|
|
9846
9846
|
});
|
|
9847
9847
|
}
|
|
9848
|
-
return
|
|
9848
|
+
return z(c), k(t, c), ee({
|
|
9849
9849
|
get showHistory() {
|
|
9850
9850
|
return n();
|
|
9851
9851
|
},
|
|
@@ -9903,21 +9903,21 @@ const hg = {
|
|
|
9903
9903
|
function Va(t, e) {
|
|
9904
9904
|
K(e, !0), se(t, hg);
|
|
9905
9905
|
let n = re(!1), r = re(!1), i = re("it"), s = re(""), a = re(0), o = re(null), l = re(P([])), c = re(P([])), u = re(!1), d = re(!0), f = re(P(new Audio())), h = re(!0), m = re(""), b = re(""), S = re(null);
|
|
9906
|
-
const $ = (
|
|
9907
|
-
x(b, p(b) +
|
|
9906
|
+
const $ = (H) => {
|
|
9907
|
+
x(b, p(b) + H);
|
|
9908
9908
|
};
|
|
9909
|
-
let _ = re(""), E = re(!0), D = re(P({})), w = re(!0),
|
|
9909
|
+
let _ = re(""), E = re(!0), D = re(P({})), w = re(!0), y = re(!1);
|
|
9910
9910
|
Ht(() => {
|
|
9911
|
-
p(
|
|
9911
|
+
p(y) && Y.setForgeButtonsPinned(p(w));
|
|
9912
9912
|
});
|
|
9913
|
-
const I = async (
|
|
9913
|
+
const I = async (H, G, Q, J = []) => {
|
|
9914
9914
|
if (x(m, ""), x(u, !0), x(c, P([
|
|
9915
9915
|
...p(c),
|
|
9916
|
-
new Yt((/* @__PURE__ */ new Date()).getTime(), !0,
|
|
9916
|
+
new Yt((/* @__PURE__ */ new Date()).getTime(), !0, H, H)
|
|
9917
9917
|
])), p(c).length == 2 && (x(o, P(await Fn.newChat())), x(l, P([...p(l), p(o)])), p(o).messages = p(c)), p(o)) {
|
|
9918
9918
|
x(S, P(new AbortController()));
|
|
9919
9919
|
try {
|
|
9920
|
-
let X = await Fn.sendMessage(p(o)._id,
|
|
9920
|
+
let X = await Fn.sendMessage(p(o)._id, H, G, Q, J, $, p(i), p(S).signal);
|
|
9921
9921
|
if (console.log(X), X) {
|
|
9922
9922
|
x(c, P([
|
|
9923
9923
|
...p(c),
|
|
@@ -9950,9 +9950,9 @@ function Va(t, e) {
|
|
|
9950
9950
|
Ht(() => {
|
|
9951
9951
|
p(h) && p(f).pause();
|
|
9952
9952
|
});
|
|
9953
|
-
const
|
|
9954
|
-
p(n) && Fn.getChats().then((
|
|
9955
|
-
x(l, P(
|
|
9953
|
+
const U = () => {
|
|
9954
|
+
p(n) && Fn.getChats().then((H) => {
|
|
9955
|
+
x(l, P(H.sort((G, Q) => {
|
|
9956
9956
|
if (G.messages.length === 0 && Q.messages.length === 0) return 0;
|
|
9957
9957
|
if (G.messages.length === 0) return 1;
|
|
9958
9958
|
if (Q.messages.length === 0) return -1;
|
|
@@ -9962,13 +9962,13 @@ function Va(t, e) {
|
|
|
9962
9962
|
});
|
|
9963
9963
|
};
|
|
9964
9964
|
Ht(() => {
|
|
9965
|
-
p(o) && x(c, P(p(o).messages)),
|
|
9965
|
+
p(o) && x(c, P(p(o).messages)), U();
|
|
9966
9966
|
});
|
|
9967
9967
|
let W = !1, he, N, le, Pe;
|
|
9968
|
-
function Fe(
|
|
9969
|
-
const G =
|
|
9968
|
+
function Fe(H) {
|
|
9969
|
+
const G = H.target;
|
|
9970
9970
|
if (G.closest(".resize-handle") || G.classList.contains("resize-border-left") || G.classList.contains("resize-border-top")) {
|
|
9971
|
-
|
|
9971
|
+
H.preventDefault(), H.stopPropagation(), W = !0, he = H.clientX, N = H.clientY;
|
|
9972
9972
|
const J = document.querySelector(".chat");
|
|
9973
9973
|
le = J.offsetWidth, Pe = J.offsetHeight, J.classList.add("no-select");
|
|
9974
9974
|
const X = G.closest(".resize-handle"), pe = G.classList.contains("resize-border-left"), $e = G.classList.contains("resize-border-top"), Ee = (Ae) => {
|
|
@@ -10003,25 +10003,25 @@ function Va(t, e) {
|
|
|
10003
10003
|
x(o, P(new tn("", "", "", /* @__PURE__ */ ba(), [
|
|
10004
10004
|
Yt.firstMessage(p(i), p(s), p(_))
|
|
10005
10005
|
]))), x(m, "");
|
|
10006
|
-
}, we = (
|
|
10007
|
-
p(_) !==
|
|
10006
|
+
}, we = (H) => {
|
|
10007
|
+
p(_) !== H && (x(E, !1), x(_, P(H)), ue()), Ne(), x(D, P({}));
|
|
10008
10008
|
};
|
|
10009
10009
|
Ir(async () => {
|
|
10010
10010
|
try {
|
|
10011
10011
|
x(i, P(ie()));
|
|
10012
|
-
const
|
|
10013
|
-
x(s, P(
|
|
10012
|
+
const H = await Gt.getUsername();
|
|
10013
|
+
x(s, P(H));
|
|
10014
10014
|
const G = await Gt.getUserLevel();
|
|
10015
10015
|
x(a, P(G));
|
|
10016
10016
|
const Q = Yt.firstMessage(p(i), p(s), p(_));
|
|
10017
|
-
x(c, P([Q])), x(o, P(new tn("", "", "", "New Chat", [Q]))), x(w, P(
|
|
10018
|
-
} catch (
|
|
10019
|
-
console.error("Failed to load username",
|
|
10017
|
+
x(c, P([Q])), x(o, P(new tn("", "", "", "New Chat", [Q]))), x(w, P(Y.getForgeButtonsPinned())), x(y, !0), x(d, !1);
|
|
10018
|
+
} catch (H) {
|
|
10019
|
+
console.error("Failed to load username", H), x(m, P(/* @__PURE__ */ Eu())), x(d, !1);
|
|
10020
10020
|
}
|
|
10021
10021
|
});
|
|
10022
|
-
var ye = fg(),
|
|
10022
|
+
var ye = fg(), We = C(ye);
|
|
10023
10023
|
{
|
|
10024
|
-
var pt = (
|
|
10024
|
+
var pt = (H) => {
|
|
10025
10025
|
var G = og();
|
|
10026
10026
|
G.__mousedown = Fe;
|
|
10027
10027
|
var Q = C(G);
|
|
@@ -10033,7 +10033,7 @@ function Va(t, e) {
|
|
|
10033
10033
|
width: "50px",
|
|
10034
10034
|
height: "50px",
|
|
10035
10035
|
color: "white"
|
|
10036
|
-
}),
|
|
10036
|
+
}), z($e), k(pe, $e);
|
|
10037
10037
|
}, X = (pe) => {
|
|
10038
10038
|
var $e = be(), Ee = ge($e);
|
|
10039
10039
|
{
|
|
@@ -10075,7 +10075,7 @@ function Va(t, e) {
|
|
|
10075
10075
|
vFlip: !0,
|
|
10076
10076
|
color: "white",
|
|
10077
10077
|
style: "margin: 2px 0 0 2px;"
|
|
10078
|
-
}),
|
|
10078
|
+
}), z(L);
|
|
10079
10079
|
var Z = q(L, 2);
|
|
10080
10080
|
_a(Z, {
|
|
10081
10081
|
newChat: ue,
|
|
@@ -10211,13 +10211,13 @@ function Va(t, e) {
|
|
|
10211
10211
|
p(d) ? pe(J) : pe(X, !1);
|
|
10212
10212
|
});
|
|
10213
10213
|
}
|
|
10214
|
-
|
|
10214
|
+
z(G), _n(3, G, () => Yl, () => ({ y: 50, duration: 500 })), k(H, G);
|
|
10215
10215
|
};
|
|
10216
|
-
B(
|
|
10217
|
-
p(n) &&
|
|
10216
|
+
B(We, (H) => {
|
|
10217
|
+
p(n) && H(pt);
|
|
10218
10218
|
});
|
|
10219
10219
|
}
|
|
10220
|
-
var Ce = q(
|
|
10220
|
+
var Ce = q(We, 2);
|
|
10221
10221
|
Ce.__click = [
|
|
10222
10222
|
ig,
|
|
10223
10223
|
E,
|
|
@@ -10227,20 +10227,20 @@ function Va(t, e) {
|
|
|
10227
10227
|
D
|
|
10228
10228
|
];
|
|
10229
10229
|
var ze = q(C(Ce)), _e = C(ze, !0);
|
|
10230
|
-
|
|
10230
|
+
z(ze), z(Ce);
|
|
10231
10231
|
var De = q(Ce, 2);
|
|
10232
10232
|
{
|
|
10233
|
-
var
|
|
10233
|
+
var Je = (H) => {
|
|
10234
10234
|
var G = dg(), Q = C(G);
|
|
10235
10235
|
Q.__click = [lg, w];
|
|
10236
10236
|
var J = q(Q, 2), X = C(J), pe = C(X, !0);
|
|
10237
|
-
|
|
10237
|
+
z(X);
|
|
10238
10238
|
var $e = q(X, 2);
|
|
10239
|
-
$e.__click = [cg, we],
|
|
10239
|
+
$e.__click = [cg, we], z(J);
|
|
10240
10240
|
var Ee = q(J, 2), Ie = C(Ee), Ae = C(Ie, !0);
|
|
10241
|
-
|
|
10241
|
+
z(Ie);
|
|
10242
10242
|
var Oe = q(Ie, 2);
|
|
10243
|
-
Oe.__click = [ug, we],
|
|
10243
|
+
Oe.__click = [ug, we], z(Ee), z(G), F(
|
|
10244
10244
|
(A, L) => {
|
|
10245
10245
|
te(G, "visible", p(w)), M(Q, "aria-label", p(w) ? "unpin forge buttons" : "pin forge buttons"), te(Q, "pinned", p(w)), Le(pe, A), Le(Ae, L);
|
|
10246
10246
|
},
|
|
@@ -10248,15 +10248,15 @@ function Va(t, e) {
|
|
|
10248
10248
|
() => /* @__PURE__ */ ga(),
|
|
10249
10249
|
() => /* @__PURE__ */ wa()
|
|
10250
10250
|
]
|
|
10251
|
-
), _n(3, G, () => Ar), k(
|
|
10251
|
+
), _n(3, G, () => Ar), k(H, G);
|
|
10252
10252
|
};
|
|
10253
|
-
B(De, (
|
|
10254
|
-
p(n) ||
|
|
10253
|
+
B(De, (H) => {
|
|
10254
|
+
p(n) || H(Je);
|
|
10255
10255
|
});
|
|
10256
10256
|
}
|
|
10257
|
-
|
|
10258
|
-
(
|
|
10259
|
-
Be(Ce, `${`btn ${p(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1hgblks`), Le(_e,
|
|
10257
|
+
z(ye), F(
|
|
10258
|
+
(H) => {
|
|
10259
|
+
Be(Ce, `${`btn ${p(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1hgblks`), Le(_e, H);
|
|
10260
10260
|
},
|
|
10261
10261
|
[() => /* @__PURE__ */ au()]
|
|
10262
10262
|
), k(t, ye), ee();
|