@quoreadmin/ui 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +679 -679
- package/dist/index.umd.cjs +25 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1455,8 +1455,8 @@ let ak = JM.RenderStrategy, ML = xe({ props: { as: { type: [Object, String], def
|
|
|
1455
1455
|
W(H), v.value = !1;
|
|
1456
1456
|
}, { immediate: !0 });
|
|
1457
1457
|
}), ga(s6, w), mL(Q(() => Mf(y.value, { visible: _o.Open, hidden: _o.Closed }) | s.value)), () => {
|
|
1458
|
-
let { appear: te, show: re, enter: H, enterFrom: G, enterTo: V, entered:
|
|
1459
|
-
return ek({ theirProps:
|
|
1458
|
+
let { appear: te, show: re, enter: H, enterFrom: G, enterTo: V, entered: K, leave: ne, leaveFrom: ue, leaveTo: ye, ...le } = n, ee = { ref: c }, Y = { ...le, ...h.value && f.value && fL.isServer ? { class: j([t.class, le.class, ...E, ...M]) } : {} };
|
|
1459
|
+
return ek({ theirProps: Y, ourProps: ee, slot: {}, slots: r, attrs: t, features: ak, visible: y.value === "visible", name: "TransitionChild" });
|
|
1460
1460
|
};
|
|
1461
1461
|
} }), kL = ML, lk = xe({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(n, { emit: e, attrs: t, slots: r }) {
|
|
1462
1462
|
let i = sk(), s = Q(() => n.show === null && i !== null ? (i.value & _o.Open) === _o.Open : n.show);
|
|
@@ -6897,130 +6897,130 @@ class xa extends Ju {
|
|
|
6897
6897
|
super("Zone is an abstract class");
|
|
6898
6898
|
}
|
|
6899
6899
|
}
|
|
6900
|
-
const
|
|
6901
|
-
year:
|
|
6902
|
-
month:
|
|
6903
|
-
day:
|
|
6900
|
+
const ve = "numeric", Es = "short", Ci = "long", cg = {
|
|
6901
|
+
year: ve,
|
|
6902
|
+
month: ve,
|
|
6903
|
+
day: ve
|
|
6904
6904
|
}, uA = {
|
|
6905
|
-
year:
|
|
6905
|
+
year: ve,
|
|
6906
6906
|
month: Es,
|
|
6907
|
-
day:
|
|
6907
|
+
day: ve
|
|
6908
6908
|
}, NB = {
|
|
6909
|
-
year:
|
|
6909
|
+
year: ve,
|
|
6910
6910
|
month: Es,
|
|
6911
|
-
day:
|
|
6911
|
+
day: ve,
|
|
6912
6912
|
weekday: Es
|
|
6913
6913
|
}, cA = {
|
|
6914
|
-
year:
|
|
6914
|
+
year: ve,
|
|
6915
6915
|
month: Ci,
|
|
6916
|
-
day:
|
|
6916
|
+
day: ve
|
|
6917
6917
|
}, dA = {
|
|
6918
|
-
year:
|
|
6918
|
+
year: ve,
|
|
6919
6919
|
month: Ci,
|
|
6920
|
-
day:
|
|
6920
|
+
day: ve,
|
|
6921
6921
|
weekday: Ci
|
|
6922
6922
|
}, fA = {
|
|
6923
|
-
hour:
|
|
6924
|
-
minute:
|
|
6923
|
+
hour: ve,
|
|
6924
|
+
minute: ve
|
|
6925
6925
|
}, hA = {
|
|
6926
|
-
hour:
|
|
6927
|
-
minute:
|
|
6928
|
-
second:
|
|
6926
|
+
hour: ve,
|
|
6927
|
+
minute: ve,
|
|
6928
|
+
second: ve
|
|
6929
6929
|
}, pA = {
|
|
6930
|
-
hour:
|
|
6931
|
-
minute:
|
|
6932
|
-
second:
|
|
6930
|
+
hour: ve,
|
|
6931
|
+
minute: ve,
|
|
6932
|
+
second: ve,
|
|
6933
6933
|
timeZoneName: Es
|
|
6934
6934
|
}, mA = {
|
|
6935
|
-
hour:
|
|
6936
|
-
minute:
|
|
6937
|
-
second:
|
|
6935
|
+
hour: ve,
|
|
6936
|
+
minute: ve,
|
|
6937
|
+
second: ve,
|
|
6938
6938
|
timeZoneName: Ci
|
|
6939
6939
|
}, gA = {
|
|
6940
|
-
hour:
|
|
6941
|
-
minute:
|
|
6940
|
+
hour: ve,
|
|
6941
|
+
minute: ve,
|
|
6942
6942
|
hourCycle: "h23"
|
|
6943
6943
|
}, yA = {
|
|
6944
|
-
hour:
|
|
6945
|
-
minute:
|
|
6946
|
-
second:
|
|
6944
|
+
hour: ve,
|
|
6945
|
+
minute: ve,
|
|
6946
|
+
second: ve,
|
|
6947
6947
|
hourCycle: "h23"
|
|
6948
6948
|
}, vA = {
|
|
6949
|
-
hour:
|
|
6950
|
-
minute:
|
|
6951
|
-
second:
|
|
6949
|
+
hour: ve,
|
|
6950
|
+
minute: ve,
|
|
6951
|
+
second: ve,
|
|
6952
6952
|
hourCycle: "h23",
|
|
6953
6953
|
timeZoneName: Es
|
|
6954
6954
|
}, bA = {
|
|
6955
|
-
hour:
|
|
6956
|
-
minute:
|
|
6957
|
-
second:
|
|
6955
|
+
hour: ve,
|
|
6956
|
+
minute: ve,
|
|
6957
|
+
second: ve,
|
|
6958
6958
|
hourCycle: "h23",
|
|
6959
6959
|
timeZoneName: Ci
|
|
6960
6960
|
}, wA = {
|
|
6961
|
-
year:
|
|
6962
|
-
month:
|
|
6963
|
-
day:
|
|
6964
|
-
hour:
|
|
6965
|
-
minute:
|
|
6961
|
+
year: ve,
|
|
6962
|
+
month: ve,
|
|
6963
|
+
day: ve,
|
|
6964
|
+
hour: ve,
|
|
6965
|
+
minute: ve
|
|
6966
6966
|
}, CA = {
|
|
6967
|
-
year:
|
|
6968
|
-
month:
|
|
6969
|
-
day:
|
|
6970
|
-
hour:
|
|
6971
|
-
minute:
|
|
6972
|
-
second:
|
|
6967
|
+
year: ve,
|
|
6968
|
+
month: ve,
|
|
6969
|
+
day: ve,
|
|
6970
|
+
hour: ve,
|
|
6971
|
+
minute: ve,
|
|
6972
|
+
second: ve
|
|
6973
6973
|
}, SA = {
|
|
6974
|
-
year:
|
|
6974
|
+
year: ve,
|
|
6975
6975
|
month: Es,
|
|
6976
|
-
day:
|
|
6977
|
-
hour:
|
|
6978
|
-
minute:
|
|
6976
|
+
day: ve,
|
|
6977
|
+
hour: ve,
|
|
6978
|
+
minute: ve
|
|
6979
6979
|
}, MA = {
|
|
6980
|
-
year:
|
|
6980
|
+
year: ve,
|
|
6981
6981
|
month: Es,
|
|
6982
|
-
day:
|
|
6983
|
-
hour:
|
|
6984
|
-
minute:
|
|
6985
|
-
second:
|
|
6982
|
+
day: ve,
|
|
6983
|
+
hour: ve,
|
|
6984
|
+
minute: ve,
|
|
6985
|
+
second: ve
|
|
6986
6986
|
}, PB = {
|
|
6987
|
-
year:
|
|
6987
|
+
year: ve,
|
|
6988
6988
|
month: Es,
|
|
6989
|
-
day:
|
|
6989
|
+
day: ve,
|
|
6990
6990
|
weekday: Es,
|
|
6991
|
-
hour:
|
|
6992
|
-
minute:
|
|
6991
|
+
hour: ve,
|
|
6992
|
+
minute: ve
|
|
6993
6993
|
}, kA = {
|
|
6994
|
-
year:
|
|
6994
|
+
year: ve,
|
|
6995
6995
|
month: Ci,
|
|
6996
|
-
day:
|
|
6997
|
-
hour:
|
|
6998
|
-
minute:
|
|
6996
|
+
day: ve,
|
|
6997
|
+
hour: ve,
|
|
6998
|
+
minute: ve,
|
|
6999
6999
|
timeZoneName: Es
|
|
7000
7000
|
}, AA = {
|
|
7001
|
-
year:
|
|
7001
|
+
year: ve,
|
|
7002
7002
|
month: Ci,
|
|
7003
|
-
day:
|
|
7004
|
-
hour:
|
|
7005
|
-
minute:
|
|
7006
|
-
second:
|
|
7003
|
+
day: ve,
|
|
7004
|
+
hour: ve,
|
|
7005
|
+
minute: ve,
|
|
7006
|
+
second: ve,
|
|
7007
7007
|
timeZoneName: Es
|
|
7008
7008
|
}, TA = {
|
|
7009
|
-
year:
|
|
7009
|
+
year: ve,
|
|
7010
7010
|
month: Ci,
|
|
7011
|
-
day:
|
|
7011
|
+
day: ve,
|
|
7012
7012
|
weekday: Ci,
|
|
7013
|
-
hour:
|
|
7014
|
-
minute:
|
|
7013
|
+
hour: ve,
|
|
7014
|
+
minute: ve,
|
|
7015
7015
|
timeZoneName: Ci
|
|
7016
7016
|
}, EA = {
|
|
7017
|
-
year:
|
|
7017
|
+
year: ve,
|
|
7018
7018
|
month: Ci,
|
|
7019
|
-
day:
|
|
7019
|
+
day: ve,
|
|
7020
7020
|
weekday: Ci,
|
|
7021
|
-
hour:
|
|
7022
|
-
minute:
|
|
7023
|
-
second:
|
|
7021
|
+
hour: ve,
|
|
7022
|
+
minute: ve,
|
|
7023
|
+
second: ve,
|
|
7024
7024
|
timeZoneName: Ci
|
|
7025
7025
|
};
|
|
7026
7026
|
class ap {
|
|
@@ -13541,8 +13541,8 @@ function WV(n = {}, e) {
|
|
|
13541
13541
|
__meta: { framework: "vue" }
|
|
13542
13542
|
};
|
|
13543
13543
|
oe.datetimeFormats = f.value, oe.numberFormats = h.value, oe.__datetimeFormatters = dt(O) ? O.__datetimeFormatters : void 0, oe.__numberFormatters = dt(O) ? O.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (oe.__v_emitter = dt(O) ? O.__v_emitter : void 0);
|
|
13544
|
-
const
|
|
13545
|
-
return i && G8(
|
|
13544
|
+
const de = TV(oe);
|
|
13545
|
+
return i && G8(de), de;
|
|
13546
13546
|
})(), kd(O, u.value, c.value);
|
|
13547
13547
|
function R() {
|
|
13548
13548
|
return [
|
|
@@ -13567,19 +13567,19 @@ function WV(n = {}, e) {
|
|
|
13567
13567
|
function V() {
|
|
13568
13568
|
return Ht(w) ? w : null;
|
|
13569
13569
|
}
|
|
13570
|
-
function
|
|
13570
|
+
function K(oe) {
|
|
13571
13571
|
w = oe, O.postTranslation = oe;
|
|
13572
13572
|
}
|
|
13573
13573
|
function ne() {
|
|
13574
13574
|
return b;
|
|
13575
13575
|
}
|
|
13576
|
-
function
|
|
13576
|
+
function ue(oe) {
|
|
13577
13577
|
oe !== null && (S = o9(oe)), b = oe, O.missing = S;
|
|
13578
13578
|
}
|
|
13579
|
-
function ye(oe,
|
|
13580
|
-
return oe !== "translate" || !
|
|
13579
|
+
function ye(oe, de) {
|
|
13580
|
+
return oe !== "translate" || !de.resolvedMessage;
|
|
13581
13581
|
}
|
|
13582
|
-
const
|
|
13582
|
+
const le = (oe, de, it, Ft, Ps, nc) => {
|
|
13583
13583
|
R();
|
|
13584
13584
|
let Ia;
|
|
13585
13585
|
try {
|
|
@@ -13589,7 +13589,7 @@ function WV(n = {}, e) {
|
|
|
13589
13589
|
}
|
|
13590
13590
|
if (it !== "translate exists" && // for not `te` (e.g `t`)
|
|
13591
13591
|
or(Ia) && Ia === r5 || it === "translate exists" && !Ia) {
|
|
13592
|
-
const [se, Ee] =
|
|
13592
|
+
const [se, Ee] = de();
|
|
13593
13593
|
if (process.env.NODE_ENV !== "production" && t && Ie(se) && ye(it, Ee) && (y && (i5(g, se) || wT(m, se)) && md(yg(zr.FALLBACK_TO_ROOT, {
|
|
13594
13594
|
key: se,
|
|
13595
13595
|
type: it
|
|
@@ -13610,33 +13610,33 @@ function WV(n = {}, e) {
|
|
|
13610
13610
|
}
|
|
13611
13611
|
};
|
|
13612
13612
|
function ee(...oe) {
|
|
13613
|
-
return
|
|
13613
|
+
return le((de) => Reflect.apply(Y8, null, [de, ...oe]), () => Nv(...oe), "translate", (de) => Reflect.apply(de.t, de, [...oe]), (de) => de, (de) => Ie(de));
|
|
13614
13614
|
}
|
|
13615
|
-
function
|
|
13616
|
-
const [
|
|
13615
|
+
function Y(...oe) {
|
|
13616
|
+
const [de, it, Ft] = oe;
|
|
13617
13617
|
if (Ft && !ut(Ft))
|
|
13618
13618
|
throw Rf(nn.INVALID_ARGUMENT);
|
|
13619
|
-
return ee(
|
|
13619
|
+
return ee(de, it, ur({ resolvedMessage: !0 }, Ft || {}));
|
|
13620
13620
|
}
|
|
13621
|
-
function
|
|
13622
|
-
return
|
|
13621
|
+
function Z(...oe) {
|
|
13622
|
+
return le((de) => Reflect.apply(X8, null, [de, ...oe]), () => Pv(...oe), "datetime format", (de) => Reflect.apply(de.d, de, [...oe]), () => gg, (de) => Ie(de));
|
|
13623
13623
|
}
|
|
13624
|
-
function
|
|
13625
|
-
return
|
|
13624
|
+
function q(...oe) {
|
|
13625
|
+
return le((de) => Reflect.apply(e9, null, [de, ...oe]), () => Lv(...oe), "number format", (de) => Reflect.apply(de.n, de, [...oe]), () => gg, (de) => Ie(de));
|
|
13626
13626
|
}
|
|
13627
|
-
function
|
|
13628
|
-
return oe.map((
|
|
13627
|
+
function ce(oe) {
|
|
13628
|
+
return oe.map((de) => Ie(de) || or(de) || sn(de) ? n9(String(de)) : de);
|
|
13629
13629
|
}
|
|
13630
13630
|
const be = {
|
|
13631
|
-
normalize:
|
|
13631
|
+
normalize: ce,
|
|
13632
13632
|
interpolate: (oe) => oe,
|
|
13633
13633
|
type: "vnode"
|
|
13634
13634
|
};
|
|
13635
13635
|
function Ce(...oe) {
|
|
13636
|
-
return
|
|
13637
|
-
(
|
|
13636
|
+
return le(
|
|
13637
|
+
(de) => {
|
|
13638
13638
|
let it;
|
|
13639
|
-
const Ft =
|
|
13639
|
+
const Ft = de;
|
|
13640
13640
|
try {
|
|
13641
13641
|
Ft.processor = be, it = Reflect.apply(Y8, null, [Ft, ...oe]);
|
|
13642
13642
|
} finally {
|
|
@@ -13647,97 +13647,97 @@ function WV(n = {}, e) {
|
|
|
13647
13647
|
() => Nv(...oe),
|
|
13648
13648
|
"translate",
|
|
13649
13649
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13650
|
-
(
|
|
13651
|
-
(
|
|
13652
|
-
(
|
|
13650
|
+
(de) => de[_v](...oe),
|
|
13651
|
+
(de) => [n9(de)],
|
|
13652
|
+
(de) => pn(de)
|
|
13653
13653
|
);
|
|
13654
13654
|
}
|
|
13655
13655
|
function Le(...oe) {
|
|
13656
|
-
return
|
|
13657
|
-
(
|
|
13656
|
+
return le(
|
|
13657
|
+
(de) => Reflect.apply(e9, null, [de, ...oe]),
|
|
13658
13658
|
() => Lv(...oe),
|
|
13659
13659
|
"number format",
|
|
13660
13660
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13661
|
-
(
|
|
13661
|
+
(de) => de[$v](...oe),
|
|
13662
13662
|
i9,
|
|
13663
|
-
(
|
|
13663
|
+
(de) => Ie(de) || pn(de)
|
|
13664
13664
|
);
|
|
13665
13665
|
}
|
|
13666
13666
|
function et(...oe) {
|
|
13667
|
-
return
|
|
13668
|
-
(
|
|
13667
|
+
return le(
|
|
13668
|
+
(de) => Reflect.apply(X8, null, [de, ...oe]),
|
|
13669
13669
|
() => Pv(...oe),
|
|
13670
13670
|
"datetime format",
|
|
13671
13671
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13672
|
-
(
|
|
13672
|
+
(de) => de[Rv](...oe),
|
|
13673
13673
|
i9,
|
|
13674
|
-
(
|
|
13674
|
+
(de) => Ie(de) || pn(de)
|
|
13675
13675
|
);
|
|
13676
13676
|
}
|
|
13677
13677
|
function $t(oe) {
|
|
13678
13678
|
N = oe, O.pluralRules = N;
|
|
13679
13679
|
}
|
|
13680
|
-
function Ln(oe,
|
|
13681
|
-
return
|
|
13680
|
+
function Ln(oe, de) {
|
|
13681
|
+
return le(() => {
|
|
13682
13682
|
if (!oe)
|
|
13683
13683
|
return !1;
|
|
13684
|
-
const it = Ie(
|
|
13684
|
+
const it = Ie(de) ? de : u.value, Ft = qn(it), Ps = O.messageResolver(Ft, oe);
|
|
13685
13685
|
return a ? Ps != null : G2(Ps) || Vi(Ps) || Ie(Ps);
|
|
13686
|
-
}, () => [oe], "translate exists", (it) => Reflect.apply(it.te, it, [oe,
|
|
13686
|
+
}, () => [oe], "translate exists", (it) => Reflect.apply(it.te, it, [oe, de]), HV, (it) => sn(it));
|
|
13687
13687
|
}
|
|
13688
13688
|
function Gn(oe) {
|
|
13689
|
-
let
|
|
13689
|
+
let de = null;
|
|
13690
13690
|
const it = mT(O, c.value, u.value);
|
|
13691
13691
|
for (let Ft = 0; Ft < it.length; Ft++) {
|
|
13692
13692
|
const Ps = d.value[it[Ft]] || {}, nc = O.messageResolver(Ps, oe);
|
|
13693
13693
|
if (nc != null) {
|
|
13694
|
-
|
|
13694
|
+
de = nc;
|
|
13695
13695
|
break;
|
|
13696
13696
|
}
|
|
13697
13697
|
}
|
|
13698
|
-
return
|
|
13698
|
+
return de;
|
|
13699
13699
|
}
|
|
13700
13700
|
function yn(oe) {
|
|
13701
|
-
const
|
|
13702
|
-
return
|
|
13701
|
+
const de = Gn(oe);
|
|
13702
|
+
return de ?? (t ? t.tm(oe) || {} : {});
|
|
13703
13703
|
}
|
|
13704
13704
|
function qn(oe) {
|
|
13705
13705
|
return d.value[oe] || {};
|
|
13706
13706
|
}
|
|
13707
|
-
function rs(oe,
|
|
13707
|
+
function rs(oe, de) {
|
|
13708
13708
|
if (s) {
|
|
13709
|
-
const it = { [oe]:
|
|
13709
|
+
const it = { [oe]: de };
|
|
13710
13710
|
for (const Ft in it)
|
|
13711
13711
|
ju(it, Ft) && $f(it[Ft]);
|
|
13712
|
-
|
|
13712
|
+
de = it[oe];
|
|
13713
13713
|
}
|
|
13714
|
-
d.value[oe] =
|
|
13714
|
+
d.value[oe] = de, O.messages = d.value;
|
|
13715
13715
|
}
|
|
13716
|
-
function Ea(oe,
|
|
13716
|
+
function Ea(oe, de) {
|
|
13717
13717
|
d.value[oe] = d.value[oe] || {};
|
|
13718
|
-
const it = { [oe]:
|
|
13718
|
+
const it = { [oe]: de };
|
|
13719
13719
|
if (s)
|
|
13720
13720
|
for (const Ft in it)
|
|
13721
13721
|
ju(it, Ft) && $f(it[Ft]);
|
|
13722
|
-
|
|
13722
|
+
de = it[oe], wm(de, d.value[oe]), O.messages = d.value;
|
|
13723
13723
|
}
|
|
13724
13724
|
function cn(oe) {
|
|
13725
13725
|
return f.value[oe] || {};
|
|
13726
13726
|
}
|
|
13727
|
-
function hr(oe,
|
|
13728
|
-
f.value[oe] =
|
|
13727
|
+
function hr(oe, de) {
|
|
13728
|
+
f.value[oe] = de, O.datetimeFormats = f.value, J8(O, oe, de);
|
|
13729
13729
|
}
|
|
13730
|
-
function Ns(oe,
|
|
13731
|
-
f.value[oe] = ur(f.value[oe] || {},
|
|
13730
|
+
function Ns(oe, de) {
|
|
13731
|
+
f.value[oe] = ur(f.value[oe] || {}, de), O.datetimeFormats = f.value, J8(O, oe, de);
|
|
13732
13732
|
}
|
|
13733
13733
|
function Ii(oe) {
|
|
13734
13734
|
return h.value[oe] || {};
|
|
13735
13735
|
}
|
|
13736
|
-
function is(oe,
|
|
13737
|
-
h.value[oe] =
|
|
13736
|
+
function is(oe, de) {
|
|
13737
|
+
h.value[oe] = de, O.numberFormats = h.value, t9(O, oe, de);
|
|
13738
13738
|
}
|
|
13739
|
-
function Mo(oe,
|
|
13740
|
-
h.value[oe] = ur(h.value[oe] || {},
|
|
13739
|
+
function Mo(oe, de) {
|
|
13740
|
+
h.value[oe] = ur(h.value[oe] || {}, de), O.numberFormats = h.value, t9(O, oe, de);
|
|
13741
13741
|
}
|
|
13742
13742
|
s9++, t && va && (ct(t.locale, (oe) => {
|
|
13743
13743
|
l && (u.value = oe, O.locale = oe, kd(O, u.value, c.value));
|
|
@@ -13808,12 +13808,12 @@ function WV(n = {}, e) {
|
|
|
13808
13808
|
setLocaleMessage: rs,
|
|
13809
13809
|
mergeLocaleMessage: Ea,
|
|
13810
13810
|
getPostTranslationHandler: V,
|
|
13811
|
-
setPostTranslationHandler:
|
|
13811
|
+
setPostTranslationHandler: K,
|
|
13812
13812
|
getMissingHandler: ne,
|
|
13813
|
-
setMissingHandler:
|
|
13813
|
+
setMissingHandler: ue,
|
|
13814
13814
|
[jV]: $t
|
|
13815
13815
|
};
|
|
13816
|
-
return St.datetimeFormats = H, St.numberFormats = G, St.rt =
|
|
13816
|
+
return St.datetimeFormats = H, St.numberFormats = G, St.rt = Y, St.te = Ln, St.tm = yn, St.d = Z, St.n = q, St.getDateTimeFormat = cn, St.setDateTimeFormat = hr, St.mergeDateTimeFormat = Ns, St.getNumberFormat = Ii, St.setNumberFormat = is, St.mergeNumberFormat = Mo, St[zV] = r, St[_v] = Ce, St[Rv] = et, St[$v] = Le, process.env.NODE_ENV !== "production" && (St[Fv] = (oe) => {
|
|
13817
13817
|
O.__v_emitter = oe;
|
|
13818
13818
|
}, St[Bv] = () => {
|
|
13819
13819
|
O.__v_emitter = void 0;
|
|
@@ -15767,75 +15767,75 @@ var yU = { 9306: (n, e, t) => {
|
|
|
15767
15767
|
return c || u(M), O;
|
|
15768
15768
|
};
|
|
15769
15769
|
}, 4644: (n, e, t) => {
|
|
15770
|
-
var r, i, s, o = t(7811), a = t(3724), l = t(4576), u = t(4901), c = t(34), d = t(9297), f = t(6955), h = t(6823), m = t(6699), g = t(6840), y = t(2106), v = t(1625), b = t(2787), S = t(2967), w = t(8227), E = t(3392), M = t(1181), A = M.enforce, N = M.get, O = l.Int8Array, $ = O && O.prototype, R = l.Uint8ClampedArray, W = R && R.prototype, te = O && b(O), re = $ && b($), H = Object.prototype, G = l.TypeError, V = w("toStringTag"),
|
|
15771
|
-
var
|
|
15772
|
-
if (c(
|
|
15773
|
-
var
|
|
15774
|
-
return
|
|
15775
|
-
}
|
|
15776
|
-
},
|
|
15777
|
-
if (!c(
|
|
15778
|
-
var
|
|
15779
|
-
return d(
|
|
15770
|
+
var r, i, s, o = t(7811), a = t(3724), l = t(4576), u = t(4901), c = t(34), d = t(9297), f = t(6955), h = t(6823), m = t(6699), g = t(6840), y = t(2106), v = t(1625), b = t(2787), S = t(2967), w = t(8227), E = t(3392), M = t(1181), A = M.enforce, N = M.get, O = l.Int8Array, $ = O && O.prototype, R = l.Uint8ClampedArray, W = R && R.prototype, te = O && b(O), re = $ && b($), H = Object.prototype, G = l.TypeError, V = w("toStringTag"), K = E("TYPED_ARRAY_TAG"), ne = "TypedArrayConstructor", ue = o && !!S && f(l.opera) !== "Opera", ye = !1, le = { Int8Array: 1, Uint8Array: 1, Uint8ClampedArray: 1, Int16Array: 2, Uint16Array: 2, Int32Array: 4, Uint32Array: 4, Float32Array: 4, Float64Array: 8 }, ee = { BigInt64Array: 8, BigUint64Array: 8 }, Y = function(q) {
|
|
15771
|
+
var ce = b(q);
|
|
15772
|
+
if (c(ce)) {
|
|
15773
|
+
var me = N(ce);
|
|
15774
|
+
return me && d(me, ne) ? me[ne] : Y(ce);
|
|
15775
|
+
}
|
|
15776
|
+
}, Z = function(q) {
|
|
15777
|
+
if (!c(q)) return !1;
|
|
15778
|
+
var ce = f(q);
|
|
15779
|
+
return d(le, ce) || d(ee, ce);
|
|
15780
15780
|
};
|
|
15781
|
-
for (r in
|
|
15781
|
+
for (r in le) (s = (i = l[r]) && i.prototype) ? A(s)[ne] = i : ue = !1;
|
|
15782
15782
|
for (r in ee) (s = (i = l[r]) && i.prototype) && (A(s)[ne] = i);
|
|
15783
|
-
if ((!
|
|
15783
|
+
if ((!ue || !u(te) || te === Function.prototype) && (te = function() {
|
|
15784
15784
|
throw new G("Incorrect invocation");
|
|
15785
|
-
},
|
|
15786
|
-
for (r in
|
|
15787
|
-
if ((!
|
|
15788
|
-
for (r in
|
|
15789
|
-
if (
|
|
15785
|
+
}, ue))
|
|
15786
|
+
for (r in le) l[r] && S(l[r], te);
|
|
15787
|
+
if ((!ue || !re || re === H) && (re = te.prototype, ue))
|
|
15788
|
+
for (r in le) l[r] && S(l[r].prototype, re);
|
|
15789
|
+
if (ue && b(W) !== re && S(W, re), a && !d(re, V)) {
|
|
15790
15790
|
ye = !0, y(re, V, { configurable: !0, get: function() {
|
|
15791
|
-
return c(this) ? this[
|
|
15791
|
+
return c(this) ? this[K] : void 0;
|
|
15792
15792
|
} });
|
|
15793
|
-
for (r in
|
|
15793
|
+
for (r in le) l[r] && m(l[r], K, r);
|
|
15794
15794
|
}
|
|
15795
|
-
n.exports = { NATIVE_ARRAY_BUFFER_VIEWS:
|
|
15796
|
-
if (q
|
|
15795
|
+
n.exports = { NATIVE_ARRAY_BUFFER_VIEWS: ue, TYPED_ARRAY_TAG: ye && K, aTypedArray: function(q) {
|
|
15796
|
+
if (Z(q)) return q;
|
|
15797
15797
|
throw new G("Target is not a typed array");
|
|
15798
|
-
}, aTypedArrayConstructor: function(
|
|
15799
|
-
if (u(
|
|
15800
|
-
throw new G(h(
|
|
15801
|
-
}, exportTypedArrayMethod: function(
|
|
15798
|
+
}, aTypedArrayConstructor: function(q) {
|
|
15799
|
+
if (u(q) && (!S || v(te, q))) return q;
|
|
15800
|
+
throw new G(h(q) + " is not a typed array constructor");
|
|
15801
|
+
}, exportTypedArrayMethod: function(q, ce, me, be) {
|
|
15802
15802
|
if (a) {
|
|
15803
|
-
if (
|
|
15803
|
+
if (me) for (var Ce in le) {
|
|
15804
15804
|
var Le = l[Ce];
|
|
15805
|
-
if (Le && d(Le.prototype,
|
|
15806
|
-
delete Le.prototype[
|
|
15805
|
+
if (Le && d(Le.prototype, q)) try {
|
|
15806
|
+
delete Le.prototype[q];
|
|
15807
15807
|
} catch {
|
|
15808
15808
|
try {
|
|
15809
|
-
Le.prototype[
|
|
15809
|
+
Le.prototype[q] = ce;
|
|
15810
15810
|
} catch {
|
|
15811
15811
|
}
|
|
15812
15812
|
}
|
|
15813
15813
|
}
|
|
15814
|
-
re[
|
|
15814
|
+
re[q] && !me || g(re, q, me ? ce : ue && $[q] || ce, be);
|
|
15815
15815
|
}
|
|
15816
|
-
}, exportTypedArrayStaticMethod: function(
|
|
15816
|
+
}, exportTypedArrayStaticMethod: function(q, ce, me) {
|
|
15817
15817
|
var be, Ce;
|
|
15818
15818
|
if (a) {
|
|
15819
15819
|
if (S) {
|
|
15820
|
-
if (
|
|
15821
|
-
for (be in
|
|
15822
|
-
delete Ce[
|
|
15820
|
+
if (me) {
|
|
15821
|
+
for (be in le) if ((Ce = l[be]) && d(Ce, q)) try {
|
|
15822
|
+
delete Ce[q];
|
|
15823
15823
|
} catch {
|
|
15824
15824
|
}
|
|
15825
15825
|
}
|
|
15826
|
-
if (te[
|
|
15826
|
+
if (te[q] && !me) return;
|
|
15827
15827
|
try {
|
|
15828
|
-
return g(te,
|
|
15828
|
+
return g(te, q, me ? ce : ue && te[q] || ce);
|
|
15829
15829
|
} catch {
|
|
15830
15830
|
}
|
|
15831
15831
|
}
|
|
15832
|
-
for (be in
|
|
15832
|
+
for (be in le) !(Ce = l[be]) || Ce[q] && !me || g(Ce, q, ce);
|
|
15833
15833
|
}
|
|
15834
|
-
}, getTypedArrayConstructor:
|
|
15835
|
-
if (!c(
|
|
15836
|
-
var
|
|
15837
|
-
return
|
|
15838
|
-
}, isTypedArray:
|
|
15834
|
+
}, getTypedArrayConstructor: Y, isView: function(ce) {
|
|
15835
|
+
if (!c(ce)) return !1;
|
|
15836
|
+
var me = f(ce);
|
|
15837
|
+
return me === "DataView" || d(le, me) || d(ee, me);
|
|
15838
|
+
}, isTypedArray: Z, TypedArray: te, TypedArrayPrototype: re };
|
|
15839
15839
|
}, 5370: (n, e, t) => {
|
|
15840
15840
|
var r = t(6198);
|
|
15841
15841
|
n.exports = function(i, s, o) {
|
|
@@ -16311,10 +16311,10 @@ var yU = { 9306: (n, e, t) => {
|
|
|
16311
16311
|
this.stopped = y, this.result = v;
|
|
16312
16312
|
}, g = m.prototype;
|
|
16313
16313
|
n.exports = function(y, v, b) {
|
|
16314
|
-
var S, w, E, M, A, N, O, $ = b && b.that, R = !(!b || !b.AS_ENTRIES), W = !(!b || !b.IS_RECORD), te = !(!b || !b.IS_ITERATOR), re = !(!b || !b.INTERRUPTED), H = r(v, $), G = function(
|
|
16315
|
-
return S && f(S, "normal",
|
|
16316
|
-
}, V = function(
|
|
16317
|
-
return R ? (s(
|
|
16314
|
+
var S, w, E, M, A, N, O, $ = b && b.that, R = !(!b || !b.AS_ENTRIES), W = !(!b || !b.IS_RECORD), te = !(!b || !b.IS_ITERATOR), re = !(!b || !b.INTERRUPTED), H = r(v, $), G = function(K) {
|
|
16315
|
+
return S && f(S, "normal", K), new m(!0, K);
|
|
16316
|
+
}, V = function(K) {
|
|
16317
|
+
return R ? (s(K), re ? H(K[0], K[1], G) : H(K[0], K[1])) : re ? H(K, G) : H(K);
|
|
16318
16318
|
};
|
|
16319
16319
|
if (W) S = y.iterator;
|
|
16320
16320
|
else if (te) S = y;
|
|
@@ -16329,8 +16329,8 @@ var yU = { 9306: (n, e, t) => {
|
|
|
16329
16329
|
for (N = W ? y.next : S.next; !(O = i(N, S)).done; ) {
|
|
16330
16330
|
try {
|
|
16331
16331
|
A = V(O.value);
|
|
16332
|
-
} catch (
|
|
16333
|
-
f(S, "throw",
|
|
16332
|
+
} catch (K) {
|
|
16333
|
+
f(S, "throw", K);
|
|
16334
16334
|
}
|
|
16335
16335
|
if (typeof A == "object" && A && u(g, A)) return A;
|
|
16336
16336
|
}
|
|
@@ -17052,130 +17052,130 @@ var yU = { 9306: (n, e, t) => {
|
|
|
17052
17052
|
}, 7550: (n, e, t) => {
|
|
17053
17053
|
t(3579);
|
|
17054
17054
|
}, 8335: (n, e, t) => {
|
|
17055
|
-
var r = t(6518), i = t(3724), s = t(4576), o = t(7751), a = t(9504), l = t(9565), u = t(4901), c = t(34), d = t(4376), f = t(9297), h = t(655), m = t(6198), g = t(4659), y = t(9039), v = t(8235), b = t(4495), S = s.JSON, w = s.Number, E = s.SyntaxError, M = S && S.parse, A = o("Object", "keys"), N = Object.getOwnPropertyDescriptor, O = a("".charAt), $ = a("".slice), R = a(/./.exec), W = a([].push), te = /^\d$/, re = /^[1-9]$/, H = /^[\d-]$/, G = /^[\t\n\r ]$/, V = function(ee,
|
|
17056
|
-
var
|
|
17055
|
+
var r = t(6518), i = t(3724), s = t(4576), o = t(7751), a = t(9504), l = t(9565), u = t(4901), c = t(34), d = t(4376), f = t(9297), h = t(655), m = t(6198), g = t(4659), y = t(9039), v = t(8235), b = t(4495), S = s.JSON, w = s.Number, E = s.SyntaxError, M = S && S.parse, A = o("Object", "keys"), N = Object.getOwnPropertyDescriptor, O = a("".charAt), $ = a("".slice), R = a(/./.exec), W = a([].push), te = /^\d$/, re = /^[1-9]$/, H = /^[\d-]$/, G = /^[\t\n\r ]$/, V = function(ee, Y, Z, q) {
|
|
17056
|
+
var ce, me, be, Ce, Le, et = ee[Y], $t = q && et === q.value, Ln = $t && typeof q.source == "string" ? { source: q.source } : {};
|
|
17057
17057
|
if (c(et)) {
|
|
17058
|
-
var Gn = d(et), yn = $t ?
|
|
17058
|
+
var Gn = d(et), yn = $t ? q.nodes : Gn ? [] : {};
|
|
17059
17059
|
if (Gn)
|
|
17060
|
-
for (
|
|
17060
|
+
for (ce = yn.length, be = m(et), Ce = 0; Ce < be; Ce++) K(et, Ce, V(et, "" + Ce, Z, Ce < ce ? yn[Ce] : void 0));
|
|
17061
17061
|
else
|
|
17062
|
-
for (
|
|
17063
|
-
Le =
|
|
17062
|
+
for (me = A(et), be = m(me), Ce = 0; Ce < be; Ce++)
|
|
17063
|
+
Le = me[Ce], K(et, Le, V(et, Le, Z, f(yn, Le) ? yn[Le] : void 0));
|
|
17064
17064
|
}
|
|
17065
|
-
return l(
|
|
17066
|
-
},
|
|
17065
|
+
return l(Z, ee, Y, et, Ln);
|
|
17066
|
+
}, K = function(ee, Y, Z) {
|
|
17067
17067
|
if (i) {
|
|
17068
|
-
var
|
|
17069
|
-
if (
|
|
17070
|
-
}
|
|
17071
|
-
|
|
17072
|
-
}, ne = function(ee,
|
|
17073
|
-
this.value = ee, this.end =
|
|
17074
|
-
},
|
|
17075
|
-
this.source = ee, this.index =
|
|
17068
|
+
var q = N(ee, Y);
|
|
17069
|
+
if (q && !q.configurable) return;
|
|
17070
|
+
}
|
|
17071
|
+
Z === void 0 ? delete ee[Y] : g(ee, Y, Z);
|
|
17072
|
+
}, ne = function(ee, Y, Z, q) {
|
|
17073
|
+
this.value = ee, this.end = Y, this.source = Z, this.nodes = q;
|
|
17074
|
+
}, ue = function(ee, Y) {
|
|
17075
|
+
this.source = ee, this.index = Y;
|
|
17076
17076
|
};
|
|
17077
|
-
|
|
17078
|
-
return new
|
|
17077
|
+
ue.prototype = { fork: function(ee) {
|
|
17078
|
+
return new ue(this.source, ee);
|
|
17079
17079
|
}, parse: function() {
|
|
17080
|
-
var ee = this.source,
|
|
17081
|
-
if (R(H,
|
|
17082
|
-
switch (
|
|
17080
|
+
var ee = this.source, Y = this.skip(G, this.index), Z = this.fork(Y), q = O(ee, Y);
|
|
17081
|
+
if (R(H, q)) return Z.number();
|
|
17082
|
+
switch (q) {
|
|
17083
17083
|
case "{":
|
|
17084
|
-
return
|
|
17084
|
+
return Z.object();
|
|
17085
17085
|
case "[":
|
|
17086
|
-
return
|
|
17086
|
+
return Z.array();
|
|
17087
17087
|
case '"':
|
|
17088
|
-
return
|
|
17088
|
+
return Z.string();
|
|
17089
17089
|
case "t":
|
|
17090
|
-
return
|
|
17090
|
+
return Z.keyword(!0);
|
|
17091
17091
|
case "f":
|
|
17092
|
-
return
|
|
17092
|
+
return Z.keyword(!1);
|
|
17093
17093
|
case "n":
|
|
17094
|
-
return
|
|
17094
|
+
return Z.keyword(null);
|
|
17095
17095
|
}
|
|
17096
|
-
throw new E('Unexpected character: "' +
|
|
17097
|
-
}, node: function(ee,
|
|
17098
|
-
return new ne(
|
|
17096
|
+
throw new E('Unexpected character: "' + q + '" at: ' + Y);
|
|
17097
|
+
}, node: function(ee, Y, Z, q, ce) {
|
|
17098
|
+
return new ne(Y, q, ee ? null : $(this.source, Z, q), ce);
|
|
17099
17099
|
}, object: function() {
|
|
17100
|
-
for (var ee = this.source,
|
|
17101
|
-
if (
|
|
17102
|
-
|
|
17100
|
+
for (var ee = this.source, Y = this.index + 1, Z = !1, q = {}, ce = {}; Y < ee.length; ) {
|
|
17101
|
+
if (Y = this.until(['"', "}"], Y), O(ee, Y) === "}" && !Z) {
|
|
17102
|
+
Y++;
|
|
17103
17103
|
break;
|
|
17104
17104
|
}
|
|
17105
|
-
var
|
|
17106
|
-
|
|
17107
|
-
var Ce = O(ee,
|
|
17105
|
+
var me = this.fork(Y).string(), be = me.value;
|
|
17106
|
+
Y = me.end, Y = this.until([":"], Y) + 1, Y = this.skip(G, Y), me = this.fork(Y).parse(), g(ce, be, me), g(q, be, me.value), Y = this.until([",", "}"], me.end);
|
|
17107
|
+
var Ce = O(ee, Y);
|
|
17108
17108
|
if (Ce === ",")
|
|
17109
|
-
|
|
17109
|
+
Z = !0, Y++;
|
|
17110
17110
|
else if (Ce === "}") {
|
|
17111
|
-
|
|
17111
|
+
Y++;
|
|
17112
17112
|
break;
|
|
17113
17113
|
}
|
|
17114
17114
|
}
|
|
17115
|
-
return this.node(1,
|
|
17115
|
+
return this.node(1, q, this.index, Y, ce);
|
|
17116
17116
|
}, array: function() {
|
|
17117
|
-
for (var ee = this.source,
|
|
17118
|
-
if (
|
|
17119
|
-
|
|
17117
|
+
for (var ee = this.source, Y = this.index + 1, Z = !1, q = [], ce = []; Y < ee.length; ) {
|
|
17118
|
+
if (Y = this.skip(G, Y), O(ee, Y) === "]" && !Z) {
|
|
17119
|
+
Y++;
|
|
17120
17120
|
break;
|
|
17121
17121
|
}
|
|
17122
|
-
var
|
|
17123
|
-
if (W(
|
|
17124
|
-
|
|
17125
|
-
else if (O(ee,
|
|
17126
|
-
|
|
17122
|
+
var me = this.fork(Y).parse();
|
|
17123
|
+
if (W(ce, me), W(q, me.value), Y = this.until([",", "]"], me.end), O(ee, Y) === ",")
|
|
17124
|
+
Z = !0, Y++;
|
|
17125
|
+
else if (O(ee, Y) === "]") {
|
|
17126
|
+
Y++;
|
|
17127
17127
|
break;
|
|
17128
17128
|
}
|
|
17129
17129
|
}
|
|
17130
|
-
return this.node(1,
|
|
17130
|
+
return this.node(1, q, this.index, Y, ce);
|
|
17131
17131
|
}, string: function() {
|
|
17132
|
-
var ee = this.index,
|
|
17133
|
-
return this.node(0,
|
|
17132
|
+
var ee = this.index, Y = v(this.source, this.index + 1);
|
|
17133
|
+
return this.node(0, Y.value, ee, Y.end);
|
|
17134
17134
|
}, number: function() {
|
|
17135
|
-
var ee = this.source,
|
|
17136
|
-
if (O(ee,
|
|
17135
|
+
var ee = this.source, Y = this.index, Z = Y;
|
|
17136
|
+
if (O(ee, Z) === "-" && Z++, O(ee, Z) === "0") Z++;
|
|
17137
17137
|
else {
|
|
17138
|
-
if (!R(re, O(ee,
|
|
17139
|
-
|
|
17138
|
+
if (!R(re, O(ee, Z))) throw new E("Failed to parse number at: " + Z);
|
|
17139
|
+
Z = this.skip(te, Z + 1);
|
|
17140
17140
|
}
|
|
17141
|
-
if (O(ee,
|
|
17142
|
-
throw new E("Failed to parse number's exponent value at: " +
|
|
17143
|
-
return this.node(0, w($(ee,
|
|
17141
|
+
if (O(ee, Z) === "." && (Z = this.skip(te, Z + 1)), (O(ee, Z) === "e" || O(ee, Z) === "E") && (Z++, O(ee, Z) !== "+" && O(ee, Z) !== "-" || Z++, Z === (Z = this.skip(te, Z))))
|
|
17142
|
+
throw new E("Failed to parse number's exponent value at: " + Z);
|
|
17143
|
+
return this.node(0, w($(ee, Y, Z)), Y, Z);
|
|
17144
17144
|
}, keyword: function(ee) {
|
|
17145
|
-
var
|
|
17146
|
-
if ($(this.source,
|
|
17147
|
-
return this.node(0, ee,
|
|
17148
|
-
}, skip: function(ee,
|
|
17149
|
-
for (var
|
|
17150
|
-
return
|
|
17151
|
-
}, until: function(ee,
|
|
17152
|
-
|
|
17153
|
-
for (var
|
|
17154
|
-
throw new E('Unexpected character: "' +
|
|
17145
|
+
var Y = "" + ee, Z = this.index, q = Z + Y.length;
|
|
17146
|
+
if ($(this.source, Z, q) !== Y) throw new E("Failed to parse value at: " + Z);
|
|
17147
|
+
return this.node(0, ee, Z, q);
|
|
17148
|
+
}, skip: function(ee, Y) {
|
|
17149
|
+
for (var Z = this.source; Y < Z.length && R(ee, O(Z, Y)); Y++) ;
|
|
17150
|
+
return Y;
|
|
17151
|
+
}, until: function(ee, Y) {
|
|
17152
|
+
Y = this.skip(G, Y);
|
|
17153
|
+
for (var Z = O(this.source, Y), q = 0; q < ee.length; q++) if (ee[q] === Z) return Y;
|
|
17154
|
+
throw new E('Unexpected character: "' + Z + '" at: ' + Y);
|
|
17155
17155
|
} };
|
|
17156
17156
|
var ye = y(function() {
|
|
17157
|
-
var ee,
|
|
17158
|
-
return M(
|
|
17159
|
-
ee =
|
|
17160
|
-
}), ee !==
|
|
17161
|
-
}),
|
|
17157
|
+
var ee, Y = "9007199254740993";
|
|
17158
|
+
return M(Y, function(Z, q, ce) {
|
|
17159
|
+
ee = ce.source;
|
|
17160
|
+
}), ee !== Y;
|
|
17161
|
+
}), le = b && !y(function() {
|
|
17162
17162
|
return 1 / M("-0 ") != -1 / 0;
|
|
17163
17163
|
});
|
|
17164
|
-
r({ target: "JSON", stat: !0, forced: ye }, { parse: function(
|
|
17165
|
-
return
|
|
17166
|
-
|
|
17167
|
-
var
|
|
17168
|
-
if (Le <
|
|
17169
|
-
return u(
|
|
17170
|
-
}(
|
|
17164
|
+
r({ target: "JSON", stat: !0, forced: ye }, { parse: function(Y, Z) {
|
|
17165
|
+
return le && !u(Z) ? M(Y) : function(q, ce) {
|
|
17166
|
+
q = h(q);
|
|
17167
|
+
var me = new ue(q, 0), be = me.parse(), Ce = be.value, Le = me.skip(G, be.end);
|
|
17168
|
+
if (Le < q.length) throw new E('Unexpected extra character: "' + O(q, Le) + '" after the parsed data at: ' + Le);
|
|
17169
|
+
return u(ce) ? V({ "": Ce }, "", ce, be) : Ce;
|
|
17170
|
+
}(Y, Z);
|
|
17171
17171
|
} });
|
|
17172
17172
|
}, 5247: (n, e, t) => {
|
|
17173
17173
|
t(1689);
|
|
17174
17174
|
}, 4979: (n, e, t) => {
|
|
17175
17175
|
var r = t(6518), i = t(4576), s = t(7751), o = t(6980), a = t(4913).f, l = t(9297), u = t(679), c = t(3167), d = t(2603), f = t(5002), h = t(8574), m = t(3724), g = t(6395), y = "DOMException", v = s("Error"), b = s(y), S = function() {
|
|
17176
17176
|
u(this, w);
|
|
17177
|
-
var G = arguments.length, V = d(G < 1 ? void 0 : arguments[0]),
|
|
17178
|
-
return
|
|
17177
|
+
var G = arguments.length, V = d(G < 1 ? void 0 : arguments[0]), K = d(G < 2 ? void 0 : arguments[1], "Error"), ne = new b(V, K), ue = new v(V);
|
|
17178
|
+
return ue.name = y, a(ne, "stack", o(1, h(ue.stack, 1))), c(ne, this, S), ne;
|
|
17179
17179
|
}, w = S.prototype = b.prototype, E = "stack" in new v(y), M = "stack" in new b(1, 2), A = b && m && Object.getOwnPropertyDescriptor(i, y), N = !(!A || A.writable && A.configurable), O = E && !N && !M;
|
|
17180
17180
|
r({ global: !0, constructor: !0, forced: g || O }, { DOMException: O ? S : b });
|
|
17181
17181
|
var $ = s(y), R = $.prototype;
|
|
@@ -17973,10 +17973,10 @@ const x3 = class x3 {
|
|
|
17973
17973
|
};
|
|
17974
17974
|
_e(x3, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
|
|
17975
17975
|
let Qv = x3;
|
|
17976
|
-
var zc, ni, fn, $n, Vc, Ro, Hc, Li, Ka, D0, Uc, N0, Hs, ds, P0, Rh, $h, Wc, Fh, Us, Ya, Zc, Qa, Ws, O3, Xa, Bh, Ja, L0, jh, zh, bn, vt, $o, _0, Vh, Hh, el, Zs, Fo, Uh, _i,
|
|
17976
|
+
var zc, ni, fn, $n, Vc, Ro, Hc, Li, Ka, D0, Uc, N0, Hs, ds, P0, Rh, $h, Wc, Fh, Us, Ya, Zc, Qa, Ws, O3, Xa, Bh, Ja, L0, jh, zh, bn, vt, $o, _0, Vh, Hh, el, Zs, Fo, Uh, _i, ge, Tm, Xv, QT, XT, Em, JT, eE, tE, Jv, nE, e4, t4, rE, gr, Io, iE, sE, n4, oE, $d, r4;
|
|
17977
17977
|
const xc = class xc {
|
|
17978
17978
|
constructor(e, t, r, i, s, o, a, l, u, c, d, f, h) {
|
|
17979
|
-
I(this,
|
|
17979
|
+
I(this, ge);
|
|
17980
17980
|
I(this, zc, new AbortController());
|
|
17981
17981
|
I(this, ni, null);
|
|
17982
17982
|
I(this, fn, /* @__PURE__ */ new Map());
|
|
@@ -18021,7 +18021,7 @@ const xc = class xc {
|
|
|
18021
18021
|
I(this, Uh, null);
|
|
18022
18022
|
I(this, _i, null);
|
|
18023
18023
|
const m = this._signal = p(this, zc).signal;
|
|
18024
|
-
k(this, Fo, e), k(this, Uh, t), k(this, Vc, r), this._eventBus = i, i._on("editingaction", this.onEditingAction.bind(this), { signal: m }), i._on("pagechanging", this.onPageChanging.bind(this), { signal: m }), i._on("scalechanging", this.onScaleChanging.bind(this), { signal: m }), i._on("rotationchanging", this.onRotationChanging.bind(this), { signal: m }), i._on("setpreference", this.onSetPreference.bind(this), { signal: m }), i._on("switchannotationeditorparams", (g) => this.updateParams(g.type, g.value), { signal: m }), x(this,
|
|
18024
|
+
k(this, Fo, e), k(this, Uh, t), k(this, Vc, r), this._eventBus = i, i._on("editingaction", this.onEditingAction.bind(this), { signal: m }), i._on("pagechanging", this.onPageChanging.bind(this), { signal: m }), i._on("scalechanging", this.onScaleChanging.bind(this), { signal: m }), i._on("rotationchanging", this.onRotationChanging.bind(this), { signal: m }), i._on("setpreference", this.onSetPreference.bind(this), { signal: m }), i._on("switchannotationeditorparams", (g) => this.updateParams(g.type, g.value), { signal: m }), x(this, ge, JT).call(this), x(this, ge, rE).call(this), x(this, ge, Jv).call(this), k(this, Ro, s.annotationStorage), k(this, Fh, s.filterFactory), k(this, _0, o), k(this, Zc, a || null), k(this, Rh, l), k(this, $h, u), k(this, Wc, c), k(this, zh, d || null), this.viewParameters = { realScale: Fl.PDF_TO_CSS_UNITS, rotation: 0 }, this.isShiftKeyDown = !1, this._editorUndoBar = f || null, this._supportsPinchToZoom = h !== !1;
|
|
18025
18025
|
}
|
|
18026
18026
|
static get _keyboardManager() {
|
|
18027
18027
|
const e = xc.prototype, t = (o) => p(o, Fo).contains(document.activeElement) && document.activeElement.tagName !== "BUTTON" && o.hasSomethingToControl(), r = (o, { target: a }) => {
|
|
@@ -18116,10 +18116,10 @@ const xc = class xc {
|
|
|
18116
18116
|
highlightSelection(e = "") {
|
|
18117
18117
|
const t = document.getSelection();
|
|
18118
18118
|
if (!t || t.isCollapsed) return;
|
|
18119
|
-
const { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o } = t, a = t.toString(), l = x(this,
|
|
18119
|
+
const { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o } = t, a = t.toString(), l = x(this, ge, Tm).call(this, t).closest(".textLayer"), u = this.getSelectionBoxes(l);
|
|
18120
18120
|
if (!u) return;
|
|
18121
18121
|
t.empty();
|
|
18122
|
-
const c = x(this,
|
|
18122
|
+
const c = x(this, ge, Xv).call(this, l), d = p(this, bn) === Ge.NONE, f = () => {
|
|
18123
18123
|
c == null || c.createAndAddNewEditor({ x: 0, y: 0 }, !1, { methodOfCreation: e, boxes: u, anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o, text: a }), d && this.showAllEditors("highlight", !0, !0);
|
|
18124
18124
|
};
|
|
18125
18125
|
d ? this.switchToMode(Ge.HIGHLIGHT, f) : f();
|
|
@@ -18128,7 +18128,7 @@ const xc = class xc {
|
|
|
18128
18128
|
e.isEmpty() || !p(this, Ro) || p(this, Ro).has(e.id) || p(this, Ro).setValue(e.id, e);
|
|
18129
18129
|
}
|
|
18130
18130
|
blur() {
|
|
18131
|
-
if (this.isShiftKeyDown = !1, p(this, Qa) && (k(this, Qa, !1), x(this,
|
|
18131
|
+
if (this.isShiftKeyDown = !1, p(this, Qa) && (k(this, Qa, !1), x(this, ge, Em).call(this, "main_toolbar")), !this.hasSelection) return;
|
|
18132
18132
|
const { activeElement: e } = document;
|
|
18133
18133
|
for (const t of p(this, vt)) if (t.div.contains(e)) {
|
|
18134
18134
|
k(this, L0, [t, e]), t._focusEventsAllowed = !1;
|
|
@@ -18143,10 +18143,10 @@ const xc = class xc {
|
|
|
18143
18143
|
}, { once: !0, signal: this._signal }), t.focus();
|
|
18144
18144
|
}
|
|
18145
18145
|
addEditListeners() {
|
|
18146
|
-
x(this,
|
|
18146
|
+
x(this, ge, Jv).call(this), x(this, ge, e4).call(this);
|
|
18147
18147
|
}
|
|
18148
18148
|
removeEditListeners() {
|
|
18149
|
-
x(this,
|
|
18149
|
+
x(this, ge, nE).call(this), x(this, ge, t4).call(this);
|
|
18150
18150
|
}
|
|
18151
18151
|
dragOver(e) {
|
|
18152
18152
|
for (const { type: t } of e.dataTransfer.items) for (const r of p(this, ds)) if (r.isHandlingMimeForPasting(t)) {
|
|
@@ -18199,8 +18199,8 @@ const xc = class xc {
|
|
|
18199
18199
|
s.push(u);
|
|
18200
18200
|
}
|
|
18201
18201
|
const o = () => {
|
|
18202
|
-
for (const l of s) x(this,
|
|
18203
|
-
x(this,
|
|
18202
|
+
for (const l of s) x(this, ge, n4).call(this, l);
|
|
18203
|
+
x(this, ge, r4).call(this, s);
|
|
18204
18204
|
}, a = () => {
|
|
18205
18205
|
for (const l of s) l.remove();
|
|
18206
18206
|
};
|
|
@@ -18213,7 +18213,7 @@ const xc = class xc {
|
|
|
18213
18213
|
this.isShiftKeyDown || e.key !== "Shift" || (this.isShiftKeyDown = !0), p(this, bn) === Ge.NONE || this.isEditorHandlingKeyboard || xc._keyboardManager.exec(this, e);
|
|
18214
18214
|
}
|
|
18215
18215
|
keyup(e) {
|
|
18216
|
-
this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !1, p(this, Qa) && (k(this, Qa, !1), x(this,
|
|
18216
|
+
this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !1, p(this, Qa) && (k(this, Qa, !1), x(this, ge, Em).call(this, "main_toolbar")));
|
|
18217
18217
|
}
|
|
18218
18218
|
onEditingAction({ name: e }) {
|
|
18219
18219
|
switch (e) {
|
|
@@ -18228,12 +18228,12 @@ const xc = class xc {
|
|
|
18228
18228
|
}
|
|
18229
18229
|
}
|
|
18230
18230
|
setEditingState(e) {
|
|
18231
|
-
e ? (x(this,
|
|
18231
|
+
e ? (x(this, ge, eE).call(this), x(this, ge, e4).call(this), x(this, ge, gr).call(this, { isEditing: p(this, bn) !== Ge.NONE, isEmpty: x(this, ge, $d).call(this), hasSomethingToUndo: p(this, Li).hasSomethingToUndo(), hasSomethingToRedo: p(this, Li).hasSomethingToRedo(), hasSelectedEditor: !1 })) : (x(this, ge, tE).call(this), x(this, ge, t4).call(this), x(this, ge, gr).call(this, { isEditing: !1 }), this.disableUserSelect(!1));
|
|
18232
18232
|
}
|
|
18233
18233
|
registerEditorTypes(e) {
|
|
18234
18234
|
if (!p(this, ds)) {
|
|
18235
18235
|
k(this, ds, e);
|
|
18236
|
-
for (const t of p(this, ds)) x(this,
|
|
18236
|
+
for (const t of p(this, ds)) x(this, ge, Io).call(this, t.defaultPropertiesToUpdate);
|
|
18237
18237
|
}
|
|
18238
18238
|
}
|
|
18239
18239
|
getId() {
|
|
@@ -18260,7 +18260,7 @@ const xc = class xc {
|
|
|
18260
18260
|
if (p(this, _i) && (await p(this, _i).promise, !p(this, _i)))
|
|
18261
18261
|
return;
|
|
18262
18262
|
if (k(this, _i, Promise.withResolvers()), k(this, bn, e), e !== Ge.NONE) {
|
|
18263
|
-
this.setEditingState(!0), await x(this,
|
|
18263
|
+
this.setEditingState(!0), await x(this, ge, iE).call(this), this.unselectAll();
|
|
18264
18264
|
for (const s of p(this, $n).values()) s.updateMode(e);
|
|
18265
18265
|
if (t) {
|
|
18266
18266
|
for (const s of p(this, fn).values()) s.annotationElementId === t ? (this.setSelected(s), s.enterInEditMode()) : s.unselect();
|
|
@@ -18268,7 +18268,7 @@ const xc = class xc {
|
|
|
18268
18268
|
} else
|
|
18269
18269
|
r && this.addNewEditorFromKeyboard(), p(this, _i).resolve();
|
|
18270
18270
|
} else
|
|
18271
|
-
this.setEditingState(!1), x(this,
|
|
18271
|
+
this.setEditingState(!1), x(this, ge, sE).call(this), (i = this._editorUndoBar) == null || i.hide(), p(this, _i).resolve();
|
|
18272
18272
|
}
|
|
18273
18273
|
}
|
|
18274
18274
|
addNewEditorFromKeyboard() {
|
|
@@ -18297,7 +18297,7 @@ const xc = class xc {
|
|
|
18297
18297
|
showAllEditors(e, t, r = !1) {
|
|
18298
18298
|
var i;
|
|
18299
18299
|
for (const s of p(this, fn).values()) s.editorType === e && s.show(t);
|
|
18300
|
-
(((i = p(this, Vh)) == null ? void 0 : i.get(nt.HIGHLIGHT_SHOW_ALL)) ?? !0) !== t && x(this,
|
|
18300
|
+
(((i = p(this, Vh)) == null ? void 0 : i.get(nt.HIGHLIGHT_SHOW_ALL)) ?? !0) !== t && x(this, ge, Io).call(this, [[nt.HIGHLIGHT_SHOW_ALL, t]]);
|
|
18301
18301
|
}
|
|
18302
18302
|
enableWaiting(e = !1) {
|
|
18303
18303
|
if (p(this, Bh) !== e) {
|
|
@@ -18333,22 +18333,22 @@ const xc = class xc {
|
|
|
18333
18333
|
p(this, N0).delete(e.annotationElementId), this.removeChangedExistingAnnotation(e), e.deleted = !1;
|
|
18334
18334
|
}
|
|
18335
18335
|
setActiveEditor(e) {
|
|
18336
|
-
p(this, ni) !== e && (k(this, ni, e), e && x(this,
|
|
18336
|
+
p(this, ni) !== e && (k(this, ni, e), e && x(this, ge, Io).call(this, e.propertiesToUpdate));
|
|
18337
18337
|
}
|
|
18338
18338
|
updateUI(e) {
|
|
18339
|
-
p(this,
|
|
18339
|
+
p(this, ge, oE) === e && x(this, ge, Io).call(this, e.propertiesToUpdate);
|
|
18340
18340
|
}
|
|
18341
18341
|
updateUIForDefaultProperties(e) {
|
|
18342
|
-
x(this,
|
|
18342
|
+
x(this, ge, Io).call(this, e.defaultPropertiesToUpdate);
|
|
18343
18343
|
}
|
|
18344
18344
|
toggleSelected(e) {
|
|
18345
|
-
p(this, vt).has(e) ? (p(this, vt).delete(e), e.unselect(), x(this,
|
|
18345
|
+
p(this, vt).has(e) ? (p(this, vt).delete(e), e.unselect(), x(this, ge, gr).call(this, { hasSelectedEditor: this.hasSelection })) : (p(this, vt).add(e), e.select(), x(this, ge, Io).call(this, e.propertiesToUpdate), x(this, ge, gr).call(this, { hasSelectedEditor: !0 }));
|
|
18346
18346
|
}
|
|
18347
18347
|
setSelected(e) {
|
|
18348
18348
|
var t;
|
|
18349
18349
|
(t = p(this, D0)) == null || t.commitOrRemove();
|
|
18350
18350
|
for (const r of p(this, vt)) r !== e && r.unselect();
|
|
18351
|
-
p(this, vt).clear(), p(this, vt).add(e), e.select(), x(this,
|
|
18351
|
+
p(this, vt).clear(), p(this, vt).add(e), e.select(), x(this, ge, Io).call(this, e.propertiesToUpdate), x(this, ge, gr).call(this, { hasSelectedEditor: !0 });
|
|
18352
18352
|
}
|
|
18353
18353
|
isSelected(e) {
|
|
18354
18354
|
return p(this, vt).has(e);
|
|
@@ -18357,7 +18357,7 @@ const xc = class xc {
|
|
|
18357
18357
|
return p(this, vt).values().next().value;
|
|
18358
18358
|
}
|
|
18359
18359
|
unselect(e) {
|
|
18360
|
-
e.unselect(), p(this, vt).delete(e), x(this,
|
|
18360
|
+
e.unselect(), p(this, vt).delete(e), x(this, ge, gr).call(this, { hasSelectedEditor: this.hasSelection });
|
|
18361
18361
|
}
|
|
18362
18362
|
get hasSelection() {
|
|
18363
18363
|
return p(this, vt).size !== 0;
|
|
@@ -18367,13 +18367,13 @@ const xc = class xc {
|
|
|
18367
18367
|
}
|
|
18368
18368
|
undo() {
|
|
18369
18369
|
var e;
|
|
18370
|
-
p(this, Li).undo(), x(this,
|
|
18370
|
+
p(this, Li).undo(), x(this, ge, gr).call(this, { hasSomethingToUndo: p(this, Li).hasSomethingToUndo(), hasSomethingToRedo: !0, isEmpty: x(this, ge, $d).call(this) }), (e = this._editorUndoBar) == null || e.hide();
|
|
18371
18371
|
}
|
|
18372
18372
|
redo() {
|
|
18373
|
-
p(this, Li).redo(), x(this,
|
|
18373
|
+
p(this, Li).redo(), x(this, ge, gr).call(this, { hasSomethingToUndo: !0, hasSomethingToRedo: p(this, Li).hasSomethingToRedo(), isEmpty: x(this, ge, $d).call(this) });
|
|
18374
18374
|
}
|
|
18375
18375
|
addCommands(e) {
|
|
18376
|
-
p(this, Li).add(e), x(this,
|
|
18376
|
+
p(this, Li).add(e), x(this, ge, gr).call(this, { hasSomethingToUndo: !0, hasSomethingToRedo: !1, isEmpty: x(this, ge, $d).call(this) });
|
|
18377
18377
|
}
|
|
18378
18378
|
cleanUndoStack(e) {
|
|
18379
18379
|
p(this, Li).cleanType(e);
|
|
@@ -18384,7 +18384,7 @@ const xc = class xc {
|
|
|
18384
18384
|
const e = (i = this.currentLayer) == null ? void 0 : i.endDrawingSession(!0);
|
|
18385
18385
|
if (!this.hasSelection && !e) return;
|
|
18386
18386
|
const t = e ? [e] : [...p(this, vt)], r = () => {
|
|
18387
|
-
for (const s of t) x(this,
|
|
18387
|
+
for (const s of t) x(this, ge, n4).call(this, s);
|
|
18388
18388
|
};
|
|
18389
18389
|
this.addCommands({ cmd: () => {
|
|
18390
18390
|
var s;
|
|
@@ -18401,13 +18401,13 @@ const xc = class xc {
|
|
|
18401
18401
|
}
|
|
18402
18402
|
selectAll() {
|
|
18403
18403
|
for (const e of p(this, vt)) e.commit();
|
|
18404
|
-
x(this,
|
|
18404
|
+
x(this, ge, r4).call(this, p(this, fn).values());
|
|
18405
18405
|
}
|
|
18406
18406
|
unselectAll() {
|
|
18407
18407
|
var e;
|
|
18408
18408
|
if (!(p(this, ni) && (p(this, ni).commitOrRemove(), p(this, bn) !== Ge.NONE)) && !((e = p(this, D0)) != null && e.commitOrRemove()) && this.hasSelection) {
|
|
18409
18409
|
for (const t of p(this, vt)) t.unselect();
|
|
18410
|
-
p(this, vt).clear(), x(this,
|
|
18410
|
+
p(this, vt).clear(), x(this, ge, gr).call(this, { hasSelectedEditor: !1 });
|
|
18411
18411
|
}
|
|
18412
18412
|
}
|
|
18413
18413
|
translateSelectedEditors(e, t, r = !1) {
|
|
@@ -18516,7 +18516,7 @@ const xc = class xc {
|
|
|
18516
18516
|
r && (p(this, bn) !== Ge.NONE || r.hasBeenModified) && r.renderAnnotationElement(e);
|
|
18517
18517
|
}
|
|
18518
18518
|
};
|
|
18519
|
-
zc = new WeakMap(), ni = new WeakMap(), fn = new WeakMap(), $n = new WeakMap(), Vc = new WeakMap(), Ro = new WeakMap(), Hc = new WeakMap(), Li = new WeakMap(), Ka = new WeakMap(), D0 = new WeakMap(), Uc = new WeakMap(), N0 = new WeakMap(), Hs = new WeakMap(), ds = new WeakMap(), P0 = new WeakMap(), Rh = new WeakMap(), $h = new WeakMap(), Wc = new WeakMap(), Fh = new WeakMap(), Us = new WeakMap(), Ya = new WeakMap(), Zc = new WeakMap(), Qa = new WeakMap(), Ws = new WeakMap(), O3 = new WeakMap(), Xa = new WeakMap(), Bh = new WeakMap(), Ja = new WeakMap(), L0 = new WeakMap(), jh = new WeakMap(), zh = new WeakMap(), bn = new WeakMap(), vt = new WeakMap(), $o = new WeakMap(), _0 = new WeakMap(), Vh = new WeakMap(), Hh = new WeakMap(), el = new WeakMap(), Zs = new WeakMap(), Fo = new WeakMap(), Uh = new WeakMap(), _i = new WeakMap(),
|
|
18519
|
+
zc = new WeakMap(), ni = new WeakMap(), fn = new WeakMap(), $n = new WeakMap(), Vc = new WeakMap(), Ro = new WeakMap(), Hc = new WeakMap(), Li = new WeakMap(), Ka = new WeakMap(), D0 = new WeakMap(), Uc = new WeakMap(), N0 = new WeakMap(), Hs = new WeakMap(), ds = new WeakMap(), P0 = new WeakMap(), Rh = new WeakMap(), $h = new WeakMap(), Wc = new WeakMap(), Fh = new WeakMap(), Us = new WeakMap(), Ya = new WeakMap(), Zc = new WeakMap(), Qa = new WeakMap(), Ws = new WeakMap(), O3 = new WeakMap(), Xa = new WeakMap(), Bh = new WeakMap(), Ja = new WeakMap(), L0 = new WeakMap(), jh = new WeakMap(), zh = new WeakMap(), bn = new WeakMap(), vt = new WeakMap(), $o = new WeakMap(), _0 = new WeakMap(), Vh = new WeakMap(), Hh = new WeakMap(), el = new WeakMap(), Zs = new WeakMap(), Fo = new WeakMap(), Uh = new WeakMap(), _i = new WeakMap(), ge = new WeakSet(), Tm = function({ anchorNode: e }) {
|
|
18520
18520
|
return e.nodeType === Node.TEXT_NODE ? e.parentElement : e;
|
|
18521
18521
|
}, Xv = function(e) {
|
|
18522
18522
|
const { currentLayer: t } = this;
|
|
@@ -18526,32 +18526,32 @@ zc = new WeakMap(), ni = new WeakMap(), fn = new WeakMap(), $n = new WeakMap(),
|
|
|
18526
18526
|
}, QT = function() {
|
|
18527
18527
|
const e = document.getSelection();
|
|
18528
18528
|
if (!e || e.isCollapsed) return;
|
|
18529
|
-
const t = x(this,
|
|
18529
|
+
const t = x(this, ge, Tm).call(this, e).closest(".textLayer"), r = this.getSelectionBoxes(t);
|
|
18530
18530
|
r && (p(this, Ws) || k(this, Ws, new iW(this)), p(this, Ws).show(t, r, this.direction === "ltr"));
|
|
18531
18531
|
}, XT = function() {
|
|
18532
18532
|
var i, s, o;
|
|
18533
18533
|
const e = document.getSelection();
|
|
18534
18534
|
if (!e || e.isCollapsed) {
|
|
18535
|
-
p(this, $o) && ((i = p(this, Ws)) == null || i.hide(), k(this, $o, null), x(this,
|
|
18535
|
+
p(this, $o) && ((i = p(this, Ws)) == null || i.hide(), k(this, $o, null), x(this, ge, gr).call(this, { hasSelectedText: !1 }));
|
|
18536
18536
|
return;
|
|
18537
18537
|
}
|
|
18538
18538
|
const { anchorNode: t } = e;
|
|
18539
18539
|
if (t === p(this, $o)) return;
|
|
18540
|
-
const r = x(this,
|
|
18540
|
+
const r = x(this, ge, Tm).call(this, e).closest(".textLayer");
|
|
18541
18541
|
if (r) {
|
|
18542
|
-
if ((s = p(this, Ws)) == null || s.hide(), k(this, $o, t), x(this,
|
|
18543
|
-
const a = p(this, bn) === Ge.HIGHLIGHT ? x(this,
|
|
18542
|
+
if ((s = p(this, Ws)) == null || s.hide(), k(this, $o, t), x(this, ge, gr).call(this, { hasSelectedText: !0 }), (p(this, bn) === Ge.HIGHLIGHT || p(this, bn) === Ge.NONE) && (p(this, bn) === Ge.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), k(this, Qa, this.isShiftKeyDown), !this.isShiftKeyDown)) {
|
|
18543
|
+
const a = p(this, bn) === Ge.HIGHLIGHT ? x(this, ge, Xv).call(this, r) : null;
|
|
18544
18544
|
a == null || a.toggleDrawing();
|
|
18545
18545
|
const l = new AbortController(), u = this.combinedSignal(l), c = (d) => {
|
|
18546
|
-
(d.type !== "pointerup" || d.button === 0) && (l.abort(), a == null || a.toggleDrawing(!0), d.type === "pointerup" && x(this,
|
|
18546
|
+
(d.type !== "pointerup" || d.button === 0) && (l.abort(), a == null || a.toggleDrawing(!0), d.type === "pointerup" && x(this, ge, Em).call(this, "main_toolbar"));
|
|
18547
18547
|
};
|
|
18548
18548
|
window.addEventListener("pointerup", c, { signal: u }), window.addEventListener("blur", c, { signal: u });
|
|
18549
18549
|
}
|
|
18550
|
-
} else p(this, $o) && ((o = p(this, Ws)) == null || o.hide(), k(this, $o, null), x(this,
|
|
18550
|
+
} else p(this, $o) && ((o = p(this, Ws)) == null || o.hide(), k(this, $o, null), x(this, ge, gr).call(this, { hasSelectedText: !1 }));
|
|
18551
18551
|
}, Em = function(e = "") {
|
|
18552
|
-
p(this, bn) === Ge.HIGHLIGHT ? this.highlightSelection(e) : p(this, Rh) && x(this,
|
|
18552
|
+
p(this, bn) === Ge.HIGHLIGHT ? this.highlightSelection(e) : p(this, Rh) && x(this, ge, QT).call(this);
|
|
18553
18553
|
}, JT = function() {
|
|
18554
|
-
document.addEventListener("selectionchange", x(this,
|
|
18554
|
+
document.addEventListener("selectionchange", x(this, ge, XT).bind(this), { signal: this._signal });
|
|
18555
18555
|
}, eE = function() {
|
|
18556
18556
|
if (p(this, Ya)) return;
|
|
18557
18557
|
k(this, Ya, new AbortController());
|
|
@@ -18580,7 +18580,7 @@ zc = new WeakMap(), ni = new WeakMap(), fn = new WeakMap(), $n = new WeakMap(),
|
|
|
18580
18580
|
const e = this._signal;
|
|
18581
18581
|
document.addEventListener("dragover", this.dragOver.bind(this), { signal: e }), document.addEventListener("drop", this.drop.bind(this), { signal: e });
|
|
18582
18582
|
}, gr = function(e) {
|
|
18583
|
-
Object.entries(e).some(([t, r]) => p(this, Hh)[t] !== r) && (this._eventBus.dispatch("annotationeditorstateschanged", { source: this, details: Object.assign(p(this, Hh), e) }), p(this, bn) === Ge.HIGHLIGHT && e.hasSelectedEditor === !1 && x(this,
|
|
18583
|
+
Object.entries(e).some(([t, r]) => p(this, Hh)[t] !== r) && (this._eventBus.dispatch("annotationeditorstateschanged", { source: this, details: Object.assign(p(this, Hh), e) }), p(this, bn) === Ge.HIGHLIGHT && e.hasSelectedEditor === !1 && x(this, ge, Io).call(this, [[nt.HIGHLIGHT_FREE, !0]]));
|
|
18584
18584
|
}, Io = function(e) {
|
|
18585
18585
|
this._eventBus.dispatch("annotationeditorparamschanged", { source: this, details: e });
|
|
18586
18586
|
}, iE = async function() {
|
|
@@ -18612,7 +18612,7 @@ zc = new WeakMap(), ni = new WeakMap(), fn = new WeakMap(), $n = new WeakMap(),
|
|
|
18612
18612
|
for (const t of p(this, vt)) t.unselect();
|
|
18613
18613
|
p(this, vt).clear();
|
|
18614
18614
|
for (const t of e) t.isEmpty() || (p(this, vt).add(t), t.select());
|
|
18615
|
-
x(this,
|
|
18615
|
+
x(this, ge, gr).call(this, { hasSelectedEditor: this.hasSelection });
|
|
18616
18616
|
}, _e(xc, "TRANSLATE_SMALL", 1), _e(xc, "TRANSLATE_BIG", 10);
|
|
18617
18617
|
let Hu = xc;
|
|
18618
18618
|
var wn, Gs, fs, Gc, qs, ri, qc, Ks, $r, Bo, R0, Ys, tl, As, Fd, Im;
|
|
@@ -19390,32 +19390,32 @@ B0 = new WeakMap(), hs = new WeakMap(), Nt = new WeakMap(), Yc = new WeakMap(),
|
|
|
19390
19390
|
const s = this.x, o = this.y, a = this.width, l = this.height;
|
|
19391
19391
|
s === e && o === t && a === r && l === i || this.addCommands({ cmd: x(this, $e, a4).bind(this, s, o, a, l), undo: x(this, $e, a4).bind(this, e, t, r, i), mustExec: !0 });
|
|
19392
19392
|
}, l4 = function(e, t) {
|
|
19393
|
-
const [r, i] = this.parentDimensions, s = this.x, o = this.y, a = this.width, l = this.height, u = Ke.MIN_SIZE / r, c = Ke.MIN_SIZE / i, d = x(this, $e, xm).call(this, this.rotation), f = (V,
|
|
19393
|
+
const [r, i] = this.parentDimensions, s = this.x, o = this.y, a = this.width, l = this.height, u = Ke.MIN_SIZE / r, c = Ke.MIN_SIZE / i, d = x(this, $e, xm).call(this, this.rotation), f = (V, K) => [d[0] * V + d[2] * K, d[1] * V + d[3] * K], h = x(this, $e, xm).call(this, 360 - this.rotation);
|
|
19394
19394
|
let m, g, y = !1, v = !1;
|
|
19395
19395
|
switch (e) {
|
|
19396
19396
|
case "topLeft":
|
|
19397
|
-
y = !0, m = (V,
|
|
19397
|
+
y = !0, m = (V, K) => [0, 0], g = (V, K) => [V, K];
|
|
19398
19398
|
break;
|
|
19399
19399
|
case "topMiddle":
|
|
19400
|
-
m = (V,
|
|
19400
|
+
m = (V, K) => [V / 2, 0], g = (V, K) => [V / 2, K];
|
|
19401
19401
|
break;
|
|
19402
19402
|
case "topRight":
|
|
19403
|
-
y = !0, m = (V,
|
|
19403
|
+
y = !0, m = (V, K) => [V, 0], g = (V, K) => [0, K];
|
|
19404
19404
|
break;
|
|
19405
19405
|
case "middleRight":
|
|
19406
|
-
v = !0, m = (V,
|
|
19406
|
+
v = !0, m = (V, K) => [V, K / 2], g = (V, K) => [0, K / 2];
|
|
19407
19407
|
break;
|
|
19408
19408
|
case "bottomRight":
|
|
19409
|
-
y = !0, m = (V,
|
|
19409
|
+
y = !0, m = (V, K) => [V, K], g = (V, K) => [0, 0];
|
|
19410
19410
|
break;
|
|
19411
19411
|
case "bottomMiddle":
|
|
19412
|
-
m = (V,
|
|
19412
|
+
m = (V, K) => [V / 2, K], g = (V, K) => [V / 2, 0];
|
|
19413
19413
|
break;
|
|
19414
19414
|
case "bottomLeft":
|
|
19415
|
-
y = !0, m = (V,
|
|
19415
|
+
y = !0, m = (V, K) => [0, K], g = (V, K) => [V, 0];
|
|
19416
19416
|
break;
|
|
19417
19417
|
case "middleLeft":
|
|
19418
|
-
v = !0, m = (V,
|
|
19418
|
+
v = !0, m = (V, K) => [0, K / 2], g = (V, K) => [V, K / 2];
|
|
19419
19419
|
}
|
|
19420
19420
|
const b = m(a, l), S = g(a, l);
|
|
19421
19421
|
let w = f(...S);
|
|
@@ -19423,8 +19423,8 @@ B0 = new WeakMap(), hs = new WeakMap(), Nt = new WeakMap(), Yc = new WeakMap(),
|
|
|
19423
19423
|
let A, N, O = 1, $ = 1;
|
|
19424
19424
|
if (t.fromKeyboard) ({ deltaX: A, deltaY: N } = t);
|
|
19425
19425
|
else {
|
|
19426
|
-
const { screenX: V, screenY:
|
|
19427
|
-
[A, N] = this.screenToPageTranslation(V - ne,
|
|
19426
|
+
const { screenX: V, screenY: K } = t, [ne, ue] = p(this, z0);
|
|
19427
|
+
[A, N] = this.screenToPageTranslation(V - ne, K - ue), p(this, z0)[0] = V, p(this, z0)[1] = K;
|
|
19428
19428
|
}
|
|
19429
19429
|
[A, N] = (R = A / r, W = N / i, [h[0] * R + h[2] * W, h[1] * R + h[3] * W]);
|
|
19430
19430
|
var R, W;
|
|
@@ -20120,21 +20120,21 @@ function yy(n, e, t, r, i, s, o, a) {
|
|
|
20120
20120
|
const h = (l[t] + e.offsetX) * e.scaleX, m = (l[t + 1] + e.offsetY) * e.scaleY, g = (l[r] + e.offsetX) * e.scaleX, y = (l[r + 1] + e.offsetY) * e.scaleY, v = (l[i] + e.offsetX) * e.scaleX, b = (l[i + 1] + e.offsetY) * e.scaleY;
|
|
20121
20121
|
if (m >= b) return;
|
|
20122
20122
|
const S = u[s], w = u[s + 1], E = u[s + 2], M = u[o], A = u[o + 1], N = u[o + 2], O = u[a], $ = u[a + 1], R = u[a + 2], W = Math.round(m), te = Math.round(b);
|
|
20123
|
-
let re, H, G, V,
|
|
20124
|
-
for (let
|
|
20125
|
-
if (
|
|
20126
|
-
const
|
|
20127
|
-
re = h - (h - g) *
|
|
20123
|
+
let re, H, G, V, K, ne, ue, ye;
|
|
20124
|
+
for (let le = W; le <= te; le++) {
|
|
20125
|
+
if (le < y) {
|
|
20126
|
+
const ce = le < m ? 0 : (m - le) / (m - y);
|
|
20127
|
+
re = h - (h - g) * ce, H = S - (S - M) * ce, G = w - (w - A) * ce, V = E - (E - N) * ce;
|
|
20128
20128
|
} else {
|
|
20129
|
-
let
|
|
20130
|
-
|
|
20129
|
+
let ce;
|
|
20130
|
+
ce = le > b ? 1 : y === b ? 0 : (y - le) / (y - b), re = g - (g - v) * ce, H = M - (M - O) * ce, G = A - (A - $) * ce, V = N - (N - R) * ce;
|
|
20131
20131
|
}
|
|
20132
20132
|
let ee;
|
|
20133
|
-
ee =
|
|
20134
|
-
const
|
|
20135
|
-
let
|
|
20136
|
-
for (let
|
|
20137
|
-
ee = (re -
|
|
20133
|
+
ee = le < m ? 0 : le > b ? 1 : (m - le) / (m - b), K = h - (h - v) * ee, ne = S - (S - O) * ee, ue = w - (w - $) * ee, ye = E - (E - R) * ee;
|
|
20134
|
+
const Y = Math.round(Math.min(re, K)), Z = Math.round(Math.max(re, K));
|
|
20135
|
+
let q = d * le + 4 * Y;
|
|
20136
|
+
for (let ce = Y; ce <= Z; ce++)
|
|
20137
|
+
ee = (re - ce) / (re - K), ee < 0 ? ee = 0 : ee > 1 && (ee = 1), c[q++] = H - (H - ne) * ee | 0, c[q++] = G - (G - ue) * ee | 0, c[q++] = V - (V - ye) * ee | 0, c[q++] = 255;
|
|
20138
20138
|
}
|
|
20139
20139
|
}
|
|
20140
20140
|
function dW(n, e, t) {
|
|
@@ -20203,9 +20203,9 @@ const pW = 1, mW = 2, P3 = class P3 {
|
|
|
20203
20203
|
if (re.groupLevel = e.groupLevel, this.setFillAndStrokeStyleToContext(re, i, o), te.translate(-$.scale * c, -R.scale * d), re.transform($.scale, 0, 0, R.scale, 0, 0), te.save(), this.clipBbox(re, c, d, f, h), re.baseTransform = _t(re.ctx), re.executeOperatorList(r), re.endDrawing(), te.restore(), M || A) {
|
|
20204
20204
|
const H = W.canvas;
|
|
20205
20205
|
M && (w = l), A && (E = u);
|
|
20206
|
-
const G = this.getSizeAndScale(w, this.ctx.canvas.width, b), V = this.getSizeAndScale(E, this.ctx.canvas.height, S),
|
|
20207
|
-
for (let
|
|
20208
|
-
return { canvas:
|
|
20206
|
+
const G = this.getSizeAndScale(w, this.ctx.canvas.width, b), V = this.getSizeAndScale(E, this.ctx.canvas.height, S), K = G.size, ne = V.size, ue = e.cachedCanvases.getCanvas("pattern-workaround", K, ne), ye = ue.context, le = M ? Math.floor(m / l) : 0, ee = A ? Math.floor(g / u) : 0;
|
|
20207
|
+
for (let Y = 0; Y <= le; Y++) for (let Z = 0; Z <= ee; Z++) ye.drawImage(H, K * Y, ne * Z, K, ne, 0, 0, K, ne);
|
|
20208
|
+
return { canvas: ue.canvas, scaleX: G.scale, scaleY: V.scale, offsetX: c, offsetY: d };
|
|
20209
20209
|
}
|
|
20210
20210
|
return { canvas: W.canvas, scaleX: $.scale, scaleY: R.scale, offsetX: c, offsetY: d };
|
|
20211
20211
|
}
|
|
@@ -22433,51 +22433,51 @@ const jW = rr ? class extends N9 {
|
|
|
22433
22433
|
} : EE;
|
|
22434
22434
|
function VW(n = {}) {
|
|
22435
22435
|
typeof n == "string" || n instanceof URL ? n = { url: n } : (n instanceof ArrayBuffer || ArrayBuffer.isView(n)) && (n = { data: n });
|
|
22436
|
-
const e = new M4(), { docId: t } = e, r = n.url ? function(
|
|
22437
|
-
if (
|
|
22436
|
+
const e = new M4(), { docId: t } = e, r = n.url ? function(q) {
|
|
22437
|
+
if (q instanceof URL) return q.href;
|
|
22438
22438
|
try {
|
|
22439
|
-
return new URL(
|
|
22439
|
+
return new URL(q, window.location).href;
|
|
22440
22440
|
} catch {
|
|
22441
|
-
if (rr && typeof
|
|
22441
|
+
if (rr && typeof q == "string") return q;
|
|
22442
22442
|
}
|
|
22443
22443
|
throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");
|
|
22444
|
-
}(n.url) : null, i = n.data ? function(
|
|
22445
|
-
if (rr && typeof Buffer < "u" &&
|
|
22446
|
-
if (
|
|
22447
|
-
if (typeof
|
|
22448
|
-
if (
|
|
22444
|
+
}(n.url) : null, i = n.data ? function(q) {
|
|
22445
|
+
if (rr && typeof Buffer < "u" && q instanceof Buffer) throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");
|
|
22446
|
+
if (q instanceof Uint8Array && q.byteLength === q.buffer.byteLength) return q;
|
|
22447
|
+
if (typeof q == "string") return u5(q);
|
|
22448
|
+
if (q instanceof ArrayBuffer || ArrayBuffer.isView(q) || typeof q == "object" && !isNaN(q == null ? void 0 : q.length)) return new Uint8Array(q);
|
|
22449
22449
|
throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");
|
|
22450
22450
|
}(n.data) : null, s = n.httpHeaders || null, o = n.withCredentials === !0, a = n.password ?? null, l = n.range instanceof jE ? n.range : null, u = Number.isInteger(n.rangeChunkSize) && n.rangeChunkSize > 0 ? n.rangeChunkSize : $W;
|
|
22451
22451
|
let c = n.worker instanceof _c ? n.worker : null;
|
|
22452
|
-
const d = n.verbosity, f = typeof n.docBaseUrl != "string" || d5(n.docBaseUrl) ? null : n.docBaseUrl, h = typeof n.cMapUrl == "string" ? n.cMapUrl : null, m = n.cMapPacked !== !1, g = n.CMapReaderFactory || BW, y = typeof n.standardFontDataUrl == "string" ? n.standardFontDataUrl : null, v = n.StandardFontDataFactory || zW, b = n.stopAtErrors !== !0, S = Number.isInteger(n.maxImageSize) && n.maxImageSize > -1 ? n.maxImageSize : -1, w = n.isEvalSupported !== !1, E = typeof n.isOffscreenCanvasSupported == "boolean" ? n.isOffscreenCanvasSupported : !rr, M = typeof n.isImageDecoderSupported == "boolean" ? n.isImageDecoderSupported : !rr && (Ar.platform.isFirefox || !globalThis.chrome), A = Number.isInteger(n.canvasMaxAreaInBytes) ? n.canvasMaxAreaInBytes : -1, N = typeof n.disableFontFace == "boolean" ? n.disableFontFace : rr, O = n.fontExtraProperties === !0, $ = n.enableXfa === !0, R = n.ownerDocument || globalThis.document, W = n.disableRange === !0, te = n.disableStream === !0, re = n.disableAutoFetch === !0, H = n.pdfBug === !0, G = n.CanvasFactory || FW, V = n.FilterFactory || jW,
|
|
22452
|
+
const d = n.verbosity, f = typeof n.docBaseUrl != "string" || d5(n.docBaseUrl) ? null : n.docBaseUrl, h = typeof n.cMapUrl == "string" ? n.cMapUrl : null, m = n.cMapPacked !== !1, g = n.CMapReaderFactory || BW, y = typeof n.standardFontDataUrl == "string" ? n.standardFontDataUrl : null, v = n.StandardFontDataFactory || zW, b = n.stopAtErrors !== !0, S = Number.isInteger(n.maxImageSize) && n.maxImageSize > -1 ? n.maxImageSize : -1, w = n.isEvalSupported !== !1, E = typeof n.isOffscreenCanvasSupported == "boolean" ? n.isOffscreenCanvasSupported : !rr, M = typeof n.isImageDecoderSupported == "boolean" ? n.isImageDecoderSupported : !rr && (Ar.platform.isFirefox || !globalThis.chrome), A = Number.isInteger(n.canvasMaxAreaInBytes) ? n.canvasMaxAreaInBytes : -1, N = typeof n.disableFontFace == "boolean" ? n.disableFontFace : rr, O = n.fontExtraProperties === !0, $ = n.enableXfa === !0, R = n.ownerDocument || globalThis.document, W = n.disableRange === !0, te = n.disableStream === !0, re = n.disableAutoFetch === !0, H = n.pdfBug === !0, G = n.CanvasFactory || FW, V = n.FilterFactory || jW, K = n.enableHWA === !0, ne = l ? l.length : n.length ?? NaN, ue = typeof n.useSystemFonts == "boolean" ? n.useSystemFonts : !rr && !N, ye = typeof n.useWorkerFetch == "boolean" ? n.useWorkerFetch : g === AE && v === EE && h && y && Rd(h, document.baseURI) && Rd(y, document.baseURI);
|
|
22453
22453
|
YU(d);
|
|
22454
|
-
const
|
|
22454
|
+
const le = { canvasFactory: new G({ ownerDocument: R, enableHWA: K }), filterFactory: new V({ docId: t, ownerDocument: R }), cMapReaderFactory: ye ? null : new g({ baseUrl: h, isCompressed: m }), standardFontDataFactory: ye ? null : new v({ baseUrl: y }) };
|
|
22455
22455
|
if (!c) {
|
|
22456
|
-
const
|
|
22457
|
-
c =
|
|
22456
|
+
const Z = { verbosity: d, port: aa.workerPort };
|
|
22457
|
+
c = Z.port ? _c.fromPort(Z) : new _c(Z), e._worker = c;
|
|
22458
22458
|
}
|
|
22459
|
-
const ee = { docId: t, apiVersion: "4.10.38", data: i, password: a, disableAutoFetch: re, rangeChunkSize: u, length: ne, docBaseUrl: f, enableXfa: $, evaluatorOptions: { maxImageSize: S, disableFontFace: N, ignoreErrors: b, isEvalSupported: w, isOffscreenCanvasSupported: E, isImageDecoderSupported: M, canvasMaxAreaInBytes: A, fontExtraProperties: O, useSystemFonts:
|
|
22459
|
+
const ee = { docId: t, apiVersion: "4.10.38", data: i, password: a, disableAutoFetch: re, rangeChunkSize: u, length: ne, docBaseUrl: f, enableXfa: $, evaluatorOptions: { maxImageSize: S, disableFontFace: N, ignoreErrors: b, isEvalSupported: w, isOffscreenCanvasSupported: E, isImageDecoderSupported: M, canvasMaxAreaInBytes: A, fontExtraProperties: O, useSystemFonts: ue, cMapUrl: ye ? h : null, standardFontDataUrl: ye ? y : null } }, Y = { disableFontFace: N, fontExtraProperties: O, ownerDocument: R, pdfBug: H, styleElement: null, loadingParams: { disableAutoFetch: re, enableXfa: $ } };
|
|
22460
22460
|
return c.promise.then(function() {
|
|
22461
22461
|
if (e.destroyed) throw new Error("Loading aborted");
|
|
22462
22462
|
if (c.destroyed) throw new Error("Worker was destroyed");
|
|
22463
|
-
const
|
|
22464
|
-
let
|
|
22465
|
-
if (l)
|
|
22463
|
+
const Z = c.messageHandler.sendWithPromise("GetDocRequest", ee, i ? [i.buffer] : null);
|
|
22464
|
+
let q;
|
|
22465
|
+
if (l) q = new kW(l, { disableRange: W, disableStream: te });
|
|
22466
22466
|
else if (!i) {
|
|
22467
22467
|
if (!r) throw new Error("getDocument - no `url` parameter provided.");
|
|
22468
|
-
let
|
|
22468
|
+
let ce;
|
|
22469
22469
|
if (rr) if (Rd(r)) {
|
|
22470
22470
|
if (typeof fetch > "u" || typeof Response > "u" || !("body" in Response.prototype)) throw new Error("getDocument - the Fetch API was disabled in Node.js, see `--no-experimental-fetch`.");
|
|
22471
|
-
|
|
22472
|
-
} else
|
|
22473
|
-
else
|
|
22474
|
-
|
|
22471
|
+
ce = F9;
|
|
22472
|
+
} else ce = LW;
|
|
22473
|
+
else ce = Rd(r) ? F9 : OW;
|
|
22474
|
+
q = new ce({ url: r, length: ne, httpHeaders: s, withCredentials: o, rangeChunkSize: u, disableRange: W, disableStream: te });
|
|
22475
22475
|
}
|
|
22476
|
-
return
|
|
22476
|
+
return Z.then((ce) => {
|
|
22477
22477
|
if (e.destroyed) throw new Error("Loading aborted");
|
|
22478
22478
|
if (c.destroyed) throw new Error("Worker was destroyed");
|
|
22479
|
-
const
|
|
22480
|
-
e._transport = be,
|
|
22479
|
+
const me = new jd(t, ce, c.port), be = new ZW(me, e, q, Y, le);
|
|
22480
|
+
e._transport = be, me.send("Ready", null);
|
|
22481
22481
|
});
|
|
22482
22482
|
}).catch(e._capability.reject), e;
|
|
22483
22483
|
}
|
|
@@ -27581,24 +27581,24 @@ const gp = /* @__PURE__ */ He(RZ, [["render", BZ], ["__scopeId", "data-v-ca6ae8f
|
|
|
27581
27581
|
emits: ["update:model-value", "update:activeIndex", "click:file"],
|
|
27582
27582
|
setup(n, { emit: e }) {
|
|
27583
27583
|
const { t } = So(), { deviceType: r } = yp(), i = [{ text: t("HC_CANCEL") }], s = F(null), o = Q(() => {
|
|
27584
|
-
var
|
|
27585
|
-
return (
|
|
27584
|
+
var le;
|
|
27585
|
+
return (le = s.value) == null ? void 0 : le.offsetWidth;
|
|
27586
27586
|
}), a = F(null), l = F([]), u = F(!1), c = F(null), d = F("0"), f = F(1), h = F(cr.md ? 1 : 0.9), m = F(0), g = F(null), y = F(), v = F(!1), b = F(!1), S = Q(() => {
|
|
27587
27587
|
if (g.value)
|
|
27588
27588
|
return g.value && "original" in g.value ? {
|
|
27589
27589
|
name: g.value.original.name,
|
|
27590
27590
|
url: g.value.original.url,
|
|
27591
27591
|
type: g.value.mimetype,
|
|
27592
|
-
extension:
|
|
27592
|
+
extension: K(g.value.original.url)
|
|
27593
27593
|
} : {
|
|
27594
27594
|
name: g.value.name,
|
|
27595
27595
|
url: URL.createObjectURL(g.value),
|
|
27596
27596
|
type: g.value.type,
|
|
27597
|
-
extension:
|
|
27597
|
+
extension: K(g.value.name)
|
|
27598
27598
|
};
|
|
27599
27599
|
}), w = Q(() => [
|
|
27600
27600
|
`z-[${n.baseZIndex + 1}]`
|
|
27601
|
-
]), E = Q(() => n.files.filter((
|
|
27601
|
+
]), E = Q(() => n.files.filter((le) => le.type.startsWith("image") && !le.type.includes("tif"))), M = Q(() => [
|
|
27602
27602
|
"rounded-lg relative mx-auto object-cover grow-1 max-h-[74vh]",
|
|
27603
27603
|
{ animated: !G }
|
|
27604
27604
|
]), A = Q(() => [
|
|
@@ -27609,24 +27609,24 @@ const gp = /* @__PURE__ */ He(RZ, [["render", BZ], ["__scopeId", "data-v-ca6ae8f
|
|
|
27609
27609
|
text: t("HC_DELETE_ATTACHMENT"),
|
|
27610
27610
|
classes: "!text-red-20",
|
|
27611
27611
|
event: re
|
|
27612
|
-
}]), O = (
|
|
27613
|
-
const ee =
|
|
27612
|
+
}]), O = (le) => {
|
|
27613
|
+
const ee = le instanceof File ? URL.createObjectURL(le) : le.original.url;
|
|
27614
27614
|
r.value === "desktop" ? window.open(ee, "_blank") : window.open(ee, "_self");
|
|
27615
|
-
}, $ = (
|
|
27616
|
-
r.value === "desktop" ? O(
|
|
27617
|
-
}, R = (
|
|
27618
|
-
|
|
27619
|
-
}, W = (
|
|
27620
|
-
var
|
|
27621
|
-
const
|
|
27622
|
-
!u.value &&
|
|
27623
|
-
}, te = (
|
|
27624
|
-
const
|
|
27625
|
-
m.value =
|
|
27626
|
-
}, re = (
|
|
27627
|
-
u.value = !1, e("update:model-value",
|
|
27628
|
-
}, H = (
|
|
27629
|
-
const { keyCode: ee } =
|
|
27615
|
+
}, $ = (le) => {
|
|
27616
|
+
r.value === "desktop" ? O(le) : (g.value = le, b.value = !0);
|
|
27617
|
+
}, R = (le) => {
|
|
27618
|
+
le.event(), u.value = !1;
|
|
27619
|
+
}, W = (le, ee) => {
|
|
27620
|
+
var Z;
|
|
27621
|
+
const Y = ((Z = ee.type) == null ? void 0 : Z.includes("image")) && !ee.type.includes("tif");
|
|
27622
|
+
!u.value && Y ? te(le, ee) : !u.value && !Y && $(ee);
|
|
27623
|
+
}, te = (le, ee) => {
|
|
27624
|
+
const Y = (q) => "original" in q && "original" in ee ? q.original.url === (ee == null ? void 0 : ee.original.url) : ee instanceof File ? q.name === (ee == null ? void 0 : ee.name) : !1, Z = E.value.findIndex(Y);
|
|
27625
|
+
m.value = Z !== -1 ? Z : le, v.value = !0;
|
|
27626
|
+
}, re = (le = null) => {
|
|
27627
|
+
u.value = !1, e("update:model-value", le || c.value);
|
|
27628
|
+
}, H = (le) => {
|
|
27629
|
+
const { keyCode: ee } = le;
|
|
27630
27630
|
if (v.value)
|
|
27631
27631
|
switch (ee) {
|
|
27632
27632
|
// previous - navigate to previous image
|
|
@@ -27645,24 +27645,24 @@ const gp = /* @__PURE__ */ He(RZ, [["render", BZ], ["__scopeId", "data-v-ca6ae8f
|
|
|
27645
27645
|
}, { isSwiping: G, lengthX: V } = HL(a, {
|
|
27646
27646
|
passive: !1,
|
|
27647
27647
|
onSwipe() {
|
|
27648
|
-
const
|
|
27649
|
-
o.value && (f.value = 1.1 -
|
|
27648
|
+
const le = Math.abs(V.value);
|
|
27649
|
+
o.value && (f.value = 1.1 - le / o.value, d.value = V.value < 0 ? `${le / 4}px` : `-${le / 4}px`);
|
|
27650
27650
|
},
|
|
27651
27651
|
onSwipeEnd() {
|
|
27652
|
-
const
|
|
27653
|
-
o.value &&
|
|
27652
|
+
const le = m.value <= 0, ee = m.value >= E.value.length - 1, Y = Math.abs(V.value);
|
|
27653
|
+
o.value && Y / o.value >= 0.5 ? (V.value < 0 ? m.value = le ? E.value.length - 1 : m.value - 1 : m.value = ee ? 0 : m.value + 1, d.value = "0", f.value = 1) : (d.value = "0", f.value = 1);
|
|
27654
27654
|
}
|
|
27655
|
-
}),
|
|
27656
|
-
|
|
27657
|
-
},
|
|
27655
|
+
}), K = (le) => le.substring(le.lastIndexOf(".")), ne = (le, ee) => {
|
|
27656
|
+
le.preventDefault(), c.value = n.files[ee], u.value = !0;
|
|
27657
|
+
}, ue = () => {
|
|
27658
27658
|
u.value = !1, c.value = null;
|
|
27659
27659
|
}, ye = () => {
|
|
27660
|
-
r.value !== "desktop" && l.value.forEach((
|
|
27660
|
+
r.value !== "desktop" && l.value.forEach((le) => {
|
|
27661
27661
|
_L(
|
|
27662
|
-
|
|
27662
|
+
le,
|
|
27663
27663
|
(ee) => {
|
|
27664
|
-
const
|
|
27665
|
-
ne(ee,
|
|
27664
|
+
const Y = l.value.indexOf(le);
|
|
27665
|
+
ne(ee, Y);
|
|
27666
27666
|
},
|
|
27667
27667
|
{ modifiers: { prevent: !0 } }
|
|
27668
27668
|
);
|
|
@@ -27702,7 +27702,7 @@ const gp = /* @__PURE__ */ He(RZ, [["render", BZ], ["__scopeId", "data-v-ca6ae8f
|
|
|
27702
27702
|
thumbnailContainerClasses: A,
|
|
27703
27703
|
// Methods
|
|
27704
27704
|
downloadDocument: O,
|
|
27705
|
-
getExtension:
|
|
27705
|
+
getExtension: K,
|
|
27706
27706
|
onAttachmentClick: $,
|
|
27707
27707
|
onClickMenuLink: R,
|
|
27708
27708
|
onClickThumbnail: W,
|
|
@@ -27710,7 +27710,7 @@ const gp = /* @__PURE__ */ He(RZ, [["render", BZ], ["__scopeId", "data-v-ca6ae8f
|
|
|
27710
27710
|
onRemoveFile: re,
|
|
27711
27711
|
onKeyboardNavigation: H,
|
|
27712
27712
|
onLongPressCallbackHook: ne,
|
|
27713
|
-
resetHook:
|
|
27713
|
+
resetHook: ue,
|
|
27714
27714
|
// Composable
|
|
27715
27715
|
mq: cr
|
|
27716
27716
|
};
|
|
@@ -28422,7 +28422,7 @@ function jI(n, e, t, r) {
|
|
|
28422
28422
|
t -= l, r -= l;
|
|
28423
28423
|
}
|
|
28424
28424
|
}
|
|
28425
|
-
class
|
|
28425
|
+
class fe {
|
|
28426
28426
|
/**
|
|
28427
28427
|
@internal
|
|
28428
28428
|
*/
|
|
@@ -28477,7 +28477,7 @@ class de {
|
|
|
28477
28477
|
let t = this.lastChild, r = e.firstChild, i = this.content.slice(), s = 0;
|
|
28478
28478
|
for (t.isText && t.sameMarkup(r) && (i[i.length - 1] = t.withText(t.text + r.text), s = 1); s < e.content.length; s++)
|
|
28479
28479
|
i.push(e.content[s]);
|
|
28480
|
-
return new
|
|
28480
|
+
return new fe(i, this.size + e.size);
|
|
28481
28481
|
}
|
|
28482
28482
|
/**
|
|
28483
28483
|
Cut out the sub-fragment between the two given positions.
|
|
@@ -28491,13 +28491,13 @@ class de {
|
|
|
28491
28491
|
let a = this.content[s], l = o + a.nodeSize;
|
|
28492
28492
|
l > e && ((o < e || l > t) && (a.isText ? a = a.cut(Math.max(0, e - o), Math.min(a.text.length, t - o)) : a = a.cut(Math.max(0, e - o - 1), Math.min(a.content.size, t - o - 1))), r.push(a), i += a.nodeSize), o = l;
|
|
28493
28493
|
}
|
|
28494
|
-
return new
|
|
28494
|
+
return new fe(r, i);
|
|
28495
28495
|
}
|
|
28496
28496
|
/**
|
|
28497
28497
|
@internal
|
|
28498
28498
|
*/
|
|
28499
28499
|
cutByIndex(e, t) {
|
|
28500
|
-
return e == t ?
|
|
28500
|
+
return e == t ? fe.empty : e == 0 && t == this.content.length ? this : new fe(this.content.slice(e, t));
|
|
28501
28501
|
}
|
|
28502
28502
|
/**
|
|
28503
28503
|
Create a new fragment in which the node at the given index is
|
|
@@ -28508,21 +28508,21 @@ class de {
|
|
|
28508
28508
|
if (r == t)
|
|
28509
28509
|
return this;
|
|
28510
28510
|
let i = this.content.slice(), s = this.size + t.nodeSize - r.nodeSize;
|
|
28511
|
-
return i[e] = t, new
|
|
28511
|
+
return i[e] = t, new fe(i, s);
|
|
28512
28512
|
}
|
|
28513
28513
|
/**
|
|
28514
28514
|
Create a new fragment by prepending the given node to this
|
|
28515
28515
|
fragment.
|
|
28516
28516
|
*/
|
|
28517
28517
|
addToStart(e) {
|
|
28518
|
-
return new
|
|
28518
|
+
return new fe([e].concat(this.content), this.size + e.nodeSize);
|
|
28519
28519
|
}
|
|
28520
28520
|
/**
|
|
28521
28521
|
Create a new fragment by appending the given node to this
|
|
28522
28522
|
fragment.
|
|
28523
28523
|
*/
|
|
28524
28524
|
addToEnd(e) {
|
|
28525
|
-
return new
|
|
28525
|
+
return new fe(this.content.concat(e), this.size + e.nodeSize);
|
|
28526
28526
|
}
|
|
28527
28527
|
/**
|
|
28528
28528
|
Compare this fragment to another one.
|
|
@@ -28637,10 +28637,10 @@ class de {
|
|
|
28637
28637
|
*/
|
|
28638
28638
|
static fromJSON(e, t) {
|
|
28639
28639
|
if (!t)
|
|
28640
|
-
return
|
|
28640
|
+
return fe.empty;
|
|
28641
28641
|
if (!Array.isArray(t))
|
|
28642
28642
|
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
28643
|
-
return new
|
|
28643
|
+
return new fe(t.map(e.nodeFromJSON));
|
|
28644
28644
|
}
|
|
28645
28645
|
/**
|
|
28646
28646
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -28648,13 +28648,13 @@ class de {
|
|
|
28648
28648
|
*/
|
|
28649
28649
|
static fromArray(e) {
|
|
28650
28650
|
if (!e.length)
|
|
28651
|
-
return
|
|
28651
|
+
return fe.empty;
|
|
28652
28652
|
let t, r = 0;
|
|
28653
28653
|
for (let i = 0; i < e.length; i++) {
|
|
28654
28654
|
let s = e[i];
|
|
28655
28655
|
r += s.nodeSize, i && s.isText && e[i - 1].sameMarkup(s) ? (t || (t = e.slice(0, i)), t[t.length - 1] = s.withText(t[t.length - 1].text + s.text)) : t && t.push(s);
|
|
28656
28656
|
}
|
|
28657
|
-
return new
|
|
28657
|
+
return new fe(t || e, r);
|
|
28658
28658
|
}
|
|
28659
28659
|
/**
|
|
28660
28660
|
Create a fragment from something that can be interpreted as a
|
|
@@ -28664,17 +28664,17 @@ class de {
|
|
|
28664
28664
|
*/
|
|
28665
28665
|
static from(e) {
|
|
28666
28666
|
if (!e)
|
|
28667
|
-
return
|
|
28668
|
-
if (e instanceof
|
|
28667
|
+
return fe.empty;
|
|
28668
|
+
if (e instanceof fe)
|
|
28669
28669
|
return e;
|
|
28670
28670
|
if (Array.isArray(e))
|
|
28671
28671
|
return this.fromArray(e);
|
|
28672
28672
|
if (e.attrs)
|
|
28673
|
-
return new
|
|
28673
|
+
return new fe([e], e.nodeSize);
|
|
28674
28674
|
throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
28675
28675
|
}
|
|
28676
28676
|
}
|
|
28677
|
-
|
|
28677
|
+
fe.empty = new fe([], 0);
|
|
28678
28678
|
const vy = { index: 0, offset: 0 };
|
|
28679
28679
|
function Xp(n, e) {
|
|
28680
28680
|
return vy.index = n, vy.offset = e, vy;
|
|
@@ -28875,7 +28875,7 @@ class we {
|
|
|
28875
28875
|
let r = t.openStart || 0, i = t.openEnd || 0;
|
|
28876
28876
|
if (typeof r != "number" || typeof i != "number")
|
|
28877
28877
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
28878
|
-
return new we(
|
|
28878
|
+
return new we(fe.fromJSON(e, t.content), r, i);
|
|
28879
28879
|
}
|
|
28880
28880
|
/**
|
|
28881
28881
|
Create a slice from a fragment by taking the maximum possible
|
|
@@ -28890,7 +28890,7 @@ class we {
|
|
|
28890
28890
|
return new we(e, r, i);
|
|
28891
28891
|
}
|
|
28892
28892
|
}
|
|
28893
|
-
we.empty = new we(
|
|
28893
|
+
we.empty = new we(fe.empty, 0, 0);
|
|
28894
28894
|
function zI(n, e, t) {
|
|
28895
28895
|
let { index: r, offset: i } = n.findIndex(e), s = n.maybeChild(r), { index: o, offset: a } = n.findIndex(t);
|
|
28896
28896
|
if (i == e || s.isText) {
|
|
@@ -28955,7 +28955,7 @@ function Pu(n, e) {
|
|
|
28955
28955
|
}
|
|
28956
28956
|
function WI(n, e, t, r, i) {
|
|
28957
28957
|
let s = n.depth > i && sb(n, e, i + 1), o = r.depth > i && sb(t, r, i + 1), a = [];
|
|
28958
|
-
return cf(null, n, i, a), s && o && e.index(i) == t.index(i) ? (UI(s, o), Nu(Pu(s, WI(n, e, t, r, i + 1)), a)) : (s && Nu(Pu(s, Og(n, e, i + 1)), a), cf(e, t, i, a), o && Nu(Pu(o, Og(t, r, i + 1)), a)), cf(r, null, i, a), new
|
|
28958
|
+
return cf(null, n, i, a), s && o && e.index(i) == t.index(i) ? (UI(s, o), Nu(Pu(s, WI(n, e, t, r, i + 1)), a)) : (s && Nu(Pu(s, Og(n, e, i + 1)), a), cf(e, t, i, a), o && Nu(Pu(o, Og(t, r, i + 1)), a)), cf(r, null, i, a), new fe(a);
|
|
28959
28959
|
}
|
|
28960
28960
|
function Og(n, e, t) {
|
|
28961
28961
|
let r = [];
|
|
@@ -28963,12 +28963,12 @@ function Og(n, e, t) {
|
|
|
28963
28963
|
let i = sb(n, e, t + 1);
|
|
28964
28964
|
Nu(Pu(i, Og(n, e, t + 1)), r);
|
|
28965
28965
|
}
|
|
28966
|
-
return cf(e, null, t, r), new
|
|
28966
|
+
return cf(e, null, t, r), new fe(r);
|
|
28967
28967
|
}
|
|
28968
28968
|
function wG(n, e) {
|
|
28969
28969
|
let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
|
|
28970
28970
|
for (let s = t - 1; s >= 0; s--)
|
|
28971
|
-
i = e.node(s).copy(
|
|
28971
|
+
i = e.node(s).copy(fe.from(i));
|
|
28972
28972
|
return {
|
|
28973
28973
|
start: i.resolveNoCache(n.openStart + t),
|
|
28974
28974
|
end: i.resolveNoCache(i.content.size - n.openEnd - t)
|
|
@@ -29264,7 +29264,7 @@ let Lu = class ob {
|
|
|
29264
29264
|
@internal
|
|
29265
29265
|
*/
|
|
29266
29266
|
constructor(e, t, r, i = kt.none) {
|
|
29267
|
-
this.type = e, this.attrs = t, this.marks = i, this.content = r ||
|
|
29267
|
+
this.type = e, this.attrs = t, this.marks = i, this.content = r || fe.empty;
|
|
29268
29268
|
}
|
|
29269
29269
|
/**
|
|
29270
29270
|
The size of this node, as defined by the integer-based [indexing
|
|
@@ -29547,7 +29547,7 @@ let Lu = class ob {
|
|
|
29547
29547
|
can optionally pass `start` and `end` indices into the
|
|
29548
29548
|
replacement fragment.
|
|
29549
29549
|
*/
|
|
29550
|
-
canReplace(e, t, r =
|
|
29550
|
+
canReplace(e, t, r = fe.empty, i = 0, s = r.childCount) {
|
|
29551
29551
|
let o = this.contentMatchAt(e).matchFragment(r, i, s), a = o && o.matchFragment(this.content, t);
|
|
29552
29552
|
if (!a || !a.validEnd)
|
|
29553
29553
|
return !1;
|
|
@@ -29616,7 +29616,7 @@ let Lu = class ob {
|
|
|
29616
29616
|
throw new RangeError("Invalid text node in JSON");
|
|
29617
29617
|
return e.text(t.text, r);
|
|
29618
29618
|
}
|
|
29619
|
-
let i =
|
|
29619
|
+
let i = fe.fromJSON(e, t.content);
|
|
29620
29620
|
return e.nodeType(t.type).create(t.attrs, i, r);
|
|
29621
29621
|
}
|
|
29622
29622
|
};
|
|
@@ -29744,7 +29744,7 @@ class Wu {
|
|
|
29744
29744
|
function s(o, a) {
|
|
29745
29745
|
let l = o.matchFragment(e, r);
|
|
29746
29746
|
if (l && (!t || l.validEnd))
|
|
29747
|
-
return
|
|
29747
|
+
return fe.from(a.map((u) => u.createAndFill()));
|
|
29748
29748
|
for (let u = 0; u < o.next.length; u++) {
|
|
29749
29749
|
let { type: c, next: d } = o.next[u];
|
|
29750
29750
|
if (!(c.isText || c.hasRequiredAttrs()) && i.indexOf(d) == -1) {
|
|
@@ -30111,7 +30111,7 @@ let U9 = class XI {
|
|
|
30111
30111
|
create(e = null, t, r) {
|
|
30112
30112
|
if (this.isText)
|
|
30113
30113
|
throw new Error("NodeType.create can't construct text nodes");
|
|
30114
|
-
return new Lu(this, this.computeAttrs(e),
|
|
30114
|
+
return new Lu(this, this.computeAttrs(e), fe.from(t), kt.setFrom(r));
|
|
30115
30115
|
}
|
|
30116
30116
|
/**
|
|
30117
30117
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -30119,7 +30119,7 @@ let U9 = class XI {
|
|
|
30119
30119
|
if it doesn't match.
|
|
30120
30120
|
*/
|
|
30121
30121
|
createChecked(e = null, t, r) {
|
|
30122
|
-
return t =
|
|
30122
|
+
return t = fe.from(t), this.checkContent(t), new Lu(this, this.computeAttrs(e), t, kt.setFrom(r));
|
|
30123
30123
|
}
|
|
30124
30124
|
/**
|
|
30125
30125
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -30130,13 +30130,13 @@ let U9 = class XI {
|
|
|
30130
30130
|
`Fragment.empty` as content.
|
|
30131
30131
|
*/
|
|
30132
30132
|
createAndFill(e = null, t, r) {
|
|
30133
|
-
if (e = this.computeAttrs(e), t =
|
|
30133
|
+
if (e = this.computeAttrs(e), t = fe.from(t), t.size) {
|
|
30134
30134
|
let o = this.contentMatch.fillBefore(t);
|
|
30135
30135
|
if (!o)
|
|
30136
30136
|
return null;
|
|
30137
30137
|
t = o.append(t);
|
|
30138
30138
|
}
|
|
30139
|
-
let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(
|
|
30139
|
+
let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(fe.empty, !0);
|
|
30140
30140
|
return s ? new Lu(this, e, t.append(s), kt.setFrom(r)) : null;
|
|
30141
30141
|
}
|
|
30142
30142
|
/**
|
|
@@ -30514,7 +30514,7 @@ class Jp {
|
|
|
30514
30514
|
if (!this.match) {
|
|
30515
30515
|
if (!this.type)
|
|
30516
30516
|
return [];
|
|
30517
|
-
let t = this.type.contentMatch.fillBefore(
|
|
30517
|
+
let t = this.type.contentMatch.fillBefore(fe.from(e));
|
|
30518
30518
|
if (t)
|
|
30519
30519
|
this.match = this.type.contentMatch.matchFragment(t);
|
|
30520
30520
|
else {
|
|
@@ -30532,8 +30532,8 @@ class Jp {
|
|
|
30532
30532
|
r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = s.withText(s.text.slice(0, s.text.length - i[0].length));
|
|
30533
30533
|
}
|
|
30534
30534
|
}
|
|
30535
|
-
let t =
|
|
30536
|
-
return !e && this.match && (t = t.append(this.match.fillBefore(
|
|
30535
|
+
let t = fe.from(this.content);
|
|
30536
|
+
return !e && this.match && (t = t.append(this.match.fillBefore(fe.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
|
|
30537
30537
|
}
|
|
30538
30538
|
popFromStashMark(e) {
|
|
30539
30539
|
for (let t = this.stashMarks.length - 1; t >= 0; t--)
|
|
@@ -31363,7 +31363,7 @@ function q6(n, e, t) {
|
|
|
31363
31363
|
let s = n.child(i);
|
|
31364
31364
|
s.content.size && (s = s.copy(q6(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
|
|
31365
31365
|
}
|
|
31366
|
-
return
|
|
31366
|
+
return fe.fromArray(r);
|
|
31367
31367
|
}
|
|
31368
31368
|
class Al extends fr {
|
|
31369
31369
|
/**
|
|
@@ -31455,7 +31455,7 @@ class Tl extends fr {
|
|
|
31455
31455
|
if (!t)
|
|
31456
31456
|
return ln.fail("No node at mark step's position");
|
|
31457
31457
|
let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
31458
|
-
return ln.fromReplace(e, this.pos, this.pos + 1, new we(
|
|
31458
|
+
return ln.fromReplace(e, this.pos, this.pos + 1, new we(fe.from(r), 0, t.isLeaf ? 0 : 1));
|
|
31459
31459
|
}
|
|
31460
31460
|
invert(e) {
|
|
31461
31461
|
let t = e.nodeAt(this.pos);
|
|
@@ -31499,7 +31499,7 @@ class K2 extends fr {
|
|
|
31499
31499
|
if (!t)
|
|
31500
31500
|
return ln.fail("No node at mark step's position");
|
|
31501
31501
|
let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
31502
|
-
return ln.fromReplace(e, this.pos, this.pos + 1, new we(
|
|
31502
|
+
return ln.fromReplace(e, this.pos, this.pos + 1, new we(fe.from(r), 0, t.isLeaf ? 0 : 1));
|
|
31503
31503
|
}
|
|
31504
31504
|
invert(e) {
|
|
31505
31505
|
let t = e.nodeAt(this.pos);
|
|
@@ -31698,13 +31698,13 @@ function UG(n, e, t, r = t.contentMatch) {
|
|
|
31698
31698
|
if (l.isText && !t.spec.code) {
|
|
31699
31699
|
let d, f = /\r?\n|\r/g, h;
|
|
31700
31700
|
for (; d = f.exec(l.text); )
|
|
31701
|
-
h || (h = new we(
|
|
31701
|
+
h || (h = new we(fe.from(t.schema.text(" ", t.allowedMarks(l.marks))), 0, 0)), s.push(new An(o + d.index, o + d.index + d[0].length, h));
|
|
31702
31702
|
}
|
|
31703
31703
|
}
|
|
31704
31704
|
o = u;
|
|
31705
31705
|
}
|
|
31706
31706
|
if (!r.validEnd) {
|
|
31707
|
-
let a = r.fillBefore(
|
|
31707
|
+
let a = r.fillBefore(fe.empty, !0);
|
|
31708
31708
|
n.replace(o, o, new we(a, 0, 0));
|
|
31709
31709
|
}
|
|
31710
31710
|
for (let a = s.length - 1; a >= 0; a--)
|
|
@@ -31725,12 +31725,12 @@ function gd(n) {
|
|
|
31725
31725
|
return null;
|
|
31726
31726
|
}
|
|
31727
31727
|
function ZG(n, e, t) {
|
|
31728
|
-
let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), a = i.after(s + 1), l = o, u = a, c =
|
|
31728
|
+
let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), a = i.after(s + 1), l = o, u = a, c = fe.empty, d = 0;
|
|
31729
31729
|
for (let m = s, g = !1; m > t; m--)
|
|
31730
|
-
g || r.index(m) > 0 ? (g = !0, c =
|
|
31731
|
-
let f =
|
|
31730
|
+
g || r.index(m) > 0 ? (g = !0, c = fe.from(r.node(m).copy(c)), d++) : l--;
|
|
31731
|
+
let f = fe.empty, h = 0;
|
|
31732
31732
|
for (let m = s, g = !1; m > t; m--)
|
|
31733
|
-
g || i.after(m + 1) < i.end(m) ? (g = !0, f =
|
|
31733
|
+
g || i.after(m + 1) < i.end(m) ? (g = !0, f = fe.from(i.node(m).copy(f)), h++) : u++;
|
|
31734
31734
|
n.step(new On(l, u, o, a, new we(c.append(f), d, h), c.size - d, !0));
|
|
31735
31735
|
}
|
|
31736
31736
|
function K6(n, e, t = null, r = n) {
|
|
@@ -31757,14 +31757,14 @@ function qG(n, e) {
|
|
|
31757
31757
|
return !l || !l.validEnd ? null : o;
|
|
31758
31758
|
}
|
|
31759
31759
|
function KG(n, e, t) {
|
|
31760
|
-
let r =
|
|
31760
|
+
let r = fe.empty;
|
|
31761
31761
|
for (let o = t.length - 1; o >= 0; o--) {
|
|
31762
31762
|
if (r.size) {
|
|
31763
31763
|
let a = t[o].type.contentMatch.matchFragment(r);
|
|
31764
31764
|
if (!a || !a.validEnd)
|
|
31765
31765
|
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
31766
31766
|
}
|
|
31767
|
-
r =
|
|
31767
|
+
r = fe.from(t[o].type.create(t[o].attrs, r));
|
|
31768
31768
|
}
|
|
31769
31769
|
let i = e.start, s = e.end;
|
|
31770
31770
|
n.step(new On(i, s, i, s, new we(r, 0, 0), t.length, !0));
|
|
@@ -31777,7 +31777,7 @@ function YG(n, e, t, r, i) {
|
|
|
31777
31777
|
if (o.isTextblock && !o.hasMarkup(r, i) && QG(n.doc, n.mapping.slice(s).map(a), r)) {
|
|
31778
31778
|
n.clearIncompatible(n.mapping.slice(s).map(a, 1), r);
|
|
31779
31779
|
let l = n.mapping.slice(s), u = l.map(a, 1), c = l.map(a + o.nodeSize, 1);
|
|
31780
|
-
return n.step(new On(u, c, u + 1, c - 1, new we(
|
|
31780
|
+
return n.step(new On(u, c, u + 1, c - 1, new we(fe.from(r.create(i, null, o.marks)), 0, 0), 1, !0)), !1;
|
|
31781
31781
|
}
|
|
31782
31782
|
});
|
|
31783
31783
|
}
|
|
@@ -31795,7 +31795,7 @@ function XG(n, e, t, r, i) {
|
|
|
31795
31795
|
return n.replaceWith(e, e + s.nodeSize, o);
|
|
31796
31796
|
if (!t.validContent(s.content))
|
|
31797
31797
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
31798
|
-
n.step(new On(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new we(
|
|
31798
|
+
n.step(new On(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new we(fe.from(o), 0, 0), 1, !0));
|
|
31799
31799
|
}
|
|
31800
31800
|
function da(n, e, t = 1, r) {
|
|
31801
31801
|
let i = n.resolve(e), s = i.depth - t, o = r && r[r.length - 1] || i.parent;
|
|
@@ -31815,11 +31815,11 @@ function da(n, e, t = 1, r) {
|
|
|
31815
31815
|
return i.node(s).canReplaceWith(a, a, l ? l.type : i.node(s + 1).type);
|
|
31816
31816
|
}
|
|
31817
31817
|
function JG(n, e, t = 1, r) {
|
|
31818
|
-
let i = n.doc.resolve(e), s =
|
|
31818
|
+
let i = n.doc.resolve(e), s = fe.empty, o = fe.empty;
|
|
31819
31819
|
for (let a = i.depth, l = i.depth - t, u = t - 1; a > l; a--, u--) {
|
|
31820
|
-
s =
|
|
31820
|
+
s = fe.from(i.node(a).copy(s));
|
|
31821
31821
|
let c = r && r[u];
|
|
31822
|
-
o =
|
|
31822
|
+
o = fe.from(c ? c.type.create(c.attrs, o) : i.node(a).copy(o));
|
|
31823
31823
|
}
|
|
31824
31824
|
n.step(new An(e, e, new we(s.append(o), t, t), !0));
|
|
31825
31825
|
}
|
|
@@ -31899,7 +31899,7 @@ function lx(n, e, t) {
|
|
|
31899
31899
|
}
|
|
31900
31900
|
class nq {
|
|
31901
31901
|
constructor(e, t, r) {
|
|
31902
|
-
this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed =
|
|
31902
|
+
this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = fe.empty;
|
|
31903
31903
|
for (let i = 0; i <= e.depth; i++) {
|
|
31904
31904
|
let s = e.node(i);
|
|
31905
31905
|
this.frontier.push({
|
|
@@ -31908,7 +31908,7 @@ class nq {
|
|
|
31908
31908
|
});
|
|
31909
31909
|
}
|
|
31910
31910
|
for (let i = e.depth; i > 0; i--)
|
|
31911
|
-
this.placed =
|
|
31911
|
+
this.placed = fe.from(e.node(i).copy(this.placed));
|
|
31912
31912
|
}
|
|
31913
31913
|
get depth() {
|
|
31914
31914
|
return this.frontier.length - 1;
|
|
@@ -31947,7 +31947,7 @@ class nq {
|
|
|
31947
31947
|
let o = i.firstChild;
|
|
31948
31948
|
for (let a = this.depth; a >= 0; a--) {
|
|
31949
31949
|
let { type: l, match: u } = this.frontier[a], c, d = null;
|
|
31950
|
-
if (t == 1 && (o ? u.matchType(o.type) || (d = u.fillBefore(
|
|
31950
|
+
if (t == 1 && (o ? u.matchType(o.type) || (d = u.fillBefore(fe.from(o), !1)) : s && l.compatibleContent(s.type)))
|
|
31951
31951
|
return { sliceDepth: r, frontierDepth: a, parent: s, inject: d };
|
|
31952
31952
|
if (t == 2 && o && (c = u.findWrapping(o.type)))
|
|
31953
31953
|
return { sliceDepth: r, frontierDepth: a, parent: s, wrap: c };
|
|
@@ -31991,7 +31991,7 @@ class nq {
|
|
|
31991
31991
|
u++, (u > 1 || l == 0 || g.content.size) && (d = y, c.push(ux(g.mark(f.allowedMarks(g.marks)), u == 1 ? l : 0, u == a.childCount ? h : -1)));
|
|
31992
31992
|
}
|
|
31993
31993
|
let m = u == a.childCount;
|
|
31994
|
-
m || (h = -1), this.placed = Jd(this.placed, t,
|
|
31994
|
+
m || (h = -1), this.placed = Jd(this.placed, t, fe.from(c)), this.frontier[t].match = d, m && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
31995
31995
|
for (let g = 0, y = a; g < h; g++) {
|
|
31996
31996
|
let v = y.lastChild;
|
|
31997
31997
|
this.frontier.push({ type: v.type, match: v.contentMatchAt(v.childCount) }), y = v.content;
|
|
@@ -32037,10 +32037,10 @@ class nq {
|
|
|
32037
32037
|
}
|
|
32038
32038
|
openFrontierNode(e, t = null, r) {
|
|
32039
32039
|
let i = this.frontier[this.depth];
|
|
32040
|
-
i.match = i.match.matchType(e), this.placed = Jd(this.placed, this.depth,
|
|
32040
|
+
i.match = i.match.matchType(e), this.placed = Jd(this.placed, this.depth, fe.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
32041
32041
|
}
|
|
32042
32042
|
closeFrontierNode() {
|
|
32043
|
-
let t = this.frontier.pop().match.fillBefore(
|
|
32043
|
+
let t = this.frontier.pop().match.fillBefore(fe.empty, !0);
|
|
32044
32044
|
t.childCount && (this.placed = Jd(this.placed, this.frontier.length, t));
|
|
32045
32045
|
}
|
|
32046
32046
|
}
|
|
@@ -32059,7 +32059,7 @@ function ux(n, e, t) {
|
|
|
32059
32059
|
if (e <= 0)
|
|
32060
32060
|
return n;
|
|
32061
32061
|
let r = n.content;
|
|
32062
|
-
return e > 1 && (r = r.replaceChild(0, ux(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(
|
|
32062
|
+
return e > 1 && (r = r.replaceChild(0, ux(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(fe.empty, !0)))), n.copy(r);
|
|
32063
32063
|
}
|
|
32064
32064
|
function ky(n, e, t, r, i) {
|
|
32065
32065
|
let s = n.node(e), o = i ? n.indexAfter(e) : n.index(e);
|
|
@@ -32131,7 +32131,7 @@ function cx(n, e, t, r, i) {
|
|
|
32131
32131
|
}
|
|
32132
32132
|
if (e > r) {
|
|
32133
32133
|
let s = i.contentMatchAt(0), o = s.fillBefore(n).append(n);
|
|
32134
|
-
n = o.append(s.matchFragment(o).fillBefore(
|
|
32134
|
+
n = o.append(s.matchFragment(o).fillBefore(fe.empty, !0));
|
|
32135
32135
|
}
|
|
32136
32136
|
return n;
|
|
32137
32137
|
}
|
|
@@ -32140,7 +32140,7 @@ function oq(n, e, t, r) {
|
|
|
32140
32140
|
let i = tq(n.doc, e, r.type);
|
|
32141
32141
|
i != null && (e = t = i);
|
|
32142
32142
|
}
|
|
32143
|
-
n.replaceRange(e, t, new we(
|
|
32143
|
+
n.replaceRange(e, t, new we(fe.from(r), 0, 0));
|
|
32144
32144
|
}
|
|
32145
32145
|
function aq(n, e, t) {
|
|
32146
32146
|
let r = n.doc.resolve(e), i = n.doc.resolve(t), s = dx(r, i);
|
|
@@ -32182,7 +32182,7 @@ class $c extends fr {
|
|
|
32182
32182
|
r[s] = t.attrs[s];
|
|
32183
32183
|
r[this.attr] = this.value;
|
|
32184
32184
|
let i = t.type.create(r, null, t.marks);
|
|
32185
|
-
return ln.fromReplace(e, this.pos, this.pos + 1, new we(
|
|
32185
|
+
return ln.fromReplace(e, this.pos, this.pos + 1, new we(fe.from(i), 0, t.isLeaf ? 0 : 1));
|
|
32186
32186
|
}
|
|
32187
32187
|
getMap() {
|
|
32188
32188
|
return yi.empty;
|
|
@@ -32304,7 +32304,7 @@ class fx {
|
|
|
32304
32304
|
fragment, node, or array of nodes.
|
|
32305
32305
|
*/
|
|
32306
32306
|
replaceWith(e, t, r) {
|
|
32307
|
-
return this.replace(e, t, new we(
|
|
32307
|
+
return this.replace(e, t, new we(fe.from(r), 0, 0));
|
|
32308
32308
|
}
|
|
32309
32309
|
/**
|
|
32310
32310
|
Delete the content between the given positions.
|
|
@@ -32742,7 +32742,7 @@ class Pe extends Qe {
|
|
|
32742
32742
|
return r ? Qe.near(s) : new Pe(s);
|
|
32743
32743
|
}
|
|
32744
32744
|
content() {
|
|
32745
|
-
return new we(
|
|
32745
|
+
return new we(fe.from(this.node), 0, 0);
|
|
32746
32746
|
}
|
|
32747
32747
|
eq(e) {
|
|
32748
32748
|
return e instanceof Pe && e.anchor == this.anchor;
|
|
@@ -34148,7 +34148,7 @@ class Nl extends bp {
|
|
|
34148
34148
|
break;
|
|
34149
34149
|
}
|
|
34150
34150
|
}
|
|
34151
|
-
e.contentElement || (e.getContent = () =>
|
|
34151
|
+
e.contentElement || (e.getContent = () => fe.empty);
|
|
34152
34152
|
}
|
|
34153
34153
|
return e;
|
|
34154
34154
|
}
|
|
@@ -35091,7 +35091,7 @@ function Nx(n, e, t, r, i) {
|
|
|
35091
35091
|
if (n.someProp("transformPastedText", (f) => {
|
|
35092
35092
|
e = f(e, s || r, n);
|
|
35093
35093
|
}), s)
|
|
35094
|
-
return e ? new we(
|
|
35094
|
+
return e ? new we(fe.from(n.state.schema.text(e.replace(/\r\n?/g, `
|
|
35095
35095
|
`))), 0, 0) : we.empty;
|
|
35096
35096
|
let d = n.someProp("clipboardTextParser", (f) => f(e, i, r, n));
|
|
35097
35097
|
if (d)
|
|
@@ -35157,13 +35157,13 @@ function tK(n, e) {
|
|
|
35157
35157
|
o.push(c), i = i.matchType(c.type), s = l;
|
|
35158
35158
|
}
|
|
35159
35159
|
}), o)
|
|
35160
|
-
return
|
|
35160
|
+
return fe.from(o);
|
|
35161
35161
|
}
|
|
35162
35162
|
return n;
|
|
35163
35163
|
}
|
|
35164
35164
|
function Px(n, e, t = 0) {
|
|
35165
35165
|
for (let r = e.length - 1; r >= t; r--)
|
|
35166
|
-
n = e[r].create(null,
|
|
35166
|
+
n = e[r].create(null, fe.from(n));
|
|
35167
35167
|
return n;
|
|
35168
35168
|
}
|
|
35169
35169
|
function Lx(n, e, t, r, i) {
|
|
@@ -35172,18 +35172,18 @@ function Lx(n, e, t, r, i) {
|
|
|
35172
35172
|
if (s)
|
|
35173
35173
|
return r.copy(r.content.replaceChild(r.childCount - 1, s));
|
|
35174
35174
|
if (r.contentMatchAt(r.childCount).matchType(i == n.length - 1 ? t.type : n[i + 1]))
|
|
35175
|
-
return r.copy(r.content.append(
|
|
35175
|
+
return r.copy(r.content.append(fe.from(Px(t, n, i + 1))));
|
|
35176
35176
|
}
|
|
35177
35177
|
}
|
|
35178
35178
|
function _x(n, e) {
|
|
35179
35179
|
if (e == 0)
|
|
35180
35180
|
return n;
|
|
35181
|
-
let t = n.content.replaceChild(n.childCount - 1, _x(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(
|
|
35181
|
+
let t = n.content.replaceChild(n.childCount - 1, _x(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(fe.empty, !0);
|
|
35182
35182
|
return n.copy(t.append(r));
|
|
35183
35183
|
}
|
|
35184
35184
|
function yb(n, e, t, r, i, s) {
|
|
35185
35185
|
let o = e < 0 ? n.firstChild : n.lastChild, a = o.content;
|
|
35186
|
-
return n.childCount > 1 && (s = 0), i < r - 1 && (a = yb(a, e, t, r, i + 1, s)), i >= t && (a = e < 0 ? o.contentMatchAt(0).fillBefore(a, s <= i).append(a) : a.append(o.contentMatchAt(o.childCount).fillBefore(
|
|
35186
|
+
return n.childCount > 1 && (s = 0), i < r - 1 && (a = yb(a, e, t, r, i + 1, s)), i >= t && (a = e < 0 ? o.contentMatchAt(0).fillBefore(a, s <= i).append(a) : a.append(o.contentMatchAt(o.childCount).fillBefore(fe.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(a));
|
|
35187
35187
|
}
|
|
35188
35188
|
function TC(n, e, t) {
|
|
35189
35189
|
return e < n.openStart && (n = new we(yb(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new we(yb(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
|
|
@@ -35233,7 +35233,7 @@ function iK(n, e) {
|
|
|
35233
35233
|
let l = t.nodes[r[a]];
|
|
35234
35234
|
if (!l || l.hasRequiredAttrs())
|
|
35235
35235
|
break;
|
|
35236
|
-
i =
|
|
35236
|
+
i = fe.from(l.create(r[a + 1], i)), s++, o++;
|
|
35237
35237
|
}
|
|
35238
35238
|
return new we(i, s, o);
|
|
35239
35239
|
}
|
|
@@ -36452,7 +36452,7 @@ function RK(n, e) {
|
|
|
36452
36452
|
let u = [];
|
|
36453
36453
|
for (let c = 0; c < e.childCount; c++)
|
|
36454
36454
|
u.push(l(e.child(c)));
|
|
36455
|
-
if (
|
|
36455
|
+
if (fe.from(u).eq(n))
|
|
36456
36456
|
return { mark: a, type: o };
|
|
36457
36457
|
}
|
|
36458
36458
|
function $K(n, e, t, r, i) {
|
|
@@ -37279,10 +37279,10 @@ function sO(n, e, t) {
|
|
|
37279
37279
|
let a = e.parent.canReplace(e.index(), e.index() + 1);
|
|
37280
37280
|
if (a && (s = (o = r.contentMatchAt(r.childCount)).findWrapping(i.type)) && o.matchType(s[0] || i.type).validEnd) {
|
|
37281
37281
|
if (t) {
|
|
37282
|
-
let d = e.pos + i.nodeSize, f =
|
|
37282
|
+
let d = e.pos + i.nodeSize, f = fe.empty;
|
|
37283
37283
|
for (let g = s.length - 1; g >= 0; g--)
|
|
37284
|
-
f =
|
|
37285
|
-
f =
|
|
37284
|
+
f = fe.from(s[g].create(null, f));
|
|
37285
|
+
f = fe.from(r.copy(f));
|
|
37286
37286
|
let h = n.tr.step(new On(e.pos - 1, d, e.pos, d, new we(f, 1, 0), s.length, !0)), m = d + 2 * s.length;
|
|
37287
37287
|
Wl(h.doc, m) && h.join(m), t(h.scrollIntoView());
|
|
37288
37288
|
}
|
|
@@ -37300,9 +37300,9 @@ function sO(n, e, t) {
|
|
|
37300
37300
|
m++;
|
|
37301
37301
|
if (d.canReplace(d.childCount, d.childCount, h.content)) {
|
|
37302
37302
|
if (t) {
|
|
37303
|
-
let g =
|
|
37303
|
+
let g = fe.empty;
|
|
37304
37304
|
for (let v = f.length - 1; v >= 0; v--)
|
|
37305
|
-
g =
|
|
37305
|
+
g = fe.from(f[v].copy(g));
|
|
37306
37306
|
let y = n.tr.step(new On(e.pos - f.length, e.pos + i.nodeSize, e.pos + m, e.pos + i.nodeSize - m, new we(g, f.length, 0), 0, !0));
|
|
37307
37307
|
t(y.scrollIntoView());
|
|
37308
37308
|
}
|
|
@@ -37387,9 +37387,9 @@ function lY(n, e = null) {
|
|
|
37387
37387
|
};
|
|
37388
37388
|
}
|
|
37389
37389
|
function uY(n, e, t, r, i) {
|
|
37390
|
-
let s =
|
|
37390
|
+
let s = fe.empty;
|
|
37391
37391
|
for (let c = t.length - 1; c >= 0; c--)
|
|
37392
|
-
s =
|
|
37392
|
+
s = fe.from(t[c].type.create(t[c].attrs, s));
|
|
37393
37393
|
n.step(new On(e.start - (r ? 2 : 0), e.end, e.start, e.end, new we(s, 0, 0), t.length, !0));
|
|
37394
37394
|
let o = 0;
|
|
37395
37395
|
for (let c = 0; c < t.length; c++)
|
|
@@ -37407,7 +37407,7 @@ function cY(n) {
|
|
|
37407
37407
|
}
|
|
37408
37408
|
function dY(n, e, t, r) {
|
|
37409
37409
|
let i = n.tr, s = r.end, o = r.$to.end(r.depth);
|
|
37410
|
-
s < o && (i.step(new On(s - 1, o, s, o, new we(
|
|
37410
|
+
s < o && (i.step(new On(s - 1, o, s, o, new we(fe.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Dg(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
|
|
37411
37411
|
const a = gd(r);
|
|
37412
37412
|
if (a == null)
|
|
37413
37413
|
return !1;
|
|
@@ -37423,10 +37423,10 @@ function fY(n, e, t) {
|
|
|
37423
37423
|
if (r.mapping.map(t.end) != t.start + s.nodeAfter.nodeSize)
|
|
37424
37424
|
return !1;
|
|
37425
37425
|
let a = t.startIndex == 0, l = t.endIndex == i.childCount, u = s.node(-1), c = s.index(-1);
|
|
37426
|
-
if (!u.canReplace(c + (a ? 0 : 1), c + 1, o.content.append(l ?
|
|
37426
|
+
if (!u.canReplace(c + (a ? 0 : 1), c + 1, o.content.append(l ? fe.empty : fe.from(i))))
|
|
37427
37427
|
return !1;
|
|
37428
37428
|
let d = s.pos, f = d + o.nodeSize;
|
|
37429
|
-
return r.step(new On(d - (a ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new we((a ?
|
|
37429
|
+
return r.step(new On(d - (a ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new we((a ? fe.empty : fe.from(i.copy(fe.empty))).append(l ? fe.empty : fe.from(i.copy(fe.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
|
|
37430
37430
|
}
|
|
37431
37431
|
function hY(n) {
|
|
37432
37432
|
return function(e, t) {
|
|
@@ -37440,7 +37440,7 @@ function hY(n) {
|
|
|
37440
37440
|
if (l.type != n)
|
|
37441
37441
|
return !1;
|
|
37442
37442
|
if (t) {
|
|
37443
|
-
let u = l.lastChild && l.lastChild.type == a.type, c =
|
|
37443
|
+
let u = l.lastChild && l.lastChild.type == a.type, c = fe.from(u ? n.create() : null), d = new we(fe.from(n.create(null, fe.from(a.type.create(null, c)))), u ? 3 : 1, 0), f = s.start, h = s.end;
|
|
37444
37444
|
t(e.tr.step(new On(f - (u ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
|
|
37445
37445
|
}
|
|
37446
37446
|
return !0;
|
|
@@ -38384,7 +38384,7 @@ function zg(n, e, t) {
|
|
|
38384
38384
|
...t
|
|
38385
38385
|
}, typeof n == "object" && n !== null)
|
|
38386
38386
|
try {
|
|
38387
|
-
return Array.isArray(n) && n.length > 0 ?
|
|
38387
|
+
return Array.isArray(n) && n.length > 0 ? fe.fromArray(n.map((r) => e.nodeFromJSON(r))) : e.nodeFromJSON(n);
|
|
38388
38388
|
} catch (r) {
|
|
38389
38389
|
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", r), zg("", e, t);
|
|
38390
38390
|
}
|
|
@@ -38848,12 +38848,12 @@ const BQ = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
38848
38848
|
if (a.depth === 2 || a.node(-3).type !== o || a.index(-2) !== a.node(-2).childCount - 1)
|
|
38849
38849
|
return !1;
|
|
38850
38850
|
if (r) {
|
|
38851
|
-
let y =
|
|
38851
|
+
let y = fe.empty;
|
|
38852
38852
|
const v = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
|
|
38853
38853
|
for (let A = a.depth - v; A >= a.depth - 3; A -= 1)
|
|
38854
|
-
y =
|
|
38854
|
+
y = fe.from(a.node(A).copy(y));
|
|
38855
38855
|
const b = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, S = eg(d, a.node().type.name, a.node().attrs), w = ((s = o.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(S)) || void 0;
|
|
38856
|
-
y = y.append(
|
|
38856
|
+
y = y.append(fe.from(o.createAndFill(null, w) || void 0));
|
|
38857
38857
|
const E = a.before(a.depth - (v - 1));
|
|
38858
38858
|
e.replace(E, a.after(-b), new we(y, 4 - v, 0));
|
|
38859
38859
|
let M = -1;
|
|
@@ -40393,15 +40393,15 @@ function HX(n) {
|
|
|
40393
40393
|
function UX(n) {
|
|
40394
40394
|
var e = n.state, t = n.options, r = n.name;
|
|
40395
40395
|
if (!e.modifiersData[r]._skip) {
|
|
40396
|
-
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !0 : o, l = t.fallbackPlacements, u = t.padding, c = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, m = h === void 0 ? !0 : h, g = t.allowedAutoPlacements, y = e.options.placement, v = ho(y), b = v === y, S = l || (b || !m ? [tg(y)] : HX(y)), w = [y].concat(S).reduce(function(
|
|
40397
|
-
return
|
|
40398
|
-
placement:
|
|
40396
|
+
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !0 : o, l = t.fallbackPlacements, u = t.padding, c = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, m = h === void 0 ? !0 : h, g = t.allowedAutoPlacements, y = e.options.placement, v = ho(y), b = v === y, S = l || (b || !m ? [tg(y)] : HX(y)), w = [y].concat(S).reduce(function(Y, Z) {
|
|
40397
|
+
return Y.concat(ho(Z) === v7 ? VX(e, {
|
|
40398
|
+
placement: Z,
|
|
40399
40399
|
boundary: c,
|
|
40400
40400
|
rootBoundary: d,
|
|
40401
40401
|
padding: u,
|
|
40402
40402
|
flipVariations: m,
|
|
40403
40403
|
allowedAutoPlacements: g
|
|
40404
|
-
}) :
|
|
40404
|
+
}) : Z);
|
|
40405
40405
|
}, []), E = e.rects.reference, M = e.rects.popper, A = /* @__PURE__ */ new Map(), N = !0, O = w[0], $ = 0; $ < w.length; $++) {
|
|
40406
40406
|
var R = w[$], W = ho(R), te = rd(R) === ed, re = [Gr, Xi].indexOf(W) >= 0, H = re ? "width" : "height", G = th(e, {
|
|
40407
40407
|
placement: R,
|
|
@@ -40411,9 +40411,9 @@ function UX(n) {
|
|
|
40411
40411
|
padding: u
|
|
40412
40412
|
}), V = re ? te ? Ji : qr : te ? Xi : Gr;
|
|
40413
40413
|
E[H] > M[H] && (V = tg(V));
|
|
40414
|
-
var
|
|
40415
|
-
if (s && ne.push(G[W] <= 0), a && ne.push(G[V] <= 0, G[
|
|
40416
|
-
return
|
|
40414
|
+
var K = tg(V), ne = [];
|
|
40415
|
+
if (s && ne.push(G[W] <= 0), a && ne.push(G[V] <= 0, G[K] <= 0), ne.every(function(Y) {
|
|
40416
|
+
return Y;
|
|
40417
40417
|
})) {
|
|
40418
40418
|
O = R, N = !1;
|
|
40419
40419
|
break;
|
|
@@ -40421,18 +40421,18 @@ function UX(n) {
|
|
|
40421
40421
|
A.set(R, ne);
|
|
40422
40422
|
}
|
|
40423
40423
|
if (N)
|
|
40424
|
-
for (var
|
|
40425
|
-
var
|
|
40426
|
-
var
|
|
40427
|
-
if (
|
|
40428
|
-
return
|
|
40424
|
+
for (var ue = m ? 3 : 1, ye = function(Z) {
|
|
40425
|
+
var q = w.find(function(ce) {
|
|
40426
|
+
var me = A.get(ce);
|
|
40427
|
+
if (me)
|
|
40428
|
+
return me.slice(0, Z).every(function(be) {
|
|
40429
40429
|
return be;
|
|
40430
40430
|
});
|
|
40431
40431
|
});
|
|
40432
|
-
if (
|
|
40433
|
-
return O =
|
|
40434
|
-
},
|
|
40435
|
-
var ee = ye(
|
|
40432
|
+
if (q)
|
|
40433
|
+
return O = q, "break";
|
|
40434
|
+
}, le = ue; le > 0; le--) {
|
|
40435
|
+
var ee = ye(le);
|
|
40436
40436
|
if (ee === "break") break;
|
|
40437
40437
|
}
|
|
40438
40438
|
e.placement !== O && (e.modifiersData[r]._skip = !0, e.placement = O, e.reset = !0);
|
|
@@ -40550,15 +40550,15 @@ function eJ(n) {
|
|
|
40550
40550
|
};
|
|
40551
40551
|
if (M) {
|
|
40552
40552
|
if (s) {
|
|
40553
|
-
var te, re = w === "y" ? Gr : qr, H = w === "y" ? Xi : Ji, G = w === "y" ? "height" : "width", V = M[w],
|
|
40553
|
+
var te, re = w === "y" ? Gr : qr, H = w === "y" ? Xi : Ji, G = w === "y" ? "height" : "width", V = M[w], K = V + y[re], ne = V - y[H], ue = h ? -N[G] / 2 : 0, ye = b === ed ? A[G] : N[G], le = b === ed ? -N[G] : -A[G], ee = e.elements.arrow, Y = h && ee ? w7(ee) : {
|
|
40554
40554
|
width: 0,
|
|
40555
40555
|
height: 0
|
|
40556
|
-
},
|
|
40556
|
+
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : CO(), q = Z[re], ce = Z[H], me = hf(0, A[G], Y[G]), be = S ? A[G] / 2 - ue - me - q - $.mainAxis : ye - me - q - $.mainAxis, Ce = S ? -A[G] / 2 + ue + me + ce + $.mainAxis : le + me + ce + $.mainAxis, Le = e.elements.arrow && Sp(e.elements.arrow), et = Le ? w === "y" ? Le.clientTop || 0 : Le.clientLeft || 0 : 0, $t = (te = R == null ? void 0 : R[w]) != null ? te : 0, Ln = V + be - $t - et, Gn = V + Ce - $t, yn = hf(h ? Vg(K, Ln) : K, V, h ? $u(ne, Gn) : ne);
|
|
40557
40557
|
M[w] = yn, W[w] = yn - V;
|
|
40558
40558
|
}
|
|
40559
40559
|
if (a) {
|
|
40560
|
-
var qn, rs = w === "x" ? Gr : qr, Ea = w === "x" ? Xi : Ji, cn = M[E], hr = E === "y" ? "height" : "width", Ns = cn + y[rs], Ii = cn - y[Ea], is = [Gr, qr].indexOf(v) !== -1, Mo = (qn = R == null ? void 0 : R[E]) != null ? qn : 0, St = is ? Ns : cn - A[hr] - N[hr] - Mo + $.altAxis, oe = is ? cn + A[hr] + N[hr] - Mo - $.altAxis : Ii,
|
|
40561
|
-
M[E] =
|
|
40560
|
+
var qn, rs = w === "x" ? Gr : qr, Ea = w === "x" ? Xi : Ji, cn = M[E], hr = E === "y" ? "height" : "width", Ns = cn + y[rs], Ii = cn - y[Ea], is = [Gr, qr].indexOf(v) !== -1, Mo = (qn = R == null ? void 0 : R[E]) != null ? qn : 0, St = is ? Ns : cn - A[hr] - N[hr] - Mo + $.altAxis, oe = is ? cn + A[hr] + N[hr] - Mo - $.altAxis : Ii, de = h && is ? kX(St, cn, oe) : hf(h ? St : Ns, cn, h ? oe : Ii);
|
|
40561
|
+
M[E] = de, W[E] = de - cn;
|
|
40562
40562
|
}
|
|
40563
40563
|
e.modifiersData[r] = W;
|
|
40564
40564
|
}
|
|
@@ -41148,7 +41148,7 @@ function jJ(n, e) {
|
|
|
41148
41148
|
// methods
|
|
41149
41149
|
clearDelayTimeouts: St,
|
|
41150
41150
|
setProps: oe,
|
|
41151
|
-
setContent:
|
|
41151
|
+
setContent: de,
|
|
41152
41152
|
show: it,
|
|
41153
41153
|
hide: Ft,
|
|
41154
41154
|
hideWithInteractivity: Ps,
|
|
@@ -41164,7 +41164,7 @@ function jJ(n, e) {
|
|
|
41164
41164
|
var N = b.map(function(se) {
|
|
41165
41165
|
return se.fn(w);
|
|
41166
41166
|
}), O = n.hasAttribute("aria-expanded");
|
|
41167
|
-
return Le(),
|
|
41167
|
+
return Le(), ue(), V(), K("onCreate", [w]), t.showOnCreate && Ns(), M.addEventListener("mouseenter", function() {
|
|
41168
41168
|
w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
|
|
41169
41169
|
}), M.addEventListener("mouseleave", function() {
|
|
41170
41170
|
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 && re().addEventListener("mousemove", m);
|
|
@@ -41196,7 +41196,7 @@ function jJ(n, e) {
|
|
|
41196
41196
|
function V(se) {
|
|
41197
41197
|
se === void 0 && (se = !1), M.style.pointerEvents = w.props.interactive && !se ? "" : "none", M.style.zIndex = "" + w.props.zIndex;
|
|
41198
41198
|
}
|
|
41199
|
-
function
|
|
41199
|
+
function K(se, Ee, Fe) {
|
|
41200
41200
|
if (Fe === void 0 && (Fe = !0), N.forEach(function(st) {
|
|
41201
41201
|
st[se] && st[se].apply(st, Ee);
|
|
41202
41202
|
}), Fe) {
|
|
@@ -41219,7 +41219,7 @@ function jJ(n, e) {
|
|
|
41219
41219
|
});
|
|
41220
41220
|
}
|
|
41221
41221
|
}
|
|
41222
|
-
function
|
|
41222
|
+
function ue() {
|
|
41223
41223
|
if (!(O || !w.props.aria.expanded)) {
|
|
41224
41224
|
var se = Sc(w.props.triggerTarget || n);
|
|
41225
41225
|
se.forEach(function(Ee) {
|
|
@@ -41232,7 +41232,7 @@ function jJ(n, e) {
|
|
|
41232
41232
|
return se !== m;
|
|
41233
41233
|
});
|
|
41234
41234
|
}
|
|
41235
|
-
function
|
|
41235
|
+
function le(se) {
|
|
41236
41236
|
if (!(oo.isTouch && (l || se.type === "mousedown"))) {
|
|
41237
41237
|
var Ee = se.composedPath && se.composedPath()[0] || se.target;
|
|
41238
41238
|
if (!(w.props.interactive && sS(M, Ee))) {
|
|
@@ -41242,33 +41242,33 @@ function jJ(n, e) {
|
|
|
41242
41242
|
if (oo.isTouch || w.state.isVisible && w.props.trigger.indexOf("click") >= 0)
|
|
41243
41243
|
return;
|
|
41244
41244
|
} else
|
|
41245
|
-
|
|
41245
|
+
K("onClickOutside", [w, se]);
|
|
41246
41246
|
w.props.hideOnClick === !0 && (w.clearDelayTimeouts(), w.hide(), a = !0, setTimeout(function() {
|
|
41247
41247
|
a = !1;
|
|
41248
|
-
}), w.state.isMounted ||
|
|
41248
|
+
}), w.state.isMounted || q());
|
|
41249
41249
|
}
|
|
41250
41250
|
}
|
|
41251
41251
|
}
|
|
41252
41252
|
function ee() {
|
|
41253
41253
|
l = !0;
|
|
41254
41254
|
}
|
|
41255
|
-
function
|
|
41255
|
+
function Y() {
|
|
41256
41256
|
l = !1;
|
|
41257
41257
|
}
|
|
41258
|
-
function
|
|
41258
|
+
function Z() {
|
|
41259
41259
|
var se = re();
|
|
41260
|
-
se.addEventListener("mousedown",
|
|
41260
|
+
se.addEventListener("mousedown", le, !0), se.addEventListener("touchend", le, p0), se.addEventListener("touchstart", Y, p0), se.addEventListener("touchmove", ee, p0);
|
|
41261
41261
|
}
|
|
41262
|
-
function
|
|
41262
|
+
function q() {
|
|
41263
41263
|
var se = re();
|
|
41264
|
-
se.removeEventListener("mousedown",
|
|
41264
|
+
se.removeEventListener("mousedown", le, !0), se.removeEventListener("touchend", le, p0), se.removeEventListener("touchstart", Y, p0), se.removeEventListener("touchmove", ee, p0);
|
|
41265
41265
|
}
|
|
41266
|
-
function
|
|
41266
|
+
function ce(se, Ee) {
|
|
41267
41267
|
be(se, function() {
|
|
41268
41268
|
!w.state.isVisible && M.parentNode && M.parentNode.contains(M) && Ee();
|
|
41269
41269
|
});
|
|
41270
41270
|
}
|
|
41271
|
-
function
|
|
41271
|
+
function me(se, Ee) {
|
|
41272
41272
|
be(se, Ee);
|
|
41273
41273
|
}
|
|
41274
41274
|
function be(se, Ee) {
|
|
@@ -41322,7 +41322,7 @@ function jJ(n, e) {
|
|
|
41322
41322
|
var Ee, Fe = !1;
|
|
41323
41323
|
if (!(!w.state.isEnabled || qn(se) || a)) {
|
|
41324
41324
|
var yt = ((Ee = c) == null ? void 0 : Ee.type) === "focus";
|
|
41325
|
-
c = se, g = se.currentTarget,
|
|
41325
|
+
c = se, g = se.currentTarget, ue(), !w.state.isVisible && CJ(se) && tm.forEach(function(st) {
|
|
41326
41326
|
return st(se);
|
|
41327
41327
|
}), se.type === "click" && (w.props.trigger.indexOf("mouseenter") < 0 || o) && w.props.hideOnClick !== !1 && w.state.isVisible ? Fe = !0 : Ns(se), se.type === "click" && (o = !Fe), Fe && !yt && Ii(se);
|
|
41328
41328
|
}
|
|
@@ -41431,15 +41431,15 @@ function jJ(n, e) {
|
|
|
41431
41431
|
return Hg(M.querySelectorAll("[data-tippy-root]"));
|
|
41432
41432
|
}
|
|
41433
41433
|
function Ns(se) {
|
|
41434
|
-
w.clearDelayTimeouts(), se &&
|
|
41434
|
+
w.clearDelayTimeouts(), se && K("onTrigger", [w, se]), Z();
|
|
41435
41435
|
var Ee = G(!0), Fe = $(), yt = Fe[0], st = Fe[1];
|
|
41436
41436
|
oo.isTouch && yt === "hold" && st && (Ee = st), Ee ? r = setTimeout(function() {
|
|
41437
41437
|
w.show();
|
|
41438
41438
|
}, Ee) : w.show();
|
|
41439
41439
|
}
|
|
41440
41440
|
function Ii(se) {
|
|
41441
|
-
if (w.clearDelayTimeouts(),
|
|
41442
|
-
|
|
41441
|
+
if (w.clearDelayTimeouts(), K("onUntrigger", [w, se]), !w.state.isVisible) {
|
|
41442
|
+
q();
|
|
41443
41443
|
return;
|
|
41444
41444
|
}
|
|
41445
41445
|
if (!(w.props.trigger.indexOf("mouseenter") >= 0 && w.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(se.type) >= 0 && o)) {
|
|
@@ -41462,18 +41462,18 @@ function jJ(n, e) {
|
|
|
41462
41462
|
}
|
|
41463
41463
|
function oe(se) {
|
|
41464
41464
|
if (process.env.NODE_ENV !== "production" && No(w.state.isDestroyed, cc("setProps")), !w.state.isDestroyed) {
|
|
41465
|
-
|
|
41465
|
+
K("onBeforeUpdate", [w, se]), et();
|
|
41466
41466
|
var Ee = w.props, Fe = lS(n, Object.assign({}, Ee, rS(se), {
|
|
41467
41467
|
ignoreAttributes: !0
|
|
41468
41468
|
}));
|
|
41469
41469
|
w.props = Fe, Le(), Ee.interactiveDebounce !== Fe.interactiveDebounce && (ye(), m = tS(Ln, Fe.interactiveDebounce)), Ee.triggerTarget && !Fe.triggerTarget ? Sc(Ee.triggerTarget).forEach(function(yt) {
|
|
41470
41470
|
yt.removeAttribute("aria-expanded");
|
|
41471
|
-
}) : Fe.triggerTarget && n.removeAttribute("aria-expanded"),
|
|
41471
|
+
}) : Fe.triggerTarget && n.removeAttribute("aria-expanded"), ue(), V(), A && A(Ee, Fe), w.popperInstance && (rs(), hr().forEach(function(yt) {
|
|
41472
41472
|
requestAnimationFrame(yt._tippy.popperInstance.forceUpdate);
|
|
41473
|
-
})),
|
|
41473
|
+
})), K("onAfterUpdate", [w, se]);
|
|
41474
41474
|
}
|
|
41475
41475
|
}
|
|
41476
|
-
function
|
|
41476
|
+
function de(se) {
|
|
41477
41477
|
w.setProps({
|
|
41478
41478
|
content: se
|
|
41479
41479
|
});
|
|
@@ -41481,8 +41481,8 @@ function jJ(n, e) {
|
|
|
41481
41481
|
function it() {
|
|
41482
41482
|
process.env.NODE_ENV !== "production" && No(w.state.isDestroyed, cc("show"));
|
|
41483
41483
|
var se = w.state.isVisible, Ee = w.state.isDestroyed, Fe = !w.state.isEnabled, yt = oo.isTouch && !w.props.touch, st = By(w.props.duration, 0, vi.duration);
|
|
41484
|
-
if (!(se || Ee || Fe || yt) && !te().hasAttribute("disabled") && (
|
|
41485
|
-
if (w.state.isVisible = !0, W() && (M.style.visibility = "visible"), V(),
|
|
41484
|
+
if (!(se || Ee || Fe || yt) && !te().hasAttribute("disabled") && (K("onShow", [w], !1), w.props.onShow(w) !== !1)) {
|
|
41485
|
+
if (w.state.isVisible = !0, W() && (M.style.visibility = "visible"), V(), Z(), w.state.isMounted || (M.style.transition = "none"), W()) {
|
|
41486
41486
|
var pr = H(), xi = pr.box, rc = pr.content;
|
|
41487
41487
|
jy([xi, rc], 0);
|
|
41488
41488
|
}
|
|
@@ -41493,8 +41493,8 @@ function jJ(n, e) {
|
|
|
41493
41493
|
var F5 = H(), Op = F5.box, ic = F5.content;
|
|
41494
41494
|
jy([Op, ic], st), iS([Op, ic], "visible");
|
|
41495
41495
|
}
|
|
41496
|
-
ne(),
|
|
41497
|
-
w.state.isShown = !0,
|
|
41496
|
+
ne(), ue(), nS(Vy, w), (Jl = w.popperInstance) == null || Jl.forceUpdate(), K("onMount", [w]), w.props.animation && W() && me(st, function() {
|
|
41497
|
+
w.state.isShown = !0, K("onShown", [w]);
|
|
41498
41498
|
});
|
|
41499
41499
|
}
|
|
41500
41500
|
}, cn();
|
|
@@ -41503,12 +41503,12 @@ function jJ(n, e) {
|
|
|
41503
41503
|
function Ft() {
|
|
41504
41504
|
process.env.NODE_ENV !== "production" && No(w.state.isDestroyed, cc("hide"));
|
|
41505
41505
|
var se = !w.state.isVisible, Ee = w.state.isDestroyed, Fe = !w.state.isEnabled, yt = By(w.props.duration, 1, vi.duration);
|
|
41506
|
-
if (!(se || Ee || Fe) && (
|
|
41507
|
-
if (w.state.isVisible = !1, w.state.isShown = !1, u = !1, o = !1, W() && (M.style.visibility = "hidden"), ye(),
|
|
41506
|
+
if (!(se || Ee || Fe) && (K("onHide", [w], !1), w.props.onHide(w) !== !1)) {
|
|
41507
|
+
if (w.state.isVisible = !1, w.state.isShown = !1, u = !1, o = !1, W() && (M.style.visibility = "hidden"), ye(), q(), V(!0), W()) {
|
|
41508
41508
|
var st = H(), pr = st.box, xi = st.content;
|
|
41509
41509
|
w.props.animation && (jy([pr, xi], yt), iS([pr, xi], "hidden"));
|
|
41510
41510
|
}
|
|
41511
|
-
ne(),
|
|
41511
|
+
ne(), ue(), w.props.animation ? W() && ce(yt, w.unmount) : w.unmount();
|
|
41512
41512
|
}
|
|
41513
41513
|
}
|
|
41514
41514
|
function Ps(se) {
|
|
@@ -41519,10 +41519,10 @@ function jJ(n, e) {
|
|
|
41519
41519
|
se._tippy.unmount();
|
|
41520
41520
|
}), M.parentNode && M.parentNode.removeChild(M), Vy = Vy.filter(function(se) {
|
|
41521
41521
|
return se !== w;
|
|
41522
|
-
}), w.state.isMounted = !1,
|
|
41522
|
+
}), w.state.isMounted = !1, K("onHidden", [w]));
|
|
41523
41523
|
}
|
|
41524
41524
|
function Ia() {
|
|
41525
|
-
process.env.NODE_ENV !== "production" && No(w.state.isDestroyed, cc("destroy")), !w.state.isDestroyed && (w.clearDelayTimeouts(), w.unmount(), et(), delete n._tippy, w.state.isDestroyed = !0,
|
|
41525
|
+
process.env.NODE_ENV !== "production" && No(w.state.isDestroyed, cc("destroy")), !w.state.isDestroyed && (w.clearDelayTimeouts(), w.unmount(), et(), delete n._tippy, w.state.isDestroyed = !0, K("onDestroy", [w]));
|
|
41526
41526
|
}
|
|
41527
41527
|
}
|
|
41528
41528
|
function yd(n, e) {
|
|
@@ -54730,15 +54730,15 @@ function ote(n) {
|
|
|
54730
54730
|
function ate(n) {
|
|
54731
54731
|
var e = n.state, t = n.options, r = n.name;
|
|
54732
54732
|
if (!e.modifiersData[r]._skip) {
|
|
54733
|
-
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !0 : o, l = t.fallbackPlacements, u = t.padding, c = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, m = h === void 0 ? !0 : h, g = t.allowedAutoPlacements, y = e.options.placement, v = po(y), b = v === y, S = l || (b || !m ? [ng(y)] : ote(y)), w = [y].concat(S).reduce(function(
|
|
54734
|
-
return
|
|
54735
|
-
placement:
|
|
54733
|
+
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !0 : o, l = t.fallbackPlacements, u = t.padding, c = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, m = h === void 0 ? !0 : h, g = t.allowedAutoPlacements, y = e.options.placement, v = po(y), b = v === y, S = l || (b || !m ? [ng(y)] : ote(y)), w = [y].concat(S).reduce(function(Y, Z) {
|
|
54734
|
+
return Y.concat(po(Z) === O7 ? ste(e, {
|
|
54735
|
+
placement: Z,
|
|
54736
54736
|
boundary: c,
|
|
54737
54737
|
rootBoundary: d,
|
|
54738
54738
|
padding: u,
|
|
54739
54739
|
flipVariations: m,
|
|
54740
54740
|
allowedAutoPlacements: g
|
|
54741
|
-
}) :
|
|
54741
|
+
}) : Z);
|
|
54742
54742
|
}, []), E = e.rects.reference, M = e.rects.popper, A = /* @__PURE__ */ new Map(), N = !0, O = w[0], $ = 0; $ < w.length; $++) {
|
|
54743
54743
|
var R = w[$], W = po(R), te = ud(R) === sd, re = [Kr, es].indexOf(W) >= 0, H = re ? "width" : "height", G = oh(e, {
|
|
54744
54744
|
placement: R,
|
|
@@ -54748,9 +54748,9 @@ function ate(n) {
|
|
|
54748
54748
|
padding: u
|
|
54749
54749
|
}), V = re ? te ? ts : Yr : te ? es : Kr;
|
|
54750
54750
|
E[H] > M[H] && (V = ng(V));
|
|
54751
|
-
var
|
|
54752
|
-
if (s && ne.push(G[W] <= 0), a && ne.push(G[V] <= 0, G[
|
|
54753
|
-
return
|
|
54751
|
+
var K = ng(V), ne = [];
|
|
54752
|
+
if (s && ne.push(G[W] <= 0), a && ne.push(G[V] <= 0, G[K] <= 0), ne.every(function(Y) {
|
|
54753
|
+
return Y;
|
|
54754
54754
|
})) {
|
|
54755
54755
|
O = R, N = !1;
|
|
54756
54756
|
break;
|
|
@@ -54758,18 +54758,18 @@ function ate(n) {
|
|
|
54758
54758
|
A.set(R, ne);
|
|
54759
54759
|
}
|
|
54760
54760
|
if (N)
|
|
54761
|
-
for (var
|
|
54762
|
-
var
|
|
54763
|
-
var
|
|
54764
|
-
if (
|
|
54765
|
-
return
|
|
54761
|
+
for (var ue = m ? 3 : 1, ye = function(Z) {
|
|
54762
|
+
var q = w.find(function(ce) {
|
|
54763
|
+
var me = A.get(ce);
|
|
54764
|
+
if (me)
|
|
54765
|
+
return me.slice(0, Z).every(function(be) {
|
|
54766
54766
|
return be;
|
|
54767
54767
|
});
|
|
54768
54768
|
});
|
|
54769
|
-
if (
|
|
54770
|
-
return O =
|
|
54771
|
-
},
|
|
54772
|
-
var ee = ye(
|
|
54769
|
+
if (q)
|
|
54770
|
+
return O = q, "break";
|
|
54771
|
+
}, le = ue; le > 0; le--) {
|
|
54772
|
+
var ee = ye(le);
|
|
54773
54773
|
if (ee === "break")
|
|
54774
54774
|
break;
|
|
54775
54775
|
}
|
|
@@ -54888,15 +54888,15 @@ function yte(n) {
|
|
|
54888
54888
|
};
|
|
54889
54889
|
if (M) {
|
|
54890
54890
|
if (s) {
|
|
54891
|
-
var te, re = w === "y" ? Kr : Yr, H = w === "y" ? es : ts, G = w === "y" ? "height" : "width", V = M[w],
|
|
54891
|
+
var te, re = w === "y" ? Kr : Yr, H = w === "y" ? es : ts, G = w === "y" ? "height" : "width", V = M[w], K = V + y[re], ne = V - y[H], ue = h ? -N[G] / 2 : 0, ye = b === sd ? A[G] : N[G], le = b === sd ? -N[G] : -A[G], ee = e.elements.arrow, Y = h && ee ? D7(ee) : {
|
|
54892
54892
|
width: 0,
|
|
54893
54893
|
height: 0
|
|
54894
|
-
},
|
|
54894
|
+
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : qO(), q = Z[re], ce = Z[H], me = gf(0, A[G], Y[G]), be = S ? A[G] / 2 - ue - me - q - $.mainAxis : ye - me - q - $.mainAxis, Ce = S ? -A[G] / 2 + ue + me + ce + $.mainAxis : le + me + ce + $.mainAxis, Le = e.elements.arrow && kp(e.elements.arrow), et = Le ? w === "y" ? Le.clientTop || 0 : Le.clientLeft || 0 : 0, $t = (te = R == null ? void 0 : R[w]) != null ? te : 0, Ln = V + be - $t - et, Gn = V + Ce - $t, yn = gf(h ? Wg(K, Ln) : K, V, h ? Fu(ne, Gn) : ne);
|
|
54895
54895
|
M[w] = yn, W[w] = yn - V;
|
|
54896
54896
|
}
|
|
54897
54897
|
if (a) {
|
|
54898
|
-
var qn, rs = w === "x" ? Kr : Yr, Ea = w === "x" ? es : ts, cn = M[E], hr = E === "y" ? "height" : "width", Ns = cn + y[rs], Ii = cn - y[Ea], is = [Kr, Yr].indexOf(v) !== -1, Mo = (qn = R == null ? void 0 : R[E]) != null ? qn : 0, St = is ? Ns : cn - A[hr] - N[hr] - Mo + $.altAxis, oe = is ? cn + A[hr] + N[hr] - Mo - $.altAxis : Ii,
|
|
54899
|
-
M[E] =
|
|
54898
|
+
var qn, rs = w === "x" ? Kr : Yr, Ea = w === "x" ? es : ts, cn = M[E], hr = E === "y" ? "height" : "width", Ns = cn + y[rs], Ii = cn - y[Ea], is = [Kr, Yr].indexOf(v) !== -1, Mo = (qn = R == null ? void 0 : R[E]) != null ? qn : 0, St = is ? Ns : cn - A[hr] - N[hr] - Mo + $.altAxis, oe = is ? cn + A[hr] + N[hr] - Mo - $.altAxis : Ii, de = h && is ? zee(St, cn, oe) : gf(h ? St : Ns, cn, h ? oe : Ii);
|
|
54899
|
+
M[E] = de, W[E] = de - cn;
|
|
54900
54900
|
}
|
|
54901
54901
|
e.modifiersData[r] = W;
|
|
54902
54902
|
}
|
|
@@ -56339,9 +56339,9 @@ function Yne(n, e) {
|
|
|
56339
56339
|
let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
|
|
56340
56340
|
if (!r)
|
|
56341
56341
|
return !1;
|
|
56342
|
-
let i =
|
|
56342
|
+
let i = fe.empty;
|
|
56343
56343
|
for (let o = r.length - 1; o >= 0; o--)
|
|
56344
|
-
i =
|
|
56344
|
+
i = fe.from(r[o].createAndFill(null, i));
|
|
56345
56345
|
let s = n.state.tr.replace(t.pos, t.pos, new we(i, 0, 0));
|
|
56346
56346
|
return s.setSelection(Ve.near(s.doc.resolve(t.pos + 1))), n.dispatch(s), !1;
|
|
56347
56347
|
}
|
|
@@ -57871,8 +57871,8 @@ function jre(n) {
|
|
|
57871
57871
|
pe(A, re, G), pe(G, H, M);
|
|
57872
57872
|
const V = Pi(lm);
|
|
57873
57873
|
qe(G, t, V);
|
|
57874
|
-
const
|
|
57875
|
-
qe(G, r), qe(V, t, V), qe(V, r,
|
|
57874
|
+
const K = Pi();
|
|
57875
|
+
qe(G, r), qe(V, t, V), qe(V, r, K), qe(K, t, V), qe(K, r, K), pe(V, H, M), pe(K, H, M);
|
|
57876
57876
|
}
|
|
57877
57877
|
return pe(s, ah, S), pe(s, F7, Bre), {
|
|
57878
57878
|
start: s,
|
|
@@ -59891,14 +59891,14 @@ const lse = /* @__PURE__ */ He(nse, [["render", ase]]), use = xe({
|
|
|
59891
59891
|
}, N = () => {
|
|
59892
59892
|
a.value = !1;
|
|
59893
59893
|
}, O = () => {
|
|
59894
|
-
var V,
|
|
59895
|
-
(
|
|
59894
|
+
var V, K;
|
|
59895
|
+
(K = (V = d.value) == null ? void 0 : V.fileUpload) == null || K.choose();
|
|
59896
59896
|
}, $ = (V) => {
|
|
59897
59897
|
G.value.chain().focus().insertContent(V).run(), s.value.$el.click();
|
|
59898
59898
|
}, R = async () => {
|
|
59899
59899
|
if (await En(), u.value) {
|
|
59900
|
-
const V = m.value,
|
|
59901
|
-
m.value = g.value -
|
|
59900
|
+
const V = m.value, K = (visualViewport == null ? void 0 : visualViewport.height) || window.innerHeight;
|
|
59901
|
+
m.value = g.value - K > 0, V !== m.value && (u.value = m.value, e("keyboard-open", m.value));
|
|
59902
59902
|
}
|
|
59903
59903
|
}, W = () => {
|
|
59904
59904
|
u.value && n.expands && (m.value = !1, e("keyboard-open", m.value)), u.value = !1;
|
|
@@ -61474,7 +61474,7 @@ const coe = /* @__PURE__ */ He(ooe, [["render", uoe], ["__scopeId", "data-v-f327
|
|
|
61474
61474
|
shimmer: Le % 2 ? "bg-gray-10" : "bg-gray-30"
|
|
61475
61475
|
}), Le++;
|
|
61476
61476
|
}), be;
|
|
61477
|
-
}),
|
|
61477
|
+
}), K = Q(() => {
|
|
61478
61478
|
var be;
|
|
61479
61479
|
return Math.ceil(((be = n.modelValue) == null ? void 0 : be.length) / n.itemsPerPage) || 1;
|
|
61480
61480
|
}), ne = () => {
|
|
@@ -61485,40 +61485,40 @@ const coe = /* @__PURE__ */ He(ooe, [["render", uoe], ["__scopeId", "data-v-f327
|
|
|
61485
61485
|
S.value < et ? be = (S.value - (o.value.offsetTop + Le)) / 2 : be = (o.value.clientHeight - Le) / 2;
|
|
61486
61486
|
}
|
|
61487
61487
|
w.value = be;
|
|
61488
|
-
},
|
|
61488
|
+
}, ue = () => {
|
|
61489
61489
|
u.value = s.value.scrollLeft, c.value = s.value.scrollLeft;
|
|
61490
61490
|
}, ye = () => {
|
|
61491
61491
|
c.value = i.value.scrollLeft, u.value = i.value.scrollLeft;
|
|
61492
|
-
},
|
|
61492
|
+
}, le = async () => {
|
|
61493
61493
|
const be = d.value + S.value - n.fixedTopOffset, Ce = b.value + g.value;
|
|
61494
|
-
be > Ce - 400 && M.value <
|
|
61494
|
+
be > Ce - 400 && M.value < K.value && M.value++, ne();
|
|
61495
61495
|
}, ee = (be, Ce, Le) => {
|
|
61496
61496
|
const et = be.scrollLeft, $t = Ce - et, Ln = performance.now(), Gn = () => {
|
|
61497
61497
|
const qn = performance.now() - Ln, rs = Math.min(qn / Le, 1);
|
|
61498
61498
|
be.scrollLeft = et + $t * rs, rs < 1 && requestAnimationFrame(Gn);
|
|
61499
61499
|
};
|
|
61500
61500
|
requestAnimationFrame(Gn);
|
|
61501
|
-
},
|
|
61501
|
+
}, Y = () => {
|
|
61502
61502
|
ee(
|
|
61503
61503
|
s.value,
|
|
61504
61504
|
u.value - n.leftScrollAmount,
|
|
61505
61505
|
250
|
|
61506
61506
|
);
|
|
61507
|
-
},
|
|
61507
|
+
}, Z = () => {
|
|
61508
61508
|
ee(
|
|
61509
61509
|
s.value,
|
|
61510
61510
|
u.value + n.leftScrollAmount,
|
|
61511
61511
|
250
|
|
61512
61512
|
);
|
|
61513
|
-
},
|
|
61513
|
+
}, q = (be, Ce) => {
|
|
61514
61514
|
const Le = A.value.indexOf(Ce);
|
|
61515
61515
|
Le < 0 && be && (A.value.push(Ce), e("select:row", Ce)), Le >= 0 && !be && (A.value.splice(Le, 1), e("deselect:row", Ce)), e("update:selected", A.value);
|
|
61516
|
-
},
|
|
61516
|
+
}, ce = (be) => {
|
|
61517
61517
|
const Ce = [];
|
|
61518
61518
|
be && n.modelValue.forEach((Le) => {
|
|
61519
61519
|
Ce.push(Le.id);
|
|
61520
61520
|
}), A.value = Ce, e("update:selected", A.value);
|
|
61521
|
-
},
|
|
61521
|
+
}, me = (be) => {
|
|
61522
61522
|
const Ce = be.key, Le = n.orderBy === "" || n.sortBy !== Ce ? "asc" : n.orderBy === "asc" ? "desc" : "";
|
|
61523
61523
|
e("update:sort-by", Ce), e("update:order-by", Le);
|
|
61524
61524
|
};
|
|
@@ -61535,7 +61535,7 @@ const coe = /* @__PURE__ */ He(ooe, [["render", uoe], ["__scopeId", "data-v-f327
|
|
|
61535
61535
|
)) == null ? void 0 : $t.clientWidth, window.addEventListener("resize", async () => {
|
|
61536
61536
|
var Ln;
|
|
61537
61537
|
l.value = (Ln = s.value) == null ? void 0 : Ln.scrollWidth, S.value = window.innerHeight, ne(), await En();
|
|
61538
|
-
}), window.addEventListener("scroll",
|
|
61538
|
+
}), window.addEventListener("scroll", le), s.value.addEventListener("scroll", ue), i.value.addEventListener("scroll", ye);
|
|
61539
61539
|
}), Qr(() => {
|
|
61540
61540
|
window.removeEventListener("resize", async () => await En()), window.removeEventListener("scroll", async () => await En());
|
|
61541
61541
|
}), {
|
|
@@ -61576,17 +61576,17 @@ const coe = /* @__PURE__ */ He(ooe, [["render", uoe], ["__scopeId", "data-v-f327
|
|
|
61576
61576
|
showLeftScrollButton: H,
|
|
61577
61577
|
showRightScrollButton: G,
|
|
61578
61578
|
skeletonData: V,
|
|
61579
|
-
totalPages:
|
|
61579
|
+
totalPages: K,
|
|
61580
61580
|
// Methods
|
|
61581
|
-
handleScroll:
|
|
61581
|
+
handleScroll: ue,
|
|
61582
61582
|
handleFixedScroll: ye,
|
|
61583
|
-
onClickColumnHeader:
|
|
61584
|
-
onUpdateCheckbox:
|
|
61585
|
-
onUpdateAllCheckboxes:
|
|
61583
|
+
onClickColumnHeader: me,
|
|
61584
|
+
onUpdateCheckbox: q,
|
|
61585
|
+
onUpdateAllCheckboxes: ce,
|
|
61586
61586
|
getScrollButtonTop: ne,
|
|
61587
61587
|
smoothScroll: ee,
|
|
61588
|
-
triggerScrollLeft:
|
|
61589
|
-
triggerScrollRight:
|
|
61588
|
+
triggerScrollLeft: Y,
|
|
61589
|
+
triggerScrollRight: Z
|
|
61590
61590
|
};
|
|
61591
61591
|
}
|
|
61592
61592
|
}), foe = ["id"], hoe = {
|
|
@@ -62808,7 +62808,7 @@ function Rae(n, {
|
|
|
62808
62808
|
type: "button",
|
|
62809
62809
|
class: `${N}-btn ${N}-datepicker-btn-confirm`,
|
|
62810
62810
|
onClick: S
|
|
62811
|
-
}, [r.confirmText])]),
|
|
62811
|
+
}, [r.confirmText])]), K = (A = e.content) == null ? void 0 : A.call(e, H), ne = (e.sidebar || r.shortcuts) && E(H);
|
|
62812
62812
|
return L("div", {
|
|
62813
62813
|
ref: s,
|
|
62814
62814
|
class: {
|
|
@@ -62835,7 +62835,7 @@ function Rae(n, {
|
|
|
62835
62835
|
}, {
|
|
62836
62836
|
default: () => [ne, L("div", {
|
|
62837
62837
|
class: `${N}-datepicker-content`
|
|
62838
|
-
}, [G,
|
|
62838
|
+
}, [G, K, V])]
|
|
62839
62839
|
})]);
|
|
62840
62840
|
};
|
|
62841
62841
|
}
|
|
@@ -62924,7 +62924,7 @@ function Bae({
|
|
|
62924
62924
|
}), N = (H) => {
|
|
62925
62925
|
a(H);
|
|
62926
62926
|
}, O = (H) => {
|
|
62927
|
-
const G = H.getAttribute("data-index"), [V,
|
|
62927
|
+
const G = H.getAttribute("data-index"), [V, K] = G.split(",").map((ue) => parseInt(ue, 10)), ne = M[V][K];
|
|
62928
62928
|
return new Date(ne);
|
|
62929
62929
|
}, $ = (H) => {
|
|
62930
62930
|
o(O(H.currentTarget));
|
|
@@ -62968,11 +62968,11 @@ function Bae({
|
|
|
62968
62968
|
class: `${d}-week-number`,
|
|
62969
62969
|
"data-index": `${G},0`,
|
|
62970
62970
|
onClick: $
|
|
62971
|
-
}, [L("div", null, [f(H[0])])]), H.map((V,
|
|
62972
|
-
key:
|
|
62971
|
+
}, [L("div", null, [f(H[0])])]), H.map((V, K) => L("td", {
|
|
62972
|
+
key: K,
|
|
62973
62973
|
class: ["cell", s(V)],
|
|
62974
62974
|
title: A(V, r),
|
|
62975
|
-
"data-index": `${G},${
|
|
62975
|
+
"data-index": `${G},${K}`,
|
|
62976
62976
|
onClick: $,
|
|
62977
62977
|
onMouseenter: R,
|
|
62978
62978
|
onMouseleave: W
|
|
@@ -77943,17 +77943,17 @@ const hfe = xe({
|
|
|
77943
77943
|
// orderBy handled by PrimeVue
|
|
77944
77944
|
[]
|
|
77945
77945
|
)), v = Q(() => t.value === "desktop"), b = Q(() => {
|
|
77946
|
-
var
|
|
77947
|
-
const ne = !n.loading && ((
|
|
77946
|
+
var ue;
|
|
77947
|
+
const ne = !n.loading && ((ue = r.value) == null ? void 0 : ue.empty);
|
|
77948
77948
|
return e("is-empty", ne), ne;
|
|
77949
77949
|
}), S = Q(() => {
|
|
77950
|
-
const ne = [],
|
|
77950
|
+
const ne = [], ue = {};
|
|
77951
77951
|
let ye = 0;
|
|
77952
|
-
return n.columns.forEach((
|
|
77953
|
-
le
|
|
77952
|
+
return n.columns.forEach((le) => {
|
|
77953
|
+
ue[le.key] = "";
|
|
77954
77954
|
}), [...Array(n.skeletonRows)].forEach(() => {
|
|
77955
77955
|
ne.push({
|
|
77956
|
-
...
|
|
77956
|
+
...ue,
|
|
77957
77957
|
shimmer: ye % 2 ? "bg-gray-10" : "bg-gray-30"
|
|
77958
77958
|
}), ye++;
|
|
77959
77959
|
}), ne;
|
|
@@ -77964,140 +77964,140 @@ const hfe = xe({
|
|
|
77964
77964
|
}, M = (ne) => {
|
|
77965
77965
|
n.rowUnselect(ne);
|
|
77966
77966
|
}, A = () => {
|
|
77967
|
-
var
|
|
77968
|
-
const ne = m.value.offsetTop - n.fixedTopOffset,
|
|
77967
|
+
var le, ee;
|
|
77968
|
+
const ne = m.value.offsetTop - n.fixedTopOffset, ue = document.querySelector('div[data-pc-section="header"]'), ye = (le = d.value) == null ? void 0 : le.querySelector("thead");
|
|
77969
77969
|
if (s.value = !!n.fixedTopOffset && m.value && window.scrollY >= ne, s.value)
|
|
77970
|
-
if (
|
|
77970
|
+
if (ue.style.top = n.fixedTopOffset + "px", i.value)
|
|
77971
77971
|
ye.style.top = "";
|
|
77972
77972
|
else {
|
|
77973
|
-
const
|
|
77974
|
-
ye.style.top =
|
|
77973
|
+
const Y = n.fixedTopOffset + ue.clientHeight + 1;
|
|
77974
|
+
ye.style.top = Y + "px";
|
|
77975
77975
|
}
|
|
77976
77976
|
else
|
|
77977
|
-
|
|
77977
|
+
ue.style.top = "", ye.style.top = "";
|
|
77978
77978
|
if (s.value && i.value) {
|
|
77979
|
-
const
|
|
77979
|
+
const Y = document.querySelector(
|
|
77980
77980
|
'div[data-pc-section="header"] > div[data-pc-section="wrapper"]'
|
|
77981
77981
|
);
|
|
77982
|
-
(ee =
|
|
77982
|
+
(ee = Y == null ? void 0 : Y.querySelectorAll("th")) == null || ee.forEach((Z, q) => {
|
|
77983
77983
|
var be;
|
|
77984
|
-
const
|
|
77985
|
-
`th:nth-child(${
|
|
77986
|
-
),
|
|
77987
|
-
|
|
77988
|
-
}),
|
|
77984
|
+
const ce = (be = d.value) == null ? void 0 : be.querySelector(
|
|
77985
|
+
`th:nth-child(${q + 1})`
|
|
77986
|
+
), me = ce == null ? void 0 : ce.getAttribute("aria-sort");
|
|
77987
|
+
Z == null || Z.setAttribute("aria-sort", me), Z.classList.contains("actions") && (Z.style.minWidth = (ce == null ? void 0 : ce.clientWidth) + "px");
|
|
77988
|
+
}), Y && (Y.scrollLeft = d.value.scrollLeft);
|
|
77989
77989
|
}
|
|
77990
77990
|
W(), N(), V();
|
|
77991
77991
|
}, N = () => {
|
|
77992
|
-
const
|
|
77993
|
-
u.value = Math.abs(d.value.scrollLeft) <= 1, l.value = Math.abs(d.value.scrollLeft -
|
|
77992
|
+
const ue = d.value.scrollWidth - d.value.clientWidth;
|
|
77993
|
+
u.value = Math.abs(d.value.scrollLeft) <= 1, l.value = Math.abs(d.value.scrollLeft - ue) <= 1;
|
|
77994
77994
|
}, O = () => {
|
|
77995
|
-
R(), o.value = !1, a.value = !1, n.columns.forEach((ne,
|
|
77996
|
-
ne.frozen && (o.value || (o.value = !0), m.value.querySelectorAll(`th:nth-child(${
|
|
77995
|
+
R(), o.value = !1, a.value = !1, n.columns.forEach((ne, ue) => {
|
|
77996
|
+
ne.frozen && (o.value || (o.value = !0), m.value.querySelectorAll(`th:nth-child(${ue + 1}), td:nth-child(${ue + 1})`).forEach(
|
|
77997
77997
|
(ye) => {
|
|
77998
|
-
ye.classList.add("sticky"),
|
|
77998
|
+
ye.classList.add("sticky"), ue === 0 ? ye.classList.add("left-0") : ue === n.columns.length - 1 && ne.frozen && (ye.classList.add("right-0"), a.value = !0);
|
|
77999
77999
|
}
|
|
78000
78000
|
));
|
|
78001
78001
|
});
|
|
78002
78002
|
}, $ = () => {
|
|
78003
|
-
var
|
|
78004
|
-
const ne = (
|
|
78003
|
+
var ue, ye, le, ee;
|
|
78004
|
+
const ne = (ue = d.value) == null ? void 0 : ue.cloneNode(!0);
|
|
78005
78005
|
if (ne) {
|
|
78006
|
-
const
|
|
78007
|
-
|
|
78008
|
-
const
|
|
78009
|
-
(ye =
|
|
78010
|
-
d.value.scrollLeft =
|
|
78011
|
-
}), (
|
|
78012
|
-
var
|
|
78013
|
-
|
|
78014
|
-
}), (ee =
|
|
78015
|
-
|
|
78016
|
-
var
|
|
78006
|
+
const Y = document.querySelector('div[data-pc-section="header"]');
|
|
78007
|
+
Y == null || Y.append(ne);
|
|
78008
|
+
const Z = Y == null ? void 0 : Y.querySelector('div[data-pc-section="wrapper"]');
|
|
78009
|
+
(ye = Z == null ? void 0 : Z.querySelector("tbody")) == null || ye.remove(), Z == null || Z.addEventListener("scroll", () => {
|
|
78010
|
+
d.value.scrollLeft = Z.scrollLeft, N(), V();
|
|
78011
|
+
}), (le = d.value) == null || le.addEventListener("scroll", () => {
|
|
78012
|
+
var q;
|
|
78013
|
+
Z.scrollLeft = d.value.scrollLeft, N(), (q = d.value) == null || q.setAttribute("data-scroll", d.value.scrollLeft.toString()), V();
|
|
78014
|
+
}), (ee = Z == null ? void 0 : Z.querySelectorAll("th")) == null || ee.forEach((q, ce) => {
|
|
78015
|
+
q == null || q.addEventListener("click", async () => {
|
|
78016
|
+
var me;
|
|
78017
78017
|
if (s.value && i.value) {
|
|
78018
|
-
const be = (
|
|
78018
|
+
const be = (me = d.value) == null ? void 0 : me.querySelector(`th:nth-child(${ce + 1})`);
|
|
78019
78019
|
await (be == null ? void 0 : be.click());
|
|
78020
78020
|
const Ce = be == null ? void 0 : be.getAttribute("aria-sort");
|
|
78021
|
-
|
|
78021
|
+
q == null || q.setAttribute("aria-sort", Ce);
|
|
78022
78022
|
}
|
|
78023
78023
|
});
|
|
78024
78024
|
});
|
|
78025
78025
|
}
|
|
78026
78026
|
}, R = () => {
|
|
78027
|
-
var ne,
|
|
78028
|
-
d.value.scrollWidth > d.value.clientWidth ? (i.value = !0, (ne = d.value) == null || ne.classList.add("is-scrolled")) : (i.value = !1, (
|
|
78027
|
+
var ne, ue;
|
|
78028
|
+
d.value.scrollWidth > d.value.clientWidth ? (i.value = !0, (ne = d.value) == null || ne.classList.add("is-scrolled")) : (i.value = !1, (ue = d.value) == null || ue.classList.remove("is-scrolled")), d.value && d.value.setAttribute("data-scroll", d.value.scrollLeft.toString());
|
|
78029
78029
|
}, W = () => {
|
|
78030
|
-
const ne = d.value.clientWidth + "px",
|
|
78031
|
-
|
|
78030
|
+
const ne = d.value.clientWidth + "px", ue = document.querySelector('div[data-pc-section="header"]'), ye = ue.querySelector('div[data-pc-section="wrapper"] thead');
|
|
78031
|
+
ue.style.width = ne, d.value.querySelector("thead").style.width = ne, ye && (ye.style.width = ne);
|
|
78032
78032
|
}, te = () => {
|
|
78033
78033
|
if (d.value) {
|
|
78034
78034
|
const ne = -Math.min(
|
|
78035
78035
|
n.leftScrollAmount,
|
|
78036
78036
|
d.value.scrollLeft
|
|
78037
|
-
),
|
|
78037
|
+
), ue = s.value ? "instant" : "smooth";
|
|
78038
78038
|
d.value.scrollBy({
|
|
78039
78039
|
left: ne,
|
|
78040
|
-
behavior:
|
|
78040
|
+
behavior: ue
|
|
78041
78041
|
});
|
|
78042
78042
|
}
|
|
78043
78043
|
}, re = () => {
|
|
78044
78044
|
if (d.value) {
|
|
78045
|
-
const ne = d.value.scrollWidth - d.value.clientWidth,
|
|
78045
|
+
const ne = d.value.scrollWidth - d.value.clientWidth, ue = Math.min(
|
|
78046
78046
|
n.rightScrollAmount,
|
|
78047
78047
|
ne - d.value.scrollLeft
|
|
78048
78048
|
), ye = s.value ? "instant" : "smooth";
|
|
78049
78049
|
d.value.scrollBy({
|
|
78050
|
-
left:
|
|
78050
|
+
left: ue,
|
|
78051
78051
|
behavior: ye
|
|
78052
78052
|
});
|
|
78053
78053
|
}
|
|
78054
78054
|
}, H = () => {
|
|
78055
|
-
var ne,
|
|
78055
|
+
var ne, ue, ye;
|
|
78056
78056
|
if (i.value || !v.value) {
|
|
78057
|
-
const
|
|
78057
|
+
const le = u.value ? "hidden" : "", ee = l.value ? "hidden" : "";
|
|
78058
78058
|
(ne = m.value) == null || ne.insertAdjacentHTML(
|
|
78059
78059
|
"beforeend",
|
|
78060
|
-
`<button type="button" class="q-table-scroll-button scroll-button scroll-left ${
|
|
78060
|
+
`<button type="button" class="q-table-scroll-button scroll-button scroll-left ${le}"></button>
|
|
78061
78061
|
<button type="button" class="q-table-scroll-button scroll-button scroll-right ${ee}"></button>`
|
|
78062
78062
|
);
|
|
78063
|
-
const
|
|
78063
|
+
const Y = xn(W2, {
|
|
78064
78064
|
icon: "chevron-left",
|
|
78065
78065
|
type: "",
|
|
78066
78066
|
size: "md",
|
|
78067
78067
|
class: "p-[0.1875rem]"
|
|
78068
|
-
}),
|
|
78068
|
+
}), Z = xn(W2, {
|
|
78069
78069
|
icon: "chevron-right",
|
|
78070
78070
|
type: "",
|
|
78071
78071
|
size: "md",
|
|
78072
78072
|
class: "p-[0.1875rem]"
|
|
78073
|
-
}),
|
|
78074
|
-
ww(
|
|
78073
|
+
}), q = (ue = m.value) == null ? void 0 : ue.querySelector(".scroll-button.scroll-left"), ce = (ye = m.value) == null ? void 0 : ye.querySelector(".scroll-button.scroll-right");
|
|
78074
|
+
ww(Y, q), ww(Z, ce), q == null || q.addEventListener("click", te), ce == null || ce.addEventListener("click", re), V();
|
|
78075
78075
|
}
|
|
78076
78076
|
}, G = () => {
|
|
78077
|
-
var ne,
|
|
78078
|
-
(
|
|
78077
|
+
var ne, ue;
|
|
78078
|
+
(ue = (ne = m.value) == null ? void 0 : ne.querySelectorAll(".scroll-button")) == null || ue.forEach((ye) => {
|
|
78079
78079
|
ye.remove();
|
|
78080
78080
|
});
|
|
78081
78081
|
}, V = () => {
|
|
78082
|
-
var
|
|
78083
|
-
const ne = (
|
|
78084
|
-
if (m.value &&
|
|
78082
|
+
var q, ce, me, be;
|
|
78083
|
+
const ne = (q = m.value) == null ? void 0 : q.querySelector(".scroll-button.scroll-left"), ue = (ce = m.value) == null ? void 0 : ce.querySelector(".scroll-button.scroll-right"), ye = (me = d.value) == null ? void 0 : me.querySelector("td.sticky:first-child"), le = (be = m.value) == null ? void 0 : be.getBoundingClientRect(), ee = document.querySelector('div[data-pc-section="header"]'), Y = (ee == null ? void 0 : ee.getBoundingClientRect().height) || 0, Z = d.value;
|
|
78084
|
+
if (m.value && le && Z) {
|
|
78085
78085
|
const Ce = (ye == null ? void 0 : ye.getBoundingClientRect().width) || 0;
|
|
78086
78086
|
m.value.style.setProperty("--first-sticky-width", `${Ce}px`);
|
|
78087
|
-
const Le =
|
|
78088
|
-
if (ne &&
|
|
78087
|
+
const Le = Z.getBoundingClientRect(), et = Math.max(Le.top, Y), $t = Math.min(Le.bottom, window.innerHeight), Ln = et < window.innerHeight && $t > Y, Gn = $t - et, yn = et + Gn / 2;
|
|
78088
|
+
if (ne && ue)
|
|
78089
78089
|
if (Ln && i.value) {
|
|
78090
|
-
ne.classList.remove("hidden"),
|
|
78090
|
+
ne.classList.remove("hidden"), ue.classList.remove("hidden");
|
|
78091
78091
|
const qn = Math.max(
|
|
78092
78092
|
et,
|
|
78093
78093
|
Math.min(yn, $t - ne.offsetHeight)
|
|
78094
78094
|
);
|
|
78095
|
-
ne.style.top = `${qn}px`,
|
|
78095
|
+
ne.style.top = `${qn}px`, ue.style.top = `${qn}px`, ne.style.left = `${le.left + Ce + 8}px`, ue.style.right = `${window.innerWidth - le.right + 8}px`;
|
|
78096
78096
|
} else
|
|
78097
|
-
ne.classList.add("hidden"),
|
|
78098
|
-
ne && (u.value || !i.value ? ne.classList.add("hidden") : ne.classList.remove("hidden")),
|
|
78097
|
+
ne.classList.add("hidden"), ue.classList.add("hidden");
|
|
78098
|
+
ne && (u.value || !i.value ? ne.classList.add("hidden") : ne.classList.remove("hidden")), ue && (l.value || !i.value ? ue.classList.add("hidden") : ue.classList.remove("hidden"));
|
|
78099
78099
|
}
|
|
78100
|
-
},
|
|
78100
|
+
}, K = l6((ne) => {
|
|
78101
78101
|
f.value = ne;
|
|
78102
78102
|
}, n.searchDelay);
|
|
78103
78103
|
return Ct(() => {
|
|
@@ -78137,7 +78137,7 @@ const hfe = xe({
|
|
|
78137
78137
|
// Composable
|
|
78138
78138
|
mq: cr,
|
|
78139
78139
|
deviceType: t,
|
|
78140
|
-
debouncedSearch:
|
|
78140
|
+
debouncedSearch: K
|
|
78141
78141
|
};
|
|
78142
78142
|
}
|
|
78143
78143
|
}), pfe = ["id"], mfe = { class: "search-and-filters" }, gfe = { class: "inspections-search" }, yfe = {
|
|
@@ -78632,23 +78632,23 @@ const Qhe = /* @__PURE__ */ He(Nfe, [["render", Rfe], ["__scopeId", "data-v-3862
|
|
|
78632
78632
|
for (const N of b) {
|
|
78633
78633
|
const O = N === "t" || N === "b";
|
|
78634
78634
|
let $ = m[N];
|
|
78635
|
-
const [R, W] = O ? ["top", "left"] : ["left", "top"], [te, re] = O ? [h.height, h.width] : [h.width, h.height], [H, G] = O ? [M, A] : [A, M], [V,
|
|
78635
|
+
const [R, W] = O ? ["top", "left"] : ["left", "top"], [te, re] = O ? [h.height, h.width] : [h.width, h.height], [H, G] = O ? [M, A] : [A, M], [V, K] = O ? [w, E] : [E, w];
|
|
78636
78636
|
if (!($ < V || $ + te + o > H))
|
|
78637
78637
|
for (const ne of S) {
|
|
78638
|
-
let
|
|
78639
|
-
if (!(
|
|
78640
|
-
if (
|
|
78641
|
-
const ye = O ? f.width / 2 : f.height / 2,
|
|
78642
|
-
s: ee ?
|
|
78643
|
-
m:
|
|
78644
|
-
e: ee ?
|
|
78645
|
-
},
|
|
78638
|
+
let ue = g[(O ? "v" : "h") + ne];
|
|
78639
|
+
if (!(ue < K || ue + re + o > G)) {
|
|
78640
|
+
if (ue -= h[W], $ -= h[R], e.style[W] = `${ue}px`, e.style[R] = `${$}px`, i) {
|
|
78641
|
+
const ye = O ? f.width / 2 : f.height / 2, le = re / 2, ee = ye > le, Y = {
|
|
78642
|
+
s: ee ? le : ye,
|
|
78643
|
+
m: le,
|
|
78644
|
+
e: ee ? le : re - ye
|
|
78645
|
+
}, Z = {
|
|
78646
78646
|
t: te,
|
|
78647
78647
|
b: 0,
|
|
78648
78648
|
r: 0,
|
|
78649
78649
|
l: te
|
|
78650
|
-
},
|
|
78651
|
-
i.style[W] = `${
|
|
78650
|
+
}, q = ue + Y[ne], ce = $ + Z[N];
|
|
78651
|
+
i.style[W] = `${q}px`, i.style[R] = `${ce}px`;
|
|
78652
78652
|
}
|
|
78653
78653
|
return N + ne;
|
|
78654
78654
|
}
|
|
@@ -78807,25 +78807,25 @@ const Qhe = /* @__PURE__ */ He(Nfe, [["render", Rfe], ["__scopeId", "data-v-3862
|
|
|
78807
78807
|
}, M = async (H) => {
|
|
78808
78808
|
await A(H), d.currentStep = H, d.lastStep = H - 1, d.lastStep < 0 && (d.lastStep = 0), d.nextStep = H + 1, N();
|
|
78809
78809
|
}, A = async (H) => {
|
|
78810
|
-
var V,
|
|
78810
|
+
var V, K, ne, ue;
|
|
78811
78811
|
document.querySelectorAll(".tour-highlight").forEach((ye) => ye.classList.remove("tour-highlight"));
|
|
78812
78812
|
const G = document.querySelector(`#${s}`);
|
|
78813
|
-
G && (G.style.clipPath = ""), (V = l.value) == null || V.setAttribute("data-hidden", ""), await ((ne = (
|
|
78813
|
+
G && (G.style.clipPath = ""), (V = l.value) == null || V.setAttribute("data-hidden", ""), await ((ne = (K = c.value[H]) == null ? void 0 : K.onBefore) == null ? void 0 : ne.call(K)), (ue = l.value) == null || ue.removeAttribute("data-hidden");
|
|
78814
78814
|
}, N = async () => {
|
|
78815
|
-
var ne,
|
|
78816
|
-
if (O(), $(), (ne = l.value) == null || ne.setAttribute("data-hidden", ""), d.getCurrentStep.tooltipWidth ? (
|
|
78817
|
-
const
|
|
78815
|
+
var ne, ue, ye, le, ee;
|
|
78816
|
+
if (O(), $(), (ne = l.value) == null || ne.setAttribute("data-hidden", ""), d.getCurrentStep.tooltipWidth ? (ue = l.value) == null || ue.style.setProperty("width", d.getCurrentStep.tooltipWidth) : (ye = l.value) == null || ye.style.removeProperty("width"), !n.noScroll && !d.getCurrentStep.noScroll) {
|
|
78817
|
+
const Y = document.querySelector(
|
|
78818
78818
|
d.getCurrentStep.target
|
|
78819
78819
|
);
|
|
78820
|
-
if (
|
|
78821
|
-
const
|
|
78822
|
-
|
|
78820
|
+
if (Y) {
|
|
78821
|
+
const Z = Y.getBoundingClientRect();
|
|
78822
|
+
Z.top >= 0 && Z.left >= 0 && Z.bottom <= (window.innerHeight || document.documentElement.clientHeight) && Z.right <= (window.innerWidth || document.documentElement.clientWidth) || Y.scrollIntoView({
|
|
78823
78823
|
behavior: "smooth",
|
|
78824
78824
|
block: "center"
|
|
78825
78825
|
});
|
|
78826
78826
|
}
|
|
78827
78827
|
}
|
|
78828
|
-
(
|
|
78828
|
+
(le = l.value) == null || le.removeAttribute("data-hidden");
|
|
78829
78829
|
const H = document.querySelector(
|
|
78830
78830
|
d.getCurrentStep.target
|
|
78831
78831
|
);
|
|
@@ -78837,21 +78837,21 @@ const Qhe = /* @__PURE__ */ He(Nfe, [["render", Rfe], ["__scopeId", "data-v-3862
|
|
|
78837
78837
|
margin: d.getCurrentStep.margin !== void 0 ? d.getCurrentStep.margin : n.margin || 8
|
|
78838
78838
|
})) || G;
|
|
78839
78839
|
l.value.setAttribute("data-arrow", V);
|
|
78840
|
-
const
|
|
78841
|
-
if (
|
|
78842
|
-
const
|
|
78843
|
-
if (
|
|
78844
|
-
const
|
|
78845
|
-
|
|
78840
|
+
const K = document.querySelector(`#${o}`);
|
|
78841
|
+
if (K) {
|
|
78842
|
+
const Y = H.getBoundingClientRect(), Z = l.value.getBoundingClientRect(), q = Y.left + Y.width / 2, ce = Y.top + Y.height / 2;
|
|
78843
|
+
if (K.style.left = "", K.style.top = "", K.style.right = "", K.style.bottom = "", K.style.transform = "", V.startsWith("t")) {
|
|
78844
|
+
const me = q - Z.left;
|
|
78845
|
+
K.style.left = `${Math.max(10, Math.min(Z.width - 10, me))}px`, K.style.bottom = "-5px", K.style.transform = "translateX(-50%)";
|
|
78846
78846
|
} else if (V.startsWith("b")) {
|
|
78847
|
-
const
|
|
78848
|
-
|
|
78847
|
+
const me = q - Z.left;
|
|
78848
|
+
K.style.left = `${Math.max(10, Math.min(Z.width - 10, me))}px`, K.style.top = "-5px", K.style.transform = "translateX(-50%)";
|
|
78849
78849
|
} else if (V.startsWith("l")) {
|
|
78850
|
-
const
|
|
78851
|
-
|
|
78850
|
+
const me = ce - Z.top;
|
|
78851
|
+
K.style.top = `${Math.max(10, Math.min(Z.height - 10, me))}px`, K.style.right = "-5px", K.style.transform = "translateY(-50%)";
|
|
78852
78852
|
} else if (V.startsWith("r")) {
|
|
78853
|
-
const
|
|
78854
|
-
|
|
78853
|
+
const me = ce - Z.top;
|
|
78854
|
+
K.style.top = `${Math.max(10, Math.min(Z.height - 10, me))}px`, K.style.left = "-5px", K.style.transform = "translateY(-50%)";
|
|
78855
78855
|
}
|
|
78856
78856
|
}
|
|
78857
78857
|
n.saveProgress && localStorage.setItem(
|
|
@@ -78879,8 +78879,8 @@ const Qhe = /* @__PURE__ */ He(Nfe, [["render", Rfe], ["__scopeId", "data-v-3862
|
|
|
78879
78879
|
H.setAttribute("data-hidden", "");
|
|
78880
78880
|
return;
|
|
78881
78881
|
}
|
|
78882
|
-
const
|
|
78883
|
-
H.style.clipPath =
|
|
78882
|
+
const K = V.getBoundingClientRect(), ne = d.getCurrentStep.clipPadding ?? 0, ue = n.outlineWidth ?? 4, ye = d.getCurrentStep.clipWidth ?? K.width, le = d.getCurrentStep.clipHeight ?? K.height, ee = K.left + K.width / 2, Y = K.top + K.height / 2, Z = ee - ye / 2, q = Y - le / 2, ce = Z + ye, me = q + le, be = `path('M 0,0 L 0,${window.innerHeight} L ${window.innerWidth},${window.innerHeight} L ${window.innerWidth},0 Z M ${Z - ne},${q - ne} L ${ce + ne},${q - ne} L ${ce + ne},${me + ne} L ${Z - ne},${me + ne} Z')`, Ce = `path('M ${Z - ne - ue},${q - ne - ue} L ${ce + ne + ue},${q - ne - ue} L ${ce + ne + ue},${me + ne + ue} L ${Z - ne - ue},${me + ne + ue} Z')`;
|
|
78883
|
+
H.style.clipPath = be, n.highlight && d.getCurrentStep.highlight !== !1 ? G.style.clipPath = Ce : G.style.clipPath = "none", H.removeAttribute("data-hidden");
|
|
78884
78884
|
}, R = () => {
|
|
78885
78885
|
u.value = !u.value;
|
|
78886
78886
|
}, W = (H) => {
|