@26lights/orcha 0.42.89 → 0.42.90
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/orcha.cjs.js +20 -20
- package/dist/orcha.es.js +190 -189
- package/dist/orcha.umd.js +18 -18
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var xg = Object.defineProperty;
|
|
2
2
|
var Sg = (t, e, n) => e in t ? xg(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var K = (t, e, n) => (Sg(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { defineComponent as de, openBlock as k, createBlock as Y, unref as ge, mergeProps as At, createElementBlock as D, createElementVNode as x, createStaticVNode as Tg, computed as M, resolveDynamicComponent as Eo, normalizeClass as _e, renderSlot as ye, toDisplayString as ie, createCommentVNode as U, ref as se, watch as Pe, nextTick as Jt, withKeys as oi, toHandlers as Eg, withCtx as ue, createTextVNode as Eu, createVNode as L, normalizeStyle as qn, withModifiers as xe, createSlots as xs, Fragment as Ue, renderList as nt, onMounted as St, onBeforeUnmount as Au, onUnmounted as gn, Teleport as
|
|
4
|
+
import { defineComponent as de, openBlock as k, createBlock as Y, unref as ge, mergeProps as At, createElementBlock as D, createElementVNode as x, createStaticVNode as Tg, computed as M, resolveDynamicComponent as Eo, normalizeClass as _e, renderSlot as ye, toDisplayString as ie, createCommentVNode as U, ref as se, watch as Pe, nextTick as Jt, withKeys as oi, toHandlers as Eg, withCtx as ue, createTextVNode as Eu, createVNode as L, normalizeStyle as qn, withModifiers as xe, createSlots as xs, Fragment as Ue, renderList as nt, onMounted as St, onBeforeUnmount as Au, onUnmounted as gn, Teleport as lr, toRefs as rn, getCurrentInstance as Ao, toRef as Yo, normalizeProps as Ss, guardReactiveProps as Ts, withDirectives as Yt, vShow as _a, provide as Ag, inject as $g, useTemplateRef as Dg, readonly as Mg, toValue as Jl, watchEffect as Zp, shallowRef as Sa, h as Og, vModelText as Nr, resolveComponent as xr, vModelCheckbox as Lg, getCurrentScope as Ng, onScopeDispose as Ig, toHandlerKey as Pg } from "vue";
|
|
5
5
|
import { RouterView as Fg, useRoute as Rg, useRouter as $u } from "vue-router";
|
|
6
6
|
import Ur from "vuedraggable";
|
|
7
7
|
const tme = /* @__PURE__ */ de({
|
|
@@ -1523,7 +1523,7 @@ function Ea(t) {
|
|
|
1523
1523
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1524
1524
|
}, Ea(t);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function cr(t) {
|
|
1527
1527
|
if (t === null || t === !0 || t === !1)
|
|
1528
1528
|
return NaN;
|
|
1529
1529
|
var e = Number(t);
|
|
@@ -1540,7 +1540,7 @@ function Dt(t) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
function g_(t, e) {
|
|
1542
1542
|
st(2, arguments);
|
|
1543
|
-
var n = Dt(t).getTime(), r =
|
|
1543
|
+
var n = Dt(t).getTime(), r = cr(e);
|
|
1544
1544
|
return new Date(n + r);
|
|
1545
1545
|
}
|
|
1546
1546
|
var v_ = {};
|
|
@@ -1579,7 +1579,7 @@ function Xp(t) {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
function Hc(t, e) {
|
|
1581
1581
|
st(2, arguments);
|
|
1582
|
-
var n =
|
|
1582
|
+
var n = cr(e);
|
|
1583
1583
|
return g_(t, -n);
|
|
1584
1584
|
}
|
|
1585
1585
|
var w_ = 864e5;
|
|
@@ -1620,7 +1620,7 @@ function T_(t) {
|
|
|
1620
1620
|
function $a(t, e) {
|
|
1621
1621
|
var n, r, o, i, s, a, l, c;
|
|
1622
1622
|
st(1, arguments);
|
|
1623
|
-
var u = Es(), d =
|
|
1623
|
+
var u = Es(), d = cr((n = (r = (o = (i = e == null ? void 0 : e.weekStartsOn) !== null && i !== void 0 ? i : e == null || (s = e.locale) === null || s === void 0 || (a = s.options) === null || a === void 0 ? void 0 : a.weekStartsOn) !== null && o !== void 0 ? o : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && n !== void 0 ? n : 0);
|
|
1624
1624
|
if (!(d >= 0 && d <= 6))
|
|
1625
1625
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1626
1626
|
var f = Dt(t), p = f.getUTCDay(), h = (p < d ? 7 : 0) + p - d;
|
|
@@ -1629,7 +1629,7 @@ function $a(t, e) {
|
|
|
1629
1629
|
function eh(t, e) {
|
|
1630
1630
|
var n, r, o, i, s, a, l, c;
|
|
1631
1631
|
st(1, arguments);
|
|
1632
|
-
var u = Dt(t), d = u.getUTCFullYear(), f = Es(), p =
|
|
1632
|
+
var u = Dt(t), d = u.getUTCFullYear(), f = Es(), p = cr((n = (r = (o = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (s = e.locale) === null || s === void 0 || (a = s.options) === null || a === void 0 ? void 0 : a.firstWeekContainsDate) !== null && o !== void 0 ? o : f.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = f.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
|
|
1633
1633
|
if (!(p >= 1 && p <= 7))
|
|
1634
1634
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1635
1635
|
var h = /* @__PURE__ */ new Date(0);
|
|
@@ -1642,7 +1642,7 @@ function eh(t, e) {
|
|
|
1642
1642
|
function E_(t, e) {
|
|
1643
1643
|
var n, r, o, i, s, a, l, c;
|
|
1644
1644
|
st(1, arguments);
|
|
1645
|
-
var u = Es(), d =
|
|
1645
|
+
var u = Es(), d = cr((n = (r = (o = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (s = e.locale) === null || s === void 0 || (a = s.options) === null || a === void 0 ? void 0 : a.firstWeekContainsDate) !== null && o !== void 0 ? o : u.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), f = eh(t, e), p = /* @__PURE__ */ new Date(0);
|
|
1646
1646
|
p.setUTCFullYear(f, 0, d), p.setUTCHours(0, 0, 0, 0);
|
|
1647
1647
|
var h = $a(p, e);
|
|
1648
1648
|
return h;
|
|
@@ -2761,10 +2761,10 @@ var xy = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Sy = /P+p+|P+|
|
|
|
2761
2761
|
function rh(t, e, n) {
|
|
2762
2762
|
var r, o, i, s, a, l, c, u, d, f, p, h, m, y, _, v, g, w;
|
|
2763
2763
|
st(2, arguments);
|
|
2764
|
-
var C = String(e), b = Es(), E = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : b.locale) !== null && r !== void 0 ? r : nh, A =
|
|
2764
|
+
var C = String(e), b = Es(), E = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : b.locale) !== null && r !== void 0 ? r : nh, A = cr((i = (s = (a = (l = n == null ? void 0 : n.firstWeekContainsDate) !== null && l !== void 0 ? l : n == null || (c = n.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : b.firstWeekContainsDate) !== null && s !== void 0 ? s : (d = b.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
2765
2765
|
if (!(A >= 1 && A <= 7))
|
|
2766
2766
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2767
|
-
var $ =
|
|
2767
|
+
var $ = cr((p = (h = (m = (y = n == null ? void 0 : n.weekStartsOn) !== null && y !== void 0 ? y : n == null || (_ = n.locale) === null || _ === void 0 || (v = _.options) === null || v === void 0 ? void 0 : v.weekStartsOn) !== null && m !== void 0 ? m : b.weekStartsOn) !== null && h !== void 0 ? h : (g = b.locale) === null || g === void 0 || (w = g.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && p !== void 0 ? p : 0);
|
|
2768
2768
|
if (!($ >= 0 && $ <= 6))
|
|
2769
2769
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2770
2770
|
if (!E.localize)
|
|
@@ -2808,7 +2808,7 @@ function $y(t) {
|
|
|
2808
2808
|
function Dy(t, e, n) {
|
|
2809
2809
|
var r, o, i, s, a, l, c, u, d, f;
|
|
2810
2810
|
st(2, arguments);
|
|
2811
|
-
var p = Dt(t), h = Dt(e), m = Es(), y = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : m.locale) !== null && r !== void 0 ? r : nh, _ =
|
|
2811
|
+
var p = Dt(t), h = Dt(e), m = Es(), y = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : m.locale) !== null && r !== void 0 ? r : nh, _ = cr((i = (s = (a = (l = n == null ? void 0 : n.weekStartsOn) !== null && l !== void 0 ? l : n == null || (c = n.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : m.weekStartsOn) !== null && s !== void 0 ? s : (d = m.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && i !== void 0 ? i : 0);
|
|
2812
2812
|
if (!y.localize)
|
|
2813
2813
|
throw new RangeError("locale must contain localize property");
|
|
2814
2814
|
if (!y.formatLong)
|
|
@@ -2832,7 +2832,7 @@ function Dy(t, e, n) {
|
|
|
2832
2832
|
function ds(t, e) {
|
|
2833
2833
|
var n;
|
|
2834
2834
|
st(1, arguments);
|
|
2835
|
-
var r =
|
|
2835
|
+
var r = cr((n = e == null ? void 0 : e.additionalDigits) !== null && n !== void 0 ? n : 2);
|
|
2836
2836
|
if (r !== 2 && r !== 1 && r !== 0)
|
|
2837
2837
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2838
2838
|
if (!(typeof t == "string" || Object.prototype.toString.call(t) === "[object String]"))
|
|
@@ -4705,14 +4705,14 @@ function Xt(t) {
|
|
|
4705
4705
|
var e;
|
|
4706
4706
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
4707
4707
|
}
|
|
4708
|
-
function
|
|
4708
|
+
function hr(t) {
|
|
4709
4709
|
var e;
|
|
4710
4710
|
return (e = (mh(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
4711
4711
|
}
|
|
4712
4712
|
function mh(t) {
|
|
4713
4713
|
return t instanceof Node || t instanceof Xt(t).Node;
|
|
4714
4714
|
}
|
|
4715
|
-
function
|
|
4715
|
+
function ur(t) {
|
|
4716
4716
|
return t instanceof Element || t instanceof Xt(t).Element;
|
|
4717
4717
|
}
|
|
4718
4718
|
function zn(t) {
|
|
@@ -4756,7 +4756,7 @@ function pn(t) {
|
|
|
4756
4756
|
return Xt(t).getComputedStyle(t);
|
|
4757
4757
|
}
|
|
4758
4758
|
function pl(t) {
|
|
4759
|
-
return
|
|
4759
|
+
return ur(t) ? {
|
|
4760
4760
|
scrollLeft: t.scrollLeft,
|
|
4761
4761
|
scrollTop: t.scrollTop
|
|
4762
4762
|
} : {
|
|
@@ -4772,7 +4772,7 @@ function ai(t) {
|
|
|
4772
4772
|
t.assignedSlot || // DOM Element detected.
|
|
4773
4773
|
t.parentNode || // ShadowRoot detected.
|
|
4774
4774
|
l1(t) && t.host || // Fallback.
|
|
4775
|
-
|
|
4775
|
+
hr(t)
|
|
4776
4776
|
);
|
|
4777
4777
|
return l1(e) ? e.host : e;
|
|
4778
4778
|
}
|
|
@@ -4797,7 +4797,7 @@ function vh(t) {
|
|
|
4797
4797
|
};
|
|
4798
4798
|
}
|
|
4799
4799
|
function Ru(t) {
|
|
4800
|
-
return
|
|
4800
|
+
return ur(t) ? t : t.contextElement;
|
|
4801
4801
|
}
|
|
4802
4802
|
function Jo(t) {
|
|
4803
4803
|
const e = Ru(t);
|
|
@@ -4829,11 +4829,11 @@ function ho(t, e, n, r) {
|
|
|
4829
4829
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
4830
4830
|
const o = t.getBoundingClientRect(), i = Ru(t);
|
|
4831
4831
|
let s = Ir(1);
|
|
4832
|
-
e && (r ?
|
|
4832
|
+
e && (r ? ur(r) && (s = Jo(r)) : s = Jo(t));
|
|
4833
4833
|
const a = gC(i, n, r) ? _h(i) : Ir(0);
|
|
4834
4834
|
let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, u = o.width / s.x, d = o.height / s.y;
|
|
4835
4835
|
if (i) {
|
|
4836
|
-
const f = Xt(i), p = r &&
|
|
4836
|
+
const f = Xt(i), p = r && ur(r) ? Xt(r) : r;
|
|
4837
4837
|
let h = f.frameElement;
|
|
4838
4838
|
for (; h && r && p !== f; ) {
|
|
4839
4839
|
const m = Jo(h), y = h.getBoundingClientRect(), _ = pn(h), v = y.left + (h.clientLeft + parseFloat(_.paddingLeft)) * m.x, g = y.top + (h.clientTop + parseFloat(_.paddingTop)) * m.y;
|
|
@@ -4853,7 +4853,7 @@ function vC(t) {
|
|
|
4853
4853
|
offsetParent: n,
|
|
4854
4854
|
strategy: r
|
|
4855
4855
|
} = t;
|
|
4856
|
-
const o = zn(n), i =
|
|
4856
|
+
const o = zn(n), i = hr(n);
|
|
4857
4857
|
if (n === i)
|
|
4858
4858
|
return e;
|
|
4859
4859
|
let s = {
|
|
@@ -4876,10 +4876,10 @@ function _C(t) {
|
|
|
4876
4876
|
return Array.from(t.getClientRects());
|
|
4877
4877
|
}
|
|
4878
4878
|
function yh(t) {
|
|
4879
|
-
return ho(
|
|
4879
|
+
return ho(hr(t)).left + pl(t).scrollLeft;
|
|
4880
4880
|
}
|
|
4881
4881
|
function yC(t) {
|
|
4882
|
-
const e =
|
|
4882
|
+
const e = hr(t), n = pl(t), r = t.ownerDocument.body, o = sn(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = sn(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
4883
4883
|
let s = -n.scrollLeft + yh(t);
|
|
4884
4884
|
const a = -n.scrollTop;
|
|
4885
4885
|
return pn(r).direction === "rtl" && (s += sn(e.clientWidth, r.clientWidth) - o), {
|
|
@@ -4890,7 +4890,7 @@ function yC(t) {
|
|
|
4890
4890
|
};
|
|
4891
4891
|
}
|
|
4892
4892
|
function bC(t, e) {
|
|
4893
|
-
const n = Xt(t), r =
|
|
4893
|
+
const n = Xt(t), r = hr(t), o = n.visualViewport;
|
|
4894
4894
|
let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
4895
4895
|
if (o) {
|
|
4896
4896
|
i = o.width, s = o.height;
|
|
@@ -4918,8 +4918,8 @@ function c1(t, e, n) {
|
|
|
4918
4918
|
if (e === "viewport")
|
|
4919
4919
|
r = bC(t, n);
|
|
4920
4920
|
else if (e === "document")
|
|
4921
|
-
r = yC(
|
|
4922
|
-
else if (
|
|
4921
|
+
r = yC(hr(t));
|
|
4922
|
+
else if (ur(e))
|
|
4923
4923
|
r = CC(e, n);
|
|
4924
4924
|
else {
|
|
4925
4925
|
const o = _h(t);
|
|
@@ -4933,16 +4933,16 @@ function c1(t, e, n) {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
function bh(t, e) {
|
|
4935
4935
|
const n = ai(t);
|
|
4936
|
-
return n === e || !
|
|
4936
|
+
return n === e || !ur(n) || fl(n) ? !1 : pn(n).position === "fixed" || bh(n, e);
|
|
4937
4937
|
}
|
|
4938
4938
|
function wC(t, e) {
|
|
4939
4939
|
const n = e.get(t);
|
|
4940
4940
|
if (n)
|
|
4941
4941
|
return n;
|
|
4942
|
-
let r = ps(t, [], !1).filter((a) =>
|
|
4942
|
+
let r = ps(t, [], !1).filter((a) => ur(a) && Pr(a) !== "body"), o = null;
|
|
4943
4943
|
const i = pn(t).position === "fixed";
|
|
4944
4944
|
let s = i ? ai(t) : t;
|
|
4945
|
-
for (;
|
|
4945
|
+
for (; ur(s) && !fl(s); ) {
|
|
4946
4946
|
const a = pn(s), l = Pu(s);
|
|
4947
4947
|
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Os(s) && !l && bh(t, s)) ? r = r.filter((u) => u !== s) : o = a, s = ai(s);
|
|
4948
4948
|
}
|
|
@@ -4970,7 +4970,7 @@ function xC(t) {
|
|
|
4970
4970
|
return vh(t);
|
|
4971
4971
|
}
|
|
4972
4972
|
function SC(t, e, n) {
|
|
4973
|
-
const r = zn(e), o =
|
|
4973
|
+
const r = zn(e), o = hr(e), i = n === "fixed", s = ho(t, !0, i, e);
|
|
4974
4974
|
let a = {
|
|
4975
4975
|
scrollLeft: 0,
|
|
4976
4976
|
scrollTop: 0
|
|
@@ -5022,19 +5022,19 @@ function EC(t) {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
const AC = {
|
|
5024
5024
|
convertOffsetParentRelativeRectToViewportRelativeRect: vC,
|
|
5025
|
-
getDocumentElement:
|
|
5025
|
+
getDocumentElement: hr,
|
|
5026
5026
|
getClippingRect: kC,
|
|
5027
5027
|
getOffsetParent: Ch,
|
|
5028
5028
|
getElementRects: TC,
|
|
5029
5029
|
getClientRects: _C,
|
|
5030
5030
|
getDimensions: xC,
|
|
5031
5031
|
getScale: Jo,
|
|
5032
|
-
isElement:
|
|
5032
|
+
isElement: ur,
|
|
5033
5033
|
isRTL: EC
|
|
5034
5034
|
};
|
|
5035
5035
|
function $C(t, e) {
|
|
5036
5036
|
let n = null, r;
|
|
5037
|
-
const o =
|
|
5037
|
+
const o = hr(t);
|
|
5038
5038
|
function i() {
|
|
5039
5039
|
clearTimeout(r), n && n.disconnect(), n = null;
|
|
5040
5040
|
}
|
|
@@ -5320,7 +5320,7 @@ function BC(t, e, n) {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
}), Nt = M(() => {
|
|
5322
5322
|
let N = et.value;
|
|
5323
|
-
return q.value && (N = N.reverse()),
|
|
5323
|
+
return q.value && (N = N.reverse()), Jn.value.length && (N = Jn.value.concat(N)), Mi(N);
|
|
5324
5324
|
}), bt = M(() => {
|
|
5325
5325
|
let N = Nt.value;
|
|
5326
5326
|
return Ht.value > 0 && (N = N.slice(0, Ht.value)), N;
|
|
@@ -5334,17 +5334,17 @@ function BC(t, e, n) {
|
|
|
5334
5334
|
[ee.value]: [...Ot.value],
|
|
5335
5335
|
__CREATE__: !0
|
|
5336
5336
|
}), N.concat(ne);
|
|
5337
|
-
}),
|
|
5337
|
+
}), Yn = M(() => {
|
|
5338
5338
|
let N = [...vn.value].map((ne) => ({ ...ne }));
|
|
5339
|
-
return
|
|
5339
|
+
return Jn.value.length && (N[0] && N[0].__CREATE__ ? N[0][ee.value] = [...Jn.value, ...N[0][ee.value]] : N = [{
|
|
5340
5340
|
[A.value]: " ",
|
|
5341
|
-
[ee.value]: [...
|
|
5341
|
+
[ee.value]: [...Jn.value],
|
|
5342
5342
|
__CREATE__: !0
|
|
5343
5343
|
}].concat(N)), N;
|
|
5344
5344
|
}), vr = M(() => {
|
|
5345
5345
|
if (!R.value)
|
|
5346
5346
|
return [];
|
|
5347
|
-
let N =
|
|
5347
|
+
let N = Yn.value;
|
|
5348
5348
|
return Yr((N || /* istanbul ignore next */
|
|
5349
5349
|
[]).map((ne, Oe) => {
|
|
5350
5350
|
const Ze = Oi(ne[ee.value]);
|
|
@@ -5352,8 +5352,8 @@ function BC(t, e, n) {
|
|
|
5352
5352
|
...ne,
|
|
5353
5353
|
index: Oe,
|
|
5354
5354
|
group: !0,
|
|
5355
|
-
[ee.value]: Mi(Ze, !1).map((
|
|
5356
|
-
__VISIBLE__: Mi(Ze).map((
|
|
5355
|
+
[ee.value]: Mi(Ze, !1).map((Xn) => Object.assign({}, Xn, ne[W.value] ? { [W.value]: !0 } : {})),
|
|
5356
|
+
__VISIBLE__: Mi(Ze).map((Xn) => Object.assign({}, Xn, ne[W.value] ? { [W.value]: !0 } : {}))
|
|
5357
5357
|
};
|
|
5358
5358
|
}));
|
|
5359
5359
|
}), Kr = M(() => {
|
|
@@ -5364,7 +5364,7 @@ function BC(t, e, n) {
|
|
|
5364
5364
|
case "tags":
|
|
5365
5365
|
return !Nn(me.value) && me.value.length > 0;
|
|
5366
5366
|
}
|
|
5367
|
-
}), _r = M(() => p !== void 0 && p.value !== void 0 ? p.value(me.value, ae) : me.value && me.value.length > 1 ? `${me.value.length} options selected` : "1 option selected"), Oo = M(() => !et.value.length && !Qe.value && !
|
|
5367
|
+
}), _r = M(() => p !== void 0 && p.value !== void 0 ? p.value(me.value, ae) : me.value && me.value.length > 1 ? `${me.value.length} options selected` : "1 option selected"), Oo = M(() => !et.value.length && !Qe.value && !Jn.value.length), Lo = M(() => et.value.length > 0 && bt.value.length == 0 && (fe.value && R.value || !R.value)), Jn = M(() => gr.value === !1 || !fe.value ? [] : Zs(fe.value) !== -1 ? [] : [{
|
|
5368
5368
|
[b.value]: fe.value,
|
|
5369
5369
|
[On.value[0]]: fe.value,
|
|
5370
5370
|
[u.value]: fe.value,
|
|
@@ -5486,10 +5486,10 @@ function BC(t, e, n) {
|
|
|
5486
5486
|
let Oe = N;
|
|
5487
5487
|
if (fe.value && g.value) {
|
|
5488
5488
|
let Ze = ke.value;
|
|
5489
|
-
Ze || (Ze = (
|
|
5490
|
-
let Gs = tc(He(
|
|
5489
|
+
Ze || (Ze = (Xn, bn, Ii) => On.value.some((Qn) => {
|
|
5490
|
+
let Gs = tc(He(Xn[Qn]), I.value);
|
|
5491
5491
|
return G.value ? Gs.startsWith(tc(bn, I.value)) : Gs.indexOf(tc(bn, I.value)) !== -1;
|
|
5492
|
-
})), Oe = Oe.filter((
|
|
5492
|
+
})), Oe = Oe.filter((Xn) => Ze(Xn, fe.value, ae));
|
|
5493
5493
|
}
|
|
5494
5494
|
return a.value && ne && (Oe = Oe.filter((Ze) => !Di(Ze))), Oe;
|
|
5495
5495
|
}, Oi = (N) => {
|
|
@@ -5770,11 +5770,11 @@ function zr(t) {
|
|
|
5770
5770
|
function Hu(t) {
|
|
5771
5771
|
return ci(zr(t)).left + Uu(t).scrollLeft;
|
|
5772
5772
|
}
|
|
5773
|
-
function
|
|
5773
|
+
function dr(t) {
|
|
5774
5774
|
return Qt(t).getComputedStyle(t);
|
|
5775
5775
|
}
|
|
5776
5776
|
function qu(t) {
|
|
5777
|
-
var e =
|
|
5777
|
+
var e = dr(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
|
|
5778
5778
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
5779
5779
|
}
|
|
5780
5780
|
function zC(t) {
|
|
@@ -5836,18 +5836,18 @@ function jC(t) {
|
|
|
5836
5836
|
}
|
|
5837
5837
|
function d1(t) {
|
|
5838
5838
|
return !dn(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
5839
|
-
|
|
5839
|
+
dr(t).position === "fixed" ? null : t.offsetParent;
|
|
5840
5840
|
}
|
|
5841
5841
|
function WC(t) {
|
|
5842
5842
|
var e = /firefox/i.test(zc()), n = /Trident/i.test(zc());
|
|
5843
5843
|
if (n && dn(t)) {
|
|
5844
|
-
var r =
|
|
5844
|
+
var r = dr(t);
|
|
5845
5845
|
if (r.position === "fixed")
|
|
5846
5846
|
return null;
|
|
5847
5847
|
}
|
|
5848
5848
|
var o = hl(t);
|
|
5849
5849
|
for (Bu(o) && (o = o.host); dn(o) && ["html", "body"].indexOf(Vn(o)) < 0; ) {
|
|
5850
|
-
var i =
|
|
5850
|
+
var i = dr(o);
|
|
5851
5851
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
|
|
5852
5852
|
return o;
|
|
5853
5853
|
o = o.parentNode;
|
|
@@ -5855,11 +5855,11 @@ function WC(t) {
|
|
|
5855
5855
|
return null;
|
|
5856
5856
|
}
|
|
5857
5857
|
function ml(t) {
|
|
5858
|
-
for (var e = Qt(t), n = d1(t); n && jC(n) &&
|
|
5858
|
+
for (var e = Qt(t), n = d1(t); n && jC(n) && dr(n).position === "static"; )
|
|
5859
5859
|
n = d1(n);
|
|
5860
|
-
return n && (Vn(n) === "html" || Vn(n) === "body" &&
|
|
5860
|
+
return n && (Vn(n) === "html" || Vn(n) === "body" && dr(n).position === "static") ? e : n || WC(t) || e;
|
|
5861
5861
|
}
|
|
5862
|
-
var kn = "top", jn = "bottom", Fr = "right",
|
|
5862
|
+
var kn = "top", jn = "bottom", Fr = "right", sr = "left", zu = "auto", gl = [kn, jn, Fr, sr], ui = "start", hs = "end", ZC = "clippingParents", Sh = "viewport", zi = "popper", KC = "reference", f1 = /* @__PURE__ */ gl.reduce(function(t, e) {
|
|
5863
5863
|
return t.concat([e + "-" + ui, e + "-" + hs]);
|
|
5864
5864
|
}, []), GC = /* @__PURE__ */ [].concat(gl, [zu]).reduce(function(t, e) {
|
|
5865
5865
|
return t.concat([e, e + "-" + ui, e + "-" + hs]);
|
|
@@ -5929,7 +5929,7 @@ function u9(t, e) {
|
|
|
5929
5929
|
}
|
|
5930
5930
|
function d9(t) {
|
|
5931
5931
|
var e, n = zr(t), r = Uu(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = lo(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = lo(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + Hu(t), l = -r.scrollTop;
|
|
5932
|
-
return
|
|
5932
|
+
return dr(o || n).direction === "rtl" && (a += lo(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
5933
5933
|
width: i,
|
|
5934
5934
|
height: s,
|
|
5935
5935
|
x: a,
|
|
@@ -5966,7 +5966,7 @@ function p1(t, e, n) {
|
|
|
5966
5966
|
return e === Sh ? Vc(u9(t, n)) : mo(e) ? p9(e, n) : Vc(d9(zr(t)));
|
|
5967
5967
|
}
|
|
5968
5968
|
function h9(t) {
|
|
5969
|
-
var e = ts(hl(t)), n = ["absolute", "fixed"].indexOf(
|
|
5969
|
+
var e = ts(hl(t)), n = ["absolute", "fixed"].indexOf(dr(t).position) >= 0, r = n && dn(t) ? ml(t) : t;
|
|
5970
5970
|
return mo(r) ? e.filter(function(o) {
|
|
5971
5971
|
return mo(o) && f9(o, r) && Vn(o) !== "body";
|
|
5972
5972
|
}) : [];
|
|
@@ -6008,7 +6008,7 @@ function Eh(t) {
|
|
|
6008
6008
|
y: a
|
|
6009
6009
|
};
|
|
6010
6010
|
break;
|
|
6011
|
-
case
|
|
6011
|
+
case sr:
|
|
6012
6012
|
l = {
|
|
6013
6013
|
x: e.x - n.width,
|
|
6014
6014
|
y: a
|
|
@@ -6242,10 +6242,10 @@ function g1(t) {
|
|
|
6242
6242
|
y: m
|
|
6243
6243
|
};
|
|
6244
6244
|
p = y.x, m = y.y;
|
|
6245
|
-
var _ = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), g =
|
|
6245
|
+
var _ = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), g = sr, w = kn, C = window;
|
|
6246
6246
|
if (c) {
|
|
6247
6247
|
var b = ml(n), E = "clientHeight", A = "clientWidth";
|
|
6248
|
-
if (b === Qt(n) && (b = zr(n),
|
|
6248
|
+
if (b === Qt(n) && (b = zr(n), dr(b).position !== "static" && a === "absolute" && (E = "scrollHeight", A = "scrollWidth")), b = b, o === kn || (o === sr || o === Fr) && i === hs) {
|
|
6249
6249
|
w = jn;
|
|
6250
6250
|
var $ = d && b === C && C.visualViewport ? C.visualViewport.height : (
|
|
6251
6251
|
// $FlowFixMe[prop-missing]
|
|
@@ -6253,7 +6253,7 @@ function g1(t) {
|
|
|
6253
6253
|
);
|
|
6254
6254
|
m -= $ - r.height, m *= l ? 1 : -1;
|
|
6255
6255
|
}
|
|
6256
|
-
if (o ===
|
|
6256
|
+
if (o === sr || (o === kn || o === jn) && i === hs) {
|
|
6257
6257
|
g = Fr;
|
|
6258
6258
|
var T = d && b === C && C.visualViewport ? C.visualViewport.width : (
|
|
6259
6259
|
// $FlowFixMe[prop-missing]
|
|
@@ -6381,15 +6381,15 @@ function N9(t) {
|
|
|
6381
6381
|
};
|
|
6382
6382
|
if (b) {
|
|
6383
6383
|
if (i) {
|
|
6384
|
-
var F, R = w === "y" ? kn :
|
|
6384
|
+
var F, R = w === "y" ? kn : sr, q = w === "y" ? jn : Fr, z = w === "y" ? "height" : "width", ee = b[w], V = ee + y[R], O = ee - y[q], te = p ? -A[z] / 2 : 0, W = v === ui ? E[z] : A[z], G = v === ui ? -A[z] : -E[z], ke = e.elements.arrow, ae = p && ke ? kh(ke) : {
|
|
6385
6385
|
width: 0,
|
|
6386
6386
|
height: 0
|
|
6387
6387
|
}, me = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ah(), Z = me[R], fe = me[q], De = ya(0, E[z], ae[z]), H = g ? E[z] / 2 - te - De - Z - T.mainAxis : W - De - Z - T.mainAxis, le = g ? -E[z] / 2 + te + De + fe + T.mainAxis : G + De + fe + T.mainAxis, Me = e.elements.arrow && ml(e.elements.arrow), Ae = Me ? w === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, tt = (F = I == null ? void 0 : I[w]) != null ? F : 0, Ce = ee + H - tt - Ae, Mt = ee + le - tt, He = ya(p ? La(V, Ce) : V, ee, p ? lo(O, Mt) : O);
|
|
6388
6388
|
b[w] = He, P[w] = He - ee;
|
|
6389
6389
|
}
|
|
6390
6390
|
if (a) {
|
|
6391
|
-
var Ot, Ut = w === "x" ? kn :
|
|
6392
|
-
b[C] =
|
|
6391
|
+
var Ot, Ut = w === "x" ? kn : sr, Qe = w === "x" ? jn : Fr, Lt = b[C], Ht = C === "y" ? "height" : "width", gr = Lt + y[Ut], Zr = Lt - y[Qe], et = [kn, sr].indexOf(_) !== -1, Nt = (Ot = I == null ? void 0 : I[C]) != null ? Ot : 0, bt = et ? gr : Lt - E[Ht] - A[Ht] - Nt + T.altAxis, vn = et ? Lt + E[Ht] + A[Ht] - Nt - T.altAxis : Zr, Yn = p && et ? L9(bt, Lt, vn) : ya(p ? bt : gr, Lt, p ? vn : Zr);
|
|
6392
|
+
b[C] = Yn, P[C] = Yn - Lt;
|
|
6393
6393
|
}
|
|
6394
6394
|
e.modifiersData[r] = P;
|
|
6395
6395
|
}
|
|
@@ -6465,7 +6465,7 @@ function U9(t) {
|
|
|
6465
6465
|
rootBoundary: d,
|
|
6466
6466
|
altBoundary: f,
|
|
6467
6467
|
padding: c
|
|
6468
|
-
}), ee = R ? F ? Fr :
|
|
6468
|
+
}), ee = R ? F ? Fr : sr : F ? jn : kn;
|
|
6469
6469
|
C[q] > b[q] && (ee = ba(ee));
|
|
6470
6470
|
var V = ba(ee), O = [];
|
|
6471
6471
|
if (i && O.push(z[P] <= 0), a && O.push(z[ee] <= 0, z[V] <= 0), O.every(function(ae) {
|
|
@@ -7573,7 +7573,7 @@ function _4(t, e, n, r, o, i) {
|
|
|
7573
7573
|
]) : U("v-if", !0)
|
|
7574
7574
|
], 16, X9),
|
|
7575
7575
|
U(" Options "),
|
|
7576
|
-
(k(), Y(
|
|
7576
|
+
(k(), Y(lr, {
|
|
7577
7577
|
to: n.appendTo || "body",
|
|
7578
7578
|
disabled: !n.appendToBody && !n.appendTo
|
|
7579
7579
|
}, [
|
|
@@ -7812,7 +7812,7 @@ const an = /* @__PURE__ */ de({
|
|
|
7812
7812
|
}
|
|
7813
7813
|
});
|
|
7814
7814
|
var _1;
|
|
7815
|
-
function
|
|
7815
|
+
function Zn() {
|
|
7816
7816
|
const t = y4(), e = t.appContext.config.globalProperties;
|
|
7817
7817
|
return {
|
|
7818
7818
|
i18next: e.$i18next,
|
|
@@ -7845,7 +7845,7 @@ de({
|
|
|
7845
7845
|
};
|
|
7846
7846
|
}
|
|
7847
7847
|
});
|
|
7848
|
-
async function
|
|
7848
|
+
async function ar(t, e) {
|
|
7849
7849
|
if (e && t && t.length - e.length === 1) {
|
|
7850
7850
|
const n = new Set(e.map((a) => a.id)), r = t.filter(
|
|
7851
7851
|
(a) => !n.has(a.id)
|
|
@@ -7874,9 +7874,9 @@ const b4 = { class: "ao-tasks" }, C4 = { class: "ao-tasks__list" }, w4 = ["id",
|
|
|
7874
7874
|
},
|
|
7875
7875
|
emits: ["add", "delete", "update"],
|
|
7876
7876
|
setup(t, { emit: e }) {
|
|
7877
|
-
const { t: n } =
|
|
7877
|
+
const { t: n } = Zn(), r = t, o = e;
|
|
7878
7878
|
Pe(() => r.tasks, (f, p) => {
|
|
7879
|
-
|
|
7879
|
+
ar(f, p);
|
|
7880
7880
|
});
|
|
7881
7881
|
const i = M(
|
|
7882
7882
|
() => {
|
|
@@ -10665,17 +10665,17 @@ var yl = {}, _ie = function(e, n, r) {
|
|
|
10665
10665
|
yl.parseLinkLabel = _ie;
|
|
10666
10666
|
yl.parseLinkDestination = yie;
|
|
10667
10667
|
yl.parseLinkTitle = Cie;
|
|
10668
|
-
var wie = Be.assign, kie = Be.unescapeAll, go = Be.escapeHtml,
|
|
10669
|
-
|
|
10668
|
+
var wie = Be.assign, kie = Be.unescapeAll, go = Be.escapeHtml, Kn = {};
|
|
10669
|
+
Kn.code_inline = function(t, e, n, r, o) {
|
|
10670
10670
|
var i = t[e];
|
|
10671
10671
|
return "<code" + o.renderAttrs(i) + ">" + go(i.content) + "</code>";
|
|
10672
10672
|
};
|
|
10673
|
-
|
|
10673
|
+
Kn.code_block = function(t, e, n, r, o) {
|
|
10674
10674
|
var i = t[e];
|
|
10675
10675
|
return "<pre" + o.renderAttrs(i) + "><code>" + go(t[e].content) + `</code></pre>
|
|
10676
10676
|
`;
|
|
10677
10677
|
};
|
|
10678
|
-
|
|
10678
|
+
Kn.fence = function(t, e, n, r, o) {
|
|
10679
10679
|
var i = t[e], s = i.info ? kie(i.info).trim() : "", a = "", l = "", c, u, d, f, p;
|
|
10680
10680
|
return s && (d = s.split(/(\s+)/g), a = d[0], l = d.slice(2).join("")), n.highlight ? c = n.highlight(i.content, a, l) || go(i.content) : c = go(i.content), c.indexOf("<pre") === 0 ? c + `
|
|
10681
10681
|
` : s ? (u = i.attrIndex("class"), f = i.attrs ? i.attrs.slice() : [], u < 0 ? f.push(["class", n.langPrefix + a]) : (f[u] = f[u].slice(), f[u][1] += " " + n.langPrefix + a), p = {
|
|
@@ -10684,32 +10684,32 @@ Zn.fence = function(t, e, n, r, o) {
|
|
|
10684
10684
|
`) : "<pre><code" + o.renderAttrs(i) + ">" + c + `</code></pre>
|
|
10685
10685
|
`;
|
|
10686
10686
|
};
|
|
10687
|
-
|
|
10687
|
+
Kn.image = function(t, e, n, r, o) {
|
|
10688
10688
|
var i = t[e];
|
|
10689
10689
|
return i.attrs[i.attrIndex("alt")][1] = o.renderInlineAsText(i.children, n, r), o.renderToken(t, e, n);
|
|
10690
10690
|
};
|
|
10691
|
-
|
|
10691
|
+
Kn.hardbreak = function(t, e, n) {
|
|
10692
10692
|
return n.xhtmlOut ? `<br />
|
|
10693
10693
|
` : `<br>
|
|
10694
10694
|
`;
|
|
10695
10695
|
};
|
|
10696
|
-
|
|
10696
|
+
Kn.softbreak = function(t, e, n) {
|
|
10697
10697
|
return n.breaks ? n.xhtmlOut ? `<br />
|
|
10698
10698
|
` : `<br>
|
|
10699
10699
|
` : `
|
|
10700
10700
|
`;
|
|
10701
10701
|
};
|
|
10702
|
-
|
|
10702
|
+
Kn.text = function(t, e) {
|
|
10703
10703
|
return go(t[e].content);
|
|
10704
10704
|
};
|
|
10705
|
-
|
|
10705
|
+
Kn.html_block = function(t, e) {
|
|
10706
10706
|
return t[e].content;
|
|
10707
10707
|
};
|
|
10708
|
-
|
|
10708
|
+
Kn.html_inline = function(t, e) {
|
|
10709
10709
|
return t[e].content;
|
|
10710
10710
|
};
|
|
10711
10711
|
function yi() {
|
|
10712
|
-
this.rules = wie({},
|
|
10712
|
+
this.rules = wie({}, Kn);
|
|
10713
10713
|
}
|
|
10714
10714
|
yi.prototype.renderAttrs = function(e) {
|
|
10715
10715
|
var n, r, o;
|
|
@@ -11392,7 +11392,7 @@ var yse = sse, bse = bl.HTML_OPEN_CLOSE_TAG_RE, Uo = [
|
|
|
11392
11392
|
}
|
|
11393
11393
|
return o = e.getLines(n, u, e.blkIndent, !1).trim(), e.line = u, l = e.push("paragraph_open", "p", 1), l.map = [n, e.line], l = e.push("inline", "", 0), l.content = o, l.map = [n, e.line], l.children = [], l = e.push("paragraph_close", "p", -1), e.parentType = c, !0;
|
|
11394
11394
|
}, Rh = Zu, Cl = Be.isSpace;
|
|
11395
|
-
function
|
|
11395
|
+
function Gn(t, e, n, r) {
|
|
11396
11396
|
var o, i, s, a, l, c, u, d;
|
|
11397
11397
|
for (this.src = t, this.md = e, this.env = n, this.tokens = r, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0, this.result = "", i = this.src, d = !1, s = a = c = u = 0, l = i.length; a < l; a++) {
|
|
11398
11398
|
if (o = i.charCodeAt(a), !d)
|
|
@@ -11405,24 +11405,24 @@ function Kn(t, e, n, r) {
|
|
|
11405
11405
|
}
|
|
11406
11406
|
this.bMarks.push(i.length), this.eMarks.push(i.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
11407
11407
|
}
|
|
11408
|
-
|
|
11408
|
+
Gn.prototype.push = function(t, e, n) {
|
|
11409
11409
|
var r = new Rh(t, e, n);
|
|
11410
11410
|
return r.block = !0, n < 0 && this.level--, r.level = this.level, n > 0 && this.level++, this.tokens.push(r), r;
|
|
11411
11411
|
};
|
|
11412
|
-
|
|
11412
|
+
Gn.prototype.isEmpty = function(e) {
|
|
11413
11413
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
|
11414
11414
|
};
|
|
11415
|
-
|
|
11415
|
+
Gn.prototype.skipEmptyLines = function(e) {
|
|
11416
11416
|
for (var n = this.lineMax; e < n && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
|
11417
11417
|
;
|
|
11418
11418
|
return e;
|
|
11419
11419
|
};
|
|
11420
|
-
|
|
11420
|
+
Gn.prototype.skipSpaces = function(e) {
|
|
11421
11421
|
for (var n, r = this.src.length; e < r && (n = this.src.charCodeAt(e), !!Cl(n)); e++)
|
|
11422
11422
|
;
|
|
11423
11423
|
return e;
|
|
11424
11424
|
};
|
|
11425
|
-
|
|
11425
|
+
Gn.prototype.skipSpacesBack = function(e, n) {
|
|
11426
11426
|
if (e <= n)
|
|
11427
11427
|
return e;
|
|
11428
11428
|
for (; e > n; )
|
|
@@ -11430,12 +11430,12 @@ Kn.prototype.skipSpacesBack = function(e, n) {
|
|
|
11430
11430
|
return e + 1;
|
|
11431
11431
|
return e;
|
|
11432
11432
|
};
|
|
11433
|
-
|
|
11433
|
+
Gn.prototype.skipChars = function(e, n) {
|
|
11434
11434
|
for (var r = this.src.length; e < r && this.src.charCodeAt(e) === n; e++)
|
|
11435
11435
|
;
|
|
11436
11436
|
return e;
|
|
11437
11437
|
};
|
|
11438
|
-
|
|
11438
|
+
Gn.prototype.skipCharsBack = function(e, n, r) {
|
|
11439
11439
|
if (e <= r)
|
|
11440
11440
|
return e;
|
|
11441
11441
|
for (; e > r; )
|
|
@@ -11443,7 +11443,7 @@ Kn.prototype.skipCharsBack = function(e, n, r) {
|
|
|
11443
11443
|
return e + 1;
|
|
11444
11444
|
return e;
|
|
11445
11445
|
};
|
|
11446
|
-
|
|
11446
|
+
Gn.prototype.getLines = function(e, n, r, o) {
|
|
11447
11447
|
var i, s, a, l, c, u, d, f = e;
|
|
11448
11448
|
if (e >= n)
|
|
11449
11449
|
return "";
|
|
@@ -11461,8 +11461,8 @@ Kn.prototype.getLines = function(e, n, r, o) {
|
|
|
11461
11461
|
}
|
|
11462
11462
|
return u.join("");
|
|
11463
11463
|
};
|
|
11464
|
-
|
|
11465
|
-
var Sse =
|
|
11464
|
+
Gn.prototype.Token = Rh;
|
|
11465
|
+
var Sse = Gn, Tse = Wu, sa = [
|
|
11466
11466
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
11467
11467
|
// which can be terminated by this one.
|
|
11468
11468
|
["table", Gie, ["paragraph", "reference"]],
|
|
@@ -12768,7 +12768,7 @@ function Xh() {
|
|
|
12768
12768
|
value: null
|
|
12769
12769
|
}
|
|
12770
12770
|
}));
|
|
12771
|
-
let Lt = !0, Ht = !0, gr = !1, Zr = !0, et = !1, Nt = !0, bt = !1, vn = !1,
|
|
12771
|
+
let Lt = !0, Ht = !0, gr = !1, Zr = !0, et = !1, Nt = !0, bt = !1, vn = !1, Yn = null, vr = null, Kr = !1, _r = !1, Oo = !1, Lo = !1, Jn = !0, On = !1;
|
|
12772
12772
|
const Vs = "user-content-";
|
|
12773
12773
|
let Ei = !0, _n = !1, qt = {}, zt = null;
|
|
12774
12774
|
const No = Le({}, [
|
|
@@ -12846,7 +12846,7 @@ function Xh() {
|
|
|
12846
12846
|
transform: Ve
|
|
12847
12847
|
}), Ut = kr(S, "FORBID_ATTR", Ct({}), {
|
|
12848
12848
|
transform: Ve
|
|
12849
|
-
}), qt = ut(S, "USE_PROFILES") ? S.USE_PROFILES && typeof S.USE_PROFILES == "object" ? Ct(S.USE_PROFILES) : S.USE_PROFILES : !1, Lt = S.ALLOW_ARIA_ATTR !== !1, Ht = S.ALLOW_DATA_ATTR !== !1, gr = S.ALLOW_UNKNOWN_PROTOCOLS || !1, Zr = S.ALLOW_SELF_CLOSE_IN_ATTR !== !1, et = S.SAFE_FOR_TEMPLATES || !1, Nt = S.SAFE_FOR_XML !== !1, bt = S.WHOLE_DOCUMENT || !1, _r = S.RETURN_DOM || !1, Oo = S.RETURN_DOM_FRAGMENT || !1, Lo = S.RETURN_TRUSTED_TYPE || !1, Kr = S.FORCE_BODY || !1,
|
|
12849
|
+
}), qt = ut(S, "USE_PROFILES") ? S.USE_PROFILES && typeof S.USE_PROFILES == "object" ? Ct(S.USE_PROFILES) : S.USE_PROFILES : !1, Lt = S.ALLOW_ARIA_ATTR !== !1, Ht = S.ALLOW_DATA_ATTR !== !1, gr = S.ALLOW_UNKNOWN_PROTOCOLS || !1, Zr = S.ALLOW_SELF_CLOSE_IN_ATTR !== !1, et = S.SAFE_FOR_TEMPLATES || !1, Nt = S.SAFE_FOR_XML !== !1, bt = S.WHOLE_DOCUMENT || !1, _r = S.RETURN_DOM || !1, Oo = S.RETURN_DOM_FRAGMENT || !1, Lo = S.RETURN_TRUSTED_TYPE || !1, Kr = S.FORCE_BODY || !1, Jn = S.SANITIZE_DOM !== !1, On = S.SANITIZE_NAMED_PROPS || !1, Ei = S.KEEP_CONTENT !== !1, _n = S.IN_PLACE || !1, Me = lle(S.ALLOWED_URI_REGEXP) ? S.ALLOWED_URI_REGEXP : pf, br = typeof S.NAMESPACE == "string" ? S.NAMESPACE : jt, Wt = ut(S, "MATHML_TEXT_INTEGRATION_POINTS") && S.MATHML_TEXT_INTEGRATION_POINTS && typeof S.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Ct(S.MATHML_TEXT_INTEGRATION_POINTS) : Le({}, Ws), Di = ut(S, "HTML_INTEGRATION_POINTS") && S.HTML_INTEGRATION_POINTS && typeof S.HTML_INTEGRATION_POINTS == "object" ? Ct(S.HTML_INTEGRATION_POINTS) : Le({}, Zs);
|
|
12850
12850
|
const B = ut(S, "CUSTOM_ELEMENT_HANDLING") && S.CUSTOM_ELEMENT_HANDLING && typeof S.CUSTOM_ELEMENT_HANDLING == "object" ? Ct(S.CUSTOM_ELEMENT_HANDLING) : jo(null);
|
|
12851
12851
|
if (He = jo(null), ut(B, "tagNameCheck") && Ks(B.tagNameCheck) && (He.tagNameCheck = B.tagNameCheck), ut(B, "attributeNameCheck") && Ks(B.attributeNameCheck) && (He.attributeNameCheck = B.attributeNameCheck), ut(B, "allowCustomizedBuiltInElements") && typeof B.allowCustomizedBuiltInElements == "boolean" && (He.allowCustomizedBuiltInElements = B.allowCustomizedBuiltInElements), _t(He), et && (Ht = !1), Oo && (_r = !0), qt && (Ae = Le({}, uf), Ce = jo(null), qt.html === !0 && (Le(Ae, cf), Le(Ce, df)), qt.svg === !0 && (Le(Ae, vc), Le(Ce, bc), Le(Ce, aa)), qt.svgFilters === !0 && (Le(Ae, _c), Le(Ce, bc), Le(Ce, aa)), qt.mathMl === !0 && (Le(Ae, yc), Le(Ce, ff), Le(Ce, aa))), Qe.tagCheck = null, Qe.attributeCheck = null, ut(S, "ADD_TAGS") && (typeof S.ADD_TAGS == "function" ? Qe.tagCheck = S.ADD_TAGS : Er(S.ADD_TAGS) && (Ae === tt && (Ae = Ct(Ae)), Le(Ae, S.ADD_TAGS, Ve))), ut(S, "ADD_ATTR") && (typeof S.ADD_ATTR == "function" ? Qe.attributeCheck = S.ADD_ATTR : Er(S.ADD_ATTR) && (Ce === Mt && (Ce = Ct(Ce)), Le(Ce, S.ADD_ATTR, Ve))), ut(S, "ADD_URI_SAFE_ATTR") && Er(S.ADD_URI_SAFE_ATTR) && Le(Vt, S.ADD_URI_SAFE_ATTR, Ve), ut(S, "FORBID_CONTENTS") && Er(S.FORBID_CONTENTS) && (zt === No && (zt = Ct(zt)), Le(zt, S.FORBID_CONTENTS, Ve)), ut(S, "ADD_FORBID_CONTENTS") && Er(S.ADD_FORBID_CONTENTS) && (zt === No && (zt = Ct(zt)), Le(zt, S.ADD_FORBID_CONTENTS, Ve)), Ei && (Ae["#text"] = !0), bt && Le(Ae, ["html", "head", "body"]), Ae.table && (Le(Ae, ["tbody"]), delete Ot.tbody), S.TRUSTED_TYPES_POLICY) {
|
|
12852
12852
|
if (typeof S.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
@@ -12869,7 +12869,7 @@ function Xh() {
|
|
|
12869
12869
|
return B.namespaceURI === jt ? S === "math" : B.namespaceURI === Po ? S === "math" && Di[J] : !!N[S];
|
|
12870
12870
|
}, Ze = function(S, B, J) {
|
|
12871
12871
|
return B.namespaceURI === Po && !Di[J] || B.namespaceURI === yr && !Wt[J] ? !1 : !N[S] && (Zl[S] || !Ni[S]);
|
|
12872
|
-
},
|
|
12872
|
+
}, Xn = function(S) {
|
|
12873
12873
|
let B = _(S);
|
|
12874
12874
|
(!B || !B.tagName) && (B = {
|
|
12875
12875
|
namespaceURI: br,
|
|
@@ -12911,7 +12911,7 @@ function Xh() {
|
|
|
12911
12911
|
} catch {
|
|
12912
12912
|
}
|
|
12913
12913
|
}
|
|
12914
|
-
},
|
|
12914
|
+
}, Qn = function(S, B) {
|
|
12915
12915
|
try {
|
|
12916
12916
|
qo(e.removed, {
|
|
12917
12917
|
attribute: B.getAttributeNode(S),
|
|
@@ -13104,7 +13104,7 @@ function Xh() {
|
|
|
13104
13104
|
if (Js(S))
|
|
13105
13105
|
return bn(S), !0;
|
|
13106
13106
|
const J = Ve(C ? C(S) : S.nodeName);
|
|
13107
|
-
if (Ae = Zd(G.uponSanitizeElement, Ae, tt,
|
|
13107
|
+
if (Ae = Zd(G.uponSanitizeElement, Ae, tt, Yn), Ln(G.uponSanitizeElement, S, {
|
|
13108
13108
|
tagName: J,
|
|
13109
13109
|
allowedTags: Ae
|
|
13110
13110
|
}), S !== B && _(S) === null)
|
|
@@ -13115,7 +13115,7 @@ function Xh() {
|
|
|
13115
13115
|
const be = bg(S, J, B);
|
|
13116
13116
|
return be === !1 && Ln(G.afterSanitizeElements, S, null), be;
|
|
13117
13117
|
}
|
|
13118
|
-
if ((w ? w(S) : S.nodeType) === Zt.element && !
|
|
13118
|
+
if ((w ? w(S) : S.nodeType) === Zt.element && !Xn(S) || (J === "noscript" || J === "noembed" || J === "noframes") && ct(ble, S.innerHTML))
|
|
13119
13119
|
return bn(S), !0;
|
|
13120
13120
|
if (et && S.nodeType === Zt.text) {
|
|
13121
13121
|
const be = Ys(S.textContent);
|
|
@@ -13125,7 +13125,7 @@ function Xh() {
|
|
|
13125
13125
|
}
|
|
13126
13126
|
return Ln(G.afterSanitizeElements, S, null), !1;
|
|
13127
13127
|
}, Gd = function(S, B, J) {
|
|
13128
|
-
if (Ut[B] || Nt && B === "patchsrc" || Nt && B === "for" && S !== "label" && S !== "output" ||
|
|
13128
|
+
if (Ut[B] || Nt && B === "patchsrc" || Nt && B === "for" && S !== "label" && S !== "output" || Jn && (B === "id" || B === "name") && (J in n || J in Li))
|
|
13129
13129
|
return !1;
|
|
13130
13130
|
const ve = Ce[B] || Qe.attributeCheck instanceof Function && Qe.attributeCheck(B, S);
|
|
13131
13131
|
if (!(Ht && ct(Z, B))) {
|
|
@@ -13168,7 +13168,7 @@ function Xh() {
|
|
|
13168
13168
|
try {
|
|
13169
13169
|
J ? S.setAttributeNS(J, B, ve) : S.setAttribute(B, ve), Js(S) ? bn(S) : rf(e.removed);
|
|
13170
13170
|
} catch {
|
|
13171
|
-
|
|
13171
|
+
Qn(B, S);
|
|
13172
13172
|
}
|
|
13173
13173
|
}, Jd = function(S) {
|
|
13174
13174
|
Ln(G.beforeSanitizeAttributes, S, null);
|
|
@@ -13188,25 +13188,25 @@ function Xh() {
|
|
|
13188
13188
|
for (; ve--; ) {
|
|
13189
13189
|
const Ee = B[ve], je = Ee.name, Ke = Ee.namespaceURI, It = Ee.value, Pt = Ve(je), Yl = It;
|
|
13190
13190
|
let Tt = je === "value" ? Yl : nle(Yl);
|
|
13191
|
-
if (J.attrName = Pt, J.attrValue = Tt, J.keepAttr = !0, J.forceKeepAttr = void 0, Ln(G.uponSanitizeAttribute, S, J), Tt = J.attrValue, On && (Pt === "id" || Pt === "name") && sf(Tt, Vs) !== 0 && (
|
|
13192
|
-
|
|
13191
|
+
if (J.attrName = Pt, J.attrValue = Tt, J.keepAttr = !0, J.forceKeepAttr = void 0, Ln(G.uponSanitizeAttribute, S, J), Tt = J.attrValue, On && (Pt === "id" || Pt === "name") && sf(Tt, Vs) !== 0 && (Qn(je, S), Tt = Vs + Tt), Nt && ct(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Tt)) {
|
|
13192
|
+
Qn(je, S);
|
|
13193
13193
|
continue;
|
|
13194
13194
|
}
|
|
13195
13195
|
if (Pt === "attributename" && of(Tt, "href")) {
|
|
13196
|
-
|
|
13196
|
+
Qn(je, S);
|
|
13197
13197
|
continue;
|
|
13198
13198
|
}
|
|
13199
13199
|
if (!J.forceKeepAttr) {
|
|
13200
13200
|
if (!J.keepAttr) {
|
|
13201
|
-
|
|
13201
|
+
Qn(je, S);
|
|
13202
13202
|
continue;
|
|
13203
13203
|
}
|
|
13204
13204
|
if (!Zr && ct(Cle, Tt)) {
|
|
13205
|
-
|
|
13205
|
+
Qn(je, S);
|
|
13206
13206
|
continue;
|
|
13207
13207
|
}
|
|
13208
13208
|
if (et && (Tt = Ys(Tt)), !Gd(be, Pt, Tt)) {
|
|
13209
|
-
|
|
13209
|
+
Qn(je, S);
|
|
13210
13210
|
continue;
|
|
13211
13211
|
}
|
|
13212
13212
|
Tt = wg(be, Pt, Ke, Tt), Tt !== Yl && kg(S, je, Ke, Tt);
|
|
@@ -13268,7 +13268,7 @@ function Xh() {
|
|
|
13268
13268
|
throw Xr("dirty is not a string, aborting");
|
|
13269
13269
|
if (!e.isSupported)
|
|
13270
13270
|
return re;
|
|
13271
|
-
vn ? (Ae =
|
|
13271
|
+
vn ? (Ae = Yn, Ce = vr) : Cr(S), (G.uponSanitizeElement.length > 0 || G.uponSanitizeAttribute.length > 0) && (Ae = Ct(Ae)), G.uponSanitizeAttribute.length > 0 && (Ce = Ct(Ce)), e.removed = [];
|
|
13272
13272
|
const Ee = _n && typeof re != "string" && Fi(re);
|
|
13273
13273
|
if (Ee) {
|
|
13274
13274
|
_g(re);
|
|
@@ -13322,9 +13322,9 @@ function Xh() {
|
|
|
13322
13322
|
` + Ke), et && (Ke = Ys(Ke)), E && Lo ? F(Ke) : Ke;
|
|
13323
13323
|
}, e.setConfig = function() {
|
|
13324
13324
|
let re = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
13325
|
-
Cr(re), vn = !0,
|
|
13325
|
+
Cr(re), vn = !0, Yn = Ae, vr = Ce;
|
|
13326
13326
|
}, e.clearConfig = function() {
|
|
13327
|
-
yn = null, vn = !1,
|
|
13327
|
+
yn = null, vn = !1, Yn = null, vr = null, E = $, A = "";
|
|
13328
13328
|
}, e.isValidAttribute = function(re, S, B) {
|
|
13329
13329
|
yn || Cr({});
|
|
13330
13330
|
const J = Ve(re), ve = Ve(S);
|
|
@@ -13739,7 +13739,7 @@ function Ef(t) {
|
|
|
13739
13739
|
t.set(r.__key, o ? r.getChildrenSize() : 0, "element", !0);
|
|
13740
13740
|
}
|
|
13741
13741
|
}
|
|
13742
|
-
let _o, kt, _s, El, Yc, Jc, yo, xn, Xc, ys, at = "", In = null, Pn = "",
|
|
13742
|
+
let _o, kt, _s, El, Yc, Jc, yo, xn, Xc, ys, at = "", In = null, Pn = "", or = "", Wo = !1, Ra = !1;
|
|
13743
13743
|
function Ba(t, e) {
|
|
13744
13744
|
const n = yo.get(t);
|
|
13745
13745
|
if (e !== null) {
|
|
@@ -13805,14 +13805,14 @@ function Ua(t, e) {
|
|
|
13805
13805
|
tu(Ha(n, xn), n, 0, a, n.getDOMSlot(r));
|
|
13806
13806
|
}
|
|
13807
13807
|
const s = n.__format;
|
|
13808
|
-
s !== 0 && p0(r, s), n.isInline() || h0(null, n, r), Pl(n) && (at += Rr,
|
|
13808
|
+
s !== 0 && p0(r, s), n.isInline() || h0(null, n, r), Pl(n) && (at += Rr, or += Rr);
|
|
13809
13809
|
} else {
|
|
13810
13810
|
const o = n.getTextContent();
|
|
13811
13811
|
if (Fe(n)) {
|
|
13812
13812
|
const i = n.decorate(kt, _o);
|
|
13813
13813
|
i !== null && m0(t, i), r.contentEditable = "false";
|
|
13814
13814
|
}
|
|
13815
|
-
at += o,
|
|
13815
|
+
at += o, or += o;
|
|
13816
13816
|
}
|
|
13817
13817
|
return e !== null && e.insertChild(r), _d(ys, _s, El, n, "created"), r;
|
|
13818
13818
|
}
|
|
@@ -13930,10 +13930,10 @@ function Xi(t, e) {
|
|
|
13930
13930
|
if (n === r && !o) {
|
|
13931
13931
|
if (j(n)) {
|
|
13932
13932
|
const s = i.__lexicalTextContent;
|
|
13933
|
-
s !== void 0 && (at += s,
|
|
13933
|
+
s !== void 0 && (at += s, or += s);
|
|
13934
13934
|
} else {
|
|
13935
13935
|
const s = n.getTextContent();
|
|
13936
|
-
|
|
13936
|
+
or += s, at += s;
|
|
13937
13937
|
}
|
|
13938
13938
|
return i;
|
|
13939
13939
|
}
|
|
@@ -13945,7 +13945,7 @@ function Xi(t, e) {
|
|
|
13945
13945
|
const s = r.__indent;
|
|
13946
13946
|
(Wo || s !== n.__indent) && f0(i, s);
|
|
13947
13947
|
const a = r.__format;
|
|
13948
|
-
if ((Wo || a !== n.__format) && p0(i, a), o && (Qle(n, r, i), rt(r) || r.isInline() || h0(n, r, i)), Pl(r) && (at += Rr,
|
|
13948
|
+
if ((Wo || a !== n.__format) && p0(i, a), o && (Qle(n, r, i), rt(r) || r.isInline() || h0(n, r, i)), Pl(r) && (at += Rr, or += Rr), (Wo || r.__dir !== n.__dir) && (eu(i, r), rt(r) && !Wo))
|
|
13949
13949
|
for (const l of r.getChildren())
|
|
13950
13950
|
j(l) && eu(Co(kt, l.getKey()), l);
|
|
13951
13951
|
} else {
|
|
@@ -13954,11 +13954,11 @@ function Xi(t, e) {
|
|
|
13954
13954
|
const a = r.decorate(kt, _o);
|
|
13955
13955
|
a !== null && m0(t, a);
|
|
13956
13956
|
}
|
|
13957
|
-
at += s,
|
|
13957
|
+
at += s, or += s;
|
|
13958
13958
|
}
|
|
13959
|
-
if (!Ra && rt(r) && r.__cachedText !==
|
|
13959
|
+
if (!Ra && rt(r) && r.__cachedText !== or) {
|
|
13960
13960
|
const s = r.getWritable();
|
|
13961
|
-
s.__cachedText =
|
|
13961
|
+
s.__cachedText = or, r = s;
|
|
13962
13962
|
}
|
|
13963
13963
|
return i;
|
|
13964
13964
|
}
|
|
@@ -13977,7 +13977,7 @@ function kc(t) {
|
|
|
13977
13977
|
return e !== null && e === kt._blockCursorElement && (e = e.nextSibling), e;
|
|
13978
13978
|
}
|
|
13979
13979
|
function ece(t, e, n, r, o, i) {
|
|
13980
|
-
at = "",
|
|
13980
|
+
at = "", or = "", Wo = r === 2, kt = n, _o = n._config, _s = n._nodes, El = kt._listeners.mutation, Yc = o, Jc = i, yo = t._nodeMap, xn = e._nodeMap, Ra = e._readOnly, Xc = new Map(n._keyToDOMMap);
|
|
13981
13981
|
const s = /* @__PURE__ */ new Map();
|
|
13982
13982
|
return ys = s, Xi("root", null), kt = void 0, _s = void 0, Yc = void 0, Jc = void 0, yo = void 0, xn = void 0, _o = void 0, Xc = void 0, ys = void 0, s;
|
|
13983
13983
|
}
|
|
@@ -13988,7 +13988,7 @@ function nu(t) {
|
|
|
13988
13988
|
function we(t) {
|
|
13989
13989
|
return { type: t };
|
|
13990
13990
|
}
|
|
13991
|
-
const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"), v0 = we("CLICK_COMMAND"), co = we("DELETE_CHARACTER_COMMAND"), Qo = we("INSERT_LINE_BREAK_COMMAND"), bs = we("INSERT_PARAGRAPH_COMMAND"), ei = we("CONTROLLED_TEXT_INSERTION_COMMAND"), nd = we("PASTE_COMMAND"), ru = we("REMOVE_TEXT_COMMAND"), Cs = we("DELETE_WORD_COMMAND"), ws = we("DELETE_LINE_COMMAND"), cn = we("FORMAT_TEXT_COMMAND"), rd = we("UNDO_COMMAND"), od = we("REDO_COMMAND"), nce = we("KEYDOWN_COMMAND"), _0 = we("KEY_ARROW_RIGHT_COMMAND"), rce = we("MOVE_TO_END"), y0 = we("KEY_ARROW_LEFT_COMMAND"), oce = we("MOVE_TO_START"), b0 = we("KEY_ARROW_UP_COMMAND"), C0 = we("KEY_ARROW_DOWN_COMMAND"), qa = we("KEY_ENTER_COMMAND"), w0 = we("KEY_SPACE_COMMAND"), k0 = we("KEY_BACKSPACE_COMMAND"), x0 = we("KEY_ESCAPE_COMMAND"), S0 = we("KEY_DELETE_COMMAND"), T0 = we("KEY_TAB_COMMAND"), ice = we("INSERT_TAB_COMMAND"), sce = we("INDENT_CONTENT_COMMAND"), $f = we("OUTDENT_CONTENT_COMMAND"), E0 = we("DROP_COMMAND"), ace = we("FORMAT_ELEMENT_COMMAND"), A0 = we("DRAGSTART_COMMAND"), $0 = we("DRAGOVER_COMMAND"), lce = we("DRAGEND_COMMAND"), Al = we("COPY_COMMAND"), id = we("CUT_COMMAND"), ou = we("SELECT_ALL_COMMAND"), cce = we("CLEAR_EDITOR_COMMAND"), uce = we("CLEAR_HISTORY_COMMAND"), la = we("CAN_REDO_COMMAND"), ca = we("CAN_UNDO_COMMAND"), dce = we("FOCUS_COMMAND"), fce = we("BLUR_COMMAND"), pce = we("KEY_MODIFIER_COMMAND"),
|
|
13991
|
+
const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"), v0 = we("CLICK_COMMAND"), co = we("DELETE_CHARACTER_COMMAND"), Qo = we("INSERT_LINE_BREAK_COMMAND"), bs = we("INSERT_PARAGRAPH_COMMAND"), ei = we("CONTROLLED_TEXT_INSERTION_COMMAND"), nd = we("PASTE_COMMAND"), ru = we("REMOVE_TEXT_COMMAND"), Cs = we("DELETE_WORD_COMMAND"), ws = we("DELETE_LINE_COMMAND"), cn = we("FORMAT_TEXT_COMMAND"), rd = we("UNDO_COMMAND"), od = we("REDO_COMMAND"), nce = we("KEYDOWN_COMMAND"), _0 = we("KEY_ARROW_RIGHT_COMMAND"), rce = we("MOVE_TO_END"), y0 = we("KEY_ARROW_LEFT_COMMAND"), oce = we("MOVE_TO_START"), b0 = we("KEY_ARROW_UP_COMMAND"), C0 = we("KEY_ARROW_DOWN_COMMAND"), qa = we("KEY_ENTER_COMMAND"), w0 = we("KEY_SPACE_COMMAND"), k0 = we("KEY_BACKSPACE_COMMAND"), x0 = we("KEY_ESCAPE_COMMAND"), S0 = we("KEY_DELETE_COMMAND"), T0 = we("KEY_TAB_COMMAND"), ice = we("INSERT_TAB_COMMAND"), sce = we("INDENT_CONTENT_COMMAND"), $f = we("OUTDENT_CONTENT_COMMAND"), E0 = we("DROP_COMMAND"), ace = we("FORMAT_ELEMENT_COMMAND"), A0 = we("DRAGSTART_COMMAND"), $0 = we("DRAGOVER_COMMAND"), lce = we("DRAGEND_COMMAND"), Al = we("COPY_COMMAND"), id = we("CUT_COMMAND"), ou = we("SELECT_ALL_COMMAND"), cce = we("CLEAR_EDITOR_COMMAND"), uce = we("CLEAR_HISTORY_COMMAND"), la = we("CAN_REDO_COMMAND"), ca = we("CAN_UNDO_COMMAND"), dce = we("FOCUS_COMMAND"), fce = we("BLUR_COMMAND"), pce = we("KEY_MODIFIER_COMMAND"), er = Object.freeze({}), iu = [["keydown", function(t, e) {
|
|
13992
13992
|
if (rs = t.timeStamp, D0 = t.key, !e.isComposing() && !he(e, nce, t) && t.key != null) {
|
|
13993
13993
|
if (xc && op(t))
|
|
13994
13994
|
return Gt(e, () => {
|
|
@@ -13999,7 +13999,7 @@ const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_
|
|
|
13999
13999
|
}(t))
|
|
14000
14000
|
he(e, _0, t);
|
|
14001
14001
|
else if (function(n) {
|
|
14002
|
-
return qe(n, "ArrowRight",
|
|
14002
|
+
return qe(n, "ArrowRight", nr);
|
|
14003
14003
|
}(t))
|
|
14004
14004
|
he(e, rce, t);
|
|
14005
14005
|
else if (function(n) {
|
|
@@ -14007,7 +14007,7 @@ const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_
|
|
|
14007
14007
|
}(t))
|
|
14008
14008
|
he(e, y0, t);
|
|
14009
14009
|
else if (function(n) {
|
|
14010
|
-
return qe(n, "ArrowLeft",
|
|
14010
|
+
return qe(n, "ArrowLeft", nr);
|
|
14011
14011
|
}(t))
|
|
14012
14012
|
he(e, oce, t);
|
|
14013
14013
|
else if (function(n) {
|
|
@@ -14065,15 +14065,15 @@ const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_
|
|
|
14065
14065
|
}(t))
|
|
14066
14066
|
t.preventDefault(), he(e, ws, !1);
|
|
14067
14067
|
else if (function(n) {
|
|
14068
|
-
return qe(n, "b",
|
|
14068
|
+
return qe(n, "b", nr);
|
|
14069
14069
|
}(t))
|
|
14070
14070
|
t.preventDefault(), he(e, cn, "bold");
|
|
14071
14071
|
else if (function(n) {
|
|
14072
|
-
return qe(n, "u",
|
|
14072
|
+
return qe(n, "u", nr);
|
|
14073
14073
|
}(t))
|
|
14074
14074
|
t.preventDefault(), he(e, cn, "underline");
|
|
14075
14075
|
else if (function(n) {
|
|
14076
|
-
return qe(n, "i",
|
|
14076
|
+
return qe(n, "i", nr);
|
|
14077
14077
|
}(t))
|
|
14078
14078
|
t.preventDefault(), he(e, cn, "italic");
|
|
14079
14079
|
else if (function(n) {
|
|
@@ -14081,7 +14081,7 @@ const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_
|
|
|
14081
14081
|
}(t))
|
|
14082
14082
|
he(e, T0, t);
|
|
14083
14083
|
else if (function(n) {
|
|
14084
|
-
return qe(n, "z",
|
|
14084
|
+
return qe(n, "z", nr);
|
|
14085
14085
|
}(t))
|
|
14086
14086
|
t.preventDefault(), he(e, rd, void 0);
|
|
14087
14087
|
else if (function(n) {
|
|
@@ -14091,9 +14091,9 @@ const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_
|
|
|
14091
14091
|
else {
|
|
14092
14092
|
const n = e._editorState._selection;
|
|
14093
14093
|
n === null || X(n) ? ip(t) && (t.preventDefault(), he(e, ou, t)) : function(r) {
|
|
14094
|
-
return qe(r, "c",
|
|
14094
|
+
return qe(r, "c", nr);
|
|
14095
14095
|
}(t) ? (t.preventDefault(), he(e, Al, t)) : function(r) {
|
|
14096
|
-
return qe(r, "x",
|
|
14096
|
+
return qe(r, "x", nr);
|
|
14097
14097
|
}(t) ? (t.preventDefault(), he(e, id, t)) : ip(t) && (t.preventDefault(), he(e, ou, t));
|
|
14098
14098
|
}
|
|
14099
14099
|
(function(n) {
|
|
@@ -14158,7 +14158,7 @@ const g0 = we("SELECTION_CHANGE_COMMAND"), tce = we("SELECTION_INSERT_CLIPBOARD_
|
|
|
14158
14158
|
}
|
|
14159
14159
|
he(e, v0, t);
|
|
14160
14160
|
});
|
|
14161
|
-
}], ["cut",
|
|
14161
|
+
}], ["cut", er], ["copy", er], ["dragstart", er], ["dragover", er], ["dragend", er], ["paste", er], ["focus", er], ["blur", er], ["drop", er]];
|
|
14162
14162
|
Pa && iu.push(["beforeinput", (t, e) => function(n, r) {
|
|
14163
14163
|
const o = n.inputType, i = I0(n);
|
|
14164
14164
|
o === "deleteCompositionText" || vo && um(r) || o !== "insertCompositionText" && Gt(r, () => {
|
|
@@ -14285,7 +14285,7 @@ const su = /* @__PURE__ */ new WeakMap(), za = /* @__PURE__ */ new WeakMap();
|
|
|
14285
14285
|
let au = !1, lu = !1, os = !1, Wi = !1, xc = !1, Sc = "", oo = null, O0 = [0, "", 0, "root", 0];
|
|
14286
14286
|
function L0(t, e, n, r, o) {
|
|
14287
14287
|
const i = t.anchor, s = t.focus, a = i.getNode(), l = Ge(), c = En(mn(l)), u = c !== null ? c.anchorNode : null, d = i.key, f = l.getElementByKey(d), p = n.length;
|
|
14288
|
-
return d !== s.key || !oe(a) || (!o && (!Pa || M0 < r + 50) || a.isDirty() && p < 2 || am(n)) && i.offset !== s.offset && !a.isComposing() ||
|
|
14288
|
+
return d !== s.key || !oe(a) || (!o && (!Pa || M0 < r + 50) || a.isDirty() && p < 2 || am(n)) && i.offset !== s.offset && !a.isComposing() || rr(a) || a.isDirty() && p > 1 || (o || !Pa) && f !== null && !a.isComposing() && u !== pi(f) || c !== null && e !== null && (!e.collapsed || e.startContainer !== c.anchorNode || e.startOffset !== c.anchorOffset) || a.getFormat() !== t.format || a.getStyle() !== t.style || function(h, m) {
|
|
14289
14289
|
if (m.isSegmented())
|
|
14290
14290
|
return !0;
|
|
14291
14291
|
if (!h.isCollapsed())
|
|
@@ -14996,7 +14996,7 @@ class Vr extends Sn {
|
|
|
14996
14996
|
return h !== m && (r.style.cssText = m), !1;
|
|
14997
14997
|
}
|
|
14998
14998
|
static importDOM() {
|
|
14999
|
-
return { "#text": () => ({ conversion: xce, priority: 0 }), b: () => ({ conversion: wce, priority: 0 }), code: () => ({ conversion:
|
|
14999
|
+
return { "#text": () => ({ conversion: xce, priority: 0 }), b: () => ({ conversion: wce, priority: 0 }), code: () => ({ conversion: tr, priority: 0 }), em: () => ({ conversion: tr, priority: 0 }), i: () => ({ conversion: tr, priority: 0 }), mark: () => ({ conversion: tr, priority: 0 }), s: () => ({ conversion: tr, priority: 0 }), span: () => ({ conversion: Cce, priority: 0 }), strong: () => ({ conversion: tr, priority: 0 }), sub: () => ({ conversion: tr, priority: 0 }), sup: () => ({ conversion: tr, priority: 0 }), u: () => ({ conversion: tr, priority: 0 }) };
|
|
15000
15000
|
}
|
|
15001
15001
|
static importJSON(n) {
|
|
15002
15002
|
return Xe().updateFromJSON(n);
|
|
@@ -15253,7 +15253,7 @@ function Ff(t, e) {
|
|
|
15253
15253
|
}
|
|
15254
15254
|
}
|
|
15255
15255
|
const Sce = { code: "code", em: "italic", i: "italic", mark: "highlight", s: "strikethrough", strong: "bold", sub: "subscript", sup: "superscript", u: "underline" };
|
|
15256
|
-
function
|
|
15256
|
+
function tr(t) {
|
|
15257
15257
|
const e = Sce[t.nodeName.toLowerCase()];
|
|
15258
15258
|
return e === void 0 ? { node: null } : { forChild: sd(t.style, e), node: null };
|
|
15259
15259
|
}
|
|
@@ -15324,7 +15324,7 @@ class Tce {
|
|
|
15324
15324
|
return this.key === e.key && this.offset === e.offset && this.type === e.type;
|
|
15325
15325
|
}
|
|
15326
15326
|
isBefore(e) {
|
|
15327
|
-
return this.key === e.key ? this.offset < e.offset : mm(un(
|
|
15327
|
+
return this.key === e.key ? this.offset < e.offset : mm(un(fr(this, "next")), un(fr(e, "next"))) < 0;
|
|
15328
15328
|
}
|
|
15329
15329
|
getNode() {
|
|
15330
15330
|
const e = lt(this.key);
|
|
@@ -15579,7 +15579,7 @@ class $o {
|
|
|
15579
15579
|
C === null ? w.append(E) : C.insertBefore(E);
|
|
15580
15580
|
}
|
|
15581
15581
|
y.is(_) && _.set(b.__key, 0, "text"), y.set(b.__key, 0, "text");
|
|
15582
|
-
}(s, a, o, i), a.type === "element" && So(a, un(
|
|
15582
|
+
}(s, a, o, i), a.type === "element" && So(a, un(fr(a, "next")));
|
|
15583
15583
|
const l = s.offset;
|
|
15584
15584
|
let c = a.offset;
|
|
15585
15585
|
const u = this.getNodes(), d = u.length;
|
|
@@ -15587,13 +15587,13 @@ class $o {
|
|
|
15587
15587
|
oe(f) || Q(26);
|
|
15588
15588
|
const p = f.getTextContent().length, h = f.getParentOrThrow();
|
|
15589
15589
|
let m = u[d - 1];
|
|
15590
|
-
if (d === 1 && a.type === "element" && (c = p, a.set(s.key, c, "text")), this.isCollapsed() && l === p && (
|
|
15590
|
+
if (d === 1 && a.type === "element" && (c = p, a.set(s.key, c, "text")), this.isCollapsed() && l === p && (rr(f) || !f.canInsertTextAfter() || !h.canInsertTextAfter() && f.getNextSibling() === null)) {
|
|
15591
15591
|
let y = f.getNextSibling();
|
|
15592
|
-
if (oe(y) && y.canInsertTextBefore() && !
|
|
15592
|
+
if (oe(y) && y.canInsertTextBefore() && !rr(y) || (y = Xe(), y.setFormat(o), y.setStyle(i), h.canInsertTextAfter() ? f.insertAfter(y) : h.insertAfter(y)), y.select(0, 0), f = y, e !== "")
|
|
15593
15593
|
return void this.insertText(e);
|
|
15594
|
-
} else if (this.isCollapsed() && l === 0 && (
|
|
15594
|
+
} else if (this.isCollapsed() && l === 0 && (rr(f) || !f.canInsertTextBefore() || !h.canInsertTextBefore() && f.getPreviousSibling() === null)) {
|
|
15595
15595
|
let y = f.getPreviousSibling();
|
|
15596
|
-
if (oe(y) && !
|
|
15596
|
+
if (oe(y) && !rr(y) || (y = Xe(), y.setFormat(o), h.canInsertTextBefore() ? f.insertBefore(y) : h.insertBefore(y)), y.select(), f = y, e !== "")
|
|
15597
15597
|
return void this.insertText(e);
|
|
15598
15598
|
} else if (f.isSegmented() && l !== p) {
|
|
15599
15599
|
const y = Xe(f.getTextContent());
|
|
@@ -15710,7 +15710,7 @@ class $o {
|
|
|
15710
15710
|
if (p.is(_)) {
|
|
15711
15711
|
if (h === v)
|
|
15712
15712
|
return;
|
|
15713
|
-
if (
|
|
15713
|
+
if (rr(p) || h === 0 && v === p.getTextContentSize())
|
|
15714
15714
|
p.setFormat(m);
|
|
15715
15715
|
else {
|
|
15716
15716
|
const w = p.splitText(h, v), C = h === 0 ? w[0] : w[1];
|
|
@@ -15718,9 +15718,9 @@ class $o {
|
|
|
15718
15718
|
}
|
|
15719
15719
|
return void (this.format = m);
|
|
15720
15720
|
}
|
|
15721
|
-
h === 0 ||
|
|
15721
|
+
h === 0 || rr(p) || ([, p] = p.splitText(h), h = 0), p.setFormat(m);
|
|
15722
15722
|
const g = _.getFormatFlags(e, m);
|
|
15723
|
-
v > 0 && (v === _.getTextContentSize() ||
|
|
15723
|
+
v > 0 && (v === _.getTextContentSize() || rr(_) || ([_] = _.splitText(v)), _.setFormat(g));
|
|
15724
15724
|
for (let w = f + 1; w < y; w++) {
|
|
15725
15725
|
const C = o[w], b = C.getFormatFlags(e, g);
|
|
15726
15726
|
C.setFormat(b);
|
|
@@ -15870,7 +15870,7 @@ class $o {
|
|
|
15870
15870
|
let o = r.getNode();
|
|
15871
15871
|
if (this.forwardDeletion(r, o, e))
|
|
15872
15872
|
return;
|
|
15873
|
-
const i = Sd(
|
|
15873
|
+
const i = Sd(fr(r, e ? "previous" : "next"));
|
|
15874
15874
|
if (i.getTextSlices().every((a) => a === null || a.distance === 0)) {
|
|
15875
15875
|
let a = { type: "initial" };
|
|
15876
15876
|
for (const l of i.iterNodeCarets("shadowRoot"))
|
|
@@ -16314,7 +16314,7 @@ function Wf(t, e, n, r, o = "decorators-and-blocks") {
|
|
|
16314
16314
|
const [u, d] = n === t.isBackward() ? [t.focus, t.anchor] : [t.anchor, t.focus];
|
|
16315
16315
|
return d.set(u.key, u.offset, u.type), !0;
|
|
16316
16316
|
}
|
|
16317
|
-
const i =
|
|
16317
|
+
const i = fr(t.focus, n ? "previous" : "next"), s = r === "lineboundary", a = e === "move";
|
|
16318
16318
|
let l = i, c = o === "decorators-and-blocks";
|
|
16319
16319
|
if (!vm(l)) {
|
|
16320
16320
|
for (const u of l) {
|
|
@@ -16424,7 +16424,7 @@ function Yf(t, e, n) {
|
|
|
16424
16424
|
pt = r, Rt = o, ht = i;
|
|
16425
16425
|
}
|
|
16426
16426
|
}
|
|
16427
|
-
function
|
|
16427
|
+
function ir(t, e) {
|
|
16428
16428
|
const n = t._pendingEditorState, r = t._rootElement, o = t._headless || r === null;
|
|
16429
16429
|
if (n === null)
|
|
16430
16430
|
return;
|
|
@@ -16438,7 +16438,7 @@ function or(t, e) {
|
|
|
16438
16438
|
} catch (b) {
|
|
16439
16439
|
if (b instanceof Error && t._onError(b), Dc)
|
|
16440
16440
|
throw b;
|
|
16441
|
-
return Q0(t, null, r, n), a0(t), t._dirtyType = 2, Dc = !0,
|
|
16441
|
+
return Q0(t, null, r, n), a0(t), t._dirtyType = 2, Dc = !0, ir(t, i), void (Dc = !1);
|
|
16442
16442
|
} finally {
|
|
16443
16443
|
p.observe(r, Zf), t._updating = f, pt = c, Rt = u, ht = d;
|
|
16444
16444
|
}
|
|
@@ -16637,7 +16637,7 @@ function Ol(t, e, n) {
|
|
|
16637
16637
|
} else
|
|
16638
16638
|
Kt(_) && _._nodes.size === 0 && (l._selection = null);
|
|
16639
16639
|
} catch (y) {
|
|
16640
|
-
return y instanceof Error && t._onError(y), t._pendingEditorState = a, t._dirtyType = 2, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements.clear(), void
|
|
16640
|
+
return y instanceof Error && t._onError(y), t._pendingEditorState = a, t._dirtyType = 2, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements.clear(), void ir(t);
|
|
16641
16641
|
} finally {
|
|
16642
16642
|
pt = u, Rt = d, ht = f, t._updating = p, wa = 0;
|
|
16643
16643
|
}
|
|
@@ -16649,8 +16649,8 @@ function Ol(t, e, n) {
|
|
|
16649
16649
|
} else if (v !== null)
|
|
16650
16650
|
return !0;
|
|
16651
16651
|
return !1;
|
|
16652
|
-
}(l, t) ? l._flushSync ? (l._flushSync = !1,
|
|
16653
|
-
|
|
16652
|
+
}(l, t) ? l._flushSync ? (l._flushSync = !1, ir(t)) : c && Rce(() => {
|
|
16653
|
+
ir(t);
|
|
16654
16654
|
}) : (l._flushSync = !1, c && (r.clear(), t._deferred = [], t._pendingEditorState = null));
|
|
16655
16655
|
}
|
|
16656
16656
|
function Gt(t, e, n) {
|
|
@@ -17517,7 +17517,7 @@ class bo {
|
|
|
17517
17517
|
const r = ni(this._config.theme, "root"), o = this._pendingEditorState || this._editorState;
|
|
17518
17518
|
if (this._rootElement = e, Q0(this, n, e, o), n !== null && (this._config.disableEvents || hce(n), r != null && n.classList.remove(...r)), e !== null) {
|
|
17519
17519
|
const i = yd(e), s = e.style;
|
|
17520
|
-
s.userSelect = "text", s.whiteSpace = "pre-wrap", s.wordBreak = "break-word", e.setAttribute("data-lexical-editor", "true"), this._window = i, this._dirtyType = 2, a0(this), this._updateTags.add(is),
|
|
17520
|
+
s.userSelect = "text", s.whiteSpace = "pre-wrap", s.wordBreak = "break-word", e.setAttribute("data-lexical-editor", "true"), this._window = i, this._dirtyType = 2, a0(this), this._updateTags.add(is), ir(this), this._config.disableEvents || function(a, l) {
|
|
17521
17521
|
const c = a.ownerDocument;
|
|
17522
17522
|
su.set(a, c);
|
|
17523
17523
|
const u = za.get(c) ?? 0;
|
|
@@ -17558,7 +17558,7 @@ class bo {
|
|
|
17558
17558
|
}
|
|
17559
17559
|
}(e, this), r != null && e.classList.add(...r);
|
|
17560
17560
|
} else
|
|
17561
|
-
this._window = null, this._updateTags.add(is),
|
|
17561
|
+
this._window = null, this._updateTags.add(is), ir(this);
|
|
17562
17562
|
ss("root", this, !1, e, n);
|
|
17563
17563
|
}
|
|
17564
17564
|
}
|
|
@@ -17573,7 +17573,7 @@ class bo {
|
|
|
17573
17573
|
let r = e;
|
|
17574
17574
|
r._readOnly && (r = J0(e), r._selection = e._selection ? e._selection.clone() : null), s0(this);
|
|
17575
17575
|
const o = this._pendingEditorState, i = this._updateTags, s = n !== void 0 ? n.tag : null;
|
|
17576
|
-
o === null || o.isEmpty() || (s != null && i.add(s),
|
|
17576
|
+
o === null || o.isEmpty() || (s != null && i.add(s), ir(this)), this._pendingEditorState = r, this._dirtyType = 2, this._dirtyElements.set("root", !1), this._compositionKey = null, s != null && i.add(s), this._updating || ir(this);
|
|
17577
17577
|
}
|
|
17578
17578
|
parseEditorState(e, n) {
|
|
17579
17579
|
return function(r, o, i) {
|
|
@@ -17591,7 +17591,7 @@ class bo {
|
|
|
17591
17591
|
}(typeof e == "string" ? JSON.parse(e) : e, this, n);
|
|
17592
17592
|
}
|
|
17593
17593
|
read(e) {
|
|
17594
|
-
return
|
|
17594
|
+
return ir(this), this.getEditorState().read(e, { editor: this });
|
|
17595
17595
|
}
|
|
17596
17596
|
update(e, n) {
|
|
17597
17597
|
(function(r, o, i) {
|
|
@@ -17677,7 +17677,7 @@ function Nl(t) {
|
|
|
17677
17677
|
function uo(t) {
|
|
17678
17678
|
return $l(t) || t.isToken();
|
|
17679
17679
|
}
|
|
17680
|
-
function
|
|
17680
|
+
function rr(t) {
|
|
17681
17681
|
return uo(t) || t.isSegmented();
|
|
17682
17682
|
}
|
|
17683
17683
|
function mr(t) {
|
|
@@ -17897,12 +17897,12 @@ function Uce(t, e) {
|
|
|
17897
17897
|
function qe(t, e, n) {
|
|
17898
17898
|
return Uce(t, n) && t.key.toLowerCase() === e.toLowerCase();
|
|
17899
17899
|
}
|
|
17900
|
-
const
|
|
17900
|
+
const nr = { ctrlKey: !wn, metaKey: wn }, rp = { altKey: wn, ctrlKey: !wn };
|
|
17901
17901
|
function op(t) {
|
|
17902
17902
|
return t.key === "Backspace";
|
|
17903
17903
|
}
|
|
17904
17904
|
function ip(t) {
|
|
17905
|
-
return qe(t, "a",
|
|
17905
|
+
return qe(t, "a", nr);
|
|
17906
17906
|
}
|
|
17907
17907
|
function Hce(t) {
|
|
17908
17908
|
const e = Ye();
|
|
@@ -18551,7 +18551,7 @@ function ka(t, e) {
|
|
|
18551
18551
|
}
|
|
18552
18552
|
return null;
|
|
18553
18553
|
}
|
|
18554
|
-
function
|
|
18554
|
+
function fr(t, e) {
|
|
18555
18555
|
const { type: n, key: r, offset: o } = t, i = jce(t.key);
|
|
18556
18556
|
return n === "text" ? (oe(i) || Q(266, i.getType(), r), xo(i, e, o)) : (j(i) || Q(267, i.getType(), r), aue(i, t.offset, e));
|
|
18557
18557
|
}
|
|
@@ -18567,7 +18567,7 @@ function xa(t, e) {
|
|
|
18567
18567
|
So(t.anchor, e.anchor), So(t.focus, e.focus);
|
|
18568
18568
|
}
|
|
18569
18569
|
function dp(t) {
|
|
18570
|
-
const { anchor: e, focus: n } = t, r =
|
|
18570
|
+
const { anchor: e, focus: n } = t, r = fr(e, "next"), o = fr(n, "next"), i = mm(r, o) <= 0 ? "next" : "previous";
|
|
18571
18571
|
return Br(gi(r, i), gi(o, i));
|
|
18572
18572
|
}
|
|
18573
18573
|
function Td(t) {
|
|
@@ -18729,7 +18729,7 @@ function hp(t) {
|
|
|
18729
18729
|
}
|
|
18730
18730
|
function wm(t, e, n = "self") {
|
|
18731
18731
|
const r = t.getStartEndPoints();
|
|
18732
|
-
if (e.isSelected(t) && !
|
|
18732
|
+
if (e.isSelected(t) && !rr(e) && r !== null) {
|
|
18733
18733
|
const [o, i] = r, s = t.isBackward(), a = o.getNode(), l = i.getNode(), c = e.is(a), u = e.is(l);
|
|
18734
18734
|
if (c || u) {
|
|
18735
18735
|
const [d, f] = uu(t), p = a.is(l), h = e.is(s ? l : a), m = e.is(s ? a : l);
|
|
@@ -18784,7 +18784,7 @@ function xm(t) {
|
|
|
18784
18784
|
function mp(t, e) {
|
|
18785
18785
|
let n = km(t) ? !e : e;
|
|
18786
18786
|
Sm(t) && (n = !n);
|
|
18787
|
-
const r =
|
|
18787
|
+
const r = fr(t.focus, n ? "previous" : "next");
|
|
18788
18788
|
if (vm(r))
|
|
18789
18789
|
return !1;
|
|
18790
18790
|
for (const o of Sd(r)) {
|
|
@@ -18835,7 +18835,7 @@ function zs(...t) {
|
|
|
18835
18835
|
};
|
|
18836
18836
|
}
|
|
18837
18837
|
const pue = Ed;
|
|
18838
|
-
function
|
|
18838
|
+
function pr(t, ...e) {
|
|
18839
18839
|
const n = Tm(...e);
|
|
18840
18840
|
n.length > 0 && t.classList.add(...n);
|
|
18841
18841
|
}
|
|
@@ -19152,7 +19152,7 @@ let Wr = class extends tn {
|
|
|
19152
19152
|
const m = Ja(h);
|
|
19153
19153
|
c.getChildren().some((y) => Se(y)) ? u.push(...m) : d.push(...m);
|
|
19154
19154
|
}
|
|
19155
|
-
d.length > 0 && Ad(a, ...d), u.length > 0 &&
|
|
19155
|
+
d.length > 0 && Ad(a, ...d), u.length > 0 && pr(a, ...u);
|
|
19156
19156
|
}(r, o.theme, this);
|
|
19157
19157
|
const i = n ? n.__style : "", s = this.__style;
|
|
19158
19158
|
i !== s && (s === "" ? r.removeAttribute("style") : r.style.cssText = s), function(a, l, c) {
|
|
@@ -19423,7 +19423,7 @@ function Cp(t, e, n) {
|
|
|
19423
19423
|
a > 1 ? r.push(...h) : o.push(...h);
|
|
19424
19424
|
}
|
|
19425
19425
|
}
|
|
19426
|
-
o.length > 0 && Ad(t, ...o), r.length > 0 &&
|
|
19426
|
+
o.length > 0 && Ad(t, ...o), r.length > 0 && pr(t, ...r);
|
|
19427
19427
|
}
|
|
19428
19428
|
function wue(t) {
|
|
19429
19429
|
const e = [];
|
|
@@ -19688,7 +19688,7 @@ function xp(t, e, n) {
|
|
|
19688
19688
|
if (X(r) && r.isCollapsed()) {
|
|
19689
19689
|
const o = r.anchor;
|
|
19690
19690
|
let i = null;
|
|
19691
|
-
const s =
|
|
19691
|
+
const s = fr(o, "previous");
|
|
19692
19692
|
if (s)
|
|
19693
19693
|
if (Or(s))
|
|
19694
19694
|
i = s.origin;
|
|
@@ -19872,7 +19872,7 @@ let Dd = class Fm extends tn {
|
|
|
19872
19872
|
}
|
|
19873
19873
|
createDOM(e) {
|
|
19874
19874
|
const n = document.createElement("blockquote");
|
|
19875
|
-
return
|
|
19875
|
+
return pr(n, e.theme.quote), n;
|
|
19876
19876
|
}
|
|
19877
19877
|
updateDOM(e, n) {
|
|
19878
19878
|
return !1;
|
|
@@ -19935,7 +19935,7 @@ let Bl = class Rm extends tn {
|
|
|
19935
19935
|
const r = this.__tag, o = document.createElement(r), i = n.theme.heading;
|
|
19936
19936
|
if (i !== void 0) {
|
|
19937
19937
|
const s = i[r];
|
|
19938
|
-
|
|
19938
|
+
pr(o, s);
|
|
19939
19939
|
}
|
|
19940
19940
|
return o;
|
|
19941
19941
|
}
|
|
@@ -22835,7 +22835,7 @@ let Ul = class Hm extends tn {
|
|
|
22835
22835
|
}
|
|
22836
22836
|
createDOM(n) {
|
|
22837
22837
|
const r = document.createElement("code");
|
|
22838
|
-
|
|
22838
|
+
pr(r, n.theme.code), r.setAttribute("spellcheck", "false");
|
|
22839
22839
|
const o = this.getLanguage();
|
|
22840
22840
|
o && (r.setAttribute(Qi, o), this.getIsSyntaxHighlightSupported() && r.setAttribute(Gi, o));
|
|
22841
22841
|
const i = this.getTheme();
|
|
@@ -22855,7 +22855,7 @@ let Ul = class Hm extends tn {
|
|
|
22855
22855
|
}
|
|
22856
22856
|
exportDOM(n) {
|
|
22857
22857
|
const r = document.createElement("pre");
|
|
22858
|
-
|
|
22858
|
+
pr(r, n._config.theme.code), r.setAttribute("spellcheck", "false");
|
|
22859
22859
|
const o = this.getLanguage();
|
|
22860
22860
|
o && (r.setAttribute(Qi, o), this.getIsSyntaxHighlightSupported() && r.setAttribute(Gi, o));
|
|
22861
22861
|
const i = this.getTheme();
|
|
@@ -23007,11 +23007,11 @@ let qm = class zm extends Vr {
|
|
|
23007
23007
|
}
|
|
23008
23008
|
createDOM(n) {
|
|
23009
23009
|
const r = super.createDOM(n), o = Fc(n.theme, this.__highlightType);
|
|
23010
|
-
return
|
|
23010
|
+
return pr(r, o), r;
|
|
23011
23011
|
}
|
|
23012
23012
|
updateDOM(n, r, o) {
|
|
23013
23013
|
const i = super.updateDOM(n, r, o), s = Fc(o.theme, n.__highlightType), a = Fc(o.theme, this.__highlightType);
|
|
23014
|
-
return s !== a && (s && Ad(r, s), a &&
|
|
23014
|
+
return s !== a && (s && Ad(r, s), a && pr(r, a)), i;
|
|
23015
23015
|
}
|
|
23016
23016
|
static importJSON(n) {
|
|
23017
23017
|
return Vm().updateFromJSON(n);
|
|
@@ -23079,7 +23079,7 @@ class Si extends tn {
|
|
|
23079
23079
|
}
|
|
23080
23080
|
createDOM(n) {
|
|
23081
23081
|
const r = document.createElement("a");
|
|
23082
|
-
return this.updateLinkDOM(null, r, n),
|
|
23082
|
+
return this.updateLinkDOM(null, r, n), pr(r, n.theme.link), r;
|
|
23083
23083
|
}
|
|
23084
23084
|
updateLinkDOM(n, r, o) {
|
|
23085
23085
|
if (fm(r)) {
|
|
@@ -24740,7 +24740,7 @@ function Gde(t) {
|
|
|
24740
24740
|
const n = [], r = Object.keys(ge(e));
|
|
24741
24741
|
for (let o = 0; o < r.length; o++) {
|
|
24742
24742
|
const i = r[o], s = e.value[i], a = t.getElementByKey(i);
|
|
24743
|
-
a !== null && n.push(Og(
|
|
24743
|
+
a !== null && n.push(Og(lr, {
|
|
24744
24744
|
to: a
|
|
24745
24745
|
}, s));
|
|
24746
24746
|
}
|
|
@@ -25616,6 +25616,7 @@ const f1e = ["aria-label"], p1e = { class: "ao-file-preview__actions" }, h1e = [
|
|
|
25616
25616
|
},
|
|
25617
25617
|
emits: ["update:currentIndex", "close"],
|
|
25618
25618
|
setup(t, { emit: e }) {
|
|
25619
|
+
Zn();
|
|
25619
25620
|
const n = t, r = e, o = se(null), i = se(!1), s = se(!1);
|
|
25620
25621
|
let a = 0;
|
|
25621
25622
|
const l = M(() => n.attachments[n.currentIndex]), c = M(() => n.currentIndex === 0), u = M(() => n.currentIndex === n.attachments.length - 1), d = M(() => {
|
|
@@ -25726,7 +25727,7 @@ const f1e = ["aria-label"], p1e = { class: "ao-file-preview__actions" }, h1e = [
|
|
|
25726
25727
|
), v();
|
|
25727
25728
|
}), (T, I) => {
|
|
25728
25729
|
var P, F, R, q, z, ee;
|
|
25729
|
-
return k(), Y(
|
|
25730
|
+
return k(), Y(lr, { to: "body" }, [
|
|
25730
25731
|
x("div", {
|
|
25731
25732
|
class: "ao-file-preview",
|
|
25732
25733
|
role: "dialog",
|
|
@@ -26097,7 +26098,7 @@ const R1e = { class: "ao-activity-details" }, B1e = { class: "ao-activity-detail
|
|
|
26097
26098
|
},
|
|
26098
26099
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast"],
|
|
26099
26100
|
setup(t, { emit: e }) {
|
|
26100
|
-
const n = t, r = e, { t: o } =
|
|
26101
|
+
const n = t, r = e, { t: o } = Zn(), i = se("description"), s = M(() => {
|
|
26101
26102
|
var H, le;
|
|
26102
26103
|
return [
|
|
26103
26104
|
{ label: o("activity.description.label") || "Description", value: "description" },
|
|
@@ -26845,7 +26846,7 @@ const Bfe = {
|
|
|
26845
26846
|
},
|
|
26846
26847
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
26847
26848
|
setup(t, { emit: e }) {
|
|
26848
|
-
const { t: n } =
|
|
26849
|
+
const { t: n } = Zn(), r = t, o = e, i = M(
|
|
26849
26850
|
() => {
|
|
26850
26851
|
var V;
|
|
26851
26852
|
return (V = r.templates) == null ? void 0 : V.find((O) => O.id === r.templateId);
|
|
@@ -26860,7 +26861,7 @@ const Bfe = {
|
|
|
26860
26861
|
return (V = i.value) == null ? void 0 : V.phases;
|
|
26861
26862
|
},
|
|
26862
26863
|
(V, O) => {
|
|
26863
|
-
s.value &&
|
|
26864
|
+
s.value && ar(V, O);
|
|
26864
26865
|
}
|
|
26865
26866
|
);
|
|
26866
26867
|
const a = M(() => {
|
|
@@ -26873,7 +26874,7 @@ const Bfe = {
|
|
|
26873
26874
|
return (V = a.value) == null ? void 0 : V.milestones;
|
|
26874
26875
|
},
|
|
26875
26876
|
(V, O) => {
|
|
26876
|
-
s.value &&
|
|
26877
|
+
s.value && ar(V, O);
|
|
26877
26878
|
}
|
|
26878
26879
|
);
|
|
26879
26880
|
const l = M(() => {
|
|
@@ -26888,7 +26889,7 @@ const Bfe = {
|
|
|
26888
26889
|
return (V = l.value) == null ? void 0 : V.activities;
|
|
26889
26890
|
},
|
|
26890
26891
|
(V, O) => {
|
|
26891
|
-
s.value &&
|
|
26892
|
+
s.value && ar(V, O);
|
|
26892
26893
|
}
|
|
26893
26894
|
);
|
|
26894
26895
|
const c = M(() => {
|
|
@@ -27165,7 +27166,7 @@ const Bfe = {
|
|
|
27165
27166
|
])
|
|
27166
27167
|
])
|
|
27167
27168
|
]),
|
|
27168
|
-
(k(), Y(
|
|
27169
|
+
(k(), Y(lr, { to: "body" }, [
|
|
27169
27170
|
d.value ? (k(), Y(Id, {
|
|
27170
27171
|
key: 0,
|
|
27171
27172
|
activity: d.value,
|
|
@@ -27194,7 +27195,7 @@ const Bfe = {
|
|
|
27194
27195
|
_: 3
|
|
27195
27196
|
}, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : U("", !0)
|
|
27196
27197
|
])),
|
|
27197
|
-
(k(), Y(
|
|
27198
|
+
(k(), Y(lr, { to: "body" }, [
|
|
27198
27199
|
A.value ? (k(), Y(Rfe, {
|
|
27199
27200
|
key: 0,
|
|
27200
27201
|
"template-id": i.value.id,
|
|
@@ -28768,11 +28769,11 @@ const nhe = { class: "ao-project-phase" }, rhe = {
|
|
|
28768
28769
|
},
|
|
28769
28770
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "updatePhase", "archivePhase", "unarchivePhase"],
|
|
28770
28771
|
setup(t, { emit: e }) {
|
|
28771
|
-
const { t: n } =
|
|
28772
|
+
const { t: n } = Zn(), r = t, o = e;
|
|
28772
28773
|
Pe(
|
|
28773
28774
|
() => r.phase.milestones,
|
|
28774
28775
|
(g, w) => {
|
|
28775
|
-
|
|
28776
|
+
ar(g, w);
|
|
28776
28777
|
}
|
|
28777
28778
|
);
|
|
28778
28779
|
const i = (g) => {
|
|
@@ -28938,7 +28939,7 @@ const che = { class: "ao-project__phases" }, uhe = {
|
|
|
28938
28939
|
setup(t, { emit: e }) {
|
|
28939
28940
|
const n = t, r = e;
|
|
28940
28941
|
Pe(() => n.phases, (p, h) => {
|
|
28941
|
-
|
|
28942
|
+
ar(p, h);
|
|
28942
28943
|
});
|
|
28943
28944
|
const o = (p) => {
|
|
28944
28945
|
r("addMilestone", p);
|
|
@@ -29154,7 +29155,7 @@ const xhe = { class: "ao-project" }, She = { class: "ao-project__body" }, The =
|
|
|
29154
29155
|
},
|
|
29155
29156
|
emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "addActivity", "update:activity", "archiveActivity", "copyPhaseToTemplate", "unarchiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate", "saveTemplate", "update:showsArchived"],
|
|
29156
29157
|
setup(t, { emit: e }) {
|
|
29157
|
-
const { t: n } =
|
|
29158
|
+
const { t: n } = Zn(), r = t, o = e, i = M(
|
|
29158
29159
|
() => r.phases.flatMap((O) => O.milestones)
|
|
29159
29160
|
), s = () => {
|
|
29160
29161
|
const { name: O, rank: te } = po(r.phases, "phase", n);
|
|
@@ -29294,7 +29295,7 @@ const xhe = { class: "ao-project" }, She = { class: "ao-project__body" }, The =
|
|
|
29294
29295
|
onArchiveActivity: _,
|
|
29295
29296
|
onUnarchiveActivity: v
|
|
29296
29297
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status", "time-tracking-data"]),
|
|
29297
|
-
(k(), Y(
|
|
29298
|
+
(k(), Y(lr, { to: "body" }, [
|
|
29298
29299
|
L(W, {
|
|
29299
29300
|
name: "modal",
|
|
29300
29301
|
activities: b.value,
|
|
@@ -29331,7 +29332,7 @@ const xhe = { class: "ao-project" }, She = { class: "ao-project__body" }, The =
|
|
|
29331
29332
|
}, 8, ["activities", "is-task-checkable", "statuses", "activity-types", "phases", "project", "users", "user-id", "is-editable", "attachment-enabled", "time-tracking-data", "load-attachment-preview"])
|
|
29332
29333
|
]))
|
|
29333
29334
|
], 16),
|
|
29334
|
-
(k(), Y(
|
|
29335
|
+
(k(), Y(lr, { to: "body" }, [
|
|
29335
29336
|
F.value ? (k(), Y(gg, {
|
|
29336
29337
|
key: 0,
|
|
29337
29338
|
phases: t.phases,
|
|
@@ -29569,7 +29570,7 @@ const Yhe = { class: "ao-project-milestone" }, Jhe = { class: "ao-project-milest
|
|
|
29569
29570
|
},
|
|
29570
29571
|
emits: ["close", "addActivity", "updateMilestone", "updateActivity", "archiveActivity", "unarchiveActivity", "startTimer"],
|
|
29571
29572
|
setup(t, { emit: e }) {
|
|
29572
|
-
const { t: n } =
|
|
29573
|
+
const { t: n } = Zn(), r = t, o = e, i = (C) => {
|
|
29573
29574
|
var b;
|
|
29574
29575
|
o("startTimer", C), (b = window.parent) == null || b.postMessage(
|
|
29575
29576
|
{
|
|
@@ -29594,7 +29595,7 @@ const Yhe = { class: "ao-project-milestone" }, Jhe = { class: "ao-project-milest
|
|
|
29594
29595
|
return (C = l.value) == null ? void 0 : C.activities;
|
|
29595
29596
|
});
|
|
29596
29597
|
Pe(c, (C, b) => {
|
|
29597
|
-
|
|
29598
|
+
ar(C, b);
|
|
29598
29599
|
});
|
|
29599
29600
|
const u = (C) => {
|
|
29600
29601
|
o("close", C);
|
|
@@ -30310,7 +30311,7 @@ const L0e = { class: "ao-feed" }, N0e = { class: "ao-feed__filters" }, I0e = { c
|
|
|
30310
30311
|
},
|
|
30311
30312
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "unarchiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "update:showsOnlyImportant", "update:showsOnlyNonAssigned", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast", "startTimer"],
|
|
30312
30313
|
setup(t, { emit: e }) {
|
|
30313
|
-
const { t: n } =
|
|
30314
|
+
const { t: n } = Zn(), r = t, o = e;
|
|
30314
30315
|
function i(W, G) {
|
|
30315
30316
|
o("toast", W, G);
|
|
30316
30317
|
}
|
|
@@ -30329,7 +30330,7 @@ const L0e = { class: "ao-feed" }, N0e = { class: "ao-feed__filters" }, I0e = { c
|
|
|
30329
30330
|
return ((H = De.status) == null ? void 0 : H.id) === fe.id;
|
|
30330
30331
|
})
|
|
30331
30332
|
])
|
|
30332
|
-
), ke && !c.value ? (a(ke, null), c.value = !0) : ae && !c.value && (a(null, ae), c.value = !0), u.value &&
|
|
30333
|
+
), ke && !c.value ? (a(ke, null), c.value = !0) : ae && !c.value && (a(null, ae), c.value = !0), u.value && ar(G, Z);
|
|
30333
30334
|
},
|
|
30334
30335
|
{ immediate: !0 }
|
|
30335
30336
|
);
|
|
@@ -30530,7 +30531,7 @@ const L0e = { class: "ao-feed" }, N0e = { class: "ao-feed__filters" }, I0e = { c
|
|
|
30530
30531
|
onStartTimer: E
|
|
30531
30532
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "tag-type", "onAdd"]))), 128))
|
|
30532
30533
|
]),
|
|
30533
|
-
(k(), Y(
|
|
30534
|
+
(k(), Y(lr, { to: "body" }, [
|
|
30534
30535
|
t.selectedActivity ? (k(), Y(Id, {
|
|
30535
30536
|
key: 0,
|
|
30536
30537
|
activity: t.selectedActivity,
|
|
@@ -30590,7 +30591,7 @@ const F0e = { class: "ao-project-mapping" }, R0e = { class: "ao-project-mapping-
|
|
|
30590
30591
|
},
|
|
30591
30592
|
emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "copyPhaseToTemplate", "applyTemplate", "saveTemplate", "update:showsArchived"],
|
|
30592
30593
|
setup(t, { emit: e }) {
|
|
30593
|
-
const { t: n } =
|
|
30594
|
+
const { t: n } = Zn(), r = t, o = e, i = () => {
|
|
30594
30595
|
const { name: _, rank: v } = po(r.phases, "phase", n);
|
|
30595
30596
|
o("addPhase", { name: _, rank: v, projectId: r.project.id });
|
|
30596
30597
|
}, s = (_) => {
|
|
@@ -30682,7 +30683,7 @@ const F0e = { class: "ao-project-mapping" }, R0e = { class: "ao-project-mapping-
|
|
|
30682
30683
|
])
|
|
30683
30684
|
])
|
|
30684
30685
|
], 16),
|
|
30685
|
-
(k(), Y(
|
|
30686
|
+
(k(), Y(lr, { to: "body" }, [
|
|
30686
30687
|
d.value ? (k(), Y(gg, {
|
|
30687
30688
|
key: 0,
|
|
30688
30689
|
phases: t.phases,
|
|
@@ -30781,9 +30782,9 @@ const Go = {
|
|
|
30781
30782
|
},
|
|
30782
30783
|
emits: ["addTemplate", "updateTemplates", "updateItem", "removeItem"],
|
|
30783
30784
|
setup(t, { emit: e }) {
|
|
30784
|
-
const { t: n } =
|
|
30785
|
+
const { t: n } = Zn(), r = t, o = e;
|
|
30785
30786
|
Pe(() => r.templates, (c, u) => {
|
|
30786
|
-
|
|
30787
|
+
ar(c, u);
|
|
30787
30788
|
});
|
|
30788
30789
|
const i = () => {
|
|
30789
30790
|
var p, h;
|