@gis_victory/curd-form 0.0.32 → 0.0.33
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/curd-form.css +1 -1
- package/dist/curd-form.es.js +734 -729
- package/dist/curd-form.umd.js +30 -30
- package/package.json +1 -1
package/dist/curd-form.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as je, ref as Ne, computed as xr, watch as tn, openBlock as
|
|
1
|
+
import { defineComponent as je, ref as Ne, computed as xr, watch as tn, openBlock as H, createBlock as Ee, unref as U, withCtx as ne, createElementBlock as fe, Fragment as nt, renderList as Dn, createElementVNode as Fe, onMounted as Ho, createVNode as ce, normalizeClass as Zi, createCommentVNode as Ze, resolveDynamicComponent as IS, toDisplayString as hi, onUnmounted as fd, reactive as un, renderSlot as Rn, createTextVNode as bt, nextTick as xS, normalizeStyle as DS, createSlots as MS } from "vue";
|
|
2
2
|
import { ElSelect as Mu, ElOption as ku, ElDatePicker as Lu, ElCheckboxGroup as a_, ElCheckbox as Ed, ElRadioGroup as kS, ElRadio as LS, ElInput as Ec, ElImage as PS, ElUpload as FS, ElIcon as Gn, ElImageViewer as BS, ElMessage as Qe, dayjs as Ba, ElButton as ht, ElDialog as s_, ElForm as Sc, ElFormItem as Xi, ElPopover as US, ElTable as HS, ElTableColumn as ta, ElTag as VS, ElSwitch as GS, ElPagination as zS, ElRow as Sl, ElCol as na, ElMessageBox as Pu } from "element-plus";
|
|
3
3
|
import { GisMapView as $S, GisMapSwitch as YS } from "@gis_victory/gismap";
|
|
4
4
|
const qS = {
|
|
@@ -66,7 +66,7 @@ const qS = {
|
|
|
66
66
|
}), tn(() => n.modelValue, (c) => {
|
|
67
67
|
let d = c;
|
|
68
68
|
i && typeof c == "string" && c && (d = c.split(",")), o.value = d;
|
|
69
|
-
}), (c, d) => e.item.searchFormType === "select" || e.item.type === "select" ? (
|
|
69
|
+
}), (c, d) => e.item.searchFormType === "select" || e.item.type === "select" ? (H(), Ee(U(Mu), {
|
|
70
70
|
key: 0,
|
|
71
71
|
modelValue: o.value,
|
|
72
72
|
"onUpdate:modelValue": d[0] || (d[0] = (u) => o.value = u),
|
|
@@ -76,14 +76,14 @@ const qS = {
|
|
|
76
76
|
clearable: ""
|
|
77
77
|
}, {
|
|
78
78
|
default: ne(() => [
|
|
79
|
-
(
|
|
79
|
+
(H(!0), fe(nt, null, Dn(e.dropdownOptions, (u) => (H(), Ee(U(ku), {
|
|
80
80
|
key: u.id,
|
|
81
81
|
label: u.name,
|
|
82
82
|
value: u.id
|
|
83
83
|
}, null, 8, ["label", "value"]))), 128))
|
|
84
84
|
]),
|
|
85
85
|
_: 1
|
|
86
|
-
}, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "multi-select" || e.item.type === "multi-select" ? (
|
|
86
|
+
}, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "multi-select" || e.item.type === "multi-select" ? (H(), Ee(U(Mu), {
|
|
87
87
|
key: 1,
|
|
88
88
|
modelValue: o.value,
|
|
89
89
|
"onUpdate:modelValue": d[1] || (d[1] = (u) => o.value = u),
|
|
@@ -94,14 +94,14 @@ const qS = {
|
|
|
94
94
|
clearable: ""
|
|
95
95
|
}, {
|
|
96
96
|
default: ne(() => [
|
|
97
|
-
(
|
|
97
|
+
(H(!0), fe(nt, null, Dn(e.dropdownOptions, (u) => (H(), Ee(U(ku), {
|
|
98
98
|
key: u.id,
|
|
99
99
|
label: u.name,
|
|
100
100
|
value: u.id
|
|
101
101
|
}, null, 8, ["label", "value"]))), 128))
|
|
102
102
|
]),
|
|
103
103
|
_: 1
|
|
104
|
-
}, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "date" || e.item.type === "date" ? (
|
|
104
|
+
}, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "date" || e.item.type === "date" ? (H(), Ee(U(Lu), {
|
|
105
105
|
key: 2,
|
|
106
106
|
modelValue: o.value,
|
|
107
107
|
"onUpdate:modelValue": d[2] || (d[2] = (u) => o.value = u),
|
|
@@ -112,7 +112,7 @@ const qS = {
|
|
|
112
112
|
readonly: l.value,
|
|
113
113
|
clearable: "",
|
|
114
114
|
style: { width: "100%" }
|
|
115
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "daterange" || e.item.type === "daterange" ? (
|
|
115
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "daterange" || e.item.type === "daterange" ? (H(), Ee(U(Lu), {
|
|
116
116
|
key: 3,
|
|
117
117
|
modelValue: o.value,
|
|
118
118
|
"onUpdate:modelValue": d[3] || (d[3] = (u) => o.value = u),
|
|
@@ -122,7 +122,7 @@ const qS = {
|
|
|
122
122
|
disabled: s.value,
|
|
123
123
|
readonly: l.value,
|
|
124
124
|
clearable: ""
|
|
125
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "checkbox" || e.item.type === "checkbox" ? (
|
|
125
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "checkbox" || e.item.type === "checkbox" ? (H(), Ee(U(a_), {
|
|
126
126
|
key: 4,
|
|
127
127
|
modelValue: o.value,
|
|
128
128
|
"onUpdate:modelValue": d[4] || (d[4] = (u) => o.value = u),
|
|
@@ -130,14 +130,14 @@ const qS = {
|
|
|
130
130
|
readonly: l.value
|
|
131
131
|
}, {
|
|
132
132
|
default: ne(() => [
|
|
133
|
-
(
|
|
133
|
+
(H(!0), fe(nt, null, Dn(e.dropdownOptions, (u) => (H(), Ee(U(Ed), {
|
|
134
134
|
key: u.id,
|
|
135
135
|
label: u.name,
|
|
136
136
|
value: u.id
|
|
137
137
|
}, null, 8, ["label", "value"]))), 128))
|
|
138
138
|
]),
|
|
139
139
|
_: 1
|
|
140
|
-
}, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "radio" || e.item.type === "radio" ? (
|
|
140
|
+
}, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "radio" || e.item.type === "radio" ? (H(), Ee(U(kS), {
|
|
141
141
|
key: 5,
|
|
142
142
|
modelValue: o.value,
|
|
143
143
|
"onUpdate:modelValue": d[5] || (d[5] = (u) => o.value = u),
|
|
@@ -145,14 +145,14 @@ const qS = {
|
|
|
145
145
|
readonly: l.value
|
|
146
146
|
}, {
|
|
147
147
|
default: ne(() => [
|
|
148
|
-
(
|
|
148
|
+
(H(!0), fe(nt, null, Dn(e.dropdownOptions, (u) => (H(), Ee(U(LS), {
|
|
149
149
|
key: u.id,
|
|
150
150
|
label: u.name,
|
|
151
151
|
value: u.id
|
|
152
152
|
}, null, 8, ["label", "value"]))), 128))
|
|
153
153
|
]),
|
|
154
154
|
_: 1
|
|
155
|
-
}, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "textarea" || e.item.type === "textarea" ? (
|
|
155
|
+
}, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "textarea" || e.item.type === "textarea" ? (H(), Ee(U(Ec), {
|
|
156
156
|
key: 6,
|
|
157
157
|
modelValue: o.value,
|
|
158
158
|
"onUpdate:modelValue": d[6] || (d[6] = (u) => o.value = u),
|
|
@@ -161,7 +161,7 @@ const qS = {
|
|
|
161
161
|
disabled: s.value,
|
|
162
162
|
readonly: l.value,
|
|
163
163
|
clearable: ""
|
|
164
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : (
|
|
164
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : (H(), Ee(U(Ec), {
|
|
165
165
|
key: 7,
|
|
166
166
|
modelValue: o.value,
|
|
167
167
|
"onUpdate:modelValue": d[7] || (d[7] = (u) => o.value = u),
|
|
@@ -176,7 +176,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
176
176
|
name: "CircleClose",
|
|
177
177
|
__name: "circle-close",
|
|
178
178
|
setup(e) {
|
|
179
|
-
return (t, n) => (
|
|
179
|
+
return (t, n) => (H(), fe("svg", {
|
|
180
180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
181
181
|
viewBox: "0 0 1024 1024"
|
|
182
182
|
}, [
|
|
@@ -194,7 +194,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
194
194
|
name: "Delete",
|
|
195
195
|
__name: "delete",
|
|
196
196
|
setup(e) {
|
|
197
|
-
return (t, n) => (
|
|
197
|
+
return (t, n) => (H(), fe("svg", {
|
|
198
198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
199
199
|
viewBox: "0 0 1024 1024"
|
|
200
200
|
}, [
|
|
@@ -208,7 +208,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
208
208
|
name: "Document",
|
|
209
209
|
__name: "document",
|
|
210
210
|
setup(e) {
|
|
211
|
-
return (t, n) => (
|
|
211
|
+
return (t, n) => (H(), fe("svg", {
|
|
212
212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
213
213
|
viewBox: "0 0 1024 1024"
|
|
214
214
|
}, [
|
|
@@ -222,7 +222,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
222
222
|
name: "Download",
|
|
223
223
|
__name: "download",
|
|
224
224
|
setup(e) {
|
|
225
|
-
return (t, n) => (
|
|
225
|
+
return (t, n) => (H(), fe("svg", {
|
|
226
226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
227
227
|
viewBox: "0 0 1024 1024"
|
|
228
228
|
}, [
|
|
@@ -236,7 +236,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
236
236
|
name: "EditPen",
|
|
237
237
|
__name: "edit-pen",
|
|
238
238
|
setup(e) {
|
|
239
|
-
return (t, n) => (
|
|
239
|
+
return (t, n) => (H(), fe("svg", {
|
|
240
240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
241
241
|
viewBox: "0 0 1024 1024"
|
|
242
242
|
}, [
|
|
@@ -250,7 +250,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
250
250
|
name: "Files",
|
|
251
251
|
__name: "files",
|
|
252
252
|
setup(e) {
|
|
253
|
-
return (t, n) => (
|
|
253
|
+
return (t, n) => (H(), fe("svg", {
|
|
254
254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
255
255
|
viewBox: "0 0 1024 1024"
|
|
256
256
|
}, [
|
|
@@ -264,7 +264,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
264
264
|
name: "Headset",
|
|
265
265
|
__name: "headset",
|
|
266
266
|
setup(e) {
|
|
267
|
-
return (t, n) => (
|
|
267
|
+
return (t, n) => (H(), fe("svg", {
|
|
268
268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
269
269
|
viewBox: "0 0 1024 1024"
|
|
270
270
|
}, [
|
|
@@ -278,7 +278,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
278
278
|
name: "Menu",
|
|
279
279
|
__name: "menu",
|
|
280
280
|
setup(e) {
|
|
281
|
-
return (t, n) => (
|
|
281
|
+
return (t, n) => (H(), fe("svg", {
|
|
282
282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
283
283
|
viewBox: "0 0 1024 1024"
|
|
284
284
|
}, [
|
|
@@ -292,7 +292,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
292
292
|
name: "MoreFilled",
|
|
293
293
|
__name: "more-filled",
|
|
294
294
|
setup(e) {
|
|
295
|
-
return (t, n) => (
|
|
295
|
+
return (t, n) => (H(), fe("svg", {
|
|
296
296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
297
297
|
viewBox: "0 0 1024 1024"
|
|
298
298
|
}, [
|
|
@@ -306,7 +306,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
306
306
|
name: "Plus",
|
|
307
307
|
__name: "plus",
|
|
308
308
|
setup(e) {
|
|
309
|
-
return (t, n) => (
|
|
309
|
+
return (t, n) => (H(), fe("svg", {
|
|
310
310
|
xmlns: "http://www.w3.org/2000/svg",
|
|
311
311
|
viewBox: "0 0 1024 1024"
|
|
312
312
|
}, [
|
|
@@ -320,7 +320,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
320
320
|
name: "VideoCamera",
|
|
321
321
|
__name: "video-camera",
|
|
322
322
|
setup(e) {
|
|
323
|
-
return (t, n) => (
|
|
323
|
+
return (t, n) => (H(), fe("svg", {
|
|
324
324
|
xmlns: "http://www.w3.org/2000/svg",
|
|
325
325
|
viewBox: "0 0 1024 1024"
|
|
326
326
|
}, [
|
|
@@ -334,7 +334,7 @@ var jS = /* @__PURE__ */ je({
|
|
|
334
334
|
name: "ZoomIn",
|
|
335
335
|
__name: "zoom-in",
|
|
336
336
|
setup(e) {
|
|
337
|
-
return (t, n) => (
|
|
337
|
+
return (t, n) => (H(), fe("svg", {
|
|
338
338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
339
339
|
viewBox: "0 0 1024 1024"
|
|
340
340
|
}, [
|
|
@@ -448,8 +448,8 @@ const mb = (e, t) => {
|
|
|
448
448
|
y === "image" ? (a.value = [v], o.value = !0) : window.open(v, "_blank");
|
|
449
449
|
}, S = (f) => {
|
|
450
450
|
if (!f) return "other";
|
|
451
|
-
const y = f.toLowerCase().split(".").pop() || "", v = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg"], T = "pdf", R = ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"], O = ["mp4", "avi", "mov", "wmv", "flv", "mkv"],
|
|
452
|
-
return v.includes(y) ? "image" : y === T ? "pdf" : R.includes(y) ? "document" : O.includes(y) ? "video" :
|
|
451
|
+
const y = f.toLowerCase().split(".").pop() || "", v = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg"], T = "pdf", R = ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"], O = ["mp4", "avi", "mov", "wmv", "flv", "mkv"], M = ["mp3", "wav", "flac", "aac", "ogg"];
|
|
452
|
+
return v.includes(y) ? "image" : y === T ? "pdf" : R.includes(y) ? "document" : O.includes(y) ? "video" : M.includes(y) ? "audio" : "other";
|
|
453
453
|
}, E = (f) => {
|
|
454
454
|
switch (S(f)) {
|
|
455
455
|
case "pdf":
|
|
@@ -489,7 +489,7 @@ const mb = (e, t) => {
|
|
|
489
489
|
i.value = mb(n.modelValue, n.download) || [], a.value = i.value.map((f) => f.url), s.value = a.value[0] || "";
|
|
490
490
|
debugger;
|
|
491
491
|
}
|
|
492
|
-
}), (f, y) => e.currentOperationType == "column" ? (
|
|
492
|
+
}), (f, y) => e.currentOperationType == "column" ? (H(), Ee(U(PS), {
|
|
493
493
|
key: 0,
|
|
494
494
|
src: s.value,
|
|
495
495
|
"preview-src-list": a.value,
|
|
@@ -497,7 +497,7 @@ const mb = (e, t) => {
|
|
|
497
497
|
fit: "cover",
|
|
498
498
|
"preview-teleported": "",
|
|
499
499
|
style: { width: "100%", height: "100%" }
|
|
500
|
-
}, null, 8, ["src", "preview-src-list"])) : (
|
|
500
|
+
}, null, 8, ["src", "preview-src-list"])) : (H(), fe(nt, { key: 1 }, [
|
|
501
501
|
ce(U(FS), {
|
|
502
502
|
"file-list": i.value,
|
|
503
503
|
"onUpdate:fileList": y[0] || (y[0] = (v) => i.value = v),
|
|
@@ -518,7 +518,7 @@ const mb = (e, t) => {
|
|
|
518
518
|
}, {
|
|
519
519
|
file: ne(({ file: v }) => [
|
|
520
520
|
Fe("div", _b, [
|
|
521
|
-
S(v.name || v.fileName) === "image" ? (
|
|
521
|
+
S(v.name || v.fileName) === "image" ? (H(), fe(nt, { key: 0 }, [
|
|
522
522
|
Fe("img", {
|
|
523
523
|
src: v.url,
|
|
524
524
|
class: "upload-image"
|
|
@@ -535,7 +535,7 @@ const mb = (e, t) => {
|
|
|
535
535
|
_: 1
|
|
536
536
|
})
|
|
537
537
|
], 8, Eb),
|
|
538
|
-
c.value ? Ze("", !0) : (
|
|
538
|
+
c.value ? Ze("", !0) : (H(), fe("span", {
|
|
539
539
|
key: 0,
|
|
540
540
|
class: "file-action",
|
|
541
541
|
onClick: (T) => p(v)
|
|
@@ -548,13 +548,13 @@ const mb = (e, t) => {
|
|
|
548
548
|
})
|
|
549
549
|
], 8, Sb))
|
|
550
550
|
])
|
|
551
|
-
], 64)) : (
|
|
551
|
+
], 64)) : (H(), fe(nt, { key: 1 }, [
|
|
552
552
|
ce(U(Gn), {
|
|
553
553
|
size: 32,
|
|
554
554
|
color: b(v.name || v.fileName)
|
|
555
555
|
}, {
|
|
556
556
|
default: ne(() => [
|
|
557
|
-
(
|
|
557
|
+
(H(), Ee(IS(E(v.name || v.fileName))))
|
|
558
558
|
]),
|
|
559
559
|
_: 2
|
|
560
560
|
}, 1032, ["color"]),
|
|
@@ -571,7 +571,7 @@ const mb = (e, t) => {
|
|
|
571
571
|
_: 1
|
|
572
572
|
})
|
|
573
573
|
], 8, yb),
|
|
574
|
-
c.value ? Ze("", !0) : (
|
|
574
|
+
c.value ? Ze("", !0) : (H(), fe("span", {
|
|
575
575
|
key: 0,
|
|
576
576
|
class: "file-action",
|
|
577
577
|
onClick: (T) => p(v)
|
|
@@ -597,7 +597,7 @@ const mb = (e, t) => {
|
|
|
597
597
|
]),
|
|
598
598
|
_: 1
|
|
599
599
|
}, 8, ["file-list", "action", "headers", "accept", "limit", "disabled", "readonly", "class"]),
|
|
600
|
-
o.value ? (
|
|
600
|
+
o.value ? (H(), Ee(U(BS), {
|
|
601
601
|
key: 0,
|
|
602
602
|
"url-list": a.value,
|
|
603
603
|
"show-progress": "",
|
|
@@ -615,11 +615,11 @@ const mb = (e, t) => {
|
|
|
615
615
|
var Nb = Object.defineProperty, l_ = (e) => {
|
|
616
616
|
throw TypeError(e);
|
|
617
617
|
}, Rb = (e, t, n) => t in e ? Nb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t, n) => Rb(e, typeof t != "symbol" ? t + "" : t, n), c_ = (e, t, n) => t.has(e) || l_("Cannot " + n), Pi = (e, t, n) => (c_(e, t, "read from private field"), t.get(e)), Ab = (e, t, n) => t.has(e) ? l_("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), wb = (e, t, n, r) => (c_(e, t, "write to private field"), t.set(e, n), n);
|
|
618
|
-
function
|
|
618
|
+
function lt(e) {
|
|
619
619
|
this.content = e;
|
|
620
620
|
}
|
|
621
|
-
|
|
622
|
-
constructor:
|
|
621
|
+
lt.prototype = {
|
|
622
|
+
constructor: lt,
|
|
623
623
|
find: function(e) {
|
|
624
624
|
for (var t = 0; t < this.content.length; t += 2)
|
|
625
625
|
if (this.content[t] === e) return t;
|
|
@@ -638,7 +638,7 @@ st.prototype = {
|
|
|
638
638
|
// given, the key of the binding will be replaced with that key.
|
|
639
639
|
update: function(e, t, n) {
|
|
640
640
|
var r = n && n != e ? this.remove(n) : this, i = r.find(e), o = r.content.slice();
|
|
641
|
-
return i == -1 ? o.push(n || e, t) : (o[i + 1] = t, n && (o[i] = n)), new
|
|
641
|
+
return i == -1 ? o.push(n || e, t) : (o[i + 1] = t, n && (o[i] = n)), new lt(o);
|
|
642
642
|
},
|
|
643
643
|
// :: (string) → OrderedMap
|
|
644
644
|
// Return a map with the given key removed, if it existed.
|
|
@@ -646,25 +646,25 @@ st.prototype = {
|
|
|
646
646
|
var t = this.find(e);
|
|
647
647
|
if (t == -1) return this;
|
|
648
648
|
var n = this.content.slice();
|
|
649
|
-
return n.splice(t, 2), new
|
|
649
|
+
return n.splice(t, 2), new lt(n);
|
|
650
650
|
},
|
|
651
651
|
// :: (string, any) → OrderedMap
|
|
652
652
|
// Add a new key to the start of the map.
|
|
653
653
|
addToStart: function(e, t) {
|
|
654
|
-
return new
|
|
654
|
+
return new lt([e, t].concat(this.remove(e).content));
|
|
655
655
|
},
|
|
656
656
|
// :: (string, any) → OrderedMap
|
|
657
657
|
// Add a new key to the end of the map.
|
|
658
658
|
addToEnd: function(e, t) {
|
|
659
659
|
var n = this.remove(e).content.slice();
|
|
660
|
-
return n.push(e, t), new
|
|
660
|
+
return n.push(e, t), new lt(n);
|
|
661
661
|
},
|
|
662
662
|
// :: (string, string, any) → OrderedMap
|
|
663
663
|
// Add a key after the given key. If `place` is not found, the new
|
|
664
664
|
// key is added to the end.
|
|
665
665
|
addBefore: function(e, t, n) {
|
|
666
666
|
var r = this.remove(t), i = r.content.slice(), o = r.find(e);
|
|
667
|
-
return i.splice(o == -1 ? i.length : o, 0, t, n), new
|
|
667
|
+
return i.splice(o == -1 ? i.length : o, 0, t, n), new lt(i);
|
|
668
668
|
},
|
|
669
669
|
// :: ((key: string, value: any))
|
|
670
670
|
// Call the given function for each key/value pair in the map, in
|
|
@@ -677,20 +677,20 @@ st.prototype = {
|
|
|
677
677
|
// Create a new map by prepending the keys in this map that don't
|
|
678
678
|
// appear in `map` before the keys in `map`.
|
|
679
679
|
prepend: function(e) {
|
|
680
|
-
return e =
|
|
680
|
+
return e = lt.from(e), e.size ? new lt(e.content.concat(this.subtract(e).content)) : this;
|
|
681
681
|
},
|
|
682
682
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
683
683
|
// Create a new map by appending the keys in this map that don't
|
|
684
684
|
// appear in `map` after the keys in `map`.
|
|
685
685
|
append: function(e) {
|
|
686
|
-
return e =
|
|
686
|
+
return e = lt.from(e), e.size ? new lt(this.subtract(e).content.concat(e.content)) : this;
|
|
687
687
|
},
|
|
688
688
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
689
689
|
// Create a map containing all the keys in this map that don't
|
|
690
690
|
// appear in `map`.
|
|
691
691
|
subtract: function(e) {
|
|
692
692
|
var t = this;
|
|
693
|
-
e =
|
|
693
|
+
e = lt.from(e);
|
|
694
694
|
for (var n = 0; n < e.content.length; n += 2)
|
|
695
695
|
t = t.remove(e.content[n]);
|
|
696
696
|
return t;
|
|
@@ -709,11 +709,11 @@ st.prototype = {
|
|
|
709
709
|
return this.content.length >> 1;
|
|
710
710
|
}
|
|
711
711
|
};
|
|
712
|
-
|
|
713
|
-
if (e instanceof
|
|
712
|
+
lt.from = function(e) {
|
|
713
|
+
if (e instanceof lt) return e;
|
|
714
714
|
var t = [];
|
|
715
715
|
if (e) for (var n in e) t.push(n, e[n]);
|
|
716
|
-
return new
|
|
716
|
+
return new lt(t);
|
|
717
717
|
};
|
|
718
718
|
function d_(e, t, n) {
|
|
719
719
|
for (let r = 0; ; r++) {
|
|
@@ -764,7 +764,7 @@ function u_(e, t, n, r) {
|
|
|
764
764
|
n -= l, r -= l;
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
class
|
|
767
|
+
class k {
|
|
768
768
|
/**
|
|
769
769
|
@internal
|
|
770
770
|
*/
|
|
@@ -819,7 +819,7 @@ class M {
|
|
|
819
819
|
let n = this.lastChild, r = t.firstChild, i = this.content.slice(), o = 0;
|
|
820
820
|
for (n.isText && n.sameMarkup(r) && (i[i.length - 1] = n.withText(n.text + r.text), o = 1); o < t.content.length; o++)
|
|
821
821
|
i.push(t.content[o]);
|
|
822
|
-
return new
|
|
822
|
+
return new k(i, this.size + t.size);
|
|
823
823
|
}
|
|
824
824
|
/**
|
|
825
825
|
Cut out the sub-fragment between the two given positions.
|
|
@@ -833,13 +833,13 @@ class M {
|
|
|
833
833
|
let s = this.content[o], l = a + s.nodeSize;
|
|
834
834
|
l > t && ((a < t || l > n) && (s.isText ? s = s.cut(Math.max(0, t - a), Math.min(s.text.length, n - a)) : s = s.cut(Math.max(0, t - a - 1), Math.min(s.content.size, n - a - 1))), r.push(s), i += s.nodeSize), a = l;
|
|
835
835
|
}
|
|
836
|
-
return new
|
|
836
|
+
return new k(r, i);
|
|
837
837
|
}
|
|
838
838
|
/**
|
|
839
839
|
@internal
|
|
840
840
|
*/
|
|
841
841
|
cutByIndex(t, n) {
|
|
842
|
-
return t == n ?
|
|
842
|
+
return t == n ? k.empty : t == 0 && n == this.content.length ? this : new k(this.content.slice(t, n));
|
|
843
843
|
}
|
|
844
844
|
/**
|
|
845
845
|
Create a new fragment in which the node at the given index is
|
|
@@ -850,21 +850,21 @@ class M {
|
|
|
850
850
|
if (r == n)
|
|
851
851
|
return this;
|
|
852
852
|
let i = this.content.slice(), o = this.size + n.nodeSize - r.nodeSize;
|
|
853
|
-
return i[t] = n, new
|
|
853
|
+
return i[t] = n, new k(i, o);
|
|
854
854
|
}
|
|
855
855
|
/**
|
|
856
856
|
Create a new fragment by prepending the given node to this
|
|
857
857
|
fragment.
|
|
858
858
|
*/
|
|
859
859
|
addToStart(t) {
|
|
860
|
-
return new
|
|
860
|
+
return new k([t].concat(this.content), this.size + t.nodeSize);
|
|
861
861
|
}
|
|
862
862
|
/**
|
|
863
863
|
Create a new fragment by appending the given node to this
|
|
864
864
|
fragment.
|
|
865
865
|
*/
|
|
866
866
|
addToEnd(t) {
|
|
867
|
-
return new
|
|
867
|
+
return new k(this.content.concat(t), this.size + t.nodeSize);
|
|
868
868
|
}
|
|
869
869
|
/**
|
|
870
870
|
Compare this fragment to another one.
|
|
@@ -979,10 +979,10 @@ class M {
|
|
|
979
979
|
*/
|
|
980
980
|
static fromJSON(t, n) {
|
|
981
981
|
if (!n)
|
|
982
|
-
return
|
|
982
|
+
return k.empty;
|
|
983
983
|
if (!Array.isArray(n))
|
|
984
984
|
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
985
|
-
return new
|
|
985
|
+
return new k(n.map(t.nodeFromJSON));
|
|
986
986
|
}
|
|
987
987
|
/**
|
|
988
988
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -990,13 +990,13 @@ class M {
|
|
|
990
990
|
*/
|
|
991
991
|
static fromArray(t) {
|
|
992
992
|
if (!t.length)
|
|
993
|
-
return
|
|
993
|
+
return k.empty;
|
|
994
994
|
let n, r = 0;
|
|
995
995
|
for (let i = 0; i < t.length; i++) {
|
|
996
996
|
let o = t[i];
|
|
997
997
|
r += o.nodeSize, i && o.isText && t[i - 1].sameMarkup(o) ? (n || (n = t.slice(0, i)), n[n.length - 1] = o.withText(n[n.length - 1].text + o.text)) : n && n.push(o);
|
|
998
998
|
}
|
|
999
|
-
return new
|
|
999
|
+
return new k(n || t, r);
|
|
1000
1000
|
}
|
|
1001
1001
|
/**
|
|
1002
1002
|
Create a fragment from something that can be interpreted as a
|
|
@@ -1006,17 +1006,17 @@ class M {
|
|
|
1006
1006
|
*/
|
|
1007
1007
|
static from(t) {
|
|
1008
1008
|
if (!t)
|
|
1009
|
-
return
|
|
1010
|
-
if (t instanceof
|
|
1009
|
+
return k.empty;
|
|
1010
|
+
if (t instanceof k)
|
|
1011
1011
|
return t;
|
|
1012
1012
|
if (Array.isArray(t))
|
|
1013
1013
|
return this.fromArray(t);
|
|
1014
1014
|
if (t.attrs)
|
|
1015
|
-
return new
|
|
1015
|
+
return new k([t], t.nodeSize);
|
|
1016
1016
|
throw new RangeError("Can not convert " + t + " to a Fragment" + (t.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
|
|
1019
|
+
k.empty = new k([], 0);
|
|
1020
1020
|
const vl = { index: 0, offset: 0 };
|
|
1021
1021
|
function ra(e, t) {
|
|
1022
1022
|
return vl.index = e, vl.offset = t, vl;
|
|
@@ -1218,7 +1218,7 @@ class z {
|
|
|
1218
1218
|
let r = n.openStart || 0, i = n.openEnd || 0;
|
|
1219
1219
|
if (typeof r != "number" || typeof i != "number")
|
|
1220
1220
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
1221
|
-
return new z(
|
|
1221
|
+
return new z(k.fromJSON(t, n.content), r, i);
|
|
1222
1222
|
}
|
|
1223
1223
|
/**
|
|
1224
1224
|
Create a slice from a fragment by taking the maximum possible
|
|
@@ -1233,7 +1233,7 @@ class z {
|
|
|
1233
1233
|
return new z(t, r, i);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
z.empty = new z(
|
|
1236
|
+
z.empty = new z(k.empty, 0, 0);
|
|
1237
1237
|
function p_(e, t, n) {
|
|
1238
1238
|
let { index: r, offset: i } = e.findIndex(t), o = e.maybeChild(r), { index: a, offset: s } = e.findIndex(n);
|
|
1239
1239
|
if (i == t || o.isText) {
|
|
@@ -1298,7 +1298,7 @@ function Tr(e, t) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
function g_(e, t, n, r, i) {
|
|
1300
1300
|
let o = e.depth > i && vc(e, t, i + 1), a = r.depth > i && vc(n, r, i + 1), s = [];
|
|
1301
|
-
return Ji(null, e, i, s), o && a && t.index(i) == n.index(i) ? (__(o, a), Cr(Tr(o, g_(e, t, n, r, i + 1)), s)) : (o && Cr(Tr(o, Va(e, t, i + 1)), s), Ji(t, n, i, s), a && Cr(Tr(a, Va(n, r, i + 1)), s)), Ji(r, null, i, s), new
|
|
1301
|
+
return Ji(null, e, i, s), o && a && t.index(i) == n.index(i) ? (__(o, a), Cr(Tr(o, g_(e, t, n, r, i + 1)), s)) : (o && Cr(Tr(o, Va(e, t, i + 1)), s), Ji(t, n, i, s), a && Cr(Tr(a, Va(n, r, i + 1)), s)), Ji(r, null, i, s), new k(s);
|
|
1302
1302
|
}
|
|
1303
1303
|
function Va(e, t, n) {
|
|
1304
1304
|
let r = [];
|
|
@@ -1306,12 +1306,12 @@ function Va(e, t, n) {
|
|
|
1306
1306
|
let i = vc(e, t, n + 1);
|
|
1307
1307
|
Cr(Tr(i, Va(e, t, n + 1)), r);
|
|
1308
1308
|
}
|
|
1309
|
-
return Ji(t, null, n, r), new
|
|
1309
|
+
return Ji(t, null, n, r), new k(r);
|
|
1310
1310
|
}
|
|
1311
1311
|
function xb(e, t) {
|
|
1312
1312
|
let n = t.depth - e.openStart, r = t.node(n).copy(e.content);
|
|
1313
1313
|
for (let i = n - 1; i >= 0; i--)
|
|
1314
|
-
r = t.node(i).copy(
|
|
1314
|
+
r = t.node(i).copy(k.from(r));
|
|
1315
1315
|
return {
|
|
1316
1316
|
start: r.resolveNoCache(e.openStart + n),
|
|
1317
1317
|
end: r.resolveNoCache(r.content.size - e.openEnd - n)
|
|
@@ -1611,12 +1611,12 @@ class Ga {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
const kb = /* @__PURE__ */ Object.create(null);
|
|
1614
|
-
let
|
|
1614
|
+
let Ln = class yc {
|
|
1615
1615
|
/**
|
|
1616
1616
|
@internal
|
|
1617
1617
|
*/
|
|
1618
1618
|
constructor(t, n, r, i = Be.none) {
|
|
1619
|
-
this.type = t, this.attrs = n, this.marks = i, this.content = r ||
|
|
1619
|
+
this.type = t, this.attrs = n, this.marks = i, this.content = r || k.empty;
|
|
1620
1620
|
}
|
|
1621
1621
|
/**
|
|
1622
1622
|
The array of this node's child nodes.
|
|
@@ -1905,7 +1905,7 @@ let kn = class yc {
|
|
|
1905
1905
|
can optionally pass `start` and `end` indices into the
|
|
1906
1906
|
replacement fragment.
|
|
1907
1907
|
*/
|
|
1908
|
-
canReplace(t, n, r =
|
|
1908
|
+
canReplace(t, n, r = k.empty, i = 0, o = r.childCount) {
|
|
1909
1909
|
let a = this.contentMatchAt(t).matchFragment(r, i, o), s = a && a.matchFragment(this.content, n);
|
|
1910
1910
|
if (!s || !s.validEnd)
|
|
1911
1911
|
return !1;
|
|
@@ -1976,12 +1976,12 @@ let kn = class yc {
|
|
|
1976
1976
|
throw new RangeError("Invalid text node in JSON");
|
|
1977
1977
|
return t.text(n.text, r);
|
|
1978
1978
|
}
|
|
1979
|
-
let i =
|
|
1979
|
+
let i = k.fromJSON(t, n.content), o = t.nodeType(n.type).create(n.attrs, i, r);
|
|
1980
1980
|
return o.type.checkAttrs(o.attrs), o;
|
|
1981
1981
|
}
|
|
1982
1982
|
};
|
|
1983
|
-
|
|
1984
|
-
class za extends
|
|
1983
|
+
Ln.prototype.text = void 0;
|
|
1984
|
+
class za extends Ln {
|
|
1985
1985
|
/**
|
|
1986
1986
|
@internal
|
|
1987
1987
|
*/
|
|
@@ -2104,7 +2104,7 @@ class Dr {
|
|
|
2104
2104
|
function o(a, s) {
|
|
2105
2105
|
let l = a.matchFragment(t, r);
|
|
2106
2106
|
if (l && (!n || l.validEnd))
|
|
2107
|
-
return
|
|
2107
|
+
return k.from(s.map((c) => c.createAndFill()));
|
|
2108
2108
|
for (let c = 0; c < a.next.length; c++) {
|
|
2109
2109
|
let { type: d, next: u } = a.next[c];
|
|
2110
2110
|
if (!(d.isText || d.hasRequiredAttrs()) && i.indexOf(u) == -1) {
|
|
@@ -2487,7 +2487,7 @@ let Yu = class T_ {
|
|
|
2487
2487
|
create(t = null, n, r) {
|
|
2488
2488
|
if (this.isText)
|
|
2489
2489
|
throw new Error("NodeType.create can't construct text nodes");
|
|
2490
|
-
return new
|
|
2490
|
+
return new Ln(this, this.computeAttrs(t), k.from(n), Be.setFrom(r));
|
|
2491
2491
|
}
|
|
2492
2492
|
/**
|
|
2493
2493
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -2495,7 +2495,7 @@ let Yu = class T_ {
|
|
|
2495
2495
|
if it doesn't match.
|
|
2496
2496
|
*/
|
|
2497
2497
|
createChecked(t = null, n, r) {
|
|
2498
|
-
return n =
|
|
2498
|
+
return n = k.from(n), this.checkContent(n), new Ln(this, this.computeAttrs(t), n, Be.setFrom(r));
|
|
2499
2499
|
}
|
|
2500
2500
|
/**
|
|
2501
2501
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -2506,14 +2506,14 @@ let Yu = class T_ {
|
|
|
2506
2506
|
`Fragment.empty` as content.
|
|
2507
2507
|
*/
|
|
2508
2508
|
createAndFill(t = null, n, r) {
|
|
2509
|
-
if (t = this.computeAttrs(t), n =
|
|
2509
|
+
if (t = this.computeAttrs(t), n = k.from(n), n.size) {
|
|
2510
2510
|
let a = this.contentMatch.fillBefore(n);
|
|
2511
2511
|
if (!a)
|
|
2512
2512
|
return null;
|
|
2513
2513
|
n = a.append(n);
|
|
2514
2514
|
}
|
|
2515
|
-
let i = this.contentMatch.matchFragment(n), o = i && i.fillBefore(
|
|
2516
|
-
return o ? new
|
|
2515
|
+
let i = this.contentMatch.matchFragment(n), o = i && i.fillBefore(k.empty, !0);
|
|
2516
|
+
return o ? new Ln(this, t, n.append(o), Be.setFrom(r)) : null;
|
|
2517
2517
|
}
|
|
2518
2518
|
/**
|
|
2519
2519
|
Returns true if the given fragment is valid content for this node
|
|
@@ -2667,7 +2667,7 @@ class O_ {
|
|
|
2667
2667
|
let n = this.spec = {};
|
|
2668
2668
|
for (let i in t)
|
|
2669
2669
|
n[i] = t[i];
|
|
2670
|
-
n.nodes =
|
|
2670
|
+
n.nodes = lt.from(t.nodes), n.marks = lt.from(t.marks || {}), this.nodes = Yu.compile(this.spec.nodes, this), this.marks = Gs.compile(this.spec.marks, this);
|
|
2671
2671
|
let r = /* @__PURE__ */ Object.create(null);
|
|
2672
2672
|
for (let i in this.nodes) {
|
|
2673
2673
|
if (i in this.marks)
|
|
@@ -2722,7 +2722,7 @@ class O_ {
|
|
|
2722
2722
|
bound.
|
|
2723
2723
|
*/
|
|
2724
2724
|
nodeFromJSON(t) {
|
|
2725
|
-
return
|
|
2725
|
+
return Ln.fromJSON(this, t);
|
|
2726
2726
|
}
|
|
2727
2727
|
/**
|
|
2728
2728
|
Deserialize a mark from its JSON representation. This method is
|
|
@@ -2930,7 +2930,7 @@ class ia {
|
|
|
2930
2930
|
if (!this.match) {
|
|
2931
2931
|
if (!this.type)
|
|
2932
2932
|
return [];
|
|
2933
|
-
let n = this.type.contentMatch.fillBefore(
|
|
2933
|
+
let n = this.type.contentMatch.fillBefore(k.from(t));
|
|
2934
2934
|
if (n)
|
|
2935
2935
|
this.match = this.type.contentMatch.matchFragment(n);
|
|
2936
2936
|
else {
|
|
@@ -2948,8 +2948,8 @@ class ia {
|
|
|
2948
2948
|
r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = o.withText(o.text.slice(0, o.text.length - i[0].length));
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
|
-
let n =
|
|
2952
|
-
return !t && this.match && (n = n.append(this.match.fillBefore(
|
|
2951
|
+
let n = k.from(this.content);
|
|
2952
|
+
return !t && this.match && (n = n.append(this.match.fillBefore(k.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
|
|
2953
2953
|
}
|
|
2954
2954
|
inlineContext(t) {
|
|
2955
2955
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !N_.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
|
|
@@ -3766,7 +3766,7 @@ function Sd(e, t, n) {
|
|
|
3766
3766
|
let o = e.child(i);
|
|
3767
3767
|
o.content.size && (o = o.copy(Sd(o.content, t, o))), o.isInline && (o = t(o, n, i)), r.push(o);
|
|
3768
3768
|
}
|
|
3769
|
-
return
|
|
3769
|
+
return k.fromArray(r);
|
|
3770
3770
|
}
|
|
3771
3771
|
class Zn extends ft {
|
|
3772
3772
|
/**
|
|
@@ -3858,7 +3858,7 @@ class Xn extends ft {
|
|
|
3858
3858
|
if (!n)
|
|
3859
3859
|
return Xe.fail("No node at mark step's position");
|
|
3860
3860
|
let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
|
|
3861
|
-
return Xe.fromReplace(t, this.pos, this.pos + 1, new z(
|
|
3861
|
+
return Xe.fromReplace(t, this.pos, this.pos + 1, new z(k.from(r), 0, n.isLeaf ? 0 : 1));
|
|
3862
3862
|
}
|
|
3863
3863
|
invert(t) {
|
|
3864
3864
|
let n = t.nodeAt(this.pos);
|
|
@@ -3902,7 +3902,7 @@ class _i extends ft {
|
|
|
3902
3902
|
if (!n)
|
|
3903
3903
|
return Xe.fail("No node at mark step's position");
|
|
3904
3904
|
let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
|
|
3905
|
-
return Xe.fromReplace(t, this.pos, this.pos + 1, new z(
|
|
3905
|
+
return Xe.fromReplace(t, this.pos, this.pos + 1, new z(k.from(r), 0, n.isLeaf ? 0 : 1));
|
|
3906
3906
|
}
|
|
3907
3907
|
invert(t) {
|
|
3908
3908
|
let n = t.nodeAt(this.pos);
|
|
@@ -3977,7 +3977,7 @@ class et extends ft {
|
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
3979
|
ft.jsonID("replace", et);
|
|
3980
|
-
class
|
|
3980
|
+
class it extends ft {
|
|
3981
3981
|
/**
|
|
3982
3982
|
Create a replace-around step with the given range and gap.
|
|
3983
3983
|
`insert` should be the point in the slice into which the content
|
|
@@ -4008,11 +4008,11 @@ class rt extends ft {
|
|
|
4008
4008
|
}
|
|
4009
4009
|
invert(t) {
|
|
4010
4010
|
let n = this.gapTo - this.gapFrom;
|
|
4011
|
-
return new
|
|
4011
|
+
return new it(this.from, this.from + this.slice.size + n, this.from + this.insert, this.from + this.insert + n, t.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
4012
4012
|
}
|
|
4013
4013
|
map(t) {
|
|
4014
4014
|
let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1), i = this.from == this.gapFrom ? n.pos : t.map(this.gapFrom, -1), o = this.to == this.gapTo ? r.pos : t.map(this.gapTo, 1);
|
|
4015
|
-
return n.deletedAcross && r.deletedAcross || i < n.pos || o > r.pos ? null : new
|
|
4015
|
+
return n.deletedAcross && r.deletedAcross || i < n.pos || o > r.pos ? null : new it(n.pos, r.pos, i, o, this.slice, this.insert, this.structure);
|
|
4016
4016
|
}
|
|
4017
4017
|
toJSON() {
|
|
4018
4018
|
let t = {
|
|
@@ -4031,10 +4031,10 @@ class rt extends ft {
|
|
|
4031
4031
|
static fromJSON(t, n) {
|
|
4032
4032
|
if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
|
|
4033
4033
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
4034
|
-
return new
|
|
4034
|
+
return new it(n.from, n.to, n.gapFrom, n.gapTo, z.fromJSON(t, n.slice), n.insert, !!n.structure);
|
|
4035
4035
|
}
|
|
4036
4036
|
}
|
|
4037
|
-
ft.jsonID("replaceAround",
|
|
4037
|
+
ft.jsonID("replaceAround", it);
|
|
4038
4038
|
function Nc(e, t, n) {
|
|
4039
4039
|
let r = e.resolve(t), i = n - t, o = r.depth;
|
|
4040
4040
|
for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
|
|
@@ -4101,13 +4101,13 @@ function bd(e, t, n, r = n.contentMatch, i = !0) {
|
|
|
4101
4101
|
if (i && c.isText && n.whitespace != "pre") {
|
|
4102
4102
|
let p, m = /\r?\n|\r/g, h;
|
|
4103
4103
|
for (; p = m.exec(c.text); )
|
|
4104
|
-
h || (h = new z(
|
|
4104
|
+
h || (h = new z(k.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), a.push(new et(s + p.index, s + p.index + p[0].length, h));
|
|
4105
4105
|
}
|
|
4106
4106
|
}
|
|
4107
4107
|
s = d;
|
|
4108
4108
|
}
|
|
4109
4109
|
if (!r.validEnd) {
|
|
4110
|
-
let l = r.fillBefore(
|
|
4110
|
+
let l = r.fillBefore(k.empty, !0);
|
|
4111
4111
|
e.replace(s, s, new z(l, 0, 0));
|
|
4112
4112
|
}
|
|
4113
4113
|
for (let l = a.length - 1; l >= 0; l--)
|
|
@@ -4128,13 +4128,13 @@ function xi(e) {
|
|
|
4128
4128
|
return null;
|
|
4129
4129
|
}
|
|
4130
4130
|
function iv(e, t, n) {
|
|
4131
|
-
let { $from: r, $to: i, depth: o } = t, a = r.before(o + 1), s = i.after(o + 1), l = a, c = s, d =
|
|
4131
|
+
let { $from: r, $to: i, depth: o } = t, a = r.before(o + 1), s = i.after(o + 1), l = a, c = s, d = k.empty, u = 0;
|
|
4132
4132
|
for (let h = o, _ = !1; h > n; h--)
|
|
4133
|
-
_ || r.index(h) > 0 ? (_ = !0, d =
|
|
4134
|
-
let p =
|
|
4133
|
+
_ || r.index(h) > 0 ? (_ = !0, d = k.from(r.node(h).copy(d)), u++) : l--;
|
|
4134
|
+
let p = k.empty, m = 0;
|
|
4135
4135
|
for (let h = o, _ = !1; h > n; h--)
|
|
4136
|
-
_ || i.after(h + 1) < i.end(h) ? (_ = !0, p =
|
|
4137
|
-
e.step(new
|
|
4136
|
+
_ || i.after(h + 1) < i.end(h) ? (_ = !0, p = k.from(i.node(h).copy(p)), m++) : c++;
|
|
4137
|
+
e.step(new it(l, c, a, s, new z(d.append(p), u, m), d.size - u, !0));
|
|
4138
4138
|
}
|
|
4139
4139
|
function vd(e, t, n = null, r = e) {
|
|
4140
4140
|
let i = ov(e, t), o = i && av(r, t);
|
|
@@ -4160,17 +4160,17 @@ function av(e, t) {
|
|
|
4160
4160
|
return !s || !s.validEnd ? null : a;
|
|
4161
4161
|
}
|
|
4162
4162
|
function sv(e, t, n) {
|
|
4163
|
-
let r =
|
|
4163
|
+
let r = k.empty;
|
|
4164
4164
|
for (let a = n.length - 1; a >= 0; a--) {
|
|
4165
4165
|
if (r.size) {
|
|
4166
4166
|
let s = n[a].type.contentMatch.matchFragment(r);
|
|
4167
4167
|
if (!s || !s.validEnd)
|
|
4168
4168
|
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
4169
4169
|
}
|
|
4170
|
-
r =
|
|
4170
|
+
r = k.from(n[a].type.create(n[a].attrs, r));
|
|
4171
4171
|
}
|
|
4172
4172
|
let i = t.start, o = t.end;
|
|
4173
|
-
e.step(new
|
|
4173
|
+
e.step(new it(i, o, i, o, new z(r, 0, 0), n.length, !0));
|
|
4174
4174
|
}
|
|
4175
4175
|
function lv(e, t, n, r, i) {
|
|
4176
4176
|
if (!r.isTextblock)
|
|
@@ -4186,7 +4186,7 @@ function lv(e, t, n, r, i) {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
c === !1 && k_(e, a, s, o), bd(e, e.mapping.slice(o).map(s, 1), r, void 0, c === null);
|
|
4188
4188
|
let d = e.mapping.slice(o), u = d.map(s, 1), p = d.map(s + a.nodeSize, 1);
|
|
4189
|
-
return e.step(new
|
|
4189
|
+
return e.step(new it(u, p, u + 1, p - 1, new z(k.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), c === !0 && M_(e, a, s, o), !1;
|
|
4190
4190
|
}
|
|
4191
4191
|
});
|
|
4192
4192
|
}
|
|
@@ -4224,7 +4224,7 @@ function dv(e, t, n, r, i) {
|
|
|
4224
4224
|
return e.replaceWith(t, t + o.nodeSize, a);
|
|
4225
4225
|
if (!n.validContent(o.content))
|
|
4226
4226
|
throw new RangeError("Invalid content for node type " + n.name);
|
|
4227
|
-
e.step(new
|
|
4227
|
+
e.step(new it(t, t + o.nodeSize, t + 1, t + o.nodeSize - 1, new z(k.from(a), 0, 0), 1, !0));
|
|
4228
4228
|
}
|
|
4229
4229
|
function di(e, t, n = 1, r) {
|
|
4230
4230
|
let i = e.resolve(t), o = i.depth - n, a = r && r[r.length - 1] || i.parent;
|
|
@@ -4244,11 +4244,11 @@ function di(e, t, n = 1, r) {
|
|
|
4244
4244
|
return i.node(o).canReplaceWith(s, s, l ? l.type : i.node(o + 1).type);
|
|
4245
4245
|
}
|
|
4246
4246
|
function uv(e, t, n = 1, r) {
|
|
4247
|
-
let i = e.doc.resolve(t), o =
|
|
4247
|
+
let i = e.doc.resolve(t), o = k.empty, a = k.empty;
|
|
4248
4248
|
for (let s = i.depth, l = i.depth - n, c = n - 1; s > l; s--, c--) {
|
|
4249
|
-
o =
|
|
4249
|
+
o = k.from(i.node(s).copy(o));
|
|
4250
4250
|
let d = r && r[c];
|
|
4251
|
-
a =
|
|
4251
|
+
a = k.from(d ? d.type.create(d.attrs, a) : i.node(s).copy(a));
|
|
4252
4252
|
}
|
|
4253
4253
|
e.step(new et(t, t, new z(o.append(a), n, n), !0));
|
|
4254
4254
|
}
|
|
@@ -4353,7 +4353,7 @@ function F_(e, t, n) {
|
|
|
4353
4353
|
}
|
|
4354
4354
|
class _v {
|
|
4355
4355
|
constructor(t, n, r) {
|
|
4356
|
-
this.$from = t, this.$to = n, this.unplaced = r, this.frontier = [], this.placed =
|
|
4356
|
+
this.$from = t, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = k.empty;
|
|
4357
4357
|
for (let i = 0; i <= t.depth; i++) {
|
|
4358
4358
|
let o = t.node(i);
|
|
4359
4359
|
this.frontier.push({
|
|
@@ -4362,7 +4362,7 @@ class _v {
|
|
|
4362
4362
|
});
|
|
4363
4363
|
}
|
|
4364
4364
|
for (let i = t.depth; i > 0; i--)
|
|
4365
|
-
this.placed =
|
|
4365
|
+
this.placed = k.from(t.node(i).copy(this.placed));
|
|
4366
4366
|
}
|
|
4367
4367
|
get depth() {
|
|
4368
4368
|
return this.frontier.length - 1;
|
|
@@ -4379,7 +4379,7 @@ class _v {
|
|
|
4379
4379
|
for (; a && s && o.childCount == 1; )
|
|
4380
4380
|
o = o.firstChild.content, a--, s--;
|
|
4381
4381
|
let l = new z(o, a, s);
|
|
4382
|
-
return t > -1 ? new
|
|
4382
|
+
return t > -1 ? new it(r.pos, t, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new et(r.pos, i.pos, l) : null;
|
|
4383
4383
|
}
|
|
4384
4384
|
// Find a position on the start spine of `this.unplaced` that has
|
|
4385
4385
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -4401,7 +4401,7 @@ class _v {
|
|
|
4401
4401
|
let a = i.firstChild;
|
|
4402
4402
|
for (let s = this.depth; s >= 0; s--) {
|
|
4403
4403
|
let { type: l, match: c } = this.frontier[s], d, u = null;
|
|
4404
|
-
if (n == 1 && (a ? c.matchType(a.type) || (u = c.fillBefore(
|
|
4404
|
+
if (n == 1 && (a ? c.matchType(a.type) || (u = c.fillBefore(k.from(a), !1)) : o && l.compatibleContent(o.type)))
|
|
4405
4405
|
return { sliceDepth: r, frontierDepth: s, parent: o, inject: u };
|
|
4406
4406
|
if (n == 2 && a && (d = c.findWrapping(a.type)))
|
|
4407
4407
|
return { sliceDepth: r, frontierDepth: s, parent: o, wrap: d };
|
|
@@ -4445,7 +4445,7 @@ class _v {
|
|
|
4445
4445
|
c++, (c > 1 || l == 0 || _.content.size) && (u = g, d.push(B_(_.mark(p.allowedMarks(_.marks)), c == 1 ? l : 0, c == s.childCount ? m : -1)));
|
|
4446
4446
|
}
|
|
4447
4447
|
let h = c == s.childCount;
|
|
4448
|
-
h || (m = -1), this.placed = Wi(this.placed, n,
|
|
4448
|
+
h || (m = -1), this.placed = Wi(this.placed, n, k.from(d)), this.frontier[n].match = u, h && m < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
4449
4449
|
for (let _ = 0, g = s; _ < m; _++) {
|
|
4450
4450
|
let S = g.lastChild;
|
|
4451
4451
|
this.frontier.push({ type: S.type, match: S.contentMatchAt(S.childCount) }), g = S.content;
|
|
@@ -4491,10 +4491,10 @@ class _v {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
openFrontierNode(t, n = null, r) {
|
|
4493
4493
|
let i = this.frontier[this.depth];
|
|
4494
|
-
i.match = i.match.matchType(t), this.placed = Wi(this.placed, this.depth,
|
|
4494
|
+
i.match = i.match.matchType(t), this.placed = Wi(this.placed, this.depth, k.from(t.create(n, r))), this.frontier.push({ type: t, match: t.contentMatch });
|
|
4495
4495
|
}
|
|
4496
4496
|
closeFrontierNode() {
|
|
4497
|
-
let t = this.frontier.pop().match.fillBefore(
|
|
4497
|
+
let t = this.frontier.pop().match.fillBefore(k.empty, !0);
|
|
4498
4498
|
t.childCount && (this.placed = Wi(this.placed, this.frontier.length, t));
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
@@ -4513,7 +4513,7 @@ function B_(e, t, n) {
|
|
|
4513
4513
|
if (t <= 0)
|
|
4514
4514
|
return e;
|
|
4515
4515
|
let r = e.content;
|
|
4516
|
-
return t > 1 && (r = r.replaceChild(0, B_(r.firstChild, t - 1, r.childCount == 1 ? n - 1 : 0))), t > 0 && (r = e.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(e.type.contentMatch.matchFragment(r).fillBefore(
|
|
4516
|
+
return t > 1 && (r = r.replaceChild(0, B_(r.firstChild, t - 1, r.childCount == 1 ? n - 1 : 0))), t > 0 && (r = e.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(e.type.contentMatch.matchFragment(r).fillBefore(k.empty, !0)))), e.copy(r);
|
|
4517
4517
|
}
|
|
4518
4518
|
function Ol(e, t, n, r, i) {
|
|
4519
4519
|
let o = e.node(t), a = i ? e.indexAfter(t) : e.index(t);
|
|
@@ -4585,7 +4585,7 @@ function U_(e, t, n, r, i) {
|
|
|
4585
4585
|
}
|
|
4586
4586
|
if (t > r) {
|
|
4587
4587
|
let o = i.contentMatchAt(0), a = o.fillBefore(e).append(e);
|
|
4588
|
-
e = a.append(o.matchFragment(a).fillBefore(
|
|
4588
|
+
e = a.append(o.matchFragment(a).fillBefore(k.empty, !0));
|
|
4589
4589
|
}
|
|
4590
4590
|
return e;
|
|
4591
4591
|
}
|
|
@@ -4594,7 +4594,7 @@ function Sv(e, t, n, r) {
|
|
|
4594
4594
|
let i = hv(e.doc, t, r.type);
|
|
4595
4595
|
i != null && (t = n = i);
|
|
4596
4596
|
}
|
|
4597
|
-
e.replaceRange(t, n, new z(
|
|
4597
|
+
e.replaceRange(t, n, new z(k.from(r), 0, 0));
|
|
4598
4598
|
}
|
|
4599
4599
|
function bv(e, t, n) {
|
|
4600
4600
|
let r = e.doc.resolve(t), i = e.doc.resolve(n), o = H_(r, i);
|
|
@@ -4636,7 +4636,7 @@ class ui extends ft {
|
|
|
4636
4636
|
r[o] = n.attrs[o];
|
|
4637
4637
|
r[this.attr] = this.value;
|
|
4638
4638
|
let i = n.type.create(r, null, n.marks);
|
|
4639
|
-
return Xe.fromReplace(t, this.pos, this.pos + 1, new z(
|
|
4639
|
+
return Xe.fromReplace(t, this.pos, this.pos + 1, new z(k.from(i), 0, n.isLeaf ? 0 : 1));
|
|
4640
4640
|
}
|
|
4641
4641
|
getMap() {
|
|
4642
4642
|
return kt.empty;
|
|
@@ -4758,7 +4758,7 @@ class yd {
|
|
|
4758
4758
|
fragment, node, or array of nodes.
|
|
4759
4759
|
*/
|
|
4760
4760
|
replaceWith(t, n, r) {
|
|
4761
|
-
return this.replace(t, n, new z(
|
|
4761
|
+
return this.replace(t, n, new z(k.from(r), 0, 0));
|
|
4762
4762
|
}
|
|
4763
4763
|
/**
|
|
4764
4764
|
Delete the content between the given positions.
|
|
@@ -5196,7 +5196,7 @@ class re extends se {
|
|
|
5196
5196
|
return r ? se.near(o) : new re(o);
|
|
5197
5197
|
}
|
|
5198
5198
|
content() {
|
|
5199
|
-
return new z(
|
|
5199
|
+
return new z(k.from(this.node), 0, 0);
|
|
5200
5200
|
}
|
|
5201
5201
|
eq(t) {
|
|
5202
5202
|
return t instanceof re && t.anchor == this.anchor;
|
|
@@ -5309,7 +5309,7 @@ function rp(e, t, n) {
|
|
|
5309
5309
|
if (r < t)
|
|
5310
5310
|
return;
|
|
5311
5311
|
let i = e.steps[r];
|
|
5312
|
-
if (!(i instanceof et || i instanceof
|
|
5312
|
+
if (!(i instanceof et || i instanceof it))
|
|
5313
5313
|
return;
|
|
5314
5314
|
let o = e.mapping.maps[r], a;
|
|
5315
5315
|
o.forEach((s, l, c, d) => {
|
|
@@ -5665,7 +5665,7 @@ class ai {
|
|
|
5665
5665
|
let i = new Rl(t.schema, t.plugins), o = new ai(i);
|
|
5666
5666
|
return i.fields.forEach((a) => {
|
|
5667
5667
|
if (a.name == "doc")
|
|
5668
|
-
o.doc =
|
|
5668
|
+
o.doc = Ln.fromJSON(t.schema, n.doc);
|
|
5669
5669
|
else if (a.name == "selection")
|
|
5670
5670
|
o.selection = se.fromJSON(o.doc, n.selection);
|
|
5671
5671
|
else if (a.name == "storedMarks")
|
|
@@ -5739,7 +5739,7 @@ const ct = function(e) {
|
|
|
5739
5739
|
return t && t.nodeType == 11 ? t.host : t;
|
|
5740
5740
|
};
|
|
5741
5741
|
let Rc = null;
|
|
5742
|
-
const
|
|
5742
|
+
const In = function(e, t, n) {
|
|
5743
5743
|
let r = Rc || (Rc = document.createRange());
|
|
5744
5744
|
return r.setEnd(e, n ?? e.nodeValue.length), r.setStart(e, t || 0), r;
|
|
5745
5745
|
}, Tv = function() {
|
|
@@ -5840,7 +5840,7 @@ function Iv(e, t, n) {
|
|
|
5840
5840
|
}
|
|
5841
5841
|
const En = typeof navigator < "u" ? navigator : null, lp = typeof document < "u" ? document : null, pr = En && En.userAgent || "", Ac = /Edge\/(\d+)/.exec(pr), $_ = /MSIE \d/.exec(pr), wc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pr), At = !!($_ || wc || Ac), ir = $_ ? document.documentMode : wc ? +wc[1] : Ac ? +Ac[1] : 0, nn = !At && /gecko\/(\d+)/i.test(pr);
|
|
5842
5842
|
nn && +(/Firefox\/(\d+)/.exec(pr) || [0, 0])[1];
|
|
5843
|
-
const Ic = !At && /Chrome\/(\d+)/.exec(pr), _t = !!Ic, Y_ = Ic ? +Ic[1] : 0, yt = !At && !!En && /Apple Computer/.test(En.vendor), fi = yt && (/Mobile\/\w+/.test(pr) || !!En && En.maxTouchPoints > 2), qt = fi || (En ? /Mac/.test(En.platform) : !1), xv = En ? /Win/.test(En.platform) : !1,
|
|
5843
|
+
const Ic = !At && /Chrome\/(\d+)/.exec(pr), _t = !!Ic, Y_ = Ic ? +Ic[1] : 0, yt = !At && !!En && /Apple Computer/.test(En.vendor), fi = yt && (/Mobile\/\w+/.test(pr) || !!En && En.maxTouchPoints > 2), qt = fi || (En ? /Mac/.test(En.platform) : !1), xv = En ? /Win/.test(En.platform) : !1, Mn = /Android \d/.test(pr), Go = !!lp && "webkitFontSmoothing" in lp.documentElement.style, Dv = Go ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5844
5844
|
function Mv(e) {
|
|
5845
5845
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
5846
5846
|
return t ? {
|
|
@@ -5936,7 +5936,7 @@ function W_(e, t) {
|
|
|
5936
5936
|
if (d.nodeType == 1)
|
|
5937
5937
|
p = d.getClientRects();
|
|
5938
5938
|
else if (d.nodeType == 3)
|
|
5939
|
-
p =
|
|
5939
|
+
p = In(d).getClientRects();
|
|
5940
5940
|
else
|
|
5941
5941
|
continue;
|
|
5942
5942
|
for (let m = 0; m < p.length; m++) {
|
|
@@ -6054,11 +6054,11 @@ function Q_(e, t, n) {
|
|
|
6054
6054
|
let { node: r, offset: i, atom: o } = e.docView.domFromPos(t, n < 0 ? -1 : 1), a = Go || nn;
|
|
6055
6055
|
if (r.nodeType == 3)
|
|
6056
6056
|
if (a && (zv.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
|
|
6057
|
-
let s = Hn(
|
|
6057
|
+
let s = Hn(In(r, i, i), n);
|
|
6058
6058
|
if (nn && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
|
|
6059
|
-
let l = Hn(
|
|
6059
|
+
let l = Hn(In(r, i - 1, i - 1), -1);
|
|
6060
6060
|
if (l.top == s.top) {
|
|
6061
|
-
let c = Hn(
|
|
6061
|
+
let c = Hn(In(r, i, i + 1), -1);
|
|
6062
6062
|
if (c.top != s.top)
|
|
6063
6063
|
return Fi(c, c.left < l.left);
|
|
6064
6064
|
}
|
|
@@ -6066,7 +6066,7 @@ function Q_(e, t, n) {
|
|
|
6066
6066
|
return s;
|
|
6067
6067
|
} else {
|
|
6068
6068
|
let s = i, l = i, c = n < 0 ? 1 : -1;
|
|
6069
|
-
return n < 0 && !i ? (l++, c = -1) : n >= 0 && i == r.nodeValue.length ? (s--, c = 1) : n < 0 ? s-- : l++, Fi(Hn(
|
|
6069
|
+
return n < 0 && !i ? (l++, c = -1) : n >= 0 && i == r.nodeValue.length ? (s--, c = 1) : n < 0 ? s-- : l++, Fi(Hn(In(r, s, l), c), c < 0);
|
|
6070
6070
|
}
|
|
6071
6071
|
if (!e.state.doc.resolve(t - (o || 0)).parent.inlineContent) {
|
|
6072
6072
|
if (o == null && i && (n < 0 || i == jt(r))) {
|
|
@@ -6082,7 +6082,7 @@ function Q_(e, t, n) {
|
|
|
6082
6082
|
return wl(r.getBoundingClientRect(), n >= 0);
|
|
6083
6083
|
}
|
|
6084
6084
|
if (o == null && i && (n < 0 || i == jt(r))) {
|
|
6085
|
-
let s = r.childNodes[i - 1], l = s.nodeType == 3 ?
|
|
6085
|
+
let s = r.childNodes[i - 1], l = s.nodeType == 3 ? In(s, jt(s) - (a ? 0 : 1)) : s.nodeType == 1 && (s.nodeName != "BR" || !s.nextSibling) ? s : null;
|
|
6086
6086
|
if (l)
|
|
6087
6087
|
return Fi(Hn(l, 1), !1);
|
|
6088
6088
|
}
|
|
@@ -6090,11 +6090,11 @@ function Q_(e, t, n) {
|
|
|
6090
6090
|
let s = r.childNodes[i];
|
|
6091
6091
|
for (; s.pmViewDesc && s.pmViewDesc.ignoreForCoords; )
|
|
6092
6092
|
s = s.nextSibling;
|
|
6093
|
-
let l = s ? s.nodeType == 3 ?
|
|
6093
|
+
let l = s ? s.nodeType == 3 ? In(s, 0, a ? 0 : 1) : s.nodeType == 1 ? s : null : null;
|
|
6094
6094
|
if (l)
|
|
6095
6095
|
return Fi(Hn(l, -1), !0);
|
|
6096
6096
|
}
|
|
6097
|
-
return Fi(Hn(r.nodeType == 3 ?
|
|
6097
|
+
return Fi(Hn(r.nodeType == 3 ? In(r) : r, -n), n >= 0);
|
|
6098
6098
|
}
|
|
6099
6099
|
function Fi(e, t) {
|
|
6100
6100
|
if (e.width == 0)
|
|
@@ -6137,7 +6137,7 @@ function $v(e, t, n) {
|
|
|
6137
6137
|
if (s.nodeType == 1)
|
|
6138
6138
|
l = s.getClientRects();
|
|
6139
6139
|
else if (s.nodeType == 3)
|
|
6140
|
-
l =
|
|
6140
|
+
l = In(s, 0, s.nodeValue.length).getClientRects();
|
|
6141
6141
|
else
|
|
6142
6142
|
continue;
|
|
6143
6143
|
for (let c = 0; c < l.length; c++) {
|
|
@@ -6651,7 +6651,7 @@ class or extends zo {
|
|
|
6651
6651
|
break;
|
|
6652
6652
|
}
|
|
6653
6653
|
}
|
|
6654
|
-
t.contentElement || (t.getContent = () =>
|
|
6654
|
+
t.contentElement || (t.getContent = () => k.empty);
|
|
6655
6655
|
}
|
|
6656
6656
|
return t;
|
|
6657
6657
|
}
|
|
@@ -7225,7 +7225,7 @@ function Od(e, t = null) {
|
|
|
7225
7225
|
function rg(e) {
|
|
7226
7226
|
return e.editable ? e.hasFocus() : og(e) && document.activeElement && document.activeElement.contains(e.dom);
|
|
7227
7227
|
}
|
|
7228
|
-
function
|
|
7228
|
+
function Pn(e, t = !1) {
|
|
7229
7229
|
let n = e.state.selection;
|
|
7230
7230
|
if (ig(e, n), !!rg(e)) {
|
|
7231
7231
|
if (!t && e.input.mouseDown && e.input.mouseDown.allowDefault && _t) {
|
|
@@ -7467,7 +7467,7 @@ function kc(e, t, n) {
|
|
|
7467
7467
|
e.domObserver.setCurSelection();
|
|
7468
7468
|
let { state: i } = e;
|
|
7469
7469
|
setTimeout(() => {
|
|
7470
|
-
e.state == i &&
|
|
7470
|
+
e.state == i && Pn(e);
|
|
7471
7471
|
}, 50);
|
|
7472
7472
|
}
|
|
7473
7473
|
function Cp(e, t) {
|
|
@@ -7598,7 +7598,7 @@ function lg(e, t, n, r, i) {
|
|
|
7598
7598
|
if (e.someProp("transformPastedText", (p) => {
|
|
7599
7599
|
t = p(t, o || r, e);
|
|
7600
7600
|
}), o)
|
|
7601
|
-
return t ? new z(
|
|
7601
|
+
return t ? new z(k.from(e.state.schema.text(t.replace(/\r\n?/g, `
|
|
7602
7602
|
`))), 0, 0) : z.empty;
|
|
7603
7603
|
let u = e.someProp("clipboardTextParser", (p) => p(t, i, r, e));
|
|
7604
7604
|
if (u)
|
|
@@ -7664,13 +7664,13 @@ function hy(e, t) {
|
|
|
7664
7664
|
o.push(c), r = r.matchType(c.type), i = s;
|
|
7665
7665
|
}
|
|
7666
7666
|
}), o)
|
|
7667
|
-
return
|
|
7667
|
+
return k.from(o);
|
|
7668
7668
|
}
|
|
7669
7669
|
return e;
|
|
7670
7670
|
}
|
|
7671
7671
|
function cg(e, t, n = 0) {
|
|
7672
7672
|
for (let r = t.length - 1; r >= n; r--)
|
|
7673
|
-
e = t[r].create(null,
|
|
7673
|
+
e = t[r].create(null, k.from(e));
|
|
7674
7674
|
return e;
|
|
7675
7675
|
}
|
|
7676
7676
|
function dg(e, t, n, r, i) {
|
|
@@ -7679,18 +7679,18 @@ function dg(e, t, n, r, i) {
|
|
|
7679
7679
|
if (o)
|
|
7680
7680
|
return r.copy(r.content.replaceChild(r.childCount - 1, o));
|
|
7681
7681
|
if (r.contentMatchAt(r.childCount).matchType(i == e.length - 1 ? n.type : e[i + 1]))
|
|
7682
|
-
return r.copy(r.content.append(
|
|
7682
|
+
return r.copy(r.content.append(k.from(cg(n, e, i + 1))));
|
|
7683
7683
|
}
|
|
7684
7684
|
}
|
|
7685
7685
|
function ug(e, t) {
|
|
7686
7686
|
if (t == 0)
|
|
7687
7687
|
return e;
|
|
7688
|
-
let n = e.content.replaceChild(e.childCount - 1, ug(e.lastChild, t - 1)), r = e.contentMatchAt(e.childCount).fillBefore(
|
|
7688
|
+
let n = e.content.replaceChild(e.childCount - 1, ug(e.lastChild, t - 1)), r = e.contentMatchAt(e.childCount).fillBefore(k.empty, !0);
|
|
7689
7689
|
return e.copy(n.append(r));
|
|
7690
7690
|
}
|
|
7691
7691
|
function Lc(e, t, n, r, i, o) {
|
|
7692
7692
|
let a = t < 0 ? e.firstChild : e.lastChild, s = a.content;
|
|
7693
|
-
return e.childCount > 1 && (o = 0), i < r - 1 && (s = Lc(s, t, n, r, i + 1, o)), i >= n && (s = t < 0 ? a.contentMatchAt(0).fillBefore(s, o <= i).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(
|
|
7693
|
+
return e.childCount > 1 && (o = 0), i < r - 1 && (s = Lc(s, t, n, r, i + 1, o)), i >= n && (s = t < 0 ? a.contentMatchAt(0).fillBefore(s, o <= i).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(k.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, a.copy(s));
|
|
7694
7694
|
}
|
|
7695
7695
|
function Rp(e, t, n) {
|
|
7696
7696
|
return t < e.openStart && (e = new z(Lc(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new z(Lc(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
|
|
@@ -7745,7 +7745,7 @@ function Ey(e, t) {
|
|
|
7745
7745
|
let l = n.nodes[r[s]];
|
|
7746
7746
|
if (!l || l.hasRequiredAttrs())
|
|
7747
7747
|
break;
|
|
7748
|
-
i =
|
|
7748
|
+
i = k.from(l.create(r[s + 1], i)), o++, a++;
|
|
7749
7749
|
}
|
|
7750
7750
|
return new z(i, o, a);
|
|
7751
7751
|
}
|
|
@@ -7800,7 +7800,7 @@ function Ty(e, t) {
|
|
|
7800
7800
|
}
|
|
7801
7801
|
Tt.keydown = (e, t) => {
|
|
7802
7802
|
let n = t;
|
|
7803
|
-
if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !_g(e, n) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(
|
|
7803
|
+
if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !_g(e, n) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(Mn && _t && n.keyCode == 13)))
|
|
7804
7804
|
if (n.keyCode != 229 && e.domObserver.forceFlush(), fi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
7805
7805
|
let r = Date.now();
|
|
7806
7806
|
e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -7930,7 +7930,7 @@ class Dy {
|
|
|
7930
7930
|
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), Jn(t, "pointer");
|
|
7931
7931
|
}
|
|
7932
7932
|
done() {
|
|
7933
|
-
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() =>
|
|
7933
|
+
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Pn(this.view)), this.view.input.mouseDown = null;
|
|
7934
7934
|
}
|
|
7935
7935
|
up(t) {
|
|
7936
7936
|
if (this.done(), !this.view.dom.contains(t.target))
|
|
@@ -7963,7 +7963,7 @@ Ct.contextmenu = (e) => wd(e);
|
|
|
7963
7963
|
function _g(e, t) {
|
|
7964
7964
|
return e.composing ? !0 : yt && Math.abs(t.timeStamp - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
|
|
7965
7965
|
}
|
|
7966
|
-
const My =
|
|
7966
|
+
const My = Mn ? 5e3 : -1;
|
|
7967
7967
|
Tt.compositionstart = Tt.compositionupdate = (e) => {
|
|
7968
7968
|
if (!e.composing) {
|
|
7969
7969
|
e.domObserver.flush();
|
|
@@ -8022,7 +8022,7 @@ function Ly() {
|
|
|
8022
8022
|
return e.initEvent("event", !0, !0), e.timeStamp;
|
|
8023
8023
|
}
|
|
8024
8024
|
function qa(e, t = !1) {
|
|
8025
|
-
if (!(
|
|
8025
|
+
if (!(Mn && e.domObserver.flushingSoon >= 0)) {
|
|
8026
8026
|
if (e.domObserver.forceFlush(), fg(e), t || e.docView && e.docView.dirty) {
|
|
8027
8027
|
let n = Od(e);
|
|
8028
8028
|
return n && !n.eq(e.state.selection) ? e.dispatch(e.state.tr.setSelection(n)) : (e.markCursor || t) && !e.state.selection.empty ? e.dispatch(e.state.tr.deleteSelection()) : e.updateState(e.state), !0;
|
|
@@ -8079,7 +8079,7 @@ function Eg(e) {
|
|
|
8079
8079
|
}
|
|
8080
8080
|
Tt.paste = (e, t) => {
|
|
8081
8081
|
let n = t;
|
|
8082
|
-
if (e.composing && !
|
|
8082
|
+
if (e.composing && !Mn)
|
|
8083
8083
|
return;
|
|
8084
8084
|
let r = So ? null : n.clipboardData, i = e.input.shiftKey && e.input.lastKeyCode != 45;
|
|
8085
8085
|
r && bo(e, Eg(r), r.getData("text/html"), i, n) ? n.preventDefault() : By(e, n);
|
|
@@ -8153,7 +8153,7 @@ Tt.drop = (e, t) => {
|
|
|
8153
8153
|
};
|
|
8154
8154
|
Ct.focus = (e) => {
|
|
8155
8155
|
e.input.lastFocus = Date.now(), e.focused || (e.domObserver.stop(), e.dom.classList.add("ProseMirror-focused"), e.domObserver.start(), e.focused = !0, setTimeout(() => {
|
|
8156
|
-
e.docView && e.hasFocus() && !e.domObserver.currentSelection.eq(e.domSelectionRange()) &&
|
|
8156
|
+
e.docView && e.hasFocus() && !e.domObserver.currentSelection.eq(e.domSelectionRange()) && Pn(e);
|
|
8157
8157
|
}, 20));
|
|
8158
8158
|
};
|
|
8159
8159
|
Ct.blur = (e, t) => {
|
|
@@ -8161,7 +8161,7 @@ Ct.blur = (e, t) => {
|
|
|
8161
8161
|
e.focused && (e.domObserver.stop(), e.dom.classList.remove("ProseMirror-focused"), e.domObserver.start(), n.relatedTarget && e.dom.contains(n.relatedTarget) && e.domObserver.currentSelection.clear(), e.focused = !1);
|
|
8162
8162
|
};
|
|
8163
8163
|
Ct.beforeinput = (e, t) => {
|
|
8164
|
-
if (_t &&
|
|
8164
|
+
if (_t && Mn && t.inputType == "deleteContentBackward") {
|
|
8165
8165
|
e.domObserver.flushSoon();
|
|
8166
8166
|
let { domChangeCount: n } = e.input;
|
|
8167
8167
|
setTimeout(() => {
|
|
@@ -8749,7 +8749,7 @@ class $y {
|
|
|
8749
8749
|
onSelectionChange() {
|
|
8750
8750
|
if (vp(this.view)) {
|
|
8751
8751
|
if (this.suppressingSelectionUpdates)
|
|
8752
|
-
return
|
|
8752
|
+
return Pn(this.view);
|
|
8753
8753
|
if (At && ir <= 11 && !this.view.state.selection.empty) {
|
|
8754
8754
|
let t = this.view.domSelectionRange();
|
|
8755
8755
|
if (t.focusNode && Mr(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
|
|
@@ -8811,7 +8811,7 @@ class $y {
|
|
|
8811
8811
|
}
|
|
8812
8812
|
}
|
|
8813
8813
|
let c = null;
|
|
8814
|
-
o < 0 && i && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && qs(r) && (c = Od(t)) && c.eq(se.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0,
|
|
8814
|
+
o < 0 && i && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && qs(r) && (c = Od(t)) && c.eq(se.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, Pn(t), this.currentSelection.set(r), t.scrollToSelection()) : (o > -1 || i) && (o > -1 && (t.docView.markDirty(o, a), Yy(t)), this.handleDOMChange(o, a, s, l), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || Pn(t), this.currentSelection.set(r));
|
|
8815
8815
|
}
|
|
8816
8816
|
registerMutation(t, n) {
|
|
8817
8817
|
if (n.indexOf(t.target) > -1)
|
|
@@ -8925,12 +8925,12 @@ const Qy = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
|
|
|
8925
8925
|
function Zy(e, t, n, r, i) {
|
|
8926
8926
|
let o = e.input.compositionPendingChanges || (e.composing ? e.input.compositionID : 0);
|
|
8927
8927
|
if (e.input.compositionPendingChanges = 0, t < 0) {
|
|
8928
|
-
let O = e.input.lastSelectionTime > Date.now() - 50 ? e.input.lastSelectionOrigin : null,
|
|
8929
|
-
if (
|
|
8930
|
-
if (_t &&
|
|
8928
|
+
let O = e.input.lastSelectionTime > Date.now() - 50 ? e.input.lastSelectionOrigin : null, M = Od(e, O);
|
|
8929
|
+
if (M && !e.state.selection.eq(M)) {
|
|
8930
|
+
if (_t && Mn && e.input.lastKeyCode === 13 && Date.now() - 100 < e.input.lastKeyCodeTime && e.someProp("handleKeyDown", (B) => B(e, Er(13, "Enter"))))
|
|
8931
8931
|
return;
|
|
8932
|
-
let
|
|
8933
|
-
O == "pointer" ?
|
|
8932
|
+
let V = e.state.tr.setSelection(M);
|
|
8933
|
+
O == "pointer" ? V.setMeta("pointer", !0) : O == "key" && V.scrollIntoView(), o && V.setMeta("composition", o), e.dispatch(V);
|
|
8934
8934
|
}
|
|
8935
8935
|
return;
|
|
8936
8936
|
}
|
|
@@ -8939,7 +8939,7 @@ function Zy(e, t, n, r, i) {
|
|
|
8939
8939
|
let l = e.state.selection, c = Wy(e, t, n), d = e.state.doc, u = d.slice(c.from, c.to), p, m;
|
|
8940
8940
|
e.input.lastKeyCode === 8 && Date.now() - 100 < e.input.lastKeyCodeTime ? (p = e.state.selection.to, m = "end") : (p = e.state.selection.from, m = "start"), e.input.lastKeyCode = null;
|
|
8941
8941
|
let h = eC(u.content, c.doc.content, c.from, p, m);
|
|
8942
|
-
if (h && e.input.domChangeCount++, (fi && e.input.lastIOSEnter > Date.now() - 225 ||
|
|
8942
|
+
if (h && e.input.domChangeCount++, (fi && e.input.lastIOSEnter > Date.now() - 225 || Mn) && i.some((O) => O.nodeType == 1 && !Qy.test(O.nodeName)) && (!h || h.endA >= h.endB) && e.someProp("handleKeyDown", (O) => O(e, Er(13, "Enter")))) {
|
|
8943
8943
|
e.input.lastIOSEnter = 0;
|
|
8944
8944
|
return;
|
|
8945
8945
|
}
|
|
@@ -8950,8 +8950,8 @@ function Zy(e, t, n, r, i) {
|
|
|
8950
8950
|
if (c.sel) {
|
|
8951
8951
|
let O = Mp(e, e.state.doc, c.sel);
|
|
8952
8952
|
if (O && !O.eq(e.state.selection)) {
|
|
8953
|
-
let
|
|
8954
|
-
o &&
|
|
8953
|
+
let M = e.state.tr.setSelection(O);
|
|
8954
|
+
o && M.setMeta("composition", o), e.dispatch(M);
|
|
8955
8955
|
}
|
|
8956
8956
|
}
|
|
8957
8957
|
return;
|
|
@@ -8963,10 +8963,10 @@ function Zy(e, t, n, r, i) {
|
|
|
8963
8963
|
return;
|
|
8964
8964
|
}
|
|
8965
8965
|
if (e.state.selection.anchor > h.start && Jy(d, h.start, h.endA, _, g) && e.someProp("handleKeyDown", (O) => O(e, Er(8, "Backspace")))) {
|
|
8966
|
-
|
|
8966
|
+
Mn && _t && e.domObserver.suppressSelectionUpdates();
|
|
8967
8967
|
return;
|
|
8968
8968
|
}
|
|
8969
|
-
_t && h.endB == h.start && (e.input.lastChromeDelete = Date.now()),
|
|
8969
|
+
_t && h.endB == h.start && (e.input.lastChromeDelete = Date.now()), Mn && !E && _.start() != g.start() && g.parentOffset == 0 && _.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, g = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
|
|
8970
8970
|
e.someProp("handleKeyDown", function(O) {
|
|
8971
8971
|
return O(e, Er(13, "Enter"));
|
|
8972
8972
|
});
|
|
@@ -8974,7 +8974,7 @@ function Zy(e, t, n, r, i) {
|
|
|
8974
8974
|
let f = h.start, y = h.endA, v, T, R;
|
|
8975
8975
|
if (E) {
|
|
8976
8976
|
if (_.pos == g.pos)
|
|
8977
|
-
At && ir <= 11 && _.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() =>
|
|
8977
|
+
At && ir <= 11 && _.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => Pn(e), 20)), v = e.state.tr.delete(f, y), T = d.resolve(h.start).marksAcross(d.resolve(h.endA));
|
|
8978
8978
|
else if (
|
|
8979
8979
|
// Adding or removing a mark
|
|
8980
8980
|
h.endA == h.endB && (R = Xy(_.parent.content.cut(_.parentOffset, g.parentOffset), S.parent.content.cut(S.parentOffset, h.endA - S.start())))
|
|
@@ -8982,7 +8982,7 @@ function Zy(e, t, n, r, i) {
|
|
|
8982
8982
|
v = e.state.tr, R.type == "add" ? v.addMark(f, y, R.mark) : v.removeMark(f, y, R.mark);
|
|
8983
8983
|
else if (_.parent.child(_.index()).isText && _.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
8984
8984
|
let O = _.parent.textBetween(_.parentOffset, g.parentOffset);
|
|
8985
|
-
if (e.someProp("handleTextInput", (
|
|
8985
|
+
if (e.someProp("handleTextInput", (M) => M(e, f, y, O)))
|
|
8986
8986
|
return;
|
|
8987
8987
|
v = e.state.tr.insertText(O, f, y);
|
|
8988
8988
|
}
|
|
@@ -9011,7 +9011,7 @@ function Xy(e, t) {
|
|
|
9011
9011
|
let c = [];
|
|
9012
9012
|
for (let d = 0; d < t.childCount; d++)
|
|
9013
9013
|
c.push(l(t.child(d)));
|
|
9014
|
-
if (
|
|
9014
|
+
if (k.from(c).eq(e))
|
|
9015
9015
|
return { mark: s, type: a };
|
|
9016
9016
|
}
|
|
9017
9017
|
function Jy(e, t, n, r, i) {
|
|
@@ -9148,7 +9148,7 @@ class tC {
|
|
|
9148
9148
|
let h = _t ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
9149
9149
|
this.composing && (this.input.compositionNode = ky(this)), (o || !this.docView.update(t.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = _p(t.doc, c, l, this.dom, this)), h && !this.trackWrites && (m = !0);
|
|
9150
9150
|
}
|
|
9151
|
-
m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && oy(this)) ?
|
|
9151
|
+
m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && oy(this)) ? Pn(this, m) : (ig(this, t.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
9152
9152
|
}
|
|
9153
9153
|
this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(t.doc) && this.updateDraggedNode(this.dragging, i), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : p && Pv(p);
|
|
9154
9154
|
}
|
|
@@ -9236,7 +9236,7 @@ class tC {
|
|
|
9236
9236
|
Focus the editor.
|
|
9237
9237
|
*/
|
|
9238
9238
|
focus() {
|
|
9239
|
-
this.domObserver.stop(), this.editable && Fv(this.dom),
|
|
9239
|
+
this.domObserver.stop(), this.editable && Fv(this.dom), Pn(this), this.domObserver.start();
|
|
9240
9240
|
}
|
|
9241
9241
|
/**
|
|
9242
9242
|
Get the document root in which the editor exists. This will
|
|
@@ -9826,11 +9826,11 @@ function Ag(e, t, n, r) {
|
|
|
9826
9826
|
let c = !l && t.parent.canReplace(t.index(), t.index() + 1);
|
|
9827
9827
|
if (c && (a = (s = i.contentMatchAt(i.childCount)).findWrapping(o.type)) && s.matchType(a[0] || o.type).validEnd) {
|
|
9828
9828
|
if (n) {
|
|
9829
|
-
let m = t.pos + o.nodeSize, h =
|
|
9829
|
+
let m = t.pos + o.nodeSize, h = k.empty;
|
|
9830
9830
|
for (let S = a.length - 1; S >= 0; S--)
|
|
9831
|
-
h =
|
|
9832
|
-
h =
|
|
9833
|
-
let _ = e.tr.step(new
|
|
9831
|
+
h = k.from(a[S].create(null, h));
|
|
9832
|
+
h = k.from(i.copy(h));
|
|
9833
|
+
let _ = e.tr.step(new it(t.pos - 1, m, t.pos, m, new z(h, 1, 0), a.length, !0)), g = _.doc.resolve(m + 2 * a.length);
|
|
9834
9834
|
g.nodeAfter && g.nodeAfter.type == i.type && ur(_.doc, g.pos) && _.join(g.pos), n(_.scrollIntoView());
|
|
9835
9835
|
}
|
|
9836
9836
|
return !0;
|
|
@@ -9847,10 +9847,10 @@ function Ag(e, t, n, r) {
|
|
|
9847
9847
|
g++;
|
|
9848
9848
|
if (m.canReplace(m.childCount, m.childCount, _.content)) {
|
|
9849
9849
|
if (n) {
|
|
9850
|
-
let S =
|
|
9850
|
+
let S = k.empty;
|
|
9851
9851
|
for (let b = h.length - 1; b >= 0; b--)
|
|
9852
|
-
S =
|
|
9853
|
-
let E = e.tr.step(new
|
|
9852
|
+
S = k.from(h[b].copy(S));
|
|
9853
|
+
let E = e.tr.step(new it(t.pos - h.length, t.pos + o.nodeSize, t.pos + g, t.pos + o.nodeSize - g, new z(S, h.length, 0), 0, !0));
|
|
9854
9854
|
n(E.scrollIntoView());
|
|
9855
9855
|
}
|
|
9856
9856
|
return !0;
|
|
@@ -9923,10 +9923,10 @@ function IC(e, t = null) {
|
|
|
9923
9923
|
};
|
|
9924
9924
|
}
|
|
9925
9925
|
function xC(e, t, n, r, i) {
|
|
9926
|
-
let o =
|
|
9926
|
+
let o = k.empty;
|
|
9927
9927
|
for (let d = n.length - 1; d >= 0; d--)
|
|
9928
|
-
o =
|
|
9929
|
-
e.step(new
|
|
9928
|
+
o = k.from(n[d].type.create(n[d].attrs, o));
|
|
9929
|
+
e.step(new it(t.start - (r ? 2 : 0), t.end, t.start, t.end, new z(o, 0, 0), n.length, !0));
|
|
9930
9930
|
let a = 0;
|
|
9931
9931
|
for (let d = 0; d < n.length; d++)
|
|
9932
9932
|
n[d].type == i && (a = d + 1);
|
|
@@ -9943,7 +9943,7 @@ function DC(e) {
|
|
|
9943
9943
|
}
|
|
9944
9944
|
function MC(e, t, n, r) {
|
|
9945
9945
|
let i = e.tr, o = r.end, a = r.$to.end(r.depth);
|
|
9946
|
-
o < a && (i.step(new
|
|
9946
|
+
o < a && (i.step(new it(o - 1, a, o, a, new z(k.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ga(i.doc.resolve(r.$from.pos), i.doc.resolve(a), r.depth));
|
|
9947
9947
|
const s = xi(r);
|
|
9948
9948
|
if (s == null)
|
|
9949
9949
|
return !1;
|
|
@@ -9959,10 +9959,10 @@ function kC(e, t, n) {
|
|
|
9959
9959
|
if (r.mapping.map(n.end) != n.start + o.nodeAfter.nodeSize)
|
|
9960
9960
|
return !1;
|
|
9961
9961
|
let s = n.startIndex == 0, l = n.endIndex == i.childCount, c = o.node(-1), d = o.index(-1);
|
|
9962
|
-
if (!c.canReplace(d + (s ? 0 : 1), d + 1, a.content.append(l ?
|
|
9962
|
+
if (!c.canReplace(d + (s ? 0 : 1), d + 1, a.content.append(l ? k.empty : k.from(i))))
|
|
9963
9963
|
return !1;
|
|
9964
9964
|
let u = o.pos, p = u + a.nodeSize;
|
|
9965
|
-
return r.step(new
|
|
9965
|
+
return r.step(new it(u - (s ? 1 : 0), p + (l ? 1 : 0), u + 1, p - 1, new z((s ? k.empty : k.from(i.copy(k.empty))).append(l ? k.empty : k.from(i.copy(k.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), t(r.scrollIntoView()), !0;
|
|
9966
9966
|
}
|
|
9967
9967
|
function LC(e) {
|
|
9968
9968
|
return function(t, n) {
|
|
@@ -9976,8 +9976,8 @@ function LC(e) {
|
|
|
9976
9976
|
if (l.type != e)
|
|
9977
9977
|
return !1;
|
|
9978
9978
|
if (n) {
|
|
9979
|
-
let c = l.lastChild && l.lastChild.type == s.type, d =
|
|
9980
|
-
n(t.tr.step(new
|
|
9979
|
+
let c = l.lastChild && l.lastChild.type == s.type, d = k.from(c ? e.create() : null), u = new z(k.from(e.create(null, k.from(s.type.create(null, d)))), c ? 3 : 1, 0), p = o.start, m = o.end;
|
|
9980
|
+
n(t.tr.step(new it(p - (c ? 3 : 1), m, p, m, u, 1, !0)).scrollIntoView());
|
|
9981
9981
|
}
|
|
9982
9982
|
return !0;
|
|
9983
9983
|
};
|
|
@@ -10158,7 +10158,7 @@ function Ig(e) {
|
|
|
10158
10158
|
});
|
|
10159
10159
|
}), t;
|
|
10160
10160
|
}
|
|
10161
|
-
function
|
|
10161
|
+
function at(e, t) {
|
|
10162
10162
|
if (typeof e == "string") {
|
|
10163
10163
|
if (!t.nodes[e])
|
|
10164
10164
|
throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);
|
|
@@ -10199,7 +10199,7 @@ function Fc(e, t) {
|
|
|
10199
10199
|
function xg(e) {
|
|
10200
10200
|
return typeof e == "function";
|
|
10201
10201
|
}
|
|
10202
|
-
function
|
|
10202
|
+
function Se(e, t = void 0, ...n) {
|
|
10203
10203
|
return xg(e) ? t ? e.bind(t)(...n) : e(...n) : e;
|
|
10204
10204
|
}
|
|
10205
10205
|
function FC(e = {}) {
|
|
@@ -10248,23 +10248,23 @@ function UC(e, t) {
|
|
|
10248
10248
|
};
|
|
10249
10249
|
}, {}), m = Gp({
|
|
10250
10250
|
...p,
|
|
10251
|
-
content:
|
|
10252
|
-
marks:
|
|
10253
|
-
group:
|
|
10254
|
-
inline:
|
|
10255
|
-
atom:
|
|
10256
|
-
selectable:
|
|
10257
|
-
draggable:
|
|
10258
|
-
code:
|
|
10259
|
-
whitespace:
|
|
10260
|
-
linebreakReplacement:
|
|
10261
|
-
defining:
|
|
10262
|
-
isolating:
|
|
10251
|
+
content: Se(Z(c, "content", u)),
|
|
10252
|
+
marks: Se(Z(c, "marks", u)),
|
|
10253
|
+
group: Se(Z(c, "group", u)),
|
|
10254
|
+
inline: Se(Z(c, "inline", u)),
|
|
10255
|
+
atom: Se(Z(c, "atom", u)),
|
|
10256
|
+
selectable: Se(Z(c, "selectable", u)),
|
|
10257
|
+
draggable: Se(Z(c, "draggable", u)),
|
|
10258
|
+
code: Se(Z(c, "code", u)),
|
|
10259
|
+
whitespace: Se(Z(c, "whitespace", u)),
|
|
10260
|
+
linebreakReplacement: Se(Z(c, "linebreakReplacement", u)),
|
|
10261
|
+
defining: Se(Z(c, "defining", u)),
|
|
10262
|
+
isolating: Se(Z(c, "isolating", u)),
|
|
10263
10263
|
attrs: Object.fromEntries(d.map((S) => {
|
|
10264
10264
|
var E;
|
|
10265
10265
|
return [S.name, { default: (E = S?.attribute) === null || E === void 0 ? void 0 : E.default }];
|
|
10266
10266
|
}))
|
|
10267
|
-
}), h =
|
|
10267
|
+
}), h = Se(Z(c, "parseHTML", u));
|
|
10268
10268
|
h && (m.parseDOM = h.map((S) => Vp(S, d)));
|
|
10269
10269
|
const _ = Z(c, "renderHTML", u);
|
|
10270
10270
|
_ && (m.toDOM = (S) => _({
|
|
@@ -10287,16 +10287,16 @@ function UC(e, t) {
|
|
|
10287
10287
|
};
|
|
10288
10288
|
}, {}), m = Gp({
|
|
10289
10289
|
...p,
|
|
10290
|
-
inclusive:
|
|
10291
|
-
excludes:
|
|
10292
|
-
group:
|
|
10293
|
-
spanning:
|
|
10294
|
-
code:
|
|
10290
|
+
inclusive: Se(Z(c, "inclusive", u)),
|
|
10291
|
+
excludes: Se(Z(c, "excludes", u)),
|
|
10292
|
+
group: Se(Z(c, "group", u)),
|
|
10293
|
+
spanning: Se(Z(c, "spanning", u)),
|
|
10294
|
+
code: Se(Z(c, "code", u)),
|
|
10295
10295
|
attrs: Object.fromEntries(d.map((g) => {
|
|
10296
10296
|
var S;
|
|
10297
10297
|
return [g.name, { default: (S = g?.attribute) === null || S === void 0 ? void 0 : S.default }];
|
|
10298
10298
|
}))
|
|
10299
|
-
}), h =
|
|
10299
|
+
}), h = Se(Z(c, "parseHTML", u));
|
|
10300
10300
|
h && (m.parseDOM = h.map((g) => Vp(g, d)));
|
|
10301
10301
|
const _ = Z(c, "renderHTML", u);
|
|
10302
10302
|
return _ && (m.toDOM = (g) => _({
|
|
@@ -10408,7 +10408,7 @@ function GC(e) {
|
|
|
10408
10408
|
const l = i.getMeta("applyInputRules");
|
|
10409
10409
|
return l && setTimeout(() => {
|
|
10410
10410
|
let { text: c } = l;
|
|
10411
|
-
typeof c == "string" ? c = c : c = Ld(
|
|
10411
|
+
typeof c == "string" ? c = c : c = Ld(k.from(c), a.schema);
|
|
10412
10412
|
const { from: d } = l, u = d + c.length;
|
|
10413
10413
|
aa({
|
|
10414
10414
|
editor: t,
|
|
@@ -10487,9 +10487,9 @@ class xt {
|
|
|
10487
10487
|
}, this.config = {
|
|
10488
10488
|
...this.config,
|
|
10489
10489
|
...t
|
|
10490
|
-
}, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
10490
|
+
}, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Se(Z(this, "addOptions", {
|
|
10491
10491
|
name: this.name
|
|
10492
|
-
}))), this.storage =
|
|
10492
|
+
}))), this.storage = Se(Z(this, "addStorage", {
|
|
10493
10493
|
name: this.name,
|
|
10494
10494
|
options: this.options
|
|
10495
10495
|
})) || {};
|
|
@@ -10506,9 +10506,9 @@ class xt {
|
|
|
10506
10506
|
}
|
|
10507
10507
|
extend(t = {}) {
|
|
10508
10508
|
const n = new xt(t);
|
|
10509
|
-
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options =
|
|
10509
|
+
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Se(Z(n, "addOptions", {
|
|
10510
10510
|
name: n.name
|
|
10511
|
-
})), n.storage =
|
|
10511
|
+
})), n.storage = Se(Z(n, "addStorage", {
|
|
10512
10512
|
name: n.name,
|
|
10513
10513
|
options: n.options
|
|
10514
10514
|
})), n;
|
|
@@ -10649,7 +10649,7 @@ function KC(e) {
|
|
|
10649
10649
|
return;
|
|
10650
10650
|
if (S) {
|
|
10651
10651
|
let { text: f } = g;
|
|
10652
|
-
typeof f == "string" ? f = f : f = Ld(
|
|
10652
|
+
typeof f == "string" ? f = f : f = Ld(k.from(f), p.schema);
|
|
10653
10653
|
const { from: y } = g, v = y + f.length, T = WC(f);
|
|
10654
10654
|
return l({
|
|
10655
10655
|
rule: c,
|
|
@@ -10796,7 +10796,7 @@ class si {
|
|
|
10796
10796
|
options: r.options,
|
|
10797
10797
|
storage: r.storage,
|
|
10798
10798
|
editor: t,
|
|
10799
|
-
type:
|
|
10799
|
+
type: at(r.name, this.schema)
|
|
10800
10800
|
}, a = Z(r, "addNodeView", o);
|
|
10801
10801
|
if (!a)
|
|
10802
10802
|
return [];
|
|
@@ -10833,7 +10833,7 @@ class si {
|
|
|
10833
10833
|
editor: this.editor,
|
|
10834
10834
|
type: Pl(t.name, this.schema)
|
|
10835
10835
|
};
|
|
10836
|
-
t.type === "mark" && (!((n =
|
|
10836
|
+
t.type === "mark" && (!((n = Se(Z(t, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(t.name);
|
|
10837
10837
|
const i = Z(t, "onBeforeCreate", r), o = Z(t, "onCreate", r), a = Z(t, "onUpdate", r), s = Z(t, "onSelectionUpdate", r), l = Z(t, "onTransaction", r), c = Z(t, "onFocus", r), d = Z(t, "onBlur", r), u = Z(t, "onDestroy", r);
|
|
10838
10838
|
i && this.editor.on("beforeCreate", i), o && this.editor.on("create", o), a && this.editor.on("update", a), s && this.editor.on("selectionUpdate", s), l && this.editor.on("transaction", l), c && this.editor.on("focus", c), d && this.editor.on("blur", d), u && this.editor.on("destroy", u);
|
|
10839
10839
|
});
|
|
@@ -10847,9 +10847,9 @@ class Ae {
|
|
|
10847
10847
|
}, this.config = {
|
|
10848
10848
|
...this.config,
|
|
10849
10849
|
...t
|
|
10850
|
-
}, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
10850
|
+
}, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Se(Z(this, "addOptions", {
|
|
10851
10851
|
name: this.name
|
|
10852
|
-
}))), this.storage =
|
|
10852
|
+
}))), this.storage = Se(Z(this, "addStorage", {
|
|
10853
10853
|
name: this.name,
|
|
10854
10854
|
options: this.options
|
|
10855
10855
|
})) || {};
|
|
@@ -10866,9 +10866,9 @@ class Ae {
|
|
|
10866
10866
|
}
|
|
10867
10867
|
extend(t = {}) {
|
|
10868
10868
|
const n = new Ae({ ...this.config, ...t });
|
|
10869
|
-
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options =
|
|
10869
|
+
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Se(Z(n, "addOptions", {
|
|
10870
10870
|
name: n.name
|
|
10871
|
-
})), n.storage =
|
|
10871
|
+
})), n.storage = Se(Z(n, "addStorage", {
|
|
10872
10872
|
name: n.name,
|
|
10873
10873
|
options: n.options
|
|
10874
10874
|
})), n;
|
|
@@ -10960,7 +10960,7 @@ const ZC = Ae.create({
|
|
|
10960
10960
|
}
|
|
10961
10961
|
return !1;
|
|
10962
10962
|
}, oT = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
10963
|
-
const i =
|
|
10963
|
+
const i = at(e, n.schema), o = t.selection.$anchor;
|
|
10964
10964
|
for (let a = o.depth; a > 0; a -= 1)
|
|
10965
10965
|
if (o.node(a).type === i) {
|
|
10966
10966
|
if (r) {
|
|
@@ -11005,7 +11005,7 @@ function Fd(e, t, n) {
|
|
|
11005
11005
|
to: l
|
|
11006
11006
|
};
|
|
11007
11007
|
}
|
|
11008
|
-
function
|
|
11008
|
+
function Bn(e, t) {
|
|
11009
11009
|
if (typeof e == "string") {
|
|
11010
11010
|
if (!t.marks[e])
|
|
11011
11011
|
throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);
|
|
@@ -11014,7 +11014,7 @@ function Fn(e, t) {
|
|
|
11014
11014
|
return e;
|
|
11015
11015
|
}
|
|
11016
11016
|
const dT = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11017
|
-
const o =
|
|
11017
|
+
const o = Bn(e, r.schema), { doc: a, selection: s } = n, { $from: l, from: c, to: d } = s;
|
|
11018
11018
|
if (i) {
|
|
11019
11019
|
const u = Fd(l, o, t);
|
|
11020
11020
|
if (u && u.from <= c && u.to >= d) {
|
|
@@ -11033,7 +11033,7 @@ const dT = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
11033
11033
|
function Bd(e) {
|
|
11034
11034
|
return e instanceof J;
|
|
11035
11035
|
}
|
|
11036
|
-
function
|
|
11036
|
+
function kn(e = 0, t = 0, n = 0) {
|
|
11037
11037
|
return Math.min(Math.max(e, t), n);
|
|
11038
11038
|
}
|
|
11039
11039
|
function kg(e, t = null) {
|
|
@@ -11045,7 +11045,7 @@ function kg(e, t = null) {
|
|
|
11045
11045
|
if (t === "end")
|
|
11046
11046
|
return r;
|
|
11047
11047
|
const i = n.from, o = r.to;
|
|
11048
|
-
return t === "all" ? J.create(e,
|
|
11048
|
+
return t === "all" ? J.create(e, kn(0, i, o), kn(e.content.size, i, o)) : J.create(e, kn(t, i, o), kn(t, i, o));
|
|
11049
11049
|
}
|
|
11050
11050
|
function pT() {
|
|
11051
11051
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
@@ -11089,7 +11089,7 @@ function ca(e) {
|
|
|
11089
11089
|
return Lg(n);
|
|
11090
11090
|
}
|
|
11091
11091
|
function yo(e, t, n) {
|
|
11092
|
-
if (e instanceof
|
|
11092
|
+
if (e instanceof Ln || e instanceof k)
|
|
11093
11093
|
return e;
|
|
11094
11094
|
n = {
|
|
11095
11095
|
slice: !0,
|
|
@@ -11100,7 +11100,7 @@ function yo(e, t, n) {
|
|
|
11100
11100
|
if (r)
|
|
11101
11101
|
try {
|
|
11102
11102
|
if (Array.isArray(e) && e.length > 0)
|
|
11103
|
-
return
|
|
11103
|
+
return k.fromArray(e.map((a) => t.nodeFromJSON(a)));
|
|
11104
11104
|
const o = t.nodeFromJSON(e);
|
|
11105
11105
|
return n.errorOnInvalidContent && o.check(), o;
|
|
11106
11106
|
} catch (o) {
|
|
@@ -11142,7 +11142,7 @@ function gT(e, t, n) {
|
|
|
11142
11142
|
if (r < t)
|
|
11143
11143
|
return;
|
|
11144
11144
|
const i = e.steps[r];
|
|
11145
|
-
if (!(i instanceof et || i instanceof
|
|
11145
|
+
if (!(i instanceof et || i instanceof it))
|
|
11146
11146
|
return;
|
|
11147
11147
|
const o = e.mapping.maps[r];
|
|
11148
11148
|
let a = 0;
|
|
@@ -11201,7 +11201,7 @@ const fT = (e) => !("type" in e), ET = (e, t, n) => ({ tr: r, dispatch: i, edito
|
|
|
11201
11201
|
if (p) {
|
|
11202
11202
|
if (Array.isArray(t))
|
|
11203
11203
|
h = t.map((_) => _.text || "").join("");
|
|
11204
|
-
else if (t instanceof
|
|
11204
|
+
else if (t instanceof k) {
|
|
11205
11205
|
let _ = "";
|
|
11206
11206
|
t.forEach((g) => {
|
|
11207
11207
|
g.text && (_ += g.text);
|
|
@@ -11271,7 +11271,7 @@ const AT = (e) => ({ editor: t, view: n, tr: r, dispatch: i }) => {
|
|
|
11271
11271
|
}), !0;
|
|
11272
11272
|
};
|
|
11273
11273
|
function Lr(e, t, n = {}) {
|
|
11274
|
-
const { from: r, to: i, empty: o } = e.selection, a = t ?
|
|
11274
|
+
const { from: r, to: i, empty: o } = e.selection, a = t ? at(t, e.schema) : null, s = [];
|
|
11275
11275
|
e.doc.nodesBetween(r, i, (d, u) => {
|
|
11276
11276
|
if (d.isText)
|
|
11277
11277
|
return;
|
|
@@ -11286,10 +11286,10 @@ function Lr(e, t, n = {}) {
|
|
|
11286
11286
|
return o ? !!c.length : c.reduce((d, u) => d + u.to - u.from, 0) >= l;
|
|
11287
11287
|
}
|
|
11288
11288
|
const wT = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
11289
|
-
const i =
|
|
11289
|
+
const i = at(e, n.schema);
|
|
11290
11290
|
return Lr(n, i, t) ? bC(n, r) : !1;
|
|
11291
11291
|
}, IT = () => ({ state: e, dispatch: t }) => TC(e, t), xT = (e) => ({ state: t, dispatch: n }) => {
|
|
11292
|
-
const r =
|
|
11292
|
+
const r = at(e, t.schema);
|
|
11293
11293
|
return DC(r)(t, n);
|
|
11294
11294
|
}, DT = () => ({ state: e, dispatch: t }) => vC(e, t);
|
|
11295
11295
|
function el(e, t) {
|
|
@@ -11302,7 +11302,7 @@ function Yp(e, t) {
|
|
|
11302
11302
|
const MT = (e, t) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11303
11303
|
let o = null, a = null;
|
|
11304
11304
|
const s = el(typeof e == "string" ? e : e.name, r.schema);
|
|
11305
|
-
return s ? (s === "node" && (o =
|
|
11305
|
+
return s ? (s === "node" && (o = at(e, r.schema)), s === "mark" && (a = Bn(e, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
11306
11306
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, d) => {
|
|
11307
11307
|
o && o === c.type && n.setNodeMarkup(d, void 0, Yp(c.attrs, t)), a && c.marks.length && c.marks.forEach((u) => {
|
|
11308
11308
|
a === u.type && n.addMark(d, d + c.nodeSize, a.create(Yp(u.attrs, t)));
|
|
@@ -11338,7 +11338,7 @@ const VT = (e, t = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: a, comm
|
|
|
11338
11338
|
});
|
|
11339
11339
|
};
|
|
11340
11340
|
function Fg(e, t) {
|
|
11341
|
-
const n =
|
|
11341
|
+
const n = Bn(t, e.schema), { from: r, to: i, empty: o } = e.selection, a = [];
|
|
11342
11342
|
o ? (e.storedMarks && a.push(...e.storedMarks), a.push(...e.selection.$head.marks())) : e.doc.nodesBetween(r, i, (l) => {
|
|
11343
11343
|
a.push(...l.marks);
|
|
11344
11344
|
});
|
|
@@ -11402,7 +11402,7 @@ function YT(e, t) {
|
|
|
11402
11402
|
return Js(e, n, t);
|
|
11403
11403
|
}
|
|
11404
11404
|
function qT(e, t) {
|
|
11405
|
-
const n =
|
|
11405
|
+
const n = at(t, e.schema), { from: r, to: i } = e.selection, o = [];
|
|
11406
11406
|
e.doc.nodesBetween(r, i, (s) => {
|
|
11407
11407
|
o.push(s);
|
|
11408
11408
|
});
|
|
@@ -11476,7 +11476,7 @@ function Da(e, t, n) {
|
|
|
11476
11476
|
}));
|
|
11477
11477
|
}
|
|
11478
11478
|
function Hc(e, t, n = {}) {
|
|
11479
|
-
const { empty: r, ranges: i } = e.selection, o = t ?
|
|
11479
|
+
const { empty: r, ranges: i } = e.selection, o = t ? Bn(t, e.schema) : null;
|
|
11480
11480
|
if (r)
|
|
11481
11481
|
return !!(e.storedMarks || e.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Si(d.attrs, n, { strict: !1 }));
|
|
11482
11482
|
let a = 0;
|
|
@@ -11512,7 +11512,7 @@ function qp(e, t) {
|
|
|
11512
11512
|
name: r.name,
|
|
11513
11513
|
options: r.options,
|
|
11514
11514
|
storage: r.storage
|
|
11515
|
-
}, o =
|
|
11515
|
+
}, o = Se(Z(r, "group", i));
|
|
11516
11516
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
11517
11517
|
}
|
|
11518
11518
|
function nl(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
@@ -11541,7 +11541,7 @@ function Hg(e) {
|
|
|
11541
11541
|
return e instanceof re;
|
|
11542
11542
|
}
|
|
11543
11543
|
function Co(e, t, n) {
|
|
11544
|
-
const r = e.state.doc.content.size, i =
|
|
11544
|
+
const r = e.state.doc.content.size, i = kn(t, 0, r), o = kn(n, 0, r), a = e.coordsAtPos(i), s = e.coordsAtPos(o, -1), l = Math.min(a.top, s.top), c = Math.max(a.bottom, s.bottom), d = Math.min(a.left, s.left), u = Math.max(a.right, s.right), p = u - d, m = c - l, h = {
|
|
11545
11545
|
top: l,
|
|
11546
11546
|
bottom: c,
|
|
11547
11547
|
left: d,
|
|
@@ -11579,7 +11579,7 @@ function ZT(e, t, n) {
|
|
|
11579
11579
|
});
|
|
11580
11580
|
}
|
|
11581
11581
|
const XT = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11582
|
-
const { selection: o } = n, { empty: a, ranges: s } = o, l =
|
|
11582
|
+
const { selection: o } = n, { empty: a, ranges: s } = o, l = Bn(e, r.schema);
|
|
11583
11583
|
if (i)
|
|
11584
11584
|
if (a) {
|
|
11585
11585
|
const c = Fg(r, l);
|
|
@@ -11602,23 +11602,23 @@ const XT = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
11602
11602
|
});
|
|
11603
11603
|
return ZT(r, n, l);
|
|
11604
11604
|
}, JT = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), e1 = (e, t = {}) => ({ state: n, dispatch: r, chain: i }) => {
|
|
11605
|
-
const o =
|
|
11605
|
+
const o = at(e, n.schema);
|
|
11606
11606
|
let a;
|
|
11607
11607
|
return n.selection.$anchor.sameParent(n.selection.$head) && (a = n.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: s }) => Hp(o, { ...a, ...t })(n) ? !0 : s.clearNodes()).command(({ state: s }) => Hp(o, { ...a, ...t })(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
11608
11608
|
}, t1 = (e) => ({ tr: t, dispatch: n }) => {
|
|
11609
11609
|
if (n) {
|
|
11610
|
-
const { doc: r } = t, i =
|
|
11610
|
+
const { doc: r } = t, i = kn(e, 0, r.content.size), o = re.create(r, i);
|
|
11611
11611
|
t.setSelection(o);
|
|
11612
11612
|
}
|
|
11613
11613
|
return !0;
|
|
11614
11614
|
}, n1 = (e) => ({ tr: t, dispatch: n }) => {
|
|
11615
11615
|
if (n) {
|
|
11616
|
-
const { doc: r } = t, { from: i, to: o } = typeof e == "number" ? { from: e, to: e } : e, a = J.atStart(r).from, s = J.atEnd(r).to, l =
|
|
11616
|
+
const { doc: r } = t, { from: i, to: o } = typeof e == "number" ? { from: e, to: e } : e, a = J.atStart(r).from, s = J.atEnd(r).to, l = kn(i, a, s), c = kn(o, a, s), d = J.create(r, l, c);
|
|
11617
11617
|
t.setSelection(d);
|
|
11618
11618
|
}
|
|
11619
11619
|
return !0;
|
|
11620
11620
|
}, r1 = (e) => ({ state: t, dispatch: n }) => {
|
|
11621
|
-
const r =
|
|
11621
|
+
const r = at(e, t.schema);
|
|
11622
11622
|
return LC(r)(t, n);
|
|
11623
11623
|
};
|
|
11624
11624
|
function jp(e, t) {
|
|
@@ -11656,7 +11656,7 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
11656
11656
|
return h;
|
|
11657
11657
|
}, o1 = (e, t = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
|
|
11658
11658
|
var a;
|
|
11659
|
-
const s =
|
|
11659
|
+
const s = at(e, r.schema), { $from: l, $to: c } = r.selection, d = r.selection.node;
|
|
11660
11660
|
if (d && d.isBlock || l.depth < 2 || !l.sameParent(c))
|
|
11661
11661
|
return !1;
|
|
11662
11662
|
const u = l.node(-1);
|
|
@@ -11667,15 +11667,15 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
11667
11667
|
if (l.depth === 2 || l.node(-3).type !== s || l.index(-2) !== l.node(-2).childCount - 1)
|
|
11668
11668
|
return !1;
|
|
11669
11669
|
if (i) {
|
|
11670
|
-
let S =
|
|
11670
|
+
let S = k.empty;
|
|
11671
11671
|
const E = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
11672
11672
|
for (let R = l.depth - E; R >= l.depth - 3; R -= 1)
|
|
11673
|
-
S =
|
|
11673
|
+
S = k.from(l.node(R).copy(S));
|
|
11674
11674
|
const b = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, f = {
|
|
11675
11675
|
...Da(p, l.node().type.name, l.node().attrs),
|
|
11676
11676
|
...t
|
|
11677
11677
|
}, y = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(f)) || void 0;
|
|
11678
|
-
S = S.append(
|
|
11678
|
+
S = S.append(k.from(s.createAndFill(null, y) || void 0));
|
|
11679
11679
|
const v = l.before(l.depth - (E - 1));
|
|
11680
11680
|
n.replace(v, l.after(-b), new z(S, 4 - E, 0));
|
|
11681
11681
|
let T = -1;
|
|
@@ -11728,7 +11728,7 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
11728
11728
|
const i = e.doc.nodeAt(r);
|
|
11729
11729
|
return n.node.type === i?.type && ur(e.doc, r) && e.join(r), !0;
|
|
11730
11730
|
}, a1 = (e, t, n, r = {}) => ({ editor: i, tr: o, state: a, dispatch: s, chain: l, commands: c, can: d }) => {
|
|
11731
|
-
const { extensions: u, splittableMarks: p } = i.extensionManager, m =
|
|
11731
|
+
const { extensions: u, splittableMarks: p } = i.extensionManager, m = at(e, a.schema), h = at(t, a.schema), { selection: _, storedMarks: g } = a, { $from: S, $to: E } = _, b = S.blockRange(E), f = g || _.$to.parentOffset && _.$from.marks();
|
|
11732
11732
|
if (!b)
|
|
11733
11733
|
return !1;
|
|
11734
11734
|
const y = tl((v) => qp(v.type.name, u))(_);
|
|
@@ -11743,14 +11743,14 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
11743
11743
|
return o.ensureMarks(T), v ? !0 : c.clearNodes();
|
|
11744
11744
|
}).wrapInList(m, r).command(() => Fl(o, m)).command(() => Bl(o, m)).run();
|
|
11745
11745
|
}, s1 = (e, t = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
11746
|
-
const { extendEmptyMarkRange: o = !1 } = n, a =
|
|
11746
|
+
const { extendEmptyMarkRange: o = !1 } = n, a = Bn(e, r.schema);
|
|
11747
11747
|
return Hc(r, a, t) ? i.unsetMark(a, { extendEmptyMarkRange: o }) : i.setMark(a, t);
|
|
11748
11748
|
}, l1 = (e, t, n = {}) => ({ state: r, commands: i }) => {
|
|
11749
|
-
const o =
|
|
11749
|
+
const o = at(e, r.schema), a = at(t, r.schema), s = Lr(r, o, n);
|
|
11750
11750
|
let l;
|
|
11751
11751
|
return r.selection.$anchor.sameParent(r.selection.$head) && (l = r.selection.$anchor.parent.attrs), s ? i.setNode(a, l) : i.setNode(o, { ...l, ...n });
|
|
11752
11752
|
}, c1 = (e, t = {}) => ({ state: n, commands: r }) => {
|
|
11753
|
-
const i =
|
|
11753
|
+
const i = at(e, n.schema);
|
|
11754
11754
|
return Lr(n, i, t) ? r.lift(i) : r.wrapIn(i, t);
|
|
11755
11755
|
}, d1 = () => ({ state: e, dispatch: t }) => {
|
|
11756
11756
|
const n = e.plugins;
|
|
@@ -11779,7 +11779,7 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
11779
11779
|
}), !0;
|
|
11780
11780
|
}, p1 = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11781
11781
|
var o;
|
|
11782
|
-
const { extendEmptyMarkRange: a = !1 } = t, { selection: s } = n, l =
|
|
11782
|
+
const { extendEmptyMarkRange: a = !1 } = t, { selection: s } = n, l = Bn(e, r.schema), { $from: c, empty: d, ranges: u } = s;
|
|
11783
11783
|
if (!i)
|
|
11784
11784
|
return !0;
|
|
11785
11785
|
if (d && a) {
|
|
@@ -11794,7 +11794,7 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
11794
11794
|
}, m1 = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11795
11795
|
let o = null, a = null;
|
|
11796
11796
|
const s = el(typeof e == "string" ? e : e.name, r.schema);
|
|
11797
|
-
return s ? (s === "node" && (o =
|
|
11797
|
+
return s ? (s === "node" && (o = at(e, r.schema)), s === "mark" && (a = Bn(e, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
11798
11798
|
const c = l.$from.pos, d = l.$to.pos;
|
|
11799
11799
|
let u, p, m, h;
|
|
11800
11800
|
n.selection.empty ? r.doc.nodesBetween(c, d, (_, g) => {
|
|
@@ -11823,10 +11823,10 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
11823
11823
|
}));
|
|
11824
11824
|
}), !0) : !1;
|
|
11825
11825
|
}, h1 = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
11826
|
-
const i =
|
|
11826
|
+
const i = at(e, n.schema);
|
|
11827
11827
|
return wC(i, t)(n, r);
|
|
11828
11828
|
}, _1 = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
11829
|
-
const i =
|
|
11829
|
+
const i = at(e, n.schema);
|
|
11830
11830
|
return IC(i, t)(n, r);
|
|
11831
11831
|
};
|
|
11832
11832
|
var g1 = /* @__PURE__ */ Object.freeze({
|
|
@@ -12620,7 +12620,7 @@ function Pr(e) {
|
|
|
12620
12620
|
return new $o({
|
|
12621
12621
|
find: e.find,
|
|
12622
12622
|
handler: ({ state: t, range: n, match: r }) => {
|
|
12623
|
-
const i =
|
|
12623
|
+
const i = Se(e.getAttributes, void 0, r);
|
|
12624
12624
|
if (i === !1 || i === null)
|
|
12625
12625
|
return null;
|
|
12626
12626
|
const { tr: o } = t, a = r[r.length - 1], s = r[0];
|
|
@@ -12639,7 +12639,7 @@ function Vd(e) {
|
|
|
12639
12639
|
return new $o({
|
|
12640
12640
|
find: e.find,
|
|
12641
12641
|
handler: ({ state: t, range: n, match: r }) => {
|
|
12642
|
-
const i =
|
|
12642
|
+
const i = Se(e.getAttributes, void 0, r) || {}, { tr: o } = t, a = n.from;
|
|
12643
12643
|
let s = n.to;
|
|
12644
12644
|
const l = e.type.create(i);
|
|
12645
12645
|
if (r[1]) {
|
|
@@ -12660,7 +12660,7 @@ function Vc(e) {
|
|
|
12660
12660
|
return new $o({
|
|
12661
12661
|
find: e.find,
|
|
12662
12662
|
handler: ({ state: t, range: n, match: r }) => {
|
|
12663
|
-
const i = t.doc.resolve(n.from), o =
|
|
12663
|
+
const i = t.doc.resolve(n.from), o = Se(e.getAttributes, void 0, r) || {};
|
|
12664
12664
|
if (!i.node(-1).canReplaceWith(i.index(-1), i.indexAfter(-1), e.type))
|
|
12665
12665
|
return null;
|
|
12666
12666
|
t.tr.delete(n.from, n.to).setBlockType(n.from, n.from, e.type, o);
|
|
@@ -12671,7 +12671,7 @@ function Fr(e) {
|
|
|
12671
12671
|
return new $o({
|
|
12672
12672
|
find: e.find,
|
|
12673
12673
|
handler: ({ state: t, range: n, match: r, chain: i }) => {
|
|
12674
|
-
const o =
|
|
12674
|
+
const o = Se(e.getAttributes, void 0, r) || {}, a = t.tr.delete(n.from, n.to), s = a.doc.resolve(n.from).blockRange(), l = s && vd(s, e.type, o);
|
|
12675
12675
|
if (!l)
|
|
12676
12676
|
return null;
|
|
12677
12677
|
if (a.wrap(s, l), e.keepMarks && e.editor) {
|
|
@@ -12698,9 +12698,9 @@ let Ge = class Gc {
|
|
|
12698
12698
|
}, this.config = {
|
|
12699
12699
|
...this.config,
|
|
12700
12700
|
...t
|
|
12701
|
-
}, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
12701
|
+
}, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Se(Z(this, "addOptions", {
|
|
12702
12702
|
name: this.name
|
|
12703
|
-
}))), this.storage =
|
|
12703
|
+
}))), this.storage = Se(Z(this, "addStorage", {
|
|
12704
12704
|
name: this.name,
|
|
12705
12705
|
options: this.options
|
|
12706
12706
|
})) || {};
|
|
@@ -12717,9 +12717,9 @@ let Ge = class Gc {
|
|
|
12717
12717
|
}
|
|
12718
12718
|
extend(t = {}) {
|
|
12719
12719
|
const n = new Gc(t);
|
|
12720
|
-
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options =
|
|
12720
|
+
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Se(Z(n, "addOptions", {
|
|
12721
12721
|
name: n.name
|
|
12722
|
-
})), n.storage =
|
|
12722
|
+
})), n.storage = Se(Z(n, "addStorage", {
|
|
12723
12723
|
name: n.name,
|
|
12724
12724
|
options: n.options
|
|
12725
12725
|
})), n;
|
|
@@ -12729,7 +12729,7 @@ function lr(e) {
|
|
|
12729
12729
|
return new YC({
|
|
12730
12730
|
find: e.find,
|
|
12731
12731
|
handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
|
|
12732
|
-
const o =
|
|
12732
|
+
const o = Se(e.getAttributes, void 0, r, i);
|
|
12733
12733
|
if (o === !1 || o === null)
|
|
12734
12734
|
return null;
|
|
12735
12735
|
const { tr: a } = t, s = r[r.length - 1], l = r[0];
|
|
@@ -12950,7 +12950,7 @@ function Yg(e, t) {
|
|
|
12950
12950
|
}
|
|
12951
12951
|
return !1;
|
|
12952
12952
|
}
|
|
12953
|
-
function
|
|
12953
|
+
function Fn(e) {
|
|
12954
12954
|
return Bt(e).getComputedStyle(e);
|
|
12955
12955
|
}
|
|
12956
12956
|
function q1(e) {
|
|
@@ -12976,18 +12976,18 @@ function rl(e) {
|
|
|
12976
12976
|
}
|
|
12977
12977
|
function Kp(e) {
|
|
12978
12978
|
return !Kt(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
12979
|
-
|
|
12979
|
+
Fn(e).position === "fixed" ? null : e.offsetParent;
|
|
12980
12980
|
}
|
|
12981
12981
|
function j1(e) {
|
|
12982
12982
|
var t = /firefox/i.test(zc()), n = /Trident/i.test(zc());
|
|
12983
12983
|
if (n && Kt(e)) {
|
|
12984
|
-
var r =
|
|
12984
|
+
var r = Fn(e);
|
|
12985
12985
|
if (r.position === "fixed")
|
|
12986
12986
|
return null;
|
|
12987
12987
|
}
|
|
12988
12988
|
var i = rl(e);
|
|
12989
12989
|
for (zd(i) && (i = i.host); Kt(i) && ["html", "body"].indexOf(bn(i)) < 0; ) {
|
|
12990
|
-
var o =
|
|
12990
|
+
var o = Fn(i);
|
|
12991
12991
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
|
|
12992
12992
|
return i;
|
|
12993
12993
|
i = i.parentNode;
|
|
@@ -12995,9 +12995,9 @@ function j1(e) {
|
|
|
12995
12995
|
return null;
|
|
12996
12996
|
}
|
|
12997
12997
|
function qo(e) {
|
|
12998
|
-
for (var t = Bt(e), n = Kp(e); n && q1(n) &&
|
|
12998
|
+
for (var t = Bt(e), n = Kp(e); n && q1(n) && Fn(n).position === "static"; )
|
|
12999
12999
|
n = Kp(n);
|
|
13000
|
-
return n && (bn(n) === "html" || bn(n) === "body" &&
|
|
13000
|
+
return n && (bn(n) === "html" || bn(n) === "body" && Fn(n).position === "static") ? t : n || j1(e) || t;
|
|
13001
13001
|
}
|
|
13002
13002
|
function Yd(e) {
|
|
13003
13003
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
@@ -13078,7 +13078,7 @@ function Qp(e) {
|
|
|
13078
13078
|
var S = a.hasOwnProperty("x"), E = a.hasOwnProperty("y"), b = It, f = wt, y = window;
|
|
13079
13079
|
if (c) {
|
|
13080
13080
|
var v = qo(n), T = "clientHeight", R = "clientWidth";
|
|
13081
|
-
if (v === Bt(n) && (v = mr(n),
|
|
13081
|
+
if (v === Bt(n) && (v = mr(n), Fn(v).position !== "static" && s === "absolute" && (T = "scrollHeight", R = "scrollWidth")), v = v, i === wt || (i === It || i === Zt) && o === To) {
|
|
13082
13082
|
f = Qt;
|
|
13083
13083
|
var O = u && v === y && y.visualViewport ? y.visualViewport.height : (
|
|
13084
13084
|
// $FlowFixMe[prop-missing]
|
|
@@ -13088,14 +13088,14 @@ function Qp(e) {
|
|
|
13088
13088
|
}
|
|
13089
13089
|
if (i === It || (i === wt || i === Qt) && o === To) {
|
|
13090
13090
|
b = Zt;
|
|
13091
|
-
var
|
|
13091
|
+
var M = u && v === y && y.visualViewport ? y.visualViewport.width : (
|
|
13092
13092
|
// $FlowFixMe[prop-missing]
|
|
13093
13093
|
v[R]
|
|
13094
13094
|
);
|
|
13095
|
-
m -=
|
|
13095
|
+
m -= M - r.width, m *= l ? 1 : -1;
|
|
13096
13096
|
}
|
|
13097
13097
|
}
|
|
13098
|
-
var
|
|
13098
|
+
var V = Object.assign({
|
|
13099
13099
|
position: s
|
|
13100
13100
|
}, c && J1), B = d === !0 ? eO({
|
|
13101
13101
|
x: m,
|
|
@@ -13106,9 +13106,9 @@ function Qp(e) {
|
|
|
13106
13106
|
};
|
|
13107
13107
|
if (m = B.x, _ = B.y, l) {
|
|
13108
13108
|
var Y;
|
|
13109
|
-
return Object.assign({},
|
|
13109
|
+
return Object.assign({}, V, (Y = {}, Y[f] = E ? "0" : "", Y[b] = S ? "0" : "", Y.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + _ + "px)" : "translate3d(" + m + "px, " + _ + "px, 0)", Y));
|
|
13110
13110
|
}
|
|
13111
|
-
return Object.assign({},
|
|
13111
|
+
return Object.assign({}, V, (t = {}, t[f] = E ? _ + "px" : "", t[b] = S ? m + "px" : "", t.transform = "", t));
|
|
13112
13112
|
}
|
|
13113
13113
|
function tO(e) {
|
|
13114
13114
|
var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, a = o === void 0 ? !0 : o, s = n.roundOffsets, l = s === void 0 ? !0 : s, c = {
|
|
@@ -13208,7 +13208,7 @@ function sO(e, t) {
|
|
|
13208
13208
|
}
|
|
13209
13209
|
function lO(e) {
|
|
13210
13210
|
var t, n = mr(e), r = qd(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, o = Rr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Rr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + jd(e), l = -r.scrollTop;
|
|
13211
|
-
return
|
|
13211
|
+
return Fn(i || n).direction === "rtl" && (s += Rr(n.clientWidth, i ? i.clientWidth : 0) - o), {
|
|
13212
13212
|
width: o,
|
|
13213
13213
|
height: a,
|
|
13214
13214
|
x: s,
|
|
@@ -13216,7 +13216,7 @@ function lO(e) {
|
|
|
13216
13216
|
};
|
|
13217
13217
|
}
|
|
13218
13218
|
function Wd(e) {
|
|
13219
|
-
var t =
|
|
13219
|
+
var t = Fn(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
|
|
13220
13220
|
return /auto|scroll|overlay|hidden/.test(n + i + r);
|
|
13221
13221
|
}
|
|
13222
13222
|
function Kg(e) {
|
|
@@ -13247,7 +13247,7 @@ function Xp(e, t, n) {
|
|
|
13247
13247
|
return t === Vg ? $c(sO(e, n)) : Br(t) ? cO(t, n) : $c(lO(mr(e)));
|
|
13248
13248
|
}
|
|
13249
13249
|
function dO(e) {
|
|
13250
|
-
var t = io(rl(e)), n = ["absolute", "fixed"].indexOf(
|
|
13250
|
+
var t = io(rl(e)), n = ["absolute", "fixed"].indexOf(Fn(e).position) >= 0, r = n && Kt(e) ? qo(e) : e;
|
|
13251
13251
|
return Br(r) ? t.filter(function(i) {
|
|
13252
13252
|
return Br(i) && Yg(i, r) && bn(i) !== "body";
|
|
13253
13253
|
}) : [];
|
|
@@ -13312,20 +13312,20 @@ function Oo(e, t) {
|
|
|
13312
13312
|
reference: v,
|
|
13313
13313
|
element: b,
|
|
13314
13314
|
placement: i
|
|
13315
|
-
}), R = $c(Object.assign({}, b, T)), O = p === Bi ? R : v,
|
|
13315
|
+
}), R = $c(Object.assign({}, b, T)), O = p === Bi ? R : v, M = {
|
|
13316
13316
|
top: y.top - O.top + S.top,
|
|
13317
13317
|
bottom: O.bottom - y.bottom + S.bottom,
|
|
13318
13318
|
left: y.left - O.left + S.left,
|
|
13319
13319
|
right: O.right - y.right + S.right
|
|
13320
|
-
},
|
|
13321
|
-
if (p === Bi &&
|
|
13322
|
-
var B =
|
|
13323
|
-
Object.keys(
|
|
13324
|
-
var
|
|
13325
|
-
|
|
13320
|
+
}, V = e.modifiersData.offset;
|
|
13321
|
+
if (p === Bi && V) {
|
|
13322
|
+
var B = V[i];
|
|
13323
|
+
Object.keys(M).forEach(function(Y) {
|
|
13324
|
+
var W = [Zt, Qt].indexOf(Y) >= 0 ? 1 : -1, K = [wt, Qt].indexOf(Y) >= 0 ? "y" : "x";
|
|
13325
|
+
M[Y] += B[K] * W;
|
|
13326
13326
|
});
|
|
13327
13327
|
}
|
|
13328
|
-
return
|
|
13328
|
+
return M;
|
|
13329
13329
|
}
|
|
13330
13330
|
function pO(e, t) {
|
|
13331
13331
|
t === void 0 && (t = {});
|
|
@@ -13365,28 +13365,28 @@ function hO(e) {
|
|
|
13365
13365
|
flipVariations: h,
|
|
13366
13366
|
allowedAutoPlacements: _
|
|
13367
13367
|
}) : me);
|
|
13368
|
-
}, []), y = t.rects.reference, v = t.rects.popper, T = /* @__PURE__ */ new Map(), R = !0, O = f[0],
|
|
13369
|
-
var
|
|
13370
|
-
placement:
|
|
13368
|
+
}, []), y = t.rects.reference, v = t.rects.popper, T = /* @__PURE__ */ new Map(), R = !0, O = f[0], M = 0; M < f.length; M++) {
|
|
13369
|
+
var V = f[M], B = fn(V), Y = Ci(V) === bi, W = [wt, Qt].indexOf(B) >= 0, K = W ? "width" : "height", A = Oo(t, {
|
|
13370
|
+
placement: V,
|
|
13371
13371
|
boundary: d,
|
|
13372
13372
|
rootBoundary: u,
|
|
13373
13373
|
altBoundary: p,
|
|
13374
13374
|
padding: c
|
|
13375
|
-
}), C =
|
|
13375
|
+
}), C = W ? Y ? Zt : It : Y ? Qt : wt;
|
|
13376
13376
|
y[K] > v[K] && (C = Ma(C));
|
|
13377
13377
|
var N = Ma(C), L = [];
|
|
13378
13378
|
if (o && L.push(A[B] <= 0), s && L.push(A[C] <= 0, A[N] <= 0), L.every(function(Ce) {
|
|
13379
13379
|
return Ce;
|
|
13380
13380
|
})) {
|
|
13381
|
-
O =
|
|
13381
|
+
O = V, R = !1;
|
|
13382
13382
|
break;
|
|
13383
13383
|
}
|
|
13384
|
-
T.set(
|
|
13384
|
+
T.set(V, L);
|
|
13385
13385
|
}
|
|
13386
13386
|
if (R)
|
|
13387
13387
|
for (var $ = h ? 3 : 1, X = function(Ce) {
|
|
13388
|
-
var me = f.find(function(
|
|
13389
|
-
var Q = T.get(
|
|
13388
|
+
var me = f.find(function(q) {
|
|
13389
|
+
var Q = T.get(q);
|
|
13390
13390
|
if (Q)
|
|
13391
13391
|
return Q.slice(0, Ce).every(function(x) {
|
|
13392
13392
|
return x;
|
|
@@ -13501,26 +13501,26 @@ function TO(e) {
|
|
|
13501
13501
|
altBoundary: d
|
|
13502
13502
|
}), S = fn(t.placement), E = Ci(t.placement), b = !E, f = Yd(S), y = CO(f), v = t.modifiersData.popperOffsets, T = t.rects.reference, R = t.rects.popper, O = typeof _ == "function" ? _(Object.assign({}, t.rects, {
|
|
13503
13503
|
placement: t.placement
|
|
13504
|
-
})) : _,
|
|
13504
|
+
})) : _, M = typeof O == "number" ? {
|
|
13505
13505
|
mainAxis: O,
|
|
13506
13506
|
altAxis: O
|
|
13507
13507
|
} : Object.assign({
|
|
13508
13508
|
mainAxis: 0,
|
|
13509
13509
|
altAxis: 0
|
|
13510
|
-
}, O),
|
|
13510
|
+
}, O), V = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, B = {
|
|
13511
13511
|
x: 0,
|
|
13512
13512
|
y: 0
|
|
13513
13513
|
};
|
|
13514
13514
|
if (v) {
|
|
13515
13515
|
if (o) {
|
|
13516
|
-
var Y,
|
|
13516
|
+
var Y, W = f === "y" ? wt : It, K = f === "y" ? Qt : Zt, A = f === "y" ? "height" : "width", C = v[f], N = C + g[W], L = C - g[K], $ = m ? -R[A] / 2 : 0, X = E === bi ? T[A] : R[A], le = E === bi ? -R[A] : -T[A], Re = t.elements.arrow, Ce = m && Re ? $d(Re) : {
|
|
13517
13517
|
width: 0,
|
|
13518
13518
|
height: 0
|
|
13519
|
-
}, me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : qg(),
|
|
13519
|
+
}, me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : qg(), q = me[W], Q = me[K], x = ro(0, T[A], Ce[A]), ge = b ? T[A] / 2 - $ - x - q - M.mainAxis : X - x - q - M.mainAxis, Je = b ? -T[A] / 2 + $ + x + Q + M.mainAxis : le + x + Q + M.mainAxis, Ht = t.elements.arrow && qo(t.elements.arrow), an = Ht ? f === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, Ot = (Y = V?.[f]) != null ? Y : 0, Nt = C + ge - Ot - an, We = C + Je - Ot, he = ro(m ? Qa(N, Nt) : N, C, m ? Rr(L, We) : L);
|
|
13520
13520
|
v[f] = he, B[f] = he - C;
|
|
13521
13521
|
}
|
|
13522
13522
|
if (s) {
|
|
13523
|
-
var pt, te = f === "x" ? wt : It, ie = f === "x" ? Qt : Zt, we = v[y], oe = y === "y" ? "height" : "width", ye = we + g[te], Ke = we - g[ie],
|
|
13523
|
+
var pt, te = f === "x" ? wt : It, ie = f === "x" ? Qt : Zt, we = v[y], oe = y === "y" ? "height" : "width", ye = we + g[te], Ke = we - g[ie], st = [wt, It].indexOf(S) !== -1, Vt = (pt = V?.[y]) != null ? pt : 0, G = st ? ye : we - T[oe] - R[oe] - Vt + M.altAxis, w = st ? we + T[oe] + R[oe] - Vt - M.altAxis : Ke, P = m && st ? W1(G, we, w) : ro(m ? G : ye, we, m ? w : Ke);
|
|
13524
13524
|
v[y] = P, B[y] = P - we;
|
|
13525
13525
|
}
|
|
13526
13526
|
t.modifiersData[r] = B;
|
|
@@ -13905,7 +13905,7 @@ Yt.NODE_ENV !== "production" && nN();
|
|
|
13905
13905
|
function nN() {
|
|
13906
13906
|
Ro = /* @__PURE__ */ new Set();
|
|
13907
13907
|
}
|
|
13908
|
-
function
|
|
13908
|
+
function xn(e, t) {
|
|
13909
13909
|
if (e && !Ro.has(t)) {
|
|
13910
13910
|
var n;
|
|
13911
13911
|
Ro.add(t), (n = console).warn.apply(n, rf(t));
|
|
@@ -14037,7 +14037,7 @@ function sf(e, t) {
|
|
|
14037
14037
|
var i = HO(Lt, Object.keys(of)), o = !UO(i, r);
|
|
14038
14038
|
o && (o = t.filter(function(a) {
|
|
14039
14039
|
return a.name === r;
|
|
14040
|
-
}).length === 0),
|
|
14040
|
+
}).length === 0), xn(o, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
14041
14041
|
|
|
14042
14042
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
14043
14043
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
@@ -14109,13 +14109,13 @@ function dN(e, t) {
|
|
|
14109
14109
|
state: b,
|
|
14110
14110
|
plugins: E,
|
|
14111
14111
|
// methods
|
|
14112
|
-
clearDelayTimeouts:
|
|
14112
|
+
clearDelayTimeouts: G,
|
|
14113
14113
|
setProps: w,
|
|
14114
14114
|
setContent: P,
|
|
14115
|
-
show:
|
|
14115
|
+
show: j,
|
|
14116
14116
|
hide: de,
|
|
14117
14117
|
hideWithInteractivity: ke,
|
|
14118
|
-
enable:
|
|
14118
|
+
enable: st,
|
|
14119
14119
|
disable: Vt,
|
|
14120
14120
|
unmount: Mt,
|
|
14121
14121
|
destroy: Li
|
|
@@ -14130,14 +14130,14 @@ function dN(e, t) {
|
|
|
14130
14130
|
return Ht(), $(), C(), N("onCreate", [f]), n.showOnCreate && ye(), v.addEventListener("mouseenter", function() {
|
|
14131
14131
|
f.props.interactive && f.state.isVisible && f.clearDelayTimeouts();
|
|
14132
14132
|
}), v.addEventListener("mouseleave", function() {
|
|
14133
|
-
f.props.interactive && f.props.trigger.indexOf("mouseenter") >= 0 &&
|
|
14133
|
+
f.props.interactive && f.props.trigger.indexOf("mouseenter") >= 0 && W().addEventListener("mousemove", h);
|
|
14134
14134
|
}), f;
|
|
14135
|
-
function
|
|
14135
|
+
function M() {
|
|
14136
14136
|
var I = f.props.touch;
|
|
14137
14137
|
return Array.isArray(I) ? I : [I, 0];
|
|
14138
14138
|
}
|
|
14139
|
-
function
|
|
14140
|
-
return
|
|
14139
|
+
function V() {
|
|
14140
|
+
return M()[0] === "hold";
|
|
14141
14141
|
}
|
|
14142
14142
|
function B() {
|
|
14143
14143
|
var I;
|
|
@@ -14146,7 +14146,7 @@ function dN(e, t) {
|
|
|
14146
14146
|
function Y() {
|
|
14147
14147
|
return _ || e;
|
|
14148
14148
|
}
|
|
14149
|
-
function
|
|
14149
|
+
function W() {
|
|
14150
14150
|
var I = Y().parentNode;
|
|
14151
14151
|
return I ? WO(I) : document;
|
|
14152
14152
|
}
|
|
@@ -14191,7 +14191,7 @@ function dN(e, t) {
|
|
|
14191
14191
|
}
|
|
14192
14192
|
}
|
|
14193
14193
|
function X() {
|
|
14194
|
-
|
|
14194
|
+
W().removeEventListener("mousemove", h), ua = ua.filter(function(I) {
|
|
14195
14195
|
return I !== h;
|
|
14196
14196
|
});
|
|
14197
14197
|
}
|
|
@@ -14208,7 +14208,7 @@ function dN(e, t) {
|
|
|
14208
14208
|
N("onClickOutside", [f, I]);
|
|
14209
14209
|
f.props.hideOnClick === !0 && (f.clearDelayTimeouts(), f.hide(), s = !0, setTimeout(function() {
|
|
14210
14210
|
s = !1;
|
|
14211
|
-
}), f.state.isMounted ||
|
|
14211
|
+
}), f.state.isMounted || q());
|
|
14212
14212
|
}
|
|
14213
14213
|
}
|
|
14214
14214
|
}
|
|
@@ -14219,11 +14219,11 @@ function dN(e, t) {
|
|
|
14219
14219
|
l = !1;
|
|
14220
14220
|
}
|
|
14221
14221
|
function me() {
|
|
14222
|
-
var I =
|
|
14222
|
+
var I = W();
|
|
14223
14223
|
I.addEventListener("mousedown", le, !0), I.addEventListener("touchend", le, fr), I.addEventListener("touchstart", Ce, fr), I.addEventListener("touchmove", Re, fr);
|
|
14224
14224
|
}
|
|
14225
|
-
function
|
|
14226
|
-
var I =
|
|
14225
|
+
function q() {
|
|
14226
|
+
var I = W();
|
|
14227
14227
|
I.removeEventListener("mousedown", le, !0), I.removeEventListener("touchend", le, fr), I.removeEventListener("touchstart", Ce, fr), I.removeEventListener("touchmove", Re, fr);
|
|
14228
14228
|
}
|
|
14229
14229
|
function Q(I, ee) {
|
|
@@ -14256,7 +14256,7 @@ function dN(e, t) {
|
|
|
14256
14256
|
});
|
|
14257
14257
|
}
|
|
14258
14258
|
function Ht() {
|
|
14259
|
-
|
|
14259
|
+
V() && (Je("touchstart", Ot, {
|
|
14260
14260
|
passive: !0
|
|
14261
14261
|
}), Je("touchend", We, {
|
|
14262
14262
|
passive: !0
|
|
@@ -14318,7 +14318,7 @@ function dN(e, t) {
|
|
|
14318
14318
|
f.props.trigger.indexOf("focusin") < 0 && I.target !== Y() || f.props.interactive && I.relatedTarget && v.contains(I.relatedTarget) || Ke(I);
|
|
14319
14319
|
}
|
|
14320
14320
|
function pt(I) {
|
|
14321
|
-
return pn.isTouch ?
|
|
14321
|
+
return pn.isTouch ? V() !== I.type.indexOf("touch") >= 0 : !1;
|
|
14322
14322
|
}
|
|
14323
14323
|
function te() {
|
|
14324
14324
|
ie();
|
|
@@ -14382,7 +14382,7 @@ function dN(e, t) {
|
|
|
14382
14382
|
}
|
|
14383
14383
|
function we() {
|
|
14384
14384
|
var I = f.props.appendTo, ee, ue = Y();
|
|
14385
|
-
f.props.interactive && I === ef || I === "parent" ? ee = ue.parentNode : ee = tf(I, [ue]), ee.contains(v) || ee.appendChild(v), f.state.isMounted = !0, te(), Yt.NODE_ENV !== "production" &&
|
|
14385
|
+
f.props.interactive && I === ef || I === "parent" ? ee = ue.parentNode : ee = tf(I, [ue]), ee.contains(v) || ee.appendChild(v), f.state.isMounted = !0, te(), Yt.NODE_ENV !== "production" && xn(f.props.interactive && I === Lt.appendTo && ue.nextElementSibling !== v, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
14386
14386
|
|
|
14387
14387
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
14388
14388
|
|
|
@@ -14395,14 +14395,14 @@ function dN(e, t) {
|
|
|
14395
14395
|
}
|
|
14396
14396
|
function ye(I) {
|
|
14397
14397
|
f.clearDelayTimeouts(), I && N("onTrigger", [f, I]), me();
|
|
14398
|
-
var ee = A(!0), ue =
|
|
14398
|
+
var ee = A(!0), ue = M(), xe = ue[0], Oe = ue[1];
|
|
14399
14399
|
pn.isTouch && xe === "hold" && Oe && (ee = Oe), ee ? r = setTimeout(function() {
|
|
14400
14400
|
f.show();
|
|
14401
14401
|
}, ee) : f.show();
|
|
14402
14402
|
}
|
|
14403
14403
|
function Ke(I) {
|
|
14404
14404
|
if (f.clearDelayTimeouts(), N("onUntrigger", [f, I]), !f.state.isVisible) {
|
|
14405
|
-
|
|
14405
|
+
q();
|
|
14406
14406
|
return;
|
|
14407
14407
|
}
|
|
14408
14408
|
if (!(f.props.trigger.indexOf("mouseenter") >= 0 && f.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(I.type) >= 0 && a)) {
|
|
@@ -14414,17 +14414,17 @@ function dN(e, t) {
|
|
|
14414
14414
|
});
|
|
14415
14415
|
}
|
|
14416
14416
|
}
|
|
14417
|
-
function
|
|
14417
|
+
function st() {
|
|
14418
14418
|
f.state.isEnabled = !0;
|
|
14419
14419
|
}
|
|
14420
14420
|
function Vt() {
|
|
14421
14421
|
f.hide(), f.state.isEnabled = !1;
|
|
14422
14422
|
}
|
|
14423
|
-
function
|
|
14423
|
+
function G() {
|
|
14424
14424
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
|
|
14425
14425
|
}
|
|
14426
14426
|
function w(I) {
|
|
14427
|
-
if (Yt.NODE_ENV !== "production" &&
|
|
14427
|
+
if (Yt.NODE_ENV !== "production" && xn(f.state.isDestroyed, Wr("setProps")), !f.state.isDestroyed) {
|
|
14428
14428
|
N("onBeforeUpdate", [f, I]), an();
|
|
14429
14429
|
var ee = f.props, ue = dm(e, Object.assign({}, ee, om(I), {
|
|
14430
14430
|
ignoreAttributes: !0
|
|
@@ -14441,8 +14441,8 @@ function dN(e, t) {
|
|
|
14441
14441
|
content: I
|
|
14442
14442
|
});
|
|
14443
14443
|
}
|
|
14444
|
-
function
|
|
14445
|
-
Yt.NODE_ENV !== "production" &&
|
|
14444
|
+
function j() {
|
|
14445
|
+
Yt.NODE_ENV !== "production" && xn(f.state.isDestroyed, Wr("show"));
|
|
14446
14446
|
var I = f.state.isVisible, ee = f.state.isDestroyed, ue = !f.state.isEnabled, xe = pn.isTouch && !f.props.touch, Oe = Ul(f.props.duration, 0, Lt.duration);
|
|
14447
14447
|
if (!(I || ee || ue || xe) && !Y().hasAttribute("disabled") && (N("onShow", [f], !1), f.props.onShow(f) !== !1)) {
|
|
14448
14448
|
if (f.state.isVisible = !0, B() && (v.style.visibility = "visible"), C(), me(), f.state.isMounted || (v.style.transition = "none"), B()) {
|
|
@@ -14464,10 +14464,10 @@ function dN(e, t) {
|
|
|
14464
14464
|
}
|
|
14465
14465
|
}
|
|
14466
14466
|
function de() {
|
|
14467
|
-
Yt.NODE_ENV !== "production" &&
|
|
14467
|
+
Yt.NODE_ENV !== "production" && xn(f.state.isDestroyed, Wr("hide"));
|
|
14468
14468
|
var I = !f.state.isVisible, ee = f.state.isDestroyed, ue = !f.state.isEnabled, xe = Ul(f.props.duration, 1, Lt.duration);
|
|
14469
14469
|
if (!(I || ee || ue) && (N("onHide", [f], !1), f.props.onHide(f) !== !1)) {
|
|
14470
|
-
if (f.state.isVisible = !1, f.state.isShown = !1, c = !1, a = !1, B() && (v.style.visibility = "hidden"), X(),
|
|
14470
|
+
if (f.state.isVisible = !1, f.state.isShown = !1, c = !1, a = !1, B() && (v.style.visibility = "hidden"), X(), q(), C(!0), B()) {
|
|
14471
14471
|
var Oe = K(), St = Oe.box, Gt = Oe.content;
|
|
14472
14472
|
f.props.animation && (Hl([St, Gt], xe), am([St, Gt], "hidden"));
|
|
14473
14473
|
}
|
|
@@ -14475,17 +14475,17 @@ function dN(e, t) {
|
|
|
14475
14475
|
}
|
|
14476
14476
|
}
|
|
14477
14477
|
function ke(I) {
|
|
14478
|
-
Yt.NODE_ENV !== "production" &&
|
|
14478
|
+
Yt.NODE_ENV !== "production" && xn(f.state.isDestroyed, Wr("hideWithInteractivity")), W().addEventListener("mousemove", h), im(ua, h), h(I);
|
|
14479
14479
|
}
|
|
14480
14480
|
function Mt() {
|
|
14481
|
-
Yt.NODE_ENV !== "production" &&
|
|
14481
|
+
Yt.NODE_ENV !== "production" && xn(f.state.isDestroyed, Wr("unmount")), f.state.isVisible && f.hide(), f.state.isMounted && (ie(), oe().forEach(function(I) {
|
|
14482
14482
|
I._tippy.unmount();
|
|
14483
14483
|
}), v.parentNode && v.parentNode.removeChild(v), Gl = Gl.filter(function(I) {
|
|
14484
14484
|
return I !== f;
|
|
14485
14485
|
}), f.state.isMounted = !1, N("onHidden", [f]));
|
|
14486
14486
|
}
|
|
14487
14487
|
function Li() {
|
|
14488
|
-
Yt.NODE_ENV !== "production" &&
|
|
14488
|
+
Yt.NODE_ENV !== "production" && xn(f.state.isDestroyed, Wr("destroy")), !f.state.isDestroyed && (f.clearDelayTimeouts(), f.unmount(), an(), delete e._tippy, f.state.isDestroyed = !0, N("onDestroy", [f]));
|
|
14489
14489
|
}
|
|
14490
14490
|
}
|
|
14491
14491
|
function Ve(e, t) {
|
|
@@ -14497,7 +14497,7 @@ function Ve(e, t) {
|
|
|
14497
14497
|
}), i = jO(e);
|
|
14498
14498
|
if (Yt.NODE_ENV !== "production") {
|
|
14499
14499
|
var o = No(r.content), a = i.length > 1;
|
|
14500
|
-
|
|
14500
|
+
xn(o && a, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
14501
14501
|
|
|
14502
14502
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
14503
14503
|
|
|
@@ -14993,33 +14993,33 @@ class ts extends il {
|
|
|
14993
14993
|
let f = !1, y = !1;
|
|
14994
14994
|
const v = n.count !== void 0 && !_e(n.count), T = ts.hasDefaultValue(n), R = v ? this.pluralResolver.getSuffix(c, n.count, n) : "", O = n.ordinal && v ? this.pluralResolver.getSuffix(c, n.count, {
|
|
14995
14995
|
ordinal: !1
|
|
14996
|
-
}) : "",
|
|
14997
|
-
!this.isValidLookup(p) && T && (f = !0, p =
|
|
14998
|
-
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && y ? void 0 : p, Y = T &&
|
|
14996
|
+
}) : "", M = v && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = M && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${R}`] || n[`defaultValue${O}`] || n.defaultValue;
|
|
14997
|
+
!this.isValidLookup(p) && T && (f = !0, p = V), this.isValidLookup(p) || (y = !0, p = a);
|
|
14998
|
+
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && y ? void 0 : p, Y = T && V !== p && this.options.updateMissing;
|
|
14999
14999
|
if (y || f || Y) {
|
|
15000
|
-
if (this.logger.log(Y ? "updateKey" : "missingKey", c, l, a, Y ?
|
|
15000
|
+
if (this.logger.log(Y ? "updateKey" : "missingKey", c, l, a, Y ? V : p), o) {
|
|
15001
15001
|
const C = this.resolve(a, {
|
|
15002
15002
|
...n,
|
|
15003
15003
|
keySeparator: !1
|
|
15004
15004
|
});
|
|
15005
15005
|
C && C.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
15006
15006
|
}
|
|
15007
|
-
let
|
|
15007
|
+
let W = [];
|
|
15008
15008
|
const K = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
15009
15009
|
if (this.options.saveMissingTo === "fallback" && K && K[0])
|
|
15010
15010
|
for (let C = 0; C < K.length; C++)
|
|
15011
|
-
|
|
15012
|
-
else this.options.saveMissingTo === "all" ?
|
|
15011
|
+
W.push(K[C]);
|
|
15012
|
+
else this.options.saveMissingTo === "all" ? W = this.languageUtils.toResolveHierarchy(n.lng || this.language) : W.push(n.lng || this.language);
|
|
15013
15013
|
const A = (C, N, L) => {
|
|
15014
15014
|
const $ = T && L !== p ? L : B;
|
|
15015
15015
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l, N, $, Y, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(C, l, N, $, Y, n), this.emit("missingKey", C, l, N, p);
|
|
15016
15016
|
};
|
|
15017
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && v ?
|
|
15017
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && v ? W.forEach((C) => {
|
|
15018
15018
|
const N = this.pluralResolver.getSuffixes(C, n);
|
|
15019
|
-
|
|
15020
|
-
A([C], a + L, n[`defaultValue${L}`] ||
|
|
15019
|
+
M && n[`defaultValue${this.options.pluralSeparator}zero`] && N.indexOf(`${this.options.pluralSeparator}zero`) < 0 && N.push(`${this.options.pluralSeparator}zero`), N.forEach((L) => {
|
|
15020
|
+
A([C], a + L, n[`defaultValue${L}`] || V);
|
|
15021
15021
|
});
|
|
15022
|
-
}) : A(
|
|
15022
|
+
}) : A(W, a, V));
|
|
15023
15023
|
}
|
|
15024
15024
|
p = this.extendTranslation(p, t, n, u, r), y && p === a && this.options.appendNamespaceToMissingKey && (p = `${l}:${a}`), (y || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${a}` : a, f ? p : void 0) : p = this.options.parseMissingKeyHandler(p));
|
|
15025
15025
|
}
|
|
@@ -17840,13 +17840,13 @@ function al() {
|
|
|
17840
17840
|
_process: function(E) {
|
|
17841
17841
|
var b, f = this._data, y = f.words, v = f.sigBytes, T = this.blockSize, R = T * 4, O = v / R;
|
|
17842
17842
|
E ? O = r.ceil(O) : O = r.max((O | 0) - this._minBufferSize, 0);
|
|
17843
|
-
var
|
|
17844
|
-
if (
|
|
17845
|
-
for (var B = 0; B <
|
|
17843
|
+
var M = O * T, V = r.min(M * 4, v);
|
|
17844
|
+
if (M) {
|
|
17845
|
+
for (var B = 0; B < M; B += T)
|
|
17846
17846
|
this._doProcessBlock(y, B);
|
|
17847
|
-
b = y.splice(0,
|
|
17847
|
+
b = y.splice(0, M), f.sigBytes -= V;
|
|
17848
17848
|
}
|
|
17849
|
-
return new u.init(b,
|
|
17849
|
+
return new u.init(b, V);
|
|
17850
17850
|
},
|
|
17851
17851
|
/**
|
|
17852
17852
|
* Creates a copy of this object.
|
|
@@ -17999,10 +17999,10 @@ function LR() {
|
|
|
17999
17999
|
if (R < 16)
|
|
18000
18000
|
u[R] = m[h + R] | 0;
|
|
18001
18001
|
else {
|
|
18002
|
-
var O = u[R - 15],
|
|
18003
|
-
u[R] =
|
|
18002
|
+
var O = u[R - 15], M = (O << 25 | O >>> 7) ^ (O << 14 | O >>> 18) ^ O >>> 3, V = u[R - 2], B = (V << 15 | V >>> 17) ^ (V << 13 | V >>> 19) ^ V >>> 10;
|
|
18003
|
+
u[R] = M + u[R - 7] + B + u[R - 16];
|
|
18004
18004
|
}
|
|
18005
|
-
var Y = f & y ^ ~f & v,
|
|
18005
|
+
var Y = f & y ^ ~f & v, W = g & S ^ g & E ^ S & E, K = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), A = (f << 26 | f >>> 6) ^ (f << 21 | f >>> 11) ^ (f << 7 | f >>> 25), C = T + A + Y + d[R] + u[R], N = K + W;
|
|
18006
18006
|
T = v, v = y, y = f, f = b + C | 0, b = E, E = S, S = g, g = C + N | 0;
|
|
18007
18007
|
}
|
|
18008
18008
|
_[0] = _[0] + g | 0, _[1] = _[1] + S | 0, _[2] = _[2] + E | 0, _[3] = _[3] + b | 0, _[4] = _[4] + f | 0, _[5] = _[5] + y | 0, _[6] = _[6] + v | 0, _[7] = _[7] + T | 0;
|
|
@@ -19678,9 +19678,9 @@ function NA(e, t) {
|
|
|
19678
19678
|
let { $from: n } = e.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);
|
|
19679
19679
|
if (!r)
|
|
19680
19680
|
return !1;
|
|
19681
|
-
let i =
|
|
19681
|
+
let i = k.empty;
|
|
19682
19682
|
for (let a = r.length - 1; a >= 0; a--)
|
|
19683
|
-
i =
|
|
19683
|
+
i = k.from(r[a].createAndFill(null, i));
|
|
19684
19684
|
let o = e.state.tr.replace(n.pos, n.pos, new z(i, 0, 0));
|
|
19685
19685
|
return o.setSelection(J.near(o.doc.resolve(n.pos + 1))), e.dispatch(o), !1;
|
|
19686
19686
|
}
|
|
@@ -19705,7 +19705,7 @@ const AA = Ae.create({
|
|
|
19705
19705
|
storage: e.storage
|
|
19706
19706
|
};
|
|
19707
19707
|
return {
|
|
19708
|
-
allowGapCursor: (t =
|
|
19708
|
+
allowGapCursor: (t = Se(Z(e, "allowGapCursor", n))) !== null && t !== void 0 ? t : null
|
|
19709
19709
|
};
|
|
19710
19710
|
}
|
|
19711
19711
|
}), wA = Ge.create({
|
|
@@ -19808,36 +19808,36 @@ const AA = Ae.create({
|
|
|
19808
19808
|
}));
|
|
19809
19809
|
}
|
|
19810
19810
|
});
|
|
19811
|
-
var rs = 200,
|
|
19811
|
+
var rs = 200, ot = function() {
|
|
19812
19812
|
};
|
|
19813
|
-
|
|
19814
|
-
return e.length ? (e =
|
|
19813
|
+
ot.prototype.append = function(e) {
|
|
19814
|
+
return e.length ? (e = ot.from(e), !this.length && e || e.length < rs && this.leafAppend(e) || this.length < rs && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
19815
19815
|
};
|
|
19816
|
-
|
|
19817
|
-
return e.length ?
|
|
19816
|
+
ot.prototype.prepend = function(e) {
|
|
19817
|
+
return e.length ? ot.from(e).append(this) : this;
|
|
19818
19818
|
};
|
|
19819
|
-
|
|
19819
|
+
ot.prototype.appendInner = function(e) {
|
|
19820
19820
|
return new IA(this, e);
|
|
19821
19821
|
};
|
|
19822
|
-
|
|
19823
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ?
|
|
19822
|
+
ot.prototype.slice = function(e, t) {
|
|
19823
|
+
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? ot.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
|
|
19824
19824
|
};
|
|
19825
|
-
|
|
19825
|
+
ot.prototype.get = function(e) {
|
|
19826
19826
|
if (!(e < 0 || e >= this.length))
|
|
19827
19827
|
return this.getInner(e);
|
|
19828
19828
|
};
|
|
19829
|
-
|
|
19829
|
+
ot.prototype.forEach = function(e, t, n) {
|
|
19830
19830
|
t === void 0 && (t = 0), n === void 0 && (n = this.length), t <= n ? this.forEachInner(e, t, n, 0) : this.forEachInvertedInner(e, t, n, 0);
|
|
19831
19831
|
};
|
|
19832
|
-
|
|
19832
|
+
ot.prototype.map = function(e, t, n) {
|
|
19833
19833
|
t === void 0 && (t = 0), n === void 0 && (n = this.length);
|
|
19834
19834
|
var r = [];
|
|
19835
19835
|
return this.forEach(function(i, o) {
|
|
19836
19836
|
return r.push(e(i, o));
|
|
19837
19837
|
}, t, n), r;
|
|
19838
19838
|
};
|
|
19839
|
-
|
|
19840
|
-
return e instanceof
|
|
19839
|
+
ot.from = function(e) {
|
|
19840
|
+
return e instanceof ot ? e : e && e.length ? new Cf(e) : ot.empty;
|
|
19841
19841
|
};
|
|
19842
19842
|
var Cf = /* @__PURE__ */ (function(e) {
|
|
19843
19843
|
function t(r) {
|
|
@@ -19870,8 +19870,8 @@ var Cf = /* @__PURE__ */ (function(e) {
|
|
|
19870
19870
|
}, n.depth.get = function() {
|
|
19871
19871
|
return 0;
|
|
19872
19872
|
}, Object.defineProperties(t.prototype, n), t;
|
|
19873
|
-
})(
|
|
19874
|
-
|
|
19873
|
+
})(ot);
|
|
19874
|
+
ot.empty = new Cf([]);
|
|
19875
19875
|
var IA = /* @__PURE__ */ (function(e) {
|
|
19876
19876
|
function t(n, r) {
|
|
19877
19877
|
e.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
|
|
@@ -19904,7 +19904,7 @@ var IA = /* @__PURE__ */ (function(e) {
|
|
|
19904
19904
|
}, t.prototype.appendInner = function(n) {
|
|
19905
19905
|
return this.left.depth >= Math.max(this.right.depth, n.depth) + 1 ? new t(this.left, new t(this.right, n)) : new t(this, n);
|
|
19906
19906
|
}, t;
|
|
19907
|
-
})(
|
|
19907
|
+
})(ot);
|
|
19908
19908
|
const xA = 500;
|
|
19909
19909
|
class en {
|
|
19910
19910
|
constructor(t, n) {
|
|
@@ -20015,10 +20015,10 @@ class en {
|
|
|
20015
20015
|
(p = i.length && i[m].merge(u)) ? i[m] = p : i.push(u);
|
|
20016
20016
|
}
|
|
20017
20017
|
} else a.map && r--;
|
|
20018
|
-
}, this.items.length, 0), new en(
|
|
20018
|
+
}, this.items.length, 0), new en(ot.from(i.reverse()), o);
|
|
20019
20019
|
}
|
|
20020
20020
|
}
|
|
20021
|
-
en.empty = new en(
|
|
20021
|
+
en.empty = new en(ot.empty, 0);
|
|
20022
20022
|
function DA(e, t) {
|
|
20023
20023
|
let n;
|
|
20024
20024
|
return e.forEach((r, i) => {
|
|
@@ -21600,7 +21600,7 @@ function w0(e, t, n) {
|
|
|
21600
21600
|
return !1;
|
|
21601
21601
|
return !0;
|
|
21602
21602
|
}
|
|
21603
|
-
var Me = class
|
|
21603
|
+
var Me = class An extends se {
|
|
21604
21604
|
// A table selection is identified by its anchor and head cells. The
|
|
21605
21605
|
// positions given to this constructor should point _before_ two
|
|
21606
21606
|
// cells in the same table. They may be the same, to select a single
|
|
@@ -21627,7 +21627,7 @@ var Me = class Rn extends se {
|
|
|
21627
21627
|
const r = t.resolve(n.map(this.$anchorCell.pos)), i = t.resolve(n.map(this.$headCell.pos));
|
|
21628
21628
|
if (Zc(r) && Zc(i) && eu(r, i)) {
|
|
21629
21629
|
const o = this.$anchorCell.node(-1) != r.node(-1);
|
|
21630
|
-
return o && this.isRowSelection() ?
|
|
21630
|
+
return o && this.isRowSelection() ? An.rowSelection(r, i) : o && this.isColSelection() ? An.colSelection(r, i) : new An(r, i);
|
|
21631
21631
|
}
|
|
21632
21632
|
return J.between(r, i);
|
|
21633
21633
|
}
|
|
@@ -21672,10 +21672,10 @@ var Me = class Rn extends se {
|
|
|
21672
21672
|
}
|
|
21673
21673
|
c.push(h);
|
|
21674
21674
|
}
|
|
21675
|
-
a.push(t.child(l).copy(
|
|
21675
|
+
a.push(t.child(l).copy(k.from(c)));
|
|
21676
21676
|
}
|
|
21677
21677
|
const s = this.isColSelection() && this.isRowSelection() ? t : a;
|
|
21678
|
-
return new z(
|
|
21678
|
+
return new z(k.from(s), 1, 1);
|
|
21679
21679
|
}
|
|
21680
21680
|
replace(t, n = z.empty) {
|
|
21681
21681
|
const r = t.steps.length, i = this.ranges;
|
|
@@ -21694,7 +21694,7 @@ var Me = class Rn extends se {
|
|
|
21694
21694
|
o && t.setSelection(o);
|
|
21695
21695
|
}
|
|
21696
21696
|
replaceWith(t, n) {
|
|
21697
|
-
this.replace(t, new z(
|
|
21697
|
+
this.replace(t, new z(k.from(n), 0, 0));
|
|
21698
21698
|
}
|
|
21699
21699
|
forEachCell(t) {
|
|
21700
21700
|
const n = this.$anchorCell.node(-1), r = ze.get(n), i = this.$anchorCell.start(-1), o = r.cellsInRect(
|
|
@@ -21722,7 +21722,7 @@ var Me = class Rn extends se {
|
|
|
21722
21722
|
o + i.map[i.width * (i.height - 1) + s.right - 1]
|
|
21723
21723
|
))) : (s.top > 0 && (n = l.resolve(o + i.map[s.left])), a.bottom < i.height && (t = l.resolve(
|
|
21724
21724
|
o + i.map[i.width * (i.height - 1) + a.right - 1]
|
|
21725
|
-
))), new
|
|
21725
|
+
))), new An(t, n);
|
|
21726
21726
|
}
|
|
21727
21727
|
// True if this selection goes all the way from the left to the
|
|
21728
21728
|
// right of the table.
|
|
@@ -21733,7 +21733,7 @@ var Me = class Rn extends se {
|
|
|
21733
21733
|
return Math.max(a, s) == n.width;
|
|
21734
21734
|
}
|
|
21735
21735
|
eq(t) {
|
|
21736
|
-
return t instanceof
|
|
21736
|
+
return t instanceof An && t.$anchorCell.pos == this.$anchorCell.pos && t.$headCell.pos == this.$headCell.pos;
|
|
21737
21737
|
}
|
|
21738
21738
|
// Returns the smallest row selection that covers the given anchor
|
|
21739
21739
|
// and head cell.
|
|
@@ -21745,7 +21745,7 @@ var Me = class Rn extends se {
|
|
|
21745
21745
|
o + i.map[i.width * (s.top + 1) - 1]
|
|
21746
21746
|
))) : (s.left > 0 && (n = l.resolve(o + i.map[s.top * i.width])), a.right < i.width && (t = l.resolve(
|
|
21747
21747
|
o + i.map[i.width * (a.top + 1) - 1]
|
|
21748
|
-
))), new
|
|
21748
|
+
))), new An(t, n);
|
|
21749
21749
|
}
|
|
21750
21750
|
toJSON() {
|
|
21751
21751
|
return {
|
|
@@ -21755,10 +21755,10 @@ var Me = class Rn extends se {
|
|
|
21755
21755
|
};
|
|
21756
21756
|
}
|
|
21757
21757
|
static fromJSON(t, n) {
|
|
21758
|
-
return new
|
|
21758
|
+
return new An(t.resolve(n.anchor), t.resolve(n.head));
|
|
21759
21759
|
}
|
|
21760
21760
|
static create(t, n, r = n) {
|
|
21761
|
-
return new
|
|
21761
|
+
return new An(t.resolve(n), t.resolve(r));
|
|
21762
21762
|
}
|
|
21763
21763
|
getBookmark() {
|
|
21764
21764
|
return new I0(this.$anchorCell.pos, this.$headCell.pos);
|
|
@@ -22093,7 +22093,7 @@ function Hm(e, t) {
|
|
|
22093
22093
|
if (q0(i, r)) return !1;
|
|
22094
22094
|
if (t) {
|
|
22095
22095
|
const o = e.tr, a = {};
|
|
22096
|
-
let s =
|
|
22096
|
+
let s = k.empty, l, c;
|
|
22097
22097
|
for (let d = r.top; d < r.bottom; d++)
|
|
22098
22098
|
for (let u = r.left; u < r.right; u++) {
|
|
22099
22099
|
const p = i.map[d * i.width + u], m = r.table.nodeAt(p);
|
|
@@ -22383,11 +22383,11 @@ function ew(e, t) {
|
|
|
22383
22383
|
let r = 0;
|
|
22384
22384
|
for (let i = 0; i < n.length; i++) r = Math.max(r, n[i]);
|
|
22385
22385
|
for (let i = 0; i < n.length; i++)
|
|
22386
|
-
if (i >= t.length && t.push(
|
|
22386
|
+
if (i >= t.length && t.push(k.empty), n[i] < r) {
|
|
22387
22387
|
const o = gt(e).cell.createAndFill(), a = [];
|
|
22388
22388
|
for (let s = n[i]; s < r; s++)
|
|
22389
22389
|
a.push(o);
|
|
22390
|
-
t[i] = t[i].append(
|
|
22390
|
+
t[i] = t[i].append(k.from(a));
|
|
22391
22391
|
}
|
|
22392
22392
|
return { height: t.length, width: r, rows: t };
|
|
22393
22393
|
}
|
|
@@ -22413,7 +22413,7 @@ function tw({ width: e, height: t, rows: n }, r, i) {
|
|
|
22413
22413
|
for (let m = 1; m < p.attrs.rowspan; m++)
|
|
22414
22414
|
o[s + m] = (o[s + m] || 0) + p.attrs.colspan;
|
|
22415
22415
|
}
|
|
22416
|
-
a.push(
|
|
22416
|
+
a.push(k.from(c));
|
|
22417
22417
|
}
|
|
22418
22418
|
n = a, e = r;
|
|
22419
22419
|
}
|
|
@@ -22431,7 +22431,7 @@ function tw({ width: e, height: t, rows: n }, r, i) {
|
|
|
22431
22431
|
u.content
|
|
22432
22432
|
)), l.push(u);
|
|
22433
22433
|
}
|
|
22434
|
-
o.push(
|
|
22434
|
+
o.push(k.from(l));
|
|
22435
22435
|
}
|
|
22436
22436
|
n = o, t = i;
|
|
22437
22437
|
}
|
|
@@ -22458,7 +22458,7 @@ function nw(e, t, n, r, i, o, a) {
|
|
|
22458
22458
|
g ? d || (d = l.header_cell.createAndFill()) : c || (c = l.cell.createAndFill())
|
|
22459
22459
|
);
|
|
22460
22460
|
}
|
|
22461
|
-
const p = l.row.create(null,
|
|
22461
|
+
const p = l.row.create(null, k.from(u)), m = [];
|
|
22462
22462
|
for (let h = t.height; h < o; h++) m.push(p);
|
|
22463
22463
|
e.insert(e.mapping.slice(a).map(r + n.nodeSize - 2), m);
|
|
22464
22464
|
}
|
|
@@ -22616,7 +22616,7 @@ function ow(e, t, n) {
|
|
|
22616
22616
|
width: 1,
|
|
22617
22617
|
height: 1,
|
|
22618
22618
|
rows: [
|
|
22619
|
-
|
|
22619
|
+
k.from(
|
|
22620
22620
|
Xc(gt(e.state.schema).cell, n)
|
|
22621
22621
|
)
|
|
22622
22622
|
]
|
|
@@ -23209,7 +23209,7 @@ const fa = ({ editor: e }) => {
|
|
|
23209
23209
|
storage: e.storage
|
|
23210
23210
|
};
|
|
23211
23211
|
return {
|
|
23212
|
-
tableRole:
|
|
23212
|
+
tableRole: Se(Z(e, "tableRole", t))
|
|
23213
23213
|
};
|
|
23214
23214
|
}
|
|
23215
23215
|
}), Ow = Ge.create({
|
|
@@ -23566,10 +23566,10 @@ Rt.prototype = {
|
|
|
23566
23566
|
return i.j[e] = a, a;
|
|
23567
23567
|
}
|
|
23568
23568
|
};
|
|
23569
|
-
const be = (e, t, n, r, i) => e.ta(t, n, r, i), $e = (e, t, n, r, i) => e.tr(t, n, r, i), Jm = (e, t, n, r, i) => e.ts(t, n, r, i), F = (e, t, n, r, i) => e.tt(t, n, r, i),
|
|
23569
|
+
const be = (e, t, n, r, i) => e.ta(t, n, r, i), $e = (e, t, n, r, i) => e.tr(t, n, r, i), Jm = (e, t, n, r, i) => e.ts(t, n, r, i), F = (e, t, n, r, i) => e.tt(t, n, r, i), wn = "WORD", od = "UWORD", Uf = "ASCIINUMERICAL", Hf = "ALPHANUMERICAL", Io = "LOCALHOST", ad = "TLD", sd = "UTLD", Fa = "SCHEME", ri = "SLASH_SCHEME", tu = "NUM", ld = "WS", nu = "NL", co = "OPENBRACE", uo = "CLOSEBRACE", is = "OPENBRACKET", as = "CLOSEBRACKET", ss = "OPENPAREN", ls = "CLOSEPAREN", cs = "OPENANGLEBRACKET", ds = "CLOSEANGLEBRACKET", us = "FULLWIDTHLEFTPAREN", ps = "FULLWIDTHRIGHTPAREN", ms = "LEFTCORNERBRACKET", hs = "RIGHTCORNERBRACKET", _s = "LEFTWHITECORNERBRACKET", gs = "RIGHTWHITECORNERBRACKET", fs = "FULLWIDTHLESSTHAN", Es = "FULLWIDTHGREATERTHAN", Ss = "AMPERSAND", ru = "APOSTROPHE", bs = "ASTERISK", Yn = "AT", vs = "BACKSLASH", ys = "BACKTICK", Cs = "CARET", Kn = "COLON", iu = "COMMA", Ts = "DOLLAR", cn = "DOT", Os = "EQUALS", ou = "EXCLAMATION", $t = "HYPHEN", po = "PERCENT", Ns = "PIPE", Rs = "PLUS", As = "POUND", mo = "QUERY", au = "QUOTE", Vf = "FULLWIDTHMIDDLEDOT", su = "SEMI", dn = "SLASH", ho = "TILDE", ws = "UNDERSCORE", Gf = "EMOJI", Is = "SYM";
|
|
23570
23570
|
var zf = /* @__PURE__ */ Object.freeze({
|
|
23571
23571
|
__proto__: null,
|
|
23572
|
-
WORD:
|
|
23572
|
+
WORD: wn,
|
|
23573
23573
|
UWORD: od,
|
|
23574
23574
|
ASCIINUMERICAL: Uf,
|
|
23575
23575
|
ALPHANUMERICAL: Hf,
|
|
@@ -23641,7 +23641,7 @@ function Uw(e = []) {
|
|
|
23641
23641
|
[lo]: !0
|
|
23642
23642
|
}), o = $e(r, Gi, Hf, {
|
|
23643
23643
|
[Qi]: !0
|
|
23644
|
-
}), a = $e(n, On,
|
|
23644
|
+
}), a = $e(n, On, wn, {
|
|
23645
23645
|
[nd]: !0
|
|
23646
23646
|
});
|
|
23647
23647
|
$e(a, Nn, i), $e(a, On, a), $e(i, Nn, i), $e(i, On, i);
|
|
@@ -23665,16 +23665,16 @@ function Uw(e = []) {
|
|
|
23665
23665
|
F(p, "#"), $e(p, Ql, u);
|
|
23666
23666
|
const m = [[On, a], [Nn, i]], h = [[On, null], [Gi, s], [Nn, o]];
|
|
23667
23667
|
for (let _ = 0; _ < Ea.length; _++)
|
|
23668
|
-
|
|
23668
|
+
Un(n, Ea[_], ad, wn, m);
|
|
23669
23669
|
for (let _ = 0; _ < Sa.length; _++)
|
|
23670
|
-
|
|
23670
|
+
Un(n, Sa[_], sd, od, h);
|
|
23671
23671
|
yr(ad, {
|
|
23672
23672
|
tld: !0,
|
|
23673
23673
|
ascii: !0
|
|
23674
23674
|
}, t), yr(sd, {
|
|
23675
23675
|
utld: !0,
|
|
23676
23676
|
alpha: !0
|
|
23677
|
-
}, t),
|
|
23677
|
+
}, t), Un(n, "file", Fa, wn, m), Un(n, "mailto", Fa, wn, m), Un(n, "http", ri, wn, m), Un(n, "https", ri, wn, m), Un(n, "ftp", ri, wn, m), Un(n, "ftps", ri, wn, m), yr(Fa, {
|
|
23678
23678
|
scheme: !0,
|
|
23679
23679
|
ascii: !0
|
|
23680
23680
|
}, t), yr(ri, {
|
|
@@ -23727,7 +23727,7 @@ function Hw(e) {
|
|
|
23727
23727
|
}
|
|
23728
23728
|
return t;
|
|
23729
23729
|
}
|
|
23730
|
-
function
|
|
23730
|
+
function Un(e, t, n, r, i) {
|
|
23731
23731
|
let o;
|
|
23732
23732
|
const a = t.length;
|
|
23733
23733
|
for (let s = 0; s < a - 1; s++) {
|
|
@@ -24014,9 +24014,9 @@ function Gw({
|
|
|
24014
24014
|
be(b, e.numeric, f);
|
|
24015
24015
|
const y = zt(ba), v = zt();
|
|
24016
24016
|
be(y, t, y), be(y, n, v), be(v, t, y), be(v, n, v), F(E, dn, y), F(f, dn, y);
|
|
24017
|
-
const T = F(s, Kn), R = F(l, Kn), O = F(R, dn),
|
|
24018
|
-
be(s, e.domain, a), F(s, cn, S), F(s, $t, g), be(l, e.domain, a), F(l, cn, S), F(l, $t, g), be(T, e.domain, y), F(T, dn, y), F(T, mo, y), be(
|
|
24019
|
-
const
|
|
24017
|
+
const T = F(s, Kn), R = F(l, Kn), O = F(R, dn), M = F(O, dn);
|
|
24018
|
+
be(s, e.domain, a), F(s, cn, S), F(s, $t, g), be(l, e.domain, a), F(l, cn, S), F(l, $t, g), be(T, e.domain, y), F(T, dn, y), F(T, mo, y), be(M, e.domain, y), be(M, t, y), F(M, dn, y);
|
|
24019
|
+
const V = [
|
|
24020
24020
|
[co, uo],
|
|
24021
24021
|
// {}
|
|
24022
24022
|
[is, as],
|
|
@@ -24034,13 +24034,13 @@ function Gw({
|
|
|
24034
24034
|
[fs, Es]
|
|
24035
24035
|
// <>
|
|
24036
24036
|
];
|
|
24037
|
-
for (let B = 0; B <
|
|
24038
|
-
const [Y,
|
|
24039
|
-
F(v, Y, K), F(K,
|
|
24037
|
+
for (let B = 0; B < V.length; B++) {
|
|
24038
|
+
const [Y, W] = V[B], K = F(y, Y);
|
|
24039
|
+
F(v, Y, K), F(K, W, y);
|
|
24040
24040
|
const A = zt(ba);
|
|
24041
24041
|
be(K, t, A);
|
|
24042
24042
|
const C = zt();
|
|
24043
|
-
be(K, n), be(A, t, A), be(A, n, C), be(C, t, A), be(C, n, C), F(A,
|
|
24043
|
+
be(K, n), be(A, t, A), be(A, n, C), be(C, t, A), be(C, n, C), F(A, W, y), F(C, W, y);
|
|
24044
24044
|
}
|
|
24045
24045
|
return F(i, Io, E), F(i, nu, Vw), {
|
|
24046
24046
|
start: i,
|
|
@@ -25297,23 +25297,23 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25297
25297
|
}
|
|
25298
25298
|
let w = 0;
|
|
25299
25299
|
ie.keywordPatternRe.lastIndex = 0;
|
|
25300
|
-
let P = ie.keywordPatternRe.exec(ye),
|
|
25300
|
+
let P = ie.keywordPatternRe.exec(ye), j = "";
|
|
25301
25301
|
for (; P; ) {
|
|
25302
|
-
|
|
25302
|
+
j += ye.substring(w, P.index);
|
|
25303
25303
|
const de = he.case_insensitive ? P[0].toLowerCase() : P[0], ke = le(ie, de);
|
|
25304
25304
|
if (ke) {
|
|
25305
25305
|
const [Mt, Li] = ke;
|
|
25306
|
-
if (oe.addText(
|
|
25307
|
-
|
|
25306
|
+
if (oe.addText(j), j = "", X[de] = (X[de] || 0) + 1, X[de] <= ex && (Ke += Li), Mt.startsWith("_"))
|
|
25307
|
+
j += P[0];
|
|
25308
25308
|
else {
|
|
25309
25309
|
const I = he.classNameAliases[Mt] || Mt;
|
|
25310
|
-
|
|
25310
|
+
q(P[0], I);
|
|
25311
25311
|
}
|
|
25312
25312
|
} else
|
|
25313
|
-
|
|
25313
|
+
j += P[0];
|
|
25314
25314
|
w = ie.keywordPatternRe.lastIndex, P = ie.keywordPatternRe.exec(ye);
|
|
25315
25315
|
}
|
|
25316
|
-
|
|
25316
|
+
j += ye.substring(w), oe.addText(j);
|
|
25317
25317
|
}
|
|
25318
25318
|
function Ce() {
|
|
25319
25319
|
if (ye === "") return;
|
|
@@ -25332,26 +25332,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25332
25332
|
function me() {
|
|
25333
25333
|
ie.subLanguage != null ? Ce() : Re(), ye = "";
|
|
25334
25334
|
}
|
|
25335
|
-
function
|
|
25335
|
+
function q(w, P) {
|
|
25336
25336
|
w !== "" && (oe.startScope(P), oe.addText(w), oe.endScope());
|
|
25337
25337
|
}
|
|
25338
25338
|
function Q(w, P) {
|
|
25339
|
-
let
|
|
25339
|
+
let j = 1;
|
|
25340
25340
|
const de = P.length - 1;
|
|
25341
|
-
for (;
|
|
25342
|
-
if (!w._emit[
|
|
25343
|
-
|
|
25341
|
+
for (; j <= de; ) {
|
|
25342
|
+
if (!w._emit[j]) {
|
|
25343
|
+
j++;
|
|
25344
25344
|
continue;
|
|
25345
25345
|
}
|
|
25346
|
-
const ke = he.classNameAliases[w[
|
|
25347
|
-
ke ?
|
|
25346
|
+
const ke = he.classNameAliases[w[j]] || w[j], Mt = P[j];
|
|
25347
|
+
ke ? q(Mt, ke) : (ye = Mt, Re(), ye = ""), j++;
|
|
25348
25348
|
}
|
|
25349
25349
|
}
|
|
25350
25350
|
function x(w, P) {
|
|
25351
|
-
return w.scope && typeof w.scope == "string" && oe.openNode(he.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (
|
|
25351
|
+
return w.scope && typeof w.scope == "string" && oe.openNode(he.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (q(ye, he.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), ye = "") : w.beginScope._multi && (Q(w.beginScope, P), ye = "")), ie = Object.create(w, { parent: { value: ie } }), ie;
|
|
25352
25352
|
}
|
|
25353
|
-
function ge(w, P,
|
|
25354
|
-
let de = gI(w.endRe,
|
|
25353
|
+
function ge(w, P, j) {
|
|
25354
|
+
let de = gI(w.endRe, j);
|
|
25355
25355
|
if (de) {
|
|
25356
25356
|
if (w["on:end"]) {
|
|
25357
25357
|
const ke = new ah(w);
|
|
@@ -25364,24 +25364,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25364
25364
|
}
|
|
25365
25365
|
}
|
|
25366
25366
|
if (w.endsWithParent)
|
|
25367
|
-
return ge(w.parent, P,
|
|
25367
|
+
return ge(w.parent, P, j);
|
|
25368
25368
|
}
|
|
25369
25369
|
function Je(w) {
|
|
25370
|
-
return ie.matcher.regexIndex === 0 ? (ye += w[0], 1) : (
|
|
25370
|
+
return ie.matcher.regexIndex === 0 ? (ye += w[0], 1) : (G = !0, 0);
|
|
25371
25371
|
}
|
|
25372
25372
|
function Ht(w) {
|
|
25373
|
-
const P = w[0],
|
|
25373
|
+
const P = w[0], j = w.rule, de = new ah(j), ke = [j.__beforeBegin, j["on:begin"]];
|
|
25374
25374
|
for (const Mt of ke)
|
|
25375
25375
|
if (Mt && (Mt(w, de), de.isMatchIgnored))
|
|
25376
25376
|
return Je(P);
|
|
25377
|
-
return
|
|
25377
|
+
return j.skip ? ye += P : (j.excludeBegin && (ye += P), me(), !j.returnBegin && !j.excludeBegin && (ye = P)), x(j, w), j.returnBegin ? 0 : P.length;
|
|
25378
25378
|
}
|
|
25379
25379
|
function an(w) {
|
|
25380
|
-
const P = w[0],
|
|
25380
|
+
const P = w[0], j = N.substring(w.index), de = ge(ie, w, j);
|
|
25381
25381
|
if (!de)
|
|
25382
25382
|
return ph;
|
|
25383
25383
|
const ke = ie;
|
|
25384
|
-
ie.endScope && ie.endScope._wrap ? (me(),
|
|
25384
|
+
ie.endScope && ie.endScope._wrap ? (me(), q(P, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (me(), Q(ie.endScope, w)) : ke.skip ? ye += P : (ke.returnEnd || ke.excludeEnd || (ye += P), me(), ke.excludeEnd && (ye = P));
|
|
25385
25385
|
do
|
|
25386
25386
|
ie.scope && oe.closeNode(), !ie.skip && !ie.subLanguage && (Ke += ie.relevance), ie = ie.parent;
|
|
25387
25387
|
while (ie !== de.parent);
|
|
@@ -25395,10 +25395,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25395
25395
|
}
|
|
25396
25396
|
let Nt = {};
|
|
25397
25397
|
function We(w, P) {
|
|
25398
|
-
const
|
|
25399
|
-
if (ye += w,
|
|
25398
|
+
const j = P && P[0];
|
|
25399
|
+
if (ye += w, j == null)
|
|
25400
25400
|
return me(), 0;
|
|
25401
|
-
if (Nt.type === "begin" && P.type === "end" && Nt.index === P.index &&
|
|
25401
|
+
if (Nt.type === "begin" && P.type === "end" && Nt.index === P.index && j === "") {
|
|
25402
25402
|
if (ye += N.slice(P.index, P.index + 1), !i) {
|
|
25403
25403
|
const de = new Error(`0 width match regex (${C})`);
|
|
25404
25404
|
throw de.languageName = C, de.badRule = Nt.rule, de;
|
|
@@ -25408,18 +25408,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25408
25408
|
if (Nt = P, P.type === "begin")
|
|
25409
25409
|
return Ht(P);
|
|
25410
25410
|
if (P.type === "illegal" && !L) {
|
|
25411
|
-
const de = new Error('Illegal lexeme "' +
|
|
25411
|
+
const de = new Error('Illegal lexeme "' + j + '" for mode "' + (ie.scope || "<unnamed>") + '"');
|
|
25412
25412
|
throw de.mode = ie, de;
|
|
25413
25413
|
} else if (P.type === "end") {
|
|
25414
25414
|
const de = an(P);
|
|
25415
25415
|
if (de !== ph)
|
|
25416
25416
|
return de;
|
|
25417
25417
|
}
|
|
25418
|
-
if (P.type === "illegal" &&
|
|
25418
|
+
if (P.type === "illegal" && j === "")
|
|
25419
25419
|
return 1;
|
|
25420
25420
|
if (Vt > 1e5 && Vt > P.index * 3)
|
|
25421
25421
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
25422
|
-
return ye +=
|
|
25422
|
+
return ye += j, j.length;
|
|
25423
25423
|
}
|
|
25424
25424
|
const he = O(C);
|
|
25425
25425
|
if (!he)
|
|
@@ -25428,19 +25428,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25428
25428
|
let te = "", ie = $ || pt;
|
|
25429
25429
|
const we = {}, oe = new s.__emitter(s);
|
|
25430
25430
|
Ot();
|
|
25431
|
-
let ye = "", Ke = 0,
|
|
25431
|
+
let ye = "", Ke = 0, st = 0, Vt = 0, G = !1;
|
|
25432
25432
|
try {
|
|
25433
25433
|
if (he.__emitTokens)
|
|
25434
25434
|
he.__emitTokens(N, oe);
|
|
25435
25435
|
else {
|
|
25436
25436
|
for (ie.matcher.considerAll(); ; ) {
|
|
25437
|
-
Vt++,
|
|
25437
|
+
Vt++, G ? G = !1 : ie.matcher.considerAll(), ie.matcher.lastIndex = st;
|
|
25438
25438
|
const w = ie.matcher.exec(N);
|
|
25439
25439
|
if (!w) break;
|
|
25440
|
-
const P = N.substring(
|
|
25441
|
-
|
|
25440
|
+
const P = N.substring(st, w.index), j = We(P, w);
|
|
25441
|
+
st = w.index + j;
|
|
25442
25442
|
}
|
|
25443
|
-
We(N.substring(
|
|
25443
|
+
We(N.substring(st));
|
|
25444
25444
|
}
|
|
25445
25445
|
return oe.finalize(), te = oe.toHTML(), {
|
|
25446
25446
|
language: C,
|
|
@@ -25459,8 +25459,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25459
25459
|
relevance: 0,
|
|
25460
25460
|
_illegalBy: {
|
|
25461
25461
|
message: w.message,
|
|
25462
|
-
index:
|
|
25463
|
-
context: N.slice(
|
|
25462
|
+
index: st,
|
|
25463
|
+
context: N.slice(st - 100, st + 100),
|
|
25464
25464
|
mode: w.mode,
|
|
25465
25465
|
resultSoFar: te
|
|
25466
25466
|
},
|
|
@@ -25491,16 +25491,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25491
25491
|
}
|
|
25492
25492
|
function m(C, N) {
|
|
25493
25493
|
N = N || s.languages || Object.keys(t);
|
|
25494
|
-
const L = p(C), $ = N.filter(O).filter(
|
|
25494
|
+
const L = p(C), $ = N.filter(O).filter(V).map(
|
|
25495
25495
|
(me) => u(me, C, !1)
|
|
25496
25496
|
);
|
|
25497
25497
|
$.unshift(L);
|
|
25498
|
-
const X = $.sort((me,
|
|
25499
|
-
if (me.relevance !==
|
|
25500
|
-
if (me.language &&
|
|
25501
|
-
if (O(me.language).supersetOf ===
|
|
25498
|
+
const X = $.sort((me, q) => {
|
|
25499
|
+
if (me.relevance !== q.relevance) return q.relevance - me.relevance;
|
|
25500
|
+
if (me.language && q.language) {
|
|
25501
|
+
if (O(me.language).supersetOf === q.language)
|
|
25502
25502
|
return 1;
|
|
25503
|
-
if (O(
|
|
25503
|
+
if (O(q.language).supersetOf === me.language)
|
|
25504
25504
|
return -1;
|
|
25505
25505
|
}
|
|
25506
25506
|
return 0;
|
|
@@ -25571,7 +25571,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25571
25571
|
throw $;
|
|
25572
25572
|
L = a;
|
|
25573
25573
|
}
|
|
25574
|
-
L.name || (L.name = C), t[C] = L, L.rawDefinition = N.bind(null, e), L.aliases &&
|
|
25574
|
+
L.name || (L.name = C), t[C] = L, L.rawDefinition = N.bind(null, e), L.aliases && M(L.aliases, { languageName: C });
|
|
25575
25575
|
}
|
|
25576
25576
|
function T(C) {
|
|
25577
25577
|
delete t[C];
|
|
@@ -25584,12 +25584,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25584
25584
|
function O(C) {
|
|
25585
25585
|
return C = (C || "").toLowerCase(), t[C] || t[n[C]];
|
|
25586
25586
|
}
|
|
25587
|
-
function
|
|
25587
|
+
function M(C, { languageName: N }) {
|
|
25588
25588
|
typeof C == "string" && (C = [C]), C.forEach((L) => {
|
|
25589
25589
|
n[L.toLowerCase()] = N;
|
|
25590
25590
|
});
|
|
25591
25591
|
}
|
|
25592
|
-
function
|
|
25592
|
+
function V(C) {
|
|
25593
25593
|
const N = O(C);
|
|
25594
25594
|
return N && !N.disableAutodetect;
|
|
25595
25595
|
}
|
|
@@ -25607,7 +25607,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25607
25607
|
function Y(C) {
|
|
25608
25608
|
B(C), r.push(C);
|
|
25609
25609
|
}
|
|
25610
|
-
function
|
|
25610
|
+
function W(C) {
|
|
25611
25611
|
const N = r.indexOf(C);
|
|
25612
25612
|
N !== -1 && r.splice(N, 1);
|
|
25613
25613
|
}
|
|
@@ -25634,11 +25634,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, $ = N), L ===
|
|
|
25634
25634
|
unregisterLanguage: T,
|
|
25635
25635
|
listLanguages: R,
|
|
25636
25636
|
getLanguage: O,
|
|
25637
|
-
registerAliases:
|
|
25638
|
-
autoDetection:
|
|
25637
|
+
registerAliases: M,
|
|
25638
|
+
autoDetection: V,
|
|
25639
25639
|
inherit: uh,
|
|
25640
25640
|
addPlugin: Y,
|
|
25641
|
-
removePlugin:
|
|
25641
|
+
removePlugin: W
|
|
25642
25642
|
}), e.debugMode = function() {
|
|
25643
25643
|
i = !1;
|
|
25644
25644
|
}, e.safeMode = function() {
|
|
@@ -25757,7 +25757,7 @@ const ax = vf.extend({
|
|
|
25757
25757
|
}
|
|
25758
25758
|
});
|
|
25759
25759
|
function _h(e, t, n = {}) {
|
|
25760
|
-
const { empty: r, ranges: i, from: o, to: a } = e.selection, s = t ?
|
|
25760
|
+
const { empty: r, ranges: i, from: o, to: a } = e.selection, s = t ? Bn(t, e.schema) : null;
|
|
25761
25761
|
if (r)
|
|
25762
25762
|
return !!(e.storedMarks || e.selection.$from.marks()).filter((h) => s ? s.name === h.type.name : !0).find(
|
|
25763
25763
|
(h) => Si(h.attrs, n, { strict: !1 })
|
|
@@ -25810,7 +25810,7 @@ function fh(e) {
|
|
|
25810
25810
|
return new $o({
|
|
25811
25811
|
find: e.find,
|
|
25812
25812
|
handler: ({ state: t, range: n, match: r, commands: i }) => {
|
|
25813
|
-
const o = t.doc.resolve(n.from), a =
|
|
25813
|
+
const o = t.doc.resolve(n.from), a = Se(e.getAttributes, void 0, r) || {};
|
|
25814
25814
|
if (!o.node(-1).canReplaceWith(o.index(-1), o.indexAfter(-1), e.type))
|
|
25815
25815
|
return null;
|
|
25816
25816
|
t.tr.delete(n.from, n.to).setBlockType(n.from, n.from, e.type, a), setTimeout(() => i.focus(!0), 0);
|
|
@@ -33944,12 +33944,12 @@ function fD(e) {
|
|
|
33944
33944
|
begin: /"""/,
|
|
33945
33945
|
end: /"""/,
|
|
33946
33946
|
relevance: 2
|
|
33947
|
-
},
|
|
33947
|
+
}, M = {
|
|
33948
33948
|
scope: "subst",
|
|
33949
33949
|
begin: /\{/,
|
|
33950
33950
|
end: /\}/,
|
|
33951
33951
|
keywords: s
|
|
33952
|
-
},
|
|
33952
|
+
}, V = {
|
|
33953
33953
|
scope: "string",
|
|
33954
33954
|
begin: /\$"/,
|
|
33955
33955
|
end: /"/,
|
|
@@ -33963,7 +33963,7 @@ function fD(e) {
|
|
|
33963
33963
|
// escaped }
|
|
33964
33964
|
},
|
|
33965
33965
|
e.BACKSLASH_ESCAPE,
|
|
33966
|
-
|
|
33966
|
+
M
|
|
33967
33967
|
]
|
|
33968
33968
|
}, B = {
|
|
33969
33969
|
scope: "string",
|
|
@@ -33982,7 +33982,7 @@ function fD(e) {
|
|
|
33982
33982
|
match: /""/
|
|
33983
33983
|
},
|
|
33984
33984
|
e.BACKSLASH_ESCAPE,
|
|
33985
|
-
|
|
33985
|
+
M
|
|
33986
33986
|
]
|
|
33987
33987
|
}, Y = {
|
|
33988
33988
|
scope: "string",
|
|
@@ -33997,10 +33997,10 @@ function fD(e) {
|
|
|
33997
33997
|
match: /\}\}/
|
|
33998
33998
|
// escaped }
|
|
33999
33999
|
},
|
|
34000
|
-
|
|
34000
|
+
M
|
|
34001
34001
|
],
|
|
34002
34002
|
relevance: 2
|
|
34003
|
-
},
|
|
34003
|
+
}, W = {
|
|
34004
34004
|
scope: "string",
|
|
34005
34005
|
match: Jt(
|
|
34006
34006
|
/'/,
|
|
@@ -34013,12 +34013,12 @@ function fD(e) {
|
|
|
34013
34013
|
/'/
|
|
34014
34014
|
)
|
|
34015
34015
|
};
|
|
34016
|
-
return
|
|
34016
|
+
return M.contains = [
|
|
34017
34017
|
B,
|
|
34018
|
-
|
|
34018
|
+
V,
|
|
34019
34019
|
R,
|
|
34020
34020
|
T,
|
|
34021
|
-
|
|
34021
|
+
W,
|
|
34022
34022
|
n,
|
|
34023
34023
|
l,
|
|
34024
34024
|
d,
|
|
@@ -34045,11 +34045,11 @@ function fD(e) {
|
|
|
34045
34045
|
variants: [
|
|
34046
34046
|
Y,
|
|
34047
34047
|
B,
|
|
34048
|
-
|
|
34048
|
+
V,
|
|
34049
34049
|
O,
|
|
34050
34050
|
R,
|
|
34051
34051
|
T,
|
|
34052
|
-
|
|
34052
|
+
W
|
|
34053
34053
|
]
|
|
34054
34054
|
},
|
|
34055
34055
|
l,
|
|
@@ -34068,7 +34068,7 @@ function fD(e) {
|
|
|
34068
34068
|
O,
|
|
34069
34069
|
R,
|
|
34070
34070
|
T,
|
|
34071
|
-
|
|
34071
|
+
W,
|
|
34072
34072
|
v
|
|
34073
34073
|
]
|
|
34074
34074
|
},
|
|
@@ -39884,16 +39884,16 @@ function VD(e) {
|
|
|
39884
39884
|
}, _ = {
|
|
39885
39885
|
begin: /\s+/,
|
|
39886
39886
|
relevance: 0
|
|
39887
|
-
}, g = [m], S = [h], E = function(O,
|
|
39887
|
+
}, g = [m], S = [h], E = function(O, M) {
|
|
39888
39888
|
return {
|
|
39889
39889
|
contains: [_],
|
|
39890
39890
|
starts: {
|
|
39891
39891
|
relevance: 0,
|
|
39892
39892
|
contains: O,
|
|
39893
|
-
starts:
|
|
39893
|
+
starts: M
|
|
39894
39894
|
}
|
|
39895
39895
|
};
|
|
39896
|
-
}, b = function(O,
|
|
39896
|
+
}, b = function(O, M) {
|
|
39897
39897
|
return {
|
|
39898
39898
|
begin: "\\\\" + O + "(?![a-zA-Z@:_])",
|
|
39899
39899
|
keywords: {
|
|
@@ -39902,9 +39902,9 @@ function VD(e) {
|
|
|
39902
39902
|
},
|
|
39903
39903
|
relevance: 0,
|
|
39904
39904
|
contains: [_],
|
|
39905
|
-
starts:
|
|
39905
|
+
starts: M
|
|
39906
39906
|
};
|
|
39907
|
-
}, f = function(O,
|
|
39907
|
+
}, f = function(O, M) {
|
|
39908
39908
|
return e.inherit(
|
|
39909
39909
|
{
|
|
39910
39910
|
begin: "\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{" + O + "\\})",
|
|
@@ -39914,7 +39914,7 @@ function VD(e) {
|
|
|
39914
39914
|
},
|
|
39915
39915
|
relevance: 0
|
|
39916
39916
|
},
|
|
39917
|
-
E(g,
|
|
39917
|
+
E(g, M)
|
|
39918
39918
|
);
|
|
39919
39919
|
}, y = (O = "string") => e.END_SAME_AS_BEGIN({
|
|
39920
39920
|
className: O,
|
|
@@ -39976,7 +39976,7 @@ function VD(e) {
|
|
|
39976
39976
|
"B",
|
|
39977
39977
|
"L"
|
|
39978
39978
|
].map(
|
|
39979
|
-
(
|
|
39979
|
+
(M) => f(M + "Verbatim" + O, E(S, v(M + "Verbatim" + O)))
|
|
39980
39980
|
)
|
|
39981
39981
|
])),
|
|
39982
39982
|
f("minted", E(S, E(g, v("minted"))))
|
|
@@ -64883,18 +64883,18 @@ function Qk(e) {
|
|
|
64883
64883
|
label: "func.def",
|
|
64884
64884
|
contains: [y],
|
|
64885
64885
|
illegal: /%/
|
|
64886
|
-
},
|
|
64886
|
+
}, M = {
|
|
64887
64887
|
relevance: 0,
|
|
64888
64888
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
64889
64889
|
className: "variable.constant"
|
|
64890
64890
|
};
|
|
64891
|
-
function
|
|
64891
|
+
function V(C) {
|
|
64892
64892
|
return t.concat("(?!", C.join("|"), ")");
|
|
64893
64893
|
}
|
|
64894
64894
|
const B = {
|
|
64895
64895
|
match: t.concat(
|
|
64896
64896
|
/\b/,
|
|
64897
|
-
|
|
64897
|
+
V([
|
|
64898
64898
|
...pE,
|
|
64899
64899
|
"super",
|
|
64900
64900
|
"import"
|
|
@@ -64913,7 +64913,7 @@ function Qk(e) {
|
|
|
64913
64913
|
keywords: "prototype",
|
|
64914
64914
|
className: "property",
|
|
64915
64915
|
relevance: 0
|
|
64916
|
-
},
|
|
64916
|
+
}, W = {
|
|
64917
64917
|
match: [
|
|
64918
64918
|
/get|set/,
|
|
64919
64919
|
/\s+/,
|
|
@@ -65095,9 +65095,9 @@ function Qk(e) {
|
|
|
65095
65095
|
contains: [y]
|
|
65096
65096
|
},
|
|
65097
65097
|
B,
|
|
65098
|
-
|
|
65098
|
+
M,
|
|
65099
65099
|
v,
|
|
65100
|
-
|
|
65100
|
+
W,
|
|
65101
65101
|
{
|
|
65102
65102
|
match: /\$[(.]/
|
|
65103
65103
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
@@ -67441,11 +67441,11 @@ function mL(e) {
|
|
|
67441
67441
|
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
|
|
67442
67442
|
end: /[ \t]*(\w+)\b/,
|
|
67443
67443
|
contains: e.QUOTE_STRING_MODE.contains.concat(l),
|
|
67444
|
-
"on:begin": (Y,
|
|
67445
|
-
|
|
67444
|
+
"on:begin": (Y, W) => {
|
|
67445
|
+
W.data._beginMatch = Y[1] || Y[2];
|
|
67446
67446
|
},
|
|
67447
|
-
"on:end": (Y,
|
|
67448
|
-
|
|
67447
|
+
"on:end": (Y, W) => {
|
|
67448
|
+
W.data._beginMatch !== Y[1] && W.ignoreMatch();
|
|
67449
67449
|
}
|
|
67450
67450
|
}, p = e.END_SAME_AS_BEGIN({
|
|
67451
67451
|
begin: /<<<[ \t]*'(\w+)'\n/,
|
|
@@ -67674,13 +67674,13 @@ function mL(e) {
|
|
|
67674
67674
|
], b = {
|
|
67675
67675
|
keyword: S,
|
|
67676
67676
|
literal: ((Y) => {
|
|
67677
|
-
const
|
|
67677
|
+
const W = [];
|
|
67678
67678
|
return Y.forEach((K) => {
|
|
67679
|
-
|
|
67680
|
-
}),
|
|
67679
|
+
W.push(K), K.toLowerCase() === K ? W.push(K.toUpperCase()) : W.push(K.toLowerCase());
|
|
67680
|
+
}), W;
|
|
67681
67681
|
})(g),
|
|
67682
67682
|
built_in: E
|
|
67683
|
-
}, f = (Y) => Y.map((
|
|
67683
|
+
}, f = (Y) => Y.map((W) => W.replace(/\|\d+$/, "")), y = { variants: [
|
|
67684
67684
|
{
|
|
67685
67685
|
match: [
|
|
67686
67686
|
/new/,
|
|
@@ -67764,7 +67764,7 @@ function mL(e) {
|
|
|
67764
67764
|
_,
|
|
67765
67765
|
y
|
|
67766
67766
|
]
|
|
67767
|
-
},
|
|
67767
|
+
}, M = {
|
|
67768
67768
|
relevance: 0,
|
|
67769
67769
|
match: [
|
|
67770
67770
|
/\b/,
|
|
@@ -67777,8 +67777,8 @@ function mL(e) {
|
|
|
67777
67777
|
scope: { 3: "title.function.invoke" },
|
|
67778
67778
|
contains: [O]
|
|
67779
67779
|
};
|
|
67780
|
-
O.contains.push(
|
|
67781
|
-
const
|
|
67780
|
+
O.contains.push(M);
|
|
67781
|
+
const V = [
|
|
67782
67782
|
R,
|
|
67783
67783
|
T,
|
|
67784
67784
|
e.C_BLOCK_COMMENT_MODE,
|
|
@@ -67816,10 +67816,10 @@ function mL(e) {
|
|
|
67816
67816
|
},
|
|
67817
67817
|
contains: [
|
|
67818
67818
|
"self",
|
|
67819
|
-
...
|
|
67819
|
+
...V
|
|
67820
67820
|
]
|
|
67821
67821
|
},
|
|
67822
|
-
...
|
|
67822
|
+
...V,
|
|
67823
67823
|
{
|
|
67824
67824
|
scope: "meta",
|
|
67825
67825
|
variants: [
|
|
@@ -67867,7 +67867,7 @@ function mL(e) {
|
|
|
67867
67867
|
match: /\$this\b/
|
|
67868
67868
|
},
|
|
67869
67869
|
a,
|
|
67870
|
-
|
|
67870
|
+
M,
|
|
67871
67871
|
T,
|
|
67872
67872
|
{
|
|
67873
67873
|
match: [
|
|
@@ -71319,7 +71319,7 @@ function UL(e) {
|
|
|
71319
71319
|
R("##"),
|
|
71320
71320
|
R("###")
|
|
71321
71321
|
]
|
|
71322
|
-
},
|
|
71322
|
+
}, M = [
|
|
71323
71323
|
e.BACKSLASH_ESCAPE,
|
|
71324
71324
|
{
|
|
71325
71325
|
begin: /\[/,
|
|
@@ -71327,17 +71327,17 @@ function UL(e) {
|
|
|
71327
71327
|
relevance: 0,
|
|
71328
71328
|
contains: [e.BACKSLASH_ESCAPE]
|
|
71329
71329
|
}
|
|
71330
|
-
],
|
|
71330
|
+
], V = {
|
|
71331
71331
|
begin: /\/[^\s](?=[^/\n]*\/)/,
|
|
71332
71332
|
end: /\//,
|
|
71333
|
-
contains:
|
|
71333
|
+
contains: M
|
|
71334
71334
|
}, B = (he) => {
|
|
71335
71335
|
const pt = Le(he, /\//), te = Le(/\//, he);
|
|
71336
71336
|
return {
|
|
71337
71337
|
begin: pt,
|
|
71338
71338
|
end: te,
|
|
71339
71339
|
contains: [
|
|
71340
|
-
...
|
|
71340
|
+
...M,
|
|
71341
71341
|
{
|
|
71342
71342
|
scope: "comment",
|
|
71343
71343
|
begin: `#(?!.*${te})`,
|
|
@@ -71351,16 +71351,16 @@ function UL(e) {
|
|
|
71351
71351
|
B("###"),
|
|
71352
71352
|
B("##"),
|
|
71353
71353
|
B("#"),
|
|
71354
|
-
|
|
71354
|
+
V
|
|
71355
71355
|
]
|
|
71356
|
-
},
|
|
71356
|
+
}, W = { match: Le(/`/, sn, /`/) }, K = {
|
|
71357
71357
|
className: "variable",
|
|
71358
71358
|
match: /\$\d+/
|
|
71359
71359
|
}, A = {
|
|
71360
71360
|
className: "variable",
|
|
71361
71361
|
match: `\\$${Ds}+`
|
|
71362
71362
|
}, C = [
|
|
71363
|
-
|
|
71363
|
+
W,
|
|
71364
71364
|
K,
|
|
71365
71365
|
A
|
|
71366
71366
|
], N = {
|
|
@@ -71455,7 +71455,7 @@ function UL(e) {
|
|
|
71455
71455
|
...X,
|
|
71456
71456
|
le
|
|
71457
71457
|
]
|
|
71458
|
-
},
|
|
71458
|
+
}, q = {
|
|
71459
71459
|
begin: /</,
|
|
71460
71460
|
end: />/,
|
|
71461
71461
|
keywords: "repeat each",
|
|
@@ -71501,14 +71501,14 @@ function UL(e) {
|
|
|
71501
71501
|
match: [
|
|
71502
71502
|
/(func|macro)/,
|
|
71503
71503
|
/\s+/,
|
|
71504
|
-
vt(
|
|
71504
|
+
vt(W.match, sn, oc)
|
|
71505
71505
|
],
|
|
71506
71506
|
className: {
|
|
71507
71507
|
1: "keyword",
|
|
71508
71508
|
3: "title.function"
|
|
71509
71509
|
},
|
|
71510
71510
|
contains: [
|
|
71511
|
-
|
|
71511
|
+
q,
|
|
71512
71512
|
x,
|
|
71513
71513
|
t
|
|
71514
71514
|
],
|
|
@@ -71523,7 +71523,7 @@ function UL(e) {
|
|
|
71523
71523
|
],
|
|
71524
71524
|
className: { 1: "keyword" },
|
|
71525
71525
|
contains: [
|
|
71526
|
-
|
|
71526
|
+
q,
|
|
71527
71527
|
x,
|
|
71528
71528
|
t
|
|
71529
71529
|
],
|
|
@@ -71590,7 +71590,7 @@ function UL(e) {
|
|
|
71590
71590
|
},
|
|
71591
71591
|
keywords: c,
|
|
71592
71592
|
contains: [
|
|
71593
|
-
|
|
71593
|
+
q,
|
|
71594
71594
|
...d,
|
|
71595
71595
|
{
|
|
71596
71596
|
begin: /:/,
|
|
@@ -72094,18 +72094,18 @@ function HL(e) {
|
|
|
72094
72094
|
label: "func.def",
|
|
72095
72095
|
contains: [y],
|
|
72096
72096
|
illegal: /%/
|
|
72097
|
-
},
|
|
72097
|
+
}, M = {
|
|
72098
72098
|
relevance: 0,
|
|
72099
72099
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
72100
72100
|
className: "variable.constant"
|
|
72101
72101
|
};
|
|
72102
|
-
function
|
|
72102
|
+
function V(C) {
|
|
72103
72103
|
return t.concat("(?!", C.join("|"), ")");
|
|
72104
72104
|
}
|
|
72105
72105
|
const B = {
|
|
72106
72106
|
match: t.concat(
|
|
72107
72107
|
/\b/,
|
|
72108
|
-
|
|
72108
|
+
V([
|
|
72109
72109
|
...CE,
|
|
72110
72110
|
"super",
|
|
72111
72111
|
"import"
|
|
@@ -72124,7 +72124,7 @@ function HL(e) {
|
|
|
72124
72124
|
keywords: "prototype",
|
|
72125
72125
|
className: "property",
|
|
72126
72126
|
relevance: 0
|
|
72127
|
-
},
|
|
72127
|
+
}, W = {
|
|
72128
72128
|
match: [
|
|
72129
72129
|
/get|set/,
|
|
72130
72130
|
/\s+/,
|
|
@@ -72306,9 +72306,9 @@ function HL(e) {
|
|
|
72306
72306
|
contains: [y]
|
|
72307
72307
|
},
|
|
72308
72308
|
B,
|
|
72309
|
-
|
|
72309
|
+
M,
|
|
72310
72310
|
v,
|
|
72311
|
-
|
|
72311
|
+
W,
|
|
72312
72312
|
{
|
|
72313
72313
|
match: /\$[(.]/
|
|
72314
72314
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
@@ -73914,29 +73914,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
73914
73914
|
code: L,
|
|
73915
73915
|
language: $
|
|
73916
73916
|
};
|
|
73917
|
-
|
|
73917
|
+
W("before:highlight", X);
|
|
73918
73918
|
const le = X.result ? X.result : u(X.language, X.code, N);
|
|
73919
|
-
return le.code = X.code,
|
|
73919
|
+
return le.code = X.code, W("after:highlight", le), le;
|
|
73920
73920
|
}
|
|
73921
73921
|
function u(A, C, N, L) {
|
|
73922
73922
|
const $ = /* @__PURE__ */ Object.create(null);
|
|
73923
|
-
function X(
|
|
73924
|
-
return
|
|
73923
|
+
function X(G, w) {
|
|
73924
|
+
return G.keywords[w];
|
|
73925
73925
|
}
|
|
73926
73926
|
function le() {
|
|
73927
73927
|
if (!te.keywords) {
|
|
73928
73928
|
we.addText(oe);
|
|
73929
73929
|
return;
|
|
73930
73930
|
}
|
|
73931
|
-
let
|
|
73931
|
+
let G = 0;
|
|
73932
73932
|
te.keywordPatternRe.lastIndex = 0;
|
|
73933
73933
|
let w = te.keywordPatternRe.exec(oe), P = "";
|
|
73934
73934
|
for (; w; ) {
|
|
73935
|
-
P += oe.substring(
|
|
73936
|
-
const
|
|
73935
|
+
P += oe.substring(G, w.index);
|
|
73936
|
+
const j = We.case_insensitive ? w[0].toLowerCase() : w[0], de = X(te, j);
|
|
73937
73937
|
if (de) {
|
|
73938
73938
|
const [ke, Mt] = de;
|
|
73939
|
-
if (we.addText(P), P = "", $[
|
|
73939
|
+
if (we.addText(P), P = "", $[j] = ($[j] || 0) + 1, $[j] <= U2 && (ye += Mt), ke.startsWith("_"))
|
|
73940
73940
|
P += w[0];
|
|
73941
73941
|
else {
|
|
73942
73942
|
const Li = We.classNameAliases[ke] || ke;
|
|
@@ -73944,114 +73944,114 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
73944
73944
|
}
|
|
73945
73945
|
} else
|
|
73946
73946
|
P += w[0];
|
|
73947
|
-
|
|
73947
|
+
G = te.keywordPatternRe.lastIndex, w = te.keywordPatternRe.exec(oe);
|
|
73948
73948
|
}
|
|
73949
|
-
P += oe.substring(
|
|
73949
|
+
P += oe.substring(G), we.addText(P);
|
|
73950
73950
|
}
|
|
73951
73951
|
function Re() {
|
|
73952
73952
|
if (oe === "") return;
|
|
73953
|
-
let
|
|
73953
|
+
let G = null;
|
|
73954
73954
|
if (typeof te.subLanguage == "string") {
|
|
73955
73955
|
if (!t[te.subLanguage]) {
|
|
73956
73956
|
we.addText(oe);
|
|
73957
73957
|
return;
|
|
73958
73958
|
}
|
|
73959
|
-
|
|
73960
|
-
|
|
73959
|
+
G = u(te.subLanguage, oe, !0, ie[te.subLanguage]), ie[te.subLanguage] = /** @type {CompiledMode} */
|
|
73960
|
+
G._top;
|
|
73961
73961
|
} else
|
|
73962
|
-
|
|
73963
|
-
te.relevance > 0 && (ye +=
|
|
73962
|
+
G = m(oe, te.subLanguage.length ? te.subLanguage : null);
|
|
73963
|
+
te.relevance > 0 && (ye += G.relevance), we.__addSublanguage(G._emitter, G.language);
|
|
73964
73964
|
}
|
|
73965
73965
|
function Ce() {
|
|
73966
73966
|
te.subLanguage != null ? Re() : le(), oe = "";
|
|
73967
73967
|
}
|
|
73968
|
-
function me(
|
|
73969
|
-
|
|
73968
|
+
function me(G, w) {
|
|
73969
|
+
G !== "" && (we.startScope(w), we.addText(G), we.endScope());
|
|
73970
73970
|
}
|
|
73971
|
-
function
|
|
73971
|
+
function q(G, w) {
|
|
73972
73972
|
let P = 1;
|
|
73973
|
-
const
|
|
73974
|
-
for (; P <=
|
|
73975
|
-
if (!
|
|
73973
|
+
const j = w.length - 1;
|
|
73974
|
+
for (; P <= j; ) {
|
|
73975
|
+
if (!G._emit[P]) {
|
|
73976
73976
|
P++;
|
|
73977
73977
|
continue;
|
|
73978
73978
|
}
|
|
73979
|
-
const de = We.classNameAliases[
|
|
73979
|
+
const de = We.classNameAliases[G[P]] || G[P], ke = w[P];
|
|
73980
73980
|
de ? me(ke, de) : (oe = ke, le(), oe = ""), P++;
|
|
73981
73981
|
}
|
|
73982
73982
|
}
|
|
73983
|
-
function Q(
|
|
73984
|
-
return
|
|
73983
|
+
function Q(G, w) {
|
|
73984
|
+
return G.scope && typeof G.scope == "string" && we.openNode(We.classNameAliases[G.scope] || G.scope), G.beginScope && (G.beginScope._wrap ? (me(oe, We.classNameAliases[G.beginScope._wrap] || G.beginScope._wrap), oe = "") : G.beginScope._multi && (q(G.beginScope, w), oe = "")), te = Object.create(G, { parent: { value: te } }), te;
|
|
73985
73985
|
}
|
|
73986
|
-
function x(
|
|
73987
|
-
let
|
|
73988
|
-
if (
|
|
73989
|
-
if (
|
|
73990
|
-
const de = new Oh(
|
|
73991
|
-
|
|
73986
|
+
function x(G, w, P) {
|
|
73987
|
+
let j = t2(G.endRe, P);
|
|
73988
|
+
if (j) {
|
|
73989
|
+
if (G["on:end"]) {
|
|
73990
|
+
const de = new Oh(G);
|
|
73991
|
+
G["on:end"](w, de), de.isMatchIgnored && (j = !1);
|
|
73992
73992
|
}
|
|
73993
|
-
if (
|
|
73994
|
-
for (;
|
|
73995
|
-
|
|
73996
|
-
return
|
|
73993
|
+
if (j) {
|
|
73994
|
+
for (; G.endsParent && G.parent; )
|
|
73995
|
+
G = G.parent;
|
|
73996
|
+
return G;
|
|
73997
73997
|
}
|
|
73998
73998
|
}
|
|
73999
|
-
if (
|
|
74000
|
-
return x(
|
|
73999
|
+
if (G.endsWithParent)
|
|
74000
|
+
return x(G.parent, w, P);
|
|
74001
74001
|
}
|
|
74002
|
-
function ge(
|
|
74003
|
-
return te.matcher.regexIndex === 0 ? (oe +=
|
|
74002
|
+
function ge(G) {
|
|
74003
|
+
return te.matcher.regexIndex === 0 ? (oe += G[0], 1) : (Vt = !0, 0);
|
|
74004
74004
|
}
|
|
74005
|
-
function Je(
|
|
74006
|
-
const w =
|
|
74005
|
+
function Je(G) {
|
|
74006
|
+
const w = G[0], P = G.rule, j = new Oh(P), de = [P.__beforeBegin, P["on:begin"]];
|
|
74007
74007
|
for (const ke of de)
|
|
74008
|
-
if (ke && (ke(
|
|
74008
|
+
if (ke && (ke(G, j), j.isMatchIgnored))
|
|
74009
74009
|
return ge(w);
|
|
74010
|
-
return P.skip ? oe += w : (P.excludeBegin && (oe += w), Ce(), !P.returnBegin && !P.excludeBegin && (oe = w)), Q(P,
|
|
74010
|
+
return P.skip ? oe += w : (P.excludeBegin && (oe += w), Ce(), !P.returnBegin && !P.excludeBegin && (oe = w)), Q(P, G), P.returnBegin ? 0 : w.length;
|
|
74011
74011
|
}
|
|
74012
|
-
function Ht(
|
|
74013
|
-
const w =
|
|
74014
|
-
if (!
|
|
74012
|
+
function Ht(G) {
|
|
74013
|
+
const w = G[0], P = C.substring(G.index), j = x(te, G, P);
|
|
74014
|
+
if (!j)
|
|
74015
74015
|
return xh;
|
|
74016
74016
|
const de = te;
|
|
74017
|
-
te.endScope && te.endScope._wrap ? (Ce(), me(w, te.endScope._wrap)) : te.endScope && te.endScope._multi ? (Ce(),
|
|
74017
|
+
te.endScope && te.endScope._wrap ? (Ce(), me(w, te.endScope._wrap)) : te.endScope && te.endScope._multi ? (Ce(), q(te.endScope, G)) : de.skip ? oe += w : (de.returnEnd || de.excludeEnd || (oe += w), Ce(), de.excludeEnd && (oe = w));
|
|
74018
74018
|
do
|
|
74019
74019
|
te.scope && we.closeNode(), !te.skip && !te.subLanguage && (ye += te.relevance), te = te.parent;
|
|
74020
|
-
while (te !==
|
|
74021
|
-
return
|
|
74020
|
+
while (te !== j.parent);
|
|
74021
|
+
return j.starts && Q(j.starts, G), de.returnEnd ? 0 : w.length;
|
|
74022
74022
|
}
|
|
74023
74023
|
function an() {
|
|
74024
|
-
const
|
|
74024
|
+
const G = [];
|
|
74025
74025
|
for (let w = te; w !== We; w = w.parent)
|
|
74026
|
-
w.scope &&
|
|
74027
|
-
|
|
74026
|
+
w.scope && G.unshift(w.scope);
|
|
74027
|
+
G.forEach((w) => we.openNode(w));
|
|
74028
74028
|
}
|
|
74029
74029
|
let Ot = {};
|
|
74030
|
-
function Nt(
|
|
74030
|
+
function Nt(G, w) {
|
|
74031
74031
|
const P = w && w[0];
|
|
74032
|
-
if (oe +=
|
|
74032
|
+
if (oe += G, P == null)
|
|
74033
74033
|
return Ce(), 0;
|
|
74034
74034
|
if (Ot.type === "begin" && w.type === "end" && Ot.index === w.index && P === "") {
|
|
74035
74035
|
if (oe += C.slice(w.index, w.index + 1), !i) {
|
|
74036
|
-
const
|
|
74037
|
-
throw
|
|
74036
|
+
const j = new Error(`0 width match regex (${A})`);
|
|
74037
|
+
throw j.languageName = A, j.badRule = Ot.rule, j;
|
|
74038
74038
|
}
|
|
74039
74039
|
return 1;
|
|
74040
74040
|
}
|
|
74041
74041
|
if (Ot = w, w.type === "begin")
|
|
74042
74042
|
return Je(w);
|
|
74043
74043
|
if (w.type === "illegal" && !N) {
|
|
74044
|
-
const
|
|
74045
|
-
throw
|
|
74044
|
+
const j = new Error('Illegal lexeme "' + P + '" for mode "' + (te.scope || "<unnamed>") + '"');
|
|
74045
|
+
throw j.mode = te, j;
|
|
74046
74046
|
} else if (w.type === "end") {
|
|
74047
|
-
const
|
|
74048
|
-
if (
|
|
74049
|
-
return
|
|
74047
|
+
const j = Ht(w);
|
|
74048
|
+
if (j !== xh)
|
|
74049
|
+
return j;
|
|
74050
74050
|
}
|
|
74051
74051
|
if (w.type === "illegal" && P === "")
|
|
74052
74052
|
return oe += `
|
|
74053
74053
|
`, 1;
|
|
74054
|
-
if (
|
|
74054
|
+
if (st > 1e5 && st > w.index * 3)
|
|
74055
74055
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
74056
74056
|
return oe += P, P.length;
|
|
74057
74057
|
}
|
|
@@ -74062,17 +74062,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74062
74062
|
let pt = "", te = L || he;
|
|
74063
74063
|
const ie = {}, we = new s.__emitter(s);
|
|
74064
74064
|
an();
|
|
74065
|
-
let oe = "", ye = 0, Ke = 0,
|
|
74065
|
+
let oe = "", ye = 0, Ke = 0, st = 0, Vt = !1;
|
|
74066
74066
|
try {
|
|
74067
74067
|
if (We.__emitTokens)
|
|
74068
74068
|
We.__emitTokens(C, we);
|
|
74069
74069
|
else {
|
|
74070
74070
|
for (te.matcher.considerAll(); ; ) {
|
|
74071
|
-
|
|
74072
|
-
const
|
|
74073
|
-
if (!
|
|
74074
|
-
const w = C.substring(Ke,
|
|
74075
|
-
Ke =
|
|
74071
|
+
st++, Vt ? Vt = !1 : te.matcher.considerAll(), te.matcher.lastIndex = Ke;
|
|
74072
|
+
const G = te.matcher.exec(C);
|
|
74073
|
+
if (!G) break;
|
|
74074
|
+
const w = C.substring(Ke, G.index), P = Nt(w, G);
|
|
74075
|
+
Ke = G.index + P;
|
|
74076
74076
|
}
|
|
74077
74077
|
Nt(C.substring(Ke));
|
|
74078
74078
|
}
|
|
@@ -74084,18 +74084,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74084
74084
|
_emitter: we,
|
|
74085
74085
|
_top: te
|
|
74086
74086
|
};
|
|
74087
|
-
} catch (
|
|
74088
|
-
if (
|
|
74087
|
+
} catch (G) {
|
|
74088
|
+
if (G.message && G.message.includes("Illegal"))
|
|
74089
74089
|
return {
|
|
74090
74090
|
language: A,
|
|
74091
74091
|
value: ac(C),
|
|
74092
74092
|
illegal: !0,
|
|
74093
74093
|
relevance: 0,
|
|
74094
74094
|
_illegalBy: {
|
|
74095
|
-
message:
|
|
74095
|
+
message: G.message,
|
|
74096
74096
|
index: Ke,
|
|
74097
74097
|
context: C.slice(Ke - 100, Ke + 100),
|
|
74098
|
-
mode:
|
|
74098
|
+
mode: G.mode,
|
|
74099
74099
|
resultSoFar: pt
|
|
74100
74100
|
},
|
|
74101
74101
|
_emitter: we
|
|
@@ -74106,11 +74106,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74106
74106
|
value: ac(C),
|
|
74107
74107
|
illegal: !1,
|
|
74108
74108
|
relevance: 0,
|
|
74109
|
-
errorRaised:
|
|
74109
|
+
errorRaised: G,
|
|
74110
74110
|
_emitter: we,
|
|
74111
74111
|
_top: te
|
|
74112
74112
|
};
|
|
74113
|
-
throw
|
|
74113
|
+
throw G;
|
|
74114
74114
|
}
|
|
74115
74115
|
}
|
|
74116
74116
|
function p(A) {
|
|
@@ -74125,7 +74125,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74125
74125
|
}
|
|
74126
74126
|
function m(A, C) {
|
|
74127
74127
|
C = C || s.languages || Object.keys(t);
|
|
74128
|
-
const N = p(A), L = C.filter(R).filter(
|
|
74128
|
+
const N = p(A), L = C.filter(R).filter(M).map(
|
|
74129
74129
|
(Ce) => u(Ce, A, !1)
|
|
74130
74130
|
);
|
|
74131
74131
|
L.unshift(N);
|
|
@@ -74149,7 +74149,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74149
74149
|
let C = null;
|
|
74150
74150
|
const N = c(A);
|
|
74151
74151
|
if (l(N)) return;
|
|
74152
|
-
if (
|
|
74152
|
+
if (W(
|
|
74153
74153
|
"before:highlightElement",
|
|
74154
74154
|
{ el: A, language: N }
|
|
74155
74155
|
), A.dataset.highlighted) {
|
|
@@ -74171,7 +74171,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74171
74171
|
}, $.secondBest && (A.secondBest = {
|
|
74172
74172
|
language: $.secondBest.language,
|
|
74173
74173
|
relevance: $.secondBest.relevance
|
|
74174
|
-
}),
|
|
74174
|
+
}), W("after:highlightElement", { el: A, result: $, text: L });
|
|
74175
74175
|
}
|
|
74176
74176
|
function g(A) {
|
|
74177
74177
|
s = Ih(s, A);
|
|
@@ -74222,11 +74222,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74222
74222
|
n[N.toLowerCase()] = C;
|
|
74223
74223
|
});
|
|
74224
74224
|
}
|
|
74225
|
-
function
|
|
74225
|
+
function M(A) {
|
|
74226
74226
|
const C = R(A);
|
|
74227
74227
|
return C && !C.disableAutodetect;
|
|
74228
74228
|
}
|
|
74229
|
-
function
|
|
74229
|
+
function V(A) {
|
|
74230
74230
|
A["before:highlightBlock"] && !A["before:highlightElement"] && (A["before:highlightElement"] = (C) => {
|
|
74231
74231
|
A["before:highlightBlock"](
|
|
74232
74232
|
Object.assign({ block: C.el }, C)
|
|
@@ -74238,13 +74238,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74238
74238
|
});
|
|
74239
74239
|
}
|
|
74240
74240
|
function B(A) {
|
|
74241
|
-
|
|
74241
|
+
V(A), r.push(A);
|
|
74242
74242
|
}
|
|
74243
74243
|
function Y(A) {
|
|
74244
74244
|
const C = r.indexOf(A);
|
|
74245
74245
|
C !== -1 && r.splice(C, 1);
|
|
74246
74246
|
}
|
|
74247
|
-
function
|
|
74247
|
+
function W(A, C) {
|
|
74248
74248
|
const N = A;
|
|
74249
74249
|
r.forEach(function(L) {
|
|
74250
74250
|
L[N] && L[N](C);
|
|
@@ -74268,7 +74268,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = A, L = C), N ===
|
|
|
74268
74268
|
listLanguages: T,
|
|
74269
74269
|
getLanguage: R,
|
|
74270
74270
|
registerAliases: O,
|
|
74271
|
-
autoDetection:
|
|
74271
|
+
autoDetection: M,
|
|
74272
74272
|
inherit: Ih,
|
|
74273
74273
|
addPlugin: B,
|
|
74274
74274
|
removePlugin: Y
|
|
@@ -76001,8 +76001,8 @@ function VE({ pluginKey: e = MP, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
76001
76001
|
view() {
|
|
76002
76002
|
return {
|
|
76003
76003
|
update: async (b, f) => {
|
|
76004
|
-
var y, v, T, R, O,
|
|
76005
|
-
const B = (y = this.key) === null || y === void 0 ? void 0 : y.getState(f), Y = (v = this.key) === null || v === void 0 ? void 0 : v.getState(b.state),
|
|
76004
|
+
var y, v, T, R, O, M, V;
|
|
76005
|
+
const B = (y = this.key) === null || y === void 0 ? void 0 : y.getState(f), Y = (v = this.key) === null || v === void 0 ? void 0 : v.getState(b.state), W = B.active && Y.active && B.range.from !== Y.range.from, K = !B.active && Y.active, A = B.active && !Y.active, C = !K && !A && B.query !== Y.query, N = K || W && C, L = C || W, $ = A || W && C;
|
|
76006
76006
|
if (!N && !L && !$)
|
|
76007
76007
|
return;
|
|
76008
76008
|
const X = $ && !N ? B : Y, le = b.dom.querySelector(`[data-decoration-id="${X.decorationId}"]`);
|
|
@@ -76028,7 +76028,7 @@ function VE({ pluginKey: e = MP, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
76028
76028
|
}, N && ((T = S?.onBeforeStart) === null || T === void 0 || T.call(S, g)), L && ((R = S?.onBeforeUpdate) === null || R === void 0 || R.call(S, g)), (L || N) && (g.items = await p({
|
|
76029
76029
|
editor: t,
|
|
76030
76030
|
query: X.query
|
|
76031
|
-
})), $ && ((O = S?.onExit) === null || O === void 0 || O.call(S, g)), L && ((
|
|
76031
|
+
})), $ && ((O = S?.onExit) === null || O === void 0 || O.call(S, g)), L && ((M = S?.onUpdate) === null || M === void 0 || M.call(S, g)), N && ((V = S?.onStart) === null || V === void 0 || V.call(S, g));
|
|
76032
76032
|
},
|
|
76033
76033
|
destroy: () => {
|
|
76034
76034
|
var b;
|
|
@@ -76052,9 +76052,9 @@ function VE({ pluginKey: e = MP, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
76052
76052
|
},
|
|
76053
76053
|
// Apply changes to the plugin state from a view transaction.
|
|
76054
76054
|
apply(b, f, y, v) {
|
|
76055
|
-
const { isEditable: T } = t, { composing: R } = t.view, { selection: O } = b, { empty:
|
|
76056
|
-
if (B.composing = R, T && (
|
|
76057
|
-
(
|
|
76055
|
+
const { isEditable: T } = t, { composing: R } = t.view, { selection: O } = b, { empty: M, from: V } = O, B = { ...f };
|
|
76056
|
+
if (B.composing = R, T && (M || t.view.composing)) {
|
|
76057
|
+
(V < f.range.from || V > f.range.to) && !R && !f.composing && (B.active = !1);
|
|
76058
76058
|
const Y = _({
|
|
76059
76059
|
char: n,
|
|
76060
76060
|
allowSpaces: r,
|
|
@@ -76062,13 +76062,13 @@ function VE({ pluginKey: e = MP, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
76062
76062
|
allowedPrefixes: o,
|
|
76063
76063
|
startOfLine: a,
|
|
76064
76064
|
$position: O.$from
|
|
76065
|
-
}),
|
|
76065
|
+
}), W = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
76066
76066
|
Y && h({
|
|
76067
76067
|
editor: t,
|
|
76068
76068
|
state: v,
|
|
76069
76069
|
range: Y.range,
|
|
76070
76070
|
isActive: f.active
|
|
76071
|
-
}) ? (B.active = !0, B.decorationId = f.decorationId ? f.decorationId :
|
|
76071
|
+
}) ? (B.active = !0, B.decorationId = f.decorationId ? f.decorationId : W, B.range = Y.range, B.query = Y.query, B.text = Y.text) : B.active = !1;
|
|
76072
76072
|
} else
|
|
76073
76073
|
B.active = !1;
|
|
76074
76074
|
return B.active || (B.decorationId = null, B.range = { from: 0, to: 0 }, B.query = null, B.text = null), B;
|
|
@@ -76244,7 +76244,7 @@ const LP = Ge.create({
|
|
|
76244
76244
|
if (l.type.name === this.name)
|
|
76245
76245
|
return n = !0, e.insertText(this.options.deleteTriggerWithBackspace ? "" : this.options.suggestion.char || "", c, c + l.nodeSize), !1;
|
|
76246
76246
|
});
|
|
76247
|
-
let a = new
|
|
76247
|
+
let a = new Ln(), s = 0;
|
|
76248
76248
|
return t.doc.nodesBetween(o - 1, o, (l, c) => {
|
|
76249
76249
|
if (l.type.name === this.name)
|
|
76250
76250
|
return n = !0, a = l, s = c, !1;
|
|
@@ -76810,7 +76810,7 @@ const BP = [
|
|
|
76810
76810
|
});
|
|
76811
76811
|
}
|
|
76812
76812
|
}), KP = (e, t) => {
|
|
76813
|
-
var n, r, i, o, a, s, l, c, d, u, p, m, h, _, g, S, E, b, f, y, v, T, R, O,
|
|
76813
|
+
var n, r, i, o, a, s, l, c, d, u, p, m, h, _, g, S, E, b, f, y, v, T, R, O, M, V, B, Y, W, K, A;
|
|
76814
76814
|
const C = [e0.configure({
|
|
76815
76815
|
codeBlock: !1,
|
|
76816
76816
|
heading: !1
|
|
@@ -76889,8 +76889,8 @@ const BP = [
|
|
|
76889
76889
|
}),
|
|
76890
76890
|
q2.configure({
|
|
76891
76891
|
uploadUrl: (O = t.video) == null ? void 0 : O.uploadUrl,
|
|
76892
|
-
uploadHeaders: (
|
|
76893
|
-
uploadFormName: (
|
|
76892
|
+
uploadHeaders: (M = t.video) == null ? void 0 : M.uploadHeaders,
|
|
76893
|
+
uploadFormName: (V = t.video) == null ? void 0 : V.uploadFormName,
|
|
76894
76894
|
uploader: ((B = t.video) == null ? void 0 : B.uploader) || t.uploader,
|
|
76895
76895
|
uploaderEvent: (Y = t.video) == null ? void 0 : Y.uploaderEvent
|
|
76896
76896
|
}),
|
|
@@ -76903,7 +76903,7 @@ const BP = [
|
|
|
76903
76903
|
jP,
|
|
76904
76904
|
WP,
|
|
76905
76905
|
GP.configure({
|
|
76906
|
-
defaultType: ((
|
|
76906
|
+
defaultType: ((W = t.container) == null ? void 0 : W.defaultType) || "warning",
|
|
76907
76907
|
typeItems: ((K = t.container) == null ? void 0 : K.typeItems) || zE
|
|
76908
76908
|
}),
|
|
76909
76909
|
...IP(e)
|
|
@@ -78385,26 +78385,26 @@ function TF(e) {
|
|
|
78385
78385
|
var t;
|
|
78386
78386
|
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (t = yF.get(e)) !== null && t !== void 0 ? t : e;
|
|
78387
78387
|
}
|
|
78388
|
-
var
|
|
78388
|
+
var rt;
|
|
78389
78389
|
(function(e) {
|
|
78390
78390
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
78391
|
-
})(
|
|
78391
|
+
})(rt || (rt = {}));
|
|
78392
78392
|
const OF = 32;
|
|
78393
78393
|
var rr;
|
|
78394
78394
|
(function(e) {
|
|
78395
78395
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
78396
78396
|
})(rr || (rr = {}));
|
|
78397
78397
|
function dd(e) {
|
|
78398
|
-
return e >=
|
|
78398
|
+
return e >= rt.ZERO && e <= rt.NINE;
|
|
78399
78399
|
}
|
|
78400
78400
|
function NF(e) {
|
|
78401
|
-
return e >=
|
|
78401
|
+
return e >= rt.UPPER_A && e <= rt.UPPER_F || e >= rt.LOWER_A && e <= rt.LOWER_F;
|
|
78402
78402
|
}
|
|
78403
78403
|
function RF(e) {
|
|
78404
|
-
return e >=
|
|
78404
|
+
return e >= rt.UPPER_A && e <= rt.UPPER_Z || e >= rt.LOWER_A && e <= rt.LOWER_Z || dd(e);
|
|
78405
78405
|
}
|
|
78406
78406
|
function AF(e) {
|
|
78407
|
-
return e ===
|
|
78407
|
+
return e === rt.EQUALS || RF(e);
|
|
78408
78408
|
}
|
|
78409
78409
|
var tt;
|
|
78410
78410
|
(function(e) {
|
|
@@ -78436,7 +78436,7 @@ class wF {
|
|
|
78436
78436
|
write(t, n) {
|
|
78437
78437
|
switch (this.state) {
|
|
78438
78438
|
case tt.EntityStart:
|
|
78439
|
-
return t.charCodeAt(n) ===
|
|
78439
|
+
return t.charCodeAt(n) === rt.NUM ? (this.state = tt.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = tt.NamedEntity, this.stateNamedEntity(t, n));
|
|
78440
78440
|
case tt.NumericStart:
|
|
78441
78441
|
return this.stateNumericStart(t, n);
|
|
78442
78442
|
case tt.NumericDecimal:
|
|
@@ -78457,7 +78457,7 @@ class wF {
|
|
|
78457
78457
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
78458
78458
|
*/
|
|
78459
78459
|
stateNumericStart(t, n) {
|
|
78460
|
-
return n >= t.length ? -1 : (t.charCodeAt(n) | OF) ===
|
|
78460
|
+
return n >= t.length ? -1 : (t.charCodeAt(n) | OF) === rt.LOWER_X ? (this.state = tt.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = tt.NumericDecimal, this.stateNumericDecimal(t, n));
|
|
78461
78461
|
}
|
|
78462
78462
|
addToNumericResult(t, n, r, i) {
|
|
78463
78463
|
if (n !== r) {
|
|
@@ -78522,11 +78522,11 @@ class wF {
|
|
|
78522
78522
|
var r;
|
|
78523
78523
|
if (this.consumed <= n)
|
|
78524
78524
|
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
78525
|
-
if (t ===
|
|
78525
|
+
if (t === rt.SEMI)
|
|
78526
78526
|
this.consumed += 1;
|
|
78527
78527
|
else if (this.decodeMode === Qn.Strict)
|
|
78528
78528
|
return 0;
|
|
78529
|
-
return this.emitCodePoint(TF(this.result), this.consumed), this.errors && (t !==
|
|
78529
|
+
return this.emitCodePoint(TF(this.result), this.consumed), this.errors && (t !== rt.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
78530
78530
|
}
|
|
78531
78531
|
/**
|
|
78532
78532
|
* Parses a named entity.
|
|
@@ -78548,7 +78548,7 @@ class wF {
|
|
|
78548
78548
|
(o === 0 || // And there should be no invalid characters.
|
|
78549
78549
|
AF(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
78550
78550
|
if (i = r[this.treeIndex], o = (i & rr.VALUE_LENGTH) >> 14, o !== 0) {
|
|
78551
|
-
if (a ===
|
|
78551
|
+
if (a === rt.SEMI)
|
|
78552
78552
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
78553
78553
|
this.decodeMode !== Qn.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
78554
78554
|
}
|
|
@@ -79742,16 +79742,16 @@ function T3(e, t, n, r) {
|
|
|
79742
79742
|
s = e.push("list_item_open", "li", 1), s.markup = String.fromCharCode(h);
|
|
79743
79743
|
const O = [l, 0];
|
|
79744
79744
|
s.map = O, u && (s.info = e.src.slice(a, m - 1));
|
|
79745
|
-
const
|
|
79746
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = R, e.tight = !0, e.tShift[l] = v - e.bMarks[l], e.sCount[l] = y, v >= i && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, l, n, !0), (!e.tight || S) && (c = !1), S = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = Y, e.tShift[l] =
|
|
79745
|
+
const M = e.tight, V = e.tShift[l], B = e.sCount[l], Y = e.listIndent;
|
|
79746
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = R, e.tight = !0, e.tShift[l] = v - e.bMarks[l], e.sCount[l] = y, v >= i && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, l, n, !0), (!e.tight || S) && (c = !1), S = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = Y, e.tShift[l] = V, e.sCount[l] = B, e.tight = M, s = e.push("list_item_close", "li", -1), s.markup = String.fromCharCode(h), l = e.line, O[1] = l, l >= n || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
79747
79747
|
break;
|
|
79748
|
-
let
|
|
79748
|
+
let W = !1;
|
|
79749
79749
|
for (let K = 0, A = E.length; K < A; K++)
|
|
79750
79750
|
if (E[K](e, l, n, !0)) {
|
|
79751
|
-
|
|
79751
|
+
W = !0;
|
|
79752
79752
|
break;
|
|
79753
79753
|
}
|
|
79754
|
-
if (
|
|
79754
|
+
if (W)
|
|
79755
79755
|
break;
|
|
79756
79756
|
if (u) {
|
|
79757
79757
|
if (m = jh(e, l), m < 0)
|
|
@@ -79777,8 +79777,8 @@ function O3(e, t, n, r) {
|
|
|
79777
79777
|
const T = e.md.block.ruler.getRules("reference"), R = e.parentType;
|
|
79778
79778
|
e.parentType = "reference";
|
|
79779
79779
|
let O = !1;
|
|
79780
|
-
for (let
|
|
79781
|
-
if (T[
|
|
79780
|
+
for (let M = 0, V = T.length; M < V; M++)
|
|
79781
|
+
if (T[M](e, E, b, !0)) {
|
|
79782
79782
|
O = !0;
|
|
79783
79783
|
break;
|
|
79784
79784
|
}
|
|
@@ -81258,10 +81258,10 @@ function qB(e, t, n) {
|
|
|
81258
81258
|
}
|
|
81259
81259
|
const R = p.parentType, O = p.lineMax;
|
|
81260
81260
|
p.parentType = "container", p.lineMax = T;
|
|
81261
|
-
const
|
|
81262
|
-
|
|
81263
|
-
const
|
|
81264
|
-
return
|
|
81261
|
+
const M = p.push("container_" + t + "_open", "div", 1);
|
|
81262
|
+
M.markup = y, M.block = !0, M.info = v, M.map = [m, T], p.md.block.tokenize(p, m + 1, T);
|
|
81263
|
+
const V = p.push("container_" + t + "_close", "div", -1);
|
|
81264
|
+
return V.markup = p.src.slice(E, g), V.block = !0, p.parentType = R, p.lineMax = O, p.line = T + (S ? 1 : 0), !0;
|
|
81265
81265
|
}
|
|
81266
81266
|
e.block.ruler.before("fence", "container_" + t, u, {
|
|
81267
81267
|
alt: ["paragraph", "reference", "blockquote", "list"]
|
|
@@ -82512,7 +82512,7 @@ const $4 = {
|
|
|
82512
82512
|
});
|
|
82513
82513
|
}), fd(() => {
|
|
82514
82514
|
i && i.destroy();
|
|
82515
|
-
}), (s, l) => (
|
|
82515
|
+
}), (s, l) => (H(), fe("div", {
|
|
82516
82516
|
ref_key: "editorRef",
|
|
82517
82517
|
ref: r,
|
|
82518
82518
|
style: { height: "400px" }
|
|
@@ -82564,7 +82564,7 @@ const $4 = {
|
|
|
82564
82564
|
i.value = t.modelValue;
|
|
82565
82565
|
break;
|
|
82566
82566
|
}
|
|
82567
|
-
}), (o, a) => (
|
|
82567
|
+
}), (o, a) => (H(), fe("span", null, hi(i.value), 1));
|
|
82568
82568
|
}
|
|
82569
82569
|
});
|
|
82570
82570
|
var qi = { exports: {} }, i_;
|
|
@@ -82591,16 +82591,16 @@ function W4() {
|
|
|
82591
82591
|
}
|
|
82592
82592
|
function p() {
|
|
82593
82593
|
u();
|
|
82594
|
-
for (var v = 0, T = [], R = [T], O = T,
|
|
82595
|
-
if (
|
|
82594
|
+
for (var v = 0, T = [], R = [T], O = T, M; M = c(/^(\()/) || c(/^(\))/) || c(/^(,)/) || c(t); ) {
|
|
82595
|
+
if (M === "(")
|
|
82596
82596
|
R.push(O), O = [], R[R.length - 1].push(O), v++;
|
|
82597
|
-
else if (
|
|
82597
|
+
else if (M === ")") {
|
|
82598
82598
|
if (O.length === 0 || (O = R.pop(), !O)) return null;
|
|
82599
82599
|
if (v--, v === 0) break;
|
|
82600
|
-
} else if (
|
|
82600
|
+
} else if (M === ",")
|
|
82601
82601
|
O = [], R[R.length - 1].push(O);
|
|
82602
|
-
else if (!
|
|
82603
|
-
Array.prototype.push.apply(O,
|
|
82602
|
+
else if (!M.split(/\s/g).some(isNaN))
|
|
82603
|
+
Array.prototype.push.apply(O, M.split(/\s/g).map(parseFloat));
|
|
82604
82604
|
else
|
|
82605
82605
|
return null;
|
|
82606
82606
|
u();
|
|
@@ -83186,8 +83186,8 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83186
83186
|
const i = WS, o = eb, a = sb, s = (l) => {
|
|
83187
83187
|
r.value = l, l === "none" ? n("draw-cancel") : n("draw-start", l);
|
|
83188
83188
|
};
|
|
83189
|
-
return (l, c) => (
|
|
83190
|
-
e.geomType === "point" ? (
|
|
83189
|
+
return (l, c) => (H(), fe("div", eU, [
|
|
83190
|
+
e.geomType === "point" ? (H(), Ee(U(ht), {
|
|
83191
83191
|
key: 0,
|
|
83192
83192
|
type: "primary",
|
|
83193
83193
|
size: "small",
|
|
@@ -83196,7 +83196,7 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83196
83196
|
icon: U(i),
|
|
83197
83197
|
class: Zi({ active: r.value === "point" })
|
|
83198
83198
|
}, null, 8, ["icon", "class"])) : Ze("", !0),
|
|
83199
|
-
e.geomType === "linestring" ? (
|
|
83199
|
+
e.geomType === "linestring" ? (H(), Ee(U(ht), {
|
|
83200
83200
|
key: 1,
|
|
83201
83201
|
type: "primary",
|
|
83202
83202
|
size: "small",
|
|
@@ -83205,7 +83205,7 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83205
83205
|
icon: U(o),
|
|
83206
83206
|
class: Zi({ active: r.value === "line" })
|
|
83207
83207
|
}, null, 8, ["icon", "class"])) : Ze("", !0),
|
|
83208
|
-
e.geomType === "polygon" ? (
|
|
83208
|
+
e.geomType === "polygon" ? (H(), Ee(U(ht), {
|
|
83209
83209
|
key: 2,
|
|
83210
83210
|
type: "primary",
|
|
83211
83211
|
size: "small",
|
|
@@ -83292,13 +83292,13 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83292
83292
|
};
|
|
83293
83293
|
return fd(() => {
|
|
83294
83294
|
o && (o.destroy(), o = void 0);
|
|
83295
|
-
}), (u, p) => (
|
|
83295
|
+
}), (u, p) => (H(), fe("div", iU, [
|
|
83296
83296
|
ce(U($S), {
|
|
83297
83297
|
options: a.mapViewData,
|
|
83298
83298
|
onLoad: l
|
|
83299
83299
|
}, {
|
|
83300
83300
|
"top-left": ne(() => [
|
|
83301
|
-
e.currentOperationType !== "details" ? (
|
|
83301
|
+
e.currentOperationType !== "details" ? (H(), Ee(rU, {
|
|
83302
83302
|
key: 0,
|
|
83303
83303
|
onDrawStart: c,
|
|
83304
83304
|
onDrawCancel: d
|
|
@@ -83310,7 +83310,7 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83310
83310
|
}, null, 8, ["data"])
|
|
83311
83311
|
]),
|
|
83312
83312
|
default: ne(() => [
|
|
83313
|
-
|
|
83313
|
+
Rn(u.$slots, "default", {}, void 0, !0)
|
|
83314
83314
|
]),
|
|
83315
83315
|
_: 3
|
|
83316
83316
|
}, 8, ["options"])
|
|
@@ -83383,7 +83383,7 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83383
83383
|
return p.join(`
|
|
83384
83384
|
`);
|
|
83385
83385
|
};
|
|
83386
|
-
return (c, d) => (
|
|
83386
|
+
return (c, d) => (H(), fe("div", null, [
|
|
83387
83387
|
ce(U(ht), {
|
|
83388
83388
|
type: "default",
|
|
83389
83389
|
round: "",
|
|
@@ -83455,7 +83455,7 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83455
83455
|
"onUpdate:modelValue": d[2] || (d[2] = (u) => i.selectedFields = u)
|
|
83456
83456
|
}, {
|
|
83457
83457
|
default: ne(() => [
|
|
83458
|
-
(
|
|
83458
|
+
(H(!0), fe(nt, null, Dn(a.value, (u) => (H(), fe("div", {
|
|
83459
83459
|
key: u.columnProperty,
|
|
83460
83460
|
class: "column-item"
|
|
83461
83461
|
}, [
|
|
@@ -83510,7 +83510,7 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83510
83510
|
o.value = [...s];
|
|
83511
83511
|
},
|
|
83512
83512
|
{ deep: !0 }
|
|
83513
|
-
), (s, l) => (
|
|
83513
|
+
), (s, l) => (H(), fe("div", null, [
|
|
83514
83514
|
ce(U(US), {
|
|
83515
83515
|
visible: i.value,
|
|
83516
83516
|
"onUpdate:visible": l[0] || (l[0] = (c) => i.value = c),
|
|
@@ -83537,7 +83537,7 @@ const eU = { class: "map-draw-container" }, tU = {
|
|
|
83537
83537
|
]),
|
|
83538
83538
|
default: ne(() => [
|
|
83539
83539
|
Fe("div", pU, [
|
|
83540
|
-
(
|
|
83540
|
+
(H(!0), fe(nt, null, Dn(e.tableColumns, (c) => (H(), fe("div", {
|
|
83541
83541
|
class: "column-item",
|
|
83542
83542
|
key: c.columnProperty
|
|
83543
83543
|
}, [
|
|
@@ -83786,8 +83786,8 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83786
83786
|
emits: ["loadDataSuccess", "switchChange"],
|
|
83787
83787
|
setup(e, { expose: t, emit: n }) {
|
|
83788
83788
|
const r = e, i = Ne(!1), o = Ne(null), a = Ne(null), s = Ne(r.isDark);
|
|
83789
|
-
tn(() => r.isDark, (
|
|
83790
|
-
s.value =
|
|
83789
|
+
tn(() => r.isDark, (q) => {
|
|
83790
|
+
s.value = q, q ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
83791
83791
|
});
|
|
83792
83792
|
const l = n, c = Ne(), d = new gU({ serverConfig: r.serverConfig }), u = Ne(""), p = Ne("details"), m = un({
|
|
83793
83793
|
priKey: "id",
|
|
@@ -83829,11 +83829,11 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83829
83829
|
columns: []
|
|
83830
83830
|
}), b = Ne({}), f = Ne(!1), y = Ne([]), v = un({
|
|
83831
83831
|
data: {}
|
|
83832
|
-
}), T = Ne({}), R = Ne(!1), O = Ne(!1),
|
|
83832
|
+
}), T = Ne({}), R = Ne(!1), O = Ne(!1), M = Ne(), V = Ne([]), B = async () => {
|
|
83833
83833
|
if (r.serverConfig?.list)
|
|
83834
83834
|
try {
|
|
83835
83835
|
i.value = !0;
|
|
83836
|
-
const
|
|
83836
|
+
const q = await r.serverConfig?.list({
|
|
83837
83837
|
whereClause: d.formatSearchForm(b.value),
|
|
83838
83838
|
orderParam: [
|
|
83839
83839
|
{
|
|
@@ -83846,8 +83846,8 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83846
83846
|
pageSize: _.pageSize
|
|
83847
83847
|
}
|
|
83848
83848
|
});
|
|
83849
|
-
if (
|
|
83850
|
-
const Q =
|
|
83849
|
+
if (q) {
|
|
83850
|
+
const Q = q.data;
|
|
83851
83851
|
y.value = Q.dataList || [], _.total = Q.totalCount, l("loadDataSuccess", y.value);
|
|
83852
83852
|
}
|
|
83853
83853
|
} catch {
|
|
@@ -83856,16 +83856,16 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83856
83856
|
}
|
|
83857
83857
|
}, Y = () => {
|
|
83858
83858
|
b.value = JSON.parse(d.cloneSearchForm), B();
|
|
83859
|
-
},
|
|
83859
|
+
}, W = async () => {
|
|
83860
83860
|
r.serverConfig?.add && (p.value = "add", S.formColumns = d.getFormItems("add"), g.title = "新增信息", f.value = !0, v.data = JSON.parse(d.cloneFormData));
|
|
83861
83861
|
}, K = async () => {
|
|
83862
83862
|
if (r.serverConfig?.deleteBatch && a?.value) {
|
|
83863
|
-
const
|
|
83864
|
-
if (
|
|
83863
|
+
const q = a.value.getSelectionRows();
|
|
83864
|
+
if (q.length === 0) {
|
|
83865
83865
|
Qe.warning("请选择要删除的项");
|
|
83866
83866
|
return;
|
|
83867
83867
|
}
|
|
83868
|
-
const Q =
|
|
83868
|
+
const Q = q.map((x) => x[m.priKey || "id"]);
|
|
83869
83869
|
Q.length > 0 && Pu.confirm("确定删除选中项吗?", "提示", {
|
|
83870
83870
|
confirmButtonText: "确定",
|
|
83871
83871
|
cancelButtonText: "取消",
|
|
@@ -83874,15 +83874,15 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83874
83874
|
await r.serverConfig?.deleteBatch?.(Q.join(",")) ? Qe.success("删除成功") : Qe.error("删除失败"), B();
|
|
83875
83875
|
});
|
|
83876
83876
|
}
|
|
83877
|
-
}, A = (
|
|
83878
|
-
_.pageSize = Number(
|
|
83879
|
-
}, C = (
|
|
83880
|
-
_.currentPage =
|
|
83881
|
-
}, N = async (
|
|
83877
|
+
}, A = (q) => {
|
|
83878
|
+
_.pageSize = Number(q), B();
|
|
83879
|
+
}, C = (q) => {
|
|
83880
|
+
_.currentPage = q, B();
|
|
83881
|
+
}, N = async (q) => {
|
|
83882
83882
|
if (r.serverConfig?.view) {
|
|
83883
83883
|
p.value = "details", S.formColumns = d.getFormItems("details"), g.title = "查看详情";
|
|
83884
83884
|
try {
|
|
83885
|
-
const Q =
|
|
83885
|
+
const Q = q[m.priKey || "id"];
|
|
83886
83886
|
if (!Q) {
|
|
83887
83887
|
Qe.error("查看失败,未获取到主键值");
|
|
83888
83888
|
return;
|
|
@@ -83896,15 +83896,15 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83896
83896
|
Qe.error("查询失败");
|
|
83897
83897
|
}
|
|
83898
83898
|
}
|
|
83899
|
-
}, L = async (
|
|
83900
|
-
r.serverConfig?.update && (p.value = "update", S.formColumns = d.getFormItems("update"), g.title = "编辑信息", f.value = !0, v.data = { ...
|
|
83901
|
-
}, $ = (
|
|
83899
|
+
}, L = async (q) => {
|
|
83900
|
+
r.serverConfig?.update && (p.value = "update", S.formColumns = d.getFormItems("update"), g.title = "编辑信息", f.value = !0, v.data = { ...q });
|
|
83901
|
+
}, $ = (q) => {
|
|
83902
83902
|
r.serverConfig?.delete && Pu.confirm("确定删除选中项吗?", "提示", {
|
|
83903
83903
|
confirmButtonText: "确定",
|
|
83904
83904
|
cancelButtonText: "取消",
|
|
83905
83905
|
type: "warning"
|
|
83906
83906
|
}).then(async () => {
|
|
83907
|
-
const Q =
|
|
83907
|
+
const Q = q[m.priKey || "id"];
|
|
83908
83908
|
if (!Q) {
|
|
83909
83909
|
Qe.error("删除失败,未获取到主键值");
|
|
83910
83910
|
return;
|
|
@@ -83912,8 +83912,8 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83912
83912
|
await r.serverConfig?.delete?.(Q) ? (Qe.success("删除成功"), B()) : Qe.error("删除失败");
|
|
83913
83913
|
});
|
|
83914
83914
|
}, X = () => {
|
|
83915
|
-
R.value = !0, c.value?.validate(async (
|
|
83916
|
-
if (
|
|
83915
|
+
R.value = !0, c.value?.validate(async (q, Q) => {
|
|
83916
|
+
if (q) {
|
|
83917
83917
|
let x = p.value === "add" ? r.serverConfig?.add : r.serverConfig?.update;
|
|
83918
83918
|
if (x)
|
|
83919
83919
|
try {
|
|
@@ -83931,15 +83931,15 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83931
83931
|
} else
|
|
83932
83932
|
R.value = !1;
|
|
83933
83933
|
});
|
|
83934
|
-
}, le = (
|
|
83935
|
-
l("switchChange",
|
|
83934
|
+
}, le = (q) => {
|
|
83935
|
+
l("switchChange", q);
|
|
83936
83936
|
};
|
|
83937
83937
|
Ho(async () => {
|
|
83938
83938
|
if (r.serverConfig?.init) {
|
|
83939
|
-
const
|
|
83940
|
-
if (
|
|
83941
|
-
const Q =
|
|
83942
|
-
Object.assign(m, Q || {}), Object.assign(h, x?.tableConfig || {}), Object.assign(g, x?.dialogConfig || {}), Object.assign(S?.columns || [], x?.editorConfig || {}), _.pageSize = h.defaultPageSize || _.pageSize, h.visibleOperationButtons = (h.operationButtons || []).map((ge) => ge.type), console.log("curdConfig", m), console.log("tableConfig", h), console.log("dialogConfig", g), console.log("editorConfig", S), E.searchFormWidth = h.searchFormWidth && h.searchFormWidth !== "" ? h.searchFormWidth : E.searchFormWidth, E.searchLabelWidth = h.searchLabelWidth && h.searchLabelWidth !== "" ? h.searchLabelWidth : E.searchLabelWidth, d.setConfig({ curdConfig: m, searchConfig: E, tableConfig: h, editorConfig: S }), await d.loadDictionary(),
|
|
83939
|
+
const q = await r.serverConfig.init();
|
|
83940
|
+
if (q.success && q.data) {
|
|
83941
|
+
const Q = q.data || {}, x = Q.dataExt ? JSON.parse(Q.dataExt) : {};
|
|
83942
|
+
Object.assign(m, Q || {}), Object.assign(h, x?.tableConfig || {}), Object.assign(g, x?.dialogConfig || {}), Object.assign(S?.columns || [], x?.editorConfig || {}), _.pageSize = h.defaultPageSize || _.pageSize, h.visibleOperationButtons = (h.operationButtons || []).map((ge) => ge.type), console.log("curdConfig", m), console.log("tableConfig", h), console.log("dialogConfig", g), console.log("editorConfig", S), E.searchFormWidth = h.searchFormWidth && h.searchFormWidth !== "" ? h.searchFormWidth : E.searchFormWidth, E.searchLabelWidth = h.searchLabelWidth && h.searchLabelWidth !== "" ? h.searchLabelWidth : E.searchLabelWidth, d.setConfig({ curdConfig: m, searchConfig: E, tableConfig: h, editorConfig: S }), await d.loadDictionary(), V.value = d.initVisibleColumns(), b.value = d.formatSearchConfigForm(), v.data = d.formatFormConfigData(), T.value = d.formatFormRules(), M.value = d.hasGeometryField(), await d.loadDictionary(), requestAnimationFrame(() => {
|
|
83943
83943
|
u.value = o.value?.clientHeight + "px";
|
|
83944
83944
|
}), setTimeout(() => {
|
|
83945
83945
|
B();
|
|
@@ -83957,21 +83957,21 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83957
83957
|
};
|
|
83958
83958
|
fd(() => {
|
|
83959
83959
|
window.removeEventListener("resize", Re);
|
|
83960
|
-
}), tn(f, (
|
|
83961
|
-
|
|
83960
|
+
}), tn(f, (q) => {
|
|
83961
|
+
q ? xS(() => {
|
|
83962
83962
|
O.value = !0;
|
|
83963
83963
|
}) : O.value = !1;
|
|
83964
83964
|
});
|
|
83965
|
-
const Ce = (
|
|
83966
|
-
y.value =
|
|
83967
|
-
}, me = (
|
|
83968
|
-
h.columns =
|
|
83965
|
+
const Ce = (q) => {
|
|
83966
|
+
y.value = q;
|
|
83967
|
+
}, me = (q) => {
|
|
83968
|
+
h.columns = q;
|
|
83969
83969
|
};
|
|
83970
83970
|
return t({
|
|
83971
83971
|
// 设置表单数据
|
|
83972
83972
|
setTableData: Ce,
|
|
83973
83973
|
getTableData: () => y.value
|
|
83974
|
-
}), (
|
|
83974
|
+
}), (q, Q) => (H(), fe(nt, null, [
|
|
83975
83975
|
Fe("div", fU, [
|
|
83976
83976
|
Fe("div", EU, [
|
|
83977
83977
|
ce(U(Sc), {
|
|
@@ -83980,16 +83980,16 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
83980
83980
|
"label-width": E.searchLabelWidth
|
|
83981
83981
|
}, {
|
|
83982
83982
|
default: ne(() => [
|
|
83983
|
-
(
|
|
83983
|
+
(H(!0), fe(nt, null, Dn(E.columns, (x) => (H(), Ee(U(Xi), {
|
|
83984
83984
|
key: x.columnProperty,
|
|
83985
83985
|
label: x.searchFormLabel || x.columnLabel,
|
|
83986
83986
|
style: DS(`width: ${E.searchFormWidth}px;`)
|
|
83987
83987
|
}, {
|
|
83988
83988
|
default: ne(() => [
|
|
83989
|
-
x.showMethod === "slot" ?
|
|
83989
|
+
x.showMethod === "slot" ? Rn(q.$slots, "search-" + x.columnProperty, {
|
|
83990
83990
|
key: 0,
|
|
83991
|
-
scope: { ...
|
|
83992
|
-
}, void 0, !0) : (
|
|
83991
|
+
scope: { ...q.scope, searchForm: b.value, data: b.value[x.columnProperty] }
|
|
83992
|
+
}, void 0, !0) : (H(), Ee(Fu, {
|
|
83993
83993
|
key: 1,
|
|
83994
83994
|
modelValue: b.value[x.columnProperty],
|
|
83995
83995
|
"onUpdate:modelValue": (ge) => b.value[x.columnProperty] = ge,
|
|
@@ -84030,21 +84030,21 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84030
84030
|
_: 3
|
|
84031
84031
|
}, 8, ["label-width"])
|
|
84032
84032
|
]),
|
|
84033
|
-
m.webFunction.length > 0 ? (
|
|
84033
|
+
m.webFunction.length > 0 ? (H(), fe("div", SU, [
|
|
84034
84034
|
Fe("div", bU, [
|
|
84035
|
-
e.permissions.add && m.webFunction.includes("add") ? (
|
|
84035
|
+
e.permissions.add && m.webFunction.includes("add") ? (H(), Ee(U(ht), {
|
|
84036
84036
|
key: 0,
|
|
84037
84037
|
type: "primary",
|
|
84038
84038
|
size: e.size,
|
|
84039
84039
|
icon: "CirclePlus",
|
|
84040
|
-
onClick:
|
|
84040
|
+
onClick: W
|
|
84041
84041
|
}, {
|
|
84042
84042
|
default: ne(() => [...Q[8] || (Q[8] = [
|
|
84043
84043
|
bt("新增", -1)
|
|
84044
84044
|
])]),
|
|
84045
84045
|
_: 1
|
|
84046
84046
|
}, 8, ["size"])) : Ze("", !0),
|
|
84047
|
-
e.permissions.delete && m.webFunction.includes("batchDelete") ? (
|
|
84047
|
+
e.permissions.delete && m.webFunction.includes("batchDelete") ? (H(), Ee(U(ht), {
|
|
84048
84048
|
key: 1,
|
|
84049
84049
|
type: "danger",
|
|
84050
84050
|
size: e.size,
|
|
@@ -84056,20 +84056,20 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84056
84056
|
])]),
|
|
84057
84057
|
_: 1
|
|
84058
84058
|
}, 8, ["size"])) : Ze("", !0),
|
|
84059
|
-
|
|
84059
|
+
Rn(q.$slots, "table-actions", {}, void 0, !0)
|
|
84060
84060
|
]),
|
|
84061
84061
|
Fe("div", vU, [
|
|
84062
|
-
|
|
84063
|
-
e.permissions.export && m.webFunction.includes("export") ? (
|
|
84062
|
+
Rn(q.$slots, "table-actions-right", {}, void 0, !0),
|
|
84063
|
+
e.permissions.export && m.webFunction.includes("export") ? (H(), Ee(uU, {
|
|
84064
84064
|
key: 0,
|
|
84065
84065
|
columns: h.columns,
|
|
84066
|
-
"visible-columns":
|
|
84066
|
+
"visible-columns": V.value,
|
|
84067
84067
|
data: y.value
|
|
84068
84068
|
}, null, 8, ["columns", "visible-columns", "data"])) : Ze("", !0),
|
|
84069
84069
|
ce(_U, {
|
|
84070
84070
|
"table-columns": h.columns,
|
|
84071
|
-
"visible-columns":
|
|
84072
|
-
"onUpdate:visibleColumns": Q[0] || (Q[0] = (x) =>
|
|
84071
|
+
"visible-columns": V.value,
|
|
84072
|
+
"onUpdate:visibleColumns": Q[0] || (Q[0] = (x) => V.value = x),
|
|
84073
84073
|
"onUpdate:columns": me
|
|
84074
84074
|
}, null, 8, ["table-columns", "visible-columns"])
|
|
84075
84075
|
])
|
|
@@ -84090,23 +84090,23 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84090
84090
|
"header-cell-style": s.value ? { background: "var(--el-fill-color-light)" } : { background: "#F5F7FA" }
|
|
84091
84091
|
}, {
|
|
84092
84092
|
default: ne(() => [
|
|
84093
|
-
h.showIndex ? (
|
|
84093
|
+
h.showIndex ? (H(), Ee(U(ta), {
|
|
84094
84094
|
key: 0,
|
|
84095
84095
|
type: "index",
|
|
84096
84096
|
width: h.indexWidth,
|
|
84097
84097
|
label: "#",
|
|
84098
84098
|
align: "center"
|
|
84099
84099
|
}, null, 8, ["width"])) : Ze("", !0),
|
|
84100
|
-
e.permissions.delete && m.webFunction.includes("batchDelete") ? (
|
|
84100
|
+
e.permissions.delete && m.webFunction.includes("batchDelete") ? (H(), Ee(U(ta), {
|
|
84101
84101
|
key: 1,
|
|
84102
84102
|
type: "selection",
|
|
84103
84103
|
width: "55",
|
|
84104
84104
|
align: "center"
|
|
84105
84105
|
})) : Ze("", !0),
|
|
84106
|
-
(
|
|
84106
|
+
(H(!0), fe(nt, null, Dn(h.columns, (x) => (H(), fe(nt, {
|
|
84107
84107
|
key: x.prop
|
|
84108
84108
|
}, [
|
|
84109
|
-
|
|
84109
|
+
V.value.includes(x.columnProperty) ? (H(), Ee(U(ta), {
|
|
84110
84110
|
key: 0,
|
|
84111
84111
|
label: x.columnLabel,
|
|
84112
84112
|
width: (x.width || "") + "px",
|
|
@@ -84116,10 +84116,10 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84116
84116
|
"header-align": x.headerAlign
|
|
84117
84117
|
}, {
|
|
84118
84118
|
default: ne((ge) => [
|
|
84119
|
-
x.showMethod === "slot" ?
|
|
84119
|
+
x.showMethod === "slot" ? Rn(q.$slots, "table-column-" + x.columnProperty, {
|
|
84120
84120
|
key: 0,
|
|
84121
84121
|
scope: ge
|
|
84122
|
-
}, void 0, !0) : x.showMethod === "upload" ? (
|
|
84122
|
+
}, void 0, !0) : x.showMethod === "upload" ? (H(), Ee(bl, {
|
|
84123
84123
|
key: 1,
|
|
84124
84124
|
item: x,
|
|
84125
84125
|
modelValue: ge.row[x.columnProperty],
|
|
@@ -84127,7 +84127,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84127
84127
|
currentOperationType: "column",
|
|
84128
84128
|
headers: e.serverConfig.headers(),
|
|
84129
84129
|
download: e.serverConfig.download()
|
|
84130
|
-
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "headers", "download"])) : x.showMethod === "tag" ? (
|
|
84130
|
+
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "headers", "download"])) : x.showMethod === "tag" ? (H(), Ee(U(VS), {
|
|
84131
84131
|
key: 2,
|
|
84132
84132
|
type: ge?.row[x.columnProperty] === 1 || ge?.row[x.columnProperty] === "1" ? "success" : x.tagType || "info"
|
|
84133
84133
|
}, {
|
|
@@ -84138,7 +84138,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84138
84138
|
)), 1)
|
|
84139
84139
|
]),
|
|
84140
84140
|
_: 2
|
|
84141
|
-
}, 1032, ["type"])) : x.showMethod === "switch" ? (
|
|
84141
|
+
}, 1032, ["type"])) : x.showMethod === "switch" ? (H(), Ee(U(GS), {
|
|
84142
84142
|
key: 3,
|
|
84143
84143
|
modelValue: ge.row[x.columnProperty],
|
|
84144
84144
|
"onUpdate:modelValue": (Je) => ge.row[x.columnProperty] = Je,
|
|
@@ -84147,7 +84147,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84147
84147
|
"active-text": "是",
|
|
84148
84148
|
"inactive-text": "否",
|
|
84149
84149
|
onChange: (Je) => le(ge)
|
|
84150
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (
|
|
84150
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (H(), fe(nt, { key: 4 }, [
|
|
84151
84151
|
bt(hi(U(d).formatColumnValue(x, ge?.row[x.columnProperty])), 1)
|
|
84152
84152
|
], 64))
|
|
84153
84153
|
]),
|
|
@@ -84161,7 +84161,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84161
84161
|
label: "操作"
|
|
84162
84162
|
}, {
|
|
84163
84163
|
default: ne((x) => [
|
|
84164
|
-
h.visibleOperationButtons.includes("detail") ? (
|
|
84164
|
+
h.visibleOperationButtons.includes("detail") ? (H(), Ee(U(ht), {
|
|
84165
84165
|
key: 0,
|
|
84166
84166
|
type: "primary",
|
|
84167
84167
|
plain: "",
|
|
@@ -84173,7 +84173,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84173
84173
|
])]),
|
|
84174
84174
|
_: 1
|
|
84175
84175
|
}, 8, ["size", "onClick"])) : Ze("", !0),
|
|
84176
|
-
h.visibleOperationButtons.includes("edit") && e.permissions.edit ? (
|
|
84176
|
+
h.visibleOperationButtons.includes("edit") && e.permissions.edit ? (H(), Ee(U(ht), {
|
|
84177
84177
|
key: 1,
|
|
84178
84178
|
type: "success",
|
|
84179
84179
|
plain: "",
|
|
@@ -84185,7 +84185,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84185
84185
|
])]),
|
|
84186
84186
|
_: 1
|
|
84187
84187
|
}, 8, ["size", "onClick"])) : Ze("", !0),
|
|
84188
|
-
h.visibleOperationButtons.includes("delete") && e.permissions.delete ? (
|
|
84188
|
+
h.visibleOperationButtons.includes("delete") && e.permissions.delete ? (H(), Ee(U(ht), {
|
|
84189
84189
|
key: 2,
|
|
84190
84190
|
type: "danger",
|
|
84191
84191
|
plain: "",
|
|
@@ -84197,7 +84197,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84197
84197
|
])]),
|
|
84198
84198
|
_: 1
|
|
84199
84199
|
}, 8, ["size", "onClick"])) : Ze("", !0),
|
|
84200
|
-
|
|
84200
|
+
Rn(q.$slots, "table-column-action", { scope: x }, void 0, !0)
|
|
84201
84201
|
]),
|
|
84202
84202
|
_: 3
|
|
84203
84203
|
}, 8, ["align", "width"])
|
|
@@ -84205,7 +84205,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84205
84205
|
_: 3
|
|
84206
84206
|
}, 8, ["data", "size", "height", "header-cell-style"])
|
|
84207
84207
|
], 512),
|
|
84208
|
-
h.showPagination ? (
|
|
84208
|
+
h.showPagination ? (H(), fe("div", yU, [
|
|
84209
84209
|
ce(U(zS), {
|
|
84210
84210
|
"current-page": _.currentPage,
|
|
84211
84211
|
"onUpdate:currentPage": Q[1] || (Q[1] = (x) => _.currentPage = x),
|
|
@@ -84236,7 +84236,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84236
84236
|
ce(U(Sl), null, {
|
|
84237
84237
|
default: ne(() => [
|
|
84238
84238
|
ce(U(na), {
|
|
84239
|
-
span:
|
|
84239
|
+
span: M.value ? 24 - M.value.span : 24
|
|
84240
84240
|
}, {
|
|
84241
84241
|
default: ne(() => [
|
|
84242
84242
|
ce(U(Sc), {
|
|
@@ -84257,7 +84257,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84257
84257
|
default: ne(() => [
|
|
84258
84258
|
ce(U(Sl), null, {
|
|
84259
84259
|
default: ne(() => [
|
|
84260
|
-
(
|
|
84260
|
+
(H(!0), fe(nt, null, Dn(S.formColumns, (x) => (H(), Ee(U(na), {
|
|
84261
84261
|
key: x.columnProperty,
|
|
84262
84262
|
span: x.span || 12
|
|
84263
84263
|
}, {
|
|
@@ -84267,12 +84267,12 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84267
84267
|
prop: x.columnProperty
|
|
84268
84268
|
}, {
|
|
84269
84269
|
default: ne(() => [
|
|
84270
|
-
p.value === "details" ? (
|
|
84271
|
-
x.type === "slot" ?
|
|
84270
|
+
p.value === "details" ? (H(), fe(nt, { key: 0 }, [
|
|
84271
|
+
x.type === "slot" ? Rn(q.$slots, "form-" + x.columnProperty, {
|
|
84272
84272
|
key: 0,
|
|
84273
84273
|
item: x,
|
|
84274
84274
|
scope: { formData: v.data, data: v.data[x.columnProperty] }
|
|
84275
|
-
}, void 0, !0) : x.type === "upload" ? (
|
|
84275
|
+
}, void 0, !0) : x.type === "upload" ? (H(), Ee(bl, {
|
|
84276
84276
|
key: 1,
|
|
84277
84277
|
item: x,
|
|
84278
84278
|
modelValue: v.data[x.columnProperty],
|
|
@@ -84281,19 +84281,19 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84281
84281
|
headers: e.serverConfig.headers(),
|
|
84282
84282
|
upload: e.serverConfig.upload(),
|
|
84283
84283
|
download: e.serverConfig.download()
|
|
84284
|
-
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : (
|
|
84284
|
+
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : (H(), Ee(j4, {
|
|
84285
84285
|
key: 2,
|
|
84286
84286
|
item: x,
|
|
84287
84287
|
modelValue: v.data[x.columnProperty],
|
|
84288
84288
|
"onUpdate:modelValue": (ge) => v.data[x.columnProperty] = ge,
|
|
84289
84289
|
dropdownOptions: U(d).getDictOptionsByColumnProperty(x.columnProperty)
|
|
84290
84290
|
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "dropdownOptions"]))
|
|
84291
|
-
], 64)) : (
|
|
84292
|
-
x.type === "slot" ?
|
|
84291
|
+
], 64)) : (H(), fe(nt, { key: 1 }, [
|
|
84292
|
+
x.type === "slot" ? Rn(q.$slots, "form-" + x.columnProperty, {
|
|
84293
84293
|
key: 0,
|
|
84294
84294
|
item: x,
|
|
84295
84295
|
scope: { formData: v.data, data: v.data[x.columnProperty] }
|
|
84296
|
-
}, void 0, !0) : x.type === "upload" ? (
|
|
84296
|
+
}, void 0, !0) : x.type === "upload" ? (H(), Ee(bl, {
|
|
84297
84297
|
key: 1,
|
|
84298
84298
|
item: x,
|
|
84299
84299
|
modelValue: v.data[x.columnProperty],
|
|
@@ -84302,13 +84302,13 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84302
84302
|
headers: e.serverConfig.headers(),
|
|
84303
84303
|
upload: e.serverConfig.upload(),
|
|
84304
84304
|
download: e.serverConfig.download()
|
|
84305
|
-
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : x.type === "editor" ? (
|
|
84305
|
+
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : x.type === "editor" ? (H(), Ee(Y4, {
|
|
84306
84306
|
key: 2,
|
|
84307
84307
|
item: x,
|
|
84308
84308
|
modelValue: v.data[x.columnProperty],
|
|
84309
84309
|
"onUpdate:modelValue": (ge) => v.data[x.columnProperty] = ge,
|
|
84310
84310
|
currentOperationType: p.value
|
|
84311
|
-
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType"])) : (
|
|
84311
|
+
}, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType"])) : (H(), Ee(Fu, {
|
|
84312
84312
|
key: 3,
|
|
84313
84313
|
item: x,
|
|
84314
84314
|
modelValue: v.data[x.columnProperty],
|
|
@@ -84338,22 +84338,27 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84338
84338
|
]),
|
|
84339
84339
|
_: 3
|
|
84340
84340
|
}, 8, ["span"]),
|
|
84341
|
-
|
|
84341
|
+
M.value ? (H(), Ee(U(na), {
|
|
84342
84342
|
key: 0,
|
|
84343
|
-
span:
|
|
84344
|
-
style: { padding: "0 10px" }
|
|
84343
|
+
span: M.value ? M.value.span : 0
|
|
84345
84344
|
}, {
|
|
84346
84345
|
default: ne(() => [
|
|
84347
|
-
|
|
84346
|
+
q.$slots["form-" + M.value.columnProperty] ? Rn(q.$slots, "form-" + M.value.columnProperty, {
|
|
84348
84347
|
key: 0,
|
|
84349
|
-
|
|
84350
|
-
|
|
84351
|
-
|
|
84352
|
-
|
|
84353
|
-
|
|
84354
|
-
|
|
84348
|
+
item: M.value,
|
|
84349
|
+
scope: { formData: v.data, data: v.data[M.value.columnProperty] }
|
|
84350
|
+
}, void 0, !0) : (H(), fe(nt, { key: 1 }, [
|
|
84351
|
+
O.value ? (H(), Ee(sU, {
|
|
84352
|
+
key: 0,
|
|
84353
|
+
modelValue: v.data.wktstr,
|
|
84354
|
+
"onUpdate:modelValue": Q[3] || (Q[3] = (x) => v.data.wktstr = x),
|
|
84355
|
+
currentOperationType: p.value,
|
|
84356
|
+
mapViewData: e.mapViewData,
|
|
84357
|
+
geomType: m.geomType
|
|
84358
|
+
}, null, 8, ["modelValue", "currentOperationType", "mapViewData", "geomType"])) : Ze("", !0)
|
|
84359
|
+
], 64))
|
|
84355
84360
|
]),
|
|
84356
|
-
_:
|
|
84361
|
+
_: 3
|
|
84357
84362
|
}, 8, ["span"])) : Ze("", !0)
|
|
84358
84363
|
]),
|
|
84359
84364
|
_: 3
|
|
@@ -84388,7 +84393,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
|
|
|
84388
84393
|
]), 1032, ["title", "width", "modelValue"])
|
|
84389
84394
|
], 64));
|
|
84390
84395
|
}
|
|
84391
|
-
}), AU = /* @__PURE__ */ Ii(TU, [["__scopeId", "data-v-
|
|
84396
|
+
}), AU = /* @__PURE__ */ Ii(TU, [["__scopeId", "data-v-e7857107"]]);
|
|
84392
84397
|
export {
|
|
84393
84398
|
AU as CurdForm,
|
|
84394
84399
|
AU as default
|