@zyui/components 0.0.49 → 0.0.50
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/es/index.js +3 -3
- package/es/index.mjs +605 -584
- package/es/style.css +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var bhe = Object.defineProperty;
|
|
2
2
|
var yhe = (o, s, i) => s in o ? bhe(o, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[s] = i;
|
|
3
3
|
var du = (o, s, i) => yhe(o, typeof s != "symbol" ? s + "" : s, i);
|
|
4
|
-
import { defineComponent as Wo, reactive as tI, provide as Jm, inject as Qm, ref as hn, watch as
|
|
4
|
+
import { defineComponent as Wo, reactive as tI, provide as Jm, inject as Qm, ref as hn, watch as es, toValue as Nt, computed as Vn, openBlock as ft, createElementBlock as un, createElementVNode as Ut, mergeModels as Ha, useModel as Rr, Fragment as lr, renderList as va, createVNode as cn, unref as Ae, withCtx as An, createCommentVNode as Ko, toDisplayString as Rs, createTextVNode as Us, createBlock as _o, withDirectives as LU, mergeProps as Yg, resolveComponent as V4, isRef as nh, onUnmounted as cd, watchEffect as Tue, getCurrentScope as Moe, onScopeDispose as OR, onMounted as vl, toRefs as hE, renderSlot as Mr, normalizeStyle as Wl, nextTick as lm, onBeforeUnmount as nI, onActivated as whe, onDeactivated as Che, h as Za, withModifiers as Q2, Teleport as Roe, normalizeClass as Zl, vShow as She, resolveDynamicComponent as W_, createPropsRestProxy as xhe, toRef as ai, effectScope as kue, getCurrentInstance as eC, useSlots as _he, onBeforeMount as Ehe, useAttrs as The, isMemoSame as khe, customRef as Ahe, markRaw as $R, readonly as Ohe, createStaticVNode as $he, createSlots as Aue, normalizeProps as Dhe, guardReactiveProps as Nhe, withKeys as oI } from "vue";
|
|
5
5
|
import { ElImage as q2, ElIcon as oh, ElPopover as HU, ElForm as tC, ElFormItem as Ym, ElInput as Xg, ElButton as Bu, ElScrollbar as VU, ElLoadingDirective as Ioe, ElSelect as lE, ElOption as cE, ElDialog as zU, ElTabs as Oue, ElTabPane as $ue, ElTable as Mhe, ElTableColumn as gz, ElCheckbox as vy, ElMessageBox as Rhe, ElRadioGroup as Due, ElRadio as Y2, ElRow as Ihe, ElCol as Aae, ElTree as Nue } from "element-plus";
|
|
6
|
-
const Phe = "0.0.
|
|
6
|
+
const Phe = "0.0.50";
|
|
7
7
|
var Bhe = Object.defineProperty, Fhe = (o, s, i) => s in o ? Bhe(o, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[s] = i, Ste = (o, s, i) => Fhe(o, typeof s != "symbol" ? s + "" : s, i);
|
|
8
8
|
function Mue(o, s) {
|
|
9
9
|
return function() {
|
|
@@ -4980,9 +4980,9 @@ var zie = eO && eO.isMap, TSe = zie ? aj(zie) : ESe, kSe = "[object Set]";
|
|
|
4980
4980
|
function ASe(o) {
|
|
4981
4981
|
return by(o) && d1(o) == kSe;
|
|
4982
4982
|
}
|
|
4983
|
-
var Uie = eO && eO.isSet, OSe = Uie ? aj(Uie) : ASe, $Se = 1, DSe = 2, NSe = 4, pfe = "[object Arguments]", MSe = "[object Array]", RSe = "[object Boolean]", ISe = "[object Date]", PSe = "[object Error]", hfe = "[object Function]", BSe = "[object GeneratorFunction]", FSe = "[object Map]", LSe = "[object Number]", vfe = "[object Object]", HSe = "[object RegExp]", VSe = "[object Set]", zSe = "[object String]", USe = "[object Symbol]", jSe = "[object WeakMap]", WSe = "[object ArrayBuffer]", ZSe = "[object DataView]", GSe = "[object Float32Array]", qSe = "[object Float64Array]", YSe = "[object Int8Array]", KSe = "[object Int16Array]", XSe = "[object Int32Array]", JSe = "[object Uint8Array]", QSe = "[object Uint8ClampedArray]", exe = "[object Uint16Array]", txe = "[object Uint32Array]",
|
|
4984
|
-
|
|
4985
|
-
|
|
4983
|
+
var Uie = eO && eO.isSet, OSe = Uie ? aj(Uie) : ASe, $Se = 1, DSe = 2, NSe = 4, pfe = "[object Arguments]", MSe = "[object Array]", RSe = "[object Boolean]", ISe = "[object Date]", PSe = "[object Error]", hfe = "[object Function]", BSe = "[object GeneratorFunction]", FSe = "[object Map]", LSe = "[object Number]", vfe = "[object Object]", HSe = "[object RegExp]", VSe = "[object Set]", zSe = "[object String]", USe = "[object Symbol]", jSe = "[object WeakMap]", WSe = "[object ArrayBuffer]", ZSe = "[object DataView]", GSe = "[object Float32Array]", qSe = "[object Float64Array]", YSe = "[object Int8Array]", KSe = "[object Int16Array]", XSe = "[object Int32Array]", JSe = "[object Uint8Array]", QSe = "[object Uint8ClampedArray]", exe = "[object Uint16Array]", txe = "[object Uint32Array]", pl = {};
|
|
4984
|
+
pl[pfe] = pl[MSe] = pl[WSe] = pl[ZSe] = pl[RSe] = pl[ISe] = pl[GSe] = pl[qSe] = pl[YSe] = pl[KSe] = pl[XSe] = pl[FSe] = pl[LSe] = pl[vfe] = pl[HSe] = pl[VSe] = pl[zSe] = pl[USe] = pl[JSe] = pl[QSe] = pl[exe] = pl[txe] = !0;
|
|
4985
|
+
pl[PSe] = pl[hfe] = pl[jSe] = !1;
|
|
4986
4986
|
function jz(o, s, i, u, f, p) {
|
|
4987
4987
|
var v, w = s & $Se, S = s & DSe, _ = s & NSe;
|
|
4988
4988
|
if (v !== void 0)
|
|
@@ -5001,7 +5001,7 @@ function jz(o, s, i, u, f, p) {
|
|
|
5001
5001
|
if (v = S || R ? {} : xSe(o), !w)
|
|
5002
5002
|
return S ? zCe(o, RCe(v, o)) : HCe(o, MCe(v, o));
|
|
5003
5003
|
} else {
|
|
5004
|
-
if (!
|
|
5004
|
+
if (!pl[O])
|
|
5005
5005
|
return f ? o : {};
|
|
5006
5006
|
v = SSe(o, O, w);
|
|
5007
5007
|
}
|
|
@@ -5562,7 +5562,7 @@ const E_e = (o) => {
|
|
|
5562
5562
|
f.value = !1;
|
|
5563
5563
|
}));
|
|
5564
5564
|
};
|
|
5565
|
-
return
|
|
5565
|
+
return es(
|
|
5566
5566
|
() => s,
|
|
5567
5567
|
(w, S) => {
|
|
5568
5568
|
Di(w, S) || v();
|
|
@@ -5723,7 +5723,7 @@ var A_e = /* @__PURE__ */ Wo({
|
|
|
5723
5723
|
]));
|
|
5724
5724
|
}
|
|
5725
5725
|
}), pI = P_e;
|
|
5726
|
-
const
|
|
5726
|
+
const Xi = (o, s) => {
|
|
5727
5727
|
const i = o.__vccOpts || o;
|
|
5728
5728
|
for (const [u, f] of s)
|
|
5729
5729
|
i[u] = f;
|
|
@@ -5823,7 +5823,7 @@ const Ji = (o, s) => {
|
|
|
5823
5823
|
}), 128))
|
|
5824
5824
|
]));
|
|
5825
5825
|
}
|
|
5826
|
-
}, hI = /* @__PURE__ */
|
|
5826
|
+
}, hI = /* @__PURE__ */ Xi(j_e, [["__scopeId", "data-v-9e72793f"]]), W_e = { key: 0 }, Z_e = { class: "num" }, G_e = {
|
|
5827
5827
|
key: 1,
|
|
5828
5828
|
class: "num"
|
|
5829
5829
|
}, q_e = { key: 2 }, Y_e = { key: 1 }, K_e = {
|
|
@@ -5877,7 +5877,7 @@ const Ji = (o, s) => {
|
|
|
5877
5877
|
]));
|
|
5878
5878
|
};
|
|
5879
5879
|
}
|
|
5880
|
-
}, X_e = /* @__PURE__ */
|
|
5880
|
+
}, X_e = /* @__PURE__ */ Xi(K_e, [["__scopeId", "data-v-ce630612"]]), J_e = {
|
|
5881
5881
|
__name: "group",
|
|
5882
5882
|
props: /* @__PURE__ */ Ha({
|
|
5883
5883
|
// multiple 是否多选
|
|
@@ -6265,7 +6265,7 @@ const Ji = (o, s) => {
|
|
|
6265
6265
|
var Y, K;
|
|
6266
6266
|
return (K = (Y = w.value) == null ? void 0 : Y[0]) == null ? void 0 : K.value;
|
|
6267
6267
|
});
|
|
6268
|
-
|
|
6268
|
+
es(
|
|
6269
6269
|
() => S.value,
|
|
6270
6270
|
() => {
|
|
6271
6271
|
v.value = S.value;
|
|
@@ -6523,7 +6523,7 @@ const Ji = (o, s) => {
|
|
|
6523
6523
|
]);
|
|
6524
6524
|
};
|
|
6525
6525
|
}
|
|
6526
|
-
}, cEe = /* @__PURE__ */
|
|
6526
|
+
}, cEe = /* @__PURE__ */ Xi(lEe, [["__scopeId", "data-v-9bfeca68"]]), uEe = {
|
|
6527
6527
|
__name: "index",
|
|
6528
6528
|
props: /* @__PURE__ */ Ha({
|
|
6529
6529
|
//人员选择器选择类型:chooseType:1 显示人员,chooseType:2 显示岗位,chooseType:3 显示部门
|
|
@@ -6693,7 +6693,7 @@ function fEe(o, s, i, u, f, p) {
|
|
|
6693
6693
|
}, null, 8, ["modelValue", "disabled", "multiple", "title", "chooseType", "extraParameter"])) : Ko("", !0)
|
|
6694
6694
|
], 64));
|
|
6695
6695
|
}
|
|
6696
|
-
const mEe = /* @__PURE__ */
|
|
6696
|
+
const mEe = /* @__PURE__ */ Xi(dEe, [["render", fEe]]);
|
|
6697
6697
|
function gEe(o) {
|
|
6698
6698
|
var s = typeof o;
|
|
6699
6699
|
return o != null && (s == "object" || s == "function");
|
|
@@ -7486,9 +7486,9 @@ var D$e = $$e, N$e = D$e, M$e = gse, Sle = pse, xle = Sle && Sle.isMap, R$e = xl
|
|
|
7486
7486
|
function L$e(o) {
|
|
7487
7487
|
return B$e(o) && P$e(o) == F$e;
|
|
7488
7488
|
}
|
|
7489
|
-
var H$e = L$e, V$e = H$e, z$e = gse, _le = pse, Ele = _le && _le.isSet, U$e = Ele ? z$e(Ele) : V$e, j$e = U$e, W$e = fse, Z$e = w3e, G$e = Ffe, q$e = i4e, Y$e = _4e, K$e = Wfe, X$e = Zfe, J$e = B4e, Q$e = K4e, e5e = Xfe, t5e = lOe, n5e = yj, o5e = ROe, s5e = y$e, r5e = tme, a5e = wI, i5e = vj, l5e = I$e, c5e = rC, u5e = j$e, d5e = bse, f5e = CI, m5e = 1, g5e = 2, p5e = 4, nme = "[object Arguments]", h5e = "[object Array]", v5e = "[object Boolean]", b5e = "[object Date]", y5e = "[object Error]", ome = "[object Function]", w5e = "[object GeneratorFunction]", C5e = "[object Map]", S5e = "[object Number]", sme = "[object Object]", x5e = "[object RegExp]", _5e = "[object Set]", E5e = "[object String]", T5e = "[object Symbol]", k5e = "[object WeakMap]", A5e = "[object ArrayBuffer]", O5e = "[object DataView]", $5e = "[object Float32Array]", D5e = "[object Float64Array]", N5e = "[object Int8Array]", M5e = "[object Int16Array]", R5e = "[object Int32Array]", I5e = "[object Uint8Array]", P5e = "[object Uint8ClampedArray]", B5e = "[object Uint16Array]", F5e = "[object Uint32Array]",
|
|
7490
|
-
|
|
7491
|
-
|
|
7489
|
+
var H$e = L$e, V$e = H$e, z$e = gse, _le = pse, Ele = _le && _le.isSet, U$e = Ele ? z$e(Ele) : V$e, j$e = U$e, W$e = fse, Z$e = w3e, G$e = Ffe, q$e = i4e, Y$e = _4e, K$e = Wfe, X$e = Zfe, J$e = B4e, Q$e = K4e, e5e = Xfe, t5e = lOe, n5e = yj, o5e = ROe, s5e = y$e, r5e = tme, a5e = wI, i5e = vj, l5e = I$e, c5e = rC, u5e = j$e, d5e = bse, f5e = CI, m5e = 1, g5e = 2, p5e = 4, nme = "[object Arguments]", h5e = "[object Array]", v5e = "[object Boolean]", b5e = "[object Date]", y5e = "[object Error]", ome = "[object Function]", w5e = "[object GeneratorFunction]", C5e = "[object Map]", S5e = "[object Number]", sme = "[object Object]", x5e = "[object RegExp]", _5e = "[object Set]", E5e = "[object String]", T5e = "[object Symbol]", k5e = "[object WeakMap]", A5e = "[object ArrayBuffer]", O5e = "[object DataView]", $5e = "[object Float32Array]", D5e = "[object Float64Array]", N5e = "[object Int8Array]", M5e = "[object Int16Array]", R5e = "[object Int32Array]", I5e = "[object Uint8Array]", P5e = "[object Uint8ClampedArray]", B5e = "[object Uint16Array]", F5e = "[object Uint32Array]", hl = {};
|
|
7490
|
+
hl[nme] = hl[h5e] = hl[A5e] = hl[O5e] = hl[v5e] = hl[b5e] = hl[$5e] = hl[D5e] = hl[N5e] = hl[M5e] = hl[R5e] = hl[C5e] = hl[S5e] = hl[sme] = hl[x5e] = hl[_5e] = hl[E5e] = hl[T5e] = hl[I5e] = hl[P5e] = hl[B5e] = hl[F5e] = !0;
|
|
7491
|
+
hl[y5e] = hl[ome] = hl[k5e] = !1;
|
|
7492
7492
|
function Wz(o, s, i, u, f, p) {
|
|
7493
7493
|
var v, w = s & m5e, S = s & g5e, _ = s & p5e;
|
|
7494
7494
|
if (i && (v = f ? i(o, u, f, p) : i(o)), v !== void 0)
|
|
@@ -7507,7 +7507,7 @@ function Wz(o, s, i, u, f, p) {
|
|
|
7507
7507
|
if (v = S || R ? {} : r5e(o), !w)
|
|
7508
7508
|
return S ? Q$e(o, Y$e(v, o)) : J$e(o, q$e(v, o));
|
|
7509
7509
|
} else {
|
|
7510
|
-
if (!
|
|
7510
|
+
if (!hl[O])
|
|
7511
7511
|
return f ? o : {};
|
|
7512
7512
|
v = s5e(o, O, w);
|
|
7513
7513
|
}
|
|
@@ -8191,7 +8191,7 @@ function V6e(o, s, i) {
|
|
|
8191
8191
|
() => Array.isArray(o) ? o.map((O) => mE(O)) : [mE(o)]
|
|
8192
8192
|
), S = () => {
|
|
8193
8193
|
v && (v.disconnect(), v = null);
|
|
8194
|
-
}, _ =
|
|
8194
|
+
}, _ = es(
|
|
8195
8195
|
w,
|
|
8196
8196
|
(O) => {
|
|
8197
8197
|
S(), p.value && window && (v = new ResizeObserver(s), O.forEach((R) => {
|
|
@@ -8242,7 +8242,7 @@ function fme(o, s) {
|
|
|
8242
8242
|
}), f && ole("scroll", w, {
|
|
8243
8243
|
capture: !0,
|
|
8244
8244
|
passive: !0
|
|
8245
|
-
}), V6e(o, w),
|
|
8245
|
+
}), V6e(o, w), es(() => mE(o), w), vl(() => {
|
|
8246
8246
|
p && w();
|
|
8247
8247
|
}), {
|
|
8248
8248
|
...hE(v)
|
|
@@ -8278,7 +8278,7 @@ const U6e = { class: "h-100% flex flex-col overflow-hidden" }, j6e = {
|
|
|
8278
8278
|
])) : Ko("", !0)
|
|
8279
8279
|
]));
|
|
8280
8280
|
}
|
|
8281
|
-
}, G6e = /* @__PURE__ */
|
|
8281
|
+
}, G6e = /* @__PURE__ */ Xi(Z6e, [["__scopeId", "data-v-c840a6bf"]]), q6e = {
|
|
8282
8282
|
name: "FilePreview",
|
|
8283
8283
|
components: {},
|
|
8284
8284
|
props: {
|
|
@@ -8303,7 +8303,7 @@ const U6e = { class: "h-100% flex flex-col overflow-hidden" }, j6e = {
|
|
|
8303
8303
|
function Y6e(o, s, i, u, f, p) {
|
|
8304
8304
|
return ft(), un("div", null, "1234");
|
|
8305
8305
|
}
|
|
8306
|
-
const K6e = /* @__PURE__ */
|
|
8306
|
+
const K6e = /* @__PURE__ */ Xi(q6e, [["render", Y6e]]);
|
|
8307
8307
|
var X6e = [
|
|
8308
8308
|
"onActivate",
|
|
8309
8309
|
"onAddUndo",
|
|
@@ -8385,7 +8385,7 @@ var X6e = [
|
|
|
8385
8385
|
});
|
|
8386
8386
|
}, eMe = function(o, s, i, u) {
|
|
8387
8387
|
var f = o.modelEvents ? o.modelEvents : null, p = Array.isArray(f) ? f.join(" ") : f;
|
|
8388
|
-
|
|
8388
|
+
es(u, function(v, w) {
|
|
8389
8389
|
i && typeof v == "string" && v !== w && v !== i.getContent({ format: o.outputFormat }) && i.setContent(v);
|
|
8390
8390
|
}), i.on(p || "change input undo redo", function() {
|
|
8391
8391
|
s.emit("update:modelValue", i.getContent({ format: o.outputFormat }));
|
|
@@ -8492,15 +8492,15 @@ var X6e = [
|
|
|
8492
8492
|
} });
|
|
8493
8493
|
nMe(w.value) && (w.value.style.visibility = ""), F_().init(H), R = !1;
|
|
8494
8494
|
};
|
|
8495
|
-
|
|
8495
|
+
es(f, function(j) {
|
|
8496
8496
|
var H;
|
|
8497
8497
|
S !== null && (typeof ((H = S.mode) === null || H === void 0 ? void 0 : H.set) == "function" ? S.mode.set(j ? "readonly" : "design") : S.setMode(j ? "readonly" : "design"));
|
|
8498
|
-
}),
|
|
8498
|
+
}), es(v, function(j) {
|
|
8499
8499
|
var H;
|
|
8500
8500
|
O || (W = S.getContent()), (H = F_()) === null || H === void 0 || H.remove(S), lm(function() {
|
|
8501
8501
|
return K();
|
|
8502
8502
|
});
|
|
8503
|
-
}),
|
|
8503
|
+
}), vl(function() {
|
|
8504
8504
|
if (F_() !== null)
|
|
8505
8505
|
K();
|
|
8506
8506
|
else if (w.value && w.value.ownerDocument) {
|
|
@@ -9047,7 +9047,7 @@ var X6e = [
|
|
|
9047
9047
|
], Ni = {
|
|
9048
9048
|
browsers: ve(cr),
|
|
9049
9049
|
oses: ve(bu)
|
|
9050
|
-
}, Oc = "Edge", ws = "Chromium",
|
|
9050
|
+
}, Oc = "Edge", ws = "Chromium", Ji = "IE", Cr = "Opera", ic = "Firefox", _i = "Safari", bl = () => wa({
|
|
9051
9051
|
current: void 0,
|
|
9052
9052
|
version: Qe.unknown()
|
|
9053
9053
|
}), wa = (e) => {
|
|
@@ -9057,7 +9057,7 @@ var X6e = [
|
|
|
9057
9057
|
version: r,
|
|
9058
9058
|
isEdge: l(Oc),
|
|
9059
9059
|
isChromium: l(ws),
|
|
9060
|
-
isIE: l(
|
|
9060
|
+
isIE: l(Ji),
|
|
9061
9061
|
isOpera: l(Cr),
|
|
9062
9062
|
isFirefox: l(ic),
|
|
9063
9063
|
isSafari: l(_i)
|
|
@@ -9067,11 +9067,11 @@ var X6e = [
|
|
|
9067
9067
|
nu: wa,
|
|
9068
9068
|
edge: ve(Oc),
|
|
9069
9069
|
chromium: ve(ws),
|
|
9070
|
-
ie: ve(
|
|
9070
|
+
ie: ve(Ji),
|
|
9071
9071
|
opera: ve(Cr),
|
|
9072
9072
|
firefox: ve(ic),
|
|
9073
9073
|
safari: ve(_i)
|
|
9074
|
-
}, Mi = "Windows", cc = "iOS", Gl = "Android", uc = "Linux", Zr = "macOS",
|
|
9074
|
+
}, Mi = "Windows", cc = "iOS", Gl = "Android", uc = "Linux", Zr = "macOS", Qi = "Solaris", ql = "FreeBSD", Yl = "ChromeOS", qc = () => Ri({
|
|
9075
9075
|
current: void 0,
|
|
9076
9076
|
version: Qe.unknown()
|
|
9077
9077
|
}), Ri = (e) => {
|
|
@@ -9084,7 +9084,7 @@ var X6e = [
|
|
|
9084
9084
|
isAndroid: l(Gl),
|
|
9085
9085
|
isMacOS: l(Zr),
|
|
9086
9086
|
isLinux: l(uc),
|
|
9087
|
-
isSolaris: l(
|
|
9087
|
+
isSolaris: l(Qi),
|
|
9088
9088
|
isFreeBSD: l(ql),
|
|
9089
9089
|
isChromeOS: l(Yl)
|
|
9090
9090
|
};
|
|
@@ -9096,7 +9096,7 @@ var X6e = [
|
|
|
9096
9096
|
android: ve(Gl),
|
|
9097
9097
|
linux: ve(uc),
|
|
9098
9098
|
macos: ve(Zr),
|
|
9099
|
-
solaris: ve(
|
|
9099
|
+
solaris: ve(Qi),
|
|
9100
9100
|
freebsd: ve(ql),
|
|
9101
9101
|
chromeos: ve(Yl)
|
|
9102
9102
|
}, vi = { detect: (e, n, r) => {
|
|
@@ -9211,7 +9211,7 @@ var X6e = [
|
|
|
9211
9211
|
}, ep = Object.getPrototypeOf, Or = (e) => eg("HTMLElement", e), wu = (e) => {
|
|
9212
9212
|
const n = Oa("ownerDocument.defaultView", e);
|
|
9213
9213
|
return fe(e) && (Or(n).prototype.isPrototypeOf(e) || /^HTML\w*Element$/.test(ep(e).constructor.name));
|
|
9214
|
-
}, Ya = 8, ii = 9,
|
|
9214
|
+
}, Ya = 8, ii = 9, el = 11, Fu = 1, Re = 3, Fe = (e) => e.dom.nodeName.toLowerCase(), Rt = (e) => e.dom.nodeType, rn = (e) => (n) => Rt(n) === e, Eo = (e) => Rt(e) === Ya || Fe(e) === "#comment", ks = (e) => hs(e) && wu(e.dom), hs = rn(Fu), Sr = rn(Re), Na = rn(ii), yl = rn(el), Bi = (e) => (n) => hs(n) && Fe(n) === e, Gr = (e, n, r) => {
|
|
9215
9215
|
if (H(r) || We(r) || Lt(r))
|
|
9216
9216
|
e.setAttribute(n, r + "");
|
|
9217
9217
|
else
|
|
@@ -9243,12 +9243,12 @@ var X6e = [
|
|
|
9243
9243
|
}, Af = (e, n, r) => {
|
|
9244
9244
|
const l = Be(ud(e, n), (d) => d !== r);
|
|
9245
9245
|
return l.length > 0 ? Ca(e, n, l.join(" ")) : ur(e, n), !1;
|
|
9246
|
-
}, Bd = (e) => e.dom.classList !== void 0, Fd = (e) => ud(e, "class"), dc = (e, n) => kf(e, "class", n),
|
|
9246
|
+
}, Bd = (e) => e.dom.classList !== void 0, Fd = (e) => ud(e, "class"), dc = (e, n) => kf(e, "class", n), tl = (e, n) => Af(e, "class", n), b1 = (e, n) => Q(Fd(e), n) ? tl(e, n) : dc(e, n), Lu = (e, n) => {
|
|
9247
9247
|
Bd(e) ? e.dom.classList.add(n) : dc(e, n);
|
|
9248
9248
|
}, tp = (e) => {
|
|
9249
9249
|
(Bd(e) ? e.dom.classList : Fd(e)).length === 0 && ur(e, "class");
|
|
9250
9250
|
}, Of = (e, n) => {
|
|
9251
|
-
Bd(e) ? e.dom.classList.remove(n) :
|
|
9251
|
+
Bd(e) ? e.dom.classList.remove(n) : tl(e, n), tp(e);
|
|
9252
9252
|
}, np = (e, n) => {
|
|
9253
9253
|
const r = Bd(e) ? e.dom.classList.toggle(n) : b1(e, n);
|
|
9254
9254
|
return tp(e), r;
|
|
@@ -9298,7 +9298,7 @@ var X6e = [
|
|
|
9298
9298
|
return l.mozMatchesSelector(n);
|
|
9299
9299
|
throw new Error("Browser lacks native selectors");
|
|
9300
9300
|
}
|
|
9301
|
-
}, vb = (e) => e.nodeType !== Fu && e.nodeType !== ii && e.nodeType !==
|
|
9301
|
+
}, vb = (e) => e.nodeType !== Fu && e.nodeType !== ii && e.nodeType !== el || e.childElementCount === 0, y1 = (e, n) => {
|
|
9302
9302
|
const r = n === void 0 ? document : n.dom;
|
|
9303
9303
|
return vb(r) ? [] : le(r.querySelectorAll(e), tt.fromDom);
|
|
9304
9304
|
}, Hd = (e, n) => {
|
|
@@ -9307,7 +9307,7 @@ var X6e = [
|
|
|
9307
9307
|
}, js = (e, n) => e.dom === n.dom, Sa = (e, n) => {
|
|
9308
9308
|
const r = e.dom, l = n.dom;
|
|
9309
9309
|
return r === l ? !1 : r.contains(l);
|
|
9310
|
-
}, Fi = (e) => tt.fromDom(e.dom.ownerDocument), dd = (e) => Na(e) ? e : Fi(e), ih = (e) => tt.fromDom(dd(e).dom.documentElement), Nf = (e) => tt.fromDom(dd(e).dom.defaultView),
|
|
9310
|
+
}, Fi = (e) => tt.fromDom(e.dom.ownerDocument), dd = (e) => Na(e) ? e : Fi(e), ih = (e) => tt.fromDom(dd(e).dom.documentElement), Nf = (e) => tt.fromDom(dd(e).dom.defaultView), nl = (e) => ne.from(e.dom.parentNode).map(tt.fromDom), sg = (e) => ne.from(e.dom.parentElement).map(tt.fromDom), rg = (e, n) => {
|
|
9311
9311
|
const r = ce(n) ? n : Ie;
|
|
9312
9312
|
let l = e.dom;
|
|
9313
9313
|
const d = [];
|
|
@@ -9320,11 +9320,11 @@ var X6e = [
|
|
|
9320
9320
|
return d;
|
|
9321
9321
|
}, fd = (e) => {
|
|
9322
9322
|
const n = (r) => Be(r, (l) => !js(e, l));
|
|
9323
|
-
return
|
|
9323
|
+
return nl(e).map(Ti).map(n).getOr([]);
|
|
9324
9324
|
}, md = (e) => ne.from(e.dom.previousSibling).map(tt.fromDom), um = (e) => ne.from(e.dom.nextSibling).map(tt.fromDom), Mc = (e) => Nn(Df(e, md)), ag = (e) => Df(e, um), Ti = (e) => le(e.dom.childNodes, tt.fromDom), gd = (e, n) => {
|
|
9325
9325
|
const r = e.dom.childNodes;
|
|
9326
9326
|
return ne.from(r[n]).map(tt.fromDom);
|
|
9327
|
-
}, Yc = (e) => gd(e, 0),
|
|
9327
|
+
}, Yc = (e) => gd(e, 0), ol = (e) => gd(e, e.dom.childNodes.length - 1), Vd = (e) => e.dom.childNodes.length, w1 = (e) => {
|
|
9328
9328
|
const n = e.dom.head;
|
|
9329
9329
|
if (n == null)
|
|
9330
9330
|
throw new Error("Head is not available yet");
|
|
@@ -9415,12 +9415,12 @@ var X6e = [
|
|
|
9415
9415
|
const r = e.dom;
|
|
9416
9416
|
ip(r, n), Aa(pa(e, "style").map(Ps), "") && ur(e, "style");
|
|
9417
9417
|
}, bi = (e) => e.dom.offsetWidth, wl = (e, n) => {
|
|
9418
|
-
|
|
9418
|
+
nl(e).each((l) => {
|
|
9419
9419
|
l.dom.insertBefore(n.dom, e.dom);
|
|
9420
9420
|
});
|
|
9421
9421
|
}, Rc = (e, n) => {
|
|
9422
9422
|
um(e).fold(() => {
|
|
9423
|
-
|
|
9423
|
+
nl(e).each((d) => {
|
|
9424
9424
|
qr(d, n);
|
|
9425
9425
|
});
|
|
9426
9426
|
}, (l) => {
|
|
@@ -9527,8 +9527,8 @@ var X6e = [
|
|
|
9527
9527
|
return q(Ti(e), (l) => {
|
|
9528
9528
|
n(l) && (r = r.concat([l])), r = r.concat(_1(l, n));
|
|
9529
9529
|
}), r;
|
|
9530
|
-
},
|
|
9531
|
-
class
|
|
9530
|
+
}, sl = (e, n) => y1(n, e), E1 = (e, n, r) => Hu(e, n, r).isSome(), ky = (e, n) => ci(e, n).isSome(), T1 = (e, n) => cg(e, n).isSome();
|
|
9531
|
+
class rl {
|
|
9532
9532
|
constructor(n, r) {
|
|
9533
9533
|
this.node = n, this.rootNode = r, this.current = this.current.bind(this), this.next = this.next.bind(this), this.prev = this.prev.bind(this), this.prev2 = this.prev2.bind(this);
|
|
9534
9534
|
}
|
|
@@ -9577,7 +9577,7 @@ var X6e = [
|
|
|
9577
9577
|
}
|
|
9578
9578
|
}
|
|
9579
9579
|
}
|
|
9580
|
-
const k1 = "\uFEFF", di = " ", yb = (e) => e === k1,
|
|
9580
|
+
const k1 = "\uFEFF", di = " ", yb = (e) => e === k1, al = (e) => e.replace(/\uFEFF/g, ""), qo = /^[ \t\r\n]*$/, _u = (e) => qo.test(e), fg = (e) => {
|
|
9581
9581
|
for (const n of e)
|
|
9582
9582
|
if (!yb(n))
|
|
9583
9583
|
return !1;
|
|
@@ -9656,7 +9656,7 @@ var X6e = [
|
|
|
9656
9656
|
let d = n.firstChild, h = 0;
|
|
9657
9657
|
if (!d)
|
|
9658
9658
|
return !0;
|
|
9659
|
-
const C = new
|
|
9659
|
+
const C = new rl(d, n);
|
|
9660
9660
|
do {
|
|
9661
9661
|
if (l.skipBogus && eo(d)) {
|
|
9662
9662
|
const k = d.getAttribute("data-mce-bogus");
|
|
@@ -9779,7 +9779,7 @@ var X6e = [
|
|
|
9779
9779
|
q([
|
|
9780
9780
|
...r,
|
|
9781
9781
|
...ec(e, n) ? [n] : []
|
|
9782
|
-
], (l) => q(
|
|
9782
|
+
], (l) => q(sl(tt.fromDom(l), l.nodeName.toLowerCase()), (d) => {
|
|
9783
9783
|
pp(e, d.dom) && xu(d);
|
|
9784
9784
|
}));
|
|
9785
9785
|
}, Ql = (e, n) => {
|
|
@@ -9907,7 +9907,7 @@ var X6e = [
|
|
|
9907
9907
|
});
|
|
9908
9908
|
} };
|
|
9909
9909
|
})(), D1 = (e) => e.nodeName.toLowerCase() === "span", gh = (e, n) => Oe(e) && (Bc(n, e) || n.isInline(e.nodeName.toLowerCase())), hm = (e, n, r) => {
|
|
9910
|
-
const l = new
|
|
9910
|
+
const l = new rl(e, n).prev(!1), d = new rl(e, n).next(!1), h = mt(l) || gh(l, r), C = mt(d) || gh(d, r);
|
|
9911
9911
|
return h && C;
|
|
9912
9912
|
}, Fc = (e) => D1(e) && e.getAttribute("data-mce-type") === "bookmark", qd = (e, n, r) => On(e) && e.data.length > 0 && hm(e, n, r), xE = (e) => eo(e) ? e.childNodes.length > 0 : !1, Rl = (e) => wi(e) || fp(e), Ny = (e, n, r, l) => {
|
|
9913
9913
|
var d;
|
|
@@ -10227,8 +10227,8 @@ var X6e = [
|
|
|
10227
10227
|
if (Yi)
|
|
10228
10228
|
return $o(Yi, /[, ]/, $o(Yi.toUpperCase(), /[, ]/));
|
|
10229
10229
|
{
|
|
10230
|
-
let
|
|
10231
|
-
return
|
|
10230
|
+
let gl = Os[Po];
|
|
10231
|
+
return gl || (gl = By(qs, Qa), Os[Po] = gl), gl;
|
|
10232
10232
|
}
|
|
10233
10233
|
}, D = (n = e.schema) !== null && n !== void 0 ? n : "html5", F = _b(D);
|
|
10234
10234
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
@@ -10238,12 +10238,12 @@ var X6e = [
|
|
|
10238
10238
|
});
|
|
10239
10239
|
const xn = (Po) => {
|
|
10240
10240
|
const qs = ne.from(r["@"]), Qa = /[*?+]/;
|
|
10241
|
-
q(Ry(qs, Po ?? ""), ({ name: Yi, element:
|
|
10242
|
-
if ($i && (r[$i] =
|
|
10243
|
-
const Ba =
|
|
10241
|
+
q(Ry(qs, Po ?? ""), ({ name: Yi, element: gl, aliasName: $i }) => {
|
|
10242
|
+
if ($i && (r[$i] = gl), Qa.test(Yi)) {
|
|
10243
|
+
const Ba = gl;
|
|
10244
10244
|
Ba.pattern = xb(Yi), d.push(Ba);
|
|
10245
10245
|
} else
|
|
10246
|
-
r[Yi] =
|
|
10246
|
+
r[Yi] = gl;
|
|
10247
10247
|
});
|
|
10248
10248
|
}, lo = (Po) => {
|
|
10249
10249
|
d = [], q(ko(r), (qs) => {
|
|
@@ -10252,8 +10252,8 @@ var X6e = [
|
|
|
10252
10252
|
}, No = (Po, qs) => {
|
|
10253
10253
|
var Qa, Yi;
|
|
10254
10254
|
delete Os.text_block_elements, delete Os.block_elements;
|
|
10255
|
-
const
|
|
10256
|
-
if (l[Po] = $i ? l[$i] : {}, h[Po] = $i ?? Po, Ct[Po.toUpperCase()] = {}, Ct[Po] = {},
|
|
10255
|
+
const gl = qs.extends ? !lu(qs.extends) : !1, $i = qs.extends;
|
|
10256
|
+
if (l[Po] = $i ? l[$i] : {}, h[Po] = $i ?? Po, Ct[Po.toUpperCase()] = {}, Ct[Po] = {}, gl || (Ln[Po.toUpperCase()] = {}, Ln[Po] = {}), $i && !r[Po] && r[$i]) {
|
|
10257
10257
|
const Ba = CO(r[$i]);
|
|
10258
10258
|
delete Ba.removeEmptyAttrs, delete Ba.removeEmpty, r[Po] = Ba;
|
|
10259
10259
|
} else
|
|
@@ -10301,8 +10301,8 @@ var X6e = [
|
|
|
10301
10301
|
fe(Po) ? bn(Po, (qs, Qa) => No(Qa, qs)) : H(Po) && Ts(Po);
|
|
10302
10302
|
}, dr = (Po) => {
|
|
10303
10303
|
q(yp(Po ?? ""), ({ operation: qs, name: Qa, validChildren: Yi }) => {
|
|
10304
|
-
const
|
|
10305
|
-
qs === "remove" ? delete
|
|
10304
|
+
const gl = qs === "replace" ? { "#comment": {} } : l[Qa], $i = (Fa) => {
|
|
10305
|
+
qs === "remove" ? delete gl[Fa] : gl[Fa] = {};
|
|
10306
10306
|
}, Ba = (Fa) => {
|
|
10307
10307
|
vh(D, Fa).each((Zc) => {
|
|
10308
10308
|
q(Zc, $i);
|
|
@@ -10310,7 +10310,7 @@ var X6e = [
|
|
|
10310
10310
|
};
|
|
10311
10311
|
q(Yi, ({ preset: Fa, name: Zc }) => {
|
|
10312
10312
|
Fa ? Ba(Zc) : $i(Zc);
|
|
10313
|
-
}), l[Qa] =
|
|
10313
|
+
}), l[Qa] = gl;
|
|
10314
10314
|
});
|
|
10315
10315
|
}, Tr = (Po) => {
|
|
10316
10316
|
const qs = r[Po];
|
|
@@ -10359,7 +10359,7 @@ var X6e = [
|
|
|
10359
10359
|
}), e.invalid_elements && Lc(Py(e.invalid_elements), (Po) => {
|
|
10360
10360
|
r[Po] && delete r[Po];
|
|
10361
10361
|
}), Tr("span") || xn("span[!data-mce-type|*]");
|
|
10362
|
-
}, El = ve(J), Tl = ve(oe), Kn = ve(ie), Mo = ve(ze), ir = ve(Ln), co = ve(yn), Sn = ve(Zn), oo = ve(Object.seal(Te)),
|
|
10362
|
+
}, El = ve(J), Tl = ve(oe), Kn = ve(ie), Mo = ve(ze), ir = ve(Ln), co = ve(yn), Sn = ve(Zn), oo = ve(Object.seal(Te)), ts = ve(Pe), Fr = ve(Ct), Ls = ve(Dt), zl = ve(xe), od = ve(nn), jm = ve(Kt), Iu = ve(Object.seal(C)), nm = (Po, qs) => {
|
|
10363
10363
|
const Qa = l[Po.toLowerCase()];
|
|
10364
10364
|
return !!(Qa && Qa[qs.toLowerCase()]);
|
|
10365
10365
|
}, Md = (Po, qs) => {
|
|
@@ -10370,9 +10370,9 @@ var X6e = [
|
|
|
10370
10370
|
return !0;
|
|
10371
10371
|
const Yi = Qa.attributePatterns;
|
|
10372
10372
|
if (Yi) {
|
|
10373
|
-
let
|
|
10374
|
-
for (;
|
|
10375
|
-
if (Yi[
|
|
10373
|
+
let gl = Yi.length;
|
|
10374
|
+
for (; gl--; )
|
|
10375
|
+
if (Yi[gl].pattern.test(qs))
|
|
10376
10376
|
return !0;
|
|
10377
10377
|
}
|
|
10378
10378
|
} else
|
|
@@ -10392,7 +10392,7 @@ var X6e = [
|
|
|
10392
10392
|
getTextInlineElements: Sn,
|
|
10393
10393
|
getBoolAttrs: Mo,
|
|
10394
10394
|
getElementRule: Tr,
|
|
10395
|
-
getSelfClosingElements:
|
|
10395
|
+
getSelfClosingElements: ts,
|
|
10396
10396
|
getNonEmptyElements: Fr,
|
|
10397
10397
|
getMoveCaretBeforeOnEnterElements: Ls,
|
|
10398
10398
|
getWhitespaceElements: zl,
|
|
@@ -10877,7 +10877,7 @@ var X6e = [
|
|
|
10877
10877
|
}, Sn = (Ft, Wt, Gn, zn, Zo) => Mo(Ft, (tr) => {
|
|
10878
10878
|
const ei = H(Wt) ? e.createElement(Wt) : Wt;
|
|
10879
10879
|
return Oe(Gn) && ir(ei, Gn), zn && (!H(zn) && zn.nodeType ? ei.appendChild(zn) : H(zn) && co(ei, zn)), Zo ? ei : tr.appendChild(ei);
|
|
10880
|
-
}), oo = (Ft, Wt, Gn) => Sn(e.createElement(Ft), Ft, Wt, Gn, !0),
|
|
10880
|
+
}), oo = (Ft, Wt, Gn) => Sn(e.createElement(Ft), Ft, Wt, Gn, !0), ts = wm.decode, Fr = wm.encodeAllRaw, Ls = (Ft, Wt, Gn = "") => {
|
|
10881
10881
|
let zn = "<" + Ft;
|
|
10882
10882
|
for (const Zo in Wt)
|
|
10883
10883
|
Ks(Wt, Zo) && (zn += " " + Zo + '="' + Fr(Wt[Zo]) + '"');
|
|
@@ -10938,7 +10938,7 @@ var X6e = [
|
|
|
10938
10938
|
}, Yi = (Ft) => {
|
|
10939
10939
|
const Wt = ze(Ft);
|
|
10940
10940
|
return Oe(Wt) && Aa(Kl(Wt, "display"), "none");
|
|
10941
|
-
},
|
|
10941
|
+
}, gl = (Ft) => (Ft || "mce_") + h++, $i = (Ft) => {
|
|
10942
10942
|
const Wt = ze(Ft);
|
|
10943
10943
|
return Oe(Wt) ? eo(Wt.dom) ? Wt.dom.outerHTML : Ic(Wt) : "";
|
|
10944
10944
|
}, Ba = (Ft, Wt) => {
|
|
@@ -11076,11 +11076,11 @@ var X6e = [
|
|
|
11076
11076
|
show: qs,
|
|
11077
11077
|
hide: Qa,
|
|
11078
11078
|
isHidden: Yi,
|
|
11079
|
-
uniqueId:
|
|
11079
|
+
uniqueId: gl,
|
|
11080
11080
|
setHTML: co,
|
|
11081
11081
|
getOuterHTML: $i,
|
|
11082
11082
|
setOuterHTML: Ba,
|
|
11083
|
-
decode:
|
|
11083
|
+
decode: ts,
|
|
11084
11084
|
encode: Fr,
|
|
11085
11085
|
insertAfter: Fa,
|
|
11086
11086
|
replace: Zc,
|
|
@@ -11322,10 +11322,10 @@ var X6e = [
|
|
|
11322
11322
|
};
|
|
11323
11323
|
})));
|
|
11324
11324
|
}, NE = (e) => hs(e) && ng(e, Nb()), Uy = (e, n) => li(e, "data-mce-bogus") || kO(e, '[data-mce-bogus="all"]', Mb(n)), Ch = (e, n) => {
|
|
11325
|
-
const r = tt.fromDom(e.getBody()), l =
|
|
11325
|
+
const r = tt.fromDom(e.getBody()), l = sl(r, `[${wh()}="${n}"]`);
|
|
11326
11326
|
return Be(l, (d) => !Uy(d, r));
|
|
11327
11327
|
}, L1 = (e, n) => {
|
|
11328
|
-
const r = tt.fromDom(e.getBody()), l =
|
|
11328
|
+
const r = tt.fromDom(e.getBody()), l = sl(r, `[${Sp()}="${n}"]`), d = {};
|
|
11329
11329
|
return q(l, (h) => {
|
|
11330
11330
|
if (!Uy(h, r)) {
|
|
11331
11331
|
const C = Ei(h, wh()), k = Is(d, C).getOr([]);
|
|
@@ -11433,7 +11433,7 @@ var X6e = [
|
|
|
11433
11433
|
const l = Ti(e);
|
|
11434
11434
|
return Ud(r, l), _r(e), r;
|
|
11435
11435
|
}, H1 = (e, n, r = Ie) => {
|
|
11436
|
-
const l = new
|
|
11436
|
+
const l = new rl(e, n), d = (h) => {
|
|
11437
11437
|
let C;
|
|
11438
11438
|
do
|
|
11439
11439
|
C = l[h]();
|
|
@@ -11543,7 +11543,7 @@ var X6e = [
|
|
|
11543
11543
|
n.push(tt.fromDom(r)), r = r.lastChild;
|
|
11544
11544
|
return n;
|
|
11545
11545
|
}, xh = (e) => {
|
|
11546
|
-
const n =
|
|
11546
|
+
const n = sl(e, "br"), r = Be(VE(e).slice(-1), $a);
|
|
11547
11547
|
n.length === r.length && q(r, _r);
|
|
11548
11548
|
}, kp = () => {
|
|
11549
11549
|
const e = tt.fromTag("br");
|
|
@@ -11551,12 +11551,12 @@ var X6e = [
|
|
|
11551
11551
|
}, Ap = (e) => {
|
|
11552
11552
|
Vu(e), qr(e, kp());
|
|
11553
11553
|
}, NO = (e, n) => {
|
|
11554
|
-
|
|
11554
|
+
ol(e).each((r) => {
|
|
11555
11555
|
md(r).each((l) => {
|
|
11556
11556
|
n.isBlock(Fe(e)) && $a(r) && n.isBlock(Fe(l)) && _r(r);
|
|
11557
11557
|
});
|
|
11558
11558
|
});
|
|
11559
|
-
}, Hi = k1, qy = yb, Gu =
|
|
11559
|
+
}, Hi = k1, qy = yb, Gu = al, CC = (e) => e.insertContent(Hi, { preserve_zwsp: !0 }), zE = eo, Op = On, _h = (e) => (Op(e) && (e = e.parentNode), zE(e) && e.hasAttribute("data-mce-caret")), Lf = (e) => Op(e) && qy(e.data), xd = (e) => _h(e) || Lf(e), SC = (e) => e.firstChild !== e.lastChild || !Xs(e.firstChild), Fb = (e, n) => {
|
|
11560
11560
|
var r;
|
|
11561
11561
|
const d = ((r = e.ownerDocument) !== null && r !== void 0 ? r : document).createTextNode(Hi), h = e.parentNode;
|
|
11562
11562
|
if (n) {
|
|
@@ -12135,8 +12135,8 @@ Required: ` + n.join(", "));
|
|
|
12135
12135
|
}));
|
|
12136
12136
|
}
|
|
12137
12137
|
}
|
|
12138
|
-
}, Dp = (e) => Be(e, uT),
|
|
12139
|
-
inlinePatterns:
|
|
12138
|
+
}, Dp = (e) => Be(e, uT), il = (e) => Be(e, K1), Tm = (e, n) => ({
|
|
12139
|
+
inlinePatterns: il(e),
|
|
12140
12140
|
blockPatterns: Dp(e),
|
|
12141
12141
|
dynamicPatternsLookup: n
|
|
12142
12142
|
}), X1 = (e, n) => ({
|
|
@@ -12204,7 +12204,7 @@ Required: ` + n.join(", "));
|
|
|
12204
12204
|
}), mi = (e, n, r) => e.dispatch("PastePostProcess", {
|
|
12205
12205
|
node: n,
|
|
12206
12206
|
internal: r
|
|
12207
|
-
}), Vi = (e, n) => e.dispatch("PastePlainTextToggle", { state: n }), Ai = (e, n) => e.dispatch("EditableRootStateChange", { state: n }), zC = (e, n) => e.dispatch("DisabledStateChange", { state: n }), Wb = Ga().deviceType, Zb = Wb.isTouch(),
|
|
12207
|
+
}), Vi = (e, n) => e.dispatch("PastePlainTextToggle", { state: n }), Ai = (e, n) => e.dispatch("EditableRootStateChange", { state: n }), zC = (e, n) => e.dispatch("DisabledStateChange", { state: n }), Wb = Ga().deviceType, Zb = Wb.isTouch(), ll = da.DOM, bT = (e) => {
|
|
12208
12208
|
const n = e.indexOf("=") > 0 ? e.split(/[;,](?![^=;,]*(?:[;,]|$))/) : e.split(",");
|
|
12209
12209
|
return je(n, (r, l) => {
|
|
12210
12210
|
const d = l.split("="), h = d[0], C = d.length > 1 ? d[1] : h;
|
|
@@ -12796,7 +12796,7 @@ Required: ` + n.join(", "));
|
|
|
12796
12796
|
default: Qc.isRtl() ? "rtl" : void 0
|
|
12797
12797
|
}), n("placeholder", {
|
|
12798
12798
|
processor: "string",
|
|
12799
|
-
default:
|
|
12799
|
+
default: ll.getAttrib(e.getElement(), "placeholder")
|
|
12800
12800
|
});
|
|
12801
12801
|
});
|
|
12802
12802
|
}, o$ = fo("iframe_attrs"), s$ = fo("doctype"), ou = fo("document_base_url"), lw = fo("body_id"), yT = fo("body_class"), bc = fo("content_security_policy"), km = fo("br_in_pre"), zi = fo("forced_root_block"), Ed = fo("forced_root_block_attrs"), yc = fo("newline_behavior"), jC = fo("br_newline_selector"), cw = fo("no_newline_selector"), WC = fo("keep_styles"), wT = fo("end_container_on_empty_block"), uw = fo("automatic_uploads"), CT = fo("images_reuse_filename"), ST = fo("images_replace_blob_uris"), xT = fo("icons"), r$ = fo("icons_url"), a$ = fo("images_upload_url"), i$ = fo("images_upload_base_path"), ZC = fo("images_upload_credentials"), dw = fo("images_upload_handler"), _T = fo("content_css_cors"), Gb = fo("referrer_policy"), J1 = fo("language"), Np = fo("language_url"), fw = fo("indent_use_margin"), l$ = fo("indentation"), ET = fo("content_css"), c$ = fo("content_style"), TT = fo("font_css"), kT = fo("directionality"), zc = fo("inline_boundaries_selector"), mw = fo("object_resizing"), AT = fo("resize_img_proportional"), GC = fo("placeholder"), qb = fo("event_root"), u$ = fo("service_message"), Q1 = fo("theme"), d$ = fo("theme_url"), qC = fo("model"), f$ = fo("model_url"), Yb = fo("inline_boundaries"), m$ = fo("formats"), g$ = fo("preview_styles"), gw = fo("format_empty_lines"), OT = fo("format_noneditable_selector"), YC = fo("custom_ui_selector"), Kb = fo("inline"), $T = fo("hidden_input"), KC = fo("submit_patch"), XC = fo("add_form_submit_trigger"), JC = fo("add_unload_trigger"), Nh = fo("custom_undo_redo_levels"), DT = fo("disable_nodechange"), QC = fo("readonly"), NT = fo("editable_root"), MT = fo("content_css_cors"), Uc = fo("plugins"), pw = fo("external_plugins"), hw = fo("block_unsupported_drop"), eS = fo("visual"), tS = fo("visual_table_class"), Am = fo("visual_anchor_class"), vw = fo("iframe_aria_text"), p$ = fo("setup"), Mp = fo("init_instance_callback"), bw = fo("urlconverter_callback"), jc = fo("auto_focus"), PI = fo("browser_spellcheck"), ev = fo("protect"), h$ = fo("paste_block_drop"), Xb = fo("paste_data_images"), v$ = fo("paste_preprocess"), b$ = fo("paste_postprocess"), RT = fo("newdocument_content"), IT = fo("paste_webkit_styles"), yw = fo("paste_remove_styles_if_webkit"), y$ = fo("paste_merge_formats"), w$ = fo("smart_paste"), Jb = fo("paste_as_text"), nS = fo("paste_tab_spaces"), oS = fo("allow_html_data_urls"), PT = fo("text_patterns"), BT = fo("text_patterns_lookup"), ww = fo("noneditable_class"), BI = fo("editable_class"), tv = fo("noneditable_regexp"), zj = fo("preserve_cdata"), Qb = fo("highlight_on_focus"), e0 = fo("xss_sanitization"), Cw = fo("init_content_sync"), C$ = (e) => e.options.isSet("text_patterns_lookup"), FT = (e) => sn.explode(e.options.get("font_size_style_values")), S$ = (e) => sn.explode(e.options.get("font_size_classes")), sS = (e) => e.options.get("encoding") === "xml", rS = (e) => sn.explode(e.options.get("images_file_types")), Eg = fo("table_tab_navigation"), t0 = fo("details_initial_state"), x$ = fo("details_serialized_state"), aS = fo("sandbox_iframes"), LT = (e) => e.options.get("sandbox_iframes_exclusions"), FI = fo("convert_unsafe_embeds"), HT = fo("license_key"), iS = fo("api_key"), Rp = fo("disabled"), _$ = eo, lS = On, cS = (e) => {
|
|
@@ -12835,7 +12835,7 @@ Required: ` + n.join(", "));
|
|
|
12835
12835
|
return C > 0 && (r && (C *= -1), l.left += C, l.right += C), l;
|
|
12836
12836
|
}, ov = (e) => {
|
|
12837
12837
|
var n, r;
|
|
12838
|
-
const l =
|
|
12838
|
+
const l = sl(tt.fromDom(e), LI);
|
|
12839
12839
|
for (let d = 0; d < l.length; d++) {
|
|
12840
12840
|
const h = l[d].dom;
|
|
12841
12841
|
let C = h.previousSibling;
|
|
@@ -12897,7 +12897,7 @@ Required: ` + n.join(", "));
|
|
|
12897
12897
|
return r;
|
|
12898
12898
|
return null;
|
|
12899
12899
|
}, Tg = (e, n, r, l, d) => {
|
|
12900
|
-
const h = new
|
|
12900
|
+
const h = new rl(e, l), C = jT(e) || ZT(e);
|
|
12901
12901
|
let k;
|
|
12902
12902
|
if (Rh(n)) {
|
|
12903
12903
|
if (C && (k = Ih(h.prev.bind(h), !0), r(k)))
|
|
@@ -13177,7 +13177,7 @@ Required: ` + n.join(", "));
|
|
|
13177
13177
|
}, I$ = (e) => Bt(e, (n) => {
|
|
13178
13178
|
const r = Hb(n);
|
|
13179
13179
|
return r ? [tt.fromDom(r)] : [];
|
|
13180
|
-
}), VI = (e) => uk(e).length > 1, dk = (e) => Be(I$(e), eu), zI = (e) =>
|
|
13180
|
+
}), VI = (e) => uk(e).length > 1, dk = (e) => Be(I$(e), eu), zI = (e) => sl(e, "td[data-mce-selected],th[data-mce-selected]"), fk = (e, n) => {
|
|
13181
13181
|
const r = zI(n);
|
|
13182
13182
|
return r.length > 0 ? r : dk(e);
|
|
13183
13183
|
}, Vh = (e) => fk(uk(e.selection.getSel()), tt.fromDom(e.getBody())), zh = (e, n) => dm(e, "table", n), Uh = (e) => {
|
|
@@ -13186,11 +13186,11 @@ Required: ` + n.join(", "));
|
|
|
13186
13186
|
}, UI = (e) => {
|
|
13187
13187
|
const n = e.endContainer, r = e.endOffset;
|
|
13188
13188
|
return On(n) ? r === n.data.length ? ne.some(tt.fromDom(n)) : ne.none() : ne.from(n.childNodes[r - 1]).map(tt.fromDom);
|
|
13189
|
-
}, yS = (e) => Yc(e).fold(ve([e]), (n) => [e].concat(yS(n))), cv = (e) =>
|
|
13189
|
+
}, yS = (e) => Yc(e).fold(ve([e]), (n) => [e].concat(yS(n))), cv = (e) => ol(e).fold(ve([e]), (n) => Fe(n) === "br" ? md(n).map((r) => [e].concat(cv(r))).getOr([]) : [e].concat(cv(n))), wS = (e, n) => la(Uh(n), UI(n), (r, l) => {
|
|
13190
13190
|
const d = Mt(yS(e), ge(js, r)), h = Mt(cv(e), ge(js, l));
|
|
13191
13191
|
return d.isSome() && h.isSome();
|
|
13192
13192
|
}).getOr(!1), CS = (e, n, r, l) => {
|
|
13193
|
-
const d = r, h = new
|
|
13193
|
+
const d = r, h = new rl(r, d), C = Fs(e.schema.getMoveCaretBeforeOnEnterElements(), (D, F) => !Q([
|
|
13194
13194
|
"td",
|
|
13195
13195
|
"th",
|
|
13196
13196
|
"table"
|
|
@@ -13238,10 +13238,10 @@ Required: ` + n.join(", "));
|
|
|
13238
13238
|
let J;
|
|
13239
13239
|
if (C < D.length) {
|
|
13240
13240
|
const oe = D[C];
|
|
13241
|
-
J = new
|
|
13241
|
+
J = new rl(oe, (r = e.getParent(oe, e.isBlock)) !== null && r !== void 0 ? r : F);
|
|
13242
13242
|
} else {
|
|
13243
13243
|
const oe = D[D.length - 1];
|
|
13244
|
-
J = new
|
|
13244
|
+
J = new rl(oe, (l = e.getParent(oe, e.isBlock)) !== null && l !== void 0 ? l : F), J.next(!0);
|
|
13245
13245
|
}
|
|
13246
13246
|
for (let oe = J.current(); oe; oe = J.next()) {
|
|
13247
13247
|
if (e.getContentEditable(oe) === "false")
|
|
@@ -13265,12 +13265,12 @@ Required: ` + n.join(", "));
|
|
|
13265
13265
|
return _u(r);
|
|
13266
13266
|
} else
|
|
13267
13267
|
return !1;
|
|
13268
|
-
}, to = (e) => Oe(e) && On(e) && e.length === 0,
|
|
13268
|
+
}, to = (e) => Oe(e) && On(e) && e.length === 0, cl = (e, n) => {
|
|
13269
13269
|
const r = "[data-mce-cef-wrappable]", l = OT(e), d = us(l) ? r : `${r},${l}`;
|
|
13270
13270
|
return $l(tt.fromDom(n), d);
|
|
13271
13271
|
}, Mw = (e, n) => {
|
|
13272
13272
|
const r = e.dom;
|
|
13273
|
-
return xS(n) && r.getContentEditable(n) === "false" &&
|
|
13273
|
+
return xS(n) && r.getContentEditable(n) === "false" && cl(e, n) && r.select('[contenteditable="true"]', n).length === 0;
|
|
13274
13274
|
}, ni = (e, n) => ce(e) ? e(n) : (Oe(n) && (e = e.replace(/%(\w+)/g, (r, l) => n[l] || r)), e), Ju = (e, n) => (e = e || "", n = n || "", e = "" + (e.nodeName || e), n = "" + (n.nodeName || n), e.toLowerCase() === n.toLowerCase()), Rw = (e, n) => {
|
|
13275
13275
|
if (lt(e))
|
|
13276
13276
|
return null;
|
|
@@ -13450,7 +13450,7 @@ Required: ` + n.join(", "));
|
|
|
13450
13450
|
"div.tiny-pageembed",
|
|
13451
13451
|
"div.mce-toc",
|
|
13452
13452
|
"div[data-mce-toc]"
|
|
13453
|
-
], H$ = (e) => Sr(e) && V1(e) === Hi, $S = (e, n, r, l) =>
|
|
13453
|
+
], H$ = (e) => Sr(e) && V1(e) === Hi, $S = (e, n, r, l) => nl(n).fold(() => "skipping", (d) => l === "br" || H$(n) ? "valid" : NE(n) ? "existing" : Xu(n.dom) ? "caret" : ae(OS, (h) => $l(n, h)) ? "valid-block" : !Hp(e, r, l) || !Hp(e, Fe(d), r) ? "invalid-child" : "valid"), V$ = (e, n) => {
|
|
13454
13454
|
const r = $g(e.dom, n, [{ inline: "span" }]);
|
|
13455
13455
|
n.setStart(r.startContainer, r.startOffset), n.setEnd(r.endContainer, r.endOffset), e.selection.setRng(n);
|
|
13456
13456
|
}, Fw = (e, n, r, l, d, h) => {
|
|
@@ -13795,8 +13795,8 @@ Required: ` + n.join(", "));
|
|
|
13795
13795
|
let C, k, D, F, J, oe, ie, xe, Pe, Te, ze, at, Ct, Dt, Vt;
|
|
13796
13796
|
const yn = (Sn) => Oe(Sn) && (O1(Sn) || r.is(Sn, "figure.image")), Ln = (Sn) => Li(Sn) || r.hasClass(Sn, "mce-preview-object"), Zn = (Sn, oo) => {
|
|
13797
13797
|
if (wc(Sn)) {
|
|
13798
|
-
const
|
|
13799
|
-
return yn(Sn.target) && !Sk(
|
|
13798
|
+
const ts = Sn.touches[0];
|
|
13799
|
+
return yn(Sn.target) && !Sk(ts.clientX, ts.clientY, oo);
|
|
13800
13800
|
} else
|
|
13801
13801
|
return yn(Sn.target) && !Sk(Sn.clientX, Sn.clientY, oo);
|
|
13802
13802
|
}, nn = (Sn) => {
|
|
@@ -13819,38 +13819,38 @@ Required: ` + n.join(", "));
|
|
|
13819
13819
|
}), Ls;
|
|
13820
13820
|
} else
|
|
13821
13821
|
return oo.cloneNode(!0);
|
|
13822
|
-
}, No = (Sn, oo,
|
|
13823
|
-
if (Oe(
|
|
13822
|
+
}, No = (Sn, oo, ts) => {
|
|
13823
|
+
if (Oe(ts)) {
|
|
13824
13824
|
const Fr = Kt(Sn);
|
|
13825
13825
|
q(Fr, (Ls) => {
|
|
13826
|
-
Ls.style[oo] || !n.schema.isValid(Ls.nodeName.toLowerCase(), oo) ? r.setStyle(Ls, oo,
|
|
13826
|
+
Ls.style[oo] || !n.schema.isValid(Ls.nodeName.toLowerCase(), oo) ? r.setStyle(Ls, oo, ts) : r.setAttrib(Ls, oo, "" + ts);
|
|
13827
13827
|
});
|
|
13828
13828
|
}
|
|
13829
|
-
}, Ts = (Sn, oo,
|
|
13830
|
-
No(Sn, "width", oo), No(Sn, "height",
|
|
13829
|
+
}, Ts = (Sn, oo, ts) => {
|
|
13830
|
+
No(Sn, "width", oo), No(Sn, "height", ts);
|
|
13831
13831
|
}, $s = (Sn) => {
|
|
13832
|
-
let oo,
|
|
13833
|
-
oo = Sn.screenX - oe,
|
|
13832
|
+
let oo, ts, Fr, Ls, zl;
|
|
13833
|
+
oo = Sn.screenX - oe, ts = Sn.screenY - ie, at = oo * F[2] + xe, Ct = ts * F[3] + Pe, at = at < 5 ? 5 : at, Ct = Ct < 5 ? 5 : Ct, (yn(C) || Ln(C)) && AT(n) !== !1 ? Fr = !pn.modifierPressed(Sn) : Fr = pn.modifierPressed(Sn), Fr && (vr(oo) > vr(ts) ? (Ct = To(at * Te), at = To(Ct / Te)) : (at = To(Ct / Te), Ct = To(at * Te))), Ts(k, at, Ct), Ls = F.startPos.x + oo, zl = F.startPos.y + ts, Ls = Ls > 0 ? Ls : 0, zl = zl > 0 ? zl : 0, r.setStyles(D, {
|
|
13834
13834
|
left: Ls,
|
|
13835
13835
|
top: zl,
|
|
13836
13836
|
display: "block"
|
|
13837
|
-
}), D.innerHTML = at + " × " + Ct, oo = h.scrollWidth - Dt,
|
|
13837
|
+
}), D.innerHTML = at + " × " + Ct, oo = h.scrollWidth - Dt, ts = h.scrollHeight - Vt, oo + ts !== 0 && r.setStyles(D, {
|
|
13838
13838
|
left: Ls - oo,
|
|
13839
|
-
top: zl -
|
|
13839
|
+
top: zl - ts
|
|
13840
13840
|
}), ze || (gT(n, C, xe, Pe, "corner-" + F.name), ze = !0);
|
|
13841
13841
|
}, dr = () => {
|
|
13842
13842
|
const Sn = ze;
|
|
13843
13843
|
ze = !1, Sn && (No(C, "width", at), No(C, "height", Ct)), r.unbind(l, "mousemove", $s), r.unbind(l, "mouseup", dr), d !== l && (r.unbind(d, "mousemove", $s), r.unbind(d, "mouseup", dr)), r.remove(k), r.remove(D), r.remove(J), Tr(C), Sn && (pT(n, C, at, Ct, "corner-" + F.name), r.setAttrib(C, "style", r.getAttrib(C, "style"))), n.nodeChanged();
|
|
13844
13844
|
}, Tr = (Sn) => {
|
|
13845
13845
|
Mo();
|
|
13846
|
-
const oo = r.getPos(Sn, h),
|
|
13846
|
+
const oo = r.getPos(Sn, h), ts = oo.x, Fr = oo.y, Ls = Sn.getBoundingClientRect(), zl = Ls.width || Ls.right - Ls.left, od = Ls.height || Ls.bottom - Ls.top;
|
|
13847
13847
|
C !== Sn && (El(), C = Sn, at = Ct = 0);
|
|
13848
13848
|
const jm = n.dispatch("ObjectSelected", { target: Sn });
|
|
13849
13849
|
xn(Sn) && !jm.isDefaultPrevented() ? bn(zr, (Iu, nm) => {
|
|
13850
13850
|
const Md = (cu) => {
|
|
13851
13851
|
const om = Kt(C)[0];
|
|
13852
13852
|
oe = cu.screenX, ie = cu.screenY, xe = om.clientWidth, Pe = om.clientHeight, Te = Pe / xe, F = Iu, F.name = nm, F.startPos = {
|
|
13853
|
-
x: zl * Iu[0] +
|
|
13853
|
+
x: zl * Iu[0] + ts,
|
|
13854
13854
|
y: od * Iu[1] + Fr
|
|
13855
13855
|
}, Dt = h.scrollWidth, Vt = h.scrollHeight, J = r.add(h, "div", {
|
|
13856
13856
|
class: "mce-resize-backdrop",
|
|
@@ -13862,7 +13862,7 @@ Required: ` + n.join(", "));
|
|
|
13862
13862
|
width: "100%",
|
|
13863
13863
|
height: "100%"
|
|
13864
13864
|
}), k = lo(r, C), r.addClass(k, "mce-clonedresizable"), r.setAttrib(k, "data-mce-bogus", "all"), k.contentEditable = "false", r.setStyles(k, {
|
|
13865
|
-
left:
|
|
13865
|
+
left: ts,
|
|
13866
13866
|
top: Fr,
|
|
13867
13867
|
margin: 0
|
|
13868
13868
|
}), Ts(k, zl, od), k.removeAttribute(io), h.appendChild(k), r.bind(l, "mousemove", $s), r.bind(l, "mouseup", dr), d !== l && (r.bind(d, "mousemove", $s), r.bind(d, "mouseup", dr)), D = r.add(h, "div", {
|
|
@@ -13880,26 +13880,26 @@ Required: ` + n.join(", "));
|
|
|
13880
13880
|
}), r.bind(lu, "mousedown", (cu) => {
|
|
13881
13881
|
cu.stopImmediatePropagation(), cu.preventDefault(), Md(cu);
|
|
13882
13882
|
}), Iu.elm = lu, r.setStyles(lu, {
|
|
13883
|
-
left: zl * Iu[0] +
|
|
13883
|
+
left: zl * Iu[0] + ts - lu.offsetWidth / 2,
|
|
13884
13884
|
top: od * Iu[1] + Fr - lu.offsetHeight / 2
|
|
13885
13885
|
});
|
|
13886
13886
|
}) : El(!1);
|
|
13887
13887
|
}, pi = F1(Tr, 0), El = (Sn = !0) => {
|
|
13888
|
-
pi.cancel(), Mo(), C && Sn && C.removeAttribute(io), bn(zr, (oo,
|
|
13889
|
-
const Fr = r.get("mceResizeHandle" +
|
|
13888
|
+
pi.cancel(), Mo(), C && Sn && C.removeAttribute(io), bn(zr, (oo, ts) => {
|
|
13889
|
+
const Fr = r.get("mceResizeHandle" + ts);
|
|
13890
13890
|
Fr && (r.unbind(Fr), r.remove(Fr));
|
|
13891
13891
|
});
|
|
13892
13892
|
}, Tl = (Sn, oo) => r.isChildOf(Sn, oo), Kn = (Sn) => {
|
|
13893
13893
|
if (ze || n.removed || n.composing)
|
|
13894
13894
|
return;
|
|
13895
|
-
const oo = Sn.type === "mousedown" ? Sn.target : e.getNode(),
|
|
13895
|
+
const oo = Sn.type === "mousedown" ? Sn.target : e.getNode(), ts = xo(tt.fromDom(oo), hr).map((Ls) => Ls.dom).filter((Ls) => r.isEditable(Ls.parentElement) || Ls.nodeName === "IMG" && r.isEditable(Ls)).getOrUndefined(), Fr = Oe(ts) ? r.getAttrib(ts, io, "1") : "1";
|
|
13896
13896
|
if (q(r.select(`img[${io}],hr[${io}]`), (Ls) => {
|
|
13897
13897
|
Ls.removeAttribute(io);
|
|
13898
|
-
}), Oe(
|
|
13898
|
+
}), Oe(ts) && Tl(ts, h) && Fn(n)) {
|
|
13899
13899
|
ir();
|
|
13900
13900
|
const Ls = e.getStart(!0);
|
|
13901
|
-
if (Tl(Ls,
|
|
13902
|
-
r.setAttrib(
|
|
13901
|
+
if (Tl(Ls, ts) && Tl(e.getEnd(!0), ts)) {
|
|
13902
|
+
r.setAttrib(ts, io, Fr), pi.throttle(ts);
|
|
13903
13903
|
return;
|
|
13904
13904
|
}
|
|
13905
13905
|
}
|
|
@@ -14048,7 +14048,7 @@ Required: ` + n.join(", "));
|
|
|
14048
14048
|
}, Nk = (e, n, r) => qI(e, n, r) !== null, t5 = (e, n, r) => Nk(e, n, (l) => l.nodeName === r), n5 = (e, n) => xd(e) && !Nk(e, n, Xu), o5 = (e, n, r) => {
|
|
14049
14049
|
const l = n.parentNode;
|
|
14050
14050
|
if (l) {
|
|
14051
|
-
const d = new
|
|
14051
|
+
const d = new rl(n, e.getParent(l, e.isBlock) || e.getRoot());
|
|
14052
14052
|
let h;
|
|
14053
14053
|
for (; h = d[r ? "prev" : "next"](); )
|
|
14054
14054
|
if (Xs(h))
|
|
@@ -14074,7 +14074,7 @@ Required: ` + n.join(", "));
|
|
|
14074
14074
|
const J = e.getParent(k, e.isBlock) || h;
|
|
14075
14075
|
if (l && Xs(d) && n && e.isEmpty(J))
|
|
14076
14076
|
return ne.some(Qt(k, e.nodeIndex(d)));
|
|
14077
|
-
const oe = new
|
|
14077
|
+
const oe = new rl(d, J);
|
|
14078
14078
|
for (; F = oe[l ? "prev" : "next"](); ) {
|
|
14079
14079
|
if (e.getContentEditableParent(F) === "false" || n5(F, h))
|
|
14080
14080
|
return ne.none();
|
|
@@ -14100,7 +14100,7 @@ Required: ` + n.join(", "));
|
|
|
14100
14100
|
return ne.none();
|
|
14101
14101
|
if (k.hasChildNodes() && !bd(k)) {
|
|
14102
14102
|
h = k;
|
|
14103
|
-
const ie = new
|
|
14103
|
+
const ie = new rl(k, d);
|
|
14104
14104
|
do {
|
|
14105
14105
|
if (Js(h) || xd(h)) {
|
|
14106
14106
|
C = !1;
|
|
@@ -14316,7 +14316,7 @@ Required: ` + n.join(", "));
|
|
|
14316
14316
|
(e.inline ? Kj : Xj)(e, n, r);
|
|
14317
14317
|
}, dP = (e, n) => n.collapsed ? e.isEditable(n.startContainer) : e.isEditable(n.startContainer) && e.isEditable(n.endContainer), fP = (e, n, r, l, d) => {
|
|
14318
14318
|
const h = r ? n.startContainer : n.endContainer, C = r ? n.startOffset : n.endOffset;
|
|
14319
|
-
return ne.from(h).map(tt.fromDom).map((k) => !l || !n.collapsed ? gd(k, d(k, C)).getOr(k) : k).bind((k) => hs(k) ? ne.some(k) :
|
|
14319
|
+
return ne.from(h).map(tt.fromDom).map((k) => !l || !n.collapsed ? gd(k, d(k, C)).getOr(k) : k).bind((k) => hs(k) ? ne.some(k) : nl(k).filter(hs)).map((k) => k.dom).getOr(e);
|
|
14320
14320
|
}, mP = (e, n, r = !1) => fP(e, n, !0, r, (l, d) => Math.min(Vd(l), d)), gP = (e, n, r = !1) => fP(e, n, !1, r, (l, d) => d > 0 ? d - 1 : d), XS = (e, n) => {
|
|
14321
14321
|
const r = e;
|
|
14322
14322
|
for (; e && On(e) && e.length === 0; )
|
|
@@ -14335,7 +14335,7 @@ Required: ` + n.join(", "));
|
|
|
14335
14335
|
const d = [], h = e.getRoot(), C = e.getParent(r || mP(h, n, n.collapsed), e.isBlock), k = e.getParent(l || gP(h, n, n.collapsed), e.isBlock);
|
|
14336
14336
|
if (C && C !== h && d.push(C), C && k && C !== k) {
|
|
14337
14337
|
let D;
|
|
14338
|
-
const F = new
|
|
14338
|
+
const F = new rl(C, h);
|
|
14339
14339
|
for (; (D = F.next()) && D !== k; )
|
|
14340
14340
|
e.isBlock(D) && d.push(D);
|
|
14341
14341
|
}
|
|
@@ -14555,12 +14555,12 @@ Required: ` + n.join(", "));
|
|
|
14555
14555
|
h(l) && (d || (l = e.cloneNode(!0), d = !0), C(l));
|
|
14556
14556
|
}), l;
|
|
14557
14557
|
}, kP = (e) => {
|
|
14558
|
-
const n =
|
|
14558
|
+
const n = sl(e, "[data-mce-bogus]");
|
|
14559
14559
|
q(n, (r) => {
|
|
14560
14560
|
Ei(r, "data-mce-bogus") === "all" ? _r(r) : $a(r) ? (wl(r, tt.fromText(k1)), _r(r)) : xu(r);
|
|
14561
14561
|
});
|
|
14562
14562
|
}, AP = (e) => {
|
|
14563
|
-
const n =
|
|
14563
|
+
const n = sl(e, "input");
|
|
14564
14564
|
q(n, (r) => {
|
|
14565
14565
|
ur(r, "name");
|
|
14566
14566
|
});
|
|
@@ -14810,7 +14810,7 @@ Required: ` + n.join(", "));
|
|
|
14810
14810
|
}, WP = (e, n, r) => Yw(n) ? l5(n) : l5(n) || _l(f5(e, n, r).dom, n).exists(l5), ZP = (e, n, r) => Yw(n) ? i5(n) : i5(n) || Fl(f5(e, n, r).dom, n).exists(i5), yW = (e) => Q([
|
|
14811
14811
|
"pre",
|
|
14812
14812
|
"pre-wrap"
|
|
14813
|
-
], e), zk = (e) => _w(e).bind((n) => ta(n, hs)).exists((n) => yW(Ma(n, "white-space"))), wW = (e, n) => _l(e.dom, n).isNone(), Jse = (e, n) => Fl(e.dom, n).isNone(), Qse = (e, n, r) => wW(e, n) || Jse(e, n) || zP(e, n, r) || UP(e, n, r) || Vk(e, n, r) || Yo(e, n, r), CW = (e) => Oe(e) && Js(e) && WT(e), GP = (e, n) => (r) => CW(new
|
|
14813
|
+
], e), zk = (e) => _w(e).bind((n) => ta(n, hs)).exists((n) => yW(Ma(n, "white-space"))), wW = (e, n) => _l(e.dom, n).isNone(), Jse = (e, n) => Fl(e.dom, n).isNone(), Qse = (e, n, r) => wW(e, n) || Jse(e, n) || zP(e, n, r) || UP(e, n, r) || Vk(e, n, r) || Yo(e, n, r), CW = (e) => Oe(e) && Js(e) && WT(e), GP = (e, n) => (r) => CW(new rl(r, e)[n]()), SW = (e, n) => {
|
|
14814
14814
|
const r = Fl(e.dom, n).getOr(n), l = GP(e.dom, "next");
|
|
14815
14815
|
return n.isAtEnd() && (l(n.container()) || l(r.container()));
|
|
14816
14816
|
}, xW = (e, n) => {
|
|
@@ -14898,7 +14898,7 @@ Required: ` + n.join(", "));
|
|
|
14898
14898
|
}, FW = /[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/, e8 = (e) => FW.test(e), Sv = (e, n) => $l(tt.fromDom(n), zc(e)) && !ec(e.schema, n) && e.dom.isEditable(n), x5 = (e) => {
|
|
14899
14899
|
var n;
|
|
14900
14900
|
return da.DOM.getStyle(e, "direction", !0) === "rtl" || e8((n = e.textContent) !== null && n !== void 0 ? n : "");
|
|
14901
|
-
}, t8 = (e, n, r) => Be(da.DOM.getParents(r.container(), "*", n), e),
|
|
14901
|
+
}, t8 = (e, n, r) => Be(da.DOM.getParents(r.container(), "*", n), e), ul = (e, n, r) => {
|
|
14902
14902
|
const l = t8(e, n, r);
|
|
14903
14903
|
return ne.from(l[l.length - 1]);
|
|
14904
14904
|
}, LW = (e, n, r) => {
|
|
@@ -14912,22 +14912,22 @@ Required: ` + n.join(", "));
|
|
|
14912
14912
|
e.on("beforeinput input", r, !0), e.getDoc().execCommand(n), e.off("beforeinput input", r);
|
|
14913
14913
|
}, VW = (e) => {
|
|
14914
14914
|
e.execCommand("delete");
|
|
14915
|
-
}, jk = (e) => xv(e, "Delete"), Da = (e) => xv(e, "ForwardDelete"), Wk = (e) => (n) => Aa(
|
|
14915
|
+
}, jk = (e) => xv(e, "Delete"), Da = (e) => xv(e, "ForwardDelete"), Wk = (e) => (n) => Aa(nl(n), e, js), ex = (e) => HE(e) || U1(e), Zk = (e, n) => Sa(e, n) ? ta(n, ex, Wk(e)) : ne.none(), _v = (e, n = !0) => {
|
|
14916
14916
|
e.dom.isEmpty(e.getBody()) && e.setContent("", { no_selection: !n });
|
|
14917
14917
|
}, lf = (e, n, r) => la(Oi(r), sf(r), (l, d) => {
|
|
14918
14918
|
const h = Wf(!0, l), C = Wf(!1, d), k = Wf(!1, n);
|
|
14919
14919
|
return e ? Fl(r, k).exists((D) => D.isEqual(C) && n.isEqual(h)) : _l(r, k).exists((D) => D.isEqual(h) && n.isEqual(C));
|
|
14920
|
-
}).getOr(!0), Jw = (e) => (Eo(e) ? md(e) :
|
|
14920
|
+
}).getOr(!0), Jw = (e) => (Eo(e) ? md(e) : ol(e)).bind(Jw).orThunk(() => ne.some(e)), Nr = (e, n, r, l = !0) => {
|
|
14921
14921
|
var d;
|
|
14922
14922
|
n.deleteContents();
|
|
14923
14923
|
const h = Jw(r).getOr(r), C = tt.fromDom((d = e.dom.getParent(h.dom, e.dom.isBlock)) !== null && d !== void 0 ? d : r.dom);
|
|
14924
14924
|
if (C.dom === e.getBody() ? _v(e, l) : kt(e.schema, C, { checkRootAsContent: !1 }) && (Ap(C), l && e.selection.setCursorLocation(C.dom, 0)), !js(r, C)) {
|
|
14925
|
-
const k = Aa(
|
|
14925
|
+
const k = Aa(nl(C), r) ? [] : fd(C);
|
|
14926
14926
|
q(k.concat(Ti(r)), (D) => {
|
|
14927
14927
|
!js(D, C) && !Sa(D, C) && kt(e.schema, D) && _r(D);
|
|
14928
14928
|
});
|
|
14929
14929
|
}
|
|
14930
|
-
}, tx = (e) => (n) => js(e, n), Gk = (e) =>
|
|
14930
|
+
}, tx = (e) => (n) => js(e, n), Gk = (e) => sl(e, "td,th"), _5 = (e, n) => zh(tt.fromDom(e), n), qk = (e) => la(e.startTable, e.endTable, (n, r) => {
|
|
14931
14931
|
const l = T1(n, (h) => js(h, r)), d = T1(r, (h) => js(h, n));
|
|
14932
14932
|
return !l && !d ? e : {
|
|
14933
14933
|
...e,
|
|
@@ -15592,7 +15592,7 @@ Required: ` + n.join(", "));
|
|
|
15592
15592
|
return e.formatter.matchNode(n, d, {}, h) ? l.concat([d]) : l;
|
|
15593
15593
|
}, []), gx = Hi, aZ = (e, n) => e.importNode(n, !0), $8 = (e) => {
|
|
15594
15594
|
if (e) {
|
|
15595
|
-
const n = new
|
|
15595
|
+
const n = new rl(e, e);
|
|
15596
15596
|
for (let r = n.current(); r; r = n.next())
|
|
15597
15597
|
if (On(r))
|
|
15598
15598
|
return r;
|
|
@@ -15829,7 +15829,7 @@ Required: ` + n.join(", "));
|
|
|
15829
15829
|
const h = l.childNodes.length - 1;
|
|
15830
15830
|
!r && d && d--, l = l.childNodes[d > h ? h : d];
|
|
15831
15831
|
}
|
|
15832
|
-
return On(l) && r && d >= l.data.length && (l = new
|
|
15832
|
+
return On(l) && r && d >= l.data.length && (l = new rl(l, e.getBody()).next() || l), On(l) && !r && d === 0 && (l = new rl(l, e.getBody()).prev() || l), l;
|
|
15833
15833
|
}, G8 = (e, n) => {
|
|
15834
15834
|
const r = n ? "firstChild" : "lastChild", l = e[r];
|
|
15835
15835
|
return W8(e) && l ? e.nodeName === "TR" && l[r] || l : e;
|
|
@@ -16678,9 +16678,9 @@ Required: ` + n.join(", "));
|
|
|
16678
16678
|
enumerable: !0,
|
|
16679
16679
|
value: !1
|
|
16680
16680
|
}
|
|
16681
|
-
})),
|
|
16681
|
+
})), ts = null, Fr = null, Ls = !0, zl = !0, od = !1, jm = !0, Iu = !1, nm = !0, Md = !1, lu = !1, cu = !1, om = !1, Uv = !1, Po = !1, qs = !0, Qa = !1;
|
|
16682
16682
|
const Yi = "user-content-";
|
|
16683
|
-
let
|
|
16683
|
+
let gl = !0, $i = !1, Ba = {}, Fa = null;
|
|
16684
16684
|
const Zc = ra({}, ["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"]);
|
|
16685
16685
|
let sm = null;
|
|
16686
16686
|
const Ug = ra({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
@@ -16699,7 +16699,7 @@ Required: ` + n.join(", "));
|
|
|
16699
16699
|
let Zt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
16700
16700
|
if (!(Wt && Wt === Zt)) {
|
|
16701
16701
|
if ((!Zt || typeof Zt != "object") && (Zt = {}), Zt = $0(Zt), sy = // eslint-disable-next-line unicorn/prefer-includes
|
|
16702
|
-
Xp.indexOf(Zt.PARSER_MEDIA_TYPE) === -1 ? I_ : Zt.PARSER_MEDIA_TYPE, Ft = sy === "application/xhtml+xml" ? SD : O0, Mo = Yf(Zt, "ALLOWED_TAGS") ? ra({}, Zt.ALLOWED_TAGS, Ft) : ir, co = Yf(Zt, "ALLOWED_ATTR") ? ra({}, Zt.ALLOWED_ATTR, Ft) : Sn, Wv = Yf(Zt, "ALLOWED_NAMESPACES") ? ra({}, Zt.ALLOWED_NAMESPACES, SD) : C4, Wm = Yf(Zt, "ADD_URI_SAFE_ATTR") ? ra($0(M2), Zt.ADD_URI_SAFE_ATTR, Ft) : M2, sm = Yf(Zt, "ADD_DATA_URI_TAGS") ? ra($0(Ug), Zt.ADD_DATA_URI_TAGS, Ft) : Ug, Fa = Yf(Zt, "FORBID_CONTENTS") ? ra({}, Zt.FORBID_CONTENTS, Ft) : Zc,
|
|
16702
|
+
Xp.indexOf(Zt.PARSER_MEDIA_TYPE) === -1 ? I_ : Zt.PARSER_MEDIA_TYPE, Ft = sy === "application/xhtml+xml" ? SD : O0, Mo = Yf(Zt, "ALLOWED_TAGS") ? ra({}, Zt.ALLOWED_TAGS, Ft) : ir, co = Yf(Zt, "ALLOWED_ATTR") ? ra({}, Zt.ALLOWED_ATTR, Ft) : Sn, Wv = Yf(Zt, "ALLOWED_NAMESPACES") ? ra({}, Zt.ALLOWED_NAMESPACES, SD) : C4, Wm = Yf(Zt, "ADD_URI_SAFE_ATTR") ? ra($0(M2), Zt.ADD_URI_SAFE_ATTR, Ft) : M2, sm = Yf(Zt, "ADD_DATA_URI_TAGS") ? ra($0(Ug), Zt.ADD_DATA_URI_TAGS, Ft) : Ug, Fa = Yf(Zt, "FORBID_CONTENTS") ? ra({}, Zt.FORBID_CONTENTS, Ft) : Zc, ts = Yf(Zt, "FORBID_TAGS") ? ra({}, Zt.FORBID_TAGS, Ft) : {}, Fr = Yf(Zt, "FORBID_ATTR") ? ra({}, Zt.FORBID_ATTR, Ft) : {}, Ba = Yf(Zt, "USE_PROFILES") ? Zt.USE_PROFILES : !1, Ls = Zt.ALLOW_ARIA_ATTR !== !1, zl = Zt.ALLOW_DATA_ATTR !== !1, od = Zt.ALLOW_UNKNOWN_PROTOCOLS || !1, jm = Zt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Iu = Zt.SAFE_FOR_TEMPLATES || !1, nm = Zt.SAFE_FOR_XML !== !1, Md = Zt.WHOLE_DOCUMENT || !1, om = Zt.RETURN_DOM || !1, Uv = Zt.RETURN_DOM_FRAGMENT || !1, Po = Zt.RETURN_TRUSTED_TYPE || !1, cu = Zt.FORCE_BODY || !1, qs = Zt.SANITIZE_DOM !== !1, Qa = Zt.SANITIZE_NAMED_PROPS || !1, gl = Zt.KEEP_CONTENT !== !1, $i = Zt.IN_PLACE || !1, Kn = Zt.ALLOWED_URI_REGEXP || E7, l1 = Zt.NAMESPACE || rm, Zv = Zt.MATHML_TEXT_INTEGRATION_POINTS || Zv, P2 = Zt.HTML_INTEGRATION_POINTS || P2, oo = Zt.CUSTOM_ELEMENT_HANDLING || {}, Zt.CUSTOM_ELEMENT_HANDLING && zn(Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (oo.tagNameCheck = Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Zt.CUSTOM_ELEMENT_HANDLING && zn(Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (oo.attributeNameCheck = Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Zt.CUSTOM_ELEMENT_HANDLING && typeof Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (oo.allowCustomizedBuiltInElements = Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Iu && (zl = !1), Uv && (om = !0), Ba && (Mo = ra({}, S7), co = [], Ba.html === !0 && (ra(Mo, w7), ra(co, D0)), Ba.svg === !0 && (ra(Mo, xD), ra(co, TD), ra(co, $3)), Ba.svgFilters === !0 && (ra(Mo, _D), ra(co, TD), ra(co, $3)), Ba.mathMl === !0 && (ra(Mo, ED), ra(co, x7), ra(co, $3))), Zt.ADD_TAGS && (Mo === ir && (Mo = $0(Mo)), ra(Mo, Zt.ADD_TAGS, Ft)), Zt.ADD_ATTR && (co === Sn && (co = $0(co)), ra(co, Zt.ADD_ATTR, Ft)), Zt.ADD_URI_SAFE_ATTR && ra(Wm, Zt.ADD_URI_SAFE_ATTR, Ft), Zt.FORBID_CONTENTS && (Fa === Zc && (Fa = $0(Fa)), ra(Fa, Zt.FORBID_CONTENTS, Ft)), gl && (Mo["#text"] = !0), Md && ra(Mo, ["html", "head", "body"]), Mo.table && (ra(Mo, ["tbody"]), delete ts.tbody), Zt.TRUSTED_TYPES_POLICY) {
|
|
16703
16703
|
if (typeof Zt.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
16704
16704
|
throw _x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
16705
16705
|
if (typeof Zt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -16801,10 +16801,10 @@ Required: ` + n.join(", "));
|
|
|
16801
16801
|
allowedTags: Mo
|
|
16802
16802
|
}), Zt.hasChildNodes() && !lR(Zt.firstElementChild) && Dd(/<[/\w]/g, Zt.innerHTML) && Dd(/<[/\w]/g, Zt.textContent) || Zt.nodeType === Tx.progressingInstruction || nm && Zt.nodeType === Tx.comment && Dd(/<[/\w]/g, Zt.data))
|
|
16803
16803
|
return am(Zt), !0;
|
|
16804
|
-
if (!Mo[_s] ||
|
|
16805
|
-
if (!
|
|
16804
|
+
if (!Mo[_s] || ts[_s]) {
|
|
16805
|
+
if (!ts[_s] && cR(_s) && (oo.tagNameCheck instanceof RegExp && Dd(oo.tagNameCheck, _s) || oo.tagNameCheck instanceof Function && oo.tagNameCheck(_s)))
|
|
16806
16806
|
return !1;
|
|
16807
|
-
if (
|
|
16807
|
+
if (gl && !Fa[_s]) {
|
|
16808
16808
|
const Ki = Dt(Zt) || Zt.parentNode, sd = Ct(Zt) || Zt.childNodes;
|
|
16809
16809
|
if (sd && Ki) {
|
|
16810
16810
|
const uu = sd.length;
|
|
@@ -16933,7 +16933,7 @@ Required: ` + n.join(", "));
|
|
|
16933
16933
|
if (lu || Zo(Zt), n.removed = [], typeof Hs == "string" && ($i = !1), $i) {
|
|
16934
16934
|
if (Hs.nodeName) {
|
|
16935
16935
|
const Jp = Ft(Hs.nodeName);
|
|
16936
|
-
if (!Mo[Jp] ||
|
|
16936
|
+
if (!Mo[Jp] || ts[Jp])
|
|
16937
16937
|
throw _x("root node is forbidden and cannot be sanitized in-place");
|
|
16938
16938
|
}
|
|
16939
16939
|
} else if (Hs instanceof k)
|
|
@@ -17534,8 +17534,8 @@ Required: ` + n.join(", "));
|
|
|
17534
17534
|
return Ud(l, r), l;
|
|
17535
17535
|
}), GZ = (e) => {
|
|
17536
17536
|
const n = N3(xm(e), 0, []);
|
|
17537
|
-
return q(
|
|
17538
|
-
q(
|
|
17537
|
+
return q(sl(e, "tr"), (r, l) => {
|
|
17538
|
+
q(sl(r, "td,th"), (d, h) => {
|
|
17539
17539
|
L7(n, ZZ(n, h, l), l, r, d);
|
|
17540
17540
|
});
|
|
17541
17541
|
}), N3(n.element, PD(n.rows), n.rows);
|
|
@@ -17548,7 +17548,7 @@ Required: ` + n.join(", "));
|
|
|
17548
17548
|
}).getOr([])), U7 = (e, n) => {
|
|
17549
17549
|
const r = je(n, (l, d) => (qr(d, l), d), e);
|
|
17550
17550
|
return n.length > 0 ? ZS([r]) : r;
|
|
17551
|
-
}, j7 = (e) => U1(e) ?
|
|
17551
|
+
}, j7 = (e) => U1(e) ? nl(e).filter(z1).fold(ve([]), (n) => [
|
|
17552
17552
|
e,
|
|
17553
17553
|
n
|
|
17554
17554
|
]) : z1(e) ? [e] : [], M3 = (e, n, r) => {
|
|
@@ -17707,7 +17707,7 @@ Required: ` + n.join(", "));
|
|
|
17707
17707
|
}), l && (e.selection.moveToBookmark(l), e.selection.scrollIntoView());
|
|
17708
17708
|
}, jD = (e) => e.type === "fragmented" ? e.fragments.join("") : e.content, Dx = (e) => {
|
|
17709
17709
|
const n = tt.fromTag("body", iG());
|
|
17710
|
-
return vd(n, jD(e)), q(
|
|
17710
|
+
return vd(n, jD(e)), q(sl(n, "*[data-mce-bogus]"), xu), Yr(n);
|
|
17711
17711
|
}, P0 = (e, n) => jD(e) === jD(n), J7 = (e, n) => Dx(e) === Dx(n), Du = (e, n) => !e || !n ? !1 : P0(e, n) ? !0 : J7(e, n), e1 = (e) => e.get() === 0, Nx = (e, n, r) => {
|
|
17712
17712
|
e1(r) && (e.typing = n);
|
|
17713
17713
|
}, Q7 = (e, n) => {
|
|
@@ -17912,35 +17912,35 @@ Required: ` + n.join(", "));
|
|
|
17912
17912
|
}, Xf = (e) => bo(e.plugins, "rtc"), YD = (e) => Is(e.plugins, "rtc").bind((n) => ne.from(n.setup)), sB = (e) => {
|
|
17913
17913
|
const n = e;
|
|
17914
17914
|
return YD(e).fold(() => (n.rtcInstance = Lm(e), ne.none()), (r) => (n.rtcInstance = pG(), ne.some(() => r().then((l) => (n.rtcInstance = qD(l), l.rtc.isRemote)))));
|
|
17915
|
-
}, I3 = (e) => e.rtcInstance ? e.rtcInstance : Lm(e),
|
|
17915
|
+
}, I3 = (e) => e.rtcInstance ? e.rtcInstance : Lm(e), dl = (e) => {
|
|
17916
17916
|
const n = e.rtcInstance;
|
|
17917
17917
|
if (n)
|
|
17918
17918
|
return n;
|
|
17919
17919
|
throw new Error("Failed to get RTC instance not yet initialized.");
|
|
17920
17920
|
}, hG = (e, n, r) => {
|
|
17921
|
-
|
|
17922
|
-
}, vG = (e, n, r, l, d, h, C) =>
|
|
17923
|
-
|
|
17921
|
+
dl(e).undoManager.beforeChange(n, r);
|
|
17922
|
+
}, vG = (e, n, r, l, d, h, C) => dl(e).undoManager.add(n, r, l, d, h, C), bG = (e, n, r, l) => dl(e).undoManager.undo(n, r, l), yG = (e, n, r) => dl(e).undoManager.redo(n, r), wG = (e, n, r) => {
|
|
17923
|
+
dl(e).undoManager.clear(n, r);
|
|
17924
17924
|
}, rB = (e, n) => {
|
|
17925
|
-
|
|
17926
|
-
}, CG = (e, n, r) =>
|
|
17927
|
-
|
|
17925
|
+
dl(e).undoManager.reset(n);
|
|
17926
|
+
}, CG = (e, n, r) => dl(e).undoManager.hasUndo(n, r), SG = (e, n, r) => dl(e).undoManager.hasRedo(n, r), xG = (e, n, r, l) => dl(e).undoManager.transact(n, r, l), aB = (e, n, r) => {
|
|
17927
|
+
dl(e).undoManager.ignore(n, r);
|
|
17928
17928
|
}, KD = (e, n, r, l, d) => {
|
|
17929
|
-
|
|
17930
|
-
}, XD = (e, n, r, l, d) =>
|
|
17931
|
-
|
|
17929
|
+
dl(e).undoManager.extra(n, r, l, d);
|
|
17930
|
+
}, XD = (e, n, r, l, d) => dl(e).formatter.match(n, r, l, d), iB = (e, n, r) => dl(e).formatter.matchAll(n, r), JD = (e, n, r, l, d) => dl(e).formatter.matchNode(n, r, l, d), lB = (e, n) => dl(e).formatter.canApply(n), cB = (e, n) => dl(e).formatter.closest(n), QD = (e, n, r, l) => {
|
|
17931
|
+
dl(e).formatter.apply(n, r, l);
|
|
17932
17932
|
}, uB = (e, n, r, l, d) => {
|
|
17933
|
-
|
|
17933
|
+
dl(e).formatter.remove(n, r, l, d);
|
|
17934
17934
|
}, dB = (e, n, r, l) => {
|
|
17935
|
-
|
|
17936
|
-
}, fB = (e, n, r, l, d, h) =>
|
|
17935
|
+
dl(e).formatter.toggle(n, r, l);
|
|
17936
|
+
}, fB = (e, n, r, l, d, h) => dl(e).formatter.formatChanged(n, r, l, d, h), _G = (e, n) => I3(e).editor.getContent(n), eN = (e, n, r) => I3(e).editor.setContent(n, r), EG = (e, n, r) => I3(e).editor.insertContent(n, r), P3 = (e, n, r) => dl(e).selection.getContent(n, r), TG = (e, n) => dl(e).editor.addVisual(n), mB = (e) => dl(e).init.bindEvents(), kG = (e, n = {}) => {
|
|
17937
17937
|
const r = n.format ? n.format : "html";
|
|
17938
17938
|
return P3(e, r, n);
|
|
17939
17939
|
}, tN = (e) => e.dom.length === 0 ? (_r(e), ne.none()) : ne.some(e), gB = (e, n) => e.filter((r) => jf.isBookmarkNode(r.dom)).bind(n ? um : md), AG = (e, n, r, l, d) => {
|
|
17940
17940
|
const h = e.dom, C = n.dom, k = l ? h.length : C.length;
|
|
17941
17941
|
l ? (y5(h, C, d, !1, !l), r.setStart(C, k)) : (y5(C, h, d, !1, !l), r.setEnd(C, k));
|
|
17942
17942
|
}, OG = (e, n, r) => {
|
|
17943
|
-
|
|
17943
|
+
nl(e).each((l) => {
|
|
17944
17944
|
const d = e.dom;
|
|
17945
17945
|
n && QS(l, Qt(d, 0), r) ? Uk(d, 0, r) : !n && Kw(l, Qt(d, d.length), r) && b5(d, d.length, r);
|
|
17946
17946
|
});
|
|
@@ -18614,11 +18614,11 @@ Options:${C}${r.join(C)}` : "";
|
|
|
18614
18614
|
const n = tt.fromDom(e.getBody());
|
|
18615
18615
|
PB(n, "mce-content-readonly", !1), e.hasEditableRoot() && sr(n, !0), uq(e, !1), Fn(e) && e.focus(), IB(e), e.nodeChanged();
|
|
18616
18616
|
}, t1 = (e) => Rp(e), p2 = "data-mce-contenteditable", Fg = (e) => {
|
|
18617
|
-
q(
|
|
18617
|
+
q(sl(e, '*[contenteditable="true"]'), (n) => {
|
|
18618
18618
|
Ca(n, p2, "true"), sr(n, !1);
|
|
18619
18619
|
});
|
|
18620
18620
|
}, cN = (e) => {
|
|
18621
|
-
q(
|
|
18621
|
+
q(sl(e, `*[${p2}="true"]`), (n) => {
|
|
18622
18622
|
ur(n, p2), sr(n, !0);
|
|
18623
18623
|
});
|
|
18624
18624
|
}, LB = (e, n) => {
|
|
@@ -18892,7 +18892,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
18892
18892
|
});
|
|
18893
18893
|
return Ln.length > 0 && !Xf(e) ? e.undoManager.transact(() => {
|
|
18894
18894
|
q(jd(Ln), (Kt) => {
|
|
18895
|
-
const xn =
|
|
18895
|
+
const xn = nl(Kt);
|
|
18896
18896
|
_r(Kt), xn.each(Cre(e)), n.removeByUri(Kt.dom.src);
|
|
18897
18897
|
});
|
|
18898
18898
|
}) : Zn && e.undoManager.dispatchChange(), nn;
|
|
@@ -19791,7 +19791,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
19791
19791
|
const r = e.selection.getNode();
|
|
19792
19792
|
return Lg(e, r).filter(Js).fold(() => mF(e.getBody(), n, e.selection.getRng(), e.schema).map((l) => () => l.fold($N(e, n), Fq(e, n), Lq(e))), () => ne.some(Ne));
|
|
19793
19793
|
}, q3 = (e) => {
|
|
19794
|
-
q(
|
|
19794
|
+
q(sl(e, ".mce-offscreen-selection"), _r);
|
|
19795
19795
|
}, gF = (e, n) => {
|
|
19796
19796
|
const r = e.selection.getNode();
|
|
19797
19797
|
return Js(r) && !Ka(r) ? Lg(e, r.parentNode).filter(Js).fold(() => ne.some(() => {
|
|
@@ -19917,8 +19917,8 @@ Options:${C}${r.join(C)}` : "";
|
|
|
19917
19917
|
return r || e;
|
|
19918
19918
|
}, Q3 = (e, n, r) => {
|
|
19919
19919
|
const l = n8(r), d = SF(n, l.container());
|
|
19920
|
-
return
|
|
19921
|
-
}, BN = (e, n) => Lh(e, n) === null, xF = (e, n, r) =>
|
|
19920
|
+
return ul(e, d, l).fold(() => Fl(d, l).bind(ge(ul, e, d)).map((h) => Mu.before(h)), ne.none);
|
|
19921
|
+
}, BN = (e, n) => Lh(e, n) === null, xF = (e, n, r) => ul(e, n, r).filter(ge(BN, n)), zq = (e, n, r) => {
|
|
19922
19922
|
const l = o8(r);
|
|
19923
19923
|
return xF(e, n, l).bind((d) => _l(d, l).isNone() ? ne.some(Mu.start(d)) : ne.none());
|
|
19924
19924
|
}, Uq = (e, n, r) => {
|
|
@@ -19926,7 +19926,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
19926
19926
|
return xF(e, n, l).bind((d) => Fl(d, l).isNone() ? ne.some(Mu.end(d)) : ne.none());
|
|
19927
19927
|
}, jq = (e, n, r) => {
|
|
19928
19928
|
const l = o8(r), d = SF(n, l.container());
|
|
19929
|
-
return
|
|
19929
|
+
return ul(e, d, l).fold(() => _l(d, l).bind(ge(ul, e, d)).map((h) => Mu.after(h)), ne.none);
|
|
19930
19930
|
}, FN = (e) => !x5(LN(e)), qp = (e, n, r) => CF([
|
|
19931
19931
|
Q3,
|
|
19932
19932
|
zq,
|
|
@@ -19936,7 +19936,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
19936
19936
|
e,
|
|
19937
19937
|
n,
|
|
19938
19938
|
r
|
|
19939
|
-
]).filter(FN), LN = (e) => e.fold(ot, ot, ot, ot), eA = (e) => e.fold(ve("before"), ve("start"), ve("end"), ve("after")), tA = (e) => e.fold(Mu.before, Mu.before, Mu.after, Mu.after), HN = (e) => e.fold(Mu.start, Mu.start, Mu.end, Mu.end), Wq = (e, n) => eA(e) === eA(n) && LN(e) === LN(n), Zq = (e, n, r, l, d, h) => la(
|
|
19939
|
+
]).filter(FN), LN = (e) => e.fold(ot, ot, ot, ot), eA = (e) => e.fold(ve("before"), ve("start"), ve("end"), ve("after")), tA = (e) => e.fold(Mu.before, Mu.before, Mu.after, Mu.after), HN = (e) => e.fold(Mu.start, Mu.start, Mu.end, Mu.end), Wq = (e, n) => eA(e) === eA(n) && LN(e) === LN(n), Zq = (e, n, r, l, d, h) => la(ul(n, r, l), ul(n, r, d), (C, k) => C !== k && LW(r, C, k) ? Mu.after(e ? C : k) : h).getOr(h), Gq = (e, n) => e.fold(dt, (r) => !Wq(r, n)), qq = (e, n, r, l, d) => {
|
|
19940
19940
|
const h = Wf(e, d);
|
|
19941
19941
|
return Ku(e, r, h).map(ge(Wf, e)).fold(() => l.map(tA), (D) => qp(n, r, D).map(ge(Zq, e, n, r, h, D)).filter(ge(Gq, l))).filter(FN);
|
|
19942
19942
|
}, Yq = (e, n) => e ? n.fold(M(ne.some, Mu.start), ne.none, M(ne.some, Mu.after), ne.none) : n.fold(ne.none, M(ne.some, Mu.before), ne.none, M(ne.some, Mu.end)), nA = (e, n, r, l) => {
|
|
@@ -20133,7 +20133,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20133
20133
|
const l = e.getBody(), d = iY(e.selection.getRng(), l, r), h = ge(Sv, e);
|
|
20134
20134
|
return nA(r, h, l, d).bind((k) => HF(e, n, k));
|
|
20135
20135
|
}, VF = (e, n, r) => {
|
|
20136
|
-
const l = le(
|
|
20136
|
+
const l = le(sl(tt.fromDom(n.getRoot()), '*[data-mce-selected="inline-boundary"]'), (C) => C.dom), d = Be(l, e), h = Be(r, e);
|
|
20137
20137
|
q(Do(d, h), ge(LF, !1)), q(Do(h, d), ge(LF, !0));
|
|
20138
20138
|
}, cY = (e, n) => {
|
|
20139
20139
|
const r = n.get();
|
|
@@ -20184,7 +20184,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20184
20184
|
const d = UF(e.getBody(), l.container()), h = ge(Sv, e), C = qp(h, d, l);
|
|
20185
20185
|
return C.bind((D) => r ? D.fold(ve(ne.some(HN(D))), ne.none, ve(ne.some(tA(D))), ne.none) : D.fold(ne.none, ve(ne.some(tA(D))), ne.none, ve(ne.some(HN(D))))).map(cA(e, n)).getOrThunk(() => {
|
|
20186
20186
|
const D = Bp(r, d, l), F = D.bind((J) => qp(h, d, J));
|
|
20187
|
-
return la(C, F, () =>
|
|
20187
|
+
return la(C, F, () => ul(h, d, l).bind((J) => qN(J) ? ne.some(() => {
|
|
20188
20188
|
S0(e, r, tt.fromDom(J));
|
|
20189
20189
|
}) : ne.none())).getOrThunk(() => F.bind(() => D.map((J) => () => {
|
|
20190
20190
|
r ? YN(e, n, l, J) : YN(e, n, J, l);
|
|
@@ -20277,7 +20277,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20277
20277
|
}), QF = (e) => {
|
|
20278
20278
|
const n = eL(e);
|
|
20279
20279
|
return !e.mode.isReadOnly() && (n.length > 1 || n6(e, n));
|
|
20280
|
-
}, o6 = (e) => z1(e) || U1(e), _Y = (e) =>
|
|
20280
|
+
}, o6 = (e) => z1(e) || U1(e), _Y = (e) => nl(e).exists(o6), eL = (e) => Be(jd(e.selection.getSelectedBlocks()), (n) => !o6(n) && !_Y(n) && Rv(n)), tL = (e, n) => {
|
|
20281
20281
|
var r, l;
|
|
20282
20282
|
if (e.mode.isReadOnly())
|
|
20283
20283
|
return;
|
|
@@ -20580,7 +20580,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20580
20580
|
const C = Math.sqrt(Math.abs(h.x - n) + Math.abs(h.y - r)), k = Math.sqrt(Math.abs(d.x - n) + Math.abs(d.y - r));
|
|
20581
20581
|
return ne.some(k < C ? d : h);
|
|
20582
20582
|
}), ne.none()), SL = (e, n, r, l, d) => {
|
|
20583
|
-
const h =
|
|
20583
|
+
const h = sl(tt.fromDom(r), "td,th,caption").map((k) => k.dom), C = Be(Nre(e, h), (k) => n(k, d));
|
|
20584
20584
|
return XY(C, l, d).map((k) => k.cell);
|
|
20585
20585
|
}, JY = (e) => e.bottom, h6 = (e) => e.top, SA = (e, n) => e.y < n, xL = (e, n) => e.y > n, _L = ge(SL, JY, SA), QY = ge(SL, h6, xL), eK = (e, n) => fn(n.getClientRects()).bind((r) => _L(e, r.left, r.top)).bind((r) => rA(OF(r), n)), v6 = (e, n) => Pn(n.getClientRects()).bind((r) => QY(e, r.left, r.top)).bind((r) => rA(zN(r), n)), tK = (e, n, r) => r.breakAt.exists((l) => e(n, l).breakAt.isSome()), nK = (e) => e.breakType === Jf.Wrap && e.positions.length === 0, oK = (e) => e.breakType === Jf.Br && e.positions.length === 1, EL = (e, n, r) => {
|
|
20586
20586
|
const l = e(n, r);
|
|
@@ -20885,7 +20885,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20885
20885
|
}), r_ = (e) => ({
|
|
20886
20886
|
stype: mf.Error,
|
|
20887
20887
|
serror: e
|
|
20888
|
-
}),
|
|
20888
|
+
}), fl = {
|
|
20889
20889
|
fromResult: (e) => e.fold(r_, $6),
|
|
20890
20890
|
toResult: (e) => Yp(e, nu.error, nu.value),
|
|
20891
20891
|
svalue: $6,
|
|
@@ -20903,7 +20903,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20903
20903
|
}]) : e;
|
|
20904
20904
|
return le(n, (r) => "Failed path: (" + r.path.join(" > ") + `)
|
|
20905
20905
|
` + r.getErrorInfo());
|
|
20906
|
-
}, i_ = (e, n) =>
|
|
20906
|
+
}, i_ = (e, n) => fl.serror([{
|
|
20907
20907
|
path: e,
|
|
20908
20908
|
getErrorInfo: n
|
|
20909
20909
|
}]), PL = (e, n, r) => i_(e, () => 'Could not find valid *required* value for "' + n + '" in ' + gf(r)), CK = (e, n) => i_(e, () => 'Choice schema did not contain choice key: "' + n + '"'), BL = (e, n, r) => i_(e, () => 'The chosen schema: "' + r + '" did not exist in branches: ' + gf(n)), SK = (e, n) => i_(e, ve(n)), xK = (e, n, r, l) => Is(r, l).fold(() => BL(e, r, l), (h) => h.extract(e.concat(["branch: " + l]), n)), l_ = (e, n) => ({
|
|
@@ -20928,14 +20928,14 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20928
20928
|
}), HL = (e) => TK(ve(e)), kK = () => ({
|
|
20929
20929
|
tag: "option",
|
|
20930
20930
|
process: {}
|
|
20931
|
-
}), AK = (e, n) => e.length > 0 ?
|
|
20931
|
+
}), AK = (e, n) => e.length > 0 ? fl.svalue(AA(n, LL.apply(void 0, e))) : fl.svalue(n), VL = (e) => M(fl.serror, Et)(e), zL = {
|
|
20932
20932
|
consolidateObj: (e, n) => {
|
|
20933
|
-
const r =
|
|
20933
|
+
const r = fl.partition(e);
|
|
20934
20934
|
return r.errors.length > 0 ? VL(r.errors) : AK(r.values, n);
|
|
20935
20935
|
},
|
|
20936
20936
|
consolidateArr: (e) => {
|
|
20937
|
-
const n =
|
|
20938
|
-
return n.errors.length > 0 ? VL(n.errors) :
|
|
20937
|
+
const n = fl.partition(e);
|
|
20938
|
+
return n.errors.length > 0 ? VL(n.errors) : fl.svalue(n.values);
|
|
20939
20939
|
}
|
|
20940
20940
|
}, UL = (e, n, r, l) => ({
|
|
20941
20941
|
tag: "field",
|
|
@@ -20955,21 +20955,21 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20955
20955
|
return r(e.newKey, e.instantiator);
|
|
20956
20956
|
}
|
|
20957
20957
|
}, R6 = (e) => {
|
|
20958
|
-
const n = (l, d) =>
|
|
20958
|
+
const n = (l, d) => fl.bindError(e(d), (h) => SK(l, h)), r = ve("val");
|
|
20959
20959
|
return {
|
|
20960
20960
|
extract: n,
|
|
20961
20961
|
toString: r
|
|
20962
20962
|
};
|
|
20963
|
-
}, OK = R6(
|
|
20963
|
+
}, OK = R6(fl.svalue), $K = (e, n, r, l) => Is(n, r).fold(() => PL(e, r, n), l), WL = (e, n, r, l) => {
|
|
20964
20964
|
const d = Is(e, n).getOrThunk(() => r(e));
|
|
20965
20965
|
return l(d);
|
|
20966
20966
|
}, ZL = (e, n, r) => r(Is(e, n)), DK = (e, n, r, l) => {
|
|
20967
20967
|
const d = Is(e, n).map((h) => h === !0 ? r(e) : h);
|
|
20968
20968
|
return l(d);
|
|
20969
20969
|
}, GL = (e, n, r, l, d) => {
|
|
20970
|
-
const h = (k) => d.extract(n.concat([l]), k), C = (k) => k.fold(() =>
|
|
20970
|
+
const h = (k) => d.extract(n.concat([l]), k), C = (k) => k.fold(() => fl.svalue(ne.none()), (D) => {
|
|
20971
20971
|
const F = d.extract(n.concat([l]), D);
|
|
20972
|
-
return
|
|
20972
|
+
return fl.map(F, ne.some);
|
|
20973
20973
|
});
|
|
20974
20974
|
switch (e.tag) {
|
|
20975
20975
|
case "required":
|
|
@@ -20991,7 +20991,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20991
20991
|
for (const h of r)
|
|
20992
20992
|
M6(h, (C, k, D, F) => {
|
|
20993
20993
|
const J = GL(D, e, n, C, F);
|
|
20994
|
-
|
|
20994
|
+
fl.fold(J, (oe) => {
|
|
20995
20995
|
d.push(...oe);
|
|
20996
20996
|
}, (oe) => {
|
|
20997
20997
|
l[k] = oe;
|
|
@@ -20999,7 +20999,7 @@ Options:${C}${r.join(C)}` : "";
|
|
|
20999
20999
|
}, (C, k) => {
|
|
21000
21000
|
l[C] = k(n);
|
|
21001
21001
|
});
|
|
21002
|
-
return d.length > 0 ?
|
|
21002
|
+
return d.length > 0 ? fl.serror(d) : fl.svalue(l);
|
|
21003
21003
|
}, c_ = (e) => ({
|
|
21004
21004
|
extract: (l, d) => NK(l, d, e),
|
|
21005
21005
|
toString: () => `obj{
|
|
@@ -21029,19 +21029,19 @@ Options:${C}${r.join(C)}` : "";
|
|
|
21029
21029
|
},
|
|
21030
21030
|
toString: () => "oneOf(" + le(e, (h) => h.toString()).join(", ") + ")"
|
|
21031
21031
|
};
|
|
21032
|
-
}, RK = M(OA, c_), IK = (e) => R6((n) => e(n).fold(
|
|
21032
|
+
}, RK = M(OA, c_), IK = (e) => R6((n) => e(n).fold(fl.serror, fl.svalue)), PK = (e, n, r) => {
|
|
21033
21033
|
const l = n.extract([e], r);
|
|
21034
|
-
return
|
|
21034
|
+
return fl.mapError(l, (d) => ({
|
|
21035
21035
|
input: r,
|
|
21036
21036
|
errors: d
|
|
21037
21037
|
}));
|
|
21038
|
-
}, qL = (e, n, r) =>
|
|
21038
|
+
}, qL = (e, n, r) => fl.toResult(PK(e, n, r)), BK = (e) => `Errors:
|
|
21039
21039
|
` + a_(e.errors).join(`
|
|
21040
21040
|
`) + `
|
|
21041
21041
|
|
|
21042
21042
|
Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A = (e, n) => R6((r) => {
|
|
21043
21043
|
const l = typeof r;
|
|
21044
|
-
return e(r) ?
|
|
21044
|
+
return e(r) ? fl.svalue(r) : fl.serror(`Expected type: ${n} but got: ${l}`);
|
|
21045
21045
|
}), FK = $A(Lt, "number"), W0 = $A(H, "string"), LK = $A(We, "boolean"), P6 = $A(ce, "function"), w2 = UL, B6 = jL, F6 = (e) => IK((n) => Q(e, n) ? nu.value(n) : nu.error(`Unsupported value: "${n}", choose one of "${e.join(", ")}".`)), L6 = (e, n) => w2(e, e, N6(), n), KL = (e) => L6(e, W0), H6 = (e, n) => w2(e, e, N6(), F6(n)), XL = (e) => L6(e, P6), JL = (e, n) => w2(e, e, N6(), OA(n)), V6 = (e, n) => w2(e, e, kK(), n), Z0 = (e) => V6(e, W0), HK = (e) => V6(e, P6), Fre = (e, n) => w2(e, e, HL(n), YL()), C2 = (e, n, r) => w2(e, e, HL(n), r), u_ = (e, n) => C2(e, n, FK), d_ = (e, n) => C2(e, n, W0), z6 = (e, n, r) => C2(e, n, F6(r)), U6 = (e, n) => C2(e, n, LK), Kp = (e, n) => C2(e, n, P6), QL = (e, n, r) => C2(e, n, OA(r)), VK = KL("type"), zK = XL("fetch"), j6 = XL("onAction"), e9 = Kp("onSetup", () => Ne), UK = Z0("text"), W6 = Z0("icon"), jK = Z0("tooltip"), WK = Z0("label"), ZK = U6("active", !1), t9 = U6("enabled", !0), n9 = U6("primary", !1), GK = (e) => Fre("columns", e), f_ = (e) => d_("type", e), qK = c_([
|
|
21046
21046
|
VK,
|
|
21047
21047
|
KL("trigger"),
|
|
@@ -21462,7 +21462,7 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
21462
21462
|
}
|
|
21463
21463
|
const d = r.createRng();
|
|
21464
21464
|
if (n.normalize(), n.hasChildNodes()) {
|
|
21465
|
-
const h = new
|
|
21465
|
+
const h = new rl(n, n);
|
|
21466
21466
|
let C = n, k;
|
|
21467
21467
|
for (; k = h.current(); ) {
|
|
21468
21468
|
if (On(k)) {
|
|
@@ -21669,7 +21669,7 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
21669
21669
|
return !0;
|
|
21670
21670
|
if (tm(r, "TABLE") || tm(r, "HR"))
|
|
21671
21671
|
return xX(r, "BR") ? !xn : C && !xn || !C && xn;
|
|
21672
|
-
const No = new
|
|
21672
|
+
const No = new rl(r, Ln);
|
|
21673
21673
|
On(r) && (xn && lo === 0 ? No.prev() : !xn && lo === r.data.length && No.next());
|
|
21674
21674
|
let Ts;
|
|
21675
21675
|
for (; Ts = No.current(); ) {
|
|
@@ -21739,7 +21739,7 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
21739
21739
|
},
|
|
21740
21740
|
fakeEventName: "insertParagraph"
|
|
21741
21741
|
}, DX = (e, n, r) => {
|
|
21742
|
-
const l = new
|
|
21742
|
+
const l = new rl(n, r);
|
|
21743
21743
|
let d;
|
|
21744
21744
|
const h = e.getNonEmptyElements();
|
|
21745
21745
|
for (; d = l.next(); )
|
|
@@ -22601,7 +22601,7 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
22601
22601
|
}, _H = (e) => {
|
|
22602
22602
|
xH(e), jJ(e);
|
|
22603
22603
|
}, WJ = Xs, SM = On, ZJ = (e) => Js(e.dom), GJ = (e) => ln(e.dom), EH = (e) => (n) => js(tt.fromDom(e), n), E_ = (e, n, r) => ta(tt.fromDom(e), (l) => GJ(l) || r.isBlock(Fe(l)), EH(n)).getOr(tt.fromDom(n)).dom, TH = (e, n) => ta(tt.fromDom(e), ZJ, EH(n)), kH = (e, n, r) => {
|
|
22604
|
-
const l = new
|
|
22604
|
+
const l = new rl(e, n), d = r ? l.next.bind(l) : l.prev.bind(l);
|
|
22605
22605
|
let h = e;
|
|
22606
22606
|
for (let C = r ? e : d(); C && !WJ(C); C = d())
|
|
22607
22607
|
Hc(C) && (h = C);
|
|
@@ -23031,7 +23031,7 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
23031
23031
|
if (Kt.isDefaultPrevented())
|
|
23032
23032
|
return null;
|
|
23033
23033
|
const xn = at(Zn, Kt.targetClone), lo = tt.fromDom(Zn);
|
|
23034
|
-
return q(
|
|
23034
|
+
return q(sl(tt.fromDom(e.getBody()), `*[${C}]`), (No) => {
|
|
23035
23035
|
js(lo, No) || ur(No, C);
|
|
23036
23036
|
}), r.getAttrib(Zn, C) || Zn.setAttribute(C, "1"), k = Zn, Ln(), xn;
|
|
23037
23037
|
}, Dt = (Zn, nn) => {
|
|
@@ -23133,7 +23133,7 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
23133
23133
|
return {
|
|
23134
23134
|
...e,
|
|
23135
23135
|
blockPatterns: Dp(l).concat(e.blockPatterns),
|
|
23136
|
-
inlinePatterns:
|
|
23136
|
+
inlinePatterns: il(l).concat(e.inlinePatterns)
|
|
23137
23137
|
};
|
|
23138
23138
|
}, NM = (e, n, r, l) => {
|
|
23139
23139
|
const d = e.createRng();
|
|
@@ -23407,17 +23407,17 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
23407
23407
|
}
|
|
23408
23408
|
}, xe = (co) => co.isDefaultPrevented(), Pe = () => {
|
|
23409
23409
|
const co = (oo) => {
|
|
23410
|
-
const
|
|
23411
|
-
return
|
|
23410
|
+
const ts = d.create("body"), Fr = oo.cloneContents();
|
|
23411
|
+
return ts.appendChild(Fr), h.serializer.serialize(ts, { format: "html" });
|
|
23412
23412
|
}, Sn = (oo) => {
|
|
23413
|
-
const
|
|
23413
|
+
const ts = co(oo), Fr = d.createRng();
|
|
23414
23414
|
Fr.selectNode(e.getBody());
|
|
23415
23415
|
const Ls = co(Fr);
|
|
23416
|
-
return
|
|
23416
|
+
return ts === Ls;
|
|
23417
23417
|
};
|
|
23418
23418
|
e.on("keydown", (oo) => {
|
|
23419
|
-
const
|
|
23420
|
-
if (!xe(oo) && (
|
|
23419
|
+
const ts = oo.keyCode;
|
|
23420
|
+
if (!xe(oo) && (ts === l || ts === r) && e.selection.isEditable()) {
|
|
23421
23421
|
const Fr = e.selection.isCollapsed(), Ls = e.getBody();
|
|
23422
23422
|
if (Fr && !Xc(e.schema, Ls) || !Fr && !Sn(e.selection.getRng()))
|
|
23423
23423
|
return;
|
|
@@ -23471,20 +23471,20 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
23471
23471
|
const co = () => {
|
|
23472
23472
|
const oo = d.getAttribs(h.getStart().cloneNode(!1));
|
|
23473
23473
|
return () => {
|
|
23474
|
-
const
|
|
23475
|
-
|
|
23476
|
-
|
|
23474
|
+
const ts = h.getStart();
|
|
23475
|
+
ts !== e.getBody() && (d.setAttrib(ts, "style", null), n(oo, (Fr) => {
|
|
23476
|
+
ts.setAttributeNode(Fr.cloneNode(!0));
|
|
23477
23477
|
}));
|
|
23478
23478
|
};
|
|
23479
23479
|
}, Sn = () => !h.isCollapsed() && d.getParent(h.getStart(), d.isBlock) !== d.getParent(h.getEnd(), d.isBlock);
|
|
23480
23480
|
e.on("keypress", (oo) => {
|
|
23481
|
-
let
|
|
23482
|
-
return !xe(oo) && (oo.keyCode === 8 || oo.keyCode === 46) && Sn() ? (
|
|
23481
|
+
let ts;
|
|
23482
|
+
return !xe(oo) && (oo.keyCode === 8 || oo.keyCode === 46) && Sn() ? (ts = co(), e.getDoc().execCommand("delete", !1), ts(), oo.preventDefault(), !1) : !0;
|
|
23483
23483
|
}), d.bind(e.getDoc(), "cut", (oo) => {
|
|
23484
23484
|
if (!xe(oo) && Sn()) {
|
|
23485
|
-
const
|
|
23485
|
+
const ts = co();
|
|
23486
23486
|
mo.setEditorTimeout(e, () => {
|
|
23487
|
-
|
|
23487
|
+
ts();
|
|
23488
23488
|
});
|
|
23489
23489
|
}
|
|
23490
23490
|
});
|
|
@@ -23502,9 +23502,9 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
23502
23502
|
if (xe(co) || co.keyCode !== pn.BACKSPACE)
|
|
23503
23503
|
return;
|
|
23504
23504
|
let Sn = h.getRng();
|
|
23505
|
-
const oo = Sn.startContainer,
|
|
23505
|
+
const oo = Sn.startContainer, ts = Sn.startOffset, Fr = d.getRoot();
|
|
23506
23506
|
let Ls = oo;
|
|
23507
|
-
if (!(!Sn.collapsed ||
|
|
23507
|
+
if (!(!Sn.collapsed || ts !== 0)) {
|
|
23508
23508
|
for (; Ls.parentNode && Ls.parentNode.firstChild === Ls && Ls.parentNode !== Fr; )
|
|
23509
23509
|
Ls = Ls.parentNode;
|
|
23510
23510
|
Ls.nodeName === "BLOCKQUOTE" && (e.formatter.toggle("blockquote", void 0, Ls), Sn = d.createRng(), Sn.setStart(oo, 0), Sn.setEnd(oo, 0), h.setRng(Sn));
|
|
@@ -23519,15 +23519,15 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
23519
23519
|
const co = () => {
|
|
23520
23520
|
n(d.select("a:not([data-mce-block])"), (Sn) => {
|
|
23521
23521
|
var oo;
|
|
23522
|
-
let
|
|
23522
|
+
let ts = Sn.parentNode;
|
|
23523
23523
|
const Fr = d.getRoot();
|
|
23524
|
-
if ((
|
|
23525
|
-
for (;
|
|
23526
|
-
if (((oo =
|
|
23524
|
+
if ((ts == null ? void 0 : ts.lastChild) === Sn) {
|
|
23525
|
+
for (; ts && !d.isBlock(ts); ) {
|
|
23526
|
+
if (((oo = ts.parentNode) === null || oo === void 0 ? void 0 : oo.lastChild) !== ts || ts === Fr)
|
|
23527
23527
|
return;
|
|
23528
|
-
|
|
23528
|
+
ts = ts.parentNode;
|
|
23529
23529
|
}
|
|
23530
|
-
d.add(
|
|
23530
|
+
d.add(ts, "br", { "data-mce-bogus": 1 });
|
|
23531
23531
|
}
|
|
23532
23532
|
});
|
|
23533
23533
|
};
|
|
@@ -24325,13 +24325,13 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
24325
24325
|
const J = h9(e, h, F.dom, C, !1, D);
|
|
24326
24326
|
k(F, tt.fromDom(J)), e.selection.setCursorLocation(J, 0), e.dispatch("NewBlock", { newBlock: J }), m_(e, "insertParagraph");
|
|
24327
24327
|
});
|
|
24328
|
-
}, Iee = (e) => PV(e, !0),
|
|
24328
|
+
}, Iee = (e) => PV(e, !0), ml = (e) => PV(e, !1), Pee = (e) => {
|
|
24329
24329
|
e.editorCommands.addCommands({
|
|
24330
24330
|
InsertNewBlockBefore: () => {
|
|
24331
24331
|
Iee(e);
|
|
24332
24332
|
},
|
|
24333
24333
|
InsertNewBlockAfter: () => {
|
|
24334
|
-
|
|
24334
|
+
ml(e);
|
|
24335
24335
|
}
|
|
24336
24336
|
});
|
|
24337
24337
|
}, Bee = (e) => {
|
|
@@ -25451,7 +25451,7 @@ Input object: ` + gf(e.input), I6 = (e, n) => l_(e, Xo(n, c_)), YL = ve(OK), $A
|
|
|
25451
25451
|
},
|
|
25452
25452
|
dom: {
|
|
25453
25453
|
EventUtils: Cg,
|
|
25454
|
-
TreeWalker:
|
|
25454
|
+
TreeWalker: rl,
|
|
25455
25455
|
TextSeeker: Ep,
|
|
25456
25456
|
DOMUtils: da,
|
|
25457
25457
|
ScriptLoader: Tu,
|
|
@@ -26083,7 +26083,7 @@ tinymce.IconManager.add("default", {
|
|
|
26083
26083
|
}, Oc = (t, a) => {
|
|
26084
26084
|
const c = a === void 0 ? document : a.dom;
|
|
26085
26085
|
return bu(c) ? M.none() : M.from(c.querySelector(t)).map(qt.fromDom);
|
|
26086
|
-
}, ws = (t, a) => t.dom === a.dom,
|
|
26086
|
+
}, ws = (t, a) => t.dom === a.dom, Ji = (t, a) => {
|
|
26087
26087
|
const c = t.dom, m = a.dom;
|
|
26088
26088
|
return c === m ? !1 : c.contains(m);
|
|
26089
26089
|
}, Cr = (t) => qt.fromDom(t.dom.ownerDocument), ic = (t) => Ta(t) ? t : Cr(t), _i = (t) => qt.fromDom(ic(t).dom.documentElement), bl = (t) => qt.fromDom(ic(t).dom.defaultView), wa = (t) => M.from(t.dom.parentNode).map(qt.fromDom), lc = (t) => wa(t), Mi = (t) => M.from(t.dom.parentElement).map(qt.fromDom), cc = (t, a) => {
|
|
@@ -26097,10 +26097,10 @@ tinymce.IconManager.add("default", {
|
|
|
26097
26097
|
m = x;
|
|
26098
26098
|
}
|
|
26099
26099
|
return b;
|
|
26100
|
-
}, Gl = (t) => M.from(t.dom.offsetParent).map(qt.fromDom), uc = (t) => M.from(t.dom.nextSibling).map(qt.fromDom), Zr = (t) => Ie(t.dom.childNodes, qt.fromDom),
|
|
26100
|
+
}, Gl = (t) => M.from(t.dom.offsetParent).map(qt.fromDom), uc = (t) => M.from(t.dom.nextSibling).map(qt.fromDom), Zr = (t) => Ie(t.dom.childNodes, qt.fromDom), Qi = (t, a) => {
|
|
26101
26101
|
const c = t.dom.childNodes;
|
|
26102
26102
|
return M.from(c[a]).map(qt.fromDom);
|
|
26103
|
-
}, ql = (t) =>
|
|
26103
|
+
}, ql = (t) => Qi(t, 0), Yl = (t, a) => ({
|
|
26104
26104
|
element: t,
|
|
26105
26105
|
offset: a
|
|
26106
26106
|
}), qc = (t, a) => {
|
|
@@ -26245,8 +26245,8 @@ tinymce.IconManager.add("default", {
|
|
|
26245
26245
|
if (c === t.dom)
|
|
26246
26246
|
return Or(c.offsetLeft, c.offsetTop);
|
|
26247
26247
|
const x = Ya(m == null ? void 0 : m.pageYOffset, b.scrollTop), E = Ya(m == null ? void 0 : m.pageXOffset, b.scrollLeft), N = Ya(b.clientTop, c.clientTop), P = Ya(b.clientLeft, c.clientLeft);
|
|
26248
|
-
return
|
|
26249
|
-
},
|
|
26248
|
+
return el(t).translate(E - P, x - N);
|
|
26249
|
+
}, el = (t) => {
|
|
26250
26250
|
const a = t.dom, m = a.ownerDocument.body;
|
|
26251
26251
|
return m === a ? Or(m.offsetLeft, m.offsetTop) : Ge(t) ? wu(a) : Or(0, 0);
|
|
26252
26252
|
}, Fu = qa("width", (t) => t.dom.offsetWidth), Re = (t, a) => Fu.set(t, a), Fe = (t) => Fu.get(t), Rt = (t) => Fu.getOuter(t), rn = (t, a) => {
|
|
@@ -26416,7 +26416,7 @@ tinymce.IconManager.add("default", {
|
|
|
26416
26416
|
], ud = {
|
|
26417
26417
|
browsers: ee(Cu),
|
|
26418
26418
|
oses: ee(tg)
|
|
26419
|
-
}, kf = "Edge", Af = "Chromium", Bd = "IE", Fd = "Opera", dc = "Firefox",
|
|
26419
|
+
}, kf = "Edge", Af = "Chromium", Bd = "IE", Fd = "Opera", dc = "Firefox", tl = "Safari", b1 = () => Lu({
|
|
26420
26420
|
current: void 0,
|
|
26421
26421
|
version: Gr.unknown()
|
|
26422
26422
|
}), Lu = (t) => {
|
|
@@ -26429,7 +26429,7 @@ tinymce.IconManager.add("default", {
|
|
|
26429
26429
|
isIE: m(Bd),
|
|
26430
26430
|
isOpera: m(Fd),
|
|
26431
26431
|
isFirefox: m(dc),
|
|
26432
|
-
isSafari: m(
|
|
26432
|
+
isSafari: m(tl)
|
|
26433
26433
|
};
|
|
26434
26434
|
}, tp = {
|
|
26435
26435
|
unknown: b1,
|
|
@@ -26439,7 +26439,7 @@ tinymce.IconManager.add("default", {
|
|
|
26439
26439
|
ie: ee(Bd),
|
|
26440
26440
|
opera: ee(Fd),
|
|
26441
26441
|
firefox: ee(dc),
|
|
26442
|
-
safari: ee(
|
|
26442
|
+
safari: ee(tl)
|
|
26443
26443
|
}, Of = "Windows", np = "iOS", ng = "Android", $f = "Linux", og = "macOS", op = "Solaris", Ld = "FreeBSD", sp = "ChromeOS", tt = () => Df({
|
|
26444
26444
|
current: void 0,
|
|
26445
26445
|
version: Gr.unknown()
|
|
@@ -26493,7 +26493,7 @@ tinymce.IconManager.add("default", {
|
|
|
26493
26493
|
}, Nf = (t, a, c, m, b) => {
|
|
26494
26494
|
const x = ih(c, m);
|
|
26495
26495
|
return t.dom.addEventListener(a, x, b), { unbind: lt(rg, t, a, x, b) };
|
|
26496
|
-
},
|
|
26496
|
+
}, nl = (t, a, c, m) => Nf(t, a, c, m, !1), sg = (t, a, c, m) => Nf(t, a, c, m, !0), rg = (t, a, c, m) => {
|
|
26497
26497
|
t.dom.removeEventListener(a, c, m);
|
|
26498
26498
|
}, fd = (t, a) => {
|
|
26499
26499
|
wa(t).each((m) => {
|
|
@@ -26516,7 +26516,7 @@ tinymce.IconManager.add("default", {
|
|
|
26516
26516
|
}, Mc = (t, a) => {
|
|
26517
26517
|
t.dom.appendChild(a.dom);
|
|
26518
26518
|
}, ag = (t, a, c) => {
|
|
26519
|
-
|
|
26519
|
+
Qi(t, c).fold(() => {
|
|
26520
26520
|
Mc(t, a);
|
|
26521
26521
|
}, (m) => {
|
|
26522
26522
|
fd(m, a);
|
|
@@ -26532,7 +26532,7 @@ tinymce.IconManager.add("default", {
|
|
|
26532
26532
|
}, Yc = (t) => {
|
|
26533
26533
|
const a = t.dom;
|
|
26534
26534
|
a.parentNode !== null && a.parentNode.removeChild(a);
|
|
26535
|
-
},
|
|
26535
|
+
}, ol = (t) => {
|
|
26536
26536
|
const a = t !== void 0 ? t.dom : document, c = a.body.scrollLeft || a.documentElement.scrollLeft, m = a.body.scrollTop || a.documentElement.scrollTop;
|
|
26537
26537
|
return Or(c, m);
|
|
26538
26538
|
}, Vd = (t, a, c) => {
|
|
@@ -26549,7 +26549,7 @@ tinymce.IconManager.add("default", {
|
|
|
26549
26549
|
right: t + c,
|
|
26550
26550
|
bottom: a + m
|
|
26551
26551
|
}), Su = (t) => {
|
|
26552
|
-
const a = t === void 0 ? window : t, c = a.document, m =
|
|
26552
|
+
const a = t === void 0 ? window : t, c = a.document, m = ol(qt.fromDom(c));
|
|
26553
26553
|
return w1(a).fold(() => {
|
|
26554
26554
|
const b = a.document.documentElement, x = b.clientWidth, E = b.clientHeight;
|
|
26555
26555
|
return ig(m.left, m.top, x, E);
|
|
@@ -26570,10 +26570,10 @@ tinymce.IconManager.add("default", {
|
|
|
26570
26570
|
owner: (t) => Cr(t)
|
|
26571
26571
|
});
|
|
26572
26572
|
const pd = (t) => {
|
|
26573
|
-
const a = Mf(), c =
|
|
26573
|
+
const a = Mf(), c = ol(a);
|
|
26574
26574
|
return rp(t, ap).fold(lt(ii, t), (b) => {
|
|
26575
|
-
const x =
|
|
26576
|
-
const z =
|
|
26575
|
+
const x = el(t), E = xt(b, (N, P) => {
|
|
26576
|
+
const z = el(P);
|
|
26577
26577
|
return {
|
|
26578
26578
|
left: N.left + z.left,
|
|
26579
26579
|
top: N.top + z.top
|
|
@@ -26785,20 +26785,20 @@ tinymce.IconManager.add("default", {
|
|
|
26785
26785
|
extract: a,
|
|
26786
26786
|
toString: c
|
|
26787
26787
|
};
|
|
26788
|
-
}, _1 = mm(za.svalue),
|
|
26788
|
+
}, _1 = mm(za.svalue), sl = (t, a, c, m) => bn(a, c).fold(() => na(t, c, a), m), E1 = (t, a, c, m) => {
|
|
26789
26789
|
const b = bn(t, a).getOrThunk(() => c(t));
|
|
26790
26790
|
return m(b);
|
|
26791
26791
|
}, ky = (t, a, c) => c(bn(t, a)), T1 = (t, a, c, m) => {
|
|
26792
26792
|
const b = bn(t, a).map((x) => x === !0 ? c(t) : x);
|
|
26793
26793
|
return m(b);
|
|
26794
|
-
},
|
|
26794
|
+
}, rl = (t, a, c, m, b) => {
|
|
26795
26795
|
const x = (N) => b.extract(a.concat([m]), N), E = (N) => N.fold(() => za.svalue(M.none()), (P) => {
|
|
26796
26796
|
const z = b.extract(a.concat([m]), P);
|
|
26797
26797
|
return za.map(z, M.some);
|
|
26798
26798
|
});
|
|
26799
26799
|
switch (t.tag) {
|
|
26800
26800
|
case "required":
|
|
26801
|
-
return
|
|
26801
|
+
return sl(a, c, m, x);
|
|
26802
26802
|
case "defaultedThunk":
|
|
26803
26803
|
return E1(c, m, t.process, x);
|
|
26804
26804
|
case "option":
|
|
@@ -26815,7 +26815,7 @@ tinymce.IconManager.add("default", {
|
|
|
26815
26815
|
const m = {}, b = [];
|
|
26816
26816
|
for (const x of c)
|
|
26817
26817
|
_r(x, (E, N, P, z) => {
|
|
26818
|
-
const Z =
|
|
26818
|
+
const Z = rl(P, t, a, E, z);
|
|
26819
26819
|
za.fold(Z, (se) => {
|
|
26820
26820
|
b.push(...se);
|
|
26821
26821
|
}, (se) => {
|
|
@@ -26828,7 +26828,7 @@ tinymce.IconManager.add("default", {
|
|
|
26828
26828
|
}, di = (t) => ({
|
|
26829
26829
|
extract: (m, b) => t().extract(m, b),
|
|
26830
26830
|
toString: () => t().toString()
|
|
26831
|
-
}), yb = (t) => Nn(zo(t, Y)),
|
|
26831
|
+
}), yb = (t) => Nn(zo(t, Y)), al = (t) => {
|
|
26832
26832
|
const a = qo(t), c = xt(t, (b, x) => _r(x, (E) => Yr(b, { [E]: !0 }), ee(b)), {});
|
|
26833
26833
|
return {
|
|
26834
26834
|
extract: (b, x) => {
|
|
@@ -26923,7 +26923,7 @@ tinymce.IconManager.add("default", {
|
|
|
26923
26923
|
` + ls(t.errors).join(`
|
|
26924
26924
|
`) + `
|
|
26925
26925
|
|
|
26926
|
-
Input object: ` + gs(t.input), yi = (t, a) => pm(t, $t(a, qo)), fp = (t, a) => Ay(t, a), wi = Ud, Xs = Vu, O1 = (t) => uh((a) => Ze(t, a) ? ds.value(a) : ds.error(`Unsupported value: "${a}", choose one of "${t.join(", ")}".`)), ln = (t) => wi(t, t, Ic(), zu()), Js = (t, a) => wi(t, t, Ic(), a), Cb = (t) => Js(t, gm), Ka = (t) => Js(t, eo), Eu = (t, a) => wi(t, t, Ic(), O1(a)), Li = (t) => Js(t, wb), lC = (t, a) => wi(t, t, up(), mm((c) => za.serror("The field: " + t + " is forbidden. " + a))), Zd = (t, a) => wi(t, t, Ic(), qo(a)), $y = (t, a) => wi(t, t, Ic(), A1(a)), gc = (t, a) => wi(t, t, Ic(), _u(a)), er = (t) => wi(t, t, up(), zu()), Gd = (t, a) => wi(t, t, up(), a), dh = (t) => Gd(t, gm), Ra = (t) => Gd(t, eo), fh = (t, a) => Gd(t, O1(a)), Pf = (t) => Gd(t, wb), Dy = (t, a) => Gd(t, _u(a)), Jl = (t, a) => Gd(t, qo(a)), Xc = (t, a) => Gd(t,
|
|
26926
|
+
Input object: ` + gs(t.input), yi = (t, a) => pm(t, $t(a, qo)), fp = (t, a) => Ay(t, a), wi = Ud, Xs = Vu, O1 = (t) => uh((a) => Ze(t, a) ? ds.value(a) : ds.error(`Unsupported value: "${a}", choose one of "${t.join(", ")}".`)), ln = (t) => wi(t, t, Ic(), zu()), Js = (t, a) => wi(t, t, Ic(), a), Cb = (t) => Js(t, gm), Ka = (t) => Js(t, eo), Eu = (t, a) => wi(t, t, Ic(), O1(a)), Li = (t) => Js(t, wb), lC = (t, a) => wi(t, t, up(), mm((c) => za.serror("The field: " + t + " is forbidden. " + a))), Zd = (t, a) => wi(t, t, Ic(), qo(a)), $y = (t, a) => wi(t, t, Ic(), A1(a)), gc = (t, a) => wi(t, t, Ic(), _u(a)), er = (t) => wi(t, t, up(), zu()), Gd = (t, a) => wi(t, t, up(), a), dh = (t) => Gd(t, gm), Ra = (t) => Gd(t, eo), fh = (t, a) => Gd(t, O1(a)), Pf = (t) => Gd(t, wb), Dy = (t, a) => Gd(t, _u(a)), Jl = (t, a) => Gd(t, qo(a)), Xc = (t, a) => Gd(t, al(a)), kt = (t, a) => wi(t, t, If(a), zu()), Bc = (t, a, c) => wi(t, t, If(a), c), Ci = (t, a) => Bc(t, a, gm), ca = (t, a) => Bc(t, a, eo), Jc = (t, a, c) => Bc(t, a, O1(c)), Ia = (t, a) => Bc(t, a, Kc), $r = (t, a) => Bc(t, a, wb), pg = (t, a) => Bc(t, a, Uu), I = (t, a, c) => Bc(t, a, _u(c)), U = (t, a, c) => Bc(t, a, qo(c)), $e = { generate: (t) => {
|
|
26927
26927
|
if (!A(t))
|
|
26928
26928
|
throw new Error("cases must be an array");
|
|
26929
26929
|
if (t.length === 0)
|
|
@@ -27170,7 +27170,7 @@ Required: ` + a.join(", "));
|
|
|
27170
27170
|
}), mC = (t, a, c) => TE((m, b) => {
|
|
27171
27171
|
c(m, t, a);
|
|
27172
27172
|
}), yh = (t, a, c, m, b, x) => {
|
|
27173
|
-
const E =
|
|
27173
|
+
const E = al(t), N = Jl(a, [Xc("config", t)]);
|
|
27174
27174
|
return pC(E, N, a, c, m, b, x);
|
|
27175
27175
|
}, Vy = (t, a, c, m, b, x) => {
|
|
27176
27176
|
const E = t, N = Jl(a, [Gd("config", t)]);
|
|
@@ -27214,7 +27214,7 @@ Required: ` + a.join(", "));
|
|
|
27214
27214
|
handlers: (se) => N(se).map((pe) => bn(m, "events").getOr(() => ({}))(pe.config, pe.state)).getOr({})
|
|
27215
27215
|
};
|
|
27216
27216
|
return Z;
|
|
27217
|
-
}, Cd = { init: () => Zu({ readState: ee("No State required") }) }, Zu = (t) => t, Dn = (t) => xr(t), kE =
|
|
27217
|
+
}, Cd = { init: () => Zu({ readState: ee("No State required") }) }, Zu = (t) => t, Dn = (t) => xr(t), kE = al([
|
|
27218
27218
|
ln("fields"),
|
|
27219
27219
|
ln("name"),
|
|
27220
27220
|
kt("active", {}),
|
|
@@ -27224,7 +27224,7 @@ Required: ` + a.join(", "));
|
|
|
27224
27224
|
]), ti = (t) => {
|
|
27225
27225
|
const a = Xl("Creating behaviour: " + t.name, kE, t);
|
|
27226
27226
|
return yh(a.fields, a.name, a.active, a.apis, a.extra, a.state);
|
|
27227
|
-
}, AE =
|
|
27227
|
+
}, AE = al([
|
|
27228
27228
|
ln("branchKey"),
|
|
27229
27229
|
ln("branches"),
|
|
27230
27230
|
ln("name"),
|
|
@@ -27902,7 +27902,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ie(a, (c) => c.name),
|
|
|
27902
27902
|
if (a === void 0)
|
|
27903
27903
|
throw new Error("Value.set was undefined");
|
|
27904
27904
|
t.dom.value = a;
|
|
27905
|
-
}, GO = (t, a, c) =>
|
|
27905
|
+
}, GO = (t, a, c) => Qi(t, a).map((b) => {
|
|
27906
27906
|
if (c.exists((E) => !ws(E, b))) {
|
|
27907
27907
|
const E = c.map(Ps).getOr("span"), N = qt.fromTag(E);
|
|
27908
27908
|
return fd(b, N), N;
|
|
@@ -27916,10 +27916,10 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ie(a, (c) => c.name),
|
|
|
27916
27916
|
const m = Ie(a, c), b = Zr(t);
|
|
27917
27917
|
return dt(b.slice(m.length), Yc), m;
|
|
27918
27918
|
}, Qd = (t, a, c, m) => {
|
|
27919
|
-
const b =
|
|
27919
|
+
const b = Qi(t, a), x = m(c, b), E = GO(t, a, b);
|
|
27920
27920
|
return Jy(t, x.element, E), x;
|
|
27921
27921
|
}, XE = (t, a, c) => q1(t, a, (m, b) => Qd(t, b, m, c)), JE = (t, a) => q1(t, a, (c, m) => {
|
|
27922
|
-
const b =
|
|
27922
|
+
const b = Qi(t, m);
|
|
27923
27923
|
return Jy(t, c, b), c;
|
|
27924
27924
|
}), Qy = (t, a) => {
|
|
27925
27925
|
const c = Nn(t), m = Nn(a), b = Be(m, c), x = Ro(t, (E, N) => !Xo(a, N) || E !== a[N]).t;
|
|
@@ -28017,7 +28017,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ie(a, (c) => c.name),
|
|
|
28017
28017
|
return vt;
|
|
28018
28018
|
}, XO = (t, a) => {
|
|
28019
28019
|
const c = bn(t, "components").getOr([]);
|
|
28020
|
-
return a.fold(() => Ie(c, oc), (m) => Ie(c, (b, x) => sw(b,
|
|
28020
|
+
return a.fold(() => Ie(c, oc), (m) => Ie(c, (b, x) => sw(b, Qi(m, x))));
|
|
28021
28021
|
}, nT = (t, a) => {
|
|
28022
28022
|
const {
|
|
28023
28023
|
events: c,
|
|
@@ -28035,7 +28035,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ie(a, (c) => c.name),
|
|
|
28035
28035
|
const a = qt.fromText(t);
|
|
28036
28036
|
return Y1({ element: a });
|
|
28037
28037
|
}, Y1 = (t) => {
|
|
28038
|
-
const a = Xl("external.component",
|
|
28038
|
+
const a = Xl("external.component", al([
|
|
28039
28039
|
ln("element"),
|
|
28040
28040
|
er("uid")
|
|
28041
28041
|
]), t), c = xo(zb()), m = (N) => {
|
|
@@ -28118,7 +28118,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ie(a, (c) => c.name),
|
|
|
28118
28118
|
we(m, K1);
|
|
28119
28119
|
}
|
|
28120
28120
|
};
|
|
28121
|
-
}, dT = (t, a) => uT(a).exists((c) => Dp(t, c)), Dp = (t, a) => MC(a, (c) => ws(c, t.element), be) || dT(t, a),
|
|
28121
|
+
}, dT = (t, a) => uT(a).exists((c) => Dp(t, c)), Dp = (t, a) => MC(a, (c) => ws(c, t.element), be) || dT(t, a), il = (t, a, c, m, b, x, E, N = !1) => ({
|
|
28122
28122
|
x: t,
|
|
28123
28123
|
y: a,
|
|
28124
28124
|
bubble: c,
|
|
@@ -28158,19 +28158,19 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ie(a, (c) => c.name),
|
|
|
28158
28158
|
return se ? _d(Le, t.y, t.bottom) : _d(Le, t.x, t.right);
|
|
28159
28159
|
}).getOr(z), b = m("left", t.x), x = m("top", t.y), E = m("right", t.right), N = m("bottom", t.bottom);
|
|
28160
28160
|
return ta(b, x, E - b, N - x);
|
|
28161
|
-
}, _g = "layout", FC = (t) => t.x, LC = (t, a) => t.x + t.width / 2 - a.width / 2, vT = (t, a) => t.x + t.width - a.width, aw = (t, a) => t.y - a.height, HC = (t) => t.y + t.height, VC = (t, a) => t.y + t.height / 2 - a.height / 2, t$ = (t) => t.x + t.width, n$ = (t, a) => t.x - a.width, fi = (t, a, c) =>
|
|
28161
|
+
}, _g = "layout", FC = (t) => t.x, LC = (t, a) => t.x + t.width / 2 - a.width / 2, vT = (t, a) => t.x + t.width - a.width, aw = (t, a) => t.y - a.height, HC = (t) => t.y + t.height, VC = (t, a) => t.y + t.height / 2 - a.height / 2, t$ = (t) => t.x + t.width, n$ = (t, a) => t.x - a.width, fi = (t, a, c) => il(FC(t), HC(t), c.southeast(), rw(), "southeast", Pl(t, {
|
|
28162
28162
|
left: 1,
|
|
28163
28163
|
top: 3
|
|
28164
|
-
}), _g), Si = (t, a, c) =>
|
|
28164
|
+
}), _g), Si = (t, a, c) => il(vT(t, a), HC(t), c.southwest(), IC(), "southwest", Pl(t, {
|
|
28165
28165
|
right: 0,
|
|
28166
28166
|
top: 3
|
|
28167
|
-
}), _g), xl = (t, a, c) =>
|
|
28167
|
+
}), _g), xl = (t, a, c) => il(FC(t), aw(t, a), c.northeast(), PC(), "northeast", Pl(t, {
|
|
28168
28168
|
left: 1,
|
|
28169
28169
|
bottom: 2
|
|
28170
|
-
}), _g), mi = (t, a, c) =>
|
|
28170
|
+
}), _g), mi = (t, a, c) => il(vT(t, a), aw(t, a), c.northwest(), BC(), "northwest", Pl(t, {
|
|
28171
28171
|
right: 0,
|
|
28172
28172
|
bottom: 2
|
|
28173
|
-
}), _g), Vi = (t, a, c) =>
|
|
28173
|
+
}), _g), Vi = (t, a, c) => il(LC(t, a), aw(t, a), c.north(), gT(), "north", Pl(t, { bottom: 2 }), _g), Ai = (t, a, c) => il(LC(t, a), HC(t), c.south(), mT(), "south", Pl(t, { top: 3 }), _g), zC = (t, a, c) => il(t$(t), VC(t, a), c.east(), pT(), "east", Pl(t, { left: 0 }), _g), Wb = (t, a, c) => il(n$(t, a), VC(t, a), c.west(), hT(), "west", Pl(t, { right: 1 }), _g), Zb = () => [
|
|
28174
28174
|
fi,
|
|
28175
28175
|
Si,
|
|
28176
28176
|
xl,
|
|
@@ -28179,7 +28179,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ie(a, (c) => c.name),
|
|
|
28179
28179
|
Vi,
|
|
28180
28180
|
zC,
|
|
28181
28181
|
Wb
|
|
28182
|
-
],
|
|
28182
|
+
], ll = () => [
|
|
28183
28183
|
Si,
|
|
28184
28184
|
fi,
|
|
28185
28185
|
mi,
|
|
@@ -28227,7 +28227,7 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
28227
28227
|
P.onReceive(a, Z);
|
|
28228
28228
|
});
|
|
28229
28229
|
})])
|
|
28230
|
-
}), s$ = [Js("channels", bd(ds.value,
|
|
28230
|
+
}), s$ = [Js("channels", bd(ds.value, al([
|
|
28231
28231
|
qu("onReceive"),
|
|
28232
28232
|
kt("schema", zu())
|
|
28233
28233
|
])))];
|
|
@@ -28282,7 +28282,7 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
28282
28282
|
return Ff("absolute", M.some(c.x), M.some(c.y), M.none(), M.none());
|
|
28283
28283
|
}, (c, m, b, x) => WC("absolute", a, c, m, b, x), (c, m, b, x) => WC("fixed", a, c, m, b, x)), uw = (t, a) => {
|
|
28284
28284
|
const c = lt(pd, a), m = t.fold(c, c, () => {
|
|
28285
|
-
const E =
|
|
28285
|
+
const E = ol();
|
|
28286
28286
|
return pd(a).translate(-E.left, -E.top);
|
|
28287
28287
|
}), b = Rt(a), x = yu(a);
|
|
28288
28288
|
return ta(m.left, m.top, b, x);
|
|
@@ -28291,7 +28291,7 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
28291
28291
|
return ta(m.left, m.top, c.width, c.height);
|
|
28292
28292
|
})), ST = (t, a, c) => {
|
|
28293
28293
|
const m = Or(a, c), b = () => {
|
|
28294
|
-
const x =
|
|
28294
|
+
const x = ol();
|
|
28295
28295
|
return m.translate(-x.left, -x.top);
|
|
28296
28296
|
};
|
|
28297
28297
|
return t.fold(ee(m), ee(m), b);
|
|
@@ -28375,7 +28375,7 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
28375
28375
|
layout: "none",
|
|
28376
28376
|
testY: c.y
|
|
28377
28377
|
}, -1, -1, !1)).fold(We, We);
|
|
28378
|
-
}, kT = Ne, zc = (t, a, c) =>
|
|
28378
|
+
}, kT = Ne, zc = (t, a, c) => nl(t, a, kT, c), mw = (t, a, c) => sg(t, a, kT, c), AT = dd, GC = [
|
|
28379
28379
|
"top",
|
|
28380
28380
|
"bottom",
|
|
28381
28381
|
"right",
|
|
@@ -28610,7 +28610,7 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
28610
28610
|
oa("placement", jc)
|
|
28611
28611
|
];
|
|
28612
28612
|
const ev = (t, a, c) => {
|
|
28613
|
-
const m = ST(c, a.x, a.y), b = ta(m.left, m.top, a.width, a.height), x = bw(t.element, a, Zb(),
|
|
28613
|
+
const m = ST(c, a.x, a.y), b = ta(m.left, m.top, a.width, a.height), x = bw(t.element, a, Zb(), ll(), Zb(), ll(), M.none());
|
|
28614
28614
|
return M.some(hw({
|
|
28615
28615
|
anchorBox: b,
|
|
28616
28616
|
bubble: a.bubble,
|
|
@@ -28650,7 +28650,7 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
28650
28650
|
};
|
|
28651
28651
|
return M.from(m.frameElement).map(qt.fromDom).filter(b).map(ii);
|
|
28652
28652
|
}, nS = (t, a, c) => {
|
|
28653
|
-
const m = Cr(t.element), b =
|
|
28653
|
+
const m = Cr(t.element), b = ol(m), x = Jb(t, a, c).getOr(b);
|
|
28654
28654
|
return w$(x, b.left, b.top);
|
|
28655
28655
|
}, oS = (t, a, c, m) => {
|
|
28656
28656
|
const b = y$(Or(t, a));
|
|
@@ -28903,16 +28903,16 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
28903
28903
|
kt("showAbove", !1),
|
|
28904
28904
|
oa("placement", rv)
|
|
28905
28905
|
];
|
|
28906
|
-
const Ih = "link-layout", Tg = (t) => t.x + t.width, pS = (t, a) => t.x - a.width, Om = (t, a) => t.y - a.height + t.height, tf = (t) => t.y, $m = (t, a, c) =>
|
|
28906
|
+
const Ih = "link-layout", Tg = (t) => t.x + t.width, pS = (t, a) => t.x - a.width, Om = (t, a) => t.y - a.height + t.height, tf = (t) => t.y, $m = (t, a, c) => il(Tg(t), tf(t), c.southeast(), rw(), "southeast", Pl(t, {
|
|
28907
28907
|
left: 0,
|
|
28908
28908
|
top: 2
|
|
28909
|
-
}), Ih), hS = (t, a, c) =>
|
|
28909
|
+
}), Ih), hS = (t, a, c) => il(pS(t, a), tf(t), c.southwest(), IC(), "southwest", Pl(t, {
|
|
28910
28910
|
right: 1,
|
|
28911
28911
|
top: 2
|
|
28912
|
-
}), Ih), zf = (t, a, c) =>
|
|
28912
|
+
}), Ih), zf = (t, a, c) => il(Tg(t), Om(t, a), c.northeast(), PC(), "northeast", Pl(t, {
|
|
28913
28913
|
left: 0,
|
|
28914
28914
|
bottom: 3
|
|
28915
|
-
}), Ih), vS = (t, a, c) =>
|
|
28915
|
+
}), Ih), vS = (t, a, c) => il(pS(t, a), Om(t, a), c.northwest(), BC(), "northwest", Pl(t, {
|
|
28916
28916
|
right: 1,
|
|
28917
28917
|
bottom: 3
|
|
28918
28918
|
}), Ih), Ph = () => [
|
|
@@ -29166,20 +29166,20 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
29166
29166
|
active: ck,
|
|
29167
29167
|
apis: $$,
|
|
29168
29168
|
state: M$
|
|
29169
|
-
}), Fp = ee("dismiss.popups"), kg = ee("reposition.popups"), Nw = ee("mouse.released"), bS =
|
|
29169
|
+
}), Fp = ee("dismiss.popups"), kg = ee("reposition.popups"), Nw = ee("mouse.released"), bS = al([
|
|
29170
29170
|
kt("isExtraPart", be),
|
|
29171
29171
|
Jl("fireEventInstead", [kt("event", bp())])
|
|
29172
29172
|
]), Au = (t) => {
|
|
29173
29173
|
const a = Xl("Dismissal", bS, t);
|
|
29174
29174
|
return {
|
|
29175
29175
|
[Fp()]: {
|
|
29176
|
-
schema:
|
|
29176
|
+
schema: al([ln("target")]),
|
|
29177
29177
|
onReceive: (c, m) => {
|
|
29178
29178
|
Gs.isOpen(c) && (Gs.isPartOf(c, m.target) || a.isExtraPart(c, m.target) || a.fireEventInstead.fold(() => Gs.close(c), (x) => Os(c, x.event)));
|
|
29179
29179
|
}
|
|
29180
29180
|
}
|
|
29181
29181
|
};
|
|
29182
|
-
}, R$ =
|
|
29182
|
+
}, R$ = al([
|
|
29183
29183
|
Jl("fireEventInstead", [kt("event", vh())]),
|
|
29184
29184
|
Li("doReposition")
|
|
29185
29185
|
]), Hh = (t) => {
|
|
@@ -29354,11 +29354,11 @@ Receiver: ` + tu(a.element), z, x.data);
|
|
|
29354
29354
|
}
|
|
29355
29355
|
},
|
|
29356
29356
|
state: yS
|
|
29357
|
-
}),
|
|
29357
|
+
}), cl = (t, a) => U(t, {}, Ie(a, (c) => lC(c.name(), "Cannot configure " + c.name() + " for " + t)).concat([Xs("dump", We)])), Mw = (t) => t.dump, ni = (t, a) => ({
|
|
29358
29358
|
...Dn(a),
|
|
29359
29359
|
...t.dump
|
|
29360
29360
|
}), Ju = {
|
|
29361
|
-
field:
|
|
29361
|
+
field: cl,
|
|
29362
29362
|
augment: ni,
|
|
29363
29363
|
get: Mw
|
|
29364
29364
|
}, Rw = "placeholder", jh = $e.generate([
|
|
@@ -29556,7 +29556,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
29556
29556
|
kt("debug.sketcher", {})
|
|
29557
29557
|
]).concat(a), Vw = (t, a, c, m, b) => {
|
|
29558
29558
|
const x = _k(m, b);
|
|
29559
|
-
return Xl(t + " [SpecSchema]",
|
|
29559
|
+
return Xl(t + " [SpecSchema]", al(x.concat(a)), c);
|
|
29560
29560
|
}, z$ = (t, a, c, m) => {
|
|
29561
29561
|
const b = IS(m), x = Vw(t, a, b, [], []);
|
|
29562
29562
|
return c(x, b);
|
|
@@ -29566,13 +29566,13 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
29566
29566
|
}, Ek = (t) => Xo(t, "uid"), IS = (t) => Ek(t) ? t : {
|
|
29567
29567
|
...t,
|
|
29568
29568
|
uid: kh("uid")
|
|
29569
|
-
}, Tk = (t) => t.uid !== void 0, Dg =
|
|
29569
|
+
}, Tk = (t) => t.uid !== void 0, Dg = al([
|
|
29570
29570
|
ln("name"),
|
|
29571
29571
|
ln("factory"),
|
|
29572
29572
|
ln("configFields"),
|
|
29573
29573
|
kt("apis", {}),
|
|
29574
29574
|
kt("extraApis", {})
|
|
29575
|
-
]), zw =
|
|
29575
|
+
]), zw = al([
|
|
29576
29576
|
ln("name"),
|
|
29577
29577
|
ln("factory"),
|
|
29578
29578
|
ln("configFields"),
|
|
@@ -30541,7 +30541,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
30541
30541
|
ln("dom"),
|
|
30542
30542
|
ln("components"),
|
|
30543
30543
|
kt("eventOrder", {}),
|
|
30544
|
-
|
|
30544
|
+
cl("menuBehaviours", [
|
|
30545
30545
|
ke,
|
|
30546
30546
|
to,
|
|
30547
30547
|
Vs,
|
|
@@ -30691,10 +30691,10 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
30691
30691
|
init: FW,
|
|
30692
30692
|
extractPreparedMenu: e8
|
|
30693
30693
|
}, x5 = no("tiered-menu-item-highlight"), t8 = no("tiered-menu-item-dehighlight");
|
|
30694
|
-
var
|
|
30694
|
+
var ul;
|
|
30695
30695
|
(function(t) {
|
|
30696
30696
|
t[t.HighlightMenuAndItem = 0] = "HighlightMenuAndItem", t[t.HighlightJustMenu = 1] = "HighlightJustMenu", t[t.HighlightNone = 2] = "HighlightNone";
|
|
30697
|
-
})(
|
|
30697
|
+
})(ul || (ul = {}));
|
|
30698
30698
|
const LW = (t, a) => {
|
|
30699
30699
|
const c = sr(), m = ($n, Qn, Qo) => $t(Qo, (vs, Bo) => {
|
|
30700
30700
|
const is = () => C0.sketch({
|
|
@@ -30810,7 +30810,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
30810
30810
|
}),
|
|
30811
30811
|
Dr(($n, Qn) => {
|
|
30812
30812
|
x($n).each((Qo) => {
|
|
30813
|
-
ns.append($n, ku(Qo)), t.onOpenMenu($n, Qo), t.highlightOnOpen ===
|
|
30813
|
+
ns.append($n, ku(Qo)), t.onOpenMenu($n, Qo), t.highlightOnOpen === ul.HighlightMenuAndItem ? Z($n, Qo) : t.highlightOnOpen === ul.HighlightJustMenu && z($n, Qo);
|
|
30814
30814
|
});
|
|
30815
30815
|
}),
|
|
30816
30816
|
on(x5, ($n, Qn) => {
|
|
@@ -30899,7 +30899,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
30899
30899
|
qu("onOpenSubmenu"),
|
|
30900
30900
|
Zs("onRepositionMenu"),
|
|
30901
30901
|
Zs("onCollapseMenu"),
|
|
30902
|
-
kt("highlightOnOpen",
|
|
30902
|
+
kt("highlightOnOpen", ul.HighlightMenuAndItem),
|
|
30903
30903
|
Zd("data", [
|
|
30904
30904
|
ln("primary"),
|
|
30905
30905
|
ln("menus"),
|
|
@@ -30913,7 +30913,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
30913
30913
|
ln("dom"),
|
|
30914
30914
|
kt("navigateOnHover", !0),
|
|
30915
30915
|
kt("stayInDom", !1),
|
|
30916
|
-
|
|
30916
|
+
cl("tmenuBehaviours", [
|
|
30917
30917
|
Ao,
|
|
30918
30918
|
ke,
|
|
30919
30919
|
Vs,
|
|
@@ -31069,7 +31069,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
31069
31069
|
Zs("onShow"),
|
|
31070
31070
|
Zs("onHide"),
|
|
31071
31071
|
Pf("onEscape"),
|
|
31072
|
-
|
|
31072
|
+
cl("inlineBehaviours", [
|
|
31073
31073
|
Gs,
|
|
31074
31074
|
to,
|
|
31075
31075
|
ou
|
|
@@ -32579,7 +32579,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
32579
32579
|
$r("toInputValue", We),
|
|
32580
32580
|
kt("styles", {}),
|
|
32581
32581
|
kt("eventOrder", {}),
|
|
32582
|
-
|
|
32582
|
+
cl("inputBehaviours", [
|
|
32583
32583
|
to,
|
|
32584
32584
|
Yo
|
|
32585
32585
|
]),
|
|
@@ -33709,7 +33709,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
33709
33709
|
}, Xf = (t, a) => a === ZD && t.options.isSet("color_map_foreground") ? Lm("color_map_foreground")(t) : a === GD && t.options.isSet("color_map_background") ? Lm("color_map_background")(t) : t.options.isSet("color_map_raw") ? Lm("color_map_raw")(t) : Lm("color_map")(t), YD = (t, a = "default") => Math.max(mG, Math.ceil(Math.sqrt(Xf(t, a).length))), sB = (t, a) => {
|
|
33710
33710
|
const c = Lm("color_cols")(t), m = YD(t, a);
|
|
33711
33711
|
return c === YD(t) ? m : c;
|
|
33712
|
-
}, I3 = (t, a = "default") => Math.round(a === ZD ? Lm("color_cols_foreground")(t) : a === GD ? Lm("color_cols_background")(t) : Lm("color_cols")(t)),
|
|
33712
|
+
}, I3 = (t, a = "default") => Math.round(a === ZD ? Lm("color_cols_foreground")(t) : a === GD ? Lm("color_cols_background")(t) : Lm("color_cols")(t)), dl = Lm("custom_colors"), hG = Lm("color_default_foreground"), vG = Lm("color_default_background"), bG = "rgba(0, 0, 0, 0)", yG = (t) => R3(t).exists((a) => a.alpha !== 0), wG = (t) => ju(t, (a) => {
|
|
33713
33713
|
if (us(a)) {
|
|
33714
33714
|
const c = sn(a, "background-color");
|
|
33715
33715
|
return bo(yG(c), c);
|
|
@@ -33779,7 +33779,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
33779
33779
|
icon: a === "forecolor" ? "text-color" : "highlight-bg-color",
|
|
33780
33780
|
select: cB(t, c),
|
|
33781
33781
|
columns: I3(t, c),
|
|
33782
|
-
fetch: iB(Xf(t, c), c,
|
|
33782
|
+
fetch: iB(Xf(t, c), c, dl(t)),
|
|
33783
33783
|
onAction: (b) => {
|
|
33784
33784
|
KD(t, c, m.get(), H);
|
|
33785
33785
|
},
|
|
@@ -34354,7 +34354,7 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
34354
34354
|
kt("getHotspot", M.some),
|
|
34355
34355
|
kt("getAnchorOverrides", ee({})),
|
|
34356
34356
|
Mp(),
|
|
34357
|
-
|
|
34357
|
+
cl("dropdownBehaviours", [
|
|
34358
34358
|
Es,
|
|
34359
34359
|
oi,
|
|
34360
34360
|
Ao,
|
|
@@ -34383,18 +34383,18 @@ Components: ` + JSON.stringify(a.components, null, 2));
|
|
|
34383
34383
|
xv.highlightPrimary(se);
|
|
34384
34384
|
});
|
|
34385
34385
|
}, E = (Z, se, pe) => rN(t, We, Z, m, se, pe), N = (Z) => {
|
|
34386
|
-
E(Z, x,
|
|
34386
|
+
E(Z, x, ul.HighlightMenuAndItem).get(H);
|
|
34387
34387
|
}, P = {
|
|
34388
34388
|
expand: (Z) => {
|
|
34389
|
-
Es.isOn(Z) || E(Z, H,
|
|
34389
|
+
Es.isOn(Z) || E(Z, H, ul.HighlightNone).get(H);
|
|
34390
34390
|
},
|
|
34391
34391
|
open: (Z) => {
|
|
34392
|
-
Es.isOn(Z) || E(Z, H,
|
|
34392
|
+
Es.isOn(Z) || E(Z, H, ul.HighlightMenuAndItem).get(H);
|
|
34393
34393
|
},
|
|
34394
|
-
refetch: (Z) => oi.getExistingCoupled(Z, "sandbox").fold(() => E(Z, H,
|
|
34394
|
+
refetch: (Z) => oi.getExistingCoupled(Z, "sandbox").fold(() => E(Z, H, ul.HighlightMenuAndItem).map(H), (pe) => B3(t, We, Z, pe, m, H, ul.HighlightMenuAndItem).map(H)),
|
|
34395
34395
|
isOpen: Es.isOn,
|
|
34396
34396
|
close: (Z) => {
|
|
34397
|
-
Es.isOn(Z) && E(Z, H,
|
|
34397
|
+
Es.isOn(Z) && E(Z, H, ul.HighlightMenuAndItem).get(H);
|
|
34398
34398
|
},
|
|
34399
34399
|
repositionMenus: (Z) => {
|
|
34400
34400
|
Es.isOn(Z) && TB(Z);
|
|
@@ -34890,7 +34890,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
34890
34890
|
},
|
|
34891
34891
|
configFields: [
|
|
34892
34892
|
kt("components", []),
|
|
34893
|
-
|
|
34893
|
+
cl("containerBehaviours", []),
|
|
34894
34894
|
kt("events", {}),
|
|
34895
34895
|
kt("domModification", {}),
|
|
34896
34896
|
kt("eventOrder", {})
|
|
@@ -35003,7 +35003,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
35003
35003
|
components: Ie(t.items, a.interpreter)
|
|
35004
35004
|
}), dq = ee([
|
|
35005
35005
|
kt("prefix", "form-field"),
|
|
35006
|
-
|
|
35006
|
+
cl("fieldBehaviours", [
|
|
35007
35007
|
Vs,
|
|
35008
35008
|
to
|
|
35009
35009
|
])
|
|
@@ -35833,7 +35833,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
35833
35833
|
oa("manager", kF)
|
|
35834
35834
|
]
|
|
35835
35835
|
})),
|
|
35836
|
-
|
|
35836
|
+
cl("sliderBehaviours", [
|
|
35837
35837
|
Ao,
|
|
35838
35838
|
to
|
|
35839
35839
|
]),
|
|
@@ -35977,7 +35977,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
35977
35977
|
Ce(b.element, "aria-valuenow", Math.floor(360 - E * 3.6)), $o(b, OF, { value: E });
|
|
35978
35978
|
}
|
|
35979
35979
|
});
|
|
35980
|
-
}, DF = "form", NF = [
|
|
35980
|
+
}, DF = "form", NF = [cl("formBehaviours", [to])], UN = (t) => "<alloy.field." + t + ">", tY = (t) => {
|
|
35981
35981
|
const a = (() => {
|
|
35982
35982
|
const x = [];
|
|
35983
35983
|
return {
|
|
@@ -36393,7 +36393,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
36393
36393
|
}, Ec = {
|
|
36394
36394
|
self: () => Vs.config({ find: M.some }),
|
|
36395
36395
|
memento: (t) => Vs.config({ find: t.getOpt }),
|
|
36396
|
-
childAt: (t) => Vs.config({ find: (a) =>
|
|
36396
|
+
childAt: (t) => Vs.config({ find: (a) => Qi(a.element, t).bind((c) => a.getSystem().getByDom(c).toOptional()) })
|
|
36397
36397
|
}, ZN = qo([
|
|
36398
36398
|
kt("preprocess", We),
|
|
36399
36399
|
kt("postprocess", We)
|
|
@@ -37216,7 +37216,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
37216
37216
|
name: "HtmlSelect",
|
|
37217
37217
|
configFields: [
|
|
37218
37218
|
ln("options"),
|
|
37219
|
-
|
|
37219
|
+
cl("selectBehaviours", [
|
|
37220
37220
|
Yo,
|
|
37221
37221
|
to
|
|
37222
37222
|
]),
|
|
@@ -38248,7 +38248,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
38248
38248
|
const He = (wt) => {
|
|
38249
38249
|
Vs.getCurrent(wt).each(_e);
|
|
38250
38250
|
};
|
|
38251
|
-
B3(t, E(se), se, Le, m, He,
|
|
38251
|
+
B3(t, E(se), se, Le, m, He, ul.HighlightMenuAndItem).get(H);
|
|
38252
38252
|
}
|
|
38253
38253
|
}, x = Q8(t), E = (se) => (pe) => pe.map((_e) => {
|
|
38254
38254
|
const Le = nr(_e.menus), He = q(Le, (Ye) => ht(Ye.items, (_t) => _t.type === "item"));
|
|
@@ -38290,7 +38290,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
38290
38290
|
});
|
|
38291
38291
|
});
|
|
38292
38292
|
};
|
|
38293
|
-
B3(t, E(se), se, _e, m, wt,
|
|
38293
|
+
B3(t, E(se), se, _e, m, wt, ul.HighlightJustMenu).get(H);
|
|
38294
38294
|
}
|
|
38295
38295
|
},
|
|
38296
38296
|
cancelEvent: Cl()
|
|
@@ -38336,7 +38336,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
38336
38336
|
}),
|
|
38337
38337
|
wg((se) => {
|
|
38338
38338
|
const pe = H;
|
|
38339
|
-
rN(t, E(se), se, m, pe,
|
|
38339
|
+
rN(t, E(se), se, m, pe, ul.HighlightMenuAndItem).get(H);
|
|
38340
38340
|
}),
|
|
38341
38341
|
on(v6(), (se, pe) => {
|
|
38342
38342
|
const _e = oi.getCoupled(se, "sandbox");
|
|
@@ -38396,7 +38396,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
38396
38396
|
Hf(["openClass"]),
|
|
38397
38397
|
er("initialData"),
|
|
38398
38398
|
er("listRole"),
|
|
38399
|
-
|
|
38399
|
+
cl("typeaheadBehaviours", [
|
|
38400
38400
|
Yo,
|
|
38401
38401
|
to,
|
|
38402
38402
|
h6,
|
|
@@ -39025,24 +39025,24 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39025
39025
|
}, RL = (t, a, c, m, b) => {
|
|
39026
39026
|
const x = Yr(m, { shared: { interpreter: (E) => TA(t, E, c, x, b) } });
|
|
39027
39027
|
return TA(t, a, c, x, b);
|
|
39028
|
-
}, TA = (t, a, c, m, b) => bn(yK, a.type).fold(() => (console.error(`Unknown factory type "${a.type}", defaulting to container: `, a), a), (x) => x(t, a, c, m, b)), mf = (t, a, c, m) => TA(wK, t, a, c, m), Yp = "layout-inset", T6 = (t) => t.x, IL = (t, a) => t.x + t.width / 2 - a.width / 2, k6 = (t, a) => t.x + t.width - a.width, A6 = (t) => t.y, O6 = (t, a) => t.y + t.height - a.height, $6 = (t, a) => t.y + t.height / 2 - a.height / 2, r_ = (t, a, c) =>
|
|
39028
|
+
}, TA = (t, a, c, m, b) => bn(yK, a.type).fold(() => (console.error(`Unknown factory type "${a.type}", defaulting to container: `, a), a), (x) => x(t, a, c, m, b)), mf = (t, a, c, m) => TA(wK, t, a, c, m), Yp = "layout-inset", T6 = (t) => t.x, IL = (t, a) => t.x + t.width / 2 - a.width / 2, k6 = (t, a) => t.x + t.width - a.width, A6 = (t) => t.y, O6 = (t, a) => t.y + t.height - a.height, $6 = (t, a) => t.y + t.height / 2 - a.height / 2, r_ = (t, a, c) => il(k6(t, a), O6(t, a), c.insetSouthwest(), BC(), "southwest", Pl(t, {
|
|
39029
39029
|
right: 0,
|
|
39030
39030
|
bottom: 3
|
|
39031
|
-
}), Yp), D6 = (t, a, c) =>
|
|
39031
|
+
}), Yp), D6 = (t, a, c) => il(T6(t), O6(t, a), c.insetSoutheast(), PC(), "southeast", Pl(t, {
|
|
39032
39032
|
left: 1,
|
|
39033
39033
|
bottom: 3
|
|
39034
|
-
}), Yp), kA = (t, a, c) =>
|
|
39034
|
+
}), Yp), kA = (t, a, c) => il(k6(t, a), A6(t), c.insetNorthwest(), IC(), "northwest", Pl(t, {
|
|
39035
39035
|
right: 0,
|
|
39036
39036
|
top: 2
|
|
39037
|
-
}), Yp),
|
|
39037
|
+
}), Yp), fl = (t, a, c) => il(T6(t), A6(t), c.insetNortheast(), rw(), "northeast", Pl(t, {
|
|
39038
39038
|
left: 1,
|
|
39039
39039
|
top: 2
|
|
39040
|
-
}), Yp), gf = (t, a, c) =>
|
|
39040
|
+
}), Yp), gf = (t, a, c) => il(IL(t, a), A6(t), c.insetNorth(), mT(), "north", Pl(t, { top: 2 }), Yp), a_ = (t, a, c) => il(IL(t, a), O6(t, a), c.insetSouth(), gT(), "south", Pl(t, { bottom: 3 }), Yp), i_ = (t, a, c) => il(k6(t, a), $6(t, a), c.insetEast(), hT(), "east", Pl(t, { right: 0 }), Yp), PL = (t, a, c) => il(T6(t), $6(t, a), c.insetWest(), pT(), "west", Pl(t, { left: 1 }), Yp), CK = (t) => {
|
|
39041
39041
|
switch (t) {
|
|
39042
39042
|
case "north":
|
|
39043
39043
|
return gf;
|
|
39044
39044
|
case "northeast":
|
|
39045
|
-
return
|
|
39045
|
+
return fl;
|
|
39046
39046
|
case "northwest":
|
|
39047
39047
|
return kA;
|
|
39048
39048
|
case "south":
|
|
@@ -39067,7 +39067,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39067
39067
|
case "south":
|
|
39068
39068
|
return gf;
|
|
39069
39069
|
case "southeast":
|
|
39070
|
-
return
|
|
39070
|
+
return fl;
|
|
39071
39071
|
case "southwest":
|
|
39072
39072
|
return kA;
|
|
39073
39073
|
case "east":
|
|
@@ -39091,7 +39091,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39091
39091
|
node: M.from(t()),
|
|
39092
39092
|
bubble: Uc(12, 12, l_),
|
|
39093
39093
|
layouts: {
|
|
39094
|
-
onRtl: () => [
|
|
39094
|
+
onRtl: () => [fl],
|
|
39095
39095
|
onLtr: () => [kA]
|
|
39096
39096
|
},
|
|
39097
39097
|
overrides: b
|
|
@@ -39193,7 +39193,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39193
39193
|
};
|
|
39194
39194
|
}, TK = (t) => (a, c) => {
|
|
39195
39195
|
fB(t)(a, c);
|
|
39196
|
-
}, HL = (t) => () =>
|
|
39196
|
+
}, HL = (t) => () => dl(t), kK = (t) => (a) => Xf(t, a), AK = (t) => (a) => I3(t, a), VL = (t) => ({
|
|
39197
39197
|
colorPicker: TK(t),
|
|
39198
39198
|
hasCustomColors: HL(t),
|
|
39199
39199
|
getColors: kK(t),
|
|
@@ -39680,7 +39680,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39680
39680
|
}), S2 = ee([
|
|
39681
39681
|
ln("dom"),
|
|
39682
39682
|
kt("shell", !0),
|
|
39683
|
-
|
|
39683
|
+
cl("toolbarBehaviours", [ns])
|
|
39684
39684
|
]), eX = ee([ru({
|
|
39685
39685
|
name: "groups",
|
|
39686
39686
|
overrides: () => ({ behaviours: Dn([ns.config({})]) })
|
|
@@ -39731,7 +39731,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39731
39731
|
fadeOutClass: "tox-editor-dock-fadeout",
|
|
39732
39732
|
transitionClass: "tox-editor-dock-transition"
|
|
39733
39733
|
}, Z6 = "tox-tinymce--toolbar-sticky-on", r9 = "tox-tinymce--toolbar-sticky-off", oX = (t, a) => {
|
|
39734
|
-
const c = Cr(a), b = bl(a).dom.innerHeight, x =
|
|
39734
|
+
const c = Cr(a), b = bl(a).dom.innerHeight, x = ol(c), E = qt.fromDom(t.elm), N = Dl(E), P = Oa(E), z = N.y, Z = z + P, se = ii(a), pe = Oa(a), _e = se.top, Le = _e + pe, He = Math.abs(_e - x.top) < 2, wt = Math.abs(Le - (x.top + b)) < 2;
|
|
39735
39735
|
if (He && z < Le)
|
|
39736
39736
|
Vd(x.left, z - pe, c);
|
|
39737
39737
|
else if (wt && Z > _e) {
|
|
@@ -39761,7 +39761,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39761
39761
|
a ? (ja(c, Z6), Ja(c, r9)) : (ja(c, r9), Ja(c, Z6));
|
|
39762
39762
|
}, sX = (t, a) => {
|
|
39763
39763
|
const c = Cr(a);
|
|
39764
|
-
Ed(c).filter((m) => !ws(a, m)).filter((m) => ws(m, qt.fromDom(c.dom.body)) ||
|
|
39764
|
+
Ed(c).filter((m) => !ws(a, m)).filter((m) => ws(m, qt.fromDom(c.dom.body)) || Ji(t, m)).each(() => bc(a));
|
|
39765
39765
|
}, l9 = (t, a) => yc(t).orThunk(() => a().toOptional().bind((c) => yc(c.element))), c9 = (t, a, c) => {
|
|
39766
39766
|
t.inline || (a.header.isPositionedAtTop() || t.on("ResizeEditor", () => {
|
|
39767
39767
|
c().each(fa.reset);
|
|
@@ -39991,7 +39991,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
39991
39991
|
innerHtml: lX
|
|
39992
39992
|
}
|
|
39993
39993
|
}]
|
|
39994
|
-
}), p9 = "container", x2 = [
|
|
39994
|
+
}), p9 = "container", x2 = [cl("slotBehaviours", [])], _2 = (t) => "<alloy.field." + t + ">", K6 = (t) => {
|
|
39995
39995
|
const a = (() => {
|
|
39996
39996
|
const x = [];
|
|
39997
39997
|
return {
|
|
@@ -40333,7 +40333,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
40333
40333
|
const P = Fe(b.element), z = RX(P, a.builtGroups.get(), (Z) => Math.ceil(Z.element.dom.getBoundingClientRect().width), x);
|
|
40334
40334
|
z.extra.length === 0 ? (ns.remove(b, x), c([])) : (w9(b, z.within), c(z.extra)), Cs(b.element, "visibility"), Ii(b.element), N.each(Yo.focus);
|
|
40335
40335
|
}, C9 = ee([
|
|
40336
|
-
|
|
40336
|
+
cl("splitToolbarBehaviours", [oi]),
|
|
40337
40337
|
Xs("builtGroups", () => xo([]))
|
|
40338
40338
|
]), PX = ee([
|
|
40339
40339
|
Hf(["overflowToggledClass"]),
|
|
@@ -40503,7 +40503,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
40503
40503
|
}), y_ = ee([
|
|
40504
40504
|
ln("items"),
|
|
40505
40505
|
Hf(["itemSelector"]),
|
|
40506
|
-
|
|
40506
|
+
cl("tgroupBehaviours", [Ao])
|
|
40507
40507
|
]), HX = ee([Zh({
|
|
40508
40508
|
name: "items",
|
|
40509
40509
|
unit: "item"
|
|
@@ -42141,7 +42141,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
42141
42141
|
er("lazySink"),
|
|
42142
42142
|
ln("dom"),
|
|
42143
42143
|
Zs("onOpen"),
|
|
42144
|
-
|
|
42144
|
+
cl("splitDropdownBehaviours", [
|
|
42145
42145
|
oi,
|
|
42146
42146
|
Ao,
|
|
42147
42147
|
Yo
|
|
@@ -42221,7 +42221,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
42221
42221
|
ke.highlightFirst(se), Ao.focusIn(se);
|
|
42222
42222
|
});
|
|
42223
42223
|
}, x = (Z) => {
|
|
42224
|
-
rN(t, We, Z, m, b,
|
|
42224
|
+
rN(t, We, Z, m, b, ul.HighlightMenuAndItem).get(H);
|
|
42225
42225
|
}, E = (Z) => (x(Z), M.some(!0)), N = (Z) => {
|
|
42226
42226
|
const se = jf(Z, t, "button");
|
|
42227
42227
|
return Lc(se), M.some(!0);
|
|
@@ -42783,7 +42783,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
42783
42783
|
});
|
|
42784
42784
|
}, Xt = () => {
|
|
42785
42785
|
b.on((So) => {
|
|
42786
|
-
const $n = Z.getOrThunk(() => Su().width -
|
|
42786
|
+
const $n = Z.getOrThunk(() => Su().width - el(a).left - 10);
|
|
42787
42787
|
Rn(So.element, "max-width", $n + "px");
|
|
42788
42788
|
});
|
|
42789
42789
|
}, qn = (So, $n) => {
|
|
@@ -42796,7 +42796,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
42796
42796
|
const wf = ci(Tc), Zm = (yf = Tc.dom.scrollTop) !== null && yf !== void 0 ? yf : 0, Qp = ws(Tc, pt()) ? Math.max(Bo.y - Oa(Qn.element) + vs, 0) : Bo.y - wf.y + Zm - Oa(Qn.element) + vs;
|
|
42797
42797
|
return pe() ? Qp : Bo.bottom;
|
|
42798
42798
|
}), rd = Lr(), La = bo(So, Math.ceil(x.outerContainer.element.dom.getBoundingClientRect().width)).filter((Tc) => Tc > _e).map((Tc) => {
|
|
42799
|
-
const yf = $n.getOr(
|
|
42799
|
+
const yf = $n.getOr(ol()), wf = window.innerWidth - (rd - yf.left), Zm = Math.max(Math.min(Tc, wf), _e);
|
|
42800
42800
|
return wf < Tc && Rn(x.outerContainer.element, "width", Zm + "px"), { width: Zm + "px" };
|
|
42801
42801
|
}).getOr({ width: "max-content" }), bf = {
|
|
42802
42802
|
position: "absolute",
|
|
@@ -42816,9 +42816,9 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
42816
42816
|
if (!Ye())
|
|
42817
42817
|
return;
|
|
42818
42818
|
P || Xt();
|
|
42819
|
-
const $n =
|
|
42819
|
+
const $n = ol(), Qn = P ? !1 : Jn();
|
|
42820
42820
|
if (He && aa.refreshToolbar(x.outerContainer), !P) {
|
|
42821
|
-
const Qo =
|
|
42821
|
+
const Qo = ol(), vs = bo($n.left !== Qo.left, $n);
|
|
42822
42822
|
qn(Qn, vs), vs.each((Bo) => {
|
|
42823
42823
|
Vd(Bo.left, Qo.top);
|
|
42824
42824
|
});
|
|
@@ -42870,7 +42870,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
42870
42870
|
let E = 0;
|
|
42871
42871
|
const N = GN(() => c.update(fa.refresh), 33);
|
|
42872
42872
|
t.on("ScrollWindow", () => {
|
|
42873
|
-
const z =
|
|
42873
|
+
const z = ol().left;
|
|
42874
42874
|
z !== E && (E = z, N.throttle()), c.updateMode();
|
|
42875
42875
|
}), qh(t) && t.on("ElementScroll", (z) => {
|
|
42876
42876
|
c.update(fa.refresh);
|
|
@@ -43333,7 +43333,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
43333
43333
|
}, OM = (t) => {
|
|
43334
43334
|
const a = t.selection.getRng(), c = GH(a);
|
|
43335
43335
|
if (t.inline) {
|
|
43336
|
-
const m =
|
|
43336
|
+
const m = ol();
|
|
43337
43337
|
return ta(m.left + c.left, m.top + c.top, c.width, c.height);
|
|
43338
43338
|
} else {
|
|
43339
43339
|
const m = Dl(qt.fromDom(t.getBody()));
|
|
@@ -43401,7 +43401,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
43401
43401
|
if (E)
|
|
43402
43402
|
return KH(a, m.getMode(), () => ZH(x, ci(a), -20) && !m.isReposition() ? xK : BL);
|
|
43403
43403
|
{
|
|
43404
|
-
const N = m.getMode() === "fixed" ? b.y +
|
|
43404
|
+
const N = m.getMode() === "fixed" ? b.y + ol().top : b.y, P = Oa(a) + Fv;
|
|
43405
43405
|
return N + P <= x.y ? gf : a_;
|
|
43406
43406
|
}
|
|
43407
43407
|
}, JH = (t, a, c, m) => {
|
|
@@ -43525,7 +43525,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
43525
43525
|
} else
|
|
43526
43526
|
return M.none();
|
|
43527
43527
|
}, t), QH = (t, a) => {
|
|
43528
|
-
const c = qt.fromDom(a.getBody()), m = (E) => ws(E, c), b = (E) => !m(E) && !
|
|
43528
|
+
const c = qt.fromDom(a.getBody()), m = (E) => ws(E, c), b = (E) => !m(E) && !Ji(c, E), x = qt.fromDom(a.selection.getNode());
|
|
43529
43529
|
return b(x) ? M.none() : DM(x, t.inNodeScope, t.inEditorScope).orThunk(() => NM(m, x, t));
|
|
43530
43530
|
}, o4 = (t, a) => {
|
|
43531
43531
|
const c = {}, m = [], b = [], x = {}, E = {}, N = (Z, se) => {
|
|
@@ -44248,7 +44248,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
44248
44248
|
Vi,
|
|
44249
44249
|
gf,
|
|
44250
44250
|
a_,
|
|
44251
|
-
|
|
44251
|
+
fl,
|
|
44252
44252
|
D6,
|
|
44253
44253
|
kA,
|
|
44254
44254
|
r_
|
|
@@ -44264,7 +44264,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
44264
44264
|
a_,
|
|
44265
44265
|
kA,
|
|
44266
44266
|
r_,
|
|
44267
|
-
|
|
44267
|
+
fl,
|
|
44268
44268
|
D6
|
|
44269
44269
|
]
|
|
44270
44270
|
}, IM = 12, gV = {
|
|
@@ -44318,7 +44318,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
44318
44318
|
search: M.none()
|
|
44319
44319
|
}).map((P) => {
|
|
44320
44320
|
a.preventDefault();
|
|
44321
|
-
const z = E ?
|
|
44321
|
+
const z = E ? ul.HighlightMenuAndItem : ul.HighlightNone;
|
|
44322
44322
|
Da.showMenuWithinBounds(b, { anchor: N }, {
|
|
44323
44323
|
menu: {
|
|
44324
44324
|
markers: _0("normal"),
|
|
@@ -44535,7 +44535,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
44535
44535
|
snapTo: (t, a, c, m) => {
|
|
44536
44536
|
const b = a.getTarget(t.element);
|
|
44537
44537
|
if (a.repositionTarget) {
|
|
44538
|
-
const x = Cr(t.element), E =
|
|
44538
|
+
const x = Cr(t.element), E = ol(x), N = F1(b), P = iee(m, E, N), z = yV(P.coord, E, N);
|
|
44539
44539
|
ga(b, z);
|
|
44540
44540
|
}
|
|
44541
44541
|
}
|
|
@@ -44611,7 +44611,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
44611
44611
|
}, EV = (t, a, c, m) => {
|
|
44612
44612
|
const b = a.getTarget(t.element);
|
|
44613
44613
|
if (a.repositionTarget) {
|
|
44614
|
-
const x = Cr(t.element), E =
|
|
44614
|
+
const x = Cr(t.element), E = ol(x), N = F1(b), P = fee(b), z = _V(t, a.snaps, P, E, N, m, c), Z = yV(z, E, N);
|
|
44615
44615
|
ga(b, Z);
|
|
44616
44616
|
}
|
|
44617
44617
|
a.onDrag(t, b, m);
|
|
@@ -45410,7 +45410,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
45410
45410
|
kt("useTabstopAt", Ne),
|
|
45411
45411
|
kt("firstTabstop", 0),
|
|
45412
45412
|
kt("eventOrder", {}),
|
|
45413
|
-
|
|
45413
|
+
cl("modalBehaviours", [Ao]),
|
|
45414
45414
|
vc("onExecute"),
|
|
45415
45415
|
xC("onEscape")
|
|
45416
45416
|
]), KM = { sketch: We }, PV = ee([
|
|
@@ -45531,7 +45531,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
45531
45531
|
})])
|
|
45532
45532
|
])
|
|
45533
45533
|
};
|
|
45534
|
-
},
|
|
45534
|
+
}, ml = sc({
|
|
45535
45535
|
name: "ModalDialog",
|
|
45536
45536
|
configFields: Ree(),
|
|
45537
45537
|
partFields: PV(),
|
|
@@ -45653,7 +45653,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
45653
45653
|
]), Gee = Um.concat([
|
|
45654
45654
|
ca("tag", "textarea"),
|
|
45655
45655
|
Li("init")
|
|
45656
|
-
]), M_ = uh((t) => _a("customeditor.old",
|
|
45656
|
+
]), M_ = uh((t) => _a("customeditor.old", al(Gee), t).orThunk(() => _a("customeditor.new", al(Zee), t))), qee = eo, Yee = hf.concat([ca("context", "mode:design")]), ZV = qo(Yee), Kee = gg(), Xee = (t) => [
|
|
45657
45657
|
xi,
|
|
45658
45658
|
Cb("columns"),
|
|
45659
45659
|
t
|
|
@@ -46006,7 +46006,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46006
46006
|
})), zu()),
|
|
46007
46007
|
er("action"),
|
|
46008
46008
|
kt("domModification", {}),
|
|
46009
|
-
|
|
46009
|
+
cl("tabButtonBehaviours", [
|
|
46010
46010
|
Yo,
|
|
46011
46011
|
Ao,
|
|
46012
46012
|
to
|
|
@@ -46018,7 +46018,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46018
46018
|
ln("tabs"),
|
|
46019
46019
|
ln("dom"),
|
|
46020
46020
|
kt("clickToDismiss", !1),
|
|
46021
|
-
|
|
46021
|
+
cl("tabbarBehaviours", [
|
|
46022
46022
|
ke,
|
|
46023
46023
|
Ao
|
|
46024
46024
|
]),
|
|
@@ -46086,14 +46086,14 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46086
46086
|
domModification: { attributes: { role: "tabpanel" } }
|
|
46087
46087
|
}), El = au({
|
|
46088
46088
|
name: "Tabview",
|
|
46089
|
-
configFields: [
|
|
46089
|
+
configFields: [cl("tabviewBehaviours", [ns])],
|
|
46090
46090
|
factory: pi
|
|
46091
46091
|
}), Tl = ee([
|
|
46092
46092
|
kt("selectFirst", !0),
|
|
46093
46093
|
Zs("onChangeTab"),
|
|
46094
46094
|
Zs("onDismissTab"),
|
|
46095
46095
|
kt("tabs", []),
|
|
46096
|
-
|
|
46096
|
+
cl("tabSectionBehaviours", [])
|
|
46097
46097
|
]), Kn = Ll({
|
|
46098
46098
|
factory: Tr,
|
|
46099
46099
|
schema: [
|
|
@@ -46172,7 +46172,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46172
46172
|
ns.set(c, t[b].view());
|
|
46173
46173
|
const x = a.dom.getBoundingClientRect();
|
|
46174
46174
|
return ns.set(c, []), x.height;
|
|
46175
|
-
}),
|
|
46175
|
+
}), ts = (t) => Cn(yt(t, (a, c) => a > c ? -1 : a < c ? 1 : 0)), Fr = (t, a, c) => {
|
|
46176
46176
|
const m = _i(t).dom, b = Em(t, ".tox-dialog-wrap").getOr(t), x = sn(b, "position") === "fixed";
|
|
46177
46177
|
let E;
|
|
46178
46178
|
x ? E = Math.max(m.clientHeight, window.innerHeight) : E = Math.max(m.offsetHeight, m.scrollHeight);
|
|
@@ -46199,7 +46199,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46199
46199
|
jm(x).each((E) => {
|
|
46200
46200
|
Rn(E, "visibility", "hidden"), b.getSystem().getByDom(E).toOptional().each((N) => {
|
|
46201
46201
|
const P = oo(t, E, N);
|
|
46202
|
-
|
|
46202
|
+
ts(P).fold(a.clear, a.set);
|
|
46203
46203
|
}), od(x, E, a), Cs(E, "visibility"), Ls(t, b), requestAnimationFrame(() => {
|
|
46204
46204
|
od(x, E, a);
|
|
46205
46205
|
});
|
|
@@ -46346,7 +46346,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46346
46346
|
};
|
|
46347
46347
|
}, om = (t, a, c, m, b, x) => cu(t, a, M.some(c), m, b, x), Uv = (t, a, c, m) => {
|
|
46348
46348
|
const b = cu(t, a, M.none(), c, !1, m);
|
|
46349
|
-
return
|
|
46349
|
+
return ml.parts.body(b);
|
|
46350
46350
|
}, Po = (t) => {
|
|
46351
46351
|
const a = {
|
|
46352
46352
|
dom: {
|
|
@@ -46374,7 +46374,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46374
46374
|
useTabstopAt: Oe(Yx)
|
|
46375
46375
|
})])
|
|
46376
46376
|
};
|
|
46377
|
-
return
|
|
46377
|
+
return ml.parts.body(a);
|
|
46378
46378
|
}, qs = _v.deviceType.isTouch(), Qa = (t, a) => ({
|
|
46379
46379
|
dom: {
|
|
46380
46380
|
tag: "div",
|
|
@@ -46385,7 +46385,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46385
46385
|
t,
|
|
46386
46386
|
a
|
|
46387
46387
|
]
|
|
46388
|
-
}), Yi = (t, a) =>
|
|
46388
|
+
}), Yi = (t, a) => ml.parts.close(Zi.sketch({
|
|
46389
46389
|
dom: {
|
|
46390
46390
|
tag: "button",
|
|
46391
46391
|
classes: [
|
|
@@ -46400,14 +46400,14 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46400
46400
|
},
|
|
46401
46401
|
action: t,
|
|
46402
46402
|
buttonBehaviours: Dn([Xr.config({})])
|
|
46403
|
-
})),
|
|
46403
|
+
})), gl = () => ml.parts.title({
|
|
46404
46404
|
dom: {
|
|
46405
46405
|
tag: "div",
|
|
46406
46406
|
classes: ["tox-dialog__title"],
|
|
46407
46407
|
innerHtml: "",
|
|
46408
46408
|
styles: { display: "none" }
|
|
46409
46409
|
}
|
|
46410
|
-
}), $i = (t, a) =>
|
|
46410
|
+
}), $i = (t, a) => ml.parts.body({
|
|
46411
46411
|
dom: {
|
|
46412
46412
|
tag: "div",
|
|
46413
46413
|
classes: ["tox-dialog__body"]
|
|
@@ -46419,7 +46419,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46419
46419
|
},
|
|
46420
46420
|
components: [{ dom: Mg(`<p>${F8(a.translate(t))}</p>`) }]
|
|
46421
46421
|
}]
|
|
46422
|
-
}), Ba = (t) =>
|
|
46422
|
+
}), Ba = (t) => ml.parts.footer({
|
|
46423
46423
|
dom: {
|
|
46424
46424
|
tag: "div",
|
|
46425
46425
|
classes: ["tox-dialog__footer"]
|
|
@@ -46442,7 +46442,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46442
46442
|
})
|
|
46443
46443
|
], Zc = (t) => {
|
|
46444
46444
|
const a = "tox-dialog", c = a + "-wrap", m = c + "__backdrop", b = a + "__disable-scroll";
|
|
46445
|
-
return
|
|
46445
|
+
return ml.sketch({
|
|
46446
46446
|
lazySink: t.lazySink,
|
|
46447
46447
|
onEscape: (x) => (t.onEscape(x), M.some(!0)),
|
|
46448
46448
|
useTabstopAt: (x) => !Yx(x),
|
|
@@ -46568,7 +46568,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46568
46568
|
}
|
|
46569
46569
|
})])
|
|
46570
46570
|
}), R2 = (t, a, c) => {
|
|
46571
|
-
const m =
|
|
46571
|
+
const m = ml.parts.title(Ug(t, a, M.none(), c)), b = ml.parts.draghandle(Wm()), x = ml.parts.close(sm(c)), E = [m].concat(t.draggable ? [b] : []).concat([x]);
|
|
46572
46572
|
return Fg.sketch({
|
|
46573
46573
|
dom: Mg('<div class="tox-dialog__header"></div>'),
|
|
46574
46574
|
components: E
|
|
@@ -46595,10 +46595,10 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46595
46595
|
onClose: () => c.closeWindow(),
|
|
46596
46596
|
onBlock: (m) => {
|
|
46597
46597
|
const b = rr(t().element, ".tox-dialog__header").map((x) => Oa(x));
|
|
46598
|
-
|
|
46598
|
+
ml.setBusy(t(), (x, E) => rm(m.message, E, a, b));
|
|
46599
46599
|
},
|
|
46600
46600
|
onUnblock: () => {
|
|
46601
|
-
|
|
46601
|
+
ml.setIdle(t());
|
|
46602
46602
|
}
|
|
46603
46603
|
}), I2 = "tox-dialog--fullscreen", Wv = "tox-dialog--width-lg", C4 = "tox-dialog--width-md", Zv = (t) => {
|
|
46604
46604
|
switch (t) {
|
|
@@ -46716,7 +46716,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46716
46716
|
name: N.name,
|
|
46717
46717
|
value: N.value
|
|
46718
46718
|
}), Ed(se).fold(z, (_e) => {
|
|
46719
|
-
Z(_e) || pe.exists((Le) =>
|
|
46719
|
+
Z(_e) || pe.exists((Le) => Ji(_e, Le) && Z(Le)) ? z() : c().toOptional().filter((Le) => !Ji(Le.element, _e)).each(z);
|
|
46720
46720
|
});
|
|
46721
46721
|
}),
|
|
46722
46722
|
m(UB, (x, E, N) => {
|
|
@@ -46767,7 +46767,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46767
46767
|
renderComponents: tr
|
|
46768
46768
|
})])
|
|
46769
46769
|
};
|
|
46770
|
-
}, jg = (t, a, c) => ei(t, a, c), am = (t, a, c) =>
|
|
46770
|
+
}, jg = (t, a, c) => ei(t, a, c), am = (t, a, c) => ml.parts.footer(ei(t, a, c)), Gv = (t, a) => {
|
|
46771
46771
|
if (t.getRoot().getSystem().isConnected()) {
|
|
46772
46772
|
const m = Vs.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());
|
|
46773
46773
|
return V0.getField(m, a).orThunk(() => t.getFooter().bind((E) => Zn.getState(E).get()).bind((E) => E.lookupByName(a)));
|
|
@@ -46857,7 +46857,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46857
46857
|
extraStyles: {}
|
|
46858
46858
|
}, wt = sy(He, Le, c), Ye = (() => {
|
|
46859
46859
|
const vt = () => {
|
|
46860
|
-
const Xt =
|
|
46860
|
+
const Xt = ml.getBody(wt);
|
|
46861
46861
|
return Vs.getCurrent(Xt).getOr(Xt);
|
|
46862
46862
|
}, zt = () => {
|
|
46863
46863
|
rR(wt, E.get());
|
|
@@ -46865,8 +46865,8 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
46865
46865
|
return {
|
|
46866
46866
|
getId: ee(m),
|
|
46867
46867
|
getRoot: ee(wt),
|
|
46868
|
-
getBody: () =>
|
|
46869
|
-
getFooter: () =>
|
|
46868
|
+
getBody: () => ml.getBody(wt),
|
|
46869
|
+
getFooter: () => ml.getFooter(wt),
|
|
46870
46870
|
getFormWrapper: vt,
|
|
46871
46871
|
toggleFullscreen: zt
|
|
46872
46872
|
};
|
|
@@ -47080,7 +47080,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47080
47080
|
const a = t.shared;
|
|
47081
47081
|
return { open: (m, b) => {
|
|
47082
47082
|
const x = () => {
|
|
47083
|
-
|
|
47083
|
+
ml.hide(z), b();
|
|
47084
47084
|
}, E = ar(o_({
|
|
47085
47085
|
context: "any",
|
|
47086
47086
|
name: "close-alert",
|
|
@@ -47090,7 +47090,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47090
47090
|
align: "end",
|
|
47091
47091
|
enabled: !0,
|
|
47092
47092
|
icon: M.none()
|
|
47093
|
-
}, "cancel", t)), N =
|
|
47093
|
+
}, "cancel", t)), N = gl(), P = Yi(x, a.providers), z = oc(Zc({
|
|
47094
47094
|
lazySink: () => a.getSink(),
|
|
47095
47095
|
header: Qa(N, P),
|
|
47096
47096
|
body: $i(m, a.providers),
|
|
@@ -47102,7 +47102,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47102
47102
|
dialogEvents: [on(n1, x)],
|
|
47103
47103
|
eventOrder: {}
|
|
47104
47104
|
}));
|
|
47105
|
-
|
|
47105
|
+
ml.show(z);
|
|
47106
47106
|
const Z = E.get(z);
|
|
47107
47107
|
Yo.focus(Z);
|
|
47108
47108
|
} };
|
|
@@ -47110,7 +47110,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47110
47110
|
const a = t.shared;
|
|
47111
47111
|
return { open: (m, b) => {
|
|
47112
47112
|
const x = (pe) => {
|
|
47113
|
-
|
|
47113
|
+
ml.hide(Z), b(pe);
|
|
47114
47114
|
}, E = ar(o_({
|
|
47115
47115
|
context: "any",
|
|
47116
47116
|
name: "yes",
|
|
@@ -47129,7 +47129,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47129
47129
|
align: "end",
|
|
47130
47130
|
enabled: !0,
|
|
47131
47131
|
icon: M.none()
|
|
47132
|
-
}, "cancel", t), P =
|
|
47132
|
+
}, "cancel", t), P = gl(), z = Yi(() => x(!1), a.providers), Z = oc(Zc({
|
|
47133
47133
|
lazySink: () => a.getSink(),
|
|
47134
47134
|
header: Qa(P, z),
|
|
47135
47135
|
body: $i(m, a.providers),
|
|
@@ -47147,7 +47147,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47147
47147
|
],
|
|
47148
47148
|
eventOrder: {}
|
|
47149
47149
|
}));
|
|
47150
|
-
|
|
47150
|
+
ml.show(Z);
|
|
47151
47151
|
const se = E.get(Z);
|
|
47152
47152
|
Yo.focus(se);
|
|
47153
47153
|
} };
|
|
@@ -47184,10 +47184,10 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47184
47184
|
const wt = (Ye) => {
|
|
47185
47185
|
const _t = Hs(Ye, {
|
|
47186
47186
|
closeWindow: () => {
|
|
47187
|
-
|
|
47187
|
+
ml.hide(_t.dialog), He(_t.instanceApi);
|
|
47188
47188
|
}
|
|
47189
47189
|
}, a, t.backstages.dialog);
|
|
47190
|
-
return
|
|
47190
|
+
return ml.show(_t.dialog), _t.instanceApi;
|
|
47191
47191
|
};
|
|
47192
47192
|
return Te.openUrl(wt, Le);
|
|
47193
47193
|
}, P = (Le, He) => {
|
|
@@ -47199,10 +47199,10 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47199
47199
|
}, {
|
|
47200
47200
|
redial: Te.redial,
|
|
47201
47201
|
closeWindow: () => {
|
|
47202
|
-
|
|
47202
|
+
ml.hide(qn.dialog), He(qn.instanceApi);
|
|
47203
47203
|
}
|
|
47204
47204
|
}, t.backstages.dialog);
|
|
47205
|
-
return
|
|
47205
|
+
return ml.show(qn.dialog), qn.instanceApi.setData(zt), qn.instanceApi;
|
|
47206
47206
|
};
|
|
47207
47207
|
return Te.open(wt, Le);
|
|
47208
47208
|
}, z = (Le, He, wt, Ye) => {
|
|
@@ -47713,7 +47713,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47713
47713
|
ge(y, (T) => {
|
|
47714
47714
|
cr(g, T);
|
|
47715
47715
|
});
|
|
47716
|
-
},
|
|
47716
|
+
}, Ji = (g) => {
|
|
47717
47717
|
g.dom.textContent = "", ge(Jo(g), (y) => {
|
|
47718
47718
|
Cr(y);
|
|
47719
47719
|
});
|
|
@@ -47742,7 +47742,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47742
47742
|
], uc = (g) => Ue(Gl, g), Zr = (g, y) => ({
|
|
47743
47743
|
rows: g,
|
|
47744
47744
|
columns: y
|
|
47745
|
-
}),
|
|
47745
|
+
}), Qi = (g, y) => ({
|
|
47746
47746
|
row: g,
|
|
47747
47747
|
column: y
|
|
47748
47748
|
}), ql = (g, y, T) => ({
|
|
@@ -47860,7 +47860,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47860
47860
|
}, yu = (g, y) => g != null ? y(g) : ce.none(), eg = (g, y) => g ? ce.some(y) : ce.none(), ep = (g, y) => g.substring(y), Or = (g, y, T) => y === "" || g.length >= y.length && g.substr(T, T + y.length) === y, wu = (g, y) => ii(g, y) ? ep(g, y.length) : g, Ya = (g, y, T = 0, $) => {
|
|
47861
47861
|
const V = g.indexOf(y, T);
|
|
47862
47862
|
return V !== -1 ? O($) ? !0 : V + y.length <= $ : !1;
|
|
47863
|
-
}, ii = (g, y) => Or(g, y, 0),
|
|
47863
|
+
}, ii = (g, y) => Or(g, y, 0), el = (g, y) => Or(g, y, g.length - y.length), Re = ((g) => (y) => y.replace(g, ""))(/^\s+|\s+$/g), Fe = (g) => g.length > 0, Rt = (g) => {
|
|
47864
47864
|
const y = parseFloat(g);
|
|
47865
47865
|
return isNaN(y) ? ce.none() : ce.some(y);
|
|
47866
47866
|
}, rn = (g) => g.style !== void 0 && W(g.style.getPropertyValue), Eo = (g, y, T) => {
|
|
@@ -47899,7 +47899,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
47899
47899
|
}, Bd = (g, y) => Af([
|
|
47900
47900
|
"td",
|
|
47901
47901
|
"th"
|
|
47902
|
-
], g, y), Fd = (g) => ud(g, "th,td"), dc = (g) => qt(g, "colgroup") ? Rn(g, "col") : xt(Lu(g), (y) => Rn(y, "col")),
|
|
47902
|
+
], g, y), Fd = (g) => ud(g, "th,td"), dc = (g) => qt(g, "colgroup") ? Rn(g, "col") : xt(Lu(g), (y) => Rn(y, "col")), tl = (g, y) => qa(g, "table", y), b1 = (g) => ud(g, "tr"), Lu = (g) => tl(g).fold(H([]), (y) => Rn(y, "colgroup")), tp = (g, y) => nt(g, (T) => {
|
|
47903
47903
|
if (Fs(T) === "colgroup") {
|
|
47904
47904
|
const $ = nt(dc(T), (V) => {
|
|
47905
47905
|
const X = Va(V, "span", 1);
|
|
@@ -48079,7 +48079,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48079
48079
|
], Nf = {
|
|
48080
48080
|
browsers: H(dd),
|
|
48081
48081
|
oses: H(ih)
|
|
48082
|
-
},
|
|
48082
|
+
}, nl = "Edge", sg = "Chromium", rg = "IE", fd = "Opera", md = "Firefox", um = "Safari", Mc = () => ag({
|
|
48083
48083
|
current: void 0,
|
|
48084
48084
|
version: $l.unknown()
|
|
48085
48085
|
}), ag = (g) => {
|
|
@@ -48087,7 +48087,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48087
48087
|
return {
|
|
48088
48088
|
current: y,
|
|
48089
48089
|
version: T,
|
|
48090
|
-
isEdge: $(
|
|
48090
|
+
isEdge: $(nl),
|
|
48091
48091
|
isChromium: $(sg),
|
|
48092
48092
|
isIE: $(rg),
|
|
48093
48093
|
isOpera: $(fd),
|
|
@@ -48097,13 +48097,13 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48097
48097
|
}, Ti = {
|
|
48098
48098
|
unknown: Mc,
|
|
48099
48099
|
nu: ag,
|
|
48100
|
-
edge: H(
|
|
48100
|
+
edge: H(nl),
|
|
48101
48101
|
chromium: H(sg),
|
|
48102
48102
|
ie: H(rg),
|
|
48103
48103
|
opera: H(fd),
|
|
48104
48104
|
firefox: H(md),
|
|
48105
48105
|
safari: H(um)
|
|
48106
|
-
}, gd = "Windows", Yc = "iOS",
|
|
48106
|
+
}, gd = "Windows", Yc = "iOS", ol = "Android", Vd = "Linux", w1 = "macOS", ig = "Solaris", Su = "FreeBSD", Mf = "ChromeOS", C1 = () => rp({
|
|
48107
48107
|
current: void 0,
|
|
48108
48108
|
version: $l.unknown()
|
|
48109
48109
|
}), rp = (g) => {
|
|
@@ -48113,7 +48113,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48113
48113
|
version: T,
|
|
48114
48114
|
isWindows: $(gd),
|
|
48115
48115
|
isiOS: $(Yc),
|
|
48116
|
-
isAndroid: $(
|
|
48116
|
+
isAndroid: $(ol),
|
|
48117
48117
|
isMacOS: $(w1),
|
|
48118
48118
|
isLinux: $(Vd),
|
|
48119
48119
|
isSolaris: $(ig),
|
|
@@ -48125,7 +48125,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48125
48125
|
nu: rp,
|
|
48126
48126
|
windows: H(gd),
|
|
48127
48127
|
ios: H(Yc),
|
|
48128
|
-
android: H(
|
|
48128
|
+
android: H(ol),
|
|
48129
48129
|
linux: H(Vd),
|
|
48130
48130
|
macos: H(w1),
|
|
48131
48131
|
solaris: H(ig),
|
|
@@ -48213,7 +48213,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48213
48213
|
}), T += V;
|
|
48214
48214
|
}), y;
|
|
48215
48215
|
}, xu = (g) => {
|
|
48216
|
-
const y = {}, T = [], V = q(g).map((In) => In.element).bind(
|
|
48216
|
+
const y = {}, T = [], V = q(g).map((In) => In.element).bind(tl).bind(lp).getOr({});
|
|
48217
48217
|
let X = 0, de = 0, Ee = 0;
|
|
48218
48218
|
const {
|
|
48219
48219
|
pass: ke,
|
|
@@ -48324,18 +48324,18 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48324
48324
|
}), mm = (g, y) => ({
|
|
48325
48325
|
col: g,
|
|
48326
48326
|
x: y
|
|
48327
|
-
}), _1 = (g) => Pc(g).left + sr(g),
|
|
48327
|
+
}), _1 = (g) => Pc(g).left + sr(g), sl = (g) => Pc(g).left, E1 = (g, y) => mm(g, sl(y)), ky = (g, y) => mm(g, _1(y)), T1 = (g) => Pc(g).top, rl = (g, y) => bb(g, T1(y)), k1 = (g, y) => bb(g, T1(y) + Ho(y)), di = (g, y, T) => {
|
|
48328
48328
|
if (T.length === 0)
|
|
48329
48329
|
return [];
|
|
48330
48330
|
const $ = nt(T.slice(1), (X, de) => X.map((Ee) => g(de, Ee))), V = T[T.length - 1].map((X) => y(T.length - 1, X));
|
|
48331
48331
|
return $.concat([V]);
|
|
48332
|
-
}, yb = (g) => -g,
|
|
48332
|
+
}, yb = (g) => -g, al = {
|
|
48333
48333
|
delta: fe,
|
|
48334
|
-
positions: (g) => di(
|
|
48334
|
+
positions: (g) => di(rl, k1, g),
|
|
48335
48335
|
edge: T1
|
|
48336
48336
|
}, fg = he({
|
|
48337
48337
|
delta: fe,
|
|
48338
|
-
edge:
|
|
48338
|
+
edge: sl,
|
|
48339
48339
|
positions: (g) => di(E1, ky, g)
|
|
48340
48340
|
}, {
|
|
48341
48341
|
delta: yb,
|
|
@@ -48401,14 +48401,14 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48401
48401
|
}, gg = (g) => {
|
|
48402
48402
|
Gr(g, "height");
|
|
48403
48403
|
}, uh = (g) => gs(g) + "px", bd = (g, y, T, $) => {
|
|
48404
|
-
const V =
|
|
48404
|
+
const V = tl(g).map((X) => {
|
|
48405
48405
|
const de = T(X);
|
|
48406
48406
|
return Math.floor(y / 100 * de);
|
|
48407
48407
|
}).getOr(y);
|
|
48408
48408
|
return $(g, V), V;
|
|
48409
48409
|
}, Oy = (g, y, T, $) => {
|
|
48410
48410
|
const V = parseFloat(g);
|
|
48411
|
-
return
|
|
48411
|
+
return el(g, "%") && Fs(y) !== "table" ? bd(y, V, T, $) : V;
|
|
48412
48412
|
}, _a = (g) => {
|
|
48413
48413
|
const y = uh(g);
|
|
48414
48414
|
return y ? Oy(y, g, Tn, pm) : Tn(g);
|
|
@@ -48435,7 +48435,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48435
48435
|
}
|
|
48436
48436
|
}, $));
|
|
48437
48437
|
}, Pf = (g) => g.map((y) => y + "px").getOr(""), Dy = (g, y) => fh(g, y, gc, Pf), Jl = (g, y, T) => fh(g, y, fp, ($) => $.fold(() => T.minCellWidth(), (V) => V / T.pixelWidth() * 100)), Xc = (g, y, T) => fh(g, y, wi, ($) => $.getOrThunk(T.minCellWidth)), kt = (g, y, T, $) => {
|
|
48438
|
-
const V = L(g), X = nt(g.all, (Ee) => ce.some(Ee.element)), de = [ce.some(
|
|
48438
|
+
const V = L(g), X = nt(g.all, (Ee) => ce.some(Ee.element)), de = [ce.some(al.edge(y))].concat(nt(al.positions(V, y), (Ee) => Ee.map((ke) => ke.y)));
|
|
48439
48439
|
return nt(X, (Ee, ke) => Ra(Ee, ke, de, Oe, T, $));
|
|
48440
48440
|
}, Bc = (g, y) => kt(g, y, Xs, (T) => T.getOrThunk(tg)), Ci = (g, y) => kt(g, y, er, Pf), ca = (g, y) => () => en(g) ? y(g) : parseFloat(Bi(g, "width").getOr("0")), Jc = (g) => {
|
|
48441
48441
|
const y = ca(g, Nl), T = H(0);
|
|
@@ -48753,7 +48753,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48753
48753
|
}), I1 = (g, y) => {
|
|
48754
48754
|
const T = ($, V) => Yn(V, $);
|
|
48755
48755
|
return As.findItem(g, y, T).map(($) => $.element);
|
|
48756
|
-
}, xO = (g, y, T) =>
|
|
48756
|
+
}, xO = (g, y, T) => tl(g).bind(($) => {
|
|
48757
48757
|
const V = Fy($);
|
|
48758
48758
|
return dC(V, g, y, T);
|
|
48759
48759
|
}), bh = (g, y, T) => {
|
|
@@ -48983,10 +48983,10 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
48983
48983
|
selection: ti(g),
|
|
48984
48984
|
clipboard: T,
|
|
48985
48985
|
generators: $
|
|
48986
|
-
}), Db = (g) =>
|
|
48986
|
+
}), Db = (g) => tl(g).bind((y) => Dn(y, Tu.firstSelectedSelector)).fold(H(g), (y) => y[0]), nc = (g) => (y, T) => {
|
|
48987
48987
|
const $ = Fs(y), V = $ === "col" || $ === "colgroup" ? Db(y) : y;
|
|
48988
48988
|
return qa(V, g, T);
|
|
48989
|
-
}, Cp = nc("th,td,caption"), Sd = nc("th,td"), Sg = (g) => xE(g.model.table.getSelectedCells()), OI = (g) => Ve(Sg(g), (y) => qt(y, Tu.selectedSelector)), $I = (g) =>
|
|
48989
|
+
}, Cp = nc("th,td,caption"), Sd = nc("th,td"), Sg = (g) => xE(g.model.table.getSelectedCells()), OI = (g) => Ve(Sg(g), (y) => qt(y, Tu.selectedSelector)), $I = (g) => tl(g[0]).map((y) => {
|
|
48990
48990
|
const T = ss(y, bC);
|
|
48991
48991
|
return yp(T), [T];
|
|
48992
48992
|
}), TO = (g, y) => nt(y, (T) => g.selection.serializer.serialize(T.dom, {})).join(""), Ff = (g, y) => {
|
|
@@ -49018,7 +49018,7 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
49018
49018
|
if (T.selection === !0 && T.paste === !0) {
|
|
49019
49019
|
const $ = Sg(g);
|
|
49020
49020
|
q($).each((V) => {
|
|
49021
|
-
|
|
49021
|
+
tl(V).each((X) => {
|
|
49022
49022
|
const de = Ve(qd(T.content), (ke) => Fs(ke) !== "meta"), Ee = go("table");
|
|
49023
49023
|
if (AI(g) && de.length === 1 && Ee(de[0])) {
|
|
49024
49024
|
T.preventDefault();
|
|
@@ -49187,12 +49187,12 @@ The conflicting element is` + (Ge(se.element) ? " " : " not ") + "already in the
|
|
|
49187
49187
|
const $ = mn.fromTag(y, yo(g).dom);
|
|
49188
49188
|
return y === "thead" ? Ep(g, "caption,colgroup", $) : y === "colgroup" ? Ep(g, "caption", $) : cr(g, $), $;
|
|
49189
49189
|
});
|
|
49190
|
-
return
|
|
49190
|
+
return Ji(T), T;
|
|
49191
49191
|
}, Zy = (g, y) => {
|
|
49192
49192
|
const T = [], $ = [], V = (In) => nt(In, (Fn) => {
|
|
49193
49193
|
Fn.isNew && T.push(Fn.element);
|
|
49194
49194
|
const ho = Fn.element;
|
|
49195
|
-
return
|
|
49195
|
+
return Ji(ho), ge(Fn.cells, (kn) => {
|
|
49196
49196
|
kn.isNew && $.push(kn.element), H1(kn.element, "colspan", kn.colspan, 1), H1(kn.element, "rowspan", kn.rowspan, 1), cr(ho, kn.element);
|
|
49197
49197
|
}), ho;
|
|
49198
49198
|
}), X = (In) => xt(In, (Fn) => nt(Fn.cells, (ho) => (H1(ho.element, "span", ho.colspan, 1), ho.element))), de = (In, Fn) => {
|
|
@@ -49794,7 +49794,7 @@ Required: ` + y.join(", "));
|
|
|
49794
49794
|
});
|
|
49795
49795
|
return ke.length === 0 ? [mn.fromTag("br")] : ke;
|
|
49796
49796
|
})();
|
|
49797
|
-
|
|
49797
|
+
Ji(g[0]), ws(g[0], Ee);
|
|
49798
49798
|
}, Qy = (g) => vh(g, !0), ew = (g) => {
|
|
49799
49799
|
Fd(g).length === 0 && Cr(g);
|
|
49800
49800
|
}, tw = (g, y) => ({
|
|
@@ -49867,7 +49867,7 @@ Required: ` + y.join(", "));
|
|
|
49867
49867
|
const X = ((ke, it) => {
|
|
49868
49868
|
const It = As.fromTable(ke);
|
|
49869
49869
|
return Pb(It, it, !0);
|
|
49870
|
-
})(y.clipboard, y.generators), de =
|
|
49870
|
+
})(y.clipboard, y.generators), de = Qi(y.row, y.column);
|
|
49871
49871
|
return Eh(de, g, X, y.generators, T).fold(() => tw(g, ce.some(y.element)), (ke) => Vc(ke, y.row, y.column));
|
|
49872
49872
|
}, jb = (g, y, T) => {
|
|
49873
49873
|
const $ = ng(g, T.section), V = As.generate($);
|
|
@@ -49911,7 +49911,7 @@ Required: ` + y.join(", "));
|
|
|
49911
49911
|
})), Dp = (g, y) => tu(g, y).map((T) => ({
|
|
49912
49912
|
details: T,
|
|
49913
49913
|
pixelDelta: -RC(g, T)
|
|
49914
|
-
})),
|
|
49914
|
+
})), il = (g) => (y, T) => z1(y, T).filter(($) => !(g ? K1 : uT)(y, $.cells)), Tm = Sl.transform("th"), X1 = Sl.transform("td"), fT = $a(eT, eu, K, K, Sl.modification), JO = $a(YO, eu, K, K, Sl.modification), rw = $a(KO, dT(!0), ef, K, Sl.modification), IC = $a(tT, dT(!1), ef, K, Sl.modification), PC = $a(oc, Dp, ef, ew, Sl.modification), BC = $a(ku, eu, K, ew, Sl.modification), mT = $a(ow, tu, K, K, Tm), gT = $a(nT, tu, K, K, X1), pT = $a(oT, eu, K, K, Tm), hT = $a(sT, eu, K, K, X1), QO = $a(sw, eu, K, K, X1), Pl = $a(XO, tu, K, K, Tm), e$ = $a(ha, tu, K, K, X1), _g = $a(rT, kp, rr, K, Sl.merging), FC = $a(aT, Ap, rr, K, Sl.merging), LC = $a(DC, HE, rr, K, Sl.modification), vT = $a(iT, il(!0), K, K, Sl.modification), aw = $a(NC, il(!1), K, K, Sl.modification), HC = $a(MC, z1, K, K, Sl.modification), VC = $a(lT, z1, K, K, Sl.modification), t$ = Em, n$ = nu, fi = cT, Si = (g, y) => g.dispatch("NewRow", { node: y }), xl = (g, y) => g.dispatch("NewCell", { node: y }), mi = (g, y, T) => {
|
|
49915
49915
|
g.dispatch("TableModified", {
|
|
49916
49916
|
...T,
|
|
49917
49917
|
table: y
|
|
@@ -49942,7 +49942,7 @@ Required: ` + y.join(", "));
|
|
|
49942
49942
|
}, Zb = {
|
|
49943
49943
|
structure: !1,
|
|
49944
49944
|
style: !0
|
|
49945
|
-
},
|
|
49945
|
+
}, ll = {
|
|
49946
49946
|
structure: !0,
|
|
49947
49947
|
style: !1
|
|
49948
49948
|
}, bT = {
|
|
@@ -49989,7 +49989,7 @@ Required: ` + y.join(", "));
|
|
|
49989
49989
|
effect: Rm
|
|
49990
49990
|
}));
|
|
49991
49991
|
}) : ce.none();
|
|
49992
|
-
}, _n = It(BC, V, K,
|
|
49992
|
+
}, _n = It(BC, V, K, ll), Xn = It(PC, X, K, ll), In = It(fT, Oe, K, ll), Fn = It(JO, Oe, K, ll), ho = It(rw, Oe, Ee, ll), kn = It(IC, Oe, Ee, ll), Vo = It(_g, Oe, K, ll), pn = It(FC, Oe, K, ll), io = It(vT, Oe, K, ll), hr = It(aw, Oe, K, ll), vr = It(HC, Oe, K, ll), To = It(VC, Oe, K, ll), zr = It(LC, Oe, K, bT), wc = It(Pl, Oe, K, ll), zp = It(e$, Oe, K, ll), rf = It(mT, Oe, K, ll), Bs = It(gT, Oe, K, ll), Er = It(pT, Oe, K, ll), Hl = It(hT, Oe, K, ll), ji = It(QO, Oe, K, ll);
|
|
49993
49993
|
return {
|
|
49994
49994
|
deleteRow: _n,
|
|
49995
49995
|
deleteColumn: Xn,
|
|
@@ -50066,7 +50066,7 @@ Required: ` + y.join(", "));
|
|
|
50066
50066
|
return $ === V.toString() ? y(V) : lw.invalid(T);
|
|
50067
50067
|
}, km = {
|
|
50068
50068
|
...lw,
|
|
50069
|
-
from: (g) =>
|
|
50069
|
+
from: (g) => el(g, "%") ? yT("%", lw.percent, g) : el(g, "px") ? yT("px", lw.pixels, g) : lw.invalid(g)
|
|
50070
50070
|
}, zi = (g, y) => nt(g, (T) => km.from(T).fold(() => T, (V) => V / y * 100 + "%", (V) => V + "%")), Ed = (g, y, T) => {
|
|
50071
50071
|
const $ = T / y;
|
|
50072
50072
|
return nt(g, (V) => km.from(V).fold(() => V, (de) => de * $ + "px", (de) => de / 100 * T + "px"));
|
|
@@ -50230,7 +50230,7 @@ Required: ` + y.join(", "));
|
|
|
50230
50230
|
g.fold(MT, (y) => $T({ [Kb]: y }));
|
|
50231
50231
|
}, NT = () => KC(Kb), MT = () => XC(Kb), Uc = (g) => Cp(Eb(g), bg(g)).filter(By), pw = (g) => Sd(Eb(g), bg(g)).filter(By), hw = (g, y) => {
|
|
50232
50232
|
const T = bg(g), $ = () => Uc(g).each((kn) => {
|
|
50233
|
-
|
|
50233
|
+
tl(kn, T).filter(ee(T)).each((Vo) => {
|
|
50234
50234
|
const pn = mn.fromText("");
|
|
50235
50235
|
if (ya(Vo, pn), Cr(Vo), g.dom.isEmpty(g.getBody()))
|
|
50236
50236
|
g.setContent(""), g.selection.setCursorLocation();
|
|
@@ -50240,10 +50240,10 @@ Required: ` + y.join(", "));
|
|
|
50240
50240
|
}
|
|
50241
50241
|
});
|
|
50242
50242
|
}), V = (kn) => Uc(g).each((Vo) => {
|
|
50243
|
-
tc(g) || Yd(g) || ph(g) ||
|
|
50244
|
-
kn === "relative" && !dw(io) ? Np(io) : kn === "fixed" && !_T(io) ? fw(io) : kn === "responsive" && !Gb(io) && ET(io), yp(io), mi(g, io.dom,
|
|
50243
|
+
tc(g) || Yd(g) || ph(g) || tl(Vo, T).each((io) => {
|
|
50244
|
+
kn === "relative" && !dw(io) ? Np(io) : kn === "fixed" && !_T(io) ? fw(io) : kn === "responsive" && !Gb(io) && ET(io), yp(io), mi(g, io.dom, ll);
|
|
50245
50245
|
});
|
|
50246
|
-
}), X = (kn) =>
|
|
50246
|
+
}), X = (kn) => tl(kn, T), de = (kn) => pw(g).bind((Vo) => X(Vo).map((pn) => kn(pn, Vo))), Ee = (kn, Vo) => {
|
|
50247
50247
|
de((pn) => {
|
|
50248
50248
|
g.formatter.toggle("tableclass", { value: Vo }, pn.dom), mi(g, pn.dom, Zb);
|
|
50249
50249
|
});
|
|
@@ -50254,13 +50254,13 @@ Required: ` + y.join(", "));
|
|
|
50254
50254
|
});
|
|
50255
50255
|
}, it = () => {
|
|
50256
50256
|
Uc(g).each((kn) => {
|
|
50257
|
-
|
|
50257
|
+
tl(kn, T).each((Vo) => {
|
|
50258
50258
|
Cs(Vo, "caption").fold(() => {
|
|
50259
50259
|
const pn = mn.fromTag("caption");
|
|
50260
50260
|
cr(pn, mn.fromText("Caption")), bu(Vo, pn, 0), g.selection.setCursorLocation(pn.dom, 0);
|
|
50261
50261
|
}, (pn) => {
|
|
50262
50262
|
go("caption")(kn) && gn("td", Vo).each((io) => g.selection.setCursorLocation(io.dom, 0)), Cr(pn);
|
|
50263
|
-
}), mi(g, Vo.dom,
|
|
50263
|
+
}), mi(g, Vo.dom, ll);
|
|
50264
50264
|
});
|
|
50265
50265
|
});
|
|
50266
50266
|
}, It = (kn) => {
|
|
@@ -50339,7 +50339,7 @@ Required: ` + y.join(", "));
|
|
|
50339
50339
|
}), X(io[0]).each((vr) => mi(g, vr.dom, Zb)));
|
|
50340
50340
|
});
|
|
50341
50341
|
}, eS = (g, y) => {
|
|
50342
|
-
const T = bg(g), $ = (V) => Sd(Eb(g)).bind((X) =>
|
|
50342
|
+
const T = bg(g), $ = (V) => Sd(Eb(g)).bind((X) => tl(X, T).map((de) => {
|
|
50343
50343
|
const Ee = ja(Sg(g), de, X);
|
|
50344
50344
|
return V(de, Ee);
|
|
50345
50345
|
})).getOr("");
|
|
@@ -50894,11 +50894,11 @@ Required: ` + y.join(", "));
|
|
|
50894
50894
|
});
|
|
50895
50895
|
}, to = (g) => (y) => {
|
|
50896
50896
|
Ag(y, g);
|
|
50897
|
-
},
|
|
50897
|
+
}, cl = (g) => (y) => {
|
|
50898
50898
|
ES(y, g);
|
|
50899
50899
|
}, Ju = {
|
|
50900
50900
|
byClass: (g) => {
|
|
50901
|
-
const y = to(g.selected), T =
|
|
50901
|
+
const y = to(g.selected), T = cl([
|
|
50902
50902
|
g.selected,
|
|
50903
50903
|
g.lastSelected,
|
|
50904
50904
|
g.firstSelected
|
|
@@ -50995,7 +50995,7 @@ Required: ` + y.join(", "));
|
|
|
50995
50995
|
g.dom.removeEventListener(y, T, $);
|
|
50996
50996
|
}, AS = Oe, Mm = (g, y, T) => Bw(g, y, AS, T), Og = kS, Vp = (g) => !Hp(mn.fromDom(g.target), "ephox-snooker-resizer-bar"), f0 = (g, y) => {
|
|
50997
50997
|
const T = TS(() => mn.fromDom(g.getBody()), () => Sd(Eb(g), bg(g)), Tu.selectedSelector), $ = (ke, it, It) => {
|
|
50998
|
-
|
|
50998
|
+
tl(it).each((Xn) => {
|
|
50999
50999
|
const In = nt(ke, (pn) => pn.dom), Fn = N1(g), ho = hm(K, mn.fromDom(g.getDoc()), Fn), kn = Sg(g), Vo = Nm(Xn, { selection: kn }, ho).map((pn) => yt(pn, (io) => nt(io, (hr) => hr.dom))).getOrUndefined();
|
|
51000
51000
|
Vi(g, In, it.dom, It.dom, Vo);
|
|
51001
51001
|
});
|
|
@@ -51003,7 +51003,7 @@ Required: ` + y.join(", "));
|
|
|
51003
51003
|
return g.on("init", (ke) => {
|
|
51004
51004
|
const it = g.getWin(), It = R1(g), _n = bg(g), Xn = () => {
|
|
51005
51005
|
const Er = g.selection, Hl = mn.fromDom(Er.getStart()), ji = mn.fromDom(Er.getEnd());
|
|
51006
|
-
P1(
|
|
51006
|
+
P1(tl, [
|
|
51007
51007
|
Hl,
|
|
51008
51008
|
ji
|
|
51009
51009
|
]).fold(() => X.clear(It), K);
|
|
@@ -51361,7 +51361,7 @@ Required: ` + y.join(", "));
|
|
|
51361
51361
|
return Ag(de, Ek), de;
|
|
51362
51362
|
});
|
|
51363
51363
|
}, U$ = (g, y, T, $, V) => {
|
|
51364
|
-
const X = Pc(T), de = y.isResizable, Ee = $.length > 0 ?
|
|
51364
|
+
const X = Pc(T), de = y.isResizable, Ee = $.length > 0 ? al.positions($, T) : [], ke = Ee.length > 0 ? Dg(g, de) : [], it = Ve(Ee, (In, Fn) => ve(ke, (ho) => Fn === ho));
|
|
51365
51365
|
WI(y, it, X, sr(T));
|
|
51366
51366
|
const It = V.length > 0 ? dp.positions(V, T) : [], _n = It.length > 0 ? zw(g, de) : [], Xn = Ve(It, (In, Fn) => ve(_n, (ho) => Fn === ho));
|
|
51367
51367
|
gv(y, Xn, X, Ho(T));
|
|
@@ -51448,7 +51448,7 @@ Required: ` + y.join(", "));
|
|
|
51448
51448
|
events: In.registry
|
|
51449
51449
|
};
|
|
51450
51450
|
}, W$ = { create: (g, y, T) => {
|
|
51451
|
-
const $ =
|
|
51451
|
+
const $ = al, V = dp, X = j$(g), de = Wh({
|
|
51452
51452
|
beforeResize: su([
|
|
51453
51453
|
"table",
|
|
51454
51454
|
"type"
|
|
@@ -51545,7 +51545,7 @@ Required: ` + y.join(", "));
|
|
|
51545
51545
|
const y = u0(), T = u0(), $ = u0();
|
|
51546
51546
|
let V, X, de, Ee;
|
|
51547
51547
|
const ke = (io) => iw(g, io), it = () => _E(g) ? Uy() : NE(), It = (io) => Ch(io).columns, _n = (io) => Ch(io).rows, Xn = (io, hr, vr, To) => {
|
|
51548
|
-
const zr = zS(hr), wc =
|
|
51548
|
+
const zr = zS(hr), wc = el(zr, "e"), zp = ii(zr, "n");
|
|
51549
51549
|
if (X === "" && Np(io), Ee === "" && l$(io), vr !== V && X !== "") {
|
|
51550
51550
|
hs(io, "width", X);
|
|
51551
51551
|
const rf = it(), Bs = ke(io), Er = _E(g) || wc ? It(io) - 1 : 0;
|
|
@@ -52500,7 +52500,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
52500
52500
|
}, ya = (ue) => !ms(ue) && ue.dom.isEditable(ue.selection.getNode()) && !ue.mode.isReadOnly(), ka = (ue) => j.from(ue.dom.getParent(ue.selection.getNode(), Jo)), cr = (ue) => ka(ue).isSome(), bu = (ue) => (ue.innerHTML = '<br data-mce-bogus="1" />', ue), Ni = (ue) => bu(ue.dom.create("p")), Oc = (ue) => bu(ue.dom.create("summary")), ws = (ue, Ce) => {
|
|
52501
52501
|
const st = Ni(ue);
|
|
52502
52502
|
Ce.insertAdjacentElement("afterend", st), ue.selection.setCursorLocation(st, 0);
|
|
52503
|
-
},
|
|
52503
|
+
}, Ji = (ue, Ce) => {
|
|
52504
52504
|
if (ba(Ce == null ? void 0 : Ce.lastChild)) {
|
|
52505
52505
|
const st = Ni(ue);
|
|
52506
52506
|
Ce.appendChild(st), ue.selection.setCursorLocation(st, 0);
|
|
@@ -52511,7 +52511,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
52511
52511
|
Ce.prepend(st), ue.selection.setCursorLocation(st, 0);
|
|
52512
52512
|
}
|
|
52513
52513
|
}, ic = (ue) => (Ce) => {
|
|
52514
|
-
|
|
52514
|
+
Ji(ue, Ce), Cr(ue, Ce);
|
|
52515
52515
|
}, _i = (ue) => {
|
|
52516
52516
|
hi.each(hi.grep(ue.dom.select("details", ue.getBody())), ic(ue));
|
|
52517
52517
|
}, bl = (ue) => {
|
|
@@ -52553,7 +52553,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
52553
52553
|
const Zr = (ue) => {
|
|
52554
52554
|
var Ce, st;
|
|
52555
52555
|
return (st = (Ce = ue.attr("class")) === null || Ce === void 0 ? void 0 : Ce.split(" ")) !== null && st !== void 0 ? st : [];
|
|
52556
|
-
},
|
|
52556
|
+
}, Qi = (ue, Ce) => {
|
|
52557
52557
|
const st = /* @__PURE__ */ new Set([
|
|
52558
52558
|
...Zr(ue),
|
|
52559
52559
|
...Ce
|
|
@@ -52586,9 +52586,9 @@ tinymce.addI18n("zh_CN", {
|
|
|
52586
52586
|
const re = en[Un];
|
|
52587
52587
|
if (Yl(re)) {
|
|
52588
52588
|
const we = re, { summaryNode: Ke, wrapperNode: Ot, otherNodes: Mn } = Ri(we), Rn = O(Ke), xs = Rn ? Ke : new uc("summary", 1);
|
|
52589
|
-
A(xs.firstChild) && ea(xs),
|
|
52589
|
+
A(xs.firstChild) && ea(xs), Qi(xs, [ys]), Rn || (O(we.firstChild) ? we.insert(xs, we.firstChild, !0) : we.append(xs));
|
|
52590
52590
|
const ga = O(Ot), sn = ga ? Ot : new uc(Ps, 1);
|
|
52591
|
-
if (sn.attr("data-mce-bogus", "1"),
|
|
52591
|
+
if (sn.attr("data-mce-bogus", "1"), Qi(sn, [fr]), Mn.length > 0)
|
|
52592
52592
|
for (let Aa = 0; Aa < Mn.length; Aa++) {
|
|
52593
52593
|
const Qs = Mn[Aa];
|
|
52594
52594
|
sn.append(Qs);
|
|
@@ -57911,7 +57911,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
57911
57911
|
opera: et(ya),
|
|
57912
57912
|
firefox: et(ka),
|
|
57913
57913
|
safari: et(cr)
|
|
57914
|
-
}, ws = "Windows",
|
|
57914
|
+
}, ws = "Windows", Ji = "iOS", Cr = "Android", ic = "Linux", _i = "macOS", bl = "Solaris", wa = "FreeBSD", lc = "ChromeOS", Mi = () => cc({
|
|
57915
57915
|
current: void 0,
|
|
57916
57916
|
version: yo.unknown()
|
|
57917
57917
|
}), cc = (Re) => {
|
|
@@ -57920,7 +57920,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
57920
57920
|
current: Fe,
|
|
57921
57921
|
version: Rt,
|
|
57922
57922
|
isWindows: rn(ws),
|
|
57923
|
-
isiOS: rn(
|
|
57923
|
+
isiOS: rn(Ji),
|
|
57924
57924
|
isAndroid: rn(Cr),
|
|
57925
57925
|
isMacOS: rn(_i),
|
|
57926
57926
|
isLinux: rn(ic),
|
|
@@ -57932,7 +57932,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
57932
57932
|
unknown: Mi,
|
|
57933
57933
|
nu: cc,
|
|
57934
57934
|
windows: et(ws),
|
|
57935
|
-
ios: et(
|
|
57935
|
+
ios: et(Ji),
|
|
57936
57936
|
android: et(Cr),
|
|
57937
57937
|
linux: et(ic),
|
|
57938
57938
|
macos: et(_i),
|
|
@@ -57946,8 +57946,8 @@ tinymce.addI18n("zh_CN", {
|
|
|
57946
57946
|
os: hs,
|
|
57947
57947
|
deviceType: Sr
|
|
57948
57948
|
};
|
|
57949
|
-
} },
|
|
57950
|
-
let ql = qt(() => Zr.detect(window.navigator.userAgent, mt.from(window.navigator.userAgentData),
|
|
57949
|
+
} }, Qi = (Re) => window.matchMedia(Re).matches;
|
|
57950
|
+
let ql = qt(() => Zr.detect(window.navigator.userAgent, mt.from(window.navigator.userAgentData), Qi));
|
|
57951
57951
|
const Yl = () => ql(), qc = (Re, Fe) => ({
|
|
57952
57952
|
left: Re,
|
|
57953
57953
|
top: Fe,
|
|
@@ -58082,7 +58082,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
58082
58082
|
Rt.setActive(Fe.get() !== null);
|
|
58083
58083
|
const rn = (Eo) => Rt.setActive(Eo.state);
|
|
58084
58084
|
return Re.on("FullscreenStateChanged", rn), () => Re.off("FullscreenStateChanged", rn);
|
|
58085
|
-
},
|
|
58085
|
+
}, el = (Re, Fe) => {
|
|
58086
58086
|
const Rt = () => Re.execCommand("mceFullScreen");
|
|
58087
58087
|
Re.ui.registry.addToggleMenuItem("fullscreen", {
|
|
58088
58088
|
text: "Fullscreen",
|
|
@@ -58103,7 +58103,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
58103
58103
|
var Fu = () => {
|
|
58104
58104
|
s.add("fullscreen", (Re) => {
|
|
58105
58105
|
const Fe = o(null);
|
|
58106
|
-
return Re.inline || (tn(Re), Or(Re, Fe),
|
|
58106
|
+
return Re.inline || (tn(Re), Or(Re, Fe), el(Re, Fe), Ya(Re, Fe), Re.addShortcut("Meta+Shift+F", "", "mceFullScreen")), i(Fe);
|
|
58107
58107
|
});
|
|
58108
58108
|
};
|
|
58109
58109
|
Fu();
|
|
@@ -59459,7 +59459,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
59459
59459
|
type: "dropzone",
|
|
59460
59460
|
name: "fileinput"
|
|
59461
59461
|
}]
|
|
59462
|
-
}) },
|
|
59462
|
+
}) }, Ji = (re) => ({
|
|
59463
59463
|
prevImage: ms.findEntry(re.imageList, re.image.src),
|
|
59464
59464
|
prevAlt: re.image.alt,
|
|
59465
59465
|
open: !0
|
|
@@ -59570,7 +59570,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
59570
59570
|
}) : (re.addToBlobCache(Qs), sn(Qs.blobUri()), Ot.unblock());
|
|
59571
59571
|
});
|
|
59572
59572
|
});
|
|
59573
|
-
},
|
|
59573
|
+
}, Qi = (re, we, Ke) => (Ot, Mn) => {
|
|
59574
59574
|
Mn.name === "src" ? Gl(re, we, Ke, Ot) : Mn.name === "images" ? uc(re, we, Ke, Ot) : Mn.name === "alt" ? Ke.prevAlt = Ot.getData().alt : Mn.name === "fileinput" ? Zr(re, we, Ke, Ot) : Mn.name === "isDecorative" && Ot.setEnabled("alt", !Ot.getData().isDecorative);
|
|
59575
59575
|
}, ql = (re) => () => {
|
|
59576
59576
|
re.open = !1;
|
|
@@ -59625,7 +59625,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
59625
59625
|
};
|
|
59626
59626
|
return { open: () => {
|
|
59627
59627
|
ka(re).then((Ot) => {
|
|
59628
|
-
const Mn =
|
|
59628
|
+
const Mn = Ji(Ot);
|
|
59629
59629
|
return {
|
|
59630
59630
|
title: "Insert/Edit Image",
|
|
59631
59631
|
size: "normal",
|
|
@@ -59645,7 +59645,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
59645
59645
|
],
|
|
59646
59646
|
initialData: Cr(Ot.image),
|
|
59647
59647
|
onSubmit: qc(re, Ot, we),
|
|
59648
|
-
onChange:
|
|
59648
|
+
onChange: Qi(we, Ot, Mn),
|
|
59649
59649
|
onClose: ql(Mn)
|
|
59650
59650
|
};
|
|
59651
59651
|
}).then(re.windowManager.open);
|
|
@@ -60583,7 +60583,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
60583
60583
|
...Se,
|
|
60584
60584
|
on: (pt) => Se.get().each(pt)
|
|
60585
60585
|
};
|
|
60586
|
-
}, Oc = (Se, Ge) => Se.substring(Ge), ws = (Se, Ge, pt) => Ge === "" || Se.length >= Ge.length && Se.substr(pt, pt + Ge.length) === Ge,
|
|
60586
|
+
}, Oc = (Se, Ge) => Se.substring(Ge), ws = (Se, Ge, pt) => Ge === "" || Se.length >= Ge.length && Se.substr(pt, pt + Ge.length) === Ge, Ji = (Se, Ge) => Cr(Se, Ge) ? Oc(Se, Ge.length) : Se, Cr = (Se, Ge) => ws(Se, Ge, 0);
|
|
60587
60587
|
var ic = tinymce.util.Tools.resolve("tinymce.util.VK");
|
|
60588
60588
|
const _i = (Se, Ge) => {
|
|
60589
60589
|
document.body.appendChild(Se), Se.dispatchEvent(Ge), document.body.removeChild(Se);
|
|
@@ -60600,7 +60600,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
60600
60600
|
if (Ge) {
|
|
60601
60601
|
const pt = Cn(Ge);
|
|
60602
60602
|
if (/^#/.test(pt)) {
|
|
60603
|
-
const tn = Se.dom.select(`${pt},[name="${
|
|
60603
|
+
const tn = Se.dom.select(`${pt},[name="${Ji(pt, "#")}"]`);
|
|
60604
60604
|
tn.length && Se.selection.scrollIntoView(tn[0], !0);
|
|
60605
60605
|
} else
|
|
60606
60606
|
bl(Ge.href);
|
|
@@ -60629,7 +60629,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
60629
60629
|
ue.preventDefault(), lc(Se, Ce);
|
|
60630
60630
|
});
|
|
60631
60631
|
}), { gotoSelectedLink: tn };
|
|
60632
|
-
},
|
|
60632
|
+
}, Qi = (Se) => () => {
|
|
60633
60633
|
Se.execCommand("mceLink", !1, { dialog: !0 });
|
|
60634
60634
|
}, ql = (Se, Ge) => (Se.on("NodeChange", Ge), () => Se.off("NodeChange", Ge)), Yl = (Se) => (Ge) => {
|
|
60635
60635
|
const pt = () => {
|
|
@@ -60651,7 +60651,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
60651
60651
|
icon: "link",
|
|
60652
60652
|
tooltip: "Insert/edit link",
|
|
60653
60653
|
shortcut: "Meta+K",
|
|
60654
|
-
onAction:
|
|
60654
|
+
onAction: Qi(Se),
|
|
60655
60655
|
onSetup: Yl(Se)
|
|
60656
60656
|
}), Se.ui.registry.addButton("openlink", {
|
|
60657
60657
|
icon: "new-tab",
|
|
@@ -60674,7 +60674,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
60674
60674
|
icon: "link",
|
|
60675
60675
|
text: "Link...",
|
|
60676
60676
|
shortcut: "Meta+K",
|
|
60677
|
-
onAction:
|
|
60677
|
+
onAction: Qi(Se),
|
|
60678
60678
|
onSetup: qc(Se)
|
|
60679
60679
|
}), Se.ui.registry.addMenuItem("unlink", {
|
|
60680
60680
|
icon: "unlink",
|
|
@@ -61082,7 +61082,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61082
61082
|
const hi = (L) => (te) => A(te) && te.nodeName.toLowerCase() === L, ba = (L) => (te) => A(te) && L.test(te.nodeName), Jo = (L) => A(L) && L.nodeType === 3, us = (L) => A(L) && L.nodeType === 1, ms = ba(/^(OL|UL|DL)$/), Ta = ba(/^(OL|UL)$/), ya = hi("ol"), ka = ba(/^(LI|DT|DD)$/), cr = ba(/^(DT|DD)$/), bu = ba(/^(TH|TD)$/), Ni = hi("br"), Oc = (L) => {
|
|
61083
61083
|
var te;
|
|
61084
61084
|
return ((te = L.parentNode) === null || te === void 0 ? void 0 : te.firstChild) === L;
|
|
61085
|
-
}, ws = (L, te) => A(te) && te.nodeName in L.schema.getTextBlockElements(),
|
|
61085
|
+
}, ws = (L, te) => A(te) && te.nodeName in L.schema.getTextBlockElements(), Ji = (L, te) => A(L) && L.nodeName in te, Cr = (L, te) => A(te) && te.nodeName in L.schema.getVoidElements(), ic = (L, te) => Ni(te) ? L.isBlock(te.nextSibling) && !Ni(te.previousSibling) : !1, _i = (L, te, he) => {
|
|
61086
61086
|
const Je = L.isEmpty(te);
|
|
61087
61087
|
return he && L.select("span[data-mce-type=bookmark]", te).length > 0 ? !1 : Je;
|
|
61088
61088
|
}, bl = (L, te) => L.isChildOf(te, L.getRoot()), wa = (L) => (te) => te.options.get(L), lc = (L) => {
|
|
@@ -61097,12 +61097,12 @@ tinymce.addI18n("zh_CN", {
|
|
|
61097
61097
|
for (Co = Je.create(Ho, {
|
|
61098
61098
|
...gs,
|
|
61099
61099
|
...he.style ? { style: he.style } : {}
|
|
61100
|
-
}),
|
|
61100
|
+
}), Ji(te.firstChild, ct) || Tn.appendChild(Co); ls = te.firstChild; ) {
|
|
61101
61101
|
const xa = ls.nodeName;
|
|
61102
|
-
!na && (xa !== "SPAN" || ls.getAttribute("data-mce-type") !== "bookmark") && (na = !0),
|
|
61102
|
+
!na && (xa !== "SPAN" || ls.getAttribute("data-mce-type") !== "bookmark") && (na = !0), Ji(ls, ct) ? (Tn.appendChild(ls), Co = null) : (Co || (Co = Je.create(Ho, gs), Tn.appendChild(Co)), Co.appendChild(ls));
|
|
61103
61103
|
}
|
|
61104
61104
|
return !na && Co && Co.appendChild(Je.create("br", { "data-mce-bogus": "1" })), Tn;
|
|
61105
|
-
}, Zr = fr.DOM,
|
|
61105
|
+
}, Zr = fr.DOM, Qi = (L, te, he) => {
|
|
61106
61106
|
const Je = (Co) => {
|
|
61107
61107
|
const na = Co.parentNode;
|
|
61108
61108
|
na && Ps.each(ct, (xa) => {
|
|
@@ -61120,7 +61120,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61120
61120
|
const ls = he.parentElement;
|
|
61121
61121
|
ls && _i(L.dom, ls) && Je(ls), Zr.remove(he), _i(L.dom, te) && Zr.remove(te);
|
|
61122
61122
|
}, ql = Ds("dd"), Yl = Ds("dt"), qc = (L, te) => {
|
|
61123
|
-
ql(te) ? ys(te, "dt") : Yl(te) && nr(te).each((he) =>
|
|
61123
|
+
ql(te) ? ys(te, "dt") : Yl(te) && nr(te).each((he) => Qi(L, he.dom, te.dom));
|
|
61124
61124
|
}, Ri = (L) => {
|
|
61125
61125
|
Yl(L) && ys(L, "dd");
|
|
61126
61126
|
}, ea = (L, te, he) => {
|
|
@@ -61217,7 +61217,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61217
61217
|
}, ep = (L, te, he) => {
|
|
61218
61218
|
const Je = L.dom;
|
|
61219
61219
|
eg(Je, te, he);
|
|
61220
|
-
}, Or = (L) => gt(L, "OL,UL"), wu = (L) => gt(L, "LI"), Ya = (L) => yr(L).exists(Or), ii = (L) => Jr(L).exists(Or),
|
|
61220
|
+
}, Or = (L) => gt(L, "OL,UL"), wu = (L) => gt(L, "LI"), Ya = (L) => yr(L).exists(Or), ii = (L) => Jr(L).exists(Or), el = (L) => "listAttributes" in L, Fu = (L) => "isComment" in L, Re = (L) => "isFragment" in L, Fe = (L) => L.depth > 0, Rt = (L) => L.isSelected, rn = (L) => {
|
|
61221
61221
|
const te = Xo(L), he = ii(L) ? te.slice(0, -1) : te;
|
|
61222
61222
|
return Oe(he, Oo);
|
|
61223
61223
|
}, Eo = (L, te, he) => ko(L).filter(Pn).map((Je) => ({
|
|
@@ -61245,13 +61245,13 @@ tinymce.addI18n("zh_CN", {
|
|
|
61245
61245
|
}, yl = (L, te, he) => {
|
|
61246
61246
|
const Je = [];
|
|
61247
61247
|
for (let ct = 0; ct < he; ct++)
|
|
61248
|
-
Je.push(Na(L,
|
|
61248
|
+
Je.push(Na(L, el(te) ? te.listType : te.parentListType));
|
|
61249
61249
|
return Je;
|
|
61250
61250
|
}, Bi = (L, te) => {
|
|
61251
61251
|
for (let he = 0; he < L.length - 1; he++)
|
|
61252
61252
|
ep(L[he].item, "list-style-type", "none");
|
|
61253
61253
|
At(L).each((he) => {
|
|
61254
|
-
|
|
61254
|
+
el(te) && (vo(he.list, te.listAttributes), vo(he.item, te.itemAttributes)), Ht(he.item, te.content);
|
|
61255
61255
|
});
|
|
61256
61256
|
}, Gr = (L, te) => {
|
|
61257
61257
|
Do(L.list) !== te.listType && (L.list = ys(L.list, te.listType)), vo(L.list, te.listAttributes);
|
|
@@ -61263,7 +61263,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61263
61263
|
}, Ei = (L, te, he) => {
|
|
61264
61264
|
const Je = te.slice(0, he.depth);
|
|
61265
61265
|
return At(Je).each((ct) => {
|
|
61266
|
-
if (
|
|
61266
|
+
if (el(he)) {
|
|
61267
61267
|
const Tn = Ca(L, he.itemAttributes, he.content);
|
|
61268
61268
|
Va(ct, Tn), Gr(ct, he);
|
|
61269
61269
|
} else if (Re(he))
|
|
@@ -61298,7 +61298,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61298
61298
|
}
|
|
61299
61299
|
te.dirty = !0;
|
|
61300
61300
|
}, Cu = (L, te) => {
|
|
61301
|
-
|
|
61301
|
+
el(L) && el(te) && (L.listType = te.listType, L.listAttributes = { ...te.listAttributes });
|
|
61302
61302
|
}, tg = (L) => {
|
|
61303
61303
|
L.listAttributes = En(L.listAttributes, (te, he) => he !== "start");
|
|
61304
61304
|
}, ud = (L, te) => {
|
|
@@ -61306,7 +61306,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61306
61306
|
return M(nt(L.slice(0, te)), Je, ct).orThunk(() => M(L.slice(te + 1), Je, ct));
|
|
61307
61307
|
}, kf = (L) => (ce(L, (te, he) => {
|
|
61308
61308
|
ud(L, he).fold(() => {
|
|
61309
|
-
te.dirty &&
|
|
61309
|
+
te.dirty && el(te) && tg(te);
|
|
61310
61310
|
}, (Je) => Cu(te, Je));
|
|
61311
61311
|
}), L), Af = (L) => {
|
|
61312
61312
|
let te = L;
|
|
@@ -61357,7 +61357,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61357
61357
|
}), dc = (L, te, he, Je) => ot(Xo(Je), (ct) => {
|
|
61358
61358
|
const Tn = Or(ct) ? dc : Fd, Ho = L + 1;
|
|
61359
61359
|
return Tn(Ho, te, he, ct);
|
|
61360
|
-
}),
|
|
61360
|
+
}), tl = (L, te) => {
|
|
61361
61361
|
const he = Af(!1), Je = 0;
|
|
61362
61362
|
return Oe(L, (ct) => ({
|
|
61363
61363
|
sourceList: ct,
|
|
@@ -61366,7 +61366,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61366
61366
|
}, b1 = (L, te) => {
|
|
61367
61367
|
const he = kf(te);
|
|
61368
61368
|
return Oe(he, (Je) => {
|
|
61369
|
-
const ct = Fu(Je) ? la([q.fromHtml(`<!--${Je.content}-->`)]) : la(Je.content), Tn =
|
|
61369
|
+
const ct = Fu(Je) ? la([q.fromHtml(`<!--${Je.content}-->`)]) : la(Je.content), Tn = el(Je) ? Je.itemAttributes : {};
|
|
61370
61370
|
return q.fromDom(uc(L, ct.dom, Tn));
|
|
61371
61371
|
});
|
|
61372
61372
|
}, Lu = (L, te) => {
|
|
@@ -61381,7 +61381,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61381
61381
|
end: Je
|
|
61382
61382
|
}));
|
|
61383
61383
|
}, ng = (L, te, he) => {
|
|
61384
|
-
const Je =
|
|
61384
|
+
const Je = tl(te, np(L));
|
|
61385
61385
|
ce(Je, (ct) => {
|
|
61386
61386
|
Of(ct.entries, he);
|
|
61387
61387
|
const Tn = tp(L, ct.entries);
|
|
@@ -61453,11 +61453,11 @@ tinymce.addI18n("zh_CN", {
|
|
|
61453
61453
|
ih(te, he["list-attributes"]), Ps.each(L.select("li", te), (Je) => {
|
|
61454
61454
|
ih(Je, he["list-item-attributes"]);
|
|
61455
61455
|
});
|
|
61456
|
-
},
|
|
61456
|
+
}, nl = (L, te, he) => {
|
|
61457
61457
|
dd(L, te, he), Nf(L, te, he);
|
|
61458
61458
|
}, sg = (L, te, he) => {
|
|
61459
61459
|
Ps.each(he, (Je) => L.setStyle(te, Je, ""));
|
|
61460
|
-
}, rg = (L, te) => A(te) && !
|
|
61460
|
+
}, rg = (L, te) => A(te) && !Ji(te, L.schema.getBlockElements()), fd = (L, te, he, Je) => {
|
|
61461
61461
|
let ct = te[he ? "startContainer" : "endContainer"];
|
|
61462
61462
|
const Tn = te[he ? "startOffset" : "endOffset"];
|
|
61463
61463
|
us(ct) && (ct = ct.childNodes[Math.min(Tn, ct.childNodes.length - 1)] || ct), !he && Ni(ct.nextSibling) && (ct = ct.nextSibling);
|
|
@@ -61545,20 +61545,20 @@ tinymce.addI18n("zh_CN", {
|
|
|
61545
61545
|
"padding-bottom",
|
|
61546
61546
|
"padding-left",
|
|
61547
61547
|
"padding-top"
|
|
61548
|
-
]),
|
|
61548
|
+
]), nl(Ho, na, he), Vd(L.dom, na));
|
|
61549
61549
|
}), L.selection.setRng(Sa(gs));
|
|
61550
61550
|
}, Ti = (L, te) => ms(L) && L.nodeName === (te == null ? void 0 : te.nodeName), gd = (L, te, he) => {
|
|
61551
61551
|
const Je = L.getStyle(te, "list-style-type", !0), ct = L.getStyle(he, "list-style-type", !0);
|
|
61552
61552
|
return Je === ct;
|
|
61553
|
-
}, Yc = (L, te) => L.className === te.className,
|
|
61553
|
+
}, Yc = (L, te) => L.className === te.className, ol = (L, te, he) => Ti(te, he) && gd(L, te, he) && Yc(te, he), Vd = (L, te) => {
|
|
61554
61554
|
let he, Je = te.nextSibling;
|
|
61555
|
-
if (
|
|
61555
|
+
if (ol(L, te, Je)) {
|
|
61556
61556
|
const ct = Je;
|
|
61557
61557
|
for (; he = ct.firstChild; )
|
|
61558
61558
|
te.appendChild(he);
|
|
61559
61559
|
L.remove(ct);
|
|
61560
61560
|
}
|
|
61561
|
-
if (Je = te.previousSibling,
|
|
61561
|
+
if (Je = te.previousSibling, ol(L, te, Je)) {
|
|
61562
61562
|
const ct = Je;
|
|
61563
61563
|
for (; he = ct.lastChild; )
|
|
61564
61564
|
te.insertBefore(he, te.firstChild);
|
|
@@ -61567,17 +61567,17 @@ tinymce.addI18n("zh_CN", {
|
|
|
61567
61567
|
}, w1 = (L, te, he, Je) => {
|
|
61568
61568
|
if (te.nodeName !== he) {
|
|
61569
61569
|
const ct = L.dom.rename(te, he);
|
|
61570
|
-
|
|
61570
|
+
nl(L.dom, ct, Je), Cs(L, Fi(he), ct);
|
|
61571
61571
|
} else
|
|
61572
|
-
|
|
61572
|
+
nl(L.dom, te, Je), Cs(L, Fi(he), te);
|
|
61573
61573
|
}, ig = (L, te, he, Je) => {
|
|
61574
61574
|
if (te.classList.forEach((ct, Tn, Ho) => {
|
|
61575
61575
|
ct.startsWith("tox-") && (Ho.remove(ct), Ho.length === 0 && te.removeAttribute("class"));
|
|
61576
61576
|
}), te.nodeName !== he) {
|
|
61577
61577
|
const ct = L.dom.rename(te, he);
|
|
61578
|
-
|
|
61578
|
+
nl(L.dom, ct, Je), Cs(L, Fi(he), ct);
|
|
61579
61579
|
} else
|
|
61580
|
-
|
|
61580
|
+
nl(L.dom, te, Je), Cs(L, Fi(he), te);
|
|
61581
61581
|
}, Su = (L, te, he, Je, ct) => {
|
|
61582
61582
|
const Tn = ms(te);
|
|
61583
61583
|
if (Tn && te.nodeName === Je && !Mf(ct) && !xs(te))
|
|
@@ -61601,7 +61601,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
61601
61601
|
const ct = js(L.selection.getRng());
|
|
61602
61602
|
xs(te) && te.classList.forEach((Ho, gs, ls) => {
|
|
61603
61603
|
Ho.startsWith("tox-") && (ls.remove(Ho), ls.length === 0 && te.removeAttribute("class"));
|
|
61604
|
-
}),
|
|
61604
|
+
}), nl(L.dom, te, Je);
|
|
61605
61605
|
const Tn = L.dom.rename(te, he);
|
|
61606
61606
|
Vd(L.dom, Tn), L.selection.setRng(Sa(ct)), ag(L, he, Je), Cs(L, Fi(he), Tn);
|
|
61607
61607
|
}
|
|
@@ -64529,13 +64529,13 @@ tinymce.addI18n("zh_CN", {
|
|
|
64529
64529
|
for (let $e = 0; $e < I.length; $e++)
|
|
64530
64530
|
I[$e].each(me);
|
|
64531
64531
|
return U;
|
|
64532
|
-
}, Oc = (I, U, me) => I.isSome() && U.isSome() ? ee.some(me(I.getOrDie(), U.getOrDie())) : ee.none(), ws = (I) => I.bind(G),
|
|
64532
|
+
}, Oc = (I, U, me) => I.isSome() && U.isSome() ? ee.some(me(I.getOrDie(), U.getOrDie())) : ee.none(), ws = (I) => I.bind(G), Ji = (I, U) => I ? ee.some(U) : ee.none(), Cr = (I, U) => I.substring(U), ic = (I, U, me) => U === "" || I.length >= U.length && I.substr(me, me + U.length) === U, _i = (I, U) => bl(I, U) ? Cr(I, U.length) : I, bl = (I, U) => ic(I, U, 0), lc = ((I) => (U) => U.replace(I, ""))(/^\s+|\s+$/g), Mi = (I) => I.length > 0, cc = (I) => !Mi(I), Gl = (I, U = 10) => {
|
|
64533
64533
|
const me = parseInt(I, U);
|
|
64534
64534
|
return isNaN(me) ? ee.none() : ee.some(me);
|
|
64535
64535
|
}, uc = (I) => {
|
|
64536
64536
|
const U = parseFloat(I);
|
|
64537
64537
|
return isNaN(U) ? ee.none() : ee.some(U);
|
|
64538
|
-
}, Zr = (I) => I.style !== void 0 && R(I.style.getPropertyValue),
|
|
64538
|
+
}, Zr = (I) => I.style !== void 0 && R(I.style.getPropertyValue), Qi = (I, U, me) => {
|
|
64539
64539
|
if (!v(me))
|
|
64540
64540
|
throw console.error("Invalid call to CSS.set. Property ", U, ":: Value ", me, ":: Element ", I), new Error("CSS value must be a string: " + me);
|
|
64541
64541
|
Zr(I) && I.style.setProperty(U, me);
|
|
@@ -64543,7 +64543,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
64543
64543
|
Zr(I) && I.style.removeProperty(U);
|
|
64544
64544
|
}, Yl = (I, U, me) => {
|
|
64545
64545
|
const $e = I.dom;
|
|
64546
|
-
|
|
64546
|
+
Qi($e, U, me);
|
|
64547
64547
|
}, qc = (I, U) => {
|
|
64548
64548
|
const me = I.dom, ut = window.getComputedStyle(me).getPropertyValue(U);
|
|
64549
64549
|
return ut === "" && !qe(I) ? Ri(me, U) : ut;
|
|
@@ -64700,7 +64700,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
64700
64700
|
return "";
|
|
64701
64701
|
}
|
|
64702
64702
|
return ut;
|
|
64703
|
-
},
|
|
64703
|
+
}, el = (I, U, me) => {
|
|
64704
64704
|
Ya.each("left center right".split(" "), ($e) => {
|
|
64705
64705
|
$e !== me && I.formatter.remove("align" + $e, {}, U);
|
|
64706
64706
|
}), me && I.formatter.apply("align" + me, {}, U);
|
|
@@ -64799,7 +64799,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
64799
64799
|
processor: "object[]",
|
|
64800
64800
|
default: []
|
|
64801
64801
|
});
|
|
64802
|
-
}, ur = pa("table_sizing_mode"), Cu = pa("table_border_widths"), tg = pa("table_border_styles"), ud = pa("table_cell_advtab"), kf = pa("table_row_advtab"), Af = pa("table_advtab"), Bd = pa("table_appearance_options"), Fd = pa("table_grid"), dc = pa("table_style_by_css"),
|
|
64802
|
+
}, ur = pa("table_sizing_mode"), Cu = pa("table_border_widths"), tg = pa("table_border_styles"), ud = pa("table_cell_advtab"), kf = pa("table_row_advtab"), Af = pa("table_advtab"), Bd = pa("table_appearance_options"), Fd = pa("table_grid"), dc = pa("table_style_by_css"), tl = pa("table_cell_class_list"), b1 = pa("table_row_class_list"), Lu = pa("table_class_list"), tp = pa("table_toolbar"), Of = pa("table_background_color_map"), np = pa("table_border_color_map"), ng = (I) => ur(I) === "fixed", $f = (I) => ur(I) === "responsive", og = (I) => {
|
|
64803
64803
|
const U = I.options, me = U.get("table_default_styles");
|
|
64804
64804
|
return U.isSet("table_default_styles") ? me : Va(I, me);
|
|
64805
64805
|
}, op = (I) => {
|
|
@@ -64849,12 +64849,12 @@ tinymce.addI18n("zh_CN", {
|
|
|
64849
64849
|
ne(U, (me) => {
|
|
64850
64850
|
Fi(I, me);
|
|
64851
64851
|
});
|
|
64852
|
-
},
|
|
64852
|
+
}, nl = (I) => {
|
|
64853
64853
|
const U = I.dom;
|
|
64854
64854
|
U.parentNode !== null && U.parentNode.removeChild(U);
|
|
64855
64855
|
}, sg = (I) => {
|
|
64856
64856
|
const U = go(I);
|
|
64857
|
-
U.length > 0 && ih(I, U),
|
|
64857
|
+
U.length > 0 && ih(I, U), nl(I);
|
|
64858
64858
|
}, fd = ((I, U) => {
|
|
64859
64859
|
const me = (an) => {
|
|
64860
64860
|
if (!I(an))
|
|
@@ -64960,7 +64960,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
64960
64960
|
}),
|
|
64961
64961
|
remove: K({
|
|
64962
64962
|
unwrap: sg,
|
|
64963
|
-
remove:
|
|
64963
|
+
remove: nl
|
|
64964
64964
|
}),
|
|
64965
64965
|
create: K({
|
|
64966
64966
|
nu: fn.fromTag,
|
|
@@ -64999,9 +64999,9 @@ tinymce.addI18n("zh_CN", {
|
|
|
64999
64999
|
const ut = U(I, me);
|
|
65000
65000
|
return Gt($e, (an, Bn) => {
|
|
65001
65001
|
const po = U(I, Bn);
|
|
65002
|
-
return
|
|
65002
|
+
return ol(I, an, po);
|
|
65003
65003
|
}, ut);
|
|
65004
|
-
},
|
|
65004
|
+
}, ol = (I, U, me) => U.bind(($e) => me.filter(H(I.eq, $e))), Vd = gd, w1 = ag(), ig = (I, U) => Vd(w1, (me, $e) => I($e), U), Su = (I) => os(I, "table"), Mf = (I, U) => {
|
|
65005
65005
|
const me = ba(I, U);
|
|
65006
65006
|
return me.length > 0 ? ee.some(me) : ee.none();
|
|
65007
65007
|
}, C1 = (I, U, me) => mn(I, U).bind(($e) => mn(I, me).bind((ut) => ig(Su, [
|
|
@@ -65153,7 +65153,7 @@ tinymce.addI18n("zh_CN", {
|
|
|
65153
65153
|
}, If = (I) => () => {
|
|
65154
65154
|
const me = I.queryCommandValue("mceTableColType") === "th" ? "td" : "th";
|
|
65155
65155
|
I.execCommand("mceTableColType", !1, { type: me });
|
|
65156
|
-
}, up = (I) => xu(
|
|
65156
|
+
}, up = (I) => xu(tl(I)).map((U) => ({
|
|
65157
65157
|
name: "class",
|
|
65158
65158
|
type: "listbox",
|
|
65159
65159
|
label: "Class",
|
|
@@ -65301,8 +65301,8 @@ tinymce.addI18n("zh_CN", {
|
|
|
65301
65301
|
return (...$e) => (U || (U = !0, me = I.apply(null, $e)), me);
|
|
65302
65302
|
}, xa = (I, U) => yt(I.all, (me) => ae(me.cells, ($e) => ko(U, $e.element))), Pc = (I, U, me) => {
|
|
65303
65303
|
const $e = dt(U.selection, (an) => re(an).bind((Bn) => xa(I, Bn)).filter(me)), ut = Ni($e);
|
|
65304
|
-
return
|
|
65305
|
-
}, mc = (I, U) => U.mergable, bb = (I, U) => U.unmergable, mm = (I, U) => Pc(I, U, De), _1 = (I, U) => xa(I, U).exists((me) => !me.isLocked),
|
|
65304
|
+
return Ji(ut.length > 0, ut);
|
|
65305
|
+
}, mc = (I, U) => U.mergable, bb = (I, U) => U.unmergable, mm = (I, U) => Pc(I, U, De), _1 = (I, U) => xa(I, U).exists((me) => !me.isLocked), sl = (I, U) => ye(U, (me) => _1(I, me)), E1 = (I, U) => mc(I, U).filter((me) => sl(I, me.cells)), ky = (I, U) => bb(I, U).filter((me) => sl(I, me));
|
|
65306
65306
|
({ ...{ generate: (I) => {
|
|
65307
65307
|
if (!w(I))
|
|
65308
65308
|
throw new Error("cases must be an array");
|
|
@@ -65379,13 +65379,13 @@ Required: ` + U.join(", "));
|
|
|
65379
65379
|
const an = ut[ut.length - 1], Bn = ut[0].row, po = an.row + an.rowspan, ss = me.all.slice(Bn, po);
|
|
65380
65380
|
return Co(ss);
|
|
65381
65381
|
}).getOr("");
|
|
65382
|
-
},
|
|
65382
|
+
}, al = (I) => bl(I, "rgb") ? lp(I) : I, qo = (I) => {
|
|
65383
65383
|
const U = fn.fromDom(I);
|
|
65384
65384
|
return {
|
|
65385
65385
|
borderwidth: ea(U, "border-width").getOr(""),
|
|
65386
65386
|
borderstyle: ea(U, "border-style").getOr(""),
|
|
65387
|
-
bordercolor: ea(U, "border-color").map(
|
|
65388
|
-
backgroundcolor: ea(U, "background-color").map(
|
|
65387
|
+
bordercolor: ea(U, "border-color").map(al).getOr(""),
|
|
65388
|
+
backgroundcolor: ea(U, "background-color").map(al).getOr("")
|
|
65389
65389
|
};
|
|
65390
65390
|
}, _u = (I) => {
|
|
65391
65391
|
const U = I[0], me = I.slice(1);
|
|
@@ -65408,8 +65408,8 @@ Required: ` + U.join(", "));
|
|
|
65408
65408
|
], "valign"), A1 = (I, U) => {
|
|
65409
65409
|
const me = og(I), $e = op(I), ut = () => ({
|
|
65410
65410
|
borderstyle: Ue(me, "border-style").getOr(""),
|
|
65411
|
-
bordercolor:
|
|
65412
|
-
backgroundcolor:
|
|
65411
|
+
bordercolor: al(Ue(me, "border-color").getOr("")),
|
|
65412
|
+
backgroundcolor: al(Ue(me, "background-color").getOr(""))
|
|
65413
65413
|
}), an = {
|
|
65414
65414
|
height: "",
|
|
65415
65415
|
width: "100%",
|
|
@@ -65490,7 +65490,7 @@ Required: ` + U.join(", "));
|
|
|
65490
65490
|
const ut = U.length === 1;
|
|
65491
65491
|
ne(U, (an) => {
|
|
65492
65492
|
const Bn = an.element, po = ut ? De : $e, ss = ct.normal(I, Bn), fs = an.column.map((xr) => ct.normal(I, xr)).getOr(ss);
|
|
65493
|
-
wb(ss, fs, me, po), ud(I) && mg(ss, me, po), $e("halign") &&
|
|
65493
|
+
wb(ss, fs, me, po), ud(I) && mg(ss, me, po), $e("halign") && el(I, Bn, me.halign), $e("valign") && Fu(I, Bn, me.valign);
|
|
65494
65494
|
});
|
|
65495
65495
|
}, ch = (I, U) => {
|
|
65496
65496
|
I.execCommand("mceTableCellType", !1, {
|
|
@@ -65619,7 +65619,7 @@ Required: ` + U.join(", "));
|
|
|
65619
65619
|
const po = hi(fn.fromDom(Bn), "td,th"), ss = ct.normal(I, Bn);
|
|
65620
65620
|
Xl(ss, me, an), kf(I) && yd(ss, me, an), $e("height") && ne(po, (fs) => {
|
|
65621
65621
|
I.dom.setStyle(fs.dom, "height", null);
|
|
65622
|
-
}), $e("align") &&
|
|
65622
|
+
}), $e("align") && el(I, Bn, me.align);
|
|
65623
65623
|
});
|
|
65624
65624
|
}, fp = (I, U) => {
|
|
65625
65625
|
I.execCommand("mceTableRowType", !1, {
|
|
@@ -65806,7 +65806,7 @@ Required: ` + U.join(", "));
|
|
|
65806
65806
|
};
|
|
65807
65807
|
Cb(I, U, an, po);
|
|
65808
65808
|
const ss = ut.select("caption", U)[0];
|
|
65809
|
-
(ss && !an.caption || !ss && an.caption) && I.execCommand("mceTableToggleCaption"),
|
|
65809
|
+
(ss && !an.caption || !ss && an.caption) && I.execCommand("mceTableToggleCaption"), el(I, U, an.align);
|
|
65810
65810
|
}
|
|
65811
65811
|
if (I.focus(), I.addVisual(), M(Bn) > 0) {
|
|
65812
65812
|
const po = ve(Bn, "caption"), ss = po ? M(Bn) > 1 : !0;
|
|
@@ -66071,7 +66071,7 @@ Required: ` + U.join(", "));
|
|
|
66071
66071
|
fetch: vd(I, an, "tableclass", (po) => I.execCommand("mceTableToggleClass", !1, po)),
|
|
66072
66072
|
onSetup: U.onSetupTable
|
|
66073
66073
|
});
|
|
66074
|
-
const Bn = Yr(
|
|
66074
|
+
const Bn = Yr(tl(I));
|
|
66075
66075
|
Bn.length !== 0 && I.queryCommandSupported("mceTableCellToggleClass") && I.ui.registry.addMenuButton("tablecellclass", {
|
|
66076
66076
|
icon: "table-cell-classes",
|
|
66077
66077
|
tooltip: "Cell styles",
|
|
@@ -66311,7 +66311,7 @@ Required: ` + U.join(", "));
|
|
|
66311
66311
|
getSubmenuItems: () => fm(I, fs, "tableclass", (br) => I.execCommand("mceTableToggleClass", !1, br)),
|
|
66312
66312
|
onSetup: U.onSetupTable
|
|
66313
66313
|
});
|
|
66314
|
-
const xr = Yr(
|
|
66314
|
+
const xr = Yr(tl(I));
|
|
66315
66315
|
xr.length !== 0 && I.queryCommandSupported("mceTableCellToggleClass") && I.ui.registry.addNestedMenuItem("tablecellclass", {
|
|
66316
66316
|
icon: "table-cell-classes",
|
|
66317
66317
|
text: "Cell styles",
|
|
@@ -67095,6 +67095,20 @@ const vMe = (o, s) => {
|
|
|
67095
67095
|
}, xMe = (o) => {
|
|
67096
67096
|
o.querySelectorAll("table").forEach((i) => {
|
|
67097
67097
|
i.style.tableLayout = "fixed";
|
|
67098
|
+
const u = i.getAttribute("style") || "";
|
|
67099
|
+
if (u) {
|
|
67100
|
+
const f = u.split(";").filter((v) => v.trim()), p = [];
|
|
67101
|
+
f.forEach((v) => {
|
|
67102
|
+
const [w, S] = v.split(":").map((_) => _.trim());
|
|
67103
|
+
w && S && ([
|
|
67104
|
+
"margin",
|
|
67105
|
+
"margin-top",
|
|
67106
|
+
"margin-right",
|
|
67107
|
+
"margin-bottom",
|
|
67108
|
+
"margin-left"
|
|
67109
|
+
].includes(w.toLowerCase()) ? /\-\d+(\.\d+)?(px|em|rem|%|pt|pc|in|cm|mm|ex|ch|vw|vh|vmin|vmax)?/.test(S) || p.push(`${w}: ${S}`) : p.push(`${w}: ${S}`));
|
|
67110
|
+
}), p.some((v) => v.toLowerCase().startsWith("width")) || p.push("width: 100%"), i.setAttribute("style", p.join("; "));
|
|
67111
|
+
}
|
|
67098
67112
|
});
|
|
67099
67113
|
}, _Me = (o) => {
|
|
67100
67114
|
o.querySelectorAll("table").forEach((i) => {
|
|
@@ -67346,20 +67360,20 @@ const DMe = [
|
|
|
67346
67360
|
// 绑定文本
|
|
67347
67361
|
timeout: null
|
|
67348
67362
|
});
|
|
67349
|
-
|
|
67363
|
+
vl(() => {
|
|
67350
67364
|
yU.init({
|
|
67351
67365
|
license_key: "gpl"
|
|
67352
67366
|
}), yU.activeEditor.on("pagesizechange", (p) => {
|
|
67353
67367
|
s("update:pagesize", p.size);
|
|
67354
67368
|
});
|
|
67355
|
-
}),
|
|
67369
|
+
}), es(
|
|
67356
67370
|
() => i.contentValue,
|
|
67357
67371
|
() => {
|
|
67358
67372
|
u(() => {
|
|
67359
67373
|
s("update:modelValue", i.contentValue);
|
|
67360
67374
|
});
|
|
67361
67375
|
}
|
|
67362
|
-
),
|
|
67376
|
+
), es(
|
|
67363
67377
|
() => o.modelValue,
|
|
67364
67378
|
(p) => {
|
|
67365
67379
|
p && p !== i.contentValue && (i.contentValue = p);
|
|
@@ -67406,7 +67420,7 @@ function PMe(o, s, i, u, f, p) {
|
|
|
67406
67420
|
}, null, 8, ["modelValue", "init"])
|
|
67407
67421
|
]);
|
|
67408
67422
|
}
|
|
67409
|
-
const BMe = /* @__PURE__ */
|
|
67423
|
+
const BMe = /* @__PURE__ */ Xi(RMe, [["render", PMe]]), FMe = {
|
|
67410
67424
|
name: "ShadowDomWrap",
|
|
67411
67425
|
setup(o, { emit: s, expose: i }) {
|
|
67412
67426
|
const u = hn(null), f = hn(), p = hn(!1), v = (S) => {
|
|
@@ -67416,7 +67430,7 @@ const BMe = /* @__PURE__ */ Ji(RMe, [["render", PMe]]), FMe = {
|
|
|
67416
67430
|
}, w = (S) => {
|
|
67417
67431
|
S.stopPropagation(), p.value || (p.value = !0, s("onFocus"));
|
|
67418
67432
|
};
|
|
67419
|
-
return
|
|
67433
|
+
return vl(() => {
|
|
67420
67434
|
var A, O, R;
|
|
67421
67435
|
f.value = (A = u.value) == null ? void 0 : A.attachShadow({ mode: "open" }), document.addEventListener("click", v);
|
|
67422
67436
|
const S = document.createElement("link");
|
|
@@ -67450,7 +67464,7 @@ function LMe(o, s, i, u, f, p) {
|
|
|
67450
67464
|
], 8, ["to"])) : Ko("", !0)
|
|
67451
67465
|
], 512);
|
|
67452
67466
|
}
|
|
67453
|
-
const Sse = /* @__PURE__ */
|
|
67467
|
+
const Sse = /* @__PURE__ */ Xi(FMe, [["render", LMe]]), HMe = ["innerHTML"], VMe = /* @__PURE__ */ Wo({
|
|
67454
67468
|
__name: "index",
|
|
67455
67469
|
props: {
|
|
67456
67470
|
modelValue: {},
|
|
@@ -67731,7 +67745,7 @@ const vme = (o, s) => {
|
|
|
67731
67745
|
return (S == null ? void 0 : S.id) === ((_ = s == null ? void 0 : s.node) == null ? void 0 : _.id);
|
|
67732
67746
|
});
|
|
67733
67747
|
});
|
|
67734
|
-
return
|
|
67748
|
+
return es(
|
|
67735
67749
|
() => v,
|
|
67736
67750
|
() => {
|
|
67737
67751
|
var S, _, A, O;
|
|
@@ -67764,7 +67778,7 @@ function oRe() {
|
|
|
67764
67778
|
}, i = (u) => {
|
|
67765
67779
|
u.key === "Control" && (o.value = !1);
|
|
67766
67780
|
};
|
|
67767
|
-
return
|
|
67781
|
+
return vl(() => {
|
|
67768
67782
|
window.addEventListener("keydown", s), window.addEventListener("keyup", i);
|
|
67769
67783
|
}), cd(() => {
|
|
67770
67784
|
window.removeEventListener("keydown", s), window.removeEventListener("keyup", i);
|
|
@@ -67877,13 +67891,13 @@ function yme() {
|
|
|
67877
67891
|
const ee = document.createElement("div");
|
|
67878
67892
|
ee.id = `select_area_${f}`, ee.style.position = "absolute", ee.style.border = "1px solid #1677ff", ee.style.backgroundColor = "rgba(22, 119, 255, 0.05)", ee.style.pointerEvents = "none", ee.style.display = "none", document.body.appendChild(ee), A.value = ee;
|
|
67879
67893
|
};
|
|
67880
|
-
return
|
|
67894
|
+
return es(
|
|
67881
67895
|
_,
|
|
67882
67896
|
(De, ee) => {
|
|
67883
67897
|
Di(De, ee) || (fe(De), v.value && G());
|
|
67884
67898
|
},
|
|
67885
67899
|
{ deep: !0 }
|
|
67886
|
-
),
|
|
67900
|
+
), es(
|
|
67887
67901
|
() => i.value,
|
|
67888
67902
|
(De) => {
|
|
67889
67903
|
Nt(De) && et();
|
|
@@ -67907,7 +67921,7 @@ function wme() {
|
|
|
67907
67921
|
p.classList.add("node-selected");
|
|
67908
67922
|
});
|
|
67909
67923
|
};
|
|
67910
|
-
|
|
67924
|
+
es(
|
|
67911
67925
|
() => o,
|
|
67912
67926
|
() => {
|
|
67913
67927
|
i(), setTimeout(() => {
|
|
@@ -68058,7 +68072,7 @@ function lRe() {
|
|
|
68058
68072
|
var f;
|
|
68059
68073
|
(f = s.value) == null || f.addEventListener("dblclick", i);
|
|
68060
68074
|
};
|
|
68061
|
-
return
|
|
68075
|
+
return es(
|
|
68062
68076
|
s,
|
|
68063
68077
|
(f) => {
|
|
68064
68078
|
f && u();
|
|
@@ -68116,7 +68130,7 @@ function cRe() {
|
|
|
68116
68130
|
var _;
|
|
68117
68131
|
(_ = o.value) == null || _.addEventListener("focus", w, !0);
|
|
68118
68132
|
};
|
|
68119
|
-
return
|
|
68133
|
+
return es(
|
|
68120
68134
|
o,
|
|
68121
68135
|
(_) => {
|
|
68122
68136
|
_ && S();
|
|
@@ -68140,11 +68154,11 @@ function uRe(o) {
|
|
|
68140
68154
|
}, S = (_) => {
|
|
68141
68155
|
(_.ctrlKey || _.metaKey) && _.key === "z" ? (_.preventDefault(), v()) : (_.ctrlKey || _.metaKey) && _.key === "y" && (_.preventDefault(), w());
|
|
68142
68156
|
};
|
|
68143
|
-
return
|
|
68157
|
+
return vl(() => {
|
|
68144
68158
|
window.addEventListener("keydown", S);
|
|
68145
68159
|
}), cd(() => {
|
|
68146
68160
|
window.removeEventListener("keydown", S);
|
|
68147
|
-
}),
|
|
68161
|
+
}), es(
|
|
68148
68162
|
o,
|
|
68149
68163
|
K_((_) => {
|
|
68150
68164
|
_ && !f.value && (i.value.splice(u.value + 1), i.value.push(JSON.parse(JSON.stringify(_))), u.value++), f.value && (f.value = !1);
|
|
@@ -68188,7 +68202,7 @@ function dRe() {
|
|
|
68188
68202
|
}));
|
|
68189
68203
|
u(_);
|
|
68190
68204
|
};
|
|
68191
|
-
|
|
68205
|
+
vl(() => {
|
|
68192
68206
|
const w = f(o), S = p(w, Nt(i));
|
|
68193
68207
|
v(S);
|
|
68194
68208
|
});
|
|
@@ -68215,7 +68229,7 @@ function fRe() {
|
|
|
68215
68229
|
}, v = () => {
|
|
68216
68230
|
s.value && (window.addEventListener("keydown", f), s.value.addEventListener("mousedown", p));
|
|
68217
68231
|
};
|
|
68218
|
-
|
|
68232
|
+
es(
|
|
68219
68233
|
() => s.value,
|
|
68220
68234
|
(w) => {
|
|
68221
68235
|
Nt(w) && v();
|
|
@@ -68239,7 +68253,7 @@ function Sj() {
|
|
|
68239
68253
|
})) || []
|
|
68240
68254
|
].filter((v) => !!(v != null && v.element));
|
|
68241
68255
|
};
|
|
68242
|
-
|
|
68256
|
+
es(
|
|
68243
68257
|
() => [o, s.value, u],
|
|
68244
68258
|
() => {
|
|
68245
68259
|
Nt(u) && f();
|
|
@@ -68259,7 +68273,7 @@ function xj(o) {
|
|
|
68259
68273
|
}
|
|
68260
68274
|
function Cme() {
|
|
68261
68275
|
const o = _y(), s = cm();
|
|
68262
|
-
|
|
68276
|
+
vl(() => {
|
|
68263
68277
|
const { editorId: i } = o;
|
|
68264
68278
|
i && (loe.value[i] = hn({ ...o, ...s }));
|
|
68265
68279
|
}), cd(() => {
|
|
@@ -68421,7 +68435,7 @@ function vRe(o) {
|
|
|
68421
68435
|
}
|
|
68422
68436
|
function bRe(o) {
|
|
68423
68437
|
const { editorId: s } = o, i = hn(!1);
|
|
68424
|
-
|
|
68438
|
+
vl(() => {
|
|
68425
68439
|
U2.value[s] || (U2.value[s] = hn([]));
|
|
68426
68440
|
const u = U2.value[s].findIndex((f) => f.id === o.id);
|
|
68427
68441
|
u !== -1 && U2.value[s].splice(u, 1), i.value = !0, U2.value[s].push({ ...o, isMounted: i });
|
|
@@ -68632,7 +68646,7 @@ const yRe = /* @__PURE__ */ Wo({
|
|
|
68632
68646
|
[She, _.value]
|
|
68633
68647
|
]);
|
|
68634
68648
|
}
|
|
68635
|
-
}), kRe = /* @__PURE__ */
|
|
68649
|
+
}), kRe = /* @__PURE__ */ Xi(TRe, [["__scopeId", "data-v-16c69bc2"]]);
|
|
68636
68650
|
function ARe() {
|
|
68637
68651
|
const o = hn(!1), s = hn({
|
|
68638
68652
|
left: "0px",
|
|
@@ -68648,7 +68662,7 @@ function ARe() {
|
|
|
68648
68662
|
const p = document.querySelector(".context-menu");
|
|
68649
68663
|
p && !p.contains(f.target) && (o.value = !1);
|
|
68650
68664
|
};
|
|
68651
|
-
return
|
|
68665
|
+
return vl(() => {
|
|
68652
68666
|
document.addEventListener("mousedown", u);
|
|
68653
68667
|
}), cd(() => {
|
|
68654
68668
|
document.removeEventListener("mousedown", u);
|
|
@@ -68677,7 +68691,7 @@ function Sme(o) {
|
|
|
68677
68691
|
}
|
|
68678
68692
|
const coe = Sme(), xme = (...o) => {
|
|
68679
68693
|
const s = o[0], i = o[1];
|
|
68680
|
-
|
|
68694
|
+
vl(() => {
|
|
68681
68695
|
coe.on(s, i);
|
|
68682
68696
|
}), nI(() => {
|
|
68683
68697
|
coe.off(s);
|
|
@@ -68688,7 +68702,7 @@ const coe = Sme(), xme = (...o) => {
|
|
|
68688
68702
|
let ly = null;
|
|
68689
68703
|
function ORe(o) {
|
|
68690
68704
|
const { onSelected: s } = o, { selectedNodes: i, setSelectedNodes: u } = cm();
|
|
68691
|
-
return
|
|
68705
|
+
return es(
|
|
68692
68706
|
() => i,
|
|
68693
68707
|
() => {
|
|
68694
68708
|
ly == null || ly({ data: i.value }), s == null || s(Nt(i));
|
|
@@ -68738,7 +68752,7 @@ const $Re = { class: "relative" }, DRe = /* @__PURE__ */ Wo({
|
|
|
68738
68752
|
A(Y);
|
|
68739
68753
|
});
|
|
68740
68754
|
};
|
|
68741
|
-
|
|
68755
|
+
es(
|
|
68742
68756
|
() => [u, f, _],
|
|
68743
68757
|
() => {
|
|
68744
68758
|
_.value && (i.value = !1, lm(() => {
|
|
@@ -68836,7 +68850,7 @@ const $Re = { class: "relative" }, DRe = /* @__PURE__ */ Wo({
|
|
|
68836
68850
|
], 4)
|
|
68837
68851
|
]));
|
|
68838
68852
|
}
|
|
68839
|
-
}), RRe = /* @__PURE__ */
|
|
68853
|
+
}), RRe = /* @__PURE__ */ Xi(MRe, [["__scopeId", "data-v-46808dfa"]]), IRe = /* @__PURE__ */ Wo({
|
|
68840
68854
|
__name: "index",
|
|
68841
68855
|
props: /* @__PURE__ */ Ha({
|
|
68842
68856
|
modelValue: {
|
|
@@ -69010,7 +69024,7 @@ const $Re = { class: "relative" }, DRe = /* @__PURE__ */ Wo({
|
|
|
69010
69024
|
}), 128))
|
|
69011
69025
|
]));
|
|
69012
69026
|
}
|
|
69013
|
-
}), Xle = /* @__PURE__ */
|
|
69027
|
+
}), Xle = /* @__PURE__ */ Xi(HRe, [["__scopeId", "data-v-67e3a210"]]);
|
|
69014
69028
|
function VRe(o) {
|
|
69015
69029
|
const { nodes: s, mode: i = "multiple" } = o, u = hn(!1), f = Tse();
|
|
69016
69030
|
return {
|
|
@@ -69088,7 +69102,7 @@ const $4 = [
|
|
|
69088
69102
|
const s = o, i = hn((L_ == null ? void 0 : L_[s == null ? void 0 : s.id]) || 0), u = hn((s == null ? void 0 : s.id) || rE()), f = Rr(o, "modelValue"), { selectNodes: p, isSelecting: v } = VRe({ nodes: f, mode: s.mode }), w = () => {
|
|
69089
69103
|
f.value = [];
|
|
69090
69104
|
}, S = Vn(() => s.color || ($4 == null ? void 0 : $4[Nt(i) % ($4 == null ? void 0 : $4.length)]) || "#409eff");
|
|
69091
|
-
return
|
|
69105
|
+
return vl(() => {
|
|
69092
69106
|
d_e(L_ == null ? void 0 : L_[s == null ? void 0 : s.id]) && (s != null && s.id) && (L_[s == null ? void 0 : s.id] = Cz.value, i.value = Cz.value, Cz.value = Cz.value + 1);
|
|
69093
69107
|
}), bRe({
|
|
69094
69108
|
id: u.value,
|
|
@@ -69180,7 +69194,7 @@ const $4 = [
|
|
|
69180
69194
|
]));
|
|
69181
69195
|
};
|
|
69182
69196
|
}
|
|
69183
|
-
}), YRe = /* @__PURE__ */
|
|
69197
|
+
}), YRe = /* @__PURE__ */ Xi(qRe, [["__scopeId", "data-v-4ab41798"]]);
|
|
69184
69198
|
function KRe(o) {
|
|
69185
69199
|
if (!o.startsWith("="))
|
|
69186
69200
|
return [];
|
|
@@ -69378,7 +69392,7 @@ function QRe(o, s, i) {
|
|
|
69378
69392
|
function p() {
|
|
69379
69393
|
return o.value && o.value.textContent || "";
|
|
69380
69394
|
}
|
|
69381
|
-
|
|
69395
|
+
vl(() => {
|
|
69382
69396
|
o.value && (u.value = () => {
|
|
69383
69397
|
const w = p();
|
|
69384
69398
|
s.value = w;
|
|
@@ -69399,7 +69413,7 @@ function QRe(o, s, i) {
|
|
|
69399
69413
|
}
|
|
69400
69414
|
}
|
|
69401
69415
|
};
|
|
69402
|
-
return
|
|
69416
|
+
return es(
|
|
69403
69417
|
() => [s, o],
|
|
69404
69418
|
() => {
|
|
69405
69419
|
var w;
|
|
@@ -69419,7 +69433,7 @@ function kse(o) {
|
|
|
69419
69433
|
}, v = () => {
|
|
69420
69434
|
f.value = !1, u == null || u();
|
|
69421
69435
|
};
|
|
69422
|
-
return
|
|
69436
|
+
return vl(() => {
|
|
69423
69437
|
var w, S;
|
|
69424
69438
|
Nt(s) && ((w = Nt(s)) == null || w.addEventListener("focus", p), (S = Nt(s)) == null || S.addEventListener("blur", v));
|
|
69425
69439
|
}), cd(() => {
|
|
@@ -69434,7 +69448,7 @@ function eIe(o) {
|
|
|
69434
69448
|
var w;
|
|
69435
69449
|
return (w = i == null ? void 0 : i.value) == null ? void 0 : w.filter((S) => ["range", "cell"].includes(S.type));
|
|
69436
69450
|
});
|
|
69437
|
-
return
|
|
69451
|
+
return es(
|
|
69438
69452
|
() => p,
|
|
69439
69453
|
() => {
|
|
69440
69454
|
var S, _, A, O, R, B;
|
|
@@ -69451,7 +69465,7 @@ function eIe(o) {
|
|
|
69451
69465
|
{
|
|
69452
69466
|
deep: !0
|
|
69453
69467
|
}
|
|
69454
|
-
),
|
|
69468
|
+
), es(
|
|
69455
69469
|
() => [p, v],
|
|
69456
69470
|
() => {
|
|
69457
69471
|
var w, S, _, A, O;
|
|
@@ -69509,7 +69523,7 @@ const tIe = (o) => {
|
|
|
69509
69523
|
var w;
|
|
69510
69524
|
(w = s.value) == null || w.addEventListener("focus", p, !0);
|
|
69511
69525
|
};
|
|
69512
|
-
return
|
|
69526
|
+
return es(
|
|
69513
69527
|
s,
|
|
69514
69528
|
(w) => {
|
|
69515
69529
|
w && v();
|
|
@@ -69552,7 +69566,7 @@ const oIe = (o, s) => {
|
|
|
69552
69566
|
), A.value = j.length));
|
|
69553
69567
|
}
|
|
69554
69568
|
};
|
|
69555
|
-
|
|
69569
|
+
es(
|
|
69556
69570
|
() => p,
|
|
69557
69571
|
() => {
|
|
69558
69572
|
var Y, K, G, j, H, fe;
|
|
@@ -69581,7 +69595,7 @@ const oIe = (o, s) => {
|
|
|
69581
69595
|
);
|
|
69582
69596
|
}, rIe = (o) => {
|
|
69583
69597
|
const { startOffset: s, showStr: i } = o, u = hn(-1);
|
|
69584
|
-
|
|
69598
|
+
es(
|
|
69585
69599
|
() => s,
|
|
69586
69600
|
() => {
|
|
69587
69601
|
var p;
|
|
@@ -69641,7 +69655,7 @@ const iIe = (o, s) => {
|
|
|
69641
69655
|
), S.value = Y.length);
|
|
69642
69656
|
}
|
|
69643
69657
|
};
|
|
69644
|
-
|
|
69658
|
+
es(
|
|
69645
69659
|
() => f,
|
|
69646
69660
|
() => {
|
|
69647
69661
|
var B, W, Y, K, G;
|
|
@@ -69754,7 +69768,7 @@ const iIe = (o, s) => {
|
|
|
69754
69768
|
])
|
|
69755
69769
|
]));
|
|
69756
69770
|
}
|
|
69757
|
-
}), fIe = /* @__PURE__ */
|
|
69771
|
+
}), fIe = /* @__PURE__ */ Xi(dIe, [["__scopeId", "data-v-f4b96eb4"]]), mIe = [
|
|
69758
69772
|
{
|
|
69759
69773
|
label: "平均值",
|
|
69760
69774
|
value: "AVERAGE"
|
|
@@ -69831,7 +69845,7 @@ const iIe = (o, s) => {
|
|
|
69831
69845
|
]))), 128))
|
|
69832
69846
|
]));
|
|
69833
69847
|
}
|
|
69834
|
-
}), yIe = /* @__PURE__ */
|
|
69848
|
+
}), yIe = /* @__PURE__ */ Xi(bIe, [["__scopeId", "data-v-6e079ff0"]]), wIe = ["innerHTML"], CIe = /* @__PURE__ */ Wo({
|
|
69835
69849
|
__name: "index",
|
|
69836
69850
|
props: {
|
|
69837
69851
|
modelValue: {},
|
|
@@ -69888,7 +69902,7 @@ function OIe(o, s, i = {}) {
|
|
|
69888
69902
|
eventFilter: u = _me,
|
|
69889
69903
|
...f
|
|
69890
69904
|
} = i;
|
|
69891
|
-
return
|
|
69905
|
+
return es(
|
|
69892
69906
|
o,
|
|
69893
69907
|
kIe(
|
|
69894
69908
|
u,
|
|
@@ -69940,7 +69954,7 @@ function uoe(o, s = !1) {
|
|
|
69940
69954
|
function i(O, { flush: R = "sync", deep: B = !1, timeout: W, throwOnTimeout: Y } = {}) {
|
|
69941
69955
|
let K = null;
|
|
69942
69956
|
const j = [new Promise((H) => {
|
|
69943
|
-
K =
|
|
69957
|
+
K = es(
|
|
69944
69958
|
o,
|
|
69945
69959
|
(fe) => {
|
|
69946
69960
|
O(fe) !== s && (K == null || K(), H(fe));
|
|
@@ -69962,7 +69976,7 @@ function uoe(o, s = !1) {
|
|
|
69962
69976
|
const { flush: B = "sync", deep: W = !1, timeout: Y, throwOnTimeout: K } = R ?? {};
|
|
69963
69977
|
let G = null;
|
|
69964
69978
|
const H = [new Promise((fe) => {
|
|
69965
|
-
G =
|
|
69979
|
+
G = es(
|
|
69966
69980
|
[o, O],
|
|
69967
69981
|
([et, De]) => {
|
|
69968
69982
|
s !== (et === De) && (G == null || G(), fe(et));
|
|
@@ -70041,7 +70055,7 @@ function Tme(...o) {
|
|
|
70041
70055
|
Array.isArray(i) || (i = [i]), Array.isArray(u) || (u = [u]);
|
|
70042
70056
|
const p = [], v = () => {
|
|
70043
70057
|
p.forEach((A) => A()), p.length = 0;
|
|
70044
|
-
}, w = (A, O, R, B) => (A.addEventListener(O, R, B), () => A.removeEventListener(O, R, B)), S =
|
|
70058
|
+
}, w = (A, O, R, B) => (A.addEventListener(O, R, B), () => A.removeEventListener(O, R, B)), S = es(
|
|
70045
70059
|
() => [DIe(s), fy(f)],
|
|
70046
70060
|
([A, O]) => {
|
|
70047
70061
|
if (v(), !A)
|
|
@@ -70094,12 +70108,12 @@ function rne(o, s, i, u = {}) {
|
|
|
70094
70108
|
if (S) {
|
|
70095
70109
|
const H = G(), fe = hn(H);
|
|
70096
70110
|
let et = !1;
|
|
70097
|
-
return
|
|
70111
|
+
return es(
|
|
70098
70112
|
() => o[s],
|
|
70099
70113
|
(De) => {
|
|
70100
70114
|
et || (et = !0, fe.value = K(De), lm(() => et = !1));
|
|
70101
70115
|
}
|
|
70102
|
-
),
|
|
70116
|
+
), es(
|
|
70103
70117
|
fe,
|
|
70104
70118
|
(De) => {
|
|
70105
70119
|
!et && (De !== o[s] || A) && j(De);
|
|
@@ -72347,7 +72361,7 @@ function PR(o, s) {
|
|
|
72347
72361
|
let v = !1;
|
|
72348
72362
|
const w = /* @__PURE__ */ new Set();
|
|
72349
72363
|
let S = A(Nt(o));
|
|
72350
|
-
|
|
72364
|
+
es(
|
|
72351
72365
|
() => Nt(o),
|
|
72352
72366
|
(O, R) => {
|
|
72353
72367
|
typeof R == "boolean" && typeof O != "boolean" && _(), S = A(O);
|
|
@@ -73351,7 +73365,7 @@ function Cge(o) {
|
|
|
73351
73365
|
}
|
|
73352
73366
|
Ne = [], be.value = !1, At = !1, ge = !1, ve = { x: void 0, y: void 0 }, cancelAnimationFrame(Ze);
|
|
73353
73367
|
};
|
|
73354
|
-
return
|
|
73368
|
+
return es([() => Nt(lt), mt], ([xt, Gt], St, Q) => {
|
|
73355
73369
|
if (Gt) {
|
|
73356
73370
|
const ae = f1(Gt);
|
|
73357
73371
|
xt || (M = C8e().on("start", (le) => ne(le, Gt)).on("drag", (le) => wn(le, Gt)).on("end", (le) => ht(le)).filter((le) => {
|
|
@@ -73899,7 +73913,7 @@ function JBe(o, s, i) {
|
|
|
73899
73913
|
});
|
|
73900
73914
|
}, w = () => {
|
|
73901
73915
|
u.run(() => {
|
|
73902
|
-
|
|
73916
|
+
es(
|
|
73903
73917
|
() => s.maxZoom,
|
|
73904
73918
|
() => {
|
|
73905
73919
|
s.maxZoom && mu(s.maxZoom) && i.setMaxZoom(s.maxZoom);
|
|
@@ -73911,7 +73925,7 @@ function JBe(o, s, i) {
|
|
|
73911
73925
|
});
|
|
73912
73926
|
}, S = () => {
|
|
73913
73927
|
u.run(() => {
|
|
73914
|
-
|
|
73928
|
+
es(
|
|
73915
73929
|
() => s.minZoom,
|
|
73916
73930
|
() => {
|
|
73917
73931
|
s.minZoom && mu(s.minZoom) && i.setMinZoom(s.minZoom);
|
|
@@ -73921,7 +73935,7 @@ function JBe(o, s, i) {
|
|
|
73921
73935
|
});
|
|
73922
73936
|
}, _ = () => {
|
|
73923
73937
|
u.run(() => {
|
|
73924
|
-
|
|
73938
|
+
es(
|
|
73925
73939
|
() => s.translateExtent,
|
|
73926
73940
|
() => {
|
|
73927
73941
|
s.translateExtent && mu(s.translateExtent) && i.setTranslateExtent(s.translateExtent);
|
|
@@ -73933,7 +73947,7 @@ function JBe(o, s, i) {
|
|
|
73933
73947
|
});
|
|
73934
73948
|
}, A = () => {
|
|
73935
73949
|
u.run(() => {
|
|
73936
|
-
|
|
73950
|
+
es(
|
|
73937
73951
|
() => s.nodeExtent,
|
|
73938
73952
|
() => {
|
|
73939
73953
|
s.nodeExtent && mu(s.nodeExtent) && i.setNodeExtent(s.nodeExtent);
|
|
@@ -73945,7 +73959,7 @@ function JBe(o, s, i) {
|
|
|
73945
73959
|
});
|
|
73946
73960
|
}, O = () => {
|
|
73947
73961
|
u.run(() => {
|
|
73948
|
-
|
|
73962
|
+
es(
|
|
73949
73963
|
() => s.applyDefault,
|
|
73950
73964
|
() => {
|
|
73951
73965
|
mu(s.applyDefault) && (i.applyDefault.value = s.applyDefault);
|
|
@@ -73961,13 +73975,13 @@ function JBe(o, s, i) {
|
|
|
73961
73975
|
let G = K;
|
|
73962
73976
|
typeof s.autoConnect == "function" && (G = await s.autoConnect(K)), G !== !1 && i.addEdges([G]);
|
|
73963
73977
|
};
|
|
73964
|
-
|
|
73978
|
+
es(
|
|
73965
73979
|
() => s.autoConnect,
|
|
73966
73980
|
() => {
|
|
73967
73981
|
mu(s.autoConnect) && (i.autoConnect.value = s.autoConnect);
|
|
73968
73982
|
},
|
|
73969
73983
|
{ immediate: !0 }
|
|
73970
|
-
),
|
|
73984
|
+
), es(
|
|
73971
73985
|
i.autoConnect,
|
|
73972
73986
|
(K, G, j) => {
|
|
73973
73987
|
K ? i.onConnect(Y) : i.hooks.value.connect.off(Y), j(() => {
|
|
@@ -73995,7 +74009,7 @@ function JBe(o, s, i) {
|
|
|
73995
74009
|
if (!Y.includes(G)) {
|
|
73996
74010
|
const j = ai(() => s[G]), H = i[G];
|
|
73997
74011
|
nh(H) && u.run(() => {
|
|
73998
|
-
|
|
74012
|
+
es(
|
|
73999
74013
|
j,
|
|
74000
74014
|
(fe) => {
|
|
74001
74015
|
mu(fe) && (H.value = fe);
|
|
@@ -74651,7 +74665,7 @@ const oFe = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], sFe =
|
|
|
74651
74665
|
const ce = Oe[`${u.value}Handle`];
|
|
74652
74666
|
return Oe[u.value] !== B ? !1 : ce ? ce === o.id : !0;
|
|
74653
74667
|
}).length < o.connectable : typeof o.connectable == "function" ? o.connectable(W, K.value) : mu(o.connectable) ? o.connectable : A.value);
|
|
74654
|
-
|
|
74668
|
+
vl(() => {
|
|
74655
74669
|
var Oe;
|
|
74656
74670
|
if (!W.dimensions.width || !W.dimensions.height)
|
|
74657
74671
|
return;
|
|
@@ -74780,7 +74794,7 @@ const iFe = Ij, lFe = ["transform"], cFe = ["width", "height", "x", "y", "rx", "
|
|
|
74780
74794
|
},
|
|
74781
74795
|
setup(o) {
|
|
74782
74796
|
const s = hn({ x: 0, y: 0, width: 0, height: 0 }), i = hn(null), u = Vn(() => `translate(${o.x - s.value.width / 2} ${o.y - s.value.height / 2})`);
|
|
74783
|
-
|
|
74797
|
+
vl(f), es([() => o.x, () => o.y, i, () => o.label], f);
|
|
74784
74798
|
function f() {
|
|
74785
74799
|
if (!i.value)
|
|
74786
74800
|
return;
|
|
@@ -75458,7 +75472,7 @@ function jr(o) {
|
|
|
75458
75472
|
if (w || v && (w = s.get(v)), !w || v && w.id !== v) {
|
|
75459
75473
|
const S = p ?? s.getId(), _ = s.create(S, f);
|
|
75460
75474
|
w = _, (i ?? kue(!0)).run(() => {
|
|
75461
|
-
|
|
75475
|
+
es(
|
|
75462
75476
|
_.applyDefault,
|
|
75463
75477
|
(O, R, B) => {
|
|
75464
75478
|
const W = (K) => {
|
|
@@ -75489,7 +75503,7 @@ function jr(o) {
|
|
|
75489
75503
|
function NFe(o) {
|
|
75490
75504
|
const { emits: s, dimensions: i } = jr();
|
|
75491
75505
|
let u;
|
|
75492
|
-
|
|
75506
|
+
vl(() => {
|
|
75493
75507
|
const f = o.value, p = () => {
|
|
75494
75508
|
if (!f)
|
|
75495
75509
|
return;
|
|
@@ -75537,7 +75551,7 @@ const MFe = {
|
|
|
75537
75551
|
s.selectionDragStop(W);
|
|
75538
75552
|
}
|
|
75539
75553
|
});
|
|
75540
|
-
|
|
75554
|
+
vl(() => {
|
|
75541
75555
|
var W;
|
|
75542
75556
|
p.value || (W = S.value) == null || W.focus({ preventScroll: !0 });
|
|
75543
75557
|
});
|
|
@@ -75618,9 +75632,9 @@ const LFe = {
|
|
|
75618
75632
|
} = jr(), ee = hn(null), We = hn(/* @__PURE__ */ new Set()), mt = hn(/* @__PURE__ */ new Set()), lt = hn(), Oe = ai(() => S.value && (o.isSelecting || p.value)), ce = ai(() => De.value !== null);
|
|
75619
75633
|
let Lt = !1, be = !1;
|
|
75620
75634
|
const Ne = PR(Y, { actInsideInputWithModifier: !1 }), M = PR(K);
|
|
75621
|
-
|
|
75635
|
+
es(Ne, (Ve) => {
|
|
75622
75636
|
Ve && (R(O.value), B(A.value), _.value = !1);
|
|
75623
|
-
}),
|
|
75637
|
+
}), es(M, (Ve) => {
|
|
75624
75638
|
G.value = Ve;
|
|
75625
75639
|
});
|
|
75626
75640
|
function Ue(Ve, bt) {
|
|
@@ -75777,7 +75791,7 @@ const LFe = {
|
|
|
75777
75791
|
const ve = PR(w), ot = PR(v), nt = PR(p), ge = ai(
|
|
75778
75792
|
() => (!ot.value || ot.value && v.value === !0) && (ve.value || O.value)
|
|
75779
75793
|
), Ze = ai(() => ve.value || S.value), At = ai(() => ot.value || v.value === !0 && ge.value !== !0);
|
|
75780
|
-
|
|
75794
|
+
vl(() => {
|
|
75781
75795
|
if (!lt.value) {
|
|
75782
75796
|
Dj("Viewport element is missing");
|
|
75783
75797
|
return;
|
|
@@ -75813,7 +75827,7 @@ const LFe = {
|
|
|
75813
75827
|
return !1;
|
|
75814
75828
|
const je = Array.isArray(O.value) && O.value.includes(gt) || v.value === !0 && Array.isArray(O.value) && !O.value.includes(0) || !gt || gt <= 1;
|
|
75815
75829
|
return (!q.ctrlKey || ve.value || q.type === "wheel") && je;
|
|
75816
|
-
}),
|
|
75830
|
+
}), es(
|
|
75817
75831
|
[fe, ge],
|
|
75818
75832
|
() => {
|
|
75819
75833
|
fe.value && !ce.value ? xt.on("zoom", null) : fe.value || xt.on("zoom", (q) => {
|
|
@@ -75823,7 +75837,7 @@ const LFe = {
|
|
|
75823
75837
|
});
|
|
75824
75838
|
},
|
|
75825
75839
|
{ immediate: !0 }
|
|
75826
|
-
),
|
|
75840
|
+
), es(
|
|
75827
75841
|
[fe, Ze, _, nt, B, Y, K],
|
|
75828
75842
|
() => {
|
|
75829
75843
|
Ze.value && !nt.value && !fe.value ? Gt.on(
|
|
@@ -75942,7 +75956,7 @@ const LFe = {
|
|
|
75942
75956
|
});
|
|
75943
75957
|
function KFe() {
|
|
75944
75958
|
const o = jr();
|
|
75945
|
-
|
|
75959
|
+
es(
|
|
75946
75960
|
() => o.viewportHelper.value.viewportInitialized,
|
|
75947
75961
|
(s) => {
|
|
75948
75962
|
s && setTimeout(() => {
|
|
@@ -76469,8 +76483,8 @@ const Hce = Bse, QFe = Wo({
|
|
|
76469
76483
|
}), Ie = ai(() => Number(ce.zIndex ?? bt.value.zIndex ?? 0));
|
|
76470
76484
|
return A((le) => {
|
|
76471
76485
|
(le.includes(o.id) || !le.length) && ne();
|
|
76472
|
-
}),
|
|
76473
|
-
|
|
76486
|
+
}), vl(() => {
|
|
76487
|
+
es(
|
|
76474
76488
|
() => ce.hidden,
|
|
76475
76489
|
(le = !1, q, ye) => {
|
|
76476
76490
|
!le && We.value && (o.resizeObserver.observe(We.value), ye(() => {
|
|
@@ -76479,11 +76493,11 @@ const Hce = Bse, QFe = Wo({
|
|
|
76479
76493
|
},
|
|
76480
76494
|
{ immediate: !0, flush: "post" }
|
|
76481
76495
|
);
|
|
76482
|
-
}),
|
|
76496
|
+
}), es([() => ce.type, () => ce.sourcePosition, () => ce.targetPosition], () => {
|
|
76483
76497
|
lm(() => {
|
|
76484
76498
|
_([{ id: o.id, nodeElement: We.value, forceUpdate: !0 }]);
|
|
76485
76499
|
});
|
|
76486
|
-
}),
|
|
76500
|
+
}), es(
|
|
76487
76501
|
[
|
|
76488
76502
|
() => ce.position.x,
|
|
76489
76503
|
() => ce.position.y,
|
|
@@ -76521,7 +76535,7 @@ const Hce = Bse, QFe = Wo({
|
|
|
76521
76535
|
typeof ye < "u" && typeof Me < "u" ? ce.computedPosition = _Be({ x: ye, y: Me, z: Be }, je) : ce.computedPosition = je;
|
|
76522
76536
|
},
|
|
76523
76537
|
{ flush: "post", immediate: !0 }
|
|
76524
|
-
),
|
|
76538
|
+
), es([() => ce.extent, R], ([le, q], [ye, Me]) => {
|
|
76525
76539
|
(le !== ye || q !== Me) && dt();
|
|
76526
76540
|
}), ce.extent === "parent" || typeof ce.extent == "object" && "range" in ce.extent && ce.extent.range === "parent" ? doe(() => ge).toBe(!0).then(dt) : dt(), () => ce.hidden ? null : Za(
|
|
76527
76541
|
"div",
|
|
@@ -76689,7 +76703,7 @@ const vLe = { class: "vue-flow__nodes vue-flow__container" }, bLe = {
|
|
|
76689
76703
|
...bLe,
|
|
76690
76704
|
setup(o) {
|
|
76691
76705
|
const { getNodes: s, updateNodeDimensions: i, emits: u } = jr(), f = hLe(), p = hn();
|
|
76692
|
-
return
|
|
76706
|
+
return es(
|
|
76693
76707
|
f,
|
|
76694
76708
|
(v) => {
|
|
76695
76709
|
v && lm(() => {
|
|
@@ -76697,7 +76711,7 @@ const vLe = { class: "vue-flow__nodes vue-flow__container" }, bLe = {
|
|
|
76697
76711
|
});
|
|
76698
76712
|
},
|
|
76699
76713
|
{ immediate: !0 }
|
|
76700
|
-
),
|
|
76714
|
+
), vl(() => {
|
|
76701
76715
|
p.value = new ResizeObserver((v) => {
|
|
76702
76716
|
const w = v.map((S) => ({
|
|
76703
76717
|
id: S.target.getAttribute("data-id"),
|
|
@@ -76726,7 +76740,7 @@ const vLe = { class: "vue-flow__nodes vue-flow__container" }, bLe = {
|
|
|
76726
76740
|
});
|
|
76727
76741
|
function wLe() {
|
|
76728
76742
|
const { emits: o } = jr();
|
|
76729
|
-
|
|
76743
|
+
vl(() => {
|
|
76730
76744
|
if (hge()) {
|
|
76731
76745
|
const s = document.querySelector(".vue-flow__pane");
|
|
76732
76746
|
s && window.getComputedStyle(s).zIndex !== "1" && o.error(new pu(Gc.MISSING_STYLES));
|
|
@@ -79173,7 +79187,7 @@ function iUe(o, s) {
|
|
|
79173
79187
|
changed: H
|
|
79174
79188
|
}), u.value = i.value.length - 1;
|
|
79175
79189
|
}, aUe);
|
|
79176
|
-
|
|
79190
|
+
es(
|
|
79177
79191
|
[o, s],
|
|
79178
79192
|
// 同时监听 nodes 和 edges
|
|
79179
79193
|
([W, Y], [K, G]) => {
|
|
@@ -79194,7 +79208,7 @@ function iUe(o, s) {
|
|
|
79194
79208
|
}, B = (W) => {
|
|
79195
79209
|
W.ctrlKey && W.key === "z" ? (W.preventDefault(), O()) : W.ctrlKey && (W.key === "y" || W.shiftKey && W.key === "Z") && (W.preventDefault(), R());
|
|
79196
79210
|
};
|
|
79197
|
-
return
|
|
79211
|
+
return vl(() => {
|
|
79198
79212
|
v(), window.addEventListener("keydown", B);
|
|
79199
79213
|
}), cd(() => {
|
|
79200
79214
|
window.removeEventListener("keydown", B);
|
|
@@ -79217,11 +79231,11 @@ function gpe(o, s) {
|
|
|
79217
79231
|
}, v = K_(() => {
|
|
79218
79232
|
Di(Nt(f), Nt(o)) || (o.value = Ol(Nt(f)));
|
|
79219
79233
|
}, Dz);
|
|
79220
|
-
|
|
79234
|
+
es(f, v);
|
|
79221
79235
|
const w = K_(() => {
|
|
79222
79236
|
Di(Nt(f), Nt(o)) || (i.value = Ol(Nt(o)));
|
|
79223
79237
|
}, Dz);
|
|
79224
|
-
|
|
79238
|
+
es(o, w, {
|
|
79225
79239
|
deep: !0
|
|
79226
79240
|
});
|
|
79227
79241
|
const S = Vn(() => iue(Nt(u))), _ = (B) => {
|
|
@@ -79230,11 +79244,11 @@ function gpe(o, s) {
|
|
|
79230
79244
|
}, A = K_(() => {
|
|
79231
79245
|
Di(Nt(S), Nt(s)) || (s.value = Ol(Nt(S)));
|
|
79232
79246
|
}, Dz);
|
|
79233
|
-
|
|
79247
|
+
es(S, A);
|
|
79234
79248
|
const O = K_(() => {
|
|
79235
79249
|
Di(Nt(S), Nt(s)) || (u.value = Ol(Nt(s)));
|
|
79236
79250
|
}, Dz);
|
|
79237
|
-
|
|
79251
|
+
es(s, O, {
|
|
79238
79252
|
deep: !0
|
|
79239
79253
|
});
|
|
79240
79254
|
const R = {
|
|
@@ -79257,7 +79271,7 @@ function lUe() {
|
|
|
79257
79271
|
}
|
|
79258
79272
|
const koe = Sme(), ppe = (...o) => {
|
|
79259
79273
|
const s = o[0], i = o[1];
|
|
79260
|
-
|
|
79274
|
+
vl(() => {
|
|
79261
79275
|
koe.on(s, i);
|
|
79262
79276
|
}), nI(() => {
|
|
79263
79277
|
koe.off(s);
|
|
@@ -79457,13 +79471,13 @@ const bpe = {
|
|
|
79457
79471
|
}, Rs(W.title), 11, dUe))), 128))
|
|
79458
79472
|
], 4)) : Ko("", !0);
|
|
79459
79473
|
}
|
|
79460
|
-
}, mUe = /* @__PURE__ */
|
|
79474
|
+
}, mUe = /* @__PURE__ */ Xi(fUe, [["__scopeId", "data-v-c8ca534e"]]), gUe = {}, pUe = { class: "w-[18px] h-[18px] bg-white rounded-full add-node-btn pointer-events-none" };
|
|
79461
79475
|
function hUe(o, s) {
|
|
79462
79476
|
return ft(), un("div", pUe, s[0] || (s[0] = [
|
|
79463
79477
|
Ut("div", { class: "i-bi:plus-circle text-[18px]" }, null, -1)
|
|
79464
79478
|
]));
|
|
79465
79479
|
}
|
|
79466
|
-
const Lj = /* @__PURE__ */
|
|
79480
|
+
const Lj = /* @__PURE__ */ Xi(gUe, [["render", hUe]]);
|
|
79467
79481
|
function Use() {
|
|
79468
79482
|
const { addNodes: o, addEdges: s } = jr(), { node: i } = iC(), u = Fj();
|
|
79469
79483
|
return { addNode: (p) => {
|
|
@@ -79642,7 +79656,7 @@ function OUe() {
|
|
|
79642
79656
|
}, i = (u) => {
|
|
79643
79657
|
u.key === "Control" && (o.value = !1);
|
|
79644
79658
|
};
|
|
79645
|
-
return
|
|
79659
|
+
return vl(() => {
|
|
79646
79660
|
window.addEventListener("keydown", s), window.addEventListener("keyup", i);
|
|
79647
79661
|
}), cd(() => {
|
|
79648
79662
|
window.removeEventListener("keydown", s), window.removeEventListener("keyup", i);
|
|
@@ -79673,7 +79687,7 @@ const $Ue = { class: "w-full flex flex-col" }, DUe = { class: "grid grid-cols-2
|
|
|
79673
79687
|
j.selected = !1;
|
|
79674
79688
|
}), G.selected = !0;
|
|
79675
79689
|
};
|
|
79676
|
-
|
|
79690
|
+
es(
|
|
79677
79691
|
() => u.selected,
|
|
79678
79692
|
() => {
|
|
79679
79693
|
u.selected || w.value.forEach((K) => {
|
|
@@ -79699,7 +79713,7 @@ const $Ue = { class: "w-full flex flex-col" }, DUe = { class: "grid grid-cols-2
|
|
|
79699
79713
|
}, B = (K) => {
|
|
79700
79714
|
u.data.children = w.value.filter((G) => G.id !== K.id);
|
|
79701
79715
|
};
|
|
79702
|
-
|
|
79716
|
+
es(
|
|
79703
79717
|
() => w,
|
|
79704
79718
|
() => {
|
|
79705
79719
|
var K;
|
|
@@ -79813,7 +79827,7 @@ const $Ue = { class: "w-full flex flex-col" }, DUe = { class: "grid grid-cols-2
|
|
|
79813
79827
|
}, 8, ["position", "onClick", "is-valid-connection"])) : Ko("", !0)
|
|
79814
79828
|
], 64));
|
|
79815
79829
|
}
|
|
79816
|
-
}), Cpe = /* @__PURE__ */
|
|
79830
|
+
}), Cpe = /* @__PURE__ */ Xi(PUe, [["__scopeId", "data-v-f9b456a4"]]), BUe = {
|
|
79817
79831
|
__name: "CustomEdgeLabel",
|
|
79818
79832
|
props: {
|
|
79819
79833
|
data: {
|
|
@@ -79859,7 +79873,7 @@ const $Ue = { class: "w-full flex flex-col" }, DUe = { class: "grid grid-cols-2
|
|
|
79859
79873
|
}, Rs((_ = p.data) == null ? void 0 : _.text), 37)) : Ko("", !0);
|
|
79860
79874
|
};
|
|
79861
79875
|
}
|
|
79862
|
-
}, FUe = /* @__PURE__ */
|
|
79876
|
+
}, FUe = /* @__PURE__ */ Xi(BUe, [["__scopeId", "data-v-6fb9a300"]]), LUe = "rgb(177, 177, 183)", HUe = "#409EFF", VUe = {
|
|
79863
79877
|
inheritAttrs: !1
|
|
79864
79878
|
}, Spe = /* @__PURE__ */ Object.assign(VUe, {
|
|
79865
79879
|
__name: "index",
|
|
@@ -79946,7 +79960,7 @@ const $Ue = { class: "w-full flex flex-col" }, DUe = { class: "grid grid-cols-2
|
|
|
79946
79960
|
function UUe(o, s) {
|
|
79947
79961
|
return s[0] || (s[0] = $he('<svg class="vue-flow__marker vue-flow__container"><defs><marker id="arrowclosed" class="vue-flow__arrowhead" viewBox="-10 -10 20 20" refX="0" refY="0" markerWidth="12.5" markerHeight="12.5" markerUnits="strokeWidth" orient="auto-start-reverse"><polyline stroke-linecap="round" stroke-linejoin="round" class="vue-flow__arrowhead-path" points="-5,-4 0,0 -5,4 -5,-4" style="stroke-width:1;stroke:#b1b1b7;fill:#b1b1b7;"></polyline></marker></defs></svg><svg class="vue-flow__marker vue-flow__container"><defs><marker id="arrowclosed_active" class="vue-flow__arrowhead" viewBox="-10 -10 20 20" refX="0" refY="0" markerWidth="12.5" markerHeight="12.5" markerUnits="strokeWidth" orient="auto-start-reverse"><polyline stroke-linecap="round" stroke-linejoin="round" class="vue-flow__arrowhead-path" points="-5,-4 0,0 -5,4 -5,-4" style="stroke-width:1;stroke:#409eff;fill:#409eff;"></polyline></marker></defs></svg>', 2));
|
|
79948
79962
|
}
|
|
79949
|
-
const xpe = /* @__PURE__ */
|
|
79963
|
+
const xpe = /* @__PURE__ */ Xi(zUe, [["render", UUe]]);
|
|
79950
79964
|
function _pe(o) {
|
|
79951
79965
|
const { getNodeDefaultData: s, getEdgeDefaultData: i } = o || {}, {
|
|
79952
79966
|
nodes: u,
|
|
@@ -81552,7 +81566,7 @@ function Nje(o) {
|
|
|
81552
81566
|
eC() && cd(o);
|
|
81553
81567
|
}
|
|
81554
81568
|
function Mje(o) {
|
|
81555
|
-
eC() ?
|
|
81569
|
+
eC() ? vl(o) : lm(o);
|
|
81556
81570
|
}
|
|
81557
81571
|
let Upe = null, jpe = null;
|
|
81558
81572
|
function xue(o = null, s = null) {
|
|
@@ -81677,7 +81691,7 @@ function Ije(...o) {
|
|
|
81677
81691
|
const fe = (We) => {
|
|
81678
81692
|
We = j(We), S && et.destroy(), S = new gr(We, H());
|
|
81679
81693
|
};
|
|
81680
|
-
|
|
81694
|
+
es(
|
|
81681
81695
|
() => w,
|
|
81682
81696
|
() => {
|
|
81683
81697
|
S && mue(H(), (We, mt) => {
|
|
@@ -81803,7 +81817,7 @@ const Noe = [
|
|
|
81803
81817
|
emits: ["update:modelValue", "update:defaultValue"],
|
|
81804
81818
|
setup(o) {
|
|
81805
81819
|
const s = o, i = Rr(o, "modelValue"), u = Rr(o, "defaultValue"), f = hn("");
|
|
81806
|
-
|
|
81820
|
+
es(f, (S) => {
|
|
81807
81821
|
const _ = S.split(`
|
|
81808
81822
|
`).filter(Boolean).map((A, O) => ({
|
|
81809
81823
|
sort: O + 1,
|
|
@@ -81811,7 +81825,7 @@ const Noe = [
|
|
|
81811
81825
|
value: A.trim()
|
|
81812
81826
|
}));
|
|
81813
81827
|
Di(_, i.value) || (i.value = _);
|
|
81814
|
-
}),
|
|
81828
|
+
}), es(
|
|
81815
81829
|
i,
|
|
81816
81830
|
(S) => {
|
|
81817
81831
|
var _;
|
|
@@ -82087,7 +82101,7 @@ const Noe = [
|
|
|
82087
82101
|
return (p == null ? void 0 : p.label) === `${(v = s.value) == null ? void 0 : v["true-value"]}/${(w = s.value) == null ? void 0 : w["false-value"]}`;
|
|
82088
82102
|
}
|
|
82089
82103
|
));
|
|
82090
|
-
return
|
|
82104
|
+
return es(i, (p) => {
|
|
82091
82105
|
var v;
|
|
82092
82106
|
if (p) {
|
|
82093
82107
|
const [w, S] = ((v = p == null ? void 0 : p.split("/")) == null ? void 0 : v.filter(Boolean)) || [];
|
|
@@ -82097,16 +82111,23 @@ const Noe = [
|
|
|
82097
82111
|
});
|
|
82098
82112
|
} else
|
|
82099
82113
|
s.value = JSON.parse(JSON.stringify(u.value));
|
|
82100
|
-
}),
|
|
82101
|
-
|
|
82102
|
-
|
|
82103
|
-
|
|
82104
|
-
|
|
82105
|
-
|
|
82106
|
-
|
|
82107
|
-
|
|
82108
|
-
|
|
82109
|
-
|
|
82114
|
+
}), es(
|
|
82115
|
+
() => s.value,
|
|
82116
|
+
() => {
|
|
82117
|
+
if (f.value)
|
|
82118
|
+
i.value = `${Nt(s)["true-value"]}/${Nt(s)["false-value"]}`, u.value = {};
|
|
82119
|
+
else
|
|
82120
|
+
try {
|
|
82121
|
+
u.value = JSON.parse(JSON.stringify(s.value)) || {};
|
|
82122
|
+
} catch (p) {
|
|
82123
|
+
console.log(p);
|
|
82124
|
+
}
|
|
82125
|
+
},
|
|
82126
|
+
{
|
|
82127
|
+
immediate: !0,
|
|
82128
|
+
deep: !0
|
|
82129
|
+
}
|
|
82130
|
+
), es(
|
|
82110
82131
|
u,
|
|
82111
82132
|
() => {
|
|
82112
82133
|
if (u.value["true-value"] && u.value["false-value"])
|
|
@@ -82201,7 +82222,7 @@ const Noe = [
|
|
|
82201
82222
|
]))
|
|
82202
82223
|
]));
|
|
82203
82224
|
}
|
|
82204
|
-
}, Wje = /* @__PURE__ */
|
|
82225
|
+
}, Wje = /* @__PURE__ */ Xi(jje, [["__scopeId", "data-v-edbd7ef2"]]), Wpe = Symbol("userPicker"), kI = () => {
|
|
82205
82226
|
const o = Qm(Wpe);
|
|
82206
82227
|
if (!o)
|
|
82207
82228
|
throw new Error("NodesEditor context not found");
|
|
@@ -82287,7 +82308,7 @@ const Noe = [
|
|
|
82287
82308
|
f.value = !1;
|
|
82288
82309
|
}));
|
|
82289
82310
|
};
|
|
82290
|
-
return
|
|
82311
|
+
return es(
|
|
82291
82312
|
() => Nt(s),
|
|
82292
82313
|
(w, S) => {
|
|
82293
82314
|
Di(w, S) || v();
|
|
@@ -82437,7 +82458,7 @@ const Noe = [
|
|
|
82437
82458
|
}))
|
|
82438
82459
|
};
|
|
82439
82460
|
})), A = hn(null);
|
|
82440
|
-
|
|
82461
|
+
es(
|
|
82441
82462
|
() => p.value,
|
|
82442
82463
|
(Y) => {
|
|
82443
82464
|
A.value && Y && (i ? A.value.setCheckedKeys(Y) : A.value.setCurrentKey(Y));
|
|
@@ -82590,7 +82611,7 @@ const Noe = [
|
|
|
82590
82611
|
]);
|
|
82591
82612
|
};
|
|
82592
82613
|
}
|
|
82593
|
-
}), fWe = /* @__PURE__ */
|
|
82614
|
+
}), fWe = /* @__PURE__ */ Xi(dWe, [["__scopeId", "data-v-fd7c4b6c"]]), mWe = { class: "h-full flex flex-col" }, gWe = { class: "px-2" }, pWe = ["onClick"], hWe = { class: "flex items-center gap-2" }, vWe = { class: "img" }, bWe = /* @__PURE__ */ Wo({
|
|
82594
82615
|
__name: "people",
|
|
82595
82616
|
props: {
|
|
82596
82617
|
modelValue: {},
|
|
@@ -82708,7 +82729,7 @@ const Noe = [
|
|
|
82708
82729
|
], 2)
|
|
82709
82730
|
]));
|
|
82710
82731
|
}
|
|
82711
|
-
}), yWe = /* @__PURE__ */
|
|
82732
|
+
}), yWe = /* @__PURE__ */ Xi(bWe, [["__scopeId", "data-v-ac82282f"]]), wWe = (o) => {
|
|
82712
82733
|
const { allData: s } = vO({
|
|
82713
82734
|
type: "roleIds"
|
|
82714
82735
|
});
|
|
@@ -82779,7 +82800,7 @@ const Noe = [
|
|
|
82779
82800
|
});
|
|
82780
82801
|
}), G;
|
|
82781
82802
|
});
|
|
82782
|
-
|
|
82803
|
+
es(
|
|
82783
82804
|
() => i ? O.value : R.value,
|
|
82784
82805
|
(G) => {
|
|
82785
82806
|
A.value && (i && G ? A.value.setCheckedKeys(G) : !i && G && A.value.setCurrentKey(G));
|
|
@@ -82940,7 +82961,7 @@ const Noe = [
|
|
|
82940
82961
|
])
|
|
82941
82962
|
]));
|
|
82942
82963
|
}
|
|
82943
|
-
}), AWe = /* @__PURE__ */
|
|
82964
|
+
}), AWe = /* @__PURE__ */ Xi(kWe, [["__scopeId", "data-v-f27c1f24"]]), OWe = { class: "flex flex-row h-[420px]" }, $We = { class: "w-[50%] border-0 border-r-1 border-solid border-gray-200" }, DWe = { class: "h-full" }, NWe = { class: "w-[50%] pl-2" }, MWe = { class: "h-full flex flex-col" }, RWe = { class: "flex-grow overflow-auto flex-shrink h-1" }, IWe = { class: "flex justify-between" }, PWe = /* @__PURE__ */ Wo({
|
|
82944
82965
|
__name: "index",
|
|
82945
82966
|
setup(o, { expose: s }) {
|
|
82946
82967
|
const { props: i } = kI(), u = i.multiple, f = [
|
|
@@ -83214,7 +83235,7 @@ const Noe = [
|
|
|
83214
83235
|
f.value = !1;
|
|
83215
83236
|
}));
|
|
83216
83237
|
};
|
|
83217
|
-
return
|
|
83238
|
+
return es(
|
|
83218
83239
|
() => Nt(s),
|
|
83219
83240
|
(w, S) => {
|
|
83220
83241
|
Di(w, S) || v();
|
|
@@ -83388,7 +83409,7 @@ const Noe = [
|
|
|
83388
83409
|
f.value = !1;
|
|
83389
83410
|
}));
|
|
83390
83411
|
};
|
|
83391
|
-
return
|
|
83412
|
+
return es(
|
|
83392
83413
|
() => Nt(s),
|
|
83393
83414
|
(w, S) => {
|
|
83394
83415
|
Di(w, S) || v();
|
|
@@ -83606,7 +83627,7 @@ const Noe = [
|
|
|
83606
83627
|
], 2)
|
|
83607
83628
|
]));
|
|
83608
83629
|
}
|
|
83609
|
-
}), uZe = /* @__PURE__ */
|
|
83630
|
+
}), uZe = /* @__PURE__ */ Xi(cZe, [["__scopeId", "data-v-0a06840f"]]), dZe = { class: "flex flex-row h-[420px]" }, fZe = { class: "w-[50%] border-0 border-r-1 border-solid border-gray-200" }, mZe = { class: "h-full" }, gZe = { class: "w-[50%] pl-2" }, pZe = { class: "h-full flex flex-col" }, hZe = { class: "flex-grow overflow-auto flex-shrink h-1" }, vZe = { class: "flex justify-between" }, bZe = /* @__PURE__ */ Wo({
|
|
83610
83631
|
__name: "index",
|
|
83611
83632
|
setup(o, { expose: s }) {
|
|
83612
83633
|
const i = hn(!1), u = hn(!0);
|
|
@@ -83836,7 +83857,7 @@ const Noe = [
|
|
|
83836
83857
|
f.value = !1;
|
|
83837
83858
|
}));
|
|
83838
83859
|
};
|
|
83839
|
-
return
|
|
83860
|
+
return es(
|
|
83840
83861
|
() => Nt(s),
|
|
83841
83862
|
(w, S) => {
|
|
83842
83863
|
Di(w, S) || v();
|
|
@@ -84010,7 +84031,7 @@ const Noe = [
|
|
|
84010
84031
|
f.value = !1;
|
|
84011
84032
|
}));
|
|
84012
84033
|
};
|
|
84013
|
-
return
|
|
84034
|
+
return es(
|
|
84014
84035
|
() => Nt(s),
|
|
84015
84036
|
(w, S) => {
|
|
84016
84037
|
Di(w, S) || v();
|
|
@@ -84223,7 +84244,7 @@ const Noe = [
|
|
|
84223
84244
|
], 2)
|
|
84224
84245
|
]));
|
|
84225
84246
|
}
|
|
84226
|
-
}), WZe = /* @__PURE__ */
|
|
84247
|
+
}), WZe = /* @__PURE__ */ Xi(jZe, [["__scopeId", "data-v-97997685"]]), ZZe = { class: "flex flex-row h-[420px]" }, GZe = { class: "w-[50%] border-0 border-r-1 border-solid border-gray-200" }, qZe = { class: "h-full" }, YZe = { class: "w-[50%] pl-2" }, KZe = { class: "h-full flex flex-col" }, XZe = { class: "flex-grow overflow-auto flex-shrink h-1" }, JZe = { class: "flex justify-between" }, QZe = /* @__PURE__ */ Wo({
|
|
84227
84248
|
__name: "index",
|
|
84228
84249
|
setup(o, { expose: s }) {
|
|
84229
84250
|
const i = hn(!1), u = hn(!0);
|
|
@@ -84443,7 +84464,7 @@ const Noe = [
|
|
|
84443
84464
|
f.value = !1;
|
|
84444
84465
|
}));
|
|
84445
84466
|
};
|
|
84446
|
-
return
|
|
84467
|
+
return es(
|
|
84447
84468
|
() => Nt(s),
|
|
84448
84469
|
(w, S) => {
|
|
84449
84470
|
Di(w, S) || v();
|
|
@@ -84598,7 +84619,7 @@ const Noe = [
|
|
|
84598
84619
|
f.value = !1;
|
|
84599
84620
|
}));
|
|
84600
84621
|
};
|
|
84601
|
-
return
|
|
84622
|
+
return es(
|
|
84602
84623
|
() => Nt(s),
|
|
84603
84624
|
(w, S) => {
|
|
84604
84625
|
Di(w, S) || v();
|
|
@@ -84748,7 +84769,7 @@ const Noe = [
|
|
|
84748
84769
|
])
|
|
84749
84770
|
]));
|
|
84750
84771
|
}
|
|
84751
|
-
}), _Ge = /* @__PURE__ */
|
|
84772
|
+
}), _Ge = /* @__PURE__ */ Xi(xGe, [["__scopeId", "data-v-4d4aa43e"]]), EGe = (o) => {
|
|
84752
84773
|
if (Nt(o)) {
|
|
84753
84774
|
const { allData: s } = ihe({
|
|
84754
84775
|
type: "groupIds"
|
|
@@ -84864,7 +84885,7 @@ const Noe = [
|
|
|
84864
84885
|
]);
|
|
84865
84886
|
};
|
|
84866
84887
|
}
|
|
84867
|
-
}), RGe = /* @__PURE__ */
|
|
84888
|
+
}), RGe = /* @__PURE__ */ Xi(MGe, [["__scopeId", "data-v-6811f20c"]]), Eue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
84868
84889
|
__proto__: null,
|
|
84869
84890
|
ConfigProvider: abe,
|
|
84870
84891
|
ConfirmTextSetter: Wje,
|