vdc-editor 0.1.190 → 0.1.191
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/lib/{BulkSpellChecker-CpQpUYsd.mjs → BulkSpellChecker-0NBk7Kyf.mjs} +2 -2
- package/lib/{BulkSpellChecker-CpQpUYsd.mjs.map → BulkSpellChecker-0NBk7Kyf.mjs.map} +1 -1
- package/lib/{index-B6b7xMLm.mjs → index-f4jVglvK.mjs} +513 -518
- package/lib/{index-B6b7xMLm.mjs.map → index-f4jVglvK.mjs.map} +1 -1
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +24 -24
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -246,7 +246,7 @@ const hn = (t) => {
|
|
|
246
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
247
|
LR.test(t) && !DR.test(t)
|
|
248
248
|
), i5 = () => !1, qR = (t) => PR.test(t), KR = (t) => BR.test(t), GR = () => {
|
|
249
|
-
const t = hn("colors"), e = hn("spacing"), n = hn("blur"), o = hn("brightness"), r = hn("borderColor"), i = hn("borderRadius"), s = hn("borderSpacing"), a = hn("borderWidth"), l = hn("contrast"), u = hn("grayscale"), d = hn("hueRotate"), f = hn("invert"), h = hn("gap"), m = hn("gradientColorStops"), g = hn("gradientColorStopPositions"), y = hn("inset"), w = hn("margin"), x = hn("opacity"), _ = hn("padding"), C = hn("saturate"), E = hn("scale"), T = hn("sepia"), k = hn("skew"), A = hn("space"), F = hn("translate"), U = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
249
|
+
const t = hn("colors"), e = hn("spacing"), n = hn("blur"), o = hn("brightness"), r = hn("borderColor"), i = hn("borderRadius"), s = hn("borderSpacing"), a = hn("borderWidth"), l = hn("contrast"), u = hn("grayscale"), d = hn("hueRotate"), f = hn("invert"), h = hn("gap"), m = hn("gradientColorStops"), g = hn("gradientColorStopPositions"), y = hn("inset"), w = hn("margin"), x = hn("opacity"), _ = hn("padding"), C = hn("saturate"), E = hn("scale"), T = hn("sepia"), k = hn("skew"), A = hn("space"), F = hn("translate"), U = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", _t, e], Q = () => [_t, e], re = () => ["", Ii, bs], ve = () => ["auto", Pl, _t], Y = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], q = () => ["solid", "dashed", "dotted", "double", "none"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], se = () => ["", "0", _t], de = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Pl, _t];
|
|
250
250
|
return {
|
|
251
251
|
cacheSize: 500,
|
|
252
252
|
separator: ":",
|
|
@@ -266,8 +266,8 @@ const hn = (t) => {
|
|
|
266
266
|
gap: Q(),
|
|
267
267
|
gradientColorStops: [t],
|
|
268
268
|
gradientColorStopPositions: [FR, bs],
|
|
269
|
-
inset:
|
|
270
|
-
margin:
|
|
269
|
+
inset: K(),
|
|
270
|
+
margin: K(),
|
|
271
271
|
opacity: fe(),
|
|
272
272
|
padding: Q(),
|
|
273
273
|
saturate: fe(),
|
|
@@ -499,7 +499,7 @@ const hn = (t) => {
|
|
|
499
499
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
500
500
|
*/
|
|
501
501
|
basis: [{
|
|
502
|
-
basis:
|
|
502
|
+
basis: K()
|
|
503
503
|
}],
|
|
504
504
|
/**
|
|
505
505
|
* Flex Direction
|
|
@@ -1061,7 +1061,7 @@ const hn = (t) => {
|
|
|
1061
1061
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1062
1062
|
*/
|
|
1063
1063
|
"text-decoration-style": [{
|
|
1064
|
-
decoration: [...
|
|
1064
|
+
decoration: [...q(), "wavy"]
|
|
1065
1065
|
}],
|
|
1066
1066
|
/**
|
|
1067
1067
|
* Text Decoration Thickness
|
|
@@ -1435,7 +1435,7 @@ const hn = (t) => {
|
|
|
1435
1435
|
* @see https://tailwindcss.com/docs/border-style
|
|
1436
1436
|
*/
|
|
1437
1437
|
"border-style": [{
|
|
1438
|
-
border: [...
|
|
1438
|
+
border: [...q(), "hidden"]
|
|
1439
1439
|
}],
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Divide Width X
|
|
@@ -1473,7 +1473,7 @@ const hn = (t) => {
|
|
|
1473
1473
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1474
1474
|
*/
|
|
1475
1475
|
"divide-style": [{
|
|
1476
|
-
divide:
|
|
1476
|
+
divide: q()
|
|
1477
1477
|
}],
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Border Color
|
|
@@ -1550,7 +1550,7 @@ const hn = (t) => {
|
|
|
1550
1550
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1551
1551
|
*/
|
|
1552
1552
|
"outline-style": [{
|
|
1553
|
-
outline: ["", ...
|
|
1553
|
+
outline: ["", ...q()]
|
|
1554
1554
|
}],
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Outline Offset
|
|
@@ -10613,8 +10613,8 @@ function vP(t, e, n, o, r) {
|
|
|
10613
10613
|
if (I && !t.state.selection.eq(I)) {
|
|
10614
10614
|
if (co && ji && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Q) => Q(t, ga(13, "Enter"))))
|
|
10615
10615
|
return;
|
|
10616
|
-
let
|
|
10617
|
-
U == "pointer" ?
|
|
10616
|
+
let K = t.state.tr.setSelection(I);
|
|
10617
|
+
U == "pointer" ? K.setMeta("pointer", !0) : U == "key" && K.scrollIntoView(), i && K.setMeta("composition", i), t.dispatch(K);
|
|
10618
10618
|
}
|
|
10619
10619
|
return;
|
|
10620
10620
|
}
|
|
@@ -14836,7 +14836,7 @@ function F6(t) {
|
|
|
14836
14836
|
m -= I - o.width, m *= l ? 1 : -1;
|
|
14837
14837
|
}
|
|
14838
14838
|
}
|
|
14839
|
-
var
|
|
14839
|
+
var K = Object.assign({
|
|
14840
14840
|
position: a
|
|
14841
14841
|
}, u && l$), Q = d === !0 ? u$({
|
|
14842
14842
|
x: m,
|
|
@@ -14847,9 +14847,9 @@ function F6(t) {
|
|
|
14847
14847
|
};
|
|
14848
14848
|
if (m = Q.x, y = Q.y, l) {
|
|
14849
14849
|
var re;
|
|
14850
|
-
return Object.assign({},
|
|
14850
|
+
return Object.assign({}, K, (re = {}, re[E] = _ ? "0" : "", re[C] = x ? "0" : "", re.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", re));
|
|
14851
14851
|
}
|
|
14852
|
-
return Object.assign({},
|
|
14852
|
+
return Object.assign({}, K, (e = {}, e[E] = _ ? y + "px" : "", e[C] = x ? m + "px" : "", e.transform = "", e));
|
|
14853
14853
|
}
|
|
14854
14854
|
function c$(t) {
|
|
14855
14855
|
var e = t.state, n = t.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, i = n.adaptive, s = i === void 0 ? !0 : i, a = n.roundOffsets, l = a === void 0 ? !0 : a, u = {
|
|
@@ -15058,9 +15058,9 @@ function Oc(t, e) {
|
|
|
15058
15058
|
bottom: U.bottom - T.bottom + x.bottom,
|
|
15059
15059
|
left: T.left - U.left + x.left,
|
|
15060
15060
|
right: U.right - T.right + x.right
|
|
15061
|
-
},
|
|
15062
|
-
if (h === ju &&
|
|
15063
|
-
var Q =
|
|
15061
|
+
}, K = t.modifiersData.offset;
|
|
15062
|
+
if (h === ju && K) {
|
|
15063
|
+
var Q = K[r];
|
|
15064
15064
|
Object.keys(I).forEach(function(re) {
|
|
15065
15065
|
var ve = [Sr, _r].indexOf(re) >= 0 ? 1 : -1, Y = [$o, _r].indexOf(re) >= 0 ? "y" : "x";
|
|
15066
15066
|
I[re] += Q[Y] * ve;
|
|
@@ -15107,8 +15107,8 @@ function E$(t) {
|
|
|
15107
15107
|
allowedAutoPlacements: y
|
|
15108
15108
|
}) : Fe);
|
|
15109
15109
|
}, []), T = e.rects.reference, k = e.rects.popper, A = /* @__PURE__ */ new Map(), F = !0, U = E[0], I = 0; I < E.length; I++) {
|
|
15110
|
-
var
|
|
15111
|
-
placement:
|
|
15110
|
+
var K = E[I], Q = ii(K), re = Yl(K) === Kl, ve = [$o, _r].indexOf(Q) >= 0, Y = ve ? "width" : "height", q = Oc(e, {
|
|
15111
|
+
placement: K,
|
|
15112
15112
|
boundary: d,
|
|
15113
15113
|
rootBoundary: f,
|
|
15114
15114
|
altBoundary: h,
|
|
@@ -15116,18 +15116,18 @@ function E$(t) {
|
|
|
15116
15116
|
}), P = ve ? re ? Sr : Ho : re ? _r : $o;
|
|
15117
15117
|
T[Y] > k[Y] && (P = Vf(P));
|
|
15118
15118
|
var J = Vf(P), se = [];
|
|
15119
|
-
if (i && se.push(
|
|
15119
|
+
if (i && se.push(q[Q] <= 0), a && se.push(q[P] <= 0, q[J] <= 0), se.every(function(st) {
|
|
15120
15120
|
return st;
|
|
15121
15121
|
})) {
|
|
15122
|
-
U =
|
|
15122
|
+
U = K, F = !1;
|
|
15123
15123
|
break;
|
|
15124
15124
|
}
|
|
15125
|
-
A.set(
|
|
15125
|
+
A.set(K, se);
|
|
15126
15126
|
}
|
|
15127
15127
|
if (F)
|
|
15128
15128
|
for (var de = g ? 3 : 1, fe = function(Fe) {
|
|
15129
|
-
var it = E.find(function(
|
|
15130
|
-
var oe = A.get(
|
|
15129
|
+
var it = E.find(function(j) {
|
|
15130
|
+
var oe = A.get(j);
|
|
15131
15131
|
if (oe)
|
|
15132
15132
|
return oe.slice(0, Fe).every(function(me) {
|
|
15133
15133
|
return me;
|
|
@@ -15248,20 +15248,20 @@ function R$(t) {
|
|
|
15248
15248
|
} : Object.assign({
|
|
15249
15249
|
mainAxis: 0,
|
|
15250
15250
|
altAxis: 0
|
|
15251
|
-
}, U),
|
|
15251
|
+
}, U), K = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, Q = {
|
|
15252
15252
|
x: 0,
|
|
15253
15253
|
y: 0
|
|
15254
15254
|
};
|
|
15255
15255
|
if (k) {
|
|
15256
15256
|
if (i) {
|
|
15257
|
-
var re, ve = E === "y" ? $o : Ho, Y = E === "y" ? _r : Sr,
|
|
15257
|
+
var re, ve = E === "y" ? $o : Ho, Y = E === "y" ? _r : Sr, q = E === "y" ? "height" : "width", P = k[E], J = P + w[ve], se = P - w[Y], de = m ? -F[q] / 2 : 0, fe = _ === Kl ? A[q] : F[q], Re = _ === Kl ? -F[q] : -A[q], Pe = e.elements.arrow, st = m && Pe ? av(Pe) : {
|
|
15258
15258
|
width: 0,
|
|
15259
15259
|
height: 0
|
|
15260
|
-
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), it = Fe[ve],
|
|
15260
|
+
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), it = Fe[ve], j = Fe[Y], oe = ac(0, A[q], st[q]), me = C ? A[q] / 2 - de - oe - it - I.mainAxis : fe - oe - it - I.mainAxis, ye = C ? -A[q] / 2 + de + oe + j + I.mainAxis : Re + oe + j + I.mainAxis, _e = e.elements.arrow && rd(e.elements.arrow), ie = _e ? E === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, Ae = (re = K == null ? void 0 : K[E]) != null ? re : 0, We = P + me - Ae - ie, ot = P + ye - Ae, le = ac(m ? vp(J, We) : J, P, m ? ka(se, ot) : se);
|
|
15261
15261
|
k[E] = le, Q[E] = le - P;
|
|
15262
15262
|
}
|
|
15263
15263
|
if (a) {
|
|
15264
|
-
var $e, z = E === "x" ? $o : Ho, H = E === "x" ? _r : Sr, he = k[T], Se = T === "y" ? "height" : "width", Ke = he + w[z], yt = he - w[H], rt = [$o, Ho].indexOf(x) !== -1, ue = ($e =
|
|
15264
|
+
var $e, z = E === "x" ? $o : Ho, H = E === "x" ? _r : Sr, he = k[T], Se = T === "y" ? "height" : "width", Ke = he + w[z], yt = he - w[H], rt = [$o, Ho].indexOf(x) !== -1, ue = ($e = K == null ? void 0 : K[T]) != null ? $e : 0, Te = rt ? Ke : he - A[Se] - F[Se] - ue + I.altAxis, we = rt ? he + A[Se] + F[Se] - ue - I.altAxis : yt, Ne = m && rt ? o$(Te, he, we) : ac(m ? Te : Ke, he, m ? we : yt);
|
|
15265
15265
|
k[T] = Ne, Q[T] = Ne - he;
|
|
15266
15266
|
}
|
|
15267
15267
|
e.modifiersData[o] = Q;
|
|
@@ -15877,7 +15877,7 @@ function yH(t, e) {
|
|
|
15877
15877
|
var pe = E.props.touch;
|
|
15878
15878
|
return Array.isArray(pe) ? pe : [pe, 0];
|
|
15879
15879
|
}
|
|
15880
|
-
function
|
|
15880
|
+
function K() {
|
|
15881
15881
|
return I()[0] === "hold";
|
|
15882
15882
|
}
|
|
15883
15883
|
function Q() {
|
|
@@ -15894,7 +15894,7 @@ function yH(t, e) {
|
|
|
15894
15894
|
function Y() {
|
|
15895
15895
|
return Sg(k);
|
|
15896
15896
|
}
|
|
15897
|
-
function
|
|
15897
|
+
function q(pe) {
|
|
15898
15898
|
return E.state.isMounted && !E.state.isVisible || ri.isTouch || d && d.type === "focus" ? 0 : i1(E.props.delay, pe ? 0 : 1, Zo.delay);
|
|
15899
15899
|
}
|
|
15900
15900
|
function P(pe) {
|
|
@@ -15967,7 +15967,7 @@ function yH(t, e) {
|
|
|
15967
15967
|
var pe = ve();
|
|
15968
15968
|
pe.removeEventListener("mousedown", Re, !0), pe.removeEventListener("touchend", Re, pa), pe.removeEventListener("touchstart", st, pa), pe.removeEventListener("touchmove", Pe, pa);
|
|
15969
15969
|
}
|
|
15970
|
-
function
|
|
15970
|
+
function j(pe, Ge) {
|
|
15971
15971
|
me(pe, function() {
|
|
15972
15972
|
!E.state.isVisible && k.parentNode && k.parentNode.contains(k) && Ge();
|
|
15973
15973
|
});
|
|
@@ -15997,7 +15997,7 @@ function yH(t, e) {
|
|
|
15997
15997
|
});
|
|
15998
15998
|
}
|
|
15999
15999
|
function _e() {
|
|
16000
|
-
|
|
16000
|
+
K() && (ye("touchstart", Ae, {
|
|
16001
16001
|
passive: !0
|
|
16002
16002
|
}), ye("touchend", ot, {
|
|
16003
16003
|
passive: !0
|
|
@@ -16059,7 +16059,7 @@ function yH(t, e) {
|
|
|
16059
16059
|
E.props.trigger.indexOf("focusin") < 0 && pe.target !== re() || E.props.interactive && pe.relatedTarget && k.contains(pe.relatedTarget) || yt(pe);
|
|
16060
16060
|
}
|
|
16061
16061
|
function $e(pe) {
|
|
16062
|
-
return ri.isTouch ?
|
|
16062
|
+
return ri.isTouch ? K() !== pe.type.indexOf("touch") >= 0 : !1;
|
|
16063
16063
|
}
|
|
16064
16064
|
function z() {
|
|
16065
16065
|
H();
|
|
@@ -16136,7 +16136,7 @@ function yH(t, e) {
|
|
|
16136
16136
|
}
|
|
16137
16137
|
function Ke(pe) {
|
|
16138
16138
|
E.clearDelayTimeouts(), pe && J("onTrigger", [E, pe]), Fe();
|
|
16139
|
-
var Ge =
|
|
16139
|
+
var Ge = q(!0), lt = I(), Vt = lt[0], Ft = lt[1];
|
|
16140
16140
|
ri.isTouch && Vt === "hold" && Ft && (Ge = Ft), Ge ? o = setTimeout(function() {
|
|
16141
16141
|
E.show();
|
|
16142
16142
|
}, Ge) : E.show();
|
|
@@ -16147,7 +16147,7 @@ function yH(t, e) {
|
|
|
16147
16147
|
return;
|
|
16148
16148
|
}
|
|
16149
16149
|
if (!(E.props.trigger.indexOf("mouseenter") >= 0 && E.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(pe.type) >= 0 && s)) {
|
|
16150
|
-
var Ge =
|
|
16150
|
+
var Ge = q(!1);
|
|
16151
16151
|
Ge ? r = setTimeout(function() {
|
|
16152
16152
|
E.state.isVisible && E.hide();
|
|
16153
16153
|
}, Ge) : i = requestAnimationFrame(function() {
|
|
@@ -16212,7 +16212,7 @@ function yH(t, e) {
|
|
|
16212
16212
|
var Ft = Y(), Yn = Ft.box, Oo = Ft.content;
|
|
16213
16213
|
E.props.animation && (s1([Yn, Oo], Vt), G6([Yn, Oo], "hidden"));
|
|
16214
16214
|
}
|
|
16215
|
-
se(), de(), E.props.animation ? Q() &&
|
|
16215
|
+
se(), de(), E.props.animation ? Q() && j(Vt, E.unmount) : E.unmount();
|
|
16216
16216
|
}
|
|
16217
16217
|
}
|
|
16218
16218
|
function Xt(pe) {
|
|
@@ -17272,7 +17272,7 @@ var xp = { exports: {} };
|
|
|
17272
17272
|
xp.exports;
|
|
17273
17273
|
(function(t, e) {
|
|
17274
17274
|
(function() {
|
|
17275
|
-
var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, _ = 4, C = 8, E = 16, T = 32, k = 64, A = 128, F = 256, U = 512, I = 30,
|
|
17275
|
+
var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, _ = 4, C = 8, E = 16, T = 32, k = 64, A = 128, F = 256, U = 512, I = 30, K = "...", Q = 800, re = 16, ve = 1, Y = 2, q = 3, P = 1 / 0, J = 9007199254740991, se = 17976931348623157e292, de = NaN, fe = 4294967295, Re = fe - 1, Pe = fe >>> 1, st = [
|
|
17276
17276
|
["ary", A],
|
|
17277
17277
|
["bind", w],
|
|
17278
17278
|
["bindKey", x],
|
|
@@ -17282,7 +17282,7 @@ xp.exports;
|
|
|
17282
17282
|
["partial", T],
|
|
17283
17283
|
["partialRight", k],
|
|
17284
17284
|
["rearg", F]
|
|
17285
|
-
], Fe = "[object Arguments]", it = "[object Array]",
|
|
17285
|
+
], Fe = "[object Arguments]", it = "[object Array]", j = "[object AsyncFunction]", oe = "[object Boolean]", me = "[object Date]", ye = "[object DOMException]", _e = "[object Error]", ie = "[object Function]", Ae = "[object GeneratorFunction]", We = "[object Map]", ot = "[object Number]", le = "[object Null]", $e = "[object Object]", z = "[object Promise]", H = "[object Proxy]", he = "[object RegExp]", Se = "[object Set]", Ke = "[object String]", yt = "[object Symbol]", rt = "[object Undefined]", ue = "[object WeakMap]", Te = "[object WeakSet]", we = "[object ArrayBuffer]", Ne = "[object DataView]", Je = "[object Float32Array]", gt = "[object Float64Array]", Xt = "[object Int8Array]", wn = "[object Int16Array]", wi = "[object Int32Array]", pe = "[object Uint8Array]", Ge = "[object Uint8ClampedArray]", lt = "[object Uint16Array]", Vt = "[object Uint32Array]", Ft = /\b__p \+= '';/g, Yn = /\b(__p \+=) '' \+/g, Oo = /(__e\(.*?\)|\b__t\)) \+\n'';/g, xi = /&(?:amp|lt|gt|quot|#39);/g, _u = /[&<>"']/g, Ci = RegExp(xi.source), Su = RegExp(_u.source), nl = /<%-([\s\S]+?)%>/g, as = /<%([\s\S]+?)%>/g, vd = /<%=([\s\S]+?)%>/g, Tu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ol = /^\w*$/, k7 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, A0 = /[\\^$.*+?()[\]{}|]/g, A7 = RegExp(A0.source), O0 = /^\s+/, O7 = /\s/, M7 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, N7 = /\{\n\/\* \[wrapped with (.+)\] \*/, I7 = /,? & /, R7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, L7 = /[()=,{}\[\]\/\s]/, D7 = /\\(\\)?/g, P7 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Z2 = /\w*$/, B7 = /^[-+]0x[0-9a-f]+$/i, F7 = /^0b[01]+$/i, $7 = /^\[object .+?Constructor\]$/, H7 = /^0o[0-7]+$/i, z7 = /^(?:0|[1-9]\d*)$/, V7 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, yd = /($^)/, U7 = /['\n\r\u2028\u2029\\]/g, wd = "\\ud800-\\udfff", W7 = "\\u0300-\\u036f", j7 = "\\ufe20-\\ufe2f", q7 = "\\u20d0-\\u20ff", Q2 = W7 + j7 + q7, ey = "\\u2700-\\u27bf", ty = "a-z\\xdf-\\xf6\\xf8-\\xff", K7 = "\\xac\\xb1\\xd7\\xf7", G7 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", X7 = "\\u2000-\\u206f", Y7 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ny = "A-Z\\xc0-\\xd6\\xd8-\\xde", oy = "\\ufe0e\\ufe0f", ry = K7 + G7 + X7 + Y7, M0 = "['’]", J7 = "[" + wd + "]", iy = "[" + ry + "]", xd = "[" + Q2 + "]", sy = "\\d+", Z7 = "[" + ey + "]", ay = "[" + ty + "]", ly = "[^" + wd + ry + sy + ey + ty + ny + "]", N0 = "\\ud83c[\\udffb-\\udfff]", Q7 = "(?:" + xd + "|" + N0 + ")", uy = "[^" + wd + "]", I0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", R0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", rl = "[" + ny + "]", cy = "\\u200d", dy = "(?:" + ay + "|" + ly + ")", ek = "(?:" + rl + "|" + ly + ")", fy = "(?:" + M0 + "(?:d|ll|m|re|s|t|ve))?", py = "(?:" + M0 + "(?:D|LL|M|RE|S|T|VE))?", hy = Q7 + "?", my = "[" + oy + "]?", tk = "(?:" + cy + "(?:" + [uy, I0, R0].join("|") + ")" + my + hy + ")*", nk = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ok = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gy = my + hy + tk, rk = "(?:" + [Z7, I0, R0].join("|") + ")" + gy, ik = "(?:" + [uy + xd + "?", xd, I0, R0, J7].join("|") + ")", sk = RegExp(M0, "g"), ak = RegExp(xd, "g"), L0 = RegExp(N0 + "(?=" + N0 + ")|" + ik + gy, "g"), lk = RegExp([
|
|
17286
17286
|
rl + "?" + ay + "+" + fy + "(?=" + [iy, rl, "$"].join("|") + ")",
|
|
17287
17287
|
ek + "+" + py + "(?=" + [iy, rl + dy, "$"].join("|") + ")",
|
|
17288
17288
|
rl + "?" + dy + "+" + fy,
|
|
@@ -20195,7 +20195,7 @@ xp.exports;
|
|
|
20195
20195
|
if (!xn(c))
|
|
20196
20196
|
return !1;
|
|
20197
20197
|
var p = vo(c);
|
|
20198
|
-
return p == ie || p == Ae || p ==
|
|
20198
|
+
return p == ie || p == Ae || p == j || p == H;
|
|
20199
20199
|
}
|
|
20200
20200
|
function s4(c) {
|
|
20201
20201
|
return typeof c == "number" && c == Et(c);
|
|
@@ -20632,7 +20632,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20632
20632
|
return ms(S, O).join("");
|
|
20633
20633
|
}
|
|
20634
20634
|
function uI(c, p) {
|
|
20635
|
-
var v = I, S =
|
|
20635
|
+
var v = I, S = K;
|
|
20636
20636
|
if (xn(p)) {
|
|
20637
20637
|
var O = "separator" in p ? p.separator : O;
|
|
20638
20638
|
v = "length" in p ? Et(p.length) : v, S = "omission" in p ? qo(p.omission) : S;
|
|
@@ -20851,7 +20851,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20851
20851
|
return this.reverse()[c](v).reverse();
|
|
20852
20852
|
};
|
|
20853
20853
|
}), lr(["filter", "map", "takeWhile"], function(c, p) {
|
|
20854
|
-
var v = p + 1, S = v == ve || v ==
|
|
20854
|
+
var v = p + 1, S = v == ve || v == q;
|
|
20855
20855
|
Pt.prototype[c] = function(O) {
|
|
20856
20856
|
var L = this.clone();
|
|
20857
20857
|
return L.__iteratees__.push({
|
|
@@ -21422,17 +21422,17 @@ const YH = (t) => ({
|
|
|
21422
21422
|
}, m = bv(r), g = gv(m), y = await s.getDimensions(u), w = m === "y", x = w ? "top" : "left", _ = w ? "bottom" : "right", C = w ? "clientHeight" : "clientWidth", E = i.reference[g] + i.reference[m] - h[m] - i.floating[g], T = h[m] - i.reference[m], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
21423
21423
|
let A = k ? k[C] : 0;
|
|
21424
21424
|
(!A || !await (s.isElement == null ? void 0 : s.isElement(k))) && (A = a.floating[C] || i.floating[g]);
|
|
21425
|
-
const F = E / 2 - T / 2, U = A / 2 - y[g] / 2 - 1, I = zs(f[x], U),
|
|
21425
|
+
const F = E / 2 - T / 2, U = A / 2 - y[g] / 2 - 1, I = zs(f[x], U), K = zs(f[_], U), Q = I, re = A - y[g] - K, ve = A / 2 - y[g] / 2 + F, Y = Ag(Q, ve, re), q = !l.arrow && uu(r) != null && ve !== Y && i.reference[g] / 2 - (ve < Q ? I : K) - y[g] / 2 < 0, P = q ? ve < Q ? ve - Q : ve - re : 0;
|
|
21426
21426
|
return {
|
|
21427
21427
|
[m]: h[m] + P,
|
|
21428
21428
|
data: {
|
|
21429
21429
|
[m]: Y,
|
|
21430
21430
|
centerOffset: ve - Y - P,
|
|
21431
|
-
...
|
|
21431
|
+
...q && {
|
|
21432
21432
|
alignmentOffset: P
|
|
21433
21433
|
}
|
|
21434
21434
|
},
|
|
21435
|
-
reset:
|
|
21435
|
+
reset: q
|
|
21436
21436
|
};
|
|
21437
21437
|
}
|
|
21438
21438
|
}), JH = function(t) {
|
|
@@ -21471,8 +21471,8 @@ const YH = (t) => ({
|
|
|
21471
21471
|
placement: r,
|
|
21472
21472
|
overflows: U
|
|
21473
21473
|
}], !U.every((ve) => ve <= 0)) {
|
|
21474
|
-
var
|
|
21475
|
-
const ve = (((
|
|
21474
|
+
var K, Q;
|
|
21475
|
+
const ve = (((K = i.flip) == null ? void 0 : K.index) || 0) + 1, Y = A[ve];
|
|
21476
21476
|
if (Y)
|
|
21477
21477
|
return {
|
|
21478
21478
|
data: {
|
|
@@ -21483,8 +21483,8 @@ const YH = (t) => ({
|
|
|
21483
21483
|
placement: Y
|
|
21484
21484
|
}
|
|
21485
21485
|
};
|
|
21486
|
-
let
|
|
21487
|
-
if (!
|
|
21486
|
+
let q = (Q = I.filter((P) => P.overflows[0] <= 0).sort((P, J) => P.overflows[1] - J.overflows[1])[0]) == null ? void 0 : Q.placement;
|
|
21487
|
+
if (!q)
|
|
21488
21488
|
switch (m) {
|
|
21489
21489
|
case "bestFit": {
|
|
21490
21490
|
var re;
|
|
@@ -21497,17 +21497,17 @@ const YH = (t) => ({
|
|
|
21497
21497
|
}
|
|
21498
21498
|
return !0;
|
|
21499
21499
|
}).map((J) => [J.placement, J.overflows.filter((se) => se > 0).reduce((se, de) => se + de, 0)]).sort((J, se) => J[1] - se[1])[0]) == null ? void 0 : re[0];
|
|
21500
|
-
P && (
|
|
21500
|
+
P && (q = P);
|
|
21501
21501
|
break;
|
|
21502
21502
|
}
|
|
21503
21503
|
case "initialPlacement":
|
|
21504
|
-
|
|
21504
|
+
q = a;
|
|
21505
21505
|
break;
|
|
21506
21506
|
}
|
|
21507
|
-
if (r !==
|
|
21507
|
+
if (r !== q)
|
|
21508
21508
|
return {
|
|
21509
21509
|
reset: {
|
|
21510
|
-
placement:
|
|
21510
|
+
placement: q
|
|
21511
21511
|
}
|
|
21512
21512
|
};
|
|
21513
21513
|
}
|
|
@@ -21739,8 +21739,8 @@ const ez = function(t) {
|
|
|
21739
21739
|
const _ = y - d.top - d.bottom, C = g - d.left - d.right, E = zs(y - d[w], _), T = zs(g - d[x], C), k = !e.middlewareData.shift;
|
|
21740
21740
|
let A = E, F = T;
|
|
21741
21741
|
if ((n = e.middlewareData.shift) != null && n.enabled.x && (F = C), (o = e.middlewareData.shift) != null && o.enabled.y && (A = _), k && !h) {
|
|
21742
|
-
const I = Yo(d.left, 0),
|
|
21743
|
-
m ? F = g - 2 * (I !== 0 ||
|
|
21742
|
+
const I = Yo(d.left, 0), K = Yo(d.right, 0), Q = Yo(d.top, 0), re = Yo(d.bottom, 0);
|
|
21743
|
+
m ? F = g - 2 * (I !== 0 || K !== 0 ? I + K : Yo(d.left, d.right)) : A = y - 2 * (Q !== 0 || re !== 0 ? Q + re : Yo(d.top, d.bottom));
|
|
21744
21744
|
}
|
|
21745
21745
|
await l({
|
|
21746
21746
|
...e,
|
|
@@ -24259,18 +24259,18 @@ const XE = {
|
|
|
24259
24259
|
}),
|
|
24260
24260
|
_z({
|
|
24261
24261
|
...g.value,
|
|
24262
|
-
apply: ({ elements: I, rects:
|
|
24263
|
-
const { width: ve, height: Y } =
|
|
24264
|
-
|
|
24262
|
+
apply: ({ elements: I, rects: K, availableWidth: Q, availableHeight: re }) => {
|
|
24263
|
+
const { width: ve, height: Y } = K.reference, q = I.floating.style;
|
|
24264
|
+
q.setProperty(
|
|
24265
24265
|
"--radix-popper-available-width",
|
|
24266
24266
|
`${Q}px`
|
|
24267
|
-
),
|
|
24267
|
+
), q.setProperty(
|
|
24268
24268
|
"--radix-popper-available-height",
|
|
24269
24269
|
`${re}px`
|
|
24270
|
-
),
|
|
24270
|
+
), q.setProperty(
|
|
24271
24271
|
"--radix-popper-anchor-width",
|
|
24272
24272
|
`${ve}px`
|
|
24273
|
-
),
|
|
24273
|
+
), q.setProperty(
|
|
24274
24274
|
"--radix-popper-anchor-height",
|
|
24275
24275
|
`${Y}px`
|
|
24276
24276
|
);
|
|
@@ -24323,7 +24323,7 @@ const XE = {
|
|
|
24323
24323
|
arrowX: F,
|
|
24324
24324
|
arrowY: U,
|
|
24325
24325
|
shouldHideArrow: k
|
|
24326
|
-
}), (I,
|
|
24326
|
+
}), (I, K) => {
|
|
24327
24327
|
var Q, re, ve;
|
|
24328
24328
|
return M(), be("div", {
|
|
24329
24329
|
ref_key: "floatingRef",
|
|
@@ -24731,19 +24731,19 @@ const [vU, yU] = dn("RovingFocusGroup"), o_ = /* @__PURE__ */ W({
|
|
|
24731
24731
|
window.clearTimeout(d.value);
|
|
24732
24732
|
});
|
|
24733
24733
|
function T(I) {
|
|
24734
|
-
var
|
|
24735
|
-
return m.value === ((
|
|
24734
|
+
var K, Q;
|
|
24735
|
+
return m.value === ((K = h.value) == null ? void 0 : K.side) && FV(I, (Q = h.value) == null ? void 0 : Q.area);
|
|
24736
24736
|
}
|
|
24737
24737
|
async function k(I) {
|
|
24738
|
-
var
|
|
24739
|
-
o("openAutoFocus", I), !I.defaultPrevented && (I.preventDefault(), (
|
|
24738
|
+
var K;
|
|
24739
|
+
o("openAutoFocus", I), !I.defaultPrevented && (I.preventDefault(), (K = _.value) == null || K.focus({
|
|
24740
24740
|
preventScroll: !0
|
|
24741
24741
|
}));
|
|
24742
24742
|
}
|
|
24743
24743
|
function A(I) {
|
|
24744
24744
|
if (I.defaultPrevented)
|
|
24745
24745
|
return;
|
|
24746
|
-
const
|
|
24746
|
+
const K = I.target.closest("[data-radix-menu-content]") === I.currentTarget, Q = I.ctrlKey || I.altKey || I.metaKey, re = I.key.length === 1, ve = Yz(
|
|
24747
24747
|
I,
|
|
24748
24748
|
mo(),
|
|
24749
24749
|
_.value,
|
|
@@ -24757,22 +24757,22 @@ const [vU, yU] = dn("RovingFocusGroup"), o_ = /* @__PURE__ */ W({
|
|
|
24757
24757
|
);
|
|
24758
24758
|
if (ve)
|
|
24759
24759
|
return ve == null ? void 0 : ve.focus();
|
|
24760
|
-
if (I.code === "Space" || (
|
|
24760
|
+
if (I.code === "Space" || (K && (I.key === "Tab" && I.preventDefault(), !Q && re && E(I.key)), I.target !== _.value) || !PV.includes(I.key))
|
|
24761
24761
|
return;
|
|
24762
24762
|
I.preventDefault();
|
|
24763
24763
|
const Y = C.value;
|
|
24764
24764
|
UE.includes(I.key) && Y.reverse(), Pg(Y);
|
|
24765
24765
|
}
|
|
24766
24766
|
function F(I) {
|
|
24767
|
-
var
|
|
24768
|
-
(Q = (
|
|
24767
|
+
var K, Q;
|
|
24768
|
+
(Q = (K = I == null ? void 0 : I.currentTarget) == null ? void 0 : K.contains) != null && Q.call(K, I.target) || (window.clearTimeout(d.value), u.value = "");
|
|
24769
24769
|
}
|
|
24770
24770
|
function U(I) {
|
|
24771
|
-
var
|
|
24771
|
+
var K;
|
|
24772
24772
|
if (!Bg(I))
|
|
24773
24773
|
return;
|
|
24774
24774
|
const Q = I.target, re = g.value !== I.clientX;
|
|
24775
|
-
if ((
|
|
24775
|
+
if ((K = I == null ? void 0 : I.currentTarget) != null && K.contains(Q) && re) {
|
|
24776
24776
|
const ve = I.clientX > g.value ? "right" : "left";
|
|
24777
24777
|
m.value = ve, g.value = I.clientX;
|
|
24778
24778
|
}
|
|
@@ -24780,8 +24780,8 @@ const [vU, yU] = dn("RovingFocusGroup"), o_ = /* @__PURE__ */ W({
|
|
|
24780
24780
|
return xU({
|
|
24781
24781
|
onItemEnter: (I) => !!T(I),
|
|
24782
24782
|
onItemLeave: (I) => {
|
|
24783
|
-
var
|
|
24784
|
-
T(I) || ((
|
|
24783
|
+
var K;
|
|
24784
|
+
T(I) || ((K = _.value) == null || K.focus(), y.value = null);
|
|
24785
24785
|
},
|
|
24786
24786
|
onTriggerLeave: (I) => !!T(I),
|
|
24787
24787
|
searchRef: u,
|
|
@@ -24789,31 +24789,31 @@ const [vU, yU] = dn("RovingFocusGroup"), o_ = /* @__PURE__ */ W({
|
|
|
24789
24789
|
onPointerGraceIntentChange: (I) => {
|
|
24790
24790
|
h.value = I;
|
|
24791
24791
|
}
|
|
24792
|
-
}), (I,
|
|
24792
|
+
}), (I, K) => (M(), B(b(zh), {
|
|
24793
24793
|
"as-child": "",
|
|
24794
24794
|
trapped: b(s),
|
|
24795
24795
|
onMountAutoFocus: k,
|
|
24796
|
-
onUnmountAutoFocus:
|
|
24796
|
+
onUnmountAutoFocus: K[7] || (K[7] = (Q) => o("closeAutoFocus", Q))
|
|
24797
24797
|
}, {
|
|
24798
24798
|
default: N(() => [
|
|
24799
24799
|
D(b(ud), {
|
|
24800
24800
|
"as-child": "",
|
|
24801
24801
|
"disable-outside-pointer-events": b(a),
|
|
24802
|
-
onEscapeKeyDown:
|
|
24803
|
-
onPointerDownOutside:
|
|
24804
|
-
onFocusOutside:
|
|
24805
|
-
onInteractOutside:
|
|
24806
|
-
onDismiss:
|
|
24802
|
+
onEscapeKeyDown: K[2] || (K[2] = (Q) => o("escapeKeyDown", Q)),
|
|
24803
|
+
onPointerDownOutside: K[3] || (K[3] = (Q) => o("pointerDownOutside", Q)),
|
|
24804
|
+
onFocusOutside: K[4] || (K[4] = (Q) => o("focusOutside", Q)),
|
|
24805
|
+
onInteractOutside: K[5] || (K[5] = (Q) => o("interactOutside", Q)),
|
|
24806
|
+
onDismiss: K[6] || (K[6] = (Q) => o("dismiss"))
|
|
24807
24807
|
}, {
|
|
24808
24808
|
default: N(() => [
|
|
24809
24809
|
D(b(o_), {
|
|
24810
24810
|
"current-tab-stop-id": y.value,
|
|
24811
|
-
"onUpdate:currentTabStopId":
|
|
24811
|
+
"onUpdate:currentTabStopId": K[0] || (K[0] = (Q) => y.value = Q),
|
|
24812
24812
|
"as-child": "",
|
|
24813
24813
|
orientation: "vertical",
|
|
24814
24814
|
dir: b(i).dir.value,
|
|
24815
24815
|
loop: b(l),
|
|
24816
|
-
onEntryFocus:
|
|
24816
|
+
onEntryFocus: K[1] || (K[1] = (Q) => {
|
|
24817
24817
|
o("entryFocus", Q), b(i).isUsingKeyboardRef.value || Q.preventDefault();
|
|
24818
24818
|
})
|
|
24819
24819
|
}, {
|
|
@@ -26808,46 +26808,46 @@ const CW = /* @__PURE__ */ W({
|
|
|
26808
26808
|
if (i.triggerElement.value && i.valueElement.value && d.value && h.value && m != null && m.value && g != null && g.value && y != null && y.value) {
|
|
26809
26809
|
const E = i.triggerElement.value.getBoundingClientRect(), T = h.value.getBoundingClientRect(), k = i.valueElement.value.getBoundingClientRect(), A = y.value.getBoundingClientRect();
|
|
26810
26810
|
if (i.dir.value !== "rtl") {
|
|
26811
|
-
const
|
|
26811
|
+
const j = A.left - T.left, oe = k.left - j, me = E.left - oe, ye = E.width + me, _e = Math.max(ye, T.width), ie = window.innerWidth - Dr, Ae = Ig(oe, Dr, Math.max(Dr, ie - _e));
|
|
26812
26812
|
d.value.style.minWidth = `${ye}px`, d.value.style.left = `${Ae}px`;
|
|
26813
26813
|
} else {
|
|
26814
|
-
const
|
|
26814
|
+
const j = T.right - A.right, oe = window.innerWidth - k.right - j, me = window.innerWidth - E.right - oe, ye = E.width + me, _e = Math.max(ye, T.width), ie = window.innerWidth - Dr, Ae = Ig(
|
|
26815
26815
|
oe,
|
|
26816
26816
|
Dr,
|
|
26817
26817
|
Math.max(Dr, ie - _e)
|
|
26818
26818
|
);
|
|
26819
26819
|
d.value.style.minWidth = `${ye}px`, d.value.style.right = `${Ae}px`;
|
|
26820
26820
|
}
|
|
26821
|
-
const F = a.value, U = window.innerHeight - Dr * 2, I = m.value.scrollHeight,
|
|
26822
|
-
|
|
26821
|
+
const F = a.value, U = window.innerHeight - Dr * 2, I = m.value.scrollHeight, K = window.getComputedStyle(h.value), Q = Number.parseInt(
|
|
26822
|
+
K.borderTopWidth,
|
|
26823
26823
|
10
|
|
26824
|
-
), re = Number.parseInt(
|
|
26825
|
-
|
|
26824
|
+
), re = Number.parseInt(K.paddingTop, 10), ve = Number.parseInt(
|
|
26825
|
+
K.borderBottomWidth,
|
|
26826
26826
|
10
|
|
26827
26827
|
), Y = Number.parseInt(
|
|
26828
|
-
|
|
26828
|
+
K.paddingBottom,
|
|
26829
26829
|
10
|
|
26830
|
-
),
|
|
26830
|
+
), q = Q + re + I + Y + ve, P = Math.min(
|
|
26831
26831
|
g.value.offsetHeight * 5,
|
|
26832
|
-
|
|
26832
|
+
q
|
|
26833
26833
|
), J = window.getComputedStyle(m.value), se = Number.parseInt(J.paddingTop, 10), de = Number.parseInt(
|
|
26834
26834
|
J.paddingBottom,
|
|
26835
26835
|
10
|
|
26836
|
-
), fe = E.top + E.height / 2 - Dr, Re = U - fe, Pe = g.value.offsetHeight / 2, st = g.value.offsetTop + Pe, Fe = Q + re + st, it =
|
|
26836
|
+
), fe = E.top + E.height / 2 - Dr, Re = U - fe, Pe = g.value.offsetHeight / 2, st = g.value.offsetTop + Pe, Fe = Q + re + st, it = q - Fe;
|
|
26837
26837
|
if (Fe <= fe) {
|
|
26838
|
-
const
|
|
26838
|
+
const j = g.value === F[F.length - 1];
|
|
26839
26839
|
d.value.style.bottom = "0px";
|
|
26840
26840
|
const oe = h.value.clientHeight - m.value.offsetTop - m.value.offsetHeight, me = Math.max(
|
|
26841
26841
|
Re,
|
|
26842
|
-
Pe + (
|
|
26842
|
+
Pe + (j ? de : 0) + oe + ve
|
|
26843
26843
|
), ye = Fe + me;
|
|
26844
26844
|
d.value.style.height = `${ye}px`;
|
|
26845
26845
|
} else {
|
|
26846
|
-
const
|
|
26846
|
+
const j = g.value === F[0];
|
|
26847
26847
|
d.value.style.top = "0px";
|
|
26848
26848
|
const oe = Math.max(
|
|
26849
26849
|
fe,
|
|
26850
|
-
Q + m.value.offsetTop + (
|
|
26850
|
+
Q + m.value.offsetTop + (j ? se : 0) + Pe
|
|
26851
26851
|
) + it;
|
|
26852
26852
|
d.value.style.height = `${oe}px`, m.value.scrollTop = Fe - fe + m.value.offsetTop;
|
|
26853
26853
|
}
|
|
@@ -26973,13 +26973,13 @@ const CW = /* @__PURE__ */ W({
|
|
|
26973
26973
|
return;
|
|
26974
26974
|
let k = { x: 0, y: 0 };
|
|
26975
26975
|
const A = (U) => {
|
|
26976
|
-
var I,
|
|
26976
|
+
var I, K;
|
|
26977
26977
|
k = {
|
|
26978
26978
|
x: Math.abs(
|
|
26979
26979
|
Math.round(U.pageX) - (((I = x.value) == null ? void 0 : I.x) ?? 0)
|
|
26980
26980
|
),
|
|
26981
26981
|
y: Math.abs(
|
|
26982
|
-
Math.round(U.pageY) - (((
|
|
26982
|
+
Math.round(U.pageY) - (((K = x.value) == null ? void 0 : K.y) ?? 0)
|
|
26983
26983
|
)
|
|
26984
26984
|
};
|
|
26985
26985
|
}, F = (U) => {
|
|
@@ -28465,7 +28465,7 @@ function Nj(t, e = {}) {
|
|
|
28465
28465
|
return !1;
|
|
28466
28466
|
const Se = () => {
|
|
28467
28467
|
const yt = z.currentPeek();
|
|
28468
|
-
return yt === "{" ? x(z.peek()) : yt === "@" || yt === "|" || yt === ":" || yt === "." || yt === Di || !yt ? !1 : yt === xo ? (z.peek(), Se()) :
|
|
28468
|
+
return yt === "{" ? x(z.peek()) : yt === "@" || yt === "|" || yt === ":" || yt === "." || yt === Di || !yt ? !1 : yt === xo ? (z.peek(), Se()) : K(z, !1);
|
|
28469
28469
|
}, Ke = Se();
|
|
28470
28470
|
return z.resetPeek(), Ke;
|
|
28471
28471
|
}
|
|
@@ -28474,7 +28474,7 @@ function Nj(t, e = {}) {
|
|
|
28474
28474
|
const H = z.currentPeek() === "|";
|
|
28475
28475
|
return z.resetPeek(), H;
|
|
28476
28476
|
}
|
|
28477
|
-
function
|
|
28477
|
+
function K(z, H = !0) {
|
|
28478
28478
|
const he = (Ke = !1, yt = "") => {
|
|
28479
28479
|
const rt = z.currentPeek();
|
|
28480
28480
|
return rt === "{" || rt === "@" || !rt ? Ke : rt === "|" ? !(yt === Di || yt === xo) : rt === Di ? (z.peek(), he(!0, Di)) : rt === xo ? (z.peek(), he(!0, xo)) : !0;
|
|
@@ -28505,7 +28505,7 @@ function Nj(t, e = {}) {
|
|
|
28505
28505
|
H === 36 || // $
|
|
28506
28506
|
H === 45;
|
|
28507
28507
|
}
|
|
28508
|
-
function
|
|
28508
|
+
function q(z) {
|
|
28509
28509
|
return Q(z, Y);
|
|
28510
28510
|
}
|
|
28511
28511
|
function P(z) {
|
|
@@ -28537,7 +28537,7 @@ function Nj(t, e = {}) {
|
|
|
28537
28537
|
if (he === "{" || he === "}" || he === "@" || he === "|" || !he)
|
|
28538
28538
|
break;
|
|
28539
28539
|
if (he === Di || he === xo)
|
|
28540
|
-
if (
|
|
28540
|
+
if (K(z))
|
|
28541
28541
|
H += he, z.next();
|
|
28542
28542
|
else {
|
|
28543
28543
|
if (I(z))
|
|
@@ -28552,7 +28552,7 @@ function Nj(t, e = {}) {
|
|
|
28552
28552
|
function Pe(z) {
|
|
28553
28553
|
w(z);
|
|
28554
28554
|
let H = "", he = "";
|
|
28555
|
-
for (; H =
|
|
28555
|
+
for (; H = q(z); )
|
|
28556
28556
|
he += H;
|
|
28557
28557
|
return z.currentChar() === ys && f(mt.UNTERMINATED_CLOSING_BRACE, i(), 0), he;
|
|
28558
28558
|
}
|
|
@@ -28568,11 +28568,11 @@ function Nj(t, e = {}) {
|
|
|
28568
28568
|
w(z), g(z, "'");
|
|
28569
28569
|
let H = "", he = "";
|
|
28570
28570
|
for (; H = Q(z, Fe); )
|
|
28571
|
-
H === "\\" ? he +=
|
|
28571
|
+
H === "\\" ? he += j(z) : he += H;
|
|
28572
28572
|
const Se = z.currentChar();
|
|
28573
28573
|
return Se === xo || Se === ys ? (f(mt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Se === xo && (z.next(), g(z, "'")), he) : (g(z, "'"), he);
|
|
28574
28574
|
}
|
|
28575
|
-
function
|
|
28575
|
+
function j(z) {
|
|
28576
28576
|
const H = z.currentChar();
|
|
28577
28577
|
switch (H) {
|
|
28578
28578
|
case "\\":
|
|
@@ -28723,7 +28723,7 @@ function Nj(t, e = {}) {
|
|
|
28723
28723
|
default: {
|
|
28724
28724
|
if (I(z))
|
|
28725
28725
|
return he = h(H, 1, Ae(z)), H.braceNest = 0, H.inLinked = !1, he;
|
|
28726
|
-
if (
|
|
28726
|
+
if (K(z))
|
|
28727
28727
|
return h(H, 0, Re(z));
|
|
28728
28728
|
break;
|
|
28729
28729
|
}
|
|
@@ -29781,7 +29781,7 @@ let Bw = 0;
|
|
|
29781
29781
|
function Vq(t = {}) {
|
|
29782
29782
|
const e = rn(t.onWarn) ? t.onWarn : Ys, n = ze(t.version) ? t.version : Lq, o = ze(t.locale) || rn(t.locale) ? t.locale : Pc, r = rn(o) ? Pc : o, i = En(t.fallbackLocale) || Mt(t.fallbackLocale) || ze(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r, s = Mt(t.messages) ? t.messages : v1(r), a = Mt(t.datetimeFormats) ? t.datetimeFormats : v1(r), l = Mt(t.numberFormats) ? t.numberFormats : v1(r), u = Un(Qt(), t.modifiers, Dq()), d = t.pluralRules || Qt(), f = rn(t.missing) ? t.missing : null, h = Ut(t.missingWarn) || eu(t.missingWarn) ? t.missingWarn : !0, m = Ut(t.fallbackWarn) || eu(t.fallbackWarn) ? t.fallbackWarn : !0, g = !!t.fallbackFormat, y = !!t.unresolving, w = rn(t.postTranslation) ? t.postTranslation : null, x = Mt(t.processor) ? t.processor : null, _ = Ut(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, C = !!t.escapeParameter, E = rn(t.messageCompiler) ? t.messageCompiler : T_;
|
|
29783
29783
|
process.env.NODE_ENV !== "production" && rn(t.messageCompiler) && __($a(Lo.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
29784
|
-
const T = rn(t.messageResolver) ? t.messageResolver : k_ || Mq, k = rn(t.localeFallbacker) ? t.localeFallbacker : A_ || xq, A = Ht(t.fallbackContext) ? t.fallbackContext : void 0, F = t, U = Ht(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), I = Ht(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(),
|
|
29784
|
+
const T = rn(t.messageResolver) ? t.messageResolver : k_ || Mq, k = rn(t.localeFallbacker) ? t.localeFallbacker : A_ || xq, A = Ht(t.fallbackContext) ? t.fallbackContext : void 0, F = t, U = Ht(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), I = Ht(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(), K = Ht(F.__meta) ? F.__meta : {};
|
|
29785
29785
|
Bw++;
|
|
29786
29786
|
const Q = {
|
|
29787
29787
|
version: n,
|
|
@@ -29805,9 +29805,9 @@ function Vq(t = {}) {
|
|
|
29805
29805
|
localeFallbacker: k,
|
|
29806
29806
|
fallbackContext: A,
|
|
29807
29807
|
onWarn: e,
|
|
29808
|
-
__meta:
|
|
29808
|
+
__meta: K
|
|
29809
29809
|
};
|
|
29810
|
-
return Q.datetimeFormats = a, Q.numberFormats = l, Q.__datetimeFormatters = U, Q.__numberFormatters = I, process.env.NODE_ENV !== "production" && (Q.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && gq(Q, n,
|
|
29810
|
+
return Q.datetimeFormats = a, Q.numberFormats = l, Q.__datetimeFormatters = U, Q.__numberFormatters = I, process.env.NODE_ENV !== "production" && (Q.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && gq(Q, n, K), Q;
|
|
29811
29811
|
}
|
|
29812
29812
|
const v1 = (t) => ({ [t]: Qt() });
|
|
29813
29813
|
function Qh(t, e) {
|
|
@@ -30085,7 +30085,7 @@ function jw(t, ...e) {
|
|
|
30085
30085
|
}, F = yr(E) ? E : B_(t, l, _, E, T, A);
|
|
30086
30086
|
if (k)
|
|
30087
30087
|
return E;
|
|
30088
|
-
const U = nK(t, _, C, u), I = Jq(U),
|
|
30088
|
+
const U = nK(t, _, C, u), I = Jq(U), K = Qq(t, F, I), Q = o ? o(K, l) : K;
|
|
30089
30089
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
30090
30090
|
const re = {
|
|
30091
30091
|
timestamp: Date.now(),
|
|
@@ -30538,7 +30538,7 @@ function Uv(t = {}) {
|
|
|
30538
30538
|
set: (ue) => {
|
|
30539
30539
|
a.value = ue, A.locale = a.value;
|
|
30540
30540
|
}
|
|
30541
|
-
}),
|
|
30541
|
+
}), K = X({
|
|
30542
30542
|
get: () => l.value,
|
|
30543
30543
|
set: (ue) => {
|
|
30544
30544
|
l.value = ue, A.fallbackLocale = l.value, qu(A, a.value, ue);
|
|
@@ -30547,7 +30547,7 @@ function Uv(t = {}) {
|
|
|
30547
30547
|
function Y() {
|
|
30548
30548
|
return rn(_) ? _ : null;
|
|
30549
30549
|
}
|
|
30550
|
-
function
|
|
30550
|
+
function q(ue) {
|
|
30551
30551
|
_ = ue, A.postTranslation = ue;
|
|
30552
30552
|
}
|
|
30553
30553
|
function P() {
|
|
@@ -30607,7 +30607,7 @@ function Uv(t = {}) {
|
|
|
30607
30607
|
function Fe(ue) {
|
|
30608
30608
|
return ue.map((Te) => ze(Te) || Rn(Te) || Ut(Te) ? qw(String(Te)) : Te);
|
|
30609
30609
|
}
|
|
30610
|
-
const
|
|
30610
|
+
const j = {
|
|
30611
30611
|
normalize: Fe,
|
|
30612
30612
|
interpolate: (ue) => ue,
|
|
30613
30613
|
type: "vnode"
|
|
@@ -30617,7 +30617,7 @@ function Uv(t = {}) {
|
|
|
30617
30617
|
let we;
|
|
30618
30618
|
const Ne = Te;
|
|
30619
30619
|
try {
|
|
30620
|
-
Ne.processor =
|
|
30620
|
+
Ne.processor = j, we = Reflect.apply(jw, null, [Ne, ...ue]);
|
|
30621
30621
|
} finally {
|
|
30622
30622
|
Ne.processor = null;
|
|
30623
30623
|
}
|
|
@@ -30703,7 +30703,7 @@ function Uv(t = {}) {
|
|
|
30703
30703
|
const rt = {
|
|
30704
30704
|
id: Xw,
|
|
30705
30705
|
locale: I,
|
|
30706
|
-
fallbackLocale:
|
|
30706
|
+
fallbackLocale: K,
|
|
30707
30707
|
get inheritLocale() {
|
|
30708
30708
|
return s;
|
|
30709
30709
|
},
|
|
@@ -30764,7 +30764,7 @@ function Uv(t = {}) {
|
|
|
30764
30764
|
setLocaleMessage: le,
|
|
30765
30765
|
mergeLocaleMessage: $e,
|
|
30766
30766
|
getPostTranslationHandler: Y,
|
|
30767
|
-
setPostTranslationHandler:
|
|
30767
|
+
setPostTranslationHandler: q,
|
|
30768
30768
|
getMissingHandler: P,
|
|
30769
30769
|
setMissingHandler: J,
|
|
30770
30770
|
[$_]: _e
|
|
@@ -31688,7 +31688,7 @@ const JK = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
31688
31688
|
mode: {}
|
|
31689
31689
|
},
|
|
31690
31690
|
setup(t) {
|
|
31691
|
-
const e = lR(() => import("./BulkSpellChecker-
|
|
31691
|
+
const e = lR(() => import("./BulkSpellChecker-0NBk7Kyf.mjs")), { t: n } = Jt(), o = t, r = Gt("isEditable", $(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = X(() => {
|
|
31692
31692
|
const f = [...o.editor.extensionManager.extensions].sort((m, g) => m.name === "superText" ? 1 : g.name === "superText" ? -1 : 0);
|
|
31693
31693
|
let h = [];
|
|
31694
31694
|
for (const m of f) {
|
|
@@ -33775,7 +33775,7 @@ const tX = { key: 0 }, nX = {
|
|
|
33775
33775
|
nd(T, k);
|
|
33776
33776
|
}
|
|
33777
33777
|
return (T, k) => {
|
|
33778
|
-
const A = ft, F = Ji, U = mu, I = Jg,
|
|
33778
|
+
const A = ft, F = Ji, U = mu, I = Jg, K = nu, Q = Hc, re = Kv, ve = qv, Y = hu, q = pu;
|
|
33779
33779
|
return M(), B(b(Nh), {
|
|
33780
33780
|
editor: T.editor,
|
|
33781
33781
|
"plugin-key": "image-menus-123",
|
|
@@ -33810,7 +33810,7 @@ const tX = { key: 0 }, nX = {
|
|
|
33810
33810
|
orientation: "vertical",
|
|
33811
33811
|
class: "mx-1 me-2 h-[16px]"
|
|
33812
33812
|
}),
|
|
33813
|
-
D(
|
|
33813
|
+
D(q, null, {
|
|
33814
33814
|
default: N(() => [
|
|
33815
33815
|
D(U, null, {
|
|
33816
33816
|
default: N(() => [
|
|
@@ -33833,7 +33833,7 @@ const tX = { key: 0 }, nX = {
|
|
|
33833
33833
|
]),
|
|
33834
33834
|
_: 1
|
|
33835
33835
|
}),
|
|
33836
|
-
D(
|
|
33836
|
+
D(K, {
|
|
33837
33837
|
id: "maxWidth",
|
|
33838
33838
|
modelValue: r.value,
|
|
33839
33839
|
"onUpdate:modelValue": k[0] || (k[0] = (P) => r.value = P),
|
|
@@ -33851,7 +33851,7 @@ const tX = { key: 0 }, nX = {
|
|
|
33851
33851
|
]),
|
|
33852
33852
|
_: 1
|
|
33853
33853
|
}),
|
|
33854
|
-
D(
|
|
33854
|
+
D(K, {
|
|
33855
33855
|
id: "maxWidth",
|
|
33856
33856
|
modelValue: i.value,
|
|
33857
33857
|
"onUpdate:modelValue": k[1] || (k[1] = (P) => i.value = P),
|
|
@@ -34254,29 +34254,29 @@ const NX = () => {
|
|
|
34254
34254
|
},
|
|
34255
34255
|
AIMenu: !1
|
|
34256
34256
|
}), a = NX(), l = OX(), u = $(null);
|
|
34257
|
-
function d(
|
|
34258
|
-
n.value =
|
|
34257
|
+
function d(q) {
|
|
34258
|
+
n.value = q;
|
|
34259
34259
|
}
|
|
34260
|
-
function f(
|
|
34261
|
-
s.zoom = [
|
|
34260
|
+
function f(q) {
|
|
34261
|
+
s.zoom = [q];
|
|
34262
34262
|
}
|
|
34263
|
-
function h(
|
|
34264
|
-
s.fontSize =
|
|
34263
|
+
function h(q) {
|
|
34264
|
+
s.fontSize = q;
|
|
34265
34265
|
}
|
|
34266
|
-
function m(
|
|
34267
|
-
s.fontFamily =
|
|
34266
|
+
function m(q) {
|
|
34267
|
+
s.fontFamily = q;
|
|
34268
34268
|
}
|
|
34269
|
-
function g(
|
|
34270
|
-
n.value =
|
|
34269
|
+
function g(q) {
|
|
34270
|
+
n.value = q, s.editor.html = q.getHTML(), s.editor.json = q.getJSON(), s.editor.text = q.getText();
|
|
34271
34271
|
}
|
|
34272
|
-
function y(
|
|
34273
|
-
e.value = { ...e.value, ...
|
|
34272
|
+
function y(q) {
|
|
34273
|
+
e.value = { ...e.value, ...q };
|
|
34274
34274
|
}
|
|
34275
34275
|
function w() {
|
|
34276
34276
|
s.viewSuperText = !s.viewSuperText;
|
|
34277
34277
|
}
|
|
34278
|
-
function x(
|
|
34279
|
-
s.viewSuperText =
|
|
34278
|
+
function x(q) {
|
|
34279
|
+
s.viewSuperText = q;
|
|
34280
34280
|
}
|
|
34281
34281
|
function _() {
|
|
34282
34282
|
s.showPreview = !s.showPreview;
|
|
@@ -34284,8 +34284,8 @@ const NX = () => {
|
|
|
34284
34284
|
function C() {
|
|
34285
34285
|
s.spellCheck = !s.spellCheck;
|
|
34286
34286
|
}
|
|
34287
|
-
function E(
|
|
34288
|
-
s.spellCheck =
|
|
34287
|
+
function E(q) {
|
|
34288
|
+
s.spellCheck = q;
|
|
34289
34289
|
}
|
|
34290
34290
|
function T() {
|
|
34291
34291
|
s.findAndReplace = !s.findAndReplace;
|
|
@@ -34297,29 +34297,29 @@ const NX = () => {
|
|
|
34297
34297
|
s.extensions = t.extensions, s.defaultLang = t.defaultLang;
|
|
34298
34298
|
});
|
|
34299
34299
|
const A = $();
|
|
34300
|
-
function F(
|
|
34301
|
-
A.value =
|
|
34300
|
+
function F(q) {
|
|
34301
|
+
A.value = q;
|
|
34302
34302
|
}
|
|
34303
34303
|
function U() {
|
|
34304
|
-
var
|
|
34305
|
-
(
|
|
34304
|
+
var q;
|
|
34305
|
+
(q = A.value) == null || q.openDialog();
|
|
34306
34306
|
}
|
|
34307
34307
|
function I() {
|
|
34308
|
-
var
|
|
34309
|
-
(
|
|
34308
|
+
var q;
|
|
34309
|
+
(q = A.value) == null || q.closeDialog();
|
|
34310
34310
|
}
|
|
34311
|
-
const
|
|
34312
|
-
function Q(
|
|
34313
|
-
|
|
34311
|
+
const K = $([]);
|
|
34312
|
+
function Q(q) {
|
|
34313
|
+
K.value = q;
|
|
34314
34314
|
}
|
|
34315
|
-
function re(
|
|
34315
|
+
function re(q, P, J = !0) {
|
|
34316
34316
|
const de = new DOMParser().parseFromString(P, "text/html");
|
|
34317
|
-
return
|
|
34317
|
+
return q.forEach(({ loc: fe, elementId: Re, content: Pe }) => {
|
|
34318
34318
|
const st = `button.super-text[${St.POSITION}="${fe}"]`, Fe = de.querySelector(st);
|
|
34319
34319
|
Fe && (Fe.setAttribute(St.ELEMENT_ID, Re || ""), Fe.setAttribute(St.TEXT, J ? LH(Pe) : Pe));
|
|
34320
34320
|
}), de.body.innerHTML;
|
|
34321
34321
|
}
|
|
34322
|
-
const ve = (
|
|
34322
|
+
const ve = (q) => u.value = q, Y = $(null);
|
|
34323
34323
|
return {
|
|
34324
34324
|
state: s,
|
|
34325
34325
|
page: e,
|
|
@@ -34346,7 +34346,7 @@ const NX = () => {
|
|
|
34346
34346
|
setEditorContextMenuRef: F,
|
|
34347
34347
|
openSuperInput: U,
|
|
34348
34348
|
closeSuperInput: I,
|
|
34349
|
-
imageAttachments:
|
|
34349
|
+
imageAttachments: K,
|
|
34350
34350
|
setImageAttachment: Q,
|
|
34351
34351
|
getUpdatedContentBySuperText: re,
|
|
34352
34352
|
textAlert: u,
|
|
@@ -35962,7 +35962,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
35962
35962
|
function it(we, Ne) {
|
|
35963
35963
|
we !== "" && (Se.startScope(Ne), Se.addText(we), Se.endScope());
|
|
35964
35964
|
}
|
|
35965
|
-
function
|
|
35965
|
+
function j(we, Ne) {
|
|
35966
35966
|
let Je = 1;
|
|
35967
35967
|
const gt = Ne.length - 1;
|
|
35968
35968
|
for (; Je <= gt; ) {
|
|
@@ -35975,7 +35975,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
35975
35975
|
}
|
|
35976
35976
|
}
|
|
35977
35977
|
function oe(we, Ne) {
|
|
35978
|
-
return we.scope && typeof we.scope == "string" && Se.openNode(le.classNameAliases[we.scope] || we.scope), we.beginScope && (we.beginScope._wrap ? (it(Ke, le.classNameAliases[we.beginScope._wrap] || we.beginScope._wrap), Ke = "") : we.beginScope._multi && (
|
|
35978
|
+
return we.scope && typeof we.scope == "string" && Se.openNode(le.classNameAliases[we.scope] || we.scope), we.beginScope && (we.beginScope._wrap ? (it(Ke, le.classNameAliases[we.beginScope._wrap] || we.beginScope._wrap), Ke = "") : we.beginScope._multi && (j(we.beginScope, Ne), Ke = "")), H = Object.create(we, { parent: { value: H } }), H;
|
|
35979
35979
|
}
|
|
35980
35980
|
function me(we, Ne, Je) {
|
|
35981
35981
|
let gt = yY(we.endRe, Je);
|
|
@@ -36008,7 +36008,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36008
36008
|
if (!gt)
|
|
36009
36009
|
return k8;
|
|
36010
36010
|
const Xt = H;
|
|
36011
|
-
H.endScope && H.endScope._wrap ? (Fe(), it(Ne, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (Fe(),
|
|
36011
|
+
H.endScope && H.endScope._wrap ? (Fe(), it(Ne, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (Fe(), j(H.endScope, we)) : Xt.skip ? Ke += Ne : (Xt.returnEnd || Xt.excludeEnd || (Ke += Ne), Fe(), Xt.excludeEnd && (Ke = Ne));
|
|
36012
36012
|
do
|
|
36013
36013
|
H.scope && Se.closeNode(), !H.skip && !H.subLanguage && (yt += H.relevance), H = H.parent;
|
|
36014
36014
|
while (H !== gt.parent);
|
|
@@ -36118,7 +36118,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36118
36118
|
}
|
|
36119
36119
|
function m(P, J) {
|
|
36120
36120
|
J = J || a.languages || Object.keys(e);
|
|
36121
|
-
const se = h(P), de = J.filter(U).filter(
|
|
36121
|
+
const se = h(P), de = J.filter(U).filter(K).map(
|
|
36122
36122
|
(Fe) => f(Fe, P, !1)
|
|
36123
36123
|
);
|
|
36124
36124
|
de.unshift(se);
|
|
@@ -36216,7 +36216,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36216
36216
|
n[se.toLowerCase()] = J;
|
|
36217
36217
|
});
|
|
36218
36218
|
}
|
|
36219
|
-
function
|
|
36219
|
+
function K(P) {
|
|
36220
36220
|
const J = U(P);
|
|
36221
36221
|
return J && !J.disableAutodetect;
|
|
36222
36222
|
}
|
|
@@ -36244,7 +36244,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36244
36244
|
de[se] && de[se](J);
|
|
36245
36245
|
});
|
|
36246
36246
|
}
|
|
36247
|
-
function
|
|
36247
|
+
function q(P) {
|
|
36248
36248
|
return Sl("10.7.0", "highlightBlock will be removed entirely in v12.0"), Sl("10.7.0", "Please use highlightElement now."), y(P);
|
|
36249
36249
|
}
|
|
36250
36250
|
Object.assign(t, {
|
|
@@ -36253,7 +36253,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36253
36253
|
highlightAll: E,
|
|
36254
36254
|
highlightElement: y,
|
|
36255
36255
|
// TODO: Remove with v12 API
|
|
36256
|
-
highlightBlock:
|
|
36256
|
+
highlightBlock: q,
|
|
36257
36257
|
configure: w,
|
|
36258
36258
|
initHighlighting: x,
|
|
36259
36259
|
initHighlightingOnLoad: _,
|
|
@@ -36262,7 +36262,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36262
36262
|
listLanguages: F,
|
|
36263
36263
|
getLanguage: U,
|
|
36264
36264
|
registerAliases: I,
|
|
36265
|
-
autoDetection:
|
|
36265
|
+
autoDetection: K,
|
|
36266
36266
|
inherit: T8,
|
|
36267
36267
|
addPlugin: re,
|
|
36268
36268
|
removePlugin: ve
|
|
@@ -39147,7 +39147,7 @@ function SZ({
|
|
|
39147
39147
|
At(T, e, T), At(T, n, k), At(k, e, T), At(k, n, k), Ie(_, ni, T), Ie(E, ni, T);
|
|
39148
39148
|
const A = Ie(a, As), F = Ie(l, As), U = Ie(F, ni), I = Ie(U, ni);
|
|
39149
39149
|
At(a, t.domain, s), Ie(a, ti, x), Ie(a, gr, w), At(l, t.domain, s), Ie(l, ti, x), Ie(l, gr, w), At(A, t.domain, T), Ie(A, ni, T), Ie(A, mc, T), At(I, t.domain, T), At(I, e, T), Ie(I, ni, T);
|
|
39150
|
-
const
|
|
39150
|
+
const K = [
|
|
39151
39151
|
[fc, pc],
|
|
39152
39152
|
// {}
|
|
39153
39153
|
[Ip, Rp],
|
|
@@ -39165,13 +39165,13 @@ function SZ({
|
|
|
39165
39165
|
[Wp, jp]
|
|
39166
39166
|
// <>
|
|
39167
39167
|
];
|
|
39168
|
-
for (let Q = 0; Q <
|
|
39169
|
-
const [re, ve] =
|
|
39168
|
+
for (let Q = 0; Q < K.length; Q++) {
|
|
39169
|
+
const [re, ve] = K[Q], Y = Ie(T, re);
|
|
39170
39170
|
Ie(k, re, Y), Ie(Y, ve, T);
|
|
39171
|
-
const
|
|
39172
|
-
At(Y, e,
|
|
39171
|
+
const q = mr(If);
|
|
39172
|
+
At(Y, e, q);
|
|
39173
39173
|
const P = mr();
|
|
39174
|
-
At(Y, n), At(
|
|
39174
|
+
At(Y, n), At(q, e, q), At(q, n, P), At(P, e, q), At(P, n, P), Ie(q, ve, T), Ie(P, ve, T);
|
|
39175
39175
|
}
|
|
39176
39176
|
return Ie(r, qc, _), Ie(r, u2, _Z), {
|
|
39177
39177
|
start: r,
|
|
@@ -42620,7 +42620,7 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42620
42620
|
return (T = o.parentEditor) == null ? void 0 : T.extensionManager.extensions.find((k) => k.name === "spellchecker");
|
|
42621
42621
|
}), d = X(
|
|
42622
42622
|
() => {
|
|
42623
|
-
var T, k, A, F, U, I,
|
|
42623
|
+
var T, k, A, F, U, I, K;
|
|
42624
42624
|
return GT.configure({
|
|
42625
42625
|
proofreader: new y7({
|
|
42626
42626
|
api: (k = (T = u.value) == null ? void 0 : T.options.proofreader) == null ? void 0 : k.api,
|
|
@@ -42628,7 +42628,7 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42628
42628
|
transfer: (I = (U = u.value) == null ? void 0 : U.options.proofreader) == null ? void 0 : I.transfer,
|
|
42629
42629
|
enabled: l.value
|
|
42630
42630
|
}),
|
|
42631
|
-
uiStrings: (
|
|
42631
|
+
uiStrings: (K = u.value) == null ? void 0 : K.options.uiStrings
|
|
42632
42632
|
});
|
|
42633
42633
|
}
|
|
42634
42634
|
), f = new ns({
|
|
@@ -42681,28 +42681,28 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42681
42681
|
C.font = k.font;
|
|
42682
42682
|
const A = 20, F = () => Math.max(0, (y.value || 0) - A);
|
|
42683
42683
|
function U(re, ve) {
|
|
42684
|
-
let Y = 1,
|
|
42685
|
-
for (; Y <=
|
|
42686
|
-
const J = Math.floor((Y +
|
|
42687
|
-
C.measureText(re.slice(0, J)).width <= ve ? (P = J, Y = J + 1) :
|
|
42684
|
+
let Y = 1, q = re.length, P = 0;
|
|
42685
|
+
for (; Y <= q; ) {
|
|
42686
|
+
const J = Math.floor((Y + q) / 2);
|
|
42687
|
+
C.measureText(re.slice(0, J)).width <= ve ? (P = J, Y = J + 1) : q = J - 1;
|
|
42688
42688
|
}
|
|
42689
42689
|
return P;
|
|
42690
42690
|
}
|
|
42691
42691
|
let I = "";
|
|
42692
|
-
const
|
|
42692
|
+
const K = [];
|
|
42693
42693
|
for (const re of T) {
|
|
42694
42694
|
if (re === `
|
|
42695
42695
|
`) {
|
|
42696
|
-
|
|
42696
|
+
K.push(I), I = "";
|
|
42697
42697
|
continue;
|
|
42698
42698
|
}
|
|
42699
42699
|
if (I += re, C.measureText(I).width > F())
|
|
42700
42700
|
for (; C.measureText(I).width > F(); ) {
|
|
42701
42701
|
const ve = U(I, F());
|
|
42702
|
-
ve <= 0 ? (
|
|
42702
|
+
ve <= 0 ? (K.push(I.charAt(0)), I = I.slice(1)) : (K.push(I.slice(0, ve)), I = I.slice(ve));
|
|
42703
42703
|
}
|
|
42704
42704
|
}
|
|
42705
|
-
return
|
|
42705
|
+
return K.push(I), K.map((re) => `<p>${re}</p>`).join("");
|
|
42706
42706
|
}
|
|
42707
42707
|
return e({ insertSpecialCharater: h, isChecked: l, toggleSpellCheck: m, wrapText: E }), (T, k) => (M(), be("div", {
|
|
42708
42708
|
ref_key: "contentInner",
|
|
@@ -42736,7 +42736,7 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42736
42736
|
},
|
|
42737
42737
|
emits: ["close", "save"],
|
|
42738
42738
|
setup(t, { emit: e }) {
|
|
42739
|
-
var
|
|
42739
|
+
var K, Q;
|
|
42740
42740
|
const n = e, o = t, { t: r } = Jt(), i = $(""), s = $(""), a = $(null), l = $(!1), u = rr({ x: 0, y: 0 }), d = $(!1), f = { x: 0, y: 0 }, h = $(!1), m = $(!1), g = (re) => {
|
|
42741
42741
|
d.value = !0, f.x = re.clientX - u.x, f.y = re.clientY - u.y, document.addEventListener("mousemove", y), document.addEventListener("mouseup", w);
|
|
42742
42742
|
}, y = (re) => {
|
|
@@ -42751,8 +42751,8 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42751
42751
|
m.value = !1, o.superTextInit && (i.value = o.superTextInit, o.superTextElementId && (s.value = o.superTextElementId)), await Rt();
|
|
42752
42752
|
const ve = document.querySelector(".draggable-dialog");
|
|
42753
42753
|
if (ve) {
|
|
42754
|
-
const { width: Y, height:
|
|
42755
|
-
u.x = 0, u.y = (P -
|
|
42754
|
+
const { width: Y, height: q } = ve.getBoundingClientRect(), P = window.innerHeight;
|
|
42755
|
+
u.x = 0, u.y = (P - q) / 2;
|
|
42756
42756
|
}
|
|
42757
42757
|
}
|
|
42758
42758
|
},
|
|
@@ -42764,7 +42764,7 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42764
42764
|
i.value = a.value.wrapText(), s.value = "", m.value ? h.value = !0 : n("close"), n("save", i.value), i.value = "";
|
|
42765
42765
|
}, C = () => {
|
|
42766
42766
|
h.value = !1, n("close");
|
|
42767
|
-
}, E = (Q = (
|
|
42767
|
+
}, E = (Q = (K = o.editor) == null ? void 0 : K.extensionManager.extensions.find((re) => re.name === "superText")) == null ? void 0 : Q.options.specialCharModal, T = Yx("recentSpecialChars", []), k = (re) => {
|
|
42768
42768
|
if (!re) return;
|
|
42769
42769
|
const ve = (T.value ?? []).filter((Y) => Y !== re);
|
|
42770
42770
|
ve.unshift(re), T.value = ve.slice(0, 5);
|
|
@@ -42786,7 +42786,7 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42786
42786
|
}), Le(i, (re) => {
|
|
42787
42787
|
!o.superTextElementId || o.superTextElementId === "" || (m.value = re !== (o.superTextInit ?? ""));
|
|
42788
42788
|
}), (re, ve) => {
|
|
42789
|
-
const Y = P2,
|
|
42789
|
+
const Y = P2, q = D2, P = L2, J = R2, se = I2, de = N2, fe = qee;
|
|
42790
42790
|
return M(), be(nt, null, [
|
|
42791
42791
|
D(de, { open: re.open }, {
|
|
42792
42792
|
default: N(() => [
|
|
@@ -42821,7 +42821,7 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42821
42821
|
]),
|
|
42822
42822
|
_: 1
|
|
42823
42823
|
}),
|
|
42824
|
-
D(
|
|
42824
|
+
D(q, {
|
|
42825
42825
|
class: "absolute right-3 top-3 text-white",
|
|
42826
42826
|
onClick: x
|
|
42827
42827
|
}, {
|
|
@@ -42956,80 +42956,75 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42956
42956
|
disableSuperInput: { type: Boolean }
|
|
42957
42957
|
},
|
|
42958
42958
|
setup(t, { expose: e }) {
|
|
42959
|
-
const n = t, { t: o } = Jt(), r = $(!1), i = rr({ from: 0, to: 0, text: "" });
|
|
42960
|
-
|
|
42961
|
-
const a = Gt("isEditable", $(!0)), l = Gt("canEditSuper", $(!0)), u = X(() => n.mode === Ze.EDITOR || n.mode === Ze.PLAIN_TEXT || !l.value || n.disableSuperInput);
|
|
42962
|
-
function d() {
|
|
42959
|
+
const n = t, { t: o } = Jt(), r = $(!1), i = rr({ from: 0, to: 0, text: "" }), s = Gt("isEditable", $(!0)), a = Gt("canEditSuper", $(!0)), l = X(() => n.mode === Ze.EDITOR || n.mode === Ze.PLAIN_TEXT || !a.value || n.disableSuperInput);
|
|
42960
|
+
function u() {
|
|
42963
42961
|
if (!n.editor) return "";
|
|
42964
|
-
const { from:
|
|
42965
|
-
return
|
|
42962
|
+
const { from: _, to: C } = n.editor.state.selection, E = n.editor.state.doc.cut(_, C), k = mi.fromSchema(n.editor.schema).serializeFragment(E.content), A = document.createElement("div");
|
|
42963
|
+
return A.appendChild(k), A.innerHTML;
|
|
42966
42964
|
}
|
|
42967
|
-
const
|
|
42968
|
-
const { view:
|
|
42969
|
-
i.text =
|
|
42970
|
-
},
|
|
42971
|
-
|
|
42972
|
-
},
|
|
42973
|
-
const
|
|
42965
|
+
const d = () => {
|
|
42966
|
+
const { view: _ } = n.editor, { from: C, to: E } = _.state.selection, T = u();
|
|
42967
|
+
i.text = T, i.from = C, i.to = E;
|
|
42968
|
+
}, f = () => r.value = !r.value, h = () => {
|
|
42969
|
+
l.value || (r.value = !0, d());
|
|
42970
|
+
}, m = () => r.value = !1, g = (_) => {
|
|
42971
|
+
const C = n == null ? void 0 : n.superTextStore.addMoreSuperText(_);
|
|
42974
42972
|
n.editor && n.editor.commands.insertContentAt(i.from, {
|
|
42975
42973
|
type: "superText",
|
|
42976
|
-
attrs: { "data-id":
|
|
42974
|
+
attrs: { "data-id": C, "data-text": _ }
|
|
42977
42975
|
}), r.value = !1, requestAnimationFrame(() => {
|
|
42978
|
-
|
|
42979
|
-
const T = (k = n.editor) == null ? void 0 : k.view.dom.parentElement;
|
|
42980
|
-
T && ((A = n.editor) == null || A.view.focus(), T.scrollTop = s);
|
|
42976
|
+
n.editor.commands.setTextSelection(i.from + 1), n.editor.view.focus();
|
|
42981
42977
|
});
|
|
42982
|
-
},
|
|
42983
|
-
var
|
|
42984
|
-
if (
|
|
42985
|
-
const
|
|
42986
|
-
|
|
42978
|
+
}, y = $(!1), w = async (_) => {
|
|
42979
|
+
var C, E;
|
|
42980
|
+
if (_) {
|
|
42981
|
+
const T = await ((E = (C = n.editor).hasClipboard) == null ? void 0 : E.call(C));
|
|
42982
|
+
y.value = !!T;
|
|
42987
42983
|
}
|
|
42988
|
-
},
|
|
42989
|
-
|
|
42990
|
-
|
|
42991
|
-
|
|
42992
|
-
i.from = T, i.to = k, i.text = "", s = ((F = (A = n.editor) == null ? void 0 : A.view.dom.parentElement) == null ? void 0 : F.scrollTop) || 0, C.dom.blur(), r.value = !0;
|
|
42984
|
+
}, x = () => {
|
|
42985
|
+
if (l.value || !n.editor) return;
|
|
42986
|
+
const { view: _, state: C } = n.editor, { from: E, to: T } = C.selection;
|
|
42987
|
+
i.from = E, i.to = T, i.text = "", _.dom.blur(), r.value = !0;
|
|
42993
42988
|
};
|
|
42994
|
-
return e({ toggleDialog:
|
|
42995
|
-
const
|
|
42989
|
+
return e({ toggleDialog: f, openDialog: h, closeDialog: m }), (_, C) => {
|
|
42990
|
+
const E = hd, T = m0, k = h0, A = p0, F = f0;
|
|
42996
42991
|
return M(), be(nt, null, [
|
|
42997
|
-
D(
|
|
42992
|
+
D(E, {
|
|
42998
42993
|
open: r.value,
|
|
42999
|
-
editor:
|
|
42994
|
+
editor: _.editor,
|
|
43000
42995
|
"super-text-init": i.text,
|
|
43001
|
-
onClose:
|
|
43002
|
-
onSave:
|
|
42996
|
+
onClose: f,
|
|
42997
|
+
onSave: g
|
|
43003
42998
|
}, null, 8, ["open", "editor", "super-text-init"]),
|
|
43004
|
-
D(
|
|
42999
|
+
D(F, { "onUpdate:open": w }, {
|
|
43005
43000
|
default: N(() => [
|
|
43006
|
-
D(
|
|
43001
|
+
D(T, {
|
|
43007
43002
|
as: "template",
|
|
43008
43003
|
class: "relative",
|
|
43009
|
-
disabled: b(
|
|
43010
|
-
onDblclick: Fn(
|
|
43004
|
+
disabled: b(l),
|
|
43005
|
+
onDblclick: Fn(x, ["prevent", "stop"])
|
|
43011
43006
|
}, {
|
|
43012
43007
|
default: N(() => [
|
|
43013
|
-
te(
|
|
43008
|
+
te(_.$slots, "default")
|
|
43014
43009
|
]),
|
|
43015
43010
|
_: 3
|
|
43016
43011
|
}, 8, ["disabled"]),
|
|
43017
|
-
D(
|
|
43012
|
+
D(A, null, {
|
|
43018
43013
|
default: N(() => [
|
|
43019
|
-
|
|
43014
|
+
_.disableSuperInput ? Oe("", !0) : (M(), B(k, {
|
|
43020
43015
|
key: 0,
|
|
43021
|
-
onSelect:
|
|
43016
|
+
onSelect: h
|
|
43022
43017
|
}, {
|
|
43023
43018
|
default: N(() => [
|
|
43024
43019
|
at(Be(b(o)("editor.inputSuper")), 1)
|
|
43025
43020
|
]),
|
|
43026
43021
|
_: 1
|
|
43027
43022
|
})),
|
|
43028
|
-
b(
|
|
43023
|
+
b(s) ? (M(), B(k, {
|
|
43029
43024
|
key: 1,
|
|
43030
|
-
onSelect:
|
|
43031
|
-
var
|
|
43032
|
-
return (
|
|
43025
|
+
onSelect: C[0] || (C[0] = (U) => {
|
|
43026
|
+
var I;
|
|
43027
|
+
return (I = _.editor) == null ? void 0 : I.commands.cutContent();
|
|
43033
43028
|
})
|
|
43034
43029
|
}, {
|
|
43035
43030
|
default: N(() => [
|
|
@@ -43037,11 +43032,11 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
43037
43032
|
]),
|
|
43038
43033
|
_: 1
|
|
43039
43034
|
})) : Oe("", !0),
|
|
43040
|
-
b(
|
|
43035
|
+
b(s) ? (M(), B(k, {
|
|
43041
43036
|
key: 2,
|
|
43042
|
-
onSelect:
|
|
43043
|
-
var
|
|
43044
|
-
return (
|
|
43037
|
+
onSelect: C[1] || (C[1] = (U) => {
|
|
43038
|
+
var I;
|
|
43039
|
+
return (I = _.editor) == null ? void 0 : I.commands.copyContent();
|
|
43045
43040
|
})
|
|
43046
43041
|
}, {
|
|
43047
43042
|
default: N(() => [
|
|
@@ -43049,12 +43044,12 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
43049
43044
|
]),
|
|
43050
43045
|
_: 1
|
|
43051
43046
|
})) : Oe("", !0),
|
|
43052
|
-
b(
|
|
43047
|
+
b(s) ? (M(), B(k, {
|
|
43053
43048
|
key: 3,
|
|
43054
|
-
disabled: !
|
|
43055
|
-
onSelect:
|
|
43056
|
-
var
|
|
43057
|
-
return (
|
|
43049
|
+
disabled: !y.value,
|
|
43050
|
+
onSelect: C[2] || (C[2] = (U) => {
|
|
43051
|
+
var I;
|
|
43052
|
+
return (I = _.editor) == null ? void 0 : I.commands.pasteContent();
|
|
43058
43053
|
})
|
|
43059
43054
|
}, {
|
|
43060
43055
|
default: N(() => [
|
|
@@ -43992,9 +43987,9 @@ const nx = (t) => t.command(({ tr: e }) => {
|
|
|
43992
43987
|
else
|
|
43993
43988
|
return;
|
|
43994
43989
|
const { width: F, height: U } = b(r), I = F / U;
|
|
43995
|
-
let
|
|
43990
|
+
let K = Number(e.node.attrs.width) || F, Q = Number(e.node.attrs.height) || Math.round(K / I);
|
|
43996
43991
|
const re = b(o).width;
|
|
43997
|
-
|
|
43992
|
+
K = Math.min(K > re ? re : K, re), Q = Math.round(K / I), Object.assign(s.value, { x: T, y: k, w: K, h: Q, dir: E }), i.value = !0, y();
|
|
43998
43993
|
}
|
|
43999
43994
|
const m = Ct.throttle((C) => {
|
|
44000
43995
|
if (!b(i)) return;
|
|
@@ -44586,8 +44581,8 @@ function $te(t) {
|
|
|
44586
44581
|
F > k && (U = F - T);
|
|
44587
44582
|
const I = C.state.doc.content.size;
|
|
44588
44583
|
U < 0 && (U = 0), U > I && (U = I);
|
|
44589
|
-
const
|
|
44590
|
-
Q.delete(k, A), Q.insert(U,
|
|
44584
|
+
const K = E.type.create(E.attrs), Q = C.state.tr;
|
|
44585
|
+
Q.delete(k, A), Q.insert(U, K), C.dispatch(Q), m();
|
|
44591
44586
|
return;
|
|
44592
44587
|
}
|
|
44593
44588
|
if (n) {
|
|
@@ -44606,8 +44601,8 @@ const Hte = ["book-mark-node-id", "page-id", "page-number", "book-mark-content",
|
|
|
44606
44601
|
props: qa,
|
|
44607
44602
|
setup(t) {
|
|
44608
44603
|
const e = t, n = $(!1), o = $(null), { selection: r, doc: i } = e.editor.state, s = $(!1), a = Gt("isMobile", !1), l = Co(Uo.RENDER_SUPER_TEXT), { onTouchStart: u, onTouchMove: d, onTouchEnd: f } = $te(e), h = X(() => {
|
|
44609
|
-
var I,
|
|
44610
|
-
const k = i.resolve(r.from), A = k == null ? void 0 : k.node(-1), F = (I = A == null ? void 0 : A.attrs) == null ? void 0 : I.id, U = (
|
|
44604
|
+
var I, K;
|
|
44605
|
+
const k = i.resolve(r.from), A = k == null ? void 0 : k.node(-1), F = (I = A == null ? void 0 : A.attrs) == null ? void 0 : I.id, U = (K = A == null ? void 0 : A.attrs) == null ? void 0 : K.pageNumber;
|
|
44611
44606
|
return {
|
|
44612
44607
|
pageId: F,
|
|
44613
44608
|
pageNumber: U
|
|
@@ -44630,10 +44625,10 @@ const Hte = ["book-mark-node-id", "page-id", "page-number", "book-mark-content",
|
|
|
44630
44625
|
C();
|
|
44631
44626
|
return;
|
|
44632
44627
|
}
|
|
44633
|
-
const A = e.getPos(), F = (Q = e.editor) == null ? void 0 : Q.state.doc.nodeAt(A), U = k.trim(), { [St.ELEMENT_ID]: I, ...
|
|
44628
|
+
const A = e.getPos(), F = (Q = e.editor) == null ? void 0 : Q.state.doc.nodeAt(A), U = k.trim(), { [St.ELEMENT_ID]: I, ...K } = (F == null ? void 0 : F.attrs) || {};
|
|
44634
44629
|
(re = e.editor) == null || re.view.dispatch(
|
|
44635
44630
|
e.editor.state.tr.setNodeMarkup(A, void 0, {
|
|
44636
|
-
...
|
|
44631
|
+
...K,
|
|
44637
44632
|
[St.TEXT]: U
|
|
44638
44633
|
})
|
|
44639
44634
|
), requestAnimationFrame(() => {
|
|
@@ -44673,7 +44668,7 @@ const Hte = ["book-mark-node-id", "page-id", "page-number", "book-mark-content",
|
|
|
44673
44668
|
a && (s.value = !0, E());
|
|
44674
44669
|
}
|
|
44675
44670
|
return (k, A) => {
|
|
44676
|
-
const F = po, U = m0, I = h0,
|
|
44671
|
+
const F = po, U = m0, I = h0, K = p0, Q = f0, re = hd;
|
|
44677
44672
|
return M(), B(b(ja), {
|
|
44678
44673
|
as: "span",
|
|
44679
44674
|
class: Ve(["w-fit text-inherit super-text align-middle", {
|
|
@@ -44732,7 +44727,7 @@ const Hte = ["book-mark-node-id", "page-id", "page-number", "book-mark-content",
|
|
|
44732
44727
|
]),
|
|
44733
44728
|
_: 1
|
|
44734
44729
|
}, 8, ["disabled"]),
|
|
44735
|
-
D(
|
|
44730
|
+
D(K, null, {
|
|
44736
44731
|
default: N(() => [
|
|
44737
44732
|
D(I, {
|
|
44738
44733
|
onSelect: A[0] || (A[0] = (ve) => n.value = !0)
|
|
@@ -48901,10 +48896,10 @@ function sre({ pluginKey: t = ire, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
48901
48896
|
return {
|
|
48902
48897
|
update: async (x, _) => {
|
|
48903
48898
|
var C, E, T, k, A, F, U;
|
|
48904
|
-
const I = (C = this.key) === null || C === void 0 ? void 0 : C.getState(_),
|
|
48905
|
-
if (!
|
|
48899
|
+
const I = (C = this.key) === null || C === void 0 ? void 0 : C.getState(_), K = (E = this.key) === null || E === void 0 ? void 0 : E.getState(x.state), Q = I.active && K.active && I.range.from !== K.range.from, re = !I.active && K.active, ve = I.active && !K.active, Y = !re && !ve && I.query !== K.query, q = re || Q && Y, P = Y || Q, J = ve || Q && Y;
|
|
48900
|
+
if (!q && !P && !J)
|
|
48906
48901
|
return;
|
|
48907
|
-
const se = J && !
|
|
48902
|
+
const se = J && !q ? I : K, de = x.dom.querySelector(`[data-decoration-id="${se.decorationId}"]`);
|
|
48908
48903
|
g = {
|
|
48909
48904
|
editor: e,
|
|
48910
48905
|
range: se.range,
|
|
@@ -48924,10 +48919,10 @@ function sre({ pluginKey: t = ire, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
48924
48919
|
const { decorationId: Re } = (fe = this.key) === null || fe === void 0 ? void 0 : fe.getState(e.state), Pe = x.dom.querySelector(`[data-decoration-id="${Re}"]`);
|
|
48925
48920
|
return (Pe == null ? void 0 : Pe.getBoundingClientRect()) || null;
|
|
48926
48921
|
} : null
|
|
48927
|
-
},
|
|
48922
|
+
}, q && ((T = y == null ? void 0 : y.onBeforeStart) === null || T === void 0 || T.call(y, g)), P && ((k = y == null ? void 0 : y.onBeforeUpdate) === null || k === void 0 || k.call(y, g)), (P || q) && (g.items = await d({
|
|
48928
48923
|
editor: e,
|
|
48929
48924
|
query: se.query
|
|
48930
|
-
})), J && ((A = y == null ? void 0 : y.onExit) === null || A === void 0 || A.call(y, g)), P && ((F = y == null ? void 0 : y.onUpdate) === null || F === void 0 || F.call(y, g)),
|
|
48925
|
+
})), J && ((A = y == null ? void 0 : y.onExit) === null || A === void 0 || A.call(y, g)), P && ((F = y == null ? void 0 : y.onUpdate) === null || F === void 0 || F.call(y, g)), q && ((U = y == null ? void 0 : y.onStart) === null || U === void 0 || U.call(y, g));
|
|
48931
48926
|
},
|
|
48932
48927
|
destroy: () => {
|
|
48933
48928
|
var x;
|
|
@@ -48954,7 +48949,7 @@ function sre({ pluginKey: t = ire, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
48954
48949
|
const { isEditable: T } = e, { composing: k } = e.view, { selection: A } = x, { empty: F, from: U } = A, I = { ..._ };
|
|
48955
48950
|
if (I.composing = k, T && (F || e.view.composing)) {
|
|
48956
48951
|
(U < _.range.from || U > _.range.to) && !k && !_.composing && (I.active = !1);
|
|
48957
|
-
const
|
|
48952
|
+
const K = m({
|
|
48958
48953
|
char: n,
|
|
48959
48954
|
allowSpaces: o,
|
|
48960
48955
|
allowToIncludeChar: r,
|
|
@@ -48962,12 +48957,12 @@ function sre({ pluginKey: t = ire, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
48962
48957
|
startOfLine: s,
|
|
48963
48958
|
$position: A.$from
|
|
48964
48959
|
}), Q = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
48965
|
-
|
|
48960
|
+
K && h({
|
|
48966
48961
|
editor: e,
|
|
48967
48962
|
state: E,
|
|
48968
|
-
range:
|
|
48963
|
+
range: K.range,
|
|
48969
48964
|
isActive: _.active
|
|
48970
|
-
}) ? (I.active = !0, I.decorationId = _.decorationId ? _.decorationId : Q, I.range =
|
|
48965
|
+
}) ? (I.active = !0, I.decorationId = _.decorationId ? _.decorationId : Q, I.range = K.range, I.query = K.query, I.text = K.text) : I.active = !1;
|
|
48971
48966
|
} else
|
|
48972
48967
|
I.active = !1;
|
|
48973
48968
|
return I.active || (I.decorationId = null, I.range = { from: 0, to: 0 }, I.query = null, I.text = null), I;
|
|
@@ -52712,9 +52707,9 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
52712
52707
|
const C = e.value.index, E = e.value.id, { state: T } = t, { tr: k } = T;
|
|
52713
52708
|
let A = !1;
|
|
52714
52709
|
T.doc.descendants((F, U) => {
|
|
52715
|
-
var I,
|
|
52710
|
+
var I, K;
|
|
52716
52711
|
if (((I = F.attrs) == null ? void 0 : I[St.ID]) === E) {
|
|
52717
|
-
(
|
|
52712
|
+
(K = F.attrs[St.TEXT]) != null && K.trim();
|
|
52718
52713
|
const Q = _.trim();
|
|
52719
52714
|
if (MT(Q))
|
|
52720
52715
|
return k.delete(U, U + 1), A = !0, !1;
|
|
@@ -52744,7 +52739,7 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
52744
52739
|
}, d = (_) => _.replace(/<p><\/p>/g, "<p> </p>"), f = async () => {
|
|
52745
52740
|
await Rt();
|
|
52746
52741
|
const C = a().map((E) => {
|
|
52747
|
-
const T = E.getAttribute("node-id"), k = E.getAttribute("book-mark-content"), A = E.getAttribute("page-id"), F = E.getAttribute("page-number"), U = E.getBoundingClientRect(), I = E.getAttribute("line-id"),
|
|
52742
|
+
const T = E.getAttribute("node-id"), k = E.getAttribute("book-mark-content"), A = E.getAttribute("page-id"), F = E.getAttribute("page-number"), U = E.getBoundingClientRect(), I = E.getAttribute("line-id"), K = E.getAttribute("element-id");
|
|
52748
52743
|
return {
|
|
52749
52744
|
position: U,
|
|
52750
52745
|
text: d(k),
|
|
@@ -52754,7 +52749,7 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
52754
52749
|
visiblePosition: l(E),
|
|
52755
52750
|
status: 0,
|
|
52756
52751
|
lineId: I,
|
|
52757
|
-
elementId:
|
|
52752
|
+
elementId: K,
|
|
52758
52753
|
textOriginal: d(k)
|
|
52759
52754
|
};
|
|
52760
52755
|
});
|
|
@@ -52895,9 +52890,9 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
52895
52890
|
"line-id": k.lineId,
|
|
52896
52891
|
class: Ve(b(Ye)("super-text-view", "absolute w-full px-2 translate-y-[-10px] group", {})),
|
|
52897
52892
|
style: Nt({ top: `${k.visiblePosition || ((F = k.position) == null ? void 0 : F.top)}px` }),
|
|
52898
|
-
onMouseover: (
|
|
52893
|
+
onMouseover: (K) => b(f)(K, A),
|
|
52899
52894
|
onMouseleave: C[0] || (C[0] = //@ts-ignore
|
|
52900
|
-
(...
|
|
52895
|
+
(...K) => b(h) && b(h)(...K))
|
|
52901
52896
|
}, [
|
|
52902
52897
|
D(b(x7), {
|
|
52903
52898
|
role: "text",
|
|
@@ -52911,7 +52906,7 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
52911
52906
|
}
|
|
52912
52907
|
)
|
|
52913
52908
|
),
|
|
52914
|
-
onDblclick: (
|
|
52909
|
+
onDblclick: (K) => m(k, A)
|
|
52915
52910
|
}, {
|
|
52916
52911
|
default: N(() => [
|
|
52917
52912
|
ne("div", {
|
|
@@ -53138,15 +53133,15 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53138
53133
|
handlePaste: (T, k) => {
|
|
53139
53134
|
const A = k.clipboardData;
|
|
53140
53135
|
if (!A) return !1;
|
|
53141
|
-
const F = o.mode, U = A.getData("text/plain") || "", I = Array.from(A.items).some((
|
|
53136
|
+
const F = o.mode, U = A.getData("text/plain") || "", I = Array.from(A.items).some((K) => K.type.startsWith("image/"));
|
|
53142
53137
|
return (F === Ze.STRAIGHT || F === Ze.REPORT) && I ? (k.preventDefault(), !0) : F === Ze.PLAIN_TEXT ? (k.preventDefault(), T.dispatch(T.state.tr.insertText(U, T.state.selection.from)), !0) : !1;
|
|
53143
53138
|
},
|
|
53144
53139
|
clipboardTextParser: (T, k) => {
|
|
53145
53140
|
const A = T.split(/(?:\r\n?|\n)/), F = [];
|
|
53146
53141
|
A.forEach((I) => {
|
|
53147
|
-
let
|
|
53148
|
-
I.length > 0 && (
|
|
53149
|
-
let Q = Vr.fromJSON(k.doc.type.schema,
|
|
53142
|
+
let K = { type: "paragraph" };
|
|
53143
|
+
I.length > 0 && (K.content = [{ type: "text", text: I }]);
|
|
53144
|
+
let Q = Vr.fromJSON(k.doc.type.schema, K);
|
|
53150
53145
|
F.push(Q);
|
|
53151
53146
|
});
|
|
53152
53147
|
const U = xe.fromArray(F);
|
|
@@ -53446,14 +53441,14 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53446
53441
|
extensions: Ct.uniqBy(Ct.reverse(b(C)), "name"),
|
|
53447
53442
|
editable: x.value,
|
|
53448
53443
|
onFocus: () => {
|
|
53449
|
-
w(
|
|
53444
|
+
w(j.value);
|
|
53450
53445
|
},
|
|
53451
53446
|
parseOptions: {
|
|
53452
53447
|
preserveWhitespace: "full"
|
|
53453
53448
|
}
|
|
53454
53449
|
});
|
|
53455
53450
|
cn("minCharSuperInput", o.minChar.superPreview);
|
|
53456
|
-
const { contentInner:
|
|
53451
|
+
const { contentInner: K, measuredMinWidth: Q, measure: re } = Ih({
|
|
53457
53452
|
minChars: o.minChar.content,
|
|
53458
53453
|
fontSize: T,
|
|
53459
53454
|
editor: I
|
|
@@ -53462,7 +53457,7 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53462
53457
|
return (ie = ve.value) == null ? void 0 : ie.measuredMinWidthComment;
|
|
53463
53458
|
});
|
|
53464
53459
|
cn("measuredMinWidthComment", Y);
|
|
53465
|
-
const
|
|
53460
|
+
const q = X(() => E.value ? 0 : de.value ? Number(Q == null ? void 0 : Q.value) + Number(Y == null ? void 0 : Y.value) + 30 : Number(Q == null ? void 0 : Q.value));
|
|
53466
53461
|
async function P() {
|
|
53467
53462
|
await Rt(), i.emit({
|
|
53468
53463
|
action: "render"
|
|
@@ -53532,9 +53527,9 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53532
53527
|
Re,
|
|
53533
53528
|
o.autoHeight,
|
|
53534
53529
|
typeof o.minHeight == "string" ? parseInt(o.minHeight) : o.minHeight
|
|
53535
|
-
),
|
|
53530
|
+
), j = $(null);
|
|
53536
53531
|
function oe(ie) {
|
|
53537
|
-
ie === Ze.STRAIGHT && w(
|
|
53532
|
+
ie === Ze.STRAIGHT && w(j.value);
|
|
53538
53533
|
}
|
|
53539
53534
|
pt(() => {
|
|
53540
53535
|
oe(o.mode);
|
|
@@ -53624,7 +53619,7 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53624
53619
|
key: 1,
|
|
53625
53620
|
class: "space-y-2 flex-1 flex flex-col",
|
|
53626
53621
|
style: Nt({
|
|
53627
|
-
minWidth: `${
|
|
53622
|
+
minWidth: `${q.value}px`
|
|
53628
53623
|
})
|
|
53629
53624
|
}, [
|
|
53630
53625
|
ie.mode === b(Ze).REPORT && !ie.hideComment ? (M(), B(Use, {
|
|
@@ -53672,12 +53667,12 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53672
53667
|
ne("div", {
|
|
53673
53668
|
id: "editor-panel",
|
|
53674
53669
|
ref_key: "contentInner",
|
|
53675
|
-
ref:
|
|
53670
|
+
ref: K,
|
|
53676
53671
|
class: Ve(["flex-1 p-2.5 border border-ed-gray-400 rounded-[3px] focus-within:border-ed-input-focus", [!E.value && "[&_*:not(.super-text):not(.super-text-view):not(.bulk-highlight)]:!text-inherit"]])
|
|
53677
53672
|
}, [
|
|
53678
53673
|
D(B2, {
|
|
53679
53674
|
ref_key: "selectContextMenuRef",
|
|
53680
|
-
ref:
|
|
53675
|
+
ref: j,
|
|
53681
53676
|
editor: b(I),
|
|
53682
53677
|
mode: ie.mode,
|
|
53683
53678
|
"super-text-store": b(g)
|
|
@@ -54250,7 +54245,7 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54250
54245
|
"splitter-dblclick"
|
|
54251
54246
|
],
|
|
54252
54247
|
setup(t, { emit: e }) {
|
|
54253
|
-
const n = e, o = t, r = dh(), i = $([]), s = X(() => i.value.reduce((
|
|
54248
|
+
const n = e, o = t, r = dh(), i = $([]), s = X(() => i.value.reduce((j, oe) => (j[~~oe.id] = oe) && j, {})), a = X(() => i.value.length), l = $(null), u = $(!1), d = $({
|
|
54254
54249
|
mouseDown: !1,
|
|
54255
54250
|
dragging: !1,
|
|
54256
54251
|
activeSplitter: null,
|
|
@@ -54267,45 +54262,45 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54267
54262
|
document.addEventListener("mousemove", w, { passive: !1 }), document.addEventListener("mouseup", x), "ontouchstart" in window && (document.addEventListener("touchmove", w, { passive: !1 }), document.addEventListener("touchend", x));
|
|
54268
54263
|
}, g = () => {
|
|
54269
54264
|
document.removeEventListener("mousemove", w, { passive: !1 }), document.removeEventListener("mouseup", x), "ontouchstart" in window && (document.removeEventListener("touchmove", w, { passive: !1 }), document.removeEventListener("touchend", x));
|
|
54270
|
-
}, y = (
|
|
54271
|
-
const me =
|
|
54265
|
+
}, y = (j, oe) => {
|
|
54266
|
+
const me = j.target.closest(".splitpanes__splitter");
|
|
54272
54267
|
if (me) {
|
|
54273
|
-
const { left: ye, top: _e } = me.getBoundingClientRect(), { clientX: ie, clientY: Ae } = "ontouchstart" in window &&
|
|
54268
|
+
const { left: ye, top: _e } = me.getBoundingClientRect(), { clientX: ie, clientY: Ae } = "ontouchstart" in window && j.touches ? j.touches[0] : j;
|
|
54274
54269
|
d.value.cursorOffset = o.horizontal ? Ae - _e : ie - ye;
|
|
54275
54270
|
}
|
|
54276
54271
|
m(), d.value.mouseDown = !0, d.value.activeSplitter = oe;
|
|
54277
|
-
}, w = (
|
|
54278
|
-
d.value.mouseDown && (
|
|
54279
|
-
A(T(
|
|
54272
|
+
}, w = (j) => {
|
|
54273
|
+
d.value.mouseDown && (j.preventDefault(), d.value.dragging = !0, requestAnimationFrame(() => {
|
|
54274
|
+
A(T(j)), Fe("resize", { event: j }, !0);
|
|
54280
54275
|
}));
|
|
54281
|
-
}, x = (
|
|
54282
|
-
d.value.dragging && (window.getSelection().removeAllRanges(), Fe("resized", { event:
|
|
54276
|
+
}, x = (j) => {
|
|
54277
|
+
d.value.dragging && (window.getSelection().removeAllRanges(), Fe("resized", { event: j }, !0)), d.value.mouseDown = !1, d.value.activeSplitter = null, setTimeout(() => {
|
|
54283
54278
|
d.value.dragging = !1, g();
|
|
54284
54279
|
}, 100);
|
|
54285
|
-
}, _ = (
|
|
54286
|
-
"ontouchstart" in window && (
|
|
54287
|
-
}, C = (
|
|
54288
|
-
if (Fe("splitter-dblclick", { event:
|
|
54280
|
+
}, _ = (j, oe) => {
|
|
54281
|
+
"ontouchstart" in window && (j.preventDefault(), f.value.splitter === oe ? (clearTimeout(f.value.timeoutId), f.value.timeoutId = null, C(j, oe), f.value.splitter = null) : (f.value.splitter = oe, f.value.timeoutId = setTimeout(() => f.value.splitter = null, 500))), d.value.dragging || Fe("splitter-click", { event: j, index: oe }, !0);
|
|
54282
|
+
}, C = (j, oe) => {
|
|
54283
|
+
if (Fe("splitter-dblclick", { event: j, index: oe }, !0), o.maximizePanes) {
|
|
54289
54284
|
let me = 0;
|
|
54290
|
-
i.value = i.value.map((ye, _e) => (ye.size = _e === oe ? ye.max : ye.min, _e !== oe && (me += ye.min), ye)), i.value[oe].size -= me, Fe("pane-maximize", { event:
|
|
54285
|
+
i.value = i.value.map((ye, _e) => (ye.size = _e === oe ? ye.max : ye.min, _e !== oe && (me += ye.min), ye)), i.value[oe].size -= me, Fe("pane-maximize", { event: j, index: oe, pane: i.value[oe] }), Fe("resized", { event: j, index: oe }, !0);
|
|
54291
54286
|
}
|
|
54292
|
-
}, E = (
|
|
54287
|
+
}, E = (j, oe) => {
|
|
54293
54288
|
Fe("pane-click", {
|
|
54294
|
-
event:
|
|
54289
|
+
event: j,
|
|
54295
54290
|
index: s.value[oe].index,
|
|
54296
54291
|
pane: s.value[oe]
|
|
54297
54292
|
});
|
|
54298
|
-
}, T = (
|
|
54299
|
-
const oe = l.value.getBoundingClientRect(), { clientX: me, clientY: ye } = "ontouchstart" in window &&
|
|
54293
|
+
}, T = (j) => {
|
|
54294
|
+
const oe = l.value.getBoundingClientRect(), { clientX: me, clientY: ye } = "ontouchstart" in window && j.touches ? j.touches[0] : j;
|
|
54300
54295
|
return {
|
|
54301
54296
|
x: me - (o.horizontal ? 0 : d.value.cursorOffset) - oe.left,
|
|
54302
54297
|
y: ye - (o.horizontal ? d.value.cursorOffset : 0) - oe.top
|
|
54303
54298
|
};
|
|
54304
|
-
}, k = (
|
|
54305
|
-
|
|
54299
|
+
}, k = (j) => {
|
|
54300
|
+
j = j[o.horizontal ? "y" : "x"];
|
|
54306
54301
|
const oe = l.value[o.horizontal ? "clientHeight" : "clientWidth"];
|
|
54307
|
-
return o.rtl && !o.horizontal && (
|
|
54308
|
-
}, A = (
|
|
54302
|
+
return o.rtl && !o.horizontal && (j = oe - j), j * 100 / oe;
|
|
54303
|
+
}, A = (j) => {
|
|
54309
54304
|
const oe = d.value.activeSplitter;
|
|
54310
54305
|
let me = {
|
|
54311
54306
|
prevPanesSize: U(oe),
|
|
@@ -54313,7 +54308,7 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54313
54308
|
prevReachedMinPanes: 0,
|
|
54314
54309
|
nextReachedMinPanes: 0
|
|
54315
54310
|
};
|
|
54316
|
-
const ye = 0 + (o.pushOtherPanes ? 0 : me.prevPanesSize), _e = 100 - (o.pushOtherPanes ? 0 : me.nextPanesSize), ie = Math.max(Math.min(k(
|
|
54311
|
+
const ye = 0 + (o.pushOtherPanes ? 0 : me.prevPanesSize), _e = 100 - (o.pushOtherPanes ? 0 : me.nextPanesSize), ie = Math.max(Math.min(k(j), _e), ye);
|
|
54317
54312
|
let Ae = [oe, oe + 1], We = i.value[Ae[0]] || null, ot = i.value[Ae[1]] || null;
|
|
54318
54313
|
const le = We.max < 100 && ie >= We.max + me.prevPanesSize, $e = ot.max < 100 && ie <= 100 - (ot.max + I(oe + 1));
|
|
54319
54314
|
if (le || $e) {
|
|
@@ -54326,101 +54321,101 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54326
54321
|
({ sums: me, panesToResize: Ae } = z), We = i.value[Ae[0]] || null, ot = i.value[Ae[1]] || null;
|
|
54327
54322
|
}
|
|
54328
54323
|
We !== null && (We.size = Math.min(Math.max(ie - me.prevPanesSize - me.prevReachedMinPanes, We.min), We.max)), ot !== null && (ot.size = Math.min(Math.max(100 - ie - me.nextPanesSize - me.nextReachedMinPanes, ot.min), ot.max));
|
|
54329
|
-
}, F = (
|
|
54324
|
+
}, F = (j, oe) => {
|
|
54330
54325
|
const me = d.value.activeSplitter, ye = [me, me + 1];
|
|
54331
|
-
return oe <
|
|
54332
|
-
ie > ye[0] && ie <= me && (_e.size = _e.min,
|
|
54333
|
-
}),
|
|
54334
|
-
ie > 0 && ie <= me && (_e.size = _e.min,
|
|
54335
|
-
}), i.value[ye[1]].size = 100 -
|
|
54336
|
-
ie > me && ie < ye[1] && (_e.size = _e.min,
|
|
54337
|
-
}),
|
|
54338
|
-
ie < a.value - 1 && ie >= me + 1 && (_e.size = _e.min,
|
|
54339
|
-
}), i.value[ye[0]].size = 100 -
|
|
54340
|
-
}, U = (
|
|
54341
|
-
var
|
|
54342
|
-
const oe = Array.from(((
|
|
54326
|
+
return oe < j.prevPanesSize + i.value[ye[0]].min && (ye[0] = K(me).index, j.prevReachedMinPanes = 0, ye[0] < me && i.value.forEach((_e, ie) => {
|
|
54327
|
+
ie > ye[0] && ie <= me && (_e.size = _e.min, j.prevReachedMinPanes += _e.min);
|
|
54328
|
+
}), j.prevPanesSize = U(ye[0]), ye[0] === void 0) ? (j.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((_e, ie) => {
|
|
54329
|
+
ie > 0 && ie <= me && (_e.size = _e.min, j.prevReachedMinPanes += _e.min);
|
|
54330
|
+
}), i.value[ye[1]].size = 100 - j.prevReachedMinPanes - i.value[0].min - j.prevPanesSize - j.nextPanesSize, null) : oe > 100 - j.nextPanesSize - i.value[ye[1]].min && (ye[1] = Q(me).index, j.nextReachedMinPanes = 0, ye[1] > me + 1 && i.value.forEach((_e, ie) => {
|
|
54331
|
+
ie > me && ie < ye[1] && (_e.size = _e.min, j.nextReachedMinPanes += _e.min);
|
|
54332
|
+
}), j.nextPanesSize = I(ye[1] - 1), ye[1] === void 0) ? (j.nextReachedMinPanes = 0, i.value.forEach((_e, ie) => {
|
|
54333
|
+
ie < a.value - 1 && ie >= me + 1 && (_e.size = _e.min, j.nextReachedMinPanes += _e.min);
|
|
54334
|
+
}), i.value[ye[0]].size = 100 - j.prevPanesSize - I(ye[0] - 1), null) : { sums: j, panesToResize: ye };
|
|
54335
|
+
}, U = (j) => i.value.reduce((oe, me, ye) => oe + (ye < j ? me.size : 0), 0), I = (j) => i.value.reduce((oe, me, ye) => oe + (ye > j + 1 ? me.size : 0), 0), K = (j) => [...i.value].reverse().find((oe) => oe.index < j && oe.size > oe.min) || {}, Q = (j) => i.value.find((oe) => oe.index > j + 1 && oe.size > oe.min) || {}, re = () => {
|
|
54336
|
+
var j;
|
|
54337
|
+
const oe = Array.from(((j = l.value) == null ? void 0 : j.children) || []);
|
|
54343
54338
|
for (const me of oe) {
|
|
54344
54339
|
const ye = me.classList.contains("splitpanes__pane"), _e = me.classList.contains("splitpanes__splitter");
|
|
54345
54340
|
!ye && !_e && (me.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
54346
54341
|
}
|
|
54347
|
-
}, ve = (
|
|
54348
|
-
const ye =
|
|
54342
|
+
}, ve = (j, oe, me = !1) => {
|
|
54343
|
+
const ye = j - 1, _e = document.createElement("div");
|
|
54349
54344
|
_e.classList.add("splitpanes__splitter"), me || (_e.onmousedown = (ie) => y(ie, ye), typeof window < "u" && "ontouchstart" in window && (_e.ontouchstart = (ie) => y(ie, ye)), _e.onclick = (ie) => _(ie, ye + 1)), _e.ondblclick = (ie) => C(ie, ye + 1), oe.parentNode.insertBefore(_e, oe);
|
|
54350
|
-
}, Y = (
|
|
54351
|
-
|
|
54352
|
-
},
|
|
54353
|
-
var
|
|
54354
|
-
const oe = Array.from(((
|
|
54345
|
+
}, Y = (j) => {
|
|
54346
|
+
j.onmousedown = void 0, j.onclick = void 0, j.ondblclick = void 0, j.remove();
|
|
54347
|
+
}, q = () => {
|
|
54348
|
+
var j;
|
|
54349
|
+
const oe = Array.from(((j = l.value) == null ? void 0 : j.children) || []);
|
|
54355
54350
|
for (const ye of oe)
|
|
54356
54351
|
ye.className.includes("splitpanes__splitter") && Y(ye);
|
|
54357
54352
|
let me = 0;
|
|
54358
54353
|
for (const ye of oe)
|
|
54359
54354
|
ye.className.includes("splitpanes__pane") && (!me && o.firstSplitter ? ve(me, ye, !0) : me && ve(me, ye), me++);
|
|
54360
|
-
}, P = ({ uid:
|
|
54361
|
-
const me = s.value[
|
|
54355
|
+
}, P = ({ uid: j, ...oe }) => {
|
|
54356
|
+
const me = s.value[j];
|
|
54362
54357
|
for (const [ye, _e] of Object.entries(oe)) me[ye] = _e;
|
|
54363
|
-
}, J = (
|
|
54358
|
+
}, J = (j) => {
|
|
54364
54359
|
var oe;
|
|
54365
54360
|
let me = -1;
|
|
54366
|
-
Array.from(((oe = l.value) == null ? void 0 : oe.children) || []).some((ye) => (ye.className.includes("splitpanes__pane") && me++, ye.isSameNode(
|
|
54367
|
-
|
|
54361
|
+
Array.from(((oe = l.value) == null ? void 0 : oe.children) || []).some((ye) => (ye.className.includes("splitpanes__pane") && me++, ye.isSameNode(j.el))), i.value.splice(me, 0, { ...j, index: me }), i.value.forEach((ye, _e) => ye.index = _e), u.value && Rt(() => {
|
|
54362
|
+
q(), de({ addedPane: i.value[me] }), Fe("pane-add", { pane: i.value[me] });
|
|
54368
54363
|
});
|
|
54369
|
-
}, se = (
|
|
54370
|
-
const oe = i.value.findIndex((ye) => ye.id ===
|
|
54364
|
+
}, se = (j) => {
|
|
54365
|
+
const oe = i.value.findIndex((ye) => ye.id === j);
|
|
54371
54366
|
i.value[oe].el = null;
|
|
54372
54367
|
const me = i.value.splice(oe, 1)[0];
|
|
54373
54368
|
i.value.forEach((ye, _e) => ye.index = _e), Rt(() => {
|
|
54374
|
-
|
|
54369
|
+
q(), Fe("pane-remove", { pane: me }), de({ removedPane: { ...me } });
|
|
54375
54370
|
});
|
|
54376
|
-
}, de = (
|
|
54377
|
-
!
|
|
54371
|
+
}, de = (j = {}) => {
|
|
54372
|
+
!j.addedPane && !j.removedPane ? Re() : i.value.some((oe) => oe.givenSize !== null || oe.min || oe.max < 100) ? Pe(j) : fe(), u.value && Fe("resized");
|
|
54378
54373
|
}, fe = () => {
|
|
54379
|
-
const
|
|
54374
|
+
const j = 100 / a.value;
|
|
54380
54375
|
let oe = 0;
|
|
54381
54376
|
const me = [], ye = [];
|
|
54382
54377
|
for (const _e of i.value)
|
|
54383
|
-
_e.size = Math.max(Math.min(
|
|
54378
|
+
_e.size = Math.max(Math.min(j, _e.max), _e.min), oe -= _e.size, _e.size >= _e.max && me.push(_e.id), _e.size <= _e.min && ye.push(_e.id);
|
|
54384
54379
|
oe > 0.1 && st(oe, me, ye);
|
|
54385
54380
|
}, Re = () => {
|
|
54386
|
-
let
|
|
54381
|
+
let j = 100;
|
|
54387
54382
|
const oe = [], me = [];
|
|
54388
54383
|
let ye = 0;
|
|
54389
54384
|
for (const ie of i.value)
|
|
54390
|
-
|
|
54385
|
+
j -= ie.size, ie.givenSize !== null && ye++, ie.size >= ie.max && oe.push(ie.id), ie.size <= ie.min && me.push(ie.id);
|
|
54391
54386
|
let _e = 100;
|
|
54392
|
-
if (
|
|
54387
|
+
if (j > 0.1) {
|
|
54393
54388
|
for (const ie of i.value)
|
|
54394
|
-
ie.givenSize === null && (ie.size = Math.max(Math.min(
|
|
54389
|
+
ie.givenSize === null && (ie.size = Math.max(Math.min(j / (a.value - ye), ie.max), ie.min)), _e -= ie.size;
|
|
54395
54390
|
_e > 0.1 && st(_e, oe, me);
|
|
54396
54391
|
}
|
|
54397
|
-
}, Pe = ({ addedPane:
|
|
54392
|
+
}, Pe = ({ addedPane: j, removedPane: oe } = {}) => {
|
|
54398
54393
|
let me = 100 / a.value, ye = 0;
|
|
54399
54394
|
const _e = [], ie = [];
|
|
54400
|
-
((
|
|
54395
|
+
((j == null ? void 0 : j.givenSize) ?? null) !== null && (me = (100 - j.givenSize) / (a.value - 1));
|
|
54401
54396
|
for (const Ae of i.value)
|
|
54402
54397
|
ye -= Ae.size, Ae.size >= Ae.max && _e.push(Ae.id), Ae.size <= Ae.min && ie.push(Ae.id);
|
|
54403
54398
|
if (!(Math.abs(ye) < 0.1)) {
|
|
54404
54399
|
for (const Ae of i.value)
|
|
54405
|
-
(
|
|
54400
|
+
(j == null ? void 0 : j.givenSize) !== null && (j == null ? void 0 : j.id) === Ae.id || (Ae.size = Math.max(Math.min(me, Ae.max), Ae.min)), ye -= Ae.size, Ae.size >= Ae.max && _e.push(Ae.id), Ae.size <= Ae.min && ie.push(Ae.id);
|
|
54406
54401
|
ye > 0.1 && st(ye, _e, ie);
|
|
54407
54402
|
}
|
|
54408
|
-
}, st = (
|
|
54403
|
+
}, st = (j, oe, me) => {
|
|
54409
54404
|
let ye;
|
|
54410
|
-
|
|
54411
|
-
if (
|
|
54405
|
+
j > 0 ? ye = j / (a.value - oe.length) : ye = j / (a.value - me.length), i.value.forEach((_e, ie) => {
|
|
54406
|
+
if (j > 0 && !oe.includes(_e.id)) {
|
|
54412
54407
|
const Ae = Math.max(Math.min(_e.size + ye, _e.max), _e.min), We = Ae - _e.size;
|
|
54413
|
-
|
|
54408
|
+
j -= We, _e.size = Ae;
|
|
54414
54409
|
} else if (!me.includes(_e.id)) {
|
|
54415
54410
|
const Ae = Math.max(Math.min(_e.size + ye, _e.max), _e.min), We = Ae - _e.size;
|
|
54416
|
-
|
|
54411
|
+
j -= We, _e.size = Ae;
|
|
54417
54412
|
}
|
|
54418
|
-
}), Math.abs(
|
|
54413
|
+
}), Math.abs(j) > 0.1 && Rt(() => {
|
|
54419
54414
|
u.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
54420
54415
|
});
|
|
54421
|
-
}, Fe = (
|
|
54416
|
+
}, Fe = (j, oe = void 0, me = !1) => {
|
|
54422
54417
|
const ye = (oe == null ? void 0 : oe.index) ?? d.value.activeSplitter ?? null;
|
|
54423
|
-
n(
|
|
54418
|
+
n(j, {
|
|
54424
54419
|
...oe,
|
|
54425
54420
|
...ye !== null && { index: ye },
|
|
54426
54421
|
...me && ye !== null && {
|
|
@@ -54430,18 +54425,18 @@ const jse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54430
54425
|
panes: i.value.map((_e) => ({ min: _e.min, max: _e.max, size: _e.size }))
|
|
54431
54426
|
});
|
|
54432
54427
|
};
|
|
54433
|
-
Le(() => o.firstSplitter, () =>
|
|
54434
|
-
re(),
|
|
54428
|
+
Le(() => o.firstSplitter, () => q()), pt(() => {
|
|
54429
|
+
re(), q(), de(), Fe("ready"), u.value = !0;
|
|
54435
54430
|
}), oo(() => u.value = !1);
|
|
54436
54431
|
const it = () => {
|
|
54437
|
-
var
|
|
54432
|
+
var j;
|
|
54438
54433
|
return Ln(
|
|
54439
54434
|
"div",
|
|
54440
54435
|
{ ref: l, class: h.value },
|
|
54441
|
-
(
|
|
54436
|
+
(j = r.default) == null ? void 0 : j.call(r)
|
|
54442
54437
|
);
|
|
54443
54438
|
};
|
|
54444
|
-
return cn("panes", i), cn("indexedPanes", s), cn("horizontal", X(() => o.horizontal)), cn("requestUpdate", P), cn("onPaneAdd", J), cn("onPaneRemove", se), cn("onPaneClick", E), (
|
|
54439
|
+
return cn("panes", i), cn("indexedPanes", s), cn("horizontal", X(() => o.horizontal)), cn("requestUpdate", P), cn("onPaneAdd", J), cn("onPaneRemove", se), cn("onPaneClick", E), (j, oe) => (M(), B(ir(it)));
|
|
54445
54440
|
}
|
|
54446
54441
|
}, Na = {
|
|
54447
54442
|
__name: "pane",
|
|
@@ -54701,7 +54696,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
54701
54696
|
fontSize: C.value
|
|
54702
54697
|
})), k = $(), { height: A } = bR(), F = X(() => {
|
|
54703
54698
|
var $e;
|
|
54704
|
-
if (
|
|
54699
|
+
if (q.value)
|
|
54705
54700
|
return {
|
|
54706
54701
|
bottom: "15px"
|
|
54707
54702
|
};
|
|
@@ -54726,7 +54721,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
54726
54721
|
maxWidth: In(o.maxWidth),
|
|
54727
54722
|
width: o.maxWidth ? "100%" : void 0,
|
|
54728
54723
|
margin: o.maxWidth ? "0 auto" : void 0
|
|
54729
|
-
})),
|
|
54724
|
+
})), K = new ns({
|
|
54730
54725
|
enablePasteRules: !1,
|
|
54731
54726
|
// disable Markdown when pasting
|
|
54732
54727
|
enableInputRules: !1,
|
|
@@ -54769,12 +54764,12 @@ const vc = /* @__PURE__ */ W({
|
|
|
54769
54764
|
});
|
|
54770
54765
|
}), y($e);
|
|
54771
54766
|
}
|
|
54772
|
-
const re = $(), ve = $(), Y = $(!0),
|
|
54767
|
+
const re = $(), ve = $(), Y = $(!0), q = $(!1);
|
|
54773
54768
|
function P() {
|
|
54774
54769
|
i.isNativeWebViewAvailable() && (i.receiveDataFromNative("keyboardDidShow", (le) => {
|
|
54775
|
-
|
|
54770
|
+
q.value = !0;
|
|
54776
54771
|
}), i.receiveDataFromNative("keyboardDidHide", (le) => {
|
|
54777
|
-
|
|
54772
|
+
q.value = !1;
|
|
54778
54773
|
}));
|
|
54779
54774
|
}
|
|
54780
54775
|
function J(le) {
|
|
@@ -54788,10 +54783,10 @@ const vc = /* @__PURE__ */ W({
|
|
|
54788
54783
|
Y.value = !z;
|
|
54789
54784
|
}
|
|
54790
54785
|
k4(document, "focusin", J), k4(document, "focusout", J), pt(() => {
|
|
54791
|
-
re.value =
|
|
54786
|
+
re.value = K, P();
|
|
54792
54787
|
});
|
|
54793
54788
|
function se(le) {
|
|
54794
|
-
re.value = le ??
|
|
54789
|
+
re.value = le ?? K;
|
|
54795
54790
|
}
|
|
54796
54791
|
const de = X(() => {
|
|
54797
54792
|
const le = re.value.view.dom.dataset.disableSuperInput && JSON.parse(re.value.view.dom.dataset.disableSuperInput);
|
|
@@ -54817,19 +54812,19 @@ const vc = /* @__PURE__ */ W({
|
|
|
54817
54812
|
}
|
|
54818
54813
|
}
|
|
54819
54814
|
function Re(le) {
|
|
54820
|
-
return le.every(($e) =>
|
|
54815
|
+
return le.every(($e) => K == null ? void 0 : K.extensionManager.extensions.find((z) => z.name === $e));
|
|
54821
54816
|
}
|
|
54822
54817
|
Le(
|
|
54823
54818
|
() => g.languages,
|
|
54824
54819
|
() => {
|
|
54825
|
-
|
|
54820
|
+
K.commands.checkSpelling();
|
|
54826
54821
|
}
|
|
54827
54822
|
), Le(
|
|
54828
54823
|
() => o.modelValue,
|
|
54829
54824
|
(le) => {
|
|
54830
|
-
if (!
|
|
54831
|
-
const { from: $e, to: z } =
|
|
54832
|
-
|
|
54825
|
+
if (!K || Ct.isEqual(fe(K, o.output), le)) return;
|
|
54826
|
+
const { from: $e, to: z } = K.state.selection;
|
|
54827
|
+
K.commands.setTextSelection({ from: $e, to: z }), K.commands.setContent(fo(le, o.disabled, o.mode), !1);
|
|
54833
54828
|
},
|
|
54834
54829
|
{ deep: !0 }
|
|
54835
54830
|
), Le(
|
|
@@ -54842,7 +54837,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
54842
54837
|
() => x.value,
|
|
54843
54838
|
(le) => {
|
|
54844
54839
|
var $e;
|
|
54845
|
-
|
|
54840
|
+
K == null || K.setEditable(le), ($e = K == null ? void 0 : K.commands) != null && $e.setIsEnableSuggestion && K.commands.setIsEnableSuggestion(le);
|
|
54846
54841
|
},
|
|
54847
54842
|
{ immediate: !0 }
|
|
54848
54843
|
), Le(
|
|
@@ -54854,13 +54849,13 @@ const vc = /* @__PURE__ */ W({
|
|
|
54854
54849
|
}
|
|
54855
54850
|
), $n(() => {
|
|
54856
54851
|
var le;
|
|
54857
|
-
|
|
54852
|
+
K == null || K.destroy(), (le = re.value) == null || le.destroy();
|
|
54858
54853
|
}), fd(id.SAVE, () => {
|
|
54859
|
-
localStorage.setItem("content", fe(
|
|
54854
|
+
localStorage.setItem("content", fe(K, "html"));
|
|
54860
54855
|
});
|
|
54861
54856
|
const Pe = (le) => {
|
|
54862
54857
|
var z;
|
|
54863
|
-
const $e = re.value ??
|
|
54858
|
+
const $e = re.value ?? K;
|
|
54864
54859
|
if ($e) {
|
|
54865
54860
|
const { from: H } = $e.view.state.selection;
|
|
54866
54861
|
$e.commands.insertContentAt(H, {
|
|
@@ -54871,7 +54866,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
54871
54866
|
(z = re.value) == null || z.commands.toggleSuperInputMoblie();
|
|
54872
54867
|
}, st = (le) => {
|
|
54873
54868
|
var z;
|
|
54874
|
-
const $e = re.value ??
|
|
54869
|
+
const $e = re.value ?? K;
|
|
54875
54870
|
if ($e) {
|
|
54876
54871
|
const { from: H } = $e.view.state.selection;
|
|
54877
54872
|
$e.commands.insertContentAt(H, {
|
|
@@ -54882,11 +54877,11 @@ const vc = /* @__PURE__ */ W({
|
|
|
54882
54877
|
(z = re.value) == null || z.commands.toggleConfigPlanInput();
|
|
54883
54878
|
};
|
|
54884
54879
|
function Fe(le) {
|
|
54885
|
-
le === Ze.STRAIGHT &&
|
|
54880
|
+
le === Ze.STRAIGHT && K.commands.focus("end"), le === Ze.EDITOR && K.commands.focus("end");
|
|
54886
54881
|
}
|
|
54887
54882
|
pt(() => {
|
|
54888
54883
|
var le;
|
|
54889
|
-
o.autoFocus && Fe(o.mode), (le =
|
|
54884
|
+
o.autoFocus && Fe(o.mode), (le = K == null ? void 0 : K.commands) != null && le.setIsMobile && K.commands.setIsMobile(!0);
|
|
54890
54885
|
}), Le(
|
|
54891
54886
|
() => o.mode,
|
|
54892
54887
|
(le) => {
|
|
@@ -54895,7 +54890,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
54895
54890
|
);
|
|
54896
54891
|
const {
|
|
54897
54892
|
showMenuSplitter: it,
|
|
54898
|
-
menuX:
|
|
54893
|
+
menuX: j,
|
|
54899
54894
|
menuY: oe,
|
|
54900
54895
|
commentSize: me,
|
|
54901
54896
|
contentSize: ye,
|
|
@@ -54912,7 +54907,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
54912
54907
|
const ot = $();
|
|
54913
54908
|
return ph(ot, (le) => {
|
|
54914
54909
|
it.value = !1;
|
|
54915
|
-
}), bd(
|
|
54910
|
+
}), bd(K), e({ editor: K }), (le, $e) => {
|
|
54916
54911
|
var rt, ue, Te, we, Ne;
|
|
54917
54912
|
const z = S0, H = _0, he = E0, Se = r0, Ke = _7, yt = Kse;
|
|
54918
54913
|
return M(), be(nt, null, [
|
|
@@ -54935,19 +54930,19 @@ const vc = /* @__PURE__ */ W({
|
|
|
54935
54930
|
!le.hideBubble && !le.disabled && x.value ? (M(), be(nt, { key: 0 }, [
|
|
54936
54931
|
Re([b(pd)]) ? (M(), B(z, {
|
|
54937
54932
|
key: 0,
|
|
54938
|
-
editor: b(
|
|
54933
|
+
editor: b(K)
|
|
54939
54934
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
54940
54935
|
Re([b(tl)]) ? (M(), B(H, {
|
|
54941
54936
|
key: 1,
|
|
54942
|
-
editor: b(
|
|
54937
|
+
editor: b(K)
|
|
54943
54938
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
54944
54939
|
Re([b(Qs)]) ? (M(), B(he, {
|
|
54945
54940
|
key: 2,
|
|
54946
|
-
editor: b(
|
|
54941
|
+
editor: b(K)
|
|
54947
54942
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
54948
54943
|
Re([b(ea), b(ta)]) ? (M(), B(Se, {
|
|
54949
54944
|
key: 3,
|
|
54950
|
-
editor: b(
|
|
54945
|
+
editor: b(K)
|
|
54951
54946
|
}, null, 8, ["editor"])) : Oe("", !0)
|
|
54952
54947
|
], 64)) : Oe("", !0),
|
|
54953
54948
|
le.hideToolbar ? Oe("", !0) : (M(), B(Ke, {
|
|
@@ -55004,7 +54999,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
55004
54999
|
b(Ye)(
|
|
55005
55000
|
"flex-1 !overflow-y-auto basis-0 flex h-full flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",
|
|
55006
55001
|
le.disabled && "border-transparent",
|
|
55007
|
-
Y.value && !
|
|
55002
|
+
Y.value && !q.value && "pb-16",
|
|
55008
55003
|
le.contentClass
|
|
55009
55004
|
)
|
|
55010
55005
|
)
|
|
@@ -55045,7 +55040,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
55045
55040
|
b(Ye)(
|
|
55046
55041
|
"flex-1 !overflow-y-auto basis-0 flex flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",
|
|
55047
55042
|
le.disabled && "border-transparent",
|
|
55048
|
-
Y.value && !
|
|
55043
|
+
Y.value && !q.value && "pb-16",
|
|
55049
55044
|
le.contentClass
|
|
55050
55045
|
)
|
|
55051
55046
|
)
|
|
@@ -55058,13 +55053,13 @@ const vc = /* @__PURE__ */ W({
|
|
|
55058
55053
|
class: "mb-1"
|
|
55059
55054
|
}, null, 8, ["field-name", "mode", "disabled"])) : Oe("", !0),
|
|
55060
55055
|
D(X2, {
|
|
55061
|
-
editor: b(
|
|
55056
|
+
editor: b(K),
|
|
55062
55057
|
mode: le.mode
|
|
55063
55058
|
}, {
|
|
55064
55059
|
default: N(() => [
|
|
55065
55060
|
D(b(si), {
|
|
55066
55061
|
id: "editor-panel",
|
|
55067
|
-
editor: b(
|
|
55062
|
+
editor: b(K),
|
|
55068
55063
|
spellcheck: "true",
|
|
55069
55064
|
class: Ve([
|
|
55070
55065
|
"flex-1 flex-col relative break-all",
|
|
@@ -55089,7 +55084,7 @@ const vc = /* @__PURE__ */ W({
|
|
|
55089
55084
|
ref_key: "splitToastRef",
|
|
55090
55085
|
ref: ot,
|
|
55091
55086
|
"icon-split-selected": b(Ae),
|
|
55092
|
-
"menu-x": b(
|
|
55087
|
+
"menu-x": b(j),
|
|
55093
55088
|
"menu-y": b(oe),
|
|
55094
55089
|
onOnChangeSplit: b(We)
|
|
55095
55090
|
}, null, 8, ["icon-split-selected", "menu-x", "menu-y", "onOnChangeSplit"])) : Oe("", !0),
|
|
@@ -55245,8 +55240,8 @@ var S7 = { exports: {} };
|
|
|
55245
55240
|
return /^\s+$/.test(Y);
|
|
55246
55241
|
}
|
|
55247
55242
|
function r(Y) {
|
|
55248
|
-
var
|
|
55249
|
-
return !!
|
|
55243
|
+
var q = Y.match(/^\s*<([^!>][^>]*)>\s*$/);
|
|
55244
|
+
return !!q && q[1].trim().split(" ")[0];
|
|
55250
55245
|
}
|
|
55251
55246
|
function i(Y) {
|
|
55252
55247
|
return !r(Y);
|
|
@@ -55259,18 +55254,18 @@ var S7 = { exports: {} };
|
|
|
55259
55254
|
}
|
|
55260
55255
|
var l, u = new RegExp("^<(iframe|object|math|svg|script|video|head|style|a)");
|
|
55261
55256
|
function d(Y) {
|
|
55262
|
-
var
|
|
55263
|
-
return
|
|
55257
|
+
var q = l.exec(Y);
|
|
55258
|
+
return q && q[1];
|
|
55264
55259
|
}
|
|
55265
|
-
function f(Y,
|
|
55266
|
-
return Y.substring(Y.length -
|
|
55260
|
+
function f(Y, q) {
|
|
55261
|
+
return Y.substring(Y.length - q.length - 2) === "</" + q;
|
|
55267
55262
|
}
|
|
55268
55263
|
function h(Y) {
|
|
55269
55264
|
return /^\s*<[^>]+\/>\s*$/.test(Y);
|
|
55270
55265
|
}
|
|
55271
55266
|
function m(Y) {
|
|
55272
|
-
var
|
|
55273
|
-
return
|
|
55267
|
+
var q = /^<img[\s>]/.test(Y);
|
|
55268
|
+
return q || i(Y) || d(Y) || h(Y);
|
|
55274
55269
|
}
|
|
55275
55270
|
function g(Y) {
|
|
55276
55271
|
return {
|
|
@@ -55278,39 +55273,39 @@ var S7 = { exports: {} };
|
|
|
55278
55273
|
key: x(Y)
|
|
55279
55274
|
};
|
|
55280
55275
|
}
|
|
55281
|
-
function y(Y,
|
|
55282
|
-
this.segment = J, this.length = P, this.startInBefore = Y + J.beforeIndex, this.startInAfter =
|
|
55276
|
+
function y(Y, q, P, J) {
|
|
55277
|
+
this.segment = J, this.length = P, this.startInBefore = Y + J.beforeIndex, this.startInAfter = q + J.afterIndex, this.endInBefore = this.startInBefore + this.length - 1, this.endInAfter = this.startInAfter + this.length - 1, this.segmentStartInBefore = Y, this.segmentStartInAfter = q, this.segmentEndInBefore = this.segmentStartInBefore + this.length - 1, this.segmentEndInAfter = this.segmentStartInAfter + this.length - 1;
|
|
55283
55278
|
}
|
|
55284
55279
|
function w(Y) {
|
|
55285
|
-
for (var
|
|
55280
|
+
for (var q = "char", P = "", J = "", se = [], de = 0; de < Y.length; de++) {
|
|
55286
55281
|
var fe = Y[de];
|
|
55287
|
-
switch (
|
|
55282
|
+
switch (q) {
|
|
55288
55283
|
case "tag":
|
|
55289
55284
|
var Re = d(P);
|
|
55290
|
-
Re ? (
|
|
55285
|
+
Re ? (q = "atomic_tag", J = Re, P += fe) : s(P) ? (q = "html_comment", P += fe) : e(fe) ? (P += ">", se.push(g(P)), P = "", o(fe) ? q = "whitespace" : q = "char") : P += fe;
|
|
55291
55286
|
break;
|
|
55292
55287
|
case "atomic_tag":
|
|
55293
|
-
e(fe) && f(P, J) ? (P += ">", se.push(g(P)), P = "", J = "",
|
|
55288
|
+
e(fe) && f(P, J) ? (P += ">", se.push(g(P)), P = "", J = "", q = "char") : P += fe;
|
|
55294
55289
|
break;
|
|
55295
55290
|
case "html_comment":
|
|
55296
|
-
P += fe, a(P) && (P = "",
|
|
55291
|
+
P += fe, a(P) && (P = "", q = "char");
|
|
55297
55292
|
break;
|
|
55298
55293
|
case "char":
|
|
55299
|
-
n(fe) ? (P && se.push(g(P)), P = "<",
|
|
55294
|
+
n(fe) ? (P && se.push(g(P)), P = "<", q = "tag") : /\s/.test(fe) ? (P && se.push(g(P)), P = fe, q = "whitespace") : /[\w\d\#@]/.test(fe) ? P += fe : /&/.test(fe) ? (P && se.push(g(P)), P = fe) : (P += fe, se.push(g(P)), P = "");
|
|
55300
55295
|
break;
|
|
55301
55296
|
case "whitespace":
|
|
55302
|
-
n(fe) ? (P && se.push(g(P)), P = "<",
|
|
55297
|
+
n(fe) ? (P && se.push(g(P)), P = "<", q = "tag") : o(fe) ? P += fe : (P && se.push(g(P)), P = fe, q = "char");
|
|
55303
55298
|
break;
|
|
55304
55299
|
default:
|
|
55305
|
-
throw new Error("Unknown mode " +
|
|
55300
|
+
throw new Error("Unknown mode " + q);
|
|
55306
55301
|
}
|
|
55307
55302
|
}
|
|
55308
55303
|
return P && se.push(g(P)), se;
|
|
55309
55304
|
}
|
|
55310
55305
|
function x(Y) {
|
|
55311
|
-
var
|
|
55312
|
-
if (
|
|
55313
|
-
return '<img src="' +
|
|
55306
|
+
var q = /^<img.*src=['"]([^"']*)['"].*>$/.exec(Y);
|
|
55307
|
+
if (q)
|
|
55308
|
+
return '<img src="' + q[1] + '">';
|
|
55314
55309
|
var P = /^<a.*href=['"]([^"']*)['"]/.exec(Y);
|
|
55315
55310
|
if (P)
|
|
55316
55311
|
return '<a href="' + P[1] + '"></a>';
|
|
@@ -55332,12 +55327,12 @@ var S7 = { exports: {} };
|
|
|
55332
55327
|
return Pe ? "<" + Pe[1].toLowerCase() + ">" : Y && Y.replace(/(\s+| | )/g, " ");
|
|
55333
55328
|
}
|
|
55334
55329
|
function _(Y) {
|
|
55335
|
-
return Y.reduce(function(
|
|
55336
|
-
return
|
|
55330
|
+
return Y.reduce(function(q, P, J) {
|
|
55331
|
+
return q[P.key] ? q[P.key].push(J) : q[P.key] = [J], q;
|
|
55337
55332
|
}, /* @__PURE__ */ Object.create(null));
|
|
55338
55333
|
}
|
|
55339
|
-
function C(Y,
|
|
55340
|
-
return
|
|
55334
|
+
function C(Y, q) {
|
|
55335
|
+
return q.endInBefore < Y.startInBefore && q.endInAfter < Y.startInAfter ? -1 : q.startInBefore > Y.endInBefore && q.startInAfter > Y.endInAfter ? 1 : 0;
|
|
55341
55336
|
}
|
|
55342
55337
|
function E() {
|
|
55343
55338
|
this._root = null;
|
|
@@ -55349,7 +55344,7 @@ var S7 = { exports: {} };
|
|
|
55349
55344
|
* @param {Match} value The match to add to the binary search tree.
|
|
55350
55345
|
*/
|
|
55351
55346
|
add: function(Y) {
|
|
55352
|
-
var
|
|
55347
|
+
var q = {
|
|
55353
55348
|
value: Y,
|
|
55354
55349
|
left: null,
|
|
55355
55350
|
right: null
|
|
@@ -55361,21 +55356,21 @@ var S7 = { exports: {} };
|
|
|
55361
55356
|
if (P.left)
|
|
55362
55357
|
P = P.left;
|
|
55363
55358
|
else {
|
|
55364
|
-
P.left =
|
|
55359
|
+
P.left = q;
|
|
55365
55360
|
break;
|
|
55366
55361
|
}
|
|
55367
55362
|
else if (J === 1)
|
|
55368
55363
|
if (P.right)
|
|
55369
55364
|
P = P.right;
|
|
55370
55365
|
else {
|
|
55371
|
-
P.right =
|
|
55366
|
+
P.right = q;
|
|
55372
55367
|
break;
|
|
55373
55368
|
}
|
|
55374
55369
|
else
|
|
55375
55370
|
break;
|
|
55376
55371
|
}
|
|
55377
55372
|
else
|
|
55378
|
-
this._root =
|
|
55373
|
+
this._root = q;
|
|
55379
55374
|
},
|
|
55380
55375
|
/**
|
|
55381
55376
|
* Converts the binary search tree into an array using an in-order traversal.
|
|
@@ -55383,18 +55378,18 @@ var S7 = { exports: {} };
|
|
|
55383
55378
|
* @return {Array.<Match>} An array containing the matches in the binary search tree.
|
|
55384
55379
|
*/
|
|
55385
55380
|
toArray: function() {
|
|
55386
|
-
function Y(
|
|
55387
|
-
return
|
|
55381
|
+
function Y(q, P) {
|
|
55382
|
+
return q && (Y(q.left, P), P.push(q.value), Y(q.right, P)), P;
|
|
55388
55383
|
}
|
|
55389
55384
|
return Y(this._root, []);
|
|
55390
55385
|
}
|
|
55391
55386
|
};
|
|
55392
55387
|
function T(Y) {
|
|
55393
|
-
for (var
|
|
55394
|
-
var fe = !1, Re =
|
|
55388
|
+
for (var q = Y.beforeTokens, P = Y.afterMap, J = null, se = null, de = 0; de < q.length; de++) {
|
|
55389
|
+
var fe = !1, Re = q.length - de;
|
|
55395
55390
|
if (se && Re < se.length)
|
|
55396
55391
|
break;
|
|
55397
|
-
var Pe =
|
|
55392
|
+
var Pe = q[de];
|
|
55398
55393
|
if (Pe.key === " ") {
|
|
55399
55394
|
J = de;
|
|
55400
55395
|
continue;
|
|
@@ -55402,49 +55397,49 @@ var S7 = { exports: {} };
|
|
|
55402
55397
|
J === de - 1 && (fe = !0);
|
|
55403
55398
|
var st = P[Pe.key];
|
|
55404
55399
|
st && st.forEach(function(Fe) {
|
|
55405
|
-
var it = se ? se.length : 0,
|
|
55400
|
+
var it = se ? se.length : 0, j = k(
|
|
55406
55401
|
Y,
|
|
55407
55402
|
de,
|
|
55408
55403
|
Fe,
|
|
55409
55404
|
it,
|
|
55410
55405
|
fe
|
|
55411
55406
|
);
|
|
55412
|
-
|
|
55407
|
+
j && j.length > it && (se = j);
|
|
55413
55408
|
});
|
|
55414
55409
|
}
|
|
55415
55410
|
return se;
|
|
55416
55411
|
}
|
|
55417
|
-
function k(Y,
|
|
55418
|
-
var de = Y.beforeTokens, fe = Y.afterTokens, Re =
|
|
55412
|
+
function k(Y, q, P, J, se) {
|
|
55413
|
+
var de = Y.beforeTokens, fe = Y.afterTokens, Re = q + J, Pe = P + J;
|
|
55419
55414
|
if (!(Re >= de.length || Pe >= fe.length)) {
|
|
55420
55415
|
if (J) {
|
|
55421
55416
|
var st = de[Re].key, Fe = fe[Pe].key;
|
|
55422
55417
|
if (st !== Fe)
|
|
55423
55418
|
return;
|
|
55424
55419
|
}
|
|
55425
|
-
for (var it = !0,
|
|
55420
|
+
for (var it = !0, j = 1, oe = q + j, me = P + j; it && oe < de.length && me < fe.length; ) {
|
|
55426
55421
|
var ye = de[oe].key, _e = fe[me].key;
|
|
55427
|
-
ye === _e ? (
|
|
55422
|
+
ye === _e ? (j++, oe = q + j, me = P + j) : it = !1;
|
|
55428
55423
|
}
|
|
55429
|
-
if (se &&
|
|
55430
|
-
var ie = de[
|
|
55431
|
-
ie === " " && Ae === " " && (
|
|
55424
|
+
if (se && q > 0 && P > 0) {
|
|
55425
|
+
var ie = de[q - 1].key, Ae = fe[P - 1].key;
|
|
55426
|
+
ie === " " && Ae === " " && (q--, P--, j++);
|
|
55432
55427
|
}
|
|
55433
|
-
return new y(
|
|
55428
|
+
return new y(q, P, j, Y);
|
|
55434
55429
|
}
|
|
55435
55430
|
}
|
|
55436
|
-
function A(Y,
|
|
55431
|
+
function A(Y, q, P, J) {
|
|
55437
55432
|
return {
|
|
55438
55433
|
beforeTokens: Y,
|
|
55439
|
-
afterTokens:
|
|
55434
|
+
afterTokens: q,
|
|
55440
55435
|
beforeMap: _(Y),
|
|
55441
|
-
afterMap: _(
|
|
55436
|
+
afterMap: _(q),
|
|
55442
55437
|
beforeIndex: P,
|
|
55443
55438
|
afterIndex: J
|
|
55444
55439
|
};
|
|
55445
55440
|
}
|
|
55446
55441
|
function F(Y) {
|
|
55447
|
-
for (var
|
|
55442
|
+
for (var q = new E(), P, J = [Y]; J.length; )
|
|
55448
55443
|
if (Y = J.pop(), P = T(Y), P && P.length) {
|
|
55449
55444
|
if (P.segmentStartInBefore > 0 && P.segmentStartInAfter > 0) {
|
|
55450
55445
|
var se = Y.beforeTokens.slice(
|
|
@@ -55464,15 +55459,15 @@ var S7 = { exports: {} };
|
|
|
55464
55459
|
Re,
|
|
55465
55460
|
Pe,
|
|
55466
55461
|
st
|
|
55467
|
-
)),
|
|
55462
|
+
)), q.add(P);
|
|
55468
55463
|
}
|
|
55469
|
-
return
|
|
55464
|
+
return q.toArray();
|
|
55470
55465
|
}
|
|
55471
|
-
function U(Y,
|
|
55466
|
+
function U(Y, q) {
|
|
55472
55467
|
if (!Y) throw new Error("Missing beforeTokens");
|
|
55473
|
-
if (!
|
|
55474
|
-
var P = 0, J = 0, se = [], de = A(Y,
|
|
55475
|
-
fe.push(new y(Y.length,
|
|
55468
|
+
if (!q) throw new Error("Missing afterTokens");
|
|
55469
|
+
var P = 0, J = 0, se = [], de = A(Y, q, 0, 0), fe = F(de);
|
|
55470
|
+
fe.push(new y(Y.length, q.length, 0, de));
|
|
55476
55471
|
for (var Re = 0; Re < fe.length; Re++) {
|
|
55477
55472
|
var Pe = fe[Re], st = "none";
|
|
55478
55473
|
P === Pe.startInBefore ? J !== Pe.startInAfter && (st = "insert") : (st = "delete", J !== Pe.startInAfter && (st = "replace")), st !== "none" && se.push({
|
|
@@ -55490,31 +55485,31 @@ var S7 = { exports: {} };
|
|
|
55490
55485
|
}), P = Pe.endInBefore + 1, J = Pe.endInAfter + 1;
|
|
55491
55486
|
}
|
|
55492
55487
|
var Fe = [], it = { action: "none" };
|
|
55493
|
-
function
|
|
55488
|
+
function j(ye) {
|
|
55494
55489
|
return ye.action !== "equal" || ye.endInBefore - ye.startInBefore !== 0 ? !1 : /^\s$/.test(Y.slice(ye.startInBefore, ye.endInBefore + 1));
|
|
55495
55490
|
}
|
|
55496
55491
|
for (var oe = 0; oe < se.length; oe++) {
|
|
55497
55492
|
var me = se[oe];
|
|
55498
|
-
|
|
55493
|
+
j(me) && it.action === "replace" || me.action === "replace" && it.action === "replace" ? (it.endInBefore = me.endInBefore, it.endInAfter = me.endInAfter) : (Fe.push(me), it = me);
|
|
55499
55494
|
}
|
|
55500
55495
|
return Fe;
|
|
55501
55496
|
}
|
|
55502
55497
|
function I(Y) {
|
|
55503
|
-
this.tokens = Y, this.notes = Y.reduce(function(
|
|
55504
|
-
|
|
55498
|
+
this.tokens = Y, this.notes = Y.reduce(function(q, P, J) {
|
|
55499
|
+
q.notes.push({
|
|
55505
55500
|
isWrappable: m(P),
|
|
55506
55501
|
insertedTag: !1
|
|
55507
55502
|
});
|
|
55508
|
-
var se = !h(P) && r(P), de =
|
|
55509
|
-
return se && (de && "/" + de.tag === se ? (
|
|
55503
|
+
var se = !h(P) && r(P), de = q.tagStack[q.tagStack.length - 1];
|
|
55504
|
+
return se && (de && "/" + de.tag === se ? (q.notes[de.position].insertedTag = !0, q.tagStack.pop()) : q.tagStack.push({
|
|
55510
55505
|
tag: se,
|
|
55511
55506
|
position: J
|
|
55512
|
-
})),
|
|
55507
|
+
})), q;
|
|
55513
55508
|
}, { notes: [], tagStack: [] }).notes;
|
|
55514
55509
|
}
|
|
55515
|
-
I.prototype.combine = function(Y,
|
|
55510
|
+
I.prototype.combine = function(Y, q) {
|
|
55516
55511
|
var P = this.notes, J = this.tokens.slice(), se = J.reduce(function(de, fe, Re) {
|
|
55517
|
-
P[Re].insertedTag && (J[Re] =
|
|
55512
|
+
P[Re].insertedTag && (J[Re] = q(J[Re])), de.status === null && (de.status = P[Re].isWrappable);
|
|
55518
55513
|
var Pe = P[Re].isWrappable;
|
|
55519
55514
|
return Pe !== de.status && (de.list.push({
|
|
55520
55515
|
isWrappable: de.status,
|
|
@@ -55526,8 +55521,8 @@ var S7 = { exports: {} };
|
|
|
55526
55521
|
}, { list: [], status: null, lastIndex: 0 }).list;
|
|
55527
55522
|
return se.map(Y).join("");
|
|
55528
55523
|
};
|
|
55529
|
-
function
|
|
55530
|
-
var de = new I(
|
|
55524
|
+
function K(Y, q, P, J, se) {
|
|
55525
|
+
var de = new I(q);
|
|
55531
55526
|
J = J ? J + "-" : "";
|
|
55532
55527
|
var fe = " data-" + J + 'operation-index="' + P + '"';
|
|
55533
55528
|
return se && (fe += ' class="' + se + '"'), de.combine(function(Re) {
|
|
@@ -55544,45 +55539,45 @@ var S7 = { exports: {} };
|
|
|
55544
55539
|
});
|
|
55545
55540
|
}
|
|
55546
55541
|
var Q = {
|
|
55547
|
-
equal: function(Y,
|
|
55542
|
+
equal: function(Y, q, P, J, se, de) {
|
|
55548
55543
|
var fe = P.slice(Y.startInAfter, Y.endInAfter + 1);
|
|
55549
55544
|
return fe.reduce(function(Re, Pe) {
|
|
55550
55545
|
return Re + Pe.string;
|
|
55551
55546
|
}, "");
|
|
55552
55547
|
},
|
|
55553
|
-
insert: function(Y,
|
|
55548
|
+
insert: function(Y, q, P, J, se, de) {
|
|
55554
55549
|
var fe = P.slice(Y.startInAfter, Y.endInAfter + 1), Re = fe.map(function(Pe) {
|
|
55555
55550
|
return Pe.string;
|
|
55556
55551
|
});
|
|
55557
|
-
return
|
|
55552
|
+
return K("ins", Re, J, se, de);
|
|
55558
55553
|
},
|
|
55559
|
-
delete: function(Y,
|
|
55560
|
-
var fe =
|
|
55554
|
+
delete: function(Y, q, P, J, se, de) {
|
|
55555
|
+
var fe = q.slice(Y.startInBefore, Y.endInBefore + 1), Re = fe.map(function(Pe) {
|
|
55561
55556
|
return Pe.string;
|
|
55562
55557
|
});
|
|
55563
|
-
return
|
|
55558
|
+
return K("del", Re, J, se, de);
|
|
55564
55559
|
},
|
|
55565
55560
|
replace: function() {
|
|
55566
55561
|
return Q.delete.apply(null, arguments) + Q.insert.apply(null, arguments);
|
|
55567
55562
|
}
|
|
55568
55563
|
};
|
|
55569
|
-
function re(Y,
|
|
55564
|
+
function re(Y, q, P, J, se) {
|
|
55570
55565
|
return P.reduce(function(de, fe, Re) {
|
|
55571
55566
|
return de + Q[fe.action](
|
|
55572
55567
|
fe,
|
|
55573
55568
|
Y,
|
|
55574
|
-
|
|
55569
|
+
q,
|
|
55575
55570
|
Re,
|
|
55576
55571
|
J,
|
|
55577
55572
|
se
|
|
55578
55573
|
);
|
|
55579
55574
|
}, "");
|
|
55580
55575
|
}
|
|
55581
|
-
function ve(Y,
|
|
55582
|
-
if (Y ===
|
|
55583
|
-
se ? l = new RegExp("^<(" + se.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, Y = w(Y),
|
|
55584
|
-
var de = U(Y,
|
|
55585
|
-
return re(Y,
|
|
55576
|
+
function ve(Y, q, P, J, se) {
|
|
55577
|
+
if (Y === q) return Y;
|
|
55578
|
+
se ? l = new RegExp("^<(" + se.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, Y = w(Y), q = w(q);
|
|
55579
|
+
var de = U(Y, q);
|
|
55580
|
+
return re(Y, q, de, J, P);
|
|
55586
55581
|
}
|
|
55587
55582
|
ve.htmlToTokens = w, ve.findMatchingBlocks = F, F.findBestMatch = T, F.createMap = _, F.createToken = g, F.createSegment = A, F.getKeyForToken = x, ve.calculateOperations = U, ve.renderOperations = re, t !== null ? t.exports = ve : this.htmldiff = ve;
|
|
55588
55583
|
}).call(Ol);
|
|
@@ -55999,15 +55994,15 @@ const Xae = /* @__PURE__ */ W({
|
|
|
55999
55994
|
cn("isEditable", g);
|
|
56000
55995
|
const y = $(void 0), w = $(), x = X(
|
|
56001
55996
|
() => [...l.extensions, ...Ct.differenceBy(o.extensions, l.extensions, "name")].map(
|
|
56002
|
-
(
|
|
55997
|
+
(j, oe) => j.configure({ sort: oe })
|
|
56003
55998
|
)
|
|
56004
55999
|
), _ = $(o.fontSizeDefault), C = $(o.fontFamilyDefault);
|
|
56005
56000
|
cn("fontSize", _), cn("fontFamily", C);
|
|
56006
56001
|
const E = X(() => ({
|
|
56007
56002
|
fontFamily: C.value,
|
|
56008
56003
|
fontSize: _.value
|
|
56009
|
-
})), T = $(), k = (
|
|
56010
|
-
const oe = parseInt(_.value || "12px"), me =
|
|
56004
|
+
})), T = $(), k = (j) => {
|
|
56005
|
+
const oe = parseInt(_.value || "12px"), me = j ? oe + 2 : oe - 2;
|
|
56011
56006
|
_.value = me + "px";
|
|
56012
56007
|
};
|
|
56013
56008
|
Jc(() => {
|
|
@@ -56025,9 +56020,9 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56025
56020
|
width: o.maxWidth ? "100%" : void 0,
|
|
56026
56021
|
margin: o.maxWidth ? "0 auto" : void 0
|
|
56027
56022
|
}));
|
|
56028
|
-
function F(
|
|
56023
|
+
function F(j) {
|
|
56029
56024
|
if (o.disabled || o.readonly) return;
|
|
56030
|
-
const oe = T7(
|
|
56025
|
+
const oe = T7(j);
|
|
56031
56026
|
y.value = oe;
|
|
56032
56027
|
}
|
|
56033
56028
|
function U() {
|
|
@@ -56039,63 +56034,63 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56039
56034
|
enableInputRules: !1,
|
|
56040
56035
|
// disable Markdown when typing
|
|
56041
56036
|
content: fo(o.modelValue, o.disabled, o.mode),
|
|
56042
|
-
onCreate: ({ editor:
|
|
56043
|
-
h(
|
|
56037
|
+
onCreate: ({ editor: j }) => {
|
|
56038
|
+
h(j);
|
|
56044
56039
|
},
|
|
56045
|
-
onUpdate: Ct.throttle(({ editor:
|
|
56040
|
+
onUpdate: Ct.throttle(({ editor: j }) => {
|
|
56046
56041
|
d.value = !0;
|
|
56047
|
-
const oe = Y(
|
|
56048
|
-
r("update:modelValue", oe), r("change", { editor:
|
|
56042
|
+
const oe = Y(j, o.output);
|
|
56043
|
+
r("update:modelValue", oe), r("change", { editor: j, output: oe }), h(j);
|
|
56049
56044
|
}, fi),
|
|
56050
56045
|
extensions: Ct.uniqBy(Ct.reverse(b(x)), "name"),
|
|
56051
56046
|
editable: g.value,
|
|
56052
56047
|
onFocus: () => {
|
|
56053
|
-
ve(),
|
|
56048
|
+
ve(), K.value = !0, F(I);
|
|
56054
56049
|
},
|
|
56055
56050
|
onBlur: () => {
|
|
56056
|
-
|
|
56051
|
+
K.value = !1, U();
|
|
56057
56052
|
},
|
|
56058
56053
|
onSelectionUpdate: () => {
|
|
56059
56054
|
F(I);
|
|
56060
56055
|
}
|
|
56061
|
-
}),
|
|
56056
|
+
}), K = $(!1), Q = $();
|
|
56062
56057
|
pt(() => {
|
|
56063
56058
|
Q.value = I;
|
|
56064
56059
|
});
|
|
56065
|
-
const re = ({ lineIndex:
|
|
56060
|
+
const re = ({ lineIndex: j }) => {
|
|
56066
56061
|
var me;
|
|
56067
|
-
I && Vx({ lineIndex:
|
|
56062
|
+
I && Vx({ lineIndex: j, editor: I });
|
|
56068
56063
|
const oe = (me = w.value) == null ? void 0 : me.editor;
|
|
56069
|
-
oe && Vx({ lineIndex:
|
|
56064
|
+
oe && Vx({ lineIndex: j, editor: oe });
|
|
56070
56065
|
};
|
|
56071
56066
|
Le(
|
|
56072
56067
|
() => y.value,
|
|
56073
|
-
(
|
|
56074
|
-
r("lineFocus", { lineIndex:
|
|
56068
|
+
(j) => {
|
|
56069
|
+
r("lineFocus", { lineIndex: j }), re({ lineIndex: j });
|
|
56075
56070
|
},
|
|
56076
56071
|
{ immediate: !0 }
|
|
56077
56072
|
);
|
|
56078
|
-
function ve(
|
|
56073
|
+
function ve(j) {
|
|
56079
56074
|
Q.value = I;
|
|
56080
56075
|
}
|
|
56081
|
-
function Y(
|
|
56082
|
-
if (!
|
|
56083
|
-
if (
|
|
56076
|
+
function Y(j, oe) {
|
|
56077
|
+
if (!j) return "";
|
|
56078
|
+
if (j.isEmpty)
|
|
56084
56079
|
return oe === "json" ? {} : "";
|
|
56085
56080
|
switch (oe) {
|
|
56086
56081
|
case "html":
|
|
56087
|
-
return
|
|
56082
|
+
return j.getHTML();
|
|
56088
56083
|
case "json":
|
|
56089
|
-
return
|
|
56084
|
+
return j.getJSON();
|
|
56090
56085
|
case "text":
|
|
56091
|
-
return
|
|
56086
|
+
return j.getText({ blockSeparator: `
|
|
56092
56087
|
` });
|
|
56093
56088
|
default:
|
|
56094
56089
|
return "";
|
|
56095
56090
|
}
|
|
56096
56091
|
}
|
|
56097
|
-
function
|
|
56098
|
-
return
|
|
56092
|
+
function q(j) {
|
|
56093
|
+
return j.every((oe) => I == null ? void 0 : I.extensionManager.extensions.find((me) => me.name === oe));
|
|
56099
56094
|
}
|
|
56100
56095
|
Le(
|
|
56101
56096
|
() => m.languages,
|
|
@@ -56104,27 +56099,27 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56104
56099
|
}
|
|
56105
56100
|
), Le(
|
|
56106
56101
|
() => o.modelValue,
|
|
56107
|
-
(
|
|
56108
|
-
if (!I || Ct.isEqual(Y(I, o.output),
|
|
56102
|
+
(j) => {
|
|
56103
|
+
if (!I || Ct.isEqual(Y(I, o.output), j)) return;
|
|
56109
56104
|
const { from: oe, to: me } = I.state.selection;
|
|
56110
|
-
I.commands.setTextSelection({ from: oe, to: me }), I.commands.setContent(fo(
|
|
56105
|
+
I.commands.setTextSelection({ from: oe, to: me }), I.commands.setContent(fo(j, o.disabled, o.mode), !1);
|
|
56111
56106
|
},
|
|
56112
56107
|
{ deep: !0 }
|
|
56113
56108
|
), Le(
|
|
56114
56109
|
() => f.value,
|
|
56115
56110
|
() => {
|
|
56116
|
-
f.value && f.value.on("selectionUpdate", ({ editor:
|
|
56117
|
-
r("changed:selection", { editor:
|
|
56111
|
+
f.value && f.value.on("selectionUpdate", ({ editor: j }) => {
|
|
56112
|
+
r("changed:selection", { editor: j });
|
|
56118
56113
|
});
|
|
56119
56114
|
}
|
|
56120
56115
|
), $n(() => {
|
|
56121
|
-
var
|
|
56122
|
-
I == null || I.destroy(), (
|
|
56116
|
+
var j;
|
|
56117
|
+
I == null || I.destroy(), (j = Q.value) == null || j.destroy();
|
|
56123
56118
|
}), fd(id.SAVE, () => {
|
|
56124
56119
|
localStorage.setItem("content", Y(I, "html"));
|
|
56125
56120
|
}), pt(() => {
|
|
56126
|
-
var
|
|
56127
|
-
(
|
|
56121
|
+
var j, oe;
|
|
56122
|
+
(j = I == null ? void 0 : I.commands) != null && j.setIsEnableSuggestion && I.commands.setIsEnableSuggestion(!1), (oe = I == null ? void 0 : I.commands) != null && oe.setIsMobile && I.commands.setIsMobile(!0);
|
|
56128
56123
|
});
|
|
56129
56124
|
const {
|
|
56130
56125
|
showMenuSplitter: P,
|
|
@@ -56143,9 +56138,9 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56143
56138
|
Pe();
|
|
56144
56139
|
});
|
|
56145
56140
|
const it = $();
|
|
56146
|
-
return ph(it, (
|
|
56141
|
+
return ph(it, (j) => {
|
|
56147
56142
|
P.value = !1;
|
|
56148
|
-
}), bd(I), e({ editor: I }), (
|
|
56143
|
+
}), bd(I), e({ editor: I }), (j, oe) => {
|
|
56149
56144
|
const me = S0, ye = _0, _e = E0, ie = r0, Ae = _7, We = T0;
|
|
56150
56145
|
return M(), be(nt, null, [
|
|
56151
56146
|
Q.value ? (M(), be("div", {
|
|
@@ -56158,34 +56153,34 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56158
56153
|
b(Ye)(
|
|
56159
56154
|
"vdc-editor moblie relative w-full flex flex-col editor-line-number editor-line",
|
|
56160
56155
|
!o.height && "flex-1",
|
|
56161
|
-
|
|
56156
|
+
j.editorClass
|
|
56162
56157
|
)
|
|
56163
56158
|
)
|
|
56164
56159
|
}, [
|
|
56165
|
-
!
|
|
56166
|
-
|
|
56160
|
+
!j.hideBubble && !j.disabled && g.value ? (M(), be(nt, { key: 0 }, [
|
|
56161
|
+
q([b(pd)]) ? (M(), B(me, {
|
|
56167
56162
|
key: 0,
|
|
56168
56163
|
editor: b(I)
|
|
56169
56164
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
56170
|
-
|
|
56165
|
+
q([b(tl)]) ? (M(), B(ye, {
|
|
56171
56166
|
key: 1,
|
|
56172
56167
|
editor: b(I)
|
|
56173
56168
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
56174
|
-
|
|
56169
|
+
q([b(Qs)]) ? (M(), B(_e, {
|
|
56175
56170
|
key: 2,
|
|
56176
56171
|
editor: b(I)
|
|
56177
56172
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
56178
|
-
|
|
56173
|
+
q([b(ea), b(ta)]) ? (M(), B(ie, {
|
|
56179
56174
|
key: 3,
|
|
56180
56175
|
editor: b(I)
|
|
56181
56176
|
}, null, 8, ["editor"])) : Oe("", !0)
|
|
56182
56177
|
], 64)) : Oe("", !0),
|
|
56183
|
-
|
|
56178
|
+
j.hideToolbar ? Oe("", !0) : (M(), B(Ae, {
|
|
56184
56179
|
key: 1,
|
|
56185
56180
|
editor: Q.value,
|
|
56186
|
-
mode:
|
|
56187
|
-
disabled:
|
|
56188
|
-
class: Ve(["mb-[3px]",
|
|
56181
|
+
mode: j.mode,
|
|
56182
|
+
disabled: j.disabled,
|
|
56183
|
+
class: Ve(["mb-[3px]", j.toolBarClass]),
|
|
56189
56184
|
"active-extensions": [Gc]
|
|
56190
56185
|
}, null, 8, ["editor", "mode", "disabled", "class", "active-extensions"])),
|
|
56191
56186
|
D(b(Y2), {
|
|
@@ -56214,15 +56209,15 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56214
56209
|
class: Ve(
|
|
56215
56210
|
b(Ye)(
|
|
56216
56211
|
"flex-1 !overflow-y-auto basis-0 flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",
|
|
56217
|
-
|
|
56212
|
+
j.contentClass
|
|
56218
56213
|
)
|
|
56219
56214
|
)
|
|
56220
56215
|
}, [
|
|
56221
|
-
(ot =
|
|
56216
|
+
(ot = j.fieldNameContent) != null && ot.label ? (M(), B(We, {
|
|
56222
56217
|
key: 0,
|
|
56223
|
-
"field-name":
|
|
56224
|
-
mode:
|
|
56225
|
-
disabled:
|
|
56218
|
+
"field-name": j.fieldNameContent,
|
|
56219
|
+
mode: j.mode,
|
|
56220
|
+
disabled: j.disabled,
|
|
56226
56221
|
class: "mb-1"
|
|
56227
56222
|
}, null, 8, ["field-name", "mode", "disabled"])) : Oe("", !0),
|
|
56228
56223
|
D(b(si), {
|
|
@@ -56244,21 +56239,21 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56244
56239
|
class: Ve(
|
|
56245
56240
|
b(Ye)(
|
|
56246
56241
|
"flex-1 !overflow-y-auto basis-0 flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",
|
|
56247
|
-
|
|
56248
|
-
|
|
56249
|
-
|
|
56242
|
+
K.value && "border-ed-blue",
|
|
56243
|
+
j.disabled && "border-transparent",
|
|
56244
|
+
j.contentClass
|
|
56250
56245
|
)
|
|
56251
56246
|
)
|
|
56252
56247
|
}, [
|
|
56253
56248
|
D(aae, {
|
|
56254
56249
|
ref_key: "superEditorRef",
|
|
56255
56250
|
ref: w,
|
|
56256
|
-
mode:
|
|
56257
|
-
"field-name-super":
|
|
56258
|
-
extensions:
|
|
56259
|
-
"model-value":
|
|
56260
|
-
disabled:
|
|
56261
|
-
readonly:
|
|
56251
|
+
mode: j.mode,
|
|
56252
|
+
"field-name-super": j.fieldNameSuper,
|
|
56253
|
+
extensions: j.extensions,
|
|
56254
|
+
"model-value": j.modelValue,
|
|
56255
|
+
disabled: j.disabled,
|
|
56256
|
+
readonly: j.readonly,
|
|
56262
56257
|
onLineFocus: re
|
|
56263
56258
|
}, null, 8, ["mode", "field-name-super", "extensions", "model-value", "disabled", "readonly"])
|
|
56264
56259
|
], 2)
|
|
@@ -56269,7 +56264,7 @@ const Xae = /* @__PURE__ */ W({
|
|
|
56269
56264
|
_: 1
|
|
56270
56265
|
}, 8, ["class", "style", "onReady", "onResized"])
|
|
56271
56266
|
], 6)) : Oe("", !0),
|
|
56272
|
-
b(P) && !
|
|
56267
|
+
b(P) && !j.disabled ? (M(), B(J2, {
|
|
56273
56268
|
key: 1,
|
|
56274
56269
|
ref_key: "splitToastRef",
|
|
56275
56270
|
ref: it,
|
|
@@ -56732,4 +56727,4 @@ export {
|
|
|
56732
56727
|
_ae as y,
|
|
56733
56728
|
vae as z
|
|
56734
56729
|
};
|
|
56735
|
-
//# sourceMappingURL=index-
|
|
56730
|
+
//# sourceMappingURL=index-f4jVglvK.mjs.map
|