lianshu-editor 1.0.172 → 1.0.173
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.
|
@@ -209,17 +209,17 @@ async function Qp(e, t) {
|
|
|
209
209
|
} : {
|
|
210
210
|
x: 1,
|
|
211
211
|
y: 1
|
|
212
|
-
},
|
|
212
|
+
}, k = ar(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
213
213
|
elements: o,
|
|
214
214
|
rect: I,
|
|
215
215
|
offsetParent: N,
|
|
216
216
|
strategy: u
|
|
217
217
|
}) : I);
|
|
218
218
|
return {
|
|
219
|
-
top: (y.top -
|
|
220
|
-
bottom: (
|
|
221
|
-
left: (y.left -
|
|
222
|
-
right: (
|
|
219
|
+
top: (y.top - k.top + p.top) / T.y,
|
|
220
|
+
bottom: (k.bottom - y.bottom + p.bottom) / T.y,
|
|
221
|
+
left: (y.left - k.left + p.left) / T.x,
|
|
222
|
+
right: (k.right - y.right + p.right) / T.x
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
const Yp = async (e, t, n) => {
|
|
@@ -245,7 +245,7 @@ const Yp = async (e, t, n) => {
|
|
|
245
245
|
} = o[A], {
|
|
246
246
|
x: N,
|
|
247
247
|
y: T,
|
|
248
|
-
data:
|
|
248
|
+
data: k,
|
|
249
249
|
reset: M
|
|
250
250
|
} = await I({
|
|
251
251
|
x: c,
|
|
@@ -268,7 +268,7 @@ const Yp = async (e, t, n) => {
|
|
|
268
268
|
...g,
|
|
269
269
|
[y]: {
|
|
270
270
|
...g[y],
|
|
271
|
-
...
|
|
271
|
+
...k
|
|
272
272
|
}
|
|
273
273
|
}, M && p <= 50 && (p++, typeof M == "object" && (M.placement && (h = M.placement), M.rects && (l = M.rects === !0 ? await s.getElementRects({
|
|
274
274
|
reference: e,
|
|
@@ -307,10 +307,10 @@ const Yp = async (e, t, n) => {
|
|
|
307
307
|
const f = Ju(c), h = {
|
|
308
308
|
x: n,
|
|
309
309
|
y: a
|
|
310
|
-
}, g = Vu(r), p = qu(g), m = await s.getDimensions(l), A = g === "y", y = A ? "top" : "left", I = A ? "bottom" : "right", N = A ? "clientHeight" : "clientWidth", T = i.reference[p] + i.reference[g] - h[g] - i.floating[p],
|
|
310
|
+
}, g = Vu(r), p = qu(g), m = await s.getDimensions(l), A = g === "y", y = A ? "top" : "left", I = A ? "bottom" : "right", N = A ? "clientHeight" : "clientWidth", T = i.reference[p] + i.reference[g] - h[g] - i.floating[p], k = h[g] - i.reference[g], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
311
311
|
let L = M ? M[N] : 0;
|
|
312
312
|
(!L || !await (s.isElement == null ? void 0 : s.isElement(M))) && (L = o.floating[N] || i.floating[p]);
|
|
313
|
-
const H = T / 2 -
|
|
313
|
+
const H = T / 2 - k / 2, w = L / 2 - m[p] / 2 - 1, x = On(f[y], w), U = On(f[I], w), O = x, S = L - m[p] - U, C = L / 2 - m[p] / 2 + H, B = qo(O, C, S), G = !u.arrow && hn(r) != null && C !== B && i.reference[p] / 2 - (C < O ? x : U) - m[p] / 2 < 0, $ = G ? C < O ? C - O : C - S : 0;
|
|
314
314
|
return {
|
|
315
315
|
[g]: h[g] + $,
|
|
316
316
|
data: {
|
|
@@ -355,7 +355,7 @@ const Wp = function(e) {
|
|
|
355
355
|
placement: m[0]
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
-
const T = [A[rn(I)], A[N[0]], A[N[1]]],
|
|
358
|
+
const T = [A[rn(I)], A[N[0]], A[N[1]]], k = [...((a = s.autoPlacement) == null ? void 0 : a.overflows) || [], {
|
|
359
359
|
placement: I,
|
|
360
360
|
overflows: T
|
|
361
361
|
}], M = m[y + 1];
|
|
@@ -363,13 +363,13 @@ const Wp = function(e) {
|
|
|
363
363
|
return {
|
|
364
364
|
data: {
|
|
365
365
|
index: y + 1,
|
|
366
|
-
overflows:
|
|
366
|
+
overflows: k
|
|
367
367
|
},
|
|
368
368
|
reset: {
|
|
369
369
|
placement: M
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
|
-
const L =
|
|
372
|
+
const L = k.map((x) => {
|
|
373
373
|
const U = hn(x.placement);
|
|
374
374
|
return [x.placement, U && c ? (
|
|
375
375
|
// Check along the mainAxis and main crossAxis side.
|
|
@@ -378,19 +378,19 @@ const Wp = function(e) {
|
|
|
378
378
|
// Check only the mainAxis.
|
|
379
379
|
x.overflows[0]
|
|
380
380
|
), x.overflows];
|
|
381
|
-
}).sort((x, U) => x[1] - U[1]),
|
|
381
|
+
}).sort((x, U) => x[1] - U[1]), w = ((r = L.filter((x) => x[2].slice(
|
|
382
382
|
0,
|
|
383
383
|
// Aligned placements should not check their opposite crossAxis
|
|
384
384
|
// side.
|
|
385
385
|
hn(x[0]) ? 2 : 3
|
|
386
386
|
).every((U) => U <= 0))[0]) == null ? void 0 : r[0]) || L[0][0];
|
|
387
|
-
return
|
|
387
|
+
return w !== o ? {
|
|
388
388
|
data: {
|
|
389
389
|
index: y + 1,
|
|
390
|
-
overflows:
|
|
390
|
+
overflows: k
|
|
391
391
|
},
|
|
392
392
|
reset: {
|
|
393
|
-
placement:
|
|
393
|
+
placement: w
|
|
394
394
|
}
|
|
395
395
|
} : {};
|
|
396
396
|
}
|
|
@@ -419,18 +419,18 @@ const Wp = function(e) {
|
|
|
419
419
|
} = Jn(e, t);
|
|
420
420
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
421
421
|
return {};
|
|
422
|
-
const y = rn(r), I = Nn(o), N = rn(o) === o, T = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)),
|
|
423
|
-
!h && M &&
|
|
424
|
-
const L = [o, ...
|
|
422
|
+
const y = rn(r), I = Nn(o), N = rn(o) === o, T = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), k = h || (N || !m ? [fs(o)] : Pp(o)), M = p !== "none";
|
|
423
|
+
!h && M && k.push(...zp(o, m, p, T));
|
|
424
|
+
const L = [o, ...k], H = await u.detectOverflow(t, A), w = [];
|
|
425
425
|
let x = ((a = i.flip) == null ? void 0 : a.overflows) || [];
|
|
426
|
-
if (c &&
|
|
426
|
+
if (c && w.push(H[y]), f) {
|
|
427
427
|
const C = Ud(r, s, T);
|
|
428
|
-
|
|
428
|
+
w.push(H[C[0]], H[C[1]]);
|
|
429
429
|
}
|
|
430
430
|
if (x = [...x, {
|
|
431
431
|
placement: r,
|
|
432
|
-
overflows:
|
|
433
|
-
}], !
|
|
432
|
+
overflows: w
|
|
433
|
+
}], !w.every((C) => C <= 0)) {
|
|
434
434
|
var U, O;
|
|
435
435
|
const C = (((U = i.flip) == null ? void 0 : U.index) || 0) + 1, B = L[C];
|
|
436
436
|
if (B && (!(f === "alignment" ? I !== Nn(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -582,14 +582,14 @@ const Jp = function(e) {
|
|
|
582
582
|
y: S
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
const A = rn(n) === "left", y = xt(...f.map((x) => x.right)), I = On(...f.map((x) => x.left)), N = f.filter((x) => A ? x.left === I : x.right === y), T = N[0].top,
|
|
585
|
+
const A = rn(n) === "left", y = xt(...f.map((x) => x.right)), I = On(...f.map((x) => x.left)), N = f.filter((x) => A ? x.left === I : x.right === y), T = N[0].top, k = N[N.length - 1].bottom, M = I, L = y, H = L - M, w = k - T;
|
|
586
586
|
return {
|
|
587
587
|
top: T,
|
|
588
|
-
bottom:
|
|
588
|
+
bottom: k,
|
|
589
589
|
left: M,
|
|
590
590
|
right: L,
|
|
591
591
|
width: H,
|
|
592
|
-
height:
|
|
592
|
+
height: w,
|
|
593
593
|
x: M,
|
|
594
594
|
y: T
|
|
595
595
|
};
|
|
@@ -738,8 +738,8 @@ const em = function(e) {
|
|
|
738
738
|
} = i.floating;
|
|
739
739
|
let A, y;
|
|
740
740
|
f === "top" || f === "bottom" ? (A = f, y = h === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (y = f, A = h === "end" ? "top" : "bottom");
|
|
741
|
-
const I = m - c.top - c.bottom, N = p - c.left - c.right, T = On(m - c[A], I),
|
|
742
|
-
let L = T, H =
|
|
741
|
+
const I = m - c.top - c.bottom, N = p - c.left - c.right, T = On(m - c[A], I), k = On(p - c[y], N), M = !t.middlewareData.shift;
|
|
742
|
+
let L = T, H = k;
|
|
743
743
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (H = N), (a = t.middlewareData.shift) != null && a.enabled.y && (L = I), M && !h) {
|
|
744
744
|
const x = xt(c.left, 0), U = xt(c.right, 0), O = xt(c.top, 0), S = xt(c.bottom, 0);
|
|
745
745
|
g ? H = p - 2 * (x !== 0 || U !== 0 ? x + U : xt(c.left, c.right)) : L = m - 2 * (O !== 0 || S !== 0 ? O + S : xt(c.top, c.bottom));
|
|
@@ -749,8 +749,8 @@ const em = function(e) {
|
|
|
749
749
|
availableWidth: H,
|
|
750
750
|
availableHeight: L
|
|
751
751
|
});
|
|
752
|
-
const
|
|
753
|
-
return p !==
|
|
752
|
+
const w = await s.getDimensions(o.floating);
|
|
753
|
+
return p !== w.width || m !== w.height ? {
|
|
754
754
|
reset: {
|
|
755
755
|
rects: !0
|
|
756
756
|
}
|
|
@@ -5217,16 +5217,16 @@ function Rb(e) {
|
|
|
5217
5217
|
break;
|
|
5218
5218
|
}
|
|
5219
5219
|
const T = r + N * t;
|
|
5220
|
-
for (let
|
|
5221
|
-
a[T +
|
|
5220
|
+
for (let k = 0; k < A; k++) {
|
|
5221
|
+
a[T + k] == 0 ? a[T + k] = c : (i || (i = [])).push({
|
|
5222
5222
|
type: "collision",
|
|
5223
5223
|
row: l,
|
|
5224
5224
|
pos: c,
|
|
5225
|
-
n: A -
|
|
5225
|
+
n: A - k
|
|
5226
5226
|
});
|
|
5227
|
-
const M = I && I[
|
|
5227
|
+
const M = I && I[k];
|
|
5228
5228
|
if (M) {
|
|
5229
|
-
const L = (T +
|
|
5229
|
+
const L = (T + k) % t * 2, H = s[L];
|
|
5230
5230
|
H == null || H != M && s[L + 1] == 1 ? (s[L] = M, s[L + 1] = 1) : H == M && s[L + 1]++;
|
|
5231
5231
|
}
|
|
5232
5232
|
}
|
|
@@ -7392,22 +7392,22 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
7392
7392
|
if (!n.editor) return;
|
|
7393
7393
|
const { from: C, to: B } = n.editor.state.selection, G = C !== B ? n.editor.state.doc.textBetween(C, B) : "";
|
|
7394
7394
|
n.editor.commands.showAIPromptInput(G), y();
|
|
7395
|
-
},
|
|
7395
|
+
}, k = () => {
|
|
7396
7396
|
n.editor && n.editor.chain().focus().unsetAllMarks().run();
|
|
7397
|
-
}, M = Dn("editorTemplateConfig", Q(void 0)), L = te(() => M.value), H = Q(!1),
|
|
7398
|
-
A(), r.value = !1, showLinkPopup.value = !1, H.value = !H.value,
|
|
7397
|
+
}, M = Dn("editorTemplateConfig", Q(void 0)), L = te(() => M.value), H = Q(!1), w = Q(""), x = Q(null), U = () => {
|
|
7398
|
+
A(), r.value = !1, showLinkPopup.value = !1, H.value = !H.value, w.value = "", H.value && yt(() => {
|
|
7399
7399
|
var C;
|
|
7400
7400
|
(C = x.value) == null || C.focus();
|
|
7401
7401
|
});
|
|
7402
7402
|
}, O = () => {
|
|
7403
|
-
H.value = !1,
|
|
7403
|
+
H.value = !1, w.value = "";
|
|
7404
7404
|
}, S = async () => {
|
|
7405
|
-
if (!n.editor || !L.value || !
|
|
7405
|
+
if (!n.editor || !L.value || !w.value.trim()) return;
|
|
7406
7406
|
const { from: C, to: B } = n.editor.state.selection;
|
|
7407
7407
|
if (C === B) return;
|
|
7408
7408
|
const $ = n.editor.state.doc.slice(C, B).content.toJSON();
|
|
7409
7409
|
try {
|
|
7410
|
-
await L.value.saveTemplate(
|
|
7410
|
+
await L.value.saveTemplate(w.value.trim(), $), O();
|
|
7411
7411
|
} catch (K) {
|
|
7412
7412
|
console.error("[模板] 保存失败:", K);
|
|
7413
7413
|
}
|
|
@@ -7484,7 +7484,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
7484
7484
|
], 2),
|
|
7485
7485
|
b("button", {
|
|
7486
7486
|
class: "toolbar-btn",
|
|
7487
|
-
onClick:
|
|
7487
|
+
onClick: k,
|
|
7488
7488
|
title: "清除格式"
|
|
7489
7489
|
}, [
|
|
7490
7490
|
j(P(Z0), { size: 16 })
|
|
@@ -7581,7 +7581,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
7581
7581
|
ot(b("input", {
|
|
7582
7582
|
ref_key: "templateTitleInputRef",
|
|
7583
7583
|
ref: x,
|
|
7584
|
-
"onUpdate:modelValue": B[5] || (B[5] = (me) =>
|
|
7584
|
+
"onUpdate:modelValue": B[5] || (B[5] = (me) => w.value = me),
|
|
7585
7585
|
type: "text",
|
|
7586
7586
|
class: "template-title-input",
|
|
7587
7587
|
placeholder: "输入模板名称...",
|
|
@@ -7590,7 +7590,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
7590
7590
|
at(O, ["esc"])
|
|
7591
7591
|
]
|
|
7592
7592
|
}, null, 544), [
|
|
7593
|
-
[Yt,
|
|
7593
|
+
[Yt, w.value]
|
|
7594
7594
|
])
|
|
7595
7595
|
]),
|
|
7596
7596
|
b("div", v2, [
|
|
@@ -7601,7 +7601,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
7601
7601
|
b("button", {
|
|
7602
7602
|
class: "template-btn-confirm",
|
|
7603
7603
|
onClick: S,
|
|
7604
|
-
disabled: !
|
|
7604
|
+
disabled: !w.value.trim()
|
|
7605
7605
|
}, "保存", 8, I2)
|
|
7606
7606
|
])
|
|
7607
7607
|
])) : ae("", !0)
|
|
@@ -7634,14 +7634,14 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
7634
7634
|
editor: {}
|
|
7635
7635
|
},
|
|
7636
7636
|
setup(e) {
|
|
7637
|
-
const t = e, n = Dn("editorTheme", "light"), a = te(() => typeof n == "object" && (n != null && n.value) ? n.value === "dark" : n === "dark"), r = Q(!1), i = Q(null), s = Q(!1), o = Q(!1), u = Q([]), l = Q(!1), c = Q(null), f = Q(!1), h = Q(!1), g = Q(!1), p = Q(!1), m = Q(!1), A = Q(!1), y = Q(!1), I = Q(!1), N = Q(!1), T = Q(!1),
|
|
7637
|
+
const t = e, n = Dn("editorTheme", "light"), a = te(() => typeof n == "object" && (n != null && n.value) ? n.value === "dark" : n === "dark"), r = Q(!1), i = Q(null), s = Q(!1), o = Q(!1), u = Q([]), l = Q(!1), c = Q(null), f = Q(!1), h = Q(!1), g = Q(!1), p = Q(!1), m = Q(!1), A = Q(!1), y = Q(!1), I = Q(!1), N = Q(!1), T = Q(!1), k = Q(!1), M = Q(!1), L = te(() => {
|
|
7638
7638
|
if (!c.value) return !1;
|
|
7639
7639
|
const ee = c.value;
|
|
7640
7640
|
return window.innerWidth - ee.right < 160 + 240 + 40;
|
|
7641
7641
|
}), H = te(() => {
|
|
7642
7642
|
var ee;
|
|
7643
7643
|
return ((ee = t.editor) == null ? void 0 : ee.can().mergeCells()) ?? !1;
|
|
7644
|
-
}),
|
|
7644
|
+
}), w = te(() => {
|
|
7645
7645
|
var ee;
|
|
7646
7646
|
return ((ee = t.editor) == null ? void 0 : ee.can().splitCell()) ?? !1;
|
|
7647
7647
|
}), x = (ee) => {
|
|
@@ -8003,10 +8003,10 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
8003
8003
|
T.value || (f.value = !1);
|
|
8004
8004
|
}, 200);
|
|
8005
8005
|
}, It = () => {
|
|
8006
|
-
|
|
8006
|
+
k.value = !0;
|
|
8007
8007
|
}, Fn = () => {
|
|
8008
|
-
|
|
8009
|
-
|
|
8008
|
+
k.value = !1, setTimeout(() => {
|
|
8009
|
+
k.value || (h.value = !1);
|
|
8010
8010
|
}, 200);
|
|
8011
8011
|
}, Ni = () => {
|
|
8012
8012
|
M.value = !0;
|
|
@@ -8144,9 +8144,9 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
8144
8144
|
onMouseleave: Fn
|
|
8145
8145
|
}, [
|
|
8146
8146
|
b("div", {
|
|
8147
|
-
class: X(["handle-trigger col-trigger", { "opacity-0":
|
|
8147
|
+
class: X(["handle-trigger col-trigger", { "opacity-0": k.value || h.value }])
|
|
8148
8148
|
}, null, 2),
|
|
8149
|
-
|
|
8149
|
+
k.value || h.value ? (D(), F("button", {
|
|
8150
8150
|
key: 0,
|
|
8151
8151
|
class: "handle-btn",
|
|
8152
8152
|
onClick: oe(Je, ["stop"]),
|
|
@@ -8303,7 +8303,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
|
|
|
8303
8303
|
b("button", {
|
|
8304
8304
|
class: "menu-item",
|
|
8305
8305
|
onClick: vt,
|
|
8306
|
-
disabled: !
|
|
8306
|
+
disabled: !w.value
|
|
8307
8307
|
}, [
|
|
8308
8308
|
j(P(QA), { size: 14 }),
|
|
8309
8309
|
Y[27] || (Y[27] = b("span", null, "拆分单元格", -1))
|
|
@@ -20754,7 +20754,7 @@ var B3 = function(t, n) {
|
|
|
20754
20754
|
function P3(e) {
|
|
20755
20755
|
var t, n = e.state, a = e.name, r = e.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, o = Mn(n.placement), u = Il(o), l = [jt, on].indexOf(o) >= 0, c = l ? "height" : "width";
|
|
20756
20756
|
if (!(!i || !s)) {
|
|
20757
|
-
var f = B3(r.padding, n), h = vl(i), g = u === "y" ? zt : jt, p = u === "y" ? sn : on, m = n.rects.reference[c] + n.rects.reference[u] - s[u] - n.rects.popper[c], A = s[u] - n.rects.reference[u], y = Ai(i), I = y ? u === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, N = m / 2 - A / 2, T = f[g],
|
|
20757
|
+
var f = B3(r.padding, n), h = vl(i), g = u === "y" ? zt : jt, p = u === "y" ? sn : on, m = n.rects.reference[c] + n.rects.reference[u] - s[u] - n.rects.popper[c], A = s[u] - n.rects.reference[u], y = Ai(i), I = y ? u === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, N = m / 2 - A / 2, T = f[g], k = I - h[c] - f[p], M = I / 2 - h[c] / 2 + N, L = Lr(T, M, k), H = u;
|
|
20758
20758
|
n.modifiersData[a] = (t = {}, t[H] = L, t.centerOffset = L - M, t);
|
|
20759
20759
|
}
|
|
20760
20760
|
}
|
|
@@ -20788,17 +20788,17 @@ function z3(e) {
|
|
|
20788
20788
|
};
|
|
20789
20789
|
}
|
|
20790
20790
|
function yf(e) {
|
|
20791
|
-
var t, n = e.popper, a = e.popperRect, r = e.placement, i = e.variation, s = e.offsets, o = e.position, u = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, f = e.isFixed, h = c === !0 ? z3(s) : typeof c == "function" ? c(s) : s, g = h.x, p = g === void 0 ? 0 : g, m = h.y, A = m === void 0 ? 0 : m, y = s.hasOwnProperty("x"), I = s.hasOwnProperty("y"), N = jt, T = zt,
|
|
20791
|
+
var t, n = e.popper, a = e.popperRect, r = e.placement, i = e.variation, s = e.offsets, o = e.position, u = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, f = e.isFixed, h = c === !0 ? z3(s) : typeof c == "function" ? c(s) : s, g = h.x, p = g === void 0 ? 0 : g, m = h.y, A = m === void 0 ? 0 : m, y = s.hasOwnProperty("x"), I = s.hasOwnProperty("y"), N = jt, T = zt, k = window;
|
|
20792
20792
|
if (l) {
|
|
20793
20793
|
var M = Ai(n), L = "clientHeight", H = "clientWidth";
|
|
20794
20794
|
if (M === yn(n) && (M = ga(n), Un(M).position !== "static" && o === "absolute" && (L = "scrollHeight", H = "scrollWidth")), M = M, r === zt || (r === jt || r === on) && i === ei) {
|
|
20795
20795
|
T = sn;
|
|
20796
|
-
var
|
|
20797
|
-
A -=
|
|
20796
|
+
var w = f && k.visualViewport ? k.visualViewport.height : M[L];
|
|
20797
|
+
A -= w - a.height, A *= u ? 1 : -1;
|
|
20798
20798
|
}
|
|
20799
20799
|
if (r === jt || (r === zt || r === sn) && i === ei) {
|
|
20800
20800
|
N = on;
|
|
20801
|
-
var x = f &&
|
|
20801
|
+
var x = f && k.visualViewport ? k.visualViewport.width : M[H];
|
|
20802
20802
|
p -= x - a.width, p *= u ? 1 : -1;
|
|
20803
20803
|
}
|
|
20804
20804
|
}
|
|
@@ -20807,7 +20807,7 @@ function yf(e) {
|
|
|
20807
20807
|
}, l && H3);
|
|
20808
20808
|
if (u) {
|
|
20809
20809
|
var O;
|
|
20810
|
-
return Object.assign({}, U, (O = {}, O[T] = I ? "0" : "", O[N] = y ? "0" : "", O.transform = (
|
|
20810
|
+
return Object.assign({}, U, (O = {}, O[T] = I ? "0" : "", O[N] = y ? "0" : "", O.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + A + "px)" : "translate3d(" + p + "px, " + A + "px, 0)", O));
|
|
20811
20811
|
}
|
|
20812
20812
|
return Object.assign({}, U, (t = {}, t[T] = I ? A + "px" : "", t[N] = y ? p + "px" : "", t.transform = "", t));
|
|
20813
20813
|
}
|
|
@@ -20999,18 +20999,18 @@ function y1(e) {
|
|
|
20999
20999
|
}
|
|
21000
21000
|
function ti(e, t) {
|
|
21001
21001
|
t === void 0 && (t = {});
|
|
21002
|
-
var n = t, a = n.placement, r = a === void 0 ? e.placement : a, i = n.boundary, s = i === void 0 ? A3 : i, o = n.rootBoundary, u = o === void 0 ? f1 : o, l = n.elementContext, c = l === void 0 ? vr : l, f = n.altBoundary, h = f === void 0 ? !1 : f, g = n.padding, p = g === void 0 ? 0 : g, m = m1(typeof p != "number" ? p : b1(p, bi)), A = c === vr ? y3 : vr, y = e.rects.popper, I = e.elements[h ? A : c], N = Z3(or(I) ? I : I.contextElement || ga(e.elements.popper), s, u), T = lr(e.elements.reference),
|
|
21002
|
+
var n = t, a = n.placement, r = a === void 0 ? e.placement : a, i = n.boundary, s = i === void 0 ? A3 : i, o = n.rootBoundary, u = o === void 0 ? f1 : o, l = n.elementContext, c = l === void 0 ? vr : l, f = n.altBoundary, h = f === void 0 ? !1 : f, g = n.padding, p = g === void 0 ? 0 : g, m = m1(typeof p != "number" ? p : b1(p, bi)), A = c === vr ? y3 : vr, y = e.rects.popper, I = e.elements[h ? A : c], N = Z3(or(I) ? I : I.contextElement || ga(e.elements.popper), s, u), T = lr(e.elements.reference), k = y1({
|
|
21003
21003
|
reference: T,
|
|
21004
21004
|
element: y,
|
|
21005
21005
|
placement: r
|
|
21006
|
-
}), M = du(Object.assign({}, y,
|
|
21006
|
+
}), M = du(Object.assign({}, y, k)), L = c === vr ? M : T, H = {
|
|
21007
21007
|
top: N.top - L.top + m.top,
|
|
21008
21008
|
bottom: L.bottom - N.bottom + m.bottom,
|
|
21009
21009
|
left: N.left - L.left + m.left,
|
|
21010
21010
|
right: L.right - N.right + m.right
|
|
21011
|
-
},
|
|
21012
|
-
if (c === vr &&
|
|
21013
|
-
var x =
|
|
21011
|
+
}, w = e.modifiersData.offset;
|
|
21012
|
+
if (c === vr && w) {
|
|
21013
|
+
var x = w[r];
|
|
21014
21014
|
Object.keys(H).forEach(function(U) {
|
|
21015
21015
|
var O = [on, sn].indexOf(U) >= 0 ? 1 : -1, S = [zt, sn].indexOf(U) >= 0 ? "y" : "x";
|
|
21016
21016
|
H[U] += x[S] * O;
|
|
@@ -21056,7 +21056,7 @@ function ty(e) {
|
|
|
21056
21056
|
flipVariations: p,
|
|
21057
21057
|
allowedAutoPlacements: m
|
|
21058
21058
|
}) : lt);
|
|
21059
|
-
}, []),
|
|
21059
|
+
}, []), k = t.rects.reference, M = t.rects.popper, L = /* @__PURE__ */ new Map(), H = !0, w = T[0], x = 0; x < T.length; x++) {
|
|
21060
21060
|
var U = T[x], O = Mn(U), S = cr(U) === sr, C = [zt, sn].indexOf(O) >= 0, B = C ? "width" : "height", G = ti(t, {
|
|
21061
21061
|
placement: U,
|
|
21062
21062
|
boundary: c,
|
|
@@ -21064,12 +21064,12 @@ function ty(e) {
|
|
|
21064
21064
|
altBoundary: h,
|
|
21065
21065
|
padding: l
|
|
21066
21066
|
}), $ = C ? S ? on : jt : S ? sn : zt;
|
|
21067
|
-
|
|
21067
|
+
k[B] > M[B] && ($ = rs($));
|
|
21068
21068
|
var K = rs($), de = [];
|
|
21069
21069
|
if (i && de.push(G[O] <= 0), o && de.push(G[$] <= 0, G[K] <= 0), de.every(function(Lt) {
|
|
21070
21070
|
return Lt;
|
|
21071
21071
|
})) {
|
|
21072
|
-
|
|
21072
|
+
w = U, H = !1;
|
|
21073
21073
|
break;
|
|
21074
21074
|
}
|
|
21075
21075
|
L.set(U, de);
|
|
@@ -21084,13 +21084,13 @@ function ty(e) {
|
|
|
21084
21084
|
});
|
|
21085
21085
|
});
|
|
21086
21086
|
if (vt)
|
|
21087
|
-
return
|
|
21087
|
+
return w = vt, "break";
|
|
21088
21088
|
}, ge = Le; ge > 0; ge--) {
|
|
21089
21089
|
var Xe = me(ge);
|
|
21090
21090
|
if (Xe === "break")
|
|
21091
21091
|
break;
|
|
21092
21092
|
}
|
|
21093
|
-
t.placement !==
|
|
21093
|
+
t.placement !== w && (t.modifiersData[a]._skip = !0, t.placement = w, t.reset = !0);
|
|
21094
21094
|
}
|
|
21095
21095
|
}
|
|
21096
21096
|
var ny = {
|
|
@@ -21191,15 +21191,15 @@ function fy(e) {
|
|
|
21191
21191
|
rootBoundary: l,
|
|
21192
21192
|
padding: f,
|
|
21193
21193
|
altBoundary: c
|
|
21194
|
-
}), y = Mn(t.placement), I = cr(t.placement), N = !I, T = Il(y),
|
|
21194
|
+
}), y = Mn(t.placement), I = cr(t.placement), N = !I, T = Il(y), k = cy(T), M = t.modifiersData.popperOffsets, L = t.rects.reference, H = t.rects.popper, w = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
21195
21195
|
placement: t.placement
|
|
21196
|
-
})) : m, x = typeof
|
|
21197
|
-
mainAxis:
|
|
21198
|
-
altAxis:
|
|
21196
|
+
})) : m, x = typeof w == "number" ? {
|
|
21197
|
+
mainAxis: w,
|
|
21198
|
+
altAxis: w
|
|
21199
21199
|
} : Object.assign({
|
|
21200
21200
|
mainAxis: 0,
|
|
21201
21201
|
altAxis: 0
|
|
21202
|
-
},
|
|
21202
|
+
}, w), U = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, O = {
|
|
21203
21203
|
x: 0,
|
|
21204
21204
|
y: 0
|
|
21205
21205
|
};
|
|
@@ -21212,8 +21212,8 @@ function fy(e) {
|
|
|
21212
21212
|
M[T] = se, O[T] = se - $;
|
|
21213
21213
|
}
|
|
21214
21214
|
if (o) {
|
|
21215
|
-
var Je, re = T === "x" ? zt : jt, Ue = T === "x" ? sn : on, Me = M[
|
|
21216
|
-
M[
|
|
21215
|
+
var Je, re = T === "x" ? zt : jt, Ue = T === "x" ? sn : on, Me = M[k], Ke = k === "y" ? "height" : "width", ba = Me + A[re], ja = Me - A[Ue], Rt = [zt, jt].indexOf(y) !== -1, It = (Je = U == null ? void 0 : U[k]) != null ? Je : 0, Fn = Rt ? ba : Me - L[Ke] - H[Ke] - It + x.altAxis, Ni = Rt ? Me + L[Ke] + H[Ke] - It - x.altAxis : ja, _i = g && Rt ? R3(Fn, Me, Ni) : Lr(g ? Fn : ba, Me, g ? Ni : ja);
|
|
21216
|
+
M[k] = _i, O[k] = _i - Me;
|
|
21217
21217
|
}
|
|
21218
21218
|
t.modifiersData[a] = O;
|
|
21219
21219
|
}
|
|
@@ -21359,11 +21359,11 @@ function Ty(e) {
|
|
|
21359
21359
|
c.reset = !1, T = -1;
|
|
21360
21360
|
continue;
|
|
21361
21361
|
}
|
|
21362
|
-
var
|
|
21362
|
+
var k = c.orderedModifiers[T], M = k.fn, L = k.options, H = L === void 0 ? {} : L, w = k.name;
|
|
21363
21363
|
typeof M == "function" && (c = M({
|
|
21364
21364
|
state: c,
|
|
21365
21365
|
options: H,
|
|
21366
|
-
name:
|
|
21366
|
+
name: w,
|
|
21367
21367
|
instance: g
|
|
21368
21368
|
}) || c);
|
|
21369
21369
|
}
|
|
@@ -21388,14 +21388,14 @@ function Ty(e) {
|
|
|
21388
21388
|
c.orderedModifiers.forEach(function(A) {
|
|
21389
21389
|
var y = A.name, I = A.options, N = I === void 0 ? {} : I, T = A.effect;
|
|
21390
21390
|
if (typeof T == "function") {
|
|
21391
|
-
var
|
|
21391
|
+
var k = T({
|
|
21392
21392
|
state: c,
|
|
21393
21393
|
name: y,
|
|
21394
21394
|
instance: g,
|
|
21395
21395
|
options: N
|
|
21396
21396
|
}), M = function() {
|
|
21397
21397
|
};
|
|
21398
|
-
f.push(
|
|
21398
|
+
f.push(k || M);
|
|
21399
21399
|
}
|
|
21400
21400
|
});
|
|
21401
21401
|
}
|
|
@@ -23682,18 +23682,18 @@ function $1(e, t, n) {
|
|
|
23682
23682
|
let y = "", I = null;
|
|
23683
23683
|
if (m !== "exists") {
|
|
23684
23684
|
if (Oo(t.charCodeAt(n))) {
|
|
23685
|
-
const
|
|
23685
|
+
const k = t.charCodeAt(n);
|
|
23686
23686
|
let M = n + 1;
|
|
23687
|
-
for (; M < t.length && (t.charCodeAt(M) !==
|
|
23687
|
+
for (; M < t.length && (t.charCodeAt(M) !== k || o(M)); )
|
|
23688
23688
|
M += 1;
|
|
23689
|
-
if (t.charCodeAt(M) !==
|
|
23689
|
+
if (t.charCodeAt(M) !== k)
|
|
23690
23690
|
throw new Error("Attribute value didn't end");
|
|
23691
23691
|
y = Ir(t.slice(n + 1, M)), n = M + 1;
|
|
23692
23692
|
} else {
|
|
23693
|
-
const
|
|
23693
|
+
const k = n;
|
|
23694
23694
|
for (; n < t.length && (!Of(t.charCodeAt(n)) && t.charCodeAt(n) !== 93 || o(n)); )
|
|
23695
23695
|
n += 1;
|
|
23696
|
-
y = Ir(t.slice(
|
|
23696
|
+
y = Ir(t.slice(k, n));
|
|
23697
23697
|
}
|
|
23698
23698
|
i(0);
|
|
23699
23699
|
const T = t.charCodeAt(n) | 32;
|
|
@@ -32242,7 +32242,7 @@ var Vl = $h.exports;
|
|
|
32242
32242
|
function T($) {
|
|
32243
32243
|
return a[o + ($ || 1)];
|
|
32244
32244
|
}
|
|
32245
|
-
function
|
|
32245
|
+
function k() {
|
|
32246
32246
|
var $ = f.pop();
|
|
32247
32247
|
return c = f[f.length - 1], $;
|
|
32248
32248
|
}
|
|
@@ -32263,7 +32263,7 @@ var Vl = $h.exports;
|
|
|
32263
32263
|
K.length > 1 && (l += K.length - 1, s = 1), s += K[K.length - 1].length, o = o + $;
|
|
32264
32264
|
}
|
|
32265
32265
|
}
|
|
32266
|
-
function
|
|
32266
|
+
function w() {
|
|
32267
32267
|
h.end = {
|
|
32268
32268
|
line: l,
|
|
32269
32269
|
col: s
|
|
@@ -32311,7 +32311,7 @@ var Vl = $h.exports;
|
|
|
32311
32311
|
break;
|
|
32312
32312
|
case "at-value":
|
|
32313
32313
|
i === `
|
|
32314
|
-
` && (h.value = r.trim(),
|
|
32314
|
+
` && (h.value = r.trim(), w(), k());
|
|
32315
32315
|
break;
|
|
32316
32316
|
}
|
|
32317
32317
|
break;
|
|
@@ -32336,13 +32336,13 @@ var Vl = $h.exports;
|
|
|
32336
32336
|
case "name":
|
|
32337
32337
|
case "before-value":
|
|
32338
32338
|
case "value":
|
|
32339
|
-
r.trim().length > 0 && (h.value = r.trim(),
|
|
32339
|
+
r.trim().length > 0 && (h.value = r.trim(), w()), L("before-name");
|
|
32340
32340
|
break;
|
|
32341
32341
|
case "value-paren":
|
|
32342
32342
|
r += i;
|
|
32343
32343
|
break;
|
|
32344
32344
|
case "at-value":
|
|
32345
|
-
h.value = r.trim(),
|
|
32345
|
+
h.value = r.trim(), w(), k();
|
|
32346
32346
|
break;
|
|
32347
32347
|
case "before-name":
|
|
32348
32348
|
break;
|
|
@@ -32358,7 +32358,7 @@ var Vl = $h.exports;
|
|
|
32358
32358
|
r += i;
|
|
32359
32359
|
break;
|
|
32360
32360
|
}
|
|
32361
|
-
h.text = r.trim(),
|
|
32361
|
+
h.text = r.trim(), w(), L("before-name"), u = u + 1;
|
|
32362
32362
|
break;
|
|
32363
32363
|
case "at-group":
|
|
32364
32364
|
switch (h.name = r.trim(), h.type) {
|
|
@@ -32370,11 +32370,11 @@ var Vl = $h.exports;
|
|
|
32370
32370
|
default:
|
|
32371
32371
|
M("before-selector");
|
|
32372
32372
|
}
|
|
32373
|
-
|
|
32373
|
+
w(), u = u + 1;
|
|
32374
32374
|
break;
|
|
32375
32375
|
case "name":
|
|
32376
32376
|
case "at-rule":
|
|
32377
|
-
h.name = r.trim(),
|
|
32377
|
+
h.name = r.trim(), w(), M("before-name"), u = u + 1;
|
|
32378
32378
|
break;
|
|
32379
32379
|
case "comment":
|
|
32380
32380
|
case "double-string":
|
|
@@ -32392,7 +32392,7 @@ var Vl = $h.exports;
|
|
|
32392
32392
|
case "name":
|
|
32393
32393
|
case "before-value":
|
|
32394
32394
|
case "value":
|
|
32395
|
-
r && (h.value = r.trim()), h.name && h.value &&
|
|
32395
|
+
r && (h.value = r.trim()), h.name && h.value && w(), x("end"), w(), k(), A() === "at-group" && (x("at-group-end"), w(), k()), u > 0 && (u = u - 1);
|
|
32396
32396
|
break;
|
|
32397
32397
|
case "at-group":
|
|
32398
32398
|
case "before-selector":
|
|
@@ -32401,7 +32401,7 @@ var Vl = $h.exports;
|
|
|
32401
32401
|
r += i;
|
|
32402
32402
|
break;
|
|
32403
32403
|
}
|
|
32404
|
-
u > 0 && A(1) === "at-group" && (x("at-group-end"),
|
|
32404
|
+
u > 0 && A(1) === "at-group" && (x("at-group-end"), w()), u > 1 && k(), u > 0 && (u = u - 1);
|
|
32405
32405
|
break;
|
|
32406
32406
|
case "double-string":
|
|
32407
32407
|
case "single-string":
|
|
@@ -32414,10 +32414,10 @@ var Vl = $h.exports;
|
|
|
32414
32414
|
case "'":
|
|
32415
32415
|
switch (A()) {
|
|
32416
32416
|
case "double-string":
|
|
32417
|
-
i === '"' && T(-1) !== "\\" &&
|
|
32417
|
+
i === '"' && T(-1) !== "\\" && k();
|
|
32418
32418
|
break;
|
|
32419
32419
|
case "single-string":
|
|
32420
|
-
i === "'" && T(-1) !== "\\" &&
|
|
32420
|
+
i === "'" && T(-1) !== "\\" && k();
|
|
32421
32421
|
break;
|
|
32422
32422
|
case "before-at-value":
|
|
32423
32423
|
L("at-value"), M(i === '"' ? "double-string" : "single-string");
|
|
@@ -32457,7 +32457,7 @@ var Vl = $h.exports;
|
|
|
32457
32457
|
case "*":
|
|
32458
32458
|
switch (A()) {
|
|
32459
32459
|
case "comment":
|
|
32460
|
-
N("/") ? (h.text = r, H(),
|
|
32460
|
+
N("/") ? (h.text = r, H(), w(), k()) : r += i;
|
|
32461
32461
|
break;
|
|
32462
32462
|
case "before-selector":
|
|
32463
32463
|
r += i, x("selector"), M("selector");
|
|
@@ -32500,7 +32500,7 @@ var Vl = $h.exports;
|
|
|
32500
32500
|
case ")":
|
|
32501
32501
|
switch (A()) {
|
|
32502
32502
|
case "value-paren":
|
|
32503
|
-
|
|
32503
|
+
k();
|
|
32504
32504
|
break;
|
|
32505
32505
|
case "before-value":
|
|
32506
32506
|
L("value");
|
|
@@ -32535,10 +32535,10 @@ var Kh = Yh.exports, Wh = { exports: {} };
|
|
|
32535
32535
|
var n = Kh;
|
|
32536
32536
|
e.exports = o;
|
|
32537
32537
|
var a, r, i, s;
|
|
32538
|
-
function o(
|
|
32539
|
-
M || (M = {}), a = !!M.comments, i = !!M.position, r = 0, s = Array.isArray(
|
|
32540
|
-
for (var L, H = [],
|
|
32541
|
-
L = y(
|
|
32538
|
+
function o(k, M) {
|
|
32539
|
+
M || (M = {}), a = !!M.comments, i = !!M.position, r = 0, s = Array.isArray(k) ? k.slice() : n(k);
|
|
32540
|
+
for (var L, H = [], w; w = l(); )
|
|
32541
|
+
L = y(w), L && H.push(L);
|
|
32542
32542
|
return {
|
|
32543
32543
|
type: "stylesheet",
|
|
32544
32544
|
stylesheet: {
|
|
@@ -32546,100 +32546,100 @@ var Kh = Yh.exports, Wh = { exports: {} };
|
|
|
32546
32546
|
}
|
|
32547
32547
|
};
|
|
32548
32548
|
}
|
|
32549
|
-
function u(
|
|
32549
|
+
function u(k, M) {
|
|
32550
32550
|
M || (M = {});
|
|
32551
|
-
for (var L, H = ["type", "name", "value"],
|
|
32552
|
-
L = H[x],
|
|
32551
|
+
for (var L, H = ["type", "name", "value"], w = {}, x = 0; x < H.length; ++x)
|
|
32552
|
+
L = H[x], k[L] && (w[L] = M[L] || k[L]);
|
|
32553
32553
|
for (H = Object.keys(M), x = 0; x < H.length; ++x)
|
|
32554
|
-
L = H[x],
|
|
32555
|
-
return i && (
|
|
32556
|
-
start:
|
|
32557
|
-
end:
|
|
32558
|
-
}),
|
|
32554
|
+
L = H[x], w[L] || (w[L] = M[L]);
|
|
32555
|
+
return i && (w.position = {
|
|
32556
|
+
start: k.start,
|
|
32557
|
+
end: k.end
|
|
32558
|
+
}), w;
|
|
32559
32559
|
}
|
|
32560
32560
|
function l() {
|
|
32561
|
-
var
|
|
32562
|
-
return
|
|
32561
|
+
var k = s.shift();
|
|
32562
|
+
return k;
|
|
32563
32563
|
}
|
|
32564
|
-
function c(
|
|
32564
|
+
function c(k) {
|
|
32565
32565
|
r = r + 1;
|
|
32566
32566
|
var M = {};
|
|
32567
|
-
switch (
|
|
32567
|
+
switch (k.type) {
|
|
32568
32568
|
case "font-face":
|
|
32569
32569
|
case "viewport":
|
|
32570
32570
|
M.declarations = N();
|
|
32571
32571
|
break;
|
|
32572
32572
|
case "page":
|
|
32573
|
-
M.prefix =
|
|
32573
|
+
M.prefix = k.prefix, M.declarations = N();
|
|
32574
32574
|
break;
|
|
32575
32575
|
default:
|
|
32576
|
-
M.prefix =
|
|
32576
|
+
M.prefix = k.prefix, M.rules = T();
|
|
32577
32577
|
}
|
|
32578
|
-
return u(
|
|
32578
|
+
return u(k, M);
|
|
32579
32579
|
}
|
|
32580
|
-
function f(
|
|
32581
|
-
return u(
|
|
32580
|
+
function f(k) {
|
|
32581
|
+
return u(k);
|
|
32582
32582
|
}
|
|
32583
|
-
function h(
|
|
32584
|
-
return u(
|
|
32583
|
+
function h(k) {
|
|
32584
|
+
return u(k);
|
|
32585
32585
|
}
|
|
32586
|
-
function g(
|
|
32587
|
-
return u(
|
|
32586
|
+
function g(k) {
|
|
32587
|
+
return u(k, { text: k.text });
|
|
32588
32588
|
}
|
|
32589
|
-
function p(
|
|
32590
|
-
return u(
|
|
32589
|
+
function p(k) {
|
|
32590
|
+
return u(k);
|
|
32591
32591
|
}
|
|
32592
|
-
function m(
|
|
32593
|
-
return u(
|
|
32592
|
+
function m(k) {
|
|
32593
|
+
return u(k);
|
|
32594
32594
|
}
|
|
32595
|
-
function A(
|
|
32595
|
+
function A(k) {
|
|
32596
32596
|
function M(L) {
|
|
32597
32597
|
return L.trim();
|
|
32598
32598
|
}
|
|
32599
|
-
return u(
|
|
32599
|
+
return u(k, {
|
|
32600
32600
|
type: "rule",
|
|
32601
|
-
selectors:
|
|
32601
|
+
selectors: k.text.split(",").map(M),
|
|
32602
32602
|
declarations: N()
|
|
32603
32603
|
});
|
|
32604
32604
|
}
|
|
32605
|
-
function y(
|
|
32606
|
-
switch (
|
|
32605
|
+
function y(k) {
|
|
32606
|
+
switch (k.type) {
|
|
32607
32607
|
case "property":
|
|
32608
|
-
return m(
|
|
32608
|
+
return m(k);
|
|
32609
32609
|
case "selector":
|
|
32610
|
-
return A(
|
|
32610
|
+
return A(k);
|
|
32611
32611
|
case "at-group-end":
|
|
32612
32612
|
r = r - 1;
|
|
32613
32613
|
return;
|
|
32614
32614
|
case "media":
|
|
32615
32615
|
case "keyframes":
|
|
32616
|
-
return c(
|
|
32616
|
+
return c(k);
|
|
32617
32617
|
case "comment":
|
|
32618
32618
|
if (a)
|
|
32619
|
-
return g(
|
|
32619
|
+
return g(k);
|
|
32620
32620
|
break;
|
|
32621
32621
|
case "charset":
|
|
32622
|
-
return h(
|
|
32622
|
+
return h(k);
|
|
32623
32623
|
case "import":
|
|
32624
|
-
return f(
|
|
32624
|
+
return f(k);
|
|
32625
32625
|
case "namespace":
|
|
32626
|
-
return p(
|
|
32626
|
+
return p(k);
|
|
32627
32627
|
case "font-face":
|
|
32628
32628
|
case "supports":
|
|
32629
32629
|
case "viewport":
|
|
32630
32630
|
case "document":
|
|
32631
32631
|
case "page":
|
|
32632
|
-
return c(
|
|
32632
|
+
return c(k);
|
|
32633
32633
|
}
|
|
32634
32634
|
}
|
|
32635
|
-
function I(
|
|
32636
|
-
for (var M, L = [], H; (H = l()) &&
|
|
32635
|
+
function I(k) {
|
|
32636
|
+
for (var M, L = [], H; (H = l()) && k && k(H); )
|
|
32637
32637
|
M = y(H), M && L.push(M);
|
|
32638
32638
|
return H && H.type !== "end" && s.unshift(H), L;
|
|
32639
32639
|
}
|
|
32640
32640
|
function N() {
|
|
32641
|
-
return I(function(
|
|
32642
|
-
return
|
|
32641
|
+
return I(function(k) {
|
|
32642
|
+
return k.type === "property" || k.type === "comment";
|
|
32643
32643
|
});
|
|
32644
32644
|
}
|
|
32645
32645
|
function T() {
|
|
@@ -32653,8 +32653,8 @@ var rw = Wh.exports, Gh = { exports: {} };
|
|
|
32653
32653
|
Vl("stringify");
|
|
32654
32654
|
var n, a, r, i, s, o;
|
|
32655
32655
|
e.exports = u;
|
|
32656
|
-
function u(T,
|
|
32657
|
-
|
|
32656
|
+
function u(T, k) {
|
|
32657
|
+
k || (k = {}), r = k.indentation || "", a = !!k.compress, n = !!k.comments, i = 1, a ? s = o = "" : (s = `
|
|
32658
32658
|
`, o = " ");
|
|
32659
32659
|
var M = p(T.stylesheet.rules, I).join(`
|
|
32660
32660
|
`).trim();
|
|
@@ -32671,33 +32671,33 @@ var rw = Wh.exports, Gh = { exports: {} };
|
|
|
32671
32671
|
return "@" + T.type + " " + T.value + ";" + s;
|
|
32672
32672
|
}
|
|
32673
32673
|
function f(T) {
|
|
32674
|
-
var
|
|
32675
|
-
T.name && (
|
|
32674
|
+
var k = "", M = T.prefix || "";
|
|
32675
|
+
T.name && (k = " " + T.name);
|
|
32676
32676
|
var L = T.type !== "page";
|
|
32677
|
-
return "@" + M + T.type +
|
|
32677
|
+
return "@" + M + T.type + k + o + m(T, L) + s;
|
|
32678
32678
|
}
|
|
32679
32679
|
function h(T) {
|
|
32680
32680
|
return n ? "/*" + (T.text || "") + "*/" + s : "";
|
|
32681
32681
|
}
|
|
32682
32682
|
function g(T) {
|
|
32683
|
-
var
|
|
32684
|
-
return T.selectors ?
|
|
32683
|
+
var k;
|
|
32684
|
+
return T.selectors ? k = T.selectors.join("," + s) : (k = "@" + T.type, k += T.name ? " " + T.name : ""), l() + k + o + m(T) + s;
|
|
32685
32685
|
}
|
|
32686
|
-
function p(T,
|
|
32686
|
+
function p(T, k) {
|
|
32687
32687
|
return T.reduce(function(M, L) {
|
|
32688
|
-
var H = L.type === "comment" ? h(L) :
|
|
32688
|
+
var H = L.type === "comment" ? h(L) : k(L);
|
|
32689
32689
|
return H && M.push(H), M;
|
|
32690
32690
|
}, []);
|
|
32691
32691
|
}
|
|
32692
|
-
function m(T,
|
|
32692
|
+
function m(T, k) {
|
|
32693
32693
|
var M = T.declarations, L = y;
|
|
32694
|
-
return T.rules && (M = T.rules, L = g), M = A(M, L), M && (M = s + M + (
|
|
32694
|
+
return T.rules && (M = T.rules, L = g), M = A(M, L), M && (M = s + M + (k ? "" : s)), "{" + M + l() + "}";
|
|
32695
32695
|
}
|
|
32696
|
-
function A(T,
|
|
32696
|
+
function A(T, k) {
|
|
32697
32697
|
if (!T)
|
|
32698
32698
|
return "";
|
|
32699
32699
|
l(1);
|
|
32700
|
-
var M = p(T,
|
|
32700
|
+
var M = p(T, k);
|
|
32701
32701
|
return l(-1), M.length ? M.join(s) : "";
|
|
32702
32702
|
}
|
|
32703
32703
|
function y(T) {
|
|
@@ -32726,8 +32726,8 @@ var rw = Wh.exports, Gh = { exports: {} };
|
|
|
32726
32726
|
}
|
|
32727
32727
|
}
|
|
32728
32728
|
function N(T) {
|
|
32729
|
-
var
|
|
32730
|
-
return l() +
|
|
32729
|
+
var k = T.name ? T.name + ":" + o : "";
|
|
32730
|
+
return l() + k + T.value + ";";
|
|
32731
32731
|
}
|
|
32732
32732
|
})(Gh);
|
|
32733
32733
|
var iw = Gh.exports, sw = {
|
|
@@ -32950,8 +32950,8 @@ function Jl() {
|
|
|
32950
32950
|
N.type === "property" && A.push(N);
|
|
32951
32951
|
}
|
|
32952
32952
|
if (A.length > 0)
|
|
32953
|
-
for (var
|
|
32954
|
-
o.push([m[
|
|
32953
|
+
for (var k = 0, M = m.length; k < M; k++)
|
|
32954
|
+
o.push([m[k], A]);
|
|
32955
32955
|
}
|
|
32956
32956
|
}
|
|
32957
32957
|
return o;
|
|
@@ -33008,8 +33008,8 @@ function Jl() {
|
|
|
33008
33008
|
);
|
|
33009
33009
|
continue;
|
|
33010
33010
|
}
|
|
33011
|
-
(i.fontFaces && N.type === "font-face" || i.mediaQueries && N.type === "media" || i.keyFrames && N.type === "keyframes" || i.pseudos && N.selectors && this.matchesPseudo(N.selectors[0], s) || i.preservedSelectors && N.selectors && N.selectors.some(function(
|
|
33012
|
-
return e.matchesPreservedSelector(
|
|
33011
|
+
(i.fontFaces && N.type === "font-face" || i.mediaQueries && N.type === "media" || i.keyFrames && N.type === "keyframes" || i.pseudos && N.selectors && this.matchesPseudo(N.selectors[0], s) || i.preservedSelectors && N.selectors && N.selectors.some(function(k) {
|
|
33012
|
+
return e.matchesPreservedSelector(k, i.preservedSelectors);
|
|
33013
33013
|
})) && l.unshift(
|
|
33014
33014
|
t.stringify(
|
|
33015
33015
|
{ stylesheet: { rules: [N] } },
|
|
@@ -33229,32 +33229,32 @@ var sd;
|
|
|
33229
33229
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.FLAG13 = 8192] = "FLAG13", e[e.BRANCH_LENGTH = 8064] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
33230
33230
|
})(sd || (fo.BinTrieFlags = sd = {}));
|
|
33231
33231
|
(function(e) {
|
|
33232
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.xmlDecodeTree = e.htmlDecodeTree = e.replaceCodePoint = e.fromCodePoint = e.decodeCodePoint = e.EntityDecoder = e.DecodingMode = void 0, e.determineBranch = m, e.decodeHTML = I, e.decodeHTMLAttribute = N, e.decodeHTMLStrict = T, e.decodeXML =
|
|
33232
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.xmlDecodeTree = e.htmlDecodeTree = e.replaceCodePoint = e.fromCodePoint = e.decodeCodePoint = e.EntityDecoder = e.DecodingMode = void 0, e.determineBranch = m, e.decodeHTML = I, e.decodeHTMLAttribute = N, e.decodeHTMLStrict = T, e.decodeXML = k;
|
|
33233
33233
|
const t = _u, n = ui, a = li, r = fo;
|
|
33234
33234
|
var i;
|
|
33235
|
-
(function(
|
|
33236
|
-
|
|
33235
|
+
(function(w) {
|
|
33236
|
+
w[w.NUM = 35] = "NUM", w[w.SEMI = 59] = "SEMI", w[w.EQUALS = 61] = "EQUALS", w[w.ZERO = 48] = "ZERO", w[w.NINE = 57] = "NINE", w[w.LOWER_A = 97] = "LOWER_A", w[w.LOWER_F = 102] = "LOWER_F", w[w.LOWER_X = 120] = "LOWER_X", w[w.LOWER_Z = 122] = "LOWER_Z", w[w.UPPER_A = 65] = "UPPER_A", w[w.UPPER_F = 70] = "UPPER_F", w[w.UPPER_Z = 90] = "UPPER_Z";
|
|
33237
33237
|
})(i || (i = {}));
|
|
33238
33238
|
const s = 32;
|
|
33239
|
-
function o(
|
|
33240
|
-
return
|
|
33239
|
+
function o(w) {
|
|
33240
|
+
return w >= i.ZERO && w <= i.NINE;
|
|
33241
33241
|
}
|
|
33242
|
-
function u(
|
|
33243
|
-
return
|
|
33242
|
+
function u(w) {
|
|
33243
|
+
return w >= i.UPPER_A && w <= i.UPPER_F || w >= i.LOWER_A && w <= i.LOWER_F;
|
|
33244
33244
|
}
|
|
33245
|
-
function l(
|
|
33246
|
-
return
|
|
33245
|
+
function l(w) {
|
|
33246
|
+
return w >= i.UPPER_A && w <= i.UPPER_Z || w >= i.LOWER_A && w <= i.LOWER_Z || o(w);
|
|
33247
33247
|
}
|
|
33248
|
-
function c(
|
|
33249
|
-
return
|
|
33248
|
+
function c(w) {
|
|
33249
|
+
return w === i.EQUALS || l(w);
|
|
33250
33250
|
}
|
|
33251
33251
|
var f;
|
|
33252
|
-
(function(
|
|
33253
|
-
|
|
33252
|
+
(function(w) {
|
|
33253
|
+
w[w.EntityStart = 0] = "EntityStart", w[w.NumericStart = 1] = "NumericStart", w[w.NumericDecimal = 2] = "NumericDecimal", w[w.NumericHex = 3] = "NumericHex", w[w.NamedEntity = 4] = "NamedEntity";
|
|
33254
33254
|
})(f || (f = {}));
|
|
33255
33255
|
var h;
|
|
33256
|
-
(function(
|
|
33257
|
-
|
|
33256
|
+
(function(w) {
|
|
33257
|
+
w[w.Legacy = 0] = "Legacy", w[w.Strict = 1] = "Strict", w[w.Attribute = 2] = "Attribute";
|
|
33258
33258
|
})(h || (e.DecodingMode = h = {}));
|
|
33259
33259
|
class g {
|
|
33260
33260
|
constructor(x, U, O) {
|
|
@@ -33460,9 +33460,9 @@ var sd;
|
|
|
33460
33460
|
}
|
|
33461
33461
|
}
|
|
33462
33462
|
e.EntityDecoder = g;
|
|
33463
|
-
function p(
|
|
33463
|
+
function p(w) {
|
|
33464
33464
|
let x = "";
|
|
33465
|
-
const U = new g(
|
|
33465
|
+
const U = new g(w, (O) => x += (0, t.fromCodePoint)(O));
|
|
33466
33466
|
return function(S, C) {
|
|
33467
33467
|
let B = 0, G = 0;
|
|
33468
33468
|
for (; (G = S.indexOf("&", G)) >= 0; ) {
|
|
@@ -33482,39 +33482,39 @@ var sd;
|
|
|
33482
33482
|
return x = "", $;
|
|
33483
33483
|
};
|
|
33484
33484
|
}
|
|
33485
|
-
function m(
|
|
33485
|
+
function m(w, x, U, O) {
|
|
33486
33486
|
const S = (x & r.BinTrieFlags.BRANCH_LENGTH) >> 7, C = x & r.BinTrieFlags.JUMP_TABLE;
|
|
33487
33487
|
if (S === 0)
|
|
33488
33488
|
return C !== 0 && O === C ? U : -1;
|
|
33489
33489
|
if (C) {
|
|
33490
33490
|
const K = O - C;
|
|
33491
|
-
return K < 0 || K >= S ? -1 :
|
|
33491
|
+
return K < 0 || K >= S ? -1 : w[U + K] - 1;
|
|
33492
33492
|
}
|
|
33493
33493
|
const B = S + 1 >> 1;
|
|
33494
33494
|
let G = 0, $ = S - 1;
|
|
33495
33495
|
for (; G <= $; ) {
|
|
33496
|
-
const K = G + $ >>> 1, de = K >> 1, me =
|
|
33496
|
+
const K = G + $ >>> 1, de = K >> 1, me = w[U + de] >> (K & 1) * 8 & 255;
|
|
33497
33497
|
if (me < O)
|
|
33498
33498
|
G = K + 1;
|
|
33499
33499
|
else if (me > O)
|
|
33500
33500
|
$ = K - 1;
|
|
33501
33501
|
else
|
|
33502
|
-
return
|
|
33502
|
+
return w[U + B + K];
|
|
33503
33503
|
}
|
|
33504
33504
|
return -1;
|
|
33505
33505
|
}
|
|
33506
33506
|
const A = /* @__PURE__ */ p(n.htmlDecodeTree), y = /* @__PURE__ */ p(a.xmlDecodeTree);
|
|
33507
|
-
function I(
|
|
33508
|
-
return A(
|
|
33507
|
+
function I(w, x = h.Legacy) {
|
|
33508
|
+
return A(w, x);
|
|
33509
33509
|
}
|
|
33510
|
-
function N(
|
|
33511
|
-
return A(
|
|
33510
|
+
function N(w) {
|
|
33511
|
+
return A(w, h.Attribute);
|
|
33512
33512
|
}
|
|
33513
|
-
function T(
|
|
33514
|
-
return A(
|
|
33513
|
+
function T(w) {
|
|
33514
|
+
return A(w, h.Strict);
|
|
33515
33515
|
}
|
|
33516
|
-
function w
|
|
33517
|
-
return y(
|
|
33516
|
+
function k(w) {
|
|
33517
|
+
return y(w, h.Strict);
|
|
33518
33518
|
}
|
|
33519
33519
|
var M = _u;
|
|
33520
33520
|
Object.defineProperty(e, "decodeCodePoint", { enumerable: !0, get: function() {
|
|
@@ -33870,7 +33870,7 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
|
|
|
33870
33870
|
m = m || {};
|
|
33871
33871
|
var A = jn.parseCSS(p), y = [], I = "style", N = {}, T = m.removeInlinedSelectors ? /* @__PURE__ */ new Set() : null;
|
|
33872
33872
|
m.styleAttributeName && (I = m.styleAttributeName);
|
|
33873
|
-
function
|
|
33873
|
+
function k(S) {
|
|
33874
33874
|
var C = S[0], B = S[1], G = new jn.Selector(C), $ = G.parsed();
|
|
33875
33875
|
if ($) {
|
|
33876
33876
|
for (var K = s($), de = 0; de < $.length; ++de) {
|
|
@@ -33994,7 +33994,7 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
|
|
|
33994
33994
|
}
|
|
33995
33995
|
}
|
|
33996
33996
|
}
|
|
33997
|
-
function
|
|
33997
|
+
function w(S) {
|
|
33998
33998
|
return S.indexOf("url(") !== 0 ? S : S.replace(/^url\((["'])?([^"']+)\1\)$/, "$2");
|
|
33999
33999
|
}
|
|
34000
34000
|
function x(S) {
|
|
@@ -34004,14 +34004,14 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
|
|
|
34004
34004
|
for (var G in S.styleProps)
|
|
34005
34005
|
if (B.indexOf(S.styleProps[G].prop) > -1) {
|
|
34006
34006
|
var $ = t.styleToAttribute[S.styleProps[G].prop], K = S.styleProps[G].value;
|
|
34007
|
-
if (m.preserveImportant && (K = a(K)), $ === "background" && (K =
|
|
34007
|
+
if (m.preserveImportant && (K = a(K)), $ === "background" && (K = w(K)), /(linear|radial)-gradient\(/i.test(K))
|
|
34008
34008
|
continue;
|
|
34009
34009
|
g(S).attr($, K);
|
|
34010
34010
|
}
|
|
34011
34011
|
}
|
|
34012
34012
|
}
|
|
34013
34013
|
}
|
|
34014
|
-
if (A.forEach(
|
|
34014
|
+
if (A.forEach(k), y.forEach(M), m.inlinePseudoElements && y.forEach(L), m.applyWidthAttributes && y.forEach(function(S) {
|
|
34015
34015
|
H(S, "width");
|
|
34016
34016
|
}), m.applyHeightAttributes && y.forEach(function(S) {
|
|
34017
34017
|
H(S, "height");
|
|
@@ -34061,8 +34061,8 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
|
|
|
34061
34061
|
if (I[N] !== "") {
|
|
34062
34062
|
var T = I[N].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);
|
|
34063
34063
|
if (T) {
|
|
34064
|
-
var
|
|
34065
|
-
y.push(
|
|
34064
|
+
var k = od.findVariableValue(g, T[1]) || T[2];
|
|
34065
|
+
y.push(k.replace(/^['"]|['"]$/g, ""));
|
|
34066
34066
|
continue;
|
|
34067
34067
|
}
|
|
34068
34068
|
var M = I[N].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);
|
|
@@ -34073,9 +34073,9 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
|
|
|
34073
34073
|
}
|
|
34074
34074
|
var H = I[N].match(/attr\s*\(\s*(.*?)\s*\)/i);
|
|
34075
34075
|
if (H) {
|
|
34076
|
-
var
|
|
34076
|
+
var w = H[1];
|
|
34077
34077
|
y.push(
|
|
34078
|
-
g.pseudoElementParent ? g.pseudoElementParent.attribs[
|
|
34078
|
+
g.pseudoElementParent ? g.pseudoElementParent.attribs[w] : g.attribs[w]
|
|
34079
34079
|
);
|
|
34080
34080
|
continue;
|
|
34081
34081
|
}
|
|
@@ -34118,13 +34118,13 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
|
|
|
34118
34118
|
y.each(function() {
|
|
34119
34119
|
var I = this, N = I.childNodes;
|
|
34120
34120
|
if (N.length === 1 && !(A && A.has(I))) {
|
|
34121
|
-
var T = N[0].nodeValue,
|
|
34121
|
+
var T = N[0].nodeValue, k = jn.removeInlinedSelectorsFromCSS(
|
|
34122
34122
|
T,
|
|
34123
34123
|
p,
|
|
34124
34124
|
m,
|
|
34125
34125
|
t.ignoredPseudos
|
|
34126
34126
|
);
|
|
34127
|
-
|
|
34127
|
+
k && k.trim() ? I.childNodes[0].nodeValue = k : g(I).remove();
|
|
34128
34128
|
}
|
|
34129
34129
|
});
|
|
34130
34130
|
}
|
|
@@ -34136,14 +34136,14 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
|
|
|
34136
34136
|
return;
|
|
34137
34137
|
}
|
|
34138
34138
|
if (I = y[0].data, p.applyStyleTags && g(N).attr("data-embed") === void 0 && m.push(I), p.removeStyleTags && g(N).attr("data-embed") === void 0) {
|
|
34139
|
-
var T = N.childNodes[0].nodeValue,
|
|
34139
|
+
var T = N.childNodes[0].nodeValue, k = jn.getPreservedText(T, {
|
|
34140
34140
|
mediaQueries: p.preserveMediaQueries,
|
|
34141
34141
|
fontFaces: p.preserveFontFaces,
|
|
34142
34142
|
keyFrames: p.preserveKeyFrames,
|
|
34143
34143
|
pseudos: p.preservePseudos,
|
|
34144
34144
|
preservedSelectors: p.preservedSelectors
|
|
34145
34145
|
}, t.ignoredPseudos);
|
|
34146
|
-
|
|
34146
|
+
k ? N.childNodes[0].nodeValue = k : g(N).remove();
|
|
34147
34147
|
}
|
|
34148
34148
|
g(N).removeAttr("data-embed");
|
|
34149
34149
|
}), m;
|
|
@@ -34312,18 +34312,18 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34312
34312
|
p && clearTimeout(p);
|
|
34313
34313
|
}, N = (S) => {
|
|
34314
34314
|
a("select", `template:${S.id}`), c.value = !1;
|
|
34315
|
-
}, T = Q(!1),
|
|
34315
|
+
}, T = Q(!1), k = Q(""), M = Q({ top: "0px", left: "0px" });
|
|
34316
34316
|
let L = null;
|
|
34317
34317
|
const H = (S, C) => {
|
|
34318
34318
|
L && clearTimeout(L);
|
|
34319
34319
|
const G = S.currentTarget.getBoundingClientRect();
|
|
34320
34320
|
L = setTimeout(() => {
|
|
34321
|
-
|
|
34321
|
+
k.value = C, M.value = {
|
|
34322
34322
|
left: `${G.left + G.width / 2}px`,
|
|
34323
34323
|
top: `${G.bottom + 8}px`
|
|
34324
34324
|
}, T.value = !0;
|
|
34325
34325
|
}, 200);
|
|
34326
|
-
},
|
|
34326
|
+
}, w = () => {
|
|
34327
34327
|
L && clearTimeout(L), T.value = !1;
|
|
34328
34328
|
}, x = Q(0);
|
|
34329
34329
|
return t({ onKeyDown: ({ event: S }) => !1, resetSelection: () => {
|
|
@@ -34338,7 +34338,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34338
34338
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "paragraph" }]),
|
|
34339
34339
|
onClick: C[0] || (C[0] = (B) => S.$emit("select", "paragraph")),
|
|
34340
34340
|
onMouseenter: C[1] || (C[1] = (B) => H(B, "正文")),
|
|
34341
|
-
onMouseleave:
|
|
34341
|
+
onMouseleave: w
|
|
34342
34342
|
}, [
|
|
34343
34343
|
j(P(Ma), { size: 16 })
|
|
34344
34344
|
], 34),
|
|
@@ -34346,7 +34346,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34346
34346
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "heading1" }]),
|
|
34347
34347
|
onClick: C[2] || (C[2] = (B) => S.$emit("select", "heading1")),
|
|
34348
34348
|
onMouseenter: C[3] || (C[3] = (B) => H(B, "标题 1")),
|
|
34349
|
-
onMouseleave:
|
|
34349
|
+
onMouseleave: w
|
|
34350
34350
|
}, [...C[28] || (C[28] = [
|
|
34351
34351
|
b("span", { class: "heading-text" }, "H1", -1)
|
|
34352
34352
|
])], 34),
|
|
@@ -34354,7 +34354,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34354
34354
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "heading2" }]),
|
|
34355
34355
|
onClick: C[4] || (C[4] = (B) => S.$emit("select", "heading2")),
|
|
34356
34356
|
onMouseenter: C[5] || (C[5] = (B) => H(B, "标题 2")),
|
|
34357
|
-
onMouseleave:
|
|
34357
|
+
onMouseleave: w
|
|
34358
34358
|
}, [...C[29] || (C[29] = [
|
|
34359
34359
|
b("span", { class: "heading-text" }, "H2", -1)
|
|
34360
34360
|
])], 34),
|
|
@@ -34362,7 +34362,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34362
34362
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "heading3" }]),
|
|
34363
34363
|
onClick: C[6] || (C[6] = (B) => S.$emit("select", "heading3")),
|
|
34364
34364
|
onMouseenter: C[7] || (C[7] = (B) => H(B, "标题 3")),
|
|
34365
|
-
onMouseleave:
|
|
34365
|
+
onMouseleave: w
|
|
34366
34366
|
}, [...C[30] || (C[30] = [
|
|
34367
34367
|
b("span", { class: "heading-text" }, "H3", -1)
|
|
34368
34368
|
])], 34),
|
|
@@ -34370,7 +34370,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34370
34370
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "bulletList" }]),
|
|
34371
34371
|
onClick: C[8] || (C[8] = (B) => S.$emit("select", "bulletList")),
|
|
34372
34372
|
onMouseenter: C[9] || (C[9] = (B) => H(B, "无序列表")),
|
|
34373
|
-
onMouseleave:
|
|
34373
|
+
onMouseleave: w
|
|
34374
34374
|
}, [
|
|
34375
34375
|
j(P(ml), { size: 16 })
|
|
34376
34376
|
], 34),
|
|
@@ -34378,7 +34378,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34378
34378
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "orderedList" }]),
|
|
34379
34379
|
onClick: C[10] || (C[10] = (B) => S.$emit("select", "orderedList")),
|
|
34380
34380
|
onMouseenter: C[11] || (C[11] = (B) => H(B, "有序列表")),
|
|
34381
|
-
onMouseleave:
|
|
34381
|
+
onMouseleave: w
|
|
34382
34382
|
}, [
|
|
34383
34383
|
j(P(pl), { size: 16 })
|
|
34384
34384
|
], 34),
|
|
@@ -34386,7 +34386,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34386
34386
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "taskList" }]),
|
|
34387
34387
|
onClick: C[12] || (C[12] = (B) => S.$emit("select", "taskList")),
|
|
34388
34388
|
onMouseenter: C[13] || (C[13] = (B) => H(B, "任务列表")),
|
|
34389
|
-
onMouseleave:
|
|
34389
|
+
onMouseleave: w
|
|
34390
34390
|
}, [
|
|
34391
34391
|
j(P(t1), { size: 16 })
|
|
34392
34392
|
], 34),
|
|
@@ -34394,7 +34394,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34394
34394
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "blockquote" }]),
|
|
34395
34395
|
onClick: C[14] || (C[14] = (B) => S.$emit("select", "blockquote")),
|
|
34396
34396
|
onMouseenter: C[15] || (C[15] = (B) => H(B, "引用")),
|
|
34397
|
-
onMouseleave:
|
|
34397
|
+
onMouseleave: w
|
|
34398
34398
|
}, [
|
|
34399
34399
|
j(P(a1), { size: 16 })
|
|
34400
34400
|
], 34),
|
|
@@ -34402,7 +34402,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34402
34402
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "codeBlock" }]),
|
|
34403
34403
|
onClick: C[16] || (C[16] = (B) => S.$emit("select", "codeBlock")),
|
|
34404
34404
|
onMouseenter: C[17] || (C[17] = (B) => H(B, "代码块")),
|
|
34405
|
-
onMouseleave:
|
|
34405
|
+
onMouseleave: w
|
|
34406
34406
|
}, [
|
|
34407
34407
|
j(P(oA), { size: 16 })
|
|
34408
34408
|
], 34),
|
|
@@ -34410,7 +34410,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34410
34410
|
class: X(["toolbar-item", { "is-active": e.currentBlockType === "linkCardInline" }]),
|
|
34411
34411
|
onClick: C[18] || (C[18] = (B) => S.$emit("select", "linkCardInline")),
|
|
34412
34412
|
onMouseenter: C[19] || (C[19] = (B) => H(B, "链接")),
|
|
34413
|
-
onMouseleave:
|
|
34413
|
+
onMouseleave: w
|
|
34414
34414
|
}, [
|
|
34415
34415
|
j(P(DA), { size: 16 })
|
|
34416
34416
|
], 34)
|
|
@@ -34530,7 +34530,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
|
|
|
34530
34530
|
key: 0,
|
|
34531
34531
|
class: "block-menu-tooltip",
|
|
34532
34532
|
style: Ft(M.value)
|
|
34533
|
-
}, Ae(
|
|
34533
|
+
}, Ae(k.value), 5)) : ae("", !0)
|
|
34534
34534
|
]))
|
|
34535
34535
|
], 2));
|
|
34536
34536
|
}
|
|
@@ -34581,8 +34581,8 @@ const aC = {
|
|
|
34581
34581
|
const n = e, a = t, r = Q(null), { insertTemplateAtNode: i } = rg(), s = Q(!1), o = Q(""), u = Q(null), l = () => {
|
|
34582
34582
|
s.value = !1, o.value = "";
|
|
34583
34583
|
};
|
|
34584
|
-
it(() => n.show, (
|
|
34585
|
-
|
|
34584
|
+
it(() => n.show, (w) => {
|
|
34585
|
+
w ? yt(() => {
|
|
34586
34586
|
var x, U;
|
|
34587
34587
|
(U = (x = r.value) == null ? void 0 : x.loadTemplates) == null || U.call(x);
|
|
34588
34588
|
}) : l();
|
|
@@ -34593,13 +34593,13 @@ const aC = {
|
|
|
34593
34593
|
l();
|
|
34594
34594
|
}, h = () => {
|
|
34595
34595
|
if (!n.editor || n.currentNodePos === void 0 || !o.value.trim()) return;
|
|
34596
|
-
const
|
|
34596
|
+
const w = o.value.trim(), x = `ai-img-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
34597
34597
|
if (m.value) {
|
|
34598
34598
|
const U = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34599
34599
|
U && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + U.nodeSize }).insertContent({
|
|
34600
34600
|
type: "aiImageLoader",
|
|
34601
34601
|
attrs: {
|
|
34602
|
-
prompt:
|
|
34602
|
+
prompt: w,
|
|
34603
34603
|
loaderId: x,
|
|
34604
34604
|
status: "generating"
|
|
34605
34605
|
}
|
|
@@ -34611,7 +34611,7 @@ const aC = {
|
|
|
34611
34611
|
n.editor.chain().focus().insertContentAt(O, {
|
|
34612
34612
|
type: "aiImageLoader",
|
|
34613
34613
|
attrs: {
|
|
34614
|
-
prompt:
|
|
34614
|
+
prompt: w,
|
|
34615
34615
|
loaderId: x,
|
|
34616
34616
|
status: "generating"
|
|
34617
34617
|
}
|
|
@@ -34619,15 +34619,15 @@ const aC = {
|
|
|
34619
34619
|
}
|
|
34620
34620
|
}
|
|
34621
34621
|
c();
|
|
34622
|
-
}, g = (
|
|
34623
|
-
|
|
34622
|
+
}, g = (w) => {
|
|
34623
|
+
w.key === "Enter" && !w.shiftKey ? (w.preventDefault(), h()) : w.key === "Escape" && (w.preventDefault(), f());
|
|
34624
34624
|
}, p = te(() => {
|
|
34625
34625
|
if (!n.editor || n.currentNodePos === void 0) return;
|
|
34626
|
-
const
|
|
34627
|
-
if (!
|
|
34628
|
-
const x =
|
|
34626
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34627
|
+
if (!w) return;
|
|
34628
|
+
const x = w.type.name;
|
|
34629
34629
|
if (x === "heading")
|
|
34630
|
-
return `heading${
|
|
34630
|
+
return `heading${w.attrs.level}`;
|
|
34631
34631
|
if (x === "codeBlock")
|
|
34632
34632
|
return "codeBlock";
|
|
34633
34633
|
const U = n.editor.state.doc.resolve(n.currentNodePos);
|
|
@@ -34644,16 +34644,16 @@ const aC = {
|
|
|
34644
34644
|
return "paragraph";
|
|
34645
34645
|
}), m = te(() => {
|
|
34646
34646
|
if (!n.editor || n.currentNodePos === void 0) return !1;
|
|
34647
|
-
const
|
|
34648
|
-
return
|
|
34649
|
-
}), A = async (
|
|
34647
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34648
|
+
return w && w.type.name === "paragraph" && (w.content.size === 0 || w.textContent.length === 0);
|
|
34649
|
+
}), A = async (w) => {
|
|
34650
34650
|
if (!n.editor || n.currentNodePos === void 0) return;
|
|
34651
|
-
if (
|
|
34652
|
-
const $ =
|
|
34651
|
+
if (w.startsWith("template:")) {
|
|
34652
|
+
const $ = w.replace("template:", "");
|
|
34653
34653
|
await i(n.editor, $, n.currentNodePos, m.value), c();
|
|
34654
34654
|
return;
|
|
34655
34655
|
}
|
|
34656
|
-
if (
|
|
34656
|
+
if (w === "aiImage") {
|
|
34657
34657
|
if (m.value) {
|
|
34658
34658
|
const $ = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34659
34659
|
$ && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + $.nodeSize }).insertContent({
|
|
@@ -34683,7 +34683,7 @@ const aC = {
|
|
|
34683
34683
|
convertToBlockquote: B,
|
|
34684
34684
|
convertToCodeBlock: G
|
|
34685
34685
|
} = i1(n.editor);
|
|
34686
|
-
switch (
|
|
34686
|
+
switch (w) {
|
|
34687
34687
|
case "paragraph":
|
|
34688
34688
|
x(), c();
|
|
34689
34689
|
break;
|
|
@@ -34727,7 +34727,7 @@ const aC = {
|
|
|
34727
34727
|
T();
|
|
34728
34728
|
break;
|
|
34729
34729
|
case "imageUpload":
|
|
34730
|
-
|
|
34730
|
+
k();
|
|
34731
34731
|
break;
|
|
34732
34732
|
case "videoUpload":
|
|
34733
34733
|
M();
|
|
@@ -34739,12 +34739,12 @@ const aC = {
|
|
|
34739
34739
|
}, y = () => {
|
|
34740
34740
|
if (!(!n.editor || n.currentNodePos === void 0)) {
|
|
34741
34741
|
if (m.value) {
|
|
34742
|
-
const
|
|
34743
|
-
|
|
34742
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34743
|
+
w && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + w.nodeSize }).insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
|
|
34744
34744
|
} else {
|
|
34745
|
-
const
|
|
34746
|
-
if (
|
|
34747
|
-
const x = n.currentNodePos +
|
|
34745
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34746
|
+
if (w) {
|
|
34747
|
+
const x = n.currentNodePos + w.nodeSize;
|
|
34748
34748
|
n.editor.chain().focus().setTextSelection(x).insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
|
|
34749
34749
|
}
|
|
34750
34750
|
}
|
|
@@ -34753,16 +34753,16 @@ const aC = {
|
|
|
34753
34753
|
}, I = () => {
|
|
34754
34754
|
if (!(!n.editor || n.currentNodePos === void 0)) {
|
|
34755
34755
|
if (m.value) {
|
|
34756
|
-
const
|
|
34757
|
-
|
|
34756
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34757
|
+
w && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + w.nodeSize }).insertContent({
|
|
34758
34758
|
type: "colorBlock",
|
|
34759
34759
|
attrs: { color: "cyan" },
|
|
34760
34760
|
content: [{ type: "paragraph" }]
|
|
34761
34761
|
}).run();
|
|
34762
34762
|
} else {
|
|
34763
|
-
const
|
|
34764
|
-
if (
|
|
34765
|
-
const x = n.currentNodePos +
|
|
34763
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34764
|
+
if (w) {
|
|
34765
|
+
const x = n.currentNodePos + w.nodeSize;
|
|
34766
34766
|
n.editor.chain().focus().insertContentAt(x, {
|
|
34767
34767
|
type: "colorBlock",
|
|
34768
34768
|
attrs: { color: "cyan" },
|
|
@@ -34775,8 +34775,8 @@ const aC = {
|
|
|
34775
34775
|
}, N = () => {
|
|
34776
34776
|
if (!(!n.editor || n.currentNodePos === void 0)) {
|
|
34777
34777
|
if (m.value) {
|
|
34778
|
-
const
|
|
34779
|
-
|
|
34778
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34779
|
+
w && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + w.nodeSize }).insertContent({
|
|
34780
34780
|
type: "paragraph",
|
|
34781
34781
|
content: [
|
|
34782
34782
|
{ type: "linkCardInline", attrs: { url: "", title: "" } },
|
|
@@ -34784,9 +34784,9 @@ const aC = {
|
|
|
34784
34784
|
]
|
|
34785
34785
|
}).run();
|
|
34786
34786
|
} else {
|
|
34787
|
-
const
|
|
34788
|
-
if (
|
|
34789
|
-
const x = n.currentNodePos +
|
|
34787
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34788
|
+
if (w) {
|
|
34789
|
+
const x = n.currentNodePos + w.nodeSize;
|
|
34790
34790
|
n.editor.chain().focus().insertContentAt(x, {
|
|
34791
34791
|
type: "paragraph",
|
|
34792
34792
|
content: [
|
|
@@ -34801,15 +34801,15 @@ const aC = {
|
|
|
34801
34801
|
}, T = () => {
|
|
34802
34802
|
if (!(!n.editor || n.currentNodePos === void 0)) {
|
|
34803
34803
|
if (m.value) {
|
|
34804
|
-
const
|
|
34805
|
-
|
|
34804
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34805
|
+
w && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + w.nodeSize }).insertContent({
|
|
34806
34806
|
type: "videoEmbed",
|
|
34807
34807
|
attrs: { url: "", platform: "unknown", videoId: "" }
|
|
34808
34808
|
}).run();
|
|
34809
34809
|
} else {
|
|
34810
|
-
const
|
|
34811
|
-
if (
|
|
34812
|
-
const x = n.currentNodePos +
|
|
34810
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34811
|
+
if (w) {
|
|
34812
|
+
const x = n.currentNodePos + w.nodeSize;
|
|
34813
34813
|
n.editor.chain().focus().insertContentAt(x, {
|
|
34814
34814
|
type: "videoEmbed",
|
|
34815
34815
|
attrs: { url: "", platform: "unknown", videoId: "" }
|
|
@@ -34818,7 +34818,7 @@ const aC = {
|
|
|
34818
34818
|
}
|
|
34819
34819
|
c();
|
|
34820
34820
|
}
|
|
34821
|
-
},
|
|
34821
|
+
}, k = () => {
|
|
34822
34822
|
c(), window.dispatchEvent(new CustomEvent("editor-trigger-image-upload"));
|
|
34823
34823
|
}, M = () => {
|
|
34824
34824
|
c(), window.dispatchEvent(new CustomEvent("editor-trigger-video-upload"));
|
|
@@ -34827,14 +34827,14 @@ const aC = {
|
|
|
34827
34827
|
}, H = () => {
|
|
34828
34828
|
if (!(!n.editor || n.currentNodePos === void 0)) {
|
|
34829
34829
|
if (m.value) {
|
|
34830
|
-
const
|
|
34831
|
-
|
|
34830
|
+
const w = n.editor.state.doc.nodeAt(n.currentNodePos);
|
|
34831
|
+
w && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + w.nodeSize }).setHorizontalRule().run();
|
|
34832
34832
|
} else
|
|
34833
34833
|
n.editor.chain().focus().setHorizontalRule().run();
|
|
34834
34834
|
c();
|
|
34835
34835
|
}
|
|
34836
34836
|
};
|
|
34837
|
-
return (
|
|
34837
|
+
return (w, x) => e.show ? (D(), F("div", aC, [
|
|
34838
34838
|
b("div", {
|
|
34839
34839
|
class: "menu-overlay",
|
|
34840
34840
|
onClick: c
|
|
@@ -35388,7 +35388,7 @@ function lg(e) {
|
|
|
35388
35388
|
"self"
|
|
35389
35389
|
].concat(N)
|
|
35390
35390
|
});
|
|
35391
|
-
const T = [].concat(I, h.contains),
|
|
35391
|
+
const T = [].concat(I, h.contains), k = T.concat([
|
|
35392
35392
|
// eat recursive parens in sub expressions
|
|
35393
35393
|
{
|
|
35394
35394
|
begin: /(\s*)\(/,
|
|
@@ -35405,7 +35405,7 @@ function lg(e) {
|
|
|
35405
35405
|
excludeBegin: !0,
|
|
35406
35406
|
excludeEnd: !0,
|
|
35407
35407
|
keywords: o,
|
|
35408
|
-
contains:
|
|
35408
|
+
contains: k
|
|
35409
35409
|
}, L = {
|
|
35410
35410
|
variants: [
|
|
35411
35411
|
// class Car extends vehicle
|
|
@@ -35463,7 +35463,7 @@ function lg(e) {
|
|
|
35463
35463
|
...og
|
|
35464
35464
|
]
|
|
35465
35465
|
}
|
|
35466
|
-
},
|
|
35466
|
+
}, w = {
|
|
35467
35467
|
label: "use_strict",
|
|
35468
35468
|
className: "meta",
|
|
35469
35469
|
relevance: 10,
|
|
@@ -35566,7 +35566,7 @@ function lg(e) {
|
|
|
35566
35566
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
35567
35567
|
keywords: o,
|
|
35568
35568
|
// this will be extended by TypeScript
|
|
35569
|
-
exports: { PARAMS_CONTAINS:
|
|
35569
|
+
exports: { PARAMS_CONTAINS: k, CLASS_REFERENCE: H },
|
|
35570
35570
|
illegal: /#(?![$_A-z])/,
|
|
35571
35571
|
contains: [
|
|
35572
35572
|
e.SHEBANG({
|
|
@@ -35574,7 +35574,7 @@ function lg(e) {
|
|
|
35574
35574
|
binary: "node",
|
|
35575
35575
|
relevance: 5
|
|
35576
35576
|
}),
|
|
35577
|
-
|
|
35577
|
+
w,
|
|
35578
35578
|
e.APOS_STRING_MODE,
|
|
35579
35579
|
e.QUOTE_STRING_MODE,
|
|
35580
35580
|
g,
|
|
@@ -35627,7 +35627,7 @@ function lg(e) {
|
|
|
35627
35627
|
excludeBegin: !0,
|
|
35628
35628
|
excludeEnd: !0,
|
|
35629
35629
|
keywords: o,
|
|
35630
|
-
contains:
|
|
35630
|
+
contains: k
|
|
35631
35631
|
}
|
|
35632
35632
|
]
|
|
35633
35633
|
}
|
|
@@ -36043,7 +36043,7 @@ function NC(e) {
|
|
|
36043
36043
|
"self"
|
|
36044
36044
|
].concat(N)
|
|
36045
36045
|
});
|
|
36046
|
-
const T = [].concat(I, h.contains),
|
|
36046
|
+
const T = [].concat(I, h.contains), k = T.concat([
|
|
36047
36047
|
// eat recursive parens in sub expressions
|
|
36048
36048
|
{
|
|
36049
36049
|
begin: /(\s*)\(/,
|
|
@@ -36060,7 +36060,7 @@ function NC(e) {
|
|
|
36060
36060
|
excludeBegin: !0,
|
|
36061
36061
|
excludeEnd: !0,
|
|
36062
36062
|
keywords: o,
|
|
36063
|
-
contains:
|
|
36063
|
+
contains: k
|
|
36064
36064
|
}, L = {
|
|
36065
36065
|
variants: [
|
|
36066
36066
|
// class Car extends vehicle
|
|
@@ -36118,7 +36118,7 @@ function NC(e) {
|
|
|
36118
36118
|
...hg
|
|
36119
36119
|
]
|
|
36120
36120
|
}
|
|
36121
|
-
},
|
|
36121
|
+
}, w = {
|
|
36122
36122
|
label: "use_strict",
|
|
36123
36123
|
className: "meta",
|
|
36124
36124
|
relevance: 10,
|
|
@@ -36221,7 +36221,7 @@ function NC(e) {
|
|
|
36221
36221
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
36222
36222
|
keywords: o,
|
|
36223
36223
|
// this will be extended by TypeScript
|
|
36224
|
-
exports: { PARAMS_CONTAINS:
|
|
36224
|
+
exports: { PARAMS_CONTAINS: k, CLASS_REFERENCE: H },
|
|
36225
36225
|
illegal: /#(?![$_A-z])/,
|
|
36226
36226
|
contains: [
|
|
36227
36227
|
e.SHEBANG({
|
|
@@ -36229,7 +36229,7 @@ function NC(e) {
|
|
|
36229
36229
|
binary: "node",
|
|
36230
36230
|
relevance: 5
|
|
36231
36231
|
}),
|
|
36232
|
-
|
|
36232
|
+
w,
|
|
36233
36233
|
e.APOS_STRING_MODE,
|
|
36234
36234
|
e.QUOTE_STRING_MODE,
|
|
36235
36235
|
g,
|
|
@@ -36282,7 +36282,7 @@ function NC(e) {
|
|
|
36282
36282
|
excludeBegin: !0,
|
|
36283
36283
|
excludeEnd: !0,
|
|
36284
36284
|
keywords: o,
|
|
36285
|
-
contains:
|
|
36285
|
+
contains: k
|
|
36286
36286
|
}
|
|
36287
36287
|
]
|
|
36288
36288
|
}
|
|
@@ -37434,7 +37434,7 @@ function Eg(e) {
|
|
|
37434
37434
|
],
|
|
37435
37435
|
built_in: ["_Pragma"],
|
|
37436
37436
|
_type_hints: A
|
|
37437
|
-
},
|
|
37437
|
+
}, k = {
|
|
37438
37438
|
className: "function.dispatch",
|
|
37439
37439
|
relevance: 0,
|
|
37440
37440
|
keywords: {
|
|
@@ -37452,7 +37452,7 @@ function Eg(e) {
|
|
|
37452
37452
|
t.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
37453
37453
|
)
|
|
37454
37454
|
}, M = [
|
|
37455
|
-
|
|
37455
|
+
k,
|
|
37456
37456
|
f,
|
|
37457
37457
|
o,
|
|
37458
37458
|
n,
|
|
@@ -37582,7 +37582,7 @@ function Eg(e) {
|
|
|
37582
37582
|
contains: [].concat(
|
|
37583
37583
|
L,
|
|
37584
37584
|
H,
|
|
37585
|
-
|
|
37585
|
+
k,
|
|
37586
37586
|
M,
|
|
37587
37587
|
[
|
|
37588
37588
|
f,
|
|
@@ -38274,13 +38274,13 @@ function xC(e) {
|
|
|
38274
38274
|
}), B;
|
|
38275
38275
|
})(A),
|
|
38276
38276
|
built_in: I
|
|
38277
|
-
},
|
|
38277
|
+
}, k = (C) => C.map((B) => B.replace(/\|\d+$/, "")), M = { variants: [
|
|
38278
38278
|
{
|
|
38279
38279
|
match: [
|
|
38280
38280
|
/new/,
|
|
38281
38281
|
t.concat(g, "+"),
|
|
38282
38282
|
// to prevent built ins from being confused as the class constructor call
|
|
38283
|
-
t.concat("(?!",
|
|
38283
|
+
t.concat("(?!", k(I).join("\\b|"), "\\b)"),
|
|
38284
38284
|
r
|
|
38285
38285
|
],
|
|
38286
38286
|
scope: {
|
|
@@ -38341,7 +38341,7 @@ function xC(e) {
|
|
|
38341
38341
|
3: "variable.language"
|
|
38342
38342
|
}
|
|
38343
38343
|
}
|
|
38344
|
-
] },
|
|
38344
|
+
] }, w = {
|
|
38345
38345
|
scope: "attr",
|
|
38346
38346
|
match: t.concat(a, t.lookahead(":"), t.lookahead(/(?!::)/))
|
|
38347
38347
|
}, x = {
|
|
@@ -38350,7 +38350,7 @@ function xC(e) {
|
|
|
38350
38350
|
end: /\)/,
|
|
38351
38351
|
keywords: T,
|
|
38352
38352
|
contains: [
|
|
38353
|
-
|
|
38353
|
+
w,
|
|
38354
38354
|
s,
|
|
38355
38355
|
H,
|
|
38356
38356
|
e.C_BLOCK_COMMENT_MODE,
|
|
@@ -38363,7 +38363,7 @@ function xC(e) {
|
|
|
38363
38363
|
match: [
|
|
38364
38364
|
/\b/,
|
|
38365
38365
|
// to prevent keywords from being confused as the function title
|
|
38366
|
-
t.concat("(?!fn\\b|function\\b|",
|
|
38366
|
+
t.concat("(?!fn\\b|function\\b|", k(y).join("\\b|"), "|", k(I).join("\\b|"), "\\b)"),
|
|
38367
38367
|
a,
|
|
38368
38368
|
t.concat(g, "*"),
|
|
38369
38369
|
t.lookahead(/(?=\()/)
|
|
@@ -38373,7 +38373,7 @@ function xC(e) {
|
|
|
38373
38373
|
};
|
|
38374
38374
|
x.contains.push(U);
|
|
38375
38375
|
const O = [
|
|
38376
|
-
|
|
38376
|
+
w,
|
|
38377
38377
|
H,
|
|
38378
38378
|
e.C_BLOCK_COMMENT_MODE,
|
|
38379
38379
|
p,
|
|
@@ -39812,7 +39812,7 @@ function PC(e) {
|
|
|
39812
39812
|
{ match: Qe(/\\/, se, /[0\\tnr"']/) },
|
|
39813
39813
|
{ match: Qe(/\\/, se, /u\{[0-9a-fA-F]{1,8}\}/) }
|
|
39814
39814
|
]
|
|
39815
|
-
}),
|
|
39815
|
+
}), k = (se = "") => ({
|
|
39816
39816
|
className: "subst",
|
|
39817
39817
|
match: Qe(/\\/, se, /[\t ]*(?:[\r\n]|\r\n)/)
|
|
39818
39818
|
}), M = (se = "") => ({
|
|
@@ -39825,7 +39825,7 @@ function PC(e) {
|
|
|
39825
39825
|
end: Qe(/"""/, se),
|
|
39826
39826
|
contains: [
|
|
39827
39827
|
T(se),
|
|
39828
|
-
|
|
39828
|
+
k(se),
|
|
39829
39829
|
M(se)
|
|
39830
39830
|
]
|
|
39831
39831
|
}), H = (se = "") => ({
|
|
@@ -39835,7 +39835,7 @@ function PC(e) {
|
|
|
39835
39835
|
T(se),
|
|
39836
39836
|
M(se)
|
|
39837
39837
|
]
|
|
39838
|
-
}),
|
|
39838
|
+
}), w = {
|
|
39839
39839
|
className: "string",
|
|
39840
39840
|
variants: [
|
|
39841
39841
|
L(),
|
|
@@ -39902,7 +39902,7 @@ function PC(e) {
|
|
|
39902
39902
|
contains: [
|
|
39903
39903
|
...A,
|
|
39904
39904
|
N,
|
|
39905
|
-
|
|
39905
|
+
w
|
|
39906
39906
|
]
|
|
39907
39907
|
}
|
|
39908
39908
|
] }
|
|
@@ -39978,7 +39978,7 @@ function PC(e) {
|
|
|
39978
39978
|
...g,
|
|
39979
39979
|
...A,
|
|
39980
39980
|
N,
|
|
39981
|
-
|
|
39981
|
+
w,
|
|
39982
39982
|
...$,
|
|
39983
39983
|
...me,
|
|
39984
39984
|
ge
|
|
@@ -40018,7 +40018,7 @@ function PC(e) {
|
|
|
40018
40018
|
...c,
|
|
40019
40019
|
...A,
|
|
40020
40020
|
N,
|
|
40021
|
-
|
|
40021
|
+
w,
|
|
40022
40022
|
...me,
|
|
40023
40023
|
ge,
|
|
40024
40024
|
lt
|
|
@@ -40135,7 +40135,7 @@ function PC(e) {
|
|
|
40135
40135
|
}
|
|
40136
40136
|
]
|
|
40137
40137
|
};
|
|
40138
|
-
for (const se of
|
|
40138
|
+
for (const se of w.variants) {
|
|
40139
40139
|
const Je = se.contains.find((Ue) => Ue.label === "interpol");
|
|
40140
40140
|
Je.keywords = l;
|
|
40141
40141
|
const re = [
|
|
@@ -40143,7 +40143,7 @@ function PC(e) {
|
|
|
40143
40143
|
...g,
|
|
40144
40144
|
...A,
|
|
40145
40145
|
N,
|
|
40146
|
-
|
|
40146
|
+
w,
|
|
40147
40147
|
...$
|
|
40148
40148
|
];
|
|
40149
40149
|
Je.contains = [
|
|
@@ -40181,7 +40181,7 @@ function PC(e) {
|
|
|
40181
40181
|
...g,
|
|
40182
40182
|
...A,
|
|
40183
40183
|
N,
|
|
40184
|
-
|
|
40184
|
+
w,
|
|
40185
40185
|
...$,
|
|
40186
40186
|
...me,
|
|
40187
40187
|
ge,
|
|
@@ -40980,7 +40980,7 @@ function FC(e) {
|
|
|
40980
40980
|
], g = c, p = [
|
|
40981
40981
|
...l,
|
|
40982
40982
|
...u
|
|
40983
|
-
].filter((
|
|
40983
|
+
].filter((k) => !c.includes(k)), m = {
|
|
40984
40984
|
scope: "variable",
|
|
40985
40985
|
match: /@[a-z0-9][a-z0-9_]*/
|
|
40986
40986
|
}, A = {
|
|
@@ -40992,10 +40992,10 @@ function FC(e) {
|
|
|
40992
40992
|
relevance: 0,
|
|
40993
40993
|
keywords: { built_in: g }
|
|
40994
40994
|
};
|
|
40995
|
-
function I(
|
|
40995
|
+
function I(k) {
|
|
40996
40996
|
return t.concat(
|
|
40997
40997
|
/\b/,
|
|
40998
|
-
t.either(...
|
|
40998
|
+
t.either(...k.map((M) => M.replace(/\s+/, "\\s+"))),
|
|
40999
40999
|
/\b/
|
|
41000
41000
|
);
|
|
41001
41001
|
}
|
|
@@ -41004,12 +41004,12 @@ function FC(e) {
|
|
|
41004
41004
|
match: I(h),
|
|
41005
41005
|
relevance: 0
|
|
41006
41006
|
};
|
|
41007
|
-
function T(
|
|
41007
|
+
function T(k, {
|
|
41008
41008
|
exceptions: M,
|
|
41009
41009
|
when: L
|
|
41010
41010
|
} = {}) {
|
|
41011
41011
|
const H = L;
|
|
41012
|
-
return M = M || [],
|
|
41012
|
+
return M = M || [], k.map((w) => w.match(/\|\d+$/) || M.includes(w) ? w : H(w) ? `${w}|0` : w);
|
|
41013
41013
|
}
|
|
41014
41014
|
return {
|
|
41015
41015
|
name: "SQL",
|
|
@@ -41018,7 +41018,7 @@ function FC(e) {
|
|
|
41018
41018
|
illegal: /[{}]|<\//,
|
|
41019
41019
|
keywords: {
|
|
41020
41020
|
$pattern: /\b[\w\.]+/,
|
|
41021
|
-
keyword: T(p, { when: (
|
|
41021
|
+
keyword: T(p, { when: (k) => k.length < 3 }),
|
|
41022
41022
|
literal: i,
|
|
41023
41023
|
type: o,
|
|
41024
41024
|
built_in: f
|
|
@@ -41271,7 +41271,7 @@ function Mg(e) {
|
|
|
41271
41271
|
"zsocket",
|
|
41272
41272
|
"zstyle",
|
|
41273
41273
|
"ztcp"
|
|
41274
|
-
],
|
|
41274
|
+
], k = [
|
|
41275
41275
|
"chcon",
|
|
41276
41276
|
"chgrp",
|
|
41277
41277
|
"chown",
|
|
@@ -41393,7 +41393,7 @@ function Mg(e) {
|
|
|
41393
41393
|
"set",
|
|
41394
41394
|
"shopt",
|
|
41395
41395
|
...T,
|
|
41396
|
-
...
|
|
41396
|
+
...k
|
|
41397
41397
|
]
|
|
41398
41398
|
},
|
|
41399
41399
|
contains: [
|
|
@@ -46289,10 +46289,10 @@ function v_(e, t, n) {
|
|
|
46289
46289
|
}
|
|
46290
46290
|
}
|
|
46291
46291
|
const y = a.value.replace(m, (N, T) => {
|
|
46292
|
-
const
|
|
46292
|
+
const k = s.value.get(T.trim());
|
|
46293
46293
|
return `
|
|
46294
46294
|
|
|
46295
|
-
[AI_IMAGE:${(
|
|
46295
|
+
[AI_IMAGE:${(k == null ? void 0 : k.id) || "unknown"}:${T.trim()}]
|
|
46296
46296
|
|
|
46297
46297
|
`;
|
|
46298
46298
|
}), I = e.value.commands.updateStreamingPreviewContent(y);
|
|
@@ -47177,11 +47177,11 @@ ${c}` : c;
|
|
|
47177
47177
|
`, 1)[0], m = !g.trim(), A = 0;
|
|
47178
47178
|
if (this.options.pedantic ? (A = 2, h = g.trimStart()) : m ? A = t[1].length + 1 : (A = g.search(this.rules.other.nonSpaceChar), A = A > 4 ? 1 : A, h = g.slice(A), A += t[1].length), m && this.rules.other.blankLine.test(p) && (f += p + `
|
|
47179
47179
|
`, e = e.substring(p.length + 1), c = !0), !c) {
|
|
47180
|
-
let y = this.rules.other.nextBulletRegex(A), I = this.rules.other.hrRegex(A), N = this.rules.other.fencesBeginRegex(A), T = this.rules.other.headingBeginRegex(A),
|
|
47180
|
+
let y = this.rules.other.nextBulletRegex(A), I = this.rules.other.hrRegex(A), N = this.rules.other.fencesBeginRegex(A), T = this.rules.other.headingBeginRegex(A), k = this.rules.other.htmlBeginRegex(A), M = this.rules.other.blockquoteBeginRegex(A);
|
|
47181
47181
|
for (; e; ) {
|
|
47182
47182
|
let L = e.split(`
|
|
47183
47183
|
`, 1)[0], H;
|
|
47184
|
-
if (p = L, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), H = p) : H = p.replace(this.rules.other.tabCharGlobal, " "), N.test(p) || T.test(p) ||
|
|
47184
|
+
if (p = L, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), H = p) : H = p.replace(this.rules.other.tabCharGlobal, " "), N.test(p) || T.test(p) || k.test(p) || M.test(p) || y.test(p) || I.test(p)) break;
|
|
47185
47185
|
if (H.search(this.rules.other.nonSpaceChar) >= A || !p.trim()) h += `
|
|
47186
47186
|
` + H.slice(A);
|
|
47187
47187
|
else {
|
|
@@ -48521,8 +48521,8 @@ const hr = [
|
|
|
48521
48521
|
t.editor.chain().focus().deleteRange({ from: g, to: g + 1 }).insertContentAt(g, { type: "linkCardBlock", attrs: { url: f, title: h } }).run();
|
|
48522
48522
|
return;
|
|
48523
48523
|
}
|
|
48524
|
-
const y = A.start() - 1, I = A.end() + 1, N = A.end(), T = p.doc.slice(A.start(), g).content,
|
|
48525
|
-
T.size > 0 &&
|
|
48524
|
+
const y = A.start() - 1, I = A.end() + 1, N = A.end(), T = p.doc.slice(A.start(), g).content, k = p.doc.slice(g + 1, N).content, M = p.schema.nodes.paragraph.create(null, T), L = p.schema.nodes.linkCardBlock.create({ url: f, title: h }), H = p.schema.nodes.paragraph.create(null, k), w = [];
|
|
48525
|
+
T.size > 0 && w.push(M), w.push(L), k.size > 0 && w.push(H), m.replaceWith(y, I, w), t.editor.view.dispatch(m), t.editor.commands.focus();
|
|
48526
48526
|
}, u = () => {
|
|
48527
48527
|
a.value = t.node.attrs.url || "", r.value = t.node.attrs.title || "", n.value = !0, yt(() => {
|
|
48528
48528
|
var f, h;
|
|
@@ -49008,9 +49008,14 @@ const TM = Ot.create({
|
|
|
49008
49008
|
}), i = te(() => ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp", "ico"].includes(r.value)), s = te(() => r.value === "pdf"), o = te(() => ["txt", "md", "json", "xml", "yaml", "yml", "csv", "log", "ini", "conf", "toml", "env", "sh", "bash", "zsh", "fish", "bat", "cmd", "ps1", "ts", "tsx", "js", "jsx", "vue", "html", "css", "scss", "less", "py", "rb", "go", "rs", "java", "kt", "swift", "c", "cpp", "h", "hpp", "sql", "graphql"].includes(r.value)), u = te(() => ["mp4", "webm", "mov", "avi", "mkv"].includes(r.value)), l = te(() => ["mp3", "wav", "ogg", "flac", "aac", "m4a"].includes(r.value)), c = te(() => i.value ? "icon-image" : s.value ? "icon-pdf" : o.value ? "icon-text" : u.value ? "icon-video" : l.value ? "icon-audio" : ["xls", "xlsx", "csv"].includes(r.value) ? "icon-spreadsheet" : ["zip", "rar", "7z", "tar", "gz", "bz2"].includes(r.value) ? "icon-archive" : "icon-generic"), f = te(() => i.value ? bA : s.value ? Zr : o.value ? pA : u.value ? AA : l.value ? mA : ["xls", "xlsx", "csv"].includes(r.value) ? EA : ["zip", "rar", "7z", "tar", "gz", "bz2"].includes(r.value) ? gA : TA), h = te(() => {
|
|
49009
49009
|
const I = t.node.attrs.fileSize || 0;
|
|
49010
49010
|
return I < 1024 ? `${I} B` : I < 1024 * 1024 ? `${(I / 1024).toFixed(1)} KB` : I < 1024 * 1024 * 1024 ? `${(I / (1024 * 1024)).toFixed(1)} MB` : `${(I / (1024 * 1024 * 1024)).toFixed(1)} GB`;
|
|
49011
|
-
}), g = () => {
|
|
49012
|
-
const I =
|
|
49013
|
-
|
|
49011
|
+
}), g = async () => {
|
|
49012
|
+
const I = t.node.attrs.fileUrl, N = t.node.attrs.fileName;
|
|
49013
|
+
try {
|
|
49014
|
+
const k = await (await fetch(I)).blob(), M = URL.createObjectURL(k), L = document.createElement("a");
|
|
49015
|
+
L.href = M, L.download = N, document.body.appendChild(L), L.click(), document.body.removeChild(L), URL.revokeObjectURL(M);
|
|
49016
|
+
} catch {
|
|
49017
|
+
window.open(I, "_blank");
|
|
49018
|
+
}
|
|
49014
49019
|
}, p = () => {
|
|
49015
49020
|
n.value = !0, o.value && a.value === null && A();
|
|
49016
49021
|
}, m = () => {
|
|
@@ -50778,20 +50783,20 @@ const xS = Ot.create({
|
|
|
50778
50783
|
{ key: "knowledgeBase", label: "知识库" }
|
|
50779
50784
|
], s = e, o = Q(), u = Q(), l = Q(""), c = Q("document"), f = Q([]), h = Q(-1), g = Q(!1), p = Q(!1), m = Q(1), A = Q(!1), y = te(() => i.filter((x) => s.items[x.key]));
|
|
50780
50785
|
$t(() => {
|
|
50781
|
-
y.value.length > 0 && (c.value = y.value[0].key),
|
|
50786
|
+
y.value.length > 0 && (c.value = y.value[0].key), k(1), yt(() => {
|
|
50782
50787
|
var x;
|
|
50783
50788
|
(x = o.value) == null || x.focus();
|
|
50784
50789
|
});
|
|
50785
50790
|
});
|
|
50786
50791
|
const I = (x) => {
|
|
50787
|
-
c.value = x, h.value = 0, f.value = [], m.value = 1, A.value = !1,
|
|
50792
|
+
c.value = x, h.value = 0, f.value = [], m.value = 1, A.value = !1, k(1);
|
|
50788
50793
|
};
|
|
50789
50794
|
let N = null;
|
|
50790
50795
|
const T = () => {
|
|
50791
50796
|
N && clearTimeout(N), N = setTimeout(() => {
|
|
50792
|
-
h.value = 0, f.value = [], m.value = 1, A.value = !1,
|
|
50797
|
+
h.value = 0, f.value = [], m.value = 1, A.value = !1, k(1);
|
|
50793
50798
|
}, 200);
|
|
50794
|
-
},
|
|
50799
|
+
}, k = async (x) => {
|
|
50795
50800
|
const U = s.items[c.value];
|
|
50796
50801
|
if (!U) {
|
|
50797
50802
|
f.value = [];
|
|
@@ -50809,7 +50814,7 @@ const xS = Ot.create({
|
|
|
50809
50814
|
}, M = () => {
|
|
50810
50815
|
if (!u.value || !A.value || p.value) return;
|
|
50811
50816
|
const { scrollTop: x, scrollHeight: U, clientHeight: O } = u.value;
|
|
50812
|
-
x + O >= U - 40 &&
|
|
50817
|
+
x + O >= U - 40 && k(m.value + 1);
|
|
50813
50818
|
}, L = (x) => {
|
|
50814
50819
|
s.command(x);
|
|
50815
50820
|
}, H = (x) => {
|
|
@@ -50819,7 +50824,7 @@ const xS = Ot.create({
|
|
|
50819
50824
|
if (x.key === "ArrowUp")
|
|
50820
50825
|
return x.preventDefault(), h.value <= 0 ? h.value = -1 : h.value = h.value - 1, !0;
|
|
50821
50826
|
if (x.key === "ArrowDown")
|
|
50822
|
-
return x.preventDefault(), h.value === -1 ? h.value = 0 : h.value = Math.min(f.value.length - 1, h.value + 1), h.value >= f.value.length - 2 && A.value && !p.value &&
|
|
50827
|
+
return x.preventDefault(), h.value === -1 ? h.value = 0 : h.value = Math.min(f.value.length - 1, h.value + 1), h.value >= f.value.length - 2 && A.value && !p.value && k(m.value + 1), !0;
|
|
50823
50828
|
if (x.key === "Enter")
|
|
50824
50829
|
return x.preventDefault(), h.value !== -1 && f.value[h.value] && L(f.value[h.value]), !0;
|
|
50825
50830
|
if (x.key === "Tab") {
|
|
@@ -51980,9 +51985,9 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
|
|
|
51980
51985
|
const we = (ie = le.target.files) == null ? void 0 : ie[0];
|
|
51981
51986
|
we && g(we);
|
|
51982
51987
|
}, Z.click();
|
|
51983
|
-
},
|
|
51984
|
-
window.addEventListener("editor-trigger-video-upload",
|
|
51985
|
-
window.removeEventListener("editor-trigger-video-upload",
|
|
51988
|
+
}, k = () => T();
|
|
51989
|
+
window.addEventListener("editor-trigger-video-upload", k), qn(() => {
|
|
51990
|
+
window.removeEventListener("editor-trigger-video-upload", k);
|
|
51986
51991
|
});
|
|
51987
51992
|
const M = () => {
|
|
51988
51993
|
const Z = document.createElement("input");
|
|
@@ -52035,9 +52040,9 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
|
|
|
52035
52040
|
fileType: ie
|
|
52036
52041
|
}
|
|
52037
52042
|
}).run();
|
|
52038
|
-
},
|
|
52039
|
-
window.addEventListener("editor-trigger-attachment-upload",
|
|
52040
|
-
window.removeEventListener("editor-trigger-attachment-upload",
|
|
52043
|
+
}, w = () => M();
|
|
52044
|
+
window.addEventListener("editor-trigger-attachment-upload", w), qn(() => {
|
|
52045
|
+
window.removeEventListener("editor-trigger-attachment-upload", w);
|
|
52041
52046
|
});
|
|
52042
52047
|
const x = ({ editor: Z, from: le, to: we }) => {
|
|
52043
52048
|
if (!Z.isEditable || le === we) return !1;
|
|
@@ -52607,20 +52612,20 @@ function K8(e) {
|
|
|
52607
52612
|
"灵感满满!加油!💪",
|
|
52608
52613
|
"思路很清晰,继续!🚀",
|
|
52609
52614
|
"文笔流畅,很棒!📝"
|
|
52610
|
-
],
|
|
52611
|
-
g(
|
|
52615
|
+
], k = T[Math.floor(Math.random() * T.length)];
|
|
52616
|
+
g(k, 3e3), u.value.inputCharacters = y;
|
|
52612
52617
|
}
|
|
52613
52618
|
u.value.lastInputTime = I;
|
|
52614
52619
|
}, A = () => ({
|
|
52615
52620
|
fetchCompletion: async (y, I) => {
|
|
52616
52621
|
const N = "这是模拟的 AI 补全内容。";
|
|
52617
52622
|
for (let T = 0; T < N.length; T++)
|
|
52618
|
-
await new Promise((
|
|
52623
|
+
await new Promise((k) => setTimeout(k, 30)), I(N[T]);
|
|
52619
52624
|
},
|
|
52620
52625
|
fetchRefactoring: async (y, I, N) => {
|
|
52621
52626
|
const T = `【优化后】${y.replace(/。/g, "!")}`;
|
|
52622
|
-
for (let
|
|
52623
|
-
await new Promise((M) => setTimeout(M, 50)), N(T[
|
|
52627
|
+
for (let k = 0; k < T.length; k++)
|
|
52628
|
+
await new Promise((M) => setTimeout(M, 50)), N(T[k]);
|
|
52624
52629
|
}
|
|
52625
52630
|
});
|
|
52626
52631
|
return {
|
|
@@ -52708,23 +52713,23 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52708
52713
|
a.format === "markdown" ? r("update:modelValue", T.getMarkdown()) : a.format === "json" ? r("update:modelValue", JSON.stringify(T.getJSON())) : r("update:modelValue", T.getHTML());
|
|
52709
52714
|
},
|
|
52710
52715
|
editorProps: {
|
|
52711
|
-
handleDrop: (T,
|
|
52712
|
-
if (!L &&
|
|
52713
|
-
const H =
|
|
52716
|
+
handleDrop: (T, k, M, L) => {
|
|
52717
|
+
if (!L && k.dataTransfer && k.dataTransfer.files && k.dataTransfer.files[0]) {
|
|
52718
|
+
const H = k.dataTransfer.files[0];
|
|
52714
52719
|
if (H.type.startsWith("image/"))
|
|
52715
|
-
return
|
|
52720
|
+
return k.preventDefault(), f(H, T, k), !0;
|
|
52716
52721
|
}
|
|
52717
52722
|
return !1;
|
|
52718
52723
|
},
|
|
52719
|
-
handlePaste: (T,
|
|
52724
|
+
handlePaste: (T, k, M) => {
|
|
52720
52725
|
var H;
|
|
52721
|
-
const L = (H =
|
|
52726
|
+
const L = (H = k.clipboardData) == null ? void 0 : H.items;
|
|
52722
52727
|
if (L) {
|
|
52723
|
-
for (let
|
|
52724
|
-
if (L[
|
|
52725
|
-
|
|
52726
|
-
const x = L[
|
|
52727
|
-
return x && f(x, T,
|
|
52728
|
+
for (let w = 0; w < L.length; w++)
|
|
52729
|
+
if (L[w].type.startsWith("image/")) {
|
|
52730
|
+
k.preventDefault();
|
|
52731
|
+
const x = L[w].getAsFile();
|
|
52732
|
+
return x && f(x, T, k), !0;
|
|
52728
52733
|
}
|
|
52729
52734
|
}
|
|
52730
52735
|
return !1;
|
|
@@ -52735,8 +52740,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52735
52740
|
() => a.modelValue,
|
|
52736
52741
|
(T) => {
|
|
52737
52742
|
if (!T || !i.value) return;
|
|
52738
|
-
let
|
|
52739
|
-
if (a.format === "markdown" ?
|
|
52743
|
+
let k;
|
|
52744
|
+
if (a.format === "markdown" ? k = i.value.getMarkdown() : a.format === "json" ? k = JSON.stringify(i.value.getJSON()) : k = i.value.getHTML(), !(k === T))
|
|
52740
52745
|
if (a.format === "json")
|
|
52741
52746
|
try {
|
|
52742
52747
|
const L = JSON.parse(T);
|
|
@@ -52752,8 +52757,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52752
52757
|
), it(
|
|
52753
52758
|
() => a.editable,
|
|
52754
52759
|
(T) => {
|
|
52755
|
-
var
|
|
52756
|
-
(
|
|
52760
|
+
var k;
|
|
52761
|
+
(k = i.value) == null || k.setEditable(T);
|
|
52757
52762
|
}
|
|
52758
52763
|
), qn(() => {
|
|
52759
52764
|
var T;
|
|
@@ -52786,8 +52791,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52786
52791
|
setMarkdown: y,
|
|
52787
52792
|
setHTML: I,
|
|
52788
52793
|
setJSON: N
|
|
52789
|
-
}), (T,
|
|
52790
|
-
var M, L, H,
|
|
52794
|
+
}), (T, k) => {
|
|
52795
|
+
var M, L, H, w;
|
|
52791
52796
|
return D(), F("div", {
|
|
52792
52797
|
class: X(["flash-editor", { "theme-dark": e.theme === "dark" }])
|
|
52793
52798
|
}, [
|
|
@@ -52795,7 +52800,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52795
52800
|
b("div", HD, [
|
|
52796
52801
|
b("button", {
|
|
52797
52802
|
class: "toolbar-btn",
|
|
52798
|
-
onClick:
|
|
52803
|
+
onClick: k[0] || (k[0] = //@ts-ignore
|
|
52799
52804
|
(...x) => P(h) && P(h)(...x)),
|
|
52800
52805
|
title: "插入图片"
|
|
52801
52806
|
}, [
|
|
@@ -52823,7 +52828,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52823
52828
|
j(P(ml), { size: 18 })
|
|
52824
52829
|
], 2),
|
|
52825
52830
|
b("button", {
|
|
52826
|
-
class: X(["toolbar-btn", { "is-active": (
|
|
52831
|
+
class: X(["toolbar-btn", { "is-active": (w = P(i)) == null ? void 0 : w.isActive("orderedList") }]),
|
|
52827
52832
|
onClick: l,
|
|
52828
52833
|
title: "有序列表"
|
|
52829
52834
|
}, [
|
|
@@ -52874,8 +52879,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52874
52879
|
for (let T = 0; T < I.length; T++)
|
|
52875
52880
|
if (I[T].type.startsWith("image/")) {
|
|
52876
52881
|
A.preventDefault();
|
|
52877
|
-
const
|
|
52878
|
-
return
|
|
52882
|
+
const k = I[T].getAsFile();
|
|
52883
|
+
return k && r && r(k), !0;
|
|
52879
52884
|
}
|
|
52880
52885
|
}
|
|
52881
52886
|
return !1;
|
|
@@ -52936,7 +52941,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52936
52941
|
});
|
|
52937
52942
|
r = c;
|
|
52938
52943
|
const f = (m, A) => {
|
|
52939
|
-
var y, I, N, T,
|
|
52944
|
+
var y, I, N, T, k, M, L, H, w, x, U, O, S, C, B, G;
|
|
52940
52945
|
switch (m) {
|
|
52941
52946
|
case "setEditable":
|
|
52942
52947
|
(y = o.value) == null || y.setEditable(A.editable);
|
|
@@ -52950,7 +52955,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52950
52955
|
(T = o.value) == null || T.commands.setContent(A.html || A.json);
|
|
52951
52956
|
break;
|
|
52952
52957
|
case "toggleBold":
|
|
52953
|
-
(
|
|
52958
|
+
(k = o.value) == null || k.chain().focus().toggleBold().run();
|
|
52954
52959
|
break;
|
|
52955
52960
|
case "toggleItalic":
|
|
52956
52961
|
(M = o.value) == null || M.chain().focus().toggleItalic().run();
|
|
@@ -52962,7 +52967,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
52962
52967
|
(H = o.value) == null || H.chain().focus().toggleOrderedList().run();
|
|
52963
52968
|
break;
|
|
52964
52969
|
case "toggleTaskList":
|
|
52965
|
-
(
|
|
52970
|
+
(w = o.value) == null || w.chain().focus().toggleTaskList().run();
|
|
52966
52971
|
break;
|
|
52967
52972
|
case "insertImage":
|
|
52968
52973
|
A.url && ((x = o.value) == null || x.chain().focus().setUploadingImage({ src: A.url }).run());
|
|
@@ -53091,7 +53096,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
53091
53096
|
const S = n.modelValue[n.modelValue.length - 1];
|
|
53092
53097
|
L(S);
|
|
53093
53098
|
}
|
|
53094
|
-
},
|
|
53099
|
+
}, k = (O) => {
|
|
53095
53100
|
m(O) ? L(O) : M(O), i.value = "", r.value = !0, yt(() => {
|
|
53096
53101
|
var S;
|
|
53097
53102
|
(S = s.value) == null || S.focus();
|
|
@@ -53105,11 +53110,11 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
53105
53110
|
}, H = () => {
|
|
53106
53111
|
if (h.value.length > 0 && o.value < h.value.length) {
|
|
53107
53112
|
const O = h.value[o.value];
|
|
53108
|
-
|
|
53113
|
+
k(O);
|
|
53109
53114
|
return;
|
|
53110
53115
|
}
|
|
53111
|
-
|
|
53112
|
-
},
|
|
53116
|
+
w();
|
|
53117
|
+
}, w = () => {
|
|
53113
53118
|
if (!i.value.trim()) return;
|
|
53114
53119
|
const O = n.availableTags.find(
|
|
53115
53120
|
(S) => S.name.toLowerCase() === i.value.toLowerCase()
|
|
@@ -53198,7 +53203,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
53198
53203
|
(D(!0), F(Et, null, Qt(h.value, (C, B) => (D(), F("div", {
|
|
53199
53204
|
key: C.id,
|
|
53200
53205
|
class: X(["dropdown-item", { "is-active": o.value === B, "is-selected": m(C) }]),
|
|
53201
|
-
onMousedown: oe((G) =>
|
|
53206
|
+
onMousedown: oe((G) => k(C), ["prevent"])
|
|
53202
53207
|
}, [
|
|
53203
53208
|
b("span", {
|
|
53204
53209
|
class: "tag-color-indicator",
|
|
@@ -53212,7 +53217,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
|
|
|
53212
53217
|
i.value && !g.value ? (D(), F("div", {
|
|
53213
53218
|
key: 0,
|
|
53214
53219
|
class: X(["dropdown-item create-new", { "is-active": o.value === h.value.length }]),
|
|
53215
|
-
onMousedown: oe(
|
|
53220
|
+
onMousedown: oe(w, ["prevent"])
|
|
53216
53221
|
}, [
|
|
53217
53222
|
S[6] || (S[6] = b("div", { class: "create-icon-wrapper" }, "#", -1)),
|
|
53218
53223
|
b("span", n8, [
|