golden-logic-ui 1.0.564 → 1.0.566
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/golden-logic-ui.js +474 -474
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as Ce, createBlock as ef, resolveDynamicComponent as b_, mergeProps as $R, withCtx as Vh, createElementBlock as Ae, normalizeClass as xn, createCommentVNode as Tt, renderSlot as Iu, createElementVNode as V, createTextVNode as Ho, resolveComponent as Uf, toDisplayString as Rt, createVNode as lu, reactive as Hie, Fragment as Vo, withModifiers as ol, withDirectives as ei, vModelText as sf, renderList as Wr, normalizeStyle as oJ, computed as
|
|
1
|
+
import { openBlock as Ce, createBlock as ef, resolveDynamicComponent as b_, mergeProps as $R, withCtx as Vh, createElementBlock as Ae, normalizeClass as xn, createCommentVNode as Tt, renderSlot as Iu, createElementVNode as V, createTextVNode as Ho, resolveComponent as Uf, toDisplayString as Rt, createVNode as lu, reactive as Hie, Fragment as Vo, withModifiers as ol, withDirectives as ei, vModelText as sf, renderList as Wr, normalizeStyle as oJ, computed as cu, ref as ss, onMounted as qf, onBeforeUnmount as E_, watch as Lu, vShow as Qm, nextTick as RF, vModelDynamic as Doe, useSlots as Uie, provide as Roe, inject as Moe, createStaticVNode as sJ, vModelCheckbox as Boe, onUnmounted as rJ, toHandlers as BY, TransitionGroup as Wie, unref as jie, resolveDirective as iJ, markRaw as Xie } from "vue";
|
|
2
2
|
const Fi = (u, o) => {
|
|
3
3
|
const i = u.__vccOpts || u;
|
|
4
4
|
for (const [c, f] of o)
|
|
@@ -581,7 +581,7 @@ const ywe = /* @__PURE__ */ Fi(Mae, [["render", Iae]]), Qae = { class: "bg-white
|
|
|
581
581
|
}
|
|
582
582
|
},
|
|
583
583
|
setup(u) {
|
|
584
|
-
const o = u, i =
|
|
584
|
+
const o = u, i = cu(() => o.class), c = cu(() => o.body_class);
|
|
585
585
|
return (f, m) => (Ce(), Ae("div", {
|
|
586
586
|
class: xn(["flex flex-col gap-9", i.value])
|
|
587
587
|
}, [
|
|
@@ -685,7 +685,7 @@ const ywe = /* @__PURE__ */ Fi(Mae, [["render", Iae]]), Qae = { class: "bg-white
|
|
|
685
685
|
}), E_(() => {
|
|
686
686
|
window.removeEventListener("scroll", De), document.body.removeEventListener("click", an), document.removeEventListener("keypress", we);
|
|
687
687
|
});
|
|
688
|
-
const Te =
|
|
688
|
+
const Te = cu(() => {
|
|
689
689
|
const Kt = [], It = new RegExp(R.value, "ig");
|
|
690
690
|
for (const Be of O.value) {
|
|
691
691
|
const Dt = String(Be.name);
|
|
@@ -796,17 +796,17 @@ const ywe = /* @__PURE__ */ Fi(Mae, [["render", Iae]]), Qae = { class: "bg-white
|
|
|
796
796
|
function wt() {
|
|
797
797
|
R.value = "", c("selected", m.value);
|
|
798
798
|
}
|
|
799
|
-
return
|
|
799
|
+
return Lu(R, () => {
|
|
800
800
|
Te.value.length === 0 && (m.value = []);
|
|
801
|
-
}),
|
|
801
|
+
}), Lu(m, (Kt) => {
|
|
802
802
|
Ue(m.value) && (w.value = m.value.map((It) => It.id), c("update:modelValue", w.value));
|
|
803
|
-
}),
|
|
803
|
+
}), Lu(
|
|
804
804
|
() => i.modelValue,
|
|
805
805
|
() => {
|
|
806
806
|
Ue(m.value) || (m.value = ht());
|
|
807
807
|
},
|
|
808
808
|
{ immediate: !0, deep: !0 }
|
|
809
|
-
),
|
|
809
|
+
), Lu(
|
|
810
810
|
() => i.options,
|
|
811
811
|
() => {
|
|
812
812
|
O.value = tt(), m.value = ht();
|
|
@@ -1251,7 +1251,7 @@ const ywe = /* @__PURE__ */ Fi(Mae, [["render", Iae]]), Qae = { class: "bg-white
|
|
|
1251
1251
|
qf(() => {
|
|
1252
1252
|
m.value !== null && m.value.hasAttribute("autofocus") && m.value.focus();
|
|
1253
1253
|
});
|
|
1254
|
-
const O =
|
|
1254
|
+
const O = cu({
|
|
1255
1255
|
get() {
|
|
1256
1256
|
return c.modelValue;
|
|
1257
1257
|
},
|
|
@@ -1358,7 +1358,7 @@ const ywe = /* @__PURE__ */ Fi(Mae, [["render", Iae]]), Qae = { class: "bg-white
|
|
|
1358
1358
|
qf(() => {
|
|
1359
1359
|
m.value !== null && m.value.hasAttribute("autofocus") && m.value.focus();
|
|
1360
1360
|
});
|
|
1361
|
-
const O =
|
|
1361
|
+
const O = cu({
|
|
1362
1362
|
get() {
|
|
1363
1363
|
return c.modelValue;
|
|
1364
1364
|
},
|
|
@@ -1458,14 +1458,14 @@ const ywe = /* @__PURE__ */ Fi(Mae, [["render", Iae]]), Qae = { class: "bg-white
|
|
|
1458
1458
|
end: i.modelValue.end
|
|
1459
1459
|
});
|
|
1460
1460
|
ss(""), ss("");
|
|
1461
|
-
const O =
|
|
1461
|
+
const O = cu({
|
|
1462
1462
|
get() {
|
|
1463
1463
|
return i.modelValue.start;
|
|
1464
1464
|
},
|
|
1465
1465
|
set($) {
|
|
1466
1466
|
m.value.start = $, T(m.value.start, m.value.end), c("update:modelValue", { start: m.value.start, end: m.value.end }), c("keydown", { start: m.value.start, end: m.value.end });
|
|
1467
1467
|
}
|
|
1468
|
-
}), w =
|
|
1468
|
+
}), w = cu({
|
|
1469
1469
|
get() {
|
|
1470
1470
|
return i.modelValue.end;
|
|
1471
1471
|
},
|
|
@@ -1637,7 +1637,7 @@ const ywe = /* @__PURE__ */ Fi(Mae, [["render", Iae]]), Qae = { class: "bg-white
|
|
|
1637
1637
|
const T = decodeURIComponent(window.location.hash.replace("#", "")), $ = f.value.find((R) => R.title === T);
|
|
1638
1638
|
$ && (m.value = $.title);
|
|
1639
1639
|
};
|
|
1640
|
-
return
|
|
1640
|
+
return Lu(m, (T) => {
|
|
1641
1641
|
O(T);
|
|
1642
1642
|
}), qf(() => {
|
|
1643
1643
|
w(), window.addEventListener("hashchange", w);
|
|
@@ -2570,15 +2570,15 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
2570
2570
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2571
2571
|
}, O = () => {
|
|
2572
2572
|
c("closeModal"), m();
|
|
2573
|
-
};
|
|
2574
|
-
return
|
|
2573
|
+
}, w = cu(() => i.is_loading);
|
|
2574
|
+
return Lu(
|
|
2575
2575
|
() => i.is_open,
|
|
2576
|
-
(
|
|
2577
|
-
|
|
2576
|
+
(T, $) => {
|
|
2577
|
+
T ? f() : m();
|
|
2578
2578
|
},
|
|
2579
2579
|
{ immediate: !0, deep: !0 }
|
|
2580
|
-
), (
|
|
2581
|
-
var
|
|
2580
|
+
), (T, $) => {
|
|
2581
|
+
var R;
|
|
2582
2582
|
return u.is_open ? (Ce(), Ae("div", {
|
|
2583
2583
|
key: 0,
|
|
2584
2584
|
class: xn(["fixed left-0 top-13 h-full w-full overflow-y-auto overflow-x-hidden outline-none inset-0 bg-black !bg-opacity-80", u.has_large_z_index ? "z-[9999]" : "z-[1055]"]),
|
|
@@ -2595,7 +2595,7 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
2595
2595
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
2596
2596
|
onClick: O,
|
|
2597
2597
|
"aria-label": "Close"
|
|
2598
|
-
},
|
|
2598
|
+
}, $[0] || ($[0] = [
|
|
2599
2599
|
V("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2600
2600
|
V("svg", {
|
|
2601
2601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2613,25 +2613,25 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
2613
2613
|
], -1)
|
|
2614
2614
|
]))
|
|
2615
2615
|
]),
|
|
2616
|
-
|
|
2616
|
+
w.value ? (Ce(), Ae("div", gue, $[1] || ($[1] = [
|
|
2617
2617
|
sJ('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10 me-3 text-gray-200 dark:text-gray-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>', 7)
|
|
2618
2618
|
]))) : Tt("", !0),
|
|
2619
2619
|
ei(V("div", {
|
|
2620
2620
|
class: xn(["relative overflow-y-auto", u.bodyClass])
|
|
2621
2621
|
}, [
|
|
2622
|
-
Iu(
|
|
2622
|
+
Iu(T.$slots, "body")
|
|
2623
2623
|
], 2), [
|
|
2624
|
-
[Qm, !
|
|
2624
|
+
[Qm, !w.value]
|
|
2625
2625
|
]),
|
|
2626
2626
|
ei(V("div", pue, [
|
|
2627
|
-
Iu(
|
|
2627
|
+
Iu(T.$slots, "buttons"),
|
|
2628
2628
|
V("button", {
|
|
2629
2629
|
onClick: O,
|
|
2630
2630
|
type: "button",
|
|
2631
2631
|
class: "px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
2632
|
-
}, Rt(((
|
|
2632
|
+
}, Rt(((R = u.language) == null ? void 0 : R.close) ?? "Close"), 1)
|
|
2633
2633
|
], 512), [
|
|
2634
|
-
[Qm, !
|
|
2634
|
+
[Qm, !w.value && !u.hide_model_footer]
|
|
2635
2635
|
])
|
|
2636
2636
|
])
|
|
2637
2637
|
], 2)
|
|
@@ -2693,7 +2693,7 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
2693
2693
|
}, O = () => {
|
|
2694
2694
|
c("closeModal"), m();
|
|
2695
2695
|
};
|
|
2696
|
-
return
|
|
2696
|
+
return Lu(
|
|
2697
2697
|
() => i.is_open,
|
|
2698
2698
|
(w, T) => {
|
|
2699
2699
|
w ? f() : m();
|
|
@@ -2807,7 +2807,7 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
2807
2807
|
}, O = () => {
|
|
2808
2808
|
c("closeModal"), m();
|
|
2809
2809
|
};
|
|
2810
|
-
return
|
|
2810
|
+
return Lu(
|
|
2811
2811
|
() => i.is_open,
|
|
2812
2812
|
(w, T) => {
|
|
2813
2813
|
w ? f() : m();
|
|
@@ -2924,7 +2924,7 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
2924
2924
|
},
|
|
2925
2925
|
emits: ["update:modelValue"],
|
|
2926
2926
|
setup(u, { emit: o }) {
|
|
2927
|
-
const i = u, c = o, f = ss(null), m =
|
|
2927
|
+
const i = u, c = o, f = ss(null), m = cu({
|
|
2928
2928
|
get() {
|
|
2929
2929
|
return i.modelValue;
|
|
2930
2930
|
},
|
|
@@ -3035,7 +3035,7 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
3035
3035
|
},
|
|
3036
3036
|
emits: ["update:modelValue"],
|
|
3037
3037
|
setup(u, { emit: o }) {
|
|
3038
|
-
const i = u, c = o, f = ss(null), m =
|
|
3038
|
+
const i = u, c = o, f = ss(null), m = cu({
|
|
3039
3039
|
get() {
|
|
3040
3040
|
return i.modelValue;
|
|
3041
3041
|
},
|
|
@@ -3183,7 +3183,7 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
3183
3183
|
}), E_(() => {
|
|
3184
3184
|
window.removeEventListener("scroll", K), document.body.removeEventListener("click", re), document.removeEventListener("keypress", me);
|
|
3185
3185
|
});
|
|
3186
|
-
const De =
|
|
3186
|
+
const De = cu(() => {
|
|
3187
3187
|
const Wt = [], tt = new RegExp(T.value, "ig");
|
|
3188
3188
|
for (const ht of m.value) {
|
|
3189
3189
|
const Q = String(ht.name);
|
|
@@ -3272,17 +3272,17 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
3272
3272
|
function ye() {
|
|
3273
3273
|
(!f.value || !f.value.id) && (f.value = {}, T.value = ""), c("selected", f.value);
|
|
3274
3274
|
}
|
|
3275
|
-
return
|
|
3275
|
+
return Lu(T, () => {
|
|
3276
3276
|
De.value.length === 0 && (f.value = {});
|
|
3277
|
-
}),
|
|
3277
|
+
}), Lu(f, (Wt) => {
|
|
3278
3278
|
et(Wt) && c("update:modelValue", Wt.id);
|
|
3279
|
-
}),
|
|
3279
|
+
}), Lu(
|
|
3280
3280
|
() => i.modelValue,
|
|
3281
3281
|
() => {
|
|
3282
3282
|
et(f.value) || (f.value = i.modelValue, f.value = Pt());
|
|
3283
3283
|
},
|
|
3284
3284
|
{ immediate: !0, deep: !0 }
|
|
3285
|
-
),
|
|
3285
|
+
), Lu(
|
|
3286
3286
|
() => i.options,
|
|
3287
3287
|
() => {
|
|
3288
3288
|
m.value = te(), f.value = Pt();
|
|
@@ -3501,7 +3501,7 @@ const $we = /* @__PURE__ */ Fi(Bce, [["render", due], ["__scopeId", "data-v-bb11
|
|
|
3501
3501
|
qf(() => {
|
|
3502
3502
|
m.value !== null && m.value.hasAttribute("autofocus") && m.value.focus();
|
|
3503
3503
|
});
|
|
3504
|
-
const O =
|
|
3504
|
+
const O = cu({
|
|
3505
3505
|
get() {
|
|
3506
3506
|
return c.modelValue;
|
|
3507
3507
|
},
|
|
@@ -4092,7 +4092,7 @@ var Noe = { exports: {} };
|
|
|
4092
4092
|
isFirefox: a($c),
|
|
4093
4093
|
isSafari: a(Na)
|
|
4094
4094
|
};
|
|
4095
|
-
},
|
|
4095
|
+
}, uu = {
|
|
4096
4096
|
unknown: Rl,
|
|
4097
4097
|
nu: ni,
|
|
4098
4098
|
edge: wt(Zc),
|
|
@@ -4101,7 +4101,7 @@ var Noe = { exports: {} };
|
|
|
4101
4101
|
opera: wt(fr),
|
|
4102
4102
|
firefox: wt($c),
|
|
4103
4103
|
safari: wt(Na)
|
|
4104
|
-
}, ya = "Windows",
|
|
4104
|
+
}, ya = "Windows", du = "iOS", Ul = "Android", Od = "Linux", jr = "macOS", bl = "Solaris", uc = "FreeBSD", fu = "ChromeOS", dc = () => fc({
|
|
4105
4105
|
current: void 0,
|
|
4106
4106
|
version: $e.unknown()
|
|
4107
4107
|
}), fc = (e) => {
|
|
@@ -4110,27 +4110,27 @@ var Noe = { exports: {} };
|
|
|
4110
4110
|
current: n,
|
|
4111
4111
|
version: s,
|
|
4112
4112
|
isWindows: a(ya),
|
|
4113
|
-
isiOS: a(
|
|
4113
|
+
isiOS: a(du),
|
|
4114
4114
|
isAndroid: a(Ul),
|
|
4115
4115
|
isMacOS: a(jr),
|
|
4116
4116
|
isLinux: a(Od),
|
|
4117
4117
|
isSolaris: a(bl),
|
|
4118
4118
|
isFreeBSD: a(uc),
|
|
4119
|
-
isChromeOS: a(
|
|
4119
|
+
isChromeOS: a(fu)
|
|
4120
4120
|
};
|
|
4121
4121
|
}, Xr = {
|
|
4122
4122
|
unknown: dc,
|
|
4123
4123
|
nu: fc,
|
|
4124
4124
|
windows: wt(ya),
|
|
4125
|
-
ios: wt(
|
|
4125
|
+
ios: wt(du),
|
|
4126
4126
|
android: wt(Ul),
|
|
4127
4127
|
linux: wt(Od),
|
|
4128
4128
|
macos: wt(jr),
|
|
4129
4129
|
solaris: wt(bl),
|
|
4130
4130
|
freebsd: wt(uc),
|
|
4131
|
-
chromeos: wt(
|
|
4131
|
+
chromeos: wt(fu)
|
|
4132
4132
|
}, va = { detect: (e, n, s) => {
|
|
4133
|
-
const a = gl.browsers(), d = gl.oses(), p = n.bind((P) => Ie(a, P)).orThunk(() => zt(a, e)).fold(
|
|
4133
|
+
const a = gl.browsers(), d = gl.oses(), p = n.bind((P) => Ie(a, P)).orThunk(() => zt(a, e)).fold(uu.unknown, uu.nu), v = pn(d, e).fold(Xr.unknown, Xr.nu), C = Wn(v, p, e, s);
|
|
4134
4134
|
return {
|
|
4135
4135
|
browser: p,
|
|
4136
4136
|
os: v,
|
|
@@ -4241,7 +4241,7 @@ var Noe = { exports: {} };
|
|
|
4241
4241
|
}, Fm = Object.getPrototypeOf, hr = (e) => Zh("HTMLElement", e), Wc = (e) => {
|
|
4242
4242
|
const n = oi("ownerDocument.defaultView", e);
|
|
4243
4243
|
return Ue(e) && (hr(n).prototype.isPrototypeOf(e) || /^HTML\w*Element$/.test(Fm(e).constructor.name));
|
|
4244
|
-
}, Ci = 8, Hi = 9, Ia = 11,
|
|
4244
|
+
}, Ci = 8, Hi = 9, Ia = 11, hu = 1, fe = 3, pe = (e) => e.dom.nodeName.toLowerCase(), nt = (e) => e.dom.nodeType, $t = (e) => (n) => nt(n) === e, Un = (e) => nt(e) === Ci || pe(e) === "#comment", as = (e) => Fo(e) && Wc(e.dom), Fo = $t(hu), rr = $t(fe), ai = $t(Hi), al = $t(Ia), Qa = (e) => (n) => Fo(n) && pe(n) === e, vr = (e, n, s) => {
|
|
4245
4245
|
if (re(s) || Pt(s) || Wt(s))
|
|
4246
4246
|
e.setAttribute(n, s + "");
|
|
4247
4247
|
else
|
|
@@ -4273,7 +4273,7 @@ var Noe = { exports: {} };
|
|
|
4273
4273
|
}, lf = (e, n, s) => {
|
|
4274
4274
|
const a = wn(Qu(e, n), (d) => d !== s);
|
|
4275
4275
|
return a.length > 0 ? Gr(e, n, a.join(" ")) : Us(e, n), !1;
|
|
4276
|
-
}, yd = (e) => e.dom.classList !== void 0, vd = (e) => Qu(e, "class"), Wl = (e, n) => af(e, "class", n), Fa = (e, n) => lf(e, "class", n), Wp = (e, n) => Le(vd(e), n) ? Fa(e, n) : Wl(e, n),
|
|
4276
|
+
}, yd = (e) => e.dom.classList !== void 0, vd = (e) => Qu(e, "class"), Wl = (e, n) => af(e, "class", n), Fa = (e, n) => lf(e, "class", n), Wp = (e, n) => Le(vd(e), n) ? Fa(e, n) : Wl(e, n), mu = (e, n) => {
|
|
4277
4277
|
yd(e) ? e.dom.classList.add(n) : Wl(e, n);
|
|
4278
4278
|
}, Vm = (e) => {
|
|
4279
4279
|
(yd(e) ? e.dom.classList : vd(e)).length === 0 && Us(e, "class");
|
|
@@ -4314,7 +4314,7 @@ var Noe = { exports: {} };
|
|
|
4314
4314
|
return s;
|
|
4315
4315
|
}, Ol = (e, n) => {
|
|
4316
4316
|
const s = e.dom;
|
|
4317
|
-
if (s.nodeType !==
|
|
4317
|
+
if (s.nodeType !== hu)
|
|
4318
4318
|
return !1;
|
|
4319
4319
|
{
|
|
4320
4320
|
const a = s;
|
|
@@ -4328,7 +4328,7 @@ var Noe = { exports: {} };
|
|
|
4328
4328
|
return a.mozMatchesSelector(n);
|
|
4329
4329
|
throw new Error("Browser lacks native selectors");
|
|
4330
4330
|
}
|
|
4331
|
-
}, Q1 = (e) => e.nodeType !==
|
|
4331
|
+
}, Q1 = (e) => e.nodeType !== hu && e.nodeType !== Hi && e.nodeType !== Ia || e.childElementCount === 0, jp = (e, n) => {
|
|
4332
4332
|
const s = n === void 0 ? document : n.dom;
|
|
4333
4333
|
return Q1(s) ? [] : Je(s.querySelectorAll(e), Me.fromDom);
|
|
4334
4334
|
}, xd = (e, n) => {
|
|
@@ -4380,7 +4380,7 @@ var Noe = { exports: {} };
|
|
|
4380
4380
|
return Um(Me.fromDom(n)).fold(() => s.body.contains(n), oo(Hu, Gp));
|
|
4381
4381
|
};
|
|
4382
4382
|
var Gh = (e, n, s, a, d) => e(s, a) ? Y.some(s) : ye(d) && d(s) ? Y.none() : n(s, a, d);
|
|
4383
|
-
const
|
|
4383
|
+
const gu = (e, n, s) => {
|
|
4384
4384
|
let a = e.dom;
|
|
4385
4385
|
const d = ye(s) ? s : Ke;
|
|
4386
4386
|
for (; a.parentNode; ) {
|
|
@@ -4392,7 +4392,7 @@ var Noe = { exports: {} };
|
|
|
4392
4392
|
break;
|
|
4393
4393
|
}
|
|
4394
4394
|
return Y.none();
|
|
4395
|
-
}, Nr = (e, n, s) => Gh((d, p) => p(d),
|
|
4395
|
+
}, Nr = (e, n, s) => Gh((d, p) => p(d), gu, e, n, s), Wi = (e, n) => {
|
|
4396
4396
|
const s = e.dom;
|
|
4397
4397
|
return s.parentNode ? yl(Me.fromDom(s.parentNode), (a) => !Cs(e, a) && n(a)) : Y.none();
|
|
4398
4398
|
}, yl = (e, n) => {
|
|
@@ -4411,7 +4411,7 @@ var Noe = { exports: {} };
|
|
|
4411
4411
|
return Y.none();
|
|
4412
4412
|
};
|
|
4413
4413
|
return s(e.dom);
|
|
4414
|
-
}, Kf = (e, n, s) =>
|
|
4414
|
+
}, Kf = (e, n, s) => gu(e, (a) => Ol(a, n), s), ji = (e, n) => xd(n, e), Vn = (e, n, s) => Gh((d, p) => Ol(d, p), Kf, e, n, s), Kh = (e) => Vn(e, "[contenteditable]"), kd = (e, n = !1) => Hu(e) ? e.dom.isContentEditable : Kh(e).fold(wt(n), (s) => vl(s) === "true"), vl = (e) => e.dom.contentEditable, Vs = (e, n) => {
|
|
4415
4415
|
e.dom.contentEditable = n ? "true" : "false";
|
|
4416
4416
|
}, mf = (e) => e.style !== void 0 && ye(e.style.getPropertyValue), Jh = (e, n, s) => {
|
|
4417
4417
|
if (!re(s))
|
|
@@ -4475,7 +4475,7 @@ var Noe = { exports: {} };
|
|
|
4475
4475
|
Se(n, (s) => {
|
|
4476
4476
|
wr(e, s);
|
|
4477
4477
|
});
|
|
4478
|
-
},
|
|
4478
|
+
}, pu = (e) => {
|
|
4479
4479
|
e.dom.textContent = "", Se(fa(e), (n) => {
|
|
4480
4480
|
cr(n);
|
|
4481
4481
|
});
|
|
@@ -4490,7 +4490,7 @@ var Noe = { exports: {} };
|
|
|
4490
4490
|
return a.innerHTML = e, fa(Me.fromDom(a));
|
|
4491
4491
|
}, _d = (e) => Je(e, Me.fromDom), xr = (e) => e.dom.innerHTML, Uu = (e, n) => {
|
|
4492
4492
|
const a = xa(e).dom, d = Me.fromDom(a.createDocumentFragment()), p = Jf(n, a);
|
|
4493
|
-
Td(d, p),
|
|
4493
|
+
Td(d, p), pu(e), wr(e, d);
|
|
4494
4494
|
}, pc = (e) => {
|
|
4495
4495
|
const n = Me.fromTag("div"), s = Me.fromDom(e.dom.cloneNode(!0));
|
|
4496
4496
|
return wr(n, s), xr(n);
|
|
@@ -4557,7 +4557,7 @@ var Noe = { exports: {} };
|
|
|
4557
4557
|
return Se(fa(e), (a) => {
|
|
4558
4558
|
n(a) && (s = s.concat([a])), s = s.concat(Kp(a, n));
|
|
4559
4559
|
}), s;
|
|
4560
|
-
}, za = (e, n) => jp(n, e), Jp = (e, n, s) =>
|
|
4560
|
+
}, za = (e, n) => jp(n, e), Jp = (e, n, s) => gu(e, n, s).isSome(), FO = (e, n) => Wi(e, n).isSome(), V1 = (e, n) => Yh(e, n).isSome();
|
|
4561
4561
|
class Ha {
|
|
4562
4562
|
constructor(n, s) {
|
|
4563
4563
|
this.node = n, this.rootNode = s, this.current = this.current.bind(this), this.next = this.next.bind(this), this.prev = this.prev.bind(this), this.prev2 = this.prev2.bind(this);
|
|
@@ -4613,7 +4613,7 @@ var Noe = { exports: {} };
|
|
|
4613
4613
|
return !1;
|
|
4614
4614
|
return !0;
|
|
4615
4615
|
}, Ym = (e) => " \f \v".indexOf(e) !== -1, VO = (e) => e === `
|
|
4616
|
-
` || e === "\r", t0 = (e, n) => n < e.length && n >= 0 ? VO(e[n]) : !1,
|
|
4616
|
+
` || e === "\r", t0 = (e, n) => n < e.length && n >= 0 ? VO(e[n]) : !1, bu = (e, n = 4, s = !0, a = !0) => {
|
|
4617
4617
|
const d = Wo(" ", n), p = e.replace(/\t/g, d);
|
|
4618
4618
|
return Co(p, (C, P) => Ym(P) || P === Xi ? C.pcIsSpace || C.str === "" && s || C.str.length === p.length - 1 && a || t0(p, C.str.length + 1) ? {
|
|
4619
4619
|
pcIsSpace: !1,
|
|
@@ -4631,7 +4631,7 @@ var Noe = { exports: {} };
|
|
|
4631
4631
|
}, Pd = (e) => (n) => !!n && n.nodeType === e, th = (e) => !!e && !Object.getPrototypeOf(e), On = Pd(1), Yc = (e) => On(e) && as(Me.fromDom(e)), z1 = (e) => On(e) && e.namespaceURI === "http://www.w3.org/2000/svg", tm = (e) => {
|
|
4632
4632
|
const n = e.toLowerCase();
|
|
4633
4633
|
return (s) => je(s) && s.nodeName.toLowerCase() === n;
|
|
4634
|
-
},
|
|
4634
|
+
}, Ou = (e) => {
|
|
4635
4635
|
const n = e.map((s) => s.toLowerCase());
|
|
4636
4636
|
return (s) => {
|
|
4637
4637
|
if (s && s.nodeName) {
|
|
@@ -4654,22 +4654,22 @@ var Noe = { exports: {} };
|
|
|
4654
4654
|
}
|
|
4655
4655
|
return !1;
|
|
4656
4656
|
};
|
|
4657
|
-
}, nh = (e) => (n) => On(n) && n.hasAttribute(e), nm = (e) => On(e) && e.hasAttribute("data-mce-bogus"), Zg = (e) => On(e) && e.getAttribute("data-mce-bogus") === "all", Wu = (e) => On(e) && e.tagName === "TABLE", ZO = (e) => (n) => !!(Yc(n) && (n.contentEditable === e || n.getAttribute("data-mce-contenteditable") === e)), Kr =
|
|
4657
|
+
}, nh = (e) => (n) => On(n) && n.hasAttribute(e), nm = (e) => On(e) && e.hasAttribute("data-mce-bogus"), Zg = (e) => On(e) && e.getAttribute("data-mce-bogus") === "all", Wu = (e) => On(e) && e.tagName === "TABLE", ZO = (e) => (n) => !!(Yc(n) && (n.contentEditable === e || n.getAttribute("data-mce-contenteditable") === e)), Kr = Ou([
|
|
4658
4658
|
"textarea",
|
|
4659
4659
|
"input"
|
|
4660
|
-
]), Ht = Pd(3), Bl = Pd(4), ju = Pd(7), Yi = Pd(8), Km = Pd(9), Ki = Pd(11), Ls = tm("br"), n0 = tm("img"), At = ZO("true"), Ds = ZO("false"), o0 =
|
|
4660
|
+
]), Ht = Pd(3), Bl = Pd(4), ju = Pd(7), Yi = Pd(8), Km = Pd(9), Ki = Pd(11), Ls = tm("br"), n0 = tm("img"), At = ZO("true"), Ds = ZO("false"), o0 = Ou([
|
|
4661
4661
|
"td",
|
|
4662
4662
|
"th"
|
|
4663
|
-
]), Ji =
|
|
4663
|
+
]), Ji = Ou([
|
|
4664
4664
|
"td",
|
|
4665
4665
|
"th",
|
|
4666
4666
|
"caption"
|
|
4667
|
-
]), ha =
|
|
4667
|
+
]), ha = Ou([
|
|
4668
4668
|
"video",
|
|
4669
4669
|
"audio",
|
|
4670
4670
|
"object",
|
|
4671
4671
|
"embed"
|
|
4672
|
-
]),
|
|
4672
|
+
]), yu = tm("li"), H1 = tm("details"), oh = tm("summary"), U1 = {
|
|
4673
4673
|
skipBogus: !0,
|
|
4674
4674
|
includeZwsp: !1,
|
|
4675
4675
|
checkRootAsContent: !1
|
|
@@ -4793,12 +4793,12 @@ var Noe = { exports: {} };
|
|
|
4793
4793
|
}, ir = (e, n, s) => {
|
|
4794
4794
|
const a = e.getBlockElements(), d = Me.fromDom(n), p = (C) => pe(C) in a, v = (C) => Cs(C, d);
|
|
4795
4795
|
Se(_d(s), (C) => {
|
|
4796
|
-
|
|
4796
|
+
gu(C, p, v).each((P) => {
|
|
4797
4797
|
const B = eh(C, (W) => p(W) && !e.isValidChild(pe(P), pe(W)));
|
|
4798
4798
|
if (B.length > 0) {
|
|
4799
4799
|
const W = Wh(P);
|
|
4800
4800
|
Se(B, (X) => {
|
|
4801
|
-
|
|
4801
|
+
gu(X, p, v).each((G) => {
|
|
4802
4802
|
Mo(e, G.dom, X.dom);
|
|
4803
4803
|
});
|
|
4804
4804
|
}), W.each((X) => Mn(e, X.dom));
|
|
@@ -4823,7 +4823,7 @@ var Noe = { exports: {} };
|
|
|
4823
4823
|
}, Xu = (e, n, s) => {
|
|
4824
4824
|
const a = (p) => Cs(p, Me.fromDom(n)), d = jh(Me.fromDom(s), a);
|
|
4825
4825
|
rl(d, d.length - 2).filter(Fo).fold(() => kr(e, n), (p) => kr(e, p.dom));
|
|
4826
|
-
}, Sl = (e) => e.hasAttribute(de),
|
|
4826
|
+
}, Sl = (e) => e.hasAttribute(de), vu = (e, n) => jn(e.getTransparentElements(), n), Jm = (e, n) => On(n) && vu(e, n.nodeName), Ad = (e, n) => Jm(e, n) && Sl(n), qu = (e, n) => Jm(e, n) && !Sl(n), sh = (e, n) => n.type === 1 && vu(e, n.name) && re(n.attr(de)), r0 = se().browser, Ug = (e) => es(e, Fo), i0 = (e) => r0.isFirefox() && pe(e) === "table" ? Ug(fa(e)).filter((n) => pe(n) === "caption").bind((n) => Ug(Xh(n)).map((s) => {
|
|
4827
4827
|
const a = s.dom.offsetTop, d = n.dom.offsetTop, p = n.dom.offsetHeight;
|
|
4828
4828
|
return a <= d ? -p : 0;
|
|
4829
4829
|
})).getOr(0) : 0, na = (e, n) => e.children && Le(e.children, n), Gu = (e, n, s) => {
|
|
@@ -5389,7 +5389,7 @@ var Noe = { exports: {} };
|
|
|
5389
5389
|
}), e.invalid_elements && zn(WO(e.invalid_elements), (Xn) => {
|
|
5390
5390
|
s[Xn] && delete s[Xn];
|
|
5391
5391
|
}), ur("span") || Vt("span[!data-mce-type|*]");
|
|
5392
|
-
}, Vl = wt(W), fl = wt(X), un = wt(G), Gn = wt(Oe), Ms = wt(en), Sn = wt(Nt), fo = wt(Tn), go = wt(Object.seal(ue)), vn = wt(he), os = wt(Ge), ms = wt(Ye), Pa = wt(ie), nr = wt(kt), ic = wt(gt),
|
|
5392
|
+
}, Vl = wt(W), fl = wt(X), un = wt(G), Gn = wt(Oe), Ms = wt(en), Sn = wt(Nt), fo = wt(Tn), go = wt(Object.seal(ue)), vn = wt(he), os = wt(Ge), ms = wt(Ye), Pa = wt(ie), nr = wt(kt), ic = wt(gt), $u = wt(Object.seal(v)), Dm = (Xn, Ps) => {
|
|
5393
5393
|
const Ii = a[Xn.toLowerCase()];
|
|
5394
5394
|
return !!(Ii && Ii[Ps.toLowerCase()]);
|
|
5395
5395
|
}, _c = (Xn, Ps) => {
|
|
@@ -5427,7 +5427,7 @@ var Noe = { exports: {} };
|
|
|
5427
5427
|
getMoveCaretBeforeOnEnterElements: ms,
|
|
5428
5428
|
getWhitespaceElements: Pa,
|
|
5429
5429
|
getTransparentElements: nr,
|
|
5430
|
-
getSpecialElements:
|
|
5430
|
+
getSpecialElements: $u,
|
|
5431
5431
|
isValidChild: Dm,
|
|
5432
5432
|
isValid: _c,
|
|
5433
5433
|
isBlock: ld,
|
|
@@ -5928,7 +5928,7 @@ var Noe = { exports: {} };
|
|
|
5928
5928
|
const ln = ft.attributes;
|
|
5929
5929
|
for (let tn = ln.length - 1; tn >= 0; tn--)
|
|
5930
5930
|
ft.removeAttributeNode(ln.item(tn));
|
|
5931
|
-
}),
|
|
5931
|
+
}), $u = (ut) => X.parse(ut), Dm = (ut, ft) => X.serialize(ut, ft), _c = (ut) => {
|
|
5932
5932
|
if (dd !== Tr.DOM && e === document) {
|
|
5933
5933
|
if (s[ut])
|
|
5934
5934
|
return;
|
|
@@ -5950,7 +5950,7 @@ var Noe = { exports: {} };
|
|
|
5950
5950
|
if (On(tn)) {
|
|
5951
5951
|
const co = Me.fromDom(tn), Bs = ft.split(" ");
|
|
5952
5952
|
Se(Bs, (Ai) => {
|
|
5953
|
-
je(ln) ? (ln ?
|
|
5953
|
+
je(ln) ? (ln ? mu : cf)(co, Ai) : Zm(co, Ai);
|
|
5954
5954
|
});
|
|
5955
5955
|
}
|
|
5956
5956
|
});
|
|
@@ -6095,7 +6095,7 @@ var Noe = { exports: {} };
|
|
|
6095
6095
|
setAttribs: Ms,
|
|
6096
6096
|
getAttrib: Fe,
|
|
6097
6097
|
getPos: Tn,
|
|
6098
|
-
parseStyle:
|
|
6098
|
+
parseStyle: $u,
|
|
6099
6099
|
serializeStyle: Dm,
|
|
6100
6100
|
addStyle: _c,
|
|
6101
6101
|
loadCSS: ld,
|
|
@@ -6448,7 +6448,7 @@ var Noe = { exports: {} };
|
|
|
6448
6448
|
return F2++, e + "_" + a + F2 + String(s);
|
|
6449
6449
|
}, oM = (e, n) => {
|
|
6450
6450
|
Se(n, (s) => {
|
|
6451
|
-
|
|
6451
|
+
mu(e, s);
|
|
6452
6452
|
});
|
|
6453
6453
|
}, ab = (e, n) => {
|
|
6454
6454
|
Se(n, (s) => {
|
|
@@ -6579,7 +6579,7 @@ var Noe = { exports: {} };
|
|
|
6579
6579
|
const e = Me.fromTag("br");
|
|
6580
6580
|
return Gr(e, "data-mce-bogus", "1"), e;
|
|
6581
6581
|
}, ch = (e) => {
|
|
6582
|
-
|
|
6582
|
+
pu(e), wr(e, _f());
|
|
6583
6583
|
}, hk = (e, n) => {
|
|
6584
6584
|
Za(e).each((s) => {
|
|
6585
6585
|
Zu(s).each((a) => {
|
|
@@ -6677,11 +6677,11 @@ var Noe = { exports: {} };
|
|
|
6677
6677
|
if (!e[s](n))
|
|
6678
6678
|
return !1;
|
|
6679
6679
|
return !0;
|
|
6680
|
-
}, bk = At, hy = Ds, my = Ls, Rd = Ht, rM =
|
|
6680
|
+
}, bk = At, hy = Ds, my = Ls, Rd = Ht, rM = Ou([
|
|
6681
6681
|
"script",
|
|
6682
6682
|
"style",
|
|
6683
6683
|
"textarea"
|
|
6684
|
-
]), dh =
|
|
6684
|
+
]), dh = Ou([
|
|
6685
6685
|
"img",
|
|
6686
6686
|
"input",
|
|
6687
6687
|
"textarea",
|
|
@@ -6691,7 +6691,7 @@ var Noe = { exports: {} };
|
|
|
6691
6691
|
"audio",
|
|
6692
6692
|
"object",
|
|
6693
6693
|
"embed"
|
|
6694
|
-
]), X_ =
|
|
6694
|
+
]), X_ = Ou(["table"]), gy = Ju, Md = (e) => gy(e) ? !1 : Rd(e) ? !rM(e.parentNode) : dh(e) || my(e) || X_(e) || py(e), q_ = (e) => On(e) && e.getAttribute("unselectable") === "true", py = (e) => !q_(e) && hy(e), by = (e, n) => {
|
|
6695
6695
|
for (let s = e.parentNode; s && s !== n; s = s.parentNode) {
|
|
6696
6696
|
if (py(s))
|
|
6697
6697
|
return !1;
|
|
@@ -6795,7 +6795,7 @@ var Noe = { exports: {} };
|
|
|
6795
6795
|
let n, s;
|
|
6796
6796
|
n = lp(xc(e)), s = ke(n, Ck(e), e), n = n.slice(0, s + 1);
|
|
6797
6797
|
const a = Pe(n, (d, p, v) => (Kc(p) && Kc(n[v - 1]) && d++, d), 0);
|
|
6798
|
-
return n = ca(n,
|
|
6798
|
+
return n = ca(n, Ou([e.nodeName])), s = ke(n, Ck(e), e), s - a;
|
|
6799
6799
|
}, Tk = (e) => (Kc(e) ? "text()" : e.nodeName.toLowerCase()) + "[" + n5(e) + "]", o5 = (e, n, s) => {
|
|
6800
6800
|
const a = [];
|
|
6801
6801
|
for (let d = n.parentNode; d && d !== e; d = d.parentNode)
|
|
@@ -6814,7 +6814,7 @@ var Noe = { exports: {} };
|
|
|
6814
6814
|
return v = ca(v, Dt(nm)), s = s.concat(xi(v, (C) => Tk(C))), s.reverse().join("/") + "," + p;
|
|
6815
6815
|
}, s5 = (e, n, s) => {
|
|
6816
6816
|
let a = lp(e);
|
|
6817
|
-
return a = ca(a, (d, p) => !Kc(d) || !Kc(a[p - 1])), a = ca(a,
|
|
6817
|
+
return a = ca(a, (d, p) => !Kc(d) || !Kc(a[p - 1])), a = ca(a, Ou([n])), a[s];
|
|
6818
6818
|
}, r5 = (e, n) => {
|
|
6819
6819
|
let s = e, a = 0;
|
|
6820
6820
|
for (; Kc(s); ) {
|
|
@@ -6923,7 +6923,7 @@ var Noe = { exports: {} };
|
|
|
6923
6923
|
};
|
|
6924
6924
|
}
|
|
6925
6925
|
return a5(e, s, n, d);
|
|
6926
|
-
},
|
|
6926
|
+
}, wu = (e) => {
|
|
6927
6927
|
const n = e.getRng();
|
|
6928
6928
|
return {
|
|
6929
6929
|
start: _k(e.dom.getRoot(), St.fromRangeStart(n)),
|
|
@@ -6965,7 +6965,7 @@ var Noe = { exports: {} };
|
|
|
6965
6965
|
id: d,
|
|
6966
6966
|
forward: P
|
|
6967
6967
|
};
|
|
6968
|
-
}, l5 = (e, n, s = !1) => n === 2 ? _l(vc, s, e) : n === 3 ?
|
|
6968
|
+
}, l5 = (e, n, s = !1) => n === 2 ? _l(vc, s, e) : n === 3 ? wu(e) : n ? Ak(e) : K2(e, !1), Cy = Be(_l, Kt, !0), Ty = (e) => {
|
|
6969
6969
|
const n = (p) => p(e), s = wt(e), a = () => d, d = {
|
|
6970
6970
|
tag: !0,
|
|
6971
6971
|
inner: e,
|
|
@@ -7946,7 +7946,7 @@ Required: ` + n.join(", "));
|
|
|
7946
7946
|
return null;
|
|
7947
7947
|
}, Pf = (e, n) => {
|
|
7948
7948
|
const s = (d) => gC(d.dom), a = (d) => d.dom === n;
|
|
7949
|
-
return
|
|
7949
|
+
return gu(Me.fromDom(e), s, a).map((d) => d.dom).getOr(n);
|
|
7950
7950
|
}, gm = (e, n) => {
|
|
7951
7951
|
for (; e && e !== n; ) {
|
|
7952
7952
|
if (Rw(e))
|
|
@@ -8103,10 +8103,10 @@ Required: ` + n.join(", "));
|
|
|
8103
8103
|
}, mp = (e, n, s) => Il(e, n, s).bind((a) => Ld(s, a, n) && Oh(e, s, a) ? Il(e, n, a) : Y.some(a)), yh = (e, n, s, a) => mp(e, n, s).bind((d) => a(d) ? yh(e, n, d, a) : Y.some(d)), gp = (e, n) => {
|
|
8104
8104
|
const s = e ? n.firstChild : n.lastChild;
|
|
8105
8105
|
return Ht(s) ? Y.some(St(s, e ? 0 : s.data.length)) : s ? Md(s) ? Y.some(e ? St.before(s) : Iw(s)) : SC(e, n, s) : Y.none();
|
|
8106
|
-
}, ec = Be(Il, !0), ul = Be(Il, !1), Ql = Be(gp, !0), Id = Be(gp, !1), Ky = "_mce_caret",
|
|
8106
|
+
}, ec = Be(Il, !0), ul = Be(Il, !1), Ql = Be(gp, !0), Id = Be(gp, !1), Ky = "_mce_caret", xu = (e) => On(e) && e.id === Ky, pp = (e, n) => {
|
|
8107
8107
|
let s = n;
|
|
8108
8108
|
for (; s && s !== e; ) {
|
|
8109
|
-
if (
|
|
8109
|
+
if (xu(s))
|
|
8110
8110
|
return s;
|
|
8111
8111
|
s = s.parentNode;
|
|
8112
8112
|
}
|
|
@@ -8254,7 +8254,7 @@ Required: ` + n.join(", "));
|
|
|
8254
8254
|
}, DC = (e, n, s) => {
|
|
8255
8255
|
const a = K2(e, n);
|
|
8256
8256
|
s(a), e.moveToBookmark(a);
|
|
8257
|
-
}, Db = (e) => Wt(e == null ? void 0 : e.nodeType), Rb = (e) => On(e) && !Nc(e) && !
|
|
8257
|
+
}, Db = (e) => Wt(e == null ? void 0 : e.nodeType), Rb = (e) => On(e) && !Nc(e) && !xu(e) && !nm(e), U5 = (e, n) => {
|
|
8258
8258
|
if (Rb(n) && !/^(TD|TH)$/.test(n.nodeName)) {
|
|
8259
8259
|
const s = e.getAttrib(n, "data-mce-selected"), a = parseInt(s, 10);
|
|
8260
8260
|
return !isNaN(a) && a > 0;
|
|
@@ -8306,7 +8306,7 @@ Required: ` + n.join(", "));
|
|
|
8306
8306
|
}, Mb = (e, n) => {
|
|
8307
8307
|
const s = e.dom;
|
|
8308
8308
|
return Rb(n) && s.getContentEditable(n) === "false" && Ya(e, n) && s.select('[contenteditable="true"]', n).length === 0;
|
|
8309
|
-
}, Pi = (e, n) => ye(e) ? e(n) : (je(n) && (e = e.replace(/%(\w+)/g, (s, a) => n[a] || s)), e),
|
|
8309
|
+
}, Pi = (e, n) => ye(e) ? e(n) : (je(n) && (e = e.replace(/%(\w+)/g, (s, a) => n[a] || s)), e), Su = (e, n) => (e = e || "", n = n || "", e = "" + (e.nodeName || e), n = "" + (n.nodeName || n), e.toLowerCase() === n.toLowerCase()), iv = (e, n) => {
|
|
8310
8310
|
if (an(e))
|
|
8311
8311
|
return null;
|
|
8312
8312
|
{
|
|
@@ -8356,7 +8356,7 @@ Required: ` + n.join(", "));
|
|
|
8356
8356
|
On(s) && n.push(s), s = s.firstChild;
|
|
8357
8357
|
}
|
|
8358
8358
|
return n;
|
|
8359
|
-
}, Nb = (e) => Om(e).length > 0, ym = (e) =>
|
|
8359
|
+
}, Nb = (e) => Om(e).length > 0, ym = (e) => xu(e.dom) && Nb(e.dom), U0 = Nc, Lb = Bb, Ib = Hw, G5 = MC, Y5 = (e) => Ls(e) && e.getAttribute("data-mce-bogus") && !e.nextSibling, NC = (e, n) => {
|
|
8360
8360
|
let s = n;
|
|
8361
8361
|
for (; s; ) {
|
|
8362
8362
|
if (On(s) && e.getContentEditable(s))
|
|
@@ -8405,7 +8405,7 @@ Required: ` + n.join(", "));
|
|
|
8405
8405
|
p = e.getParent(Ht(s) ? s.parentNode : s, (B) => B !== v && G5(e.schema, B), P);
|
|
8406
8406
|
}
|
|
8407
8407
|
if (p && vh(C) && C.wrapper && (p = Lb(e, p, "ul,ol").reverse()[0] || p), !p)
|
|
8408
|
-
for (p = s; p && p[a] && !e.isBlock(p[a]) && (p = p[a], !
|
|
8408
|
+
for (p = s; p && p[a] && !e.isBlock(p[a]) && (p = p[a], !Su(p, "br")); )
|
|
8409
8409
|
;
|
|
8410
8410
|
return p || s;
|
|
8411
8411
|
}, nd = (e, n, s, a) => {
|
|
@@ -8482,12 +8482,12 @@ Required: ` + n.join(", "));
|
|
|
8482
8482
|
"div.tiny-pageembed",
|
|
8483
8483
|
"div.mce-toc",
|
|
8484
8484
|
"div[data-mce-toc]"
|
|
8485
|
-
], VC = (e) => rr(e) && v0(e) === Ca, Ww = (e, n, s, a) => Va(n).fold(() => "skipping", (d) => a === "br" || VC(n) ? "valid" : F_(n) ? "existing" :
|
|
8485
|
+
], VC = (e) => rr(e) && v0(e) === Ca, Ww = (e, n, s, a) => Va(n).fold(() => "skipping", (d) => a === "br" || VC(n) ? "valid" : F_(n) ? "existing" : xu(n.dom) ? "caret" : He(FC, (p) => Ol(n, p)) ? "valid-block" : !H0(e, s, a) || !H0(e, pe(d), s) ? "invalid-child" : "valid"), mM = (e, n) => {
|
|
8486
8486
|
const s = vm(e.dom, n, [{ inline: "span" }]);
|
|
8487
8487
|
n.setStart(s.startContainer, s.startOffset), n.setEnd(s.endContainer, s.endOffset), e.selection.setRng(n);
|
|
8488
8488
|
}, jw = (e, n, s, a, d, p) => {
|
|
8489
8489
|
const { uid: v = n, ...C } = s;
|
|
8490
|
-
|
|
8490
|
+
mu(e, b0()), Gr(e, `${ep()}`, v), Gr(e, `${ah()}`, a);
|
|
8491
8491
|
const { attributes: P = {}, classes: B = [] } = d(v, C);
|
|
8492
8492
|
if (hi(e, P), oM(e, B), p) {
|
|
8493
8493
|
B.length > 0 && Gr(e, `${rm()}`, B.join(","));
|
|
@@ -8726,7 +8726,7 @@ Required: ` + n.join(", "));
|
|
|
8726
8726
|
};
|
|
8727
8727
|
s.on("focusin", () => {
|
|
8728
8728
|
const d = e.focusedEditor;
|
|
8729
|
-
be(it(s)) && a(s,
|
|
8729
|
+
be(it(s)) && a(s, mu), d !== s && (d && d.dispatch("blur", { focusedEditor: s }), e.setActive(s), e.focusedEditor = s, s.dispatch("focus", { blurredEditor: d }), s.focus(!0));
|
|
8730
8730
|
}), s.on("focusout", () => {
|
|
8731
8731
|
Hn.setEditorTimeout(s, () => {
|
|
8732
8732
|
const d = e.focusedEditor;
|
|
@@ -8797,7 +8797,7 @@ Required: ` + n.join(", "));
|
|
|
8797
8797
|
HOME: 36,
|
|
8798
8798
|
modifierPressed: (e) => e.shiftKey || e.ctrlKey || e.altKey || hn.metaKeyPressed(e),
|
|
8799
8799
|
metaKeyPressed: (e) => ao.os.isMacOS() || ao.os.isiOS() ? e.metaKey : e.ctrlKey && !e.altKey
|
|
8800
|
-
}, _a = "data-mce-selected", Zd = "table,img,figure.image,hr,video,span.mce-preview-object,details",
|
|
8800
|
+
}, _a = "data-mce-selected", Zd = "table,img,figure.image,hr,video,span.mce-preview-object,details", ku = Math.abs, Yo = Math.round, pi = {
|
|
8801
8801
|
nw: [
|
|
8802
8802
|
0,
|
|
8803
8803
|
0,
|
|
@@ -8846,8 +8846,8 @@ Required: ` + n.join(", "));
|
|
|
8846
8846
|
if (Wu(os)) {
|
|
8847
8847
|
const Pa = io(B.name, "n") ? Lo : Qs, nr = os.cloneNode(!0);
|
|
8848
8848
|
return Pa(vn.select("tr", nr)).each((ic) => {
|
|
8849
|
-
const
|
|
8850
|
-
vn.setStyle(ic, "height", null), Se(
|
|
8849
|
+
const $u = vn.select("td,th", ic);
|
|
8850
|
+
vn.setStyle(ic, "height", null), Se($u, (Dm) => vn.setStyle(Dm, "height", null));
|
|
8851
8851
|
}), nr;
|
|
8852
8852
|
} else
|
|
8853
8853
|
return os.cloneNode(!0);
|
|
@@ -8862,7 +8862,7 @@ Required: ` + n.join(", "));
|
|
|
8862
8862
|
Jo(vn, "width", os), Jo(vn, "height", ms);
|
|
8863
8863
|
}, ur = (vn) => {
|
|
8864
8864
|
let os, ms, Pa, nr, ic;
|
|
8865
|
-
os = vn.screenX - X, ms = vn.screenY - G, Ye = os * B[2] + ue, rt = ms * B[3] + Oe, Ye = Ye < 5 ? 5 : Ye, rt = rt < 5 ? 5 : rt, (Tn(v) || kt(v)) && gw(n) !== !1 ? Pa = !hn.modifierPressed(vn) : Pa = hn.modifierPressed(vn), Pa && (
|
|
8865
|
+
os = vn.screenX - X, ms = vn.screenY - G, Ye = os * B[2] + ue, rt = ms * B[3] + Oe, Ye = Ye < 5 ? 5 : Ye, rt = rt < 5 ? 5 : rt, (Tn(v) || kt(v)) && gw(n) !== !1 ? Pa = !hn.modifierPressed(vn) : Pa = hn.modifierPressed(vn), Pa && (ku(os) > ku(ms) ? (rt = Yo(Ye * Fe), Ye = Yo(rt / Fe)) : (Ye = Yo(rt / Fe), rt = Yo(Ye * Fe))), Ks(C, Ye, rt), nr = B.startPos.x + os, ic = B.startPos.y + ms, nr = nr > 0 ? nr : 0, ic = ic > 0 ? ic : 0, s.setStyles(P, {
|
|
8866
8866
|
left: nr,
|
|
8867
8867
|
top: ic,
|
|
8868
8868
|
display: "block"
|
|
@@ -8875,7 +8875,7 @@ Required: ` + n.join(", "));
|
|
|
8875
8875
|
Ge = !1, vn && (Jo(v, "width", Ye), Jo(v, "height", rt)), s.unbind(a, "mousemove", ur), s.unbind(a, "mouseup", Li), d !== a && (s.unbind(d, "mousemove", ur), s.unbind(d, "mouseup", Li)), s.remove(C), s.remove(P), s.remove(W), Vl(v), vn && (Nk(n, v, Ye, rt, "corner-" + B.name), s.setAttrib(v, "style", s.getAttrib(v, "style"))), n.nodeChanged();
|
|
8876
8876
|
}, Vl = (vn) => {
|
|
8877
8877
|
Sn();
|
|
8878
|
-
const os = s.getPos(vn, p), ms = os.x, Pa = os.y, nr = vn.getBoundingClientRect(), ic = nr.width || nr.right - nr.left,
|
|
8878
|
+
const os = s.getPos(vn, p), ms = os.x, Pa = os.y, nr = vn.getBoundingClientRect(), ic = nr.width || nr.right - nr.left, $u = nr.height || nr.bottom - nr.top;
|
|
8879
8879
|
v !== vn && (un(), v = vn, Ye = rt = 0);
|
|
8880
8880
|
const Dm = n.dispatch("ObjectSelected", { target: vn });
|
|
8881
8881
|
Kn(vn) && !Dm.isDefaultPrevented() ? qt(pi, (_c, ld) => {
|
|
@@ -8883,7 +8883,7 @@ Required: ` + n.join(", "));
|
|
|
8883
8883
|
const Xn = $n(v)[0];
|
|
8884
8884
|
X = ud.screenX, G = ud.screenY, ue = Xn.clientWidth, Oe = Xn.clientHeight, Fe = Oe / ue, B = _c, B.name = ld, B.startPos = {
|
|
8885
8885
|
x: ic * _c[0] + ms,
|
|
8886
|
-
y:
|
|
8886
|
+
y: $u * _c[1] + Pa
|
|
8887
8887
|
}, Nt = p.scrollWidth, en = p.scrollHeight, W = s.add(p, "div", {
|
|
8888
8888
|
class: "mce-resize-backdrop",
|
|
8889
8889
|
"data-mce-bogus": "all"
|
|
@@ -8897,7 +8897,7 @@ Required: ` + n.join(", "));
|
|
|
8897
8897
|
left: ms,
|
|
8898
8898
|
top: Pa,
|
|
8899
8899
|
margin: 0
|
|
8900
|
-
}), Ks(C, ic,
|
|
8900
|
+
}), Ks(C, ic, $u), C.removeAttribute(_a), p.appendChild(C), s.bind(a, "mousemove", ur), s.bind(a, "mouseup", Li), d !== a && (s.bind(d, "mousemove", ur), s.bind(d, "mouseup", Li)), P = s.add(p, "div", {
|
|
8901
8901
|
class: "mce-resize-helper",
|
|
8902
8902
|
"data-mce-bogus": "all"
|
|
8903
8903
|
}, ue + " × " + Oe);
|
|
@@ -8913,7 +8913,7 @@ Required: ` + n.join(", "));
|
|
|
8913
8913
|
ud.stopImmediatePropagation(), ud.preventDefault(), cd(ud);
|
|
8914
8914
|
}), _c.elm = Zl, s.setStyles(Zl, {
|
|
8915
8915
|
left: ic * _c[0] + ms - Zl.offsetWidth / 2,
|
|
8916
|
-
top:
|
|
8916
|
+
top: $u * _c[1] + Pa - Zl.offsetHeight / 2
|
|
8917
8917
|
});
|
|
8918
8918
|
}) : un(!1);
|
|
8919
8919
|
}, fl = p0(Vl, 0), un = (vn = !0) => {
|
|
@@ -8959,7 +8959,7 @@ Required: ` + n.join(", "));
|
|
|
8959
8959
|
fl.cancel(), v = C = W = null;
|
|
8960
8960
|
}
|
|
8961
8961
|
};
|
|
8962
|
-
},
|
|
8962
|
+
}, Cu = (e, n) => {
|
|
8963
8963
|
n.fold((s) => {
|
|
8964
8964
|
e.setStartBefore(s.dom);
|
|
8965
8965
|
}, (s, a) => {
|
|
@@ -8977,7 +8977,7 @@ Required: ` + n.join(", "));
|
|
|
8977
8977
|
});
|
|
8978
8978
|
}, XC = (e, n, s) => {
|
|
8979
8979
|
const a = e.document.createRange();
|
|
8980
|
-
return
|
|
8980
|
+
return Cu(a, n), Do(a, s), a;
|
|
8981
8981
|
}, mv = (e, n, s, a, d) => {
|
|
8982
8982
|
const p = e.document.createRange();
|
|
8983
8983
|
return p.setStart(n.dom, s), p.setEnd(a.dom, d), p;
|
|
@@ -9077,7 +9077,7 @@ Required: ` + n.join(", "));
|
|
|
9077
9077
|
a = a.parentNode;
|
|
9078
9078
|
}
|
|
9079
9079
|
return null;
|
|
9080
|
-
}, YC = (e, n, s) => bM(e, n, s) !== null, pE = (e, n, s) => YC(e, n, (a) => a.nodeName === s), bE = (e, n) => Ju(e) && !YC(e, n,
|
|
9080
|
+
}, YC = (e, n, s) => bM(e, n, s) !== null, pE = (e, n, s) => YC(e, n, (a) => a.nodeName === s), bE = (e, n) => Ju(e) && !YC(e, n, xu), OE = (e, n, s) => {
|
|
9081
9081
|
const a = n.parentNode;
|
|
9082
9082
|
if (a) {
|
|
9083
9083
|
const d = new Ha(n, e.getParent(a, e.isBlock) || e.getRoot());
|
|
@@ -9883,8 +9883,8 @@ Required: ` + n.join(", "));
|
|
|
9883
9883
|
}, y8 = (e, n, s, a) => {
|
|
9884
9884
|
if (s === 0)
|
|
9885
9885
|
return;
|
|
9886
|
-
const d = Me.fromDom(e), p =
|
|
9887
|
-
e.replaceData(n, s,
|
|
9886
|
+
const d = Me.fromDom(e), p = gu(d, (B) => a.isBlock(pe(B))).getOr(d), v = e.data.slice(n, n + s), C = n + s >= e.data.length && yv(p, St(e, e.data.length), a), P = n === 0 && ax(p, St(e, 0), a);
|
|
9887
|
+
e.replaceData(n, s, bu(v, 4, P, C));
|
|
9888
9888
|
}, lT = (e, n, s) => {
|
|
9889
9889
|
const a = e.data.slice(n), d = a.length - Ba(a).length;
|
|
9890
9890
|
y8(e, n, d, s);
|
|
@@ -9908,7 +9908,7 @@ Required: ` + n.join(", "));
|
|
|
9908
9908
|
const a = Me.fromHtml('<br data-mce-bogus="1">');
|
|
9909
9909
|
return s ? Se(fa(n), (d) => {
|
|
9910
9910
|
ym(d) || cr(d);
|
|
9911
|
-
}) :
|
|
9911
|
+
}) : pu(n), wr(n, a), Y.some(St.before(a.dom));
|
|
9912
9912
|
} else
|
|
9913
9913
|
return Y.none();
|
|
9914
9914
|
}, GV = (e, n, s, a) => {
|
|
@@ -9918,7 +9918,7 @@ Required: ` + n.join(", "));
|
|
|
9918
9918
|
return ME(B, W, s, a), P.container() === W ? St(B, X) : P;
|
|
9919
9919
|
}).orThunk(() => (a && (d.each((v) => RE(v.dom, v.dom.length, s)), p.each((v) => lT(v.dom, 0, s))), n));
|
|
9920
9920
|
}, x8 = (e, n) => jn(e.schema.getTextInlineElements(), pe(n)), Xb = (e, n, s, a = !0, d = !1) => {
|
|
9921
|
-
const p = jV(n, e.getBody(), s.dom), v =
|
|
9921
|
+
const p = jV(n, e.getBody(), s.dom), v = gu(s, Be(qV, e), XV(e.getBody())), C = GV(s, p, e.schema, x8(e, s));
|
|
9922
9922
|
e.dom.isEmpty(e.getBody()) ? (e.setContent(""), e.selection.setCursorLocation()) : v.bind((P) => jb(e.schema, P, d)).fold(() => {
|
|
9923
9923
|
a && LE(e, n, C);
|
|
9924
9924
|
}, (P) => {
|
|
@@ -10424,7 +10424,7 @@ Required: ` + n.join(", "));
|
|
|
10424
10424
|
}, G = v.getParent(n, v.isBlock);
|
|
10425
10425
|
if (v.remove(n), G && v.isEmpty(G)) {
|
|
10426
10426
|
const ie = CT(G);
|
|
10427
|
-
|
|
10427
|
+
pu(Me.fromDom(G)), B.setStart(G, 0), B.setEnd(G, 0), !ie && !uP(G) && (p = X(B)) ? (B = p, v.remove(G)) : v.add(G, v.create("br", ie ? {} : { "data-mce-bogus": "1" }));
|
|
10428
10428
|
}
|
|
10429
10429
|
C.setRng(B);
|
|
10430
10430
|
}, fZ = (e) => {
|
|
@@ -10533,7 +10533,7 @@ Required: ` + n.join(", "));
|
|
|
10533
10533
|
}, yx = (e, n, s) => {
|
|
10534
10534
|
const a = n(e), d = kv(s);
|
|
10535
10535
|
return a.orThunk(() => d(e) ? Y.none() : Y8(e, n, d));
|
|
10536
|
-
}, vx =
|
|
10536
|
+
}, vx = Su, K8 = (e, n, s) => {
|
|
10537
10537
|
const a = e.formatter.get(s);
|
|
10538
10538
|
if (a)
|
|
10539
10539
|
for (let d = 0; d < a.length; d++) {
|
|
@@ -10752,11 +10752,11 @@ Required: ` + n.join(", "));
|
|
|
10752
10752
|
const { caretContainer: s, caretPosition: a } = DT(n);
|
|
10753
10753
|
return e.insertNode(s.dom), a;
|
|
10754
10754
|
}, pP = (e, n) => {
|
|
10755
|
-
if (
|
|
10755
|
+
if (xu(n.dom))
|
|
10756
10756
|
return !1;
|
|
10757
10757
|
const s = e.schema.getTextInlineElements();
|
|
10758
|
-
return jn(s, pe(n)) && !
|
|
10759
|
-
}, kx = {}, r6 =
|
|
10758
|
+
return jn(s, pe(n)) && !xu(n.dom) && !nm(n.dom);
|
|
10759
|
+
}, kx = {}, r6 = Ou(["pre"]), i6 = (e, n) => {
|
|
10760
10760
|
kx[e] || (kx[e] = []), kx[e].push(n);
|
|
10761
10761
|
}, a6 = (e, n) => {
|
|
10762
10762
|
jn(kx, e) && Se(kx[e], (s) => {
|
|
@@ -10791,7 +10791,7 @@ Required: ` + n.join(", "));
|
|
|
10791
10791
|
], SZ = (e) => Ue(e.styles) && He(Io(e.styles), (n) => Le(Hd, n)), kZ = (e) => es(e, (n) => ra(n) && n.inline === "span" && SZ(n)), CZ = (e, n) => {
|
|
10792
10792
|
const s = e.get(n);
|
|
10793
10793
|
return at(s) ? kZ(s) : Y.none();
|
|
10794
|
-
}, MT = (e, n) => ul(n, St.fromRangeStart(e)).isNone(), l6 = (e, n) => ec(n, St.fromRangeEnd(e)).exists((s) => !Ls(s.getNode()) || ec(n, s).isSome()) === !1, TZ = (e) => (n) =>
|
|
10794
|
+
}, MT = (e, n) => ul(n, St.fromRangeStart(e)).isNone(), l6 = (e, n) => ec(n, St.fromRangeEnd(e)).exists((s) => !Ls(s.getNode()) || ec(n, s).isSome()) === !1, TZ = (e) => (n) => yu(n) && e.isEditable(n), _Z = (e) => {
|
|
10795
10795
|
const n = e.getSelectedBlocks(), s = e.getRng();
|
|
10796
10796
|
if (e.isCollapsed())
|
|
10797
10797
|
return [];
|
|
@@ -10801,7 +10801,7 @@ Required: ` + n.join(", "));
|
|
|
10801
10801
|
const a = Lo(n).filter((v) => MT(s, v)).toArray(), d = Qs(n).filter((v) => l6(s, v)).toArray(), p = n.slice(1, -1);
|
|
10802
10802
|
return a.concat(p).concat(d);
|
|
10803
10803
|
}
|
|
10804
|
-
}, bP = (e) => wn(_Z(e), TZ(e.dom)), Sh = (e) => wn(e.getSelectedBlocks(), TZ(e.dom)), Cx = Bt.each, Tv = (e) => On(e) && !Nc(e) && !
|
|
10804
|
+
}, bP = (e) => wn(_Z(e), TZ(e.dom)), Sh = (e) => wn(e.getSelectedBlocks(), TZ(e.dom)), Cx = Bt.each, Tv = (e) => On(e) && !Nc(e) && !xu(e) && !nm(e), BT = (e, n) => {
|
|
10805
10805
|
for (let s = e; s; s = s[n]) {
|
|
10806
10806
|
if (Ht(s) && So(s.data))
|
|
10807
10807
|
return e;
|
|
@@ -10851,7 +10851,7 @@ Required: ` + n.join(", "));
|
|
|
10851
10851
|
{ keep: [] },
|
|
10852
10852
|
{ rename: ["name"] },
|
|
10853
10853
|
{ removed: [] }
|
|
10854
|
-
]), Yb = /^(src|href|style)$/, LT = Bt.each, IT =
|
|
10854
|
+
]), Yb = /^(src|href|style)$/, LT = Bt.each, IT = Su, d6 = (e) => /^(TR|TH|TD)$/.test(e.nodeName), f6 = (e, n, s) => e.isChildOf(n, s) && n !== s && !e.isBlock(s), h6 = (e, n, s) => {
|
|
10855
10855
|
let a = n[s ? "startContainer" : "endContainer"], d = n[s ? "startOffset" : "endOffset"];
|
|
10856
10856
|
if (On(a)) {
|
|
10857
10857
|
const p = a.childNodes.length - 1;
|
|
@@ -10900,7 +10900,7 @@ Required: ` + n.join(", "));
|
|
|
10900
10900
|
});
|
|
10901
10901
|
}, Tx = (e, n, s, a, d) => {
|
|
10902
10902
|
const p = e.dom, v = i1(e), C = e.schema;
|
|
10903
|
-
if (ra(n) &&
|
|
10903
|
+
if (ra(n) && vu(C, n.inline) && Ad(C, a) && a.parentElement === e.getBody())
|
|
10904
10904
|
return b6(e, a, n), Gb.removed();
|
|
10905
10905
|
if (!n.ceFalseOverride && a && p.getContentEditableParent(a) === "false" || a && !ET(p, a, n) && !p6(a, n))
|
|
10906
10906
|
return Gb.keep();
|
|
@@ -10929,7 +10929,7 @@ Required: ` + n.join(", "));
|
|
|
10929
10929
|
}
|
|
10930
10930
|
}
|
|
10931
10931
|
}
|
|
10932
|
-
if (Yb.test(ie) && P.removeAttribute("data-mce-" + ie), ie === "style" &&
|
|
10932
|
+
if (Yb.test(ie) && P.removeAttribute("data-mce-" + ie), ie === "style" && Ou(["li"])(P) && p.getStyle(P, "list-style-type") === "none") {
|
|
10933
10933
|
P.removeAttribute(ie), p.setStyle(P, "list-style-type", "none");
|
|
10934
10934
|
return;
|
|
10935
10935
|
}
|
|
@@ -11081,7 +11081,7 @@ Required: ` + n.join(", "));
|
|
|
11081
11081
|
Tm(e, p, s, a) && kh(e, n, a, d) || n.merge_with_parents && p && e.dom.getParent(p, (v) => Tm(e, v, s, a) ? (kh(e, n, a, d), !0) : !1);
|
|
11082
11082
|
}, _x = Bt.each, DZ = (e, n, s, a) => {
|
|
11083
11083
|
if (Ow(e) && ra(n) && s.parentNode) {
|
|
11084
|
-
const d = YS(e.schema), p = FO(Me.fromDom(s), (v) =>
|
|
11084
|
+
const d = YS(e.schema), p = FO(Me.fromDom(s), (v) => xu(v.dom));
|
|
11085
11085
|
return sr(d, a) && ea(e.schema, s.parentNode, {
|
|
11086
11086
|
skipBogus: !1,
|
|
11087
11087
|
includeZwsp: !0
|
|
@@ -11105,7 +11105,7 @@ Required: ` + n.join(", "));
|
|
|
11105
11105
|
});
|
|
11106
11106
|
}, W = (he, ue) => {
|
|
11107
11107
|
let Oe = !1;
|
|
11108
|
-
return _x(he, (Fe) => kc(Fe) ? C.getContentEditable(ue) === "false" && !Fe.ceFalseOverride || je(Fe.collapsed) && Fe.collapsed !== v ? !0 : C.is(ue, Fe.selector) && !
|
|
11108
|
+
return _x(he, (Fe) => kc(Fe) ? C.getContentEditable(ue) === "false" && !Fe.ceFalseOverride || je(Fe.collapsed) && Fe.collapsed !== v ? !0 : C.is(ue, Fe.selector) && !xu(ue) ? (B(ue, Fe), Oe = !0, !1) : !0 : !1), Oe;
|
|
11109
11109
|
}, X = (he) => {
|
|
11110
11110
|
if (re(he)) {
|
|
11111
11111
|
const ue = C.create(he);
|
|
@@ -11119,7 +11119,7 @@ Required: ` + n.join(", "));
|
|
|
11119
11119
|
const $n = Sp(p) && MC(e.schema, kt) && H0(e, gt, Ye);
|
|
11120
11120
|
return Vt && $n;
|
|
11121
11121
|
}, Tn = (kt, gt, Vt, $n) => {
|
|
11122
|
-
const Kn = kt.nodeName.toLowerCase(), wo = H0(e, Ye, Kn) && H0(e, gt, Ye), Jo = !Oe && Ht(kt) && Z2(kt.data), Ks =
|
|
11122
|
+
const Kn = kt.nodeName.toLowerCase(), wo = H0(e, Ye, Kn) && H0(e, gt, Ye), Jo = !Oe && Ht(kt) && Z2(kt.data), Ks = xu(kt), ur = !ra(p) || !he.isBlock(kt);
|
|
11123
11123
|
return (Vt || $n) && wo && !Jo && !Ks && ur;
|
|
11124
11124
|
};
|
|
11125
11125
|
W0(he, ue, (kt) => {
|
|
@@ -11694,7 +11694,7 @@ Required: ` + n.join(", "));
|
|
|
11694
11694
|
enumerable: !0,
|
|
11695
11695
|
value: !1
|
|
11696
11696
|
}
|
|
11697
|
-
})), vn = null, os = null, ms = !0, Pa = !0, nr = !1, ic = !0,
|
|
11697
|
+
})), vn = null, os = null, ms = !0, Pa = !0, nr = !1, ic = !0, $u = !1, Dm = !0, _c = !1, ld = !1, cd = !1, Zl = !1, ud = !1, Xn = !1, Ps = !0, Ii = !1;
|
|
11698
11698
|
const $a = "user-content-";
|
|
11699
11699
|
let hl = !0, Aa = !1, Oi = {}, yi = null;
|
|
11700
11700
|
const Ic = $r({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -11727,7 +11727,7 @@ Required: ` + n.join(", "));
|
|
|
11727
11727
|
// eslint-disable-line indent
|
|
11728
11728
|
ac
|
|
11729
11729
|
// eslint-disable-line indent
|
|
11730
|
-
) : Rm, yi = Mf(pt, "FORBID_CONTENTS") ? $r({}, pt.FORBID_CONTENTS, ac) : Ic, vn = Mf(pt, "FORBID_TAGS") ? $r({}, pt.FORBID_TAGS, ac) : {}, os = Mf(pt, "FORBID_ATTR") ? $r({}, pt.FORBID_ATTR, ac) : {}, Oi = Mf(pt, "USE_PROFILES") ? pt.USE_PROFILES : !1, ms = pt.ALLOW_ARIA_ATTR !== !1, Pa = pt.ALLOW_DATA_ATTR !== !1, nr = pt.ALLOW_UNKNOWN_PROTOCOLS || !1, ic = pt.ALLOW_SELF_CLOSE_IN_ATTR !== !1,
|
|
11730
|
+
) : Rm, yi = Mf(pt, "FORBID_CONTENTS") ? $r({}, pt.FORBID_CONTENTS, ac) : Ic, vn = Mf(pt, "FORBID_TAGS") ? $r({}, pt.FORBID_TAGS, ac) : {}, os = Mf(pt, "FORBID_ATTR") ? $r({}, pt.FORBID_ATTR, ac) : {}, Oi = Mf(pt, "USE_PROFILES") ? pt.USE_PROFILES : !1, ms = pt.ALLOW_ARIA_ATTR !== !1, Pa = pt.ALLOW_DATA_ATTR !== !1, nr = pt.ALLOW_UNKNOWN_PROTOCOLS || !1, ic = pt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $u = pt.SAFE_FOR_TEMPLATES || !1, Dm = pt.SAFE_FOR_XML !== !1, _c = pt.WHOLE_DOCUMENT || !1, Zl = pt.RETURN_DOM || !1, ud = pt.RETURN_DOM_FRAGMENT || !1, Xn = pt.RETURN_TRUSTED_TYPE || !1, cd = pt.FORCE_BODY || !1, Ps = pt.SANITIZE_DOM !== !1, Ii = pt.SANITIZE_NAMED_PROPS || !1, hl = pt.KEEP_CONTENT !== !1, Aa = pt.IN_PLACE || !1, un = pt.ALLOWED_URI_REGEXP || z6, Vp = pt.NAMESPACE || zf, go = pt.CUSTOM_ELEMENT_HANDLING || {}, pt.CUSTOM_ELEMENT_HANDLING && ut(pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (go.tagNameCheck = pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), pt.CUSTOM_ELEMENT_HANDLING && ut(pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (go.attributeNameCheck = pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), pt.CUSTOM_ELEMENT_HANDLING && typeof pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (go.allowCustomizedBuiltInElements = pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $u && (Pa = !1), ud && (Zl = !0), Oi && (Gn = $r({}, F6), Sn = [], Oi.html === !0 && ($r(Gn, I6), $r(Sn, eO)), Oi.svg === !0 && ($r(Gn, LP), $r(Sn, FP), $r(Sn, XT)), Oi.svgFilters === !0 && ($r(Gn, IP), $r(Sn, FP), $r(Sn, XT)), Oi.mathMl === !0 && ($r(Gn, QP), $r(Sn, V6), $r(Sn, XT))), pt.ADD_TAGS && (Gn === Ms && (Gn = Jb(Gn)), $r(Gn, pt.ADD_TAGS, ac)), pt.ADD_ATTR && (Sn === fo && (Sn = Jb(Sn)), $r(Sn, pt.ADD_ATTR, ac)), pt.ADD_URI_SAFE_ATTR && $r(Bh, pt.ADD_URI_SAFE_ATTR, ac), pt.FORBID_CONTENTS && (yi === Ic && (yi = Jb(yi)), $r(yi, pt.FORBID_CONTENTS, ac)), hl && (Gn["#text"] = !0), _c && $r(Gn, ["html", "head", "body"]), Gn.table && ($r(Gn, ["tbody"]), delete vn.tbody), pt.TRUSTED_TYPES_POLICY) {
|
|
11731
11731
|
if (typeof pt.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
11732
11732
|
throw Ax('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
11733
11733
|
if (typeof pt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -11799,8 +11799,8 @@ Required: ` + n.join(", "));
|
|
|
11799
11799
|
} catch {
|
|
11800
11800
|
}
|
|
11801
11801
|
}
|
|
11802
|
-
const
|
|
11803
|
-
return pt && qo &&
|
|
11802
|
+
const Au = to.body || to.documentElement;
|
|
11803
|
+
return pt && qo && Au.insertBefore(s.createTextNode(qo), Au.childNodes[0] || null), Vp === zf ? gt.call(to, _c ? "html" : "body")[0] : _c ? to.documentElement : Au;
|
|
11804
11804
|
}, vQ = function(pt) {
|
|
11805
11805
|
return Tn.call(
|
|
11806
11806
|
pt.ownerDocument || pt,
|
|
@@ -11831,18 +11831,18 @@ Required: ` + n.join(", "));
|
|
|
11831
11831
|
if (!vn[qo] && gR(qo) && (go.tagNameCheck instanceof RegExp && id(go.tagNameCheck, qo) || go.tagNameCheck instanceof Function && go.tagNameCheck(qo)))
|
|
11832
11832
|
return !1;
|
|
11833
11833
|
if (hl && !yi[qo]) {
|
|
11834
|
-
const ba = Ye(pt) || pt.parentNode,
|
|
11835
|
-
if (
|
|
11836
|
-
const Qc =
|
|
11834
|
+
const ba = Ye(pt) || pt.parentNode, Au = Ge(pt) || pt.childNodes;
|
|
11835
|
+
if (Au && ba) {
|
|
11836
|
+
const Qc = Au.length;
|
|
11837
11837
|
for (let qd = Qc - 1; qd >= 0; --qd) {
|
|
11838
|
-
const Pg = ue(
|
|
11838
|
+
const Pg = ue(Au[qd], !0);
|
|
11839
11839
|
Pg.__removalCount = (pt.__removalCount || 0) + 1, ba.insertBefore(Pg, Fe(pt));
|
|
11840
11840
|
}
|
|
11841
11841
|
}
|
|
11842
11842
|
}
|
|
11843
11843
|
return Hf(pt), !0;
|
|
11844
11844
|
}
|
|
11845
|
-
return pt instanceof P && !Mm(pt) || (qo === "noscript" || qo === "noembed" || qo === "noframes") && id(/<\/no(script|embed|frames)/i, pt.innerHTML) ? (Hf(pt), !0) : (
|
|
11845
|
+
return pt instanceof P && !Mm(pt) || (qo === "noscript" || qo === "noembed" || qo === "noframes") && id(/<\/no(script|embed|frames)/i, pt.innerHTML) ? (Hf(pt), !0) : ($u && pt.nodeType === Rx.text && (to = pt.textContent, Av([Kn, wo, Jo], (ba) => {
|
|
11846
11846
|
to = $x(to, ba, " ");
|
|
11847
11847
|
}), pt.textContent !== to && (Dv(n.removed, {
|
|
11848
11848
|
element: pt.cloneNode()
|
|
@@ -11891,11 +11891,11 @@ Required: ` + n.join(", "));
|
|
|
11891
11891
|
};
|
|
11892
11892
|
let ba = to.length;
|
|
11893
11893
|
for (; ba--; ) {
|
|
11894
|
-
const
|
|
11894
|
+
const Au = to[ba], {
|
|
11895
11895
|
name: Qc,
|
|
11896
11896
|
namespaceURI: qd,
|
|
11897
11897
|
value: Pg
|
|
11898
|
-
} =
|
|
11898
|
+
} = Au, b2 = ac(Qc);
|
|
11899
11899
|
let Fc = Qc === "value" ? Pg : zZ(Pg);
|
|
11900
11900
|
const EY = Fc;
|
|
11901
11901
|
if (qo.attrName = b2, qo.attrValue = Fc, qo.keepAttr = !0, qo.forceKeepAttr = void 0, Eg("uponSanitizeAttribute", pt, qo), Fc = qo.attrValue, qo.forceKeepAttr)
|
|
@@ -11908,7 +11908,7 @@ Required: ` + n.join(", "));
|
|
|
11908
11908
|
PS(Qc, pt);
|
|
11909
11909
|
continue;
|
|
11910
11910
|
}
|
|
11911
|
-
|
|
11911
|
+
$u && Av([Kn, wo, Jo], (TQ) => {
|
|
11912
11912
|
Fc = $x(Fc, TQ, " ");
|
|
11913
11913
|
});
|
|
11914
11914
|
const CQ = ac(pt.nodeName);
|
|
@@ -11946,7 +11946,7 @@ Required: ` + n.join(", "));
|
|
|
11946
11946
|
Eg("afterSanitizeShadowDOM", pt, null);
|
|
11947
11947
|
};
|
|
11948
11948
|
return n.sanitize = function(ls) {
|
|
11949
|
-
let pt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, to = null, qo = null, ba = null,
|
|
11949
|
+
let pt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, to = null, qo = null, ba = null, Au = null;
|
|
11950
11950
|
if (m2 = !ls, m2 && (ls = "<!-->"), typeof ls != "string" && !wQ(ls))
|
|
11951
11951
|
if (typeof ls.toString == "function") {
|
|
11952
11952
|
if (ls = ls.toString(), typeof ls != "string")
|
|
@@ -11964,7 +11964,7 @@ Required: ` + n.join(", "));
|
|
|
11964
11964
|
} else if (ls instanceof C)
|
|
11965
11965
|
to = yQ("<!---->"), qo = to.ownerDocument.importNode(ls, !0), qo.nodeType === Rx.element && qo.nodeName === "BODY" || qo.nodeName === "HTML" ? to = qo : to.appendChild(qo);
|
|
11966
11966
|
else {
|
|
11967
|
-
if (!Zl &&
|
|
11967
|
+
if (!Zl && !$u && !_c && // eslint-disable-next-line unicorn/prefer-includes
|
|
11968
11968
|
ls.indexOf("<") === -1)
|
|
11969
11969
|
return rt && Xn ? rt.createHTML(ls) : ls;
|
|
11970
11970
|
if (to = yQ(ls), !to)
|
|
@@ -11978,15 +11978,15 @@ Required: ` + n.join(", "));
|
|
|
11978
11978
|
return ls;
|
|
11979
11979
|
if (Zl) {
|
|
11980
11980
|
if (ud)
|
|
11981
|
-
for (
|
|
11982
|
-
|
|
11981
|
+
for (Au = kt.call(to.ownerDocument); to.firstChild; )
|
|
11982
|
+
Au.appendChild(to.firstChild);
|
|
11983
11983
|
else
|
|
11984
|
-
|
|
11985
|
-
return (Sn.shadowroot || Sn.shadowrootmode) && (
|
|
11984
|
+
Au = to;
|
|
11985
|
+
return (Sn.shadowroot || Sn.shadowrootmode) && (Au = Vt.call(a, Au, !0)), Au;
|
|
11986
11986
|
}
|
|
11987
11987
|
let qd = _c ? to.outerHTML : to.innerHTML;
|
|
11988
11988
|
return _c && Gn["!doctype"] && to.ownerDocument && to.ownerDocument.doctype && to.ownerDocument.doctype.name && id(H6, to.ownerDocument.doctype.name) && (qd = "<!DOCTYPE " + to.ownerDocument.doctype.name + `>
|
|
11989
|
-
` + qd),
|
|
11989
|
+
` + qd), $u && Av([Kn, wo, Jo], (Pg) => {
|
|
11990
11990
|
qd = $x(qd, Pg, " ");
|
|
11991
11991
|
}), rt && Xn ? rt.createHTML(qd) : qd;
|
|
11992
11992
|
}, n.setConfig = function() {
|
|
@@ -12183,7 +12183,7 @@ Required: ` + n.join(", "));
|
|
|
12183
12183
|
je(d) && (d.allowedTags[X] = !0);
|
|
12184
12184
|
return;
|
|
12185
12185
|
}
|
|
12186
|
-
if (e.nodeType !==
|
|
12186
|
+
if (e.nodeType !== hu || X === "body")
|
|
12187
12187
|
return;
|
|
12188
12188
|
const G = Me.fromDom(e), ie = Ui(G, nO), he = da(G, "data-mce-bogus");
|
|
12189
12189
|
if (!ie && re(he)) {
|
|
@@ -13625,7 +13625,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
13625
13625
|
}, eB = (e) => {
|
|
13626
13626
|
e.selection.setRng(e.selection.getRng());
|
|
13627
13627
|
}, tB = (e, n, s) => {
|
|
13628
|
-
Hh(e, n) && !s ? cf(e, n) : s &&
|
|
13628
|
+
Hh(e, n) && !s ? cf(e, n) : s && mu(e, n);
|
|
13629
13629
|
}, nB = (e) => {
|
|
13630
13630
|
const n = Me.fromDom(e.getBody());
|
|
13631
13631
|
tB(n, "mce-content-readonly", !0), e.selection.controlSelection.hideResizeRect(), e._selectionOverrides.hideFakeCaret(), kH(e);
|
|
@@ -13676,9 +13676,9 @@ Options:${v}${s.join(v)}` : "";
|
|
|
13676
13676
|
});
|
|
13677
13677
|
}, AH = (e) => {
|
|
13678
13678
|
TH(e), $H(e);
|
|
13679
|
-
}, iB = (e) => /^[a-z0-9\-]+$/i.test(e), vg = (e) => "content/" + e + "/content.css",
|
|
13679
|
+
}, iB = (e) => /^[a-z0-9\-]+$/i.test(e), vg = (e) => "content/" + e + "/content.css", Tu = (e) => tinymce.Resource.has(vg(e)), aB = (e) => Dp(e, b5(e)), Wx = (e) => Dp(e, mw(e)), Dp = (e, n) => {
|
|
13680
13680
|
const s = e.editorManager.baseURL + "/skins/content", d = `content${e.editorManager.suffix}.css`;
|
|
13681
|
-
return Je(n, (p) =>
|
|
13681
|
+
return Je(n, (p) => Tu(p) ? p : iB(p) && !e.inline ? `${s}/${p}/${d}` : e.documentBaseURI.toAbsolute(p));
|
|
13682
13682
|
}, wg = (e) => {
|
|
13683
13683
|
e.contentCSS = e.contentCSS.concat(aB(e), Wx(e));
|
|
13684
13684
|
}, jx = (e) => e ? Zr(e.getElementsByTagName("img")) : [], S$ = (e, n) => {
|
|
@@ -14709,7 +14709,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14709
14709
|
const P = (B, W) => Ac(B).fold(() => W, (X) => A$(a, X) ? P(X, W.concat(im(X))) : W);
|
|
14710
14710
|
return P(C, []);
|
|
14711
14711
|
})(s), (C, P) => (qm(C, P), P), _f());
|
|
14712
|
-
|
|
14712
|
+
pu(n), wr(n, v);
|
|
14713
14713
|
}
|
|
14714
14714
|
return cr(s), Ql(n.dom);
|
|
14715
14715
|
}
|
|
@@ -14738,7 +14738,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14738
14738
|
})).getOr(Y.none());
|
|
14739
14739
|
}, B$ = (e, n) => {
|
|
14740
14740
|
const s = Me.fromDom(n), a = Be(Cs, e);
|
|
14741
|
-
return
|
|
14741
|
+
return gu(s, lb, a).isSome();
|
|
14742
14742
|
}, kB = (e, n) => B$(e, n.startContainer) || B$(e, n.endContainer), CB = (e, n) => {
|
|
14743
14743
|
const s = ul(e.dom, St.fromRangeStart(n)).isNone(), a = ec(e.dom, St.fromRangeEnd(n)).isNone();
|
|
14744
14744
|
return !kB(e, n) && s && a;
|
|
@@ -14787,7 +14787,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14787
14787
|
}, Q$ = (e) => {
|
|
14788
14788
|
const n = e.selection.getRng();
|
|
14789
14789
|
return !n.collapsed && (I$(e, !0).exists((s) => s.isEqual(St.fromRangeStart(n))) || I$(e, !1).exists((s) => s.isEqual(St.fromRangeEnd(n))));
|
|
14790
|
-
}, F$ = (e) => je(e) && (lb(Me.fromDom(e)) || rg(Me.fromDom(e))),
|
|
14790
|
+
}, F$ = (e) => je(e) && (lb(Me.fromDom(e)) || rg(Me.fromDom(e))), _u = td.generate([
|
|
14791
14791
|
{ remove: ["element"] },
|
|
14792
14792
|
{ moveToElement: ["element"] },
|
|
14793
14793
|
{ moveToPosition: ["position"] }
|
|
@@ -14799,10 +14799,10 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14799
14799
|
return yC(!n, s).fold(() => yC(n, a).fold(Ke, p), p);
|
|
14800
14800
|
}, PB = (e, n, s, a, d) => {
|
|
14801
14801
|
const p = d.getNode(!s);
|
|
14802
|
-
return dT(Me.fromDom(n), Me.fromDom(a.getNode())).map((v) => ta(e, v) ?
|
|
14803
|
-
}, V$ = (e, n, s, a) => Il(n, e, s).bind((d) => F$(d.getNode()) || KH(e, n, s, d, a) ? Y.none() : n && Ds(d.getNode()) || !n && Ds(d.getNode(!0)) ? PB(a, e, n, s, d) : n && t1(s) || !n && e1(s) ? Y.some(
|
|
14802
|
+
return dT(Me.fromDom(n), Me.fromDom(a.getNode())).map((v) => ta(e, v) ? _u.remove(v.dom) : _u.moveToElement(p)).orThunk(() => Y.some(_u.moveToElement(p)));
|
|
14803
|
+
}, V$ = (e, n, s, a) => Il(n, e, s).bind((d) => F$(d.getNode()) || KH(e, n, s, d, a) ? Y.none() : n && Ds(d.getNode()) || !n && Ds(d.getNode(!0)) ? PB(a, e, n, s, d) : n && t1(s) || !n && e1(s) ? Y.some(_u.moveToPosition(d)) : Y.none()), $B = (e, n) => an(n) ? Y.none() : e && Ds(n.nextSibling) ? Y.some(_u.moveToElement(n.nextSibling)) : !e && Ds(n.previousSibling) ? Y.some(_u.moveToElement(n.previousSibling)) : Y.none(), Z$ = (e, n, s) => s.fold((a) => Y.some(_u.remove(a)), (a) => Y.some(_u.moveToElement(a)), (a) => Ld(n, a, e) ? Y.none() : Y.some(_u.moveToPosition(a))), AB = (e, n, s, a) => EB(n, s) ? $B(n, s.getNode(!n)).orThunk(() => V$(e, n, s, a)) : V$(e, n, s, a).bind((d) => Z$(e, s, d)), DB = (e, n, s, a) => {
|
|
14804
14804
|
const d = Q0(n ? 1 : -1, e, s), p = St.fromRangeStart(d), v = Me.fromDom(e);
|
|
14805
|
-
return !n && t1(p) ? Y.some(
|
|
14805
|
+
return !n && t1(p) ? Y.some(_u.remove(p.getNode(!0))) : n && e1(p) ? Y.some(_u.remove(p.getNode())) : !n && e1(p) && iT(v, p, a) ? h8(v, p, a).map((C) => _u.remove(C.getNode())) : n && t1(p) && mo(v, p, a) ? AV(v, p, a).map((C) => _u.remove(C.getNode())) : AB(e, n, p, a);
|
|
14806
14806
|
}, z$ = (e, n) => (s) => (e._selectionOverrides.hideFakeCaret(), Xb(e, n, Me.fromDom(s)), !0), JH = (e, n) => (s) => {
|
|
14807
14807
|
const a = n ? St.before(s) : St.after(s);
|
|
14808
14808
|
return e.selection.setRng(a.toRange()), !0;
|
|
@@ -15267,7 +15267,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15267
15267
|
});
|
|
15268
15268
|
} else
|
|
15269
15269
|
return Y.none();
|
|
15270
|
-
}, hA = (e, n) => e.selection.isCollapsed() ? sS(e, n) : NU(e), LU = (e, n) => Jp(e, (s) =>
|
|
15270
|
+
}, hA = (e, n) => e.selection.isCollapsed() ? sS(e, n) : NU(e), LU = (e, n) => Jp(e, (s) => xu(s.dom), (s) => n.isBlock(pe(s))), pN = (e) => LU(Me.fromDom(e.selection.getStart()), e.schema), IU = (e) => {
|
|
15271
15271
|
const n = e.selection.getRng();
|
|
15272
15272
|
return n.collapsed && (fA(n) || e.dom.isEmpty(n.startContainer)) && !pN(e);
|
|
15273
15273
|
}, $h = (e) => (IU(e) && mN(e, []), !0), P3 = (e, n, s) => je(s) ? Y.some(() => {
|
|
@@ -15840,7 +15840,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15840
15840
|
trigger: s
|
|
15841
15841
|
});
|
|
15842
15842
|
});
|
|
15843
|
-
}, nL = (e) => e.nodeType === fe, PW = (e) => e.nodeType ===
|
|
15843
|
+
}, nL = (e) => e.nodeType === fe, PW = (e) => e.nodeType === hu, oL = (e) => {
|
|
15844
15844
|
if (nL(e))
|
|
15845
15845
|
return $m(e, e.data.length);
|
|
15846
15846
|
{
|
|
@@ -16550,7 +16550,7 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
16550
16550
|
else
|
|
16551
16551
|
do
|
|
16552
16552
|
if (G[X.nodeName]) {
|
|
16553
|
-
if (
|
|
16553
|
+
if (xu(X) || Nc(X))
|
|
16554
16554
|
continue;
|
|
16555
16555
|
const ue = X.cloneNode(!1);
|
|
16556
16556
|
C.setAttrib(ue, "id", ""), ie.hasChildNodes() ? (ue.appendChild(ie.firstChild), ie.appendChild(ue)) : (he = ue, ie.appendChild(ue));
|
|
@@ -16813,40 +16813,40 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
16813
16813
|
}, Wj = (e) => {
|
|
16814
16814
|
const n = e.selection.getRng(), s = Me.fromDom(n.startContainer), d = zu(s, n.startOffset).map((p) => as(p) && !kd(p));
|
|
16815
16815
|
return n.collapsed && d.getOr(!0);
|
|
16816
|
-
},
|
|
16817
|
-
|
|
16818
|
-
|
|
16816
|
+
}, Eu = (e, n) => (s, a) => Co(e, (p, v) => p && v(s, a), !0) ? Y.some(n) : Y.none(), s9 = (e, n) => FB([
|
|
16817
|
+
Eu([r4], Xd.none()),
|
|
16818
|
+
Eu([
|
|
16819
16819
|
t2(!0),
|
|
16820
16820
|
uD
|
|
16821
16821
|
], Xd.none()),
|
|
16822
|
-
|
|
16823
|
-
|
|
16822
|
+
Eu([Hj()], Xd.br()),
|
|
16823
|
+
Eu([
|
|
16824
16824
|
t2(!0),
|
|
16825
16825
|
dD(!1),
|
|
16826
16826
|
a4
|
|
16827
16827
|
], Xd.br()),
|
|
16828
|
-
|
|
16828
|
+
Eu([
|
|
16829
16829
|
t2(!0),
|
|
16830
16830
|
dD(!1)
|
|
16831
16831
|
], Xd.block()),
|
|
16832
|
-
|
|
16832
|
+
Eu([
|
|
16833
16833
|
t2(!0),
|
|
16834
16834
|
dD(!0),
|
|
16835
16835
|
a4
|
|
16836
16836
|
], Xd.block()),
|
|
16837
|
-
|
|
16837
|
+
Eu([
|
|
16838
16838
|
t2(!0),
|
|
16839
16839
|
dD(!0)
|
|
16840
16840
|
], Xd.br()),
|
|
16841
|
-
|
|
16841
|
+
Eu([
|
|
16842
16842
|
o9(!0),
|
|
16843
16843
|
a4
|
|
16844
16844
|
], Xd.br()),
|
|
16845
|
-
|
|
16846
|
-
|
|
16847
|
-
|
|
16848
|
-
|
|
16849
|
-
|
|
16845
|
+
Eu([o9(!0)], Xd.block()),
|
|
16846
|
+
Eu([v1], Xd.br()),
|
|
16847
|
+
Eu([a4], Xd.br()),
|
|
16848
|
+
Eu([Uj], Xd.block()),
|
|
16849
|
+
Eu([Wj], Xd.block())
|
|
16850
16850
|
], [
|
|
16851
16851
|
e,
|
|
16852
16852
|
!!(n && n.shiftKey)
|
|
@@ -17369,7 +17369,7 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
17369
17369
|
A9(e, v9(n), d, !1, a);
|
|
17370
17370
|
}, O4 = (e, n, s) => {
|
|
17371
17371
|
const a = e.dom.encode(n).replace(/\r\n/g, `
|
|
17372
|
-
`), d =
|
|
17372
|
+
`), d = bu(a, aM(e)), p = CD(d, Xa(e), mh(e));
|
|
17373
17373
|
A9(e, p, !1, !0, s);
|
|
17374
17374
|
}, y4 = (e) => {
|
|
17375
17375
|
const n = {};
|
|
@@ -18033,7 +18033,7 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
18033
18033
|
const Jo = Me.fromHtml('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>', Vt);
|
|
18034
18034
|
return Gr(Jo, "id", p), wr(gt, Jo), Jo;
|
|
18035
18035
|
}), Kn = s.createRng();
|
|
18036
|
-
|
|
18036
|
+
pu($n), Td($n, [
|
|
18037
18037
|
Me.fromText(Xi, Vt),
|
|
18038
18038
|
Me.fromDom(kt),
|
|
18039
18039
|
Me.fromText(Xi, Vt)
|
|
@@ -18834,7 +18834,7 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
18834
18834
|
frameBorder: "0",
|
|
18835
18835
|
allowTransparency: "true",
|
|
18836
18836
|
title: n
|
|
18837
|
-
}),
|
|
18837
|
+
}), mu(d, "tox-edit-area__iframe"), d;
|
|
18838
18838
|
}, II = (e) => {
|
|
18839
18839
|
let n = up(e) + "<html><head>";
|
|
18840
18840
|
zk(e) !== e.documentBaseUrl && (n += '<base href="' + e.documentBaseURI.getURI() + '" />'), n += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
|
|
@@ -20161,7 +20161,7 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
20161
20161
|
}
|
|
20162
20162
|
}
|
|
20163
20163
|
const f2 = Tr.DOM, Y4 = Bt.each;
|
|
20164
|
-
let uQ = !1, K4,
|
|
20164
|
+
let uQ = !1, K4, Pu = [];
|
|
20165
20165
|
const _S = (e) => {
|
|
20166
20166
|
const n = e.type;
|
|
20167
20167
|
Y4(C1.get(), (s) => {
|
|
@@ -20180,8 +20180,8 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
20180
20180
|
e ? (n.bind(window, "resize", _S), n.bind(window, "scroll", _S)) : (n.unbind(window, "resize", _S), n.unbind(window, "scroll", _S)), uQ = e;
|
|
20181
20181
|
}
|
|
20182
20182
|
}, fQ = (e) => {
|
|
20183
|
-
const n =
|
|
20184
|
-
return
|
|
20183
|
+
const n = Pu;
|
|
20184
|
+
return Pu = wn(Pu, (s) => e !== s), C1.activeEditor === e && (C1.activeEditor = Pu.length > 0 ? Pu[0] : null), C1.focusedEditor === e && (C1.focusedEditor = null), n.length !== Pu.length;
|
|
20185
20185
|
}, pY = (e) => {
|
|
20186
20186
|
e && e.initialized && !(e.getContainer() || e.getBody()).parentNode && (fQ(e), e.unbindAllNativeEvents(), e.destroy(!0), e.removed = !0);
|
|
20187
20187
|
}, bY = document.compatMode !== "CSS1Compat", C1 = {
|
|
@@ -20270,11 +20270,11 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
20270
20270
|
});
|
|
20271
20271
|
},
|
|
20272
20272
|
get(e) {
|
|
20273
|
-
return arguments.length === 0 ?
|
|
20273
|
+
return arguments.length === 0 ? Pu.slice(0) : re(e) ? es(Pu, (n) => n.id === e).getOr(null) : Wt(e) && Pu[e] ? Pu[e] : null;
|
|
20274
20274
|
},
|
|
20275
20275
|
add(e) {
|
|
20276
20276
|
const n = this, s = n.get(e.id);
|
|
20277
|
-
return s === e || (s === null &&
|
|
20277
|
+
return s === e || (s === null && Pu.push(e), dQ(!0), n.activeEditor = e, n.dispatch("AddEditor", { editor: e }), K4 || (K4 = (a) => {
|
|
20278
20278
|
const d = n.dispatch("BeforeUnload");
|
|
20279
20279
|
if (d.returnValue)
|
|
20280
20280
|
return a.preventDefault(), a.returnValue = d.returnValue, d.returnValue;
|
|
@@ -20287,8 +20287,8 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
20287
20287
|
const n = this;
|
|
20288
20288
|
let s;
|
|
20289
20289
|
if (!e) {
|
|
20290
|
-
for (let a =
|
|
20291
|
-
n.remove(
|
|
20290
|
+
for (let a = Pu.length - 1; a >= 0; a--)
|
|
20291
|
+
n.remove(Pu[a]);
|
|
20292
20292
|
return;
|
|
20293
20293
|
}
|
|
20294
20294
|
if (re(e)) {
|
|
@@ -20297,7 +20297,7 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
20297
20297
|
});
|
|
20298
20298
|
return;
|
|
20299
20299
|
}
|
|
20300
|
-
return s = e, te(n.get(s.id)) ? null : (fQ(s) && n.dispatch("RemoveEditor", { editor: s }),
|
|
20300
|
+
return s = e, te(n.get(s.id)) ? null : (fQ(s) && n.dispatch("RemoveEditor", { editor: s }), Pu.length === 0 && window.removeEventListener("beforeunload", K4), s.remove(), dQ(Pu.length > 0), s);
|
|
20301
20301
|
},
|
|
20302
20302
|
execCommand(e, n, s) {
|
|
20303
20303
|
var a;
|
|
@@ -20322,7 +20322,7 @@ Input object: ` + jv(e.input), WA = (e, n) => RW(e, Uo(n, dS)), jW = wt(yL), fS
|
|
|
20322
20322
|
return d.activeEditor ? d.activeEditor.execCommand(e, n, s) : !1;
|
|
20323
20323
|
},
|
|
20324
20324
|
triggerSave: () => {
|
|
20325
|
-
Y4(
|
|
20325
|
+
Y4(Pu, (e) => {
|
|
20326
20326
|
e.save();
|
|
20327
20327
|
});
|
|
20328
20328
|
},
|
|
@@ -21103,7 +21103,7 @@ tinymce.IconManager.add("default", {
|
|
|
21103
21103
|
}, Xo = (t, r) => t.dom === r.dom, pl = (t, r) => {
|
|
21104
21104
|
const l = t.dom, h = r.dom;
|
|
21105
21105
|
return l === h ? !1 : l.contains(h);
|
|
21106
|
-
}, fr = (t) => Ot.fromDom(t.dom.ownerDocument), $c = (t) => fi(t) ? t : fr(t), Na = (t) => Ot.fromDom($c(t).dom.documentElement), Rl = (t) => Ot.fromDom($c(t).dom.defaultView), ni = (t) => Q.from(t.dom.parentNode).map(Ot.fromDom),
|
|
21106
|
+
}, fr = (t) => Ot.fromDom(t.dom.ownerDocument), $c = (t) => fi(t) ? t : fr(t), Na = (t) => Ot.fromDom($c(t).dom.documentElement), Rl = (t) => Ot.fromDom($c(t).dom.defaultView), ni = (t) => Q.from(t.dom.parentNode).map(Ot.fromDom), uu = (t) => ni(t), ya = (t) => Q.from(t.dom.parentElement).map(Ot.fromDom), du = (t, r) => {
|
|
21107
21107
|
const l = we(r) ? r : tt;
|
|
21108
21108
|
let h = t.dom;
|
|
21109
21109
|
const b = [];
|
|
@@ -21117,12 +21117,12 @@ tinymce.IconManager.add("default", {
|
|
|
21117
21117
|
}, Ul = (t) => Q.from(t.dom.offsetParent).map(Ot.fromDom), Od = (t) => Q.from(t.dom.nextSibling).map(Ot.fromDom), jr = (t) => Ke(t.dom.childNodes, Ot.fromDom), bl = (t, r) => {
|
|
21118
21118
|
const l = t.dom.childNodes;
|
|
21119
21119
|
return Q.from(l[r]).map(Ot.fromDom);
|
|
21120
|
-
}, uc = (t) => bl(t, 0),
|
|
21120
|
+
}, uc = (t) => bl(t, 0), fu = (t, r) => ({
|
|
21121
21121
|
element: t,
|
|
21122
21122
|
offset: r
|
|
21123
21123
|
}), dc = (t, r) => {
|
|
21124
21124
|
const l = jr(t);
|
|
21125
|
-
return l.length > 0 && r < l.length ?
|
|
21125
|
+
return l.length > 0 && r < l.length ? fu(l[r], 0) : fu(t, r);
|
|
21126
21126
|
}, fc = (t) => Si(t) && De(t.dom.host), Xr = (t) => Ot.fromDom(t.dom.getRootNode()), qr = (t) => fc(t) ? t : Ot.fromDom($c(t).dom.body), va = (t) => zc(t).isSome(), zc = (t) => {
|
|
21127
21127
|
const r = Xr(t);
|
|
21128
21128
|
return fc(r) ? Q.some(r) : Q.none();
|
|
@@ -21266,7 +21266,7 @@ tinymce.IconManager.add("default", {
|
|
|
21266
21266
|
}, Ia = (t) => {
|
|
21267
21267
|
const r = t.dom, h = r.ownerDocument.body;
|
|
21268
21268
|
return h === r ? hr(h.offsetLeft, h.offsetTop) : ze(t) ? Wc(r) : hr(0, 0);
|
|
21269
|
-
},
|
|
21269
|
+
}, hu = ki("width", (t) => t.dom.offsetWidth), fe = (t, r) => hu.set(t, r), pe = (t) => hu.get(t), nt = (t) => hu.getOuter(t), $t = (t, r) => {
|
|
21270
21270
|
const l = [
|
|
21271
21271
|
"margin-left",
|
|
21272
21272
|
"border-left-width",
|
|
@@ -21274,7 +21274,7 @@ tinymce.IconManager.add("default", {
|
|
|
21274
21274
|
"padding-right",
|
|
21275
21275
|
"border-right-width",
|
|
21276
21276
|
"margin-right"
|
|
21277
|
-
], h =
|
|
21277
|
+
], h = hu.max(t, r, l);
|
|
21278
21278
|
rn(t, "max-width", h + "px");
|
|
21279
21279
|
}, Un = (t) => {
|
|
21280
21280
|
let r = !1, l;
|
|
@@ -21433,10 +21433,10 @@ tinymce.IconManager.add("default", {
|
|
|
21433
21433
|
], Qu = {
|
|
21434
21434
|
browsers: te(jc),
|
|
21435
21435
|
oses: te(zh)
|
|
21436
|
-
}, af = "Edge", lf = "Chromium", yd = "IE", vd = "Opera", Wl = "Firefox", Fa = "Safari", Wp = () =>
|
|
21436
|
+
}, af = "Edge", lf = "Chromium", yd = "IE", vd = "Opera", Wl = "Firefox", Fa = "Safari", Wp = () => mu({
|
|
21437
21437
|
current: void 0,
|
|
21438
21438
|
version: vr.unknown()
|
|
21439
|
-
}),
|
|
21439
|
+
}), mu = (t) => {
|
|
21440
21440
|
const r = t.current, l = t.version, h = (b) => () => r === b;
|
|
21441
21441
|
return {
|
|
21442
21442
|
current: r,
|
|
@@ -21450,7 +21450,7 @@ tinymce.IconManager.add("default", {
|
|
|
21450
21450
|
};
|
|
21451
21451
|
}, Vm = {
|
|
21452
21452
|
unknown: Wp,
|
|
21453
|
-
nu:
|
|
21453
|
+
nu: mu,
|
|
21454
21454
|
edge: te(af),
|
|
21455
21455
|
chromium: te(lf),
|
|
21456
21456
|
ie: te(yd),
|
|
@@ -21605,7 +21605,7 @@ tinymce.IconManager.add("default", {
|
|
|
21605
21605
|
point: t,
|
|
21606
21606
|
width: r,
|
|
21607
21607
|
height: l
|
|
21608
|
-
}),
|
|
21608
|
+
}), gu = (t, r, l, h) => ({
|
|
21609
21609
|
x: t,
|
|
21610
21610
|
y: r,
|
|
21611
21611
|
width: l,
|
|
@@ -21744,7 +21744,7 @@ tinymce.IconManager.add("default", {
|
|
|
21744
21744
|
newKey: r,
|
|
21745
21745
|
presence: l,
|
|
21746
21746
|
prop: h
|
|
21747
|
-
}),
|
|
21747
|
+
}), pu = (t, r) => ({
|
|
21748
21748
|
tag: "custom",
|
|
21749
21749
|
newKey: t,
|
|
21750
21750
|
instantiator: r
|
|
@@ -21901,7 +21901,7 @@ tinymce.IconManager.add("default", {
|
|
|
21901
21901
|
extract: (x, S) => l().extract(x, S),
|
|
21902
21902
|
toString: () => l().toString()
|
|
21903
21903
|
};
|
|
21904
|
-
}, t0 = Ft(Gc, uo),
|
|
21904
|
+
}, t0 = Ft(Gc, uo), bu = te(Kp), Pd = (t, r) => eh((l) => {
|
|
21905
21905
|
const h = typeof l;
|
|
21906
21906
|
return t(l) ? mi.svalue(l) : mi.serror(`Expected type: ${r} but got: ${h}`);
|
|
21907
21907
|
}), th = Pd(Te, "number"), On = Pd(w, "string"), Yc = Pd(H, "boolean"), z1 = Pd(we, "function"), tm = (t) => {
|
|
@@ -21925,7 +21925,7 @@ tinymce.IconManager.add("default", {
|
|
|
21925
21925
|
default:
|
|
21926
21926
|
return !1;
|
|
21927
21927
|
}
|
|
21928
|
-
},
|
|
21928
|
+
}, Ou = eh((t) => tm(t) ? mi.svalue(t) : mi.serror("Expected value to be acceptable for sending via postMessage")), Vg = (t, r, l, h) => qt(l, h).fold(() => xl(t, l, h), (x) => x.extract(t.concat(["branch: " + h]), r)), nh = (t, r) => ({
|
|
21929
21929
|
extract: (b, x) => qt(x, t).fold(() => gi(b, t), (E) => Vg(b, x, r, E)),
|
|
21930
21930
|
toString: () => "chooseOn(" + t + "). Possible values: " + is(r)
|
|
21931
21931
|
}), nm = () => Gc(Kp), Zg = (t) => eh((r) => t(r).fold(mi.serror, mi.svalue)), Wu = (t, r) => Ym((l) => mi.fromResult(t(l)), r), ZO = (t, r, l) => {
|
|
@@ -21940,7 +21940,7 @@ tinymce.IconManager.add("default", {
|
|
|
21940
21940
|
` + Eo(t.errors).join(`
|
|
21941
21941
|
`) + `
|
|
21942
21942
|
|
|
21943
|
-
Input object: ` + Ro(t.input), Yi = (t, r) => nh(t, No(r, uo)), Km = (t, r) => VO(t, r), Ki = Td, Ls =
|
|
21943
|
+
Input object: ` + Ro(t.input), Yi = (t, r) => nh(t, No(r, uo)), Km = (t, r) => VO(t, r), Ki = Td, Ls = pu, n0 = (t) => Zg((r) => Dt(t, r) ? Ao.value(r) : Ao.error(`Unsupported value: "${r}", choose one of "${t.join(", ")}".`)), At = (t) => Ki(t, t, pc(), bu()), Ds = (t, r) => Ki(t, t, pc(), r), o0 = (t) => Ds(t, th), Ji = (t) => Ds(t, On), ha = (t, r) => Ki(t, t, pc(), n0(r)), yu = (t) => Ds(t, z1), H1 = (t, r) => Ki(t, t, Gm(), eh((l) => mi.serror("The field: " + t + " is forbidden. " + r))), oh = (t, r) => Ki(t, t, pc(), uo(r)), U1 = (t, r) => Ki(t, t, pc(), t0(r)), bc = (t, r) => Ki(t, t, pc(), Gc(r)), Rs = (t) => Ki(t, t, Gm(), bu()), $d = (t, r) => Ki(t, t, Gm(), r), zg = (t) => $d(t, th), ci = (t) => $d(t, On), Hg = (t, r) => $d(t, n0(r)), pf = (t) => $d(t, z1), s0 = (t, r) => $d(t, Gc(r)), ea = (t, r) => $d(t, uo(r)), ta = (t, r) => $d(t, Ua(r)), ot = (t, r) => Ki(t, t, gf(r), bu()), Sr = (t, r, l) => Ki(t, t, gf(r), l), W1 = (t, r) => Sr(t, r, th), Ir = (t, r) => Sr(t, r, On), Sa = (t, r, l) => Sr(t, r, n0(l)), ka = (t, r) => Sr(t, r, Yc), Ws = (t, r) => Sr(t, r, z1), j1 = (t, r) => Sr(t, r, Ou), A = (t, r, l) => Sr(t, r, Gc(l)), I = (t, r, l) => Sr(t, r, uo(l)), de = { generate: (t) => {
|
|
21944
21944
|
if (!R(t))
|
|
21945
21945
|
throw new Error("cases must be an array");
|
|
21946
21946
|
if (t.length === 0)
|
|
@@ -22051,7 +22051,7 @@ Required: ` + r.join(", "));
|
|
|
22051
22051
|
break;
|
|
22052
22052
|
}
|
|
22053
22053
|
return Q.none();
|
|
22054
|
-
},
|
|
22054
|
+
}, vu = (t, r, l) => {
|
|
22055
22055
|
const h = r(t), b = Xu(l);
|
|
22056
22056
|
return h.orThunk(() => b(t) ? Q.none() : Sl(t, r, b));
|
|
22057
22057
|
}, Jm = (t, r) => Xo(t.element, r.event.target), Ad = {
|
|
@@ -22143,7 +22143,7 @@ Required: ` + r.join(", "));
|
|
|
22143
22143
|
const h = r.partUids[l];
|
|
22144
22144
|
return eb(t, h);
|
|
22145
22145
|
}, GO = (t, r) => _t(t, (l, h) => {
|
|
22146
|
-
const b = h.event, x = l.getSystem().getByDom(b.target).getOrThunk(() =>
|
|
22146
|
+
const b = h.event, x = l.getSystem().getByDom(b.target).getOrThunk(() => vu(b.target, (E) => l.getSystem().getByDom(E).toOptional(), tt).getOr(l));
|
|
22147
22147
|
r(l, x, h);
|
|
22148
22148
|
}), Gg = (t) => _t(t, (r, l) => {
|
|
22149
22149
|
l.cut();
|
|
@@ -22641,7 +22641,7 @@ Required: ` + r.join(", "));
|
|
|
22641
22641
|
Ji("fadeInClass"),
|
|
22642
22642
|
Ji("fadeOutClass"),
|
|
22643
22643
|
Ji("transitionClass"),
|
|
22644
|
-
|
|
22644
|
+
yu("lazyContext"),
|
|
22645
22645
|
bs("onShow"),
|
|
22646
22646
|
bs("onShown"),
|
|
22647
22647
|
bs("onHide"),
|
|
@@ -22909,7 +22909,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ke(r, (l) => l.name),
|
|
|
22909
22909
|
"reflecting",
|
|
22910
22910
|
"tooltipping"
|
|
22911
22911
|
]
|
|
22912
|
-
}),
|
|
22912
|
+
}), bu()),
|
|
22913
22913
|
Rs("domModification")
|
|
22914
22914
|
]), ug = (t) => Kr("custom.definition", xk, t), dm = (t) => ({
|
|
22915
22915
|
...t.dom,
|
|
@@ -23083,7 +23083,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ke(r, (l) => l.name),
|
|
|
23083
23083
|
...t
|
|
23084
23084
|
};
|
|
23085
23085
|
return a5(l, r).getOrDie();
|
|
23086
|
-
}), _l = (t) => C0(t, Q.none()),
|
|
23086
|
+
}), _l = (t) => C0(t, Q.none()), wu = Md;
|
|
23087
23087
|
var Ak = (t, r, l, h, b) => t(l, h) ? Q.some(l) : we(b) && b(l) ? Q.none() : r(l, h, b);
|
|
23088
23088
|
const Y2 = (t, r, l) => {
|
|
23089
23089
|
let h = t.dom;
|
|
@@ -23246,7 +23246,7 @@ Receiver: ` + am(r.element), L, x.data);
|
|
|
23246
23246
|
})])
|
|
23247
23247
|
}), zk = [Ds("channels", Wu(Ao.value, Ua([
|
|
23248
23248
|
ig("onReceive"),
|
|
23249
|
-
ot("schema",
|
|
23249
|
+
ot("schema", bu())
|
|
23250
23250
|
])))];
|
|
23251
23251
|
const Jc = ma({
|
|
23252
23252
|
fields: zk,
|
|
@@ -23676,7 +23676,7 @@ Receiver: ` + am(r.element), L, x.data);
|
|
|
23676
23676
|
const S = [
|
|
23677
23677
|
r,
|
|
23678
23678
|
x.point
|
|
23679
|
-
], E = Wk(h, () => rC(S), () => rC(S), () => _5(S)), D =
|
|
23679
|
+
], E = Wk(h, () => rC(S), () => rC(S), () => _5(S)), D = gu(E.left, E.top, x.width, x.height), L = l.showAbove ? iw() : T0(), Z = l.showAbove ? An() : hg(), j = Vy(b, l, L, Z, L, Z, Q.none());
|
|
23680
23680
|
return Fy({
|
|
23681
23681
|
anchorBox: D,
|
|
23682
23682
|
bubble: l.bubble.getOr(Qy()),
|
|
@@ -23831,7 +23831,7 @@ Receiver: ` + am(r.element), L, x.data);
|
|
|
23831
23831
|
}
|
|
23832
23832
|
});
|
|
23833
23833
|
Sb.ltr, Sb.rtl;
|
|
23834
|
-
const mC = (t, r, l) => bo(
|
|
23834
|
+
const mC = (t, r, l) => bo(du(t, l), r), Sc = (t, r) => gl(r, t), Wy = (t, r, l, h) => {
|
|
23835
23835
|
const x = fr(t).dom.createRange();
|
|
23836
23836
|
return x.setStart(t.dom, r), x.setEnd(l.dom, h), x;
|
|
23837
23837
|
}, $w = (t, r, l, h) => {
|
|
@@ -24114,11 +24114,11 @@ Receiver: ` + am(r.element), L, x.data);
|
|
|
24114
24114
|
Oh(b, t);
|
|
24115
24115
|
const x = t.getSystem().build(h);
|
|
24116
24116
|
return Oh(t, x), l.set(x), x;
|
|
24117
|
-
},
|
|
24117
|
+
}, xu = (t, r, l, h) => {
|
|
24118
24118
|
const b = Ky(t, r, l, h);
|
|
24119
24119
|
return r.onOpen(t, b), b;
|
|
24120
24120
|
}, pp = (t, r, l, h) => l.get().map(() => Ky(t, r, l, h)), L5 = (t, r, l, h, b) => {
|
|
24121
|
-
Eb(t, r),
|
|
24121
|
+
Eb(t, r), xu(t, r, l, h), b(), EC(t, r);
|
|
24122
24122
|
}, kC = (t, r, l) => {
|
|
24123
24123
|
l.get().each((h) => {
|
|
24124
24124
|
gp(t), yh(t), r.onClose(t, h), l.clear();
|
|
@@ -24146,7 +24146,7 @@ Receiver: ` + am(r.element), L, x.data);
|
|
|
24146
24146
|
__proto__: null,
|
|
24147
24147
|
cloak: Eb,
|
|
24148
24148
|
decloak: EC,
|
|
24149
|
-
open:
|
|
24149
|
+
open: xu,
|
|
24150
24150
|
openWhileCloaked: L5,
|
|
24151
24151
|
close: kC,
|
|
24152
24152
|
isOpen: bp,
|
|
@@ -24198,7 +24198,7 @@ Receiver: ` + am(r.element), L, x.data);
|
|
|
24198
24198
|
};
|
|
24199
24199
|
}, fM = Ua([
|
|
24200
24200
|
ea("fireEventInstead", [ot("event", A2())]),
|
|
24201
|
-
|
|
24201
|
+
yu("doReposition")
|
|
24202
24202
|
]), yp = (t) => {
|
|
24203
24203
|
const r = Bl("Reposition", fM, t);
|
|
24204
24204
|
return {
|
|
@@ -24374,7 +24374,7 @@ Receiver: ` + am(r.element), L, x.data);
|
|
|
24374
24374
|
}), Ya = (t, r) => I(t, {}, Ke(r, (l) => H1(l.name(), "Cannot configure " + l.name() + " for " + t)).concat([Ls("dump", Pt)])), Mb = (t) => t.dump, Pi = (t, r) => ({
|
|
24375
24375
|
...Yt(r),
|
|
24376
24376
|
...t.dump
|
|
24377
|
-
}),
|
|
24377
|
+
}), Su = {
|
|
24378
24378
|
field: Ya,
|
|
24379
24379
|
augment: Pi,
|
|
24380
24380
|
get: Mb
|
|
@@ -24434,7 +24434,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24434
24434
|
{ external: ["data"] },
|
|
24435
24435
|
{ optional: ["data"] },
|
|
24436
24436
|
{ group: ["data"] }
|
|
24437
|
-
]), Cc = ot("factory", { sketch: Pt }), Om = ot("schema", []), Nb = At("name"), ym = Ki("pname", "pname", ts((t) => "<alloy." + Pn(t.name) + ">"),
|
|
24437
|
+
]), Cc = ot("factory", { sketch: Pt }), Om = ot("schema", []), Nb = At("name"), ym = Ki("pname", "pname", ts((t) => "<alloy." + Pn(t.name) + ">"), bu()), U0 = Ls("schema", () => [Rs("preprocess")]), Lb = ot("defaults", te({})), Ib = ot("overrides", te({})), G5 = uo([
|
|
24438
24438
|
Cc,
|
|
24439
24439
|
Om,
|
|
24440
24440
|
Nb,
|
|
@@ -24547,7 +24547,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24547
24547
|
key: h,
|
|
24548
24548
|
value: t + "-" + h
|
|
24549
24549
|
})));
|
|
24550
|
-
}, dv = (t) => Ki("partUids", "partUids", M((r) => j0(r.uid, t)),
|
|
24550
|
+
}, dv = (t) => Ki("partUids", "partUids", M((r) => j0(r.uid, t)), bu());
|
|
24551
24551
|
var J5 = /* @__PURE__ */ Object.freeze({
|
|
24552
24552
|
__proto__: null,
|
|
24553
24553
|
generate: Ww,
|
|
@@ -24758,13 +24758,13 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24758
24758
|
}, Zd = (t, r, l) => {
|
|
24759
24759
|
const h = t.slice(0, r), b = t.slice(r + 1);
|
|
24760
24760
|
return Le(b.concat(h), l);
|
|
24761
|
-
},
|
|
24761
|
+
}, ku = (t, r, l) => {
|
|
24762
24762
|
const h = t.slice(r + 1);
|
|
24763
24763
|
return Le(h, l);
|
|
24764
24764
|
}, Yo = (t) => (r) => {
|
|
24765
24765
|
const l = r.raw;
|
|
24766
24766
|
return Dt(t, l.which);
|
|
24767
|
-
}, pi = (t) => (r) => Fn(t, (l) => l(r)), xm = (t) => t.raw.shiftKey === !0, G0 = (t) => t.raw.ctrlKey === !0,
|
|
24767
|
+
}, pi = (t) => (r) => Fn(t, (l) => l(r)), xm = (t) => t.raw.shiftKey === !0, G0 = (t) => t.raw.ctrlKey === !0, Cu = je(xm), Do = (t, r) => ({
|
|
24768
24768
|
matches: t,
|
|
24769
24769
|
classification: r
|
|
24770
24770
|
}), XC = (t, r) => Le(t, (h) => h.matches(r)).map((h) => h.classification), mv = (t, r, l) => {
|
|
@@ -24869,16 +24869,16 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24869
24869
|
const dt = We.cyclic ? hn : _a;
|
|
24870
24870
|
return D(xe, Ze, We, dt);
|
|
24871
24871
|
}, Z = (xe, Ze, We) => {
|
|
24872
|
-
const dt = We.cyclic ? Zd :
|
|
24872
|
+
const dt = We.cyclic ? Zd : ku;
|
|
24873
24873
|
return D(xe, Ze, We, dt);
|
|
24874
|
-
}, j = (xe) =>
|
|
24874
|
+
}, j = (xe) => uu(xe).bind(uc).exists((Ze) => Xo(Ze, xe)), oe = (xe, Ze, We) => b(xe, We).filter((dt) => !We.useTabstopAt(dt)).bind((dt) => (j(dt) ? L : Z)(xe, Ze, We)), ae = (xe, Ze, We) => We.onEnter.bind((dt) => dt(xe, Ze)), ge = (xe, Ze, We) => We.onEscape.bind((dt) => dt(xe, Ze)), ve = te([
|
|
24875
24875
|
Do(pi([
|
|
24876
24876
|
xm,
|
|
24877
24877
|
Yo(_s)
|
|
24878
24878
|
]), L),
|
|
24879
24879
|
Do(Yo(_s), Z),
|
|
24880
24880
|
Do(pi([
|
|
24881
|
-
|
|
24881
|
+
Cu,
|
|
24882
24882
|
Yo(Es)
|
|
24883
24883
|
]), ae)
|
|
24884
24884
|
]), Xe = te([
|
|
@@ -24980,7 +24980,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24980
24980
|
Yo(_s)
|
|
24981
24981
|
]), kM),
|
|
24982
24982
|
Do(pi([
|
|
24983
|
-
|
|
24983
|
+
Cu,
|
|
24984
24984
|
Yo(_s)
|
|
24985
24985
|
]), kM),
|
|
24986
24986
|
Do(Yo(si.concat(Es)), iV)
|
|
@@ -25094,7 +25094,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25094
25094
|
Yo(_s)
|
|
25095
25095
|
]), t8),
|
|
25096
25096
|
Do(pi([
|
|
25097
|
-
|
|
25097
|
+
Cu,
|
|
25098
25098
|
Yo(_s)
|
|
25099
25099
|
]), n8),
|
|
25100
25100
|
Do(Yo(Es), KM),
|
|
@@ -25117,7 +25117,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25117
25117
|
], yV = (t, r, l) => [
|
|
25118
25118
|
Do(Yo(si), l.onSpace),
|
|
25119
25119
|
Do(pi([
|
|
25120
|
-
|
|
25120
|
+
Cu,
|
|
25121
25121
|
Yo(Es)
|
|
25122
25122
|
]), l.onEnter),
|
|
25123
25123
|
Do(pi([
|
|
@@ -25129,7 +25129,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25129
25129
|
Yo(_s)
|
|
25130
25130
|
]), l.onShiftTab),
|
|
25131
25131
|
Do(pi([
|
|
25132
|
-
|
|
25132
|
+
Cu,
|
|
25133
25133
|
Yo(_s)
|
|
25134
25134
|
]), l.onTab),
|
|
25135
25135
|
Do(Yo(Fd), l.onUp),
|
|
@@ -25392,7 +25392,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25392
25392
|
...t.hasSubmenu ? { "aria-expanded": !1 } : {}
|
|
25393
25393
|
}
|
|
25394
25394
|
},
|
|
25395
|
-
behaviours:
|
|
25395
|
+
behaviours: Su.augment(t.itemBehaviours, [
|
|
25396
25396
|
t.toggling.fold(Ko.revoke, (r) => Ko.config(lT(r, t.role.exists((l) => l === "option")))),
|
|
25397
25397
|
mo.config({
|
|
25398
25398
|
ignore: t.ignoreFocus,
|
|
@@ -25423,7 +25423,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25423
25423
|
ot("hasSubmenu", !1),
|
|
25424
25424
|
Rs("toggling"),
|
|
25425
25425
|
Rs("role"),
|
|
25426
|
-
|
|
25426
|
+
Su.field("itemBehaviours", [
|
|
25427
25427
|
Ko,
|
|
25428
25428
|
mo,
|
|
25429
25429
|
qn,
|
|
@@ -25469,7 +25469,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25469
25469
|
t.autofocus ? h(x) : mo.focus(x);
|
|
25470
25470
|
})
|
|
25471
25471
|
]),
|
|
25472
|
-
behaviours:
|
|
25472
|
+
behaviours: Su.augment(t.widgetBehaviours, [
|
|
25473
25473
|
kn.config({
|
|
25474
25474
|
store: {
|
|
25475
25475
|
mode: "memory",
|
|
@@ -25500,7 +25500,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25500
25500
|
At("dom"),
|
|
25501
25501
|
ot("autofocus", !1),
|
|
25502
25502
|
ot("ignoreFocus", !1),
|
|
25503
|
-
|
|
25503
|
+
Su.field("widgetBehaviours", [
|
|
25504
25504
|
kn,
|
|
25505
25505
|
mo,
|
|
25506
25506
|
qn
|
|
@@ -25778,7 +25778,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25778
25778
|
const $o = Jn.menu, pr = j(bn, yo.slice(1));
|
|
25779
25779
|
return xt(pr, (lr) => {
|
|
25780
25780
|
Ei(lr.element, t.markers.backgroundMenu);
|
|
25781
|
-
}), ze($o.element) || vo.append(Ut,
|
|
25781
|
+
}), ze($o.element) || vo.append(Ut, wu($o)), kf($o.element, [t.markers.backgroundMenu]), Z(Ut, $o), oe(Ut, bn, yo), Q.some($o);
|
|
25782
25782
|
}
|
|
25783
25783
|
}));
|
|
25784
25784
|
let Xe;
|
|
@@ -25798,7 +25798,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25798
25798
|
const zo = S(bn);
|
|
25799
25799
|
return b.expand(zo).bind((Jn) => (ge(Ut, Jn), Q.from(Jn[0]).bind(($o) => b.lookupMenu($o).bind((pr) => {
|
|
25800
25800
|
const lr = xe(Ut, $o, pr);
|
|
25801
|
-
return ze(lr.element) || vo.append(Ut,
|
|
25801
|
+
return ze(lr.element) || vo.append(Ut, wu(lr)), t.onOpenSubmenu(Ut, bn, lr, Oo(Jn)), yo === Xe.HighlightSubmenu ? (Qt.highlightFirst(lr), ve(Ut, b, Jn)) : (Qt.dehighlightAll(lr), Q.some(bn));
|
|
25802
25802
|
}))));
|
|
25803
25803
|
}
|
|
25804
25804
|
}, We = (Ut, bn) => {
|
|
@@ -25827,7 +25827,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25827
25827
|
}),
|
|
25828
25828
|
Qr((Ut, bn) => {
|
|
25829
25829
|
x(Ut).each((yo) => {
|
|
25830
|
-
vo.append(Ut,
|
|
25830
|
+
vo.append(Ut, wu(yo)), t.onOpenMenu(Ut, yo), t.highlightOnOpen === Ka.HighlightMenuAndItem ? Z(Ut, yo) : t.highlightOnOpen === Ka.HighlightJustMenu && L(Ut, yo);
|
|
25831
25831
|
});
|
|
25832
25832
|
}),
|
|
25833
25833
|
_t(IE, (Ut, bn) => {
|
|
@@ -26384,7 +26384,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26384
26384
|
dom: t.dom,
|
|
26385
26385
|
components: t.components,
|
|
26386
26386
|
events: r,
|
|
26387
|
-
behaviours:
|
|
26387
|
+
behaviours: Su.augment(t.buttonBehaviours, [
|
|
26388
26388
|
mo.config({}),
|
|
26389
26389
|
qn.config({
|
|
26390
26390
|
mode: "execution",
|
|
@@ -26400,7 +26400,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26400
26400
|
ot("uid", void 0),
|
|
26401
26401
|
At("dom"),
|
|
26402
26402
|
ot("components", []),
|
|
26403
|
-
|
|
26403
|
+
Su.field("buttonBehaviours", [
|
|
26404
26404
|
mo,
|
|
26405
26405
|
qn
|
|
26406
26406
|
]),
|
|
@@ -26857,7 +26857,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26857
26857
|
} = mP, $o = null;
|
|
26858
26858
|
const pr = Pr({}, [...Y8, ...yx, ...vx, ...wx, ...fP]);
|
|
26859
26859
|
let lr = null;
|
|
26860
|
-
const
|
|
26860
|
+
const Du = Pr({}, [...Tm, ...xx, ...J8, ...PT]);
|
|
26861
26861
|
let ui = Object.seal(CT(null, {
|
|
26862
26862
|
tagNameCheck: {
|
|
26863
26863
|
writable: !0,
|
|
@@ -26889,28 +26889,28 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26889
26889
|
const Nie = Pr({}, [PQ, $Q, PO], uP);
|
|
26890
26890
|
let yR = null;
|
|
26891
26891
|
const Lie = ["application/xhtml+xml", "text/html"], Iie = "text/html";
|
|
26892
|
-
let
|
|
26892
|
+
let Ru = null, s_ = null;
|
|
26893
26893
|
const Qie = l.createElement("form"), cte = function(yt) {
|
|
26894
26894
|
return yt instanceof RegExp || yt instanceof Function;
|
|
26895
26895
|
}, MY = function() {
|
|
26896
26896
|
let yt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
26897
26897
|
if (!(s_ && s_ === yt)) {
|
|
26898
26898
|
if ((!yt || typeof yt != "object") && (yt = {}), yt = qb(yt), yR = // eslint-disable-next-line unicorn/prefer-includes
|
|
26899
|
-
Lie.indexOf(yt.PARSER_MEDIA_TYPE) === -1 ? Iie : yt.PARSER_MEDIA_TYPE,
|
|
26899
|
+
Lie.indexOf(yt.PARSER_MEDIA_TYPE) === -1 ? Iie : yt.PARSER_MEDIA_TYPE, Ru = yR === "application/xhtml+xml" ? uP : _T, $o = Cm(yt, "ALLOWED_TAGS") ? Pr({}, yt.ALLOWED_TAGS, Ru) : pr, lr = Cm(yt, "ALLOWED_ATTR") ? Pr({}, yt.ALLOWED_ATTR, Ru) : Du, RY = Cm(yt, "ALLOWED_NAMESPACES") ? Pr({}, yt.ALLOWED_NAMESPACES, uP) : Nie, AY = Cm(yt, "ADD_URI_SAFE_ATTR") ? Pr(
|
|
26900
26900
|
qb(lte),
|
|
26901
26901
|
// eslint-disable-line indent
|
|
26902
26902
|
yt.ADD_URI_SAFE_ATTR,
|
|
26903
26903
|
// eslint-disable-line indent
|
|
26904
|
-
|
|
26904
|
+
Ru
|
|
26905
26905
|
// eslint-disable-line indent
|
|
26906
26906
|
) : lte, ite = Cm(yt, "ADD_DATA_URI_TAGS") ? Pr(
|
|
26907
26907
|
qb(ate),
|
|
26908
26908
|
// eslint-disable-line indent
|
|
26909
26909
|
yt.ADD_DATA_URI_TAGS,
|
|
26910
26910
|
// eslint-disable-line indent
|
|
26911
|
-
|
|
26911
|
+
Ru
|
|
26912
26912
|
// eslint-disable-line indent
|
|
26913
|
-
) : ate, n_ = Cm(yt, "FORBID_CONTENTS") ? Pr({}, yt.FORBID_CONTENTS,
|
|
26913
|
+
) : ate, n_ = Cm(yt, "FORBID_CONTENTS") ? Pr({}, yt.FORBID_CONTENTS, Ru) : rte, Gd = Cm(yt, "FORBID_TAGS") ? Pr({}, yt.FORBID_TAGS, Ru) : {}, lc = Cm(yt, "FORBID_ATTR") ? Pr({}, yt.FORBID_ATTR, Ru) : {}, t_ = Cm(yt, "USE_PROFILES") ? yt.USE_PROFILES : !1, Yd = yt.ALLOW_ARIA_ATTR !== !1, Kd = yt.ALLOW_DATA_ATTR !== !1, Nh = yt.ALLOW_UNKNOWN_PROTOCOLS || !1, AS = yt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $g = yt.SAFE_FOR_TEMPLATES || !1, pR = yt.SAFE_FOR_XML !== !1, EO = yt.WHOLE_DOCUMENT || !1, e_ = yt.RETURN_DOM || !1, _Q = yt.RETURN_DOM_FRAGMENT || !1, EQ = yt.RETURN_TRUSTED_TYPE || !1, PY = yt.FORCE_BODY || !1, ote = yt.SANITIZE_DOM !== !1, ste = yt.SANITIZE_NAMED_PROPS || !1, $Y = yt.KEEP_CONTENT !== !1, OR = yt.IN_PLACE || !1, Jn = yt.ALLOWED_URI_REGEXP || $T, o_ = yt.NAMESPACE || PO, ui = yt.CUSTOM_ELEMENT_HANDLING || {}, yt.CUSTOM_ELEMENT_HANDLING && cte(yt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ui.tagNameCheck = yt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), yt.CUSTOM_ELEMENT_HANDLING && cte(yt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ui.attributeNameCheck = yt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), yt.CUSTOM_ELEMENT_HANDLING && typeof yt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ui.allowCustomizedBuiltInElements = yt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $g && (Kd = !1), _Q && (e_ = !0), t_ && ($o = Pr({}, fP), lr = [], t_.html === !0 && (Pr($o, Y8), Pr(lr, Tm)), t_.svg === !0 && (Pr($o, yx), Pr(lr, xx), Pr(lr, PT)), t_.svgFilters === !0 && (Pr($o, vx), Pr(lr, xx), Pr(lr, PT)), t_.mathMl === !0 && (Pr($o, wx), Pr(lr, J8), Pr(lr, PT))), yt.ADD_TAGS && ($o === pr && ($o = qb($o)), Pr($o, yt.ADD_TAGS, Ru)), yt.ADD_ATTR && (lr === Du && (lr = qb(lr)), Pr(lr, yt.ADD_ATTR, Ru)), yt.ADD_URI_SAFE_ATTR && Pr(AY, yt.ADD_URI_SAFE_ATTR, Ru), yt.FORBID_CONTENTS && (n_ === rte && (n_ = qb(n_)), Pr(n_, yt.FORBID_CONTENTS, Ru)), $Y && ($o["#text"] = !0), EO && Pr($o, ["html", "head", "body"]), $o.table && (Pr($o, ["tbody"]), delete Gd.tbody), yt.TRUSTED_TYPES_POLICY) {
|
|
26914
26914
|
if (typeof yt.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
26915
26915
|
throw c1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
26916
26916
|
if (typeof yt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -26965,8 +26965,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26965
26965
|
if (PY)
|
|
26966
26966
|
yt = "<remove></remove>" + yt;
|
|
26967
26967
|
else {
|
|
26968
|
-
const
|
|
26969
|
-
us =
|
|
26968
|
+
const Mu = G8(yt, /^[\r\n\t ]+/);
|
|
26969
|
+
us = Mu && Mu[0];
|
|
26970
26970
|
}
|
|
26971
26971
|
yR === "application/xhtml+xml" && o_ === PO && (yt = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + yt + "</body></html>");
|
|
26972
26972
|
const nl = dt ? dt.createHTML(yt) : yt;
|
|
@@ -27004,7 +27004,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27004
27004
|
let so = null;
|
|
27005
27005
|
if ($O("beforeSanitizeElements", yt, null), pte(yt))
|
|
27006
27006
|
return T1(yt), !0;
|
|
27007
|
-
const us =
|
|
27007
|
+
const us = Ru(yt.nodeName);
|
|
27008
27008
|
if ($O("uponSanitizeElement", yt, {
|
|
27009
27009
|
tagName: us,
|
|
27010
27010
|
allowedTags: $o
|
|
@@ -27016,8 +27016,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27016
27016
|
if ($Y && !n_[us]) {
|
|
27017
27017
|
const nl = We(yt) || yt.parentNode, Jd = Ze(yt) || yt.childNodes;
|
|
27018
27018
|
if (Jd && nl) {
|
|
27019
|
-
const
|
|
27020
|
-
for (let Lh =
|
|
27019
|
+
const Mu = Jd.length;
|
|
27020
|
+
for (let Lh = Mu - 1; Lh >= 0; --Lh) {
|
|
27021
27021
|
const _1 = ve(Jd[Lh], !0);
|
|
27022
27022
|
_1.__removalCount = (yt.__removalCount || 0) + 1, nl.insertBefore(_1, xe(yt));
|
|
27023
27023
|
}
|
|
@@ -27075,32 +27075,32 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27075
27075
|
let nl = so.length;
|
|
27076
27076
|
for (; nl--; ) {
|
|
27077
27077
|
const Jd = so[nl], {
|
|
27078
|
-
name:
|
|
27078
|
+
name: Mu,
|
|
27079
27079
|
namespaceURI: Lh,
|
|
27080
27080
|
value: _1
|
|
27081
|
-
} = Jd, wR =
|
|
27082
|
-
let fd =
|
|
27081
|
+
} = Jd, wR = Ru(Mu);
|
|
27082
|
+
let fd = Mu === "value" ? _1 : hZ(_1);
|
|
27083
27083
|
const zie = fd;
|
|
27084
27084
|
if (us.attrName = wR, us.attrValue = fd, us.keepAttr = !0, us.forceKeepAttr = void 0, $O("uponSanitizeAttribute", yt, us), fd = us.attrValue, us.forceKeepAttr)
|
|
27085
27085
|
continue;
|
|
27086
27086
|
if (!us.keepAttr) {
|
|
27087
|
-
vR(
|
|
27087
|
+
vR(Mu, yt);
|
|
27088
27088
|
continue;
|
|
27089
27089
|
}
|
|
27090
27090
|
if (!AS && sd(/\/>/i, fd)) {
|
|
27091
|
-
vR(
|
|
27091
|
+
vR(Mu, yt);
|
|
27092
27092
|
continue;
|
|
27093
27093
|
}
|
|
27094
27094
|
$g && TT([cs, Dr, Is], (Ste) => {
|
|
27095
27095
|
fd = Ox(fd, Ste, " ");
|
|
27096
27096
|
});
|
|
27097
|
-
const xte =
|
|
27097
|
+
const xte = Ru(yt.nodeName);
|
|
27098
27098
|
if (!yte(xte, wR, fd)) {
|
|
27099
|
-
vR(
|
|
27099
|
+
vR(Mu, yt);
|
|
27100
27100
|
continue;
|
|
27101
27101
|
}
|
|
27102
|
-
if (ste && (wR === "id" || wR === "name") && (vR(
|
|
27103
|
-
vR(
|
|
27102
|
+
if (ste && (wR === "id" || wR === "name") && (vR(Mu, yt), fd = Bie + fd), pR && sd(/((--!?|])>)|<\/(style|title)/i, fd)) {
|
|
27103
|
+
vR(Mu, yt);
|
|
27104
27104
|
continue;
|
|
27105
27105
|
}
|
|
27106
27106
|
if (dt && typeof ae == "object" && typeof ae.getAttributeType == "function" && !Lh)
|
|
@@ -27116,7 +27116,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27116
27116
|
}
|
|
27117
27117
|
if (fd !== zie)
|
|
27118
27118
|
try {
|
|
27119
|
-
Lh ? yt.setAttributeNS(Lh,
|
|
27119
|
+
Lh ? yt.setAttributeNS(Lh, Mu, fd) : yt.setAttribute(Mu, fd), pte(yt) ? T1(yt) : q8(r.removed);
|
|
27120
27120
|
} catch {
|
|
27121
27121
|
}
|
|
27122
27122
|
}
|
|
@@ -27140,7 +27140,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27140
27140
|
return Os;
|
|
27141
27141
|
if (bR || MY(yt), r.removed = [], typeof Os == "string" && (OR = !1), OR) {
|
|
27142
27142
|
if (Os.nodeName) {
|
|
27143
|
-
const _1 =
|
|
27143
|
+
const _1 = Ru(Os.nodeName);
|
|
27144
27144
|
if (!$o[_1] || Gd[_1])
|
|
27145
27145
|
throw c1("root node is forbidden and cannot be sanitized in-place");
|
|
27146
27146
|
}
|
|
@@ -27154,8 +27154,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27154
27154
|
return e_ ? null : EQ ? mt : "";
|
|
27155
27155
|
}
|
|
27156
27156
|
so && PY && T1(so.firstChild);
|
|
27157
|
-
const
|
|
27158
|
-
for (; nl =
|
|
27157
|
+
const Mu = gte(OR ? Os : so);
|
|
27158
|
+
for (; nl = Mu.nextNode(); )
|
|
27159
27159
|
Ote(nl) || (nl.content instanceof x && Zie(nl.content), wte(nl));
|
|
27160
27160
|
if (OR)
|
|
27161
27161
|
return Os;
|
|
@@ -27179,7 +27179,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27179
27179
|
s_ = null, bR = !1;
|
|
27180
27180
|
}, r.isValidAttribute = function(Os, yt, so) {
|
|
27181
27181
|
s_ || MY({});
|
|
27182
|
-
const us =
|
|
27182
|
+
const us = Ru(Os), nl = Ru(yt);
|
|
27183
27183
|
return yte(us, nl, so);
|
|
27184
27184
|
}, r.addHook = function(Os, yt) {
|
|
27185
27185
|
typeof yt == "function" && (Bn[Os] = Bn[Os] || [], bx(Bn[Os], yt));
|
|
@@ -27435,7 +27435,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27435
27435
|
backstageProvider: b.providers
|
|
27436
27436
|
}));
|
|
27437
27437
|
if (h.isSet()) {
|
|
27438
|
-
const Ze =
|
|
27438
|
+
const Ze = wu(ve);
|
|
27439
27439
|
h.on((We) => {
|
|
27440
27440
|
vo.append(We, Ze), ri.reposition(We), Er.refresh(We), E(We.components());
|
|
27441
27441
|
});
|
|
@@ -27478,7 +27478,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27478
27478
|
}))
|
|
27479
27479
|
})]
|
|
27480
27480
|
])
|
|
27481
|
-
})), We =
|
|
27481
|
+
})), We = wu(ve), dt = { maxHeightFunction: P0() }, mt = {
|
|
27482
27482
|
...b.anchors.banner(),
|
|
27483
27483
|
overrides: dt
|
|
27484
27484
|
};
|
|
@@ -27874,7 +27874,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27874
27874
|
components: PZ,
|
|
27875
27875
|
items: l
|
|
27876
27876
|
};
|
|
27877
|
-
}, ia = Ji("type"), _P = Ji("name"), EP = Ji("label"), Pp = Ji("text"), P6 = Ji("title"), $6 = Ji("icon"), Ex = Ji("value"), PP =
|
|
27877
|
+
}, ia = Ji("type"), _P = Ji("name"), EP = Ji("label"), Pp = Ji("text"), P6 = Ji("title"), $6 = Ji("icon"), Ex = Ji("value"), PP = yu("fetch"), A6 = yu("getSubmenuItems"), _v = yu("onAction"), LZ = yu("onItemAction"), d1 = Ws("onSetup", () => re), IZ = ci("name"), f1 = ci("text"), D6 = ci("role"), Ud = ci("icon"), Ev = ci("tooltip"), $P = ci("label"), AP = ci("shortcut"), QZ = pf("select"), Px = ka("active", !1), DP = ka("borderless", !1), Ch = ka("enabled", !0), UT = ka("primary", !1), R6 = (t) => ot("columns", t), RP = ot("meta", {}), MP = Ws("onAction", re), Pv = (t) => Ir("type", t), WT = (t) => Ki("name", "name", ts(() => Pn(`${t}-name`)), On), M6 = (t) => Ki("value", "value", ts(() => Pn(`${t}-value`)), bu()), B6 = uo([
|
|
27878
27878
|
ia,
|
|
27879
27879
|
f1
|
|
27880
27880
|
]), FZ = (t) => Kr("separatormenuitem", B6, t), VZ = uo([
|
|
@@ -28024,7 +28024,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28024
28024
|
I("initData", {}, [
|
|
28025
28025
|
ka("allowCustomColors", !0),
|
|
28026
28026
|
Ir("storageKey", "default"),
|
|
28027
|
-
s0("colors",
|
|
28027
|
+
s0("colors", bu())
|
|
28028
28028
|
])
|
|
28029
28029
|
].concat(Z6), GZ = Yi("fancytype", {
|
|
28030
28030
|
inserttable: XZ,
|
|
@@ -28717,7 +28717,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28717
28717
|
}, Lf = (t, r) => r === r$ && t.options.isSet("color_map_foreground") ? Eh("color_map_foreground")(t) : r === i$ && t.options.isSet("color_map_background") ? Eh("color_map_background")(t) : t.options.isSet("color_map_raw") ? Eh("color_map_raw")(t) : Eh("color_map")(t), l$ = (t, r = "default") => Math.max(Ez, Math.ceil(Math.sqrt(Lf(t, r).length))), S7 = (t, r) => {
|
|
28718
28718
|
const l = Eh("color_cols")(t), h = l$(t, r);
|
|
28719
28719
|
return l === l$(t) ? h : l;
|
|
28720
|
-
}, e3 = (t, r = "default") => Math.round(r === r$ ? Eh("color_cols_foreground")(t) : r === i$ ? Eh("color_cols_background")(t) : Eh("color_cols")(t)), Ja = Eh("custom_colors"), Az = Eh("color_default_foreground"), Dz = Eh("color_default_background"), Rz = "rgba(0, 0, 0, 0)", Mz = (t) => JT(t).exists((r) => r.alpha !== 0), Bz = (t) =>
|
|
28720
|
+
}, e3 = (t, r = "default") => Math.round(r === r$ ? Eh("color_cols_foreground")(t) : r === i$ ? Eh("color_cols_background")(t) : Eh("color_cols")(t)), Ja = Eh("custom_colors"), Az = Eh("color_default_foreground"), Dz = Eh("color_default_background"), Rz = "rgba(0, 0, 0, 0)", Mz = (t) => JT(t).exists((r) => r.alpha !== 0), Bz = (t) => vu(t, (r) => {
|
|
28721
28721
|
if (Qo(r)) {
|
|
28722
28722
|
const l = Bt(r, "background-color");
|
|
28723
28723
|
return jn(Mz(l), l);
|
|
@@ -28986,7 +28986,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28986
28986
|
for (let x = 0; x < h; x++)
|
|
28987
28987
|
for (let S = 0; S < b; S++)
|
|
28988
28988
|
Ko.set(t[x][S], x <= r && S <= l);
|
|
28989
|
-
}, Wz = (t) => Se(t, (r) => Ke(r,
|
|
28989
|
+
}, Wz = (t) => Se(t, (r) => Ke(r, wu)), B7 = (t, r) => Vr(`${r}x${t}`), N7 = {
|
|
28990
28990
|
inserttable: (t, r) => {
|
|
28991
28991
|
const b = zz(r), x = M7(b, 10, 10), S = B7(0, 0), E = Zs({
|
|
28992
28992
|
dom: {
|
|
@@ -29148,7 +29148,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29148
29148
|
__proto__: null,
|
|
29149
29149
|
getCoupled: (t, r, l, h) => l.getOrCreate(t, r, h),
|
|
29150
29150
|
getExistingCoupled: (t, r, l, h) => l.getExisting(t, r, h)
|
|
29151
|
-
}), oH = [Ds("others", Wu(Ao.value,
|
|
29151
|
+
}), oH = [Ds("others", Wu(Ao.value, bu()))], F7 = /* @__PURE__ */ Object.freeze({
|
|
29152
29152
|
__proto__: null,
|
|
29153
29153
|
init: () => {
|
|
29154
29154
|
const t = {}, r = (x, S) => {
|
|
@@ -29319,7 +29319,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29319
29319
|
classes: t.sandboxClasses,
|
|
29320
29320
|
attributes: { id: h.id }
|
|
29321
29321
|
},
|
|
29322
|
-
behaviours:
|
|
29322
|
+
behaviours: Su.augment(t.sandboxBehaviours, [
|
|
29323
29323
|
kn.config({
|
|
29324
29324
|
store: {
|
|
29325
29325
|
mode: "memory",
|
|
@@ -29348,7 +29348,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29348
29348
|
H7(r);
|
|
29349
29349
|
}, Qv = () => [
|
|
29350
29350
|
ot("sandboxClasses", []),
|
|
29351
|
-
|
|
29351
|
+
Su.field("sandboxBehaviours", [
|
|
29352
29352
|
xs,
|
|
29353
29353
|
Jc,
|
|
29354
29354
|
Ts,
|
|
@@ -29844,7 +29844,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29844
29844
|
});
|
|
29845
29845
|
},
|
|
29846
29846
|
filterByType: (S) => qt(t, S).map((E) => Ma(E, (D, L) => nB(L, D))).getOr([]),
|
|
29847
|
-
find: (S, E, D) => qt(t, E).bind((L) =>
|
|
29847
|
+
find: (S, E, D) => qt(t, E).bind((L) => vu(D, (Z) => l(L, Z), S))
|
|
29848
29848
|
};
|
|
29849
29849
|
}, Ap = () => {
|
|
29850
29850
|
const t = oB(), r = {}, l = (L) => {
|
|
@@ -30115,7 +30115,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
30115
30115
|
classes: ["tox-label"]
|
|
30116
30116
|
},
|
|
30117
30117
|
components: [Vr(r.translate(t))]
|
|
30118
|
-
}),
|
|
30118
|
+
}), Tu = Pn("form-component-change"), aB = Pn("form-component-input"), Wx = Pn("form-close"), Dp = Pn("form-cancel"), wg = Pn("form-action"), jx = Pn("form-submit"), S$ = Pn("form-block"), r3 = Pn("form-unblock"), lB = Pn("form-tabchange"), cB = Pn("form-resize"), DH = (t, r, l) => {
|
|
30119
30119
|
const h = t.label.map((ae) => vg(ae, r)), b = r.icons(), x = (ae) => {
|
|
30120
30120
|
var ge;
|
|
30121
30121
|
return (ge = b[ae]) !== null && ge !== void 0 ? ge : ae;
|
|
@@ -30440,7 +30440,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
30440
30440
|
_t(E$, (L, Z) => {
|
|
30441
30441
|
D.getOpt(L).each((j) => {
|
|
30442
30442
|
rn(j.element, "background-color", Z.event.color);
|
|
30443
|
-
}), zn(L,
|
|
30443
|
+
}), zn(L, Tu, { name: t.name });
|
|
30444
30444
|
}),
|
|
30445
30445
|
_t(hB, (L, Z) => {
|
|
30446
30446
|
As.getField(L).each((j) => {
|
|
@@ -30560,7 +30560,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
30560
30560
|
sc(t, l3(r));
|
|
30561
30561
|
}, Q$ = (t, r) => {
|
|
30562
30562
|
sc(t, Sg(l3(r), SB(r)));
|
|
30563
|
-
}, F$ = (t, r, l, h) => t < r ? t : t > l ? l : t === r ? r - 1 : Math.max(r, t - h),
|
|
30563
|
+
}, F$ = (t, r, l, h) => t < r ? t : t > l ? l : t === r ? r - 1 : Math.max(r, t - h), _u = (t, r, l, h) => t > l ? t : t < r ? r : t === l ? l + 1 : Math.min(l, t + h), EB = (t, r, l) => Math.max(r, Math.min(l, t)), KH = (t, r, l, h, b) => b.fold(() => {
|
|
30564
30564
|
const x = t - r, S = Math.round(x / h) * h;
|
|
30565
30565
|
return EB(r + S, r - 1, l + 1);
|
|
30566
30566
|
}, (x) => {
|
|
@@ -30632,7 +30632,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
30632
30632
|
const l = cO(r);
|
|
30633
30633
|
p3(t, l);
|
|
30634
30634
|
}, NB = (t, r, l, h) => {
|
|
30635
|
-
const x = (t > 0 ?
|
|
30635
|
+
const x = (t > 0 ? _u : F$)(Mp(l), aO(l), cO(l), uO(l, h));
|
|
30636
30636
|
return p3(r, x), Q.some(x);
|
|
30637
30637
|
}, LB = (t) => (r, l, h) => NB(t, r, l, h).map(ht), tU = (t) => $$(t).map((l) => l.left), b3 = (t, r, l, h, b) => {
|
|
30638
30638
|
const S = H$(t), E = h.bind((Z) => Q.some(j$(Z, t))).getOr(0), D = b.bind((Z) => Q.some(j$(Z, t))).getOr(S), L = {
|
|
@@ -30710,7 +30710,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
30710
30710
|
const l = m1(r);
|
|
30711
30711
|
O3(t, l);
|
|
30712
30712
|
}, rU = (t, r, l, h) => {
|
|
30713
|
-
const x = (t > 0 ?
|
|
30713
|
+
const x = (t > 0 ? _u : F$)(Mp(l), lO(l), m1(l), uO(l, h));
|
|
30714
30714
|
return O3(r, x), Q.some(x);
|
|
30715
30715
|
}, Y$ = (t) => (r, l, h) => rU(t, r, l, h).map(ht), kg = (t) => $$(t).map((l) => l.top), K$ = (t, r, l, h, b) => {
|
|
30716
30716
|
const S = U$(t), E = h.bind((Z) => Q.some(g3(Z, t))).getOr(0), D = b.bind((Z) => Q.some(g3(Z, t))).getOr(S), L = {
|
|
@@ -30768,7 +30768,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
30768
30768
|
const h = Kx(t, r, l.left), b = G$(t, r, l.top), x = x3(h, b);
|
|
30769
30769
|
return w3(t, x), x;
|
|
30770
30770
|
}, dU = (t, r, l, h, b) => {
|
|
30771
|
-
const x = t > 0 ?
|
|
30771
|
+
const x = t > 0 ? _u : F$, S = r ? Mp(h).x : x(Mp(h).x, aO(h), cO(h), uO(h, b)), E = r ? x(Mp(h).y, lO(h), m1(h), uO(h, b)) : Mp(h).y;
|
|
30772
30772
|
return w3(l, x3(S, E)), Q.some(S);
|
|
30773
30773
|
}, If = (t, r) => (l, h, b) => dU(t, r, l, h, b).map(ht), S3 = (t, r) => {
|
|
30774
30774
|
const l = aO(r), h = lO(r);
|
|
@@ -31554,7 +31554,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
31554
31554
|
const ge = ae.event.raw.target;
|
|
31555
31555
|
zn(oe, T3, { files: ge.files });
|
|
31556
31556
|
}, E = (oe, ae) => {
|
|
31557
|
-
ae && (kn.setValue(oe, aN(ae, r)), zn(oe,
|
|
31557
|
+
ae && (kn.setValue(oe, aN(ae, r)), zn(oe, Tu, { name: t.name }));
|
|
31558
31558
|
}, D = Zs({
|
|
31559
31559
|
dom: {
|
|
31560
31560
|
tag: "input",
|
|
@@ -32116,7 +32116,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
32116
32116
|
value: x.value,
|
|
32117
32117
|
active: x.value === h,
|
|
32118
32118
|
onAction: () => {
|
|
32119
|
-
kn.setValue(t, x.value), zn(t,
|
|
32119
|
+
kn.setValue(t, x.value), zn(t, Tu, { name: r }), mo.focus(t);
|
|
32120
32120
|
}
|
|
32121
32121
|
} : {
|
|
32122
32122
|
type: "nestedmenuitem",
|
|
@@ -32247,7 +32247,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
32247
32247
|
Hn.config({ disabled: () => !t.enabled || r.checkUiComponentContext(t.context).shouldDisable }),
|
|
32248
32248
|
Ur.config({}),
|
|
32249
32249
|
Po("selectbox-change", [_t(om(), (D, L) => {
|
|
32250
|
-
zn(D,
|
|
32250
|
+
zn(D, Tu, { name: t.name });
|
|
32251
32251
|
})])
|
|
32252
32252
|
])
|
|
32253
32253
|
}), S = t.size > 1 ? Q.none() : Q.some(Hd("chevron-down", {
|
|
@@ -32291,7 +32291,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
32291
32291
|
ig("onLockedChange"),
|
|
32292
32292
|
cm(["lockClass"]),
|
|
32293
32293
|
ot("locked", !1),
|
|
32294
|
-
|
|
32294
|
+
Su.field("coupledFieldBehaviours", [
|
|
32295
32295
|
xs,
|
|
32296
32296
|
kn
|
|
32297
32297
|
]),
|
|
@@ -32327,7 +32327,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
32327
32327
|
uid: t.uid,
|
|
32328
32328
|
dom: t.dom,
|
|
32329
32329
|
components: r,
|
|
32330
|
-
behaviours:
|
|
32330
|
+
behaviours: Su.augment(t.coupledFieldBehaviours, [
|
|
32331
32331
|
xs.config({ find: Q.some }),
|
|
32332
32332
|
kn.config({
|
|
32333
32333
|
store: {
|
|
@@ -32466,7 +32466,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
32466
32466
|
zn(Ze, h, { isField1: xe });
|
|
32467
32467
|
}),
|
|
32468
32468
|
_t(om(), (Ze, We) => {
|
|
32469
|
-
t.name.each((dt) => zn(Ze,
|
|
32469
|
+
t.name.each((dt) => zn(Ze, Tu, { name: dt }));
|
|
32470
32470
|
})
|
|
32471
32471
|
]),
|
|
32472
32472
|
...t.onEnter.map((Ze) => qn.config({
|
|
@@ -32602,13 +32602,13 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
32602
32602
|
mo.config({})
|
|
32603
32603
|
]),
|
|
32604
32604
|
onChoose: (S, E, D) => {
|
|
32605
|
-
zn(S,
|
|
32605
|
+
zn(S, Tu, {
|
|
32606
32606
|
name: t.name,
|
|
32607
32607
|
value: D
|
|
32608
32608
|
});
|
|
32609
32609
|
},
|
|
32610
32610
|
onChange: (S, E, D) => {
|
|
32611
|
-
zn(S,
|
|
32611
|
+
zn(S, Tu, {
|
|
32612
32612
|
name: t.name,
|
|
32613
32613
|
value: D
|
|
32614
32614
|
});
|
|
@@ -32664,10 +32664,10 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
32664
32664
|
}),
|
|
32665
32665
|
Po("textfield-change", [
|
|
32666
32666
|
_t(Yu(), (ae, ge) => {
|
|
32667
|
-
zn(ae,
|
|
32667
|
+
zn(ae, Tu, { name: t.name });
|
|
32668
32668
|
}),
|
|
32669
32669
|
_t(c0(), (ae, ge) => {
|
|
32670
|
-
zn(ae,
|
|
32670
|
+
zn(ae, Tu, { name: t.name });
|
|
32671
32671
|
})
|
|
32672
32672
|
]),
|
|
32673
32673
|
Ur.config({})
|
|
@@ -33740,13 +33740,13 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
33740
33740
|
Po("urlinput-events", [
|
|
33741
33741
|
_t(Yu(), (Ze) => {
|
|
33742
33742
|
const We = Bd(Ze.element), dt = We.trim();
|
|
33743
|
-
dt !== We && ap(Ze.element, dt), t.filetype === "file" && zn(Ze,
|
|
33743
|
+
dt !== We && ap(Ze.element, dt), t.filetype === "file" && zn(Ze, Tu, { name: t.name });
|
|
33744
33744
|
}),
|
|
33745
33745
|
_t(om(), (Ze) => {
|
|
33746
|
-
zn(Ze,
|
|
33746
|
+
zn(Ze, Tu, { name: t.name }), x(Ze);
|
|
33747
33747
|
}),
|
|
33748
33748
|
_t(c0(), (Ze) => {
|
|
33749
|
-
zn(Ze,
|
|
33749
|
+
zn(Ze, Tu, { name: t.name }), x(Ze);
|
|
33750
33750
|
})
|
|
33751
33751
|
])
|
|
33752
33752
|
]),
|
|
@@ -33769,7 +33769,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
33769
33769
|
zn(We, jx, {});
|
|
33770
33770
|
},
|
|
33771
33771
|
onItemExecute: (Ze, We, dt, mt) => {
|
|
33772
|
-
x(Ze), zn(Ze,
|
|
33772
|
+
x(Ze), zn(Ze, Tu, { name: t.name });
|
|
33773
33773
|
}
|
|
33774
33774
|
}, E = As.parts.field({
|
|
33775
33775
|
...S,
|
|
@@ -33827,7 +33827,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
33827
33827
|
};
|
|
33828
33828
|
oe.each((on) => {
|
|
33829
33829
|
on(mt).get((_n) => {
|
|
33830
|
-
kn.setValue(We, _n), zn(Ze,
|
|
33830
|
+
kn.setValue(We, _n), zn(Ze, Tu, { name: t.name });
|
|
33831
33831
|
});
|
|
33832
33832
|
});
|
|
33833
33833
|
});
|
|
@@ -33926,7 +33926,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
33926
33926
|
stopSpaceKeyup: !0
|
|
33927
33927
|
}),
|
|
33928
33928
|
Po("checkbox-events", [_t(om(), (D, L) => {
|
|
33929
|
-
zn(D,
|
|
33929
|
+
zn(D, Tu, { name: t.name });
|
|
33930
33930
|
})])
|
|
33931
33931
|
])
|
|
33932
33932
|
}), x = As.parts.label({
|
|
@@ -34679,7 +34679,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
34679
34679
|
ot("shell", !1),
|
|
34680
34680
|
At("makeItem"),
|
|
34681
34681
|
ot("setupItem", re),
|
|
34682
|
-
|
|
34682
|
+
Su.field("listBehaviours", [vo])
|
|
34683
34683
|
]), tD = Lc({
|
|
34684
34684
|
name: "items",
|
|
34685
34685
|
overrides: () => ({ behaviours: Yt([vo.config({})]) })
|
|
@@ -34917,7 +34917,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
34917
34917
|
Yc,
|
|
34918
34918
|
uo([ci("placeholder")])
|
|
34919
34919
|
], (t) => H(t) ? t ? Q.some({ placeholder: Q.none() }) : Q.none() : Q.some(t))),
|
|
34920
|
-
|
|
34920
|
+
yu("fetch"),
|
|
34921
34921
|
Ws("onSetup", () => re),
|
|
34922
34922
|
Ir("context", "mode:design")
|
|
34923
34923
|
], pj = uo([
|
|
@@ -35236,7 +35236,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35236
35236
|
}),
|
|
35237
35237
|
mo.config({})
|
|
35238
35238
|
]), S = h(b, x), E = b.getSystem().build(S);
|
|
35239
|
-
vo.append(b,
|
|
35239
|
+
vo.append(b, wu(E)), E.hasConfigured(qn) && r.focus && qn.focusIn(E), l.isBlocked() || r.onBlock(t), l.blockWith(() => vo.remove(b, E));
|
|
35240
35240
|
},
|
|
35241
35241
|
unblock: (t, r, l) => {
|
|
35242
35242
|
ce(t.element, "aria-busy"), l.isBlocked() && r.onUnblock(t), l.clear();
|
|
@@ -35362,7 +35362,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35362
35362
|
const b = JL(t, r, l).getOrThunk(() => KL(r, t - l(h), l)), x = b.within, S = b.extra, E = b.withinWidth;
|
|
35363
35363
|
return S.length === 1 && S[0].width <= l(h) ? Nj(x, S, E) : S.length >= 1 ? Lj(x, S, h, E) : Ij(x, S, E);
|
|
35364
35364
|
}, e9 = (t, r) => {
|
|
35365
|
-
const l = Ke(r, (h) =>
|
|
35365
|
+
const l = Ke(r, (h) => wu(h));
|
|
35366
35366
|
Mh.setGroups(t, l);
|
|
35367
35367
|
}, Fj = (t) => rs(t, (r) => Yl(r.element).bind((l) => r.getSystem().getByDom(l).toOptional())), Vj = (t, r, l) => {
|
|
35368
35368
|
const h = r.builtGroups.get();
|
|
@@ -35401,7 +35401,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35401
35401
|
}), zj = te([
|
|
35402
35402
|
cm(["toggledClass"]),
|
|
35403
35403
|
At("lazySink"),
|
|
35404
|
-
|
|
35404
|
+
yu("fetch"),
|
|
35405
35405
|
pf("getBounds"),
|
|
35406
35406
|
ea("fireDismissalEventInstead", [ot("event", vf())]),
|
|
35407
35407
|
gg(),
|
|
@@ -35497,7 +35497,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35497
35497
|
action: (b) => {
|
|
35498
35498
|
i4(b, h);
|
|
35499
35499
|
},
|
|
35500
|
-
buttonBehaviours:
|
|
35500
|
+
buttonBehaviours: Su.augment({ dump: h.button().buttonBehaviours }, [Ni.config({
|
|
35501
35501
|
others: {
|
|
35502
35502
|
toolbarSandbox: (b) => Hj(b, l, t)
|
|
35503
35503
|
}
|
|
@@ -35558,12 +35558,12 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35558
35558
|
selector: t.markers.itemSelector
|
|
35559
35559
|
})]),
|
|
35560
35560
|
domModification: { attributes: { role: "toolbar" } }
|
|
35561
|
-
}),
|
|
35561
|
+
}), Eu = tc({
|
|
35562
35562
|
name: "ToolbarGroup",
|
|
35563
35563
|
configFields: a4(),
|
|
35564
35564
|
partFields: Uj(),
|
|
35565
35565
|
factory: Wj
|
|
35566
|
-
}), s9 = (t) => Ke(t, (r) =>
|
|
35566
|
+
}), s9 = (t) => Ke(t, (r) => wu(r)), bS = (t, r, l) => {
|
|
35567
35567
|
Vj(t, l, (h) => {
|
|
35568
35568
|
l.overflowGroups.set(h), r.getOpt(t).each((b) => {
|
|
35569
35569
|
v1.setGroups(b, s9(h));
|
|
@@ -35608,7 +35608,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35608
35608
|
components: r,
|
|
35609
35609
|
behaviours: Pi(t.splitToolbarBehaviours, [Ni.config({
|
|
35610
35610
|
others: {
|
|
35611
|
-
overflowGroup: () =>
|
|
35611
|
+
overflowGroup: () => Eu.sketch({
|
|
35612
35612
|
...h["overflow-group"](),
|
|
35613
35613
|
items: [b.asSpec()]
|
|
35614
35614
|
})
|
|
@@ -35739,7 +35739,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35739
35739
|
}, mD = (t, r) => {
|
|
35740
35740
|
br(t, r, "overflow").each((l) => {
|
|
35741
35741
|
Vj(t, r, (h) => {
|
|
35742
|
-
const b = Ke(h, (x) =>
|
|
35742
|
+
const b = Ke(h, (x) => wu(x));
|
|
35743
35743
|
Mh.setGroups(l, b);
|
|
35744
35744
|
}), br(t, r, "overflow-button").each((h) => {
|
|
35745
35745
|
au.hasGrown(l) && Ko.on(h);
|
|
@@ -35757,7 +35757,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35757
35757
|
behaviours: Pi(t.splitToolbarBehaviours, [
|
|
35758
35758
|
Ni.config({
|
|
35759
35759
|
others: {
|
|
35760
|
-
overflowGroup: (S) =>
|
|
35760
|
+
overflowGroup: (S) => Eu.sketch({
|
|
35761
35761
|
...h["overflow-group"](),
|
|
35762
35762
|
items: [Ea.sketch({
|
|
35763
35763
|
...h["overflow-button"](),
|
|
@@ -35823,7 +35823,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35823
35823
|
},
|
|
35824
35824
|
components: [Vr(l)]
|
|
35825
35825
|
})).toArray(),
|
|
35826
|
-
|
|
35826
|
+
Eu.parts.items({})
|
|
35827
35827
|
],
|
|
35828
35828
|
items: t.items,
|
|
35829
35829
|
markers: { itemSelector: "*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])" },
|
|
@@ -35832,7 +35832,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35832
35832
|
mo.config({})
|
|
35833
35833
|
])
|
|
35834
35834
|
};
|
|
35835
|
-
}, l4 = (t) =>
|
|
35835
|
+
}, l4 = (t) => Eu.sketch(a9(t)), pD = (t, r) => {
|
|
35836
35836
|
const l = Qr((h) => {
|
|
35837
35837
|
const b = Ke(t.initGroups, l4);
|
|
35838
35838
|
Mh.setGroups(h, b);
|
|
@@ -35955,7 +35955,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35955
35955
|
"secondary"
|
|
35956
35956
|
]),
|
|
35957
35957
|
ka("borderless", !1),
|
|
35958
|
-
|
|
35958
|
+
yu("onAction"),
|
|
35959
35959
|
Ir("context", "mode:design")
|
|
35960
35960
|
], c9 = [
|
|
35961
35961
|
...OD,
|
|
@@ -35976,8 +35976,8 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
35976
35976
|
group: Yj
|
|
35977
35977
|
}), f9 = uo([
|
|
35978
35978
|
A("buttons", [], Kj),
|
|
35979
|
-
|
|
35980
|
-
|
|
35979
|
+
yu("onShow"),
|
|
35980
|
+
yu("onHide")
|
|
35981
35981
|
]), Jj = (t) => Kr("view", f9, t), eX = (t, r) => {
|
|
35982
35982
|
var l, h;
|
|
35983
35983
|
const b = t.type === "togglebutton", x = t.icon.map((We) => p1(We, r.icons)).map(Zs), E = (We) => {
|
|
@@ -37836,12 +37836,12 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
37836
37836
|
var Yd;
|
|
37837
37837
|
const Kd = Wi(lc), Nh = (Yd = lc.dom.scrollTop) !== null && Yd !== void 0 ? Yd : 0, $g = Xo(lc, vt()) ? Math.max(Jn.y - oi(bn.element) + zo, 0) : Jn.y - Kd.y + Nh - oi(bn.element) + zo;
|
|
37838
37838
|
return oe() ? $g : Jn.bottom;
|
|
37839
|
-
}),
|
|
37840
|
-
const Yd = Ut.getOr(Za()), Kd = window.innerWidth - (
|
|
37839
|
+
}), Du = pr(), ui = jn(Qn, Math.ceil(x.outerContainer.element.dom.getBoundingClientRect().width)).filter((lc) => lc > ae).map((lc) => {
|
|
37840
|
+
const Yd = Ut.getOr(Za()), Kd = window.innerWidth - (Du - Yd.left), Nh = Math.max(Math.min(lc, Kd), ae);
|
|
37841
37841
|
return Kd < lc && rn(x.outerContainer.element, "width", Nh + "px"), { width: Nh + "px" };
|
|
37842
37842
|
}).getOr({ width: "max-content" }), Gd = {
|
|
37843
37843
|
position: "absolute",
|
|
37844
|
-
left: Math.round(
|
|
37844
|
+
left: Math.round(Du) + "px",
|
|
37845
37845
|
top: lr() + "px"
|
|
37846
37846
|
};
|
|
37847
37847
|
vs(x.outerContainer.element, {
|
|
@@ -38026,7 +38026,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
38026
38026
|
_t(E4, (l, h) => {
|
|
38027
38027
|
t.onBack(), la(r.get()).each((b) => {
|
|
38028
38028
|
r.set(r.get().slice(0, r.get().length - 1)), zn(l, ND, {
|
|
38029
|
-
contents:
|
|
38029
|
+
contents: wu(b.bar),
|
|
38030
38030
|
focus: b.focus
|
|
38031
38031
|
});
|
|
38032
38032
|
});
|
|
@@ -38685,7 +38685,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
38685
38685
|
},
|
|
38686
38686
|
getCurrent: (h) => {
|
|
38687
38687
|
const b = Ot.fromDom(h.selection.getNode());
|
|
38688
|
-
return
|
|
38688
|
+
return vu(b, (x) => Q.some(x).filter(Qo).bind((S) => fs(S, "lang").map((D) => {
|
|
38689
38689
|
const L = fs(S, "data-mce-lang").getOrUndefined();
|
|
38690
38690
|
return {
|
|
38691
38691
|
code: D,
|
|
@@ -40105,7 +40105,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40105
40105
|
t.focus();
|
|
40106
40106
|
},
|
|
40107
40107
|
type: ge
|
|
40108
|
-
}),
|
|
40108
|
+
}), Du = fx(t), ui = wT(t), Gd = vT(t), lc = YE(t), Yd = gn(), Kd = Du || ui || Gd, Nh = () => Du ? [lr] : ui ? [pr] : [], AS = lc ? [
|
|
40109
40109
|
Yd,
|
|
40110
40110
|
$o
|
|
40111
40111
|
] : [$o];
|
|
@@ -40168,9 +40168,9 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40168
40168
|
events: tr([_t(sm(), (Gd) => {
|
|
40169
40169
|
rn(Gd.element, "width", document.body.clientWidth + "px");
|
|
40170
40170
|
})])
|
|
40171
|
-
},
|
|
40171
|
+
}, Du = _l(xr(pr, $o ? lr : {})), ui = x$(Du);
|
|
40172
40172
|
return E.set(ui), {
|
|
40173
|
-
sink:
|
|
40173
|
+
sink: Du,
|
|
40174
40174
|
mothership: ui
|
|
40175
40175
|
};
|
|
40176
40176
|
}, Dr = () => {
|
|
@@ -40201,7 +40201,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40201
40201
|
classes: ["tox-throbber"]
|
|
40202
40202
|
},
|
|
40203
40203
|
backstage: Ct.popup
|
|
40204
|
-
}), lr = Ar.parts.viewWrapper({ backstage: Ct.popup }),
|
|
40204
|
+
}), lr = Ar.parts.viewWrapper({ backstage: Ct.popup }), Du = OT(t) && !l ? Q.some(jG(t, Ct.popup.shared.providers)) : Q.none(), ui = Je([
|
|
40205
40205
|
ae ? [] : [Jn],
|
|
40206
40206
|
l ? [] : [$o],
|
|
40207
40207
|
ae ? [Jn] : []
|
|
@@ -40234,7 +40234,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40234
40234
|
Gd,
|
|
40235
40235
|
...l ? [] : [
|
|
40236
40236
|
lr,
|
|
40237
|
-
...
|
|
40237
|
+
...Du.toArray()
|
|
40238
40238
|
],
|
|
40239
40239
|
pr
|
|
40240
40240
|
],
|
|
@@ -40267,13 +40267,13 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40267
40267
|
No(mT(t), (EO, bR) => {
|
|
40268
40268
|
t.ui.registry.addGroupToolbarButton(bR, EO);
|
|
40269
40269
|
});
|
|
40270
|
-
const { buttons:
|
|
40270
|
+
const { buttons: Du, menuItems: ui, contextToolbars: Gd, sidebars: lc, views: Yd } = t.ui.registry.getAll(), Kd = xT(t), Nh = {
|
|
40271
40271
|
menuItems: ui,
|
|
40272
40272
|
menus: H8(t),
|
|
40273
40273
|
menubar: D8(t),
|
|
40274
40274
|
toolbar: Kd.getOrThunk(() => pT(t)),
|
|
40275
40275
|
allowToolbarGroups: ge === zd.floating,
|
|
40276
|
-
buttons:
|
|
40276
|
+
buttons: Du,
|
|
40277
40277
|
sidebar: lc,
|
|
40278
40278
|
views: Yd
|
|
40279
40279
|
};
|
|
@@ -40381,7 +40381,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40381
40381
|
b.set(ge);
|
|
40382
40382
|
const ve = t.lazySink(ge).getOrDie(), Xe = h.blocker(), xe = ve.getSystem().build({
|
|
40383
40383
|
...Xe,
|
|
40384
|
-
components: Xe.components.concat([
|
|
40384
|
+
components: Xe.components.concat([wu(ge)]),
|
|
40385
40385
|
behaviours: Yt([
|
|
40386
40386
|
mo.config({}),
|
|
40387
40387
|
Po("dialog-blocker-events", [og(Of(), () => {
|
|
@@ -40560,7 +40560,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40560
40560
|
j1("settings", void 0)
|
|
40561
40561
|
]), lY = d2.concat([
|
|
40562
40562
|
Ir("tag", "textarea"),
|
|
40563
|
-
|
|
40563
|
+
yu("init")
|
|
40564
40564
|
]), cY = Zg((t) => Kr("customeditor.old", Ua(lY), t).orThunk(() => Kr("customeditor.new", Ua(aY), t))), uR = On, dR = Am.concat([Ir("context", "mode:design")]), uY = uo(dR), aQ = nm(), dY = (t) => [
|
|
40565
40565
|
ia,
|
|
40566
40566
|
o0("columns"),
|
|
@@ -40603,12 +40603,12 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40603
40603
|
], K4 = [
|
|
40604
40604
|
Pp,
|
|
40605
40605
|
Ex
|
|
40606
|
-
],
|
|
40606
|
+
], Pu = [
|
|
40607
40607
|
Pp,
|
|
40608
40608
|
bc("items", Km("items", () => _S))
|
|
40609
40609
|
], _S = em([
|
|
40610
40610
|
uo(K4),
|
|
40611
|
-
uo(
|
|
40611
|
+
uo(Pu)
|
|
40612
40612
|
]), dQ = Am.concat([
|
|
40613
40613
|
bc("items", _S),
|
|
40614
40614
|
Ch,
|
|
@@ -40911,7 +40911,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
40911
40911
|
id: Pn("aria"),
|
|
40912
40912
|
"aria-selected": "false"
|
|
40913
40913
|
}
|
|
40914
|
-
})),
|
|
40914
|
+
})), bu()),
|
|
40915
40915
|
Rs("action"),
|
|
40916
40916
|
ot("domModification", {}),
|
|
40917
40917
|
Ya("tabButtonBehaviours", [
|
|
@@ -41080,7 +41080,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
41080
41080
|
vo.set(l, t[b].view());
|
|
41081
41081
|
const x = r.dom.getBoundingClientRect();
|
|
41082
41082
|
return vo.set(l, []), x.height;
|
|
41083
|
-
}),
|
|
41083
|
+
}), $u = (t) => Xs(gr(t, (r, l) => r > l ? -1 : r < l ? 1 : 0)), Dm = (t, r, l) => {
|
|
41084
41084
|
const h = Na(t).dom, b = oa(t, ".tox-dialog-wrap").getOr(t), x = Bt(b, "position") === "fixed";
|
|
41085
41085
|
let S;
|
|
41086
41086
|
x ? S = Math.max(h.clientHeight, window.innerHeight) : S = Math.max(h.offsetHeight, h.scrollHeight);
|
|
@@ -41107,7 +41107,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
41107
41107
|
Zl(x).each((S) => {
|
|
41108
41108
|
rn(S, "visibility", "hidden"), b.getSystem().getByDom(S).toOptional().each((E) => {
|
|
41109
41109
|
const D = ic(t, S, E);
|
|
41110
|
-
|
|
41110
|
+
$u(D).fold(r.clear, r.set);
|
|
41111
41111
|
}), cd(x, S, r), jo(S, "visibility"), _c(t, b), requestAnimationFrame(() => {
|
|
41112
41112
|
cd(x, S, r);
|
|
41113
41113
|
});
|
|
@@ -41615,7 +41615,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
41615
41615
|
return [
|
|
41616
41616
|
...Ai(h, r),
|
|
41617
41617
|
h(jx, (x, S) => S.onSubmit(x)),
|
|
41618
|
-
h(
|
|
41618
|
+
h(Tu, (x, S, E) => {
|
|
41619
41619
|
S.onChange(x, { name: E.name });
|
|
41620
41620
|
}),
|
|
41621
41621
|
h(wg, (x, S, E, D) => {
|
|
@@ -41909,7 +41909,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
41909
41909
|
"close",
|
|
41910
41910
|
"block",
|
|
41911
41911
|
"unblock"
|
|
41912
|
-
], qo = (t) => T(t) && to.indexOf(t.mceAction) !== -1, ba = (t) => !qo(t) && T(t) && Uo(t, "mceAction"),
|
|
41912
|
+
], qo = (t) => T(t) && to.indexOf(t.mceAction) !== -1, ba = (t) => !qo(t) && T(t) && Uo(t, "mceAction"), Au = (t, r, l) => {
|
|
41913
41913
|
switch (l.mceAction) {
|
|
41914
41914
|
case "insertContent":
|
|
41915
41915
|
t.insertContent(l.content);
|
|
@@ -41952,7 +41952,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
41952
41952
|
const We = Kl(Ot.fromDom(window), "message", (dt) => {
|
|
41953
41953
|
if (j.isSameOrigin(new ls(dt.raw.origin))) {
|
|
41954
41954
|
const mt = dt.raw.data;
|
|
41955
|
-
qo(mt) ?
|
|
41955
|
+
qo(mt) ? Au(l, Ze, mt) : ba(mt) && t.onMessage(Ze, mt);
|
|
41956
41956
|
}
|
|
41957
41957
|
});
|
|
41958
41958
|
ae.set(We);
|
|
@@ -42147,7 +42147,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
42147
42147
|
const Is = r.inline ? vt() : Ot.fromDom(r.getContainer()), Qn = Wi(Is);
|
|
42148
42148
|
return Q.some(Qn);
|
|
42149
42149
|
};
|
|
42150
|
-
return ri.showWithinBounds(cs,
|
|
42150
|
+
return ri.showWithinBounds(cs, wu(Bn.dialog), { anchor: ve }, Dr), (!l || !Ct) && (Er.refresh(cs), r.on("ResizeEditor", gn)), Bn.instanceApi.setData(on), qn.focusIn(Bn.dialog), Bn.instanceApi;
|
|
42151
42151
|
};
|
|
42152
42152
|
return Nt.open(Ze, ge);
|
|
42153
42153
|
}, Z = (ge, ve, Xe, xe) => {
|
|
@@ -42205,7 +42205,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
42205
42205
|
const Qn = a1(r, Is.element), Ut = 15, bn = Qn.map((Jn) => l1(Jn)).getOr(ji()), yo = Wi(Ot.fromDom(r.getContentAreaContainer())), zo = Yh(yo, bn);
|
|
42206
42206
|
return Q.some(Nr(zo.x, zo.y, zo.width, zo.height - Ut));
|
|
42207
42207
|
});
|
|
42208
|
-
return ri.showWithinBounds(cs,
|
|
42208
|
+
return ri.showWithinBounds(cs, wu(Bn.dialog), { anchor: ve }, Dr), Er.refresh(cs), r.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow", gn), Bn.instanceApi.setData(on), qn.focusIn(Bn.dialog), Bn.instanceApi;
|
|
42209
42209
|
};
|
|
42210
42210
|
return Nt.open(Ze, ge);
|
|
42211
42211
|
};
|
|
@@ -42631,14 +42631,14 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
42631
42631
|
}, $c = (g) => {
|
|
42632
42632
|
const y = So(g);
|
|
42633
42633
|
y.length > 0 && Zc(g, y), fr(g);
|
|
42634
|
-
}, Na = (g, y) => Mt.fromDom(g.dom.cloneNode(y)), Rl = (g) => Na(g, !1), ni = (g) => Na(g, !0),
|
|
42634
|
+
}, Na = (g, y) => Mt.fromDom(g.dom.cloneNode(y)), Rl = (g) => Na(g, !1), ni = (g) => Na(g, !0), uu = (g, y) => {
|
|
42635
42635
|
const k = Mt.fromTag(y), _ = ct(g);
|
|
42636
42636
|
return xi(k, _), k;
|
|
42637
42637
|
}, ya = (g, y) => {
|
|
42638
|
-
const k =
|
|
42638
|
+
const k = uu(g, y), _ = So(ni(g));
|
|
42639
42639
|
return Xo(k, _), k;
|
|
42640
|
-
},
|
|
42641
|
-
const k =
|
|
42640
|
+
}, du = (g, y) => {
|
|
42641
|
+
const k = uu(g, y);
|
|
42642
42642
|
Si(g, k);
|
|
42643
42643
|
const _ = So(g);
|
|
42644
42644
|
return Xo(k, _), fr(g), k;
|
|
@@ -42657,7 +42657,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
42657
42657
|
element: g,
|
|
42658
42658
|
rowspan: y,
|
|
42659
42659
|
colspan: k
|
|
42660
|
-
}),
|
|
42660
|
+
}), fu = (g, y, k, _) => ({
|
|
42661
42661
|
element: g,
|
|
42662
42662
|
rowspan: y,
|
|
42663
42663
|
colspan: k,
|
|
@@ -42807,7 +42807,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
42807
42807
|
}, yd = (g, y) => lf([
|
|
42808
42808
|
"td",
|
|
42809
42809
|
"th"
|
|
42810
|
-
], g, y), vd = (g) => Qu(g, "th,td"), Wl = (g) => Ot(g, "colgroup") ? rn(g, "col") : xo(
|
|
42810
|
+
], g, y), vd = (g) => Qu(g, "th,td"), Wl = (g) => Ot(g, "colgroup") ? rn(g, "col") : xo(mu(g), (y) => rn(y, "col")), Fa = (g, y) => ki(g, "table", y), Wp = (g) => Qu(g, "tr"), mu = (g) => Fa(g).fold(re([]), (y) => rn(y, "colgroup")), Vm = (g, y) => It(g, (k) => {
|
|
42811
42811
|
if ($s(k) === "colgroup") {
|
|
42812
42812
|
const _ = It(Wl(k), (N) => {
|
|
42813
42813
|
const z = hi(N, "span", 1);
|
|
@@ -42826,7 +42826,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
42826
42826
|
return Od(k) ? k : "tbody";
|
|
42827
42827
|
}).getOr("tbody"), Zm = (g) => {
|
|
42828
42828
|
const y = Wp(g), _ = [
|
|
42829
|
-
...
|
|
42829
|
+
...mu(g),
|
|
42830
42830
|
...y
|
|
42831
42831
|
];
|
|
42832
42832
|
return Vm(_, cf);
|
|
@@ -43048,7 +43048,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
43048
43048
|
};
|
|
43049
43049
|
} }, Hu = (g) => window.matchMedia(g).matches;
|
|
43050
43050
|
let Gh = uf(() => Wm.detect(window.navigator.userAgent, ye.from(window.navigator.userAgentData), Hu));
|
|
43051
|
-
const
|
|
43051
|
+
const gu = () => Gh(), Nr = (g, y) => {
|
|
43052
43052
|
const k = (le, be) => {
|
|
43053
43053
|
if (!De(be) && !be.match(/^[0-9]+$/))
|
|
43054
43054
|
throw new Error(g + ".set accepts only positive integer values. Value was " + be);
|
|
@@ -43105,9 +43105,9 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
43105
43105
|
}), _), {}), k = rs(y, (_, N) => parseInt(N, 10));
|
|
43106
43106
|
return He(k);
|
|
43107
43107
|
}, qm = (g, y) => g + "," + y, mi = (g, y, k) => ye.from(g.access[qm(y, k)]), Td = (g, y, k) => {
|
|
43108
|
-
const _ =
|
|
43108
|
+
const _ = pu(g, (N) => k(y, N.element));
|
|
43109
43109
|
return _.length > 0 ? ye.some(_[0]) : ye.none();
|
|
43110
|
-
},
|
|
43110
|
+
}, pu = (g, y) => {
|
|
43111
43111
|
const k = xo(g.all, (_) => _.cells);
|
|
43112
43112
|
return lt(k, y);
|
|
43113
43113
|
}, cr = (g) => {
|
|
@@ -43167,7 +43167,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
43167
43167
|
generate: qc,
|
|
43168
43168
|
getAt: mi,
|
|
43169
43169
|
findItem: Td,
|
|
43170
|
-
filterItems:
|
|
43170
|
+
filterItems: pu,
|
|
43171
43171
|
justCells: (g) => xo(g.all, (y) => y.cells),
|
|
43172
43172
|
justColumns: (g) => is(g.columns),
|
|
43173
43173
|
hasColumns: (g) => wn(g.columns).length > 0,
|
|
@@ -43291,16 +43291,16 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
43291
43291
|
g + N(k)
|
|
43292
43292
|
].join("|")})`;
|
|
43293
43293
|
return new RegExp(`^(${J})(.*)$`);
|
|
43294
|
-
})(),
|
|
43294
|
+
})(), bu = (g, y) => wt(y, (k) => wt(VO[k], (_) => g === _)), Pd = (g, y) => ye.from(t0.exec(g)).bind((_) => {
|
|
43295
43295
|
const N = Number(_[1]), z = _[2];
|
|
43296
|
-
return
|
|
43296
|
+
return bu(z, y) ? ye.some({
|
|
43297
43297
|
value: N,
|
|
43298
43298
|
unit: z
|
|
43299
43299
|
}) : ye.none();
|
|
43300
43300
|
}), th = /(\d+(\.\d+)?)%/, On = /(\d+(\.\d+)?)px|em/, Yc = Fs("col"), z1 = Fs("tr"), tm = (g, y, k) => {
|
|
43301
43301
|
const _ = dr(g).getOrThunk(() => q(Ln(g)));
|
|
43302
43302
|
return y(g) / k(_) * 100;
|
|
43303
|
-
},
|
|
43303
|
+
}, Ou = (g, y) => {
|
|
43304
43304
|
Fo(g, "width", y + "px");
|
|
43305
43305
|
}, Vg = (g, y) => {
|
|
43306
43306
|
Fo(g, "width", y + "%");
|
|
@@ -43329,8 +43329,8 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
43329
43329
|
"empty"
|
|
43330
43330
|
])), At = (g, y, k) => {
|
|
43331
43331
|
Fo(g, "width", y + k);
|
|
43332
|
-
}, Ds = (g) => vl(g) + "px", o0 = (g) => Zt(g) + "px", Ji = (g) => tm(g, vl, mf) + "%", ha = (g) => ju(g).exists((y) => th.test(y)),
|
|
43333
|
-
const y =
|
|
43332
|
+
}, Ds = (g) => vl(g) + "px", o0 = (g) => Zt(g) + "px", Ji = (g) => tm(g, vl, mf) + "%", ha = (g) => ju(g).exists((y) => th.test(y)), yu = (g) => ju(g).exists((y) => On.test(y)), H1 = (g) => ju(g).isNone(), oh = re(th), U1 = Fs("col"), bc = (g) => ju(g).getOrThunk(() => Ki(g) + "px"), Rs = (g) => Yi(g).getOrThunk(() => Ls(g) + "px"), $d = (g) => It(ts.justColumns(g), (y) => ye.from(y.element)), zg = (g) => {
|
|
43333
|
+
const y = gu().browser, k = y.isChromium() || y.isFirefox();
|
|
43334
43334
|
return U1(g) ? k : !0;
|
|
43335
43335
|
}, ci = (g, y, k, _, N, z) => g.filter(_).fold(() => z(U(k, y)), (J) => N(J)), Hg = (g, y, k, _) => {
|
|
43336
43336
|
const N = gf(g), z = ts.hasColumns(g) ? $d(g) : N, J = [ye.some(Ym.edge(y))].concat(It(Ym.positions(N, y), (be) => be.map((Ne) => Ne.x))), le = te(zr);
|
|
@@ -43385,10 +43385,10 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
43385
43385
|
getCellDelta: Ue,
|
|
43386
43386
|
singleColumnWidth: (J, le) => [Math.max(jc(), J + le) - J],
|
|
43387
43387
|
minCellWidth: jc,
|
|
43388
|
-
setElementWidth:
|
|
43388
|
+
setElementWidth: Ou,
|
|
43389
43389
|
adjustTableWidth: (J) => {
|
|
43390
43390
|
const le = y() + J;
|
|
43391
|
-
|
|
43391
|
+
Ou(g, le);
|
|
43392
43392
|
},
|
|
43393
43393
|
isRelative: !1,
|
|
43394
43394
|
label: "pixel"
|
|
@@ -43459,10 +43459,10 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
43459
43459
|
z.dom.nodeValue = J;
|
|
43460
43460
|
}
|
|
43461
43461
|
};
|
|
43462
|
-
})(di, "text"), kr = (g) => er.get(g), Oc = (g) => er.getOption(g), Xu = (g, y) => er.set(g, y), Sl = (g) => $s(g) === "img" ? 1 : Oc(g).fold(() => So(g).length, (y) => y.length),
|
|
43462
|
+
})(di, "text"), kr = (g) => er.get(g), Oc = (g) => er.getOption(g), Xu = (g, y) => er.set(g, y), Sl = (g) => $s(g) === "img" ? 1 : Oc(g).fold(() => So(g).length, (y) => y.length), vu = (g) => Oc(g).filter((y) => y.trim().length !== 0 || y.indexOf(Mo) > -1).isSome(), Jm = (g) => jn(g) && yr(g, "contenteditable") === "false", Ad = [
|
|
43463
43463
|
"img",
|
|
43464
43464
|
"br"
|
|
43465
|
-
], qu = (g) =>
|
|
43465
|
+
], qu = (g) => vu(g) || oo(Ad, $s(g)) || Jm(g), sh = (g) => hc(g, qu), r0 = (g) => Ug(g, qu), Ug = (g, y) => {
|
|
43466
43466
|
const k = (_) => {
|
|
43467
43467
|
const N = So(_);
|
|
43468
43468
|
for (let z = N.length - 1; z >= 0; z--) {
|
|
@@ -44049,7 +44049,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
44049
44049
|
}), Q2 = (g, y, k) => qr(k(g.element, y), !0, g.isLocked), ry = (g, y) => g.section !== y ? va(g.element, g.cells, y, g.isNew) : g, sk = () => ({
|
|
44050
44050
|
transformRow: ry,
|
|
44051
44051
|
transformCell: (g, y, k) => {
|
|
44052
|
-
const _ = k(g.element, y), N = $s(_) !== "td" ?
|
|
44052
|
+
const _ = k(g.element, y), N = $s(_) !== "td" ? du(_, "td") : _;
|
|
44053
44053
|
return qr(N, g.isNew, g.isLocked);
|
|
44054
44054
|
}
|
|
44055
44055
|
}), ib = () => ({
|
|
@@ -44148,7 +44148,7 @@ The conflicting element is` + (ze(j.element) ? " " : " not ") + "already in the
|
|
|
44148
44148
|
const J = xo(N.cells, (le, be) => {
|
|
44149
44149
|
if (k[z][be] === !1) {
|
|
44150
44150
|
const Ne = y0(g, z, be, y);
|
|
44151
|
-
return _(z, be, Ne.rowspan, Ne.colspan), [
|
|
44151
|
+
return _(z, be, Ne.rowspan, Ne.colspan), [fu(le.element, Ne.rowspan, Ne.colspan, le.isNew)];
|
|
44152
44152
|
} else
|
|
44153
44153
|
return [];
|
|
44154
44154
|
});
|
|
@@ -44774,7 +44774,7 @@ Required: ` + y.join(", "));
|
|
|
44774
44774
|
}, _l = (g, y, k, _) => {
|
|
44775
44775
|
const N = Gi(g).rows, z = y.cells[0].column, J = N[y.cells[0].row], le = C0(y.clipboard, y.generators, J), be = ig(z, g, le, y.generators, k);
|
|
44776
44776
|
return xc(be, y.cells[0].row, y.cells[0].column);
|
|
44777
|
-
},
|
|
44777
|
+
}, wu = (g, y, k, _) => {
|
|
44778
44778
|
const N = Gi(g).rows, z = y.cells[y.cells.length - 1].column + y.cells[y.cells.length - 1].colspan, J = N[y.cells[0].row], le = C0(y.clipboard, y.generators, J), be = ig(z, g, le, y.generators, k);
|
|
44779
44779
|
return xc(be, y.cells[0].row, z);
|
|
44780
44780
|
}, Ak = (g, y, k, _) => {
|
|
@@ -44810,7 +44810,7 @@ Required: ` + y.join(", "));
|
|
|
44810
44810
|
})), Hr = (g, y) => Dd(g, y).map((k) => ({
|
|
44811
44811
|
details: k,
|
|
44812
44812
|
pixelDelta: -u5(g, k)
|
|
44813
|
-
})), Ef = (g) => (y, k) => dk(y, k).filter((_) => !(g ? c5 : oa)(y, _.cells)), cp = wc.transform("th"), _y = wc.transform("td"), Dk = Ll(t5, Tl, we, we, wc.modification), Rk = Ll(Ck, Tl, we, we, wc.modification), dg = Ll(n5, td(!0), fb, we, wc.modification), El = Ll(Tk, td(!1), fb, we, wc.modification), hh = Ll(a5, Hr, fb, db, wc.modification), Mk = Ll(Vr, Tl, we, db, wc.modification), d5 = Ll(o5, Dd, we, we, cp), f5 = Ll(s5, Dd, we, we, _y), Ey = Ll(ky, Tl, we, we, cp), J2 = Ll(i5, Tl, we, we, _y), ew = Ll(Ek, Tl, we, we, _y), tw = Ll(_k, Dd, we, we, cp), Bk = Ll(r5, Dd, we, we, _y), Nk = Ll(G2, H_, Ty, we, wc.merging), Lk = Ll(Pk, lb, Ty, we, wc.merging), Ik = Ll($k, Z_, Ty, we, wc.modification), h5 = Ll(_l, Ef(!0), we, we, wc.modification), Pl = Ll(
|
|
44813
|
+
})), Ef = (g) => (y, k) => dk(y, k).filter((_) => !(g ? c5 : oa)(y, _.cells)), cp = wc.transform("th"), _y = wc.transform("td"), Dk = Ll(t5, Tl, we, we, wc.modification), Rk = Ll(Ck, Tl, we, we, wc.modification), dg = Ll(n5, td(!0), fb, we, wc.modification), El = Ll(Tk, td(!1), fb, we, wc.modification), hh = Ll(a5, Hr, fb, db, wc.modification), Mk = Ll(Vr, Tl, we, db, wc.modification), d5 = Ll(o5, Dd, we, we, cp), f5 = Ll(s5, Dd, we, we, _y), Ey = Ll(ky, Tl, we, we, cp), J2 = Ll(i5, Tl, we, we, _y), ew = Ll(Ek, Tl, we, we, _y), tw = Ll(_k, Dd, we, we, cp), Bk = Ll(r5, Dd, we, we, _y), Nk = Ll(G2, H_, Ty, we, wc.merging), Lk = Ll(Pk, lb, Ty, we, wc.merging), Ik = Ll($k, Z_, Ty, we, wc.modification), h5 = Ll(_l, Ef(!0), we, we, wc.modification), Pl = Ll(wu, Ef(!1), we, we, wc.modification), Qk = Ll(Ak, dk, we, we, wc.modification), fm = Ll(Y2, dk, we, we, wc.modification), nw = K2, Fk = l5, ow = Cy, Py = (g, y) => g.dispatch("NewRow", { node: y }), hb = (g, y) => g.dispatch("NewCell", { node: y }), fg = (g, y, k) => {
|
|
44814
44814
|
g.dispatch("TableModified", {
|
|
44815
44815
|
...k,
|
|
44816
44816
|
table: y
|
|
@@ -44861,15 +44861,15 @@ Required: ` + y.join(", "));
|
|
|
44861
44861
|
}
|
|
44862
44862
|
}, Ne = (pi, xm) => xm.cursor.fold(() => {
|
|
44863
44863
|
const G0 = vd(pi);
|
|
44864
|
-
return Se(G0).filter(ho).map((
|
|
44864
|
+
return Se(G0).filter(ho).map((Cu) => {
|
|
44865
44865
|
k.clearSelectedCells(pi.dom);
|
|
44866
44866
|
const Do = g.dom.createRng();
|
|
44867
|
-
return Do.selectNode(
|
|
44867
|
+
return Do.selectNode(Cu.dom), g.selection.setRng(Do), Js(Cu, "data-mce-selected", "1"), Do;
|
|
44868
44868
|
});
|
|
44869
44869
|
}, (G0) => {
|
|
44870
|
-
const
|
|
44871
|
-
return Do.setStart(
|
|
44872
|
-
}), it = (pi, xm, G0,
|
|
44870
|
+
const Cu = ql(G0), Do = g.dom.createRng();
|
|
44871
|
+
return Do.setStart(Cu.element.dom, Cu.offset), Do.setEnd(Cu.element.dom, Cu.offset), g.selection.setRng(Do), k.clearSelectedCells(pi.dom), ye.some(Do);
|
|
44872
|
+
}), it = (pi, xm, G0, Cu) => (Do, XC, mv = !1) => {
|
|
44873
44873
|
Rc(Do);
|
|
44874
44874
|
const kp = Mt.fromDom(g.getDoc()), qC = bf(G0, kp, J), Cp = {
|
|
44875
44875
|
sizing: sa(g, Do),
|
|
@@ -44883,9 +44883,9 @@ Required: ` + y.join(", "));
|
|
|
44883
44883
|
hb(g, Ub.dom);
|
|
44884
44884
|
});
|
|
44885
44885
|
const GC = Ne(Do, Sm);
|
|
44886
|
-
return ho(Do) && (Rc(Do), mv || fg(g, Do.dom,
|
|
44886
|
+
return ho(Do) && (Rc(Do), mv || fg(g, Do.dom, Cu)), GC.map((Ub) => ({
|
|
44887
44887
|
rng: Ub,
|
|
44888
|
-
effect:
|
|
44888
|
+
effect: Cu
|
|
44889
44889
|
}));
|
|
44890
44890
|
}) : ye.none();
|
|
44891
44891
|
}, Xt = it(Mk, N, we, ar), yn = it(hh, z, we, ar), mn = it(Dk, je, we, ar), sn = it(Rk, je, we, ar), In = it(dg, je, le, ar), jt = it(El, je, le, ar), lo = it(Nk, je, we, ar), Zo = it(Lk, je, we, ar), Qt = it(h5, je, we, ar), Ys = it(Pl, je, we, ar), _s = it(Qk, je, we, ar), Es = it(fm, je, we, ar), $i = it(Ik, je, we, ja), si = it(tw, je, we, ar), Qd = it(Bk, je, we, ar), Fd = it(d5, je, we, ar), Vd = it(f5, je, we, ar), js = it(Ey, je, we, ar), hn = it(J2, je, we, ar), _a = it(ew, je, we, ar);
|
|
@@ -45032,7 +45032,7 @@ Required: ` + y.join(", "));
|
|
|
45032
45032
|
const be = Zt(g), Ne = W1(_, g), it = Bc(Ne, be, le);
|
|
45033
45033
|
cw(it, N, z), Fo(g, "height", le);
|
|
45034
45034
|
});
|
|
45035
|
-
}, Dy = ha, Wk =
|
|
45035
|
+
}, Dy = ha, Wk = yu, jk = H1, gb = (g) => {
|
|
45036
45036
|
ke(g, "width"), ke(g, "height");
|
|
45037
45037
|
}, pb = (g) => {
|
|
45038
45038
|
const y = Ji(g);
|
|
@@ -45477,7 +45477,7 @@ Required: ` + y.join(", "));
|
|
|
45477
45477
|
const le = g.fromSitus(J), be = B0.verify(g, k, _, le.finish, le.foffset, N.failure, y);
|
|
45478
45478
|
return B0.cata(be, () => ye.none(), () => ye.some(J), (Ne) => zt(k, Ne) && _ === 0 ? qa(g, k, _, Dw, N) : Z0(g, y, Ne, 0, N, z - 1), (Ne) => zt(k, Ne) && _ === Sl(Ne) ? qa(g, k, _, N0, N) : Z0(g, y, Ne, Sl(Ne), N, z - 1));
|
|
45479
45479
|
}), qa = (g, y, k, _, N) => pg(g, y, k).bind((z) => vC(g, N, _(z, V0.getJumpSize()))), vC = (g, y, k) => {
|
|
45480
|
-
const _ =
|
|
45480
|
+
const _ = gu().browser;
|
|
45481
45481
|
return _.isChromium() || _.isSafari() || _.isFirefox() ? y.retry(g, k) : ye.none();
|
|
45482
45482
|
}, ph = (g, y, k, _, N) => pg(g, k, _).bind((z) => vC(g, N, z)), wC = (g, y, k) => Bw(g, y, k).bind((_) => Z0(g, y, _.element, _.offset, k, N5).map(g.fromSitus)), qy = (g, y) => R5(g, (k) => ds(k).exists((_) => zt(_, y))), z0 = (g, y, k, _, N) => ki(_, "td,th", y).bind((z) => ki(z, "table", y).bind((J) => qy(N, J) ? wC(g, y, k).bind((le) => ki(le.finish, "td,th", y).map((be) => ({
|
|
45483
45483
|
start: z,
|
|
@@ -45591,12 +45591,12 @@ Required: ` + y.join(", "));
|
|
|
45591
45591
|
domRange: (y) => Mt.fromDom(y.startContainer),
|
|
45592
45592
|
relative: (y, k) => Jl.getStart(y),
|
|
45593
45593
|
exact: (y, k, _, N) => y
|
|
45594
|
-
}), Ky = ul.domRange,
|
|
45594
|
+
}), Ky = ul.domRange, xu = ul.relative, pp = ul.exact, L5 = (g) => {
|
|
45595
45595
|
const y = Id(g);
|
|
45596
45596
|
return io(y);
|
|
45597
45597
|
}, kC = A0.create, bp = {
|
|
45598
45598
|
domRange: Ky,
|
|
45599
|
-
relative:
|
|
45599
|
+
relative: xu,
|
|
45600
45600
|
exact: pp,
|
|
45601
45601
|
exactFromRange: Ql,
|
|
45602
45602
|
getWin: L5,
|
|
@@ -45853,7 +45853,7 @@ Required: ` + y.join(", "));
|
|
|
45853
45853
|
}), Mb = (g) => ({
|
|
45854
45854
|
tag: "single",
|
|
45855
45855
|
element: g
|
|
45856
|
-
}), Pi = (g, y, k) => ({ get: () => sg(g(), k).fold(() => y().fold(kn, Mb), Ya) }),
|
|
45856
|
+
}), Pi = (g, y, k) => ({ get: () => sg(g(), k).fold(() => y().fold(kn, Mb), Ya) }), Su = (g, y) => {
|
|
45857
45857
|
const k = g.slice(0, y[y.length - 1].row + 1), _ = ly(k);
|
|
45858
45858
|
return xo(_, (N) => {
|
|
45859
45859
|
const z = N.cells.slice(0, y[y.length - 1].column + 1);
|
|
@@ -45868,7 +45868,7 @@ Required: ` + y.join(", "));
|
|
|
45868
45868
|
}, xp = (g, y, k) => {
|
|
45869
45869
|
const _ = ts.fromTable(g);
|
|
45870
45870
|
return Tl(_, y).map((z) => {
|
|
45871
|
-
const J = w0(_, k, !1), { rows: le } = Gi(J), be =
|
|
45871
|
+
const J = w0(_, k, !1), { rows: le } = Gi(J), be = Su(le, z), Ne = iv(le, z);
|
|
45872
45872
|
return {
|
|
45873
45873
|
upOrLeftCells: be,
|
|
45874
45874
|
downOrRightCells: Ne
|
|
@@ -45910,22 +45910,22 @@ Required: ` + y.join(", "));
|
|
|
45910
45910
|
g.on("TableSelectorChange", (js) => In(js.start, js.finish));
|
|
45911
45911
|
const lo = (js, hn) => {
|
|
45912
45912
|
jt(js) && (hn.kill && js.kill(), hn.selection.each((_a) => {
|
|
45913
|
-
const Zd = bp.relative(_a.start, _a.finish),
|
|
45914
|
-
g.selection.setRng(
|
|
45913
|
+
const Zd = bp.relative(_a.start, _a.finish), ku = xw(Ne, Zd);
|
|
45914
|
+
g.selection.setRng(ku);
|
|
45915
45915
|
}));
|
|
45916
45916
|
}, Zo = (js) => {
|
|
45917
45917
|
const hn = kc(js);
|
|
45918
45918
|
if (hn.raw.shiftKey && Il(hn.raw.which)) {
|
|
45919
|
-
const _a = g.selection.getRng(), Zd = Mt.fromDom(_a.startContainer),
|
|
45920
|
-
sn.keyup(hn, Zd, _a.startOffset,
|
|
45919
|
+
const _a = g.selection.getRng(), Zd = Mt.fromDom(_a.startContainer), ku = Mt.fromDom(_a.endContainer);
|
|
45920
|
+
sn.keyup(hn, Zd, _a.startOffset, ku, _a.endOffset).each((Yo) => {
|
|
45921
45921
|
lo(hn, Yo);
|
|
45922
45922
|
});
|
|
45923
45923
|
}
|
|
45924
45924
|
}, Qt = (js) => {
|
|
45925
45925
|
const hn = kc(js);
|
|
45926
45926
|
y.hide();
|
|
45927
|
-
const _a = g.selection.getRng(), Zd = Mt.fromDom(_a.startContainer),
|
|
45928
|
-
sn.keydown(hn, Zd, _a.startOffset,
|
|
45927
|
+
const _a = g.selection.getRng(), Zd = Mt.fromDom(_a.startContainer), ku = Mt.fromDom(_a.endContainer), Yo = ne(mp, yh)(Mt.fromDom(g.selection.getStart()));
|
|
45928
|
+
sn.keydown(hn, Zd, _a.startOffset, ku, _a.endOffset, Yo).each((pi) => {
|
|
45929
45929
|
lo(hn, pi);
|
|
45930
45930
|
}), y.show();
|
|
45931
45931
|
}, Ys = (js) => js.button === 0, _s = (js) => js.buttons === void 0 ? !0 : (js.buttons & 1) !== 0, Es = (js) => {
|
|
@@ -45939,12 +45939,12 @@ Required: ` + y.join(", "));
|
|
|
45939
45939
|
}, Vd = (() => {
|
|
45940
45940
|
const js = Ga(Mt.fromDom(it)), hn = Ga(0);
|
|
45941
45941
|
return { touchEnd: (Zd) => {
|
|
45942
|
-
const
|
|
45943
|
-
if (Fs("td")(
|
|
45942
|
+
const ku = Mt.fromDom(Zd.target);
|
|
45943
|
+
if (Fs("td")(ku) || Fs("th")(ku)) {
|
|
45944
45944
|
const Yo = js.get(), pi = hn.get();
|
|
45945
|
-
zt(Yo,
|
|
45945
|
+
zt(Yo, ku) && Zd.timeStamp - pi < 300 && (Zd.preventDefault(), In(ku, ku));
|
|
45946
45946
|
}
|
|
45947
|
-
js.set(
|
|
45947
|
+
js.set(ku), hn.set(Zd.timeStamp);
|
|
45948
45948
|
} };
|
|
45949
45949
|
})();
|
|
45950
45950
|
g.on("dragstart", Es), g.on("mousedown", $i), g.on("mouseover", si), g.on("mouseup", Qd), g.on("touchend", Vd.touchEnd), g.on("keyup", Zo), g.on("keydown", Qt), g.on("NodeChange", yn);
|
|
@@ -46837,14 +46837,14 @@ Required: ` + y.join(", "));
|
|
|
46837
46837
|
}, Xo = (M, U) => R(U) && U.nodeName in M.schema.getTextBlockElements(), pl = (M, U) => R(M) && M.nodeName in U, fr = (M, U) => R(U) && U.nodeName in M.schema.getVoidElements(), $c = (M, U) => gl(U) ? M.isBlock(U.nextSibling) && !gl(U.previousSibling) : !1, Na = (M, U, ne) => {
|
|
46838
46838
|
const Ee = M.isEmpty(U);
|
|
46839
46839
|
return ne && M.select("span[data-mce-type=bookmark]", U).length > 0 ? !1 : Ee;
|
|
46840
|
-
}, Rl = (M, U) => M.isChildOf(U, M.getRoot()), ni = (M) => (U) => U.options.get(M),
|
|
46840
|
+
}, Rl = (M, U) => M.isChildOf(U, M.getRoot()), ni = (M) => (U) => U.options.get(M), uu = (M) => {
|
|
46841
46841
|
const U = M.options.register;
|
|
46842
46842
|
U("lists_indent_on_tab", {
|
|
46843
46843
|
processor: "boolean",
|
|
46844
46844
|
default: !0
|
|
46845
46845
|
});
|
|
46846
|
-
}, ya = ni("lists_indent_on_tab"),
|
|
46847
|
-
const Ee = M.dom, Qe = M.schema.getBlockElements(), Zt = Ee.createFragment(), eo =
|
|
46846
|
+
}, ya = ni("lists_indent_on_tab"), du = ni("forced_root_block"), Ul = ni("forced_root_block_attrs"), Od = (M, U, ne = {}) => {
|
|
46847
|
+
const Ee = M.dom, Qe = M.schema.getBlockElements(), Zt = Ee.createFragment(), eo = du(M), Ro = Ul(M);
|
|
46848
46848
|
let Eo, Zn, Lr = !1;
|
|
46849
46849
|
for (Zn = Ee.create(eo, {
|
|
46850
46850
|
...Ro,
|
|
@@ -46871,10 +46871,10 @@ Required: ` + y.join(", "));
|
|
|
46871
46871
|
M.dom.isEmpty(Ro) || jr.insertAfter(Ro, U), jr.insertAfter(Zt, U);
|
|
46872
46872
|
const Eo = ne.parentElement;
|
|
46873
46873
|
Eo && Na(M.dom, Eo) && Ee(Eo), jr.remove(ne), Na(M.dom, U) && jr.remove(U);
|
|
46874
|
-
}, uc = Ma("dd"),
|
|
46875
|
-
uc(U) ? ds(U, "dt") :
|
|
46874
|
+
}, uc = Ma("dd"), fu = Ma("dt"), dc = (M, U) => {
|
|
46875
|
+
uc(U) ? ds(U, "dt") : fu(U) && il(U).each((ne) => bl(M, ne.dom, U.dom));
|
|
46876
46876
|
}, fc = (M) => {
|
|
46877
|
-
|
|
46877
|
+
fu(M) && ds(M, "dd");
|
|
46878
46878
|
}, Xr = (M, U, ne) => {
|
|
46879
46879
|
U === "Indent" ? ye(ne, fc) : ye(ne, (Ee) => dc(M, Ee));
|
|
46880
46880
|
}, qr = (M, U) => {
|
|
@@ -46925,7 +46925,7 @@ Required: ` + y.join(", "));
|
|
|
46925
46925
|
const ne = M.dom.getParents(U, "TD,TH");
|
|
46926
46926
|
return ne.length > 0 ? ne[0] : M.getBody();
|
|
46927
46927
|
}, ho = (M, U) => !Wo(U) && !Bi(U) && an(zc, (ne) => M.isValidChild(U.nodeName, ne)), fs = (M, U) => {
|
|
46928
|
-
const ne = M.dom.getParents(U, M.dom.isBlock), Ee = (Zt) => Zt.nodeName.toLowerCase() !==
|
|
46928
|
+
const ne = M.dom.getParents(U, M.dom.isBlock), Ee = (Zt) => Zt.nodeName.toLowerCase() !== du(M);
|
|
46929
46929
|
return oo(ne, (Zt) => Ee(Zt) && ho(M.schema, Zt)).getOr(M.getBody());
|
|
46930
46930
|
}, q = (M) => Io(M).exists((U) => Bi(U.dom) && Mr(U).exists((ne) => !Wo(ne.dom)) && Ri(U).exists((ne) => !Wo(ne.dom))), ce = (M, U) => {
|
|
46931
46931
|
const ne = M.dom.getParents(U, "ol,ul", fs(M, U));
|
|
@@ -46969,7 +46969,7 @@ Required: ` + y.join(", "));
|
|
|
46969
46969
|
}, Fm = (M, U, ne) => {
|
|
46970
46970
|
const Ee = M.dom;
|
|
46971
46971
|
Zh(Ee, U, ne);
|
|
46972
|
-
}, hr = (M) => Ns(M, "OL,UL"), Wc = (M) => Ns(M, "LI"), Ci = (M) => Mr(M).exists(hr), Hi = (M) => Ri(M).exists(hr), Ia = (M) => "listAttributes" in M,
|
|
46972
|
+
}, hr = (M) => Ns(M, "OL,UL"), Wc = (M) => Ns(M, "LI"), Ci = (M) => Mr(M).exists(hr), Hi = (M) => Ri(M).exists(hr), Ia = (M) => "listAttributes" in M, hu = (M) => "isComment" in M, fe = (M) => "isFragment" in M, pe = (M) => M.depth > 0, nt = (M) => M.isSelected, $t = (M) => {
|
|
46973
46973
|
const U = Uo(M), ne = Hi(M) ? U.slice(0, -1) : U;
|
|
46974
46974
|
return je(ne, Yn);
|
|
46975
46975
|
}, Un = (M, U, ne) => Io(M).filter(Qs).map((Ee) => ({
|
|
@@ -47030,7 +47030,7 @@ Required: ` + y.join(", "));
|
|
|
47030
47030
|
return Fo(Ee), Qa(Ee, ne), rr(U, Ee), U.concat(Ee);
|
|
47031
47031
|
}, Ui = (M, U) => {
|
|
47032
47032
|
let ne = Ue.none();
|
|
47033
|
-
const Ee = ht(U, (Qe, Zt, eo) =>
|
|
47033
|
+
const Ee = ht(U, (Qe, Zt, eo) => hu(Zt) ? eo === 0 ? (ne = Ue.some(Zt), Qe) : da(M, Qe, Zt) : Zt.depth > Qe.length ? zr(M, Qe, Zt) : da(M, Qe, Zt), []);
|
|
47034
47034
|
return ne.each((Qe) => {
|
|
47035
47035
|
const Zt = Se.fromHtml(`<!--${Qe.content}-->`);
|
|
47036
47036
|
Dt(Ee).each((eo) => {
|
|
@@ -47118,13 +47118,13 @@ Required: ` + y.join(", "));
|
|
|
47118
47118
|
}, Wp = (M, U) => {
|
|
47119
47119
|
const ne = af(U);
|
|
47120
47120
|
return je(ne, (Ee) => {
|
|
47121
|
-
const Qe =
|
|
47121
|
+
const Qe = hu(Ee) ? Br([Se.fromHtml(`<!--${Ee.content}-->`)]) : Br(Ee.content), Zt = Ia(Ee) ? Ee.itemAttributes : {};
|
|
47122
47122
|
return Se.fromDom(Od(M, Qe.dom, Zt));
|
|
47123
47123
|
});
|
|
47124
|
-
},
|
|
47124
|
+
}, mu = (M, U) => {
|
|
47125
47125
|
const ne = af(U);
|
|
47126
47126
|
return Ui(M.contentDocument, ne).toArray();
|
|
47127
|
-
}, Vm = (M, U) => Kt(tt(U, pe), (ne) => Dt(ne).exists(pe) ?
|
|
47127
|
+
}, Vm = (M, U) => Kt(tt(U, pe), (ne) => Dt(ne).exists(pe) ? mu(M, ne) : Wp(M, ne)), cf = (M, U) => {
|
|
47128
47128
|
ye(Wt(M, nt), (ne) => Us(U, ne));
|
|
47129
47129
|
}, Zm = (M) => {
|
|
47130
47130
|
const U = je(Cn(M), Se.fromDom);
|
|
@@ -47397,8 +47397,8 @@ Required: ` + y.join(", "));
|
|
|
47397
47397
|
}, Gh = (M, U) => {
|
|
47398
47398
|
const ne = U.childNodes;
|
|
47399
47399
|
return ne.length === 1 && !Wo(ne[0]) && M.isBlock(ne[0]);
|
|
47400
|
-
},
|
|
47401
|
-
Gh(M, U) &&
|
|
47400
|
+
}, gu = (M) => Ue.from(M).map(Se.fromDom).filter(Lo).exists((U) => Or(U) && !nn(["details"], Rr(U))), Nr = (M, U) => {
|
|
47401
|
+
Gh(M, U) && gu(U.firstChild) && M.remove(U.firstChild, !0);
|
|
47402
47402
|
}, Wi = (M, U, ne) => {
|
|
47403
47403
|
let Ee;
|
|
47404
47404
|
const Qe = Gh(M, ne) ? ne.firstChild : ne;
|
|
@@ -47611,14 +47611,14 @@ Required: ` + y.join(", "));
|
|
|
47611
47611
|
}), M.addQueryStateHandler("InsertUnorderedList", wr(M, "UL")), M.addQueryStateHandler("InsertOrderedList", wr(M, "OL")), M.addQueryStateHandler("InsertDefinitionList", wr(M, "DL"));
|
|
47612
47612
|
};
|
|
47613
47613
|
var Td = tinymce.util.Tools.resolve("tinymce.html.Node");
|
|
47614
|
-
const
|
|
47614
|
+
const pu = (M) => M.type === 3, cr = (M) => M.length === 0, qc = (M) => {
|
|
47615
47615
|
const U = (Qe, Zt) => {
|
|
47616
47616
|
const eo = Td.create("li");
|
|
47617
47617
|
ye(Qe, (Ro) => eo.append(Ro)), Zt ? M.insert(eo, Zt, !0) : M.append(eo);
|
|
47618
|
-
}, ne = (Qe, Zt) =>
|
|
47618
|
+
}, ne = (Qe, Zt) => pu(Zt) ? [
|
|
47619
47619
|
...Qe,
|
|
47620
47620
|
Zt
|
|
47621
|
-
] : !cr(Qe) && !
|
|
47621
|
+
] : !cr(Qe) && !pu(Zt) ? (U(Qe, Zt), []) : Qe, Ee = ht(M.children(), ne, []);
|
|
47622
47622
|
cr(Ee) || U(Ee);
|
|
47623
47623
|
}, Jf = (M) => {
|
|
47624
47624
|
M.on("PreInit", () => {
|
|
@@ -47668,7 +47668,7 @@ Required: ` + y.join(", "));
|
|
|
47668
47668
|
});
|
|
47669
47669
|
};
|
|
47670
47670
|
var Gm = () => {
|
|
47671
|
-
u.add("lists", (M) => (
|
|
47671
|
+
u.add("lists", (M) => (uu(M), Jf(M), M.hasPlugin("rtc", !0) ? qm(M) : (xr(M), mi(M)), pc(M), gf(M), Fg(M)));
|
|
47672
47672
|
};
|
|
47673
47673
|
Gm();
|
|
47674
47674
|
})();
|
|
@@ -48308,16 +48308,16 @@ Required: ` + y.join(", "));
|
|
|
48308
48308
|
} else
|
|
48309
48309
|
Na(_e.href);
|
|
48310
48310
|
}
|
|
48311
|
-
},
|
|
48311
|
+
}, uu = (se) => {
|
|
48312
48312
|
const _e = se.selection.getRng(), ze = _e.startContainer;
|
|
48313
48313
|
return Ns(ze) && _e.startContainer === _e.endContainer && se.dom.select("img", ze).length === 1;
|
|
48314
48314
|
}, ya = (se, _e) => {
|
|
48315
48315
|
const ze = zs(se.dom.getParents(_e));
|
|
48316
48316
|
return ht(ze.length === 1, ze[0]);
|
|
48317
|
-
},
|
|
48317
|
+
}, du = (se) => {
|
|
48318
48318
|
const _e = Rr(se.selection.getRng());
|
|
48319
48319
|
return ht(_e.length > 0, _e[0]).or(ya(se, se.selection.getNode()));
|
|
48320
|
-
}, Ul = (se) => se.selection.isCollapsed() ||
|
|
48320
|
+
}, Ul = (se) => se.selection.isCollapsed() || uu(se) ? ya(se, se.selection.getStart()) : du(se), Od = (se) => {
|
|
48321
48321
|
const _e = bd(), ze = () => _e.get().or(Ul(se)), vt = () => ze().each((Gt) => ni(se, Gt));
|
|
48322
48322
|
return se.on("contextmenu", (Gt) => {
|
|
48323
48323
|
ya(se, Gt.target).each(_e.set);
|
|
@@ -48339,7 +48339,7 @@ Required: ` + y.join(", "));
|
|
|
48339
48339
|
_e.setActive(!se.mode.isReadOnly() && rs(se, se.selection.getNode())), _e.setEnabled(se.selection.isEditable());
|
|
48340
48340
|
};
|
|
48341
48341
|
return ze(), bl(se, ze);
|
|
48342
|
-
},
|
|
48342
|
+
}, fu = (se) => (_e) => {
|
|
48343
48343
|
const ze = () => {
|
|
48344
48344
|
_e.setEnabled(se.selection.isEditable());
|
|
48345
48345
|
};
|
|
@@ -48378,7 +48378,7 @@ Required: ` + y.join(", "));
|
|
|
48378
48378
|
text: "Link...",
|
|
48379
48379
|
shortcut: "Meta+K",
|
|
48380
48380
|
onAction: jr(se),
|
|
48381
|
-
onSetup:
|
|
48381
|
+
onSetup: fu(se)
|
|
48382
48382
|
}), se.ui.registry.addMenuItem("unlink", {
|
|
48383
48383
|
icon: "unlink",
|
|
48384
48384
|
text: "Remove link",
|
|
@@ -49150,7 +49150,7 @@ Required: ` + y.join(", "));
|
|
|
49150
49150
|
q.hasDescription && T(Re.alt) && (ce.alt = Re.alt), q.hasAccessibilityOptions && (ce.isDecorative = Re.isDecorative || ce.isDecorative || !1), q.hasImageTitle && T(Re.title) && (ce.title = Re.title), q.hasDimensions && (T(Re.width) && (ce.dimensions.width = Re.width), T(Re.height) && (ce.dimensions.height = Re.height)), T(Re.class) && Wo.findEntry(q.classList, Re.class).each((st) => {
|
|
49151
49151
|
ce.classes = st.value;
|
|
49152
49152
|
}), q.hasImageCaption && K(Re.caption) && (ce.caption = Re.caption), q.hasAdvTab && (T(Re.style) && (ce.style = Re.style), T(Re.vspace) && (ce.vspace = Re.vspace), T(Re.border) && (ce.border = Re.border), T(Re.hspace) && (ce.hspace = Re.hspace), T(Re.borderstyle) && (ce.borderstyle = Re.borderstyle));
|
|
49153
|
-
},
|
|
49153
|
+
}, uu = (q, ce) => {
|
|
49154
49154
|
const Re = ce.getData(), st = Re.src.meta;
|
|
49155
49155
|
if (st !== void 0) {
|
|
49156
49156
|
const En = Ln({}, Re);
|
|
@@ -49166,11 +49166,11 @@ Required: ` + y.join(", "));
|
|
|
49166
49166
|
height: ""
|
|
49167
49167
|
}
|
|
49168
49168
|
}));
|
|
49169
|
-
},
|
|
49169
|
+
}, du = (q, ce, Re) => {
|
|
49170
49170
|
const st = Re.getData(), En = Wo.findEntry(q.imageList, st.src.value);
|
|
49171
49171
|
ce.prevImage = En, Re.setData({ images: En.map((rn) => rn.value).getOr("") });
|
|
49172
49172
|
}, Ul = (q, ce, Re, st) => {
|
|
49173
|
-
Rl(ce, st),
|
|
49173
|
+
Rl(ce, st), uu(ce, st), ya(q, ce, Re, st), du(ce, Re, st);
|
|
49174
49174
|
}, Od = (q, ce, Re, st) => {
|
|
49175
49175
|
const En = st.getData(), rn = Wo.findEntry(ce.imageList, En.images);
|
|
49176
49176
|
rn.each((vs) => {
|
|
@@ -49212,7 +49212,7 @@ Required: ` + y.join(", "));
|
|
|
49212
49212
|
En.name === "src" ? Ul(q, ce, Re, st) : En.name === "images" ? Od(q, ce, Re, st) : En.name === "alt" ? Re.prevAlt = st.getData().alt : En.name === "fileinput" ? jr(q, ce, Re, st) : En.name === "isDecorative" && st.setEnabled("alt", !st.getData().isDecorative);
|
|
49213
49213
|
}, uc = (q) => () => {
|
|
49214
49214
|
q.open = !1;
|
|
49215
|
-
},
|
|
49215
|
+
}, fu = (q) => q.hasAdvTab || q.hasUploadUrl || q.hasUploadHandler ? {
|
|
49216
49216
|
type: "tabpanel",
|
|
49217
49217
|
tabs: tt([
|
|
49218
49218
|
[gl.makeTab(q)],
|
|
@@ -49267,7 +49267,7 @@ Required: ` + y.join(", "));
|
|
|
49267
49267
|
return {
|
|
49268
49268
|
title: "Insert/Edit Image",
|
|
49269
49269
|
size: "normal",
|
|
49270
|
-
body:
|
|
49270
|
+
body: fu(st),
|
|
49271
49271
|
buttons: [
|
|
49272
49272
|
{
|
|
49273
49273
|
type: "cancel",
|
|
@@ -50431,7 +50431,7 @@ Required: ` + y.join(", "));
|
|
|
50431
50431
|
for (let de = 0; de < A.length; de++)
|
|
50432
50432
|
A[de].each(ee);
|
|
50433
50433
|
return I;
|
|
50434
|
-
}, Zc = (A, I, ee) => A.isSome() && I.isSome() ? te.some(ee(A.getOrDie(), I.getOrDie())) : te.none(), Xo = (A) => A.bind(Te), pl = (A, I) => A ? te.some(I) : te.none(), fr = (A, I) => A.substring(I), $c = (A, I, ee) => I === "" || A.length >= I.length && A.substr(ee, ee + I.length) === I, Na = (A, I) => Rl(A, I) ? fr(A, I.length) : A, Rl = (A, I) => $c(A, I, 0),
|
|
50434
|
+
}, Zc = (A, I, ee) => A.isSome() && I.isSome() ? te.some(ee(A.getOrDie(), I.getOrDie())) : te.none(), Xo = (A) => A.bind(Te), pl = (A, I) => A ? te.some(I) : te.none(), fr = (A, I) => A.substring(I), $c = (A, I, ee) => I === "" || A.length >= I.length && A.substr(ee, ee + I.length) === I, Na = (A, I) => Rl(A, I) ? fr(A, I.length) : A, Rl = (A, I) => $c(A, I, 0), uu = ((A) => (I) => I.replace(A, ""))(/^\s+|\s+$/g), ya = (A) => A.length > 0, du = (A) => !ya(A), Ul = (A, I = 10) => {
|
|
50435
50435
|
const ee = parseInt(A, I);
|
|
50436
50436
|
return isNaN(ee) ? te.none() : te.some(ee);
|
|
50437
50437
|
}, Od = (A) => {
|
|
@@ -50443,7 +50443,7 @@ Required: ` + y.join(", "));
|
|
|
50443
50443
|
jr(A) && A.style.setProperty(I, ee);
|
|
50444
50444
|
}, uc = (A, I) => {
|
|
50445
50445
|
jr(A) && A.style.removeProperty(I);
|
|
50446
|
-
},
|
|
50446
|
+
}, fu = (A, I, ee) => {
|
|
50447
50447
|
const de = A.dom;
|
|
50448
50448
|
bl(de, I, ee);
|
|
50449
50449
|
}, dc = (A, I) => {
|
|
@@ -50454,7 +50454,7 @@ Required: ` + y.join(", "));
|
|
|
50454
50454
|
return te.from(de).filter((Ve) => Ve.length > 0);
|
|
50455
50455
|
}, qr = (A, I) => {
|
|
50456
50456
|
const ee = A.dom;
|
|
50457
|
-
uc(ee, I), bd(Si(A, "style").map(
|
|
50457
|
+
uc(ee, I), bd(Si(A, "style").map(uu), "") && Bi(A, "style");
|
|
50458
50458
|
}, va = (A, I, ee = 0) => Si(A, I).map((de) => parseInt(de, 10)).getOr(ee), zc = (A, I) => Hc(A, I, at), Hc = (A, I, ee) => Se(Fs(A), (de) => Qs(de, I) ? ee(de) ? [de] : [] : Hc(de, I, ee)), se = [
|
|
50459
50459
|
"tfoot",
|
|
50460
50460
|
"thead",
|
|
@@ -50549,13 +50549,13 @@ Required: ` + y.join(", "));
|
|
|
50549
50549
|
Y(Mo, (Oc) => {
|
|
50550
50550
|
const Xu = [];
|
|
50551
50551
|
Y(Oc.cells, (Sl) => {
|
|
50552
|
-
let
|
|
50553
|
-
for (; I[hc(Mn,
|
|
50554
|
-
|
|
50555
|
-
const Jm = Kt(Ve,
|
|
50552
|
+
let vu = 0;
|
|
50553
|
+
for (; I[hc(Mn, vu)] !== void 0; )
|
|
50554
|
+
vu++;
|
|
50555
|
+
const Jm = Kt(Ve, vu.toString()), Ad = Gt(Sl.element, Sl.rowspan, Sl.colspan, Mn, vu, Jm);
|
|
50556
50556
|
for (let qu = 0; qu < Sl.colspan; qu++)
|
|
50557
50557
|
for (let sh = 0; sh < Sl.rowspan; sh++) {
|
|
50558
|
-
const r0 = Mn + sh, Ug =
|
|
50558
|
+
const r0 = Mn + sh, Ug = vu + qu, i0 = hc(r0, Ug);
|
|
50559
50559
|
I[i0] = Ad, Jt = Math.max(Jt, Ug + 1);
|
|
50560
50560
|
}
|
|
50561
50561
|
Xu.push(Ad);
|
|
@@ -50606,7 +50606,7 @@ Required: ` + y.join(", "));
|
|
|
50606
50606
|
Ci.each("left center right".split(" "), (de) => {
|
|
50607
50607
|
de !== ee && A.formatter.remove("align" + de, {}, I);
|
|
50608
50608
|
}), ee && A.formatter.apply("align" + ee, {}, I);
|
|
50609
|
-
},
|
|
50609
|
+
}, hu = (A, I, ee) => {
|
|
50610
50610
|
Ci.each("top middle bottom".split(" "), (de) => {
|
|
50611
50611
|
de !== ee && A.formatter.remove("valign" + de, {}, I);
|
|
50612
50612
|
}), ee && A.formatter.apply("valign" + ee, {}, I);
|
|
@@ -50701,7 +50701,7 @@ Required: ` + y.join(", "));
|
|
|
50701
50701
|
processor: "object[]",
|
|
50702
50702
|
default: []
|
|
50703
50703
|
});
|
|
50704
|
-
}, Us = zr("table_sizing_mode"), jc = zr("table_border_widths"), zh = zr("table_border_styles"), Qu = zr("table_cell_advtab"), af = zr("table_row_advtab"), lf = zr("table_advtab"), yd = zr("table_appearance_options"), vd = zr("table_grid"), Wl = zr("table_style_by_css"), Fa = zr("table_cell_class_list"), Wp = zr("table_row_class_list"),
|
|
50704
|
+
}, Us = zr("table_sizing_mode"), jc = zr("table_border_widths"), zh = zr("table_border_styles"), Qu = zr("table_cell_advtab"), af = zr("table_row_advtab"), lf = zr("table_advtab"), yd = zr("table_appearance_options"), vd = zr("table_grid"), Wl = zr("table_style_by_css"), Fa = zr("table_cell_class_list"), Wp = zr("table_row_class_list"), mu = zr("table_class_list"), Vm = zr("table_toolbar"), cf = zr("table_background_color_map"), Zm = zr("table_border_color_map"), Hh = (A) => Us(A) === "fixed", uf = (A) => Us(A) === "responsive", Uh = (A) => {
|
|
50705
50705
|
const I = A.options, ee = I.get("table_default_styles");
|
|
50706
50706
|
return I.isSet("table_default_styles") ? ee : hi(A, ee);
|
|
50707
50707
|
}, zm = (A) => {
|
|
@@ -50842,7 +50842,7 @@ Required: ` + y.join(", "));
|
|
|
50842
50842
|
styles: we({
|
|
50843
50843
|
get: dc,
|
|
50844
50844
|
getRaw: Xr,
|
|
50845
|
-
set:
|
|
50845
|
+
set: fu,
|
|
50846
50846
|
remove: qr
|
|
50847
50847
|
}),
|
|
50848
50848
|
attrs: we({
|
|
@@ -50916,11 +50916,11 @@ Required: ` + y.join(", "));
|
|
|
50916
50916
|
})))), Um = (A, I) => hf(A, I), Gp = (A, I, ee) => qp(A, I, ee).bind((de) => {
|
|
50917
50917
|
const Ve = (ko) => Io(A, ko), Et = "thead,tfoot,tbody,table", Jt = To(de.first, Et, Ve), Mn = To(de.last, Et, Ve);
|
|
50918
50918
|
return Jt.bind((ko) => Mn.bind((Mo) => Io(ko, Mo) ? Q1(de.table, de.first, de.last) : te.none()));
|
|
50919
|
-
}), Yp = (A) => xt(A, Lo.fromDom), Wm = "data-mce-selected", Hu = "td[" + Wm + "],th[" + Wm + "]", Gh = "data-mce-first-selected",
|
|
50919
|
+
}), Yp = (A) => xt(A, Lo.fromDom), Wm = "data-mce-selected", Hu = "td[" + Wm + "],th[" + Wm + "]", Gh = "data-mce-first-selected", gu = "td[" + Gh + "],th[" + Gh + "]", Nr = "data-mce-last-selected", Wi = "td[" + Nr + "],th[" + Nr + "]", yl = {
|
|
50920
50920
|
selected: Wm,
|
|
50921
50921
|
selectedSelector: Hu,
|
|
50922
50922
|
firstSelected: Gh,
|
|
50923
|
-
firstSelectedSelector:
|
|
50923
|
+
firstSelectedSelector: gu,
|
|
50924
50924
|
lastSelected: Nr,
|
|
50925
50925
|
lastSelectedSelector: Wi
|
|
50926
50926
|
}, Yh = (A) => st(A).bind((I) => Um(I, yl.firstSelectedSelector)).fold(we(A), (I) => I[0]), Kf = (A) => (I, ee) => {
|
|
@@ -50994,14 +50994,14 @@ Required: ` + y.join(", "));
|
|
|
50994
50994
|
}
|
|
50995
50995
|
};
|
|
50996
50996
|
}, mi = () => qm((A) => A.unbind()), Td = (A, I, ee) => (de) => {
|
|
50997
|
-
const Ve = mi(), Et =
|
|
50997
|
+
const Ve = mi(), Et = du(ee), Jt = () => {
|
|
50998
50998
|
const Mn = Kh(A), ko = (Mo) => A.formatter.match(I, { value: ee }, Mo.dom, Et);
|
|
50999
50999
|
Et ? (de.setActive(!dn(Mn, ko)), Ve.set(A.formatter.formatChanged(I, (Mo) => de.setActive(!Mo), !0))) : (de.setActive(Fn(Mn, ko)), Ve.set(A.formatter.formatChanged(I, de.setActive, !1, { value: ee })));
|
|
51000
51000
|
};
|
|
51001
51001
|
return A.initialized ? Jt() : A.on("init", Jt), Ve.clear;
|
|
51002
|
-
},
|
|
51002
|
+
}, pu = (A) => Kt(A, "menu"), cr = (A) => xt(A, (I) => {
|
|
51003
51003
|
const ee = I.text || I.title || "";
|
|
51004
|
-
return
|
|
51004
|
+
return pu(I) ? {
|
|
51005
51005
|
text: ee,
|
|
51006
51006
|
items: cr(I.menu)
|
|
51007
51007
|
} : {
|
|
@@ -51016,7 +51016,7 @@ Required: ` + y.join(", "));
|
|
|
51016
51016
|
...A
|
|
51017
51017
|
])) : te.none(), Jf = (A, I, ee, de) => xt(I, (Ve) => {
|
|
51018
51018
|
const Et = Ve.text || Ve.title;
|
|
51019
|
-
return
|
|
51019
|
+
return pu(Ve) ? {
|
|
51020
51020
|
type: "nestedmenuitem",
|
|
51021
51021
|
text: Et,
|
|
51022
51022
|
getSubmenuItems: () => Jf(A, Ve.menu, ee, de)
|
|
@@ -51028,7 +51028,7 @@ Required: ` + y.join(", "));
|
|
|
51028
51028
|
};
|
|
51029
51029
|
}), _d = (A, I) => (ee) => {
|
|
51030
51030
|
A.execCommand("mceTableApplyCellStyle", !1, { [I]: ee });
|
|
51031
|
-
}, xr = (A) => Se(A, (I) =>
|
|
51031
|
+
}, xr = (A) => Se(A, (I) => pu(I) ? [{
|
|
51032
51032
|
...I,
|
|
51033
51033
|
menu: xr(I.menu)
|
|
51034
51034
|
}] : ya(I.value) ? [I] : []), Uu = (A, I, ee, de) => (Ve) => Ve(Jf(A, I, ee, de)), pc = (A, I, ee) => {
|
|
@@ -51339,7 +51339,7 @@ Required: ` + I.join(", "));
|
|
|
51339
51339
|
...Jt(),
|
|
51340
51340
|
...ko()
|
|
51341
51341
|
};
|
|
51342
|
-
},
|
|
51342
|
+
}, bu = (A) => st(Lo.fromDom(A)).map((I) => {
|
|
51343
51343
|
const ee = { selection: Yp(A.cells) };
|
|
51344
51344
|
return Z1(I, ee);
|
|
51345
51345
|
}).getOr(""), Pd = (A, I, ee) => {
|
|
@@ -51363,7 +51363,7 @@ Required: ` + I.join(", "));
|
|
|
51363
51363
|
return {
|
|
51364
51364
|
height: de.getStyle(I, "height") || de.getAttrib(I, "height"),
|
|
51365
51365
|
class: de.getAttrib(I, "class", ""),
|
|
51366
|
-
type:
|
|
51366
|
+
type: bu(I),
|
|
51367
51367
|
align: Ym(A, I),
|
|
51368
51368
|
...ee ? uo(I) : {}
|
|
51369
51369
|
};
|
|
@@ -51388,11 +51388,11 @@ Required: ` + I.join(", "));
|
|
|
51388
51388
|
de("scope") && A.setAttrib("scope", ee.scope), de("class") && ee.class !== "mce-no-match" && A.setAttrib("class", ee.class), de("width") && I.setStyle("width", Rn(ee.width));
|
|
51389
51389
|
}, tm = (A, I, ee) => {
|
|
51390
51390
|
ee("backgroundcolor") && A.setFormat("tablecellbackgroundcolor", I.backgroundcolor), ee("bordercolor") && A.setFormat("tablecellbordercolor", I.bordercolor), ee("borderstyle") && A.setFormat("tablecellborderstyle", I.borderstyle), ee("borderwidth") && A.setFormat("tablecellborderwidth", Rn(I.borderwidth));
|
|
51391
|
-
},
|
|
51391
|
+
}, Ou = (A, I, ee, de) => {
|
|
51392
51392
|
const Ve = I.length === 1;
|
|
51393
51393
|
Y(I, (Et) => {
|
|
51394
51394
|
const Jt = Et.element, Mn = Ve ? at : de, ko = Qe.normal(A, Jt), Mo = Et.column.map((ir) => Qe.normal(A, ir)).getOr(ko);
|
|
51395
|
-
z1(ko, Mo, ee, Mn), Qu(A) && tm(ko, ee, Mn), de("halign") && Ia(A, Jt, ee.halign), de("valign") &&
|
|
51395
|
+
z1(ko, Mo, ee, Mn), Qu(A) && tm(ko, ee, Mn), de("halign") && Ia(A, Jt, ee.halign), de("valign") && hu(A, Jt, ee.valign);
|
|
51396
51396
|
});
|
|
51397
51397
|
}, Vg = (A, I) => {
|
|
51398
51398
|
A.execCommand("mceTableCellType", !1, {
|
|
@@ -51403,7 +51403,7 @@ Required: ` + I.join(", "));
|
|
|
51403
51403
|
const Ve = Wt(de, (Et, Jt) => ee[Jt] !== Et);
|
|
51404
51404
|
Q(Ve) > 0 && I.length >= 1 && st(I[0]).each((Et) => {
|
|
51405
51405
|
const Jt = Yc(Et, I), Mn = Q(Wt(Ve, (Mo, ir) => ir !== "scope" && ir !== "celltype")) > 0, ko = wt(Ve, "celltype");
|
|
51406
|
-
(Mn || wt(Ve, "scope")) &&
|
|
51406
|
+
(Mn || wt(Ve, "scope")) && Ou(A, Jt, de, re(wt, Ve)), ko && Vg(A, de), fe(A, Et.dom, {
|
|
51407
51407
|
structure: ko,
|
|
51408
51408
|
style: Mn
|
|
51409
51409
|
});
|
|
@@ -51722,7 +51722,7 @@ Required: ` + I.join(", "));
|
|
|
51722
51722
|
const ee = A.dom;
|
|
51723
51723
|
let de, Ve = t0(A, lf(A));
|
|
51724
51724
|
I ? (Ve.cols = "1", Ve.rows = "1", lf(A) && (Ve.borderstyle = "", Ve.bordercolor = "", Ve.backgroundcolor = "")) : (de = ee.getParent(A.selection.getStart(), "table", A.getBody()), de ? Ve = Pd(A, de, lf(A)) : lf(A) && (Ve.borderstyle = "", Ve.bordercolor = "", Ve.backgroundcolor = ""));
|
|
51725
|
-
const Et = qc(
|
|
51725
|
+
const Et = qc(mu(A));
|
|
51726
51726
|
Et.isSome() && Ve.class && (Ve.class = Ve.class.replace(/\s*mce\-item\-table\s*/g, ""));
|
|
51727
51727
|
const Jt = {
|
|
51728
51728
|
type: "grid",
|
|
@@ -51762,7 +51762,7 @@ Required: ` + I.join(", "));
|
|
|
51762
51762
|
],
|
|
51763
51763
|
initialData: Ve
|
|
51764
51764
|
});
|
|
51765
|
-
},
|
|
51765
|
+
}, yu = (A) => {
|
|
51766
51766
|
const I = (ee) => {
|
|
51767
51767
|
ds(Yn(A)) && ee();
|
|
51768
51768
|
};
|
|
@@ -51814,10 +51814,10 @@ Required: ` + I.join(", "));
|
|
|
51814
51814
|
ws.setEnabled(!1), ws.setActive(!1);
|
|
51815
51815
|
}, (Ti) => {
|
|
51816
51816
|
ws.setEnabled(!Cr(Ti) && A.selection.isEditable()), ws.setActive(kl(Ti));
|
|
51817
|
-
})), Xu = (ws) => de.exists((Cr) => Cr.locked[ws]), Sl = (ws) => kr(ws, (Cr) => !1),
|
|
51817
|
+
})), Xu = (ws) => de.exists((Cr) => Cr.locked[ws]), Sl = (ws) => kr(ws, (Cr) => !1), vu = (ws) => kr(ws, (Cr) => Ve(Cr.element)), Jm = (ws) => (Cr) => kr(Cr, (kl) => Ve(kl.element) || Xu(ws)), Ad = (ws) => (Cr) => kr(Cr, (kl) => Ve(kl.element) || ws().isNone()), qu = (ws, Cr) => (kl) => kr(kl, (Ti) => Ve(Ti.element) || ws().isNone() || Xu(Cr)), sh = (ws) => kr(ws, (Cr) => Et("mergeable")), r0 = (ws) => kr(ws, (Cr) => Et("unmergeable")), Ug = (ws) => Oc(ws, Ft, (Cr) => st(Cr.element, Nn(A)).exists((Ti) => H1(Ti, "caption"))), i0 = (ws, Cr) => (kl) => Oc(kl, (Ti) => Ve(Ti.element), () => A.queryCommandValue(ws) === Cr), na = i0("mceTableRowType", "header"), Gu = i0("mceTableColType", "th");
|
|
51818
51818
|
return A.on("NodeChange ExecCommand TableSelectorChange", ir), {
|
|
51819
51819
|
onSetupTable: Sl,
|
|
51820
|
-
onSetupCellOrRow:
|
|
51820
|
+
onSetupCellOrRow: vu,
|
|
51821
51821
|
onSetupColumn: Jm,
|
|
51822
51822
|
onSetupPasteable: Ad,
|
|
51823
51823
|
onSetupPasteableColumn: qu,
|
|
@@ -51966,7 +51966,7 @@ Required: ` + I.join(", "));
|
|
|
51966
51966
|
icon: "table",
|
|
51967
51967
|
onSetup: Sr(A)
|
|
51968
51968
|
});
|
|
51969
|
-
const Et = xr(
|
|
51969
|
+
const Et = xr(mu(A));
|
|
51970
51970
|
Et.length !== 0 && A.queryCommandSupported("mceTableToggleClass") && A.ui.registry.addMenuButton("tableclass", {
|
|
51971
51971
|
icon: "table-classes",
|
|
51972
51972
|
tooltip: "Table styles",
|
|
@@ -52206,7 +52206,7 @@ Required: ` + I.join(", "));
|
|
|
52206
52206
|
}), A.ui.registry.addContextMenu("table", {
|
|
52207
52207
|
update: () => (I.resetTargets(), I.targets().fold(we(""), (er) => qt(er.element) === "caption" ? "tableprops deletetable" : "cell row column | advtablesort | tableprops deletetable"))
|
|
52208
52208
|
});
|
|
52209
|
-
const Mo = xr(
|
|
52209
|
+
const Mo = xr(mu(A));
|
|
52210
52210
|
Mo.length !== 0 && A.queryCommandSupported("mceTableToggleClass") && A.ui.registry.addNestedMenuItem("tableclass", {
|
|
52211
52211
|
icon: "table-classes",
|
|
52212
52212
|
text: "Table styles",
|
|
@@ -52264,7 +52264,7 @@ Required: ` + I.join(", "));
|
|
|
52264
52264
|
});
|
|
52265
52265
|
}, Ws = (A) => {
|
|
52266
52266
|
const I = zg(A);
|
|
52267
|
-
Ui(A),
|
|
52267
|
+
Ui(A), yu(A), ka(A, I), W1(A, I), Ir(A);
|
|
52268
52268
|
};
|
|
52269
52269
|
var j1 = () => {
|
|
52270
52270
|
u.add("table", Ws);
|
|
@@ -53083,10 +53083,10 @@ Required: ` + I.join(", "));
|
|
|
53083
53083
|
opera: Ft(Si),
|
|
53084
53084
|
firefox: Ft(Bi),
|
|
53085
53085
|
safari: Ft(Gs)
|
|
53086
|
-
}, Xo = "Windows", pl = "iOS", fr = "Android", $c = "Linux", Na = "macOS", Rl = "Solaris", ni = "FreeBSD",
|
|
53086
|
+
}, Xo = "Windows", pl = "iOS", fr = "Android", $c = "Linux", Na = "macOS", Rl = "Solaris", ni = "FreeBSD", uu = "ChromeOS", ya = () => du({
|
|
53087
53087
|
current: void 0,
|
|
53088
53088
|
version: Ln.unknown()
|
|
53089
|
-
}),
|
|
53089
|
+
}), du = (fe) => {
|
|
53090
53090
|
const pe = fe.current, nt = fe.version, $t = (Un) => () => pe === Un;
|
|
53091
53091
|
return {
|
|
53092
53092
|
current: pe,
|
|
@@ -53098,11 +53098,11 @@ Required: ` + I.join(", "));
|
|
|
53098
53098
|
isLinux: $t($c),
|
|
53099
53099
|
isSolaris: $t(Rl),
|
|
53100
53100
|
isFreeBSD: $t(ni),
|
|
53101
|
-
isChromeOS: $t(
|
|
53101
|
+
isChromeOS: $t(uu)
|
|
53102
53102
|
};
|
|
53103
53103
|
}, Ul = {
|
|
53104
53104
|
unknown: ya,
|
|
53105
|
-
nu:
|
|
53105
|
+
nu: du,
|
|
53106
53106
|
windows: Ft(Xo),
|
|
53107
53107
|
ios: Ft(pl),
|
|
53108
53108
|
android: Ft(fr),
|
|
@@ -53110,7 +53110,7 @@ Required: ` + I.join(", "));
|
|
|
53110
53110
|
macos: Ft(Na),
|
|
53111
53111
|
solaris: Ft(Rl),
|
|
53112
53112
|
freebsd: Ft(ni),
|
|
53113
|
-
chromeos: Ft(
|
|
53113
|
+
chromeos: Ft(uu)
|
|
53114
53114
|
}, jr = { detect: (fe, pe, nt) => {
|
|
53115
53115
|
const $t = So.browsers(), Un = So.oses(), as = pe.bind((ai) => Rn($t, ai)).orThunk(() => io($t, fe)).fold(Zc.unknown, Zc.nu), Fo = ds(Un, fe).fold(Ul.unknown, Ul.nu), rr = $e(Fo, as, fe, nt);
|
|
53116
53116
|
return {
|
|
@@ -53120,7 +53120,7 @@ Required: ` + I.join(", "));
|
|
|
53120
53120
|
};
|
|
53121
53121
|
} }, bl = (fe) => window.matchMedia(fe).matches;
|
|
53122
53122
|
let uc = Ot(() => jr.detect(window.navigator.userAgent, nn.from(window.navigator.userAgentData), bl));
|
|
53123
|
-
const
|
|
53123
|
+
const fu = () => uc(), dc = (fe, pe) => ({
|
|
53124
53124
|
left: fe,
|
|
53125
53125
|
top: pe,
|
|
53126
53126
|
translate: ($t, Un) => dc(fe + $t, pe + Un)
|
|
@@ -53129,7 +53129,7 @@ Required: ` + I.join(", "));
|
|
|
53129
53129
|
return fc(nt, $t);
|
|
53130
53130
|
}, qr = (fe) => {
|
|
53131
53131
|
const pe = fe === void 0 ? window : fe;
|
|
53132
|
-
return
|
|
53132
|
+
return fu().browser.isFirefox() ? nn.none() : nn.from(pe.visualViewport);
|
|
53133
53133
|
}, va = (fe, pe, nt, $t) => ({
|
|
53134
53134
|
x: fe,
|
|
53135
53135
|
y: pe,
|
|
@@ -53272,13 +53272,13 @@ Required: ` + I.join(", "));
|
|
|
53272
53272
|
context: "any"
|
|
53273
53273
|
});
|
|
53274
53274
|
};
|
|
53275
|
-
var
|
|
53275
|
+
var hu = () => {
|
|
53276
53276
|
o.add("fullscreen", (fe) => {
|
|
53277
53277
|
const pe = u(null);
|
|
53278
53278
|
return fe.inline || (Gt(fe), hr(fe, pe), Ia(fe, pe), Ci(fe, pe), fe.addShortcut("Meta+Shift+F", "", "mceFullScreen")), i(pe);
|
|
53279
53279
|
});
|
|
53280
53280
|
};
|
|
53281
|
-
|
|
53281
|
+
hu();
|
|
53282
53282
|
})();
|
|
53283
53283
|
(function() {
|
|
53284
53284
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager"), o = tinymce.util.Tools.resolve("tinymce.Env"), i = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
@@ -56099,10 +56099,10 @@ const yde = { class: "font-bold ptext-lg dark:text-white" }, vde = ["id"], wde =
|
|
|
56099
56099
|
});
|
|
56100
56100
|
}), E_(() => {
|
|
56101
56101
|
O && (O.destroy(), O = null);
|
|
56102
|
-
}),
|
|
56102
|
+
}), Lu(() => c.modelValue, ($) => {
|
|
56103
56103
|
O && O.getContent() !== $ && O.setContent($);
|
|
56104
56104
|
});
|
|
56105
|
-
const T =
|
|
56105
|
+
const T = cu({
|
|
56106
56106
|
get() {
|
|
56107
56107
|
return c.modelValue;
|
|
56108
56108
|
},
|
|
@@ -56803,7 +56803,7 @@ class BO {
|
|
|
56803
56803
|
return new BO(o);
|
|
56804
56804
|
}
|
|
56805
56805
|
}
|
|
56806
|
-
class
|
|
56806
|
+
class Bu extends BO {
|
|
56807
56807
|
constructor(o, i) {
|
|
56808
56808
|
super(o), this.inserted = i;
|
|
56809
56809
|
}
|
|
@@ -56838,7 +56838,7 @@ class Mu extends BO {
|
|
|
56838
56838
|
}
|
|
56839
56839
|
m += O;
|
|
56840
56840
|
}
|
|
56841
|
-
return new
|
|
56841
|
+
return new Bu(i, c);
|
|
56842
56842
|
}
|
|
56843
56843
|
/**
|
|
56844
56844
|
Combine two subsequent change sets into a single set. `other`
|
|
@@ -56908,7 +56908,7 @@ class Mu extends BO {
|
|
|
56908
56908
|
}
|
|
56909
56909
|
}
|
|
56910
56910
|
return {
|
|
56911
|
-
changes: new
|
|
56911
|
+
changes: new Bu(i, c),
|
|
56912
56912
|
filtered: BO.create(f)
|
|
56913
56913
|
};
|
|
56914
56914
|
}
|
|
@@ -56933,14 +56933,14 @@ class Mu extends BO {
|
|
|
56933
56933
|
if (!R && !f.length)
|
|
56934
56934
|
return;
|
|
56935
56935
|
O < i && tf(f, i - O, -1);
|
|
56936
|
-
let F = new
|
|
56936
|
+
let F = new Bu(f, m);
|
|
56937
56937
|
w = w ? w.compose(F.map(w)) : F, f = [], m = [], O = 0;
|
|
56938
56938
|
}
|
|
56939
56939
|
function $(R) {
|
|
56940
56940
|
if (Array.isArray(R))
|
|
56941
56941
|
for (let F of R)
|
|
56942
56942
|
$(F);
|
|
56943
|
-
else if (R instanceof
|
|
56943
|
+
else if (R instanceof Bu) {
|
|
56944
56944
|
if (R.length != i)
|
|
56945
56945
|
throw new RangeError(`Mismatched change set length (got ${R.length}, expected ${i})`);
|
|
56946
56946
|
T(), w = w ? w.compose(R.map(w)) : R;
|
|
@@ -56960,7 +56960,7 @@ class Mu extends BO {
|
|
|
56960
56960
|
Create an empty changeset of the given length.
|
|
56961
56961
|
*/
|
|
56962
56962
|
static empty(o) {
|
|
56963
|
-
return new
|
|
56963
|
+
return new Bu(o ? [o, -1] : [], []);
|
|
56964
56964
|
}
|
|
56965
56965
|
/**
|
|
56966
56966
|
Create a changeset from its JSON representation (as produced by
|
|
@@ -56986,13 +56986,13 @@ class Mu extends BO {
|
|
|
56986
56986
|
}
|
|
56987
56987
|
}
|
|
56988
56988
|
}
|
|
56989
|
-
return new
|
|
56989
|
+
return new Bu(i, c);
|
|
56990
56990
|
}
|
|
56991
56991
|
/**
|
|
56992
56992
|
@internal
|
|
56993
56993
|
*/
|
|
56994
56994
|
static createSet(o, i) {
|
|
56995
|
-
return new
|
|
56995
|
+
return new Bu(o, i);
|
|
56996
56996
|
}
|
|
56997
56997
|
}
|
|
56998
56998
|
function tf(u, o, i, c = !1) {
|
|
@@ -57055,7 +57055,7 @@ function gK(u, o, i, c = !1) {
|
|
|
57055
57055
|
tf(f, $, T < O.i ? O.ins : 0), m && T < O.i && w2(m, f, O.text), T = O.i, O.forward(O.len - R);
|
|
57056
57056
|
} else {
|
|
57057
57057
|
if (O.done && w.done)
|
|
57058
|
-
return m ?
|
|
57058
|
+
return m ? Bu.createSet(f, m) : BO.create(f);
|
|
57059
57059
|
throw new Error("Mismatched change set lengths");
|
|
57060
57060
|
}
|
|
57061
57061
|
}
|
|
@@ -57064,7 +57064,7 @@ function Hoe(u, o, i = !1) {
|
|
|
57064
57064
|
let c = [], f = i ? [] : null, m = new FR(u), O = new FR(o);
|
|
57065
57065
|
for (let w = !1; ; ) {
|
|
57066
57066
|
if (m.done && O.done)
|
|
57067
|
-
return f ?
|
|
57067
|
+
return f ? Bu.createSet(c, f) : BO.create(c);
|
|
57068
57068
|
if (m.ins == 0)
|
|
57069
57069
|
tf(c, m.len, 0, w), m.next();
|
|
57070
57070
|
else if (O.len == 0 && !O.done)
|
|
@@ -57858,7 +57858,7 @@ function Lde(u, o) {
|
|
|
57858
57858
|
function Joe(u, o, i) {
|
|
57859
57859
|
var c;
|
|
57860
57860
|
let f, m, O;
|
|
57861
|
-
return i ? (f = o.changes, m =
|
|
57861
|
+
return i ? (f = o.changes, m = Bu.empty(o.changes.length), O = u.changes.compose(o.changes)) : (f = o.changes.map(u.changes), m = u.changes.mapDesc(o.changes, !0), O = u.changes.compose(f)), {
|
|
57862
57862
|
changes: O,
|
|
57863
57863
|
selection: o.selection ? o.selection.map(m) : (c = u.selection) === null || c === void 0 ? void 0 : c.map(f),
|
|
57864
57864
|
effects: Oa.mapEffects(u.effects, f).concat(Oa.mapEffects(o.effects, m)),
|
|
@@ -57869,7 +57869,7 @@ function Joe(u, o, i) {
|
|
|
57869
57869
|
function yK(u, o, i) {
|
|
57870
57870
|
let c = o.selection, f = d_(o.annotations);
|
|
57871
57871
|
return o.userEvent && (f = f.concat(gd.userEvent.of(o.userEvent))), {
|
|
57872
|
-
changes: o.changes instanceof
|
|
57872
|
+
changes: o.changes instanceof Bu ? o.changes : Bu.of(o.changes || [], i, u.facet(Xoe)),
|
|
57873
57873
|
selection: c && (c instanceof no ? c : no.single(c.anchor, c.head)),
|
|
57874
57874
|
effects: d_(o.effects),
|
|
57875
57875
|
annotations: f,
|
|
@@ -57900,7 +57900,7 @@ function Ide(u) {
|
|
|
57900
57900
|
if (i !== !0) {
|
|
57901
57901
|
let f, m;
|
|
57902
57902
|
if (i === !1)
|
|
57903
|
-
m = u.changes.invertedDesc, f =
|
|
57903
|
+
m = u.changes.invertedDesc, f = Bu.empty(o.doc.length);
|
|
57904
57904
|
else {
|
|
57905
57905
|
let O = u.changes.filter(i);
|
|
57906
57906
|
f = O.changes, m = O.filtered.mapDesc(O.changes).invertedDesc;
|
|
@@ -58045,7 +58045,7 @@ class Qi {
|
|
|
58045
58045
|
separator into account.
|
|
58046
58046
|
*/
|
|
58047
58047
|
changes(o = []) {
|
|
58048
|
-
return o instanceof
|
|
58048
|
+
return o instanceof Bu ? o : Bu.of(o, this.doc.length, this.facet(Qi.lineSeparator));
|
|
58049
58049
|
}
|
|
58050
58050
|
/**
|
|
58051
58051
|
Using the state's [line
|
|
@@ -60747,7 +60747,7 @@ class Bg {
|
|
|
60747
60747
|
}
|
|
60748
60748
|
class fF {
|
|
60749
60749
|
constructor(o, i, c) {
|
|
60750
|
-
this.view = o, this.state = i, this.transactions = c, this.flags = 0, this.startState = o.state, this.changes =
|
|
60750
|
+
this.view = o, this.state = i, this.transactions = c, this.flags = 0, this.startState = o.state, this.changes = Bu.empty(this.startState.doc.length);
|
|
60751
60751
|
for (let m of c)
|
|
60752
60752
|
this.changes = this.changes.compose(m.changes);
|
|
60753
60753
|
let f = [];
|
|
@@ -62737,7 +62737,7 @@ class cne {
|
|
|
62737
62737
|
this.state = o.state;
|
|
62738
62738
|
let c = this.stateDeco;
|
|
62739
62739
|
this.stateDeco = this.state.facet(WR).filter((R) => typeof R != "function");
|
|
62740
|
-
let f = o.changedRanges, m = Bg.extendWithRanges(f, lhe(c, this.stateDeco, o ? o.changes :
|
|
62740
|
+
let f = o.changedRanges, m = Bg.extendWithRanges(f, lhe(c, this.stateDeco, o ? o.changes : Bu.empty(this.state.doc.length))), O = this.heightMap.height, w = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
|
|
62741
62741
|
ane(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, o.startState.doc, this.heightOracle.setDoc(this.state.doc), m), (this.heightMap.height != O || w_) && (o.flags |= 2), w ? (this.scrollAnchorPos = o.changes.mapPos(w.from, -1), this.scrollAnchorHeight = w.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height);
|
|
62742
62742
|
let T = m.length ? this.mapViewport(this.viewport, o.changes) : this.viewport;
|
|
62743
62743
|
(i && (i.range.head < T.from || i.range.head > T.to) || !this.viewportIsAppropriate(T)) && (T = this.getViewport(0, i));
|
|
@@ -70447,7 +70447,7 @@ class xpe {
|
|
|
70447
70447
|
return c == null ? null : (this.matched = [0, i.length], this.score = c + (o.length == this.pattern.length ? 0 : -100), this);
|
|
70448
70448
|
}
|
|
70449
70449
|
}
|
|
70450
|
-
const
|
|
70450
|
+
const Nu = /* @__PURE__ */ ys.define({
|
|
70451
70451
|
combine(u) {
|
|
70452
70452
|
return tse(u, {
|
|
70453
70453
|
activateOnTyping: !0,
|
|
@@ -70550,7 +70550,7 @@ class Cpe {
|
|
|
70550
70550
|
write: (T) => this.placeInfo(T),
|
|
70551
70551
|
key: this
|
|
70552
70552
|
}, this.space = null, this.currentClass = "";
|
|
70553
|
-
let f = o.state.field(i), { options: m, selected: O } = f.open, w = o.state.facet(
|
|
70553
|
+
let f = o.state.field(i), { options: m, selected: O } = f.open, w = o.state.facet(Nu);
|
|
70554
70554
|
this.optionContent = kpe(w), this.optionClass = w.optionClass, this.tooltipClass = w.tooltipClass, this.range = nK(m.length, O, w.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(o.state), this.dom.addEventListener("mousedown", (T) => {
|
|
70555
70555
|
let { options: $ } = o.state.field(i).open;
|
|
70556
70556
|
for (let R = T.target, F; R && R != this.dom; R = R.parentNode)
|
|
@@ -70560,7 +70560,7 @@ class Cpe {
|
|
|
70560
70560
|
}
|
|
70561
70561
|
}), this.dom.addEventListener("focusout", (T) => {
|
|
70562
70562
|
let $ = o.state.field(this.stateField, !1);
|
|
70563
|
-
$ && $.tooltip && o.state.facet(
|
|
70563
|
+
$ && $.tooltip && o.state.facet(Nu).closeOnBlur && T.relatedTarget != o.contentDOM && o.dispatch({ effects: qR.of(null) });
|
|
70564
70564
|
}), this.showOptions(m, f.id);
|
|
70565
70565
|
}
|
|
70566
70566
|
mount() {
|
|
@@ -70576,7 +70576,7 @@ class Cpe {
|
|
|
70576
70576
|
let c = o.state.field(this.stateField), f = o.startState.field(this.stateField);
|
|
70577
70577
|
if (this.updateTooltipClass(o.state), c != f) {
|
|
70578
70578
|
let { options: m, selected: O, disabled: w } = c.open;
|
|
70579
|
-
(!f.open || f.open.options != m) && (this.range = nK(m.length, O, o.state.facet(
|
|
70579
|
+
(!f.open || f.open.options != m) && (this.range = nK(m.length, O, o.state.facet(Nu).maxRenderedOptions), this.showOptions(m, c.id)), this.updateSel(), w != ((i = f.open) === null || i === void 0 ? void 0 : i.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!w);
|
|
70580
70580
|
}
|
|
70581
70581
|
}
|
|
70582
70582
|
updateTooltipClass(o) {
|
|
@@ -70594,7 +70594,7 @@ class Cpe {
|
|
|
70594
70594
|
}
|
|
70595
70595
|
updateSel() {
|
|
70596
70596
|
let o = this.view.state.field(this.stateField), i = o.open;
|
|
70597
|
-
if ((i.selected > -1 && i.selected < this.range.from || i.selected >= this.range.to) && (this.range = nK(i.options.length, i.selected, this.view.state.facet(
|
|
70597
|
+
if ((i.selected > -1 && i.selected < this.range.from || i.selected >= this.range.to) && (this.range = nK(i.options.length, i.selected, this.view.state.facet(Nu).maxRenderedOptions), this.showOptions(i.options, o.id)), this.updateSelectedOption(i.selected)) {
|
|
70598
70598
|
this.destroyInfo();
|
|
70599
70599
|
let { completion: c } = i.options[i.selected], { info: f } = c;
|
|
70600
70600
|
if (!f)
|
|
@@ -70633,7 +70633,7 @@ class Cpe {
|
|
|
70633
70633
|
let O = this.dom.ownerDocument.defaultView || window;
|
|
70634
70634
|
m = { left: 0, top: 0, right: O.innerWidth, bottom: O.innerHeight };
|
|
70635
70635
|
}
|
|
70636
|
-
return f.top > Math.min(m.bottom, i.bottom) - 10 || f.bottom < Math.max(m.top, i.top) + 10 ? null : this.view.state.facet(
|
|
70636
|
+
return f.top > Math.min(m.bottom, i.bottom) - 10 || f.bottom < Math.max(m.top, i.top) + 10 ? null : this.view.state.facet(Nu).positionInfo(this.view, i, f, c, m, this.dom);
|
|
70637
70637
|
}
|
|
70638
70638
|
placeInfo(o) {
|
|
70639
70639
|
this.info && (o ? (o.style && (this.info.style.cssText = o.style), this.info.className = "cm-tooltip cm-completionInfo " + (o.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
@@ -70691,7 +70691,7 @@ function Epe(u, o) {
|
|
|
70691
70691
|
let F = typeof R == "string" ? R : R.name;
|
|
70692
70692
|
c.some((H) => H.name == F) || c.push(typeof R == "string" ? { name: F } : R);
|
|
70693
70693
|
}
|
|
70694
|
-
}, m = o.facet(
|
|
70694
|
+
}, m = o.facet(Nu);
|
|
70695
70695
|
for (let $ of u)
|
|
70696
70696
|
if ($.hasResult()) {
|
|
70697
70697
|
let R = $.result.getMatch;
|
|
@@ -70739,7 +70739,7 @@ class u_ {
|
|
|
70739
70739
|
let w = Epe(o, i);
|
|
70740
70740
|
if (!w.length)
|
|
70741
70741
|
return f && o.some(($) => $.isPending) ? f.setDisabled() : null;
|
|
70742
|
-
let T = i.facet(
|
|
70742
|
+
let T = i.facet(Nu).selectOnOpen ? 0 : -1;
|
|
70743
70743
|
if (f && f.selected != T && f.selected != -1) {
|
|
70744
70744
|
let $ = f.options[f.selected].completion;
|
|
70745
70745
|
for (let R = 0; R < w.length; R++)
|
|
@@ -70769,7 +70769,7 @@ class TF {
|
|
|
70769
70769
|
return new TF(Dpe, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
70770
70770
|
}
|
|
70771
70771
|
update(o) {
|
|
70772
|
-
let { state: i } = o, c = i.facet(
|
|
70772
|
+
let { state: i } = o, c = i.facet(Nu), m = (c.override || i.languageDataAt("autocomplete", LS(i)).map(vpe)).map((T) => (this.active.find((R) => R.source == T) || new Rg(
|
|
70773
70773
|
T,
|
|
70774
70774
|
this.active.some(
|
|
70775
70775
|
(R) => R.state != 0
|
|
@@ -70941,7 +70941,7 @@ const Mpe = /* @__PURE__ */ Tpe(Fh, MJ);
|
|
|
70941
70941
|
function jQ(u, o = "option") {
|
|
70942
70942
|
return (i) => {
|
|
70943
70943
|
let c = i.state.field(Fh, !1);
|
|
70944
|
-
if (!c || !c.open || c.open.disabled || Date.now() - c.open.timestamp < i.state.facet(
|
|
70944
|
+
if (!c || !c.open || c.open.disabled || Date.now() - c.open.timestamp < i.state.facet(Nu).interactionDelay)
|
|
70945
70945
|
return !1;
|
|
70946
70946
|
let f = 1, m;
|
|
70947
70947
|
o == "page" && (m = ere(i, c.open.tooltip)) && (f = Math.max(2, Math.floor(m.dom.offsetHeight / m.dom.querySelector("li").offsetHeight) - 1));
|
|
@@ -70951,7 +70951,7 @@ function jQ(u, o = "option") {
|
|
|
70951
70951
|
}
|
|
70952
70952
|
const Bpe = (u) => {
|
|
70953
70953
|
let o = u.state.field(Fh, !1);
|
|
70954
|
-
return u.state.readOnly || !o || !o.open || o.open.selected < 0 || o.open.disabled || Date.now() - o.open.timestamp < u.state.facet(
|
|
70954
|
+
return u.state.readOnly || !o || !o.open || o.open.selected < 0 || o.open.disabled || Date.now() - o.open.timestamp < u.state.facet(Nu).interactionDelay ? !1 : MJ(u, o.open.options[o.open.selected]);
|
|
70955
70955
|
}, ioe = (u) => u.state.field(Fh, !1) ? (u.dispatch({ effects: CF.of(!0) }), !0) : !1, Npe = (u) => {
|
|
70956
70956
|
let o = u.state.field(Fh, !1);
|
|
70957
70957
|
return !o || !o.active.some(
|
|
@@ -70971,7 +70971,7 @@ const Ipe = 50, Qpe = 1e3, Fpe = /* @__PURE__ */ L1.fromClass(class {
|
|
|
70971
70971
|
o.isPending && this.startQuery(o);
|
|
70972
70972
|
}
|
|
70973
70973
|
update(u) {
|
|
70974
|
-
let o = u.state.field(Fh), i = u.state.facet(
|
|
70974
|
+
let o = u.state.field(Fh), i = u.state.facet(Nu);
|
|
70975
70975
|
if (!u.selectionSet && !u.docChanged && u.startState.field(Fh) == o)
|
|
70976
70976
|
return;
|
|
70977
70977
|
let c = u.transactions.some((m) => {
|
|
@@ -71002,7 +71002,7 @@ const Ipe = 50, Qpe = 1e3, Fpe = /* @__PURE__ */ L1.fromClass(class {
|
|
|
71002
71002
|
let { state: u } = this.view, o = u.field(Fh);
|
|
71003
71003
|
for (let i of o.active)
|
|
71004
71004
|
i.isPending && !this.running.some((c) => c.active.source == i.source) && this.startQuery(i);
|
|
71005
|
-
this.running.length && o.open && o.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
71005
|
+
this.running.length && o.open && o.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Nu).updateSyncTime));
|
|
71006
71006
|
}
|
|
71007
71007
|
startQuery(u) {
|
|
71008
71008
|
let { state: o } = this.view, i = LS(o), c = new Wre(o, i, u.explicit, this.view), f = new Lpe(u, c);
|
|
@@ -71013,14 +71013,14 @@ const Ipe = 50, Qpe = 1e3, Fpe = /* @__PURE__ */ L1.fromClass(class {
|
|
|
71013
71013
|
});
|
|
71014
71014
|
}
|
|
71015
71015
|
scheduleAccept() {
|
|
71016
|
-
this.running.every((u) => u.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
71016
|
+
this.running.every((u) => u.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Nu).updateSyncTime));
|
|
71017
71017
|
}
|
|
71018
71018
|
// For each finished query in this.running, try to create a result
|
|
71019
71019
|
// or, if appropriate, restart the query.
|
|
71020
71020
|
accept() {
|
|
71021
71021
|
var u;
|
|
71022
71022
|
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
71023
|
-
let o = [], i = this.view.state.facet(
|
|
71023
|
+
let o = [], i = this.view.state.facet(Nu), c = this.view.state.field(Fh);
|
|
71024
71024
|
for (let f = 0; f < this.running.length; f++) {
|
|
71025
71025
|
let m = this.running[f];
|
|
71026
71026
|
if (m.done === void 0)
|
|
@@ -71054,7 +71054,7 @@ const Ipe = 50, Qpe = 1e3, Fpe = /* @__PURE__ */ L1.fromClass(class {
|
|
|
71054
71054
|
eventHandlers: {
|
|
71055
71055
|
blur(u) {
|
|
71056
71056
|
let o = this.view.state.field(Fh, !1);
|
|
71057
|
-
if (o && o.tooltip && this.view.state.facet(
|
|
71057
|
+
if (o && o.tooltip && this.view.state.facet(Nu).closeOnBlur) {
|
|
71058
71058
|
let i = o.open && ere(this.view, o.open.tooltip);
|
|
71059
71059
|
(!i || !i.dom.contains(u.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: qR.of(null) }), 10);
|
|
71060
71060
|
}
|
|
@@ -71364,7 +71364,7 @@ function _F(u = {}) {
|
|
|
71364
71364
|
return [
|
|
71365
71365
|
Zpe,
|
|
71366
71366
|
Fh,
|
|
71367
|
-
|
|
71367
|
+
Nu.of(u),
|
|
71368
71368
|
Fpe,
|
|
71369
71369
|
t0e,
|
|
71370
71370
|
Yre
|
|
@@ -71379,7 +71379,7 @@ const e0e = [
|
|
|
71379
71379
|
{ key: "PageDown", run: /* @__PURE__ */ jQ(!0, "page") },
|
|
71380
71380
|
{ key: "PageUp", run: /* @__PURE__ */ jQ(!1, "page") },
|
|
71381
71381
|
{ key: "Enter", run: Bpe }
|
|
71382
|
-
], t0e = /* @__PURE__ */ P_.highest(/* @__PURE__ */ ZS.computeN([
|
|
71382
|
+
], t0e = /* @__PURE__ */ P_.highest(/* @__PURE__ */ ZS.computeN([Nu], (u) => u.facet(Nu).defaultKeymap ? [e0e] : [])), eie = [
|
|
71383
71383
|
/* @__PURE__ */ Ih("function ${name}(${params}) {\n ${}\n}", {
|
|
71384
71384
|
label: "function",
|
|
71385
71385
|
detail: "definition",
|
|
@@ -71857,7 +71857,7 @@ const l0e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav
|
|
|
71857
71857
|
parent: f.value
|
|
71858
71858
|
});
|
|
71859
71859
|
}
|
|
71860
|
-
}),
|
|
71860
|
+
}), Lu(
|
|
71861
71861
|
() => i.modelValue,
|
|
71862
71862
|
(R) => {
|
|
71863
71863
|
if (m) {
|
|
@@ -71871,7 +71871,7 @@ const l0e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav
|
|
|
71871
71871
|
});
|
|
71872
71872
|
}
|
|
71873
71873
|
}
|
|
71874
|
-
),
|
|
71874
|
+
), Lu(
|
|
71875
71875
|
() => [i.language, i.theme, i.showLineNumbers, i.highlightActiveLine],
|
|
71876
71876
|
([R, F, H, K]) => {
|
|
71877
71877
|
m && m.dispatch({
|
|
@@ -73894,7 +73894,7 @@ const Aoe = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command em
|
|
|
73894
73894
|
});
|
|
73895
73895
|
}
|
|
73896
73896
|
i.modelValueTranslate && (c("update:modelValueTranslate", i.modelValueTranslate), m.value.value = i.modelValueTranslate);
|
|
73897
|
-
}),
|
|
73897
|
+
}), Lu(
|
|
73898
73898
|
() => i.modelValue,
|
|
73899
73899
|
(H) => {
|
|
73900
73900
|
if (O) {
|
|
@@ -73908,7 +73908,7 @@ const Aoe = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command em
|
|
|
73908
73908
|
});
|
|
73909
73909
|
}
|
|
73910
73910
|
}
|
|
73911
|
-
),
|
|
73911
|
+
), Lu(
|
|
73912
73912
|
() => [i.language, i.theme, i.showLineNumbers, i.highlightActiveLine],
|
|
73913
73913
|
([H, K, me, De]) => {
|
|
73914
73914
|
O && O.dispatch({
|
|
@@ -74097,10 +74097,10 @@ const Aoe = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command em
|
|
|
74097
74097
|
w && (w.destroy(), w = null);
|
|
74098
74098
|
}), qf(() => {
|
|
74099
74099
|
T(), c.modelValue && (f("update:modelValue", c.modelValue), m.value.value = c.modelValue), c.modelValueTranslate && (f("update:modelValueTranslate", c.modelValueTranslate), O.value.value = c.modelValueTranslate);
|
|
74100
|
-
}),
|
|
74100
|
+
}), Lu(() => c.modelValue, (F) => {
|
|
74101
74101
|
w && w.getContent() !== F && w.setContent(F);
|
|
74102
74102
|
});
|
|
74103
|
-
const R =
|
|
74103
|
+
const R = cu({
|
|
74104
74104
|
get() {
|
|
74105
74105
|
return c.modelValue;
|
|
74106
74106
|
},
|
|
@@ -76043,7 +76043,7 @@ const Gwe = /* @__PURE__ */ Fi(Nye, [["render", Lye]]), Iye = {
|
|
|
76043
76043
|
return $ = Math.floor($ / 16), (F === "x" ? H : H & 3 | 8).toString(16);
|
|
76044
76044
|
});
|
|
76045
76045
|
return R;
|
|
76046
|
-
})(), f = { isOpen: u, id: c }, m =
|
|
76046
|
+
})(), f = { isOpen: u, id: c }, m = cu(() => o.accordions.value), O = cu(() => m.value.length > 0 && m.value[0].id === c), w = cu(() => m.value.length > 0 && m.value[m.value.length - 1].id === c);
|
|
76047
76047
|
return qf(() => {
|
|
76048
76048
|
o.registerAccordion(f);
|
|
76049
76049
|
}), rJ(() => {
|
|
@@ -77217,7 +77217,7 @@ const bxe = /* @__PURE__ */ Fi($2e, [["render", F2e]]), V2e = { class: "w-full"
|
|
|
77217
77217
|
}).catch(function(O) {
|
|
77218
77218
|
console.error("Error copying to clipboard: ", O);
|
|
77219
77219
|
});
|
|
77220
|
-
}, f =
|
|
77220
|
+
}, f = cu(() => o.code);
|
|
77221
77221
|
return (m, O) => (Ce(), Ae("div", V2e, [
|
|
77222
77222
|
V("div", Z2e, [
|
|
77223
77223
|
V("p", z2e, Rt(u.label_name), 1)
|
|
@@ -77299,7 +77299,7 @@ const bxe = /* @__PURE__ */ Fi($2e, [["render", F2e]]), V2e = { class: "w-full"
|
|
|
77299
77299
|
}).catch(function(O) {
|
|
77300
77300
|
console.error("Error copying to clipboard: ", O);
|
|
77301
77301
|
});
|
|
77302
|
-
}, f =
|
|
77302
|
+
}, f = cu(() => o.code);
|
|
77303
77303
|
return (m, O) => (Ce(), Ae("div", Y2e, [
|
|
77304
77304
|
V("div", K2e, [
|
|
77305
77305
|
V("label", J2e, Rt(u.label_name), 1)
|