@dcrackel/hematournamentui 1.0.441 → 1.0.442
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 gr, 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 Fn(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 Fn(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 = Fn(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 = Fn(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), Fn(i, e);
|
|
1855
1855
|
}
|
|
1856
1856
|
function dl(n, e) {
|
|
1857
|
-
const t = Me(n), r = +
|
|
1857
|
+
const t = Me(n), r = +Fn(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 Zn(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
|
+
}, Gn = {
|
|
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 Jn(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), Fn(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), Fn(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 Fn(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 Jn(
|
|
3915
|
+
Gn.basicOptionalMinutes,
|
|
3916
3916
|
t
|
|
3917
3917
|
);
|
|
3918
3918
|
case "XX":
|
|
3919
|
-
return
|
|
3919
|
+
return Jn(Gn.basic, t);
|
|
3920
3920
|
case "XXXX":
|
|
3921
|
-
return
|
|
3922
|
-
|
|
3921
|
+
return Jn(
|
|
3922
|
+
Gn.basicOptionalSeconds,
|
|
3923
3923
|
t
|
|
3924
3924
|
);
|
|
3925
3925
|
case "XXXXX":
|
|
3926
|
-
return
|
|
3927
|
-
|
|
3926
|
+
return Jn(
|
|
3927
|
+
Gn.extendedOptionalSeconds,
|
|
3928
3928
|
t
|
|
3929
3929
|
);
|
|
3930
3930
|
case "XXX":
|
|
3931
3931
|
default:
|
|
3932
|
-
return
|
|
3932
|
+
return Jn(Gn.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 Jn(
|
|
3952
|
+
Gn.basicOptionalMinutes,
|
|
3953
3953
|
t
|
|
3954
3954
|
);
|
|
3955
3955
|
case "xx":
|
|
3956
|
-
return
|
|
3956
|
+
return Jn(Gn.basic, t);
|
|
3957
3957
|
case "xxxx":
|
|
3958
|
-
return
|
|
3959
|
-
|
|
3958
|
+
return Jn(
|
|
3959
|
+
Gn.basicOptionalSeconds,
|
|
3960
3960
|
t
|
|
3961
3961
|
);
|
|
3962
3962
|
case "xxxxx":
|
|
3963
|
-
return
|
|
3964
|
-
|
|
3963
|
+
return Jn(
|
|
3964
|
+
Gn.extendedOptionalSeconds,
|
|
3965
3965
|
t
|
|
3966
3966
|
);
|
|
3967
3967
|
case "xxx":
|
|
3968
3968
|
default:
|
|
3969
|
-
return
|
|
3969
|
+
return Jn(Gn.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 Wn(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) => Zn(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 = Zn(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) => Zn(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
|
+
}, lr = (n, e) => {
|
|
4531
|
+
const t = Fn(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 })], cr = (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 = Wn(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) ? `${Zn(n[0], i, a)}${o && !n[1] ? "" : r}${n[1] ? Zn(n[1], i, a) : ""}` : Zn(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) => Zn(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, Wn(ce(), ge))) : IA(
|
|
4878
4878
|
() => [
|
|
4879
|
-
|
|
4880
|
-
k[1] ?
|
|
4879
|
+
Wn(ce(), k[0]),
|
|
4880
|
+
k[1] ? Wn(ce(), k[1]) : yo(i.value.partialRange)
|
|
4881
4881
|
],
|
|
4882
4882
|
i.value.enabled
|
|
4883
|
-
) :
|
|
4883
|
+
) : Wn(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, cr(ge, +xe.month, +xe.year))) : IA(
|
|
4895
4895
|
() => [
|
|
4896
|
-
T(k[0],
|
|
4896
|
+
T(k[0], cr(ge, +k[0].month, +k[0].year)),
|
|
4897
4897
|
T(
|
|
4898
4898
|
k[1],
|
|
4899
|
-
k[1] ?
|
|
4899
|
+
k[1] ? cr(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, cr(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) => Zn(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() : Zn(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 = lr(r.value[0], e.weekStart), ge = r.value[1] ? lr(r.value[1], e.weekStart) : [];
|
|
4961
4961
|
return [k.map((xe) => ce(xe)), ge.map((xe) => ce(xe))];
|
|
4962
4962
|
}
|
|
4963
|
-
return
|
|
4963
|
+
return lr(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 = Wn(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
|
+
}, Nn = {
|
|
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
|
+
...Nn
|
|
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
|
+
gr(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
|
+
gr(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
|
+
...Nn,
|
|
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
|
+
gr(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 = cr(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) => cr(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 = cr(_, 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
|
+
...Nn
|
|
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) => Wn(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 = Wn(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(Wn(Jt(ce()), B))) : r.value = [Wn(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
|
+
...Nn
|
|
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
|
+
...Nn
|
|
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
|
+
gr(":")
|
|
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
|
+
gr(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
|
+
...Nn
|
|
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
|
+
...Nn
|
|
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
|
+
...Nn
|
|
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
|
+
gr(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
|
+
...Nn
|
|
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(cr(ce(), o.month, o.year));
|
|
7010
|
+
T.value = ct(Jt(cr(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
|
+
gr(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
|
+
gr(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, ir] = $(wt, gt);
|
|
7331
7331
|
for (let Cn = 1; Cn <= Be; Cn++)
|
|
7332
|
-
if (
|
|
7333
|
-
const
|
|
7332
|
+
if (ir ? !!(Cn % 2) == Dn : Dn) {
|
|
7333
|
+
const jn = Y[0].days[0], jr = J(On(jn.value, -7), qe(te));
|
|
7334
7334
|
Y.unshift({ days: jr });
|
|
7335
7335
|
} else {
|
|
7336
|
-
const
|
|
7336
|
+
const jn = Y[Y.length - 1], jr = jn.days[jn.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 = Fn(le, { weekStartsOn: wt }), Dn = (ir) => {
|
|
7355
|
+
const Cn = J(ir, Y);
|
|
7356
7356
|
if (V.push({ days: Cn }), !V[V.length - 1].days.some(
|
|
7357
|
-
(
|
|
7357
|
+
(jn) => Ue(Jt(jn.value), Jt(Be))
|
|
7358
7358
|
)) {
|
|
7359
|
-
const
|
|
7360
|
-
Dn(
|
|
7359
|
+
const jn = On(ir, 7);
|
|
7360
|
+
Dn(jn);
|
|
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
|
+
}, Yn = (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, qn = (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] ? qn(0) : (qn(0), qn(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 && (Yn(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
|
+
...Nn
|
|
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 ? Fn($, { 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) => Zn(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
|
+
...Nn
|
|
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
|
+
gr(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), _ = lr(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 _ = lr(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 = lr(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 = lr(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 = lr(n.value[0], e.weekStart), _ = n.value[1] ? lr(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 || Yn(), q(o.modelValue));
|
|
8986
8986
|
}, Ee = () => {
|
|
8987
8987
|
var V;
|
|
8988
|
-
R.value = "",
|
|
8988
|
+
R.value = "", Yn(), (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
|
+
}, Yn = () => {
|
|
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)), Yn(), r("blur"));
|
|
9004
|
+
}, qn = (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: qn,
|
|
9071
9071
|
onSetEmptyDate: P(_),
|
|
9072
9072
|
onSelectDate: Qt,
|
|
9073
9073
|
onToggle: Qo,
|
|
@@ -9418,9 +9418,9 @@ const Bo = /* @__PURE__ */ ie(UE, [["render", WE]]), XE = {
|
|
|
9418
9418
|
},
|
|
9419
9419
|
getWeapons() {
|
|
9420
9420
|
var n;
|
|
9421
|
-
return
|
|
9422
|
-
text: e.
|
|
9423
|
-
link: e.
|
|
9421
|
+
return (n = this.localWeapons) == null ? void 0 : n.map((e) => ({
|
|
9422
|
+
text: e.Name,
|
|
9423
|
+
link: e.Id
|
|
9424
9424
|
}));
|
|
9425
9425
|
}
|
|
9426
9426
|
},
|
|
@@ -9533,7 +9533,6 @@ 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),
|
|
9537
9536
|
p(a, {
|
|
9538
9537
|
color: "quinary",
|
|
9539
9538
|
invalid: o.validation.WeaponId,
|
|
@@ -10453,7 +10452,6 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
|
|
|
10453
10452
|
function Qv(n, e, t, r, o, i) {
|
|
10454
10453
|
const A = y("BasicEventInfo"), a = y("PoolConfiguration"), l = y("DirectEliminationPromotion"), c = y("DirectElimination");
|
|
10455
10454
|
return f(), m("div", Ev, [
|
|
10456
|
-
Fn(" BasicEventInfo = " + Xe(o.localWeapons) + " ", 1),
|
|
10457
10455
|
o.currentStep === 1 ? (f(), se(A, {
|
|
10458
10456
|
key: 0,
|
|
10459
10457
|
event: o.localEvent,
|
|
@@ -11691,7 +11689,7 @@ function bw() {
|
|
|
11691
11689
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11692
11690
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11693
11691
|
}
|
|
11694
|
-
var Cs = typeof window < "u" && typeof window.document < "u",
|
|
11692
|
+
var Cs = typeof window < "u" && typeof window.document < "u", er = Cs ? window : {}, Dl = Cs && er.document.documentElement ? "ontouchstart" in er.document.documentElement : !1, Sl = Cs ? "PointerEvent" in er : !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 = {
|
|
11695
11693
|
// Define the view mode of the cropper
|
|
11696
11694
|
viewMode: 0,
|
|
11697
11695
|
// 0, 1, 2, 3
|
|
@@ -11762,7 +11760,7 @@ var Cs = typeof window < "u" && typeof window.document < "u", tr = Cs ? window :
|
|
|
11762
11760
|
cropend: null,
|
|
11763
11761
|
crop: null,
|
|
11764
11762
|
zoom: null
|
|
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 ||
|
|
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 || er.isNaN;
|
|
11766
11764
|
function Ke(n) {
|
|
11767
11765
|
return typeof n == "number" && !zw(n);
|
|
11768
11766
|
}
|
|
@@ -11839,11 +11837,11 @@ function bt(n, e) {
|
|
|
11839
11837
|
t ? t.indexOf(e) < 0 && (n.className = "".concat(t, " ").concat(e)) : n.className = e;
|
|
11840
11838
|
}
|
|
11841
11839
|
}
|
|
11842
|
-
function
|
|
11840
|
+
function _n(n, e) {
|
|
11843
11841
|
if (e) {
|
|
11844
11842
|
if (Ke(n.length)) {
|
|
11845
11843
|
ht(n, function(t) {
|
|
11846
|
-
|
|
11844
|
+
_n(t, e);
|
|
11847
11845
|
});
|
|
11848
11846
|
return;
|
|
11849
11847
|
}
|
|
@@ -11862,7 +11860,7 @@ function Fo(n, e, t) {
|
|
|
11862
11860
|
});
|
|
11863
11861
|
return;
|
|
11864
11862
|
}
|
|
11865
|
-
t ? bt(n, e) :
|
|
11863
|
+
t ? bt(n, e) : _n(n, e);
|
|
11866
11864
|
}
|
|
11867
11865
|
}
|
|
11868
11866
|
var qw = /([a-z\d])([A-Z])/g;
|
|
@@ -11908,7 +11906,7 @@ var Tg = /\s\s*/, Rg = function() {
|
|
|
11908
11906
|
e = i;
|
|
11909
11907
|
}
|
|
11910
11908
|
});
|
|
11911
|
-
|
|
11909
|
+
er.addEventListener("test", t, r), er.removeEventListener("test", t, r);
|
|
11912
11910
|
}
|
|
11913
11911
|
return n;
|
|
11914
11912
|
}();
|
|
@@ -11952,7 +11950,7 @@ function Pg(n) {
|
|
|
11952
11950
|
top: e.top + (window.pageYOffset - document.documentElement.clientTop)
|
|
11953
11951
|
};
|
|
11954
11952
|
}
|
|
11955
|
-
var Xs =
|
|
11953
|
+
var Xs = er.location, Kw = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
|
11956
11954
|
function Wc(n) {
|
|
11957
11955
|
var e = n.match(Kw);
|
|
11958
11956
|
return e !== null && (e[1] !== Xs.protocol || e[2] !== Xs.hostname || e[3] !== Xs.port);
|
|
@@ -12141,7 +12139,7 @@ var ty = {
|
|
|
12141
12139
|
},
|
|
12142
12140
|
initContainer: function() {
|
|
12143
12141
|
var e = this.element, t = this.options, r = this.container, o = this.cropper, i = Number(t.minContainerWidth), A = Number(t.minContainerHeight);
|
|
12144
|
-
bt(o, en),
|
|
12142
|
+
bt(o, en), _n(e, en);
|
|
12145
12143
|
var a = {
|
|
12146
12144
|
width: Math.max(r.offsetWidth, i >= 0 ? i : kg),
|
|
12147
12145
|
height: Math.max(r.offsetHeight, A >= 0 ? A : Mg)
|
|
@@ -12149,7 +12147,7 @@ var ty = {
|
|
|
12149
12147
|
this.containerData = a, wr(o, {
|
|
12150
12148
|
width: a.width,
|
|
12151
12149
|
height: a.height
|
|
12152
|
-
}), bt(e, en),
|
|
12150
|
+
}), bt(e, en), _n(o, en);
|
|
12153
12151
|
},
|
|
12154
12152
|
// Canvas (image wrapper)
|
|
12155
12153
|
initCanvas: function() {
|
|
@@ -12474,7 +12472,7 @@ var ty = {
|
|
|
12474
12472
|
S = !1;
|
|
12475
12473
|
break;
|
|
12476
12474
|
}
|
|
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 || (
|
|
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 || (_n(this.cropBox, en), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
|
12478
12476
|
break;
|
|
12479
12477
|
}
|
|
12480
12478
|
S && (i.width = d, i.height = g, i.left = c, i.top = u, this.action = a, this.renderCropBox()), ht(A, function(U) {
|
|
@@ -12484,7 +12482,7 @@ var ty = {
|
|
|
12484
12482
|
}, Ay = {
|
|
12485
12483
|
// Show the crop box manually
|
|
12486
12484
|
crop: function() {
|
|
12487
|
-
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && bt(this.dragBox, YA),
|
|
12485
|
+
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;
|
|
12488
12486
|
},
|
|
12489
12487
|
// Reset the image and crop box to their initial states
|
|
12490
12488
|
reset: function() {
|
|
@@ -12497,7 +12495,7 @@ var ty = {
|
|
|
12497
12495
|
top: 0,
|
|
12498
12496
|
width: 0,
|
|
12499
12497
|
height: 0
|
|
12500
|
-
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(),
|
|
12498
|
+
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), _n(this.dragBox, YA), bt(this.cropBox, en)), this;
|
|
12501
12499
|
},
|
|
12502
12500
|
/**
|
|
12503
12501
|
* Replace the image's src and rebuild the cropper
|
|
@@ -12513,7 +12511,7 @@ var ty = {
|
|
|
12513
12511
|
},
|
|
12514
12512
|
// Enable (unfreeze) the cropper
|
|
12515
12513
|
enable: function() {
|
|
12516
|
-
return this.ready && this.disabled && (this.disabled = !1,
|
|
12514
|
+
return this.ready && this.disabled && (this.disabled = !1, _n(this.cropper, Fc)), this;
|
|
12517
12515
|
},
|
|
12518
12516
|
// Disable (freeze) the cropper
|
|
12519
12517
|
disable: function() {
|
|
@@ -12794,7 +12792,7 @@ var ty = {
|
|
|
12794
12792
|
}
|
|
12795
12793
|
return this;
|
|
12796
12794
|
}
|
|
12797
|
-
}, sy =
|
|
12795
|
+
}, sy = er.Cropper, Fg = /* @__PURE__ */ function() {
|
|
12798
12796
|
function n(e) {
|
|
12799
12797
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12800
12798
|
if (Bw(this, n), !e || !Rw.test(e.tagName))
|
|
@@ -12863,7 +12861,7 @@ var ty = {
|
|
|
12863
12861
|
value: function() {
|
|
12864
12862
|
var t = this, r = this.image;
|
|
12865
12863
|
r.onload = null, r.onerror = null, this.sizing = !0;
|
|
12866
|
-
var o =
|
|
12864
|
+
var o = er.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(er.navigator.userAgent), i = function(c, u) {
|
|
12867
12865
|
nt(t.imageData, {
|
|
12868
12866
|
naturalWidth: c,
|
|
12869
12867
|
naturalHeight: u,
|
|
@@ -12892,7 +12890,7 @@ var ty = {
|
|
|
12892
12890
|
var t = this.element, r = this.options, o = this.image, i = t.parentNode, A = document.createElement("div");
|
|
12893
12891
|
A.innerHTML = Pw;
|
|
12894
12892
|
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"));
|
|
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),
|
|
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), _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, {
|
|
12896
12894
|
once: !0
|
|
12897
12895
|
}), qo(t, jc);
|
|
12898
12896
|
}
|
|
@@ -12903,7 +12901,7 @@ var ty = {
|
|
|
12903
12901
|
if (this.ready) {
|
|
12904
12902
|
this.ready = !1, this.unbind(), this.resetPreview();
|
|
12905
12903
|
var t = this.cropper.parentNode;
|
|
12906
|
-
t && t.removeChild(this.cropper),
|
|
12904
|
+
t && t.removeChild(this.cropper), _n(this.element, en);
|
|
12907
12905
|
}
|
|
12908
12906
|
}
|
|
12909
12907
|
}, {
|
|
@@ -16411,7 +16409,7 @@ class br extends qt {
|
|
|
16411
16409
|
return pt.fromReplace(e, this.from, this.to, i);
|
|
16412
16410
|
}
|
|
16413
16411
|
invert() {
|
|
16414
|
-
return new
|
|
16412
|
+
return new Xn(this.from, this.to, this.mark);
|
|
16415
16413
|
}
|
|
16416
16414
|
map(e) {
|
|
16417
16415
|
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
@@ -16438,7 +16436,7 @@ class br extends qt {
|
|
|
16438
16436
|
}
|
|
16439
16437
|
}
|
|
16440
16438
|
qt.jsonID("addMark", br);
|
|
16441
|
-
class
|
|
16439
|
+
class Xn extends qt {
|
|
16442
16440
|
/**
|
|
16443
16441
|
Create a mark-removing step.
|
|
16444
16442
|
*/
|
|
@@ -16454,10 +16452,10 @@ class Zn extends qt {
|
|
|
16454
16452
|
}
|
|
16455
16453
|
map(e) {
|
|
16456
16454
|
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
16457
|
-
return t.deleted && r.deleted || t.pos >= r.pos ? null : new
|
|
16455
|
+
return t.deleted && r.deleted || t.pos >= r.pos ? null : new Xn(t.pos, r.pos, this.mark);
|
|
16458
16456
|
}
|
|
16459
16457
|
merge(e) {
|
|
16460
|
-
return e instanceof
|
|
16458
|
+
return e instanceof Xn && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Xn(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
16461
16459
|
}
|
|
16462
16460
|
toJSON() {
|
|
16463
16461
|
return {
|
|
@@ -16473,10 +16471,10 @@ class Zn extends qt {
|
|
|
16473
16471
|
static fromJSON(e, t) {
|
|
16474
16472
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
16475
16473
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
16476
|
-
return new
|
|
16474
|
+
return new Xn(t.from, t.to, e.markFromJSON(t.mark));
|
|
16477
16475
|
}
|
|
16478
16476
|
}
|
|
16479
|
-
qt.jsonID("removeMark",
|
|
16477
|
+
qt.jsonID("removeMark", Xn);
|
|
16480
16478
|
class xr extends qt {
|
|
16481
16479
|
/**
|
|
16482
16480
|
Create a node mark step.
|
|
@@ -16689,7 +16687,7 @@ function Vy(n, e, t, r) {
|
|
|
16689
16687
|
if (!r.isInSet(d) && u.type.allowsMarkType(r.type)) {
|
|
16690
16688
|
let g = Math.max(c, e), C = Math.min(c + l.nodeSize, t), I = r.addToSet(d);
|
|
16691
16689
|
for (let B = 0; B < d.length; B++)
|
|
16692
|
-
d[B].isInSet(I) || (A && A.to == g && A.mark.eq(d[B]) ? A.to = C : o.push(A = new
|
|
16690
|
+
d[B].isInSet(I) || (A && A.to == g && A.mark.eq(d[B]) ? A.to = C : o.push(A = new Xn(g, C, d[B])));
|
|
16693
16691
|
a && a.to == g ? a.to = C : i.push(a = new br(g, C, r));
|
|
16694
16692
|
}
|
|
16695
16693
|
}), o.forEach((l) => n.step(l)), i.forEach((l) => n.step(l));
|
|
@@ -16717,7 +16715,7 @@ function Wy(n, e, t, r) {
|
|
|
16717
16715
|
g ? (g.to = c, g.step = i) : o.push({ style: d, from: Math.max(a, e), to: c, step: i });
|
|
16718
16716
|
}
|
|
16719
16717
|
}
|
|
16720
|
-
}), o.forEach((A) => n.step(new
|
|
16718
|
+
}), o.forEach((A) => n.step(new Xn(A.from, A.to, A.style)));
|
|
16721
16719
|
}
|
|
16722
16720
|
function ah(n, e, t, r = t.contentMatch, o = !0) {
|
|
16723
16721
|
let i = n.doc.nodeAt(e), A = [], a = e + 1;
|
|
@@ -16728,7 +16726,7 @@ function ah(n, e, t, r = t.contentMatch, o = !0) {
|
|
|
16728
16726
|
else {
|
|
16729
16727
|
r = d;
|
|
16730
16728
|
for (let g = 0; g < c.marks.length; g++)
|
|
16731
|
-
t.allowsMarkType(c.marks[g].type) || n.step(new
|
|
16729
|
+
t.allowsMarkType(c.marks[g].type) || n.step(new Xn(a, u, c.marks[g]));
|
|
16732
16730
|
if (o && c.isText && t.whitespace != "pre") {
|
|
16733
16731
|
let g, C = /\r?\n|\r/g, I;
|
|
16734
16732
|
for (; g = C.exec(c.text); )
|
|
@@ -18315,7 +18313,7 @@ const oa = /* @__PURE__ */ Object.create(null);
|
|
|
18315
18313
|
function Ch(n) {
|
|
18316
18314
|
return n in oa ? n + "$" + ++oa[n] : (oa[n] = 0, n + "$");
|
|
18317
18315
|
}
|
|
18318
|
-
class
|
|
18316
|
+
class or {
|
|
18319
18317
|
/**
|
|
18320
18318
|
Create a plugin key.
|
|
18321
18319
|
*/
|
|
@@ -18345,7 +18343,7 @@ const Tt = function(n) {
|
|
|
18345
18343
|
return e && e.nodeType == 11 ? e.host : e;
|
|
18346
18344
|
};
|
|
18347
18345
|
let Ya = null;
|
|
18348
|
-
const
|
|
18346
|
+
const sr = function(n, e, t) {
|
|
18349
18347
|
let r = Ya || (Ya = document.createRange());
|
|
18350
18348
|
return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
|
|
18351
18349
|
}, Bb = function() {
|
|
@@ -18357,7 +18355,7 @@ function Iu(n, e, t, r, o) {
|
|
|
18357
18355
|
for (; ; ) {
|
|
18358
18356
|
if (n == t && e == r)
|
|
18359
18357
|
return !0;
|
|
18360
|
-
if (e == (o < 0 ? 0 :
|
|
18358
|
+
if (e == (o < 0 ? 0 : Vn(n))) {
|
|
18361
18359
|
let i = n.parentNode;
|
|
18362
18360
|
if (!i || i.nodeType != 1 || uA(n) || Eb.test(n.nodeName) || n.contentEditable == "false")
|
|
18363
18361
|
return !1;
|
|
@@ -18365,12 +18363,12 @@ function Iu(n, e, t, r, o) {
|
|
|
18365
18363
|
} else if (n.nodeType == 1) {
|
|
18366
18364
|
if (n = n.childNodes[e + (o < 0 ? -1 : 0)], n.contentEditable == "false")
|
|
18367
18365
|
return !1;
|
|
18368
|
-
e = o < 0 ?
|
|
18366
|
+
e = o < 0 ? Vn(n) : 0;
|
|
18369
18367
|
} else
|
|
18370
18368
|
return !1;
|
|
18371
18369
|
}
|
|
18372
18370
|
}
|
|
18373
|
-
function
|
|
18371
|
+
function Vn(n) {
|
|
18374
18372
|
return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
|
|
18375
18373
|
}
|
|
18376
18374
|
function Qb(n, e) {
|
|
@@ -18380,7 +18378,7 @@ function Qb(n, e) {
|
|
|
18380
18378
|
if (n.nodeType == 1 && e > 0) {
|
|
18381
18379
|
if (n.contentEditable == "false")
|
|
18382
18380
|
return null;
|
|
18383
|
-
n = n.childNodes[e - 1], e =
|
|
18381
|
+
n = n.childNodes[e - 1], e = Vn(n);
|
|
18384
18382
|
} else if (n.parentNode && !uA(n))
|
|
18385
18383
|
e = Tt(n), n = n.parentNode;
|
|
18386
18384
|
else
|
|
@@ -18402,13 +18400,13 @@ function vb(n, e) {
|
|
|
18402
18400
|
}
|
|
18403
18401
|
}
|
|
18404
18402
|
function wb(n, e, t) {
|
|
18405
|
-
for (let r = e == 0, o = e ==
|
|
18403
|
+
for (let r = e == 0, o = e == Vn(n); r || o; ) {
|
|
18406
18404
|
if (n == t)
|
|
18407
18405
|
return !0;
|
|
18408
18406
|
let i = Tt(n);
|
|
18409
18407
|
if (n = n.parentNode, !n)
|
|
18410
18408
|
return !1;
|
|
18411
|
-
r = r && i == 0, o = o && i ==
|
|
18409
|
+
r = r && i == 0, o = o && i == Vn(n);
|
|
18412
18410
|
}
|
|
18413
18411
|
}
|
|
18414
18412
|
function uA(n) {
|
|
@@ -18444,9 +18442,9 @@ function bb(n, e, t) {
|
|
|
18444
18442
|
return { node: r.startContainer, offset: r.startOffset };
|
|
18445
18443
|
}
|
|
18446
18444
|
}
|
|
18447
|
-
const
|
|
18448
|
-
|
|
18449
|
-
const Ka = !on && /Chrome\/(\d+)/.exec(Nr), Ht = !!Ka, fh = Ka ? +Ka[1] : 0, Vt = !on && !!
|
|
18445
|
+
const tr = typeof navigator < "u" ? navigator : null, fu = typeof document < "u" ? document : null, Nr = tr && tr.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, Ln = !on && /gecko\/(\d+)/i.test(Nr);
|
|
18446
|
+
Ln && +(/Firefox\/(\d+)/.exec(Nr) || [0, 0])[1];
|
|
18447
|
+
const Ka = !on && /Chrome\/(\d+)/.exec(Nr), Ht = !!Ka, fh = Ka ? +Ka[1] : 0, Vt = !on && !!tr && /Apple Computer/.test(tr.vendor), ti = Vt && (/Mobile\/\w+/.test(Nr) || !!tr && tr.maxTouchPoints > 2), mn = ti || (tr ? /Mac/.test(tr.platform) : !1), xb = tr ? /Win/.test(tr.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;
|
|
18450
18448
|
function Sb(n) {
|
|
18451
18449
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
18452
18450
|
return e ? {
|
|
@@ -18461,7 +18459,7 @@ function Sb(n) {
|
|
|
18461
18459
|
bottom: n.documentElement.clientHeight
|
|
18462
18460
|
};
|
|
18463
18461
|
}
|
|
18464
|
-
function
|
|
18462
|
+
function Ar(n, e) {
|
|
18465
18463
|
return typeof n == "number" ? n : n[e];
|
|
18466
18464
|
}
|
|
18467
18465
|
function kb(n) {
|
|
@@ -18479,7 +18477,7 @@ function mu(n, e, t) {
|
|
|
18479
18477
|
if (A.nodeType != 1)
|
|
18480
18478
|
continue;
|
|
18481
18479
|
let a = A, l = a == i.body, c = l ? Sb(i) : kb(a), u = 0, d = 0;
|
|
18482
|
-
if (e.top < c.top +
|
|
18480
|
+
if (e.top < c.top + Ar(r, "top") ? d = -(c.top - e.top + Ar(o, "top")) : e.bottom > c.bottom - Ar(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Ar(o, "top") - c.top : e.bottom - c.bottom + Ar(o, "bottom")), e.left < c.left + Ar(r, "left") ? u = -(c.left - e.left + Ar(o, "left")) : e.right > c.right - Ar(r, "right") && (u = e.right - c.right + Ar(o, "right")), u || d)
|
|
18483
18481
|
if (l)
|
|
18484
18482
|
i.defaultView.scrollBy(u, d);
|
|
18485
18483
|
else {
|
|
@@ -18542,7 +18540,7 @@ function Eh(n, e) {
|
|
|
18542
18540
|
if (u.nodeType == 1)
|
|
18543
18541
|
g = u.getClientRects();
|
|
18544
18542
|
else if (u.nodeType == 3)
|
|
18545
|
-
g =
|
|
18543
|
+
g = sr(u).getClientRects();
|
|
18546
18544
|
else
|
|
18547
18545
|
continue;
|
|
18548
18546
|
for (let C = 0; C < g.length; C++) {
|
|
@@ -18634,7 +18632,7 @@ function Lb(n, e) {
|
|
|
18634
18632
|
for (let c = A; r && c; c = Ji(c))
|
|
18635
18633
|
c.draggable && (r = void 0);
|
|
18636
18634
|
if (A = Pb(A, e), r) {
|
|
18637
|
-
if (
|
|
18635
|
+
if (Ln && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
|
|
18638
18636
|
let u = r.childNodes[o], d;
|
|
18639
18637
|
u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && o++;
|
|
18640
18638
|
}
|
|
@@ -18659,14 +18657,14 @@ function mr(n, e) {
|
|
|
18659
18657
|
}
|
|
18660
18658
|
const Hb = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
18661
18659
|
function vh(n, e, t) {
|
|
18662
|
-
let { node: r, offset: o, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), A = dA ||
|
|
18660
|
+
let { node: r, offset: o, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), A = dA || Ln;
|
|
18663
18661
|
if (r.nodeType == 3)
|
|
18664
18662
|
if (A && (Hb.test(r.nodeValue) || (t < 0 ? !o : o == r.nodeValue.length))) {
|
|
18665
|
-
let l = mr(
|
|
18666
|
-
if (
|
|
18667
|
-
let c = mr(
|
|
18663
|
+
let l = mr(sr(r, o, o), t);
|
|
18664
|
+
if (Ln && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
|
|
18665
|
+
let c = mr(sr(r, o - 1, o - 1), -1);
|
|
18668
18666
|
if (c.top == l.top) {
|
|
18669
|
-
let u = mr(
|
|
18667
|
+
let u = mr(sr(r, o, o + 1), -1);
|
|
18670
18668
|
if (u.top != l.top)
|
|
18671
18669
|
return vi(u, u.left < c.left);
|
|
18672
18670
|
}
|
|
@@ -18674,35 +18672,35 @@ function vh(n, e, t) {
|
|
|
18674
18672
|
return l;
|
|
18675
18673
|
} else {
|
|
18676
18674
|
let l = o, c = o, u = t < 0 ? 1 : -1;
|
|
18677
|
-
return t < 0 && !o ? (c++, u = -1) : t >= 0 && o == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : c++, vi(mr(
|
|
18675
|
+
return t < 0 && !o ? (c++, u = -1) : t >= 0 && o == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : c++, vi(mr(sr(r, l, c), u), u < 0);
|
|
18678
18676
|
}
|
|
18679
18677
|
if (!n.state.doc.resolve(e - (i || 0)).parent.inlineContent) {
|
|
18680
|
-
if (i == null && o && (t < 0 || o ==
|
|
18678
|
+
if (i == null && o && (t < 0 || o == Vn(r))) {
|
|
18681
18679
|
let l = r.childNodes[o - 1];
|
|
18682
18680
|
if (l.nodeType == 1)
|
|
18683
18681
|
return ia(l.getBoundingClientRect(), !1);
|
|
18684
18682
|
}
|
|
18685
|
-
if (i == null && o <
|
|
18683
|
+
if (i == null && o < Vn(r)) {
|
|
18686
18684
|
let l = r.childNodes[o];
|
|
18687
18685
|
if (l.nodeType == 1)
|
|
18688
18686
|
return ia(l.getBoundingClientRect(), !0);
|
|
18689
18687
|
}
|
|
18690
18688
|
return ia(r.getBoundingClientRect(), t >= 0);
|
|
18691
18689
|
}
|
|
18692
|
-
if (i == null && o && (t < 0 || o ==
|
|
18693
|
-
let l = r.childNodes[o - 1], c = l.nodeType == 3 ?
|
|
18690
|
+
if (i == null && o && (t < 0 || o == Vn(r))) {
|
|
18691
|
+
let l = r.childNodes[o - 1], c = l.nodeType == 3 ? sr(l, Vn(l) - (A ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
18694
18692
|
if (c)
|
|
18695
18693
|
return vi(mr(c, 1), !1);
|
|
18696
18694
|
}
|
|
18697
|
-
if (i == null && o <
|
|
18695
|
+
if (i == null && o < Vn(r)) {
|
|
18698
18696
|
let l = r.childNodes[o];
|
|
18699
18697
|
for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
|
|
18700
18698
|
l = l.nextSibling;
|
|
18701
|
-
let c = l ? l.nodeType == 3 ?
|
|
18699
|
+
let c = l ? l.nodeType == 3 ? sr(l, 0, A ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
18702
18700
|
if (c)
|
|
18703
18701
|
return vi(mr(c, -1), !0);
|
|
18704
18702
|
}
|
|
18705
|
-
return vi(mr(r.nodeType == 3 ?
|
|
18703
|
+
return vi(mr(r.nodeType == 3 ? sr(r) : r, -t), t >= 0);
|
|
18706
18704
|
}
|
|
18707
18705
|
function vi(n, e) {
|
|
18708
18706
|
if (n.width == 0)
|
|
@@ -18745,7 +18743,7 @@ function Nb(n, e, t) {
|
|
|
18745
18743
|
if (a.nodeType == 1)
|
|
18746
18744
|
l = a.getClientRects();
|
|
18747
18745
|
else if (a.nodeType == 3)
|
|
18748
|
-
l =
|
|
18746
|
+
l = sr(a, 0, a.nodeValue.length).getClientRects();
|
|
18749
18747
|
else
|
|
18750
18748
|
continue;
|
|
18751
18749
|
for (let c = 0; c < l.length; c++) {
|
|
@@ -18778,7 +18776,7 @@ let Eu = null, Qu = null, vu = !1;
|
|
|
18778
18776
|
function jb(n, e, t) {
|
|
18779
18777
|
return Eu == e && Qu == t ? vu : (Eu = e, Qu = t, vu = t == "up" || t == "down" ? Nb(n, e, t) : qb(n, e, t));
|
|
18780
18778
|
}
|
|
18781
|
-
const En = 0, wu = 1, $r = 2,
|
|
18779
|
+
const En = 0, wu = 1, $r = 2, nr = 3;
|
|
18782
18780
|
class gA {
|
|
18783
18781
|
constructor(e, t, r, o) {
|
|
18784
18782
|
this.parent = e, this.children = t, this.dom = r, this.contentDOM = o, this.dirty = En, r.pmViewDesc = this;
|
|
@@ -19032,7 +19030,7 @@ class gA {
|
|
|
19032
19030
|
C = B;
|
|
19033
19031
|
}
|
|
19034
19032
|
let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), c = r.getSelection(), u = !1;
|
|
19035
|
-
if ((
|
|
19033
|
+
if ((Ln || Vt) && e == t) {
|
|
19036
19034
|
let { node: g, offset: C } = a;
|
|
19037
19035
|
if (g.nodeType == 3) {
|
|
19038
19036
|
if (u = !!(C && g.nodeValue[C - 1] == `
|
|
@@ -19051,7 +19049,7 @@ class gA {
|
|
|
19051
19049
|
u = I && (I.nodeName == "BR" || I.contentEditable == "false");
|
|
19052
19050
|
}
|
|
19053
19051
|
}
|
|
19054
|
-
if (
|
|
19052
|
+
if (Ln && c.focusNode && c.focusNode != l.node && c.focusNode.nodeType == 1) {
|
|
19055
19053
|
let g = c.focusNode.childNodes[c.focusOffset];
|
|
19056
19054
|
g && g.contentEditable == "false" && (o = !0);
|
|
19057
19055
|
}
|
|
@@ -19088,10 +19086,10 @@ class gA {
|
|
|
19088
19086
|
if (r == A ? e <= A && t >= r : e < A && t > r) {
|
|
19089
19087
|
let a = r + i.border, l = A - i.border;
|
|
19090
19088
|
if (e >= a && t <= l) {
|
|
19091
|
-
this.dirty = e == r || t == A ? $r : wu, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty =
|
|
19089
|
+
this.dirty = e == r || t == A ? $r : wu, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = nr : i.markDirty(e - a, t - a);
|
|
19092
19090
|
return;
|
|
19093
19091
|
} else
|
|
19094
|
-
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? $r :
|
|
19092
|
+
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? $r : nr;
|
|
19095
19093
|
}
|
|
19096
19094
|
r = A;
|
|
19097
19095
|
}
|
|
@@ -19180,10 +19178,10 @@ class ho extends gA {
|
|
|
19180
19178
|
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);
|
|
19181
19179
|
}
|
|
19182
19180
|
parseRule() {
|
|
19183
|
-
return this.dirty &
|
|
19181
|
+
return this.dirty & nr || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
19184
19182
|
}
|
|
19185
19183
|
matchesMark(e) {
|
|
19186
|
-
return this.dirty !=
|
|
19184
|
+
return this.dirty != nr && this.mark.eq(e);
|
|
19187
19185
|
}
|
|
19188
19186
|
markDirty(e, t) {
|
|
19189
19187
|
if (super.markDirty(e, t), this.dirty != En) {
|
|
@@ -19304,7 +19302,7 @@ class Tr extends gA {
|
|
|
19304
19302
|
// If this desc must be updated to match the given node decoration,
|
|
19305
19303
|
// do so and return true.
|
|
19306
19304
|
update(e, t, r, o) {
|
|
19307
|
-
return this.dirty ==
|
|
19305
|
+
return this.dirty == nr || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, o), !0);
|
|
19308
19306
|
}
|
|
19309
19307
|
updateInner(e, t, r, o) {
|
|
19310
19308
|
this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(o, this.posAtStart), this.dirty = En;
|
|
@@ -19343,7 +19341,7 @@ class Qs extends Tr {
|
|
|
19343
19341
|
return { skip: e || !0 };
|
|
19344
19342
|
}
|
|
19345
19343
|
update(e, t, r, o) {
|
|
19346
|
-
return this.dirty ==
|
|
19344
|
+
return this.dirty == nr || 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);
|
|
19347
19345
|
}
|
|
19348
19346
|
inParent() {
|
|
19349
19347
|
let e = this.parent.contentDOM;
|
|
@@ -19366,7 +19364,7 @@ class Qs extends Tr {
|
|
|
19366
19364
|
return new Qs(this.parent, o, this.outerDeco, this.innerDeco, i, i, r);
|
|
19367
19365
|
}
|
|
19368
19366
|
markDirty(e, t) {
|
|
19369
|
-
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
19367
|
+
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = nr);
|
|
19370
19368
|
}
|
|
19371
19369
|
get domAtom() {
|
|
19372
19370
|
return !1;
|
|
@@ -19397,7 +19395,7 @@ class Ub extends Tr {
|
|
|
19397
19395
|
// through. If it does, and there's a `contentDOM` node, our logic
|
|
19398
19396
|
// updates the children.
|
|
19399
19397
|
update(e, t, r, o) {
|
|
19400
|
-
if (this.dirty ==
|
|
19398
|
+
if (this.dirty == nr)
|
|
19401
19399
|
return !1;
|
|
19402
19400
|
if (this.spec.update) {
|
|
19403
19401
|
let i = this.spec.update(e, t, r);
|
|
@@ -19576,7 +19574,7 @@ class Jb {
|
|
|
19576
19574
|
}
|
|
19577
19575
|
updateNodeAt(e, t, r, o, i) {
|
|
19578
19576
|
let A = this.top.children[o];
|
|
19579
|
-
return A.dirty ==
|
|
19577
|
+
return A.dirty == nr && A.dom == A.contentDOM && (A.dirty = $r), A.update(e, t, r, i) ? (this.destroyBetween(this.index, o), this.index++, !0) : !1;
|
|
19580
19578
|
}
|
|
19581
19579
|
findIndexWithChild(e) {
|
|
19582
19580
|
for (; ; ) {
|
|
@@ -19604,7 +19602,7 @@ class Jb {
|
|
|
19604
19602
|
let c = this.preMatch.matched.get(l);
|
|
19605
19603
|
if (c != null && c != i)
|
|
19606
19604
|
return !1;
|
|
19607
|
-
let u = l.dom, d, g = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty !=
|
|
19605
|
+
let u = l.dom, d, g = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != nr && Ga(t, l.outerDeco));
|
|
19608
19606
|
if (!g && l.update(e, t, r, o))
|
|
19609
19607
|
return this.destroyBetween(this.index, a), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
19610
19608
|
if (!g && (d = this.recreateWrapper(l, e, t, r, o, A)))
|
|
@@ -19811,7 +19809,7 @@ function Fl(n, e = null) {
|
|
|
19811
19809
|
function kh(n) {
|
|
19812
19810
|
return n.editable ? n.hasFocus() : Oh(n) && document.activeElement && document.activeElement.contains(n.dom);
|
|
19813
19811
|
}
|
|
19814
|
-
function
|
|
19812
|
+
function dr(n, e = !1) {
|
|
19815
19813
|
let t = n.state.selection;
|
|
19816
19814
|
if (Mh(n, t), !!kh(n)) {
|
|
19817
19815
|
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && Ht) {
|
|
@@ -19947,7 +19945,7 @@ function nx(n) {
|
|
|
19947
19945
|
if (!t)
|
|
19948
19946
|
return;
|
|
19949
19947
|
let o, i, A = !1;
|
|
19950
|
-
for (
|
|
19948
|
+
for (Ln && t.nodeType == 1 && r < WA(t) && Pi(t.childNodes[r], -1) && (A = !0); ; )
|
|
19951
19949
|
if (r > 0) {
|
|
19952
19950
|
if (t.nodeType != 1)
|
|
19953
19951
|
break;
|
|
@@ -20053,7 +20051,7 @@ function Wa(n, e, t) {
|
|
|
20053
20051
|
n.domObserver.setCurSelection();
|
|
20054
20052
|
let { state: o } = n;
|
|
20055
20053
|
setTimeout(() => {
|
|
20056
|
-
n.state == o &&
|
|
20054
|
+
n.state == o && dr(n);
|
|
20057
20055
|
}, 50);
|
|
20058
20056
|
}
|
|
20059
20057
|
function Tu(n, e) {
|
|
@@ -20505,13 +20503,13 @@ class xx {
|
|
|
20505
20503
|
node: i,
|
|
20506
20504
|
pos: A,
|
|
20507
20505
|
addAttr: !!(this.target && !this.target.draggable),
|
|
20508
|
-
setUneditable: !!(this.target &&
|
|
20506
|
+
setUneditable: !!(this.target && Ln && !this.target.hasAttribute("contentEditable"))
|
|
20509
20507
|
}), 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(() => {
|
|
20510
20508
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
20511
20509
|
}, 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");
|
|
20512
20510
|
}
|
|
20513
20511
|
done() {
|
|
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(() =>
|
|
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(() => dr(this.view)), this.view.input.mouseDown = null;
|
|
20515
20513
|
}
|
|
20516
20514
|
up(e) {
|
|
20517
20515
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
@@ -20551,7 +20549,7 @@ Xt.compositionstart = Xt.compositionupdate = (n) => {
|
|
|
20551
20549
|
let { state: e } = n, t = e.selection.$to;
|
|
20552
20550
|
if (e.selection instanceof Le && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
20553
20551
|
n.markCursor = n.state.storedMarks || t.marks(), XA(n, !0), n.markCursor = null;
|
|
20554
|
-
else if (XA(n, !e.selection.empty),
|
|
20552
|
+
else if (XA(n, !e.selection.empty), Ln && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
|
|
20555
20553
|
let r = n.domSelectionRange();
|
|
20556
20554
|
for (let o = r.focusNode, i = r.focusOffset; o && o.nodeType == 1 && i != 0; ) {
|
|
20557
20555
|
let A = i < 0 ? o.lastChild : o.childNodes[i - 1];
|
|
@@ -20734,7 +20732,7 @@ Xt.drop = (n, e) => {
|
|
|
20734
20732
|
};
|
|
20735
20733
|
Wt.focus = (n) => {
|
|
20736
20734
|
n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
|
|
20737
|
-
n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) &&
|
|
20735
|
+
n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && dr(n);
|
|
20738
20736
|
}, 20));
|
|
20739
20737
|
};
|
|
20740
20738
|
Wt.blur = (n, e) => {
|
|
@@ -21323,7 +21321,7 @@ class Hx {
|
|
|
21323
21321
|
onSelectionChange() {
|
|
21324
21322
|
if (Mu(this.view)) {
|
|
21325
21323
|
if (this.suppressingSelectionUpdates)
|
|
21326
|
-
return
|
|
21324
|
+
return dr(this.view);
|
|
21327
21325
|
if (on && Or <= 11 && !this.view.state.selection.empty) {
|
|
21328
21326
|
let e = this.view.domSelectionRange();
|
|
21329
21327
|
if (e.focusNode && go(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
@@ -21371,7 +21369,7 @@ class Hx {
|
|
|
21371
21369
|
let d = this.registerMutation(t[u], l);
|
|
21372
21370
|
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));
|
|
21373
21371
|
}
|
|
21374
|
-
if (
|
|
21372
|
+
if (Ln && l.length) {
|
|
21375
21373
|
let u = l.filter((d) => d.nodeName == "BR");
|
|
21376
21374
|
if (u.length == 2) {
|
|
21377
21375
|
let [d, g] = u;
|
|
@@ -21385,7 +21383,7 @@ class Hx {
|
|
|
21385
21383
|
}
|
|
21386
21384
|
}
|
|
21387
21385
|
let c = null;
|
|
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,
|
|
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, dr(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) || dr(e), this.currentSelection.set(r));
|
|
21389
21387
|
}
|
|
21390
21388
|
registerMutation(e, t) {
|
|
21391
21389
|
if (t.indexOf(e.target) > -1)
|
|
@@ -21423,7 +21421,7 @@ class Hx {
|
|
|
21423
21421
|
let Nu = /* @__PURE__ */ new WeakMap(), Yu = !1;
|
|
21424
21422
|
function Nx(n) {
|
|
21425
21423
|
if (!Nu.has(n) && (Nu.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
|
|
21426
|
-
if (n.requiresGeckoHackNode =
|
|
21424
|
+
if (n.requiresGeckoHackNode = Ln, Yu)
|
|
21427
21425
|
return;
|
|
21428
21426
|
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;
|
|
21429
21427
|
}
|
|
@@ -21548,7 +21546,7 @@ function Gx(n, e, t, r, o) {
|
|
|
21548
21546
|
let v = I.start, G = I.endA, w, O, U;
|
|
21549
21547
|
if (T) {
|
|
21550
21548
|
if (B.pos == Q.pos)
|
|
21551
|
-
on && Or <= 11 && B.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() =>
|
|
21549
|
+
on && Or <= 11 && B.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => dr(n), 20)), w = n.state.tr.delete(v, G), O = u.resolve(I.start).marksAcross(u.resolve(I.endA));
|
|
21552
21550
|
else if (
|
|
21553
21551
|
// Adding or removing a mark
|
|
21554
21552
|
I.endA == I.endB && (U = Jx(B.parent.content.cut(B.parentOffset, Q.parentOffset), b.parent.content.cut(b.parentOffset, I.endA - b.start())))
|
|
@@ -21722,7 +21720,7 @@ class Xx {
|
|
|
21722
21720
|
let I = Ht ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
21723
21721
|
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);
|
|
21724
21722
|
}
|
|
21725
|
-
C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && tx(this)) ?
|
|
21723
|
+
C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && tx(this)) ? dr(this, C) : (Mh(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
21726
21724
|
}
|
|
21727
21725
|
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);
|
|
21728
21726
|
}
|
|
@@ -21809,7 +21807,7 @@ class Xx {
|
|
|
21809
21807
|
Focus the editor.
|
|
21810
21808
|
*/
|
|
21811
21809
|
focus() {
|
|
21812
|
-
this.domObserver.stop(), this.editable && Tb(this.dom),
|
|
21810
|
+
this.domObserver.stop(), this.editable && Tb(this.dom), dr(this), this.domObserver.start();
|
|
21813
21811
|
}
|
|
21814
21812
|
/**
|
|
21815
21813
|
Get the document root in which the editor exists. This will
|
|
@@ -23217,7 +23215,7 @@ class Ho {
|
|
|
23217
23215
|
type: ua(A.name, this.schema)
|
|
23218
23216
|
}, l = [], c = ke(A, "addKeyboardShortcuts", a);
|
|
23219
23217
|
let u = {};
|
|
23220
|
-
if (A.type === "mark" && ke(A, "exitable", a) && (u.ArrowRight = () =>
|
|
23218
|
+
if (A.type === "mark" && ke(A, "exitable", a) && (u.ArrowRight = () => Hn.handleExit({ editor: e, mark: A })), c) {
|
|
23221
23219
|
const B = Object.fromEntries(Object.entries(c()).map(([Q, b]) => [Q, () => b({ editor: e })]));
|
|
23222
23220
|
u = { ...u, ...B };
|
|
23223
23221
|
}
|
|
@@ -23384,7 +23382,7 @@ const GD = Yt.create({
|
|
|
23384
23382
|
addProseMirrorPlugins() {
|
|
23385
23383
|
return [
|
|
23386
23384
|
new cn({
|
|
23387
|
-
key: new
|
|
23385
|
+
key: new or("clipboardTextSerializer"),
|
|
23388
23386
|
props: {
|
|
23389
23387
|
clipboardTextSerializer: () => {
|
|
23390
23388
|
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);
|
|
@@ -23508,7 +23506,7 @@ const A0 = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
23508
23506
|
function Vl(n) {
|
|
23509
23507
|
return n instanceof Le;
|
|
23510
23508
|
}
|
|
23511
|
-
function
|
|
23509
|
+
function ur(n = 0, e = 0, t = 0) {
|
|
23512
23510
|
return Math.min(Math.max(n, e), t);
|
|
23513
23511
|
}
|
|
23514
23512
|
function ap(n, e = null) {
|
|
@@ -23520,7 +23518,7 @@ function ap(n, e = null) {
|
|
|
23520
23518
|
if (e === "end")
|
|
23521
23519
|
return r;
|
|
23522
23520
|
const o = t.from, i = r.to;
|
|
23523
|
-
return e === "all" ? Le.create(n,
|
|
23521
|
+
return e === "all" ? Le.create(n, ur(0, o, i), ur(n.content.size, o, i)) : Le.create(n, ur(e, o, i), ur(e, o, i));
|
|
23524
23522
|
}
|
|
23525
23523
|
function Wl() {
|
|
23526
23524
|
return [
|
|
@@ -23919,7 +23917,7 @@ function gp(n) {
|
|
|
23919
23917
|
return n instanceof Oe;
|
|
23920
23918
|
}
|
|
23921
23919
|
function hp(n, e, t) {
|
|
23922
|
-
const o = n.state.doc.content.size, i =
|
|
23920
|
+
const o = n.state.doc.content.size, i = ur(e, 0, o), A = ur(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 = {
|
|
23923
23921
|
top: c,
|
|
23924
23922
|
bottom: u,
|
|
23925
23923
|
left: d,
|
|
@@ -23984,13 +23982,13 @@ const U0 = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
23984
23982
|
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);
|
|
23985
23983
|
}, V0 = (n) => ({ tr: e, dispatch: t }) => {
|
|
23986
23984
|
if (t) {
|
|
23987
|
-
const { doc: r } = e, o =
|
|
23985
|
+
const { doc: r } = e, o = ur(n, 0, r.content.size), i = Oe.create(r, o);
|
|
23988
23986
|
e.setSelection(i);
|
|
23989
23987
|
}
|
|
23990
23988
|
return !0;
|
|
23991
23989
|
}, W0 = (n) => ({ tr: e, dispatch: t }) => {
|
|
23992
23990
|
if (t) {
|
|
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 =
|
|
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 = ur(o, A, a), c = ur(i, A, a), u = Le.create(r, l, c);
|
|
23994
23992
|
e.setSelection(u);
|
|
23995
23993
|
}
|
|
23996
23994
|
return !0;
|
|
@@ -24267,7 +24265,7 @@ const cS = Yt.create({
|
|
|
24267
24265
|
addProseMirrorPlugins() {
|
|
24268
24266
|
return [
|
|
24269
24267
|
new cn({
|
|
24270
|
-
key: new
|
|
24268
|
+
key: new or("editable"),
|
|
24271
24269
|
props: {
|
|
24272
24270
|
editable: () => this.editor.options.editable
|
|
24273
24271
|
}
|
|
@@ -24280,7 +24278,7 @@ const cS = Yt.create({
|
|
|
24280
24278
|
const { editor: n } = this;
|
|
24281
24279
|
return [
|
|
24282
24280
|
new cn({
|
|
24283
|
-
key: new
|
|
24281
|
+
key: new or("focusEvents"),
|
|
24284
24282
|
props: {
|
|
24285
24283
|
handleDOMEvents: {
|
|
24286
24284
|
focus: (e, t) => {
|
|
@@ -24353,7 +24351,7 @@ const cS = Yt.create({
|
|
|
24353
24351
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
24354
24352
|
// with many other commands.
|
|
24355
24353
|
new cn({
|
|
24356
|
-
key: new
|
|
24354
|
+
key: new or("clearDocument"),
|
|
24357
24355
|
appendTransaction: (n, e, t) => {
|
|
24358
24356
|
if (!(n.some((I) => I.docChanged) && !e.doc.eq(t.doc)))
|
|
24359
24357
|
return;
|
|
@@ -24378,7 +24376,7 @@ const cS = Yt.create({
|
|
|
24378
24376
|
addProseMirrorPlugins() {
|
|
24379
24377
|
return [
|
|
24380
24378
|
new cn({
|
|
24381
|
-
key: new
|
|
24379
|
+
key: new or("tabindex"),
|
|
24382
24380
|
props: {
|
|
24383
24381
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
24384
24382
|
}
|
|
@@ -24986,7 +24984,7 @@ function _i(n) {
|
|
|
24986
24984
|
}
|
|
24987
24985
|
});
|
|
24988
24986
|
}
|
|
24989
|
-
class
|
|
24987
|
+
class Hn {
|
|
24990
24988
|
constructor(e = {}) {
|
|
24991
24989
|
this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
|
|
24992
24990
|
name: this.name,
|
|
@@ -25002,7 +25000,7 @@ class Nn {
|
|
|
25002
25000
|
})) || {};
|
|
25003
25001
|
}
|
|
25004
25002
|
static create(e = {}) {
|
|
25005
|
-
return new
|
|
25003
|
+
return new Hn(e);
|
|
25006
25004
|
}
|
|
25007
25005
|
configure(e = {}) {
|
|
25008
25006
|
const t = this.extend({
|
|
@@ -25012,7 +25010,7 @@ class Nn {
|
|
|
25012
25010
|
return t.name = this.name, t.parent = this.parent, t;
|
|
25013
25011
|
}
|
|
25014
25012
|
extend(e = {}) {
|
|
25015
|
-
const t = new
|
|
25013
|
+
const t = new Hn(e);
|
|
25016
25014
|
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", {
|
|
25017
25015
|
name: t.name
|
|
25018
25016
|
})), t.storage = Ne(ke(t, "addStorage", {
|
|
@@ -25090,7 +25088,7 @@ var An = "top", vn = "bottom", wn = "right", sn = "left", Zl = "auto", hA = [An,
|
|
|
25090
25088
|
}, []), Cp = /* @__PURE__ */ [].concat(hA, [Zl]).reduce(function(n, e) {
|
|
25091
25089
|
return n.concat([e, e + "-" + ri, e + "-" + $i]);
|
|
25092
25090
|
}, []), 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];
|
|
25093
|
-
function
|
|
25091
|
+
function rr(n) {
|
|
25094
25092
|
return n ? (n.nodeName || "").toLowerCase() : null;
|
|
25095
25093
|
}
|
|
25096
25094
|
function hn(n) {
|
|
@@ -25120,7 +25118,7 @@ function MS(n) {
|
|
|
25120
25118
|
var e = n.state;
|
|
25121
25119
|
Object.keys(e.elements).forEach(function(t) {
|
|
25122
25120
|
var r = e.styles[t] || {}, o = e.attributes[t] || {}, i = e.elements[t];
|
|
25123
|
-
!Qn(i) || !
|
|
25121
|
+
!Qn(i) || !rr(i) || (Object.assign(i.style, r), Object.keys(o).forEach(function(A) {
|
|
25124
25122
|
var a = o[A];
|
|
25125
25123
|
a === !1 ? i.removeAttribute(A) : i.setAttribute(A, a === !0 ? "" : a);
|
|
25126
25124
|
}));
|
|
@@ -25144,7 +25142,7 @@ function OS(n) {
|
|
|
25144
25142
|
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) {
|
|
25145
25143
|
return l[c] = "", l;
|
|
25146
25144
|
}, {});
|
|
25147
|
-
!Qn(o) || !
|
|
25145
|
+
!Qn(o) || !rr(o) || (Object.assign(o.style, a), Object.keys(i).forEach(function(l) {
|
|
25148
25146
|
o.removeAttribute(l);
|
|
25149
25147
|
}));
|
|
25150
25148
|
});
|
|
@@ -25158,7 +25156,7 @@ const Ip = {
|
|
|
25158
25156
|
effect: OS,
|
|
25159
25157
|
requires: ["computeStyles"]
|
|
25160
25158
|
};
|
|
25161
|
-
function
|
|
25159
|
+
function $n(n) {
|
|
25162
25160
|
return n.split("-")[0];
|
|
25163
25161
|
}
|
|
25164
25162
|
var ao = Math.max, ns = Math.min, oi = Math.round;
|
|
@@ -25214,7 +25212,7 @@ function pr(n) {
|
|
|
25214
25212
|
return hn(n).getComputedStyle(n);
|
|
25215
25213
|
}
|
|
25216
25214
|
function TS(n) {
|
|
25217
|
-
return ["table", "td", "th"].indexOf(
|
|
25215
|
+
return ["table", "td", "th"].indexOf(rr(n)) >= 0;
|
|
25218
25216
|
}
|
|
25219
25217
|
function qr(n) {
|
|
25220
25218
|
return ((Io(n) ? n.ownerDocument : (
|
|
@@ -25223,7 +25221,7 @@ function qr(n) {
|
|
|
25223
25221
|
)) || window.document).documentElement;
|
|
25224
25222
|
}
|
|
25225
25223
|
function Ms(n) {
|
|
25226
|
-
return
|
|
25224
|
+
return rr(n) === "html" ? n : (
|
|
25227
25225
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
25228
25226
|
// $FlowFixMe[incompatible-return]
|
|
25229
25227
|
// $FlowFixMe[prop-missing]
|
|
@@ -25246,7 +25244,7 @@ function RS(n) {
|
|
|
25246
25244
|
return null;
|
|
25247
25245
|
}
|
|
25248
25246
|
var o = Ms(n);
|
|
25249
|
-
for (_l(o) && (o = o.host); Qn(o) && ["html", "body"].indexOf(
|
|
25247
|
+
for (_l(o) && (o = o.host); Qn(o) && ["html", "body"].indexOf(rr(o)) < 0; ) {
|
|
25250
25248
|
var i = pr(o);
|
|
25251
25249
|
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")
|
|
25252
25250
|
return o;
|
|
@@ -25257,7 +25255,7 @@ function RS(n) {
|
|
|
25257
25255
|
function pA(n) {
|
|
25258
25256
|
for (var e = hn(n), t = od(n); t && TS(t) && pr(t).position === "static"; )
|
|
25259
25257
|
t = od(t);
|
|
25260
|
-
return t && (
|
|
25258
|
+
return t && (rr(t) === "html" || rr(t) === "body" && pr(t).position === "static") ? e : t || RS(n) || e;
|
|
25261
25259
|
}
|
|
25262
25260
|
function ec(n) {
|
|
25263
25261
|
return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
|
|
@@ -25291,7 +25289,7 @@ var zS = function(e, t) {
|
|
|
25291
25289
|
})) : e, Ep(typeof e != "number" ? e : Qp(e, hA));
|
|
25292
25290
|
};
|
|
25293
25291
|
function FS(n) {
|
|
25294
|
-
var e, t = n.state, r = n.name, o = n.options, i = t.elements.arrow, A = t.modifiersData.popperOffsets, a =
|
|
25292
|
+
var e, t = n.state, r = n.name, o = n.options, i = t.elements.arrow, A = t.modifiersData.popperOffsets, a = $n(t.placement), l = ec(a), c = [sn, wn].indexOf(a) >= 0, u = c ? "height" : "width";
|
|
25295
25293
|
if (!(!i || !A)) {
|
|
25296
25294
|
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;
|
|
25297
25295
|
t.modifiersData[r] = (e = {}, e[U] = O, e.centerOffset = O - w, e);
|
|
@@ -25372,7 +25370,7 @@ function id(n) {
|
|
|
25372
25370
|
}
|
|
25373
25371
|
function qS(n) {
|
|
25374
25372
|
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 = {
|
|
25375
|
-
placement:
|
|
25373
|
+
placement: $n(e.placement),
|
|
25376
25374
|
variation: Ai(e.placement),
|
|
25377
25375
|
popper: e.elements.popper,
|
|
25378
25376
|
popperRect: e.rects.popper,
|
|
@@ -25480,7 +25478,7 @@ function rc(n) {
|
|
|
25480
25478
|
return /auto|scroll|overlay|hidden/.test(t + o + r);
|
|
25481
25479
|
}
|
|
25482
25480
|
function vp(n) {
|
|
25483
|
-
return ["html", "body", "#document"].indexOf(
|
|
25481
|
+
return ["html", "body", "#document"].indexOf(rr(n)) >= 0 ? n.ownerDocument.body : Qn(n) && rc(n) ? n : vp(Ms(n));
|
|
25484
25482
|
}
|
|
25485
25483
|
function Fi(n, e) {
|
|
25486
25484
|
var t;
|
|
@@ -25509,7 +25507,7 @@ function sd(n, e, t) {
|
|
|
25509
25507
|
function ZS(n) {
|
|
25510
25508
|
var e = Fi(Ms(n)), t = ["absolute", "fixed"].indexOf(pr(n).position) >= 0, r = t && Qn(n) ? pA(n) : n;
|
|
25511
25509
|
return Io(r) ? e.filter(function(o) {
|
|
25512
|
-
return Io(o) && mp(o, r) &&
|
|
25510
|
+
return Io(o) && mp(o, r) && rr(o) !== "body";
|
|
25513
25511
|
}) : [];
|
|
25514
25512
|
}
|
|
25515
25513
|
function _S(n, e, t, r) {
|
|
@@ -25520,7 +25518,7 @@ function _S(n, e, t, r) {
|
|
|
25520
25518
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
25521
25519
|
}
|
|
25522
25520
|
function wp(n) {
|
|
25523
|
-
var e = n.reference, t = n.element, r = n.placement, o = r ?
|
|
25521
|
+
var e = n.reference, t = n.element, r = n.placement, o = r ? $n(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;
|
|
25524
25522
|
switch (o) {
|
|
25525
25523
|
case An:
|
|
25526
25524
|
l = {
|
|
@@ -25602,14 +25600,14 @@ function $S(n, e) {
|
|
|
25602
25600
|
boundary: o,
|
|
25603
25601
|
rootBoundary: i,
|
|
25604
25602
|
padding: A
|
|
25605
|
-
})[
|
|
25603
|
+
})[$n(B)], I;
|
|
25606
25604
|
}, {});
|
|
25607
25605
|
return Object.keys(C).sort(function(I, B) {
|
|
25608
25606
|
return C[I] - C[B];
|
|
25609
25607
|
});
|
|
25610
25608
|
}
|
|
25611
25609
|
function ek(n) {
|
|
25612
|
-
if (
|
|
25610
|
+
if ($n(n) === Zl)
|
|
25613
25611
|
return [];
|
|
25614
25612
|
var e = zA(n);
|
|
25615
25613
|
return [Ad(n), e, Ad(e)];
|
|
@@ -25617,8 +25615,8 @@ function ek(n) {
|
|
|
25617
25615
|
function tk(n) {
|
|
25618
25616
|
var e = n.state, t = n.options, r = n.name;
|
|
25619
25617
|
if (!e.modifiersData[r]._skip) {
|
|
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 =
|
|
25621
|
-
return E.concat(
|
|
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 = $n(Q), T = b === Q, S = l || (T || !I ? [zA(Q)] : ek(Q)), v = [Q].concat(S).reduce(function(E, q) {
|
|
25619
|
+
return E.concat($n(q) === Zl ? $S(e, {
|
|
25622
25620
|
placement: q,
|
|
25623
25621
|
boundary: u,
|
|
25624
25622
|
rootBoundary: d,
|
|
@@ -25627,7 +25625,7 @@ function tk(n) {
|
|
|
25627
25625
|
allowedAutoPlacements: B
|
|
25628
25626
|
}) : q);
|
|
25629
25627
|
}, []), G = e.rects.reference, w = e.rects.popper, O = /* @__PURE__ */ new Map(), U = !0, F = v[0], j = 0; j < v.length; j++) {
|
|
25630
|
-
var re = v[j], ae =
|
|
25628
|
+
var re = v[j], ae = $n(re), me = Ai(re) === ri, N = [An, vn].indexOf(ae) >= 0, K = N ? "width" : "height", L = eA(e, {
|
|
25631
25629
|
placement: re,
|
|
25632
25630
|
boundary: u,
|
|
25633
25631
|
rootBoundary: d,
|
|
@@ -25712,7 +25710,7 @@ const ok = {
|
|
|
25712
25710
|
fn: rk
|
|
25713
25711
|
};
|
|
25714
25712
|
function ik(n, e, t) {
|
|
25715
|
-
var r =
|
|
25713
|
+
var r = $n(n), o = [sn, An].indexOf(r) >= 0 ? -1 : 1, i = typeof t == "function" ? t(Object.assign({}, e, {
|
|
25716
25714
|
placement: n
|
|
25717
25715
|
})) : t, A = i[0], a = i[1];
|
|
25718
25716
|
return A = A || 0, a = (a || 0) * o, [sn, wn].indexOf(r) >= 0 ? {
|
|
@@ -25761,7 +25759,7 @@ function uk(n) {
|
|
|
25761
25759
|
rootBoundary: c,
|
|
25762
25760
|
padding: d,
|
|
25763
25761
|
altBoundary: u
|
|
25764
|
-
}), b =
|
|
25762
|
+
}), b = $n(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, {
|
|
25765
25763
|
placement: e.placement
|
|
25766
25764
|
})) : B, j = typeof F == "number" ? {
|
|
25767
25765
|
mainAxis: F,
|
|
@@ -25782,8 +25780,8 @@ function uk(n) {
|
|
|
25782
25780
|
w[v] = $, ae[v] = $ - X;
|
|
25783
25781
|
}
|
|
25784
25782
|
if (a) {
|
|
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,
|
|
25786
|
-
w[G] =
|
|
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, Yn = _t ? Qt : Ee - O[ze] - U[ze] - jt + j.altAxis, vt = _t ? Ee + O[ze] + U[ze] - jt - j.altAxis : Se, qn = C && _t ? PS(Yn, Ee, vt) : zi(C ? Yn : Qt, Ee, C ? vt : Se);
|
|
25784
|
+
w[G] = qn, ae[G] = qn - Ee;
|
|
25787
25785
|
}
|
|
25788
25786
|
e.modifiersData[r] = ae;
|
|
25789
25787
|
}
|
|
@@ -25817,7 +25815,7 @@ function Ck(n, e, t) {
|
|
|
25817
25815
|
x: 0,
|
|
25818
25816
|
y: 0
|
|
25819
25817
|
};
|
|
25820
|
-
return (r || !r && !t) && ((
|
|
25818
|
+
return (r || !r && !t) && ((rr(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
25821
25819
|
rc(i)) && (a = hk(e)), Qn(e) ? (l = ii(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = nc(i))), {
|
|
25822
25820
|
x: A.left + a.scrollLeft - l.x,
|
|
25823
25821
|
y: A.top + a.scrollTop - l.y,
|
|
@@ -26110,15 +26108,15 @@ function Cd(n, e) {
|
|
|
26110
26108
|
}
|
|
26111
26109
|
return !1;
|
|
26112
26110
|
}
|
|
26113
|
-
var
|
|
26111
|
+
var Un = {
|
|
26114
26112
|
isTouch: !1
|
|
26115
26113
|
}, Id = 0;
|
|
26116
26114
|
function Fk() {
|
|
26117
|
-
|
|
26115
|
+
Un.isTouch || (Un.isTouch = !0, window.performance && document.addEventListener("mousemove", kp));
|
|
26118
26116
|
}
|
|
26119
26117
|
function kp() {
|
|
26120
26118
|
var n = performance.now();
|
|
26121
|
-
n - Id < 20 && (
|
|
26119
|
+
n - Id < 20 && (Un.isTouch = !1, document.removeEventListener("mousemove", kp)), Id = n;
|
|
26122
26120
|
}
|
|
26123
26121
|
function Lk() {
|
|
26124
26122
|
var n = document.activeElement;
|
|
@@ -26167,7 +26165,7 @@ process.env.NODE_ENV !== "production" && jk();
|
|
|
26167
26165
|
function jk() {
|
|
26168
26166
|
nA = /* @__PURE__ */ new Set();
|
|
26169
26167
|
}
|
|
26170
|
-
function
|
|
26168
|
+
function ar(n, e) {
|
|
26171
26169
|
if (n && !nA.has(e)) {
|
|
26172
26170
|
var t;
|
|
26173
26171
|
nA.add(e), (t = console).warn.apply(t, Mp(e));
|
|
@@ -26299,7 +26297,7 @@ function Rp(n, e) {
|
|
|
26299
26297
|
var o = xk(dn, Object.keys(Op)), i = !bk(o, r);
|
|
26300
26298
|
i && (i = e.filter(function(A) {
|
|
26301
26299
|
return A.name === r;
|
|
26302
|
-
}).length === 0),
|
|
26300
|
+
}).length === 0), ar(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.", `
|
|
26303
26301
|
|
|
26304
26302
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
26305
26303
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
@@ -26371,9 +26369,9 @@ function Zk(n, e) {
|
|
|
26371
26369
|
state: S,
|
|
26372
26370
|
plugins: T,
|
|
26373
26371
|
// methods
|
|
26374
|
-
clearDelayTimeouts:
|
|
26372
|
+
clearDelayTimeouts: Yn,
|
|
26375
26373
|
setProps: vt,
|
|
26376
|
-
setContent:
|
|
26374
|
+
setContent: qn,
|
|
26377
26375
|
show: di,
|
|
26378
26376
|
hide: Qo,
|
|
26379
26377
|
hideWithInteractivity: gi,
|
|
@@ -26416,7 +26414,7 @@ function Zk(n, e) {
|
|
|
26416
26414
|
return al(w);
|
|
26417
26415
|
}
|
|
26418
26416
|
function L(ee) {
|
|
26419
|
-
return v.state.isMounted && !v.state.isVisible ||
|
|
26417
|
+
return v.state.isMounted && !v.state.isVisible || Un.isTouch || u && u.type === "focus" ? 0 : ha(v.props.delay, ee ? 0 : 1, dn.delay);
|
|
26420
26418
|
}
|
|
26421
26419
|
function X(ee) {
|
|
26422
26420
|
ee === void 0 && (ee = !1), w.style.pointerEvents = v.props.interactive && !ee ? "" : "none", w.style.zIndex = "" + v.props.zIndex;
|
|
@@ -26458,13 +26456,13 @@ function Zk(n, e) {
|
|
|
26458
26456
|
});
|
|
26459
26457
|
}
|
|
26460
26458
|
function M(ee) {
|
|
26461
|
-
if (!(
|
|
26459
|
+
if (!(Un.isTouch && (l || ee.type === "mousedown"))) {
|
|
26462
26460
|
var De = ee.composedPath && ee.composedPath()[0] || ee.target;
|
|
26463
26461
|
if (!(v.props.interactive && Cd(w, De))) {
|
|
26464
26462
|
if (Ro(v.props.triggerTarget || n).some(function(Te) {
|
|
26465
26463
|
return Cd(Te, De);
|
|
26466
26464
|
})) {
|
|
26467
|
-
if (
|
|
26465
|
+
if (Un.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
|
|
26468
26466
|
return;
|
|
26469
26467
|
} else
|
|
26470
26468
|
Ae("onClickOutside", [v, ee]);
|
|
@@ -26580,7 +26578,7 @@ function Zk(n, e) {
|
|
|
26580
26578
|
v.props.trigger.indexOf("focusin") < 0 && ee.target !== me() || v.props.interactive && ee.relatedTarget && w.contains(ee.relatedTarget) || Se(ee);
|
|
26581
26579
|
}
|
|
26582
26580
|
function Re(ee) {
|
|
26583
|
-
return
|
|
26581
|
+
return Un.isTouch ? re() !== ee.type.indexOf("touch") >= 0 : !1;
|
|
26584
26582
|
}
|
|
26585
26583
|
function J() {
|
|
26586
26584
|
ue();
|
|
@@ -26592,10 +26590,10 @@ function Zk(n, e) {
|
|
|
26592
26590
|
enabled: !0,
|
|
26593
26591
|
phase: "beforeWrite",
|
|
26594
26592
|
requires: ["computeStyles"],
|
|
26595
|
-
fn: function(
|
|
26596
|
-
var Cn =
|
|
26593
|
+
fn: function(ir) {
|
|
26594
|
+
var Cn = ir.state;
|
|
26597
26595
|
if (ae()) {
|
|
26598
|
-
var
|
|
26596
|
+
var jn = K(), jr = jn.box;
|
|
26599
26597
|
["placement", "reference-hidden", "escaped"].forEach(function(vo) {
|
|
26600
26598
|
vo === "placement" ? jr.setAttribute("data-placement", Cn.placement) : Cn.attributes.popper["data-popper-" + vo] ? jr.setAttribute("data-" + vo, "") : jr.removeAttribute("data-" + vo);
|
|
26601
26599
|
}), Cn.attributes.popper = {};
|
|
@@ -26644,7 +26642,7 @@ function Zk(n, e) {
|
|
|
26644
26642
|
}
|
|
26645
26643
|
function Ee() {
|
|
26646
26644
|
var ee = v.props.appendTo, De, Te = me();
|
|
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" &&
|
|
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" && ar(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.", `
|
|
26648
26646
|
|
|
26649
26647
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
26650
26648
|
|
|
@@ -26658,7 +26656,7 @@ function Zk(n, e) {
|
|
|
26658
26656
|
function Qt(ee) {
|
|
26659
26657
|
v.clearDelayTimeouts(), ee && Ae("onTrigger", [v, ee]), q();
|
|
26660
26658
|
var De = L(!0), Te = j(), Y = Te[0], te = Te[1];
|
|
26661
|
-
|
|
26659
|
+
Un.isTouch && Y === "hold" && te && (De = te), De ? r = setTimeout(function() {
|
|
26662
26660
|
v.show();
|
|
26663
26661
|
}, De) : v.show();
|
|
26664
26662
|
}
|
|
@@ -26682,11 +26680,11 @@ function Zk(n, e) {
|
|
|
26682
26680
|
function jt() {
|
|
26683
26681
|
v.hide(), v.state.isEnabled = !1;
|
|
26684
26682
|
}
|
|
26685
|
-
function
|
|
26683
|
+
function Yn() {
|
|
26686
26684
|
clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i);
|
|
26687
26685
|
}
|
|
26688
26686
|
function vt(ee) {
|
|
26689
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
26687
|
+
if (process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("setProps")), !v.state.isDestroyed) {
|
|
26690
26688
|
Ae("onBeforeUpdate", [v, ee]), he();
|
|
26691
26689
|
var De = v.props, Te = md(n, Object.assign({}, De, hd(ee), {
|
|
26692
26690
|
ignoreAttributes: !0
|
|
@@ -26698,14 +26696,14 @@ function Zk(n, e) {
|
|
|
26698
26696
|
})), Ae("onAfterUpdate", [v, ee]);
|
|
26699
26697
|
}
|
|
26700
26698
|
}
|
|
26701
|
-
function
|
|
26699
|
+
function qn(ee) {
|
|
26702
26700
|
v.setProps({
|
|
26703
26701
|
content: ee
|
|
26704
26702
|
});
|
|
26705
26703
|
}
|
|
26706
26704
|
function di() {
|
|
26707
|
-
process.env.NODE_ENV !== "production" &&
|
|
26708
|
-
var ee = v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y =
|
|
26705
|
+
process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("show"));
|
|
26706
|
+
var ee = v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y = Un.isTouch && !v.props.touch, te = ha(v.props.duration, 0, dn.duration);
|
|
26709
26707
|
if (!(ee || De || Te || Y) && !me().hasAttribute("disabled") && (Ae("onShow", [v], !1), v.props.onShow(v) !== !1)) {
|
|
26710
26708
|
if (v.state.isVisible = !0, ae() && (w.style.visibility = "visible"), X(), q(), v.state.isMounted || (w.style.transition = "none"), ae()) {
|
|
26711
26709
|
var V = K(), le = V.box, Be = V.content;
|
|
@@ -26715,8 +26713,8 @@ function Zk(n, e) {
|
|
|
26715
26713
|
var gt;
|
|
26716
26714
|
if (!(!v.state.isVisible || c)) {
|
|
26717
26715
|
if (c = !0, w.offsetHeight, w.style.transition = v.props.moveTransition, ae() && v.props.animation) {
|
|
26718
|
-
var Dn = K(),
|
|
26719
|
-
pa([
|
|
26716
|
+
var Dn = K(), ir = Dn.box, Cn = Dn.content;
|
|
26717
|
+
pa([ir, Cn], te), pd([ir, Cn], "visible");
|
|
26720
26718
|
}
|
|
26721
26719
|
z(), H(), gd(Ia, v), (gt = v.popperInstance) == null || gt.forceUpdate(), Ae("onMount", [v]), v.props.animation && ae() && ge(te, function() {
|
|
26722
26720
|
v.state.isShown = !0, Ae("onShown", [v]);
|
|
@@ -26726,7 +26724,7 @@ function Zk(n, e) {
|
|
|
26726
26724
|
}
|
|
26727
26725
|
}
|
|
26728
26726
|
function Qo() {
|
|
26729
|
-
process.env.NODE_ENV !== "production" &&
|
|
26727
|
+
process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("hide"));
|
|
26730
26728
|
var ee = !v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y = ha(v.props.duration, 1, dn.duration);
|
|
26731
26729
|
if (!(ee || De || Te) && (Ae("onHide", [v], !1), v.props.onHide(v) !== !1)) {
|
|
26732
26730
|
if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, A = !1, ae() && (w.style.visibility = "hidden"), W(), _(), X(!0), ae()) {
|
|
@@ -26737,17 +26735,17 @@ function Zk(n, e) {
|
|
|
26737
26735
|
}
|
|
26738
26736
|
}
|
|
26739
26737
|
function gi(ee) {
|
|
26740
|
-
process.env.NODE_ENV !== "production" &&
|
|
26738
|
+
process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("hideWithInteractivity")), N().addEventListener("mousemove", I), gd(DA, I), I(ee);
|
|
26741
26739
|
}
|
|
26742
26740
|
function hi() {
|
|
26743
|
-
process.env.NODE_ENV !== "production" &&
|
|
26741
|
+
process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (ue(), ze().forEach(function(ee) {
|
|
26744
26742
|
ee._tippy.unmount();
|
|
26745
26743
|
}), w.parentNode && w.parentNode.removeChild(w), Ia = Ia.filter(function(ee) {
|
|
26746
26744
|
return ee !== v;
|
|
26747
26745
|
}), v.state.isMounted = !1, Ae("onHidden", [v]));
|
|
26748
26746
|
}
|
|
26749
26747
|
function pi() {
|
|
26750
|
-
process.env.NODE_ENV !== "production" &&
|
|
26748
|
+
process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("destroy")), !v.state.isDestroyed && (v.clearDelayTimeouts(), v.unmount(), he(), delete n._tippy, v.state.isDestroyed = !0, Ae("onDestroy", [v]));
|
|
26751
26749
|
}
|
|
26752
26750
|
}
|
|
26753
26751
|
function ui(n, e) {
|
|
@@ -26759,7 +26757,7 @@ function ui(n, e) {
|
|
|
26759
26757
|
}), o = Rk(n);
|
|
26760
26758
|
if (process.env.NODE_ENV !== "production") {
|
|
26761
26759
|
var i = tA(r.content), A = o.length > 1;
|
|
26762
|
-
|
|
26760
|
+
ar(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.", `
|
|
26763
26761
|
|
|
26764
26762
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
26765
26763
|
|
|
@@ -26774,7 +26772,7 @@ function ui(n, e) {
|
|
|
26774
26772
|
}
|
|
26775
26773
|
ui.defaultProps = dn;
|
|
26776
26774
|
ui.setDefaultProps = Jk;
|
|
26777
|
-
ui.currentInput =
|
|
26775
|
+
ui.currentInput = Un;
|
|
26778
26776
|
Object.assign({}, Ip, {
|
|
26779
26777
|
effect: function(e) {
|
|
26780
26778
|
var t = e.state, r = {
|
|
@@ -26887,7 +26885,7 @@ class _k {
|
|
|
26887
26885
|
}
|
|
26888
26886
|
}
|
|
26889
26887
|
const zp = (n) => new cn({
|
|
26890
|
-
key: typeof n.pluginKey == "string" ? new
|
|
26888
|
+
key: typeof n.pluginKey == "string" ? new or(n.pluginKey) : n.pluginKey,
|
|
26891
26889
|
view: (e) => new _k({ view: e, ...n })
|
|
26892
26890
|
});
|
|
26893
26891
|
Yt.create({
|
|
@@ -26979,7 +26977,7 @@ class $k {
|
|
|
26979
26977
|
}
|
|
26980
26978
|
}
|
|
26981
26979
|
const Fp = (n) => new cn({
|
|
26982
|
-
key: typeof n.pluginKey == "string" ? new
|
|
26980
|
+
key: typeof n.pluginKey == "string" ? new or(n.pluginKey) : n.pluginKey,
|
|
26983
26981
|
view: (e) => new $k({ view: e, ...n })
|
|
26984
26982
|
});
|
|
26985
26983
|
Yt.create({
|
|
@@ -27262,7 +27260,7 @@ const nM = (n = {}) => {
|
|
|
27262
27260
|
})
|
|
27263
27261
|
];
|
|
27264
27262
|
}
|
|
27265
|
-
}), iM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, AM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, sM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, lM =
|
|
27263
|
+
}), iM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, AM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, sM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, lM = Hn.create({
|
|
27266
27264
|
name: "bold",
|
|
27267
27265
|
addOptions() {
|
|
27268
27266
|
return {
|
|
@@ -27352,7 +27350,7 @@ const nM = (n = {}) => {
|
|
|
27352
27350
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
27353
27351
|
};
|
|
27354
27352
|
}
|
|
27355
|
-
}), vd =
|
|
27353
|
+
}), vd = Hn.create({
|
|
27356
27354
|
name: "textStyle",
|
|
27357
27355
|
priority: 101,
|
|
27358
27356
|
addOptions() {
|
|
@@ -27427,7 +27425,7 @@ const nM = (n = {}) => {
|
|
|
27427
27425
|
n
|
|
27428
27426
|
];
|
|
27429
27427
|
}
|
|
27430
|
-
}), dM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, gM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, hM =
|
|
27428
|
+
}), dM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, gM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, hM = Hn.create({
|
|
27431
27429
|
name: "code",
|
|
27432
27430
|
addOptions() {
|
|
27433
27431
|
return {
|
|
@@ -27584,7 +27582,7 @@ const nM = (n = {}) => {
|
|
|
27584
27582
|
// this plugin creates a code block for pasted content from VS Code
|
|
27585
27583
|
// we can also detect the copied code language
|
|
27586
27584
|
new cn({
|
|
27587
|
-
key: new
|
|
27585
|
+
key: new or("codeBlockVSCodeHandler"),
|
|
27588
27586
|
props: {
|
|
27589
27587
|
handlePaste: (n, e) => {
|
|
27590
27588
|
if (!e.clipboardData || this.editor.isActive(this.type.name))
|
|
@@ -28131,9 +28129,9 @@ class Rn {
|
|
|
28131
28129
|
return;
|
|
28132
28130
|
}
|
|
28133
28131
|
if (o) {
|
|
28134
|
-
u.push(new
|
|
28132
|
+
u.push(new Kn(d.map));
|
|
28135
28133
|
let C = d.step.map(o.slice(i)), I;
|
|
28136
|
-
C && A.maybeStep(C).doc && (I = A.mapping.maps[A.mapping.maps.length - 1], c.push(new
|
|
28134
|
+
C && A.maybeStep(C).doc && (I = A.mapping.maps[A.mapping.maps.length - 1], c.push(new Kn(I, void 0, void 0, c.length + u.length))), i--, I && o.appendMap(I, i);
|
|
28137
28135
|
} else
|
|
28138
28136
|
A.maybeStep(d.step);
|
|
28139
28137
|
if (d.selection)
|
|
@@ -28144,7 +28142,7 @@ class Rn {
|
|
|
28144
28142
|
addTransform(e, t, r, o) {
|
|
28145
28143
|
let i = [], A = this.eventCount, a = this.items, l = !o && a.length ? a.get(a.length - 1) : null;
|
|
28146
28144
|
for (let u = 0; u < e.steps.length; u++) {
|
|
28147
|
-
let d = e.steps[u].invert(e.docs[u]), g = new
|
|
28145
|
+
let d = e.steps[u].invert(e.docs[u]), g = new Kn(e.mapping.maps[u], d, t), C;
|
|
28148
28146
|
(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);
|
|
28149
28147
|
}
|
|
28150
28148
|
let c = A - r.depth;
|
|
@@ -28158,7 +28156,7 @@ class Rn {
|
|
|
28158
28156
|
}, e, t), r;
|
|
28159
28157
|
}
|
|
28160
28158
|
addMaps(e) {
|
|
28161
|
-
return this.eventCount == 0 ? this : new Rn(this.items.append(e.map((t) => new
|
|
28159
|
+
return this.eventCount == 0 ? this : new Rn(this.items.append(e.map((t) => new Kn(t))), this.eventCount);
|
|
28162
28160
|
}
|
|
28163
28161
|
// When the collab module receives remote changes, the history has
|
|
28164
28162
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -28180,13 +28178,13 @@ class Rn {
|
|
|
28180
28178
|
let I = i.maps[C];
|
|
28181
28179
|
if (g.step) {
|
|
28182
28180
|
let B = e.steps[C].invert(e.docs[C]), Q = g.selection && g.selection.map(i.slice(l + 1, C));
|
|
28183
|
-
Q && a++, r.push(new
|
|
28181
|
+
Q && a++, r.push(new Kn(I, B, Q));
|
|
28184
28182
|
} else
|
|
28185
|
-
r.push(new
|
|
28183
|
+
r.push(new Kn(I));
|
|
28186
28184
|
}, o);
|
|
28187
28185
|
let c = [];
|
|
28188
28186
|
for (let g = t; g < A; g++)
|
|
28189
|
-
c.push(new
|
|
28187
|
+
c.push(new Kn(i.maps[g]));
|
|
28190
28188
|
let u = this.items.slice(0, o).append(c).append(r), d = new Rn(u, a);
|
|
28191
28189
|
return d.emptyItemCount() > TM && (d = d.compress(this.items.length - r.length)), d;
|
|
28192
28190
|
}
|
|
@@ -28212,7 +28210,7 @@ class Rn {
|
|
|
28212
28210
|
if (r--, c && t.appendMap(c, r), l) {
|
|
28213
28211
|
let u = A.selection && A.selection.map(t.slice(r));
|
|
28214
28212
|
u && i++;
|
|
28215
|
-
let d = new
|
|
28213
|
+
let d = new Kn(c.invert(), l, u), g, C = o.length - 1;
|
|
28216
28214
|
(g = o.length && o[C].merge(d)) ? o[C] = g : o.push(d);
|
|
28217
28215
|
}
|
|
28218
28216
|
} else A.map && r--;
|
|
@@ -28227,7 +28225,7 @@ function RM(n, e) {
|
|
|
28227
28225
|
return t = o, !1;
|
|
28228
28226
|
}), n.slice(t);
|
|
28229
28227
|
}
|
|
28230
|
-
class
|
|
28228
|
+
class Kn {
|
|
28231
28229
|
constructor(e, t, r, o) {
|
|
28232
28230
|
this.map = e, this.step = t, this.selection = r, this.mirrorOffset = o;
|
|
28233
28231
|
}
|
|
@@ -28235,7 +28233,7 @@ class Un {
|
|
|
28235
28233
|
if (this.step && e.step && !e.selection) {
|
|
28236
28234
|
let t = e.step.merge(this.step);
|
|
28237
28235
|
if (t)
|
|
28238
|
-
return new
|
|
28236
|
+
return new Kn(t.getMap().invert(), t, this.selection);
|
|
28239
28237
|
}
|
|
28240
28238
|
}
|
|
28241
28239
|
}
|
|
@@ -28307,7 +28305,7 @@ function FA(n) {
|
|
|
28307
28305
|
}
|
|
28308
28306
|
return ma;
|
|
28309
28307
|
}
|
|
28310
|
-
const lo = new
|
|
28308
|
+
const lo = new or("history"), HM = new or("closeHistory");
|
|
28311
28309
|
function NM(n = {}) {
|
|
28312
28310
|
return n = {
|
|
28313
28311
|
depth: n.depth || 100,
|
|
@@ -28424,7 +28422,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28424
28422
|
})
|
|
28425
28423
|
];
|
|
28426
28424
|
}
|
|
28427
|
-
}), jM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, KM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, UM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, GM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JM =
|
|
28425
|
+
}), jM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, KM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, UM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, GM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JM = Hn.create({
|
|
28428
28426
|
name: "italic",
|
|
28429
28427
|
addOptions() {
|
|
28430
28428
|
return {
|
|
@@ -28541,7 +28539,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28541
28539
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
28542
28540
|
};
|
|
28543
28541
|
}
|
|
28544
|
-
}), xd =
|
|
28542
|
+
}), xd = Hn.create({
|
|
28545
28543
|
name: "textStyle",
|
|
28546
28544
|
priority: 101,
|
|
28547
28545
|
addOptions() {
|
|
@@ -28662,7 +28660,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28662
28660
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
28663
28661
|
};
|
|
28664
28662
|
}
|
|
28665
|
-
}), _M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, $M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e1 =
|
|
28663
|
+
}), _M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, $M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e1 = Hn.create({
|
|
28666
28664
|
name: "strike",
|
|
28667
28665
|
addOptions() {
|
|
28668
28666
|
return {
|
|
@@ -28728,7 +28726,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
|
|
|
28728
28726
|
const T = [];
|
|
28729
28727
|
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;
|
|
28730
28728
|
}
|
|
28731
|
-
}), r1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, i1 =
|
|
28729
|
+
}), r1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, i1 = Hn.create({
|
|
28732
28730
|
name: "highlight",
|
|
28733
28731
|
addOptions() {
|
|
28734
28732
|
return {
|