ss-component-new 1.1.650 → 1.1.652
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OrbitControls-_OchPPiM.js → OrbitControls-DQKCQqAM.js} +1 -1
- package/dist/{OrbitControls-Bg4B8Cgp.cjs → OrbitControls-RNnt_mcM.cjs} +1 -1
- package/dist/{index-BFEIlehR.js → index-4u-23Xo4.js} +473 -473
- package/dist/{index-Ek40M5wF.cjs → index-AQlYfiDo.cjs} +1 -1
- package/dist/{index-fonjRvDp.cjs → index-B5_rLo35.cjs} +1 -1
- package/dist/{index-DuJ88H2v.js → index-BblcmVmO.js} +1 -1
- package/dist/{index-C7_vKAdv.js → index-BtpXvIA6.js} +2 -2
- package/dist/{index-Dc1Oymj0.cjs → index-C0beLcSH.cjs} +1 -1
- package/dist/{index-99EALz1V.js → index-C3rKctcY.js} +1 -1
- package/dist/{index-RhyWQqr7.js → index-C42OOZRy.js} +1 -1
- package/dist/{index--CQAIixM.js → index-CGPCGRRh.js} +2 -2
- package/dist/{index-DB74RlFp.js → index-CYAUSnqq.js} +4 -4
- package/dist/{index-D6MYmUDV.js → index-Ce2J4d7D.js} +1 -1
- package/dist/{index-2tlC0WSo.js → index-CjMBj5BR.js} +1 -1
- package/dist/{index-Di7JB-TG.js → index-CoVdQV0i.js} +1 -1
- package/dist/{index-BUaCslMJ.js → index-Cz_HbE8e.js} +1 -1
- package/dist/{index-Dw_V6yKW.js → index-CzetAh_D.js} +1 -1
- package/dist/{index-Dr3CYkCo.js → index-D7YhWesS.js} +3 -3
- package/dist/{index-DWzq96q9.js → index-DA3sQfEs.js} +1 -1
- package/dist/{index-AJ-ERxfw.cjs → index-DDzG6c2B.cjs} +1 -1
- package/dist/{index-D0LMLPcN.cjs → index-DJVi8ojh.cjs} +1 -1
- package/dist/{index-BBS2a17j.cjs → index-DQKyxjSf.cjs} +1 -1
- package/dist/{index-Cgru6blF.cjs → index-DhtFD1-B.cjs} +1 -1
- package/dist/{index-mm1iZv-U.cjs → index-DkYoWwCG.cjs} +1 -1
- package/dist/{index-C8PYYQwg.cjs → index-DpYdEBga.cjs} +1 -1
- package/dist/{index-CFbzkHW0.cjs → index-DqWKrP7p.cjs} +1 -1
- package/dist/{index-P35j7PPT.cjs → index-DzjLEJ2G.cjs} +1 -1
- package/dist/{index-C2Ok3w4G.cjs → index-G2O6ETUf.cjs} +1 -1
- package/dist/{index-5_rbXdYz.cjs → index-ZjWIhy36.cjs} +1 -1
- package/dist/{index-BR77jf7K.cjs → index-d9EmloJa.cjs} +12 -12
- package/dist/{index-B6Ml2anh.js → index-dWBhk9Dk.js} +8 -8
- package/dist/{index-DaGbhRQG.cjs → index-he-22_jo.cjs} +1 -1
- package/dist/{index-DE2i0Hrn.js → index-kmklo8FV.js} +5 -5
- package/dist/{index-DmOb4Y3Y.cjs → index-wGULs5QZ.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-IayePa4v.cjs → index.vue_vue_type_style_index_0_scoped_264dc673_lang-9D6uXhMg.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-DThFTJbG.js → index.vue_vue_type_style_index_0_scoped_264dc673_lang-DsD_HsX5.js} +78 -73
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-Cc3pYah2.cjs → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-MGyd1nJE.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-D-l2wgcD.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-kQnSo8kS.js} +3 -3
- package/dist/{main-BFSKjZRd.cjs → main-Br1m2nJe.cjs} +1 -1
- package/dist/{main-Dw3o67DJ.js → main-COl_jsOs.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BKsAhpob.cjs → threeModel-CLfnrscV.cjs} +1 -1
- package/dist/{threeModel-e6llE76r.js → threeModel-y4tbC87W.js} +2 -2
- package/package.json +2 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as W, resolveComponent as F, createBlock as G, openBlock as C, createCommentVNode as ee, defineComponent as bt, onMounted as $t, withCtx as B, createVNode as K, createElementVNode as X, createElementBlock as L, Fragment as
|
|
1
|
+
import { ref as W, resolveComponent as F, createBlock as G, openBlock as C, createCommentVNode as ee, defineComponent as bt, onMounted as $t, withCtx as B, createVNode as K, createElementVNode as X, createElementBlock as L, Fragment as me, renderList as ve, createTextVNode as Lt, toDisplayString as Ee, watch as rt, normalizeStyle as Ie, unref as p0, createSlots as Qt, resolveDynamicComponent as h2, normalizeClass as Pl, nextTick as u0, renderSlot as le, normalizeProps as Ba, guardReactiveProps as La, mergeProps as O2, computed as re, withDirectives as Ra, vShow as Ia, watchEffect as B0, onUnmounted as ji, h as So, reactive as zl, onBeforeUnmount as Ha, toRefs as Na } from "vue";
|
|
2
2
|
import { S as _o } from "./index-BHtNKL1L.js";
|
|
3
3
|
import { h as ko, Z as Co, z as $a, _ as Wa, $ as Ga, a0 as Oo, a1 as Mo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-uJF9vYMQ.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { bR as Fa, bS as ja, c as gt, a as Ui, p as Ua, E as Vl, u as qa, s as Ya, bE as Ka, c5 as Xa, aO as Qa, aq as Ja } from "./menu-Bj0eSg6d.js";
|
|
6
6
|
import { u as Za } from "./modelComp-CUCWitDo.js";
|
|
7
7
|
import { _ as eh } from "./index.vue_vue_type_script_setup_true_lang-D32wqX6B.js";
|
|
@@ -460,7 +460,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
460
460
|
}, {
|
|
461
461
|
default: B(() => [
|
|
462
462
|
X("div", yu, [
|
|
463
|
-
(C(!0), L(
|
|
463
|
+
(C(!0), L(me, null, ve(r.value, (p, g) => (C(), L("div", {
|
|
464
464
|
key: g,
|
|
465
465
|
class: "icon-wrap",
|
|
466
466
|
onClick: (m) => c(p)
|
|
@@ -495,7 +495,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
495
495
|
}, 8, ["visible"]);
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
}), ku = /* @__PURE__ */
|
|
498
|
+
}), ku = /* @__PURE__ */ Oe(_u, [["__scopeId", "data-v-d9981dd9"]]), Cu = {
|
|
499
499
|
__name: "index",
|
|
500
500
|
props: {
|
|
501
501
|
value: String,
|
|
@@ -610,7 +610,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
610
610
|
loading: t == null ? void 0 : t.loading
|
|
611
611
|
}, {
|
|
612
612
|
default: B(() => [
|
|
613
|
-
Lt(
|
|
613
|
+
Lt(Ee(i.value), 1)
|
|
614
614
|
]),
|
|
615
615
|
_: 1
|
|
616
616
|
}, 8, ["type", "id", "loading"]);
|
|
@@ -709,7 +709,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
709
709
|
const _ = F("el-form-item"), x = F("el-form"), S = F("el-button");
|
|
710
710
|
return C(), L("div", {
|
|
711
711
|
class: "form-content",
|
|
712
|
-
style:
|
|
712
|
+
style: Ie({ flexDirection: n.isButtonRow ? "row" : "column" })
|
|
713
713
|
}, [
|
|
714
714
|
X("div", Du, [
|
|
715
715
|
t.isEnableWrap ? (C(), G(x, {
|
|
@@ -723,18 +723,18 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
723
723
|
default: B(() => {
|
|
724
724
|
var T, V;
|
|
725
725
|
return [
|
|
726
|
-
(T = b.item) != null && T.isFormColHidden ? ee("", !0) : (C(!0), L(
|
|
726
|
+
(T = b.item) != null && T.isFormColHidden ? ee("", !0) : (C(!0), L(me, { key: 0 }, ve(p0(gt)(t == null ? void 0 : t.rowContents), (w, j) => (C(), G(_, {
|
|
727
727
|
key: j,
|
|
728
728
|
class: "form-item",
|
|
729
729
|
prop: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
730
|
-
style:
|
|
730
|
+
style: Ie({ flexDirection: n.isRowFlex ? "row" : "column", alignItems: n.isRowFlex ? "center" : "start", height: n.isRowFlex ? "100%" : "auto" })
|
|
731
731
|
}, Qt({
|
|
732
732
|
default: B(() => {
|
|
733
|
-
var N, J, Z, ie;
|
|
733
|
+
var N, J, Z, ie, ye;
|
|
734
734
|
return [
|
|
735
735
|
w != null && w.isFormColHidden ? ee("", !0) : (C(), G(h2(c((w == null ? void 0 : w.type) ?? "Input")), {
|
|
736
736
|
modelValue: l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
|
|
737
|
-
"onUpdate:modelValue": (
|
|
737
|
+
"onUpdate:modelValue": (Se) => l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)] = Se,
|
|
738
738
|
key: w == null ? void 0 : w.type,
|
|
739
739
|
content: (w == null ? void 0 : w.contents) ?? [],
|
|
740
740
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
@@ -742,13 +742,13 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
742
742
|
onBlur: d,
|
|
743
743
|
optionUrl: w == null ? void 0 : w.optionUrl,
|
|
744
744
|
onChangeVisible: m,
|
|
745
|
-
onBlurChange: (
|
|
745
|
+
onBlurChange: (Se) => f((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
|
|
746
746
|
config: w == null ? void 0 : w.config
|
|
747
747
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "optionUrl", "onBlurChange", "config"])),
|
|
748
|
-
typeof l.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((N = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && N.includes(".stl") || (J = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && J.includes(".obj") || (Z = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Z.includes(".urdf") || (ie = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ie.includes(".ls")) ? (C(), G(Rn, {
|
|
748
|
+
typeof l.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((N = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && N.includes(".stl") || (J = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && J.includes(".obj") || (Z = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Z.includes(".urdf") || (ie = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ie.includes(".STL") || (ye = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ye.includes(".ls")) ? (C(), G(Rn, {
|
|
749
749
|
key: 1,
|
|
750
750
|
class: "calculator-content form-preview",
|
|
751
|
-
onClickTrigger: (
|
|
751
|
+
onClickTrigger: (Se) => u(l.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
752
752
|
modelValue: "预览"
|
|
753
753
|
}, null, 8, ["onClickTrigger"])) : ee("", !0)
|
|
754
754
|
];
|
|
@@ -761,9 +761,9 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
761
761
|
w != null && w.label ? (C(), L("div", {
|
|
762
762
|
key: 0,
|
|
763
763
|
class: "from-item-label",
|
|
764
|
-
style:
|
|
764
|
+
style: Ie({ width: n.isRowFlex ? "72px" : "260px", minWidth: n.isRowFlex ? "72px" : "260px" })
|
|
765
765
|
}, [
|
|
766
|
-
X("div", Tu,
|
|
766
|
+
X("div", Tu, Ee(w == null ? void 0 : w.label), 1)
|
|
767
767
|
], 4)) : ee("", !0)
|
|
768
768
|
]),
|
|
769
769
|
key: "0"
|
|
@@ -772,18 +772,18 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
772
772
|
((V = t.buttonValue) == null ? void 0 : V.length) > 0 && n.isButtonRow ? (C(), L("div", {
|
|
773
773
|
key: 1,
|
|
774
774
|
class: "form-button",
|
|
775
|
-
style:
|
|
775
|
+
style: Ie({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
776
776
|
}, [
|
|
777
|
-
(C(!0), L(
|
|
777
|
+
(C(!0), L(me, null, ve(t == null ? void 0 : t.buttonValue, (w, j) => (C(), L("div", {
|
|
778
778
|
key: j,
|
|
779
779
|
class: "form-button-content"
|
|
780
780
|
}, [
|
|
781
781
|
w ? (C(), L("div", {
|
|
782
782
|
key: 0,
|
|
783
783
|
class: "form-button-item",
|
|
784
|
-
style:
|
|
784
|
+
style: Ie({ background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)" }),
|
|
785
785
|
onClick: (N) => v(w == null ? void 0 : w.label, s.value)
|
|
786
|
-
},
|
|
786
|
+
}, Ee(w == null ? void 0 : w.label), 13, Au)) : ee("", !0)
|
|
787
787
|
]))), 128))
|
|
788
788
|
], 4)) : ee("", !0)
|
|
789
789
|
];
|
|
@@ -800,11 +800,11 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
800
800
|
default: B(() => {
|
|
801
801
|
var T, V;
|
|
802
802
|
return [
|
|
803
|
-
(T = b.item) != null && T.isFormColHidden ? ee("", !0) : (C(!0), L(
|
|
803
|
+
(T = b.item) != null && T.isFormColHidden ? ee("", !0) : (C(!0), L(me, { key: 0 }, ve(p0(gt)(t == null ? void 0 : t.rowContents), (w, j) => (C(), G(_, {
|
|
804
804
|
key: j,
|
|
805
805
|
class: Pl(["form-item", { "form-row-content": !n.isRowFlex }]),
|
|
806
806
|
prop: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
807
|
-
style:
|
|
807
|
+
style: Ie({
|
|
808
808
|
flexDirection: n.isRowFlex ? "row" : "column",
|
|
809
809
|
alignItems: n.isRowFlex ? "center" : "start",
|
|
810
810
|
height: n.isRowFlex ? "100%" : "auto",
|
|
@@ -813,11 +813,11 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
813
813
|
})
|
|
814
814
|
}, Qt({
|
|
815
815
|
default: B(() => {
|
|
816
|
-
var N, J, Z, ie;
|
|
816
|
+
var N, J, Z, ie, ye;
|
|
817
817
|
return [
|
|
818
818
|
w != null && w.isFormColHidden ? ee("", !0) : (C(), G(h2(c((w == null ? void 0 : w.type) ?? "Input")), {
|
|
819
819
|
modelValue: l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
|
|
820
|
-
"onUpdate:modelValue": (
|
|
820
|
+
"onUpdate:modelValue": (Se) => l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)] = Se,
|
|
821
821
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
822
822
|
content: (w == null ? void 0 : w.contents) ?? [],
|
|
823
823
|
onClickTrigger: h,
|
|
@@ -825,13 +825,13 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
825
825
|
key: w == null ? void 0 : w.type,
|
|
826
826
|
optionUrl: w == null ? void 0 : w.optionUrl,
|
|
827
827
|
onChangeVisible: m,
|
|
828
|
-
onBlurChange: (
|
|
828
|
+
onBlurChange: (Se) => f((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
|
|
829
829
|
config: w == null ? void 0 : w.config
|
|
830
830
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "content", "optionUrl", "onBlurChange", "config"])),
|
|
831
|
-
typeof l.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((N = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && N.includes(".stl") || (J = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && J.includes(".obj") || (Z = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Z.includes(".urdf") || (ie = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ie.includes(".ls")) ? (C(), G(Rn, {
|
|
831
|
+
typeof l.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((N = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && N.includes(".stl") || (J = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && J.includes(".obj") || (Z = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Z.includes(".urdf") || (ie = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ie.includes(".STL") || (ye = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ye.includes(".ls")) ? (C(), G(Rn, {
|
|
832
832
|
key: 1,
|
|
833
833
|
class: "calculator-content form-preview",
|
|
834
|
-
onClickTrigger: (
|
|
834
|
+
onClickTrigger: (Se) => u(l.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
835
835
|
modelValue: "预览"
|
|
836
836
|
}, null, 8, ["onClickTrigger"])) : ee("", !0)
|
|
837
837
|
];
|
|
@@ -844,9 +844,9 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
844
844
|
w != null && w.label ? (C(), L("div", {
|
|
845
845
|
key: 0,
|
|
846
846
|
class: "from-item-label",
|
|
847
|
-
style:
|
|
847
|
+
style: Ie({ width: n.isRowFlex ? "72px" : "auto", minWidth: n.isRowFlex ? "72px" : `calc((100% / ${(w == null ? void 0 : w.width) ?? 1}) - 8px)` })
|
|
848
848
|
}, [
|
|
849
|
-
X("div", Pu,
|
|
849
|
+
X("div", Pu, Ee(w == null ? void 0 : w.label), 1)
|
|
850
850
|
], 4)) : ee("", !0)
|
|
851
851
|
]),
|
|
852
852
|
key: "0"
|
|
@@ -855,18 +855,18 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
855
855
|
((V = t.buttonValue) == null ? void 0 : V.length) > 0 && n.isButtonRow ? (C(), L("div", {
|
|
856
856
|
key: 1,
|
|
857
857
|
class: "form-button",
|
|
858
|
-
style:
|
|
858
|
+
style: Ie({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
859
859
|
}, [
|
|
860
|
-
(C(!0), L(
|
|
860
|
+
(C(!0), L(me, null, ve(t == null ? void 0 : t.buttonValue, (w, j) => (C(), L("div", {
|
|
861
861
|
key: j,
|
|
862
862
|
class: "form-button-content"
|
|
863
863
|
}, [
|
|
864
864
|
w ? (C(), L("div", {
|
|
865
865
|
key: 0,
|
|
866
866
|
class: "form-button-item",
|
|
867
|
-
style:
|
|
867
|
+
style: Ie({ background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)" }),
|
|
868
868
|
onClick: (N) => v(w == null ? void 0 : w.label, o.value)
|
|
869
|
-
},
|
|
869
|
+
}, Ee(w == null ? void 0 : w.label), 13, zu)) : ee("", !0)
|
|
870
870
|
]))), 128))
|
|
871
871
|
], 4)) : ee("", !0)
|
|
872
872
|
];
|
|
@@ -877,19 +877,19 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
877
877
|
((k = t.buttonValue) == null ? void 0 : k.length) > 0 && !n.isButtonRow ? (C(), L("div", {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "form-button",
|
|
880
|
-
style:
|
|
880
|
+
style: Ie({ justifyContent: n.isStartJustify ? "start" : "end" })
|
|
881
881
|
}, [
|
|
882
|
-
(C(!0), L(
|
|
882
|
+
(C(!0), L(me, null, ve(t == null ? void 0 : t.buttonValue, (T, V) => (C(), L("div", {
|
|
883
883
|
key: V,
|
|
884
884
|
class: "form-button-content",
|
|
885
885
|
onClick: (w) => v(T == null ? void 0 : T.label, t.isEnableWrap ? s.value : o.value)
|
|
886
886
|
}, [
|
|
887
887
|
K(S, {
|
|
888
888
|
id: "themeButton",
|
|
889
|
-
style:
|
|
889
|
+
style: Ie({ background: (T == null ? void 0 : T.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" })
|
|
890
890
|
}, {
|
|
891
891
|
default: B(() => [
|
|
892
|
-
Lt(
|
|
892
|
+
Lt(Ee(T == null ? void 0 : T.label), 1)
|
|
893
893
|
]),
|
|
894
894
|
_: 2
|
|
895
895
|
}, 1032, ["style"])
|
|
@@ -898,7 +898,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
898
898
|
], 4);
|
|
899
899
|
};
|
|
900
900
|
}
|
|
901
|
-
}, Bu = /* @__PURE__ */
|
|
901
|
+
}, Bu = /* @__PURE__ */ Oe(Eu, [["__scopeId", "data-v-440e1b3e"]]), Lu = {
|
|
902
902
|
__name: "index",
|
|
903
903
|
props: {
|
|
904
904
|
value: String,
|
|
@@ -965,12 +965,12 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
965
965
|
onChange: l[1] || (l[1] = (h) => o(h))
|
|
966
966
|
}, {
|
|
967
967
|
default: B(() => [
|
|
968
|
-
(C(!0), L(
|
|
968
|
+
(C(!0), L(me, null, ve(t.content, (h, u) => (C(), G(a, {
|
|
969
969
|
key: u,
|
|
970
970
|
label: h.value
|
|
971
971
|
}, {
|
|
972
972
|
default: B(() => [
|
|
973
|
-
Lt(
|
|
973
|
+
Lt(Ee(h == null ? void 0 : h.label), 1)
|
|
974
974
|
]),
|
|
975
975
|
_: 2
|
|
976
976
|
}, 1032, ["label"]))), 128))
|
|
@@ -979,7 +979,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
979
979
|
}, 8, ["modelValue"]);
|
|
980
980
|
};
|
|
981
981
|
}
|
|
982
|
-
}, Iu = /* @__PURE__ */
|
|
982
|
+
}, Iu = /* @__PURE__ */ Oe(Ru, [["__scopeId", "data-v-b4cff553"]]), Hu = {
|
|
983
983
|
__name: "index",
|
|
984
984
|
props: {
|
|
985
985
|
value: String,
|
|
@@ -1015,14 +1015,14 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
1015
1015
|
onChange: l[1] || (l[1] = (h) => o(h))
|
|
1016
1016
|
}, {
|
|
1017
1017
|
default: B(() => [
|
|
1018
|
-
(C(!0), L(
|
|
1018
|
+
(C(!0), L(me, null, ve(n.content, (h) => (C(), G(a, {
|
|
1019
1019
|
key: h.label,
|
|
1020
1020
|
label: h.label,
|
|
1021
1021
|
value: h.label,
|
|
1022
|
-
style:
|
|
1022
|
+
style: Ie({ width: n.isWrap ? "100%" : "auto", marginRight: n.isWrap ? 0 : "auto" })
|
|
1023
1023
|
}, {
|
|
1024
1024
|
default: B(() => [
|
|
1025
|
-
X("span", null,
|
|
1025
|
+
X("span", null, Ee(h.label), 1),
|
|
1026
1026
|
le(r.$slots, "append")
|
|
1027
1027
|
]),
|
|
1028
1028
|
_: 2
|
|
@@ -1056,7 +1056,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
1056
1056
|
return C(), G(Va, {
|
|
1057
1057
|
tabsContents: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.tabsContents) ?? []
|
|
1058
1058
|
}, Qt({ _: 2 }, [
|
|
1059
|
-
|
|
1059
|
+
ve(t.$slots, (o, r) => ({
|
|
1060
1060
|
name: r,
|
|
1061
1061
|
fn: B((l) => [
|
|
1062
1062
|
le(t.$slots, r, Ba(La(l || {})))
|
|
@@ -1103,7 +1103,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
1103
1103
|
le(o.$slots, "headerButton", {}, void 0, !0)
|
|
1104
1104
|
]));
|
|
1105
1105
|
}
|
|
1106
|
-
}, Gu = /* @__PURE__ */
|
|
1106
|
+
}, Gu = /* @__PURE__ */ Oe(Wu, [["__scopeId", "data-v-9727dc88"]]), Fu = { key: 0 }, ju = /* @__PURE__ */ bt({
|
|
1107
1107
|
__name: "recurseCol",
|
|
1108
1108
|
props: {
|
|
1109
1109
|
column: {
|
|
@@ -1128,7 +1128,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
1128
1128
|
"class-name": (((m = n.column) == null ? void 0 : m.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
1129
1129
|
}, {
|
|
1130
1130
|
header: B(() => [
|
|
1131
|
-
n.column.label !== "操作" ? (C(), L("span", Fu,
|
|
1131
|
+
n.column.label !== "操作" ? (C(), L("span", Fu, Ee(n.column.label), 1)) : (C(), G(s, {
|
|
1132
1132
|
key: 1,
|
|
1133
1133
|
content: "操作",
|
|
1134
1134
|
placement: "left-start",
|
|
@@ -1149,11 +1149,11 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
1149
1149
|
column: v.column,
|
|
1150
1150
|
$index: v.$index
|
|
1151
1151
|
}),
|
|
1152
|
-
(C(!0), L(
|
|
1152
|
+
(C(!0), L(me, null, ve(n.column.children, (b, y) => (C(), G(o, {
|
|
1153
1153
|
key: y,
|
|
1154
1154
|
column: b
|
|
1155
1155
|
}, Qt({ _: 2 }, [
|
|
1156
|
-
|
|
1156
|
+
ve(e.$slots, (_, x) => ({
|
|
1157
1157
|
name: x,
|
|
1158
1158
|
fn: B((S) => [
|
|
1159
1159
|
le(e.$slots, x, O2({ ref_for: !0 }, S, {
|
|
@@ -1197,7 +1197,7 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
1197
1197
|
n.column.label !== "操作" ? (C(), L("span", {
|
|
1198
1198
|
key: 0,
|
|
1199
1199
|
title: n.column.label
|
|
1200
|
-
},
|
|
1200
|
+
}, Ee(n.column.label), 9, Uu)) : le(e.$slots, "operateHeader", { key: 1 })
|
|
1201
1201
|
]),
|
|
1202
1202
|
default: B((p) => [
|
|
1203
1203
|
le(e.$slots, "content", {
|
|
@@ -1206,11 +1206,11 @@ const yu = { class: "icon-popover" }, Su = ["onClick"], _u = /* @__PURE__ */ bt(
|
|
|
1206
1206
|
$index: p.$index,
|
|
1207
1207
|
scope: p
|
|
1208
1208
|
}),
|
|
1209
|
-
(C(!0), L(
|
|
1209
|
+
(C(!0), L(me, null, ve(n.column.children, (g, m) => (C(), G(ju, {
|
|
1210
1210
|
key: m,
|
|
1211
1211
|
column: g
|
|
1212
1212
|
}, Qt({ _: 2 }, [
|
|
1213
|
-
|
|
1213
|
+
ve(e.$slots, (v, b) => ({
|
|
1214
1214
|
name: b,
|
|
1215
1215
|
fn: B(({ row: y, slotData: _, item: x }) => [
|
|
1216
1216
|
le(e.$slots, b, O2({ ref_for: !0 }, _ ?? y, {
|
|
@@ -1337,8 +1337,8 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1337
1337
|
}, g = (M) => {
|
|
1338
1338
|
a("selectChange", M);
|
|
1339
1339
|
}, m = (M, H, z, Y) => re(() => {
|
|
1340
|
-
var
|
|
1341
|
-
let U = M != null && M[H == null ? void 0 : H.prop] ? ((A = (
|
|
1340
|
+
var fe, A, be, pe, $, ae, ke, _e, he, Re;
|
|
1341
|
+
let U = M != null && M[H == null ? void 0 : H.prop] ? ((A = (fe = M == null ? void 0 : M[H == null ? void 0 : H.prop]) == null ? void 0 : fe[0]) == null ? void 0 : A.contents) ?? (M == null ? void 0 : M[H == null ? void 0 : H.prop]) : ((pe = (be = M == null ? void 0 : M[z == null ? void 0 : z.prop]) == null ? void 0 : be[0]) == null ? void 0 : pe.contents) ?? (M == null ? void 0 : M[z == null ? void 0 : z.prop]) ?? ((ae = ($ = Y == null ? void 0 : Y[z == null ? void 0 : z.prop]) == null ? void 0 : $[0]) == null ? void 0 : ae.contents) ?? (Y == null ? void 0 : Y[z == null ? void 0 : z.prop]) ?? ((he = (_e = M == null ? void 0 : M[(ke = z == null ? void 0 : z.child) == null ? void 0 : ke.prop]) == null ? void 0 : _e[0]) == null ? void 0 : he.contents) ?? (M == null ? void 0 : M[(Re = z == null ? void 0 : z.child) == null ? void 0 : Re.prop]);
|
|
1342
1342
|
return Array.isArray(U) && !(U != null && U.every((o0) => typeof o0 == "string" || typeof o0 == "number")) ? "查看" : U;
|
|
1343
1343
|
}), v = (M) => {
|
|
1344
1344
|
a("rowClick", {
|
|
@@ -1385,8 +1385,8 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1385
1385
|
onMove: (z) => !z.related.classList.contains("is-not-drag"),
|
|
1386
1386
|
onEnd: (z) => {
|
|
1387
1387
|
o.value++;
|
|
1388
|
-
const Y = z.oldIndex, U = z.newIndex,
|
|
1389
|
-
i.value.splice(U, 0,
|
|
1388
|
+
const Y = z.oldIndex, U = z.newIndex, fe = i.value.splice(Y, 1)[0];
|
|
1389
|
+
i.value.splice(U, 0, fe), t.isMoveColumn && u0(() => {
|
|
1390
1390
|
w(), N();
|
|
1391
1391
|
});
|
|
1392
1392
|
}
|
|
@@ -1408,8 +1408,8 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1408
1408
|
handle: ".custom-drag-icon",
|
|
1409
1409
|
ghostClass: "sortable-ghost",
|
|
1410
1410
|
onEnd: ({ newIndex: z, oldIndex: Y }) => {
|
|
1411
|
-
const U = [...s.value], [
|
|
1412
|
-
U.splice(z, 0,
|
|
1411
|
+
const U = [...s.value], [fe] = U.splice(Y, 1);
|
|
1412
|
+
U.splice(z, 0, fe), s.value = U, u0(() => {
|
|
1413
1413
|
N();
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
@@ -1418,10 +1418,10 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1418
1418
|
const z = new FileReader();
|
|
1419
1419
|
z.onloadend = () => H(z.result), z.readAsDataURL(M);
|
|
1420
1420
|
}), Z = (M, H = "file") => {
|
|
1421
|
-
let z = M.split(","), Y = z[0].match(/:(.*?);/)[1], U = Y.split("/")[1],
|
|
1421
|
+
let z = M.split(","), Y = z[0].match(/:(.*?);/)[1], U = Y.split("/")[1], fe = atob(z[1]), A = fe.length, be = new Uint8Array(A);
|
|
1422
1422
|
for (; A--; )
|
|
1423
|
-
|
|
1424
|
-
return new File([
|
|
1423
|
+
be[A] = fe.charCodeAt(A);
|
|
1424
|
+
return new File([be], `${H}.${U}`, {
|
|
1425
1425
|
type: Y
|
|
1426
1426
|
});
|
|
1427
1427
|
}, ie = async (M) => {
|
|
@@ -1429,28 +1429,28 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1429
1429
|
let z = Z(H), Y = new FormData();
|
|
1430
1430
|
Y.append("file", z);
|
|
1431
1431
|
let U;
|
|
1432
|
-
return await El(Y).then((
|
|
1433
|
-
var A,
|
|
1432
|
+
return await El(Y).then((fe) => {
|
|
1433
|
+
var A, be, pe, $, ae, ke, _e;
|
|
1434
1434
|
U = {
|
|
1435
|
-
url: (A =
|
|
1436
|
-
name: (
|
|
1435
|
+
url: (A = fe.data.result) == null ? void 0 : A.url,
|
|
1436
|
+
name: (_e = (pe = (be = fe.data.result) == null ? void 0 : be.url) == null ? void 0 : pe.split("/")) == null ? void 0 : _e[((ke = (ae = ($ = fe.data.result) == null ? void 0 : $.url) == null ? void 0 : ae.split("/")) == null ? void 0 : ke.length) - 1]
|
|
1437
1437
|
};
|
|
1438
1438
|
}), U;
|
|
1439
|
-
},
|
|
1439
|
+
}, ye = async (M) => {
|
|
1440
1440
|
var H;
|
|
1441
1441
|
M.preventDefault();
|
|
1442
1442
|
try {
|
|
1443
1443
|
const z = M.clipboardData || (window == null ? void 0 : window.clipboardData), Y = z.getData("text/plain");
|
|
1444
1444
|
if (Y === void 0) return;
|
|
1445
1445
|
if (Y.includes("<table")) {
|
|
1446
|
-
const U =
|
|
1446
|
+
const U = Se(Y);
|
|
1447
1447
|
if (!U.length) return;
|
|
1448
|
-
const { rowIndex:
|
|
1449
|
-
if (U == null || U.forEach((
|
|
1450
|
-
|
|
1451
|
-
}), (
|
|
1448
|
+
const { rowIndex: fe, columnIndex: A } = l.value || { rowIndex: 0, columnIndex: 0 }, be = [];
|
|
1449
|
+
if (U == null || U.forEach((pe) => {
|
|
1450
|
+
be.push(pe.length + A);
|
|
1451
|
+
}), (be == null ? void 0 : be.filter((pe) => {
|
|
1452
1452
|
var $;
|
|
1453
|
-
return
|
|
1453
|
+
return pe > Object.keys(($ = s.value) == null ? void 0 : $[0]).length;
|
|
1454
1454
|
}).length) > 0) {
|
|
1455
1455
|
Vl({
|
|
1456
1456
|
type: "warning",
|
|
@@ -1458,23 +1458,23 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1458
1458
|
});
|
|
1459
1459
|
return;
|
|
1460
1460
|
}
|
|
1461
|
-
for (let
|
|
1462
|
-
const $ = U[
|
|
1463
|
-
for (let
|
|
1464
|
-
const he =
|
|
1465
|
-
(ae == null ? void 0 : ae[he]) !== void 0 && (ae[he] = $[
|
|
1461
|
+
for (let pe = 0; pe < U.length; pe++) {
|
|
1462
|
+
const $ = U[pe], ae = s.value[fe + pe], ke = gt(i.value).map((_e) => _e.prop);
|
|
1463
|
+
for (let _e = 0; _e < $.length && A + _e < ke.length; _e++) {
|
|
1464
|
+
const he = ke[A + _e];
|
|
1465
|
+
(ae == null ? void 0 : ae[he]) !== void 0 && (ae[he] = $[_e] || "");
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
} else {
|
|
1469
1469
|
const U = z.getData("text/html");
|
|
1470
1470
|
if (U === void 0) return;
|
|
1471
|
-
const A = new DOMParser().parseFromString(U, "text/html"),
|
|
1472
|
-
if ((
|
|
1473
|
-
const $ =
|
|
1474
|
-
for (const
|
|
1475
|
-
const
|
|
1476
|
-
for (const
|
|
1477
|
-
const o0 =
|
|
1471
|
+
const A = new DOMParser().parseFromString(U, "text/html"), be = A.querySelectorAll("table");
|
|
1472
|
+
if ((be == null ? void 0 : be.length) > 0) {
|
|
1473
|
+
const $ = be[0].querySelectorAll("tr"), ae = [];
|
|
1474
|
+
for (const ke of $) {
|
|
1475
|
+
const _e = ke.querySelectorAll("td, th"), he = [];
|
|
1476
|
+
for (const Re of _e) {
|
|
1477
|
+
const o0 = Re.querySelectorAll("img");
|
|
1478
1478
|
if (o0.length > 0)
|
|
1479
1479
|
for (const Ea of o0) {
|
|
1480
1480
|
const y0 = Ea.getAttribute("src");
|
|
@@ -1492,44 +1492,44 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1492
1492
|
else
|
|
1493
1493
|
he.push({
|
|
1494
1494
|
type: "text",
|
|
1495
|
-
content:
|
|
1495
|
+
content: Re.textContent.trim()
|
|
1496
1496
|
});
|
|
1497
1497
|
}
|
|
1498
1498
|
ae.push(he);
|
|
1499
1499
|
}
|
|
1500
1500
|
} else {
|
|
1501
|
-
const
|
|
1501
|
+
const pe = A.querySelectorAll("span");
|
|
1502
1502
|
let $ = "";
|
|
1503
|
-
if (
|
|
1503
|
+
if (pe.length === 0) {
|
|
1504
1504
|
const he = (H = M.clipboardData) == null ? void 0 : H.items;
|
|
1505
1505
|
$ = [];
|
|
1506
|
-
for (const
|
|
1507
|
-
if ((
|
|
1508
|
-
const o0 = await ie(
|
|
1506
|
+
for (const Re of he)
|
|
1507
|
+
if ((Re == null ? void 0 : Re.type) === "image/png") {
|
|
1508
|
+
const o0 = await ie(Re == null ? void 0 : Re.getAsFile());
|
|
1509
1509
|
$.push(o0);
|
|
1510
1510
|
} else
|
|
1511
1511
|
$ = M.clipboardData.getData("text/plain");
|
|
1512
1512
|
} else
|
|
1513
|
-
for (const he of
|
|
1513
|
+
for (const he of pe)
|
|
1514
1514
|
$ = $ + he.textContent.trim();
|
|
1515
|
-
const { rowIndex: ae, columnProp:
|
|
1516
|
-
let
|
|
1517
|
-
|
|
1515
|
+
const { rowIndex: ae, columnProp: ke } = l.value || { rowIndex: 0, columnIndex: 0 };
|
|
1516
|
+
let _e = gt(s.value);
|
|
1517
|
+
_e = _e == null ? void 0 : _e.map((he, Re) => (Re === ae && (he[ke] = Array.isArray($) ? [.../* @__PURE__ */ new Set([...$, ...he[ke]])] : he[ke] + $), he)), s.value = _e;
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
} catch (z) {
|
|
1521
1521
|
console.error("粘贴失败:", z);
|
|
1522
1522
|
}
|
|
1523
|
-
},
|
|
1523
|
+
}, Se = (M) => M.trim().split(/\r\n|\n|\r/).map((Y) => Y.trim() ? Y.split(" ").map((U) => U.replace(/^"(.*)"$/, "$1")) : [""]), lt = (M) => {
|
|
1524
1524
|
var H;
|
|
1525
1525
|
M && (l.value = {
|
|
1526
1526
|
rowIndex: M == null ? void 0 : M.$index,
|
|
1527
1527
|
columnIndex: M == null ? void 0 : M.cellIndex,
|
|
1528
1528
|
columnProp: (H = M.column) == null ? void 0 : H.property
|
|
1529
1529
|
});
|
|
1530
|
-
},
|
|
1530
|
+
}, Ae = ({ row: M, rowIndex: H }) => H % 2 === 0 ? "default-row" : "special-row";
|
|
1531
1531
|
return (M, H) => {
|
|
1532
|
-
const z = F("el-table-column"), Y = F("svg-icon"), U = F("el-table"),
|
|
1532
|
+
const z = F("el-table-column"), Y = F("svg-icon"), U = F("el-table"), fe = F("el-pagination");
|
|
1533
1533
|
return C(), L("div", Ku, [
|
|
1534
1534
|
K(Gu, {
|
|
1535
1535
|
buttons: c.value,
|
|
@@ -1559,8 +1559,8 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1559
1559
|
onSelectionChange: g,
|
|
1560
1560
|
onRowDblclick: x,
|
|
1561
1561
|
key: o.value,
|
|
1562
|
-
onPaste:
|
|
1563
|
-
"row-class-name":
|
|
1562
|
+
onPaste: ye,
|
|
1563
|
+
"row-class-name": Ae,
|
|
1564
1564
|
"header-cell-class-name": j,
|
|
1565
1565
|
onCellMouseEnter: d,
|
|
1566
1566
|
onCellMouseLeave: f
|
|
@@ -1574,7 +1574,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1574
1574
|
"min-width": "10",
|
|
1575
1575
|
"show-overflow-tooltip": !1
|
|
1576
1576
|
}, {
|
|
1577
|
-
default: B(({ row: A, column:
|
|
1577
|
+
default: B(({ row: A, column: be, $index: pe }) => [
|
|
1578
1578
|
Ra(X("span", Xu, [
|
|
1579
1579
|
K(Y, {
|
|
1580
1580
|
name: "drag",
|
|
@@ -1592,10 +1592,10 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1592
1592
|
"min-width": "15",
|
|
1593
1593
|
fixed: "left"
|
|
1594
1594
|
}, {
|
|
1595
|
-
default: B(({ row: A, column:
|
|
1595
|
+
default: B(({ row: A, column: be, $index: pe }) => {
|
|
1596
1596
|
var $;
|
|
1597
1597
|
return [
|
|
1598
|
-
|
|
1598
|
+
pe === (($ = s.value) == null ? void 0 : $.length) - 1 ? le(M.$slots, "rowCreate", {
|
|
1599
1599
|
key: 0,
|
|
1600
1600
|
row: A
|
|
1601
1601
|
}, void 0, !0) : ee("", !0)
|
|
@@ -1603,32 +1603,32 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1603
1603
|
}),
|
|
1604
1604
|
_: 3
|
|
1605
1605
|
})) : ee("", !0),
|
|
1606
|
-
(C(!0), L(
|
|
1607
|
-
var
|
|
1608
|
-
return C(), L(
|
|
1609
|
-
(
|
|
1606
|
+
(C(!0), L(me, null, ve(i.value, (A, be) => {
|
|
1607
|
+
var pe;
|
|
1608
|
+
return C(), L(me, null, [
|
|
1609
|
+
(pe = n.checkedColumns) != null && pe.includes(A == null ? void 0 : A.label) ? (C(), G(qu, {
|
|
1610
1610
|
key: 0,
|
|
1611
1611
|
column: A
|
|
1612
1612
|
}, {
|
|
1613
1613
|
operateHeader: B(() => [
|
|
1614
1614
|
le(M.$slots, "operateCol", {}, void 0, !0)
|
|
1615
1615
|
]),
|
|
1616
|
-
content: B(({ row: $, item: ae, slotData:
|
|
1616
|
+
content: B(({ row: $, item: ae, slotData: ke, scope: _e }) => [
|
|
1617
1617
|
((A == null ? void 0 : A.type) ?? "text") === "text" && (($ == null ? void 0 : $.tableEditType) ?? "text") === "text" ? (C(), L("span", {
|
|
1618
1618
|
key: 0,
|
|
1619
1619
|
class: "table-content",
|
|
1620
|
-
style:
|
|
1620
|
+
style: Ie({ cursor: $ != null && $.children ? "pointer" : "default" }),
|
|
1621
1621
|
onClick: (he) => {
|
|
1622
|
-
var
|
|
1623
|
-
return V($ != null && $[A == null ? void 0 : A.prop] ? $ == null ? void 0 : $[A == null ? void 0 : A.prop] : ($ == null ? void 0 : $[ae == null ? void 0 : ae.prop]) ?? (
|
|
1624
|
-
data: m($, A, ae,
|
|
1622
|
+
var Re;
|
|
1623
|
+
return V($ != null && $[A == null ? void 0 : A.prop] ? $ == null ? void 0 : $[A == null ? void 0 : A.prop] : ($ == null ? void 0 : $[ae == null ? void 0 : ae.prop]) ?? (ke == null ? void 0 : ke[ae == null ? void 0 : ae.prop]) ?? ($ == null ? void 0 : $[(Re = ae == null ? void 0 : ae.child) == null ? void 0 : Re.prop]), ae == null ? void 0 : ae.prop, $ ?? ke, {
|
|
1624
|
+
data: m($, A, ae, ke).value
|
|
1625
1625
|
});
|
|
1626
1626
|
}
|
|
1627
|
-
},
|
|
1627
|
+
}, Ee(m($, A, ae, ke)), 13, Qu)) : ee("", !0),
|
|
1628
1628
|
((A == null ? void 0 : A.type) ?? "text") === "operate" ? (C(), L("span", {
|
|
1629
1629
|
key: 1,
|
|
1630
1630
|
class: "table-operate",
|
|
1631
|
-
style:
|
|
1631
|
+
style: Ie({
|
|
1632
1632
|
justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : A == null ? void 0 : A.align
|
|
1633
1633
|
})
|
|
1634
1634
|
}, [
|
|
@@ -1651,7 +1651,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1651
1651
|
style: { height: "100%" },
|
|
1652
1652
|
content: (A == null ? void 0 : A.contents) ?? [],
|
|
1653
1653
|
optionUrl: A == null ? void 0 : A.optionUrl,
|
|
1654
|
-
onFocus: (he) => lt(
|
|
1654
|
+
onFocus: (he) => lt(_e),
|
|
1655
1655
|
onBlur: (he) => p(he, $, A)
|
|
1656
1656
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "onFocus", "onBlur"]))
|
|
1657
1657
|
])) : ee("", !0)
|
|
@@ -1668,7 +1668,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1668
1668
|
buttons: h.value,
|
|
1669
1669
|
columns: i.value
|
|
1670
1670
|
}, void 0, !0),
|
|
1671
|
-
(t == null ? void 0 : t.isShowPagination) ?? !1 ? (C(), G(
|
|
1671
|
+
(t == null ? void 0 : t.isShowPagination) ?? !1 ? (C(), G(fe, {
|
|
1672
1672
|
key: 0,
|
|
1673
1673
|
onSizeChange: S,
|
|
1674
1674
|
onCurrentChange: _,
|
|
@@ -1682,7 +1682,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1682
1682
|
]);
|
|
1683
1683
|
};
|
|
1684
1684
|
}
|
|
1685
|
-
}, n8 = /* @__PURE__ */
|
|
1685
|
+
}, n8 = /* @__PURE__ */ Oe(i8, [["__scopeId", "data-v-b0830a33"]]), s8 = {
|
|
1686
1686
|
__name: "index",
|
|
1687
1687
|
props: {
|
|
1688
1688
|
value: String,
|
|
@@ -1720,7 +1720,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1720
1720
|
};
|
|
1721
1721
|
return (r, l) => {
|
|
1722
1722
|
var a, c, h, u, d, f, p;
|
|
1723
|
-
return C(), L(
|
|
1723
|
+
return C(), L(me, null, [
|
|
1724
1724
|
le(r.$slots, `${(a = t == null ? void 0 : t.content) == null ? void 0 : a.value}_tableHeader`),
|
|
1725
1725
|
(C(), G(n8, {
|
|
1726
1726
|
columns: ((c = t == null ? void 0 : t.content) == null ? void 0 : c.columns) ?? [],
|
|
@@ -1822,7 +1822,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1822
1822
|
onClick: l
|
|
1823
1823
|
}, {
|
|
1824
1824
|
default: B(() => [
|
|
1825
|
-
(C(!0), L(
|
|
1825
|
+
(C(!0), L(me, null, ve(o.value, (d) => (C(), G(h, {
|
|
1826
1826
|
key: d.value,
|
|
1827
1827
|
label: d.label,
|
|
1828
1828
|
value: d.value
|
|
@@ -1892,7 +1892,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1892
1892
|
style: { width: "100%" }
|
|
1893
1893
|
}, {
|
|
1894
1894
|
default: B(() => [
|
|
1895
|
-
(C(!0), L(
|
|
1895
|
+
(C(!0), L(me, null, ve(e == null ? void 0 : e.content, (l) => (C(), G(o, {
|
|
1896
1896
|
key: l.value,
|
|
1897
1897
|
label: l.label,
|
|
1898
1898
|
value: l.value
|
|
@@ -1923,7 +1923,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1923
1923
|
return $t(() => {
|
|
1924
1924
|
}), (r, l) => {
|
|
1925
1925
|
const a = F("MenuItem", !0), c = F("el-sub-menu"), h = F("el-menu-item");
|
|
1926
|
-
return C(!0), L(
|
|
1926
|
+
return C(!0), L(me, null, ve(n.menuList, (u) => (C(), L(me, null, [
|
|
1927
1927
|
u.show && u.children && u.children.length > 0 ? (C(), G(c, {
|
|
1928
1928
|
index: u.path,
|
|
1929
1929
|
key: u.path
|
|
@@ -1938,7 +1938,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1938
1938
|
onOpenMenu: s,
|
|
1939
1939
|
onCloseMenu: o
|
|
1940
1940
|
}, Qt({ _: 2 }, [
|
|
1941
|
-
|
|
1941
|
+
ve(r.$slots, (d, f) => ({
|
|
1942
1942
|
name: f,
|
|
1943
1943
|
fn: B((p) => [
|
|
1944
1944
|
le(r.$slots, f, O2({ ref_for: !0 }, p))
|
|
@@ -1997,11 +1997,11 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
1997
1997
|
onClose: h
|
|
1998
1998
|
}, {
|
|
1999
1999
|
default: B(() => [
|
|
2000
|
-
(C(!0), L(
|
|
2000
|
+
(C(!0), L(me, null, ve(n.menuList, (b) => (C(), L(me, null, [
|
|
2001
2001
|
b.show && b.children && b.children.length > 0 ? (C(), G(g, {
|
|
2002
2002
|
index: b.path,
|
|
2003
2003
|
key: b.path,
|
|
2004
|
-
style:
|
|
2004
|
+
style: Ie(b.style)
|
|
2005
2005
|
}, {
|
|
2006
2006
|
title: B(() => [
|
|
2007
2007
|
le(f.$slots, "title", { menu: b }, void 0, !0)
|
|
@@ -2011,7 +2011,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
2011
2011
|
menuList: b.children,
|
|
2012
2012
|
onClickMenu: a
|
|
2013
2013
|
}, Qt({ _: 2 }, [
|
|
2014
|
-
|
|
2014
|
+
ve(f.$slots, (y, _) => ({
|
|
2015
2015
|
name: _,
|
|
2016
2016
|
fn: B((x) => [
|
|
2017
2017
|
le(f.$slots, _, O2({ ref_for: !0 }, x), void 0, !0)
|
|
@@ -2023,7 +2023,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
2023
2023
|
}, 1032, ["index", "style"])) : b.show ? (C(), G(m, {
|
|
2024
2024
|
index: b.path,
|
|
2025
2025
|
key: b.path,
|
|
2026
|
-
style:
|
|
2026
|
+
style: Ie(b.style),
|
|
2027
2027
|
onClick: (y) => a(b)
|
|
2028
2028
|
}, {
|
|
2029
2029
|
title: B(() => [
|
|
@@ -2037,7 +2037,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
2037
2037
|
}, 8, ["mode", "default-active", "default-openeds"]);
|
|
2038
2038
|
};
|
|
2039
2039
|
}
|
|
2040
|
-
}), Bl = /* @__PURE__ */
|
|
2040
|
+
}), Bl = /* @__PURE__ */ Oe(h8, [["__scopeId", "data-v-6a992c79"]]), vv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2041
2041
|
__proto__: null,
|
|
2042
2042
|
default: Bl
|
|
2043
2043
|
}, Symbol.toStringTag, { value: "Module" })), c8 = {
|
|
@@ -2121,7 +2121,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
2121
2121
|
}, null, 8, ["modelValue", "disabled"]);
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
|
-
}, f8 = /* @__PURE__ */
|
|
2124
|
+
}, f8 = /* @__PURE__ */ Oe(d8, [["__scopeId", "data-v-0e84be38"]]), p8 = { class: "dialog-title" }, g8 = {
|
|
2125
2125
|
__name: "index",
|
|
2126
2126
|
props: {
|
|
2127
2127
|
title: {
|
|
@@ -2168,7 +2168,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
2168
2168
|
width: t == null ? void 0 : t.dialogWidth,
|
|
2169
2169
|
"before-close": o,
|
|
2170
2170
|
draggable: "",
|
|
2171
|
-
style:
|
|
2171
|
+
style: Ie({ height: t == null ? void 0 : t.dialogHeight }),
|
|
2172
2172
|
fullscreen: t == null ? void 0 : t.fullScreen,
|
|
2173
2173
|
"destroy-on-close": !0,
|
|
2174
2174
|
"show-close": t == null ? void 0 : t.showClose
|
|
@@ -2177,7 +2177,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
2177
2177
|
le(r.$slots, "default", {}, void 0, !0)
|
|
2178
2178
|
]),
|
|
2179
2179
|
header: B(() => [
|
|
2180
|
-
X("div", p8,
|
|
2180
|
+
X("div", p8, Ee(t == null ? void 0 : t.title), 1),
|
|
2181
2181
|
le(r.$slots, "header", {}, void 0, !0)
|
|
2182
2182
|
]),
|
|
2183
2183
|
footer: B(() => [
|
|
@@ -2187,7 +2187,7 @@ const Ku = { class: "table-content-show" }, Xu = {
|
|
|
2187
2187
|
}, 8, ["modelValue", "width", "style", "fullscreen", "show-close"]);
|
|
2188
2188
|
};
|
|
2189
2189
|
}
|
|
2190
|
-
}, gi = /* @__PURE__ */
|
|
2190
|
+
}, gi = /* @__PURE__ */ Oe(g8, [["__scopeId", "data-v-048a6610"]]);
|
|
2191
2191
|
function m8(n) {
|
|
2192
2192
|
const e = sessionStorage.getItem("loginToken") ?? "123456";
|
|
2193
2193
|
return Ui({
|
|
@@ -2215,10 +2215,10 @@ const v8 = { class: "txt-renderer" }, w8 = { class: "txt-wrapper" }, b8 = {
|
|
|
2215
2215
|
i.value = l.target.result;
|
|
2216
2216
|
}, r.readAsText(o);
|
|
2217
2217
|
}), (s, o) => (C(), L("div", v8, [
|
|
2218
|
-
X("pre", w8,
|
|
2218
|
+
X("pre", w8, Ee(i.value), 1)
|
|
2219
2219
|
]));
|
|
2220
2220
|
}
|
|
2221
|
-
}, x8 = /* @__PURE__ */
|
|
2221
|
+
}, x8 = /* @__PURE__ */ Oe(b8, [["__scopeId", "data-v-fde812b6"]]), y8 = { class: "docx-renderer" }, S8 = {
|
|
2222
2222
|
__name: "index",
|
|
2223
2223
|
props: {
|
|
2224
2224
|
fileName: String,
|
|
@@ -2238,7 +2238,7 @@ const v8 = { class: "txt-renderer" }, w8 = { class: "txt-wrapper" }, b8 = {
|
|
|
2238
2238
|
}, null, 512)
|
|
2239
2239
|
]));
|
|
2240
2240
|
}
|
|
2241
|
-
}, _8 = /* @__PURE__ */
|
|
2241
|
+
}, _8 = /* @__PURE__ */ Oe(S8, [["__scopeId", "data-v-78135a17"]]), k8 = { class: "xlsx-renderer" }, C8 = {
|
|
2242
2242
|
__name: "index",
|
|
2243
2243
|
props: {
|
|
2244
2244
|
fileName: String,
|
|
@@ -2258,7 +2258,7 @@ const v8 = { class: "txt-renderer" }, w8 = { class: "txt-wrapper" }, b8 = {
|
|
|
2258
2258
|
X("div", { id: "excel" }, null, -1)
|
|
2259
2259
|
])));
|
|
2260
2260
|
}
|
|
2261
|
-
}, O8 = /* @__PURE__ */
|
|
2261
|
+
}, O8 = /* @__PURE__ */ Oe(C8, [["__scopeId", "data-v-08dbfb73"]]), M8 = { class: "pdf-renderer" }, D8 = ["src"], T8 = {
|
|
2262
2262
|
__name: "index",
|
|
2263
2263
|
props: {
|
|
2264
2264
|
fileName: String,
|
|
@@ -2279,7 +2279,7 @@ const v8 = { class: "txt-renderer" }, w8 = { class: "txt-wrapper" }, b8 = {
|
|
|
2279
2279
|
}, null, 8, D8)
|
|
2280
2280
|
]));
|
|
2281
2281
|
}
|
|
2282
|
-
}, A8 = /* @__PURE__ */
|
|
2282
|
+
}, A8 = /* @__PURE__ */ Oe(T8, [["__scopeId", "data-v-b4ab8c04"]]);
|
|
2283
2283
|
let In = [], Ll = [];
|
|
2284
2284
|
(() => {
|
|
2285
2285
|
let n = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
|
|
@@ -2477,10 +2477,10 @@ class oe {
|
|
|
2477
2477
|
static of(e) {
|
|
2478
2478
|
if (e.length == 0)
|
|
2479
2479
|
throw new RangeError("A document must have at least one line");
|
|
2480
|
-
return e.length == 1 && !e[0] ? oe.empty : e.length <= 32 ? new
|
|
2480
|
+
return e.length == 1 && !e[0] ? oe.empty : e.length <= 32 ? new Ce(e) : Ct.from(Ce.split(e, []));
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
|
-
class
|
|
2483
|
+
class Ce extends oe {
|
|
2484
2484
|
constructor(e, t = E8(e)) {
|
|
2485
2485
|
super(), this.text = e, this.length = t;
|
|
2486
2486
|
}
|
|
@@ -2499,24 +2499,24 @@ class ke extends oe {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
2501
|
decompose(e, t, i, s) {
|
|
2502
|
-
let o = e <= 0 && t >= this.length ? this : new
|
|
2502
|
+
let o = e <= 0 && t >= this.length ? this : new Ce(Vo(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
|
|
2503
2503
|
if (s & 1) {
|
|
2504
2504
|
let r = i.pop(), l = ni(o.text, r.text.slice(), 0, o.length);
|
|
2505
2505
|
if (l.length <= 32)
|
|
2506
|
-
i.push(new
|
|
2506
|
+
i.push(new Ce(l, r.length + o.length));
|
|
2507
2507
|
else {
|
|
2508
2508
|
let a = l.length >> 1;
|
|
2509
|
-
i.push(new
|
|
2509
|
+
i.push(new Ce(l.slice(0, a)), new Ce(l.slice(a)));
|
|
2510
2510
|
}
|
|
2511
2511
|
} else
|
|
2512
2512
|
i.push(o);
|
|
2513
2513
|
}
|
|
2514
2514
|
replace(e, t, i) {
|
|
2515
|
-
if (!(i instanceof
|
|
2515
|
+
if (!(i instanceof Ce))
|
|
2516
2516
|
return super.replace(e, t, i);
|
|
2517
2517
|
[e, t] = L0(this, e, t);
|
|
2518
2518
|
let s = ni(this.text, ni(i.text, Vo(this.text, 0, e)), t), o = this.length + i.length - (t - e);
|
|
2519
|
-
return s.length <= 32 ? new
|
|
2519
|
+
return s.length <= 32 ? new Ce(s, o) : Ct.from(Ce.split(s, []), o);
|
|
2520
2520
|
}
|
|
2521
2521
|
sliceString(e, t = this.length, i = `
|
|
2522
2522
|
`) {
|
|
@@ -2538,8 +2538,8 @@ class ke extends oe {
|
|
|
2538
2538
|
static split(e, t) {
|
|
2539
2539
|
let i = [], s = -1;
|
|
2540
2540
|
for (let o of e)
|
|
2541
|
-
i.push(o), s += o.length + 1, i.length == 32 && (t.push(new
|
|
2542
|
-
return s > -1 && t.push(new
|
|
2541
|
+
i.push(o), s += o.length + 1, i.length == 32 && (t.push(new Ce(i, s)), i = [], s = -1);
|
|
2542
|
+
return s > -1 && t.push(new Ce(i, s)), t;
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
2545
|
class Ct extends oe {
|
|
@@ -2617,7 +2617,7 @@ class Ct extends oe {
|
|
|
2617
2617
|
let f = [];
|
|
2618
2618
|
for (let p of e)
|
|
2619
2619
|
p.flatten(f);
|
|
2620
|
-
return new
|
|
2620
|
+
return new Ce(f, t);
|
|
2621
2621
|
}
|
|
2622
2622
|
let s = Math.max(
|
|
2623
2623
|
32,
|
|
@@ -2629,7 +2629,7 @@ class Ct extends oe {
|
|
|
2629
2629
|
if (f.lines > o && f instanceof Ct)
|
|
2630
2630
|
for (let g of f.children)
|
|
2631
2631
|
u(g);
|
|
2632
|
-
else f.lines > r && (a > r || !a) ? (d(), l.push(f)) : f instanceof
|
|
2632
|
+
else f.lines > r && (a > r || !a) ? (d(), l.push(f)) : f instanceof Ce && a && (p = h[h.length - 1]) instanceof Ce && f.lines + p.lines <= 32 ? (a += f.lines, c += f.length + 1, h[h.length - 1] = new Ce(p.text.concat(f.text), p.length + 1 + f.length)) : (a + f.lines > s && d(), a += f.lines, c += f.length + 1, h.push(f));
|
|
2633
2633
|
}
|
|
2634
2634
|
function d() {
|
|
2635
2635
|
a != 0 && (l.push(h.length == 1 ? h[0] : Ct.from(h, c)), c = -1, a = h.length = 0);
|
|
@@ -2639,7 +2639,7 @@ class Ct extends oe {
|
|
|
2639
2639
|
return d(), l.length == 1 ? l[0] : new Ct(l, t);
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
oe.empty = /* @__PURE__ */ new
|
|
2642
|
+
oe.empty = /* @__PURE__ */ new Ce([""], 0);
|
|
2643
2643
|
function E8(n) {
|
|
2644
2644
|
let e = -1;
|
|
2645
2645
|
for (let t of n)
|
|
@@ -2658,11 +2658,11 @@ function Vo(n, e, t) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
class i2 {
|
|
2660
2660
|
constructor(e, t = 1) {
|
|
2661
|
-
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof
|
|
2661
|
+
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof Ce ? e.text.length : e.children.length) << 1];
|
|
2662
2662
|
}
|
|
2663
2663
|
nextInner(e, t) {
|
|
2664
2664
|
for (this.done = this.lineBreak = !1; ; ) {
|
|
2665
|
-
let i = this.nodes.length - 1, s = this.nodes[i], o = this.offsets[i], r = o >> 1, l = s instanceof
|
|
2665
|
+
let i = this.nodes.length - 1, s = this.nodes[i], o = this.offsets[i], r = o >> 1, l = s instanceof Ce ? s.text.length : s.children.length;
|
|
2666
2666
|
if (r == (t > 0 ? l : 0)) {
|
|
2667
2667
|
if (i == 0)
|
|
2668
2668
|
return this.done = !0, this.value = "", this;
|
|
@@ -2672,14 +2672,14 @@ class i2 {
|
|
|
2672
2672
|
return this.lineBreak = !0, this.value = `
|
|
2673
2673
|
`, this;
|
|
2674
2674
|
e--;
|
|
2675
|
-
} else if (s instanceof
|
|
2675
|
+
} else if (s instanceof Ce) {
|
|
2676
2676
|
let a = s.text[r + (t < 0 ? -1 : 0)];
|
|
2677
2677
|
if (this.offsets[i] += t, a.length > Math.max(0, e))
|
|
2678
2678
|
return this.value = e == 0 ? a : t > 0 ? a.slice(e) : a.slice(0, a.length - e), this;
|
|
2679
2679
|
e -= a.length;
|
|
2680
2680
|
} else {
|
|
2681
2681
|
let a = s.children[r + (t < 0 ? -1 : 0)];
|
|
2682
|
-
e > a.length ? (e -= a.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof
|
|
2682
|
+
e > a.length ? (e -= a.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof Ce ? a.text.length : a.children.length) << 1));
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
2685
|
}
|
|
@@ -2741,7 +2741,7 @@ class B8 {
|
|
|
2741
2741
|
function L0(n, e, t) {
|
|
2742
2742
|
return e = Math.max(0, Math.min(n.length, e)), [e, Math.max(e, Math.min(n.length, t))];
|
|
2743
2743
|
}
|
|
2744
|
-
function
|
|
2744
|
+
function $e(n, e, t = !0, i = !0) {
|
|
2745
2745
|
return z8(n, e, t, i);
|
|
2746
2746
|
}
|
|
2747
2747
|
function L8(n) {
|
|
@@ -2927,7 +2927,7 @@ class At {
|
|
|
2927
2927
|
return new At(e);
|
|
2928
2928
|
}
|
|
2929
2929
|
}
|
|
2930
|
-
class
|
|
2930
|
+
class Pe extends At {
|
|
2931
2931
|
constructor(e, t) {
|
|
2932
2932
|
super(e), this.inserted = t;
|
|
2933
2933
|
}
|
|
@@ -2962,7 +2962,7 @@ class Ae extends At {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
o += r;
|
|
2964
2964
|
}
|
|
2965
|
-
return new
|
|
2965
|
+
return new Pe(t, i);
|
|
2966
2966
|
}
|
|
2967
2967
|
/**
|
|
2968
2968
|
Combine two subsequent change sets into a single set. `other`
|
|
@@ -3019,20 +3019,20 @@ class Ae extends At {
|
|
|
3019
3019
|
if (o.done)
|
|
3020
3020
|
break e;
|
|
3021
3021
|
let h = Math.min(o.len, a - l);
|
|
3022
|
-
|
|
3022
|
+
Ge(s, h, -1);
|
|
3023
3023
|
let u = o.ins == -1 ? -1 : o.off == 0 ? o.ins : 0;
|
|
3024
|
-
|
|
3024
|
+
Ge(t, h, u), u > 0 && Ut(i, t, o.text), o.forward(h), l += h;
|
|
3025
3025
|
}
|
|
3026
3026
|
let c = e[r++];
|
|
3027
3027
|
for (; l < c; ) {
|
|
3028
3028
|
if (o.done)
|
|
3029
3029
|
break e;
|
|
3030
3030
|
let h = Math.min(o.len, c - l);
|
|
3031
|
-
|
|
3031
|
+
Ge(t, h, -1), Ge(s, h, o.ins == -1 ? -1 : o.off == 0 ? o.ins : 0), o.forward(h), l += h;
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
return {
|
|
3035
|
-
changes: new
|
|
3035
|
+
changes: new Pe(t, i),
|
|
3036
3036
|
filtered: At.create(s)
|
|
3037
3037
|
};
|
|
3038
3038
|
}
|
|
@@ -3056,15 +3056,15 @@ class Ae extends At {
|
|
|
3056
3056
|
function a(h = !1) {
|
|
3057
3057
|
if (!h && !s.length)
|
|
3058
3058
|
return;
|
|
3059
|
-
r < t &&
|
|
3060
|
-
let u = new
|
|
3059
|
+
r < t && Ge(s, t - r, -1);
|
|
3060
|
+
let u = new Pe(s, o);
|
|
3061
3061
|
l = l ? l.compose(u.map(l)) : u, s = [], o = [], r = 0;
|
|
3062
3062
|
}
|
|
3063
3063
|
function c(h) {
|
|
3064
3064
|
if (Array.isArray(h))
|
|
3065
3065
|
for (let u of h)
|
|
3066
3066
|
c(u);
|
|
3067
|
-
else if (h instanceof
|
|
3067
|
+
else if (h instanceof Pe) {
|
|
3068
3068
|
if (h.length != t)
|
|
3069
3069
|
throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);
|
|
3070
3070
|
a(), l = l ? l.compose(h.map(l)) : h;
|
|
@@ -3075,7 +3075,7 @@ class Ae extends At {
|
|
|
3075
3075
|
let p = f ? typeof f == "string" ? oe.of(f.split(i || Hn)) : f : oe.empty, g = p.length;
|
|
3076
3076
|
if (u == d && g == 0)
|
|
3077
3077
|
return;
|
|
3078
|
-
u < r && a(), u > r &&
|
|
3078
|
+
u < r && a(), u > r && Ge(s, u - r, -1), Ge(s, d - u, g), Ut(o, s, p), r = d;
|
|
3079
3079
|
}
|
|
3080
3080
|
}
|
|
3081
3081
|
return c(e), a(!l), l;
|
|
@@ -3084,7 +3084,7 @@ class Ae extends At {
|
|
|
3084
3084
|
Create an empty changeset of the given length.
|
|
3085
3085
|
*/
|
|
3086
3086
|
static empty(e) {
|
|
3087
|
-
return new
|
|
3087
|
+
return new Pe(e ? [e, -1] : [], []);
|
|
3088
3088
|
}
|
|
3089
3089
|
/**
|
|
3090
3090
|
Create a changeset from its JSON representation (as produced by
|
|
@@ -3110,16 +3110,16 @@ class Ae extends At {
|
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
3112
|
}
|
|
3113
|
-
return new
|
|
3113
|
+
return new Pe(t, i);
|
|
3114
3114
|
}
|
|
3115
3115
|
/**
|
|
3116
3116
|
@internal
|
|
3117
3117
|
*/
|
|
3118
3118
|
static createSet(e, t) {
|
|
3119
|
-
return new
|
|
3119
|
+
return new Pe(e, t);
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3122
|
+
function Ge(n, e, t, i = !1) {
|
|
3123
3123
|
if (e == 0 && t <= 0)
|
|
3124
3124
|
return;
|
|
3125
3125
|
let s = n.length - 2;
|
|
@@ -3158,12 +3158,12 @@ function $n(n, e, t, i = !1) {
|
|
|
3158
3158
|
throw new Error("Mismatched change set lengths");
|
|
3159
3159
|
if (r.ins == -1 && l.ins == -1) {
|
|
3160
3160
|
let c = Math.min(r.len, l.len);
|
|
3161
|
-
|
|
3161
|
+
Ge(s, c, -1), r.forward(c), l.forward(c);
|
|
3162
3162
|
} else if (l.ins >= 0 && (r.ins < 0 || a == r.i || r.off == 0 && (l.len < r.len || l.len == r.len && !t))) {
|
|
3163
3163
|
let c = l.len;
|
|
3164
|
-
for (
|
|
3164
|
+
for (Ge(s, l.ins, -1); c; ) {
|
|
3165
3165
|
let h = Math.min(r.len, c);
|
|
3166
|
-
r.ins >= 0 && a < r.i && r.len <= h && (
|
|
3166
|
+
r.ins >= 0 && a < r.i && r.len <= h && (Ge(s, 0, r.ins), o && Ut(o, s, r.text), a = r.i), r.forward(h), c -= h;
|
|
3167
3167
|
}
|
|
3168
3168
|
l.next();
|
|
3169
3169
|
} else if (r.ins >= 0) {
|
|
@@ -3176,10 +3176,10 @@ function $n(n, e, t, i = !1) {
|
|
|
3176
3176
|
h -= l.len, l.next();
|
|
3177
3177
|
else
|
|
3178
3178
|
break;
|
|
3179
|
-
|
|
3179
|
+
Ge(s, c, a < r.i ? r.ins : 0), o && a < r.i && Ut(o, s, r.text), a = r.i, r.forward(r.len - h);
|
|
3180
3180
|
} else {
|
|
3181
3181
|
if (r.done && l.done)
|
|
3182
|
-
return o ?
|
|
3182
|
+
return o ? Pe.createSet(s, o) : At.create(s);
|
|
3183
3183
|
throw new Error("Mismatched change set lengths");
|
|
3184
3184
|
}
|
|
3185
3185
|
}
|
|
@@ -3188,11 +3188,11 @@ function Wl(n, e, t = !1) {
|
|
|
3188
3188
|
let i = [], s = t ? [] : null, o = new c2(n), r = new c2(e);
|
|
3189
3189
|
for (let l = !1; ; ) {
|
|
3190
3190
|
if (o.done && r.done)
|
|
3191
|
-
return s ?
|
|
3191
|
+
return s ? Pe.createSet(i, s) : At.create(i);
|
|
3192
3192
|
if (o.ins == 0)
|
|
3193
|
-
|
|
3193
|
+
Ge(i, o.len, 0, l), o.next();
|
|
3194
3194
|
else if (r.len == 0 && !r.done)
|
|
3195
|
-
|
|
3195
|
+
Ge(i, 0, r.ins, l), s && Ut(s, i, r.text), r.next();
|
|
3196
3196
|
else {
|
|
3197
3197
|
if (o.done || r.done)
|
|
3198
3198
|
throw new Error("Mismatched change set lengths");
|
|
@@ -3200,8 +3200,8 @@ function Wl(n, e, t = !1) {
|
|
|
3200
3200
|
let a = Math.min(o.len2, r.len), c = i.length;
|
|
3201
3201
|
if (o.ins == -1) {
|
|
3202
3202
|
let h = r.ins == -1 ? -1 : r.off ? 0 : r.ins;
|
|
3203
|
-
|
|
3204
|
-
} else r.ins == -1 ? (
|
|
3203
|
+
Ge(i, a, h, l), s && h && Ut(s, i, r.text);
|
|
3204
|
+
} else r.ins == -1 ? (Ge(i, o.off ? 0 : o.len, a, l), s && Ut(s, i, o.textBit(a))) : (Ge(i, o.off ? 0 : o.len, r.off ? 0 : r.ins, l), s && !r.off && Ut(s, i, r.text));
|
|
3205
3205
|
l = (o.ins > a || r.ins >= 0 && r.len > a) && (l || i.length > c), o.forward2(a), r.forward(a);
|
|
3206
3206
|
}
|
|
3207
3207
|
}
|
|
@@ -3536,7 +3536,7 @@ class si {
|
|
|
3536
3536
|
let f, p = d.config.address[o];
|
|
3537
3537
|
if (p != null) {
|
|
3538
3538
|
let g = vi(d, p);
|
|
3539
|
-
if (this.dependencies.every((m) => m instanceof I ? d.facet(m) === u.facet(m) : m instanceof
|
|
3539
|
+
if (this.dependencies.every((m) => m instanceof I ? d.facet(m) === u.facet(m) : m instanceof We ? d.field(m, !1) == u.field(m, !1) : !0) || (l ? Eo(f = i(u), g, s) : s(f = i(u), g)))
|
|
3540
3540
|
return u.values[r] = g, 0;
|
|
3541
3541
|
} else
|
|
3542
3542
|
f = i(u);
|
|
@@ -3595,7 +3595,7 @@ function I8(n, e, t) {
|
|
|
3595
3595
|
};
|
|
3596
3596
|
}
|
|
3597
3597
|
const V2 = /* @__PURE__ */ I.define({ static: !0 });
|
|
3598
|
-
class
|
|
3598
|
+
class We {
|
|
3599
3599
|
constructor(e, t, i, s, o) {
|
|
3600
3600
|
this.id = e, this.createF = t, this.updateF = i, this.compareF = s, this.spec = o, this.provides = void 0;
|
|
3601
3601
|
}
|
|
@@ -3603,7 +3603,7 @@ class $e {
|
|
|
3603
3603
|
Define a state field.
|
|
3604
3604
|
*/
|
|
3605
3605
|
static define(e) {
|
|
3606
|
-
let t = new
|
|
3606
|
+
let t = new We(Ls++, e.create, e.update, e.compare || ((i, s) => i === s), e);
|
|
3607
3607
|
return e.provide && (t.provides = e.provide(t)), t;
|
|
3608
3608
|
}
|
|
3609
3609
|
create(e) {
|
|
@@ -3722,7 +3722,7 @@ class mi {
|
|
|
3722
3722
|
static resolve(e, t, i) {
|
|
3723
3723
|
let s = [], o = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ new Map();
|
|
3724
3724
|
for (let d of H8(e, t, r))
|
|
3725
|
-
d instanceof
|
|
3725
|
+
d instanceof We ? s.push(d) : (o[d.facet.id] || (o[d.facet.id] = [])).push(d);
|
|
3726
3726
|
let l = /* @__PURE__ */ Object.create(null), a = [], c = [];
|
|
3727
3727
|
for (let d of s)
|
|
3728
3728
|
l[d.id] = c.length << 1, c.push((f) => d.slot(f));
|
|
@@ -3769,7 +3769,7 @@ function H8(n, e, t) {
|
|
|
3769
3769
|
t.set(r.compartment, c), o(c, l);
|
|
3770
3770
|
} else if (r instanceof Fl)
|
|
3771
3771
|
o(r.inner, r.prec);
|
|
3772
|
-
else if (r instanceof
|
|
3772
|
+
else if (r instanceof We)
|
|
3773
3773
|
i[l].push(r), r.provides && o(r.provides, l);
|
|
3774
3774
|
else if (r instanceof si)
|
|
3775
3775
|
i[l].push(r), r.facet.extensions && o(r.facet.extensions, l0.default);
|
|
@@ -3891,15 +3891,15 @@ class Q {
|
|
|
3891
3891
|
}
|
|
3892
3892
|
Q.reconfigure = /* @__PURE__ */ Q.define();
|
|
3893
3893
|
Q.appendConfig = /* @__PURE__ */ Q.define();
|
|
3894
|
-
class
|
|
3894
|
+
class ze {
|
|
3895
3895
|
constructor(e, t, i, s, o, r) {
|
|
3896
|
-
this.startState = e, this.changes = t, this.selection = i, this.effects = s, this.annotations = o, this.scrollIntoView = r, this._doc = null, this._state = null, i && Gl(i, t.newLength), o.some((l) => l.type ==
|
|
3896
|
+
this.startState = e, this.changes = t, this.selection = i, this.effects = s, this.annotations = o, this.scrollIntoView = r, this._doc = null, this._state = null, i && Gl(i, t.newLength), o.some((l) => l.type == ze.time) || (this.annotations = o.concat(ze.time.of(Date.now())));
|
|
3897
3897
|
}
|
|
3898
3898
|
/**
|
|
3899
3899
|
@internal
|
|
3900
3900
|
*/
|
|
3901
3901
|
static create(e, t, i, s, o, r) {
|
|
3902
|
-
return new
|
|
3902
|
+
return new ze(e, t, i, s, o, r);
|
|
3903
3903
|
}
|
|
3904
3904
|
/**
|
|
3905
3905
|
The new document produced by the transaction. Contrary to
|
|
@@ -3961,14 +3961,14 @@ class Pe {
|
|
|
3961
3961
|
`"select.pointer"` will match it.
|
|
3962
3962
|
*/
|
|
3963
3963
|
isUserEvent(e) {
|
|
3964
|
-
let t = this.annotation(
|
|
3964
|
+
let t = this.annotation(ze.userEvent);
|
|
3965
3965
|
return !!(t && (t == e || t.length > e.length && t.slice(0, e.length) == e && t[e.length] == "."));
|
|
3966
3966
|
}
|
|
3967
3967
|
}
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3968
|
+
ze.time = /* @__PURE__ */ Wt.define();
|
|
3969
|
+
ze.userEvent = /* @__PURE__ */ Wt.define();
|
|
3970
|
+
ze.addToHistory = /* @__PURE__ */ Wt.define();
|
|
3971
|
+
ze.remote = /* @__PURE__ */ Wt.define();
|
|
3972
3972
|
function W8(n, e) {
|
|
3973
3973
|
let t = [];
|
|
3974
3974
|
for (let i = 0, s = 0; ; ) {
|
|
@@ -3985,7 +3985,7 @@ function W8(n, e) {
|
|
|
3985
3985
|
function Ql(n, e, t) {
|
|
3986
3986
|
var i;
|
|
3987
3987
|
let s, o, r;
|
|
3988
|
-
return t ? (s = e.changes, o =
|
|
3988
|
+
return t ? (s = e.changes, o = Pe.empty(e.changes.length), r = n.changes.compose(e.changes)) : (s = e.changes.map(n.changes), o = n.changes.mapDesc(e.changes, !0), r = n.changes.compose(s)), {
|
|
3989
3989
|
changes: r,
|
|
3990
3990
|
selection: e.selection ? e.selection.map(o) : (i = n.selection) === null || i === void 0 ? void 0 : i.map(s),
|
|
3991
3991
|
effects: Q.mapEffects(n.effects, s).concat(Q.mapEffects(e.effects, o)),
|
|
@@ -3995,8 +3995,8 @@ function Ql(n, e, t) {
|
|
|
3995
3995
|
}
|
|
3996
3996
|
function jn(n, e, t) {
|
|
3997
3997
|
let i = e.selection, s = T0(e.annotations);
|
|
3998
|
-
return e.userEvent && (s = s.concat(
|
|
3999
|
-
changes: e.changes instanceof
|
|
3998
|
+
return e.userEvent && (s = s.concat(ze.userEvent.of(e.userEvent))), {
|
|
3999
|
+
changes: e.changes instanceof Pe ? e.changes : Pe.of(e.changes || [], t, n.facet(Ul)),
|
|
4000
4000
|
selection: i && (i instanceof O ? i : O.single(i.anchor, i.head)),
|
|
4001
4001
|
effects: T0(e.effects),
|
|
4002
4002
|
annotations: s,
|
|
@@ -4011,7 +4011,7 @@ function Jl(n, e, t) {
|
|
|
4011
4011
|
let r = !!e[o].sequential;
|
|
4012
4012
|
i = Ql(i, jn(n, e[o], r ? i.changes.newLength : n.doc.length), r);
|
|
4013
4013
|
}
|
|
4014
|
-
let s =
|
|
4014
|
+
let s = ze.create(n, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView);
|
|
4015
4015
|
return F8(t ? G8(s) : s);
|
|
4016
4016
|
}
|
|
4017
4017
|
function G8(n) {
|
|
@@ -4027,17 +4027,17 @@ function G8(n) {
|
|
|
4027
4027
|
if (t !== !0) {
|
|
4028
4028
|
let s, o;
|
|
4029
4029
|
if (t === !1)
|
|
4030
|
-
o = n.changes.invertedDesc, s =
|
|
4030
|
+
o = n.changes.invertedDesc, s = Pe.empty(e.doc.length);
|
|
4031
4031
|
else {
|
|
4032
4032
|
let r = n.changes.filter(t);
|
|
4033
4033
|
s = r.changes, o = r.filtered.mapDesc(r.changes).invertedDesc;
|
|
4034
4034
|
}
|
|
4035
|
-
n =
|
|
4035
|
+
n = ze.create(e, s, n.selection && n.selection.map(o), Q.mapEffects(n.effects, o), n.annotations, n.scrollIntoView);
|
|
4036
4036
|
}
|
|
4037
4037
|
let i = e.facet(Yl);
|
|
4038
4038
|
for (let s = i.length - 1; s >= 0; s--) {
|
|
4039
4039
|
let o = i[s](n);
|
|
4040
|
-
o instanceof
|
|
4040
|
+
o instanceof ze ? n = o : Array.isArray(o) && o.length == 1 && o[0] instanceof ze ? n = o[0] : n = Jl(e, T0(o), !1);
|
|
4041
4041
|
}
|
|
4042
4042
|
return n;
|
|
4043
4043
|
}
|
|
@@ -4047,15 +4047,15 @@ function F8(n) {
|
|
|
4047
4047
|
let o = t[s](n);
|
|
4048
4048
|
o && Object.keys(o).length && (i = Ql(i, jn(e, o, n.changes.newLength), !0));
|
|
4049
4049
|
}
|
|
4050
|
-
return i == n ? n :
|
|
4050
|
+
return i == n ? n : ze.create(e, n.changes, n.selection, i.effects, i.annotations, i.scrollIntoView);
|
|
4051
4051
|
}
|
|
4052
4052
|
const j8 = [];
|
|
4053
4053
|
function T0(n) {
|
|
4054
4054
|
return n == null ? j8 : Array.isArray(n) ? n : [n];
|
|
4055
4055
|
}
|
|
4056
|
-
var
|
|
4056
|
+
var xe = /* @__PURE__ */ function(n) {
|
|
4057
4057
|
return n[n.Word = 0] = "Word", n[n.Space = 1] = "Space", n[n.Other = 2] = "Other", n;
|
|
4058
|
-
}(
|
|
4058
|
+
}(xe || (xe = {}));
|
|
4059
4059
|
const U8 = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
4060
4060
|
let Un;
|
|
4061
4061
|
try {
|
|
@@ -4075,13 +4075,13 @@ function q8(n) {
|
|
|
4075
4075
|
function Y8(n) {
|
|
4076
4076
|
return (e) => {
|
|
4077
4077
|
if (!/\S/.test(e))
|
|
4078
|
-
return
|
|
4078
|
+
return xe.Space;
|
|
4079
4079
|
if (q8(e))
|
|
4080
|
-
return
|
|
4080
|
+
return xe.Word;
|
|
4081
4081
|
for (let t = 0; t < n.length; t++)
|
|
4082
4082
|
if (e.indexOf(n[t]) > -1)
|
|
4083
|
-
return
|
|
4084
|
-
return
|
|
4083
|
+
return xe.Word;
|
|
4084
|
+
return xe.Other;
|
|
4085
4085
|
};
|
|
4086
4086
|
}
|
|
4087
4087
|
class ne {
|
|
@@ -4172,7 +4172,7 @@ class ne {
|
|
|
4172
4172
|
separator into account.
|
|
4173
4173
|
*/
|
|
4174
4174
|
changes(e = []) {
|
|
4175
|
-
return e instanceof
|
|
4175
|
+
return e instanceof Pe ? e : Pe.of(e, this.doc.length, this.facet(ne.lineSeparator));
|
|
4176
4176
|
}
|
|
4177
4177
|
/**
|
|
4178
4178
|
Using the state's [line
|
|
@@ -4209,7 +4209,7 @@ class ne {
|
|
|
4209
4209
|
if (e)
|
|
4210
4210
|
for (let i in e) {
|
|
4211
4211
|
let s = e[i];
|
|
4212
|
-
s instanceof
|
|
4212
|
+
s instanceof We && this.config.address[s.id] != null && (t[i] = s.spec.toJSON(this.field(e[i]), this));
|
|
4213
4213
|
}
|
|
4214
4214
|
return t;
|
|
4215
4215
|
}
|
|
@@ -4336,14 +4336,14 @@ class ne {
|
|
|
4336
4336
|
wordAt(e) {
|
|
4337
4337
|
let { text: t, from: i, length: s } = this.doc.lineAt(e), o = this.charCategorizer(e), r = e - i, l = e - i;
|
|
4338
4338
|
for (; r > 0; ) {
|
|
4339
|
-
let a =
|
|
4340
|
-
if (o(t.slice(a, r)) !=
|
|
4339
|
+
let a = $e(t, r, !1);
|
|
4340
|
+
if (o(t.slice(a, r)) != xe.Word)
|
|
4341
4341
|
break;
|
|
4342
4342
|
r = a;
|
|
4343
4343
|
}
|
|
4344
4344
|
for (; l < s; ) {
|
|
4345
|
-
let a =
|
|
4346
|
-
if (o(t.slice(l, a)) !=
|
|
4345
|
+
let a = $e(t, l);
|
|
4346
|
+
if (o(t.slice(l, a)) != xe.Word)
|
|
4347
4347
|
break;
|
|
4348
4348
|
l = a;
|
|
4349
4349
|
}
|
|
@@ -4939,7 +4939,7 @@ function Ro(n, e) {
|
|
|
4939
4939
|
function G0(n, e, t = n.length) {
|
|
4940
4940
|
let i = 0;
|
|
4941
4941
|
for (let s = 0; s < t && s < n.length; )
|
|
4942
|
-
n.charCodeAt(s) == 9 ? (i += e - i % e, s++) : (i++, s =
|
|
4942
|
+
n.charCodeAt(s) == 9 ? (i += e - i % e, s++) : (i++, s = $e(n, s));
|
|
4943
4943
|
return i;
|
|
4944
4944
|
}
|
|
4945
4945
|
function Xn(n, e, t, i) {
|
|
@@ -4948,7 +4948,7 @@ function Xn(n, e, t, i) {
|
|
|
4948
4948
|
return s;
|
|
4949
4949
|
if (s == n.length)
|
|
4950
4950
|
break;
|
|
4951
|
-
o += n.charCodeAt(s) == 9 ? t - o % t : 1, s =
|
|
4951
|
+
o += n.charCodeAt(s) == 9 ? t - o % t : 1, s = $e(n, s);
|
|
4952
4952
|
}
|
|
4953
4953
|
return i === !0 ? -1 : n.length;
|
|
4954
4954
|
}
|
|
@@ -5137,10 +5137,10 @@ var Zt = {
|
|
|
5137
5137
|
221: "}",
|
|
5138
5138
|
222: '"'
|
|
5139
5139
|
}, Q8 = typeof navigator < "u" && /Mac/.test(navigator.platform), J8 = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
5140
|
-
for (var
|
|
5141
|
-
for (var
|
|
5142
|
-
for (var
|
|
5143
|
-
Zt[
|
|
5140
|
+
for (var Ne = 0; Ne < 10; Ne++) Zt[48 + Ne] = Zt[96 + Ne] = String(Ne);
|
|
5141
|
+
for (var Ne = 1; Ne <= 24; Ne++) Zt[Ne + 111] = "F" + Ne;
|
|
5142
|
+
for (var Ne = 65; Ne <= 90; Ne++)
|
|
5143
|
+
Zt[Ne] = String.fromCharCode(Ne + 32), d2[Ne] = String.fromCharCode(Ne);
|
|
5144
5144
|
for (var hn in Zt) d2.hasOwnProperty(hn) || (d2[hn] = Zt[hn]);
|
|
5145
5145
|
function Z8(n) {
|
|
5146
5146
|
var e = Q8 && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || J8 && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? d2 : Zt)[n.keyCode] || n.key || "Unidentified";
|
|
@@ -5423,15 +5423,15 @@ function l1(n, e) {
|
|
|
5423
5423
|
return null;
|
|
5424
5424
|
}
|
|
5425
5425
|
}
|
|
5426
|
-
class
|
|
5426
|
+
class Fe {
|
|
5427
5427
|
constructor(e, t, i = !0) {
|
|
5428
5428
|
this.node = e, this.offset = t, this.precise = i;
|
|
5429
5429
|
}
|
|
5430
5430
|
static before(e, t) {
|
|
5431
|
-
return new
|
|
5431
|
+
return new Fe(e.parentNode, m0(e), t);
|
|
5432
5432
|
}
|
|
5433
5433
|
static after(e, t) {
|
|
5434
|
-
return new
|
|
5434
|
+
return new Fe(e.parentNode, m0(e) + 1, t);
|
|
5435
5435
|
}
|
|
5436
5436
|
}
|
|
5437
5437
|
const Hs = [];
|
|
@@ -5702,7 +5702,7 @@ class vt extends de {
|
|
|
5702
5702
|
return e == this.dom ? t : t ? this.text.length : 0;
|
|
5703
5703
|
}
|
|
5704
5704
|
domAtPos(e) {
|
|
5705
|
-
return new
|
|
5705
|
+
return new Fe(this.dom, e);
|
|
5706
5706
|
}
|
|
5707
5707
|
domBoundsAround(e, t, i) {
|
|
5708
5708
|
return { from: i, to: i + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling };
|
|
@@ -5801,7 +5801,7 @@ class qt extends de {
|
|
|
5801
5801
|
return i ? i.slice(s, s + this.length) : oe.empty;
|
|
5802
5802
|
}
|
|
5803
5803
|
domAtPos(e) {
|
|
5804
|
-
return (this.length ? e == 0 : this.side > 0) ?
|
|
5804
|
+
return (this.length ? e == 0 : this.side > 0) ? Fe.before(this.dom) : Fe.after(this.dom, e == this.length);
|
|
5805
5805
|
}
|
|
5806
5806
|
domBoundsAround() {
|
|
5807
5807
|
return null;
|
|
@@ -5857,7 +5857,7 @@ class R0 extends de {
|
|
|
5857
5857
|
return this.side;
|
|
5858
5858
|
}
|
|
5859
5859
|
domAtPos(e) {
|
|
5860
|
-
return this.side > 0 ?
|
|
5860
|
+
return this.side > 0 ? Fe.before(this.dom) : Fe.after(this.dom);
|
|
5861
5861
|
}
|
|
5862
5862
|
localPosFromDOM() {
|
|
5863
5863
|
return 0;
|
|
@@ -5898,7 +5898,7 @@ function f1(n, e) {
|
|
|
5898
5898
|
if (r.dom.parentNode == t)
|
|
5899
5899
|
return r.domAtPos(0);
|
|
5900
5900
|
}
|
|
5901
|
-
return new
|
|
5901
|
+
return new Fe(t, 0);
|
|
5902
5902
|
}
|
|
5903
5903
|
function p1(n, e, t) {
|
|
5904
5904
|
let i, { children: s } = n;
|
|
@@ -6182,21 +6182,21 @@ function ri(n, e, t, i = 0) {
|
|
|
6182
6182
|
let s = t.length - 1;
|
|
6183
6183
|
s >= 0 && t[s] + i >= n ? t[s] = Math.max(t[s], e) : t.push(n, e);
|
|
6184
6184
|
}
|
|
6185
|
-
class
|
|
6185
|
+
class Me extends de {
|
|
6186
6186
|
constructor() {
|
|
6187
6187
|
super(...arguments), this.children = [], this.length = 0, this.prevAttrs = void 0, this.attrs = null, this.breakAfter = 0;
|
|
6188
6188
|
}
|
|
6189
6189
|
// Consumes source
|
|
6190
6190
|
merge(e, t, i, s, o, r) {
|
|
6191
6191
|
if (i) {
|
|
6192
|
-
if (!(i instanceof
|
|
6192
|
+
if (!(i instanceof Me))
|
|
6193
6193
|
return !1;
|
|
6194
6194
|
this.dom || i.transferDOM(this);
|
|
6195
6195
|
}
|
|
6196
6196
|
return s && this.setDeco(i ? i.attrs : null), c1(this, e, t, i ? i.children.slice() : [], o, r), !0;
|
|
6197
6197
|
}
|
|
6198
6198
|
split(e) {
|
|
6199
|
-
let t = new
|
|
6199
|
+
let t = new Me();
|
|
6200
6200
|
if (t.breakAfter = this.breakAfter, this.length == 0)
|
|
6201
6201
|
return t;
|
|
6202
6202
|
let { i, off: s } = this.childPos(e);
|
|
@@ -6268,7 +6268,7 @@ class Oe extends de {
|
|
|
6268
6268
|
return i;
|
|
6269
6269
|
}
|
|
6270
6270
|
become(e) {
|
|
6271
|
-
return e instanceof
|
|
6271
|
+
return e instanceof Me && this.children.length == 0 && e.children.length == 0 && bi(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
|
|
6272
6272
|
}
|
|
6273
6273
|
covers() {
|
|
6274
6274
|
return !0;
|
|
@@ -6277,7 +6277,7 @@ class Oe extends de {
|
|
|
6277
6277
|
for (let i = 0, s = 0; i < e.children.length; i++) {
|
|
6278
6278
|
let o = e.children[i], r = s + o.length;
|
|
6279
6279
|
if (r >= t) {
|
|
6280
|
-
if (o instanceof
|
|
6280
|
+
if (o instanceof Me)
|
|
6281
6281
|
return o;
|
|
6282
6282
|
if (r > t)
|
|
6283
6283
|
break;
|
|
@@ -6295,7 +6295,7 @@ class Rt extends de {
|
|
|
6295
6295
|
return i && (!(i instanceof Rt) || !this.widget.compare(i.widget) || e > 0 && o <= 0 || t < this.length && r <= 0) ? !1 : (this.length = e + (i ? i.length : 0) + (this.length - t), !0);
|
|
6296
6296
|
}
|
|
6297
6297
|
domAtPos(e) {
|
|
6298
|
-
return e == 0 ?
|
|
6298
|
+
return e == 0 ? Fe.before(this.dom) : Fe.after(this.dom, e == this.length);
|
|
6299
6299
|
}
|
|
6300
6300
|
split(e) {
|
|
6301
6301
|
let t = this.length - e;
|
|
@@ -6377,7 +6377,7 @@ class o2 {
|
|
|
6377
6377
|
return !(e.breakAfter || e instanceof Rt && e.deco.endSide < 0);
|
|
6378
6378
|
}
|
|
6379
6379
|
getLine() {
|
|
6380
|
-
return this.curLine || (this.content.push(this.curLine = new
|
|
6380
|
+
return this.curLine || (this.content.push(this.curLine = new Me()), this.atCursorPos = !0), this.curLine;
|
|
6381
6381
|
}
|
|
6382
6382
|
flushBuffer(e = this.bufferMarks) {
|
|
6383
6383
|
this.pendingBuffer && (this.curLine.append(L2(new R0(-1), e), e.length), this.pendingBuffer = 0);
|
|
@@ -6459,10 +6459,10 @@ class I0 extends n0 {
|
|
|
6459
6459
|
}
|
|
6460
6460
|
I0.inline = /* @__PURE__ */ new I0("span");
|
|
6461
6461
|
I0.block = /* @__PURE__ */ new I0("div");
|
|
6462
|
-
var
|
|
6462
|
+
var we = /* @__PURE__ */ function(n) {
|
|
6463
6463
|
return n[n.LTR = 0] = "LTR", n[n.RTL = 1] = "RTL", n;
|
|
6464
|
-
}(
|
|
6465
|
-
const w0 =
|
|
6464
|
+
}(we || (we = {}));
|
|
6465
|
+
const w0 = we.LTR, Ns = we.RTL;
|
|
6466
6466
|
function v1(n) {
|
|
6467
6467
|
let e = [];
|
|
6468
6468
|
for (let t = 0; t < n.length; t++)
|
|
@@ -6728,7 +6728,7 @@ function xd(n, e, t, i, s) {
|
|
|
6728
6728
|
return null;
|
|
6729
6729
|
a = e[l = d], r = a.side(!s, t), c = a.side(s, t);
|
|
6730
6730
|
}
|
|
6731
|
-
let h =
|
|
6731
|
+
let h = $e(n.text, r, a.forward(s, t));
|
|
6732
6732
|
(h < a.from || h > a.to) && (h = c), y1 = n.text.slice(Math.min(r, h), Math.max(r, h));
|
|
6733
6733
|
let u = l == (s ? e.length - 1 : 0) ? null : e[l + (s ? 1 : -1)];
|
|
6734
6734
|
return u && h == c && u.level + (s ? 0 : 1) < a.level ? O.cursor(u.side(!s, t) + n.from, u.forward(s, t) ? 1 : -1, u.level) : O.cursor(h + n.from, a.forward(s, t) ? -1 : 1, a.level);
|
|
@@ -6776,7 +6776,7 @@ const C0 = /* @__PURE__ */ I.define({
|
|
|
6776
6776
|
});
|
|
6777
6777
|
}
|
|
6778
6778
|
});
|
|
6779
|
-
class
|
|
6779
|
+
class Te {
|
|
6780
6780
|
constructor(e, t, i, s, o) {
|
|
6781
6781
|
this.id = e, this.create = t, this.domEventHandlers = i, this.domEventObservers = s, this.baseExtensions = o(this), this.extension = this.baseExtensions.concat(C0.of({ plugin: this, arg: void 0 }));
|
|
6782
6782
|
}
|
|
@@ -6792,7 +6792,7 @@ class De {
|
|
|
6792
6792
|
*/
|
|
6793
6793
|
static define(e, t) {
|
|
6794
6794
|
const { eventHandlers: i, eventObservers: s, provide: o, decorations: r } = t || {};
|
|
6795
|
-
return new
|
|
6795
|
+
return new Te(Sd++, e, i, s, (l) => {
|
|
6796
6796
|
let a = [];
|
|
6797
6797
|
return r && a.push(g2.of((c) => {
|
|
6798
6798
|
let h = c.plugin(l);
|
|
@@ -6805,7 +6805,7 @@ class De {
|
|
|
6805
6805
|
editor view as argument.
|
|
6806
6806
|
*/
|
|
6807
6807
|
static fromClass(e, t) {
|
|
6808
|
-
return
|
|
6808
|
+
return Te.define((i, s) => new e(i, s), t);
|
|
6809
6809
|
}
|
|
6810
6810
|
}
|
|
6811
6811
|
class un {
|
|
@@ -6924,7 +6924,7 @@ class ut {
|
|
|
6924
6924
|
}
|
|
6925
6925
|
class xi {
|
|
6926
6926
|
constructor(e, t, i) {
|
|
6927
|
-
this.view = e, this.state = t, this.transactions = i, this.flags = 0, this.startState = e.state, this.changes =
|
|
6927
|
+
this.view = e, this.state = t, this.transactions = i, this.flags = 0, this.startState = e.state, this.changes = Pe.empty(this.startState.doc.length);
|
|
6928
6928
|
for (let o of i)
|
|
6929
6929
|
this.changes = this.changes.compose(o.changes);
|
|
6930
6930
|
let s = [];
|
|
@@ -6997,7 +6997,7 @@ class Yo extends de {
|
|
|
6997
6997
|
return this.view.state.doc.length;
|
|
6998
6998
|
}
|
|
6999
6999
|
constructor(e) {
|
|
7000
|
-
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = q.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new
|
|
7000
|
+
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = q.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Me()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new ut(0, 0, 0, e.state.doc.length)], 0, null);
|
|
7001
7001
|
}
|
|
7002
7002
|
// Update the document view to a given state.
|
|
7003
7003
|
update(e) {
|
|
@@ -7065,7 +7065,7 @@ class Yo extends de {
|
|
|
7065
7065
|
t.flags |= 8;
|
|
7066
7066
|
for (let { deco: s } of e.marks)
|
|
7067
7067
|
t = new Ht(s, [t], t.length);
|
|
7068
|
-
let i = new
|
|
7068
|
+
let i = new Me();
|
|
7069
7069
|
return i.append(t, 0), i;
|
|
7070
7070
|
}
|
|
7071
7071
|
fixCompositionDOM(e) {
|
|
@@ -7092,7 +7092,7 @@ class Yo extends de {
|
|
|
7092
7092
|
let l = this.view.state.selection.main, a = this.moveToLine(this.domAtPos(l.anchor)), c = l.empty ? a : this.moveToLine(this.domAtPos(l.head));
|
|
7093
7093
|
if (E.gecko && l.empty && !this.hasComposition && _d(a)) {
|
|
7094
7094
|
let u = document.createTextNode("");
|
|
7095
|
-
this.view.observer.ignore(() => a.node.insertBefore(u, a.node.childNodes[a.offset] || null)), a = c = new
|
|
7095
|
+
this.view.observer.ignore(() => a.node.insertBefore(u, a.node.childNodes[a.offset] || null)), a = c = new Fe(u, 0), r = !0;
|
|
7096
7096
|
}
|
|
7097
7097
|
let h = this.view.observer.selectionRange;
|
|
7098
7098
|
(r || !h.focusNode || (!s2(a.node, a.offset, h.anchorNode, h.anchorOffset) || !s2(c.node, c.offset, h.focusNode, h.focusOffset)) && !this.suppressWidgetCursorChange(h, l)) && (this.view.observer.ignore(() => {
|
|
@@ -7103,7 +7103,7 @@ class Yo extends de {
|
|
|
7103
7103
|
let d = Cd(a.node, a.offset);
|
|
7104
7104
|
if (d && d != 3) {
|
|
7105
7105
|
let f = (d == 1 ? r1 : l1)(a.node, a.offset);
|
|
7106
|
-
f && (a = new
|
|
7106
|
+
f && (a = new Fe(f.node, f.offset));
|
|
7107
7107
|
}
|
|
7108
7108
|
}
|
|
7109
7109
|
u.collapse(a.node, a.offset), l.bidiLevel != null && u.caretBidiLevel !== void 0 && (u.caretBidiLevel = l.bidiLevel);
|
|
@@ -7118,7 +7118,7 @@ class Yo extends de {
|
|
|
7118
7118
|
l.anchor > l.head && ([a, c] = [c, a]), d.setEnd(c.node, c.offset), d.setStart(a.node, a.offset), u.removeAllRanges(), u.addRange(d);
|
|
7119
7119
|
}
|
|
7120
7120
|
o && this.view.root.activeElement == this.dom && (this.dom.blur(), i && i.focus());
|
|
7121
|
-
}), this.view.observer.setSelectionRange(a, c)), this.impreciseAnchor = a.precise ? null : new
|
|
7121
|
+
}), this.view.observer.setSelectionRange(a, c)), this.impreciseAnchor = a.precise ? null : new Fe(h.anchorNode, h.anchorOffset), this.impreciseHead = c.precise ? null : new Fe(h.focusNode, h.focusOffset);
|
|
7122
7122
|
}
|
|
7123
7123
|
// If a zero-length widget is inserted next to the cursor during
|
|
7124
7124
|
// composition, avoid moving it across it and disrupting the
|
|
@@ -7132,7 +7132,7 @@ class Yo extends de {
|
|
|
7132
7132
|
let { view: e } = this, t = e.state.selection.main, i = f2(e.root), { anchorNode: s, anchorOffset: o } = e.observer.selectionRange;
|
|
7133
7133
|
if (!i || !t.empty || !t.assoc || !i.modify)
|
|
7134
7134
|
return;
|
|
7135
|
-
let r =
|
|
7135
|
+
let r = Me.find(this, t.head);
|
|
7136
7136
|
if (!r)
|
|
7137
7137
|
return;
|
|
7138
7138
|
let l = r.posAtStart;
|
|
@@ -7154,13 +7154,13 @@ class Yo extends de {
|
|
|
7154
7154
|
return e;
|
|
7155
7155
|
for (let s = e.offset; !i && s < t.childNodes.length; s++) {
|
|
7156
7156
|
let o = de.get(t.childNodes[s]);
|
|
7157
|
-
o instanceof
|
|
7157
|
+
o instanceof Me && (i = o.domAtPos(0));
|
|
7158
7158
|
}
|
|
7159
7159
|
for (let s = e.offset - 1; !i && s >= 0; s--) {
|
|
7160
7160
|
let o = de.get(t.childNodes[s]);
|
|
7161
|
-
o instanceof
|
|
7161
|
+
o instanceof Me && (i = o.domAtPos(o.length));
|
|
7162
7162
|
}
|
|
7163
|
-
return i ? new
|
|
7163
|
+
return i ? new Fe(i.node, i.offset, !0) : e;
|
|
7164
7164
|
}
|
|
7165
7165
|
nearest(e) {
|
|
7166
7166
|
for (let t = e; t; ) {
|
|
@@ -7181,7 +7181,7 @@ class Yo extends de {
|
|
|
7181
7181
|
let { i: t, off: i } = this.childCursor().findPos(e, -1);
|
|
7182
7182
|
for (; t < this.children.length - 1; ) {
|
|
7183
7183
|
let s = this.children[t];
|
|
7184
|
-
if (i < s.length || s instanceof
|
|
7184
|
+
if (i < s.length || s instanceof Me)
|
|
7185
7185
|
break;
|
|
7186
7186
|
t++, i = 0;
|
|
7187
7187
|
}
|
|
@@ -7193,7 +7193,7 @@ class Yo extends de {
|
|
|
7193
7193
|
let l = this.children[r], a = o - l.breakAfter, c = a - l.length;
|
|
7194
7194
|
if (a < e)
|
|
7195
7195
|
break;
|
|
7196
|
-
if (c <= e && (c < e || l.covers(-1)) && (a > e || l.covers(1)) && (!i || l instanceof
|
|
7196
|
+
if (c <= e && (c < e || l.covers(-1)) && (a > e || l.covers(1)) && (!i || l instanceof Me && !(i instanceof Me && t >= 0)))
|
|
7197
7197
|
i = l, s = c;
|
|
7198
7198
|
else if (i && c == e && a == e && l instanceof Rt && Math.abs(t) < 2) {
|
|
7199
7199
|
if (l.deco.startSide < 0)
|
|
@@ -7206,7 +7206,7 @@ class Yo extends de {
|
|
|
7206
7206
|
}
|
|
7207
7207
|
coordsForChar(e) {
|
|
7208
7208
|
let { i: t, off: i } = this.childPos(e, 1), s = this.children[t];
|
|
7209
|
-
if (!(s instanceof
|
|
7209
|
+
if (!(s instanceof Me))
|
|
7210
7210
|
return null;
|
|
7211
7211
|
for (; s.children.length; ) {
|
|
7212
7212
|
let { i: l, off: a } = s.childPos(i, 1);
|
|
@@ -7220,7 +7220,7 @@ class Yo extends de {
|
|
|
7220
7220
|
}
|
|
7221
7221
|
if (!(s instanceof vt))
|
|
7222
7222
|
return null;
|
|
7223
|
-
let o =
|
|
7223
|
+
let o = $e(s.text, i);
|
|
7224
7224
|
if (o == i)
|
|
7225
7225
|
return null;
|
|
7226
7226
|
let r = v0(s.dom, i, o).getClientRects();
|
|
@@ -7232,7 +7232,7 @@ class Yo extends de {
|
|
|
7232
7232
|
return null;
|
|
7233
7233
|
}
|
|
7234
7234
|
measureVisibleLineHeights(e) {
|
|
7235
|
-
let t = [], { from: i, to: s } = e, o = this.view.contentDOM.clientWidth, r = o > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, l = -1, a = this.view.textDirection ==
|
|
7235
|
+
let t = [], { from: i, to: s } = e, o = this.view.contentDOM.clientWidth, r = o > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, l = -1, a = this.view.textDirection == we.LTR;
|
|
7236
7236
|
for (let c = 0, h = 0; h < this.children.length; h++) {
|
|
7237
7237
|
let u = this.children[h], d = c + u.length;
|
|
7238
7238
|
if (d > s)
|
|
@@ -7253,11 +7253,11 @@ class Yo extends de {
|
|
|
7253
7253
|
}
|
|
7254
7254
|
textDirectionAt(e) {
|
|
7255
7255
|
let { i: t } = this.childPos(e, 1);
|
|
7256
|
-
return getComputedStyle(this.children[t].dom).direction == "rtl" ?
|
|
7256
|
+
return getComputedStyle(this.children[t].dom).direction == "rtl" ? we.RTL : we.LTR;
|
|
7257
7257
|
}
|
|
7258
7258
|
measureTextSize() {
|
|
7259
7259
|
for (let o of this.children)
|
|
7260
|
-
if (o instanceof
|
|
7260
|
+
if (o instanceof Me) {
|
|
7261
7261
|
let r = o.measureTextSize();
|
|
7262
7262
|
if (r)
|
|
7263
7263
|
return r;
|
|
@@ -7334,7 +7334,7 @@ class Yo extends de {
|
|
|
7334
7334
|
right: i.right + o.right,
|
|
7335
7335
|
bottom: i.bottom + o.bottom
|
|
7336
7336
|
}, { offsetWidth: l, offsetHeight: a } = this.view.scrollDOM;
|
|
7337
|
-
td(this.view.scrollDOM, r, t.head < t.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, l), -l), Math.max(Math.min(e.yMargin, a), -a), this.view.textDirection ==
|
|
7337
|
+
td(this.view.scrollDOM, r, t.head < t.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, l), -l), Math.max(Math.min(e.yMargin, a), -a), this.view.textDirection == we.LTR);
|
|
7338
7338
|
}
|
|
7339
7339
|
}
|
|
7340
7340
|
function _d(n) {
|
|
@@ -7372,7 +7372,7 @@ function kd(n, e, t) {
|
|
|
7372
7372
|
if (d instanceof Ht)
|
|
7373
7373
|
h.push({ node: u, deco: d.mark });
|
|
7374
7374
|
else {
|
|
7375
|
-
if (d instanceof
|
|
7375
|
+
if (d instanceof Me || u.nodeName == "DIV" && u.parentNode == n.contentDOM)
|
|
7376
7376
|
return { range: c, text: s, marks: h, line: u };
|
|
7377
7377
|
if (u != n.contentDOM)
|
|
7378
7378
|
h.push({ node: u, deco: new M2({
|
|
@@ -7424,16 +7424,16 @@ function Ad(n, e, t = 1) {
|
|
|
7424
7424
|
return O.cursor(e);
|
|
7425
7425
|
o == 0 ? t = 1 : o == s.length && (t = -1);
|
|
7426
7426
|
let r = o, l = o;
|
|
7427
|
-
t < 0 ? r =
|
|
7427
|
+
t < 0 ? r = $e(s.text, o, !1) : l = $e(s.text, o);
|
|
7428
7428
|
let a = i(s.text.slice(r, l));
|
|
7429
7429
|
for (; r > 0; ) {
|
|
7430
|
-
let c =
|
|
7430
|
+
let c = $e(s.text, r, !1);
|
|
7431
7431
|
if (i(s.text.slice(c, r)) != a)
|
|
7432
7432
|
break;
|
|
7433
7433
|
r = c;
|
|
7434
7434
|
}
|
|
7435
7435
|
for (; l < s.length; ) {
|
|
7436
|
-
let c =
|
|
7436
|
+
let c = $e(s.text, l);
|
|
7437
7437
|
if (i(s.text.slice(l, c)) != a)
|
|
7438
7438
|
break;
|
|
7439
7439
|
l = c;
|
|
@@ -7531,7 +7531,7 @@ function R1(n, e, t, i = -1) {
|
|
|
7531
7531
|
v && (b = Math.min(Pt(v), b));
|
|
7532
7532
|
}
|
|
7533
7533
|
if (!v || !n.docView.dom.contains(v)) {
|
|
7534
|
-
let _ =
|
|
7534
|
+
let _ = Me.find(n.docView, f);
|
|
7535
7535
|
if (!_)
|
|
7536
7536
|
return d > a.top + a.height / 2 ? a.to : a.from;
|
|
7537
7537
|
({ node: v, offset: b } = cs(_.dom, h, u));
|
|
@@ -7608,7 +7608,7 @@ function Bd(n, e, t, i) {
|
|
|
7608
7608
|
let s = us(n, e.head, e.assoc || -1), o = !i || s.type != qe.Text || !(n.lineWrapping || s.widgetLineBreaks) ? null : n.coordsAtPos(e.assoc < 0 && e.head > s.from ? e.head - 1 : e.head);
|
|
7609
7609
|
if (o) {
|
|
7610
7610
|
let r = n.dom.getBoundingClientRect(), l = n.textDirectionAt(s.from), a = n.posAtCoords({
|
|
7611
|
-
x: t == (l ==
|
|
7611
|
+
x: t == (l == we.LTR) ? r.right - 1 : r.left + 1,
|
|
7612
7612
|
y: (o.top + o.bottom) / 2
|
|
7613
7613
|
});
|
|
7614
7614
|
if (a != null)
|
|
@@ -7641,7 +7641,7 @@ function Ld(n, e, t) {
|
|
|
7641
7641
|
let i = n.state.charCategorizer(e), s = i(t);
|
|
7642
7642
|
return (o) => {
|
|
7643
7643
|
let r = i(o);
|
|
7644
|
-
return s ==
|
|
7644
|
+
return s == xe.Space && (s = r), s == r;
|
|
7645
7645
|
};
|
|
7646
7646
|
}
|
|
7647
7647
|
function Rd(n, e, t, i) {
|
|
@@ -8169,13 +8169,13 @@ function ir(n, e, t, i) {
|
|
|
8169
8169
|
if (i == 2)
|
|
8170
8170
|
return Ad(n.state, e, t);
|
|
8171
8171
|
{
|
|
8172
|
-
let s =
|
|
8172
|
+
let s = Me.find(n.docView, e), o = n.state.doc.lineAt(s ? s.posAtEnd : e), r = s ? s.posAtStart : o.from, l = s ? s.posAtEnd : o.to;
|
|
8173
8173
|
return l < n.state.doc.length && l == o.to && l++, O.range(r, l);
|
|
8174
8174
|
}
|
|
8175
8175
|
}
|
|
8176
8176
|
let nr = (n, e, t) => e >= t.top && e <= t.bottom && n >= t.left && n <= t.right;
|
|
8177
8177
|
function tf(n, e, t, i) {
|
|
8178
|
-
let s =
|
|
8178
|
+
let s = Me.find(n.docView, e);
|
|
8179
8179
|
if (!s)
|
|
8180
8180
|
return 1;
|
|
8181
8181
|
let o = e - s.posAtStart;
|
|
@@ -8473,9 +8473,9 @@ class Mt {
|
|
|
8473
8473
|
return new Mt(this.from, this.length + e.length, this.top, this.height + e.height, t);
|
|
8474
8474
|
}
|
|
8475
8475
|
}
|
|
8476
|
-
var
|
|
8476
|
+
var ge = /* @__PURE__ */ function(n) {
|
|
8477
8477
|
return n[n.ByPos = 0] = "ByPos", n[n.ByHeight = 1] = "ByHeight", n[n.ByPosNoHeight = 2] = "ByPosNoHeight", n;
|
|
8478
|
-
}(
|
|
8478
|
+
}(ge || (ge = {}));
|
|
8479
8479
|
const ai = 1e-3;
|
|
8480
8480
|
class Ye {
|
|
8481
8481
|
constructor(e, t, i = 2) {
|
|
@@ -8506,9 +8506,9 @@ class Ye {
|
|
|
8506
8506
|
applyChanges(e, t, i, s) {
|
|
8507
8507
|
let o = this, r = i.doc;
|
|
8508
8508
|
for (let l = s.length - 1; l >= 0; l--) {
|
|
8509
|
-
let { fromA: a, toA: c, fromB: h, toB: u } = s[l], d = o.lineAt(a,
|
|
8509
|
+
let { fromA: a, toA: c, fromB: h, toB: u } = s[l], d = o.lineAt(a, ge.ByPosNoHeight, i.setDoc(t), 0, 0), f = d.to >= c ? d : o.lineAt(c, ge.ByPosNoHeight, i, 0, 0);
|
|
8510
8510
|
for (u += f.to - c, c = f.to; l > 0 && d.from <= s[l - 1].toA; )
|
|
8511
|
-
a = s[l - 1].fromA, h = s[l - 1].fromB, l--, a < d.from && (d = o.lineAt(a,
|
|
8511
|
+
a = s[l - 1].fromA, h = s[l - 1].fromB, l--, a < d.from && (d = o.lineAt(a, ge.ByPosNoHeight, i, 0, 0));
|
|
8512
8512
|
h += d.from - a, a = d.from;
|
|
8513
8513
|
let p = qs.build(i.setDoc(r), e, h, u);
|
|
8514
8514
|
o = yi(o, o.replace(a, c, p));
|
|
@@ -8580,7 +8580,7 @@ class st extends q1 {
|
|
|
8580
8580
|
}
|
|
8581
8581
|
replace(e, t, i) {
|
|
8582
8582
|
let s = i[0];
|
|
8583
|
-
return i.length == 1 && (s instanceof st || s instanceof
|
|
8583
|
+
return i.length == 1 && (s instanceof st || s instanceof He && s.flags & 4) && Math.abs(this.length - s.length) < 10 ? (s instanceof He ? s = new st(s.length, this.height) : s.height = this.height, this.outdated || (s.outdated = !1), s) : Ye.of(i);
|
|
8584
8584
|
}
|
|
8585
8585
|
updateHeight(e, t = 0, i = !1, s) {
|
|
8586
8586
|
return s && s.from <= t && s.more ? this.setHeight(s.heights[s.index++]) : (i || this.outdated) && this.setHeight(Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight), this.outdated = !1, this;
|
|
@@ -8589,7 +8589,7 @@ class st extends q1 {
|
|
|
8589
8589
|
return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
|
|
8590
8590
|
}
|
|
8591
8591
|
}
|
|
8592
|
-
class
|
|
8592
|
+
class He extends Ye {
|
|
8593
8593
|
constructor(e) {
|
|
8594
8594
|
super(e, 0);
|
|
8595
8595
|
}
|
|
@@ -8613,9 +8613,9 @@ class Ie extends Ye {
|
|
|
8613
8613
|
}
|
|
8614
8614
|
}
|
|
8615
8615
|
lineAt(e, t, i, s, o) {
|
|
8616
|
-
if (t ==
|
|
8616
|
+
if (t == ge.ByHeight)
|
|
8617
8617
|
return this.blockAt(e, i, s, o);
|
|
8618
|
-
if (t ==
|
|
8618
|
+
if (t == ge.ByPosNoHeight) {
|
|
8619
8619
|
let { from: f, to: p } = i.doc.lineAt(e);
|
|
8620
8620
|
return new Mt(f, p - f, 0, 0, 0);
|
|
8621
8621
|
}
|
|
@@ -8639,25 +8639,25 @@ class Ie extends Ye {
|
|
|
8639
8639
|
let s = this.length - t;
|
|
8640
8640
|
if (s > 0) {
|
|
8641
8641
|
let o = i[i.length - 1];
|
|
8642
|
-
o instanceof
|
|
8642
|
+
o instanceof He ? i[i.length - 1] = new He(o.length + s) : i.push(null, new He(s - 1));
|
|
8643
8643
|
}
|
|
8644
8644
|
if (e > 0) {
|
|
8645
8645
|
let o = i[0];
|
|
8646
|
-
o instanceof
|
|
8646
|
+
o instanceof He ? i[0] = new He(e + o.length) : i.unshift(new He(e - 1), null);
|
|
8647
8647
|
}
|
|
8648
8648
|
return Ye.of(i);
|
|
8649
8649
|
}
|
|
8650
8650
|
decomposeLeft(e, t) {
|
|
8651
|
-
t.push(new
|
|
8651
|
+
t.push(new He(e - 1), null);
|
|
8652
8652
|
}
|
|
8653
8653
|
decomposeRight(e, t) {
|
|
8654
|
-
t.push(null, new
|
|
8654
|
+
t.push(null, new He(this.length - e - 1));
|
|
8655
8655
|
}
|
|
8656
8656
|
updateHeight(e, t = 0, i = !1, s) {
|
|
8657
8657
|
let o = t + this.length;
|
|
8658
8658
|
if (s && s.from <= t + this.length && s.more) {
|
|
8659
8659
|
let r = [], l = Math.max(t, s.from), a = -1;
|
|
8660
|
-
for (s.from > t && r.push(new
|
|
8660
|
+
for (s.from > t && r.push(new He(s.from - t - 1).updateHeight(e, t)); l <= o && s.more; ) {
|
|
8661
8661
|
let h = e.doc.lineAt(l).length;
|
|
8662
8662
|
r.length && r.push(null);
|
|
8663
8663
|
let u = s.heights[s.index++];
|
|
@@ -8665,7 +8665,7 @@ class Ie extends Ye {
|
|
|
8665
8665
|
let d = new st(h, u);
|
|
8666
8666
|
d.outdated = !1, r.push(d), l += h + 1;
|
|
8667
8667
|
}
|
|
8668
|
-
l <= o && r.push(null, new
|
|
8668
|
+
l <= o && r.push(null, new He(o - l).updateHeight(e, l));
|
|
8669
8669
|
let c = Ye.of(r);
|
|
8670
8670
|
return (a < 0 || Math.abs(c.height - this.height) >= ai || Math.abs(a - this.heightMetrics(e, t).perLine) >= ai) && (H0 = !0), yi(this, c);
|
|
8671
8671
|
} else (i || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
|
|
@@ -8687,10 +8687,10 @@ class uf extends Ye {
|
|
|
8687
8687
|
return e < o ? this.left.blockAt(e, t, i, s) : this.right.blockAt(e, t, o, s + this.left.length + this.break);
|
|
8688
8688
|
}
|
|
8689
8689
|
lineAt(e, t, i, s, o) {
|
|
8690
|
-
let r = s + this.left.height, l = o + this.left.length + this.break, a = t ==
|
|
8690
|
+
let r = s + this.left.height, l = o + this.left.length + this.break, a = t == ge.ByHeight ? e < r : e < l, c = a ? this.left.lineAt(e, t, i, s, o) : this.right.lineAt(e, t, i, r, l);
|
|
8691
8691
|
if (this.break || (a ? c.to < l : c.from > l))
|
|
8692
8692
|
return c;
|
|
8693
|
-
let h = t ==
|
|
8693
|
+
let h = t == ge.ByPosNoHeight ? ge.ByPosNoHeight : ge.ByPos;
|
|
8694
8694
|
return a ? c.join(this.right.lineAt(l, h, i, r, l)) : this.left.lineAt(l, h, i, s, o).join(c);
|
|
8695
8695
|
}
|
|
8696
8696
|
forEachLine(e, t, i, s, o, r) {
|
|
@@ -8698,7 +8698,7 @@ class uf extends Ye {
|
|
|
8698
8698
|
if (this.break)
|
|
8699
8699
|
e < a && this.left.forEachLine(e, t, i, s, o, r), t >= a && this.right.forEachLine(e, t, i, l, a, r);
|
|
8700
8700
|
else {
|
|
8701
|
-
let c = this.lineAt(a,
|
|
8701
|
+
let c = this.lineAt(a, ge.ByPos, i, s, o);
|
|
8702
8702
|
e < c.from && this.left.forEachLine(e, c.from - 1, i, s, o, r), c.to >= e && c.from <= t && r(c), t > c.to && this.right.forEachLine(c.to + 1, t, i, l, a, r);
|
|
8703
8703
|
}
|
|
8704
8704
|
}
|
|
@@ -8744,7 +8744,7 @@ class uf extends Ye {
|
|
|
8744
8744
|
}
|
|
8745
8745
|
function dr(n, e) {
|
|
8746
8746
|
let t, i;
|
|
8747
|
-
n[e] == null && (t = n[e - 1]) instanceof
|
|
8747
|
+
n[e] == null && (t = n[e - 1]) instanceof He && (i = n[e + 1]) instanceof He && n.splice(e - 1, 3, new He(t.length + 1 + i.length));
|
|
8748
8748
|
}
|
|
8749
8749
|
const df = 5;
|
|
8750
8750
|
class qs {
|
|
@@ -8777,7 +8777,7 @@ class qs {
|
|
|
8777
8777
|
this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new st(this.pos - e, -1)), this.writtenTo = this.pos;
|
|
8778
8778
|
}
|
|
8779
8779
|
blankContent(e, t) {
|
|
8780
|
-
let i = new
|
|
8780
|
+
let i = new He(t - e);
|
|
8781
8781
|
return this.oracle.doc.lineAt(e).to == t && (i.flags |= 4), i;
|
|
8782
8782
|
}
|
|
8783
8783
|
ensureLine() {
|
|
@@ -8900,7 +8900,7 @@ class wf extends n0 {
|
|
|
8900
8900
|
}
|
|
8901
8901
|
class fr {
|
|
8902
8902
|
constructor(e) {
|
|
8903
|
-
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = pr, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection =
|
|
8903
|
+
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = pr, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = we.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
8904
8904
|
let t = e.facet(Gs).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
|
|
8905
8905
|
this.heightOracle = new hf(t), this.stateDeco = e.facet(g2).filter((i) => typeof i != "function"), this.heightMap = Ye.empty().applyChanges(this.stateDeco, oe.empty, this.heightOracle.setDoc(e.doc), [new ut(0, 0, 0, e.doc.length)]);
|
|
8906
8906
|
for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
|
|
@@ -8931,7 +8931,7 @@ class fr {
|
|
|
8931
8931
|
this.state = e.state;
|
|
8932
8932
|
let i = this.stateDeco;
|
|
8933
8933
|
this.stateDeco = this.state.facet(g2).filter((h) => typeof h != "function");
|
|
8934
|
-
let s = e.changedRanges, o = ut.extendWithRanges(s, ff(i, this.stateDeco, e ? e.changes :
|
|
8934
|
+
let s = e.changedRanges, o = ut.extendWithRanges(s, ff(i, this.stateDeco, e ? e.changes : Pe.empty(this.state.doc.length))), r = this.heightMap.height, l = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
|
|
8935
8935
|
ur(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), o), (this.heightMap.height != r || H0) && (e.flags |= 2), l ? (this.scrollAnchorPos = e.changes.mapPos(l.from, -1), this.scrollAnchorHeight = l.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = r);
|
|
8936
8936
|
let a = o.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
|
|
8937
8937
|
(t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
|
|
@@ -8940,7 +8940,7 @@ class fr {
|
|
|
8940
8940
|
}
|
|
8941
8941
|
measure(e) {
|
|
8942
8942
|
let t = e.contentDOM, i = window.getComputedStyle(t), s = this.heightOracle, o = i.whiteSpace;
|
|
8943
|
-
this.defaultTextDirection = i.direction == "rtl" ?
|
|
8943
|
+
this.defaultTextDirection = i.direction == "rtl" ? we.RTL : we.LTR;
|
|
8944
8944
|
let r = this.heightOracle.mustRefreshForWrapping(o), l = t.getBoundingClientRect(), a = r || this.mustMeasureContent || this.contentDOMHeight != l.height;
|
|
8945
8945
|
this.contentDOMHeight = l.height, this.mustMeasureContent = !1;
|
|
8946
8946
|
let c = 0, h = 0;
|
|
@@ -8981,26 +8981,26 @@ class fr {
|
|
|
8981
8981
|
return this.scaler.fromDOM(this.pixelViewport.bottom);
|
|
8982
8982
|
}
|
|
8983
8983
|
getViewport(e, t) {
|
|
8984
|
-
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), s = this.heightMap, o = this.heightOracle, { visibleTop: r, visibleBottom: l } = this, a = new N2(s.lineAt(r - i * 1e3,
|
|
8984
|
+
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), s = this.heightMap, o = this.heightOracle, { visibleTop: r, visibleBottom: l } = this, a = new N2(s.lineAt(r - i * 1e3, ge.ByHeight, o, 0, 0).from, s.lineAt(l + (1 - i) * 1e3, ge.ByHeight, o, 0, 0).to);
|
|
8985
8985
|
if (t) {
|
|
8986
8986
|
let { head: c } = t.range;
|
|
8987
8987
|
if (c < a.from || c > a.to) {
|
|
8988
|
-
let h = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), u = s.lineAt(c,
|
|
8989
|
-
t.y == "center" ? d = (u.top + u.bottom) / 2 - h / 2 : t.y == "start" || t.y == "nearest" && c < a.from ? d = u.top : d = u.bottom - h, a = new N2(s.lineAt(d - 1e3 / 2,
|
|
8988
|
+
let h = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), u = s.lineAt(c, ge.ByPos, o, 0, 0), d;
|
|
8989
|
+
t.y == "center" ? d = (u.top + u.bottom) / 2 - h / 2 : t.y == "start" || t.y == "nearest" && c < a.from ? d = u.top : d = u.bottom - h, a = new N2(s.lineAt(d - 1e3 / 2, ge.ByHeight, o, 0, 0).from, s.lineAt(d + h + 1e3 / 2, ge.ByHeight, o, 0, 0).to);
|
|
8990
8990
|
}
|
|
8991
8991
|
}
|
|
8992
8992
|
return a;
|
|
8993
8993
|
}
|
|
8994
8994
|
mapViewport(e, t) {
|
|
8995
8995
|
let i = t.mapPos(e.from, -1), s = t.mapPos(e.to, 1);
|
|
8996
|
-
return new N2(this.heightMap.lineAt(i,
|
|
8996
|
+
return new N2(this.heightMap.lineAt(i, ge.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(s, ge.ByPos, this.heightOracle, 0, 0).to);
|
|
8997
8997
|
}
|
|
8998
8998
|
// Checks if a given viewport covers the visible part of the
|
|
8999
8999
|
// document and not too much beyond that.
|
|
9000
9000
|
viewportIsAppropriate({ from: e, to: t }, i = 0) {
|
|
9001
9001
|
if (!this.inView)
|
|
9002
9002
|
return !0;
|
|
9003
|
-
let { top: s } = this.heightMap.lineAt(e,
|
|
9003
|
+
let { top: s } = this.heightMap.lineAt(e, ge.ByPos, this.heightOracle, 0, 0), { bottom: o } = this.heightMap.lineAt(t, ge.ByPos, this.heightOracle, 0, 0), { visibleTop: r, visibleBottom: l } = this;
|
|
9004
9004
|
return (e == 0 || s <= r - Math.max(10, Math.min(
|
|
9005
9005
|
-i,
|
|
9006
9006
|
250
|
|
@@ -9028,7 +9028,7 @@ class fr {
|
|
|
9028
9028
|
// the artifacts this might produce from the user.
|
|
9029
9029
|
ensureLineGaps(e, t) {
|
|
9030
9030
|
let i = this.heightOracle.lineWrapping, s = i ? 1e4 : 2e3, o = s >> 1, r = s << 1;
|
|
9031
|
-
if (this.defaultTextDirection !=
|
|
9031
|
+
if (this.defaultTextDirection != we.LTR && !i)
|
|
9032
9032
|
return [];
|
|
9033
9033
|
let l = [], a = (h, u, d, f) => {
|
|
9034
9034
|
if (u - h < o)
|
|
@@ -9113,10 +9113,10 @@ class fr {
|
|
|
9113
9113
|
return this.visibleRanges = i, s;
|
|
9114
9114
|
}
|
|
9115
9115
|
lineBlockAt(e) {
|
|
9116
|
-
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || e2(this.heightMap.lineAt(e,
|
|
9116
|
+
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || e2(this.heightMap.lineAt(e, ge.ByPos, this.heightOracle, 0, 0), this.scaler);
|
|
9117
9117
|
}
|
|
9118
9118
|
lineBlockAtHeight(e) {
|
|
9119
|
-
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || e2(this.heightMap.lineAt(this.scaler.fromDOM(e),
|
|
9119
|
+
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || e2(this.heightMap.lineAt(this.scaler.fromDOM(e), ge.ByHeight, this.heightOracle, 0, 0), this.scaler);
|
|
9120
9120
|
}
|
|
9121
9121
|
scrollAnchorAt(e) {
|
|
9122
9122
|
let t = this.lineBlockAtHeight(e + 8);
|
|
@@ -9192,7 +9192,7 @@ class Ys {
|
|
|
9192
9192
|
constructor(e, t, i) {
|
|
9193
9193
|
let s = 0, o = 0, r = 0;
|
|
9194
9194
|
this.viewports = i.map(({ from: l, to: a }) => {
|
|
9195
|
-
let c = t.lineAt(l,
|
|
9195
|
+
let c = t.lineAt(l, ge.ByPos, e, 0, 0).top, h = t.lineAt(a, ge.ByPos, e, 0, 0).bottom;
|
|
9196
9196
|
return s += h - c, { from: l, to: a, top: c, bottom: h, domTop: 0, domBottom: 0 };
|
|
9197
9197
|
}), this.scale = (7e6 - s) / (t.height - s);
|
|
9198
9198
|
for (let l of this.viewports)
|
|
@@ -9968,7 +9968,7 @@ class R {
|
|
|
9968
9968
|
this.observer = new _f(this), this.inputState = new jd(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Yo(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
|
|
9969
9969
|
}
|
|
9970
9970
|
dispatch(...e) {
|
|
9971
|
-
let t = e.length == 1 && e[0] instanceof
|
|
9971
|
+
let t = e.length == 1 && e[0] instanceof ze ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)];
|
|
9972
9972
|
this.dispatchTransactions(t, this);
|
|
9973
9973
|
}
|
|
9974
9974
|
/**
|
|
@@ -10407,7 +10407,7 @@ class R {
|
|
|
10407
10407
|
if (!i || i.left == i.right)
|
|
10408
10408
|
return i;
|
|
10409
10409
|
let s = this.state.doc.lineAt(e), o = this.bidiSpans(s), r = o[Yt.find(o, e - s.from, -1, t)];
|
|
10410
|
-
return Yi(i, r.dir ==
|
|
10410
|
+
return Yi(i, r.dir == we.LTR == t > 0);
|
|
10411
10411
|
}
|
|
10412
10412
|
/**
|
|
10413
10413
|
Return the rectangle around a given character. If `pos` does not
|
|
@@ -10567,7 +10567,7 @@ class R {
|
|
|
10567
10567
|
its parent nodes is scrolled.
|
|
10568
10568
|
*/
|
|
10569
10569
|
static domEventHandlers(e) {
|
|
10570
|
-
return
|
|
10570
|
+
return Te.define(() => ({}), { eventHandlers: e });
|
|
10571
10571
|
}
|
|
10572
10572
|
/**
|
|
10573
10573
|
Create an extension that registers DOM event observers. Contrary
|
|
@@ -10578,7 +10578,7 @@ class R {
|
|
|
10578
10578
|
call `preventDefault`.
|
|
10579
10579
|
*/
|
|
10580
10580
|
static domEventObservers(e) {
|
|
10581
|
-
return
|
|
10581
|
+
return Te.define(() => ({}), { eventObservers: e });
|
|
10582
10582
|
}
|
|
10583
10583
|
/**
|
|
10584
10584
|
Create a theme extension. The first argument can be a
|
|
@@ -10654,7 +10654,7 @@ class Si {
|
|
|
10654
10654
|
static update(e, t) {
|
|
10655
10655
|
if (t.empty && !e.some((o) => o.fresh))
|
|
10656
10656
|
return e;
|
|
10657
|
-
let i = [], s = e.length ? e[e.length - 1].dir :
|
|
10657
|
+
let i = [], s = e.length ? e[e.length - 1].dir : we.LTR;
|
|
10658
10658
|
for (let o = Math.max(0, e.length - 10); o < e.length; o++) {
|
|
10659
10659
|
let r = e[o];
|
|
10660
10660
|
r.dir == s && !t.touchesRange(r.from, r.to) && i.push(new Si(t.mapPos(r.from, 1), t.mapPos(r.to, -1), r.dir, r.isolates, !1, r.order));
|
|
@@ -10817,7 +10817,7 @@ class T2 {
|
|
|
10817
10817
|
}
|
|
10818
10818
|
function Z1(n) {
|
|
10819
10819
|
let e = n.scrollDOM.getBoundingClientRect();
|
|
10820
|
-
return { left: (n.textDirection ==
|
|
10820
|
+
return { left: (n.textDirection == we.LTR ? e.left : e.right - n.scrollDOM.clientWidth * n.scaleX) - n.scrollDOM.scrollLeft * n.scaleX, top: e.top - n.scrollDOM.scrollTop * n.scaleY };
|
|
10821
10821
|
}
|
|
10822
10822
|
function xr(n, e, t, i) {
|
|
10823
10823
|
let s = n.coordsAtPos(e, t * 2);
|
|
@@ -10829,7 +10829,7 @@ function xr(n, e, t, i) {
|
|
|
10829
10829
|
function Vf(n, e, t) {
|
|
10830
10830
|
if (t.to <= n.viewport.from || t.from >= n.viewport.to)
|
|
10831
10831
|
return [];
|
|
10832
|
-
let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection ==
|
|
10832
|
+
let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection == we.LTR, r = n.contentDOM, l = r.getBoundingClientRect(), a = Z1(n), c = r.querySelector(".cm-line"), h = c && window.getComputedStyle(c), u = l.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), d = l.right - (h ? parseInt(h.paddingRight) : 0), f = us(n, i, 1), p = us(n, s, -1), g = f.type == qe.Text ? f : null, m = p.type == qe.Text ? p : null;
|
|
10833
10833
|
if (g && (n.lineWrapping || f.widgetLineBreaks) && (g = xr(n, i, 1, g)), m && (n.lineWrapping || p.widgetLineBreaks) && (m = xr(n, s, -1, m)), g && m && g.from == m.from && g.to == m.to)
|
|
10834
10834
|
return b(y(t.from, t.to, g));
|
|
10835
10835
|
{
|
|
@@ -10847,22 +10847,22 @@ function Vf(n, e, t) {
|
|
|
10847
10847
|
}
|
|
10848
10848
|
function y(x, S, k) {
|
|
10849
10849
|
let T = 1e9, V = -1e9, w = [];
|
|
10850
|
-
function j(Z, ie,
|
|
10851
|
-
let
|
|
10852
|
-
!
|
|
10850
|
+
function j(Z, ie, ye, Se, lt) {
|
|
10851
|
+
let Ae = n.coordsAtPos(Z, Z == k.to ? -2 : 2), M = n.coordsAtPos(ye, ye == k.from ? 2 : -2);
|
|
10852
|
+
!Ae || !M || (T = Math.min(Ae.top, M.top, T), V = Math.max(Ae.bottom, M.bottom, V), lt == we.LTR ? w.push(o && ie ? u : Ae.left, o && Se ? d : M.right) : w.push(!o && Se ? u : M.left, !o && ie ? d : Ae.right));
|
|
10853
10853
|
}
|
|
10854
10854
|
let N = x ?? k.from, J = S ?? k.to;
|
|
10855
10855
|
for (let Z of n.visibleRanges)
|
|
10856
10856
|
if (Z.to > N && Z.from < J)
|
|
10857
|
-
for (let ie = Math.max(Z.from, N),
|
|
10858
|
-
let
|
|
10859
|
-
for (let lt of n.bidiSpans(
|
|
10860
|
-
let
|
|
10861
|
-
if (
|
|
10857
|
+
for (let ie = Math.max(Z.from, N), ye = Math.min(Z.to, J); ; ) {
|
|
10858
|
+
let Se = n.state.doc.lineAt(ie);
|
|
10859
|
+
for (let lt of n.bidiSpans(Se)) {
|
|
10860
|
+
let Ae = lt.from + Se.from, M = lt.to + Se.from;
|
|
10861
|
+
if (Ae >= ye)
|
|
10862
10862
|
break;
|
|
10863
|
-
M > ie && j(Math.max(
|
|
10863
|
+
M > ie && j(Math.max(Ae, ie), x == null && Ae <= N, Math.min(M, ye), S == null && M >= J, lt.dir);
|
|
10864
10864
|
}
|
|
10865
|
-
if (ie =
|
|
10865
|
+
if (ie = Se.to + 1, ie >= ye)
|
|
10866
10866
|
break;
|
|
10867
10867
|
}
|
|
10868
10868
|
return w.length == 0 && j(N, x == null, J, S == null, n.textDirection), { top: T, bottom: V, horizontal: w };
|
|
@@ -10917,7 +10917,7 @@ class Bf {
|
|
|
10917
10917
|
const hi = /* @__PURE__ */ I.define();
|
|
10918
10918
|
function e3(n) {
|
|
10919
10919
|
return [
|
|
10920
|
-
|
|
10920
|
+
Te.define((e) => new Bf(e, n)),
|
|
10921
10921
|
hi.of(n)
|
|
10922
10922
|
];
|
|
10923
10923
|
}
|
|
@@ -10998,14 +10998,14 @@ const If = /* @__PURE__ */ e3({
|
|
|
10998
10998
|
map(n, e) {
|
|
10999
10999
|
return n == null ? null : e.mapPos(n);
|
|
11000
11000
|
}
|
|
11001
|
-
}), t2 = /* @__PURE__ */
|
|
11001
|
+
}), t2 = /* @__PURE__ */ We.define({
|
|
11002
11002
|
create() {
|
|
11003
11003
|
return null;
|
|
11004
11004
|
},
|
|
11005
11005
|
update(n, e) {
|
|
11006
11006
|
return n != null && (n = e.changes.mapPos(n)), e.effects.reduce((t, i) => i.is(i3) ? i.value : t, n);
|
|
11007
11007
|
}
|
|
11008
|
-
}), Nf = /* @__PURE__ */
|
|
11008
|
+
}), Nf = /* @__PURE__ */ Te.fromClass(class {
|
|
11009
11009
|
constructor(n) {
|
|
11010
11010
|
this.view = n, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) };
|
|
11011
11011
|
}
|
|
@@ -11192,7 +11192,7 @@ function qf(n = {}) {
|
|
|
11192
11192
|
}
|
|
11193
11193
|
let _r = null;
|
|
11194
11194
|
function Yf() {
|
|
11195
|
-
return _r || (_r =
|
|
11195
|
+
return _r || (_r = Te.fromClass(class {
|
|
11196
11196
|
constructor(n) {
|
|
11197
11197
|
this.view = n, this.decorations = q.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(ci)), this.decorations = this.decorator.createDeco(n);
|
|
11198
11198
|
}
|
|
@@ -11260,7 +11260,7 @@ class Jf extends n0 {
|
|
|
11260
11260
|
function Zf() {
|
|
11261
11261
|
return t5;
|
|
11262
11262
|
}
|
|
11263
|
-
const e5 = /* @__PURE__ */ q.line({ class: "cm-activeLine" }), t5 = /* @__PURE__ */
|
|
11263
|
+
const e5 = /* @__PURE__ */ q.line({ class: "cm-activeLine" }), t5 = /* @__PURE__ */ Te.fromClass(class {
|
|
11264
11264
|
constructor(n) {
|
|
11265
11265
|
this.decorations = this.getDeco(n);
|
|
11266
11266
|
}
|
|
@@ -11337,7 +11337,7 @@ const r5 = {
|
|
|
11337
11337
|
Meta: [91, (n) => !!n.metaKey]
|
|
11338
11338
|
}, l5 = { style: "cursor: crosshair" };
|
|
11339
11339
|
function a5(n = {}) {
|
|
11340
|
-
let [e, t] = r5[n.key || "Alt"], i =
|
|
11340
|
+
let [e, t] = r5[n.key || "Alt"], i = Te.fromClass(class {
|
|
11341
11341
|
constructor(s) {
|
|
11342
11342
|
this.view = s, this.isDown = !1;
|
|
11343
11343
|
}
|
|
@@ -11414,7 +11414,7 @@ const vn = /* @__PURE__ */ I.define({
|
|
|
11414
11414
|
tooltipSpace: ((i = n.find((s) => s.tooltipSpace)) === null || i === void 0 ? void 0 : i.tooltipSpace) || h5
|
|
11415
11415
|
};
|
|
11416
11416
|
}
|
|
11417
|
-
}), Cr = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */
|
|
11417
|
+
}), Cr = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ Te.fromClass(class {
|
|
11418
11418
|
constructor(n) {
|
|
11419
11419
|
this.view = n, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
|
|
11420
11420
|
let e = n.state.facet(vn);
|
|
@@ -11524,7 +11524,7 @@ const vn = /* @__PURE__ */ I.define({
|
|
|
11524
11524
|
h.style.top = Y0;
|
|
11525
11525
|
continue;
|
|
11526
11526
|
}
|
|
11527
|
-
let f = a.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = d.right - d.left, m = (e = Cr.get(c)) !== null && e !== void 0 ? e : d.bottom - d.top, v = c.offset || u5, b = this.view.textDirection ==
|
|
11527
|
+
let f = a.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = d.right - d.left, m = (e = Cr.get(c)) !== null && e !== void 0 ? e : d.bottom - d.top, v = c.offset || u5, b = this.view.textDirection == we.LTR, y = d.width > i.right - i.left ? b ? i.left : i.right - d.width : b ? Math.max(i.left, Math.min(u.left - (f ? 14 : 0) + v.x, i.right - g)) : Math.min(Math.max(i.left, u.left - g + (f ? 14 : 0) - v.x), i.right - g), _ = this.above[l];
|
|
11528
11528
|
!a.strictSide && (_ ? u.top - m - p - v.y < i.top : u.bottom + m + p + v.y > i.bottom) && _ == i.bottom - u.bottom > u.top - i.top && (_ = this.above[l] = !_);
|
|
11529
11529
|
let x = (_ ? u.top - i.top : i.bottom - u.bottom) - p;
|
|
11530
11530
|
if (x < m && c.resize !== !1) {
|
|
@@ -11725,7 +11725,7 @@ class f5 {
|
|
|
11725
11725
|
let l = e.coordsAtPos(s);
|
|
11726
11726
|
if (!l || t.y < l.top || t.y > l.bottom || t.x < l.left - e.defaultCharacterWidth || t.x > l.right + e.defaultCharacterWidth)
|
|
11727
11727
|
return;
|
|
11728
|
-
let a = e.bidiSpans(e.state.doc.lineAt(s)).find((h) => h.from <= s && h.to >= s), c = a && a.dir ==
|
|
11728
|
+
let a = e.bidiSpans(e.state.doc.lineAt(s)).find((h) => h.from <= s && h.to >= s), c = a && a.dir == we.RTL ? -1 : 1;
|
|
11729
11729
|
o = t.x < l.left ? -c : c;
|
|
11730
11730
|
}
|
|
11731
11731
|
let r = this.source(e, s, o);
|
|
@@ -11784,7 +11784,7 @@ function g5(n, e, t, i, s, o) {
|
|
|
11784
11784
|
return a >= e && a <= t;
|
|
11785
11785
|
}
|
|
11786
11786
|
function m5(n, e = {}) {
|
|
11787
|
-
let t = Q.define(), i =
|
|
11787
|
+
let t = Q.define(), i = We.define({
|
|
11788
11788
|
create() {
|
|
11789
11789
|
return [];
|
|
11790
11790
|
},
|
|
@@ -11810,7 +11810,7 @@ function m5(n, e = {}) {
|
|
|
11810
11810
|
active: i,
|
|
11811
11811
|
extension: [
|
|
11812
11812
|
i,
|
|
11813
|
-
|
|
11813
|
+
Te.define((s) => new f5(
|
|
11814
11814
|
s,
|
|
11815
11815
|
n,
|
|
11816
11816
|
i,
|
|
@@ -11841,7 +11841,7 @@ function v2(n, e) {
|
|
|
11841
11841
|
let t = n.plugin(o3), i = t ? t.specs.indexOf(e) : -1;
|
|
11842
11842
|
return i > -1 ? t.panels[i] : null;
|
|
11843
11843
|
}
|
|
11844
|
-
const o3 = /* @__PURE__ */
|
|
11844
|
+
const o3 = /* @__PURE__ */ Te.fromClass(class {
|
|
11845
11845
|
constructor(n) {
|
|
11846
11846
|
this.input = n.state.facet(w2), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(n));
|
|
11847
11847
|
let e = n.state.facet(Mr);
|
|
@@ -11973,7 +11973,7 @@ function r3(n) {
|
|
|
11973
11973
|
y5
|
|
11974
11974
|
];
|
|
11975
11975
|
}
|
|
11976
|
-
const y5 = /* @__PURE__ */
|
|
11976
|
+
const y5 = /* @__PURE__ */ Te.fromClass(class {
|
|
11977
11977
|
constructor(n) {
|
|
11978
11978
|
this.view = n, this.domAfter = null, this.prevViewport = n.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters cm-gutters-before", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = n.state.facet(r2).map((e) => new Pr(n, e)), this.fixed = !n.state.facet(Tr);
|
|
11979
11979
|
for (let e of this.gutters)
|
|
@@ -12052,7 +12052,7 @@ const y5 = /* @__PURE__ */ De.fromClass(class {
|
|
|
12052
12052
|
if (!t || t.gutters.length == 0 || !t.fixed)
|
|
12053
12053
|
return null;
|
|
12054
12054
|
let i = t.dom.offsetWidth * e.scaleX, s = t.domAfter ? t.domAfter.offsetWidth * e.scaleX : 0;
|
|
12055
|
-
return e.textDirection ==
|
|
12055
|
+
return e.textDirection == we.LTR ? { left: i, right: s } : { right: i, left: s };
|
|
12056
12056
|
})
|
|
12057
12057
|
});
|
|
12058
12058
|
function Ar(n) {
|
|
@@ -12445,11 +12445,11 @@ class Js {
|
|
|
12445
12445
|
}
|
|
12446
12446
|
}
|
|
12447
12447
|
const q2 = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap();
|
|
12448
|
-
var
|
|
12448
|
+
var Ve;
|
|
12449
12449
|
(function(n) {
|
|
12450
12450
|
n[n.ExcludeBuffers = 1] = "ExcludeBuffers", n[n.IncludeAnonymous = 2] = "IncludeAnonymous", n[n.IgnoreMounts = 4] = "IgnoreMounts", n[n.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
12451
|
-
})(
|
|
12452
|
-
class
|
|
12451
|
+
})(Ve || (Ve = {}));
|
|
12452
|
+
class De {
|
|
12453
12453
|
/**
|
|
12454
12454
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
12455
12455
|
*/
|
|
@@ -12542,8 +12542,8 @@ class Me {
|
|
|
12542
12542
|
not have its children iterated over (or `leave` called).
|
|
12543
12543
|
*/
|
|
12544
12544
|
iterate(e) {
|
|
12545
|
-
let { enter: t, leave: i, from: s = 0, to: o = this.length } = e, r = e.mode || 0, l = (r &
|
|
12546
|
-
for (let a = this.cursor(r |
|
|
12545
|
+
let { enter: t, leave: i, from: s = 0, to: o = this.length } = e, r = e.mode || 0, l = (r & Ve.IncludeAnonymous) > 0;
|
|
12546
|
+
for (let a = this.cursor(r | Ve.IncludeAnonymous); ; ) {
|
|
12547
12547
|
let c = !1;
|
|
12548
12548
|
if (a.from <= o && a.to >= s && (!l && a.type.isAnonymous || t(a) !== !1)) {
|
|
12549
12549
|
if (a.firstChild())
|
|
@@ -12582,7 +12582,7 @@ class Me {
|
|
|
12582
12582
|
[`NodeType.none`](#common.NodeType^none).
|
|
12583
12583
|
*/
|
|
12584
12584
|
balance(e = {}) {
|
|
12585
|
-
return this.children.length <= 8 ? this : to(tt.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, i, s) => new
|
|
12585
|
+
return this.children.length <= 8 ? this : to(tt.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, i, s) => new De(this.type, t, i, s, this.propValues), e.makeTree || ((t, i, s) => new De(tt.none, t, i, s)));
|
|
12586
12586
|
}
|
|
12587
12587
|
/**
|
|
12588
12588
|
Build a tree from a postfix-ordered buffer of node information,
|
|
@@ -12592,7 +12592,7 @@ class Me {
|
|
|
12592
12592
|
return L5(e);
|
|
12593
12593
|
}
|
|
12594
12594
|
}
|
|
12595
|
-
|
|
12595
|
+
De.empty = new De(tt.none, [], [], 0);
|
|
12596
12596
|
class Zs {
|
|
12597
12597
|
constructor(e, t) {
|
|
12598
12598
|
this.buffer = e, this.index = t;
|
|
@@ -12698,7 +12698,7 @@ function b2(n, e, t, i) {
|
|
|
12698
12698
|
return n;
|
|
12699
12699
|
n = r;
|
|
12700
12700
|
}
|
|
12701
|
-
let o = i ? 0 :
|
|
12701
|
+
let o = i ? 0 : Ve.IgnoreOverlays;
|
|
12702
12702
|
if (i)
|
|
12703
12703
|
for (let r = n, l = r.parent; l; r = l, l = r.parent)
|
|
12704
12704
|
r instanceof dt && r.index < 0 && ((s = l.enter(e, t, o)) === null || s === void 0 ? void 0 : s.from) != r.from && (n = l);
|
|
@@ -12765,21 +12765,21 @@ class dt extends c3 {
|
|
|
12765
12765
|
let h = l[e], u = a[e] + r.from;
|
|
12766
12766
|
if (h3(s, i, u, u + h.length)) {
|
|
12767
12767
|
if (h instanceof t0) {
|
|
12768
|
-
if (o &
|
|
12768
|
+
if (o & Ve.ExcludeBuffers)
|
|
12769
12769
|
continue;
|
|
12770
12770
|
let d = h.findChild(0, h.buffer.length, t, i - u, s);
|
|
12771
12771
|
if (d > -1)
|
|
12772
12772
|
return new Kt(new V5(r, h, e, u), null, d);
|
|
12773
|
-
} else if (o &
|
|
12773
|
+
} else if (o & Ve.IncludeAnonymous || !h.type.isAnonymous || eo(h)) {
|
|
12774
12774
|
let d;
|
|
12775
|
-
if (!(o &
|
|
12775
|
+
if (!(o & Ve.IgnoreMounts) && (d = ki.get(h)) && !d.overlay)
|
|
12776
12776
|
return new dt(d.tree, u, e, r);
|
|
12777
12777
|
let f = new dt(h, u, e, r);
|
|
12778
|
-
return o &
|
|
12778
|
+
return o & Ve.IncludeAnonymous || !f.type.isAnonymous ? f : f.nextChild(t < 0 ? h.children.length - 1 : 0, t, i, s);
|
|
12779
12779
|
}
|
|
12780
12780
|
}
|
|
12781
12781
|
}
|
|
12782
|
-
if (o &
|
|
12782
|
+
if (o & Ve.IncludeAnonymous || !r.type.isAnonymous || (r.index >= 0 ? e = r.index + t : e = t < 0 ? -1 : r._parent._tree.children.length, r = r._parent, !r))
|
|
12783
12783
|
return null;
|
|
12784
12784
|
}
|
|
12785
12785
|
}
|
|
@@ -12821,7 +12821,7 @@ class dt extends c3 {
|
|
|
12821
12821
|
}
|
|
12822
12822
|
enter(e, t, i = 0) {
|
|
12823
12823
|
let s;
|
|
12824
|
-
if (!(i &
|
|
12824
|
+
if (!(i & Ve.IgnoreOverlays) && (s = ki.get(this._tree)) && s.overlay) {
|
|
12825
12825
|
let o = e - this.from;
|
|
12826
12826
|
for (let { from: r, to: l } of s.overlay)
|
|
12827
12827
|
if ((t > 0 ? r <= o : r < o) && (t < 0 ? l >= o : l > o))
|
|
@@ -12952,7 +12952,7 @@ class Kt extends c3 {
|
|
|
12952
12952
|
);
|
|
12953
12953
|
}
|
|
12954
12954
|
enter(e, t, i = 0) {
|
|
12955
|
-
if (i &
|
|
12955
|
+
if (i & Ve.ExcludeBuffers)
|
|
12956
12956
|
return null;
|
|
12957
12957
|
let { buffer: s } = this.context, o = s.findChild(this.index + 4, s.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
12958
12958
|
return o < 0 ? null : new Kt(this.context, this, o);
|
|
@@ -12993,7 +12993,7 @@ class Kt extends c3 {
|
|
|
12993
12993
|
let r = i.buffer[this.index + 1];
|
|
12994
12994
|
e.push(i.slice(s, o, r)), t.push(0);
|
|
12995
12995
|
}
|
|
12996
|
-
return new
|
|
12996
|
+
return new De(this.type, e, t, this.to - this.from);
|
|
12997
12997
|
}
|
|
12998
12998
|
/**
|
|
12999
12999
|
@internal
|
|
@@ -13138,17 +13138,17 @@ class ys {
|
|
|
13138
13138
|
set to false.
|
|
13139
13139
|
*/
|
|
13140
13140
|
enter(e, t, i = this.mode) {
|
|
13141
|
-
return this.buffer ? i &
|
|
13141
|
+
return this.buffer ? i & Ve.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, i));
|
|
13142
13142
|
}
|
|
13143
13143
|
/**
|
|
13144
13144
|
Move to the node's parent node, if this isn't the top node.
|
|
13145
13145
|
*/
|
|
13146
13146
|
parent() {
|
|
13147
13147
|
if (!this.buffer)
|
|
13148
|
-
return this.yieldNode(this.mode &
|
|
13148
|
+
return this.yieldNode(this.mode & Ve.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
13149
13149
|
if (this.stack.length)
|
|
13150
13150
|
return this.yieldBuf(this.stack.pop());
|
|
13151
|
-
let e = this.mode &
|
|
13151
|
+
let e = this.mode & Ve.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
13152
13152
|
return this.buffer = null, this.yieldNode(e);
|
|
13153
13153
|
}
|
|
13154
13154
|
/**
|
|
@@ -13205,7 +13205,7 @@ class ys {
|
|
|
13205
13205
|
if (t > -1)
|
|
13206
13206
|
for (let o = t + e, r = e < 0 ? -1 : i._tree.children.length; o != r; o += e) {
|
|
13207
13207
|
let l = i._tree.children[o];
|
|
13208
|
-
if (this.mode &
|
|
13208
|
+
if (this.mode & Ve.IncludeAnonymous || l instanceof t0 || !l.type.isAnonymous || eo(l))
|
|
13209
13209
|
return !1;
|
|
13210
13210
|
}
|
|
13211
13211
|
return !0;
|
|
@@ -13341,7 +13341,7 @@ function L5(n) {
|
|
|
13341
13341
|
var e;
|
|
13342
13342
|
let { buffer: t, nodeSet: i, maxBufferLength: s = a3, reused: o = [], minRepeatType: r = i.types.length } = n, l = Array.isArray(t) ? new Zs(t, t.length) : t, a = i.types, c = 0, h = 0;
|
|
13343
13343
|
function u(x, S, k, T, V, w) {
|
|
13344
|
-
let { id: j, start: N, end: J, size: Z } = l, ie = h,
|
|
13344
|
+
let { id: j, start: N, end: J, size: Z } = l, ie = h, ye = c;
|
|
13345
13345
|
for (; Z < 0; )
|
|
13346
13346
|
if (l.next(), Z == -1) {
|
|
13347
13347
|
let H = o[j];
|
|
@@ -13355,23 +13355,23 @@ function L5(n) {
|
|
|
13355
13355
|
return;
|
|
13356
13356
|
} else
|
|
13357
13357
|
throw new RangeError(`Unrecognized record size: ${Z}`);
|
|
13358
|
-
let
|
|
13359
|
-
if (J - N <= s && (
|
|
13360
|
-
let H = new Uint16Array(
|
|
13358
|
+
let Se = a[j], lt, Ae, M = N - x;
|
|
13359
|
+
if (J - N <= s && (Ae = m(l.pos - S, V))) {
|
|
13360
|
+
let H = new Uint16Array(Ae.size - Ae.skip), z = l.pos - Ae.size, Y = H.length;
|
|
13361
13361
|
for (; l.pos > z; )
|
|
13362
|
-
Y = v(
|
|
13363
|
-
lt = new t0(H, J -
|
|
13362
|
+
Y = v(Ae.start, H, Y);
|
|
13363
|
+
lt = new t0(H, J - Ae.start, i), M = Ae.start - x;
|
|
13364
13364
|
} else {
|
|
13365
13365
|
let H = l.pos - Z;
|
|
13366
13366
|
l.next();
|
|
13367
|
-
let z = [], Y = [], U = j >= r ? j : -1,
|
|
13367
|
+
let z = [], Y = [], U = j >= r ? j : -1, fe = 0, A = J;
|
|
13368
13368
|
for (; l.pos > H; )
|
|
13369
|
-
U >= 0 && l.id == U && l.size >= 0 ? (l.end <= A - s && (p(z, Y, N,
|
|
13370
|
-
if (U >= 0 &&
|
|
13371
|
-
let
|
|
13372
|
-
lt = to(
|
|
13369
|
+
U >= 0 && l.id == U && l.size >= 0 ? (l.end <= A - s && (p(z, Y, N, fe, l.end, A, U, ie, ye), fe = z.length, A = l.end), l.next()) : w > 2500 ? d(N, H, z, Y) : u(N, H, z, Y, U, w + 1);
|
|
13370
|
+
if (U >= 0 && fe > 0 && fe < z.length && p(z, Y, N, fe, N, A, U, ie, ye), z.reverse(), Y.reverse(), U > -1 && fe > 0) {
|
|
13371
|
+
let be = f(Se, ye);
|
|
13372
|
+
lt = to(Se, z, Y, 0, z.length, 0, J - N, be, be);
|
|
13373
13373
|
} else
|
|
13374
|
-
lt = g(
|
|
13374
|
+
lt = g(Se, z, Y, J - N, ie - J, ye);
|
|
13375
13375
|
}
|
|
13376
13376
|
k.push(lt), T.push(M);
|
|
13377
13377
|
}
|
|
@@ -13397,7 +13397,7 @@ function L5(n) {
|
|
|
13397
13397
|
function f(x, S) {
|
|
13398
13398
|
return (k, T, V) => {
|
|
13399
13399
|
let w = 0, j = k.length - 1, N, J;
|
|
13400
|
-
if (j >= 0 && (N = k[j]) instanceof
|
|
13400
|
+
if (j >= 0 && (N = k[j]) instanceof De) {
|
|
13401
13401
|
if (!j && N.type == x && N.length == V)
|
|
13402
13402
|
return N;
|
|
13403
13403
|
(J = N.prop(te.lookAhead)) && (w = T[j] + N.length + J);
|
|
@@ -13420,7 +13420,7 @@ function L5(n) {
|
|
|
13420
13420
|
let N = [te.lookAhead, V];
|
|
13421
13421
|
j = j ? [N].concat(j) : [N];
|
|
13422
13422
|
}
|
|
13423
|
-
return new
|
|
13423
|
+
return new De(x, S, k, T, j);
|
|
13424
13424
|
}
|
|
13425
13425
|
function m(x, S) {
|
|
13426
13426
|
let k = l.fork(), T = 0, V = 0, w = 0, j = k.end - s, N = { size: 0, start: 0, skip: 0 };
|
|
@@ -13433,17 +13433,17 @@ function L5(n) {
|
|
|
13433
13433
|
let ie = k.pos - Z;
|
|
13434
13434
|
if (Z < 0 || ie < J || k.start < j)
|
|
13435
13435
|
break;
|
|
13436
|
-
let
|
|
13436
|
+
let ye = k.id >= r ? 4 : 0, Se = k.start;
|
|
13437
13437
|
for (k.next(); k.pos > ie; ) {
|
|
13438
13438
|
if (k.size < 0)
|
|
13439
13439
|
if (k.size == -3)
|
|
13440
|
-
|
|
13440
|
+
ye += 4;
|
|
13441
13441
|
else
|
|
13442
13442
|
break e;
|
|
13443
|
-
else k.id >= r && (
|
|
13443
|
+
else k.id >= r && (ye += 4);
|
|
13444
13444
|
k.next();
|
|
13445
13445
|
}
|
|
13446
|
-
V =
|
|
13446
|
+
V = Se, T += Z, w += ye;
|
|
13447
13447
|
}
|
|
13448
13448
|
return (S < 0 || T == x) && (N.size = T, N.start = V, N.skip = w), N.size > 4 ? N : void 0;
|
|
13449
13449
|
}
|
|
@@ -13464,7 +13464,7 @@ function L5(n) {
|
|
|
13464
13464
|
for (; l.pos > 0; )
|
|
13465
13465
|
u(n.start || 0, n.bufferStart || 0, b, y, -1, 0);
|
|
13466
13466
|
let _ = (e = n.length) !== null && e !== void 0 ? e : b.length ? y[0] + b[0].length : 0;
|
|
13467
|
-
return new
|
|
13467
|
+
return new De(a[n.topID], b.reverse(), y.reverse(), _);
|
|
13468
13468
|
}
|
|
13469
13469
|
const Br = /* @__PURE__ */ new WeakMap();
|
|
13470
13470
|
function di(n, e) {
|
|
@@ -13474,7 +13474,7 @@ function di(n, e) {
|
|
|
13474
13474
|
if (t == null) {
|
|
13475
13475
|
t = 1;
|
|
13476
13476
|
for (let i of e.children) {
|
|
13477
|
-
if (i.type != n || !(i instanceof
|
|
13477
|
+
if (i.type != n || !(i instanceof De)) {
|
|
13478
13478
|
t = 1;
|
|
13479
13479
|
break;
|
|
13480
13480
|
}
|
|
@@ -14265,7 +14265,7 @@ class mt {
|
|
|
14265
14265
|
*/
|
|
14266
14266
|
constructor(e, t, i = [], s = "") {
|
|
14267
14267
|
this.data = e, this.name = s, ne.prototype.hasOwnProperty("tree") || Object.defineProperty(ne.prototype, "tree", { get() {
|
|
14268
|
-
return
|
|
14268
|
+
return Le(this);
|
|
14269
14269
|
} }), this.parser = t, this.extension = [
|
|
14270
14270
|
i0.of(this),
|
|
14271
14271
|
ne.languageData.of((o, r, l) => {
|
|
@@ -14324,10 +14324,10 @@ class mt {
|
|
|
14324
14324
|
}
|
|
14325
14325
|
for (let a = 0; a < o.children.length; a++) {
|
|
14326
14326
|
let c = o.children[a];
|
|
14327
|
-
c instanceof
|
|
14327
|
+
c instanceof De && s(c, o.positions[a] + r);
|
|
14328
14328
|
}
|
|
14329
14329
|
};
|
|
14330
|
-
return s(
|
|
14330
|
+
return s(Le(e), 0), i;
|
|
14331
14331
|
}
|
|
14332
14332
|
/**
|
|
14333
14333
|
Indicates whether this language allows nested languages. The
|
|
@@ -14339,9 +14339,9 @@ class mt {
|
|
|
14339
14339
|
}
|
|
14340
14340
|
mt.setState = /* @__PURE__ */ Q.define();
|
|
14341
14341
|
function Ir(n, e, t) {
|
|
14342
|
-
let i = n.facet(i0), s =
|
|
14342
|
+
let i = n.facet(i0), s = Le(n).topNode;
|
|
14343
14343
|
if (!i || i.allowsNesting)
|
|
14344
|
-
for (let o = s; o; o = o.enter(e, t,
|
|
14344
|
+
for (let o = s; o; o = o.enter(e, t, Ve.ExcludeBuffers))
|
|
14345
14345
|
o.type.isTop && (s = o);
|
|
14346
14346
|
return s;
|
|
14347
14347
|
}
|
|
@@ -14369,9 +14369,9 @@ class Mi extends mt {
|
|
|
14369
14369
|
return this.parser.hasWrappers();
|
|
14370
14370
|
}
|
|
14371
14371
|
}
|
|
14372
|
-
function
|
|
14372
|
+
function Le(n) {
|
|
14373
14373
|
let e = n.field(mt.state, !1);
|
|
14374
|
-
return e ? e.tree :
|
|
14374
|
+
return e ? e.tree : De.empty;
|
|
14375
14375
|
}
|
|
14376
14376
|
class Y5 {
|
|
14377
14377
|
/**
|
|
@@ -14406,7 +14406,7 @@ class Di {
|
|
|
14406
14406
|
@internal
|
|
14407
14407
|
*/
|
|
14408
14408
|
static create(e, t, i) {
|
|
14409
|
-
return new Di(e, t, [],
|
|
14409
|
+
return new Di(e, t, [], De.empty, 0, i, [], null);
|
|
14410
14410
|
}
|
|
14411
14411
|
startParse() {
|
|
14412
14412
|
return this.parser.startParse(new Y5(this.state.doc), this.fragments);
|
|
@@ -14415,7 +14415,7 @@ class Di {
|
|
|
14415
14415
|
@internal
|
|
14416
14416
|
*/
|
|
14417
14417
|
work(e, t) {
|
|
14418
|
-
return t != null && t >= this.state.doc.length && (t = void 0), this.tree !=
|
|
14418
|
+
return t != null && t >= this.state.doc.length && (t = void 0), this.tree != De.empty && this.isDone(t ?? this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => {
|
|
14419
14419
|
var i;
|
|
14420
14420
|
if (typeof e == "number") {
|
|
14421
14421
|
let s = Date.now() + e;
|
|
@@ -14464,7 +14464,7 @@ class Di {
|
|
|
14464
14464
|
let { fragments: i, tree: s, treeLen: o, viewport: r, skipped: l } = this;
|
|
14465
14465
|
if (this.takeTree(), !e.empty) {
|
|
14466
14466
|
let a = [];
|
|
14467
|
-
if (e.iterChangedRanges((c, h, u, d) => a.push({ fromA: c, toA: h, fromB: u, toB: d })), i = d0.applyChanges(i, a), s =
|
|
14467
|
+
if (e.iterChangedRanges((c, h, u, d) => a.push({ fromA: c, toA: h, fromB: u, toB: d })), i = d0.applyChanges(i, a), s = De.empty, o = 0, r = { from: e.mapPos(r.from, -1), to: e.mapPos(r.to, 1) }, this.skipped.length) {
|
|
14468
14468
|
l = [];
|
|
14469
14469
|
for (let c of this.skipped) {
|
|
14470
14470
|
let h = e.mapPos(c.from, 1), u = e.mapPos(c.to, -1);
|
|
@@ -14524,7 +14524,7 @@ class Di {
|
|
|
14524
14524
|
a.tempSkipped.push(c);
|
|
14525
14525
|
e && (a.scheduleOn = a.scheduleOn ? Promise.all([a.scheduleOn, e]) : e);
|
|
14526
14526
|
}
|
|
14527
|
-
return this.parsedPos = r, new
|
|
14527
|
+
return this.parsedPos = r, new De(tt.none, [], [], r - o);
|
|
14528
14528
|
},
|
|
14529
14529
|
stoppedAt: null,
|
|
14530
14530
|
stopAt() {
|
|
@@ -14567,7 +14567,7 @@ class N0 {
|
|
|
14567
14567
|
return i.work(20, t) || i.takeTree(), new N0(i);
|
|
14568
14568
|
}
|
|
14569
14569
|
}
|
|
14570
|
-
mt.state = /* @__PURE__ */
|
|
14570
|
+
mt.state = /* @__PURE__ */ We.define({
|
|
14571
14571
|
create: N0.init,
|
|
14572
14572
|
update(n, e) {
|
|
14573
14573
|
for (let t of e.effects)
|
|
@@ -14597,7 +14597,7 @@ typeof requestIdleCallback < "u" && (m3 = (n) => {
|
|
|
14597
14597
|
);
|
|
14598
14598
|
return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
|
|
14599
14599
|
});
|
|
14600
|
-
const _n = typeof navigator < "u" && (!((Sn = navigator.scheduling) === null || Sn === void 0) && Sn.isInputPending) ? () => navigator.scheduling.isInputPending() : null, K5 = /* @__PURE__ */
|
|
14600
|
+
const _n = typeof navigator < "u" && (!((Sn = navigator.scheduling) === null || Sn === void 0) && Sn.isInputPending) ? () => navigator.scheduling.isInputPending() : null, K5 = /* @__PURE__ */ Te.fromClass(class {
|
|
14601
14601
|
constructor(e) {
|
|
14602
14602
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
14603
14603
|
}
|
|
@@ -14691,7 +14691,7 @@ function no(n, e) {
|
|
|
14691
14691
|
if (s !== void 0)
|
|
14692
14692
|
return s;
|
|
14693
14693
|
}
|
|
14694
|
-
let t =
|
|
14694
|
+
let t = Le(n.state);
|
|
14695
14695
|
return t.length >= e ? J5(n, t, e) : null;
|
|
14696
14696
|
}
|
|
14697
14697
|
class Ji {
|
|
@@ -14912,7 +14912,7 @@ function r7() {
|
|
|
14912
14912
|
}
|
|
14913
14913
|
const l7 = /* @__PURE__ */ I.define(), b3 = /* @__PURE__ */ new te();
|
|
14914
14914
|
function a7(n, e, t) {
|
|
14915
|
-
let i =
|
|
14915
|
+
let i = Le(n);
|
|
14916
14916
|
if (i.length < t)
|
|
14917
14917
|
return null;
|
|
14918
14918
|
let s = i.resolveStack(t, 1), o = null;
|
|
@@ -14953,7 +14953,7 @@ function y3(n) {
|
|
|
14953
14953
|
e.some((i) => i.from <= t && i.to >= t) || e.push(n.lineBlockAt(t));
|
|
14954
14954
|
return e;
|
|
14955
14955
|
}
|
|
14956
|
-
const b0 = /* @__PURE__ */
|
|
14956
|
+
const b0 = /* @__PURE__ */ We.define({
|
|
14957
14957
|
create() {
|
|
14958
14958
|
return q.none;
|
|
14959
14959
|
},
|
|
@@ -15117,12 +15117,12 @@ class kn extends Nt {
|
|
|
15117
15117
|
}
|
|
15118
15118
|
}
|
|
15119
15119
|
function b7(n = {}) {
|
|
15120
|
-
let e = { ...w7, ...n }, t = new kn(e, !0), i = new kn(e, !1), s =
|
|
15120
|
+
let e = { ...w7, ...n }, t = new kn(e, !0), i = new kn(e, !1), s = Te.fromClass(class {
|
|
15121
15121
|
constructor(r) {
|
|
15122
15122
|
this.from = r.viewport.from, this.markers = this.buildMarkers(r);
|
|
15123
15123
|
}
|
|
15124
15124
|
update(r) {
|
|
15125
|
-
(r.docChanged || r.viewportChanged || r.startState.facet(i0) != r.state.facet(i0) || r.startState.field(b0, !1) != r.state.field(b0, !1) ||
|
|
15125
|
+
(r.docChanged || r.viewportChanged || r.startState.facet(i0) != r.state.facet(i0) || r.startState.field(b0, !1) != r.state.field(b0, !1) || Le(r.startState) != Le(r.state) || e.foldingChanged(r)) && (this.markers = this.buildMarkers(r.view));
|
|
15126
15126
|
}
|
|
15127
15127
|
buildMarkers(r) {
|
|
15128
15128
|
let l = new It();
|
|
@@ -15225,10 +15225,10 @@ function y7(n, e) {
|
|
|
15225
15225
|
}
|
|
15226
15226
|
class S7 {
|
|
15227
15227
|
constructor(e) {
|
|
15228
|
-
this.markCache = /* @__PURE__ */ Object.create(null), this.tree =
|
|
15228
|
+
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Le(e.state), this.decorations = this.buildDeco(e, Cn(e.state)), this.decoratedTo = e.viewport.to;
|
|
15229
15229
|
}
|
|
15230
15230
|
update(e) {
|
|
15231
|
-
let t =
|
|
15231
|
+
let t = Le(e.state), i = Cn(e.state), s = i != Cn(e.startState), { viewport: o } = e.view, r = e.changes.mapPos(this.decoratedTo, 1);
|
|
15232
15232
|
t.length < o.to && !s && t.type == this.tree.type && r >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = r) : (t != this.tree || e.viewportChanged || s) && (this.tree = t, this.decorations = this.buildDeco(e.view, i), this.decoratedTo = o.to);
|
|
15233
15233
|
}
|
|
15234
15234
|
buildDeco(e, t) {
|
|
@@ -15242,7 +15242,7 @@ class S7 {
|
|
|
15242
15242
|
return i.finish();
|
|
15243
15243
|
}
|
|
15244
15244
|
}
|
|
15245
|
-
const _7 = /* @__PURE__ */ x0.high(/* @__PURE__ */
|
|
15245
|
+
const _7 = /* @__PURE__ */ x0.high(/* @__PURE__ */ Te.fromClass(S7, {
|
|
15246
15246
|
decorations: (n) => n.decorations
|
|
15247
15247
|
})), k7 = /* @__PURE__ */ en.define([
|
|
15248
15248
|
{
|
|
@@ -15339,7 +15339,7 @@ function D7(n) {
|
|
|
15339
15339
|
let e = [], t = n.matched ? O7 : M7;
|
|
15340
15340
|
return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
|
|
15341
15341
|
}
|
|
15342
|
-
const T7 = /* @__PURE__ */
|
|
15342
|
+
const T7 = /* @__PURE__ */ We.define({
|
|
15343
15343
|
create() {
|
|
15344
15344
|
return q.none;
|
|
15345
15345
|
},
|
|
@@ -15380,7 +15380,7 @@ function Cs(n) {
|
|
|
15380
15380
|
return e ? e(n.node) : n;
|
|
15381
15381
|
}
|
|
15382
15382
|
function Dt(n, e, t, i = {}) {
|
|
15383
|
-
let s = i.maxScanDistance || D3, o = i.brackets || T3, r =
|
|
15383
|
+
let s = i.maxScanDistance || D3, o = i.brackets || T3, r = Le(n), l = r.resolveInner(e, t);
|
|
15384
15384
|
for (let a = l; a; a = a.parent) {
|
|
15385
15385
|
let c = ks(a.type, t, o);
|
|
15386
15386
|
if (c && a.from < a.to) {
|
|
@@ -15482,7 +15482,7 @@ function L7(n, e) {
|
|
|
15482
15482
|
});
|
|
15483
15483
|
return Wr.push(r), r.id;
|
|
15484
15484
|
}
|
|
15485
|
-
|
|
15485
|
+
we.RTL, we.LTR;
|
|
15486
15486
|
const R7 = (n) => {
|
|
15487
15487
|
let { state: e } = n, t = e.doc.lineAt(e.selection.main.from), i = ro(n.state, t.from);
|
|
15488
15488
|
return i.line ? I7(n) : i.block ? N7(n) : !1;
|
|
@@ -15611,7 +15611,7 @@ const Os = /* @__PURE__ */ Wt.define(), F7 = /* @__PURE__ */ Wt.define(), j7 = /
|
|
|
15611
15611
|
joinToEvent: (e, t) => (i, s) => e(i, s) || t(i, s)
|
|
15612
15612
|
});
|
|
15613
15613
|
}
|
|
15614
|
-
}), E3 = /* @__PURE__ */
|
|
15614
|
+
}), E3 = /* @__PURE__ */ We.define({
|
|
15615
15615
|
create() {
|
|
15616
15616
|
return Tt.empty;
|
|
15617
15617
|
},
|
|
@@ -15622,9 +15622,9 @@ const Os = /* @__PURE__ */ Wt.define(), F7 = /* @__PURE__ */ Wt.define(), j7 = /
|
|
|
15622
15622
|
return a ? h = zi(h, h.length, t.minDepth, a) : h = R3(h, e.startState.selection), new Tt(c == 0 ? i.rest : h, c == 0 ? h : i.rest);
|
|
15623
15623
|
}
|
|
15624
15624
|
let s = e.annotation(F7);
|
|
15625
|
-
if ((s == "full" || s == "before") && (n = n.isolate()), e.annotation(
|
|
15625
|
+
if ((s == "full" || s == "before") && (n = n.isolate()), e.annotation(ze.addToHistory) === !1)
|
|
15626
15626
|
return e.changes.empty ? n : n.addMapping(e.changes.desc);
|
|
15627
|
-
let o = et.fromTransaction(e), r = e.annotation(
|
|
15627
|
+
let o = et.fromTransaction(e), r = e.annotation(ze.time), l = e.annotation(ze.userEvent);
|
|
15628
15628
|
return o ? n = n.addChanges(o, r, l, t, e) : e.selection && (n = n.addSelection(e.startState.selection, r, l, t.newGroupDelay)), (s == "full" || s == "after") && (n = n.isolate()), n;
|
|
15629
15629
|
},
|
|
15630
15630
|
toJSON(n) {
|
|
@@ -15675,7 +15675,7 @@ class et {
|
|
|
15675
15675
|
};
|
|
15676
15676
|
}
|
|
15677
15677
|
static fromJSON(e) {
|
|
15678
|
-
return new et(e.changes &&
|
|
15678
|
+
return new et(e.changes && Pe.fromJSON(e.changes), [], e.mapped && At.fromJSON(e.mapped), e.startSelection && O.fromJSON(e.startSelection), e.selectionsAfter.map(O.fromJSON));
|
|
15679
15679
|
}
|
|
15680
15680
|
// This does not check `addToHistory` and such, it assumes the
|
|
15681
15681
|
// transaction needs to be converted to an item. Returns null when
|
|
@@ -15815,14 +15815,14 @@ function nn(n, e) {
|
|
|
15815
15815
|
function I3(n, e) {
|
|
15816
15816
|
return xt(n, (t) => t.empty ? n.moveByChar(t, e) : nn(t, e));
|
|
15817
15817
|
}
|
|
15818
|
-
function
|
|
15819
|
-
return n.textDirectionAt(n.state.selection.main.head) ==
|
|
15818
|
+
function je(n) {
|
|
15819
|
+
return n.textDirectionAt(n.state.selection.main.head) == we.LTR;
|
|
15820
15820
|
}
|
|
15821
|
-
const H3 = (n) => I3(n, !
|
|
15821
|
+
const H3 = (n) => I3(n, !je(n)), N3 = (n) => I3(n, je(n));
|
|
15822
15822
|
function $3(n, e) {
|
|
15823
15823
|
return xt(n, (t) => t.empty ? n.moveByGroup(t, e) : nn(t, e));
|
|
15824
15824
|
}
|
|
15825
|
-
const i9 = (n) => $3(n, !
|
|
15825
|
+
const i9 = (n) => $3(n, !je(n)), n9 = (n) => $3(n, je(n));
|
|
15826
15826
|
function s9(n, e, t) {
|
|
15827
15827
|
if (e.type.prop(t))
|
|
15828
15828
|
return !0;
|
|
@@ -15830,7 +15830,7 @@ function s9(n, e, t) {
|
|
|
15830
15830
|
return i && (i > 2 || /[^\s,.;:]/.test(n.sliceDoc(e.from, e.to))) || e.firstChild;
|
|
15831
15831
|
}
|
|
15832
15832
|
function sn(n, e, t) {
|
|
15833
|
-
let i =
|
|
15833
|
+
let i = Le(n).resolveInner(e.head), s = t ? te.closedBy : te.openedBy;
|
|
15834
15834
|
for (let a = e.head; ; ) {
|
|
15835
15835
|
let c = t ? i.childAfter(a) : i.childBefore(a);
|
|
15836
15836
|
if (!c)
|
|
@@ -15840,7 +15840,7 @@ function sn(n, e, t) {
|
|
|
15840
15840
|
let o = i.type.prop(s), r, l;
|
|
15841
15841
|
return o && (r = t ? Dt(n, i.from, 1) : Dt(n, i.to, -1)) && r.matched ? l = t ? r.end.to : r.end.from : l = t ? i.to : i.from, O.cursor(l, t ? -1 : 1);
|
|
15842
15842
|
}
|
|
15843
|
-
const o9 = (n) => xt(n, (e) => sn(n.state, e, !
|
|
15843
|
+
const o9 = (n) => xt(n, (e) => sn(n.state, e, !je(n))), r9 = (n) => xt(n, (e) => sn(n.state, e, je(n)));
|
|
15844
15844
|
function W3(n, e) {
|
|
15845
15845
|
return xt(n, (t) => {
|
|
15846
15846
|
if (!t.empty)
|
|
@@ -15887,7 +15887,7 @@ function s0(n, e, t) {
|
|
|
15887
15887
|
}
|
|
15888
15888
|
return s;
|
|
15889
15889
|
}
|
|
15890
|
-
const l9 = (n) => xt(n, (e) => s0(n, e, !0)), a9 = (n) => xt(n, (e) => s0(n, e, !1)), h9 = (n) => xt(n, (e) => s0(n, e, !
|
|
15890
|
+
const l9 = (n) => xt(n, (e) => s0(n, e, !0)), a9 = (n) => xt(n, (e) => s0(n, e, !1)), h9 = (n) => xt(n, (e) => s0(n, e, !je(n))), c9 = (n) => xt(n, (e) => s0(n, e, je(n))), u9 = (n) => xt(n, (e) => O.cursor(n.lineBlockAt(e.head).from, 1)), d9 = (n) => xt(n, (e) => O.cursor(n.lineBlockAt(e.head).to, -1));
|
|
15891
15891
|
function f9(n, e, t) {
|
|
15892
15892
|
let i = !1, s = F0(n.selection, (o) => {
|
|
15893
15893
|
let r = Dt(n, o.head, -1) || Dt(n, o.head, 1) || o.head > 0 && Dt(n, o.head - 1, 1) || o.head < n.doc.length && Dt(n, o.head + 1, -1);
|
|
@@ -15910,11 +15910,11 @@ function pt(n, e) {
|
|
|
15910
15910
|
function q3(n, e) {
|
|
15911
15911
|
return pt(n, (t) => n.moveByChar(t, e));
|
|
15912
15912
|
}
|
|
15913
|
-
const Y3 = (n) => q3(n, !
|
|
15913
|
+
const Y3 = (n) => q3(n, !je(n)), K3 = (n) => q3(n, je(n));
|
|
15914
15914
|
function X3(n, e) {
|
|
15915
15915
|
return pt(n, (t) => n.moveByGroup(t, e));
|
|
15916
15916
|
}
|
|
15917
|
-
const g9 = (n) => X3(n, !
|
|
15917
|
+
const g9 = (n) => X3(n, !je(n)), m9 = (n) => X3(n, je(n)), v9 = (n) => pt(n, (e) => sn(n.state, e, !je(n))), w9 = (n) => pt(n, (e) => sn(n.state, e, je(n)));
|
|
15918
15918
|
function Q3(n, e) {
|
|
15919
15919
|
return pt(n, (t) => n.moveVertically(t, e));
|
|
15920
15920
|
}
|
|
@@ -15922,12 +15922,12 @@ const J3 = (n) => Q3(n, !1), Z3 = (n) => Q3(n, !0);
|
|
|
15922
15922
|
function ea(n, e) {
|
|
15923
15923
|
return pt(n, (t) => n.moveVertically(t, e, j3(n).height));
|
|
15924
15924
|
}
|
|
15925
|
-
const Ur = (n) => ea(n, !1), qr = (n) => ea(n, !0), b9 = (n) => pt(n, (e) => s0(n, e, !0)), x9 = (n) => pt(n, (e) => s0(n, e, !1)), y9 = (n) => pt(n, (e) => s0(n, e, !
|
|
15925
|
+
const Ur = (n) => ea(n, !1), qr = (n) => ea(n, !0), b9 = (n) => pt(n, (e) => s0(n, e, !0)), x9 = (n) => pt(n, (e) => s0(n, e, !1)), y9 = (n) => pt(n, (e) => s0(n, e, !je(n))), S9 = (n) => pt(n, (e) => s0(n, e, je(n))), _9 = (n) => pt(n, (e) => O.cursor(n.lineBlockAt(e.head).from)), k9 = (n) => pt(n, (e) => O.cursor(n.lineBlockAt(e.head).to)), Yr = ({ state: n, dispatch: e }) => (e(Vt(n, { anchor: 0 })), !0), Kr = ({ state: n, dispatch: e }) => (e(Vt(n, { anchor: n.doc.length })), !0), Xr = ({ state: n, dispatch: e }) => (e(Vt(n, { anchor: n.selection.main.anchor, head: 0 })), !0), Qr = ({ state: n, dispatch: e }) => (e(Vt(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), C9 = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), O9 = ({ state: n, dispatch: e }) => {
|
|
15926
15926
|
let t = on(n).map(({ from: i, to: s }) => O.range(i, Math.min(s + 1, n.doc.length)));
|
|
15927
15927
|
return e(n.update({ selection: O.create(t), userEvent: "select" })), !0;
|
|
15928
15928
|
}, M9 = ({ state: n, dispatch: e }) => {
|
|
15929
15929
|
let t = F0(n.selection, (i) => {
|
|
15930
|
-
let s =
|
|
15930
|
+
let s = Le(n), o = s.resolveStack(i.from, 1);
|
|
15931
15931
|
if (i.empty) {
|
|
15932
15932
|
let r = s.resolveStack(i.from, -1);
|
|
15933
15933
|
r.node.from >= o.node.from && r.node.to <= o.node.to && (o = r);
|
|
@@ -15980,7 +15980,7 @@ const ta = (n, e, t) => P2(n, (i) => {
|
|
|
15980
15980
|
s--;
|
|
15981
15981
|
a = s;
|
|
15982
15982
|
} else
|
|
15983
|
-
a =
|
|
15983
|
+
a = $e(r.text, s - r.from, e, e) + r.from, a == s && r.number != (e ? o.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(r.text.slice(a - r.from, s - r.from)) && (a = $e(r.text, a - r.from, !1, !1) + r.from);
|
|
15984
15984
|
return a;
|
|
15985
15985
|
}), Ts = (n) => ta(n, !1, !0), ia = (n) => ta(n, !0, !1), na = (n, e) => P2(n, (t) => {
|
|
15986
15986
|
let i = t.head, { state: s } = n, o = s.doc.lineAt(i), r = s.charCategorizer(i);
|
|
@@ -15989,7 +15989,7 @@ const ta = (n, e, t) => P2(n, (i) => {
|
|
|
15989
15989
|
i == t.head && o.number != (e ? s.doc.lines : 1) && (i += e ? 1 : -1);
|
|
15990
15990
|
break;
|
|
15991
15991
|
}
|
|
15992
|
-
let a =
|
|
15992
|
+
let a = $e(o.text, i - o.from, e) + o.from, c = o.text.slice(Math.min(i, a) - o.from, Math.max(i, a) - o.from), h = r(c);
|
|
15993
15993
|
if (l != null && h != l)
|
|
15994
15994
|
break;
|
|
15995
15995
|
(c != " " || i != t.head) && (l = h), i = a;
|
|
@@ -16018,7 +16018,7 @@ const ta = (n, e, t) => P2(n, (i) => {
|
|
|
16018
16018
|
let t = n.changeByRange((i) => {
|
|
16019
16019
|
if (!i.empty || i.from == 0 || i.from == n.doc.length)
|
|
16020
16020
|
return { range: i };
|
|
16021
|
-
let s = i.from, o = n.doc.lineAt(s), r = s == o.from ? s - 1 :
|
|
16021
|
+
let s = i.from, o = n.doc.lineAt(s), r = s == o.from ? s - 1 : $e(o.text, s - o.from, !1) + o.from, l = s == o.to ? s + 1 : $e(o.text, s - o.from, !0) + o.from;
|
|
16022
16022
|
return {
|
|
16023
16023
|
changes: { from: r, to: l, insert: n.doc.slice(s, l).append(n.doc.slice(r, s)) },
|
|
16024
16024
|
range: O.cursor(l)
|
|
@@ -16089,7 +16089,7 @@ const R9 = ({ state: n, dispatch: e }) => ra(n, e, !1), I9 = ({ state: n, dispat
|
|
|
16089
16089
|
function N9(n, e) {
|
|
16090
16090
|
if (/\(\)|\[\]|\{\}/.test(n.sliceDoc(e - 1, e + 1)))
|
|
16091
16091
|
return { from: e, to: e };
|
|
16092
|
-
let t =
|
|
16092
|
+
let t = Le(n).resolveInner(e), i = t.childBefore(e), s = t.childAfter(e), o;
|
|
16093
16093
|
return i && s && i.to <= e && s.from >= e && (o = i.type.prop(te.closedBy)) && o.indexOf(s.name) > -1 && n.doc.lineAt(i.to).from == n.doc.lineAt(s.from).from && !/\S/.test(n.sliceDoc(i.to, s.from)) ? { from: i.to, to: s.from } : null;
|
|
16094
16094
|
}
|
|
16095
16095
|
const Jr = /* @__PURE__ */ la(!1), $9 = /* @__PURE__ */ la(!0);
|
|
@@ -16422,7 +16422,7 @@ function As(n) {
|
|
|
16422
16422
|
}
|
|
16423
16423
|
return { dom: i };
|
|
16424
16424
|
}
|
|
16425
|
-
const l2 = /* @__PURE__ */ Q.define(), el = /* @__PURE__ */
|
|
16425
|
+
const l2 = /* @__PURE__ */ Q.define(), el = /* @__PURE__ */ We.define({
|
|
16426
16426
|
create() {
|
|
16427
16427
|
return !0;
|
|
16428
16428
|
},
|
|
@@ -16474,12 +16474,12 @@ function ep(n) {
|
|
|
16474
16474
|
}
|
|
16475
16475
|
const tp = /* @__PURE__ */ q.mark({ class: "cm-selectionMatch" }), ip = /* @__PURE__ */ q.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
16476
16476
|
function tl(n, e, t, i) {
|
|
16477
|
-
return (t == 0 || n(e.sliceDoc(t - 1, t)) !=
|
|
16477
|
+
return (t == 0 || n(e.sliceDoc(t - 1, t)) != xe.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != xe.Word);
|
|
16478
16478
|
}
|
|
16479
16479
|
function np(n, e, t, i) {
|
|
16480
|
-
return n(e.sliceDoc(t, t + 1)) ==
|
|
16480
|
+
return n(e.sliceDoc(t, t + 1)) == xe.Word && n(e.sliceDoc(i - 1, i)) == xe.Word;
|
|
16481
16481
|
}
|
|
16482
|
-
const sp = /* @__PURE__ */
|
|
16482
|
+
const sp = /* @__PURE__ */ Te.fromClass(class {
|
|
16483
16483
|
constructor(n) {
|
|
16484
16484
|
this.decorations = this.getDeco(n);
|
|
16485
16485
|
}
|
|
@@ -16615,7 +16615,7 @@ function _0(n, e, t, i) {
|
|
|
16615
16615
|
return new $0(e.doc, n.unquoted, t, i, n.caseSensitive ? void 0 : (s) => s.toLowerCase(), n.wholeWord ? hp(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
|
|
16616
16616
|
}
|
|
16617
16617
|
function hp(n, e) {
|
|
16618
|
-
return (t, i, s, o) => ((o > t || o + s.length < i) && (o = Math.max(0, t - 2), s = n.sliceString(o, Math.min(n.length, i + 2))), (e(Ei(s, t - o)) !=
|
|
16618
|
+
return (t, i, s, o) => ((o > t || o + s.length < i) && (o = Math.max(0, t - 2), s = n.sliceString(o, Math.min(n.length, i + 2))), (e(Ei(s, t - o)) != xe.Word || e(Bi(s, t - o)) != xe.Word) && (e(Bi(s, i - o)) != xe.Word || e(Ei(s, i - o)) != xe.Word));
|
|
16619
16619
|
}
|
|
16620
16620
|
class cp extends da {
|
|
16621
16621
|
constructor(e) {
|
|
@@ -16672,13 +16672,13 @@ function k0(n, e, t, i) {
|
|
|
16672
16672
|
}, t, i);
|
|
16673
16673
|
}
|
|
16674
16674
|
function Ei(n, e) {
|
|
16675
|
-
return n.slice(
|
|
16675
|
+
return n.slice($e(n, e, !1), e);
|
|
16676
16676
|
}
|
|
16677
16677
|
function Bi(n, e) {
|
|
16678
|
-
return n.slice(e,
|
|
16678
|
+
return n.slice(e, $e(n, e));
|
|
16679
16679
|
}
|
|
16680
16680
|
function up(n) {
|
|
16681
|
-
return (e, t, i) => !i[0].length || (n(Ei(i.input, i.index)) !=
|
|
16681
|
+
return (e, t, i) => !i[0].length || (n(Ei(i.input, i.index)) != xe.Word || n(Bi(i.input, i.index)) != xe.Word) && (n(Bi(i.input, i.index + i[0].length)) != xe.Word || n(Ei(i.input, i.index + i[0].length)) != xe.Word);
|
|
16682
16682
|
}
|
|
16683
16683
|
class dp extends da {
|
|
16684
16684
|
nextMatch(e, t, i) {
|
|
@@ -16736,7 +16736,7 @@ class dp extends da {
|
|
|
16736
16736
|
s(o.value.from, o.value.to);
|
|
16737
16737
|
}
|
|
16738
16738
|
}
|
|
16739
|
-
const y2 = /* @__PURE__ */ Q.define(), ho = /* @__PURE__ */ Q.define(), Xt = /* @__PURE__ */
|
|
16739
|
+
const y2 = /* @__PURE__ */ Q.define(), ho = /* @__PURE__ */ Q.define(), Xt = /* @__PURE__ */ We.define({
|
|
16740
16740
|
create(n) {
|
|
16741
16741
|
return new Tn(Ps(n).create(), null);
|
|
16742
16742
|
},
|
|
@@ -16752,7 +16752,7 @@ class Tn {
|
|
|
16752
16752
|
this.query = e, this.panel = t;
|
|
16753
16753
|
}
|
|
16754
16754
|
}
|
|
16755
|
-
const fp = /* @__PURE__ */ q.mark({ class: "cm-searchMatch" }), pp = /* @__PURE__ */ q.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), gp = /* @__PURE__ */
|
|
16755
|
+
const fp = /* @__PURE__ */ q.mark({ class: "cm-searchMatch" }), pp = /* @__PURE__ */ q.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), gp = /* @__PURE__ */ Te.fromClass(class {
|
|
16756
16756
|
constructor(n) {
|
|
16757
16757
|
this.view = n, this.decorations = this.highlight(n.state.field(Xt));
|
|
16758
16758
|
}
|
|
@@ -17078,7 +17078,7 @@ class va {
|
|
|
17078
17078
|
token before `this.pos`.
|
|
17079
17079
|
*/
|
|
17080
17080
|
tokenBefore(e) {
|
|
17081
|
-
let t =
|
|
17081
|
+
let t = Le(this.state).resolveInner(this.pos, -1);
|
|
17082
17082
|
for (; t && e.indexOf(t.name) < 0; )
|
|
17083
17083
|
t = t.parent;
|
|
17084
17084
|
return t ? {
|
|
@@ -17251,7 +17251,7 @@ class Dp {
|
|
|
17251
17251
|
return i == null ? null : (this.matched = [0, t.length], this.score = i + (e.length == this.pattern.length ? 0 : -100), this);
|
|
17252
17252
|
}
|
|
17253
17253
|
}
|
|
17254
|
-
const
|
|
17254
|
+
const Be = /* @__PURE__ */ I.define({
|
|
17255
17255
|
combine(n) {
|
|
17256
17256
|
return zt(n, {
|
|
17257
17257
|
activateOnTyping: !0,
|
|
@@ -17287,7 +17287,7 @@ function rl(n, e) {
|
|
|
17287
17287
|
return n ? e ? n + " " + e : n : e;
|
|
17288
17288
|
}
|
|
17289
17289
|
function Tp(n, e, t, i, s, o) {
|
|
17290
|
-
let r = n.textDirection ==
|
|
17290
|
+
let r = n.textDirection == we.RTL, l = r, a = !1, c = "top", h, u, d = e.left - s.left, f = s.right - e.right, p = i.right - i.left, g = i.bottom - i.top;
|
|
17291
17291
|
if (l && d < Math.min(p, f) ? l = !1 : !l && f < Math.min(p, d) && (l = !0), p <= (l ? d : f))
|
|
17292
17292
|
h = Math.max(s.top, Math.min(t.top, s.bottom - g)) - e.top, u = Math.min(400, l ? d : f);
|
|
17293
17293
|
else {
|
|
@@ -17354,7 +17354,7 @@ class Pp {
|
|
|
17354
17354
|
write: (a) => this.placeInfo(a),
|
|
17355
17355
|
key: this
|
|
17356
17356
|
}, this.space = null, this.currentClass = "";
|
|
17357
|
-
let s = e.state.field(t), { options: o, selected: r } = s.open, l = e.state.facet(
|
|
17357
|
+
let s = e.state.field(t), { options: o, selected: r } = s.open, l = e.state.facet(Be);
|
|
17358
17358
|
this.optionContent = Ap(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = An(o.length, r, l.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => {
|
|
17359
17359
|
let { options: c } = e.state.field(t).open;
|
|
17360
17360
|
for (let h = a.target, u; h && h != this.dom; h = h.parentNode)
|
|
@@ -17364,7 +17364,7 @@ class Pp {
|
|
|
17364
17364
|
}
|
|
17365
17365
|
}), this.dom.addEventListener("focusout", (a) => {
|
|
17366
17366
|
let c = e.state.field(this.stateField, !1);
|
|
17367
|
-
c && c.tooltip && e.state.facet(
|
|
17367
|
+
c && c.tooltip && e.state.facet(Be).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: S2.of(null) });
|
|
17368
17368
|
}), this.showOptions(o, s.id);
|
|
17369
17369
|
}
|
|
17370
17370
|
mount() {
|
|
@@ -17380,7 +17380,7 @@ class Pp {
|
|
|
17380
17380
|
let i = e.state.field(this.stateField), s = e.startState.field(this.stateField);
|
|
17381
17381
|
if (this.updateTooltipClass(e.state), i != s) {
|
|
17382
17382
|
let { options: o, selected: r, disabled: l } = i.open;
|
|
17383
|
-
(!s.open || s.open.options != o) && (this.range = An(o.length, r, e.state.facet(
|
|
17383
|
+
(!s.open || s.open.options != o) && (this.range = An(o.length, r, e.state.facet(Be).maxRenderedOptions), this.showOptions(o, i.id)), this.updateSel(), l != ((t = s.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!l);
|
|
17384
17384
|
}
|
|
17385
17385
|
}
|
|
17386
17386
|
updateTooltipClass(e) {
|
|
@@ -17398,7 +17398,7 @@ class Pp {
|
|
|
17398
17398
|
}
|
|
17399
17399
|
updateSel() {
|
|
17400
17400
|
let e = this.view.state.field(this.stateField), t = e.open;
|
|
17401
|
-
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = An(t.options.length, t.selected, this.view.state.facet(
|
|
17401
|
+
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = An(t.options.length, t.selected, this.view.state.facet(Be).maxRenderedOptions), this.showOptions(t.options, e.id)), this.updateSelectedOption(t.selected)) {
|
|
17402
17402
|
this.destroyInfo();
|
|
17403
17403
|
let { completion: i } = t.options[t.selected], { info: s } = i;
|
|
17404
17404
|
if (!s)
|
|
@@ -17437,7 +17437,7 @@ class Pp {
|
|
|
17437
17437
|
let r = this.dom.ownerDocument.documentElement;
|
|
17438
17438
|
o = { left: 0, top: 0, right: r.clientWidth, bottom: r.clientHeight };
|
|
17439
17439
|
}
|
|
17440
|
-
return s.top > Math.min(o.bottom, t.bottom) - 10 || s.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(
|
|
17440
|
+
return s.top > Math.min(o.bottom, t.bottom) - 10 || s.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(Be).positionInfo(this.view, t, s, i, o, this.dom);
|
|
17441
17441
|
}
|
|
17442
17442
|
placeInfo(e) {
|
|
17443
17443
|
this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
@@ -17497,7 +17497,7 @@ function Ep(n, e) {
|
|
|
17497
17497
|
let u = typeof h == "string" ? h : h.name;
|
|
17498
17498
|
i.some((d) => d.name == u) || i.push(typeof h == "string" ? { name: u } : h);
|
|
17499
17499
|
}
|
|
17500
|
-
}, o = e.facet(
|
|
17500
|
+
}, o = e.facet(Be);
|
|
17501
17501
|
for (let c of n)
|
|
17502
17502
|
if (c.hasResult()) {
|
|
17503
17503
|
let h = c.result.getMatch;
|
|
@@ -17545,7 +17545,7 @@ class D0 {
|
|
|
17545
17545
|
let l = Ep(e, t);
|
|
17546
17546
|
if (!l.length)
|
|
17547
17547
|
return s && e.some((c) => c.isPending) ? s.setDisabled() : null;
|
|
17548
|
-
let a = t.facet(
|
|
17548
|
+
let a = t.facet(Be).selectOnOpen ? 0 : -1;
|
|
17549
17549
|
if (s && s.selected != a && s.selected != -1) {
|
|
17550
17550
|
let c = s.options[s.selected].completion;
|
|
17551
17551
|
for (let h = 0; h < l.length; h++)
|
|
@@ -17575,7 +17575,7 @@ class Hi {
|
|
|
17575
17575
|
return new Hi(Ip, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
17576
17576
|
}
|
|
17577
17577
|
update(e) {
|
|
17578
|
-
let { state: t } = e, i = t.facet(
|
|
17578
|
+
let { state: t } = e, i = t.facet(Be), o = (i.override || t.languageDataAt("autocomplete", f0(t)).map(Op)).map((a) => (this.active.find((h) => h.source == a) || new ct(
|
|
17579
17579
|
a,
|
|
17580
17580
|
this.active.some(
|
|
17581
17581
|
(h) => h.state != 0
|
|
@@ -17726,7 +17726,7 @@ const fo = /* @__PURE__ */ Q.define({
|
|
|
17726
17726
|
map(n, e) {
|
|
17727
17727
|
return n.map((t) => t.map(e));
|
|
17728
17728
|
}
|
|
17729
|
-
}), ya = /* @__PURE__ */ Q.define(), Je = /* @__PURE__ */
|
|
17729
|
+
}), ya = /* @__PURE__ */ Q.define(), Je = /* @__PURE__ */ We.define({
|
|
17730
17730
|
create() {
|
|
17731
17731
|
return Hi.start();
|
|
17732
17732
|
},
|
|
@@ -17747,7 +17747,7 @@ const Np = /* @__PURE__ */ zp(Je, po);
|
|
|
17747
17747
|
function ei(n, e = "option") {
|
|
17748
17748
|
return (t) => {
|
|
17749
17749
|
let i = t.state.field(Je, !1);
|
|
17750
|
-
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(
|
|
17750
|
+
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(Be).interactionDelay)
|
|
17751
17751
|
return !1;
|
|
17752
17752
|
let s = 1, o;
|
|
17753
17753
|
e == "page" && (o = s3(t, i.open.tooltip)) && (s = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
|
|
@@ -17757,7 +17757,7 @@ function ei(n, e = "option") {
|
|
|
17757
17757
|
}
|
|
17758
17758
|
const $p = (n) => {
|
|
17759
17759
|
let e = n.state.field(Je, !1);
|
|
17760
|
-
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(
|
|
17760
|
+
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(Be).interactionDelay ? !1 : po(n, e.open.options[e.open.selected]);
|
|
17761
17761
|
}, hl = (n) => n.state.field(Je, !1) ? (n.dispatch({ effects: Ii.of(!0) }), !0) : !1, Wp = (n) => {
|
|
17762
17762
|
let e = n.state.field(Je, !1);
|
|
17763
17763
|
return !e || !e.active.some(
|
|
@@ -17770,14 +17770,14 @@ class Gp {
|
|
|
17770
17770
|
this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
|
|
17771
17771
|
}
|
|
17772
17772
|
}
|
|
17773
|
-
const Fp = 50, jp = 1e3, Up = /* @__PURE__ */
|
|
17773
|
+
const Fp = 50, jp = 1e3, Up = /* @__PURE__ */ Te.fromClass(class {
|
|
17774
17774
|
constructor(n) {
|
|
17775
17775
|
this.view = n, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
|
|
17776
17776
|
for (let e of n.state.field(Je).active)
|
|
17777
17777
|
e.isPending && this.startQuery(e);
|
|
17778
17778
|
}
|
|
17779
17779
|
update(n) {
|
|
17780
|
-
let e = n.state.field(Je), t = n.state.facet(
|
|
17780
|
+
let e = n.state.field(Je), t = n.state.facet(Be);
|
|
17781
17781
|
if (!n.selectionSet && !n.docChanged && n.startState.field(Je) == e)
|
|
17782
17782
|
return;
|
|
17783
17783
|
let i = n.transactions.some((o) => {
|
|
@@ -17808,7 +17808,7 @@ const Fp = 50, jp = 1e3, Up = /* @__PURE__ */ De.fromClass(class {
|
|
|
17808
17808
|
let { state: n } = this.view, e = n.field(Je);
|
|
17809
17809
|
for (let t of e.active)
|
|
17810
17810
|
t.isPending && !this.running.some((i) => i.active.source == t.source) && this.startQuery(t);
|
|
17811
|
-
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
17811
|
+
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Be).updateSyncTime));
|
|
17812
17812
|
}
|
|
17813
17813
|
startQuery(n) {
|
|
17814
17814
|
let { state: e } = this.view, t = f0(e), i = new va(e, t, n.explicit, this.view), s = new Gp(n, i);
|
|
@@ -17819,14 +17819,14 @@ const Fp = 50, jp = 1e3, Up = /* @__PURE__ */ De.fromClass(class {
|
|
|
17819
17819
|
});
|
|
17820
17820
|
}
|
|
17821
17821
|
scheduleAccept() {
|
|
17822
|
-
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
17822
|
+
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Be).updateSyncTime));
|
|
17823
17823
|
}
|
|
17824
17824
|
// For each finished query in this.running, try to create a result
|
|
17825
17825
|
// or, if appropriate, restart the query.
|
|
17826
17826
|
accept() {
|
|
17827
17827
|
var n;
|
|
17828
17828
|
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
17829
|
-
let e = [], t = this.view.state.facet(
|
|
17829
|
+
let e = [], t = this.view.state.facet(Be), i = this.view.state.field(Je);
|
|
17830
17830
|
for (let s = 0; s < this.running.length; s++) {
|
|
17831
17831
|
let o = this.running[s];
|
|
17832
17832
|
if (o.done === void 0)
|
|
@@ -17860,7 +17860,7 @@ const Fp = 50, jp = 1e3, Up = /* @__PURE__ */ De.fromClass(class {
|
|
|
17860
17860
|
eventHandlers: {
|
|
17861
17861
|
blur(n) {
|
|
17862
17862
|
let e = this.view.state.field(Je, !1);
|
|
17863
|
-
if (e && e.tooltip && this.view.state.facet(
|
|
17863
|
+
if (e && e.tooltip && this.view.state.facet(Be).closeOnBlur) {
|
|
17864
17864
|
let t = e.open && s3(this.view, e.open.tooltip);
|
|
17865
17865
|
(!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: S2.of(null) }), 10);
|
|
17866
17866
|
}
|
|
@@ -18016,7 +18016,7 @@ const Fp = 50, jp = 1e3, Up = /* @__PURE__ */ De.fromClass(class {
|
|
|
18016
18016
|
}();
|
|
18017
18017
|
go.startSide = 1;
|
|
18018
18018
|
go.endSide = -1;
|
|
18019
|
-
const Sa = /* @__PURE__ */
|
|
18019
|
+
const Sa = /* @__PURE__ */ We.define({
|
|
18020
18020
|
create() {
|
|
18021
18021
|
return se.empty;
|
|
18022
18022
|
},
|
|
@@ -18155,7 +18155,7 @@ function og(n, e, t, i) {
|
|
|
18155
18155
|
effects: c0.of(a + e.length),
|
|
18156
18156
|
range: O.cursor(a + e.length)
|
|
18157
18157
|
};
|
|
18158
|
-
if (n.charCategorizer(a)(c) !=
|
|
18158
|
+
if (n.charCategorizer(a)(c) != xe.Word && ul(n, a, s) > -1 && !rg(n, a, e, s))
|
|
18159
18159
|
return {
|
|
18160
18160
|
changes: { insert: e + e, from: a },
|
|
18161
18161
|
effects: c0.of(a + e.length),
|
|
@@ -18170,11 +18170,11 @@ function og(n, e, t, i) {
|
|
|
18170
18170
|
});
|
|
18171
18171
|
}
|
|
18172
18172
|
function cl(n, e) {
|
|
18173
|
-
let t =
|
|
18173
|
+
let t = Le(n).resolveInner(e + 1);
|
|
18174
18174
|
return t.parent && t.from == e;
|
|
18175
18175
|
}
|
|
18176
18176
|
function rg(n, e, t, i) {
|
|
18177
|
-
let s =
|
|
18177
|
+
let s = Le(n).resolveInner(e, -1), o = i.reduce((r, l) => Math.max(r, l.length), 0);
|
|
18178
18178
|
for (let r = 0; r < 5; r++) {
|
|
18179
18179
|
let l = n.sliceDoc(s.from, Math.min(s.to, s.from + t.length + o)), a = l.indexOf(t);
|
|
18180
18180
|
if (!a || a > -1 && i.indexOf(l.slice(0, a)) > -1) {
|
|
@@ -18195,11 +18195,11 @@ function rg(n, e, t, i) {
|
|
|
18195
18195
|
}
|
|
18196
18196
|
function ul(n, e, t) {
|
|
18197
18197
|
let i = n.charCategorizer(e);
|
|
18198
|
-
if (i(n.sliceDoc(e - 1, e)) !=
|
|
18198
|
+
if (i(n.sliceDoc(e - 1, e)) != xe.Word)
|
|
18199
18199
|
return e;
|
|
18200
18200
|
for (let s of t) {
|
|
18201
18201
|
let o = e - s.length;
|
|
18202
|
-
if (n.sliceDoc(o, e) == s && i(n.sliceDoc(o - 1, o)) !=
|
|
18202
|
+
if (n.sliceDoc(o, e) == s && i(n.sliceDoc(o - 1, o)) != xe.Word)
|
|
18203
18203
|
return o;
|
|
18204
18204
|
}
|
|
18205
18205
|
return -1;
|
|
@@ -18208,7 +18208,7 @@ function lg(n = {}) {
|
|
|
18208
18208
|
return [
|
|
18209
18209
|
Yp,
|
|
18210
18210
|
Je,
|
|
18211
|
-
|
|
18211
|
+
Be.of(n),
|
|
18212
18212
|
Up,
|
|
18213
18213
|
ag,
|
|
18214
18214
|
Kp
|
|
@@ -18223,7 +18223,7 @@ const Oa = [
|
|
|
18223
18223
|
{ key: "PageDown", run: /* @__PURE__ */ ei(!0, "page") },
|
|
18224
18224
|
{ key: "PageUp", run: /* @__PURE__ */ ei(!1, "page") },
|
|
18225
18225
|
{ key: "Enter", run: $p }
|
|
18226
|
-
], ag = /* @__PURE__ */ x0.highest(/* @__PURE__ */ Ks.computeN([
|
|
18226
|
+
], ag = /* @__PURE__ */ x0.highest(/* @__PURE__ */ Ks.computeN([Be], (n) => n.facet(Be).defaultKeymap ? [Oa] : []));
|
|
18227
18227
|
class dl {
|
|
18228
18228
|
constructor(e, t, i) {
|
|
18229
18229
|
this.from = e, this.to = t, this.diagnostic = i;
|
|
@@ -18296,7 +18296,7 @@ function hg(n, e) {
|
|
|
18296
18296
|
function cg(n, e) {
|
|
18297
18297
|
return n.field(ot, !1) ? e : e.concat(Q.appendConfig.of(Sg));
|
|
18298
18298
|
}
|
|
18299
|
-
const Ma = /* @__PURE__ */ Q.define(), mo = /* @__PURE__ */ Q.define(), Da = /* @__PURE__ */ Q.define(), ot = /* @__PURE__ */
|
|
18299
|
+
const Ma = /* @__PURE__ */ Q.define(), mo = /* @__PURE__ */ Q.define(), Da = /* @__PURE__ */ Q.define(), ot = /* @__PURE__ */ We.define({
|
|
18300
18300
|
create() {
|
|
18301
18301
|
return new a0(q.none, null, null);
|
|
18302
18302
|
},
|
|
@@ -19345,7 +19345,7 @@ function Mg(n, e, t, i) {
|
|
|
19345
19345
|
const nt = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
19346
19346
|
let zn = null;
|
|
19347
19347
|
function wl(n, e, t) {
|
|
19348
|
-
let i = n.cursor(
|
|
19348
|
+
let i = n.cursor(Ve.IncludeAnonymous);
|
|
19349
19349
|
for (i.moveTo(e); ; )
|
|
19350
19350
|
if (!(t < 0 ? i.childBefore(e) : i.childAfter(e)))
|
|
19351
19351
|
for (; ; ) {
|
|
@@ -19398,7 +19398,7 @@ class Dg {
|
|
|
19398
19398
|
let o = i.children[s], r = this.start[t] + i.positions[s];
|
|
19399
19399
|
if (r > e)
|
|
19400
19400
|
return this.nextStart = r, null;
|
|
19401
|
-
if (o instanceof
|
|
19401
|
+
if (o instanceof De) {
|
|
19402
19402
|
if (r == e) {
|
|
19403
19403
|
if (r < this.safeFrom)
|
|
19404
19404
|
return null;
|
|
@@ -19589,10 +19589,10 @@ class Ag {
|
|
|
19589
19589
|
let d = this.parser.nodeSet.types[u.type.id] == u.type ? o.getGoto(e.state, u.type.id) : -1;
|
|
19590
19590
|
if (d > -1 && u.length && (!c || (u.prop(te.contextHash) || 0) == h))
|
|
19591
19591
|
return e.useNode(u, d), nt && console.log(r + this.stackID(e) + ` (via reuse of ${o.getName(u.type.id)})`), !0;
|
|
19592
|
-
if (!(u instanceof
|
|
19592
|
+
if (!(u instanceof De) || u.children.length == 0 || u.positions[0] > 0)
|
|
19593
19593
|
break;
|
|
19594
19594
|
let f = u.children[0];
|
|
19595
|
-
if (f instanceof
|
|
19595
|
+
if (f instanceof De && u.positions[0] == 0)
|
|
19596
19596
|
u = f;
|
|
19597
19597
|
else
|
|
19598
19598
|
break;
|
|
@@ -19652,7 +19652,7 @@ class Ag {
|
|
|
19652
19652
|
}
|
|
19653
19653
|
// Convert the stack's buffer to a syntax tree.
|
|
19654
19654
|
stackToTree(e) {
|
|
19655
|
-
return e.close(),
|
|
19655
|
+
return e.close(), De.build({
|
|
19656
19656
|
buffer: $i.create(e),
|
|
19657
19657
|
nodeSet: this.parser.nodeSet,
|
|
19658
19658
|
topID: this.topTerm,
|
|
@@ -20080,7 +20080,7 @@ function Bn(n) {
|
|
|
20080
20080
|
}
|
|
20081
20081
|
function Zg(n, e) {
|
|
20082
20082
|
var t;
|
|
20083
|
-
let i =
|
|
20083
|
+
let i = Le(n).resolveInner(e, -1), s = null;
|
|
20084
20084
|
for (let o = i; !s && o.parent; o = o.parent)
|
|
20085
20085
|
(o.name == "OpenTag" || o.name == "CloseTag" || o.name == "SelfClosingTag" || o.name == "MismatchedCloseTag") && (s = o);
|
|
20086
20086
|
if (s && (s.to > e || s.lastChild.type.isError)) {
|
|
@@ -20239,7 +20239,7 @@ const nm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20239
20239
|
return !1;
|
|
20240
20240
|
let o = s(), { state: r } = o, l = r.changeByRange((a) => {
|
|
20241
20241
|
var c, h, u;
|
|
20242
|
-
let { head: d } = a, f = r.doc.sliceString(d - 1, d) == i, p =
|
|
20242
|
+
let { head: d } = a, f = r.doc.sliceString(d - 1, d) == i, p = Le(r).resolveInner(d, -1), g;
|
|
20243
20243
|
if (f && i == ">" && p.name == "EndTag") {
|
|
20244
20244
|
let m = p.parent;
|
|
20245
20245
|
if (((h = (c = m.parent) === null || c === void 0 ? void 0 : c.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (g = Ml(r.doc, m.parent, d))) {
|
|
@@ -20292,7 +20292,7 @@ const nm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20292
20292
|
X("div", om, null, 512)
|
|
20293
20293
|
]));
|
|
20294
20294
|
}
|
|
20295
|
-
}, lm = /* @__PURE__ */
|
|
20295
|
+
}, lm = /* @__PURE__ */ Oe(rm, [["__scopeId", "data-v-5a7ea2b9"]]), am = { class: "img-renderer" }, hm = {
|
|
20296
20296
|
__name: "index",
|
|
20297
20297
|
props: {
|
|
20298
20298
|
fileName: String,
|
|
@@ -20315,7 +20315,7 @@ const nm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20315
20315
|
]);
|
|
20316
20316
|
};
|
|
20317
20317
|
}
|
|
20318
|
-
}, cm = /* @__PURE__ */
|
|
20318
|
+
}, cm = /* @__PURE__ */ Oe(hm, [["__scopeId", "data-v-92be70b7"]]), um = { class: "file-preview" }, dm = {
|
|
20319
20319
|
key: 0,
|
|
20320
20320
|
class: "preview-docx"
|
|
20321
20321
|
}, fm = {
|
|
@@ -20396,7 +20396,7 @@ const nm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20396
20396
|
]))) : ee("", !0)
|
|
20397
20397
|
]));
|
|
20398
20398
|
}
|
|
20399
|
-
}, wo = /* @__PURE__ */
|
|
20399
|
+
}, wo = /* @__PURE__ */ Oe(bm, [["__scopeId", "data-v-4049578c"]]), xm = {
|
|
20400
20400
|
key: 0,
|
|
20401
20401
|
class: "upload-value"
|
|
20402
20402
|
}, ym = { class: "upload-content-title-wrap" }, Sm = { class: "upload-content-title" }, _m = { class: "icon" }, km = { style: { display: "flex", "justify-content": "space-between", width: "100%" } }, Cm = { class: "upload-content-title" }, Om = { class: "icon" }, Mm = { class: "dialog-footer" }, Dm = {
|
|
@@ -20499,12 +20499,12 @@ const nm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20499
20499
|
__: [2]
|
|
20500
20500
|
}),
|
|
20501
20501
|
X("div", ym, [
|
|
20502
|
-
(C(!0), L(
|
|
20502
|
+
(C(!0), L(me, null, ve(s.value, (V) => (C(), L("div", {
|
|
20503
20503
|
class: "upload-content-title",
|
|
20504
20504
|
key: V,
|
|
20505
20505
|
style: { display: "flex", "justify-content": "space-between", width: "100%" }
|
|
20506
20506
|
}, [
|
|
20507
|
-
X("div", Sm,
|
|
20507
|
+
X("div", Sm, Ee(V == null ? void 0 : V.name), 1),
|
|
20508
20508
|
X("div", _m, [
|
|
20509
20509
|
K(S, {
|
|
20510
20510
|
name: "EyeFill",
|
|
@@ -20548,7 +20548,7 @@ const nm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20548
20548
|
]),
|
|
20549
20549
|
file: B(({ file: V, index: w }) => [
|
|
20550
20550
|
X("div", km, [
|
|
20551
|
-
X("div", Cm,
|
|
20551
|
+
X("div", Cm, Ee(V == null ? void 0 : V.name), 1),
|
|
20552
20552
|
X("div", Om, [
|
|
20553
20553
|
K(S, {
|
|
20554
20554
|
name: "EyeFill",
|
|
@@ -20610,7 +20610,7 @@ const nm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20610
20610
|
])) : ee("", !0);
|
|
20611
20611
|
};
|
|
20612
20612
|
}
|
|
20613
|
-
}, Tm = /* @__PURE__ */
|
|
20613
|
+
}, Tm = /* @__PURE__ */ Oe(Dm, [["__scopeId", "data-v-c950e225"]]);
|
|
20614
20614
|
/*!
|
|
20615
20615
|
* Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
|
|
20616
20616
|
* (c) 2020 Szymon Nowak | Released under the MIT license
|
|
@@ -21201,7 +21201,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21201
21201
|
return (c, h) => {
|
|
21202
21202
|
var p, g, m;
|
|
21203
21203
|
const u = F("el-input-number"), d = F("el-color-picker"), f = F("el-button");
|
|
21204
|
-
return C(), L(
|
|
21204
|
+
return C(), L(me, null, [
|
|
21205
21205
|
X("div", Rm, [
|
|
21206
21206
|
le(c.$slots, "signatureRender", {}, void 0, !0),
|
|
21207
21207
|
X("div", Im, [
|
|
@@ -21270,7 +21270,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21270
21270
|
], 64);
|
|
21271
21271
|
};
|
|
21272
21272
|
}
|
|
21273
|
-
}, Wm = /* @__PURE__ */
|
|
21273
|
+
}, Wm = /* @__PURE__ */ Oe($m, [["__scopeId", "data-v-e409734b"]]), Gm = /* @__PURE__ */ bt({
|
|
21274
21274
|
__name: "index",
|
|
21275
21275
|
setup(n) {
|
|
21276
21276
|
const e = W(null), t = async (i) => {
|
|
@@ -21336,7 +21336,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21336
21336
|
const f = F("el-icon");
|
|
21337
21337
|
return C(), L("div", Fm, [
|
|
21338
21338
|
X("div", jm, [
|
|
21339
|
-
(C(!0), L(
|
|
21339
|
+
(C(!0), L(me, null, ve(s.value, (p, g) => (C(), L("div", {
|
|
21340
21340
|
key: g,
|
|
21341
21341
|
class: Pl(["left-item", {
|
|
21342
21342
|
"active-item": g == o.value
|
|
@@ -21346,7 +21346,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21346
21346
|
class: "item-name",
|
|
21347
21347
|
title: p.name,
|
|
21348
21348
|
onClick: (m) => c(g)
|
|
21349
|
-
},
|
|
21349
|
+
}, Ee(p == null ? void 0 : p.name), 9, Um),
|
|
21350
21350
|
X("div", qm, [
|
|
21351
21351
|
K(f, {
|
|
21352
21352
|
class: "download-icon",
|
|
@@ -21370,7 +21370,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21370
21370
|
]);
|
|
21371
21371
|
};
|
|
21372
21372
|
}
|
|
21373
|
-
}), za = /* @__PURE__ */
|
|
21373
|
+
}), za = /* @__PURE__ */ Oe(Km, [["__scopeId", "data-v-460d0fb4"]]), Xm = { class: "file-preview-dialog-header" }, Qm = { class: "header-left" }, Jm = { class: "header-right" }, Zm = { class: "file-preview-dialog-body" }, ev = /* @__PURE__ */ bt({
|
|
21374
21374
|
__name: "index",
|
|
21375
21375
|
props: {
|
|
21376
21376
|
fileDataList: {},
|
|
@@ -21406,7 +21406,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21406
21406
|
}, {
|
|
21407
21407
|
header: B(() => [
|
|
21408
21408
|
X("div", Xm, [
|
|
21409
|
-
X("div", Qm,
|
|
21409
|
+
X("div", Qm, Ee(d.customTitle), 1),
|
|
21410
21410
|
X("div", Jm, [
|
|
21411
21411
|
K(p, null, {
|
|
21412
21412
|
default: B(() => [
|
|
@@ -21441,7 +21441,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21441
21441
|
}, 8, ["visible", "fullScreen"]);
|
|
21442
21442
|
};
|
|
21443
21443
|
}
|
|
21444
|
-
}), tv = /* @__PURE__ */
|
|
21444
|
+
}), tv = /* @__PURE__ */ Oe(ev, [["__scopeId", "data-v-18f196f0"]]), iv = { class: "quill-content" }, nv = {
|
|
21445
21445
|
__name: "index",
|
|
21446
21446
|
props: {
|
|
21447
21447
|
modelValue: String,
|
|
@@ -21576,7 +21576,7 @@ const Rm = { class: "signature-wrap" }, Im = { class: "signature-types" }, Hm =
|
|
|
21576
21576
|
}, null, 512)
|
|
21577
21577
|
]));
|
|
21578
21578
|
}
|
|
21579
|
-
}, sv = /* @__PURE__ */
|
|
21579
|
+
}, sv = /* @__PURE__ */ Oe(nv, [["__scopeId", "data-v-28a0311d"]]), ov = {
|
|
21580
21580
|
AVATARUPLOAD: eh,
|
|
21581
21581
|
SIGNATURE: Wm,
|
|
21582
21582
|
SWITCH: ih,
|
|
@@ -21649,7 +21649,7 @@ const rv = ["onDblclick"], lv = {
|
|
|
21649
21649
|
"tab-position": t == null ? void 0 : t.tabPosition
|
|
21650
21650
|
}, {
|
|
21651
21651
|
default: B(() => [
|
|
21652
|
-
(C(!0), L(
|
|
21652
|
+
(C(!0), L(me, null, ve(s.value, (p, g) => (C(), G(d, {
|
|
21653
21653
|
key: g,
|
|
21654
21654
|
name: p == null ? void 0 : p.value
|
|
21655
21655
|
}, {
|
|
@@ -21659,9 +21659,9 @@ const rv = ["onDblclick"], lv = {
|
|
|
21659
21659
|
p != null && p.label ? (C(), L("div", {
|
|
21660
21660
|
key: 0,
|
|
21661
21661
|
onDblclick: (v) => l(p)
|
|
21662
|
-
},
|
|
21662
|
+
}, Ee(p == null ? void 0 : p.label), 41, rv)) : ee("", !0),
|
|
21663
21663
|
p != null && p.contents && ((m = p == null ? void 0 : p.contents) == null ? void 0 : m.length) > 0 ? (C(), L("div", lv, [
|
|
21664
|
-
(C(!0), L(
|
|
21664
|
+
(C(!0), L(me, null, ve(p == null ? void 0 : p.contents, (v, b) => (C(), L("div", {
|
|
21665
21665
|
key: b,
|
|
21666
21666
|
class: "tabs-children"
|
|
21667
21667
|
}, [
|
|
@@ -21677,7 +21677,7 @@ const rv = ["onDblclick"], lv = {
|
|
|
21677
21677
|
];
|
|
21678
21678
|
}),
|
|
21679
21679
|
default: B(() => [
|
|
21680
|
-
(C(!0), L(
|
|
21680
|
+
(C(!0), L(me, null, ve(p == null ? void 0 : p.children, (m, v) => (C(), L("div", {
|
|
21681
21681
|
key: v,
|
|
21682
21682
|
class: "tabs-contents"
|
|
21683
21683
|
}, [
|
|
@@ -21707,7 +21707,7 @@ const rv = ["onDblclick"], lv = {
|
|
|
21707
21707
|
}, 8, ["modelValue", "tab-position"]);
|
|
21708
21708
|
};
|
|
21709
21709
|
}
|
|
21710
|
-
}, Va = /* @__PURE__ */
|
|
21710
|
+
}, Va = /* @__PURE__ */ Oe(av, [["__scopeId", "data-v-0f027c8c"]]), xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21711
21711
|
__proto__: null,
|
|
21712
21712
|
default: Va
|
|
21713
21713
|
}, Symbol.toStringTag, { value: "Module" }));
|