@dcrackel/hematournamentui 1.0.443 → 1.0.445
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var nC = Object.defineProperty;
|
|
2
2
|
var rC = (n, e, t) => e in n ? nC(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var ye = (n, e, t) => rC(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { openBlock as f, createElementBlock as m, normalizeClass as ne, withDirectives as No, createElementVNode as h, vModelText as Sd, Fragment as fe, renderList as be, withKeys as kd, withModifiers as Ct, toDisplayString as Xe, reactive as si, computed as de, resolveComponent as y, createBlock as se, createCommentVNode as x, withCtx as Pe, createVNode as p, normalizeStyle as Lt, Transition as yn, renderSlot as Qe, ref as Ce, defineComponent as it, useSlots as fo, toRef as Hi, onMounted as Et, nextTick as an, onUnmounted as As, watch as nn, mergeProps as Bt, unref as P, isRef as lc, createSlots as Nt, normalizeProps as Dt, guardReactiveProps as tn, resolveDynamicComponent as rA, Teleport as oC, h as ai, render as cc, useAttrs as iC, createTextVNode as
|
|
4
|
+
import { openBlock as f, createElementBlock as m, normalizeClass as ne, withDirectives as No, createElementVNode as h, vModelText as Sd, Fragment as fe, renderList as be, withKeys as kd, withModifiers as Ct, toDisplayString as Xe, reactive as si, computed as de, resolveComponent as y, createBlock as se, createCommentVNode as x, withCtx as Pe, createVNode as p, normalizeStyle as Lt, Transition as yn, renderSlot as Qe, ref as Ce, defineComponent as it, useSlots as fo, toRef as Hi, onMounted as Et, nextTick as an, onUnmounted as As, watch as nn, mergeProps as Bt, unref as P, isRef as lc, createSlots as Nt, normalizeProps as Dt, guardReactiveProps as tn, resolveDynamicComponent as rA, Teleport as oC, h as ai, render as cc, useAttrs as iC, createTextVNode as Fn, onBeforeUpdate as AC, vShow as kA, getCurrentScope as sC, onScopeDispose as aC, createStaticVNode as oA, onBeforeUnmount as ss, getCurrentInstance as lC, watchEffect as cC, shallowRef as uC, markRaw as dC, customRef as gC } from "vue";
|
|
5
5
|
const ie = (n, e) => {
|
|
6
6
|
const t = n.__vccOpts || n;
|
|
7
7
|
for (const [r, o] of e)
|
|
@@ -1278,13 +1278,13 @@ let MI = {};
|
|
|
1278
1278
|
function mo() {
|
|
1279
1279
|
return MI;
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function Ln(n, e) {
|
|
1282
1282
|
var a, l, c, u;
|
|
1283
1283
|
const t = mo(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (a = e == null ? void 0 : e.locale) == null ? void 0 : a.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((u = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, o = Me(n), i = o.getDay(), A = (i < r ? 7 : 0) + i - r;
|
|
1284
1284
|
return o.setDate(o.getDate() - A), o.setHours(0, 0, 0, 0), o;
|
|
1285
1285
|
}
|
|
1286
1286
|
function Jo(n) {
|
|
1287
|
-
return
|
|
1287
|
+
return Ln(n, { weekStartsOn: 1 });
|
|
1288
1288
|
}
|
|
1289
1289
|
function Rd(n) {
|
|
1290
1290
|
const e = Me(n), t = e.getFullYear(), r = Ge(n, 0);
|
|
@@ -1843,18 +1843,18 @@ function ul(n, e) {
|
|
|
1843
1843
|
var u, d, g, C;
|
|
1844
1844
|
const t = Me(n), r = t.getFullYear(), o = mo(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((C = (g = o.locale) == null ? void 0 : g.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, A = Ge(n, 0);
|
|
1845
1845
|
A.setFullYear(r + 1, 0, i), A.setHours(0, 0, 0, 0);
|
|
1846
|
-
const a =
|
|
1846
|
+
const a = Ln(A, e), l = Ge(n, 0);
|
|
1847
1847
|
l.setFullYear(r, 0, i), l.setHours(0, 0, 0, 0);
|
|
1848
|
-
const c =
|
|
1848
|
+
const c = Ln(l, e);
|
|
1849
1849
|
return t.getTime() >= a.getTime() ? r + 1 : t.getTime() >= c.getTime() ? r : r - 1;
|
|
1850
1850
|
}
|
|
1851
1851
|
function ff(n, e) {
|
|
1852
1852
|
var a, l, c, u;
|
|
1853
1853
|
const t = mo(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((l = (a = e == null ? void 0 : e.locale) == null ? void 0 : a.options) == null ? void 0 : l.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((u = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, o = ul(n, e), i = Ge(n, 0);
|
|
1854
|
-
return i.setFullYear(o, 0, r), i.setHours(0, 0, 0, 0),
|
|
1854
|
+
return i.setFullYear(o, 0, r), i.setHours(0, 0, 0, 0), Ln(i, e);
|
|
1855
1855
|
}
|
|
1856
1856
|
function dl(n, e) {
|
|
1857
|
-
const t = Me(n), r = +
|
|
1857
|
+
const t = Me(n), r = +Ln(t, e) - +ff(t, e);
|
|
1858
1858
|
return Math.round(r / Od) + 1;
|
|
1859
1859
|
}
|
|
1860
1860
|
function We(n, e) {
|
|
@@ -2487,7 +2487,7 @@ function vf(n, e, t) {
|
|
|
2487
2487
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2488
2488
|
}
|
|
2489
2489
|
const wf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, yf = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, bf = /^'([^]*?)'?$/, xf = /''/g, Df = /[a-zA-Z]/;
|
|
2490
|
-
function
|
|
2490
|
+
function _n(n, e, t) {
|
|
2491
2491
|
var u, d, g, C, I, B, Q, b;
|
|
2492
2492
|
const r = mo(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Nd, i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((C = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, A = (t == null ? void 0 : t.weekStartsOn) ?? ((B = (I = t == null ? void 0 : t.locale) == null ? void 0 : I.options) == null ? void 0 : B.weekStartsOn) ?? r.weekStartsOn ?? ((b = (Q = r.locale) == null ? void 0 : Q.options) == null ? void 0 : b.weekStartsOn) ?? 0, a = Me(n);
|
|
2493
2493
|
if (!Si(a))
|
|
@@ -2694,7 +2694,7 @@ const ut = {
|
|
|
2694
2694
|
// 0 to 999, -0 to -999
|
|
2695
2695
|
fourDigitsSigned: /^-?\d{1,4}/
|
|
2696
2696
|
// 0 to 9999, -0 to -9999
|
|
2697
|
-
},
|
|
2697
|
+
}, Jn = {
|
|
2698
2698
|
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
2699
2699
|
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
2700
2700
|
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
@@ -2714,7 +2714,7 @@ function ot(n, e) {
|
|
|
2714
2714
|
rest: e.slice(t[0].length)
|
|
2715
2715
|
} : null;
|
|
2716
2716
|
}
|
|
2717
|
-
function
|
|
2717
|
+
function Vn(n, e) {
|
|
2718
2718
|
const t = e.match(n);
|
|
2719
2719
|
if (!t)
|
|
2720
2720
|
return null;
|
|
@@ -2885,10 +2885,10 @@ class Nf extends Ve {
|
|
|
2885
2885
|
l,
|
|
2886
2886
|
0,
|
|
2887
2887
|
i.firstWeekContainsDate
|
|
2888
|
-
), t.setHours(0, 0, 0, 0),
|
|
2888
|
+
), t.setHours(0, 0, 0, 0), Ln(t, i);
|
|
2889
2889
|
}
|
|
2890
2890
|
const a = !("era" in r) || r.era === 1 ? o.year : 1 - o.year;
|
|
2891
|
-
return t.setFullYear(a, 0, i.firstWeekContainsDate), t.setHours(0, 0, 0, 0),
|
|
2891
|
+
return t.setFullYear(a, 0, i.firstWeekContainsDate), t.setHours(0, 0, 0, 0), Ln(t, i);
|
|
2892
2892
|
}
|
|
2893
2893
|
}
|
|
2894
2894
|
class Yf extends Ve {
|
|
@@ -3220,7 +3220,7 @@ class Vf extends Ve {
|
|
|
3220
3220
|
return r >= 1 && r <= 53;
|
|
3221
3221
|
}
|
|
3222
3222
|
set(t, r, o, i) {
|
|
3223
|
-
return
|
|
3223
|
+
return Ln(Jf(t, o, i), i);
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
function Wf(n, e) {
|
|
@@ -3911,25 +3911,25 @@ class Cm extends Ve {
|
|
|
3911
3911
|
parse(t, r) {
|
|
3912
3912
|
switch (r) {
|
|
3913
3913
|
case "X":
|
|
3914
|
-
return
|
|
3915
|
-
|
|
3914
|
+
return Vn(
|
|
3915
|
+
Jn.basicOptionalMinutes,
|
|
3916
3916
|
t
|
|
3917
3917
|
);
|
|
3918
3918
|
case "XX":
|
|
3919
|
-
return Jn
|
|
3919
|
+
return Vn(Jn.basic, t);
|
|
3920
3920
|
case "XXXX":
|
|
3921
|
-
return
|
|
3922
|
-
|
|
3921
|
+
return Vn(
|
|
3922
|
+
Jn.basicOptionalSeconds,
|
|
3923
3923
|
t
|
|
3924
3924
|
);
|
|
3925
3925
|
case "XXXXX":
|
|
3926
|
-
return
|
|
3927
|
-
|
|
3926
|
+
return Vn(
|
|
3927
|
+
Jn.extendedOptionalSeconds,
|
|
3928
3928
|
t
|
|
3929
3929
|
);
|
|
3930
3930
|
case "XXX":
|
|
3931
3931
|
default:
|
|
3932
|
-
return Jn
|
|
3932
|
+
return Vn(Jn.extended, t);
|
|
3933
3933
|
}
|
|
3934
3934
|
}
|
|
3935
3935
|
set(t, r, o) {
|
|
@@ -3948,25 +3948,25 @@ class Im extends Ve {
|
|
|
3948
3948
|
parse(t, r) {
|
|
3949
3949
|
switch (r) {
|
|
3950
3950
|
case "x":
|
|
3951
|
-
return
|
|
3952
|
-
|
|
3951
|
+
return Vn(
|
|
3952
|
+
Jn.basicOptionalMinutes,
|
|
3953
3953
|
t
|
|
3954
3954
|
);
|
|
3955
3955
|
case "xx":
|
|
3956
|
-
return Jn
|
|
3956
|
+
return Vn(Jn.basic, t);
|
|
3957
3957
|
case "xxxx":
|
|
3958
|
-
return
|
|
3959
|
-
|
|
3958
|
+
return Vn(
|
|
3959
|
+
Jn.basicOptionalSeconds,
|
|
3960
3960
|
t
|
|
3961
3961
|
);
|
|
3962
3962
|
case "xxxxx":
|
|
3963
|
-
return
|
|
3964
|
-
|
|
3963
|
+
return Vn(
|
|
3964
|
+
Jn.extendedOptionalSeconds,
|
|
3965
3965
|
t
|
|
3966
3966
|
);
|
|
3967
3967
|
case "xxx":
|
|
3968
3968
|
default:
|
|
3969
|
-
return Jn
|
|
3969
|
+
return Vn(Jn.extended, t);
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
set(t, r, o) {
|
|
@@ -4143,7 +4143,7 @@ function Xd(n, e) {
|
|
|
4143
4143
|
const t = Me(n);
|
|
4144
4144
|
return t.setSeconds(e), t;
|
|
4145
4145
|
}
|
|
4146
|
-
function
|
|
4146
|
+
function Xn(n, e) {
|
|
4147
4147
|
const t = Me(n);
|
|
4148
4148
|
return isNaN(+t) ? Ge(n, NaN) : (t.setFullYear(e), t);
|
|
4149
4149
|
}
|
|
@@ -4348,7 +4348,7 @@ function Ec(n) {
|
|
|
4348
4348
|
return (e) => new Intl.DateTimeFormat(n, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${e}T00:00:00+00:00`)).slice(0, 2);
|
|
4349
4349
|
}
|
|
4350
4350
|
function Pm(n) {
|
|
4351
|
-
return (e) =>
|
|
4351
|
+
return (e) => _n(rn(/* @__PURE__ */ new Date(`2017-01-0${e}T00:00:00+00:00`), "UTC"), "EEEEEE", { locale: n });
|
|
4352
4352
|
}
|
|
4353
4353
|
const zm = (n, e, t) => {
|
|
4354
4354
|
const r = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -4377,7 +4377,7 @@ const zm = (n, e, t) => {
|
|
|
4377
4377
|
try {
|
|
4378
4378
|
const i = t === "long" ? "LLLL" : "LLL";
|
|
4379
4379
|
return r.map((A, a) => {
|
|
4380
|
-
const l =
|
|
4380
|
+
const l = _n(rn(A, "UTC"), i, { locale: n });
|
|
4381
4381
|
return {
|
|
4382
4382
|
text: l.charAt(0).toUpperCase() + l.substring(1),
|
|
4383
4383
|
value: a
|
|
@@ -4449,7 +4449,7 @@ function Ym(n, e) {
|
|
|
4449
4449
|
if (r >= 0 && (e ? r - 1 >= 0 : r + 1 <= t.length))
|
|
4450
4450
|
return t[r + (e ? -1 : 1)];
|
|
4451
4451
|
}
|
|
4452
|
-
const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), ng = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), vl = (n) =>
|
|
4452
|
+
const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), ng = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), vl = (n) => _n(n, "dd-MM-yyyy"), Ls = (n) => Array.isArray(n), NA = (n, e) => e.get(vl(n)), qm = (n, e) => n ? e ? e instanceof Map ? !!NA(n, e) : e(ce(n)) : !1 : !0, Ut = (n, e, t = !1, r) => {
|
|
4453
4453
|
if (n.key === et.enter || n.key === et.space)
|
|
4454
4454
|
return t && n.preventDefault(), e();
|
|
4455
4455
|
if (r) return r(n);
|
|
@@ -4527,8 +4527,8 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4527
4527
|
}, Um = (n) => {
|
|
4528
4528
|
const e = Pn(n, 1);
|
|
4529
4529
|
return { month: qe(e), year: Fe(e) };
|
|
4530
|
-
},
|
|
4531
|
-
const t =
|
|
4530
|
+
}, cr = (n, e) => {
|
|
4531
|
+
const t = Ln(n, { weekStartsOn: +e }), r = Hd(n, { weekStartsOn: +e });
|
|
4532
4532
|
return [t, r];
|
|
4533
4533
|
}, Ag = (n, e) => {
|
|
4534
4534
|
const t = {
|
|
@@ -4537,9 +4537,9 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4537
4537
|
seconds: e ? Vo(ce()) : 0
|
|
4538
4538
|
};
|
|
4539
4539
|
return Object.assign(t, n);
|
|
4540
|
-
}, vr = (n, e, t) => [Ze(ce(n), { date: 1 }), Ze(ce(), { month: e, year: t, date: 1 })],
|
|
4540
|
+
}, vr = (n, e, t) => [Ze(ce(n), { date: 1 }), Ze(ce(), { month: e, year: t, date: 1 })], ur = (n, e, t) => {
|
|
4541
4541
|
let r = n ? ce(n) : ce();
|
|
4542
|
-
return (e || e === 0) && (r = Vd(r, e)), t && (r =
|
|
4542
|
+
return (e || e === 0) && (r = Vd(r, e)), t && (r = Xn(r, t)), r;
|
|
4543
4543
|
}, sg = (n, e, t, r, o) => {
|
|
4544
4544
|
if (!r || o && !e || !o && !t) return !1;
|
|
4545
4545
|
const i = o ? Pn(n, 1) : Xo(n, 1), A = [qe(i), Fe(i)];
|
|
@@ -4547,7 +4547,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4547
4547
|
}, Gm = (n, e, t) => At(...vr(t, n, e)) || Ue(...vr(t, n, e)), Jm = (n, e, t) => ct(...vr(t, n, e)) || Ue(...vr(t, n, e)), ag = (n, e, t, r, o, i, A) => {
|
|
4548
4548
|
if (typeof e == "function" && !A) return e(n);
|
|
4549
4549
|
const a = t ? { locale: t } : void 0;
|
|
4550
|
-
return Array.isArray(n) ? `${
|
|
4550
|
+
return Array.isArray(n) ? `${_n(n[0], i, a)}${o && !n[1] ? "" : r}${n[1] ? _n(n[1], i, a) : ""}` : _n(n, i, a);
|
|
4551
4551
|
}, yo = (n) => {
|
|
4552
4552
|
if (n) return null;
|
|
4553
4553
|
throw new Error(Ql.prop("partial-range"));
|
|
@@ -4572,7 +4572,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4572
4572
|
}
|
|
4573
4573
|
const i = Ys(n, r, e);
|
|
4574
4574
|
return Ns(r, i, t, !!e) && o;
|
|
4575
|
-
}, qs = (n) => Ze(ce(), no(n)), Wm = (n, e) => n instanceof Map ? Array.from(n.values()).filter((t) => Fe(ce(t)) === e).map((t) => qe(t)) : [], lg = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((r) => r.month === e && r.year === t), wl = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), cg = (n) =>
|
|
4575
|
+
}, qs = (n) => Ze(ce(), no(n)), Wm = (n, e) => n instanceof Map ? Array.from(n.values()).filter((t) => Fe(ce(t)) === e).map((t) => qe(t)) : [], lg = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((r) => r.month === e && r.year === t), wl = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), cg = (n) => _n(n, "yyyy-MM-dd"), fi = si({
|
|
4576
4576
|
menuFocused: !1,
|
|
4577
4577
|
shiftKeyInMenu: !1
|
|
4578
4578
|
}), ug = () => {
|
|
@@ -4874,13 +4874,13 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4874
4874
|
hours: hr(k),
|
|
4875
4875
|
minutes: Pr(k),
|
|
4876
4876
|
seconds: e.enableSeconds ? Vo(k) : 0
|
|
4877
|
-
} : null, Q = (k) => e.modelType ? H(k) : { month: qe(k), year: Fe(k) }, b = (k) => Array.isArray(k) ? a.value.enabled ? k.map((ge) => T(ge,
|
|
4877
|
+
} : null, Q = (k) => e.modelType ? H(k) : { month: qe(k), year: Fe(k) }, b = (k) => Array.isArray(k) ? a.value.enabled ? k.map((ge) => T(ge, Xn(ce(), ge))) : IA(
|
|
4878
4878
|
() => [
|
|
4879
|
-
|
|
4880
|
-
k[1] ?
|
|
4879
|
+
Xn(ce(), k[0]),
|
|
4880
|
+
k[1] ? Xn(ce(), k[1]) : yo(i.value.partialRange)
|
|
4881
4881
|
],
|
|
4882
4882
|
i.value.enabled
|
|
4883
|
-
) :
|
|
4883
|
+
) : Xn(ce(), +k), T = (k, ge) => (typeof k == "string" || typeof k == "number") && e.modelType ? z(k) : ge, S = (k) => Array.isArray(k) ? [
|
|
4884
4884
|
T(
|
|
4885
4885
|
k[0],
|
|
4886
4886
|
kr(null, +k[0].hours, +k[0].minutes, k[0].seconds)
|
|
@@ -4891,16 +4891,16 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4891
4891
|
)
|
|
4892
4892
|
] : T(k, kr(null, k.hours, k.minutes, k.seconds)), v = (k) => {
|
|
4893
4893
|
const ge = Ze(ce(), { date: 1 });
|
|
4894
|
-
return Array.isArray(k) ? a.value.enabled ? k.map((xe) => T(xe,
|
|
4894
|
+
return Array.isArray(k) ? a.value.enabled ? k.map((xe) => T(xe, ur(ge, +xe.month, +xe.year))) : IA(
|
|
4895
4895
|
() => [
|
|
4896
|
-
T(k[0],
|
|
4896
|
+
T(k[0], ur(ge, +k[0].month, +k[0].year)),
|
|
4897
4897
|
T(
|
|
4898
4898
|
k[1],
|
|
4899
|
-
k[1] ?
|
|
4899
|
+
k[1] ? ur(ge, +k[1].month, +k[1].year) : yo(i.value.partialRange)
|
|
4900
4900
|
)
|
|
4901
4901
|
],
|
|
4902
4902
|
i.value.enabled
|
|
4903
|
-
) : T(k,
|
|
4903
|
+
) : T(k, ur(ge, +k.month, +k.year));
|
|
4904
4904
|
}, G = (k) => {
|
|
4905
4905
|
if (Array.isArray(k))
|
|
4906
4906
|
return k.map((ge) => z(ge));
|
|
@@ -4932,9 +4932,9 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4932
4932
|
const ge = me(k);
|
|
4933
4933
|
ya(yt(ge)) ? (r.value = yt(ge), Ae()) : (r.value = null, c.value = "");
|
|
4934
4934
|
}, K = () => {
|
|
4935
|
-
const k = (ge) =>
|
|
4935
|
+
const k = (ge) => _n(ge, o.value.format);
|
|
4936
4936
|
return `${k(r.value[0])} ${o.value.rangeSeparator} ${r.value[1] ? k(r.value[1]) : ""}`;
|
|
4937
|
-
}, L = () => t.value && r.value ? Array.isArray(r.value) ? K() :
|
|
4937
|
+
}, L = () => t.value && r.value ? Array.isArray(r.value) ? K() : _n(r.value, o.value.format) : I(r.value), X = () => r.value ? a.value.enabled ? r.value.map((k) => I(k)).join("; ") : o.value.enabled && typeof o.value.format == "string" ? L() : I(r.value) : "", Ae = () => {
|
|
4938
4938
|
!e.format || typeof e.format == "string" || o.value.enabled && typeof o.value.format == "string" ? c.value = X() : c.value = e.format(r.value);
|
|
4939
4939
|
}, z = (k) => {
|
|
4940
4940
|
if (e.utc) {
|
|
@@ -4957,10 +4957,10 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4957
4957
|
r.value[1] ? k(r.value[1]) : yo(i.value.partialRange)
|
|
4958
4958
|
] : k(yt(r.value)), R = () => {
|
|
4959
4959
|
if (Array.isArray(r.value)) {
|
|
4960
|
-
const k =
|
|
4960
|
+
const k = cr(r.value[0], e.weekStart), ge = r.value[1] ? cr(r.value[1], e.weekStart) : [];
|
|
4961
4961
|
return [k.map((xe) => ce(xe)), ge.map((xe) => ce(xe))];
|
|
4962
4962
|
}
|
|
4963
|
-
return
|
|
4963
|
+
return cr(r.value, e.weekStart).map((k) => ce(k));
|
|
4964
4964
|
}, E = (k, ge) => W(yt(M(k)), !1, ge), q = (k) => {
|
|
4965
4965
|
const ge = R();
|
|
4966
4966
|
return k ? ge : n("update:model-value", R());
|
|
@@ -4983,7 +4983,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
4983
4983
|
}, a = (u, d = !1) => {
|
|
4984
4984
|
const g = Ze(ce(), { month: n.month, year: n.year });
|
|
4985
4985
|
let C = u ? Pn(g, 1) : Xo(g, 1);
|
|
4986
|
-
n.disableYearSelect && (C =
|
|
4986
|
+
n.disableYearSelect && (C = Xn(C, n.year));
|
|
4987
4987
|
let I = qe(C), B = Fe(C);
|
|
4988
4988
|
t.value.months.includes(I) && (C = i(C, u), I = qe(C), B = Fe(C)), t.value.years.includes(B) && (C = A(C, u), B = Fe(C)), o(I, B, u, n.preventMinMaxNavigation) && l(I, B, d);
|
|
4989
4989
|
}, l = (u, d, g) => {
|
|
@@ -5118,7 +5118,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5118
5118
|
onInternalModelChange: { type: [Function, Object], default: null },
|
|
5119
5119
|
enableMinutes: { type: Boolean, default: !0 },
|
|
5120
5120
|
ui: { type: Object, default: () => ({}) }
|
|
5121
|
-
},
|
|
5121
|
+
}, Yn = {
|
|
5122
5122
|
...cs,
|
|
5123
5123
|
shadow: { type: Boolean, default: !1 },
|
|
5124
5124
|
flowStep: { type: Number, default: 0 },
|
|
@@ -5136,7 +5136,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5136
5136
|
props: {
|
|
5137
5137
|
menuMount: { type: Boolean, default: !1 },
|
|
5138
5138
|
calendarWidth: { type: Number, default: 0 },
|
|
5139
|
-
...
|
|
5139
|
+
...Yn
|
|
5140
5140
|
},
|
|
5141
5141
|
emits: ["close-picker", "select-date", "select-now", "invalid-select"],
|
|
5142
5142
|
setup(n, { emit: e }) {
|
|
@@ -5202,7 +5202,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5202
5202
|
value: N.internalModelValue
|
|
5203
5203
|
}) : x("", !0),
|
|
5204
5204
|
!N.$slots["action-preview"] && Q.value ? (f(), m(fe, { key: 1 }, [
|
|
5205
|
-
|
|
5205
|
+
Fn(Xe(ae.value), 1)
|
|
5206
5206
|
], 64)) : x("", !0)
|
|
5207
5207
|
], 12, pB)) : x("", !0),
|
|
5208
5208
|
h("div", {
|
|
@@ -5416,7 +5416,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5416
5416
|
item: k
|
|
5417
5417
|
}) : x("", !0),
|
|
5418
5418
|
M.$slots.item ? x("", !0) : (f(), m(fe, { key: 1 }, [
|
|
5419
|
-
|
|
5419
|
+
Fn(Xe(k.text), 1)
|
|
5420
5420
|
], 64))
|
|
5421
5421
|
], 2)
|
|
5422
5422
|
], 42, BB))), 128))
|
|
@@ -5507,7 +5507,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5507
5507
|
}), vB = ["aria-label", "data-test"], dg = /* @__PURE__ */ it({
|
|
5508
5508
|
__name: "YearModePicker",
|
|
5509
5509
|
props: {
|
|
5510
|
-
...
|
|
5510
|
+
...Yn,
|
|
5511
5511
|
showYearPicker: { type: Boolean, default: !1 },
|
|
5512
5512
|
items: { type: Array, default: () => [] },
|
|
5513
5513
|
instance: { type: Number, default: 0 },
|
|
@@ -5557,7 +5557,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5557
5557
|
year: n.year
|
|
5558
5558
|
}) : x("", !0),
|
|
5559
5559
|
b.$slots.year ? x("", !0) : (f(), m(fe, { key: 1 }, [
|
|
5560
|
-
|
|
5560
|
+
Fn(Xe(n.year), 1)
|
|
5561
5561
|
], 64))
|
|
5562
5562
|
], 40, vB),
|
|
5563
5563
|
P(o)(P(a), n.instance) ? (f(), se(ki, {
|
|
@@ -5771,7 +5771,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5771
5771
|
if (A.value.enabled) {
|
|
5772
5772
|
const _ = ae();
|
|
5773
5773
|
if (Array.isArray(C.value) && Array.isArray(_)) {
|
|
5774
|
-
const k = N(E, q, 0) || N(E, q, 1), ge =
|
|
5774
|
+
const k = N(E, q, 0) || N(E, q, 1), ge = ur(Tn(ce()), E, I.value(q));
|
|
5775
5775
|
return ls(C.value, T.value, ge) && !k;
|
|
5776
5776
|
}
|
|
5777
5777
|
return !1;
|
|
@@ -5785,9 +5785,9 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5785
5785
|
og(I.value(E), l.value.maxDate)
|
|
5786
5786
|
) || Wm(l.value.disabledDates, I.value(E)).includes(q.value) || ((_ = u.value.months) == null ? void 0 : _.includes(q.value)), xe = K(q.value, E), Ye = lg(a.value, q.value, I.value(E));
|
|
5787
5787
|
return { active: k, disabled: ge, isBetween: xe, highlighted: Ye };
|
|
5788
|
-
})), X = (E, q) =>
|
|
5788
|
+
})), X = (E, q) => ur(Tn(ce()), E, I.value(q)), Ae = (E, q) => {
|
|
5789
5789
|
const _ = C.value ? C.value : Tn(/* @__PURE__ */ new Date());
|
|
5790
|
-
C.value =
|
|
5790
|
+
C.value = ur(_, E, I.value(q)), e("auto-apply"), e("update-flow-step");
|
|
5791
5791
|
}, z = (E, q) => {
|
|
5792
5792
|
const _ = X(E, q);
|
|
5793
5793
|
A.value.fixedEnd || A.value.fixedStart ? C.value = hg(_, C, e, A) : C.value ? S(_, C.value) && (C.value = bl(C, X(E, q), e)) : C.value = [X(E, q)], an().then(() => {
|
|
@@ -5840,7 +5840,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5840
5840
|
},
|
|
5841
5841
|
__name: "MonthPicker",
|
|
5842
5842
|
props: {
|
|
5843
|
-
...
|
|
5843
|
+
...Yn
|
|
5844
5844
|
},
|
|
5845
5845
|
emits: [
|
|
5846
5846
|
"update:internal-model-value",
|
|
@@ -5966,18 +5966,18 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5966
5966
|
_o(c.value.maxDate)
|
|
5967
5967
|
) || a.value.years.includes(B.value), T = g(B.value) && !Q, S = wl(i.value, B.value);
|
|
5968
5968
|
return { active: Q, disabled: b, isBetween: T, highlighted: S };
|
|
5969
|
-
})), I = (B) =>
|
|
5969
|
+
})), I = (B) => Xn(Tn(Ni(/* @__PURE__ */ new Date())), B);
|
|
5970
5970
|
return {
|
|
5971
5971
|
groupedYears: C,
|
|
5972
5972
|
modelValue: r,
|
|
5973
5973
|
focusYear: u,
|
|
5974
5974
|
setHoverValue: (B) => {
|
|
5975
|
-
o.value =
|
|
5975
|
+
o.value = Xn(Tn(/* @__PURE__ */ new Date()), B);
|
|
5976
5976
|
},
|
|
5977
5977
|
selectYear: (B) => {
|
|
5978
5978
|
var Q;
|
|
5979
5979
|
if (e("update-month-year", { instance: 0, year: B }), A.value.enabled)
|
|
5980
|
-
return r.value ? Array.isArray(r.value) && (((Q = r.value) == null ? void 0 : Q.map((b) => Fe(b))).includes(B) ? r.value = r.value.filter((b) => Fe(b) !== B) : r.value.push(
|
|
5980
|
+
return r.value ? Array.isArray(r.value) && (((Q = r.value) == null ? void 0 : Q.map((b) => Fe(b))).includes(B) ? r.value = r.value.filter((b) => Fe(b) !== B) : r.value.push(Xn(Jt(ce()), B))) : r.value = [Xn(Jt(Ni(ce())), B)], e("auto-apply", !0);
|
|
5981
5981
|
l.value.enabled ? (r.value = bl(r, I(B), e), an().then(() => {
|
|
5982
5982
|
ds(r.value, e, n.autoApply, n.modelAuto);
|
|
5983
5983
|
})) : (r.value = I(B), e("auto-apply"));
|
|
@@ -5989,7 +5989,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
5989
5989
|
},
|
|
5990
5990
|
__name: "YearPicker",
|
|
5991
5991
|
props: {
|
|
5992
|
-
...
|
|
5992
|
+
...Yn
|
|
5993
5993
|
},
|
|
5994
5994
|
emits: [
|
|
5995
5995
|
"update:internal-model-value",
|
|
@@ -6054,7 +6054,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6054
6054
|
order: { type: Number, default: 0 },
|
|
6055
6055
|
disabledTimesConfig: { type: Function, default: null },
|
|
6056
6056
|
validateTime: { type: Function, default: () => !1 },
|
|
6057
|
-
...
|
|
6057
|
+
...Yn
|
|
6058
6058
|
},
|
|
6059
6059
|
emits: [
|
|
6060
6060
|
"set-hours",
|
|
@@ -6169,7 +6169,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6169
6169
|
}, [
|
|
6170
6170
|
$.separator ? (f(), m(fe, { key: 0 }, [
|
|
6171
6171
|
S.value ? x("", !0) : (f(), m(fe, { key: 0 }, [
|
|
6172
|
-
|
|
6172
|
+
Fn(":")
|
|
6173
6173
|
], 64))
|
|
6174
6174
|
], 64)) : (f(), m(fe, { key: 1 }, [
|
|
6175
6175
|
h("button", {
|
|
@@ -6227,7 +6227,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6227
6227
|
value: L.value($.type).value
|
|
6228
6228
|
}) : x("", !0),
|
|
6229
6229
|
D.$slots[$.type] ? x("", !0) : (f(), m(fe, { key: 1 }, [
|
|
6230
|
-
|
|
6230
|
+
Fn(Xe(L.value($.type).text), 1)
|
|
6231
6231
|
], 64))
|
|
6232
6232
|
], 42, OB),
|
|
6233
6233
|
h("button", {
|
|
@@ -6352,7 +6352,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6352
6352
|
type: Function,
|
|
6353
6353
|
default: () => !1
|
|
6354
6354
|
},
|
|
6355
|
-
...
|
|
6355
|
+
...Yn
|
|
6356
6356
|
},
|
|
6357
6357
|
emits: [
|
|
6358
6358
|
"update:hours",
|
|
@@ -6648,7 +6648,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6648
6648
|
},
|
|
6649
6649
|
__name: "TimePickerSolo",
|
|
6650
6650
|
props: {
|
|
6651
|
-
...
|
|
6651
|
+
...Yn
|
|
6652
6652
|
},
|
|
6653
6653
|
emits: [
|
|
6654
6654
|
"update:internal-model-value",
|
|
@@ -6718,7 +6718,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6718
6718
|
instance: { type: Number, default: 0 },
|
|
6719
6719
|
years: { type: Array, default: () => [] },
|
|
6720
6720
|
months: { type: Array, default: () => [] },
|
|
6721
|
-
...
|
|
6721
|
+
...Yn
|
|
6722
6722
|
},
|
|
6723
6723
|
emits: ["update-month-year", "mount", "reset-flow", "overlay-closed", "overlay-opened"],
|
|
6724
6724
|
setup(n, { expose: e, emit: t }) {
|
|
@@ -6855,7 +6855,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6855
6855
|
value: o[Z.type]
|
|
6856
6856
|
}) : x("", !0),
|
|
6857
6857
|
R.$slots[Z.type] ? x("", !0) : (f(), m(fe, { key: 1 }, [
|
|
6858
|
-
|
|
6858
|
+
Fn(Xe(Z.text), 1)
|
|
6859
6859
|
], 64))
|
|
6860
6860
|
], 42, WB),
|
|
6861
6861
|
p(yn, {
|
|
@@ -6975,7 +6975,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
6975
6975
|
instance: { type: Number, default: 0 },
|
|
6976
6976
|
month: { type: Number, default: 0 },
|
|
6977
6977
|
year: { type: Number, default: 0 },
|
|
6978
|
-
...
|
|
6978
|
+
...Yn
|
|
6979
6979
|
},
|
|
6980
6980
|
emits: [
|
|
6981
6981
|
"select-date",
|
|
@@ -7006,8 +7006,8 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7006
7006
|
});
|
|
7007
7007
|
const F = (Z) => Z ? o.vertical ? "vNext" : "next" : o.vertical ? "vPrevious" : "previous", j = (Z, he) => {
|
|
7008
7008
|
if (o.transitions) {
|
|
7009
|
-
const D = Jt(
|
|
7010
|
-
T.value = ct(Jt(
|
|
7009
|
+
const D = Jt(ur(ce(), o.month, o.year));
|
|
7010
|
+
T.value = ct(Jt(ur(ce(), Z, he)), D) ? A.value[F(!0)] : A.value[F(!1)], b.value = !1, an(() => {
|
|
7011
7011
|
b.value = !0;
|
|
7012
7012
|
});
|
|
7013
7013
|
}
|
|
@@ -7097,7 +7097,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7097
7097
|
index: oe
|
|
7098
7098
|
}) : x("", !0),
|
|
7099
7099
|
Z.$slots["calendar-header"] ? x("", !0) : (f(), m(fe, { key: 1 }, [
|
|
7100
|
-
|
|
7100
|
+
Fn(Xe(D), 1)
|
|
7101
7101
|
], 64))
|
|
7102
7102
|
], 8, $B);
|
|
7103
7103
|
}), 128))
|
|
@@ -7153,7 +7153,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7153
7153
|
date: pe.value
|
|
7154
7154
|
}) : x("", !0),
|
|
7155
7155
|
Z.$slots.day ? x("", !0) : (f(), m(fe, { key: 1 }, [
|
|
7156
|
-
|
|
7156
|
+
Fn(Xe(pe.text), 1)
|
|
7157
7157
|
], 64)),
|
|
7158
7158
|
pe.marker && K.value(pe) ? (f(), m(fe, { key: 2 }, [
|
|
7159
7159
|
Z.$slots.marker ? Qe(Z.$slots, "marker", {
|
|
@@ -7327,13 +7327,13 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7327
7327
|
}
|
|
7328
7328
|
}, Re = (Y, te, V, le) => {
|
|
7329
7329
|
if (n.sixWeeks && Y.length < 6) {
|
|
7330
|
-
const Be = 6 - Y.length, wt = (te.getDay() + 7 - le) % 7, gt = 6 - (V.getDay() + 7 - le) % 7, [Dn,
|
|
7330
|
+
const Be = 6 - Y.length, wt = (te.getDay() + 7 - le) % 7, gt = 6 - (V.getDay() + 7 - le) % 7, [Dn, Ar] = $(wt, gt);
|
|
7331
7331
|
for (let Cn = 1; Cn <= Be; Cn++)
|
|
7332
|
-
if (
|
|
7333
|
-
const
|
|
7332
|
+
if (Ar ? !!(Cn % 2) == Dn : Dn) {
|
|
7333
|
+
const Kn = Y[0].days[0], jr = J(On(Kn.value, -7), qe(te));
|
|
7334
7334
|
Y.unshift({ days: jr });
|
|
7335
7335
|
} else {
|
|
7336
|
-
const
|
|
7336
|
+
const Kn = Y[Y.length - 1], jr = Kn.days[Kn.days.length - 1], vo = J(On(jr.value, 1), qe(te));
|
|
7337
7337
|
Y.push({ days: vo });
|
|
7338
7338
|
}
|
|
7339
7339
|
}
|
|
@@ -7351,13 +7351,13 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7351
7351
|
}
|
|
7352
7352
|
return le;
|
|
7353
7353
|
}, ue = (Y, te) => {
|
|
7354
|
-
const V = [], le = new Date(te, Y), Be = new Date(te, Y + 1, 0), wt = n.weekStart, gt =
|
|
7355
|
-
const Cn = J(
|
|
7354
|
+
const V = [], le = new Date(te, Y), Be = new Date(te, Y + 1, 0), wt = n.weekStart, gt = Ln(le, { weekStartsOn: wt }), Dn = (Ar) => {
|
|
7355
|
+
const Cn = J(Ar, Y);
|
|
7356
7356
|
if (V.push({ days: Cn }), !V[V.length - 1].days.some(
|
|
7357
|
-
(
|
|
7357
|
+
(Kn) => Ue(Jt(Kn.value), Jt(Be))
|
|
7358
7358
|
)) {
|
|
7359
|
-
const
|
|
7360
|
-
Dn(
|
|
7359
|
+
const Kn = On(Ar, 7);
|
|
7360
|
+
Dn(Kn);
|
|
7361
7361
|
}
|
|
7362
7362
|
};
|
|
7363
7363
|
return Dn(gt), Re(V, le, Be, wt);
|
|
@@ -7387,11 +7387,11 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7387
7387
|
if (ze(Y.value) || !w(Y.value, l.value, I.value.fixedStart ? 0 : 1))
|
|
7388
7388
|
return e("invalid-date", Y.value);
|
|
7389
7389
|
o.value = hg(ce(Y.value), l, e, I);
|
|
7390
|
-
},
|
|
7390
|
+
}, qn = (Y, te) => {
|
|
7391
7391
|
if (Qt(), I.value.autoRange) return Se(Y, te);
|
|
7392
7392
|
if (I.value.fixedStart || I.value.fixedEnd) return jt(Y);
|
|
7393
7393
|
o.value[0] ? w(ce(Y.value), l.value) && !ze(Y.value) ? At(ce(Y.value), ce(o.value[0])) ? (o.value.unshift(ce(Y.value)), e("range-end", o.value[0])) : (o.value[1] = ce(Y.value), e("range-end", o.value[1])) : (n.autoApply && e("auto-apply-invalid", Y.value), e("invalid-date", Y.value)) : (o.value[0] = ce(Y.value), e("range-start", o.value[0]));
|
|
7394
|
-
}, vt = (Y = !0) => n.enableSeconds ? Array.isArray(u.seconds) ? Y ? u.seconds[0] : u.seconds[1] : u.seconds : 0,
|
|
7394
|
+
}, vt = (Y = !0) => n.enableSeconds ? Array.isArray(u.seconds) ? Y ? u.seconds[0] : u.seconds[1] : u.seconds : 0, jn = (Y) => {
|
|
7395
7395
|
o.value[Y] = kr(
|
|
7396
7396
|
o.value[Y],
|
|
7397
7397
|
u.hours[Y],
|
|
@@ -7402,11 +7402,11 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7402
7402
|
var Y, te;
|
|
7403
7403
|
o.value[0] && o.value[1] && +((Y = o.value) == null ? void 0 : Y[0]) > +((te = o.value) == null ? void 0 : te[1]) && (o.value.reverse(), e("range-start", o.value[0]), e("range-end", o.value[1]));
|
|
7404
7404
|
}, Qo = () => {
|
|
7405
|
-
o.value.length && (o.value[0] && !o.value[1] ?
|
|
7405
|
+
o.value.length && (o.value[0] && !o.value[1] ? jn(0) : (jn(0), jn(1), r()), di(), l.value = o.value.slice(), ds(o.value, e, n.autoApply, n.modelAuto));
|
|
7406
7406
|
}, gi = (Y, te = !1) => {
|
|
7407
7407
|
if (v(Y.value) || !Y.current && n.hideOffsetDates) return e("invalid-date", Y.value);
|
|
7408
7408
|
if (A.value = JSON.parse(JSON.stringify(Y)), !I.value.enabled) return Ee(Y);
|
|
7409
|
-
Sc(u.hours) && Sc(u.minutes) && !T.value.enabled && (
|
|
7409
|
+
Sc(u.hours) && Sc(u.minutes) && !T.value.enabled && (qn(Y, te), Qo());
|
|
7410
7410
|
}, hi = (Y, te) => {
|
|
7411
7411
|
var V;
|
|
7412
7412
|
L(Y, te.month, te.year, !0), g.value.count && !g.value.solo && xe(Y), e("update-month-year", { instance: Y, month: te.month, year: te.year }), t(g.value.solo ? Y : void 0);
|
|
@@ -7459,7 +7459,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7459
7459
|
}, AE = { key: 0 }, sE = /* @__PURE__ */ it({
|
|
7460
7460
|
__name: "DatePicker",
|
|
7461
7461
|
props: {
|
|
7462
|
-
...
|
|
7462
|
+
...Yn
|
|
7463
7463
|
},
|
|
7464
7464
|
emits: [
|
|
7465
7465
|
"tooltip-open",
|
|
@@ -7549,7 +7549,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7549
7549
|
}, k = (he, D) => {
|
|
7550
7550
|
var oe;
|
|
7551
7551
|
if (!o.range) {
|
|
7552
|
-
const pe = l.value ? l.value : d, $ = D ? new Date(D) : pe, Re = he ?
|
|
7552
|
+
const pe = l.value ? l.value : d, $ = D ? new Date(D) : pe, Re = he ? Ln($, { weekStartsOn: 1 }) : Hd($, { weekStartsOn: 1 });
|
|
7553
7553
|
T({
|
|
7554
7554
|
value: Re,
|
|
7555
7555
|
current: qe($) === A.value(0),
|
|
@@ -7700,7 +7700,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7700
7700
|
filters: l,
|
|
7701
7701
|
props: n,
|
|
7702
7702
|
emit: e
|
|
7703
|
-
}), w = (K, L) => [K, L].map((X) =>
|
|
7703
|
+
}), w = (K, L) => [K, L].map((X) => _n(X, "MMMM", { locale: n.formatLocale })).join("-"), O = de(() => (K) => u.value ? Array.isArray(u.value) ? u.value.some((L) => Bc(K, L)) : Bc(u.value, K) : !1), U = (K) => {
|
|
7704
7704
|
if (A.value.enabled) {
|
|
7705
7705
|
if (Array.isArray(u.value)) {
|
|
7706
7706
|
const L = Ue(K, u.value[0]) || Ue(K, u.value[1]);
|
|
@@ -7759,7 +7759,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7759
7759
|
},
|
|
7760
7760
|
__name: "QuarterPicker",
|
|
7761
7761
|
props: {
|
|
7762
|
-
...
|
|
7762
|
+
...Yn
|
|
7763
7763
|
},
|
|
7764
7764
|
emits: [
|
|
7765
7765
|
"update:internal-model-value",
|
|
@@ -7846,7 +7846,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
7846
7846
|
value: O.value,
|
|
7847
7847
|
text: O.text
|
|
7848
7848
|
}) : (f(), m(fe, { key: 1 }, [
|
|
7849
|
-
|
|
7849
|
+
Fn(Xe(O.text), 1)
|
|
7850
7850
|
], 64))
|
|
7851
7851
|
], 42, cE)
|
|
7852
7852
|
]))), 128))
|
|
@@ -8425,7 +8425,7 @@ const EE = ({
|
|
|
8425
8425
|
if (l.value.autoRange || e.weekPicker) {
|
|
8426
8426
|
if (u.value) {
|
|
8427
8427
|
if (e.hideOffsetDates && !E.current) return !1;
|
|
8428
|
-
const q = On(u.value, +l.value.autoRange), _ =
|
|
8428
|
+
const q = On(u.value, +l.value.autoRange), _ = cr(ce(u.value), e.weekStart);
|
|
8429
8429
|
return e.weekPicker ? Ue(_[1], ce(E.value)) : Ue(q, ce(E.value));
|
|
8430
8430
|
}
|
|
8431
8431
|
return !1;
|
|
@@ -8436,7 +8436,7 @@ const EE = ({
|
|
|
8436
8436
|
if (u.value) {
|
|
8437
8437
|
const q = On(u.value, +l.value.autoRange);
|
|
8438
8438
|
if (e.hideOffsetDates && !E.current) return !1;
|
|
8439
|
-
const _ =
|
|
8439
|
+
const _ = cr(ce(u.value), e.weekStart);
|
|
8440
8440
|
return e.weekPicker ? ct(E.value, _[0]) && At(E.value, _[1]) : ct(E.value, u.value) && At(E.value, q);
|
|
8441
8441
|
}
|
|
8442
8442
|
return !1;
|
|
@@ -8446,7 +8446,7 @@ const EE = ({
|
|
|
8446
8446
|
if (l.value.autoRange || e.weekPicker) {
|
|
8447
8447
|
if (u.value) {
|
|
8448
8448
|
if (e.hideOffsetDates && !E.current) return !1;
|
|
8449
|
-
const q =
|
|
8449
|
+
const q = cr(ce(u.value), e.weekStart);
|
|
8450
8450
|
return e.weekPicker ? Ue(q[0], E.value) : Ue(u.value, E.value);
|
|
8451
8451
|
}
|
|
8452
8452
|
return !1;
|
|
@@ -8479,7 +8479,7 @@ const EE = ({
|
|
|
8479
8479
|
dp__date_hover: j(E)
|
|
8480
8480
|
}), Ae = (E) => {
|
|
8481
8481
|
if (n.value && !Array.isArray(n.value)) {
|
|
8482
|
-
const q =
|
|
8482
|
+
const q = cr(n.value, e.weekStart);
|
|
8483
8483
|
return {
|
|
8484
8484
|
...M(E),
|
|
8485
8485
|
dp__range_start: Ue(q[0], E.value),
|
|
@@ -8492,7 +8492,7 @@ const EE = ({
|
|
|
8492
8492
|
};
|
|
8493
8493
|
}, z = (E) => {
|
|
8494
8494
|
if (n.value && Array.isArray(n.value)) {
|
|
8495
|
-
const q =
|
|
8495
|
+
const q = cr(n.value[0], e.weekStart), _ = n.value[1] ? cr(n.value[1], e.weekStart) : [];
|
|
8496
8496
|
return {
|
|
8497
8497
|
...M(E),
|
|
8498
8498
|
dp__range_start: Ue(q[0], E.value) || Ue(_[0], E.value),
|
|
@@ -8982,10 +8982,10 @@ const EE = ({
|
|
|
8982
8982
|
}, J = (V) => {
|
|
8983
8983
|
B.value = V.shiftKey;
|
|
8984
8984
|
}, ue = () => {
|
|
8985
|
-
!o.disabled && !o.readonly && (M(kc, o), H(!1), A.value = !0, A.value && r("open"), A.value ||
|
|
8985
|
+
!o.disabled && !o.readonly && (M(kc, o), H(!1), A.value = !0, A.value && r("open"), A.value || qn(), q(o.modelValue));
|
|
8986
8986
|
}, Ee = () => {
|
|
8987
8987
|
var V;
|
|
8988
|
-
R.value = "",
|
|
8988
|
+
R.value = "", qn(), (V = d.value) == null || V.setParsedDate(null), r("update:model-value", null), r("update:model-timezone-value", null), r("cleared"), j.value.closeOnClearValue && vt();
|
|
8989
8989
|
}, ze = () => {
|
|
8990
8990
|
const V = E.value;
|
|
8991
8991
|
return !V || !Array.isArray(V) && G(V) ? !0 : Array.isArray(V) ? ae.value.enabled || V.length === 2 && G(V[0]) && G(V[1]) ? !0 : re.value.partialRange && !o.timePicker ? G(V[0]) : !1 : !1;
|
|
@@ -8997,11 +8997,11 @@ const EE = ({
|
|
|
8997
8997
|
d.value && U.value.enabled && d.value.setParsedDate(E.value);
|
|
8998
8998
|
}, jt = (V = !1) => {
|
|
8999
8999
|
o.autoApply && w(E.value) && ze() && (re.value.enabled && Array.isArray(E.value) ? (re.value.partialRange || E.value.length === 2) && Se(V) : Se(V));
|
|
9000
|
-
},
|
|
9000
|
+
}, qn = () => {
|
|
9001
9001
|
U.value.enabled || (E.value = null);
|
|
9002
9002
|
}, vt = () => {
|
|
9003
|
-
F.value.enabled || (A.value && (A.value = !1, z.value = !1, T(!1), S(!1), v(), r("closed"), R.value && q(a.value)),
|
|
9004
|
-
},
|
|
9003
|
+
F.value.enabled || (A.value && (A.value = !1, z.value = !1, T(!1), S(!1), v(), r("closed"), R.value && q(a.value)), qn(), r("blur"));
|
|
9004
|
+
}, jn = (V, le, Be = !1) => {
|
|
9005
9005
|
if (!V) {
|
|
9006
9006
|
E.value = null;
|
|
9007
9007
|
return;
|
|
@@ -9067,7 +9067,7 @@ const EE = ({
|
|
|
9067
9067
|
}, V.$props, {
|
|
9068
9068
|
onClear: Ee,
|
|
9069
9069
|
onOpen: ue,
|
|
9070
|
-
onSetInputDate:
|
|
9070
|
+
onSetInputDate: jn,
|
|
9071
9071
|
onSetEmptyDate: P(_),
|
|
9072
9072
|
onSelectDate: Qt,
|
|
9073
9073
|
onToggle: Qo,
|
|
@@ -9418,7 +9418,7 @@ const Bo = /* @__PURE__ */ ie(UE, [["render", WE]]), XE = {
|
|
|
9418
9418
|
},
|
|
9419
9419
|
getWeapons() {
|
|
9420
9420
|
var n;
|
|
9421
|
-
return (n = this.localWeapons) == null ? void 0 : n.map((e) => ({
|
|
9421
|
+
return console.log(this.localWeapons), (n = this.localWeapons) == null ? void 0 : n.map((e) => ({
|
|
9422
9422
|
text: e.Name,
|
|
9423
9423
|
link: e.Id
|
|
9424
9424
|
}));
|
|
@@ -9533,6 +9533,7 @@ function uQ(n, e, t, r, o, i) {
|
|
|
9533
9533
|
}, null, 8, ["invalid", "setDate", "onUpdate:selectedDate"])
|
|
9534
9534
|
]),
|
|
9535
9535
|
h("div", iQ, [
|
|
9536
|
+
Fn(Xe(i.getWeapons) + " ", 1),
|
|
9536
9537
|
p(a, {
|
|
9537
9538
|
color: "quinary",
|
|
9538
9539
|
invalid: o.validation.WeaponId,
|
|
@@ -10452,6 +10453,7 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
|
|
|
10452
10453
|
function Qv(n, e, t, r, o, i) {
|
|
10453
10454
|
const A = y("BasicEventInfo"), a = y("PoolConfiguration"), l = y("DirectEliminationPromotion"), c = y("DirectElimination");
|
|
10454
10455
|
return f(), m("div", Ev, [
|
|
10456
|
+
Fn(" BasicEventInfo = " + Xe(o.localWeapons) + " ", 1),
|
|
10455
10457
|
o.currentStep === 1 ? (f(), se(A, {
|
|
10456
10458
|
key: 0,
|
|
10457
10459
|
event: o.localEvent,
|
|
@@ -11689,7 +11691,7 @@ function bw() {
|
|
|
11689
11691
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11690
11692
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11691
11693
|
}
|
|
11692
|
-
var Cs = typeof window < "u" && typeof window.document < "u",
|
|
11694
|
+
var Cs = typeof window < "u" && typeof window.document < "u", tr = Cs ? window : {}, Dl = Cs && tr.document.documentElement ? "ontouchstart" in tr.document.documentElement : !1, Sl = Cs ? "PointerEvent" in tr : !1, tt = "cropper", kl = "all", yg = "crop", bg = "move", xg = "zoom", Kr = "e", Ur = "w", bo = "s", fr = "n", mi = "ne", Bi = "nw", Ei = "se", Qi = "sw", Da = "".concat(tt, "-crop"), Fc = "".concat(tt, "-disabled"), en = "".concat(tt, "-hidden"), Lc = "".concat(tt, "-hide"), xw = "".concat(tt, "-invisible"), YA = "".concat(tt, "-modal"), Sa = "".concat(tt, "-move"), ji = "".concat(tt, "Action"), mA = "".concat(tt, "Preview"), Ml = "crop", Dg = "move", Sg = "none", ka = "crop", Ma = "cropend", Oa = "cropmove", Ta = "cropstart", Hc = "dblclick", Dw = Dl ? "touchstart" : "mousedown", Sw = Dl ? "touchmove" : "mousemove", kw = Dl ? "touchend touchcancel" : "mouseup", Nc = Sl ? "pointerdown" : Dw, Yc = Sl ? "pointermove" : Sw, qc = Sl ? "pointerup pointercancel" : kw, jc = "ready", Kc = "resize", Uc = "wheel", Ra = "zoom", Gc = "image/jpeg", Mw = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Ow = /^data:/, Tw = /^data:image\/jpeg;base64,/, Rw = /^img|canvas$/i, kg = 200, Mg = 100, Jc = {
|
|
11693
11695
|
// Define the view mode of the cropper
|
|
11694
11696
|
viewMode: 0,
|
|
11695
11697
|
// 0, 1, 2, 3
|
|
@@ -11760,7 +11762,7 @@ var Cs = typeof window < "u" && typeof window.document < "u", er = Cs ? window :
|
|
|
11760
11762
|
cropend: null,
|
|
11761
11763
|
crop: null,
|
|
11762
11764
|
zoom: null
|
|
11763
|
-
}, Pw = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', zw = Number.isNaN ||
|
|
11765
|
+
}, Pw = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', zw = Number.isNaN || tr.isNaN;
|
|
11764
11766
|
function Ke(n) {
|
|
11765
11767
|
return typeof n == "number" && !zw(n);
|
|
11766
11768
|
}
|
|
@@ -11837,11 +11839,11 @@ function bt(n, e) {
|
|
|
11837
11839
|
t ? t.indexOf(e) < 0 && (n.className = "".concat(t, " ").concat(e)) : n.className = e;
|
|
11838
11840
|
}
|
|
11839
11841
|
}
|
|
11840
|
-
function
|
|
11842
|
+
function $n(n, e) {
|
|
11841
11843
|
if (e) {
|
|
11842
11844
|
if (Ke(n.length)) {
|
|
11843
11845
|
ht(n, function(t) {
|
|
11844
|
-
|
|
11846
|
+
$n(t, e);
|
|
11845
11847
|
});
|
|
11846
11848
|
return;
|
|
11847
11849
|
}
|
|
@@ -11860,7 +11862,7 @@ function Fo(n, e, t) {
|
|
|
11860
11862
|
});
|
|
11861
11863
|
return;
|
|
11862
11864
|
}
|
|
11863
|
-
t ? bt(n, e) :
|
|
11865
|
+
t ? bt(n, e) : $n(n, e);
|
|
11864
11866
|
}
|
|
11865
11867
|
}
|
|
11866
11868
|
var qw = /([a-z\d])([A-Z])/g;
|
|
@@ -11906,7 +11908,7 @@ var Tg = /\s\s*/, Rg = function() {
|
|
|
11906
11908
|
e = i;
|
|
11907
11909
|
}
|
|
11908
11910
|
});
|
|
11909
|
-
|
|
11911
|
+
tr.addEventListener("test", t, r), tr.removeEventListener("test", t, r);
|
|
11910
11912
|
}
|
|
11911
11913
|
return n;
|
|
11912
11914
|
}();
|
|
@@ -11950,7 +11952,7 @@ function Pg(n) {
|
|
|
11950
11952
|
top: e.top + (window.pageYOffset - document.documentElement.clientTop)
|
|
11951
11953
|
};
|
|
11952
11954
|
}
|
|
11953
|
-
var Xs =
|
|
11955
|
+
var Xs = tr.location, Kw = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
|
11954
11956
|
function Wc(n) {
|
|
11955
11957
|
var e = n.match(Kw);
|
|
11956
11958
|
return e !== null && (e[1] !== Xs.protocol || e[2] !== Xs.hostname || e[3] !== Xs.port);
|
|
@@ -12139,7 +12141,7 @@ var ty = {
|
|
|
12139
12141
|
},
|
|
12140
12142
|
initContainer: function() {
|
|
12141
12143
|
var e = this.element, t = this.options, r = this.container, o = this.cropper, i = Number(t.minContainerWidth), A = Number(t.minContainerHeight);
|
|
12142
|
-
bt(o, en),
|
|
12144
|
+
bt(o, en), $n(e, en);
|
|
12143
12145
|
var a = {
|
|
12144
12146
|
width: Math.max(r.offsetWidth, i >= 0 ? i : kg),
|
|
12145
12147
|
height: Math.max(r.offsetHeight, A >= 0 ? A : Mg)
|
|
@@ -12147,7 +12149,7 @@ var ty = {
|
|
|
12147
12149
|
this.containerData = a, wr(o, {
|
|
12148
12150
|
width: a.width,
|
|
12149
12151
|
height: a.height
|
|
12150
|
-
}), bt(e, en),
|
|
12152
|
+
}), bt(e, en), $n(o, en);
|
|
12151
12153
|
},
|
|
12152
12154
|
// Canvas (image wrapper)
|
|
12153
12155
|
initCanvas: function() {
|
|
@@ -12472,7 +12474,7 @@ var ty = {
|
|
|
12472
12474
|
S = !1;
|
|
12473
12475
|
break;
|
|
12474
12476
|
}
|
|
12475
|
-
v = Pg(this.cropper), c = G.startX - v.left, u = G.startY - v.top, d = i.minWidth, g = i.minHeight, w.x > 0 ? a = w.y > 0 ? Ei : mi : w.x < 0 && (c -= d, a = w.y > 0 ? Qi : Bi), w.y < 0 && (u -= g), this.cropped || (
|
|
12477
|
+
v = Pg(this.cropper), c = G.startX - v.left, u = G.startY - v.top, d = i.minWidth, g = i.minHeight, w.x > 0 ? a = w.y > 0 ? Ei : mi : w.x < 0 && (c -= d, a = w.y > 0 ? Qi : Bi), w.y < 0 && (u -= g), this.cropped || ($n(this.cropBox, en), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
|
12476
12478
|
break;
|
|
12477
12479
|
}
|
|
12478
12480
|
S && (i.width = d, i.height = g, i.left = c, i.top = u, this.action = a, this.renderCropBox()), ht(A, function(U) {
|
|
@@ -12482,7 +12484,7 @@ var ty = {
|
|
|
12482
12484
|
}, Ay = {
|
|
12483
12485
|
// Show the crop box manually
|
|
12484
12486
|
crop: function() {
|
|
12485
|
-
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && bt(this.dragBox, YA),
|
|
12487
|
+
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && bt(this.dragBox, YA), $n(this.cropBox, en), this.setCropBoxData(this.initialCropBoxData)), this;
|
|
12486
12488
|
},
|
|
12487
12489
|
// Reset the image and crop box to their initial states
|
|
12488
12490
|
reset: function() {
|
|
@@ -12495,7 +12497,7 @@ var ty = {
|
|
|
12495
12497
|
top: 0,
|
|
12496
12498
|
width: 0,
|
|
12497
12499
|
height: 0
|
|
12498
|
-
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(),
|
|
12500
|
+
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), $n(this.dragBox, YA), bt(this.cropBox, en)), this;
|
|
12499
12501
|
},
|
|
12500
12502
|
/**
|
|
12501
12503
|
* Replace the image's src and rebuild the cropper
|
|
@@ -12511,7 +12513,7 @@ var ty = {
|
|
|
12511
12513
|
},
|
|
12512
12514
|
// Enable (unfreeze) the cropper
|
|
12513
12515
|
enable: function() {
|
|
12514
|
-
return this.ready && this.disabled && (this.disabled = !1,
|
|
12516
|
+
return this.ready && this.disabled && (this.disabled = !1, $n(this.cropper, Fc)), this;
|
|
12515
12517
|
},
|
|
12516
12518
|
// Disable (freeze) the cropper
|
|
12517
12519
|
disable: function() {
|
|
@@ -12792,7 +12794,7 @@ var ty = {
|
|
|
12792
12794
|
}
|
|
12793
12795
|
return this;
|
|
12794
12796
|
}
|
|
12795
|
-
}, sy =
|
|
12797
|
+
}, sy = tr.Cropper, Fg = /* @__PURE__ */ function() {
|
|
12796
12798
|
function n(e) {
|
|
12797
12799
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12798
12800
|
if (Bw(this, n), !e || !Rw.test(e.tagName))
|
|
@@ -12861,7 +12863,7 @@ var ty = {
|
|
|
12861
12863
|
value: function() {
|
|
12862
12864
|
var t = this, r = this.image;
|
|
12863
12865
|
r.onload = null, r.onerror = null, this.sizing = !0;
|
|
12864
|
-
var o =
|
|
12866
|
+
var o = tr.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(tr.navigator.userAgent), i = function(c, u) {
|
|
12865
12867
|
nt(t.imageData, {
|
|
12866
12868
|
naturalWidth: c,
|
|
12867
12869
|
naturalHeight: u,
|
|
@@ -12890,7 +12892,7 @@ var ty = {
|
|
|
12890
12892
|
var t = this.element, r = this.options, o = this.image, i = t.parentNode, A = document.createElement("div");
|
|
12891
12893
|
A.innerHTML = Pw;
|
|
12892
12894
|
var a = A.querySelector(".".concat(tt, "-container")), l = a.querySelector(".".concat(tt, "-canvas")), c = a.querySelector(".".concat(tt, "-drag-box")), u = a.querySelector(".".concat(tt, "-crop-box")), d = u.querySelector(".".concat(tt, "-face"));
|
|
12893
|
-
this.container = i, this.cropper = a, this.canvas = l, this.dragBox = c, this.cropBox = u, this.viewBox = a.querySelector(".".concat(tt, "-view-box")), this.face = d, l.appendChild(o), bt(t, en), i.insertBefore(a, t.nextSibling),
|
|
12895
|
+
this.container = i, this.cropper = a, this.canvas = l, this.dragBox = c, this.cropBox = u, this.viewBox = a.querySelector(".".concat(tt, "-view-box")), this.face = d, l.appendChild(o), bt(t, en), i.insertBefore(a, t.nextSibling), $n(o, Lc), this.initPreview(), this.bind(), r.initialAspectRatio = Math.max(0, r.initialAspectRatio) || NaN, r.aspectRatio = Math.max(0, r.aspectRatio) || NaN, r.viewMode = Math.max(0, Math.min(3, Math.round(r.viewMode))) || 0, bt(u, en), r.guides || bt(u.getElementsByClassName("".concat(tt, "-dashed")), en), r.center || bt(u.getElementsByClassName("".concat(tt, "-center")), en), r.background && bt(a, "".concat(tt, "-bg")), r.highlight || bt(d, xw), r.cropBoxMovable && (bt(d, Sa), Ki(d, ji, kl)), r.cropBoxResizable || (bt(u.getElementsByClassName("".concat(tt, "-line")), en), bt(u.getElementsByClassName("".concat(tt, "-point")), en)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), $t(r.ready) && fn(t, jc, r.ready, {
|
|
12894
12896
|
once: !0
|
|
12895
12897
|
}), qo(t, jc);
|
|
12896
12898
|
}
|
|
@@ -12901,7 +12903,7 @@ var ty = {
|
|
|
12901
12903
|
if (this.ready) {
|
|
12902
12904
|
this.ready = !1, this.unbind(), this.resetPreview();
|
|
12903
12905
|
var t = this.cropper.parentNode;
|
|
12904
|
-
t && t.removeChild(this.cropper),
|
|
12906
|
+
t && t.removeChild(this.cropper), $n(this.element, en);
|
|
12905
12907
|
}
|
|
12906
12908
|
}
|
|
12907
12909
|
}, {
|
|
@@ -16409,7 +16411,7 @@ class br extends qt {
|
|
|
16409
16411
|
return pt.fromReplace(e, this.from, this.to, i);
|
|
16410
16412
|
}
|
|
16411
16413
|
invert() {
|
|
16412
|
-
return new
|
|
16414
|
+
return new Zn(this.from, this.to, this.mark);
|
|
16413
16415
|
}
|
|
16414
16416
|
map(e) {
|
|
16415
16417
|
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
@@ -16436,7 +16438,7 @@ class br extends qt {
|
|
|
16436
16438
|
}
|
|
16437
16439
|
}
|
|
16438
16440
|
qt.jsonID("addMark", br);
|
|
16439
|
-
class
|
|
16441
|
+
class Zn extends qt {
|
|
16440
16442
|
/**
|
|
16441
16443
|
Create a mark-removing step.
|
|
16442
16444
|
*/
|
|
@@ -16452,10 +16454,10 @@ class Xn extends qt {
|
|
|
16452
16454
|
}
|
|
16453
16455
|
map(e) {
|
|
16454
16456
|
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
16455
|
-
return t.deleted && r.deleted || t.pos >= r.pos ? null : new
|
|
16457
|
+
return t.deleted && r.deleted || t.pos >= r.pos ? null : new Zn(t.pos, r.pos, this.mark);
|
|
16456
16458
|
}
|
|
16457
16459
|
merge(e) {
|
|
16458
|
-
return e instanceof
|
|
16460
|
+
return e instanceof Zn && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Zn(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
16459
16461
|
}
|
|
16460
16462
|
toJSON() {
|
|
16461
16463
|
return {
|
|
@@ -16471,10 +16473,10 @@ class Xn extends qt {
|
|
|
16471
16473
|
static fromJSON(e, t) {
|
|
16472
16474
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
16473
16475
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
16474
|
-
return new
|
|
16476
|
+
return new Zn(t.from, t.to, e.markFromJSON(t.mark));
|
|
16475
16477
|
}
|
|
16476
16478
|
}
|
|
16477
|
-
qt.jsonID("removeMark",
|
|
16479
|
+
qt.jsonID("removeMark", Zn);
|
|
16478
16480
|
class xr extends qt {
|
|
16479
16481
|
/**
|
|
16480
16482
|
Create a node mark step.
|
|
@@ -16687,7 +16689,7 @@ function Vy(n, e, t, r) {
|
|
|
16687
16689
|
if (!r.isInSet(d) && u.type.allowsMarkType(r.type)) {
|
|
16688
16690
|
let g = Math.max(c, e), C = Math.min(c + l.nodeSize, t), I = r.addToSet(d);
|
|
16689
16691
|
for (let B = 0; B < d.length; B++)
|
|
16690
|
-
d[B].isInSet(I) || (A && A.to == g && A.mark.eq(d[B]) ? A.to = C : o.push(A = new
|
|
16692
|
+
d[B].isInSet(I) || (A && A.to == g && A.mark.eq(d[B]) ? A.to = C : o.push(A = new Zn(g, C, d[B])));
|
|
16691
16693
|
a && a.to == g ? a.to = C : i.push(a = new br(g, C, r));
|
|
16692
16694
|
}
|
|
16693
16695
|
}), o.forEach((l) => n.step(l)), i.forEach((l) => n.step(l));
|
|
@@ -16715,7 +16717,7 @@ function Wy(n, e, t, r) {
|
|
|
16715
16717
|
g ? (g.to = c, g.step = i) : o.push({ style: d, from: Math.max(a, e), to: c, step: i });
|
|
16716
16718
|
}
|
|
16717
16719
|
}
|
|
16718
|
-
}), o.forEach((A) => n.step(new
|
|
16720
|
+
}), o.forEach((A) => n.step(new Zn(A.from, A.to, A.style)));
|
|
16719
16721
|
}
|
|
16720
16722
|
function ah(n, e, t, r = t.contentMatch, o = !0) {
|
|
16721
16723
|
let i = n.doc.nodeAt(e), A = [], a = e + 1;
|
|
@@ -16726,7 +16728,7 @@ function ah(n, e, t, r = t.contentMatch, o = !0) {
|
|
|
16726
16728
|
else {
|
|
16727
16729
|
r = d;
|
|
16728
16730
|
for (let g = 0; g < c.marks.length; g++)
|
|
16729
|
-
t.allowsMarkType(c.marks[g].type) || n.step(new
|
|
16731
|
+
t.allowsMarkType(c.marks[g].type) || n.step(new Zn(a, u, c.marks[g]));
|
|
16730
16732
|
if (o && c.isText && t.whitespace != "pre") {
|
|
16731
16733
|
let g, C = /\r?\n|\r/g, I;
|
|
16732
16734
|
for (; g = C.exec(c.text); )
|
|
@@ -18313,7 +18315,7 @@ const oa = /* @__PURE__ */ Object.create(null);
|
|
|
18313
18315
|
function Ch(n) {
|
|
18314
18316
|
return n in oa ? n + "$" + ++oa[n] : (oa[n] = 0, n + "$");
|
|
18315
18317
|
}
|
|
18316
|
-
class
|
|
18318
|
+
class ir {
|
|
18317
18319
|
/**
|
|
18318
18320
|
Create a plugin key.
|
|
18319
18321
|
*/
|
|
@@ -18343,7 +18345,7 @@ const Tt = function(n) {
|
|
|
18343
18345
|
return e && e.nodeType == 11 ? e.host : e;
|
|
18344
18346
|
};
|
|
18345
18347
|
let Ya = null;
|
|
18346
|
-
const
|
|
18348
|
+
const ar = function(n, e, t) {
|
|
18347
18349
|
let r = Ya || (Ya = document.createRange());
|
|
18348
18350
|
return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
|
|
18349
18351
|
}, Bb = function() {
|
|
@@ -18355,7 +18357,7 @@ function Iu(n, e, t, r, o) {
|
|
|
18355
18357
|
for (; ; ) {
|
|
18356
18358
|
if (n == t && e == r)
|
|
18357
18359
|
return !0;
|
|
18358
|
-
if (e == (o < 0 ? 0 :
|
|
18360
|
+
if (e == (o < 0 ? 0 : Wn(n))) {
|
|
18359
18361
|
let i = n.parentNode;
|
|
18360
18362
|
if (!i || i.nodeType != 1 || uA(n) || Eb.test(n.nodeName) || n.contentEditable == "false")
|
|
18361
18363
|
return !1;
|
|
@@ -18363,12 +18365,12 @@ function Iu(n, e, t, r, o) {
|
|
|
18363
18365
|
} else if (n.nodeType == 1) {
|
|
18364
18366
|
if (n = n.childNodes[e + (o < 0 ? -1 : 0)], n.contentEditable == "false")
|
|
18365
18367
|
return !1;
|
|
18366
|
-
e = o < 0 ?
|
|
18368
|
+
e = o < 0 ? Wn(n) : 0;
|
|
18367
18369
|
} else
|
|
18368
18370
|
return !1;
|
|
18369
18371
|
}
|
|
18370
18372
|
}
|
|
18371
|
-
function
|
|
18373
|
+
function Wn(n) {
|
|
18372
18374
|
return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
|
|
18373
18375
|
}
|
|
18374
18376
|
function Qb(n, e) {
|
|
@@ -18378,7 +18380,7 @@ function Qb(n, e) {
|
|
|
18378
18380
|
if (n.nodeType == 1 && e > 0) {
|
|
18379
18381
|
if (n.contentEditable == "false")
|
|
18380
18382
|
return null;
|
|
18381
|
-
n = n.childNodes[e - 1], e =
|
|
18383
|
+
n = n.childNodes[e - 1], e = Wn(n);
|
|
18382
18384
|
} else if (n.parentNode && !uA(n))
|
|
18383
18385
|
e = Tt(n), n = n.parentNode;
|
|
18384
18386
|
else
|
|
@@ -18400,13 +18402,13 @@ function vb(n, e) {
|
|
|
18400
18402
|
}
|
|
18401
18403
|
}
|
|
18402
18404
|
function wb(n, e, t) {
|
|
18403
|
-
for (let r = e == 0, o = e ==
|
|
18405
|
+
for (let r = e == 0, o = e == Wn(n); r || o; ) {
|
|
18404
18406
|
if (n == t)
|
|
18405
18407
|
return !0;
|
|
18406
18408
|
let i = Tt(n);
|
|
18407
18409
|
if (n = n.parentNode, !n)
|
|
18408
18410
|
return !1;
|
|
18409
|
-
r = r && i == 0, o = o && i ==
|
|
18411
|
+
r = r && i == 0, o = o && i == Wn(n);
|
|
18410
18412
|
}
|
|
18411
18413
|
}
|
|
18412
18414
|
function uA(n) {
|
|
@@ -18442,9 +18444,9 @@ function bb(n, e, t) {
|
|
|
18442
18444
|
return { node: r.startContainer, offset: r.startOffset };
|
|
18443
18445
|
}
|
|
18444
18446
|
}
|
|
18445
|
-
const
|
|
18446
|
-
|
|
18447
|
-
const Ka = !on && /Chrome\/(\d+)/.exec(Nr), Ht = !!Ka, fh = Ka ? +Ka[1] : 0, Vt = !on && !!
|
|
18447
|
+
const nr = typeof navigator < "u" ? navigator : null, fu = typeof document < "u" ? document : null, Nr = nr && nr.userAgent || "", qa = /Edge\/(\d+)/.exec(Nr), Ih = /MSIE \d/.exec(Nr), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nr), on = !!(Ih || ja || qa), Or = Ih ? document.documentMode : ja ? +ja[1] : qa ? +qa[1] : 0, Hn = !on && /gecko\/(\d+)/i.test(Nr);
|
|
18448
|
+
Hn && +(/Firefox\/(\d+)/.exec(Nr) || [0, 0])[1];
|
|
18449
|
+
const Ka = !on && /Chrome\/(\d+)/.exec(Nr), Ht = !!Ka, fh = Ka ? +Ka[1] : 0, Vt = !on && !!nr && /Apple Computer/.test(nr.vendor), ti = Vt && (/Mobile\/\w+/.test(Nr) || !!nr && nr.maxTouchPoints > 2), mn = ti || (nr ? /Mac/.test(nr.platform) : !1), xb = nr ? /Win/.test(nr.platform) : !1, Mn = /Android \d/.test(Nr), dA = !!fu && "webkitFontSmoothing" in fu.documentElement.style, Db = dA ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
18448
18450
|
function Sb(n) {
|
|
18449
18451
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
18450
18452
|
return e ? {
|
|
@@ -18459,7 +18461,7 @@ function Sb(n) {
|
|
|
18459
18461
|
bottom: n.documentElement.clientHeight
|
|
18460
18462
|
};
|
|
18461
18463
|
}
|
|
18462
|
-
function
|
|
18464
|
+
function sr(n, e) {
|
|
18463
18465
|
return typeof n == "number" ? n : n[e];
|
|
18464
18466
|
}
|
|
18465
18467
|
function kb(n) {
|
|
@@ -18477,7 +18479,7 @@ function mu(n, e, t) {
|
|
|
18477
18479
|
if (A.nodeType != 1)
|
|
18478
18480
|
continue;
|
|
18479
18481
|
let a = A, l = a == i.body, c = l ? Sb(i) : kb(a), u = 0, d = 0;
|
|
18480
|
-
if (e.top < c.top +
|
|
18482
|
+
if (e.top < c.top + sr(r, "top") ? d = -(c.top - e.top + sr(o, "top")) : e.bottom > c.bottom - sr(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + sr(o, "top") - c.top : e.bottom - c.bottom + sr(o, "bottom")), e.left < c.left + sr(r, "left") ? u = -(c.left - e.left + sr(o, "left")) : e.right > c.right - sr(r, "right") && (u = e.right - c.right + sr(o, "right")), u || d)
|
|
18481
18483
|
if (l)
|
|
18482
18484
|
i.defaultView.scrollBy(u, d);
|
|
18483
18485
|
else {
|
|
@@ -18540,7 +18542,7 @@ function Eh(n, e) {
|
|
|
18540
18542
|
if (u.nodeType == 1)
|
|
18541
18543
|
g = u.getClientRects();
|
|
18542
18544
|
else if (u.nodeType == 3)
|
|
18543
|
-
g =
|
|
18545
|
+
g = ar(u).getClientRects();
|
|
18544
18546
|
else
|
|
18545
18547
|
continue;
|
|
18546
18548
|
for (let C = 0; C < g.length; C++) {
|
|
@@ -18632,7 +18634,7 @@ function Lb(n, e) {
|
|
|
18632
18634
|
for (let c = A; r && c; c = Ji(c))
|
|
18633
18635
|
c.draggable && (r = void 0);
|
|
18634
18636
|
if (A = Pb(A, e), r) {
|
|
18635
|
-
if (
|
|
18637
|
+
if (Hn && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
|
|
18636
18638
|
let u = r.childNodes[o], d;
|
|
18637
18639
|
u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && o++;
|
|
18638
18640
|
}
|
|
@@ -18657,14 +18659,14 @@ function mr(n, e) {
|
|
|
18657
18659
|
}
|
|
18658
18660
|
const Hb = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
18659
18661
|
function vh(n, e, t) {
|
|
18660
|
-
let { node: r, offset: o, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), A = dA ||
|
|
18662
|
+
let { node: r, offset: o, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), A = dA || Hn;
|
|
18661
18663
|
if (r.nodeType == 3)
|
|
18662
18664
|
if (A && (Hb.test(r.nodeValue) || (t < 0 ? !o : o == r.nodeValue.length))) {
|
|
18663
|
-
let l = mr(
|
|
18664
|
-
if (
|
|
18665
|
-
let c = mr(
|
|
18665
|
+
let l = mr(ar(r, o, o), t);
|
|
18666
|
+
if (Hn && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
|
|
18667
|
+
let c = mr(ar(r, o - 1, o - 1), -1);
|
|
18666
18668
|
if (c.top == l.top) {
|
|
18667
|
-
let u = mr(
|
|
18669
|
+
let u = mr(ar(r, o, o + 1), -1);
|
|
18668
18670
|
if (u.top != l.top)
|
|
18669
18671
|
return vi(u, u.left < c.left);
|
|
18670
18672
|
}
|
|
@@ -18672,35 +18674,35 @@ function vh(n, e, t) {
|
|
|
18672
18674
|
return l;
|
|
18673
18675
|
} else {
|
|
18674
18676
|
let l = o, c = o, u = t < 0 ? 1 : -1;
|
|
18675
|
-
return t < 0 && !o ? (c++, u = -1) : t >= 0 && o == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : c++, vi(mr(
|
|
18677
|
+
return t < 0 && !o ? (c++, u = -1) : t >= 0 && o == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : c++, vi(mr(ar(r, l, c), u), u < 0);
|
|
18676
18678
|
}
|
|
18677
18679
|
if (!n.state.doc.resolve(e - (i || 0)).parent.inlineContent) {
|
|
18678
|
-
if (i == null && o && (t < 0 || o ==
|
|
18680
|
+
if (i == null && o && (t < 0 || o == Wn(r))) {
|
|
18679
18681
|
let l = r.childNodes[o - 1];
|
|
18680
18682
|
if (l.nodeType == 1)
|
|
18681
18683
|
return ia(l.getBoundingClientRect(), !1);
|
|
18682
18684
|
}
|
|
18683
|
-
if (i == null && o <
|
|
18685
|
+
if (i == null && o < Wn(r)) {
|
|
18684
18686
|
let l = r.childNodes[o];
|
|
18685
18687
|
if (l.nodeType == 1)
|
|
18686
18688
|
return ia(l.getBoundingClientRect(), !0);
|
|
18687
18689
|
}
|
|
18688
18690
|
return ia(r.getBoundingClientRect(), t >= 0);
|
|
18689
18691
|
}
|
|
18690
|
-
if (i == null && o && (t < 0 || o ==
|
|
18691
|
-
let l = r.childNodes[o - 1], c = l.nodeType == 3 ?
|
|
18692
|
+
if (i == null && o && (t < 0 || o == Wn(r))) {
|
|
18693
|
+
let l = r.childNodes[o - 1], c = l.nodeType == 3 ? ar(l, Wn(l) - (A ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
18692
18694
|
if (c)
|
|
18693
18695
|
return vi(mr(c, 1), !1);
|
|
18694
18696
|
}
|
|
18695
|
-
if (i == null && o <
|
|
18697
|
+
if (i == null && o < Wn(r)) {
|
|
18696
18698
|
let l = r.childNodes[o];
|
|
18697
18699
|
for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
|
|
18698
18700
|
l = l.nextSibling;
|
|
18699
|
-
let c = l ? l.nodeType == 3 ?
|
|
18701
|
+
let c = l ? l.nodeType == 3 ? ar(l, 0, A ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
18700
18702
|
if (c)
|
|
18701
18703
|
return vi(mr(c, -1), !0);
|
|
18702
18704
|
}
|
|
18703
|
-
return vi(mr(r.nodeType == 3 ?
|
|
18705
|
+
return vi(mr(r.nodeType == 3 ? ar(r) : r, -t), t >= 0);
|
|
18704
18706
|
}
|
|
18705
18707
|
function vi(n, e) {
|
|
18706
18708
|
if (n.width == 0)
|
|
@@ -18743,7 +18745,7 @@ function Nb(n, e, t) {
|
|
|
18743
18745
|
if (a.nodeType == 1)
|
|
18744
18746
|
l = a.getClientRects();
|
|
18745
18747
|
else if (a.nodeType == 3)
|
|
18746
|
-
l =
|
|
18748
|
+
l = ar(a, 0, a.nodeValue.length).getClientRects();
|
|
18747
18749
|
else
|
|
18748
18750
|
continue;
|
|
18749
18751
|
for (let c = 0; c < l.length; c++) {
|
|
@@ -18776,7 +18778,7 @@ let Eu = null, Qu = null, vu = !1;
|
|
|
18776
18778
|
function jb(n, e, t) {
|
|
18777
18779
|
return Eu == e && Qu == t ? vu : (Eu = e, Qu = t, vu = t == "up" || t == "down" ? Nb(n, e, t) : qb(n, e, t));
|
|
18778
18780
|
}
|
|
18779
|
-
const En = 0, wu = 1, $r = 2,
|
|
18781
|
+
const En = 0, wu = 1, $r = 2, rr = 3;
|
|
18780
18782
|
class gA {
|
|
18781
18783
|
constructor(e, t, r, o) {
|
|
18782
18784
|
this.parent = e, this.children = t, this.dom = r, this.contentDOM = o, this.dirty = En, r.pmViewDesc = this;
|
|
@@ -19030,7 +19032,7 @@ class gA {
|
|
|
19030
19032
|
C = B;
|
|
19031
19033
|
}
|
|
19032
19034
|
let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), c = r.getSelection(), u = !1;
|
|
19033
|
-
if ((
|
|
19035
|
+
if ((Hn || Vt) && e == t) {
|
|
19034
19036
|
let { node: g, offset: C } = a;
|
|
19035
19037
|
if (g.nodeType == 3) {
|
|
19036
19038
|
if (u = !!(C && g.nodeValue[C - 1] == `
|
|
@@ -19049,7 +19051,7 @@ class gA {
|
|
|
19049
19051
|
u = I && (I.nodeName == "BR" || I.contentEditable == "false");
|
|
19050
19052
|
}
|
|
19051
19053
|
}
|
|
19052
|
-
if (
|
|
19054
|
+
if (Hn && c.focusNode && c.focusNode != l.node && c.focusNode.nodeType == 1) {
|
|
19053
19055
|
let g = c.focusNode.childNodes[c.focusOffset];
|
|
19054
19056
|
g && g.contentEditable == "false" && (o = !0);
|
|
19055
19057
|
}
|
|
@@ -19086,10 +19088,10 @@ class gA {
|
|
|
19086
19088
|
if (r == A ? e <= A && t >= r : e < A && t > r) {
|
|
19087
19089
|
let a = r + i.border, l = A - i.border;
|
|
19088
19090
|
if (e >= a && t <= l) {
|
|
19089
|
-
this.dirty = e == r || t == A ? $r : wu, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty =
|
|
19091
|
+
this.dirty = e == r || t == A ? $r : wu, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = rr : i.markDirty(e - a, t - a);
|
|
19090
19092
|
return;
|
|
19091
19093
|
} else
|
|
19092
|
-
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? $r :
|
|
19094
|
+
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? $r : rr;
|
|
19093
19095
|
}
|
|
19094
19096
|
r = A;
|
|
19095
19097
|
}
|
|
@@ -19178,10 +19180,10 @@ class ho extends gA {
|
|
|
19178
19180
|
return (!A || !A.dom) && (A = Eo.renderSpec(document, t.type.spec.toDOM(t, r), null, t.attrs)), new ho(e, t, A.dom, A.contentDOM || A.dom);
|
|
19179
19181
|
}
|
|
19180
19182
|
parseRule() {
|
|
19181
|
-
return this.dirty &
|
|
19183
|
+
return this.dirty & rr || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
19182
19184
|
}
|
|
19183
19185
|
matchesMark(e) {
|
|
19184
|
-
return this.dirty !=
|
|
19186
|
+
return this.dirty != rr && this.mark.eq(e);
|
|
19185
19187
|
}
|
|
19186
19188
|
markDirty(e, t) {
|
|
19187
19189
|
if (super.markDirty(e, t), this.dirty != En) {
|
|
@@ -19302,7 +19304,7 @@ class Tr extends gA {
|
|
|
19302
19304
|
// If this desc must be updated to match the given node decoration,
|
|
19303
19305
|
// do so and return true.
|
|
19304
19306
|
update(e, t, r, o) {
|
|
19305
|
-
return this.dirty ==
|
|
19307
|
+
return this.dirty == rr || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, o), !0);
|
|
19306
19308
|
}
|
|
19307
19309
|
updateInner(e, t, r, o) {
|
|
19308
19310
|
this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(o, this.posAtStart), this.dirty = En;
|
|
@@ -19341,7 +19343,7 @@ class Qs extends Tr {
|
|
|
19341
19343
|
return { skip: e || !0 };
|
|
19342
19344
|
}
|
|
19343
19345
|
update(e, t, r, o) {
|
|
19344
|
-
return this.dirty ==
|
|
19346
|
+
return this.dirty == rr || this.dirty != En && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != En || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, o.trackWrites == this.nodeDOM && (o.trackWrites = null)), this.node = e, this.dirty = En, !0);
|
|
19345
19347
|
}
|
|
19346
19348
|
inParent() {
|
|
19347
19349
|
let e = this.parent.contentDOM;
|
|
@@ -19364,7 +19366,7 @@ class Qs extends Tr {
|
|
|
19364
19366
|
return new Qs(this.parent, o, this.outerDeco, this.innerDeco, i, i, r);
|
|
19365
19367
|
}
|
|
19366
19368
|
markDirty(e, t) {
|
|
19367
|
-
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
19369
|
+
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = rr);
|
|
19368
19370
|
}
|
|
19369
19371
|
get domAtom() {
|
|
19370
19372
|
return !1;
|
|
@@ -19395,7 +19397,7 @@ class Ub extends Tr {
|
|
|
19395
19397
|
// through. If it does, and there's a `contentDOM` node, our logic
|
|
19396
19398
|
// updates the children.
|
|
19397
19399
|
update(e, t, r, o) {
|
|
19398
|
-
if (this.dirty ==
|
|
19400
|
+
if (this.dirty == rr)
|
|
19399
19401
|
return !1;
|
|
19400
19402
|
if (this.spec.update) {
|
|
19401
19403
|
let i = this.spec.update(e, t, r);
|
|
@@ -19574,7 +19576,7 @@ class Jb {
|
|
|
19574
19576
|
}
|
|
19575
19577
|
updateNodeAt(e, t, r, o, i) {
|
|
19576
19578
|
let A = this.top.children[o];
|
|
19577
|
-
return A.dirty ==
|
|
19579
|
+
return A.dirty == rr && A.dom == A.contentDOM && (A.dirty = $r), A.update(e, t, r, i) ? (this.destroyBetween(this.index, o), this.index++, !0) : !1;
|
|
19578
19580
|
}
|
|
19579
19581
|
findIndexWithChild(e) {
|
|
19580
19582
|
for (; ; ) {
|
|
@@ -19602,7 +19604,7 @@ class Jb {
|
|
|
19602
19604
|
let c = this.preMatch.matched.get(l);
|
|
19603
19605
|
if (c != null && c != i)
|
|
19604
19606
|
return !1;
|
|
19605
|
-
let u = l.dom, d, g = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty !=
|
|
19607
|
+
let u = l.dom, d, g = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != rr && Ga(t, l.outerDeco));
|
|
19606
19608
|
if (!g && l.update(e, t, r, o))
|
|
19607
19609
|
return this.destroyBetween(this.index, a), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
19608
19610
|
if (!g && (d = this.recreateWrapper(l, e, t, r, o, A)))
|
|
@@ -19809,7 +19811,7 @@ function Fl(n, e = null) {
|
|
|
19809
19811
|
function kh(n) {
|
|
19810
19812
|
return n.editable ? n.hasFocus() : Oh(n) && document.activeElement && document.activeElement.contains(n.dom);
|
|
19811
19813
|
}
|
|
19812
|
-
function
|
|
19814
|
+
function gr(n, e = !1) {
|
|
19813
19815
|
let t = n.state.selection;
|
|
19814
19816
|
if (Mh(n, t), !!kh(n)) {
|
|
19815
19817
|
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && Ht) {
|
|
@@ -19945,7 +19947,7 @@ function nx(n) {
|
|
|
19945
19947
|
if (!t)
|
|
19946
19948
|
return;
|
|
19947
19949
|
let o, i, A = !1;
|
|
19948
|
-
for (
|
|
19950
|
+
for (Hn && t.nodeType == 1 && r < WA(t) && Pi(t.childNodes[r], -1) && (A = !0); ; )
|
|
19949
19951
|
if (r > 0) {
|
|
19950
19952
|
if (t.nodeType != 1)
|
|
19951
19953
|
break;
|
|
@@ -20051,7 +20053,7 @@ function Wa(n, e, t) {
|
|
|
20051
20053
|
n.domObserver.setCurSelection();
|
|
20052
20054
|
let { state: o } = n;
|
|
20053
20055
|
setTimeout(() => {
|
|
20054
|
-
n.state == o &&
|
|
20056
|
+
n.state == o && gr(n);
|
|
20055
20057
|
}, 50);
|
|
20056
20058
|
}
|
|
20057
20059
|
function Tu(n, e) {
|
|
@@ -20503,13 +20505,13 @@ class xx {
|
|
|
20503
20505
|
node: i,
|
|
20504
20506
|
pos: A,
|
|
20505
20507
|
addAttr: !!(this.target && !this.target.draggable),
|
|
20506
|
-
setUneditable: !!(this.target &&
|
|
20508
|
+
setUneditable: !!(this.target && Hn && !this.target.hasAttribute("contentEditable"))
|
|
20507
20509
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
20508
20510
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
20509
20511
|
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Dr(e, "pointer");
|
|
20510
20512
|
}
|
|
20511
20513
|
done() {
|
|
20512
|
-
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() =>
|
|
20514
|
+
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => gr(this.view)), this.view.input.mouseDown = null;
|
|
20513
20515
|
}
|
|
20514
20516
|
up(e) {
|
|
20515
20517
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
@@ -20549,7 +20551,7 @@ Xt.compositionstart = Xt.compositionupdate = (n) => {
|
|
|
20549
20551
|
let { state: e } = n, t = e.selection.$to;
|
|
20550
20552
|
if (e.selection instanceof Le && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
20551
20553
|
n.markCursor = n.state.storedMarks || t.marks(), XA(n, !0), n.markCursor = null;
|
|
20552
|
-
else if (XA(n, !e.selection.empty),
|
|
20554
|
+
else if (XA(n, !e.selection.empty), Hn && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
|
|
20553
20555
|
let r = n.domSelectionRange();
|
|
20554
20556
|
for (let o = r.focusNode, i = r.focusOffset; o && o.nodeType == 1 && i != 0; ) {
|
|
20555
20557
|
let A = i < 0 ? o.lastChild : o.childNodes[i - 1];
|
|
@@ -20732,7 +20734,7 @@ Xt.drop = (n, e) => {
|
|
|
20732
20734
|
};
|
|
20733
20735
|
Wt.focus = (n) => {
|
|
20734
20736
|
n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
|
|
20735
|
-
n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) &&
|
|
20737
|
+
n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && gr(n);
|
|
20736
20738
|
}, 20));
|
|
20737
20739
|
};
|
|
20738
20740
|
Wt.blur = (n, e) => {
|
|
@@ -21321,7 +21323,7 @@ class Hx {
|
|
|
21321
21323
|
onSelectionChange() {
|
|
21322
21324
|
if (Mu(this.view)) {
|
|
21323
21325
|
if (this.suppressingSelectionUpdates)
|
|
21324
|
-
return
|
|
21326
|
+
return gr(this.view);
|
|
21325
21327
|
if (on && Or <= 11 && !this.view.state.selection.empty) {
|
|
21326
21328
|
let e = this.view.domSelectionRange();
|
|
21327
21329
|
if (e.focusNode && go(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
@@ -21369,7 +21371,7 @@ class Hx {
|
|
|
21369
21371
|
let d = this.registerMutation(t[u], l);
|
|
21370
21372
|
d && (i = i < 0 ? d.from : Math.min(d.from, i), A = A < 0 ? d.to : Math.max(d.to, A), d.typeOver && (a = !0));
|
|
21371
21373
|
}
|
|
21372
|
-
if (
|
|
21374
|
+
if (Hn && l.length) {
|
|
21373
21375
|
let u = l.filter((d) => d.nodeName == "BR");
|
|
21374
21376
|
if (u.length == 2) {
|
|
21375
21377
|
let [d, g] = u;
|
|
@@ -21383,7 +21385,7 @@ class Hx {
|
|
|
21383
21385
|
}
|
|
21384
21386
|
}
|
|
21385
21387
|
let c = null;
|
|
21386
|
-
i < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Es(r) && (c = Fl(e)) && c.eq(He.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0,
|
|
21388
|
+
i < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Es(r) && (c = Fl(e)) && c.eq(He.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, gr(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || o) && (i > -1 && (e.docView.markDirty(i, A), Nx(e)), this.handleDOMChange(i, A, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || gr(e), this.currentSelection.set(r));
|
|
21387
21389
|
}
|
|
21388
21390
|
registerMutation(e, t) {
|
|
21389
21391
|
if (t.indexOf(e.target) > -1)
|
|
@@ -21421,7 +21423,7 @@ class Hx {
|
|
|
21421
21423
|
let Nu = /* @__PURE__ */ new WeakMap(), Yu = !1;
|
|
21422
21424
|
function Nx(n) {
|
|
21423
21425
|
if (!Nu.has(n) && (Nu.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
|
|
21424
|
-
if (n.requiresGeckoHackNode =
|
|
21426
|
+
if (n.requiresGeckoHackNode = Hn, Yu)
|
|
21425
21427
|
return;
|
|
21426
21428
|
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), Yu = !0;
|
|
21427
21429
|
}
|
|
@@ -21546,7 +21548,7 @@ function Gx(n, e, t, r, o) {
|
|
|
21546
21548
|
let v = I.start, G = I.endA, w, O, U;
|
|
21547
21549
|
if (T) {
|
|
21548
21550
|
if (B.pos == Q.pos)
|
|
21549
|
-
on && Or <= 11 && B.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() =>
|
|
21551
|
+
on && Or <= 11 && B.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => gr(n), 20)), w = n.state.tr.delete(v, G), O = u.resolve(I.start).marksAcross(u.resolve(I.endA));
|
|
21550
21552
|
else if (
|
|
21551
21553
|
// Adding or removing a mark
|
|
21552
21554
|
I.endA == I.endB && (U = Jx(B.parent.content.cut(B.parentOffset, Q.parentOffset), b.parent.content.cut(b.parentOffset, I.endA - b.start())))
|
|
@@ -21720,7 +21722,7 @@ class Xx {
|
|
|
21720
21722
|
let I = Ht ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
21721
21723
|
this.composing && (this.input.compositionNode = Sx(this)), (i || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = yu(e.doc, c, l, this.dom, this)), I && !this.trackWrites && (C = !0);
|
|
21722
21724
|
}
|
|
21723
|
-
C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && tx(this)) ?
|
|
21725
|
+
C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && tx(this)) ? gr(this, C) : (Mh(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
21724
21726
|
}
|
|
21725
21727
|
this.updatePluginViews(o), !((r = this.dragging) === null || r === void 0) && r.node && !o.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, o), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : g && Ob(g);
|
|
21726
21728
|
}
|
|
@@ -21807,7 +21809,7 @@ class Xx {
|
|
|
21807
21809
|
Focus the editor.
|
|
21808
21810
|
*/
|
|
21809
21811
|
focus() {
|
|
21810
|
-
this.domObserver.stop(), this.editable && Tb(this.dom),
|
|
21812
|
+
this.domObserver.stop(), this.editable && Tb(this.dom), gr(this), this.domObserver.start();
|
|
21811
21813
|
}
|
|
21812
21814
|
/**
|
|
21813
21815
|
Get the document root in which the editor exists. This will
|
|
@@ -23215,7 +23217,7 @@ class Ho {
|
|
|
23215
23217
|
type: ua(A.name, this.schema)
|
|
23216
23218
|
}, l = [], c = ke(A, "addKeyboardShortcuts", a);
|
|
23217
23219
|
let u = {};
|
|
23218
|
-
if (A.type === "mark" && ke(A, "exitable", a) && (u.ArrowRight = () =>
|
|
23220
|
+
if (A.type === "mark" && ke(A, "exitable", a) && (u.ArrowRight = () => Nn.handleExit({ editor: e, mark: A })), c) {
|
|
23219
23221
|
const B = Object.fromEntries(Object.entries(c()).map(([Q, b]) => [Q, () => b({ editor: e })]));
|
|
23220
23222
|
u = { ...u, ...B };
|
|
23221
23223
|
}
|
|
@@ -23382,7 +23384,7 @@ const GD = Yt.create({
|
|
|
23382
23384
|
addProseMirrorPlugins() {
|
|
23383
23385
|
return [
|
|
23384
23386
|
new cn({
|
|
23385
|
-
key: new
|
|
23387
|
+
key: new ir("clipboardTextSerializer"),
|
|
23386
23388
|
props: {
|
|
23387
23389
|
clipboardTextSerializer: () => {
|
|
23388
23390
|
const { editor: n } = this, { state: e, schema: t } = n, { doc: r, selection: o } = e, { ranges: i } = o, A = Math.min(...i.map((u) => u.$from.pos)), a = Math.max(...i.map((u) => u.$to.pos)), l = sp(t);
|
|
@@ -23506,7 +23508,7 @@ const A0 = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
23506
23508
|
function Vl(n) {
|
|
23507
23509
|
return n instanceof Le;
|
|
23508
23510
|
}
|
|
23509
|
-
function
|
|
23511
|
+
function dr(n = 0, e = 0, t = 0) {
|
|
23510
23512
|
return Math.min(Math.max(n, e), t);
|
|
23511
23513
|
}
|
|
23512
23514
|
function ap(n, e = null) {
|
|
@@ -23518,7 +23520,7 @@ function ap(n, e = null) {
|
|
|
23518
23520
|
if (e === "end")
|
|
23519
23521
|
return r;
|
|
23520
23522
|
const o = t.from, i = r.to;
|
|
23521
|
-
return e === "all" ? Le.create(n,
|
|
23523
|
+
return e === "all" ? Le.create(n, dr(0, o, i), dr(n.content.size, o, i)) : Le.create(n, dr(e, o, i), dr(e, o, i));
|
|
23522
23524
|
}
|
|
23523
23525
|
function Wl() {
|
|
23524
23526
|
return [
|
|
@@ -23917,7 +23919,7 @@ function gp(n) {
|
|
|
23917
23919
|
return n instanceof Oe;
|
|
23918
23920
|
}
|
|
23919
23921
|
function hp(n, e, t) {
|
|
23920
|
-
const o = n.state.doc.content.size, i =
|
|
23922
|
+
const o = n.state.doc.content.size, i = dr(e, 0, o), A = dr(t, 0, o), a = n.coordsAtPos(i), l = n.coordsAtPos(A, -1), c = Math.min(a.top, l.top), u = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), g = Math.max(a.right, l.right), C = g - d, I = u - c, b = {
|
|
23921
23923
|
top: c,
|
|
23922
23924
|
bottom: u,
|
|
23923
23925
|
left: d,
|
|
@@ -23982,13 +23984,13 @@ const U0 = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
23982
23984
|
return i.isTextblock ? o().command(({ commands: A }) => Xu(i, e)(t) ? !0 : A.clearNodes()).command(({ state: A }) => Xu(i, e)(A, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
23983
23985
|
}, V0 = (n) => ({ tr: e, dispatch: t }) => {
|
|
23984
23986
|
if (t) {
|
|
23985
|
-
const { doc: r } = e, o =
|
|
23987
|
+
const { doc: r } = e, o = dr(n, 0, r.content.size), i = Oe.create(r, o);
|
|
23986
23988
|
e.setSelection(i);
|
|
23987
23989
|
}
|
|
23988
23990
|
return !0;
|
|
23989
23991
|
}, W0 = (n) => ({ tr: e, dispatch: t }) => {
|
|
23990
23992
|
if (t) {
|
|
23991
|
-
const { doc: r } = e, { from: o, to: i } = typeof n == "number" ? { from: n, to: n } : n, A = Le.atStart(r).from, a = Le.atEnd(r).to, l =
|
|
23993
|
+
const { doc: r } = e, { from: o, to: i } = typeof n == "number" ? { from: n, to: n } : n, A = Le.atStart(r).from, a = Le.atEnd(r).to, l = dr(o, A, a), c = dr(i, A, a), u = Le.create(r, l, c);
|
|
23992
23994
|
e.setSelection(u);
|
|
23993
23995
|
}
|
|
23994
23996
|
return !0;
|
|
@@ -24265,7 +24267,7 @@ const cS = Yt.create({
|
|
|
24265
24267
|
addProseMirrorPlugins() {
|
|
24266
24268
|
return [
|
|
24267
24269
|
new cn({
|
|
24268
|
-
key: new
|
|
24270
|
+
key: new ir("editable"),
|
|
24269
24271
|
props: {
|
|
24270
24272
|
editable: () => this.editor.options.editable
|
|
24271
24273
|
}
|
|
@@ -24278,7 +24280,7 @@ const cS = Yt.create({
|
|
|
24278
24280
|
const { editor: n } = this;
|
|
24279
24281
|
return [
|
|
24280
24282
|
new cn({
|
|
24281
|
-
key: new
|
|
24283
|
+
key: new ir("focusEvents"),
|
|
24282
24284
|
props: {
|
|
24283
24285
|
handleDOMEvents: {
|
|
24284
24286
|
focus: (e, t) => {
|
|
@@ -24351,7 +24353,7 @@ const cS = Yt.create({
|
|
|
24351
24353
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
24352
24354
|
// with many other commands.
|
|
24353
24355
|
new cn({
|
|
24354
|
-
key: new
|
|
24356
|
+
key: new ir("clearDocument"),
|
|
24355
24357
|
appendTransaction: (n, e, t) => {
|
|
24356
24358
|
if (!(n.some((I) => I.docChanged) && !e.doc.eq(t.doc)))
|
|
24357
24359
|
return;
|
|
@@ -24376,7 +24378,7 @@ const cS = Yt.create({
|
|
|
24376
24378
|
addProseMirrorPlugins() {
|
|
24377
24379
|
return [
|
|
24378
24380
|
new cn({
|
|
24379
|
-
key: new
|
|
24381
|
+
key: new ir("tabindex"),
|
|
24380
24382
|
props: {
|
|
24381
24383
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
24382
24384
|
}
|
|
@@ -24984,7 +24986,7 @@ function _i(n) {
|
|
|
24984
24986
|
}
|
|
24985
24987
|
});
|
|
24986
24988
|
}
|
|
24987
|
-
class
|
|
24989
|
+
class Nn {
|
|
24988
24990
|
constructor(e = {}) {
|
|
24989
24991
|
this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
|
|
24990
24992
|
name: this.name,
|
|
@@ -25000,7 +25002,7 @@ class Hn {
|
|
|
25000
25002
|
})) || {};
|
|
25001
25003
|
}
|
|
25002
25004
|
static create(e = {}) {
|
|
25003
|
-
return new
|
|
25005
|
+
return new Nn(e);
|
|
25004
25006
|
}
|
|
25005
25007
|
configure(e = {}) {
|
|
25006
25008
|
const t = this.extend({
|
|
@@ -25010,7 +25012,7 @@ class Hn {
|
|
|
25010
25012
|
return t.name = this.name, t.parent = this.parent, t;
|
|
25011
25013
|
}
|
|
25012
25014
|
extend(e = {}) {
|
|
25013
|
-
const t = new
|
|
25015
|
+
const t = new Nn(e);
|
|
25014
25016
|
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = Ne(ke(t, "addOptions", {
|
|
25015
25017
|
name: t.name
|
|
25016
25018
|
})), t.storage = Ne(ke(t, "addStorage", {
|
|
@@ -25088,7 +25090,7 @@ var An = "top", vn = "bottom", wn = "right", sn = "left", Zl = "auto", hA = [An,
|
|
|
25088
25090
|
}, []), Cp = /* @__PURE__ */ [].concat(hA, [Zl]).reduce(function(n, e) {
|
|
25089
25091
|
return n.concat([e, e + "-" + ri, e + "-" + $i]);
|
|
25090
25092
|
}, []), ES = "beforeRead", QS = "read", vS = "afterRead", wS = "beforeMain", yS = "main", bS = "afterMain", xS = "beforeWrite", DS = "write", SS = "afterWrite", kS = [ES, QS, vS, wS, yS, bS, xS, DS, SS];
|
|
25091
|
-
function
|
|
25093
|
+
function or(n) {
|
|
25092
25094
|
return n ? (n.nodeName || "").toLowerCase() : null;
|
|
25093
25095
|
}
|
|
25094
25096
|
function hn(n) {
|
|
@@ -25118,7 +25120,7 @@ function MS(n) {
|
|
|
25118
25120
|
var e = n.state;
|
|
25119
25121
|
Object.keys(e.elements).forEach(function(t) {
|
|
25120
25122
|
var r = e.styles[t] || {}, o = e.attributes[t] || {}, i = e.elements[t];
|
|
25121
|
-
!Qn(i) || !
|
|
25123
|
+
!Qn(i) || !or(i) || (Object.assign(i.style, r), Object.keys(o).forEach(function(A) {
|
|
25122
25124
|
var a = o[A];
|
|
25123
25125
|
a === !1 ? i.removeAttribute(A) : i.setAttribute(A, a === !0 ? "" : a);
|
|
25124
25126
|
}));
|
|
@@ -25142,7 +25144,7 @@ function OS(n) {
|
|
|
25142
25144
|
var o = e.elements[r], i = e.attributes[r] || {}, A = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : t[r]), a = A.reduce(function(l, c) {
|
|
25143
25145
|
return l[c] = "", l;
|
|
25144
25146
|
}, {});
|
|
25145
|
-
!Qn(o) || !
|
|
25147
|
+
!Qn(o) || !or(o) || (Object.assign(o.style, a), Object.keys(i).forEach(function(l) {
|
|
25146
25148
|
o.removeAttribute(l);
|
|
25147
25149
|
}));
|
|
25148
25150
|
});
|
|
@@ -25156,7 +25158,7 @@ const Ip = {
|
|
|
25156
25158
|
effect: OS,
|
|
25157
25159
|
requires: ["computeStyles"]
|
|
25158
25160
|
};
|
|
25159
|
-
function
|
|
25161
|
+
function er(n) {
|
|
25160
25162
|
return n.split("-")[0];
|
|
25161
25163
|
}
|
|
25162
25164
|
var ao = Math.max, ns = Math.min, oi = Math.round;
|
|
@@ -25212,7 +25214,7 @@ function pr(n) {
|
|
|
25212
25214
|
return hn(n).getComputedStyle(n);
|
|
25213
25215
|
}
|
|
25214
25216
|
function TS(n) {
|
|
25215
|
-
return ["table", "td", "th"].indexOf(
|
|
25217
|
+
return ["table", "td", "th"].indexOf(or(n)) >= 0;
|
|
25216
25218
|
}
|
|
25217
25219
|
function qr(n) {
|
|
25218
25220
|
return ((Io(n) ? n.ownerDocument : (
|
|
@@ -25221,7 +25223,7 @@ function qr(n) {
|
|
|
25221
25223
|
)) || window.document).documentElement;
|
|
25222
25224
|
}
|
|
25223
25225
|
function Ms(n) {
|
|
25224
|
-
return
|
|
25226
|
+
return or(n) === "html" ? n : (
|
|
25225
25227
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
25226
25228
|
// $FlowFixMe[incompatible-return]
|
|
25227
25229
|
// $FlowFixMe[prop-missing]
|
|
@@ -25244,7 +25246,7 @@ function RS(n) {
|
|
|
25244
25246
|
return null;
|
|
25245
25247
|
}
|
|
25246
25248
|
var o = Ms(n);
|
|
25247
|
-
for (_l(o) && (o = o.host); Qn(o) && ["html", "body"].indexOf(
|
|
25249
|
+
for (_l(o) && (o = o.host); Qn(o) && ["html", "body"].indexOf(or(o)) < 0; ) {
|
|
25248
25250
|
var i = pr(o);
|
|
25249
25251
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
|
|
25250
25252
|
return o;
|
|
@@ -25255,7 +25257,7 @@ function RS(n) {
|
|
|
25255
25257
|
function pA(n) {
|
|
25256
25258
|
for (var e = hn(n), t = od(n); t && TS(t) && pr(t).position === "static"; )
|
|
25257
25259
|
t = od(t);
|
|
25258
|
-
return t && (
|
|
25260
|
+
return t && (or(t) === "html" || or(t) === "body" && pr(t).position === "static") ? e : t || RS(n) || e;
|
|
25259
25261
|
}
|
|
25260
25262
|
function ec(n) {
|
|
25261
25263
|
return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
|
|
@@ -25289,7 +25291,7 @@ var zS = function(e, t) {
|
|
|
25289
25291
|
})) : e, Ep(typeof e != "number" ? e : Qp(e, hA));
|
|
25290
25292
|
};
|
|
25291
25293
|
function FS(n) {
|
|
25292
|
-
var e, t = n.state, r = n.name, o = n.options, i = t.elements.arrow, A = t.modifiersData.popperOffsets, a =
|
|
25294
|
+
var e, t = n.state, r = n.name, o = n.options, i = t.elements.arrow, A = t.modifiersData.popperOffsets, a = er(t.placement), l = ec(a), c = [sn, wn].indexOf(a) >= 0, u = c ? "height" : "width";
|
|
25293
25295
|
if (!(!i || !A)) {
|
|
25294
25296
|
var d = zS(o.padding, t), g = $l(i), C = l === "y" ? An : sn, I = l === "y" ? vn : wn, B = t.rects.reference[u] + t.rects.reference[l] - A[l] - t.rects.popper[u], Q = A[l] - t.rects.reference[l], b = pA(i), T = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = B / 2 - Q / 2, v = d[C], G = T - g[u] - d[I], w = T / 2 - g[u] / 2 + S, O = zi(v, w, G), U = l;
|
|
25295
25297
|
t.modifiersData[r] = (e = {}, e[U] = O, e.centerOffset = O - w, e);
|
|
@@ -25370,7 +25372,7 @@ function id(n) {
|
|
|
25370
25372
|
}
|
|
25371
25373
|
function qS(n) {
|
|
25372
25374
|
var e = n.state, t = n.options, r = t.gpuAcceleration, o = r === void 0 ? !0 : r, i = t.adaptive, A = i === void 0 ? !0 : i, a = t.roundOffsets, l = a === void 0 ? !0 : a, c = {
|
|
25373
|
-
placement:
|
|
25375
|
+
placement: er(e.placement),
|
|
25374
25376
|
variation: Ai(e.placement),
|
|
25375
25377
|
popper: e.elements.popper,
|
|
25376
25378
|
popperRect: e.rects.popper,
|
|
@@ -25478,7 +25480,7 @@ function rc(n) {
|
|
|
25478
25480
|
return /auto|scroll|overlay|hidden/.test(t + o + r);
|
|
25479
25481
|
}
|
|
25480
25482
|
function vp(n) {
|
|
25481
|
-
return ["html", "body", "#document"].indexOf(
|
|
25483
|
+
return ["html", "body", "#document"].indexOf(or(n)) >= 0 ? n.ownerDocument.body : Qn(n) && rc(n) ? n : vp(Ms(n));
|
|
25482
25484
|
}
|
|
25483
25485
|
function Fi(n, e) {
|
|
25484
25486
|
var t;
|
|
@@ -25507,7 +25509,7 @@ function sd(n, e, t) {
|
|
|
25507
25509
|
function ZS(n) {
|
|
25508
25510
|
var e = Fi(Ms(n)), t = ["absolute", "fixed"].indexOf(pr(n).position) >= 0, r = t && Qn(n) ? pA(n) : n;
|
|
25509
25511
|
return Io(r) ? e.filter(function(o) {
|
|
25510
|
-
return Io(o) && mp(o, r) &&
|
|
25512
|
+
return Io(o) && mp(o, r) && or(o) !== "body";
|
|
25511
25513
|
}) : [];
|
|
25512
25514
|
}
|
|
25513
25515
|
function _S(n, e, t, r) {
|
|
@@ -25518,7 +25520,7 @@ function _S(n, e, t, r) {
|
|
|
25518
25520
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
25519
25521
|
}
|
|
25520
25522
|
function wp(n) {
|
|
25521
|
-
var e = n.reference, t = n.element, r = n.placement, o = r ?
|
|
25523
|
+
var e = n.reference, t = n.element, r = n.placement, o = r ? er(r) : null, i = r ? Ai(r) : null, A = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
|
|
25522
25524
|
switch (o) {
|
|
25523
25525
|
case An:
|
|
25524
25526
|
l = {
|
|
@@ -25600,14 +25602,14 @@ function $S(n, e) {
|
|
|
25600
25602
|
boundary: o,
|
|
25601
25603
|
rootBoundary: i,
|
|
25602
25604
|
padding: A
|
|
25603
|
-
})[
|
|
25605
|
+
})[er(B)], I;
|
|
25604
25606
|
}, {});
|
|
25605
25607
|
return Object.keys(C).sort(function(I, B) {
|
|
25606
25608
|
return C[I] - C[B];
|
|
25607
25609
|
});
|
|
25608
25610
|
}
|
|
25609
25611
|
function ek(n) {
|
|
25610
|
-
if (
|
|
25612
|
+
if (er(n) === Zl)
|
|
25611
25613
|
return [];
|
|
25612
25614
|
var e = zA(n);
|
|
25613
25615
|
return [Ad(n), e, Ad(e)];
|
|
@@ -25615,8 +25617,8 @@ function ek(n) {
|
|
|
25615
25617
|
function tk(n) {
|
|
25616
25618
|
var e = n.state, t = n.options, r = n.name;
|
|
25617
25619
|
if (!e.modifiersData[r]._skip) {
|
|
25618
|
-
for (var o = t.mainAxis, i = o === void 0 ? !0 : o, A = t.altAxis, a = A === void 0 ? !0 : A, l = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, g = t.altBoundary, C = t.flipVariations, I = C === void 0 ? !0 : C, B = t.allowedAutoPlacements, Q = e.options.placement, b =
|
|
25619
|
-
return E.concat(
|
|
25620
|
+
for (var o = t.mainAxis, i = o === void 0 ? !0 : o, A = t.altAxis, a = A === void 0 ? !0 : A, l = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, g = t.altBoundary, C = t.flipVariations, I = C === void 0 ? !0 : C, B = t.allowedAutoPlacements, Q = e.options.placement, b = er(Q), T = b === Q, S = l || (T || !I ? [zA(Q)] : ek(Q)), v = [Q].concat(S).reduce(function(E, q) {
|
|
25621
|
+
return E.concat(er(q) === Zl ? $S(e, {
|
|
25620
25622
|
placement: q,
|
|
25621
25623
|
boundary: u,
|
|
25622
25624
|
rootBoundary: d,
|
|
@@ -25625,7 +25627,7 @@ function tk(n) {
|
|
|
25625
25627
|
allowedAutoPlacements: B
|
|
25626
25628
|
}) : q);
|
|
25627
25629
|
}, []), G = e.rects.reference, w = e.rects.popper, O = /* @__PURE__ */ new Map(), U = !0, F = v[0], j = 0; j < v.length; j++) {
|
|
25628
|
-
var re = v[j], ae =
|
|
25630
|
+
var re = v[j], ae = er(re), me = Ai(re) === ri, N = [An, vn].indexOf(ae) >= 0, K = N ? "width" : "height", L = eA(e, {
|
|
25629
25631
|
placement: re,
|
|
25630
25632
|
boundary: u,
|
|
25631
25633
|
rootBoundary: d,
|
|
@@ -25710,7 +25712,7 @@ const ok = {
|
|
|
25710
25712
|
fn: rk
|
|
25711
25713
|
};
|
|
25712
25714
|
function ik(n, e, t) {
|
|
25713
|
-
var r =
|
|
25715
|
+
var r = er(n), o = [sn, An].indexOf(r) >= 0 ? -1 : 1, i = typeof t == "function" ? t(Object.assign({}, e, {
|
|
25714
25716
|
placement: n
|
|
25715
25717
|
})) : t, A = i[0], a = i[1];
|
|
25716
25718
|
return A = A || 0, a = (a || 0) * o, [sn, wn].indexOf(r) >= 0 ? {
|
|
@@ -25759,7 +25761,7 @@ function uk(n) {
|
|
|
25759
25761
|
rootBoundary: c,
|
|
25760
25762
|
padding: d,
|
|
25761
25763
|
altBoundary: u
|
|
25762
|
-
}), b =
|
|
25764
|
+
}), b = er(e.placement), T = Ai(e.placement), S = !T, v = ec(b), G = ck(v), w = e.modifiersData.popperOffsets, O = e.rects.reference, U = e.rects.popper, F = typeof B == "function" ? B(Object.assign({}, e.rects, {
|
|
25763
25765
|
placement: e.placement
|
|
25764
25766
|
})) : B, j = typeof F == "number" ? {
|
|
25765
25767
|
mainAxis: F,
|
|
@@ -25780,8 +25782,8 @@ function uk(n) {
|
|
|
25780
25782
|
w[v] = $, ae[v] = $ - X;
|
|
25781
25783
|
}
|
|
25782
25784
|
if (a) {
|
|
25783
|
-
var Re, J = v === "x" ? An : sn, ue = v === "x" ? vn : wn, Ee = w[G], ze = G === "y" ? "height" : "width", Qt = Ee + Q[J], Se = Ee - Q[ue], _t = [An, sn].indexOf(b) !== -1, jt = (Re = re == null ? void 0 : re[G]) != null ? Re : 0,
|
|
25784
|
-
w[G] =
|
|
25785
|
+
var Re, J = v === "x" ? An : sn, ue = v === "x" ? vn : wn, Ee = w[G], ze = G === "y" ? "height" : "width", Qt = Ee + Q[J], Se = Ee - Q[ue], _t = [An, sn].indexOf(b) !== -1, jt = (Re = re == null ? void 0 : re[G]) != null ? Re : 0, qn = _t ? Qt : Ee - O[ze] - U[ze] - jt + j.altAxis, vt = _t ? Ee + O[ze] + U[ze] - jt - j.altAxis : Se, jn = C && _t ? PS(qn, Ee, vt) : zi(C ? qn : Qt, Ee, C ? vt : Se);
|
|
25786
|
+
w[G] = jn, ae[G] = jn - Ee;
|
|
25785
25787
|
}
|
|
25786
25788
|
e.modifiersData[r] = ae;
|
|
25787
25789
|
}
|
|
@@ -25815,7 +25817,7 @@ function Ck(n, e, t) {
|
|
|
25815
25817
|
x: 0,
|
|
25816
25818
|
y: 0
|
|
25817
25819
|
};
|
|
25818
|
-
return (r || !r && !t) && ((
|
|
25820
|
+
return (r || !r && !t) && ((or(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
25819
25821
|
rc(i)) && (a = hk(e)), Qn(e) ? (l = ii(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = nc(i))), {
|
|
25820
25822
|
x: A.left + a.scrollLeft - l.x,
|
|
25821
25823
|
y: A.top + a.scrollTop - l.y,
|
|
@@ -26108,15 +26110,15 @@ function Cd(n, e) {
|
|
|
26108
26110
|
}
|
|
26109
26111
|
return !1;
|
|
26110
26112
|
}
|
|
26111
|
-
var
|
|
26113
|
+
var Gn = {
|
|
26112
26114
|
isTouch: !1
|
|
26113
26115
|
}, Id = 0;
|
|
26114
26116
|
function Fk() {
|
|
26115
|
-
|
|
26117
|
+
Gn.isTouch || (Gn.isTouch = !0, window.performance && document.addEventListener("mousemove", kp));
|
|
26116
26118
|
}
|
|
26117
26119
|
function kp() {
|
|
26118
26120
|
var n = performance.now();
|
|
26119
|
-
n - Id < 20 && (
|
|
26121
|
+
n - Id < 20 && (Gn.isTouch = !1, document.removeEventListener("mousemove", kp)), Id = n;
|
|
26120
26122
|
}
|
|
26121
26123
|
function Lk() {
|
|
26122
26124
|
var n = document.activeElement;
|
|
@@ -26165,7 +26167,7 @@ process.env.NODE_ENV !== "production" && jk();
|
|
|
26165
26167
|
function jk() {
|
|
26166
26168
|
nA = /* @__PURE__ */ new Set();
|
|
26167
26169
|
}
|
|
26168
|
-
function
|
|
26170
|
+
function lr(n, e) {
|
|
26169
26171
|
if (n && !nA.has(e)) {
|
|
26170
26172
|
var t;
|
|
26171
26173
|
nA.add(e), (t = console).warn.apply(t, Mp(e));
|
|
@@ -26297,7 +26299,7 @@ function Rp(n, e) {
|
|
|
26297
26299
|
var o = xk(dn, Object.keys(Op)), i = !bk(o, r);
|
|
26298
26300
|
i && (i = e.filter(function(A) {
|
|
26299
26301
|
return A.name === r;
|
|
26300
|
-
}).length === 0),
|
|
26302
|
+
}).length === 0), lr(i, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
26301
26303
|
|
|
26302
26304
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
26303
26305
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
@@ -26369,9 +26371,9 @@ function Zk(n, e) {
|
|
|
26369
26371
|
state: S,
|
|
26370
26372
|
plugins: T,
|
|
26371
26373
|
// methods
|
|
26372
|
-
clearDelayTimeouts:
|
|
26374
|
+
clearDelayTimeouts: qn,
|
|
26373
26375
|
setProps: vt,
|
|
26374
|
-
setContent:
|
|
26376
|
+
setContent: jn,
|
|
26375
26377
|
show: di,
|
|
26376
26378
|
hide: Qo,
|
|
26377
26379
|
hideWithInteractivity: gi,
|
|
@@ -26414,7 +26416,7 @@ function Zk(n, e) {
|
|
|
26414
26416
|
return al(w);
|
|
26415
26417
|
}
|
|
26416
26418
|
function L(ee) {
|
|
26417
|
-
return v.state.isMounted && !v.state.isVisible ||
|
|
26419
|
+
return v.state.isMounted && !v.state.isVisible || Gn.isTouch || u && u.type === "focus" ? 0 : ha(v.props.delay, ee ? 0 : 1, dn.delay);
|
|
26418
26420
|
}
|
|
26419
26421
|
function X(ee) {
|
|
26420
26422
|
ee === void 0 && (ee = !1), w.style.pointerEvents = v.props.interactive && !ee ? "" : "none", w.style.zIndex = "" + v.props.zIndex;
|
|
@@ -26456,13 +26458,13 @@ function Zk(n, e) {
|
|
|
26456
26458
|
});
|
|
26457
26459
|
}
|
|
26458
26460
|
function M(ee) {
|
|
26459
|
-
if (!(
|
|
26461
|
+
if (!(Gn.isTouch && (l || ee.type === "mousedown"))) {
|
|
26460
26462
|
var De = ee.composedPath && ee.composedPath()[0] || ee.target;
|
|
26461
26463
|
if (!(v.props.interactive && Cd(w, De))) {
|
|
26462
26464
|
if (Ro(v.props.triggerTarget || n).some(function(Te) {
|
|
26463
26465
|
return Cd(Te, De);
|
|
26464
26466
|
})) {
|
|
26465
|
-
if (
|
|
26467
|
+
if (Gn.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
|
|
26466
26468
|
return;
|
|
26467
26469
|
} else
|
|
26468
26470
|
Ae("onClickOutside", [v, ee]);
|
|
@@ -26578,7 +26580,7 @@ function Zk(n, e) {
|
|
|
26578
26580
|
v.props.trigger.indexOf("focusin") < 0 && ee.target !== me() || v.props.interactive && ee.relatedTarget && w.contains(ee.relatedTarget) || Se(ee);
|
|
26579
26581
|
}
|
|
26580
26582
|
function Re(ee) {
|
|
26581
|
-
return
|
|
26583
|
+
return Gn.isTouch ? re() !== ee.type.indexOf("touch") >= 0 : !1;
|
|
26582
26584
|
}
|
|
26583
26585
|
function J() {
|
|
26584
26586
|
ue();
|
|
@@ -26590,10 +26592,10 @@ function Zk(n, e) {
|
|
|
26590
26592
|
enabled: !0,
|
|
26591
26593
|
phase: "beforeWrite",
|
|
26592
26594
|
requires: ["computeStyles"],
|
|
26593
|
-
fn: function(
|
|
26594
|
-
var Cn =
|
|
26595
|
+
fn: function(Ar) {
|
|
26596
|
+
var Cn = Ar.state;
|
|
26595
26597
|
if (ae()) {
|
|
26596
|
-
var
|
|
26598
|
+
var Kn = K(), jr = Kn.box;
|
|
26597
26599
|
["placement", "reference-hidden", "escaped"].forEach(function(vo) {
|
|
26598
26600
|
vo === "placement" ? jr.setAttribute("data-placement", Cn.placement) : Cn.attributes.popper["data-popper-" + vo] ? jr.setAttribute("data-" + vo, "") : jr.removeAttribute("data-" + vo);
|
|
26599
26601
|
}), Cn.attributes.popper = {};
|
|
@@ -26642,7 +26644,7 @@ function Zk(n, e) {
|
|
|
26642
26644
|
}
|
|
26643
26645
|
function Ee() {
|
|
26644
26646
|
var ee = v.props.appendTo, De, Te = me();
|
|
26645
|
-
v.props.interactive && ee === Dp || ee === "parent" ? De = Te.parentNode : De = Sp(ee, [Te]), De.contains(w) || De.appendChild(w), v.state.isMounted = !0, J(), process.env.NODE_ENV !== "production" &&
|
|
26647
|
+
v.props.interactive && ee === Dp || ee === "parent" ? De = Te.parentNode : De = Sp(ee, [Te]), De.contains(w) || De.appendChild(w), v.state.isMounted = !0, J(), process.env.NODE_ENV !== "production" && lr(v.props.interactive && ee === dn.appendTo && Te.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
26646
26648
|
|
|
26647
26649
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
26648
26650
|
|
|
@@ -26656,7 +26658,7 @@ function Zk(n, e) {
|
|
|
26656
26658
|
function Qt(ee) {
|
|
26657
26659
|
v.clearDelayTimeouts(), ee && Ae("onTrigger", [v, ee]), q();
|
|
26658
26660
|
var De = L(!0), Te = j(), Y = Te[0], te = Te[1];
|
|
26659
|
-
|
|
26661
|
+
Gn.isTouch && Y === "hold" && te && (De = te), De ? r = setTimeout(function() {
|
|
26660
26662
|
v.show();
|
|
26661
26663
|
}, De) : v.show();
|
|
26662
26664
|
}
|
|
@@ -26680,11 +26682,11 @@ function Zk(n, e) {
|
|
|
26680
26682
|
function jt() {
|
|
26681
26683
|
v.hide(), v.state.isEnabled = !1;
|
|
26682
26684
|
}
|
|
26683
|
-
function
|
|
26685
|
+
function qn() {
|
|
26684
26686
|
clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i);
|
|
26685
26687
|
}
|
|
26686
26688
|
function vt(ee) {
|
|
26687
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
26689
|
+
if (process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("setProps")), !v.state.isDestroyed) {
|
|
26688
26690
|
Ae("onBeforeUpdate", [v, ee]), he();
|
|
26689
26691
|
var De = v.props, Te = md(n, Object.assign({}, De, hd(ee), {
|
|
26690
26692
|
ignoreAttributes: !0
|
|
@@ -26696,14 +26698,14 @@ function Zk(n, e) {
|
|
|
26696
26698
|
})), Ae("onAfterUpdate", [v, ee]);
|
|
26697
26699
|
}
|
|
26698
26700
|
}
|
|
26699
|
-
function
|
|
26701
|
+
function jn(ee) {
|
|
26700
26702
|
v.setProps({
|
|
26701
26703
|
content: ee
|
|
26702
26704
|
});
|
|
26703
26705
|
}
|
|
26704
26706
|
function di() {
|
|
26705
|
-
process.env.NODE_ENV !== "production" &&
|
|
26706
|
-
var ee = v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y =
|
|
26707
|
+
process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("show"));
|
|
26708
|
+
var ee = v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y = Gn.isTouch && !v.props.touch, te = ha(v.props.duration, 0, dn.duration);
|
|
26707
26709
|
if (!(ee || De || Te || Y) && !me().hasAttribute("disabled") && (Ae("onShow", [v], !1), v.props.onShow(v) !== !1)) {
|
|
26708
26710
|
if (v.state.isVisible = !0, ae() && (w.style.visibility = "visible"), X(), q(), v.state.isMounted || (w.style.transition = "none"), ae()) {
|
|
26709
26711
|
var V = K(), le = V.box, Be = V.content;
|
|
@@ -26713,8 +26715,8 @@ function Zk(n, e) {
|
|
|
26713
26715
|
var gt;
|
|
26714
26716
|
if (!(!v.state.isVisible || c)) {
|
|
26715
26717
|
if (c = !0, w.offsetHeight, w.style.transition = v.props.moveTransition, ae() && v.props.animation) {
|
|
26716
|
-
var Dn = K(),
|
|
26717
|
-
pa([
|
|
26718
|
+
var Dn = K(), Ar = Dn.box, Cn = Dn.content;
|
|
26719
|
+
pa([Ar, Cn], te), pd([Ar, Cn], "visible");
|
|
26718
26720
|
}
|
|
26719
26721
|
z(), H(), gd(Ia, v), (gt = v.popperInstance) == null || gt.forceUpdate(), Ae("onMount", [v]), v.props.animation && ae() && ge(te, function() {
|
|
26720
26722
|
v.state.isShown = !0, Ae("onShown", [v]);
|
|
@@ -26724,7 +26726,7 @@ function Zk(n, e) {
|
|
|
26724
26726
|
}
|
|
26725
26727
|
}
|
|
26726
26728
|
function Qo() {
|
|
26727
|
-
process.env.NODE_ENV !== "production" &&
|
|
26729
|
+
process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("hide"));
|
|
26728
26730
|
var ee = !v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y = ha(v.props.duration, 1, dn.duration);
|
|
26729
26731
|
if (!(ee || De || Te) && (Ae("onHide", [v], !1), v.props.onHide(v) !== !1)) {
|
|
26730
26732
|
if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, A = !1, ae() && (w.style.visibility = "hidden"), W(), _(), X(!0), ae()) {
|
|
@@ -26735,17 +26737,17 @@ function Zk(n, e) {
|
|
|
26735
26737
|
}
|
|
26736
26738
|
}
|
|
26737
26739
|
function gi(ee) {
|
|
26738
|
-
process.env.NODE_ENV !== "production" &&
|
|
26740
|
+
process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("hideWithInteractivity")), N().addEventListener("mousemove", I), gd(DA, I), I(ee);
|
|
26739
26741
|
}
|
|
26740
26742
|
function hi() {
|
|
26741
|
-
process.env.NODE_ENV !== "production" &&
|
|
26743
|
+
process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (ue(), ze().forEach(function(ee) {
|
|
26742
26744
|
ee._tippy.unmount();
|
|
26743
26745
|
}), w.parentNode && w.parentNode.removeChild(w), Ia = Ia.filter(function(ee) {
|
|
26744
26746
|
return ee !== v;
|
|
26745
26747
|
}), v.state.isMounted = !1, Ae("onHidden", [v]));
|
|
26746
26748
|
}
|
|
26747
26749
|
function pi() {
|
|
26748
|
-
process.env.NODE_ENV !== "production" &&
|
|
26750
|
+
process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("destroy")), !v.state.isDestroyed && (v.clearDelayTimeouts(), v.unmount(), he(), delete n._tippy, v.state.isDestroyed = !0, Ae("onDestroy", [v]));
|
|
26749
26751
|
}
|
|
26750
26752
|
}
|
|
26751
26753
|
function ui(n, e) {
|
|
@@ -26757,7 +26759,7 @@ function ui(n, e) {
|
|
|
26757
26759
|
}), o = Rk(n);
|
|
26758
26760
|
if (process.env.NODE_ENV !== "production") {
|
|
26759
26761
|
var i = tA(r.content), A = o.length > 1;
|
|
26760
|
-
|
|
26762
|
+
lr(i && A, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
26761
26763
|
|
|
26762
26764
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
26763
26765
|
|
|
@@ -26772,7 +26774,7 @@ function ui(n, e) {
|
|
|
26772
26774
|
}
|
|
26773
26775
|
ui.defaultProps = dn;
|
|
26774
26776
|
ui.setDefaultProps = Jk;
|
|
26775
|
-
ui.currentInput =
|
|
26777
|
+
ui.currentInput = Gn;
|
|
26776
26778
|
Object.assign({}, Ip, {
|
|
26777
26779
|
effect: function(e) {
|
|
26778
26780
|
var t = e.state, r = {
|
|
@@ -26885,7 +26887,7 @@ class _k {
|
|
|
26885
26887
|
}
|
|
26886
26888
|
}
|
|
26887
26889
|
const zp = (n) => new cn({
|
|
26888
|
-
key: typeof n.pluginKey == "string" ? new
|
|
26890
|
+
key: typeof n.pluginKey == "string" ? new ir(n.pluginKey) : n.pluginKey,
|
|
26889
26891
|
view: (e) => new _k({ view: e, ...n })
|
|
26890
26892
|
});
|
|
26891
26893
|
Yt.create({
|
|
@@ -26977,7 +26979,7 @@ class $k {
|
|
|
26977
26979
|
}
|
|
26978
26980
|
}
|
|
26979
26981
|
const Fp = (n) => new cn({
|
|
26980
|
-
key: typeof n.pluginKey == "string" ? new
|
|
26982
|
+
key: typeof n.pluginKey == "string" ? new ir(n.pluginKey) : n.pluginKey,
|
|
26981
26983
|
view: (e) => new $k({ view: e, ...n })
|
|
26982
26984
|
});
|
|
26983
26985
|
Yt.create({
|
|
@@ -27260,7 +27262,7 @@ const nM = (n = {}) => {
|
|
|
27260
27262
|
})
|
|
27261
27263
|
];
|
|
27262
27264
|
}
|
|
27263
|
-
}), iM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, AM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, sM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, lM =
|
|
27265
|
+
}), iM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, AM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, sM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, lM = Nn.create({
|
|
27264
27266
|
name: "bold",
|
|
27265
27267
|
addOptions() {
|
|
27266
27268
|
return {
|
|
@@ -27350,7 +27352,7 @@ const nM = (n = {}) => {
|
|
|
27350
27352
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
27351
27353
|
};
|
|
27352
27354
|
}
|
|
27353
|
-
}), vd =
|
|
27355
|
+
}), vd = Nn.create({
|
|
27354
27356
|
name: "textStyle",
|
|
27355
27357
|
priority: 101,
|
|
27356
27358
|
addOptions() {
|
|
@@ -27425,7 +27427,7 @@ const nM = (n = {}) => {
|
|
|
27425
27427
|
n
|
|
27426
27428
|
];
|
|
27427
27429
|
}
|
|
27428
|
-
}), dM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, gM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, hM =
|
|
27430
|
+
}), dM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, gM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, hM = Nn.create({
|
|
27429
27431
|
name: "code",
|
|
27430
27432
|
addOptions() {
|
|
27431
27433
|
return {
|
|
@@ -27582,7 +27584,7 @@ const nM = (n = {}) => {
|
|
|
27582
27584
|
// this plugin creates a code block for pasted content from VS Code
|
|
27583
27585
|
// we can also detect the copied code language
|
|
27584
27586
|
new cn({
|
|
27585
|
-
key: new
|
|
27587
|
+
key: new ir("codeBlockVSCodeHandler"),
|
|
27586
27588
|
props: {
|
|
27587
27589
|
handlePaste: (n, e) => {
|
|
27588
27590
|
if (!e.clipboardData || this.editor.isActive(this.type.name))
|
|
@@ -28129,9 +28131,9 @@ class Rn {
|
|
|
28129
28131
|
return;
|
|
28130
28132
|
}
|
|
28131
28133
|
if (o) {
|
|
28132
|
-
u.push(new
|
|
28134
|
+
u.push(new Un(d.map));
|
|
28133
28135
|
let C = d.step.map(o.slice(i)), I;
|
|
28134
|
-
C && A.maybeStep(C).doc && (I = A.mapping.maps[A.mapping.maps.length - 1], c.push(new
|
|
28136
|
+
C && A.maybeStep(C).doc && (I = A.mapping.maps[A.mapping.maps.length - 1], c.push(new Un(I, void 0, void 0, c.length + u.length))), i--, I && o.appendMap(I, i);
|
|
28135
28137
|
} else
|
|
28136
28138
|
A.maybeStep(d.step);
|
|
28137
28139
|
if (d.selection)
|
|
@@ -28142,7 +28144,7 @@ class Rn {
|
|
|
28142
28144
|
addTransform(e, t, r, o) {
|
|
28143
28145
|
let i = [], A = this.eventCount, a = this.items, l = !o && a.length ? a.get(a.length - 1) : null;
|
|
28144
28146
|
for (let u = 0; u < e.steps.length; u++) {
|
|
28145
|
-
let d = e.steps[u].invert(e.docs[u]), g = new
|
|
28147
|
+
let d = e.steps[u].invert(e.docs[u]), g = new Un(e.mapping.maps[u], d, t), C;
|
|
28146
28148
|
(C = l && l.merge(g)) && (g = C, u ? i.pop() : a = a.slice(0, a.length - 1)), i.push(g), t && (A++, t = void 0), o || (l = g);
|
|
28147
28149
|
}
|
|
28148
28150
|
let c = A - r.depth;
|
|
@@ -28156,7 +28158,7 @@ class Rn {
|
|
|
28156
28158
|
}, e, t), r;
|
|
28157
28159
|
}
|
|
28158
28160
|
addMaps(e) {
|
|
28159
|
-
return this.eventCount == 0 ? this : new Rn(this.items.append(e.map((t) => new
|
|
28161
|
+
return this.eventCount == 0 ? this : new Rn(this.items.append(e.map((t) => new Un(t))), this.eventCount);
|
|
28160
28162
|
}
|
|
28161
28163
|
// When the collab module receives remote changes, the history has
|
|
28162
28164
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -28178,13 +28180,13 @@ class Rn {
|
|
|
28178
28180
|
let I = i.maps[C];
|
|
28179
28181
|
if (g.step) {
|
|
28180
28182
|
let B = e.steps[C].invert(e.docs[C]), Q = g.selection && g.selection.map(i.slice(l + 1, C));
|
|
28181
|
-
Q && a++, r.push(new
|
|
28183
|
+
Q && a++, r.push(new Un(I, B, Q));
|
|
28182
28184
|
} else
|
|
28183
|
-
r.push(new
|
|
28185
|
+
r.push(new Un(I));
|
|
28184
28186
|
}, o);
|
|
28185
28187
|
let c = [];
|
|
28186
28188
|
for (let g = t; g < A; g++)
|
|
28187
|
-
c.push(new
|
|
28189
|
+
c.push(new Un(i.maps[g]));
|
|
28188
28190
|
let u = this.items.slice(0, o).append(c).append(r), d = new Rn(u, a);
|
|
28189
28191
|
return d.emptyItemCount() > TM && (d = d.compress(this.items.length - r.length)), d;
|
|
28190
28192
|
}
|
|
@@ -28210,7 +28212,7 @@ class Rn {
|
|
|
28210
28212
|
if (r--, c && t.appendMap(c, r), l) {
|
|
28211
28213
|
let u = A.selection && A.selection.map(t.slice(r));
|
|
28212
28214
|
u && i++;
|
|
28213
|
-
let d = new
|
|
28215
|
+
let d = new Un(c.invert(), l, u), g, C = o.length - 1;
|
|
28214
28216
|
(g = o.length && o[C].merge(d)) ? o[C] = g : o.push(d);
|
|
28215
28217
|
}
|
|
28216
28218
|
} else A.map && r--;
|
|
@@ -28225,7 +28227,7 @@ function RM(n, e) {
|
|
|
28225
28227
|
return t = o, !1;
|
|
28226
28228
|
}), n.slice(t);
|
|
28227
28229
|
}
|
|
28228
|
-
class
|
|
28230
|
+
class Un {
|
|
28229
28231
|
constructor(e, t, r, o) {
|
|
28230
28232
|
this.map = e, this.step = t, this.selection = r, this.mirrorOffset = o;
|
|
28231
28233
|
}
|
|
@@ -28233,7 +28235,7 @@ class Kn {
|
|
|
28233
28235
|
if (this.step && e.step && !e.selection) {
|
|
28234
28236
|
let t = e.step.merge(this.step);
|
|
28235
28237
|
if (t)
|
|
28236
|
-
return new
|
|
28238
|
+
return new Un(t.getMap().invert(), t, this.selection);
|
|
28237
28239
|
}
|
|
28238
28240
|
}
|
|
28239
28241
|
}
|
|
@@ -28305,7 +28307,7 @@ function FA(n) {
|
|
|
28305
28307
|
}
|
|
28306
28308
|
return ma;
|
|
28307
28309
|
}
|
|
28308
|
-
const lo = new
|
|
28310
|
+
const lo = new ir("history"), HM = new ir("closeHistory");
|
|
28309
28311
|
function NM(n = {}) {
|
|
28310
28312
|
return n = {
|
|
28311
28313
|
depth: n.depth || 100,
|
|
@@ -28422,7 +28424,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28422
28424
|
})
|
|
28423
28425
|
];
|
|
28424
28426
|
}
|
|
28425
|
-
}), jM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, KM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, UM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, GM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JM =
|
|
28427
|
+
}), jM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, KM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, UM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, GM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JM = Nn.create({
|
|
28426
28428
|
name: "italic",
|
|
28427
28429
|
addOptions() {
|
|
28428
28430
|
return {
|
|
@@ -28539,7 +28541,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28539
28541
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
28540
28542
|
};
|
|
28541
28543
|
}
|
|
28542
|
-
}), xd =
|
|
28544
|
+
}), xd = Nn.create({
|
|
28543
28545
|
name: "textStyle",
|
|
28544
28546
|
priority: 101,
|
|
28545
28547
|
addOptions() {
|
|
@@ -28660,7 +28662,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28660
28662
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
28661
28663
|
};
|
|
28662
28664
|
}
|
|
28663
|
-
}), _M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, $M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e1 =
|
|
28665
|
+
}), _M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, $M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e1 = Nn.create({
|
|
28664
28666
|
name: "strike",
|
|
28665
28667
|
addOptions() {
|
|
28666
28668
|
return {
|
|
@@ -28726,7 +28728,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28726
28728
|
const T = [];
|
|
28727
28729
|
return this.options.bold !== !1 && T.push(lM.configure((n = this.options) === null || n === void 0 ? void 0 : n.bold)), this.options.blockquote !== !1 && T.push(oM.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && T.push(uM.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && T.push(hM.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && T.push(IM.configure((o = this.options) === null || o === void 0 ? void 0 : o.codeBlock)), this.options.document !== !1 && T.push(fM.configure((i = this.options) === null || i === void 0 ? void 0 : i.document)), this.options.dropcursor !== !1 && T.push(EM.configure((A = this.options) === null || A === void 0 ? void 0 : A.dropcursor)), this.options.gapcursor !== !1 && T.push(SM.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && T.push(kM.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && T.push(MM.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && T.push(YM.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && T.push(qM.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && T.push(JM.configure((g = this.options) === null || g === void 0 ? void 0 : g.italic)), this.options.listItem !== !1 && T.push(VM.configure((C = this.options) === null || C === void 0 ? void 0 : C.listItem)), this.options.orderedList !== !1 && T.push(XM.configure((I = this.options) === null || I === void 0 ? void 0 : I.orderedList)), this.options.paragraph !== !1 && T.push(ZM.configure((B = this.options) === null || B === void 0 ? void 0 : B.paragraph)), this.options.strike !== !1 && T.push(e1.configure((Q = this.options) === null || Q === void 0 ? void 0 : Q.strike)), this.options.text !== !1 && T.push(t1.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), T;
|
|
28728
28730
|
}
|
|
28729
|
-
}), r1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, i1 =
|
|
28731
|
+
}), r1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, i1 = Nn.create({
|
|
28730
28732
|
name: "highlight",
|
|
28731
28733
|
addOptions() {
|
|
28732
28734
|
return {
|