antdv-next-tiptap 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +398 -393
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { App as e, Button as t, Checkbox as n, ColorPicker as r, Divider as i, Dropdown as a, Form as o, FormItem as s, Input as c, InputNumber as l, Menu as u, MenuItem as d, Modal as f, Popover as p, Progress as m, Select as h, Switch as g, Tooltip as _ } from "antdv-next";
|
|
2
|
-
import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, defineComponent as D, inject as O, isRef as k, mergeModels as A, mergeProps as j, nextTick as M, normalizeClass as N, normalizeStyle as P, onMounted as F, onUnmounted as I, openBlock as L, provide as R, reactive as z, ref as B, renderList as V, renderSlot as ee, resolveDynamicComponent as te, shallowRef as ne, toDisplayString as
|
|
2
|
+
import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, defineComponent as D, inject as O, isRef as k, mergeModels as A, mergeProps as j, nextTick as M, normalizeClass as N, normalizeStyle as P, onMounted as F, onUnmounted as I, openBlock as L, provide as R, reactive as z, ref as B, renderList as V, renderSlot as ee, resolveDynamicComponent as te, shallowRef as ne, toDisplayString as H, toRef as re, unref as U, useModel as ie, watch as ae, watchEffect as oe, withCtx as W, withModifiers as se } from "vue";
|
|
3
3
|
import { CharacterCount as ce } from "@tiptap/extensions/character-count";
|
|
4
4
|
import { EditorContent as G, NodeViewContent as le, NodeViewWrapper as K, VueNodeViewRenderer as q, nodeViewProps as ue, useEditor as de } from "@tiptap/vue-3";
|
|
5
5
|
import { BubbleMenu as fe } from "@tiptap/vue-3/menus";
|
|
@@ -43,10 +43,10 @@ var Ye = Object.create, Xe = Object.defineProperty, Ze = Object.getOwnPropertyDe
|
|
|
43
43
|
}, rt = (e, t, n) => (n = e == null ? {} : Ye($e(e)), nt(t || !e || !e.__esModule ? Xe(n, "default", {
|
|
44
44
|
value: e,
|
|
45
45
|
enumerable: !0
|
|
46
|
-
}) : n, e));
|
|
46
|
+
}) : n, e)), it = "1.0.1";
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/composables/useHighlight.ts
|
|
49
|
-
function
|
|
49
|
+
function at() {
|
|
50
50
|
let e = null, t = (t) => {
|
|
51
51
|
e || (e = document.createElement("link"), e.rel = "stylesheet", document.head.appendChild(e)), e.href = t ? new URL("data:text/css;base64,cHJlIGNvZGUuaGxqcyB7CiAgZGlzcGxheTogYmxvY2s7CiAgb3ZlcmZsb3cteDogYXV0bzsKICBwYWRkaW5nOiAxZW0KfQpjb2RlLmhsanMgewogIHBhZGRpbmc6IDNweCA1cHgKfQovKiEKICBUaGVtZTogR2l0SHViIERhcmsKICBEZXNjcmlwdGlvbjogRGFyayB0aGVtZSBhcyBzZWVuIG9uIGdpdGh1Yi5jb20KICBBdXRob3I6IGdpdGh1Yi5jb20KICBNYWludGFpbmVyOiBASGlyc2UKICBVcGRhdGVkOiAyMDIxLTA1LTE1CgogIE91dGRhdGVkIGJhc2UgdmVyc2lvbjogaHR0cHM6Ly9naXRodWIuY29tL3ByaW1lci9naXRodWItc3ludGF4LWRhcmsKICBDdXJyZW50IGNvbG9ycyB0YWtlbiBmcm9tIEdpdEh1YidzIENTUwoqLwouaGxqcyB7CiAgY29sb3I6ICNjOWQxZDk7CiAgYmFja2dyb3VuZDogIzBkMTExNwp9Ci5obGpzLWRvY3RhZywKLmhsanMta2V5d29yZCwKLmhsanMtbWV0YSAuaGxqcy1rZXl3b3JkLAouaGxqcy10ZW1wbGF0ZS10YWcsCi5obGpzLXRlbXBsYXRlLXZhcmlhYmxlLAouaGxqcy10eXBlLAouaGxqcy12YXJpYWJsZS5sYW5ndWFnZV8gewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgta2V5d29yZCAqLwogIGNvbG9yOiAjZmY3YjcyCn0KLmhsanMtdGl0bGUsCi5obGpzLXRpdGxlLmNsYXNzXywKLmhsanMtdGl0bGUuY2xhc3NfLmluaGVyaXRlZF9fLAouaGxqcy10aXRsZS5mdW5jdGlvbl8gewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtZW50aXR5ICovCiAgY29sb3I6ICNkMmE4ZmYKfQouaGxqcy1hdHRyLAouaGxqcy1hdHRyaWJ1dGUsCi5obGpzLWxpdGVyYWwsCi5obGpzLW1ldGEsCi5obGpzLW51bWJlciwKLmhsanMtb3BlcmF0b3IsCi5obGpzLXZhcmlhYmxlLAouaGxqcy1zZWxlY3Rvci1hdHRyLAouaGxqcy1zZWxlY3Rvci1jbGFzcywKLmhsanMtc2VsZWN0b3ItaWQgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtY29uc3RhbnQgKi8KICBjb2xvcjogIzc5YzBmZgp9Ci5obGpzLXJlZ2V4cCwKLmhsanMtc3RyaW5nLAouaGxqcy1tZXRhIC5obGpzLXN0cmluZyB7CiAgLyogcHJldHR5bGlnaHRzLXN5bnRheC1zdHJpbmcgKi8KICBjb2xvcjogI2E1ZDZmZgp9Ci5obGpzLWJ1aWx0X2luLAouaGxqcy1zeW1ib2wgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtdmFyaWFibGUgKi8KICBjb2xvcjogI2ZmYTY1Nwp9Ci5obGpzLWNvbW1lbnQsCi5obGpzLWNvZGUsCi5obGpzLWZvcm11bGEgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtY29tbWVudCAqLwogIGNvbG9yOiAjOGI5NDllCn0KLmhsanMtbmFtZSwKLmhsanMtcXVvdGUsCi5obGpzLXNlbGVjdG9yLXRhZywKLmhsanMtc2VsZWN0b3ItcHNldWRvIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LWVudGl0eS10YWcgKi8KICBjb2xvcjogIzdlZTc4Nwp9Ci5obGpzLXN1YnN0IHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LXN0b3JhZ2UtbW9kaWZpZXItaW1wb3J0ICovCiAgY29sb3I6ICNjOWQxZDkKfQouaGxqcy1zZWN0aW9uIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LW1hcmt1cC1oZWFkaW5nICovCiAgY29sb3I6ICMxZjZmZWI7CiAgZm9udC13ZWlnaHQ6IGJvbGQKfQouaGxqcy1idWxsZXQgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtbWFya3VwLWxpc3QgKi8KICBjb2xvcjogI2YyY2M2MAp9Ci5obGpzLWVtcGhhc2lzIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LW1hcmt1cC1pdGFsaWMgKi8KICBjb2xvcjogI2M5ZDFkOTsKICBmb250LXN0eWxlOiBpdGFsaWMKfQouaGxqcy1zdHJvbmcgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtbWFya3VwLWJvbGQgKi8KICBjb2xvcjogI2M5ZDFkOTsKICBmb250LXdlaWdodDogYm9sZAp9Ci5obGpzLWFkZGl0aW9uIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LW1hcmt1cC1pbnNlcnRlZCAqLwogIGNvbG9yOiAjYWZmNWI0OwogIGJhY2tncm91bmQtY29sb3I6ICMwMzNhMTYKfQouaGxqcy1kZWxldGlvbiB7CiAgLyogcHJldHR5bGlnaHRzLXN5bnRheC1tYXJrdXAtZGVsZXRlZCAqLwogIGNvbG9yOiAjZmZkY2Q3OwogIGJhY2tncm91bmQtY29sb3I6ICM2NzA2MGMKfQouaGxqcy1jaGFyLmVzY2FwZV8sCi5obGpzLWxpbmssCi5obGpzLXBhcmFtcywKLmhsanMtcHJvcGVydHksCi5obGpzLXB1bmN0dWF0aW9uLAouaGxqcy10YWcgewogIC8qIHB1cnBvc2VseSBpZ25vcmVkICovCiAgCn0=", "" + import.meta.url).href : new URL("data:text/css;base64,cHJlIGNvZGUuaGxqcyB7CiAgZGlzcGxheTogYmxvY2s7CiAgb3ZlcmZsb3cteDogYXV0bzsKICBwYWRkaW5nOiAxZW0KfQpjb2RlLmhsanMgewogIHBhZGRpbmc6IDNweCA1cHgKfQovKiEKICBUaGVtZTogR2l0SHViCiAgRGVzY3JpcHRpb246IExpZ2h0IHRoZW1lIGFzIHNlZW4gb24gZ2l0aHViLmNvbQogIEF1dGhvcjogZ2l0aHViLmNvbQogIE1haW50YWluZXI6IEBIaXJzZQogIFVwZGF0ZWQ6IDIwMjEtMDUtMTUKCiAgT3V0ZGF0ZWQgYmFzZSB2ZXJzaW9uOiBodHRwczovL2dpdGh1Yi5jb20vcHJpbWVyL2dpdGh1Yi1zeW50YXgtbGlnaHQKICBDdXJyZW50IGNvbG9ycyB0YWtlbiBmcm9tIEdpdEh1YidzIENTUwoqLwouaGxqcyB7CiAgY29sb3I6ICMyNDI5MmU7CiAgYmFja2dyb3VuZDogI2ZmZmZmZgp9Ci5obGpzLWRvY3RhZywKLmhsanMta2V5d29yZCwKLmhsanMtbWV0YSAuaGxqcy1rZXl3b3JkLAouaGxqcy10ZW1wbGF0ZS10YWcsCi5obGpzLXRlbXBsYXRlLXZhcmlhYmxlLAouaGxqcy10eXBlLAouaGxqcy12YXJpYWJsZS5sYW5ndWFnZV8gewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgta2V5d29yZCAqLwogIGNvbG9yOiAjZDczYTQ5Cn0KLmhsanMtdGl0bGUsCi5obGpzLXRpdGxlLmNsYXNzXywKLmhsanMtdGl0bGUuY2xhc3NfLmluaGVyaXRlZF9fLAouaGxqcy10aXRsZS5mdW5jdGlvbl8gewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtZW50aXR5ICovCiAgY29sb3I6ICM2ZjQyYzEKfQouaGxqcy1hdHRyLAouaGxqcy1hdHRyaWJ1dGUsCi5obGpzLWxpdGVyYWwsCi5obGpzLW1ldGEsCi5obGpzLW51bWJlciwKLmhsanMtb3BlcmF0b3IsCi5obGpzLXZhcmlhYmxlLAouaGxqcy1zZWxlY3Rvci1hdHRyLAouaGxqcy1zZWxlY3Rvci1jbGFzcywKLmhsanMtc2VsZWN0b3ItaWQgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtY29uc3RhbnQgKi8KICBjb2xvcjogIzAwNWNjNQp9Ci5obGpzLXJlZ2V4cCwKLmhsanMtc3RyaW5nLAouaGxqcy1tZXRhIC5obGpzLXN0cmluZyB7CiAgLyogcHJldHR5bGlnaHRzLXN5bnRheC1zdHJpbmcgKi8KICBjb2xvcjogIzAzMmY2Mgp9Ci5obGpzLWJ1aWx0X2luLAouaGxqcy1zeW1ib2wgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtdmFyaWFibGUgKi8KICBjb2xvcjogI2UzNjIwOQp9Ci5obGpzLWNvbW1lbnQsCi5obGpzLWNvZGUsCi5obGpzLWZvcm11bGEgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtY29tbWVudCAqLwogIGNvbG9yOiAjNmE3MzdkCn0KLmhsanMtbmFtZSwKLmhsanMtcXVvdGUsCi5obGpzLXNlbGVjdG9yLXRhZywKLmhsanMtc2VsZWN0b3ItcHNldWRvIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LWVudGl0eS10YWcgKi8KICBjb2xvcjogIzIyODYzYQp9Ci5obGpzLXN1YnN0IHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LXN0b3JhZ2UtbW9kaWZpZXItaW1wb3J0ICovCiAgY29sb3I6ICMyNDI5MmUKfQouaGxqcy1zZWN0aW9uIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LW1hcmt1cC1oZWFkaW5nICovCiAgY29sb3I6ICMwMDVjYzU7CiAgZm9udC13ZWlnaHQ6IGJvbGQKfQouaGxqcy1idWxsZXQgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtbWFya3VwLWxpc3QgKi8KICBjb2xvcjogIzczNWMwZgp9Ci5obGpzLWVtcGhhc2lzIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LW1hcmt1cC1pdGFsaWMgKi8KICBjb2xvcjogIzI0MjkyZTsKICBmb250LXN0eWxlOiBpdGFsaWMKfQouaGxqcy1zdHJvbmcgewogIC8qIHByZXR0eWxpZ2h0cy1zeW50YXgtbWFya3VwLWJvbGQgKi8KICBjb2xvcjogIzI0MjkyZTsKICBmb250LXdlaWdodDogYm9sZAp9Ci5obGpzLWFkZGl0aW9uIHsKICAvKiBwcmV0dHlsaWdodHMtc3ludGF4LW1hcmt1cC1pbnNlcnRlZCAqLwogIGNvbG9yOiAjMjI4NjNhOwogIGJhY2tncm91bmQtY29sb3I6ICNmMGZmZjQKfQouaGxqcy1kZWxldGlvbiB7CiAgLyogcHJldHR5bGlnaHRzLXN5bnRheC1tYXJrdXAtZGVsZXRlZCAqLwogIGNvbG9yOiAjYjMxZDI4OwogIGJhY2tncm91bmQtY29sb3I6ICNmZmVlZjAKfQouaGxqcy1jaGFyLmVzY2FwZV8sCi5obGpzLWxpbmssCi5obGpzLXBhcmFtcywKLmhsanMtcHJvcGVydHksCi5obGpzLXB1bmN0dWF0aW9uLAouaGxqcy10YWcgewogIC8qIHB1cnBvc2VseSBpZ25vcmVkICovCiAgCn0=", "" + import.meta.url).href;
|
|
52
52
|
};
|
|
@@ -64,7 +64,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
64
64
|
color: { default: void 0 }
|
|
65
65
|
},
|
|
66
66
|
setup(e, { attrs: t }) {
|
|
67
|
-
return (n, r) => (L(), b(
|
|
67
|
+
return (n, r) => (L(), b(U(pe), j({
|
|
68
68
|
icon: e.name,
|
|
69
69
|
width: e.size,
|
|
70
70
|
height: e.size,
|
|
@@ -76,10 +76,10 @@ var Y = /* @__PURE__ */ D({
|
|
|
76
76
|
"color"
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), ot = { class: "table-toolbar" }, st = {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "table-toolbar-divider"
|
|
82
|
-
},
|
|
82
|
+
}, ct = { class: "table-toolbar-btn-wrap" }, lt = ["disabled", "onClick"], ut = { class: "table-toolbar-row-height" }, dt = /*@__PURE__*/ D({
|
|
83
83
|
__name: "tableToolbar",
|
|
84
84
|
props: { editor: {} },
|
|
85
85
|
setup(e) {
|
|
@@ -155,7 +155,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
155
155
|
for (let e = t.depth; e > 0; e--) if (t.node(e).type.name === "table") return !0;
|
|
156
156
|
return !1;
|
|
157
157
|
}, o = B(null);
|
|
158
|
-
|
|
158
|
+
ae(() => t.editor.state.selection, () => {
|
|
159
159
|
let { $from: e } = t.editor.state.selection;
|
|
160
160
|
for (let t = e.depth; t > 0; t--) {
|
|
161
161
|
let n = e.node(t);
|
|
@@ -183,7 +183,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
183
183
|
};
|
|
184
184
|
return (t, r) => {
|
|
185
185
|
let i = _, c = l;
|
|
186
|
-
return e.editor ? (L(), b(
|
|
186
|
+
return e.editor ? (L(), b(U(fe), {
|
|
187
187
|
key: 0,
|
|
188
188
|
editor: e.editor,
|
|
189
189
|
"should-show": a,
|
|
@@ -193,12 +193,12 @@ var Y = /* @__PURE__ */ D({
|
|
|
193
193
|
placement: "bottom"
|
|
194
194
|
}
|
|
195
195
|
}, {
|
|
196
|
-
default: W(() => [C("div",
|
|
197
|
-
(L(), S(v, null, V(n, (e, t) => (L(), S(v, { key: t }, ["divider" in e ? (L(), S("div",
|
|
196
|
+
default: W(() => [C("div", ot, [
|
|
197
|
+
(L(), S(v, null, V(n, (e, t) => (L(), S(v, { key: t }, ["divider" in e ? (L(), S("div", st)) : (L(), b(i, {
|
|
198
198
|
key: 1,
|
|
199
199
|
title: e.title
|
|
200
200
|
}, {
|
|
201
|
-
default: W(() => [C("span",
|
|
201
|
+
default: W(() => [C("span", ct, [C("button", {
|
|
202
202
|
class: N(["table-toolbar-btn", {
|
|
203
203
|
danger: e.danger,
|
|
204
204
|
disabled: e.isDisabled()
|
|
@@ -209,17 +209,17 @@ var Y = /* @__PURE__ */ D({
|
|
|
209
209
|
name: e.icon,
|
|
210
210
|
size: "13",
|
|
211
211
|
style: P(e.rotate ? `transform: rotate(${e.rotate}deg)` : "")
|
|
212
|
-
}, null, 8, ["name", "style"])], 10,
|
|
212
|
+
}, null, 8, ["name", "style"])], 10, lt)])]),
|
|
213
213
|
_: 2
|
|
214
214
|
}, 1032, ["title"]))], 64))), 64)),
|
|
215
215
|
r[0] ||= C("div", { class: "table-toolbar-divider" }, null, -1),
|
|
216
216
|
E(i, { title: "设置行高" }, {
|
|
217
|
-
default: W(() => [C("div",
|
|
217
|
+
default: W(() => [C("div", ut, [E(Y, {
|
|
218
218
|
name: "ri:drag-move-line",
|
|
219
219
|
size: "12",
|
|
220
220
|
class: "row-height-icon"
|
|
221
221
|
}), E(c, {
|
|
222
|
-
value:
|
|
222
|
+
value: U(o),
|
|
223
223
|
min: 20,
|
|
224
224
|
max: 600,
|
|
225
225
|
controls: !1,
|
|
@@ -238,7 +238,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
238
238
|
let n = e.__vccOpts || e;
|
|
239
239
|
for (let [e, r] of t) n[e] = r;
|
|
240
240
|
return n;
|
|
241
|
-
},
|
|
241
|
+
}, ft = /*#__PURE__*/ X(dt, [["__scopeId", "data-v-d617e684"]]), pt = { class: "color-footer" }, mt = { class: "toolbar-btn" }, ht = { class: "flex flex-col items-center gap-1px" }, gt = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
242
242
|
__name: "colorButton",
|
|
243
243
|
props: {
|
|
244
244
|
editor: {},
|
|
@@ -265,7 +265,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
265
265
|
"#13c2c2"
|
|
266
266
|
]
|
|
267
267
|
}], a = B(!1), o = ne(n.getColor?.() ?? "#000000"), s = y(() => typeof o.value == "string" ? o.value : o.value?.toHexString?.() ?? "#000000");
|
|
268
|
-
|
|
268
|
+
ae(() => n.getColor?.(), (e) => {
|
|
269
269
|
e !== void 0 && (o.value = e);
|
|
270
270
|
}, { immediate: !0 });
|
|
271
271
|
let c = B(""), l = (e) => {
|
|
@@ -287,7 +287,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
287
287
|
format: "hex",
|
|
288
288
|
onChange: l
|
|
289
289
|
}, {
|
|
290
|
-
panelRender: W(({ panel: e }) => [(L(), b(te(e))), C("div",
|
|
290
|
+
panelRender: W(({ panel: e }) => [(L(), b(te(e))), C("div", pt, [E(f, {
|
|
291
291
|
size: "small",
|
|
292
292
|
onClick: u
|
|
293
293
|
}, {
|
|
@@ -302,7 +302,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
302
302
|
_: 1
|
|
303
303
|
})])]),
|
|
304
304
|
default: W(() => [E(p, { title: e.title }, {
|
|
305
|
-
default: W(() => [C("div",
|
|
305
|
+
default: W(() => [C("div", mt, [C("div", ht, [E(Y, {
|
|
306
306
|
name: e.icon,
|
|
307
307
|
size: "14"
|
|
308
308
|
}, null, 8, ["name"]), C("span", {
|
|
@@ -315,10 +315,10 @@ var Y = /* @__PURE__ */ D({
|
|
|
315
315
|
}, 8, ["value", "open"]);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
}), [["__scopeId", "data-v-f31615a1"]]),
|
|
318
|
+
}), [["__scopeId", "data-v-f31615a1"]]), _t = { class: "text-bubble-menu" }, vt = ["onClick"], yt = {
|
|
319
319
|
key: 0,
|
|
320
320
|
class: "bubble-divider"
|
|
321
|
-
},
|
|
321
|
+
}, bt = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
322
322
|
__name: "textBubbleMenu",
|
|
323
323
|
props: { editor: {} },
|
|
324
324
|
setup(e) {
|
|
@@ -357,7 +357,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
357
357
|
}, d = (e, n = "#000") => t.editor.getAttributes(e).color ?? n;
|
|
358
358
|
return (t, n) => {
|
|
359
359
|
let a = _;
|
|
360
|
-
return L(), b(
|
|
360
|
+
return L(), b(U(fe), {
|
|
361
361
|
editor: e.editor,
|
|
362
362
|
"should-show": u,
|
|
363
363
|
"tippy-options": {
|
|
@@ -365,8 +365,8 @@ var Y = /* @__PURE__ */ D({
|
|
|
365
365
|
placement: "top"
|
|
366
366
|
}
|
|
367
367
|
}, {
|
|
368
|
-
default: W(() => [C("div",
|
|
369
|
-
(L(!0), S(v, null, V(
|
|
368
|
+
default: W(() => [C("div", _t, [
|
|
369
|
+
(L(!0), S(v, null, V(U(o), (e) => (L(), b(a, {
|
|
370
370
|
key: e.icon,
|
|
371
371
|
title: e.title,
|
|
372
372
|
placement: "top"
|
|
@@ -377,11 +377,11 @@ var Y = /* @__PURE__ */ D({
|
|
|
377
377
|
}, [E(Y, {
|
|
378
378
|
name: e.icon,
|
|
379
379
|
size: "14"
|
|
380
|
-
}, null, 8, ["name"])], 10,
|
|
380
|
+
}, null, 8, ["name"])], 10, vt)]),
|
|
381
381
|
_: 2
|
|
382
382
|
}, 1032, ["title"]))), 128)),
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
U(s) ? (L(), S("div", yt)) : x("", !0),
|
|
384
|
+
U(r) ? (L(), b(gt, {
|
|
385
385
|
key: 1,
|
|
386
386
|
editor: e.editor,
|
|
387
387
|
icon: "ri:font-family",
|
|
@@ -389,7 +389,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
389
389
|
"get-color": () => d("textStyle"),
|
|
390
390
|
apply: c
|
|
391
391
|
}, null, 8, ["editor", "get-color"])) : x("", !0),
|
|
392
|
-
|
|
392
|
+
U(i) ? (L(), b(gt, {
|
|
393
393
|
key: 2,
|
|
394
394
|
editor: e.editor,
|
|
395
395
|
icon: "ri:paint-fill",
|
|
@@ -402,7 +402,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
402
402
|
}, 8, ["editor"]);
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
}), [["__scopeId", "data-v-a937e33a"]]),
|
|
405
|
+
}), [["__scopeId", "data-v-a937e33a"]]), xt = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
406
406
|
__name: "listSelect",
|
|
407
407
|
props: { editor: {} },
|
|
408
408
|
setup(e) {
|
|
@@ -437,16 +437,16 @@ var Y = /* @__PURE__ */ D({
|
|
|
437
437
|
key: t.key,
|
|
438
438
|
onClick: (n) => t.action(e.editor)
|
|
439
439
|
}, {
|
|
440
|
-
default: W(() => [C("div", { class: N(["list-item", { active:
|
|
440
|
+
default: W(() => [C("div", { class: N(["list-item", { active: U(r) === t.key }]) }, [E(Y, {
|
|
441
441
|
name: t.icon,
|
|
442
442
|
size: "16"
|
|
443
|
-
}, null, 8, ["name"]), C("span", null,
|
|
443
|
+
}, null, 8, ["name"]), C("span", null, H(t.label), 1)], 2)]),
|
|
444
444
|
_: 2
|
|
445
445
|
}, 1032, ["onClick"])), 64))]),
|
|
446
446
|
_: 1
|
|
447
447
|
})]),
|
|
448
|
-
default: W(() => [C("div", { class: N(["toolbar-btn", { active:
|
|
449
|
-
name:
|
|
448
|
+
default: W(() => [C("div", { class: N(["toolbar-btn", { active: U(r) !== null }]) }, [E(Y, {
|
|
449
|
+
name: U(i),
|
|
450
450
|
size: "16"
|
|
451
451
|
}, null, 8, ["name"]), E(Y, {
|
|
452
452
|
name: "ri:arrow-down-s-line",
|
|
@@ -457,14 +457,14 @@ var Y = /* @__PURE__ */ D({
|
|
|
457
457
|
});
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
}), [["__scopeId", "data-v-8867673c"]]),
|
|
460
|
+
}), [["__scopeId", "data-v-8867673c"]]), St = { extensions: [
|
|
461
461
|
_e,
|
|
462
462
|
ye,
|
|
463
463
|
be,
|
|
464
464
|
ve,
|
|
465
465
|
xe,
|
|
466
466
|
Se
|
|
467
|
-
] },
|
|
467
|
+
] }, Ct = {
|
|
468
468
|
name: "blockquote",
|
|
469
469
|
extensions: [we],
|
|
470
470
|
toolbar: [{ divider: !0 }, {
|
|
@@ -473,7 +473,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
473
473
|
action: (e) => e.chain().focus().toggleBlockquote().run(),
|
|
474
474
|
isActive: (e) => e.isActive("blockquote")
|
|
475
475
|
}]
|
|
476
|
-
},
|
|
476
|
+
}, wt = {
|
|
477
477
|
name: "bold",
|
|
478
478
|
extensions: [J],
|
|
479
479
|
toolbar: [{ divider: !0 }, {
|
|
@@ -482,10 +482,10 @@ var Y = /* @__PURE__ */ D({
|
|
|
482
482
|
action: (e) => e.chain().focus().toggleBold().run(),
|
|
483
483
|
isActive: (e) => e.isActive("bold")
|
|
484
484
|
}]
|
|
485
|
-
},
|
|
485
|
+
}, Tt = {
|
|
486
486
|
name: "bulletList",
|
|
487
487
|
extensions: [Te, Ee]
|
|
488
|
-
},
|
|
488
|
+
}, Et = {
|
|
489
489
|
name: "clearFormat",
|
|
490
490
|
extensions: [],
|
|
491
491
|
toolbar: [{ divider: !0 }, {
|
|
@@ -493,7 +493,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
493
493
|
title: "清除格式",
|
|
494
494
|
action: (e) => e.chain().focus().clearNodes().unsetAllMarks().run()
|
|
495
495
|
}]
|
|
496
|
-
},
|
|
496
|
+
}, Dt = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
497
497
|
__name: "fullscreenButton",
|
|
498
498
|
props: { editor: {} },
|
|
499
499
|
setup(e) {
|
|
@@ -520,14 +520,14 @@ var Y = /* @__PURE__ */ D({
|
|
|
520
520
|
}, 8, ["title"]);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
}), [["__scopeId", "data-v-f4bfe7b7"]]),
|
|
523
|
+
}), [["__scopeId", "data-v-f4bfe7b7"]]), Ot = {
|
|
524
524
|
name: "fullscreen",
|
|
525
525
|
extensions: [],
|
|
526
526
|
toolbar: [{
|
|
527
527
|
type: "component",
|
|
528
|
-
render: (e) => E(
|
|
528
|
+
render: (e) => E(Dt, { editor: e }, null)
|
|
529
529
|
}]
|
|
530
|
-
},
|
|
530
|
+
}, kt = {
|
|
531
531
|
name: "print",
|
|
532
532
|
extensions: [],
|
|
533
533
|
toolbar: [{ divider: !0 }, {
|
|
@@ -537,7 +537,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
537
537
|
window.print();
|
|
538
538
|
}
|
|
539
539
|
}]
|
|
540
|
-
},
|
|
540
|
+
}, At = {
|
|
541
541
|
name: "code",
|
|
542
542
|
extensions: [De],
|
|
543
543
|
toolbar: [{
|
|
@@ -549,7 +549,7 @@ var Y = /* @__PURE__ */ D({
|
|
|
549
549
|
};
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js
|
|
552
|
-
function
|
|
552
|
+
function jt(e) {
|
|
553
553
|
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(?!struct)(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
554
554
|
className: "type",
|
|
555
555
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
@@ -771,7 +771,7 @@ function At(e) {
|
|
|
771
771
|
])
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function Mt(e) {
|
|
775
775
|
let t = {
|
|
776
776
|
type: [
|
|
777
777
|
"boolean",
|
|
@@ -802,12 +802,12 @@ function jt(e) {
|
|
|
802
802
|
"HIGH",
|
|
803
803
|
"LOW"
|
|
804
804
|
]
|
|
805
|
-
}, n =
|
|
805
|
+
}, n = jt(e), r = n.keywords;
|
|
806
806
|
return r.type = [...r.type, ...t.type], r.literal = [...r.literal, ...t.literal], r.built_in = [...r.built_in, ...t.built_in], r._hints = t._hints, n.name = "Arduino", n.aliases = ["ino"], n.supersetOf = "cpp", n;
|
|
807
807
|
}
|
|
808
808
|
//#endregion
|
|
809
809
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js
|
|
810
|
-
function
|
|
810
|
+
function Nt(e) {
|
|
811
811
|
let t = e.regex, n = {}, r = {
|
|
812
812
|
begin: /\$\{/,
|
|
813
813
|
end: /\}/,
|
|
@@ -975,7 +975,7 @@ function Mt(e) {
|
|
|
975
975
|
}
|
|
976
976
|
//#endregion
|
|
977
977
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js
|
|
978
|
-
function
|
|
978
|
+
function Pt(e) {
|
|
979
979
|
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
980
980
|
className: "type",
|
|
981
981
|
variants: [{ begin: "\\b[a-z\\d_]*_t\\b" }, { match: /\batomic_[a-z]{3,6}\b/ }]
|
|
@@ -1150,7 +1150,7 @@ function Nt(e) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
//#endregion
|
|
1152
1152
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js
|
|
1153
|
-
function
|
|
1153
|
+
function Ft(e) {
|
|
1154
1154
|
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(?!struct)(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
1155
1155
|
className: "type",
|
|
1156
1156
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
@@ -1374,7 +1374,7 @@ function Pt(e) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
//#endregion
|
|
1376
1376
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js
|
|
1377
|
-
function
|
|
1377
|
+
function It(e) {
|
|
1378
1378
|
let t = [
|
|
1379
1379
|
"bool",
|
|
1380
1380
|
"byte",
|
|
@@ -1633,7 +1633,7 @@ function Ft(e) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
//#endregion
|
|
1635
1635
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js
|
|
1636
|
-
var
|
|
1636
|
+
var Lt = (e) => ({
|
|
1637
1637
|
IMPORTANT: {
|
|
1638
1638
|
scope: "meta",
|
|
1639
1639
|
begin: "!important"
|
|
@@ -1663,7 +1663,7 @@ var It = (e) => ({
|
|
|
1663
1663
|
className: "attr",
|
|
1664
1664
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
1665
1665
|
}
|
|
1666
|
-
}),
|
|
1666
|
+
}), Rt = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), zt = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), Bt = [...Rt, ...zt], Vt = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), Ht = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), Ut = [
|
|
1667
1667
|
"after",
|
|
1668
1668
|
"backdrop",
|
|
1669
1669
|
"before",
|
|
@@ -1678,9 +1678,9 @@ var It = (e) => ({
|
|
|
1678
1678
|
"selection",
|
|
1679
1679
|
"slotted",
|
|
1680
1680
|
"spelling-error"
|
|
1681
|
-
].sort().reverse(),
|
|
1682
|
-
function
|
|
1683
|
-
let t = e.regex, n =
|
|
1681
|
+
].sort().reverse(), Wt = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
|
|
1682
|
+
function Gt(e) {
|
|
1683
|
+
let t = e.regex, n = Lt(e), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i = /@-?\w[\w]*(-\w+)*/, a = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE];
|
|
1684
1684
|
return {
|
|
1685
1685
|
name: "CSS",
|
|
1686
1686
|
case_insensitive: !0,
|
|
@@ -1704,12 +1704,12 @@ function Wt(e) {
|
|
|
1704
1704
|
n.ATTRIBUTE_SELECTOR_MODE,
|
|
1705
1705
|
{
|
|
1706
1706
|
className: "selector-pseudo",
|
|
1707
|
-
variants: [{ begin: ":(" +
|
|
1707
|
+
variants: [{ begin: ":(" + Ht.join("|") + ")" }, { begin: ":(:)?(" + Ut.join("|") + ")" }]
|
|
1708
1708
|
},
|
|
1709
1709
|
n.CSS_VARIABLE,
|
|
1710
1710
|
{
|
|
1711
1711
|
className: "attribute",
|
|
1712
|
-
begin: "\\b(" +
|
|
1712
|
+
begin: "\\b(" + Wt.join("|") + ")\\b"
|
|
1713
1713
|
},
|
|
1714
1714
|
{
|
|
1715
1715
|
begin: /:/,
|
|
@@ -1751,7 +1751,7 @@ function Wt(e) {
|
|
|
1751
1751
|
keywords: {
|
|
1752
1752
|
$pattern: /[a-z-]+/,
|
|
1753
1753
|
keyword: "and or not only",
|
|
1754
|
-
attribute:
|
|
1754
|
+
attribute: Vt.join(" ")
|
|
1755
1755
|
},
|
|
1756
1756
|
contains: [
|
|
1757
1757
|
{
|
|
@@ -1765,14 +1765,14 @@ function Wt(e) {
|
|
|
1765
1765
|
},
|
|
1766
1766
|
{
|
|
1767
1767
|
className: "selector-tag",
|
|
1768
|
-
begin: "\\b(" +
|
|
1768
|
+
begin: "\\b(" + Bt.join("|") + ")\\b"
|
|
1769
1769
|
}
|
|
1770
1770
|
]
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
1773
|
//#endregion
|
|
1774
1774
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js
|
|
1775
|
-
function
|
|
1775
|
+
function Kt(e) {
|
|
1776
1776
|
let t = e.regex;
|
|
1777
1777
|
return {
|
|
1778
1778
|
name: "Diff",
|
|
@@ -1810,7 +1810,7 @@ function Gt(e) {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
//#endregion
|
|
1812
1812
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js
|
|
1813
|
-
function
|
|
1813
|
+
function qt(e) {
|
|
1814
1814
|
let t = {
|
|
1815
1815
|
keyword: [
|
|
1816
1816
|
"break",
|
|
@@ -1949,7 +1949,7 @@ function Kt(e) {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
//#endregion
|
|
1951
1951
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js
|
|
1952
|
-
function
|
|
1952
|
+
function Jt(e) {
|
|
1953
1953
|
let t = e.regex;
|
|
1954
1954
|
return {
|
|
1955
1955
|
name: "GraphQL",
|
|
@@ -2015,7 +2015,7 @@ function qt(e) {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
//#endregion
|
|
2017
2017
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js
|
|
2018
|
-
function
|
|
2018
|
+
function Yt(e) {
|
|
2019
2019
|
let t = e.regex, n = {
|
|
2020
2020
|
className: "number",
|
|
2021
2021
|
relevance: 0,
|
|
@@ -2102,26 +2102,26 @@ function Jt(e) {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
//#endregion
|
|
2104
2104
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js
|
|
2105
|
-
var
|
|
2105
|
+
var Xt = "[0-9](_*[0-9])*", Zt = `\\.(${Xt})`, Qt = "[0-9a-fA-F](_*[0-9a-fA-F])*", $t = {
|
|
2106
2106
|
className: "number",
|
|
2107
2107
|
variants: [
|
|
2108
|
-
{ begin: `(\\b(${
|
|
2109
|
-
{ begin: `\\b(${
|
|
2110
|
-
{ begin: `(${
|
|
2111
|
-
{ begin: `\\b(${
|
|
2112
|
-
{ begin: `\\b0[xX]((${
|
|
2108
|
+
{ begin: `(\\b(${Xt})((${Zt})|\\.)?|(${Zt}))[eE][+-]?(${Xt})[fFdD]?\\b` },
|
|
2109
|
+
{ begin: `\\b(${Xt})((${Zt})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
2110
|
+
{ begin: `(${Zt})[fFdD]?\\b` },
|
|
2111
|
+
{ begin: `\\b(${Xt})[fFdD]\\b` },
|
|
2112
|
+
{ begin: `\\b0[xX]((${Qt})\\.?|(${Qt})?\\.(${Qt}))[pP][+-]?(${Xt})[fFdD]?\\b` },
|
|
2113
2113
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
2114
|
-
{ begin: `\\b0[xX](${
|
|
2114
|
+
{ begin: `\\b0[xX](${Qt})[lL]?\\b` },
|
|
2115
2115
|
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
2116
2116
|
{ begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
|
|
2117
2117
|
],
|
|
2118
2118
|
relevance: 0
|
|
2119
2119
|
};
|
|
2120
|
-
function
|
|
2121
|
-
return n === -1 ? "" : e.replace(t, (r) =>
|
|
2120
|
+
function en(e, t, n) {
|
|
2121
|
+
return n === -1 ? "" : e.replace(t, (r) => en(e, t, n - 1));
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2124
|
-
let t = e.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n +
|
|
2123
|
+
function tn(e) {
|
|
2124
|
+
let t = e.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n + en("(?:<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*~~~(?:\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*~~~)*>)?", /~~~/g, 2), i = {
|
|
2125
2125
|
keyword: /* @__PURE__ */ "synchronized.abstract.private.var.static.if.const .for.while.strictfp.finally.protected.import.native.final.void.enum.else.break.transient.catch.instanceof.volatile.case.assert.package.default.public.try.switch.continue.throws.protected.public.private.module.requires.exports.do.sealed.yield.permits.goto.when".split("."),
|
|
2126
2126
|
literal: [
|
|
2127
2127
|
"false",
|
|
@@ -2255,7 +2255,7 @@ function en(e) {
|
|
|
2255
2255
|
a,
|
|
2256
2256
|
e.APOS_STRING_MODE,
|
|
2257
2257
|
e.QUOTE_STRING_MODE,
|
|
2258
|
-
|
|
2258
|
+
$t,
|
|
2259
2259
|
e.C_BLOCK_COMMENT_MODE
|
|
2260
2260
|
]
|
|
2261
2261
|
},
|
|
@@ -2263,21 +2263,21 @@ function en(e) {
|
|
|
2263
2263
|
e.C_BLOCK_COMMENT_MODE
|
|
2264
2264
|
]
|
|
2265
2265
|
},
|
|
2266
|
-
|
|
2266
|
+
$t,
|
|
2267
2267
|
a
|
|
2268
2268
|
]
|
|
2269
2269
|
};
|
|
2270
2270
|
}
|
|
2271
2271
|
//#endregion
|
|
2272
2272
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js
|
|
2273
|
-
var
|
|
2273
|
+
var nn = "[A-Za-z$_][0-9A-Za-z$_]*", rn = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), an = [
|
|
2274
2274
|
"true",
|
|
2275
2275
|
"false",
|
|
2276
2276
|
"null",
|
|
2277
2277
|
"undefined",
|
|
2278
2278
|
"NaN",
|
|
2279
2279
|
"Infinity"
|
|
2280
|
-
],
|
|
2280
|
+
], on = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), sn = [
|
|
2281
2281
|
"Error",
|
|
2282
2282
|
"EvalError",
|
|
2283
2283
|
"InternalError",
|
|
@@ -2286,7 +2286,7 @@ var tn = "[A-Za-z$_][0-9A-Za-z$_]*", nn = /* @__PURE__ */ "as.in.of.if.for.while
|
|
|
2286
2286
|
"SyntaxError",
|
|
2287
2287
|
"TypeError",
|
|
2288
2288
|
"URIError"
|
|
2289
|
-
],
|
|
2289
|
+
], cn = [
|
|
2290
2290
|
"setInterval",
|
|
2291
2291
|
"setTimeout",
|
|
2292
2292
|
"clearInterval",
|
|
@@ -2304,7 +2304,7 @@ var tn = "[A-Za-z$_][0-9A-Za-z$_]*", nn = /* @__PURE__ */ "as.in.of.if.for.while
|
|
|
2304
2304
|
"encodeURIComponent",
|
|
2305
2305
|
"escape",
|
|
2306
2306
|
"unescape"
|
|
2307
|
-
],
|
|
2307
|
+
], ln = [
|
|
2308
2308
|
"arguments",
|
|
2309
2309
|
"this",
|
|
2310
2310
|
"super",
|
|
@@ -2315,12 +2315,12 @@ var tn = "[A-Za-z$_][0-9A-Za-z$_]*", nn = /* @__PURE__ */ "as.in.of.if.for.while
|
|
|
2315
2315
|
"sessionStorage",
|
|
2316
2316
|
"module",
|
|
2317
2317
|
"global"
|
|
2318
|
-
],
|
|
2319
|
-
function
|
|
2318
|
+
], un = [].concat(cn, on, sn);
|
|
2319
|
+
function dn(e) {
|
|
2320
2320
|
let t = e.regex, n = (e, { after: t }) => {
|
|
2321
2321
|
let n = "</" + e[0].slice(1);
|
|
2322
2322
|
return e.input.indexOf(n, t) !== -1;
|
|
2323
|
-
}, r =
|
|
2323
|
+
}, r = nn, i = {
|
|
2324
2324
|
begin: "<>",
|
|
2325
2325
|
end: "</>"
|
|
2326
2326
|
}, a = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
|
|
@@ -2344,11 +2344,11 @@ function un(e) {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
2346
|
}, s = {
|
|
2347
|
-
$pattern:
|
|
2348
|
-
keyword:
|
|
2349
|
-
literal:
|
|
2350
|
-
built_in:
|
|
2351
|
-
"variable.language":
|
|
2347
|
+
$pattern: nn,
|
|
2348
|
+
keyword: rn,
|
|
2349
|
+
literal: an,
|
|
2350
|
+
built_in: un,
|
|
2351
|
+
"variable.language": ln
|
|
2352
2352
|
}, c = "[0-9](_?[0-9])*", l = `\\.(${c})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
|
|
2353
2353
|
className: "number",
|
|
2354
2354
|
variants: [
|
|
@@ -2495,7 +2495,7 @@ function un(e) {
|
|
|
2495
2495
|
relevance: 0,
|
|
2496
2496
|
match: t.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
|
|
2497
2497
|
className: "title.class",
|
|
2498
|
-
keywords: { _: [...
|
|
2498
|
+
keywords: { _: [...on, ...sn] }
|
|
2499
2499
|
}, w = {
|
|
2500
2500
|
label: "use_strict",
|
|
2501
2501
|
className: "meta",
|
|
@@ -2525,7 +2525,7 @@ function un(e) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
let O = {
|
|
2527
2527
|
match: t.concat(/\b/, D([
|
|
2528
|
-
...
|
|
2528
|
+
...cn,
|
|
2529
2529
|
"super",
|
|
2530
2530
|
"import"
|
|
2531
2531
|
].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
|
|
@@ -2705,7 +2705,7 @@ function un(e) {
|
|
|
2705
2705
|
}
|
|
2706
2706
|
//#endregion
|
|
2707
2707
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js
|
|
2708
|
-
function
|
|
2708
|
+
function fn(e) {
|
|
2709
2709
|
let t = {
|
|
2710
2710
|
className: "attr",
|
|
2711
2711
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -2740,22 +2740,22 @@ function dn(e) {
|
|
|
2740
2740
|
}
|
|
2741
2741
|
//#endregion
|
|
2742
2742
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js
|
|
2743
|
-
var
|
|
2743
|
+
var pn = "[0-9](_*[0-9])*", mn = `\\.(${pn})`, hn = "[0-9a-fA-F](_*[0-9a-fA-F])*", gn = {
|
|
2744
2744
|
className: "number",
|
|
2745
2745
|
variants: [
|
|
2746
|
-
{ begin: `(\\b(${
|
|
2747
|
-
{ begin: `\\b(${
|
|
2748
|
-
{ begin: `(${
|
|
2749
|
-
{ begin: `\\b(${
|
|
2750
|
-
{ begin: `\\b0[xX]((${
|
|
2746
|
+
{ begin: `(\\b(${pn})((${mn})|\\.)?|(${mn}))[eE][+-]?(${pn})[fFdD]?\\b` },
|
|
2747
|
+
{ begin: `\\b(${pn})((${mn})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
2748
|
+
{ begin: `(${mn})[fFdD]?\\b` },
|
|
2749
|
+
{ begin: `\\b(${pn})[fFdD]\\b` },
|
|
2750
|
+
{ begin: `\\b0[xX]((${hn})\\.?|(${hn})?\\.(${hn}))[pP][+-]?(${pn})[fFdD]?\\b` },
|
|
2751
2751
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
2752
|
-
{ begin: `\\b0[xX](${
|
|
2752
|
+
{ begin: `\\b0[xX](${hn})[lL]?\\b` },
|
|
2753
2753
|
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
2754
2754
|
{ begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
|
|
2755
2755
|
],
|
|
2756
2756
|
relevance: 0
|
|
2757
2757
|
};
|
|
2758
|
-
function
|
|
2758
|
+
function _n(e) {
|
|
2759
2759
|
let t = {
|
|
2760
2760
|
keyword: "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
|
|
2761
2761
|
built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
|
|
@@ -2816,7 +2816,7 @@ function gn(e) {
|
|
|
2816
2816
|
end: /\)/,
|
|
2817
2817
|
contains: [e.inherit(o, { className: "string" }), "self"]
|
|
2818
2818
|
}]
|
|
2819
|
-
}, l =
|
|
2819
|
+
}, l = gn, u = e.COMMENT("/\\*", "\\*/", { contains: [e.C_BLOCK_COMMENT_MODE] }), d = { variants: [{
|
|
2820
2820
|
className: "type",
|
|
2821
2821
|
begin: e.UNDERSCORE_IDENT_RE
|
|
2822
2822
|
}, {
|
|
@@ -2940,7 +2940,7 @@ function gn(e) {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
//#endregion
|
|
2942
2942
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js
|
|
2943
|
-
var
|
|
2943
|
+
var vn = (e) => ({
|
|
2944
2944
|
IMPORTANT: {
|
|
2945
2945
|
scope: "meta",
|
|
2946
2946
|
begin: "!important"
|
|
@@ -2970,7 +2970,7 @@ var _n = (e) => ({
|
|
|
2970
2970
|
className: "attr",
|
|
2971
2971
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
2972
2972
|
}
|
|
2973
|
-
}),
|
|
2973
|
+
}), yn = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), bn = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), xn = [...yn, ...bn], Sn = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), Cn = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), wn = [
|
|
2974
2974
|
"after",
|
|
2975
2975
|
"backdrop",
|
|
2976
2976
|
"before",
|
|
@@ -2985,9 +2985,9 @@ var _n = (e) => ({
|
|
|
2985
2985
|
"selection",
|
|
2986
2986
|
"slotted",
|
|
2987
2987
|
"spelling-error"
|
|
2988
|
-
].sort().reverse(),
|
|
2989
|
-
function
|
|
2990
|
-
let t =
|
|
2988
|
+
].sort().reverse(), Tn = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse(), En = Cn.concat(wn).sort().reverse();
|
|
2989
|
+
function Dn(e) {
|
|
2990
|
+
let t = vn(e), n = En, r = "([\\w-]+|@\\{[\\w-]+\\})", i = [], a = [], o = function(e) {
|
|
2991
2991
|
return {
|
|
2992
2992
|
className: "string",
|
|
2993
2993
|
begin: "~?" + e + ".*?" + e
|
|
@@ -3001,7 +3001,7 @@ function En(e) {
|
|
|
3001
3001
|
}, c = {
|
|
3002
3002
|
$pattern: /[a-z-]+/,
|
|
3003
3003
|
keyword: "and or not only",
|
|
3004
|
-
attribute:
|
|
3004
|
+
attribute: Sn.join(" ")
|
|
3005
3005
|
}, l = {
|
|
3006
3006
|
begin: "\\(",
|
|
3007
3007
|
end: "\\)",
|
|
@@ -3041,7 +3041,7 @@ function En(e) {
|
|
|
3041
3041
|
t.CSS_VARIABLE,
|
|
3042
3042
|
{
|
|
3043
3043
|
className: "attribute",
|
|
3044
|
-
begin: "\\b(" +
|
|
3044
|
+
begin: "\\b(" + Tn.join("|") + ")\\b",
|
|
3045
3045
|
end: /(?=:)/,
|
|
3046
3046
|
starts: {
|
|
3047
3047
|
endsWithParent: !0,
|
|
@@ -3091,7 +3091,7 @@ function En(e) {
|
|
|
3091
3091
|
s("keyword", "all\\b"),
|
|
3092
3092
|
s("variable", "@\\{[\\w-]+\\}"),
|
|
3093
3093
|
{
|
|
3094
|
-
begin: "\\b(" +
|
|
3094
|
+
begin: "\\b(" + xn.join("|") + ")\\b",
|
|
3095
3095
|
className: "selector-tag"
|
|
3096
3096
|
},
|
|
3097
3097
|
t.CSS_NUMBER_MODE,
|
|
@@ -3102,11 +3102,11 @@ function En(e) {
|
|
|
3102
3102
|
t.ATTRIBUTE_SELECTOR_MODE,
|
|
3103
3103
|
{
|
|
3104
3104
|
className: "selector-pseudo",
|
|
3105
|
-
begin: ":(" +
|
|
3105
|
+
begin: ":(" + Cn.join("|") + ")"
|
|
3106
3106
|
},
|
|
3107
3107
|
{
|
|
3108
3108
|
className: "selector-pseudo",
|
|
3109
|
-
begin: ":(:)?(" +
|
|
3109
|
+
begin: ":(:)?(" + wn.join("|") + ")"
|
|
3110
3110
|
},
|
|
3111
3111
|
{
|
|
3112
3112
|
begin: /\(/,
|
|
@@ -3131,7 +3131,7 @@ function En(e) {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
//#endregion
|
|
3133
3133
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js
|
|
3134
|
-
function
|
|
3134
|
+
function On(e) {
|
|
3135
3135
|
let t = "\\[=*\\[", n = "\\]=*\\]", r = {
|
|
3136
3136
|
begin: t,
|
|
3137
3137
|
end: n,
|
|
@@ -3176,7 +3176,7 @@ function Dn(e) {
|
|
|
3176
3176
|
}
|
|
3177
3177
|
//#endregion
|
|
3178
3178
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/makefile.js
|
|
3179
|
-
function
|
|
3179
|
+
function kn(e) {
|
|
3180
3180
|
let t = {
|
|
3181
3181
|
className: "variable",
|
|
3182
3182
|
variants: [{
|
|
@@ -3232,7 +3232,7 @@ function On(e) {
|
|
|
3232
3232
|
}
|
|
3233
3233
|
//#endregion
|
|
3234
3234
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js
|
|
3235
|
-
function
|
|
3235
|
+
function An(e) {
|
|
3236
3236
|
let t = e.regex, n = {
|
|
3237
3237
|
begin: /<\/?[A-Za-z_]/,
|
|
3238
3238
|
end: ">",
|
|
@@ -3412,7 +3412,7 @@ function kn(e) {
|
|
|
3412
3412
|
}
|
|
3413
3413
|
//#endregion
|
|
3414
3414
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js
|
|
3415
|
-
function
|
|
3415
|
+
function jn(e) {
|
|
3416
3416
|
let t = {
|
|
3417
3417
|
className: "built_in",
|
|
3418
3418
|
begin: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
|
|
@@ -3528,7 +3528,7 @@ function An(e) {
|
|
|
3528
3528
|
}
|
|
3529
3529
|
//#endregion
|
|
3530
3530
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js
|
|
3531
|
-
function
|
|
3531
|
+
function Mn(e) {
|
|
3532
3532
|
let t = e.regex, n = /* @__PURE__ */ "abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0".split("."), r = /[dualxmsipngr]{0,12}/, i = {
|
|
3533
3533
|
$pattern: /[\w.]+/,
|
|
3534
3534
|
keyword: n.join(" ")
|
|
@@ -3719,7 +3719,7 @@ function jn(e) {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
//#endregion
|
|
3721
3721
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js
|
|
3722
|
-
function
|
|
3722
|
+
function Nn(e) {
|
|
3723
3723
|
let t = e.regex, n = /(?![A-Za-z0-9])(?![$])/, r = t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n), i = t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, n), a = t.concat(/[A-Z]+/, n), o = {
|
|
3724
3724
|
scope: "variable",
|
|
3725
3725
|
match: "\\$+" + r
|
|
@@ -4012,7 +4012,7 @@ function Mn(e) {
|
|
|
4012
4012
|
}
|
|
4013
4013
|
//#endregion
|
|
4014
4014
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js
|
|
4015
|
-
function
|
|
4015
|
+
function Pn(e) {
|
|
4016
4016
|
return {
|
|
4017
4017
|
name: "PHP template",
|
|
4018
4018
|
subLanguage: "xml",
|
|
@@ -4054,7 +4054,7 @@ function Nn(e) {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
//#endregion
|
|
4056
4056
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js
|
|
4057
|
-
function
|
|
4057
|
+
function Fn(e) {
|
|
4058
4058
|
return {
|
|
4059
4059
|
name: "Plain text",
|
|
4060
4060
|
aliases: ["text", "txt"],
|
|
@@ -4063,7 +4063,7 @@ function Pn(e) {
|
|
|
4063
4063
|
}
|
|
4064
4064
|
//#endregion
|
|
4065
4065
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js
|
|
4066
|
-
function
|
|
4066
|
+
function In(e) {
|
|
4067
4067
|
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
4068
4068
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
4069
4069
|
keyword: r,
|
|
@@ -4300,7 +4300,7 @@ function Fn(e) {
|
|
|
4300
4300
|
}
|
|
4301
4301
|
//#endregion
|
|
4302
4302
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js
|
|
4303
|
-
function
|
|
4303
|
+
function Ln(e) {
|
|
4304
4304
|
return {
|
|
4305
4305
|
aliases: ["pycon"],
|
|
4306
4306
|
contains: [{
|
|
@@ -4318,7 +4318,7 @@ function In(e) {
|
|
|
4318
4318
|
}
|
|
4319
4319
|
//#endregion
|
|
4320
4320
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/r.js
|
|
4321
|
-
function
|
|
4321
|
+
function Rn(e) {
|
|
4322
4322
|
let t = e.regex, n = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/), i = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/, a = t.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
4323
4323
|
return {
|
|
4324
4324
|
name: "R",
|
|
@@ -4457,7 +4457,7 @@ function Ln(e) {
|
|
|
4457
4457
|
}
|
|
4458
4458
|
//#endregion
|
|
4459
4459
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.js
|
|
4460
|
-
function
|
|
4460
|
+
function zn(e) {
|
|
4461
4461
|
let t = e.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = t.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), i = t.concat(r, /(::\w+)*/), a = {
|
|
4462
4462
|
"variable.constant": [
|
|
4463
4463
|
"__FILE__",
|
|
@@ -4718,7 +4718,7 @@ function Rn(e) {
|
|
|
4718
4718
|
}
|
|
4719
4719
|
//#endregion
|
|
4720
4720
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js
|
|
4721
|
-
function
|
|
4721
|
+
function Bn(e) {
|
|
4722
4722
|
let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
|
|
4723
4723
|
className: "title.function.invoke",
|
|
4724
4724
|
relevance: 0,
|
|
@@ -4886,7 +4886,7 @@ function zn(e) {
|
|
|
4886
4886
|
}
|
|
4887
4887
|
//#endregion
|
|
4888
4888
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js
|
|
4889
|
-
var
|
|
4889
|
+
var Vn = (e) => ({
|
|
4890
4890
|
IMPORTANT: {
|
|
4891
4891
|
scope: "meta",
|
|
4892
4892
|
begin: "!important"
|
|
@@ -4916,7 +4916,7 @@ var Bn = (e) => ({
|
|
|
4916
4916
|
className: "attr",
|
|
4917
4917
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
4918
4918
|
}
|
|
4919
|
-
}),
|
|
4919
|
+
}), Hn = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), Un = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), Wn = [...Hn, ...Un], Gn = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), Kn = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), qn = [
|
|
4920
4920
|
"after",
|
|
4921
4921
|
"backdrop",
|
|
4922
4922
|
"before",
|
|
@@ -4931,9 +4931,9 @@ var Bn = (e) => ({
|
|
|
4931
4931
|
"selection",
|
|
4932
4932
|
"slotted",
|
|
4933
4933
|
"spelling-error"
|
|
4934
|
-
].sort().reverse(),
|
|
4935
|
-
function
|
|
4936
|
-
let t =
|
|
4934
|
+
].sort().reverse(), Jn = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
|
|
4935
|
+
function Yn(e) {
|
|
4936
|
+
let t = Vn(e), n = qn, r = Kn, i = "@[a-z-]+", a = {
|
|
4937
4937
|
className: "variable",
|
|
4938
4938
|
begin: "(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",
|
|
4939
4939
|
relevance: 0
|
|
@@ -4959,7 +4959,7 @@ function Jn(e) {
|
|
|
4959
4959
|
t.ATTRIBUTE_SELECTOR_MODE,
|
|
4960
4960
|
{
|
|
4961
4961
|
className: "selector-tag",
|
|
4962
|
-
begin: "\\b(" +
|
|
4962
|
+
begin: "\\b(" + Wn.join("|") + ")\\b",
|
|
4963
4963
|
relevance: 0
|
|
4964
4964
|
},
|
|
4965
4965
|
{
|
|
@@ -4979,7 +4979,7 @@ function Jn(e) {
|
|
|
4979
4979
|
t.CSS_VARIABLE,
|
|
4980
4980
|
{
|
|
4981
4981
|
className: "attribute",
|
|
4982
|
-
begin: "\\b(" +
|
|
4982
|
+
begin: "\\b(" + Jn.join("|") + ")\\b"
|
|
4983
4983
|
},
|
|
4984
4984
|
{ begin: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" },
|
|
4985
4985
|
{
|
|
@@ -5011,7 +5011,7 @@ function Jn(e) {
|
|
|
5011
5011
|
keywords: {
|
|
5012
5012
|
$pattern: /[a-z-]+/,
|
|
5013
5013
|
keyword: "and or not only",
|
|
5014
|
-
attribute:
|
|
5014
|
+
attribute: Gn.join(" ")
|
|
5015
5015
|
},
|
|
5016
5016
|
contains: [
|
|
5017
5017
|
{
|
|
@@ -5035,7 +5035,7 @@ function Jn(e) {
|
|
|
5035
5035
|
}
|
|
5036
5036
|
//#endregion
|
|
5037
5037
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js
|
|
5038
|
-
function
|
|
5038
|
+
function Xn(e) {
|
|
5039
5039
|
return {
|
|
5040
5040
|
name: "Shell Session",
|
|
5041
5041
|
aliases: ["console", "shellsession"],
|
|
@@ -5051,7 +5051,7 @@ function Yn(e) {
|
|
|
5051
5051
|
}
|
|
5052
5052
|
//#endregion
|
|
5053
5053
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js
|
|
5054
|
-
function
|
|
5054
|
+
function Zn(e) {
|
|
5055
5055
|
let t = e.regex, n = e.COMMENT("--", "$"), r = {
|
|
5056
5056
|
scope: "string",
|
|
5057
5057
|
variants: [{
|
|
@@ -5168,23 +5168,23 @@ function Xn(e) {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
//#endregion
|
|
5170
5170
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js
|
|
5171
|
-
function
|
|
5171
|
+
function Qn(e) {
|
|
5172
5172
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
5173
5173
|
}
|
|
5174
|
-
function
|
|
5174
|
+
function $n(e) {
|
|
5175
5175
|
return Z("(?=", e, ")");
|
|
5176
5176
|
}
|
|
5177
5177
|
function Z(...e) {
|
|
5178
|
-
return e.map((e) =>
|
|
5178
|
+
return e.map((e) => Qn(e)).join("");
|
|
5179
5179
|
}
|
|
5180
|
-
function
|
|
5180
|
+
function er(e) {
|
|
5181
5181
|
let t = e[e.length - 1];
|
|
5182
5182
|
return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
|
|
5183
5183
|
}
|
|
5184
5184
|
function Q(...e) {
|
|
5185
|
-
return "(" + (
|
|
5185
|
+
return "(" + (er(e).capture ? "" : "?:") + e.map((e) => Qn(e)).join("|") + ")";
|
|
5186
5186
|
}
|
|
5187
|
-
var
|
|
5187
|
+
var tr = (e) => Z(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), nr = ["Protocol", "Type"].map(tr), rr = ["init", "self"].map(tr), ir = ["Any", "Self"], ar = [
|
|
5188
5188
|
"actor",
|
|
5189
5189
|
"any",
|
|
5190
5190
|
"associatedtype",
|
|
@@ -5279,11 +5279,11 @@ var er = (e) => Z(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), tr = ["Protocol", "Type
|
|
|
5279
5279
|
"where",
|
|
5280
5280
|
"while",
|
|
5281
5281
|
"willSet"
|
|
5282
|
-
],
|
|
5282
|
+
], or = [
|
|
5283
5283
|
"false",
|
|
5284
5284
|
"nil",
|
|
5285
5285
|
"true"
|
|
5286
|
-
],
|
|
5286
|
+
], sr = [
|
|
5287
5287
|
"assignment",
|
|
5288
5288
|
"associativity",
|
|
5289
5289
|
"higherThan",
|
|
@@ -5291,7 +5291,7 @@ var er = (e) => Z(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), tr = ["Protocol", "Type
|
|
|
5291
5291
|
"lowerThan",
|
|
5292
5292
|
"none",
|
|
5293
5293
|
"right"
|
|
5294
|
-
],
|
|
5294
|
+
], cr = [
|
|
5295
5295
|
"#colorLiteral",
|
|
5296
5296
|
"#column",
|
|
5297
5297
|
"#dsohandle",
|
|
@@ -5311,7 +5311,7 @@ var er = (e) => Z(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), tr = ["Protocol", "Type
|
|
|
5311
5311
|
"#selector",
|
|
5312
5312
|
"#sourceLocation",
|
|
5313
5313
|
"#warning"
|
|
5314
|
-
],
|
|
5314
|
+
], lr = /* @__PURE__ */ "abs.all.any.assert.assertionFailure.debugPrint.dump.fatalError.getVaList.isKnownUniquelyReferenced.max.min.numericCast.pointwiseMax.pointwiseMin.precondition.preconditionFailure.print.readLine.repeatElement.sequence.stride.swap.swift_unboxFromSwiftValueWithType.transcode.type.unsafeBitCast.unsafeDowncast.withExtendedLifetime.withUnsafeMutablePointer.withUnsafePointer.withVaList.withoutActuallyEscaping.zip".split("."), ur = Q(/[/=\-+!*%<>&|^~?]/, /[\u00A1-\u00A7]/, /[\u00A9\u00AB]/, /[\u00AC\u00AE]/, /[\u00B0\u00B1]/, /[\u00B6\u00BB\u00BF\u00D7\u00F7]/, /[\u2016-\u2017]/, /[\u2020-\u2027]/, /[\u2030-\u203E]/, /[\u2041-\u2053]/, /[\u2055-\u205E]/, /[\u2190-\u23FF]/, /[\u2500-\u2775]/, /[\u2794-\u2BFF]/, /[\u2E00-\u2E7F]/, /[\u3001-\u3003]/, /[\u3008-\u3020]/, /[\u3030]/), dr = Q(ur, /[\u0300-\u036F]/, /[\u1DC0-\u1DFF]/, /[\u20D0-\u20FF]/, /[\uFE00-\uFE0F]/, /[\uFE20-\uFE2F]/), fr = Z(ur, dr, "*"), pr = Q(/[a-zA-Z_]/, /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, /[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/, /[\u1E00-\u1FFF]/, /[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/, /[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/, /[\u2C00-\u2DFF\u2E80-\u2FFF]/, /[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/, /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, /[\uFE47-\uFEFE\uFF00-\uFFFD]/), mr = Q(pr, /\d/, /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/), $ = Z(pr, mr, "*"), hr = Z(/[A-Z]/, mr, "*"), gr = [
|
|
5315
5315
|
"attached",
|
|
5316
5316
|
"autoclosure",
|
|
5317
5317
|
Z(/convention\(/, Q("swift", "block", "c"), /\)/),
|
|
@@ -5346,7 +5346,7 @@ var er = (e) => Z(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), tr = ["Protocol", "Type
|
|
|
5346
5346
|
"unknown",
|
|
5347
5347
|
"usableFromInline",
|
|
5348
5348
|
"warn_unqualified_access"
|
|
5349
|
-
],
|
|
5349
|
+
], _r = [
|
|
5350
5350
|
"iOS",
|
|
5351
5351
|
"iOSApplicationExtension",
|
|
5352
5352
|
"macOS",
|
|
@@ -5359,40 +5359,40 @@ var er = (e) => Z(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), tr = ["Protocol", "Type
|
|
|
5359
5359
|
"tvOSApplicationExtension",
|
|
5360
5360
|
"swift"
|
|
5361
5361
|
];
|
|
5362
|
-
function
|
|
5362
|
+
function vr(e) {
|
|
5363
5363
|
let t = {
|
|
5364
5364
|
match: /\s+/,
|
|
5365
5365
|
relevance: 0
|
|
5366
5366
|
}, n = e.COMMENT("/\\*", "\\*/", { contains: ["self"] }), r = [e.C_LINE_COMMENT_MODE, n], i = {
|
|
5367
|
-
match: [/\./, Q(...
|
|
5367
|
+
match: [/\./, Q(...nr, ...rr)],
|
|
5368
5368
|
className: { 2: "keyword" }
|
|
5369
5369
|
}, a = {
|
|
5370
|
-
match: Z(/\./, Q(...
|
|
5370
|
+
match: Z(/\./, Q(...ar)),
|
|
5371
5371
|
relevance: 0
|
|
5372
|
-
}, o =
|
|
5372
|
+
}, o = ar.filter((e) => typeof e == "string").concat(["_|0"]), s = { variants: [{
|
|
5373
5373
|
className: "keyword",
|
|
5374
|
-
match: Q(...
|
|
5374
|
+
match: Q(...ar.filter((e) => typeof e != "string").concat(ir).map(tr), ...rr)
|
|
5375
5375
|
}] }, c = {
|
|
5376
5376
|
$pattern: Q(/\b\w+/, /#\w+/),
|
|
5377
|
-
keyword: o.concat(
|
|
5378
|
-
literal:
|
|
5377
|
+
keyword: o.concat(cr),
|
|
5378
|
+
literal: or
|
|
5379
5379
|
}, l = [
|
|
5380
5380
|
i,
|
|
5381
5381
|
a,
|
|
5382
5382
|
s
|
|
5383
5383
|
], u = [{
|
|
5384
|
-
match: Z(/\./, Q(...
|
|
5384
|
+
match: Z(/\./, Q(...lr)),
|
|
5385
5385
|
relevance: 0
|
|
5386
5386
|
}, {
|
|
5387
5387
|
className: "built_in",
|
|
5388
|
-
match: Z(/\b/, Q(...
|
|
5388
|
+
match: Z(/\b/, Q(...lr), /(?=\()/)
|
|
5389
5389
|
}], d = {
|
|
5390
5390
|
match: /->/,
|
|
5391
5391
|
relevance: 0
|
|
5392
5392
|
}, f = [d, {
|
|
5393
5393
|
className: "operator",
|
|
5394
5394
|
relevance: 0,
|
|
5395
|
-
variants: [{ match:
|
|
5395
|
+
variants: [{ match: fr }, { match: `\\.(\\.|${dr})+` }]
|
|
5396
5396
|
}], p = "([0-9]_*)+", m = "([0-9a-fA-F]_*)+", h = {
|
|
5397
5397
|
className: "number",
|
|
5398
5398
|
relevance: 0,
|
|
@@ -5473,7 +5473,7 @@ function _r(e) {
|
|
|
5473
5473
|
},
|
|
5474
5474
|
{
|
|
5475
5475
|
className: "variable",
|
|
5476
|
-
match: `\\$${
|
|
5476
|
+
match: `\\$${mr}+`
|
|
5477
5477
|
}
|
|
5478
5478
|
], O = [
|
|
5479
5479
|
{
|
|
@@ -5482,7 +5482,7 @@ function _r(e) {
|
|
|
5482
5482
|
starts: { contains: [{
|
|
5483
5483
|
begin: /\(/,
|
|
5484
5484
|
end: /\)/,
|
|
5485
|
-
keywords:
|
|
5485
|
+
keywords: _r,
|
|
5486
5486
|
contains: [
|
|
5487
5487
|
...f,
|
|
5488
5488
|
h,
|
|
@@ -5492,23 +5492,23 @@ function _r(e) {
|
|
|
5492
5492
|
},
|
|
5493
5493
|
{
|
|
5494
5494
|
scope: "keyword",
|
|
5495
|
-
match: Z(/@/, Q(...
|
|
5495
|
+
match: Z(/@/, Q(...gr), $n(Q(/\(/, /\s+/)))
|
|
5496
5496
|
},
|
|
5497
5497
|
{
|
|
5498
5498
|
scope: "meta",
|
|
5499
5499
|
match: Z(/@/, $)
|
|
5500
5500
|
}
|
|
5501
5501
|
], k = {
|
|
5502
|
-
match:
|
|
5502
|
+
match: $n(/\b[A-Z]/),
|
|
5503
5503
|
relevance: 0,
|
|
5504
5504
|
contains: [
|
|
5505
5505
|
{
|
|
5506
5506
|
className: "type",
|
|
5507
|
-
match: Z(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,
|
|
5507
|
+
match: Z(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, mr, "+")
|
|
5508
5508
|
},
|
|
5509
5509
|
{
|
|
5510
5510
|
className: "type",
|
|
5511
|
-
match:
|
|
5511
|
+
match: hr,
|
|
5512
5512
|
relevance: 0
|
|
5513
5513
|
},
|
|
5514
5514
|
{
|
|
@@ -5520,7 +5520,7 @@ function _r(e) {
|
|
|
5520
5520
|
relevance: 0
|
|
5521
5521
|
},
|
|
5522
5522
|
{
|
|
5523
|
-
match: Z(/\s+&\s+/,
|
|
5523
|
+
match: Z(/\s+&\s+/, $n(hr)),
|
|
5524
5524
|
relevance: 0
|
|
5525
5525
|
}
|
|
5526
5526
|
]
|
|
@@ -5571,7 +5571,7 @@ function _r(e) {
|
|
|
5571
5571
|
keywords: c,
|
|
5572
5572
|
contains: [
|
|
5573
5573
|
{
|
|
5574
|
-
begin: Q(
|
|
5574
|
+
begin: Q($n(Z($, /\s*:/)), $n(Z($, /\s+/, $, /\s*:/))),
|
|
5575
5575
|
end: /:/,
|
|
5576
5576
|
relevance: 0,
|
|
5577
5577
|
contains: [{
|
|
@@ -5597,7 +5597,7 @@ function _r(e) {
|
|
|
5597
5597
|
match: [
|
|
5598
5598
|
/(func|macro)/,
|
|
5599
5599
|
/\s+/,
|
|
5600
|
-
Q(E.match, $,
|
|
5600
|
+
Q(E.match, $, fr)
|
|
5601
5601
|
],
|
|
5602
5602
|
className: {
|
|
5603
5603
|
1: "keyword",
|
|
@@ -5622,7 +5622,7 @@ function _r(e) {
|
|
|
5622
5622
|
match: [
|
|
5623
5623
|
/operator/,
|
|
5624
5624
|
/\s+/,
|
|
5625
|
-
|
|
5625
|
+
fr
|
|
5626
5626
|
],
|
|
5627
5627
|
className: {
|
|
5628
5628
|
1: "keyword",
|
|
@@ -5632,14 +5632,14 @@ function _r(e) {
|
|
|
5632
5632
|
begin: [
|
|
5633
5633
|
/precedencegroup/,
|
|
5634
5634
|
/\s+/,
|
|
5635
|
-
|
|
5635
|
+
hr
|
|
5636
5636
|
],
|
|
5637
5637
|
className: {
|
|
5638
5638
|
1: "keyword",
|
|
5639
5639
|
3: "title"
|
|
5640
5640
|
},
|
|
5641
5641
|
contains: [k],
|
|
5642
|
-
keywords: [...
|
|
5642
|
+
keywords: [...sr, ...or],
|
|
5643
5643
|
end: /}/
|
|
5644
5644
|
}, R = {
|
|
5645
5645
|
match: [
|
|
@@ -5685,7 +5685,7 @@ function _r(e) {
|
|
|
5685
5685
|
keywords: c,
|
|
5686
5686
|
contains: [{
|
|
5687
5687
|
scope: "title.class.inherited",
|
|
5688
|
-
match:
|
|
5688
|
+
match: hr
|
|
5689
5689
|
}, ...l],
|
|
5690
5690
|
relevance: 0
|
|
5691
5691
|
}
|
|
@@ -5741,14 +5741,14 @@ function _r(e) {
|
|
|
5741
5741
|
}
|
|
5742
5742
|
//#endregion
|
|
5743
5743
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js
|
|
5744
|
-
var
|
|
5744
|
+
var yr = "[A-Za-z$_][0-9A-Za-z$_]*", br = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), xr = [
|
|
5745
5745
|
"true",
|
|
5746
5746
|
"false",
|
|
5747
5747
|
"null",
|
|
5748
5748
|
"undefined",
|
|
5749
5749
|
"NaN",
|
|
5750
5750
|
"Infinity"
|
|
5751
|
-
],
|
|
5751
|
+
], Sr = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), Cr = [
|
|
5752
5752
|
"Error",
|
|
5753
5753
|
"EvalError",
|
|
5754
5754
|
"InternalError",
|
|
@@ -5757,7 +5757,7 @@ var vr = "[A-Za-z$_][0-9A-Za-z$_]*", yr = /* @__PURE__ */ "as.in.of.if.for.while
|
|
|
5757
5757
|
"SyntaxError",
|
|
5758
5758
|
"TypeError",
|
|
5759
5759
|
"URIError"
|
|
5760
|
-
],
|
|
5760
|
+
], wr = [
|
|
5761
5761
|
"setInterval",
|
|
5762
5762
|
"setTimeout",
|
|
5763
5763
|
"clearInterval",
|
|
@@ -5775,7 +5775,7 @@ var vr = "[A-Za-z$_][0-9A-Za-z$_]*", yr = /* @__PURE__ */ "as.in.of.if.for.while
|
|
|
5775
5775
|
"encodeURIComponent",
|
|
5776
5776
|
"escape",
|
|
5777
5777
|
"unescape"
|
|
5778
|
-
],
|
|
5778
|
+
], Tr = [
|
|
5779
5779
|
"arguments",
|
|
5780
5780
|
"this",
|
|
5781
5781
|
"super",
|
|
@@ -5786,12 +5786,12 @@ var vr = "[A-Za-z$_][0-9A-Za-z$_]*", yr = /* @__PURE__ */ "as.in.of.if.for.while
|
|
|
5786
5786
|
"sessionStorage",
|
|
5787
5787
|
"module",
|
|
5788
5788
|
"global"
|
|
5789
|
-
],
|
|
5790
|
-
function
|
|
5789
|
+
], Er = [].concat(wr, Sr, Cr);
|
|
5790
|
+
function Dr(e) {
|
|
5791
5791
|
let t = e.regex, n = (e, { after: t }) => {
|
|
5792
5792
|
let n = "</" + e[0].slice(1);
|
|
5793
5793
|
return e.input.indexOf(n, t) !== -1;
|
|
5794
|
-
}, r =
|
|
5794
|
+
}, r = yr, i = {
|
|
5795
5795
|
begin: "<>",
|
|
5796
5796
|
end: "</>"
|
|
5797
5797
|
}, a = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
|
|
@@ -5815,11 +5815,11 @@ function Er(e) {
|
|
|
5815
5815
|
}
|
|
5816
5816
|
}
|
|
5817
5817
|
}, s = {
|
|
5818
|
-
$pattern:
|
|
5819
|
-
keyword:
|
|
5820
|
-
literal:
|
|
5821
|
-
built_in:
|
|
5822
|
-
"variable.language":
|
|
5818
|
+
$pattern: yr,
|
|
5819
|
+
keyword: br,
|
|
5820
|
+
literal: xr,
|
|
5821
|
+
built_in: Er,
|
|
5822
|
+
"variable.language": Tr
|
|
5823
5823
|
}, c = "[0-9](_?[0-9])*", l = `\\.(${c})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
|
|
5824
5824
|
className: "number",
|
|
5825
5825
|
variants: [
|
|
@@ -5966,7 +5966,7 @@ function Er(e) {
|
|
|
5966
5966
|
relevance: 0,
|
|
5967
5967
|
match: t.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
|
|
5968
5968
|
className: "title.class",
|
|
5969
|
-
keywords: { _: [...
|
|
5969
|
+
keywords: { _: [...Sr, ...Cr] }
|
|
5970
5970
|
}, w = {
|
|
5971
5971
|
label: "use_strict",
|
|
5972
5972
|
className: "meta",
|
|
@@ -5996,7 +5996,7 @@ function Er(e) {
|
|
|
5996
5996
|
}
|
|
5997
5997
|
let O = {
|
|
5998
5998
|
match: t.concat(/\b/, D([
|
|
5999
|
-
...
|
|
5999
|
+
...wr,
|
|
6000
6000
|
"super",
|
|
6001
6001
|
"import"
|
|
6002
6002
|
].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
|
|
@@ -6174,8 +6174,8 @@ function Er(e) {
|
|
|
6174
6174
|
]
|
|
6175
6175
|
};
|
|
6176
6176
|
}
|
|
6177
|
-
function
|
|
6178
|
-
let t = e.regex, n =
|
|
6177
|
+
function Or(e) {
|
|
6178
|
+
let t = e.regex, n = Dr(e), r = yr, i = [
|
|
6179
6179
|
"any",
|
|
6180
6180
|
"void",
|
|
6181
6181
|
"number",
|
|
@@ -6210,8 +6210,8 @@ function Dr(e) {
|
|
|
6210
6210
|
relevance: 10,
|
|
6211
6211
|
begin: /^\s*['"]use strict['"]/
|
|
6212
6212
|
}, c = {
|
|
6213
|
-
$pattern:
|
|
6214
|
-
keyword:
|
|
6213
|
+
$pattern: yr,
|
|
6214
|
+
keyword: br.concat([
|
|
6215
6215
|
"type",
|
|
6216
6216
|
"interface",
|
|
6217
6217
|
"public",
|
|
@@ -6225,9 +6225,9 @@ function Dr(e) {
|
|
|
6225
6225
|
"override",
|
|
6226
6226
|
"satisfies"
|
|
6227
6227
|
]),
|
|
6228
|
-
literal:
|
|
6229
|
-
built_in:
|
|
6230
|
-
"variable.language":
|
|
6228
|
+
literal: xr,
|
|
6229
|
+
built_in: Er.concat(i),
|
|
6230
|
+
"variable.language": Tr
|
|
6231
6231
|
}, l = {
|
|
6232
6232
|
className: "meta",
|
|
6233
6233
|
begin: "@[A-Za-z$_][0-9A-Za-z$_]*"
|
|
@@ -6261,7 +6261,7 @@ function Dr(e) {
|
|
|
6261
6261
|
}
|
|
6262
6262
|
//#endregion
|
|
6263
6263
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js
|
|
6264
|
-
function
|
|
6264
|
+
function kr(e) {
|
|
6265
6265
|
let t = e.regex, n = {
|
|
6266
6266
|
className: "string",
|
|
6267
6267
|
begin: /"(""|[^/n])"C\b/
|
|
@@ -6329,7 +6329,7 @@ function Or(e) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
//#endregion
|
|
6331
6331
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js
|
|
6332
|
-
function
|
|
6332
|
+
function Ar(e) {
|
|
6333
6333
|
e.regex;
|
|
6334
6334
|
let t = e.COMMENT(/\(;/, /;\)/);
|
|
6335
6335
|
return t.contains.push("self"), {
|
|
@@ -6391,7 +6391,7 @@ function kr(e) {
|
|
|
6391
6391
|
}
|
|
6392
6392
|
//#endregion
|
|
6393
6393
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js
|
|
6394
|
-
function
|
|
6394
|
+
function jr(e) {
|
|
6395
6395
|
let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
|
|
6396
6396
|
className: "symbol",
|
|
6397
6397
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
@@ -6556,7 +6556,7 @@ function Ar(e) {
|
|
|
6556
6556
|
}
|
|
6557
6557
|
//#endregion
|
|
6558
6558
|
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js
|
|
6559
|
-
function
|
|
6559
|
+
function Mr(e) {
|
|
6560
6560
|
let t = "true false yes no null", n = {
|
|
6561
6561
|
className: "attr",
|
|
6562
6562
|
variants: [
|
|
@@ -6699,45 +6699,45 @@ function jr(e) {
|
|
|
6699
6699
|
}
|
|
6700
6700
|
//#endregion
|
|
6701
6701
|
//#region node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js
|
|
6702
|
-
var
|
|
6703
|
-
arduino:
|
|
6704
|
-
bash:
|
|
6705
|
-
c:
|
|
6706
|
-
cpp:
|
|
6707
|
-
csharp:
|
|
6708
|
-
css:
|
|
6709
|
-
diff:
|
|
6710
|
-
go:
|
|
6711
|
-
graphql:
|
|
6712
|
-
ini:
|
|
6713
|
-
java:
|
|
6714
|
-
javascript:
|
|
6715
|
-
json:
|
|
6716
|
-
kotlin:
|
|
6717
|
-
less:
|
|
6718
|
-
lua:
|
|
6719
|
-
makefile:
|
|
6720
|
-
markdown:
|
|
6721
|
-
objectivec:
|
|
6722
|
-
perl:
|
|
6723
|
-
php:
|
|
6724
|
-
"php-template":
|
|
6725
|
-
plaintext:
|
|
6726
|
-
python:
|
|
6727
|
-
"python-repl":
|
|
6728
|
-
r:
|
|
6729
|
-
ruby:
|
|
6730
|
-
rust:
|
|
6731
|
-
scss:
|
|
6732
|
-
shell:
|
|
6733
|
-
sql:
|
|
6734
|
-
swift:
|
|
6735
|
-
typescript:
|
|
6736
|
-
vbnet:
|
|
6737
|
-
wasm:
|
|
6738
|
-
xml:
|
|
6739
|
-
yaml:
|
|
6740
|
-
},
|
|
6702
|
+
var Nr = {
|
|
6703
|
+
arduino: Mt,
|
|
6704
|
+
bash: Nt,
|
|
6705
|
+
c: Pt,
|
|
6706
|
+
cpp: Ft,
|
|
6707
|
+
csharp: It,
|
|
6708
|
+
css: Gt,
|
|
6709
|
+
diff: Kt,
|
|
6710
|
+
go: qt,
|
|
6711
|
+
graphql: Jt,
|
|
6712
|
+
ini: Yt,
|
|
6713
|
+
java: tn,
|
|
6714
|
+
javascript: dn,
|
|
6715
|
+
json: fn,
|
|
6716
|
+
kotlin: _n,
|
|
6717
|
+
less: Dn,
|
|
6718
|
+
lua: On,
|
|
6719
|
+
makefile: kn,
|
|
6720
|
+
markdown: An,
|
|
6721
|
+
objectivec: jn,
|
|
6722
|
+
perl: Mn,
|
|
6723
|
+
php: Nn,
|
|
6724
|
+
"php-template": Pn,
|
|
6725
|
+
plaintext: Fn,
|
|
6726
|
+
python: In,
|
|
6727
|
+
"python-repl": Ln,
|
|
6728
|
+
r: Rn,
|
|
6729
|
+
ruby: zn,
|
|
6730
|
+
rust: Bn,
|
|
6731
|
+
scss: Yn,
|
|
6732
|
+
shell: Xn,
|
|
6733
|
+
sql: Zn,
|
|
6734
|
+
swift: vr,
|
|
6735
|
+
typescript: Or,
|
|
6736
|
+
vbnet: kr,
|
|
6737
|
+
wasm: Ar,
|
|
6738
|
+
xml: jr,
|
|
6739
|
+
yaml: Mr
|
|
6740
|
+
}, Pr = (/* @__PURE__ */ rt((/* @__PURE__ */ tt(((e, t) => {
|
|
6741
6741
|
function n(e) {
|
|
6742
6742
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
6743
6743
|
throw Error("map is read-only");
|
|
@@ -7027,16 +7027,16 @@ var Mr = {
|
|
|
7027
7027
|
function ne(e, t) {
|
|
7028
7028
|
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
7029
7029
|
}
|
|
7030
|
-
function
|
|
7030
|
+
function H(e, t) {
|
|
7031
7031
|
if (e.match) {
|
|
7032
7032
|
if (e.begin || e.end) throw Error("begin & end are not supported with match");
|
|
7033
7033
|
e.begin = e.match, delete e.match;
|
|
7034
7034
|
}
|
|
7035
7035
|
}
|
|
7036
|
-
function
|
|
7036
|
+
function re(e, t) {
|
|
7037
7037
|
e.relevance === void 0 && (e.relevance = 1);
|
|
7038
7038
|
}
|
|
7039
|
-
var
|
|
7039
|
+
var U = (e, t) => {
|
|
7040
7040
|
if (!e.beforeMatch) return;
|
|
7041
7041
|
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
7042
7042
|
let n = Object.assign({}, e);
|
|
@@ -7046,7 +7046,7 @@ var Mr = {
|
|
|
7046
7046
|
relevance: 0,
|
|
7047
7047
|
contains: [Object.assign(n, { endsParent: !0 })]
|
|
7048
7048
|
}, e.relevance = 0, delete n.beforeMatch;
|
|
7049
|
-
},
|
|
7049
|
+
}, ie = [
|
|
7050
7050
|
"of",
|
|
7051
7051
|
"and",
|
|
7052
7052
|
"for",
|
|
@@ -7058,8 +7058,8 @@ var Mr = {
|
|
|
7058
7058
|
"parent",
|
|
7059
7059
|
"list",
|
|
7060
7060
|
"value"
|
|
7061
|
-
],
|
|
7062
|
-
function oe(e, t, n =
|
|
7061
|
+
], ae = "keyword";
|
|
7062
|
+
function oe(e, t, n = ae) {
|
|
7063
7063
|
let r = Object.create(null);
|
|
7064
7064
|
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
|
|
7065
7065
|
Object.assign(r, oe(e[n], t, n));
|
|
@@ -7075,7 +7075,7 @@ var Mr = {
|
|
|
7075
7075
|
return t ? Number(t) : +!se(e);
|
|
7076
7076
|
}
|
|
7077
7077
|
function se(e) {
|
|
7078
|
-
return
|
|
7078
|
+
return ie.includes(e.toLowerCase());
|
|
7079
7079
|
}
|
|
7080
7080
|
var ce = {}, G = (e) => {
|
|
7081
7081
|
console.error(e);
|
|
@@ -7174,13 +7174,13 @@ var Mr = {
|
|
|
7174
7174
|
if (n.isCompiled) return a;
|
|
7175
7175
|
[
|
|
7176
7176
|
ee,
|
|
7177
|
-
|
|
7177
|
+
H,
|
|
7178
7178
|
me,
|
|
7179
|
-
|
|
7179
|
+
U
|
|
7180
7180
|
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
7181
7181
|
te,
|
|
7182
7182
|
ne,
|
|
7183
|
-
|
|
7183
|
+
re
|
|
7184
7184
|
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
7185
7185
|
let s = null;
|
|
7186
7186
|
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= oe(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
@@ -7578,9 +7578,9 @@ var Mr = {
|
|
|
7578
7578
|
return Object.assign(e, B), e;
|
|
7579
7579
|
}, J = we({});
|
|
7580
7580
|
J.newInstance = () => we({}), t.exports = J, J.HighlightJS = J, J.default = J;
|
|
7581
|
-
})))())).default,
|
|
7582
|
-
function
|
|
7583
|
-
let t =
|
|
7581
|
+
})))())).default, Fr = {}, Ir = "hljs-";
|
|
7582
|
+
function Lr(e) {
|
|
7583
|
+
let t = Pr.newInstance();
|
|
7584
7584
|
return e && a(e), {
|
|
7585
7585
|
highlight: n,
|
|
7586
7586
|
highlightAuto: r,
|
|
@@ -7590,10 +7590,10 @@ function Ir(e) {
|
|
|
7590
7590
|
registered: s
|
|
7591
7591
|
};
|
|
7592
7592
|
function n(e, n, r) {
|
|
7593
|
-
let i = r ||
|
|
7593
|
+
let i = r || Fr, a = typeof i.prefix == "string" ? i.prefix : Ir;
|
|
7594
7594
|
if (!t.getLanguage(e)) throw Error("Unknown language: `" + e + "` is not registered");
|
|
7595
7595
|
t.configure({
|
|
7596
|
-
__emitter:
|
|
7596
|
+
__emitter: Rr,
|
|
7597
7597
|
classPrefix: a
|
|
7598
7598
|
});
|
|
7599
7599
|
let o = t.highlight(n, {
|
|
@@ -7606,7 +7606,7 @@ function Ir(e) {
|
|
|
7606
7606
|
return c.language = o.language, c.relevance = o.relevance, s;
|
|
7607
7607
|
}
|
|
7608
7608
|
function r(e, r) {
|
|
7609
|
-
let a = (r ||
|
|
7609
|
+
let a = (r || Fr).subset || i(), o = -1, s = 0, c;
|
|
7610
7610
|
for (; ++o < a.length;) {
|
|
7611
7611
|
let i = a[o];
|
|
7612
7612
|
if (!t.getLanguage(i)) continue;
|
|
@@ -7646,7 +7646,7 @@ function Ir(e) {
|
|
|
7646
7646
|
return !!t.getLanguage(e);
|
|
7647
7647
|
}
|
|
7648
7648
|
}
|
|
7649
|
-
var
|
|
7649
|
+
var Rr = class {
|
|
7650
7650
|
constructor(e) {
|
|
7651
7651
|
this.options = e, this.root = {
|
|
7652
7652
|
type: "root",
|
|
@@ -7698,21 +7698,21 @@ var Lr = class {
|
|
|
7698
7698
|
toHTML() {
|
|
7699
7699
|
return "";
|
|
7700
7700
|
}
|
|
7701
|
-
},
|
|
7701
|
+
}, zr = Lr(Nr), Br = {
|
|
7702
7702
|
name: "codeBlock",
|
|
7703
|
-
extensions: [Oe.configure({ lowlight:
|
|
7703
|
+
extensions: [Oe.configure({ lowlight: zr })],
|
|
7704
7704
|
toolbar: [{
|
|
7705
7705
|
icon: "ri:code-box-line",
|
|
7706
7706
|
title: "代码块",
|
|
7707
7707
|
action: (e) => e.chain().focus().toggleCodeBlock().run(),
|
|
7708
7708
|
isActive: (e) => e.isActive("codeBlock")
|
|
7709
7709
|
}]
|
|
7710
|
-
},
|
|
7710
|
+
}, Vr = {
|
|
7711
7711
|
name: "color",
|
|
7712
7712
|
extensions: [ke],
|
|
7713
7713
|
toolbar: [{ divider: !0 }, {
|
|
7714
7714
|
type: "component",
|
|
7715
|
-
render: (e) => E(
|
|
7715
|
+
render: (e) => E(gt, {
|
|
7716
7716
|
editor: e,
|
|
7717
7717
|
icon: "ri:font-family",
|
|
7718
7718
|
title: "文字颜色",
|
|
@@ -7720,7 +7720,7 @@ var Lr = class {
|
|
|
7720
7720
|
apply: (t) => t ? e.chain().focus().setColor(t).run() : e.chain().focus().unsetColor().run()
|
|
7721
7721
|
}, null)
|
|
7722
7722
|
}]
|
|
7723
|
-
},
|
|
7723
|
+
}, Hr = /* @__PURE__ */ D({
|
|
7724
7724
|
__name: "fontFamilySelect",
|
|
7725
7725
|
props: { editor: {} },
|
|
7726
7726
|
setup(e) {
|
|
@@ -7760,7 +7760,7 @@ var Lr = class {
|
|
|
7760
7760
|
let a = h;
|
|
7761
7761
|
return L(), b(a, {
|
|
7762
7762
|
size: "small",
|
|
7763
|
-
value:
|
|
7763
|
+
value: U(r),
|
|
7764
7764
|
options: n,
|
|
7765
7765
|
placeholder: "字体",
|
|
7766
7766
|
style: { width: "104px" },
|
|
@@ -7769,14 +7769,14 @@ var Lr = class {
|
|
|
7769
7769
|
}, null, 8, ["value"]);
|
|
7770
7770
|
};
|
|
7771
7771
|
}
|
|
7772
|
-
}),
|
|
7772
|
+
}), Ur = {
|
|
7773
7773
|
name: "fontFamily",
|
|
7774
7774
|
extensions: [Ae],
|
|
7775
7775
|
toolbar: [{
|
|
7776
7776
|
type: "component",
|
|
7777
|
-
render: (e) => E(
|
|
7777
|
+
render: (e) => E(Hr, { editor: e }, null)
|
|
7778
7778
|
}]
|
|
7779
|
-
},
|
|
7779
|
+
}, Wr = /* @__PURE__ */ D({
|
|
7780
7780
|
__name: "fontSizeSelect",
|
|
7781
7781
|
props: { editor: {} },
|
|
7782
7782
|
setup(e) {
|
|
@@ -7801,8 +7801,8 @@ var Lr = class {
|
|
|
7801
7801
|
let a = h;
|
|
7802
7802
|
return L(), b(a, {
|
|
7803
7803
|
size: "small",
|
|
7804
|
-
value:
|
|
7805
|
-
options:
|
|
7804
|
+
value: U(r),
|
|
7805
|
+
options: U(n),
|
|
7806
7806
|
placeholder: "字号",
|
|
7807
7807
|
style: { width: "72px" },
|
|
7808
7808
|
"allow-clear": "",
|
|
@@ -7810,14 +7810,14 @@ var Lr = class {
|
|
|
7810
7810
|
}, null, 8, ["value", "options"]);
|
|
7811
7811
|
};
|
|
7812
7812
|
}
|
|
7813
|
-
}),
|
|
7813
|
+
}), Gr = {
|
|
7814
7814
|
name: "fontSize",
|
|
7815
7815
|
extensions: [je],
|
|
7816
7816
|
toolbar: [{
|
|
7817
7817
|
type: "component",
|
|
7818
|
-
render: (e) => E(
|
|
7818
|
+
render: (e) => E(Wr, { editor: e }, null)
|
|
7819
7819
|
}]
|
|
7820
|
-
},
|
|
7820
|
+
}, Kr = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
7821
7821
|
__name: "headingSelect",
|
|
7822
7822
|
props: { editor: {} },
|
|
7823
7823
|
setup(e) {
|
|
@@ -7854,16 +7854,16 @@ var Lr = class {
|
|
|
7854
7854
|
key: `${e.level}`,
|
|
7855
7855
|
onClick: (t) => o(e.level)
|
|
7856
7856
|
}, {
|
|
7857
|
-
default: W(() => [C("div", { class: N(["heading-item", { active:
|
|
7857
|
+
default: W(() => [C("div", { class: N(["heading-item", { active: U(r) === e.level }]) }, [E(Y, {
|
|
7858
7858
|
name: e.icon,
|
|
7859
7859
|
size: "16"
|
|
7860
|
-
}, null, 8, ["name"]), C("span", null,
|
|
7860
|
+
}, null, 8, ["name"]), C("span", null, H(e.label), 1)], 2)]),
|
|
7861
7861
|
_: 2
|
|
7862
7862
|
}, 1032, ["onClick"])), 64))]),
|
|
7863
7863
|
_: 1
|
|
7864
7864
|
})]),
|
|
7865
|
-
default: W(() => [C("div", { class: N(["toolbar-btn", { active:
|
|
7866
|
-
name:
|
|
7865
|
+
default: W(() => [C("div", { class: N(["toolbar-btn", { active: U(r) !== null }]) }, [E(Y, {
|
|
7866
|
+
name: U(i),
|
|
7867
7867
|
size: "16"
|
|
7868
7868
|
}, null, 8, ["name"]), E(Y, {
|
|
7869
7869
|
name: "ri:arrow-down-s-line",
|
|
@@ -7874,7 +7874,7 @@ var Lr = class {
|
|
|
7874
7874
|
});
|
|
7875
7875
|
};
|
|
7876
7876
|
}
|
|
7877
|
-
}), [["__scopeId", "data-v-d1aa64d7"]]),
|
|
7877
|
+
}), [["__scopeId", "data-v-d1aa64d7"]]), qr = {
|
|
7878
7878
|
name: "heading",
|
|
7879
7879
|
extensions: [Me.configure({ levels: [
|
|
7880
7880
|
1,
|
|
@@ -7883,14 +7883,14 @@ var Lr = class {
|
|
|
7883
7883
|
] })],
|
|
7884
7884
|
toolbar: [{
|
|
7885
7885
|
type: "component",
|
|
7886
|
-
render: (e) => E(
|
|
7886
|
+
render: (e) => E(Kr, { editor: e }, null)
|
|
7887
7887
|
}]
|
|
7888
|
-
},
|
|
7888
|
+
}, Jr = {
|
|
7889
7889
|
name: "highlight",
|
|
7890
7890
|
extensions: [Ne.configure({ multicolor: !0 })],
|
|
7891
7891
|
toolbar: [{
|
|
7892
7892
|
type: "component",
|
|
7893
|
-
render: (e) => E(
|
|
7893
|
+
render: (e) => E(gt, {
|
|
7894
7894
|
editor: e,
|
|
7895
7895
|
icon: "ri:paint-fill",
|
|
7896
7896
|
title: "高亮",
|
|
@@ -7898,7 +7898,7 @@ var Lr = class {
|
|
|
7898
7898
|
apply: (t) => t ? e.chain().focus().setHighlight({ color: t }).run() : e.chain().focus().unsetHighlight().run()
|
|
7899
7899
|
}, null)
|
|
7900
7900
|
}]
|
|
7901
|
-
},
|
|
7901
|
+
}, Yr = {
|
|
7902
7902
|
name: "horizontalRule",
|
|
7903
7903
|
extensions: [Pe],
|
|
7904
7904
|
toolbar: [{
|
|
@@ -7906,7 +7906,7 @@ var Lr = class {
|
|
|
7906
7906
|
title: "分割线",
|
|
7907
7907
|
action: (e) => e.chain().focus().setHorizontalRule().run()
|
|
7908
7908
|
}]
|
|
7909
|
-
},
|
|
7909
|
+
}, Xr = Symbol("uploadImage"), Zr = Symbol("uploadVideo"), Qr = Symbol("editable"), $r = { class: "form__row" }, ei = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
7910
7910
|
__name: "imageModal",
|
|
7911
7911
|
props: /*@__PURE__*/ A({
|
|
7912
7912
|
title: {},
|
|
@@ -7920,13 +7920,13 @@ var Lr = class {
|
|
|
7920
7920
|
}),
|
|
7921
7921
|
emits: /*@__PURE__*/ A(["confirm"], ["update:open"]),
|
|
7922
7922
|
setup(e, { emit: n }) {
|
|
7923
|
-
let r = e, i =
|
|
7923
|
+
let r = e, i = ie(e, "open"), a = n, u = z({
|
|
7924
7924
|
src: "",
|
|
7925
7925
|
alt: "",
|
|
7926
7926
|
width: null,
|
|
7927
7927
|
height: null
|
|
7928
7928
|
});
|
|
7929
|
-
|
|
7929
|
+
ae(i, (e) => {
|
|
7930
7930
|
e && (u.src = r.initialValues?.src ?? "", u.alt = r.initialValues?.alt ?? "", u.width = r.initialValues?.width ?? null, u.height = r.initialValues?.height ?? null);
|
|
7931
7931
|
});
|
|
7932
7932
|
let d = () => {
|
|
@@ -7980,7 +7980,7 @@ var Lr = class {
|
|
|
7980
7980
|
}, null, 8, ["value"])]),
|
|
7981
7981
|
_: 1
|
|
7982
7982
|
}),
|
|
7983
|
-
C("div",
|
|
7983
|
+
C("div", $r, [E(p, {
|
|
7984
7984
|
label: "宽度",
|
|
7985
7985
|
class: "flex-1"
|
|
7986
7986
|
}, {
|
|
@@ -8012,11 +8012,11 @@ var Lr = class {
|
|
|
8012
8012
|
}, 8, ["open", "title"]);
|
|
8013
8013
|
};
|
|
8014
8014
|
}
|
|
8015
|
-
}), [["__scopeId", "data-v-7a6e16d1"]]),
|
|
8015
|
+
}), [["__scopeId", "data-v-7a6e16d1"]]), ti = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8016
8016
|
__name: "imageButton",
|
|
8017
8017
|
props: { editor: {} },
|
|
8018
8018
|
setup(e) {
|
|
8019
|
-
let t = e, n = O(
|
|
8019
|
+
let t = e, n = O(Xr, void 0), r = B(), i = B(!1), o = B(!1), s = B(0), c = () => {
|
|
8020
8020
|
o.value || r.value?.click();
|
|
8021
8021
|
}, l = (e) => {
|
|
8022
8022
|
let r = e.target.files?.[0];
|
|
@@ -8095,7 +8095,7 @@ var Lr = class {
|
|
|
8095
8095
|
style: { display: "none" },
|
|
8096
8096
|
onChange: l
|
|
8097
8097
|
}, null, 544),
|
|
8098
|
-
E(
|
|
8098
|
+
E(ei, {
|
|
8099
8099
|
open: i.value,
|
|
8100
8100
|
"onUpdate:open": t[1] ||= (e) => i.value = e,
|
|
8101
8101
|
title: "插入图片",
|
|
@@ -8104,7 +8104,7 @@ var Lr = class {
|
|
|
8104
8104
|
], 64);
|
|
8105
8105
|
};
|
|
8106
8106
|
}
|
|
8107
|
-
}), [["__scopeId", "data-v-07611565"]]),
|
|
8107
|
+
}), [["__scopeId", "data-v-07611565"]]), ni = { class: "image-toolbar" }, ri = ["onClick"], ii = ["src", "alt"], ai = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8108
8108
|
__name: "imageView",
|
|
8109
8109
|
props: ue,
|
|
8110
8110
|
setup(e) {
|
|
@@ -8147,12 +8147,12 @@ var Lr = class {
|
|
|
8147
8147
|
...e ? { width: `${e}px` } : {},
|
|
8148
8148
|
...n ? { height: `${n}px` } : {}
|
|
8149
8149
|
};
|
|
8150
|
-
}), c = O(
|
|
8150
|
+
}), c = O(Qr);
|
|
8151
8151
|
return (e, t) => {
|
|
8152
8152
|
let l = _, u = p;
|
|
8153
|
-
return L(), S(v, null, [E(
|
|
8153
|
+
return L(), S(v, null, [E(U(K), {
|
|
8154
8154
|
as: "span",
|
|
8155
|
-
class: N(
|
|
8155
|
+
class: N(U(o))
|
|
8156
8156
|
}, {
|
|
8157
8157
|
default: W(() => [E(u, {
|
|
8158
8158
|
trigger: "click",
|
|
@@ -8161,13 +8161,13 @@ var Lr = class {
|
|
|
8161
8161
|
default: W(() => [C("div", { class: N(["image-view__body", { selected: e.selected }]) }, [C("img", {
|
|
8162
8162
|
src: e.node.attrs.src,
|
|
8163
8163
|
alt: e.node.attrs.alt ?? void 0,
|
|
8164
|
-
style: P(
|
|
8164
|
+
style: P(U(s)),
|
|
8165
8165
|
draggable: !1
|
|
8166
|
-
}, null, 12,
|
|
8166
|
+
}, null, 12, ii)], 2)]),
|
|
8167
8167
|
_: 2
|
|
8168
|
-
}, [
|
|
8168
|
+
}, [U(c) ? {
|
|
8169
8169
|
name: "content",
|
|
8170
|
-
fn: W(() => [C("div",
|
|
8170
|
+
fn: W(() => [C("div", ni, [
|
|
8171
8171
|
(L(), S(v, null, V(a, (t) => E(l, {
|
|
8172
8172
|
key: t.key,
|
|
8173
8173
|
title: t.label,
|
|
@@ -8179,7 +8179,7 @@ var Lr = class {
|
|
|
8179
8179
|
}, [E(Y, {
|
|
8180
8180
|
name: t.icon,
|
|
8181
8181
|
size: "14"
|
|
8182
|
-
}, null, 8, ["name"])], 10,
|
|
8182
|
+
}, null, 8, ["name"])], 10, ri)]),
|
|
8183
8183
|
_: 2
|
|
8184
8184
|
}, 1032, ["title"])), 64)),
|
|
8185
8185
|
t[3] ||= C("div", { class: "image-toolbar__divider" }, null, -1),
|
|
@@ -8214,16 +8214,16 @@ var Lr = class {
|
|
|
8214
8214
|
key: "0"
|
|
8215
8215
|
} : void 0]), 1024)]),
|
|
8216
8216
|
_: 1
|
|
8217
|
-
}, 8, ["class"]), E(
|
|
8218
|
-
open:
|
|
8217
|
+
}, 8, ["class"]), E(ei, {
|
|
8218
|
+
open: U(n),
|
|
8219
8219
|
"onUpdate:open": t[2] ||= (e) => k(n) ? n.value = e : null,
|
|
8220
8220
|
title: "编辑图片",
|
|
8221
|
-
"initial-values":
|
|
8221
|
+
"initial-values": U(r),
|
|
8222
8222
|
onConfirm: i
|
|
8223
8223
|
}, null, 8, ["open", "initial-values"])], 64);
|
|
8224
8224
|
};
|
|
8225
8225
|
}
|
|
8226
|
-
}), [["__scopeId", "data-v-8c741472"]]),
|
|
8226
|
+
}), [["__scopeId", "data-v-8c741472"]]), oi = {
|
|
8227
8227
|
name: "image",
|
|
8228
8228
|
extensions: [Fe.extend({
|
|
8229
8229
|
addAttributes() {
|
|
@@ -8263,7 +8263,7 @@ var Lr = class {
|
|
|
8263
8263
|
};
|
|
8264
8264
|
},
|
|
8265
8265
|
addNodeView() {
|
|
8266
|
-
return q(
|
|
8266
|
+
return q(ai);
|
|
8267
8267
|
}
|
|
8268
8268
|
}).configure({
|
|
8269
8269
|
inline: !0,
|
|
@@ -8271,9 +8271,9 @@ var Lr = class {
|
|
|
8271
8271
|
})],
|
|
8272
8272
|
toolbar: [{ divider: !0 }, {
|
|
8273
8273
|
type: "component",
|
|
8274
|
-
render: (e) => E(
|
|
8274
|
+
render: (e) => E(ti, { editor: e }, null)
|
|
8275
8275
|
}]
|
|
8276
|
-
},
|
|
8276
|
+
}, si = {
|
|
8277
8277
|
name: "italic",
|
|
8278
8278
|
extensions: [Ie],
|
|
8279
8279
|
toolbar: [{
|
|
@@ -8282,7 +8282,7 @@ var Lr = class {
|
|
|
8282
8282
|
action: (e) => e.chain().focus().toggleItalic().run(),
|
|
8283
8283
|
isActive: (e) => e.isActive("italic")
|
|
8284
8284
|
}]
|
|
8285
|
-
},
|
|
8285
|
+
}, ci = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8286
8286
|
__name: "linkButton",
|
|
8287
8287
|
props: { editor: {} },
|
|
8288
8288
|
setup(e) {
|
|
@@ -8383,17 +8383,17 @@ var Lr = class {
|
|
|
8383
8383
|
}, 8, ["open"])], 64);
|
|
8384
8384
|
};
|
|
8385
8385
|
}
|
|
8386
|
-
}), [["__scopeId", "data-v-60dcce95"]]),
|
|
8386
|
+
}), [["__scopeId", "data-v-60dcce95"]]), li = {
|
|
8387
8387
|
name: "link",
|
|
8388
8388
|
extensions: [Le.configure({ openOnClick: !1 })],
|
|
8389
8389
|
toolbar: [{ divider: !0 }, {
|
|
8390
8390
|
type: "component",
|
|
8391
|
-
render: (e) => E(
|
|
8391
|
+
render: (e) => E(ci, { editor: e }, null)
|
|
8392
8392
|
}]
|
|
8393
|
-
},
|
|
8393
|
+
}, ui = {
|
|
8394
8394
|
name: "orderedList",
|
|
8395
8395
|
extensions: [Re]
|
|
8396
|
-
},
|
|
8396
|
+
}, di = {
|
|
8397
8397
|
name: "strike",
|
|
8398
8398
|
extensions: [ze],
|
|
8399
8399
|
toolbar: [{
|
|
@@ -8402,10 +8402,10 @@ var Lr = class {
|
|
|
8402
8402
|
action: (e) => e.chain().focus().toggleStrike().run(),
|
|
8403
8403
|
isActive: (e) => e.isActive("strike")
|
|
8404
8404
|
}]
|
|
8405
|
-
},
|
|
8405
|
+
}, fi = ["onMouseover"], pi = { class: "grid-label" }, mi = {
|
|
8406
8406
|
title: "插入表格",
|
|
8407
8407
|
class: "toolbar-btn"
|
|
8408
|
-
},
|
|
8408
|
+
}, hi = 10, gi = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8409
8409
|
__name: "tableButton",
|
|
8410
8410
|
props: { editor: {} },
|
|
8411
8411
|
setup(e) {
|
|
@@ -8425,7 +8425,7 @@ var Lr = class {
|
|
|
8425
8425
|
return (e, t) => {
|
|
8426
8426
|
let l = p;
|
|
8427
8427
|
return L(), b(l, {
|
|
8428
|
-
open:
|
|
8428
|
+
open: U(n),
|
|
8429
8429
|
"onUpdate:open": t[0] ||= (e) => k(n) ? n.value = e : null,
|
|
8430
8430
|
placement: "bottom",
|
|
8431
8431
|
trigger: "click",
|
|
@@ -8435,16 +8435,16 @@ var Lr = class {
|
|
|
8435
8435
|
content: W(() => [C("div", {
|
|
8436
8436
|
class: "table-grid-selector",
|
|
8437
8437
|
onMouseleave: o
|
|
8438
|
-
}, [(L(), S(v, null, V(
|
|
8438
|
+
}, [(L(), S(v, null, V(hi, (e) => C("div", {
|
|
8439
8439
|
key: e,
|
|
8440
8440
|
class: "grid-row"
|
|
8441
|
-
}, [(L(), S(v, null, V(
|
|
8441
|
+
}, [(L(), S(v, null, V(hi, (t) => C("div", {
|
|
8442
8442
|
key: t,
|
|
8443
|
-
class: N(["grid-cell", { selected: e <=
|
|
8443
|
+
class: N(["grid-cell", { selected: e <= U(r) && t <= U(i) }]),
|
|
8444
8444
|
onMouseover: (n) => a(e, t),
|
|
8445
8445
|
onClick: c
|
|
8446
|
-
}, null, 42,
|
|
8447
|
-
default: W(() => [C("div",
|
|
8446
|
+
}, null, 42, fi)), 64))])), 64)), C("div", pi, H(U(r) || "-") + " × " + H(U(i) || "-"), 1)], 32)]),
|
|
8447
|
+
default: W(() => [C("div", mi, [E(Y, {
|
|
8448
8448
|
name: "ri:layout-grid-line",
|
|
8449
8449
|
size: "16"
|
|
8450
8450
|
})])]),
|
|
@@ -8452,7 +8452,7 @@ var Lr = class {
|
|
|
8452
8452
|
}, 8, ["open"]);
|
|
8453
8453
|
};
|
|
8454
8454
|
}
|
|
8455
|
-
}), [["__scopeId", "data-v-ae679706"]]),
|
|
8455
|
+
}), [["__scopeId", "data-v-ae679706"]]), _i = Ue.extend({ addAttributes() {
|
|
8456
8456
|
return {
|
|
8457
8457
|
...this.parent?.(),
|
|
8458
8458
|
height: {
|
|
@@ -8461,19 +8461,19 @@ var Lr = class {
|
|
|
8461
8461
|
renderHTML: ({ height: e }) => e ? { style: `height: ${e}` } : {}
|
|
8462
8462
|
}
|
|
8463
8463
|
};
|
|
8464
|
-
} }),
|
|
8464
|
+
} }), vi = {
|
|
8465
8465
|
name: "table",
|
|
8466
8466
|
extensions: [
|
|
8467
8467
|
Be.configure({ resizable: !0 }),
|
|
8468
|
-
|
|
8468
|
+
_i,
|
|
8469
8469
|
He,
|
|
8470
8470
|
Ve
|
|
8471
8471
|
],
|
|
8472
8472
|
toolbar: [{ divider: !0 }, {
|
|
8473
8473
|
type: "component",
|
|
8474
|
-
render: (e) => E(
|
|
8474
|
+
render: (e) => E(gi, { editor: e }, null)
|
|
8475
8475
|
}]
|
|
8476
|
-
},
|
|
8476
|
+
}, yi = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8477
8477
|
__name: "taskItemView",
|
|
8478
8478
|
props: {
|
|
8479
8479
|
decorations: {},
|
|
@@ -8495,14 +8495,14 @@ var Lr = class {
|
|
|
8495
8495
|
});
|
|
8496
8496
|
return (e, t) => {
|
|
8497
8497
|
let i = n;
|
|
8498
|
-
return L(), b(
|
|
8498
|
+
return L(), b(U(K), {
|
|
8499
8499
|
as: "li",
|
|
8500
8500
|
class: "task-item"
|
|
8501
8501
|
}, {
|
|
8502
8502
|
default: W(() => [E(i, {
|
|
8503
8503
|
checked: r.value,
|
|
8504
8504
|
"onUpdate:checked": t[0] ||= (e) => r.value = e
|
|
8505
|
-
}, null, 8, ["checked"]), E(
|
|
8505
|
+
}, null, 8, ["checked"]), E(U(le), {
|
|
8506
8506
|
as: "span",
|
|
8507
8507
|
class: N(["task-content", { "is-checked": r.value }])
|
|
8508
8508
|
}, null, 8, ["class"])]),
|
|
@@ -8510,12 +8510,12 @@ var Lr = class {
|
|
|
8510
8510
|
});
|
|
8511
8511
|
};
|
|
8512
8512
|
}
|
|
8513
|
-
}), [["__scopeId", "data-v-26025aef"]]),
|
|
8513
|
+
}), [["__scopeId", "data-v-26025aef"]]), bi = {
|
|
8514
8514
|
name: "taskList",
|
|
8515
8515
|
extensions: [Ge, We.extend({ addNodeView() {
|
|
8516
|
-
return q(
|
|
8516
|
+
return q(yi);
|
|
8517
8517
|
} }).configure({ nested: !0 })]
|
|
8518
|
-
},
|
|
8518
|
+
}, xi = {
|
|
8519
8519
|
name: "textAlign",
|
|
8520
8520
|
extensions: [Ke.configure({ types: ["heading", "paragraph"] })],
|
|
8521
8521
|
toolbar: [
|
|
@@ -8545,7 +8545,7 @@ var Lr = class {
|
|
|
8545
8545
|
isActive: (e) => e.isActive({ textAlign: "justify" })
|
|
8546
8546
|
}
|
|
8547
8547
|
]
|
|
8548
|
-
},
|
|
8548
|
+
}, Si = { extensions: [qe] }, Ci = {
|
|
8549
8549
|
name: "underline",
|
|
8550
8550
|
extensions: [Je],
|
|
8551
8551
|
toolbar: [{
|
|
@@ -8554,7 +8554,7 @@ var Lr = class {
|
|
|
8554
8554
|
action: (e) => e.chain().focus().toggleUnderline().run(),
|
|
8555
8555
|
isActive: (e) => e.isActive("underline")
|
|
8556
8556
|
}]
|
|
8557
|
-
},
|
|
8557
|
+
}, wi = {
|
|
8558
8558
|
name: "undoRedo",
|
|
8559
8559
|
extensions: [Ce],
|
|
8560
8560
|
toolbar: [
|
|
@@ -8570,10 +8570,10 @@ var Lr = class {
|
|
|
8570
8570
|
action: (e) => e.chain().focus().redo().run()
|
|
8571
8571
|
}
|
|
8572
8572
|
]
|
|
8573
|
-
},
|
|
8573
|
+
}, Ti = {
|
|
8574
8574
|
key: 0,
|
|
8575
8575
|
class: "tip"
|
|
8576
|
-
},
|
|
8576
|
+
}, Ei = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8577
8577
|
__name: "videoModal",
|
|
8578
8578
|
props: /*@__PURE__*/ A({
|
|
8579
8579
|
title: {},
|
|
@@ -8587,7 +8587,7 @@ var Lr = class {
|
|
|
8587
8587
|
}),
|
|
8588
8588
|
emits: /*@__PURE__*/ A(["confirm"], ["update:open"]),
|
|
8589
8589
|
setup(e, { emit: n }) {
|
|
8590
|
-
let r = e, i =
|
|
8590
|
+
let r = e, i = ie(e, "open"), a = n, l = z({
|
|
8591
8591
|
src: "",
|
|
8592
8592
|
width: null,
|
|
8593
8593
|
height: null,
|
|
@@ -8596,7 +8596,7 @@ var Lr = class {
|
|
|
8596
8596
|
muted: !1,
|
|
8597
8597
|
loop: !1
|
|
8598
8598
|
});
|
|
8599
|
-
|
|
8599
|
+
ae(i, (e) => {
|
|
8600
8600
|
e && (l.src = r.initialValues?.src ?? "", l.width = r.initialValues?.width ?? null, l.height = r.initialValues?.height ?? null, l.controls = r.initialValues?.controls ?? !0, l.autoplay = r.initialValues?.autoplay ?? !1, l.muted = r.initialValues?.muted ?? !1, l.loop = r.initialValues?.loop ?? !1);
|
|
8601
8601
|
});
|
|
8602
8602
|
let u = () => {
|
|
@@ -8672,7 +8672,7 @@ var Lr = class {
|
|
|
8672
8672
|
checked: l.autoplay,
|
|
8673
8673
|
"onUpdate:checked": r[4] ||= (e) => l.autoplay = e,
|
|
8674
8674
|
onChange: d
|
|
8675
|
-
}, null, 8, ["checked"]), l.autoplay ? (L(), S("span",
|
|
8675
|
+
}, null, 8, ["checked"]), l.autoplay ? (L(), S("span", Ti, "自动播放需同时开启静音")) : x("", !0)]),
|
|
8676
8676
|
_: 1
|
|
8677
8677
|
}),
|
|
8678
8678
|
E(p, { label: "静音播放" }, {
|
|
@@ -8696,11 +8696,11 @@ var Lr = class {
|
|
|
8696
8696
|
}, 8, ["open", "title"]);
|
|
8697
8697
|
};
|
|
8698
8698
|
}
|
|
8699
|
-
}), [["__scopeId", "data-v-98919f10"]]),
|
|
8699
|
+
}), [["__scopeId", "data-v-98919f10"]]), Di = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8700
8700
|
__name: "videoButton",
|
|
8701
8701
|
props: { editor: {} },
|
|
8702
8702
|
setup(e) {
|
|
8703
|
-
let t = e, n = O(
|
|
8703
|
+
let t = e, n = O(Zr, void 0), r = B(), i = B(!1), o = B(!1), s = B(0), c = () => {
|
|
8704
8704
|
o.value || (i.value = !0);
|
|
8705
8705
|
}, l = (e) => {
|
|
8706
8706
|
t.editor && t.editor.chain().focus().setNativeVideo({ ...e }).run();
|
|
@@ -8721,7 +8721,7 @@ var Lr = class {
|
|
|
8721
8721
|
return (e, t) => {
|
|
8722
8722
|
let h = m, g = _, y = d, x = u, w = a;
|
|
8723
8723
|
return L(), S(v, null, [
|
|
8724
|
-
|
|
8724
|
+
U(n) ? (L(), b(w, {
|
|
8725
8725
|
key: 0,
|
|
8726
8726
|
trigger: ["click"],
|
|
8727
8727
|
placement: "bottomLeft",
|
|
@@ -8779,7 +8779,7 @@ var Lr = class {
|
|
|
8779
8779
|
style: { display: "none" },
|
|
8780
8780
|
onChange: p
|
|
8781
8781
|
}, null, 544),
|
|
8782
|
-
E(
|
|
8782
|
+
E(Ei, {
|
|
8783
8783
|
open: i.value,
|
|
8784
8784
|
"onUpdate:open": t[0] ||= (e) => i.value = e,
|
|
8785
8785
|
title: "插入视频",
|
|
@@ -8788,17 +8788,17 @@ var Lr = class {
|
|
|
8788
8788
|
], 64);
|
|
8789
8789
|
};
|
|
8790
8790
|
}
|
|
8791
|
-
}), [["__scopeId", "data-v-5a3e73c1"]]),
|
|
8791
|
+
}), [["__scopeId", "data-v-5a3e73c1"]]), Oi = { class: "video-toolbar" }, ki = [
|
|
8792
8792
|
"src",
|
|
8793
8793
|
"controls",
|
|
8794
8794
|
"autoplay",
|
|
8795
8795
|
"muted",
|
|
8796
8796
|
"loop"
|
|
8797
|
-
],
|
|
8797
|
+
], Ai = /* @__PURE__ */ D({
|
|
8798
8798
|
__name: "videoView",
|
|
8799
8799
|
props: ue,
|
|
8800
8800
|
setup(e) {
|
|
8801
|
-
let t = e, n = O(
|
|
8801
|
+
let t = e, n = O(Qr), r = B(!1), i = y(() => ({
|
|
8802
8802
|
src: t.node.attrs.src ?? "",
|
|
8803
8803
|
width: t.node.attrs.width ?? null,
|
|
8804
8804
|
height: t.node.attrs.height ?? null,
|
|
@@ -8838,7 +8838,7 @@ var Lr = class {
|
|
|
8838
8838
|
};
|
|
8839
8839
|
return (e, t) => {
|
|
8840
8840
|
let a = _, c = p;
|
|
8841
|
-
return L(), b(
|
|
8841
|
+
return L(), b(U(K), { class: "video-view" }, {
|
|
8842
8842
|
default: W(() => [E(c, {
|
|
8843
8843
|
trigger: "hover",
|
|
8844
8844
|
arrow: !1,
|
|
@@ -8851,11 +8851,11 @@ var Lr = class {
|
|
|
8851
8851
|
autoplay: e.node.attrs.autoplay,
|
|
8852
8852
|
muted: e.node.attrs.muted,
|
|
8853
8853
|
loop: e.node.attrs.loop
|
|
8854
|
-
}, null, 12,
|
|
8854
|
+
}, null, 12, ki)], 2)]),
|
|
8855
8855
|
_: 2
|
|
8856
|
-
}, [
|
|
8856
|
+
}, [U(n) ? {
|
|
8857
8857
|
name: "content",
|
|
8858
|
-
fn: W(() => [C("div",
|
|
8858
|
+
fn: W(() => [C("div", Oi, [
|
|
8859
8859
|
E(a, {
|
|
8860
8860
|
title: "编辑",
|
|
8861
8861
|
placement: "top"
|
|
@@ -8885,7 +8885,7 @@ var Lr = class {
|
|
|
8885
8885
|
})
|
|
8886
8886
|
])]),
|
|
8887
8887
|
key: "0"
|
|
8888
|
-
} : void 0]), 1024), E(
|
|
8888
|
+
} : void 0]), 1024), E(Ei, {
|
|
8889
8889
|
open: r.value,
|
|
8890
8890
|
"onUpdate:open": t[2] ||= (e) => r.value = e,
|
|
8891
8891
|
title: "编辑视频",
|
|
@@ -8896,40 +8896,40 @@ var Lr = class {
|
|
|
8896
8896
|
});
|
|
8897
8897
|
};
|
|
8898
8898
|
}
|
|
8899
|
-
}),
|
|
8899
|
+
}), ji = (e) => ({
|
|
8900
8900
|
default: !1,
|
|
8901
8901
|
parseHTML: (t) => t.hasAttribute(e),
|
|
8902
8902
|
renderHTML: (t) => t[e] ? { [e]: !0 } : {}
|
|
8903
|
-
}),
|
|
8904
|
-
|
|
8905
|
-
xi,
|
|
8906
|
-
Hr,
|
|
8907
|
-
Wr,
|
|
8908
|
-
Kr,
|
|
8909
|
-
Ct,
|
|
8910
|
-
oi,
|
|
8903
|
+
}), Mi = [
|
|
8904
|
+
St,
|
|
8911
8905
|
Si,
|
|
8912
|
-
|
|
8913
|
-
|
|
8906
|
+
Ur,
|
|
8907
|
+
Gr,
|
|
8914
8908
|
qr,
|
|
8915
|
-
ci,
|
|
8916
|
-
bi,
|
|
8917
8909
|
wt,
|
|
8910
|
+
si,
|
|
8911
|
+
Ci,
|
|
8912
|
+
di,
|
|
8913
|
+
Vr,
|
|
8914
|
+
Jr,
|
|
8918
8915
|
li,
|
|
8919
|
-
|
|
8916
|
+
xi,
|
|
8917
|
+
Tt,
|
|
8918
|
+
ui,
|
|
8919
|
+
bi,
|
|
8920
8920
|
{
|
|
8921
8921
|
name: "list",
|
|
8922
8922
|
extensions: [],
|
|
8923
8923
|
toolbar: [{ divider: !0 }, {
|
|
8924
8924
|
type: "component",
|
|
8925
|
-
render: (e) => E(
|
|
8925
|
+
render: (e) => E(xt, { editor: e }, null)
|
|
8926
8926
|
}]
|
|
8927
8927
|
},
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8928
|
+
Ct,
|
|
8929
|
+
At,
|
|
8930
|
+
Br,
|
|
8931
|
+
Yr,
|
|
8932
|
+
oi,
|
|
8933
8933
|
{
|
|
8934
8934
|
name: "video",
|
|
8935
8935
|
extensions: [me.create({
|
|
@@ -8948,12 +8948,12 @@ var Lr = class {
|
|
|
8948
8948
|
renderHTML: ({ height: e }) => e ? { height: e } : {}
|
|
8949
8949
|
},
|
|
8950
8950
|
controls: {
|
|
8951
|
-
...
|
|
8951
|
+
...ji("controls"),
|
|
8952
8952
|
default: !0
|
|
8953
8953
|
},
|
|
8954
|
-
autoplay:
|
|
8955
|
-
muted:
|
|
8956
|
-
loop:
|
|
8954
|
+
autoplay: ji("autoplay"),
|
|
8955
|
+
muted: ji("muted"),
|
|
8956
|
+
loop: ji("loop")
|
|
8957
8957
|
};
|
|
8958
8958
|
},
|
|
8959
8959
|
parseHTML() {
|
|
@@ -8969,20 +8969,20 @@ var Lr = class {
|
|
|
8969
8969
|
}) };
|
|
8970
8970
|
},
|
|
8971
8971
|
addNodeView() {
|
|
8972
|
-
return q(
|
|
8972
|
+
return q(Ai);
|
|
8973
8973
|
}
|
|
8974
8974
|
})],
|
|
8975
8975
|
toolbar: [{
|
|
8976
8976
|
type: "component",
|
|
8977
|
-
render: (e) => E(
|
|
8977
|
+
render: (e) => E(Di, { editor: e }, null)
|
|
8978
8978
|
}]
|
|
8979
8979
|
},
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
],
|
|
8980
|
+
vi,
|
|
8981
|
+
Et,
|
|
8982
|
+
wi,
|
|
8983
|
+
kt,
|
|
8984
|
+
Ot
|
|
8985
|
+
], Ni = /*#__PURE__*/ X(/* @__PURE__ */ D({
|
|
8986
8986
|
__name: "toolbarItem",
|
|
8987
8987
|
props: {
|
|
8988
8988
|
item: {},
|
|
@@ -8992,26 +8992,26 @@ var Lr = class {
|
|
|
8992
8992
|
let t = e, n = (e) => "type" in e && e.type === "component", r = y(() => !n(t.item) && !!t.editor && !!t.item.isActive?.(t.editor)), i = y(() => !n(t.item) && !!t.editor && !!t.item.isDisabled?.(t.editor)), a = y(() => t.item), o = y(() => t.item);
|
|
8993
8993
|
return (t, s) => {
|
|
8994
8994
|
let c = _;
|
|
8995
|
-
return n(e.item) && e.editor ? (L(), b(te(() =>
|
|
8995
|
+
return n(e.item) && e.editor ? (L(), b(te(() => U(a).render(e.editor)), { key: 0 })) : n(e.item) ? x("", !0) : (L(), b(c, {
|
|
8996
8996
|
key: 1,
|
|
8997
|
-
title:
|
|
8997
|
+
title: U(o).title,
|
|
8998
8998
|
placement: "bottom"
|
|
8999
8999
|
}, {
|
|
9000
9000
|
default: W(() => [C("div", {
|
|
9001
9001
|
class: N(["toolbar-btn", {
|
|
9002
|
-
active:
|
|
9003
|
-
disabled:
|
|
9002
|
+
active: U(r),
|
|
9003
|
+
disabled: U(i)
|
|
9004
9004
|
}]),
|
|
9005
|
-
onClick: s[0] ||= (t) => !
|
|
9005
|
+
onClick: s[0] ||= (t) => !U(i) && e.editor && U(o).action(e.editor)
|
|
9006
9006
|
}, [E(Y, {
|
|
9007
|
-
name:
|
|
9008
|
-
size:
|
|
9007
|
+
name: U(o).icon,
|
|
9008
|
+
size: U(o).size ?? 16
|
|
9009
9009
|
}, null, 8, ["name", "size"])], 2)]),
|
|
9010
9010
|
_: 1
|
|
9011
9011
|
}, 8, ["title"]));
|
|
9012
9012
|
};
|
|
9013
9013
|
}
|
|
9014
|
-
}), [["__scopeId", "data-v-630d3b1a"]]),
|
|
9014
|
+
}), [["__scopeId", "data-v-630d3b1a"]]), Pi = { class: "editor" }, Fi = { class: "editor-toolbar" }, Ii = { class: "editor-word-count" }, Li = /* @__PURE__ */ D({
|
|
9015
9015
|
__name: "tiptap",
|
|
9016
9016
|
props: /*@__PURE__*/ A({
|
|
9017
9017
|
height: { default: 300 },
|
|
@@ -9030,9 +9030,9 @@ var Lr = class {
|
|
|
9030
9030
|
}),
|
|
9031
9031
|
emits: /*@__PURE__*/ A(["change", "blur"], ["update:modelValue"]),
|
|
9032
9032
|
setup(t, { emit: n }) {
|
|
9033
|
-
let r = n, a =
|
|
9034
|
-
|
|
9035
|
-
let s =
|
|
9033
|
+
let r = n, a = ie(t, "modelValue"), o = t;
|
|
9034
|
+
at(), o.uploadImage && R(Xr, o.uploadImage), o.uploadVideo && R(Zr, o.uploadVideo), R(Qr, re(o, "editable"));
|
|
9035
|
+
let s = Mi.filter((e) => !e.name || !o.disabledPlugins?.includes(e.name)), c = s.some((e) => e.name === "table"), l = (e) => e ? o.outputFormat === "json" ? JSON.stringify(e.getJSON()) : e.getHTML() : "", u = (e) => {
|
|
9036
9036
|
if (!e) return "";
|
|
9037
9037
|
if (o.outputFormat === "json") try {
|
|
9038
9038
|
return JSON.parse(e);
|
|
@@ -9086,24 +9086,24 @@ var Lr = class {
|
|
|
9086
9086
|
r("blur", l(e.editor));
|
|
9087
9087
|
}
|
|
9088
9088
|
}), g = B(0);
|
|
9089
|
-
return I(() => h.value?.destroy()),
|
|
9089
|
+
return I(() => h.value?.destroy()), ae(a, (e) => {
|
|
9090
9090
|
h.value && l(h.value) !== e && h.value.commands.setContent(u(e));
|
|
9091
|
-
}),
|
|
9091
|
+
}), ae(() => o.editable, (e) => {
|
|
9092
9092
|
h.value?.setEditable(e);
|
|
9093
9093
|
}), (t, n) => {
|
|
9094
9094
|
let r = i, a = e;
|
|
9095
9095
|
return L(), b(a, null, {
|
|
9096
|
-
default: W(() => [C("div",
|
|
9097
|
-
C("div",
|
|
9096
|
+
default: W(() => [C("div", Pi, [
|
|
9097
|
+
C("div", Fi, [(L(!0), S(v, null, V(U(p), (e, t) => (L(), S(v, { key: t }, ["divider" in e ? (L(), b(r, {
|
|
9098
9098
|
key: 0,
|
|
9099
9099
|
orientation: "vertical"
|
|
9100
|
-
})) :
|
|
9100
|
+
})) : U(h) ? (L(), b(Ni, {
|
|
9101
9101
|
key: 1,
|
|
9102
9102
|
item: e,
|
|
9103
|
-
editor:
|
|
9103
|
+
editor: U(h)
|
|
9104
9104
|
}, null, 8, ["item", "editor"])) : x("", !0)], 64))), 128))]),
|
|
9105
|
-
E(
|
|
9106
|
-
editor:
|
|
9105
|
+
E(U(G), {
|
|
9106
|
+
editor: U(h),
|
|
9107
9107
|
class: "editor-content",
|
|
9108
9108
|
style: P({ height: `${o.height}px` })
|
|
9109
9109
|
}, null, 8, ["editor", "style"]),
|
|
@@ -9111,22 +9111,27 @@ var Lr = class {
|
|
|
9111
9111
|
key: 0,
|
|
9112
9112
|
count: g.value,
|
|
9113
9113
|
limit: o.wordCount
|
|
9114
|
-
}, () => [C("div",
|
|
9115
|
-
|
|
9114
|
+
}, () => [C("div", Ii, [n[0] ||= C("span", null, "输入字符数:", -1), T(" " + H(g.value) + " " + H(typeof o.wordCount == "number" ? ` / ${o.wordCount}` : ""), 1)])]),
|
|
9115
|
+
U(h) && U(c) ? (L(), b(ft, {
|
|
9116
9116
|
key: 1,
|
|
9117
|
-
editor:
|
|
9117
|
+
editor: U(h)
|
|
9118
9118
|
}, null, 8, ["editor"])) : x("", !0),
|
|
9119
|
-
|
|
9119
|
+
U(h) && o.editable ? (L(), b(bt, {
|
|
9120
9120
|
key: 2,
|
|
9121
|
-
editor:
|
|
9121
|
+
editor: U(h)
|
|
9122
9122
|
}, null, 8, ["editor"])) : x("", !0)
|
|
9123
9123
|
])]),
|
|
9124
9124
|
_: 3
|
|
9125
9125
|
});
|
|
9126
9126
|
};
|
|
9127
9127
|
}
|
|
9128
|
-
})
|
|
9128
|
+
}), Ri = {
|
|
9129
|
+
install(e) {
|
|
9130
|
+
e.component("Tiptap", Li);
|
|
9131
|
+
},
|
|
9132
|
+
version: it
|
|
9133
|
+
};
|
|
9129
9134
|
//#endregion
|
|
9130
|
-
export {
|
|
9135
|
+
export { Li as Tiptap, Ri as default, it as version };
|
|
9131
9136
|
|
|
9132
9137
|
//# sourceMappingURL=index.mjs.map
|