ablok-components 0.1.170 → 0.1.172
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as SA, openBlock as q, createElementBlock as Z, normalizeClass as
|
|
1
|
+
import { defineComponent as SA, openBlock as q, createElementBlock as Z, normalizeClass as BA, createElementVNode as k, renderSlot as DA, ref as FA, resolveComponent as Ie, createBlock as Hi, createCommentVNode as NA, computed as vA, resolveDynamicComponent as cS, withCtx as Qt, toDisplayString as Oe, createVNode as UA, onMounted as yr, withDirectives as Gn, vModelDynamic as fS, vModelText as Zd, withModifiers as zt, vModelCheckbox as jd, Fragment as gn, renderList as ni, onBeforeMount as Ah, reactive as oC, watch as Bn, onBeforeUnmount as Gi, h as gr, getCurrentInstance as Zo, watchEffect as dS, nextTick as aC, unref as dA, Teleport as hS, shallowRef as eh, markRaw as pS, customRef as gS, normalizeStyle as lC, inject as BS, onUnmounted as mS, Text as wS, Transition as uC, vModelRadio as CS, mergeProps as yS, vShow as lB, useSlots as vS, TransitionGroup as QS, createTextVNode as ES } from "vue";
|
|
2
2
|
import { applyStyles as FS, createPopper as bS } from "@popperjs/core";
|
|
3
3
|
const US = {
|
|
4
4
|
class: "icon",
|
|
@@ -25,7 +25,7 @@ const US = {
|
|
|
25
25
|
},
|
|
26
26
|
setup(t) {
|
|
27
27
|
return (A, e) => (q(), Z("i", {
|
|
28
|
-
class:
|
|
28
|
+
class: BA(["svg-icon", {
|
|
29
29
|
[`svg-icon--${t.size}`]: t.size
|
|
30
30
|
}])
|
|
31
31
|
}, [
|
|
@@ -101,13 +101,13 @@ const _S = ["src", "alt"], H$ = /* @__PURE__ */ SA({
|
|
|
101
101
|
const r = Ie("loading-spinner");
|
|
102
102
|
return t.src ? (q(), Z("div", {
|
|
103
103
|
key: 0,
|
|
104
|
-
class:
|
|
104
|
+
class: BA(["base-image", {
|
|
105
105
|
"base-image--zoom": t.zoom
|
|
106
106
|
}])
|
|
107
107
|
}, [
|
|
108
108
|
t.spinner && !A.value ? (q(), Hi(r, { key: 0 })) : NA("", !0),
|
|
109
109
|
k("img", {
|
|
110
|
-
class:
|
|
110
|
+
class: BA(["", {
|
|
111
111
|
"opacity-0": !A.value,
|
|
112
112
|
"opacity-1": A.value
|
|
113
113
|
}]),
|
|
@@ -131,7 +131,7 @@ const xS = ["innerHTML"], D$ = /* @__PURE__ */ SA({
|
|
|
131
131
|
setup(t) {
|
|
132
132
|
const A = t, e = vA(() => A.tag || "p");
|
|
133
133
|
return (n, r) => (q(), Hi(cS(e.value), {
|
|
134
|
-
class:
|
|
134
|
+
class: BA(["headline", `${n.size} headline--${n.size}${n.className || ""}`])
|
|
135
135
|
}, {
|
|
136
136
|
default: Qt(() => [
|
|
137
137
|
DA(n.$slots, "default", {}, () => [
|
|
@@ -154,7 +154,7 @@ const xS = ["innerHTML"], D$ = /* @__PURE__ */ SA({
|
|
|
154
154
|
},
|
|
155
155
|
setup(t) {
|
|
156
156
|
return (A, e) => (q(), Z("p", {
|
|
157
|
-
class:
|
|
157
|
+
class: BA(["base-paragraph", `${A.size || ""} ${A.className || ""}`]),
|
|
158
158
|
innerHTML: A.text
|
|
159
159
|
}, null, 10, OS));
|
|
160
160
|
}
|
|
@@ -198,7 +198,7 @@ const LS = { class: "accordion-item" }, HS = ["id"], DS = ["data-bs-target", "ar
|
|
|
198
198
|
id: `heading${t.id}`
|
|
199
199
|
}, [
|
|
200
200
|
k("button", {
|
|
201
|
-
class:
|
|
201
|
+
class: BA(["accordion-button", !t.modelValue && "collapsed"]),
|
|
202
202
|
type: "button",
|
|
203
203
|
"data-bs-toggle": "collapse",
|
|
204
204
|
"data-bs-target": `#target${t.id}`,
|
|
@@ -212,7 +212,7 @@ const LS = { class: "accordion-item" }, HS = ["id"], DS = ["data-bs-target", "ar
|
|
|
212
212
|
], 10, DS)
|
|
213
213
|
], 8, HS),
|
|
214
214
|
k("div", {
|
|
215
|
-
class:
|
|
215
|
+
class: BA(["accordion-collapse collapse", t.modelValue && "show"]),
|
|
216
216
|
id: `target${t.id}`,
|
|
217
217
|
"aria-labelledby": `heading${t.id}`,
|
|
218
218
|
"data-bs-parent": t.parent
|
|
@@ -295,7 +295,7 @@ const N$ = /* @__PURE__ */ KS(PS, [["render", GS]]), $S = ["type", "disabled"],
|
|
|
295
295
|
return q(), Z("button", {
|
|
296
296
|
type: t.type,
|
|
297
297
|
disabled: t.disabled,
|
|
298
|
-
class:
|
|
298
|
+
class: BA(["btn", {
|
|
299
299
|
disabled: t.disabled,
|
|
300
300
|
pending: t.pending,
|
|
301
301
|
rounded: t.rounded,
|
|
@@ -319,7 +319,7 @@ const N$ = /* @__PURE__ */ KS(PS, [["render", GS]]), $S = ["type", "disabled"],
|
|
|
319
319
|
}, null, 8, ["symbol"])) : NA("", !0),
|
|
320
320
|
e.value ? (q(), Z("span", {
|
|
321
321
|
key: 1,
|
|
322
|
-
class:
|
|
322
|
+
class: BA(["base-button__caption", { "icon-padding": t.icon }])
|
|
323
323
|
}, Oe(t.caption), 3)) : NA("", !0)
|
|
324
324
|
])
|
|
325
325
|
], 10, $S);
|
|
@@ -413,7 +413,7 @@ const WS = { class: "input-group input__input-group" }, JS = ["type", "id", "nam
|
|
|
413
413
|
console.log("focusout", r.value), window.removeEventListener("update-focussed-input", s);
|
|
414
414
|
});
|
|
415
415
|
}), (s, a) => (q(), Z("div", {
|
|
416
|
-
class:
|
|
416
|
+
class: BA(["input", `input--${t.type}`])
|
|
417
417
|
}, [
|
|
418
418
|
k("div", WS, [
|
|
419
419
|
DA(s.$slots, "input-prepend", { slotScope: "props" }),
|
|
@@ -432,7 +432,7 @@ const WS = { class: "input-group input__input-group" }, JS = ["type", "id", "nam
|
|
|
432
432
|
maxlength: t.maxlength,
|
|
433
433
|
"true-value": t.trueValue,
|
|
434
434
|
"false-value": t.falseValue,
|
|
435
|
-
class:
|
|
435
|
+
class: BA(["form-control", {
|
|
436
436
|
"form-check-input": t.type === "checkbox"
|
|
437
437
|
}]),
|
|
438
438
|
"aria-label": t.label,
|
|
@@ -447,7 +447,7 @@ const WS = { class: "input-group input__input-group" }, JS = ["type", "id", "nam
|
|
|
447
447
|
t.label ? (q(), Z("label", {
|
|
448
448
|
key: 0,
|
|
449
449
|
for: t.id,
|
|
450
|
-
class:
|
|
450
|
+
class: BA(["input__label", {
|
|
451
451
|
"form-check-label": t.type === "checkbox"
|
|
452
452
|
}]),
|
|
453
453
|
innerHTML: `${t.label}${t.required ? " *" : ""}`
|
|
@@ -534,7 +534,7 @@ const YS = { class: "input input--textarea" }, zS = ["type", "id", "name", "plac
|
|
|
534
534
|
"read-only": t.readOnly,
|
|
535
535
|
required: t.required,
|
|
536
536
|
maxlength: t.maxlength,
|
|
537
|
-
class:
|
|
537
|
+
class: BA(["form-control", {}]),
|
|
538
538
|
"aria-label": t.label
|
|
539
539
|
}, null, 8, zS), [
|
|
540
540
|
[Zd, r.value]
|
|
@@ -543,7 +543,7 @@ const YS = { class: "input input--textarea" }, zS = ["type", "id", "name", "plac
|
|
|
543
543
|
DA(i.$slots, "label", {}, () => [
|
|
544
544
|
k("label", {
|
|
545
545
|
for: t.id,
|
|
546
|
-
class:
|
|
546
|
+
class: BA(["input__label", {
|
|
547
547
|
"form-check-label": t.type === "checkbox"
|
|
548
548
|
}]),
|
|
549
549
|
innerHTML: `${t.label}${t.required ? " *" : ""}`
|
|
@@ -695,7 +695,7 @@ const eT = { class: "input-group input__input-group" }, tT = ["id", "name", "pla
|
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
697
|
return (i, s) => (q(), Z("div", {
|
|
698
|
-
class:
|
|
698
|
+
class: BA(["input", `input--${t.type}`])
|
|
699
699
|
}, [
|
|
700
700
|
k("div", eT, [
|
|
701
701
|
DA(i.$slots, "input-prepend", { slotScope: "props" }),
|
|
@@ -806,7 +806,7 @@ const eT = { class: "input-group input__input-group" }, tT = ["id", "name", "pla
|
|
|
806
806
|
return (i, s) => {
|
|
807
807
|
const a = Ie("svg-icon"), u = Ie("base-input");
|
|
808
808
|
return q(), Z("div", {
|
|
809
|
-
class:
|
|
809
|
+
class: BA(["input", "input-password"])
|
|
810
810
|
}, [
|
|
811
811
|
k("div", rT, [
|
|
812
812
|
UA(u, {
|
|
@@ -922,7 +922,7 @@ const aT = { class: "input radio-group" }, lT = ["id", "name", "value", "checked
|
|
|
922
922
|
__name: "radio-group",
|
|
923
923
|
props: {
|
|
924
924
|
modelValue: {
|
|
925
|
-
|
|
925
|
+
type: null
|
|
926
926
|
},
|
|
927
927
|
options: {
|
|
928
928
|
type: Array,
|
|
@@ -955,6 +955,10 @@ const aT = { class: "input radio-group" }, lT = ["id", "name", "value", "checked
|
|
|
955
955
|
required: {
|
|
956
956
|
type: Boolean,
|
|
957
957
|
default: !1
|
|
958
|
+
},
|
|
959
|
+
keyOption: {
|
|
960
|
+
// type: String as PropType<'any' | 'all'>,
|
|
961
|
+
type: null
|
|
958
962
|
}
|
|
959
963
|
},
|
|
960
964
|
emits: ["change", "update:modelValue"],
|
|
@@ -962,37 +966,43 @@ const aT = { class: "input radio-group" }, lT = ["id", "name", "value", "checked
|
|
|
962
966
|
const e = t, n = A;
|
|
963
967
|
FA(e.options.map((i) => i.value === e.modelValue));
|
|
964
968
|
function r(i) {
|
|
965
|
-
|
|
969
|
+
n("update:modelValue", i);
|
|
966
970
|
}
|
|
967
971
|
return Ah(() => {
|
|
968
972
|
}), (i, s) => (q(), Z("div", aT, [
|
|
969
|
-
(q(!0), Z(gn, null, ni(t.options, (a, u) =>
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
},
|
|
994
|
-
|
|
995
|
-
|
|
973
|
+
(q(!0), Z(gn, null, ni(t.options, (a, u) => {
|
|
974
|
+
var c, f;
|
|
975
|
+
return q(), Z("div", {
|
|
976
|
+
key: u,
|
|
977
|
+
class: "form-check"
|
|
978
|
+
}, [
|
|
979
|
+
k("input", {
|
|
980
|
+
type: "radio",
|
|
981
|
+
id: `${t.id}-${u}`,
|
|
982
|
+
name: t.name,
|
|
983
|
+
class: BA(["form-check-input", `
|
|
984
|
+
${u === t.keyOption || a.key ? "form-check-input--key" : ""}
|
|
985
|
+
${(u === t.keyOption || a.key) && a.value === ((c = t.modelValue) == null ? void 0 : c.value) ? "form-check-input--match" : ""}
|
|
986
|
+
`]),
|
|
987
|
+
value: a.value || a,
|
|
988
|
+
checked: a.value ? a.value === ((f = t.modelValue) == null ? void 0 : f.value) : a === t.modelValue,
|
|
989
|
+
disabled: t.disabled,
|
|
990
|
+
"read-only": t.readOnly,
|
|
991
|
+
required: t.required,
|
|
992
|
+
onChange: (h) => r(a)
|
|
993
|
+
}, null, 42, lT),
|
|
994
|
+
DA(i.$slots, "option-label", {
|
|
995
|
+
option: a,
|
|
996
|
+
index: u
|
|
997
|
+
}, () => [
|
|
998
|
+
k("label", {
|
|
999
|
+
class: "form-check-label",
|
|
1000
|
+
for: `${t.id}-${u}`,
|
|
1001
|
+
innerHTML: a.text
|
|
1002
|
+
}, null, 8, uT)
|
|
1003
|
+
])
|
|
1004
|
+
]);
|
|
1005
|
+
}), 128)),
|
|
996
1006
|
DA(i.$slots, "label", {}, () => [
|
|
997
1007
|
t.label ? (q(), Z("label", {
|
|
998
1008
|
key: 0,
|
|
@@ -1068,7 +1078,7 @@ const fT = ["id", "name", "multiple", "accept", "disabled"], dT = { class: "inpu
|
|
|
1068
1078
|
}, { deep: !0 }), Bn(() => s, (u, c) => {
|
|
1069
1079
|
n("update:modelValue", u);
|
|
1070
1080
|
}, { deep: !0 }), (u, c) => (q(), Z("div", {
|
|
1071
|
-
class:
|
|
1081
|
+
class: BA(["input input-file", "input-file--primary"])
|
|
1072
1082
|
}, [
|
|
1073
1083
|
k("input", {
|
|
1074
1084
|
ref_key: "input",
|
|
@@ -1174,7 +1184,7 @@ const fT = ["id", "name", "multiple", "accept", "disabled"], dT = { class: "inpu
|
|
|
1174
1184
|
"option-label": Qt((a) => [
|
|
1175
1185
|
k("label", {
|
|
1176
1186
|
for: `${t.id}-${a.index}`,
|
|
1177
|
-
class:
|
|
1187
|
+
class: BA({
|
|
1178
1188
|
"is-active": t.assets[a.index].id === r.value
|
|
1179
1189
|
}),
|
|
1180
1190
|
role: "button"
|
|
@@ -15757,7 +15767,7 @@ const tM = (t = {}) => {
|
|
|
15757
15767
|
return q(), Z("div", nM, [
|
|
15758
15768
|
dA(r) ? (q(), Z("div", rM, [
|
|
15759
15769
|
k("button", {
|
|
15760
|
-
class:
|
|
15770
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("bold") }]),
|
|
15761
15771
|
onClick: s[0] || (s[0] = (u) => {
|
|
15762
15772
|
var c;
|
|
15763
15773
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleBold().run();
|
|
@@ -15767,7 +15777,7 @@ const tM = (t = {}) => {
|
|
|
15767
15777
|
UA(a, { symbol: "bold" })
|
|
15768
15778
|
], 10, iM),
|
|
15769
15779
|
k("button", {
|
|
15770
|
-
class:
|
|
15780
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("italic") }]),
|
|
15771
15781
|
onClick: s[1] || (s[1] = (u) => {
|
|
15772
15782
|
var c;
|
|
15773
15783
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleItalic().run();
|
|
@@ -15777,7 +15787,7 @@ const tM = (t = {}) => {
|
|
|
15777
15787
|
UA(a, { symbol: "italic" })
|
|
15778
15788
|
], 10, sM),
|
|
15779
15789
|
k("button", {
|
|
15780
|
-
class:
|
|
15790
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("strike") }]),
|
|
15781
15791
|
onClick: s[2] || (s[2] = (u) => {
|
|
15782
15792
|
var c;
|
|
15783
15793
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleStrike().run();
|
|
@@ -15785,7 +15795,7 @@ const tM = (t = {}) => {
|
|
|
15785
15795
|
disabled: !dA(r).can().chain().focus().toggleStrike().run()
|
|
15786
15796
|
}, " strikethrough ", 10, oM),
|
|
15787
15797
|
k("button", {
|
|
15788
|
-
class:
|
|
15798
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("code") }]),
|
|
15789
15799
|
onClick: s[3] || (s[3] = (u) => {
|
|
15790
15800
|
var c;
|
|
15791
15801
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleCode().run();
|
|
@@ -15809,56 +15819,56 @@ const tM = (t = {}) => {
|
|
|
15809
15819
|
})
|
|
15810
15820
|
}, " clear nodes "),
|
|
15811
15821
|
k("button", {
|
|
15812
|
-
class:
|
|
15822
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("paragraph") }]),
|
|
15813
15823
|
onClick: s[6] || (s[6] = (u) => {
|
|
15814
15824
|
var c;
|
|
15815
15825
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().setParagraph().run();
|
|
15816
15826
|
})
|
|
15817
15827
|
}, " paragraph ", 2),
|
|
15818
15828
|
k("button", {
|
|
15819
|
-
class:
|
|
15829
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("heading", { level: 1 }) }]),
|
|
15820
15830
|
onClick: s[7] || (s[7] = (u) => {
|
|
15821
15831
|
var c;
|
|
15822
15832
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleHeading({ level: 1 }).run();
|
|
15823
15833
|
})
|
|
15824
15834
|
}, " h1 ", 2),
|
|
15825
15835
|
k("button", {
|
|
15826
|
-
class:
|
|
15836
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("heading", { level: 2 }) }]),
|
|
15827
15837
|
onClick: s[8] || (s[8] = (u) => {
|
|
15828
15838
|
var c;
|
|
15829
15839
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleHeading({ level: 2 }).run();
|
|
15830
15840
|
})
|
|
15831
15841
|
}, " h2 ", 2),
|
|
15832
15842
|
k("button", {
|
|
15833
|
-
class:
|
|
15843
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("heading", { level: 3 }) }]),
|
|
15834
15844
|
onClick: s[9] || (s[9] = (u) => {
|
|
15835
15845
|
var c;
|
|
15836
15846
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleHeading({ level: 3 }).run();
|
|
15837
15847
|
})
|
|
15838
15848
|
}, " h3 ", 2),
|
|
15839
15849
|
k("button", {
|
|
15840
|
-
class:
|
|
15850
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("heading", { level: 4 }) }]),
|
|
15841
15851
|
onClick: s[10] || (s[10] = (u) => {
|
|
15842
15852
|
var c;
|
|
15843
15853
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleHeading({ level: 4 }).run();
|
|
15844
15854
|
})
|
|
15845
15855
|
}, " h4 ", 2),
|
|
15846
15856
|
k("button", {
|
|
15847
|
-
class:
|
|
15857
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("heading", { level: 5 }) }]),
|
|
15848
15858
|
onClick: s[11] || (s[11] = (u) => {
|
|
15849
15859
|
var c;
|
|
15850
15860
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleHeading({ level: 5 }).run();
|
|
15851
15861
|
})
|
|
15852
15862
|
}, " h5 ", 2),
|
|
15853
15863
|
k("button", {
|
|
15854
|
-
class:
|
|
15864
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("heading", { level: 6 }) }]),
|
|
15855
15865
|
onClick: s[12] || (s[12] = (u) => {
|
|
15856
15866
|
var c;
|
|
15857
15867
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleHeading({ level: 6 }).run();
|
|
15858
15868
|
})
|
|
15859
15869
|
}, " h6 ", 2),
|
|
15860
15870
|
k("button", {
|
|
15861
|
-
class:
|
|
15871
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("bulletList") }]),
|
|
15862
15872
|
onClick: s[13] || (s[13] = (u) => {
|
|
15863
15873
|
var c;
|
|
15864
15874
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleBulletList().run();
|
|
@@ -15867,21 +15877,21 @@ const tM = (t = {}) => {
|
|
|
15867
15877
|
UA(a, { id: "list" })
|
|
15868
15878
|
], 2),
|
|
15869
15879
|
k("button", {
|
|
15870
|
-
class:
|
|
15880
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("orderedList") }]),
|
|
15871
15881
|
onClick: s[14] || (s[14] = (u) => {
|
|
15872
15882
|
var c;
|
|
15873
15883
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleOrderedList().run();
|
|
15874
15884
|
})
|
|
15875
15885
|
}, " ordered list ", 2),
|
|
15876
15886
|
k("button", {
|
|
15877
|
-
class:
|
|
15887
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("codeBlock") }]),
|
|
15878
15888
|
onClick: s[15] || (s[15] = (u) => {
|
|
15879
15889
|
var c;
|
|
15880
15890
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleCodeBlock().run();
|
|
15881
15891
|
})
|
|
15882
15892
|
}, " code block ", 2),
|
|
15883
15893
|
k("button", {
|
|
15884
|
-
class:
|
|
15894
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("blockquote") }]),
|
|
15885
15895
|
onClick: s[16] || (s[16] = (u) => {
|
|
15886
15896
|
var c;
|
|
15887
15897
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleBlockquote().run();
|
|
@@ -15918,14 +15928,14 @@ const tM = (t = {}) => {
|
|
|
15918
15928
|
disabled: !dA(r).can().chain().focus().redo().run()
|
|
15919
15929
|
}, " redo ", 8, uM),
|
|
15920
15930
|
k("button", {
|
|
15921
|
-
class:
|
|
15931
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive("highlight") }]),
|
|
15922
15932
|
onClick: s[21] || (s[21] = (u) => {
|
|
15923
15933
|
var c;
|
|
15924
15934
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().toggleHighlight().run();
|
|
15925
15935
|
})
|
|
15926
15936
|
}, " highlight ", 2),
|
|
15927
15937
|
k("button", {
|
|
15928
|
-
class:
|
|
15938
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive({ textAlign: "left" }) }]),
|
|
15929
15939
|
onClick: s[22] || (s[22] = (u) => {
|
|
15930
15940
|
var c;
|
|
15931
15941
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().setTextAlign("left").run();
|
|
@@ -15934,7 +15944,7 @@ const tM = (t = {}) => {
|
|
|
15934
15944
|
UA(a, { symbol: "align-left" })
|
|
15935
15945
|
], 2),
|
|
15936
15946
|
k("button", {
|
|
15937
|
-
class:
|
|
15947
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive({ textAlign: "center" }) }]),
|
|
15938
15948
|
onClick: s[23] || (s[23] = (u) => {
|
|
15939
15949
|
var c;
|
|
15940
15950
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().setTextAlign("center").run();
|
|
@@ -15943,7 +15953,7 @@ const tM = (t = {}) => {
|
|
|
15943
15953
|
UA(a, { symbol: "align-center" })
|
|
15944
15954
|
], 2),
|
|
15945
15955
|
k("button", {
|
|
15946
|
-
class:
|
|
15956
|
+
class: BA(["btn btn-light", { "is-active": dA(r).isActive({ textAlign: "right" }) }]),
|
|
15947
15957
|
onClick: s[24] || (s[24] = (u) => {
|
|
15948
15958
|
var c;
|
|
15949
15959
|
return (c = dA(r)) == null ? void 0 : c.chain().focus().setTextAlign("right").run();
|
|
@@ -19248,7 +19258,7 @@ const dN = { class: "input input-dropdown" }, hN = { class: "dropdown" }, pN = {
|
|
|
19248
19258
|
key: `${h.value}-${p}`
|
|
19249
19259
|
}, [
|
|
19250
19260
|
k("div", {
|
|
19251
|
-
class:
|
|
19261
|
+
class: BA(["dropdown-item", h.active && "active"])
|
|
19252
19262
|
}, [
|
|
19253
19263
|
k("div", CN, [
|
|
19254
19264
|
t.multiple ? Gn((q(), Z("input", {
|
|
@@ -20072,23 +20082,23 @@ ql.exports;
|
|
|
20072
20082
|
var o = this.__wrapped__.value(), l = this.__dir__, d = bA(o), g = l < 0, w = d ? o.length : 0, Q = kF(0, w, this.__views__), U = Q.start, x = Q.end, H = x - U, G = g ? x : U - 1, $ = this.__iteratees__, J = $.length, j = 0, cA = it(H, this.__takeCount__);
|
|
20073
20083
|
if (!d || !g && w == H && cA == H)
|
|
20074
20084
|
return qp(o, this.__actions__);
|
|
20075
|
-
var
|
|
20085
|
+
var mA = [];
|
|
20076
20086
|
A:
|
|
20077
20087
|
for (; H-- && j < cA; ) {
|
|
20078
20088
|
G += l;
|
|
20079
|
-
for (var xA = -1,
|
|
20080
|
-
var kA = $[xA], XA = kA.iteratee, Gt = kA.type, mt = XA(
|
|
20089
|
+
for (var xA = -1, wA = o[G]; ++xA < J; ) {
|
|
20090
|
+
var kA = $[xA], XA = kA.iteratee, Gt = kA.type, mt = XA(wA);
|
|
20081
20091
|
if (Gt == ge)
|
|
20082
|
-
|
|
20092
|
+
wA = mt;
|
|
20083
20093
|
else if (!mt) {
|
|
20084
20094
|
if (Gt == VA)
|
|
20085
20095
|
continue A;
|
|
20086
20096
|
break A;
|
|
20087
20097
|
}
|
|
20088
20098
|
}
|
|
20089
|
-
|
|
20099
|
+
mA[j++] = wA;
|
|
20090
20100
|
}
|
|
20091
|
-
return
|
|
20101
|
+
return mA;
|
|
20092
20102
|
}
|
|
20093
20103
|
RA.prototype = es(Ea.prototype), RA.prototype.constructor = RA;
|
|
20094
20104
|
function ui(o) {
|
|
@@ -20307,14 +20317,14 @@ ql.exports;
|
|
|
20307
20317
|
var cA = Q.get(o);
|
|
20308
20318
|
if (cA)
|
|
20309
20319
|
return cA;
|
|
20310
|
-
Q.set(o, U), Xg(o) ? o.forEach(function(
|
|
20311
|
-
U.add(nn(
|
|
20312
|
-
}) : Wg(o) && o.forEach(function(
|
|
20313
|
-
U.set(kA, nn(
|
|
20320
|
+
Q.set(o, U), Xg(o) ? o.forEach(function(wA) {
|
|
20321
|
+
U.add(nn(wA, l, d, wA, o, Q));
|
|
20322
|
+
}) : Wg(o) && o.forEach(function(wA, kA) {
|
|
20323
|
+
U.set(kA, nn(wA, l, d, kA, o, Q));
|
|
20314
20324
|
});
|
|
20315
|
-
var
|
|
20316
|
-
return An(xA || o, function(
|
|
20317
|
-
xA && (kA =
|
|
20325
|
+
var mA = G ? H ? Uc : bc : H ? _t : Ve, xA = $ ? e : mA(o);
|
|
20326
|
+
return An(xA || o, function(wA, kA) {
|
|
20327
|
+
xA && (kA = wA, wA = o[kA]), js(U, kA, nn(wA, l, d, kA, o, Q));
|
|
20318
20328
|
}), U;
|
|
20319
20329
|
}
|
|
20320
20330
|
function jE(o) {
|
|
@@ -20440,14 +20450,14 @@ ql.exports;
|
|
|
20440
20450
|
var J = -1, j = x[0];
|
|
20441
20451
|
A:
|
|
20442
20452
|
for (; ++J < w && G.length < H; ) {
|
|
20443
|
-
var cA = $[J],
|
|
20444
|
-
if (cA = d || cA !== 0 ? cA : 0, !(j ? Js(j,
|
|
20453
|
+
var cA = $[J], mA = l ? l(cA) : cA;
|
|
20454
|
+
if (cA = d || cA !== 0 ? cA : 0, !(j ? Js(j, mA) : g(G, mA, d))) {
|
|
20445
20455
|
for (U = Q; --U; ) {
|
|
20446
20456
|
var xA = x[U];
|
|
20447
|
-
if (!(xA ? Js(xA,
|
|
20457
|
+
if (!(xA ? Js(xA, mA) : g(o[U], mA, d)))
|
|
20448
20458
|
continue A;
|
|
20449
20459
|
}
|
|
20450
|
-
j && j.push(
|
|
20460
|
+
j && j.push(mA), G.push(cA);
|
|
20451
20461
|
}
|
|
20452
20462
|
}
|
|
20453
20463
|
return G;
|
|
@@ -20486,10 +20496,10 @@ ql.exports;
|
|
|
20486
20496
|
if (j && !$)
|
|
20487
20497
|
return Q || (Q = new yn()), U || is(o) ? gg(o, l, d, g, w, Q) : HF(o, l, H, d, g, w, Q);
|
|
20488
20498
|
if (!(d & m)) {
|
|
20489
|
-
var cA = $ && se.call(o, "__wrapped__"),
|
|
20490
|
-
if (cA ||
|
|
20491
|
-
var xA = cA ? o.value() : o,
|
|
20492
|
-
return Q || (Q = new yn()), w(xA,
|
|
20499
|
+
var cA = $ && se.call(o, "__wrapped__"), mA = J && se.call(l, "__wrapped__");
|
|
20500
|
+
if (cA || mA) {
|
|
20501
|
+
var xA = cA ? o.value() : o, wA = mA ? l.value() : l;
|
|
20502
|
+
return Q || (Q = new yn()), w(xA, wA, d, g, Q);
|
|
20493
20503
|
}
|
|
20494
20504
|
}
|
|
20495
20505
|
return j ? (Q || (Q = new yn()), DF(o, l, d, g, w, Q)) : !1;
|
|
@@ -20595,8 +20605,8 @@ ql.exports;
|
|
|
20595
20605
|
}
|
|
20596
20606
|
var $ = Q ? Q(x, H, d + "", o, l, U) : e, J = $ === e;
|
|
20597
20607
|
if (J) {
|
|
20598
|
-
var j = bA(H), cA = !j && Lr(H),
|
|
20599
|
-
$ = H, j || cA ||
|
|
20608
|
+
var j = bA(H), cA = !j && Lr(H), mA = !j && !cA && is(H);
|
|
20609
|
+
$ = H, j || cA || mA ? bA(x) ? $ = x : Se(x) ? $ = St(x) : cA ? (J = !1, $ = Ag(H, !0)) : mA ? (J = !1, $ = eg(H, !0)) : $ = [] : oo(H) || gi(H) ? ($ = x, gi(x) ? $ = qg(x) : (!Ee(x) || rr(x)) && ($ = wg(H))) : J = !1;
|
|
20600
20610
|
}
|
|
20601
20611
|
J && (U.set(H, $), w($, H, g, Q, U), U.delete(H)), sc(o, d, $);
|
|
20602
20612
|
}
|
|
@@ -20743,12 +20753,12 @@ ql.exports;
|
|
|
20743
20753
|
return 0;
|
|
20744
20754
|
l = d(l);
|
|
20745
20755
|
for (var U = l !== l, x = l === null, H = Vt(l), G = l === e; w < Q; ) {
|
|
20746
|
-
var $ = ya((w + Q) / 2), J = d(o[$]), j = J !== e, cA = J === null,
|
|
20756
|
+
var $ = ya((w + Q) / 2), J = d(o[$]), j = J !== e, cA = J === null, mA = J === J, xA = Vt(J);
|
|
20747
20757
|
if (U)
|
|
20748
|
-
var
|
|
20758
|
+
var wA = g || mA;
|
|
20749
20759
|
else
|
|
20750
|
-
G ?
|
|
20751
|
-
|
|
20760
|
+
G ? wA = mA && (g || j) : x ? wA = mA && j && (g || !cA) : H ? wA = mA && j && !cA && (g || !xA) : cA || xA ? wA = !1 : wA = g ? J <= l : J < l;
|
|
20761
|
+
wA ? w = $ + 1 : Q = $;
|
|
20752
20762
|
}
|
|
20753
20763
|
return it(Q, jA);
|
|
20754
20764
|
}
|
|
@@ -21080,19 +21090,19 @@ ql.exports;
|
|
|
21080
21090
|
});
|
|
21081
21091
|
}
|
|
21082
21092
|
function xa(o, l, d, g, w, Q, U, x, H, G) {
|
|
21083
|
-
var $ = l & D, J = l & E, j = l & b, cA = l & (I | y),
|
|
21084
|
-
function
|
|
21093
|
+
var $ = l & D, J = l & E, j = l & b, cA = l & (I | y), mA = l & M, xA = j ? e : ro(o);
|
|
21094
|
+
function wA() {
|
|
21085
21095
|
for (var kA = arguments.length, XA = N(kA), Gt = kA; Gt--; )
|
|
21086
21096
|
XA[Gt] = arguments[Gt];
|
|
21087
21097
|
if (cA)
|
|
21088
|
-
var mt = rs(
|
|
21098
|
+
var mt = rs(wA), $t = VQ(XA, mt);
|
|
21089
21099
|
if (g && (XA = ng(XA, g, w, cA)), Q && (XA = rg(XA, Q, U, cA)), kA -= $t, cA && kA < G) {
|
|
21090
21100
|
var Te = Ir(XA, mt);
|
|
21091
21101
|
return fg(
|
|
21092
21102
|
o,
|
|
21093
21103
|
l,
|
|
21094
21104
|
xa,
|
|
21095
|
-
|
|
21105
|
+
wA.placeholder,
|
|
21096
21106
|
d,
|
|
21097
21107
|
XA,
|
|
21098
21108
|
Te,
|
|
@@ -21102,9 +21112,9 @@ ql.exports;
|
|
|
21102
21112
|
);
|
|
21103
21113
|
}
|
|
21104
21114
|
var Qn = J ? d : this, sr = j ? Qn[o] : o;
|
|
21105
|
-
return kA = XA.length, x ? XA = qF(XA, x) :
|
|
21115
|
+
return kA = XA.length, x ? XA = qF(XA, x) : mA && kA > 1 && XA.reverse(), $ && H < kA && (XA.length = H), this && this !== qe && this instanceof wA && (sr = xA || ro(sr)), sr.apply(Qn, XA);
|
|
21106
21116
|
}
|
|
21107
|
-
return
|
|
21117
|
+
return wA;
|
|
21108
21118
|
}
|
|
21109
21119
|
function ug(o, l) {
|
|
21110
21120
|
return function(d, g) {
|
|
@@ -21164,7 +21174,7 @@ ql.exports;
|
|
|
21164
21174
|
};
|
|
21165
21175
|
}
|
|
21166
21176
|
function fg(o, l, d, g, w, Q, U, x, H, G) {
|
|
21167
|
-
var $ = l & I, J = $ ? U : e, j = $ ? e : U, cA = $ ? Q : e,
|
|
21177
|
+
var $ = l & I, J = $ ? U : e, j = $ ? e : U, cA = $ ? Q : e, mA = $ ? e : Q;
|
|
21168
21178
|
l |= $ ? O : F, l &= ~($ ? F : O), l & T || (l &= ~(E | b));
|
|
21169
21179
|
var xA = [
|
|
21170
21180
|
o,
|
|
@@ -21172,13 +21182,13 @@ ql.exports;
|
|
|
21172
21182
|
w,
|
|
21173
21183
|
cA,
|
|
21174
21184
|
J,
|
|
21175
|
-
|
|
21185
|
+
mA,
|
|
21176
21186
|
j,
|
|
21177
21187
|
x,
|
|
21178
21188
|
H,
|
|
21179
21189
|
G
|
|
21180
|
-
],
|
|
21181
|
-
return xc(o) && Eg(
|
|
21190
|
+
], wA = d.apply(e, xA);
|
|
21191
|
+
return xc(o) && Eg(wA, xA), wA.placeholder = g, Fg(wA, o, l);
|
|
21182
21192
|
}
|
|
21183
21193
|
function Fc(o) {
|
|
21184
21194
|
var l = Ne[o];
|
|
@@ -21221,11 +21231,11 @@ ql.exports;
|
|
|
21221
21231
|
x
|
|
21222
21232
|
];
|
|
21223
21233
|
if (j && XF(cA, j), o = cA[0], l = cA[1], d = cA[2], g = cA[3], w = cA[4], x = cA[9] = cA[9] === e ? H ? 0 : o.length : Re(cA[9] - G, 0), !x && l & (I | y) && (l &= ~(I | y)), !l || l == E)
|
|
21224
|
-
var
|
|
21234
|
+
var mA = TF(o, l, d);
|
|
21225
21235
|
else
|
|
21226
|
-
l == I || l == y ?
|
|
21236
|
+
l == I || l == y ? mA = _F(o, l, x) : (l == O || l == (E | O)) && !w.length ? mA = xF(o, l, d, g) : mA = xa.apply(e, cA);
|
|
21227
21237
|
var xA = j ? Jp : Eg;
|
|
21228
|
-
return Fg(xA(
|
|
21238
|
+
return Fg(xA(mA, cA), o, l);
|
|
21229
21239
|
}
|
|
21230
21240
|
function hg(o, l, d, g) {
|
|
21231
21241
|
return o === e || vn(o, Zi[d]) && !se.call(g, d) ? l : o;
|
|
@@ -21245,24 +21255,24 @@ ql.exports;
|
|
|
21245
21255
|
return G == l && $ == o;
|
|
21246
21256
|
var J = -1, j = !0, cA = d & v ? new ci() : e;
|
|
21247
21257
|
for (Q.set(o, l), Q.set(l, o); ++J < x; ) {
|
|
21248
|
-
var
|
|
21258
|
+
var mA = o[J], xA = l[J];
|
|
21249
21259
|
if (g)
|
|
21250
|
-
var
|
|
21251
|
-
if (
|
|
21252
|
-
if (
|
|
21260
|
+
var wA = U ? g(xA, mA, J, l, o, Q) : g(mA, xA, J, o, l, Q);
|
|
21261
|
+
if (wA !== e) {
|
|
21262
|
+
if (wA)
|
|
21253
21263
|
continue;
|
|
21254
21264
|
j = !1;
|
|
21255
21265
|
break;
|
|
21256
21266
|
}
|
|
21257
21267
|
if (cA) {
|
|
21258
21268
|
if (!Yu(l, function(kA, XA) {
|
|
21259
|
-
if (!Js(cA, XA) && (
|
|
21269
|
+
if (!Js(cA, XA) && (mA === kA || w(mA, kA, d, g, Q)))
|
|
21260
21270
|
return cA.push(XA);
|
|
21261
21271
|
})) {
|
|
21262
21272
|
j = !1;
|
|
21263
21273
|
break;
|
|
21264
21274
|
}
|
|
21265
|
-
} else if (!(
|
|
21275
|
+
} else if (!(mA === xA || w(mA, xA, d, g, Q))) {
|
|
21266
21276
|
j = !1;
|
|
21267
21277
|
break;
|
|
21268
21278
|
}
|
|
@@ -21313,12 +21323,12 @@ ql.exports;
|
|
|
21313
21323
|
if (!(U ? j in l : se.call(l, j)))
|
|
21314
21324
|
return !1;
|
|
21315
21325
|
}
|
|
21316
|
-
var cA = Q.get(o),
|
|
21317
|
-
if (cA &&
|
|
21318
|
-
return cA == l &&
|
|
21326
|
+
var cA = Q.get(o), mA = Q.get(l);
|
|
21327
|
+
if (cA && mA)
|
|
21328
|
+
return cA == l && mA == o;
|
|
21319
21329
|
var xA = !0;
|
|
21320
21330
|
Q.set(o, l), Q.set(l, o);
|
|
21321
|
-
for (var
|
|
21331
|
+
for (var wA = U; ++J < H; ) {
|
|
21322
21332
|
j = x[J];
|
|
21323
21333
|
var kA = o[j], XA = l[j];
|
|
21324
21334
|
if (g)
|
|
@@ -21327,9 +21337,9 @@ ql.exports;
|
|
|
21327
21337
|
xA = !1;
|
|
21328
21338
|
break;
|
|
21329
21339
|
}
|
|
21330
|
-
|
|
21340
|
+
wA || (wA = j == "constructor");
|
|
21331
21341
|
}
|
|
21332
|
-
if (xA && !
|
|
21342
|
+
if (xA && !wA) {
|
|
21333
21343
|
var mt = o.constructor, $t = l.constructor;
|
|
21334
21344
|
mt != $t && "constructor" in o && "constructor" in l && !(typeof mt == "function" && mt instanceof mt && typeof $t == "function" && $t instanceof $t) && (xA = !1);
|
|
21335
21345
|
}
|
|
@@ -22146,20 +22156,20 @@ ql.exports;
|
|
|
22146
22156
|
var Qn = g, sr = w;
|
|
22147
22157
|
return g = w = e, G = Te, U = o.apply(sr, Qn), U;
|
|
22148
22158
|
}
|
|
22149
|
-
function
|
|
22159
|
+
function mA(Te) {
|
|
22150
22160
|
return G = Te, x = so(kA, l), $ ? cA(Te) : U;
|
|
22151
22161
|
}
|
|
22152
22162
|
function xA(Te) {
|
|
22153
22163
|
var Qn = Te - H, sr = Te - G, aB = l - Qn;
|
|
22154
22164
|
return J ? it(aB, Q - sr) : aB;
|
|
22155
22165
|
}
|
|
22156
|
-
function
|
|
22166
|
+
function wA(Te) {
|
|
22157
22167
|
var Qn = Te - H, sr = Te - G;
|
|
22158
22168
|
return H === e || Qn >= l || Qn < 0 || J && sr >= Q;
|
|
22159
22169
|
}
|
|
22160
22170
|
function kA() {
|
|
22161
22171
|
var Te = Ka();
|
|
22162
|
-
if (
|
|
22172
|
+
if (wA(Te))
|
|
22163
22173
|
return XA(Te);
|
|
22164
22174
|
x = so(kA, xA(Te));
|
|
22165
22175
|
}
|
|
@@ -22173,10 +22183,10 @@ ql.exports;
|
|
|
22173
22183
|
return x === e ? U : XA(Ka());
|
|
22174
22184
|
}
|
|
22175
22185
|
function $t() {
|
|
22176
|
-
var Te = Ka(), Qn =
|
|
22186
|
+
var Te = Ka(), Qn = wA(Te);
|
|
22177
22187
|
if (g = arguments, w = this, H = Te, Qn) {
|
|
22178
22188
|
if (x === e)
|
|
22179
|
-
return
|
|
22189
|
+
return mA(H);
|
|
22180
22190
|
if (J)
|
|
22181
22191
|
return jp(x), x = so(kA, l), cA(H);
|
|
22182
22192
|
}
|
|
@@ -22726,26 +22736,26 @@ ql.exports;
|
|
|
22726
22736
|
"g"
|
|
22727
22737
|
), cA = "//# sourceURL=" + (se.call(l, "sourceURL") ? (l.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++bQ + "]") + `
|
|
22728
22738
|
`;
|
|
22729
|
-
o.replace(j, function(
|
|
22739
|
+
o.replace(j, function(wA, kA, XA, Gt, mt, $t) {
|
|
22730
22740
|
return XA || (XA = Gt), J += o.slice(G, $t).replace(nQ, WQ), kA && (x = !0, J += `' +
|
|
22731
22741
|
__e(` + kA + `) +
|
|
22732
22742
|
'`), mt && (H = !0, J += `';
|
|
22733
22743
|
` + mt + `;
|
|
22734
22744
|
__p += '`), XA && (J += `' +
|
|
22735
22745
|
((__t = (` + XA + `)) == null ? '' : __t) +
|
|
22736
|
-
'`), G = $t +
|
|
22746
|
+
'`), G = $t + wA.length, wA;
|
|
22737
22747
|
}), J += `';
|
|
22738
22748
|
`;
|
|
22739
|
-
var
|
|
22740
|
-
if (!
|
|
22749
|
+
var mA = se.call(l, "variable") && l.variable;
|
|
22750
|
+
if (!mA)
|
|
22741
22751
|
J = `with (obj) {
|
|
22742
22752
|
` + J + `
|
|
22743
22753
|
}
|
|
22744
22754
|
`;
|
|
22745
|
-
else if (Xv.test(
|
|
22755
|
+
else if (Xv.test(mA))
|
|
22746
22756
|
throw new EA(a);
|
|
22747
|
-
J = (H ? J.replace(JA, "") : J).replace(ze, "$1").replace(It, "$1;"), J = "function(" + (
|
|
22748
|
-
` + (
|
|
22757
|
+
J = (H ? J.replace(JA, "") : J).replace(ze, "$1").replace(It, "$1;"), J = "function(" + (mA || "obj") + `) {
|
|
22758
|
+
` + (mA ? "" : `obj || (obj = {});
|
|
22749
22759
|
`) + "var __t, __p = ''" + (x ? ", __e = _.escape" : "") + (H ? `, __j = Array.prototype.join;
|
|
22750
22760
|
function print() { __p += __j.call(arguments, '') }
|
|
22751
22761
|
` : `;
|
|
@@ -23054,13 +23064,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
23054
23064
|
return g && j ? XA[0] : XA;
|
|
23055
23065
|
};
|
|
23056
23066
|
$ && d && typeof G == "function" && G.length != 1 && (H = $ = !1);
|
|
23057
|
-
var j = this.__chain__, cA = !!this.__actions__.length,
|
|
23067
|
+
var j = this.__chain__, cA = !!this.__actions__.length, mA = Q && !j, xA = H && !cA;
|
|
23058
23068
|
if (!Q && $) {
|
|
23059
23069
|
U = xA ? U : new RA(this);
|
|
23060
|
-
var
|
|
23061
|
-
return
|
|
23070
|
+
var wA = o.apply(U, x);
|
|
23071
|
+
return wA.__actions__.push({ func: Na, args: [J], thisArg: e }), new tn(wA, j);
|
|
23062
23072
|
}
|
|
23063
|
-
return
|
|
23073
|
+
return mA && xA ? o.apply(this, x) : (wA = this.thru(J), mA ? g ? wA.value()[0] : wA.value() : wA);
|
|
23064
23074
|
});
|
|
23065
23075
|
}), An(["pop", "push", "shift", "sort", "splice", "unshift"], function(o) {
|
|
23066
23076
|
var l = ca[o], d = /^(?:push|sort|unshift)$/.test(o) ? "tap" : "thru", g = /^(?:pop|shift)$/.test(o);
|
|
@@ -23272,14 +23282,14 @@ const e3 = /* @__PURE__ */ SA({
|
|
|
23272
23282
|
}), (iA, CA) => {
|
|
23273
23283
|
const te = Ie("loading-spinner"), $A = Ie("svg-icon"), jA = Ie("input-dropdown");
|
|
23274
23284
|
return q(), Z("div", {
|
|
23275
|
-
class:
|
|
23285
|
+
class: BA(["camera", F.value])
|
|
23276
23286
|
}, [
|
|
23277
23287
|
k("div", SN, [
|
|
23278
23288
|
u.value ? NA("", !0) : (q(), Z("div", TN, [
|
|
23279
23289
|
UA(te, { color: "#000" }, {
|
|
23280
23290
|
default: Qt(() => [
|
|
23281
23291
|
k("span", {
|
|
23282
|
-
class:
|
|
23292
|
+
class: BA("d-block text-center"),
|
|
23283
23293
|
innerHTML: iA.$t("camera.waitForCameraNotification")
|
|
23284
23294
|
}, null, 8, _N)
|
|
23285
23295
|
]),
|
|
@@ -23289,7 +23299,7 @@ const e3 = /* @__PURE__ */ SA({
|
|
|
23289
23299
|
Gn(k("video", {
|
|
23290
23300
|
ref_key: "camera",
|
|
23291
23301
|
ref: s,
|
|
23292
|
-
class:
|
|
23302
|
+
class: BA(["camera__video", `aspect-ratio--${r.ratio}`]),
|
|
23293
23303
|
autoplay: "",
|
|
23294
23304
|
playsinline: ""
|
|
23295
23305
|
}, null, 2), [
|
|
@@ -23891,7 +23901,7 @@ const t3 = /* @__PURE__ */ SA({
|
|
|
23891
23901
|
return q(), Z("div", RR, [
|
|
23892
23902
|
(q(!0), Z(gn, null, ni(a.value, (m, v) => (q(), Z("div", {
|
|
23893
23903
|
key: m.src,
|
|
23894
|
-
class:
|
|
23904
|
+
class: BA(t.enablePreview ? "file-upload__thumbnail" : "file-upload__reset")
|
|
23895
23905
|
}, [
|
|
23896
23906
|
t.enablePreview ? (q(), Z(gn, { key: 0 }, [
|
|
23897
23907
|
k("img", {
|
|
@@ -24239,7 +24249,7 @@ const s4 = { class: "carousel d-flex" }, o4 = ["onClick"], a4 = /* @__PURE__ */
|
|
|
24239
24249
|
index: p
|
|
24240
24250
|
}, () => [
|
|
24241
24251
|
k("div", {
|
|
24242
|
-
class:
|
|
24252
|
+
class: BA(["carousel__item", p === t.modelValue ? "selected" : ""]),
|
|
24243
24253
|
onClick: (B) => a(p)
|
|
24244
24254
|
}, Oe(h), 11, o4)
|
|
24245
24255
|
])), 128))
|
|
@@ -24295,7 +24305,7 @@ const l4 = { class: "media-thumbnails" }, u4 = ["onClick"], c4 = { class: "img-c
|
|
|
24295
24305
|
k("div", c4, [
|
|
24296
24306
|
UA(a, {
|
|
24297
24307
|
src: u.item.thumbnail || u.item.src,
|
|
24298
|
-
class:
|
|
24308
|
+
class: BA(["img-fluid", n.value === u.index ? "is-active" : ""])
|
|
24299
24309
|
}, null, 8, ["src", "class"])
|
|
24300
24310
|
])
|
|
24301
24311
|
], 8, u4)
|
|
@@ -24339,7 +24349,7 @@ const f4 = { class: "progress-steps" }, d4 = { class: "progress-steps__list" },
|
|
|
24339
24349
|
k("ul", d4, [
|
|
24340
24350
|
(q(!0), Z(gn, null, ni(t.steps, (a, u) => (q(), Z("li", {
|
|
24341
24351
|
key: u,
|
|
24342
|
-
class:
|
|
24352
|
+
class: BA(["progress-steps__step", {
|
|
24343
24353
|
"progress-steps__step--disabled": u > t.progress + (t.reveal ? 1 : 0),
|
|
24344
24354
|
"progress-steps__step--active": u === (t.modelValue || 0)
|
|
24345
24355
|
}])
|
|
@@ -29337,7 +29347,7 @@ const s3 = /* @__PURE__ */ SA({
|
|
|
29337
29347
|
u();
|
|
29338
29348
|
}, 500);
|
|
29339
29349
|
}), (c, f) => (q(), Z("div", {
|
|
29340
|
-
class:
|
|
29350
|
+
class: BA(["dom-renderer", {
|
|
29341
29351
|
"off-screen": !t.debug
|
|
29342
29352
|
}]),
|
|
29343
29353
|
ref_key: "renderer",
|
|
@@ -29635,7 +29645,7 @@ const w$ = { class: "modal-dialog__content d-flex flex-column" }, C$ = { class:
|
|
|
29635
29645
|
}), (p, B) => (q(), Z("dialog", {
|
|
29636
29646
|
ref_key: "dialog",
|
|
29637
29647
|
ref: i,
|
|
29638
|
-
class:
|
|
29648
|
+
class: BA(["modal-dialog", {
|
|
29639
29649
|
[`modal-dialog--${t.size}`]: t.size
|
|
29640
29650
|
}]),
|
|
29641
29651
|
onClose: u
|
|
@@ -29742,7 +29752,7 @@ const E$ = ["onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop", "
|
|
|
29742
29752
|
return q(), Hi(QS, {
|
|
29743
29753
|
name: "list",
|
|
29744
29754
|
tag: "ul",
|
|
29745
|
-
class:
|
|
29755
|
+
class: BA(["sortable-list p-0 d-flex gap-2", {
|
|
29746
29756
|
"flex-column": t.vertical,
|
|
29747
29757
|
"flex-row flex-wrap": !t.vertical
|
|
29748
29758
|
}]),
|
|
@@ -29764,7 +29774,7 @@ const E$ = ["onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop", "
|
|
|
29764
29774
|
innerHTML: u.value
|
|
29765
29775
|
}, null, 40, E$)) : NA("", !0),
|
|
29766
29776
|
k("li", {
|
|
29767
|
-
class:
|
|
29777
|
+
class: BA(["sortable-list__item d-flex", {
|
|
29768
29778
|
"is-drag-item": n.value && r.value === F,
|
|
29769
29779
|
"is-drop-target": n.value && i.value === F && !t.showPreview,
|
|
29770
29780
|
"align-items-center gap-2": t.vertical
|
|
@@ -29784,7 +29794,7 @@ const E$ = ["onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop", "
|
|
|
29784
29794
|
])
|
|
29785
29795
|
])) : NA("", !0),
|
|
29786
29796
|
k("div", {
|
|
29787
|
-
class:
|
|
29797
|
+
class: BA(["sortable-list__item-content", {
|
|
29788
29798
|
"flex-grow-1": t.vertical
|
|
29789
29799
|
}])
|
|
29790
29800
|
}, [
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
(function(Ee,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(Ee=typeof globalThis<"u"?globalThis:Ee||self,h(Ee.AblokComponents={},Ee.Vue,Ee.core))})(this,function(Ee,h,fh){"use strict";const dE={class:"icon",preserveAspectRatio:"xMaxYMin"},hE=["xlink:href"],pE=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",dE,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,hE)]))],2))}}),s$="",gE={class:"loading-spinner d-block"},mE=h.createElementVNode("span",{class:"loading-spinner__animation"},[h.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[h.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("span",gE,[mE,h.renderSlot(e.$slots,"default")]))}}),o$="",wE=["src","alt"],CE=h.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const e=h.ref(!1);return(A,n)=>{const r=h.resolveComponent("loading-spinner");return t.src?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!e.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!e.value,"opacity-1":e.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>e.value=!0)},null,42,wE)],2)):h.createCommentVNode("",!0)}}}),a$="",yE=["innerHTML"],EE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const e=t,A=h.computed(()=>e.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(A.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createElementVNode("span",{class:"headline__text",innerHTML:n.text},null,8,yE)])]),_:3},8,["class"]))}}),QE=["innerHTML"],FE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${e.size||""} ${e.className||""}`]),innerHTML:e.text},null,10,QE))}});function nA(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const bE={class:"accordion-item"},UE=["id"],vE=["data-bs-target","aria-controls"],IE={class:"flex-grow-1"},SE=["id","aria-labelledby","data-bs-parent"],TE={class:"accordion-body"},_E=["innerHTML"],xE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>nA()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(){n("update:modelValue",!A.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",bE,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[h.renderSlot(i.$slots,"toggle",{},()=>[h.createElementVNode("span",IE,h.toDisplayString(t.title),1)])],10,vE)],8,UE),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",TE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,_E)])])],10,SE)]))}}),l$="",OE=(t,e)=>{const A=t.__vccOpts||t;for(const[n,r]of e)A[n]=r;return A},LE={},kE={class:"accordion"};function HE(t,e){return h.openBlock(),h.createElementBlock("div",kE,[h.renderSlot(t.$slots,"default")])}const NE=OE(LE,[["render",HE]]),DE=["type","disabled"],ME=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const e=t,A=h.computed(()=>e.caption&&!e.circle);return(n,r)=>{const i=h.resolveComponent("loading-spinner"),s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?h.renderSlot(n.$slots,"pending-icon",{key:0},()=>[h.createVNode(i)]):h.createCommentVNode("",!0),h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),A.value?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,DE)}}}),c$="",RE={class:"input-group input__input-group"},KE=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],VE=["for","innerHTML"],PE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}});return h.onMounted(()=>{let s=a=>{console.log("focussedHandler",a),i.value=typeof a.detail=="string"||typeof a.detail=="number"?`${a.detail}`:""};r.value.addEventListener("focusin",a=>{console.log("focusin",r.value),window.addEventListener("update-focussed-input",s)}),r.value.addEventListener("focusout",a=>{console.log("focusout",r.value),window.removeEventListener("update-focussed-input",s)})}),(s,a)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",RE,[h.renderSlot(s.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{ref_key:"input",ref:r,"onUpdate:modelValue":a[0]||(a[0]=c=>i.value=c),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,KE),[[h.vModelDynamic,i.value]]),h.renderSlot(s.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(s.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,VE)):h.createCommentVNode("",!0)])],2))}}),u$="",GE={class:"input input--textarea"},$E=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],WE=["for","innerHTML"],JE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",GE,[h.renderSlot(i.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,$E),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append"),h.renderSlot(i.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,WE)])]))}}),XE=["value","id","name","required","disabled","true-value","false-value"],YE=["for","innerHTML"],zE=h.createElementVNode("span",{class:"input__error"},"error",-1),qE=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue||A.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=h.withModifiers(a=>i.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,XE),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,YE),zE]))}}),f$=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
|
|
2
|
-
`,ZE={class:"input-group input__input-group"},jE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],eQ=["for","innerHTML"],AQ=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){const i=A.modelValue&&new Date(`${A.modelValue}Z`),s=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return s&&s.replace("Z","")},set(i){const s=i&&new Date(i);i=s&&s.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",ZE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,jE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,eQ)):h.createCommentVNode("",!0)])],2))}}),tQ={class:"input-group input__input-group"},nQ=h.defineComponent({__name:"input-password",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},password:{type:String,default:""},confirm:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){(A.password===i||!A.password)&&n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("svg-icon"),c=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input","input-password"])},[h.createElementVNode("div",tQ,[h.createVNode(c,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),type:"password",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readOnly,required:t.required,label:t.label},{"input-prepend":h.withCtx(u=>[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"})]),"input-append":h.withCtx(u=>[h.renderSlot(i.$slots,"input-append",{slotScope:"props"},()=>[t.confirm&&t.modelValue===t.password?(h.openBlock(),h.createBlock(a,{key:0,symbol:"check",class:"ms-2"})):h.createCommentVNode("",!0)])]),_:3},8,["modelValue","placeholder","disabled","readonly","required","label"])])])}}}),rQ={class:"check-group"},iQ=["id","name","value","disabled","read-only","required"],sQ=["for","innerHTML"],oQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;h.ref([]);const r=h.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>A.options&&A.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:A.modelValue&&A.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",rQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(c,u)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"form-check"},[h.withDirectives(h.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=f=>r.value=f),id:`${t.id}-${u}`,name:t.name,class:"form-check-input",value:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,iQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,sQ)]))),128))]))}}),d$="",aQ={class:"input radio-group"},lQ=["id","name","value","checked","disabled","read-only","required","onChange"],cQ=["for","innerHTML"],uQ=["for"],gc=h.defineComponent({__name:"radio-group",props:{modelValue:{default:void 0},options:{type:Array,default:[]},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:e}){const A=t,n=e;h.ref(A.options.map(i=>i.value===A.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",aQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,checked:a.value?a.value===t.modelValue:a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>r(a)},null,40,lQ),h.renderSlot(i.$slots,"option-label",{option:a,index:c},()=>[h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,cQ)])]))),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,uQ)):h.createCommentVNode("",!0)])]))}}),h$="",fQ=["id","name","multiple","accept","disabled"],dQ={class:"input__input-group input-group"},hQ=["value","id","name","disabled"],pQ=["for","disabled"],gQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),mQ=["for"],BQ=["innerHTML"],wQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(c){const u=c.target&&c.target.files;u&&(s.splice(0,s.length),Array.from(u).forEach(f=>{s.push(f)}))}const i=h.ref(),s=h.reactive([]),a=h.computed(()=>s&&s.map(c=>c.name));return h.computed(()=>s.map(c=>URL.createObjectURL(c))),h.watch(()=>A.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),h.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,fQ),h.createElementVNode("div",dQ,[h.renderSlot(c.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,hQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[gQ])],8,pQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,BQ)])],8,mQ)]))}}),CQ={class:"select-media"},yQ=["for"],EQ=["src","alt"],QQ=h.defineComponent({__name:"select-media",props:{modelValue:{type:null,default:""},assets:{type:Array,default:[]},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},emitKey:{type:String,default:"src"}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){const s=A.assets.find(a=>a.id===i);n("update:modelValue",A.emitKey?s[A.emitKey]:s),A.emitKey&&A.emitKey!=="id"&&n("update:selection",s.id)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",CQ,[h.createVNode(gc,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),options:t.assets.map(a=>a.id),name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":h.withCtx(a=>[h.createElementVNode("label",{for:`${t.id}-${a.index}`,class:h.normalizeClass({"is-active":t.assets[a.index].id===r.value}),role:"button"},[t.assets[a.index].thumbnail?(h.openBlock(),h.createElementBlock("img",{key:0,src:t.assets[a.index].thumbnail,alt:t.assets[a.index].id},null,8,EQ)):h.createCommentVNode("",!0)],10,yQ)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),p$="";function MA(t){this.content=t}MA.prototype={constructor:MA,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,A){var n=A&&A!=t?this.remove(A):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(A||t,e):(i[r+1]=e,A&&(i[r]=A)),new MA(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var A=this.content.slice();return A.splice(e,2),new MA(A)},addToStart:function(t,e){return new MA([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var A=this.remove(t).content.slice();return A.push(t,e),new MA(A)},addBefore:function(t,e,A){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,A),new MA(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=MA.from(t),t.size?new MA(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=MA.from(t),t.size?new MA(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=MA.from(t);for(var A=0;A<t.content.length;A+=2)e=e.remove(t.content[A]);return e},toObject:function(){var t={};return this.forEach(function(e,A){t[e]=A}),t},get size(){return this.content.length>>1}},MA.from=function(t){if(t instanceof MA)return t;var e=[];if(t)for(var A in t)e.push(A,t[A]);return new MA(e)};function dh(t,e,A){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:A;let r=t.child(n),i=e.child(n);if(r==i){A+=r.nodeSize;continue}if(!r.sameMarkup(i))return A;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)A++;return A}if(r.content.size||i.content.size){let s=dh(r.content,i.content,A+1);if(s!=null)return s}A+=r.nodeSize}}function hh(t,e,A,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:A,b:n};let s=t.child(--r),a=e.child(--i),c=s.nodeSize;if(s==a){A-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:A,b:n};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,A--,n--;return{a:A,b:n}}if(s.content.size||a.content.size){let u=hh(s.content,a.content,A-1,n-1);if(u)return u}A-=c,n-=c}}class Y{constructor(e,A){if(this.content=e,this.size=A||0,A==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,A,n,r=0,i){for(let s=0,a=0;a<A;s++){let c=this.content[s],u=a+c.nodeSize;if(u>e&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,e-f),Math.min(c.content.size,A-f),n,r+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,A,n,r){let i="",s=!0;return this.nodesBetween(e,A,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,A-c):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let A=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(A.isText&&A.sameMarkup(n)&&(r[r.length-1]=A.withText(A.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Y(r,this.size+e.size)}cut(e,A=this.size){if(e==0&&A==this.size)return this;let n=[],r=0;if(A>e)for(let i=0,s=0;s<A;i++){let a=this.content[i],c=s+a.nodeSize;c>e&&((s<e||c>A)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,A-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,A-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(e,A){return e==A?Y.empty:e==0&&A==this.content.length?this:new Y(this.content.slice(e,A))}replaceChild(e,A){let n=this.content[e];if(n==A)return this;let r=this.content.slice(),i=this.size+A.nodeSize-n.nodeSize;return r[e]=A,new Y(r,i)}addToStart(e){return new Y([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Y(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let A=0;A<this.content.length;A++)if(!this.content[A].eq(e.content[A]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let A=this.content[e];if(!A)throw new RangeError("Index "+e+" out of range for "+this);return A}maybeChild(e){return this.content[e]||null}forEach(e){for(let A=0,n=0;A<this.content.length;A++){let r=this.content[A];e(r,n,A),n+=r.nodeSize}}findDiffStart(e,A=0){return dh(this,e,A)}findDiffEnd(e,A=this.size,n=e.size){return hh(this,e,A,n)}findIndex(e,A=-1){if(e==0)return Ho(0,e);if(e==this.size)return Ho(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e||A>0?Ho(n+1,s):Ho(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,A){if(!A)return Y.empty;if(!Array.isArray(A))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(A.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Y.empty;let A,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(A||(A=e.slice(0,r)),A[A.length-1]=i.withText(A[A.length-1].text+i.text)):A&&A.push(i)}return new Y(A||e,n)}static from(e){if(!e)return Y.empty;if(e instanceof Y)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Y([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const mc={index:0,offset:0};function Ho(t,e){return mc.index=t,mc.offset=e,mc}function No(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let A=Array.isArray(t);if(Array.isArray(e)!=A)return!1;if(A){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!No(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!No(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let Ze=class lh{constructor(e,A){this.type=e,this.attrs=A}addToSet(e){let A,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))A||(A=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(A||(A=e.slice(0,r)),A.push(this),n=!0),A&&A.push(i)}}return A||(A=e.slice()),n||A.push(this),A}removeFromSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return e.slice(0,A).concat(e.slice(A+1));return e}isInSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return!0;return!1}eq(e){return this==e||this.type==e.type&&No(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[A.type];if(!n)throw new RangeError(`There is no mark type ${A.type} in this schema`);return n.create(A.attrs)}static sameSet(e,A){if(e==A)return!0;if(e.length!=A.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(A[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return lh.none;if(e instanceof lh)return[e];let A=e.slice();return A.sort((n,r)=>n.type.rank-r.type.rank),A}};Ze.none=[];class Do extends Error{}class j{constructor(e,A,n){this.content=e,this.openStart=A,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,A){let n=gh(this.content,e+this.openStart,A);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(e,A){return new j(ph(this.content,e+this.openStart,A+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,A){if(!A)return j.empty;let n=A.openStart||0,r=A.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(e,A.content),n,r)}static maxOpen(e,A=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.lastChild)r++;return new j(e,n,r)}}j.empty=new j(Y.empty,0,0);function ph(t,e,A){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(A);if(r==e||i.isText){if(a!=A&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(A))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(ph(i.content,e-r-1,A-r-1)))}function gh(t,e,A,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,A)?null:t.cut(0,e).append(A).append(t.cut(e));let a=gh(s.content,e-i-1,A);return a&&t.replaceChild(r,s.copy(a))}function FQ(t,e,A){if(A.openStart>t.depth)throw new Do("Inserted content deeper than insertion position");if(t.depth-A.openStart!=e.depth-A.openEnd)throw new Do("Inconsistent open depths");return mh(t,e,A,0)}function mh(t,e,A,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-A.openStart){let s=mh(t,e,A,n+1);return i.copy(i.content.replaceChild(r,s))}else if(A.content.size)if(!A.openStart&&!A.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(A.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=bQ(A,t);return Gr(i,wh(t,s,a,e,n))}else return Gr(i,Mo(t,e,n))}function Bh(t,e){if(!e.type.compatibleContent(t.type))throw new Do("Cannot join "+e.type.name+" onto "+t.type.name)}function Bc(t,e,A){let n=t.node(A);return Bh(n,e.node(A)),n}function Pr(t,e){let A=e.length-1;A>=0&&t.isText&&t.sameMarkup(e[A])?e[A]=t.withText(e[A].text+t.text):e.push(t)}function Qs(t,e,A,n){let r=(e||t).node(A),i=0,s=e?e.index(A):r.childCount;t&&(i=t.index(A),t.depth>A?i++:t.textOffset&&(Pr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Pr(r.child(a),n);e&&e.depth==A&&e.textOffset&&Pr(e.nodeBefore,n)}function Gr(t,e){return t.type.checkContent(e),t.copy(e)}function wh(t,e,A,n,r){let i=t.depth>r&&Bc(t,e,r+1),s=n.depth>r&&Bc(A,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&e.index(r)==A.index(r)?(Bh(i,s),Pr(Gr(i,wh(t,e,A,n,r+1)),a)):(i&&Pr(Gr(i,Mo(t,e,r+1)),a),Qs(e,A,r,a),s&&Pr(Gr(s,Mo(A,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,e,A){let n=[];if(Qs(null,t,A,n),t.depth>A){let r=Bc(t,e,A+1);Pr(Gr(r,Mo(t,e,A+1)),n)}return Qs(e,null,A,n),new Y(n)}function bQ(t,e){let A=e.depth-t.openStart,r=e.node(A).copy(t.content);for(let i=A-1;i>=0;i--)r=e.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+A),end:r.resolveNoCache(r.content.size-t.openEnd-A)}}class Fs{constructor(e,A,n){this.pos=e,this.path=A,this.parentOffset=n,this.depth=A.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,A=this.index(this.depth);if(A==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(A);return n?e.child(A).cut(n):r}get nodeBefore(){let e=this.index(this.depth),A=this.pos-this.path[this.path.length-1];return A?this.parent.child(e).cut(0,A):e==0?null:this.parent.child(e-1)}posAtIndex(e,A){A=this.resolveDepth(A);let n=this.path[A*3],r=A==0?0:this.path[A*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,A=this.index();if(e.content.size==0)return Ze.none;if(this.textOffset)return e.child(A).marks;let n=e.maybeChild(A-1),r=e.maybeChild(A);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let A=this.parent.maybeChild(this.index());if(!A||!A.isInline)return null;let n=A.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let A=this.depth;A>0;A--)if(this.start(A)<=e&&this.end(A)>=e)return A;return 0}blockRange(e=this,A){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!A||A(this.node(n))))return new Ro(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let A=1;A<=this.depth;A++)e+=(e?"/":"")+this.node(A).type.name+"_"+this.index(A-1);return e+":"+this.parentOffset}static resolve(e,A){if(!(A>=0&&A<=e.content.size))throw new RangeError("Position "+A+" out of range");let n=[],r=0,i=A;for(let s=e;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new Fs(A,n,i)}static resolveCached(e,A){for(let r=0;r<wc.length;r++){let i=wc[r];if(i.pos==A&&i.doc==e)return i}let n=wc[Cc]=Fs.resolve(e,A);return Cc=(Cc+1)%UQ,n}}let wc=[],Cc=0,UQ=12;class Ro{constructor(e,A,n){this.$from=e,this.$to=A,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const vQ=Object.create(null);let $r=class ch{constructor(e,A,n,r=Ze.none){this.type=e,this.attrs=A,this.marks=r,this.content=n||Y.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,A,n,r=0){this.content.nodesBetween(e,A,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,A,n,r){return this.content.textBetween(e,A,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,A,n){return this.type==e&&No(this.attrs,A||e.defaultAttrs||vQ)&&Ze.sameSet(this.marks,n||Ze.none)}copy(e=null){return e==this.content?this:new ch(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ch(this.type,this.attrs,this.content,e)}cut(e,A=this.content.size){return e==0&&A==this.content.size?this:this.copy(this.content.cut(e,A))}slice(e,A=this.content.size,n=!1){if(e==A)return j.empty;let r=this.resolve(e),i=this.resolve(A),s=n?0:r.sharedDepth(A),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(e,A,n){return FQ(this.resolve(e),this.resolve(A),n)}nodeAt(e){for(let A=this;;){let{index:n,offset:r}=A.content.findIndex(e);if(A=A.maybeChild(n),!A)return null;if(r==e||A.isText)return A;e-=r+1}}childAfter(e){let{index:A,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(A),index:A,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:A,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(A),index:A,offset:n};let r=this.content.child(A-1);return{node:r,index:A-1,offset:n-r.nodeSize}}resolve(e){return Fs.resolveCached(this,e)}resolveNoCache(e){return Fs.resolve(this,e)}rangeHasMark(e,A,n){let r=!1;return A>e&&this.nodesBetween(e,A,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Ch(this.marks,e)}contentMatchAt(e){let A=this.type.contentMatch.matchFragment(this.content,0,e);if(!A)throw new Error("Called contentMatchAt on a node with invalid content");return A}canReplace(e,A,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,A);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(e,A,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,A);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=Ze.none;for(let A=0;A<this.marks.length;A++)e=this.marks[A].addToSet(e);if(!Ze.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(A=>A.type.name)}`);this.content.forEach(A=>A.check())}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(A=>A.toJSON())),e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(A.marks){if(!Array.isArray(A.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=A.marks.map(e.markFromJSON)}if(A.type=="text"){if(typeof A.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(A.text,n)}let r=Y.fromJSON(e,A.content);return e.nodeType(A.type).create(A.attrs,r,n)}};$r.prototype.text=void 0;class Ko extends $r{constructor(e,A,n,r){if(super(e,A,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ch(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,A){return this.text.slice(e,A)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ko(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ko(this.type,this.attrs,e,this.marks)}cut(e=0,A=this.text.length){return e==0&&A==this.text.length?this:this.withText(this.text.slice(e,A))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ch(t,e){for(let A=t.length-1;A>=0;A--)e=t[A].type.name+"("+e+")";return e}class Wr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,A){let n=new IQ(e,A);if(n.next==null)return Wr.empty;let r=yh(n);n.next&&n.err("Unexpected trailing text");let i=kQ(LQ(r));return HQ(i,n),i}matchType(e){for(let A=0;A<this.next.length;A++)if(this.next[A].type==e)return this.next[A].next;return null}matchFragment(e,A=0,n=e.childCount){let r=this;for(let i=A;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:A}=this.next[e];if(!(A.isText||A.hasRequiredAttrs()))return A}return null}compatible(e){for(let A=0;A<this.next.length;A++)for(let n=0;n<e.next.length;n++)if(this.next[A].type==e.next[n].type)return!0;return!1}fillBefore(e,A=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(e,n);if(c&&(!A||c.validEnd))return Y.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let g=i(p,a.concat(f));if(g)return g}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let A=this.computeWrapping(e);return this.wrapCache.push(e,A),A}computeWrapping(e){let A=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in A)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),A[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function A(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&A(n.next[r].next)}return A(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
|
|
2
|
+
`,ZE={class:"input-group input__input-group"},jE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],eQ=["for","innerHTML"],AQ=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){const i=A.modelValue&&new Date(`${A.modelValue}Z`),s=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return s&&s.replace("Z","")},set(i){const s=i&&new Date(i);i=s&&s.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",ZE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,jE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,eQ)):h.createCommentVNode("",!0)])],2))}}),tQ={class:"input-group input__input-group"},nQ=h.defineComponent({__name:"input-password",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},password:{type:String,default:""},confirm:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){(A.password===i||!A.password)&&n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("svg-icon"),c=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input","input-password"])},[h.createElementVNode("div",tQ,[h.createVNode(c,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),type:"password",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readOnly,required:t.required,label:t.label},{"input-prepend":h.withCtx(u=>[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"})]),"input-append":h.withCtx(u=>[h.renderSlot(i.$slots,"input-append",{slotScope:"props"},()=>[t.confirm&&t.modelValue===t.password?(h.openBlock(),h.createBlock(a,{key:0,symbol:"check",class:"ms-2"})):h.createCommentVNode("",!0)])]),_:3},8,["modelValue","placeholder","disabled","readonly","required","label"])])])}}}),rQ={class:"check-group"},iQ=["id","name","value","disabled","read-only","required"],sQ=["for","innerHTML"],oQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;h.ref([]);const r=h.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>A.options&&A.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:A.modelValue&&A.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",rQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(c,u)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"form-check"},[h.withDirectives(h.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=f=>r.value=f),id:`${t.id}-${u}`,name:t.name,class:"form-check-input",value:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,iQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,sQ)]))),128))]))}}),d$="",aQ={class:"input radio-group"},lQ=["id","name","value","checked","disabled","read-only","required","onChange"],cQ=["for","innerHTML"],uQ=["for"],gc=h.defineComponent({__name:"radio-group",props:{modelValue:{type:null},options:{type:Array,default:[]},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null}},emits:["change","update:modelValue"],setup(t,{emit:e}){const A=t,n=e;h.ref(A.options.map(i=>i.value===A.modelValue));function r(i){n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",aQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(a,c)=>{var u,f;return h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:h.normalizeClass(["form-check-input",`
|
|
3
|
+
${c===t.keyOption||a.key?"form-check-input--key":""}
|
|
4
|
+
${(c===t.keyOption||a.key)&&a.value===((u=t.modelValue)==null?void 0:u.value)?"form-check-input--match":""}
|
|
5
|
+
`]),value:a.value||a,checked:a.value?a.value===((f=t.modelValue)==null?void 0:f.value):a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:p=>r(a)},null,42,lQ),h.renderSlot(i.$slots,"option-label",{option:a,index:c},()=>[h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:a.text},null,8,cQ)])])}),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,uQ)):h.createCommentVNode("",!0)])]))}}),h$="",fQ=["id","name","multiple","accept","disabled"],dQ={class:"input__input-group input-group"},hQ=["value","id","name","disabled"],pQ=["for","disabled"],gQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),mQ=["for"],BQ=["innerHTML"],wQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(c){const u=c.target&&c.target.files;u&&(s.splice(0,s.length),Array.from(u).forEach(f=>{s.push(f)}))}const i=h.ref(),s=h.reactive([]),a=h.computed(()=>s&&s.map(c=>c.name));return h.computed(()=>s.map(c=>URL.createObjectURL(c))),h.watch(()=>A.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),h.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,fQ),h.createElementVNode("div",dQ,[h.renderSlot(c.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,hQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[gQ])],8,pQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,BQ)])],8,mQ)]))}}),CQ={class:"select-media"},yQ=["for"],EQ=["src","alt"],QQ=h.defineComponent({__name:"select-media",props:{modelValue:{type:null,default:""},assets:{type:Array,default:[]},name:{type:String,default:()=>nA()},id:{type:String,default:()=>nA()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},emitKey:{type:String,default:"src"}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){const s=A.assets.find(a=>a.id===i);n("update:modelValue",A.emitKey?s[A.emitKey]:s),A.emitKey&&A.emitKey!=="id"&&n("update:selection",s.id)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",CQ,[h.createVNode(gc,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),options:t.assets.map(a=>a.id),name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":h.withCtx(a=>[h.createElementVNode("label",{for:`${t.id}-${a.index}`,class:h.normalizeClass({"is-active":t.assets[a.index].id===r.value}),role:"button"},[t.assets[a.index].thumbnail?(h.openBlock(),h.createElementBlock("img",{key:0,src:t.assets[a.index].thumbnail,alt:t.assets[a.index].id},null,8,EQ)):h.createCommentVNode("",!0)],10,yQ)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),p$="";function MA(t){this.content=t}MA.prototype={constructor:MA,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,A){var n=A&&A!=t?this.remove(A):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(A||t,e):(i[r+1]=e,A&&(i[r]=A)),new MA(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var A=this.content.slice();return A.splice(e,2),new MA(A)},addToStart:function(t,e){return new MA([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var A=this.remove(t).content.slice();return A.push(t,e),new MA(A)},addBefore:function(t,e,A){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,A),new MA(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=MA.from(t),t.size?new MA(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=MA.from(t),t.size?new MA(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=MA.from(t);for(var A=0;A<t.content.length;A+=2)e=e.remove(t.content[A]);return e},toObject:function(){var t={};return this.forEach(function(e,A){t[e]=A}),t},get size(){return this.content.length>>1}},MA.from=function(t){if(t instanceof MA)return t;var e=[];if(t)for(var A in t)e.push(A,t[A]);return new MA(e)};function dh(t,e,A){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:A;let r=t.child(n),i=e.child(n);if(r==i){A+=r.nodeSize;continue}if(!r.sameMarkup(i))return A;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)A++;return A}if(r.content.size||i.content.size){let s=dh(r.content,i.content,A+1);if(s!=null)return s}A+=r.nodeSize}}function hh(t,e,A,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:A,b:n};let s=t.child(--r),a=e.child(--i),c=s.nodeSize;if(s==a){A-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:A,b:n};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,A--,n--;return{a:A,b:n}}if(s.content.size||a.content.size){let u=hh(s.content,a.content,A-1,n-1);if(u)return u}A-=c,n-=c}}class Y{constructor(e,A){if(this.content=e,this.size=A||0,A==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,A,n,r=0,i){for(let s=0,a=0;a<A;s++){let c=this.content[s],u=a+c.nodeSize;if(u>e&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,e-f),Math.min(c.content.size,A-f),n,r+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,A,n,r){let i="",s=!0;return this.nodesBetween(e,A,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,A-c):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let A=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(A.isText&&A.sameMarkup(n)&&(r[r.length-1]=A.withText(A.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Y(r,this.size+e.size)}cut(e,A=this.size){if(e==0&&A==this.size)return this;let n=[],r=0;if(A>e)for(let i=0,s=0;s<A;i++){let a=this.content[i],c=s+a.nodeSize;c>e&&((s<e||c>A)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,A-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,A-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(e,A){return e==A?Y.empty:e==0&&A==this.content.length?this:new Y(this.content.slice(e,A))}replaceChild(e,A){let n=this.content[e];if(n==A)return this;let r=this.content.slice(),i=this.size+A.nodeSize-n.nodeSize;return r[e]=A,new Y(r,i)}addToStart(e){return new Y([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Y(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let A=0;A<this.content.length;A++)if(!this.content[A].eq(e.content[A]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let A=this.content[e];if(!A)throw new RangeError("Index "+e+" out of range for "+this);return A}maybeChild(e){return this.content[e]||null}forEach(e){for(let A=0,n=0;A<this.content.length;A++){let r=this.content[A];e(r,n,A),n+=r.nodeSize}}findDiffStart(e,A=0){return dh(this,e,A)}findDiffEnd(e,A=this.size,n=e.size){return hh(this,e,A,n)}findIndex(e,A=-1){if(e==0)return Ho(0,e);if(e==this.size)return Ho(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e||A>0?Ho(n+1,s):Ho(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,A){if(!A)return Y.empty;if(!Array.isArray(A))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(A.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Y.empty;let A,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(A||(A=e.slice(0,r)),A[A.length-1]=i.withText(A[A.length-1].text+i.text)):A&&A.push(i)}return new Y(A||e,n)}static from(e){if(!e)return Y.empty;if(e instanceof Y)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Y([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const mc={index:0,offset:0};function Ho(t,e){return mc.index=t,mc.offset=e,mc}function No(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let A=Array.isArray(t);if(Array.isArray(e)!=A)return!1;if(A){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!No(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!No(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let Ze=class lh{constructor(e,A){this.type=e,this.attrs=A}addToSet(e){let A,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))A||(A=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(A||(A=e.slice(0,r)),A.push(this),n=!0),A&&A.push(i)}}return A||(A=e.slice()),n||A.push(this),A}removeFromSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return e.slice(0,A).concat(e.slice(A+1));return e}isInSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return!0;return!1}eq(e){return this==e||this.type==e.type&&No(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[A.type];if(!n)throw new RangeError(`There is no mark type ${A.type} in this schema`);return n.create(A.attrs)}static sameSet(e,A){if(e==A)return!0;if(e.length!=A.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(A[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return lh.none;if(e instanceof lh)return[e];let A=e.slice();return A.sort((n,r)=>n.type.rank-r.type.rank),A}};Ze.none=[];class Do extends Error{}class j{constructor(e,A,n){this.content=e,this.openStart=A,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,A){let n=gh(this.content,e+this.openStart,A);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(e,A){return new j(ph(this.content,e+this.openStart,A+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,A){if(!A)return j.empty;let n=A.openStart||0,r=A.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(e,A.content),n,r)}static maxOpen(e,A=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.lastChild)r++;return new j(e,n,r)}}j.empty=new j(Y.empty,0,0);function ph(t,e,A){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(A);if(r==e||i.isText){if(a!=A&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(A))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(ph(i.content,e-r-1,A-r-1)))}function gh(t,e,A,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,A)?null:t.cut(0,e).append(A).append(t.cut(e));let a=gh(s.content,e-i-1,A);return a&&t.replaceChild(r,s.copy(a))}function FQ(t,e,A){if(A.openStart>t.depth)throw new Do("Inserted content deeper than insertion position");if(t.depth-A.openStart!=e.depth-A.openEnd)throw new Do("Inconsistent open depths");return mh(t,e,A,0)}function mh(t,e,A,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-A.openStart){let s=mh(t,e,A,n+1);return i.copy(i.content.replaceChild(r,s))}else if(A.content.size)if(!A.openStart&&!A.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(A.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=bQ(A,t);return Gr(i,wh(t,s,a,e,n))}else return Gr(i,Mo(t,e,n))}function Bh(t,e){if(!e.type.compatibleContent(t.type))throw new Do("Cannot join "+e.type.name+" onto "+t.type.name)}function Bc(t,e,A){let n=t.node(A);return Bh(n,e.node(A)),n}function Pr(t,e){let A=e.length-1;A>=0&&t.isText&&t.sameMarkup(e[A])?e[A]=t.withText(e[A].text+t.text):e.push(t)}function Qs(t,e,A,n){let r=(e||t).node(A),i=0,s=e?e.index(A):r.childCount;t&&(i=t.index(A),t.depth>A?i++:t.textOffset&&(Pr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Pr(r.child(a),n);e&&e.depth==A&&e.textOffset&&Pr(e.nodeBefore,n)}function Gr(t,e){return t.type.checkContent(e),t.copy(e)}function wh(t,e,A,n,r){let i=t.depth>r&&Bc(t,e,r+1),s=n.depth>r&&Bc(A,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&e.index(r)==A.index(r)?(Bh(i,s),Pr(Gr(i,wh(t,e,A,n,r+1)),a)):(i&&Pr(Gr(i,Mo(t,e,r+1)),a),Qs(e,A,r,a),s&&Pr(Gr(s,Mo(A,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,e,A){let n=[];if(Qs(null,t,A,n),t.depth>A){let r=Bc(t,e,A+1);Pr(Gr(r,Mo(t,e,A+1)),n)}return Qs(e,null,A,n),new Y(n)}function bQ(t,e){let A=e.depth-t.openStart,r=e.node(A).copy(t.content);for(let i=A-1;i>=0;i--)r=e.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+A),end:r.resolveNoCache(r.content.size-t.openEnd-A)}}class Fs{constructor(e,A,n){this.pos=e,this.path=A,this.parentOffset=n,this.depth=A.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,A=this.index(this.depth);if(A==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(A);return n?e.child(A).cut(n):r}get nodeBefore(){let e=this.index(this.depth),A=this.pos-this.path[this.path.length-1];return A?this.parent.child(e).cut(0,A):e==0?null:this.parent.child(e-1)}posAtIndex(e,A){A=this.resolveDepth(A);let n=this.path[A*3],r=A==0?0:this.path[A*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,A=this.index();if(e.content.size==0)return Ze.none;if(this.textOffset)return e.child(A).marks;let n=e.maybeChild(A-1),r=e.maybeChild(A);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let A=this.parent.maybeChild(this.index());if(!A||!A.isInline)return null;let n=A.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let A=this.depth;A>0;A--)if(this.start(A)<=e&&this.end(A)>=e)return A;return 0}blockRange(e=this,A){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!A||A(this.node(n))))return new Ro(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let A=1;A<=this.depth;A++)e+=(e?"/":"")+this.node(A).type.name+"_"+this.index(A-1);return e+":"+this.parentOffset}static resolve(e,A){if(!(A>=0&&A<=e.content.size))throw new RangeError("Position "+A+" out of range");let n=[],r=0,i=A;for(let s=e;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new Fs(A,n,i)}static resolveCached(e,A){for(let r=0;r<wc.length;r++){let i=wc[r];if(i.pos==A&&i.doc==e)return i}let n=wc[Cc]=Fs.resolve(e,A);return Cc=(Cc+1)%UQ,n}}let wc=[],Cc=0,UQ=12;class Ro{constructor(e,A,n){this.$from=e,this.$to=A,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const vQ=Object.create(null);let $r=class ch{constructor(e,A,n,r=Ze.none){this.type=e,this.attrs=A,this.marks=r,this.content=n||Y.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,A,n,r=0){this.content.nodesBetween(e,A,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,A,n,r){return this.content.textBetween(e,A,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,A,n){return this.type==e&&No(this.attrs,A||e.defaultAttrs||vQ)&&Ze.sameSet(this.marks,n||Ze.none)}copy(e=null){return e==this.content?this:new ch(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ch(this.type,this.attrs,this.content,e)}cut(e,A=this.content.size){return e==0&&A==this.content.size?this:this.copy(this.content.cut(e,A))}slice(e,A=this.content.size,n=!1){if(e==A)return j.empty;let r=this.resolve(e),i=this.resolve(A),s=n?0:r.sharedDepth(A),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(e,A,n){return FQ(this.resolve(e),this.resolve(A),n)}nodeAt(e){for(let A=this;;){let{index:n,offset:r}=A.content.findIndex(e);if(A=A.maybeChild(n),!A)return null;if(r==e||A.isText)return A;e-=r+1}}childAfter(e){let{index:A,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(A),index:A,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:A,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(A),index:A,offset:n};let r=this.content.child(A-1);return{node:r,index:A-1,offset:n-r.nodeSize}}resolve(e){return Fs.resolveCached(this,e)}resolveNoCache(e){return Fs.resolve(this,e)}rangeHasMark(e,A,n){let r=!1;return A>e&&this.nodesBetween(e,A,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Ch(this.marks,e)}contentMatchAt(e){let A=this.type.contentMatch.matchFragment(this.content,0,e);if(!A)throw new Error("Called contentMatchAt on a node with invalid content");return A}canReplace(e,A,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,A);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(e,A,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,A);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=Ze.none;for(let A=0;A<this.marks.length;A++)e=this.marks[A].addToSet(e);if(!Ze.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(A=>A.type.name)}`);this.content.forEach(A=>A.check())}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(A=>A.toJSON())),e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(A.marks){if(!Array.isArray(A.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=A.marks.map(e.markFromJSON)}if(A.type=="text"){if(typeof A.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(A.text,n)}let r=Y.fromJSON(e,A.content);return e.nodeType(A.type).create(A.attrs,r,n)}};$r.prototype.text=void 0;class Ko extends $r{constructor(e,A,n,r){if(super(e,A,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ch(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,A){return this.text.slice(e,A)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ko(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ko(this.type,this.attrs,e,this.marks)}cut(e=0,A=this.text.length){return e==0&&A==this.text.length?this:this.withText(this.text.slice(e,A))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ch(t,e){for(let A=t.length-1;A>=0;A--)e=t[A].type.name+"("+e+")";return e}class Wr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,A){let n=new IQ(e,A);if(n.next==null)return Wr.empty;let r=yh(n);n.next&&n.err("Unexpected trailing text");let i=kQ(LQ(r));return HQ(i,n),i}matchType(e){for(let A=0;A<this.next.length;A++)if(this.next[A].type==e)return this.next[A].next;return null}matchFragment(e,A=0,n=e.childCount){let r=this;for(let i=A;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:A}=this.next[e];if(!(A.isText||A.hasRequiredAttrs()))return A}return null}compatible(e){for(let A=0;A<this.next.length;A++)for(let n=0;n<e.next.length;n++)if(this.next[A].type==e.next[n].type)return!0;return!1}fillBefore(e,A=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(e,n);if(c&&(!A||c.validEnd))return Y.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let g=i(p,a.concat(f));if(g)return g}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let A=this.computeWrapping(e);return this.wrapCache.push(e,A),A}computeWrapping(e){let A=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in A)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),A[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function A(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&A(n.next[r].next)}return A(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
|
|
3
6
|
`)}}Wr.empty=new Wr(!0);class IQ{constructor(e,A){this.string=e,this.nodeTypes=A,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function yh(t){let e=[];do e.push(SQ(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function SQ(t){let e=[];do e.push(TQ(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function TQ(t){let e=OQ(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=_Q(t,e);else break;return e}function Eh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function _Q(t,e){let A=Eh(t),n=A;return t.eat(",")&&(t.next!="}"?n=Eh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:A,max:n,expr:e}}function xQ(t,e){let A=t.nodeTypes,n=A[e];if(n)return[n];let r=[];for(let i in A){let s=A[i];s.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function OQ(t){if(t.eat("(")){let e=yh(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=xQ(t,t.next).map(A=>(t.inline==null?t.inline=A.isInline:t.inline!=A.isInline&&t.err("Mixing inline and block content"),{type:"name",value:A}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function LQ(t){let e=[[]];return r(i(t,0),A()),e;function A(){return e.push([])-1}function n(s,a,c){let u={term:c,to:a};return e[s].push(u),u}function r(s,a){s.forEach(c=>c.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],a);if(c==s.exprs.length-1)return u;r(u,a=A())}else if(s.type=="star"){let c=A();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=A();return r(i(s.expr,a),c),r(i(s.expr,c),c),[n(c)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let f=A();r(i(s.expr,c),f),c=f}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let f=A();n(c,f),r(i(s.expr,c),f),c=f}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Qh(t,e){return e-t}function Fh(t,e){let A=[];return n(e),A.sort(Qh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);A.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&A.indexOf(c)==-1&&n(c)}}}function kQ(t){let e=Object.create(null);return A(Fh(t,0));function A(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);Fh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=e[n.join(",")]=new Wr(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Qh);i.next.push({type:r[s][0],next:e[a.join(",")]||A(a)})}return i}}function HQ(t,e){for(let A=0,n=[t];A<n.length;A++){let r=n[A],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:c,next:u}=r.next[a];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function bh(t){let e=Object.create(null);for(let A in t){let n=t[A];if(!n.hasDefault)return null;e[A]=n.default}return e}function Uh(t,e){let A=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}A[n]=r}return A}function vh(t){let e=Object.create(null);if(t)for(let A in t)e[A]=new NQ(t[A]);return e}let Ih=class fE{constructor(e,A,n){this.name=e,this.schema=A,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=vh(n.attrs),this.defaultAttrs=bh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Wr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Uh(this.attrs,e)}create(e=null,A,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new $r(this,this.computeAttrs(e),Y.from(A),Ze.setFrom(n))}createChecked(e=null,A,n){return A=Y.from(A),this.checkContent(A),new $r(this,this.computeAttrs(e),A,Ze.setFrom(n))}createAndFill(e=null,A,n){if(e=this.computeAttrs(e),A=Y.from(A),A.size){let s=this.contentMatch.fillBefore(A);if(!s)return null;A=s.append(A)}let r=this.contentMatch.matchFragment(A),i=r&&r.fillBefore(Y.empty,!0);return i?new $r(this,e,A.append(i),Ze.setFrom(n)):null}validContent(e){let A=this.contentMatch.matchFragment(e);if(!A||!A.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let A=0;A<e.length;A++)if(!this.allowsMarkType(e[A].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let A;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?A&&A.push(e[n]):A||(A=e.slice(0,n));return A?A.length?A:Ze.none:e}static compile(e,A){let n=Object.create(null);e.forEach((i,s)=>n[i]=new fE(i,A,s));let r=A.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class NQ{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Vo{constructor(e,A,n,r){this.name=e,this.rank=A,this.schema=n,this.spec=r,this.attrs=vh(r.attrs),this.excluded=null;let i=bh(this.attrs);this.instance=i?new Ze(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ze(this,Uh(this.attrs,e))}static compile(e,A){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new Vo(i,r++,A,s)),n}removeFromSet(e){for(var A=0;A<e.length;A++)e[A].type==this&&(e=e.slice(0,A).concat(e.slice(A+1)),A--);return e}isInSet(e){for(let A=0;A<e.length;A++)if(e[A].type==this)return e[A]}excludes(e){return this.excluded.indexOf(e)>-1}}class DQ{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let A=this.spec={};for(let r in e)A[r]=e[r];A.nodes=MA.from(e.nodes),A.marks=MA.from(e.marks||{}),this.nodes=Ih.compile(this.spec.nodes,this),this.marks=Vo.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=Wr.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Sh(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Sh(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,A=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Ih){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(A,n,r)}text(e,A){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,e,Ze.setFrom(A))}mark(e,A){return typeof e=="string"&&(e=this.marks[e]),e.create(A)}nodeFromJSON(e){return $r.fromJSON(this,e)}markFromJSON(e){return Ze.fromJSON(this,e)}nodeType(e){let A=this.nodes[e];if(!A)throw new RangeError("Unknown node type: "+e);return A}}function Sh(t,e){let A=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)A.push(i);else for(let a in t.marks){let c=t.marks[a];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&A.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return A}function MQ(t){return t.tag!=null}function RQ(t){return t.style!=null}class Fi{constructor(e,A){this.schema=e,this.rules=A,this.tags=[],this.styles=[],A.forEach(n=>{MQ(n)?this.tags.push(n):RQ(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=e.nodes[n.node];return r.contentMatch.matchType(r)})}parse(e,A={}){let n=new Oh(this,A,!1);return n.addAll(e,A.from,A.to),n.finish()}parseSlice(e,A={}){let n=new Oh(this,A,!0);return n.addAll(e,A.from,A.to),j.maxOpen(n.finish())}matchTag(e,A,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(PQ(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||A.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,A,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=A))){if(s.getAttrs){let c=s.getAttrs(A);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(e){let A=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<A.length;s++){let a=A[s];if((a.priority==null?50:a.priority)<i)break}A.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return A}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Fi(e,Fi.schemaRules(e)))}}const Th={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},KQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_h={ol:!0,ul:!0},Po=1,Go=2,bs=4;function xh(t,e,A){return e!=null?(e?Po:0)|(e==="full"?Go:0):t&&t.whitespace=="pre"?Po|Go:A&~bs}class $o{constructor(e,A,n,r,i,s,a){this.type=e,this.attrs=A,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Ze.none,this.stashMarks=[],this.match=s||(a&bs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let A=this.type.contentMatch.fillBefore(Y.from(e));if(A)this.match=this.type.contentMatch.matchFragment(A);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Po)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let A=Y.from(this.content);return!e&&this.match&&(A=A.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,A,this.marks):A}popFromStashMark(e){for(let A=this.stashMarks.length-1;A>=0;A--)if(e.eq(this.stashMarks[A]))return this.stashMarks.splice(A,1)[0]}applyPending(e){for(let A=0,n=this.pendingMarks;A<n.length;A++){let r=n[A];(this.type?this.type.allowsMarkType(r.type):GQ(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Th.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Oh{constructor(e,A,n){this.parser=e,this.options=A,this.isOpen=n,this.open=0;let r=A.topNode,i,s=xh(null,A.preserveWhitespace,0)|(n?bs:0);r?i=new $o(r.type,r.attrs,Ze.none,Ze.none,!0,A.topMatch||r.type.contentMatch,s):n?i=new $o(null,null,Ze.none,Ze.none,!0,null,s):i=new $o(e.schema.topNodeType,null,Ze.none,Ze.none,!0,null,s),this.nodes=[i],this.find=A.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,A){let n=e.style;if(!n||!n.length)return A();let r=this.readStyles(e.style);if(!r)return;let[i,s]=r,a=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],a);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);A();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],a);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(e){let A=e.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(A)){if(n.options&Po)n.options&Go?A=A.replace(/\r\n?/g,`
|
|
4
7
|
`):A=A.replace(/\r?\n|\r/g," ");else if(A=A.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(A)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(A=A.slice(1))}A&&this.insertNode(this.parser.schema.text(A)),this.findInText(e)}else this.findInside(e)}addElement(e,A){let n=e.nodeName.toLowerCase(),r;_h.hasOwnProperty(n)&&this.parser.normalizeLists&&VQ(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,A));if(i?i.ignore:KQ.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,a=this.top,c=this.needsBlock;if(Th.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?r:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
5
8
|
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let A=Ze.none,n=Ze.none;for(let r=0,i=e.length;r<i;r++){let s=e.item(r);for(let a=void 0;;){let c=this.parser.matchStyle(s,e.getPropertyValue(s),this,a);if(!c)break;if(c.ignore)return null;if(c.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(u=>{c.clearMark(u)&&(n=u.addToSet(n))}):A=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(A),c.consuming===!1)a=c;else break}}return[A,n]}addElementByRule(e,A,n){let r,i,s;A.node?(i=this.parser.schema.nodes[A.node],i.isLeaf?this.insertNode(i.create(A.attrs))||this.leafFallback(e):r=this.enter(i,A.attrs||null,A.preserveWhitespace)):(s=this.parser.schema.marks[A.mark].create(A.attrs),this.addPendingMark(s));let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(A.getContent)this.findInside(e),A.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof A.contentElement=="string"?c=e.querySelector(A.contentElement):typeof A.contentElement=="function"?c=A.contentElement(e):A.contentElement&&(c=A.contentElement),this.findAround(e,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,A,n){let r=A||0;for(let i=A?e.childNodes[A]:e.firstChild,s=n==null?null:e.childNodes[n];i!=s;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let A,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],s=i.findWrapping(e);if(s&&(!A||A.length>s.length)&&(A=s,n=i,!s.length)||i.solid)break}if(!A)return!1;this.sync(n);for(let r=0;r<A.length;r++)this.enterInner(A[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let A=this.textblockFromContext();A&&this.enterInner(A)}if(this.findPlace(e)){this.closeExtra();let A=this.top;A.applyPending(e.type),A.match&&(A.match=A.match.matchType(e.type));let n=A.activeMarks;for(let r=0;r<e.marks.length;r++)(!A.type||A.type.allowsMarkType(e.marks[r].type))&&(n=e.marks[r].addToSet(n));return A.content.push(e.mark(n)),!0}return!1}enter(e,A,n){let r=this.findPlace(e.create(A));return r&&this.enterInner(e,A,!0,n),r}enterInner(e,A=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=xh(e,r,i.options);i.options&bs&&i.content.length==0&&(s|=bs),this.nodes.push(new $o(e,A,i.activeMarks,i.pendingMarks,n,null,s)),this.open++}closeExtra(e=!1){let A=this.nodes.length-1;if(A>this.open){for(;A>this.open;A--)this.nodes[A-1].content.push(this.nodes[A].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let A=this.open;A>=0;A--)if(this.nodes[A]==e)return this.open=A,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let A=this.open;A>=0;A--){let n=this.nodes[A].content;for(let r=n.length-1;r>=0;r--)e+=n[r].nodeSize;A&&e++}return e}findAtPoint(e,A){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==A&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].pos==null&&e.nodeType==1&&e.contains(this.find[A].node)&&(this.find[A].pos=this.currentPos)}findAround(e,A,n){if(e!=A&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&A.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].node==e&&(this.find[A].pos=this.currentPos-(e.nodeValue.length-this.find[A].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let A=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),s=(a,c)=>{for(;a>=0;a--){let u=A[a];if(u==""){if(a==A.length-1||a==0)continue;for(;c>=i;c--)if(s(a-1,c))return!0;return!1}else{let f=c>0||c==0&&r?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!f||f.name!=u&&f.groups.indexOf(u)==-1)return!1;c--}}return!0};return s(A.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let A=e.depth;A>=0;A--){let n=e.node(A).contentMatchAt(e.indexAfter(A)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let A in this.parser.schema.nodes){let n=this.parser.schema.nodes[A];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(e){let A=$Q(e,this.top.pendingMarks);A&&this.top.stashMarks.push(A),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,A){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let s=r.popFromStashMark(e);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==A)break}}}function VQ(t){for(let e=t.firstChild,A=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&_h.hasOwnProperty(n)&&A?(A.appendChild(e),e=A):n=="li"?A=e:n&&(A=null)}}function PQ(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Lh(t){let e={};for(let A in t)e[A]=t[A];return e}function GQ(t,e){let A=e.schema.nodes;for(let n in A){let r=A[n];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let c=0;c<a.edgeCount;c++){let{type:u,next:f}=a.edge(c);if(u==e||i.indexOf(f)<0&&s(f))return!0}};if(s(r.contentMatch))return!0}}function $Q(t,e){for(let A=0;A<e.length;A++)if(t.eq(e[A]))return e[A]}class mn{constructor(e,A){this.nodes=e,this.marks=A}serializeFragment(e,A={},n){n||(n=yc(A).createDocumentFragment());let r=n,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,c=0;for(;a<i.length&&c<s.marks.length;){let u=s.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,c++}for(;a<i.length;)r=i.pop()[1];for(;c<s.marks.length;){let u=s.marks[c++],f=this.serializeMark(u,s.isInline,A);f&&(i.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(s,A))}),n}serializeNodeInner(e,A){let{dom:n,contentDOM:r}=mn.renderSpec(yc(A),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,A,r)}return n}serializeNode(e,A={}){let n=this.serializeNodeInner(e,A);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,A);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,A,n={}){let r=this.marks[e.type.name];return r&&mn.renderSpec(yc(n),r(e,A))}static renderSpec(e,A,n=null){if(typeof A=="string")return{dom:e.createTextNode(A)};if(A.nodeType!=null)return{dom:A};if(A.dom&&A.dom.nodeType!=null)return A;let r=A[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let s,a=n?e.createElementNS(n,r):e.createElement(r),c=A[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let f in c)if(c[f]!=null){let p=f.indexOf(" ");p>0?a.setAttributeNS(f.slice(0,p),f.slice(p+1),c[f]):a.setAttribute(f,c[f])}}for(let f=u;f<A.length;f++){let p=A[f];if(p===0){if(f<A.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:g,contentDOM:B}=mn.renderSpec(e,p,n);if(a.appendChild(g),B){if(s)throw new RangeError("Multiple content holes");s=B}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new mn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let A=kh(e.nodes);return A.text||(A.text=n=>n.text),A}static marksFromSchema(e){return kh(e.marks)}}function kh(t){let e={};for(let A in t){let n=t[A].spec.toDOM;n&&(e[A]=n)}return e}function yc(t){return t.document||window.document}const Hh=65535,Nh=Math.pow(2,16);function WQ(t,e){return t+e*Nh}function Dh(t){return t&Hh}function JQ(t){return(t-(t&Hh))/Nh}const Mh=1,Rh=2,Wo=4,Kh=8;class Ec{constructor(e,A,n){this.pos=e,this.delInfo=A,this.recover=n}get deleted(){return(this.delInfo&Kh)>0}get deletedBefore(){return(this.delInfo&(Mh|Wo))>0}get deletedAfter(){return(this.delInfo&(Rh|Wo))>0}get deletedAcross(){return(this.delInfo&Wo)>0}}class Ut{constructor(e,A=!1){if(this.ranges=e,this.inverted=A,!e.length&&Ut.empty)return Ut.empty}recover(e){let A=0,n=Dh(e);if(!this.inverted)for(let r=0;r<n;r++)A+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+A+JQ(e)}mapResult(e,A=1){return this._map(e,A,!1)}map(e,A=1){return this._map(e,A,!0)}_map(e,A,n){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=c+u;if(e<=p){let g=u?e==c?-1:e==p?1:A:A,B=c+r+(g<0?0:f);if(n)return B;let w=e==(A<0?c:p)?null:WQ(a/3,e-c),Q=e==c?Rh:e==p?Mh:Wo;return(A<0?e!=c:e!=p)&&(Q|=Kh),new Ec(B,Q,w)}r+=f-u}return n?e+r:new Ec(e+r,0,null)}touches(e,A){let n=0,r=Dh(A),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?n:0);if(c>e)break;let u=this.ranges[a+i],f=c+u;if(e<=f&&a==r*3)return!0;n+=this.ranges[a+s]-u}return!1}forEach(e){let A=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),c=s+(this.inverted?0:i),u=this.ranges[r+A],f=this.ranges[r+n];e(a,a+u,c,c+f),i+=f-u}}invert(){return new Ut(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Ut.empty:new Ut(e<0?[0,-e,0]:[0,0,e])}}Ut.empty=new Ut([]);class bi{constructor(e=[],A,n=0,r=e.length){this.maps=e,this.mirror=A,this.from=n,this.to=r}slice(e=0,A=this.maps.length){return new bi(this.maps,this.mirror,e,A)}copy(){return new bi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,A){this.to=this.maps.push(e),A!=null&&this.setMirror(this.maps.length-1,A)}appendMapping(e){for(let A=0,n=this.maps.length;A<e.maps.length;A++){let r=e.getMirror(A);this.appendMap(e.maps[A],r!=null&&r<A?n+r:void 0)}}getMirror(e){if(this.mirror){for(let A=0;A<this.mirror.length;A++)if(this.mirror[A]==e)return this.mirror[A+(A%2?-1:1)]}}setMirror(e,A){this.mirror||(this.mirror=[]),this.mirror.push(e,A)}appendMappingInverted(e){for(let A=e.maps.length-1,n=this.maps.length+e.maps.length;A>=0;A--){let r=e.getMirror(A);this.appendMap(e.maps[A].invert(),r!=null&&r>A?n-r-1:void 0)}}invert(){let e=new bi;return e.appendMappingInverted(this),e}map(e,A=1){if(this.mirror)return this._map(e,A,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,A);return e}mapResult(e,A=1){return this._map(e,A,!1)}_map(e,A,n){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(e,A);if(a.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return n?e:new Ec(e,r,null)}}const Qc=Object.create(null);class JA{getMap(){return Ut.empty}merge(e){return null}static fromJSON(e,A){if(!A||!A.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Qc[A.stepType];if(!n)throw new RangeError(`No step type ${A.stepType} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in Qc)throw new RangeError("Duplicate use of step JSON ID "+e);return Qc[e]=A,A.prototype.jsonID=e,A}}class QA{constructor(e,A){this.doc=e,this.failed=A}static ok(e){return new QA(e,null)}static fail(e){return new QA(null,e)}static fromReplace(e,A,n,r){try{return QA.ok(e.replace(A,n,r))}catch(i){if(i instanceof Do)return QA.fail(i.message);throw i}}}function Fc(t,e,A){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Fc(i.content,e,i))),i.isInline&&(i=e(i,A,r)),n.push(i)}return Y.fromArray(n)}class sr extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Fc(A.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,i)}invert(){return new Bn(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new sr(A.pos,n.pos,this.mark)}merge(e){return e instanceof sr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new sr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sr(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("addMark",sr);class Bn extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=new j(Fc(A.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,n)}invert(){return new sr(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new Bn(A.pos,n.pos,this.mark)}merge(e){return e instanceof Bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Bn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Bn(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("removeMark",Bn);class or extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.addToSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);if(A){let n=this.mark.addToSet(A.marks);if(n.length==A.marks.length){for(let r=0;r<A.marks.length;r++)if(!A.marks[r].isInSet(n))return new or(this.pos,A.marks[r]);return new or(this.pos,this.mark)}}return new Ui(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new or(A.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new or(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("addNodeMark",or);class Ui extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.removeFromSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);return!A||!this.mark.isInSet(A.marks)?this:new or(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new Ui(A.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ui(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("removeNodeMark",Ui);class xA extends JA{constructor(e,A,n,r=!1){super(),this.from=e,this.to=A,this.slice=n,this.structure=r}apply(e){return this.structure&&bc(e,this.from,this.to)?QA.fail("Structure replace would overwrite content"):QA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ut([this.from,this.to-this.from,this.slice.size])}invert(e){return new xA(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deletedAcross&&n.deletedAcross?null:new xA(A.pos,Math.max(A.pos,n.pos),this.slice)}merge(e){if(!(e instanceof xA)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let A=this.slice.size+e.slice.size==0?j.empty:new j(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new xA(this.from,this.to+(e.to-e.from),A,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let A=this.slice.size+e.slice.size==0?j.empty:new j(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new xA(e.from,this.to,A,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xA(A.from,A.to,j.fromJSON(e,A.slice),!!A.structure)}}JA.jsonID("replace",xA);class OA extends JA{constructor(e,A,n,r,i,s,a=!1){super(),this.from=e,this.to=A,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(bc(e,this.from,this.gapFrom)||bc(e,this.gapTo,this.to)))return QA.fail("Structure gap-replace would overwrite content");let A=e.slice(this.gapFrom,this.gapTo);if(A.openStart||A.openEnd)return QA.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,A.content);return n?QA.fromReplace(e,this.from,this.to,n):QA.fail("Content does not fit in gap")}getMap(){return new Ut([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let A=this.gapTo-this.gapFrom;return new OA(this.from,this.from+this.slice.size+A,this.from+this.insert,this.from+this.insert+A,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?A.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return A.deletedAcross&&n.deletedAcross||r<A.pos||i>n.pos?null:new OA(A.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number"||typeof A.gapFrom!="number"||typeof A.gapTo!="number"||typeof A.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new OA(A.from,A.to,A.gapFrom,A.gapTo,j.fromJSON(e,A.slice),A.insert,!!A.structure)}}JA.jsonID("replaceAround",OA);function bc(t,e,A){let n=t.resolve(e),r=A-e,i=n.depth;for(;r>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,r--;if(r>0){let s=n.node(i).maybeChild(n.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function XQ(t,e,A,n){let r=[],i=[],s,a;t.doc.nodesBetween(e,A,(c,u,f)=>{if(!c.isInline)return;let p=c.marks;if(!n.isInSet(p)&&f.type.allowsMarkType(n.type)){let g=Math.max(u,e),B=Math.min(u+c.nodeSize,A),w=n.addToSet(p);for(let Q=0;Q<p.length;Q++)p[Q].isInSet(w)||(s&&s.to==g&&s.mark.eq(p[Q])?s.to=B:r.push(s=new Bn(g,B,p[Q])));a&&a.to==g?a.to=B:i.push(a=new sr(g,B,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function YQ(t,e,A,n){let r=[],i=0;t.doc.nodesBetween(e,A,(s,a)=>{if(!s.isInline)return;i++;let c=null;if(n instanceof Vo){let u=s.marks,f;for(;f=n.isInSet(u);)(c||(c=[])).push(f),u=f.removeFromSet(u)}else n?n.isInSet(s.marks)&&(c=[n]):c=s.marks;if(c&&c.length){let u=Math.min(a+s.nodeSize,A);for(let f=0;f<c.length;f++){let p=c[f],g;for(let B=0;B<r.length;B++){let w=r[B];w.step==i-1&&p.eq(r[B].style)&&(g=w)}g?(g.to=u,g.step=i):r.push({style:p,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function Vh(t,e,A,n=A.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let c=0;c<i.childCount;c++){let u=i.child(c),f=a+u.nodeSize,p=n.matchType(u.type);if(!p)s.push(new xA(a,f,j.empty));else{n=p;for(let g=0;g<u.marks.length;g++)A.allowsMarkType(u.marks[g].type)||t.step(new Bn(a,f,u.marks[g]));if(r&&u.isText&&A.whitespace!="pre"){let g,B=/\r?\n|\r/g,w;for(;g=B.exec(u.text);)w||(w=new j(Y.from(A.schema.text(" ",A.allowedMarks(u.marks))),0,0)),s.push(new xA(a+g.index,a+g.index+g[0].length,w))}}a=f}if(!n.validEnd){let c=n.fillBefore(Y.empty,!0);t.replace(a,a,new j(c,0,0))}for(let c=s.length-1;c>=0;c--)t.step(s[c])}function zQ(t,e,A){return(e==0||t.canReplace(e,t.childCount))&&(A==t.childCount||t.canReplace(0,A))}function vi(t){let A=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let r=t.$from.node(n),i=t.$from.index(n),s=t.$to.indexAfter(n);if(n<t.depth&&r.canReplace(i,s,A))return n;if(n==0||r.type.spec.isolating||!zQ(r,i,s))break}return null}function qQ(t,e,A){let{$from:n,$to:r,depth:i}=e,s=n.before(i+1),a=r.after(i+1),c=s,u=a,f=Y.empty,p=0;for(let w=i,Q=!1;w>A;w--)Q||n.index(w)>0?(Q=!0,f=Y.from(n.node(w).copy(f)),p++):c--;let g=Y.empty,B=0;for(let w=i,Q=!1;w>A;w--)Q||r.after(w+1)<r.end(w)?(Q=!0,g=Y.from(r.node(w).copy(g)),B++):u++;t.step(new OA(c,u,s,a,new j(f.append(g),p,B),f.size-p,!0))}function Uc(t,e,A=null,n=t){let r=ZQ(t,e),i=r&&jQ(n,e);return i?r.map(Ph).concat({type:e,attrs:A}).concat(i.map(Ph)):null}function Ph(t){return{type:t,attrs:null}}function ZQ(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.contentMatchAt(n).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return A.canReplaceWith(n,r,s)?i:null}function jQ(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.child(n),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:e).contentMatch;for(let u=n;c&&u<r;u++)c=c.matchType(A.child(u).type);return!c||!c.validEnd?null:s}function eF(t,e,A){let n=Y.empty;for(let s=A.length-1;s>=0;s--){if(n.size){let a=A[s].type.contentMatch.matchFragment(n);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=Y.from(A[s].type.create(A[s].attrs,n))}let r=e.start,i=e.end;t.step(new OA(r,i,r,i,new j(n,0,0),A.length,!0))}function AF(t,e,A,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,A,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(n,r)&&rF(t.doc,t.mapping.slice(i).map(a),n)){let c=null;if(n.schema.linebreakReplacement){let g=n.whitespace=="pre",B=!!n.contentMatch.matchType(n.schema.linebreakReplacement);g&&!B?c=!1:!g&&B&&(c=!0)}c===!1&&nF(t,s,a,i),Vh(t,t.mapping.slice(i).map(a,1),n,void 0,c===null);let u=t.mapping.slice(i),f=u.map(a,1),p=u.map(a+s.nodeSize,1);return t.step(new OA(f,p,f+1,p-1,new j(Y.from(n.create(r,null,s.marks)),0,0),1,!0)),c===!0&&tF(t,s,a,i),!1}})}function tF(t,e,A,n){e.forEach((r,i)=>{if(r.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(r.text);){let c=t.mapping.slice(n).map(A+1+i+s.index);t.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function nF(t,e,A,n){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(n).map(A+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from './vue/dist/vue.esm-bundler.js';
|
|
2
2
|
declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent<{
|
|
3
3
|
modelValue: {
|
|
4
|
-
|
|
4
|
+
type: null;
|
|
5
5
|
};
|
|
6
6
|
options: {
|
|
7
7
|
type: PropType<any[]>;
|
|
@@ -35,9 +35,12 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
37
37
|
};
|
|
38
|
+
keyOption: {
|
|
39
|
+
type: null;
|
|
40
|
+
};
|
|
38
41
|
}, {}, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import('./vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
39
42
|
modelValue: {
|
|
40
|
-
|
|
43
|
+
type: null;
|
|
41
44
|
};
|
|
42
45
|
options: {
|
|
43
46
|
type: PropType<any[]>;
|
|
@@ -71,6 +74,9 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
71
74
|
type: BooleanConstructor;
|
|
72
75
|
default: boolean;
|
|
73
76
|
};
|
|
77
|
+
keyOption: {
|
|
78
|
+
type: null;
|
|
79
|
+
};
|
|
74
80
|
}>> & {
|
|
75
81
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
76
82
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -78,7 +84,6 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
78
84
|
variant: string;
|
|
79
85
|
disabled: boolean;
|
|
80
86
|
required: boolean;
|
|
81
|
-
modelValue: undefined;
|
|
82
87
|
name: string;
|
|
83
88
|
id: string;
|
|
84
89
|
label: string;
|