@26lights/orcha 0.42.215 → 0.42.216
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 +19 -19
- package/dist/orcha.es.js +827 -817
- package/dist/orcha.umd.js +19 -19
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1288,9 +1288,9 @@ const Lt = /* @__PURE__ */ ue({
|
|
|
1288
1288
|
} : {
|
|
1289
1289
|
click: m,
|
|
1290
1290
|
focus: m
|
|
1291
|
-
} : {}), f = a((v,
|
|
1292
|
-
const
|
|
1293
|
-
o("update:title",
|
|
1291
|
+
} : {}), f = a((v, _) => {
|
|
1292
|
+
const y = _.target.value;
|
|
1293
|
+
o("update:title", y);
|
|
1294
1294
|
}), d = l(), p = async () => {
|
|
1295
1295
|
i.value && s(!1);
|
|
1296
1296
|
}, h = () => {
|
|
@@ -1303,7 +1303,7 @@ const Lt = /* @__PURE__ */ ue({
|
|
|
1303
1303
|
(v) => {
|
|
1304
1304
|
v || d();
|
|
1305
1305
|
}
|
|
1306
|
-
), (v,
|
|
1306
|
+
), (v, _) => (k(), Y(Po(c.value), zt({
|
|
1307
1307
|
id: t.id,
|
|
1308
1308
|
ref_key: "target",
|
|
1309
1309
|
ref: n,
|
|
@@ -1637,8 +1637,8 @@ function hh(t, e) {
|
|
|
1637
1637
|
h.setUTCFullYear(f + 1, 0, p), h.setUTCHours(0, 0, 0, 0);
|
|
1638
1638
|
var m = Na(h, e), v = /* @__PURE__ */ new Date(0);
|
|
1639
1639
|
v.setUTCFullYear(f, 0, p), v.setUTCHours(0, 0, 0, 0);
|
|
1640
|
-
var
|
|
1641
|
-
return u.getTime() >= m.getTime() ? f + 1 : u.getTime() >=
|
|
1640
|
+
var _ = Na(v, e);
|
|
1641
|
+
return u.getTime() >= m.getTime() ? f + 1 : u.getTime() >= _.getTime() ? f : f - 1;
|
|
1642
1642
|
}
|
|
1643
1643
|
function H5(t, e) {
|
|
1644
1644
|
var n, r, o, i, s, a, l, c;
|
|
@@ -2760,12 +2760,12 @@ var F7 = {
|
|
|
2760
2760
|
const gh = F7;
|
|
2761
2761
|
var R7 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, B7 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, U7 = /^'([^]*?)'?$/, H7 = /''/g, z7 = /[a-zA-Z]/;
|
|
2762
2762
|
function vh(t, e, n) {
|
|
2763
|
-
var r, o, i, s, a, l, c, u, f, d, p, h, m, v,
|
|
2763
|
+
var r, o, i, s, a, l, c, u, f, d, p, h, m, v, _, g, y, w;
|
|
2764
2764
|
bt(2, arguments);
|
|
2765
2765
|
var S = String(e), C = Ls(), T = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : C.locale) !== null && r !== void 0 ? r : gh, E = br((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 : C.firstWeekContainsDate) !== null && s !== void 0 ? s : (f = C.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
2766
2766
|
if (!(E >= 1 && E <= 7))
|
|
2767
2767
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2768
|
-
var A = br((p = (h = (m = (v = n == null ? void 0 : n.weekStartsOn) !== null && v !== void 0 ? v : n == null || (
|
|
2768
|
+
var A = br((p = (h = (m = (v = n == null ? void 0 : n.weekStartsOn) !== null && v !== void 0 ? v : n == null || (_ = n.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && m !== void 0 ? m : C.weekStartsOn) !== null && h !== void 0 ? h : (y = C.locale) === null || y === void 0 || (w = y.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && p !== void 0 ? p : 0);
|
|
2769
2769
|
if (!(A >= 0 && A <= 6))
|
|
2770
2770
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2771
2771
|
if (!T.localize)
|
|
@@ -2809,7 +2809,7 @@ function q7(t) {
|
|
|
2809
2809
|
function V7(t, e, n) {
|
|
2810
2810
|
var r, o, i, s, a, l, c, u, f, d;
|
|
2811
2811
|
bt(2, arguments);
|
|
2812
|
-
var p = Yt(t), h = Yt(e), m = Ls(), v = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : m.locale) !== null && r !== void 0 ? r : gh,
|
|
2812
|
+
var p = Yt(t), h = Yt(e), m = Ls(), v = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : m.locale) !== null && r !== void 0 ? r : gh, _ = br((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 : (f = m.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && i !== void 0 ? i : 0);
|
|
2813
2813
|
if (!v.localize)
|
|
2814
2814
|
throw new RangeError("locale must contain localize property");
|
|
2815
2815
|
if (!v.formatLong)
|
|
@@ -2819,15 +2819,15 @@ function V7(t, e, n) {
|
|
|
2819
2819
|
var g = L5(p, h);
|
|
2820
2820
|
if (isNaN(g))
|
|
2821
2821
|
throw new RangeError("Invalid time value");
|
|
2822
|
-
var
|
|
2823
|
-
g < -6 ?
|
|
2824
|
-
var w = Kc(p, ms(p)), S = Kc(h, ms(h)), C = v.formatRelative(
|
|
2822
|
+
var y;
|
|
2823
|
+
g < -6 ? y = "other" : g < -1 ? y = "lastWeek" : g < 0 ? y = "yesterday" : g < 1 ? y = "today" : g < 2 ? y = "tomorrow" : g < 7 ? y = "nextWeek" : y = "other";
|
|
2824
|
+
var w = Kc(p, ms(p)), S = Kc(h, ms(h)), C = v.formatRelative(y, w, S, {
|
|
2825
2825
|
locale: v,
|
|
2826
|
-
weekStartsOn:
|
|
2826
|
+
weekStartsOn: _
|
|
2827
2827
|
});
|
|
2828
2828
|
return vh(p, C, {
|
|
2829
2829
|
locale: v,
|
|
2830
|
-
weekStartsOn:
|
|
2830
|
+
weekStartsOn: _
|
|
2831
2831
|
});
|
|
2832
2832
|
}
|
|
2833
2833
|
function gs(t, e) {
|
|
@@ -4513,13 +4513,13 @@ const SC = async (t, e, n) => {
|
|
|
4513
4513
|
for (let m = 0; m < a.length; m++) {
|
|
4514
4514
|
const {
|
|
4515
4515
|
name: v,
|
|
4516
|
-
fn:
|
|
4516
|
+
fn: _
|
|
4517
4517
|
} = a[m], {
|
|
4518
4518
|
x: g,
|
|
4519
|
-
y
|
|
4519
|
+
y,
|
|
4520
4520
|
data: w,
|
|
4521
4521
|
reset: S
|
|
4522
|
-
} = await
|
|
4522
|
+
} = await _({
|
|
4523
4523
|
x: u,
|
|
4524
4524
|
y: f,
|
|
4525
4525
|
initialPlacement: r,
|
|
@@ -4533,7 +4533,7 @@ const SC = async (t, e, n) => {
|
|
|
4533
4533
|
floating: e
|
|
4534
4534
|
}
|
|
4535
4535
|
});
|
|
4536
|
-
if (u = g ?? u, f =
|
|
4536
|
+
if (u = g ?? u, f = y ?? f, p = {
|
|
4537
4537
|
...p,
|
|
4538
4538
|
[v]: {
|
|
4539
4539
|
...p[v],
|
|
@@ -4575,7 +4575,7 @@ async function Th(t, e) {
|
|
|
4575
4575
|
elementContext: f = "floating",
|
|
4576
4576
|
altBoundary: d = !1,
|
|
4577
4577
|
padding: p = 0
|
|
4578
|
-
} = Hu(e, t), h = kC(p), v = a[d ? f === "floating" ? "reference" : "floating" : f],
|
|
4578
|
+
} = Hu(e, t), h = kC(p), v = a[d ? f === "floating" ? "reference" : "floating" : f], _ = Ra(await i.getClippingRect({
|
|
4579
4579
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
4580
4580
|
boundary: c,
|
|
4581
4581
|
rootBoundary: u,
|
|
@@ -4584,7 +4584,7 @@ async function Th(t, e) {
|
|
|
4584
4584
|
...s.floating,
|
|
4585
4585
|
x: r,
|
|
4586
4586
|
y: o
|
|
4587
|
-
} : s.reference,
|
|
4587
|
+
} : s.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), w = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
|
|
4588
4588
|
x: 1,
|
|
4589
4589
|
y: 1
|
|
4590
4590
|
} : {
|
|
@@ -4592,14 +4592,14 @@ async function Th(t, e) {
|
|
|
4592
4592
|
y: 1
|
|
4593
4593
|
}, S = Ra(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4594
4594
|
rect: g,
|
|
4595
|
-
offsetParent:
|
|
4595
|
+
offsetParent: y,
|
|
4596
4596
|
strategy: l
|
|
4597
4597
|
}) : g);
|
|
4598
4598
|
return {
|
|
4599
|
-
top: (
|
|
4600
|
-
bottom: (S.bottom -
|
|
4601
|
-
left: (
|
|
4602
|
-
right: (S.right -
|
|
4599
|
+
top: (_.top - S.top + h.top) / w.y,
|
|
4600
|
+
bottom: (S.bottom - _.bottom + h.bottom) / w.y,
|
|
4601
|
+
left: (_.left - S.left + h.left) / w.x,
|
|
4602
|
+
right: (S.right - _.right + h.right) / w.x
|
|
4603
4603
|
};
|
|
4604
4604
|
}
|
|
4605
4605
|
const xC = function(t) {
|
|
@@ -4626,12 +4626,12 @@ const xC = function(t) {
|
|
|
4626
4626
|
} = Hu(t, e);
|
|
4627
4627
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
4628
4628
|
return {};
|
|
4629
|
-
const
|
|
4630
|
-
!d && h !== "none" && w.push(...CC(a, m, h,
|
|
4629
|
+
const _ = fi(o), g = fi(a) === a, y = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = d || (g || !m ? [Fa(a)] : yC(a));
|
|
4630
|
+
!d && h !== "none" && w.push(...CC(a, m, h, y));
|
|
4631
4631
|
const S = [a, ...w], C = await Th(e, v), T = [];
|
|
4632
4632
|
let E = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
4633
|
-
if (u && T.push(C[
|
|
4634
|
-
const x = _C(o, s,
|
|
4633
|
+
if (u && T.push(C[_]), f) {
|
|
4634
|
+
const x = _C(o, s, y);
|
|
4635
4635
|
T.push(C[x[0]], C[x[1]]);
|
|
4636
4636
|
}
|
|
4637
4637
|
if (E = [...E, {
|
|
@@ -4693,23 +4693,23 @@ const xC = function(t) {
|
|
|
4693
4693
|
} = r.floating;
|
|
4694
4694
|
let h, m;
|
|
4695
4695
|
c === "top" || c === "bottom" ? (h = c, m = u === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (m = c, h = u === "end" ? "top" : "bottom");
|
|
4696
|
-
const v = p - l[h],
|
|
4697
|
-
let
|
|
4696
|
+
const v = p - l[h], _ = d - l[m], g = !e.middlewareData.shift;
|
|
4697
|
+
let y = v, w = _;
|
|
4698
4698
|
if (f) {
|
|
4699
4699
|
const C = d - l.left - l.right;
|
|
4700
|
-
w = u || g ? vs(
|
|
4700
|
+
w = u || g ? vs(_, C) : C;
|
|
4701
4701
|
} else {
|
|
4702
4702
|
const C = p - l.top - l.bottom;
|
|
4703
|
-
|
|
4703
|
+
y = u || g ? vs(v, C) : C;
|
|
4704
4704
|
}
|
|
4705
4705
|
if (g && !u) {
|
|
4706
4706
|
const C = yn(l.left, 0), T = yn(l.right, 0), E = yn(l.top, 0), A = yn(l.bottom, 0);
|
|
4707
|
-
f ? w = d - 2 * (C !== 0 || T !== 0 ? C + T : yn(l.left, l.right)) :
|
|
4707
|
+
f ? w = d - 2 * (C !== 0 || T !== 0 ? C + T : yn(l.left, l.right)) : y = p - 2 * (E !== 0 || A !== 0 ? E + A : yn(l.top, l.bottom));
|
|
4708
4708
|
}
|
|
4709
4709
|
await s({
|
|
4710
4710
|
...e,
|
|
4711
4711
|
availableWidth: w,
|
|
4712
|
-
availableHeight:
|
|
4712
|
+
availableHeight: y
|
|
4713
4713
|
});
|
|
4714
4714
|
const S = await o.getDimensions(i.floating);
|
|
4715
4715
|
return d !== S.width || p !== S.height ? {
|
|
@@ -4858,8 +4858,8 @@ function ko(t, e, n, r) {
|
|
|
4858
4858
|
const d = fn(i), p = r && Cr(r) ? fn(r) : r;
|
|
4859
4859
|
let h = d.frameElement;
|
|
4860
4860
|
for (; h && r && p !== d; ) {
|
|
4861
|
-
const m = ri(h), v = h.getBoundingClientRect(),
|
|
4862
|
-
l *= m.x, c *= m.y, u *= m.x, f *= m.y, l += g, c +=
|
|
4861
|
+
const m = ri(h), v = h.getBoundingClientRect(), _ = xn(h), g = v.left + (h.clientLeft + parseFloat(_.paddingLeft)) * m.x, y = v.top + (h.clientTop + parseFloat(_.paddingTop)) * m.y;
|
|
4862
|
+
l *= m.x, c *= m.y, u *= m.x, f *= m.y, l += g, c += y, h = fn(h).frameElement;
|
|
4863
4863
|
}
|
|
4864
4864
|
}
|
|
4865
4865
|
return Ra({
|
|
@@ -5074,17 +5074,17 @@ function qC(t, e) {
|
|
|
5074
5074
|
rootMargin: -p + "px " + -h + "px " + -m + "px " + -v + "px",
|
|
5075
5075
|
threshold: yn(0, vs(1, l)) || 1
|
|
5076
5076
|
};
|
|
5077
|
-
let
|
|
5077
|
+
let y = !0;
|
|
5078
5078
|
function w(S) {
|
|
5079
5079
|
const C = S[0].intersectionRatio;
|
|
5080
5080
|
if (C !== l) {
|
|
5081
|
-
if (!
|
|
5081
|
+
if (!y)
|
|
5082
5082
|
return s();
|
|
5083
5083
|
C ? s(!1, C) : r = setTimeout(() => {
|
|
5084
5084
|
s(!1, 1e-7);
|
|
5085
5085
|
}, 100);
|
|
5086
5086
|
}
|
|
5087
|
-
|
|
5087
|
+
y = !1;
|
|
5088
5088
|
}
|
|
5089
5089
|
try {
|
|
5090
5090
|
n = new IntersectionObserver(w, {
|
|
@@ -5108,15 +5108,15 @@ function VC(t, e, n, r) {
|
|
|
5108
5108
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
5109
5109
|
animationFrame: l = !1
|
|
5110
5110
|
} = r, c = ju(t), u = o || i ? [...c ? _s(c) : [], ..._s(e)] : [];
|
|
5111
|
-
u.forEach((
|
|
5112
|
-
o &&
|
|
5111
|
+
u.forEach((_) => {
|
|
5112
|
+
o && _.addEventListener("scroll", n, {
|
|
5113
5113
|
passive: !0
|
|
5114
|
-
}), i &&
|
|
5114
|
+
}), i && _.addEventListener("resize", n);
|
|
5115
5115
|
});
|
|
5116
5116
|
const f = c && a ? qC(c, n) : null;
|
|
5117
5117
|
let d = -1, p = null;
|
|
5118
|
-
s && (p = new ResizeObserver((
|
|
5119
|
-
let [g] =
|
|
5118
|
+
s && (p = new ResizeObserver((_) => {
|
|
5119
|
+
let [g] = _;
|
|
5120
5120
|
g && g.target === c && p && (p.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
5121
5121
|
p && p.observe(e);
|
|
5122
5122
|
})), n();
|
|
@@ -5124,12 +5124,12 @@ function VC(t, e, n, r) {
|
|
|
5124
5124
|
let h, m = l ? ko(t) : null;
|
|
5125
5125
|
l && v();
|
|
5126
5126
|
function v() {
|
|
5127
|
-
const
|
|
5128
|
-
m && (
|
|
5127
|
+
const _ = ko(t);
|
|
5128
|
+
m && (_.x !== m.x || _.y !== m.y || _.width !== m.width || _.height !== m.height) && n(), m = _, h = requestAnimationFrame(v);
|
|
5129
5129
|
}
|
|
5130
5130
|
return n(), () => {
|
|
5131
|
-
u.forEach((
|
|
5132
|
-
o &&
|
|
5131
|
+
u.forEach((_) => {
|
|
5132
|
+
o && _.removeEventListener("scroll", n), i && _.removeEventListener("resize", n);
|
|
5133
5133
|
}), f && f(), p && p.disconnect(), p = null, l && cancelAnimationFrame(h);
|
|
5134
5134
|
};
|
|
5135
5135
|
}
|
|
@@ -5303,9 +5303,9 @@ function QC(t, e, n) {
|
|
|
5303
5303
|
object: h,
|
|
5304
5304
|
loading: m,
|
|
5305
5305
|
delay: v,
|
|
5306
|
-
resolveOnLoad:
|
|
5306
|
+
resolveOnLoad: _,
|
|
5307
5307
|
minChars: g,
|
|
5308
|
-
filterResults:
|
|
5308
|
+
filterResults: y,
|
|
5309
5309
|
clearOnSearch: w,
|
|
5310
5310
|
clearOnSelect: S,
|
|
5311
5311
|
valueProp: C,
|
|
@@ -5506,7 +5506,7 @@ function QC(t, e, n) {
|
|
|
5506
5506
|
(ae) => j.value ? ae.__VISIBLE__.length : ae[Q.value].length
|
|
5507
5507
|
) : B.filter((ae) => j.value ? ae.__VISIBLE__.length : !0), Pi = (B, ae = !0) => {
|
|
5508
5508
|
let Fe = B;
|
|
5509
|
-
if (j.value &&
|
|
5509
|
+
if (j.value && y.value) {
|
|
5510
5510
|
let st = je.value;
|
|
5511
5511
|
st || (st = (ur, Mn, Ui) => ye.value.some((dr) => {
|
|
5512
5512
|
let na = lc($e(ur[dr]), I.value);
|
|
@@ -5572,7 +5572,7 @@ function QC(t, e, n) {
|
|
|
5572
5572
|
};
|
|
5573
5573
|
if (o.value !== "single" && !Yn(Z.value) && !Array.isArray(Z.value))
|
|
5574
5574
|
throw new Error(`v-model must be an array when using "${o.value}" mode`);
|
|
5575
|
-
return r && typeof r.value == "function" ?
|
|
5575
|
+
return r && typeof r.value == "function" ? _.value ? Dn(Qe) : h.value == !0 && Qe() : (ut.value = r.value, Qe()), v.value > -1 && Bi(), Ne(v, (B, ae) => {
|
|
5576
5576
|
Ze.value && Ze.value(), B >= 0 && Bi();
|
|
5577
5577
|
}), Ne(Z, (B) => {
|
|
5578
5578
|
if (Yn(B)) {
|
|
@@ -5589,7 +5589,7 @@ function QC(t, e, n) {
|
|
|
5589
5589
|
break;
|
|
5590
5590
|
}
|
|
5591
5591
|
}, { deep: !0 }), Ne(r, (B, ae) => {
|
|
5592
|
-
typeof t.options == "function" ?
|
|
5592
|
+
typeof t.options == "function" ? _.value && (!ae || B && B.toString() !== ae.toString()) && Dn() : (ut.value = t.options, Object.keys(pe.value).length || Qe(), Ri());
|
|
5593
5593
|
}), Ne(u, Ri), Ne(s, (B, ae) => {
|
|
5594
5594
|
rt.value = q.value && B === -1 ? 10 : B;
|
|
5595
5595
|
}), {
|
|
@@ -5637,42 +5637,42 @@ function e9(t, e, n) {
|
|
|
5637
5637
|
groupSelect: c,
|
|
5638
5638
|
disabledProp: u,
|
|
5639
5639
|
groupOptions: f
|
|
5640
|
-
} = vn(t), d = n.fo, p = n.fg, h = n.handleOptionClick, m = n.handleGroupClick, v = n.search,
|
|
5641
|
-
const Z = A.value ?
|
|
5640
|
+
} = vn(t), d = n.fo, p = n.fg, h = n.handleOptionClick, m = n.handleGroupClick, v = n.search, _ = n.pointer, g = n.setPointer, y = n.clearPointer, w = n.multiselect, S = n.isOpen, C = L(() => d.value.filter((Z) => !Z[u.value])), T = L(() => p.value.filter((Z) => !Z[u.value])), E = L(() => l.value !== "single" && c.value), A = L(() => _.value && _.value.group), M = L(() => Ce(_.value)), I = L(() => {
|
|
5641
|
+
const Z = A.value ? _.value : (
|
|
5642
5642
|
/* istanbul ignore next */
|
|
5643
|
-
Ce(
|
|
5643
|
+
Ce(_.value)
|
|
5644
5644
|
), j = T.value.map((Ue) => Ue[s.value]).indexOf(Z[s.value]);
|
|
5645
5645
|
let ve = T.value[j - 1];
|
|
5646
5646
|
return ve === void 0 && (ve = O.value), ve;
|
|
5647
5647
|
}), x = L(() => {
|
|
5648
|
-
let Z = T.value.map((j) => j.label).indexOf(A.value ?
|
|
5648
|
+
let Z = T.value.map((j) => j.label).indexOf(A.value ? _.value[s.value] : Ce(_.value)[s.value]) + 1;
|
|
5649
5649
|
return T.value.length <= Z && (Z = 0), T.value[Z];
|
|
5650
|
-
}), O = L(() => [...T.value].slice(-1)[0]), P = L(() =>
|
|
5650
|
+
}), O = L(() => [...T.value].slice(-1)[0]), P = L(() => _.value.__VISIBLE__.filter((Z) => !Z[u.value])[0]), U = L(() => {
|
|
5651
5651
|
const Z = M.value.__VISIBLE__.filter((j) => !j[u.value]);
|
|
5652
|
-
return Z[Z.map((j) => j[r.value]).indexOf(
|
|
5652
|
+
return Z[Z.map((j) => j[r.value]).indexOf(_.value[r.value]) - 1];
|
|
5653
5653
|
}), q = L(() => {
|
|
5654
|
-
const Z = Ce(
|
|
5655
|
-
return Z[Z.map((j) => j[r.value]).indexOf(
|
|
5656
|
-
}), Q = L(() => [...I.value.__VISIBLE__.filter((Z) => !Z[u.value])].slice(-1)[0]), V = L(() => [...O.value.__VISIBLE__.filter((Z) => !Z[u.value])].slice(-1)[0]), G = (Z) =>
|
|
5654
|
+
const Z = Ce(_.value).__VISIBLE__.filter((j) => !j[u.value]);
|
|
5655
|
+
return Z[Z.map((j) => j[r.value]).indexOf(_.value[r.value]) + 1];
|
|
5656
|
+
}), Q = L(() => [...I.value.__VISIBLE__.filter((Z) => !Z[u.value])].slice(-1)[0]), V = L(() => [...O.value.__VISIBLE__.filter((Z) => !Z[u.value])].slice(-1)[0]), G = (Z) => _.value && (!Z.group && _.value[r.value] === Z[r.value] || Z.group !== void 0 && _.value[s.value] === Z[s.value]) ? !0 : void 0, ie = () => {
|
|
5657
5657
|
g(C.value[0] || null);
|
|
5658
5658
|
}, be = () => {
|
|
5659
|
-
!
|
|
5659
|
+
!_.value || _.value[u.value] === !0 || (A.value ? m(_.value) : h(_.value));
|
|
5660
5660
|
}, he = () => {
|
|
5661
|
-
if (
|
|
5661
|
+
if (_.value === null)
|
|
5662
5662
|
g((a.value && E.value ? T.value[0].__CREATE__ ? C.value[0] : T.value[0] : C.value[0]) || null);
|
|
5663
5663
|
else if (a.value && E.value) {
|
|
5664
5664
|
let Z = A.value ? P.value : q.value;
|
|
5665
5665
|
Z === void 0 && (Z = x.value, Z.__CREATE__ && (Z = Z[f.value][0])), g(Z || /* istanbul ignore next */
|
|
5666
5666
|
null);
|
|
5667
5667
|
} else {
|
|
5668
|
-
let Z = C.value.map((j) => j[r.value]).indexOf(
|
|
5668
|
+
let Z = C.value.map((j) => j[r.value]).indexOf(_.value[r.value]) + 1;
|
|
5669
5669
|
C.value.length <= Z && (Z = 0), g(C.value[Z] || null);
|
|
5670
5670
|
}
|
|
5671
5671
|
Kt(() => {
|
|
5672
5672
|
pe();
|
|
5673
5673
|
});
|
|
5674
5674
|
}, je = () => {
|
|
5675
|
-
if (
|
|
5675
|
+
if (_.value === null) {
|
|
5676
5676
|
let Z = C.value[C.value.length - 1];
|
|
5677
5677
|
a.value && E.value && (Z = V.value, Z === void 0 && (Z = O.value)), g(Z || null);
|
|
5678
5678
|
} else if (a.value && E.value) {
|
|
@@ -5680,7 +5680,7 @@ function e9(t, e, n) {
|
|
|
5680
5680
|
Z === void 0 && (Z = A.value ? I.value : M.value, Z.__CREATE__ && (Z = Q.value, Z === void 0 && (Z = I.value))), g(Z || /* istanbul ignore next */
|
|
5681
5681
|
null);
|
|
5682
5682
|
} else {
|
|
5683
|
-
let Z = C.value.map((j) => j[r.value]).indexOf(
|
|
5683
|
+
let Z = C.value.map((j) => j[r.value]).indexOf(_.value[r.value]) - 1;
|
|
5684
5684
|
Z < 0 && (Z = C.value.length - 1), g(C.value[Z] || null);
|
|
5685
5685
|
}
|
|
5686
5686
|
Kt(() => {
|
|
@@ -5694,7 +5694,7 @@ function e9(t, e, n) {
|
|
|
5694
5694
|
a.value && (j = A.value ? Z.parentElement.parentElement.parentElement : Z.parentElement.parentElement.parentElement.parentElement), Z.offsetTop + Z.offsetHeight > j.clientHeight + j.scrollTop && (j.scrollTop = Z.offsetTop + Z.offsetHeight - j.clientHeight), Z.offsetTop < j.scrollTop && (j.scrollTop = Z.offsetTop);
|
|
5695
5695
|
};
|
|
5696
5696
|
return Ne(v, (Z) => {
|
|
5697
|
-
i.value && (Z.length && o.value ? ie() :
|
|
5697
|
+
i.value && (Z.length && o.value ? ie() : y());
|
|
5698
5698
|
}), Ne(S, (Z) => {
|
|
5699
5699
|
if (Z) {
|
|
5700
5700
|
let j = w.value.querySelectorAll("[data-selected]")[0];
|
|
@@ -5706,7 +5706,7 @@ function e9(t, e, n) {
|
|
|
5706
5706
|
});
|
|
5707
5707
|
}
|
|
5708
5708
|
}), {
|
|
5709
|
-
pointer:
|
|
5709
|
+
pointer: _,
|
|
5710
5710
|
canPointGroups: E,
|
|
5711
5711
|
isPointed: G,
|
|
5712
5712
|
setPointerFirst: ie,
|
|
@@ -6074,16 +6074,16 @@ function M9(t, e) {
|
|
|
6074
6074
|
}
|
|
6075
6075
|
function Ju(t, e) {
|
|
6076
6076
|
e === void 0 && (e = {});
|
|
6077
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? a9 : a, c = n.rootBoundary, u = c === void 0 ? Bh : c, f = n.elementContext, d = f === void 0 ? Ki : f, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, v = m === void 0 ? 0 : m,
|
|
6077
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? a9 : a, c = n.rootBoundary, u = c === void 0 ? Bh : c, f = n.elementContext, d = f === void 0 ? Ki : f, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, v = m === void 0 ? 0 : m, _ = D9(typeof v != "number" ? v : M9(v, kl)), g = d === Ki ? l9 : Ki, y = t.rects.popper, w = t.elements[h ? g : d], S = $9(So(w) ? w : w.contextElement || Qr(t.elements.popper), l, u, s), C = mi(t.elements.reference), T = Hh({
|
|
6078
6078
|
reference: C,
|
|
6079
|
-
element:
|
|
6079
|
+
element: y,
|
|
6080
6080
|
strategy: "absolute",
|
|
6081
6081
|
placement: o
|
|
6082
|
-
}), E = Jc(Object.assign({},
|
|
6083
|
-
top: S.top - A.top +
|
|
6084
|
-
bottom: A.bottom - S.bottom +
|
|
6085
|
-
left: S.left - A.left +
|
|
6086
|
-
right: A.right - S.right +
|
|
6082
|
+
}), E = Jc(Object.assign({}, y, T)), A = d === Ki ? E : C, M = {
|
|
6083
|
+
top: S.top - A.top + _.top,
|
|
6084
|
+
bottom: A.bottom - S.bottom + _.bottom,
|
|
6085
|
+
left: S.left - A.left + _.left,
|
|
6086
|
+
right: A.right - S.right + _.right
|
|
6087
6087
|
}, I = t.modifiersData.offset;
|
|
6088
6088
|
if (d === Ki && I) {
|
|
6089
6089
|
var x = I[o];
|
|
@@ -6124,14 +6124,14 @@ function O9(t) {
|
|
|
6124
6124
|
styles: {}
|
|
6125
6125
|
}, f = [], d = !1, p = {
|
|
6126
6126
|
state: u,
|
|
6127
|
-
setOptions: function(
|
|
6128
|
-
var g = typeof
|
|
6127
|
+
setOptions: function(_) {
|
|
6128
|
+
var g = typeof _ == "function" ? _(u.options) : _;
|
|
6129
6129
|
m(), u.options = Object.assign({}, i, u.options, g), u.scrollParents = {
|
|
6130
6130
|
reference: So(a) ? ss(a) : a.contextElement ? ss(a.contextElement) : [],
|
|
6131
6131
|
popper: ss(l)
|
|
6132
6132
|
};
|
|
6133
|
-
var
|
|
6134
|
-
return u.orderedModifiers =
|
|
6133
|
+
var y = C9(k9([].concat(r, u.options.modifiers)));
|
|
6134
|
+
return u.orderedModifiers = y.filter(function(w) {
|
|
6135
6135
|
return w.enabled;
|
|
6136
6136
|
}), h(), p.update();
|
|
6137
6137
|
},
|
|
@@ -6142,11 +6142,11 @@ function O9(t) {
|
|
|
6142
6142
|
// prefer the async Popper#update method
|
|
6143
6143
|
forceUpdate: function() {
|
|
6144
6144
|
if (!d) {
|
|
6145
|
-
var
|
|
6146
|
-
if (S1(g,
|
|
6145
|
+
var _ = u.elements, g = _.reference, y = _.popper;
|
|
6146
|
+
if (S1(g, y)) {
|
|
6147
6147
|
u.rects = {
|
|
6148
|
-
reference: o9(g, wl(
|
|
6149
|
-
popper: Fh(
|
|
6148
|
+
reference: o9(g, wl(y), u.options.strategy === "fixed"),
|
|
6149
|
+
popper: Fh(y)
|
|
6150
6150
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(M) {
|
|
6151
6151
|
return u.modifiersData[M.name] = Object.assign({}, M.data);
|
|
6152
6152
|
});
|
|
@@ -6184,13 +6184,13 @@ function O9(t) {
|
|
|
6184
6184
|
});
|
|
6185
6185
|
function h() {
|
|
6186
6186
|
u.orderedModifiers.forEach(function(v) {
|
|
6187
|
-
var
|
|
6187
|
+
var _ = v.name, g = v.options, y = g === void 0 ? {} : g, w = v.effect;
|
|
6188
6188
|
if (typeof w == "function") {
|
|
6189
6189
|
var S = w({
|
|
6190
6190
|
state: u,
|
|
6191
|
-
name:
|
|
6191
|
+
name: _,
|
|
6192
6192
|
instance: p,
|
|
6193
|
-
options:
|
|
6193
|
+
options: y
|
|
6194
6194
|
}), C = function() {
|
|
6195
6195
|
};
|
|
6196
6196
|
f.push(S || C);
|
|
@@ -6264,7 +6264,7 @@ function x1(t) {
|
|
|
6264
6264
|
y: m
|
|
6265
6265
|
};
|
|
6266
6266
|
p = v.x, m = v.y;
|
|
6267
|
-
var
|
|
6267
|
+
var _ = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"), y = _r, w = Nn, S = window;
|
|
6268
6268
|
if (c) {
|
|
6269
6269
|
var C = wl(n), T = "clientHeight", E = "clientWidth";
|
|
6270
6270
|
if (C === pn(n) && (C = Qr(n), wr(C).position !== "static" && a === "absolute" && (T = "scrollHeight", E = "scrollWidth")), C = C, o === Nn || (o === _r || o === Kr) && i === ys) {
|
|
@@ -6276,7 +6276,7 @@ function x1(t) {
|
|
|
6276
6276
|
m -= A - r.height, m *= l ? 1 : -1;
|
|
6277
6277
|
}
|
|
6278
6278
|
if (o === _r || (o === Nn || o === sr) && i === ys) {
|
|
6279
|
-
|
|
6279
|
+
y = Kr;
|
|
6280
6280
|
var M = f && C === S && S.visualViewport ? S.visualViewport.width : (
|
|
6281
6281
|
// $FlowFixMe[prop-missing]
|
|
6282
6282
|
C[E]
|
|
@@ -6295,9 +6295,9 @@ function x1(t) {
|
|
|
6295
6295
|
};
|
|
6296
6296
|
if (p = x.x, m = x.y, l) {
|
|
6297
6297
|
var O;
|
|
6298
|
-
return Object.assign({}, I, (O = {}, O[w] = g ? "0" : "", O[
|
|
6298
|
+
return Object.assign({}, I, (O = {}, O[w] = g ? "0" : "", O[y] = _ ? "0" : "", O.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", O));
|
|
6299
6299
|
}
|
|
6300
|
-
return Object.assign({}, I, (e = {}, e[w] = g ? m + "px" : "", e[
|
|
6300
|
+
return Object.assign({}, I, (e = {}, e[w] = g ? m + "px" : "", e[y] = _ ? p + "px" : "", e.transform = "", e));
|
|
6301
6301
|
}
|
|
6302
6302
|
function B9(t) {
|
|
6303
6303
|
var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, s = i === void 0 ? !0 : i, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
|
|
@@ -6389,7 +6389,7 @@ function K9(t) {
|
|
|
6389
6389
|
rootBoundary: c,
|
|
6390
6390
|
padding: f,
|
|
6391
6391
|
altBoundary: u
|
|
6392
|
-
}),
|
|
6392
|
+
}), _ = Hr(e.placement), g = vi(e.placement), y = !g, w = Uh(_), S = W9(w), C = e.modifiersData.popperOffsets, T = e.rects.reference, E = e.rects.popper, A = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
6393
6393
|
placement: e.placement
|
|
6394
6394
|
})) : m, M = typeof A == "number" ? {
|
|
6395
6395
|
mainAxis: A,
|
|
@@ -6406,11 +6406,11 @@ function K9(t) {
|
|
|
6406
6406
|
var O, P = w === "y" ? Nn : _r, U = w === "y" ? sr : Kr, q = w === "y" ? "height" : "width", Q = C[w], V = Q + v[P], G = Q - v[U], ie = p ? -E[q] / 2 : 0, be = g === gi ? T[q] : E[q], he = g === gi ? -E[q] : -T[q], je = e.elements.arrow, Ce = p && je ? Fh(je) : {
|
|
6407
6407
|
width: 0,
|
|
6408
6408
|
height: 0
|
|
6409
|
-
}, pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zh(), Z = pe[P], j = pe[U], ve = xa(0, T[q], Ce[q]), Ue =
|
|
6409
|
+
}, pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zh(), Z = pe[P], j = pe[U], ve = xa(0, T[q], Ce[q]), Ue = y ? T[q] / 2 - ie - ve - Z - M.mainAxis : be - ve - Z - M.mainAxis, it = y ? -T[q] / 2 + ie + ve + j + M.mainAxis : he + ve + j + M.mainAxis, Re = e.elements.arrow && wl(e.elements.arrow), Pe = Re ? w === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Ft = (O = I == null ? void 0 : I[w]) != null ? O : 0, W = Q + Ue - Ft - Pe, me = Q + it - Ft, $e = xa(p ? Ba(V, W) : V, Q, p ? _o(G, me) : G);
|
|
6410
6410
|
C[w] = $e, x[w] = $e - Q;
|
|
6411
6411
|
}
|
|
6412
6412
|
if (a) {
|
|
6413
|
-
var Ee, ut = w === "x" ? Nn : _r, We = w === "x" ? sr : Kr, Ze = C[S], rt = S === "y" ? "height" : "width", pt = Ze + v[ut], ht = Ze - v[We], Ge = [Nn, _r].indexOf(
|
|
6413
|
+
var Ee, ut = w === "x" ? Nn : _r, We = w === "x" ? sr : Kr, Ze = C[S], rt = S === "y" ? "height" : "width", pt = Ze + v[ut], ht = Ze - v[We], Ge = [Nn, _r].indexOf(_) !== -1, Rt = (Ee = I == null ? void 0 : I[S]) != null ? Ee : 0, kt = Ge ? pt : Ze - T[rt] - E[rt] - Rt + M.altAxis, rn = Ge ? Ze + T[rt] + E[rt] - Rt - M.altAxis : ht, $n = p && Ge ? Z9(kt, Ze, rn) : xa(p ? kt : pt, Ze, p ? rn : ht);
|
|
6414
6414
|
C[S] = $n, x[S] = $n - Ze;
|
|
6415
6415
|
}
|
|
6416
6416
|
e.modifiersData[r] = x;
|
|
@@ -6471,7 +6471,7 @@ function Q9(t) {
|
|
|
6471
6471
|
function e4(t) {
|
|
6472
6472
|
var e = t.state, n = t.options, r = t.name;
|
|
6473
6473
|
if (!e.modifiersData[r]._skip) {
|
|
6474
|
-
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, f = n.rootBoundary, d = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, v = e.options.placement,
|
|
6474
|
+
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, f = n.rootBoundary, d = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, v = e.options.placement, _ = Hr(v), g = _ === v, y = l || (g || !h ? [Aa(v)] : Q9(v)), w = [v].concat(y).reduce(function(Ce, pe) {
|
|
6475
6475
|
return Ce.concat(Hr(pe) === Yu ? X9(e, {
|
|
6476
6476
|
placement: pe,
|
|
6477
6477
|
boundary: u,
|
|
@@ -6530,14 +6530,14 @@ var t4 = {
|
|
|
6530
6530
|
function n4(t, e, n) {
|
|
6531
6531
|
const { disabled: r, appendTo: o, appendToBody: i, openDirection: s } = vn(t), a = Fo().proxy, l = n.multiselect, c = n.dropdown, u = ee(!1), f = ee(null), d = ee(null), p = L(() => o.value || i.value), h = L(() => s.value === "top" && d.value === "bottom" || s.value === "bottom" && d.value !== "top" ? "bottom" : "top"), m = () => {
|
|
6532
6532
|
u.value || r.value || (u.value = !0, e.emit("open", a), p.value && Kt(() => {
|
|
6533
|
-
|
|
6533
|
+
_();
|
|
6534
6534
|
}));
|
|
6535
6535
|
}, v = () => {
|
|
6536
6536
|
u.value && (u.value = !1, e.emit("close", a));
|
|
6537
|
-
},
|
|
6537
|
+
}, _ = () => {
|
|
6538
6538
|
if (!f.value)
|
|
6539
6539
|
return;
|
|
6540
|
-
let
|
|
6540
|
+
let y = parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px", "")), w = parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px", ""));
|
|
6541
6541
|
f.value.setOptions((S) => ({
|
|
6542
6542
|
...S,
|
|
6543
6543
|
modifiers: [
|
|
@@ -6545,16 +6545,16 @@ function n4(t, e, n) {
|
|
|
6545
6545
|
{
|
|
6546
6546
|
name: "offset",
|
|
6547
6547
|
options: {
|
|
6548
|
-
offset: [0, (h.value === "top" ?
|
|
6548
|
+
offset: [0, (h.value === "top" ? y : w) * -1]
|
|
6549
6549
|
}
|
|
6550
6550
|
}
|
|
6551
6551
|
]
|
|
6552
6552
|
})), f.value.update();
|
|
6553
|
-
}, g = (
|
|
6554
|
-
for (;
|
|
6555
|
-
if (getComputedStyle(
|
|
6553
|
+
}, g = (y) => {
|
|
6554
|
+
for (; y && y !== document.body; ) {
|
|
6555
|
+
if (getComputedStyle(y).position === "fixed")
|
|
6556
6556
|
return !0;
|
|
6557
|
-
|
|
6557
|
+
y = y.parentElement;
|
|
6558
6558
|
}
|
|
6559
6559
|
return !1;
|
|
6560
6560
|
};
|
|
@@ -6573,19 +6573,19 @@ function n4(t, e, n) {
|
|
|
6573
6573
|
enabled: !0,
|
|
6574
6574
|
phase: "beforeWrite",
|
|
6575
6575
|
requires: ["computeStyles"],
|
|
6576
|
-
fn: ({ state:
|
|
6577
|
-
|
|
6576
|
+
fn: ({ state: y }) => {
|
|
6577
|
+
y.styles.popper.width = `${y.rects.reference.width}px`;
|
|
6578
6578
|
},
|
|
6579
|
-
effect: ({ state:
|
|
6580
|
-
|
|
6579
|
+
effect: ({ state: y }) => {
|
|
6580
|
+
y.elements.popper.style.width = `${y.elements.reference.offsetWidth}px`;
|
|
6581
6581
|
}
|
|
6582
6582
|
},
|
|
6583
6583
|
{
|
|
6584
6584
|
name: "toggleClass",
|
|
6585
6585
|
enabled: !0,
|
|
6586
6586
|
phase: "write",
|
|
6587
|
-
fn({ state:
|
|
6588
|
-
d.value =
|
|
6587
|
+
fn({ state: y }) {
|
|
6588
|
+
d.value = y.placement;
|
|
6589
6589
|
}
|
|
6590
6590
|
}
|
|
6591
6591
|
]
|
|
@@ -6598,17 +6598,17 @@ function n4(t, e, n) {
|
|
|
6598
6598
|
open: m,
|
|
6599
6599
|
close: v,
|
|
6600
6600
|
placement: h,
|
|
6601
|
-
updatePopper:
|
|
6601
|
+
updatePopper: _
|
|
6602
6602
|
};
|
|
6603
6603
|
}
|
|
6604
6604
|
function r4(t, e, n) {
|
|
6605
6605
|
const { searchable: r, disabled: o, clearOnBlur: i } = vn(t), s = n.input, a = n.open, l = n.close, c = n.clearSearch, u = n.isOpen, f = n.wrapper, d = n.tags, p = ee(!1), h = ee(!1), m = L(() => r.value || o.value ? -1 : 0), v = () => {
|
|
6606
6606
|
r.value && s.value.blur(), f.value.blur();
|
|
6607
|
-
},
|
|
6607
|
+
}, _ = () => {
|
|
6608
6608
|
r.value && !o.value && s.value.focus();
|
|
6609
6609
|
}, g = (E = !0) => {
|
|
6610
6610
|
o.value || (p.value = !0, E && a());
|
|
6611
|
-
},
|
|
6611
|
+
}, y = () => {
|
|
6612
6612
|
p.value = !1, setTimeout(() => {
|
|
6613
6613
|
p.value || (l(), i.value && c());
|
|
6614
6614
|
}, 1);
|
|
@@ -6618,21 +6618,21 @@ function r4(t, e, n) {
|
|
|
6618
6618
|
isActive: p,
|
|
6619
6619
|
mouseClicked: h,
|
|
6620
6620
|
blur: v,
|
|
6621
|
-
focus:
|
|
6621
|
+
focus: _,
|
|
6622
6622
|
activate: g,
|
|
6623
|
-
deactivate:
|
|
6623
|
+
deactivate: y,
|
|
6624
6624
|
handleFocusIn: (E) => {
|
|
6625
6625
|
E.target.closest("[data-tags]") && E.target.nodeName !== "INPUT" || E.target.closest("[data-clear]") || g(h.value);
|
|
6626
6626
|
},
|
|
6627
6627
|
handleFocusOut: () => {
|
|
6628
|
-
|
|
6628
|
+
y();
|
|
6629
6629
|
},
|
|
6630
6630
|
handleCaretClick: () => {
|
|
6631
|
-
|
|
6631
|
+
y(), v();
|
|
6632
6632
|
},
|
|
6633
6633
|
handleMousedown: (E) => {
|
|
6634
6634
|
h.value = !0, u.value && (E.target.isEqualNode(f.value) || E.target.isEqualNode(d.value)) ? setTimeout(() => {
|
|
6635
|
-
|
|
6635
|
+
y();
|
|
6636
6636
|
}, 0) : !u.value && (document.activeElement.isEqualNode(f.value) || document.activeElement.isEqualNode(s.value)) && g(), setTimeout(() => {
|
|
6637
6637
|
h.value = !1;
|
|
6638
6638
|
}, 0);
|
|
@@ -6652,8 +6652,8 @@ function o4(t, e, n) {
|
|
|
6652
6652
|
createTag: f,
|
|
6653
6653
|
createOption: d,
|
|
6654
6654
|
reverse: p
|
|
6655
|
-
} = vn(t), h = Fo().proxy, m = n.iv, v = n.update,
|
|
6656
|
-
r.value === "tags" && !a.value && P.value && s.value && !c.value &&
|
|
6655
|
+
} = vn(t), h = Fo().proxy, m = n.iv, v = n.update, _ = n.deselect, g = n.search, y = n.setPointer, w = n.selectPointer, S = n.backwardPointer, C = n.forwardPointer, T = n.multiselect, E = n.wrapper, A = n.tags, M = n.isOpen, I = n.open, x = n.blur, O = n.fo, P = L(() => f.value || d.value || !1), U = L(() => o.value !== void 0 ? o.value : u.value !== void 0 ? u.value : ["enter"]), q = () => {
|
|
6656
|
+
r.value === "tags" && !a.value && P.value && s.value && !c.value && y(O.value[O.value.map((G) => G[l.value]).indexOf(g.value)]);
|
|
6657
6657
|
};
|
|
6658
6658
|
return {
|
|
6659
6659
|
handleKeydown: (G) => {
|
|
@@ -6664,7 +6664,7 @@ function o4(t, e, n) {
|
|
|
6664
6664
|
if (r.value === "single" || s.value && [null, ""].indexOf(g.value) === -1 || m.value.length === 0)
|
|
6665
6665
|
return;
|
|
6666
6666
|
let he = m.value.filter((je) => !je.disabled && je.remove !== !1);
|
|
6667
|
-
he.length &&
|
|
6667
|
+
he.length && _(he[he.length - 1]);
|
|
6668
6668
|
break;
|
|
6669
6669
|
case "Enter":
|
|
6670
6670
|
if (G.preventDefault(), G.keyCode === 229)
|
|
@@ -6787,53 +6787,53 @@ function i4(t, e, n) {
|
|
|
6787
6787
|
assist: "multiselect-assistive-text",
|
|
6788
6788
|
spacer: "multiselect-spacer",
|
|
6789
6789
|
...r.value
|
|
6790
|
-
})),
|
|
6790
|
+
})), _ = L(() => !!(a.value && i.value && (!p.value || p.value && h.value.length)));
|
|
6791
6791
|
return {
|
|
6792
6792
|
classList: L(() => {
|
|
6793
|
-
const
|
|
6793
|
+
const y = v.value;
|
|
6794
6794
|
return {
|
|
6795
|
-
container: [
|
|
6796
|
-
wrapper:
|
|
6797
|
-
spacer:
|
|
6798
|
-
singleLabel:
|
|
6799
|
-
singleLabelText:
|
|
6800
|
-
multipleLabel:
|
|
6801
|
-
search:
|
|
6802
|
-
tags:
|
|
6803
|
-
tag: [
|
|
6804
|
-
tagWrapper: [
|
|
6805
|
-
tagDisabled:
|
|
6806
|
-
tagRemove:
|
|
6807
|
-
tagRemoveIcon:
|
|
6808
|
-
tagsSearchWrapper:
|
|
6809
|
-
tagsSearch:
|
|
6810
|
-
tagsSearchCopy:
|
|
6811
|
-
placeholder:
|
|
6812
|
-
caret: [
|
|
6813
|
-
clear:
|
|
6814
|
-
clearIcon:
|
|
6815
|
-
spinner:
|
|
6816
|
-
inifinite:
|
|
6817
|
-
inifiniteSpinner:
|
|
6818
|
-
dropdown: [
|
|
6819
|
-
options: [
|
|
6820
|
-
group:
|
|
6795
|
+
container: [y.container].concat(o.value ? y.containerDisabled : []).concat(_.value && m.value === "top" ? y.containerOpenTop : []).concat(_.value && m.value !== "top" ? y.containerOpen : []).concat(f.value ? y.containerActive : []),
|
|
6796
|
+
wrapper: y.wrapper,
|
|
6797
|
+
spacer: y.spacer,
|
|
6798
|
+
singleLabel: y.singleLabel,
|
|
6799
|
+
singleLabelText: y.singleLabelText,
|
|
6800
|
+
multipleLabel: y.multipleLabel,
|
|
6801
|
+
search: y.search,
|
|
6802
|
+
tags: y.tags,
|
|
6803
|
+
tag: [y.tag].concat(o.value ? y.tagDisabled : []),
|
|
6804
|
+
tagWrapper: [y.tagWrapper, s.value ? y.tagWrapperBreak : null],
|
|
6805
|
+
tagDisabled: y.tagDisabled,
|
|
6806
|
+
tagRemove: y.tagRemove,
|
|
6807
|
+
tagRemoveIcon: y.tagRemoveIcon,
|
|
6808
|
+
tagsSearchWrapper: y.tagsSearchWrapper,
|
|
6809
|
+
tagsSearch: y.tagsSearch,
|
|
6810
|
+
tagsSearchCopy: y.tagsSearchCopy,
|
|
6811
|
+
placeholder: y.placeholder,
|
|
6812
|
+
caret: [y.caret].concat(a.value ? y.caretOpen : []),
|
|
6813
|
+
clear: y.clear,
|
|
6814
|
+
clearIcon: y.clearIcon,
|
|
6815
|
+
spinner: y.spinner,
|
|
6816
|
+
inifinite: y.inifinite,
|
|
6817
|
+
inifiniteSpinner: y.inifiniteSpinner,
|
|
6818
|
+
dropdown: [y.dropdown].concat(m.value === "top" ? y.dropdownTop : []).concat(!a.value || !i.value || !_.value ? y.dropdownHidden : []),
|
|
6819
|
+
options: [y.options].concat(m.value === "top" ? y.optionsTop : []),
|
|
6820
|
+
group: y.group,
|
|
6821
6821
|
groupLabel: (w) => {
|
|
6822
|
-
let S = [
|
|
6823
|
-
return l(w) ? S.push(c(w) ?
|
|
6822
|
+
let S = [y.groupLabel];
|
|
6823
|
+
return l(w) ? S.push(c(w) ? y.groupLabelSelectedPointed : y.groupLabelPointed) : c(w) && d.value ? S.push(u(w) ? y.groupLabelSelectedDisabled : y.groupLabelSelected) : u(w) && S.push(y.groupLabelDisabled), d.value && S.push(y.groupLabelPointable), S;
|
|
6824
6824
|
},
|
|
6825
|
-
groupOptions:
|
|
6825
|
+
groupOptions: y.groupOptions,
|
|
6826
6826
|
option: (w, S) => {
|
|
6827
|
-
let C = [
|
|
6828
|
-
return l(w) ? C.push(c(w) ?
|
|
6827
|
+
let C = [y.option];
|
|
6828
|
+
return l(w) ? C.push(c(w) ? y.optionSelectedPointed : y.optionPointed) : c(w) ? C.push(u(w) ? y.optionSelectedDisabled : y.optionSelected) : (u(w) || S && u(S)) && C.push(y.optionDisabled), C;
|
|
6829
6829
|
},
|
|
6830
|
-
noOptions:
|
|
6831
|
-
noResults:
|
|
6832
|
-
assist:
|
|
6833
|
-
fakeInput:
|
|
6830
|
+
noOptions: y.noOptions,
|
|
6831
|
+
noResults: y.noResults,
|
|
6832
|
+
assist: y.assist,
|
|
6833
|
+
fakeInput: y.fakeInput
|
|
6834
6834
|
};
|
|
6835
6835
|
}),
|
|
6836
|
-
showDropdown:
|
|
6836
|
+
showDropdown: _
|
|
6837
6837
|
};
|
|
6838
6838
|
}
|
|
6839
6839
|
function s4(t, e, n) {
|
|
@@ -6841,11 +6841,11 @@ function s4(t, e, n) {
|
|
|
6841
6841
|
limit: r,
|
|
6842
6842
|
infinite: o
|
|
6843
6843
|
} = vn(t), i = n.isOpen, s = n.offset, a = n.search, l = n.pfo, c = n.eo, u = ee(null), f = ee(null), d = L(() => s.value < l.value.length), p = (m) => {
|
|
6844
|
-
const { isIntersecting: v, target:
|
|
6844
|
+
const { isIntersecting: v, target: _ } = m[0];
|
|
6845
6845
|
if (v) {
|
|
6846
|
-
const g =
|
|
6846
|
+
const g = _.offsetParent, y = g.scrollTop;
|
|
6847
6847
|
s.value += r.value == -1 ? 10 : r.value, Kt(() => {
|
|
6848
|
-
g.scrollTop =
|
|
6848
|
+
g.scrollTop = y;
|
|
6849
6849
|
});
|
|
6850
6850
|
}
|
|
6851
6851
|
}, h = () => {
|
|
@@ -6877,14 +6877,14 @@ function a4(t, e, n) {
|
|
|
6877
6877
|
} = vn(t), f = n.pointer, d = n.iv, p = n.hasSelected, h = n.multipleLabelText, m = ee(null), v = L(() => {
|
|
6878
6878
|
let x = [];
|
|
6879
6879
|
return o && o.value && x.push(o.value), x.push("assist"), x.join("-");
|
|
6880
|
-
}),
|
|
6880
|
+
}), _ = L(() => {
|
|
6881
6881
|
let x = [];
|
|
6882
6882
|
return o && o.value && x.push(o.value), x.push("multiselect-options"), x.join("-");
|
|
6883
6883
|
}), g = L(() => {
|
|
6884
6884
|
let x = [];
|
|
6885
6885
|
if (o && o.value && x.push(o.value), f.value)
|
|
6886
6886
|
return x.push(f.value.group ? "multiselect-group" : "multiselect-option"), x.push(f.value.group ? f.value.index : f.value[i.value]), x.join("-");
|
|
6887
|
-
}),
|
|
6887
|
+
}), y = L(() => r.value), w = L(() => a.value !== "single"), S = L(() => {
|
|
6888
6888
|
let x = "";
|
|
6889
6889
|
return a.value === "single" && p.value && (x += d.value[s.value]), a.value === "multiple" && p.value && (x += h.value), a.value === "tags" && p.value && (x += d.value.map((O) => O[s.value]).join(", ")), x;
|
|
6890
6890
|
}), C = L(() => {
|
|
@@ -6912,8 +6912,8 @@ function a4(t, e, n) {
|
|
|
6912
6912
|
arias: C,
|
|
6913
6913
|
ariaLabel: S,
|
|
6914
6914
|
ariaAssist: v,
|
|
6915
|
-
ariaControls:
|
|
6916
|
-
ariaPlaceholder:
|
|
6915
|
+
ariaControls: _,
|
|
6916
|
+
ariaPlaceholder: y,
|
|
6917
6917
|
ariaMultiselectable: w,
|
|
6918
6918
|
ariaActiveDescendant: g,
|
|
6919
6919
|
ariaOptionId: T,
|
|
@@ -7902,13 +7902,13 @@ const I4 = { class: "ao-tasks__list" }, N4 = ["id", "value", "readonly", "onChan
|
|
|
7902
7902
|
setup(t, { emit: e }) {
|
|
7903
7903
|
const { t: n } = nn(), r = t, o = e, i = ee(null);
|
|
7904
7904
|
let s = null, a = null;
|
|
7905
|
-
const l = (
|
|
7906
|
-
|
|
7907
|
-
}, c = (
|
|
7908
|
-
l(
|
|
7905
|
+
const l = (y) => {
|
|
7906
|
+
y.style.height = "auto", y.style.height = `${y.scrollHeight}px`;
|
|
7907
|
+
}, c = (y) => {
|
|
7908
|
+
l(y.target);
|
|
7909
7909
|
}, u = () => {
|
|
7910
|
-
var
|
|
7911
|
-
(
|
|
7910
|
+
var y;
|
|
7911
|
+
(y = i.value) == null || y.querySelectorAll(".ao-subtask__field").forEach(l);
|
|
7912
7912
|
}, f = () => {
|
|
7913
7913
|
a !== null && cancelAnimationFrame(a), a = requestAnimationFrame(() => {
|
|
7914
7914
|
u(), a = null;
|
|
@@ -7916,8 +7916,8 @@ const I4 = { class: "ao-tasks__list" }, N4 = ["id", "value", "readonly", "onChan
|
|
|
7916
7916
|
};
|
|
7917
7917
|
Ne(
|
|
7918
7918
|
() => r.tasks,
|
|
7919
|
-
(
|
|
7920
|
-
yr(
|
|
7919
|
+
(y, w) => {
|
|
7920
|
+
yr(y, w), f();
|
|
7921
7921
|
},
|
|
7922
7922
|
{
|
|
7923
7923
|
deep: !0
|
|
@@ -7931,41 +7931,41 @@ const I4 = { class: "ao-tasks__list" }, N4 = ["id", "value", "readonly", "onChan
|
|
|
7931
7931
|
});
|
|
7932
7932
|
const d = L(
|
|
7933
7933
|
() => {
|
|
7934
|
-
var
|
|
7935
|
-
return ((
|
|
7934
|
+
var y;
|
|
7935
|
+
return ((y = r.users) == null ? void 0 : y.map((w) => ({
|
|
7936
7936
|
label: `${w.firstName} ${w.lastName}`,
|
|
7937
7937
|
value: w.id,
|
|
7938
7938
|
avatar: w.avatarUrl
|
|
7939
7939
|
}))) ?? [];
|
|
7940
7940
|
}
|
|
7941
7941
|
), p = () => {
|
|
7942
|
-
const
|
|
7942
|
+
const y = r.tasks.length;
|
|
7943
7943
|
o("add", {
|
|
7944
|
-
name: n("task.defaultName", { idx:
|
|
7944
|
+
name: n("task.defaultName", { idx: y + 1 }),
|
|
7945
7945
|
activityId: r.activityId
|
|
7946
7946
|
});
|
|
7947
|
-
}, h = (
|
|
7948
|
-
const S =
|
|
7947
|
+
}, h = (y, w) => {
|
|
7948
|
+
const S = y.target;
|
|
7949
7949
|
o("update", {
|
|
7950
7950
|
id: w,
|
|
7951
7951
|
name: S.value
|
|
7952
7952
|
});
|
|
7953
|
-
}, m = (
|
|
7953
|
+
}, m = (y, w) => {
|
|
7954
7954
|
r.isEditable && o("update", {
|
|
7955
|
-
id:
|
|
7955
|
+
id: y,
|
|
7956
7956
|
isDone: w
|
|
7957
7957
|
});
|
|
7958
|
-
}, v = (
|
|
7959
|
-
o("delete", { id:
|
|
7960
|
-
},
|
|
7958
|
+
}, v = (y) => {
|
|
7959
|
+
o("delete", { id: y });
|
|
7960
|
+
}, _ = (y, w) => {
|
|
7961
7961
|
o("update", {
|
|
7962
7962
|
id: w,
|
|
7963
|
-
assigneeId:
|
|
7963
|
+
assigneeId: y[0] ?? null
|
|
7964
7964
|
});
|
|
7965
|
-
}, g = (
|
|
7966
|
-
|
|
7965
|
+
}, g = (y) => {
|
|
7966
|
+
y.target.blur();
|
|
7967
7967
|
};
|
|
7968
|
-
return (
|
|
7968
|
+
return (y, w) => (k(), $("div", {
|
|
7969
7969
|
ref_key: "tasksRoot",
|
|
7970
7970
|
ref: i,
|
|
7971
7971
|
class: "ao-tasks"
|
|
@@ -8010,12 +8010,12 @@ const I4 = { class: "ao-tasks__list" }, N4 = ["id", "value", "readonly", "onChan
|
|
|
8010
8010
|
max: 1,
|
|
8011
8011
|
class: "ao-subtask__assignees",
|
|
8012
8012
|
mode: "tags",
|
|
8013
|
-
placeholder:
|
|
8013
|
+
placeholder: y.$t("feed.filters.assignee.placeholder"),
|
|
8014
8014
|
disabled: !t.isEditable,
|
|
8015
8015
|
caret: t.isEditable,
|
|
8016
8016
|
detached: "",
|
|
8017
8017
|
"append-to": "body",
|
|
8018
|
-
onChange: (E) =>
|
|
8018
|
+
onChange: (E) => _(E, S.id)
|
|
8019
8019
|
}, {
|
|
8020
8020
|
tag: se(({
|
|
8021
8021
|
option: E,
|
|
@@ -8045,7 +8045,7 @@ const I4 = { class: "ao-tasks__list" }, N4 = ["id", "value", "readonly", "onChan
|
|
|
8045
8045
|
b("div", P4, [
|
|
8046
8046
|
t.isEditable ? (k(), Y(Se, {
|
|
8047
8047
|
key: 0,
|
|
8048
|
-
label:
|
|
8048
|
+
label: y.$t("activity.tasks.add"),
|
|
8049
8049
|
"icon-name": "Add",
|
|
8050
8050
|
variant: "ghost",
|
|
8051
8051
|
color: "primary",
|
|
@@ -8142,14 +8142,14 @@ const R4 = { class: "ao-files__placeholder" }, B4 = {
|
|
|
8142
8142
|
b("span", R4, H(p.$t("activity.attachment.placeholder.resting")), 1)
|
|
8143
8143
|
]),
|
|
8144
8144
|
(m = t.attachments) != null && m.length || t.isEditable ? (k(), $("ul", B4, [
|
|
8145
|
-
(k(!0), $(Me, null, Ye(t.attachments, (v,
|
|
8145
|
+
(k(!0), $(Me, null, Ye(t.attachments, (v, _) => (k(), $("li", {
|
|
8146
8146
|
key: v.id,
|
|
8147
8147
|
class: "ao-file"
|
|
8148
8148
|
}, [
|
|
8149
8149
|
b("button", {
|
|
8150
8150
|
type: "button",
|
|
8151
8151
|
class: "ao-file__link",
|
|
8152
|
-
onClick: (g) => n("preview",
|
|
8152
|
+
onClick: (g) => n("preview", _)
|
|
8153
8153
|
}, [
|
|
8154
8154
|
N(Be, {
|
|
8155
8155
|
class: "ao-file__icon",
|
|
@@ -10468,9 +10468,9 @@ Ua.prototype.parse = function(t, e) {
|
|
|
10468
10468
|
for (n = 0, r = m.length; n < r; n++) {
|
|
10469
10469
|
var v = m[n];
|
|
10470
10470
|
if (v && !v.match(O1)) {
|
|
10471
|
-
for (var
|
|
10472
|
-
v.charCodeAt(g) > 127 ?
|
|
10473
|
-
if (!
|
|
10471
|
+
for (var _ = "", g = 0, y = v.length; g < y; g++)
|
|
10472
|
+
v.charCodeAt(g) > 127 ? _ += "x" : _ += v[g];
|
|
10473
|
+
if (!_.match(O1)) {
|
|
10474
10474
|
var w = m.slice(0, n), S = m.slice(n + 1), C = v.match(Aie);
|
|
10475
10475
|
C && (w.push(C[1]), S.unshift(C[2])), S.length && (a = S.join(".") + a), this.hostname = w.join(".");
|
|
10476
10476
|
break;
|
|
@@ -10564,17 +10564,17 @@ function Die() {
|
|
|
10564
10564
|
return q || h(U, Q);
|
|
10565
10565
|
});
|
|
10566
10566
|
}
|
|
10567
|
-
var
|
|
10567
|
+
var _ = /[&<>"]/, g = /[&<>"]/g, y = {
|
|
10568
10568
|
"&": "&",
|
|
10569
10569
|
"<": "<",
|
|
10570
10570
|
">": ">",
|
|
10571
10571
|
'"': """
|
|
10572
10572
|
};
|
|
10573
10573
|
function w(P) {
|
|
10574
|
-
return
|
|
10574
|
+
return y[P];
|
|
10575
10575
|
}
|
|
10576
10576
|
function S(P) {
|
|
10577
|
-
return
|
|
10577
|
+
return _.test(P) ? P.replace(g, w) : P;
|
|
10578
10578
|
}
|
|
10579
10579
|
var C = /[.?*+^$[\]\\(){}|-]/g;
|
|
10580
10580
|
function T(P) {
|
|
@@ -10918,7 +10918,7 @@ function jie(t) {
|
|
|
10918
10918
|
return /^<\/a\s*>/i.test(t);
|
|
10919
10919
|
}
|
|
10920
10920
|
var Wie = function(e) {
|
|
10921
|
-
var n, r, o, i, s, a, l, c, u, f, d, p, h, m, v,
|
|
10921
|
+
var n, r, o, i, s, a, l, c, u, f, d, p, h, m, v, _, g = e.tokens, y;
|
|
10922
10922
|
if (e.md.options.linkify) {
|
|
10923
10923
|
for (r = 0, o = g.length; r < o; r++)
|
|
10924
10924
|
if (!(g[r].type !== "inline" || !e.md.linkify.pretest(g[r].content)))
|
|
@@ -10929,8 +10929,8 @@ var Wie = function(e) {
|
|
|
10929
10929
|
continue;
|
|
10930
10930
|
}
|
|
10931
10931
|
if (a.type === "html_inline" && (Vie(a.content) && h > 0 && h--, jie(a.content) && h++), !(h > 0) && a.type === "text" && e.md.linkify.test(a.content)) {
|
|
10932
|
-
for (u = a.content,
|
|
10933
|
-
m =
|
|
10932
|
+
for (u = a.content, y = e.md.linkify.match(u), l = [], p = a.level, d = 0, y.length > 0 && y[0].index === 0 && n > 0 && i[n - 1].type === "text_special" && (y = y.slice(1)), c = 0; c < y.length; c++)
|
|
10933
|
+
m = y[c].url, v = e.md.normalizeLink(m), e.md.validateLink(v) && (_ = y[c].text, y[c].schema ? y[c].schema === "mailto:" && !/^mailto:/i.test(_) ? _ = e.md.normalizeLinkText("mailto:" + _).replace(/^mailto:/, "") : _ = e.md.normalizeLinkText(_) : _ = e.md.normalizeLinkText("http://" + _).replace(/^http:\/\//, ""), f = y[c].index, f > d && (s = new e.Token("text", "", 0), s.content = u.slice(d, f), s.level = p, l.push(s)), s = new e.Token("link_open", "a", 1), s.attrs = [["href", v]], s.level = p++, s.markup = "linkify", s.info = "auto", l.push(s), s = new e.Token("text", "", 0), s.content = _, s.level = p, l.push(s), s = new e.Token("link_close", "a", -1), s.level = --p, s.markup = "linkify", s.info = "auto", l.push(s), d = y[c].lastIndex);
|
|
10934
10934
|
d < u.length && (s = new e.Token("text", "", 0), s.content = u.slice(d), s.level = p, l.push(s)), g[r].children = i = qie(i, n, l);
|
|
10935
10935
|
}
|
|
10936
10936
|
}
|
|
@@ -10963,7 +10963,7 @@ function da(t, e, n) {
|
|
|
10963
10963
|
return t.slice(0, e) + n + t.slice(e + 1);
|
|
10964
10964
|
}
|
|
10965
10965
|
function tse(t, e) {
|
|
10966
|
-
var n, r, o, i, s, a, l, c, u, f, d, p, h, m, v,
|
|
10966
|
+
var n, r, o, i, s, a, l, c, u, f, d, p, h, m, v, _, g, y, w, S, C;
|
|
10967
10967
|
for (w = [], n = 0; n < t.length; n++) {
|
|
10968
10968
|
for (r = t[n], l = t[n].level, g = w.length - 1; g >= 0 && !(w[g].level <= l); g--)
|
|
10969
10969
|
;
|
|
@@ -10971,7 +10971,7 @@ function tse(t, e) {
|
|
|
10971
10971
|
o = r.content, s = 0, a = o.length;
|
|
10972
10972
|
e:
|
|
10973
10973
|
for (; s < a && (V1.lastIndex = s, i = V1.exec(o), !!i); ) {
|
|
10974
|
-
if (v =
|
|
10974
|
+
if (v = _ = !0, s = i.index + 1, y = i[0] === "'", u = 32, i.index - 1 >= 0)
|
|
10975
10975
|
u = o.charCodeAt(i.index - 1);
|
|
10976
10976
|
else
|
|
10977
10977
|
for (g = n - 1; g >= 0 && !(t[g].type === "softbreak" || t[g].type === "hardbreak"); g--)
|
|
@@ -10987,14 +10987,14 @@ function tse(t, e) {
|
|
|
10987
10987
|
f = t[g].content.charCodeAt(0);
|
|
10988
10988
|
break;
|
|
10989
10989
|
}
|
|
10990
|
-
if (d = q1(u) || z1(String.fromCharCode(u)), p = q1(f) || z1(String.fromCharCode(f)), h = H1(u), m = H1(f), m ? v = !1 : p && (h || d || (v = !1)), h ?
|
|
10991
|
-
|
|
10990
|
+
if (d = q1(u) || z1(String.fromCharCode(u)), p = q1(f) || z1(String.fromCharCode(f)), h = H1(u), m = H1(f), m ? v = !1 : p && (h || d || (v = !1)), h ? _ = !1 : d && (m || p || (_ = !1)), f === 34 && i[0] === '"' && u >= 48 && u <= 57 && (_ = v = !1), v && _ && (v = d, _ = p), !v && !_) {
|
|
10991
|
+
y && (r.content = da(r.content, i.index, j1));
|
|
10992
10992
|
continue;
|
|
10993
10993
|
}
|
|
10994
|
-
if (
|
|
10994
|
+
if (_) {
|
|
10995
10995
|
for (g = w.length - 1; g >= 0 && (c = w[g], !(w[g].level < l)); g--)
|
|
10996
|
-
if (c.single ===
|
|
10997
|
-
c = w[g],
|
|
10996
|
+
if (c.single === y && w[g].level === l) {
|
|
10997
|
+
c = w[g], y ? (S = e.md.options.quotes[2], C = e.md.options.quotes[3]) : (S = e.md.options.quotes[0], C = e.md.options.quotes[1]), r.content = da(r.content, i.index, C), t[c.token].content = da(
|
|
10998
10998
|
t[c.token].content,
|
|
10999
10999
|
c.pos,
|
|
11000
11000
|
S
|
|
@@ -11005,9 +11005,9 @@ function tse(t, e) {
|
|
|
11005
11005
|
v ? w.push({
|
|
11006
11006
|
token: n,
|
|
11007
11007
|
pos: i.index,
|
|
11008
|
-
single:
|
|
11008
|
+
single: y,
|
|
11009
11009
|
level: l
|
|
11010
|
-
}) :
|
|
11010
|
+
}) : _ && y && (r.content = da(r.content, i.index, j1));
|
|
11011
11011
|
}
|
|
11012
11012
|
}
|
|
11013
11013
|
}
|
|
@@ -11094,7 +11094,7 @@ function W1(t) {
|
|
|
11094
11094
|
return e.push(a + t.substring(s)), e;
|
|
11095
11095
|
}
|
|
11096
11096
|
var lse = function(e, n, r, o) {
|
|
11097
|
-
var i, s, a, l, c, u, f, d, p, h, m, v,
|
|
11097
|
+
var i, s, a, l, c, u, f, d, p, h, m, v, _, g, y, w, S, C;
|
|
11098
11098
|
if (n + 2 > r || (u = n + 1, e.sCount[u] < e.blkIndent) || e.sCount[u] - e.blkIndent >= 4 || (a = e.bMarks[u] + e.tShift[u], a >= e.eMarks[u]) || (S = e.src.charCodeAt(a++), S !== 124 && S !== 45 && S !== 58) || a >= e.eMarks[u] || (C = e.src.charCodeAt(a++), C !== 124 && C !== 45 && C !== 58 && !hc(C)) || S === 45 && hc(C))
|
|
11099
11099
|
return !1;
|
|
11100
11100
|
for (; a < e.eMarks[u]; ) {
|
|
@@ -11119,18 +11119,18 @@ var lse = function(e, n, r, o) {
|
|
|
11119
11119
|
for (g = e.parentType, e.parentType = "table", w = e.md.block.ruler.getRules("blockquote"), p = e.push("table_open", "table", 1), p.map = v = [n, 0], p = e.push("thead_open", "thead", 1), p.map = [n, n + 1], p = e.push("tr_open", "tr", 1), p.map = [n, n + 1], l = 0; l < f.length; l++)
|
|
11120
11120
|
p = e.push("th_open", "th", 1), h[l] && (p.attrs = [["style", "text-align:" + h[l]]]), p = e.push("inline", "", 0), p.content = f[l].trim(), p.children = [], p = e.push("th_close", "th", -1);
|
|
11121
11121
|
for (p = e.push("tr_close", "tr", -1), p = e.push("thead_close", "thead", -1), u = n + 2; u < r && !(e.sCount[u] < e.blkIndent); u++) {
|
|
11122
|
-
for (
|
|
11122
|
+
for (y = !1, l = 0, c = w.length; l < c; l++)
|
|
11123
11123
|
if (w[l](e, u, r, !0)) {
|
|
11124
|
-
|
|
11124
|
+
y = !0;
|
|
11125
11125
|
break;
|
|
11126
11126
|
}
|
|
11127
|
-
if (
|
|
11127
|
+
if (y || (s = mc(e, u).trim(), !s) || e.sCount[u] - e.blkIndent >= 4)
|
|
11128
11128
|
break;
|
|
11129
|
-
for (f = W1(s), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), u === n + 2 && (p = e.push("tbody_open", "tbody", 1), p.map =
|
|
11129
|
+
for (f = W1(s), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), u === n + 2 && (p = e.push("tbody_open", "tbody", 1), p.map = _ = [n + 2, 0]), p = e.push("tr_open", "tr", 1), p.map = [u, u + 1], l = 0; l < d; l++)
|
|
11130
11130
|
p = e.push("td_open", "td", 1), h[l] && (p.attrs = [["style", "text-align:" + h[l]]]), p = e.push("inline", "", 0), p.content = f[l] ? f[l].trim() : "", p.children = [], p = e.push("td_close", "td", -1);
|
|
11131
11131
|
p = e.push("tr_close", "tr", -1);
|
|
11132
11132
|
}
|
|
11133
|
-
return
|
|
11133
|
+
return _ && (p = e.push("tbody_close", "tbody", -1), _[1] = u), p = e.push("table_close", "table", -1), v[1] = u, e.parentType = g, e.line = u, !0;
|
|
11134
11134
|
}, cse = function(e, n, r) {
|
|
11135
11135
|
var o, i, s;
|
|
11136
11136
|
if (e.sCount[n] - e.blkIndent < 4)
|
|
@@ -11161,18 +11161,18 @@ var lse = function(e, n, r, o) {
|
|
|
11161
11161
|
}
|
|
11162
11162
|
return s = e.sCount[n], e.line = l + (d ? 1 : 0), u = e.push("fence", "code", 0), u.info = a, u.content = e.getLines(n + 1, l, s, !0), u.markup = f, u.map = [n, e.line], !0;
|
|
11163
11163
|
}, dse = Ke.isSpace, fse = function(e, n, r, o) {
|
|
11164
|
-
var i, s, a, l, c, u, f, d, p, h, m, v,
|
|
11164
|
+
var i, s, a, l, c, u, f, d, p, h, m, v, _, g, y, w, S, C, T, E, A = e.lineMax, M = e.bMarks[n] + e.tShift[n], I = e.eMarks[n];
|
|
11165
11165
|
if (e.sCount[n] - e.blkIndent >= 4 || e.src.charCodeAt(M) !== 62)
|
|
11166
11166
|
return !1;
|
|
11167
11167
|
if (o)
|
|
11168
11168
|
return !0;
|
|
11169
|
-
for (h = [], m = [], g = [],
|
|
11169
|
+
for (h = [], m = [], g = [], y = [], C = e.md.block.ruler.getRules("blockquote"), _ = e.parentType, e.parentType = "blockquote", d = n; d < r && (E = e.sCount[d] < e.blkIndent, M = e.bMarks[d] + e.tShift[d], I = e.eMarks[d], !(M >= I)); d++) {
|
|
11170
11170
|
if (e.src.charCodeAt(M++) === 62 && !E) {
|
|
11171
11171
|
for (l = e.sCount[d] + 1, e.src.charCodeAt(M) === 32 ? (M++, l++, i = !1, w = !0) : e.src.charCodeAt(M) === 9 ? (w = !0, (e.bsCount[d] + l) % 4 === 3 ? (M++, l++, i = !1) : i = !0) : w = !1, p = l, h.push(e.bMarks[d]), e.bMarks[d] = M; M < I && (s = e.src.charCodeAt(M), dse(s)); ) {
|
|
11172
11172
|
s === 9 ? p += 4 - (p + e.bsCount[d] + (i ? 1 : 0)) % 4 : p++;
|
|
11173
11173
|
M++;
|
|
11174
11174
|
}
|
|
11175
|
-
u = M >= I, m.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (w ? 1 : 0), g.push(e.sCount[d]), e.sCount[d] = p - l,
|
|
11175
|
+
u = M >= I, m.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (w ? 1 : 0), g.push(e.sCount[d]), e.sCount[d] = p - l, y.push(e.tShift[d]), e.tShift[d] = M - e.bMarks[d];
|
|
11176
11176
|
continue;
|
|
11177
11177
|
}
|
|
11178
11178
|
if (u)
|
|
@@ -11183,13 +11183,13 @@ var lse = function(e, n, r, o) {
|
|
|
11183
11183
|
break;
|
|
11184
11184
|
}
|
|
11185
11185
|
if (S) {
|
|
11186
|
-
e.lineMax = d, e.blkIndent !== 0 && (h.push(e.bMarks[d]), m.push(e.bsCount[d]),
|
|
11186
|
+
e.lineMax = d, e.blkIndent !== 0 && (h.push(e.bMarks[d]), m.push(e.bsCount[d]), y.push(e.tShift[d]), g.push(e.sCount[d]), e.sCount[d] -= e.blkIndent);
|
|
11187
11187
|
break;
|
|
11188
11188
|
}
|
|
11189
|
-
h.push(e.bMarks[d]), m.push(e.bsCount[d]),
|
|
11189
|
+
h.push(e.bMarks[d]), m.push(e.bsCount[d]), y.push(e.tShift[d]), g.push(e.sCount[d]), e.sCount[d] = -1;
|
|
11190
11190
|
}
|
|
11191
|
-
for (v = e.blkIndent, e.blkIndent = 0, T = e.push("blockquote_open", "blockquote", 1), T.markup = ">", T.map = f = [n, 0], e.md.block.tokenize(e, n, d), T = e.push("blockquote_close", "blockquote", -1), T.markup = ">", e.lineMax = A, e.parentType =
|
|
11192
|
-
e.bMarks[a + n] = h[a], e.tShift[a + n] =
|
|
11191
|
+
for (v = e.blkIndent, e.blkIndent = 0, T = e.push("blockquote_open", "blockquote", 1), T.markup = ">", T.map = f = [n, 0], e.md.block.tokenize(e, n, d), T = e.push("blockquote_close", "blockquote", -1), T.markup = ">", e.lineMax = A, e.parentType = _, f[1] = e.line, a = 0; a < y.length; a++)
|
|
11192
|
+
e.bMarks[a + n] = h[a], e.tShift[a + n] = y[a], e.sCount[a + n] = g[a], e.bsCount[a + n] = m[a];
|
|
11193
11193
|
return e.blkIndent = v, !0;
|
|
11194
11194
|
}, pse = Ke.isSpace, hse = function(e, n, r, o) {
|
|
11195
11195
|
var i, s, a, l, c = e.bMarks[n] + e.tShift[n], u = e.eMarks[n];
|
|
@@ -11230,11 +11230,11 @@ function mse(t, e) {
|
|
|
11230
11230
|
t.tokens[n].level === o && t.tokens[n].type === "paragraph_open" && (t.tokens[n + 2].hidden = !0, t.tokens[n].hidden = !0, n += 2);
|
|
11231
11231
|
}
|
|
11232
11232
|
var gse = function(e, n, r, o) {
|
|
11233
|
-
var i, s, a, l, c, u, f, d, p, h, m, v,
|
|
11233
|
+
var i, s, a, l, c, u, f, d, p, h, m, v, _, g, y, w, S, C, T, E, A, M, I, x, O, P, U, q = n, Q = !1, V = !0;
|
|
11234
11234
|
if (e.sCount[q] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[q] - e.listIndent >= 4 && e.sCount[q] < e.blkIndent)
|
|
11235
11235
|
return !1;
|
|
11236
11236
|
if (o && e.parentType === "paragraph" && e.sCount[q] >= e.blkIndent && (Q = !0), (M = K1(e, q)) >= 0) {
|
|
11237
|
-
if (f = !0, x = e.bMarks[q] + e.tShift[q],
|
|
11237
|
+
if (f = !0, x = e.bMarks[q] + e.tShift[q], _ = Number(e.src.slice(x, M - 1)), Q && _ !== 1)
|
|
11238
11238
|
return !1;
|
|
11239
11239
|
} else if ((M = Z1(e, q)) >= 0)
|
|
11240
11240
|
f = !1;
|
|
@@ -11244,17 +11244,17 @@ var gse = function(e, n, r, o) {
|
|
|
11244
11244
|
return !1;
|
|
11245
11245
|
if (o)
|
|
11246
11246
|
return !0;
|
|
11247
|
-
for (v = e.src.charCodeAt(M - 1), m = e.tokens.length, f ? (U = e.push("ordered_list_open", "ol", 1),
|
|
11248
|
-
for (A = M, g = e.eMarks[q], u =
|
|
11247
|
+
for (v = e.src.charCodeAt(M - 1), m = e.tokens.length, f ? (U = e.push("ordered_list_open", "ol", 1), _ !== 1 && (U.attrs = [["start", _]])) : U = e.push("bullet_list_open", "ul", 1), U.map = h = [q, 0], U.markup = String.fromCharCode(v), I = !1, P = e.md.block.ruler.getRules("list"), S = e.parentType, e.parentType = "list"; q < r; ) {
|
|
11248
|
+
for (A = M, g = e.eMarks[q], u = y = e.sCount[q] + M - (e.bMarks[q] + e.tShift[q]); A < g; ) {
|
|
11249
11249
|
if (i = e.src.charCodeAt(A), i === 9)
|
|
11250
|
-
|
|
11250
|
+
y += 4 - (y + e.bsCount[q]) % 4;
|
|
11251
11251
|
else if (i === 32)
|
|
11252
|
-
|
|
11252
|
+
y++;
|
|
11253
11253
|
else
|
|
11254
11254
|
break;
|
|
11255
11255
|
A++;
|
|
11256
11256
|
}
|
|
11257
|
-
if (s = A, s >= g ? c = 1 : c =
|
|
11257
|
+
if (s = A, s >= g ? c = 1 : c = y - u, c > 4 && (c = 1), l = u + c, U = e.push("list_item_open", "li", 1), U.markup = String.fromCharCode(v), U.map = d = [q, 0], f && (U.info = e.src.slice(x, M - 1)), E = e.tight, T = e.tShift[q], C = e.sCount[q], w = e.listIndent, e.listIndent = e.blkIndent, e.blkIndent = l, e.tight = !0, e.tShift[q] = s - e.bMarks[q], e.sCount[q] = y, s >= g && e.isEmpty(q + 1) ? e.line = Math.min(e.line + 2, r) : e.md.block.tokenize(e, q, r, !0), (!e.tight || I) && (V = !1), I = e.line - q > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = w, e.tShift[q] = T, e.sCount[q] = C, e.tight = E, U = e.push("list_item_close", "li", -1), U.markup = String.fromCharCode(v), q = e.line, d[1] = q, q >= r || e.sCount[q] < e.blkIndent || e.sCount[q] - e.blkIndent >= 4)
|
|
11258
11258
|
break;
|
|
11259
11259
|
for (O = !1, a = 0, p = P.length; a < p; a++)
|
|
11260
11260
|
if (P[a](e, q, r, !0)) {
|
|
@@ -11274,7 +11274,7 @@ var gse = function(e, n, r, o) {
|
|
|
11274
11274
|
}
|
|
11275
11275
|
return f ? U = e.push("ordered_list_close", "ol", -1) : U = e.push("bullet_list_close", "ul", -1), U.markup = String.fromCharCode(v), h[1] = q, e.line = q, e.parentType = S, V && mse(e, m), !0;
|
|
11276
11276
|
}, vse = Ke.normalizeReference, fa = Ke.isSpace, _se = function(e, n, r, o) {
|
|
11277
|
-
var i, s, a, l, c, u, f, d, p, h, m, v,
|
|
11277
|
+
var i, s, a, l, c, u, f, d, p, h, m, v, _, g, y, w, S = 0, C = e.bMarks[n] + e.tShift[n], T = e.eMarks[n], E = n + 1;
|
|
11278
11278
|
if (e.sCount[n] - e.blkIndent >= 4 || e.src.charCodeAt(C) !== 91)
|
|
11279
11279
|
return !1;
|
|
11280
11280
|
for (; ++C < T; )
|
|
@@ -11283,45 +11283,45 @@ var gse = function(e, n, r, o) {
|
|
|
11283
11283
|
return !1;
|
|
11284
11284
|
break;
|
|
11285
11285
|
}
|
|
11286
|
-
for (l = e.lineMax,
|
|
11286
|
+
for (l = e.lineMax, y = e.md.block.ruler.getRules("reference"), h = e.parentType, e.parentType = "reference"; E < l && !e.isEmpty(E); E++)
|
|
11287
11287
|
if (!(e.sCount[E] - e.blkIndent > 3) && !(e.sCount[E] < 0)) {
|
|
11288
|
-
for (g = !1, u = 0, f =
|
|
11289
|
-
if (
|
|
11288
|
+
for (g = !1, u = 0, f = y.length; u < f; u++)
|
|
11289
|
+
if (y[u](e, E, l, !0)) {
|
|
11290
11290
|
g = !0;
|
|
11291
11291
|
break;
|
|
11292
11292
|
}
|
|
11293
11293
|
if (g)
|
|
11294
11294
|
break;
|
|
11295
11295
|
}
|
|
11296
|
-
for (
|
|
11297
|
-
if (i =
|
|
11296
|
+
for (_ = e.getLines(n, E, e.blkIndent, !1).trim(), T = _.length, C = 1; C < T; C++) {
|
|
11297
|
+
if (i = _.charCodeAt(C), i === 91)
|
|
11298
11298
|
return !1;
|
|
11299
11299
|
if (i === 93) {
|
|
11300
11300
|
p = C;
|
|
11301
11301
|
break;
|
|
11302
11302
|
} else
|
|
11303
|
-
i === 10 ? S++ : i === 92 && (C++, C < T &&
|
|
11303
|
+
i === 10 ? S++ : i === 92 && (C++, C < T && _.charCodeAt(C) === 10 && S++);
|
|
11304
11304
|
}
|
|
11305
|
-
if (p < 0 ||
|
|
11305
|
+
if (p < 0 || _.charCodeAt(p + 1) !== 58)
|
|
11306
11306
|
return !1;
|
|
11307
11307
|
for (C = p + 2; C < T; C++)
|
|
11308
|
-
if (i =
|
|
11308
|
+
if (i = _.charCodeAt(C), i === 10)
|
|
11309
11309
|
S++;
|
|
11310
11310
|
else if (!fa(i))
|
|
11311
11311
|
break;
|
|
11312
|
-
if (m = e.md.helpers.parseLinkDestination(
|
|
11312
|
+
if (m = e.md.helpers.parseLinkDestination(_, C, T), !m.ok || (c = e.md.normalizeLink(m.str), !e.md.validateLink(c)))
|
|
11313
11313
|
return !1;
|
|
11314
11314
|
for (C = m.pos, S += m.lines, s = C, a = S, v = C; C < T; C++)
|
|
11315
|
-
if (i =
|
|
11315
|
+
if (i = _.charCodeAt(C), i === 10)
|
|
11316
11316
|
S++;
|
|
11317
11317
|
else if (!fa(i))
|
|
11318
11318
|
break;
|
|
11319
|
-
for (m = e.md.helpers.parseLinkTitle(
|
|
11319
|
+
for (m = e.md.helpers.parseLinkTitle(_, C, T), C < T && v !== C && m.ok ? (w = m.str, C = m.pos, S += m.lines) : (w = "", C = s, S = a); C < T && (i = _.charCodeAt(C), !!fa(i)); )
|
|
11320
11320
|
C++;
|
|
11321
|
-
if (C < T &&
|
|
11322
|
-
for (w = "", C = s, S = a; C < T && (i =
|
|
11321
|
+
if (C < T && _.charCodeAt(C) !== 10 && w)
|
|
11322
|
+
for (w = "", C = s, S = a; C < T && (i = _.charCodeAt(C), !!fa(i)); )
|
|
11323
11323
|
C++;
|
|
11324
|
-
return C < T &&
|
|
11324
|
+
return C < T && _.charCodeAt(C) !== 10 || (d = vse(_.slice(1, p)), !d) ? !1 : (o || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[d] > "u" && (e.env.references[d] = { title: w, href: c }), e.parentType = h, e.line = n + S + 1), !0);
|
|
11325
11325
|
}, yse = [
|
|
11326
11326
|
"address",
|
|
11327
11327
|
"article",
|
|
@@ -11728,11 +11728,11 @@ Ml.postProcess = function(e) {
|
|
|
11728
11728
|
r[n] && r[n].delimiters && X1(e, r[n].delimiters);
|
|
11729
11729
|
};
|
|
11730
11730
|
var Yse = Ke.normalizeReference, gc = Ke.isSpace, Jse = function(e, n) {
|
|
11731
|
-
var r, o, i, s, a, l, c, u, f, d = "", p = "", h = e.pos, m = e.posMax, v = e.pos,
|
|
11731
|
+
var r, o, i, s, a, l, c, u, f, d = "", p = "", h = e.pos, m = e.posMax, v = e.pos, _ = !0;
|
|
11732
11732
|
if (e.src.charCodeAt(e.pos) !== 91 || (a = e.pos + 1, s = e.md.helpers.parseLinkLabel(e, e.pos, !0), s < 0))
|
|
11733
11733
|
return !1;
|
|
11734
11734
|
if (l = s + 1, l < m && e.src.charCodeAt(l) === 40) {
|
|
11735
|
-
for (
|
|
11735
|
+
for (_ = !1, l++; l < m && (o = e.src.charCodeAt(l), !(!gc(o) && o !== 10)); l++)
|
|
11736
11736
|
;
|
|
11737
11737
|
if (l >= m)
|
|
11738
11738
|
return !1;
|
|
@@ -11743,9 +11743,9 @@ var Yse = Ke.normalizeReference, gc = Ke.isSpace, Jse = function(e, n) {
|
|
|
11743
11743
|
for (p = c.str, l = c.pos; l < m && (o = e.src.charCodeAt(l), !(!gc(o) && o !== 10)); l++)
|
|
11744
11744
|
;
|
|
11745
11745
|
}
|
|
11746
|
-
(l >= m || e.src.charCodeAt(l) !== 41) && (
|
|
11746
|
+
(l >= m || e.src.charCodeAt(l) !== 41) && (_ = !0), l++;
|
|
11747
11747
|
}
|
|
11748
|
-
if (
|
|
11748
|
+
if (_) {
|
|
11749
11749
|
if (typeof e.env.references > "u")
|
|
11750
11750
|
return !1;
|
|
11751
11751
|
if (l < m && e.src.charCodeAt(l) === 91 ? (v = l + 1, l = e.md.helpers.parseLinkLabel(e, l), l >= 0 ? i = e.src.slice(v, l++) : l = s + 1) : l = s + 1, i || (i = e.src.slice(a, s)), u = e.env.references[Yse(i)], !u)
|
|
@@ -11754,7 +11754,7 @@ var Yse = Ke.normalizeReference, gc = Ke.isSpace, Jse = function(e, n) {
|
|
|
11754
11754
|
}
|
|
11755
11755
|
return n || (e.pos = a, e.posMax = s, f = e.push("link_open", "a", 1), f.attrs = r = [["href", d]], p && r.push(["title", p]), e.linkLevel++, e.md.inline.tokenize(e), e.linkLevel--, f = e.push("link_close", "a", -1)), e.pos = l, e.posMax = m, !0;
|
|
11756
11756
|
}, Xse = Ke.normalizeReference, vc = Ke.isSpace, Qse = function(e, n) {
|
|
11757
|
-
var r, o, i, s, a, l, c, u, f, d, p, h, m, v = "",
|
|
11757
|
+
var r, o, i, s, a, l, c, u, f, d, p, h, m, v = "", _ = e.pos, g = e.posMax;
|
|
11758
11758
|
if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91 || (l = e.pos + 2, a = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1), a < 0))
|
|
11759
11759
|
return !1;
|
|
11760
11760
|
if (c = a + 1, c < g && e.src.charCodeAt(c) === 40) {
|
|
@@ -11770,13 +11770,13 @@ var Yse = Ke.normalizeReference, gc = Ke.isSpace, Jse = function(e, n) {
|
|
|
11770
11770
|
else
|
|
11771
11771
|
d = "";
|
|
11772
11772
|
if (c >= g || e.src.charCodeAt(c) !== 41)
|
|
11773
|
-
return e.pos =
|
|
11773
|
+
return e.pos = _, !1;
|
|
11774
11774
|
c++;
|
|
11775
11775
|
} else {
|
|
11776
11776
|
if (typeof e.env.references > "u")
|
|
11777
11777
|
return !1;
|
|
11778
11778
|
if (c < g && e.src.charCodeAt(c) === 91 ? (m = c + 1, c = e.md.helpers.parseLinkLabel(e, c), c >= 0 ? s = e.src.slice(m, c++) : c = a + 1) : c = a + 1, s || (s = e.src.slice(l, a)), u = e.env.references[Xse(s)], !u)
|
|
11779
|
-
return e.pos =
|
|
11779
|
+
return e.pos = _, !1;
|
|
11780
11780
|
v = u.href, d = u.title;
|
|
11781
11781
|
}
|
|
11782
11782
|
return n || (i = e.src.slice(l, a), e.md.inline.parse(
|
|
@@ -12765,7 +12765,7 @@ function fm() {
|
|
|
12765
12765
|
t.DocumentFragment;
|
|
12766
12766
|
const i = t.HTMLTemplateElement, s = t.Node, a = t.Element, l = t.NodeFilter, c = t.NamedNodeMap;
|
|
12767
12767
|
c === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
|
|
12768
|
-
const u = t.DOMParser, f = t.trustedTypes, d = a.prototype, p = On(d, "cloneNode"), h = On(d, "remove"), m = On(d, "nextSibling"), v = On(d, "childNodes"),
|
|
12768
|
+
const u = t.DOMParser, f = t.trustedTypes, d = a.prototype, p = On(d, "cloneNode"), h = On(d, "remove"), m = On(d, "nextSibling"), v = On(d, "childNodes"), _ = On(d, "parentNode"), g = On(d, "shadowRoot"), y = On(d, "attributes"), w = s && s.prototype ? On(s.prototype, "nodeType") : null, S = s && s.prototype ? On(s.prototype, "nodeName") : null, C = s && s.prototype ? On(s.prototype, "ownerDocument") : null;
|
|
12769
12769
|
if (typeof i == "function") {
|
|
12770
12770
|
const le = n.createElement("template");
|
|
12771
12771
|
le.content && le.content.ownerDocument && (n = le.content.ownerDocument);
|
|
@@ -12792,7 +12792,7 @@ function fm() {
|
|
|
12792
12792
|
return M || (A = Ple(f, o), M = !0), A;
|
|
12793
12793
|
}, q = n, Q = q.implementation, V = q.createNodeIterator, G = q.createDocumentFragment, ie = q.getElementsByTagName, be = r.importNode;
|
|
12794
12794
|
let he = xf();
|
|
12795
|
-
e.isSupported = typeof um == "function" && typeof
|
|
12795
|
+
e.isSupported = typeof um == "function" && typeof _ == "function" && Q && Q.createHTMLDocument !== void 0;
|
|
12796
12796
|
const je = Sle, Ce = xle, pe = Ale, Z = Ele, j = Tle, ve = $le, Ue = Dle, it = Ole;
|
|
12797
12797
|
let Re = wf, Pe = null;
|
|
12798
12798
|
const Ft = He({}, [..._f, ...Sc, ...xc, ...Ac, ...yf]);
|
|
@@ -12934,7 +12934,7 @@ function fm() {
|
|
|
12934
12934
|
}, st = function(D, z, te) {
|
|
12935
12935
|
return z.namespaceURI === zo && !Ni[te] || z.namespaceURI === Dr && !ln[te] ? !1 : !B[D] && (ec[D] || !Bi[D]);
|
|
12936
12936
|
}, ur = function(D) {
|
|
12937
|
-
let z =
|
|
12937
|
+
let z = _(D);
|
|
12938
12938
|
(!z || !z.tagName) && (z = {
|
|
12939
12939
|
namespaceURI: Mr,
|
|
12940
12940
|
tagName: "template"
|
|
@@ -12946,9 +12946,9 @@ function fm() {
|
|
|
12946
12946
|
element: D
|
|
12947
12947
|
});
|
|
12948
12948
|
try {
|
|
12949
|
-
|
|
12949
|
+
_(D).removeChild(D);
|
|
12950
12950
|
} catch {
|
|
12951
|
-
if (h(D), !
|
|
12951
|
+
if (h(D), !_(D))
|
|
12952
12952
|
throw so("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
12953
12953
|
}
|
|
12954
12954
|
}, Ui = function(D) {
|
|
@@ -12965,7 +12965,7 @@ function fm() {
|
|
|
12965
12965
|
}
|
|
12966
12966
|
});
|
|
12967
12967
|
}
|
|
12968
|
-
const te =
|
|
12968
|
+
const te = y(D);
|
|
12969
12969
|
if (te)
|
|
12970
12970
|
for (let we = te.length - 1; we >= 0; --we) {
|
|
12971
12971
|
const xe = te[we], Ie = xe && xe.name;
|
|
@@ -12999,7 +12999,7 @@ function fm() {
|
|
|
12999
12999
|
} catch {
|
|
13000
13000
|
}
|
|
13001
13001
|
}, na = function(D) {
|
|
13002
|
-
const z =
|
|
13002
|
+
const z = y(D);
|
|
13003
13003
|
if (z)
|
|
13004
13004
|
for (let te = z.length - 1; te >= 0; --te) {
|
|
13005
13005
|
const we = z[te], xe = we && we.name;
|
|
@@ -13103,7 +13103,7 @@ function fm() {
|
|
|
13103
13103
|
// makes the direct read diverge from the cached read; a clean form
|
|
13104
13104
|
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
13105
13105
|
// canonical NamedNodeMap.
|
|
13106
|
-
D.attributes !==
|
|
13106
|
+
D.attributes !== y(D) || typeof D.removeAttribute != "function" || typeof D.setAttribute != "function" || typeof D.namespaceURI != "string" || typeof D.insertBefore != "function" || typeof D.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
|
|
13107
13107
|
// returns the integer 1 for any Element regardless of realm; direct
|
|
13108
13108
|
// read on a clobbered form (e.g. <input name="nodeType">) returns
|
|
13109
13109
|
// the named child element. Cheap addition — nodeType is read from
|
|
@@ -13150,7 +13150,7 @@ function fm() {
|
|
|
13150
13150
|
if (!Ee[z] && i1(z) && ($e.tagNameCheck instanceof RegExp && St($e.tagNameCheck, z) || $e.tagNameCheck instanceof Function && $e.tagNameCheck(z)))
|
|
13151
13151
|
return !1;
|
|
13152
13152
|
if (on && !jt[z]) {
|
|
13153
|
-
const we =
|
|
13153
|
+
const we = _(D), xe = v(D);
|
|
13154
13154
|
if (xe && we) {
|
|
13155
13155
|
const Ie = xe.length;
|
|
13156
13156
|
for (let et = Ie - 1; et >= 0; --et) {
|
|
@@ -13163,7 +13163,7 @@ function fm() {
|
|
|
13163
13163
|
}, n1 = function(D, z, te, we) {
|
|
13164
13164
|
return D.length === 0 ? z : z === te || z === we ? Ut(z) : z;
|
|
13165
13165
|
}, r1 = function(D, z) {
|
|
13166
|
-
if (Kn(he.beforeSanitizeElements, D, null), D !== z &&
|
|
13166
|
+
if (Kn(he.beforeSanitizeElements, D, null), D !== z && _(D) === null)
|
|
13167
13167
|
return Bt && Hi(D), !0;
|
|
13168
13168
|
if (oa(D))
|
|
13169
13169
|
return Mn(D), !0;
|
|
@@ -13171,7 +13171,7 @@ function fm() {
|
|
|
13171
13171
|
if (Pe = n1(he.uponSanitizeElement, Pe, Ft, $n), Kn(he.uponSanitizeElement, D, {
|
|
13172
13172
|
tagName: te,
|
|
13173
13173
|
allowedTags: Pe
|
|
13174
|
-
}), D !== z &&
|
|
13174
|
+
}), D !== z && _(D) === null)
|
|
13175
13175
|
return Bt && Hi(D), !0;
|
|
13176
13176
|
if (I0(D, te))
|
|
13177
13177
|
return Mn(D), !0;
|
|
@@ -13534,14 +13534,14 @@ function ym(t, e, n) {
|
|
|
13534
13534
|
const p = e[d], h = p.type, m = p.target, v = ice(m, t, a, s);
|
|
13535
13535
|
if (!v)
|
|
13536
13536
|
continue;
|
|
13537
|
-
const [
|
|
13537
|
+
const [_, g] = v;
|
|
13538
13538
|
if (h === "characterData")
|
|
13539
13539
|
r && ce(g) && Er(m) && oce(o, m, g) && rce(m, g, t);
|
|
13540
13540
|
else if (h === "childList") {
|
|
13541
13541
|
c = !0;
|
|
13542
|
-
const
|
|
13543
|
-
for (let C = 0; C <
|
|
13544
|
-
const T =
|
|
13542
|
+
const y = p.addedNodes;
|
|
13543
|
+
for (let C = 0; C < y.length; C++) {
|
|
13544
|
+
const T = y[C], E = _g(T), A = T.parentNode;
|
|
13545
13545
|
if (A != null && T !== l && E === null && !Tc(T, A, t)) {
|
|
13546
13546
|
if (Ao) {
|
|
13547
13547
|
const M = (yt(T) ? T.innerText : null) || T.nodeValue;
|
|
@@ -13557,7 +13557,7 @@ function ym(t, e, n) {
|
|
|
13557
13557
|
const E = w[T];
|
|
13558
13558
|
(Tc(E, m, t) || l === E) && (m.appendChild(E), C++);
|
|
13559
13559
|
}
|
|
13560
|
-
S !== C && i.set(
|
|
13560
|
+
S !== C && i.set(_, g);
|
|
13561
13561
|
}
|
|
13562
13562
|
}
|
|
13563
13563
|
}
|
|
@@ -13569,8 +13569,8 @@ function ym(t, e, n) {
|
|
|
13569
13569
|
for (let d = 0; d < f.length; d++) {
|
|
13570
13570
|
const p = f[d], h = p.addedNodes, m = p.target;
|
|
13571
13571
|
for (let v = 0; v < h.length; v++) {
|
|
13572
|
-
const
|
|
13573
|
-
g == null ||
|
|
13572
|
+
const _ = h[v], g = _.parentNode;
|
|
13573
|
+
g == null || _.nodeName !== "BR" || Tc(_, m, t) || g.removeChild(_);
|
|
13574
13574
|
}
|
|
13575
13575
|
}
|
|
13576
13576
|
n.takeRecords();
|
|
@@ -13923,8 +13923,8 @@ function fce(t, e, n) {
|
|
|
13923
13923
|
u.replaceChild(m, h);
|
|
13924
13924
|
} catch (v) {
|
|
13925
13925
|
if (typeof v == "object" && v != null) {
|
|
13926
|
-
const
|
|
13927
|
-
throw new Error(
|
|
13926
|
+
const _ = `${v.toString()} Parent: ${u.tagName}, new child: {tag: ${m.tagName} key: ${d}}, old child: {tag: ${h.tagName}, key: ${f}}.`;
|
|
13927
|
+
throw new Error(_);
|
|
13928
13928
|
}
|
|
13929
13929
|
throw v;
|
|
13930
13930
|
}
|
|
@@ -13942,10 +13942,10 @@ function fce(t, e, n) {
|
|
|
13942
13942
|
su(f, 0, l - 1, p ? null : u), p && (u.textContent = "");
|
|
13943
13943
|
}
|
|
13944
13944
|
} else
|
|
13945
|
-
(function(p, h, m, v,
|
|
13946
|
-
const
|
|
13945
|
+
(function(p, h, m, v, _, g) {
|
|
13946
|
+
const y = v - 1, w = _ - 1;
|
|
13947
13947
|
let S, C, T = g.getFirstChild(), E = 0, A = 0;
|
|
13948
|
-
for (; E <=
|
|
13948
|
+
for (; E <= y && A <= w; ) {
|
|
13949
13949
|
const x = h[E], O = m[A];
|
|
13950
13950
|
if (x === O)
|
|
13951
13951
|
T = Dc(rs(O, g.element)), E++, A++;
|
|
@@ -13964,12 +13964,12 @@ function fce(t, e, n) {
|
|
|
13964
13964
|
const P = Pn.get(O);
|
|
13965
13965
|
P !== null && ce(P) && (Jn === null && (Jn = P.getFormat()), Xn === "" && (Xn = P.getStyle()));
|
|
13966
13966
|
}
|
|
13967
|
-
const M = E >
|
|
13967
|
+
const M = E > y, I = A > w;
|
|
13968
13968
|
if (M && !I) {
|
|
13969
13969
|
const x = m[w + 1], O = x === void 0 ? null : qt.getElementByKey(x);
|
|
13970
13970
|
lu(m, p, A, w, g.withBefore(O));
|
|
13971
13971
|
} else
|
|
13972
|
-
I && !M && su(h, E,
|
|
13972
|
+
I && !M && su(h, E, y, g.element);
|
|
13973
13973
|
})(i, f, d, l, c, s);
|
|
13974
13974
|
}
|
|
13975
13975
|
ql(i) && (Ct += Gr), u.__lexicalTextContent = Ct, Ct = a + Ct;
|
|
@@ -14247,12 +14247,12 @@ za && fu.push(["beforeinput", (t, e) => function(n, r) {
|
|
|
14247
14247
|
}
|
|
14248
14248
|
} else {
|
|
14249
14249
|
Dt(null), n.preventDefault();
|
|
14250
|
-
const h = s.anchor.getNode(), m = h.getTextContent(), v = h.canInsertTextAfter(),
|
|
14251
|
-
let g = Af && p && !
|
|
14250
|
+
const h = s.anchor.getNode(), m = h.getTextContent(), v = h.canInsertTextAfter(), _ = s.anchor.offset === 0 && s.focus.offset === m.length;
|
|
14251
|
+
let g = Af && p && !_ && v;
|
|
14252
14252
|
if (g && s.isCollapsed() && (g = !qe(bu(s.anchor, !0))), !g) {
|
|
14253
14253
|
ge(r, yo, !0);
|
|
14254
|
-
const
|
|
14255
|
-
Af && ne(
|
|
14254
|
+
const y = de();
|
|
14255
|
+
Af && ne(y) && y.isCollapsed() && (po = y, setTimeout(() => po = null));
|
|
14256
14256
|
}
|
|
14257
14257
|
}
|
|
14258
14258
|
return;
|
|
@@ -14354,11 +14354,11 @@ function Zm(t, e, n, r, o) {
|
|
|
14354
14354
|
return !0;
|
|
14355
14355
|
if (!h.isCollapsed())
|
|
14356
14356
|
return !1;
|
|
14357
|
-
const v = h.anchor.offset,
|
|
14358
|
-
return v === 0 ? !m.canInsertTextBefore() || !
|
|
14359
|
-
const w =
|
|
14357
|
+
const v = h.anchor.offset, _ = m.getParentOrThrow(), g = bo(m);
|
|
14358
|
+
return v === 0 ? !m.canInsertTextBefore() || !_.canInsertTextBefore() && !m.isComposing() || g || function(y) {
|
|
14359
|
+
const w = y.getPreviousSibling();
|
|
14360
14360
|
return (ce(w) || K(w) && w.isInline()) && !w.canInsertTextAfter();
|
|
14361
|
-
}(m) : v === m.getTextContentSize() && (!m.canInsertTextAfter() || !
|
|
14361
|
+
}(m) : v === m.getTextContentSize() && (!m.canInsertTextAfter() || !_.canInsertTextAfter() && !m.isComposing() || g);
|
|
14362
14362
|
}(t, a);
|
|
14363
14363
|
}
|
|
14364
14364
|
function Bf(t, e) {
|
|
@@ -14380,28 +14380,28 @@ function Uf(t, e, n) {
|
|
|
14380
14380
|
const l = a.anchor, c = l.getNode();
|
|
14381
14381
|
if (a.isCollapsed()) {
|
|
14382
14382
|
t.type === "Range" && t.anchorNode === t.focusNode && (a.dirty = !0);
|
|
14383
|
-
const u = En(e).event, f = u ? u.timeStamp : performance.now(), [d, p, h, m, v] = Wm,
|
|
14383
|
+
const u = En(e).event, f = u ? u.timeStamp : performance.now(), [d, p, h, m, v] = Wm, _ = ct(), g = e.isComposing() === !1 && _.getTextContent() === "";
|
|
14384
14384
|
if (f < v + 200 && l.offset === h && l.key === m)
|
|
14385
14385
|
Ea(a, d, p);
|
|
14386
14386
|
else if (l.type === "text")
|
|
14387
14387
|
ce(c) || re(141), Km(a, c);
|
|
14388
14388
|
else if (l.type === "element" && !g) {
|
|
14389
14389
|
K(c) || re(259);
|
|
14390
|
-
const
|
|
14391
|
-
|
|
14390
|
+
const y = l.getNode();
|
|
14391
|
+
y.isEmpty() ? function(w, S) {
|
|
14392
14392
|
const C = S.getTextFormat(), T = S.getTextStyle();
|
|
14393
14393
|
Ea(w, C, T);
|
|
14394
|
-
}(a,
|
|
14394
|
+
}(a, y) : Ea(a, 0, "");
|
|
14395
14395
|
}
|
|
14396
14396
|
} else {
|
|
14397
|
-
const u = l.key, f = a.focus.key, d = a.getNodes(), p = d.length, h = a.isBackward(), m = h ? s : o, v = h ? o : s,
|
|
14398
|
-
let
|
|
14397
|
+
const u = l.key, f = a.focus.key, d = a.getNodes(), p = d.length, h = a.isBackward(), m = h ? s : o, v = h ? o : s, _ = h ? f : u, g = h ? u : f;
|
|
14398
|
+
let y = 2047, w = !1;
|
|
14399
14399
|
for (let S = 0; S < p; S++) {
|
|
14400
14400
|
const C = d[S], T = C.getTextContentSize();
|
|
14401
|
-
if (ce(C) && T !== 0 && !(S === 0 && C.__key ===
|
|
14401
|
+
if (ce(C) && T !== 0 && !(S === 0 && C.__key === _ && m === T || S === p - 1 && C.__key === g && v === 0) && (w = !0, y &= C.getFormat(), y === 0))
|
|
14402
14402
|
break;
|
|
14403
14403
|
}
|
|
14404
|
-
a.format = w ?
|
|
14404
|
+
a.format = w ? y : 0;
|
|
14405
14405
|
}
|
|
14406
14406
|
}
|
|
14407
14407
|
ge(e, Dm, void 0);
|
|
@@ -15049,8 +15049,8 @@ class eo extends Fn {
|
|
|
15049
15049
|
if (l === c && u !== f) {
|
|
15050
15050
|
const v = r.firstChild;
|
|
15051
15051
|
v == null && re(48);
|
|
15052
|
-
const
|
|
15053
|
-
return Vf(
|
|
15052
|
+
const _ = document.createElement(f);
|
|
15053
|
+
return Vf(_, this, 0, a, i, o), r.replaceChild(_, v), !1;
|
|
15054
15054
|
}
|
|
15055
15055
|
let d = r;
|
|
15056
15056
|
c !== null && l !== null && (d = r.firstChild, d == null && re(49)), tg(i, d, this);
|
|
@@ -15174,13 +15174,13 @@ class eo extends Fn {
|
|
|
15174
15174
|
const f = l[0], d = r.getParent();
|
|
15175
15175
|
let p;
|
|
15176
15176
|
const h = r.getFormat(), m = r.getStyle(), v = r.__detail;
|
|
15177
|
-
let
|
|
15177
|
+
let _ = !1, g = null, y = null;
|
|
15178
15178
|
const w = de();
|
|
15179
15179
|
if (ne(w)) {
|
|
15180
15180
|
const [A, M] = w.isBackward() ? [w.focus, w.anchor] : [w.anchor, w.focus];
|
|
15181
|
-
A.type === "text" && A.key === i && (g = A), M.type === "text" && M.key === i && (
|
|
15181
|
+
A.type === "text" && A.key === i && (g = A), M.type === "text" && M.key === i && (y = M);
|
|
15182
15182
|
}
|
|
15183
|
-
r.isSegmented() ? (p = ft(f), p.__format = h, p.__style = m, p.__detail = v, p.__state = Of(r, p),
|
|
15183
|
+
r.isSegmented() ? (p = ft(f), p.__format = h, p.__style = m, p.__detail = v, p.__state = Of(r, p), _ = !0) : p = r.setTextContent(f);
|
|
15184
15184
|
const S = [p];
|
|
15185
15185
|
for (let A = 1; A < u; A++) {
|
|
15186
15186
|
const M = ft(l[A]);
|
|
@@ -15188,14 +15188,14 @@ class eo extends Fn {
|
|
|
15188
15188
|
const I = M.__key;
|
|
15189
15189
|
s === i && Dt(I), S.push(M);
|
|
15190
15190
|
}
|
|
15191
|
-
const C = g ? g.offset : null, T =
|
|
15191
|
+
const C = g ? g.offset : null, T = y ? y.offset : null;
|
|
15192
15192
|
let E = 0;
|
|
15193
15193
|
for (const A of S) {
|
|
15194
|
-
if (!g && !
|
|
15194
|
+
if (!g && !y)
|
|
15195
15195
|
break;
|
|
15196
15196
|
const M = E + A.getTextContentSize();
|
|
15197
|
-
if (g !== null && C !== null && C <= M && C >= E && (g.set(A.getKey(), C - E, "text"), C < M && (g = null)),
|
|
15198
|
-
|
|
15197
|
+
if (g !== null && C !== null && C <= M && C >= E && (g.set(A.getKey(), C - E, "text"), C < M && (g = null)), y !== null && T !== null && T <= M && T >= E) {
|
|
15198
|
+
y.set(A.getKey(), T - E, "text");
|
|
15199
15199
|
break;
|
|
15200
15200
|
}
|
|
15201
15201
|
E = M;
|
|
@@ -15206,7 +15206,7 @@ class eo extends Fn {
|
|
|
15206
15206
|
x !== null && tl(x), O !== null && tl(O);
|
|
15207
15207
|
})(this);
|
|
15208
15208
|
const A = d.getWritable(), M = this.getIndexWithinParent();
|
|
15209
|
-
|
|
15209
|
+
_ ? (A.splice(M, 0, S), this.remove()) : A.splice(M, 1, S), ne(w) && Xa(w, d, M, u - 1);
|
|
15210
15210
|
}
|
|
15211
15211
|
return S;
|
|
15212
15212
|
}
|
|
@@ -15634,15 +15634,15 @@ class Ro {
|
|
|
15634
15634
|
insertText(e) {
|
|
15635
15635
|
const n = this.anchor, r = this.focus, o = this.format, i = this.style;
|
|
15636
15636
|
let s = n, a = r;
|
|
15637
|
-
!this.isCollapsed() && r.isBefore(n) && (s = r, a = n), s.type === "element" && function(v,
|
|
15637
|
+
!this.isCollapsed() && r.isBefore(n) && (s = r, a = n), s.type === "element" && function(v, _, g, y) {
|
|
15638
15638
|
const w = v.getNode(), S = w.getChildAtIndex(v.offset), C = ft();
|
|
15639
|
-
if (C.setFormat(g), C.setStyle(
|
|
15639
|
+
if (C.setFormat(g), C.setStyle(y), Zs(S))
|
|
15640
15640
|
S.splice(0, 0, [C]);
|
|
15641
15641
|
else {
|
|
15642
15642
|
const T = vt(w) ? ot().append(C) : C;
|
|
15643
15643
|
S === null ? w.append(T) : S.insertBefore(T);
|
|
15644
15644
|
}
|
|
15645
|
-
v.is(
|
|
15645
|
+
v.is(_) && _.set(C.__key, 0, "text"), v.set(C.__key, 0, "text");
|
|
15646
15646
|
}(s, a, o, i), a.type === "element" && Io(a, wn(kr(a, "next")));
|
|
15647
15647
|
const l = s.offset;
|
|
15648
15648
|
let c = a.offset;
|
|
@@ -15669,36 +15669,36 @@ class Ro {
|
|
|
15669
15669
|
}
|
|
15670
15670
|
if (f === 1) {
|
|
15671
15671
|
if (bo(d)) {
|
|
15672
|
-
const
|
|
15673
|
-
return
|
|
15672
|
+
const y = ft(e);
|
|
15673
|
+
return y.select(), void d.replace(y);
|
|
15674
15674
|
}
|
|
15675
|
-
const v = d.getFormat(),
|
|
15676
|
-
if (l !== c || v === o &&
|
|
15675
|
+
const v = d.getFormat(), _ = d.getStyle();
|
|
15676
|
+
if (l !== c || v === o && _ === i) {
|
|
15677
15677
|
if (Pl(d)) {
|
|
15678
|
-
const
|
|
15679
|
-
return
|
|
15678
|
+
const y = ft(e);
|
|
15679
|
+
return y.setFormat(o), y.setStyle(i), y.select(), void d.replace(y);
|
|
15680
15680
|
}
|
|
15681
15681
|
} else {
|
|
15682
15682
|
if (d.getTextContent() !== "") {
|
|
15683
|
-
const
|
|
15684
|
-
if (
|
|
15685
|
-
d.insertBefore(
|
|
15683
|
+
const y = ft(e);
|
|
15684
|
+
if (y.setFormat(o), y.setStyle(i), y.select(), l === 0)
|
|
15685
|
+
d.insertBefore(y, !1);
|
|
15686
15686
|
else {
|
|
15687
15687
|
const [w] = d.splitText(l);
|
|
15688
|
-
w.insertAfter(
|
|
15688
|
+
w.insertAfter(y, !1);
|
|
15689
15689
|
}
|
|
15690
|
-
return void (
|
|
15690
|
+
return void (y.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= e.length));
|
|
15691
15691
|
}
|
|
15692
15692
|
d.setFormat(o), d.setStyle(i);
|
|
15693
15693
|
}
|
|
15694
15694
|
const g = c - l;
|
|
15695
|
-
d = d.spliceText(l, g, e, !0), d.getTextContent() === "" ? d.remove() : this.anchor.type === "text" && (d.isComposing() ? this.anchor.offset -= e.length : (this.format = v, this.style =
|
|
15695
|
+
d = d.spliceText(l, g, e, !0), d.getTextContent() === "" ? d.remove() : this.anchor.type === "text" && (d.isComposing() ? this.anchor.offset -= e.length : (this.format = v, this.style = _));
|
|
15696
15696
|
} else {
|
|
15697
|
-
const v = /* @__PURE__ */ new Set([...d.getParentKeys(), ...m.getParentKeys()]),
|
|
15698
|
-
let g = K(m) ? m : m.getParentOrThrow(),
|
|
15699
|
-
if (!
|
|
15697
|
+
const v = /* @__PURE__ */ new Set([...d.getParentKeys(), ...m.getParentKeys()]), _ = K(d) ? d : d.getParentOrThrow();
|
|
15698
|
+
let g = K(m) ? m : m.getParentOrThrow(), y = m;
|
|
15699
|
+
if (!_.is(g) && g.isInline())
|
|
15700
15700
|
do
|
|
15701
|
-
|
|
15701
|
+
y = g, g = g.getParentOrThrow();
|
|
15702
15702
|
while (g.isInline());
|
|
15703
15703
|
if (a.type === "text" && (c !== 0 || m.getTextContent() === "") || a.type === "element" && m.getIndexWithinParent() < c)
|
|
15704
15704
|
if (ce(m) && !bo(m) && c !== m.getTextContentSize()) {
|
|
@@ -15713,12 +15713,12 @@ class Ro {
|
|
|
15713
15713
|
}
|
|
15714
15714
|
else
|
|
15715
15715
|
v.add(m.__key);
|
|
15716
|
-
const w = g.getChildren(), S = new Set(u), C =
|
|
15716
|
+
const w = g.getChildren(), S = new Set(u), C = _.is(g), T = _.isInline() && d.getNextSibling() === null ? _ : d;
|
|
15717
15717
|
for (let E = w.length - 1; E >= 0; E--) {
|
|
15718
15718
|
const A = w[E];
|
|
15719
15719
|
if (A.is(d) || K(A) && A.isParentOf(d))
|
|
15720
15720
|
break;
|
|
15721
|
-
A.isAttached() && (!S.has(A) || A.is(
|
|
15721
|
+
A.isAttached() && (!S.has(A) || A.is(y) ? C || T.insertAfter(A, !1) : A.remove());
|
|
15722
15722
|
}
|
|
15723
15723
|
if (!C) {
|
|
15724
15724
|
let E = g, A = null;
|
|
@@ -15769,9 +15769,9 @@ class Ro {
|
|
|
15769
15769
|
const m = p.getFormatFlags(e, n);
|
|
15770
15770
|
i(m);
|
|
15771
15771
|
const v = s - 1;
|
|
15772
|
-
let
|
|
15773
|
-
const g = f.type === "text" ? f.offset :
|
|
15774
|
-
if (p.is(
|
|
15772
|
+
let _ = o[v];
|
|
15773
|
+
const g = f.type === "text" ? f.offset : _.getTextContentSize();
|
|
15774
|
+
if (p.is(_)) {
|
|
15775
15775
|
if (h === g)
|
|
15776
15776
|
return;
|
|
15777
15777
|
if (mr(p) || h === 0 && g === p.getTextContentSize())
|
|
@@ -15783,13 +15783,13 @@ class Ro {
|
|
|
15783
15783
|
return void (this.format = m);
|
|
15784
15784
|
}
|
|
15785
15785
|
h === 0 || mr(p) || ([, p] = p.splitText(h), h = 0), p.setFormat(m);
|
|
15786
|
-
const
|
|
15787
|
-
g > 0 && (g ===
|
|
15786
|
+
const y = _.getFormatFlags(e, m);
|
|
15787
|
+
g > 0 && (g === _.getTextContentSize() || mr(_) || ([_] = _.splitText(g)), _.setFormat(y));
|
|
15788
15788
|
for (let w = d + 1; w < v; w++) {
|
|
15789
|
-
const S = o[w], C = S.getFormatFlags(e,
|
|
15789
|
+
const S = o[w], C = S.getFormatFlags(e, y);
|
|
15790
15790
|
S.setFormat(C);
|
|
15791
15791
|
}
|
|
15792
|
-
u.type === "text" && u.set(p.__key, h, "text"), f.type === "text" && f.set(
|
|
15792
|
+
u.type === "text" && u.set(p.__key, h, "text"), f.type === "text" && f.set(_.__key, g, "text"), this.format = m | y;
|
|
15793
15793
|
}
|
|
15794
15794
|
insertNodes(e) {
|
|
15795
15795
|
if (e.length === 0)
|
|
@@ -15817,10 +15817,10 @@ class Ro {
|
|
|
15817
15817
|
const i = function(h) {
|
|
15818
15818
|
const m = ot();
|
|
15819
15819
|
let v = null;
|
|
15820
|
-
for (let
|
|
15821
|
-
const g = h[
|
|
15822
|
-
if (
|
|
15823
|
-
if (v === null && (v = g.createParentElementNode(), m.append(v),
|
|
15820
|
+
for (let _ = 0; _ < h.length; _++) {
|
|
15821
|
+
const g = h[_], y = zr(g);
|
|
15822
|
+
if (y || qe(g) && g.isInline() || K(g) && g.isInline() || ce(g) || g.isParentRequired()) {
|
|
15823
|
+
if (v === null && (v = g.createParentElementNode(), m.append(v), y))
|
|
15824
15824
|
continue;
|
|
15825
15825
|
v !== null && v.append(g);
|
|
15826
15826
|
} else
|
|
@@ -15832,13 +15832,13 @@ class Ro {
|
|
|
15832
15832
|
var f;
|
|
15833
15833
|
K(f = u) && bn(f) && !f.isEmpty() && K(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (K(r) || re(211, n.constructor.name, n.getType()), r.append(...u.getChildren()), u = a[1]), u && (r === null && re(212, n.constructor.name, n.getType()), function(h, m) {
|
|
15834
15834
|
const v = m.getParentOrThrow().getLastChild();
|
|
15835
|
-
let
|
|
15835
|
+
let _ = m;
|
|
15836
15836
|
const g = [m];
|
|
15837
|
-
for (;
|
|
15838
|
-
|
|
15839
|
-
let
|
|
15837
|
+
for (; _ !== v; )
|
|
15838
|
+
_.getNextSibling() || re(140), _ = _.getNextSibling(), g.push(_);
|
|
15839
|
+
let y = h;
|
|
15840
15840
|
for (const w of g)
|
|
15841
|
-
|
|
15841
|
+
y = y.insertAfter(w);
|
|
15842
15842
|
}(r, u));
|
|
15843
15843
|
const d = Sn(s, bn);
|
|
15844
15844
|
l && K(d) && (l.canMergeWhenEmpty() || bn(c)) && (d.append(...l.getChildren()), l.remove()), K(r) && r.isEmpty() && r.remove(), s.selectEnd();
|
|
@@ -15900,8 +15900,8 @@ class Ro {
|
|
|
15900
15900
|
const p = this.getNodes(), h = [];
|
|
15901
15901
|
let m = !1;
|
|
15902
15902
|
for (let v = 0; v < p.length; v++) {
|
|
15903
|
-
const
|
|
15904
|
-
Cu(
|
|
15903
|
+
const _ = p[v];
|
|
15904
|
+
Cu(_, d) ? h.push(_) : m = !0;
|
|
15905
15905
|
}
|
|
15906
15906
|
if (m && h.length > 0)
|
|
15907
15907
|
if (n) {
|
|
@@ -15912,8 +15912,8 @@ class Ro {
|
|
|
15912
15912
|
K(v) ? v.selectEnd() : v.getParentOrThrow().selectEnd();
|
|
15913
15913
|
}
|
|
15914
15914
|
s.anchorNode === u.startContainer && s.anchorOffset === u.startOffset || function(v) {
|
|
15915
|
-
const
|
|
15916
|
-
g.set(
|
|
15915
|
+
const _ = v.focus, g = v.anchor, y = g.key, w = g.offset, S = g.type;
|
|
15916
|
+
g.set(_.key, _.offset, _.type, !0), _.set(y, w, S, !0);
|
|
15917
15917
|
}(this);
|
|
15918
15918
|
}
|
|
15919
15919
|
}
|
|
@@ -15999,10 +15999,10 @@ class Ro {
|
|
|
15999
15999
|
(function(l, c) {
|
|
16000
16000
|
const u = l.anchor, f = l.focus, d = u.getNode(), p = f.getNode();
|
|
16001
16001
|
if (d === p && u.type === "text" && f.type === "text") {
|
|
16002
|
-
const h = u.offset, m = f.offset, v = h < m,
|
|
16003
|
-
|
|
16002
|
+
const h = u.offset, m = f.offset, v = h < m, _ = v ? h : m, g = v ? m : h, y = g - 1;
|
|
16003
|
+
_ !== y && function(w) {
|
|
16004
16004
|
return !(Cg(w) || Uce(w));
|
|
16005
|
-
}(d.getTextContent().slice(
|
|
16005
|
+
}(d.getTextContent().slice(_, g)) && (c ? f.set(f.key, y, f.type) : u.set(u.key, y, u.type));
|
|
16006
16006
|
}
|
|
16007
16007
|
})(this, e);
|
|
16008
16008
|
}
|
|
@@ -16106,9 +16106,9 @@ function Jf(t, e, n, r) {
|
|
|
16106
16106
|
const p = r.getElementByKey(d.getKey());
|
|
16107
16107
|
p === null && re(214), [d, i] = d.getDOMSlot(p).resolveChildIndex(d, p, t, e), K(d) || re(215), s && i >= d.getChildrenSize() && (i = Math.max(0, d.getChildrenSize() - 1));
|
|
16108
16108
|
let m = d.getChildAtIndex(i);
|
|
16109
|
-
if (K(m) && function(v,
|
|
16110
|
-
const
|
|
16111
|
-
return g === null ||
|
|
16109
|
+
if (K(m) && function(v, _, g) {
|
|
16110
|
+
const y = v.getParent();
|
|
16111
|
+
return g === null || y === null || !y.canBeEmpty() || y !== g.getNode();
|
|
16112
16112
|
}(m, 0, n)) {
|
|
16113
16113
|
const v = s ? m.getLastDescendant() : m.getFirstDescendant();
|
|
16114
16114
|
v === null ? d = m : (m = v, d = K(m) ? m : m.getParentOrThrow()), i = 0;
|
|
@@ -16281,8 +16281,8 @@ function Hce(t, e, n, r, o, i, s) {
|
|
|
16281
16281
|
return;
|
|
16282
16282
|
if (!ne(e))
|
|
16283
16283
|
return void (t !== null && Ks(n, a, l) && r.removeAllRanges());
|
|
16284
|
-
const d = e.anchor, p = e.focus, h = d.key, m = p.key, v = Do(n, h),
|
|
16285
|
-
let T = v, E =
|
|
16284
|
+
const d = e.anchor, p = e.focus, h = d.key, m = p.key, v = Do(n, h), _ = Do(n, m), g = d.offset, y = p.offset, w = e.format, S = e.style, C = e.isCollapsed();
|
|
16285
|
+
let T = v, E = _, A = !1;
|
|
16286
16286
|
if (d.type === "text") {
|
|
16287
16287
|
T = yi(v);
|
|
16288
16288
|
const U = d.getNode();
|
|
@@ -16290,8 +16290,8 @@ function Hce(t, e, n, r, o, i, s) {
|
|
|
16290
16290
|
} else
|
|
16291
16291
|
ne(t) && t.anchor.type === "text" && (A = !0);
|
|
16292
16292
|
var M, I, x, O, P;
|
|
16293
|
-
if (p.type === "text" && (E = yi(
|
|
16294
|
-
if (sg(r, T, g, E,
|
|
16293
|
+
if (p.type === "text" && (E = yi(_)), T !== null && E !== null && (C && (t === null || A || ne(t) && (t.format !== w || t.style !== S)) && (M = w, I = S, x = g, O = h, P = performance.now(), Wm = [M, I, x, O, P]), c !== g || u !== y || a !== T || l !== E || r.type === "Range" && C || (f !== null && i.contains(f) || o.has(Oce) || i.focus({ preventScroll: !0 }), d.type === "element"))) {
|
|
16294
|
+
if (sg(r, T, g, E, y), !o.has(Dce) && e.isCollapsed() && i !== null && i === document.activeElement) {
|
|
16295
16295
|
const U = ne(e) && e.anchor.type === "element" ? T.childNodes[g] || null : r.rangeCount > 0 ? r.getRangeAt(0) : null;
|
|
16296
16296
|
if (U !== null) {
|
|
16297
16297
|
let q;
|
|
@@ -16508,7 +16508,7 @@ function vr(t, e) {
|
|
|
16508
16508
|
}
|
|
16509
16509
|
}
|
|
16510
16510
|
n._readOnly || (n._readOnly = !0);
|
|
16511
|
-
const m = t._dirtyLeaves, v = t._dirtyElements,
|
|
16511
|
+
const m = t._dirtyLeaves, v = t._dirtyElements, _ = t._normalizedNodes, g = t._updateTags, y = t._deferred;
|
|
16512
16512
|
l && (t._dirtyType = 0, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements = /* @__PURE__ */ new Map(), t._normalizedNodes = /* @__PURE__ */ new Set(), t._updateTags = /* @__PURE__ */ new Set()), function(C, T) {
|
|
16513
16513
|
const E = C._decorators;
|
|
16514
16514
|
let A = C._pendingDecorators || E;
|
|
@@ -16576,7 +16576,7 @@ function vr(t, e) {
|
|
|
16576
16576
|
S !== null && (t._decorators = S, t._pendingDecorators = null, ds("decorator", t, !0, S)), function(C, T, E) {
|
|
16577
16577
|
const A = up(T), M = up(E);
|
|
16578
16578
|
A !== M && ds("textcontent", C, !0, M);
|
|
16579
|
-
}(t, e || i, n), ds("update", t, !0, { dirtyElements: v, dirtyLeaves: m, editorState: n, mutatedNodes: h, normalizedNodes:
|
|
16579
|
+
}(t, e || i, n), ds("update", t, !0, { dirtyElements: v, dirtyLeaves: m, editorState: n, mutatedNodes: h, normalizedNodes: _, prevEditorState: e || i, tags: g }), function(C, T) {
|
|
16580
16580
|
if (C._deferred = [], T.length !== 0) {
|
|
16581
16581
|
const E = C._updating;
|
|
16582
16582
|
C._updating = !0;
|
|
@@ -16587,7 +16587,7 @@ function vr(t, e) {
|
|
|
16587
16587
|
C._updating = E;
|
|
16588
16588
|
}
|
|
16589
16589
|
}
|
|
16590
|
-
}(t,
|
|
16590
|
+
}(t, y), function(C) {
|
|
16591
16591
|
const T = C._updates;
|
|
16592
16592
|
if (T.length !== 0) {
|
|
16593
16593
|
const E = T.shift();
|
|
@@ -16634,13 +16634,13 @@ function Bl(t, e, n) {
|
|
|
16634
16634
|
const h = t._headless || t.getRootElement() === null;
|
|
16635
16635
|
_d(null);
|
|
16636
16636
|
try {
|
|
16637
|
-
c && (h ? a._selection !== null && (l._selection = a._selection.clone()) : l._selection = function(g,
|
|
16637
|
+
c && (h ? a._selection !== null && (l._selection = a._selection.clone()) : l._selection = function(g, y) {
|
|
16638
16638
|
const w = g.getEditorState()._selection, S = Un(En(g));
|
|
16639
|
-
return ne(w) || w == null ? hd(w, S, g,
|
|
16639
|
+
return ne(w) || w == null ? hd(w, S, g, y) : w.clone();
|
|
16640
16640
|
}(t, n && n.event || null));
|
|
16641
16641
|
const v = t._compositionKey;
|
|
16642
|
-
e(), i = sp(t, i), function(g,
|
|
16643
|
-
const w =
|
|
16642
|
+
e(), i = sp(t, i), function(g, y) {
|
|
16643
|
+
const w = y.getEditorState()._selection, S = g._selection;
|
|
16644
16644
|
if (ne(S)) {
|
|
16645
16645
|
const C = S.anchor, T = S.focus;
|
|
16646
16646
|
let E;
|
|
@@ -16649,40 +16649,40 @@ function Bl(t, e, n) {
|
|
|
16649
16649
|
E !== A && A.selectionTransform(w, S);
|
|
16650
16650
|
}
|
|
16651
16651
|
}
|
|
16652
|
-
}(l, t), t._dirtyType !== 0 && (i ? function(g,
|
|
16653
|
-
const w =
|
|
16652
|
+
}(l, t), t._dirtyType !== 0 && (i ? function(g, y) {
|
|
16653
|
+
const w = y._dirtyLeaves, S = g._nodeMap;
|
|
16654
16654
|
for (const C of w) {
|
|
16655
16655
|
const T = S.get(C);
|
|
16656
16656
|
ce(T) && T.isAttached() && T.isSimpleText() && !T.isUnmergeable() && Nf(T);
|
|
16657
16657
|
}
|
|
16658
|
-
}(l, t) : function(g,
|
|
16659
|
-
const w =
|
|
16658
|
+
}(l, t) : function(g, y) {
|
|
16659
|
+
const w = y._dirtyLeaves, S = y._dirtyElements, C = g._nodeMap, T = Br(), E = /* @__PURE__ */ new Map();
|
|
16660
16660
|
let A = w, M = A.size, I = S, x = I.size;
|
|
16661
16661
|
for (; M > 0 || x > 0; ) {
|
|
16662
16662
|
if (M > 0) {
|
|
16663
|
-
|
|
16663
|
+
y._dirtyLeaves = /* @__PURE__ */ new Set();
|
|
16664
16664
|
for (const O of A) {
|
|
16665
16665
|
const P = C.get(O);
|
|
16666
|
-
ce(P) && P.isAttached() && P.isSimpleText() && !P.isUnmergeable() && Nf(P), P !== void 0 && op(P, T) && rp(
|
|
16666
|
+
ce(P) && P.isAttached() && P.isSimpleText() && !P.isUnmergeable() && Nf(P), P !== void 0 && op(P, T) && rp(y, P, E), w.add(O);
|
|
16667
16667
|
}
|
|
16668
|
-
if (A =
|
|
16668
|
+
if (A = y._dirtyLeaves, M = A.size, M > 0) {
|
|
16669
16669
|
Ta++;
|
|
16670
16670
|
continue;
|
|
16671
16671
|
}
|
|
16672
16672
|
}
|
|
16673
|
-
|
|
16673
|
+
y._dirtyLeaves = /* @__PURE__ */ new Set(), y._dirtyElements = /* @__PURE__ */ new Map(), I.delete("root") && I.set("root", !0);
|
|
16674
16674
|
for (const O of I) {
|
|
16675
16675
|
const P = O[0], U = O[1];
|
|
16676
16676
|
if (S.set(P, U), !U)
|
|
16677
16677
|
continue;
|
|
16678
16678
|
const q = C.get(P);
|
|
16679
|
-
q !== void 0 && op(q, T) && rp(
|
|
16679
|
+
q !== void 0 && op(q, T) && rp(y, q, E);
|
|
16680
16680
|
}
|
|
16681
|
-
A =
|
|
16681
|
+
A = y._dirtyLeaves, M = A.size, I = y._dirtyElements, x = I.size, Ta++;
|
|
16682
16682
|
}
|
|
16683
|
-
|
|
16684
|
-
}(l, t), sp(t), function(g,
|
|
16685
|
-
const C = g._nodeMap, T =
|
|
16683
|
+
y._dirtyLeaves = w, y._dirtyElements = S;
|
|
16684
|
+
}(l, t), sp(t), function(g, y, w, S) {
|
|
16685
|
+
const C = g._nodeMap, T = y._nodeMap, E = [];
|
|
16686
16686
|
for (const [A] of S) {
|
|
16687
16687
|
const M = T.get(A);
|
|
16688
16688
|
M !== void 0 && (M.isAttached() || (K(M) && _m(M, A, C, T, E, S), C.has(A) || S.delete(A), E.push(A)));
|
|
@@ -16694,21 +16694,21 @@ function Bl(t, e, n) {
|
|
|
16694
16694
|
M === void 0 || M.isAttached() || (C.has(A) || w.delete(A), T.delete(A));
|
|
16695
16695
|
}
|
|
16696
16696
|
}(a, l, t._dirtyLeaves, t._dirtyElements)), v !== t._compositionKey && (l._flushSync = !0);
|
|
16697
|
-
const
|
|
16698
|
-
if (ne(
|
|
16699
|
-
const g = l._nodeMap,
|
|
16700
|
-
g.get(
|
|
16697
|
+
const _ = l._selection;
|
|
16698
|
+
if (ne(_)) {
|
|
16699
|
+
const g = l._nodeMap, y = _.anchor.key, w = _.focus.key;
|
|
16700
|
+
g.get(y) !== void 0 && g.get(w) !== void 0 || re(19);
|
|
16701
16701
|
} else
|
|
16702
|
-
un(
|
|
16702
|
+
un(_) && _._nodes.size === 0 && (l._selection = null);
|
|
16703
16703
|
} catch (v) {
|
|
16704
16704
|
return v instanceof Error && t._onError(v), t._pendingEditorState = a, t._dirtyType = 2, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements.clear(), void vr(t);
|
|
16705
16705
|
} finally {
|
|
16706
16706
|
Tt = u, en = f, $t = d, t._updating = p, Ta = 0;
|
|
16707
16707
|
}
|
|
16708
|
-
t._dirtyType !== 0 || t._deferred.length > 0 || function(v,
|
|
16709
|
-
const g =
|
|
16710
|
-
if (
|
|
16711
|
-
if (
|
|
16708
|
+
t._dirtyType !== 0 || t._deferred.length > 0 || function(v, _) {
|
|
16709
|
+
const g = _.getEditorState()._selection, y = v._selection;
|
|
16710
|
+
if (y !== null) {
|
|
16711
|
+
if (y.dirty || !y.is(g))
|
|
16712
16712
|
return !0;
|
|
16713
16713
|
} else if (g !== null)
|
|
16714
16714
|
return !0;
|
|
@@ -17067,8 +17067,8 @@ class mn extends Fn {
|
|
|
17067
17067
|
let h = f === null ? this.getFirstChild() : f.getNextSibling();
|
|
17068
17068
|
for (let m = 0; m < r; m++) {
|
|
17069
17069
|
h === null && re(100);
|
|
17070
|
-
const v = h.getNextSibling(),
|
|
17071
|
-
Co(h.getWritable()), c.push(
|
|
17070
|
+
const v = h.getNextSibling(), _ = h.__key;
|
|
17071
|
+
Co(h.getWritable()), c.push(_), h = v;
|
|
17072
17072
|
}
|
|
17073
17073
|
}
|
|
17074
17074
|
let p = f;
|
|
@@ -17080,8 +17080,8 @@ class mn extends Fn {
|
|
|
17080
17080
|
if (p === null)
|
|
17081
17081
|
s.__first = v, m.__prev = null;
|
|
17082
17082
|
else {
|
|
17083
|
-
const
|
|
17084
|
-
|
|
17083
|
+
const _ = p.getWritable();
|
|
17084
|
+
_.__next = v, m.__prev = _.__key;
|
|
17085
17085
|
}
|
|
17086
17086
|
h.__key === a && re(76), m.__parent = a, l.push(v), p = h;
|
|
17087
17087
|
}
|
|
@@ -17098,8 +17098,8 @@ class mn extends Fn {
|
|
|
17098
17098
|
if (s.__size = d, c.length) {
|
|
17099
17099
|
const h = de();
|
|
17100
17100
|
if (ne(h)) {
|
|
17101
|
-
const m = new Set(c), v = new Set(l), { anchor:
|
|
17102
|
-
lp(
|
|
17101
|
+
const m = new Set(c), v = new Set(l), { anchor: _, focus: g } = h;
|
|
17102
|
+
lp(_, m, v) && Qa(_, _.getNode(), this, f, u), lp(g, m, v) && Qa(g, g.getNode(), this, f, u), d !== 0 || this.canBeEmpty() || Gt(this) || this.remove();
|
|
17103
17103
|
}
|
|
17104
17104
|
}
|
|
17105
17105
|
return s;
|
|
@@ -17397,21 +17397,21 @@ function Gce(t) {
|
|
|
17397
17397
|
else {
|
|
17398
17398
|
p = /* @__PURE__ */ new Map();
|
|
17399
17399
|
for (let m = 0; m < c.length; m++) {
|
|
17400
|
-
let v = c[m],
|
|
17400
|
+
let v = c[m], _ = null, g = null;
|
|
17401
17401
|
if (typeof v != "function") {
|
|
17402
17402
|
const S = v;
|
|
17403
|
-
v = S.replace,
|
|
17403
|
+
v = S.replace, _ = S.with, g = S.withKlass || null;
|
|
17404
17404
|
}
|
|
17405
17405
|
jl(v);
|
|
17406
|
-
const
|
|
17407
|
-
p.set(
|
|
17406
|
+
const y = v.getType(), w = Kce(v);
|
|
17407
|
+
p.set(y, { exportDOM: f && f.export ? f.export.get(v) : void 0, klass: v, replace: _, replaceWithKlass: g, sharedNodeState: lce(c[m]), transforms: w });
|
|
17408
17408
|
}
|
|
17409
17409
|
}
|
|
17410
17410
|
const h = new $o(s, o, p, { disableEvents: i, namespace: a, theme: r }, u || console.error, function(m, v) {
|
|
17411
|
-
const
|
|
17411
|
+
const _ = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Set(), y = (w) => {
|
|
17412
17412
|
Object.keys(w).forEach((S) => {
|
|
17413
|
-
let C =
|
|
17414
|
-
C === void 0 && (C = [],
|
|
17413
|
+
let C = _.get(S);
|
|
17414
|
+
C === void 0 && (C = [], _.set(S, C)), C.push(w[S]);
|
|
17415
17415
|
});
|
|
17416
17416
|
};
|
|
17417
17417
|
return m.forEach((w) => {
|
|
@@ -17420,8 +17420,8 @@ function Gce(t) {
|
|
|
17420
17420
|
return;
|
|
17421
17421
|
g.add(S);
|
|
17422
17422
|
const C = S.call(w.klass);
|
|
17423
|
-
C !== null &&
|
|
17424
|
-
}), v &&
|
|
17423
|
+
C !== null && y(C);
|
|
17424
|
+
}), v && y(v), _;
|
|
17425
17425
|
}(p, f ? f.import : void 0), d, t);
|
|
17426
17426
|
return l !== void 0 && (h._pendingEditorState = l, h._dirtyType = 2), h;
|
|
17427
17427
|
}
|
|
@@ -17594,26 +17594,26 @@ class $o {
|
|
|
17594
17594
|
if (zf(v))
|
|
17595
17595
|
return;
|
|
17596
17596
|
Hf(v);
|
|
17597
|
-
const
|
|
17597
|
+
const _ = l.isEditable();
|
|
17598
17598
|
switch (p) {
|
|
17599
17599
|
case "cut":
|
|
17600
|
-
return
|
|
17600
|
+
return _ && ge(l, fd, v);
|
|
17601
17601
|
case "copy":
|
|
17602
17602
|
return ge(l, Nl, v);
|
|
17603
17603
|
case "paste":
|
|
17604
|
-
return
|
|
17604
|
+
return _ && ge(l, cd, v);
|
|
17605
17605
|
case "dragstart":
|
|
17606
|
-
return
|
|
17606
|
+
return _ && ge(l, zm, v);
|
|
17607
17607
|
case "dragover":
|
|
17608
|
-
return
|
|
17608
|
+
return _ && ge(l, qm, v);
|
|
17609
17609
|
case "dragend":
|
|
17610
|
-
return
|
|
17610
|
+
return _ && ge(l, Cce, v);
|
|
17611
17611
|
case "focus":
|
|
17612
|
-
return
|
|
17612
|
+
return _ && ge(l, Sce, v);
|
|
17613
17613
|
case "blur":
|
|
17614
|
-
return
|
|
17614
|
+
return _ && ge(l, xce, v);
|
|
17615
17615
|
case "drop":
|
|
17616
|
-
return
|
|
17616
|
+
return _ && ge(l, Hm, v);
|
|
17617
17617
|
}
|
|
17618
17618
|
};
|
|
17619
17619
|
a.addEventListener(p, m), f.push(() => {
|
|
@@ -18665,18 +18665,18 @@ function yue(t, e = "removeEmptySlices") {
|
|
|
18665
18665
|
for (const h of i.getTextSlices()) {
|
|
18666
18666
|
if (!h)
|
|
18667
18667
|
continue;
|
|
18668
|
-
const { origin: m } = h.caret, v = m.getTextContentSize(),
|
|
18668
|
+
const { origin: m } = h.caret, v = m.getTextContentSize(), _ = Ld(Ot(m, r)), g = m.getMode();
|
|
18669
18669
|
if (Math.abs(h.distance) === v && o === "removeEmptySlices" || g === "token" && h.distance !== 0)
|
|
18670
|
-
|
|
18670
|
+
_.remove();
|
|
18671
18671
|
else if (h.distance !== 0) {
|
|
18672
18672
|
o = "removeEmptySlices";
|
|
18673
|
-
let
|
|
18673
|
+
let y = h.removeTextSlice();
|
|
18674
18674
|
const w = h.caret.origin;
|
|
18675
18675
|
if (g === "segmented") {
|
|
18676
|
-
const S =
|
|
18677
|
-
|
|
18676
|
+
const S = y.origin, C = ft(S.getTextContent()).setStyle(S.getStyle()).setFormat(S.getFormat());
|
|
18677
|
+
_.replaceOrInsert(C), y = Lo(C, r, y.offset);
|
|
18678
18678
|
}
|
|
18679
|
-
w.is(s[0].origin) && (s[0] =
|
|
18679
|
+
w.is(s[0].origin) && (s[0] = y), w.is(a[0].origin) && (a[0] = y.getFlipped());
|
|
18680
18680
|
}
|
|
18681
18681
|
}
|
|
18682
18682
|
let u, f;
|
|
@@ -18693,16 +18693,16 @@ function yue(t, e = "removeEmptySlices") {
|
|
|
18693
18693
|
const d = function(h, m, v) {
|
|
18694
18694
|
if (!h || !m)
|
|
18695
18695
|
return null;
|
|
18696
|
-
const
|
|
18697
|
-
if (!
|
|
18696
|
+
const _ = h.getParentAtCaret(), g = m.getParentAtCaret();
|
|
18697
|
+
if (!_ || !g)
|
|
18698
18698
|
return null;
|
|
18699
|
-
const
|
|
18700
|
-
|
|
18699
|
+
const y = _.getParents().reverse();
|
|
18700
|
+
y.push(_);
|
|
18701
18701
|
const w = g.getParents().reverse();
|
|
18702
18702
|
w.push(g);
|
|
18703
|
-
const S = Math.min(
|
|
18703
|
+
const S = Math.min(y.length, w.length);
|
|
18704
18704
|
let C;
|
|
18705
|
-
for (C = 0; C < S &&
|
|
18705
|
+
for (C = 0; C < S && y[C] === w[C]; C++)
|
|
18706
18706
|
;
|
|
18707
18707
|
const T = (M, I) => {
|
|
18708
18708
|
let x;
|
|
@@ -18713,7 +18713,7 @@ function yue(t, e = "removeEmptySlices") {
|
|
|
18713
18713
|
!x && I(P) && (x = P);
|
|
18714
18714
|
}
|
|
18715
18715
|
return x;
|
|
18716
|
-
}, E = T(
|
|
18716
|
+
}, E = T(y, bn), A = E && T(w, (M) => v.has(M.getKey()) && bn(M));
|
|
18717
18717
|
return E && A ? [E, A] : null;
|
|
18718
18718
|
}(u, f, l);
|
|
18719
18719
|
if (d) {
|
|
@@ -18797,9 +18797,9 @@ function Pg(t, e, n = "self") {
|
|
|
18797
18797
|
const [o, i] = r, s = t.isBackward(), a = o.getNode(), l = i.getNode(), c = e.is(a), u = e.is(l);
|
|
18798
18798
|
if (c || u) {
|
|
18799
18799
|
const [f, d] = vu(t), p = a.is(l), h = e.is(s ? l : a), m = e.is(s ? a : l);
|
|
18800
|
-
let v,
|
|
18801
|
-
p ? (
|
|
18802
|
-
const g = e.__text.slice(
|
|
18800
|
+
let v, _ = 0;
|
|
18801
|
+
p ? (_ = f > d ? d : f, v = f > d ? f : d) : h ? (_ = s ? d : f, v = void 0) : m && (_ = 0, v = s ? f : d);
|
|
18802
|
+
const g = e.__text.slice(_, v);
|
|
18803
18803
|
g !== e.__text && (n === "clone" && (e = aue(e)), e.__text = g);
|
|
18804
18804
|
}
|
|
18805
18805
|
}
|
|
@@ -19209,8 +19209,8 @@ let no = class extends mn {
|
|
|
19209
19209
|
const u = [], f = [], d = l.list, p = d ? d.listitem : void 0;
|
|
19210
19210
|
let h;
|
|
19211
19211
|
if (d && d.nested && (h = d.nested.listitem), p !== void 0 && u.push(...rl(p)), d) {
|
|
19212
|
-
const m = c.getParent(), v = De(m) && m.getListType() === "check",
|
|
19213
|
-
v && !
|
|
19212
|
+
const m = c.getParent(), v = De(m) && m.getListType() === "check", _ = c.getChecked();
|
|
19213
|
+
v && !_ || f.push(d.listitemUnchecked), v && _ || f.push(d.listitemChecked), v && u.push(_ ? d.listitemChecked : d.listitemUnchecked);
|
|
19214
19214
|
}
|
|
19215
19215
|
if (h !== void 0) {
|
|
19216
19216
|
const m = rl(h);
|
|
@@ -19650,11 +19650,11 @@ function Kg(t, e, n, r, o = /* @__PURE__ */ new Map(), i) {
|
|
|
19650
19650
|
return s;
|
|
19651
19651
|
let a = null;
|
|
19652
19652
|
const l = function(h, m) {
|
|
19653
|
-
const { nodeName: v } = h,
|
|
19653
|
+
const { nodeName: v } = h, _ = m._htmlConversions.get(v.toLowerCase());
|
|
19654
19654
|
let g = null;
|
|
19655
|
-
if (
|
|
19656
|
-
for (const
|
|
19657
|
-
const w =
|
|
19655
|
+
if (_ !== void 0)
|
|
19656
|
+
for (const y of _) {
|
|
19657
|
+
const w = y(h);
|
|
19658
19658
|
w !== null && (g === null || (g.priority || 0) <= (w.priority || 0)) && (g = w);
|
|
19659
19659
|
}
|
|
19660
19660
|
return g !== null ? g.conversion : null;
|
|
@@ -19897,11 +19897,11 @@ function Yue(t) {
|
|
|
19897
19897
|
const h = de();
|
|
19898
19898
|
if (ne(h)) {
|
|
19899
19899
|
const m = h.anchor;
|
|
19900
|
-
let v = m.getNode(),
|
|
19901
|
-
if (ce(v) && c >= 0 && u >= 0 && (
|
|
19902
|
-
|
|
19903
|
-
const
|
|
19904
|
-
|
|
19900
|
+
let v = m.getNode(), _ = 0, g = 0;
|
|
19901
|
+
if (ce(v) && c >= 0 && u >= 0 && (_ = c, g = c + u, h.setTextNodeRange(v, _, v, g)), _ === g && f === "" || (h.insertRawText(f), v = m.getNode()), ce(v)) {
|
|
19902
|
+
_ = d, g = d + p;
|
|
19903
|
+
const y = v.getTextContentSize();
|
|
19904
|
+
_ = _ > y ? y : _, g = g > y ? y : g, h.setTextNodeRange(v, _, v, g);
|
|
19905
19905
|
}
|
|
19906
19906
|
r.stopImmediatePropagation();
|
|
19907
19907
|
}
|
|
@@ -20375,8 +20375,8 @@ var ide = { exports: {} };
|
|
|
20375
20375
|
* @memberof Prism
|
|
20376
20376
|
*/
|
|
20377
20377
|
util: {
|
|
20378
|
-
encode: function g(
|
|
20379
|
-
return
|
|
20378
|
+
encode: function g(y) {
|
|
20379
|
+
return y instanceof l ? new l(y.type, g(y.content), y.alias) : Array.isArray(y) ? y.map(g) : y.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
20380
20380
|
},
|
|
20381
20381
|
/**
|
|
20382
20382
|
* Returns the name of the type of the given value.
|
|
@@ -20416,30 +20416,30 @@ var ide = { exports: {} };
|
|
|
20416
20416
|
* @returns {T}
|
|
20417
20417
|
* @template T
|
|
20418
20418
|
*/
|
|
20419
|
-
clone: function g(
|
|
20419
|
+
clone: function g(y, w) {
|
|
20420
20420
|
w = w || {};
|
|
20421
20421
|
var S, C;
|
|
20422
|
-
switch (a.util.type(
|
|
20422
|
+
switch (a.util.type(y)) {
|
|
20423
20423
|
case "Object":
|
|
20424
|
-
if (C = a.util.objId(
|
|
20424
|
+
if (C = a.util.objId(y), w[C])
|
|
20425
20425
|
return w[C];
|
|
20426
20426
|
S = /** @type {Record<string, any>} */
|
|
20427
20427
|
{}, w[C] = S;
|
|
20428
|
-
for (var T in
|
|
20429
|
-
|
|
20428
|
+
for (var T in y)
|
|
20429
|
+
y.hasOwnProperty(T) && (S[T] = g(y[T], w));
|
|
20430
20430
|
return (
|
|
20431
20431
|
/** @type {any} */
|
|
20432
20432
|
S
|
|
20433
20433
|
);
|
|
20434
20434
|
case "Array":
|
|
20435
|
-
return C = a.util.objId(
|
|
20435
|
+
return C = a.util.objId(y), w[C] ? w[C] : (S = [], w[C] = S, /** @type {Array} */
|
|
20436
20436
|
/** @type {any} */
|
|
20437
|
-
|
|
20437
|
+
y.forEach(function(E, A) {
|
|
20438
20438
|
S[A] = g(E, w);
|
|
20439
20439
|
}), /** @type {any} */
|
|
20440
20440
|
S);
|
|
20441
20441
|
default:
|
|
20442
|
-
return
|
|
20442
|
+
return y;
|
|
20443
20443
|
}
|
|
20444
20444
|
},
|
|
20445
20445
|
/**
|
|
@@ -20452,9 +20452,9 @@ var ide = { exports: {} };
|
|
|
20452
20452
|
*/
|
|
20453
20453
|
getLanguage: function(g) {
|
|
20454
20454
|
for (; g; ) {
|
|
20455
|
-
var
|
|
20456
|
-
if (
|
|
20457
|
-
return
|
|
20455
|
+
var y = o.exec(g.className);
|
|
20456
|
+
if (y)
|
|
20457
|
+
return y[1].toLowerCase();
|
|
20458
20458
|
g = g.parentElement;
|
|
20459
20459
|
}
|
|
20460
20460
|
return "none";
|
|
@@ -20466,8 +20466,8 @@ var ide = { exports: {} };
|
|
|
20466
20466
|
* @param {string} language
|
|
20467
20467
|
* @returns {void}
|
|
20468
20468
|
*/
|
|
20469
|
-
setLanguage: function(g,
|
|
20470
|
-
g.className = g.className.replace(RegExp(o, "gi"), ""), g.classList.add("language-" +
|
|
20469
|
+
setLanguage: function(g, y) {
|
|
20470
|
+
g.className = g.className.replace(RegExp(o, "gi"), ""), g.classList.add("language-" + y);
|
|
20471
20471
|
},
|
|
20472
20472
|
/**
|
|
20473
20473
|
* Returns the script element that is currently executing.
|
|
@@ -20489,10 +20489,10 @@ var ide = { exports: {} };
|
|
|
20489
20489
|
} catch (S) {
|
|
20490
20490
|
var g = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack) || [])[1];
|
|
20491
20491
|
if (g) {
|
|
20492
|
-
var
|
|
20493
|
-
for (var w in
|
|
20494
|
-
if (
|
|
20495
|
-
return
|
|
20492
|
+
var y = document.getElementsByTagName("script");
|
|
20493
|
+
for (var w in y)
|
|
20494
|
+
if (y[w].src == g)
|
|
20495
|
+
return y[w];
|
|
20496
20496
|
}
|
|
20497
20497
|
return null;
|
|
20498
20498
|
}
|
|
@@ -20516,10 +20516,10 @@ var ide = { exports: {} };
|
|
|
20516
20516
|
* @param {boolean} [defaultActivation=false]
|
|
20517
20517
|
* @returns {boolean}
|
|
20518
20518
|
*/
|
|
20519
|
-
isActive: function(g,
|
|
20520
|
-
for (var S = "no-" +
|
|
20519
|
+
isActive: function(g, y, w) {
|
|
20520
|
+
for (var S = "no-" + y; g; ) {
|
|
20521
20521
|
var C = g.classList;
|
|
20522
|
-
if (C.contains(
|
|
20522
|
+
if (C.contains(y))
|
|
20523
20523
|
return !0;
|
|
20524
20524
|
if (C.contains(S))
|
|
20525
20525
|
return !1;
|
|
@@ -20571,10 +20571,10 @@ var ide = { exports: {} };
|
|
|
20571
20571
|
* 'color': /\b(?:red|green|blue)\b/
|
|
20572
20572
|
* });
|
|
20573
20573
|
*/
|
|
20574
|
-
extend: function(g,
|
|
20574
|
+
extend: function(g, y) {
|
|
20575
20575
|
var w = a.util.clone(a.languages[g]);
|
|
20576
|
-
for (var S in
|
|
20577
|
-
w[S] =
|
|
20576
|
+
for (var S in y)
|
|
20577
|
+
w[S] = y[S];
|
|
20578
20578
|
return w;
|
|
20579
20579
|
},
|
|
20580
20580
|
/**
|
|
@@ -20652,13 +20652,13 @@ var ide = { exports: {} };
|
|
|
20652
20652
|
* @returns {Grammar} The new grammar object.
|
|
20653
20653
|
* @public
|
|
20654
20654
|
*/
|
|
20655
|
-
insertBefore: function(g,
|
|
20655
|
+
insertBefore: function(g, y, w, S) {
|
|
20656
20656
|
S = S || /** @type {any} */
|
|
20657
20657
|
a.languages;
|
|
20658
20658
|
var C = S[g], T = {};
|
|
20659
20659
|
for (var E in C)
|
|
20660
20660
|
if (C.hasOwnProperty(E)) {
|
|
20661
|
-
if (E ==
|
|
20661
|
+
if (E == y)
|
|
20662
20662
|
for (var A in w)
|
|
20663
20663
|
w.hasOwnProperty(A) && (T[A] = w[A]);
|
|
20664
20664
|
w.hasOwnProperty(E) || (T[E] = C[E]);
|
|
@@ -20669,13 +20669,13 @@ var ide = { exports: {} };
|
|
|
20669
20669
|
}), T;
|
|
20670
20670
|
},
|
|
20671
20671
|
// Traverse a language definition with Depth First Search
|
|
20672
|
-
DFS: function g(
|
|
20672
|
+
DFS: function g(y, w, S, C) {
|
|
20673
20673
|
C = C || {};
|
|
20674
20674
|
var T = a.util.objId;
|
|
20675
|
-
for (var E in
|
|
20676
|
-
if (
|
|
20677
|
-
w.call(
|
|
20678
|
-
var A =
|
|
20675
|
+
for (var E in y)
|
|
20676
|
+
if (y.hasOwnProperty(E)) {
|
|
20677
|
+
w.call(y, E, y[E], S || E);
|
|
20678
|
+
var A = y[E], M = a.util.type(A);
|
|
20679
20679
|
M === "Object" && !C[T(A)] ? (C[T(A)] = !0, g(A, w, null, C)) : M === "Array" && !C[T(A)] && (C[T(A)] = !0, g(A, w, E, C));
|
|
20680
20680
|
}
|
|
20681
20681
|
}
|
|
@@ -20693,8 +20693,8 @@ var ide = { exports: {} };
|
|
|
20693
20693
|
* @memberof Prism
|
|
20694
20694
|
* @public
|
|
20695
20695
|
*/
|
|
20696
|
-
highlightAll: function(g,
|
|
20697
|
-
a.highlightAllUnder(document, g,
|
|
20696
|
+
highlightAll: function(g, y) {
|
|
20697
|
+
a.highlightAllUnder(document, g, y);
|
|
20698
20698
|
},
|
|
20699
20699
|
/**
|
|
20700
20700
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -20711,7 +20711,7 @@ var ide = { exports: {} };
|
|
|
20711
20711
|
* @memberof Prism
|
|
20712
20712
|
* @public
|
|
20713
20713
|
*/
|
|
20714
|
-
highlightAllUnder: function(g,
|
|
20714
|
+
highlightAllUnder: function(g, y, w) {
|
|
20715
20715
|
var S = {
|
|
20716
20716
|
callback: w,
|
|
20717
20717
|
container: g,
|
|
@@ -20719,7 +20719,7 @@ var ide = { exports: {} };
|
|
|
20719
20719
|
};
|
|
20720
20720
|
a.hooks.run("before-highlightall", S), S.elements = Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)), a.hooks.run("before-all-elements-highlight", S);
|
|
20721
20721
|
for (var C = 0, T; T = S.elements[C++]; )
|
|
20722
|
-
a.highlightElement(T,
|
|
20722
|
+
a.highlightElement(T, y === !0, S.callback);
|
|
20723
20723
|
},
|
|
20724
20724
|
/**
|
|
20725
20725
|
* Highlights the code inside a single element.
|
|
@@ -20749,7 +20749,7 @@ var ide = { exports: {} };
|
|
|
20749
20749
|
* @memberof Prism
|
|
20750
20750
|
* @public
|
|
20751
20751
|
*/
|
|
20752
|
-
highlightElement: function(g,
|
|
20752
|
+
highlightElement: function(g, y, w) {
|
|
20753
20753
|
var S = a.util.getLanguage(g), C = a.languages[S];
|
|
20754
20754
|
a.util.setLanguage(g, S);
|
|
20755
20755
|
var T = g.parentElement;
|
|
@@ -20771,7 +20771,7 @@ var ide = { exports: {} };
|
|
|
20771
20771
|
M(a.util.encode(A.code));
|
|
20772
20772
|
return;
|
|
20773
20773
|
}
|
|
20774
|
-
if (
|
|
20774
|
+
if (y && r.Worker) {
|
|
20775
20775
|
var I = new Worker(a.filename);
|
|
20776
20776
|
I.onmessage = function(x) {
|
|
20777
20777
|
M(x.data);
|
|
@@ -20803,10 +20803,10 @@ var ide = { exports: {} };
|
|
|
20803
20803
|
* @example
|
|
20804
20804
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
20805
20805
|
*/
|
|
20806
|
-
highlight: function(g,
|
|
20806
|
+
highlight: function(g, y, w) {
|
|
20807
20807
|
var S = {
|
|
20808
20808
|
code: g,
|
|
20809
|
-
grammar:
|
|
20809
|
+
grammar: y,
|
|
20810
20810
|
language: w
|
|
20811
20811
|
};
|
|
20812
20812
|
if (a.hooks.run("before-tokenize", S), !S.grammar)
|
|
@@ -20837,15 +20837,15 @@ var ide = { exports: {} };
|
|
|
20837
20837
|
* }
|
|
20838
20838
|
* });
|
|
20839
20839
|
*/
|
|
20840
|
-
tokenize: function(g,
|
|
20841
|
-
var w =
|
|
20840
|
+
tokenize: function(g, y) {
|
|
20841
|
+
var w = y.rest;
|
|
20842
20842
|
if (w) {
|
|
20843
20843
|
for (var S in w)
|
|
20844
|
-
|
|
20845
|
-
delete
|
|
20844
|
+
y[S] = w[S];
|
|
20845
|
+
delete y.rest;
|
|
20846
20846
|
}
|
|
20847
20847
|
var C = new f();
|
|
20848
|
-
return d(C, C.head, g), u(g, C,
|
|
20848
|
+
return d(C, C.head, g), u(g, C, y, C.head, 0), h(C);
|
|
20849
20849
|
},
|
|
20850
20850
|
/**
|
|
20851
20851
|
* @namespace
|
|
@@ -20866,9 +20866,9 @@ var ide = { exports: {} };
|
|
|
20866
20866
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
20867
20867
|
* @public
|
|
20868
20868
|
*/
|
|
20869
|
-
add: function(g,
|
|
20869
|
+
add: function(g, y) {
|
|
20870
20870
|
var w = a.hooks.all;
|
|
20871
|
-
w[g] = w[g] || [], w[g].push(
|
|
20871
|
+
w[g] = w[g] || [], w[g].push(y);
|
|
20872
20872
|
},
|
|
20873
20873
|
/**
|
|
20874
20874
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -20879,44 +20879,44 @@ var ide = { exports: {} };
|
|
|
20879
20879
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
20880
20880
|
* @public
|
|
20881
20881
|
*/
|
|
20882
|
-
run: function(g,
|
|
20882
|
+
run: function(g, y) {
|
|
20883
20883
|
var w = a.hooks.all[g];
|
|
20884
20884
|
if (!(!w || !w.length))
|
|
20885
20885
|
for (var S = 0, C; C = w[S++]; )
|
|
20886
|
-
C(
|
|
20886
|
+
C(y);
|
|
20887
20887
|
}
|
|
20888
20888
|
},
|
|
20889
20889
|
Token: l
|
|
20890
20890
|
};
|
|
20891
20891
|
r.Prism = a;
|
|
20892
|
-
function l(g,
|
|
20893
|
-
this.type = g, this.content =
|
|
20892
|
+
function l(g, y, w, S) {
|
|
20893
|
+
this.type = g, this.content = y, this.alias = w, this.length = (S || "").length | 0;
|
|
20894
20894
|
}
|
|
20895
|
-
l.stringify = function g(
|
|
20896
|
-
if (typeof
|
|
20897
|
-
return
|
|
20898
|
-
if (Array.isArray(
|
|
20895
|
+
l.stringify = function g(y, w) {
|
|
20896
|
+
if (typeof y == "string")
|
|
20897
|
+
return y;
|
|
20898
|
+
if (Array.isArray(y)) {
|
|
20899
20899
|
var S = "";
|
|
20900
|
-
return
|
|
20900
|
+
return y.forEach(function(M) {
|
|
20901
20901
|
S += g(M, w);
|
|
20902
20902
|
}), S;
|
|
20903
20903
|
}
|
|
20904
20904
|
var C = {
|
|
20905
|
-
type:
|
|
20906
|
-
content: g(
|
|
20905
|
+
type: y.type,
|
|
20906
|
+
content: g(y.content, w),
|
|
20907
20907
|
tag: "span",
|
|
20908
|
-
classes: ["token",
|
|
20908
|
+
classes: ["token", y.type],
|
|
20909
20909
|
attributes: {},
|
|
20910
20910
|
language: w
|
|
20911
|
-
}, T =
|
|
20911
|
+
}, T = y.alias;
|
|
20912
20912
|
T && (Array.isArray(T) ? Array.prototype.push.apply(C.classes, T) : C.classes.push(T)), a.hooks.run("wrap", C);
|
|
20913
20913
|
var E = "";
|
|
20914
20914
|
for (var A in C.attributes)
|
|
20915
20915
|
E += " " + A + '="' + (C.attributes[A] || "").replace(/"/g, """) + '"';
|
|
20916
20916
|
return "<" + C.tag + ' class="' + C.classes.join(" ") + '"' + E + ">" + C.content + "</" + C.tag + ">";
|
|
20917
20917
|
};
|
|
20918
|
-
function c(g,
|
|
20919
|
-
g.lastIndex =
|
|
20918
|
+
function c(g, y, w, S) {
|
|
20919
|
+
g.lastIndex = y;
|
|
20920
20920
|
var C = g.exec(w);
|
|
20921
20921
|
if (C && S && C[1]) {
|
|
20922
20922
|
var T = C[1].length;
|
|
@@ -20924,7 +20924,7 @@ var ide = { exports: {} };
|
|
|
20924
20924
|
}
|
|
20925
20925
|
return C;
|
|
20926
20926
|
}
|
|
20927
|
-
function u(g,
|
|
20927
|
+
function u(g, y, w, S, C, T) {
|
|
20928
20928
|
for (var E in w)
|
|
20929
20929
|
if (!(!w.hasOwnProperty(E) || !w[E])) {
|
|
20930
20930
|
var A = w[E];
|
|
@@ -20937,9 +20937,9 @@ var ide = { exports: {} };
|
|
|
20937
20937
|
var q = I.pattern.toString().match(/[imsuy]*$/)[0];
|
|
20938
20938
|
I.pattern = RegExp(I.pattern.source, q + "g");
|
|
20939
20939
|
}
|
|
20940
|
-
for (var Q = I.pattern || I, V = S.next, G = C; V !==
|
|
20940
|
+
for (var Q = I.pattern || I, V = S.next, G = C; V !== y.tail && !(T && G >= T.reach); G += V.value.length, V = V.next) {
|
|
20941
20941
|
var ie = V.value;
|
|
20942
|
-
if (
|
|
20942
|
+
if (y.length > g.length)
|
|
20943
20943
|
return;
|
|
20944
20944
|
if (!(ie instanceof l)) {
|
|
20945
20945
|
var be = 1, he;
|
|
@@ -20951,7 +20951,7 @@ var ide = { exports: {} };
|
|
|
20951
20951
|
V = V.next, Ce += V.value.length;
|
|
20952
20952
|
if (Ce -= V.value.length, G = Ce, V.value instanceof l)
|
|
20953
20953
|
continue;
|
|
20954
|
-
for (var pe = V; pe !==
|
|
20954
|
+
for (var pe = V; pe !== y.tail && (Ce < je || typeof pe.value == "string"); pe = pe.next)
|
|
20955
20955
|
be++, Ce += pe.value.length;
|
|
20956
20956
|
be--, ie = g.slice(G, Ce), he.index -= G;
|
|
20957
20957
|
} else if (he = c(Q, 0, ie, O), !he)
|
|
@@ -20959,14 +20959,14 @@ var ide = { exports: {} };
|
|
|
20959
20959
|
var Z = he.index, j = he[0], ve = ie.slice(0, Z), Ue = ie.slice(Z + j.length), it = G + ie.length;
|
|
20960
20960
|
T && it > T.reach && (T.reach = it);
|
|
20961
20961
|
var Re = V.prev;
|
|
20962
|
-
ve && (Re = d(
|
|
20962
|
+
ve && (Re = d(y, Re, ve), G += ve.length), p(y, Re, be);
|
|
20963
20963
|
var Pe = new l(E, x ? a.tokenize(j, x) : j, U, j);
|
|
20964
|
-
if (V = d(
|
|
20964
|
+
if (V = d(y, Re, Pe), Ue && d(y, V, Ue), be > 1) {
|
|
20965
20965
|
var Ft = {
|
|
20966
20966
|
cause: E + "," + M,
|
|
20967
20967
|
reach: it
|
|
20968
20968
|
};
|
|
20969
|
-
u(g,
|
|
20969
|
+
u(g, y, w, V.prev, G, Ft), T && Ft.reach > T.reach && (T.reach = Ft.reach);
|
|
20970
20970
|
}
|
|
20971
20971
|
}
|
|
20972
20972
|
}
|
|
@@ -20974,26 +20974,26 @@ var ide = { exports: {} };
|
|
|
20974
20974
|
}
|
|
20975
20975
|
}
|
|
20976
20976
|
function f() {
|
|
20977
|
-
var g = { value: null, prev: null, next: null },
|
|
20978
|
-
g.next =
|
|
20977
|
+
var g = { value: null, prev: null, next: null }, y = { value: null, prev: g, next: null };
|
|
20978
|
+
g.next = y, this.head = g, this.tail = y, this.length = 0;
|
|
20979
20979
|
}
|
|
20980
|
-
function d(g,
|
|
20981
|
-
var S =
|
|
20982
|
-
return
|
|
20980
|
+
function d(g, y, w) {
|
|
20981
|
+
var S = y.next, C = { value: w, prev: y, next: S };
|
|
20982
|
+
return y.next = C, S.prev = C, g.length++, C;
|
|
20983
20983
|
}
|
|
20984
|
-
function p(g,
|
|
20985
|
-
for (var S =
|
|
20984
|
+
function p(g, y, w) {
|
|
20985
|
+
for (var S = y.next, C = 0; C < w && S !== g.tail; C++)
|
|
20986
20986
|
S = S.next;
|
|
20987
|
-
|
|
20987
|
+
y.next = S, S.prev = y, g.length -= C;
|
|
20988
20988
|
}
|
|
20989
20989
|
function h(g) {
|
|
20990
|
-
for (var
|
|
20991
|
-
|
|
20992
|
-
return
|
|
20990
|
+
for (var y = [], w = g.head.next; w !== g.tail; )
|
|
20991
|
+
y.push(w.value), w = w.next;
|
|
20992
|
+
return y;
|
|
20993
20993
|
}
|
|
20994
20994
|
if (!r.document)
|
|
20995
20995
|
return r.addEventListener && (a.disableWorkerMessageHandler || r.addEventListener("message", function(g) {
|
|
20996
|
-
var
|
|
20996
|
+
var y = JSON.parse(g.data), w = y.language, S = y.code, C = y.immediateClose;
|
|
20997
20997
|
r.postMessage(a.highlight(S, a.languages[w], w)), C && r.close();
|
|
20998
20998
|
}, !1)), a;
|
|
20999
20999
|
var m = a.util.currentScript();
|
|
@@ -21002,8 +21002,8 @@ var ide = { exports: {} };
|
|
|
21002
21002
|
a.manual || a.highlightAll();
|
|
21003
21003
|
}
|
|
21004
21004
|
if (!a.manual) {
|
|
21005
|
-
var
|
|
21006
|
-
|
|
21005
|
+
var _ = document.readyState;
|
|
21006
|
+
_ === "loading" || _ === "interactive" && m && m.defer ? document.addEventListener("DOMContentLoaded", v) : window.requestAnimationFrame ? window.requestAnimationFrame(v) : window.setTimeout(v, 16);
|
|
21007
21007
|
}
|
|
21008
21008
|
return a;
|
|
21009
21009
|
}(e);
|
|
@@ -21398,17 +21398,17 @@ var ide = { exports: {} };
|
|
|
21398
21398
|
h: "c",
|
|
21399
21399
|
tex: "latex"
|
|
21400
21400
|
}, a = "data-src-status", l = "loading", c = "loaded", u = "failed", f = "pre[data-src]:not([" + a + '="' + c + '"]):not([' + a + '="' + l + '"])';
|
|
21401
|
-
function d(m, v,
|
|
21401
|
+
function d(m, v, _) {
|
|
21402
21402
|
var g = new XMLHttpRequest();
|
|
21403
21403
|
g.open("GET", m, !0), g.onreadystatechange = function() {
|
|
21404
|
-
g.readyState == 4 && (g.status < 400 && g.responseText ? v(g.responseText) : g.status >= 400 ?
|
|
21404
|
+
g.readyState == 4 && (g.status < 400 && g.responseText ? v(g.responseText) : g.status >= 400 ? _(o(g.status, g.statusText)) : _(i));
|
|
21405
21405
|
}, g.send(null);
|
|
21406
21406
|
}
|
|
21407
21407
|
function p(m) {
|
|
21408
21408
|
var v = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m || "");
|
|
21409
21409
|
if (v) {
|
|
21410
|
-
var
|
|
21411
|
-
return g ?
|
|
21410
|
+
var _ = Number(v[1]), g = v[2], y = v[3];
|
|
21411
|
+
return g ? y ? [_, Number(y)] : [_, void 0] : [_, _];
|
|
21412
21412
|
}
|
|
21413
21413
|
}
|
|
21414
21414
|
n.hooks.add("before-highlightall", function(m) {
|
|
@@ -21420,16 +21420,16 @@ var ide = { exports: {} };
|
|
|
21420
21420
|
);
|
|
21421
21421
|
if (v.matches(f)) {
|
|
21422
21422
|
m.code = "", v.setAttribute(a, l);
|
|
21423
|
-
var
|
|
21424
|
-
|
|
21425
|
-
var g = v.getAttribute("data-src"),
|
|
21426
|
-
if (
|
|
21423
|
+
var _ = v.appendChild(document.createElement("CODE"));
|
|
21424
|
+
_.textContent = r;
|
|
21425
|
+
var g = v.getAttribute("data-src"), y = m.language;
|
|
21426
|
+
if (y === "none") {
|
|
21427
21427
|
var w = (/\.(\w+)$/.exec(g) || [, "none"])[1];
|
|
21428
|
-
|
|
21428
|
+
y = s[w] || w;
|
|
21429
21429
|
}
|
|
21430
|
-
n.util.setLanguage(
|
|
21430
|
+
n.util.setLanguage(_, y), n.util.setLanguage(v, y);
|
|
21431
21431
|
var S = n.plugins.autoloader;
|
|
21432
|
-
S && S.loadLanguages(
|
|
21432
|
+
S && S.loadLanguages(y), d(
|
|
21433
21433
|
g,
|
|
21434
21434
|
function(C) {
|
|
21435
21435
|
v.setAttribute(a, c);
|
|
@@ -21439,10 +21439,10 @@ var ide = { exports: {} };
|
|
|
21439
21439
|
A < 0 && (A += E.length), A = Math.max(0, Math.min(A - 1, E.length)), M < 0 && (M += E.length), M = Math.max(0, Math.min(M, E.length)), C = E.slice(A, M).join(`
|
|
21440
21440
|
`), v.hasAttribute("data-start") || v.setAttribute("data-start", String(A + 1));
|
|
21441
21441
|
}
|
|
21442
|
-
|
|
21442
|
+
_.textContent = C, n.highlightElement(_);
|
|
21443
21443
|
},
|
|
21444
21444
|
function(C) {
|
|
21445
|
-
v.setAttribute(a, u),
|
|
21445
|
+
v.setAttribute(a, u), _.textContent = C;
|
|
21446
21446
|
}
|
|
21447
21447
|
);
|
|
21448
21448
|
}
|
|
@@ -21455,8 +21455,8 @@ var ide = { exports: {} };
|
|
|
21455
21455
|
* @param {ParentNode} [container=document]
|
|
21456
21456
|
*/
|
|
21457
21457
|
highlight: function(v) {
|
|
21458
|
-
for (var
|
|
21459
|
-
n.highlightElement(
|
|
21458
|
+
for (var _ = (v || document).querySelectorAll(f), g = 0, y; y = _[g++]; )
|
|
21459
|
+
n.highlightElement(y);
|
|
21460
21460
|
}
|
|
21461
21461
|
};
|
|
21462
21462
|
var h = !1;
|
|
@@ -22055,12 +22055,12 @@ Prism.languages.rss = Prism.languages.xml;
|
|
|
22055
22055
|
f(m.content);
|
|
22056
22056
|
continue;
|
|
22057
22057
|
}
|
|
22058
|
-
var v = m.content[1],
|
|
22059
|
-
if (v &&
|
|
22058
|
+
var v = m.content[1], _ = m.content[3];
|
|
22059
|
+
if (v && _ && v.type === "code-language" && _.type === "code-block" && typeof v.content == "string") {
|
|
22060
22060
|
var g = v.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
22061
22061
|
g = (/[a-z][\w-]*/i.exec(g) || [""])[0].toLowerCase();
|
|
22062
|
-
var
|
|
22063
|
-
|
|
22062
|
+
var y = "language-" + g;
|
|
22063
|
+
_.alias ? typeof _.alias == "string" ? _.alias = [_.alias, y] : _.alias.push(y) : _.alias = [y];
|
|
22064
22064
|
}
|
|
22065
22065
|
}
|
|
22066
22066
|
}
|
|
@@ -22078,9 +22078,9 @@ Prism.languages.rss = Prism.languages.xml;
|
|
|
22078
22078
|
if (v)
|
|
22079
22079
|
u.content = t.highlight(c(u.content), v, f);
|
|
22080
22080
|
else if (f && f !== "none" && t.plugins.autoloader) {
|
|
22081
|
-
var
|
|
22082
|
-
u.attributes.id =
|
|
22083
|
-
var g = document.getElementById(
|
|
22081
|
+
var _ = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
22082
|
+
u.attributes.id = _, t.plugins.autoloader.loadLanguages(f, function() {
|
|
22083
|
+
var g = document.getElementById(_);
|
|
22084
22084
|
g && (g.innerHTML = t.highlight(g.textContent, t.languages[f], f));
|
|
22085
22085
|
});
|
|
22086
22086
|
}
|
|
@@ -22965,11 +22965,11 @@ let Zl = class t0 extends mn {
|
|
|
22965
22965
|
if (!i0(c))
|
|
22966
22966
|
break;
|
|
22967
22967
|
{
|
|
22968
|
-
let
|
|
22969
|
-
const g = c.getTextContent(),
|
|
22970
|
-
for (;
|
|
22971
|
-
|
|
22972
|
-
if (
|
|
22968
|
+
let _ = 0;
|
|
22969
|
+
const g = c.getTextContent(), y = c.getTextContentSize();
|
|
22970
|
+
for (; _ < y && g[_] === " "; )
|
|
22971
|
+
_++;
|
|
22972
|
+
if (_ !== 0 && u.push(o0(" ".repeat(_))), _ !== y)
|
|
22973
22973
|
break;
|
|
22974
22974
|
c = c.getNextSibling();
|
|
22975
22975
|
}
|
|
@@ -23373,7 +23373,7 @@ function Zp(t, e, n, r, o) {
|
|
|
23373
23373
|
const m = [...r];
|
|
23374
23374
|
for (; m.length > d; ) {
|
|
23375
23375
|
const v = m.pop();
|
|
23376
|
-
o && v && o.find((
|
|
23376
|
+
o && v && o.find((_) => _.tag === v.tag) || (v && typeof v.tag == "string" && (p ? h || (l += v.tag) : a += v.tag), r.pop());
|
|
23377
23377
|
}
|
|
23378
23378
|
break;
|
|
23379
23379
|
}
|
|
@@ -23525,11 +23525,11 @@ function yde(t, e, n, r) {
|
|
|
23525
23525
|
else
|
|
23526
23526
|
for (let v = e; v <= d; v++)
|
|
23527
23527
|
if (v === e) {
|
|
23528
|
-
const
|
|
23529
|
-
m.push(
|
|
23528
|
+
const _ = t[v].slice(c[0].length);
|
|
23529
|
+
m.push(_);
|
|
23530
23530
|
} else if (v === d && h) {
|
|
23531
|
-
const
|
|
23532
|
-
m.push(
|
|
23531
|
+
const _ = t[v].slice(0, -h[0].length);
|
|
23532
|
+
m.push(_);
|
|
23533
23533
|
} else
|
|
23534
23534
|
m.push(t[v]);
|
|
23535
23535
|
if (l(r, null, c, h, m, !0) !== !1)
|
|
@@ -23707,11 +23707,11 @@ function Pde(t, e = Hd) {
|
|
|
23707
23707
|
if (h[f - 1] !== " ")
|
|
23708
23708
|
return !1;
|
|
23709
23709
|
for (const { regExp: m, replace: v } of d) {
|
|
23710
|
-
const
|
|
23711
|
-
if (
|
|
23712
|
-
const g = u.getNextSiblings(), [
|
|
23713
|
-
if (v(c, w ? [w, ...g] : g,
|
|
23714
|
-
return
|
|
23710
|
+
const _ = h.match(m);
|
|
23711
|
+
if (_ && _[0].length === (_[0].endsWith(" ") ? f : f - 1)) {
|
|
23712
|
+
const g = u.getNextSiblings(), [y, w] = u.splitText(f);
|
|
23713
|
+
if (v(c, w ? [w, ...g] : g, _, !1) !== !1)
|
|
23714
|
+
return y.remove(), !0;
|
|
23715
23715
|
}
|
|
23716
23716
|
}
|
|
23717
23717
|
return !1;
|
|
@@ -23722,13 +23722,13 @@ function Pde(t, e = Hd) {
|
|
|
23722
23722
|
const h = u.getTextContent();
|
|
23723
23723
|
if (h[f - 1] !== " ")
|
|
23724
23724
|
return !1;
|
|
23725
|
-
for (const { regExpStart: m, replace: v, regExpEnd:
|
|
23726
|
-
if (
|
|
23725
|
+
for (const { regExpStart: m, replace: v, regExpEnd: _ } of d) {
|
|
23726
|
+
if (_ && !("optional" in _) || _ && "optional" in _ && !_.optional)
|
|
23727
23727
|
continue;
|
|
23728
23728
|
const g = h.match(m);
|
|
23729
23729
|
if (g && g[0].length === (g[0].endsWith(" ") ? f : f - 1)) {
|
|
23730
|
-
const
|
|
23731
|
-
if (v(c, S ? [S, ...
|
|
23730
|
+
const y = u.getNextSiblings(), [w, S] = u.splitText(f);
|
|
23731
|
+
if (v(c, S ? [S, ...y] : y, g, null, null, !1) !== !1)
|
|
23732
23732
|
return w.remove(), !0;
|
|
23733
23733
|
}
|
|
23734
23734
|
}
|
|
@@ -23745,9 +23745,9 @@ function Pde(t, e = Hd) {
|
|
|
23745
23745
|
const m = d.match(h.regExp);
|
|
23746
23746
|
if (m === null)
|
|
23747
23747
|
continue;
|
|
23748
|
-
const v = m.index || 0,
|
|
23748
|
+
const v = m.index || 0, _ = v + m[0].length;
|
|
23749
23749
|
let g;
|
|
23750
|
-
return v === 0 ? [g] = c.splitText(
|
|
23750
|
+
return v === 0 ? [g] = c.splitText(_) : [, g] = c.splitText(v, _), g.selectNext(0, 0), h.replace(g, m), !0;
|
|
23751
23751
|
}
|
|
23752
23752
|
return !1;
|
|
23753
23753
|
}(a, l, o) || function(c, u, f) {
|
|
@@ -23755,22 +23755,22 @@ function Pde(t, e = Hd) {
|
|
|
23755
23755
|
if (!m)
|
|
23756
23756
|
return !1;
|
|
23757
23757
|
for (const v of m) {
|
|
23758
|
-
const { tag:
|
|
23759
|
-
if (g > 1 && !C0(d,
|
|
23758
|
+
const { tag: _ } = v, g = _.length, y = p - g + 1;
|
|
23759
|
+
if (g > 1 && !C0(d, y, _, 0, g) || d[y - 1] === " ")
|
|
23760
23760
|
continue;
|
|
23761
23761
|
const w = d[p + 1];
|
|
23762
23762
|
if (v.intraword === !1 && w && !sl.test(w))
|
|
23763
23763
|
continue;
|
|
23764
23764
|
const S = c;
|
|
23765
|
-
let C = S, T = Xp(d,
|
|
23765
|
+
let C = S, T = Xp(d, y, _), E = C;
|
|
23766
23766
|
for (; T < 0 && (E = E.getPreviousSibling()) && !zr(E); )
|
|
23767
23767
|
if (ce(E)) {
|
|
23768
23768
|
if (E.hasFormat("code"))
|
|
23769
23769
|
continue;
|
|
23770
23770
|
const Q = E.getTextContent();
|
|
23771
|
-
C = E, T = Xp(Q, Q.length,
|
|
23771
|
+
C = E, T = Xp(Q, Q.length, _);
|
|
23772
23772
|
}
|
|
23773
|
-
if (T < 0 || C === S && T + g ===
|
|
23773
|
+
if (T < 0 || C === S && T + g === y)
|
|
23774
23774
|
continue;
|
|
23775
23775
|
const A = C.getTextContent();
|
|
23776
23776
|
if (T > 0 && A[T - 1] === h)
|
|
@@ -23778,7 +23778,7 @@ function Pde(t, e = Hd) {
|
|
|
23778
23778
|
const M = A[T - 1];
|
|
23779
23779
|
if (v.intraword === !1 && M && !sl.test(M))
|
|
23780
23780
|
continue;
|
|
23781
|
-
const I = S.getTextContent(), x = I.slice(0,
|
|
23781
|
+
const I = S.getTextContent(), x = I.slice(0, y) + I.slice(p + 1);
|
|
23782
23782
|
S.setTextContent(x);
|
|
23783
23783
|
const O = C === S ? x : A;
|
|
23784
23784
|
C.setTextContent(O.slice(0, T) + O.slice(T + g));
|
|
@@ -23877,31 +23877,31 @@ const w0 = Symbol("LexicalEditor"), Hde = (() => {
|
|
|
23877
23877
|
}
|
|
23878
23878
|
});
|
|
23879
23879
|
m(h, d);
|
|
23880
|
-
function m(v,
|
|
23881
|
-
if (
|
|
23882
|
-
if (
|
|
23880
|
+
function m(v, _) {
|
|
23881
|
+
if (_ !== null) {
|
|
23882
|
+
if (_ === void 0)
|
|
23883
23883
|
v.update(() => {
|
|
23884
23884
|
const g = ct();
|
|
23885
23885
|
if (g.isEmpty()) {
|
|
23886
|
-
const
|
|
23887
|
-
g.append(
|
|
23886
|
+
const y = ot();
|
|
23887
|
+
g.append(y);
|
|
23888
23888
|
const w = Aue ? document.activeElement : null;
|
|
23889
|
-
(de() !== null || w !== null && w === v.getRootElement()) &&
|
|
23889
|
+
(de() !== null || w !== null && w === v.getRootElement()) && y.select();
|
|
23890
23890
|
}
|
|
23891
23891
|
}, a);
|
|
23892
|
-
else if (
|
|
23893
|
-
switch (typeof
|
|
23892
|
+
else if (_ !== null)
|
|
23893
|
+
switch (typeof _) {
|
|
23894
23894
|
case "string": {
|
|
23895
|
-
const g = v.parseEditorState(
|
|
23895
|
+
const g = v.parseEditorState(_);
|
|
23896
23896
|
v.setEditorState(g, a);
|
|
23897
23897
|
break;
|
|
23898
23898
|
}
|
|
23899
23899
|
case "object":
|
|
23900
|
-
v.setEditorState(
|
|
23900
|
+
v.setEditorState(_, a);
|
|
23901
23901
|
break;
|
|
23902
23902
|
case "function":
|
|
23903
23903
|
v.update(() => {
|
|
23904
|
-
ct().isEmpty() &&
|
|
23904
|
+
ct().isEmpty() && _(v);
|
|
23905
23905
|
}, a);
|
|
23906
23906
|
break;
|
|
23907
23907
|
}
|
|
@@ -23910,7 +23910,7 @@ const w0 = Symbol("LexicalEditor"), Hde = (() => {
|
|
|
23910
23910
|
return q0(w0, h), Pt(() => {
|
|
23911
23911
|
const v = s.initialConfig.editable;
|
|
23912
23912
|
h.setEditable(v !== void 0 ? v : !0);
|
|
23913
|
-
}), (v,
|
|
23913
|
+
}), (v, _) => ke(v.$slots, "default");
|
|
23914
23914
|
}
|
|
23915
23915
|
});
|
|
23916
23916
|
return t.__vue_vine = !0, t;
|
|
@@ -24643,13 +24643,13 @@ function e1e(t, e, n, r, o) {
|
|
|
24643
24643
|
return 1;
|
|
24644
24644
|
if (!(ne(i) && ne(s) && s.isCollapsed() && i.isCollapsed()))
|
|
24645
24645
|
return 0;
|
|
24646
|
-
const a = function(
|
|
24647
|
-
const w =
|
|
24646
|
+
const a = function(_, g, y) {
|
|
24647
|
+
const w = _._nodeMap, S = [];
|
|
24648
24648
|
for (const C of g) {
|
|
24649
24649
|
const T = w.get(C);
|
|
24650
24650
|
T !== void 0 && S.push(T);
|
|
24651
24651
|
}
|
|
24652
|
-
for (const [C, T] of
|
|
24652
|
+
for (const [C, T] of y) {
|
|
24653
24653
|
if (!T)
|
|
24654
24654
|
continue;
|
|
24655
24655
|
const E = w.get(C);
|
|
@@ -24660,8 +24660,8 @@ function e1e(t, e, n, r, o) {
|
|
|
24660
24660
|
if (a.length === 0)
|
|
24661
24661
|
return 0;
|
|
24662
24662
|
if (a.length > 1) {
|
|
24663
|
-
const
|
|
24664
|
-
return g &&
|
|
24663
|
+
const _ = e._nodeMap, g = _.get(i.anchor.key), y = _.get(s.anchor.key);
|
|
24664
|
+
return g && y && !t._nodeMap.has(g.__key) && ce(g) && g.__text.length === 1 && i.anchor.offset === 1 ? 2 : 0;
|
|
24665
24665
|
}
|
|
24666
24666
|
const l = a[0], c = t._nodeMap.get(l.__key);
|
|
24667
24667
|
if (!ce(c) || !ce(l) || c.__mode !== l.__mode)
|
|
@@ -24691,9 +24691,9 @@ function t1e(t, e) {
|
|
|
24691
24691
|
if (!(a.size > 0 || l.size > 0))
|
|
24692
24692
|
return m !== null ? 0 : 2;
|
|
24693
24693
|
const v = typeof e == "number" ? e : e.peek();
|
|
24694
|
-
return h === !1 && f !== 0 && f === r && u < n + v && p || a.size === 1 && function(
|
|
24695
|
-
const w = g._nodeMap.get(
|
|
24696
|
-
return !(ne(C) && ne(T) && C.anchor.type === "element" && C.focus.type === "element" && T.anchor.type === "text" && T.focus.type === "text" || !ce(w) || !ce(S) || w.__parent !== S.__parent) && JSON.stringify(g.read(() => w.exportJSON())) === JSON.stringify(
|
|
24694
|
+
return h === !1 && f !== 0 && f === r && u < n + v && p || a.size === 1 && function(_, g, y) {
|
|
24695
|
+
const w = g._nodeMap.get(_), S = y._nodeMap.get(_), C = g._selection, T = y._selection;
|
|
24696
|
+
return !(ne(C) && ne(T) && C.anchor.type === "element" && C.focus.type === "element" && T.anchor.type === "text" && T.focus.type === "text" || !ce(w) || !ce(S) || w.__parent !== S.__parent) && JSON.stringify(g.read(() => w.exportJSON())) === JSON.stringify(y.read(() => S.exportJSON()));
|
|
24697
24697
|
}(Array.from(a)[0], o, i) ? 0 : 1;
|
|
24698
24698
|
})();
|
|
24699
24699
|
return n = u, r = f, d;
|
|
@@ -25003,7 +25003,7 @@ const d1e = (() => {
|
|
|
25003
25003
|
s.value.clone()
|
|
25004
25004
|
);
|
|
25005
25005
|
}
|
|
25006
|
-
function
|
|
25006
|
+
function _(x) {
|
|
25007
25007
|
const O = i.value;
|
|
25008
25008
|
O && (O.update(() => {
|
|
25009
25009
|
v(), x();
|
|
@@ -25018,7 +25018,7 @@ const d1e = (() => {
|
|
|
25018
25018
|
"bold"
|
|
25019
25019
|
), x.focus());
|
|
25020
25020
|
}
|
|
25021
|
-
function
|
|
25021
|
+
function y() {
|
|
25022
25022
|
const x = i.value;
|
|
25023
25023
|
x && (x.update(() => {
|
|
25024
25024
|
v();
|
|
@@ -25064,7 +25064,7 @@ const d1e = (() => {
|
|
|
25064
25064
|
), x.focus());
|
|
25065
25065
|
}
|
|
25066
25066
|
function E(x) {
|
|
25067
|
-
|
|
25067
|
+
_(() => {
|
|
25068
25068
|
const O = de();
|
|
25069
25069
|
if (ne(O)) {
|
|
25070
25070
|
if (O.isCollapsed() || O.focus.set(
|
|
@@ -25117,7 +25117,7 @@ const d1e = (() => {
|
|
|
25117
25117
|
}
|
|
25118
25118
|
return e({
|
|
25119
25119
|
toggleBold: g,
|
|
25120
|
-
toggleItalic:
|
|
25120
|
+
toggleItalic: y,
|
|
25121
25121
|
toggleStrikethrough: w,
|
|
25122
25122
|
toggleInlineCode: S,
|
|
25123
25123
|
insertBulletList: C,
|
|
@@ -25186,14 +25186,14 @@ function p1e(t, e) {
|
|
|
25186
25186
|
l();
|
|
25187
25187
|
return;
|
|
25188
25188
|
}
|
|
25189
|
-
const
|
|
25189
|
+
const _ = m.getTextContent().slice(0, h.anchor.offset).match(
|
|
25190
25190
|
/@([\p{L}\p{M}0-9_-]*)$/u
|
|
25191
25191
|
);
|
|
25192
|
-
if (!
|
|
25192
|
+
if (!_) {
|
|
25193
25193
|
l();
|
|
25194
25194
|
return;
|
|
25195
25195
|
}
|
|
25196
|
-
n.value =
|
|
25196
|
+
n.value = _[1], r.value = !0, i.value >= a.value.length && (i.value = 0);
|
|
25197
25197
|
}
|
|
25198
25198
|
function u() {
|
|
25199
25199
|
const h = t.value;
|
|
@@ -25202,13 +25202,13 @@ function p1e(t, e) {
|
|
|
25202
25202
|
const m = window.getSelection();
|
|
25203
25203
|
if (!m || m.rangeCount === 0)
|
|
25204
25204
|
return;
|
|
25205
|
-
const v = m.getRangeAt(0),
|
|
25205
|
+
const v = m.getRangeAt(0), _ = v.getClientRects().item(0) ?? v.getBoundingClientRect(), g = h.getRootElement();
|
|
25206
25206
|
if (!g)
|
|
25207
25207
|
return;
|
|
25208
|
-
const
|
|
25208
|
+
const y = g.getBoundingClientRect();
|
|
25209
25209
|
o.value = {
|
|
25210
|
-
top:
|
|
25211
|
-
left:
|
|
25210
|
+
top: _.bottom - y.top + 4,
|
|
25211
|
+
left: _.left - y.left
|
|
25212
25212
|
};
|
|
25213
25213
|
}
|
|
25214
25214
|
function f(h) {
|
|
@@ -25217,18 +25217,18 @@ function p1e(t, e) {
|
|
|
25217
25217
|
const v = de();
|
|
25218
25218
|
if (!ne(v) || !v.isCollapsed())
|
|
25219
25219
|
return;
|
|
25220
|
-
const
|
|
25221
|
-
if (!ce(
|
|
25220
|
+
const _ = v.anchor.getNode();
|
|
25221
|
+
if (!ce(_))
|
|
25222
25222
|
return;
|
|
25223
|
-
const g =
|
|
25223
|
+
const g = _.getTextContent(), y = v.anchor.offset, S = g.slice(0, y).match(
|
|
25224
25224
|
/@([\p{L}\p{M}0-9_-]*)$/u
|
|
25225
25225
|
);
|
|
25226
25226
|
if (!S)
|
|
25227
25227
|
return;
|
|
25228
|
-
const C =
|
|
25229
|
-
|
|
25228
|
+
const C = y - S[0].length, T = `@${h} `, E = g.slice(0, C) + T + g.slice(y);
|
|
25229
|
+
_.setTextContent(E);
|
|
25230
25230
|
const A = C + T.length;
|
|
25231
|
-
v.anchor.set(
|
|
25231
|
+
v.anchor.set(_.getKey(), A, "text"), v.focus.set(_.getKey(), A, "text");
|
|
25232
25232
|
}), l(), m.focus());
|
|
25233
25233
|
}
|
|
25234
25234
|
function d(h) {
|
|
@@ -25299,15 +25299,15 @@ const h1e = {
|
|
|
25299
25299
|
closeMentionList: m,
|
|
25300
25300
|
setupMentionTracking: v
|
|
25301
25301
|
} = p1e(s, l);
|
|
25302
|
-
let
|
|
25303
|
-
const
|
|
25302
|
+
let _, g;
|
|
25303
|
+
const y = L(
|
|
25304
25304
|
() => r.toolbarVisibility === "always" || a.value
|
|
25305
25305
|
);
|
|
25306
25306
|
Tn(() => {
|
|
25307
|
-
|
|
25307
|
+
_ == null || _(), g !== void 0 && window.clearTimeout(g);
|
|
25308
25308
|
});
|
|
25309
25309
|
function w(x) {
|
|
25310
|
-
s.value = x,
|
|
25310
|
+
s.value = x, _ == null || _(), _ = v();
|
|
25311
25311
|
}
|
|
25312
25312
|
function S() {
|
|
25313
25313
|
g !== void 0 && (window.clearTimeout(g), g = void 0), a.value || (a.value = !0, o("focus"));
|
|
@@ -25361,7 +25361,7 @@ const h1e = {
|
|
|
25361
25361
|
}), (x, O) => (k(), $("div", {
|
|
25362
25362
|
class: _e(["ao-comment-editor", { "ao-comment-editor--focused": a.value }])
|
|
25363
25363
|
}, [
|
|
25364
|
-
|
|
25364
|
+
y.value ? (k(), $("div", h1e, [
|
|
25365
25365
|
b("button", {
|
|
25366
25366
|
type: "button",
|
|
25367
25367
|
class: "ao-comment-editor__toolbar-button",
|
|
@@ -25504,8 +25504,8 @@ const g1e = { class: "ao-comment" }, v1e = { class: "ao-comment__created-at" },
|
|
|
25504
25504
|
const h = n.user;
|
|
25505
25505
|
return h ? `${h.firstName ?? ""}${h.firstName ? " " : ""}${h.lastName ?? ""}` : null;
|
|
25506
25506
|
}), i = ee(!1), s = ee(n.content), a = ee(null), l = L(() => {
|
|
25507
|
-
const h = n.editedAt && gs(n.editedAt), m = gs(n.createdAt), v = /* @__PURE__ */ new Date(),
|
|
25508
|
-
return
|
|
25507
|
+
const h = n.editedAt && gs(n.editedAt), m = gs(n.createdAt), v = /* @__PURE__ */ new Date(), _ = h ?? m;
|
|
25508
|
+
return _ && V7(_, v);
|
|
25509
25509
|
});
|
|
25510
25510
|
Ne(
|
|
25511
25511
|
() => n.content,
|
|
@@ -25725,11 +25725,11 @@ const x1e = ["aria-label"], A1e = { class: "ao-file-preview__actions" }, E1e = [
|
|
|
25725
25725
|
"png",
|
|
25726
25726
|
"gif",
|
|
25727
25727
|
"webp"
|
|
25728
|
-
].includes(p.value)), m = L(() => f.value === "application/pdf" || p.value === "pdf"), v = L(() => h.value || m.value),
|
|
25728
|
+
].includes(p.value)), m = L(() => f.value === "application/pdf" || p.value === "pdf"), v = L(() => h.value || m.value), _ = L(() => h.value ? "ImageRounded" : m.value ? "PictureAsPdfRounded" : "InsertDriveFileRounded");
|
|
25729
25729
|
function g() {
|
|
25730
25730
|
o.value && (URL.revokeObjectURL(o.value), o.value = null);
|
|
25731
25731
|
}
|
|
25732
|
-
async function
|
|
25732
|
+
async function y() {
|
|
25733
25733
|
const M = l.value, I = ++a;
|
|
25734
25734
|
if (g(), s.value = !1, i.value = !1, !M || !v.value) {
|
|
25735
25735
|
s.value = !0;
|
|
@@ -25801,7 +25801,7 @@ const x1e = ["aria-label"], A1e = { class: "ao-file-preview__actions" }, E1e = [
|
|
|
25801
25801
|
E();
|
|
25802
25802
|
return;
|
|
25803
25803
|
}
|
|
25804
|
-
|
|
25804
|
+
y();
|
|
25805
25805
|
},
|
|
25806
25806
|
{
|
|
25807
25807
|
immediate: !0
|
|
@@ -25898,7 +25898,7 @@ const x1e = ["aria-label"], A1e = { class: "ao-file-preview__actions" }, E1e = [
|
|
|
25898
25898
|
}, null, 8, D1e)
|
|
25899
25899
|
])) : (k(), $("div", M1e, [
|
|
25900
25900
|
N(Be, {
|
|
25901
|
-
name:
|
|
25901
|
+
name: _.value,
|
|
25902
25902
|
size: "xl"
|
|
25903
25903
|
}, null, 8, ["name"]),
|
|
25904
25904
|
b("p", O1e, H(M.$t("activity.attachment.preview.notAvailable")), 1),
|
|
@@ -25980,15 +25980,15 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
25980
25980
|
setup(t) {
|
|
25981
25981
|
const { t: e } = nn(), n = t;
|
|
25982
25982
|
function r(d) {
|
|
25983
|
-
var m, v,
|
|
25984
|
-
if ((
|
|
25983
|
+
var m, v, _;
|
|
25984
|
+
if ((_ = (v = (m = n.presentationConfig) == null ? void 0 : m.fields) == null ? void 0 : v[d]) != null && _.label)
|
|
25985
25985
|
return n.presentationConfig.fields[d].label;
|
|
25986
25986
|
const p = `history.field.${d}`, h = e(p);
|
|
25987
25987
|
return h !== p ? h : d.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/\b\w/g, (g) => g.toUpperCase());
|
|
25988
25988
|
}
|
|
25989
25989
|
function o(d) {
|
|
25990
|
-
var m, v,
|
|
25991
|
-
if ((
|
|
25990
|
+
var m, v, _;
|
|
25991
|
+
if ((_ = (v = (m = n.presentationConfig) == null ? void 0 : m.entities) == null ? void 0 : v[d]) != null && _.label)
|
|
25992
25992
|
return n.presentationConfig.entities[d].label;
|
|
25993
25993
|
const p = `history.entity.${d}`, h = e(p);
|
|
25994
25994
|
return h !== p ? h : d.replace(/_/g, " ").replace(/\b\w/g, (g) => g.toUpperCase());
|
|
@@ -26021,7 +26021,7 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
26021
26021
|
return p ? p.length <= eh ? p : `${p.slice(0, eh).trimEnd()}…` : e("history.value.null", "None");
|
|
26022
26022
|
}
|
|
26023
26023
|
function l(d, p) {
|
|
26024
|
-
var
|
|
26024
|
+
var _, g, y, w;
|
|
26025
26025
|
const h = p ? d.oldValue : d.newValue, m = h == null ? void 0 : h.raw;
|
|
26026
26026
|
if (!h || m === null || m === void 0 || m === "")
|
|
26027
26027
|
return e("history.value.null", "None");
|
|
@@ -26031,14 +26031,14 @@ const Lu = /* @__PURE__ */ ue({
|
|
|
26031
26031
|
if (v === null)
|
|
26032
26032
|
return e("history.value.null", "None");
|
|
26033
26033
|
if (d.type === "BOOLEAN") {
|
|
26034
|
-
const S = v === !0 || v === "true", C = (g = (
|
|
26034
|
+
const S = v === !0 || v === "true", C = (g = (_ = n.presentationConfig) == null ? void 0 : _.fields) == null ? void 0 : g[d.field];
|
|
26035
26035
|
if (C != null && C.booleanLabels)
|
|
26036
26036
|
return S ? C.booleanLabels.true : C.booleanLabels.false;
|
|
26037
26037
|
const T = `history.boolean.${d.field}.${S}`, E = e(T);
|
|
26038
26038
|
return E !== T ? E : e(`history.boolean.default.${S}`);
|
|
26039
26039
|
}
|
|
26040
26040
|
if (d.type === "RELATION") {
|
|
26041
|
-
const S = (w = (
|
|
26041
|
+
const S = (w = (y = n.presentationConfig) == null ? void 0 : y.resolvedValues) == null ? void 0 : w[d.field];
|
|
26042
26042
|
if (S) {
|
|
26043
26043
|
const C = String(v);
|
|
26044
26044
|
if (S[C])
|
|
@@ -26463,7 +26463,7 @@ const _fe = { class: "ao-activity-details" }, yfe = { class: "ao-activity-detail
|
|
|
26463
26463
|
id: r.activity.id,
|
|
26464
26464
|
description: R
|
|
26465
26465
|
}), f.value = !1;
|
|
26466
|
-
},
|
|
26466
|
+
}, _ = () => {
|
|
26467
26467
|
f.value = !1;
|
|
26468
26468
|
};
|
|
26469
26469
|
Ne(() => r.activity.id, () => {
|
|
@@ -26476,7 +26476,7 @@ const _fe = { class: "ao-activity-details" }, yfe = { class: "ao-activity-detail
|
|
|
26476
26476
|
set(R) {
|
|
26477
26477
|
o("update:activity", { id: r.activity.id, estimation: R });
|
|
26478
26478
|
}
|
|
26479
|
-
}),
|
|
26479
|
+
}), y = L({
|
|
26480
26480
|
get() {
|
|
26481
26481
|
var X;
|
|
26482
26482
|
const R = (X = r.timeTrackingData) == null ? void 0 : X[r.activity.id];
|
|
@@ -26490,7 +26490,7 @@ const _fe = { class: "ao-activity-details" }, yfe = { class: "ao-activity-detail
|
|
|
26490
26490
|
}), S = L(() => {
|
|
26491
26491
|
var X;
|
|
26492
26492
|
const R = (X = r.activity.project) == null ? void 0 : X.estimationUnit;
|
|
26493
|
-
return gl(
|
|
26493
|
+
return gl(y.value, R);
|
|
26494
26494
|
}), C = L({
|
|
26495
26495
|
get() {
|
|
26496
26496
|
return r.activity.important ?? !1;
|
|
@@ -26821,7 +26821,7 @@ const _fe = { class: "ao-activity-details" }, yfe = { class: "ao-activity-detail
|
|
|
26821
26821
|
key: 1,
|
|
26822
26822
|
"initial-markdown": h.value,
|
|
26823
26823
|
onSave: v,
|
|
26824
|
-
onCancel:
|
|
26824
|
+
onCancel: _,
|
|
26825
26825
|
onPaste: ut
|
|
26826
26826
|
}, null, 8, ["initial-markdown"])) : (k(), $("div", {
|
|
26827
26827
|
key: 0,
|
|
@@ -27226,12 +27226,12 @@ const Npe = /* @__PURE__ */ ue({
|
|
|
27226
27226
|
});
|
|
27227
27227
|
}
|
|
27228
27228
|
}), l = L(() => {
|
|
27229
|
-
var
|
|
27230
|
-
return !n.templateActivities || !n.templateMilestones || !n.templatePhases ? null : (
|
|
27229
|
+
var y;
|
|
27230
|
+
return !n.templateActivities || !n.templateMilestones || !n.templatePhases ? null : (y = {
|
|
27231
27231
|
[dt.ACTIVITIES]: n.templateActivities,
|
|
27232
27232
|
[dt.MILESTONES]: n.templateMilestones,
|
|
27233
27233
|
[dt.PHASES]: n.templatePhases
|
|
27234
|
-
}[o.value]) == null ? void 0 :
|
|
27234
|
+
}[o.value]) == null ? void 0 : y.map((w) => ({
|
|
27235
27235
|
value: w.id,
|
|
27236
27236
|
label: w.name
|
|
27237
27237
|
}));
|
|
@@ -27263,31 +27263,31 @@ const Npe = /* @__PURE__ */ ue({
|
|
|
27263
27263
|
set(g) {
|
|
27264
27264
|
r("update:rule", { ...n.rule, durationUnit: g });
|
|
27265
27265
|
}
|
|
27266
|
-
}),
|
|
27267
|
-
return (g,
|
|
27266
|
+
}), _ = L(() => Object.values(E5));
|
|
27267
|
+
return (g, y) => (k(), Y(Po(t.tagName), { class: "ao-rule-line" }, {
|
|
27268
27268
|
default: se(() => [
|
|
27269
27269
|
N(oe(Fr), {
|
|
27270
27270
|
modelValue: i.value,
|
|
27271
|
-
"onUpdate:modelValue":
|
|
27271
|
+
"onUpdate:modelValue": y[0] || (y[0] = (w) => i.value = w),
|
|
27272
27272
|
options: s.value
|
|
27273
27273
|
}, null, 8, ["modelValue", "options"]),
|
|
27274
27274
|
N(oe(Fr), {
|
|
27275
27275
|
modelValue: a.value,
|
|
27276
|
-
"onUpdate:modelValue":
|
|
27276
|
+
"onUpdate:modelValue": y[1] || (y[1] = (w) => a.value = w),
|
|
27277
27277
|
options: l.value
|
|
27278
27278
|
}, null, 8, ["modelValue", "options"]),
|
|
27279
27279
|
N(oe(Fr), {
|
|
27280
27280
|
modelValue: p.value,
|
|
27281
|
-
"onUpdate:modelValue":
|
|
27281
|
+
"onUpdate:modelValue": y[2] || (y[2] = (w) => p.value = w),
|
|
27282
27282
|
options: h.value
|
|
27283
27283
|
}, null, 8, ["modelValue", "options"]),
|
|
27284
27284
|
N(oe(Fr), {
|
|
27285
27285
|
modelValue: u.value,
|
|
27286
|
-
"onUpdate:modelValue":
|
|
27286
|
+
"onUpdate:modelValue": y[3] || (y[3] = (w) => u.value = w),
|
|
27287
27287
|
options: f.value
|
|
27288
27288
|
}, null, 8, ["modelValue", "options"]),
|
|
27289
27289
|
tt(b("input", {
|
|
27290
|
-
"onUpdate:modelValue":
|
|
27290
|
+
"onUpdate:modelValue": y[4] || (y[4] = (w) => m.value = w),
|
|
27291
27291
|
type: "number",
|
|
27292
27292
|
min: "0"
|
|
27293
27293
|
}, null, 512), [
|
|
@@ -27300,14 +27300,14 @@ const Npe = /* @__PURE__ */ ue({
|
|
|
27300
27300
|
]),
|
|
27301
27301
|
N(oe(Fr), {
|
|
27302
27302
|
modelValue: v.value,
|
|
27303
|
-
"onUpdate:modelValue":
|
|
27304
|
-
options:
|
|
27303
|
+
"onUpdate:modelValue": y[5] || (y[5] = (w) => v.value = w),
|
|
27304
|
+
options: _.value
|
|
27305
27305
|
}, null, 8, ["modelValue", "options"]),
|
|
27306
27306
|
N(Se, {
|
|
27307
27307
|
class: "ao-rule-line__remove",
|
|
27308
27308
|
"icon-name": "CloseRounded",
|
|
27309
27309
|
variant: "ghost",
|
|
27310
|
-
onClick:
|
|
27310
|
+
onClick: y[6] || (y[6] = (w) => g.$emit("close"))
|
|
27311
27311
|
})
|
|
27312
27312
|
]),
|
|
27313
27313
|
_: 1
|
|
@@ -27491,7 +27491,7 @@ const Bpe = {
|
|
|
27491
27491
|
itemType: dt.PHASES,
|
|
27492
27492
|
data: { name: G }
|
|
27493
27493
|
});
|
|
27494
|
-
},
|
|
27494
|
+
}, _ = (V) => {
|
|
27495
27495
|
o("updateItem", V);
|
|
27496
27496
|
}, g = (V) => {
|
|
27497
27497
|
if (!a.value)
|
|
@@ -27511,7 +27511,7 @@ const Bpe = {
|
|
|
27511
27511
|
phaseId: V.phaseId
|
|
27512
27512
|
}
|
|
27513
27513
|
});
|
|
27514
|
-
},
|
|
27514
|
+
}, y = (V) => {
|
|
27515
27515
|
o("removeItem", {
|
|
27516
27516
|
itemType: dt.MILESTONES,
|
|
27517
27517
|
templateId: r.templateId,
|
|
@@ -27686,8 +27686,8 @@ const Bpe = {
|
|
|
27686
27686
|
"milestone-id": (ie = l.value) == null ? void 0 : ie.id,
|
|
27687
27687
|
onAddMilestone: g,
|
|
27688
27688
|
onUpdateMilestone: w,
|
|
27689
|
-
onUpdatePhase:
|
|
27690
|
-
onRemoveMilestone:
|
|
27689
|
+
onUpdatePhase: _,
|
|
27690
|
+
onRemoveMilestone: y
|
|
27691
27691
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : F("", !0)
|
|
27692
27692
|
]),
|
|
27693
27693
|
b("li", jpe, [
|
|
@@ -28762,9 +28762,13 @@ const yhe = { class: "color-picker-wrapper" }, Js = /* @__PURE__ */ ue({
|
|
|
28762
28762
|
setup(t, { emit: e }) {
|
|
28763
28763
|
const n = t, r = e, o = ee(!1), i = ee(null), s = ee(0), a = ee(0), l = ee(n.color), c = async (h) => {
|
|
28764
28764
|
l.value = n.color, o.value = !0, await Kt();
|
|
28765
|
-
const m = h.getBoundingClientRect(), v = i.value,
|
|
28766
|
-
s.value = w ? m.top -
|
|
28767
|
-
window.addEventListener(
|
|
28765
|
+
const m = h.getBoundingClientRect(), v = i.value, _ = (v == null ? void 0 : v.offsetHeight) || 300, g = window.innerHeight - m.bottom, y = m.top, w = g < _ && y > _;
|
|
28766
|
+
s.value = w ? m.top - _ - 8 : m.bottom + 8, a.value = m.left, setTimeout(() => {
|
|
28767
|
+
window.addEventListener(
|
|
28768
|
+
"pointerdown",
|
|
28769
|
+
d,
|
|
28770
|
+
!0
|
|
28771
|
+
);
|
|
28768
28772
|
}, 0);
|
|
28769
28773
|
}, u = L(() => ({
|
|
28770
28774
|
position: "fixed",
|
|
@@ -28772,27 +28776,33 @@ const yhe = { class: "color-picker-wrapper" }, Js = /* @__PURE__ */ ue({
|
|
|
28772
28776
|
left: `${a.value}px`,
|
|
28773
28777
|
zIndex: 1e3
|
|
28774
28778
|
})), f = () => {
|
|
28775
|
-
o.value = !1,
|
|
28779
|
+
o.value = !1, l.value !== n.color && r("update:color", l.value), window.removeEventListener(
|
|
28780
|
+
"pointerdown",
|
|
28781
|
+
d,
|
|
28782
|
+
!0
|
|
28783
|
+
);
|
|
28776
28784
|
}, d = (h) => {
|
|
28777
28785
|
const m = h.target;
|
|
28778
28786
|
i.value && !i.value.contains(m) && f();
|
|
28787
|
+
}, p = (h) => {
|
|
28788
|
+
const { r: m, g: v, b: _, a: g } = h.rgba;
|
|
28789
|
+
l.value = `rgba(${m}, ${v}, ${_}, ${g})`;
|
|
28779
28790
|
};
|
|
28780
|
-
|
|
28781
|
-
window.removeEventListener("click", d);
|
|
28782
|
-
}), Ne(
|
|
28791
|
+
return Ne(
|
|
28783
28792
|
() => n.color,
|
|
28784
28793
|
(h) => {
|
|
28785
|
-
l.value = h;
|
|
28794
|
+
o.value || (l.value = h);
|
|
28786
28795
|
}
|
|
28787
|
-
)
|
|
28788
|
-
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
|
|
28792
|
-
|
|
28796
|
+
), Ds(() => {
|
|
28797
|
+
window.removeEventListener(
|
|
28798
|
+
"pointerdown",
|
|
28799
|
+
d,
|
|
28800
|
+
!0
|
|
28801
|
+
);
|
|
28802
|
+
}), (h, m) => (k(), $("div", yhe, [
|
|
28793
28803
|
ke(h.$slots, "clickable", {
|
|
28794
28804
|
openPicker: c,
|
|
28795
|
-
bgColor:
|
|
28805
|
+
bgColor: l.value
|
|
28796
28806
|
}),
|
|
28797
28807
|
o.value ? (k(), $("div", {
|
|
28798
28808
|
key: 0,
|
|
@@ -28804,7 +28814,7 @@ const yhe = { class: "color-picker-wrapper" }, Js = /* @__PURE__ */ ue({
|
|
|
28804
28814
|
N(oe(ci), {
|
|
28805
28815
|
class: "color-picker-box",
|
|
28806
28816
|
theme: "light",
|
|
28807
|
-
color:
|
|
28817
|
+
color: l.value,
|
|
28808
28818
|
onChangeColor: p
|
|
28809
28819
|
}, null, 8, ["color"])
|
|
28810
28820
|
], 4)) : F("", !0)
|
|
@@ -28841,17 +28851,17 @@ const bhe = { class: "ao-card-project-phase__header" }, Che = { class: "ao-card-
|
|
|
28841
28851
|
}, i = L(() => {
|
|
28842
28852
|
var m;
|
|
28843
28853
|
return ((m = n.milestones) == null ? void 0 : m.reduce(
|
|
28844
|
-
(v,
|
|
28854
|
+
(v, _) => {
|
|
28845
28855
|
var g;
|
|
28846
|
-
return v + ((g =
|
|
28856
|
+
return v + ((g = _.activities) == null ? void 0 : g.reduce((y, w) => y + (w.estimation || 0), 0));
|
|
28847
28857
|
},
|
|
28848
28858
|
0
|
|
28849
28859
|
)) || 0;
|
|
28850
28860
|
}), s = L(() => !n.milestones || !n.timeTrackingData ? 0 : n.milestones.reduce((m, v) => {
|
|
28851
|
-
var
|
|
28852
|
-
return m + (((
|
|
28861
|
+
var _;
|
|
28862
|
+
return m + (((_ = v.activities) == null ? void 0 : _.reduce((g, y) => {
|
|
28853
28863
|
var S;
|
|
28854
|
-
const w = (S = n.timeTrackingData) == null ? void 0 : S[
|
|
28864
|
+
const w = (S = n.timeTrackingData) == null ? void 0 : S[y.id];
|
|
28855
28865
|
return g + ((w == null ? void 0 : w.timeSpent) || 0);
|
|
28856
28866
|
}, 0)) || 0);
|
|
28857
28867
|
}, 0)), a = L(() => n.estimationUnit === "days" ? "d" : "h"), l = L(() => gl(s.value, n.estimationUnit)), c = L(() => {
|
|
@@ -28872,20 +28882,20 @@ const bhe = { class: "ao-card-project-phase__header" }, Che = { class: "ao-card-
|
|
|
28872
28882
|
});
|
|
28873
28883
|
}
|
|
28874
28884
|
}), h = (m, v) => {
|
|
28875
|
-
const
|
|
28876
|
-
|
|
28885
|
+
const _ = m.target;
|
|
28886
|
+
_.closest("button") || _.closest("input") || _.closest(".ao-title") || v(_);
|
|
28877
28887
|
};
|
|
28878
28888
|
return (m, v) => (k(), Y(Js, {
|
|
28879
28889
|
color: p.value,
|
|
28880
|
-
"onUpdate:color": v[2] || (v[2] = (
|
|
28890
|
+
"onUpdate:color": v[2] || (v[2] = (_) => p.value = _)
|
|
28881
28891
|
}, {
|
|
28882
|
-
clickable: se(({ openPicker:
|
|
28892
|
+
clickable: se(({ openPicker: _, bgColor: g }) => [
|
|
28883
28893
|
N(Jl, {
|
|
28884
28894
|
class: "ao-card-project-phase",
|
|
28885
28895
|
"is-clickable": t.isEditable,
|
|
28886
28896
|
color: g,
|
|
28887
28897
|
"with-left-border": !0,
|
|
28888
|
-
onClick: (
|
|
28898
|
+
onClick: (y) => h(y, _)
|
|
28889
28899
|
}, $s({
|
|
28890
28900
|
default: se(() => [
|
|
28891
28901
|
b("div", Che, [
|
|
@@ -28924,7 +28934,7 @@ const bhe = { class: "ao-card-project-phase__header" }, Che = { class: "ao-card-
|
|
|
28924
28934
|
}, [
|
|
28925
28935
|
t.isEditable ? tt((k(), $("input", {
|
|
28926
28936
|
key: 0,
|
|
28927
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
28937
|
+
"onUpdate:modelValue": v[1] || (v[1] = (y) => d.value = y),
|
|
28928
28938
|
class: "ao-card-project-phase__deadline ao-card-project-phase__deadline--input",
|
|
28929
28939
|
type: "date"
|
|
28930
28940
|
}, null, 512)), [
|
|
@@ -29141,10 +29151,10 @@ const Whe = ["onKeydown"], ll = /* @__PURE__ */ ue({
|
|
|
29141
29151
|
emits: ["open", "close"],
|
|
29142
29152
|
setup(t, { expose: e, emit: n }) {
|
|
29143
29153
|
const r = t, o = n, i = ee(!1), s = ee(null), a = ee(null), l = ee(null), c = () => {
|
|
29144
|
-
const
|
|
29145
|
-
if (!
|
|
29154
|
+
const _ = s.value;
|
|
29155
|
+
if (!_)
|
|
29146
29156
|
return;
|
|
29147
|
-
const g =
|
|
29157
|
+
const g = _.getBoundingClientRect();
|
|
29148
29158
|
l.value = {
|
|
29149
29159
|
top: g.top,
|
|
29150
29160
|
left: g.left,
|
|
@@ -29152,32 +29162,32 @@ const Whe = ["onKeydown"], ll = /* @__PURE__ */ ue({
|
|
|
29152
29162
|
height: g.height
|
|
29153
29163
|
};
|
|
29154
29164
|
}, u = L(() => {
|
|
29155
|
-
const
|
|
29156
|
-
if (!
|
|
29165
|
+
const _ = l.value;
|
|
29166
|
+
if (!_)
|
|
29157
29167
|
return {};
|
|
29158
|
-
const g =
|
|
29168
|
+
const g = _.top + _.height + window.scrollY + 4;
|
|
29159
29169
|
return r.placement === "bottom-end" ? {
|
|
29160
29170
|
position: "absolute",
|
|
29161
29171
|
top: `${g}px`,
|
|
29162
29172
|
left: "auto",
|
|
29163
29173
|
right: `${Math.max(
|
|
29164
29174
|
0,
|
|
29165
|
-
window.innerWidth - (
|
|
29175
|
+
window.innerWidth - (_.left + _.width + window.scrollX)
|
|
29166
29176
|
)}px`,
|
|
29167
29177
|
zIndex: 200
|
|
29168
29178
|
} : {
|
|
29169
29179
|
position: "absolute",
|
|
29170
29180
|
top: `${g}px`,
|
|
29171
|
-
left: `${
|
|
29181
|
+
left: `${_.left + window.scrollX}px`,
|
|
29172
29182
|
zIndex: 200
|
|
29173
29183
|
};
|
|
29174
29184
|
}), f = async () => {
|
|
29175
29185
|
if (i.value)
|
|
29176
29186
|
return;
|
|
29177
29187
|
c(), i.value = !0, o("open"), await Kt();
|
|
29178
|
-
const
|
|
29179
|
-
if (
|
|
29180
|
-
const g =
|
|
29188
|
+
const _ = a.value;
|
|
29189
|
+
if (_) {
|
|
29190
|
+
const g = _.querySelector(
|
|
29181
29191
|
'button, [href], [tabindex]:not([tabindex="-1"])'
|
|
29182
29192
|
);
|
|
29183
29193
|
g == null || g.focus();
|
|
@@ -29186,19 +29196,19 @@ const Whe = ["onKeydown"], ll = /* @__PURE__ */ ue({
|
|
|
29186
29196
|
i.value && (i.value = !1, o("close"));
|
|
29187
29197
|
}, p = () => {
|
|
29188
29198
|
i.value ? d() : f();
|
|
29189
|
-
}, h = (
|
|
29190
|
-
var
|
|
29199
|
+
}, h = (_) => {
|
|
29200
|
+
var y, w;
|
|
29191
29201
|
if (!i.value)
|
|
29192
29202
|
return;
|
|
29193
|
-
const g =
|
|
29194
|
-
g && ((
|
|
29195
|
-
}, m = (
|
|
29196
|
-
i.value &&
|
|
29203
|
+
const g = _.target;
|
|
29204
|
+
g && ((y = s.value) != null && y.contains(g) || (w = a.value) != null && w.contains(g) || d());
|
|
29205
|
+
}, m = (_) => {
|
|
29206
|
+
i.value && _.key === "Escape" && (_.preventDefault(), d());
|
|
29197
29207
|
}, v = () => {
|
|
29198
29208
|
i.value && c();
|
|
29199
29209
|
};
|
|
29200
|
-
return Ne(i, (
|
|
29201
|
-
|
|
29210
|
+
return Ne(i, (_) => {
|
|
29211
|
+
_ ? (document.addEventListener(
|
|
29202
29212
|
"mousedown",
|
|
29203
29213
|
h,
|
|
29204
29214
|
!0
|
|
@@ -29250,13 +29260,13 @@ const Whe = ["onKeydown"], ll = /* @__PURE__ */ ue({
|
|
|
29250
29260
|
open: f,
|
|
29251
29261
|
close: d,
|
|
29252
29262
|
toggle: p
|
|
29253
|
-
}), (
|
|
29263
|
+
}), (_, g) => (k(), $(Me, null, [
|
|
29254
29264
|
b("span", zt({
|
|
29255
29265
|
ref_key: "triggerRef",
|
|
29256
29266
|
ref: s,
|
|
29257
29267
|
class: "ao-popover-menu"
|
|
29258
|
-
},
|
|
29259
|
-
ke(
|
|
29268
|
+
}, _.$attrs), [
|
|
29269
|
+
ke(_.$slots, "trigger", {
|
|
29260
29270
|
open: f,
|
|
29261
29271
|
toggle: p
|
|
29262
29272
|
})
|
|
@@ -29271,7 +29281,7 @@ const Whe = ["onKeydown"], ll = /* @__PURE__ */ ue({
|
|
|
29271
29281
|
role: "menu",
|
|
29272
29282
|
onKeydown: jr(Ae(d, ["stop"]), ["esc"])
|
|
29273
29283
|
}, [
|
|
29274
|
-
ke(
|
|
29284
|
+
ke(_.$slots, "menu", { close: d })
|
|
29275
29285
|
], 44, Whe)) : F("", !0)
|
|
29276
29286
|
]))
|
|
29277
29287
|
], 64));
|
|
@@ -29466,7 +29476,7 @@ const Qhe = ["onKeydown"], eme = { class: "ao-modal ao-bulk-insert-modal" }, tme
|
|
|
29466
29476
|
);
|
|
29467
29477
|
const v = () => {
|
|
29468
29478
|
n.isLoading || (r("update:open", !1), r("close"));
|
|
29469
|
-
},
|
|
29479
|
+
}, _ = () => {
|
|
29470
29480
|
h.value && r(
|
|
29471
29481
|
"submit",
|
|
29472
29482
|
u.value.data
|
|
@@ -29475,7 +29485,7 @@ const Qhe = ["onKeydown"], eme = { class: "ao-modal ao-bulk-insert-modal" }, tme
|
|
|
29475
29485
|
w === 0 ? o("project.bulk.modal.noSpace") : w === 1 ? o("project.bulk.modal.oneSpace") : o("project.bulk.modal.spaces", {
|
|
29476
29486
|
count: w
|
|
29477
29487
|
})
|
|
29478
|
-
),
|
|
29488
|
+
), y = (w) => String(
|
|
29479
29489
|
o(
|
|
29480
29490
|
l[w.code],
|
|
29481
29491
|
w.params ?? {}
|
|
@@ -29515,7 +29525,7 @@ const Qhe = ["onKeydown"], eme = { class: "ao-modal ao-bulk-insert-modal" }, tme
|
|
|
29515
29525
|
b("div", ome, [
|
|
29516
29526
|
b("form", {
|
|
29517
29527
|
class: "ao-bulk-insert-modal__form",
|
|
29518
|
-
onSubmit: Ae(
|
|
29528
|
+
onSubmit: Ae(_, ["prevent"])
|
|
29519
29529
|
}, [
|
|
29520
29530
|
t.hint ? (k(), $("p", ime, H(t.hint), 1)) : F("", !0),
|
|
29521
29531
|
tt(b("textarea", {
|
|
@@ -29536,7 +29546,7 @@ const Qhe = ["onKeydown"], eme = { class: "ao-modal ao-bulk-insert-modal" }, tme
|
|
|
29536
29546
|
class: "ao-bulk-insert-modal__error"
|
|
29537
29547
|
}, H(oe(o)("project.bulk.modal.lineError", {
|
|
29538
29548
|
line: C.line,
|
|
29539
|
-
message:
|
|
29549
|
+
message: y(C)
|
|
29540
29550
|
})), 1))), 128))
|
|
29541
29551
|
])) : i.value.trim().length > 0 ? (k(), $("p", lme, H(oe(o)("project.bulk.modal.count", {
|
|
29542
29552
|
count: m.value
|
|
@@ -29654,17 +29664,17 @@ const _me = { class: "ao-mapping-card-project-phase__header" }, yme = { class: "
|
|
|
29654
29664
|
}, i = L(() => {
|
|
29655
29665
|
var m;
|
|
29656
29666
|
return ((m = n.milestones) == null ? void 0 : m.reduce(
|
|
29657
|
-
(v,
|
|
29667
|
+
(v, _) => {
|
|
29658
29668
|
var g;
|
|
29659
|
-
return v + ((g =
|
|
29669
|
+
return v + ((g = _.activities) == null ? void 0 : g.reduce((y, w) => y + (w.estimation || 0), 0));
|
|
29660
29670
|
},
|
|
29661
29671
|
0
|
|
29662
29672
|
)) || 0;
|
|
29663
29673
|
}), s = L(() => !n.milestones || !n.timeTrackingData ? 0 : n.milestones.reduce((m, v) => {
|
|
29664
|
-
var
|
|
29665
|
-
return m + (((
|
|
29674
|
+
var _;
|
|
29675
|
+
return m + (((_ = v.activities) == null ? void 0 : _.reduce((g, y) => {
|
|
29666
29676
|
var S;
|
|
29667
|
-
const w = (S = n.timeTrackingData) == null ? void 0 : S[
|
|
29677
|
+
const w = (S = n.timeTrackingData) == null ? void 0 : S[y.id];
|
|
29668
29678
|
return g + ((w == null ? void 0 : w.timeSpent) || 0);
|
|
29669
29679
|
}, 0)) || 0);
|
|
29670
29680
|
}, 0)), a = L(() => n.estimationUnit === "days" ? "d" : "h"), l = L(() => gl(s.value, n.estimationUnit)), c = L(() => {
|
|
@@ -29685,20 +29695,20 @@ const _me = { class: "ao-mapping-card-project-phase__header" }, yme = { class: "
|
|
|
29685
29695
|
});
|
|
29686
29696
|
}
|
|
29687
29697
|
}), h = (m, v) => {
|
|
29688
|
-
const
|
|
29689
|
-
|
|
29698
|
+
const _ = m.target;
|
|
29699
|
+
_.closest("button") || _.closest("input") || _.closest(".ao-title") || v();
|
|
29690
29700
|
};
|
|
29691
29701
|
return (m, v) => (k(), Y(Js, {
|
|
29692
29702
|
color: p.value,
|
|
29693
|
-
"onUpdate:color": v[2] || (v[2] = (
|
|
29703
|
+
"onUpdate:color": v[2] || (v[2] = (_) => p.value = _)
|
|
29694
29704
|
}, {
|
|
29695
|
-
clickable: se(({ openPicker:
|
|
29705
|
+
clickable: se(({ openPicker: _, bgColor: g }) => [
|
|
29696
29706
|
N(Jl, {
|
|
29697
29707
|
class: "ao-mapping-card-project-phase",
|
|
29698
29708
|
"is-clickable": t.isEditable,
|
|
29699
29709
|
color: g,
|
|
29700
29710
|
"with-left-border": !0,
|
|
29701
|
-
onClick: (
|
|
29711
|
+
onClick: (y) => h(y, _)
|
|
29702
29712
|
}, $s({
|
|
29703
29713
|
default: se(() => [
|
|
29704
29714
|
b("div", yme, [
|
|
@@ -29737,7 +29747,7 @@ const _me = { class: "ao-mapping-card-project-phase__header" }, yme = { class: "
|
|
|
29737
29747
|
}, [
|
|
29738
29748
|
t.isEditable ? tt((k(), $("input", {
|
|
29739
29749
|
key: 0,
|
|
29740
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
29750
|
+
"onUpdate:modelValue": v[1] || (v[1] = (y) => d.value = y),
|
|
29741
29751
|
class: "ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",
|
|
29742
29752
|
type: "date"
|
|
29743
29753
|
}, null, 512)), [
|
|
@@ -29853,7 +29863,7 @@ const Tme = { class: "ao-project-phase" }, $me = {
|
|
|
29853
29863
|
id: E.moved.element.id,
|
|
29854
29864
|
rank: ui(l.value, E.moved.newIndex)
|
|
29855
29865
|
});
|
|
29856
|
-
},
|
|
29866
|
+
}, _ = ee(!1), g = ee(!1), y = (E) => {
|
|
29857
29867
|
g.value = !0;
|
|
29858
29868
|
const A = T0(
|
|
29859
29869
|
E,
|
|
@@ -29863,14 +29873,14 @@ const Tme = { class: "ao-project-phase" }, $me = {
|
|
|
29863
29873
|
phaseId: r.phase.id,
|
|
29864
29874
|
milestones: A,
|
|
29865
29875
|
onSuccess: () => {
|
|
29866
|
-
g.value = !1,
|
|
29876
|
+
g.value = !1, _.value = !1;
|
|
29867
29877
|
},
|
|
29868
29878
|
onError: () => {
|
|
29869
29879
|
g.value = !1;
|
|
29870
29880
|
}
|
|
29871
29881
|
});
|
|
29872
29882
|
};
|
|
29873
|
-
Ne(
|
|
29883
|
+
Ne(_, (E) => {
|
|
29874
29884
|
E && (g.value = !1);
|
|
29875
29885
|
});
|
|
29876
29886
|
const w = ah(), S = L(() => w.path.includes("/mapping")), C = L(() => {
|
|
@@ -29963,7 +29973,7 @@ const Tme = { class: "ao-project-phase" }, $me = {
|
|
|
29963
29973
|
type: "button",
|
|
29964
29974
|
class: "ao-popover-menu__item",
|
|
29965
29975
|
onClick: () => {
|
|
29966
|
-
M(),
|
|
29976
|
+
M(), _.value = !0;
|
|
29967
29977
|
}
|
|
29968
29978
|
}, H(E.$t("project.bulk.menu.bulkInsert")), 9, Nme)
|
|
29969
29979
|
]),
|
|
@@ -30020,14 +30030,14 @@ const Tme = { class: "ao-project-phase" }, $me = {
|
|
|
30020
30030
|
])
|
|
30021
30031
|
], 4)
|
|
30022
30032
|
])),
|
|
30023
|
-
|
|
30033
|
+
_.value ? (k(), Y(Xd, {
|
|
30024
30034
|
key: 1,
|
|
30025
|
-
open:
|
|
30026
|
-
"onUpdate:open": A[1] || (A[1] = (M) =>
|
|
30035
|
+
open: _.value,
|
|
30036
|
+
"onUpdate:open": A[1] || (A[1] = (M) => _.value = M),
|
|
30027
30037
|
title: E.$t("project.bulk.modal.milestone.title"),
|
|
30028
30038
|
"root-type": "milestone",
|
|
30029
30039
|
"is-loading": g.value,
|
|
30030
|
-
onSubmit:
|
|
30040
|
+
onSubmit: y
|
|
30031
30041
|
}, null, 8, ["open", "title", "is-loading"])) : F("", !0)
|
|
30032
30042
|
]));
|
|
30033
30043
|
}
|
|
@@ -30296,11 +30306,11 @@ const Qme = { class: "ao-project" }, ege = ["onClick"], tge = ["onClick"], nge =
|
|
|
30296
30306
|
o("archiveMilestone", j);
|
|
30297
30307
|
}, v = (j) => {
|
|
30298
30308
|
o("unarchiveMilestone", j);
|
|
30299
|
-
},
|
|
30309
|
+
}, _ = (j) => {
|
|
30300
30310
|
o("addActivity", j);
|
|
30301
30311
|
}, g = (j) => {
|
|
30302
30312
|
o("bulkAddActivity", j);
|
|
30303
|
-
},
|
|
30313
|
+
}, y = (j) => {
|
|
30304
30314
|
o("update:activity", j);
|
|
30305
30315
|
}, w = (j) => {
|
|
30306
30316
|
o("archiveActivity", j);
|
|
@@ -30464,9 +30474,9 @@ const Qme = { class: "ao-project" }, ege = ["onClick"], tge = ["onClick"], nge =
|
|
|
30464
30474
|
"time-tracking-data": t.timeTrackingData,
|
|
30465
30475
|
onClose: ve[4] || (ve[4] = (Re) => j.$router.push({ name: oe(nt).project })),
|
|
30466
30476
|
onUpdateMilestone: h,
|
|
30467
|
-
onAddActivity:
|
|
30477
|
+
onAddActivity: _,
|
|
30468
30478
|
onBulkAddActivity: g,
|
|
30469
|
-
onUpdateActivity:
|
|
30479
|
+
onUpdateActivity: y,
|
|
30470
30480
|
onArchiveActivity: w,
|
|
30471
30481
|
onUnarchiveActivity: S
|
|
30472
30482
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status", "time-tracking-data"]),
|
|
@@ -30488,7 +30498,7 @@ const Qme = { class: "ao-project" }, ege = ["onClick"], tge = ["onClick"], nge =
|
|
|
30488
30498
|
"attachment-enabled": t.attachmentEnabled,
|
|
30489
30499
|
"time-tracking-data": t.timeTrackingData,
|
|
30490
30500
|
"load-attachment-preview": t.loadAttachmentPreview,
|
|
30491
|
-
"onUpdate:activity":
|
|
30501
|
+
"onUpdate:activity": y,
|
|
30492
30502
|
onAddSubtask: C,
|
|
30493
30503
|
onUpdateSubtask: T,
|
|
30494
30504
|
onDeleteSubtask: E,
|
|
@@ -30680,15 +30690,15 @@ const oge = { class: "ao-card-feed__header" }, ige = {
|
|
|
30680
30690
|
b("div", pge, [
|
|
30681
30691
|
b("div", hge, [
|
|
30682
30692
|
b("ul", mge, [
|
|
30683
|
-
(k(!0), $(Me, null, Ye(l.value, (
|
|
30684
|
-
key:
|
|
30693
|
+
(k(!0), $(Me, null, Ye(l.value, (_) => (k(), $(Me, {
|
|
30694
|
+
key: _.id
|
|
30685
30695
|
}, [
|
|
30686
|
-
|
|
30696
|
+
_ ? (k(), $("li", gge, [
|
|
30687
30697
|
N(xr, {
|
|
30688
|
-
"user-name": oe(Sh)(
|
|
30689
|
-
"avatar-url":
|
|
30698
|
+
"user-name": oe(Sh)(_),
|
|
30699
|
+
"avatar-url": _.avatarUrl,
|
|
30690
30700
|
"is-closable": !0,
|
|
30691
|
-
onClose: () => u(
|
|
30701
|
+
onClose: () => u(_.id)
|
|
30692
30702
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
30693
30703
|
])) : F("", !0)
|
|
30694
30704
|
], 64))), 128))
|
|
@@ -30850,7 +30860,7 @@ const Ege = { class: "ao-project-milestone" }, Tge = { class: "ao-project-milest
|
|
|
30850
30860
|
);
|
|
30851
30861
|
const v = (A) => {
|
|
30852
30862
|
o("updateActivity", A);
|
|
30853
|
-
},
|
|
30863
|
+
}, _ = (A) => {
|
|
30854
30864
|
c.value && "moved" in A && o("updateActivity", {
|
|
30855
30865
|
id: A.moved.element.id,
|
|
30856
30866
|
rank: ui(
|
|
@@ -30869,7 +30879,7 @@ const Ege = { class: "ao-project-milestone" }, Tge = { class: "ao-project-milest
|
|
|
30869
30879
|
color: A
|
|
30870
30880
|
});
|
|
30871
30881
|
}
|
|
30872
|
-
}),
|
|
30882
|
+
}), y = L({
|
|
30873
30883
|
get: () => {
|
|
30874
30884
|
var A;
|
|
30875
30885
|
return ((A = l.value) == null ? void 0 : A.deadline) ?? "";
|
|
@@ -30953,13 +30963,13 @@ const Ege = { class: "ao-project-milestone" }, Tge = { class: "ao-project-milest
|
|
|
30953
30963
|
b("div", Lge, [
|
|
30954
30964
|
b("label", Ige, [
|
|
30955
30965
|
tt(b("input", {
|
|
30956
|
-
"onUpdate:modelValue": M[1] || (M[1] = (x) =>
|
|
30966
|
+
"onUpdate:modelValue": M[1] || (M[1] = (x) => y.value = x),
|
|
30957
30967
|
class: "ao-milestone__field ao-milestone__date-field",
|
|
30958
30968
|
type: "date"
|
|
30959
30969
|
}, null, 512), [
|
|
30960
30970
|
[
|
|
30961
30971
|
Et,
|
|
30962
|
-
|
|
30972
|
+
y.value,
|
|
30963
30973
|
void 0,
|
|
30964
30974
|
{ lazy: !0 }
|
|
30965
30975
|
]
|
|
@@ -31055,7 +31065,7 @@ const Ege = { class: "ao-project-milestone" }, Tge = { class: "ao-project-milest
|
|
|
31055
31065
|
disabled: !t.isEditable,
|
|
31056
31066
|
"item-key": "id",
|
|
31057
31067
|
group: "kanban"
|
|
31058
|
-
}, A.$attrs, { onChange:
|
|
31068
|
+
}, A.$attrs, { onChange: _ }), {
|
|
31059
31069
|
item: se(({ element: x }) => {
|
|
31060
31070
|
var O, P, U, q, Q;
|
|
31061
31071
|
return [
|
|
@@ -31198,40 +31208,40 @@ const Wge = /* @__PURE__ */ ue({
|
|
|
31198
31208
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "createSprint"],
|
|
31199
31209
|
setup(t, { emit: e }) {
|
|
31200
31210
|
const n = t, r = e, o = L(() => {
|
|
31201
|
-
var
|
|
31202
|
-
return (
|
|
31211
|
+
var _;
|
|
31212
|
+
return (_ = n.phases) == null ? void 0 : _.find((g) => g.id === n.phaseId);
|
|
31203
31213
|
}), i = L(
|
|
31204
31214
|
() => {
|
|
31205
|
-
var
|
|
31206
|
-
return (
|
|
31215
|
+
var _;
|
|
31216
|
+
return (_ = n.phases) == null ? void 0 : _.flatMap((g) => g.milestones);
|
|
31207
31217
|
}
|
|
31208
31218
|
), s = L(() => {
|
|
31209
|
-
var
|
|
31210
|
-
return (
|
|
31219
|
+
var _;
|
|
31220
|
+
return (_ = i.value) == null ? void 0 : _.find((g) => g.id === n.milestoneId);
|
|
31211
31221
|
}), a = L(() => {
|
|
31212
|
-
var
|
|
31213
|
-
return n.selectedActivity ?? ((
|
|
31214
|
-
}), l = (
|
|
31215
|
-
r("update:activity",
|
|
31216
|
-
}, c = (
|
|
31217
|
-
r("addSubtask",
|
|
31218
|
-
}, u = (
|
|
31219
|
-
r("updateSubtask",
|
|
31220
|
-
}, f = (
|
|
31221
|
-
r("deleteSubtask",
|
|
31222
|
-
}, d = (
|
|
31223
|
-
r("addFiles",
|
|
31224
|
-
}, p = (
|
|
31225
|
-
r("removeFile",
|
|
31226
|
-
}, h = (
|
|
31227
|
-
r("addComment",
|
|
31228
|
-
}, m = (
|
|
31229
|
-
r("updateComment",
|
|
31230
|
-
}, v = (
|
|
31231
|
-
r("removeComment",
|
|
31222
|
+
var _;
|
|
31223
|
+
return n.selectedActivity ?? ((_ = n.activities) == null ? void 0 : _.find((g) => g.id === n.activityId));
|
|
31224
|
+
}), l = (_) => {
|
|
31225
|
+
r("update:activity", _);
|
|
31226
|
+
}, c = (_) => {
|
|
31227
|
+
r("addSubtask", _);
|
|
31228
|
+
}, u = (_) => {
|
|
31229
|
+
r("updateSubtask", _);
|
|
31230
|
+
}, f = (_) => {
|
|
31231
|
+
r("deleteSubtask", _);
|
|
31232
|
+
}, d = (_) => {
|
|
31233
|
+
r("addFiles", _);
|
|
31234
|
+
}, p = (_) => {
|
|
31235
|
+
r("removeFile", _);
|
|
31236
|
+
}, h = (_) => {
|
|
31237
|
+
r("addComment", _);
|
|
31238
|
+
}, m = (_) => {
|
|
31239
|
+
r("updateComment", _);
|
|
31240
|
+
}, v = (_) => {
|
|
31241
|
+
r("removeComment", _);
|
|
31232
31242
|
};
|
|
31233
|
-
return (
|
|
31234
|
-
var
|
|
31243
|
+
return (_, g) => {
|
|
31244
|
+
var y, w;
|
|
31235
31245
|
return a.value ? (k(), Y(zd, {
|
|
31236
31246
|
key: 0,
|
|
31237
31247
|
activity: a.value,
|
|
@@ -31244,14 +31254,14 @@ const Wge = /* @__PURE__ */ ue({
|
|
|
31244
31254
|
"user-id": t.userId,
|
|
31245
31255
|
"is-task-checkable": t.isTaskCheckable,
|
|
31246
31256
|
statuses: t.statuses,
|
|
31247
|
-
breadcrumbs: `${(
|
|
31257
|
+
breadcrumbs: `${(y = o.value) == null ? void 0 : y.name} / ${(w = s.value) == null ? void 0 : w.name}`,
|
|
31248
31258
|
"is-editable": t.isEditable,
|
|
31249
31259
|
"attachment-enabled": t.attachmentEnabled,
|
|
31250
31260
|
projects: [t.project],
|
|
31251
31261
|
"time-tracking-data": t.timeTrackingData,
|
|
31252
31262
|
"load-attachment-preview": n.loadAttachmentPreview,
|
|
31253
31263
|
sprints: t.sprints,
|
|
31254
|
-
onClose:
|
|
31264
|
+
onClose: _.$router.back,
|
|
31255
31265
|
"onUpdate:activity": l,
|
|
31256
31266
|
onAddSubtask: c,
|
|
31257
31267
|
onUpdateSubtask: u,
|
|
@@ -31264,7 +31274,7 @@ const Wge = /* @__PURE__ */ ue({
|
|
|
31264
31274
|
onCreateSprint: g[0] || (g[0] = (S) => r("createSprint", S))
|
|
31265
31275
|
}, {
|
|
31266
31276
|
default: se((S) => [
|
|
31267
|
-
ke(
|
|
31277
|
+
ke(_.$slots, "default", Ms(Os(S)))
|
|
31268
31278
|
]),
|
|
31269
31279
|
_: 3
|
|
31270
31280
|
}, 8, ["activity", "activity-types", "dev-statuses", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "time-tracking-data", "load-attachment-preview", "sprints", "onClose"])) : F("", !0);
|
|
@@ -31374,7 +31384,7 @@ function o0e(t, e, n = {}) {
|
|
|
31374
31384
|
threshold: i
|
|
31375
31385
|
}
|
|
31376
31386
|
);
|
|
31377
|
-
h.forEach((
|
|
31387
|
+
h.forEach((_) => _ && v.observe(_)), u = () => {
|
|
31378
31388
|
v.disconnect(), u = ps;
|
|
31379
31389
|
};
|
|
31380
31390
|
},
|
|
@@ -31501,7 +31511,7 @@ const i0e = {
|
|
|
31501
31511
|
onEnd: d[3] || (d[3] = (p) => u.value = !1)
|
|
31502
31512
|
}), {
|
|
31503
31513
|
item: se(({ element: p }) => {
|
|
31504
|
-
var h, m, v,
|
|
31514
|
+
var h, m, v, _, g, y, w, S, C, T;
|
|
31505
31515
|
return [
|
|
31506
31516
|
N(O0, {
|
|
31507
31517
|
id: p.id,
|
|
@@ -31510,8 +31520,8 @@ const i0e = {
|
|
|
31510
31520
|
"project-name": (h = p.project) == null ? void 0 : h.name,
|
|
31511
31521
|
"project-id": (m = p.project) == null ? void 0 : m.id,
|
|
31512
31522
|
"project-color": (v = p.project) == null ? void 0 : v.color,
|
|
31513
|
-
"phase-name": (g = (
|
|
31514
|
-
"milestone-name": (
|
|
31523
|
+
"phase-name": (g = (_ = p.milestone) == null ? void 0 : _.phase) == null ? void 0 : g.name,
|
|
31524
|
+
"milestone-name": (y = p.milestone) == null ? void 0 : y.name,
|
|
31515
31525
|
"milestone-color": (w = p.milestone) == null ? void 0 : w.color,
|
|
31516
31526
|
deadline: p.deadline,
|
|
31517
31527
|
rules: ((S = p.rules) == null ? void 0 : S.length) || 0,
|
|
@@ -31672,13 +31682,13 @@ const v0e = { class: "ao-sprint-metrics" }, _0e = ["onClick"], y0e = { class: "a
|
|
|
31672
31682
|
}, m = (I) => s.value[I], v = (I, x) => {
|
|
31673
31683
|
const O = parseFloat(x);
|
|
31674
31684
|
isNaN(O) || O <= 0 ? delete s.value[I] : s.value[I] = O;
|
|
31675
|
-
},
|
|
31685
|
+
}, _ = (I) => {
|
|
31676
31686
|
const x = m(I);
|
|
31677
31687
|
return x === void 0 ? 0 : c(I) * x;
|
|
31678
31688
|
}, g = (I) => {
|
|
31679
|
-
const x =
|
|
31689
|
+
const x = _(I);
|
|
31680
31690
|
return x <= 0 ? null : d(I) / x;
|
|
31681
|
-
},
|
|
31691
|
+
}, y = (I) => {
|
|
31682
31692
|
const x = g(I);
|
|
31683
31693
|
return x === null ? 0 : Math.round(x * 100);
|
|
31684
31694
|
}, w = (I) => {
|
|
@@ -31810,7 +31820,7 @@ const v0e = { class: "ao-sprint-metrics" }, _0e = ["onClick"], y0e = { class: "a
|
|
|
31810
31820
|
b("div", J0e, H(oe(r)("sprintMetrics.planningProgress")), 1),
|
|
31811
31821
|
b("div", X0e, [
|
|
31812
31822
|
g(O.id) !== null ? (k(), $(Me, { key: 0 }, [
|
|
31813
|
-
In(H(
|
|
31823
|
+
In(H(y(O.id)) + "% · " + H(E(d(O.id))) + " / " + H(E(_(O.id))) + " pts ", 1)
|
|
31814
31824
|
], 64)) : (k(), $(Me, { key: 1 }, [
|
|
31815
31825
|
In(" — ")
|
|
31816
31826
|
], 64))
|
|
@@ -31913,11 +31923,11 @@ const eve = /* @__PURE__ */ fe(Q0e, [["__scopeId", "data-v-e4ad9a7b"]]), tve = {
|
|
|
31913
31923
|
ht && (Ze.sprintId = ht.id, Ze.projectId = ht.projectId);
|
|
31914
31924
|
}
|
|
31915
31925
|
d.value = !0, o("addActivity", Ze);
|
|
31916
|
-
},
|
|
31926
|
+
}, _ = (W, me) => {
|
|
31917
31927
|
d.value = !1, o("update:filters", { ...r.filters, [W]: me });
|
|
31918
31928
|
}, g = L(
|
|
31919
31929
|
() => r.project ? [r.project] : r.projects ?? []
|
|
31920
|
-
),
|
|
31930
|
+
), y = L(() => g.value.map((W) => ({
|
|
31921
31931
|
value: W.id,
|
|
31922
31932
|
label: W.name
|
|
31923
31933
|
}))), w = L(() => r.sprints.map((W) => ({
|
|
@@ -32030,12 +32040,12 @@ const eve = /* @__PURE__ */ fe(Q0e, [["__scopeId", "data-v-e4ad9a7b"]]), tve = {
|
|
|
32030
32040
|
key: 0,
|
|
32031
32041
|
"model-value": t.filters[oe(Gn).project],
|
|
32032
32042
|
mode: "tags",
|
|
32033
|
-
options:
|
|
32043
|
+
options: y.value,
|
|
32034
32044
|
"close-on-select": !1,
|
|
32035
32045
|
searchable: !0,
|
|
32036
32046
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
32037
32047
|
placeholder: W.$t("feed.filters.project.placeholder"),
|
|
32038
|
-
"onUpdate:modelValue": me[1] || (me[1] = (Ee) =>
|
|
32048
|
+
"onUpdate:modelValue": me[1] || (me[1] = (Ee) => _(oe(Gn).project, Ee))
|
|
32039
32049
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
32040
32050
|
t.feedMode === "dev" ? (k(), Y(Ht, {
|
|
32041
32051
|
key: 1,
|
|
@@ -32047,7 +32057,7 @@ const eve = /* @__PURE__ */ fe(Q0e, [["__scopeId", "data-v-e4ad9a7b"]]), tve = {
|
|
|
32047
32057
|
disabled: !w.value.length,
|
|
32048
32058
|
class: "ao-feed__filter ao-feed__filter__sprints",
|
|
32049
32059
|
placeholder: W.$t("feed.filters.sprint.placeholder"),
|
|
32050
|
-
"onUpdate:modelValue": me[2] || (me[2] = (Ee) =>
|
|
32060
|
+
"onUpdate:modelValue": me[2] || (me[2] = (Ee) => _(oe(Gn).sprint, Ee))
|
|
32051
32061
|
}, null, 8, ["model-value", "options", "disabled", "placeholder"])) : F("", !0),
|
|
32052
32062
|
N(Ht, {
|
|
32053
32063
|
"model-value": t.filters[oe(Gn).milestone],
|
|
@@ -32059,7 +32069,7 @@ const eve = /* @__PURE__ */ fe(Q0e, [["__scopeId", "data-v-e4ad9a7b"]]), tve = {
|
|
|
32059
32069
|
disabled: C.value.length === 0,
|
|
32060
32070
|
class: "ao-feed__filter ao-feed__filter__milestones",
|
|
32061
32071
|
placeholder: W.$t("feed.filters.milestone.placeholder"),
|
|
32062
|
-
"onUpdate:modelValue": me[3] || (me[3] = (Ee) =>
|
|
32072
|
+
"onUpdate:modelValue": me[3] || (me[3] = (Ee) => _(oe(Gn).milestone, Ee))
|
|
32063
32073
|
}, null, 8, ["model-value", "options", "disabled", "placeholder"]),
|
|
32064
32074
|
E.value.length ? (k(), Y(Ht, {
|
|
32065
32075
|
key: 2,
|
|
@@ -32070,7 +32080,7 @@ const eve = /* @__PURE__ */ fe(Q0e, [["__scopeId", "data-v-e4ad9a7b"]]), tve = {
|
|
|
32070
32080
|
searchable: !0,
|
|
32071
32081
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
32072
32082
|
placeholder: W.$t("feed.filters.assignee.placeholder"),
|
|
32073
|
-
"onUpdate:modelValue": me[4] || (me[4] = (Ee) =>
|
|
32083
|
+
"onUpdate:modelValue": me[4] || (me[4] = (Ee) => _(oe(Gn).assignee, Ee))
|
|
32074
32084
|
}, {
|
|
32075
32085
|
tag: se(({
|
|
32076
32086
|
option: Ee,
|
|
@@ -32221,11 +32231,11 @@ const ove = { class: "ao-project-mapping" }, ive = { class: "ao-project-mapping-
|
|
|
32221
32231
|
emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "copyPhaseToTemplate", "applyTemplate", "saveTemplate", "update:showsArchived"],
|
|
32222
32232
|
setup(t, { emit: e }) {
|
|
32223
32233
|
const { t: n } = nn(), r = t, o = e, i = () => {
|
|
32224
|
-
const { name: g, rank:
|
|
32225
|
-
o("addPhase", { name: g, rank:
|
|
32234
|
+
const { name: g, rank: y } = wo(r.phases, "phase", n);
|
|
32235
|
+
o("addPhase", { name: g, rank: y, projectId: r.project.id });
|
|
32226
32236
|
}, s = () => {
|
|
32227
|
-
const g = n("template.defaultName.phase", { idx: 1 }),
|
|
32228
|
-
o("addPhase", { name: g, rank:
|
|
32237
|
+
const g = n("template.defaultName.phase", { idx: 1 }), y = Fs(r.phases);
|
|
32238
|
+
o("addPhase", { name: g, rank: y, projectId: r.project.id });
|
|
32229
32239
|
}, a = (g) => {
|
|
32230
32240
|
o("updatePhase", g);
|
|
32231
32241
|
}, l = (g) => {
|
|
@@ -32234,13 +32244,13 @@ const ove = { class: "ao-project-mapping" }, ive = { class: "ao-project-mapping-
|
|
|
32234
32244
|
o("unarchivePhase", g);
|
|
32235
32245
|
}, u = (g) => {
|
|
32236
32246
|
o("copyPhaseToTemplate", g);
|
|
32237
|
-
}, f = ee(!1), d = ee(!1), p = (g,
|
|
32238
|
-
o("applyTemplate", { templateId: g, projectId:
|
|
32239
|
-
}, h = (g,
|
|
32247
|
+
}, f = ee(!1), d = ee(!1), p = (g, y) => {
|
|
32248
|
+
o("applyTemplate", { templateId: g, projectId: y }), f.value = !1;
|
|
32249
|
+
}, h = (g, y) => {
|
|
32240
32250
|
var C;
|
|
32241
32251
|
const w = (C = r.templates) == null ? void 0 : C.at(-1), S = w ? gt.LexoRank.parse(w.rank).genNext() : gt.LexoRank.middle();
|
|
32242
|
-
o("saveTemplate", { templateName: g, rank: S.format(), phaseIds:
|
|
32243
|
-
}, m = Nu(), v = ee("mapping"),
|
|
32252
|
+
o("saveTemplate", { templateName: g, rank: S.format(), phaseIds: y }), d.value = !1;
|
|
32253
|
+
}, m = Nu(), v = ee("mapping"), _ = [
|
|
32244
32254
|
{ label: "Overview", value: "overview" },
|
|
32245
32255
|
{ label: "Feed", value: "feed" },
|
|
32246
32256
|
{ label: "Dev", value: "dev" },
|
|
@@ -32248,7 +32258,7 @@ const ove = { class: "ao-project-mapping" }, ive = { class: "ao-project-mapping-
|
|
|
32248
32258
|
];
|
|
32249
32259
|
return Ne(v, (g) => {
|
|
32250
32260
|
g === "feed" ? (m.push({ name: nt.feed }), console.log("Navigating to feed...")) : g === "dev" ? (m.push({ name: nt.dev }), console.log("Navigating to dev...")) : g === "overview" ? (m.push({ name: nt.project }), console.log("Navigating to feed...")) : g === "mapping" && (m.push({ name: nt.mapping }), console.log("Navigating to feed..."));
|
|
32251
|
-
}), (g,
|
|
32261
|
+
}), (g, y) => {
|
|
32252
32262
|
var w;
|
|
32253
32263
|
return k(), $(Me, null, [
|
|
32254
32264
|
b("div", zt({ class: "ao-project-mapping-overview" }, g.$attrs), [
|
|
@@ -32257,8 +32267,8 @@ const ove = { class: "ao-project-mapping" }, ive = { class: "ao-project-mapping-
|
|
|
32257
32267
|
primary: se(() => [
|
|
32258
32268
|
N(Yl, {
|
|
32259
32269
|
modelValue: v.value,
|
|
32260
|
-
"onUpdate:modelValue":
|
|
32261
|
-
tabs:
|
|
32270
|
+
"onUpdate:modelValue": y[0] || (y[0] = (S) => v.value = S),
|
|
32271
|
+
tabs: _
|
|
32262
32272
|
}, null, 8, ["modelValue"]),
|
|
32263
32273
|
N(Se, {
|
|
32264
32274
|
class: "ao-feed__show-archived",
|
|
@@ -32270,7 +32280,7 @@ const ove = { class: "ao-project-mapping" }, ive = { class: "ao-project-mapping-
|
|
|
32270
32280
|
label: g.$t("feed.filters.showsArchived.label"),
|
|
32271
32281
|
role: "checkbox",
|
|
32272
32282
|
"aria-checked": t.showsArchived,
|
|
32273
|
-
onClick:
|
|
32283
|
+
onClick: y[1] || (y[1] = (S) => g.$emit("update:showsArchived", !t.showsArchived))
|
|
32274
32284
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
32275
32285
|
]),
|
|
32276
32286
|
secondary: se(() => [
|
|
@@ -32290,14 +32300,14 @@ const ove = { class: "ao-project-mapping" }, ive = { class: "ao-project-mapping-
|
|
|
32290
32300
|
class: "ao-project-mapping-overview__save-as-template",
|
|
32291
32301
|
color: "primary",
|
|
32292
32302
|
label: g.$t("project.template.save.label"),
|
|
32293
|
-
onClick:
|
|
32303
|
+
onClick: y[2] || (y[2] = (S) => d.value = !0)
|
|
32294
32304
|
}, null, 8, ["label"])) : F("", !0),
|
|
32295
32305
|
t.isEditable === !0 ? (k(), Y(Se, {
|
|
32296
32306
|
key: 2,
|
|
32297
32307
|
class: "ao-project-mapping-overview__add-template",
|
|
32298
32308
|
color: "primary",
|
|
32299
32309
|
label: g.$t("project.template.apply.label"),
|
|
32300
|
-
onClick:
|
|
32310
|
+
onClick: y[3] || (y[3] = (S) => f.value = !0)
|
|
32301
32311
|
}, null, 8, ["label"])) : F("", !0)
|
|
32302
32312
|
]),
|
|
32303
32313
|
_: 1
|
|
@@ -32331,14 +32341,14 @@ const ove = { class: "ao-project-mapping" }, ive = { class: "ao-project-mapping-
|
|
|
32331
32341
|
d.value ? (k(), Y(M0, {
|
|
32332
32342
|
key: 0,
|
|
32333
32343
|
phases: t.phases,
|
|
32334
|
-
onClose:
|
|
32344
|
+
onClose: y[4] || (y[4] = (S) => d.value = !1),
|
|
32335
32345
|
onSave: h
|
|
32336
32346
|
}, null, 8, ["phases"])) : F("", !0),
|
|
32337
32347
|
f.value ? (k(), Y(D0, {
|
|
32338
32348
|
key: 1,
|
|
32339
32349
|
"project-id": t.project.id,
|
|
32340
32350
|
templates: t.templates,
|
|
32341
|
-
onClose:
|
|
32351
|
+
onClose: y[5] || (y[5] = (S) => f.value = !1),
|
|
32342
32352
|
onApply: p
|
|
32343
32353
|
}, null, 8, ["project-id", "templates"])) : F("", !0)
|
|
32344
32354
|
]))
|
|
@@ -32840,7 +32850,7 @@ const Vve = /* @__PURE__ */ fe(qve, [["__scopeId", "data-v-e5aa7c9a"]]), jve = {
|
|
|
32840
32850
|
endDate: n.sprint.endDate,
|
|
32841
32851
|
color: n.sprint.color || ""
|
|
32842
32852
|
};
|
|
32843
|
-
},
|
|
32853
|
+
}, _ = () => {
|
|
32844
32854
|
i.value = !1;
|
|
32845
32855
|
}, g = () => {
|
|
32846
32856
|
h.value && (r("updateSprint", {
|
|
@@ -32850,7 +32860,7 @@ const Vve = /* @__PURE__ */ fe(qve, [["__scopeId", "data-v-e5aa7c9a"]]), jve = {
|
|
|
32850
32860
|
endDate: s.value.endDate,
|
|
32851
32861
|
color: s.value.color || void 0
|
|
32852
32862
|
}), i.value = !1);
|
|
32853
|
-
},
|
|
32863
|
+
}, y = () => {
|
|
32854
32864
|
window.confirm("Archive this sprint?") && r("archiveSprint", { id: n.sprint.id });
|
|
32855
32865
|
}, w = () => {
|
|
32856
32866
|
r("unarchiveSprint", { id: n.sprint.id });
|
|
@@ -32922,7 +32932,7 @@ const Vve = /* @__PURE__ */ fe(qve, [["__scopeId", "data-v-e5aa7c9a"]]), jve = {
|
|
|
32922
32932
|
size: "sm",
|
|
32923
32933
|
"icon-name": "CloseRounded",
|
|
32924
32934
|
title: "Cancel",
|
|
32925
|
-
onClick:
|
|
32935
|
+
onClick: _
|
|
32926
32936
|
})
|
|
32927
32937
|
])
|
|
32928
32938
|
])) : (k(), $("div", {
|
|
@@ -32968,7 +32978,7 @@ const Vve = /* @__PURE__ */ fe(qve, [["__scopeId", "data-v-e5aa7c9a"]]), jve = {
|
|
|
32968
32978
|
corners: "round",
|
|
32969
32979
|
"icon-name": "ArchiveOutlineRounded",
|
|
32970
32980
|
label: t.sprint.active ? "Archive" : "Unarchive",
|
|
32971
|
-
onClick: C[0] || (C[0] = (T) => t.sprint.active ?
|
|
32981
|
+
onClick: C[0] || (C[0] = (T) => t.sprint.active ? y() : w())
|
|
32972
32982
|
}, null, 8, ["label"])
|
|
32973
32983
|
])) : F("", !0)
|
|
32974
32984
|
])
|
|
@@ -33008,14 +33018,14 @@ const s2e = /* @__PURE__ */ fe(i2e, [["__scopeId", "data-v-f278588b"]]), a2e = {
|
|
|
33008
33018
|
startDate: "",
|
|
33009
33019
|
endDate: "",
|
|
33010
33020
|
color: "#4f5cff"
|
|
33011
|
-
}), a = L(() => (o.value ? [...n.sprints] : n.sprints.filter((v) => v.active)).sort((v,
|
|
33021
|
+
}), a = L(() => (o.value ? [...n.sprints] : n.sprints.filter((v) => v.active)).sort((v, _) => _.number - v.number)), l = L(() => n.sprints.reduce((m, v) => Math.max(m, v.number), 0) + 1), c = L(
|
|
33012
33022
|
() => !!(s.value.startDate && s.value.endDate)
|
|
33013
33023
|
), u = L(() => {
|
|
33014
33024
|
var v;
|
|
33015
33025
|
const m = {};
|
|
33016
|
-
for (const
|
|
33017
|
-
const g = (v =
|
|
33018
|
-
g && (m[g] ?? (m[g] = [])).push(
|
|
33026
|
+
for (const _ of n.activities) {
|
|
33027
|
+
const g = (v = _.sprint) == null ? void 0 : v.id;
|
|
33028
|
+
g && (m[g] ?? (m[g] = [])).push(_);
|
|
33019
33029
|
}
|
|
33020
33030
|
return m;
|
|
33021
33031
|
}), f = (m) => u.value[m] ?? [], d = () => {
|
|
@@ -33042,9 +33052,9 @@ const s2e = /* @__PURE__ */ fe(i2e, [["__scopeId", "data-v-f278588b"]]), a2e = {
|
|
|
33042
33052
|
b("span", u2e, H(a.value.length), 1)
|
|
33043
33053
|
]),
|
|
33044
33054
|
b("div", d2e, [
|
|
33045
|
-
t.sprints.some((
|
|
33055
|
+
t.sprints.some((_) => !_.active) ? (k(), $("label", f2e, [
|
|
33046
33056
|
tt(b("input", {
|
|
33047
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
33057
|
+
"onUpdate:modelValue": v[0] || (v[0] = (_) => o.value = _),
|
|
33048
33058
|
type: "checkbox"
|
|
33049
33059
|
}, null, 512), [
|
|
33050
33060
|
[sh, o.value]
|
|
@@ -33066,14 +33076,14 @@ const s2e = /* @__PURE__ */ fe(i2e, [["__scopeId", "data-v-f278588b"]]), a2e = {
|
|
|
33066
33076
|
i.value ? (k(), $("div", p2e, [
|
|
33067
33077
|
N(Js, {
|
|
33068
33078
|
color: s.value.color,
|
|
33069
|
-
"onUpdate:color": v[1] || (v[1] = (
|
|
33079
|
+
"onUpdate:color": v[1] || (v[1] = (_) => s.value.color = _)
|
|
33070
33080
|
}, {
|
|
33071
|
-
clickable: se(({ openPicker:
|
|
33081
|
+
clickable: se(({ openPicker: _, bgColor: g }) => [
|
|
33072
33082
|
b("button", {
|
|
33073
33083
|
class: "ao-sprint-list__color-trigger",
|
|
33074
33084
|
style: Vt({ backgroundColor: g }),
|
|
33075
33085
|
title: "Sprint color",
|
|
33076
|
-
onClick: (
|
|
33086
|
+
onClick: (y) => _(y.currentTarget)
|
|
33077
33087
|
}, null, 12, h2e)
|
|
33078
33088
|
]),
|
|
33079
33089
|
_: 1
|
|
@@ -33081,7 +33091,7 @@ const s2e = /* @__PURE__ */ fe(i2e, [["__scopeId", "data-v-f278588b"]]), a2e = {
|
|
|
33081
33091
|
b("div", m2e, [
|
|
33082
33092
|
b("span", g2e, "Sprint " + H(l.value) + ":", 1),
|
|
33083
33093
|
tt(b("input", {
|
|
33084
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
33094
|
+
"onUpdate:modelValue": v[2] || (v[2] = (_) => s.value.label = _),
|
|
33085
33095
|
type: "text",
|
|
33086
33096
|
class: "ao-sprint-list__input ao-sprint-list__input--label",
|
|
33087
33097
|
placeholder: "Label"
|
|
@@ -33091,7 +33101,7 @@ const s2e = /* @__PURE__ */ fe(i2e, [["__scopeId", "data-v-f278588b"]]), a2e = {
|
|
|
33091
33101
|
]),
|
|
33092
33102
|
b("div", v2e, [
|
|
33093
33103
|
tt(b("input", {
|
|
33094
|
-
"onUpdate:modelValue": v[3] || (v[3] = (
|
|
33104
|
+
"onUpdate:modelValue": v[3] || (v[3] = (_) => s.value.startDate = _),
|
|
33095
33105
|
type: "date",
|
|
33096
33106
|
class: "ao-sprint-list__input ao-sprint-list__input--date"
|
|
33097
33107
|
}, null, 512), [
|
|
@@ -33099,7 +33109,7 @@ const s2e = /* @__PURE__ */ fe(i2e, [["__scopeId", "data-v-f278588b"]]), a2e = {
|
|
|
33099
33109
|
]),
|
|
33100
33110
|
v[11] || (v[11] = b("span", null, "–", -1)),
|
|
33101
33111
|
tt(b("input", {
|
|
33102
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
33112
|
+
"onUpdate:modelValue": v[4] || (v[4] = (_) => s.value.endDate = _),
|
|
33103
33113
|
type: "date",
|
|
33104
33114
|
class: "ao-sprint-list__input ao-sprint-list__input--date"
|
|
33105
33115
|
}, null, 512), [
|
|
@@ -33127,15 +33137,15 @@ const s2e = /* @__PURE__ */ fe(i2e, [["__scopeId", "data-v-f278588b"]]), a2e = {
|
|
|
33127
33137
|
])
|
|
33128
33138
|
])) : F("", !0),
|
|
33129
33139
|
b("div", y2e, [
|
|
33130
|
-
(k(!0), $(Me, null, Ye(a.value, (
|
|
33131
|
-
key:
|
|
33132
|
-
sprint:
|
|
33133
|
-
activities: f(
|
|
33140
|
+
(k(!0), $(Me, null, Ye(a.value, (_) => (k(), Y(s2e, {
|
|
33141
|
+
key: _.id,
|
|
33142
|
+
sprint: _,
|
|
33143
|
+
activities: f(_.id),
|
|
33134
33144
|
"is-editable": t.isEditable,
|
|
33135
33145
|
onUpdateSprint: v[5] || (v[5] = (g) => r("updateSprint", g)),
|
|
33136
33146
|
onArchiveSprint: v[6] || (v[6] = (g) => r("archiveSprint", g)),
|
|
33137
33147
|
onUnarchiveSprint: v[7] || (v[7] = (g) => r("unarchiveSprint", g)),
|
|
33138
|
-
onSelectActivity: v[8] || (v[8] = (g,
|
|
33148
|
+
onSelectActivity: v[8] || (v[8] = (g, y) => r("selectActivity", g, y))
|
|
33139
33149
|
}, null, 8, ["sprint", "activities", "is-editable"]))), 128))
|
|
33140
33150
|
]),
|
|
33141
33151
|
a.value.length === 0 && !i.value ? (k(), $("div", b2e, " No sprints ")) : F("", !0)
|