auto-vue-manual 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-vue-manual.es.js +370 -370
- package/dist/auto-vue-manual.umd.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -3944,26 +3944,26 @@ function bq(l) {
|
|
|
3944
3944
|
return bq(WE(l, A));
|
|
3945
3945
|
}, v;
|
|
3946
3946
|
}
|
|
3947
|
-
const
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3947
|
+
const Ei = bq(xT);
|
|
3948
|
+
Ei.Axios = VE;
|
|
3949
|
+
Ei.CanceledError = HS;
|
|
3950
|
+
Ei.CancelToken = Bae;
|
|
3951
|
+
Ei.isCancel = cq;
|
|
3952
|
+
Ei.VERSION = hq;
|
|
3953
|
+
Ei.toFormData = YF;
|
|
3954
|
+
Ei.AxiosError = is;
|
|
3955
|
+
Ei.Cancel = Ei.CanceledError;
|
|
3956
|
+
Ei.all = function(m) {
|
|
3957
3957
|
return Promise.all(m);
|
|
3958
3958
|
};
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3959
|
+
Ei.spread = Rae;
|
|
3960
|
+
Ei.isAxiosError = Nae;
|
|
3961
|
+
Ei.mergeConfig = WE;
|
|
3962
|
+
Ei.AxiosHeaders = yf;
|
|
3963
|
+
Ei.formToJSON = (l) => lq(Ot.isHTMLForm(l) ? new FormData(l) : l);
|
|
3964
|
+
Ei.getAdapter = gq.getAdapter;
|
|
3965
|
+
Ei.HttpStatusCode = fH;
|
|
3966
|
+
Ei.default = Ei;
|
|
3967
3967
|
const {
|
|
3968
3968
|
Axios: Mme,
|
|
3969
3969
|
AxiosError: Ime,
|
|
@@ -3981,7 +3981,7 @@ const {
|
|
|
3981
3981
|
formToJSON: Yme,
|
|
3982
3982
|
getAdapter: Xme,
|
|
3983
3983
|
mergeConfig: Jme
|
|
3984
|
-
} =
|
|
3984
|
+
} = Ei;
|
|
3985
3985
|
var WI = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3986
3986
|
function xq(l) {
|
|
3987
3987
|
return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
|
|
@@ -5329,8 +5329,8 @@ function Cq() {
|
|
|
5329
5329
|
var ht = Y[cn - 15], Dt = ht.high, io = ht.low, Vn = (Dt >>> 1 | io << 31) ^ (Dt >>> 8 | io << 24) ^ Dt >>> 7, ya = (io >>> 1 | Dt << 31) ^ (io >>> 8 | Dt << 24) ^ (io >>> 7 | Dt << 25), Ya = Y[cn - 2], Ys = Ya.high, br = Ya.low, Ui = (Ys >>> 19 | br << 13) ^ (Ys << 3 | br >>> 29) ^ Ys >>> 6, on = (br >>> 19 | Ys << 13) ^ (br << 3 | Ys >>> 29) ^ (br >>> 6 | Ys << 26), ro = Y[cn - 7], _s = ro.high, dr = ro.low, Yt = Y[cn - 16], ea = Yt.high, Cf = Yt.low;
|
|
5330
5330
|
vn = ya + dr, Gn = Vn + _s + (vn >>> 0 < ya >>> 0 ? 1 : 0), vn = vn + on, Gn = Gn + Ui + (vn >>> 0 < on >>> 0 ? 1 : 0), vn = vn + Cf, Gn = Gn + ea + (vn >>> 0 < Cf >>> 0 ? 1 : 0), qn.high = Gn, qn.low = vn;
|
|
5331
5331
|
}
|
|
5332
|
-
var Xo = Tn & yt ^ ~Tn & Ue, xr = Ye & Ct ^ ~Ye & He, sl = qt & qe ^ qt & Bt ^ qe & Bt, jr = Xt & W ^ Xt & It ^ W & It, Ef = (qt >>> 28 | Xt << 4) ^ (qt << 30 | Xt >>> 2) ^ (qt << 25 | Xt >>> 7), Mu = (Xt >>> 28 | qt << 4) ^ (Xt << 30 | qt >>> 2) ^ (Xt << 25 | qt >>> 7), Qn = (Tn >>> 14 | Ye << 18) ^ (Tn >>> 18 | Ye << 14) ^ (Tn << 23 | Ye >>> 9),
|
|
5333
|
-
We = Ue, Qe = He, Ue = yt, He = Ct, yt = Tn, Ct = Ye, Ye = Yn + ls | 0, Tn = Jt +
|
|
5332
|
+
var Xo = Tn & yt ^ ~Tn & Ue, xr = Ye & Ct ^ ~Ye & He, sl = qt & qe ^ qt & Bt ^ qe & Bt, jr = Xt & W ^ Xt & It ^ W & It, Ef = (qt >>> 28 | Xt << 4) ^ (qt << 30 | Xt >>> 2) ^ (qt << 25 | Xt >>> 7), Mu = (Xt >>> 28 | qt << 4) ^ (Xt << 30 | qt >>> 2) ^ (Xt << 25 | qt >>> 7), Qn = (Tn >>> 14 | Ye << 18) ^ (Tn >>> 18 | Ye << 14) ^ (Tn << 23 | Ye >>> 9), wi = (Ye >>> 14 | Tn << 18) ^ (Ye >>> 18 | Tn << 14) ^ (Ye << 23 | Tn >>> 9), _d = K[cn], Jo = _d.high, Nn = _d.low, ls = Qe + wi, _i = We + Qn + (ls >>> 0 < Qe >>> 0 ? 1 : 0), ls = ls + xr, _i = _i + Xo + (ls >>> 0 < xr >>> 0 ? 1 : 0), ls = ls + Nn, _i = _i + Jo + (ls >>> 0 < Nn >>> 0 ? 1 : 0), ls = ls + vn, _i = _i + Gn + (ls >>> 0 < vn >>> 0 ? 1 : 0), Ht = Mu + jr, li = Ef + sl + (Ht >>> 0 < Mu >>> 0 ? 1 : 0);
|
|
5333
|
+
We = Ue, Qe = He, Ue = yt, He = Ct, yt = Tn, Ct = Ye, Ye = Yn + ls | 0, Tn = Jt + _i + (Ye >>> 0 < Yn >>> 0 ? 1 : 0) | 0, Jt = Bt, Yn = It, Bt = qe, It = W, qe = qt, W = Xt, Xt = ls + Ht | 0, qt = _i + li + (Xt >>> 0 < ls >>> 0 ? 1 : 0) | 0;
|
|
5334
5334
|
}
|
|
5335
5335
|
Me = X.low = Me + Xt, X.high = nt + qt + (Me >>> 0 < Xt >>> 0 ? 1 : 0), fe = ae.low = fe + W, ae.high = we + qe + (fe >>> 0 < W >>> 0 ? 1 : 0), dn = q.low = dn + It, q.high = N + Bt + (dn >>> 0 < It >>> 0 ? 1 : 0), fn = z.low = fn + Yn, z.high = vt + Jt + (fn >>> 0 < Yn >>> 0 ? 1 : 0), at = ge.low = at + Ye, ge.high = wn + Tn + (at >>> 0 < Ye >>> 0 ? 1 : 0), Rt = de.low = Rt + Ct, de.high = pn + yt + (Rt >>> 0 < Ct >>> 0 ? 1 : 0), Le = ye.low = Le + He, ye.high = De + Ue + (Le >>> 0 < He >>> 0 ? 1 : 0), it = Ie.low = it + Qe, Ie.high = ze + We + (it >>> 0 < Qe >>> 0 ? 1 : 0);
|
|
5336
5336
|
},
|
|
@@ -9059,7 +9059,7 @@ const Qie = Object.prototype.hasOwnProperty;
|
|
|
9059
9059
|
function Kp(l, m) {
|
|
9060
9060
|
return Qie.call(l, m);
|
|
9061
9061
|
}
|
|
9062
|
-
const
|
|
9062
|
+
const Ci = Array.isArray, ba = (l) => typeof l == "function", Kn = (l) => typeof l == "string", ur = (l) => typeof l == "boolean", or = (l) => l !== null && typeof l == "object", ele = (l) => or(l) && ba(l.then) && ba(l.catch), Aq = Object.prototype.toString, UH = (l) => Aq.call(l), Ls = (l) => UH(l) === "[object Object]", tle = (l) => l == null ? "" : Ci(l) || Ls(l) && l.toString === Aq ? JSON.stringify(l, null, 2) : String(l);
|
|
9063
9063
|
function WH(l, m = "") {
|
|
9064
9064
|
return l.reduce((v, b, A) => A === 0 ? v + b : v + m + b, "");
|
|
9065
9065
|
}
|
|
@@ -9116,7 +9116,7 @@ function jH() {
|
|
|
9116
9116
|
}
|
|
9117
9117
|
};
|
|
9118
9118
|
}
|
|
9119
|
-
const jN = (l) => !or(l) ||
|
|
9119
|
+
const jN = (l) => !or(l) || Ci(l);
|
|
9120
9120
|
function FF(l, m) {
|
|
9121
9121
|
if (jN(l) || jN(m))
|
|
9122
9122
|
throw new Error("Invalid value");
|
|
@@ -10302,7 +10302,7 @@ function zW(l) {
|
|
|
10302
10302
|
function Xle(l, m, v) {
|
|
10303
10303
|
return [.../* @__PURE__ */ new Set([
|
|
10304
10304
|
v,
|
|
10305
|
-
...
|
|
10305
|
+
...Ci(m) ? m : or(m) ? Object.keys(m) : Kn(m) ? [m] : [v]
|
|
10306
10306
|
])];
|
|
10307
10307
|
}
|
|
10308
10308
|
function Pq(l, m, v) {
|
|
@@ -10312,10 +10312,10 @@ function Pq(l, m, v) {
|
|
|
10312
10312
|
if (!k) {
|
|
10313
10313
|
k = [];
|
|
10314
10314
|
let P = [v];
|
|
10315
|
-
for (;
|
|
10315
|
+
for (; Ci(P); )
|
|
10316
10316
|
P = $W(k, P, m);
|
|
10317
|
-
const M =
|
|
10318
|
-
P = Kn(M) ? [M] : M,
|
|
10317
|
+
const M = Ci(m) || !Ls(m) ? m : m.default ? m.default : null;
|
|
10318
|
+
P = Kn(M) ? [M] : M, Ci(P) && $W(k, P, !1), A.__localeChainCache.set(b, k);
|
|
10319
10319
|
}
|
|
10320
10320
|
return k;
|
|
10321
10321
|
}
|
|
@@ -10341,7 +10341,7 @@ function Qle(l, m, v) {
|
|
|
10341
10341
|
if (!l.includes(m) && (b = !0, m)) {
|
|
10342
10342
|
b = m[m.length - 1] !== "!";
|
|
10343
10343
|
const A = m.replace(/!/g, "");
|
|
10344
|
-
l.push(A), (
|
|
10344
|
+
l.push(A), (Ci(v) || Ls(v)) && v[A] && (b = v[A]);
|
|
10345
10345
|
}
|
|
10346
10346
|
return b;
|
|
10347
10347
|
}
|
|
@@ -10684,7 +10684,7 @@ const WW = (l) => {
|
|
|
10684
10684
|
}, vce = () => $q;
|
|
10685
10685
|
let ZW = 0;
|
|
10686
10686
|
function bce(l = {}) {
|
|
10687
|
-
const m = ba(l.onWarn) ? l.onWarn : kx, v = Kn(l.version) ? l.version : uce, b = Kn(l.locale) || ba(l.locale) ? l.locale : mT, A = ba(b) ? mT : b, k =
|
|
10687
|
+
const m = ba(l.onWarn) ? l.onWarn : kx, v = Kn(l.version) ? l.version : uce, b = Kn(l.locale) || ba(l.locale) ? l.locale : mT, A = ba(b) ? mT : b, k = Ci(l.fallbackLocale) || Ls(l.fallbackLocale) || Kn(l.fallbackLocale) || l.fallbackLocale === !1 ? l.fallbackLocale : A, P = Ls(l.messages) ? l.messages : qI(A), M = Ls(l.datetimeFormats) ? l.datetimeFormats : qI(A), I = Ls(l.numberFormats) ? l.numberFormats : qI(A), F = tc(Qr(), l.modifiers, dce()), $ = l.pluralRules || Qr(), K = ba(l.missing) ? l.missing : null, Y = ur(l.missingWarn) || NS(l.missingWarn) ? l.missingWarn : !0, ne = ur(l.fallbackWarn) || NS(l.fallbackWarn) ? l.fallbackWarn : !0, oe = !!l.fallbackFormat, ce = !!l.unresolving, se = ba(l.postTranslation) ? l.postTranslation : null, X = Ls(l.processor) ? l.processor : null, ae = ur(l.warnHtmlMessage) ? l.warnHtmlMessage : !0, q = !!l.escapeParameter, z = ba(l.messageCompiler) ? l.messageCompiler : Mq;
|
|
10688
10688
|
process.env.NODE_ENV !== "production" && ba(l.messageCompiler) && ZH(jE(bf.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
10689
10689
|
const ge = ba(l.messageResolver) ? l.messageResolver : Iq || ace, de = ba(l.localeFallbacker) ? l.localeFallbacker : Hq || Xle, ye = or(l.fallbackContext) ? l.fallbackContext : void 0, Ie = l, nt = or(Ie.__datetimeFormatters) ? Ie.__datetimeFormatters : /* @__PURE__ */ new Map(), Me = or(Ie.__numberFormatters) ? Ie.__numberFormatters : /* @__PURE__ */ new Map(), we = or(Ie.__meta) ? Ie.__meta : {};
|
|
10690
10690
|
ZW++;
|
|
@@ -10959,7 +10959,7 @@ function kce(l = {}) {
|
|
|
10959
10959
|
ae.length === 1 ? or(q) ? (de = q.modifier || de, ge = q.type || ge) : Kn(q) && (de = q || de) : ae.length === 2 && (Kn(q) && (de = q || de), Kn(z) && (ge = z || ge));
|
|
10960
10960
|
const ye = $(X, !0)(se), Ie = (
|
|
10961
10961
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
10962
|
-
ge === "vnode" &&
|
|
10962
|
+
ge === "vnode" && Ci(ye) && de ? ye[0] : ye
|
|
10963
10963
|
);
|
|
10964
10964
|
return de ? K(de)(Ie, ge) : Ie;
|
|
10965
10965
|
},
|
|
@@ -11004,7 +11004,7 @@ function QW(l, ...m) {
|
|
|
11004
11004
|
return fe;
|
|
11005
11005
|
}
|
|
11006
11006
|
function Tce(l) {
|
|
11007
|
-
|
|
11007
|
+
Ci(l.list) ? l.list = l.list.map((m) => Kn(m) ? NW(m) : m) : or(l.named) && Object.keys(l.named).forEach((m) => {
|
|
11008
11008
|
Kn(l.named[m]) && (l.named[m] = NW(l.named[m]));
|
|
11009
11009
|
});
|
|
11010
11010
|
}
|
|
@@ -11099,7 +11099,7 @@ function vH(...l) {
|
|
|
11099
11099
|
if (!Kn(m) && !Rl(m) && !C0(m) && !E0(m))
|
|
11100
11100
|
throw Pv(Ru.INVALID_ARGUMENT);
|
|
11101
11101
|
const k = Rl(m) ? String(m) : (C0(m), m);
|
|
11102
|
-
return Rl(v) ? A.plural = v : Kn(v) ? A.default = v : Ls(v) && !t9(v) ? A.named = v :
|
|
11102
|
+
return Rl(v) ? A.plural = v : Kn(v) ? A.default = v : Ls(v) && !t9(v) ? A.named = v : Ci(v) && (A.list = v), Rl(b) ? A.plural = b : Kn(b) ? A.default = b : Ls(b) && tc(A, b), [k, A];
|
|
11103
11103
|
}
|
|
11104
11104
|
function Oce(l, m, v, b, A, k) {
|
|
11105
11105
|
return {
|
|
@@ -11268,8 +11268,8 @@ function gT(l) {
|
|
|
11268
11268
|
return l;
|
|
11269
11269
|
}
|
|
11270
11270
|
function XH(l, m) {
|
|
11271
|
-
const { messages: v, __i18n: b, messageResolver: A, flatJson: k } = m, P = Ls(v) ? v :
|
|
11272
|
-
if (
|
|
11271
|
+
const { messages: v, __i18n: b, messageResolver: A, flatJson: k } = m, P = Ls(v) ? v : Ci(b) ? Qr() : { [l]: Qr() };
|
|
11272
|
+
if (Ci(b) && b.forEach((M) => {
|
|
11273
11273
|
if ("locale" in M && "resource" in M) {
|
|
11274
11274
|
const { locale: I, resource: F } = M;
|
|
11275
11275
|
I ? (P[I] = P[I] || Qr(), FF(F, P[I])) : FF(F, P);
|
|
@@ -11329,7 +11329,7 @@ function JH(l = {}) {
|
|
|
11329
11329
|
m && P ? m.locale.value : Kn(l.locale) ? l.locale : mT
|
|
11330
11330
|
), I = k(
|
|
11331
11331
|
// prettier-ignore
|
|
11332
|
-
m && P ? m.fallbackLocale.value : Kn(l.fallbackLocale) ||
|
|
11332
|
+
m && P ? m.fallbackLocale.value : Kn(l.fallbackLocale) || Ci(l.fallbackLocale) || Ls(l.fallbackLocale) || l.fallbackLocale === !1 ? l.fallbackLocale : M.value
|
|
11333
11333
|
), F = k(XH(M.value, l)), $ = k(Ls(l.datetimeFormats) ? l.datetimeFormats : { [M.value]: {} }), K = k(Ls(l.numberFormats) ? l.numberFormats : { [M.value]: {} });
|
|
11334
11334
|
let Y = m ? m.missingWarn : ur(l.missingWarn) || NS(l.missingWarn) ? l.missingWarn : !0, ne = m ? m.fallbackWarn : ur(l.fallbackWarn) || NS(l.fallbackWarn) ? l.fallbackWarn : !0, oe = m ? m.fallbackRoot : ur(l.fallbackRoot) ? l.fallbackRoot : !0, ce = !!l.fallbackFormat, se = ba(l.missing) ? l.missing : null, X = ba(l.missing) ? sZ(l.missing) : null, ae = ba(l.postTranslation) ? l.postTranslation : null, q = m ? m.warnHtmlMessage : ur(l.warnHtmlMessage) ? l.warnHtmlMessage : !0, z = !!l.escapeParameter;
|
|
11335
11335
|
const ge = m ? m.modifiers : Ls(l.modifiers) ? l.modifiers : {};
|
|
@@ -11434,10 +11434,10 @@ function JH(l = {}) {
|
|
|
11434
11434
|
return De(Dt, io, tc({ resolvedMessage: !0 }, Vn || {}));
|
|
11435
11435
|
}
|
|
11436
11436
|
function ze(...ht) {
|
|
11437
|
-
return Rt((Dt) => Reflect.apply(qW, null, [Dt, ...ht]), () => gH(...ht), "datetime format", (Dt) => Reflect.apply(Dt.d, Dt, [...ht]), () => IF, (Dt) => Kn(Dt) ||
|
|
11437
|
+
return Rt((Dt) => Reflect.apply(qW, null, [Dt, ...ht]), () => gH(...ht), "datetime format", (Dt) => Reflect.apply(Dt.d, Dt, [...ht]), () => IF, (Dt) => Kn(Dt) || Ci(Dt));
|
|
11438
11438
|
}
|
|
11439
11439
|
function it(...ht) {
|
|
11440
|
-
return Rt((Dt) => Reflect.apply(KW, null, [Dt, ...ht]), () => hH(...ht), "number format", (Dt) => Reflect.apply(Dt.n, Dt, [...ht]), () => IF, (Dt) => Kn(Dt) ||
|
|
11440
|
+
return Rt((Dt) => Reflect.apply(KW, null, [Dt, ...ht]), () => hH(...ht), "number format", (Dt) => Reflect.apply(Dt.n, Dt, [...ht]), () => IF, (Dt) => Kn(Dt) || Ci(Dt));
|
|
11441
11441
|
}
|
|
11442
11442
|
function qt(ht) {
|
|
11443
11443
|
return ht.map((Dt) => Kn(Dt) || Rl(Dt) || ur(Dt) ? eZ(String(Dt)) : Dt);
|
|
@@ -11457,13 +11457,13 @@ function JH(l = {}) {
|
|
|
11457
11457
|
Vn.processor = null;
|
|
11458
11458
|
}
|
|
11459
11459
|
return io;
|
|
11460
|
-
}, () => vH(...ht), "translate", (Dt) => Dt[bH](...ht), (Dt) => [eZ(Dt)], (Dt) =>
|
|
11460
|
+
}, () => vH(...ht), "translate", (Dt) => Dt[bH](...ht), (Dt) => [eZ(Dt)], (Dt) => Ci(Dt));
|
|
11461
11461
|
}
|
|
11462
11462
|
function Bt(...ht) {
|
|
11463
|
-
return Rt((Dt) => Reflect.apply(KW, null, [Dt, ...ht]), () => hH(...ht), "number format", (Dt) => Dt[yH](...ht), nZ, (Dt) => Kn(Dt) ||
|
|
11463
|
+
return Rt((Dt) => Reflect.apply(KW, null, [Dt, ...ht]), () => hH(...ht), "number format", (Dt) => Dt[yH](...ht), nZ, (Dt) => Kn(Dt) || Ci(Dt));
|
|
11464
11464
|
}
|
|
11465
11465
|
function It(...ht) {
|
|
11466
|
-
return Rt((Dt) => Reflect.apply(qW, null, [Dt, ...ht]), () => gH(...ht), "datetime format", (Dt) => Dt[xH](...ht), nZ, (Dt) => Kn(Dt) ||
|
|
11466
|
+
return Rt((Dt) => Reflect.apply(qW, null, [Dt, ...ht]), () => gH(...ht), "datetime format", (Dt) => Dt[xH](...ht), nZ, (Dt) => Kn(Dt) || Ci(Dt));
|
|
11467
11467
|
}
|
|
11468
11468
|
function Jt(ht) {
|
|
11469
11469
|
de = ht, ye.pluralRules = de;
|
|
@@ -11867,11 +11867,11 @@ function Xce(l, m) {
|
|
|
11867
11867
|
const v = tG(l.nodeId, m);
|
|
11868
11868
|
if (v) {
|
|
11869
11869
|
const [b] = l.path;
|
|
11870
|
-
b === "locale" && Kn(l.state.value) ? v.locale.value = l.state.value : b === "fallbackLocale" && (Kn(l.state.value) ||
|
|
11870
|
+
b === "locale" && Kn(l.state.value) ? v.locale.value = l.state.value : b === "fallbackLocale" && (Kn(l.state.value) || Ci(l.state.value) || or(l.state.value)) ? v.fallbackLocale.value = l.state.value : b === "inheritLocale" && ur(l.state.value) && (v.inheritLocale = l.state.value);
|
|
11871
11871
|
}
|
|
11872
11872
|
}
|
|
11873
11873
|
function Jce(l) {
|
|
11874
|
-
const m = Kn(l.locale) ? l.locale : mT, v = Kn(l.fallbackLocale) ||
|
|
11874
|
+
const m = Kn(l.locale) ? l.locale : mT, v = Kn(l.fallbackLocale) || Ci(l.fallbackLocale) || Ls(l.fallbackLocale) || l.fallbackLocale === !1 ? l.fallbackLocale : m, b = ba(l.missing) ? l.missing : void 0, A = ur(l.silentTranslationWarn) || NS(l.silentTranslationWarn) ? !l.silentTranslationWarn : !0, k = ur(l.silentFallbackWarn) || NS(l.silentFallbackWarn) ? !l.silentFallbackWarn : !0, P = ur(l.fallbackRoot) ? l.fallbackRoot : !0, M = !!l.formatFallbackMessages, I = Ls(l.modifiers) ? l.modifiers : {}, F = l.pluralizationRules, $ = ba(l.postTranslation) ? l.postTranslation : void 0, K = Kn(l.warnHtmlInMessage) ? l.warnHtmlInMessage !== "off" : !0, Y = !!l.escapeParameterHtml, ne = ur(l.sync) ? l.sync : !0;
|
|
11875
11875
|
let oe = l.messages;
|
|
11876
11876
|
if (Ls(l.sharedMessages)) {
|
|
11877
11877
|
const ge = l.sharedMessages;
|
|
@@ -12192,7 +12192,7 @@ const tue = /* @__PURE__ */ Po({
|
|
|
12192
12192
|
}
|
|
12193
12193
|
}), iZ = tue;
|
|
12194
12194
|
function nue(l) {
|
|
12195
|
-
return
|
|
12195
|
+
return Ci(l) && !Kn(l[0]);
|
|
12196
12196
|
}
|
|
12197
12197
|
function oG(l, m, v, b) {
|
|
12198
12198
|
const { slots: A, attrs: k } = m;
|
|
@@ -12202,7 +12202,7 @@ function oG(l, m, v, b) {
|
|
|
12202
12202
|
l.locale && (P.locale = l.locale), Kn(l.format) ? P.key = l.format : or(l.format) && (Kn(l.format.key) && (P.key = l.format.key), M = Object.keys(l.format).reduce((Y, ne) => v.includes(ne) ? tc(Qr(), Y, { [ne]: l.format[ne] }) : Y, Qr()));
|
|
12203
12203
|
const I = b(l.value, P, M);
|
|
12204
12204
|
let F = [P.key];
|
|
12205
|
-
|
|
12205
|
+
Ci(I) ? F = I.map((Y, ne) => {
|
|
12206
12206
|
const oe = A[Y.type], ce = oe ? oe({ [Y.type]: Y.value, index: ne, parts: I }) : [Y.value];
|
|
12207
12207
|
return nue(ce) && (ce[0].key = `${Y.type}-${ne}`), ce;
|
|
12208
12208
|
}) : Kn(I) && (F = [I]);
|
|
@@ -12624,7 +12624,7 @@ const o0e = {
|
|
|
12624
12624
|
l === "" ? this.executing = [] : this.executing = this.executing.filter((m) => m !== l);
|
|
12625
12625
|
}
|
|
12626
12626
|
}
|
|
12627
|
-
}), oz =
|
|
12627
|
+
}), oz = Ei.create({
|
|
12628
12628
|
timeout: 6e4
|
|
12629
12629
|
// request timeout
|
|
12630
12630
|
}), Eue = (l) => l.interceptors.request.use(
|
|
@@ -12633,7 +12633,7 @@ const o0e = {
|
|
|
12633
12633
|
let v = ore();
|
|
12634
12634
|
m.headers.UUID = v + "," + (/* @__PURE__ */ new Date()).getTime(), Eq(v, m.data).then((A) => {
|
|
12635
12635
|
m.headers.Sign = A;
|
|
12636
|
-
}), m.cancelToken = new
|
|
12636
|
+
}), m.cancelToken = new Ei.CancelToken((A) => {
|
|
12637
12637
|
_H.push({ url: m.url, fun: A });
|
|
12638
12638
|
});
|
|
12639
12639
|
const b = zv().token;
|
|
@@ -12646,7 +12646,7 @@ const o0e = {
|
|
|
12646
12646
|
return hs.done(), SH(m.config.url), AH(m.config.url), [200, 201].indexOf(v.code) > -1 ? (rG(m.config), Promise.resolve(v)) : (_ue(v.code, v.message), Promise.reject(v));
|
|
12647
12647
|
},
|
|
12648
12648
|
(m) => {
|
|
12649
|
-
if (console.log("axios ERROR", m), SH(""), AH(""),
|
|
12649
|
+
if (console.log("axios ERROR", m), SH(""), AH(""), Ei.isCancel(m)) return Promise.reject("request canelled !");
|
|
12650
12650
|
const v = {
|
|
12651
12651
|
code: 400,
|
|
12652
12652
|
message: "err.network",
|
|
@@ -12878,7 +12878,7 @@ const s0e = {
|
|
|
12878
12878
|
m && this.tabsMenuList.forEach((A, k) => {
|
|
12879
12879
|
if (A.path !== l) return;
|
|
12880
12880
|
const P = this.tabsMenuList[k + 1] || this.tabsMenuList[k - 1];
|
|
12881
|
-
P && (
|
|
12881
|
+
P && (zi == null || zi.push(P.path));
|
|
12882
12882
|
});
|
|
12883
12883
|
const b = this.tabsMenuList.find((A) => A.path === l);
|
|
12884
12884
|
b != null && b.keepAlive && v.removeKeepAliveName(b.path), this.tabsMenuList = this.tabsMenuList.filter((A) => A.path !== l);
|
|
@@ -12925,7 +12925,7 @@ const Bue = {
|
|
|
12925
12925
|
hash: () => Joe(),
|
|
12926
12926
|
history: () => Lj()
|
|
12927
12927
|
};
|
|
12928
|
-
let cG = "hash",
|
|
12928
|
+
let cG = "hash", zi;
|
|
12929
12929
|
const a0e = (l, m = "hash", v) => {
|
|
12930
12930
|
cG = m;
|
|
12931
12931
|
const b = Vse({
|
|
@@ -12956,7 +12956,7 @@ const a0e = (l, m = "hash", v) => {
|
|
|
12956
12956
|
hs.done(), console.warn("路由错误", A.message);
|
|
12957
12957
|
}), b.afterEach(() => {
|
|
12958
12958
|
hs.done();
|
|
12959
|
-
}), l.use(b),
|
|
12959
|
+
}), l.use(b), zi = b, b;
|
|
12960
12960
|
};
|
|
12961
12961
|
function uG() {
|
|
12962
12962
|
const m = (/* @__PURE__ */ new Date()).getHours();
|
|
@@ -13010,7 +13010,7 @@ const i0e = {
|
|
|
13010
13010
|
const v = m.data;
|
|
13011
13011
|
this.setToken(v.token), await TH(), this.setScopes(JSON.parse(v.scopes) || {}), await Nl(Ka().defaultAuthApi.SELF, {}).then((b) => {
|
|
13012
13012
|
this.setUserInfo(b.data), b.data.language && w0().setGlobalState("language", b.data.language);
|
|
13013
|
-
}),
|
|
13013
|
+
}), zi == null || zi.push(Ka().defaultAppConfig.HOME_URL).then(() => {
|
|
13014
13014
|
setTimeout(() => {
|
|
13015
13015
|
const b = {
|
|
13016
13016
|
type: "success",
|
|
@@ -13055,7 +13055,7 @@ const i0e = {
|
|
|
13055
13055
|
status: 0,
|
|
13056
13056
|
remark: "",
|
|
13057
13057
|
login_at: ""
|
|
13058
|
-
}),
|
|
13058
|
+
}), zi == null || zi.push(Ka().defaultAppConfig.LOGIN_URL);
|
|
13059
13059
|
});
|
|
13060
13060
|
}
|
|
13061
13061
|
},
|
|
@@ -13137,15 +13137,15 @@ async function TH(l = !1) {
|
|
|
13137
13137
|
message: "当前账号无任何菜单权限,请联系系统管理员!",
|
|
13138
13138
|
type: "warning",
|
|
13139
13139
|
duration: 3e3
|
|
13140
|
-
}), m.logout(),
|
|
13140
|
+
}), m.logout(), zi == null || zi.replace(Ka().defaultAppConfig.LOGIN_URL), Promise.reject("No permission");
|
|
13141
13141
|
v.flatMenuListGet.forEach((A) => {
|
|
13142
13142
|
const k = Fue.deepClone(A);
|
|
13143
13143
|
k.children && delete k.children, k.name = (A == null ? void 0 : A.en_name) || "", k.path = (A == null ? void 0 : A.url) || "", k.meta.active = A.url;
|
|
13144
13144
|
const P = `/views${(A == null ? void 0 : A.component) || "/404"}.vue`;
|
|
13145
|
-
P in kH ? k.component = kH[P] : k.component = Hue, A.meta.full ?
|
|
13145
|
+
P in kH ? k.component = kH[P] : k.component = Hue, A.meta.full ? zi == null || zi.addRoute(k) : zi == null || zi.addRoute("Layout", k);
|
|
13146
13146
|
});
|
|
13147
13147
|
} catch (b) {
|
|
13148
|
-
return console.log("Router:", b),
|
|
13148
|
+
return console.log("Router:", b), zi == null || zi.replace("/404"), Promise.reject(b);
|
|
13149
13149
|
}
|
|
13150
13150
|
}
|
|
13151
13151
|
function zue(l) {
|
|
@@ -15326,12 +15326,12 @@ function dde() {
|
|
|
15326
15326
|
}, Qn = (e, t) => {
|
|
15327
15327
|
const o = {};
|
|
15328
15328
|
return Ef(e, t, jr(o), vt), o;
|
|
15329
|
-
},
|
|
15329
|
+
}, wi = (e, t) => {
|
|
15330
15330
|
const o = [];
|
|
15331
15331
|
return Xo(e, (s, i) => {
|
|
15332
15332
|
o.push(t(s, i));
|
|
15333
15333
|
}), o;
|
|
15334
|
-
}, _d = (e) =>
|
|
15334
|
+
}, _d = (e) => wi(e, pn), Jo = (e, t) => Nn(e, t) ? W.from(e[t]) : W.none(), Nn = (e, t) => Cf.call(e, t), ls = (e, t) => Nn(e, t) && e[t] !== void 0 && e[t] !== null, _i = (e, t, o = K) => $(o).eq(e, t), li = {
|
|
15335
15335
|
generate: (e) => {
|
|
15336
15336
|
if (!de(e))
|
|
15337
15337
|
throw new Error("cases must be an array");
|
|
@@ -15414,7 +15414,7 @@ Required: ` + t.join(", "));
|
|
|
15414
15414
|
toOptional: () => W.some(e)
|
|
15415
15415
|
};
|
|
15416
15416
|
return i;
|
|
15417
|
-
},
|
|
15417
|
+
}, Si = (e) => {
|
|
15418
15418
|
const t = () => o, o = {
|
|
15419
15419
|
// Debug info
|
|
15420
15420
|
tag: !1,
|
|
@@ -15439,9 +15439,9 @@ Required: ` + t.join(", "));
|
|
|
15439
15439
|
return o;
|
|
15440
15440
|
}, yr = {
|
|
15441
15441
|
value: mm,
|
|
15442
|
-
error:
|
|
15443
|
-
fromOption: (e, t) => e.fold(() =>
|
|
15444
|
-
}, Jp = typeof window < "u" ? window : Function("return this;")(),
|
|
15442
|
+
error: Si,
|
|
15443
|
+
fromOption: (e, t) => e.fold(() => Si(t), mm)
|
|
15444
|
+
}, Jp = typeof window < "u" ? window : Function("return this;")(), Ai = (e, t, o) => Math.min(Math.max(e, t), o), wf = () => window.crypto.getRandomValues(new Uint32Array(1))[0] / 4294967295;
|
|
15445
15445
|
let Zs = 0;
|
|
15446
15446
|
const qr = (e) => {
|
|
15447
15447
|
const o = (/* @__PURE__ */ new Date()).getTime(), s = Math.floor(wf() * 1e9);
|
|
@@ -15520,7 +15520,7 @@ Required: ` + t.join(", "));
|
|
|
15520
15520
|
}, Ca = (e, t) => e.substring(t), rl = (e, t, o) => t === "" || e.length >= t.length && e.substr(o, o + t.length) === t, Hu = (e, t) => fr(e, t) ? Ca(e, t.length) : e, ta = (e, t, o = 0, s) => {
|
|
15521
15521
|
const i = e.indexOf(t, o);
|
|
15522
15522
|
return i !== -1 ? nt(s) ? !0 : i + t.length <= s : !1;
|
|
15523
|
-
}, fr = (e, t) => rl(e, t, 0), Sf = (e, t) => rl(e, t, e.length - t.length),
|
|
15523
|
+
}, fr = (e, t) => rl(e, t, 0), Sf = (e, t) => rl(e, t, e.length - t.length), ki = (e) => (t) => t.replace(e, ""), oc = ki(/^\s+|\s+$/g), k0 = ki(/^\s+/g), Ko = ki(/\s+$/g), Xs = (e) => e.length > 0, na = (e) => !Xs(e), Ea = (e, t) => t <= 0 ? "" : new Array(t + 1).join(e), Vs = (e, t = 10) => {
|
|
15524
15524
|
const o = parseInt(e, t);
|
|
15525
15525
|
return isNaN(o) ? W.none() : W.some(o);
|
|
15526
15526
|
}, ui = (e, t) => {
|
|
@@ -15604,7 +15604,7 @@ Required: ` + t.join(", "));
|
|
|
15604
15604
|
if (t.call(o, e[s], s, e))
|
|
15605
15605
|
return s;
|
|
15606
15606
|
return -1;
|
|
15607
|
-
},
|
|
15607
|
+
}, Ti = (e) => e[e.length - 1], Qp = (e, t, o, s) => {
|
|
15608
15608
|
const i = e.isiOS() && /ipad/i.test(o) === !0, d = e.isiOS() && !i, g = e.isiOS() || e.isAndroid(), C = g || s("(pointer:coarse)"), S = i || !d && g && s("(min-device-width:768px)"), B = d || g && !S, U = t.isSafari() && e.isiOS() && /safari/i.test(o) === !1, j = !B && !S && !U;
|
|
15609
15609
|
return {
|
|
15610
15610
|
isiPad: at(i),
|
|
@@ -15660,7 +15660,7 @@ Required: ` + t.join(", "));
|
|
|
15660
15660
|
current: o.name,
|
|
15661
15661
|
version: s
|
|
15662
15662
|
};
|
|
15663
|
-
}), Ml = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/,
|
|
15663
|
+
}), Ml = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Di = (e) => (t) => ta(t, e), vs = [
|
|
15664
15664
|
// This is legacy Edge
|
|
15665
15665
|
{
|
|
15666
15666
|
name: "Edge",
|
|
@@ -15683,12 +15683,12 @@ Required: ` + t.join(", "));
|
|
|
15683
15683
|
{
|
|
15684
15684
|
name: "Opera",
|
|
15685
15685
|
versionRegexes: [Ml, /.*?opera\/([0-9]+)\.([0-9]+).*/],
|
|
15686
|
-
search:
|
|
15686
|
+
search: Di("opera")
|
|
15687
15687
|
},
|
|
15688
15688
|
{
|
|
15689
15689
|
name: "Firefox",
|
|
15690
15690
|
versionRegexes: [/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],
|
|
15691
|
-
search:
|
|
15691
|
+
search: Di("firefox")
|
|
15692
15692
|
},
|
|
15693
15693
|
{
|
|
15694
15694
|
name: "Safari",
|
|
@@ -15698,7 +15698,7 @@ Required: ` + t.join(", "));
|
|
|
15698
15698
|
], Ba = [
|
|
15699
15699
|
{
|
|
15700
15700
|
name: "Windows",
|
|
15701
|
-
search:
|
|
15701
|
+
search: Di("win"),
|
|
15702
15702
|
versionRegexes: [/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]
|
|
15703
15703
|
},
|
|
15704
15704
|
{
|
|
@@ -15708,32 +15708,32 @@ Required: ` + t.join(", "));
|
|
|
15708
15708
|
},
|
|
15709
15709
|
{
|
|
15710
15710
|
name: "Android",
|
|
15711
|
-
search:
|
|
15711
|
+
search: Di("android"),
|
|
15712
15712
|
versionRegexes: [/.*?android\ ?([0-9]+)\.([0-9]+).*/]
|
|
15713
15713
|
},
|
|
15714
15714
|
{
|
|
15715
15715
|
name: "macOS",
|
|
15716
|
-
search:
|
|
15716
|
+
search: Di("mac os x"),
|
|
15717
15717
|
versionRegexes: [/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]
|
|
15718
15718
|
},
|
|
15719
15719
|
{
|
|
15720
15720
|
name: "Linux",
|
|
15721
|
-
search:
|
|
15721
|
+
search: Di("linux"),
|
|
15722
15722
|
versionRegexes: []
|
|
15723
15723
|
},
|
|
15724
15724
|
{
|
|
15725
15725
|
name: "Solaris",
|
|
15726
|
-
search:
|
|
15726
|
+
search: Di("sunos"),
|
|
15727
15727
|
versionRegexes: []
|
|
15728
15728
|
},
|
|
15729
15729
|
{
|
|
15730
15730
|
name: "FreeBSD",
|
|
15731
|
-
search:
|
|
15731
|
+
search: Di("freebsd"),
|
|
15732
15732
|
versionRegexes: []
|
|
15733
15733
|
},
|
|
15734
15734
|
{
|
|
15735
15735
|
name: "ChromeOS",
|
|
15736
|
-
search:
|
|
15736
|
+
search: Di("cros"),
|
|
15737
15737
|
versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/]
|
|
15738
15738
|
}
|
|
15739
15739
|
], ee = {
|
|
@@ -15758,7 +15758,7 @@ Required: ` + t.join(", "));
|
|
|
15758
15758
|
}, Ra = {
|
|
15759
15759
|
unknown: Er,
|
|
15760
15760
|
nu: Mr
|
|
15761
|
-
},
|
|
15761
|
+
}, Oi = "Windows", fi = "iOS", Zi = "Android", Il = "Linux", F0 = "macOS", tg = "Solaris", ll = "FreeBSD", Na = "ChromeOS", Td = () => Dd({
|
|
15762
15762
|
current: void 0,
|
|
15763
15763
|
version: zu.unknown()
|
|
15764
15764
|
}), Dd = (e) => {
|
|
@@ -15766,7 +15766,7 @@ Required: ` + t.join(", "));
|
|
|
15766
15766
|
return {
|
|
15767
15767
|
current: t,
|
|
15768
15768
|
version: o,
|
|
15769
|
-
isWindows: s(
|
|
15769
|
+
isWindows: s(Oi),
|
|
15770
15770
|
// TODO: Fix capitalisation
|
|
15771
15771
|
isiOS: s(fi),
|
|
15772
15772
|
isAndroid: s(Zi),
|
|
@@ -16088,7 +16088,7 @@ Required: ` + t.join(", "));
|
|
|
16088
16088
|
}, pi = (e) => W.from(e.dom.previousSibling).map(Oe.fromDom), Pc = (e) => W.from(e.dom.nextSibling).map(Oe.fromDom), eo = (e) => ya(mi(e, pi)), ji = (e) => mi(e, Pc), Ma = (e) => Ct(e.dom.childNodes, Oe.fromDom), $l = (e, t) => {
|
|
16089
16089
|
const o = e.dom.childNodes;
|
|
16090
16090
|
return W.from(o[t]).map(Oe.fromDom);
|
|
16091
|
-
},
|
|
16091
|
+
}, Bi = (e) => $l(e, 0), qs = (e) => $l(e, e.dom.childNodes.length - 1), I0 = (e) => e.dom.childNodes.length, H0 = (e) => {
|
|
16092
16092
|
const t = e.dom.head;
|
|
16093
16093
|
if (t == null)
|
|
16094
16094
|
throw new Error("Head is not available yet");
|
|
@@ -16145,7 +16145,7 @@ Required: ` + t.join(", "));
|
|
|
16145
16145
|
Qa(s, t);
|
|
16146
16146
|
});
|
|
16147
16147
|
}, Dm = (e, t) => {
|
|
16148
|
-
|
|
16148
|
+
Bi(e).fold(() => {
|
|
16149
16149
|
_r(e, t);
|
|
16150
16150
|
}, (s) => {
|
|
16151
16151
|
e.dom.insertBefore(t.dom, s.dom);
|
|
@@ -16175,10 +16175,10 @@ Required: ` + t.join(", "));
|
|
|
16175
16175
|
Xo(t, (s, i) => {
|
|
16176
16176
|
$0(o, i, s);
|
|
16177
16177
|
});
|
|
16178
|
-
},
|
|
16178
|
+
}, Ri = (e, t) => {
|
|
16179
16179
|
const o = e.dom.getAttribute(t);
|
|
16180
16180
|
return o === null ? void 0 : o;
|
|
16181
|
-
}, Us = (e, t) => W.from(
|
|
16181
|
+
}, Us = (e, t) => W.from(Ri(e, t)), Ws = (e, t) => {
|
|
16182
16182
|
const o = e.dom;
|
|
16183
16183
|
return o && o.hasAttribute ? o.hasAttribute(t) : !1;
|
|
16184
16184
|
}, rr = (e, t) => {
|
|
@@ -16327,14 +16327,14 @@ Required: ` + t.join(", "));
|
|
|
16327
16327
|
return Ue(e, (i) => {
|
|
16328
16328
|
s.appendChild(i.dom);
|
|
16329
16329
|
}), Oe.fromDom(s);
|
|
16330
|
-
}, Z0 = Xv(Pa, "text"), j0 = (e) => Z0.get(e), Rs = (e) => Z0.getOption(e), cc = (e, t) => Z0.set(e, t),
|
|
16331
|
-
const o =
|
|
16330
|
+
}, Z0 = Xv(Pa, "text"), j0 = (e) => Z0.get(e), Rs = (e) => Z0.getOption(e), cc = (e, t) => Z0.set(e, t), Ni = (e, t) => {
|
|
16331
|
+
const o = Ri(e, t);
|
|
16332
16332
|
return o === void 0 || o === "" ? [] : o.split(" ");
|
|
16333
16333
|
}, ag = (e, t, o) => {
|
|
16334
|
-
const i =
|
|
16334
|
+
const i = Ni(e, t).concat([o]);
|
|
16335
16335
|
return ra(e, t, i.join(" ")), !0;
|
|
16336
16336
|
}, ml = (e, t, o) => {
|
|
16337
|
-
const s = Qe(
|
|
16337
|
+
const s = Qe(Ni(e, t), (i) => i !== o);
|
|
16338
16338
|
return s.length > 0 ? ra(e, t, s.join(" ")) : rr(e, t), !1;
|
|
16339
16339
|
};
|
|
16340
16340
|
var Nx = (e, t, o, s, i) => e(o, s) ? W.some(o) : fe(i) && i(o) ? W.none() : t(o, s, i);
|
|
@@ -16369,7 +16369,7 @@ Required: ` + t.join(", "));
|
|
|
16369
16369
|
return W.none();
|
|
16370
16370
|
};
|
|
16371
16371
|
return o(e.dom);
|
|
16372
|
-
}, lg = (e, t, o) => ir(e, (s) => Hl(s, t), o), Pr = (e, t) => Rd(t, e), Ki = (e, t, o) => Nx((i, d) => Hl(i, d), lg, e, t, o), aa = (e) => e.dom.classList !== void 0, Id = (e) =>
|
|
16372
|
+
}, lg = (e, t, o) => ir(e, (s) => Hl(s, t), o), Pr = (e, t) => Rd(t, e), Ki = (e, t, o) => Nx((i, d) => Hl(i, d), lg, e, t, o), aa = (e) => e.dom.classList !== void 0, Id = (e) => Ni(e, "class"), Fx = (e, t) => ag(e, "class", t), gl = (e, t) => ml(e, "class", t), No = (e, t) => Ye(Id(e), t) ? gl(e, t) : Fx(e, t), hl = (e, t) => {
|
|
16373
16373
|
aa(e) ? e.dom.classList.add(t) : Fx(e, t);
|
|
16374
16374
|
}, q0 = (e) => {
|
|
16375
16375
|
(aa(e) ? e.dom.classList : Id(e)).length === 0 && rr(e, "class");
|
|
@@ -16412,7 +16412,7 @@ Required: ` + t.join(", "));
|
|
|
16412
16412
|
// For the purposes of finding cursor positions only allow text nodes with content,
|
|
16413
16413
|
// but trim removes and that's allowed
|
|
16414
16414
|
t.trim().length !== 0 || t.indexOf(Os) > -1
|
|
16415
|
-
)).isSome(), QE = (e) => cu(e) &&
|
|
16415
|
+
)).isSome(), QE = (e) => cu(e) && Ri(e, "contenteditable") === "false", uc = ["img", "br"], Qv = (e) => G0(e) || Ye(uc, Eo(e)) || QE(e), K0 = (e) => pl(e, Qv), ju = {
|
|
16416
16416
|
create: (e, t, o, s) => ({
|
|
16417
16417
|
start: e,
|
|
16418
16418
|
soffset: t,
|
|
@@ -16606,7 +16606,7 @@ Required: ` + t.join(", "));
|
|
|
16606
16606
|
}
|
|
16607
16607
|
return !1;
|
|
16608
16608
|
};
|
|
16609
|
-
}, Hx = (e) => (t) => jt(t) && t.hasAttribute(e), Ku = (e) => jt(e) && e.hasAttribute("data-mce-bogus"), qS = (e) => jt(e) && e.getAttribute("data-mce-bogus") === "all", $d = (e) => jt(e) && e.tagName === "TABLE", dg = (e) => (t) => !!(bl(t) && (t.contentEditable === e || t.getAttribute("data-mce-contenteditable") === e)), Mf = xl(["textarea", "input"]), Tt = fc(3), ko = fc(4),
|
|
16609
|
+
}, Hx = (e) => (t) => jt(t) && t.hasAttribute(e), Ku = (e) => jt(e) && e.hasAttribute("data-mce-bogus"), qS = (e) => jt(e) && e.getAttribute("data-mce-bogus") === "all", $d = (e) => jt(e) && e.tagName === "TABLE", dg = (e) => (t) => !!(bl(t) && (t.contentEditable === e || t.getAttribute("data-mce-contenteditable") === e)), Mf = xl(["textarea", "input"]), Tt = fc(3), ko = fc(4), Fi = fc(7), mc = fc(8), Hc = fc(9), us = fc(11), nr = Pf("br"), zx = Pf("img"), sb = Pf("a"), pc = dg("true"), Ns = dg("false"), $x = (e) => bl(e) && e.isContentEditable && we(e.parentElement) && !e.parentElement.isContentEditable, Vd = xl(["td", "th"]), GS = xl(["td", "th", "caption"]), hu = xl(["video", "audio", "object", "embed"]), s4 = Pf("li"), xo = Pf("details"), rb = Pf("summary"), ab = {
|
|
16610
16610
|
skipBogus: !0,
|
|
16611
16611
|
includeZwsp: !1,
|
|
16612
16612
|
checkRootAsContent: !1
|
|
@@ -16642,7 +16642,7 @@ Required: ` + t.join(", "));
|
|
|
16642
16642
|
i = g.next();
|
|
16643
16643
|
} while (i);
|
|
16644
16644
|
return d <= 1;
|
|
16645
|
-
},
|
|
16645
|
+
}, Li = (e, t, o) => zc(e, t.dom, { checkRootAsContent: !0, ...o }), Zx = (e, t, o) => ep(e, t, t, { includeZwsp: ab.includeZwsp, ...o }), jx = (e) => {
|
|
16646
16646
|
const t = e.toLowerCase();
|
|
16647
16647
|
return t === "svg" ? "svg" : t === "math" ? "math" : "html";
|
|
16648
16648
|
}, Pm = (e) => jx(e) !== "html", l1 = (e) => Pm(e.nodeName), ib = (e) => jx(e.nodeName), c1 = ["svg", "math"], za = () => {
|
|
@@ -17038,7 +17038,7 @@ Required: ` + t.join(", "));
|
|
|
17038
17038
|
} else
|
|
17039
17039
|
return [];
|
|
17040
17040
|
});
|
|
17041
|
-
}, vu = {}, yl = Lt.makeMap,
|
|
17041
|
+
}, vu = {}, yl = Lt.makeMap, Pi = Lt.each, v1 = Lt.extend, b1 = Lt.explode, Va = (e, t = {}) => {
|
|
17042
17042
|
const o = yl(e, " ", yl(e.toUpperCase(), " "));
|
|
17043
17043
|
return v1(o, t);
|
|
17044
17044
|
}, iy = (e) => Va("td th li dt dd figcaption caption details summary", e.getTextBlockElements()), x1 = (e, t) => {
|
|
@@ -17046,7 +17046,7 @@ Required: ` + t.join(", "));
|
|
|
17046
17046
|
const o = {};
|
|
17047
17047
|
return q(e) && (e = {
|
|
17048
17048
|
"*": e
|
|
17049
|
-
}),
|
|
17049
|
+
}), Pi(e, (s, i) => {
|
|
17050
17050
|
o[i] = o[i.toUpperCase()] = t === "map" ? yl(s, /[, ]/) : b1(s, /[, ]/);
|
|
17051
17051
|
}), o;
|
|
17052
17052
|
} else
|
|
@@ -17066,7 +17066,7 @@ Required: ` + t.join(", "));
|
|
|
17066
17066
|
}, S = (t = e.schema) !== null && t !== void 0 ? t : "html5", B = ry(S);
|
|
17067
17067
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
17068
17068
|
const U = x1(e.valid_styles), j = x1(e.invalid_styles, "map"), J = x1(e.valid_classes, "map"), ue = C("whitespace_elements", "pre script noscript style textarea video audio iframe object code"), xe = C("self_closing_elements", "colgroup dd dt li option p td tfoot th thead tr"), he = C("void_elements", "area base basefont br col frame hr img input isindex link meta param embed source wbr track"), Ae = C("boolean_attributes", "checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"), Ne = "td th iframe video audio object script code", $e = C("non_empty_elements", Ne + " pre svg textarea summary", he), Ze = C("move_caret_before_on_enter_elements", Ne + " table", he), tt = "h1 h2 h3 h4 h5 h6", bt = C("text_block_elements", tt + " p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"), Nt = C("block_elements", "hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing", bt), nn = C("text_inline_elements", "span strong b em i font s strike u var cite dfn code mark q sup sub samp"), ct = C("transparent_elements", "a ins del canvas map"), st = C("wrap_block_elements", "pre " + tt);
|
|
17069
|
-
|
|
17069
|
+
Pi("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (kn) => {
|
|
17070
17070
|
g[kn] = new RegExp("</" + kn + "[^>]*>", "gi");
|
|
17071
17071
|
});
|
|
17072
17072
|
const wt = (kn) => {
|
|
@@ -17153,25 +17153,25 @@ Required: ` + t.join(", "));
|
|
|
17153
17153
|
return ai;
|
|
17154
17154
|
}
|
|
17155
17155
|
}, Xr = () => {
|
|
17156
|
-
e.valid_elements ? (Kt(e.valid_elements),
|
|
17156
|
+
e.valid_elements ? (Kt(e.valid_elements), Pi(B, (kn, Ro) => {
|
|
17157
17157
|
s[Ro] = kn.children;
|
|
17158
|
-
})) : (
|
|
17158
|
+
})) : (Pi(B, (kn, Ro) => {
|
|
17159
17159
|
o[Ro] = {
|
|
17160
17160
|
attributes: kn.attributes,
|
|
17161
17161
|
attributesOrder: kn.attributesOrder
|
|
17162
17162
|
}, s[Ro] = kn.children;
|
|
17163
|
-
}),
|
|
17163
|
+
}), Pi(ua("strong/b em/i"), (kn) => {
|
|
17164
17164
|
const Ro = ua(kn, "/");
|
|
17165
17165
|
o[Ro[1]].outputName = Ro[0];
|
|
17166
|
-
}),
|
|
17166
|
+
}), Pi(nn, (kn, Ro) => {
|
|
17167
17167
|
o[Ro] && (e.padd_empty_block_inline_children && (o[Ro].paddInEmptyBlock = !0), o[Ro].removeEmpty = !0);
|
|
17168
|
-
}),
|
|
17168
|
+
}), Pi(ua("ol ul blockquote a table tbody"), (kn) => {
|
|
17169
17169
|
o[kn] && (o[kn].removeEmpty = !0);
|
|
17170
|
-
}),
|
|
17170
|
+
}), Pi(ua("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"), (kn) => {
|
|
17171
17171
|
o[kn] && (o[kn].paddEmpty = !0);
|
|
17172
|
-
}),
|
|
17172
|
+
}), Pi(ua("span"), (kn) => {
|
|
17173
17173
|
o[kn].removeEmptyAttrs = !0;
|
|
17174
|
-
})), delete o.svg, po(e.custom_elements), jo(e.valid_children), wt(e.extended_valid_elements), jo("+ol[ul|ol],+ul[ul|ol]"),
|
|
17174
|
+
})), delete o.svg, po(e.custom_elements), jo(e.valid_children), wt(e.extended_valid_elements), jo("+ol[ul|ol],+ul[ul|ol]"), Pi({
|
|
17175
17175
|
dd: "dl",
|
|
17176
17176
|
dt: "dl",
|
|
17177
17177
|
li: "ul ol",
|
|
@@ -17186,7 +17186,7 @@ Required: ` + t.join(", "));
|
|
|
17186
17186
|
param: "video audio object"
|
|
17187
17187
|
}, (kn, Ro) => {
|
|
17188
17188
|
o[Ro] && (o[Ro].parentsRequired = ua(kn));
|
|
17189
|
-
}), e.invalid_elements &&
|
|
17189
|
+
}), e.invalid_elements && Pi(b1(e.invalid_elements), (kn) => {
|
|
17190
17190
|
o[kn] && delete o[kn];
|
|
17191
17191
|
}), gs("span") || wt("span[!data-mce-type|*]");
|
|
17192
17192
|
}, ri = at(U), xi = at(j), Ut = at(J), Cn = at(Ae), Vo = at(Nt), qo = at(bt), gt = at(nn), Ft = at(Object.seal(he)), hn = at(xe), go = at($e), vo = at(Ze), as = at(ue), cm = at(ct), Dh = at(st), eu = at(Object.seal(g)), v0 = (kn, Ro) => {
|
|
@@ -17576,7 +17576,7 @@ Required: ` + t.join(", "));
|
|
|
17576
17576
|
}
|
|
17577
17577
|
return o;
|
|
17578
17578
|
}, xb = (e, t) => {
|
|
17579
|
-
const o =
|
|
17579
|
+
const o = Ri(t, "style"), s = e.serialize(e.parse(o), Eo(t));
|
|
17580
17580
|
hg(t, fs, s);
|
|
17581
17581
|
}, QS = (e, t) => N(e) ? Nn(ed, t) ? e + "" : e + "px" : e, yb = (e, t, o) => {
|
|
17582
17582
|
const s = Wd(t);
|
|
@@ -17591,7 +17591,7 @@ Required: ` + t.join(", "));
|
|
|
17591
17591
|
},
|
|
17592
17592
|
get: (g, C) => {
|
|
17593
17593
|
const S = Oe.fromDom(g);
|
|
17594
|
-
return
|
|
17594
|
+
return Ri(S, "data-mce-" + C) || Ri(S, C);
|
|
17595
17595
|
}
|
|
17596
17596
|
}, d = {
|
|
17597
17597
|
style: {
|
|
@@ -17600,7 +17600,7 @@ Required: ` + t.join(", "));
|
|
|
17600
17600
|
s && hg(S, fs, C), rr(S, "style"), q(C) && V0(S, e.parse(C));
|
|
17601
17601
|
},
|
|
17602
17602
|
get: (g) => {
|
|
17603
|
-
const C = Oe.fromDom(g), S =
|
|
17603
|
+
const C = Oe.fromDom(g), S = Ri(C, fs) || Ri(C, "style");
|
|
17604
17604
|
return e.serialize(e.parse(S), Eo(C));
|
|
17605
17605
|
}
|
|
17606
17606
|
}
|
|
@@ -17623,7 +17623,7 @@ Required: ` + t.join(", "));
|
|
|
17623
17623
|
const Ln = Ae(Xe);
|
|
17624
17624
|
if (we(Ln) && wr(Ln)) {
|
|
17625
17625
|
const zo = VN[ot];
|
|
17626
|
-
zo && zo.get ? Pt = zo.get(Ln.dom, ot) : Pt =
|
|
17626
|
+
zo && zo.get ? Pt = zo.get(Ln.dom, ot) : Pt = Ri(Ln, ot);
|
|
17627
17627
|
}
|
|
17628
17628
|
return we(Pt) ? Pt : $t;
|
|
17629
17629
|
}, $e = (Xe) => {
|
|
@@ -17632,7 +17632,7 @@ Required: ` + t.join(", "));
|
|
|
17632
17632
|
}, Ze = (Xe, ot, $t) => {
|
|
17633
17633
|
Cn(Xe, (Pt) => {
|
|
17634
17634
|
if (jt(Pt)) {
|
|
17635
|
-
const Ln = Oe.fromDom(Pt), zo = $t === "" ? null : $t, Zr =
|
|
17635
|
+
const Ln = Oe.fromDom(Pt), zo = $t === "" ? null : $t, Zr = Ri(Ln, ot), qp = VN[ot];
|
|
17636
17636
|
qp && qp.set ? qp.set(Ln.dom, zo, ot) : hg(Ln, ot, zo), Zr !== zo && t.onSetAttrib && t.onSetAttrib({
|
|
17637
17637
|
attrElm: Ln.dom,
|
|
17638
17638
|
// We lie here to not break backwards compatibility
|
|
@@ -18811,7 +18811,7 @@ Required: ` + t.join(", "));
|
|
|
18811
18811
|
const o = Oe.fromDom(e.getBody()), s = bo(o, `[${Um()}="${t}"]`), i = {};
|
|
18812
18812
|
return Ue(s, (d) => {
|
|
18813
18813
|
if (!xg(d, o)) {
|
|
18814
|
-
const g =
|
|
18814
|
+
const g = Ri(d, fo()), C = Jo(i, g).getOr([]);
|
|
18815
18815
|
i[g] = C.concat([d]);
|
|
18816
18816
|
}
|
|
18817
18817
|
}), i;
|
|
@@ -19043,7 +19043,7 @@ Required: ` + t.join(", "));
|
|
|
19043
19043
|
return t === e.endContainer && t.hasChildNodes() && e.endOffset === o + 1 ? t.childNodes[o] : null;
|
|
19044
19044
|
}, sd = (e, t) => {
|
|
19045
19045
|
if (jt(e) && e.hasChildNodes()) {
|
|
19046
|
-
const o = e.childNodes, s =
|
|
19046
|
+
const o = e.childNodes, s = Ai(t, 0, o.length - 1);
|
|
19047
19047
|
return o[s];
|
|
19048
19048
|
} else
|
|
19049
19049
|
return e;
|
|
@@ -20204,7 +20204,7 @@ Required: ` + t.join(", "));
|
|
|
20204
20204
|
if (s && (bp(e) && g.isAtEnd() || Yd(e) && g.isAtStart()) && (s = xp(s, e, qe, o, !0), f2(s, o)))
|
|
20205
20205
|
return m2(e, s);
|
|
20206
20206
|
i = s && xp(s, e, f2, o);
|
|
20207
|
-
const B =
|
|
20207
|
+
const B = Ti(Qe(Yl(C, o), hi));
|
|
20208
20208
|
return B && (!i || !B.contains(i)) ? (bp(e) ? g = lt.after(B) : g = lt.before(B), g) : i ? m2(e, i) : null;
|
|
20209
20209
|
}, cd = (e) => ({
|
|
20210
20210
|
/**
|
|
@@ -20242,7 +20242,7 @@ Required: ` + t.join(", "));
|
|
|
20242
20242
|
}, _u = (e, t, o) => ja(e, t, o).bind((s) => ld(o, s, t) && qg(e, o, s) ? ja(e, t, s) : W.some(s)), Gg = (e, t, o, s) => _u(e, t, o).bind((i) => s(i) ? Gg(e, t, i, s) : W.some(i)), Yf = (e, t) => {
|
|
20243
20243
|
const o = e ? t.firstChild : t.lastChild;
|
|
20244
20244
|
return Tt(o) ? W.some(lt(o, e ? 0 : o.data.length)) : o ? rd(o) ? W.some(e ? lt.before(o) : $w(o)) : zw(e, t, o) : W.none();
|
|
20245
|
-
}, fa = De(ja, !0),
|
|
20245
|
+
}, fa = De(ja, !0), Mi = De(ja, !1), qa = De(Yf, !0), Ii = De(Yf, !1), g2 = "_mce_caret", Cc = (e) => jt(e) && e.id === g2, Qd = (e, t) => {
|
|
20246
20246
|
let o = t;
|
|
20247
20247
|
for (; o && o !== e; ) {
|
|
20248
20248
|
if (Cc(o))
|
|
@@ -20260,7 +20260,7 @@ Required: ` + t.join(", "));
|
|
|
20260
20260
|
var o;
|
|
20261
20261
|
const i = ((o = e.ownerDocument) !== null && o !== void 0 ? o : document).createTextNode(da);
|
|
20262
20262
|
e.appendChild(i), t.setStart(i, 0), t.setEnd(i, 0);
|
|
20263
|
-
}, h2 = (e) => !e.hasChildNodes(), Z5 = (e, t) =>
|
|
20263
|
+
}, h2 = (e) => !e.hasChildNodes(), Z5 = (e, t) => Ii(e).fold(Xt, (o) => (t.setStart(o.container(), o.offset()), t.setEnd(o.container(), o.offset()), !0)), ts = (e, t, o) => h2(t) && Qd(e, t) ? (hC(t, o), !0) : !1, e0 = (e, t, o, s) => {
|
|
20264
20264
|
const i = o[t ? "start" : "end"], d = e.getRoot();
|
|
20265
20265
|
if (i) {
|
|
20266
20266
|
let g = d, C = i[0];
|
|
@@ -20345,7 +20345,7 @@ Required: ` + t.join(", "));
|
|
|
20345
20345
|
}, ma = (e) => {
|
|
20346
20346
|
const t = e.endContainer, o = e.endOffset;
|
|
20347
20347
|
return Tt(t) ? o === t.data.length ? W.some(Oe.fromDom(t)) : W.none() : W.from(t.childNodes[o - 1]).map(Oe.fromDom);
|
|
20348
|
-
}, dd = (e) =>
|
|
20348
|
+
}, dd = (e) => Bi(e).fold(at([e]), (t) => [e].concat(dd(t))), fd = (e) => qs(e).fold(at([e]), (t) => Eo(t) === "br" ? pi(t).map((o) => [e].concat(fd(o))).getOr([]) : [e].concat(fd(t))), jc = (e, t) => Fr(Lo(t), ma(t), (o, s) => {
|
|
20349
20349
|
const i = qn(dd(e), De(So, o)), d = qn(fd(e), De(So, s));
|
|
20350
20350
|
return i.isSome() && d.isSome();
|
|
20351
20351
|
}).getOr(!1), Hr = (e, t, o, s) => {
|
|
@@ -20454,7 +20454,7 @@ Required: ` + t.join(", "));
|
|
|
20454
20454
|
const g = i(d);
|
|
20455
20455
|
return w2(e, o, (C) => {
|
|
20456
20456
|
const S = i(C);
|
|
20457
|
-
return
|
|
20457
|
+
return _i(g, S);
|
|
20458
20458
|
});
|
|
20459
20459
|
});
|
|
20460
20460
|
}, tf = (e) => ls(e, "block"), J5 = (e) => tf(e) && e.wrapper === !0, CC = (e) => tf(e) && e.wrapper !== !0, Gc = (e) => ls(e, "selector"), Ta = (e) => ls(e, "inline"), S2 = (e) => Gc(e) && Ta(e) && Fl(Jo(e, "mixed"), !0), Ep = (e) => Gc(e) && e.expand !== !1 && !Ta(e), Q5 = (e) => {
|
|
@@ -21656,7 +21656,7 @@ Required: ` + t.join(", "));
|
|
|
21656
21656
|
}), y9 = (e) => OC(e).nextNode() !== null, C9 = (e) => BC(e).nextNode() !== null, E9 = (e, t) => t.querySelector(YT(e)) !== null, w9 = (e, t) => {
|
|
21657
21657
|
Ue(p_(e, t), (o) => {
|
|
21658
21658
|
const s = Oe.fromDom(o);
|
|
21659
|
-
|
|
21659
|
+
Ri(s, "data-mce-bogus") === "all" ? O(s) : Ue(e, (i) => {
|
|
21660
21660
|
Ws(s, i) && rr(s, i);
|
|
21661
21661
|
});
|
|
21662
21662
|
});
|
|
@@ -21686,7 +21686,7 @@ Required: ` + t.join(", "));
|
|
|
21686
21686
|
}, JT = (e) => {
|
|
21687
21687
|
const t = bo(e, "[data-mce-bogus]");
|
|
21688
21688
|
Ue(t, (o) => {
|
|
21689
|
-
|
|
21689
|
+
Ri(o, "data-mce-bogus") === "all" ? O(o) : vc(o) ? (Qa(o, Oe.fromText(di)), O(o)) : Z(o);
|
|
21690
21690
|
});
|
|
21691
21691
|
}, gA = (e) => {
|
|
21692
21692
|
const t = bo(e, "input");
|
|
@@ -21993,11 +21993,11 @@ Required: ` + t.join(", "));
|
|
|
21993
21993
|
}, O2 = (e, t, o) => i2(t).exists(vc) || E_(!0, e, t, o).isSome(), ih = (e, t, o) => _T(t).exists(vc) || E_(!1, e, t, o).isSome(), cD = De(E_, !1), B2 = De(E_, !0), os = (e) => lt.isTextPosition(e) && !e.isAtStart() && !e.isAtEnd(), R2 = (e, t, o) => {
|
|
21994
21994
|
const s = Qe(Op(Oe.fromDom(t.container()), e), (i) => o.isBlock(Eo(i)));
|
|
21995
21995
|
return on(s).getOr(e);
|
|
21996
|
-
}, wA = (e, t, o) => os(t) ? b_(t) : b_(t) ||
|
|
21996
|
+
}, wA = (e, t, o) => os(t) ? b_(t) : b_(t) || Mi(R2(e, t, o).dom, t).exists(b_), _A = (e, t, o) => os(t) ? v_(t) : v_(t) || fa(R2(e, t, o).dom, t).exists(v_), w_ = (e) => Ye(["pre", "pre-wrap"], e), MC = (e) => i2(e).bind((t) => mr(t, wr)).exists((t) => w_(ic(t, "white-space"))), SA = (e, t) => Mi(e.dom, t).isNone(), AA = (e, t) => fa(e.dom, t).isNone(), kA = (e, t, o) => SA(e, t) || AA(e, t) || EA(e, t, o) || lD(e, t, o) || ih(e, t, o) || O2(e, t, o), __ = (e) => we(e) && Ns(e) && Wg(e), S_ = (e, t) => (o) => __(new tr(o, e)[t]()), uD = (e, t) => {
|
|
21997
21997
|
const o = fa(e.dom, t).getOr(t), s = S_(e.dom, "next");
|
|
21998
21998
|
return t.isAtEnd() && (s(t.container()) || s(o.container()));
|
|
21999
21999
|
}, dD = (e, t) => {
|
|
22000
|
-
const o =
|
|
22000
|
+
const o = Mi(e.dom, t).getOr(t), s = S_(e.dom, "prev");
|
|
22001
22001
|
return t.isAtStart() && (s(t.container()) || s(o.container()));
|
|
22002
22002
|
}, TA = (e, t, o) => MC(t) ? !1 : kA(e, t, o) || wA(e, t, o) || _A(e, t, o), N2 = (e, t, o) => MC(t) ? !1 : EA(e, t, o) || N9(e, t, o) || ih(e, t, o) || wA(e, t, o) || dD(e, t), fD = (e) => {
|
|
22003
22003
|
const t = e.container(), o = e.offset();
|
|
@@ -22051,14 +22051,14 @@ Required: ` + t.join(", "));
|
|
|
22051
22051
|
}, bD = (e, t) => {
|
|
22052
22052
|
const o = e.container(), s = e.offset();
|
|
22053
22053
|
return !lt.isTextPosition(e) && o === t.parentNode && s > lt.before(t).offset();
|
|
22054
|
-
}, xD = (e, t) => bD(t, e) ? lt(t.container(), t.offset() - 1) : t, yD = (e) => Tt(e) ? lt(e, 0) : lt.before(e), CD = (e) => Tt(e) ? lt(e, e.data.length) : lt.after(e), O_ = (e) => rd(e.previousSibling) ? W.some(CD(e.previousSibling)) : e.previousSibling ?
|
|
22054
|
+
}, xD = (e, t) => bD(t, e) ? lt(t.container(), t.offset() - 1) : t, yD = (e) => Tt(e) ? lt(e, 0) : lt.before(e), CD = (e) => Tt(e) ? lt(e, e.data.length) : lt.after(e), O_ = (e) => rd(e.previousSibling) ? W.some(CD(e.previousSibling)) : e.previousSibling ? Ii(e.previousSibling) : W.none(), BA = (e) => rd(e.nextSibling) ? W.some(yD(e.nextSibling)) : e.nextSibling ? qa(e.nextSibling) : W.none(), ED = (e, t) => W.from(t.previousSibling ? t.previousSibling : t.parentNode).bind((o) => Mi(e, lt.before(o))).orThunk(() => fa(e, lt.after(t))), wD = (e, t) => fa(e, lt.after(t)).orThunk(() => Mi(e, lt.before(t))), _D = (e, t) => O_(t).orThunk(() => BA(t)).orThunk(() => ED(e, t)), SD = (e, t) => BA(t).orThunk(() => O_(t)).orThunk(() => wD(e, t)), AD = (e, t, o) => e ? SD(t, o) : _D(t, o), kD = (e, t, o) => AD(e, t, o).map(De(xD, o)), B_ = (e, t, o) => {
|
|
22055
22055
|
o.fold(() => {
|
|
22056
22056
|
e.focus();
|
|
22057
22057
|
}, (s) => {
|
|
22058
22058
|
e.selection.setRng(s.toRange(), t);
|
|
22059
22059
|
});
|
|
22060
22060
|
}, R_ = (e) => (t) => t.dom === e, TD = (e, t) => t && Nn(e.schema.getBlockElements(), Eo(t)), DD = (e, t, o) => {
|
|
22061
|
-
if (
|
|
22061
|
+
if (Li(e, t)) {
|
|
22062
22062
|
const s = Oe.fromHtml('<br data-mce-bogus="1">');
|
|
22063
22063
|
return o ? Ue(Ma(t), (i) => {
|
|
22064
22064
|
EC(i) || O(i);
|
|
@@ -22097,17 +22097,17 @@ Required: ` + t.join(", "));
|
|
|
22097
22097
|
e.execCommand("delete");
|
|
22098
22098
|
}, tm = (e) => PA(e, "Delete"), ch = (e) => PA(e, "ForwardDelete"), FD = (e) => (t) => Fl(cs(t), e, So), LD = (e) => Cg(e) || jd(e), L_ = (e, t) => Fc(e, t) ? mr(t, LD, FD(e)) : W.none(), MA = (e, t = !0) => {
|
|
22099
22099
|
e.dom.isEmpty(e.getBody()) && e.setContent("", { no_selection: !t });
|
|
22100
|
-
}, PD = (e, t, o) => Fr(qa(o),
|
|
22100
|
+
}, PD = (e, t, o) => Fr(qa(o), Ii(o), (s, i) => {
|
|
22101
22101
|
const d = hd(!0, s), g = hd(!1, i), C = hd(!1, t);
|
|
22102
|
-
return e ? fa(o, C).exists((S) => S.isEqual(g) && t.isEqual(d)) :
|
|
22102
|
+
return e ? fa(o, C).exists((S) => S.isEqual(g) && t.isEqual(d)) : Mi(o, C).exists((S) => S.isEqual(d) && t.isEqual(g));
|
|
22103
22103
|
}).getOr(!0), _c = (e) => (Ss(e) ? pi(e) : qs(e)).bind(_c).orThunk(() => W.some(e)), vd = (e, t, o, s = !0) => {
|
|
22104
22104
|
var i;
|
|
22105
22105
|
t.deleteContents();
|
|
22106
22106
|
const d = _c(o).getOr(o), g = Oe.fromDom((i = e.dom.getParent(d.dom, e.dom.isBlock)) !== null && i !== void 0 ? i : o.dom);
|
|
22107
|
-
if (g.dom === e.getBody() ? MA(e, s) :
|
|
22107
|
+
if (g.dom === e.getBody() ? MA(e, s) : Li(e.schema, g, { checkRootAsContent: !1 }) && (od(g), s && e.selection.setCursorLocation(g.dom, 0)), !So(o, g)) {
|
|
22108
22108
|
const C = Fl(cs(g), o) ? [] : zl(g);
|
|
22109
22109
|
Ue(C.concat(Ma(o)), (S) => {
|
|
22110
|
-
!So(S, g) && !Fc(S, g) &&
|
|
22110
|
+
!So(S, g) && !Fc(S, g) && Li(e.schema, S) && O(S);
|
|
22111
22111
|
});
|
|
22112
22112
|
}
|
|
22113
22113
|
}, MD = (e) => (t) => So(e, t), zC = (e) => bo(e, "td,th"), P_ = (e, t) => bi(Oe.fromDom(e), t), M_ = (e) => Fr(e.startTable, e.endTable, (t, o) => {
|
|
@@ -22203,19 +22203,19 @@ Required: ` + t.join(", "));
|
|
|
22203
22203
|
s ? (i.setStart(o.startContainer, o.startOffset), i.setEndAfter(t.dom.lastChild)) : (i.setStartBefore(t.dom.firstChild), i.setEnd(o.endContainer, o.endOffset)), H_(e, i, t, !1).each((d) => d());
|
|
22204
22204
|
}, UA = (e) => {
|
|
22205
22205
|
const t = ud(e), o = Oe.fromDom(e.selection.getNode());
|
|
22206
|
-
Vd(o.dom) &&
|
|
22206
|
+
Vd(o.dom) && Li(e.schema, o) ? e.selection.setCursorLocation(o.dom, 0) : e.selection.collapse(!0), t.length > 1 && yt(t, (s) => So(s, o)) && ra(o, "data-mce-selected", "1");
|
|
22207
22207
|
}, WA = (e, t, o) => W.some(() => {
|
|
22208
22208
|
const s = e.selection.getRng(), i = o.bind(({ rng: d, isStartInTable: g }) => {
|
|
22209
22209
|
const C = z9(e, g ? d.endContainer : d.startContainer);
|
|
22210
|
-
d.deleteContents(), $A(e, g, C.filter(De(
|
|
22210
|
+
d.deleteContents(), $A(e, g, C.filter(De(Li, e.schema)));
|
|
22211
22211
|
const S = g ? t[0] : t[t.length - 1];
|
|
22212
|
-
return VA(e, S, s, g),
|
|
22212
|
+
return VA(e, S, s, g), Li(e.schema, S) ? W.none() : W.some(g ? t.slice(1) : t.slice(0, -1));
|
|
22213
22213
|
}).getOr(t);
|
|
22214
22214
|
I_(i), UA(e);
|
|
22215
22215
|
}), ZA = (e, t, o, s) => W.some(() => {
|
|
22216
22216
|
const i = e.selection.getRng(), d = t[0], g = o[o.length - 1];
|
|
22217
22217
|
VA(e, d, i, !0), VA(e, g, i, !1);
|
|
22218
|
-
const C =
|
|
22218
|
+
const C = Li(e.schema, d) ? t : t.slice(1), S = Li(e.schema, g) ? o : o.slice(0, -1);
|
|
22219
22219
|
I_(C.concat(S)), s.deleteContents(), UA(e);
|
|
22220
22220
|
}), H_ = (e, t, o, s = !0) => W.some(() => {
|
|
22221
22221
|
vd(e, t, o, s);
|
|
@@ -22227,15 +22227,15 @@ Required: ` + t.join(", "));
|
|
|
22227
22227
|
_u(o, e.getBody(), i).bind((d) => zD(t, Oe.fromDom(d.getNode())).bind((g) => So(g, s) ? W.none() : W.some(vt)))
|
|
22228
22228
|
), V_ = (e, t) => W.some(() => {
|
|
22229
22229
|
od(t), e.selection.setCursorLocation(t.dom, 0);
|
|
22230
|
-
}), $D = (e, t, o, s) => qa(e.dom).bind((i) =>
|
|
22230
|
+
}), $D = (e, t, o, s) => qa(e.dom).bind((i) => Ii(e.dom).map((d) => t ? o.isEqual(i) && s.isEqual(d) : o.isEqual(d) && s.isEqual(i))).getOr(!0), j9 = (e, t) => V_(e, t), VD = (e, t, o) => (
|
|
22231
22231
|
// TODO: TINY-8865 - This may not be safe to cast as Node below and alternative solutions need to be looked into
|
|
22232
22232
|
$_(e, Oe.fromDom(o.getNode())).fold(() => W.some(vt), (s) => ci(!So(s, t), vt))
|
|
22233
22233
|
), q9 = (e, t, o, s, i) => _u(o, e.getBody(), i).fold(() => W.some(vt), (d) => $D(s, o, i, d) ? j9(e, s) : VD(t, s, d)), G9 = (e, t, o, s) => {
|
|
22234
22234
|
const i = lt.fromRangeStart(e.selection.getRng());
|
|
22235
|
-
return zD(o, s).bind((d) =>
|
|
22235
|
+
return zD(o, s).bind((d) => Li(e.schema, d, { checkRootAsContent: !1 }) ? V_(e, d) : Z9(e, o, t, d, i));
|
|
22236
22236
|
}, UD = (e, t, o, s) => {
|
|
22237
22237
|
const i = lt.fromRangeStart(e.selection.getRng());
|
|
22238
|
-
return
|
|
22238
|
+
return Li(e.schema, s) ? V_(e, s) : q9(e, o, t, s, i);
|
|
22239
22239
|
}, Su = (e, t) => e ? aD(t) : xA(t), K9 = (e, t) => {
|
|
22240
22240
|
const o = lt.fromRangeStart(e.selection.getRng());
|
|
22241
22241
|
return Su(t, o) || ja(t, e.getBody(), o).exists((s) => Su(t, s));
|
|
@@ -22880,7 +22880,7 @@ Required: ` + t.join(", "));
|
|
|
22880
22880
|
const f7 = ["fontWeight", "fontStyle", "color", "fontSize", "fontFamily"], EL = (e) => z(e.styles) && yt(ea(e.styles), (t) => Ye(f7, t)), wL = (e) => qn(e, (t) => Ta(t) && t.inline === "span" && EL(t)), m7 = (e, t) => {
|
|
22881
22881
|
const o = e.get(t);
|
|
22882
22882
|
return de(o) ? wL(o) : W.none();
|
|
22883
|
-
}, p7 = (e, t) =>
|
|
22883
|
+
}, p7 = (e, t) => Mi(t, lt.fromRangeStart(e)).isNone(), g7 = (e, t) => fa(t, lt.fromRangeEnd(e)).exists((o) => !nr(o.getNode()) || fa(t, o).isSome()) === !1, h7 = (e) => (t) => s4(t) && e.isEditable(t), _L = (e) => {
|
|
22884
22884
|
const t = e.getSelectedBlocks(), o = e.getRng();
|
|
22885
22885
|
if (e.isCollapsed())
|
|
22886
22886
|
return [];
|
|
@@ -24306,7 +24306,7 @@ Required: ` + t.join(", "));
|
|
|
24306
24306
|
}
|
|
24307
24307
|
if (e.nodeType !== ul || j === "body")
|
|
24308
24308
|
return;
|
|
24309
|
-
const J = Oe.fromDom(e), ue = Ws(J, d3), xe =
|
|
24309
|
+
const J = Oe.fromDom(e), ue = Ws(J, d3), xe = Ri(J, "data-mce-bogus");
|
|
24310
24310
|
if (!ue && q(xe)) {
|
|
24311
24311
|
xe === "all" ? O(J) : Z(J);
|
|
24312
24312
|
return;
|
|
@@ -24433,7 +24433,7 @@ Required: ` + t.join(", "));
|
|
|
24433
24433
|
U.attr(xe.name, xe.value);
|
|
24434
24434
|
}
|
|
24435
24435
|
Pm(U.name) && (s(B), U.value = B.innerHTML);
|
|
24436
|
-
} else Tt(B) ? (U.value = B.data, d && (U.raw = !0)) : (mc(B) || ko(B) ||
|
|
24436
|
+
} else Tt(B) ? (U.value = B.data, d && (U.raw = !0)) : (mc(B) || ko(B) || Fi(B)) && (U.value = B.data);
|
|
24437
24437
|
Pm(U.name) || Ac(U, B, o, s), e.append(U);
|
|
24438
24438
|
}
|
|
24439
24439
|
}, Cv = (e, t, o) => {
|
|
@@ -26993,7 +26993,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
26993
26993
|
}, vM = (e) => Ns(e.from.block.dom) === !1 && Ns(e.to.block.dom) === !1, bM = (e) => {
|
|
26994
26994
|
const t = (o) => Cg(o) || f1(o.dom) || jd(o);
|
|
26995
26995
|
return t(e.from.block) && t(e.to.block);
|
|
26996
|
-
}, cR = (e, t, o, s) => nr(s.position.getNode()) && !
|
|
26996
|
+
}, cR = (e, t, o, s) => nr(s.position.getNode()) && !Li(e, s.block) ? Yf(!1, s.block.dom).bind((i) => i.isEqual(s.position) ? ja(o, t, i).bind((d) => M6(t, d)) : W.some(s)).getOr(s) : s, xM = (e, t, o, s) => {
|
|
26997
26997
|
const i = M6(t, lt.fromRangeStart(s)), d = i.bind((g) => ja(o, t, g.position).bind((C) => M6(t, C).map((S) => cR(e, t, o, S))));
|
|
26998
26998
|
return Fr(i, d, M3).filter((g) => hM(g) && lR(t, g) && vM(g) && bM(g) && I6(g));
|
|
26999
26999
|
}, uR = (e, t, o, s) => s.collapsed ? xM(e, t, o, s) : W.none(), dR = (e, t) => {
|
|
@@ -27004,27 +27004,27 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27004
27004
|
return Ue(o, O), o;
|
|
27005
27005
|
}, H6 = (e, t, o) => {
|
|
27006
27006
|
const s = Op(o, t);
|
|
27007
|
-
return qn(s.reverse(), (i) =>
|
|
27008
|
-
}, z6 = (e, t) => Qe(eo(t), (o) => !
|
|
27009
|
-
if (
|
|
27007
|
+
return qn(s.reverse(), (i) => Li(e, i)).each(O);
|
|
27008
|
+
}, z6 = (e, t) => Qe(eo(t), (o) => !Li(e, o)).length === 0, fR = (e, t, o, s, i) => {
|
|
27009
|
+
if (Li(s, o))
|
|
27010
27010
|
return od(o), qa(o.dom);
|
|
27011
|
-
z6(s, i) &&
|
|
27012
|
-
const d =
|
|
27011
|
+
z6(s, i) && Li(s, t) && Qa(i, Oe.fromTag("br"));
|
|
27012
|
+
const d = Mi(o.dom, lt.before(i.dom));
|
|
27013
27013
|
return Ue(I3(t, s), (g) => {
|
|
27014
27014
|
Qa(i, g);
|
|
27015
27015
|
}), H6(s, e, t), d;
|
|
27016
27016
|
}, yM = (e, t) => e.isInline(Eo(t)), mR = (e, t, o, s) => {
|
|
27017
|
-
if (
|
|
27018
|
-
if (
|
|
27017
|
+
if (Li(s, o)) {
|
|
27018
|
+
if (Li(s, t)) {
|
|
27019
27019
|
const g = cn(((C) => {
|
|
27020
|
-
const S = (B, U) =>
|
|
27020
|
+
const S = (B, U) => Bi(B).fold(() => U, (j) => yM(s, j) ? S(j, U.concat(ke(j))) : U);
|
|
27021
27021
|
return S(C, []);
|
|
27022
27022
|
})(o), (C, S) => (Gv(C, S), S), jm());
|
|
27023
27023
|
qi(t), _r(t, g);
|
|
27024
27024
|
}
|
|
27025
27025
|
return O(o), qa(t.dom);
|
|
27026
27026
|
}
|
|
27027
|
-
const i =
|
|
27027
|
+
const i = Ii(o.dom);
|
|
27028
27028
|
return Ue(I3(t, s), (d) => {
|
|
27029
27029
|
_r(o, d);
|
|
27030
27030
|
}), H6(s, e, t), i;
|
|
@@ -27051,7 +27051,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27051
27051
|
const o = Oe.fromDom(t), s = De(So, e);
|
|
27052
27052
|
return ir(o, Eg, s).isSome();
|
|
27053
27053
|
}, nx = (e, t) => tx(e, t.startContainer) || tx(e, t.endContainer), V6 = (e, t) => {
|
|
27054
|
-
const o =
|
|
27054
|
+
const o = Mi(e.dom, lt.fromRangeStart(t)).isNone(), s = fa(e.dom, lt.fromRangeEnd(t)).isNone();
|
|
27055
27055
|
return !nx(e, t) && o && s;
|
|
27056
27056
|
}, gR = (e) => W.some(() => {
|
|
27057
27057
|
e.setContent(""), e.selection.setCursorLocation();
|
|
@@ -27097,7 +27097,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27097
27097
|
return U && g(U) && c2(B, U) ? W.some(() => Z6(e, o, C.getNode(), s, t, U)) : W.none();
|
|
27098
27098
|
}, U3 = (e, t) => xR(e, t), sx = (e, t) => {
|
|
27099
27099
|
const o = e.getBody();
|
|
27100
|
-
return t ? qa(o).filter(Dp) :
|
|
27100
|
+
return t ? qa(o).filter(Dp) : Ii(o).filter(rh);
|
|
27101
27101
|
}, W3 = (e) => {
|
|
27102
27102
|
const t = e.selection.getRng();
|
|
27103
27103
|
return !t.collapsed && (sx(e, !0).exists((o) => o.isEqual(lt.fromRangeStart(t))) || sx(e, !1).exists((o) => o.isEqual(lt.fromRangeEnd(t))));
|
|
@@ -27113,7 +27113,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27113
27113
|
return Hw(!t, o).fold(() => Hw(t, s).fold(Xt, d), d);
|
|
27114
27114
|
}, CR = (e, t, o, s, i) => {
|
|
27115
27115
|
const d = i.getNode(!o);
|
|
27116
|
-
return L_(Oe.fromDom(t), Oe.fromDom(s.getNode())).map((g) =>
|
|
27116
|
+
return L_(Oe.fromDom(t), Oe.fromDom(s.getNode())).map((g) => Li(e, g) ? Tu.remove(g.dom) : Tu.moveToElement(d)).orThunk(() => W.some(Tu.moveToElement(d)));
|
|
27117
27117
|
}, j6 = (e, t, o, s) => ja(t, e, o).bind((i) => yR(i.getNode()) || wM(e, t, o, i, s) ? W.none() : t && Ns(i.getNode()) || !t && Ns(i.getNode(!0)) ? CR(s, e, t, o, i) : t && rh(o) || !t && Dp(o) ? W.some(Tu.moveToPosition(i)) : W.none()), ER = (e, t) => Me(t) ? W.none() : e && Ns(t.nextSibling) ? W.some(Tu.moveToElement(t.nextSibling)) : !e && Ns(t.previousSibling) ? W.some(Tu.moveToElement(t.previousSibling)) : W.none(), wR = (e, t, o) => o.fold((s) => W.some(Tu.remove(s)), (s) => W.some(Tu.moveToElement(s)), (s) => ld(t, s, e) ? W.none() : W.some(Tu.moveToPosition(s))), _M = (e, t, o, s) => EM(t, o) ? ER(t, o.getNode(!t)).orThunk(() => j6(e, t, o, s)) : j6(e, t, o, s).bind((i) => wR(e, o, i)), yE = (e, t, o, s) => {
|
|
27118
27118
|
const i = wu(t ? 1 : -1, e, o), d = lt.fromRangeStart(i), g = Oe.fromDom(e);
|
|
27119
27119
|
return !t && rh(d) ? W.some(Tu.remove(d.getNode(!0))) : t && Dp(d) ? W.some(Tu.remove(d.getNode())) : !t && Dp(d) && ih(g, d, s) ? cD(g, d, s).map((C) => Tu.remove(C.getNode())) : t && rh(d) && O2(g, d, s) ? B2(g, d, s).map((C) => Tu.remove(C.getNode())) : _M(e, t, d, s);
|
|
@@ -27213,7 +27213,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27213
27213
|
})
|
|
27214
27214
|
), (o) => (
|
|
27215
27215
|
// End
|
|
27216
|
-
|
|
27216
|
+
Ii(o).map((s) => {
|
|
27217
27217
|
if (X3(s, e)) {
|
|
27218
27218
|
const i = e.get();
|
|
27219
27219
|
return lt(i, i.length - 1);
|
|
@@ -27247,13 +27247,13 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27247
27247
|
return gd(e, i, s).fold(() => fa(i, s).bind(De(gd, e, i)).map((d) => Bl.before(d)), W.none);
|
|
27248
27248
|
}, RM = (e, t) => Qd(e, t) === null, Q3 = (e, t, o) => gd(e, t, o).filter(De(RM, t)), NM = (e, t, o) => {
|
|
27249
27249
|
const s = LA(o);
|
|
27250
|
-
return Q3(e, t, s).bind((i) =>
|
|
27250
|
+
return Q3(e, t, s).bind((i) => Mi(i, s).isNone() ? W.some(Bl.start(i)) : W.none());
|
|
27251
27251
|
}, nk = (e, t, o) => {
|
|
27252
27252
|
const s = RD(o);
|
|
27253
27253
|
return Q3(e, t, s).bind((i) => fa(i, s).isNone() ? W.some(Bl.end(i)) : W.none());
|
|
27254
27254
|
}, FM = (e, t, o) => {
|
|
27255
27255
|
const s = LA(o), i = tk(t, s.container());
|
|
27256
|
-
return gd(e, i, s).fold(() =>
|
|
27256
|
+
return gd(e, i, s).fold(() => Mi(i, s).bind(De(gd, e, i)).map((d) => Bl.after(d)), W.none);
|
|
27257
27257
|
}, ok = (e) => !F_(sk(e)), d0 = (e, t, o) => ek([
|
|
27258
27258
|
BM,
|
|
27259
27259
|
NM,
|
|
@@ -27356,7 +27356,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27356
27356
|
}).getOr([]), lk = (e, t) => vn(e, (o, s) => o.fold(() => W.some(s), (i) => Fr(on(i.getClientRects()), on(s.getClientRects()), (d, g) => {
|
|
27357
27357
|
const C = Math.abs(t - d.left);
|
|
27358
27358
|
return Math.abs(t - g.left) <= C ? s : i;
|
|
27359
|
-
}).or(o)), W.none()), nS = (e, t) => on(t.getClientRects()).bind((o) => lk(e, o.left)), ix = De(NR, lt.isAbove, -1), kv = De(NR, lt.isBelow, 1), ck = De(FR, -1, ix), uk = De(FR, 1, kv), dk = (e, t) => ix(e, t).breakAt.isNone(), fk = (e, t) => kv(e, t).breakAt.isNone(), HM = (e) => qa(e).map((t) => [t].concat(kv(e, t).positions)).getOr([]), LR = (e) =>
|
|
27359
|
+
}).or(o)), W.none()), nS = (e, t) => on(t.getClientRects()).bind((o) => lk(e, o.left)), ix = De(NR, lt.isAbove, -1), kv = De(NR, lt.isBelow, 1), ck = De(FR, -1, ix), uk = De(FR, 1, kv), dk = (e, t) => ix(e, t).breakAt.isNone(), fk = (e, t) => kv(e, t).breakAt.isNone(), HM = (e) => qa(e).map((t) => [t].concat(kv(e, t).positions)).getOr([]), LR = (e) => Ii(e).map((t) => ix(e, t).positions.concat(t)).getOr([]), PR = (e, t) => nS(ck(e, t), t), MR = (e, t) => nS(uk(e, t), t), zM = Ns, IR = (e, t) => Math.abs(e.left - t), f0 = (e, t) => Math.abs(e.right - t), HR = (e) => ls(e, "node"), EE = (e, t) => vm(e, (o, s) => {
|
|
27360
27360
|
const i = Math.min(IR(o, t), f0(o, t)), d = Math.min(IR(s, t), f0(s, t));
|
|
27361
27361
|
return d === i && HR(s) && zM(s.node) || d < i ? s : o;
|
|
27362
27362
|
}), $M = (e) => {
|
|
@@ -27389,18 +27389,18 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27389
27389
|
for (let ue = 0; ue < J.length; ue++) {
|
|
27390
27390
|
const xe = J[ue];
|
|
27391
27391
|
if (!o(xe, B)) {
|
|
27392
|
-
if (C.length > 0 && t(xe,
|
|
27392
|
+
if (C.length > 0 && t(xe, Ti(C)) && g++, xe.line = g, i(xe))
|
|
27393
27393
|
return !0;
|
|
27394
27394
|
C.push(xe);
|
|
27395
27395
|
}
|
|
27396
27396
|
}
|
|
27397
27397
|
return !1;
|
|
27398
|
-
}, B =
|
|
27398
|
+
}, B = Ti(d.getClientRects());
|
|
27399
27399
|
if (!B)
|
|
27400
27400
|
return C;
|
|
27401
27401
|
const U = d.getNode();
|
|
27402
27402
|
return U && (S(U), zR(e, s, S, U)), C;
|
|
27403
|
-
}, VR = (e, t) => t.line > e, oS = (e, t) => t.line === e, pk = De($R, Tv.Up, Zf, D1), UR = De($R, Tv.Down, D1, Zf), gk = (e) =>
|
|
27403
|
+
}, VR = (e, t) => t.line > e, oS = (e, t) => t.line === e, pk = De($R, Tv.Up, Zf, D1), UR = De($R, Tv.Down, D1, Zf), gk = (e) => Ti(e.getClientRects()), VM = (e, t, o, s) => {
|
|
27404
27404
|
const i = cd(t);
|
|
27405
27405
|
let d, g, C, S;
|
|
27406
27406
|
const B = [];
|
|
@@ -27413,7 +27413,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27413
27413
|
const J = gk(S);
|
|
27414
27414
|
if (C(J, j))
|
|
27415
27415
|
continue;
|
|
27416
|
-
B.length > 0 && g(J,
|
|
27416
|
+
B.length > 0 && g(J, Ti(B)) && U++;
|
|
27417
27417
|
const ue = Wf(J);
|
|
27418
27418
|
if (ue.position = S, ue.line = U, o(ue))
|
|
27419
27419
|
return B;
|
|
@@ -27450,7 +27450,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27450
27450
|
const ue = S(j);
|
|
27451
27451
|
return ue && B(ue) && c2(j, ue) ? u0(t, e, ue.getNode(!g), g, !1) : J ? sS(e, j.toRange(), !1) : W.none();
|
|
27452
27452
|
}, xk = (e, t, o, s, i, d) => {
|
|
27453
|
-
const g = jg(t, e.getBody(), o), C =
|
|
27453
|
+
const g = jg(t, e.getBody(), o), C = Ti(g.getClientRects()), S = t === Tv.Down, B = e.getBody();
|
|
27454
27454
|
if (!C)
|
|
27455
27455
|
return W.none();
|
|
27456
27456
|
if (W3(e)) {
|
|
@@ -27466,7 +27466,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27466
27466
|
if (s(g) ? he = g.getNode() : i(g) ? he = g.getNode(!0) : he = kg(o), he) {
|
|
27467
27467
|
const Ae = VM(t, B, hk(1), he);
|
|
27468
27468
|
let Ne = EE(Qe(Ae, vk(1)), ue);
|
|
27469
|
-
if (Ne || (Ne =
|
|
27469
|
+
if (Ne || (Ne = Ti(Qe(Ae, vk(0))), Ne))
|
|
27470
27470
|
return sS(e, Ne.position.toRange(), !1);
|
|
27471
27471
|
}
|
|
27472
27472
|
return J.length === 0 ? rS(e, S).filter(S ? i : s).map((Ae) => V3(e, Ae.toRange(), !1)) : W.none();
|
|
@@ -27490,7 +27490,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27490
27490
|
return s;
|
|
27491
27491
|
{
|
|
27492
27492
|
const i = lt.fromRangeEnd(e);
|
|
27493
|
-
return o ?
|
|
27493
|
+
return o ? Mi(t, i).getOr(i) : fa(t, s).getOr(s);
|
|
27494
27494
|
}
|
|
27495
27495
|
}, ZR = (e, t, o) => {
|
|
27496
27496
|
const s = e.getBody(), i = WR(e.selection.getRng(), s, o), d = De(cf, e);
|
|
@@ -27532,7 +27532,7 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27532
27532
|
}, wk = (e, t) => {
|
|
27533
27533
|
const o = document.createRange();
|
|
27534
27534
|
return o.setStart(e.container(), e.offset()), o.setEnd(t.container(), t.offset()), o;
|
|
27535
|
-
}, XR = (e) => Fr(qa(e),
|
|
27535
|
+
}, XR = (e) => Fr(qa(e), Ii(e), (t, o) => {
|
|
27536
27536
|
const s = hd(!0, t), i = hd(!1, o);
|
|
27537
27537
|
return fa(e, s).forall((d) => d.isEqual(i));
|
|
27538
27538
|
}).getOr(!0), _k = (e, t) => (o) => J3(t, o).map((s) => () => lx(e, s)), Sk = (e, t, o, s) => {
|
|
@@ -27916,12 +27916,12 @@ Options:${g}${o.join(g)}` : "";
|
|
|
27916
27916
|
}, Fs = (e, t) => Mk(e, t).bind((o) => {
|
|
27917
27917
|
const s = uN(o);
|
|
27918
27918
|
return ht(s, (d) => So(e, d)).map((d) => ({ index: d, all: s }));
|
|
27919
|
-
}), cr = (e, t, o) => Fs(e, o).fold(() => Jn.none(e), (i) => Pn(i.all, e, i.index, 1, t)), Cs = (e, t, o) => Fs(e, o).fold(() => Jn.none(), (i) => Pn(i.all, e, i.index, -1, t)),
|
|
27919
|
+
}), cr = (e, t, o) => Fs(e, o).fold(() => Jn.none(e), (i) => Pn(i.all, e, i.index, 1, t)), Cs = (e, t, o) => Fs(e, o).fold(() => Jn.none(), (i) => Pn(i.all, e, i.index, -1, t)), Hi = qr("image"), Up = (e) => {
|
|
27920
27920
|
const t = e;
|
|
27921
|
-
return W.from(t[
|
|
27921
|
+
return W.from(t[Hi]);
|
|
27922
27922
|
}, h0 = (e, t) => {
|
|
27923
27923
|
const o = e;
|
|
27924
|
-
o[
|
|
27924
|
+
o[Hi] = t;
|
|
27925
27925
|
}, ol = qr("event"), YM = (e) => {
|
|
27926
27926
|
const t = e;
|
|
27927
27927
|
return W.from(t[ol]);
|
|
@@ -28414,7 +28414,7 @@ Input object: ` + Pz(e.input), hN = MK, Zz = (e, t) => hN(e, e, FK(), t), jz = (
|
|
|
28414
28414
|
}, iY = (e) => {
|
|
28415
28415
|
const t = e.ui.registry.getAll().popups, o = xr(t, (g) => rY(g).fold((C) => {
|
|
28416
28416
|
throw new Error(KK(C));
|
|
28417
|
-
}, pn)), s = T0(
|
|
28417
|
+
}, pn)), s = T0(wi(o, (g) => g.trigger)), i = _d(o);
|
|
28418
28418
|
return {
|
|
28419
28419
|
dataset: o,
|
|
28420
28420
|
triggers: s,
|
|
@@ -28476,14 +28476,14 @@ Input object: ` + Pz(e.input), hN = MK, Zz = (e, t) => hN(e, e, FK(), t), jz = (
|
|
|
28476
28476
|
return W.some({ startSummary: i, startDetails: o, endDetails: s });
|
|
28477
28477
|
} else
|
|
28478
28478
|
return W.none();
|
|
28479
|
-
}, fY = (e, t) => qa(t).exists((o) => o.isEqual(e)), mY = (e, t) =>
|
|
28479
|
+
}, fY = (e, t) => qa(t).exists((o) => o.isEqual(e)), mY = (e, t) => Ii(t).exists((o) => nr(o.getNode()) && Mi(t, o).exists((s) => s.isEqual(e)) || o.isEqual(e)), pY = (e, t) => t.startSummary.exists((o) => fY(e, o)), gY = (e, t) => t.startSummary.exists((o) => mY(e, o)), hY = (e, t) => t.startDetails.exists((o) => Mi(o, e).forall((s) => t.startSummary.exists((i) => !i.contains(e.container()) && i.contains(s.container())))), vY = (e, t, o) => o.startDetails.exists((s) => fa(e, t).forall((i) => !s.contains(i.container()))), Qz = (e, t) => {
|
|
28480
28480
|
const o = t.getNode();
|
|
28481
28481
|
nt(o) || e.selection.setCursorLocation(o, t.offset());
|
|
28482
28482
|
}, e$ = (e, t, o) => {
|
|
28483
28483
|
const s = e.dom.getParent(t.container(), "details");
|
|
28484
28484
|
if (s && !s.open) {
|
|
28485
28485
|
const i = e.dom.select("summary", s)[0];
|
|
28486
|
-
i && (o ? qa(i) :
|
|
28486
|
+
i && (o ? qa(i) : Ii(i)).each((g) => Qz(e, g));
|
|
28487
28487
|
} else
|
|
28488
28488
|
Qz(e, t);
|
|
28489
28489
|
}, bY = (e, t) => {
|
|
@@ -28721,7 +28721,7 @@ Input object: ` + Pz(e.input), hN = MK, Zz = (e, t) => hN(e, e, FK(), t), jz = (
|
|
|
28721
28721
|
for (; s && !jt(s); )
|
|
28722
28722
|
s = s[o ? "nextSibling" : "previousSibling"];
|
|
28723
28723
|
return s === t;
|
|
28724
|
-
}, c$ = (e) => vn(
|
|
28724
|
+
}, c$ = (e) => vn(wi(U0(Oe.fromDom(e)), (t, o) => `${o}: ${t};`), (t, o) => t + o, ""), MY = (e, t, o, s, i) => {
|
|
28725
28725
|
const d = e.dom, g = e.selection.getRng(), C = o.parentNode;
|
|
28726
28726
|
if (o === e.getBody() || !C)
|
|
28727
28727
|
return;
|
|
@@ -29063,7 +29063,7 @@ Input object: ` + Pz(e.input), hN = MK, Zz = (e, t) => hN(e, e, FK(), t), jz = (
|
|
|
29063
29063
|
const d = Oe.fromText(e);
|
|
29064
29064
|
return t.isAtEnd() ? ei(i, d) : Qa(i, d), lt(d.dom, e.length);
|
|
29065
29065
|
});
|
|
29066
|
-
}, S$ = De(_$, Os), A$ = De(_$, " "), wX = (e, t, o) => TA(e, t, o) ? S$(t) : A$(t), _X = (e) => (t) => t.fold((o) =>
|
|
29066
|
+
}, S$ = De(_$, Os), A$ = De(_$, " "), wX = (e, t, o) => TA(e, t, o) ? S$(t) : A$(t), _X = (e) => (t) => t.fold((o) => Mi(e.dom, lt.before(o)), (o) => qa(o), (o) => Ii(o), (o) => fa(e.dom, lt.after(o))), SX = (e, t, o) => (s) => TA(e, s, o) ? S$(t) : A$(t), k$ = (e) => (t) => {
|
|
29067
29067
|
e.selection.setRng(t.toRange()), e.nodeChanged();
|
|
29068
29068
|
}, AX = (e, t) => e.isEditable(e.getParent(t, "summary")), kX = (e) => {
|
|
29069
29069
|
const t = lt.fromRangeStart(e.selection.getRng()), o = Oe.fromDom(e.getBody());
|
|
@@ -29177,7 +29177,7 @@ Input object: ` + Pz(e.input), hN = MK, Zz = (e, t) => hN(e, e, FK(), t), jz = (
|
|
|
29177
29177
|
}
|
|
29178
29178
|
const T$ = "x-tinymce/html", _N = at(T$), mI = "<!-- " + T$ + " -->", PX = (e) => mI + e, MX = (e) => e.replace(mI, ""), D$ = (e) => e.indexOf(mI) !== -1, IX = (e) => !/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e), HX = (e, t) => {
|
|
29179
29179
|
let o = "<" + e;
|
|
29180
|
-
const s =
|
|
29180
|
+
const s = wi(t, (i, d) => d + '="' + zm.encodeAllRaw(i) + '"');
|
|
29181
29181
|
return s.length && (o += " " + s.join(" ")), o + ">";
|
|
29182
29182
|
}, zX = (e, t, o) => {
|
|
29183
29183
|
const s = e.split(/\n\n/), i = HX(t, o), d = "</" + t + ">", g = Ct(s, (S) => S.split(/\n/).join("<br />")), C = (S) => i + S + d;
|
|
@@ -33802,7 +33802,7 @@ Required: ` + r.join(", "));
|
|
|
33802
33802
|
}, Mu = (n) => {
|
|
33803
33803
|
const r = () => a, a = { tag: !1, inner: n, fold: (u, p) => u(n), isValue: we, isError: fe, map: r, mapError: (u) => Qn.error(u(n)), bind: r, exists: we, forall: fe, getOr: ge, or: ge, getOrThunk: Me, orThunk: Me, getOrDie: nt(String(n)), each: X, toOptional: N.none };
|
|
33804
33804
|
return a;
|
|
33805
|
-
}, Qn = { value: Ef, error: Mu, fromOption: (n, r) => n.fold(() => Mu(r), Ef) },
|
|
33805
|
+
}, Qn = { value: Ef, error: Mu, fromOption: (n, r) => n.fold(() => Mu(r), Ef) }, wi = (n) => ({ ...n, toCached: () => wi(n.toCached()), bindFuture: (r) => wi(n.bind((a) => a.fold((u) => jr(Qn.error(u)), (u) => r(u)))), bindResult: (r) => wi(n.map((a) => a.bind(r))), mapResult: (r) => wi(n.map((a) => a.map(r))), mapError: (r) => wi(n.map((a) => a.mapError(r))), foldResult: (r, a) => n.map((u) => u.fold(r, a)), withTimeout: (r, a) => wi(sl((u) => {
|
|
33806
33806
|
let p = !1;
|
|
33807
33807
|
const h = setTimeout(() => {
|
|
33808
33808
|
p = !0, u(Qn.error(a()));
|
|
@@ -33810,14 +33810,14 @@ Required: ` + r.join(", "));
|
|
|
33810
33810
|
n.get((y) => {
|
|
33811
33811
|
p || (clearTimeout(h), u(y));
|
|
33812
33812
|
});
|
|
33813
|
-
})) }), _d = (n) =>
|
|
33813
|
+
})) }), _d = (n) => wi(sl(n)), Jo = typeof window < "u" ? window : Function("return this;")(), Nn = (n, r, a, u) => {
|
|
33814
33814
|
const p = n + r;
|
|
33815
33815
|
return p > u ? a : p < a ? u : p;
|
|
33816
33816
|
}, ls = (n, r, a) => Math.min(Math.max(n, r), a);
|
|
33817
|
-
let
|
|
33817
|
+
let _i = 0;
|
|
33818
33818
|
const Ht = (n) => {
|
|
33819
33819
|
const r = (/* @__PURE__ */ new Date()).getTime(), a = Math.floor(window.crypto.getRandomValues(new Uint32Array(1))[0] / 4294967295 * 1e9);
|
|
33820
|
-
return
|
|
33820
|
+
return _i++, n + "_" + a + _i + String(r);
|
|
33821
33821
|
}, li = (n) => (...r) => {
|
|
33822
33822
|
if (r.length === 0) throw new Error("Can't merge zero objects");
|
|
33823
33823
|
const a = {};
|
|
@@ -33826,13 +33826,13 @@ Required: ` + r.join(", "));
|
|
|
33826
33826
|
for (const h in p) ro(p, h) && (a[h] = n(a[h], p[h]));
|
|
33827
33827
|
}
|
|
33828
33828
|
return a;
|
|
33829
|
-
}, so = li((n, r) => M(n) && M(r) ? so(n, r) : r), mm = li((n, r) => r),
|
|
33829
|
+
}, so = li((n, r) => M(n) && M(r) ? so(n, r) : r), mm = li((n, r) => r), Si = (n, r, a = de) => n.exists((u) => a(u, r)), Sd = (n) => {
|
|
33830
33830
|
const r = [], a = (u) => {
|
|
33831
33831
|
r.push(u);
|
|
33832
33832
|
};
|
|
33833
33833
|
for (let u = 0; u < n.length; u++) n[u].each(a);
|
|
33834
33834
|
return r;
|
|
33835
|
-
}, yr = (n, r, a) => n.isSome() && r.isSome() ? N.some(a(n.getOrDie(), r.getOrDie())) : N.none(), Jp = (n, r) => n != null ? N.some(r(n)) : N.none(),
|
|
33835
|
+
}, yr = (n, r, a) => n.isSome() && r.isSome() ? N.some(a(n.getOrDie(), r.getOrDie())) : N.none(), Jp = (n, r) => n != null ? N.some(r(n)) : N.none(), Ai = (n, r) => n ? N.some(r) : N.none(), wf = (n, r) => ((a, u) => {
|
|
33836
33836
|
let p = u ?? Jo;
|
|
33837
33837
|
for (let h = 0; h < a.length && p != null; ++h) p = p[a[h]];
|
|
33838
33838
|
return p;
|
|
@@ -33916,7 +33916,7 @@ Required: ` + r.join(", "));
|
|
|
33916
33916
|
} });
|
|
33917
33917
|
var Sf;
|
|
33918
33918
|
Hu.ltr, Hu.rtl;
|
|
33919
|
-
const
|
|
33919
|
+
const ki = (n, r) => {
|
|
33920
33920
|
const a = n.dom;
|
|
33921
33921
|
if (a.nodeType !== 1) return !1;
|
|
33922
33922
|
{
|
|
@@ -33952,9 +33952,9 @@ Required: ` + r.join(", "));
|
|
|
33952
33952
|
}, Ad = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Cr = (n) => (r) => js(r, n), di = [{ name: "Edge", versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/], search: (n) => js(n, "edge/") && js(n, "chrome") && js(n, "safari") && js(n, "applewebkit") }, { name: "Chromium", brand: "Chromium", versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/, Ad], search: (n) => js(n, "chrome") && !js(n, "chromeframe") }, { name: "IE", versionRegexes: [/.*?msie\ ?([0-9]+)\.([0-9]+).*/, /.*?rv:([0-9]+)\.([0-9]+).*/], search: (n) => js(n, "msie") || js(n, "trident") }, { name: "Opera", versionRegexes: [Ad, /.*?opera\/([0-9]+)\.([0-9]+).*/], search: Cr("opera") }, { name: "Firefox", versionRegexes: [/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/], search: Cr("firefox") }, { name: "Safari", versionRegexes: [Ad, /.*?cpu os ([0-9]+)_([0-9]+).*/], search: (n) => (js(n, "safari") || js(n, "mobile/")) && js(n, "applewebkit") }], Os = [{ name: "Windows", search: Cr("win"), versionRegexes: [/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/] }, { name: "iOS", search: (n) => js(n, "iphone") || js(n, "ipad"), versionRegexes: [/.*?version\/\ ?([0-9]+)\.([0-9]+).*/, /.*cpu os ([0-9]+)_([0-9]+).*/, /.*cpu iphone os ([0-9]+)_([0-9]+).*/] }, { name: "Android", search: Cr("android"), versionRegexes: [/.*?android\ ?([0-9]+)\.([0-9]+).*/] }, { name: "macOS", search: Cr("mac os x"), versionRegexes: [/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/] }, { name: "Linux", search: Cr("linux"), versionRegexes: [] }, { name: "Solaris", search: Cr("sunos"), versionRegexes: [] }, { name: "FreeBSD", search: Cr("freebsd"), versionRegexes: [] }, { name: "ChromeOS", search: Cr("cros"), versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/] }], Xa = { browsers: z(di), oses: z(Os) }, Gt = "Edge", T0 = "Chromium", Af = "Opera", D0 = "Firefox", O0 = "Safari", Pl = (n) => {
|
|
33953
33953
|
const r = n.current, a = n.version, u = (p) => () => r === p;
|
|
33954
33954
|
return { current: r, version: a, isEdge: u(Gt), isChromium: u(T0), isIE: u("IE"), isOpera: u(Af), isFirefox: u(D0), isSafari: u(O0) };
|
|
33955
|
-
}, hm = () => Pl({ current: void 0, version: Vs.unknown() }), Rc = Pl, B0 = "Windows", vm = "Android", kd = "Linux",
|
|
33955
|
+
}, hm = () => Pl({ current: void 0, version: Vs.unknown() }), Rc = Pl, B0 = "Windows", vm = "Android", kd = "Linux", Ti = "macOS", Qp = "Solaris", R0 = "FreeBSD", eg = "ChromeOS", bm = (n) => {
|
|
33956
33956
|
const r = n.current, a = n.version, u = (p) => () => r === p;
|
|
33957
|
-
return { current: r, version: a, isWindows: u(B0), isiOS: u("iOS"), isAndroid: u(vm), isMacOS: u(
|
|
33957
|
+
return { current: r, version: a, isWindows: u(B0), isiOS: u("iOS"), isAndroid: u(vm), isMacOS: u(Ti), isLinux: u(kd), isSolaris: u(Qp), isFreeBSD: u(R0), isChromeOS: u(eg) };
|
|
33958
33958
|
}, N0 = () => bm({ current: void 0, version: Vs.unknown() }), xm = bm, zu = (n) => window.matchMedia(n).matches;
|
|
33959
33959
|
let al = ci(() => ((n, r, a) => {
|
|
33960
33960
|
const u = Xa.browsers(), p = Xa.oses(), h = r.bind((w) => ((T, R) => vn(R.brands, (D) => {
|
|
@@ -33982,7 +33982,7 @@ Required: ` + r.join(", "));
|
|
|
33982
33982
|
if (h == null) throw new Error(u + " not available on this browser");
|
|
33983
33983
|
return h;
|
|
33984
33984
|
})("HTMLElement", a))(r).prototype.isPrototypeOf(n) || /^HTML\w*Element$/.test(Wi(n).constructor.name));
|
|
33985
|
-
}, Ml = (n) => n.dom.nodeName.toLowerCase(),
|
|
33985
|
+
}, Ml = (n) => n.dom.nodeName.toLowerCase(), Di = (n) => (r) => ((a) => a.dom.nodeType)(r) === n, vs = (n) => Ba(n) && ym(n.dom), Ba = Di(1), ee = Di(3), Ce = Di(9), Be = Di(11), Je = (n) => (r) => Ba(r) && Ml(r) === n, Qt = (n) => Wt(n.dom.ownerDocument), ho = (n) => Ce(n) ? n : Qt(n), Ps = (n) => Wt(ho(n).dom.documentElement), Er = (n) => Wt(ho(n).dom.defaultView), Mr = (n) => N.from(n.dom.parentNode).map(Wt), Ra = (n) => N.from(n.dom.parentElement).map(Wt), Oi = (n) => N.from(n.dom.offsetParent).map(Wt), fi = (n) => Le(n.dom.childNodes, Wt), Zi = (n, r) => {
|
|
33986
33986
|
const a = n.dom.childNodes;
|
|
33987
33987
|
return N.from(a[r]).map(Wt);
|
|
33988
33988
|
}, Il = (n) => Zi(n, 0), F0 = (n, r) => ({ element: n, offset: r }), tg = (n, r) => {
|
|
@@ -34125,7 +34125,7 @@ Required: ` + r.join(", "));
|
|
|
34125
34125
|
return In(u, r, a), sa(u, r).isSome();
|
|
34126
34126
|
}, no = (n, r) => {
|
|
34127
34127
|
const a = n.dom;
|
|
34128
|
-
_m(a, r),
|
|
34128
|
+
_m(a, r), Si(_a(n, "style").map(nc), "") && sr(n, "style");
|
|
34129
34129
|
}, ul = (n) => n.dom.offsetWidth, Df = (n, r) => {
|
|
34130
34130
|
const a = (p) => {
|
|
34131
34131
|
const h = r(p);
|
|
@@ -34193,24 +34193,24 @@ Required: ` + r.join(", "));
|
|
|
34193
34193
|
if (p(h)) break;
|
|
34194
34194
|
}
|
|
34195
34195
|
return N.none();
|
|
34196
|
-
}, Am = (n, r, a) => du((u, p) => p(u), cs, n, r, a), jh = (n, r) => W(n.dom.childNodes, (a) => r(Wt(a))).map(Wt), zl = (n, r, a) => cs(n, (u) =>
|
|
34196
|
+
}, Am = (n, r, a) => du((u, p) => p(u), cs, n, r, a), jh = (n, r) => W(n.dom.childNodes, (a) => r(Wt(a))).map(Wt), zl = (n, r, a) => cs(n, (u) => ki(u, r), a), pi = (n, r) => ((a) => {
|
|
34197
34197
|
const u = a.dom;
|
|
34198
|
-
return u.parentNode ? jh(Wt(u.parentNode), (p) => !Ko(a, p) &&
|
|
34199
|
-
})(n), Pc = (n, r) => jh(n, (a) =>
|
|
34198
|
+
return u.parentNode ? jh(Wt(u.parentNode), (p) => !Ko(a, p) && ki(p, r)) : N.none();
|
|
34199
|
+
})(n), Pc = (n, r) => jh(n, (a) => ki(a, r)), eo = (n, r) => k0(r, n), ji = (n, r, a) => du((u, p) => ki(u, p), zl, n, r, a), Ma = (n, r) => {
|
|
34200
34200
|
n.dom.checked = r;
|
|
34201
|
-
}, $l = (n) => n.dom.checked,
|
|
34201
|
+
}, $l = (n) => n.dom.checked, Bi = (n) => n.dom.classList !== void 0, qs = (n) => Fd(n, "class"), I0 = (n, r) => ((a, u, p) => {
|
|
34202
34202
|
const h = Fd(a, u).concat([p]);
|
|
34203
34203
|
return Mn(a, u, h.join(" ")), !0;
|
|
34204
34204
|
})(n, "class", r), H0 = (n, r) => ((a, u, p) => {
|
|
34205
34205
|
const h = qt(Fd(a, u), (y) => y !== p);
|
|
34206
34206
|
return h.length > 0 ? Mn(a, u, h.join(" ")) : sr(a, u), !1;
|
|
34207
34207
|
})(n, "class", r), Bo = (n, r) => {
|
|
34208
|
-
|
|
34208
|
+
Bi(n) ? n.dom.classList.add(r) : I0(n, r);
|
|
34209
34209
|
}, $u = (n) => {
|
|
34210
|
-
(
|
|
34210
|
+
(Bi(n) ? n.dom.classList : qs(n)).length === 0 && sr(n, "class");
|
|
34211
34211
|
}, Bs = (n, r) => {
|
|
34212
|
-
|
|
34213
|
-
}, gi = (n, r) =>
|
|
34212
|
+
Bi(n) ? n.dom.classList.remove(r) : H0(n, r), $u(n);
|
|
34213
|
+
}, gi = (n, r) => Bi(n) && n.dom.classList.contains(r), rc = (n, r) => {
|
|
34214
34214
|
ze(r, (a) => {
|
|
34215
34215
|
Bo(n, a);
|
|
34216
34216
|
});
|
|
@@ -34218,7 +34218,7 @@ Required: ` + r.join(", "));
|
|
|
34218
34218
|
ze(r, (a) => {
|
|
34219
34219
|
Bs(n, a);
|
|
34220
34220
|
});
|
|
34221
|
-
}, qh = (n) =>
|
|
34221
|
+
}, qh = (n) => Bi(n) ? ((r) => {
|
|
34222
34222
|
const a = r.dom.classList, u = new Array(a.length);
|
|
34223
34223
|
for (let p = 0; p < a.length; p++) {
|
|
34224
34224
|
const h = a.item(p);
|
|
@@ -34301,7 +34301,7 @@ Required: ` + r.join(", "));
|
|
|
34301
34301
|
var r;
|
|
34302
34302
|
return (n.dom === document ? N.none() : N.from((r = n.dom.defaultView) === null || r === void 0 ? void 0 : r.frameElement)).map(Wt);
|
|
34303
34303
|
}, owner: (n) => Qt(n) });
|
|
34304
|
-
const
|
|
34304
|
+
const Ri = (n) => {
|
|
34305
34305
|
const r = sg(), a = fl(r);
|
|
34306
34306
|
return ((p, h) => {
|
|
34307
34307
|
const y = h.owner(p), E = ra(h, y);
|
|
@@ -34317,16 +34317,16 @@ Required: ` + r.join(", "));
|
|
|
34317
34317
|
const r = wr(n), a = Eo(n), u = dl(n);
|
|
34318
34318
|
return Us(r.left, r.top, a, u);
|
|
34319
34319
|
}, rr = (n) => {
|
|
34320
|
-
const r =
|
|
34320
|
+
const r = Ri(n), a = Eo(n), u = dl(n);
|
|
34321
34321
|
return Us(r.left, r.top, a, u);
|
|
34322
34322
|
}, Kh = (n, r) => {
|
|
34323
34323
|
const a = Math.max(n.x, r.x), u = Math.max(n.y, r.y), p = Math.min(n.right, r.right), h = Math.min(n.bottom, r.bottom);
|
|
34324
34324
|
return Us(a, u, p - a, h - u);
|
|
34325
|
-
}, Sa = () => $0(window), qi = (n, r) => Ko(n.element, r.event.target), O = (n) => (
|
|
34325
|
+
}, Sa = () => $0(window), qi = (n, r) => Ko(n.element, r.event.target), O = (n) => (Si(sa(n, "position"), "fixed") ? N.none() : Oi(n)).orThunk(() => {
|
|
34326
34326
|
const r = iu("span");
|
|
34327
34327
|
return Mr(n).bind((a) => {
|
|
34328
34328
|
ao(a, r);
|
|
34329
|
-
const u =
|
|
34329
|
+
const u = Oi(r);
|
|
34330
34330
|
return xs(r), u;
|
|
34331
34331
|
});
|
|
34332
34332
|
}), Z = (n) => O(n).map(wr).getOrThunk(() => Ss(0, 0));
|
|
@@ -34436,7 +34436,7 @@ Required: ` + r.join(", "));
|
|
|
34436
34436
|
var u;
|
|
34437
34437
|
}, cc = (n) => n.fold((r) => {
|
|
34438
34438
|
throw new Error(ag(r));
|
|
34439
|
-
}, ge),
|
|
34439
|
+
}, ge), Ni = (n, r, a) => cc(Rs(n, r, a)), ag = (n) => `Errors:
|
|
34440
34440
|
` + ((r) => {
|
|
34441
34441
|
const a = r.length > 10 ? r.slice(0, 10).concat([{ path: [], getErrorInfo: z("... (only showing first ten failures)") }]) : r;
|
|
34442
34442
|
return Le(a, (u) => "Failed path: (" + u.path.join(" > ") + `)
|
|
@@ -34505,7 +34505,7 @@ Input object: ` + Dn(n.input), ml = (n, r) => pu(n, Dt(r, Fn)), Nx = (n, r) => (
|
|
|
34505
34505
|
`);
|
|
34506
34506
|
W(p, (h) => h.indexOf("alloy") > 0 && !pn(Pf, (y) => h.indexOf(y) > -1)).getOr("unknown");
|
|
34507
34507
|
}
|
|
34508
|
-
})(), ir(r, r, a, Z0((u) => Qn.value((...p) => u.apply(void 0, p))))), ko = (n) => Tt(0, n, Rf(X)),
|
|
34508
|
+
})(), ir(r, r, a, Z0((u) => Qn.value((...p) => u.apply(void 0, p))))), ko = (n) => Tt(0, n, Rf(X)), Fi = (n) => Tt(0, n, Rf(N.none)), mc = (n) => Tt(0, n, { tag: "required", process: {} }), Hc = (n) => Tt(0, n, { tag: "required", process: {} }), us = (n, r) => mr(n, z(r)), nr = (n) => mr(n, ge), zx = z($d), sb = (n) => Le(n, (r) => Fl(r, "/*") ? r.substring(0, r.length - 2) : r), pc = (n, r) => {
|
|
34509
34509
|
const a = n.toString(), u = a.indexOf(")") + 1, p = a.indexOf("("), h = a.substring(p + 1, u - 1).split(/,\s*/);
|
|
34510
34510
|
return n.toFunctionAnnotation = () => ({ name: r, parameters: sb(h) }), n;
|
|
34511
34511
|
}, Ns = (n, r) => {
|
|
@@ -34539,13 +34539,13 @@ Spec: ` + JSON.stringify(R, null, 2));
|
|
|
34539
34539
|
return a.validated.preprocess.getOr(ge)(y);
|
|
34540
34540
|
}
|
|
34541
34541
|
return h(r);
|
|
34542
|
-
}), rb = hu.single, ab = hu.multiple, Vx = z(GS), a1 = dr([{ required: ["data"] }, { external: ["data"] }, { optional: ["data"] }, { group: ["data"] }]), i1 = Ge("factory", { sketch: ge }), r4 = Ge("schema", []), Ux = pt("name"), Q0 = ir("pname", "pname", U0((n) => "<alloy." + Ht(n.name) + ">"), Ms()), Wx = mr("schema", () => [No("preprocess")]), ep = Ge("defaults", z({})), zc = Ge("overrides", z({})),
|
|
34542
|
+
}), rb = hu.single, ab = hu.multiple, Vx = z(GS), a1 = dr([{ required: ["data"] }, { external: ["data"] }, { optional: ["data"] }, { group: ["data"] }]), i1 = Ge("factory", { sketch: ge }), r4 = Ge("schema", []), Ux = pt("name"), Q0 = ir("pname", "pname", U0((n) => "<alloy." + Ht(n.name) + ">"), Ms()), Wx = mr("schema", () => [No("preprocess")]), ep = Ge("defaults", z({})), zc = Ge("overrides", z({})), Li = Fn([i1, r4, Ux, Q0, ep, zc]), Zx = Fn([i1, r4, Ux, ep, zc]), jx = Fn([i1, r4, Ux, Q0, ep, zc]), Pm = Fn([i1, Wx, Ux, pt("unit"), Q0, ep, zc]), l1 = (n) => n.fold(N.some, N.none, N.some, N.some), ib = (n) => {
|
|
34543
34543
|
const r = (a) => a.name;
|
|
34544
34544
|
return n.fold(r, r, r, r);
|
|
34545
34545
|
}, c1 = (n, r) => (a) => {
|
|
34546
|
-
const u =
|
|
34546
|
+
const u = Ni("Converting part type", r, a);
|
|
34547
34547
|
return n(u);
|
|
34548
|
-
}, za = c1(a1.required,
|
|
34548
|
+
}, za = c1(a1.required, Li), jl = c1(a1.external, Zx), $c = c1(a1.optional, jx), Mm = c1(a1.group, Pm), lb = z("entirety");
|
|
34549
34549
|
var u1 = Object.freeze({ __proto__: null, required: za, external: jl, optional: $c, group: Mm, asNamedPart: l1, name: ib, asCommon: (n) => n.fold(ge, ge, ge, ge), original: lb });
|
|
34550
34550
|
const qx = (n, r, a, u) => so(r.defaults(n, a, u), a, { uid: n.partUids[r.name] }, r.overrides(n, a, u)), a4 = (n, r) => {
|
|
34551
34551
|
const a = {};
|
|
@@ -34553,7 +34553,7 @@ Spec: ` + JSON.stringify(R, null, 2));
|
|
|
34553
34553
|
l1(u).each((p) => {
|
|
34554
34554
|
const h = Gx(n, p.pname);
|
|
34555
34555
|
a[p.name] = (y) => {
|
|
34556
|
-
const E =
|
|
34556
|
+
const E = Ni("Part: " + p.name + " in " + n, Fn(p.schema), y);
|
|
34557
34557
|
return { ...h, config: y, validated: E };
|
|
34558
34558
|
};
|
|
34559
34559
|
});
|
|
@@ -34626,7 +34626,7 @@ Components: ` + JSON.stringify(p.components, null, 2));
|
|
|
34626
34626
|
case 3:
|
|
34627
34627
|
return p.y + p.height;
|
|
34628
34628
|
}
|
|
34629
|
-
})(n, u))), Xu = "layout", f4 = (n) => n.x, m4 = (n, r) => n.x + n.width / 2 - r.width / 2, p4 = (n, r) => n.x + n.width - r.width, Hf = (n, r) => n.y - r.height, Qx = (n) => n.y + n.height, g4 = (n, r) => n.y + n.height / 2 - r.height / 2, kr = (n, r, a) => $a(f4(n), Qx(n), a.southeast(), mg(), "southeast", la(n, { left: 1, top: 3 }), Xu), pr = (n, r, a) => $a(p4(n, r), Qx(n), a.southwest(), db(), "southwest", la(n, { right: 0, top: 3 }), Xu), Aa = (n, r, a) => $a(f4(n), Hf(n, r), a.northeast(), fb(), "northeast", la(n, { left: 1, bottom: 2 }), Xu), oi = (n, r, a) => $a(p4(n, r), Hf(n, r), a.northwest(), mb(), "northwest", la(n, { right: 0, bottom: 2 }), Xu), ca = (n, r, a) => $a(m4(n, r), Hf(n, r), a.north(), u4(), "north", la(n, { bottom: 2 }), Xu), gr = (n, r, a) => $a(m4(n, r), Qx(n), a.south(), c4(), "south", la(n, { top: 3 }), Xu), ey = (n, r, a) => $a(((u) => u.x + u.width)(n), g4(n, r), a.east(), m1(), "east", la(n, { left: 0 }), Xu), h4 = (n, r, a) => $a(((u, p) => u.x - p.width)(n, r), g4(n, r), a.west(), d4(), "west", la(n, { right: 1 }), Xu), zm = () => [kr, pr, Aa, oi, gr, ca, ey, h4], ua = () => [pr, kr, oi, Aa, gr, ca, ey, h4], pb = () => [Aa, oi, kr, pr, ca, gr], ty = () => [oi, Aa, pr, kr, ca, gr], gb = () => [kr, pr, Aa, oi, gr, ca], ny = () => [pr, kr, oi, Aa, gr, ca], oy = "data-alloy-placement", $m = (n) => _a(n, oy), hc = "layout-inset", hb = (n) => n.x, sy = (n, r) => n.x + n.width / 2 - r.width / 2, ry = (n, r) => n.x + n.width - r.width, ay = (n) => n.y, p1 = (n, r) => n.y + n.height - r.height, v4 = (n, r) => n.y + n.height / 2 - r.height / 2, g1 = (n, r, a) => $a(ry(n, r), p1(n, r), a.insetSouthwest(), mb(), "southwest", la(n, { right: 0, bottom: 3 }), hc), vb = (n, r, a) => $a(hb(n), p1(n, r), a.insetSoutheast(), fb(), "southeast", la(n, { left: 1, bottom: 3 }), hc), h1 = (n, r, a) => $a(ry(n, r), ay(n), a.insetNorthwest(), db(), "northwest", la(n, { right: 0, top: 2 }), hc), vu = (n, r, a) => $a(hb(n), ay(n), a.insetNortheast(), mg(), "northeast", la(n, { left: 1, top: 2 }), hc), yl = (n, r, a) => $a(sy(n, r), ay(n), a.insetNorth(), c4(), "north", la(n, { top: 2 }), hc),
|
|
34629
|
+
})(n, u))), Xu = "layout", f4 = (n) => n.x, m4 = (n, r) => n.x + n.width / 2 - r.width / 2, p4 = (n, r) => n.x + n.width - r.width, Hf = (n, r) => n.y - r.height, Qx = (n) => n.y + n.height, g4 = (n, r) => n.y + n.height / 2 - r.height / 2, kr = (n, r, a) => $a(f4(n), Qx(n), a.southeast(), mg(), "southeast", la(n, { left: 1, top: 3 }), Xu), pr = (n, r, a) => $a(p4(n, r), Qx(n), a.southwest(), db(), "southwest", la(n, { right: 0, top: 3 }), Xu), Aa = (n, r, a) => $a(f4(n), Hf(n, r), a.northeast(), fb(), "northeast", la(n, { left: 1, bottom: 2 }), Xu), oi = (n, r, a) => $a(p4(n, r), Hf(n, r), a.northwest(), mb(), "northwest", la(n, { right: 0, bottom: 2 }), Xu), ca = (n, r, a) => $a(m4(n, r), Hf(n, r), a.north(), u4(), "north", la(n, { bottom: 2 }), Xu), gr = (n, r, a) => $a(m4(n, r), Qx(n), a.south(), c4(), "south", la(n, { top: 3 }), Xu), ey = (n, r, a) => $a(((u) => u.x + u.width)(n), g4(n, r), a.east(), m1(), "east", la(n, { left: 0 }), Xu), h4 = (n, r, a) => $a(((u, p) => u.x - p.width)(n, r), g4(n, r), a.west(), d4(), "west", la(n, { right: 1 }), Xu), zm = () => [kr, pr, Aa, oi, gr, ca, ey, h4], ua = () => [pr, kr, oi, Aa, gr, ca, ey, h4], pb = () => [Aa, oi, kr, pr, ca, gr], ty = () => [oi, Aa, pr, kr, ca, gr], gb = () => [kr, pr, Aa, oi, gr, ca], ny = () => [pr, kr, oi, Aa, gr, ca], oy = "data-alloy-placement", $m = (n) => _a(n, oy), hc = "layout-inset", hb = (n) => n.x, sy = (n, r) => n.x + n.width / 2 - r.width / 2, ry = (n, r) => n.x + n.width - r.width, ay = (n) => n.y, p1 = (n, r) => n.y + n.height - r.height, v4 = (n, r) => n.y + n.height / 2 - r.height / 2, g1 = (n, r, a) => $a(ry(n, r), p1(n, r), a.insetSouthwest(), mb(), "southwest", la(n, { right: 0, bottom: 3 }), hc), vb = (n, r, a) => $a(hb(n), p1(n, r), a.insetSoutheast(), fb(), "southeast", la(n, { left: 1, bottom: 3 }), hc), h1 = (n, r, a) => $a(ry(n, r), ay(n), a.insetNorthwest(), db(), "northwest", la(n, { right: 0, top: 2 }), hc), vu = (n, r, a) => $a(hb(n), ay(n), a.insetNortheast(), mg(), "northeast", la(n, { left: 1, top: 2 }), hc), yl = (n, r, a) => $a(sy(n, r), ay(n), a.insetNorth(), c4(), "north", la(n, { top: 2 }), hc), Pi = (n, r, a) => $a(sy(n, r), p1(n, r), a.insetSouth(), u4(), "south", la(n, { bottom: 3 }), hc), v1 = (n, r, a) => $a(ry(n, r), v4(n, r), a.insetEast(), d4(), "east", la(n, { right: 0 }), hc), b1 = (n, r, a) => $a(hb(n), v4(n, r), a.insetWest(), m1(), "west", la(n, { left: 1 }), hc), Va = (n) => {
|
|
34630
34630
|
switch (n) {
|
|
34631
34631
|
case "north":
|
|
34632
34632
|
return yl;
|
|
@@ -34635,7 +34635,7 @@ Components: ` + JSON.stringify(p.components, null, 2));
|
|
|
34635
34635
|
case "northwest":
|
|
34636
34636
|
return h1;
|
|
34637
34637
|
case "south":
|
|
34638
|
-
return
|
|
34638
|
+
return Pi;
|
|
34639
34639
|
case "southeast":
|
|
34640
34640
|
return vb;
|
|
34641
34641
|
case "southwest":
|
|
@@ -34648,7 +34648,7 @@ Components: ` + JSON.stringify(p.components, null, 2));
|
|
|
34648
34648
|
}, iy = (n, r, a, u, p) => $m(u).map(Va).getOr(yl)(n, r, a, u, p), x1 = (n) => {
|
|
34649
34649
|
switch (n) {
|
|
34650
34650
|
case "north":
|
|
34651
|
-
return
|
|
34651
|
+
return Pi;
|
|
34652
34652
|
case "northeast":
|
|
34653
34653
|
return vb;
|
|
34654
34654
|
case "northwest":
|
|
@@ -34736,19 +34736,19 @@ Components: ` + JSON.stringify(p.components, null, 2));
|
|
|
34736
34736
|
return G.apply(void 0, [ve, ie.config, ie.state].concat(le));
|
|
34737
34737
|
});
|
|
34738
34738
|
}, Q, G))(a, R, D)), T = { ...Dt(h, (R, D) => pc(R, D)), ...w, revoke: ye(QS, a), config: (R) => {
|
|
34739
|
-
const D =
|
|
34740
|
-
return { key: a, value: { config: D, me: T, configAsRaw: ci(() =>
|
|
34739
|
+
const D = Ni(a + "-config", n, R);
|
|
34740
|
+
return { key: a, value: { config: D, me: T, configAsRaw: ci(() => Ni(a + "-config", n, R)), initialConfig: R, state: y } };
|
|
34741
34741
|
}, schema: z(r), exhibit: (R, D) => yr(E(R), on(u, "exhibit"), (H, G) => G(D, H.config, H.state)).getOrThunk(() => El({})), name: z(a), handlers: (R) => E(R).map((D) => on(u, "events").getOr(() => ({}))(D.config, D.state)).getOr({}) };
|
|
34742
34742
|
return T;
|
|
34743
34743
|
}, At = (n) => cg(n), As = lc([pt("fields"), pt("name"), Ge("active", {}), Ge("apis", {}), Ge("state", Cl), Ge("extra", {})]), Ua = (n) => {
|
|
34744
|
-
const r =
|
|
34744
|
+
const r = Ni("Creating behaviour: " + n.name, As, n);
|
|
34745
34745
|
return ((a, u, p, h, y, E) => {
|
|
34746
34746
|
const w = lc(a), T = Wl(u, [(R = a, hl("config", lc(R)))]);
|
|
34747
34747
|
var R;
|
|
34748
34748
|
return yb(w, T, u, p, h, y, E);
|
|
34749
34749
|
})(r.fields, r.name, r.active, r.apis, r.extra, r.state);
|
|
34750
34750
|
}, e5 = lc([pt("branchKey"), pt("branches"), pt("name"), Ge("active", {}), Ge("apis", {}), Ge("state", Cl), Ge("extra", {})]), x4 = (n) => {
|
|
34751
|
-
const r =
|
|
34751
|
+
const r = Ni("Creating behaviour: " + n.name, e5, n);
|
|
34752
34752
|
return ((a, u, p, h, y, E) => {
|
|
34753
34753
|
const w = a, T = Wl(u, [hl("config", a)]);
|
|
34754
34754
|
return yb(w, T, u, p, h, y, E);
|
|
@@ -34937,7 +34937,7 @@ Components: ` + JSON.stringify(p.components, null, 2));
|
|
|
34937
34937
|
}), bc = (n, r, a, u, p) => ap(n, r, u, (h, y) => {
|
|
34938
34938
|
const E = Nn(h, p, 0, a - 1), w = E === a - 1 ? n.length - E * u : u, T = ls(y, 0, w - 1);
|
|
34939
34939
|
return N.some({ row: E, column: T });
|
|
34940
|
-
}), A4 = [pt("selector"), Ge("execute", Cg),
|
|
34940
|
+
}), A4 = [pt("selector"), Ge("execute", Cg), Fi("onEscape"), Ge("captureTab", !1), zx()], i5 = (n, r, a) => {
|
|
34941
34941
|
eo(n.element, r.selector).each((u) => {
|
|
34942
34942
|
r.focusManager.set(n, u);
|
|
34943
34943
|
});
|
|
@@ -34958,7 +34958,7 @@ Components: ` + JSON.stringify(p.components, null, 2));
|
|
|
34958
34958
|
}), _b = (n, r, a, u) => Wf(n, r, a, u, (p, h, y, E, w, T, R) => {
|
|
34959
34959
|
const D = Nn(h, y, E, w);
|
|
34960
34960
|
return D === p ? N.none() : R(D);
|
|
34961
|
-
}), Sb = [pt("selector"), Ge("getInitial", N.none), Ge("execute", Cg),
|
|
34961
|
+
}), Sb = [pt("selector"), Ge("getInitial", N.none), Ge("execute", Cg), Fi("onEscape"), Ge("executeOnMove", !1), Ge("allowVertical", !0), Ge("allowHorizontal", !0), Ge("cycles", !0)], Zf = (n, r, a) => ((u, p) => p.focusManager.get(u).bind((h) => ji(h, p.selector)))(n, a).bind((u) => a.execute(n, r, u)), D1 = (n, r, a) => {
|
|
34962
34962
|
r.getInitial(n).orThunk(() => eo(n.element, r.selector)).each((u) => {
|
|
34963
34963
|
r.focusManager.set(n, u);
|
|
34964
34964
|
});
|
|
@@ -35006,7 +35006,7 @@ Components: ` + JSON.stringify(p.components, null, 2));
|
|
|
35006
35006
|
});
|
|
35007
35007
|
}, M4 = (n, r, a) => _b(n, a.selector, r, -1), I4 = (n, r, a) => _b(n, a.selector, r, 1), wy = z([To(fo(Zd), rp(M4)), To(fo(w1), rp(I4)), To(Kl([nd, fo(zf)]), (n, r, a, u) => a.moveOnTab ? rp(M4)(n, r, a, u) : N.none()), To(Kl([bg, fo(zf)]), (n, r, a, u) => a.moveOnTab ? rp(I4)(n, r, a, u) : N.none()), To(fo($f), Ob), To(fo(Gl), Ob)]), _y = z([To(fo(Gl), Zm)]);
|
|
35008
35008
|
var Sy = Wm(P4, Cl.init, wy, _y, () => N.some(u5));
|
|
35009
|
-
const H4 = [
|
|
35009
|
+
const H4 = [Fi("onSpace"), Fi("onEnter"), Fi("onShiftEnter"), Fi("onLeft"), Fi("onRight"), Fi("onTab"), Fi("onShiftTab"), Fi("onUp"), Fi("onDown"), Fi("onEscape"), Ge("stopSpaceKeyup", !1), No("focusIn")];
|
|
35010
35010
|
var d5 = Wm(H4, Cl.init, (n, r, a) => [To(fo(Gl), a.onSpace), To(Kl([bg, fo($f)]), a.onEnter), To(Kl([nd, fo($f)]), a.onShiftEnter), To(Kl([nd, fo(zf)]), a.onShiftTab), To(Kl([bg, fo(zf)]), a.onTab), To(fo(Zd), a.onUp), To(fo(w1), a.onDown), To(fo(C4), a.onLeft), To(fo(py), a.onRight), To(fo(Gl), a.onSpace)], (n, r, a) => [...a.stopSpaceKeyup ? [To(fo(Gl), Zm)] : [], To(fo(np), a.onEscape)], (n) => n.focusIn);
|
|
35011
35011
|
const R1 = A1.schema(), N1 = _4.schema(), F1 = kg.schema(), Ay = Ag.schema(), z4 = rd.schema(), L1 = Eg.schema(), ky = Sy.schema(), Bb = d5.schema(), an = x4({ branchKey: "mode", branches: Object.freeze({ __proto__: null, acyclic: R1, cyclic: N1, flow: F1, flatgrid: Ay, matrix: z4, execution: L1, menu: ky, special: Bb }), name: "keying", active: { events: (n, r) => n.handler.toEvents(n, r) }, apis: { focusIn: (n, r, a) => {
|
|
35012
35012
|
r.sendFocusIn(r).fold(() => {
|
|
@@ -35338,7 +35338,7 @@ Complete spec:
|
|
|
35338
35338
|
const r = A0(n);
|
|
35339
35339
|
return My({ element: r });
|
|
35340
35340
|
}, My = (n) => {
|
|
35341
|
-
const r =
|
|
35341
|
+
const r = Ni("external.component", lc([pt("element"), No("uid")]), n), a = Yt(Pb()), u = r.uid.getOrThunk(() => Ng("external"));
|
|
35342
35342
|
Lb(r.element, u);
|
|
35343
35343
|
const p = { uid: u, getSystem: a.get, config: N.none, hasConfigured: we, connect: (h) => {
|
|
35344
35344
|
a.set(h);
|
|
@@ -35445,7 +35445,7 @@ Complete spec:
|
|
|
35445
35445
|
}
|
|
35446
35446
|
}, S5 = (n, r, a) => {
|
|
35447
35447
|
const u = n.element;
|
|
35448
|
-
return
|
|
35448
|
+
return Si(sa(u, "position"), "fixed") ? ((p, h, y) => ((E, w, T) => Zy(E, w, T).filter(({ box: R }) => ((D, H, G) => Yn(D, (Q) => {
|
|
35449
35449
|
switch (Q) {
|
|
35450
35450
|
case "bottom":
|
|
35451
35451
|
return Wy(H, G.bounds);
|
|
@@ -35598,18 +35598,18 @@ Complete spec:
|
|
|
35598
35598
|
var u, p;
|
|
35599
35599
|
}).concat([mr("dump", ge)])), Gb = (n) => n.dump, ka = (n, r) => ({ ...At(r), ...n.dump }), gp = Yr, Xm = ka, hw = (n, r, a, u, p) => {
|
|
35600
35600
|
const h = ((y, E) => (y.length > 0 ? [Id("parts", y)] : []).concat([pt("uid"), Ge("dom", {}), Ge("components", []), nr("originalSpec"), Ge("debug.sketcher", {})]).concat(E))(u, p);
|
|
35601
|
-
return
|
|
35601
|
+
return Ni(n + " [SpecSchema]", lc(h.concat(r)), a);
|
|
35602
35602
|
}, V1 = (n, r, a, u, p) => {
|
|
35603
35603
|
const h = Xy(p), y = d1(a), E = Jx(a), w = hw(n, r, h, y, [E]), T = Kx(0, w, a);
|
|
35604
35604
|
return u(w, f1(n, w, T.internals()), h, T.externals());
|
|
35605
35605
|
}, Xy = (n) => ((r) => ro(r, "uid"))(n) ? n : { ...n, uid: Ng("uid") }, O5 = lc([pt("name"), pt("factory"), pt("configFields"), Ge("apis", {}), Ge("extraApis", {})]), B5 = lc([pt("name"), pt("factory"), pt("configFields"), pt("partFields"), Ge("apis", {}), Ge("extraApis", {})]), xc = (n) => {
|
|
35606
|
-
const r =
|
|
35606
|
+
const r = Ni("Sketcher for " + n.name, O5, n), a = Dt(r.apis, Dg), u = Dt(r.extraApis, (p, h) => pc(p, h));
|
|
35607
35607
|
return { name: r.name, configFields: r.configFields, sketch: (p) => ((h, y, E, w) => {
|
|
35608
35608
|
const T = Xy(w);
|
|
35609
35609
|
return E(hw(h, y, T, [], []), T);
|
|
35610
35610
|
})(r.name, r.configFields, r.factory, p), ...a, ...u };
|
|
35611
35611
|
}, Za = (n) => {
|
|
35612
|
-
const r =
|
|
35612
|
+
const r = Ni("Sketcher for " + n.name, B5, n), a = a4(r.name, r.partFields), u = Dt(r.apis, Dg), p = Dt(r.extraApis, (h, y) => pc(h, y));
|
|
35613
35613
|
return { name: r.name, partFields: r.partFields, configFields: r.configFields, sketch: (h) => V1(r.name, r.configFields, r.partFields, r.factory, h), parts: a, ...u, ...p };
|
|
35614
35614
|
}, Cu = xc({ name: "Container", factory: (n) => {
|
|
35615
35615
|
const { attributes: r, ...a } = n.dom;
|
|
@@ -35841,9 +35841,9 @@ Complete spec:
|
|
|
35841
35841
|
const a = r.rect;
|
|
35842
35842
|
return xu("absolute", N.some(a.x), N.some(a.y), N.none(), N.none());
|
|
35843
35843
|
}, (a, u, p, h) => Tw("absolute", r, a, u, p, h), (a, u, p, h) => Tw("fixed", r, a, u, p, h)), Qb = (n, r) => {
|
|
35844
|
-
const a = ye(
|
|
35844
|
+
const a = ye(Ri, r), u = n.fold(a, a, () => {
|
|
35845
35845
|
const y = fl();
|
|
35846
|
-
return
|
|
35846
|
+
return Ri(r).translate(-y.left, -y.top);
|
|
35847
35847
|
}), p = Eo(r), h = dl(r);
|
|
35848
35848
|
return Us(u.left, u.top, p, h);
|
|
35849
35849
|
}, Dw = (n, r) => r.fold(() => n.fold(Sa, Sa, Us), (a) => n.fold(z(a), z(a), () => {
|
|
@@ -36042,7 +36042,7 @@ Complete spec:
|
|
|
36042
36042
|
return N.some(uC({ anchorBox: u, bubble: Im(), overrides: r.overrides, layouts: p }));
|
|
36043
36043
|
})], Hw = ml("type", { selection: Yd, node: Pw, hotspot: o2, submenu: wu, makeshift: Fw });
|
|
36044
36044
|
const jg = [gl("classes", Ir), Sr("mode", "all", ["all", "layout", "placement"])], i2 = [Ge("useFixed", we), No("getBounds")], _T = [pl("anchor", Hw), Wl("transition", jg)], l2 = (n, r, a, u, p, h) => {
|
|
36045
|
-
const y =
|
|
36045
|
+
const y = Ni("placement.info", Fn(_T), p), E = y.anchor, w = u.element, T = a.get(u.uid);
|
|
36046
36046
|
I1(() => {
|
|
36047
36047
|
In(w, "position", "fixed");
|
|
36048
36048
|
const R = sa(w, "visibility");
|
|
@@ -36064,7 +36064,7 @@ Complete spec:
|
|
|
36064
36064
|
no(w, "visibility");
|
|
36065
36065
|
}, (H) => {
|
|
36066
36066
|
In(w, "visibility", H);
|
|
36067
|
-
}), sa(w, "left").isNone() && sa(w, "top").isNone() && sa(w, "right").isNone() && sa(w, "bottom").isNone() &&
|
|
36067
|
+
}), sa(w, "left").isNone() && sa(w, "top").isNone() && sa(w, "right").isNone() && sa(w, "bottom").isNone() && Si(sa(w, "position"), "fixed") && no(w, "position");
|
|
36068
36068
|
}, w);
|
|
36069
36069
|
};
|
|
36070
36070
|
var c2 = Object.freeze({ __proto__: null, position: (n, r, a, u, p) => {
|
|
@@ -36087,7 +36087,7 @@ Complete spec:
|
|
|
36087
36087
|
var Jd = Object.freeze({ __proto__: null, events: (n) => ds([dt(X0(), (r, a) => {
|
|
36088
36088
|
const u = n.channels, p = Gn(u), h = a, y = ((E, w) => w.universal ? E : qt(E, (T) => at(w.channels, T)))(p, h);
|
|
36089
36089
|
ze(y, (E) => {
|
|
36090
|
-
const w = u[E], T = w.schema, R =
|
|
36090
|
+
const w = u[E], T = w.schema, R = Ni("channel[" + E + `] data
|
|
36091
36091
|
Receiver: ` + jt(r.element), T, h.data);
|
|
36092
36092
|
w.onReceive(r, R);
|
|
36093
36093
|
});
|
|
@@ -36162,16 +36162,16 @@ Receiver: ` + jt(r.element), T, h.data);
|
|
|
36162
36162
|
Bs(n.element, r.openClass), Bo(n.element, r.closedClass), In(n.element, ja(r), "0px"), ul(n.element);
|
|
36163
36163
|
}, fa = (n, r) => {
|
|
36164
36164
|
Bs(n.element, r.closedClass), Bo(n.element, r.openClass), no(n.element, ja(r));
|
|
36165
|
-
},
|
|
36165
|
+
}, Mi = (n, r, a, u) => {
|
|
36166
36166
|
a.setCollapsed(), In(n.element, ja(r), _u(r, n.element)), Gg(n, r), Yf(n, r), r.onStartShrink(n), r.onShrunk(n);
|
|
36167
36167
|
}, qa = (n, r, a, u) => {
|
|
36168
36168
|
const p = u.getOrThunk(() => _u(r, n.element));
|
|
36169
36169
|
a.setCollapsed(), In(n.element, ja(r), p), ul(n.element);
|
|
36170
36170
|
const h = qg(n, r);
|
|
36171
36171
|
Bs(h, r.growingClass), Bo(h, r.shrinkingClass), Yf(n, r), r.onStartShrink(n);
|
|
36172
|
-
},
|
|
36172
|
+
}, Ii = (n, r, a) => {
|
|
36173
36173
|
const u = _u(r, n.element);
|
|
36174
|
-
(u === "0px" ?
|
|
36174
|
+
(u === "0px" ? Mi : qa)(n, r, a, N.some(u));
|
|
36175
36175
|
}, g2 = (n, r, a) => {
|
|
36176
36176
|
const u = qg(n, r), p = gi(u, r.shrinkingClass), h = _u(r, n.element);
|
|
36177
36177
|
fa(n, r);
|
|
@@ -36197,11 +36197,11 @@ Receiver: ` + jt(r.element), T, h.data);
|
|
|
36197
36197
|
}, grow: (n, r, a) => {
|
|
36198
36198
|
a.isExpanded() || g2(n, r, a);
|
|
36199
36199
|
}, shrink: (n, r, a) => {
|
|
36200
|
-
a.isExpanded() && Hi(n, r, a);
|
|
36201
|
-
}, immediateShrink: (n, r, a) => {
|
|
36202
36200
|
a.isExpanded() && Ii(n, r, a);
|
|
36201
|
+
}, immediateShrink: (n, r, a) => {
|
|
36202
|
+
a.isExpanded() && Mi(n, r, a);
|
|
36203
36203
|
}, hasGrown: (n, r, a) => a.isExpanded(), hasShrunk: (n, r, a) => a.isCollapsed(), isGrowing: Cc, isShrinking: Qd, isTransitioning: (n, r, a) => Cc(n, r) || Qd(n, r), toggleGrow: (n, r, a) => {
|
|
36204
|
-
(a.isExpanded() ?
|
|
36204
|
+
(a.isExpanded() ? Ii : g2)(n, r, a);
|
|
36205
36205
|
}, disableTransitions: Gg, immediateGrow: (n, r, a) => {
|
|
36206
36206
|
a.isExpanded() || (fa(n, r), In(n.element, ja(r), _u(r, n.element)), Gg(n, r), a.setExpanded(), r.onStartGrow(n), r.onGrown(n));
|
|
36207
36207
|
} }), U5 = Object.freeze({ __proto__: null, exhibit: (n, r, a) => {
|
|
@@ -36349,7 +36349,7 @@ Receiver: ` + jt(r.element), T, h.data);
|
|
|
36349
36349
|
case "children-normal":
|
|
36350
36350
|
return [dt(Yi(), (h, y) => {
|
|
36351
36351
|
Js(h.element).each((E) => {
|
|
36352
|
-
|
|
36352
|
+
ki(y.event.target, "[data-mce-tooltip]") && r.getTooltip().fold(() => {
|
|
36353
36353
|
lo(h, Al);
|
|
36354
36354
|
}, (w) => {
|
|
36355
36355
|
r.isShowing() && (n.onShow(h, w), p(h));
|
|
@@ -36375,7 +36375,7 @@ Receiver: ` + jt(r.element), T, h.data);
|
|
|
36375
36375
|
default:
|
|
36376
36376
|
return [dt(Yi(), (h, y) => {
|
|
36377
36377
|
Js(h.element).each((E) => {
|
|
36378
|
-
|
|
36378
|
+
ki(y.event.target, "[data-mce-tooltip]") && r.getTooltip().fold(() => {
|
|
36379
36379
|
lo(h, Al);
|
|
36380
36380
|
}, (w) => {
|
|
36381
36381
|
r.isShowing() && (n.onShow(h, w), p(h));
|
|
@@ -36632,7 +36632,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
36632
36632
|
u(h);
|
|
36633
36633
|
} : E1(), onLeft: p, onRight: p, onEscape: (h, y) => Rn.isFocused(h) || n.autofocus ? (n.autofocus && y.setSource(h.element), N.none()) : (Rn.focus(h), N.some(!0)) })]) };
|
|
36634
36634
|
})], Yw = ml("type", { widget: Q5, item: Gc, separator: Ta }), EC = z([Mm({ factory: { sketch: (n) => {
|
|
36635
|
-
const r =
|
|
36635
|
+
const r = Ni("menu.spec item", Yw, n);
|
|
36636
36636
|
return r.builder(r);
|
|
36637
36637
|
} }, name: "items", unit: "item", defaults: (n, r) => ro(r, "uid") ? r : { ...r, uid: Ng("item") }, overrides: (n, r) => ({ type: r.type, ignoreFocus: n.fakeFocus, domModification: { classes: [n.markers.item] } }) })]), Qg = z([er("role"), pt("value"), pt("items"), pt("dom"), pt("components"), Ge("eventOrder", {}), Yr("menuBehaviours", [Fo, zt, yo, an]), ni("movement", { mode: "menu", moveOnTab: !0 }, ml("mode", { grid: [zx(), us("config", (n, r) => ({ mode: "flatgrid", selector: "." + n.markers.item, initSize: { numColumns: r.initSize.numColumns, numRows: r.initSize.numRows }, focusManager: n.focusManager }))], matrix: [us("config", (n, r) => ({ mode: "matrix", selectors: { row: r.rowSelector, cell: "." + n.markers.item }, previousSelector: r.previousSelector, focusManager: n.focusManager })), pt("rowSelector"), Ge("previousSelector", N.none)], menu: [Ge("moveOnTab", !0), us("config", (n, r) => ({ mode: "menu", selector: "." + n.markers.item, moveOnTab: r.moveOnTab, focusManager: n.focusManager }))] })), pl("markers", qS()), Ge("fakeFocus", !1), Ge("focusManager", sp()), ko("onHighlight"), ko("onDehighlight"), Ge("showMenuRole", !0)]), wC = z("alloy.menu-focus"), nf = Za({ name: "Menu", configFields: Qg(), partFields: EC(), factory: (n, r, a, u) => ({ uid: n.uid, dom: n.dom, markers: n.markers, behaviours: ka(n.menuBehaviours, [Fo.config({ highlightClass: n.markers.selectedItem, itemClass: n.markers.item, onHighlight: n.onHighlight, onDehighlight: n.onDehighlight }), zt.config({ store: { mode: "memory", initialValue: n.value } }), yo.config({ find: N.some }), an.config(n.movement.config(n, n.movement))]), events: ds([dt(tf(), (p, h) => {
|
|
36638
36638
|
const y = h.event;
|
|
@@ -36692,7 +36692,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
36692
36692
|
Q.push(me.getOrDie());
|
|
36693
36693
|
}
|
|
36694
36694
|
return N.some(Q);
|
|
36695
|
-
})(Jt(H, (G, Q) => ((ve, me, be) => h(ve).bind((ie) => ((le) => br(n.get(), (Ee, _e) => Ee === le))(ve).bind((le) => me(le).map((Ee) => ({ triggeredMenu: ie, triggeringItem: Ee, triggeringPath: be })))))(G, T, H.slice(0, Q + 1)).fold(() =>
|
|
36695
|
+
})(Jt(H, (G, Q) => ((ve, me, be) => h(ve).bind((ie) => ((le) => br(n.get(), (Ee, _e) => Ee === le))(ve).bind((le) => me(le).map((Ee) => ({ triggeredMenu: ie, triggeringItem: Ee, triggeringPath: be })))))(G, T, H.slice(0, Q + 1)).fold(() => Si(u.get(), G) ? [] : [N.none()], (ve) => [N.some(ve)])));
|
|
36696
36696
|
});
|
|
36697
36697
|
} };
|
|
36698
36698
|
}, f = Jw, x = Ht("tiered-menu-item-highlight"), _ = Ht("tiered-menu-item-dehighlight"), L = z("collapse-item"), V = xc({ name: "TieredMenu", configFields: [Hc("onExecute"), Hc("onEscape"), mc("onOpenMenu"), mc("onOpenSubmenu"), ko("onRepositionMenu"), ko("onCollapseMenu"), Ge("highlightOnOpen", Xi.HighlightMenuAndItem), Id("data", [pt("primary"), pt("menus"), pt("expansions")]), Ge("fakeFocus", !1), ko("onHighlightItem"), ko("onDehighlightItem"), ko("onHover"), dg(), pt("dom"), Ge("navigateOnHover", !0), Ge("stayInDom", !1), Yr("tmenuBehaviours", [an, Fo, yo, zn]), Ge("eventOrder", {})], apis: { collapseMenu: (n, r) => {
|
|
@@ -36825,12 +36825,12 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
36825
36825
|
});
|
|
36826
36826
|
} }), Fo.config({ highlightClass: n.markers.selectedMenu, itemClass: n.markers.menu }), yo.config({ find: (le) => Fo.getHighlighted(le) }), zn.config({})]), eventOrder: n.eventOrder, apis: ie, events: me };
|
|
36827
36827
|
}, extraApis: { tieredData: (n, r, a) => ({ primary: n, menus: r, expansions: a }), singleData: (n, r) => ({ primary: n, menus: Ff(n, r), expansions: {} }), collapseItem: (n) => ({ value: Ht(L()), meta: { text: n } }) } }), te = z("sink"), pe = z($c({ name: te(), overrides: z({ dom: { tag: "div" }, behaviours: At([hi.config({ useFixed: fe })]), events: ds([Wc(Ic()), Wc(uc()), Wc(vl())]) }) })), Se = lc([Ge("isExtraPart", we), Wl("fireEventInstead", [Ge("event", zd())])]), Re = (n) => {
|
|
36828
|
-
const r =
|
|
36828
|
+
const r = Ni("Dismissal", Se, n);
|
|
36829
36829
|
return { [fd()]: { schema: lc([pt("target")]), onReceive: (a, u) => {
|
|
36830
36830
|
Ao.isOpen(a) && (Ao.isPartOf(a, u.target) || r.isExtraPart(a, u.target) || r.fireEventInstead.fold(() => Ao.close(a), (p) => lo(a, p.event)));
|
|
36831
36831
|
} } };
|
|
36832
36832
|
}, je = lc([Wl("fireEventInstead", [Ge("event", Gu())]), aa("doReposition")]), _t = (n) => {
|
|
36833
|
-
const r =
|
|
36833
|
+
const r = Ni("Reposition", je, n);
|
|
36834
36834
|
return { [jc()]: { onReceive: (a) => {
|
|
36835
36835
|
Ao.isOpen(a) && r.fireEventInstead.fold(() => r.doReposition(a), (u) => lo(a, u.event));
|
|
36836
36836
|
} } };
|
|
@@ -36885,7 +36885,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
36885
36885
|
}, en = (n) => {
|
|
36886
36886
|
const r = lr.getCoupled(n, "sandbox");
|
|
36887
36887
|
An(r);
|
|
36888
|
-
}, Mo = () => [Ge("sandboxClasses", []), gp("sandboxBehaviours", [yo, Qi, Ao, zt])], Wo = z([pt("dom"), pt("fetch"), ko("onOpen"),
|
|
36888
|
+
}, Mo = () => [Ge("sandboxClasses", []), gp("sandboxBehaviours", [yo, Qi, Ao, zt])], Wo = z([pt("dom"), pt("fetch"), ko("onOpen"), Fi("onExecute"), Ge("getHotspot", N.some), Ge("getAnchorOverrides", z({})), Gf(), Yr("dropdownBehaviours", [to, lr, an, Rn]), pt("toggleClass"), Ge("eventOrder", {}), No("lazySink"), Ge("matchWidth", !1), Ge("useMinWidth", !1), No("role"), No("listRole")].concat(Mo())), Io = z([jl({ schema: [dg(), Ge("fakeFocus", !1)], name: "menu", defaults: (n) => ({ onExecute: n.onExecute }) }), pe()]), ns = Za({ name: "Dropdown", configFields: Wo(), partFields: Io(), factory: (n, r, a, u) => {
|
|
36889
36889
|
const p = (w) => {
|
|
36890
36890
|
Ao.getState(w).each((T) => {
|
|
36891
36891
|
V.highlightPrimary(T);
|
|
@@ -37096,7 +37096,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37096
37096
|
n.type !== "range" && a.dom.setSelectionRange(0, u.length);
|
|
37097
37097
|
} : X })]), a9 = (n) => ({ ...kT(n), ...ka(n.inputBehaviours, [zt.config({ store: { mode: "manual", ...n.data.map((r) => ({ initialValue: r })).getOr({}), getValue: (r) => n.fromInputValue(Vu(r.element)), setValue: (r, a) => {
|
|
37098
37098
|
Vu(r.element) !== a && Ld(r.element, n.toInputValue(a));
|
|
37099
|
-
} }, onSetValue: n.onSetValue })]) }), TT = (n) => ({ tag: n.tag, attributes: { type: n.type, ...n.inputAttributes }, styles: n.inputStyles, classes: n.inputClasses }), Ap = xc({ name: "Input", configFields: AT(), factory: (n, r) => ({ uid: n.uid, dom: TT(n), components: [], behaviours: a9(n), eventOrder: n.eventOrder }) }), th = a4(S2(), Ep()), nA = z([pt("lazySink"), No("dragBlockClass"), bo("getBounds", Sa), Ge("useTabstopAt", fe), Ge("firstTabstop", 0), Ge("eventOrder", {}), Yr("modalBehaviours", [an]),
|
|
37099
|
+
} }, onSetValue: n.onSetValue })]) }), TT = (n) => ({ tag: n.tag, attributes: { type: n.type, ...n.inputAttributes }, styles: n.inputStyles, classes: n.inputClasses }), Ap = xc({ name: "Input", configFields: AT(), factory: (n, r) => ({ uid: n.uid, dom: TT(n), components: [], behaviours: a9(n), eventOrder: n.eventOrder }) }), th = a4(S2(), Ep()), nA = z([pt("lazySink"), No("dragBlockClass"), bo("getBounds", Sa), Ge("useTabstopAt", fe), Ge("firstTabstop", 0), Ge("eventOrder", {}), Yr("modalBehaviours", [an]), Fi("onExecute"), Hc("onEscape")]), oA = { sketch: ge }, sA = z([$c({ name: "draghandle", overrides: (n, r) => ({ behaviours: At([Kd.config({ mode: "mouse", getTarget: (a) => zl(a, '[role="dialog"]').getOr(a), blockerClass: n.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle:
|
|
37100
37100
|
` + JSON.stringify(r, null, 2)).message), getBounds: n.getDragBounds })]) }) }), za({ schema: [pt("dom")], name: "title" }), za({ factory: oA, schema: [pt("dom")], name: "close" }), za({ factory: oA, schema: [pt("dom")], name: "body" }), $c({ factory: oA, schema: [pt("dom")], name: "footer" }), jl({ factory: { sketch: (n, r) => ({ ...n, dom: r.dom, components: r.components }) }, schema: [Ge("dom", { tag: "div", styles: { position: "fixed", left: "0px", top: "0px", right: "0px", bottom: "0px" } }), Ge("components", [])], name: "blocker" })]), zr = Za({ name: "ModalDialog", configFields: nA(), partFields: sA(), factory: (n, r, a, u) => {
|
|
37101
37101
|
const p = Uo(), h = Ht("modal-events"), y = { ...n.eventOrder, [Zl()]: [h].concat(n.eventOrder["alloy.system.attached"] || []) }, E = il();
|
|
37102
37102
|
return { uid: n.uid, dom: n.dom, components: r, apis: { show: (w) => {
|
|
@@ -37571,7 +37571,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37571
37571
|
oa(a, "type") !== "number" && r(p, u);
|
|
37572
37572
|
}, CA = (n) => {
|
|
37573
37573
|
yA(n, (r, a) => r.setSelectionRange(a.length, a.length));
|
|
37574
|
-
}, C_ = z("alloy.typeahead.itemexecute"), EA = z([No("lazySink"), pt("fetch"), Ge("minChars", 5), Ge("responseTime", 1e3), ko("onOpen"), Ge("getHotspot", N.some), Ge("getAnchorOverrides", z({})), Ge("layouts", N.none()), Ge("eventOrder", {}), Px("model", {}, [Ge("getDisplayText", (n) => n.meta !== void 0 && n.meta.text !== void 0 ? n.meta.text : n.value), Ge("selectsOver", !0), Ge("populateFromBrowse", !0)]), ko("onSetValue"),
|
|
37574
|
+
}, C_ = z("alloy.typeahead.itemexecute"), EA = z([No("lazySink"), pt("fetch"), Ge("minChars", 5), Ge("responseTime", 1e3), ko("onOpen"), Ge("getHotspot", N.some), Ge("getAnchorOverrides", z({})), Ge("layouts", N.none()), Ge("eventOrder", {}), Px("model", {}, [Ge("getDisplayText", (n) => n.meta !== void 0 && n.meta.text !== void 0 ? n.meta.text : n.value), Ge("selectsOver", !0), Ge("populateFromBrowse", !0)]), ko("onSetValue"), Fi("onExecute"), ko("onItemExecute"), Ge("inputClasses", []), Ge("inputAttributes", {}), Ge("inputStyles", {}), Ge("matchWidth", !0), Ge("useMinWidth", !1), Ge("dismissOnBlur", !0), Mf(["openClass"]), No("initialData"), No("listRole"), Yr("typeaheadBehaviours", [Rn, zt, hC, an, to, lr]), mr("lazyTypeaheadComp", () => Yt(N.none)), mr("previewing", () => Yt(!0))].concat(AT()).concat(Mo())), lD = z([jl({ schema: [dg()], name: "menu", overrides: (n) => ({ fakeFocus: !0, onHighlightItem: (r, a, u) => {
|
|
37575
37575
|
n.previewing.get() ? n.lazyTypeaheadComp.get().each((p) => {
|
|
37576
37576
|
((h, y, E) => {
|
|
37577
37577
|
if (h.selectsOver) {
|
|
@@ -37685,7 +37685,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37685
37685
|
return !em(n) && (u || a || r === !0);
|
|
37686
37686
|
}, RA = (n) => {
|
|
37687
37687
|
const r = Rt(9, (u) => n.options.get("toolbar" + (u + 1))), a = qt(r, k);
|
|
37688
|
-
return
|
|
37688
|
+
return Ai(a.length > 0, a);
|
|
37689
37689
|
}, em = (n) => RA(n).fold(() => {
|
|
37690
37690
|
const r = IC(n);
|
|
37691
37691
|
return se(r, k) && r.length > 0;
|
|
@@ -37828,7 +37828,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37828
37828
|
Pn && Pn.hasAttribute(cr) && (Fs = Pn.getAttribute(cr));
|
|
37829
37829
|
const Cs = "dompurify" + (Fs ? "#" + Fs : "");
|
|
37830
37830
|
try {
|
|
37831
|
-
return Jn.createPolicy(Cs, { createHTML: (
|
|
37831
|
+
return Jn.createPolicy(Cs, { createHTML: (Hi) => Hi, createScriptURL: (Hi) => Hi });
|
|
37832
37832
|
} catch {
|
|
37833
37833
|
return console.warn("TrustedTypes policy " + Cs + " could not be created."), null;
|
|
37834
37834
|
}
|
|
@@ -37901,8 +37901,8 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37901
37901
|
if (Ov && !Do[Pn]) {
|
|
37902
37902
|
const Fs = Ee(Ke) || Ke.parentNode, cr = le(Ke) || Ke.childNodes;
|
|
37903
37903
|
if (cr && Fs) for (let Cs = cr.length - 1; Cs >= 0; --Cs) {
|
|
37904
|
-
const
|
|
37905
|
-
|
|
37904
|
+
const Hi = me(cr[Cs], !0);
|
|
37905
|
+
Hi.__removalCount = (Ke.__removalCount || 0) + 1, Fs.insertBefore(Hi, ie(Ke));
|
|
37906
37906
|
}
|
|
37907
37907
|
}
|
|
37908
37908
|
return Du(Ke), !0;
|
|
@@ -37910,8 +37910,8 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37910
37910
|
return Ke instanceof T && !function(Fs) {
|
|
37911
37911
|
let cr = Ee(Fs);
|
|
37912
37912
|
cr && cr.tagName || (cr = { namespaceURI: fx, tagName: "template" });
|
|
37913
|
-
const Cs = uh(Fs.tagName),
|
|
37914
|
-
return !!Rk[Fs.namespaceURI] && (Fs.namespaceURI === TE ? cr.namespaceURI === pf ? Cs === "svg" : cr.namespaceURI === kE ? Cs === "svg" && (
|
|
37913
|
+
const Cs = uh(Fs.tagName), Hi = uh(cr.tagName);
|
|
37914
|
+
return !!Rk[Fs.namespaceURI] && (Fs.namespaceURI === TE ? cr.namespaceURI === pf ? Cs === "svg" : cr.namespaceURI === kE ? Cs === "svg" && (Hi === "annotation-xml" || DE[Hi]) : !!aN[Cs] : Fs.namespaceURI === kE ? cr.namespaceURI === pf ? Cs === "math" : cr.namespaceURI === TE ? Cs === "math" && fS[Hi] : !!Wn[Cs] : Fs.namespaceURI === pf ? !(cr.namespaceURI === TE && !fS[Hi]) && !(cr.namespaceURI === kE && !DE[Hi]) && !Wn[Cs] && (GM[Cs] || !aN[Cs]) : !(OE !== "application/xhtml+xml" || !Rk[Fs.namespaceURI]));
|
|
37915
37915
|
}(Ke) ? (Du(Ke), !0) : Pn !== "noscript" && Pn !== "noembed" && Pn !== "noframes" || !Xc(/<\/no(script|embed|frames)/i, Ke.innerHTML) ? (kh && Ke.nodeType === 3 && (Jn = Ke.textContent, M_([kt, rn, gn], (Fs) => {
|
|
37916
37916
|
Jn = L2(Jn, Fs, " ");
|
|
37917
37917
|
}), Ke.textContent !== Jn && (uv(a.removed, { element: Ke.cloneNode() }), Ke.textContent = Jn)), g0(mt.afterSanitizeElements, Ke, null), !1) : (Du(Ke), !0);
|
|
@@ -37940,7 +37940,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37940
37940
|
const Pn = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: Zo, forceKeepAttr: void 0 };
|
|
37941
37941
|
let Fs = Jn.length;
|
|
37942
37942
|
for (; Fs--; ) {
|
|
37943
|
-
const cr = Jn[Fs], { name: Cs, namespaceURI:
|
|
37943
|
+
const cr = Jn[Fs], { name: Cs, namespaceURI: Hi, value: Up } = cr, h0 = nl(Cs);
|
|
37944
37944
|
let ol = Cs === "value" ? Up : I9(Up);
|
|
37945
37945
|
const YM = ol;
|
|
37946
37946
|
if (Pn.attrName = h0, Pn.attrValue = ol, Pn.keepAttr = !0, Pn.forceKeepAttr = void 0, g0(mt.uponSanitizeAttribute, Ke, Pn), ol = Pn.attrValue, !AE || h0 !== "id" && h0 !== "name" || (px(Cs, Ke), ol = "user-content-" + ol), Hp && Xc(/((--!?|])>)|<\/(style|title)/i, ol)) {
|
|
@@ -37961,7 +37961,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37961
37961
|
});
|
|
37962
37962
|
const BE = nl(Ke.nodeName);
|
|
37963
37963
|
if (cN(BE, h0, ol)) {
|
|
37964
|
-
if (_e && typeof Q == "object" && typeof Q.getAttributeType == "function" && !
|
|
37964
|
+
if (_e && typeof Q == "object" && typeof Q.getAttributeType == "function" && !Hi) switch (Q.getAttributeType(BE, h0)) {
|
|
37965
37965
|
case "TrustedHTML":
|
|
37966
37966
|
ol = _e.createHTML(ol);
|
|
37967
37967
|
break;
|
|
@@ -37969,7 +37969,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37969
37969
|
ol = _e.createScriptURL(ol);
|
|
37970
37970
|
}
|
|
37971
37971
|
if (ol !== YM) try {
|
|
37972
|
-
|
|
37972
|
+
Hi ? Ke.setAttributeNS(Hi, Cs, ol) : Ke.setAttribute(Cs, ol), mS(Ke) ? Du(Ke) : ID(a.removed);
|
|
37973
37973
|
} catch {
|
|
37974
37974
|
}
|
|
37975
37975
|
} else px(Cs, Ke);
|
|
@@ -37999,8 +37999,8 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
37999
37999
|
if (Pn = Lk(Ke), !Pn) return zp ? null : Dv ? Te : "";
|
|
38000
38000
|
}
|
|
38001
38001
|
Pn && ux && Du(Pn.firstChild);
|
|
38002
|
-
const
|
|
38003
|
-
for (; cr =
|
|
38002
|
+
const Hi = Pk(Th ? Ke : Pn);
|
|
38003
|
+
for (; cr = Hi.nextNode(); ) lN(cr), Mk(cr), cr.content instanceof y && dN(cr.content);
|
|
38004
38004
|
if (Th) return Ke;
|
|
38005
38005
|
if (zp) {
|
|
38006
38006
|
if (dx) for (Cs = et.call(Pn.ownerDocument); Pn.firstChild; ) Cs.appendChild(Pn.firstChild);
|
|
@@ -38460,7 +38460,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
38460
38460
|
const a = Wt(n.selection.getStart()), u = r === "hilitecolor" ? Bf(a, (p) => {
|
|
38461
38461
|
if (Ba(p)) {
|
|
38462
38462
|
const h = Lr(p, "background-color");
|
|
38463
|
-
return
|
|
38463
|
+
return Ai(((y) => H8(y).exists((E) => E.alpha !== 0))(h), h);
|
|
38464
38464
|
}
|
|
38465
38465
|
return N.none();
|
|
38466
38466
|
}).getOr("rgba(0, 0, 0, 0)") : Lr(a, "color");
|
|
@@ -38483,7 +38483,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
38483
38483
|
n.setTooltip(r);
|
|
38484
38484
|
}, CO = (n, r) => (a) => {
|
|
38485
38485
|
const u = bO(n, r);
|
|
38486
|
-
return
|
|
38486
|
+
return Si(u, a.toUpperCase());
|
|
38487
38487
|
}, Y8 = (n, r, a) => {
|
|
38488
38488
|
if (Fr(a)) return r === "forecolor" ? "Text color" : "Background color";
|
|
38489
38489
|
const u = r === "forecolor" ? "Text color {0}" : "Background color {0}", p = b3(q2(n, r), r, !1), h = W(p, (y) => y.value === a).getOr({ text: "" }).text;
|
|
@@ -38785,7 +38785,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
38785
38785
|
var R;
|
|
38786
38786
|
return iE(u, T, ["tox-form__group--collection"], []);
|
|
38787
38787
|
}, o6 = Ht("color-input-change"), LO = Ht("color-swatch-change"), PO = Ht("color-picker-cancel"), l0 = () => yo.config({ find: N.some }), dE = (n) => yo.config({ find: (r) => Zi(r.element, n).bind((a) => r.getSystem().getByDom(a).toOptional()) }), E3 = Fn([Ge("preprocess", ge), Ge("postprocess", ge)]), MO = (n, r) => {
|
|
38788
|
-
const a =
|
|
38788
|
+
const a = Ni("RepresentingConfigs.memento processors", E3, r);
|
|
38789
38789
|
return zt.config({ store: { mode: "manual", getValue: (u) => {
|
|
38790
38790
|
const p = n.get(u), h = zt.getValue(p);
|
|
38791
38791
|
return a.postprocess(h);
|
|
@@ -38989,7 +38989,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
38989
38989
|
};
|
|
38990
38990
|
pE && u.addEventListener("load", E, { once: !0 }), p.open(), p.write(r), p.close(), pE || E();
|
|
38991
38991
|
});
|
|
38992
|
-
}, kP =
|
|
38992
|
+
}, kP = Ai(QO, pE ? 500 : 200).map((n) => /* @__PURE__ */ ((r, a) => {
|
|
38993
38993
|
let u = null, p = null;
|
|
38994
38994
|
return { cancel: () => {
|
|
38995
38995
|
F(u) || (clearTimeout(u), u = null, p = null);
|
|
@@ -39077,7 +39077,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
39077
39077
|
return N.from(V.tieredData(p, R, h.expansions));
|
|
39078
39078
|
}, gE = (n) => !ro(n, "items"), iB = "data-value", d6 = (n, r, a, u, p) => Le(a, (h) => gE(h) ? { type: "togglemenuitem", ...p ? {} : { role: "option" }, text: h.text, value: h.value, active: h.value === u, onAction: () => {
|
|
39079
39079
|
zt.setValue(n, h.value), xn(n, kc, { name: r }), Rn.focus(n);
|
|
39080
|
-
} } : { type: "nestedmenuitem", text: h.text, getSubmenuItems: () => d6(n, r, h.items, u, p) }), f6 = (n, r) => vn(n, (a) => gE(a) ?
|
|
39080
|
+
} } : { type: "nestedmenuitem", text: h.text, getSubmenuItems: () => d6(n, r, h.items, u, p) }), f6 = (n, r) => vn(n, (a) => gE(a) ? Ai(a.value === r, a) : f6(a.items, r)), m6 = (n) => {
|
|
39081
39081
|
const r = { "": 0, px: 0, pt: 1, mm: 1, pc: 2, ex: 2, em: 2, ch: 2, rem: 2, cm: 3, in: 4, "%": 4 };
|
|
39082
39082
|
let a = n.value.toFixed((u = n.unit) in r ? r[u] : 1);
|
|
39083
39083
|
var u;
|
|
@@ -39365,7 +39365,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
39365
39365
|
});
|
|
39366
39366
|
}), l0()]) };
|
|
39367
39367
|
})(0, r.shared.providers, a)), dropzone: $r((n, r, a) => EP(n, r.shared.providers, a)), grid: $r((n, r) => ((a, u) => ({ dom: { tag: "div", classes: ["tox-form__grid", `tox-form__grid--${a.columns}col`] }, components: Le(a.items, u.interpreter) }))(n, r.shared)), listbox: $r((n, r, a) => ((u, p, h) => {
|
|
39368
|
-
const y = pn(u.items, (H) => !gE(H)), E = p.shared.providers, w = h.bind((H) => f6(u.items, H)).orThunk(() => We(u.items).filter(gE)), T = u.label.map((H) => bh(H, E)), R = jn.parts.field({ dom: {}, factory: { sketch: (H) => k3({ context: u.context, uid: H.uid, text: w.map((G) => G.text), icon: N.none(), tooltip: N.none(), role:
|
|
39368
|
+
const y = pn(u.items, (H) => !gE(H)), E = p.shared.providers, w = h.bind((H) => f6(u.items, H)).orThunk(() => We(u.items).filter(gE)), T = u.label.map((H) => bh(H, E)), R = jn.parts.field({ dom: {}, factory: { sketch: (H) => k3({ context: u.context, uid: H.uid, text: w.map((G) => G.text), icon: N.none(), tooltip: N.none(), role: Ai(!y, "combobox"), ...y ? {} : { listRole: "listbox" }, ariaLabel: u.label, fetch: (G, Q) => {
|
|
39369
39369
|
const ve = d6(G, u.name, u.items, zt.getValue(G), y);
|
|
39370
39370
|
Q(G2(ve, bd.CLOSE_ON_EXECUTE, p, { isHorizontalMenu: !1, search: N.none() }));
|
|
39371
39371
|
}, onSetup: z(X), getApi: z({}), columns: 1, presets: "normal", classes: [], dropdownBehaviours: [ts.config({}), wv(w.map((G) => G.value), (G) => oa(G.element, iB), (G, Q) => {
|
|
@@ -40229,7 +40229,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40229
40229
|
return { matchOpt: W(h, (T) => {
|
|
40230
40230
|
const R = T.format;
|
|
40231
40231
|
return R.toLowerCase() === y || u(R).toLowerCase() === u(y).toLowerCase();
|
|
40232
|
-
}).orThunk(() =>
|
|
40232
|
+
}).orThunk(() => Ai(((T, R) => {
|
|
40233
40233
|
if (T.indexOf("-apple-system") === 0 || R.length > 0) {
|
|
40234
40234
|
const D = Z6(T.toLowerCase());
|
|
40235
40235
|
return xR(D, CM) || xR(D, R);
|
|
@@ -40391,7 +40391,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40391
40391
|
})(E) : ((T) => se(T, (R) => (ro(R, "name") || ro(R, "label")) && ro(R, "items")))(E) ? E : (console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"), []);
|
|
40392
40392
|
})(r), h = Le(p, (y) => {
|
|
40393
40393
|
const E = Jt(y.items, (w) => w.trim().length === 0 ? [] : ((T, R, D, H, G, Q) => on(R, D.toLowerCase()).orThunk(() => Q.bind((ve) => vn(ve, (me) => on(R, me + D.toLowerCase())))).fold(() => on(_R, D.toLowerCase()).map((ve) => ve(T, G)), (ve) => ve.type !== "grouptoolbarbutton" || H ? ((me, be, ie, le) => on(SM, me.type).fold(() => (console.error("skipping button defined by", me), N.none()), (Ee) => N.some(Ee(me, be, ie, le))))(ve, G, T, D.toLowerCase()) : (console.warn(`Ignoring the '${D}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`), N.none())))(n, r.buttons, w, r.allowToolbarGroups, a, u).toArray());
|
|
40394
|
-
return { title: N.from(n.translate(y.name)), label:
|
|
40394
|
+
return { title: N.from(n.translate(y.name)), label: Ai(y.label !== void 0, n.translate(y.label)), items: E };
|
|
40395
40395
|
});
|
|
40396
40396
|
return qt(h, (y) => y.items.length > 0);
|
|
40397
40397
|
}, q6 = (n, r, a, u) => {
|
|
@@ -40509,13 +40509,13 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40509
40509
|
});
|
|
40510
40510
|
const Te = fl(), Fe = !(w || w || !(wr(h.outerContainer.element).left + Eo(h.outerContainer.element) >= window.innerWidth - 40 || sa(h.outerContainer.element, "width").isSome()) || (In(h.outerContainer.element, "position", "absolute"), In(h.outerContainer.element, "left", "0px"), no(h.outerContainer.element, "width"), 0));
|
|
40511
40511
|
if (Q && Ts.refreshToolbar(h.outerContainer), !w) {
|
|
40512
|
-
const Ve = fl(), et =
|
|
40512
|
+
const Ve = fl(), et = Ai(Te.left !== Ve.left, Te);
|
|
40513
40513
|
((ft, ut) => {
|
|
40514
40514
|
p.on((mt) => {
|
|
40515
40515
|
const kt = Ts.getToolbar(h.outerContainer), rn = be(kt), gn = Ws(r), On = ((Ho, mo) => lh(Ho) ? O(mo) : N.none())(n, h.outerContainer.element), oo = On.fold(() => gn.x, (Ho) => {
|
|
40516
40516
|
const mo = Ws(Ho);
|
|
40517
40517
|
return Ko(Ho, Oe()) ? gn.x : gn.x - mo.x;
|
|
40518
|
-
}), ps =
|
|
40518
|
+
}), ps = Ai(ft, Math.ceil(h.outerContainer.element.dom.getBoundingClientRect().width)).filter((Ho) => Ho > 150).map((Ho) => {
|
|
40519
40519
|
const mo = ut.getOr(fl()), yn = window.innerWidth - (oo - mo.left), rs = Math.max(Math.min(Ho, yn), 150);
|
|
40520
40520
|
return yn < Ho && In(h.outerContainer.element, "width", rs + "px"), { width: rs + "px" };
|
|
40521
40521
|
}).getOr({ width: "max-content" }), zs = { position: "absolute", left: Math.round(oo) + "px", top: On.fold(() => H() ? Math.max(gn.y - Qs(mt.element) + rn, 0) : gn.bottom, (Ho) => {
|
|
@@ -40728,7 +40728,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40728
40728
|
In(E, "position", w);
|
|
40729
40729
|
const R = Q6(h, Ws(r), -20) && !u.isReposition() ? Vm : iy;
|
|
40730
40730
|
return T.each((D) => In(E, "position", D)), R;
|
|
40731
|
-
})(r, u.getMode()) : (u.getMode() === "fixed" ? p.y + fl().top : p.y) + (Qs(r) + 12) <= h.y ? yl :
|
|
40731
|
+
})(r, u.getMode()) : (u.getMode() === "fixed" ? p.y + fl().top : p.y) + (Qs(r) + 12) <= h.y ? yl : Pi;
|
|
40732
40732
|
}, RM = (n, r, a, u) => {
|
|
40733
40733
|
const p = (y) => (E, w, T, R, D) => ({ ...BM(n, R, y, a, D)({ ...E, y: D.y, height: D.height }, w, T, R, D), alwaysFit: !0 }), h = (y) => tk(u) ? [p(y)] : [];
|
|
40734
40734
|
return r ? { onLtr: (y) => [gr, kr, pr, Aa, oi, ca].concat(h(y)), onRtl: (y) => [gr, pr, kr, oi, Aa, ca].concat(h(y)) } : { onLtr: (y) => [ca, gr, Aa, kr, oi, pr].concat(h(y)), onRtl: (y) => [ca, gr, oi, pr, Aa, kr].concat(h(y)) };
|
|
@@ -40801,7 +40801,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40801
40801
|
return J3(n, h, Ve, et);
|
|
40802
40802
|
}, G = () => !(n.removed || y() && p.isContextMenuOpen()), Q = () => {
|
|
40803
40803
|
if (G()) {
|
|
40804
|
-
const Ve = H(), et =
|
|
40804
|
+
const Ve = H(), et = Si(T.get(), "node") ? ((ft, ut) => ut.filter((mt) => Fa(mt) && vs(mt)).map(rr).getOrThunk(() => X3(ft)))(n, E.get()) : X3(n);
|
|
40805
40805
|
return Ve.height <= 0 || !Q6(et, Ve, 0.01);
|
|
40806
40806
|
}
|
|
40807
40807
|
return !0;
|
|
@@ -40828,12 +40828,12 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40828
40828
|
}, _e = (Ve, et) => {
|
|
40829
40829
|
if (Fe.cancel(), !G()) return;
|
|
40830
40830
|
const ft = Ee(Ve), ut = Ve[0].position, mt = ((rn, gn) => {
|
|
40831
|
-
const On = rn === "node" ? h.anchors.node(gn) : h.anchors.cursor(), oo = ((ps, zs, Ho, mo) => zs === "line" ? { bubble: gc(12, 0, ek), layouts: { onLtr: () => [ey], onRtl: () => [h4] }, overrides: Bl } : { bubble: gc(0, 12, ek, 1 / 12), layouts: RM(ps, Ho, mo, zs), overrides: Bl })(n, rn, y(), { lastElement: E.get, isReposition: () =>
|
|
40831
|
+
const On = rn === "node" ? h.anchors.node(gn) : h.anchors.cursor(), oo = ((ps, zs, Ho, mo) => zs === "line" ? { bubble: gc(12, 0, ek), layouts: { onLtr: () => [ey], onRtl: () => [h4] }, overrides: Bl } : { bubble: gc(0, 12, ek, 1 / 12), layouts: RM(ps, Ho, mo, zs), overrides: Bl })(n, rn, y(), { lastElement: E.get, isReposition: () => Si(w.get(), 0), getMode: () => hi.getMode(a) });
|
|
40832
40832
|
return so(On, oo);
|
|
40833
40833
|
})(ut, et);
|
|
40834
40834
|
T.set(ut), w.set(1);
|
|
40835
40835
|
const kt = D.element;
|
|
40836
|
-
no(kt, "display"), ((rn) =>
|
|
40836
|
+
no(kt, "display"), ((rn) => Si(yr(rn, E.get(), Ko), !0))(et) || (Bs(kt, nk), hi.reset(a, D)), Gs.showWithinBounds(D, be(ft), { anchor: mt, transition: { classes: [nk], mode: "placement" } }, () => N.some(H())), et.fold(E.clear, E.set), Q() && In(kt, "display", "none");
|
|
40837
40837
|
};
|
|
40838
40838
|
let Te = !1;
|
|
40839
40839
|
const Fe = _0(() => {
|
|
@@ -40888,7 +40888,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40888
40888
|
}), n.on(K3, ve), n.on("contexttoolbar-show", (Ve) => {
|
|
40889
40889
|
const et = le();
|
|
40890
40890
|
on(et.lookupTable, Ve.toolbarKey).each((ft) => {
|
|
40891
|
-
_e([ft],
|
|
40891
|
+
_e([ft], Ai(Ve.target !== n, Ve.target)), mR(D);
|
|
40892
40892
|
});
|
|
40893
40893
|
}), n.on("focusout", (Ve) => {
|
|
40894
40894
|
O2.setEditorTimeout(n, () => {
|
|
@@ -40917,7 +40917,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
40917
40917
|
const w = (R) => {
|
|
40918
40918
|
R && (h.on((D) => D.setActive(!1)), h.set(E)), E.setActive(R);
|
|
40919
40919
|
};
|
|
40920
|
-
w(
|
|
40920
|
+
w(Si(p, r.hash(y)));
|
|
40921
40921
|
const T = r.watcher(n, y, w);
|
|
40922
40922
|
return () => {
|
|
40923
40923
|
h.clear(), T();
|
|
@@ -41072,7 +41072,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
41072
41072
|
G2(y, bd.CLOSE_ON_EXECUTE, u, { isHorizontalMenu: !1, search: N.none() }).map((w) => {
|
|
41073
41073
|
r.preventDefault(), Gs.showMenuAt(p, { anchor: E }, { menu: { markers: fh("normal") }, data: w });
|
|
41074
41074
|
});
|
|
41075
|
-
}, FR = { onLtr: () => [gr, kr, pr, Aa, oi, ca, yl,
|
|
41075
|
+
}, FR = { onLtr: () => [gr, kr, pr, Aa, oi, ca, yl, Pi, vu, vb, h1, g1], onRtl: () => [gr, pr, kr, oi, Aa, ca, yl, Pi, h1, g1, vu, vb] }, lk = { valignCentre: [], alignCentre: [], alignLeft: ["tox-pop--align-left"], alignRight: ["tox-pop--align-right"], right: ["tox-pop--right"], left: ["tox-pop--left"], bottom: ["tox-pop--bottom"], top: ["tox-pop--top"] }, nS = (n, r, a, u, p, h) => {
|
|
41076
41076
|
const y = il(), E = y.os.isiOS(), w = y.os.isMacOS(), T = y.os.isAndroid(), R = y.deviceType.isTouch(), D = () => {
|
|
41077
41077
|
const H = a();
|
|
41078
41078
|
((G, Q, ve, me, be, ie, le) => {
|
|
@@ -41444,7 +41444,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
41444
41444
|
})(n, ft.mothership, mt), p.setup(n, le.popup.shared, Q), PM(n, le.popup), HM(n, le.popup.shared.getSink, le.popup), ((yn) => {
|
|
41445
41445
|
const { sidebars: rs } = yn.ui.registry.getAll();
|
|
41446
41446
|
ze(Gn(rs), (Zo) => {
|
|
41447
|
-
const Vr = rs[Zo], Yo = () =>
|
|
41447
|
+
const Vr = rs[Zo], Yo = () => Si(N.from(yn.queryCommandValue("ToggleSidebar")), Zo);
|
|
41448
41448
|
yn.ui.registry.addToggleButton(Zo, { icon: Vr.icon, tooltip: Vr.tooltip, onAction: (Ur) => {
|
|
41449
41449
|
yn.execCommand("ToggleSidebar", !1, Zo), Ur.setActive(Yo());
|
|
41450
41450
|
}, onSetup: (Ur) => {
|
|
@@ -41582,7 +41582,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
41582
41582
|
((h, y) => {
|
|
41583
41583
|
ze(y, (E) => {
|
|
41584
41584
|
((w, T) => {
|
|
41585
|
-
|
|
41585
|
+
Bi(w) ? w.dom.classList.toggle(T) : ((R, D) => at(qs(R), D) ? H0(R, D) : I0(R, D))(w, T), $u(w);
|
|
41586
41586
|
})(h, E);
|
|
41587
41587
|
});
|
|
41588
41588
|
})(a, [GR, ...p.toArray()]);
|
|
@@ -41687,7 +41687,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
41687
41687
|
}, QR = (n, r, a, u = !1, p) => {
|
|
41688
41688
|
const h = Ht("dialog"), y = Ht("dialog-label"), E = Ht("dialog-content"), w = n.internalDialog, T = Yt(w.size), R = lS(T.get()).toArray(), D = Lo(((_e, Te, Fe, Ve) => Cu.sketch({ dom: bi('<div class="tox-dialog__header"></div>'), components: [Ek(_e, Te, N.some(Fe), Ve), WR(), Ck(Ve)], containerBehaviours: At([Kd.config({ mode: "mouse", blockerClass: "blocker", getTarget: (et) => ji(et, '[role="dialog"]').getOrDie(), snaps: { getSnapPoints: () => [], leftAttr: "data-drag-left", topAttr: "data-drag-top" }, onDrag: (et, ft) => {
|
|
41689
41689
|
et.getSystem().broadcastOn([jc()], { target: ft });
|
|
41690
|
-
} })]) }))({ title: w.title, draggable: !0 }, h, y, a.shared.providers)), H = Lo(((_e, Te, Fe, Ve, et, ft) => hk(_e, Te, N.some(Fe), Ve, et, ft))({ body: w.body, initialData: w.initialData }, h, E, a, u, (_e) => uS(le, _e))), G = wk(w.buttons), Q = XR(G), ve =
|
|
41690
|
+
} })]) }))({ title: w.title, draggable: !0 }, h, y, a.shared.providers)), H = Lo(((_e, Te, Fe, Ve, et, ft) => hk(_e, Te, N.some(Fe), Ve, et, ft))({ body: w.body, initialData: w.initialData }, h, E, a, u, (_e) => uS(le, _e))), G = wk(w.buttons), Q = XR(G), ve = Ai(G.length !== 0, Lo(((_e, Te, Fe) => JR(_e, Te, Fe))({ buttons: G }, h, a))), me = Sk(() => Ee, { onBlock: (_e) => {
|
|
41691
41691
|
id.block(ie, (Te, Fe) => {
|
|
41692
41692
|
const Ve = D.getOpt(ie).map((et) => Qs(et.element));
|
|
41693
41693
|
return jR(_e.message, Fe, a.shared.providers, Ve);
|
|
@@ -41808,7 +41808,7 @@ The conflicting element is` + (Fa(w.element) ? " " : " not ") + "already in the
|
|
|
41808
41808
|
const ie = Ht("dialog"), le = ve.internalDialog, Ee = ZR(le.title, ie, be), _e = Yt(le.size), Te = lS(_e.get()).toArray(), Fe = ((On, oo, ps, zs) => {
|
|
41809
41809
|
const Ho = hk(On, oo, N.none(), ps, !1, zs);
|
|
41810
41810
|
return zr.parts.body(Ho);
|
|
41811
|
-
})({ body: le.body, initialData: le.initialData }, ie, be, (On) => uS(rn, On)), Ve = wk(le.buttons), et = XR(Ve), ft =
|
|
41811
|
+
})({ body: le.body, initialData: le.initialData }, ie, be, (On) => uS(rn, On)), Ve = wk(le.buttons), et = XR(Ve), ft = Ai(Ve.length !== 0, cS({ buttons: Ve }, ie, be)), ut = Sk(() => gn, qR(() => kt, be.shared.providers, me), be.shared.getSink), mt = { id: ie, header: Ee, body: Fe, footer: ft, extraClasses: Te, extraBehaviours: [Yl.config({ channel: `${_3}-${ie}`, updateState: (On, oo) => (_e.set(oo.internalDialog.size), KR(oo.internalDialog.size, On), N.some(oo)), initialData: ve })], extraStyles: {} }, kt = wE(mt, ut, be), rn = { getId: z(ie), getRoot: z(kt), getBody: () => zr.getBody(kt), getFooter: () => zr.getFooter(kt), getFormWrapper: () => {
|
|
41812
41812
|
const On = zr.getBody(kt);
|
|
41813
41813
|
return yo.getCurrent(On).getOr(On);
|
|
41814
41814
|
}, toggleFullscreen: () => {
|
|
@@ -42606,7 +42606,7 @@ Required: ` + f.join(", "));
|
|
|
42606
42606
|
toOptional: () => fe.some(c)
|
|
42607
42607
|
};
|
|
42608
42608
|
return L;
|
|
42609
|
-
},
|
|
42609
|
+
}, wi = (c) => {
|
|
42610
42610
|
const f = () => x, x = {
|
|
42611
42611
|
// Debug info
|
|
42612
42612
|
tag: !1,
|
|
@@ -42631,14 +42631,14 @@ Required: ` + f.join(", "));
|
|
|
42631
42631
|
return x;
|
|
42632
42632
|
}, Jo = {
|
|
42633
42633
|
value: Qn,
|
|
42634
|
-
error:
|
|
42635
|
-
fromOption: (c, f) => c.fold(() =>
|
|
42634
|
+
error: wi,
|
|
42635
|
+
fromOption: (c, f) => c.fold(() => wi(f), Qn)
|
|
42636
42636
|
}, Nn = typeof window < "u" ? window : Function("return this;")(), ls = (c) => {
|
|
42637
42637
|
const f = c.replace(/\./g, "-");
|
|
42638
42638
|
return {
|
|
42639
42639
|
resolve: (_) => f + "-" + _
|
|
42640
42640
|
};
|
|
42641
|
-
},
|
|
42641
|
+
}, _i = (c, f, x = ge) => c.exists((_) => x(_, f)), Ht = (c) => {
|
|
42642
42642
|
const f = [], x = (_) => {
|
|
42643
42643
|
f.push(_);
|
|
42644
42644
|
};
|
|
@@ -42650,7 +42650,7 @@ Required: ` + f.join(", "));
|
|
|
42650
42650
|
for (let _ = 0; _ < c.length && x !== void 0 && x !== null; ++_)
|
|
42651
42651
|
x = x[c[_]];
|
|
42652
42652
|
return x;
|
|
42653
|
-
},
|
|
42653
|
+
}, Si = (c, f) => {
|
|
42654
42654
|
const x = c.split(".");
|
|
42655
42655
|
return mm(x, f);
|
|
42656
42656
|
}, Sd = (c) => {
|
|
@@ -42671,10 +42671,10 @@ Required: ` + f.join(", "));
|
|
|
42671
42671
|
...c,
|
|
42672
42672
|
on: (x) => c.get().each(x)
|
|
42673
42673
|
};
|
|
42674
|
-
}, Jp = (c, f) => c.substring(f),
|
|
42674
|
+
}, Jp = (c, f) => c.substring(f), Ai = (c, f, x) => f === "" || c.length >= f.length && c.substr(x, x + f.length) === f, wf = (c, f) => qr(c, f) ? Jp(c, f.length) : c, Zs = (c, f, x = 0, _) => {
|
|
42675
42675
|
const L = c.indexOf(f, x);
|
|
42676
42676
|
return L !== -1 ? K(_) ? !0 : L + f.length <= _ : !1;
|
|
42677
|
-
}, qr = (c, f) =>
|
|
42677
|
+
}, qr = (c, f) => Ai(c, f, 0), Uo = (c, f) => Ai(c, f, c.length - f.length), pm = ((c) => (f) => f.replace(c, ""))(/^\s+|\s+$/g), js = (c) => c.length > 0, Iu = (c) => {
|
|
42678
42678
|
const f = parseFloat(c);
|
|
42679
42679
|
return isNaN(f) ? fe.none() : fe.some(f);
|
|
42680
42680
|
}, Fl = (c, f) => {
|
|
@@ -42748,7 +42748,7 @@ Required: ` + f.join(", "));
|
|
|
42748
42748
|
}), Sf = (c, f, x) => {
|
|
42749
42749
|
const _ = c.cells, L = _.slice(0, f), V = _.slice(f), te = L.concat(x).concat(V);
|
|
42750
42750
|
return k0(c, te);
|
|
42751
|
-
},
|
|
42751
|
+
}, ki = (c, f, x) => Sf(c, f, [x]), oc = (c, f, x) => {
|
|
42752
42752
|
const _ = c.cells;
|
|
42753
42753
|
_[f] = x;
|
|
42754
42754
|
}, k0 = (c, f) => rl(c.element, f, c.section, c.isNew), Ko = (c, f) => {
|
|
@@ -42829,7 +42829,7 @@ Required: ` + f.join(", "));
|
|
|
42829
42829
|
}, kd = ro.generate([
|
|
42830
42830
|
{ ltr: ["start", "soffset", "finish", "foffset"] },
|
|
42831
42831
|
{ rtl: ["start", "soffset", "finish", "foffset"] }
|
|
42832
|
-
]),
|
|
42832
|
+
]), Ti = (c, f, x) => f(Gt.fromDom(x.startContainer), x.startOffset, Gt.fromDom(x.endContainer), x.endOffset), Qp = (c, f) => f.match({
|
|
42833
42833
|
domRange: (x) => ({
|
|
42834
42834
|
ltr: q(x),
|
|
42835
42835
|
rtl: fe.none
|
|
@@ -42847,7 +42847,7 @@ Required: ` + f.join(", "));
|
|
|
42847
42847
|
return x.collapsed ? f.rtl().filter((L) => L.collapsed === !1).map((L) => (
|
|
42848
42848
|
// We need to use "reversed" here, because the original only has one point (collapsed)
|
|
42849
42849
|
kd.rtl(Gt.fromDom(L.endContainer), L.endOffset, Gt.fromDom(L.startContainer), L.startOffset)
|
|
42850
|
-
)).getOrThunk(() =>
|
|
42850
|
+
)).getOrThunk(() => Ti(c, kd.ltr, x)) : Ti(c, kd.ltr, x);
|
|
42851
42851
|
}, eg = (c, f) => {
|
|
42852
42852
|
const x = Qp(c, f);
|
|
42853
42853
|
return R0(c, x);
|
|
@@ -42886,7 +42886,7 @@ Required: ` + f.join(", "));
|
|
|
42886
42886
|
), Ml = (c, f) => {
|
|
42887
42887
|
const x = f === void 0 ? document : f.dom;
|
|
42888
42888
|
return ym(x) ? [] : Rt(x.querySelectorAll(c), Gt.fromDom);
|
|
42889
|
-
},
|
|
42889
|
+
}, Di = (c, f) => {
|
|
42890
42890
|
const x = f === void 0 ? document : f.dom;
|
|
42891
42891
|
return ym(x) ? fe.none() : fe.from(x.querySelector(c)).map(Gt.fromDom);
|
|
42892
42892
|
}, vs = (c, f) => c.dom === f.dom, Ba = (c, f) => {
|
|
@@ -42936,7 +42936,7 @@ Required: ` + f.join(", "));
|
|
|
42936
42936
|
}), Ra = (c, f) => {
|
|
42937
42937
|
const x = String(f).toLowerCase();
|
|
42938
42938
|
return W(c, (_) => _.search(x));
|
|
42939
|
-
},
|
|
42939
|
+
}, Oi = (c, f) => Ra(c, f).map((x) => {
|
|
42940
42940
|
const _ = Er.detect(x.versionRegexes, f);
|
|
42941
42941
|
return {
|
|
42942
42942
|
current: x.name,
|
|
@@ -43069,7 +43069,7 @@ Required: ` + f.join(", "));
|
|
|
43069
43069
|
nu: Od
|
|
43070
43070
|
}, Zv = {
|
|
43071
43071
|
detect: (c, f, x) => {
|
|
43072
|
-
const _ = ll.browsers(), L = ll.oses(), V = f.bind((Se) => Mr(_, Se)).orThunk(() =>
|
|
43072
|
+
const _ = ll.browsers(), L = ll.oses(), V = f.bind((Se) => Mr(_, Se)).orThunk(() => Oi(_, c)).fold(bs.unknown, bs.nu), te = fi(L, c).fold(Wv.unknown, Wv.nu), pe = Ce(te, V, c, x);
|
|
43073
43073
|
return {
|
|
43074
43074
|
browser: V,
|
|
43075
43075
|
os: te,
|
|
@@ -43078,13 +43078,13 @@ Required: ` + f.join(", "));
|
|
|
43078
43078
|
}
|
|
43079
43079
|
}, zh = (c) => window.matchMedia(c).matches;
|
|
43080
43080
|
let Mn = nc(() => Zv.detect(window.navigator.userAgent, fe.from(window.navigator.userAgentData), zh));
|
|
43081
|
-
const $h = () => Mn(), oa = (c, f) =>
|
|
43081
|
+
const $h = () => Mn(), oa = (c, f) => Si(c, f), _a = (c, f) => {
|
|
43082
43082
|
const x = oa(c, f);
|
|
43083
43083
|
if (x == null)
|
|
43084
43084
|
throw new Error(c + " not available on this browser");
|
|
43085
43085
|
return x;
|
|
43086
43086
|
}, Vh = Object.getPrototypeOf, sr = (c) => _a("HTMLElement", c), Uh = (c) => {
|
|
43087
|
-
const f =
|
|
43087
|
+
const f = Si("ownerDocument.defaultView", c);
|
|
43088
43088
|
return M(c) && (sr(f).prototype.isPrototypeOf(c) || /^HTML\w*Element$/.test(Vh(c).constructor.name));
|
|
43089
43089
|
}, xs = (c) => c.dom.nodeName.toLowerCase(), Lt = (c) => c.dom.nodeType, Em = (c) => (f) => Lt(f) === c, wm = (c) => Lt(c) === N0 || xs(c) === "#comment", Wh = (c) => Ja(c) && Uh(c.dom), Ja = Em(al), Fa = Em(il), Oe = Em(xm), Ox = Em(zu), La = (c) => (f) => Ja(f) && xs(f) === c, _m = (c) => Gt.fromDom(c.dom.ownerDocument), In = (c) => Oe(c) ? c : _m(c), Nc = (c) => Gt.fromDom(In(c).dom.documentElement), L0 = (c) => Gt.fromDom(In(c).dom.defaultView), Lr = (c) => fe.from(c.dom.parentNode).map(Gt.fromDom), Zh = (c) => fe.from(c.dom.parentElement).map(Gt.fromDom), sa = (c, f) => {
|
|
43090
43090
|
const x = oe(f) ? f : Me;
|
|
@@ -43202,7 +43202,7 @@ Required: ` + f.join(", "));
|
|
|
43202
43202
|
}, $l = (c, f) => {
|
|
43203
43203
|
const x = c.dom.getAttribute(f);
|
|
43204
43204
|
return x === null ? void 0 : x;
|
|
43205
|
-
},
|
|
43205
|
+
}, Bi = (c, f) => fe.from($l(c, f)), qs = (c, f) => {
|
|
43206
43206
|
c.dom.removeAttribute(f);
|
|
43207
43207
|
}, I0 = (c) => Xt(c.dom.attributes, (f, x) => (f[x.name] = x.value, f), {}), H0 = (c) => {
|
|
43208
43208
|
c.dom.textContent = "", De(no(c), (f) => {
|
|
@@ -43267,7 +43267,7 @@ Required: ` + f.join(", "));
|
|
|
43267
43267
|
return fe.from(_).filter((L) => L.length > 0);
|
|
43268
43268
|
}, ei = (c, f) => {
|
|
43269
43269
|
const x = c.dom;
|
|
43270
|
-
z0(x, f),
|
|
43270
|
+
z0(x, f), _i(Bi(c, "style").map(pm), "") && qs(c, "style");
|
|
43271
43271
|
}, Dm = (c, f) => {
|
|
43272
43272
|
const x = c.dom, _ = f.dom;
|
|
43273
43273
|
fu(x) && fu(_) && (_.style.cssText = x.style.cssText);
|
|
@@ -43304,13 +43304,13 @@ Required: ` + f.join(", "));
|
|
|
43304
43304
|
}, $0 = (c, f) => {
|
|
43305
43305
|
const x = c.dom, _ = x.getBoundingClientRect().width || x.offsetWidth;
|
|
43306
43306
|
return Wu(c, _, "left", "right");
|
|
43307
|
-
}, ra = (c) => Uu(c, "height", c.dom.offsetHeight), Zu = (c) => Uu(c, "width", c.dom.offsetWidth),
|
|
43307
|
+
}, ra = (c) => Uu(c, "height", c.dom.offsetHeight), Zu = (c) => Uu(c, "width", c.dom.offsetWidth), Ri = (c) => $0(c), Us = _r("height", (c) => {
|
|
43308
43308
|
const f = c.dom;
|
|
43309
43309
|
return mu(c) ? f.getBoundingClientRect().height : f.offsetHeight;
|
|
43310
43310
|
}), Ws = (c) => Us.get(c), rr = (c) => Us.getOuter(c), Kh = ra, Sa = _r("width", (c) => (
|
|
43311
43311
|
// IMO passing this function is better than using dom['offset' + 'width']
|
|
43312
43312
|
c.dom.offsetWidth
|
|
43313
|
-
)), qi = (c) => Sa.get(c), O = (c) => Sa.getOuter(c), Z =
|
|
43313
|
+
)), qi = (c) => Sa.get(c), O = (c) => Sa.getOuter(c), Z = Ri, re = Zu, ke = (c, f) => ({
|
|
43314
43314
|
left: c,
|
|
43315
43315
|
top: f,
|
|
43316
43316
|
translate: (_, L) => ke(c + _, f + L)
|
|
@@ -43386,7 +43386,7 @@ Required: ` + f.join(", "));
|
|
|
43386
43386
|
return fe.none();
|
|
43387
43387
|
};
|
|
43388
43388
|
return x(c.dom);
|
|
43389
|
-
}, Om = (c, f, x) => Rf(c, (_) => Wi(_, f), x), Xh = (c, f) => VS(c, (x) => Wi(x, f)), Pd = (c, f) =>
|
|
43389
|
+
}, Om = (c, f, x) => Rf(c, (_) => Wi(_, f), x), Xh = (c, f) => VS(c, (x) => Wi(x, f)), Pd = (c, f) => Di(f, c), ti = (c, f, x) => U0((L, V) => Wi(L, V), Om, c, f, x), W0 = (c) => c.dom.classList !== void 0, lc = (c) => ic(c, "class"), Fn = (c, f) => Bx(c, "class", f), Md = (c, f) => Yv(c, "class", f), Mc = (c, f) => {
|
|
43390
43390
|
W0(c) ? c.dom.classList.add(f) : Fn(c, f);
|
|
43391
43391
|
}, JE = (c) => {
|
|
43392
43392
|
(W0(c) ? c.dom.classList : lc(c)).length === 0 && qs(c, "class");
|
|
@@ -43396,7 +43396,7 @@ Required: ` + f.join(", "));
|
|
|
43396
43396
|
De(f, (x) => {
|
|
43397
43397
|
Xv(c, x);
|
|
43398
43398
|
});
|
|
43399
|
-
}, j0 = (c) => ti(c, "[contenteditable]"), Rs = (c, f = !1) => mu(c) ? c.dom.isContentEditable : j0(c).fold(q(f), (x) => cc(x) === "true"), cc = (c) => c.dom.contentEditable,
|
|
43399
|
+
}, j0 = (c) => ti(c, "[contenteditable]"), Rs = (c, f = !1) => mu(c) ? c.dom.isContentEditable : j0(c).fold(q(f), (x) => cc(x) === "true"), cc = (c) => c.dom.contentEditable, Ni = (c) => (f) => {
|
|
43400
43400
|
Mc(f, c);
|
|
43401
43401
|
}, ag = (c) => (f) => {
|
|
43402
43402
|
Z0(f, c);
|
|
@@ -43673,7 +43673,7 @@ Required: ` + f.join(", "));
|
|
|
43673
43673
|
newSizes: te
|
|
43674
43674
|
})
|
|
43675
43675
|
};
|
|
43676
|
-
}, qu = (c, f, x = 0) =>
|
|
43676
|
+
}, qu = (c, f, x = 0) => Bi(c, f).map((_) => parseInt(_, 10)).getOr(x), Fm = (c, f) => qu(c, f, 1), Zl = (c) => La("col")(c) ? qu(c, "span", 1) > 1 : Fm(c, "colspan") > 1, tr = (c) => Fm(c, "rowspan") > 1, zd = (c, f) => parseInt(ac(c, f), 10), Gu = q(10), s1 = q(10), ug = (c, f) => r1(c, f, we), r1 = (c, f, x) => Jt(no(c), (_) => Wi(_, f) ? x(_) ? [_] : [] : r1(_, f, x)), o4 = (c, f, x = Me) => {
|
|
43677
43677
|
if (x(f))
|
|
43678
43678
|
return fe.none();
|
|
43679
43679
|
if (wn(c, xs(f)))
|
|
@@ -43681,7 +43681,7 @@ Required: ` + f.join(", "));
|
|
|
43681
43681
|
const _ = (L) => Wi(L, "table") || x(L);
|
|
43682
43682
|
return Om(f, c.join(","), _);
|
|
43683
43683
|
}, tb = (c, f) => o4(["td", "th"], c, f), fc = (c) => ug(c, "th,td"), Lm = (c) => Wi(c, "colgroup") ? ig(c, "col") : Jt(nb(c), (f) => ig(f, "col")), jt = (c, f) => ti(c, "table", f), bl = (c) => ug(c, "tr"), nb = (c) => jt(c).fold(q([]), (f) => ig(f, "colgroup")), Pf = La("th"), xl = (c) => Yn(c, (f) => Pf(f.element)), ob = (c, f) => c && f ? "sectionCells" : c ? "section" : "cells", Hx = (c) => {
|
|
43684
|
-
const f = c.section === "thead", x =
|
|
43684
|
+
const f = c.section === "thead", x = _i(Ku(c.cells), "th");
|
|
43685
43685
|
return c.section === "tfoot" ? { type: "footer" } : f || x ? { type: "header", subType: ob(f, x) } : { type: "body" };
|
|
43686
43686
|
}, Ku = (c) => {
|
|
43687
43687
|
const f = it(c, (x) => Pf(x.element));
|
|
@@ -43717,7 +43717,7 @@ Required: ` + f.join(", "));
|
|
|
43717
43717
|
}).getOr("tbody"), Tt = (c) => {
|
|
43718
43718
|
const f = bl(c), _ = [...nb(c), ...f];
|
|
43719
43719
|
return dg(_, Mf);
|
|
43720
|
-
}, ko = (c, f) => dg(c, () => f),
|
|
43720
|
+
}, ko = (c, f) => dg(c, () => f), Fi = "data-snooker-locked-cols", mc = (c) => Bi(c, Fi).bind((f) => fe.from(f.match(/\d+/g))).map((f) => Ye(f, we)), Hc = (c) => {
|
|
43721
43721
|
const f = Xt(Vs(c).rows, (_, L) => (De(L.cells, (V, te) => {
|
|
43722
43722
|
V.isLocked && (_[te] = !0);
|
|
43723
43723
|
}), _), {}), x = Vn(f, (_, L) => parseInt(L, 10));
|
|
@@ -43827,7 +43827,7 @@ Required: ` + f.join(", "));
|
|
|
43827
43827
|
}, zc = (c) => {
|
|
43828
43828
|
const f = c.grid, x = pn(f.rows, z), _ = pn(f.columns, z);
|
|
43829
43829
|
return Rt(x, (L) => ep(() => Jt(_, (Se) => xo.getAt(c, L, Se).filter((Re) => Re.row === L).fold(q([]), (Re) => [Re])), (Se) => Se.rowspan === 1, () => xo.getAt(c, L, 0)));
|
|
43830
|
-
},
|
|
43830
|
+
}, Li = (c, f) => {
|
|
43831
43831
|
if (f < 0 || f >= c.length - 1)
|
|
43832
43832
|
return fe.none();
|
|
43833
43833
|
const x = c[f].fold(() => {
|
|
@@ -43894,7 +43894,7 @@ Required: ` + f.join(", "));
|
|
|
43894
43894
|
}, KS = (c, f, x) => {
|
|
43895
43895
|
const _ = x(c), L = Fm(c, f);
|
|
43896
43896
|
return _ / L;
|
|
43897
|
-
}, gc = (c, f) => Qa(c, f).orThunk(() =>
|
|
43897
|
+
}, gc = (c, f) => Qa(c, f).orThunk(() => Bi(c, f).map((x) => x + "px")), Im = (c) => gc(c, "width"), $a = (c) => gc(c, "height"), Hm = (c) => Qo(c, qi, Z), mg = (c) => (
|
|
43898
43898
|
// For col elements use the computed width as col elements aren't affected by borders, padding, etc...
|
|
43899
43899
|
Kx(c) ? qi(c) : re(c)
|
|
43900
43900
|
), db = (c) => f1(c) ? Ws(c) : KS(c, "rowspan", l4), fb = (c) => Im(c).bind((x) => t1(x, ["fixed", "relative", "empty"])), mb = (c, f, x) => {
|
|
@@ -43904,7 +43904,7 @@ Required: ` + f.join(", "));
|
|
|
43904
43904
|
return m4(c) ? x : !0;
|
|
43905
43905
|
}, kr = (c, f, x, _, L, V) => c.filter(_).fold(
|
|
43906
43906
|
// Can't just read the width of a cell, so calculate.
|
|
43907
|
-
() => V(
|
|
43907
|
+
() => V(Li(x, f)),
|
|
43908
43908
|
(te) => L(te)
|
|
43909
43909
|
), pr = (c, f, x, _) => {
|
|
43910
43910
|
const L = Wx(c), V = xo.hasColumns(c) ? Qx(c) : L, te = [fe.some(fg.edge(f))].concat(Rt(fg.positions(L, f), (Se) => Se.map((Re) => Re.x))), pe = ye(Zl);
|
|
@@ -44069,13 +44069,13 @@ Required: ` + f.join(", "));
|
|
|
44069
44069
|
_.push(pe);
|
|
44070
44070
|
}
|
|
44071
44071
|
return _;
|
|
44072
|
-
}, yl = (c, f) => vu(c, f, !1),
|
|
44072
|
+
}, yl = (c, f) => vu(c, f, !1), Pi = (c) => h1(c, vs), v1 = (c, f) => We(c.all, (x) => W(x.cells, (_) => vs(f, _.element))), b1 = (c, f, x) => {
|
|
44073
44073
|
const _ = Rt(f.selection, (V) => tb(V).bind((te) => v1(c, te)).filter(x)), L = Ht(_);
|
|
44074
44074
|
return so(L.length > 0, L);
|
|
44075
44075
|
}, Va = (c, f, x, _, L, V, te, pe, Se) => {
|
|
44076
44076
|
const Re = xo.fromTable(V), je = fe.from(Se == null ? void 0 : Se.section).getOrThunk(Q0.fallback);
|
|
44077
44077
|
return f(Re, te).map((Zt) => {
|
|
44078
|
-
const Vt = yl(Re, pe), un = c(Vt, Zt, vs, L(pe), je), Mt = Hc(un.grid), xt =
|
|
44078
|
+
const Vt = yl(Re, pe), un = c(Vt, Zt, vs, L(pe), je), Mt = Hc(un.grid), xt = Pi(un.grid);
|
|
44079
44079
|
return {
|
|
44080
44080
|
info: Zt,
|
|
44081
44081
|
grid: xt,
|
|
@@ -44084,7 +44084,7 @@ Required: ` + f.join(", "));
|
|
|
44084
44084
|
};
|
|
44085
44085
|
}).bind((Zt) => {
|
|
44086
44086
|
const Vt = ry(V, Zt.grid), un = fe.from(Se == null ? void 0 : Se.sizing).getOrThunk(() => $m.getTableSize(V)), Mt = fe.from(Se == null ? void 0 : Se.resize).getOrThunk(Ix);
|
|
44087
|
-
return x(V, Zt.grid, Zt.info, { sizing: un, resize: Mt, section: je }), _(V), qs(V,
|
|
44087
|
+
return x(V, Zt.grid, Zt.info, { sizing: un, resize: Mt, section: je }), _(V), qs(V, Fi), Zt.lockedColumns.length > 0 && eo(V, Fi, Zt.lockedColumns.join(",")), fe.some({
|
|
44088
44088
|
cursor: Zt.cursor,
|
|
44089
44089
|
newRows: Vt.newRows,
|
|
44090
44090
|
newCells: Vt.newCells
|
|
@@ -44195,7 +44195,7 @@ Required: ` + f.join(", "));
|
|
|
44195
44195
|
const te = vu(_, x, !1), Se = Vs(te).rows.slice(V[0].row, V[V.length - 1].row + V[V.length - 1].rowspan), Re = Jt(Se, (_t) => {
|
|
44196
44196
|
const Zt = it(_t.cells, (Vt) => !Vt.isLocked);
|
|
44197
44197
|
return Zt.length > 0 ? [{ ..._t, cells: Zt }] : [];
|
|
44198
|
-
}), je =
|
|
44198
|
+
}), je = Pi(Re);
|
|
44199
44199
|
return so(je.length > 0, je);
|
|
44200
44200
|
}).map((V) => ay(V));
|
|
44201
44201
|
}, fs = (c, f, x, _, L, V) => ({
|
|
@@ -44236,7 +44236,7 @@ Required: ` + f.join(", "));
|
|
|
44236
44236
|
));
|
|
44237
44237
|
De(L, Bo), (f.minCol === f.maxCol || f.minRow === f.maxRow) && De(ug(c, "th,td"), (te) => {
|
|
44238
44238
|
qs(te, "rowspan"), qs(te, "colspan");
|
|
44239
|
-
}), qs(c,
|
|
44239
|
+
}), qs(c, Fi), qs(c, "data-snooker-col-series"), $m.getTableSize(c).adjustTableWidth(_);
|
|
44240
44240
|
}, xb = (c, f, x, _) => {
|
|
44241
44241
|
if (_.minCol === 0 && f.grid.columns === _.maxCol + 1)
|
|
44242
44242
|
return 0;
|
|
@@ -44285,7 +44285,7 @@ Required: ` + f.join(", "));
|
|
|
44285
44285
|
}
|
|
44286
44286
|
}
|
|
44287
44287
|
};
|
|
44288
|
-
}, E1 = (c) =>
|
|
44288
|
+
}, E1 = (c) => Bi(c, "scope").map(
|
|
44289
44289
|
// Attribute can be col, colgroup, row, and rowgroup.
|
|
44290
44290
|
// As col and colgroup are to be treated as if they are the same, lob off everything after the first three characters and there is no difference.
|
|
44291
44291
|
(f) => f.substr(0, 3)
|
|
@@ -44318,13 +44318,13 @@ Required: ` + f.join(", "));
|
|
|
44318
44318
|
}
|
|
44319
44319
|
})
|
|
44320
44320
|
}, t5 = (c, f) => {
|
|
44321
|
-
const x = c.slice(0, f[f.length - 1].row + 1), _ =
|
|
44321
|
+
const x = c.slice(0, f[f.length - 1].row + 1), _ = Pi(x);
|
|
44322
44322
|
return Jt(_, (L) => {
|
|
44323
44323
|
const V = L.cells.slice(0, f[f.length - 1].column + 1);
|
|
44324
44324
|
return Rt(V, (te) => te.element);
|
|
44325
44325
|
});
|
|
44326
44326
|
}, n5 = (c, f) => {
|
|
44327
|
-
const x = c.slice(f[0].row + f[0].rowspan - 1, c.length), _ =
|
|
44327
|
+
const x = c.slice(f[0].row + f[0].rowspan - 1, c.length), _ = Pi(x);
|
|
44328
44328
|
return Jt(_, (L) => {
|
|
44329
44329
|
const V = L.cells.slice(f[0].column + f[0].colspan - 1, L.cells.length);
|
|
44330
44330
|
return Rt(V, (te) => te.element);
|
|
@@ -44480,7 +44480,7 @@ Required: ` + f.join(", "));
|
|
|
44480
44480
|
"textarea",
|
|
44481
44481
|
"xmp"
|
|
44482
44482
|
], je);
|
|
44483
|
-
}, Se = (Re) => Ja(Re) ?
|
|
44483
|
+
}, Se = (Re) => Ja(Re) ? Bi(Re, "lang") : fe.none();
|
|
44484
44484
|
return {
|
|
44485
44485
|
up: q({
|
|
44486
44486
|
selector: Om,
|
|
@@ -44678,7 +44678,7 @@ Required: ` + f.join(", "));
|
|
|
44678
44678
|
return cs(pe, Re), Re;
|
|
44679
44679
|
}, f);
|
|
44680
44680
|
}).getOr(f), c5 = (c, f) => {
|
|
44681
|
-
vn(B4, (x, _) =>
|
|
44681
|
+
vn(B4, (x, _) => Bi(c, _).filter((L) => wn(x, L)).each((L) => eo(f, _, L)));
|
|
44682
44682
|
}, Tb = (c, f, x) => {
|
|
44683
44683
|
const _ = (te, pe) => {
|
|
44684
44684
|
Dm(te.element, pe), ei(pe, "height"), te.colspan !== 1 && ei(pe, "width");
|
|
@@ -44781,7 +44781,7 @@ Required: ` + f.join(", "));
|
|
|
44781
44781
|
return Sf(L, _, V);
|
|
44782
44782
|
}), R1 = (c, f, x) => Rt(c, (_) => Xt(x, (L, V) => {
|
|
44783
44783
|
const te = Sy(1, _, f, we)[0];
|
|
44784
|
-
return
|
|
44784
|
+
return ki(L, V, te);
|
|
44785
44785
|
}, _)), N1 = (c, f, x) => {
|
|
44786
44786
|
const _ = f.colDelta < 0 ? d5 : z, L = f.rowDelta < 0 ? H4 : z, V = Hc(c), te = Ea(c[0]), pe = at(V, (je) => je === te - 1), Se = _(c, Math.abs(f.colDelta), x, pe ? te - 1 : te), Re = Hc(Se);
|
|
44787
44787
|
return L(Se, Math.abs(f.rowDelta), x, Ye(Re, we));
|
|
@@ -44857,7 +44857,7 @@ Required: ` + f.join(", "));
|
|
|
44857
44857
|
return Xs(c, f);
|
|
44858
44858
|
}, Dg = (c, f, x, _, L) => Rt(c, (V) => {
|
|
44859
44859
|
const te = f > 0 && f < Ea(V) && _(na(V, f - 1), na(V, f)), pe = $4(V, f, V.section, te, x, _, L);
|
|
44860
|
-
return
|
|
44860
|
+
return ki(V, f, pe);
|
|
44861
44861
|
}), qd = (c, f) => Jt(c, (x) => {
|
|
44862
44862
|
const _ = x.cells, L = qt(f, (V, te) => te >= 0 && te < V.length ? V.slice(0, te).concat(V.slice(te + 1)) : V, _);
|
|
44863
44863
|
return L.length > 0 ? [rl(x.element, L, x.section, x.isNew)] : [];
|
|
@@ -45541,7 +45541,7 @@ Required: ` + f.join(", "));
|
|
|
45541
45541
|
const L = (Se) => vs(c, Se), V = "thead,tfoot,tbody,table", te = Om(_.first, V, L), pe = Om(_.last, V, L);
|
|
45542
45542
|
return te.bind((Se) => pe.bind((Re) => vs(Se, Re) ? uw(_.table, _.first, _.last) : fe.none()));
|
|
45543
45543
|
}), e2 = z, Ow = (c) => {
|
|
45544
|
-
const f = (_, L) =>
|
|
45544
|
+
const f = (_, L) => Bi(_, L).exists((V) => parseInt(V, 10) > 1), x = (_) => f(_, "rowspan") || f(_, "colspan");
|
|
45545
45545
|
return c.length > 0 && Yn(c, x) ? fe.some(c) : fe.none();
|
|
45546
45546
|
}, Bw = (c, f, x) => f.length <= 1 ? fe.none() : Dw(c, x.firstSelectedSelector, x.lastSelectedSelector).map((_) => ({ bounds: _, cells: f })), $g = {
|
|
45547
45547
|
create: (c, f) => ({
|
|
@@ -45669,7 +45669,7 @@ Required: ` + f.join(", "));
|
|
|
45669
45669
|
zt(_t, Zt, x).each((Vt) => {
|
|
45670
45670
|
const un = Vt.boxes.getOr([]);
|
|
45671
45671
|
if (un.length === 1) {
|
|
45672
|
-
const Mt = un[0], xt = cc(Mt) === "false", An =
|
|
45672
|
+
const Mt = un[0], xt = cc(Mt) === "false", An = _i(j0(je.target), Mt, vs);
|
|
45673
45673
|
xt && An && _.selectRange(f, un, Mt, Mt);
|
|
45674
45674
|
} else un.length > 1 && (_.selectRange(f, un, Vt.start, Vt.finish), c.selectContents(Zt));
|
|
45675
45675
|
});
|
|
@@ -45700,7 +45700,7 @@ Required: ` + f.join(", "));
|
|
|
45700
45700
|
relative: Sr.before,
|
|
45701
45701
|
retry: d2.tryUp,
|
|
45702
45702
|
failure: vp.failedUp
|
|
45703
|
-
}, fa = (c) => (f) => f === c,
|
|
45703
|
+
}, fa = (c) => (f) => f === c, Mi = fa(38), qa = fa(40), Ii = (c) => c >= 37 && c <= 40, g2 = {
|
|
45704
45704
|
// We need to move KEYS out of keytar and into something much more low-level.
|
|
45705
45705
|
isBackward: fa(37),
|
|
45706
45706
|
isForward: fa(39)
|
|
@@ -45762,17 +45762,17 @@ Required: ` + f.join(", "));
|
|
|
45762
45762
|
return {
|
|
45763
45763
|
keydown: (Se, Re, je, _t, Zt, Vt) => {
|
|
45764
45764
|
const un = Se.raw, Mt = un.which, xt = un.shiftKey === !0;
|
|
45765
|
-
return yc(f, _.selectedSelector).fold(() => (
|
|
45765
|
+
return yc(f, _.selectedSelector).fold(() => (Ii(Mt) && !xt && _.clearBeforeUpdate(f), Ii(Mt) && xt && !vi(Re, _t) ? fe.none : qa(Mt) && xt ? de(Ao, L, f, x, Gg, _t, Re, _.selectRange) : Mi(Mt) && xt ? de(Ao, L, f, x, Yf, _t, Re, _.selectRange) : qa(Mt) ? de(gC, L, x, Gg, _t, Re, Uw) : Mi(Mt) ? de(gC, L, x, Yf, _t, Re, Vw) : fe.none), (Zn) => {
|
|
45766
45766
|
const en = (Mo) => () => We(Mo, (Io) => V5(Io.rows, Io.cols, f, Zn, _)).fold(() => Jb(f, _.firstSelectedSelector, _.lastSelectedSelector).map((Io) => {
|
|
45767
45767
|
const ns = qa(Mt) || Vt.isForward(Mt) ? Sr.after : Sr.before;
|
|
45768
45768
|
return L.setRelativeSelection(Sr.on(Io.first, 0), ns(Io.table)), _.clear(f), $g.create(fe.none(), !0);
|
|
45769
45769
|
}), (Io) => fe.some($g.create(fe.none(), !0)));
|
|
45770
|
-
return
|
|
45770
|
+
return Ii(Mt) && xt && !vi(Re, _t) ? fe.none : qa(Mt) && xt ? en([Kg(1, 0)]) : Mi(Mt) && xt ? en([Kg(-1, 0)]) : Vt.isBackward(Mt) && xt ? en([Kg(0, -1), Kg(-1, 0)]) : Vt.isForward(Mt) && xt ? en([Kg(0, 1), Kg(1, 0)]) : Ii(Mt) && !xt ? V : fe.none;
|
|
45771
45771
|
})();
|
|
45772
45772
|
},
|
|
45773
45773
|
keyup: (Se, Re, je, _t, Zt) => yc(f, _.selectedSelector).fold(() => {
|
|
45774
45774
|
const Vt = Se.raw, un = Vt.which;
|
|
45775
|
-
return Vt.shiftKey === !0 &&
|
|
45775
|
+
return Vt.shiftKey === !0 && Ii(un) && vi(Re, _t) ? Fw(f, x, Re, je, _t, Zt, _.selectRange) : fe.none();
|
|
45776
45776
|
}, fe.none)
|
|
45777
45777
|
};
|
|
45778
45778
|
}, X1 = (c, f, x, _) => {
|
|
@@ -45785,7 +45785,7 @@ Required: ` + f.join(", "));
|
|
|
45785
45785
|
};
|
|
45786
45786
|
}, hC = {
|
|
45787
45787
|
byClass: (c) => {
|
|
45788
|
-
const f =
|
|
45788
|
+
const f = Ni(c.selected), x = ag([c.selected, c.lastSelected, c.firstSelected]), _ = (V) => {
|
|
45789
45789
|
const te = pt(V, c.selectedSelector);
|
|
45790
45790
|
De(te, x);
|
|
45791
45791
|
};
|
|
@@ -46047,7 +46047,7 @@ Required: ` + f.join(", "));
|
|
|
46047
46047
|
const Zn = Gt.fromTag("caption");
|
|
46048
46048
|
cs(Zn, Gt.fromText("Caption")), Am(An, Zn, 0), c.selection.setCursorLocation(Zn.dom, 0);
|
|
46049
46049
|
}, (Zn) => {
|
|
46050
|
-
La("caption")(xt) &&
|
|
46050
|
+
La("caption")(xt) && Di("td", An).each((en) => c.selection.setCursorLocation(en.dom, 0)), Bo(Zn);
|
|
46051
46051
|
}), bi(c, An.dom, Hr);
|
|
46052
46052
|
});
|
|
46053
46053
|
});
|
|
@@ -46159,7 +46159,7 @@ Required: ` + f.join(", "));
|
|
|
46159
46159
|
}));
|
|
46160
46160
|
}, Zn = ($o) => {
|
|
46161
46161
|
const Da = Nd($o);
|
|
46162
|
-
if (Da.raw.shiftKey &&
|
|
46162
|
+
if (Da.raw.shiftKey && Ii(Da.raw.which)) {
|
|
46163
46163
|
const el = c.selection.getRng(), Oa = Gt.fromDom(el.startContainer), Kc = Gt.fromDom(el.endContainer);
|
|
46164
46164
|
un.keyup(Da, Oa, el.startOffset, Kc, el.endOffset).each((eh) => {
|
|
46165
46165
|
An(Da, eh);
|
|
@@ -46729,19 +46729,19 @@ function Ode() {
|
|
|
46729
46729
|
ce(Ce) && (Yt.insertAfter(ee, Ce), Yt.remove(Ce));
|
|
46730
46730
|
}, Qn = (ee) => {
|
|
46731
46731
|
sl(ee) ? Mu(ee) : Ef(ee);
|
|
46732
|
-
},
|
|
46732
|
+
}, wi = (ee, Ce) => {
|
|
46733
46733
|
const Be = ee.getAttribute("style"), Je = Ce(Be !== null ? Be : "");
|
|
46734
46734
|
Je.length > 0 ? (ee.setAttribute("style", Je), ee.setAttribute("data-mce-style", Je)) : ee.removeAttribute("style");
|
|
46735
46735
|
}, _d = (ee, Ce) => (Be, Je, Qt) => {
|
|
46736
46736
|
const ho = Be.style;
|
|
46737
|
-
ho[Je] ? (ho[Je] = Ys(Qt),
|
|
46737
|
+
ho[Je] ? (ho[Je] = Ys(Qt), wi(Be, Ce)) : jr(Be, Je, Qt);
|
|
46738
46738
|
}, Jo = (ee, Ce) => ee.style[Ce] ? Ya(ee.style[Ce]) : xr(ee, Ce), Nn = (ee, Ce) => {
|
|
46739
46739
|
const Be = Ys(Ce);
|
|
46740
46740
|
ee.style.marginLeft = Be, ee.style.marginRight = Be;
|
|
46741
46741
|
}, ls = (ee, Ce) => {
|
|
46742
46742
|
const Be = Ys(Ce);
|
|
46743
46743
|
ee.style.marginTop = Be, ee.style.marginBottom = Be;
|
|
46744
|
-
},
|
|
46744
|
+
}, _i = (ee, Ce) => {
|
|
46745
46745
|
const Be = Ys(Ce);
|
|
46746
46746
|
ee.style.borderWidth = Be;
|
|
46747
46747
|
}, Ht = (ee, Ce) => {
|
|
@@ -46749,7 +46749,7 @@ function Ode() {
|
|
|
46749
46749
|
}, li = (ee) => {
|
|
46750
46750
|
var Ce;
|
|
46751
46751
|
return (Ce = ee.style.borderStyle) !== null && Ce !== void 0 ? Ce : "";
|
|
46752
|
-
}, so = (ee) => ce(ee) && ee.nodeName === "FIGURE", mm = (ee) => ee.nodeName === "IMG",
|
|
46752
|
+
}, so = (ee) => ce(ee) && ee.nodeName === "FIGURE", mm = (ee) => ee.nodeName === "IMG", Si = (ee) => Yt.getAttrib(ee, "alt").length === 0 && Yt.getAttrib(ee, "role") === "presentation", Sd = (ee) => Si(ee) ? "" : xr(ee, "alt"), yr = () => ({
|
|
46753
46753
|
src: "",
|
|
46754
46754
|
alt: "",
|
|
46755
46755
|
title: "",
|
|
@@ -46766,8 +46766,8 @@ function Ode() {
|
|
|
46766
46766
|
}), Jp = (ee, Ce) => {
|
|
46767
46767
|
var Be;
|
|
46768
46768
|
const Je = document.createElement("img");
|
|
46769
|
-
return jr(Je, "style", Ce.style), (ea(Je) || Ce.hspace !== "") && Nn(Je, Ce.hspace), (Cf(Je) || Ce.vspace !== "") && ls(Je, Ce.vspace), (Xo(Je) || Ce.border !== "") &&
|
|
46770
|
-
},
|
|
46769
|
+
return jr(Je, "style", Ce.style), (ea(Je) || Ce.hspace !== "") && Nn(Je, Ce.hspace), (Cf(Je) || Ce.vspace !== "") && ls(Je, Ce.vspace), (Xo(Je) || Ce.border !== "") && _i(Je, Ce.border), (li(Je) || Ce.borderStyle !== "") && Ht(Je, Ce.borderStyle), ee((Be = Je.getAttribute("style")) !== null && Be !== void 0 ? Be : "");
|
|
46770
|
+
}, Ai = (ee, Ce) => {
|
|
46771
46771
|
const Be = document.createElement("img");
|
|
46772
46772
|
if (pm(ee, { ...Ce, caption: !1 }, Be), qr(Be, Ce.alt, Ce.isDecorative), Ce.caption) {
|
|
46773
46773
|
const Je = Yt.create("figure", { class: "image" });
|
|
@@ -46787,7 +46787,7 @@ function Ode() {
|
|
|
46787
46787
|
vspace: Cf(Ce),
|
|
46788
46788
|
border: Xo(Ce),
|
|
46789
46789
|
borderStyle: li(Ce),
|
|
46790
|
-
isDecorative:
|
|
46790
|
+
isDecorative: Si(Ce)
|
|
46791
46791
|
}), Zs = (ee, Ce, Be, Je, Qt) => {
|
|
46792
46792
|
Be[Je] !== Ce[Je] && Qt(ee, Je, String(Be[Je]));
|
|
46793
46793
|
}, qr = (ee, Ce, Be) => {
|
|
@@ -46808,10 +46808,10 @@ function Ode() {
|
|
|
46808
46808
|
}, Uo = (ee, Ce, Be) => {
|
|
46809
46809
|
(Be.alt !== Ce.alt || Be.isDecorative !== Ce.isDecorative) && qr(ee, Be.alt, Be.isDecorative);
|
|
46810
46810
|
}, au = (ee, Ce) => (Be, Je, Qt) => {
|
|
46811
|
-
ee(Be, Qt),
|
|
46811
|
+
ee(Be, Qt), wi(Be, Ce);
|
|
46812
46812
|
}, pm = (ee, Ce, Be) => {
|
|
46813
46813
|
const Je = wf(ee, Be);
|
|
46814
|
-
Zs(Be, Je, Ce, "caption", (Qt, ho, Ps) => Qn(Qt)), Zs(Be, Je, Ce, "src", jr), Zs(Be, Je, Ce, "title", jr), Zs(Be, Je, Ce, "width", _d("width", ee)), Zs(Be, Je, Ce, "height", _d("height", ee)), Zs(Be, Je, Ce, "class", jr), Zs(Be, Je, Ce, "style", au((Qt, ho) => jr(Qt, "style", ho), ee)), Zs(Be, Je, Ce, "hspace", au(Nn, ee)), Zs(Be, Je, Ce, "vspace", au(ls, ee)), Zs(Be, Je, Ce, "border", au(
|
|
46814
|
+
Zs(Be, Je, Ce, "caption", (Qt, ho, Ps) => Qn(Qt)), Zs(Be, Je, Ce, "src", jr), Zs(Be, Je, Ce, "title", jr), Zs(Be, Je, Ce, "width", _d("width", ee)), Zs(Be, Je, Ce, "height", _d("height", ee)), Zs(Be, Je, Ce, "class", jr), Zs(Be, Je, Ce, "style", au((Qt, ho) => jr(Qt, "style", ho), ee)), Zs(Be, Je, Ce, "hspace", au(Nn, ee)), Zs(Be, Je, Ce, "vspace", au(ls, ee)), Zs(Be, Je, Ce, "border", au(_i, ee)), Zs(Be, Je, Ce, "borderStyle", au(Ht, ee)), Uo(Be, Je, Ce);
|
|
46815
46815
|
}, js = (ee, Ce) => {
|
|
46816
46816
|
const Be = ee.dom.styles.parse(Ce), Je = br(Be), Qt = ee.dom.styles.parse(ee.dom.styles.serialize(Je));
|
|
46817
46817
|
return ee.dom.styles.serialize(Qt);
|
|
@@ -46826,7 +46826,7 @@ function Ode() {
|
|
|
46826
46826
|
const Ce = Iu(ee);
|
|
46827
46827
|
return Ce ? wf((Be) => js(ee, Be), Ce) : yr();
|
|
46828
46828
|
}, gm = (ee, Ce) => {
|
|
46829
|
-
const Be =
|
|
46829
|
+
const Be = Ai((Qt) => js(ee, Qt), Ce);
|
|
46830
46830
|
ee.dom.setAttrib(Be, "data-mce-id", "__mcenew"), ee.focus(), ee.selection.setContent(Be.outerHTML);
|
|
46831
46831
|
const Je = ee.dom.select('*[data-mce-id="__mcenew"]')[0];
|
|
46832
46832
|
if (ee.dom.setAttrib(Je, "data-mce-id", null), so(Je)) {
|
|
@@ -46876,7 +46876,7 @@ function Ode() {
|
|
|
46876
46876
|
Be.push({ text: Qt, value: ho });
|
|
46877
46877
|
}
|
|
46878
46878
|
}), Be;
|
|
46879
|
-
}, rl = (ee = Wt) => (Ce) => Ce ? z.from(Ce).map((Be) => Ca(Be, ee)) : z.none(), Hu = (ee) => rl(Wt)(ee), ta = (ee) => fn(ee, "items"), fr = (ee, Ce) => nt(ee, (Be) => ta(Be) ? fr(Be.items, Ce) : Be.value === Ce ? z.some(Be) : z.none()),
|
|
46879
|
+
}, rl = (ee = Wt) => (Ce) => Ce ? z.from(Ce).map((Be) => Ca(Be, ee)) : z.none(), Hu = (ee) => rl(Wt)(ee), ta = (ee) => fn(ee, "items"), fr = (ee, Ce) => nt(ee, (Be) => ta(Be) ? fr(Be.items, Ce) : Be.value === Ce ? z.some(Be) : z.none()), ki = {
|
|
46880
46880
|
sanitizer: rl,
|
|
46881
46881
|
sanitize: Hu,
|
|
46882
46882
|
findEntry: (ee, Ce) => ee.bind((Be) => fr(Be, Ce))
|
|
@@ -46930,14 +46930,14 @@ function Ode() {
|
|
|
46930
46930
|
]
|
|
46931
46931
|
})
|
|
46932
46932
|
}, Ko = (ee) => {
|
|
46933
|
-
const Ce =
|
|
46933
|
+
const Ce = ki.sanitizer((ll) => ee.convertURL(ll.value || ll.url || "", "src")), Be = new Promise((ll) => {
|
|
46934
46934
|
Ui(ee, (Na) => {
|
|
46935
46935
|
ll(Ce(Na).map((Td) => de([
|
|
46936
46936
|
[{ text: "None", value: "" }],
|
|
46937
46937
|
Td
|
|
46938
46938
|
])));
|
|
46939
46939
|
});
|
|
46940
|
-
}), Je =
|
|
46940
|
+
}), Je = ki.sanitize(We(ee)), Qt = Ct(ee), ho = Ue(ee), Ps = Dt(ee), Er = io(ee), Mr = nc(ee), Ra = Qe(ee), Oi = cn(ee), fi = yt(ee), Zi = vn(ee), Il = qn(ee), F0 = ht(ee), tg = z.some(He(ee)).filter((ll) => I(ll) && ll.length > 0);
|
|
46941
46941
|
return Be.then((ll) => ({
|
|
46942
46942
|
image: Mr,
|
|
46943
46943
|
imageList: ll,
|
|
@@ -46947,7 +46947,7 @@ function Ode() {
|
|
|
46947
46947
|
hasUploadUrl: Ps,
|
|
46948
46948
|
hasUploadHandler: Er,
|
|
46949
46949
|
hasDescription: Ra,
|
|
46950
|
-
hasImageTitle:
|
|
46950
|
+
hasImageTitle: Oi,
|
|
46951
46951
|
hasDimensions: fi,
|
|
46952
46952
|
hasImageCaption: Zi,
|
|
46953
46953
|
prependURL: tg,
|
|
@@ -46961,11 +46961,11 @@ function Ode() {
|
|
|
46961
46961
|
filetype: "image",
|
|
46962
46962
|
label: "Source",
|
|
46963
46963
|
picker_text: "Browse files"
|
|
46964
|
-
}, Be = ee.imageList.map((
|
|
46964
|
+
}, Be = ee.imageList.map((Oi) => ({
|
|
46965
46965
|
name: "images",
|
|
46966
46966
|
type: "listbox",
|
|
46967
46967
|
label: "Image list",
|
|
46968
|
-
items:
|
|
46968
|
+
items: Oi
|
|
46969
46969
|
})), Je = {
|
|
46970
46970
|
name: "alt",
|
|
46971
46971
|
type: "input",
|
|
@@ -46986,11 +46986,11 @@ function Ode() {
|
|
|
46986
46986
|
type: "checkbox",
|
|
46987
46987
|
label: "Image is decorative"
|
|
46988
46988
|
}]
|
|
46989
|
-
}, Er = ee.classList.map((
|
|
46989
|
+
}, Er = ee.classList.map((Oi) => ({
|
|
46990
46990
|
name: "classes",
|
|
46991
46991
|
type: "listbox",
|
|
46992
46992
|
label: "Class",
|
|
46993
|
-
items:
|
|
46993
|
+
items: Oi
|
|
46994
46994
|
})), Mr = {
|
|
46995
46995
|
type: "label",
|
|
46996
46996
|
label: "Caption",
|
|
@@ -47001,7 +47001,7 @@ function Ode() {
|
|
|
47001
47001
|
label: "Show caption"
|
|
47002
47002
|
}
|
|
47003
47003
|
]
|
|
47004
|
-
}, Ra = (
|
|
47004
|
+
}, Ra = (Oi) => Oi ? { type: "grid", columns: 2 } : { type: "panel" };
|
|
47005
47005
|
return de([
|
|
47006
47006
|
[Ce],
|
|
47007
47007
|
Be.toArray(),
|
|
@@ -47036,7 +47036,7 @@ function Ode() {
|
|
|
47036
47036
|
]
|
|
47037
47037
|
})
|
|
47038
47038
|
}, Ad = (ee) => ({
|
|
47039
|
-
prevImage:
|
|
47039
|
+
prevImage: ki.findEntry(ee.imageList, ee.image.src),
|
|
47040
47040
|
prevAlt: ee.image.alt,
|
|
47041
47041
|
open: !0
|
|
47042
47042
|
}), Cr = (ee) => ({
|
|
@@ -47080,7 +47080,7 @@ function Ode() {
|
|
|
47080
47080
|
Ce.setData({ src: { value: Je, meta: Be.src.meta } });
|
|
47081
47081
|
});
|
|
47082
47082
|
}, Gt = (ee, Ce, Be) => {
|
|
47083
|
-
ee.hasDescription && I(Be.alt) && (Ce.alt = Be.alt), ee.hasAccessibilityOptions && (Ce.isDecorative = Be.isDecorative || Ce.isDecorative || !1), ee.hasImageTitle && I(Be.title) && (Ce.title = Be.title), ee.hasDimensions && (I(Be.width) && (Ce.dimensions.width = Be.width), I(Be.height) && (Ce.dimensions.height = Be.height)), I(Be.class) &&
|
|
47083
|
+
ee.hasDescription && I(Be.alt) && (Ce.alt = Be.alt), ee.hasAccessibilityOptions && (Ce.isDecorative = Be.isDecorative || Ce.isDecorative || !1), ee.hasImageTitle && I(Be.title) && (Ce.title = Be.title), ee.hasDimensions && (I(Be.width) && (Ce.dimensions.width = Be.width), I(Be.height) && (Ce.dimensions.height = Be.height)), I(Be.class) && ki.findEntry(ee.classList, Be.class).each((Je) => {
|
|
47084
47084
|
Ce.classes = Je.value;
|
|
47085
47085
|
}), ee.hasImageCaption && ne(Be.caption) && (Ce.caption = Be.caption), ee.hasAdvTab && (I(Be.style) && (Ce.style = Be.style), I(Be.vspace) && (Ce.vspace = Be.vspace), I(Be.border) && (Ce.border = Be.border), I(Be.hspace) && (Ce.hspace = Be.hspace), I(Be.borderstyle) && (Ce.borderstyle = Be.borderstyle));
|
|
47086
47086
|
}, T0 = (ee, Ce) => {
|
|
@@ -47095,12 +47095,12 @@ function Ode() {
|
|
|
47095
47095
|
Be.open && Je.setData({ dimensions: Er });
|
|
47096
47096
|
}).catch((Er) => console.error(Er)) : Je.setData({ dimensions: { width: "", height: "" } }));
|
|
47097
47097
|
}, D0 = (ee, Ce, Be) => {
|
|
47098
|
-
const Je = Be.getData(), Qt =
|
|
47098
|
+
const Je = Be.getData(), Qt = ki.findEntry(ee.imageList, Je.src.value);
|
|
47099
47099
|
Ce.prevImage = Qt, Be.setData({ images: Qt.map((ho) => ho.value).getOr("") });
|
|
47100
47100
|
}, O0 = (ee, Ce, Be, Je) => {
|
|
47101
47101
|
Xa(Ce, Je), T0(Ce, Je), Af(ee, Ce, Be, Je), D0(Ce, Be, Je);
|
|
47102
47102
|
}, Pl = (ee, Ce, Be, Je) => {
|
|
47103
|
-
const Qt = Je.getData(), ho =
|
|
47103
|
+
const Qt = Je.getData(), ho = ki.findEntry(Ce.imageList, Qt.images);
|
|
47104
47104
|
ho.each((Ps) => {
|
|
47105
47105
|
Qt.alt === "" || Be.prevImage.map((Mr) => Mr.text === Qt.alt).getOr(!1) ? Ps.value === "" ? Je.setData({ src: Ps, alt: Be.prevAlt }) : Je.setData({ src: Ps, alt: Ps.text }) : Je.setData({ src: Ps });
|
|
47106
47106
|
}), Be.prevImage = ho, O0(ee, Ce, Be, Je);
|
|
@@ -47115,14 +47115,14 @@ function Ode() {
|
|
|
47115
47115
|
Je.setData({ src: { value: Ra, meta: {} } }), Je.showTab("general"), O0(ee, Ce, Be, Je), Je.focus("src");
|
|
47116
47116
|
};
|
|
47117
47117
|
ro(ho).then((Ra) => {
|
|
47118
|
-
const
|
|
47119
|
-
Ce.automaticUploads ? ee.uploadImage(
|
|
47118
|
+
const Oi = ee.createBlobCache(ho, Ps, Ra);
|
|
47119
|
+
Ce.automaticUploads ? ee.uploadImage(Oi).then((fi) => {
|
|
47120
47120
|
Mr(fi.url), Er();
|
|
47121
47121
|
}).catch((fi) => {
|
|
47122
47122
|
Er(), ee.alertErr(fi, () => {
|
|
47123
47123
|
Je.focus("fileinput");
|
|
47124
47124
|
});
|
|
47125
|
-
}) : (ee.addToBlobCache(
|
|
47125
|
+
}) : (ee.addToBlobCache(Oi), Mr(Oi.blobUri()), Je.unblock());
|
|
47126
47126
|
});
|
|
47127
47127
|
});
|
|
47128
47128
|
}, Rc = (ee, Ce, Be) => (Je, Qt) => {
|
|
@@ -47145,7 +47145,7 @@ function Ode() {
|
|
|
47145
47145
|
style: Jp(Be.normalizeCss, di(Qt, !1))
|
|
47146
47146
|
};
|
|
47147
47147
|
ee.execCommand("mceUpdateImage", !1, di(ho, Ce.hasAccessibilityOptions)), ee.editorUpload.uploadImagesAuto(), Je.close();
|
|
47148
|
-
},
|
|
47148
|
+
}, Ti = (ee) => (Ce) => dr(ee, Ce) ? ya(ee.documentBaseURI.toAbsolute(Ce)).then((Be) => ({
|
|
47149
47149
|
width: String(Be.width),
|
|
47150
47150
|
height: String(Be.height)
|
|
47151
47151
|
})) : Promise.resolve({ width: "", height: "" }), Qp = (ee) => (Ce, Be, Je) => {
|
|
@@ -47166,7 +47166,7 @@ function Ode() {
|
|
|
47166
47166
|
return Be.length === 0 ? Promise.reject("Failed to upload image") : Be[0].status === !1 ? Promise.reject((Je = Be[0].error) === null || Je === void 0 ? void 0 : Je.message) : Be[0];
|
|
47167
47167
|
}), al = (ee) => {
|
|
47168
47168
|
const Ce = {
|
|
47169
|
-
imageSize:
|
|
47169
|
+
imageSize: Ti(ee),
|
|
47170
47170
|
addToBlobCache: R0(ee),
|
|
47171
47171
|
createBlobCache: Qp(ee),
|
|
47172
47172
|
alertErr: eg(ee),
|
|
@@ -47224,7 +47224,7 @@ function Ode() {
|
|
|
47224
47224
|
ee.on("PreInit", () => {
|
|
47225
47225
|
ee.parser.addNodeFilter("figure", ym(!0)), ee.serializer.addNodeFilter("figure", ym(!1));
|
|
47226
47226
|
});
|
|
47227
|
-
},
|
|
47227
|
+
}, Di = (ee) => (Ce) => {
|
|
47228
47228
|
const Be = () => {
|
|
47229
47229
|
Ce.setEnabled(ee.selection.isEditable());
|
|
47230
47230
|
};
|
|
@@ -47238,7 +47238,7 @@ function Ode() {
|
|
|
47238
47238
|
onAction: al(ee).open,
|
|
47239
47239
|
onSetup: (Ce) => {
|
|
47240
47240
|
Ce.setActive(ce(Iu(ee)));
|
|
47241
|
-
const Be = ee.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image", Ce.setActive).unbind, Je =
|
|
47241
|
+
const Be = ee.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image", Ce.setActive).unbind, Je = Di(ee)(Ce);
|
|
47242
47242
|
return () => {
|
|
47243
47243
|
Be(), Je();
|
|
47244
47244
|
};
|
|
@@ -47247,7 +47247,7 @@ function Ode() {
|
|
|
47247
47247
|
icon: "image",
|
|
47248
47248
|
text: "Image...",
|
|
47249
47249
|
onAction: al(ee).open,
|
|
47250
|
-
onSetup:
|
|
47250
|
+
onSetup: Di(ee)
|
|
47251
47251
|
}), ee.ui.registry.addContextMenu("image", {
|
|
47252
47252
|
update: (Ce) => ee.selection.isEditable() && (so(Ce) || mm(Ce) && !_s(Ce)) ? ["image"] : []
|
|
47253
47253
|
});
|
|
@@ -47642,23 +47642,23 @@ function Rde() {
|
|
|
47642
47642
|
}, ea = Object.getPrototypeOf, Cf = (O) => Yt("HTMLElement", O), Xo = (O) => {
|
|
47643
47643
|
const Z = Ct("ownerDocument.defaultView", O);
|
|
47644
47644
|
return P(O) && (Cf(Z).prototype.isPrototypeOf(O) || /^HTML\w*Element$/.test(ea(O).constructor.name));
|
|
47645
|
-
}, xr = (O) => O.dom.nodeName.toLowerCase(), sl = (O) => O.dom.nodeType, jr = (O) => (Z) => sl(Z) === O, Ef = (O) => sl(O) === ya || xr(O) === "#comment", Mu = (O) => Qn(O) && Xo(O.dom), Qn = jr(Ys),
|
|
47645
|
+
}, xr = (O) => O.dom.nodeName.toLowerCase(), sl = (O) => O.dom.nodeType, jr = (O) => (Z) => sl(Z) === O, Ef = (O) => sl(O) === ya || xr(O) === "#comment", Mu = (O) => Qn(O) && Xo(O.dom), Qn = jr(Ys), wi = jr(br), _d = jr(Ya), Jo = (O) => (Z) => Qn(Z) && xr(Z) === O, Nn = (O) => z.from(O.dom.parentNode).map(Vn.fromDom), ls = (O) => z.from(O.dom.parentElement).map(Vn.fromDom), _i = (O) => z.from(O.dom.nextSibling).map(Vn.fromDom), Ht = (O) => we(O.dom.childNodes, Vn.fromDom), li = (O, Z) => {
|
|
47646
47646
|
const re = O.dom.childNodes;
|
|
47647
47647
|
return z.from(re[Z]).map(Vn.fromDom);
|
|
47648
|
-
}, so = (O) => li(O, 0), mm = (O) => li(O, O.dom.childNodes.length - 1),
|
|
47648
|
+
}, so = (O) => li(O, 0), mm = (O) => li(O, O.dom.childNodes.length - 1), Si = (O) => _d(O) && $(O.dom.host), Sd = (O) => Vn.fromDom(O.dom.getRootNode()), yr = (O) => {
|
|
47649
47649
|
const Z = Sd(O);
|
|
47650
|
-
return
|
|
47651
|
-
}, Jp = (O) => Vn.fromDom(O.dom.host),
|
|
47650
|
+
return Si(Z) ? z.some(Z) : z.none();
|
|
47651
|
+
}, Jp = (O) => Vn.fromDom(O.dom.host), Ai = (O, Z) => {
|
|
47652
47652
|
Nn(O).each((ke) => {
|
|
47653
47653
|
ke.dom.insertBefore(Z.dom, O.dom);
|
|
47654
47654
|
});
|
|
47655
47655
|
}, wf = (O, Z) => {
|
|
47656
|
-
|
|
47656
|
+
_i(O).fold(() => {
|
|
47657
47657
|
Nn(O).each((Pe) => {
|
|
47658
47658
|
qr(Pe, Z);
|
|
47659
47659
|
});
|
|
47660
47660
|
}, (ke) => {
|
|
47661
|
-
|
|
47661
|
+
Ai(ke, Z);
|
|
47662
47662
|
});
|
|
47663
47663
|
}, Zs = (O, Z) => {
|
|
47664
47664
|
so(O).fold(() => {
|
|
@@ -47670,7 +47670,7 @@ function Rde() {
|
|
|
47670
47670
|
O.dom.appendChild(Z.dom);
|
|
47671
47671
|
}, Uo = (O, Z) => {
|
|
47672
47672
|
fe(Z, (re) => {
|
|
47673
|
-
|
|
47673
|
+
Ai(O, re);
|
|
47674
47674
|
});
|
|
47675
47675
|
}, au = (O, Z) => {
|
|
47676
47676
|
fe(Z, (re) => {
|
|
@@ -47705,7 +47705,7 @@ function Rde() {
|
|
|
47705
47705
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
47706
47706
|
O.style !== void 0 && K(O.style.getPropertyValue)
|
|
47707
47707
|
), iu = (O) => {
|
|
47708
|
-
const Z =
|
|
47708
|
+
const Z = wi(O) ? O.dom.parentNode : O.dom;
|
|
47709
47709
|
if (Z == null || Z.ownerDocument === null)
|
|
47710
47710
|
return !1;
|
|
47711
47711
|
const re = Z.ownerDocument;
|
|
@@ -47736,12 +47736,12 @@ function Rde() {
|
|
|
47736
47736
|
break;
|
|
47737
47737
|
}
|
|
47738
47738
|
return z.none();
|
|
47739
|
-
}, Hu = (O, Z, re) => Ca((Pe, St) => St(Pe), rl, O, Z, re), ta = (O, Z, re) => rl(O, (ke) => Ui(ke, Z), re), fr = (O, Z, re) => Ca((Pe, St) => Ui(Pe, St), ta, O, Z, re), Sf = (O) => fr(O, "[contenteditable]"),
|
|
47739
|
+
}, Hu = (O, Z, re) => Ca((Pe, St) => St(Pe), rl, O, Z, re), ta = (O, Z, re) => rl(O, (ke) => Ui(ke, Z), re), fr = (O, Z, re) => Ca((Pe, St) => Ui(Pe, St), ta, O, Z, re), Sf = (O) => fr(O, "[contenteditable]"), ki = (O, Z = !1) => iu(O) ? O.dom.isContentEditable : Sf(O).fold(ce(Z), (re) => oc(re) === "true"), oc = (O) => O.dom.contentEditable, k0 = (O, Z, re) => rl(O, Z, re).isSome(), Ko = (O, Z) => k0(O, X(on, Z));
|
|
47740
47740
|
var Xs = tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"), na = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"), Ea = tinymce.util.Tools.resolve("tinymce.util.VK"), Vs = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), ui = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
47741
47741
|
const Ad = (O) => (Z) => $(Z) && Z.nodeName.toLowerCase() === O, Cr = (O) => (Z) => $(Z) && O.test(Z.nodeName), di = (O) => $(O) && O.nodeType === 3, Os = (O) => $(O) && O.nodeType === 1, Xa = Cr(/^(OL|UL|DL)$/), Gt = Cr(/^(OL|UL)$/), T0 = Ad("ol"), Af = Cr(/^(LI|DT|DD)$/), D0 = Cr(/^(DT|DD)$/), O0 = Cr(/^(TH|TD)$/), Pl = Ad("br"), hm = (O) => {
|
|
47742
47742
|
var Z;
|
|
47743
47743
|
return ((Z = O.parentNode) === null || Z === void 0 ? void 0 : Z.firstChild) === O;
|
|
47744
|
-
}, Rc = (O, Z) => $(Z) && Z.nodeName in O.schema.getTextBlockElements(), B0 = (O, Z) => $(O) && O.nodeName in Z, vm = (O, Z) => $(Z) && Z.nodeName in O.schema.getVoidElements(), kd = (O, Z) => Pl(Z) ? O.isBlock(Z.nextSibling) && !Pl(Z.previousSibling) : !1,
|
|
47744
|
+
}, Rc = (O, Z) => $(Z) && Z.nodeName in O.schema.getTextBlockElements(), B0 = (O, Z) => $(O) && O.nodeName in Z, vm = (O, Z) => $(Z) && Z.nodeName in O.schema.getVoidElements(), kd = (O, Z) => Pl(Z) ? O.isBlock(Z.nextSibling) && !Pl(Z.previousSibling) : !1, Ti = (O, Z, re) => {
|
|
47745
47745
|
const ke = O.isEmpty(Z);
|
|
47746
47746
|
return re && O.select("span[data-mce-type=bookmark]", Z).length > 0 ? !1 : ke;
|
|
47747
47747
|
}, Qp = (O, Z) => O.isChildOf(Z, O.getRoot()), R0 = (O) => (Z) => Z.options.get(O), eg = (O) => {
|
|
@@ -47777,13 +47777,13 @@ function Rde() {
|
|
|
47777
47777
|
}
|
|
47778
47778
|
O.dom.isEmpty(Un) || al.insertAfter(Un, Z), al.insertAfter(St, Z);
|
|
47779
47779
|
const Xn = re.parentElement;
|
|
47780
|
-
Xn &&
|
|
47780
|
+
Xn && Ti(O.dom, Xn) && ke(Xn), al.remove(re), Ti(O.dom, Z) && al.remove(Z);
|
|
47781
47781
|
}, Wi = Jo("dd"), ym = Jo("dt"), Ml = (O, Z) => {
|
|
47782
47782
|
Wi(Z) ? ci(Z, "dt") : ym(Z) && ls(Z).each((re) => il(O, re.dom, Z.dom));
|
|
47783
|
-
},
|
|
47783
|
+
}, Di = (O) => {
|
|
47784
47784
|
ym(O) && ci(O, "dd");
|
|
47785
47785
|
}, vs = (O, Z, re) => {
|
|
47786
|
-
Z === "Indent" ? fe(re,
|
|
47786
|
+
Z === "Indent" ? fe(re, Di) : fe(re, (ke) => Ml(O, ke));
|
|
47787
47787
|
}, Ba = (O, Z) => {
|
|
47788
47788
|
if (di(O))
|
|
47789
47789
|
return { container: O, offset: Z };
|
|
@@ -47818,7 +47818,7 @@ function Rde() {
|
|
|
47818
47818
|
}, Mr = (O) => {
|
|
47819
47819
|
const Z = O.selection.getSelectedBlocks();
|
|
47820
47820
|
return N(Er(O, Z), Af);
|
|
47821
|
-
}, Ra = (O) => N(Mr(O), D0),
|
|
47821
|
+
}, Ra = (O) => N(Mr(O), D0), Oi = (O, Z) => {
|
|
47822
47822
|
const re = O.dom.getParents(Z, "TD,TH");
|
|
47823
47823
|
return re.length > 0 ? re[0] : O.getBody();
|
|
47824
47824
|
}, fi = (O, Z) => !Xa(Z) && !Af(Z) && Me(Ce, (re) => O.isValidChild(Z.nodeName, re)), Zi = (O, Z) => {
|
|
@@ -48251,7 +48251,7 @@ function Rde() {
|
|
|
48251
48251
|
const re = Z.parentElement;
|
|
48252
48252
|
if (re && re.nodeName === "LI" && re.firstChild === Z) {
|
|
48253
48253
|
const ke = re.previousSibling;
|
|
48254
|
-
ke && ke.nodeName === "LI" ? (ke.appendChild(Z),
|
|
48254
|
+
ke && ke.nodeName === "LI" ? (ke.appendChild(Z), Ti(O, re) && eo.remove(re)) : eo.setStyle(re, "listStyleType", "none");
|
|
48255
48255
|
}
|
|
48256
48256
|
if (Xa(re)) {
|
|
48257
48257
|
const ke = re.previousSibling;
|
|
@@ -48276,15 +48276,15 @@ function Rde() {
|
|
|
48276
48276
|
if (Pe.nodeName === "LI" && !Pe.hasChildNodes() || bn[Pe.nodeName] || di(Pe) && Pe.data.length > 0)
|
|
48277
48277
|
return Pe;
|
|
48278
48278
|
return null;
|
|
48279
|
-
},
|
|
48279
|
+
}, Bi = (O, Z) => {
|
|
48280
48280
|
const re = Z.childNodes;
|
|
48281
48281
|
return re.length === 1 && !Xa(re[0]) && O.isBlock(re[0]);
|
|
48282
|
-
}, qs = (O) => z.from(O).map(Vn.fromDom).filter(Mu).exists((Z) =>
|
|
48283
|
-
|
|
48282
|
+
}, qs = (O) => z.from(O).map(Vn.fromDom).filter(Mu).exists((Z) => ki(Z) && !nt(["details"], xr(Z))), I0 = (O, Z) => {
|
|
48283
|
+
Bi(O, Z) && qs(Z.firstChild) && O.remove(Z.firstChild, !0);
|
|
48284
48284
|
}, H0 = (O, Z, re) => {
|
|
48285
48285
|
let ke;
|
|
48286
|
-
const Pe =
|
|
48287
|
-
if (I0(O, Z), !
|
|
48286
|
+
const Pe = Bi(O, re) ? re.firstChild : re;
|
|
48287
|
+
if (I0(O, Z), !Ti(O, Z, !0))
|
|
48288
48288
|
for (; ke = Z.firstChild; )
|
|
48289
48289
|
Pe.appendChild(ke);
|
|
48290
48290
|
}, Bo = (O, Z, re) => {
|
|
@@ -48294,10 +48294,10 @@ function Rde() {
|
|
|
48294
48294
|
return;
|
|
48295
48295
|
Xa(re.lastChild) && (ke = re.lastChild), Pe === re.lastChild && Pl(Pe.previousSibling) && O.remove(Pe.previousSibling);
|
|
48296
48296
|
const St = re.lastChild;
|
|
48297
|
-
St && Pl(St) && Z.hasChildNodes() && O.remove(St),
|
|
48297
|
+
St && Pl(St) && Z.hasChildNodes() && O.remove(St), Ti(O, re, !0) && Fl(Vn.fromDom(re)), H0(O, Z, re), ke && re.appendChild(ke);
|
|
48298
48298
|
const Un = ro(Vn.fromDom(re), Vn.fromDom(Z)) ? O.getParents(Z, Xa, re) : [];
|
|
48299
48299
|
O.remove(Z), fe(Un, (Xn) => {
|
|
48300
|
-
|
|
48300
|
+
Ti(O, Xn) && Xn !== O.getRoot() && O.remove(Xn);
|
|
48301
48301
|
});
|
|
48302
48302
|
}, $u = (O, Z, re) => {
|
|
48303
48303
|
Fl(Vn.fromDom(re)), Bo(O.dom, Z, re), O.selection.setCursorLocation(re, 0);
|
|
@@ -48315,10 +48315,10 @@ function Rde() {
|
|
|
48315
48315
|
const St = Rd(Pe);
|
|
48316
48316
|
O.selection.setRng(St);
|
|
48317
48317
|
}, rc = (O, Z) => {
|
|
48318
|
-
const re = O.dom, ke = O.selection, Pe = ke.getStart(), St =
|
|
48318
|
+
const re = O.dom, ke = O.selection, Pe = ke.getStart(), St = Oi(O, Pe), bn = re.getParent(ke.getStart(), "LI", St);
|
|
48319
48319
|
if (bn) {
|
|
48320
48320
|
const Un = bn.parentElement;
|
|
48321
|
-
if (Un === O.getBody() &&
|
|
48321
|
+
if (Un === O.getBody() && Ti(re, Un))
|
|
48322
48322
|
return !0;
|
|
48323
48323
|
const Xn = ee(ke.getRng()), Dn = re.getParent($l(O, Xn, Z, St), "LI", St), es = Dn && (Z ? re.isChildOf(bn, Dn) : re.isChildOf(Dn, bn));
|
|
48324
48324
|
if (Dn && Dn !== bn && !es)
|
|
@@ -48343,7 +48343,7 @@ function Rde() {
|
|
|
48343
48343
|
const ke = O.getParent(Z.parentNode, O.isBlock, re);
|
|
48344
48344
|
O.remove(Z), ke && O.isEmpty(ke) && O.remove(ke);
|
|
48345
48345
|
}, qh = (O, Z) => {
|
|
48346
|
-
const re = O.dom, ke = O.selection.getStart(), Pe =
|
|
48346
|
+
const re = O.dom, ke = O.selection.getStart(), Pe = Oi(O, ke), St = re.getParent(ke, re.isBlock, Pe);
|
|
48347
48347
|
if (St && re.isEmpty(St, void 0, { checkRootAsContent: !0 })) {
|
|
48348
48348
|
const bn = ee(O.selection.getRng()), Un = $l(O, bn, Z, Pe), Xn = re.getParent(Un, "LI", Pe);
|
|
48349
48349
|
if (Un && Xn) {
|
|
@@ -48356,7 +48356,7 @@ function Rde() {
|
|
|
48356
48356
|
}
|
|
48357
48357
|
return !1;
|
|
48358
48358
|
}, Vu = (O, Z) => rc(O, Z) || qh(O, Z), Ld = (O) => {
|
|
48359
|
-
const Z = O.selection.getStart(), re =
|
|
48359
|
+
const Z = O.selection.getStart(), re = Oi(O, Z);
|
|
48360
48360
|
return O.dom.getParent(Z, "LI,DT,DD", re) || Mr(O).length > 0;
|
|
48361
48361
|
}, jv = (O) => Ld(O) ? (O.undoManager.transact(() => {
|
|
48362
48362
|
let Z = !0;
|
|
@@ -48505,14 +48505,14 @@ function Rde() {
|
|
|
48505
48505
|
const { parser: Z } = O;
|
|
48506
48506
|
Z.addNodeFilter("ul,ol", (re) => fe(re, ra));
|
|
48507
48507
|
});
|
|
48508
|
-
},
|
|
48508
|
+
}, Ri = (O) => {
|
|
48509
48509
|
O.on("keydown", (Z) => {
|
|
48510
48510
|
Z.keyCode !== Ea.TAB || Ea.metaKeyPressed(Z) || O.undoManager.transact(() => {
|
|
48511
48511
|
(Z.shiftKey ? ul(O) : no(O)) && Z.preventDefault();
|
|
48512
48512
|
});
|
|
48513
48513
|
});
|
|
48514
48514
|
}, Us = (O) => {
|
|
48515
|
-
bm(O) &&
|
|
48515
|
+
bm(O) && Ri(O), qv(O);
|
|
48516
48516
|
}, Ws = (O, Z) => (re) => {
|
|
48517
48517
|
const ke = (Pe) => {
|
|
48518
48518
|
re.setActive(ng(Pe.parents, Z)), re.setEnabled(!Cm(O, Pe.element) && O.selection.isEditable());
|
|
@@ -51173,7 +51173,7 @@ export {
|
|
|
51173
51173
|
ume as phoneRule,
|
|
51174
51174
|
MS as piniaPersistConfig,
|
|
51175
51175
|
Nl as request,
|
|
51176
|
-
|
|
51176
|
+
zi as routerInstance,
|
|
51177
51177
|
cG as routerMode,
|
|
51178
51178
|
l0e as setBaseRoutes,
|
|
51179
51179
|
rz as setBaseRoutesSuccess,
|