@harbour-enterprises/superdoc 0.11.20 → 0.11.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/super-editor.es-Bk6dxWQa.cjs +452 -0
- package/dist/chunks/{super-editor.es-Du1kHoDA.es.js → super-editor.es-Lj84Zq0h.es.js} +7085 -7019
- package/dist/composables/use-ai.d.ts.map +1 -1
- package/dist/style.css +33 -32
- package/dist/super-editor/ai-writer.es.js +135 -135
- package/dist/super-editor/chunks/{converter-CwMvN1V7.js → converter-De1X-4ue.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CW3YnwaW.js → docx-zipper-CcmKEgiG.js} +1 -1
- package/dist/super-editor/chunks/{editor-CR8riiuL.js → editor-usrJ_Hxe.js} +4787 -4722
- package/dist/super-editor/chunks/{toolbar-BZ4Xi416.js → toolbar-C7Ii-GgO.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/ai/ai-constants.d.ts +1 -0
- package/dist/super-editor/extensions/ai/ai-constants.d.ts.map +1 -1
- package/dist/super-editor/extensions/ai/ai-nodes.d.ts +2 -0
- package/dist/super-editor/extensions/ai/ai-nodes.d.ts.map +1 -0
- package/dist/super-editor/extensions/ai/ai-plugin.d.ts.map +1 -1
- package/dist/super-editor/extensions/ai/index.d.ts +1 -0
- package/dist/super-editor/extensions/index.d.ts +2 -1
- package/dist/super-editor/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +9 -9
- package/dist/superdoc.cjs +22 -22
- package/dist/superdoc.es.js +734 -715
- package/dist/superdoc.umd.js +5587 -5499
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-DvREqt6O.cjs +0 -461
package/dist/superdoc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as Ib,
|
|
3
|
-
import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as
|
|
1
|
+
import { f as md, g as yd, c as bd, e as jo, A as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-Lj84Zq0h.es.js";
|
|
2
|
+
import { O as Ib, z as Cb, q as fb } from "./chunks/super-editor.es-Lj84Zq0h.es.js";
|
|
3
|
+
import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as Fe, a1 as kd, N as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, K as Us, O as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, R as GA, m as Ct, E as mi, I as ms, C as re, V as Ld, S as Gd, W as Td, J as qi, P as Es, G as ar, Q as Ud, H as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, B as ri, e as Ze, v as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-DXpzqXur.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-DO3il9iI.es.js";
|
|
5
5
|
import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
6
6
|
import { E as eg } from "./chunks/eventemitter3-CRfwKE7Z.es.js";
|
|
@@ -1147,7 +1147,7 @@ function QI(n, t) {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
});
|
|
1149
1149
|
}, !0), t._customProperties.forEach((g) => {
|
|
1150
|
-
wt(() =>
|
|
1150
|
+
wt(() => Fe(t[g]), (u, I) => {
|
|
1151
1151
|
i.notifyComponentUpdate(), i.sendInspectorState(Kt), ds && i.addTimelineEvent({
|
|
1152
1152
|
layerId: Hn,
|
|
1153
1153
|
event: {
|
|
@@ -1316,8 +1316,8 @@ function nc(n, t, i, r) {
|
|
|
1316
1316
|
) : Xo(i.state.value[n]);
|
|
1317
1317
|
return pi(Q, c, Object.keys(g || {}).reduce((y, b) => (Ge.env.NODE_ENV !== "production" && b in Q && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${b}" in store "${n}".`), y[b] = ui(ae(() => {
|
|
1318
1318
|
Vs(i);
|
|
1319
|
-
const
|
|
1320
|
-
return g[b].call(
|
|
1319
|
+
const S = i._s.get(n);
|
|
1320
|
+
return g[b].call(S, S);
|
|
1321
1321
|
})), y), {}));
|
|
1322
1322
|
}
|
|
1323
1323
|
return I = CA(n, f, t, i, r, !0), I;
|
|
@@ -1329,24 +1329,24 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1329
1329
|
throw new Error("Pinia destroyed");
|
|
1330
1330
|
const I = { deep: !0 };
|
|
1331
1331
|
Ge.env.NODE_ENV !== "production" && (I.onTrigger = (L) => {
|
|
1332
|
-
f ?
|
|
1332
|
+
f ? S = L : f == !1 && !D._hotUpdating && (Array.isArray(S) ? S.push(L) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1333
1333
|
});
|
|
1334
|
-
let f, Q, y = [], b = [],
|
|
1334
|
+
let f, Q, y = [], b = [], S;
|
|
1335
1335
|
const w = r.state.value[n];
|
|
1336
1336
|
!c && !w && (Ge.env.NODE_ENV === "production" || !A) && (r.state.value[n] = {});
|
|
1337
1337
|
const k = W({});
|
|
1338
1338
|
let M;
|
|
1339
1339
|
function F(L) {
|
|
1340
1340
|
let P;
|
|
1341
|
-
f = Q = !1, Ge.env.NODE_ENV !== "production" && (
|
|
1341
|
+
f = Q = !1, Ge.env.NODE_ENV !== "production" && (S = []), typeof L == "function" ? (L(r.state.value[n]), P = {
|
|
1342
1342
|
type: Yi.patchFunction,
|
|
1343
1343
|
storeId: n,
|
|
1344
|
-
events:
|
|
1344
|
+
events: S
|
|
1345
1345
|
}) : (IA(r.state.value[n], L), P = {
|
|
1346
1346
|
type: Yi.patchObject,
|
|
1347
1347
|
payload: L,
|
|
1348
1348
|
storeId: n,
|
|
1349
|
-
events:
|
|
1349
|
+
events: S
|
|
1350
1350
|
});
|
|
1351
1351
|
const K = M = Symbol();
|
|
1352
1352
|
qt().then(() => {
|
|
@@ -1382,13 +1382,13 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1382
1382
|
cs(b, {
|
|
1383
1383
|
args: V,
|
|
1384
1384
|
name: K[Ya],
|
|
1385
|
-
store:
|
|
1385
|
+
store: D,
|
|
1386
1386
|
after: ee,
|
|
1387
1387
|
onError: te
|
|
1388
1388
|
});
|
|
1389
1389
|
let se;
|
|
1390
1390
|
try {
|
|
1391
|
-
se = L.apply(this && this.$id === n ? this :
|
|
1391
|
+
se = L.apply(this && this.$id === n ? this : D, V);
|
|
1392
1392
|
} catch (ne) {
|
|
1393
1393
|
throw cs(q, ne), ne;
|
|
1394
1394
|
}
|
|
@@ -1412,13 +1412,13 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1412
1412
|
(P.flush === "sync" ? Q : f) && L({
|
|
1413
1413
|
storeId: n,
|
|
1414
1414
|
type: Yi.direct,
|
|
1415
|
-
events:
|
|
1415
|
+
events: S
|
|
1416
1416
|
}, $);
|
|
1417
1417
|
}, pi({}, I, P)));
|
|
1418
1418
|
return K;
|
|
1419
1419
|
},
|
|
1420
1420
|
$dispose: J
|
|
1421
|
-
},
|
|
1421
|
+
}, D = Zt(Ge.env.NODE_ENV !== "production" || Ge.env.NODE_ENV !== "production" && Ge.env.NODE_ENV !== "test" && wn ? pi(
|
|
1422
1422
|
{
|
|
1423
1423
|
_hmrPayload: H,
|
|
1424
1424
|
_customProperties: ui(/* @__PURE__ */ new Set())
|
|
@@ -1428,7 +1428,7 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1428
1428
|
// must be added later
|
|
1429
1429
|
// setupStore
|
|
1430
1430
|
) : U);
|
|
1431
|
-
r._s.set(n,
|
|
1431
|
+
r._s.set(n, D);
|
|
1432
1432
|
const R = (r._a && r._a.runWithContext || bI)(() => r._e.run(() => (g = Vl()).run(() => t({ action: T }))));
|
|
1433
1433
|
for (const L in R) {
|
|
1434
1434
|
const P = R[L];
|
|
@@ -1443,7 +1443,7 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1443
1443
|
) : P, wn && (R._getters || // @ts-expect-error: same
|
|
1444
1444
|
(R._getters = ui([]))).push(L));
|
|
1445
1445
|
}
|
|
1446
|
-
if (pi(
|
|
1446
|
+
if (pi(D, R), pi(Vn(D), R), Object.defineProperty(D, "$state", {
|
|
1447
1447
|
get: () => Ge.env.NODE_ENV !== "production" && A ? k.value : r.state.value[n],
|
|
1448
1448
|
set: (L) => {
|
|
1449
1449
|
if (Ge.env.NODE_ENV !== "production" && A)
|
|
@@ -1452,34 +1452,34 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1452
1452
|
pi(P, L);
|
|
1453
1453
|
});
|
|
1454
1454
|
}
|
|
1455
|
-
}), Ge.env.NODE_ENV !== "production" && (
|
|
1456
|
-
|
|
1457
|
-
if (P in
|
|
1458
|
-
const K = L.$state[P], V =
|
|
1455
|
+
}), Ge.env.NODE_ENV !== "production" && (D._hotUpdate = ui((L) => {
|
|
1456
|
+
D._hotUpdating = !0, L._hmrPayload.state.forEach((P) => {
|
|
1457
|
+
if (P in D.$state) {
|
|
1458
|
+
const K = L.$state[P], V = D.$state[P];
|
|
1459
1459
|
typeof K == "object" && Zn(K) && Zn(V) ? Cg(K, V) : L.$state[P] = V;
|
|
1460
1460
|
}
|
|
1461
|
-
mr(
|
|
1462
|
-
}), Object.keys(
|
|
1463
|
-
P in L.$state || Ja(
|
|
1461
|
+
mr(D, P, dt(L.$state, P));
|
|
1462
|
+
}), Object.keys(D.$state).forEach((P) => {
|
|
1463
|
+
P in L.$state || Ja(D, P);
|
|
1464
1464
|
}), f = !1, Q = !1, r.state.value[n] = dt(L._hmrPayload, "hotState"), Q = !0, qt().then(() => {
|
|
1465
1465
|
f = !0;
|
|
1466
1466
|
});
|
|
1467
1467
|
for (const P in L._hmrPayload.actions) {
|
|
1468
1468
|
const K = L[P];
|
|
1469
|
-
mr(
|
|
1469
|
+
mr(D, P, T(K, P));
|
|
1470
1470
|
}
|
|
1471
1471
|
for (const P in L._hmrPayload.getters) {
|
|
1472
1472
|
const K = L._hmrPayload.getters[P], V = c ? (
|
|
1473
1473
|
// special handling of options api
|
|
1474
|
-
ae(() => (Vs(r), K.call(
|
|
1474
|
+
ae(() => (Vs(r), K.call(D, D)))
|
|
1475
1475
|
) : K;
|
|
1476
|
-
mr(
|
|
1476
|
+
mr(D, P, V);
|
|
1477
1477
|
}
|
|
1478
|
-
Object.keys(
|
|
1479
|
-
P in L._hmrPayload.getters || Ja(
|
|
1480
|
-
}), Object.keys(
|
|
1481
|
-
P in L._hmrPayload.actions || Ja(
|
|
1482
|
-
}),
|
|
1478
|
+
Object.keys(D._hmrPayload.getters).forEach((P) => {
|
|
1479
|
+
P in L._hmrPayload.getters || Ja(D, P);
|
|
1480
|
+
}), Object.keys(D._hmrPayload.actions).forEach((P) => {
|
|
1481
|
+
P in L._hmrPayload.actions || Ja(D, P);
|
|
1482
|
+
}), D._hmrPayload = L._hmrPayload, D._getters = L._getters, D._hotUpdating = !1;
|
|
1483
1483
|
})), Ge.env.NODE_ENV !== "production" && Ge.env.NODE_ENV !== "test" && wn) {
|
|
1484
1484
|
const L = {
|
|
1485
1485
|
writable: !0,
|
|
@@ -1488,28 +1488,28 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1488
1488
|
enumerable: !1
|
|
1489
1489
|
};
|
|
1490
1490
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((P) => {
|
|
1491
|
-
Object.defineProperty(
|
|
1491
|
+
Object.defineProperty(D, P, pi({ value: D[P] }, L));
|
|
1492
1492
|
});
|
|
1493
1493
|
}
|
|
1494
1494
|
return r._p.forEach((L) => {
|
|
1495
1495
|
if (Ge.env.NODE_ENV !== "production" && Ge.env.NODE_ENV !== "test" && wn) {
|
|
1496
1496
|
const P = g.run(() => L({
|
|
1497
|
-
store:
|
|
1497
|
+
store: D,
|
|
1498
1498
|
app: r._a,
|
|
1499
1499
|
pinia: r,
|
|
1500
1500
|
options: u
|
|
1501
1501
|
}));
|
|
1502
|
-
Object.keys(P || {}).forEach((K) =>
|
|
1502
|
+
Object.keys(P || {}).forEach((K) => D._customProperties.add(K)), pi(D, P);
|
|
1503
1503
|
} else
|
|
1504
|
-
pi(
|
|
1505
|
-
store:
|
|
1504
|
+
pi(D, g.run(() => L({
|
|
1505
|
+
store: D,
|
|
1506
1506
|
app: r._a,
|
|
1507
1507
|
pinia: r,
|
|
1508
1508
|
options: u
|
|
1509
1509
|
})));
|
|
1510
|
-
}), Ge.env.NODE_ENV !== "production" &&
|
|
1510
|
+
}), Ge.env.NODE_ENV !== "production" && D.$state && typeof D.$state == "object" && typeof D.$state.constructor == "function" && !D.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1511
1511
|
state: () => new MyClass()
|
|
1512
|
-
Found in store "${
|
|
1512
|
+
Found in store "${D.$id}".`), w && c && i.hydrate && i.hydrate(D.$state, w), f = !0, Q = !0, D;
|
|
1513
1513
|
}
|
|
1514
1514
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1515
1515
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1538,8 +1538,8 @@ This will fail in production.`);
|
|
|
1538
1538
|
const y = ji();
|
|
1539
1539
|
if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1540
1540
|
!I) {
|
|
1541
|
-
const b = y.proxy,
|
|
1542
|
-
|
|
1541
|
+
const b = y.proxy, S = "_pStores" in b ? b._pStores : b._pStores = {};
|
|
1542
|
+
S[r] = Q;
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
return Q;
|
|
@@ -1585,7 +1585,7 @@ function vI(n) {
|
|
|
1585
1585
|
fontFamily: n.fontfamily || "Arial",
|
|
1586
1586
|
fontSize: n.font_size || "12px",
|
|
1587
1587
|
originalFontSize: n.original_font_size || "12px"
|
|
1588
|
-
}), b = W(n.logicrules),
|
|
1588
|
+
}), b = W(n.logicrules), S = W(!1), w = Zt({}), k = {
|
|
1589
1589
|
SELECT: kI,
|
|
1590
1590
|
IMAGEINPUT: FI,
|
|
1591
1591
|
CHECKBOXINPUT: xI
|
|
@@ -1603,7 +1603,7 @@ function vI(n) {
|
|
|
1603
1603
|
value: u,
|
|
1604
1604
|
format: M,
|
|
1605
1605
|
logicRules: b,
|
|
1606
|
-
hidden:
|
|
1606
|
+
hidden: S,
|
|
1607
1607
|
originalJSON: Q,
|
|
1608
1608
|
fieldStyle: y,
|
|
1609
1609
|
valueGetter: F,
|
|
@@ -1788,13 +1788,13 @@ function zs(n) {
|
|
|
1788
1788
|
};
|
|
1789
1789
|
}
|
|
1790
1790
|
function Yn(n) {
|
|
1791
|
-
const t = W(n.uid), i = n.commentId || ig(), r = n.importedId, A = n.parentCommentId, c = n.fileId, g = n.fileType, u = n.createdAtVersionNumber, I = W(n.isInternal !== void 0 ? n.isInternal : !0), f = W([]), Q = W(null), y = W(n.isFocused || !1), b = n.creatorEmail,
|
|
1791
|
+
const t = W(n.uid), i = n.commentId || ig(), r = n.importedId, A = n.parentCommentId, c = n.fileId, g = n.fileType, u = n.createdAtVersionNumber, I = W(n.isInternal !== void 0 ? n.isInternal : !0), f = W([]), Q = W(null), y = W(n.isFocused || !1), b = n.creatorEmail, S = n.creatorName, w = n.createdTime || Date.now(), k = W(n.importedAuthor || null), M = W(n.commentText || ""), F = n.selection ? zs(n.selection) : zs({
|
|
1792
1792
|
documentId: c,
|
|
1793
1793
|
page: 1,
|
|
1794
1794
|
selectionBounds: {}
|
|
1795
|
-
}), O = n.selection?.selectionBounds ? { ...n.selection.selectionBounds } : { top: 0, left: 0, right: 0, bottom: 0 }, J = W(n.trackedChange), T = W(n.trackedChangeType || null), H = W(n.trackedChangeText || null), U = W(n.deletedText || null),
|
|
1796
|
-
if (
|
|
1797
|
-
if (
|
|
1795
|
+
}), O = n.selection?.selectionBounds ? { ...n.selection.selectionBounds } : { top: 0, left: 0, right: 0, bottom: 0 }, J = W(n.trackedChange), T = W(n.trackedChangeType || null), H = W(n.trackedChangeText || null), U = W(n.deletedText || null), D = W(n.resolvedTime || null), G = W(n.resolvedByEmail || null), R = W(n.resolvedByName || null), L = ({ email: ne, name: Be, superdoc: xe }) => {
|
|
1796
|
+
if (D.value) return;
|
|
1797
|
+
if (D.value = Date.now(), G.value = ne, R.value = Be, J.value) {
|
|
1798
1798
|
const Xe = { type: Hs.RESOLVED, comment: se() };
|
|
1799
1799
|
te(xe, Xe), xe.activeEditor?.commands?.resolveComment({ commentId: i, importedId: r });
|
|
1800
1800
|
return;
|
|
@@ -1844,7 +1844,7 @@ function Yn(n) {
|
|
|
1844
1844
|
bottom: ne.bottom - xe
|
|
1845
1845
|
};
|
|
1846
1846
|
F.selectionBounds = Me;
|
|
1847
|
-
}, ee = () => k.value ? { name: k.value.name || "(Imported)", email: k.value.email } : { name:
|
|
1847
|
+
}, ee = () => k.value ? { name: k.value.name || "(Imported)", email: k.value.email } : { name: S, email: b }, te = (ne, Be) => {
|
|
1848
1848
|
ne.emit("comments-update", Be), Jr(ne, Be);
|
|
1849
1849
|
}, se = () => ({
|
|
1850
1850
|
uid: t.value,
|
|
@@ -1856,7 +1856,7 @@ function Yn(n) {
|
|
|
1856
1856
|
mentions: f.value.map((ne) => ({ ...ne, name: ne.name ? ne.name : ne.email })),
|
|
1857
1857
|
createdAtVersionNumber: u,
|
|
1858
1858
|
creatorEmail: b,
|
|
1859
|
-
creatorName:
|
|
1859
|
+
creatorName: S,
|
|
1860
1860
|
createdTime: w,
|
|
1861
1861
|
importedAuthor: k.value,
|
|
1862
1862
|
isInternal: I.value,
|
|
@@ -1866,7 +1866,7 @@ function Yn(n) {
|
|
|
1866
1866
|
trackedChangeText: H.value,
|
|
1867
1867
|
trackedChangeType: T.value,
|
|
1868
1868
|
deletedText: U.value,
|
|
1869
|
-
resolvedTime:
|
|
1869
|
+
resolvedTime: D.value,
|
|
1870
1870
|
resolvedByEmail: G.value,
|
|
1871
1871
|
resolvedByName: R.value
|
|
1872
1872
|
});
|
|
@@ -1881,7 +1881,7 @@ function Yn(n) {
|
|
|
1881
1881
|
commentElement: Q,
|
|
1882
1882
|
isFocused: y,
|
|
1883
1883
|
creatorEmail: b,
|
|
1884
|
-
creatorName:
|
|
1884
|
+
creatorName: S,
|
|
1885
1885
|
createdTime: w,
|
|
1886
1886
|
isInternal: I,
|
|
1887
1887
|
commentText: M,
|
|
@@ -1891,7 +1891,7 @@ function Yn(n) {
|
|
|
1891
1891
|
deletedText: U,
|
|
1892
1892
|
trackedChangeType: T,
|
|
1893
1893
|
trackedChangeText: H,
|
|
1894
|
-
resolvedTime:
|
|
1894
|
+
resolvedTime: D,
|
|
1895
1895
|
resolvedByEmail: G,
|
|
1896
1896
|
resolvedByName: R,
|
|
1897
1897
|
importedAuthor: k,
|
|
@@ -1906,7 +1906,7 @@ function Yn(n) {
|
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
1908
|
function _I(n, t) {
|
|
1909
|
-
const i = n.id, r = T(n), A = n.data, c = t, g = n.state, u = n.role, I = n.html, f = W(null), Q = W([]), y = W(!1), b = W(t.rulers),
|
|
1909
|
+
const i = n.id, r = T(n), A = n.data, c = t, g = n.state, u = n.role, I = n.html, f = W(null), Q = W([]), y = W(!1), b = W(t.rulers), S = Us(n.ydoc), w = Us(n.provider), k = Us(n.socket), M = W(n.isNewFile), F = Us(null), O = (q) => F.value = q, J = () => F.value;
|
|
1910
1910
|
function T({ type: q, data: ee }) {
|
|
1911
1911
|
if (ee?.type) return ee.type;
|
|
1912
1912
|
if (q) return q in Vo ? Vo[q] : null;
|
|
@@ -1916,7 +1916,7 @@ function _I(n, t) {
|
|
|
1916
1916
|
P.value = L.value, L.value = [];
|
|
1917
1917
|
}, U = () => {
|
|
1918
1918
|
L.value = P.value, console.debug("[superdoc] Restored comments:", L.value);
|
|
1919
|
-
},
|
|
1919
|
+
}, D = W(n.fields || []), G = W(n.fields?.map((q) => vI(q)) || []), R = W(n.annotations || []), L = W(K()), P = W(L.value);
|
|
1920
1920
|
function K() {
|
|
1921
1921
|
return c.modules.comments ? n.conversations?.map((q) => Yn(q)) || [] : [];
|
|
1922
1922
|
}
|
|
@@ -1930,7 +1930,7 @@ function _I(n, t) {
|
|
|
1930
1930
|
state: g,
|
|
1931
1931
|
role: u,
|
|
1932
1932
|
core: V,
|
|
1933
|
-
ydoc:
|
|
1933
|
+
ydoc: S,
|
|
1934
1934
|
provider: w,
|
|
1935
1935
|
socket: k,
|
|
1936
1936
|
isNewFile: M,
|
|
@@ -1940,7 +1940,7 @@ function _I(n, t) {
|
|
|
1940
1940
|
isReady: y,
|
|
1941
1941
|
rulers: b,
|
|
1942
1942
|
// Modules
|
|
1943
|
-
rawFields:
|
|
1943
|
+
rawFields: D,
|
|
1944
1944
|
fields: G,
|
|
1945
1945
|
annotations: R,
|
|
1946
1946
|
conversations: L,
|
|
@@ -1956,7 +1956,7 @@ function _I(n, t) {
|
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
1958
1958
|
const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
1959
|
-
const n = W(null), t = hn(), i = W([]), r = W([]), A = Zt({}), c = W([]), g = W(100), u = W(!1), I = W(!1), f = W([]), Q = Zt({ name: null, email: null }), y = Zt({}), b = W(null),
|
|
1959
|
+
const n = W(null), t = hn(), i = W([]), r = W([]), A = Zt({}), c = W([]), g = W(100), u = W(!1), I = W(!1), f = W([]), Q = Zt({ name: null, email: null }), y = Zt({}), b = W(null), S = W({
|
|
1960
1960
|
left: 0,
|
|
1961
1961
|
top: 0,
|
|
1962
1962
|
width: 0,
|
|
@@ -1967,22 +1967,22 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
1967
1967
|
}, k = Zt({
|
|
1968
1968
|
scrollTop: 0,
|
|
1969
1969
|
scrollLeft: 0
|
|
1970
|
-
}), M = async (
|
|
1971
|
-
w(), n.value =
|
|
1972
|
-
const { documents: G, modules: R, user: L, users: P } =
|
|
1973
|
-
if (c.value = P || [], Object.assign(Q, L), Object.assign(y, R), !G?.length && !
|
|
1970
|
+
}), M = async (D) => {
|
|
1971
|
+
w(), n.value = D;
|
|
1972
|
+
const { documents: G, modules: R, user: L, users: P } = D;
|
|
1973
|
+
if (c.value = P || [], Object.assign(Q, L), Object.assign(y, R), !G?.length && !D.modules.collaboration) {
|
|
1974
1974
|
const K = await zo(Yd, "blank.docx", on), V = {
|
|
1975
1975
|
type: on,
|
|
1976
1976
|
data: K,
|
|
1977
1977
|
name: "blank.docx",
|
|
1978
1978
|
isNewFile: !0
|
|
1979
1979
|
};
|
|
1980
|
-
|
|
1980
|
+
D.html && (V.html = D.html), G.push(V);
|
|
1981
1981
|
}
|
|
1982
1982
|
await F(G), u.value = !0;
|
|
1983
|
-
}, F = async (
|
|
1984
|
-
if (!
|
|
1985
|
-
for (let G of
|
|
1983
|
+
}, F = async (D = []) => {
|
|
1984
|
+
if (!D) return [];
|
|
1985
|
+
for (let G of D)
|
|
1986
1986
|
try {
|
|
1987
1987
|
let R = await O(G);
|
|
1988
1988
|
const L = _I(R, n.value);
|
|
@@ -1990,21 +1990,21 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
1990
1990
|
} catch (R) {
|
|
1991
1991
|
console.warn("[superdoc] Error initializing document:", G, "with error:", R, "Skipping document.");
|
|
1992
1992
|
}
|
|
1993
|
-
}, O = async (
|
|
1994
|
-
if (n.value?.html && (
|
|
1995
|
-
return { ...
|
|
1996
|
-
if (
|
|
1997
|
-
if (
|
|
1998
|
-
|
|
1999
|
-
const G = await zo(
|
|
2000
|
-
return { ...
|
|
1993
|
+
}, O = async (D) => {
|
|
1994
|
+
if (n.value?.html && (D.html = n.value.html), !D.data && D.url && !D.type && (D.type = on), n.value?.modules.collaboration && !D.isNewFile)
|
|
1995
|
+
return { ...D, data: null, url: null };
|
|
1996
|
+
if (D.data) return D;
|
|
1997
|
+
if (D.url && D.type) {
|
|
1998
|
+
D.type.toLowerCase() === "docx" ? D.type = on : D.type.toLowerCase() === "pdf" && (D.type = Ia);
|
|
1999
|
+
const G = await zo(D.url, D.name || "document", D.type);
|
|
2000
|
+
return { ...D, data: G };
|
|
2001
2001
|
}
|
|
2002
|
-
throw new Error("Document could not be initialized:",
|
|
2002
|
+
throw new Error("Document could not be initialized:", D);
|
|
2003
2003
|
}, J = ae(() => {
|
|
2004
|
-
for (let
|
|
2005
|
-
if (!
|
|
2004
|
+
for (let D of i.value.filter((G) => G.type === "pdf"))
|
|
2005
|
+
if (!D.isReady) return !1;
|
|
2006
2006
|
return !0;
|
|
2007
|
-
}), T = (
|
|
2007
|
+
}), T = (D) => i.value.find((G) => G.id === D);
|
|
2008
2008
|
return {
|
|
2009
2009
|
commentsStore: t,
|
|
2010
2010
|
documents: i,
|
|
@@ -2015,7 +2015,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2015
2015
|
activeZoom: g,
|
|
2016
2016
|
documentScroll: k,
|
|
2017
2017
|
isInternal: I,
|
|
2018
|
-
selectionPosition:
|
|
2018
|
+
selectionPosition: S,
|
|
2019
2019
|
activeSelection: b,
|
|
2020
2020
|
isReady: u,
|
|
2021
2021
|
user: Q,
|
|
@@ -2025,17 +2025,17 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2025
2025
|
// Actions
|
|
2026
2026
|
init: M,
|
|
2027
2027
|
reset: w,
|
|
2028
|
-
handlePageReady: (
|
|
2029
|
-
A[
|
|
2030
|
-
const L = T(
|
|
2028
|
+
handlePageReady: (D, G, R) => {
|
|
2029
|
+
A[D] || (A[D] = []), A[D].push({ page: G, containerBounds: R });
|
|
2030
|
+
const L = T(D);
|
|
2031
2031
|
L && L.pageContainers.push({
|
|
2032
2032
|
page: G,
|
|
2033
2033
|
containerBounds: R
|
|
2034
2034
|
});
|
|
2035
2035
|
},
|
|
2036
2036
|
getDocument: T,
|
|
2037
|
-
getPageBounds: (
|
|
2038
|
-
const R = A[
|
|
2037
|
+
getPageBounds: (D, G) => {
|
|
2038
|
+
const R = A[D];
|
|
2039
2039
|
if (!R) return;
|
|
2040
2040
|
const L = R.find(($) => $.page == G);
|
|
2041
2041
|
if (!L || !L.container) return;
|
|
@@ -2051,7 +2051,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2051
2051
|
readOnly: !1,
|
|
2052
2052
|
allowResolve: !0,
|
|
2053
2053
|
showResolved: !1
|
|
2054
|
-
}), i = !1, r = {}, A = Hs, c = W(!1), g = W(!1), u = W(null), I = W(!1), f = W(null), Q = W(null), y = W([]), b = W([]),
|
|
2054
|
+
}), i = !1, r = {}, A = Hs, c = W(!1), g = W(!1), u = W(null), I = W(!1), f = W(null), Q = W(null), y = W([]), b = W([]), S = /* @__PURE__ */ new Set([]), w = W(!0), k = W(""), M = W([]), F = W(!1), O = W([]), J = W({}), T = W(0), H = W([]), U = W([]), D = W(!1), G = W(!1), R = W([]), L = W(null), P = (he = {}) => {
|
|
2055
2055
|
const ce = { ...t, ...he };
|
|
2056
2056
|
Object.assign(t, ce), w.value = t.suppressInternalExternal || !1, he.comments && he.comments.length && (M.value = he.comments?.map((De) => Yn(De)) || []);
|
|
2057
2057
|
}, K = (he) => he == null ? null : M.value.find((ce) => ce.commentId == he || ce.importedId == he), V = (he) => {
|
|
@@ -2119,7 +2119,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2119
2119
|
parentComments: Te,
|
|
2120
2120
|
resolvedComments: Je
|
|
2121
2121
|
};
|
|
2122
|
-
}), se = (he) =>
|
|
2122
|
+
}), se = (he) => S.includes(he), ne = ae(() => n.documents), Be = ae(() => t), xe = (he, ce) => {
|
|
2123
2123
|
const De = he.getContainerLocation(ce), Te = De.top + he.selectionBounds.top, Je = De.left + he.selectionBounds.left;
|
|
2124
2124
|
return {
|
|
2125
2125
|
top: Te,
|
|
@@ -2269,7 +2269,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2269
2269
|
activeComment: f,
|
|
2270
2270
|
commentDialogs: y,
|
|
2271
2271
|
overlappingComments: b,
|
|
2272
|
-
overlappedIds:
|
|
2272
|
+
overlappedIds: S,
|
|
2273
2273
|
suppressInternalExternal: w,
|
|
2274
2274
|
pendingComment: L,
|
|
2275
2275
|
currentCommentText: k,
|
|
@@ -2284,7 +2284,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2284
2284
|
floatingCommentsOffset: T,
|
|
2285
2285
|
sortedConversations: H,
|
|
2286
2286
|
visibleConversations: U,
|
|
2287
|
-
skipSelectionUpdate:
|
|
2287
|
+
skipSelectionUpdate: D,
|
|
2288
2288
|
isFloatingCommentsReady: G,
|
|
2289
2289
|
// Getters
|
|
2290
2290
|
getConfig: Be,
|
|
@@ -3098,22 +3098,22 @@ function G0() {
|
|
|
3098
3098
|
function r() {
|
|
3099
3099
|
n.set(this, !0), t.set(this, !0);
|
|
3100
3100
|
}
|
|
3101
|
-
function A(
|
|
3102
|
-
const L =
|
|
3103
|
-
return
|
|
3104
|
-
return R.apply(
|
|
3105
|
-
},
|
|
3101
|
+
function A(D, G, R) {
|
|
3102
|
+
const L = D[G];
|
|
3103
|
+
return D[G] = function() {
|
|
3104
|
+
return R.apply(D, arguments), L.apply(D, arguments);
|
|
3105
|
+
}, D;
|
|
3106
3106
|
}
|
|
3107
|
-
function c(
|
|
3108
|
-
|
|
3107
|
+
function c(D, G) {
|
|
3108
|
+
D[G] = Event.prototype[G];
|
|
3109
3109
|
}
|
|
3110
3110
|
const g = /* @__PURE__ */ new WeakMap(), u = Object.getOwnPropertyDescriptor(Event.prototype, "currentTarget");
|
|
3111
3111
|
function I() {
|
|
3112
|
-
var
|
|
3113
|
-
return (
|
|
3112
|
+
var D;
|
|
3113
|
+
return (D = g.get(this)) !== null && D !== void 0 ? D : null;
|
|
3114
3114
|
}
|
|
3115
|
-
function f(
|
|
3116
|
-
u !== void 0 && Object.defineProperty(
|
|
3115
|
+
function f(D, G) {
|
|
3116
|
+
u !== void 0 && Object.defineProperty(D, "currentTarget", {
|
|
3117
3117
|
configurable: !0,
|
|
3118
3118
|
enumerable: !0,
|
|
3119
3119
|
get: G ?? u.get
|
|
@@ -3124,7 +3124,7 @@ function G0() {
|
|
|
3124
3124
|
capture: {}
|
|
3125
3125
|
}, y = {};
|
|
3126
3126
|
function b() {
|
|
3127
|
-
const
|
|
3127
|
+
const D = function(G) {
|
|
3128
3128
|
const { type: R, eventPhase: L, bubbles: P } = G, K = Yr(G);
|
|
3129
3129
|
if (L === 2)
|
|
3130
3130
|
return;
|
|
@@ -3174,64 +3174,64 @@ function G0() {
|
|
|
3174
3174
|
}
|
|
3175
3175
|
c(G, "stopPropagation"), c(G, "stopImmediatePropagation"), f(G);
|
|
3176
3176
|
};
|
|
3177
|
-
return
|
|
3177
|
+
return D.displayName = "evtdUnifiedHandler", D;
|
|
3178
3178
|
}
|
|
3179
|
-
function
|
|
3180
|
-
const
|
|
3179
|
+
function S() {
|
|
3180
|
+
const D = function(G) {
|
|
3181
3181
|
const { type: R, eventPhase: L } = G;
|
|
3182
3182
|
if (L !== 2)
|
|
3183
3183
|
return;
|
|
3184
3184
|
const P = y[R];
|
|
3185
3185
|
P !== void 0 && P.forEach((K) => K(G));
|
|
3186
3186
|
};
|
|
3187
|
-
return
|
|
3187
|
+
return D.displayName = "evtdUnifiedWindowEventHandler", D;
|
|
3188
3188
|
}
|
|
3189
|
-
const w = b(), k =
|
|
3190
|
-
function M(
|
|
3191
|
-
const R = Q[
|
|
3192
|
-
return R[G] === void 0 && (R[G] = /* @__PURE__ */ new Map(), window.addEventListener(G, w,
|
|
3189
|
+
const w = b(), k = S();
|
|
3190
|
+
function M(D, G) {
|
|
3191
|
+
const R = Q[D];
|
|
3192
|
+
return R[G] === void 0 && (R[G] = /* @__PURE__ */ new Map(), window.addEventListener(G, w, D === "capture")), R[G];
|
|
3193
3193
|
}
|
|
3194
|
-
function F(
|
|
3195
|
-
return y[
|
|
3194
|
+
function F(D) {
|
|
3195
|
+
return y[D] === void 0 && (y[D] = /* @__PURE__ */ new Set(), window.addEventListener(D, k)), y[D];
|
|
3196
3196
|
}
|
|
3197
|
-
function O(
|
|
3198
|
-
let R =
|
|
3199
|
-
return R === void 0 &&
|
|
3197
|
+
function O(D, G) {
|
|
3198
|
+
let R = D.get(G);
|
|
3199
|
+
return R === void 0 && D.set(G, R = /* @__PURE__ */ new Set()), R;
|
|
3200
3200
|
}
|
|
3201
|
-
function J(
|
|
3201
|
+
function J(D, G, R, L) {
|
|
3202
3202
|
const P = Q[G][R];
|
|
3203
3203
|
if (P !== void 0) {
|
|
3204
|
-
const K = P.get(
|
|
3204
|
+
const K = P.get(D);
|
|
3205
3205
|
if (K !== void 0 && K.has(L))
|
|
3206
3206
|
return !0;
|
|
3207
3207
|
}
|
|
3208
3208
|
return !1;
|
|
3209
3209
|
}
|
|
3210
|
-
function T(
|
|
3211
|
-
const R = y[
|
|
3210
|
+
function T(D, G) {
|
|
3211
|
+
const R = y[D];
|
|
3212
3212
|
return !!(R !== void 0 && R.has(G));
|
|
3213
3213
|
}
|
|
3214
|
-
function H(
|
|
3214
|
+
function H(D, G, R, L) {
|
|
3215
3215
|
let P;
|
|
3216
3216
|
if (typeof L == "object" && L.once === !0 ? P = (ee) => {
|
|
3217
|
-
U(
|
|
3218
|
-
} : P = R, M0(
|
|
3217
|
+
U(D, G, P, L), R(ee);
|
|
3218
|
+
} : P = R, M0(D, G, P, L))
|
|
3219
3219
|
return;
|
|
3220
|
-
const V = L === !0 || typeof L == "object" && L.capture === !0 ? "capture" : "bubble", $ = M(V,
|
|
3220
|
+
const V = L === !0 || typeof L == "object" && L.capture === !0 ? "capture" : "bubble", $ = M(V, D), q = O($, G);
|
|
3221
3221
|
if (q.has(P) || q.add(P), G === window) {
|
|
3222
|
-
const ee = F(
|
|
3222
|
+
const ee = F(D);
|
|
3223
3223
|
ee.has(P) || ee.add(P);
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
|
-
function U(
|
|
3227
|
-
if (L0(
|
|
3226
|
+
function U(D, G, R, L) {
|
|
3227
|
+
if (L0(D, G, R, L))
|
|
3228
3228
|
return;
|
|
3229
|
-
const K = L === !0 || typeof L == "object" && L.capture === !0, V = K ? "capture" : "bubble", $ = M(V,
|
|
3230
|
-
if (G === window && !J(G, K ? "bubble" : "capture",
|
|
3231
|
-
const te = y[
|
|
3232
|
-
te.delete(R), te.size === 0 && (window.removeEventListener(
|
|
3229
|
+
const K = L === !0 || typeof L == "object" && L.capture === !0, V = K ? "capture" : "bubble", $ = M(V, D), q = O($, G);
|
|
3230
|
+
if (G === window && !J(G, K ? "bubble" : "capture", D, R) && T(D, R)) {
|
|
3231
|
+
const te = y[D];
|
|
3232
|
+
te.delete(R), te.size === 0 && (window.removeEventListener(D, k), y[D] = void 0);
|
|
3233
3233
|
}
|
|
3234
|
-
q.has(R) && q.delete(R), q.size === 0 && $.delete(G), $.size === 0 && (window.removeEventListener(
|
|
3234
|
+
q.has(R) && q.delete(R), q.size === 0 && $.delete(G), $.size === 0 && (window.removeEventListener(D, w, V === "capture"), Q[V][D] = void 0);
|
|
3235
3235
|
}
|
|
3236
3236
|
return {
|
|
3237
3237
|
on: H,
|
|
@@ -3546,12 +3546,12 @@ const Ug = Ct({
|
|
|
3546
3546
|
f0(b);
|
|
3547
3547
|
}, b = () => {
|
|
3548
3548
|
I.forEach((F) => F());
|
|
3549
|
-
},
|
|
3550
|
-
|
|
3549
|
+
}, S = /* @__PURE__ */ new Set(), w = (F) => {
|
|
3550
|
+
S.size === 0 && St("resize", window, M), S.has(F) || S.add(F);
|
|
3551
3551
|
}, k = (F) => {
|
|
3552
|
-
|
|
3552
|
+
S.has(F) && S.delete(F), S.size === 0 && It("resize", window, M);
|
|
3553
3553
|
}, M = () => {
|
|
3554
|
-
|
|
3554
|
+
S.forEach((F) => F());
|
|
3555
3555
|
};
|
|
3556
3556
|
return Di(() => {
|
|
3557
3557
|
It("resize", window, M), u();
|
|
@@ -3804,36 +3804,36 @@ function oC(n, t, i, r, A, c) {
|
|
|
3804
3804
|
top: 0,
|
|
3805
3805
|
left: 0
|
|
3806
3806
|
};
|
|
3807
|
-
const Q = (
|
|
3807
|
+
const Q = (S, w, k) => {
|
|
3808
3808
|
let M = 0, F = 0;
|
|
3809
|
-
const O = i[
|
|
3809
|
+
const O = i[S] - t[w] - t[S];
|
|
3810
3810
|
return O > 0 && r && (k ? F = Cc[w] ? O : -O : M = Cc[w] ? O : -O), {
|
|
3811
3811
|
left: M,
|
|
3812
3812
|
top: F
|
|
3813
3813
|
};
|
|
3814
3814
|
}, y = g === "left" || g === "right";
|
|
3815
3815
|
if (I !== "center") {
|
|
3816
|
-
const
|
|
3816
|
+
const S = AC[n], w = Dr[S], k = ja[S];
|
|
3817
3817
|
if (i[k] > t[k]) {
|
|
3818
3818
|
if (
|
|
3819
3819
|
// current space is not enough
|
|
3820
3820
|
// ----------[ target ]---------|
|
|
3821
3821
|
// -------[ follower ]
|
|
3822
|
-
t[
|
|
3822
|
+
t[S] + t[k] < i[k]
|
|
3823
3823
|
) {
|
|
3824
3824
|
const M = (i[k] - t[k]) / 2;
|
|
3825
|
-
t[
|
|
3825
|
+
t[S] < M || t[w] < M ? t[S] < t[w] ? (I = Ic[u], f = Q(k, w, y)) : f = Q(k, S, y) : I = "center";
|
|
3826
3826
|
}
|
|
3827
3827
|
} else i[k] < t[k] && t[w] < 0 && // opposite align has larger space
|
|
3828
3828
|
// ------------[ target ]
|
|
3829
3829
|
// ----------------[follower]
|
|
3830
|
-
t[
|
|
3830
|
+
t[S] > t[w] && (I = Ic[u]);
|
|
3831
3831
|
} else {
|
|
3832
|
-
const
|
|
3832
|
+
const S = g === "bottom" || g === "top" ? "left" : "top", w = Dr[S], k = ja[S], M = (i[k] - t[k]) / 2;
|
|
3833
3833
|
// center is not enough
|
|
3834
3834
|
// ----------- [ target ]--|
|
|
3835
3835
|
// -------[ follower ]
|
|
3836
|
-
(t[
|
|
3836
|
+
(t[S] < M || t[w] < M) && (t[S] > t[w] ? (I = fc[S], f = Q(k, S, y)) : (I = fc[w], f = Q(k, w, y)));
|
|
3837
3837
|
}
|
|
3838
3838
|
let b = g;
|
|
3839
3839
|
return (
|
|
@@ -4083,12 +4083,12 @@ const gC = Sr([
|
|
|
4083
4083
|
const b = r.value;
|
|
4084
4084
|
if (b === null)
|
|
4085
4085
|
return;
|
|
4086
|
-
const
|
|
4086
|
+
const S = t.targetRef, { x: w, y: k, overlap: M } = n, F = w !== void 0 && k !== void 0 ? W0(w, k) : _a(S);
|
|
4087
4087
|
b.style.setProperty("--v-target-width", `${Math.round(F.width)}px`), b.style.setProperty("--v-target-height", `${Math.round(F.height)}px`);
|
|
4088
4088
|
const { width: O, minWidth: J, placement: T, internalShift: H, flip: U } = n;
|
|
4089
4089
|
b.setAttribute("v-placement", T), M ? b.setAttribute("v-overlap", "") : b.removeAttribute("v-overlap");
|
|
4090
|
-
const { style:
|
|
4091
|
-
O === "target" ?
|
|
4090
|
+
const { style: D } = b;
|
|
4091
|
+
O === "target" ? D.width = `${F.width}px` : O !== void 0 ? D.width = O : D.width = "", J === "target" ? D.minWidth = `${F.width}px` : J !== void 0 ? D.minWidth = J : D.minWidth = "";
|
|
4092
4092
|
const G = _a(b), R = _a(A.value), { left: L, top: P, placement: K } = oC(T, F, G, H, U, M), V = cC(K, M), { left: $, top: q, transform: ee } = lC(K, R, F, P, L, M);
|
|
4093
4093
|
b.setAttribute("v-placement", K), b.style.setProperty("--v-offset-left", `${Math.round(L)}px`), b.style.setProperty("--v-offset-top", `${Math.round(P)}px`), b.style.transform = `translateX(${$}) translateY(${q}) ${ee}`, b.style.setProperty("--v-transform-origin", V), b.style.transformOrigin = V;
|
|
4094
4094
|
};
|
|
@@ -4237,7 +4237,7 @@ var Xn = function(n) {
|
|
|
4237
4237
|
return vr.get(n);
|
|
4238
4238
|
if (Yg(n))
|
|
4239
4239
|
return vr.set(n, Qc), Qc;
|
|
4240
|
-
var i = getComputedStyle(n), r = jA(n) && n.ownerSVGElement && n.getBBox(), A = !BC && i.boxSizing === "border-box", c = fC.test(i.writingMode || ""), g = !r && pc.test(i.overflowY || ""), u = !r && pc.test(i.overflowX || ""), I = r ? 0 : Hi(i.paddingTop), f = r ? 0 : Hi(i.paddingRight), Q = r ? 0 : Hi(i.paddingBottom), y = r ? 0 : Hi(i.paddingLeft), b = r ? 0 : Hi(i.borderTopWidth),
|
|
4240
|
+
var i = getComputedStyle(n), r = jA(n) && n.ownerSVGElement && n.getBBox(), A = !BC && i.boxSizing === "border-box", c = fC.test(i.writingMode || ""), g = !r && pc.test(i.overflowY || ""), u = !r && pc.test(i.overflowX || ""), I = r ? 0 : Hi(i.paddingTop), f = r ? 0 : Hi(i.paddingRight), Q = r ? 0 : Hi(i.paddingBottom), y = r ? 0 : Hi(i.paddingLeft), b = r ? 0 : Hi(i.borderTopWidth), S = r ? 0 : Hi(i.borderRightWidth), w = r ? 0 : Hi(i.borderBottomWidth), k = r ? 0 : Hi(i.borderLeftWidth), M = y + f, F = I + Q, O = k + S, J = b + w, T = u ? n.offsetHeight - J - n.clientHeight : 0, H = g ? n.offsetWidth - O - n.clientWidth : 0, U = A ? M + O : 0, D = A ? F + J : 0, G = r ? r.width : Hi(i.width) - U - H, R = r ? r.height : Hi(i.height) - D - T, L = G + M + H + O, P = R + F + T + J, K = Xn({
|
|
4241
4241
|
devicePixelContentBoxSize: Cs(Math.round(G * devicePixelRatio), Math.round(R * devicePixelRatio), c),
|
|
4242
4242
|
borderBoxSize: Cs(L, P, c),
|
|
4243
4243
|
contentBoxSize: Cs(G, R, c),
|
|
@@ -4579,7 +4579,7 @@ const LC = Ct({
|
|
|
4579
4579
|
const F = Q();
|
|
4580
4580
|
if (F === null || F.contains($r(M)))
|
|
4581
4581
|
return;
|
|
4582
|
-
|
|
4582
|
+
S("first");
|
|
4583
4583
|
}
|
|
4584
4584
|
}
|
|
4585
4585
|
function Q() {
|
|
@@ -4596,7 +4596,7 @@ const LC = Ct({
|
|
|
4596
4596
|
if (!n.disabled) {
|
|
4597
4597
|
if (Ls.push(t), n.autoFocus) {
|
|
4598
4598
|
const { initialFocusTo: F } = n;
|
|
4599
|
-
F === void 0 ?
|
|
4599
|
+
F === void 0 ? S("first") : (M = dc(F)) === null || M === void 0 || M.focus({ preventScroll: !0 });
|
|
4600
4600
|
}
|
|
4601
4601
|
A = !0, document.addEventListener("focus", f, !0);
|
|
4602
4602
|
}
|
|
@@ -4608,7 +4608,7 @@ const LC = Ct({
|
|
|
4608
4608
|
const { finalFocusTo: F } = n;
|
|
4609
4609
|
F !== void 0 ? (M = dc(F)) === null || M === void 0 || M.focus({ preventScroll: !0 }) : n.returnFocusOnDeactivated && g instanceof HTMLElement && (c = !0, g.focus({ preventScroll: !0 }), c = !1);
|
|
4610
4610
|
}
|
|
4611
|
-
function
|
|
4611
|
+
function S(M) {
|
|
4612
4612
|
if (u() && n.active) {
|
|
4613
4613
|
const F = i.value, O = r.value;
|
|
4614
4614
|
if (F !== null && O !== null) {
|
|
@@ -4627,10 +4627,10 @@ const LC = Ct({
|
|
|
4627
4627
|
if (c)
|
|
4628
4628
|
return;
|
|
4629
4629
|
const F = Q();
|
|
4630
|
-
F !== null && (M.relatedTarget !== null && F.contains(M.relatedTarget) ?
|
|
4630
|
+
F !== null && (M.relatedTarget !== null && F.contains(M.relatedTarget) ? S("last") : S("first"));
|
|
4631
4631
|
}
|
|
4632
4632
|
function k(M) {
|
|
4633
|
-
c || (M.relatedTarget !== null && M.relatedTarget === i.value ?
|
|
4633
|
+
c || (M.relatedTarget !== null && M.relatedTarget === i.value ? S("last") : S("first"));
|
|
4634
4634
|
}
|
|
4635
4635
|
return {
|
|
4636
4636
|
focusableStartRef: i,
|
|
@@ -4799,8 +4799,8 @@ function bs(n, t, i, r) {
|
|
|
4799
4799
|
let f;
|
|
4800
4800
|
const Q = `__${n}`, y = () => {
|
|
4801
4801
|
let b = Q;
|
|
4802
|
-
const
|
|
4803
|
-
w && (b += `-${w}`),
|
|
4802
|
+
const S = t ? t.value : void 0, w = c?.value;
|
|
4803
|
+
w && (b += `-${w}`), S && (b += `-${S}`);
|
|
4804
4804
|
const {
|
|
4805
4805
|
themeOverrides: k,
|
|
4806
4806
|
builtinThemeOverrides: M
|
|
@@ -5500,7 +5500,7 @@ function Ih(n, t, i, r, A, c) {
|
|
|
5500
5500
|
var f = c.get(n), Q = c.get(t);
|
|
5501
5501
|
if (f && Q)
|
|
5502
5502
|
return f == t && Q == n;
|
|
5503
|
-
var y = -1, b = !0,
|
|
5503
|
+
var y = -1, b = !0, S = i & YB ? new Aa() : void 0;
|
|
5504
5504
|
for (c.set(n, t), c.set(t, n); ++y < u; ) {
|
|
5505
5505
|
var w = n[y], k = t[y];
|
|
5506
5506
|
if (r)
|
|
@@ -5511,10 +5511,10 @@ function Ih(n, t, i, r, A, c) {
|
|
|
5511
5511
|
b = !1;
|
|
5512
5512
|
break;
|
|
5513
5513
|
}
|
|
5514
|
-
if (
|
|
5514
|
+
if (S) {
|
|
5515
5515
|
if (!PB(t, function(F, O) {
|
|
5516
|
-
if (!OB(
|
|
5517
|
-
return
|
|
5516
|
+
if (!OB(S, O) && (w === F || A(w, F, i, r, c)))
|
|
5517
|
+
return S.push(O);
|
|
5518
5518
|
})) {
|
|
5519
5519
|
b = !1;
|
|
5520
5520
|
break;
|
|
@@ -5584,9 +5584,9 @@ function cE(n, t, i, r, A, c) {
|
|
|
5584
5584
|
if (!(g ? b in t : oE.call(t, b)))
|
|
5585
5585
|
return !1;
|
|
5586
5586
|
}
|
|
5587
|
-
var
|
|
5588
|
-
if (
|
|
5589
|
-
return
|
|
5587
|
+
var S = c.get(n), w = c.get(t);
|
|
5588
|
+
if (S && w)
|
|
5589
|
+
return S == t && w == n;
|
|
5590
5590
|
var k = !0;
|
|
5591
5591
|
c.set(n, t), c.set(t, n);
|
|
5592
5592
|
for (var M = g; ++y < I; ) {
|
|
@@ -5619,9 +5619,9 @@ function hE(n, t, i, r, A, c) {
|
|
|
5619
5619
|
if (b && !Q)
|
|
5620
5620
|
return c || (c = new _i()), g || io(n) ? Ih(n, t, i, r, A, c) : rE(n, t, I, i, r, A, c);
|
|
5621
5621
|
if (!(i & lE)) {
|
|
5622
|
-
var
|
|
5623
|
-
if (
|
|
5624
|
-
var k =
|
|
5622
|
+
var S = Q && sl.call(n, "__wrapped__"), w = y && sl.call(t, "__wrapped__");
|
|
5623
|
+
if (S || w) {
|
|
5624
|
+
var k = S ? n.value() : n, M = w ? t.value() : t;
|
|
5625
5625
|
return c || (c = new _i()), A(k, M, i, r, c);
|
|
5626
5626
|
}
|
|
5627
5627
|
}
|
|
@@ -5761,8 +5761,8 @@ function ME(n, t, i, r, A, c, g) {
|
|
|
5761
5761
|
}
|
|
5762
5762
|
var Q = c ? c(u, I, i + "", n, t, g) : void 0, y = Q === void 0;
|
|
5763
5763
|
if (y) {
|
|
5764
|
-
var b = Si(I),
|
|
5765
|
-
Q = I, b ||
|
|
5764
|
+
var b = Si(I), S = !b && ra(I), w = !b && !S && io(I);
|
|
5765
|
+
Q = I, b || S || w ? Si(u) ? Q = u : RE(u) ? Q = ff(u) : S ? (y = !1, Q = QB(I)) : w ? (y = !1, Q = LB(I)) : Q = [] : uB(I) || sa(I) ? (Q = u, sa(u) ? Q = NE(u) : (!Rn(u) || zA(u)) && (Q = GB(I))) : y = !1;
|
|
5766
5766
|
}
|
|
5767
5767
|
y && (g.set(I, Q), A(Q, I, r, c, g), g.delete(I)), vA(n, i, Q);
|
|
5768
5768
|
}
|
|
@@ -5922,12 +5922,12 @@ function ai(n, t, i, r, A, c) {
|
|
|
5922
5922
|
self: y,
|
|
5923
5923
|
peers: b = {}
|
|
5924
5924
|
} = {},
|
|
5925
|
-
themeOverrides:
|
|
5925
|
+
themeOverrides: S = {},
|
|
5926
5926
|
builtinThemeOverrides: w = {}
|
|
5927
5927
|
} = A, {
|
|
5928
5928
|
common: k,
|
|
5929
5929
|
peers: M
|
|
5930
|
-
} =
|
|
5930
|
+
} = S, {
|
|
5931
5931
|
common: F = void 0,
|
|
5932
5932
|
[n]: {
|
|
5933
5933
|
common: O = void 0,
|
|
@@ -5938,14 +5938,14 @@ function ai(n, t, i, r, A, c) {
|
|
|
5938
5938
|
common: H = void 0,
|
|
5939
5939
|
[n]: U = {}
|
|
5940
5940
|
} = u?.mergedThemeOverridesRef.value || {}, {
|
|
5941
|
-
common:
|
|
5941
|
+
common: D,
|
|
5942
5942
|
peers: G = {}
|
|
5943
|
-
} = U, R = Rr({}, Q || O || F || r.common, H,
|
|
5943
|
+
} = U, R = Rr({}, Q || O || F || r.common, H, D, k), L = Rr(
|
|
5944
5944
|
// {}, executed every time, no need for empty obj
|
|
5945
5945
|
(f = y || J || r.self) === null || f === void 0 ? void 0 : f(R),
|
|
5946
5946
|
w,
|
|
5947
5947
|
U,
|
|
5948
|
-
|
|
5948
|
+
S
|
|
5949
5949
|
);
|
|
5950
5950
|
return {
|
|
5951
5951
|
common: R,
|
|
@@ -6158,7 +6158,7 @@ function yh({
|
|
|
6158
6158
|
opacity: 1
|
|
6159
6159
|
})];
|
|
6160
6160
|
}
|
|
6161
|
-
const
|
|
6161
|
+
const ke = {
|
|
6162
6162
|
neutralBase: "#FFF",
|
|
6163
6163
|
neutralInvertBase: "#000",
|
|
6164
6164
|
neutralTextBase: "#000",
|
|
@@ -6205,7 +6205,7 @@ const Fe = {
|
|
|
6205
6205
|
successDefault: "#18a058",
|
|
6206
6206
|
successActive: "#0c7a43",
|
|
6207
6207
|
successSuppl: "#36ad6a"
|
|
6208
|
-
}, qE = $n(
|
|
6208
|
+
}, qE = $n(ke.neutralBase), bh = $n(ke.neutralInvertBase), jE = `rgba(${bh.slice(0, 3).join(", ")}, `;
|
|
6209
6209
|
function al(n) {
|
|
6210
6210
|
return `${jE + String(n)})`;
|
|
6211
6211
|
}
|
|
@@ -6216,87 +6216,87 @@ function Ot(n) {
|
|
|
6216
6216
|
const Ss = Object.assign(Object.assign({
|
|
6217
6217
|
name: "common"
|
|
6218
6218
|
}, lr), {
|
|
6219
|
-
baseColor:
|
|
6219
|
+
baseColor: ke.neutralBase,
|
|
6220
6220
|
// primary color
|
|
6221
|
-
primaryColor:
|
|
6222
|
-
primaryColorHover:
|
|
6223
|
-
primaryColorPressed:
|
|
6224
|
-
primaryColorSuppl:
|
|
6221
|
+
primaryColor: ke.primaryDefault,
|
|
6222
|
+
primaryColorHover: ke.primaryHover,
|
|
6223
|
+
primaryColorPressed: ke.primaryActive,
|
|
6224
|
+
primaryColorSuppl: ke.primarySuppl,
|
|
6225
6225
|
// info color
|
|
6226
|
-
infoColor:
|
|
6227
|
-
infoColorHover:
|
|
6228
|
-
infoColorPressed:
|
|
6229
|
-
infoColorSuppl:
|
|
6226
|
+
infoColor: ke.infoDefault,
|
|
6227
|
+
infoColorHover: ke.infoHover,
|
|
6228
|
+
infoColorPressed: ke.infoActive,
|
|
6229
|
+
infoColorSuppl: ke.infoSuppl,
|
|
6230
6230
|
// success color
|
|
6231
|
-
successColor:
|
|
6232
|
-
successColorHover:
|
|
6233
|
-
successColorPressed:
|
|
6234
|
-
successColorSuppl:
|
|
6231
|
+
successColor: ke.successDefault,
|
|
6232
|
+
successColorHover: ke.successHover,
|
|
6233
|
+
successColorPressed: ke.successActive,
|
|
6234
|
+
successColorSuppl: ke.successSuppl,
|
|
6235
6235
|
// warning color
|
|
6236
|
-
warningColor:
|
|
6237
|
-
warningColorHover:
|
|
6238
|
-
warningColorPressed:
|
|
6239
|
-
warningColorSuppl:
|
|
6236
|
+
warningColor: ke.warningDefault,
|
|
6237
|
+
warningColorHover: ke.warningHover,
|
|
6238
|
+
warningColorPressed: ke.warningActive,
|
|
6239
|
+
warningColorSuppl: ke.warningSuppl,
|
|
6240
6240
|
// error color
|
|
6241
|
-
errorColor:
|
|
6242
|
-
errorColorHover:
|
|
6243
|
-
errorColorPressed:
|
|
6244
|
-
errorColorSuppl:
|
|
6241
|
+
errorColor: ke.errorDefault,
|
|
6242
|
+
errorColorHover: ke.errorHover,
|
|
6243
|
+
errorColorPressed: ke.errorActive,
|
|
6244
|
+
errorColorSuppl: ke.errorSuppl,
|
|
6245
6245
|
// text color
|
|
6246
|
-
textColorBase:
|
|
6246
|
+
textColorBase: ke.neutralTextBase,
|
|
6247
6247
|
textColor1: "rgb(31, 34, 37)",
|
|
6248
6248
|
textColor2: "rgb(51, 54, 57)",
|
|
6249
6249
|
textColor3: "rgb(118, 124, 130)",
|
|
6250
6250
|
// textColor4: neutral(base.alpha4), // disabled, placeholder, icon
|
|
6251
6251
|
// textColor5: neutral(base.alpha5),
|
|
6252
|
-
textColorDisabled: Ot(
|
|
6253
|
-
placeholderColor: Ot(
|
|
6254
|
-
placeholderColorDisabled: Ot(
|
|
6255
|
-
iconColor: Ot(
|
|
6256
|
-
iconColorHover: wr(Ot(
|
|
6252
|
+
textColorDisabled: Ot(ke.alpha4),
|
|
6253
|
+
placeholderColor: Ot(ke.alpha4),
|
|
6254
|
+
placeholderColorDisabled: Ot(ke.alpha5),
|
|
6255
|
+
iconColor: Ot(ke.alpha4),
|
|
6256
|
+
iconColorHover: wr(Ot(ke.alpha4), {
|
|
6257
6257
|
lightness: 0.75
|
|
6258
6258
|
}),
|
|
6259
|
-
iconColorPressed: wr(Ot(
|
|
6259
|
+
iconColorPressed: wr(Ot(ke.alpha4), {
|
|
6260
6260
|
lightness: 0.9
|
|
6261
6261
|
}),
|
|
6262
|
-
iconColorDisabled: Ot(
|
|
6263
|
-
opacity1:
|
|
6264
|
-
opacity2:
|
|
6265
|
-
opacity3:
|
|
6266
|
-
opacity4:
|
|
6267
|
-
opacity5:
|
|
6262
|
+
iconColorDisabled: Ot(ke.alpha5),
|
|
6263
|
+
opacity1: ke.alpha1,
|
|
6264
|
+
opacity2: ke.alpha2,
|
|
6265
|
+
opacity3: ke.alpha3,
|
|
6266
|
+
opacity4: ke.alpha4,
|
|
6267
|
+
opacity5: ke.alpha5,
|
|
6268
6268
|
dividerColor: "rgb(239, 239, 245)",
|
|
6269
6269
|
borderColor: "rgb(224, 224, 230)",
|
|
6270
6270
|
// close
|
|
6271
|
-
closeIconColor: Ot(Number(
|
|
6272
|
-
closeIconColorHover: Ot(Number(
|
|
6273
|
-
closeIconColorPressed: Ot(Number(
|
|
6271
|
+
closeIconColor: Ot(Number(ke.alphaClose)),
|
|
6272
|
+
closeIconColorHover: Ot(Number(ke.alphaClose)),
|
|
6273
|
+
closeIconColorPressed: Ot(Number(ke.alphaClose)),
|
|
6274
6274
|
closeColorHover: "rgba(0, 0, 0, .09)",
|
|
6275
6275
|
closeColorPressed: "rgba(0, 0, 0, .13)",
|
|
6276
6276
|
// clear
|
|
6277
|
-
clearColor: Ot(
|
|
6278
|
-
clearColorHover: wr(Ot(
|
|
6277
|
+
clearColor: Ot(ke.alpha4),
|
|
6278
|
+
clearColorHover: wr(Ot(ke.alpha4), {
|
|
6279
6279
|
lightness: 0.75
|
|
6280
6280
|
}),
|
|
6281
|
-
clearColorPressed: wr(Ot(
|
|
6281
|
+
clearColorPressed: wr(Ot(ke.alpha4), {
|
|
6282
6282
|
lightness: 0.9
|
|
6283
6283
|
}),
|
|
6284
|
-
scrollbarColor: al(
|
|
6285
|
-
scrollbarColorHover: al(
|
|
6284
|
+
scrollbarColor: al(ke.alphaScrollbar),
|
|
6285
|
+
scrollbarColorHover: al(ke.alphaScrollbarHover),
|
|
6286
6286
|
scrollbarWidth: "5px",
|
|
6287
6287
|
scrollbarHeight: "5px",
|
|
6288
6288
|
scrollbarBorderRadius: "5px",
|
|
6289
|
-
progressRailColor: Ot(
|
|
6289
|
+
progressRailColor: Ot(ke.alphaProgressRail),
|
|
6290
6290
|
railColor: "rgb(219, 219, 223)",
|
|
6291
|
-
popoverColor:
|
|
6292
|
-
tableColor:
|
|
6293
|
-
cardColor:
|
|
6294
|
-
modalColor:
|
|
6295
|
-
bodyColor:
|
|
6291
|
+
popoverColor: ke.neutralPopover,
|
|
6292
|
+
tableColor: ke.neutralCard,
|
|
6293
|
+
cardColor: ke.neutralCard,
|
|
6294
|
+
modalColor: ke.neutralModal,
|
|
6295
|
+
bodyColor: ke.neutralBody,
|
|
6296
6296
|
tagColor: "#eee",
|
|
6297
|
-
avatarColor: Ot(
|
|
6297
|
+
avatarColor: Ot(ke.alphaAvatar),
|
|
6298
6298
|
invertedColor: "rgb(0, 20, 40)",
|
|
6299
|
-
inputColor: Ot(
|
|
6299
|
+
inputColor: Ot(ke.alphaInput),
|
|
6300
6300
|
codeColor: "rgb(244, 244, 248)",
|
|
6301
6301
|
tabColor: "rgb(247, 247, 250)",
|
|
6302
6302
|
actionColor: "rgb(250, 250, 252)",
|
|
@@ -6306,7 +6306,7 @@ const Ss = Object.assign(Object.assign({
|
|
|
6306
6306
|
tableColorHover: "rgba(0, 0, 100, 0.03)",
|
|
6307
6307
|
tableColorStriped: "rgba(0, 0, 100, 0.02)",
|
|
6308
6308
|
pressedColor: "rgb(237, 237, 239)",
|
|
6309
|
-
opacityDisabled:
|
|
6309
|
+
opacityDisabled: ke.alphaDisabled,
|
|
6310
6310
|
inputColorDisabled: "rgb(250, 250, 252)",
|
|
6311
6311
|
// secondary button color
|
|
6312
6312
|
// can also be used in tertiary button & quaternary button
|
|
@@ -6457,8 +6457,8 @@ const VE = {
|
|
|
6457
6457
|
mergedClsPrefixRef: t,
|
|
6458
6458
|
inlineThemeDisabled: i,
|
|
6459
6459
|
mergedRtlRef: r
|
|
6460
|
-
} = ys(n), A = ph("Scrollbar", r, t), c = W(null), g = W(null), u = W(null), I = W(null), f = W(null), Q = W(null), y = W(null), b = W(null),
|
|
6461
|
-
let T = !1, H = !1, U,
|
|
6460
|
+
} = ys(n), A = ph("Scrollbar", r, t), c = W(null), g = W(null), u = W(null), I = W(null), f = W(null), Q = W(null), y = W(null), b = W(null), S = W(null), w = W(null), k = W(null), M = W(0), F = W(0), O = W(!1), J = W(!1);
|
|
6461
|
+
let T = !1, H = !1, U, D, G = 0, R = 0, L = 0, P = 0;
|
|
6462
6462
|
const K = Y0(), V = ai("Scrollbar", "-scrollbar", zE, VE, n, t), $ = ae(() => {
|
|
6463
6463
|
const {
|
|
6464
6464
|
value: le
|
|
@@ -6471,7 +6471,7 @@ const VE = {
|
|
|
6471
6471
|
}), q = ae(() => `${$.value}px`), ee = ae(() => {
|
|
6472
6472
|
const {
|
|
6473
6473
|
value: le
|
|
6474
|
-
} =
|
|
6474
|
+
} = S, {
|
|
6475
6475
|
value: pe
|
|
6476
6476
|
} = y, {
|
|
6477
6477
|
value: be
|
|
@@ -6496,7 +6496,7 @@ const VE = {
|
|
|
6496
6496
|
}), ne = ae(() => `${se.value}px`), Be = ae(() => {
|
|
6497
6497
|
const {
|
|
6498
6498
|
value: le
|
|
6499
|
-
} =
|
|
6499
|
+
} = S, {
|
|
6500
6500
|
value: pe
|
|
6501
6501
|
} = F, {
|
|
6502
6502
|
value: be
|
|
@@ -6519,7 +6519,7 @@ const VE = {
|
|
|
6519
6519
|
}), Xe = ae(() => {
|
|
6520
6520
|
const {
|
|
6521
6521
|
value: le
|
|
6522
|
-
} =
|
|
6522
|
+
} = S, {
|
|
6523
6523
|
value: pe
|
|
6524
6524
|
} = y;
|
|
6525
6525
|
return le !== null && pe !== null && pe > le;
|
|
@@ -6616,7 +6616,7 @@ const VE = {
|
|
|
6616
6616
|
De(), Te();
|
|
6617
6617
|
}
|
|
6618
6618
|
function De() {
|
|
6619
|
-
|
|
6619
|
+
D !== void 0 && window.clearTimeout(D), D = window.setTimeout(() => {
|
|
6620
6620
|
J.value = !1;
|
|
6621
6621
|
}, n.duration);
|
|
6622
6622
|
}
|
|
@@ -6629,7 +6629,7 @@ const VE = {
|
|
|
6629
6629
|
U !== void 0 && window.clearTimeout(U), O.value = !0;
|
|
6630
6630
|
}
|
|
6631
6631
|
function qe() {
|
|
6632
|
-
|
|
6632
|
+
D !== void 0 && window.clearTimeout(D), J.value = !0;
|
|
6633
6633
|
}
|
|
6634
6634
|
function Le(le) {
|
|
6635
6635
|
const {
|
|
@@ -6651,7 +6651,7 @@ const VE = {
|
|
|
6651
6651
|
const {
|
|
6652
6652
|
value: pe
|
|
6653
6653
|
} = de;
|
|
6654
|
-
pe && (b.value = pe.offsetHeight,
|
|
6654
|
+
pe && (b.value = pe.offsetHeight, S.value = pe.offsetWidth);
|
|
6655
6655
|
const {
|
|
6656
6656
|
value: be
|
|
6657
6657
|
} = f, {
|
|
@@ -6663,7 +6663,7 @@ const VE = {
|
|
|
6663
6663
|
const {
|
|
6664
6664
|
value: le
|
|
6665
6665
|
} = de;
|
|
6666
|
-
le && (M.value = le.scrollTop, F.value = le.scrollLeft * (A?.value ? -1 : 1), b.value = le.offsetHeight,
|
|
6666
|
+
le && (M.value = le.scrollTop, F.value = le.scrollLeft * (A?.value ? -1 : 1), b.value = le.offsetHeight, S.value = le.offsetWidth, Q.value = le.scrollHeight, y.value = le.scrollWidth);
|
|
6667
6667
|
const {
|
|
6668
6668
|
value: pe
|
|
6669
6669
|
} = f, {
|
|
@@ -6683,10 +6683,10 @@ const VE = {
|
|
|
6683
6683
|
}
|
|
6684
6684
|
function Ci(le) {
|
|
6685
6685
|
if (!H) return;
|
|
6686
|
-
U !== void 0 && window.clearTimeout(U),
|
|
6686
|
+
U !== void 0 && window.clearTimeout(U), D !== void 0 && window.clearTimeout(D);
|
|
6687
6687
|
const {
|
|
6688
6688
|
value: pe
|
|
6689
|
-
} =
|
|
6689
|
+
} = S, {
|
|
6690
6690
|
value: be
|
|
6691
6691
|
} = y, {
|
|
6692
6692
|
value: nt
|
|
@@ -6714,7 +6714,7 @@ const VE = {
|
|
|
6714
6714
|
}
|
|
6715
6715
|
function zi(le) {
|
|
6716
6716
|
if (!T) return;
|
|
6717
|
-
U !== void 0 && window.clearTimeout(U),
|
|
6717
|
+
U !== void 0 && window.clearTimeout(U), D !== void 0 && window.clearTimeout(D);
|
|
6718
6718
|
const {
|
|
6719
6719
|
value: pe
|
|
6720
6720
|
} = b, {
|
|
@@ -6750,7 +6750,7 @@ const VE = {
|
|
|
6750
6750
|
}), Ii(() => {
|
|
6751
6751
|
n.container || Ut();
|
|
6752
6752
|
}), Di(() => {
|
|
6753
|
-
U !== void 0 && window.clearTimeout(U),
|
|
6753
|
+
U !== void 0 && window.clearTimeout(U), D !== void 0 && window.clearTimeout(D), It("mousemove", window, zi, !0), It("mouseup", window, Zi, !0);
|
|
6754
6754
|
});
|
|
6755
6755
|
const oi = ae(() => {
|
|
6756
6756
|
const {
|
|
@@ -6864,9 +6864,9 @@ const VE = {
|
|
|
6864
6864
|
xScrollable: I
|
|
6865
6865
|
} = this;
|
|
6866
6866
|
if (!this.scrollable) return (n = t.default) === null || n === void 0 ? void 0 : n.call(t);
|
|
6867
|
-
const f = this.trigger === "none", Q = (
|
|
6867
|
+
const f = this.trigger === "none", Q = (S, w) => re("div", {
|
|
6868
6868
|
ref: "yRailRef",
|
|
6869
|
-
class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--vertical`, `${i}-scrollbar-rail--vertical--${g}`,
|
|
6869
|
+
class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--vertical`, `${i}-scrollbar-rail--vertical--${g}`, S],
|
|
6870
6870
|
"data-scrollbar-rail": !0,
|
|
6871
6871
|
style: [w || "", this.verticalRailStyle],
|
|
6872
6872
|
"aria-hidden": !0
|
|
@@ -6882,8 +6882,8 @@ const VE = {
|
|
|
6882
6882
|
onMousedown: this.handleYScrollMouseDown
|
|
6883
6883
|
}) : null
|
|
6884
6884
|
})), y = () => {
|
|
6885
|
-
var
|
|
6886
|
-
return (
|
|
6885
|
+
var S, w;
|
|
6886
|
+
return (S = this.onRender) === null || S === void 0 || S.call(this), re("div", ar(this.$attrs, {
|
|
6887
6887
|
role: "none",
|
|
6888
6888
|
ref: "wrapperRef",
|
|
6889
6889
|
class: [`${i}-scrollbar`, this.themeClass, A && `${i}-scrollbar--rtl`],
|
|
@@ -7051,33 +7051,33 @@ function nA(n, t) {
|
|
|
7051
7051
|
const { levelTreeNodeMap: Q } = t;
|
|
7052
7052
|
let y;
|
|
7053
7053
|
A !== void 0 ? y = Ip(A, i, t, f) : r !== void 0 ? y = up(r, i, t, f) : y = oa(i, t, f, !1);
|
|
7054
|
-
const b = I === "parent",
|
|
7054
|
+
const b = I === "parent", S = I === "child" || u, w = y, k = /* @__PURE__ */ new Set(), M = Math.max.apply(null, Array.from(Q.keys()));
|
|
7055
7055
|
for (let F = M; F >= 0; F -= 1) {
|
|
7056
7056
|
const O = F === 0, J = Q.get(F);
|
|
7057
7057
|
for (const T of J) {
|
|
7058
7058
|
if (T.isLeaf)
|
|
7059
7059
|
continue;
|
|
7060
7060
|
const { key: H, shallowLoaded: U } = T;
|
|
7061
|
-
if (
|
|
7061
|
+
if (S && U && T.children.forEach((L) => {
|
|
7062
7062
|
!L.disabled && !L.isLeaf && L.shallowLoaded && w.has(L.key) && w.delete(L.key);
|
|
7063
7063
|
}), T.disabled || !U)
|
|
7064
7064
|
continue;
|
|
7065
|
-
let
|
|
7065
|
+
let D = !0, G = !1, R = !0;
|
|
7066
7066
|
for (const L of T.children) {
|
|
7067
7067
|
const P = L.key;
|
|
7068
7068
|
if (!L.disabled) {
|
|
7069
7069
|
if (R && (R = !1), w.has(P))
|
|
7070
7070
|
G = !0;
|
|
7071
7071
|
else if (k.has(P)) {
|
|
7072
|
-
G = !0,
|
|
7072
|
+
G = !0, D = !1;
|
|
7073
7073
|
break;
|
|
7074
|
-
} else if (
|
|
7074
|
+
} else if (D = !1, G)
|
|
7075
7075
|
break;
|
|
7076
7076
|
}
|
|
7077
7077
|
}
|
|
7078
|
-
|
|
7078
|
+
D && !R ? (b && T.children.forEach((L) => {
|
|
7079
7079
|
!L.disabled && w.has(L.key) && w.delete(L.key);
|
|
7080
|
-
}), w.add(H)) : G && k.add(H), O &&
|
|
7080
|
+
}), w.add(H)) : G && k.add(H), O && S && w.has(H) && w.delete(H);
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
7083
7083
|
return {
|
|
@@ -7260,7 +7260,7 @@ function bp(n, t = {}) {
|
|
|
7260
7260
|
return yp(this, T);
|
|
7261
7261
|
}
|
|
7262
7262
|
}, Qp), b = Dh(n, r, A, y, Q);
|
|
7263
|
-
function
|
|
7263
|
+
function S(T) {
|
|
7264
7264
|
if (T == null)
|
|
7265
7265
|
return null;
|
|
7266
7266
|
const H = r.get(T);
|
|
@@ -7297,7 +7297,7 @@ function bp(n, t = {}) {
|
|
|
7297
7297
|
getFlattenedNodes(T) {
|
|
7298
7298
|
return mp(b, T);
|
|
7299
7299
|
},
|
|
7300
|
-
getNode:
|
|
7300
|
+
getNode: S,
|
|
7301
7301
|
getPrev: k,
|
|
7302
7302
|
getNext: M,
|
|
7303
7303
|
getParent: F,
|
|
@@ -7309,35 +7309,35 @@ function bp(n, t = {}) {
|
|
|
7309
7309
|
return Cp(T, H, J);
|
|
7310
7310
|
},
|
|
7311
7311
|
getCheckedKeys(T, H = {}) {
|
|
7312
|
-
const { cascade: U = !0, leafOnly:
|
|
7312
|
+
const { cascade: U = !0, leafOnly: D = !1, checkStrategy: G = "all", allowNotLoaded: R = !1 } = H;
|
|
7313
7313
|
return nA({
|
|
7314
7314
|
checkedKeys: tA(T),
|
|
7315
7315
|
indeterminateKeys: iA(T),
|
|
7316
7316
|
cascade: U,
|
|
7317
|
-
leafOnly:
|
|
7317
|
+
leafOnly: D,
|
|
7318
7318
|
checkStrategy: G,
|
|
7319
7319
|
allowNotLoaded: R
|
|
7320
7320
|
}, J);
|
|
7321
7321
|
},
|
|
7322
7322
|
check(T, H, U = {}) {
|
|
7323
|
-
const { cascade:
|
|
7323
|
+
const { cascade: D = !0, leafOnly: G = !1, checkStrategy: R = "all", allowNotLoaded: L = !1 } = U;
|
|
7324
7324
|
return nA({
|
|
7325
7325
|
checkedKeys: tA(H),
|
|
7326
7326
|
indeterminateKeys: iA(H),
|
|
7327
7327
|
keysToCheck: T == null ? [] : Al(T),
|
|
7328
|
-
cascade:
|
|
7328
|
+
cascade: D,
|
|
7329
7329
|
leafOnly: G,
|
|
7330
7330
|
checkStrategy: R,
|
|
7331
7331
|
allowNotLoaded: L
|
|
7332
7332
|
}, J);
|
|
7333
7333
|
},
|
|
7334
7334
|
uncheck(T, H, U = {}) {
|
|
7335
|
-
const { cascade:
|
|
7335
|
+
const { cascade: D = !0, leafOnly: G = !1, checkStrategy: R = "all", allowNotLoaded: L = !1 } = U;
|
|
7336
7336
|
return nA({
|
|
7337
7337
|
checkedKeys: tA(H),
|
|
7338
7338
|
indeterminateKeys: iA(H),
|
|
7339
7339
|
keysToUncheck: T == null ? [] : Al(T),
|
|
7340
|
-
cascade:
|
|
7340
|
+
cascade: D,
|
|
7341
7341
|
leafOnly: G,
|
|
7342
7342
|
checkStrategy: R,
|
|
7343
7343
|
allowNotLoaded: L
|
|
@@ -7620,28 +7620,28 @@ const Fp = Ct({
|
|
|
7620
7620
|
} = ys(n), g = ai("Popover", "-popover", vp, vh, n, A), u = W(null), I = ht("NPopover"), f = W(null), Q = W(n.show), y = W(!1);
|
|
7621
7621
|
qi(() => {
|
|
7622
7622
|
const {
|
|
7623
|
-
show:
|
|
7623
|
+
show: D
|
|
7624
7624
|
} = n;
|
|
7625
|
-
|
|
7625
|
+
D && !TC() && !n.internalDeactivateImmediately && (y.value = !0);
|
|
7626
7626
|
});
|
|
7627
7627
|
const b = ae(() => {
|
|
7628
7628
|
const {
|
|
7629
|
-
trigger:
|
|
7629
|
+
trigger: D,
|
|
7630
7630
|
onClickoutside: G
|
|
7631
7631
|
} = n, R = [], {
|
|
7632
7632
|
positionManuallyRef: {
|
|
7633
7633
|
value: L
|
|
7634
7634
|
}
|
|
7635
7635
|
} = I;
|
|
7636
|
-
return L || (
|
|
7636
|
+
return L || (D === "click" && !G && R.push([hc, T, void 0, {
|
|
7637
7637
|
capture: !0
|
|
7638
|
-
}]),
|
|
7638
|
+
}]), D === "hover" && R.push([V0, J])), G && R.push([hc, T, void 0, {
|
|
7639
7639
|
capture: !0
|
|
7640
7640
|
}]), (n.displayDirective === "show" || n.animated && y.value) && R.push([Ud, n.show]), R;
|
|
7641
|
-
}),
|
|
7641
|
+
}), S = ae(() => {
|
|
7642
7642
|
const {
|
|
7643
7643
|
common: {
|
|
7644
|
-
cubicBezierEaseInOut:
|
|
7644
|
+
cubicBezierEaseInOut: D,
|
|
7645
7645
|
cubicBezierEaseIn: G,
|
|
7646
7646
|
cubicBezierEaseOut: R
|
|
7647
7647
|
},
|
|
@@ -7662,7 +7662,7 @@ const Fp = Ct({
|
|
|
7662
7662
|
} = g.value;
|
|
7663
7663
|
return {
|
|
7664
7664
|
"--n-box-shadow": te,
|
|
7665
|
-
"--n-bezier":
|
|
7665
|
+
"--n-bezier": D,
|
|
7666
7666
|
"--n-bezier-ease-in": G,
|
|
7667
7667
|
"--n-bezier-ease-out": R,
|
|
7668
7668
|
"--n-font-size": V,
|
|
@@ -7678,9 +7678,9 @@ const Fp = Ct({
|
|
|
7678
7678
|
"--n-space-arrow": P
|
|
7679
7679
|
};
|
|
7680
7680
|
}), w = ae(() => {
|
|
7681
|
-
const
|
|
7682
|
-
|
|
7683
|
-
width:
|
|
7681
|
+
const D = n.width === "trigger" ? void 0 : _r(n.width), G = [];
|
|
7682
|
+
D && G.push({
|
|
7683
|
+
width: D
|
|
7684
7684
|
});
|
|
7685
7685
|
const {
|
|
7686
7686
|
maxWidth: R,
|
|
@@ -7690,30 +7690,30 @@ const Fp = Ct({
|
|
|
7690
7690
|
maxWidth: _r(R)
|
|
7691
7691
|
}), L && G.push({
|
|
7692
7692
|
maxWidth: _r(L)
|
|
7693
|
-
}), c || G.push(
|
|
7694
|
-
}), k = c ? bs("popover", void 0,
|
|
7693
|
+
}), c || G.push(S.value), G;
|
|
7694
|
+
}), k = c ? bs("popover", void 0, S, n) : void 0;
|
|
7695
7695
|
I.setBodyInstance({
|
|
7696
7696
|
syncPosition: M
|
|
7697
7697
|
}), Di(() => {
|
|
7698
7698
|
I.setBodyInstance(null);
|
|
7699
|
-
}), wt(dt(n, "show"), (
|
|
7700
|
-
n.animated || (
|
|
7699
|
+
}), wt(dt(n, "show"), (D) => {
|
|
7700
|
+
n.animated || (D ? Q.value = !0 : Q.value = !1);
|
|
7701
7701
|
});
|
|
7702
7702
|
function M() {
|
|
7703
|
-
var
|
|
7704
|
-
(
|
|
7703
|
+
var D;
|
|
7704
|
+
(D = u.value) === null || D === void 0 || D.syncPosition();
|
|
7705
7705
|
}
|
|
7706
|
-
function F(
|
|
7707
|
-
n.trigger === "hover" && n.keepAliveOnHover && n.show && I.handleMouseEnter(
|
|
7706
|
+
function F(D) {
|
|
7707
|
+
n.trigger === "hover" && n.keepAliveOnHover && n.show && I.handleMouseEnter(D);
|
|
7708
7708
|
}
|
|
7709
|
-
function O(
|
|
7710
|
-
n.trigger === "hover" && n.keepAliveOnHover && I.handleMouseLeave(
|
|
7709
|
+
function O(D) {
|
|
7710
|
+
n.trigger === "hover" && n.keepAliveOnHover && I.handleMouseLeave(D);
|
|
7711
7711
|
}
|
|
7712
|
-
function J(
|
|
7713
|
-
n.trigger === "hover" && !H().contains($r(
|
|
7712
|
+
function J(D) {
|
|
7713
|
+
n.trigger === "hover" && !H().contains($r(D)) && I.handleMouseMoveOutside(D);
|
|
7714
7714
|
}
|
|
7715
|
-
function T(
|
|
7716
|
-
(n.trigger === "click" && !H().contains($r(
|
|
7715
|
+
function T(D) {
|
|
7716
|
+
(n.trigger === "click" && !H().contains($r(D)) || n.onClickoutside) && I.handleClickOutside(D);
|
|
7717
7717
|
}
|
|
7718
7718
|
function H() {
|
|
7719
7719
|
return I.getTriggerElement();
|
|
@@ -7965,7 +7965,7 @@ const oo = {
|
|
|
7965
7965
|
return !!q?.();
|
|
7966
7966
|
}, I = () => u() ? !1 : c.value, f = Mg(n, ["arrow", "showArrow"]), Q = ae(() => n.overlap ? !1 : f.value);
|
|
7967
7967
|
let y = null;
|
|
7968
|
-
const b = W(null),
|
|
7968
|
+
const b = W(null), S = W(null), w = Ki(() => n.x !== void 0 && n.y !== void 0);
|
|
7969
7969
|
function k(q) {
|
|
7970
7970
|
const {
|
|
7971
7971
|
"onUpdate:show": ee,
|
|
@@ -7987,8 +7987,8 @@ const oo = {
|
|
|
7987
7987
|
function O() {
|
|
7988
7988
|
const {
|
|
7989
7989
|
value: q
|
|
7990
|
-
} =
|
|
7991
|
-
q && (window.clearTimeout(q),
|
|
7990
|
+
} = S;
|
|
7991
|
+
q && (window.clearTimeout(q), S.value = null);
|
|
7992
7992
|
}
|
|
7993
7993
|
function J() {
|
|
7994
7994
|
const q = u();
|
|
@@ -8019,16 +8019,16 @@ const oo = {
|
|
|
8019
8019
|
function U() {
|
|
8020
8020
|
const q = u();
|
|
8021
8021
|
if (n.trigger === "hover" && !q) {
|
|
8022
|
-
if (F(),
|
|
8022
|
+
if (F(), S.value !== null || !I()) return;
|
|
8023
8023
|
const ee = () => {
|
|
8024
|
-
k(!1),
|
|
8024
|
+
k(!1), S.value = null;
|
|
8025
8025
|
}, {
|
|
8026
8026
|
duration: te
|
|
8027
8027
|
} = n;
|
|
8028
|
-
te === 0 ? ee() :
|
|
8028
|
+
te === 0 ? ee() : S.value = window.setTimeout(ee, te);
|
|
8029
8029
|
}
|
|
8030
8030
|
}
|
|
8031
|
-
function
|
|
8031
|
+
function D() {
|
|
8032
8032
|
U();
|
|
8033
8033
|
}
|
|
8034
8034
|
function G(q) {
|
|
@@ -8061,7 +8061,7 @@ const oo = {
|
|
|
8061
8061
|
handleMouseEnter: H,
|
|
8062
8062
|
handleMouseLeave: U,
|
|
8063
8063
|
handleClickOutside: G,
|
|
8064
|
-
handleMouseMoveOutside:
|
|
8064
|
+
handleMouseMoveOutside: D,
|
|
8065
8065
|
setBodyInstance: V,
|
|
8066
8066
|
positionManuallyRef: w,
|
|
8067
8067
|
isMountedRef: t,
|
|
@@ -8203,7 +8203,7 @@ function Gp(n) {
|
|
|
8203
8203
|
fontSizeSmall: Q,
|
|
8204
8204
|
fontSizeMedium: y,
|
|
8205
8205
|
fontSizeLarge: b,
|
|
8206
|
-
borderRadiusSmall:
|
|
8206
|
+
borderRadiusSmall: S,
|
|
8207
8207
|
lineHeight: w
|
|
8208
8208
|
} = n;
|
|
8209
8209
|
return Object.assign(Object.assign({}, Lp), {
|
|
@@ -8211,7 +8211,7 @@ function Gp(n) {
|
|
|
8211
8211
|
fontSizeSmall: Q,
|
|
8212
8212
|
fontSizeMedium: y,
|
|
8213
8213
|
fontSizeLarge: b,
|
|
8214
|
-
borderRadius:
|
|
8214
|
+
borderRadius: S,
|
|
8215
8215
|
color: t,
|
|
8216
8216
|
colorChecked: I,
|
|
8217
8217
|
colorDisabled: i,
|
|
@@ -8428,9 +8428,9 @@ const Tp = {
|
|
|
8428
8428
|
}), Q = OC(n, {
|
|
8429
8429
|
mergedSize(U) {
|
|
8430
8430
|
const {
|
|
8431
|
-
size:
|
|
8431
|
+
size: D
|
|
8432
8432
|
} = n;
|
|
8433
|
-
if (
|
|
8433
|
+
if (D !== void 0) return D;
|
|
8434
8434
|
if (t) {
|
|
8435
8435
|
const {
|
|
8436
8436
|
value: G
|
|
@@ -8448,9 +8448,9 @@ const Tp = {
|
|
|
8448
8448
|
},
|
|
8449
8449
|
mergedDisabled(U) {
|
|
8450
8450
|
const {
|
|
8451
|
-
disabled:
|
|
8451
|
+
disabled: D
|
|
8452
8452
|
} = n;
|
|
8453
|
-
if (
|
|
8453
|
+
if (D !== void 0) return D;
|
|
8454
8454
|
if (t) {
|
|
8455
8455
|
if (t.disabledRef.value) return !0;
|
|
8456
8456
|
const {
|
|
@@ -8474,20 +8474,20 @@ const Tp = {
|
|
|
8474
8474
|
}), {
|
|
8475
8475
|
mergedDisabledRef: y,
|
|
8476
8476
|
mergedSizeRef: b
|
|
8477
|
-
} = Q,
|
|
8477
|
+
} = Q, S = ai("Checkbox", "-checkbox", Op, Tp, n, r);
|
|
8478
8478
|
function w(U) {
|
|
8479
8479
|
if (t && n.value !== void 0)
|
|
8480
8480
|
t.toggleCheckbox(!f.value, n.value);
|
|
8481
8481
|
else {
|
|
8482
8482
|
const {
|
|
8483
|
-
onChange:
|
|
8483
|
+
onChange: D,
|
|
8484
8484
|
"onUpdate:checked": G,
|
|
8485
8485
|
onUpdateChecked: R
|
|
8486
8486
|
} = n, {
|
|
8487
8487
|
nTriggerFormInput: L,
|
|
8488
8488
|
nTriggerFormChange: P
|
|
8489
8489
|
} = Q, K = f.value ? n.uncheckedValue : n.checkedValue;
|
|
8490
|
-
G && xi(G, K, U), R && xi(R, K, U),
|
|
8490
|
+
G && xi(G, K, U), R && xi(R, K, U), D && xi(D, K, U), L(), P(), g.value = K;
|
|
8491
8491
|
}
|
|
8492
8492
|
}
|
|
8493
8493
|
function k(U) {
|
|
@@ -8521,7 +8521,7 @@ const Tp = {
|
|
|
8521
8521
|
value: U
|
|
8522
8522
|
} = b, {
|
|
8523
8523
|
common: {
|
|
8524
|
-
cubicBezierEaseInOut:
|
|
8524
|
+
cubicBezierEaseInOut: D
|
|
8525
8525
|
},
|
|
8526
8526
|
self: {
|
|
8527
8527
|
borderRadius: G,
|
|
@@ -8549,12 +8549,12 @@ const Tp = {
|
|
|
8549
8549
|
[Pi("fontSize", U)]: Qe,
|
|
8550
8550
|
[Pi("size", U)]: Ee
|
|
8551
8551
|
}
|
|
8552
|
-
} =
|
|
8552
|
+
} = S.value;
|
|
8553
8553
|
return {
|
|
8554
8554
|
"--n-label-line-height": ue,
|
|
8555
8555
|
"--n-label-font-weight": X,
|
|
8556
8556
|
"--n-size": Ee,
|
|
8557
|
-
"--n-bezier":
|
|
8557
|
+
"--n-bezier": D,
|
|
8558
8558
|
"--n-border-radius": G,
|
|
8559
8559
|
"--n-border": te,
|
|
8560
8560
|
"--n-border-checked": Be,
|
|
@@ -8584,7 +8584,7 @@ const Tp = {
|
|
|
8584
8584
|
mergedClsPrefix: r,
|
|
8585
8585
|
mergedDisabled: y,
|
|
8586
8586
|
renderedChecked: f,
|
|
8587
|
-
mergedTheme:
|
|
8587
|
+
mergedTheme: S,
|
|
8588
8588
|
labelId: Rg(),
|
|
8589
8589
|
handleClick: k,
|
|
8590
8590
|
handleKeyUp: M,
|
|
@@ -8609,7 +8609,7 @@ const Tp = {
|
|
|
8609
8609
|
focusable: Q,
|
|
8610
8610
|
handleKeyUp: y,
|
|
8611
8611
|
handleKeyDown: b,
|
|
8612
|
-
handleClick:
|
|
8612
|
+
handleClick: S
|
|
8613
8613
|
} = this;
|
|
8614
8614
|
(n = this.onRender) === null || n === void 0 || n.call(this);
|
|
8615
8615
|
const w = qr(t.default, (k) => I || k ? re("span", {
|
|
@@ -8626,7 +8626,7 @@ const Tp = {
|
|
|
8626
8626
|
style: g,
|
|
8627
8627
|
onKeyup: y,
|
|
8628
8628
|
onKeydown: b,
|
|
8629
|
-
onClick:
|
|
8629
|
+
onClick: S,
|
|
8630
8630
|
onMousedown: () => {
|
|
8631
8631
|
St("selectstart", window, (k) => {
|
|
8632
8632
|
k.preventDefault();
|
|
@@ -8687,7 +8687,7 @@ function _p(n) {
|
|
|
8687
8687
|
fontSizeLarge: Q,
|
|
8688
8688
|
fontSizeHuge: y,
|
|
8689
8689
|
heightSmall: b,
|
|
8690
|
-
heightMedium:
|
|
8690
|
+
heightMedium: S,
|
|
8691
8691
|
heightLarge: w,
|
|
8692
8692
|
heightHuge: k,
|
|
8693
8693
|
textColor3: M,
|
|
@@ -8695,7 +8695,7 @@ function _p(n) {
|
|
|
8695
8695
|
} = n;
|
|
8696
8696
|
return Object.assign(Object.assign({}, Kp), {
|
|
8697
8697
|
optionHeightSmall: b,
|
|
8698
|
-
optionHeightMedium:
|
|
8698
|
+
optionHeightMedium: S,
|
|
8699
8699
|
optionHeightLarge: w,
|
|
8700
8700
|
optionHeightHuge: k,
|
|
8701
8701
|
borderRadius: u,
|
|
@@ -8978,7 +8978,7 @@ const Nh = Ct({
|
|
|
8978
8978
|
renderIconRef: Q,
|
|
8979
8979
|
labelFieldRef: y,
|
|
8980
8980
|
childrenFieldRef: b,
|
|
8981
|
-
renderOptionRef:
|
|
8981
|
+
renderOptionRef: S,
|
|
8982
8982
|
nodePropsRef: w,
|
|
8983
8983
|
menuPropsRef: k
|
|
8984
8984
|
} = t, M = ht(gl, null), F = ht(co), O = ht(fa), J = ae(() => n.tmNode.rawNode), T = ae(() => {
|
|
@@ -9008,7 +9008,7 @@ const Nh = Ct({
|
|
|
9008
9008
|
value: Me
|
|
9009
9009
|
} = c;
|
|
9010
9010
|
return ne !== null ? Me.includes(te) : Be !== null ? Me.includes(te) && Me[Me.length - 1] !== te : xe !== null ? Me.includes(te) : !1;
|
|
9011
|
-
}),
|
|
9011
|
+
}), D = ae(() => r.value === null && !u.value), G = q0(U, 300, D), R = ae(() => !!M?.enteringSubmenuRef.value), L = W(!1);
|
|
9012
9012
|
mi(gl, {
|
|
9013
9013
|
enteringSubmenuRef: L
|
|
9014
9014
|
});
|
|
@@ -9087,7 +9087,7 @@ const Nh = Ct({
|
|
|
9087
9087
|
return ne === -1 ? !1 : ne === te.length - 1;
|
|
9088
9088
|
}),
|
|
9089
9089
|
mergedDisabled: H,
|
|
9090
|
-
renderOption:
|
|
9090
|
+
renderOption: S,
|
|
9091
9091
|
nodeProps: w,
|
|
9092
9092
|
handleClick: ee,
|
|
9093
9093
|
handleMouseMove: $,
|
|
@@ -9111,7 +9111,7 @@ const Nh = Ct({
|
|
|
9111
9111
|
renderOption: Q,
|
|
9112
9112
|
nodeProps: y,
|
|
9113
9113
|
props: b,
|
|
9114
|
-
scrollable:
|
|
9114
|
+
scrollable: S
|
|
9115
9115
|
} = this;
|
|
9116
9116
|
let w = null;
|
|
9117
9117
|
if (A) {
|
|
@@ -9149,8 +9149,8 @@ const Nh = Ct({
|
|
|
9149
9149
|
}, re(Og, {
|
|
9150
9150
|
show: this.mergedShowSubmenu,
|
|
9151
9151
|
placement: this.placement,
|
|
9152
|
-
to:
|
|
9153
|
-
teleportDisabled: !
|
|
9152
|
+
to: S && this.popoverBody || void 0,
|
|
9153
|
+
teleportDisabled: !S
|
|
9154
9154
|
}, {
|
|
9155
9155
|
default: () => re("div", {
|
|
9156
9156
|
class: `${c}-dropdown-menu-wrapper`
|
|
@@ -9542,14 +9542,14 @@ const Nh = Ct({
|
|
|
9542
9542
|
},
|
|
9543
9543
|
Enter: {
|
|
9544
9544
|
prevent: !0,
|
|
9545
|
-
handler:
|
|
9545
|
+
handler: D
|
|
9546
9546
|
},
|
|
9547
9547
|
Escape: O
|
|
9548
9548
|
}
|
|
9549
9549
|
}, y);
|
|
9550
9550
|
const {
|
|
9551
9551
|
mergedClsPrefixRef: b,
|
|
9552
|
-
inlineThemeDisabled:
|
|
9552
|
+
inlineThemeDisabled: S
|
|
9553
9553
|
} = ys(n), w = ai("Dropdown", "-dropdown", nQ, qp, n, b);
|
|
9554
9554
|
mi(Qa, {
|
|
9555
9555
|
labelFieldRef: dt(n, "labelField"),
|
|
@@ -9602,7 +9602,7 @@ const Nh = Ct({
|
|
|
9602
9602
|
function U() {
|
|
9603
9603
|
R("down");
|
|
9604
9604
|
}
|
|
9605
|
-
function
|
|
9605
|
+
function D() {
|
|
9606
9606
|
const K = G();
|
|
9607
9607
|
K?.isLeaf && i.value && (k(K.key, K.rawNode), M(!1));
|
|
9608
9608
|
}
|
|
@@ -9686,7 +9686,7 @@ const Nh = Ct({
|
|
|
9686
9686
|
"--n-option-opacity-disabled": ne
|
|
9687
9687
|
};
|
|
9688
9688
|
return V ? (z["--n-color"] = q.colorInverted, z["--n-option-color-hover"] = q.optionColorHoverInverted, z["--n-option-color-active"] = q.optionColorActiveInverted, z["--n-option-text-color"] = q.optionTextColorInverted, z["--n-option-text-color-hover"] = q.optionTextColorHoverInverted, z["--n-option-text-color-active"] = q.optionTextColorActiveInverted, z["--n-option-text-color-child-active"] = q.optionTextColorChildActiveInverted, z["--n-prefix-color"] = q.prefixColorInverted, z["--n-suffix-color"] = q.suffixColorInverted, z["--n-group-header-text-color"] = q.groupHeaderTextColorInverted) : (z["--n-color"] = q.color, z["--n-option-color-hover"] = q.optionColorHover, z["--n-option-color-active"] = q.optionColorActive, z["--n-option-text-color"] = q.optionTextColor, z["--n-option-text-color-hover"] = q.optionTextColorHover, z["--n-option-text-color-active"] = q.optionTextColorActive, z["--n-option-text-color-child-active"] = q.optionTextColorChildActive, z["--n-prefix-color"] = q.prefixColor, z["--n-suffix-color"] = q.suffixColor, z["--n-group-header-text-color"] = q.groupHeaderTextColor), z;
|
|
9689
|
-
}), P =
|
|
9689
|
+
}), P = S ? bs("dropdown", ae(() => `${n.size[0]}${n.inverted ? "i" : ""}`), L, n) : void 0;
|
|
9690
9690
|
return {
|
|
9691
9691
|
mergedClsPrefix: b,
|
|
9692
9692
|
mergedTheme: w,
|
|
@@ -9699,7 +9699,7 @@ const Nh = Ct({
|
|
|
9699
9699
|
n.animated && F();
|
|
9700
9700
|
},
|
|
9701
9701
|
doUpdateShow: M,
|
|
9702
|
-
cssVars:
|
|
9702
|
+
cssVars: S ? void 0 : L,
|
|
9703
9703
|
themeClass: P?.themeClass,
|
|
9704
9704
|
onRender: P?.onRender
|
|
9705
9705
|
};
|
|
@@ -9712,7 +9712,7 @@ const Nh = Ct({
|
|
|
9712
9712
|
menuProps: Q
|
|
9713
9713
|
} = this;
|
|
9714
9714
|
(I = this.onRender) === null || I === void 0 || I.call(this);
|
|
9715
|
-
const y = Q?.(void 0, this.tmNodes.map((
|
|
9715
|
+
const y = Q?.(void 0, this.tmNodes.map((S) => S.rawNode)) || {}, b = {
|
|
9716
9716
|
ref: UC(A),
|
|
9717
9717
|
class: [r, `${f}-dropdown`, this.themeClass],
|
|
9718
9718
|
clsPrefix: f,
|
|
@@ -9862,14 +9862,14 @@ const oQ = {
|
|
|
9862
9862
|
} = r.value, {
|
|
9863
9863
|
opacitySpinning: y,
|
|
9864
9864
|
color: b,
|
|
9865
|
-
textColor:
|
|
9865
|
+
textColor: S
|
|
9866
9866
|
} = Q, w = typeof I == "number" ? B0(I) : Q[Pi("size", I)];
|
|
9867
9867
|
return {
|
|
9868
9868
|
"--n-bezier": f,
|
|
9869
9869
|
"--n-opacity-spinning": y,
|
|
9870
9870
|
"--n-size": w,
|
|
9871
9871
|
"--n-color": b,
|
|
9872
|
-
"--n-text-color":
|
|
9872
|
+
"--n-text-color": S
|
|
9873
9873
|
};
|
|
9874
9874
|
}), c = i ? bs("spin", ae(() => {
|
|
9875
9875
|
const {
|
|
@@ -10070,12 +10070,12 @@ const oQ = {
|
|
|
10070
10070
|
}
|
|
10071
10071
|
], g = ae(() => c.find((y) => y.key === f.value)?.label), u = ae(() => {
|
|
10072
10072
|
if (!r.state) return {};
|
|
10073
|
-
const y = c.find((
|
|
10073
|
+
const y = c.find((S) => S.key === f.value);
|
|
10074
10074
|
if (!y) return {};
|
|
10075
10075
|
const b = { backgroundColor: y.backgroundColor };
|
|
10076
10076
|
return r.isDisabled && (b.opacity = 0.5, b.cursor = "default"), b;
|
|
10077
10077
|
}), I = (y, b = !1) => {
|
|
10078
|
-
f.value = y, Q.value = c.find((
|
|
10078
|
+
f.value = y, Q.value = c.find((S) => S.key === y)?.iconString, !b && i("select", y);
|
|
10079
10079
|
}, f = W(r.state), Q = W(null);
|
|
10080
10080
|
return wt(() => r.state, (y) => {
|
|
10081
10081
|
I(y);
|
|
@@ -10085,10 +10085,10 @@ const oQ = {
|
|
|
10085
10085
|
class: "internal-dropdown",
|
|
10086
10086
|
style: ri(u.value)
|
|
10087
10087
|
}, [
|
|
10088
|
-
bi(
|
|
10088
|
+
bi(Fe(Lh), {
|
|
10089
10089
|
trigger: "click",
|
|
10090
10090
|
options: c,
|
|
10091
|
-
onSelect: b[0] || (b[0] = (
|
|
10091
|
+
onSelect: b[0] || (b[0] = (S) => I(S)),
|
|
10092
10092
|
disabled: n.isDisabled
|
|
10093
10093
|
}, {
|
|
10094
10094
|
default: zl(() => [
|
|
@@ -10100,7 +10100,7 @@ const oQ = {
|
|
|
10100
10100
|
We("div", DQ, yi(g.value), 1),
|
|
10101
10101
|
We("div", {
|
|
10102
10102
|
class: "dropdown-caret",
|
|
10103
|
-
innerHTML:
|
|
10103
|
+
innerHTML: Fe(an).caretDown
|
|
10104
10104
|
}, null, 8, vQ)
|
|
10105
10105
|
])
|
|
10106
10106
|
]),
|
|
@@ -10142,7 +10142,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10142
10142
|
const i = t, r = hn(), A = n, { proxy: c } = ji(), g = c.$superdoc.config.role, u = c.$superdoc.config.isInternal, I = A.comment.creatorEmail === c.$superdoc.config.user.email, f = Object.freeze({
|
|
10143
10143
|
edit: { label: "Edit", key: "edit" },
|
|
10144
10144
|
delete: { label: "Delete", key: "delete" }
|
|
10145
|
-
}), Q = ae(() => !(!A.comment || A.comment.resolvedTime || r.pendingComment || A.isPendingInput)), y = ae(() => !Q.value || A.comment.parentCommentId ? !1 : us(I ? Jt.RESOLVE_OWN : Jt.RESOLVE_OTHER, g, u)), b = ae(() => !Q.value || !A.comment.trackedChange ? !1 : us(I ? Jt.REJECT_OWN : Jt.REJECT_OTHER, g, u)),
|
|
10145
|
+
}), Q = ae(() => !(!A.comment || A.comment.resolvedTime || r.pendingComment || A.isPendingInput)), y = ae(() => !Q.value || A.comment.parentCommentId ? !1 : us(I ? Jt.RESOLVE_OWN : Jt.RESOLVE_OTHER, g, u)), b = ae(() => !Q.value || !A.comment.trackedChange ? !1 : us(I ? Jt.REJECT_OWN : Jt.REJECT_OTHER, g, u)), S = ae(() => !(!Q.value || A.comment.trackedChange || A.isPendingInput || w.value.length === 0)), w = ae(() => {
|
|
10146
10146
|
if (!Q.value) return !1;
|
|
10147
10147
|
const J = [], T = /* @__PURE__ */ new Set();
|
|
10148
10148
|
A.comment.creatorEmail === c.$superdoc.config.user.email && T.add("edit");
|
|
@@ -10157,23 +10157,23 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10157
10157
|
}, null, 8, ["user"]),
|
|
10158
10158
|
We("div", MQ, [
|
|
10159
10159
|
We("div", LQ, yi(O.value.name), 1),
|
|
10160
|
-
A.comment.createdTime ? (fe(), ye("div", GQ, yi(
|
|
10160
|
+
A.comment.createdTime ? (fe(), ye("div", GQ, yi(Fe(xQ)(A.comment.createdTime)), 1)) : Ze("", !0)
|
|
10161
10161
|
])
|
|
10162
10162
|
]),
|
|
10163
10163
|
We("div", TQ, [
|
|
10164
10164
|
y.value ? (fe(), ye("div", {
|
|
10165
10165
|
key: 0,
|
|
10166
10166
|
class: "overflow-menu__icon",
|
|
10167
|
-
innerHTML:
|
|
10167
|
+
innerHTML: Fe(an).markDone,
|
|
10168
10168
|
onClick: Qi(k, ["stop", "prevent"])
|
|
10169
10169
|
}, null, 8, UQ)) : Ze("", !0),
|
|
10170
10170
|
b.value ? (fe(), ye("div", {
|
|
10171
10171
|
key: 1,
|
|
10172
10172
|
class: "overflow-menu__icon",
|
|
10173
|
-
innerHTML:
|
|
10173
|
+
innerHTML: Fe(an).rejectChange,
|
|
10174
10174
|
onClick: Qi(M, ["stop", "prevent"])
|
|
10175
10175
|
}, null, 8, HQ)) : Ze("", !0),
|
|
10176
|
-
|
|
10176
|
+
S.value ? (fe(), hi(Fe(Lh), {
|
|
10177
10177
|
key: 2,
|
|
10178
10178
|
trigger: "click",
|
|
10179
10179
|
options: w.value,
|
|
@@ -10187,7 +10187,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10187
10187
|
}, [
|
|
10188
10188
|
We("div", {
|
|
10189
10189
|
class: "overflow-icon",
|
|
10190
|
-
innerHTML:
|
|
10190
|
+
innerHTML: Fe(an).overflow
|
|
10191
10191
|
}, null, 8, PQ)
|
|
10192
10192
|
])
|
|
10193
10193
|
]),
|
|
@@ -10236,10 +10236,10 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10236
10236
|
We("div", {
|
|
10237
10237
|
class: Xs(["comment-entry", { "sd-input-active": n.isFocused }])
|
|
10238
10238
|
}, [
|
|
10239
|
-
bi(
|
|
10239
|
+
bi(Fe(wd), {
|
|
10240
10240
|
class: "superdoc-field",
|
|
10241
10241
|
placeholder: "Add a comment",
|
|
10242
|
-
modelValue:
|
|
10242
|
+
modelValue: Fe(A),
|
|
10243
10243
|
"onUpdate:modelValue": u[0] || (u[0] = (I) => zn(A) ? A.value = I : null),
|
|
10244
10244
|
users: n.users,
|
|
10245
10245
|
onFocus: u[1] || (u[1] = (I) => c(!0)),
|
|
@@ -10292,7 +10292,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10292
10292
|
const c = Ri(), g = hn(), { addComment: u, cancelComment: I, deleteComment: f, removePendingComment: Q } = g, {
|
|
10293
10293
|
suppressInternalExternal: y,
|
|
10294
10294
|
getConfig: b,
|
|
10295
|
-
activeComment:
|
|
10295
|
+
activeComment: S,
|
|
10296
10296
|
floatingCommentsOffset: w,
|
|
10297
10297
|
pendingComment: k,
|
|
10298
10298
|
currentCommentText: M,
|
|
@@ -10301,16 +10301,16 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10301
10301
|
editorCommentPositions: J
|
|
10302
10302
|
} = wi(g), { activeZoom: T } = wi(c), H = W(!0);
|
|
10303
10303
|
W(!1);
|
|
10304
|
-
const U = W(null),
|
|
10304
|
+
const U = W(null), D = W(null), G = ae(() => S.value === r.comment.commentId), R = ae(() => !b.readOnly && G.value && !r.comment.resolvedTime && O.value !== r.comment.commentId), L = ae(() => (X) => P.value && X === K.value.length - 1 ? !0 : K.value.length > 1 && X !== K.value.length - 1), P = ae(() => !b.readOnly && G.value && !r.comment.resolvedTime && O.value !== r.comment.commentId), K = ae(() => {
|
|
10305
10305
|
const X = r.comment;
|
|
10306
10306
|
return g.commentsList.filter((Qe) => {
|
|
10307
10307
|
const Ee = Qe.parentCommentId === X.commentId, Se = Qe.commentId === r.comment.commentId;
|
|
10308
10308
|
return Ee || Se;
|
|
10309
10309
|
}).sort((Qe, Ee) => Qe.commentId === r.comment.commentId && Qe.createdTime - Ee.createdTime);
|
|
10310
10310
|
}), V = ae(() => r.comment.resolvedTime ? !0 : b.value.readOnly), $ = ae(() => (X) => O.value === X.commentId), q = ae(() => A.$superdoc.config.isInternal ? !y.value && !r.comment.trackedChange : !1), ee = ae(() => M.value && M.value !== "<p></p>"), te = () => {
|
|
10311
|
-
r.comment.resolvedTime || (
|
|
10311
|
+
r.comment.resolvedTime || (S.value = r.comment.commentId, r.comment.setActive(A.$superdoc));
|
|
10312
10312
|
}, se = (X) => {
|
|
10313
|
-
X.target.classList.contains("n-dropdown-option-body__label") || X.target.classList.contains("sd-editor-comment-highlight") || (
|
|
10313
|
+
X.target.classList.contains("n-dropdown-option-body__label") || X.target.classList.contains("sd-editor-comment-highlight") || (S.value === r.comment.commentId && (w.value = 0, i("dialog-exit")), S.value = null);
|
|
10314
10314
|
}, ne = () => {
|
|
10315
10315
|
const X = {
|
|
10316
10316
|
documentId: r.comment.fileId,
|
|
@@ -10329,7 +10329,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10329
10329
|
name: c.user.name,
|
|
10330
10330
|
superdoc: A.$superdoc
|
|
10331
10331
|
}), A.$superdoc.activeEditor.commands.rejectTrackedChangeById(r.comment.commentId)) : g.deleteComment({ superdoc: A.$superdoc, commentId: r.comment.commentId }), qt(() => {
|
|
10332
|
-
g.lastUpdate = /* @__PURE__ */ new Date(),
|
|
10332
|
+
g.lastUpdate = /* @__PURE__ */ new Date(), S.value = null;
|
|
10333
10333
|
});
|
|
10334
10334
|
}, xe = () => {
|
|
10335
10335
|
r.comment.trackedChange && A.$superdoc.activeEditor.commands.acceptTrackedChangeById(r.comment.commentId), r.comment.resolveComment({
|
|
@@ -10337,12 +10337,12 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10337
10337
|
name: c.user.name,
|
|
10338
10338
|
superdoc: A.$superdoc
|
|
10339
10339
|
}), qt(() => {
|
|
10340
|
-
g.lastUpdate = /* @__PURE__ */ new Date(),
|
|
10340
|
+
g.lastUpdate = /* @__PURE__ */ new Date(), S.value = null;
|
|
10341
10341
|
});
|
|
10342
10342
|
}, Me = (X, Qe) => {
|
|
10343
10343
|
switch (X) {
|
|
10344
10344
|
case "edit":
|
|
10345
|
-
M.value = Qe.commentText,
|
|
10345
|
+
M.value = Qe.commentText, S.value = Qe.commentId, O.value = Qe.commentId;
|
|
10346
10346
|
break;
|
|
10347
10347
|
case "delete":
|
|
10348
10348
|
f({ superdoc: A.$superdoc, commentId: Qe.commentId });
|
|
@@ -10369,7 +10369,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10369
10369
|
return Ii(() => {
|
|
10370
10370
|
r.autoFocus && qt(() => te()), qt(() => {
|
|
10371
10371
|
const X = r.comment.importedId !== void 0 ? r.comment.importedId : r.comment.commentId;
|
|
10372
|
-
i("ready", { commentId: X, elementRef:
|
|
10372
|
+
i("ready", { commentId: X, elementRef: D });
|
|
10373
10373
|
});
|
|
10374
10374
|
}), (X, Qe) => {
|
|
10375
10375
|
const Ee = Zl("click-outside");
|
|
@@ -10378,7 +10378,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10378
10378
|
onClick: Qi(te, ["stop", "prevent"]),
|
|
10379
10379
|
style: ri(Et.value),
|
|
10380
10380
|
ref_key: "commentDialogElement",
|
|
10381
|
-
ref:
|
|
10381
|
+
ref: D
|
|
10382
10382
|
}, [
|
|
10383
10383
|
q.value ? (fe(), ye("div", KQ, [
|
|
10384
10384
|
bi(kQ, {
|
|
@@ -10395,7 +10395,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10395
10395
|
class: "conversation-item"
|
|
10396
10396
|
}, [
|
|
10397
10397
|
bi(Gh, {
|
|
10398
|
-
config:
|
|
10398
|
+
config: Fe(b),
|
|
10399
10399
|
timestamp: de(Se.createdTime),
|
|
10400
10400
|
comment: Se,
|
|
10401
10401
|
onResolve: xe,
|
|
@@ -10421,14 +10421,14 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10421
10421
|
])
|
|
10422
10422
|
])) : Ze("", !0),
|
|
10423
10423
|
Se.trackedChange ? Ze("", !0) : (fe(), ye("div", em, [
|
|
10424
|
-
!
|
|
10424
|
+
!Fe(F) && !$.value(Se) ? (fe(), ye("div", {
|
|
10425
10425
|
key: 0,
|
|
10426
10426
|
class: "comment",
|
|
10427
10427
|
innerHTML: Se.commentText
|
|
10428
|
-
}, null, 8, tm)) :
|
|
10428
|
+
}, null, 8, tm)) : Fe(F) && !$.value(Se) ? (fe(), ye("div", im, yi(Fe(J)[Se.importedId !== void 0 ? Se.importedId : Se.commentId]?.bounds), 1)) : (fe(), ye("div", nm, [
|
|
10429
10429
|
bi(ul, {
|
|
10430
10430
|
users: ue.value,
|
|
10431
|
-
config:
|
|
10431
|
+
config: Fe(b),
|
|
10432
10432
|
"include-header": !1,
|
|
10433
10433
|
comment: Se
|
|
10434
10434
|
}, null, 8, ["users", "config", "comment"]),
|
|
@@ -10446,18 +10446,18 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10446
10446
|
])),
|
|
10447
10447
|
L.value(_e) ? (fe(), ye("div", Am)) : Ze("", !0)
|
|
10448
10448
|
]))), 128)),
|
|
10449
|
-
P.value && !
|
|
10449
|
+
P.value && !Fe(b).readOnly ? (fe(), ye("div", om, [
|
|
10450
10450
|
bi(ul, {
|
|
10451
10451
|
ref_key: "commentInput",
|
|
10452
10452
|
ref: U,
|
|
10453
10453
|
users: ue.value,
|
|
10454
|
-
config:
|
|
10454
|
+
config: Fe(b),
|
|
10455
10455
|
comment: r.comment
|
|
10456
10456
|
}, null, 8, ["users", "config", "comment"]),
|
|
10457
|
-
R.value && !
|
|
10457
|
+
R.value && !Fe(b).readOnly ? (fe(), ye("div", cm, [
|
|
10458
10458
|
We("button", {
|
|
10459
10459
|
class: "sd-button",
|
|
10460
|
-
onClick: Qe[1] || (Qe[1] = Qi((...Se) =>
|
|
10460
|
+
onClick: Qe[1] || (Qe[1] = Qi((...Se) => Fe(I) && Fe(I)(...Se), ["stop", "prevent"]))
|
|
10461
10461
|
}, "Cancel"),
|
|
10462
10462
|
We("button", {
|
|
10463
10463
|
class: Xs(["sd-button primary", { disabled: !ee.value }]),
|
|
@@ -10493,13 +10493,13 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10493
10493
|
g.value = !1;
|
|
10494
10494
|
}), (f, Q) => (fe(), ye("div", hm, [
|
|
10495
10495
|
n.showMainComments ? (fe(), ye("div", um, [
|
|
10496
|
-
(fe(!0), ye(jt, null, gn(
|
|
10496
|
+
(fe(!0), ye(jt, null, gn(Fe(c).parentComments, (y) => (fe(), ye("div", dm, [
|
|
10497
10497
|
bi(ir, { comment: y }, null, 8, ["comment"])
|
|
10498
10498
|
]))), 256))
|
|
10499
10499
|
])) : Ze("", !0),
|
|
10500
10500
|
I.value ? (fe(), ye("div", Im, [
|
|
10501
10501
|
Q[0] || (Q[0] = We("div", { class: "comment-title" }, "Resolved", -1)),
|
|
10502
|
-
(fe(!0), ye(jt, null, gn(
|
|
10502
|
+
(fe(!0), ye(jt, null, gn(Fe(c).resolvedComments, (y) => (fe(), ye("div", Cm, [
|
|
10503
10503
|
bi(ir, { comment: y }, null, 8, ["comment"])
|
|
10504
10504
|
]))), 256))
|
|
10505
10505
|
])) : Ze("", !0)
|
|
@@ -10618,20 +10618,20 @@ var pm = {
|
|
|
10618
10618
|
5636: (
|
|
10619
10619
|
/***/
|
|
10620
10620
|
(n, t, i) => {
|
|
10621
|
-
var r = i(4475), A = i(9504), c = i(6706), g = i(7696), u = i(3238), I = i(7394), f = i(4483), Q = i(1548), y = r.structuredClone, b = r.ArrayBuffer,
|
|
10622
|
-
n.exports = (Q || f) && function(
|
|
10623
|
-
var L = I(
|
|
10624
|
-
if (u(
|
|
10625
|
-
if (Q && (
|
|
10626
|
-
return
|
|
10621
|
+
var r = i(4475), A = i(9504), c = i(6706), g = i(7696), u = i(3238), I = i(7394), f = i(4483), Q = i(1548), y = r.structuredClone, b = r.ArrayBuffer, S = r.DataView, w = r.TypeError, k = Math.min, M = b.prototype, F = S.prototype, O = A(M.slice), J = c(M, "resizable", "get"), T = c(M, "maxByteLength", "get"), H = A(F.getInt8), U = A(F.setInt8);
|
|
10622
|
+
n.exports = (Q || f) && function(D, G, R) {
|
|
10623
|
+
var L = I(D), P = G === void 0 ? L : g(G), K = !J || !J(D), V;
|
|
10624
|
+
if (u(D)) throw new w("ArrayBuffer is detached");
|
|
10625
|
+
if (Q && (D = y(D, { transfer: [D] }), L === P && (R || K)))
|
|
10626
|
+
return D;
|
|
10627
10627
|
if (L >= P && (!R || K))
|
|
10628
|
-
V = O(
|
|
10628
|
+
V = O(D, 0, P);
|
|
10629
10629
|
else {
|
|
10630
|
-
var $ = R && !K && T ? { maxByteLength: T(
|
|
10630
|
+
var $ = R && !K && T ? { maxByteLength: T(D) } : void 0;
|
|
10631
10631
|
V = new b(P, $);
|
|
10632
|
-
for (var q = new D
|
|
10632
|
+
for (var q = new S(D), ee = new S(V), te = k(P, L), se = 0; se < te; se++) U(ee, se, H(q, se));
|
|
10633
10633
|
}
|
|
10634
|
-
return Q || f(
|
|
10634
|
+
return Q || f(D), V;
|
|
10635
10635
|
};
|
|
10636
10636
|
}
|
|
10637
10637
|
),
|
|
@@ -10639,7 +10639,7 @@ var pm = {
|
|
|
10639
10639
|
4644: (
|
|
10640
10640
|
/***/
|
|
10641
10641
|
(n, t, i) => {
|
|
10642
|
-
var r = i(7811), A = i(3724), c = i(4475), g = i(4901), u = i(34), I = i(9297), f = i(6955), Q = i(6823), y = i(6699), b = i(6840),
|
|
10642
|
+
var r = i(7811), A = i(3724), c = i(4475), g = i(4901), u = i(34), I = i(9297), f = i(6955), Q = i(6823), y = i(6699), b = i(6840), S = i(2106), w = i(1625), k = i(2787), M = i(2967), F = i(8227), O = i(3392), J = i(1181), T = J.enforce, H = J.get, U = c.Int8Array, D = U && U.prototype, G = c.Uint8ClampedArray, R = G && G.prototype, L = U && k(U), P = D && k(D), K = Object.prototype, V = c.TypeError, $ = F("toStringTag"), q = O("TYPED_ARRAY_TAG"), ee = "TypedArrayConstructor", te = r && !!M && f(c.opera) !== "Opera", se = !1, ne, Be, xe, Me = {
|
|
10643
10643
|
Int8Array: 1,
|
|
10644
10644
|
Uint8Array: 1,
|
|
10645
10645
|
Uint8ClampedArray: 1,
|
|
@@ -10685,7 +10685,7 @@ var pm = {
|
|
|
10685
10685
|
}
|
|
10686
10686
|
}
|
|
10687
10687
|
}
|
|
10688
|
-
(!P[Ee] || _e) && b(P, Ee, _e ? Se : te &&
|
|
10688
|
+
(!P[Ee] || _e) && b(P, Ee, _e ? Se : te && D[Ee] || Se, ut);
|
|
10689
10689
|
}
|
|
10690
10690
|
}, Qe = function(Ee, Se, _e) {
|
|
10691
10691
|
var ut, he;
|
|
@@ -10722,7 +10722,7 @@ var pm = {
|
|
|
10722
10722
|
for (ne in Me)
|
|
10723
10723
|
c[ne] && M(c[ne].prototype, P);
|
|
10724
10724
|
if (te && k(R) !== P && M(R, P), A && !I(P, $)) {
|
|
10725
|
-
se = !0,
|
|
10725
|
+
se = !0, S(P, $, {
|
|
10726
10726
|
configurable: !0,
|
|
10727
10727
|
get: function() {
|
|
10728
10728
|
return u(this) ? this[q] : void 0;
|
|
@@ -10764,12 +10764,12 @@ var pm = {
|
|
|
10764
10764
|
return function(I, f, Q) {
|
|
10765
10765
|
var y = r(I), b = c(y);
|
|
10766
10766
|
if (b === 0) return !u && -1;
|
|
10767
|
-
var
|
|
10767
|
+
var S = A(Q, b), w;
|
|
10768
10768
|
if (u && f !== f) {
|
|
10769
|
-
for (; b >
|
|
10770
|
-
if (w = y[
|
|
10771
|
-
} else for (; b >
|
|
10772
|
-
if ((u ||
|
|
10769
|
+
for (; b > S; )
|
|
10770
|
+
if (w = y[S++], w !== w) return !0;
|
|
10771
|
+
} else for (; b > S; S++)
|
|
10772
|
+
if ((u || S in y) && y[S] === f) return u || S || 0;
|
|
10773
10773
|
return !u && -1;
|
|
10774
10774
|
};
|
|
10775
10775
|
};
|
|
@@ -10823,8 +10823,8 @@ var pm = {
|
|
|
10823
10823
|
n.exports = function(g, u, I, f) {
|
|
10824
10824
|
var Q = r(g), y = A(I), b = y < 0 ? Q + y : y;
|
|
10825
10825
|
if (b >= Q || b < 0) throw new c("Incorrect index");
|
|
10826
|
-
for (var
|
|
10827
|
-
return
|
|
10826
|
+
for (var S = new u(Q), w = 0; w < Q; w++) S[w] = w === b ? f : g[w];
|
|
10827
|
+
return S;
|
|
10828
10828
|
};
|
|
10829
10829
|
}
|
|
10830
10830
|
),
|
|
@@ -10865,8 +10865,8 @@ var pm = {
|
|
|
10865
10865
|
}
|
|
10866
10866
|
};
|
|
10867
10867
|
n.exports = r ? c : function(y) {
|
|
10868
|
-
var b,
|
|
10869
|
-
return y === void 0 ? "Undefined" : y === null ? "Null" : typeof (
|
|
10868
|
+
var b, S, w;
|
|
10869
|
+
return y === void 0 ? "Undefined" : y === null ? "Null" : typeof (S = Q(b = I(y), u)) == "string" ? S : f ? c(b) : (w = c(b)) === "Object" && A(b.callee) ? "Arguments" : w;
|
|
10870
10870
|
};
|
|
10871
10871
|
}
|
|
10872
10872
|
),
|
|
@@ -10876,8 +10876,8 @@ var pm = {
|
|
|
10876
10876
|
(n, t, i) => {
|
|
10877
10877
|
var r = i(9297), A = i(5031), c = i(7347), g = i(4913);
|
|
10878
10878
|
n.exports = function(u, I, f) {
|
|
10879
|
-
for (var Q = A(I), y = g.f, b = c.f,
|
|
10880
|
-
var w = Q[
|
|
10879
|
+
for (var Q = A(I), y = g.f, b = c.f, S = 0; S < Q.length; S++) {
|
|
10880
|
+
var w = Q[S];
|
|
10881
10881
|
!r(u, w) && !(f && r(f, w)) && y(u, w, b(I, w));
|
|
10882
10882
|
}
|
|
10883
10883
|
};
|
|
@@ -11018,15 +11018,15 @@ var pm = {
|
|
|
11018
11018
|
4483: (
|
|
11019
11019
|
/***/
|
|
11020
11020
|
(n, t, i) => {
|
|
11021
|
-
var r = i(4475), A = i(9714), c = i(1548), g = r.structuredClone, u = r.ArrayBuffer, I = r.MessageChannel, f = !1, Q, y, b,
|
|
11021
|
+
var r = i(4475), A = i(9714), c = i(1548), g = r.structuredClone, u = r.ArrayBuffer, I = r.MessageChannel, f = !1, Q, y, b, S;
|
|
11022
11022
|
if (c)
|
|
11023
11023
|
f = function(w) {
|
|
11024
11024
|
g(w, { transfer: [w] });
|
|
11025
11025
|
};
|
|
11026
11026
|
else if (u) try {
|
|
11027
|
-
I || (Q = A("worker_threads"), Q && (I = Q.MessageChannel)), I && (y = new I(), b = new u(2),
|
|
11027
|
+
I || (Q = A("worker_threads"), Q && (I = Q.MessageChannel)), I && (y = new I(), b = new u(2), S = function(w) {
|
|
11028
11028
|
y.port1.postMessage(null, [w]);
|
|
11029
|
-
}, b.byteLength === 2 && (
|
|
11029
|
+
}, b.byteLength === 2 && (S(b), b.byteLength === 0 && (f = S)));
|
|
11030
11030
|
} catch {
|
|
11031
11031
|
}
|
|
11032
11032
|
n.exports = f;
|
|
@@ -11159,9 +11159,9 @@ var pm = {
|
|
|
11159
11159
|
(n, t, i) => {
|
|
11160
11160
|
var r = i(4475), A = i(7347).f, c = i(6699), g = i(6840), u = i(9433), I = i(7740), f = i(2796);
|
|
11161
11161
|
n.exports = function(Q, y) {
|
|
11162
|
-
var b = Q.target,
|
|
11163
|
-
if (
|
|
11164
|
-
if (J = y[F], Q.dontCallGetSet ? (T = A(M, F), O = T && T.value) : O = M[F], k = f(
|
|
11162
|
+
var b = Q.target, S = Q.global, w = Q.stat, k, M, F, O, J, T;
|
|
11163
|
+
if (S ? M = r : w ? M = r[b] || u(b, {}) : M = r[b] && r[b].prototype, M) for (F in y) {
|
|
11164
|
+
if (J = y[F], Q.dontCallGetSet ? (T = A(M, F), O = T && T.value) : O = M[F], k = f(S ? F : b + (w ? "." : "#") + F, Q.forced), !k && O !== void 0) {
|
|
11165
11165
|
if (typeof J == typeof O) continue;
|
|
11166
11166
|
I(J, O);
|
|
11167
11167
|
}
|
|
@@ -11339,23 +11339,23 @@ var pm = {
|
|
|
11339
11339
|
3789: (
|
|
11340
11340
|
/***/
|
|
11341
11341
|
(n, t, i) => {
|
|
11342
|
-
var r = i(9306), A = i(8551), c = i(9565), g = i(1291), u = i(1767), I = "Invalid size", f = RangeError, Q = TypeError, y = Math.max, b = function(
|
|
11343
|
-
this.set =
|
|
11342
|
+
var r = i(9306), A = i(8551), c = i(9565), g = i(1291), u = i(1767), I = "Invalid size", f = RangeError, Q = TypeError, y = Math.max, b = function(S, w) {
|
|
11343
|
+
this.set = S, this.size = y(w, 0), this.has = r(S.has), this.keys = r(S.keys);
|
|
11344
11344
|
};
|
|
11345
11345
|
b.prototype = {
|
|
11346
11346
|
getIterator: function() {
|
|
11347
11347
|
return u(A(c(this.keys, this.set)));
|
|
11348
11348
|
},
|
|
11349
|
-
includes: function(
|
|
11350
|
-
return c(this.has, this.set,
|
|
11349
|
+
includes: function(S) {
|
|
11350
|
+
return c(this.has, this.set, S);
|
|
11351
11351
|
}
|
|
11352
|
-
}, n.exports = function(
|
|
11353
|
-
A(
|
|
11354
|
-
var w = +
|
|
11352
|
+
}, n.exports = function(S) {
|
|
11353
|
+
A(S);
|
|
11354
|
+
var w = +S.size;
|
|
11355
11355
|
if (w !== w) throw new Q(I);
|
|
11356
11356
|
var k = g(w);
|
|
11357
11357
|
if (k < 0) throw new f(I);
|
|
11358
|
-
return new b(
|
|
11358
|
+
return new b(S, k);
|
|
11359
11359
|
};
|
|
11360
11360
|
}
|
|
11361
11361
|
),
|
|
@@ -11454,18 +11454,18 @@ var pm = {
|
|
|
11454
11454
|
1181: (
|
|
11455
11455
|
/***/
|
|
11456
11456
|
(n, t, i) => {
|
|
11457
|
-
var r = i(8622), A = i(4475), c = i(34), g = i(6699), u = i(9297), I = i(7629), f = i(6119), Q = i(421), y = "Object already initialized", b = A.TypeError,
|
|
11457
|
+
var r = i(8622), A = i(4475), c = i(34), g = i(6699), u = i(9297), I = i(7629), f = i(6119), Q = i(421), y = "Object already initialized", b = A.TypeError, S = A.WeakMap, w, k, M, F = function(H) {
|
|
11458
11458
|
return M(H) ? k(H) : w(H, {});
|
|
11459
11459
|
}, O = function(H) {
|
|
11460
11460
|
return function(U) {
|
|
11461
|
-
var
|
|
11462
|
-
if (!c(U) || (
|
|
11461
|
+
var D;
|
|
11462
|
+
if (!c(U) || (D = k(U)).type !== H)
|
|
11463
11463
|
throw new b("Incompatible receiver, " + H + " required");
|
|
11464
|
-
return
|
|
11464
|
+
return D;
|
|
11465
11465
|
};
|
|
11466
11466
|
};
|
|
11467
11467
|
if (r || I.state) {
|
|
11468
|
-
var J = I.state || (I.state = new
|
|
11468
|
+
var J = I.state || (I.state = new S());
|
|
11469
11469
|
J.get = J.get, J.has = J.has, J.set = J.set, w = function(H, U) {
|
|
11470
11470
|
if (J.has(H)) throw new b(y);
|
|
11471
11471
|
return U.facade = H, J.set(H, U), U;
|
|
@@ -11542,8 +11542,8 @@ var pm = {
|
|
|
11542
11542
|
/***/
|
|
11543
11543
|
(n, t, i) => {
|
|
11544
11544
|
var r = i(9039), A = i(4901), c = /#|\.prototype\./, g = function(y, b) {
|
|
11545
|
-
var
|
|
11546
|
-
return
|
|
11545
|
+
var S = I[u(y)];
|
|
11546
|
+
return S === Q ? !0 : S === f ? !1 : A(b) ? r(b) : !!b;
|
|
11547
11547
|
}, u = g.normalize = function(y) {
|
|
11548
11548
|
return String(y).replace(c, ".").toLowerCase();
|
|
11549
11549
|
}, I = g.data = {}, f = g.NATIVE = "N", Q = g.POLYFILL = "P";
|
|
@@ -11614,21 +11614,21 @@ var pm = {
|
|
|
11614
11614
|
2652: (
|
|
11615
11615
|
/***/
|
|
11616
11616
|
(n, t, i) => {
|
|
11617
|
-
var r = i(6080), A = i(9565), c = i(8551), g = i(6823), u = i(4209), I = i(6198), f = i(1625), Q = i(81), y = i(851), b = i(9539),
|
|
11617
|
+
var r = i(6080), A = i(9565), c = i(8551), g = i(6823), u = i(4209), I = i(6198), f = i(1625), Q = i(81), y = i(851), b = i(9539), S = TypeError, w = function(M, F) {
|
|
11618
11618
|
this.stopped = M, this.result = F;
|
|
11619
11619
|
}, k = w.prototype;
|
|
11620
11620
|
n.exports = function(M, F, O) {
|
|
11621
|
-
var J = O && O.that, T = !!(O && O.AS_ENTRIES), H = !!(O && O.IS_RECORD), U = !!(O && O.IS_ITERATOR),
|
|
11621
|
+
var J = O && O.that, T = !!(O && O.AS_ENTRIES), H = !!(O && O.IS_RECORD), U = !!(O && O.IS_ITERATOR), D = !!(O && O.INTERRUPTED), G = r(F, J), R, L, P, K, V, $, q, ee = function(se) {
|
|
11622
11622
|
return R && b(R, "normal", se), new w(!0, se);
|
|
11623
11623
|
}, te = function(se) {
|
|
11624
|
-
return T ? (c(se),
|
|
11624
|
+
return T ? (c(se), D ? G(se[0], se[1], ee) : G(se[0], se[1])) : D ? G(se, ee) : G(se);
|
|
11625
11625
|
};
|
|
11626
11626
|
if (H)
|
|
11627
11627
|
R = M.iterator;
|
|
11628
11628
|
else if (U)
|
|
11629
11629
|
R = M;
|
|
11630
11630
|
else {
|
|
11631
|
-
if (L = y(M), !L) throw new
|
|
11631
|
+
if (L = y(M), !L) throw new S(g(M) + " is not iterable");
|
|
11632
11632
|
if (u(L)) {
|
|
11633
11633
|
for (P = 0, K = I(M); K > P; P++)
|
|
11634
11634
|
if (V = te(M[P]), V && f(k, V)) return V;
|
|
@@ -11675,35 +11675,35 @@ var pm = {
|
|
|
11675
11675
|
9462: (
|
|
11676
11676
|
/***/
|
|
11677
11677
|
(n, t, i) => {
|
|
11678
|
-
var r = i(9565), A = i(2360), c = i(6699), g = i(6279), u = i(8227), I = i(1181), f = i(5966), Q = i(7657).IteratorPrototype, y = i(2529), b = i(9539),
|
|
11678
|
+
var r = i(9565), A = i(2360), c = i(6699), g = i(6279), u = i(8227), I = i(1181), f = i(5966), Q = i(7657).IteratorPrototype, y = i(2529), b = i(9539), S = u("toStringTag"), w = "IteratorHelper", k = "WrapForValidIterator", M = I.set, F = function(T) {
|
|
11679
11679
|
var H = I.getterFor(T ? k : w);
|
|
11680
11680
|
return g(A(Q), {
|
|
11681
11681
|
next: function() {
|
|
11682
|
-
var
|
|
11683
|
-
if (T) return
|
|
11682
|
+
var D = H(this);
|
|
11683
|
+
if (T) return D.nextHandler();
|
|
11684
11684
|
try {
|
|
11685
|
-
var G =
|
|
11686
|
-
return y(G,
|
|
11685
|
+
var G = D.done ? void 0 : D.nextHandler();
|
|
11686
|
+
return y(G, D.done);
|
|
11687
11687
|
} catch (R) {
|
|
11688
|
-
throw
|
|
11688
|
+
throw D.done = !0, R;
|
|
11689
11689
|
}
|
|
11690
11690
|
},
|
|
11691
11691
|
return: function() {
|
|
11692
|
-
var U = H(this),
|
|
11692
|
+
var U = H(this), D = U.iterator;
|
|
11693
11693
|
if (U.done = !0, T) {
|
|
11694
|
-
var G = f(
|
|
11695
|
-
return G ? r(G,
|
|
11694
|
+
var G = f(D, "return");
|
|
11695
|
+
return G ? r(G, D) : y(void 0, !0);
|
|
11696
11696
|
}
|
|
11697
11697
|
if (U.inner) try {
|
|
11698
11698
|
b(U.inner.iterator, "normal");
|
|
11699
11699
|
} catch (R) {
|
|
11700
|
-
return b(
|
|
11700
|
+
return b(D, "throw", R);
|
|
11701
11701
|
}
|
|
11702
|
-
return b(
|
|
11702
|
+
return b(D, "normal"), y(void 0, !0);
|
|
11703
11703
|
}
|
|
11704
11704
|
});
|
|
11705
11705
|
}, O = F(!0), J = F(!1);
|
|
11706
|
-
c(J,
|
|
11706
|
+
c(J, S, "Iterator Helper"), n.exports = function(T, H) {
|
|
11707
11707
|
var U = function(G, R) {
|
|
11708
11708
|
R ? (R.iterator = G.iterator, R.next = G.next) : R = G, R.type = H ? k : w, R.nextHandler = T, R.counter = 0, R.done = !1, M(this, R);
|
|
11709
11709
|
};
|
|
@@ -11730,16 +11730,16 @@ var pm = {
|
|
|
11730
11730
|
7657: (
|
|
11731
11731
|
/***/
|
|
11732
11732
|
(n, t, i) => {
|
|
11733
|
-
var r = i(9039), A = i(4901), c = i(34), g = i(2360), u = i(2787), I = i(6840), f = i(8227), Q = i(6395), y = f("iterator"), b = !1,
|
|
11734
|
-
[].keys && (k = [].keys(), "next" in k ? (w = u(u(k)), w !== Object.prototype && (
|
|
11735
|
-
var M = !c(
|
|
11733
|
+
var r = i(9039), A = i(4901), c = i(34), g = i(2360), u = i(2787), I = i(6840), f = i(8227), Q = i(6395), y = f("iterator"), b = !1, S, w, k;
|
|
11734
|
+
[].keys && (k = [].keys(), "next" in k ? (w = u(u(k)), w !== Object.prototype && (S = w)) : b = !0);
|
|
11735
|
+
var M = !c(S) || r(function() {
|
|
11736
11736
|
var F = {};
|
|
11737
|
-
return
|
|
11737
|
+
return S[y].call(F) !== F;
|
|
11738
11738
|
});
|
|
11739
|
-
M ?
|
|
11739
|
+
M ? S = {} : Q && (S = g(S)), A(S[y]) || I(S, y, function() {
|
|
11740
11740
|
return this;
|
|
11741
11741
|
}), n.exports = {
|
|
11742
|
-
IteratorPrototype:
|
|
11742
|
+
IteratorPrototype: S,
|
|
11743
11743
|
BUGGY_SAFARI_ITERATORS: b
|
|
11744
11744
|
};
|
|
11745
11745
|
}
|
|
@@ -11765,13 +11765,13 @@ var pm = {
|
|
|
11765
11765
|
283: (
|
|
11766
11766
|
/***/
|
|
11767
11767
|
(n, t, i) => {
|
|
11768
|
-
var r = i(9504), A = i(9039), c = i(4901), g = i(9297), u = i(3724), I = i(350).CONFIGURABLE, f = i(3706), Q = i(1181), y = Q.enforce, b = Q.get,
|
|
11768
|
+
var r = i(9504), A = i(9039), c = i(4901), g = i(9297), u = i(3724), I = i(350).CONFIGURABLE, f = i(3706), Q = i(1181), y = Q.enforce, b = Q.get, S = String, w = Object.defineProperty, k = r("".slice), M = r("".replace), F = r([].join), O = u && !A(function() {
|
|
11769
11769
|
return w(function() {
|
|
11770
11770
|
}, "length", { value: 8 }).length !== 8;
|
|
11771
|
-
}), J = String(String).split("String"), T = n.exports = function(H, U,
|
|
11772
|
-
k(
|
|
11771
|
+
}), J = String(String).split("String"), T = n.exports = function(H, U, D) {
|
|
11772
|
+
k(S(U), 0, 7) === "Symbol(" && (U = "[" + M(S(U), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), D && D.getter && (U = "get " + U), D && D.setter && (U = "set " + U), (!g(H, "name") || I && H.name !== U) && (u ? w(H, "name", { value: U, configurable: !0 }) : H.name = U), O && D && g(D, "arity") && H.length !== D.arity && w(H, "length", { value: D.arity });
|
|
11773
11773
|
try {
|
|
11774
|
-
|
|
11774
|
+
D && g(D, "constructor") && D.constructor ? u && w(H, "prototype", { writable: !1 }) : H.prototype && (H.prototype = void 0);
|
|
11775
11775
|
} catch {
|
|
11776
11776
|
}
|
|
11777
11777
|
var G = y(H);
|
|
@@ -11823,16 +11823,16 @@ var pm = {
|
|
|
11823
11823
|
2360: (
|
|
11824
11824
|
/***/
|
|
11825
11825
|
(n, t, i) => {
|
|
11826
|
-
var r = i(8551), A = i(6801), c = i(8727), g = i(421), u = i(397), I = i(4055), f = i(6119), Q = ">", y = "<", b = "prototype",
|
|
11826
|
+
var r = i(8551), A = i(6801), c = i(8727), g = i(421), u = i(397), I = i(4055), f = i(6119), Q = ">", y = "<", b = "prototype", S = "script", w = f("IE_PROTO"), k = function() {
|
|
11827
11827
|
}, M = function(H) {
|
|
11828
|
-
return y +
|
|
11828
|
+
return y + S + Q + H + y + "/" + S + Q;
|
|
11829
11829
|
}, F = function(H) {
|
|
11830
11830
|
H.write(M("")), H.close();
|
|
11831
11831
|
var U = H.parentWindow.Object;
|
|
11832
11832
|
return H = null, U;
|
|
11833
11833
|
}, O = function() {
|
|
11834
|
-
var H = I("iframe"), U = "java" +
|
|
11835
|
-
return H.style.display = "none", u.appendChild(H), H.src = String(U),
|
|
11834
|
+
var H = I("iframe"), U = "java" + S + ":", D;
|
|
11835
|
+
return H.style.display = "none", u.appendChild(H), H.src = String(U), D = H.contentWindow.document, D.open(), D.write(M("document.F=Object")), D.close(), D.F;
|
|
11836
11836
|
}, J, T = function() {
|
|
11837
11837
|
try {
|
|
11838
11838
|
J = new ActiveXObject("htmlfile");
|
|
@@ -11842,9 +11842,9 @@ var pm = {
|
|
|
11842
11842
|
for (var H = c.length; H--; ) delete T[b][c[H]];
|
|
11843
11843
|
return T();
|
|
11844
11844
|
};
|
|
11845
|
-
g[w] = !0, n.exports = Object.create || function(U,
|
|
11845
|
+
g[w] = !0, n.exports = Object.create || function(U, D) {
|
|
11846
11846
|
var G;
|
|
11847
|
-
return U !== null ? (k[b] = r(U), G = new k(), k[b] = null, G[w] = U) : G = T(),
|
|
11847
|
+
return U !== null ? (k[b] = r(U), G = new k(), k[b] = null, G[w] = U) : G = T(), D === void 0 ? G : A.f(G, D);
|
|
11848
11848
|
};
|
|
11849
11849
|
}
|
|
11850
11850
|
),
|
|
@@ -11855,7 +11855,7 @@ var pm = {
|
|
|
11855
11855
|
var r = i(3724), A = i(8686), c = i(4913), g = i(8551), u = i(5397), I = i(1072);
|
|
11856
11856
|
t.f = r && !A ? Object.defineProperties : function(Q, y) {
|
|
11857
11857
|
g(Q);
|
|
11858
|
-
for (var b = u(y),
|
|
11858
|
+
for (var b = u(y), S = I(y), w = S.length, k = 0, M; w > k; ) c.f(Q, M = S[k++], b[M]);
|
|
11859
11859
|
return Q;
|
|
11860
11860
|
};
|
|
11861
11861
|
}
|
|
@@ -11864,11 +11864,11 @@ var pm = {
|
|
|
11864
11864
|
4913: (
|
|
11865
11865
|
/***/
|
|
11866
11866
|
(n, t, i) => {
|
|
11867
|
-
var r = i(3724), A = i(5917), c = i(8686), g = i(8551), u = i(6969), I = TypeError, f = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, y = "enumerable", b = "configurable",
|
|
11867
|
+
var r = i(3724), A = i(5917), c = i(8686), g = i(8551), u = i(6969), I = TypeError, f = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, y = "enumerable", b = "configurable", S = "writable";
|
|
11868
11868
|
t.f = r ? c ? function(k, M, F) {
|
|
11869
|
-
if (g(k), M = u(M), g(F), typeof k == "function" && M === "prototype" && "value" in F &&
|
|
11869
|
+
if (g(k), M = u(M), g(F), typeof k == "function" && M === "prototype" && "value" in F && S in F && !F[S]) {
|
|
11870
11870
|
var O = Q(k, M);
|
|
11871
|
-
O && O[
|
|
11871
|
+
O && O[S] && (k[M] = F.value, F = {
|
|
11872
11872
|
configurable: b in F ? F[b] : O[b],
|
|
11873
11873
|
enumerable: y in F ? F[y] : O[y],
|
|
11874
11874
|
writable: !1
|
|
@@ -11890,12 +11890,12 @@ var pm = {
|
|
|
11890
11890
|
/***/
|
|
11891
11891
|
(n, t, i) => {
|
|
11892
11892
|
var r = i(3724), A = i(9565), c = i(8773), g = i(6980), u = i(5397), I = i(6969), f = i(9297), Q = i(5917), y = Object.getOwnPropertyDescriptor;
|
|
11893
|
-
t.f = r ? y : function(
|
|
11894
|
-
if (
|
|
11895
|
-
return y(
|
|
11893
|
+
t.f = r ? y : function(S, w) {
|
|
11894
|
+
if (S = u(S), w = I(w), Q) try {
|
|
11895
|
+
return y(S, w);
|
|
11896
11896
|
} catch {
|
|
11897
11897
|
}
|
|
11898
|
-
if (f(
|
|
11898
|
+
if (f(S, w)) return g(!A(c.f, S, w), S[w]);
|
|
11899
11899
|
};
|
|
11900
11900
|
}
|
|
11901
11901
|
),
|
|
@@ -11924,8 +11924,8 @@ var pm = {
|
|
|
11924
11924
|
n.exports = u ? f.getPrototypeOf : function(y) {
|
|
11925
11925
|
var b = c(y);
|
|
11926
11926
|
if (r(b, I)) return b[I];
|
|
11927
|
-
var
|
|
11928
|
-
return A(
|
|
11927
|
+
var S = b.constructor;
|
|
11928
|
+
return A(S) && b instanceof S ? S.prototype : b instanceof f ? Q : null;
|
|
11929
11929
|
};
|
|
11930
11930
|
}
|
|
11931
11931
|
),
|
|
@@ -11943,10 +11943,10 @@ var pm = {
|
|
|
11943
11943
|
(n, t, i) => {
|
|
11944
11944
|
var r = i(9504), A = i(9297), c = i(5397), g = i(9617).indexOf, u = i(421), I = r([].push);
|
|
11945
11945
|
n.exports = function(f, Q) {
|
|
11946
|
-
var y = c(f), b = 0,
|
|
11947
|
-
for (w in y) !A(u, w) && A(y, w) && I(
|
|
11948
|
-
for (; Q.length > b; ) A(y, w = Q[b++]) && (~g(
|
|
11949
|
-
return
|
|
11946
|
+
var y = c(f), b = 0, S = [], w;
|
|
11947
|
+
for (w in y) !A(u, w) && A(y, w) && I(S, w);
|
|
11948
|
+
for (; Q.length > b; ) A(y, w = Q[b++]) && (~g(S, w) || I(S, w));
|
|
11949
|
+
return S;
|
|
11950
11950
|
};
|
|
11951
11951
|
}
|
|
11952
11952
|
),
|
|
@@ -12025,7 +12025,7 @@ var pm = {
|
|
|
12025
12025
|
`,
|
|
12026
12026
|
"\\r": "\r",
|
|
12027
12027
|
"\\t": " "
|
|
12028
|
-
}, b = /^[\da-f]{4}$/i,
|
|
12028
|
+
}, b = /^[\da-f]{4}$/i, S = /^[\u0000-\u001F]$/;
|
|
12029
12029
|
n.exports = function(w, k) {
|
|
12030
12030
|
for (var M = !0, F = ""; k < w.length; ) {
|
|
12031
12031
|
var O = I(w, k);
|
|
@@ -12043,7 +12043,7 @@ var pm = {
|
|
|
12043
12043
|
M = !1, k++;
|
|
12044
12044
|
break;
|
|
12045
12045
|
} else {
|
|
12046
|
-
if (Q(
|
|
12046
|
+
if (Q(S, O)) throw new c("Bad control character in string literal at: " + k);
|
|
12047
12047
|
F += O, k++;
|
|
12048
12048
|
}
|
|
12049
12049
|
}
|
|
@@ -12081,8 +12081,8 @@ var pm = {
|
|
|
12081
12081
|
/***/
|
|
12082
12082
|
(n, t, i) => {
|
|
12083
12083
|
var r = i(7080), A = i(4402), c = i(9286), g = i(5170), u = i(3789), I = i(8469), f = i(507), Q = A.has, y = A.remove;
|
|
12084
|
-
n.exports = function(
|
|
12085
|
-
var w = r(this), k = u(
|
|
12084
|
+
n.exports = function(S) {
|
|
12085
|
+
var w = r(this), k = u(S), M = c(w);
|
|
12086
12086
|
return g(w) <= k.size ? I(w, function(F) {
|
|
12087
12087
|
k.includes(F) && y(M, F);
|
|
12088
12088
|
}) : f(k.getIterator(), function(F) {
|
|
@@ -12111,8 +12111,8 @@ var pm = {
|
|
|
12111
12111
|
/***/
|
|
12112
12112
|
(n, t, i) => {
|
|
12113
12113
|
var r = i(7080), A = i(4402), c = i(5170), g = i(3789), u = i(8469), I = i(507), f = A.Set, Q = A.add, y = A.has;
|
|
12114
|
-
n.exports = function(
|
|
12115
|
-
var w = r(this), k = g(
|
|
12114
|
+
n.exports = function(S) {
|
|
12115
|
+
var w = r(this), k = g(S), M = new f();
|
|
12116
12116
|
return c(w) > k.size ? I(k.getIterator(), function(F) {
|
|
12117
12117
|
y(w, F) && Q(M, F);
|
|
12118
12118
|
}) : u(w, function(F) {
|
|
@@ -12127,11 +12127,11 @@ var pm = {
|
|
|
12127
12127
|
(n, t, i) => {
|
|
12128
12128
|
var r = i(7080), A = i(4402).has, c = i(5170), g = i(3789), u = i(8469), I = i(507), f = i(9539);
|
|
12129
12129
|
n.exports = function(y) {
|
|
12130
|
-
var b = r(this),
|
|
12131
|
-
if (c(b) <=
|
|
12132
|
-
if (
|
|
12130
|
+
var b = r(this), S = g(y);
|
|
12131
|
+
if (c(b) <= S.size) return u(b, function(k) {
|
|
12132
|
+
if (S.includes(k)) return !1;
|
|
12133
12133
|
}, !0) !== !1;
|
|
12134
|
-
var w =
|
|
12134
|
+
var w = S.getIterator();
|
|
12135
12135
|
return I(w, function(k) {
|
|
12136
12136
|
if (A(b, k)) return f(w, "normal", !1);
|
|
12137
12137
|
}) !== !1;
|
|
@@ -12159,9 +12159,9 @@ var pm = {
|
|
|
12159
12159
|
n.exports = function(Q) {
|
|
12160
12160
|
var y = r(this), b = g(Q);
|
|
12161
12161
|
if (c(y) < b.size) return !1;
|
|
12162
|
-
var
|
|
12163
|
-
return u(
|
|
12164
|
-
if (!A(y, w)) return I(
|
|
12162
|
+
var S = b.getIterator();
|
|
12163
|
+
return u(S, function(w) {
|
|
12164
|
+
if (!A(y, w)) return I(S, "normal", !1);
|
|
12165
12165
|
}) !== !1;
|
|
12166
12166
|
};
|
|
12167
12167
|
}
|
|
@@ -12171,8 +12171,8 @@ var pm = {
|
|
|
12171
12171
|
/***/
|
|
12172
12172
|
(n, t, i) => {
|
|
12173
12173
|
var r = i(9504), A = i(507), c = i(4402), g = c.Set, u = c.proto, I = r(u.forEach), f = r(u.keys), Q = f(new g()).next;
|
|
12174
|
-
n.exports = function(y, b,
|
|
12175
|
-
return
|
|
12174
|
+
n.exports = function(y, b, S) {
|
|
12175
|
+
return S ? A({ iterator: f(y), next: Q }, b) : I(y, b);
|
|
12176
12176
|
};
|
|
12177
12177
|
}
|
|
12178
12178
|
),
|
|
@@ -12226,9 +12226,9 @@ var pm = {
|
|
|
12226
12226
|
(n, t, i) => {
|
|
12227
12227
|
var r = i(7080), A = i(4402), c = i(9286), g = i(3789), u = i(507), I = A.add, f = A.has, Q = A.remove;
|
|
12228
12228
|
n.exports = function(b) {
|
|
12229
|
-
var
|
|
12229
|
+
var S = r(this), w = g(b).getIterator(), k = c(S);
|
|
12230
12230
|
return u(w, function(M) {
|
|
12231
|
-
f(
|
|
12231
|
+
f(S, M) ? Q(k, M) : I(k, M);
|
|
12232
12232
|
}), k;
|
|
12233
12233
|
};
|
|
12234
12234
|
}
|
|
@@ -12240,8 +12240,8 @@ var pm = {
|
|
|
12240
12240
|
var r = i(7080), A = i(4402).add, c = i(9286), g = i(3789), u = i(507);
|
|
12241
12241
|
n.exports = function(f) {
|
|
12242
12242
|
var Q = r(this), y = g(f).getIterator(), b = c(Q);
|
|
12243
|
-
return u(y, function(
|
|
12244
|
-
A(b,
|
|
12243
|
+
return u(y, function(S) {
|
|
12244
|
+
A(b, S);
|
|
12245
12245
|
}), b;
|
|
12246
12246
|
};
|
|
12247
12247
|
}
|
|
@@ -12389,9 +12389,9 @@ var pm = {
|
|
|
12389
12389
|
var r = i(9565), A = i(34), c = i(757), g = i(5966), u = i(4270), I = i(8227), f = TypeError, Q = I("toPrimitive");
|
|
12390
12390
|
n.exports = function(y, b) {
|
|
12391
12391
|
if (!A(y) || c(y)) return y;
|
|
12392
|
-
var
|
|
12393
|
-
if (
|
|
12394
|
-
if (b === void 0 && (b = "default"), w = r(
|
|
12392
|
+
var S = g(y, Q), w;
|
|
12393
|
+
if (S) {
|
|
12394
|
+
if (b === void 0 && (b = "default"), w = r(S, y, b), !A(w) || c(w)) return w;
|
|
12395
12395
|
throw new f("Can't convert object to primitive value");
|
|
12396
12396
|
}
|
|
12397
12397
|
return b === void 0 && (b = "number"), u(y, b);
|
|
@@ -12568,7 +12568,7 @@ var pm = {
|
|
|
12568
12568
|
}, y = f || !Q();
|
|
12569
12569
|
r({ target: "Array", proto: !0, arity: 1, forced: y }, {
|
|
12570
12570
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
12571
|
-
push: function(
|
|
12571
|
+
push: function(S) {
|
|
12572
12572
|
var w = A(this), k = c(w), M = arguments.length;
|
|
12573
12573
|
u(k + M);
|
|
12574
12574
|
for (var F = 0; F < M; F++)
|
|
@@ -12684,7 +12684,7 @@ var pm = {
|
|
|
12684
12684
|
var r = i(4644), A = i(9504), c = i(9306), g = i(5370), u = r.aTypedArray, I = r.getTypedArrayConstructor, f = r.exportTypedArrayMethod, Q = A(r.TypedArrayPrototype.sort);
|
|
12685
12685
|
f("toSorted", function(b) {
|
|
12686
12686
|
b !== void 0 && c(b);
|
|
12687
|
-
var
|
|
12687
|
+
var S = u(this), w = g(I(S), S);
|
|
12688
12688
|
return Q(w, b);
|
|
12689
12689
|
});
|
|
12690
12690
|
}
|
|
@@ -12702,8 +12702,8 @@ var pm = {
|
|
|
12702
12702
|
return b === 8;
|
|
12703
12703
|
}
|
|
12704
12704
|
}();
|
|
12705
|
-
Q("with", function(b,
|
|
12706
|
-
var w = I(this), k = g(b), M = c(w) ? u(
|
|
12705
|
+
Q("with", function(b, S) {
|
|
12706
|
+
var w = I(this), k = g(b), M = c(w) ? u(S) : +S;
|
|
12707
12707
|
return r(w, f(w), k, M);
|
|
12708
12708
|
}, !y);
|
|
12709
12709
|
}
|
|
@@ -12712,9 +12712,9 @@ var pm = {
|
|
|
12712
12712
|
8992: (
|
|
12713
12713
|
/***/
|
|
12714
12714
|
(n, t, i) => {
|
|
12715
|
-
var r = i(6518), A = i(4475), c = i(679), g = i(8551), u = i(4901), I = i(2787), f = i(2106), Q = i(4659), y = i(9039), b = i(9297),
|
|
12715
|
+
var r = i(6518), A = i(4475), c = i(679), g = i(8551), u = i(4901), I = i(2787), f = i(2106), Q = i(4659), y = i(9039), b = i(9297), S = i(8227), w = i(7657).IteratorPrototype, k = i(3724), M = i(6395), F = "constructor", O = "Iterator", J = S("toStringTag"), T = TypeError, H = A[O], U = M || !u(H) || H.prototype !== w || !y(function() {
|
|
12716
12716
|
H({});
|
|
12717
|
-
}),
|
|
12717
|
+
}), D = function() {
|
|
12718
12718
|
if (c(this, w), I(this) === w) throw new T("Abstract class Iterator not directly constructable");
|
|
12719
12719
|
}, G = function(R, L) {
|
|
12720
12720
|
k ? f(w, R, {
|
|
@@ -12728,8 +12728,8 @@ var pm = {
|
|
|
12728
12728
|
}
|
|
12729
12729
|
}) : w[R] = L;
|
|
12730
12730
|
};
|
|
12731
|
-
b(w, J) || G(J, O), (U || !b(w, F) || w[F] === Object) && G(F,
|
|
12732
|
-
Iterator:
|
|
12731
|
+
b(w, J) || G(J, O), (U || !b(w, F) || w[F] === Object) && G(F, D), D.prototype = w, r({ global: !0, constructor: !0, forced: U }, {
|
|
12732
|
+
Iterator: D
|
|
12733
12733
|
});
|
|
12734
12734
|
}
|
|
12735
12735
|
),
|
|
@@ -12742,8 +12742,8 @@ var pm = {
|
|
|
12742
12742
|
every: function(f) {
|
|
12743
12743
|
g(this), c(f);
|
|
12744
12744
|
var Q = u(this), y = 0;
|
|
12745
|
-
return !A(Q, function(b,
|
|
12746
|
-
if (!f(b, y++)) return
|
|
12745
|
+
return !A(Q, function(b, S) {
|
|
12746
|
+
if (!f(b, y++)) return S();
|
|
12747
12747
|
}, { IS_RECORD: !0, INTERRUPTED: !0 }).stopped;
|
|
12748
12748
|
}
|
|
12749
12749
|
});
|
|
@@ -12754,15 +12754,15 @@ var pm = {
|
|
|
12754
12754
|
/***/
|
|
12755
12755
|
(n, t, i) => {
|
|
12756
12756
|
var r = i(6518), A = i(9565), c = i(9306), g = i(8551), u = i(1767), I = i(9462), f = i(6319), Q = i(6395), y = I(function() {
|
|
12757
|
-
for (var b = this.iterator,
|
|
12757
|
+
for (var b = this.iterator, S = this.predicate, w = this.next, k, M, F; ; ) {
|
|
12758
12758
|
if (k = g(A(w, b)), M = this.done = !!k.done, M) return;
|
|
12759
|
-
if (F = k.value, f(b,
|
|
12759
|
+
if (F = k.value, f(b, S, [F, this.counter++], !0)) return F;
|
|
12760
12760
|
}
|
|
12761
12761
|
});
|
|
12762
12762
|
r({ target: "Iterator", proto: !0, real: !0, forced: Q }, {
|
|
12763
|
-
filter: function(
|
|
12764
|
-
return g(this), c(
|
|
12765
|
-
predicate:
|
|
12763
|
+
filter: function(S) {
|
|
12764
|
+
return g(this), c(S), new y(u(this), {
|
|
12765
|
+
predicate: S
|
|
12766
12766
|
});
|
|
12767
12767
|
}
|
|
12768
12768
|
});
|
|
@@ -12773,18 +12773,18 @@ var pm = {
|
|
|
12773
12773
|
/***/
|
|
12774
12774
|
(n, t, i) => {
|
|
12775
12775
|
var r = i(6518), A = i(9565), c = i(9306), g = i(8551), u = i(1767), I = i(8646), f = i(9462), Q = i(9539), y = i(6395), b = f(function() {
|
|
12776
|
-
for (var
|
|
12776
|
+
for (var S = this.iterator, w = this.mapper, k, M; ; ) {
|
|
12777
12777
|
if (M = this.inner) try {
|
|
12778
12778
|
if (k = g(A(M.next, M.iterator)), !k.done) return k.value;
|
|
12779
12779
|
this.inner = null;
|
|
12780
12780
|
} catch (F) {
|
|
12781
|
-
Q(
|
|
12781
|
+
Q(S, "throw", F);
|
|
12782
12782
|
}
|
|
12783
|
-
if (k = g(A(this.next,
|
|
12783
|
+
if (k = g(A(this.next, S)), this.done = !!k.done) return;
|
|
12784
12784
|
try {
|
|
12785
12785
|
this.inner = I(w(k.value, this.counter++), !1);
|
|
12786
12786
|
} catch (F) {
|
|
12787
|
-
Q(
|
|
12787
|
+
Q(S, "throw", F);
|
|
12788
12788
|
}
|
|
12789
12789
|
}
|
|
12790
12790
|
});
|
|
@@ -12817,8 +12817,8 @@ var pm = {
|
|
|
12817
12817
|
some: function(f) {
|
|
12818
12818
|
g(this), c(f);
|
|
12819
12819
|
var Q = u(this), y = 0;
|
|
12820
|
-
return A(Q, function(b,
|
|
12821
|
-
if (f(b, y++)) return
|
|
12820
|
+
return A(Q, function(b, S) {
|
|
12821
|
+
if (f(b, y++)) return S();
|
|
12822
12822
|
}, { IS_RECORD: !0, INTERRUPTED: !0 }).stopped;
|
|
12823
12823
|
}
|
|
12824
12824
|
});
|
|
@@ -12828,8 +12828,8 @@ var pm = {
|
|
|
12828
12828
|
8335: (
|
|
12829
12829
|
/***/
|
|
12830
12830
|
(n, t, i) => {
|
|
12831
|
-
var r = i(6518), A = i(3724), c = i(4475), g = i(7751), u = i(9504), I = i(9565), f = i(4901), Q = i(34), y = i(4376), b = i(9297),
|
|
12832
|
-
de =
|
|
12831
|
+
var r = i(6518), A = i(3724), c = i(4475), g = i(7751), u = i(9504), I = i(9565), f = i(4901), Q = i(34), y = i(4376), b = i(9297), S = i(655), w = i(6198), k = i(4659), M = i(9039), F = i(8235), O = i(4495), J = c.JSON, T = c.Number, H = c.SyntaxError, U = J && J.parse, D = g("Object", "keys"), G = Object.getOwnPropertyDescriptor, R = u("".charAt), L = u("".slice), P = u(/./.exec), K = u([].push), V = /^\d$/, $ = /^[1-9]$/, q = /^(?:-|\d)$/, ee = /^[\t\n\r ]$/, te = 0, se = 1, ne = function(de, z) {
|
|
12832
|
+
de = S(de);
|
|
12833
12833
|
var ue = new Xe(de, 0), X = ue.parse(), Qe = X.value, Ee = ue.skip(ee, X.end);
|
|
12834
12834
|
if (Ee < de.length)
|
|
12835
12835
|
throw new H('Unexpected extra character: "' + R(de, Ee) + '" after the parsed data at: ' + Ee);
|
|
@@ -12842,7 +12842,7 @@ var pm = {
|
|
|
12842
12842
|
for (_e = Je.length, he = w(Qe), ce = 0; ce < he; ce++)
|
|
12843
12843
|
xe(Qe, ce, Be(Qe, "" + ce, ue, ce < _e ? Je[ce] : void 0));
|
|
12844
12844
|
else
|
|
12845
|
-
for (ut =
|
|
12845
|
+
for (ut = D(Qe), he = w(ut), ce = 0; ce < he; ce++)
|
|
12846
12846
|
De = ut[ce], xe(Qe, De, Be(Qe, De, ue, b(Je, De) ? Je[De] : void 0));
|
|
12847
12847
|
}
|
|
12848
12848
|
return I(ue, de, z, Qe, Se);
|
|
@@ -13016,11 +13016,11 @@ var pm = {
|
|
|
13016
13016
|
4979: (
|
|
13017
13017
|
/***/
|
|
13018
13018
|
(n, t, i) => {
|
|
13019
|
-
var r = i(6518), A = i(4475), c = i(7751), g = i(6980), u = i(4913).f, I = i(9297), f = i(679), Q = i(3167), y = i(2603), b = i(5002),
|
|
13019
|
+
var r = i(6518), A = i(4475), c = i(7751), g = i(6980), u = i(4913).f, I = i(9297), f = i(679), Q = i(3167), y = i(2603), b = i(5002), S = i(6193), w = i(3724), k = i(6395), M = "DOMException", F = c("Error"), O = c(M), J = function() {
|
|
13020
13020
|
f(this, T);
|
|
13021
13021
|
var ee = arguments.length, te = y(ee < 1 ? void 0 : arguments[0]), se = y(ee < 2 ? void 0 : arguments[1], "Error"), ne = new O(te, se), Be = new F(te);
|
|
13022
|
-
return Be.name = M, u(ne, "stack", g(1,
|
|
13023
|
-
}, T = J.prototype = O.prototype, H = "stack" in new F(M), U = "stack" in new O(1, 2),
|
|
13022
|
+
return Be.name = M, u(ne, "stack", g(1, S(Be.stack, 1))), Q(ne, this, J), ne;
|
|
13023
|
+
}, T = J.prototype = O.prototype, H = "stack" in new F(M), U = "stack" in new O(1, 2), D = O && w && Object.getOwnPropertyDescriptor(A, M), G = !!D && !(D.writable && D.configurable), R = H && !G && !U;
|
|
13024
13024
|
r({ global: !0, constructor: !0, forced: k || R }, {
|
|
13025
13025
|
// TODO: fix export logic
|
|
13026
13026
|
DOMException: R ? J : O
|
|
@@ -13039,17 +13039,17 @@ var pm = {
|
|
|
13039
13039
|
4603: (
|
|
13040
13040
|
/***/
|
|
13041
13041
|
(n, t, i) => {
|
|
13042
|
-
var r = i(6840), A = i(9504), c = i(655), g = i(2812), u = URLSearchParams, I = u.prototype, f = A(I.append), Q = A(I.delete), y = A(I.forEach), b = A([].push),
|
|
13043
|
-
|
|
13042
|
+
var r = i(6840), A = i(9504), c = i(655), g = i(2812), u = URLSearchParams, I = u.prototype, f = A(I.append), Q = A(I.delete), y = A(I.forEach), b = A([].push), S = new u("a=1&a=2&b=3");
|
|
13043
|
+
S.delete("a", 1), S.delete("b", void 0), S + "" != "a=2" && r(I, "delete", function(w) {
|
|
13044
13044
|
var k = arguments.length, M = k < 2 ? void 0 : arguments[1];
|
|
13045
13045
|
if (k && M === void 0) return Q(this, w);
|
|
13046
13046
|
var F = [];
|
|
13047
13047
|
y(this, function(R, L) {
|
|
13048
13048
|
b(F, { key: L, value: R });
|
|
13049
13049
|
}), g(k, 1);
|
|
13050
|
-
for (var O = c(w), J = c(M), T = 0, H = 0, U = !1,
|
|
13050
|
+
for (var O = c(w), J = c(M), T = 0, H = 0, U = !1, D = F.length, G; T < D; )
|
|
13051
13051
|
G = F[T++], U || G.key === O ? (U = !0, Q(this, G.key)) : H++;
|
|
13052
|
-
for (; H <
|
|
13052
|
+
for (; H < D; )
|
|
13053
13053
|
G = F[H++], G.key === O && G.value === J || f(this, G.key, G.value);
|
|
13054
13054
|
}, { enumerable: !0, unsafe: !0 });
|
|
13055
13055
|
}
|
|
@@ -13059,10 +13059,10 @@ var pm = {
|
|
|
13059
13059
|
/***/
|
|
13060
13060
|
(n, t, i) => {
|
|
13061
13061
|
var r = i(6840), A = i(9504), c = i(655), g = i(2812), u = URLSearchParams, I = u.prototype, f = A(I.getAll), Q = A(I.has), y = new u("a=1");
|
|
13062
|
-
(y.has("a", 2) || !y.has("a", void 0)) && r(I, "has", function(
|
|
13062
|
+
(y.has("a", 2) || !y.has("a", void 0)) && r(I, "has", function(S) {
|
|
13063
13063
|
var w = arguments.length, k = w < 2 ? void 0 : arguments[1];
|
|
13064
|
-
if (w && k === void 0) return Q(this,
|
|
13065
|
-
var M = f(this,
|
|
13064
|
+
if (w && k === void 0) return Q(this, S);
|
|
13065
|
+
var M = f(this, S);
|
|
13066
13066
|
g(w, 1);
|
|
13067
13067
|
for (var F = c(k), O = 0; O < M.length; )
|
|
13068
13068
|
if (M[O++] === F) return !0;
|
|
@@ -13351,7 +13351,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
13351
13351
|
GRAYSCALE_1BPP: 1,
|
|
13352
13352
|
RGB_24BPP: 2,
|
|
13353
13353
|
RGBA_32BPP: 3
|
|
13354
|
-
},
|
|
13354
|
+
}, S = {
|
|
13355
13355
|
TEXT: 1,
|
|
13356
13356
|
LINK: 2,
|
|
13357
13357
|
FREETEXT: 3,
|
|
@@ -13486,7 +13486,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
13486
13486
|
function U(p) {
|
|
13487
13487
|
J >= k.INFOS && console.log(`Info: ${p}`);
|
|
13488
13488
|
}
|
|
13489
|
-
function
|
|
13489
|
+
function D(p) {
|
|
13490
13490
|
J >= k.WARNINGS && console.log(`Warning: ${p}`);
|
|
13491
13491
|
}
|
|
13492
13492
|
function G(p) {
|
|
@@ -14171,7 +14171,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
14171
14171
|
if (typeof p != "string")
|
|
14172
14172
|
return e;
|
|
14173
14173
|
if (Zi(p))
|
|
14174
|
-
return
|
|
14174
|
+
return D('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'), e;
|
|
14175
14175
|
const s = /^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/, a = /[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i, o = s.exec(p);
|
|
14176
14176
|
let l = a.exec(o[1]) || a.exec(o[2]) || a.exec(o[3]);
|
|
14177
14177
|
if (l && (l = l[0], l.includes("%")))
|
|
@@ -14185,10 +14185,10 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
14185
14185
|
started = /* @__PURE__ */ Object.create(null);
|
|
14186
14186
|
times = [];
|
|
14187
14187
|
time(e) {
|
|
14188
|
-
e in this.started &&
|
|
14188
|
+
e in this.started && D(`Timer is already running for ${e}`), this.started[e] = Date.now();
|
|
14189
14189
|
}
|
|
14190
14190
|
timeEnd(e) {
|
|
14191
|
-
e in this.started ||
|
|
14191
|
+
e in this.started || D(`Timer has not been started for ${e}`), this.times.push({
|
|
14192
14192
|
name: e,
|
|
14193
14193
|
start: this.started[e],
|
|
14194
14194
|
end: Date.now()
|
|
@@ -14273,7 +14273,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
14273
14273
|
const e = parseInt(p.slice(1), 16);
|
|
14274
14274
|
return [(e & 16711680) >> 16, (e & 65280) >> 8, e & 255];
|
|
14275
14275
|
}
|
|
14276
|
-
return p.startsWith("rgb(") ? p.slice(4, -1).split(",").map((e) => parseInt(e)) : p.startsWith("rgba(") ? p.slice(5, -1).split(",").map((e) => parseInt(e)).slice(0, 3) : (
|
|
14276
|
+
return p.startsWith("rgb(") ? p.slice(4, -1).split(",").map((e) => parseInt(e)) : p.startsWith("rgba(") ? p.slice(5, -1).split(",").map((e) => parseInt(e)).slice(0, 3) : (D(`Not a valid color format: "${p}"`), [0, 0, 0]);
|
|
14277
14277
|
}
|
|
14278
14278
|
function Ht(p) {
|
|
14279
14279
|
const e = document.createElement("span");
|
|
@@ -14992,7 +14992,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
14992
14992
|
try {
|
|
14993
14993
|
a = JSON.parse(a);
|
|
14994
14994
|
} catch (l) {
|
|
14995
|
-
|
|
14995
|
+
D(`paste: "${l.message}".`);
|
|
14996
14996
|
return;
|
|
14997
14997
|
}
|
|
14998
14998
|
if (!Array.isArray(a))
|
|
@@ -15021,7 +15021,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
15021
15021
|
mustExec: !0
|
|
15022
15022
|
});
|
|
15023
15023
|
} catch (l) {
|
|
15024
|
-
|
|
15024
|
+
D(`paste: "${l.message}".`);
|
|
15025
15025
|
}
|
|
15026
15026
|
}
|
|
15027
15027
|
keydown(e) {
|
|
@@ -16566,7 +16566,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16566
16566
|
try {
|
|
16567
16567
|
await h.load(), this.#e.add(a), s?.(e);
|
|
16568
16568
|
} catch {
|
|
16569
|
-
|
|
16569
|
+
D(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`), this.removeNativeFontFace(h);
|
|
16570
16570
|
}
|
|
16571
16571
|
return;
|
|
16572
16572
|
}
|
|
@@ -16587,7 +16587,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16587
16587
|
try {
|
|
16588
16588
|
await a.loaded;
|
|
16589
16589
|
} catch (o) {
|
|
16590
|
-
throw
|
|
16590
|
+
throw D(`Failed to load font '${a.family}': '${o}'.`), e.disableFontFace = !0, o;
|
|
16591
16591
|
}
|
|
16592
16592
|
}
|
|
16593
16593
|
return;
|
|
@@ -16645,7 +16645,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16645
16645
|
let E = 0;
|
|
16646
16646
|
function B(Ae, Ce) {
|
|
16647
16647
|
if (++E > 30) {
|
|
16648
|
-
|
|
16648
|
+
D("Load test font never loaded."), Ce();
|
|
16649
16649
|
return;
|
|
16650
16650
|
}
|
|
16651
16651
|
if (C.font = "30px " + Ae, C.fillText(".", 0, 20), C.getImageData(0, 0, 1, 1).data[3] > 0) {
|
|
@@ -16719,7 +16719,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16719
16719
|
try {
|
|
16720
16720
|
a = e.get(this.loadedName + "_path_" + s);
|
|
16721
16721
|
} catch (l) {
|
|
16722
|
-
|
|
16722
|
+
D(`getPathGenerator - ignoring character: "${l}".`);
|
|
16723
16723
|
}
|
|
16724
16724
|
if (!Array.isArray(a) || a.length === 0)
|
|
16725
16725
|
return this.compiledGlyphs[s] = function(l, h) {
|
|
@@ -16822,14 +16822,14 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16822
16822
|
})().then((e) => {
|
|
16823
16823
|
if (Fa = e, va.resolve(), !globalThis.DOMMatrix) {
|
|
16824
16824
|
const s = e.get("canvas")?.DOMMatrix;
|
|
16825
|
-
s ? globalThis.DOMMatrix = s :
|
|
16825
|
+
s ? globalThis.DOMMatrix = s : D("Cannot polyfill `DOMMatrix`, rendering may be broken.");
|
|
16826
16826
|
}
|
|
16827
16827
|
if (!globalThis.Path2D) {
|
|
16828
16828
|
const s = e.get("canvas")?.CanvasRenderingContext2D, a = e.get("path2d")?.applyPath2DToCanvasRenderingContext, o = e.get("path2d")?.Path2D;
|
|
16829
|
-
s && a && o ? (a(s), globalThis.Path2D = o) :
|
|
16829
|
+
s && a && o ? (a(s), globalThis.Path2D = o) : D("Cannot polyfill `Path2D`, rendering may be broken.");
|
|
16830
16830
|
}
|
|
16831
16831
|
}, (e) => {
|
|
16832
|
-
|
|
16832
|
+
D(`loadPackages: ${e}`), Fa = /* @__PURE__ */ new Map(), va.resolve();
|
|
16833
16833
|
});
|
|
16834
16834
|
}
|
|
16835
16835
|
class Gi {
|
|
@@ -17700,7 +17700,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17700
17700
|
const a = this.commonObjs.get(e), o = this.current;
|
|
17701
17701
|
if (!a)
|
|
17702
17702
|
throw new Error(`Can't find font for ${e}`);
|
|
17703
|
-
if (o.fontMatrix = a.fontMatrix || i, (o.fontMatrix[0] === 0 || o.fontMatrix[3] === 0) &&
|
|
17703
|
+
if (o.fontMatrix = a.fontMatrix || i, (o.fontMatrix[0] === 0 || o.fontMatrix[3] === 0) && D("Invalid font matrix for font " + e), s < 0 ? (s = -s, o.fontDirection = -1) : o.fontDirection = 1, this.current.font = a, this.current.fontSize = s, a.isType3Font)
|
|
17704
17704
|
return;
|
|
17705
17705
|
const l = a.loadedName || "sans-serif", h = a.systemFontInfo?.css || `"${l}", ${a.fallbackName}`;
|
|
17706
17706
|
let d = "normal";
|
|
@@ -17828,7 +17828,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17828
17828
|
}
|
|
17829
17829
|
const ie = (_.isSpace ? E : 0) + C, oe = o.charProcOperatorList[_.operatorListId];
|
|
17830
17830
|
if (!oe) {
|
|
17831
|
-
|
|
17831
|
+
D(`Type3 character "${_.operatorListId}" is not available.`);
|
|
17832
17832
|
continue;
|
|
17833
17833
|
}
|
|
17834
17834
|
this.contentVisible && (this.processingType3 = _, this.save(), s.scale(l, l), s.transform(...m), this.executeOperatorList(oe), this.restore()), j = X.applyTransform([_.width, 0], m)[0] * l + ie, s.translate(j, 0), a.x += j * B;
|
|
@@ -17911,7 +17911,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17911
17911
|
return;
|
|
17912
17912
|
this.save(), this.inSMaskMode && (this.endSMaskMode(), this.current.activeSMask = null);
|
|
17913
17913
|
const s = this.ctx;
|
|
17914
|
-
e.isolated || U("TODO: Support non-isolated groups."), e.knockout &&
|
|
17914
|
+
e.isolated || U("TODO: Support non-isolated groups."), e.knockout && D("Knockout groups not supported.");
|
|
17915
17915
|
const a = Z(s);
|
|
17916
17916
|
if (e.matrix && s.transform(...e.matrix), !e.bbox)
|
|
17917
17917
|
throw new Error("Bounding box is required.");
|
|
@@ -18022,7 +18022,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18022
18022
|
return;
|
|
18023
18023
|
const s = this.getObject(e);
|
|
18024
18024
|
if (!s) {
|
|
18025
|
-
|
|
18025
|
+
D("Dependent image isn't ready yet");
|
|
18026
18026
|
return;
|
|
18027
18027
|
}
|
|
18028
18028
|
this.paintInlineImageXObject(s);
|
|
@@ -18032,7 +18032,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18032
18032
|
return;
|
|
18033
18033
|
const l = this.getObject(e);
|
|
18034
18034
|
if (!l) {
|
|
18035
|
-
|
|
18035
|
+
D("Dependent image isn't ready yet");
|
|
18036
18036
|
return;
|
|
18037
18037
|
}
|
|
18038
18038
|
const h = l.width, d = l.height, C = [];
|
|
@@ -18614,7 +18614,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18614
18614
|
else if (this.#t.has(l))
|
|
18615
18615
|
h = this.#t.get(l).visible;
|
|
18616
18616
|
else
|
|
18617
|
-
return
|
|
18617
|
+
return D(`Optional content group not found: ${l}`), !0;
|
|
18618
18618
|
switch (a) {
|
|
18619
18619
|
case "And":
|
|
18620
18620
|
if (!h)
|
|
@@ -18638,14 +18638,14 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18638
18638
|
if (!e)
|
|
18639
18639
|
return U("Optional content group not defined."), !0;
|
|
18640
18640
|
if (e.type === "OCG")
|
|
18641
|
-
return this.#t.has(e.id) ? this.#t.get(e.id).visible : (
|
|
18641
|
+
return this.#t.has(e.id) ? this.#t.get(e.id).visible : (D(`Optional content group not found: ${e.id}`), !0);
|
|
18642
18642
|
if (e.type === "OCMD") {
|
|
18643
18643
|
if (e.expression)
|
|
18644
18644
|
return this.#r(e.expression);
|
|
18645
18645
|
if (!e.policy || e.policy === "AnyOn") {
|
|
18646
18646
|
for (const s of e.ids) {
|
|
18647
18647
|
if (!this.#t.has(s))
|
|
18648
|
-
return
|
|
18648
|
+
return D(`Optional content group not found: ${s}`), !0;
|
|
18649
18649
|
if (this.#t.get(s).visible)
|
|
18650
18650
|
return !0;
|
|
18651
18651
|
}
|
|
@@ -18653,7 +18653,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18653
18653
|
} else if (e.policy === "AllOn") {
|
|
18654
18654
|
for (const s of e.ids) {
|
|
18655
18655
|
if (!this.#t.has(s))
|
|
18656
|
-
return
|
|
18656
|
+
return D(`Optional content group not found: ${s}`), !0;
|
|
18657
18657
|
if (!this.#t.get(s).visible)
|
|
18658
18658
|
return !1;
|
|
18659
18659
|
}
|
|
@@ -18661,7 +18661,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18661
18661
|
} else if (e.policy === "AnyOff") {
|
|
18662
18662
|
for (const s of e.ids) {
|
|
18663
18663
|
if (!this.#t.has(s))
|
|
18664
|
-
return
|
|
18664
|
+
return D(`Optional content group not found: ${s}`), !0;
|
|
18665
18665
|
if (!this.#t.get(s).visible)
|
|
18666
18666
|
return !0;
|
|
18667
18667
|
}
|
|
@@ -18669,20 +18669,20 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18669
18669
|
} else if (e.policy === "AllOff") {
|
|
18670
18670
|
for (const s of e.ids) {
|
|
18671
18671
|
if (!this.#t.has(s))
|
|
18672
|
-
return
|
|
18672
|
+
return D(`Optional content group not found: ${s}`), !0;
|
|
18673
18673
|
if (this.#t.get(s).visible)
|
|
18674
18674
|
return !1;
|
|
18675
18675
|
}
|
|
18676
18676
|
return !0;
|
|
18677
18677
|
}
|
|
18678
|
-
return
|
|
18678
|
+
return D(`Unknown optional content policy ${e.policy}.`), !0;
|
|
18679
18679
|
}
|
|
18680
|
-
return
|
|
18680
|
+
return D(`Unknown group type ${e.type}.`), !0;
|
|
18681
18681
|
}
|
|
18682
18682
|
setVisibility(e, s = !0) {
|
|
18683
18683
|
const a = this.#t.get(e);
|
|
18684
18684
|
if (!a) {
|
|
18685
|
-
|
|
18685
|
+
D(`Optional content group not found: ${e}`);
|
|
18686
18686
|
return;
|
|
18687
18687
|
}
|
|
18688
18688
|
a._setVisible(Bn, !!s, !0), this.#e = null;
|
|
@@ -19068,7 +19068,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
19068
19068
|
return e;
|
|
19069
19069
|
}
|
|
19070
19070
|
function vo(p) {
|
|
19071
|
-
return p instanceof Uint8Array ? p.buffer : p instanceof ArrayBuffer ? p : (
|
|
19071
|
+
return p instanceof Uint8Array ? p.buffer : p instanceof ArrayBuffer ? p : (D(`getArrayBuffer - unexpected data format: ${p}`), new Uint8Array(p).buffer);
|
|
19072
19072
|
}
|
|
19073
19073
|
class Fo {
|
|
19074
19074
|
constructor(e) {
|
|
@@ -19779,7 +19779,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
19779
19779
|
const s = this.#u, a = this.#d;
|
|
19780
19780
|
for (const o of e) {
|
|
19781
19781
|
if (s.length > Mu) {
|
|
19782
|
-
|
|
19782
|
+
D("Ignoring additional textDivs for performance reasons."), this.#i = !0;
|
|
19783
19783
|
return;
|
|
19784
19784
|
}
|
|
19785
19785
|
if (o.str === void 0) {
|
|
@@ -19907,7 +19907,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
19907
19907
|
viewport: s,
|
|
19908
19908
|
...a
|
|
19909
19909
|
} = arguments[0], o = Object.keys(a);
|
|
19910
|
-
o.length > 0 &&
|
|
19910
|
+
o.length > 0 && D("Ignoring `renderTextLayer` parameters: " + o.join(", "));
|
|
19911
19911
|
const l = new Ti({
|
|
19912
19912
|
textContentSource: p,
|
|
19913
19913
|
container: e,
|
|
@@ -20685,7 +20685,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20685
20685
|
this._setupFakeWorker();
|
|
20686
20686
|
}
|
|
20687
20687
|
_setupFakeWorker() {
|
|
20688
|
-
$i.isWorkerDisabled || (
|
|
20688
|
+
$i.isWorkerDisabled || (D("Setting up fake worker."), $i.isWorkerDisabled = !0), Bi._setupFakeWorkerGlobal.then((e) => {
|
|
20689
20689
|
if (this.destroyed) {
|
|
20690
20690
|
this._readyCapability.reject(new Error("Worker was destroyed"));
|
|
20691
20691
|
return;
|
|
@@ -20769,7 +20769,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20769
20769
|
l = c.PRINT;
|
|
20770
20770
|
break;
|
|
20771
20771
|
default:
|
|
20772
|
-
|
|
20772
|
+
D(`getRenderingIntent - invalid intent: ${e}`);
|
|
20773
20773
|
}
|
|
20774
20774
|
switch (s) {
|
|
20775
20775
|
case g.DISABLE:
|
|
@@ -20784,7 +20784,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20784
20784
|
l += c.ANNOTATIONS_STORAGE, h = (l & c.PRINT && a instanceof ho ? a : this.annotationStorage).serializable;
|
|
20785
20785
|
break;
|
|
20786
20786
|
default:
|
|
20787
|
-
|
|
20787
|
+
D(`getRenderingIntent - invalid annotationMode: ${s}`);
|
|
20788
20788
|
}
|
|
20789
20789
|
return o && (l += c.OPLIST), {
|
|
20790
20790
|
renderingIntent: l,
|
|
@@ -20937,7 +20937,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20937
20937
|
} = this._params;
|
|
20938
20938
|
if ("error" in l) {
|
|
20939
20939
|
const v = l.error;
|
|
20940
|
-
|
|
20940
|
+
D(`Error during font loading: ${v}`), this.commonObjs.resolve(a, v);
|
|
20941
20941
|
break;
|
|
20942
20942
|
}
|
|
20943
20943
|
const E = C && globalThis.FontInspector?.enabled ? (v, N) => globalThis.FontInspector.fontAdded(v, N) : null, B = new Vh(l, {
|
|
@@ -21000,7 +21000,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21000
21000
|
return this.messageHandler.sendWithPromise("GetData", null);
|
|
21001
21001
|
}
|
|
21002
21002
|
saveDocument() {
|
|
21003
|
-
this.annotationStorage.size <= 0 &&
|
|
21003
|
+
this.annotationStorage.size <= 0 && D("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");
|
|
21004
21004
|
const {
|
|
21005
21005
|
map: e,
|
|
21006
21006
|
transfer: s
|
|
@@ -21484,11 +21484,11 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21484
21484
|
class id {
|
|
21485
21485
|
static create(e) {
|
|
21486
21486
|
switch (e.data.annotationType) {
|
|
21487
|
-
case
|
|
21487
|
+
case S.LINK:
|
|
21488
21488
|
return new Ho(e);
|
|
21489
|
-
case
|
|
21489
|
+
case S.TEXT:
|
|
21490
21490
|
return new nd(e);
|
|
21491
|
-
case
|
|
21491
|
+
case S.WIDGET:
|
|
21492
21492
|
switch (e.data.fieldType) {
|
|
21493
21493
|
case "Tx":
|
|
21494
21494
|
return new sd(e);
|
|
@@ -21500,35 +21500,35 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21500
21500
|
return new rd(e);
|
|
21501
21501
|
}
|
|
21502
21502
|
return new Gn(e);
|
|
21503
|
-
case
|
|
21503
|
+
case S.POPUP:
|
|
21504
21504
|
return new Ua(e);
|
|
21505
|
-
case
|
|
21505
|
+
case S.FREETEXT:
|
|
21506
21506
|
return new Oo(e);
|
|
21507
|
-
case
|
|
21507
|
+
case S.LINE:
|
|
21508
21508
|
return new ld(e);
|
|
21509
|
-
case
|
|
21509
|
+
case S.SQUARE:
|
|
21510
21510
|
return new gd(e);
|
|
21511
|
-
case
|
|
21511
|
+
case S.CIRCLE:
|
|
21512
21512
|
return new hd(e);
|
|
21513
|
-
case
|
|
21513
|
+
case S.POLYLINE:
|
|
21514
21514
|
return new Jo(e);
|
|
21515
|
-
case
|
|
21515
|
+
case S.CARET:
|
|
21516
21516
|
return new dd(e);
|
|
21517
|
-
case
|
|
21517
|
+
case S.INK:
|
|
21518
21518
|
return new Yo(e);
|
|
21519
|
-
case
|
|
21519
|
+
case S.POLYGON:
|
|
21520
21520
|
return new ud(e);
|
|
21521
|
-
case
|
|
21521
|
+
case S.HIGHLIGHT:
|
|
21522
21522
|
return new Id(e);
|
|
21523
|
-
case
|
|
21523
|
+
case S.UNDERLINE:
|
|
21524
21524
|
return new Cd(e);
|
|
21525
|
-
case
|
|
21525
|
+
case S.SQUIGGLY:
|
|
21526
21526
|
return new fd(e);
|
|
21527
|
-
case
|
|
21527
|
+
case S.STRIKEOUT:
|
|
21528
21528
|
return new Bd(e);
|
|
21529
|
-
case
|
|
21529
|
+
case S.STAMP:
|
|
21530
21530
|
return new Ko(e);
|
|
21531
|
-
case
|
|
21531
|
+
case S.FILEATTACHMENT:
|
|
21532
21532
|
return new Ed(e);
|
|
21533
21533
|
default:
|
|
21534
21534
|
return new pt(e);
|
|
@@ -21637,10 +21637,10 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21637
21637
|
h.borderStyle = "dashed";
|
|
21638
21638
|
break;
|
|
21639
21639
|
case w.BEVELED:
|
|
21640
|
-
|
|
21640
|
+
D("Unimplemented border style: beveled");
|
|
21641
21641
|
break;
|
|
21642
21642
|
case w.INSET:
|
|
21643
|
-
|
|
21643
|
+
D("Unimplemented border style: inset");
|
|
21644
21644
|
break;
|
|
21645
21645
|
case w.UNDERLINE:
|
|
21646
21646
|
h.borderBottomStyle = "solid";
|
|
@@ -21861,7 +21861,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21861
21861
|
continue;
|
|
21862
21862
|
const C = typeof d == "string" ? d : null, E = document.querySelector(`[data-element-id="${h}"]`);
|
|
21863
21863
|
if (E && !Ln.has(E)) {
|
|
21864
|
-
|
|
21864
|
+
D(`_getElementsByName - element not allowed: ${h}`);
|
|
21865
21865
|
continue;
|
|
21866
21866
|
}
|
|
21867
21867
|
a.push({
|
|
@@ -21972,7 +21972,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21972
21972
|
_bindResetFormAction(e, s) {
|
|
21973
21973
|
const a = e.onclick;
|
|
21974
21974
|
if (a || (e.href = this.linkService.getAnchorUrl("")), this.#e(), !this._fieldObjects) {
|
|
21975
|
-
|
|
21975
|
+
D('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'), a || (e.onclick = () => !1);
|
|
21976
21976
|
return;
|
|
21977
21977
|
}
|
|
21978
21978
|
e.onclick = () => {
|
|
@@ -22032,7 +22032,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
22032
22032
|
const v = document.querySelector(`[data-element-id="${m}"]`);
|
|
22033
22033
|
if (v) {
|
|
22034
22034
|
if (!Ln.has(v)) {
|
|
22035
|
-
|
|
22035
|
+
D(`_bindResetFormAction - element not allowed: ${m}`);
|
|
22036
22036
|
continue;
|
|
22037
22037
|
}
|
|
22038
22038
|
} else continue;
|
|
@@ -23125,7 +23125,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23125
23125
|
for (const h of s) {
|
|
23126
23126
|
if (h.noHTML)
|
|
23127
23127
|
continue;
|
|
23128
|
-
const d = h.annotationType ===
|
|
23128
|
+
const d = h.annotationType === S.POPUP;
|
|
23129
23129
|
if (d) {
|
|
23130
23130
|
const B = o.get(h.id);
|
|
23131
23131
|
if (!B)
|
|
@@ -26102,19 +26102,19 @@ function km({
|
|
|
26102
26102
|
const J = O.div, T = J.offsetLeft + J.clientLeft, H = T + J.clientWidth;
|
|
26103
26103
|
return A ? T < I : H > u;
|
|
26104
26104
|
}
|
|
26105
|
-
const y = [], b = /* @__PURE__ */ new Set(),
|
|
26105
|
+
const y = [], b = /* @__PURE__ */ new Set(), S = t.length;
|
|
26106
26106
|
let w = nr(t, r ? Q : f);
|
|
26107
|
-
w > 0 && w <
|
|
26107
|
+
w > 0 && w < S && !r && (w = Fm(w, t, c));
|
|
26108
26108
|
let k = r ? I : -1;
|
|
26109
|
-
for (let O = w; O <
|
|
26110
|
-
const J = t[O], T = J.div, H = T.offsetLeft + T.clientLeft, U = T.offsetTop + T.clientTop,
|
|
26109
|
+
for (let O = w; O < S; O++) {
|
|
26110
|
+
const J = t[O], T = J.div, H = T.offsetLeft + T.clientLeft, U = T.offsetTop + T.clientTop, D = T.clientWidth, G = T.clientHeight, R = H + D, L = U + G;
|
|
26111
26111
|
if (k === -1)
|
|
26112
26112
|
L >= g && (k = L);
|
|
26113
26113
|
else if ((r ? H : U) > k)
|
|
26114
26114
|
break;
|
|
26115
26115
|
if (L <= c || U >= g || R <= u || H >= I)
|
|
26116
26116
|
continue;
|
|
26117
|
-
const P = Math.max(0, c - U) + Math.max(0, L - g), K = Math.max(0, u - H) + Math.max(0, R - I), V = (G - P) / G, $ = (
|
|
26117
|
+
const P = Math.max(0, c - U) + Math.max(0, L - g), K = Math.max(0, u - H) + Math.max(0, R - I), V = (G - P) / G, $ = (D - K) / D, q = V * $ * 100 | 0;
|
|
26118
26118
|
y.push({
|
|
26119
26119
|
id: J.id,
|
|
26120
26120
|
x: H,
|
|
@@ -26289,11 +26289,11 @@ function oA(n) {
|
|
|
26289
26289
|
let i;
|
|
26290
26290
|
for (; (i = t2.exec(n)) !== null; ) {
|
|
26291
26291
|
let {
|
|
26292
|
-
index:
|
|
26292
|
+
index: S
|
|
26293
26293
|
} = i;
|
|
26294
26294
|
for (const w of i[0]) {
|
|
26295
26295
|
let k = wl.get(w);
|
|
26296
|
-
k || (k = w.normalize("NFD").length, wl.set(w, k)), t.push([k,
|
|
26296
|
+
k || (k = w.normalize("NFD").length, wl.set(w, k)), t.push([k, S++]);
|
|
26297
26297
|
}
|
|
26298
26298
|
}
|
|
26299
26299
|
let r;
|
|
@@ -26302,7 +26302,7 @@ function oA(n) {
|
|
|
26302
26302
|
else if (t.length > 0 && AA)
|
|
26303
26303
|
r = AA;
|
|
26304
26304
|
else {
|
|
26305
|
-
const
|
|
26305
|
+
const S = Object.keys(ml).join(""), w = jm(), F = `([${S}])|([${w}])|((?:゙|゚)\\n)|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|((?:\\p{Ideographic}|[-ヿ])\\n)|(\\n)`;
|
|
26306
26306
|
t.length === 0 ? r = aA = new RegExp(F + "|(\\u0000)", "gum") : r = AA = new RegExp(F + `|(${i2})`, "gum");
|
|
26307
26307
|
}
|
|
26308
26308
|
const A = [];
|
|
@@ -26311,49 +26311,49 @@ function oA(n) {
|
|
|
26311
26311
|
let c = n.normalize("NFD");
|
|
26312
26312
|
const g = [[0, 0]];
|
|
26313
26313
|
let u = 0, I = 0, f = 0, Q = 0, y = 0, b = !1;
|
|
26314
|
-
return c = c.replace(r, (
|
|
26314
|
+
return c = c.replace(r, (S, w, k, M, F, O, J, T, H, U) => {
|
|
26315
26315
|
if (U -= Q, w) {
|
|
26316
|
-
const
|
|
26316
|
+
const D = ml[w], G = D.length;
|
|
26317
26317
|
for (let R = 1; R < G; R++)
|
|
26318
26318
|
g.push([U - f + R, f - R]);
|
|
26319
|
-
return f -= G - 1,
|
|
26319
|
+
return f -= G - 1, D;
|
|
26320
26320
|
}
|
|
26321
26321
|
if (k) {
|
|
26322
|
-
let
|
|
26323
|
-
|
|
26324
|
-
const G =
|
|
26322
|
+
let D = Sl.get(k);
|
|
26323
|
+
D || (D = k.normalize("NFKC"), Sl.set(k, D));
|
|
26324
|
+
const G = D.length;
|
|
26325
26325
|
for (let R = 1; R < G; R++)
|
|
26326
26326
|
g.push([U - f + R, f - R]);
|
|
26327
|
-
return f -= G - 1,
|
|
26327
|
+
return f -= G - 1, D;
|
|
26328
26328
|
}
|
|
26329
26329
|
if (M)
|
|
26330
26330
|
return b = !0, U + y === A[u]?.[1] ? ++u : (g.push([U - 1 - f + 1, f - 1]), f -= 1, Q += 1), g.push([U - f + 1, f]), Q += 1, y += 1, M.charAt(0);
|
|
26331
26331
|
if (F) {
|
|
26332
|
-
const
|
|
26333
|
-
`), G =
|
|
26332
|
+
const D = F.endsWith(`
|
|
26333
|
+
`), G = D ? F.length - 2 : F.length;
|
|
26334
26334
|
b = !0;
|
|
26335
26335
|
let R = G;
|
|
26336
26336
|
U + y === A[u]?.[1] && (R -= A[u][0], ++u);
|
|
26337
26337
|
for (let L = 1; L <= R; L++)
|
|
26338
26338
|
g.push([U - 1 - f + L, f - L]);
|
|
26339
|
-
return f -= R, Q += R,
|
|
26339
|
+
return f -= R, Q += R, D ? (U += G - 1, g.push([U - f + 1, 1 + f]), f += 1, Q += 1, y += 1, F.slice(0, G)) : F;
|
|
26340
26340
|
}
|
|
26341
26341
|
if (O) {
|
|
26342
|
-
const
|
|
26343
|
-
return g.push([U - f +
|
|
26342
|
+
const D = O.length - 2;
|
|
26343
|
+
return g.push([U - f + D, 1 + f]), f += 1, Q += 1, y += 1, O.slice(0, -2);
|
|
26344
26344
|
}
|
|
26345
26345
|
if (J) {
|
|
26346
|
-
const
|
|
26347
|
-
return g.push([U - f +
|
|
26346
|
+
const D = J.length - 1;
|
|
26347
|
+
return g.push([U - f + D, f]), Q += 1, y += 1, J.slice(0, -1);
|
|
26348
26348
|
}
|
|
26349
26349
|
if (T)
|
|
26350
26350
|
return g.push([U - f + 1, f - 1]), f -= 1, Q += 1, y += 1, " ";
|
|
26351
26351
|
if (U + y === t[I]?.[1]) {
|
|
26352
|
-
const
|
|
26352
|
+
const D = t[I][0] - 1;
|
|
26353
26353
|
++I;
|
|
26354
|
-
for (let G = 1; G <=
|
|
26354
|
+
for (let G = 1; G <= D; G++)
|
|
26355
26355
|
g.push([U - (f - G), f - G]);
|
|
26356
|
-
f -=
|
|
26356
|
+
f -= D, Q += D;
|
|
26357
26357
|
}
|
|
26358
26358
|
return H;
|
|
26359
26359
|
}), g.push([c.length, f]), [c, g, b];
|
|
@@ -26958,9 +26958,9 @@ class Ph {
|
|
|
26958
26958
|
annotationCanvasMap: Q = null,
|
|
26959
26959
|
accessibilityManager: y = null,
|
|
26960
26960
|
annotationEditorUIManager: b = null,
|
|
26961
|
-
onAppend:
|
|
26961
|
+
onAppend: S = null
|
|
26962
26962
|
}) {
|
|
26963
|
-
this.pdfPage = t, this.linkService = i, this.downloadManager = r, this.imageResourcesPath = c, this.renderForms = g, this.annotationStorage = A, this.enableScripting = u, this._hasJSActionsPromise = I || Promise.resolve(!1), this._fieldObjectsPromise = f || Promise.resolve(null), this._annotationCanvasMap = Q, this._accessibilityManager = y, this._annotationEditorUIManager = b, this.#e =
|
|
26963
|
+
this.pdfPage = t, this.linkService = i, this.downloadManager = r, this.imageResourcesPath = c, this.renderForms = g, this.annotationStorage = A, this.enableScripting = u, this._hasJSActionsPromise = I || Promise.resolve(!1), this._fieldObjectsPromise = f || Promise.resolve(null), this._annotationCanvasMap = Q, this._accessibilityManager = y, this._annotationEditorUIManager = b, this.#e = S, this.annotationLayer = null, this.div = null, this._cancelled = !1, this._eventBus = i.eventBus;
|
|
26964
26964
|
}
|
|
26965
26965
|
async render(t, i = "display") {
|
|
26966
26966
|
if (this.div) {
|
|
@@ -27531,7 +27531,7 @@ class j2 {
|
|
|
27531
27531
|
if (r(Gr) && (R = u(Gr)), t[i] === "{" || t[i] === "}")
|
|
27532
27532
|
return y(R ? [R] : [], 1 / 0);
|
|
27533
27533
|
let L = U();
|
|
27534
|
-
return L ? R ? y([R, L], L.length) : (L.value =
|
|
27534
|
+
return L ? R ? y([R, L], L.length) : (L.value = D(L.value, G2), y([L], L.length)) : R ? D(R, Hl) : null;
|
|
27535
27535
|
}
|
|
27536
27536
|
function y(R = [], L) {
|
|
27537
27537
|
for (; ; ) {
|
|
@@ -27553,7 +27553,7 @@ class j2 {
|
|
|
27553
27553
|
break;
|
|
27554
27554
|
}
|
|
27555
27555
|
let P = R.length - 1, K = R[P];
|
|
27556
|
-
typeof K == "string" && (R[P] =
|
|
27556
|
+
typeof K == "string" && (R[P] = D(K, Hl));
|
|
27557
27557
|
let V = [];
|
|
27558
27558
|
for (let $ of R)
|
|
27559
27559
|
$ instanceof Ol && ($ = $.value.slice(0, $.value.length - L)), $ && V.push($);
|
|
@@ -27561,7 +27561,7 @@ class j2 {
|
|
|
27561
27561
|
}
|
|
27562
27562
|
function b() {
|
|
27563
27563
|
c(H2, SyntaxError);
|
|
27564
|
-
let R =
|
|
27564
|
+
let R = S();
|
|
27565
27565
|
if (c(Pl))
|
|
27566
27566
|
return R;
|
|
27567
27567
|
if (c(Y2)) {
|
|
@@ -27574,7 +27574,7 @@ class j2 {
|
|
|
27574
27574
|
}
|
|
27575
27575
|
throw new SyntaxError("Unclosed placeable");
|
|
27576
27576
|
}
|
|
27577
|
-
function
|
|
27577
|
+
function S() {
|
|
27578
27578
|
if (t[i] === "{")
|
|
27579
27579
|
return b();
|
|
27580
27580
|
if (r(Gl)) {
|
|
@@ -27627,7 +27627,7 @@ class j2 {
|
|
|
27627
27627
|
}
|
|
27628
27628
|
}
|
|
27629
27629
|
function k() {
|
|
27630
|
-
let R =
|
|
27630
|
+
let R = S();
|
|
27631
27631
|
return R.type !== "mesg" ? R : c(K2) ? {
|
|
27632
27632
|
type: "narg",
|
|
27633
27633
|
name: R.name,
|
|
@@ -27717,7 +27717,7 @@ class j2 {
|
|
|
27717
27717
|
}
|
|
27718
27718
|
return t[i - 1] === " " ? G(t.slice(R, i)) : !1;
|
|
27719
27719
|
}
|
|
27720
|
-
function
|
|
27720
|
+
function D(R, L) {
|
|
27721
27721
|
return R.replace(L, "");
|
|
27722
27722
|
}
|
|
27723
27723
|
function G(R) {
|
|
@@ -29368,37 +29368,37 @@ class Q9 {
|
|
|
29368
29368
|
const G = document.createElement("span");
|
|
29369
29369
|
H.before(G), G.append(H), c[F] = G, H = G;
|
|
29370
29370
|
}
|
|
29371
|
-
const U = A[F].substring(O, J),
|
|
29371
|
+
const U = A[F].substring(O, J), D = document.createTextNode(U);
|
|
29372
29372
|
if (T) {
|
|
29373
29373
|
const G = document.createElement("span");
|
|
29374
|
-
return G.className = `${T} appended`, G.append(
|
|
29374
|
+
return G.className = `${T} appended`, G.append(D), H.append(G), T.includes("selected") ? G.offsetLeft : 0;
|
|
29375
29375
|
}
|
|
29376
|
-
return H.append(
|
|
29376
|
+
return H.append(D), 0;
|
|
29377
29377
|
}
|
|
29378
|
-
let
|
|
29378
|
+
let S = u, w = S + 1;
|
|
29379
29379
|
if (I)
|
|
29380
|
-
|
|
29380
|
+
S = 0, w = t.length;
|
|
29381
29381
|
else if (!g)
|
|
29382
29382
|
return;
|
|
29383
29383
|
let k = -1, M = -1;
|
|
29384
|
-
for (let F =
|
|
29384
|
+
for (let F = S; F < w; F++) {
|
|
29385
29385
|
const O = t[F], J = O.begin;
|
|
29386
29386
|
if (J.divIdx === k && J.offset === M)
|
|
29387
29387
|
continue;
|
|
29388
29388
|
k = J.divIdx, M = J.offset;
|
|
29389
29389
|
const T = O.end, H = g && F === u, U = H ? " selected" : "";
|
|
29390
|
-
let
|
|
29390
|
+
let D = 0;
|
|
29391
29391
|
if (!f || J.divIdx !== f.divIdx ? (f !== null && b(f.divIdx, f.offset, Q.offset), y(J)) : b(f.divIdx, f.offset, J.offset), J.divIdx === T.divIdx)
|
|
29392
|
-
|
|
29392
|
+
D = b(J.divIdx, J.offset, T.offset, "highlight" + U);
|
|
29393
29393
|
else {
|
|
29394
|
-
|
|
29394
|
+
D = b(J.divIdx, J.offset, Q.offset, "highlight begin" + U);
|
|
29395
29395
|
for (let G = J.divIdx + 1, R = T.divIdx; G < R; G++)
|
|
29396
29396
|
c[G].className = "highlight middle" + U;
|
|
29397
29397
|
y(T, "highlight end" + U);
|
|
29398
29398
|
}
|
|
29399
29399
|
f = T, H && i.scrollMatchIntoView({
|
|
29400
29400
|
element: c[J.divIdx],
|
|
29401
|
-
selectedLeft:
|
|
29401
|
+
selectedLeft: D,
|
|
29402
29402
|
pageIndex: r,
|
|
29403
29403
|
matchIndex: u
|
|
29404
29404
|
});
|
|
@@ -29419,7 +29419,7 @@ class Q9 {
|
|
|
29419
29419
|
let u = -1;
|
|
29420
29420
|
for (const Q of r) {
|
|
29421
29421
|
const y = Math.max(u, Q.begin.divIdx);
|
|
29422
|
-
for (let b = y,
|
|
29422
|
+
for (let b = y, S = Q.end.divIdx; b <= S; b++) {
|
|
29423
29423
|
const w = g[b];
|
|
29424
29424
|
w.textContent = c[b], w.className = "";
|
|
29425
29425
|
}
|
|
@@ -29523,12 +29523,12 @@ class Bs {
|
|
|
29523
29523
|
}
|
|
29524
29524
|
const g = /* @__PURE__ */ new Set();
|
|
29525
29525
|
for (let b = 0; b < c.rangeCount; b++) {
|
|
29526
|
-
const
|
|
29526
|
+
const S = c.getRangeAt(b);
|
|
29527
29527
|
for (const w of this.#r.keys())
|
|
29528
|
-
!g.has(w) &&
|
|
29528
|
+
!g.has(w) && S.intersectsNode(w) && g.add(w);
|
|
29529
29529
|
}
|
|
29530
|
-
for (const [b,
|
|
29531
|
-
g.has(b) ?
|
|
29530
|
+
for (const [b, S] of this.#r)
|
|
29531
|
+
g.has(b) ? S.classList.add("active") : i(S, b);
|
|
29532
29532
|
if (r ??= getComputedStyle(this.#r.values().next().value).getPropertyValue("-moz-user-select") === "none", r)
|
|
29533
29533
|
return;
|
|
29534
29534
|
const u = c.getRangeAt(0), I = A && (u.compareBoundaryPoints(Range.END_TO_END, A) === 0 || u.compareBoundaryPoints(Range.START_TO_END, A) === 0);
|
|
@@ -29787,8 +29787,8 @@ class jh {
|
|
|
29787
29787
|
keepTextLayer: c
|
|
29788
29788
|
}), this.renderingState = Bt.INITIAL;
|
|
29789
29789
|
const g = this.div, u = g.childNodes, I = t && this.zoomLayer || null, f = i && this.annotationLayer?.div || null, Q = r && this.annotationEditorLayer?.div || null, y = A && this.xfaLayer?.div || null, b = c && this.textLayer?.div || null;
|
|
29790
|
-
for (let
|
|
29791
|
-
const w = u[
|
|
29790
|
+
for (let S = u.length - 1; S >= 0; S--) {
|
|
29791
|
+
const w = u[S];
|
|
29792
29792
|
switch (w) {
|
|
29793
29793
|
case I:
|
|
29794
29794
|
case f:
|
|
@@ -29902,9 +29902,9 @@ class jh {
|
|
|
29902
29902
|
if (f === 90 || f === 270) {
|
|
29903
29903
|
const {
|
|
29904
29904
|
width: b,
|
|
29905
|
-
height:
|
|
29905
|
+
height: S
|
|
29906
29906
|
} = this.viewport;
|
|
29907
|
-
Q =
|
|
29907
|
+
Q = S / b, y = b / S;
|
|
29908
29908
|
}
|
|
29909
29909
|
t.style.transform = `rotate(${I}deg) scale(${Q}, ${y})`;
|
|
29910
29910
|
}
|
|
@@ -29957,7 +29957,7 @@ class jh {
|
|
|
29957
29957
|
})), !this.annotationLayer && this.#e !== An.DISABLE) {
|
|
29958
29958
|
const {
|
|
29959
29959
|
annotationStorage: U,
|
|
29960
|
-
annotationEditorUIManager:
|
|
29960
|
+
annotationEditorUIManager: D,
|
|
29961
29961
|
downloadManager: G,
|
|
29962
29962
|
enableScripting: R,
|
|
29963
29963
|
fieldObjectsPromise: L,
|
|
@@ -29976,7 +29976,7 @@ class jh {
|
|
|
29976
29976
|
fieldObjectsPromise: L,
|
|
29977
29977
|
annotationCanvasMap: this._annotationCanvasMap,
|
|
29978
29978
|
accessibilityManager: this._accessibilityManager,
|
|
29979
|
-
annotationEditorUIManager:
|
|
29979
|
+
annotationEditorUIManager: D,
|
|
29980
29980
|
onAppend: (V) => {
|
|
29981
29981
|
this.#g(V, "annotationLayer");
|
|
29982
29982
|
}
|
|
@@ -30000,15 +30000,15 @@ class jh {
|
|
|
30000
30000
|
(!y || U) && (Q.hidden = !1, b = null);
|
|
30001
30001
|
};
|
|
30002
30002
|
g.append(Q), this.canvas = Q;
|
|
30003
|
-
const
|
|
30003
|
+
const S = Q.getContext("2d", {
|
|
30004
30004
|
alpha: !1
|
|
30005
30005
|
}), w = this.outputScale = new Dm();
|
|
30006
30006
|
if (this.maxCanvasPixels === 0) {
|
|
30007
30007
|
const U = 1 / this.scale;
|
|
30008
30008
|
w.sx *= U, w.sy *= U, this.#t = !0;
|
|
30009
30009
|
} else if (this.maxCanvasPixels > 0) {
|
|
30010
|
-
const U = I * f,
|
|
30011
|
-
w.sx >
|
|
30010
|
+
const U = I * f, D = Math.sqrt(this.maxCanvasPixels / U);
|
|
30011
|
+
w.sx > D || w.sy > D ? (w.sx = D, w.sy = D, this.#t = !0) : this.#t = !1;
|
|
30012
30012
|
}
|
|
30013
30013
|
const k = El(w.sx), M = El(w.sy);
|
|
30014
30014
|
Q.width = Nr(I * w.sx, k[0]), Q.height = Nr(f * w.sy, M[0]);
|
|
@@ -30017,7 +30017,7 @@ class jh {
|
|
|
30017
30017
|
} = Q;
|
|
30018
30018
|
F.width = Nr(I, k[1]) + "px", F.height = Nr(f, M[1]) + "px", this.#c.set(Q, c);
|
|
30019
30019
|
const O = w.scaled ? [w.sx, 0, 0, w.sy, 0, 0] : null, J = {
|
|
30020
|
-
canvasContext:
|
|
30020
|
+
canvasContext: S,
|
|
30021
30021
|
transform: O,
|
|
30022
30022
|
viewport: c,
|
|
30023
30023
|
annotationMode: this.#e,
|
|
@@ -30041,8 +30041,8 @@ class jh {
|
|
|
30041
30041
|
annotationLayer: this.annotationLayer?.annotationLayer,
|
|
30042
30042
|
textLayer: this.textLayer,
|
|
30043
30043
|
drawLayer: this.drawLayer.getDrawLayer(),
|
|
30044
|
-
onAppend: (
|
|
30045
|
-
this.#g(
|
|
30044
|
+
onAppend: (D) => {
|
|
30045
|
+
this.#g(D, "annotationEditorLayer");
|
|
30046
30046
|
}
|
|
30047
30047
|
})), this.#u());
|
|
30048
30048
|
}, (U) => (U instanceof NA || b?.(!0), this.#y(T, U)));
|
|
@@ -30050,12 +30050,12 @@ class jh {
|
|
|
30050
30050
|
if (!this.xfaLayer) {
|
|
30051
30051
|
const {
|
|
30052
30052
|
annotationStorage: U,
|
|
30053
|
-
linkService:
|
|
30053
|
+
linkService: D
|
|
30054
30054
|
} = this.#i;
|
|
30055
30055
|
this.xfaLayer = new qh({
|
|
30056
30056
|
pdfPage: A,
|
|
30057
30057
|
annotationStorage: U,
|
|
30058
|
-
linkService:
|
|
30058
|
+
linkService: D
|
|
30059
30059
|
});
|
|
30060
30060
|
}
|
|
30061
30061
|
this.#C();
|
|
@@ -30442,7 +30442,7 @@ class F9 {
|
|
|
30442
30442
|
const u = t.first.id, I = t.last.id;
|
|
30443
30443
|
if (I - u + 1 > g) {
|
|
30444
30444
|
const y = t.ids;
|
|
30445
|
-
for (let b = 1,
|
|
30445
|
+
for (let b = 1, S = I - u; b < S; b++) {
|
|
30446
30446
|
const w = r ? u + b : I - b;
|
|
30447
30447
|
if (y.has(w))
|
|
30448
30448
|
continue;
|
|
@@ -30775,8 +30775,8 @@ class Wh {
|
|
|
30775
30775
|
}, () => {
|
|
30776
30776
|
});
|
|
30777
30777
|
const Q = (b) => {
|
|
30778
|
-
const
|
|
30779
|
-
|
|
30778
|
+
const S = this._pages[b.pageNumber - 1];
|
|
30779
|
+
S && this.#e.push(S);
|
|
30780
30780
|
};
|
|
30781
30781
|
g._on("pagerender", Q, {
|
|
30782
30782
|
signal: f
|
|
@@ -30788,7 +30788,7 @@ class Wh {
|
|
|
30788
30788
|
};
|
|
30789
30789
|
g._on("pagerendered", y, {
|
|
30790
30790
|
signal: f
|
|
30791
|
-
}), Promise.all([r, c]).then(([b,
|
|
30791
|
+
}), Promise.all([r, c]).then(([b, S]) => {
|
|
30792
30792
|
if (t !== this.pdfDocument)
|
|
30793
30793
|
return;
|
|
30794
30794
|
this._firstPageCapability.resolve(b), this._optionalContentConfigPromise = A;
|
|
@@ -30796,7 +30796,7 @@ class Wh {
|
|
|
30796
30796
|
annotationEditorMode: w,
|
|
30797
30797
|
annotationMode: k,
|
|
30798
30798
|
textLayerMode: M
|
|
30799
|
-
} = this.#p(
|
|
30799
|
+
} = this.#p(S);
|
|
30800
30800
|
if (M !== Oi.DISABLE) {
|
|
30801
30801
|
const T = this.#A = document.createElement("div");
|
|
30802
30802
|
T.id = "hiddenCopyElement", I.before(T);
|
|
@@ -30849,11 +30849,11 @@ class Wh {
|
|
|
30849
30849
|
return;
|
|
30850
30850
|
}
|
|
30851
30851
|
for (let H = 2; H <= i; ++H) {
|
|
30852
|
-
const U = t.getPage(H).then((
|
|
30852
|
+
const U = t.getPage(H).then((D) => {
|
|
30853
30853
|
const G = this._pages[H - 1];
|
|
30854
|
-
G.pdfPage || G.setPdfPage(
|
|
30855
|
-
}, (
|
|
30856
|
-
console.error(`Unable to get page ${H} to initialize viewer`,
|
|
30854
|
+
G.pdfPage || G.setPdfPage(D), --T === 0 && this._pagesCapability.resolve();
|
|
30855
|
+
}, (D) => {
|
|
30856
|
+
console.error(`Unable to get page ${H} to initialize viewer`, D), --T === 0 && this._pagesCapability.resolve();
|
|
30857
30857
|
});
|
|
30858
30858
|
H % Tr.PAUSE_EAGER_PAGE_INIT === 0 && await U;
|
|
30859
30859
|
}
|
|
@@ -30960,8 +30960,8 @@ class Wh {
|
|
|
30960
30960
|
destArray: Q,
|
|
30961
30961
|
allowNegativeOffset: !0
|
|
30962
30962
|
}), Array.isArray(g)) {
|
|
30963
|
-
const y = t / I - 1, [b,
|
|
30964
|
-
this.container.scrollLeft += (g[0] -
|
|
30963
|
+
const y = t / I - 1, [b, S] = this.containerTopLeft;
|
|
30964
|
+
this.container.scrollLeft += (g[0] - S) * y, this.container.scrollTop += (g[1] - b) * y;
|
|
30965
30965
|
}
|
|
30966
30966
|
}
|
|
30967
30967
|
this.eventBus.dispatch("scalechanging", {
|
|
@@ -31038,7 +31038,7 @@ class Wh {
|
|
|
31038
31038
|
return;
|
|
31039
31039
|
}
|
|
31040
31040
|
let g = 0, u = 0, I = 0, f = 0, Q, y;
|
|
31041
|
-
const b = c.rotation % 180 !== 0,
|
|
31041
|
+
const b = c.rotation % 180 !== 0, S = (b ? c.height : c.width) / c.scale / rn.PDF_TO_CSS_UNITS, w = (b ? c.width : c.height) / c.scale / rn.PDF_TO_CSS_UNITS;
|
|
31042
31042
|
let k = 0;
|
|
31043
31043
|
switch (i[1].name) {
|
|
31044
31044
|
case "XYZ":
|
|
@@ -31054,7 +31054,7 @@ class Wh {
|
|
|
31054
31054
|
break;
|
|
31055
31055
|
case "FitV":
|
|
31056
31056
|
case "FitBV":
|
|
31057
|
-
g = i[2], I =
|
|
31057
|
+
g = i[2], I = S, f = w, k = "page-height";
|
|
31058
31058
|
break;
|
|
31059
31059
|
case "FitR":
|
|
31060
31060
|
g = i[2], u = i[3], I = i[4] - g, f = i[5] - u;
|
|
@@ -31505,7 +31505,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31505
31505
|
const i = URL.createObjectURL(new Blob([M9], { type: "text/javascript" }));
|
|
31506
31506
|
Qm.workerSrc = i;
|
|
31507
31507
|
const r = t, A = Ri(), { proxy: c } = ji(), { activeZoom: g } = wi(A), u = W(null), I = W(null), f = W(!1), y = c.$superdoc.config.pdfViewer.textLayerMode ?? 0;
|
|
31508
|
-
let b = null,
|
|
31508
|
+
let b = null, S = [];
|
|
31509
31509
|
const w = n, k = w.documentData.id, M = w.documentData.data, F = (P) => {
|
|
31510
31510
|
const K = P.getViewport({ scale: 1 }), V = K.width, $ = K.height;
|
|
31511
31511
|
return { width: V, height: $ };
|
|
@@ -31546,7 +31546,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31546
31546
|
eventBus: Me,
|
|
31547
31547
|
textLayerMode: y
|
|
31548
31548
|
});
|
|
31549
|
-
|
|
31549
|
+
S.push(Xe);
|
|
31550
31550
|
const at = se.getBoundingClientRect();
|
|
31551
31551
|
at.originalWidth = ne, at.originalHeight = Be, Xe.setPdfPage(te), await Xe.draw(), r("page-loaded", k, ee, at);
|
|
31552
31552
|
}
|
|
@@ -31555,7 +31555,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31555
31555
|
console.error("Error loading PDF:", K);
|
|
31556
31556
|
}
|
|
31557
31557
|
}
|
|
31558
|
-
function
|
|
31558
|
+
function D(P) {
|
|
31559
31559
|
const K = window.getSelection();
|
|
31560
31560
|
if (K.rangeCount === 0)
|
|
31561
31561
|
return null;
|
|
@@ -31581,14 +31581,14 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31581
31581
|
K.tagName !== "SPAN" && r("bypass-selection", P);
|
|
31582
31582
|
}, R = (P) => {
|
|
31583
31583
|
if (window.getSelection().toString().length > 0) {
|
|
31584
|
-
const V =
|
|
31584
|
+
const V = D(I.value), $ = zs({
|
|
31585
31585
|
selectionBounds: V,
|
|
31586
31586
|
documentId: k
|
|
31587
31587
|
});
|
|
31588
31588
|
r("selection-change", $);
|
|
31589
31589
|
}
|
|
31590
31590
|
}, L = () => {
|
|
31591
|
-
|
|
31591
|
+
S.forEach((P) => P.destroy()), b.cleanup(), b.destroy(), S = [], b = null, URL.revokeObjectURL(i);
|
|
31592
31592
|
};
|
|
31593
31593
|
return Ii(async () => {
|
|
31594
31594
|
await J(M);
|
|
@@ -31606,7 +31606,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31606
31606
|
id: "viewerId"
|
|
31607
31607
|
}, null, 512),
|
|
31608
31608
|
f.value ? Ze("", !0) : (fe(), ye("div", G9, [
|
|
31609
|
-
bi(
|
|
31609
|
+
bi(Fe(hQ), {
|
|
31610
31610
|
class: "superdoc-pdf-viewer__spin",
|
|
31611
31611
|
size: "large"
|
|
31612
31612
|
})
|
|
@@ -31630,7 +31630,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31630
31630
|
},
|
|
31631
31631
|
emits: ["highlight-click"],
|
|
31632
31632
|
setup(n, { expose: t, emit: i }) {
|
|
31633
|
-
const r = Ri(), A = hn(), { COMMENT_EVENTS: c } = A, { documentsWithConverations: g, activeComment: u, floatingCommentsOffset: I, commentsList: f } = wi(A), { documents: Q, activeZoom: y } = wi(r), { proxy: b } = ji(),
|
|
31633
|
+
const r = Ri(), A = hn(), { COMMENT_EVENTS: c } = A, { documentsWithConverations: g, activeComment: u, floatingCommentsOffset: I, commentsList: f } = wi(A), { documents: Q, activeZoom: y } = wi(r), { proxy: b } = ji(), S = i, w = n, k = (T) => {
|
|
31634
31634
|
const H = {
|
|
31635
31635
|
creatorEmail: w.user.email,
|
|
31636
31636
|
creatorName: w.user.name,
|
|
@@ -31647,11 +31647,11 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31647
31647
|
U.left = U.right, U.right = R;
|
|
31648
31648
|
}
|
|
31649
31649
|
T.selectionBounds = U;
|
|
31650
|
-
const
|
|
31651
|
-
u.value = G.commentId,
|
|
31650
|
+
const D = Q.value.find((R) => R.id === T.documentId), G = Yn(H);
|
|
31651
|
+
u.value = G.commentId, D.conversations.push(G), b.$superdoc.emit("comments-update", { type: c.NEW, comment: G.getValues() });
|
|
31652
31652
|
}, M = (T) => {
|
|
31653
|
-
const { selection: H, commentId: U } = T,
|
|
31654
|
-
(parseFloat(G.top) +
|
|
31653
|
+
const { selection: H, commentId: U } = T, D = H.getContainerLocation(w.parent), G = T.selection.selectionBounds;
|
|
31654
|
+
(parseFloat(G.top) + D.top) * y.value;
|
|
31655
31655
|
const R = "#078383", L = "#B1124B";
|
|
31656
31656
|
let P = "33";
|
|
31657
31657
|
u.value === U && (P = "66");
|
|
@@ -31668,7 +31668,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31668
31668
|
}, F = (T) => {
|
|
31669
31669
|
I.value = T.selection.selectionBounds.top;
|
|
31670
31670
|
}, O = (T, H) => {
|
|
31671
|
-
T.isFocused = !0, u.value = T.commentId, T.setActive(b.$superdoc),
|
|
31671
|
+
T.isFocused = !0, u.value = T.commentId, T.setActive(b.$superdoc), S("highlight-click", T);
|
|
31672
31672
|
}, J = ae(() => f.value.filter((T) => !T.parentCommentId).filter((T) => T.selection && T.selection.selectionBounds?.top).filter((T) => !T.resolvedTime).filter((T) => T.selection?.source !== "super-editor"));
|
|
31673
31673
|
return wt(u, (T) => {
|
|
31674
31674
|
if (!T) return;
|
|
@@ -31681,7 +31681,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31681
31681
|
We("div", P9, [
|
|
31682
31682
|
(fe(!0), ye(jt, null, gn(J.value, (U) => (fe(), ye("div", {
|
|
31683
31683
|
class: "sd-comment-anchor sd-highlight",
|
|
31684
|
-
onClick: Qi((
|
|
31684
|
+
onClick: Qi((D) => O(U), ["stop", "prevent"]),
|
|
31685
31685
|
"data-id": U.commentId,
|
|
31686
31686
|
style: ri(M(U))
|
|
31687
31687
|
}, null, 12, O9))), 256))
|
|
@@ -31709,7 +31709,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31709
31709
|
activeComment: c,
|
|
31710
31710
|
commentsList: g,
|
|
31711
31711
|
editorCommentPositions: u
|
|
31712
|
-
} = wi(i), I = W(null), f = W([]), Q = W(!1), y = W(0), b = W(0),
|
|
31712
|
+
} = wi(i), I = W(null), f = W([]), Q = W(!1), y = W(0), b = W(0), S = ae(() => (F) => I.value ? (I.value.getBoundingClientRect(), typeof F.top != "number" || isNaN(F.top) ? { display: "none" } : { top: `${F.top}px` }) : { top: "0px" }), w = (F) => {
|
|
31713
31713
|
if (!F) return window;
|
|
31714
31714
|
let O = F.parentNode;
|
|
31715
31715
|
for (; O && O !== document; ) {
|
|
@@ -31726,15 +31726,15 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31726
31726
|
const T = J;
|
|
31727
31727
|
if (f.value.some((P) => P.id == T)) return;
|
|
31728
31728
|
const H = t.parent.getBoundingClientRect(), U = r.value.find((P) => P.commentId === T || P.importedId == T);
|
|
31729
|
-
let
|
|
31729
|
+
let D = u.value[T]?.bounds || {};
|
|
31730
31730
|
if (t.currentDocument.type === "application/pdf" && (Object.entries(U.selection?.selectionBounds).forEach(([P, K]) => {
|
|
31731
|
-
|
|
31732
|
-
}),
|
|
31731
|
+
D[P] = Number(K);
|
|
31732
|
+
}), D.top += H.top), !D) return;
|
|
31733
31733
|
const G = w(t.parent);
|
|
31734
31734
|
G === window ? window.scrollY : G.scrollTop;
|
|
31735
31735
|
const R = O.value?.getBoundingClientRect(), L = {
|
|
31736
31736
|
id: T,
|
|
31737
|
-
top:
|
|
31737
|
+
top: D.top - H.top,
|
|
31738
31738
|
height: R.height,
|
|
31739
31739
|
commentRef: U,
|
|
31740
31740
|
elementRef: O
|
|
@@ -31754,7 +31754,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31754
31754
|
if (!c.value) return y.value = 0;
|
|
31755
31755
|
const J = i.getComment(c.value);
|
|
31756
31756
|
if (!J) return y.value = 0;
|
|
31757
|
-
const T = f.value.find((
|
|
31757
|
+
const T = f.value.find((D) => D.id === J.commentId);
|
|
31758
31758
|
if (!T) return y.value = 0;
|
|
31759
31759
|
const H = J.selection.selectionBounds.top, U = T.top;
|
|
31760
31760
|
I.value.getBoundingClientRect(), y.value = H - U, setTimeout(() => {
|
|
@@ -31770,7 +31770,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31770
31770
|
ref: I
|
|
31771
31771
|
}, [
|
|
31772
31772
|
We("div", K9, [
|
|
31773
|
-
(fe(!0), ye(jt, null, gn(
|
|
31773
|
+
(fe(!0), ye(jt, null, gn(Fe(r), (J) => (fe(), ye("div", {
|
|
31774
31774
|
key: J.commentId || J.importedId
|
|
31775
31775
|
}, [
|
|
31776
31776
|
We("div", {
|
|
@@ -31794,7 +31794,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31794
31794
|
}, [
|
|
31795
31795
|
(fe(!0), ye(jt, null, gn(f.value, (J) => (fe(), ye("div", {
|
|
31796
31796
|
key: J.id,
|
|
31797
|
-
style: ri(
|
|
31797
|
+
style: ri(S.value(J)),
|
|
31798
31798
|
class: "floating-comment"
|
|
31799
31799
|
}, [
|
|
31800
31800
|
(fe(), hi(ir, {
|
|
@@ -31932,7 +31932,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31932
31932
|
setup(n) {
|
|
31933
31933
|
const t = n, i = ae(() => t.field.options.find((A) => A.annotationId.includes(t.optionId))?.checked);
|
|
31934
31934
|
return (r, A) => (fe(), ye("div", ny, [
|
|
31935
|
-
bi(
|
|
31935
|
+
bi(Fe(Yp), {
|
|
31936
31936
|
checked: i.value,
|
|
31937
31937
|
disabled: !t.isEditing
|
|
31938
31938
|
}, null, 8, ["checked", "disabled"])
|
|
@@ -31987,14 +31987,14 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31987
31987
|
return t.value.forEach((f) => {
|
|
31988
31988
|
const { id: Q, annotations: y } = f, b = f.container;
|
|
31989
31989
|
if (!b) return;
|
|
31990
|
-
const
|
|
31991
|
-
!
|
|
31990
|
+
const S = b.getBoundingClientRect(), w = f.pageContainers;
|
|
31991
|
+
!S || !w || y.forEach((k) => {
|
|
31992
31992
|
const { itemid: M, page: F, nostyle: O } = k;
|
|
31993
31993
|
let J = k.pageannotation;
|
|
31994
31994
|
k.itemfieldtype === "CHECKBOXINPUT" && (J = k.annotationid);
|
|
31995
|
-
const { x1: T, y1: H, x2: U, y2:
|
|
31995
|
+
const { x1: T, y1: H, x2: U, y2: D } = k, G = { x1: T, y1: H, x2: U, y2: D }, R = document.getElementById(`${Q}-page-${F + 1}`);
|
|
31996
31996
|
if (!R) return;
|
|
31997
|
-
const L = R.getBoundingClientRect(), P = f.pageContainers.find((se) => se.page === F), K = L.height / P.containerBounds.originalHeight, V = L.bottom -
|
|
31997
|
+
const L = R.getBoundingClientRect(), P = f.pageContainers.find((se) => se.page === F), K = L.height / P.containerBounds.originalHeight, V = L.bottom - S.top, $ = L.left - S.left, q = u(G, K, V, $), ee = {
|
|
31998
31998
|
fontSize: k.original_font_size + "px",
|
|
31999
31999
|
originalFontSize: k.original_font_size,
|
|
32000
32000
|
coordinates: q
|
|
@@ -32012,7 +32012,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
32012
32012
|
});
|
|
32013
32013
|
}), I;
|
|
32014
32014
|
}), u = (I, f, Q, y) => {
|
|
32015
|
-
const { x1: b, y1:
|
|
32015
|
+
const { x1: b, y1: S, x2: w, y2: k } = I, M = b * f, F = S * f, O = w * f, J = k * f;
|
|
32016
32016
|
return {
|
|
32017
32017
|
top: `${Q - J}px`,
|
|
32018
32018
|
left: `${M + y}px`,
|
|
@@ -32039,8 +32039,8 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
32039
32039
|
const t = cy(), { getAnnotations: i } = wi(t), { fieldComponentsMap: r, getField: A } = t, c = ae(() => (u) => {
|
|
32040
32040
|
const { coordinates: I, field: f } = u;
|
|
32041
32041
|
if (["TEXTINPUT", "SELECT"].includes(f.fieldType)) {
|
|
32042
|
-
const
|
|
32043
|
-
I.top = `${
|
|
32042
|
+
const S = I.top.split("px")[0] - 4;
|
|
32043
|
+
I.top = `${S}px`;
|
|
32044
32044
|
}
|
|
32045
32045
|
if (["HTMLINPUT"].includes(f.fieldType)) {
|
|
32046
32046
|
const w = I.minWidth.split("px")[0] / 1.3362445414847162;
|
|
@@ -32064,7 +32064,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
32064
32064
|
style: ri(c.value(f)),
|
|
32065
32065
|
class: Xs(["field-container", { "field-container--no-style": f.nostyle }])
|
|
32066
32066
|
}, [
|
|
32067
|
-
(fe(), hi(Jd(
|
|
32067
|
+
(fe(), hi(Jd(Fe(r)[f.field.fieldType]), {
|
|
32068
32068
|
class: "field-component",
|
|
32069
32069
|
field: f.field,
|
|
32070
32070
|
"style-override": f.style,
|
|
@@ -32095,8 +32095,8 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
32095
32095
|
}, g = (I) => new Promise((f, Q) => {
|
|
32096
32096
|
const y = new FileReader();
|
|
32097
32097
|
y.onload = (b) => {
|
|
32098
|
-
const
|
|
32099
|
-
f(
|
|
32098
|
+
const S = b.target.result;
|
|
32099
|
+
f(S);
|
|
32100
32100
|
}, y.onerror = (b) => Q(b), y.readAsText(I);
|
|
32101
32101
|
}), u = async () => {
|
|
32102
32102
|
try {
|
|
@@ -32132,13 +32132,13 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
32132
32132
|
},
|
|
32133
32133
|
setup(n, { expose: t }) {
|
|
32134
32134
|
const i = n, r = Ri(), A = W(null), c = () => {
|
|
32135
|
-
const
|
|
32135
|
+
const f = r.activeSelection.selectionBounds;
|
|
32136
32136
|
return {
|
|
32137
32137
|
position: "absolute",
|
|
32138
|
-
top: parseFloat(
|
|
32139
|
-
left:
|
|
32140
|
-
width:
|
|
32141
|
-
height:
|
|
32138
|
+
top: parseFloat(f.top) + "px",
|
|
32139
|
+
left: f.left + "px",
|
|
32140
|
+
width: f.right - f.left + "px",
|
|
32141
|
+
height: f.bottom - f.top + "px",
|
|
32142
32142
|
backgroundColor: "#6366f133",
|
|
32143
32143
|
pointerEvents: "none"
|
|
32144
32144
|
};
|
|
@@ -32148,14 +32148,24 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
32148
32148
|
if (i.editor && !i.editor.isDestroyed)
|
|
32149
32149
|
i.editor.commands.insertAiMark();
|
|
32150
32150
|
else if (A.value && !A.value.hasChildNodes()) {
|
|
32151
|
-
const
|
|
32152
|
-
|
|
32151
|
+
const f = document.createElement("div");
|
|
32152
|
+
f.className = "ai-highlight-anchor sd-highlight", Object.assign(f.style, c()), A.value.appendChild(f);
|
|
32153
32153
|
}
|
|
32154
32154
|
},
|
|
32155
32155
|
removeAiHighlight: () => {
|
|
32156
32156
|
i.editor && !i.editor.isDestroyed && i.editor.commands.removeAiMark(), A.value && (A.value.innerHTML = "");
|
|
32157
|
+
},
|
|
32158
|
+
updateAiHighlight: () => {
|
|
32159
|
+
if (i.editor && !i.editor.isDestroyed)
|
|
32160
|
+
i.editor.commands.updateAiHighlightStyle("sd-ai-highlight-pulse");
|
|
32161
|
+
else if (A.value) {
|
|
32162
|
+
const f = A.value.querySelectorAll(".ai-highlight-anchor");
|
|
32163
|
+
Array.from(f).forEach((Q) => {
|
|
32164
|
+
Q.classList.add("sd-ai-highlight-pulse");
|
|
32165
|
+
});
|
|
32166
|
+
}
|
|
32157
32167
|
}
|
|
32158
|
-
}), (
|
|
32168
|
+
}), (f, Q) => (fe(), ye("div", By, [
|
|
32159
32169
|
We("div", {
|
|
32160
32170
|
class: "ai-highlight-layer",
|
|
32161
32171
|
ref_key: "highlightLayer",
|
|
@@ -32163,7 +32173,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
32163
32173
|
}, null, 512)
|
|
32164
32174
|
]));
|
|
32165
32175
|
}
|
|
32166
|
-
}, py = /* @__PURE__ */ Mt(Ey, [["__scopeId", "data-v-
|
|
32176
|
+
}, py = /* @__PURE__ */ Mt(Ey, [["__scopeId", "data-v-37270b07"]]);
|
|
32167
32177
|
function Qy(n) {
|
|
32168
32178
|
return {
|
|
32169
32179
|
selectedText: ae(() => {
|
|
@@ -32178,11 +32188,19 @@ function Qy(n) {
|
|
|
32178
32188
|
}
|
|
32179
32189
|
function my({ emitAiHighlight: n, activeEditorRef: t }) {
|
|
32180
32190
|
const i = W(!1), r = W(!1), A = Zt({ top: 0, left: 0 }), c = W(null), g = ({ type: y, data: b }) => {
|
|
32181
|
-
if (!c.value)
|
|
32182
|
-
|
|
32183
|
-
|
|
32191
|
+
if (!c.value) return;
|
|
32192
|
+
const S = t.value;
|
|
32193
|
+
switch (y) {
|
|
32194
|
+
case "add":
|
|
32195
|
+
S && !S.isDestroyed && S.commands.clearAiHighlightStyle(), c.value.addAiHighlight();
|
|
32196
|
+
break;
|
|
32197
|
+
case "remove":
|
|
32198
|
+
S && !S.isDestroyed && S.commands.clearAiHighlightStyle(), c.value.removeAiHighlight();
|
|
32199
|
+
break;
|
|
32200
|
+
case "update":
|
|
32201
|
+
c.value.updateAiHighlight();
|
|
32202
|
+
break;
|
|
32184
32203
|
}
|
|
32185
|
-
y === "add" ? c.value.addAiHighlight() : y === "remove" && c.value.removeAiHighlight();
|
|
32186
32204
|
}, u = () => {
|
|
32187
32205
|
const y = t.value;
|
|
32188
32206
|
if (!y || y.isDestroyed) {
|
|
@@ -32190,11 +32208,11 @@ function my({ emitAiHighlight: n, activeEditorRef: t }) {
|
|
|
32190
32208
|
return;
|
|
32191
32209
|
}
|
|
32192
32210
|
try {
|
|
32193
|
-
const { view: b } = y, { selection:
|
|
32194
|
-
|
|
32211
|
+
const { view: b } = y, { selection: S } = b.state;
|
|
32212
|
+
S.empty || n({ type: "add", data: null });
|
|
32195
32213
|
let w;
|
|
32196
32214
|
try {
|
|
32197
|
-
w = b.coordsAtPos(
|
|
32215
|
+
w = b.coordsAtPos(S.$head.pos);
|
|
32198
32216
|
} catch {
|
|
32199
32217
|
const M = window.getSelection();
|
|
32200
32218
|
if (M.rangeCount > 0) {
|
|
@@ -32211,8 +32229,8 @@ function my({ emitAiHighlight: n, activeEditorRef: t }) {
|
|
|
32211
32229
|
try {
|
|
32212
32230
|
const w = t.value.view.dom.getBoundingClientRect();
|
|
32213
32231
|
A.top = w.top + 100 + "px", A.left = w.left + 100 + "px", r.value = !0;
|
|
32214
|
-
} catch (
|
|
32215
|
-
console.error("[useAi] Failed to get fallback position:",
|
|
32232
|
+
} catch (S) {
|
|
32233
|
+
console.error("[useAi] Failed to get fallback position:", S);
|
|
32216
32234
|
}
|
|
32217
32235
|
}
|
|
32218
32236
|
};
|
|
@@ -32229,10 +32247,10 @@ function my({ emitAiHighlight: n, activeEditorRef: t }) {
|
|
|
32229
32247
|
handleAiHighlight: g,
|
|
32230
32248
|
showAiWriterAtCursor: u,
|
|
32231
32249
|
handleAiWriterClose: () => {
|
|
32232
|
-
r.value = !1
|
|
32250
|
+
r.value = !1;
|
|
32233
32251
|
},
|
|
32234
32252
|
handleAiToolClick: () => {
|
|
32235
|
-
u();
|
|
32253
|
+
n({ type: "add", data: null }), u();
|
|
32236
32254
|
}
|
|
32237
32255
|
};
|
|
32238
32256
|
}
|
|
@@ -32250,7 +32268,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32250
32268
|
selectionPosition: u,
|
|
32251
32269
|
activeSelection: I,
|
|
32252
32270
|
activeZoom: f
|
|
32253
|
-
} = wi(i), { handlePageReady: Q, modules: y, user: b, getDocument:
|
|
32271
|
+
} = wi(i), { handlePageReady: Q, modules: y, user: b, getDocument: S } = i, {
|
|
32254
32272
|
getConfig: w,
|
|
32255
32273
|
documentsWithConverations: k,
|
|
32256
32274
|
commentsList: M,
|
|
@@ -32260,7 +32278,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32260
32278
|
commentsByDocument: T,
|
|
32261
32279
|
isCommentsListVisible: H,
|
|
32262
32280
|
isFloatingCommentsReady: U,
|
|
32263
|
-
generalCommentIds:
|
|
32281
|
+
generalCommentIds: D,
|
|
32264
32282
|
getFloatingComments: G,
|
|
32265
32283
|
hasSyncedCollaborationComments: R,
|
|
32266
32284
|
editorCommentPositions: L,
|
|
@@ -32280,7 +32298,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32280
32298
|
emitAiHighlight: (Z) => q.$superdoc.emit("ai-highlight", Z),
|
|
32281
32299
|
activeEditorRef: ne
|
|
32282
32300
|
}), X = W(null), Qe = (Z, me) => {
|
|
32283
|
-
const Ke =
|
|
32301
|
+
const Ke = S(Z);
|
|
32284
32302
|
Ke.isReady = !0, Ke.container = me, g.value && (q.$superdoc.config.collaboration || (c.value = !0)), U.value = !0, P.value = !0, q.$superdoc.broadcastPdfDocumentReady();
|
|
32285
32303
|
}, Ee = (Z) => {
|
|
32286
32304
|
const me = {
|
|
@@ -32305,7 +32323,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32305
32323
|
q.$superdoc?.broadcastEditorBeforeCreate(Z);
|
|
32306
32324
|
}, De = ({ editor: Z }) => {
|
|
32307
32325
|
const { documentId: me } = Z.options;
|
|
32308
|
-
|
|
32326
|
+
S(me).setEditor(Z), q.$superdoc.setActiveEditor(Z), q.$superdoc.broadcastEditorCreate(Z), q.$superdoc.log("[SuperDoc] Editor created", q.$superdoc.activeEditor), q.$superdoc.log("[SuperDoc] Page styles (pixels)", Z.getPageStyles()), Et(!0);
|
|
32309
32327
|
}, Te = () => {
|
|
32310
32328
|
q.$superdoc.broadcastEditorDestroy();
|
|
32311
32329
|
}, Je = ({ editor: Z }) => {
|
|
@@ -32505,10 +32523,10 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32505
32523
|
}, [
|
|
32506
32524
|
We("div", {
|
|
32507
32525
|
class: "superdoc__tools-icon",
|
|
32508
|
-
innerHTML:
|
|
32526
|
+
innerHTML: Fe(an).comment
|
|
32509
32527
|
}, null, 8, yy)
|
|
32510
32528
|
]),
|
|
32511
|
-
|
|
32529
|
+
Fe(q).$superdoc.config.modules.ai ? (fe(), ye("div", {
|
|
32512
32530
|
key: 0,
|
|
32513
32531
|
class: "tools-item",
|
|
32514
32532
|
"data-id": "is-tool",
|
|
@@ -32526,15 +32544,15 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32526
32544
|
ref_key: "selectionLayer",
|
|
32527
32545
|
ref: oi
|
|
32528
32546
|
}, [
|
|
32529
|
-
|
|
32547
|
+
Fe(u) && Wt.value ? (fe(), ye("div", {
|
|
32530
32548
|
key: 0,
|
|
32531
32549
|
style: ri(gr.value),
|
|
32532
32550
|
class: "superdoc__temp-selection temp-selection sd-highlight sd-initial-highlight"
|
|
32533
32551
|
}, null, 4)) : Ze("", !0)
|
|
32534
32552
|
], 544)) : Ze("", !0),
|
|
32535
|
-
"hrbr-fields" in
|
|
32553
|
+
"hrbr-fields" in Fe(y) && ee.value ? (fe(), hi(hy, {
|
|
32536
32554
|
key: 1,
|
|
32537
|
-
fields:
|
|
32555
|
+
fields: Fe(y)["hrbr-fields"],
|
|
32538
32556
|
class: "superdoc__comments-layer comments-layer",
|
|
32539
32557
|
style: { "z-index": "2" },
|
|
32540
32558
|
ref_key: "hrbrFieldsLayer",
|
|
@@ -32547,30 +32565,30 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32547
32565
|
ref_key: "commentsLayer",
|
|
32548
32566
|
ref: te,
|
|
32549
32567
|
parent: ee.value,
|
|
32550
|
-
user:
|
|
32568
|
+
user: Fe(b),
|
|
32551
32569
|
onHighlightClick: _e
|
|
32552
32570
|
}, null, 8, ["parent", "user"])) : Ze("", !0),
|
|
32553
|
-
|
|
32571
|
+
Fe(xe) ? (fe(), hi(py, {
|
|
32554
32572
|
key: 3,
|
|
32555
32573
|
class: "ai-layer",
|
|
32556
32574
|
style: { "z-index": "4" },
|
|
32557
32575
|
ref_key: "aiLayer",
|
|
32558
32576
|
ref: at,
|
|
32559
|
-
editor:
|
|
32577
|
+
editor: Fe(q).$superdoc.activeEditor
|
|
32560
32578
|
}, null, 8, ["editor"])) : Ze("", !0),
|
|
32561
|
-
(fe(!0), ye(jt, null, gn(
|
|
32579
|
+
(fe(!0), ye(jt, null, gn(Fe(A), (Ve) => (fe(), ye("div", {
|
|
32562
32580
|
class: "superdoc__sub-document sub-document",
|
|
32563
32581
|
key: Ve.id
|
|
32564
32582
|
}, [
|
|
32565
|
-
Ve.type ===
|
|
32583
|
+
Ve.type === Fe(Ia) ? (fe(), hi(U9, {
|
|
32566
32584
|
key: 0,
|
|
32567
32585
|
"document-data": Ve,
|
|
32568
32586
|
onSelectionChange: le,
|
|
32569
32587
|
onReady: Qe,
|
|
32570
|
-
onPageLoaded:
|
|
32588
|
+
onPageLoaded: Fe(Q),
|
|
32571
32589
|
onBypassSelection: Ht
|
|
32572
32590
|
}, null, 8, ["document-data", "onPageLoaded"])) : Ze("", !0),
|
|
32573
|
-
Ve.type ===
|
|
32591
|
+
Ve.type === Fe(on) ? (fe(), hi(Fe(Dd), {
|
|
32574
32592
|
key: 1,
|
|
32575
32593
|
"file-source": Ve.data,
|
|
32576
32594
|
state: Ve.state,
|
|
@@ -32578,7 +32596,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32578
32596
|
options: $t(Ve),
|
|
32579
32597
|
onPageMarginsChange: (Xt) => rt(Ve, Xt)
|
|
32580
32598
|
}, null, 8, ["file-source", "state", "document-id", "options", "onPageMarginsChange"])) : Ze("", !0),
|
|
32581
|
-
Ve.type ===
|
|
32599
|
+
Ve.type === Fe(TA) ? (fe(), hi(fy, {
|
|
32582
32600
|
key: 2,
|
|
32583
32601
|
onReady: me[2] || (me[2] = (Xt) => Qe(Xt, null)),
|
|
32584
32602
|
onSelectionChange: le,
|
|
@@ -32589,38 +32607,39 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32589
32607
|
])
|
|
32590
32608
|
], 512),
|
|
32591
32609
|
Ai.value ? (fe(), ye("div", wy, [
|
|
32592
|
-
|
|
32610
|
+
Fe(F) ? ms((fe(), hi(ir, {
|
|
32593
32611
|
key: 0,
|
|
32594
|
-
comment:
|
|
32612
|
+
comment: Fe(F),
|
|
32595
32613
|
"auto-focus": !0,
|
|
32596
32614
|
"is-floating": !0
|
|
32597
32615
|
}, null, 8, ["comment"])), [
|
|
32598
32616
|
[Ke, ut]
|
|
32599
32617
|
]) : Ze("", !0),
|
|
32600
32618
|
We("div", Sy, [
|
|
32601
|
-
|
|
32619
|
+
Fe(P) && Fe(G).length > 0 ? (fe(!0), ye(jt, { key: 0 }, gn(Fe(k), (Ve) => (fe(), hi(j9, {
|
|
32602
32620
|
parent: ee.value,
|
|
32603
32621
|
"current-document": Ve
|
|
32604
32622
|
}, null, 8, ["parent", "current-document"]))), 256)) : Ze("", !0)
|
|
32605
32623
|
])
|
|
32606
32624
|
])) : Ze("", !0),
|
|
32607
|
-
|
|
32625
|
+
Fe(Me) ? (fe(), ye("div", {
|
|
32608
32626
|
key: 1,
|
|
32609
32627
|
class: "ai-writer-container",
|
|
32610
|
-
style: ri(
|
|
32628
|
+
style: ri(Fe(Xe))
|
|
32611
32629
|
}, [
|
|
32612
|
-
bi(
|
|
32613
|
-
"selected-text":
|
|
32614
|
-
"handle-close":
|
|
32615
|
-
editor:
|
|
32616
|
-
"api-key":
|
|
32617
|
-
endpoint:
|
|
32618
|
-
|
|
32630
|
+
bi(Fe(Sd), {
|
|
32631
|
+
"selected-text": Fe(Be),
|
|
32632
|
+
"handle-close": Fe(z),
|
|
32633
|
+
editor: Fe(q).$superdoc.activeEditor,
|
|
32634
|
+
"api-key": Fe(q).$superdoc.toolbar?.config?.aiApiKey,
|
|
32635
|
+
endpoint: Fe(q).$superdoc.config?.modules?.ai?.endpoint,
|
|
32636
|
+
onAiHighlight: Fe(de)
|
|
32637
|
+
}, null, 8, ["selected-text", "handle-close", "editor", "api-key", "endpoint", "onAiHighlight"])
|
|
32619
32638
|
], 4)) : Ze("", !0)
|
|
32620
32639
|
], 2);
|
|
32621
32640
|
};
|
|
32622
32641
|
}
|
|
32623
|
-
}, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-
|
|
32642
|
+
}, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-a4c8a527"]]), Fy = () => {
|
|
32624
32643
|
const n = $l(vy), t = yI();
|
|
32625
32644
|
n.use(t), n.directive("click-outside", ng);
|
|
32626
32645
|
const i = Ri(), r = hn();
|
|
@@ -32694,7 +32713,7 @@ class hb extends eg {
|
|
|
32694
32713
|
this.config = {
|
|
32695
32714
|
...this.config,
|
|
32696
32715
|
...t
|
|
32697
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.
|
|
32716
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.22", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#a(this);
|
|
32698
32717
|
}
|
|
32699
32718
|
get requiredNumberOfEditors() {
|
|
32700
32719
|
return this.superdocStore.documents.filter((t) => t.type === on).length;
|