@romainbx/wpic-components 0.0.136 → 0.0.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wpic-components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Sn, inject as Gr, computed as ae, toValue as Be, toRef as Pr, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as Sn, inject as Gr, computed as ae, toValue as Be, toRef as Pr, resolveDynamicComponent as Jr, h as Ut, getCurrentInstance as dn, ref as ce, reactive as br, unref as Y, onMounted as mn, isRef as Ns, watch as Qe, provide as _i, readonly as C0, onBeforeUnmount as li, watchEffect as Sh, nextTick as St, shallowRef as sl, warn as E0, onUnmounted as Yo, createElementBlock as L, openBlock as O, createElementVNode as V, createVNode as be, normalizeClass as se, createCommentVNode as de, createBlock as Te, withCtx as Ae, renderSlot as je, createTextVNode as tt, toDisplayString as Ee, Fragment as He, renderList as dt, mergeProps as T0, withModifiers as Ni, Teleport as Oh, normalizeStyle as Mn, onBeforeMount as M0, Text as _0, withDirectives as Zr, vModelText as As, vShow as ka, resolveComponent as xo, createStaticVNode as ll, pushScopeId as N0, popScopeId as A0, useSlots as Ch, markRaw as L0, customRef as D0 } from "vue";
|
|
2
2
|
function I0() {
|
|
3
3
|
return Eh().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
4
4
|
}
|
|
@@ -6,10 +6,10 @@ function Eh() {
|
|
|
6
6
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
7
7
|
}
|
|
8
8
|
const $0 = typeof Proxy == "function", P0 = "devtools-plugin:setup", R0 = "plugin:settings:set";
|
|
9
|
-
let
|
|
9
|
+
let hi, xa;
|
|
10
10
|
function V0() {
|
|
11
11
|
var t;
|
|
12
|
-
return
|
|
12
|
+
return hi !== void 0 || (typeof window < "u" && window.performance ? (hi = !0, xa = window.performance) : typeof globalThis < "u" && (!((t = globalThis.perf_hooks) === null || t === void 0) && t.performance) ? (hi = !0, xa = globalThis.perf_hooks.performance) : hi = !1), hi;
|
|
13
13
|
}
|
|
14
14
|
function B0() {
|
|
15
15
|
return V0() ? xa.now() : Date.now();
|
|
@@ -754,9 +754,9 @@ function Rh(t) {
|
|
|
754
754
|
}
|
|
755
755
|
const ho = {}, po = {};
|
|
756
756
|
let Wn;
|
|
757
|
-
const
|
|
757
|
+
const Ai = Q0(() => {
|
|
758
758
|
setTimeout(async () => {
|
|
759
|
-
await St(), Wn == null || Wn.sendInspectorState(
|
|
759
|
+
await St(), Wn == null || Wn.sendInspectorState(ki), Wn == null || Wn.sendInspectorTree(ki);
|
|
760
760
|
}, 100);
|
|
761
761
|
}, 100);
|
|
762
762
|
function ky(t) {
|
|
@@ -768,8 +768,8 @@ function ky(t) {
|
|
|
768
768
|
Rh(n);
|
|
769
769
|
}
|
|
770
770
|
ho[t.formId] = Object.assign({}, t), ho[t.formId]._vm = e, Yo(() => {
|
|
771
|
-
delete ho[t.formId],
|
|
772
|
-
}),
|
|
771
|
+
delete ho[t.formId], Ai();
|
|
772
|
+
}), Ai();
|
|
773
773
|
}
|
|
774
774
|
function xy(t) {
|
|
775
775
|
const e = dn();
|
|
@@ -780,10 +780,10 @@ function xy(t) {
|
|
|
780
780
|
Rh(n);
|
|
781
781
|
}
|
|
782
782
|
po[t.id] = Object.assign({}, t), po[t.id]._vm = e, Yo(() => {
|
|
783
|
-
delete po[t.id],
|
|
784
|
-
}),
|
|
783
|
+
delete po[t.id], Ai();
|
|
784
|
+
}), Ai();
|
|
785
785
|
}
|
|
786
|
-
const
|
|
786
|
+
const ki = "vee-validate-inspector", zt = {
|
|
787
787
|
error: 12405579,
|
|
788
788
|
success: 448379,
|
|
789
789
|
unknown: 5522283,
|
|
@@ -797,7 +797,7 @@ const wi = "vee-validate-inspector", zt = {
|
|
|
797
797
|
let st = null;
|
|
798
798
|
function Sy(t) {
|
|
799
799
|
Wn = t, t.addInspector({
|
|
800
|
-
id:
|
|
800
|
+
id: ki,
|
|
801
801
|
icon: "rule",
|
|
802
802
|
label: "vee-validate",
|
|
803
803
|
noSelectionText: "Select a vee-validate node to inspect",
|
|
@@ -838,7 +838,7 @@ function Sy(t) {
|
|
|
838
838
|
}
|
|
839
839
|
]
|
|
840
840
|
}), t.on.getInspectorTree((e) => {
|
|
841
|
-
if (e.inspectorId !==
|
|
841
|
+
if (e.inspectorId !== ki)
|
|
842
842
|
return;
|
|
843
843
|
const n = Object.values(ho), r = Object.values(po);
|
|
844
844
|
e.rootNodes = [
|
|
@@ -846,7 +846,7 @@ function Sy(t) {
|
|
|
846
846
|
...r.map((i) => Ey(i))
|
|
847
847
|
];
|
|
848
848
|
}), t.on.getInspectorState((e, n) => {
|
|
849
|
-
if (e.inspectorId !==
|
|
849
|
+
if (e.inspectorId !== ki || n.currentTab !== `custom-inspector:${ki}`)
|
|
850
850
|
return;
|
|
851
851
|
const { form: r, field: i, state: o, type: s } = Ty(e.nodeId);
|
|
852
852
|
if (r && s === "form") {
|
|
@@ -1160,11 +1160,11 @@ function Fh(t, e, n) {
|
|
|
1160
1160
|
setErrors: le,
|
|
1161
1161
|
setValue: ie
|
|
1162
1162
|
};
|
|
1163
|
-
if (
|
|
1163
|
+
if (_i(_h, q), Ns(e) && typeof Y(e) != "function" && Qe(e, (J, B) => {
|
|
1164
1164
|
$t(J, B) || (T.validated ? U() : R());
|
|
1165
1165
|
}, {
|
|
1166
1166
|
deep: !0
|
|
1167
|
-
}), process.env.NODE_ENV !== "production" && (q._vm = dn(), Qe(() => Object.assign(Object.assign({ errors: A.value }, T), { value: x.value }),
|
|
1167
|
+
}), process.env.NODE_ENV !== "production" && (q._vm = dn(), Qe(() => Object.assign(Object.assign({ errors: A.value }, T), { value: x.value }), Ai, {
|
|
1168
1168
|
deep: !0
|
|
1169
1169
|
}), g || xy(q)), !g)
|
|
1170
1170
|
return q;
|
|
@@ -1182,7 +1182,7 @@ function Fh(t, e, n) {
|
|
|
1182
1182
|
if (!Object.keys(J).length)
|
|
1183
1183
|
return;
|
|
1184
1184
|
!$t(J, B) && (T.validated ? U() : R());
|
|
1185
|
-
}),
|
|
1185
|
+
}), li(() => {
|
|
1186
1186
|
var J;
|
|
1187
1187
|
const B = (J = Be(q.keepValueOnUnmount)) !== null && J !== void 0 ? J : Be(g.keepValuesOnUnmount), ye = Be(v);
|
|
1188
1188
|
if (B || !g || P.pendingUnmount[q.id]) {
|
|
@@ -1410,7 +1410,7 @@ const Dy = /* @__PURE__ */ Sn({
|
|
|
1410
1410
|
validate: u,
|
|
1411
1411
|
handleChange: d
|
|
1412
1412
|
}), () => {
|
|
1413
|
-
const D =
|
|
1413
|
+
const D = Jr(Au(t, e)), A = kc(D, e, T);
|
|
1414
1414
|
return D ? Ut(D, Object.assign(Object.assign({}, e.attrs), x.value), A) : A;
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
@@ -1796,7 +1796,7 @@ function Ry(t) {
|
|
|
1796
1796
|
}), Ns(P) && Qe(P, () => {
|
|
1797
1797
|
var M;
|
|
1798
1798
|
(M = J.validateSchema) === null || M === void 0 || M.call(J, "validated-only");
|
|
1799
|
-
}),
|
|
1799
|
+
}), _i(qo, J), process.env.NODE_ENV !== "production" && (ky(J), Qe(() => Object.assign(Object.assign({ errors: m.value }, D.value), { values: a, isSubmitting: i.value, isValidating: o.value, submitCount: s.value }), Ai, {
|
|
1800
1800
|
deep: !0
|
|
1801
1801
|
}));
|
|
1802
1802
|
function Re(M, N) {
|
|
@@ -2019,7 +2019,7 @@ const jy = /* @__PURE__ */ Sn({
|
|
|
2019
2019
|
meta: l,
|
|
2020
2020
|
errors: i
|
|
2021
2021
|
}), function() {
|
|
2022
|
-
const $ = t.as === "form" ? t.as : t.as ?
|
|
2022
|
+
const $ = t.as === "form" ? t.as : t.as ? Jr(t.as) : null, z = kc($, e, R);
|
|
2023
2023
|
return $ ? Ut($, Object.assign(Object.assign(Object.assign({}, $ === "form" ? {
|
|
2024
2024
|
// Disables native validation as vee-validate will handle it.
|
|
2025
2025
|
novalidate: !0
|
|
@@ -2048,7 +2048,7 @@ const jy = /* @__PURE__ */ Sn({
|
|
|
2048
2048
|
return () => {
|
|
2049
2049
|
if (!r.value)
|
|
2050
2050
|
return;
|
|
2051
|
-
const o = t.as ?
|
|
2051
|
+
const o = t.as ? Jr(t.as) : t.as, s = kc(o, e, i), l = Object.assign({ role: "alert" }, e.attrs);
|
|
2052
2052
|
return !o && (Array.isArray(s) || !s) && (s != null && s.length) ? s : (Array.isArray(s) || !s) && !(s != null && s.length) ? Ut(o || "span", l, r.value) : Ut(o, l, s);
|
|
2053
2053
|
};
|
|
2054
2054
|
}
|
|
@@ -2239,7 +2239,7 @@ const sv = ["is", "type", "disabled"], lv = {
|
|
|
2239
2239
|
t.loading ? (O(), L("div", lv, [
|
|
2240
2240
|
be(Ki, { class: "w-6 h-6" })
|
|
2241
2241
|
])) : de("", !0),
|
|
2242
|
-
(O(), Te(
|
|
2242
|
+
(O(), Te(Jr(o.value), {
|
|
2243
2243
|
to: t.to,
|
|
2244
2244
|
class: se(["flex items-center justify-center select-none whitespace-nowrap py-1 h-full", {
|
|
2245
2245
|
medium: t.medium,
|
|
@@ -2328,7 +2328,7 @@ const gv = /* @__PURE__ */ Ne(hv, [["render", mv]]), yv = {
|
|
|
2328
2328
|
_: 3
|
|
2329
2329
|
}, 512));
|
|
2330
2330
|
}
|
|
2331
|
-
}),
|
|
2331
|
+
}), Li = Math.min, Hr = Math.max, $s = Math.round, cs = Math.floor, kr = (t) => ({
|
|
2332
2332
|
x: t,
|
|
2333
2333
|
y: t
|
|
2334
2334
|
}), bv = {
|
|
@@ -2341,12 +2341,12 @@ const gv = /* @__PURE__ */ Ne(hv, [["render", mv]]), yv = {
|
|
|
2341
2341
|
end: "start"
|
|
2342
2342
|
};
|
|
2343
2343
|
function Ta(t, e, n) {
|
|
2344
|
-
return Hr(t,
|
|
2344
|
+
return Hr(t, Li(e, n));
|
|
2345
2345
|
}
|
|
2346
2346
|
function Go(t, e) {
|
|
2347
2347
|
return typeof t == "function" ? t(e) : t;
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function Xr(t) {
|
|
2350
2350
|
return t.split("-")[0];
|
|
2351
2351
|
}
|
|
2352
2352
|
function Jo(t) {
|
|
@@ -2359,7 +2359,7 @@ function Sc(t) {
|
|
|
2359
2359
|
return t === "y" ? "height" : "width";
|
|
2360
2360
|
}
|
|
2361
2361
|
function cl(t) {
|
|
2362
|
-
return ["top", "bottom"].includes(
|
|
2362
|
+
return ["top", "bottom"].includes(Xr(t)) ? "y" : "x";
|
|
2363
2363
|
}
|
|
2364
2364
|
function Oc(t) {
|
|
2365
2365
|
return Hh(cl(t));
|
|
@@ -2392,7 +2392,7 @@ function Sv(t, e, n) {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
function Ov(t, e, n, r) {
|
|
2394
2394
|
const i = Jo(t);
|
|
2395
|
-
let o = Sv(
|
|
2395
|
+
let o = Sv(Xr(t), n === "start", r);
|
|
2396
2396
|
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(Ma)))), o;
|
|
2397
2397
|
}
|
|
2398
2398
|
function Ps(t) {
|
|
@@ -2438,7 +2438,7 @@ function Lu(t, e, n) {
|
|
|
2438
2438
|
reference: r,
|
|
2439
2439
|
floating: i
|
|
2440
2440
|
} = t;
|
|
2441
|
-
const o = cl(e), s = Oc(e), l = Sc(s), a =
|
|
2441
|
+
const o = cl(e), s = Oc(e), l = Sc(s), a = Xr(e), c = o === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[l] / 2 - i[l] / 2;
|
|
2442
2442
|
let h;
|
|
2443
2443
|
switch (a) {
|
|
2444
2444
|
case "top":
|
|
@@ -2611,7 +2611,7 @@ const Tv = (t) => ({
|
|
|
2611
2611
|
}, h = Oc(i), p = Sc(h), m = await s.getDimensions(c), g = h === "y", v = g ? "top" : "left", k = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = o.reference[p] + o.reference[h] - f[h] - o.floating[p], x = f[h] - o.reference[h], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
2612
2612
|
let T = w ? w[b] : 0;
|
|
2613
2613
|
(!T || !await (s.isElement == null ? void 0 : s.isElement(w))) && (T = l.floating[b] || o.floating[p]);
|
|
2614
|
-
const D = y / 2 - x / 2, A = T / 2 - m[p] / 2 - 1, P =
|
|
2614
|
+
const D = y / 2 - x / 2, A = T / 2 - m[p] / 2 - 1, P = Li(d[v], A), I = Li(d[k], A), j = P, Z = T - m[p] - I, U = T / 2 - m[p] / 2 + D, R = Ta(j, U, Z), C = !a.arrow && Jo(i) != null && U !== R && o.reference[p] / 2 - (U < j ? P : I) - m[p] / 2 < 0, $ = C ? U < j ? U - j : U - Z : 0;
|
|
2615
2615
|
return {
|
|
2616
2616
|
[h]: f[h] + $,
|
|
2617
2617
|
data: {
|
|
@@ -2648,7 +2648,7 @@ const Tv = (t) => ({
|
|
|
2648
2648
|
} = Go(t, e);
|
|
2649
2649
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
2650
2650
|
return {};
|
|
2651
|
-
const v =
|
|
2651
|
+
const v = Xr(i), k = Xr(l) === l, b = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), y = f || (k || !m ? [Ps(l)] : xv(l));
|
|
2652
2652
|
!f && p !== "none" && y.push(...Ov(l, m, p, b));
|
|
2653
2653
|
const x = [l, ...y], w = await Wh(e, g), T = [];
|
|
2654
2654
|
let D = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -2701,7 +2701,7 @@ async function _v(t, e) {
|
|
|
2701
2701
|
placement: n,
|
|
2702
2702
|
platform: r,
|
|
2703
2703
|
elements: i
|
|
2704
|
-
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s =
|
|
2704
|
+
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Xr(n), l = Jo(n), a = cl(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = o && a ? -1 : 1, d = Go(e, t);
|
|
2705
2705
|
let {
|
|
2706
2706
|
mainAxis: f,
|
|
2707
2707
|
crossAxis: h,
|
|
@@ -2774,7 +2774,7 @@ const Nv = function(t) {
|
|
|
2774
2774
|
} = Go(t, e), c = {
|
|
2775
2775
|
x: n,
|
|
2776
2776
|
y: r
|
|
2777
|
-
}, u = await Wh(e, a), d = cl(
|
|
2777
|
+
}, u = await Wh(e, a), d = cl(Xr(i)), f = Hh(d);
|
|
2778
2778
|
let h = c[f], p = c[d];
|
|
2779
2779
|
if (o) {
|
|
2780
2780
|
const g = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", k = h + u[g], b = h - u[v];
|
|
@@ -2799,7 +2799,7 @@ const Nv = function(t) {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
};
|
|
2801
2801
|
};
|
|
2802
|
-
function
|
|
2802
|
+
function ai(t) {
|
|
2803
2803
|
return Cc(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
2804
2804
|
}
|
|
2805
2805
|
function tn(t) {
|
|
@@ -2832,7 +2832,7 @@ function Zo(t) {
|
|
|
2832
2832
|
return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !["inline", "contents"].includes(i);
|
|
2833
2833
|
}
|
|
2834
2834
|
function Lv(t) {
|
|
2835
|
-
return ["table", "td", "th"].includes(
|
|
2835
|
+
return ["table", "td", "th"].includes(ai(t));
|
|
2836
2836
|
}
|
|
2837
2837
|
function Ec(t) {
|
|
2838
2838
|
const e = Tc(), n = kn(t);
|
|
@@ -2840,7 +2840,7 @@ function Ec(t) {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
function Dv(t) {
|
|
2842
2842
|
let e = xr(t);
|
|
2843
|
-
for (; Dn(e) && !
|
|
2843
|
+
for (; Dn(e) && !Di(e); ) {
|
|
2844
2844
|
if (Ec(e))
|
|
2845
2845
|
return e;
|
|
2846
2846
|
e = xr(e);
|
|
@@ -2850,8 +2850,8 @@ function Dv(t) {
|
|
|
2850
2850
|
function Tc() {
|
|
2851
2851
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2854
|
-
return ["html", "body", "#document"].includes(
|
|
2853
|
+
function Di(t) {
|
|
2854
|
+
return ["html", "body", "#document"].includes(ai(t));
|
|
2855
2855
|
}
|
|
2856
2856
|
function kn(t) {
|
|
2857
2857
|
return tn(t).getComputedStyle(t);
|
|
@@ -2866,7 +2866,7 @@ function ul(t) {
|
|
|
2866
2866
|
};
|
|
2867
2867
|
}
|
|
2868
2868
|
function xr(t) {
|
|
2869
|
-
if (
|
|
2869
|
+
if (ai(t) === "html")
|
|
2870
2870
|
return t;
|
|
2871
2871
|
const e = (
|
|
2872
2872
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -2879,7 +2879,7 @@ function xr(t) {
|
|
|
2879
2879
|
}
|
|
2880
2880
|
function Uh(t) {
|
|
2881
2881
|
const e = xr(t);
|
|
2882
|
-
return
|
|
2882
|
+
return Di(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Dn(e) && Zo(e) ? e : Uh(e);
|
|
2883
2883
|
}
|
|
2884
2884
|
function Co(t, e, n) {
|
|
2885
2885
|
var r;
|
|
@@ -2900,7 +2900,7 @@ function Yh(t) {
|
|
|
2900
2900
|
function Mc(t) {
|
|
2901
2901
|
return Ln(t) ? t : t.contextElement;
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function Ci(t) {
|
|
2904
2904
|
const e = Mc(t);
|
|
2905
2905
|
if (!Dn(e))
|
|
2906
2906
|
return kr(1);
|
|
@@ -2926,18 +2926,18 @@ function qh(t) {
|
|
|
2926
2926
|
function $v(t, e, n) {
|
|
2927
2927
|
return e === void 0 && (e = !1), !n || e && n !== tn(t) ? !1 : e;
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function Qr(t, e, n, r) {
|
|
2930
2930
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
2931
2931
|
const i = t.getBoundingClientRect(), o = Mc(t);
|
|
2932
2932
|
let s = kr(1);
|
|
2933
|
-
e && (r ? Ln(r) && (s =
|
|
2933
|
+
e && (r ? Ln(r) && (s = Ci(r)) : s = Ci(t));
|
|
2934
2934
|
const l = $v(o, n, r) ? qh(o) : kr(0);
|
|
2935
2935
|
let a = (i.left + l.x) / s.x, c = (i.top + l.y) / s.y, u = i.width / s.x, d = i.height / s.y;
|
|
2936
2936
|
if (o) {
|
|
2937
2937
|
const f = tn(o), h = r && Ln(r) ? tn(r) : r;
|
|
2938
2938
|
let p = f, m = p.frameElement;
|
|
2939
2939
|
for (; m && r && h !== p; ) {
|
|
2940
|
-
const g =
|
|
2940
|
+
const g = Ci(m), v = m.getBoundingClientRect(), k = kn(m), b = v.left + (m.clientLeft + parseFloat(k.paddingLeft)) * g.x, y = v.top + (m.clientTop + parseFloat(k.paddingTop)) * g.y;
|
|
2941
2941
|
a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += b, c += y, p = tn(m), m = p.frameElement;
|
|
2942
2942
|
}
|
|
2943
2943
|
}
|
|
@@ -2973,9 +2973,9 @@ function Rv(t) {
|
|
|
2973
2973
|
scrollTop: 0
|
|
2974
2974
|
}, c = kr(1);
|
|
2975
2975
|
const u = kr(0), d = Dn(r);
|
|
2976
|
-
if ((d || !d && !o) && ((
|
|
2977
|
-
const f =
|
|
2978
|
-
c =
|
|
2976
|
+
if ((d || !d && !o) && ((ai(r) !== "body" || Zo(s)) && (a = ul(r)), Dn(r))) {
|
|
2977
|
+
const f = Qr(r);
|
|
2978
|
+
c = Ci(r), u.x = f.x + r.clientLeft, u.y = f.y + r.clientTop;
|
|
2979
2979
|
}
|
|
2980
2980
|
return {
|
|
2981
2981
|
width: n.width * c.x,
|
|
@@ -2988,7 +2988,7 @@ function Vv(t) {
|
|
|
2988
2988
|
return Array.from(t.getClientRects());
|
|
2989
2989
|
}
|
|
2990
2990
|
function Kh(t) {
|
|
2991
|
-
return
|
|
2991
|
+
return Qr(Xn(t)).left + ul(t).scrollLeft;
|
|
2992
2992
|
}
|
|
2993
2993
|
function Bv(t) {
|
|
2994
2994
|
const e = Xn(t), n = ul(t), r = t.ownerDocument.body, i = Hr(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = Hr(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
@@ -3017,7 +3017,7 @@ function Fv(t, e) {
|
|
|
3017
3017
|
};
|
|
3018
3018
|
}
|
|
3019
3019
|
function jv(t, e) {
|
|
3020
|
-
const n =
|
|
3020
|
+
const n = Qr(t, !0, e === "fixed"), r = n.top + t.clientTop, i = n.left + t.clientLeft, o = Dn(t) ? Ci(t) : kr(1), s = t.clientWidth * o.x, l = t.clientHeight * o.y, a = i * o.x, c = r * o.y;
|
|
3021
3021
|
return {
|
|
3022
3022
|
width: s,
|
|
3023
3023
|
height: l,
|
|
@@ -3045,16 +3045,16 @@ function Iu(t, e, n) {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
function Gh(t, e) {
|
|
3047
3047
|
const n = xr(t);
|
|
3048
|
-
return n === e || !Ln(n) ||
|
|
3048
|
+
return n === e || !Ln(n) || Di(n) ? !1 : kn(n).position === "fixed" || Gh(n, e);
|
|
3049
3049
|
}
|
|
3050
3050
|
function Hv(t, e) {
|
|
3051
3051
|
const n = e.get(t);
|
|
3052
3052
|
if (n)
|
|
3053
3053
|
return n;
|
|
3054
|
-
let r = Co(t, [], !1).filter((l) => Ln(l) &&
|
|
3054
|
+
let r = Co(t, [], !1).filter((l) => Ln(l) && ai(l) !== "body"), i = null;
|
|
3055
3055
|
const o = kn(t).position === "fixed";
|
|
3056
3056
|
let s = o ? xr(t) : t;
|
|
3057
|
-
for (; Ln(s) && !
|
|
3057
|
+
for (; Ln(s) && !Di(s); ) {
|
|
3058
3058
|
const l = kn(s), a = Ec(s);
|
|
3059
3059
|
!a && l.position === "fixed" && (i = null), (o ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Zo(s) && !a && Gh(t, s)) ? r = r.filter((u) => u !== s) : i = l, s = xr(s);
|
|
3060
3060
|
}
|
|
@@ -3069,7 +3069,7 @@ function zv(t) {
|
|
|
3069
3069
|
} = t;
|
|
3070
3070
|
const s = [...n === "clippingAncestors" ? _c(e) ? [] : Hv(e, this._c) : [].concat(n), r], l = s[0], a = s.reduce((c, u) => {
|
|
3071
3071
|
const d = Iu(e, u, i);
|
|
3072
|
-
return c.top = Hr(d.top, c.top), c.right =
|
|
3072
|
+
return c.top = Hr(d.top, c.top), c.right = Li(d.right, c.right), c.bottom = Li(d.bottom, c.bottom), c.left = Hr(d.left, c.left), c;
|
|
3073
3073
|
}, Iu(e, l, i));
|
|
3074
3074
|
return {
|
|
3075
3075
|
width: a.right - a.left,
|
|
@@ -3089,15 +3089,15 @@ function Wv(t) {
|
|
|
3089
3089
|
};
|
|
3090
3090
|
}
|
|
3091
3091
|
function Uv(t, e, n) {
|
|
3092
|
-
const r = Dn(e), i = Xn(e), o = n === "fixed", s =
|
|
3092
|
+
const r = Dn(e), i = Xn(e), o = n === "fixed", s = Qr(t, !0, o, e);
|
|
3093
3093
|
let l = {
|
|
3094
3094
|
scrollLeft: 0,
|
|
3095
3095
|
scrollTop: 0
|
|
3096
3096
|
};
|
|
3097
3097
|
const a = kr(0);
|
|
3098
3098
|
if (r || !r && !o)
|
|
3099
|
-
if ((
|
|
3100
|
-
const d =
|
|
3099
|
+
if ((ai(e) !== "body" || Zo(i)) && (l = ul(e)), r) {
|
|
3100
|
+
const d = Qr(e, !0, o, e);
|
|
3101
3101
|
a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
|
|
3102
3102
|
} else i && (a.x = Kh(i));
|
|
3103
3103
|
const c = s.left + l.scrollLeft - a.x, u = s.top + l.scrollTop - a.y;
|
|
@@ -3120,7 +3120,7 @@ function Jh(t, e) {
|
|
|
3120
3120
|
return n;
|
|
3121
3121
|
if (!Dn(t)) {
|
|
3122
3122
|
let i = xr(t);
|
|
3123
|
-
for (; i && !
|
|
3123
|
+
for (; i && !Di(i); ) {
|
|
3124
3124
|
if (Ln(i) && !Rl(i))
|
|
3125
3125
|
return i;
|
|
3126
3126
|
i = xr(i);
|
|
@@ -3130,7 +3130,7 @@ function Jh(t, e) {
|
|
|
3130
3130
|
let r = $u(t, e);
|
|
3131
3131
|
for (; r && Lv(r) && Rl(r); )
|
|
3132
3132
|
r = $u(r, e);
|
|
3133
|
-
return r &&
|
|
3133
|
+
return r && Di(r) && Rl(r) && !Ec(r) ? n : r || Dv(t) || n;
|
|
3134
3134
|
}
|
|
3135
3135
|
const Yv = async function(t) {
|
|
3136
3136
|
const e = this.getOffsetParent || Jh, n = this.getDimensions, r = await n(t.floating);
|
|
@@ -3155,7 +3155,7 @@ const Kv = {
|
|
|
3155
3155
|
getElementRects: Yv,
|
|
3156
3156
|
getClientRects: Vv,
|
|
3157
3157
|
getDimensions: Wv,
|
|
3158
|
-
getScale:
|
|
3158
|
+
getScale: Ci,
|
|
3159
3159
|
isElement: Ln,
|
|
3160
3160
|
isRTL: qv
|
|
3161
3161
|
};
|
|
@@ -3178,7 +3178,7 @@ function Gv(t, e) {
|
|
|
3178
3178
|
return;
|
|
3179
3179
|
const h = cs(u), p = cs(i.clientWidth - (c + d)), m = cs(i.clientHeight - (u + f)), g = cs(c), k = {
|
|
3180
3180
|
rootMargin: -h + "px " + -p + "px " + -m + "px " + -g + "px",
|
|
3181
|
-
threshold: Hr(0,
|
|
3181
|
+
threshold: Hr(0, Li(1, a)) || 1
|
|
3182
3182
|
};
|
|
3183
3183
|
let b = !0;
|
|
3184
3184
|
function y(x) {
|
|
@@ -3228,10 +3228,10 @@ function Jv(t, e, n, r) {
|
|
|
3228
3228
|
(b = h) == null || b.observe(e);
|
|
3229
3229
|
})), n();
|
|
3230
3230
|
}), c && !a && h.observe(c), h.observe(e));
|
|
3231
|
-
let p, m = a ?
|
|
3231
|
+
let p, m = a ? Qr(t) : null;
|
|
3232
3232
|
a && g();
|
|
3233
3233
|
function g() {
|
|
3234
|
-
const v =
|
|
3234
|
+
const v = Qr(t);
|
|
3235
3235
|
m && (v.x !== m.x || v.y !== m.y || v.width !== m.width || v.height !== m.height) && n(), m = v, p = requestAnimationFrame(g);
|
|
3236
3236
|
}
|
|
3237
3237
|
return n(), () => {
|
|
@@ -3260,7 +3260,7 @@ function Xv(t) {
|
|
|
3260
3260
|
function Qv(t) {
|
|
3261
3261
|
if (Xv(t)) {
|
|
3262
3262
|
const e = t.$el;
|
|
3263
|
-
return Cc(e) &&
|
|
3263
|
+
return Cc(e) && ai(e) === "#comment" ? null : e;
|
|
3264
3264
|
}
|
|
3265
3265
|
return t;
|
|
3266
3266
|
}
|
|
@@ -3342,7 +3342,7 @@ let u1 = {
|
|
|
3342
3342
|
};
|
|
3343
3343
|
const d1 = {
|
|
3344
3344
|
name: "WpicPopover"
|
|
3345
|
-
},
|
|
3345
|
+
}, ci = /* @__PURE__ */ Object.assign(d1, { inheritAttrs: !1 }, {
|
|
3346
3346
|
props: {
|
|
3347
3347
|
placement: {
|
|
3348
3348
|
type: String,
|
|
@@ -3440,7 +3440,7 @@ const d1 = {
|
|
|
3440
3440
|
}, x.$attrs, {
|
|
3441
3441
|
onMouseenter: b,
|
|
3442
3442
|
onMouseleave: y,
|
|
3443
|
-
onClick: w[0] || (w[0] =
|
|
3443
|
+
onClick: w[0] || (w[0] = Ni((T) => p(T), ["stop"]))
|
|
3444
3444
|
}), [
|
|
3445
3445
|
je(x.$slots, "default", { isHidden: f.value })
|
|
3446
3446
|
], 16)),
|
|
@@ -3475,13 +3475,13 @@ const d1 = {
|
|
|
3475
3475
|
* Released under the MIT License.
|
|
3476
3476
|
*/
|
|
3477
3477
|
const Jn = typeof window < "u";
|
|
3478
|
-
let Qt,
|
|
3478
|
+
let Qt, ei;
|
|
3479
3479
|
if (process.env.NODE_ENV !== "production") {
|
|
3480
3480
|
const t = Jn && window.performance;
|
|
3481
3481
|
t && t.mark && t.measure && t.clearMarks && // @ts-ignore browser compat
|
|
3482
3482
|
t.clearMeasures && (Qt = (e) => {
|
|
3483
3483
|
t.mark(e);
|
|
3484
|
-
},
|
|
3484
|
+
}, ei = (e, n, r) => {
|
|
3485
3485
|
t.measure(e, n, r), t.clearMarks(n), t.clearMarks(r);
|
|
3486
3486
|
});
|
|
3487
3487
|
}
|
|
@@ -3489,7 +3489,7 @@ const f1 = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
3489
3489
|
function Ac(t, ...e) {
|
|
3490
3490
|
return e.length === 1 && ze(e[0]) && (e = e[0]), (!e || !e.hasOwnProperty) && (e = {}), t.replace(f1, (n, r) => e.hasOwnProperty(r) ? e[r] : "");
|
|
3491
3491
|
}
|
|
3492
|
-
const Qn = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), h1 = (t, e, n) => p1({ l: t, k: e, s: n }), p1 = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), mt = (t) => typeof t == "number" && isFinite(t), m1 = (t) => np(t) === "[object Date]",
|
|
3492
|
+
const Qn = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), h1 = (t, e, n) => p1({ l: t, k: e, s: n }), p1 = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), mt = (t) => typeof t == "number" && isFinite(t), m1 = (t) => np(t) === "[object Date]", Ii = (t) => np(t) === "[object RegExp]", dl = (t) => Fe(t) && Object.keys(t).length === 0, Nt = Object.assign, g1 = Object.create, Ke = (t = null) => g1(t);
|
|
3493
3493
|
let Ru;
|
|
3494
3494
|
const Un = () => Ru || (Ru = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Ke());
|
|
3495
3495
|
function Vu(t) {
|
|
@@ -4362,24 +4362,24 @@ function Wu(t) {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
4364
|
const Y1 = "minifier";
|
|
4365
|
-
function
|
|
4365
|
+
function yi(t) {
|
|
4366
4366
|
switch (t.t = t.type, t.type) {
|
|
4367
4367
|
case 0: {
|
|
4368
4368
|
const e = t;
|
|
4369
|
-
|
|
4369
|
+
yi(e.body), e.b = e.body, delete e.body;
|
|
4370
4370
|
break;
|
|
4371
4371
|
}
|
|
4372
4372
|
case 1: {
|
|
4373
4373
|
const e = t, n = e.cases;
|
|
4374
4374
|
for (let r = 0; r < n.length; r++)
|
|
4375
|
-
|
|
4375
|
+
yi(n[r]);
|
|
4376
4376
|
e.c = n, delete e.cases;
|
|
4377
4377
|
break;
|
|
4378
4378
|
}
|
|
4379
4379
|
case 2: {
|
|
4380
4380
|
const e = t, n = e.items;
|
|
4381
4381
|
for (let r = 0; r < n.length; r++)
|
|
4382
|
-
|
|
4382
|
+
yi(n[r]);
|
|
4383
4383
|
e.i = n, delete e.items, e.static && (e.s = e.static, delete e.static);
|
|
4384
4384
|
break;
|
|
4385
4385
|
}
|
|
@@ -4393,7 +4393,7 @@ function gi(t) {
|
|
|
4393
4393
|
}
|
|
4394
4394
|
case 6: {
|
|
4395
4395
|
const e = t;
|
|
4396
|
-
|
|
4396
|
+
yi(e.key), e.k = e.key, delete e.key, e.modifier && (yi(e.modifier), e.m = e.modifier, delete e.modifier);
|
|
4397
4397
|
break;
|
|
4398
4398
|
}
|
|
4399
4399
|
case 5: {
|
|
@@ -4462,7 +4462,7 @@ function G1(t, e) {
|
|
|
4462
4462
|
t.push(`${n(
|
|
4463
4463
|
"linked"
|
|
4464
4464
|
/* HelperNameMap.LINKED */
|
|
4465
|
-
)}(`),
|
|
4465
|
+
)}(`), $i(t, e.key), e.modifier ? (t.push(", "), $i(t, e.modifier), t.push(", _type")) : t.push(", undefined, _type"), t.push(")");
|
|
4466
4466
|
}
|
|
4467
4467
|
function J1(t, e) {
|
|
4468
4468
|
const { helper: n, needIndent: r } = t;
|
|
@@ -4471,7 +4471,7 @@ function J1(t, e) {
|
|
|
4471
4471
|
/* HelperNameMap.NORMALIZE */
|
|
4472
4472
|
)}([`), t.indent(r());
|
|
4473
4473
|
const i = e.items.length;
|
|
4474
|
-
for (let o = 0; o < i && (
|
|
4474
|
+
for (let o = 0; o < i && ($i(t, e.items[o]), o !== i - 1); o++)
|
|
4475
4475
|
t.push(", ");
|
|
4476
4476
|
t.deindent(r()), t.push("])");
|
|
4477
4477
|
}
|
|
@@ -4483,15 +4483,15 @@ function Z1(t, e) {
|
|
|
4483
4483
|
/* HelperNameMap.PLURAL */
|
|
4484
4484
|
)}([`), t.indent(r());
|
|
4485
4485
|
const i = e.cases.length;
|
|
4486
|
-
for (let o = 0; o < i && (
|
|
4486
|
+
for (let o = 0; o < i && ($i(t, e.cases[o]), o !== i - 1); o++)
|
|
4487
4487
|
t.push(", ");
|
|
4488
4488
|
t.deindent(r()), t.push("])");
|
|
4489
4489
|
}
|
|
4490
4490
|
}
|
|
4491
4491
|
function X1(t, e) {
|
|
4492
|
-
e.body ?
|
|
4492
|
+
e.body ? $i(t, e.body) : t.push("null");
|
|
4493
4493
|
}
|
|
4494
|
-
function
|
|
4494
|
+
function $i(t, e) {
|
|
4495
4495
|
const { helper: n } = t;
|
|
4496
4496
|
switch (e.type) {
|
|
4497
4497
|
case 0:
|
|
@@ -4552,7 +4552,7 @@ const Q1 = (t, e = {}) => {
|
|
|
4552
4552
|
breakLineCode: i,
|
|
4553
4553
|
needIndent: o
|
|
4554
4554
|
});
|
|
4555
|
-
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${sp(s.map((u) => `${u}: _${u}`), ", ")} } = ctx`), l.newline()), l.push("return "),
|
|
4555
|
+
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${sp(s.map((u) => `${u}: _${u}`), ", ")} } = ctx`), l.newline()), l.push("return "), $i(l, t), l.deindent(o), l.push("}"), delete t.helpers;
|
|
4556
4556
|
const { code: a, map: c } = l.context();
|
|
4557
4557
|
return {
|
|
4558
4558
|
ast: t,
|
|
@@ -4563,7 +4563,7 @@ const Q1 = (t, e = {}) => {
|
|
|
4563
4563
|
};
|
|
4564
4564
|
function eb(t, e = {}) {
|
|
4565
4565
|
const n = op({}, e), r = !!n.jit, i = !!n.minify, o = n.optimize == null ? !0 : n.optimize, l = H1(n).parse(t);
|
|
4566
|
-
return r ? (o && U1(l), i &&
|
|
4566
|
+
return r ? (o && U1(l), i && yi(l), { ast: l, code: "" }) : (W1(l, n), Q1(l, n));
|
|
4567
4567
|
}
|
|
4568
4568
|
/*!
|
|
4569
4569
|
* core-base v9.14.4
|
|
@@ -5001,7 +5001,7 @@ const gp = hl.__EXTEND_POINT__, Dr = fl(gp), It = {
|
|
|
5001
5001
|
[It.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
5002
5002
|
[It.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
5003
5003
|
};
|
|
5004
|
-
function
|
|
5004
|
+
function ti(t, ...e) {
|
|
5005
5005
|
return Ac(Mb[t], ...e);
|
|
5006
5006
|
}
|
|
5007
5007
|
const yp = Ce.__EXTEND_POINT__, Ir = fl(yp), ft = {
|
|
@@ -5130,8 +5130,8 @@ const Zu = (t) => {
|
|
|
5130
5130
|
}, Bb = () => Sp;
|
|
5131
5131
|
let Xu = 0;
|
|
5132
5132
|
function Fb(t = {}) {
|
|
5133
|
-
const e = Xe(t.onWarn) ? t.onWarn : er, n = me(t.version) ? t.version : Db, r = me(t.locale) || Xe(t.locale) ? t.locale : Mo, i = Xe(r) ? Mo : r, o = at(t.fallbackLocale) || Fe(t.fallbackLocale) || me(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = Fe(t.messages) ? t.messages : Bl(i), l = Fe(t.datetimeFormats) ? t.datetimeFormats : Bl(i), a = Fe(t.numberFormats) ? t.numberFormats : Bl(i), c = Nt(Ke(), t.modifiers, Ib()), u = t.pluralRules || Ke(), d = Xe(t.missing) ? t.missing : null, f = Ge(t.missingWarn) ||
|
|
5134
|
-
process.env.NODE_ENV !== "production" && Xe(t.messageCompiler) && rp(
|
|
5133
|
+
const e = Xe(t.onWarn) ? t.onWarn : er, n = me(t.version) ? t.version : Db, r = me(t.locale) || Xe(t.locale) ? t.locale : Mo, i = Xe(r) ? Mo : r, o = at(t.fallbackLocale) || Fe(t.fallbackLocale) || me(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = Fe(t.messages) ? t.messages : Bl(i), l = Fe(t.datetimeFormats) ? t.datetimeFormats : Bl(i), a = Fe(t.numberFormats) ? t.numberFormats : Bl(i), c = Nt(Ke(), t.modifiers, Ib()), u = t.pluralRules || Ke(), d = Xe(t.missing) ? t.missing : null, f = Ge(t.missingWarn) || Ii(t.missingWarn) ? t.missingWarn : !0, h = Ge(t.fallbackWarn) || Ii(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat, m = !!t.unresolving, g = Xe(t.postTranslation) ? t.postTranslation : null, v = Fe(t.processor) ? t.processor : null, k = Ge(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, b = !!t.escapeParameter, y = Xe(t.messageCompiler) ? t.messageCompiler : bp;
|
|
5134
|
+
process.env.NODE_ENV !== "production" && Xe(t.messageCompiler) && rp(ti(It.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
5135
5135
|
const x = Xe(t.messageResolver) ? t.messageResolver : wp || pb, w = Xe(t.localeFallbacker) ? t.localeFallbacker : kp || Nb, T = ze(t.fallbackContext) ? t.fallbackContext : void 0, D = t, A = ze(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), P = ze(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), I = ze(D.__meta) ? D.__meta : {};
|
|
5136
5136
|
Xu++;
|
|
5137
5137
|
const j = {
|
|
@@ -5182,7 +5182,7 @@ function $c(t, e, n, r, i) {
|
|
|
5182
5182
|
const l = o(t, n, e, i);
|
|
5183
5183
|
return me(l) ? l : e;
|
|
5184
5184
|
} else
|
|
5185
|
-
return process.env.NODE_ENV !== "production" && Op(r, e) && s(
|
|
5185
|
+
return process.env.NODE_ENV !== "production" && Op(r, e) && s(ti(It.NOT_FOUND_KEY, { key: e, locale: n })), e;
|
|
5186
5186
|
}
|
|
5187
5187
|
function no(t, e, n) {
|
|
5188
5188
|
const r = t;
|
|
@@ -5268,7 +5268,7 @@ function Ep(t, e) {
|
|
|
5268
5268
|
e && A1(t) && er(Ac(zb, { source: t }));
|
|
5269
5269
|
}
|
|
5270
5270
|
const Tp = (t) => t;
|
|
5271
|
-
let
|
|
5271
|
+
let xi = Ke();
|
|
5272
5272
|
function Mp(t) {
|
|
5273
5273
|
t.code === hl.USE_MODULO_SYNTAX && er(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
5274
5274
|
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
@@ -5288,18 +5288,18 @@ const Wb = /* @__NO_SIDE_EFFECTS__ */ (t, e) => {
|
|
|
5288
5288
|
{
|
|
5289
5289
|
const n = Ge(e.warnHtmlMessage) ? e.warnHtmlMessage : !0;
|
|
5290
5290
|
process.env.NODE_ENV !== "production" && Ep(t, n);
|
|
5291
|
-
const i = (e.onCacheKey || Tp)(t), o =
|
|
5291
|
+
const i = (e.onCacheKey || Tp)(t), o = xi[i];
|
|
5292
5292
|
if (o)
|
|
5293
5293
|
return o;
|
|
5294
5294
|
const { code: s, detectError: l } = _p(t, e), a = new Function(`return ${s}`)();
|
|
5295
|
-
return l ? a :
|
|
5295
|
+
return l ? a : xi[i] = a;
|
|
5296
5296
|
}
|
|
5297
5297
|
};
|
|
5298
5298
|
function Ub(t, e) {
|
|
5299
5299
|
if (process.env.NODE_ENV !== "production" && (e.onWarn = Mp), __INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && me(t)) {
|
|
5300
5300
|
const n = Ge(e.warnHtmlMessage) ? e.warnHtmlMessage : !0;
|
|
5301
5301
|
process.env.NODE_ENV !== "production" && Ep(t, n);
|
|
5302
|
-
const i = (e.onCacheKey || Tp)(t), o =
|
|
5302
|
+
const i = (e.onCacheKey || Tp)(t), o = xi[i];
|
|
5303
5303
|
if (o)
|
|
5304
5304
|
return o;
|
|
5305
5305
|
const { ast: s, detectError: l } = _p(t, {
|
|
@@ -5307,14 +5307,14 @@ function Ub(t, e) {
|
|
|
5307
5307
|
location: process.env.NODE_ENV !== "production",
|
|
5308
5308
|
jit: !0
|
|
5309
5309
|
}), a = Fl(s);
|
|
5310
|
-
return l ? a :
|
|
5310
|
+
return l ? a : xi[i] = a;
|
|
5311
5311
|
} else {
|
|
5312
5312
|
if (process.env.NODE_ENV !== "production" && !wn(t))
|
|
5313
5313
|
return er(`the message that is resolve with key '${e.key}' is not supported for jit compilation`), () => t;
|
|
5314
5314
|
const n = t.cacheKey;
|
|
5315
5315
|
if (n) {
|
|
5316
|
-
const r =
|
|
5317
|
-
return r || (
|
|
5316
|
+
const r = xi[n];
|
|
5317
|
+
return r || (xi[n] = Fl(t));
|
|
5318
5318
|
} else
|
|
5319
5319
|
return Fl(t);
|
|
5320
5320
|
}
|
|
@@ -5361,7 +5361,7 @@ function Np(t, e, n, r, i, o) {
|
|
|
5361
5361
|
let d = Ke(), f, h = null, p = n, m = null;
|
|
5362
5362
|
const g = "translate";
|
|
5363
5363
|
for (let v = 0; v < u.length; v++) {
|
|
5364
|
-
if (f = m = u[v], process.env.NODE_ENV !== "production" && n !== f && !Cp(n, f) && ml(i, e) && l(
|
|
5364
|
+
if (f = m = u[v], process.env.NODE_ENV !== "production" && n !== f && !Cp(n, f) && ml(i, e) && l(ti(It.FALLBACK_TO_TRANSLATE, {
|
|
5365
5365
|
key: e,
|
|
5366
5366
|
target: f
|
|
5367
5367
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
@@ -5384,7 +5384,7 @@ function Np(t, e, n, r, i, o) {
|
|
|
5384
5384
|
message: h,
|
|
5385
5385
|
time: x - k,
|
|
5386
5386
|
groupId: `${g}:${e}`
|
|
5387
|
-
}), b && y && Qt &&
|
|
5387
|
+
}), b && y && Qt && ei && (Qt(y), ei("intlify message resolve", b, y));
|
|
5388
5388
|
}
|
|
5389
5389
|
if (me(h) || wn(h) || ln(h))
|
|
5390
5390
|
break;
|
|
@@ -5423,7 +5423,7 @@ function Ap(t, e, n, r, i, o) {
|
|
|
5423
5423
|
message: r,
|
|
5424
5424
|
time: f - a,
|
|
5425
5425
|
groupId: `translate:${e}`
|
|
5426
|
-
}), c && u && Qt &&
|
|
5426
|
+
}), c && u && Qt && ei && (Qt(u), ei("intlify message compilation", c, u));
|
|
5427
5427
|
}
|
|
5428
5428
|
return d.locale = n, d.key = e, d.source = r, d;
|
|
5429
5429
|
}
|
|
@@ -5438,7 +5438,7 @@ function qb(t, e, n) {
|
|
|
5438
5438
|
value: s,
|
|
5439
5439
|
time: l - r,
|
|
5440
5440
|
groupId: `translate:${e.key}`
|
|
5441
|
-
}), i && o && Qt &&
|
|
5441
|
+
}), i && o && Qt && ei && (Qt(o), ei("intlify message evaluation", i, o));
|
|
5442
5442
|
}
|
|
5443
5443
|
return s;
|
|
5444
5444
|
}
|
|
@@ -5506,7 +5506,7 @@ const nd = typeof Intl < "u", Lp = {
|
|
|
5506
5506
|
function rd(t, ...e) {
|
|
5507
5507
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: o, localeFallbacker: s } = t, { __datetimeFormatters: l } = t;
|
|
5508
5508
|
if (process.env.NODE_ENV !== "production" && !Lp.dateTimeFormat)
|
|
5509
|
-
return o(
|
|
5509
|
+
return o(ti(It.CANNOT_FORMAT_DATE)), Bs;
|
|
5510
5510
|
const [a, c, u, d] = Aa(...e), f = Ge(u.missingWarn) ? u.missingWarn : t.missingWarn, h = Ge(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = !!u.part, m = Ic(t, u), g = s(
|
|
5511
5511
|
t,
|
|
5512
5512
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -5518,7 +5518,7 @@ function rd(t, ...e) {
|
|
|
5518
5518
|
let v = {}, k, b = null, y = m, x = null;
|
|
5519
5519
|
const w = "datetime format";
|
|
5520
5520
|
for (let A = 0; A < g.length; A++) {
|
|
5521
|
-
if (k = x = g[A], process.env.NODE_ENV !== "production" && m !== k && ml(h, a) && o(
|
|
5521
|
+
if (k = x = g[A], process.env.NODE_ENV !== "production" && m !== k && ml(h, a) && o(ti(It.FALLBACK_TO_DATE_FORMAT, {
|
|
5522
5522
|
key: a,
|
|
5523
5523
|
target: k
|
|
5524
5524
|
})), process.env.NODE_ENV !== "production" && m !== k) {
|
|
@@ -5600,7 +5600,7 @@ function id(t, e, n) {
|
|
|
5600
5600
|
function od(t, ...e) {
|
|
5601
5601
|
const { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: o, localeFallbacker: s } = t, { __numberFormatters: l } = t;
|
|
5602
5602
|
if (process.env.NODE_ENV !== "production" && !Lp.numberFormat)
|
|
5603
|
-
return o(
|
|
5603
|
+
return o(ti(It.CANNOT_FORMAT_NUMBER)), Bs;
|
|
5604
5604
|
const [a, c, u, d] = La(...e), f = Ge(u.missingWarn) ? u.missingWarn : t.missingWarn, h = Ge(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = !!u.part, m = Ic(t, u), g = s(
|
|
5605
5605
|
t,
|
|
5606
5606
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -5612,7 +5612,7 @@ function od(t, ...e) {
|
|
|
5612
5612
|
let v = {}, k, b = null, y = m, x = null;
|
|
5613
5613
|
const w = "number format";
|
|
5614
5614
|
for (let A = 0; A < g.length; A++) {
|
|
5615
|
-
if (k = x = g[A], process.env.NODE_ENV !== "production" && m !== k && ml(h, a) && o(
|
|
5615
|
+
if (k = x = g[A], process.env.NODE_ENV !== "production" && m !== k && ml(h, a) && o(ti(It.FALLBACK_TO_NUMBER_FORMAT, {
|
|
5616
5616
|
key: a,
|
|
5617
5617
|
target: k
|
|
5618
5618
|
})), process.env.NODE_ENV !== "production" && m !== k) {
|
|
@@ -5876,7 +5876,7 @@ function o2(t = {}, e) {
|
|
|
5876
5876
|
// prettier-ignore
|
|
5877
5877
|
n && a ? n.fallbackLocale.value : me(t.fallbackLocale) || at(t.fallbackLocale) || Fe(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : c.value
|
|
5878
5878
|
), d = s(Pc(c.value, t)), f = s(Fe(t.datetimeFormats) ? t.datetimeFormats : { [c.value]: {} }), h = s(Fe(t.numberFormats) ? t.numberFormats : { [c.value]: {} });
|
|
5879
|
-
let p = n ? n.missingWarn : Ge(t.missingWarn) ||
|
|
5879
|
+
let p = n ? n.missingWarn : Ge(t.missingWarn) || Ii(t.missingWarn) ? t.missingWarn : !0, m = n ? n.fallbackWarn : Ge(t.fallbackWarn) || Ii(t.fallbackWarn) ? t.fallbackWarn : !0, g = n ? n.fallbackRoot : Ge(t.fallbackRoot) ? t.fallbackRoot : !0, v = !!t.fallbackFormat, k = Xe(t.missing) ? t.missing : null, b = Xe(t.missing) ? dd(t.missing) : null, y = Xe(t.postTranslation) ? t.postTranslation : null, x = n ? n.warnHtmlMessage : Ge(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, w = !!t.escapeParameter;
|
|
5880
5880
|
const T = n ? n.modifiers : Fe(t.modifiers) ? t.modifiers : {};
|
|
5881
5881
|
let D = t.pluralRules || n && n.pluralRules, A;
|
|
5882
5882
|
A = (() => {
|
|
@@ -6347,7 +6347,7 @@ function m2(t, e, n, r = {}) {
|
|
|
6347
6347
|
), a = ce(
|
|
6348
6348
|
// prettier-ignore
|
|
6349
6349
|
!i || s ? n.fallbackLocale.value : me(r.fallbackLocale) || at(r.fallbackLocale) || Fe(r.fallbackLocale) || r.fallbackLocale === !1 ? r.fallbackLocale : l.value
|
|
6350
|
-
), c = ce(Pc(l.value, r)), u = ce(Fe(r.datetimeFormats) ? r.datetimeFormats : { [l.value]: {} }), d = ce(Fe(r.numberFormats) ? r.numberFormats : { [l.value]: {} }), f = i ? n.missingWarn : Ge(r.missingWarn) ||
|
|
6350
|
+
), c = ce(Pc(l.value, r)), u = ce(Fe(r.datetimeFormats) ? r.datetimeFormats : { [l.value]: {} }), d = ce(Fe(r.numberFormats) ? r.numberFormats : { [l.value]: {} }), f = i ? n.missingWarn : Ge(r.missingWarn) || Ii(r.missingWarn) ? r.missingWarn : !0, h = i ? n.fallbackWarn : Ge(r.fallbackWarn) || Ii(r.fallbackWarn) ? r.fallbackWarn : !0, p = i ? n.fallbackRoot : Ge(r.fallbackRoot) ? r.fallbackRoot : !0, m = !!r.fallbackFormat, g = Xe(r.missing) ? r.missing : null, v = Xe(r.postTranslation) ? r.postTranslation : null, k = i ? n.warnHtmlMessage : Ge(r.warnHtmlMessage) ? r.warnHtmlMessage : !0, b = !!r.escapeParameter, y = i ? n.modifiers : Fe(r.modifiers) ? r.modifiers : {}, x = r.pluralRules || i && n.pluralRules;
|
|
6351
6351
|
function w() {
|
|
6352
6352
|
return [
|
|
6353
6353
|
l.value,
|
|
@@ -6612,7 +6612,7 @@ const Vc = /* @__PURE__ */ Ne(k2, [["render", C2]]), E2 = {
|
|
|
6612
6612
|
V("span", null, Ee(t.label), 1),
|
|
6613
6613
|
t.required && !t.hideRequired ? (O(), L("span", M2, "*")) : de("", !0),
|
|
6614
6614
|
V("div", _2, [
|
|
6615
|
-
t.info ? (O(), Te(
|
|
6615
|
+
t.info ? (O(), Te(ci, {
|
|
6616
6616
|
key: 0,
|
|
6617
6617
|
hover: ""
|
|
6618
6618
|
}, {
|
|
@@ -6657,7 +6657,7 @@ const Vc = /* @__PURE__ */ Ne(k2, [["render", C2]]), E2 = {
|
|
|
6657
6657
|
be(Ki, { class: "w-6 h-6 opacity-50" })
|
|
6658
6658
|
])) : t.clearable ? (O(), L("div", {
|
|
6659
6659
|
key: 2,
|
|
6660
|
-
onClick:
|
|
6660
|
+
onClick: Ni(o, ["stop"]),
|
|
6661
6661
|
style: { "z-index": "2" },
|
|
6662
6662
|
class: "absolute right-0 mr-2 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
6663
6663
|
}, [
|
|
@@ -6667,7 +6667,7 @@ const Vc = /* @__PURE__ */ Ne(k2, [["render", C2]]), E2 = {
|
|
|
6667
6667
|
]));
|
|
6668
6668
|
}
|
|
6669
6669
|
});
|
|
6670
|
-
var Hp = typeof global == "object" && global && global.Object === Object && global, $2 = typeof self == "object" && self && self.Object === Object && self, Rn = Hp || $2 || Function("return this")(),
|
|
6670
|
+
var Hp = typeof global == "object" && global && global.Object === Object && global, $2 = typeof self == "object" && self && self.Object === Object && self, Rn = Hp || $2 || Function("return this")(), Pi = Rn.Symbol, zp = Object.prototype, P2 = zp.hasOwnProperty, R2 = zp.toString, ro = Pi ? Pi.toStringTag : void 0;
|
|
6671
6671
|
function V2(t) {
|
|
6672
6672
|
var e = P2.call(t, ro), n = t[ro];
|
|
6673
6673
|
try {
|
|
@@ -6682,16 +6682,16 @@ var B2 = Object.prototype, F2 = B2.toString;
|
|
|
6682
6682
|
function j2(t) {
|
|
6683
6683
|
return F2.call(t);
|
|
6684
6684
|
}
|
|
6685
|
-
var H2 = "[object Null]", z2 = "[object Undefined]", hd =
|
|
6685
|
+
var H2 = "[object Null]", z2 = "[object Undefined]", hd = Pi ? Pi.toStringTag : void 0;
|
|
6686
6686
|
function Ji(t) {
|
|
6687
6687
|
return t == null ? t === void 0 ? z2 : H2 : hd && hd in Object(t) ? V2(t) : j2(t);
|
|
6688
6688
|
}
|
|
6689
|
-
function
|
|
6689
|
+
function Ri(t) {
|
|
6690
6690
|
return t != null && typeof t == "object";
|
|
6691
6691
|
}
|
|
6692
6692
|
var W2 = "[object Symbol]";
|
|
6693
6693
|
function U2(t) {
|
|
6694
|
-
return typeof t == "symbol" ||
|
|
6694
|
+
return typeof t == "symbol" || Ri(t) && Ji(t) == W2;
|
|
6695
6695
|
}
|
|
6696
6696
|
var js = Array.isArray, Y2 = /\s/;
|
|
6697
6697
|
function q2(t) {
|
|
@@ -6738,7 +6738,7 @@ function iw(t) {
|
|
|
6738
6738
|
return !!gd && gd in t;
|
|
6739
6739
|
}
|
|
6740
6740
|
var ow = Function.prototype, sw = ow.toString;
|
|
6741
|
-
function
|
|
6741
|
+
function ui(t) {
|
|
6742
6742
|
if (t != null) {
|
|
6743
6743
|
try {
|
|
6744
6744
|
return sw.call(t);
|
|
@@ -6758,7 +6758,7 @@ function pw(t) {
|
|
|
6758
6758
|
if (!No(t) || iw(t))
|
|
6759
6759
|
return !1;
|
|
6760
6760
|
var e = Wp(t) ? hw : aw;
|
|
6761
|
-
return e.test(
|
|
6761
|
+
return e.test(ui(t));
|
|
6762
6762
|
}
|
|
6763
6763
|
function mw(t, e) {
|
|
6764
6764
|
return t == null ? void 0 : t[e];
|
|
@@ -6794,12 +6794,12 @@ function Sw(t, e) {
|
|
|
6794
6794
|
}
|
|
6795
6795
|
var Ow = "[object Arguments]";
|
|
6796
6796
|
function yd(t) {
|
|
6797
|
-
return
|
|
6797
|
+
return Ri(t) && Ji(t) == Ow;
|
|
6798
6798
|
}
|
|
6799
6799
|
var qp = Object.prototype, Cw = qp.hasOwnProperty, Ew = qp.propertyIsEnumerable, Tw = yd(/* @__PURE__ */ function() {
|
|
6800
6800
|
return arguments;
|
|
6801
6801
|
}()) ? yd : function(t) {
|
|
6802
|
-
return
|
|
6802
|
+
return Ri(t) && Cw.call(t, "callee") && !Ew.call(t, "callee");
|
|
6803
6803
|
};
|
|
6804
6804
|
function Mw() {
|
|
6805
6805
|
return !1;
|
|
@@ -6808,7 +6808,7 @@ var Kp = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
6808
6808
|
Ze[Yw] = Ze[qw] = Ze[Kw] = Ze[Gw] = Ze[Jw] = Ze[Zw] = Ze[Xw] = Ze[Qw] = Ze[ek] = !0;
|
|
6809
6809
|
Ze[Aw] = Ze[Lw] = Ze[Ww] = Ze[Dw] = Ze[Uw] = Ze[Iw] = Ze[$w] = Ze[Pw] = Ze[Rw] = Ze[Vw] = Ze[Bw] = Ze[Fw] = Ze[jw] = Ze[Hw] = Ze[zw] = !1;
|
|
6810
6810
|
function tk(t) {
|
|
6811
|
-
return
|
|
6811
|
+
return Ri(t) && Yp(t.length) && !!Ze[Ji(t)];
|
|
6812
6812
|
}
|
|
6813
6813
|
function nk(t) {
|
|
6814
6814
|
return function(e) {
|
|
@@ -6876,18 +6876,18 @@ function Sk(t, e) {
|
|
|
6876
6876
|
var n = this.__data__;
|
|
6877
6877
|
return this.size += this.has(t) ? 0 : 1, n[t] = Ao && e === void 0 ? xk : e, this;
|
|
6878
6878
|
}
|
|
6879
|
-
function
|
|
6879
|
+
function ni(t) {
|
|
6880
6880
|
var e = -1, n = t == null ? 0 : t.length;
|
|
6881
6881
|
for (this.clear(); ++e < n; ) {
|
|
6882
6882
|
var r = t[e];
|
|
6883
6883
|
this.set(r[0], r[1]);
|
|
6884
6884
|
}
|
|
6885
6885
|
}
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6886
|
+
ni.prototype.clear = hk;
|
|
6887
|
+
ni.prototype.delete = pk;
|
|
6888
|
+
ni.prototype.get = vk;
|
|
6889
|
+
ni.prototype.has = kk;
|
|
6890
|
+
ni.prototype.set = Sk;
|
|
6891
6891
|
function Ok() {
|
|
6892
6892
|
this.__data__ = [], this.size = 0;
|
|
6893
6893
|
}
|
|
@@ -6931,9 +6931,9 @@ tr.prototype.set = Nk;
|
|
|
6931
6931
|
var Lo = Zi(Rn, "Map");
|
|
6932
6932
|
function Ak() {
|
|
6933
6933
|
this.size = 0, this.__data__ = {
|
|
6934
|
-
hash: new
|
|
6934
|
+
hash: new ni(),
|
|
6935
6935
|
map: new (Lo || tr)(),
|
|
6936
|
-
string: new
|
|
6936
|
+
string: new ni()
|
|
6937
6937
|
};
|
|
6938
6938
|
}
|
|
6939
6939
|
function Lk(t) {
|
|
@@ -6958,18 +6958,18 @@ function Pk(t, e) {
|
|
|
6958
6958
|
var n = yl(this, t), r = n.size;
|
|
6959
6959
|
return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
|
|
6960
6960
|
}
|
|
6961
|
-
function
|
|
6961
|
+
function di(t) {
|
|
6962
6962
|
var e = -1, n = t == null ? 0 : t.length;
|
|
6963
6963
|
for (this.clear(); ++e < n; ) {
|
|
6964
6964
|
var r = t[e];
|
|
6965
6965
|
this.set(r[0], r[1]);
|
|
6966
6966
|
}
|
|
6967
6967
|
}
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6968
|
+
di.prototype.clear = Ak;
|
|
6969
|
+
di.prototype.delete = Dk;
|
|
6970
|
+
di.prototype.get = Ik;
|
|
6971
|
+
di.prototype.has = $k;
|
|
6972
|
+
di.prototype.set = Pk;
|
|
6973
6973
|
function Rk(t, e) {
|
|
6974
6974
|
for (var n = -1, r = e.length, i = t.length; ++n < r; )
|
|
6975
6975
|
t[i + n] = e[n];
|
|
@@ -6995,7 +6995,7 @@ function zk(t, e) {
|
|
|
6995
6995
|
var r = n.__data__;
|
|
6996
6996
|
if (!Lo || r.length < Hk - 1)
|
|
6997
6997
|
return r.push([t, e]), this.size = ++n.size, this;
|
|
6998
|
-
n = this.__data__ = new
|
|
6998
|
+
n = this.__data__ = new di(r);
|
|
6999
6999
|
}
|
|
7000
7000
|
return n.set(t, e), this.size = n.size, this;
|
|
7001
7001
|
}
|
|
@@ -7030,9 +7030,9 @@ function Gk(t, e, n) {
|
|
|
7030
7030
|
function Sd(t) {
|
|
7031
7031
|
return Gk(t, fk, Kk);
|
|
7032
7032
|
}
|
|
7033
|
-
var ja = Zi(Rn, "DataView"), Ha = Zi(Rn, "Promise"), za = Zi(Rn, "Set"), Od = "[object Map]", Jk = "[object Object]", Cd = "[object Promise]", Ed = "[object Set]", Td = "[object WeakMap]", Md = "[object DataView]", Zk =
|
|
7033
|
+
var ja = Zi(Rn, "DataView"), Ha = Zi(Rn, "Promise"), za = Zi(Rn, "Set"), Od = "[object Map]", Jk = "[object Object]", Cd = "[object Promise]", Ed = "[object Set]", Td = "[object WeakMap]", Md = "[object DataView]", Zk = ui(ja), Xk = ui(Lo), Qk = ui(Ha), ex = ui(za), tx = ui(Ba), or = Ji;
|
|
7034
7034
|
(ja && or(new ja(new ArrayBuffer(1))) != Md || Lo && or(new Lo()) != Od || Ha && or(Ha.resolve()) != Cd || za && or(new za()) != Ed || Ba && or(new Ba()) != Td) && (or = function(t) {
|
|
7035
|
-
var e = Ji(t), n = e == Jk ? t.constructor : void 0, r = n ?
|
|
7035
|
+
var e = Ji(t), n = e == Jk ? t.constructor : void 0, r = n ? ui(n) : "";
|
|
7036
7036
|
if (r)
|
|
7037
7037
|
switch (r) {
|
|
7038
7038
|
case Zk:
|
|
@@ -7057,7 +7057,7 @@ function ix(t) {
|
|
|
7057
7057
|
}
|
|
7058
7058
|
function Hs(t) {
|
|
7059
7059
|
var e = -1, n = t == null ? 0 : t.length;
|
|
7060
|
-
for (this.__data__ = new
|
|
7060
|
+
for (this.__data__ = new di(); ++e < n; )
|
|
7061
7061
|
this.add(t[e]);
|
|
7062
7062
|
}
|
|
7063
7063
|
Hs.prototype.add = Hs.prototype.push = rx;
|
|
@@ -7117,7 +7117,7 @@ function ux(t) {
|
|
|
7117
7117
|
n[++e] = r;
|
|
7118
7118
|
}), n;
|
|
7119
7119
|
}
|
|
7120
|
-
var dx = 1, fx = 2, hx = "[object Boolean]", px = "[object Date]", mx = "[object Error]", gx = "[object Map]", yx = "[object Number]", vx = "[object RegExp]", bx = "[object Set]", wx = "[object String]", kx = "[object Symbol]", xx = "[object ArrayBuffer]", Sx = "[object DataView]", Nd =
|
|
7120
|
+
var dx = 1, fx = 2, hx = "[object Boolean]", px = "[object Date]", mx = "[object Error]", gx = "[object Map]", yx = "[object Number]", vx = "[object RegExp]", bx = "[object Set]", wx = "[object String]", kx = "[object Symbol]", xx = "[object ArrayBuffer]", Sx = "[object DataView]", Nd = Pi ? Pi.prototype : void 0, zl = Nd ? Nd.valueOf : void 0;
|
|
7121
7121
|
function Ox(t, e, n, r, i, o, s) {
|
|
7122
7122
|
switch (n) {
|
|
7123
7123
|
case Sx:
|
|
@@ -7207,7 +7207,7 @@ function Ax(t, e, n, r, i, o) {
|
|
|
7207
7207
|
return f ? (o || (o = new hr()), Mx(t, e, n, r, i, o)) : !1;
|
|
7208
7208
|
}
|
|
7209
7209
|
function Xp(t, e, n, r, i) {
|
|
7210
|
-
return t === e ? !0 : t == null || e == null || !
|
|
7210
|
+
return t === e ? !0 : t == null || e == null || !Ri(t) && !Ri(e) ? t !== t && e !== e : Ax(t, e, n, r, Xp, i);
|
|
7211
7211
|
}
|
|
7212
7212
|
var Wl = function() {
|
|
7213
7213
|
return Rn.Date.now();
|
|
@@ -7468,7 +7468,7 @@ const Fx = /* @__PURE__ */ Ne($x, [["render", Bx]]), jx = {
|
|
|
7468
7468
|
return e({
|
|
7469
7469
|
allSelected: s,
|
|
7470
7470
|
isAllSelected: b
|
|
7471
|
-
}), (I, j) => (O(), Te(
|
|
7471
|
+
}), (I, j) => (O(), Te(ci, {
|
|
7472
7472
|
custom: "",
|
|
7473
7473
|
ref_key: "myPopover",
|
|
7474
7474
|
ref: u,
|
|
@@ -7503,7 +7503,7 @@ const Fx = /* @__PURE__ */ Ne($x, [["render", Bx]]), jx = {
|
|
|
7503
7503
|
], 2),
|
|
7504
7504
|
t.modelValue && t.clearable ? (O(), L("div", {
|
|
7505
7505
|
key: 0,
|
|
7506
|
-
onClick:
|
|
7506
|
+
onClick: Ni(p, ["stop"]),
|
|
7507
7507
|
style: { "z-index": "2" },
|
|
7508
7508
|
class: "absolute right-6 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
7509
7509
|
}, [
|
|
@@ -7662,7 +7662,7 @@ const Fx = /* @__PURE__ */ Ne($x, [["render", Bx]]), jx = {
|
|
|
7662
7662
|
t.label ? (O(), L("div", Xx, [
|
|
7663
7663
|
tt(Ee(t.label) + " ", 1),
|
|
7664
7664
|
V("div", null, [
|
|
7665
|
-
t.info ? (O(), Te(
|
|
7665
|
+
t.info ? (O(), Te(ci, {
|
|
7666
7666
|
key: 0,
|
|
7667
7667
|
hover: ""
|
|
7668
7668
|
}, {
|
|
@@ -7676,7 +7676,7 @@ const Fx = /* @__PURE__ */ Ne($x, [["render", Bx]]), jx = {
|
|
|
7676
7676
|
})) : de("", !0)
|
|
7677
7677
|
])
|
|
7678
7678
|
])) : de("", !0),
|
|
7679
|
-
|
|
7679
|
+
Zr(V("textarea", {
|
|
7680
7680
|
ref_key: "myTextarea",
|
|
7681
7681
|
ref: l,
|
|
7682
7682
|
"onUpdate:modelValue": h[0] || (h[0] = (p) => c.value = p),
|
|
@@ -7732,7 +7732,7 @@ const Fx = /* @__PURE__ */ Ne($x, [["render", Bx]]), jx = {
|
|
|
7732
7732
|
loading: t.loading
|
|
7733
7733
|
}, {
|
|
7734
7734
|
default: Ae(() => [
|
|
7735
|
-
|
|
7735
|
+
Zr(V("input", {
|
|
7736
7736
|
type: "color",
|
|
7737
7737
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => i.value = a),
|
|
7738
7738
|
onInput: o,
|
|
@@ -7740,7 +7740,7 @@ const Fx = /* @__PURE__ */ Ne($x, [["render", Bx]]), jx = {
|
|
|
7740
7740
|
}, null, 544), [
|
|
7741
7741
|
[As, i.value]
|
|
7742
7742
|
]),
|
|
7743
|
-
|
|
7743
|
+
Zr(V("input", {
|
|
7744
7744
|
type: "text",
|
|
7745
7745
|
"onUpdate:modelValue": l[1] || (l[1] = (a) => i.value = a),
|
|
7746
7746
|
onInput: o,
|
|
@@ -7997,7 +7997,7 @@ const xS = /* @__PURE__ */ Ne(yS, [["render", kS]]), SS = { class: "flex items-c
|
|
|
7997
7997
|
V("span", null, Ee(a.value), 1),
|
|
7998
7998
|
t.required && !t.hideRequired ? (O(), L("span", OS, "*")) : de("", !0),
|
|
7999
7999
|
V("div", CS, [
|
|
8000
|
-
t.info ? (O(), Te(
|
|
8000
|
+
t.info ? (O(), Te(ci, {
|
|
8001
8001
|
key: 0,
|
|
8002
8002
|
hover: ""
|
|
8003
8003
|
}, {
|
|
@@ -8248,13 +8248,13 @@ const xS = /* @__PURE__ */ Ne(yS, [["render", kS]]), SS = { class: "flex items-c
|
|
|
8248
8248
|
}, null, 8, ["class", "type", "min", "max", "rows", "name", "disabled", "modelValue", "no-data-text", "placeholder", "validateOnInput", "rules"])),
|
|
8249
8249
|
t.loading ? (O(), L("div", {
|
|
8250
8250
|
key: 3,
|
|
8251
|
-
onClick:
|
|
8251
|
+
onClick: Ni(v, ["stop"]),
|
|
8252
8252
|
class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
8253
8253
|
}, [
|
|
8254
8254
|
be(Ki, { class: "w-6 h-6 opacity-50" })
|
|
8255
8255
|
])) : t.clearable && t.modelValue ? (O(), L("div", {
|
|
8256
8256
|
key: 4,
|
|
8257
|
-
onClick:
|
|
8257
|
+
onClick: Ni(v, ["stop"]),
|
|
8258
8258
|
style: { "z-index": "2" },
|
|
8259
8259
|
class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
8260
8260
|
}, [
|
|
@@ -8263,13 +8263,13 @@ const xS = /* @__PURE__ */ Ne(yS, [["render", kS]]), SS = { class: "flex items-c
|
|
|
8263
8263
|
P.$slots.append || t.password || t.type == "password" ? (O(), L("div", NS, [
|
|
8264
8264
|
V("div", AS, [
|
|
8265
8265
|
je(P.$slots, "append", {}, () => [
|
|
8266
|
-
|
|
8266
|
+
Zr(be(aS, {
|
|
8267
8267
|
class: "text-zinc-600 select-none",
|
|
8268
8268
|
onClick: d
|
|
8269
8269
|
}, null, 512), [
|
|
8270
8270
|
[ka, c.value]
|
|
8271
8271
|
]),
|
|
8272
|
-
|
|
8272
|
+
Zr(be(gS, {
|
|
8273
8273
|
class: "text-zinc-600 select-none",
|
|
8274
8274
|
onClick: d
|
|
8275
8275
|
}, null, 512), [
|
|
@@ -8986,7 +8986,7 @@ const QO = /* @__PURE__ */ Ne(KO, [["render", XO]]), eC = { class: "wpic-table"
|
|
|
8986
8986
|
v();
|
|
8987
8987
|
});
|
|
8988
8988
|
const f = dn();
|
|
8989
|
-
|
|
8989
|
+
_i("wtable", f == null ? void 0 : f.proxy);
|
|
8990
8990
|
const h = Ch(), p = ce([]), m = ce([]), g = ae(() => r.columnToggleable ? p.value.filter((C) => m.value.includes(C.field) || !C.selectable) : p.value.filter((C) => C.visible || !C.selectable));
|
|
8991
8991
|
function v() {
|
|
8992
8992
|
const C = (te, W) => {
|
|
@@ -9328,7 +9328,7 @@ const QO = /* @__PURE__ */ Ne(KO, [["render", XO]]), eC = { class: "wpic-table"
|
|
|
9328
9328
|
}, null, 8, ["class", "style", "id", "column", "item", "rowIndex"]);
|
|
9329
9329
|
}), 128))
|
|
9330
9330
|
], 10, pC),
|
|
9331
|
-
g.value.find((B) => B.type == "expand") ?
|
|
9331
|
+
g.value.find((B) => B.type == "expand") ? Zr((O(), L("tr", {
|
|
9332
9332
|
key: 0,
|
|
9333
9333
|
class: se([{
|
|
9334
9334
|
[s[Y(ke).theme]]: !t.stripe,
|
|
@@ -10841,7 +10841,7 @@ function ym(t, e) {
|
|
|
10841
10841
|
e = t[n].type.name + "(" + e + ")";
|
|
10842
10842
|
return e;
|
|
10843
10843
|
}
|
|
10844
|
-
class
|
|
10844
|
+
class ri {
|
|
10845
10845
|
/**
|
|
10846
10846
|
@internal
|
|
10847
10847
|
*/
|
|
@@ -10854,7 +10854,7 @@ class ni {
|
|
|
10854
10854
|
static parse(e, n) {
|
|
10855
10855
|
let r = new EC(e, n);
|
|
10856
10856
|
if (r.next == null)
|
|
10857
|
-
return
|
|
10857
|
+
return ri.empty;
|
|
10858
10858
|
let i = vm(r);
|
|
10859
10859
|
r.next && r.err("Unexpected trailing text");
|
|
10860
10860
|
let o = DC(LC(i));
|
|
@@ -11003,7 +11003,7 @@ class ni {
|
|
|
11003
11003
|
`);
|
|
11004
11004
|
}
|
|
11005
11005
|
}
|
|
11006
|
-
|
|
11006
|
+
ri.empty = new ri(!0);
|
|
11007
11007
|
class EC {
|
|
11008
11008
|
constructor(e, n) {
|
|
11009
11009
|
this.string = e, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
@@ -11166,7 +11166,7 @@ function DC(t) {
|
|
|
11166
11166
|
});
|
|
11167
11167
|
});
|
|
11168
11168
|
});
|
|
11169
|
-
let o = e[r.join(",")] = new
|
|
11169
|
+
let o = e[r.join(",")] = new ri(r.indexOf(t.length - 1) > -1);
|
|
11170
11170
|
for (let s = 0; s < i.length; s++) {
|
|
11171
11171
|
let l = i[s][1].sort(bm);
|
|
11172
11172
|
o.next.push({ type: i[s][0], next: e[l.join(",")] || n(l) });
|
|
@@ -11249,7 +11249,7 @@ let Vd = class Om {
|
|
|
11249
11249
|
True for node types that allow no content.
|
|
11250
11250
|
*/
|
|
11251
11251
|
get isLeaf() {
|
|
11252
|
-
return this.contentMatch ==
|
|
11252
|
+
return this.contentMatch == ri.empty;
|
|
11253
11253
|
}
|
|
11254
11254
|
/**
|
|
11255
11255
|
True when this node is an atom, i.e. when it does not have
|
|
@@ -11490,7 +11490,7 @@ class Cm {
|
|
|
11490
11490
|
if (i in this.marks)
|
|
11491
11491
|
throw new RangeError(i + " can not be both a node and a mark");
|
|
11492
11492
|
let o = this.nodes[i], s = o.spec.content || "", l = o.spec.marks;
|
|
11493
|
-
if (o.contentMatch = r[s] || (r[s] =
|
|
11493
|
+
if (o.contentMatch = r[s] || (r[s] = ri.parse(s, this.nodes)), o.inlineContent = o.contentMatch.inlineContent, o.spec.linebreakReplacement) {
|
|
11494
11494
|
if (this.linebreakReplacement)
|
|
11495
11495
|
throw new RangeError("Multiple linebreak nodes defined");
|
|
11496
11496
|
if (!o.isInline || !o.isLeaf)
|
|
@@ -12074,7 +12074,7 @@ function zd(t, e) {
|
|
|
12074
12074
|
return !0;
|
|
12075
12075
|
}
|
|
12076
12076
|
}
|
|
12077
|
-
class
|
|
12077
|
+
class fi {
|
|
12078
12078
|
/**
|
|
12079
12079
|
Create a serializer. `nodes` should map node names to functions
|
|
12080
12080
|
that take a node and return a description of the corresponding
|
|
@@ -12161,7 +12161,7 @@ class di {
|
|
|
12161
12161
|
properties in a schema's node and mark specs.
|
|
12162
12162
|
*/
|
|
12163
12163
|
static fromSchema(e) {
|
|
12164
|
-
return e.cached.domSerializer || (e.cached.domSerializer = new
|
|
12164
|
+
return e.cached.domSerializer || (e.cached.domSerializer = new fi(this.nodesFromSchema(e), this.marksFromSchema(e)));
|
|
12165
12165
|
}
|
|
12166
12166
|
/**
|
|
12167
12167
|
Gather the serializers in a schema's node specs into an object.
|
|
@@ -12394,7 +12394,7 @@ class Zt {
|
|
|
12394
12394
|
}
|
|
12395
12395
|
}
|
|
12396
12396
|
Zt.empty = new Zt([]);
|
|
12397
|
-
class
|
|
12397
|
+
class Ei {
|
|
12398
12398
|
/**
|
|
12399
12399
|
Create a new mapping with the given position maps.
|
|
12400
12400
|
*/
|
|
@@ -12405,13 +12405,13 @@ class Ci {
|
|
|
12405
12405
|
Create a mapping that maps only through a part of this one.
|
|
12406
12406
|
*/
|
|
12407
12407
|
slice(e = 0, n = this.maps.length) {
|
|
12408
|
-
return new
|
|
12408
|
+
return new Ei(this.maps, this.mirror, e, n);
|
|
12409
12409
|
}
|
|
12410
12410
|
/**
|
|
12411
12411
|
@internal
|
|
12412
12412
|
*/
|
|
12413
12413
|
copy() {
|
|
12414
|
-
return new
|
|
12414
|
+
return new Ei(this.maps.slice(), this.mirror && this.mirror.slice(), this.from, this.to);
|
|
12415
12415
|
}
|
|
12416
12416
|
/**
|
|
12417
12417
|
Add a step map to the end of this mapping. If `mirrors` is
|
|
@@ -12462,7 +12462,7 @@ class Ci {
|
|
|
12462
12462
|
Create an inverted version of this mapping.
|
|
12463
12463
|
*/
|
|
12464
12464
|
invert() {
|
|
12465
|
-
let e = new
|
|
12465
|
+
let e = new Ei();
|
|
12466
12466
|
return e.appendMappingInverted(this), e;
|
|
12467
12467
|
}
|
|
12468
12468
|
/**
|
|
@@ -12688,7 +12688,7 @@ class ur extends At {
|
|
|
12688
12688
|
return new ur(this.pos, this.mark);
|
|
12689
12689
|
}
|
|
12690
12690
|
}
|
|
12691
|
-
return new
|
|
12691
|
+
return new Vi(this.pos, this.mark);
|
|
12692
12692
|
}
|
|
12693
12693
|
map(e) {
|
|
12694
12694
|
let n = e.mapResult(this.pos, 1);
|
|
@@ -12707,7 +12707,7 @@ class ur extends At {
|
|
|
12707
12707
|
}
|
|
12708
12708
|
}
|
|
12709
12709
|
At.jsonID("addNodeMark", ur);
|
|
12710
|
-
class
|
|
12710
|
+
class Vi extends At {
|
|
12711
12711
|
/**
|
|
12712
12712
|
Create a mark-removing step.
|
|
12713
12713
|
*/
|
|
@@ -12727,7 +12727,7 @@ class Ri extends At {
|
|
|
12727
12727
|
}
|
|
12728
12728
|
map(e) {
|
|
12729
12729
|
let n = e.mapResult(this.pos, 1);
|
|
12730
|
-
return n.deletedAfter ? null : new
|
|
12730
|
+
return n.deletedAfter ? null : new Vi(n.pos, this.mark);
|
|
12731
12731
|
}
|
|
12732
12732
|
toJSON() {
|
|
12733
12733
|
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -12738,10 +12738,10 @@ class Ri extends At {
|
|
|
12738
12738
|
static fromJSON(e, n) {
|
|
12739
12739
|
if (typeof n.pos != "number")
|
|
12740
12740
|
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
12741
|
-
return new
|
|
12741
|
+
return new Vi(n.pos, e.markFromJSON(n.mark));
|
|
12742
12742
|
}
|
|
12743
12743
|
}
|
|
12744
|
-
At.jsonID("removeNodeMark",
|
|
12744
|
+
At.jsonID("removeNodeMark", Vi);
|
|
12745
12745
|
class ht extends At {
|
|
12746
12746
|
/**
|
|
12747
12747
|
The given `slice` should fit the 'gap' between `from` and
|
|
@@ -12995,7 +12995,7 @@ function QC(t, e, n, r, i) {
|
|
|
12995
12995
|
let o = t.steps.length;
|
|
12996
12996
|
t.doc.nodesBetween(e, n, (s, l) => {
|
|
12997
12997
|
let a = typeof i == "function" ? i(s) : i;
|
|
12998
|
-
if (s.isTextblock && !s.hasMarkup(r, a) &&
|
|
12998
|
+
if (s.isTextblock && !s.hasMarkup(r, a) && e5(t.doc, t.mapping.slice(o).map(l), r)) {
|
|
12999
12999
|
let c = null;
|
|
13000
13000
|
if (r.schema.linebreakReplacement) {
|
|
13001
13001
|
let h = r.whitespace == "pre", p = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
|
|
@@ -13027,11 +13027,11 @@ function Im(t, e, n, r) {
|
|
|
13027
13027
|
}
|
|
13028
13028
|
});
|
|
13029
13029
|
}
|
|
13030
|
-
function
|
|
13030
|
+
function e5(t, e, n) {
|
|
13031
13031
|
let r = t.resolve(e), i = r.index();
|
|
13032
13032
|
return r.parent.canReplaceWith(i, i + 1, n);
|
|
13033
13033
|
}
|
|
13034
|
-
function
|
|
13034
|
+
function t5(t, e, n, r, i) {
|
|
13035
13035
|
let o = t.doc.nodeAt(e);
|
|
13036
13036
|
if (!o)
|
|
13037
13037
|
throw new RangeError("No node at given position");
|
|
@@ -13060,7 +13060,7 @@ function Kn(t, e, n = 1, r) {
|
|
|
13060
13060
|
let l = i.indexAfter(o), a = r && r[0];
|
|
13061
13061
|
return i.node(o).canReplaceWith(l, l, a ? a.type : i.node(o + 1).type);
|
|
13062
13062
|
}
|
|
13063
|
-
function
|
|
13063
|
+
function n5(t, e, n = 1, r) {
|
|
13064
13064
|
let i = t.doc.resolve(e), o = ee.empty, s = ee.empty;
|
|
13065
13065
|
for (let l = i.depth, a = i.depth - n, c = n - 1; l > a; l--, c--) {
|
|
13066
13066
|
o = ee.from(i.node(l).copy(o));
|
|
@@ -13073,7 +13073,7 @@ function Tr(t, e) {
|
|
|
13073
13073
|
let n = t.resolve(e), r = n.index();
|
|
13074
13074
|
return $m(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
|
|
13075
13075
|
}
|
|
13076
|
-
function
|
|
13076
|
+
function r5(t, e) {
|
|
13077
13077
|
e.content.size || t.type.compatibleContent(e.type);
|
|
13078
13078
|
let n = t.contentMatchAt(t.childCount), { linebreakReplacement: r } = t.type.schema;
|
|
13079
13079
|
for (let i = 0; i < e.childCount; i++) {
|
|
@@ -13084,7 +13084,7 @@ function rE(t, e) {
|
|
|
13084
13084
|
return n.validEnd;
|
|
13085
13085
|
}
|
|
13086
13086
|
function $m(t, e) {
|
|
13087
|
-
return !!(t && e && !t.isLeaf &&
|
|
13087
|
+
return !!(t && e && !t.isLeaf && r5(t, e));
|
|
13088
13088
|
}
|
|
13089
13089
|
function bl(t, e, n = -1) {
|
|
13090
13090
|
let r = t.resolve(e);
|
|
@@ -13097,7 +13097,7 @@ function bl(t, e, n = -1) {
|
|
|
13097
13097
|
e = n < 0 ? r.before(i) : r.after(i);
|
|
13098
13098
|
}
|
|
13099
13099
|
}
|
|
13100
|
-
function
|
|
13100
|
+
function i5(t, e, n) {
|
|
13101
13101
|
let r = null, { linebreakReplacement: i } = t.doc.type.schema, o = t.doc.resolve(e - n), s = o.node().type;
|
|
13102
13102
|
if (i && s.inlineContent) {
|
|
13103
13103
|
let u = s.whitespace == "pre", d = !!s.contentMatch.matchType(i);
|
|
@@ -13116,7 +13116,7 @@ function iE(t, e, n) {
|
|
|
13116
13116
|
}
|
|
13117
13117
|
return t;
|
|
13118
13118
|
}
|
|
13119
|
-
function
|
|
13119
|
+
function o5(t, e, n) {
|
|
13120
13120
|
let r = t.resolve(e);
|
|
13121
13121
|
if (r.parent.canReplaceWith(r.index(), r.index(), n))
|
|
13122
13122
|
return e;
|
|
@@ -13163,12 +13163,12 @@ function wl(t, e, n = e, r = he.empty) {
|
|
|
13163
13163
|
if (e == n && !r.size)
|
|
13164
13164
|
return null;
|
|
13165
13165
|
let i = t.resolve(e), o = t.resolve(n);
|
|
13166
|
-
return Rm(i, o, r) ? new ht(e, n, r) : new
|
|
13166
|
+
return Rm(i, o, r) ? new ht(e, n, r) : new s5(i, o, r).fit();
|
|
13167
13167
|
}
|
|
13168
13168
|
function Rm(t, e, n) {
|
|
13169
13169
|
return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
|
|
13170
13170
|
}
|
|
13171
|
-
class
|
|
13171
|
+
class s5 {
|
|
13172
13172
|
constructor(e, n, r) {
|
|
13173
13173
|
this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = ee.empty;
|
|
13174
13174
|
for (let i = 0; i <= e.depth; i++) {
|
|
@@ -13337,18 +13337,18 @@ function Gl(t, e, n, r, i) {
|
|
|
13337
13337
|
if (s == o.childCount && !n.compatibleContent(o.type))
|
|
13338
13338
|
return null;
|
|
13339
13339
|
let l = r.fillBefore(o.content, !0, s);
|
|
13340
|
-
return l && !
|
|
13340
|
+
return l && !l5(n, o.content, s) ? l : null;
|
|
13341
13341
|
}
|
|
13342
|
-
function
|
|
13342
|
+
function l5(t, e, n) {
|
|
13343
13343
|
for (let r = n; r < e.childCount; r++)
|
|
13344
13344
|
if (!t.allowsMarks(e.child(r).marks))
|
|
13345
13345
|
return !0;
|
|
13346
13346
|
return !1;
|
|
13347
13347
|
}
|
|
13348
|
-
function
|
|
13348
|
+
function a5(t) {
|
|
13349
13349
|
return t.spec.defining || t.spec.definingForContent;
|
|
13350
13350
|
}
|
|
13351
|
-
function
|
|
13351
|
+
function c5(t, e, n, r) {
|
|
13352
13352
|
if (!r.size)
|
|
13353
13353
|
return t.deleteRange(e, n);
|
|
13354
13354
|
let i = t.doc.resolve(e), o = t.doc.resolve(n);
|
|
@@ -13372,7 +13372,7 @@ function cE(t, e, n, r) {
|
|
|
13372
13372
|
f = p.content;
|
|
13373
13373
|
}
|
|
13374
13374
|
for (let f = u - 1; f >= 0; f--) {
|
|
13375
|
-
let h = c[f], p =
|
|
13375
|
+
let h = c[f], p = a5(h.type);
|
|
13376
13376
|
if (p && !h.sameMarkup(i.node(Math.abs(l) - 1)))
|
|
13377
13377
|
u = f;
|
|
13378
13378
|
else if (p || !h.type.isTextblock)
|
|
@@ -13406,14 +13406,14 @@ function Bm(t, e, n, r, i) {
|
|
|
13406
13406
|
}
|
|
13407
13407
|
return t;
|
|
13408
13408
|
}
|
|
13409
|
-
function
|
|
13409
|
+
function u5(t, e, n, r) {
|
|
13410
13410
|
if (!r.isInline && e == n && t.doc.resolve(e).parent.content.size) {
|
|
13411
|
-
let i =
|
|
13411
|
+
let i = o5(t.doc, e, r.type);
|
|
13412
13412
|
i != null && (e = n = i);
|
|
13413
13413
|
}
|
|
13414
13414
|
t.replaceRange(e, n, new he(ee.from(r), 0, 0));
|
|
13415
13415
|
}
|
|
13416
|
-
function
|
|
13416
|
+
function d5(t, e, n) {
|
|
13417
13417
|
let r = t.doc.resolve(e), i = t.doc.resolve(n), o = Fm(r, i);
|
|
13418
13418
|
for (let s = 0; s < o.length; s++) {
|
|
13419
13419
|
let l = o[s], a = s == o.length - 1;
|
|
@@ -13437,7 +13437,7 @@ function Fm(t, e) {
|
|
|
13437
13437
|
}
|
|
13438
13438
|
return n;
|
|
13439
13439
|
}
|
|
13440
|
-
class
|
|
13440
|
+
class Ti extends At {
|
|
13441
13441
|
/**
|
|
13442
13442
|
Construct an attribute step.
|
|
13443
13443
|
*/
|
|
@@ -13459,11 +13459,11 @@ class Ei extends At {
|
|
|
13459
13459
|
return Zt.empty;
|
|
13460
13460
|
}
|
|
13461
13461
|
invert(e) {
|
|
13462
|
-
return new
|
|
13462
|
+
return new Ti(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
13463
13463
|
}
|
|
13464
13464
|
map(e) {
|
|
13465
13465
|
let n = e.mapResult(this.pos, 1);
|
|
13466
|
-
return n.deletedAfter ? null : new
|
|
13466
|
+
return n.deletedAfter ? null : new Ti(n.pos, this.attr, this.value);
|
|
13467
13467
|
}
|
|
13468
13468
|
toJSON() {
|
|
13469
13469
|
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
@@ -13471,10 +13471,10 @@ class Ei extends At {
|
|
|
13471
13471
|
static fromJSON(e, n) {
|
|
13472
13472
|
if (typeof n.pos != "number" || typeof n.attr != "string")
|
|
13473
13473
|
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
13474
|
-
return new
|
|
13474
|
+
return new Ti(n.pos, n.attr, n.value);
|
|
13475
13475
|
}
|
|
13476
13476
|
}
|
|
13477
|
-
At.jsonID("attr",
|
|
13477
|
+
At.jsonID("attr", Ti);
|
|
13478
13478
|
class $o extends At {
|
|
13479
13479
|
/**
|
|
13480
13480
|
Construct an attribute step.
|
|
@@ -13509,21 +13509,21 @@ class $o extends At {
|
|
|
13509
13509
|
}
|
|
13510
13510
|
}
|
|
13511
13511
|
At.jsonID("docAttr", $o);
|
|
13512
|
-
let
|
|
13512
|
+
let Bi = class extends Error {
|
|
13513
13513
|
};
|
|
13514
|
-
|
|
13514
|
+
Bi = function t(e) {
|
|
13515
13515
|
let n = Error.call(this, e);
|
|
13516
13516
|
return n.__proto__ = t.prototype, n;
|
|
13517
13517
|
};
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
class
|
|
13518
|
+
Bi.prototype = Object.create(Error.prototype);
|
|
13519
|
+
Bi.prototype.constructor = Bi;
|
|
13520
|
+
Bi.prototype.name = "TransformError";
|
|
13521
|
+
class f5 {
|
|
13522
13522
|
/**
|
|
13523
13523
|
Create a transform that starts with the given document.
|
|
13524
13524
|
*/
|
|
13525
13525
|
constructor(e) {
|
|
13526
|
-
this.doc = e, this.steps = [], this.docs = [], this.mapping = new
|
|
13526
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new Ei();
|
|
13527
13527
|
}
|
|
13528
13528
|
/**
|
|
13529
13529
|
The starting document.
|
|
@@ -13538,7 +13538,7 @@ class fE {
|
|
|
13538
13538
|
step(e) {
|
|
13539
13539
|
let n = this.maybeStep(e);
|
|
13540
13540
|
if (n.failed)
|
|
13541
|
-
throw new
|
|
13541
|
+
throw new Bi(n.failed);
|
|
13542
13542
|
return this;
|
|
13543
13543
|
}
|
|
13544
13544
|
/**
|
|
@@ -13609,7 +13609,7 @@ class fE {
|
|
|
13609
13609
|
control over what happens.
|
|
13610
13610
|
*/
|
|
13611
13611
|
replaceRange(e, n, r) {
|
|
13612
|
-
return
|
|
13612
|
+
return c5(this, e, n, r), this;
|
|
13613
13613
|
}
|
|
13614
13614
|
/**
|
|
13615
13615
|
Replace the given range with a node, but use `from` and `to` as
|
|
@@ -13621,14 +13621,14 @@ class fE {
|
|
|
13621
13621
|
that parent node.
|
|
13622
13622
|
*/
|
|
13623
13623
|
replaceRangeWith(e, n, r) {
|
|
13624
|
-
return
|
|
13624
|
+
return u5(this, e, n, r), this;
|
|
13625
13625
|
}
|
|
13626
13626
|
/**
|
|
13627
13627
|
Delete the given range, expanding it to cover fully covered
|
|
13628
13628
|
parent nodes until a valid replace is found.
|
|
13629
13629
|
*/
|
|
13630
13630
|
deleteRange(e, n) {
|
|
13631
|
-
return
|
|
13631
|
+
return d5(this, e, n), this;
|
|
13632
13632
|
}
|
|
13633
13633
|
/**
|
|
13634
13634
|
Split the content in the given range off from its parent, if there
|
|
@@ -13645,7 +13645,7 @@ class fE {
|
|
|
13645
13645
|
last and first siblings are also joined, and so on.
|
|
13646
13646
|
*/
|
|
13647
13647
|
join(e, n = 1) {
|
|
13648
|
-
return
|
|
13648
|
+
return i5(this, e, n), this;
|
|
13649
13649
|
}
|
|
13650
13650
|
/**
|
|
13651
13651
|
Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
|
|
@@ -13667,7 +13667,7 @@ class fE {
|
|
|
13667
13667
|
When `type` isn't given, the existing node type is preserved,
|
|
13668
13668
|
*/
|
|
13669
13669
|
setNodeMarkup(e, n, r = null, i) {
|
|
13670
|
-
return
|
|
13670
|
+
return t5(this, e, n, r, i), this;
|
|
13671
13671
|
}
|
|
13672
13672
|
/**
|
|
13673
13673
|
Set a single attribute on a given node to a new value.
|
|
@@ -13675,7 +13675,7 @@ class fE {
|
|
|
13675
13675
|
to set attributes on the document itself.
|
|
13676
13676
|
*/
|
|
13677
13677
|
setNodeAttribute(e, n, r) {
|
|
13678
|
-
return this.step(new
|
|
13678
|
+
return this.step(new Ti(e, n, r)), this;
|
|
13679
13679
|
}
|
|
13680
13680
|
/**
|
|
13681
13681
|
Set a single attribute on the document to a new value.
|
|
@@ -13701,7 +13701,7 @@ class fE {
|
|
|
13701
13701
|
if (n = n.isInSet(r.marks), !n)
|
|
13702
13702
|
return this;
|
|
13703
13703
|
}
|
|
13704
|
-
return this.step(new
|
|
13704
|
+
return this.step(new Vi(e, n)), this;
|
|
13705
13705
|
}
|
|
13706
13706
|
/**
|
|
13707
13707
|
Split the node at the given position, and optionally, if `depth` is
|
|
@@ -13711,7 +13711,7 @@ class fE {
|
|
|
13711
13711
|
use after the split.
|
|
13712
13712
|
*/
|
|
13713
13713
|
split(e, n = 1, r) {
|
|
13714
|
-
return
|
|
13714
|
+
return n5(this, e, n, r), this;
|
|
13715
13715
|
}
|
|
13716
13716
|
/**
|
|
13717
13717
|
Add the given mark to the inline content between `from` and `to`.
|
|
@@ -13746,7 +13746,7 @@ class Ie {
|
|
|
13746
13746
|
`$head`.
|
|
13747
13747
|
*/
|
|
13748
13748
|
constructor(e, n, r) {
|
|
13749
|
-
this.$anchor = e, this.$head = n, this.ranges = r || [new
|
|
13749
|
+
this.$anchor = e, this.$head = n, this.ranges = r || [new h5(e.min(n), e.max(n))];
|
|
13750
13750
|
}
|
|
13751
13751
|
/**
|
|
13752
13752
|
The selection's anchor, as an unresolved position.
|
|
@@ -13833,11 +13833,11 @@ class Ie {
|
|
|
13833
13833
|
found.
|
|
13834
13834
|
*/
|
|
13835
13835
|
static findFrom(e, n, r = !1) {
|
|
13836
|
-
let i = e.parent.inlineContent ? new _e(e) :
|
|
13836
|
+
let i = e.parent.inlineContent ? new _e(e) : vi(e.node(0), e.parent, e.pos, e.index(), n, r);
|
|
13837
13837
|
if (i)
|
|
13838
13838
|
return i;
|
|
13839
13839
|
for (let o = e.depth - 1; o >= 0; o--) {
|
|
13840
|
-
let s = n < 0 ?
|
|
13840
|
+
let s = n < 0 ? vi(e.node(0), e.node(o), e.before(o + 1), e.index(o), n, r) : vi(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, n, r);
|
|
13841
13841
|
if (s)
|
|
13842
13842
|
return s;
|
|
13843
13843
|
}
|
|
@@ -13858,14 +13858,14 @@ class Ie {
|
|
|
13858
13858
|
exists.
|
|
13859
13859
|
*/
|
|
13860
13860
|
static atStart(e) {
|
|
13861
|
-
return
|
|
13861
|
+
return vi(e, e, 0, 0, 1) || new nn(e);
|
|
13862
13862
|
}
|
|
13863
13863
|
/**
|
|
13864
13864
|
Find the cursor or leaf node selection closest to the end of the
|
|
13865
13865
|
given document.
|
|
13866
13866
|
*/
|
|
13867
13867
|
static atEnd(e) {
|
|
13868
|
-
return
|
|
13868
|
+
return vi(e, e, e.content.size, e.childCount, -1) || new nn(e);
|
|
13869
13869
|
}
|
|
13870
13870
|
/**
|
|
13871
13871
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -13904,7 +13904,7 @@ class Ie {
|
|
|
13904
13904
|
}
|
|
13905
13905
|
}
|
|
13906
13906
|
Ie.prototype.visible = !0;
|
|
13907
|
-
class
|
|
13907
|
+
class h5 {
|
|
13908
13908
|
/**
|
|
13909
13909
|
Create a range.
|
|
13910
13910
|
*/
|
|
@@ -14092,11 +14092,11 @@ class nn extends Ie {
|
|
|
14092
14092
|
return e instanceof nn;
|
|
14093
14093
|
}
|
|
14094
14094
|
getBookmark() {
|
|
14095
|
-
return
|
|
14095
|
+
return p5;
|
|
14096
14096
|
}
|
|
14097
14097
|
}
|
|
14098
14098
|
Ie.jsonID("all", nn);
|
|
14099
|
-
const
|
|
14099
|
+
const p5 = {
|
|
14100
14100
|
map() {
|
|
14101
14101
|
return this;
|
|
14102
14102
|
},
|
|
@@ -14104,7 +14104,7 @@ const pE = {
|
|
|
14104
14104
|
return new nn(t);
|
|
14105
14105
|
}
|
|
14106
14106
|
};
|
|
14107
|
-
function
|
|
14107
|
+
function vi(t, e, n, r, i, o = !1) {
|
|
14108
14108
|
if (e.inlineContent)
|
|
14109
14109
|
return _e.create(t, n);
|
|
14110
14110
|
for (let s = r - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
|
|
@@ -14113,7 +14113,7 @@ function yi(t, e, n, r, i, o = !1) {
|
|
|
14113
14113
|
if (!o && xe.isSelectable(l))
|
|
14114
14114
|
return xe.create(t, n - (i < 0 ? l.nodeSize : 0));
|
|
14115
14115
|
} else {
|
|
14116
|
-
let a =
|
|
14116
|
+
let a = vi(t, l, n + i, i < 0 ? l.childCount : 0, i, o);
|
|
14117
14117
|
if (a)
|
|
14118
14118
|
return a;
|
|
14119
14119
|
}
|
|
@@ -14134,7 +14134,7 @@ function Jd(t, e, n) {
|
|
|
14134
14134
|
}), t.setSelection(Ie.near(t.doc.resolve(s), n));
|
|
14135
14135
|
}
|
|
14136
14136
|
const Zd = 1, Xd = 2, Qd = 4;
|
|
14137
|
-
class
|
|
14137
|
+
class m5 extends f5 {
|
|
14138
14138
|
/**
|
|
14139
14139
|
@internal
|
|
14140
14140
|
*/
|
|
@@ -14293,7 +14293,7 @@ class fo {
|
|
|
14293
14293
|
this.name = e, this.init = ef(n.init, r), this.apply = ef(n.apply, r);
|
|
14294
14294
|
}
|
|
14295
14295
|
}
|
|
14296
|
-
const
|
|
14296
|
+
const g5 = [
|
|
14297
14297
|
new fo("doc", {
|
|
14298
14298
|
init(t) {
|
|
14299
14299
|
return t.doc || t.schema.topNodeType.createAndFill();
|
|
@@ -14329,14 +14329,14 @@ const gE = [
|
|
|
14329
14329
|
];
|
|
14330
14330
|
class Zl {
|
|
14331
14331
|
constructor(e, n) {
|
|
14332
|
-
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields =
|
|
14332
|
+
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = g5.slice(), n && n.forEach((r) => {
|
|
14333
14333
|
if (this.pluginsByKey[r.key])
|
|
14334
14334
|
throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
|
|
14335
14335
|
this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new fo(r.key, r.spec.state, r));
|
|
14336
14336
|
});
|
|
14337
14337
|
}
|
|
14338
14338
|
}
|
|
14339
|
-
class
|
|
14339
|
+
class Si {
|
|
14340
14340
|
/**
|
|
14341
14341
|
@internal
|
|
14342
14342
|
*/
|
|
@@ -14411,7 +14411,7 @@ class xi {
|
|
|
14411
14411
|
applyInner(e) {
|
|
14412
14412
|
if (!e.before.eq(this.doc))
|
|
14413
14413
|
throw new RangeError("Applying a mismatched transaction");
|
|
14414
|
-
let n = new
|
|
14414
|
+
let n = new Si(this.config), r = this.config.fields;
|
|
14415
14415
|
for (let i = 0; i < r.length; i++) {
|
|
14416
14416
|
let o = r[i];
|
|
14417
14417
|
n[o.name] = o.apply(e, this[o.name], this, n);
|
|
@@ -14422,13 +14422,13 @@ class xi {
|
|
|
14422
14422
|
Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
|
|
14423
14423
|
*/
|
|
14424
14424
|
get tr() {
|
|
14425
|
-
return new
|
|
14425
|
+
return new m5(this);
|
|
14426
14426
|
}
|
|
14427
14427
|
/**
|
|
14428
14428
|
Create a new state.
|
|
14429
14429
|
*/
|
|
14430
14430
|
static create(e) {
|
|
14431
|
-
let n = new Zl(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new
|
|
14431
|
+
let n = new Zl(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Si(n);
|
|
14432
14432
|
for (let i = 0; i < n.fields.length; i++)
|
|
14433
14433
|
r[n.fields[i].name] = n.fields[i].init(e, r);
|
|
14434
14434
|
return r;
|
|
@@ -14442,7 +14442,7 @@ class xi {
|
|
|
14442
14442
|
configuration object..
|
|
14443
14443
|
*/
|
|
14444
14444
|
reconfigure(e) {
|
|
14445
|
-
let n = new Zl(this.schema, e.plugins), r = n.fields, i = new
|
|
14445
|
+
let n = new Zl(this.schema, e.plugins), r = n.fields, i = new Si(n);
|
|
14446
14446
|
for (let o = 0; o < r.length; o++) {
|
|
14447
14447
|
let s = r[o].name;
|
|
14448
14448
|
i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
|
|
@@ -14479,7 +14479,7 @@ class xi {
|
|
|
14479
14479
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
14480
14480
|
if (!e.schema)
|
|
14481
14481
|
throw new RangeError("Required config field 'schema' missing");
|
|
14482
|
-
let i = new Zl(e.schema, e.plugins), o = new
|
|
14482
|
+
let i = new Zl(e.schema, e.plugins), o = new Si(i);
|
|
14483
14483
|
return i.fields.forEach((s) => {
|
|
14484
14484
|
if (s.name == "doc")
|
|
14485
14485
|
o.doc = pr.fromJSON(e.schema, n.doc);
|
|
@@ -14559,18 +14559,18 @@ let Za = null;
|
|
|
14559
14559
|
const Hn = function(t, e, n) {
|
|
14560
14560
|
let r = Za || (Za = document.createRange());
|
|
14561
14561
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
14562
|
-
},
|
|
14562
|
+
}, y5 = function() {
|
|
14563
14563
|
Za = null;
|
|
14564
|
-
},
|
|
14564
|
+
}, ii = function(t, e, n, r) {
|
|
14565
14565
|
return n && (tf(t, e, n, r, -1) || tf(t, e, n, r, 1));
|
|
14566
|
-
},
|
|
14566
|
+
}, v5 = /^(img|br|input|textarea|hr)$/i;
|
|
14567
14567
|
function tf(t, e, n, r, i) {
|
|
14568
14568
|
for (; ; ) {
|
|
14569
14569
|
if (t == n && e == r)
|
|
14570
14570
|
return !0;
|
|
14571
14571
|
if (e == (i < 0 ? 0 : an(t))) {
|
|
14572
14572
|
let o = t.parentNode;
|
|
14573
|
-
if (!o || o.nodeType != 1 || es(t) ||
|
|
14573
|
+
if (!o || o.nodeType != 1 || es(t) || v5.test(t.nodeName) || t.contentEditable == "false")
|
|
14574
14574
|
return !1;
|
|
14575
14575
|
e = Ot(t) + (i < 0 ? 0 : 1), t = o;
|
|
14576
14576
|
} else if (t.nodeType == 1) {
|
|
@@ -14584,7 +14584,7 @@ function tf(t, e, n, r, i) {
|
|
|
14584
14584
|
function an(t) {
|
|
14585
14585
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
14586
14586
|
}
|
|
14587
|
-
function
|
|
14587
|
+
function b5(t, e) {
|
|
14588
14588
|
for (; ; ) {
|
|
14589
14589
|
if (t.nodeType == 3 && e)
|
|
14590
14590
|
return t;
|
|
@@ -14598,7 +14598,7 @@ function bE(t, e) {
|
|
|
14598
14598
|
return null;
|
|
14599
14599
|
}
|
|
14600
14600
|
}
|
|
14601
|
-
function
|
|
14601
|
+
function w5(t, e) {
|
|
14602
14602
|
for (; ; ) {
|
|
14603
14603
|
if (t.nodeType == 3 && e < t.nodeValue.length)
|
|
14604
14604
|
return t;
|
|
@@ -14612,7 +14612,7 @@ function wE(t, e) {
|
|
|
14612
14612
|
return null;
|
|
14613
14613
|
}
|
|
14614
14614
|
}
|
|
14615
|
-
function
|
|
14615
|
+
function k5(t, e, n) {
|
|
14616
14616
|
for (let r = e == 0, i = e == an(t); r || i; ) {
|
|
14617
14617
|
if (t == n)
|
|
14618
14618
|
return !0;
|
|
@@ -14629,19 +14629,19 @@ function es(t) {
|
|
|
14629
14629
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
14630
14630
|
}
|
|
14631
14631
|
const xl = function(t) {
|
|
14632
|
-
return t.focusNode &&
|
|
14632
|
+
return t.focusNode && ii(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
14633
14633
|
};
|
|
14634
14634
|
function Rr(t, e) {
|
|
14635
14635
|
let n = document.createEvent("Event");
|
|
14636
14636
|
return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
|
|
14637
14637
|
}
|
|
14638
|
-
function
|
|
14638
|
+
function x5(t) {
|
|
14639
14639
|
let e = t.activeElement;
|
|
14640
14640
|
for (; e && e.shadowRoot; )
|
|
14641
14641
|
e = e.shadowRoot.activeElement;
|
|
14642
14642
|
return e;
|
|
14643
14643
|
}
|
|
14644
|
-
function
|
|
14644
|
+
function S5(t, e, n) {
|
|
14645
14645
|
if (t.caretPositionFromPoint)
|
|
14646
14646
|
try {
|
|
14647
14647
|
let r = t.caretPositionFromPoint(e, n);
|
|
@@ -14657,8 +14657,8 @@ function SE(t, e, n) {
|
|
|
14657
14657
|
}
|
|
14658
14658
|
const In = typeof navigator < "u" ? navigator : null, nf = typeof document < "u" ? document : null, Mr = In && In.userAgent || "", Xa = /Edge\/(\d+)/.exec(Mr), zm = /MSIE \d/.exec(Mr), Qa = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Mr), Yt = !!(zm || Qa || Xa), gr = zm ? document.documentMode : Qa ? +Qa[1] : Xa ? +Xa[1] : 0, xn = !Yt && /gecko\/(\d+)/i.test(Mr);
|
|
14659
14659
|
xn && +(/Firefox\/(\d+)/.exec(Mr) || [0, 0])[1];
|
|
14660
|
-
const ec = !Yt && /Chrome\/(\d+)/.exec(Mr), _t = !!ec, Wm = ec ? +ec[1] : 0, Pt = !Yt && !!In && /Apple Computer/.test(In.vendor),
|
|
14661
|
-
function
|
|
14660
|
+
const ec = !Yt && /Chrome\/(\d+)/.exec(Mr), _t = !!ec, Wm = ec ? +ec[1] : 0, Pt = !Yt && !!In && /Apple Computer/.test(In.vendor), Fi = Pt && (/Mobile\/\w+/.test(Mr) || !!In && In.maxTouchPoints > 2), sn = Fi || (In ? /Mac/.test(In.platform) : !1), O5 = In ? /Win/.test(In.platform) : !1, Yn = /Android \d/.test(Mr), ts = !!nf && "webkitFontSmoothing" in nf.documentElement.style, C5 = ts ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
14661
|
+
function E5(t) {
|
|
14662
14662
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
14663
14663
|
return e ? {
|
|
14664
14664
|
left: 0,
|
|
@@ -14675,7 +14675,7 @@ function EE(t) {
|
|
|
14675
14675
|
function Fn(t, e) {
|
|
14676
14676
|
return typeof t == "number" ? t : t[e];
|
|
14677
14677
|
}
|
|
14678
|
-
function
|
|
14678
|
+
function T5(t) {
|
|
14679
14679
|
let e = t.getBoundingClientRect(), n = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1;
|
|
14680
14680
|
return {
|
|
14681
14681
|
left: e.left,
|
|
@@ -14689,7 +14689,7 @@ function rf(t, e, n) {
|
|
|
14689
14689
|
for (let s = n || t.dom; s; s = Po(s)) {
|
|
14690
14690
|
if (s.nodeType != 1)
|
|
14691
14691
|
continue;
|
|
14692
|
-
let l = s, a = l == o.body, c = a ?
|
|
14692
|
+
let l = s, a = l == o.body, c = a ? E5(o) : T5(l), u = 0, d = 0;
|
|
14693
14693
|
if (e.top < c.top + Fn(r, "top") ? d = -(c.top - e.top + Fn(i, "top")) : e.bottom > c.bottom - Fn(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Fn(i, "top") - c.top : e.bottom - c.bottom + Fn(i, "bottom")), e.left < c.left + Fn(r, "left") ? u = -(c.left - e.left + Fn(i, "left")) : e.right > c.right - Fn(r, "right") && (u = e.right - c.right + Fn(i, "right")), u || d)
|
|
14694
14694
|
if (a)
|
|
14695
14695
|
o.defaultView.scrollBy(u, d);
|
|
@@ -14703,7 +14703,7 @@ function rf(t, e, n) {
|
|
|
14703
14703
|
break;
|
|
14704
14704
|
}
|
|
14705
14705
|
}
|
|
14706
|
-
function
|
|
14706
|
+
function M5(t) {
|
|
14707
14707
|
let e = t.dom.getBoundingClientRect(), n = Math.max(0, e.top), r, i;
|
|
14708
14708
|
for (let o = (e.left + e.right) / 2, s = n + 1; s < Math.min(innerHeight, e.bottom); s += 5) {
|
|
14709
14709
|
let l = t.root.elementFromPoint(o, s);
|
|
@@ -14723,7 +14723,7 @@ function Um(t) {
|
|
|
14723
14723
|
;
|
|
14724
14724
|
return e;
|
|
14725
14725
|
}
|
|
14726
|
-
function
|
|
14726
|
+
function _5({ refDOM: t, refTop: e, stack: n }) {
|
|
14727
14727
|
let r = t ? t.getBoundingClientRect().top : 0;
|
|
14728
14728
|
Ym(n, r == 0 ? 0 : r - e);
|
|
14729
14729
|
}
|
|
@@ -14733,18 +14733,18 @@ function Ym(t, e) {
|
|
|
14733
14733
|
r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != o && (r.scrollLeft = o);
|
|
14734
14734
|
}
|
|
14735
14735
|
}
|
|
14736
|
-
let
|
|
14737
|
-
function
|
|
14736
|
+
let pi = null;
|
|
14737
|
+
function N5(t) {
|
|
14738
14738
|
if (t.setActive)
|
|
14739
14739
|
return t.setActive();
|
|
14740
|
-
if (
|
|
14741
|
-
return t.focus(
|
|
14740
|
+
if (pi)
|
|
14741
|
+
return t.focus(pi);
|
|
14742
14742
|
let e = Um(t);
|
|
14743
|
-
t.focus(
|
|
14743
|
+
t.focus(pi == null ? {
|
|
14744
14744
|
get preventScroll() {
|
|
14745
|
-
return
|
|
14745
|
+
return pi = { preventScroll: !0 }, !0;
|
|
14746
14746
|
}
|
|
14747
|
-
} : void 0),
|
|
14747
|
+
} : void 0), pi || (pi = !1, Ym(e, 0));
|
|
14748
14748
|
}
|
|
14749
14749
|
function qm(t, e) {
|
|
14750
14750
|
let n, r = 2e8, i, o = 0, s = e.top, l = e.top, a, c;
|
|
@@ -14772,9 +14772,9 @@ function qm(t, e) {
|
|
|
14772
14772
|
!n && (e.left >= p.right && e.top >= p.top || e.left >= p.left && e.top >= p.bottom) && (o = d + 1);
|
|
14773
14773
|
}
|
|
14774
14774
|
}
|
|
14775
|
-
return !n && a && (n = a, i = c, r = 0), n && n.nodeType == 3 ?
|
|
14775
|
+
return !n && a && (n = a, i = c, r = 0), n && n.nodeType == 3 ? A5(n, i) : !n || r && n.nodeType == 1 ? { node: t, offset: o } : qm(n, i);
|
|
14776
14776
|
}
|
|
14777
|
-
function
|
|
14777
|
+
function A5(t, e) {
|
|
14778
14778
|
let n = t.nodeValue.length, r = document.createRange();
|
|
14779
14779
|
for (let i = 0; i < n; i++) {
|
|
14780
14780
|
r.setEnd(t, i + 1), r.setStart(t, i);
|
|
@@ -14787,11 +14787,11 @@ function AE(t, e) {
|
|
|
14787
14787
|
function zc(t, e) {
|
|
14788
14788
|
return t.left >= e.left - 1 && t.left <= e.right + 1 && t.top >= e.top - 1 && t.top <= e.bottom + 1;
|
|
14789
14789
|
}
|
|
14790
|
-
function
|
|
14790
|
+
function L5(t, e) {
|
|
14791
14791
|
let n = t.parentNode;
|
|
14792
14792
|
return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
|
|
14793
14793
|
}
|
|
14794
|
-
function
|
|
14794
|
+
function D5(t, e, n) {
|
|
14795
14795
|
let { node: r, offset: i } = qm(e, n), o = -1;
|
|
14796
14796
|
if (r.nodeType == 1 && !r.firstChild) {
|
|
14797
14797
|
let s = r.getBoundingClientRect();
|
|
@@ -14799,7 +14799,7 @@ function DE(t, e, n) {
|
|
|
14799
14799
|
}
|
|
14800
14800
|
return t.docView.posFromDOM(r, i, o);
|
|
14801
14801
|
}
|
|
14802
|
-
function
|
|
14802
|
+
function I5(t, e, n, r) {
|
|
14803
14803
|
let i = -1;
|
|
14804
14804
|
for (let o = e, s = !1; o != t.dom; ) {
|
|
14805
14805
|
let l = t.docView.nearestDesc(o, !0), a;
|
|
@@ -14830,8 +14830,8 @@ function Km(t, e, n) {
|
|
|
14830
14830
|
}
|
|
14831
14831
|
return t;
|
|
14832
14832
|
}
|
|
14833
|
-
function $
|
|
14834
|
-
let n = t.dom.ownerDocument, r, i = 0, o =
|
|
14833
|
+
function $5(t, e) {
|
|
14834
|
+
let n = t.dom.ownerDocument, r, i = 0, o = S5(n, e.left, e.top);
|
|
14835
14835
|
o && ({ node: r, offset: i } = o);
|
|
14836
14836
|
let s = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), l;
|
|
14837
14837
|
if (!s || !t.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
|
|
@@ -14842,15 +14842,15 @@ function $E(t, e) {
|
|
|
14842
14842
|
if (Pt)
|
|
14843
14843
|
for (let c = s; r && c; c = Po(c))
|
|
14844
14844
|
c.draggable && (r = void 0);
|
|
14845
|
-
if (s =
|
|
14845
|
+
if (s = L5(s, e), r) {
|
|
14846
14846
|
if (xn && r.nodeType == 1 && (i = Math.min(i, r.childNodes.length), i < r.childNodes.length)) {
|
|
14847
14847
|
let u = r.childNodes[i], d;
|
|
14848
14848
|
u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && i++;
|
|
14849
14849
|
}
|
|
14850
14850
|
let c;
|
|
14851
|
-
ts && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == t.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = t.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l =
|
|
14851
|
+
ts && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == t.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = t.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = I5(t, r, i, e));
|
|
14852
14852
|
}
|
|
14853
|
-
l == null && (l =
|
|
14853
|
+
l == null && (l = D5(t, s, e));
|
|
14854
14854
|
let a = t.docView.nearestDesc(s, !0);
|
|
14855
14855
|
return { pos: l, inside: a ? a.posAtStart - a.border : -1 };
|
|
14856
14856
|
}
|
|
@@ -14866,11 +14866,11 @@ function ir(t, e) {
|
|
|
14866
14866
|
}
|
|
14867
14867
|
return Array.prototype.find.call(n, of) || t.getBoundingClientRect();
|
|
14868
14868
|
}
|
|
14869
|
-
const
|
|
14869
|
+
const P5 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
14870
14870
|
function Gm(t, e, n) {
|
|
14871
14871
|
let { node: r, offset: i, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = ts || xn;
|
|
14872
14872
|
if (r.nodeType == 3)
|
|
14873
|
-
if (s && (
|
|
14873
|
+
if (s && (P5.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
|
|
14874
14874
|
let a = ir(Hn(r, i, i), n);
|
|
14875
14875
|
if (xn && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
|
|
14876
14876
|
let c = ir(Hn(r, i - 1, i - 1), -1);
|
|
@@ -14934,7 +14934,7 @@ function Jm(t, e, n) {
|
|
|
14934
14934
|
r != e && t.updateState(r), i != t.dom && i && i.focus();
|
|
14935
14935
|
}
|
|
14936
14936
|
}
|
|
14937
|
-
function
|
|
14937
|
+
function R5(t, e, n) {
|
|
14938
14938
|
let r = e.selection, i = n == "up" ? r.$from : r.$to;
|
|
14939
14939
|
return Jm(t, e, () => {
|
|
14940
14940
|
let { node: o } = t.docView.domFromPos(i.pos, n == "up" ? -1 : 1);
|
|
@@ -14966,13 +14966,13 @@ function RE(t, e, n) {
|
|
|
14966
14966
|
return !0;
|
|
14967
14967
|
});
|
|
14968
14968
|
}
|
|
14969
|
-
const
|
|
14970
|
-
function
|
|
14969
|
+
const V5 = /[\u0590-\u08ac]/;
|
|
14970
|
+
function B5(t, e, n) {
|
|
14971
14971
|
let { $head: r } = e.selection;
|
|
14972
14972
|
if (!r.parent.isTextblock)
|
|
14973
14973
|
return !1;
|
|
14974
14974
|
let i = r.parentOffset, o = !i, s = i == r.parent.content.size, l = t.domSelection();
|
|
14975
|
-
return l ? !
|
|
14975
|
+
return l ? !V5.test(r.parent.textContent) || !l.modify ? n == "left" || n == "backward" ? o : s : Jm(t, e, () => {
|
|
14976
14976
|
let { focusNode: a, focusOffset: c, anchorNode: u, anchorOffset: d } = t.domSelectionRange(), f = l.caretBidiLevel;
|
|
14977
14977
|
l.modify("move", n, "character");
|
|
14978
14978
|
let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset: m } = t.domSelectionRange(), g = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || a == p && c == m;
|
|
@@ -14984,8 +14984,8 @@ function BE(t, e, n) {
|
|
|
14984
14984
|
}) : r.pos == r.start() || r.pos == r.end();
|
|
14985
14985
|
}
|
|
14986
14986
|
let sf = null, lf = null, af = !1;
|
|
14987
|
-
function
|
|
14988
|
-
return sf == e && lf == n ? af : (sf = e, lf = n, af = n == "up" || n == "down" ?
|
|
14987
|
+
function F5(t, e, n) {
|
|
14988
|
+
return sf == e && lf == n ? af : (sf = e, lf = n, af = n == "up" || n == "down" ? R5(t, e, n) : B5(t, e, n));
|
|
14989
14989
|
}
|
|
14990
14990
|
const cn = 0, cf = 1, Fr = 2, $n = 3;
|
|
14991
14991
|
class ns {
|
|
@@ -15270,7 +15270,7 @@ class ns {
|
|
|
15270
15270
|
let h = u.focusNode.childNodes[u.focusOffset];
|
|
15271
15271
|
h && h.contentEditable == "false" && (i = !0);
|
|
15272
15272
|
}
|
|
15273
|
-
if (!(i || d && Pt) &&
|
|
15273
|
+
if (!(i || d && Pt) && ii(l.node, l.offset, u.anchorNode, u.anchorOffset) && ii(a.node, a.offset, u.focusNode, u.focusOffset))
|
|
15274
15274
|
return;
|
|
15275
15275
|
let f = !1;
|
|
15276
15276
|
if ((c.extend || e == n) && !d) {
|
|
@@ -15369,7 +15369,7 @@ class Zm extends ns {
|
|
|
15369
15369
|
return this.widget.type.side;
|
|
15370
15370
|
}
|
|
15371
15371
|
}
|
|
15372
|
-
class
|
|
15372
|
+
class j5 extends ns {
|
|
15373
15373
|
constructor(e, n, r, i) {
|
|
15374
15374
|
super(e, [], n, null), this.textDOM = r, this.text = i;
|
|
15375
15375
|
}
|
|
@@ -15386,13 +15386,13 @@ class jE extends ns {
|
|
|
15386
15386
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
15387
15387
|
}
|
|
15388
15388
|
}
|
|
15389
|
-
class
|
|
15389
|
+
class oi extends ns {
|
|
15390
15390
|
constructor(e, n, r, i, o) {
|
|
15391
15391
|
super(e, [], r, i), this.mark = n, this.spec = o;
|
|
15392
15392
|
}
|
|
15393
15393
|
static create(e, n, r, i) {
|
|
15394
15394
|
let o = i.nodeViews[n.type.name], s = o && o(n, i, r);
|
|
15395
|
-
return (!s || !s.dom) && (s =
|
|
15395
|
+
return (!s || !s.dom) && (s = fi.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new oi(e, n, s.dom, s.contentDOM || s.dom, s);
|
|
15396
15396
|
}
|
|
15397
15397
|
parseRule() {
|
|
15398
15398
|
return this.dirty & $n || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
@@ -15409,7 +15409,7 @@ class ii extends ns {
|
|
|
15409
15409
|
}
|
|
15410
15410
|
}
|
|
15411
15411
|
slice(e, n, r) {
|
|
15412
|
-
let i =
|
|
15412
|
+
let i = oi.create(this.parent, this.mark, !0, r), o = this.children, s = this.size;
|
|
15413
15413
|
n < s && (o = nc(o, n, s, r)), e > 0 && (o = nc(o, 0, e, r));
|
|
15414
15414
|
for (let l = 0; l < o.length; l++)
|
|
15415
15415
|
o[l].parent = i;
|
|
@@ -15447,10 +15447,10 @@ class yr extends ns {
|
|
|
15447
15447
|
u = document.createTextNode(n.text);
|
|
15448
15448
|
else if (u.nodeType != 3)
|
|
15449
15449
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
15450
|
-
} else u || ({ dom: u, contentDOM: d } =
|
|
15450
|
+
} else u || ({ dom: u, contentDOM: d } = fi.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
15451
15451
|
!d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
|
|
15452
15452
|
let f = u;
|
|
15453
|
-
return u = tg(u, r, n), c ? a = new
|
|
15453
|
+
return u = tg(u, r, n), c ? a = new H5(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new Sl(e, n, r, i, u, f, o) : new yr(e, n, r, i, u, d || null, f, o, s + 1);
|
|
15454
15454
|
}
|
|
15455
15455
|
parseRule() {
|
|
15456
15456
|
if (this.node.type.spec.reparseInView)
|
|
@@ -15486,14 +15486,14 @@ class yr extends ns {
|
|
|
15486
15486
|
// separate step, syncs the DOM inside `this.contentDOM` to
|
|
15487
15487
|
// `this.children`.
|
|
15488
15488
|
updateChildren(e, n) {
|
|
15489
|
-
let r = this.node.inlineContent, i = n, o = e.composing ? this.localCompositionInfo(e, n) : null, s = o && o.pos > -1 ? o : null, l = o && o.pos < 0, a = new
|
|
15490
|
-
|
|
15489
|
+
let r = this.node.inlineContent, i = n, o = e.composing ? this.localCompositionInfo(e, n) : null, s = o && o.pos > -1 ? o : null, l = o && o.pos < 0, a = new W5(this, s && s.node, e);
|
|
15490
|
+
q5(this.node, this.innerDeco, (c, u, d) => {
|
|
15491
15491
|
c.spec.marks ? a.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !d && a.syncToMarks(u == this.node.childCount ? Je.none : this.node.child(u).marks, r, e), a.placeWidget(c, e, i);
|
|
15492
15492
|
}, (c, u, d, f) => {
|
|
15493
15493
|
a.syncToMarks(c.marks, r, e);
|
|
15494
15494
|
let h;
|
|
15495
15495
|
a.findNodeMatch(c, u, d, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (h = a.findIndexWithChild(o.node)) > -1 && a.updateNodeAt(c, u, d, h, e) || a.updateNextNode(c, u, d, e, f, i) || a.addNode(c, u, d, e, i), i += c.nodeSize;
|
|
15496
|
-
}), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Fr) && (s && this.protectLocalComposition(e, s), Qm(this.contentDOM, this.children, e),
|
|
15496
|
+
}), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Fr) && (s && this.protectLocalComposition(e, s), Qm(this.contentDOM, this.children, e), Fi && K5(this.dom));
|
|
15497
15497
|
}
|
|
15498
15498
|
localCompositionInfo(e, n) {
|
|
15499
15499
|
let { from: r, to: i } = e.state.selection;
|
|
@@ -15503,7 +15503,7 @@ class yr extends ns {
|
|
|
15503
15503
|
if (!o || !this.dom.contains(o.parentNode))
|
|
15504
15504
|
return null;
|
|
15505
15505
|
if (this.node.inlineContent) {
|
|
15506
|
-
let s = o.nodeValue, l =
|
|
15506
|
+
let s = o.nodeValue, l = G5(this.node.content, s, r - n, i - n);
|
|
15507
15507
|
return l < 0 ? null : { node: o, pos: l, text: s };
|
|
15508
15508
|
} else
|
|
15509
15509
|
return { node: o, pos: -1, text: "" };
|
|
@@ -15519,7 +15519,7 @@ class yr extends ns {
|
|
|
15519
15519
|
o.parentNode.removeChild(o.nextSibling);
|
|
15520
15520
|
o.pmViewDesc && (o.pmViewDesc = void 0);
|
|
15521
15521
|
}
|
|
15522
|
-
let s = new
|
|
15522
|
+
let s = new j5(this, o, n, i);
|
|
15523
15523
|
e.input.compositionNodes.push(s), this.children = nc(this.children, r, r + i.length, e, s);
|
|
15524
15524
|
}
|
|
15525
15525
|
// If this desc must be updated to match the given node decoration,
|
|
@@ -15610,7 +15610,7 @@ class Xm extends ns {
|
|
|
15610
15610
|
return this.dom.nodeName == "IMG";
|
|
15611
15611
|
}
|
|
15612
15612
|
}
|
|
15613
|
-
class
|
|
15613
|
+
class H5 extends yr {
|
|
15614
15614
|
constructor(e, n, r, i, o, s, l, a, c, u) {
|
|
15615
15615
|
super(e, n, r, i, o, s, l, c, u), this.spec = a;
|
|
15616
15616
|
}
|
|
@@ -15654,7 +15654,7 @@ function Qm(t, e, n) {
|
|
|
15654
15654
|
r = r.nextSibling;
|
|
15655
15655
|
} else
|
|
15656
15656
|
i = !0, t.insertBefore(l, r);
|
|
15657
|
-
if (s instanceof
|
|
15657
|
+
if (s instanceof oi) {
|
|
15658
15658
|
let a = r ? r.previousSibling : t.lastChild;
|
|
15659
15659
|
Qm(s.contentDOM, s.children, n), r = a ? a.nextSibling : t.firstChild;
|
|
15660
15660
|
}
|
|
@@ -15694,11 +15694,11 @@ function eg(t, e, n, r) {
|
|
|
15694
15694
|
let a;
|
|
15695
15695
|
l && l.nodeName == s.nodeName && i != t && (a = i.parentNode) && a.nodeName.toLowerCase() == s.nodeName || (a = document.createElement(s.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = jr[0]), i = a;
|
|
15696
15696
|
}
|
|
15697
|
-
|
|
15697
|
+
z5(i, l || jr[0], s);
|
|
15698
15698
|
}
|
|
15699
15699
|
return i;
|
|
15700
15700
|
}
|
|
15701
|
-
function
|
|
15701
|
+
function z5(t, e, n) {
|
|
15702
15702
|
for (let r in e)
|
|
15703
15703
|
r != "class" && r != "style" && r != "nodeName" && !(r in n) && t.removeAttribute(r);
|
|
15704
15704
|
for (let r in n)
|
|
@@ -15735,9 +15735,9 @@ function df(t) {
|
|
|
15735
15735
|
let e = t.nextSibling;
|
|
15736
15736
|
return t.parentNode.removeChild(t), e;
|
|
15737
15737
|
}
|
|
15738
|
-
class
|
|
15738
|
+
class W5 {
|
|
15739
15739
|
constructor(e, n, r) {
|
|
15740
|
-
this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch =
|
|
15740
|
+
this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch = U5(e.node.content, e);
|
|
15741
15741
|
}
|
|
15742
15742
|
// Destroy and remove the children between the given indices in
|
|
15743
15743
|
// `this.top`.
|
|
@@ -15773,7 +15773,7 @@ class WE {
|
|
|
15773
15773
|
if (l > -1)
|
|
15774
15774
|
l > this.index && (this.changed = !0, this.destroyBetween(this.index, l)), this.top = this.top.children[this.index];
|
|
15775
15775
|
else {
|
|
15776
|
-
let a =
|
|
15776
|
+
let a = oi.create(this.top, e[o], n, r);
|
|
15777
15777
|
this.top.children.splice(this.index, 0, a), this.top = a, this.changed = !0;
|
|
15778
15778
|
}
|
|
15779
15779
|
this.index = 0, o++;
|
|
@@ -15866,7 +15866,7 @@ class WE {
|
|
|
15866
15866
|
// contentEditable.
|
|
15867
15867
|
addTextblockHacks() {
|
|
15868
15868
|
let e = this.top.children[this.index - 1], n = this.top;
|
|
15869
|
-
for (; e instanceof
|
|
15869
|
+
for (; e instanceof oi; )
|
|
15870
15870
|
n = e, e = n.children[n.children.length - 1];
|
|
15871
15871
|
(!e || // Empty textblock
|
|
15872
15872
|
!(e instanceof Sl) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Pt || _t) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
@@ -15885,14 +15885,14 @@ class WE {
|
|
|
15885
15885
|
return this.lock && (e == this.lock || e.nodeType == 1 && e.contains(this.lock.parentNode));
|
|
15886
15886
|
}
|
|
15887
15887
|
}
|
|
15888
|
-
function
|
|
15888
|
+
function U5(t, e) {
|
|
15889
15889
|
let n = e, r = n.children.length, i = t.childCount, o = /* @__PURE__ */ new Map(), s = [];
|
|
15890
15890
|
e: for (; i > 0; ) {
|
|
15891
15891
|
let l;
|
|
15892
15892
|
for (; ; )
|
|
15893
15893
|
if (r) {
|
|
15894
15894
|
let c = n.children[r - 1];
|
|
15895
|
-
if (c instanceof
|
|
15895
|
+
if (c instanceof oi)
|
|
15896
15896
|
n = c, r = c.children.length;
|
|
15897
15897
|
else {
|
|
15898
15898
|
l = c, r--;
|
|
@@ -15912,10 +15912,10 @@ function UE(t, e) {
|
|
|
15912
15912
|
}
|
|
15913
15913
|
return { index: i, matched: o, matches: s.reverse() };
|
|
15914
15914
|
}
|
|
15915
|
-
function
|
|
15915
|
+
function Y5(t, e) {
|
|
15916
15916
|
return t.type.side - e.type.side;
|
|
15917
15917
|
}
|
|
15918
|
-
function
|
|
15918
|
+
function q5(t, e, n, r) {
|
|
15919
15919
|
let i = e.locals(t), o = 0;
|
|
15920
15920
|
if (i.length == 0) {
|
|
15921
15921
|
for (let c = 0; c < t.childCount; c++) {
|
|
@@ -15933,7 +15933,7 @@ function qE(t, e, n, r) {
|
|
|
15933
15933
|
}
|
|
15934
15934
|
if (u)
|
|
15935
15935
|
if (d) {
|
|
15936
|
-
d.sort(
|
|
15936
|
+
d.sort(Y5);
|
|
15937
15937
|
for (let g = 0; g < d.length; g++)
|
|
15938
15938
|
n(d[g], c, !!a);
|
|
15939
15939
|
} else
|
|
@@ -15963,13 +15963,13 @@ function qE(t, e, n, r) {
|
|
|
15963
15963
|
r(f, m, e.forChild(o, f), h), o = p;
|
|
15964
15964
|
}
|
|
15965
15965
|
}
|
|
15966
|
-
function
|
|
15966
|
+
function K5(t) {
|
|
15967
15967
|
if (t.nodeName == "UL" || t.nodeName == "OL") {
|
|
15968
15968
|
let e = t.style.cssText;
|
|
15969
15969
|
t.style.cssText = e + "; list-style: square !important", window.getComputedStyle(t).listStyle, t.style.cssText = e;
|
|
15970
15970
|
}
|
|
15971
15971
|
}
|
|
15972
|
-
function
|
|
15972
|
+
function G5(t, e, n, r) {
|
|
15973
15973
|
for (let i = 0, o = 0; i < t.childCount && o <= r; ) {
|
|
15974
15974
|
let s = t.child(i++), l = o;
|
|
15975
15975
|
if (o += s.nodeSize, !s.isText)
|
|
@@ -16013,7 +16013,7 @@ function Wc(t, e = null) {
|
|
|
16013
16013
|
for (a = s; i && !i.node; )
|
|
16014
16014
|
i = i.parent;
|
|
16015
16015
|
let d = i.node;
|
|
16016
|
-
if (i && d.isAtom && xe.isSelectable(d) && i.parent && !(d.isInline &&
|
|
16016
|
+
if (i && d.isAtom && xe.isSelectable(d) && i.parent && !(d.isInline && k5(n.focusNode, n.focusOffset, i.dom))) {
|
|
16017
16017
|
let f = i.posBefore;
|
|
16018
16018
|
c = new xe(s == f ? l : r.resolve(f));
|
|
16019
16019
|
}
|
|
@@ -16047,16 +16047,16 @@ function Gn(t, e = !1) {
|
|
|
16047
16047
|
if (rg(t, n), !!ng(t)) {
|
|
16048
16048
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && _t) {
|
|
16049
16049
|
let r = t.domSelectionRange(), i = t.domObserver.currentSelection;
|
|
16050
|
-
if (r.anchorNode && i.anchorNode &&
|
|
16050
|
+
if (r.anchorNode && i.anchorNode && ii(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
|
|
16051
16051
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
16052
16052
|
return;
|
|
16053
16053
|
}
|
|
16054
16054
|
}
|
|
16055
16055
|
if (t.domObserver.disconnectSelection(), t.cursorWrapper)
|
|
16056
|
-
|
|
16056
|
+
Z5(t);
|
|
16057
16057
|
else {
|
|
16058
16058
|
let { anchor: r, head: i } = n, o, s;
|
|
16059
|
-
ff && !(n instanceof _e) && (n.$from.parent.inlineContent || (o = hf(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = hf(t, n.to))), t.docView.setSelection(r, i, t, e), ff && (o && pf(o), s && pf(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document &&
|
|
16059
|
+
ff && !(n instanceof _e) && (n.$from.parent.inlineContent || (o = hf(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = hf(t, n.to))), t.docView.setSelection(r, i, t, e), ff && (o && pf(o), s && pf(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && J5(t));
|
|
16060
16060
|
}
|
|
16061
16061
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
16062
16062
|
}
|
|
@@ -16079,7 +16079,7 @@ function ea(t) {
|
|
|
16079
16079
|
function pf(t) {
|
|
16080
16080
|
t.contentEditable = "false", t.wasDraggable && (t.draggable = !0, t.wasDraggable = null);
|
|
16081
16081
|
}
|
|
16082
|
-
function
|
|
16082
|
+
function J5(t) {
|
|
16083
16083
|
let e = t.dom.ownerDocument;
|
|
16084
16084
|
e.removeEventListener("selectionchange", t.input.hideSelectionGuard);
|
|
16085
16085
|
let n = t.domSelectionRange(), r = n.anchorNode, i = n.anchorOffset;
|
|
@@ -16089,7 +16089,7 @@ function JE(t) {
|
|
|
16089
16089
|
}, 20));
|
|
16090
16090
|
});
|
|
16091
16091
|
}
|
|
16092
|
-
function
|
|
16092
|
+
function Z5(t) {
|
|
16093
16093
|
let e = t.domSelection(), n = document.createRange();
|
|
16094
16094
|
if (!e)
|
|
16095
16095
|
return;
|
|
@@ -16122,9 +16122,9 @@ function ig(t) {
|
|
|
16122
16122
|
return !1;
|
|
16123
16123
|
}
|
|
16124
16124
|
}
|
|
16125
|
-
function
|
|
16125
|
+
function X5(t) {
|
|
16126
16126
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
16127
|
-
return
|
|
16127
|
+
return ii(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
16128
16128
|
}
|
|
16129
16129
|
function rc(t, e) {
|
|
16130
16130
|
let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
|
|
@@ -16170,10 +16170,10 @@ function vo(t, e) {
|
|
|
16170
16170
|
let n = t.pmViewDesc;
|
|
16171
16171
|
return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
|
|
16172
16172
|
}
|
|
16173
|
-
function
|
|
16174
|
-
return e < 0 ?
|
|
16173
|
+
function mi(t, e) {
|
|
16174
|
+
return e < 0 ? Q5(t) : eE(t);
|
|
16175
16175
|
}
|
|
16176
|
-
function
|
|
16176
|
+
function Q5(t) {
|
|
16177
16177
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
16178
16178
|
if (!n)
|
|
16179
16179
|
return;
|
|
@@ -16209,7 +16209,7 @@ function QE(t) {
|
|
|
16209
16209
|
}
|
|
16210
16210
|
s ? ic(t, n, r) : i && ic(t, i, o);
|
|
16211
16211
|
}
|
|
16212
|
-
function
|
|
16212
|
+
function eE(t) {
|
|
16213
16213
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
16214
16214
|
if (!n)
|
|
16215
16215
|
return;
|
|
@@ -16245,7 +16245,7 @@ function og(t) {
|
|
|
16245
16245
|
let e = t.pmViewDesc;
|
|
16246
16246
|
return e && e.node && e.node.isBlock;
|
|
16247
16247
|
}
|
|
16248
|
-
function
|
|
16248
|
+
function tE(t, e) {
|
|
16249
16249
|
for (; t && e == t.childNodes.length && !es(t); )
|
|
16250
16250
|
e = Ot(t) + 1, t = t.parentNode;
|
|
16251
16251
|
for (; t && e < t.childNodes.length; ) {
|
|
@@ -16257,7 +16257,7 @@ function t5(t, e) {
|
|
|
16257
16257
|
t = n, e = 0;
|
|
16258
16258
|
}
|
|
16259
16259
|
}
|
|
16260
|
-
function
|
|
16260
|
+
function nE(t, e) {
|
|
16261
16261
|
for (; t && !e && !es(t); )
|
|
16262
16262
|
e = Ot(t), t = t.parentNode;
|
|
16263
16263
|
for (; t && e; ) {
|
|
@@ -16272,7 +16272,7 @@ function n5(t, e) {
|
|
|
16272
16272
|
function ic(t, e, n) {
|
|
16273
16273
|
if (e.nodeType != 3) {
|
|
16274
16274
|
let o, s;
|
|
16275
|
-
(s =
|
|
16275
|
+
(s = tE(e, n)) ? (e = s, n = 0) : (o = nE(e, n)) && (e = o, n = o.nodeValue.length);
|
|
16276
16276
|
}
|
|
16277
16277
|
let r = t.domSelection();
|
|
16278
16278
|
if (!r)
|
|
@@ -16289,7 +16289,7 @@ function ic(t, e, n) {
|
|
|
16289
16289
|
}
|
|
16290
16290
|
function vf(t, e) {
|
|
16291
16291
|
let n = t.state.doc.resolve(e);
|
|
16292
|
-
if (!(_t ||
|
|
16292
|
+
if (!(_t || O5) && n.parent.inlineContent) {
|
|
16293
16293
|
let i = t.coordsAtPos(e);
|
|
16294
16294
|
if (e > n.start()) {
|
|
16295
16295
|
let o = t.coordsAtPos(e - 1), s = (o.top + o.bottom) / 2;
|
|
@@ -16340,7 +16340,7 @@ function wf(t, e) {
|
|
|
16340
16340
|
function kf(t, e, n) {
|
|
16341
16341
|
t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
|
|
16342
16342
|
}
|
|
16343
|
-
function
|
|
16343
|
+
function rE(t) {
|
|
16344
16344
|
if (!Pt || t.state.selection.$head.parentOffset > 0)
|
|
16345
16345
|
return !1;
|
|
16346
16346
|
let { focusNode: e, focusOffset: n } = t.domSelectionRange();
|
|
@@ -16350,29 +16350,29 @@ function r5(t) {
|
|
|
16350
16350
|
}
|
|
16351
16351
|
return !1;
|
|
16352
16352
|
}
|
|
16353
|
-
function
|
|
16353
|
+
function iE(t) {
|
|
16354
16354
|
let e = "";
|
|
16355
16355
|
return t.ctrlKey && (e += "c"), t.metaKey && (e += "m"), t.altKey && (e += "a"), t.shiftKey && (e += "s"), e;
|
|
16356
16356
|
}
|
|
16357
|
-
function
|
|
16358
|
-
let n = e.keyCode, r =
|
|
16357
|
+
function oE(t, e) {
|
|
16358
|
+
let n = e.keyCode, r = iE(e);
|
|
16359
16359
|
if (n == 8 || sn && n == 72 && r == "c")
|
|
16360
|
-
return wf(t, -1) ||
|
|
16360
|
+
return wf(t, -1) || mi(t, -1);
|
|
16361
16361
|
if (n == 46 && !e.shiftKey || sn && n == 68 && r == "c")
|
|
16362
|
-
return wf(t, 1) ||
|
|
16362
|
+
return wf(t, 1) || mi(t, 1);
|
|
16363
16363
|
if (n == 13 || n == 27)
|
|
16364
16364
|
return !0;
|
|
16365
16365
|
if (n == 37 || sn && n == 66 && r == "c") {
|
|
16366
16366
|
let i = n == 37 ? vf(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
16367
|
-
return yf(t, i, r) ||
|
|
16367
|
+
return yf(t, i, r) || mi(t, i);
|
|
16368
16368
|
} else if (n == 39 || sn && n == 70 && r == "c") {
|
|
16369
16369
|
let i = n == 39 ? vf(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
16370
|
-
return yf(t, i, r) ||
|
|
16370
|
+
return yf(t, i, r) || mi(t, i);
|
|
16371
16371
|
} else {
|
|
16372
16372
|
if (n == 38 || sn && n == 80 && r == "c")
|
|
16373
|
-
return bf(t, -1, r) ||
|
|
16373
|
+
return bf(t, -1, r) || mi(t, -1);
|
|
16374
16374
|
if (n == 40 || sn && n == 78 && r == "c")
|
|
16375
|
-
return
|
|
16375
|
+
return rE(t) || bf(t, 1, r) || mi(t, 1);
|
|
16376
16376
|
if (r == (sn ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
16377
16377
|
return !0;
|
|
16378
16378
|
}
|
|
@@ -16388,7 +16388,7 @@ function Yc(t, e) {
|
|
|
16388
16388
|
let h = r.firstChild;
|
|
16389
16389
|
n.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
|
|
16390
16390
|
}
|
|
16391
|
-
let s = t.someProp("clipboardSerializer") ||
|
|
16391
|
+
let s = t.someProp("clipboardSerializer") || fi.fromSchema(t.state.schema), l = dg(), a = l.createElement("div");
|
|
16392
16392
|
a.appendChild(s.serializeFragment(r, { document: l }));
|
|
16393
16393
|
let c = a.firstChild, u, d = 0;
|
|
16394
16394
|
for (; c && c.nodeType == 1 && (u = ug[c.nodeName.toLowerCase()]); ) {
|
|
@@ -16421,7 +16421,7 @@ function sg(t, e, n, r, i) {
|
|
|
16421
16421
|
if (d)
|
|
16422
16422
|
l = d;
|
|
16423
16423
|
else {
|
|
16424
|
-
let f = i.marks(), { schema: h } = t.state, p =
|
|
16424
|
+
let f = i.marks(), { schema: h } = t.state, p = fi.fromSchema(h);
|
|
16425
16425
|
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
|
|
16426
16426
|
let g = s.appendChild(document.createElement("p"));
|
|
16427
16427
|
m && g.appendChild(p.serializeNode(h.text(m, f)));
|
|
@@ -16430,7 +16430,7 @@ function sg(t, e, n, r, i) {
|
|
|
16430
16430
|
} else
|
|
16431
16431
|
t.someProp("transformPastedHTML", (d) => {
|
|
16432
16432
|
n = d(n, t);
|
|
16433
|
-
}), s =
|
|
16433
|
+
}), s = cE(n), ts && uE(s);
|
|
16434
16434
|
let c = s && s.querySelector("[data-pm-slice]"), u = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
|
|
16435
16435
|
if (u && u[3])
|
|
16436
16436
|
for (let d = +u[3]; d > 0; d--) {
|
|
@@ -16445,11 +16445,11 @@ function sg(t, e, n, r, i) {
|
|
|
16445
16445
|
preserveWhitespace: !!(a || u),
|
|
16446
16446
|
context: i,
|
|
16447
16447
|
ruleFromNode(f) {
|
|
16448
|
-
return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !
|
|
16448
|
+
return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !sE.test(f.parentNode.nodeName) ? { ignore: !0 } : null;
|
|
16449
16449
|
}
|
|
16450
16450
|
})), u)
|
|
16451
|
-
l =
|
|
16452
|
-
else if (l = he.maxOpen(
|
|
16451
|
+
l = dE(xf(l, +u[1], +u[2]), u[4]);
|
|
16452
|
+
else if (l = he.maxOpen(lE(l.content, i), !0), l.openStart || l.openEnd) {
|
|
16453
16453
|
let d = 0, f = 0;
|
|
16454
16454
|
for (let h = l.content.firstChild; d < l.openStart && !h.type.spec.isolating; d++, h = h.firstChild)
|
|
16455
16455
|
;
|
|
@@ -16461,8 +16461,8 @@ function sg(t, e, n, r, i) {
|
|
|
16461
16461
|
l = d(l, t);
|
|
16462
16462
|
}), l;
|
|
16463
16463
|
}
|
|
16464
|
-
const
|
|
16465
|
-
function
|
|
16464
|
+
const sE = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
|
|
16465
|
+
function lE(t, e) {
|
|
16466
16466
|
if (t.childCount < 2)
|
|
16467
16467
|
return t;
|
|
16468
16468
|
for (let n = e.depth; n >= 0; n--) {
|
|
@@ -16528,27 +16528,27 @@ function dg() {
|
|
|
16528
16528
|
return Sf || (Sf = document.implementation.createHTMLDocument("title"));
|
|
16529
16529
|
}
|
|
16530
16530
|
let ta = null;
|
|
16531
|
-
function
|
|
16531
|
+
function aE(t) {
|
|
16532
16532
|
let e = window.trustedTypes;
|
|
16533
16533
|
return e ? (ta || (ta = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), ta.createHTML(t)) : t;
|
|
16534
16534
|
}
|
|
16535
|
-
function
|
|
16535
|
+
function cE(t) {
|
|
16536
16536
|
let e = /^(\s*<meta [^>]*>)*/.exec(t);
|
|
16537
16537
|
e && (t = t.slice(e[0].length));
|
|
16538
16538
|
let n = dg().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), i;
|
|
16539
|
-
if ((i = r && ug[r[1].toLowerCase()]) && (t = i.map((o) => "<" + o + ">").join("") + t + i.map((o) => "</" + o + ">").reverse().join("")), n.innerHTML =
|
|
16539
|
+
if ((i = r && ug[r[1].toLowerCase()]) && (t = i.map((o) => "<" + o + ">").join("") + t + i.map((o) => "</" + o + ">").reverse().join("")), n.innerHTML = aE(t), i)
|
|
16540
16540
|
for (let o = 0; o < i.length; o++)
|
|
16541
16541
|
n = n.querySelector(i[o]) || n;
|
|
16542
16542
|
return n;
|
|
16543
16543
|
}
|
|
16544
|
-
function
|
|
16544
|
+
function uE(t) {
|
|
16545
16545
|
let e = t.querySelectorAll(_t ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
16546
16546
|
for (let n = 0; n < e.length; n++) {
|
|
16547
16547
|
let r = e[n];
|
|
16548
16548
|
r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
|
|
16549
16549
|
}
|
|
16550
16550
|
}
|
|
16551
|
-
function
|
|
16551
|
+
function dE(t, e) {
|
|
16552
16552
|
if (!t.size)
|
|
16553
16553
|
return t;
|
|
16554
16554
|
let n = t.content.firstChild.type.schema, r;
|
|
@@ -16566,25 +16566,25 @@ function d5(t, e) {
|
|
|
16566
16566
|
}
|
|
16567
16567
|
return new he(i, o, s);
|
|
16568
16568
|
}
|
|
16569
|
-
const Rt = {}, Vt = {},
|
|
16570
|
-
class
|
|
16569
|
+
const Rt = {}, Vt = {}, fE = { touchstart: !0, touchmove: !0 };
|
|
16570
|
+
class hE {
|
|
16571
16571
|
constructor() {
|
|
16572
16572
|
this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
|
|
16573
16573
|
}
|
|
16574
16574
|
}
|
|
16575
|
-
function
|
|
16575
|
+
function pE(t) {
|
|
16576
16576
|
for (let e in Rt) {
|
|
16577
16577
|
let n = Rt[e];
|
|
16578
16578
|
t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
|
|
16579
|
-
|
|
16580
|
-
},
|
|
16579
|
+
gE(t, r) && !qc(t, r) && (t.editable || !(r.type in Vt)) && n(t, r);
|
|
16580
|
+
}, fE[e] ? { passive: !0 } : void 0);
|
|
16581
16581
|
}
|
|
16582
16582
|
Pt && t.dom.addEventListener("input", () => null), sc(t);
|
|
16583
16583
|
}
|
|
16584
16584
|
function dr(t, e) {
|
|
16585
16585
|
t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
|
|
16586
16586
|
}
|
|
16587
|
-
function
|
|
16587
|
+
function mE(t) {
|
|
16588
16588
|
t.domObserver.stop();
|
|
16589
16589
|
for (let e in t.input.eventHandlers)
|
|
16590
16590
|
t.dom.removeEventListener(e, t.input.eventHandlers[e]);
|
|
@@ -16602,7 +16602,7 @@ function qc(t, e) {
|
|
|
16602
16602
|
return r ? r(t, e) || e.defaultPrevented : !1;
|
|
16603
16603
|
});
|
|
16604
16604
|
}
|
|
16605
|
-
function
|
|
16605
|
+
function gE(t, e) {
|
|
16606
16606
|
if (!e.bubbles)
|
|
16607
16607
|
return !0;
|
|
16608
16608
|
if (e.defaultPrevented)
|
|
@@ -16612,18 +16612,18 @@ function g5(t, e) {
|
|
|
16612
16612
|
return !1;
|
|
16613
16613
|
return !0;
|
|
16614
16614
|
}
|
|
16615
|
-
function
|
|
16615
|
+
function yE(t, e) {
|
|
16616
16616
|
!qc(t, e) && Rt[e.type] && (t.editable || !(e.type in Vt)) && Rt[e.type](t, e);
|
|
16617
16617
|
}
|
|
16618
16618
|
Vt.keydown = (t, e) => {
|
|
16619
16619
|
let n = e;
|
|
16620
16620
|
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !hg(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Yn && _t && n.keyCode == 13)))
|
|
16621
|
-
if (n.keyCode != 229 && t.domObserver.forceFlush(),
|
|
16621
|
+
if (n.keyCode != 229 && t.domObserver.forceFlush(), Fi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
16622
16622
|
let r = Date.now();
|
|
16623
16623
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
16624
16624
|
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t, Rr(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
16625
16625
|
}, 200);
|
|
16626
|
-
} else t.someProp("handleKeyDown", (r) => r(t, n)) ||
|
|
16626
|
+
} else t.someProp("handleKeyDown", (r) => r(t, n)) || oE(t, n) ? n.preventDefault() : dr(t, "key");
|
|
16627
16627
|
};
|
|
16628
16628
|
Vt.keyup = (t, e) => {
|
|
16629
16629
|
e.keyCode == 16 && (t.input.shiftKey = !1);
|
|
@@ -16645,7 +16645,7 @@ Vt.keypress = (t, e) => {
|
|
|
16645
16645
|
function Ol(t) {
|
|
16646
16646
|
return { left: t.clientX, top: t.clientY };
|
|
16647
16647
|
}
|
|
16648
|
-
function
|
|
16648
|
+
function vE(t, e) {
|
|
16649
16649
|
let n = e.x - t.clientX, r = e.y - t.clientY;
|
|
16650
16650
|
return n * n + r * r < 100;
|
|
16651
16651
|
}
|
|
@@ -16658,19 +16658,19 @@ function Kc(t, e, n, r, i) {
|
|
|
16658
16658
|
return !0;
|
|
16659
16659
|
return !1;
|
|
16660
16660
|
}
|
|
16661
|
-
function
|
|
16661
|
+
function Mi(t, e, n) {
|
|
16662
16662
|
if (t.focused || t.focus(), t.state.selection.eq(e))
|
|
16663
16663
|
return;
|
|
16664
16664
|
let r = t.state.tr.setSelection(e);
|
|
16665
16665
|
r.setMeta("pointer", !0), t.dispatch(r);
|
|
16666
16666
|
}
|
|
16667
|
-
function
|
|
16667
|
+
function bE(t, e) {
|
|
16668
16668
|
if (e == -1)
|
|
16669
16669
|
return !1;
|
|
16670
16670
|
let n = t.state.doc.resolve(e), r = n.nodeAfter;
|
|
16671
|
-
return r && r.isAtom && xe.isSelectable(r) ? (
|
|
16671
|
+
return r && r.isAtom && xe.isSelectable(r) ? (Mi(t, new xe(n)), !0) : !1;
|
|
16672
16672
|
}
|
|
16673
|
-
function
|
|
16673
|
+
function wE(t, e) {
|
|
16674
16674
|
if (e == -1)
|
|
16675
16675
|
return !1;
|
|
16676
16676
|
let n = t.state.selection, r, i;
|
|
@@ -16683,30 +16683,30 @@ function w5(t, e) {
|
|
|
16683
16683
|
break;
|
|
16684
16684
|
}
|
|
16685
16685
|
}
|
|
16686
|
-
return i != null ? (
|
|
16686
|
+
return i != null ? (Mi(t, xe.create(t.state.doc, i)), !0) : !1;
|
|
16687
16687
|
}
|
|
16688
|
-
function
|
|
16689
|
-
return Kc(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ?
|
|
16688
|
+
function kE(t, e, n, r, i) {
|
|
16689
|
+
return Kc(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ? wE(t, n) : bE(t, n));
|
|
16690
16690
|
}
|
|
16691
|
-
function
|
|
16691
|
+
function xE(t, e, n, r) {
|
|
16692
16692
|
return Kc(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (i) => i(t, e, r));
|
|
16693
16693
|
}
|
|
16694
|
-
function
|
|
16695
|
-
return Kc(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (i) => i(t, e, r)) ||
|
|
16694
|
+
function SE(t, e, n, r) {
|
|
16695
|
+
return Kc(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (i) => i(t, e, r)) || OE(t, n, r);
|
|
16696
16696
|
}
|
|
16697
|
-
function
|
|
16697
|
+
function OE(t, e, n) {
|
|
16698
16698
|
if (n.button != 0)
|
|
16699
16699
|
return !1;
|
|
16700
16700
|
let r = t.state.doc;
|
|
16701
16701
|
if (e == -1)
|
|
16702
|
-
return r.inlineContent ? (
|
|
16702
|
+
return r.inlineContent ? (Mi(t, _e.create(r, 0, r.content.size)), !0) : !1;
|
|
16703
16703
|
let i = r.resolve(e);
|
|
16704
16704
|
for (let o = i.depth + 1; o > 0; o--) {
|
|
16705
16705
|
let s = o > i.depth ? i.nodeAfter : i.node(o), l = i.before(o);
|
|
16706
16706
|
if (s.inlineContent)
|
|
16707
|
-
|
|
16707
|
+
Mi(t, _e.create(r, l + 1, l + 1 + s.content.size));
|
|
16708
16708
|
else if (xe.isSelectable(s))
|
|
16709
|
-
|
|
16709
|
+
Mi(t, xe.create(r, l));
|
|
16710
16710
|
else
|
|
16711
16711
|
continue;
|
|
16712
16712
|
return !0;
|
|
@@ -16720,11 +16720,11 @@ Rt.mousedown = (t, e) => {
|
|
|
16720
16720
|
let n = e;
|
|
16721
16721
|
t.input.shiftKey = n.shiftKey;
|
|
16722
16722
|
let r = Gc(t), i = Date.now(), o = "singleClick";
|
|
16723
|
-
i - t.input.lastClick.time < 500 &&
|
|
16723
|
+
i - t.input.lastClick.time < 500 && vE(n, t.input.lastClick) && !n[fg] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
|
|
16724
16724
|
let s = t.posAtCoords(Ol(n));
|
|
16725
|
-
s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new
|
|
16725
|
+
s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new CE(t, s, n, !!r)) : (o == "doubleClick" ? xE : SE)(t, s.pos, s.inside, n) ? n.preventDefault() : dr(t, "pointer"));
|
|
16726
16726
|
};
|
|
16727
|
-
class
|
|
16727
|
+
class CE {
|
|
16728
16728
|
constructor(e, n, r, i) {
|
|
16729
16729
|
this.view = e, this.pos = n, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[fg], this.allowDefault = r.shiftKey;
|
|
16730
16730
|
let o, s;
|
|
@@ -16753,7 +16753,7 @@ class C5 {
|
|
|
16753
16753
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
16754
16754
|
return;
|
|
16755
16755
|
let n = this.pos;
|
|
16756
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ol(e))), this.updateAllowDefault(e), this.allowDefault || !n ? dr(this.view, "pointer") :
|
|
16756
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ol(e))), this.updateAllowDefault(e), this.allowDefault || !n ? dr(this.view, "pointer") : kE(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
16757
16757
|
Pt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
16758
16758
|
// cursor, but still report that the node is selected
|
|
16759
16759
|
// when asked through getSelection. You'll then get a
|
|
@@ -16761,7 +16761,7 @@ class C5 {
|
|
|
16761
16761
|
// (hidden) cursor is doesn't change the selection, and
|
|
16762
16762
|
// thus doesn't get a reaction from ProseMirror. This
|
|
16763
16763
|
// works around that.
|
|
16764
|
-
_t && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (
|
|
16764
|
+
_t && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Mi(this.view, Ie.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : dr(this.view, "pointer");
|
|
16765
16765
|
}
|
|
16766
16766
|
move(e) {
|
|
16767
16767
|
this.updateAllowDefault(e), dr(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -16780,7 +16780,7 @@ Rt.contextmenu = (t) => Gc(t);
|
|
|
16780
16780
|
function hg(t, e) {
|
|
16781
16781
|
return t.composing ? !0 : Pt && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
16782
16782
|
}
|
|
16783
|
-
const
|
|
16783
|
+
const EE = Yn ? 5e3 : -1;
|
|
16784
16784
|
Vt.compositionstart = Vt.compositionupdate = (t) => {
|
|
16785
16785
|
if (!t.composing) {
|
|
16786
16786
|
t.domObserver.flush();
|
|
@@ -16803,7 +16803,7 @@ Vt.compositionstart = Vt.compositionupdate = (t) => {
|
|
|
16803
16803
|
}
|
|
16804
16804
|
t.input.composing = !0;
|
|
16805
16805
|
}
|
|
16806
|
-
pg(t,
|
|
16806
|
+
pg(t, EE);
|
|
16807
16807
|
};
|
|
16808
16808
|
Vt.compositionend = (t, e) => {
|
|
16809
16809
|
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, pg(t, 20));
|
|
@@ -16812,14 +16812,14 @@ function pg(t, e) {
|
|
|
16812
16812
|
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => Zs(t), e));
|
|
16813
16813
|
}
|
|
16814
16814
|
function mg(t) {
|
|
16815
|
-
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt =
|
|
16815
|
+
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = ME()); t.input.compositionNodes.length > 0; )
|
|
16816
16816
|
t.input.compositionNodes.pop().markParentsDirty();
|
|
16817
16817
|
}
|
|
16818
|
-
function
|
|
16818
|
+
function TE(t) {
|
|
16819
16819
|
let e = t.domSelectionRange();
|
|
16820
16820
|
if (!e.focusNode)
|
|
16821
16821
|
return null;
|
|
16822
|
-
let n =
|
|
16822
|
+
let n = b5(e.focusNode, e.focusOffset), r = w5(e.focusNode, e.focusOffset);
|
|
16823
16823
|
if (n && r && n != r) {
|
|
16824
16824
|
let i = r.pmViewDesc, o = t.domObserver.lastChangedTextNode;
|
|
16825
16825
|
if (n == o || r == o)
|
|
@@ -16834,7 +16834,7 @@ function T5(t) {
|
|
|
16834
16834
|
}
|
|
16835
16835
|
return n || r;
|
|
16836
16836
|
}
|
|
16837
|
-
function
|
|
16837
|
+
function ME() {
|
|
16838
16838
|
let t = document.createEvent("Event");
|
|
16839
16839
|
return t.initEvent("event", !0, !0), t.timeStamp;
|
|
16840
16840
|
}
|
|
@@ -16847,7 +16847,7 @@ function Zs(t, e = !1) {
|
|
|
16847
16847
|
return !1;
|
|
16848
16848
|
}
|
|
16849
16849
|
}
|
|
16850
|
-
function
|
|
16850
|
+
function _E(t, e) {
|
|
16851
16851
|
if (!t.dom.parentNode)
|
|
16852
16852
|
return;
|
|
16853
16853
|
let n = t.dom.parentNode.appendChild(document.createElement("div"));
|
|
@@ -16857,18 +16857,18 @@ function _5(t, e) {
|
|
|
16857
16857
|
n.parentNode && n.parentNode.removeChild(n), t.focus();
|
|
16858
16858
|
}, 50);
|
|
16859
16859
|
}
|
|
16860
|
-
const Ro = Yt && gr < 15 ||
|
|
16860
|
+
const Ro = Yt && gr < 15 || Fi && C5 < 604;
|
|
16861
16861
|
Rt.copy = Vt.cut = (t, e) => {
|
|
16862
16862
|
let n = e, r = t.state.selection, i = n.type == "cut";
|
|
16863
16863
|
if (r.empty)
|
|
16864
16864
|
return;
|
|
16865
16865
|
let o = Ro ? null : n.clipboardData, s = r.content(), { dom: l, text: a } = Yc(t, s);
|
|
16866
|
-
o ? (n.preventDefault(), o.clearData(), o.setData("text/html", l.innerHTML), o.setData("text/plain", a)) :
|
|
16866
|
+
o ? (n.preventDefault(), o.clearData(), o.setData("text/html", l.innerHTML), o.setData("text/plain", a)) : _E(t, l), i && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
|
|
16867
16867
|
};
|
|
16868
|
-
function
|
|
16868
|
+
function NE(t) {
|
|
16869
16869
|
return t.openStart == 0 && t.openEnd == 0 && t.content.childCount == 1 ? t.content.firstChild : null;
|
|
16870
16870
|
}
|
|
16871
|
-
function
|
|
16871
|
+
function AE(t, e) {
|
|
16872
16872
|
if (!t.dom.parentNode)
|
|
16873
16873
|
return;
|
|
16874
16874
|
let n = t.input.shiftKey || t.state.selection.$from.parent.type.spec.code, r = t.dom.parentNode.appendChild(document.createElement(n ? "textarea" : "div"));
|
|
@@ -16884,7 +16884,7 @@ function Vo(t, e, n, r, i) {
|
|
|
16884
16884
|
return !0;
|
|
16885
16885
|
if (!o)
|
|
16886
16886
|
return !1;
|
|
16887
|
-
let s =
|
|
16887
|
+
let s = NE(o), l = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(o);
|
|
16888
16888
|
return t.dispatch(l.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
|
|
16889
16889
|
}
|
|
16890
16890
|
function gg(t) {
|
|
@@ -16899,7 +16899,7 @@ Vt.paste = (t, e) => {
|
|
|
16899
16899
|
if (t.composing && !Yn)
|
|
16900
16900
|
return;
|
|
16901
16901
|
let r = Ro ? null : n.clipboardData, i = t.input.shiftKey && t.input.lastKeyCode != 45;
|
|
16902
|
-
r && Vo(t, gg(r), r.getData("text/html"), i, n) ? n.preventDefault() :
|
|
16902
|
+
r && Vo(t, gg(r), r.getData("text/html"), i, n) ? n.preventDefault() : AE(t, n);
|
|
16903
16903
|
};
|
|
16904
16904
|
class yg {
|
|
16905
16905
|
constructor(e, n, r) {
|
|
@@ -17132,13 +17132,13 @@ class en {
|
|
|
17132
17132
|
return this.type instanceof Xs;
|
|
17133
17133
|
}
|
|
17134
17134
|
}
|
|
17135
|
-
const
|
|
17135
|
+
const bi = [], Ur = {};
|
|
17136
17136
|
class lt {
|
|
17137
17137
|
/**
|
|
17138
17138
|
@internal
|
|
17139
17139
|
*/
|
|
17140
17140
|
constructor(e, n) {
|
|
17141
|
-
this.local = e.length ? e :
|
|
17141
|
+
this.local = e.length ? e : bi, this.children = n.length ? n : bi;
|
|
17142
17142
|
}
|
|
17143
17143
|
/**
|
|
17144
17144
|
Create a set of decorations, using the structure of the given
|
|
@@ -17187,7 +17187,7 @@ class lt {
|
|
|
17187
17187
|
let a = this.local[l].map(e, r, i);
|
|
17188
17188
|
a && a.type.valid(n, a) ? (s || (s = [])).push(a) : o.onRemove && o.onRemove(this.local[l].spec);
|
|
17189
17189
|
}
|
|
17190
|
-
return this.children.length ?
|
|
17190
|
+
return this.children.length ? LE(this.children, s || [], e, n, r, i, o) : s ? new lt(s.sort(Yr), bi) : Mt;
|
|
17191
17191
|
}
|
|
17192
17192
|
/**
|
|
17193
17193
|
Add the given array of decorations to the ones in the set,
|
|
@@ -17260,7 +17260,7 @@ class lt {
|
|
|
17260
17260
|
}
|
|
17261
17261
|
}
|
|
17262
17262
|
if (i) {
|
|
17263
|
-
let l = new lt(i.sort(Yr),
|
|
17263
|
+
let l = new lt(i.sort(Yr), bi);
|
|
17264
17264
|
return r ? new ar([l, r]) : l;
|
|
17265
17265
|
}
|
|
17266
17266
|
return r || Mt;
|
|
@@ -17292,7 +17292,7 @@ class lt {
|
|
|
17292
17292
|
*/
|
|
17293
17293
|
localsInner(e) {
|
|
17294
17294
|
if (this == Mt)
|
|
17295
|
-
return
|
|
17295
|
+
return bi;
|
|
17296
17296
|
if (e.inlineContent || !this.local.some(vr.is))
|
|
17297
17297
|
return this.local;
|
|
17298
17298
|
let n = [];
|
|
@@ -17346,7 +17346,7 @@ class ar {
|
|
|
17346
17346
|
n.push(o[s]);
|
|
17347
17347
|
}
|
|
17348
17348
|
}
|
|
17349
|
-
return n ? Zc(r ? n : n.sort(Yr)) :
|
|
17349
|
+
return n ? Zc(r ? n : n.sort(Yr)) : bi;
|
|
17350
17350
|
}
|
|
17351
17351
|
// Create a group for the given array of decoration sets, or return
|
|
17352
17352
|
// a single set when possible.
|
|
@@ -17365,7 +17365,7 @@ class ar {
|
|
|
17365
17365
|
this.members[n].forEachSet(e);
|
|
17366
17366
|
}
|
|
17367
17367
|
}
|
|
17368
|
-
function
|
|
17368
|
+
function LE(t, e, n, r, i, o, s) {
|
|
17369
17369
|
let l = t.slice();
|
|
17370
17370
|
for (let c = 0, u = o; c < n.maps.length; c++) {
|
|
17371
17371
|
let d = 0;
|
|
@@ -17401,7 +17401,7 @@ function L5(t, e, n, r, i, o, s) {
|
|
|
17401
17401
|
a = !0;
|
|
17402
17402
|
}
|
|
17403
17403
|
if (a) {
|
|
17404
|
-
let c =
|
|
17404
|
+
let c = DE(l, t, e, n, i, o, s), u = Qs(c, r, 0, s);
|
|
17405
17405
|
e = u.local;
|
|
17406
17406
|
for (let d = 0; d < l.length; d += 3)
|
|
17407
17407
|
l[d + 1] < 0 && (l.splice(d, 3), d -= 3);
|
|
@@ -17424,7 +17424,7 @@ function bg(t, e) {
|
|
|
17424
17424
|
}
|
|
17425
17425
|
return n;
|
|
17426
17426
|
}
|
|
17427
|
-
function
|
|
17427
|
+
function DE(t, e, n, r, i, o, s) {
|
|
17428
17428
|
function l(a, c) {
|
|
17429
17429
|
for (let u = 0; u < a.local.length; u++) {
|
|
17430
17430
|
let d = a.local[u].map(r, i, c);
|
|
@@ -17499,15 +17499,15 @@ function na(t) {
|
|
|
17499
17499
|
r && r != Mt && e.push(r);
|
|
17500
17500
|
}), t.cursorWrapper && e.push(lt.create(t.state.doc, [t.cursorWrapper.deco])), ar.from(e);
|
|
17501
17501
|
}
|
|
17502
|
-
const
|
|
17502
|
+
const IE = {
|
|
17503
17503
|
childList: !0,
|
|
17504
17504
|
characterData: !0,
|
|
17505
17505
|
characterDataOldValue: !0,
|
|
17506
17506
|
attributes: !0,
|
|
17507
17507
|
attributeOldValue: !0,
|
|
17508
17508
|
subtree: !0
|
|
17509
|
-
}, $
|
|
17510
|
-
class
|
|
17509
|
+
}, $E = Yt && gr <= 11;
|
|
17510
|
+
class PE {
|
|
17511
17511
|
constructor() {
|
|
17512
17512
|
this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
|
|
17513
17513
|
}
|
|
@@ -17521,13 +17521,13 @@ class P5 {
|
|
|
17521
17521
|
return e.anchorNode == this.anchorNode && e.anchorOffset == this.anchorOffset && e.focusNode == this.focusNode && e.focusOffset == this.focusOffset;
|
|
17522
17522
|
}
|
|
17523
17523
|
}
|
|
17524
|
-
class
|
|
17524
|
+
class RE {
|
|
17525
17525
|
constructor(e, n) {
|
|
17526
|
-
this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new
|
|
17526
|
+
this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new PE(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
|
|
17527
17527
|
for (let i = 0; i < r.length; i++)
|
|
17528
17528
|
this.queue.push(r[i]);
|
|
17529
17529
|
Yt && gr <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
17530
|
-
}), $
|
|
17530
|
+
}), $E && (this.onCharData = (r) => {
|
|
17531
17531
|
this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
|
|
17532
17532
|
}), this.onSelectionChange = this.onSelectionChange.bind(this);
|
|
17533
17533
|
}
|
|
@@ -17540,7 +17540,7 @@ class R5 {
|
|
|
17540
17540
|
this.flushingSoon > -1 && (window.clearTimeout(this.flushingSoon), this.flushingSoon = -1, this.flush());
|
|
17541
17541
|
}
|
|
17542
17542
|
start() {
|
|
17543
|
-
this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom,
|
|
17543
|
+
this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, IE)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
|
|
17544
17544
|
}
|
|
17545
17545
|
stop() {
|
|
17546
17546
|
if (this.observer) {
|
|
@@ -17569,7 +17569,7 @@ class R5 {
|
|
|
17569
17569
|
return Gn(this.view);
|
|
17570
17570
|
if (Yt && gr <= 11 && !this.view.state.selection.empty) {
|
|
17571
17571
|
let e = this.view.domSelectionRange();
|
|
17572
|
-
if (e.focusNode &&
|
|
17572
|
+
if (e.focusNode && ii(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
17573
17573
|
return this.flushSoon();
|
|
17574
17574
|
}
|
|
17575
17575
|
this.flush();
|
|
@@ -17623,12 +17623,12 @@ class R5 {
|
|
|
17623
17623
|
let { focusNode: d } = this.currentSelection;
|
|
17624
17624
|
for (let f of u) {
|
|
17625
17625
|
let h = f.parentNode;
|
|
17626
|
-
h && h.nodeName == "LI" && (!d ||
|
|
17626
|
+
h && h.nodeName == "LI" && (!d || FE(e, d) != h) && f.remove();
|
|
17627
17627
|
}
|
|
17628
17628
|
}
|
|
17629
17629
|
}
|
|
17630
17630
|
let c = null;
|
|
17631
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && xl(r) && (c = Wc(e)) && c.eq(Ie.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Gn(e), this.currentSelection.set(r)) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s),
|
|
17631
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && xl(r) && (c = Wc(e)) && c.eq(Ie.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Gn(e), this.currentSelection.set(r)) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), VE(e)), this.handleDOMChange(o, s, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Gn(e), this.currentSelection.set(r));
|
|
17632
17632
|
}
|
|
17633
17633
|
registerMutation(e, n) {
|
|
17634
17634
|
if (n.indexOf(e.target) > -1)
|
|
@@ -17664,7 +17664,7 @@ class R5 {
|
|
|
17664
17664
|
}
|
|
17665
17665
|
}
|
|
17666
17666
|
let Cf = /* @__PURE__ */ new WeakMap(), Ef = !1;
|
|
17667
|
-
function
|
|
17667
|
+
function VE(t) {
|
|
17668
17668
|
if (!Cf.has(t) && (Cf.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
|
|
17669
17669
|
if (t.requiresGeckoHackNode = xn, Ef)
|
|
17670
17670
|
return;
|
|
@@ -17673,9 +17673,9 @@ function V5(t) {
|
|
|
17673
17673
|
}
|
|
17674
17674
|
function Tf(t, e) {
|
|
17675
17675
|
let n = e.startContainer, r = e.startOffset, i = e.endContainer, o = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
|
|
17676
|
-
return
|
|
17676
|
+
return ii(s.node, s.offset, i, o) && ([n, r, i, o] = [i, o, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: o };
|
|
17677
17677
|
}
|
|
17678
|
-
function
|
|
17678
|
+
function BE(t, e) {
|
|
17679
17679
|
if (e.getComposedRanges) {
|
|
17680
17680
|
let i = e.getComposedRanges(t.root)[0];
|
|
17681
17681
|
if (i)
|
|
@@ -17687,7 +17687,7 @@ function B5(t, e) {
|
|
|
17687
17687
|
}
|
|
17688
17688
|
return t.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, !0), n ? Tf(t, n) : null;
|
|
17689
17689
|
}
|
|
17690
|
-
function
|
|
17690
|
+
function FE(t, e) {
|
|
17691
17691
|
for (let n = e.parentNode; n && n != t.dom; n = n.parentNode) {
|
|
17692
17692
|
let r = t.docView.nearestDesc(n, !0);
|
|
17693
17693
|
if (r && r.node.isBlock)
|
|
@@ -17695,7 +17695,7 @@ function F5(t, e) {
|
|
|
17695
17695
|
}
|
|
17696
17696
|
return null;
|
|
17697
17697
|
}
|
|
17698
|
-
function
|
|
17698
|
+
function jE(t, e, n) {
|
|
17699
17699
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = t.docView.parseRange(e, n), a = t.domSelectionRange(), c, u = a.anchorNode;
|
|
17700
17700
|
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], xl(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), _t && t.input.lastKeyCode === 8)
|
|
17701
17701
|
for (let g = o; g > i; g--) {
|
|
@@ -17715,7 +17715,7 @@ function j5(t, e, n) {
|
|
|
17715
17715
|
to: o,
|
|
17716
17716
|
preserveWhitespace: h.parent.type.whitespace == "pre" ? "full" : !0,
|
|
17717
17717
|
findPositions: c,
|
|
17718
|
-
ruleFromNode:
|
|
17718
|
+
ruleFromNode: HE,
|
|
17719
17719
|
context: h
|
|
17720
17720
|
});
|
|
17721
17721
|
if (c && c[0].pos != null) {
|
|
@@ -17724,7 +17724,7 @@ function j5(t, e, n) {
|
|
|
17724
17724
|
}
|
|
17725
17725
|
return { doc: m, sel: p, from: s, to: l };
|
|
17726
17726
|
}
|
|
17727
|
-
function
|
|
17727
|
+
function HE(t) {
|
|
17728
17728
|
let e = t.pmViewDesc;
|
|
17729
17729
|
if (e)
|
|
17730
17730
|
return e.parseRule();
|
|
@@ -17738,8 +17738,8 @@ function H5(t) {
|
|
|
17738
17738
|
return { ignore: !0 };
|
|
17739
17739
|
return null;
|
|
17740
17740
|
}
|
|
17741
|
-
const
|
|
17742
|
-
function
|
|
17741
|
+
const zE = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
17742
|
+
function WE(t, e, n, r, i) {
|
|
17743
17743
|
let o = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
|
|
17744
17744
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
17745
17745
|
let A = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, P = Wc(t, A);
|
|
@@ -17753,10 +17753,10 @@ function W5(t, e, n, r, i) {
|
|
|
17753
17753
|
}
|
|
17754
17754
|
let s = t.state.doc.resolve(e), l = s.sharedDepth(n);
|
|
17755
17755
|
e = s.before(l + 1), n = t.state.doc.resolve(n).after(l + 1);
|
|
17756
|
-
let a = t.state.selection, c =
|
|
17756
|
+
let a = t.state.selection, c = jE(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), f, h;
|
|
17757
17757
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f = t.state.selection.to, h = "end") : (f = t.state.selection.from, h = "start"), t.input.lastKeyCode = null;
|
|
17758
|
-
let p =
|
|
17759
|
-
if (p && t.input.domChangeCount++, (
|
|
17758
|
+
let p = qE(d.content, c.doc.content, c.from, f, h);
|
|
17759
|
+
if (p && t.input.domChangeCount++, (Fi && t.input.lastIOSEnter > Date.now() - 225 || Yn) && i.some((A) => A.nodeType == 1 && !zE.test(A.nodeName)) && (!p || p.endA >= p.endB) && t.someProp("handleKeyDown", (A) => A(t, Rr(13, "Enter")))) {
|
|
17760
17760
|
t.input.lastIOSEnter = 0;
|
|
17761
17761
|
return;
|
|
17762
17762
|
}
|
|
@@ -17775,11 +17775,11 @@ function W5(t, e, n, r, i) {
|
|
|
17775
17775
|
}
|
|
17776
17776
|
t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof _e && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), Yt && gr <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
|
17777
17777
|
let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), v = u.resolve(p.start), k = m.sameParent(g) && m.parent.inlineContent && v.end() >= p.endA, b;
|
|
17778
|
-
if ((
|
|
17778
|
+
if ((Fi && t.input.lastIOSEnter > Date.now() - 225 && (!k || i.some((A) => A.nodeName == "DIV" || A.nodeName == "P")) || !k && m.pos < c.doc.content.size && !m.sameParent(g) && (b = Ie.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && b.head == g.pos) && t.someProp("handleKeyDown", (A) => A(t, Rr(13, "Enter")))) {
|
|
17779
17779
|
t.input.lastIOSEnter = 0;
|
|
17780
17780
|
return;
|
|
17781
17781
|
}
|
|
17782
|
-
if (t.state.selection.anchor > p.start &&
|
|
17782
|
+
if (t.state.selection.anchor > p.start && YE(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (A) => A(t, Rr(8, "Backspace")))) {
|
|
17783
17783
|
Yn && _t && t.domObserver.suppressSelectionUpdates();
|
|
17784
17784
|
return;
|
|
17785
17785
|
}
|
|
@@ -17794,7 +17794,7 @@ function W5(t, e, n, r, i) {
|
|
|
17794
17794
|
Yt && gr <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => Gn(t), 20)), w = t.state.tr.delete(y, x), T = u.resolve(p.start).marksAcross(u.resolve(p.endA));
|
|
17795
17795
|
else if (
|
|
17796
17796
|
// Adding or removing a mark
|
|
17797
|
-
p.endA == p.endB && (D =
|
|
17797
|
+
p.endA == p.endB && (D = UE(m.parent.content.cut(m.parentOffset, g.parentOffset), v.parent.content.cut(v.parentOffset, p.endA - v.start())))
|
|
17798
17798
|
)
|
|
17799
17799
|
w = t.state.tr, D.type == "add" ? w.addMark(y, x, D.mark) : w.removeMark(y, x, D.mark);
|
|
17800
17800
|
else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
@@ -17813,7 +17813,7 @@ function W5(t, e, n, r, i) {
|
|
|
17813
17813
|
function Mf(t, e, n) {
|
|
17814
17814
|
return Math.max(n.anchor, n.head) > e.content.size ? null : Uc(t, e.resolve(n.anchor), e.resolve(n.head));
|
|
17815
17815
|
}
|
|
17816
|
-
function
|
|
17816
|
+
function UE(t, e) {
|
|
17817
17817
|
let n = t.firstChild.marks, r = e.firstChild.marks, i = n, o = r, s, l, a;
|
|
17818
17818
|
for (let u = 0; u < r.length; u++)
|
|
17819
17819
|
i = r[u].removeFromSet(i);
|
|
@@ -17831,7 +17831,7 @@ function U5(t, e) {
|
|
|
17831
17831
|
if (ee.from(c).eq(t))
|
|
17832
17832
|
return { mark: l, type: s };
|
|
17833
17833
|
}
|
|
17834
|
-
function
|
|
17834
|
+
function YE(t, e, n, r, i) {
|
|
17835
17835
|
if (
|
|
17836
17836
|
// The content must have shrunk
|
|
17837
17837
|
n - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
@@ -17859,7 +17859,7 @@ function ra(t, e, n) {
|
|
|
17859
17859
|
}
|
|
17860
17860
|
return i;
|
|
17861
17861
|
}
|
|
17862
|
-
function
|
|
17862
|
+
function qE(t, e, n, r, i) {
|
|
17863
17863
|
let o = t.findDiffStart(e, n);
|
|
17864
17864
|
if (o == null)
|
|
17865
17865
|
return null;
|
|
@@ -17883,7 +17883,7 @@ function _f(t) {
|
|
|
17883
17883
|
let e = t.charCodeAt(0), n = t.charCodeAt(1);
|
|
17884
17884
|
return e >= 56320 && e <= 57343 && n >= 55296 && n <= 56319;
|
|
17885
17885
|
}
|
|
17886
|
-
class
|
|
17886
|
+
class KE {
|
|
17887
17887
|
/**
|
|
17888
17888
|
Create a view. `place` may be a DOM node that the editor should
|
|
17889
17889
|
be appended to, a function that will place it into the document,
|
|
@@ -17892,7 +17892,7 @@ class K5 {
|
|
|
17892
17892
|
added to the document.
|
|
17893
17893
|
*/
|
|
17894
17894
|
constructor(e, n) {
|
|
17895
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new
|
|
17895
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new hE(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(If), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Lf(this), Af(this), this.nodeViews = Df(this), this.docView = uf(this.state.doc, Nf(this), na(this), this.dom, this), this.domObserver = new RE(this, (r, i, o, s) => WE(this, r, i, o, s)), this.domObserver.start(), pE(this), this.updatePluginViews();
|
|
17896
17896
|
}
|
|
17897
17897
|
/**
|
|
17898
17898
|
Holds `true` when a
|
|
@@ -17952,22 +17952,22 @@ class K5 {
|
|
|
17952
17952
|
let l = i.plugins != e.plugins || this._props.plugins != n.plugins;
|
|
17953
17953
|
if (l || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
|
|
17954
17954
|
let h = Df(this);
|
|
17955
|
-
|
|
17955
|
+
JE(h, this.nodeViews) && (this.nodeViews = h, o = !0);
|
|
17956
17956
|
}
|
|
17957
17957
|
(l || n.handleDOMEvents != this._props.handleDOMEvents) && sc(this), this.editable = Lf(this), Af(this);
|
|
17958
17958
|
let a = na(this), c = Nf(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, a);
|
|
17959
17959
|
(d || !e.selection.eq(i.selection)) && (s = !0);
|
|
17960
|
-
let f = u == "preserve" && s && this.dom.style.overflowAnchor == null &&
|
|
17960
|
+
let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && M5(this);
|
|
17961
17961
|
if (s) {
|
|
17962
17962
|
this.domObserver.stop();
|
|
17963
|
-
let h = d && (Yt || _t) && !this.composing && !i.selection.empty && !e.selection.empty &&
|
|
17963
|
+
let h = d && (Yt || _t) && !this.composing && !i.selection.empty && !e.selection.empty && GE(i.selection, e.selection);
|
|
17964
17964
|
if (d) {
|
|
17965
17965
|
let p = _t ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
17966
|
-
this.composing && (this.input.compositionNode =
|
|
17966
|
+
this.composing && (this.input.compositionNode = TE(this)), (o || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = uf(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
|
|
17967
17967
|
}
|
|
17968
|
-
h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) &&
|
|
17968
|
+
h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && X5(this)) ? Gn(this, h) : (rg(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
17969
17969
|
}
|
|
17970
|
-
this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : f &&
|
|
17970
|
+
this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : f && _5(f);
|
|
17971
17971
|
}
|
|
17972
17972
|
/**
|
|
17973
17973
|
@internal
|
|
@@ -18054,7 +18054,7 @@ class K5 {
|
|
|
18054
18054
|
Focus the editor.
|
|
18055
18055
|
*/
|
|
18056
18056
|
focus() {
|
|
18057
|
-
this.domObserver.stop(), this.editable &&
|
|
18057
|
+
this.domObserver.stop(), this.editable && N5(this.dom), Gn(this), this.domObserver.start();
|
|
18058
18058
|
}
|
|
18059
18059
|
/**
|
|
18060
18060
|
Get the document root in which the editor exists. This will
|
|
@@ -18088,7 +18088,7 @@ class K5 {
|
|
|
18088
18088
|
the top level, not in any node.
|
|
18089
18089
|
*/
|
|
18090
18090
|
posAtCoords(e) {
|
|
18091
|
-
return $
|
|
18091
|
+
return $5(this, e);
|
|
18092
18092
|
}
|
|
18093
18093
|
/**
|
|
18094
18094
|
Returns the viewport rectangle at a given document position.
|
|
@@ -18153,7 +18153,7 @@ class K5 {
|
|
|
18153
18153
|
pass a different state.
|
|
18154
18154
|
*/
|
|
18155
18155
|
endOfTextblock(e, n) {
|
|
18156
|
-
return
|
|
18156
|
+
return F5(this, n || this.state, e);
|
|
18157
18157
|
}
|
|
18158
18158
|
/**
|
|
18159
18159
|
Run the editor's paste logic with the given HTML string. The
|
|
@@ -18185,7 +18185,7 @@ class K5 {
|
|
|
18185
18185
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
18186
18186
|
*/
|
|
18187
18187
|
destroy() {
|
|
18188
|
-
this.docView && (
|
|
18188
|
+
this.docView && (mE(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], na(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, y5());
|
|
18189
18189
|
}
|
|
18190
18190
|
/**
|
|
18191
18191
|
This is true when the view has been
|
|
@@ -18199,7 +18199,7 @@ class K5 {
|
|
|
18199
18199
|
Used for testing.
|
|
18200
18200
|
*/
|
|
18201
18201
|
dispatchEvent(e) {
|
|
18202
|
-
return
|
|
18202
|
+
return yE(this, e);
|
|
18203
18203
|
}
|
|
18204
18204
|
/**
|
|
18205
18205
|
Dispatch a transaction. Will call
|
|
@@ -18219,7 +18219,7 @@ class K5 {
|
|
|
18219
18219
|
*/
|
|
18220
18220
|
domSelectionRange() {
|
|
18221
18221
|
let e = this.domSelection();
|
|
18222
|
-
return e ? Pt && this.root.nodeType === 11 &&
|
|
18222
|
+
return e ? Pt && this.root.nodeType === 11 && x5(this.dom.ownerDocument) == this.dom && BE(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
|
|
18223
18223
|
}
|
|
18224
18224
|
/**
|
|
18225
18225
|
@internal
|
|
@@ -18246,7 +18246,7 @@ function Af(t) {
|
|
|
18246
18246
|
function Lf(t) {
|
|
18247
18247
|
return !t.someProp("editable", (e) => e(t.state) === !1);
|
|
18248
18248
|
}
|
|
18249
|
-
function
|
|
18249
|
+
function GE(t, e) {
|
|
18250
18250
|
let n = Math.min(t.$anchor.sharedDepth(t.head), e.$anchor.sharedDepth(e.head));
|
|
18251
18251
|
return t.$anchor.start(n) != e.$anchor.start(n);
|
|
18252
18252
|
}
|
|
@@ -18258,7 +18258,7 @@ function Df(t) {
|
|
|
18258
18258
|
}
|
|
18259
18259
|
return t.someProp("nodeViews", n), t.someProp("markViews", n), e;
|
|
18260
18260
|
}
|
|
18261
|
-
function
|
|
18261
|
+
function JE(t, e) {
|
|
18262
18262
|
let n = 0, r = 0;
|
|
18263
18263
|
for (let i in t) {
|
|
18264
18264
|
if (t[i] != e[i])
|
|
@@ -18351,14 +18351,14 @@ var Sr = {
|
|
|
18351
18351
|
220: "|",
|
|
18352
18352
|
221: "}",
|
|
18353
18353
|
222: '"'
|
|
18354
|
-
},
|
|
18354
|
+
}, ZE = typeof navigator < "u" && /Mac/.test(navigator.platform), XE = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
18355
18355
|
for (var Ct = 0; Ct < 10; Ct++) Sr[48 + Ct] = Sr[96 + Ct] = String(Ct);
|
|
18356
18356
|
for (var Ct = 1; Ct <= 24; Ct++) Sr[Ct + 111] = "F" + Ct;
|
|
18357
18357
|
for (var Ct = 65; Ct <= 90; Ct++)
|
|
18358
18358
|
Sr[Ct] = String.fromCharCode(Ct + 32), el[Ct] = String.fromCharCode(Ct);
|
|
18359
18359
|
for (var ia in Sr) el.hasOwnProperty(ia) || (el[ia] = Sr[ia]);
|
|
18360
|
-
function
|
|
18361
|
-
var e =
|
|
18360
|
+
function QE(t) {
|
|
18361
|
+
var e = ZE && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || XE && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? el : Sr)[t.keyCode] || t.key || "Unidentified";
|
|
18362
18362
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
18363
18363
|
}
|
|
18364
18364
|
const eT = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
|
|
@@ -18398,7 +18398,7 @@ function rT(t) {
|
|
|
18398
18398
|
function xg(t) {
|
|
18399
18399
|
let e = nT(t);
|
|
18400
18400
|
return function(n, r) {
|
|
18401
|
-
let i =
|
|
18401
|
+
let i = QE(r), o, s = e[oa(i, r)];
|
|
18402
18402
|
if (s && s(n.state, n.dispatch, n))
|
|
18403
18403
|
return !0;
|
|
18404
18404
|
if (i.length == 1 && i != " ") {
|
|
@@ -18433,13 +18433,13 @@ const Og = (t, e, n) => {
|
|
|
18433
18433
|
let o = i.nodeBefore;
|
|
18434
18434
|
if (Dg(t, i, e, -1))
|
|
18435
18435
|
return !0;
|
|
18436
|
-
if (r.parent.content.size == 0 && (
|
|
18436
|
+
if (r.parent.content.size == 0 && (ji(o, "end") || xe.isSelectable(o)))
|
|
18437
18437
|
for (let s = r.depth; ; s--) {
|
|
18438
18438
|
let l = wl(t.doc, r.before(s), r.after(s), he.empty);
|
|
18439
18439
|
if (l && l.slice.size < l.to - l.from) {
|
|
18440
18440
|
if (e) {
|
|
18441
18441
|
let a = t.tr.step(l);
|
|
18442
|
-
a.setSelection(
|
|
18442
|
+
a.setSelection(ji(o, "end") ? Ie.findFrom(a.doc.resolve(a.mapping.map(i.pos, -1)), -1) : xe.create(a.doc, i.pos - o.nodeSize)), e(a.scrollIntoView());
|
|
18443
18443
|
}
|
|
18444
18444
|
return !0;
|
|
18445
18445
|
}
|
|
@@ -18488,7 +18488,7 @@ function Cg(t, e, n) {
|
|
|
18488
18488
|
}
|
|
18489
18489
|
return !0;
|
|
18490
18490
|
}
|
|
18491
|
-
function
|
|
18491
|
+
function ji(t, e, n = !1) {
|
|
18492
18492
|
for (let r = t; r; r = e == "start" ? r.firstChild : r.lastChild) {
|
|
18493
18493
|
if (r.isTextblock)
|
|
18494
18494
|
return !0;
|
|
@@ -18533,12 +18533,12 @@ const Mg = (t, e, n) => {
|
|
|
18533
18533
|
let o = i.nodeAfter;
|
|
18534
18534
|
if (Dg(t, i, e, 1))
|
|
18535
18535
|
return !0;
|
|
18536
|
-
if (r.parent.content.size == 0 && (
|
|
18536
|
+
if (r.parent.content.size == 0 && (ji(o, "start") || xe.isSelectable(o))) {
|
|
18537
18537
|
let s = wl(t.doc, r.before(), r.after(), he.empty);
|
|
18538
18538
|
if (s && s.slice.size < s.to - s.from) {
|
|
18539
18539
|
if (e) {
|
|
18540
18540
|
let l = t.tr.step(s);
|
|
18541
|
-
l.setSelection(
|
|
18541
|
+
l.setSelection(ji(o, "start") ? Ie.findFrom(l.doc.resolve(l.mapping.map(i.pos)), 1) : xe.create(l.doc, l.mapping.map(i.pos))), e(l.scrollIntoView());
|
|
18542
18542
|
}
|
|
18543
18543
|
return !0;
|
|
18544
18544
|
}
|
|
@@ -18695,7 +18695,7 @@ function Dg(t, e, n, r) {
|
|
|
18695
18695
|
let u = o.type.spec.isolating || r > 0 && a ? null : Ie.findFrom(e, 1), d = u && u.$from.blockRange(u.$to), f = d && Xi(d);
|
|
18696
18696
|
if (f != null && f >= e.depth)
|
|
18697
18697
|
return n && n(t.tr.lift(d, f).scrollIntoView()), !0;
|
|
18698
|
-
if (c &&
|
|
18698
|
+
if (c && ji(o, "start", !0) && ji(i, "end")) {
|
|
18699
18699
|
let h = i, p = [];
|
|
18700
18700
|
for (; p.push(h), !h.isTextblock; )
|
|
18701
18701
|
h = h.lastChild;
|
|
@@ -19192,7 +19192,7 @@ function Vf(t, e) {
|
|
|
19192
19192
|
return Array.isArray(e) ? e.some((n) => (typeof n == "string" ? n : n.name) === t.name) : e;
|
|
19193
19193
|
}
|
|
19194
19194
|
function ru(t, e) {
|
|
19195
|
-
const n =
|
|
19195
|
+
const n = fi.fromSchema(e).serializeFragment(t), i = document.implementation.createHTMLDocument().createElement("div");
|
|
19196
19196
|
return i.appendChild(n), i.innerHTML;
|
|
19197
19197
|
}
|
|
19198
19198
|
const MT = (t, e = 500) => {
|
|
@@ -19550,9 +19550,9 @@ function VT(t) {
|
|
|
19550
19550
|
const e = t.filter((n, r) => t.indexOf(n) !== r);
|
|
19551
19551
|
return Array.from(new Set(e));
|
|
19552
19552
|
}
|
|
19553
|
-
class
|
|
19553
|
+
class Oi {
|
|
19554
19554
|
constructor(e, n) {
|
|
19555
|
-
this.splittableMarks = [], this.editor = n, this.extensions =
|
|
19555
|
+
this.splittableMarks = [], this.editor = n, this.extensions = Oi.resolve(e), this.schema = TT(this.extensions, n), this.setupExtensions();
|
|
19556
19556
|
}
|
|
19557
19557
|
/**
|
|
19558
19558
|
* Returns a flattened and sorted extension list while
|
|
@@ -19561,7 +19561,7 @@ class Si {
|
|
|
19561
19561
|
* @returns An flattened and sorted array of Tiptap extensions
|
|
19562
19562
|
*/
|
|
19563
19563
|
static resolve(e) {
|
|
19564
|
-
const n =
|
|
19564
|
+
const n = Oi.sort(Oi.flatten(e)), r = VT(n.map((i) => i.name));
|
|
19565
19565
|
return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), n;
|
|
19566
19566
|
}
|
|
19567
19567
|
/**
|
|
@@ -19614,7 +19614,7 @@ class Si {
|
|
|
19614
19614
|
* @returns An array of Prosemirror plugins
|
|
19615
19615
|
*/
|
|
19616
19616
|
get plugins() {
|
|
19617
|
-
const { editor: e } = this, n =
|
|
19617
|
+
const { editor: e } = this, n = Oi.sort([...this.extensions].reverse()), r = [], i = [], o = n.map((s) => {
|
|
19618
19618
|
const l = {
|
|
19619
19619
|
name: s.name,
|
|
19620
19620
|
options: s.options,
|
|
@@ -21205,7 +21205,7 @@ let f_ = class extends OT {
|
|
|
21205
21205
|
i_,
|
|
21206
21206
|
a_
|
|
21207
21207
|
].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o == null ? void 0 : o.type));
|
|
21208
|
-
this.extensionManager = new
|
|
21208
|
+
this.extensionManager = new Oi(i, this);
|
|
21209
21209
|
}
|
|
21210
21210
|
/**
|
|
21211
21211
|
* Creates an command manager.
|
|
@@ -21241,7 +21241,7 @@ let f_ = class extends OT {
|
|
|
21241
21241
|
}), n = ac(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
21242
21242
|
}
|
|
21243
21243
|
const r = Fg(n, this.options.autofocus);
|
|
21244
|
-
this.view = new
|
|
21244
|
+
this.view = new KE(this.options.element, {
|
|
21245
21245
|
...this.options.editorProps,
|
|
21246
21246
|
attributes: {
|
|
21247
21247
|
// add `role="textbox"` to the editor element
|
|
@@ -21249,7 +21249,7 @@ let f_ = class extends OT {
|
|
|
21249
21249
|
...(e = this.options.editorProps) === null || e === void 0 ? void 0 : e.attributes
|
|
21250
21250
|
},
|
|
21251
21251
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
21252
|
-
state:
|
|
21252
|
+
state: Si.create({
|
|
21253
21253
|
doc: n,
|
|
21254
21254
|
selection: r || void 0
|
|
21255
21255
|
})
|
|
@@ -21409,7 +21409,7 @@ let f_ = class extends OT {
|
|
|
21409
21409
|
return this.$pos(0);
|
|
21410
21410
|
}
|
|
21411
21411
|
};
|
|
21412
|
-
function
|
|
21412
|
+
function Hi(t) {
|
|
21413
21413
|
return new Ml({
|
|
21414
21414
|
find: t.find,
|
|
21415
21415
|
handler: ({ state: e, range: n, match: r }) => {
|
|
@@ -21518,7 +21518,7 @@ let Gt = class dc {
|
|
|
21518
21518
|
})), n;
|
|
21519
21519
|
}
|
|
21520
21520
|
};
|
|
21521
|
-
function
|
|
21521
|
+
function zi(t) {
|
|
21522
21522
|
return new DT({
|
|
21523
21523
|
find: t.find,
|
|
21524
21524
|
handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
|
|
@@ -21536,10 +21536,10 @@ function Hi(t) {
|
|
|
21536
21536
|
}
|
|
21537
21537
|
});
|
|
21538
21538
|
}
|
|
21539
|
-
var qt = "top", hn = "bottom", pn = "right", Kt = "left", uu = "auto", rs = [qt, hn, pn, Kt],
|
|
21540
|
-
return t.concat([e + "-" +
|
|
21539
|
+
var qt = "top", hn = "bottom", pn = "right", Kt = "left", uu = "auto", rs = [qt, hn, pn, Kt], Wi = "start", Ho = "end", h_ = "clippingParents", Yg = "viewport", lo = "popper", p_ = "reference", zf = /* @__PURE__ */ rs.reduce(function(t, e) {
|
|
21540
|
+
return t.concat([e + "-" + Wi, e + "-" + Ho]);
|
|
21541
21541
|
}, []), qg = /* @__PURE__ */ [].concat(rs, [uu]).reduce(function(t, e) {
|
|
21542
|
-
return t.concat([e, e + "-" +
|
|
21542
|
+
return t.concat([e, e + "-" + Wi, e + "-" + Ho]);
|
|
21543
21543
|
}, []), m_ = "beforeRead", g_ = "read", y_ = "afterRead", v_ = "beforeMain", b_ = "main", w_ = "afterMain", k_ = "beforeWrite", x_ = "write", S_ = "afterWrite", O_ = [m_, g_, y_, v_, b_, w_, k_, x_, S_];
|
|
21544
21544
|
function Pn(t) {
|
|
21545
21545
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
@@ -21553,7 +21553,7 @@ function rn(t) {
|
|
|
21553
21553
|
}
|
|
21554
21554
|
return t;
|
|
21555
21555
|
}
|
|
21556
|
-
function
|
|
21556
|
+
function si(t) {
|
|
21557
21557
|
var e = rn(t).Element;
|
|
21558
21558
|
return t instanceof e || t instanceof Element;
|
|
21559
21559
|
}
|
|
@@ -21612,7 +21612,7 @@ const Kg = {
|
|
|
21612
21612
|
function An(t) {
|
|
21613
21613
|
return t.split("-")[0];
|
|
21614
21614
|
}
|
|
21615
|
-
var qr = Math.max, rl = Math.min,
|
|
21615
|
+
var qr = Math.max, rl = Math.min, Ui = Math.round;
|
|
21616
21616
|
function fc() {
|
|
21617
21617
|
var t = navigator.userAgentData;
|
|
21618
21618
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -21622,11 +21622,11 @@ function fc() {
|
|
|
21622
21622
|
function Gg() {
|
|
21623
21623
|
return !/^((?!chrome|android).)*safari/i.test(fc());
|
|
21624
21624
|
}
|
|
21625
|
-
function
|
|
21625
|
+
function Yi(t, e, n) {
|
|
21626
21626
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
21627
21627
|
var r = t.getBoundingClientRect(), i = 1, o = 1;
|
|
21628
|
-
e && un(t) && (i = t.offsetWidth > 0 &&
|
|
21629
|
-
var s =
|
|
21628
|
+
e && un(t) && (i = t.offsetWidth > 0 && Ui(r.width) / t.offsetWidth || 1, o = t.offsetHeight > 0 && Ui(r.height) / t.offsetHeight || 1);
|
|
21629
|
+
var s = si(t) ? rn(t) : window, l = s.visualViewport, a = !Gg() && n, c = (r.left + (a && l ? l.offsetLeft : 0)) / i, u = (r.top + (a && l ? l.offsetTop : 0)) / o, d = r.width / i, f = r.height / o;
|
|
21630
21630
|
return {
|
|
21631
21631
|
width: d,
|
|
21632
21632
|
height: f,
|
|
@@ -21639,7 +21639,7 @@ function Ui(t, e, n) {
|
|
|
21639
21639
|
};
|
|
21640
21640
|
}
|
|
21641
21641
|
function fu(t) {
|
|
21642
|
-
var e =
|
|
21642
|
+
var e = Yi(t), n = t.offsetWidth, r = t.offsetHeight;
|
|
21643
21643
|
return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
21644
21644
|
x: t.offsetLeft,
|
|
21645
21645
|
y: t.offsetTop,
|
|
@@ -21668,7 +21668,7 @@ function T_(t) {
|
|
|
21668
21668
|
return ["table", "td", "th"].indexOf(Pn(t)) >= 0;
|
|
21669
21669
|
}
|
|
21670
21670
|
function Nr(t) {
|
|
21671
|
-
return ((
|
|
21671
|
+
return ((si(t) ? t.ownerDocument : (
|
|
21672
21672
|
// $FlowFixMe[prop-missing]
|
|
21673
21673
|
t.document
|
|
21674
21674
|
)) || window.document).documentElement;
|
|
@@ -21761,7 +21761,7 @@ const D_ = {
|
|
|
21761
21761
|
requires: ["popperOffsets"],
|
|
21762
21762
|
requiresIfExists: ["preventOverflow"]
|
|
21763
21763
|
};
|
|
21764
|
-
function
|
|
21764
|
+
function qi(t) {
|
|
21765
21765
|
return t.split("-")[1];
|
|
21766
21766
|
}
|
|
21767
21767
|
var I_ = {
|
|
@@ -21773,8 +21773,8 @@ var I_ = {
|
|
|
21773
21773
|
function $_(t, e) {
|
|
21774
21774
|
var n = t.x, r = t.y, i = e.devicePixelRatio || 1;
|
|
21775
21775
|
return {
|
|
21776
|
-
x:
|
|
21777
|
-
y:
|
|
21776
|
+
x: Ui(n * i) / i || 0,
|
|
21777
|
+
y: Ui(r * i) / i || 0
|
|
21778
21778
|
};
|
|
21779
21779
|
}
|
|
21780
21780
|
function Uf(t) {
|
|
@@ -21824,7 +21824,7 @@ function Uf(t) {
|
|
|
21824
21824
|
function P_(t) {
|
|
21825
21825
|
var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, s = o === void 0 ? !0 : o, l = n.roundOffsets, a = l === void 0 ? !0 : l, c = {
|
|
21826
21826
|
placement: An(e.placement),
|
|
21827
|
-
variation:
|
|
21827
|
+
variation: qi(e.placement),
|
|
21828
21828
|
popper: e.elements.popper,
|
|
21829
21829
|
popperRect: e.rects.popper,
|
|
21830
21830
|
gpuAcceleration: i,
|
|
@@ -21901,7 +21901,7 @@ function pu(t) {
|
|
|
21901
21901
|
};
|
|
21902
21902
|
}
|
|
21903
21903
|
function mu(t) {
|
|
21904
|
-
return
|
|
21904
|
+
return Yi(Nr(t)).left + pu(t).scrollLeft;
|
|
21905
21905
|
}
|
|
21906
21906
|
function H_(t, e) {
|
|
21907
21907
|
var n = rn(t), r = Nr(t), i = n.visualViewport, o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
|
|
@@ -21951,16 +21951,16 @@ function hc(t) {
|
|
|
21951
21951
|
});
|
|
21952
21952
|
}
|
|
21953
21953
|
function W_(t, e) {
|
|
21954
|
-
var n =
|
|
21954
|
+
var n = Yi(t, !1, e === "fixed");
|
|
21955
21955
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
21956
21956
|
}
|
|
21957
21957
|
function qf(t, e, n) {
|
|
21958
|
-
return e === Yg ? hc(H_(t, n)) :
|
|
21958
|
+
return e === Yg ? hc(H_(t, n)) : si(e) ? W_(e, n) : hc(z_(Nr(t)));
|
|
21959
21959
|
}
|
|
21960
21960
|
function U_(t) {
|
|
21961
21961
|
var e = wo(Ll(t)), n = ["absolute", "fixed"].indexOf(Zn(t).position) >= 0, r = n && un(t) ? is(t) : t;
|
|
21962
|
-
return
|
|
21963
|
-
return
|
|
21962
|
+
return si(r) ? e.filter(function(i) {
|
|
21963
|
+
return si(i) && Jg(i, r) && Pn(i) !== "body";
|
|
21964
21964
|
}) : [];
|
|
21965
21965
|
}
|
|
21966
21966
|
function Y_(t, e, n, r) {
|
|
@@ -21971,7 +21971,7 @@ function Y_(t, e, n, r) {
|
|
|
21971
21971
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
21972
21972
|
}
|
|
21973
21973
|
function t0(t) {
|
|
21974
|
-
var e = t.reference, n = t.element, r = t.placement, i = r ? An(r) : null, o = r ?
|
|
21974
|
+
var e = t.reference, n = t.element, r = t.placement, i = r ? An(r) : null, o = r ? qi(r) : null, s = e.x + e.width / 2 - n.width / 2, l = e.y + e.height / 2 - n.height / 2, a;
|
|
21975
21975
|
switch (i) {
|
|
21976
21976
|
case qt:
|
|
21977
21977
|
a = {
|
|
@@ -22007,7 +22007,7 @@ function t0(t) {
|
|
|
22007
22007
|
if (c != null) {
|
|
22008
22008
|
var u = c === "y" ? "height" : "width";
|
|
22009
22009
|
switch (o) {
|
|
22010
|
-
case
|
|
22010
|
+
case Wi:
|
|
22011
22011
|
a[c] = a[c] - (e[u] / 2 - n[u] / 2);
|
|
22012
22012
|
break;
|
|
22013
22013
|
case Ho:
|
|
@@ -22019,7 +22019,7 @@ function t0(t) {
|
|
|
22019
22019
|
}
|
|
22020
22020
|
function zo(t, e) {
|
|
22021
22021
|
e === void 0 && (e = {});
|
|
22022
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, l = n.boundary, a = l === void 0 ? h_ : l, c = n.rootBoundary, u = c === void 0 ? Yg : c, d = n.elementContext, f = d === void 0 ? lo : d, h = n.altBoundary, p = h === void 0 ? !1 : h, m = n.padding, g = m === void 0 ? 0 : m, v = Xg(typeof g != "number" ? g : Qg(g, rs)), k = f === lo ? p_ : lo, b = t.rects.popper, y = t.elements[p ? k : f], x = Y_(
|
|
22022
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, l = n.boundary, a = l === void 0 ? h_ : l, c = n.rootBoundary, u = c === void 0 ? Yg : c, d = n.elementContext, f = d === void 0 ? lo : d, h = n.altBoundary, p = h === void 0 ? !1 : h, m = n.padding, g = m === void 0 ? 0 : m, v = Xg(typeof g != "number" ? g : Qg(g, rs)), k = f === lo ? p_ : lo, b = t.rects.popper, y = t.elements[p ? k : f], x = Y_(si(y) ? y : y.contextElement || Nr(t.elements.popper), a, u, s), w = Yi(t.elements.reference), T = t0({
|
|
22023
22023
|
reference: w,
|
|
22024
22024
|
element: b,
|
|
22025
22025
|
placement: i
|
|
@@ -22040,8 +22040,8 @@ function zo(t, e) {
|
|
|
22040
22040
|
}
|
|
22041
22041
|
function q_(t, e) {
|
|
22042
22042
|
e === void 0 && (e = {});
|
|
22043
|
-
var n = e, r = n.placement, i = n.boundary, o = n.rootBoundary, s = n.padding, l = n.flipVariations, a = n.allowedAutoPlacements, c = a === void 0 ? qg : a, u =
|
|
22044
|
-
return
|
|
22043
|
+
var n = e, r = n.placement, i = n.boundary, o = n.rootBoundary, s = n.padding, l = n.flipVariations, a = n.allowedAutoPlacements, c = a === void 0 ? qg : a, u = qi(r), d = u ? l ? zf : zf.filter(function(p) {
|
|
22044
|
+
return qi(p) === u;
|
|
22045
22045
|
}) : rs, f = d.filter(function(p) {
|
|
22046
22046
|
return c.indexOf(p) >= 0;
|
|
22047
22047
|
});
|
|
@@ -22077,7 +22077,7 @@ function G_(t) {
|
|
|
22077
22077
|
allowedAutoPlacements: m
|
|
22078
22078
|
}) : X);
|
|
22079
22079
|
}, []), x = e.rects.reference, w = e.rects.popper, T = /* @__PURE__ */ new Map(), D = !0, A = y[0], P = 0; P < y.length; P++) {
|
|
22080
|
-
var I = y[P], j = An(I), Z =
|
|
22080
|
+
var I = y[P], j = An(I), Z = qi(I) === Wi, U = [qt, hn].indexOf(j) >= 0, R = U ? "width" : "height", C = zo(e, {
|
|
22081
22081
|
placement: I,
|
|
22082
22082
|
boundary: u,
|
|
22083
22083
|
rootBoundary: d,
|
|
@@ -22210,7 +22210,7 @@ function oN(t) {
|
|
|
22210
22210
|
rootBoundary: c,
|
|
22211
22211
|
padding: d,
|
|
22212
22212
|
altBoundary: u
|
|
22213
|
-
}), v = An(e.placement), k =
|
|
22213
|
+
}), v = An(e.placement), k = qi(e.placement), b = !k, y = hu(v), x = iN(y), w = e.modifiersData.popperOffsets, T = e.rects.reference, D = e.rects.popper, A = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
22214
22214
|
placement: e.placement
|
|
22215
22215
|
})) : m, P = typeof A == "number" ? {
|
|
22216
22216
|
mainAxis: A,
|
|
@@ -22224,7 +22224,7 @@ function oN(t) {
|
|
|
22224
22224
|
};
|
|
22225
22225
|
if (w) {
|
|
22226
22226
|
if (o) {
|
|
22227
|
-
var Z, U = y === "y" ? qt : Kt, R = y === "y" ? hn : pn, C = y === "y" ? "height" : "width", $ = w[y], z = $ + g[U], te = $ - g[R], W = h ? -D[C] / 2 : 0, ie = k ===
|
|
22227
|
+
var Z, U = y === "y" ? qt : Kt, R = y === "y" ? hn : pn, C = y === "y" ? "height" : "width", $ = w[y], z = $ + g[U], te = $ - g[R], W = h ? -D[C] / 2 : 0, ie = k === Wi ? T[C] : D[C], le = k === Wi ? -D[C] : -T[C], F = e.elements.arrow, q = h && F ? fu(F) : {
|
|
22228
22228
|
width: 0,
|
|
22229
22229
|
height: 0
|
|
22230
22230
|
}, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Zg(), J = X[U], B = X[R], ye = bo(0, T[C], q[C]), ge = b ? T[C] / 2 - W - ye - J - P.mainAxis : ie - ye - J - P.mainAxis, Me = b ? -T[C] / 2 + W + ye + B + P.mainAxis : le + ye + B + P.mainAxis, $e = e.elements.arrow && is(e.elements.arrow), Ye = $e ? y === "y" ? $e.clientTop || 0 : $e.clientLeft || 0 : 0, it = (Z = I == null ? void 0 : I[y]) != null ? Z : 0, oe = $ + ge - it - Ye, De = $ + Me - it, Bt = bo(h ? rl(z, oe) : z, $, h ? qr(te, De) : te);
|
|
@@ -22254,12 +22254,12 @@ function aN(t) {
|
|
|
22254
22254
|
return t === rn(t) || !un(t) ? pu(t) : lN(t);
|
|
22255
22255
|
}
|
|
22256
22256
|
function cN(t) {
|
|
22257
|
-
var e = t.getBoundingClientRect(), n =
|
|
22257
|
+
var e = t.getBoundingClientRect(), n = Ui(e.width) / t.offsetWidth || 1, r = Ui(e.height) / t.offsetHeight || 1;
|
|
22258
22258
|
return n !== 1 || r !== 1;
|
|
22259
22259
|
}
|
|
22260
22260
|
function uN(t, e, n) {
|
|
22261
22261
|
n === void 0 && (n = !1);
|
|
22262
|
-
var r = un(e), i = un(e) && cN(e), o = Nr(e), s =
|
|
22262
|
+
var r = un(e), i = un(e) && cN(e), o = Nr(e), s = Yi(t, i, n), l = {
|
|
22263
22263
|
scrollLeft: 0,
|
|
22264
22264
|
scrollTop: 0
|
|
22265
22265
|
}, a = {
|
|
@@ -22267,7 +22267,7 @@ function uN(t, e, n) {
|
|
|
22267
22267
|
y: 0
|
|
22268
22268
|
};
|
|
22269
22269
|
return (r || !r && !n) && ((Pn(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
22270
|
-
gu(o)) && (l = aN(e)), un(e) ? (a =
|
|
22270
|
+
gu(o)) && (l = aN(e)), un(e) ? (a = Yi(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = mu(o))), {
|
|
22271
22271
|
x: s.left + l.scrollLeft - a.x,
|
|
22272
22272
|
y: s.top + l.scrollTop - a.y,
|
|
22273
22273
|
width: s.width,
|
|
@@ -22356,7 +22356,7 @@ function mN(t) {
|
|
|
22356
22356
|
setOptions: function(v) {
|
|
22357
22357
|
var k = typeof v == "function" ? v(u.options) : v;
|
|
22358
22358
|
m(), u.options = Object.assign({}, o, u.options, k), u.scrollParents = {
|
|
22359
|
-
reference:
|
|
22359
|
+
reference: si(l) ? wo(l) : l.contextElement ? wo(l.contextElement) : [],
|
|
22360
22360
|
popper: wo(a)
|
|
22361
22361
|
};
|
|
22362
22362
|
var b = fN(pN([].concat(r, u.options.modifiers)));
|
|
@@ -22478,7 +22478,7 @@ function kN(t, e) {
|
|
|
22478
22478
|
function xN(t) {
|
|
22479
22479
|
return t.split(/\s+/).filter(Boolean);
|
|
22480
22480
|
}
|
|
22481
|
-
function
|
|
22481
|
+
function wi(t) {
|
|
22482
22482
|
return [].concat(t);
|
|
22483
22483
|
}
|
|
22484
22484
|
function Qf(t, e) {
|
|
@@ -22531,7 +22531,7 @@ function th(t, e) {
|
|
|
22531
22531
|
});
|
|
22532
22532
|
}
|
|
22533
22533
|
function _N(t) {
|
|
22534
|
-
var e, n =
|
|
22534
|
+
var e, n = wi(t), r = n[0];
|
|
22535
22535
|
return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
|
|
22536
22536
|
}
|
|
22537
22537
|
function NN(t, e) {
|
|
@@ -22583,7 +22583,7 @@ var IN = typeof window < "u" && typeof document < "u", $N = IN ? (
|
|
|
22583
22583
|
// @ts-ignore
|
|
22584
22584
|
!!window.msCrypto
|
|
22585
22585
|
) : !1;
|
|
22586
|
-
function
|
|
22586
|
+
function gi(t) {
|
|
22587
22587
|
var e = t === "destroy" ? "n already-" : " ";
|
|
22588
22588
|
return [t + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
22589
22589
|
}
|
|
@@ -22881,7 +22881,7 @@ function UN(t, e) {
|
|
|
22881
22881
|
function te() {
|
|
22882
22882
|
var _ = y.props.aria;
|
|
22883
22883
|
if (_.content) {
|
|
22884
|
-
var re = "aria-" + _.content, fe = w.id, Se =
|
|
22884
|
+
var re = "aria-" + _.content, fe = w.id, Se = wi(y.props.triggerTarget || t);
|
|
22885
22885
|
Se.forEach(function(Oe) {
|
|
22886
22886
|
var Le = Oe.getAttribute(re);
|
|
22887
22887
|
if (y.state.isVisible)
|
|
@@ -22895,7 +22895,7 @@ function UN(t, e) {
|
|
|
22895
22895
|
}
|
|
22896
22896
|
function W() {
|
|
22897
22897
|
if (!(A || !y.props.aria.expanded)) {
|
|
22898
|
-
var _ =
|
|
22898
|
+
var _ = wi(y.props.triggerTarget || t);
|
|
22899
22899
|
_.forEach(function(re) {
|
|
22900
22900
|
y.props.interactive ? re.setAttribute("aria-expanded", y.state.isVisible && re === Z() ? "true" : "false") : re.removeAttribute("aria-expanded");
|
|
22901
22901
|
});
|
|
@@ -22910,7 +22910,7 @@ function UN(t, e) {
|
|
|
22910
22910
|
if (!(Tn.isTouch && (a || _.type === "mousedown"))) {
|
|
22911
22911
|
var re = _.composedPath && _.composedPath()[0] || _.target;
|
|
22912
22912
|
if (!(y.props.interactive && nh(w, re))) {
|
|
22913
|
-
if (
|
|
22913
|
+
if (wi(y.props.triggerTarget || t).some(function(fe) {
|
|
22914
22914
|
return nh(fe, re);
|
|
22915
22915
|
})) {
|
|
22916
22916
|
if (Tn.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
|
|
@@ -22956,7 +22956,7 @@ function UN(t, e) {
|
|
|
22956
22956
|
}
|
|
22957
22957
|
function Me(_, re, fe) {
|
|
22958
22958
|
fe === void 0 && (fe = !1);
|
|
22959
|
-
var Se =
|
|
22959
|
+
var Se = wi(y.props.triggerTarget || t);
|
|
22960
22960
|
Se.forEach(function(Oe) {
|
|
22961
22961
|
Oe.addEventListener(_, re, fe), h.push({
|
|
22962
22962
|
node: Oe,
|
|
@@ -23135,12 +23135,12 @@ function UN(t, e) {
|
|
|
23135
23135
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
|
|
23136
23136
|
}
|
|
23137
23137
|
function H(_) {
|
|
23138
|
-
if (process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed,
|
|
23138
|
+
if (process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed, gi("setProps")), !y.state.isDestroyed) {
|
|
23139
23139
|
z("onBeforeUpdate", [y, _]), Ye();
|
|
23140
23140
|
var re = y.props, fe = oh(t, Object.assign({}, re, eh(_), {
|
|
23141
23141
|
ignoreAttributes: !0
|
|
23142
23142
|
}));
|
|
23143
|
-
y.props = fe, $e(), re.interactiveDebounce !== fe.interactiveDebounce && (ie(), p = Xf(oe, fe.interactiveDebounce)), re.triggerTarget && !fe.triggerTarget ?
|
|
23143
|
+
y.props = fe, $e(), re.interactiveDebounce !== fe.interactiveDebounce && (ie(), p = Xf(oe, fe.interactiveDebounce)), re.triggerTarget && !fe.triggerTarget ? wi(re.triggerTarget).forEach(function(Se) {
|
|
23144
23144
|
Se.removeAttribute("aria-expanded");
|
|
23145
23145
|
}) : fe.triggerTarget && t.removeAttribute("aria-expanded"), W(), $(), T && T(re, fe), y.popperInstance && (wt(), E().forEach(function(Se) {
|
|
23146
23146
|
requestAnimationFrame(Se._tippy.popperInstance.forceUpdate);
|
|
@@ -23153,7 +23153,7 @@ function UN(t, e) {
|
|
|
23153
23153
|
});
|
|
23154
23154
|
}
|
|
23155
23155
|
function M() {
|
|
23156
|
-
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed,
|
|
23156
|
+
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed, gi("show"));
|
|
23157
23157
|
var _ = y.state.isVisible, re = y.state.isDestroyed, fe = !y.state.isEnabled, Se = Tn.isTouch && !y.props.touch, Oe = ca(y.props.duration, 0, Xt.duration);
|
|
23158
23158
|
if (!(_ || re || fe || Se) && !Z().hasAttribute("disabled") && (z("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
23159
23159
|
if (y.state.isVisible = !0, j() && (w.style.visibility = "visible"), $(), X(), y.state.isMounted || (w.style.transition = "none"), j()) {
|
|
@@ -23175,7 +23175,7 @@ function UN(t, e) {
|
|
|
23175
23175
|
}
|
|
23176
23176
|
}
|
|
23177
23177
|
function N() {
|
|
23178
|
-
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed,
|
|
23178
|
+
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed, gi("hide"));
|
|
23179
23179
|
var _ = !y.state.isVisible, re = y.state.isDestroyed, fe = !y.state.isEnabled, Se = ca(y.props.duration, 1, Xt.duration);
|
|
23180
23180
|
if (!(_ || re || fe) && (z("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
23181
23181
|
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, j() && (w.style.visibility = "hidden"), ie(), J(), $(!0), j()) {
|
|
@@ -23186,17 +23186,17 @@ function UN(t, e) {
|
|
|
23186
23186
|
}
|
|
23187
23187
|
}
|
|
23188
23188
|
function G(_) {
|
|
23189
|
-
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed,
|
|
23189
|
+
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed, gi("hideWithInteractivity")), U().addEventListener("mousemove", p), Qf(ks, p), p(_);
|
|
23190
23190
|
}
|
|
23191
23191
|
function ue() {
|
|
23192
|
-
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed,
|
|
23192
|
+
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed, gi("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Tt(), E().forEach(function(_) {
|
|
23193
23193
|
_._tippy.unmount();
|
|
23194
23194
|
}), w.parentNode && w.parentNode.removeChild(w), fa = fa.filter(function(_) {
|
|
23195
23195
|
return _ !== y;
|
|
23196
23196
|
}), y.state.isMounted = !1, z("onHidden", [y]));
|
|
23197
23197
|
}
|
|
23198
23198
|
function we() {
|
|
23199
|
-
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed,
|
|
23199
|
+
process.env.NODE_ENV !== "production" && zn(y.state.isDestroyed, gi("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Ye(), delete t._tippy, y.state.isDestroyed = !0, z("onDestroy", [y]));
|
|
23200
23200
|
}
|
|
23201
23201
|
}
|
|
23202
23202
|
function Qi(t, e) {
|
|
@@ -23489,7 +23489,7 @@ Sn({
|
|
|
23489
23489
|
shouldShow: s,
|
|
23490
23490
|
tippyOptions: l
|
|
23491
23491
|
}));
|
|
23492
|
-
}),
|
|
23492
|
+
}), li(() => {
|
|
23493
23493
|
const { pluginKey: r, editor: i } = t;
|
|
23494
23494
|
i.unregisterPlugin(r);
|
|
23495
23495
|
}), () => {
|
|
@@ -23557,7 +23557,7 @@ const GN = Sn({
|
|
|
23557
23557
|
element: i
|
|
23558
23558
|
}), r.createNodeViews();
|
|
23559
23559
|
});
|
|
23560
|
-
}),
|
|
23560
|
+
}), li(() => {
|
|
23561
23561
|
const r = t.editor;
|
|
23562
23562
|
if (!r || (r.isDestroyed || r.view.setProps({
|
|
23563
23563
|
nodeViews: {}
|
|
@@ -23620,7 +23620,7 @@ Sn({
|
|
|
23620
23620
|
tippyOptions: o,
|
|
23621
23621
|
shouldShow: s
|
|
23622
23622
|
}));
|
|
23623
|
-
}),
|
|
23623
|
+
}), li(() => {
|
|
23624
23624
|
const { pluginKey: r, editor: i } = t;
|
|
23625
23625
|
i.unregisterPlugin(r);
|
|
23626
23626
|
}), () => {
|
|
@@ -23673,7 +23673,7 @@ const JN = (t = {}) => {
|
|
|
23673
23673
|
const e = sl();
|
|
23674
23674
|
return mn(() => {
|
|
23675
23675
|
e.value = new KN(t);
|
|
23676
|
-
}),
|
|
23676
|
+
}), li(() => {
|
|
23677
23677
|
var n;
|
|
23678
23678
|
(n = e.value) === null || n === void 0 || n.destroy();
|
|
23679
23679
|
}), e;
|
|
@@ -23755,11 +23755,11 @@ const JN = (t = {}) => {
|
|
|
23755
23755
|
},
|
|
23756
23756
|
addInputRules() {
|
|
23757
23757
|
return [
|
|
23758
|
-
|
|
23758
|
+
Hi({
|
|
23759
23759
|
find: QN,
|
|
23760
23760
|
type: this.type
|
|
23761
23761
|
}),
|
|
23762
|
-
|
|
23762
|
+
Hi({
|
|
23763
23763
|
find: tA,
|
|
23764
23764
|
type: this.type
|
|
23765
23765
|
})
|
|
@@ -23767,11 +23767,11 @@ const JN = (t = {}) => {
|
|
|
23767
23767
|
},
|
|
23768
23768
|
addPasteRules() {
|
|
23769
23769
|
return [
|
|
23770
|
-
|
|
23770
|
+
zi({
|
|
23771
23771
|
find: eA,
|
|
23772
23772
|
type: this.type
|
|
23773
23773
|
}),
|
|
23774
|
-
|
|
23774
|
+
zi({
|
|
23775
23775
|
find: nA,
|
|
23776
23776
|
type: this.type
|
|
23777
23777
|
})
|
|
@@ -23911,7 +23911,7 @@ const JN = (t = {}) => {
|
|
|
23911
23911
|
},
|
|
23912
23912
|
addInputRules() {
|
|
23913
23913
|
return [
|
|
23914
|
-
|
|
23914
|
+
Hi({
|
|
23915
23915
|
find: sA,
|
|
23916
23916
|
type: this.type
|
|
23917
23917
|
})
|
|
@@ -23919,7 +23919,7 @@ const JN = (t = {}) => {
|
|
|
23919
23919
|
},
|
|
23920
23920
|
addPasteRules() {
|
|
23921
23921
|
return [
|
|
23922
|
-
|
|
23922
|
+
zi({
|
|
23923
23923
|
find: lA,
|
|
23924
23924
|
type: this.type
|
|
23925
23925
|
})
|
|
@@ -24602,7 +24602,7 @@ class yn {
|
|
|
24602
24602
|
return c > _A && (l = MA(l, c), s -= c), new yn(l.append(o), s);
|
|
24603
24603
|
}
|
|
24604
24604
|
remapping(e, n) {
|
|
24605
|
-
let r = new
|
|
24605
|
+
let r = new Ei();
|
|
24606
24606
|
return this.items.forEach((i, o) => {
|
|
24607
24607
|
let s = i.mirrorOffset != null && o - i.mirrorOffset >= e ? r.maps.length - i.mirrorOffset : void 0;
|
|
24608
24608
|
r.appendMap(i.map, s);
|
|
@@ -24907,11 +24907,11 @@ const y0 = g0(!1, !0), v0 = g0(!0, !0), $A = ut.create({
|
|
|
24907
24907
|
},
|
|
24908
24908
|
addInputRules() {
|
|
24909
24909
|
return [
|
|
24910
|
-
|
|
24910
|
+
Hi({
|
|
24911
24911
|
find: RA,
|
|
24912
24912
|
type: this.type
|
|
24913
24913
|
}),
|
|
24914
|
-
|
|
24914
|
+
Hi({
|
|
24915
24915
|
find: BA,
|
|
24916
24916
|
type: this.type
|
|
24917
24917
|
})
|
|
@@ -24919,11 +24919,11 @@ const y0 = g0(!1, !0), v0 = g0(!0, !0), $A = ut.create({
|
|
|
24919
24919
|
},
|
|
24920
24920
|
addPasteRules() {
|
|
24921
24921
|
return [
|
|
24922
|
-
|
|
24922
|
+
zi({
|
|
24923
24923
|
find: VA,
|
|
24924
24924
|
type: this.type
|
|
24925
24925
|
}),
|
|
24926
|
-
|
|
24926
|
+
zi({
|
|
24927
24927
|
find: FA,
|
|
24928
24928
|
type: this.type
|
|
24929
24929
|
})
|
|
@@ -25143,7 +25143,7 @@ const y0 = g0(!1, !0), v0 = g0(!0, !0), $A = ut.create({
|
|
|
25143
25143
|
},
|
|
25144
25144
|
addInputRules() {
|
|
25145
25145
|
return [
|
|
25146
|
-
|
|
25146
|
+
Hi({
|
|
25147
25147
|
find: YA,
|
|
25148
25148
|
type: this.type
|
|
25149
25149
|
})
|
|
@@ -25151,7 +25151,7 @@ const y0 = g0(!1, !0), v0 = g0(!0, !0), $A = ut.create({
|
|
|
25151
25151
|
},
|
|
25152
25152
|
addPasteRules() {
|
|
25153
25153
|
return [
|
|
25154
|
-
|
|
25154
|
+
zi({
|
|
25155
25155
|
find: qA,
|
|
25156
25156
|
type: this.type
|
|
25157
25157
|
})
|
|
@@ -25726,7 +25726,7 @@ const QL = /* @__PURE__ */ Ne(YL, [["render", XL]]), eD = { class: "py-1 px-1 bo
|
|
|
25726
25726
|
a("update:modelValue", c.value.getHTML());
|
|
25727
25727
|
}
|
|
25728
25728
|
});
|
|
25729
|
-
|
|
25729
|
+
li(() => {
|
|
25730
25730
|
c.value.destroy();
|
|
25731
25731
|
}), Qe(() => n.modelValue, (p) => {
|
|
25732
25732
|
p !== c.value.getHTML() && c.value.commands.setContent(p, !1);
|
|
@@ -25765,7 +25765,7 @@ const QL = /* @__PURE__ */ Ne(YL, [["render", XL]]), eD = { class: "py-1 px-1 bo
|
|
|
25765
25765
|
// color: `${editor.getAttributes('textStyle').color}`,
|
|
25766
25766
|
}
|
|
25767
25767
|
}),
|
|
25768
|
-
|
|
25768
|
+
Zr(V("input", {
|
|
25769
25769
|
ref_key: "myColorPicker",
|
|
25770
25770
|
ref: o,
|
|
25771
25771
|
type: "color",
|
|
@@ -25784,7 +25784,7 @@ const QL = /* @__PURE__ */ Ne(YL, [["render", XL]]), eD = { class: "py-1 px-1 bo
|
|
|
25784
25784
|
}]),
|
|
25785
25785
|
onClick: (k) => u(v.method, v.type, v.params)
|
|
25786
25786
|
}, [
|
|
25787
|
-
v.icon ? (O(), Te(
|
|
25787
|
+
v.icon ? (O(), Te(Jr(v.icon), {
|
|
25788
25788
|
key: 0,
|
|
25789
25789
|
class: se(["", { "w-3 h-3": v.smallIcon, "w-4 h-4": !v.smallIcon && !v.largeIcon, "w-5 h-5": v.largeIcon }])
|
|
25790
25790
|
}, null, 8, ["class"])) : (O(), L("span", rD, Ee(Y(u1).capitalize(v.label)), 1))
|
|
@@ -26751,7 +26751,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
26751
26751
|
o("update:modelValue", [d, u]);
|
|
26752
26752
|
}
|
|
26753
26753
|
}]);
|
|
26754
|
-
return (c, u) => (O(), Te(
|
|
26754
|
+
return (c, u) => (O(), Te(ci, {
|
|
26755
26755
|
disabled: t.disabled,
|
|
26756
26756
|
maxWidth: "1280px"
|
|
26757
26757
|
}, {
|
|
@@ -27014,7 +27014,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27014
27014
|
i("update:modelValue", [g, m]);
|
|
27015
27015
|
}
|
|
27016
27016
|
}]);
|
|
27017
|
-
return (p, m) => (O(), Te(
|
|
27017
|
+
return (p, m) => (O(), Te(ci, {
|
|
27018
27018
|
disabled: t.disabled,
|
|
27019
27019
|
maxWidth: "1280px",
|
|
27020
27020
|
noCloseClasses: ["date-segment"]
|
|
@@ -27133,7 +27133,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27133
27133
|
var d;
|
|
27134
27134
|
return ((d = i.options) == null ? void 0 : d.zIndex) ?? 20;
|
|
27135
27135
|
});
|
|
27136
|
-
|
|
27136
|
+
_i("wpicBaseOverlayZ", r);
|
|
27137
27137
|
const i = t, o = {
|
|
27138
27138
|
pmi: "dark:bg-zinc-800",
|
|
27139
27139
|
"wpic-tools": "dark:bg-gray-940"
|
|
@@ -27160,7 +27160,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27160
27160
|
[t.options.mr]: !0
|
|
27161
27161
|
}]),
|
|
27162
27162
|
style: Mn({ zIndex: t.options.zIndex }),
|
|
27163
|
-
onClick:
|
|
27163
|
+
onClick: Ni(l, ["self"])
|
|
27164
27164
|
}, [
|
|
27165
27165
|
V("div", {
|
|
27166
27166
|
class: se(["h-full transform-gpu transition-transform", {
|
|
@@ -27218,7 +27218,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27218
27218
|
}
|
|
27219
27219
|
return mn(async () => {
|
|
27220
27220
|
s.value && (s.value.addEventListener("scroll", u), u());
|
|
27221
|
-
}),
|
|
27221
|
+
}), li(() => {
|
|
27222
27222
|
s.value && s.value.removeEventListener("scroll", u);
|
|
27223
27223
|
}), e({
|
|
27224
27224
|
goBottom: c,
|
|
@@ -27262,7 +27262,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27262
27262
|
}
|
|
27263
27263
|
}), _I = ["onClick"], NI = {
|
|
27264
27264
|
key: 0,
|
|
27265
|
-
class: "flex gap-2"
|
|
27265
|
+
class: "flex gap-2 items-center"
|
|
27266
27266
|
}, AI = {
|
|
27267
27267
|
name: "WpicTabs"
|
|
27268
27268
|
}, LI = /* @__PURE__ */ Object.assign(AI, {
|
|
@@ -27282,7 +27282,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27282
27282
|
}, s = (a) => {
|
|
27283
27283
|
i.value.push(a);
|
|
27284
27284
|
}, l = ae(() => n.modelValue);
|
|
27285
|
-
return
|
|
27285
|
+
return _i("addTab", s), _i("modelValue", l), (a, c) => {
|
|
27286
27286
|
const u = xo("wpic-badge");
|
|
27287
27287
|
return O(), L(He, null, [
|
|
27288
27288
|
V("div", {
|
|
@@ -27304,11 +27304,12 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27304
27304
|
}]),
|
|
27305
27305
|
onClick: (f) => d.disabled ? null : o(d.name)
|
|
27306
27306
|
}, [
|
|
27307
|
-
(O(), Te(
|
|
27307
|
+
(O(), Te(Jr(d.labelSlot || "div"), {
|
|
27308
27308
|
class: se({ "whitespace-nowrap text-ellipsis overflow-hidden": t.nowrap })
|
|
27309
27309
|
}, {
|
|
27310
27310
|
default: Ae(() => [
|
|
27311
27311
|
d.labelSlot ? de("", !0) : (O(), L("div", NI, [
|
|
27312
|
+
(O(), Te(Jr(d.icon), { class: "w-4.5 h-4.5 -mr-1" })),
|
|
27312
27313
|
V("div", null, Ee(d.label), 1),
|
|
27313
27314
|
d.badge ? (O(), Te(u, { key: 0 }, {
|
|
27314
27315
|
default: Ae(() => [
|
|
@@ -27345,6 +27346,9 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27345
27346
|
badge: {
|
|
27346
27347
|
type: String,
|
|
27347
27348
|
required: !1
|
|
27349
|
+
},
|
|
27350
|
+
icon: {
|
|
27351
|
+
type: Object
|
|
27348
27352
|
}
|
|
27349
27353
|
},
|
|
27350
27354
|
setup(t) {
|
|
@@ -27355,7 +27359,8 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
|
|
|
27355
27359
|
name: e.name,
|
|
27356
27360
|
disabled: e.disabled,
|
|
27357
27361
|
labelSlot: o.label,
|
|
27358
|
-
badge: e.badge
|
|
27362
|
+
badge: e.badge,
|
|
27363
|
+
icon: e.icon
|
|
27359
27364
|
});
|
|
27360
27365
|
}), Qe(
|
|
27361
27366
|
() => i.value,
|
|
@@ -27557,7 +27562,7 @@ const u7 = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940
|
|
|
27557
27562
|
])
|
|
27558
27563
|
], 2)) : de("", !0);
|
|
27559
27564
|
}
|
|
27560
|
-
}), g7 = /* @__PURE__ */ Ne(m7, [["__scopeId", "data-v-e79ca400"]]), wa = { WpicColorPicker: nm, WpicAlert: c7, WpicToggleSwitch: em, WpicAdvDateField: kI, WpicCalendar: wu, WpicTextarea: tm, WpicDialog: MI, WpicSlidePanel: SI, WpicDateField: aI, WpicFormInput: Qo, WpicButton: Oo, WpicBadge: MD, WpicTextEditor: oD, WpicInputGroup: gv, WpicButtonGroup: fv, WpicForm: vv, WpicFormField: rm, WpicSpinner: Ki, WpicTooltip: im, WpicPopover:
|
|
27565
|
+
}), g7 = /* @__PURE__ */ Ne(m7, [["__scopeId", "data-v-e79ca400"]]), wa = { WpicColorPicker: nm, WpicAlert: c7, WpicToggleSwitch: em, WpicAdvDateField: kI, WpicCalendar: wu, WpicTextarea: tm, WpicDialog: MI, WpicSlidePanel: SI, WpicDateField: aI, WpicFormInput: Qo, WpicButton: Oo, WpicBadge: MD, WpicTextEditor: oD, WpicInputGroup: gv, WpicButtonGroup: fv, WpicForm: vv, WpicFormField: rm, WpicSpinner: Ki, WpicTooltip: im, WpicPopover: ci, WpicChoiceList: Qp, WpicCard: FS, WpicCardSection: WS, WpicProgressBar: KS, WpicTag: ZS, WpicTagGroup: QS, WpicPagination: IO, WpicLoadingPanel: sO, WpicTable: bC, WpicTableColumn: wC, WpicTabs: LI, WpicTabPane: II, WpicConfirm: g7 };
|
|
27561
27566
|
function O0(t, e) {
|
|
27562
27567
|
for (const n in e)
|
|
27563
27568
|
Object.prototype.hasOwnProperty.call(e, n) && (typeof e[n] == "object" && t[n] ? O0(t[n], e[n]) : t[n] = e[n]);
|