@gis_victory/curd-form 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as bt, ref as Oe, computed as Ir, watch as fn, openBlock as Q, createBlock as fe, unref as q, withCtx as se, createElementBlock as ye, Fragment as gt, renderList as xn, createElementVNode as Nt, onMounted as Hs, resolveComponent as NS, createVNode as ge, createCommentVNode as Ke, toDisplayString as Vs, normalizeClass as Na, reactive as dn, onUnmounted as RS, renderSlot as _r, createTextVNode as Tt, nextTick as Iu, normalizeStyle as AS, createSlots as wS } from "vue";
2
- import { ElSelect as xu, ElOption as Du, ElDatePicker as Mu, ElCheckboxGroup as t_, ElCheckbox as _d, ElRadioGroup as IS, ElRadio as xS, ElInput as Ra, ElUpload as DS, ElImageViewer as MS, ElMessage as Ye, dayjs as Pa, ElButton as lt, ElIcon as n_, ElDialog as r_, ElForm as fc, ElFormItem as Wi, ElPopover as kS, ElTable as LS, ElTableColumn as Zo, ElPagination as PS, ElRow as Sl, ElCol as Xo, ElMessageBox as ku } from "element-plus";
1
+ import { defineComponent as bt, ref as Oe, computed as Ir, watch as fn, openBlock as Q, createBlock as Se, unref as q, withCtx as se, createElementBlock as ye, Fragment as gt, renderList as xn, createElementVNode as Nt, onMounted as Us, resolveComponent as NS, createVNode as ge, createCommentVNode as Ke, toDisplayString as Hs, normalizeClass as Na, reactive as dn, onUnmounted as RS, renderSlot as _r, createTextVNode as Tt, nextTick as Iu, normalizeStyle as AS, createSlots as wS } from "vue";
2
+ import { ElSelect as xu, ElOption as Du, ElDatePicker as Mu, ElCheckboxGroup as t_, ElCheckbox as _d, ElRadioGroup as IS, ElRadio as xS, ElInput as gc, ElUpload as DS, ElImageViewer as MS, ElMessage as Ye, dayjs as La, ElButton as lt, ElIcon as n_, ElDialog as r_, ElForm as fc, ElFormItem as Wi, ElPopover as kS, ElTable as LS, ElTableColumn as Zo, ElPagination as PS, ElRow as El, ElCol as Xo, ElMessageBox as ku } from "element-plus";
3
3
  import { GisMapView as FS, GisMapSwitch as BS } from "@gis_victory/gismap";
4
4
  const US = {
5
5
  name: "FormItem"
@@ -66,7 +66,7 @@ const US = {
66
66
  }), fn(() => n.modelValue, (c) => {
67
67
  let d = c;
68
68
  i && typeof c == "string" && c && (d = c.split(",")), o.value = d;
69
- }), (c, d) => e.item.searchFormType === "select" || e.item.type === "select" ? (Q(), fe(q(xu), {
69
+ }), (c, d) => e.item.searchFormType === "select" || e.item.type === "select" ? (Q(), Se(q(xu), {
70
70
  key: 0,
71
71
  modelValue: o.value,
72
72
  "onUpdate:modelValue": d[0] || (d[0] = (u) => o.value = u),
@@ -76,14 +76,14 @@ const US = {
76
76
  clearable: ""
77
77
  }, {
78
78
  default: se(() => [
79
- (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), fe(q(Du), {
79
+ (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), Se(q(Du), {
80
80
  key: u.id,
81
81
  label: u.name,
82
82
  value: u.id
83
83
  }, null, 8, ["label", "value"]))), 128))
84
84
  ]),
85
85
  _: 1
86
- }, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "multiple-select" || e.item.type === "multiple-select" ? (Q(), fe(q(xu), {
86
+ }, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "multiple-select" || e.item.type === "multiple-select" ? (Q(), Se(q(xu), {
87
87
  key: 1,
88
88
  modelValue: o.value,
89
89
  "onUpdate:modelValue": d[1] || (d[1] = (u) => o.value = u),
@@ -94,14 +94,14 @@ const US = {
94
94
  clearable: ""
95
95
  }, {
96
96
  default: se(() => [
97
- (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), fe(q(Du), {
97
+ (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), Se(q(Du), {
98
98
  key: u.id,
99
99
  label: u.name,
100
100
  value: u.id
101
101
  }, null, 8, ["label", "value"]))), 128))
102
102
  ]),
103
103
  _: 1
104
- }, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "date" || e.item.type === "date" ? (Q(), fe(q(Mu), {
104
+ }, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "date" || e.item.type === "date" ? (Q(), Se(q(Mu), {
105
105
  key: 2,
106
106
  modelValue: o.value,
107
107
  "onUpdate:modelValue": d[2] || (d[2] = (u) => o.value = u),
@@ -112,7 +112,7 @@ const US = {
112
112
  readonly: l.value,
113
113
  clearable: "",
114
114
  style: { width: "100%" }
115
- }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "daterange" || e.item.type === "daterange" ? (Q(), fe(q(Mu), {
115
+ }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "daterange" || e.item.type === "daterange" ? (Q(), Se(q(Mu), {
116
116
  key: 3,
117
117
  modelValue: o.value,
118
118
  "onUpdate:modelValue": d[3] || (d[3] = (u) => o.value = u),
@@ -122,7 +122,7 @@ const US = {
122
122
  disabled: s.value,
123
123
  readonly: l.value,
124
124
  clearable: ""
125
- }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "checkbox" || e.item.type === "checkbox" ? (Q(), fe(q(t_), {
125
+ }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "checkbox" || e.item.type === "checkbox" ? (Q(), Se(q(t_), {
126
126
  key: 4,
127
127
  modelValue: o.value,
128
128
  "onUpdate:modelValue": d[4] || (d[4] = (u) => o.value = u),
@@ -130,14 +130,14 @@ const US = {
130
130
  readonly: l.value
131
131
  }, {
132
132
  default: se(() => [
133
- (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), fe(q(_d), {
133
+ (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), Se(q(_d), {
134
134
  key: u.id,
135
135
  label: u.name,
136
136
  value: u.id
137
137
  }, null, 8, ["label", "value"]))), 128))
138
138
  ]),
139
139
  _: 1
140
- }, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "radio" || e.item.type === "radio" ? (Q(), fe(q(IS), {
140
+ }, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "radio" || e.item.type === "radio" ? (Q(), Se(q(IS), {
141
141
  key: 5,
142
142
  modelValue: o.value,
143
143
  "onUpdate:modelValue": d[5] || (d[5] = (u) => o.value = u),
@@ -145,14 +145,14 @@ const US = {
145
145
  readonly: l.value
146
146
  }, {
147
147
  default: se(() => [
148
- (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), fe(q(xS), {
148
+ (Q(!0), ye(gt, null, xn(e.dropdownOptions, (u) => (Q(), Se(q(xS), {
149
149
  key: u.id,
150
150
  label: u.name,
151
151
  value: u.id
152
152
  }, null, 8, ["label", "value"]))), 128))
153
153
  ]),
154
154
  _: 1
155
- }, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "textarea" || e.item.type === "textarea" ? (Q(), fe(q(Ra), {
155
+ }, 8, ["modelValue", "disabled", "readonly"])) : e.item.searchFormType === "textarea" || e.item.type === "textarea" ? (Q(), Se(q(gc), {
156
156
  key: 6,
157
157
  modelValue: o.value,
158
158
  "onUpdate:modelValue": d[6] || (d[6] = (u) => o.value = u),
@@ -161,7 +161,7 @@ const US = {
161
161
  disabled: s.value,
162
162
  readonly: l.value,
163
163
  clearable: ""
164
- }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : e.item.searchFormType === "input" || e.item.type === "input" ? (Q(), fe(q(Ra), {
164
+ }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : (Q(), Se(q(gc), {
165
165
  key: 7,
166
166
  modelValue: o.value,
167
167
  "onUpdate:modelValue": d[7] || (d[7] = (u) => o.value = u),
@@ -169,14 +169,6 @@ const US = {
169
169
  disabled: s.value,
170
170
  readonly: l.value,
171
171
  clearable: ""
172
- }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"])) : (Q(), fe(q(Ra), {
173
- key: 8,
174
- modelValue: o.value,
175
- "onUpdate:modelValue": d[8] || (d[8] = (u) => o.value = u),
176
- placeholder: e.item.placeholder || "请输入",
177
- disabled: s.value,
178
- readonly: l.value,
179
- clearable: ""
180
172
  }, null, 8, ["modelValue", "placeholder", "disabled", "readonly"]));
181
173
  }
182
174
  });
@@ -370,7 +362,7 @@ const XS = (e, t) => {
370
362
  }), fn(() => n.modelValue, (g) => {
371
363
  let S = g;
372
364
  r.value = S;
373
- }), Hs(() => {
365
+ }), Us(() => {
374
366
  n.item.type === "upload" && n.modelValue && n.modelValue !== "" && (i.value = XS(n.modelValue, n.download) || []);
375
367
  }), (g, S) => {
376
368
  const E = NS("el-icon");
@@ -403,7 +395,7 @@ const XS = (e, t) => {
403
395
  ]),
404
396
  _: 1
405
397
  }, 8, ["file-list", "action", "headers", "accept", "limit", "disabled", "readonly"]),
406
- o.value ? (Q(), fe(q(MS), {
398
+ o.value ? (Q(), Se(q(MS), {
407
399
  key: 0,
408
400
  "url-list": a.value,
409
401
  "show-progress": "",
@@ -819,11 +811,11 @@ class M {
819
811
  }
820
812
  }
821
813
  M.empty = new M([], 0);
822
- const bl = { index: 0, offset: 0 };
814
+ const Sl = { index: 0, offset: 0 };
823
815
  function Jo(e, t) {
824
- return bl.index = e, bl.offset = t, bl;
816
+ return Sl.index = e, Sl.offset = t, Sl;
825
817
  }
826
- function Fa(e, t) {
818
+ function Pa(e, t) {
827
819
  if (e === t)
828
820
  return !0;
829
821
  if (!(e && typeof e == "object") || !(t && typeof t == "object"))
@@ -835,11 +827,11 @@ function Fa(e, t) {
835
827
  if (e.length != t.length)
836
828
  return !1;
837
829
  for (let r = 0; r < e.length; r++)
838
- if (!Fa(e[r], t[r]))
830
+ if (!Pa(e[r], t[r]))
839
831
  return !1;
840
832
  } else {
841
833
  for (let r in e)
842
- if (!(r in t) || !Fa(e[r], t[r]))
834
+ if (!(r in t) || !Pa(e[r], t[r]))
843
835
  return !1;
844
836
  for (let r in t)
845
837
  if (!(r in e))
@@ -901,7 +893,7 @@ let Me = class Ec {
901
893
  another mark.
902
894
  */
903
895
  eq(t) {
904
- return this == t || this.type == t.type && Fa(this.attrs, t.attrs);
896
+ return this == t || this.type == t.type && Pa(this.attrs, t.attrs);
905
897
  }
906
898
  /**
907
899
  Convert this mark to a JSON-serializeable representation.
@@ -953,7 +945,7 @@ let Me = class Ec {
953
945
  }
954
946
  };
955
947
  Me.none = [];
956
- class Ba extends Error {
948
+ class Fa extends Error {
957
949
  }
958
950
  class V {
959
951
  /**
@@ -1056,9 +1048,9 @@ function c_(e, t, n, r) {
1056
1048
  }
1057
1049
  function ob(e, t, n) {
1058
1050
  if (n.openStart > e.depth)
1059
- throw new Ba("Inserted content deeper than insertion position");
1051
+ throw new Fa("Inserted content deeper than insertion position");
1060
1052
  if (e.depth - n.openStart != t.depth - n.openEnd)
1061
- throw new Ba("Inconsistent open depths");
1053
+ throw new Fa("Inconsistent open depths");
1062
1054
  return d_(e, t, n, 0);
1063
1055
  }
1064
1056
  function d_(e, t, n, r) {
@@ -1074,11 +1066,11 @@ function d_(e, t, n, r) {
1074
1066
  let { start: a, end: s } = ab(n, e);
1075
1067
  return Cr(o, p_(e, a, s, t, r));
1076
1068
  }
1077
- else return Cr(o, Ua(e, t, r));
1069
+ else return Cr(o, Ba(e, t, r));
1078
1070
  }
1079
1071
  function u_(e, t) {
1080
1072
  if (!t.type.compatibleContent(e.type))
1081
- throw new Ba("Cannot join " + t.type.name + " onto " + e.type.name);
1073
+ throw new Fa("Cannot join " + t.type.name + " onto " + e.type.name);
1082
1074
  }
1083
1075
  function Sc(e, t, n) {
1084
1076
  let r = e.node(n);
@@ -1100,13 +1092,13 @@ function Cr(e, t) {
1100
1092
  }
1101
1093
  function p_(e, t, n, r, i) {
1102
1094
  let o = e.depth > i && Sc(e, t, i + 1), a = r.depth > i && Sc(n, r, i + 1), s = [];
1103
- return Ki(null, e, i, s), o && a && t.index(i) == n.index(i) ? (u_(o, a), yr(Cr(o, p_(e, t, n, r, i + 1)), s)) : (o && yr(Cr(o, Ua(e, t, i + 1)), s), Ki(t, n, i, s), a && yr(Cr(a, Ua(n, r, i + 1)), s)), Ki(r, null, i, s), new M(s);
1095
+ return Ki(null, e, i, s), o && a && t.index(i) == n.index(i) ? (u_(o, a), yr(Cr(o, p_(e, t, n, r, i + 1)), s)) : (o && yr(Cr(o, Ba(e, t, i + 1)), s), Ki(t, n, i, s), a && yr(Cr(a, Ba(n, r, i + 1)), s)), Ki(r, null, i, s), new M(s);
1104
1096
  }
1105
- function Ua(e, t, n) {
1097
+ function Ba(e, t, n) {
1106
1098
  let r = [];
1107
1099
  if (Ki(null, e, n, r), e.depth > n) {
1108
1100
  let i = Sc(e, t, n + 1);
1109
- yr(Cr(i, Ua(e, t, n + 1)), r);
1101
+ yr(Cr(i, Ba(e, t, n + 1)), r);
1110
1102
  }
1111
1103
  return Ki(t, null, n, r), new M(r);
1112
1104
  }
@@ -1304,7 +1296,7 @@ class uo {
1304
1296
  return t.blockRange(this);
1305
1297
  for (let r = this.depth - (this.parent.inlineContent || this.pos == t.pos ? 1 : 0); r >= 0; r--)
1306
1298
  if (t.pos <= this.end(r) && (!n || n(this.node(r))))
1307
- return new Ha(this, t, r);
1299
+ return new Ua(this, t, r);
1308
1300
  return null;
1309
1301
  }
1310
1302
  /**
@@ -1372,7 +1364,7 @@ class sb {
1372
1364
  }
1373
1365
  }
1374
1366
  const lb = 12, Fu = /* @__PURE__ */ new WeakMap();
1375
- class Ha {
1367
+ class Ua {
1376
1368
  /**
1377
1369
  Construct a node range. `$from` and `$to` should point into the
1378
1370
  same node until at least the given `depth`, since a node range
@@ -1531,7 +1523,7 @@ let kn = class bc {
1531
1523
  attributes, and marks.
1532
1524
  */
1533
1525
  hasMarkup(t, n, r) {
1534
- return this.type == t && Fa(this.attrs, n || t.defaultAttrs || cb) && Me.sameSet(this.marks, r || Me.none);
1526
+ return this.type == t && Pa(this.attrs, n || t.defaultAttrs || cb) && Me.sameSet(this.marks, r || Me.none);
1535
1527
  }
1536
1528
  /**
1537
1529
  Create a new node with the same markup as this node, containing
@@ -1783,7 +1775,7 @@ let kn = class bc {
1783
1775
  }
1784
1776
  };
1785
1777
  kn.prototype.text = void 0;
1786
- class Va extends kn {
1778
+ class Ha extends kn {
1787
1779
  /**
1788
1780
  @internal
1789
1781
  */
@@ -1805,10 +1797,10 @@ class Va extends kn {
1805
1797
  return this.text.length;
1806
1798
  }
1807
1799
  mark(t) {
1808
- return t == this.marks ? this : new Va(this.type, this.attrs, this.text, t);
1800
+ return t == this.marks ? this : new Ha(this.type, this.attrs, this.text, t);
1809
1801
  }
1810
1802
  withText(t) {
1811
- return t == this.text ? this : new Va(this.type, this.attrs, t, this.marks);
1803
+ return t == this.text ? this : new Ha(this.type, this.attrs, t, this.marks);
1812
1804
  }
1813
1805
  cut(t = 0, n = this.text.length) {
1814
1806
  return t == 0 && n == this.text.length ? this : this.withText(this.text.slice(t, n));
@@ -2405,7 +2397,7 @@ class bb {
2405
2397
  return !this.hasDefault;
2406
2398
  }
2407
2399
  }
2408
- class Gs {
2400
+ class Vs {
2409
2401
  /**
2410
2402
  @internal
2411
2403
  */
@@ -2427,7 +2419,7 @@ class Gs {
2427
2419
  */
2428
2420
  static compile(t, n) {
2429
2421
  let r = /* @__PURE__ */ Object.create(null), i = 0;
2430
- return t.forEach((o, a) => r[o] = new Gs(o, i++, n, a)), r;
2422
+ return t.forEach((o, a) => r[o] = new Vs(o, i++, n, a)), r;
2431
2423
  }
2432
2424
  /**
2433
2425
  When there is a mark of this type in the given set, a new set
@@ -2469,7 +2461,7 @@ class v_ {
2469
2461
  let n = this.spec = {};
2470
2462
  for (let i in t)
2471
2463
  n[i] = t[i];
2472
- n.nodes = nt.from(t.nodes), n.marks = nt.from(t.marks || {}), this.nodes = Hu.compile(this.spec.nodes, this), this.marks = Gs.compile(this.spec.marks, this);
2464
+ n.nodes = nt.from(t.nodes), n.marks = nt.from(t.marks || {}), this.nodes = Hu.compile(this.spec.nodes, this), this.marks = Vs.compile(this.spec.marks, this);
2473
2465
  let r = /* @__PURE__ */ Object.create(null);
2474
2466
  for (let i in this.nodes) {
2475
2467
  if (i in this.marks)
@@ -2511,7 +2503,7 @@ class v_ {
2511
2503
  */
2512
2504
  text(t, n) {
2513
2505
  let r = this.nodes.text;
2514
- return new Va(r, r.defaultAttrs, t, Me.setFrom(n));
2506
+ return new Ha(r, r.defaultAttrs, t, Me.setFrom(n));
2515
2507
  }
2516
2508
  /**
2517
2509
  Create a mark with the given type and attributes.
@@ -3079,7 +3071,7 @@ class Ur {
3079
3071
  nodes.
3080
3072
  */
3081
3073
  serializeFragment(t, n = {}, r) {
3082
- r || (r = vl(n).createDocumentFragment());
3074
+ r || (r = bl(n).createDocumentFragment());
3083
3075
  let i = r, o = [];
3084
3076
  return t.forEach((a) => {
3085
3077
  if (o.length || a.marks.length) {
@@ -3108,7 +3100,7 @@ class Ur {
3108
3100
  @internal
3109
3101
  */
3110
3102
  serializeNodeInner(t, n) {
3111
- let { dom: r, contentDOM: i } = Aa(vl(n), this.nodes[t.type.name](t), null, t.attrs);
3103
+ let { dom: r, contentDOM: i } = Ra(bl(n), this.nodes[t.type.name](t), null, t.attrs);
3112
3104
  if (i) {
3113
3105
  if (t.isLeaf)
3114
3106
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -3136,10 +3128,10 @@ class Ur {
3136
3128
  */
3137
3129
  serializeMark(t, n, r = {}) {
3138
3130
  let i = this.marks[t.type.name];
3139
- return i && Aa(vl(r), i(t, n), null, t.attrs);
3131
+ return i && Ra(bl(r), i(t, n), null, t.attrs);
3140
3132
  }
3141
3133
  static renderSpec(t, n, r = null, i) {
3142
- return Aa(t, n, r, i);
3134
+ return Ra(t, n, r, i);
3143
3135
  }
3144
3136
  /**
3145
3137
  Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
@@ -3171,7 +3163,7 @@ function qu(e) {
3171
3163
  }
3172
3164
  return t;
3173
3165
  }
3174
- function vl(e) {
3166
+ function bl(e) {
3175
3167
  return e.document || window.document;
3176
3168
  }
3177
3169
  const ju = /* @__PURE__ */ new WeakMap();
@@ -3195,7 +3187,7 @@ function Rb(e) {
3195
3187
  }
3196
3188
  return n(e), t;
3197
3189
  }
3198
- function Aa(e, t, n, r) {
3190
+ function Ra(e, t, n, r) {
3199
3191
  if (typeof t == "string")
3200
3192
  return { dom: e.createTextNode(t) };
3201
3193
  if (t.nodeType != null)
@@ -3225,7 +3217,7 @@ function Aa(e, t, n, r) {
3225
3217
  throw new RangeError("Content hole must be the only child of its parent node");
3226
3218
  return { dom: l, contentDOM: l };
3227
3219
  } else {
3228
- let { dom: m, contentDOM: h } = Aa(e, p, n, r);
3220
+ let { dom: m, contentDOM: h } = Ra(e, p, n, r);
3229
3221
  if (l.appendChild(m), h) {
3230
3222
  if (s)
3231
3223
  throw new RangeError("Multiple content holes");
@@ -3245,7 +3237,7 @@ function Wu(e) {
3245
3237
  function wb(e) {
3246
3238
  return (e - (e & T_)) / O_;
3247
3239
  }
3248
- const N_ = 1, R_ = 2, wa = 4, A_ = 8;
3240
+ const N_ = 1, R_ = 2, Aa = 4, A_ = 8;
3249
3241
  class Cc {
3250
3242
  /**
3251
3243
  @internal
@@ -3265,13 +3257,13 @@ class Cc {
3265
3257
  Tells you whether the token before the mapped position was deleted.
3266
3258
  */
3267
3259
  get deletedBefore() {
3268
- return (this.delInfo & (N_ | wa)) > 0;
3260
+ return (this.delInfo & (N_ | Aa)) > 0;
3269
3261
  }
3270
3262
  /**
3271
3263
  True when the token after the mapped position was deleted.
3272
3264
  */
3273
3265
  get deletedAfter() {
3274
- return (this.delInfo & (R_ | wa)) > 0;
3266
+ return (this.delInfo & (R_ | Aa)) > 0;
3275
3267
  }
3276
3268
  /**
3277
3269
  Tells whether any of the steps mapped through deletes across the
@@ -3279,7 +3271,7 @@ class Cc {
3279
3271
  position).
3280
3272
  */
3281
3273
  get deletedAcross() {
3282
- return (this.delInfo & wa) > 0;
3274
+ return (this.delInfo & Aa) > 0;
3283
3275
  }
3284
3276
  }
3285
3277
  class Mt {
@@ -3322,7 +3314,7 @@ class Mt {
3322
3314
  let p = c ? t == l ? -1 : t == u ? 1 : n : n, m = l + i + (p < 0 ? 0 : d);
3323
3315
  if (r)
3324
3316
  return m;
3325
- let h = t == (n < 0 ? l : u) ? null : Ab(s / 3, t - l), _ = t == l ? R_ : t == u ? N_ : wa;
3317
+ let h = t == (n < 0 ? l : u) ? null : Ab(s / 3, t - l), _ = t == l ? R_ : t == u ? N_ : Aa;
3326
3318
  return (n < 0 ? t != l : t != u) && (_ |= A_), new Cc(m, _, h);
3327
3319
  }
3328
3320
  i += d - c;
@@ -3486,7 +3478,7 @@ class li {
3486
3478
  return r ? t : new Cc(t, i, null);
3487
3479
  }
3488
3480
  }
3489
- const yl = /* @__PURE__ */ Object.create(null);
3481
+ const vl = /* @__PURE__ */ Object.create(null);
3490
3482
  class ut {
3491
3483
  /**
3492
3484
  Get the step map that represents the changes made by this step,
@@ -3511,7 +3503,7 @@ class ut {
3511
3503
  static fromJSON(t, n) {
3512
3504
  if (!n || !n.stepType)
3513
3505
  throw new RangeError("Invalid input for Step.fromJSON");
3514
- let r = yl[n.stepType];
3506
+ let r = vl[n.stepType];
3515
3507
  if (!r)
3516
3508
  throw new RangeError(`No step type ${n.stepType} defined`);
3517
3509
  return r.fromJSON(t, n);
@@ -3523,9 +3515,9 @@ class ut {
3523
3515
  that's unlikely to clash with steps from other modules.
3524
3516
  */
3525
3517
  static jsonID(t, n) {
3526
- if (t in yl)
3518
+ if (t in vl)
3527
3519
  throw new RangeError("Duplicate use of step JSON ID " + t);
3528
- return yl[t] = n, n.prototype.jsonID = t, n;
3520
+ return vl[t] = n, n.prototype.jsonID = t, n;
3529
3521
  }
3530
3522
  }
3531
3523
  class qe {
@@ -3556,7 +3548,7 @@ class qe {
3556
3548
  try {
3557
3549
  return qe.ok(t.replace(n, r, i));
3558
3550
  } catch (o) {
3559
- if (o instanceof Ba)
3551
+ if (o instanceof Fa)
3560
3552
  return qe.fail(o.message);
3561
3553
  throw o;
3562
3554
  }
@@ -3872,7 +3864,7 @@ function xb(e, t, n, r) {
3872
3864
  return;
3873
3865
  o++;
3874
3866
  let l = null;
3875
- if (r instanceof Gs) {
3867
+ if (r instanceof Vs) {
3876
3868
  let c = a.marks, d;
3877
3869
  for (; d = r.isInSet(c); )
3878
3870
  (l || (l = [])).push(d), c = d.removeFromSet(c);
@@ -4071,7 +4063,7 @@ function Vb(e, t) {
4071
4063
  function x_(e, t) {
4072
4064
  return !!(e && t && !e.isLeaf && Vb(e, t));
4073
4065
  }
4074
- function zs(e, t, n = -1) {
4066
+ function Gs(e, t, n = -1) {
4075
4067
  let r = e.resolve(t);
4076
4068
  for (let i = r.depth; ; i--) {
4077
4069
  let o, a, s = r.index(i);
@@ -4144,7 +4136,7 @@ function D_(e, t, n) {
4144
4136
  }
4145
4137
  return null;
4146
4138
  }
4147
- function $s(e, t, n = t, r = V.empty) {
4139
+ function zs(e, t, n = t, r = V.empty) {
4148
4140
  if (t == n && !r.size)
4149
4141
  return null;
4150
4142
  let i = e.resolve(t), o = e.resolve(n);
@@ -4199,7 +4191,7 @@ class $b {
4199
4191
  for (let n = 1; n <= 2; n++)
4200
4192
  for (let r = n == 1 ? t : this.unplaced.openStart; r >= 0; r--) {
4201
4193
  let i, o = null;
4202
- r ? (o = Cl(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
4194
+ r ? (o = yl(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
4203
4195
  let a = i.firstChild;
4204
4196
  for (let s = this.depth; s >= 0; s--) {
4205
4197
  let { type: l, match: c } = this.frontier[s], d, u = null;
@@ -4213,11 +4205,11 @@ class $b {
4213
4205
  }
4214
4206
  }
4215
4207
  openMore() {
4216
- let { content: t, openStart: n, openEnd: r } = this.unplaced, i = Cl(t, n);
4208
+ let { content: t, openStart: n, openEnd: r } = this.unplaced, i = yl(t, n);
4217
4209
  return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new V(t, n + 1, Math.max(r, i.size + n >= t.size - r ? n + 1 : 0)), !0);
4218
4210
  }
4219
4211
  dropNode() {
4220
- let { content: t, openStart: n, openEnd: r } = this.unplaced, i = Cl(t, n);
4212
+ let { content: t, openStart: n, openEnd: r } = this.unplaced, i = yl(t, n);
4221
4213
  if (i.childCount <= 1 && n > 0) {
4222
4214
  let o = t.size - n <= n + i.size;
4223
4215
  this.unplaced = new V($i(t, n - 1, 1), n - 1, o ? n - 1 : r);
@@ -4258,7 +4250,7 @@ class $b {
4258
4250
  if (!this.$to.parent.isTextblock)
4259
4251
  return -1;
4260
4252
  let t = this.frontier[this.depth], n;
4261
- if (!t.type.isTextblock || !Tl(this.$to, this.$to.depth, t.type, t.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
4253
+ if (!t.type.isTextblock || !Cl(this.$to, this.$to.depth, t.type, t.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
4262
4254
  return -1;
4263
4255
  let { depth: r } = this.$to, i = this.$to.after(r);
4264
4256
  for (; r > 1 && i == this.$to.end(--r); )
@@ -4267,10 +4259,10 @@ class $b {
4267
4259
  }
4268
4260
  findCloseLevel(t) {
4269
4261
  e: for (let n = Math.min(this.depth, t.depth); n >= 0; n--) {
4270
- let { match: r, type: i } = this.frontier[n], o = n < t.depth && t.end(n + 1) == t.pos + (t.depth - (n + 1)), a = Tl(t, n, i, r, o);
4262
+ let { match: r, type: i } = this.frontier[n], o = n < t.depth && t.end(n + 1) == t.pos + (t.depth - (n + 1)), a = Cl(t, n, i, r, o);
4271
4263
  if (a) {
4272
4264
  for (let s = n - 1; s >= 0; s--) {
4273
- let { match: l, type: c } = this.frontier[s], d = Tl(t, s, c, l, !0);
4265
+ let { match: l, type: c } = this.frontier[s], d = Cl(t, s, c, l, !0);
4274
4266
  if (!d || d.childCount)
4275
4267
  continue e;
4276
4268
  }
@@ -4306,7 +4298,7 @@ function $i(e, t, n) {
4306
4298
  function Yi(e, t, n) {
4307
4299
  return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(Yi(e.lastChild.content, t - 1, n)));
4308
4300
  }
4309
- function Cl(e, t) {
4301
+ function yl(e, t) {
4310
4302
  for (let n = 0; n < t; n++)
4311
4303
  e = e.firstChild.content;
4312
4304
  return e;
@@ -4317,7 +4309,7 @@ function k_(e, t, n) {
4317
4309
  let r = e.content;
4318
4310
  return t > 1 && (r = r.replaceChild(0, k_(r.firstChild, t - 1, r.childCount == 1 ? n - 1 : 0))), t > 0 && (r = e.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(e.type.contentMatch.matchFragment(r).fillBefore(M.empty, !0)))), e.copy(r);
4319
4311
  }
4320
- function Tl(e, t, n, r, i) {
4312
+ function Cl(e, t, n, r, i) {
4321
4313
  let o = e.node(t), a = i ? e.indexAfter(t) : e.index(t);
4322
4314
  if (a == o.childCount && !n.compatibleContent(o.type))
4323
4315
  return null;
@@ -4552,7 +4544,7 @@ class Sd {
4552
4544
  given `slice`.
4553
4545
  */
4554
4546
  replace(t, n = t, r = V.empty) {
4555
- let i = $s(this.doc, t, n, r);
4547
+ let i = zs(this.doc, t, n, r);
4556
4548
  return i && this.step(i), this;
4557
4549
  }
4558
4550
  /**
@@ -4723,7 +4715,7 @@ class Sd {
4723
4715
  return fd(this, t, n, r), this;
4724
4716
  }
4725
4717
  }
4726
- const Ol = /* @__PURE__ */ Object.create(null);
4718
+ const Tl = /* @__PURE__ */ Object.create(null);
4727
4719
  class le {
4728
4720
  /**
4729
4721
  Initialize a selection with the head and anchor and ranges. If no
@@ -4859,7 +4851,7 @@ class le {
4859
4851
  static fromJSON(t, n) {
4860
4852
  if (!n || !n.type)
4861
4853
  throw new RangeError("Invalid input for Selection.fromJSON");
4862
- let r = Ol[n.type];
4854
+ let r = Tl[n.type];
4863
4855
  if (!r)
4864
4856
  throw new RangeError(`No selection type ${n.type} defined`);
4865
4857
  return r.fromJSON(t, n);
@@ -4871,9 +4863,9 @@ class le {
4871
4863
  clash with classes from other modules.
4872
4864
  */
4873
4865
  static jsonID(t, n) {
4874
- if (t in Ol)
4866
+ if (t in Tl)
4875
4867
  throw new RangeError("Duplicate use of selection JSON ID " + t);
4876
- return Ol[t] = n, n.prototype.jsonID = t, n;
4868
+ return Tl[t] = n, n.prototype.jsonID = t, n;
4877
4869
  }
4878
4870
  /**
4879
4871
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -4932,7 +4924,7 @@ class ee extends le {
4932
4924
  return t instanceof ee && t.anchor == this.anchor && t.head == this.head;
4933
4925
  }
4934
4926
  getBookmark() {
4935
- return new Ys(this.anchor, this.head);
4927
+ return new $s(this.anchor, this.head);
4936
4928
  }
4937
4929
  toJSON() {
4938
4930
  return { type: "text", anchor: this.anchor, head: this.head };
@@ -4973,12 +4965,12 @@ class ee extends le {
4973
4965
  }
4974
4966
  }
4975
4967
  le.jsonID("text", ee);
4976
- class Ys {
4968
+ class $s {
4977
4969
  constructor(t, n) {
4978
4970
  this.anchor = t, this.head = n;
4979
4971
  }
4980
4972
  map(t) {
4981
- return new Ys(t.map(this.anchor), t.map(this.head));
4973
+ return new $s(t.map(this.anchor), t.map(this.head));
4982
4974
  }
4983
4975
  resolve(t) {
4984
4976
  return ee.between(t.resolve(this.anchor), t.resolve(this.head));
@@ -5039,7 +5031,7 @@ class bd {
5039
5031
  }
5040
5032
  map(t) {
5041
5033
  let { deleted: n, pos: r } = t.mapResult(this.anchor);
5042
- return n ? new Ys(r, r) : new bd(r);
5034
+ return n ? new $s(r, r) : new bd(r);
5043
5035
  }
5044
5036
  resolve(t) {
5045
5037
  let n = t.resolve(this.anchor), r = n.nodeAfter;
@@ -5312,7 +5304,7 @@ const Xb = [
5312
5304
  }
5313
5305
  })
5314
5306
  ];
5315
- class Nl {
5307
+ class Ol {
5316
5308
  constructor(t, n) {
5317
5309
  this.schema = t, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Xb.slice(), n && n.forEach((r) => {
5318
5310
  if (this.pluginsByKey[r.key])
@@ -5413,7 +5405,7 @@ class oi {
5413
5405
  Create a new state.
5414
5406
  */
5415
5407
  static create(t) {
5416
- let n = new Nl(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new oi(n);
5408
+ let n = new Ol(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new oi(n);
5417
5409
  for (let i = 0; i < n.fields.length; i++)
5418
5410
  r[n.fields[i].name] = n.fields[i].init(t, r);
5419
5411
  return r;
@@ -5427,7 +5419,7 @@ class oi {
5427
5419
  configuration object..
5428
5420
  */
5429
5421
  reconfigure(t) {
5430
- let n = new Nl(this.schema, t.plugins), r = n.fields, i = new oi(n);
5422
+ let n = new Ol(this.schema, t.plugins), r = n.fields, i = new oi(n);
5431
5423
  for (let o = 0; o < r.length; o++) {
5432
5424
  let a = r[o].name;
5433
5425
  i[a] = this.hasOwnProperty(a) ? this[a] : r[o].init(t, i);
@@ -5464,7 +5456,7 @@ class oi {
5464
5456
  throw new RangeError("Invalid input for EditorState.fromJSON");
5465
5457
  if (!t.schema)
5466
5458
  throw new RangeError("Required config field 'schema' missing");
5467
- let i = new Nl(t.schema, t.plugins), o = new oi(i);
5459
+ let i = new Ol(t.schema, t.plugins), o = new oi(i);
5468
5460
  return i.fields.forEach((a) => {
5469
5461
  if (a.name == "doc")
5470
5462
  o.doc = kn.fromJSON(t.schema, n.doc);
@@ -5507,9 +5499,9 @@ class Ne {
5507
5499
  return t[this.key];
5508
5500
  }
5509
5501
  }
5510
- const Rl = /* @__PURE__ */ Object.create(null);
5502
+ const Nl = /* @__PURE__ */ Object.create(null);
5511
5503
  function U_(e) {
5512
- return e in Rl ? e + "$" + ++Rl[e] : (Rl[e] = 0, e + "$");
5504
+ return e in Nl ? e + "$" + ++Nl[e] : (Nl[e] = 0, e + "$");
5513
5505
  }
5514
5506
  class De {
5515
5507
  /**
@@ -5613,7 +5605,7 @@ function Po(e) {
5613
5605
  ;
5614
5606
  return t && t.node && t.node.isBlock && (t.dom == e || t.contentDOM == e);
5615
5607
  }
5616
- const qs = function(e) {
5608
+ const Ys = function(e) {
5617
5609
  return e.focusNode && Dr(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset);
5618
5610
  };
5619
5611
  function fr(e, t) {
@@ -5874,14 +5866,14 @@ function q_(e, t, n) {
5874
5866
  if (o == null && i && (n < 0 || i == qt(r))) {
5875
5867
  let s = r.childNodes[i - 1];
5876
5868
  if (s.nodeType == 1)
5877
- return Al(s.getBoundingClientRect(), !1);
5869
+ return Rl(s.getBoundingClientRect(), !1);
5878
5870
  }
5879
5871
  if (o == null && i < qt(r)) {
5880
5872
  let s = r.childNodes[i];
5881
5873
  if (s.nodeType == 1)
5882
- return Al(s.getBoundingClientRect(), !0);
5874
+ return Rl(s.getBoundingClientRect(), !0);
5883
5875
  }
5884
- return Al(r.getBoundingClientRect(), n >= 0);
5876
+ return Rl(r.getBoundingClientRect(), n >= 0);
5885
5877
  }
5886
5878
  if (o == null && i && (n < 0 || i == qt(r))) {
5887
5879
  let s = r.childNodes[i - 1], l = s.nodeType == 3 ? wn(s, qt(s) - (a ? 0 : 1)) : s.nodeType == 1 && (s.nodeName != "BR" || !s.nextSibling) ? s : null;
@@ -5904,7 +5896,7 @@ function ki(e, t) {
5904
5896
  let n = t ? e.left : e.right;
5905
5897
  return { top: e.top, bottom: e.bottom, left: n, right: n };
5906
5898
  }
5907
- function Al(e, t) {
5899
+ function Rl(e, t) {
5908
5900
  if (e.height == 0)
5909
5901
  return e;
5910
5902
  let n = t ? e.top : e.bottom;
@@ -6435,7 +6427,7 @@ class rr extends Bo {
6435
6427
  } else d || ({ dom: d, contentDOM: u } = Ur.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
6436
6428
  !u && !n.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), n.type.spec.draggable && (d.draggable = !0));
6437
6429
  let p = d;
6438
- return d = X_(d, r, n), c ? l = new Tv(t, n, r, i, d, u || null, p, c, o, a + 1) : n.isText ? new js(t, n, r, i, d, p, o) : new rr(t, n, r, i, d, u || null, p, o, a + 1);
6430
+ return d = X_(d, r, n), c ? l = new Tv(t, n, r, i, d, u || null, p, c, o, a + 1) : n.isText ? new qs(t, n, r, i, d, p, o) : new rr(t, n, r, i, d, u || null, p, o, a + 1);
6439
6431
  }
6440
6432
  parseRule() {
6441
6433
  if (this.node.type.spec.reparseInView)
@@ -6458,7 +6450,7 @@ class rr extends Bo {
6458
6450
  return t;
6459
6451
  }
6460
6452
  matchesNode(t, n, r) {
6461
- return this.dirty == jt && t.eq(this.node) && Ga(n, this.outerDeco) && r.eq(this.innerDeco);
6453
+ return this.dirty == jt && t.eq(this.node) && Va(n, this.outerDeco) && r.eq(this.innerDeco);
6462
6454
  }
6463
6455
  get size() {
6464
6456
  return this.node.nodeSize;
@@ -6516,7 +6508,7 @@ class rr extends Bo {
6516
6508
  this.updateOuterDeco(n), this.node = t, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = jt;
6517
6509
  }
6518
6510
  updateOuterDeco(t) {
6519
- if (Ga(t, this.outerDeco))
6511
+ if (Va(t, this.outerDeco))
6520
6512
  return;
6521
6513
  let n = this.nodeDOM.nodeType != 1, r = this.dom;
6522
6514
  this.dom = Z_(this.dom, this.nodeDOM, wc(this.outerDeco, this.node, n), wc(t, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = t;
@@ -6538,7 +6530,7 @@ function dp(e, t, n, r, i) {
6538
6530
  let o = new rr(void 0, e, t, n, r, r, r, i, 0);
6539
6531
  return o.contentDOM && o.updateChildren(i, 0), o;
6540
6532
  }
6541
- class js extends rr {
6533
+ class qs extends rr {
6542
6534
  constructor(t, n, r, i, o, a, s) {
6543
6535
  super(t, n, r, i, o, null, a, s, 0);
6544
6536
  }
@@ -6569,7 +6561,7 @@ class js extends rr {
6569
6561
  }
6570
6562
  slice(t, n, r) {
6571
6563
  let i = this.node.cut(t, n), o = document.createTextNode(i.text);
6572
- return new js(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
6564
+ return new qs(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
6573
6565
  }
6574
6566
  markDirty(t, n) {
6575
6567
  super.markDirty(t, n), this.dom != this.nodeDOM && (t == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = Sn);
@@ -6708,7 +6700,7 @@ function Ov(e, t, n) {
6708
6700
  function X_(e, t, n) {
6709
6701
  return Z_(e, e, br, wc(t, n, e.nodeType != 1));
6710
6702
  }
6711
- function Ga(e, t) {
6703
+ function Va(e, t) {
6712
6704
  if (e.length != t.length)
6713
6705
  return !1;
6714
6706
  for (let n = 0; n < e.length; n++)
@@ -6810,7 +6802,7 @@ class Nv {
6810
6802
  let c = this.preMatch.matched.get(l);
6811
6803
  if (c != null && c != o)
6812
6804
  return !1;
6813
- let d = l.dom, u, p = this.isLocked(d) && !(t.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == t.text && l.dirty != Sn && Ga(n, l.outerDeco));
6805
+ let d = l.dom, u, p = this.isLocked(d) && !(t.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == t.text && l.dirty != Sn && Va(n, l.outerDeco));
6814
6806
  if (!p && l.update(t, n, r, i))
6815
6807
  return this.destroyBetween(this.index, s), l.dom != d && (this.changed = !0), this.index++, !0;
6816
6808
  if (!p && (u = this.recreateWrapper(l, t, n, r, i, a)))
@@ -6823,7 +6815,7 @@ class Nv {
6823
6815
  // When a node with content is replaced by a different node with
6824
6816
  // identical content, move over its children.
6825
6817
  recreateWrapper(t, n, r, i, o, a) {
6826
- if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !Ga(r, t.outerDeco) || !i.eq(t.innerDeco))
6818
+ if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !Va(r, t.outerDeco) || !i.eq(t.innerDeco))
6827
6819
  return null;
6828
6820
  let s = rr.create(this.top, n, r, i, o, a);
6829
6821
  if (s.contentDOM) {
@@ -6854,7 +6846,7 @@ class Nv {
6854
6846
  for (; t instanceof Mr; )
6855
6847
  n = t, t = n.children[n.children.length - 1];
6856
6848
  (!t || // Empty textblock
6857
- !(t instanceof js) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((ft || ct) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
6849
+ !(t instanceof qs) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((ft || ct) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
6858
6850
  }
6859
6851
  addHackNode(t, n) {
6860
6852
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(t))
@@ -6994,7 +6986,7 @@ function yd(e, t = null) {
6994
6986
  if (a < 0)
6995
6987
  return null;
6996
6988
  let s = r.resolve(a), l, c;
6997
- if (qs(n)) {
6989
+ if (Ys(n)) {
6998
6990
  for (l = a; i && !i.node; )
6999
6991
  i = i.parent;
7000
6992
  let u = i.node;
@@ -7050,15 +7042,15 @@ const pp = ft || ct && V_ < 63;
7050
7042
  function mp(e, t) {
7051
7043
  let { node: n, offset: r } = e.docView.domFromPos(t, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, o = r ? n.childNodes[r - 1] : null;
7052
7044
  if (ft && i && i.contentEditable == "false")
7053
- return wl(i);
7045
+ return Al(i);
7054
7046
  if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
7055
7047
  if (i)
7056
- return wl(i);
7048
+ return Al(i);
7057
7049
  if (o)
7058
- return wl(o);
7050
+ return Al(o);
7059
7051
  }
7060
7052
  }
7061
- function wl(e) {
7053
+ function Al(e) {
7062
7054
  return e.contentEditable = "true", ft && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
7063
7055
  }
7064
7056
  function hp(e) {
@@ -7148,7 +7140,7 @@ function fp(e, t, n) {
7148
7140
  }
7149
7141
  }
7150
7142
  }
7151
- function za(e) {
7143
+ function Ga(e) {
7152
7144
  return e.nodeType == 3 ? e.nodeValue.length : e.childNodes.length;
7153
7145
  }
7154
7146
  function Xi(e, t) {
@@ -7163,7 +7155,7 @@ function Lv(e) {
7163
7155
  if (!n)
7164
7156
  return;
7165
7157
  let i, o, a = !1;
7166
- for (tn && n.nodeType == 1 && r < za(n) && Xi(n.childNodes[r], -1) && (a = !0); ; )
7158
+ for (tn && n.nodeType == 1 && r < Ga(n) && Xi(n.childNodes[r], -1) && (a = !0); ; )
7167
7159
  if (r > 0) {
7168
7160
  if (n.nodeType != 1)
7169
7161
  break;
@@ -7184,7 +7176,7 @@ function Lv(e) {
7184
7176
  for (; s && Xi(s, -1); )
7185
7177
  i = n.parentNode, o = rt(s), s = s.previousSibling;
7186
7178
  if (s)
7187
- n = s, r = za(n);
7179
+ n = s, r = Ga(n);
7188
7180
  else {
7189
7181
  if (n = n.parentNode, n == e.dom)
7190
7182
  break;
@@ -7198,7 +7190,7 @@ function Pv(e) {
7198
7190
  let t = e.domSelectionRange(), n = t.focusNode, r = t.focusOffset;
7199
7191
  if (!n)
7200
7192
  return;
7201
- let i = za(n), o, a;
7193
+ let i = Ga(n), o, a;
7202
7194
  for (; ; )
7203
7195
  if (r < i) {
7204
7196
  if (n.nodeType != 1)
@@ -7216,7 +7208,7 @@ function Pv(e) {
7216
7208
  for (; s && Xi(s, 1); )
7217
7209
  o = s.parentNode, a = rt(s) + 1, s = s.nextSibling;
7218
7210
  if (s)
7219
- n = s, r = 0, i = za(n);
7211
+ n = s, r = 0, i = Ga(n);
7220
7212
  else {
7221
7213
  if (n = n.parentNode, n == e.dom)
7222
7214
  break;
@@ -7262,7 +7254,7 @@ function Dc(e, t, n) {
7262
7254
  let r = e.domSelection();
7263
7255
  if (!r)
7264
7256
  return;
7265
- if (qs(r)) {
7257
+ if (Ys(r)) {
7266
7258
  let o = document.createRange();
7267
7259
  o.setEnd(t, n), o.setStart(t, n), r.removeAllRanges(), r.addRange(o);
7268
7260
  } else r.extend && r.extend(t, n);
@@ -7512,10 +7504,10 @@ let Cp = null;
7512
7504
  function cg() {
7513
7505
  return Cp || (Cp = document.implementation.createHTMLDocument("title"));
7514
7506
  }
7515
- let Il = null;
7507
+ let wl = null;
7516
7508
  function $v(e) {
7517
7509
  let t = window.trustedTypes;
7518
- return t ? (Il || (Il = t.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), Il.createHTML(e)) : e;
7510
+ return t ? (wl || (wl = t.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), wl.createHTML(e)) : e;
7519
7511
  }
7520
7512
  function Yv(e) {
7521
7513
  let t = /^(\s*<meta [^>]*>)*/.exec(e);
@@ -7627,7 +7619,7 @@ St.keypress = (e, t) => {
7627
7619
  !/[\r\n]/.test(i) && !e.someProp("handleTextInput", (o) => o(e, r.$from.pos, r.$to.pos, i)) && e.dispatch(e.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
7628
7620
  }
7629
7621
  };
7630
- function Ws(e) {
7622
+ function js(e) {
7631
7623
  return { left: e.clientX, top: e.clientY };
7632
7624
  }
7633
7625
  function ey(e, t) {
@@ -7698,7 +7690,7 @@ function ay(e, t, n) {
7698
7690
  }
7699
7691
  }
7700
7692
  function Nd(e) {
7701
- return $a(e);
7693
+ return za(e);
7702
7694
  }
7703
7695
  const dg = Yt ? "metaKey" : "ctrlKey";
7704
7696
  Et.mousedown = (e, t) => {
@@ -7706,7 +7698,7 @@ Et.mousedown = (e, t) => {
7706
7698
  e.input.shiftKey = n.shiftKey;
7707
7699
  let r = Nd(e), i = Date.now(), o = "singleClick";
7708
7700
  i - e.input.lastClick.time < 500 && ey(n, e.input.lastClick) && !n[dg] && (e.input.lastClick.type == "singleClick" ? o = "doubleClick" : e.input.lastClick.type == "doubleClick" && (o = "tripleClick")), e.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
7709
- let a = e.posAtCoords(Ws(n));
7701
+ let a = e.posAtCoords(js(n));
7710
7702
  a && (o == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new sy(e, a, n, !!r)) : (o == "doubleClick" ? iy : oy)(e, a.pos, a.inside, n) ? n.preventDefault() : Zn(e, "pointer"));
7711
7703
  };
7712
7704
  class sy {
@@ -7738,7 +7730,7 @@ class sy {
7738
7730
  if (this.done(), !this.view.dom.contains(t.target))
7739
7731
  return;
7740
7732
  let n = this.pos;
7741
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ws(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Zn(this.view, "pointer") : ry(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
7733
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(js(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Zn(this.view, "pointer") : ry(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
7742
7734
  ft && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
7743
7735
  // cursor, but still report that the node is selected
7744
7736
  // when asked through getSelection. You'll then get a
@@ -7771,8 +7763,8 @@ St.compositionstart = St.compositionupdate = (e) => {
7771
7763
  e.domObserver.flush();
7772
7764
  let { state: t } = e, n = t.selection.$to;
7773
7765
  if (t.selection instanceof ee && (t.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
7774
- e.markCursor = e.state.storedMarks || n.marks(), $a(e, !0), e.markCursor = null;
7775
- else if ($a(e, !t.selection.empty), tn && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
7766
+ e.markCursor = e.state.storedMarks || n.marks(), za(e, !0), e.markCursor = null;
7767
+ else if (za(e, !t.selection.empty), tn && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
7776
7768
  let r = e.domSelectionRange();
7777
7769
  for (let i = r.focusNode, o = r.focusOffset; i && i.nodeType == 1 && o != 0; ) {
7778
7770
  let a = o < 0 ? i.lastChild : i.childNodes[o - 1];
@@ -7794,7 +7786,7 @@ St.compositionend = (e, t) => {
7794
7786
  e.composing && (e.input.composing = !1, e.input.compositionEndedAt = t.timeStamp, e.input.compositionPendingChanges = e.domObserver.pendingRecords().length ? e.input.compositionID : 0, e.input.compositionNode = null, e.input.compositionPendingChanges && Promise.resolve().then(() => e.domObserver.flush()), e.input.compositionID++, pg(e, 20));
7795
7787
  };
7796
7788
  function pg(e, t) {
7797
- clearTimeout(e.input.composingTimeout), t > -1 && (e.input.composingTimeout = setTimeout(() => $a(e), t));
7789
+ clearTimeout(e.input.composingTimeout), t > -1 && (e.input.composingTimeout = setTimeout(() => za(e), t));
7798
7790
  }
7799
7791
  function mg(e) {
7800
7792
  for (e.composing && (e.input.composing = !1, e.input.compositionEndedAt = dy()); e.input.compositionNodes.length > 0; )
@@ -7823,7 +7815,7 @@ function dy() {
7823
7815
  let e = document.createEvent("Event");
7824
7816
  return e.initEvent("event", !0, !0), e.timeStamp;
7825
7817
  }
7826
- function $a(e, t = !1) {
7818
+ function za(e, t = !1) {
7827
7819
  if (!(Dn && e.domObserver.flushingSoon >= 0)) {
7828
7820
  if (e.domObserver.forceFlush(), mg(e), t || e.docView && e.docView.dirty) {
7829
7821
  let n = yd(e);
@@ -7896,7 +7888,7 @@ Et.dragstart = (e, t) => {
7896
7888
  let n = t, r = e.input.mouseDown;
7897
7889
  if (r && r.done(), !n.dataTransfer)
7898
7890
  return;
7899
- let i = e.state.selection, o = i.empty ? null : e.posAtCoords(Ws(n)), a;
7891
+ let i = e.state.selection, o = i.empty ? null : e.posAtCoords(js(n)), a;
7900
7892
  if (!(o && o.pos >= i.from && o.pos <= (i instanceof re ? i.to - 1 : i.to))) {
7901
7893
  if (r && r.mightDrag)
7902
7894
  a = re.create(e.state.doc, r.mightDrag.pos);
@@ -7919,7 +7911,7 @@ St.drop = (e, t) => {
7919
7911
  let n = t, r = e.dragging;
7920
7912
  if (e.dragging = null, !n.dataTransfer)
7921
7913
  return;
7922
- let i = e.posAtCoords(Ws(n));
7914
+ let i = e.posAtCoords(js(n));
7923
7915
  if (!i)
7924
7916
  return;
7925
7917
  let o = e.state.doc.resolve(i.pos), a = r && r.slice;
@@ -7987,7 +7979,7 @@ function fo(e, t) {
7987
7979
  return !1;
7988
7980
  return !0;
7989
7981
  }
7990
- class Ya {
7982
+ class $a {
7991
7983
  constructor(t, n) {
7992
7984
  this.toDOM = t, this.spec = n || Tr, this.side = this.spec.side || 0;
7993
7985
  }
@@ -7999,7 +7991,7 @@ class Ya {
7999
7991
  return !0;
8000
7992
  }
8001
7993
  eq(t) {
8002
- return this == t || t instanceof Ya && (this.spec.key && this.spec.key == t.spec.key || this.toDOM == t.toDOM && fo(this.spec, t.spec));
7994
+ return this == t || t instanceof $a && (this.spec.key && this.spec.key == t.spec.key || this.toDOM == t.toDOM && fo(this.spec, t.spec));
8003
7995
  }
8004
7996
  destroy(t) {
8005
7997
  this.spec.destroy && this.spec.destroy(t);
@@ -8080,7 +8072,7 @@ class Ge {
8080
8072
  widget's current document position.
8081
8073
  */
8082
8074
  static widget(t, n, r) {
8083
- return new Ge(t, t, new Ya(n, r));
8075
+ return new Ge(t, t, new $a(n, r));
8084
8076
  }
8085
8077
  /**
8086
8078
  Creates an inline decoration, which adds the given attributes to
@@ -8114,7 +8106,7 @@ class Ge {
8114
8106
  @internal
8115
8107
  */
8116
8108
  get widget() {
8117
- return this.type instanceof Ya;
8109
+ return this.type instanceof $a;
8118
8110
  }
8119
8111
  }
8120
8112
  const ei = [], Tr = {};
@@ -8131,7 +8123,7 @@ class Ae {
8131
8123
  you must make a copy if you want need to preserve that.
8132
8124
  */
8133
8125
  static create(t, n) {
8134
- return n.length ? qa(n, t, 0, Tr) : st;
8126
+ return n.length ? Ya(n, t, 0, Tr) : st;
8135
8127
  }
8136
8128
  /**
8137
8129
  Find all decorations in this set which touch the given range
@@ -8190,7 +8182,7 @@ class Ae {
8190
8182
  if (d = Eg(n, s, c)) {
8191
8183
  for (i || (i = this.children.slice()); o < i.length && i[o] < l; )
8192
8184
  o += 3;
8193
- i[o] == l ? i[o + 2] = i[o + 2].addInner(s, d, c + 1) : i.splice(o, 0, l, l + s.nodeSize, qa(d, s, c + 1, Tr)), o += 3;
8185
+ i[o] == l ? i[o + 2] = i[o + 2].addInner(s, d, c + 1) : i.splice(o, 0, l, l + s.nodeSize, Ya(d, s, c + 1, Tr)), o += 3;
8194
8186
  }
8195
8187
  });
8196
8188
  let a = fg(o ? Sg(n) : n, -r);
@@ -8386,7 +8378,7 @@ function hy(e, t, n, r, i, o, a) {
8386
8378
  l = !0;
8387
8379
  }
8388
8380
  if (l) {
8389
- let c = _y(s, e, t, n, i, o, a), d = qa(c, r, 0, a);
8381
+ let c = _y(s, e, t, n, i, o, a), d = Ya(c, r, 0, a);
8390
8382
  t = d.local;
8391
8383
  for (let u = 0; u < s.length; u += 3)
8392
8384
  s[u + 1] < 0 && (s.splice(u, 3), u -= 3);
@@ -8436,13 +8428,13 @@ function Sg(e) {
8436
8428
  e[n] != null && t.push(e[n]);
8437
8429
  return t;
8438
8430
  }
8439
- function qa(e, t, n, r) {
8431
+ function Ya(e, t, n, r) {
8440
8432
  let i = [], o = !1;
8441
8433
  t.forEach((s, l) => {
8442
8434
  let c = Eg(e, s, l + n);
8443
8435
  if (c) {
8444
8436
  o = !0;
8445
- let d = qa(c, s, n + l + 1, r);
8437
+ let d = Ya(c, s, n + l + 1, r);
8446
8438
  d != st && i.push(l, l + s.nodeSize, d);
8447
8439
  }
8448
8440
  });
@@ -8477,7 +8469,7 @@ function Tp(e, t, n) {
8477
8469
  t++;
8478
8470
  e.splice(t, 0, n);
8479
8471
  }
8480
- function xl(e) {
8472
+ function Il(e) {
8481
8473
  let t = [];
8482
8474
  return e.someProp("decorations", (n) => {
8483
8475
  let r = n(e.state);
@@ -8613,7 +8605,7 @@ class Sy {
8613
8605
  }
8614
8606
  }
8615
8607
  let c = null;
8616
- o < 0 && i && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && qs(r) && (c = yd(t)) && c.eq(le.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, Ln(t), this.currentSelection.set(r), t.scrollToSelection()) : (o > -1 || i) && (o > -1 && (t.docView.markDirty(o, a), by(t)), this.handleDOMChange(o, a, s, l), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || Ln(t), this.currentSelection.set(r));
8608
+ o < 0 && i && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Ys(r) && (c = yd(t)) && c.eq(le.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, Ln(t), this.currentSelection.set(r), t.scrollToSelection()) : (o > -1 || i) && (o > -1 && (t.docView.markDirty(o, a), by(t)), this.handleDOMChange(o, a, s, l), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || Ln(t), this.currentSelection.set(r));
8617
8609
  }
8618
8610
  registerMutation(t, n) {
8619
8611
  if (n.indexOf(t.target) > -1)
@@ -8682,7 +8674,7 @@ function yy(e, t) {
8682
8674
  }
8683
8675
  function Cy(e, t, n) {
8684
8676
  let { node: r, fromOffset: i, toOffset: o, from: a, to: s } = e.docView.parseRange(t, n), l = e.domSelectionRange(), c, d = l.anchorNode;
8685
- if (d && e.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: l.anchorOffset }], qs(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), ct && e.input.lastKeyCode === 8)
8677
+ if (d && e.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: l.anchorOffset }], Ys(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), ct && e.input.lastKeyCode === 8)
8686
8678
  for (let g = o; g > i; g--) {
8687
8679
  let S = r.childNodes[g - 1], E = S.pmViewDesc;
8688
8680
  if (S.nodeName == "BR" && !E) {
@@ -8820,7 +8812,7 @@ function Ay(e, t, n, r, i) {
8820
8812
  if (
8821
8813
  // The content must have shrunk
8822
8814
  n - t <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
8823
- Dl(r, !0, !1) < i.pos
8815
+ xl(r, !0, !1) < i.pos
8824
8816
  )
8825
8817
  return !1;
8826
8818
  let o = e.resolve(t);
@@ -8830,10 +8822,10 @@ function Ay(e, t, n, r, i) {
8830
8822
  }
8831
8823
  if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
8832
8824
  return !1;
8833
- let a = e.resolve(Dl(o, !0, !0));
8834
- return !a.parent.isTextblock || a.pos > n || Dl(a, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(a.parent.content);
8825
+ let a = e.resolve(xl(o, !0, !0));
8826
+ return !a.parent.isTextblock || a.pos > n || xl(a, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(a.parent.content);
8835
8827
  }
8836
- function Dl(e, t, n) {
8828
+ function xl(e, t, n) {
8837
8829
  let r = e.depth, i = t ? e.end() : e.pos;
8838
8830
  for (; r > 0 && (t || e.indexAfter(r) == e.node(r).childCount); )
8839
8831
  r--, i++, t = !1;
@@ -8877,7 +8869,7 @@ class Iy {
8877
8869
  added to the document.
8878
8870
  */
8879
8871
  constructor(t, n) {
8880
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new Kv(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(kp), this.dispatch = this.dispatch.bind(this), this.dom = t && t.mount || document.createElement("div"), t && (t.appendChild ? t.appendChild(this.dom) : typeof t == "function" ? t(this.dom) : t.mount && (this.mounted = !0)), this.editable = Dp(this), xp(this), this.nodeViews = Mp(this), this.docView = dp(this.state.doc, Ip(this), xl(this), this.dom, this), this.domObserver = new Sy(this, (r, i, o, a) => Ny(this, r, i, o, a)), this.domObserver.start(), Qv(this), this.updatePluginViews();
8872
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new Kv(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(kp), this.dispatch = this.dispatch.bind(this), this.dom = t && t.mount || document.createElement("div"), t && (t.appendChild ? t.appendChild(this.dom) : typeof t == "function" ? t(this.dom) : t.mount && (this.mounted = !0)), this.editable = Dp(this), xp(this), this.nodeViews = Mp(this), this.docView = dp(this.state.doc, Ip(this), Il(this), this.dom, this), this.domObserver = new Sy(this, (r, i, o, a) => Ny(this, r, i, o, a)), this.domObserver.start(), Qv(this), this.updatePluginViews();
8881
8873
  }
8882
8874
  /**
8883
8875
  Holds `true` when a
@@ -8940,7 +8932,7 @@ class Iy {
8940
8932
  Dy(m, this.nodeViews) && (this.nodeViews = m, o = !0);
8941
8933
  }
8942
8934
  (s || n.handleDOMEvents != this._props.handleDOMEvents) && kc(this), this.editable = Dp(this), xp(this);
8943
- let l = xl(this), c = Ip(this), d = i.plugins != t.plugins && !i.doc.eq(t.doc) ? "reset" : t.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", u = o || !this.docView.matchesNode(t.doc, c, l);
8935
+ let l = Il(this), c = Ip(this), d = i.plugins != t.plugins && !i.doc.eq(t.doc) ? "reset" : t.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", u = o || !this.docView.matchesNode(t.doc, c, l);
8944
8936
  (u || !t.selection.eq(i.selection)) && (a = !0);
8945
8937
  let p = d == "preserve" && a && this.dom.style.overflowAnchor == null && dv(this);
8946
8938
  if (a) {
@@ -9158,7 +9150,7 @@ class Iy {
9158
9150
  views](https://prosemirror.net/docs/ref/#view.NodeView).
9159
9151
  */
9160
9152
  destroy() {
9161
- this.docView && (Zv(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], xl(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Jb());
9153
+ this.docView && (Zv(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Il(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Jb());
9162
9154
  }
9163
9155
  /**
9164
9156
  This is true when the view has been
@@ -9299,7 +9291,7 @@ var or = {
9299
9291
  220: "\\",
9300
9292
  221: "]",
9301
9293
  222: "'"
9302
- }, ja = {
9294
+ }, qa = {
9303
9295
  48: ")",
9304
9296
  49: "!",
9305
9297
  50: "@",
@@ -9328,10 +9320,10 @@ var or = {
9328
9320
  for (var it = 0; it < 10; it++) or[48 + it] = or[96 + it] = String(it);
9329
9321
  for (var it = 1; it <= 24; it++) or[it + 111] = "F" + it;
9330
9322
  for (var it = 65; it <= 90; it++)
9331
- or[it] = String.fromCharCode(it + 32), ja[it] = String.fromCharCode(it);
9332
- for (var Ml in or) ja.hasOwnProperty(Ml) || (ja[Ml] = or[Ml]);
9323
+ or[it] = String.fromCharCode(it + 32), qa[it] = String.fromCharCode(it);
9324
+ for (var Dl in or) qa.hasOwnProperty(Dl) || (qa[Dl] = or[Dl]);
9333
9325
  function Ly(e) {
9334
- var t = My && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || ky && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? ja : or)[e.keyCode] || e.key || "Unidentified";
9326
+ var t = My && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || ky && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? qa : or)[e.keyCode] || e.key || "Unidentified";
9335
9327
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
9336
9328
  }
9337
9329
  const Py = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
@@ -9362,7 +9354,7 @@ function By(e) {
9362
9354
  t[Fy(n)] = e[n];
9363
9355
  return t;
9364
9356
  }
9365
- function kl(e, t, n = !0) {
9357
+ function Ml(e, t, n = !0) {
9366
9358
  return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
9367
9359
  }
9368
9360
  function Uy(e) {
@@ -9371,17 +9363,17 @@ function Uy(e) {
9371
9363
  function wd(e) {
9372
9364
  let t = By(e);
9373
9365
  return function(n, r) {
9374
- let i = Ly(r), o, a = t[kl(i, r)];
9366
+ let i = Ly(r), o, a = t[Ml(i, r)];
9375
9367
  if (a && a(n.state, n.dispatch, n))
9376
9368
  return !0;
9377
9369
  if (i.length == 1 && i != " ") {
9378
9370
  if (r.shiftKey) {
9379
- let s = t[kl(i, r, !1)];
9371
+ let s = t[Ml(i, r, !1)];
9380
9372
  if (s && s(n.state, n.dispatch, n))
9381
9373
  return !0;
9382
9374
  }
9383
9375
  if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = or[r.keyCode]) && o != i) {
9384
- let s = t[kl(o, r)];
9376
+ let s = t[Ml(o, r)];
9385
9377
  if (s && s(n.state, n.dispatch, n))
9386
9378
  return !0;
9387
9379
  }
@@ -9408,7 +9400,7 @@ const Vy = (e, t, n) => {
9408
9400
  return !0;
9409
9401
  if (r.parent.content.size == 0 && (gi(o, "end") || re.isSelectable(o)))
9410
9402
  for (let a = r.depth; ; a--) {
9411
- let s = $s(e.doc, r.before(a), r.after(a), V.empty);
9403
+ let s = zs(e.doc, r.before(a), r.after(a), V.empty);
9412
9404
  if (s && s.slice.size < s.to - s.from) {
9413
9405
  if (t) {
9414
9406
  let l = e.tr.step(s);
@@ -9452,7 +9444,7 @@ function vg(e, t, n) {
9452
9444
  return !1;
9453
9445
  s = d;
9454
9446
  }
9455
- let c = $s(e.doc, o, l, V.empty);
9447
+ let c = zs(e.doc, o, l, V.empty);
9456
9448
  if (!c || c.from != o || c instanceof je && c.slice.size >= l - o)
9457
9449
  return !1;
9458
9450
  if (n) {
@@ -9507,7 +9499,7 @@ const Yy = (e, t, n) => {
9507
9499
  if (Tg(e, i, t, 1))
9508
9500
  return !0;
9509
9501
  if (r.parent.content.size == 0 && (gi(o, "start") || re.isSelectable(o))) {
9510
- let a = $s(e.doc, r.before(), r.after(), V.empty);
9502
+ let a = zs(e.doc, r.before(), r.after(), V.empty);
9511
9503
  if (a && a.slice.size < a.to - a.from) {
9512
9504
  if (t) {
9513
9505
  let s = e.tr.step(a);
@@ -9546,7 +9538,7 @@ const jy = (e, t) => {
9546
9538
  if (n.node.isTextblock || !cr(e.doc, n.from))
9547
9539
  return !1;
9548
9540
  i = n.from;
9549
- } else if (i = zs(e.doc, n.from, -1), i == null)
9541
+ } else if (i = Gs(e.doc, n.from, -1), i == null)
9550
9542
  return !1;
9551
9543
  if (t) {
9552
9544
  let o = e.tr.join(i);
@@ -9559,7 +9551,7 @@ const jy = (e, t) => {
9559
9551
  if (n.node.isTextblock || !cr(e.doc, n.to))
9560
9552
  return !1;
9561
9553
  r = n.to;
9562
- } else if (r = zs(e.doc, n.to, 1), r == null)
9554
+ } else if (r = Gs(e.doc, n.to, 1), r == null)
9563
9555
  return !1;
9564
9556
  return t && t(e.tr.join(r).scrollIntoView()), !0;
9565
9557
  }, Ky = (e, t) => {
@@ -9718,7 +9710,7 @@ function oC(e, t = null) {
9718
9710
  if (i.index(a.depth - 1) == 0)
9719
9711
  return !1;
9720
9712
  let d = n.doc.resolve(a.start - 2);
9721
- l = new Ha(d, d, a.depth), a.endIndex < a.parent.childCount && (a = new Ha(i, n.doc.resolve(o.end(a.depth)), a.depth)), s = !0;
9713
+ l = new Ua(d, d, a.depth), a.endIndex < a.parent.childCount && (a = new Ua(i, n.doc.resolve(o.end(a.depth)), a.depth)), s = !0;
9722
9714
  }
9723
9715
  let c = Ed(l, e, t, a);
9724
9716
  return c ? (r && r(aC(n.tr, a, c, s, e).scrollIntoView()), !0) : !1;
@@ -9745,7 +9737,7 @@ function sC(e) {
9745
9737
  }
9746
9738
  function lC(e, t, n, r) {
9747
9739
  let i = e.tr, o = r.end, a = r.$to.end(r.depth);
9748
- o < a && (i.step(new Ze(o - 1, a, o, a, new V(M.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ha(i.doc.resolve(r.$from.pos), i.doc.resolve(a), r.depth));
9740
+ o < a && (i.step(new Ze(o - 1, a, o, a, new V(M.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ua(i.doc.resolve(r.$from.pos), i.doc.resolve(a), r.depth));
9749
9741
  const s = Ai(r);
9750
9742
  if (s == null)
9751
9743
  return !1;
@@ -9784,7 +9776,7 @@ function dC(e) {
9784
9776
  return !0;
9785
9777
  };
9786
9778
  }
9787
- function Ks(e) {
9779
+ function Ws(e) {
9788
9780
  const { state: t, transaction: n } = e;
9789
9781
  let { selection: r } = n, { doc: i } = n, { storedMarks: o } = n;
9790
9782
  return {
@@ -9809,7 +9801,7 @@ function Ks(e) {
9809
9801
  }
9810
9802
  };
9811
9803
  }
9812
- class Qs {
9804
+ class Ks {
9813
9805
  constructor(t) {
9814
9806
  this.editor = t.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = t.state;
9815
9807
  }
@@ -9854,7 +9846,7 @@ class Qs {
9854
9846
  tr: t,
9855
9847
  editor: i,
9856
9848
  view: a,
9857
- state: Ks({
9849
+ state: Ws({
9858
9850
  state: o,
9859
9851
  transaction: t
9860
9852
  }),
@@ -9900,7 +9892,7 @@ function X(e, t, n) {
9900
9892
  parent: e.parent ? X(e.parent, t, n) : null
9901
9893
  }) : e.config[t];
9902
9894
  }
9903
- function Zs(e) {
9895
+ function Qs(e) {
9904
9896
  const t = e.filter((i) => i.type === "extension"), n = e.filter((i) => i.type === "node"), r = e.filter((i) => i.type === "mark");
9905
9897
  return {
9906
9898
  baseExtensions: t,
@@ -9909,7 +9901,7 @@ function Zs(e) {
9909
9901
  };
9910
9902
  }
9911
9903
  function Ng(e) {
9912
- const t = [], { nodeExtensions: n, markExtensions: r } = Zs(e), i = [...n, ...r], o = {
9904
+ const t = [], { nodeExtensions: n, markExtensions: r } = Qs(e), i = [...n, ...r], o = {
9913
9905
  default: null,
9914
9906
  rendered: !0,
9915
9907
  renderHTML: null,
@@ -9968,7 +9960,7 @@ function Je(e, t) {
9968
9960
  }
9969
9961
  return e;
9970
9962
  }
9971
- function Ee(...e) {
9963
+ function fe(...e) {
9972
9964
  return e.filter((t) => !!t).reduce((t, n) => {
9973
9965
  const r = { ...t };
9974
9966
  return Object.entries(n).forEach(([i, o]) => {
@@ -9996,7 +9988,7 @@ function Ee(...e) {
9996
9988
  function Lc(e, t) {
9997
9989
  return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
9998
9990
  [n.name]: e.attrs[n.name]
9999
- }).reduce((n, r) => Ee(n, r), {});
9991
+ }).reduce((n, r) => fe(n, r), {});
10000
9992
  }
10001
9993
  function Rg(e) {
10002
9994
  return typeof e == "function";
@@ -10036,7 +10028,7 @@ function Fp(e) {
10036
10028
  }
10037
10029
  function hC(e, t) {
10038
10030
  var n;
10039
- const r = Ng(e), { nodeExtensions: i, markExtensions: o } = Zs(e), a = (n = i.find((c) => X(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, s = Object.fromEntries(i.map((c) => {
10031
+ const r = Ng(e), { nodeExtensions: i, markExtensions: o } = Qs(e), a = (n = i.find((c) => X(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, s = Object.fromEntries(i.map((c) => {
10040
10032
  const d = r.filter((S) => S.type === c.name), u = {
10041
10033
  name: c.name,
10042
10034
  options: c.options,
@@ -10112,7 +10104,7 @@ function hC(e, t) {
10112
10104
  marks: l
10113
10105
  });
10114
10106
  }
10115
- function Ll(e, t) {
10107
+ function kl(e, t) {
10116
10108
  return t.nodes[e] || t.marks[e] || null;
10117
10109
  }
10118
10110
  function Bp(e, t) {
@@ -10172,13 +10164,13 @@ function na(e) {
10172
10164
  const m = gC(u, p.find);
10173
10165
  if (!m)
10174
10166
  return;
10175
- const h = l.state.tr, _ = Ks({
10167
+ const h = l.state.tr, _ = Ws({
10176
10168
  state: l.state,
10177
10169
  transaction: h
10178
10170
  }), g = {
10179
10171
  from: r - (m[0].length - o.length),
10180
10172
  to: i
10181
- }, { commands: S, chain: E, can: b } = new Qs({
10173
+ }, { commands: S, chain: E, can: b } = new Ks({
10182
10174
  editor: n,
10183
10175
  state: _
10184
10176
  });
@@ -10275,10 +10267,10 @@ function EC(e) {
10275
10267
  function ra(e) {
10276
10268
  return EC(e) !== "Object" ? !1 : e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
10277
10269
  }
10278
- function Xs(e, t) {
10270
+ function Zs(e, t) {
10279
10271
  const n = { ...e };
10280
10272
  return ra(e) && ra(t) && Object.keys(t).forEach((r) => {
10281
- ra(t[r]) && ra(e[r]) ? n[r] = Xs(e[r], t[r]) : n[r] = t[r];
10273
+ ra(t[r]) && ra(e[r]) ? n[r] = Zs(e[r], t[r]) : n[r] = t[r];
10282
10274
  }), n;
10283
10275
  }
10284
10276
  class It {
@@ -10302,7 +10294,7 @@ class It {
10302
10294
  configure(t = {}) {
10303
10295
  const n = this.extend({
10304
10296
  ...this.config,
10305
- addOptions: () => Xs(this.options, t)
10297
+ addOptions: () => Zs(this.options, t)
10306
10298
  });
10307
10299
  return n.name = this.name, n.parent = this.parent, n;
10308
10300
  }
@@ -10345,7 +10337,7 @@ const vC = (e, t, n) => {
10345
10337
  }) : [];
10346
10338
  };
10347
10339
  function yC(e) {
10348
- const { editor: t, state: n, from: r, to: i, rule: o, pasteEvent: a, dropEvent: s } = e, { commands: l, chain: c, can: d } = new Qs({
10340
+ const { editor: t, state: n, from: r, to: i, rule: o, pasteEvent: a, dropEvent: s } = e, { commands: l, chain: c, can: d } = new Ks({
10349
10341
  editor: t,
10350
10342
  state: n
10351
10343
  }), u = [];
@@ -10390,7 +10382,7 @@ function TC(e) {
10390
10382
  s = null;
10391
10383
  }
10392
10384
  const l = ({ state: c, from: d, to: u, rule: p, pasteEvt: m }) => {
10393
- const h = c.tr, _ = Ks({
10385
+ const h = c.tr, _ = Ws({
10394
10386
  state: c,
10395
10387
  transaction: h
10396
10388
  });
@@ -10528,7 +10520,7 @@ class ai {
10528
10520
  options: n.options,
10529
10521
  storage: n.storage,
10530
10522
  editor: this.editor,
10531
- type: Ll(n.name, this.schema)
10523
+ type: kl(n.name, this.schema)
10532
10524
  }, i = X(n, "addCommands", r);
10533
10525
  return i ? {
10534
10526
  ...t,
@@ -10547,7 +10539,7 @@ class ai {
10547
10539
  options: a.options,
10548
10540
  storage: a.storage,
10549
10541
  editor: t,
10550
- type: Ll(a.name, this.schema)
10542
+ type: kl(a.name, this.schema)
10551
10543
  }, l = [], c = X(a, "addKeyboardShortcuts", s);
10552
10544
  let d = {};
10553
10545
  if (a.type === "mark" && X(a, "exitable", s) && (d.ArrowRight = () => It.handleExit({ editor: t, mark: a })), c) {
@@ -10591,7 +10583,7 @@ class ai {
10591
10583
  * @returns An object with all node views where the key is the node name and the value is the node view function
10592
10584
  */
10593
10585
  get nodeViews() {
10594
- const { editor: t } = this, { nodeExtensions: n } = Zs(this.extensions);
10586
+ const { editor: t } = this, { nodeExtensions: n } = Qs(this.extensions);
10595
10587
  return Object.fromEntries(n.filter((r) => !!X(r, "addNodeView")).map((r) => {
10596
10588
  const i = this.attributes.filter((l) => l.type === r.name), o = {
10597
10589
  name: r.name,
@@ -10633,7 +10625,7 @@ class ai {
10633
10625
  options: t.options,
10634
10626
  storage: t.storage,
10635
10627
  editor: this.editor,
10636
- type: Ll(t.name, this.schema)
10628
+ type: kl(t.name, this.schema)
10637
10629
  };
10638
10630
  t.type === "mark" && (!((n = he(X(t, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(t.name);
10639
10631
  const i = X(t, "onBeforeCreate", r), o = X(t, "onCreate", r), a = X(t, "onUpdate", r), s = X(t, "onSelectionUpdate", r), l = X(t, "onTransaction", r), c = X(t, "onFocus", r), d = X(t, "onBlur", r), u = X(t, "onDestroy", r);
@@ -10662,7 +10654,7 @@ class Ce {
10662
10654
  configure(t = {}) {
10663
10655
  const n = this.extend({
10664
10656
  ...this.config,
10665
- addOptions: () => Xs(this.options, t)
10657
+ addOptions: () => Zs(this.options, t)
10666
10658
  });
10667
10659
  return n.name = this.name, n.parent = this.parent, n;
10668
10660
  }
@@ -10676,7 +10668,7 @@ class Ce {
10676
10668
  })), n;
10677
10669
  }
10678
10670
  }
10679
- function Js(e, t, n) {
10671
+ function Xs(e, t, n) {
10680
10672
  const { from: r, to: i } = t, { blockSeparator: o = `
10681
10673
 
10682
10674
  `, textSerializers: a = {} } = n || {};
@@ -10713,7 +10705,7 @@ const NC = Ce.create({
10713
10705
  props: {
10714
10706
  clipboardTextSerializer: () => {
10715
10707
  const { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: i } = t, { ranges: o } = i, a = Math.min(...o.map((c) => c.$from.pos)), s = Math.max(...o.map((c) => c.$to.pos)), l = Ag(n);
10716
- return Js(r, { from: a, to: s }, {
10708
+ return Xs(r, { from: a, to: s }, {
10717
10709
  ...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
10718
10710
  textSerializers: l
10719
10711
  });
@@ -11017,14 +11009,14 @@ const qC = (e) => !("type" in e), jC = (e, t, n) => ({ tr: r, dispatch: i, edito
11017
11009
  return !0;
11018
11010
  }, WC = () => ({ state: e, dispatch: t }) => jy(e, t), KC = () => ({ state: e, dispatch: t }) => Wy(e, t), QC = () => ({ state: e, dispatch: t }) => Vy(e, t), ZC = () => ({ state: e, dispatch: t }) => Yy(e, t), XC = () => ({ state: e, dispatch: t, tr: n }) => {
11019
11011
  try {
11020
- const r = zs(e.doc, e.selection.$from.pos, -1);
11012
+ const r = Gs(e.doc, e.selection.$from.pos, -1);
11021
11013
  return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
11022
11014
  } catch {
11023
11015
  return !1;
11024
11016
  }
11025
11017
  }, JC = () => ({ state: e, dispatch: t, tr: n }) => {
11026
11018
  try {
11027
- const r = zs(e.doc, e.selection.$from.pos, 1);
11019
+ const r = Gs(e.doc, e.selection.$from.pos, 1);
11028
11020
  return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
11029
11021
  } catch {
11030
11022
  return !1;
@@ -11094,7 +11086,7 @@ const iT = (e, t = {}) => ({ state: n, dispatch: r }) => {
11094
11086
  const r = Je(e, t.schema);
11095
11087
  return sC(r)(t, n);
11096
11088
  }, sT = () => ({ state: e, dispatch: t }) => Qy(e, t);
11097
- function el(e, t) {
11089
+ function Js(e, t) {
11098
11090
  return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
11099
11091
  }
11100
11092
  function Hp(e, t) {
@@ -11103,7 +11095,7 @@ function Hp(e, t) {
11103
11095
  }
11104
11096
  const lT = (e, t) => ({ tr: n, state: r, dispatch: i }) => {
11105
11097
  let o = null, a = null;
11106
- const s = el(typeof e == "string" ? e : e.name, r.schema);
11098
+ const s = Js(typeof e == "string" ? e : e.name, r.schema);
11107
11099
  return s ? (s === "node" && (o = Je(e, r.schema)), s === "mark" && (a = Fn(e, r.schema)), i && n.selection.ranges.forEach((l) => {
11108
11100
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, d) => {
11109
11101
  o && o === c.type && n.setNodeMarkup(d, void 0, Hp(c.attrs, t)), a && c.marks.length && c.marks.forEach((u) => {
@@ -11193,7 +11185,7 @@ function kg(e, t) {
11193
11185
  };
11194
11186
  }
11195
11187
  }
11196
- function tl(e) {
11188
+ function el(e) {
11197
11189
  return (t) => kg(t.$from, e);
11198
11190
  }
11199
11191
  function bT(e, t) {
@@ -11201,7 +11193,7 @@ function bT(e, t) {
11201
11193
  from: 0,
11202
11194
  to: e.content.size
11203
11195
  };
11204
- return Js(e, n, t);
11196
+ return Xs(e, n, t);
11205
11197
  }
11206
11198
  function vT(e, t) {
11207
11199
  const n = Je(t, e.schema), { from: r, to: i } = e.selection, o = [];
@@ -11212,7 +11204,7 @@ function vT(e, t) {
11212
11204
  return a ? { ...a.attrs } : {};
11213
11205
  }
11214
11206
  function Lg(e, t) {
11215
- const n = el(typeof t == "string" ? t : t.name, e.schema);
11207
+ const n = Js(typeof t == "string" ? t : t.name, e.schema);
11216
11208
  return n === "node" ? vT(e, t) : n === "mark" ? Mg(e, t) : {};
11217
11209
  }
11218
11210
  function yT(e, t = JSON.stringify) {
@@ -11271,7 +11263,7 @@ function Fd(e, t, n) {
11271
11263
  })));
11272
11264
  }), r;
11273
11265
  }
11274
- function Ia(e, t, n) {
11266
+ function wa(e, t, n) {
11275
11267
  return Object.fromEntries(Object.entries(n).filter(([r]) => {
11276
11268
  const i = e.find((o) => o.type === t && o.name === r);
11277
11269
  return i ? i.attribute.keepOnSplit : !1;
@@ -11303,11 +11295,11 @@ function Bc(e, t, n = {}) {
11303
11295
  function OT(e, t, n = {}) {
11304
11296
  if (!t)
11305
11297
  return kr(e, null, n) || Bc(e, null, n);
11306
- const r = el(t, e.schema);
11298
+ const r = Js(t, e.schema);
11307
11299
  return r === "node" ? kr(e, t, n) : r === "mark" ? Bc(e, t, n) : !1;
11308
11300
  }
11309
11301
  function Vp(e, t) {
11310
- const { nodeExtensions: n } = Zs(t), r = n.find((a) => a.name === e);
11302
+ const { nodeExtensions: n } = Qs(t), r = n.find((a) => a.name === e);
11311
11303
  if (!r)
11312
11304
  return !1;
11313
11305
  const i = {
@@ -11317,7 +11309,7 @@ function Vp(e, t) {
11317
11309
  }, o = he(X(r, "group", i));
11318
11310
  return typeof o != "string" ? !1 : o.split(" ").includes("list");
11319
11311
  }
11320
- function nl(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
11312
+ function tl(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
11321
11313
  var r;
11322
11314
  if (n) {
11323
11315
  if (e.type.name === "hardBreak")
@@ -11334,7 +11326,7 @@ function nl(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
11334
11326
  if (t) {
11335
11327
  let i = !0;
11336
11328
  return e.content.forEach((o) => {
11337
- i !== !1 && (nl(o, { ignoreWhitespace: n, checkChildren: t }) || (i = !1));
11329
+ i !== !1 && (tl(o, { ignoreWhitespace: n, checkChildren: t }) || (i = !1));
11338
11330
  }), i;
11339
11331
  }
11340
11332
  return !1;
@@ -11431,7 +11423,7 @@ function Gp(e, t) {
11431
11423
  }
11432
11424
  }
11433
11425
  const MT = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: i }) => {
11434
- const { selection: o, doc: a } = t, { $from: s, $to: l } = o, c = i.extensionManager.attributes, d = Ia(c, s.node().type.name, s.node().attrs);
11426
+ const { selection: o, doc: a } = t, { $from: s, $to: l } = o, c = i.extensionManager.attributes, d = wa(c, s.node().type.name, s.node().attrs);
11435
11427
  if (o instanceof re && o.node.isBlock)
11436
11428
  return !s.parentOffset || !ci(a, s.pos) ? !1 : (r && (e && Gp(n, i.extensionManager.splittableMarks), t.split(s.pos).scrollIntoView()), !0);
11437
11429
  if (!s.parent.isBlock)
@@ -11474,7 +11466,7 @@ const MT = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11474
11466
  for (let R = l.depth - E; R >= l.depth - 3; R -= 1)
11475
11467
  S = M.from(l.node(R).copy(S));
11476
11468
  const b = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, f = {
11477
- ...Ia(p, l.node().type.name, l.node().attrs),
11469
+ ...wa(p, l.node().type.name, l.node().attrs),
11478
11470
  ...t
11479
11471
  }, v = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(f)) || void 0;
11480
11472
  S = S.append(M.from(s.createAndFill(null, v) || void 0));
@@ -11490,10 +11482,10 @@ const MT = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11490
11482
  return !0;
11491
11483
  }
11492
11484
  const m = c.pos === l.end() ? u.contentMatchAt(0).defaultType : null, h = {
11493
- ...Ia(p, u.type.name, u.attrs),
11485
+ ...wa(p, u.type.name, u.attrs),
11494
11486
  ...t
11495
11487
  }, _ = {
11496
- ...Ia(p, l.node().type.name, l.node().attrs),
11488
+ ...wa(p, l.node().type.name, l.node().attrs),
11497
11489
  ...t
11498
11490
  };
11499
11491
  n.delete(l.pos, c.pos);
@@ -11511,8 +11503,8 @@ const MT = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11511
11503
  n.ensureMarks(v);
11512
11504
  }
11513
11505
  return !0;
11514
- }, Pl = (e, t) => {
11515
- const n = tl((o) => o.type === t)(e.selection);
11506
+ }, Ll = (e, t) => {
11507
+ const n = el((o) => o.type === t)(e.selection);
11516
11508
  if (!n)
11517
11509
  return !0;
11518
11510
  const r = e.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
@@ -11520,8 +11512,8 @@ const MT = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11520
11512
  return !0;
11521
11513
  const i = e.doc.nodeAt(r);
11522
11514
  return n.node.type === i?.type && cr(e.doc, n.pos) && e.join(n.pos), !0;
11523
- }, Fl = (e, t) => {
11524
- const n = tl((o) => o.type === t)(e.selection);
11515
+ }, Pl = (e, t) => {
11516
+ const n = el((o) => o.type === t)(e.selection);
11525
11517
  if (!n)
11526
11518
  return !0;
11527
11519
  const r = e.doc.resolve(n.start).after(n.depth);
@@ -11533,17 +11525,17 @@ const MT = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11533
11525
  const { extensions: u, splittableMarks: p } = i.extensionManager, m = Je(e, a.schema), h = Je(t, a.schema), { selection: _, storedMarks: g } = a, { $from: S, $to: E } = _, b = S.blockRange(E), f = g || _.$to.parentOffset && _.$from.marks();
11534
11526
  if (!b)
11535
11527
  return !1;
11536
- const v = tl((y) => Vp(y.type.name, u))(_);
11528
+ const v = el((y) => Vp(y.type.name, u))(_);
11537
11529
  if (b.depth >= 1 && v && b.depth - v.depth <= 1) {
11538
11530
  if (v.node.type === m)
11539
11531
  return c.liftListItem(h);
11540
11532
  if (Vp(v.node.type.name, u) && m.validContent(v.node.content) && s)
11541
- return l().command(() => (o.setNodeMarkup(v.pos, m), !0)).command(() => Pl(o, m)).command(() => Fl(o, m)).run();
11533
+ return l().command(() => (o.setNodeMarkup(v.pos, m), !0)).command(() => Ll(o, m)).command(() => Pl(o, m)).run();
11542
11534
  }
11543
- return !n || !f || !s ? l().command(() => d().wrapInList(m, r) ? !0 : c.clearNodes()).wrapInList(m, r).command(() => Pl(o, m)).command(() => Fl(o, m)).run() : l().command(() => {
11535
+ return !n || !f || !s ? l().command(() => d().wrapInList(m, r) ? !0 : c.clearNodes()).wrapInList(m, r).command(() => Ll(o, m)).command(() => Pl(o, m)).run() : l().command(() => {
11544
11536
  const y = d().wrapInList(m, r), T = f.filter((R) => p.includes(R.type.name));
11545
11537
  return o.ensureMarks(T), y ? !0 : c.clearNodes();
11546
- }).wrapInList(m, r).command(() => Pl(o, m)).command(() => Fl(o, m)).run();
11538
+ }).wrapInList(m, r).command(() => Ll(o, m)).command(() => Pl(o, m)).run();
11547
11539
  }, PT = (e, t = {}, n = {}) => ({ state: r, commands: i }) => {
11548
11540
  const { extendEmptyMarkRange: o = !1 } = n, a = Fn(e, r.schema);
11549
11541
  return Bc(r, a, t) ? i.unsetMark(a, { extendEmptyMarkRange: o }) : i.setMark(a, t);
@@ -11595,7 +11587,7 @@ const MT = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11595
11587
  return n.removeStoredMark(l), !0;
11596
11588
  }, GT = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
11597
11589
  let o = null, a = null;
11598
- const s = el(typeof e == "string" ? e : e.name, r.schema);
11590
+ const s = Js(typeof e == "string" ? e : e.name, r.schema);
11599
11591
  return s ? (s === "node" && (o = Je(e, r.schema)), s === "mark" && (a = Fn(e, r.schema)), i && n.selection.ranges.forEach((l) => {
11600
11592
  const c = l.$from.pos, d = l.$to.pos;
11601
11593
  let u, p, m, h;
@@ -11817,12 +11809,12 @@ const qT = Ce.create({
11817
11809
  if (!r || i)
11818
11810
  return;
11819
11811
  const { empty: o, from: a, to: s } = t.selection, l = le.atStart(t.doc).from, c = le.atEnd(t.doc).to;
11820
- if (o || !(a === l && s === c) || !nl(n.doc))
11812
+ if (o || !(a === l && s === c) || !tl(n.doc))
11821
11813
  return;
11822
- const d = n.tr, u = Ks({
11814
+ const d = n.tr, u = Ws({
11823
11815
  state: n,
11824
11816
  transaction: d
11825
- }), { commands: p } = new Qs({
11817
+ }), { commands: p } = new Ks({
11826
11818
  editor: this.editor,
11827
11819
  state: u
11828
11820
  });
@@ -12220,7 +12212,7 @@ class n1 extends uC {
12220
12212
  * Creates an command manager.
12221
12213
  */
12222
12214
  createCommandManager() {
12223
- this.commandManager = new Qs({
12215
+ this.commandManager = new Ks({
12224
12216
  editor: this
12225
12217
  });
12226
12218
  }
@@ -12375,7 +12367,7 @@ class n1 extends uC {
12375
12367
  * Check if there is no content.
12376
12368
  */
12377
12369
  get isEmpty() {
12378
- return nl(this.state.doc);
12370
+ return tl(this.state.doc);
12379
12371
  }
12380
12372
  /**
12381
12373
  * Get the number of characters for the current document.
@@ -12513,7 +12505,7 @@ let Be = class Hc {
12513
12505
  configure(t = {}) {
12514
12506
  const n = this.extend({
12515
12507
  ...this.config,
12516
- addOptions: () => Xs(this.options, t)
12508
+ addOptions: () => Zs(this.options, t)
12517
12509
  });
12518
12510
  return n.name = this.name, n.parent = this.parent, n;
12519
12511
  }
@@ -12703,7 +12695,7 @@ const Ug = {
12703
12695
  function gn(e) {
12704
12696
  return e.split("-")[0];
12705
12697
  }
12706
- var Nr = Math.max, Wa = Math.min, Si = Math.round;
12698
+ var Nr = Math.max, ja = Math.min, Si = Math.round;
12707
12699
  function Vc() {
12708
12700
  var e = navigator.userAgentData;
12709
12701
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
@@ -12764,7 +12756,7 @@ function ur(e) {
12764
12756
  e.document
12765
12757
  )) || window.document).documentElement;
12766
12758
  }
12767
- function rl(e) {
12759
+ function nl(e) {
12768
12760
  return bn(e) === "html" ? e : (
12769
12761
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
12770
12762
  // $FlowFixMe[incompatible-return]
@@ -12787,7 +12779,7 @@ function y1(e) {
12787
12779
  if (r.position === "fixed")
12788
12780
  return null;
12789
12781
  }
12790
- var i = rl(e);
12782
+ var i = nl(e);
12791
12783
  for (Hd(i) && (i = i.host); Wt(i) && ["html", "body"].indexOf(bn(i)) < 0; ) {
12792
12784
  var o = Pn(i);
12793
12785
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
@@ -12805,7 +12797,7 @@ function Gd(e) {
12805
12797
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
12806
12798
  }
12807
12799
  function Ji(e, t, n) {
12808
- return Nr(e, Wa(t, n));
12800
+ return Nr(e, ja(t, n));
12809
12801
  }
12810
12802
  function C1(e, t, n) {
12811
12803
  var r = Ji(e, t, n);
@@ -12970,7 +12962,7 @@ var k1 = {
12970
12962
  bottom: "top",
12971
12963
  top: "bottom"
12972
12964
  };
12973
- function xa(e) {
12965
+ function Ia(e) {
12974
12966
  return e.replace(/left|right|bottom|top/g, function(t) {
12975
12967
  return k1[t];
12976
12968
  });
@@ -13022,7 +13014,7 @@ function Yd(e) {
13022
13014
  return /auto|scroll|overlay|hidden/.test(n + i + r);
13023
13015
  }
13024
13016
  function Yg(e) {
13025
- return ["html", "body", "#document"].indexOf(bn(e)) >= 0 ? e.ownerDocument.body : Wt(e) && Yd(e) ? e : Yg(rl(e));
13017
+ return ["html", "body", "#document"].indexOf(bn(e)) >= 0 ? e.ownerDocument.body : Wt(e) && Yd(e) ? e : Yg(nl(e));
13026
13018
  }
13027
13019
  function eo(e, t) {
13028
13020
  var n;
@@ -13030,7 +13022,7 @@ function eo(e, t) {
13030
13022
  var r = Yg(e), i = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = Ft(r), a = i ? [o].concat(o.visualViewport || [], Yd(r) ? r : []) : r, s = t.concat(a);
13031
13023
  return i ? s : (
13032
13024
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
13033
- s.concat(eo(rl(a)))
13025
+ s.concat(eo(nl(a)))
13034
13026
  );
13035
13027
  }
13036
13028
  function Gc(e) {
@@ -13049,7 +13041,7 @@ function jp(e, t, n) {
13049
13041
  return t === Fg ? Gc(P1(e, n)) : Fr(t) ? B1(t, n) : Gc(F1(ur(e)));
13050
13042
  }
13051
13043
  function U1(e) {
13052
- var t = eo(rl(e)), n = ["absolute", "fixed"].indexOf(Pn(e).position) >= 0, r = n && Wt(e) ? Vo(e) : e;
13044
+ var t = eo(nl(e)), n = ["absolute", "fixed"].indexOf(Pn(e).position) >= 0, r = n && Wt(e) ? Vo(e) : e;
13053
13045
  return Fr(r) ? t.filter(function(i) {
13054
13046
  return Fr(i) && Vg(i, r) && bn(i) !== "body";
13055
13047
  }) : [];
@@ -13057,7 +13049,7 @@ function U1(e) {
13057
13049
  function H1(e, t, n, r) {
13058
13050
  var i = t === "clippingParents" ? U1(e) : [].concat(t), o = [].concat(i, [n]), a = o[0], s = o.reduce(function(l, c) {
13059
13051
  var d = jp(e, c, r);
13060
- return l.top = Nr(d.top, l.top), l.right = Wa(d.right, l.right), l.bottom = Wa(d.bottom, l.bottom), l.left = Nr(d.left, l.left), l;
13052
+ return l.top = Nr(d.top, l.top), l.right = ja(d.right, l.right), l.bottom = ja(d.bottom, l.bottom), l.left = Nr(d.left, l.left), l;
13061
13053
  }, jp(e, a, r));
13062
13054
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
13063
13055
  }
@@ -13152,13 +13144,13 @@ function V1(e, t) {
13152
13144
  function G1(e) {
13153
13145
  if (gn(e) === Ud)
13154
13146
  return [];
13155
- var t = xa(e);
13147
+ var t = Ia(e);
13156
13148
  return [qp(e), t, qp(t)];
13157
13149
  }
13158
13150
  function z1(e) {
13159
13151
  var t = e.state, n = e.options, r = e.name;
13160
13152
  if (!t.modifiersData[r]._skip) {
13161
- for (var i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !0 : a, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, p = n.altBoundary, m = n.flipVariations, h = m === void 0 ? !0 : m, _ = n.allowedAutoPlacements, g = t.options.placement, S = gn(g), E = S === g, b = l || (E || !h ? [xa(g)] : G1(g)), f = [g].concat(b).reduce(function(x, K) {
13153
+ for (var i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !0 : a, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, p = n.altBoundary, m = n.flipVariations, h = m === void 0 ? !0 : m, _ = n.allowedAutoPlacements, g = t.options.placement, S = gn(g), E = S === g, b = l || (E || !h ? [Ia(g)] : G1(g)), f = [g].concat(b).reduce(function(x, K) {
13162
13154
  return x.concat(gn(K) === Ud ? V1(t, {
13163
13155
  placement: K,
13164
13156
  boundary: d,
@@ -13175,8 +13167,8 @@ function z1(e) {
13175
13167
  altBoundary: p,
13176
13168
  padding: c
13177
13169
  }), C = W ? Y ? Qt : wt : Y ? Kt : At;
13178
- v[Z] > y[Z] && (C = xa(C));
13179
- var N = xa(C), L = [];
13170
+ v[Z] > y[Z] && (C = Ia(C));
13171
+ var N = Ia(C), L = [];
13180
13172
  if (o && L.push(A[U] <= 0), s && L.push(A[C] <= 0, A[N] <= 0), L.every(function(x) {
13181
13173
  return x;
13182
13174
  })) {
@@ -13318,11 +13310,11 @@ function J1(e) {
13318
13310
  var Y, W = f === "y" ? At : wt, Z = f === "y" ? Kt : Qt, A = f === "y" ? "height" : "width", C = y[f], N = C + g[W], L = C - g[Z], z = m ? -R[A] / 2 : 0, J = E === Ei ? T[A] : R[A], B = E === Ei ? -R[A] : -T[A], $ = t.elements.arrow, x = m && $ ? Vd($) : {
13319
13311
  width: 0,
13320
13312
  height: 0
13321
- }, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gg(), ke = K[W], mt = K[Z], et = Ji(0, T[A], x[A]), Xt = b ? T[A] / 2 - z - et - ke - k.mainAxis : J - et - ke - k.mainAxis, vt = b ? -T[A] / 2 + z + et + mt + k.mainAxis : B + et + mt + k.mainAxis, Ut = t.elements.arrow && Vo(t.elements.arrow), on = Ut ? f === "y" ? Ut.clientTop || 0 : Ut.clientLeft || 0 : 0, yt = (Y = G?.[f]) != null ? Y : 0, Ct = C + Xt - yt - on, ze = C + vt - yt, pe = Ji(m ? Wa(N, Ct) : N, C, m ? Nr(L, ze) : L);
13313
+ }, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gg(), ke = K[W], mt = K[Z], et = Ji(0, T[A], x[A]), Xt = b ? T[A] / 2 - z - et - ke - k.mainAxis : J - et - ke - k.mainAxis, vt = b ? -T[A] / 2 + z + et + mt + k.mainAxis : B + et + mt + k.mainAxis, Ut = t.elements.arrow && Vo(t.elements.arrow), on = Ut ? f === "y" ? Ut.clientTop || 0 : Ut.clientLeft || 0 : 0, yt = (Y = G?.[f]) != null ? Y : 0, Ct = C + Xt - yt - on, ze = C + vt - yt, pe = Ji(m ? ja(N, Ct) : N, C, m ? Nr(L, ze) : L);
13322
13314
  y[f] = pe, U[f] = pe - C;
13323
13315
  }
13324
13316
  if (s) {
13325
- var at, ne = f === "x" ? At : wt, ie = f === "x" ? Kt : Qt, Te = y[v], oe = v === "y" ? "height" : "width", Se = Te + g[ne], $e = Te - g[ie], tt = [At, wt].indexOf(S) !== -1, Ht = (at = G?.[v]) != null ? at : 0, H = tt ? Se : Te - T[oe] - R[oe] - Ht + k.altAxis, w = tt ? Te + T[oe] + R[oe] - Ht - k.altAxis : $e, P = m && tt ? C1(H, Te, w) : Ji(m ? H : Se, Te, m ? w : $e);
13317
+ var at, ne = f === "x" ? At : wt, ie = f === "x" ? Kt : Qt, Te = y[v], oe = v === "y" ? "height" : "width", Ee = Te + g[ne], $e = Te - g[ie], tt = [At, wt].indexOf(S) !== -1, Ht = (at = G?.[v]) != null ? at : 0, H = tt ? Ee : Te - T[oe] - R[oe] - Ht + k.altAxis, w = tt ? Te + T[oe] + R[oe] - Ht - k.altAxis : $e, P = m && tt ? C1(H, Te, w) : Ji(m ? H : Ee, Te, m ? w : $e);
13326
13318
  y[v] = P, U[v] = P - Te;
13327
13319
  }
13328
13320
  t.modifiersData[r] = U;
@@ -13536,7 +13528,7 @@ var dO = [M1, Z1, x1, Ug, K1, $1, eO, R1, q1], uO = /* @__PURE__ */ cO({
13536
13528
  function hO(e, t) {
13537
13529
  return {}.hasOwnProperty.call(e, t);
13538
13530
  }
13539
- function Bl(e, t, n) {
13531
+ function Fl(e, t, n) {
13540
13532
  if (Array.isArray(e)) {
13541
13533
  var r = e[t];
13542
13534
  return r ?? (Array.isArray(n) ? n[t] : n);
@@ -13583,7 +13575,7 @@ function fO(e) {
13583
13575
  function EO(e) {
13584
13576
  return e.split("-")[0];
13585
13577
  }
13586
- function Ka(e) {
13578
+ function Wa(e) {
13587
13579
  return [].slice.call(e);
13588
13580
  }
13589
13581
  function em(e) {
@@ -13609,9 +13601,9 @@ function vO(e) {
13609
13601
  return !!(e && e._tippy && e._tippy.reference === e);
13610
13602
  }
13611
13603
  function yO(e) {
13612
- return yo(e) ? [e] : SO(e) ? Ka(e) : Array.isArray(e) ? e : Ka(document.querySelectorAll(e));
13604
+ return yo(e) ? [e] : SO(e) ? Wa(e) : Array.isArray(e) ? e : Wa(document.querySelectorAll(e));
13613
13605
  }
13614
- function Ul(e, t) {
13606
+ function Bl(e, t) {
13615
13607
  e.forEach(function(n) {
13616
13608
  n && (n.style.transitionDuration = t + "ms");
13617
13609
  });
@@ -13635,7 +13627,7 @@ function TO(e, t) {
13635
13627
  return _ || g || S || E;
13636
13628
  });
13637
13629
  }
13638
- function Hl(e, t, n) {
13630
+ function Ul(e, t, n) {
13639
13631
  var r = t + "EventListener";
13640
13632
  ["transitionend", "webkitTransitionEnd"].forEach(function(i) {
13641
13633
  e[r](i, n);
@@ -13859,7 +13851,7 @@ function sm(e, t) {
13859
13851
  yo(t.content) ? ($c(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? $c(e, t.content) : e.textContent = t.content);
13860
13852
  }
13861
13853
  function Yc(e) {
13862
- var t = e.firstElementChild, n = Ka(t.children);
13854
+ var t = e.firstElementChild, n = Wa(t.children);
13863
13855
  return {
13864
13856
  box: t,
13865
13857
  content: n.find(function(r) {
@@ -13888,7 +13880,7 @@ function rf(e) {
13888
13880
  };
13889
13881
  }
13890
13882
  rf.$$tippy = !0;
13891
- var BO = 1, sa = [], Vl = [];
13883
+ var BO = 1, sa = [], Hl = [];
13892
13884
  function UO(e, t) {
13893
13885
  var n = om(e, Object.assign({}, kt, tf(em(t)))), r, i, o, a = !1, s = !1, l = !1, c = !1, d, u, p, m = [], h = Xp(Ct, n.interactiveDebounce), _, g = BO++, S = null, E = fO(n.plugins), b = {
13894
13886
  // Is the instance currently enabled?
@@ -13929,7 +13921,7 @@ function UO(e, t) {
13929
13921
  var R = E.map(function(I) {
13930
13922
  return I.fn(f);
13931
13923
  }), O = e.hasAttribute("aria-expanded");
13932
- return Ut(), z(), C(), N("onCreate", [f]), n.showOnCreate && Se(), y.addEventListener("mouseenter", function() {
13924
+ return Ut(), z(), C(), N("onCreate", [f]), n.showOnCreate && Ee(), y.addEventListener("mouseenter", function() {
13933
13925
  f.props.interactive && f.state.isVisible && f.clearDelayTimeouts();
13934
13926
  }), y.addEventListener("mouseleave", function() {
13935
13927
  f.props.interactive && f.props.trigger.indexOf("mouseenter") >= 0 && W().addEventListener("mousemove", h);
@@ -13956,7 +13948,7 @@ function UO(e, t) {
13956
13948
  return Yc(y);
13957
13949
  }
13958
13950
  function A(I) {
13959
- return f.state.isMounted && !f.state.isVisible || un.isTouch || d && d.type === "focus" ? 0 : Bl(f.props.delay, I ? 0 : 1, kt.delay);
13951
+ return f.state.isMounted && !f.state.isVisible || un.isTouch || d && d.type === "focus" ? 0 : Fl(f.props.delay, I ? 0 : 1, kt.delay);
13960
13952
  }
13961
13953
  function C(I) {
13962
13954
  I === void 0 && (I = !1), y.style.pointerEvents = f.props.interactive && !I ? "" : "none", y.style.zIndex = "" + f.props.zIndex;
@@ -14039,11 +14031,11 @@ function UO(e, t) {
14039
14031
  function Xt(I, te) {
14040
14032
  var de = Z().box;
14041
14033
  function Re(ve) {
14042
- ve.target === de && (Hl(de, "remove", Re), te());
14034
+ ve.target === de && (Ul(de, "remove", Re), te());
14043
14035
  }
14044
14036
  if (I === 0)
14045
14037
  return te();
14046
- Hl(de, "remove", u), Hl(de, "add", Re), u = Re;
14038
+ Ul(de, "remove", u), Ul(de, "add", Re), u = Re;
14047
14039
  }
14048
14040
  function vt(I, te, de) {
14049
14041
  de === void 0 && (de = !1);
@@ -14089,7 +14081,7 @@ function UO(e, t) {
14089
14081
  var Re = ((te = d) == null ? void 0 : te.type) === "focus";
14090
14082
  d = I, _ = I.currentTarget, z(), !f.state.isVisible && bO(I) && sa.forEach(function(ve) {
14091
14083
  return ve(I);
14092
- }), I.type === "click" && (f.props.trigger.indexOf("mouseenter") < 0 || a) && f.props.hideOnClick !== !1 && f.state.isVisible ? de = !0 : Se(I), I.type === "click" && (a = !de), de && !Re && $e(I);
14084
+ }), I.type === "click" && (f.props.trigger.indexOf("mouseenter") < 0 || a) && f.props.hideOnClick !== !1 && f.state.isVisible ? de = !0 : Ee(I), I.type === "click" && (a = !de), de && !Re && $e(I);
14093
14085
  }
14094
14086
  }
14095
14087
  function Ct(I) {
@@ -14135,9 +14127,9 @@ function UO(e, t) {
14135
14127
  fn: function(Ko) {
14136
14128
  var $r = Ko.state;
14137
14129
  if (U()) {
14138
- var OS = Z(), El = OS.box;
14130
+ var OS = Z(), fl = OS.box;
14139
14131
  ["placement", "reference-hidden", "escaped"].forEach(function(Qo) {
14140
- Qo === "placement" ? El.setAttribute("data-placement", $r.placement) : $r.attributes.popper["data-popper-" + Qo] ? El.setAttribute("data-" + Qo, "") : El.removeAttribute("data-" + Qo);
14132
+ Qo === "placement" ? fl.setAttribute("data-placement", $r.placement) : $r.attributes.popper["data-popper-" + Qo] ? fl.setAttribute("data-" + Qo, "") : fl.removeAttribute("data-" + Qo);
14141
14133
  }), $r.attributes.popper = {};
14142
14134
  }
14143
14135
  }
@@ -14193,9 +14185,9 @@ function UO(e, t) {
14193
14185
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
14194
14186
  }
14195
14187
  function oe() {
14196
- return Ka(y.querySelectorAll("[data-tippy-root]"));
14188
+ return Wa(y.querySelectorAll("[data-tippy-root]"));
14197
14189
  }
14198
- function Se(I) {
14190
+ function Ee(I) {
14199
14191
  f.clearDelayTimeouts(), I && N("onTrigger", [f, I]), K();
14200
14192
  var te = A(!0), de = k(), Re = de[0], ve = de[1];
14201
14193
  un.isTouch && Re === "hold" && ve && (te = ve), te ? r = setTimeout(function() {
@@ -14245,20 +14237,20 @@ function UO(e, t) {
14245
14237
  }
14246
14238
  function j() {
14247
14239
  $t.NODE_ENV !== "production" && In(f.state.isDestroyed, jr("show"));
14248
- var I = f.state.isVisible, te = f.state.isDestroyed, de = !f.state.isEnabled, Re = un.isTouch && !f.props.touch, ve = Bl(f.props.duration, 0, kt.duration);
14240
+ var I = f.state.isVisible, te = f.state.isDestroyed, de = !f.state.isEnabled, Re = un.isTouch && !f.props.touch, ve = Fl(f.props.duration, 0, kt.duration);
14249
14241
  if (!(I || te || de || Re) && !Y().hasAttribute("disabled") && (N("onShow", [f], !1), f.props.onShow(f) !== !1)) {
14250
14242
  if (f.state.isVisible = !0, U() && (y.style.visibility = "visible"), C(), K(), f.state.isMounted || (y.style.transition = "none"), U()) {
14251
14243
  var ht = Z(), Vt = ht.box, zr = ht.content;
14252
- Ul([Vt, zr], 0);
14244
+ Bl([Vt, zr], 0);
14253
14245
  }
14254
14246
  p = function() {
14255
14247
  var Wo;
14256
14248
  if (!(!f.state.isVisible || c)) {
14257
14249
  if (c = !0, y.offsetHeight, y.style.transition = f.props.moveTransition, U() && f.props.animation) {
14258
14250
  var pr = Z(), Ko = pr.box, $r = pr.content;
14259
- Ul([Ko, $r], ve), tm([Ko, $r], "visible");
14251
+ Bl([Ko, $r], ve), tm([Ko, $r], "visible");
14260
14252
  }
14261
- L(), z(), Jp(Vl, f), (Wo = f.popperInstance) == null || Wo.forceUpdate(), N("onMount", [f]), f.props.animation && U() && et(ve, function() {
14253
+ L(), z(), Jp(Hl, f), (Wo = f.popperInstance) == null || Wo.forceUpdate(), N("onMount", [f]), f.props.animation && U() && et(ve, function() {
14262
14254
  f.state.isShown = !0, N("onShown", [f]);
14263
14255
  });
14264
14256
  }
@@ -14267,11 +14259,11 @@ function UO(e, t) {
14267
14259
  }
14268
14260
  function ce() {
14269
14261
  $t.NODE_ENV !== "production" && In(f.state.isDestroyed, jr("hide"));
14270
- var I = !f.state.isVisible, te = f.state.isDestroyed, de = !f.state.isEnabled, Re = Bl(f.props.duration, 1, kt.duration);
14262
+ var I = !f.state.isVisible, te = f.state.isDestroyed, de = !f.state.isEnabled, Re = Fl(f.props.duration, 1, kt.duration);
14271
14263
  if (!(I || te || de) && (N("onHide", [f], !1), f.props.onHide(f) !== !1)) {
14272
14264
  if (f.state.isVisible = !1, f.state.isShown = !1, c = !1, a = !1, U() && (y.style.visibility = "hidden"), J(), ke(), C(!0), U()) {
14273
14265
  var ve = Z(), ht = ve.box, Vt = ve.content;
14274
- f.props.animation && (Ul([ht, Vt], Re), tm([ht, Vt], "hidden"));
14266
+ f.props.animation && (Bl([ht, Vt], Re), tm([ht, Vt], "hidden"));
14275
14267
  }
14276
14268
  L(), z(), f.props.animation ? U() && mt(Re, f.unmount) : f.unmount();
14277
14269
  }
@@ -14282,7 +14274,7 @@ function UO(e, t) {
14282
14274
  function Dt() {
14283
14275
  $t.NODE_ENV !== "production" && In(f.state.isDestroyed, jr("unmount")), f.state.isVisible && f.hide(), f.state.isMounted && (ie(), oe().forEach(function(I) {
14284
14276
  I._tippy.unmount();
14285
- }), y.parentNode && y.parentNode.removeChild(y), Vl = Vl.filter(function(I) {
14277
+ }), y.parentNode && y.parentNode.removeChild(y), Hl = Hl.filter(function(I) {
14286
14278
  return I !== f;
14287
14279
  }), f.state.isMounted = !1, N("onHidden", [f]));
14288
14280
  }
@@ -14450,7 +14442,7 @@ const me = (e) => typeof e == "string", Pi = () => {
14450
14442
  k: o
14451
14443
  } = no(e, t, Object);
14452
14444
  i[o] = i[o] || [], i[o].push(n);
14453
- }, Qa = (e, t) => {
14445
+ }, Ka = (e, t) => {
14454
14446
  const {
14455
14447
  obj: n,
14456
14448
  k: r
@@ -14458,8 +14450,8 @@ const me = (e) => typeof e == "string", Pi = () => {
14458
14450
  if (n)
14459
14451
  return n[r];
14460
14452
  }, zO = (e, t, n) => {
14461
- const r = Qa(e, n);
14462
- return r !== void 0 ? r : Qa(t, n);
14453
+ const r = Ka(e, n);
14454
+ return r !== void 0 ? r : Ka(t, n);
14463
14455
  }, of = (e, t, n) => {
14464
14456
  for (const r in t)
14465
14457
  r !== "__proto__" && r !== "constructor" && (r in e ? me(e[r]) || e[r] instanceof String || me(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : of(e[r], t[r], n) : e[r] = t[r]);
@@ -14517,7 +14509,7 @@ const jO = [" ", ",", "?", "!", ";"], WO = new qO(20), KO = (e, t, n) => {
14517
14509
  i = a;
14518
14510
  }
14519
14511
  return i;
14520
- }, Za = (e) => e && e.replace("_", "-"), QO = {
14512
+ }, Qa = (e) => e && e.replace("_", "-"), QO = {
14521
14513
  type: "logger",
14522
14514
  log(e) {
14523
14515
  this.output("log", e);
@@ -14532,7 +14524,7 @@ const jO = [" ", ",", "?", "!", ";"], WO = new qO(20), KO = (e, t, n) => {
14532
14524
  console && console[e] && console[e].apply(console, t);
14533
14525
  }
14534
14526
  };
14535
- class Xa {
14527
+ class Za {
14536
14528
  constructor(t) {
14537
14529
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14538
14530
  this.init(t, n);
@@ -14565,17 +14557,17 @@ class Xa {
14565
14557
  return i && !this.debug ? null : (me(t[0]) && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
14566
14558
  }
14567
14559
  create(t) {
14568
- return new Xa(this.logger, {
14560
+ return new Za(this.logger, {
14569
14561
  prefix: `${this.prefix}:${t}:`,
14570
14562
  ...this.options
14571
14563
  });
14572
14564
  }
14573
14565
  clone(t) {
14574
- return t = t || this.options, t.prefix = t.prefix || this.prefix, new Xa(this.logger, t);
14566
+ return t = t || this.options, t.prefix = t.prefix || this.prefix, new Za(this.logger, t);
14575
14567
  }
14576
14568
  }
14577
- var mn = new Xa();
14578
- class il {
14569
+ var mn = new Za();
14570
+ class rl {
14579
14571
  constructor() {
14580
14572
  this.observers = {};
14581
14573
  }
@@ -14609,7 +14601,7 @@ class il {
14609
14601
  });
14610
14602
  }
14611
14603
  }
14612
- class pm extends il {
14604
+ class pm extends rl {
14613
14605
  constructor(t) {
14614
14606
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
14615
14607
  ns: ["translation"],
@@ -14629,7 +14621,7 @@ class pm extends il {
14629
14621
  const o = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
14630
14622
  let s;
14631
14623
  t.indexOf(".") > -1 ? s = t.split(".") : (s = [t, n], r && (Array.isArray(r) ? s.push(...r) : me(r) && o ? s.push(...r.split(o)) : s.push(r)));
14632
- const l = Qa(this.data, s);
14624
+ const l = Ka(this.data, s);
14633
14625
  return !l && !n && !r && t.indexOf(".") > -1 && (t = s[0], n = s[1], r = s.slice(2).join(".")), l || !a || !me(r) ? l : qc(this.data && this.data[t] && this.data[t][n], r, o);
14634
14626
  }
14635
14627
  addResource(t, n, r, i) {
@@ -14656,7 +14648,7 @@ class pm extends il {
14656
14648
  skipCopy: !1
14657
14649
  }, s = [t, n];
14658
14650
  t.indexOf(".") > -1 && (s = t.split("."), i = r, r = n, n = s[1]), this.addNamespaces(n);
14659
- let l = Qa(this.data, s) || {};
14651
+ let l = Ka(this.data, s) || {};
14660
14652
  a.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? of(l, r, o) : l = {
14661
14653
  ...l,
14662
14654
  ...r
@@ -14696,7 +14688,7 @@ var af = {
14696
14688
  }
14697
14689
  };
14698
14690
  const mm = {};
14699
- class Ja extends il {
14691
+ class Xa extends rl {
14700
14692
  constructor(t) {
14701
14693
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14702
14694
  super(), HO(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = mn.create("translator");
@@ -14793,7 +14785,7 @@ class Ja extends il {
14793
14785
  p = p.join(S), p && (p = this.extendTranslation(p, t, n, r));
14794
14786
  else {
14795
14787
  let f = !1, v = !1;
14796
- const y = n.count !== void 0 && !me(n.count), T = Ja.hasDefaultValue(n), R = y ? this.pluralResolver.getSuffix(c, n.count, n) : "", O = n.ordinal && y ? this.pluralResolver.getSuffix(c, n.count, {
14788
+ const y = n.count !== void 0 && !me(n.count), T = Xa.hasDefaultValue(n), R = y ? this.pluralResolver.getSuffix(c, n.count, n) : "", O = n.ordinal && y ? this.pluralResolver.getSuffix(c, n.count, {
14797
14789
  ordinal: !1
14798
14790
  }) : "", k = y && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), G = k && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${R}`] || n[`defaultValue${O}`] || n.defaultValue;
14799
14791
  !this.isValidLookup(p) && T && (f = !0, p = G), this.isValidLookup(p) || (v = !0, p = a);
@@ -14942,18 +14934,18 @@ class Ja extends il {
14942
14934
  return !1;
14943
14935
  }
14944
14936
  }
14945
- const Gl = (e) => e.charAt(0).toUpperCase() + e.slice(1);
14937
+ const Vl = (e) => e.charAt(0).toUpperCase() + e.slice(1);
14946
14938
  class hm {
14947
14939
  constructor(t) {
14948
14940
  this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = mn.create("languageUtils");
14949
14941
  }
14950
14942
  getScriptPartFromCode(t) {
14951
- if (t = Za(t), !t || t.indexOf("-") < 0) return null;
14943
+ if (t = Qa(t), !t || t.indexOf("-") < 0) return null;
14952
14944
  const n = t.split("-");
14953
14945
  return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
14954
14946
  }
14955
14947
  getLanguagePartFromCode(t) {
14956
- if (t = Za(t), !t || t.indexOf("-") < 0) return t;
14948
+ if (t = Qa(t), !t || t.indexOf("-") < 0) return t;
14957
14949
  const n = t.split("-");
14958
14950
  return this.formatLanguageCode(n[0]);
14959
14951
  }
@@ -14967,7 +14959,7 @@ class hm {
14967
14959
  }
14968
14960
  const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
14969
14961
  let r = t.split("-");
14970
- return this.options.lowerCaseLng ? r = r.map((i) => i.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Gl(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Gl(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Gl(r[2].toLowerCase()))), r.join("-");
14962
+ return this.options.lowerCaseLng ? r = r.map((i) => i.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Vl(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Vl(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Vl(r[2].toLowerCase()))), r.join("-");
14971
14963
  }
14972
14964
  return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
14973
14965
  }
@@ -15155,7 +15147,7 @@ class nN {
15155
15147
  getRule(t) {
15156
15148
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
15157
15149
  if (this.shouldUseIntlApi()) {
15158
- const r = Za(t === "dev" ? "en" : t), i = n.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
15150
+ const r = Qa(t === "dev" ? "en" : t), i = n.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
15159
15151
  cleanedCode: r,
15160
15152
  type: i
15161
15153
  });
@@ -15208,7 +15200,7 @@ class nN {
15208
15200
  const gm = function(e, t, n) {
15209
15201
  let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = zO(e, t, n);
15210
15202
  return !o && i && me(n) && (o = qc(e, n, r), o === void 0 && (o = qc(t, n, r))), o;
15211
- }, zl = (e) => e.replace(/\$/g, "$$$$");
15203
+ }, Gl = (e) => e.replace(/\$/g, "$$$$");
15212
15204
  class rN {
15213
15205
  constructor() {
15214
15206
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -15269,10 +15261,10 @@ class rN {
15269
15261
  const d = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, u = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
15270
15262
  return [{
15271
15263
  regex: this.regexpUnescape,
15272
- safeValue: (p) => zl(p)
15264
+ safeValue: (p) => Gl(p)
15273
15265
  }, {
15274
15266
  regex: this.regexp,
15275
- safeValue: (p) => this.escapeValue ? zl(this.escape(p)) : zl(p)
15267
+ safeValue: (p) => this.escapeValue ? Gl(this.escape(p)) : Gl(p)
15276
15268
  }].forEach((p) => {
15277
15269
  for (s = 0; o = p.regex.exec(t); ) {
15278
15270
  const m = o[1].trim();
@@ -15361,7 +15353,7 @@ const iN = (e) => {
15361
15353
  });
15362
15354
  const a = r + JSON.stringify(o);
15363
15355
  let s = t[a];
15364
- return s || (s = e(Za(r), i), t[a] = s), s(n);
15356
+ return s || (s = e(Qa(r), i), t[a] = s), s(n);
15365
15357
  };
15366
15358
  };
15367
15359
  class oN {
@@ -15447,7 +15439,7 @@ class oN {
15447
15439
  const aN = (e, t) => {
15448
15440
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
15449
15441
  };
15450
- class sN extends il {
15442
+ class sN extends rl {
15451
15443
  constructor(t, n, r) {
15452
15444
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
15453
15445
  super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = mn.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, i.backend, i);
@@ -15644,7 +15636,7 @@ const fm = () => ({
15644
15636
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
15645
15637
  });
15646
15638
  };
15647
- class To extends il {
15639
+ class To extends rl {
15648
15640
  constructor() {
15649
15641
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
15650
15642
  if (super(), this.options = Em(t), this.services = {}, this.logger = mn, this.modules = {
@@ -15688,7 +15680,7 @@ class To extends il {
15688
15680
  for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
15689
15681
  m[h - 1] = arguments[h];
15690
15682
  t.emit(u, ...m);
15691
- }), this.modules.languageDetector && (d.languageDetector = o(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = o(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new Ja(this.services, this.options), this.translator.on("*", function(u) {
15683
+ }), this.modules.languageDetector && (d.languageDetector = o(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = o(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new Xa(this.services, this.options), this.translator.on("*", function(u) {
15692
15684
  for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
15693
15685
  m[h - 1] = arguments[h];
15694
15686
  t.emit(u, ...m);
@@ -15863,7 +15855,7 @@ class To extends il {
15863
15855
  ...this.services
15864
15856
  }, o.services.utils = {
15865
15857
  hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
15866
- }, r && (o.store = new pm(this.store.data, i), o.services.resourceStore = o.store), o.translator = new Ja(o.services, i), o.translator.on("*", function(a) {
15858
+ }, r && (o.store = new pm(this.store.data, i), o.services.resourceStore = o.store), o.translator = new Xa(o.services, i), o.translator.on("*", function(a) {
15867
15859
  for (var s = arguments.length, l = new Array(s > 1 ? s - 1 : 0), c = 1; c < s; c++)
15868
15860
  l[c - 1] = arguments[c];
15869
15861
  o.emit(a, ...l);
@@ -16453,7 +16445,7 @@ let IN = class extends be {
16453
16445
  return e.isActive("link");
16454
16446
  }
16455
16447
  };
16456
- const $l = (e) => {
16448
+ const zl = (e) => {
16457
16449
  const t = document.createElement("div");
16458
16450
  return t.innerHTML = e, t.firstElementChild;
16459
16451
  }, xN = (e, t) => {
@@ -17239,7 +17231,7 @@ class df {
17239
17231
  }
17240
17232
  }
17241
17233
  var Xn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17242
- function ol(e) {
17234
+ function il(e) {
17243
17235
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
17244
17236
  }
17245
17237
  function oR(e) {
@@ -17271,7 +17263,7 @@ const sR = {}, lR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
17271
17263
  default: sR
17272
17264
  }, Symbol.toStringTag, { value: "Module" })), cR = /* @__PURE__ */ oR(lR);
17273
17265
  var vm;
17274
- function al() {
17266
+ function ol() {
17275
17267
  return vm || (vm = 1, (function(e, t) {
17276
17268
  (function(n, r) {
17277
17269
  e.exports = r();
@@ -17775,7 +17767,7 @@ var ym = { exports: {} }, Cm;
17775
17767
  function dR() {
17776
17768
  return Cm || (Cm = 1, (function(e, t) {
17777
17769
  (function(n, r) {
17778
- e.exports = r(al());
17770
+ e.exports = r(ol());
17779
17771
  })(Xn, function(n) {
17780
17772
  return (function(r) {
17781
17773
  var i = n, o = i.lib, a = o.WordArray, s = o.Hasher, l = i.algo, c = [], d = [];
@@ -17827,7 +17819,7 @@ var Tm = { exports: {} }, Om;
17827
17819
  function uR() {
17828
17820
  return Om || (Om = 1, (function(e, t) {
17829
17821
  (function(n, r) {
17830
- e.exports = r(al());
17822
+ e.exports = r(ol());
17831
17823
  })(Xn, function(n) {
17832
17824
  (function() {
17833
17825
  var r = n, i = r.lib, o = i.Base, a = r.enc, s = a.Utf8, l = r.algo;
@@ -17903,17 +17895,17 @@ function uR() {
17903
17895
  }
17904
17896
  (function(e, t) {
17905
17897
  (function(n, r, i) {
17906
- e.exports = r(al(), dR(), uR());
17898
+ e.exports = r(ol(), dR(), uR());
17907
17899
  })(Xn, function(n) {
17908
17900
  return n.HmacSHA256;
17909
17901
  });
17910
17902
  })(uf);
17911
17903
  var pR = uf.exports;
17912
- const mR = /* @__PURE__ */ ol(pR);
17904
+ const mR = /* @__PURE__ */ il(pR);
17913
17905
  var pf = { exports: {} };
17914
17906
  (function(e, t) {
17915
17907
  (function(n, r) {
17916
- e.exports = r(al());
17908
+ e.exports = r(ol());
17917
17909
  })(Xn, function(n) {
17918
17910
  return (function() {
17919
17911
  var r = n, i = r.lib, o = i.WordArray, a = r.enc;
@@ -17984,7 +17976,7 @@ var pf = { exports: {} };
17984
17976
  });
17985
17977
  })(pf);
17986
17978
  var hR = pf.exports;
17987
- const _R = /* @__PURE__ */ ol(hR), sl = () => "10000000-1000-4000-8000-100000000000".replace(
17979
+ const _R = /* @__PURE__ */ il(hR), al = () => "10000000-1000-4000-8000-100000000000".replace(
17988
17980
  /[018]/g,
17989
17981
  (e) => (e ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> e / 4).toString(16)
17990
17982
  );
@@ -18016,7 +18008,7 @@ class gR extends zo {
18016
18008
  const n = this.aiModelConfig, r = {
18017
18009
  header: {
18018
18010
  app_id: n.appId,
18019
- uid: sl().replace(/-/g, "")
18011
+ uid: al().replace(/-/g, "")
18020
18012
  },
18021
18013
  parameter: {
18022
18014
  chat: {
@@ -18448,7 +18440,7 @@ const OR = (e) => {
18448
18440
  n.text && (t += n.text);
18449
18441
  }), t;
18450
18442
  };
18451
- class es {
18443
+ class Ja {
18452
18444
  constructor(t, n) {
18453
18445
  D(this, "editor"), D(this, "from"), D(this, "options"), this.editor = t, this.from = t.view.state.selection.from, this.options = n || {
18454
18446
  markdownParseEnable: !0
@@ -18563,7 +18555,7 @@ class RR extends wi {
18563
18555
  const n = this.menuData[t], r = this.getSelectedText(n.text);
18564
18556
  if (r) {
18565
18557
  const i = sr.get(n.model);
18566
- i ? i?.chat(r, n.prompt, new es(this.editor)) : console.error("Ai model config error.");
18558
+ i ? i?.chat(r, n.prompt, new Ja(this.editor)) : console.error("Ai model config error.");
18567
18559
  } else
18568
18560
  console.error("Can not get selected text.");
18569
18561
  }
@@ -18891,7 +18883,7 @@ const DR = /^\s*>\s$/, MR = Be.create({
18891
18883
  ];
18892
18884
  },
18893
18885
  renderHTML({ HTMLAttributes: e }) {
18894
- return ["blockquote", Ee(this.options.HTMLAttributes, e), 0];
18886
+ return ["blockquote", fe(this.options.HTMLAttributes, e), 0];
18895
18887
  },
18896
18888
  addCommands() {
18897
18889
  return {
@@ -18940,7 +18932,7 @@ const DR = /^\s*>\s$/, MR = Be.create({
18940
18932
  ];
18941
18933
  },
18942
18934
  renderHTML({ HTMLAttributes: e }) {
18943
- return ["strong", Ee(this.options.HTMLAttributes, e), 0];
18935
+ return ["strong", fe(this.options.HTMLAttributes, e), 0];
18944
18936
  },
18945
18937
  addCommands() {
18946
18938
  return {
@@ -18999,7 +18991,7 @@ const DR = /^\s*>\s$/, MR = Be.create({
18999
18991
  ];
19000
18992
  },
19001
18993
  renderHTML({ HTMLAttributes: e }) {
19002
- return ["ul", Ee(this.options.HTMLAttributes, e), 0];
18994
+ return ["ul", fe(this.options.HTMLAttributes, e), 0];
19003
18995
  },
19004
18996
  addCommands() {
19005
18997
  return {
@@ -19043,7 +19035,7 @@ const DR = /^\s*>\s$/, MR = Be.create({
19043
19035
  ];
19044
19036
  },
19045
19037
  renderHTML({ HTMLAttributes: e }) {
19046
- return ["code", Ee(this.options.HTMLAttributes, e), 0];
19038
+ return ["code", fe(this.options.HTMLAttributes, e), 0];
19047
19039
  },
19048
19040
  addCommands() {
19049
19041
  return {
@@ -19113,7 +19105,7 @@ const DR = /^\s*>\s$/, MR = Be.create({
19113
19105
  renderHTML({ node: e, HTMLAttributes: t }) {
19114
19106
  return [
19115
19107
  "pre",
19116
- Ee(this.options.HTMLAttributes, t),
19108
+ fe(this.options.HTMLAttributes, t),
19117
19109
  [
19118
19110
  "code",
19119
19111
  {
@@ -19528,7 +19520,7 @@ const rA = Ce.create({
19528
19520
  ];
19529
19521
  },
19530
19522
  renderHTML({ HTMLAttributes: e }) {
19531
- return ["br", Ee(this.options.HTMLAttributes, e)];
19523
+ return ["br", fe(this.options.HTMLAttributes, e)];
19532
19524
  },
19533
19525
  renderText() {
19534
19526
  return `
@@ -19586,7 +19578,7 @@ const rA = Ce.create({
19586
19578
  }));
19587
19579
  },
19588
19580
  renderHTML({ node: e, HTMLAttributes: t }) {
19589
- return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, Ee(this.options.HTMLAttributes, t), 0];
19581
+ return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, fe(this.options.HTMLAttributes, t), 0];
19590
19582
  },
19591
19583
  addCommands() {
19592
19584
  return {
@@ -19610,10 +19602,10 @@ const rA = Ce.create({
19610
19602
  }));
19611
19603
  }
19612
19604
  });
19613
- var ts = 200, Xe = function() {
19605
+ var es = 200, Xe = function() {
19614
19606
  };
19615
19607
  Xe.prototype.append = function(e) {
19616
- return e.length ? (e = Xe.from(e), !this.length && e || e.length < ts && this.leafAppend(e) || this.length < ts && e.leafPrepend(this) || this.appendInner(e)) : this;
19608
+ return e.length ? (e = Xe.from(e), !this.length && e || e.length < es && this.leafAppend(e) || this.length < es && e.leafPrepend(this) || this.appendInner(e)) : this;
19617
19609
  };
19618
19610
  Xe.prototype.prepend = function(e) {
19619
19611
  return e.length ? Xe.from(e).append(this) : this;
@@ -19662,10 +19654,10 @@ var Sf = /* @__PURE__ */ (function(e) {
19662
19654
  if (r(this.values[s], a + s) === !1)
19663
19655
  return !1;
19664
19656
  }, t.prototype.leafAppend = function(r) {
19665
- if (this.length + r.length <= ts)
19657
+ if (this.length + r.length <= es)
19666
19658
  return new t(this.values.concat(r.flatten()));
19667
19659
  }, t.prototype.leafPrepend = function(r) {
19668
- if (this.length + r.length <= ts)
19660
+ if (this.length + r.length <= es)
19669
19661
  return new t(r.flatten().concat(this.values));
19670
19662
  }, n.length.get = function() {
19671
19663
  return this.values.length;
@@ -19855,11 +19847,11 @@ function cA(e, t, n, r) {
19855
19847
  if (n.steps.length == 0)
19856
19848
  return e;
19857
19849
  if (a && a.getMeta(Rr))
19858
- return a.getMeta(Rr).redo ? new Gn(e.done.addTransform(n, void 0, r, Da(t)), e.undone, Am(n.mapping.maps), e.prevTime, e.prevComposition) : new Gn(e.done, e.undone.addTransform(n, void 0, r, Da(t)), null, e.prevTime, e.prevComposition);
19850
+ return a.getMeta(Rr).redo ? new Gn(e.done.addTransform(n, void 0, r, xa(t)), e.undone, Am(n.mapping.maps), e.prevTime, e.prevComposition) : new Gn(e.done, e.undone.addTransform(n, void 0, r, xa(t)), null, e.prevTime, e.prevComposition);
19859
19851
  if (n.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) {
19860
- let s = n.getMeta("composition"), l = e.prevTime == 0 || !a && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !dA(n, e.prevRanges)), c = a ? Yl(e.prevRanges, n.mapping) : Am(n.mapping.maps);
19861
- return new Gn(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, Da(t)), en.empty, c, n.time, s ?? e.prevComposition);
19862
- } else return (o = n.getMeta("rebased")) ? new Gn(e.done.rebased(n, o), e.undone.rebased(n, o), Yl(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new Gn(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Yl(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
19852
+ let s = n.getMeta("composition"), l = e.prevTime == 0 || !a && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !dA(n, e.prevRanges)), c = a ? $l(e.prevRanges, n.mapping) : Am(n.mapping.maps);
19853
+ return new Gn(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, xa(t)), en.empty, c, n.time, s ?? e.prevComposition);
19854
+ } else return (o = n.getMeta("rebased")) ? new Gn(e.done.rebased(n, o), e.undone.rebased(n, o), $l(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new Gn(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), $l(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
19863
19855
  }
19864
19856
  function dA(e, t) {
19865
19857
  if (!t)
@@ -19878,7 +19870,7 @@ function Am(e) {
19878
19870
  e[n].forEach((r, i, o, a) => t.push(o, a));
19879
19871
  return t;
19880
19872
  }
19881
- function Yl(e, t) {
19873
+ function $l(e, t) {
19882
19874
  if (!e)
19883
19875
  return null;
19884
19876
  let n = [];
@@ -19889,24 +19881,24 @@ function Yl(e, t) {
19889
19881
  return n;
19890
19882
  }
19891
19883
  function uA(e, t, n) {
19892
- let r = Da(t), i = Rr.get(t).spec.config, o = (n ? e.undone : e.done).popEvent(t, r);
19884
+ let r = xa(t), i = Rr.get(t).spec.config, o = (n ? e.undone : e.done).popEvent(t, r);
19893
19885
  if (!o)
19894
19886
  return null;
19895
19887
  let a = o.selection.resolve(o.transform.doc), s = (n ? e.done : e.undone).addTransform(o.transform, t.selection.getBookmark(), i, r), l = new Gn(n ? s : o.remaining, n ? o.remaining : s, null, 0, -1);
19896
19888
  return o.transform.setSelection(a).setMeta(Rr, { redo: n, historyState: l });
19897
19889
  }
19898
- let ql = !1, wm = null;
19899
- function Da(e) {
19890
+ let Yl = !1, wm = null;
19891
+ function xa(e) {
19900
19892
  let t = e.plugins;
19901
19893
  if (wm != t) {
19902
- ql = !1, wm = t;
19894
+ Yl = !1, wm = t;
19903
19895
  for (let n = 0; n < t.length; n++)
19904
19896
  if (t[n].spec.historyPreserveItems) {
19905
- ql = !0;
19897
+ Yl = !0;
19906
19898
  break;
19907
19899
  }
19908
19900
  }
19909
- return ql;
19901
+ return Yl;
19910
19902
  }
19911
19903
  const Rr = new De("history"), pA = new De("closeHistory");
19912
19904
  function mA(e = {}) {
@@ -19987,7 +19979,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
19987
19979
  return [{ tag: "hr" }];
19988
19980
  },
19989
19981
  renderHTML({ HTMLAttributes: e }) {
19990
- return ["hr", Ee(this.options.HTMLAttributes, e)];
19982
+ return ["hr", fe(this.options.HTMLAttributes, e)];
19991
19983
  },
19992
19984
  addCommands() {
19993
19985
  return {
@@ -20053,7 +20045,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20053
20045
  ];
20054
20046
  },
20055
20047
  renderHTML({ HTMLAttributes: e }) {
20056
- return ["em", Ee(this.options.HTMLAttributes, e), 0];
20048
+ return ["em", fe(this.options.HTMLAttributes, e), 0];
20057
20049
  },
20058
20050
  addCommands() {
20059
20051
  return {
@@ -20111,7 +20103,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20111
20103
  ];
20112
20104
  },
20113
20105
  renderHTML({ HTMLAttributes: e }) {
20114
- return ["li", Ee(this.options.HTMLAttributes, e), 0];
20106
+ return ["li", fe(this.options.HTMLAttributes, e), 0];
20115
20107
  },
20116
20108
  addKeyboardShortcuts() {
20117
20109
  return {
@@ -20155,7 +20147,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20155
20147
  },
20156
20148
  renderHTML({ HTMLAttributes: e }) {
20157
20149
  const { start: t, ...n } = e;
20158
- return t === 1 ? ["ol", Ee(this.options.HTMLAttributes, n), 0] : ["ol", Ee(this.options.HTMLAttributes, e), 0];
20150
+ return t === 1 ? ["ol", fe(this.options.HTMLAttributes, n), 0] : ["ol", fe(this.options.HTMLAttributes, e), 0];
20159
20151
  },
20160
20152
  addCommands() {
20161
20153
  return {
@@ -20202,7 +20194,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20202
20194
  ];
20203
20195
  },
20204
20196
  renderHTML({ HTMLAttributes: e }) {
20205
- return ["p", Ee(this.options.HTMLAttributes, e), 0];
20197
+ return ["p", fe(this.options.HTMLAttributes, e), 0];
20206
20198
  },
20207
20199
  addCommands() {
20208
20200
  return {
@@ -20240,7 +20232,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20240
20232
  ];
20241
20233
  },
20242
20234
  renderHTML({ HTMLAttributes: e }) {
20243
- return ["s", Ee(this.options.HTMLAttributes, e), 0];
20235
+ return ["s", fe(this.options.HTMLAttributes, e), 0];
20244
20236
  },
20245
20237
  addCommands() {
20246
20238
  return {
@@ -20299,7 +20291,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20299
20291
  ];
20300
20292
  },
20301
20293
  renderHTML({ HTMLAttributes: e }) {
20302
- return ["u", Ee(this.options.HTMLAttributes, e), 0];
20294
+ return ["u", fe(this.options.HTMLAttributes, e), 0];
20303
20295
  },
20304
20296
  addCommands() {
20305
20297
  return {
@@ -20341,7 +20333,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20341
20333
  ];
20342
20334
  },
20343
20335
  renderHTML({ HTMLAttributes: e }) {
20344
- return ["span", Ee(this.options.HTMLAttributes, e), 0];
20336
+ return ["span", fe(this.options.HTMLAttributes, e), 0];
20345
20337
  },
20346
20338
  addCommands() {
20347
20339
  return {
@@ -20428,7 +20420,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20428
20420
  const t = typeof this.options.uploadHeaders == "object" ? this.options.uploadHeaders : typeof this.options.uploadHeaders == "function" ? this.options.uploadHeaders() : {};
20429
20421
  if (this.options.uploaderEvent && this.options.uploaderEvent.onUploadBefore && this.options.uploaderEvent.onUploadBefore(e, this.options.uploadUrl, t) === !1)
20430
20422
  return !1;
20431
- const n = sl(), { state: { tr: r }, view: i, schema: o } = this.editor;
20423
+ const n = al(), { state: { tr: r }, view: i, schema: o } = this.editor;
20432
20424
  r.selection.empty || r.deleteSelection(), i.dispatch(r.setMeta(Fi, {
20433
20425
  type: "add",
20434
20426
  id: n,
@@ -20560,7 +20552,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20560
20552
  ];
20561
20553
  },
20562
20554
  renderHTML({ HTMLAttributes: e }) {
20563
- return ["mark", Ee(this.options.HTMLAttributes, e), 0];
20555
+ return ["mark", fe(this.options.HTMLAttributes, e), 0];
20564
20556
  },
20565
20557
  addCommands() {
20566
20558
  return {
@@ -20833,7 +20825,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20833
20825
  ];
20834
20826
  },
20835
20827
  renderHTML({ HTMLAttributes: e }) {
20836
- return ["img", Ee(this.options.HTMLAttributes, e)];
20828
+ return ["img", fe(this.options.HTMLAttributes, e)];
20837
20829
  },
20838
20830
  addCommands() {
20839
20831
  return {
@@ -20962,7 +20954,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20962
20954
  ];
20963
20955
  },
20964
20956
  renderHTML({ HTMLAttributes: e }) {
20965
- const t = Ee(this.options.HTMLAttributes, e);
20957
+ const t = fe(this.options.HTMLAttributes, e);
20966
20958
  return t.href ? [
20967
20959
  "div",
20968
20960
  { style: `text-align:${t["data-align"] || "left"}` },
@@ -20988,7 +20980,7 @@ const vf = bf(!1), yf = bf(!0), hA = Ce.create({
20988
20980
  setTimeout(() => {
20989
20981
  this.editor.commands.deleteSelection();
20990
20982
  });
20991
- const r = sl(), { state: { tr: i }, view: o, schema: a } = this.editor;
20983
+ const r = al(), { state: { tr: i }, view: o, schema: a } = this.editor;
20992
20984
  o.dispatch(i.setMeta(Bi, {
20993
20985
  type: "add",
20994
20986
  id: r,
@@ -21348,7 +21340,7 @@ function nn(e) {
21348
21340
  if (t.node(n).type.spec.tableRole == "row") return !0;
21349
21341
  return !1;
21350
21342
  }
21351
- function ll(e) {
21343
+ function sl(e) {
21352
21344
  const t = e.selection;
21353
21345
  if ("$anchorCell" in t && t.$anchorCell)
21354
21346
  return t.$anchorCell.pos > t.$headCell.pos ? t.$anchorCell : t.$headCell;
@@ -21712,7 +21704,7 @@ function uw(e, t, n, r) {
21712
21704
  return r.setMeta(dw, { fixTables: !0 });
21713
21705
  }
21714
21706
  function vn(e) {
21715
- const t = e.selection, n = ll(e), r = n.node(-1), i = n.start(-1), o = Ue.get(r);
21707
+ const t = e.selection, n = sl(e), r = n.node(-1), i = n.start(-1), o = Ue.get(r);
21716
21708
  return { ...t instanceof we ? o.rectBetween(
21717
21709
  t.$anchorCell.pos - i,
21718
21710
  t.$headCell.pos - i
@@ -21984,7 +21976,7 @@ function yw(e) {
21984
21976
  function Cw(e, t) {
21985
21977
  return function(n, r) {
21986
21978
  if (!nn(n)) return !1;
21987
- const i = ll(n);
21979
+ const i = sl(n);
21988
21980
  if (i.nodeAfter.attrs[e] === t) return !1;
21989
21981
  if (r) {
21990
21982
  const o = n.tr;
@@ -22111,7 +22103,7 @@ function Nw(e, t) {
22111
22103
  function Bm(e) {
22112
22104
  return function(t, n) {
22113
22105
  if (!nn(t)) return !1;
22114
- const r = Nw(ll(t), e);
22106
+ const r = Nw(sl(t), e);
22115
22107
  if (r == null) return !1;
22116
22108
  if (n) {
22117
22109
  const i = t.doc.resolve(r);
@@ -22356,7 +22348,7 @@ var Dw = wd({
22356
22348
  Delete: da,
22357
22349
  "Mod-Delete": da
22358
22350
  });
22359
- function Ma(e, t, n) {
22351
+ function Da(e, t, n) {
22360
22352
  return n.eq(e.selection) ? !1 : (t && t(e.tr.setSelection(n).scrollIntoView()), !0);
22361
22353
  }
22362
22354
  function ua(e, t) {
@@ -22364,7 +22356,7 @@ function ua(e, t) {
22364
22356
  if (!i) return !1;
22365
22357
  const o = n.selection;
22366
22358
  if (o instanceof we)
22367
- return Ma(
22359
+ return Da(
22368
22360
  n,
22369
22361
  r,
22370
22362
  le.near(o.$headCell, t)
@@ -22373,7 +22365,7 @@ function ua(e, t) {
22373
22365
  const a = Df(i, e, t);
22374
22366
  if (a == null) return !1;
22375
22367
  if (e == "horiz")
22376
- return Ma(
22368
+ return Da(
22377
22369
  n,
22378
22370
  r,
22379
22371
  le.near(n.doc.resolve(o.head + t), t)
@@ -22381,7 +22373,7 @@ function ua(e, t) {
22381
22373
  {
22382
22374
  const s = n.doc.resolve(a), l = Of(s, e, t);
22383
22375
  let c;
22384
- return l ? c = le.near(l, 1) : t < 0 ? c = le.near(n.doc.resolve(s.before(-1)), -1) : c = le.near(n.doc.resolve(s.after(-1)), 1), Ma(n, r, c);
22376
+ return l ? c = le.near(l, 1) : t < 0 ? c = le.near(n.doc.resolve(s.before(-1)), -1) : c = le.near(n.doc.resolve(s.after(-1)), 1), Da(n, r, c);
22385
22377
  }
22386
22378
  };
22387
22379
  }
@@ -22398,7 +22390,7 @@ function pa(e, t) {
22398
22390
  a = new we(n.doc.resolve(l));
22399
22391
  }
22400
22392
  const s = Of(a.$headCell, e, t);
22401
- return s ? Ma(
22393
+ return s ? Da(
22402
22394
  n,
22403
22395
  r,
22404
22396
  new we(a.$anchorCell, s)
@@ -22429,7 +22421,7 @@ function kw(e, t, n) {
22429
22421
  );
22430
22422
  return r = Iw(r, s.right - s.left, s.bottom - s.top), Vm(e.state, e.dispatch, a, s, r), !0;
22431
22423
  } else if (r) {
22432
- const o = ll(e.state), a = o.start(-1);
22424
+ const o = sl(e.state), a = o.start(-1);
22433
22425
  return Vm(
22434
22426
  e.state,
22435
22427
  e.dispatch,
@@ -22447,12 +22439,12 @@ function Lw(e, t) {
22447
22439
  let i;
22448
22440
  if (t.shiftKey && e.state.selection instanceof we)
22449
22441
  o(e.state.selection.$anchorCell, t), t.preventDefault();
22450
- else if (t.shiftKey && r && (i = Ii(e.state.selection.$anchor)) != null && ((n = jl(e, t)) == null ? void 0 : n.pos) != i.pos)
22442
+ else if (t.shiftKey && r && (i = Ii(e.state.selection.$anchor)) != null && ((n = ql(e, t)) == null ? void 0 : n.pos) != i.pos)
22451
22443
  o(i, t), t.preventDefault();
22452
22444
  else if (!r)
22453
22445
  return;
22454
22446
  function o(l, c) {
22455
- let d = jl(e, c);
22447
+ let d = ql(e, c);
22456
22448
  const u = qn.getState(e.state) == null;
22457
22449
  if (!d || !Zd(l, d))
22458
22450
  if (u) d = l;
@@ -22471,7 +22463,7 @@ function Lw(e, t) {
22471
22463
  let u;
22472
22464
  if (d != null)
22473
22465
  u = e.state.doc.resolve(d);
22474
- else if (Gm(e, c.target) != r && (u = jl(e, t), !u))
22466
+ else if (Gm(e, c.target) != r && (u = ql(e, t), !u))
22475
22467
  return a();
22476
22468
  u && o(u, c);
22477
22469
  }
@@ -22496,7 +22488,7 @@ function Gm(e, t) {
22496
22488
  return t;
22497
22489
  return null;
22498
22490
  }
22499
- function jl(e, t) {
22491
+ function ql(e, t) {
22500
22492
  const n = e.posAtCoords({
22501
22493
  left: t.clientX,
22502
22494
  top: t.clientY
@@ -22594,19 +22586,19 @@ function Fw({
22594
22586
  });
22595
22587
  return o;
22596
22588
  }
22597
- var Bw = class ka {
22589
+ var Bw = class Ma {
22598
22590
  constructor(t, n) {
22599
22591
  this.activeHandle = t, this.dragging = n;
22600
22592
  }
22601
22593
  apply(t) {
22602
22594
  const n = this, r = t.getMeta(Lt);
22603
22595
  if (r && r.setHandle != null)
22604
- return new ka(r.setHandle, !1);
22596
+ return new Ma(r.setHandle, !1);
22605
22597
  if (r && r.setDragging !== void 0)
22606
- return new ka(n.activeHandle, r.setDragging);
22598
+ return new Ma(n.activeHandle, r.setDragging);
22607
22599
  if (n.activeHandle > -1 && t.docChanged) {
22608
22600
  let i = t.mapping.map(n.activeHandle, -1);
22609
- return Kc(t.doc.resolve(i)) || (i = -1), new ka(i, n.dragging);
22601
+ return Kc(t.doc.resolve(i)) || (i = -1), new Ma(i, n.dragging);
22610
22602
  }
22611
22603
  return n;
22612
22604
  }
@@ -22935,7 +22927,7 @@ const ma = ({ editor: e }) => {
22935
22927
  const { colgroup: n, tableWidth: r, tableMinWidth: i } = Kw(e, this.options.cellMinWidth);
22936
22928
  return [
22937
22929
  "table",
22938
- Ee(this.options.HTMLAttributes, t, {
22930
+ fe(this.options.HTMLAttributes, t, {
22939
22931
  style: r ? `width: ${r}` : `min-width: ${i}`
22940
22932
  }),
22941
22933
  n,
@@ -23029,7 +23021,7 @@ const ma = ({ editor: e }) => {
23029
23021
  ];
23030
23022
  },
23031
23023
  renderHTML({ HTMLAttributes: e }) {
23032
- return ["tr", Ee(this.options.HTMLAttributes, e), 0];
23024
+ return ["tr", fe(this.options.HTMLAttributes, e), 0];
23033
23025
  }
23034
23026
  }), t0 = Be.create({
23035
23027
  name: "tableHeader",
@@ -23064,7 +23056,7 @@ const ma = ({ editor: e }) => {
23064
23056
  ];
23065
23057
  },
23066
23058
  renderHTML({ HTMLAttributes: e }) {
23067
- return ["th", Ee(this.options.HTMLAttributes, e), 0];
23059
+ return ["th", fe(this.options.HTMLAttributes, e), 0];
23068
23060
  }
23069
23061
  }), n0 = t0.extend({
23070
23062
  addAttributes() {
@@ -23127,7 +23119,7 @@ const ma = ({ editor: e }) => {
23127
23119
  ];
23128
23120
  },
23129
23121
  renderHTML({ HTMLAttributes: e }) {
23130
- return ["td", Ee(this.options.HTMLAttributes, e), 0];
23122
+ return ["td", fe(this.options.HTMLAttributes, e), 0];
23131
23123
  }
23132
23124
  }), i0 = r0.extend({
23133
23125
  addAttributes() {
@@ -23227,7 +23219,7 @@ const ma = ({ editor: e }) => {
23227
23219
  for (const n in t)
23228
23220
  e[n] = t[n];
23229
23221
  return e;
23230
- }, Jc = "numeric", ed = "ascii", td = "alpha", io = "asciinumeric", ji = "alphanumeric", nd = "domain", kf = "emoji", l0 = "scheme", c0 = "slashscheme", Wl = "whitespace";
23222
+ }, Jc = "numeric", ed = "ascii", td = "alpha", io = "asciinumeric", ji = "alphanumeric", nd = "domain", kf = "emoji", l0 = "scheme", c0 = "slashscheme", jl = "whitespace";
23231
23223
  function d0(e, t) {
23232
23224
  return e in t || (t[e] = []), t[e];
23233
23225
  }
@@ -23368,7 +23360,7 @@ Ot.prototype = {
23368
23360
  return i.j[e] = a, a;
23369
23361
  }
23370
23362
  };
23371
- const _e = (e, t, n, r, i) => e.ta(t, n, r, i), He = (e, t, n, r, i) => e.tr(t, n, r, i), Wm = (e, t, n, r, i) => e.ts(t, n, r, i), F = (e, t, n, r, i) => e.tt(t, n, r, i), An = "WORD", rd = "UWORD", Lf = "ASCIINUMERICAL", Pf = "ALPHANUMERICAL", No = "LOCALHOST", id = "TLD", od = "UTLD", La = "SCHEME", ni = "SLASH_SCHEME", Xd = "NUM", ad = "WS", Jd = "NL", oo = "OPENBRACE", ao = "CLOSEBRACE", ns = "OPENBRACKET", rs = "CLOSEBRACKET", is = "OPENPAREN", as = "CLOSEPAREN", ss = "OPENANGLEBRACKET", ls = "CLOSEANGLEBRACKET", cs = "FULLWIDTHLEFTPAREN", ds = "FULLWIDTHRIGHTPAREN", us = "LEFTCORNERBRACKET", ps = "RIGHTCORNERBRACKET", ms = "LEFTWHITECORNERBRACKET", hs = "RIGHTWHITECORNERBRACKET", _s = "FULLWIDTHLESSTHAN", gs = "FULLWIDTHGREATERTHAN", fs = "AMPERSAND", eu = "APOSTROPHE", Es = "ASTERISK", zn = "AT", Ss = "BACKSLASH", bs = "BACKTICK", vs = "CARET", jn = "COLON", tu = "COMMA", ys = "DOLLAR", ln = "DOT", Cs = "EQUALS", nu = "EXCLAMATION", zt = "HYPHEN", so = "PERCENT", Ts = "PIPE", Os = "PLUS", Ns = "POUND", lo = "QUERY", ru = "QUOTE", Ff = "FULLWIDTHMIDDLEDOT", iu = "SEMI", cn = "SLASH", co = "TILDE", Rs = "UNDERSCORE", Bf = "EMOJI", As = "SYM";
23363
+ const _e = (e, t, n, r, i) => e.ta(t, n, r, i), He = (e, t, n, r, i) => e.tr(t, n, r, i), Wm = (e, t, n, r, i) => e.ts(t, n, r, i), F = (e, t, n, r, i) => e.tt(t, n, r, i), An = "WORD", rd = "UWORD", Lf = "ASCIINUMERICAL", Pf = "ALPHANUMERICAL", No = "LOCALHOST", id = "TLD", od = "UTLD", ka = "SCHEME", ni = "SLASH_SCHEME", Xd = "NUM", ad = "WS", Jd = "NL", oo = "OPENBRACE", ao = "CLOSEBRACE", ts = "OPENBRACKET", ns = "CLOSEBRACKET", rs = "OPENPAREN", is = "CLOSEPAREN", as = "OPENANGLEBRACKET", ss = "CLOSEANGLEBRACKET", ls = "FULLWIDTHLEFTPAREN", cs = "FULLWIDTHRIGHTPAREN", ds = "LEFTCORNERBRACKET", us = "RIGHTCORNERBRACKET", ps = "LEFTWHITECORNERBRACKET", ms = "RIGHTWHITECORNERBRACKET", hs = "FULLWIDTHLESSTHAN", _s = "FULLWIDTHGREATERTHAN", gs = "AMPERSAND", eu = "APOSTROPHE", fs = "ASTERISK", zn = "AT", Es = "BACKSLASH", Ss = "BACKTICK", bs = "CARET", jn = "COLON", tu = "COMMA", vs = "DOLLAR", ln = "DOT", ys = "EQUALS", nu = "EXCLAMATION", zt = "HYPHEN", so = "PERCENT", Cs = "PIPE", Ts = "PLUS", Os = "POUND", lo = "QUERY", ru = "QUOTE", Ff = "FULLWIDTHMIDDLEDOT", iu = "SEMI", cn = "SLASH", co = "TILDE", Ns = "UNDERSCORE", Bf = "EMOJI", Rs = "SYM";
23372
23364
  var Uf = /* @__PURE__ */ Object.freeze({
23373
23365
  __proto__: null,
23374
23366
  WORD: An,
@@ -23378,63 +23370,63 @@ var Uf = /* @__PURE__ */ Object.freeze({
23378
23370
  LOCALHOST: No,
23379
23371
  TLD: id,
23380
23372
  UTLD: od,
23381
- SCHEME: La,
23373
+ SCHEME: ka,
23382
23374
  SLASH_SCHEME: ni,
23383
23375
  NUM: Xd,
23384
23376
  WS: ad,
23385
23377
  NL: Jd,
23386
23378
  OPENBRACE: oo,
23387
23379
  CLOSEBRACE: ao,
23388
- OPENBRACKET: ns,
23389
- CLOSEBRACKET: rs,
23390
- OPENPAREN: is,
23391
- CLOSEPAREN: as,
23392
- OPENANGLEBRACKET: ss,
23393
- CLOSEANGLEBRACKET: ls,
23394
- FULLWIDTHLEFTPAREN: cs,
23395
- FULLWIDTHRIGHTPAREN: ds,
23396
- LEFTCORNERBRACKET: us,
23397
- RIGHTCORNERBRACKET: ps,
23398
- LEFTWHITECORNERBRACKET: ms,
23399
- RIGHTWHITECORNERBRACKET: hs,
23400
- FULLWIDTHLESSTHAN: _s,
23401
- FULLWIDTHGREATERTHAN: gs,
23402
- AMPERSAND: fs,
23380
+ OPENBRACKET: ts,
23381
+ CLOSEBRACKET: ns,
23382
+ OPENPAREN: rs,
23383
+ CLOSEPAREN: is,
23384
+ OPENANGLEBRACKET: as,
23385
+ CLOSEANGLEBRACKET: ss,
23386
+ FULLWIDTHLEFTPAREN: ls,
23387
+ FULLWIDTHRIGHTPAREN: cs,
23388
+ LEFTCORNERBRACKET: ds,
23389
+ RIGHTCORNERBRACKET: us,
23390
+ LEFTWHITECORNERBRACKET: ps,
23391
+ RIGHTWHITECORNERBRACKET: ms,
23392
+ FULLWIDTHLESSTHAN: hs,
23393
+ FULLWIDTHGREATERTHAN: _s,
23394
+ AMPERSAND: gs,
23403
23395
  APOSTROPHE: eu,
23404
- ASTERISK: Es,
23396
+ ASTERISK: fs,
23405
23397
  AT: zn,
23406
- BACKSLASH: Ss,
23407
- BACKTICK: bs,
23408
- CARET: vs,
23398
+ BACKSLASH: Es,
23399
+ BACKTICK: Ss,
23400
+ CARET: bs,
23409
23401
  COLON: jn,
23410
23402
  COMMA: tu,
23411
- DOLLAR: ys,
23403
+ DOLLAR: vs,
23412
23404
  DOT: ln,
23413
- EQUALS: Cs,
23405
+ EQUALS: ys,
23414
23406
  EXCLAMATION: nu,
23415
23407
  HYPHEN: zt,
23416
23408
  PERCENT: so,
23417
- PIPE: Ts,
23418
- PLUS: Os,
23419
- POUND: Ns,
23409
+ PIPE: Cs,
23410
+ PLUS: Ts,
23411
+ POUND: Os,
23420
23412
  QUERY: lo,
23421
23413
  QUOTE: ru,
23422
23414
  FULLWIDTHMIDDLEDOT: Ff,
23423
23415
  SEMI: iu,
23424
23416
  SLASH: cn,
23425
23417
  TILDE: co,
23426
- UNDERSCORE: Rs,
23418
+ UNDERSCORE: Ns,
23427
23419
  EMOJI: Bf,
23428
- SYM: As
23420
+ SYM: Rs
23429
23421
  });
23430
- const On = /[a-z]/, Ui = new RegExp("\\p{L}", "u"), Kl = new RegExp("\\p{Emoji}", "u"), Nn = /\d/, Ql = /\s/, Km = "\r", Zl = `
23431
- `, p0 = "️", m0 = "‍", Xl = "";
23422
+ const On = /[a-z]/, Ui = new RegExp("\\p{L}", "u"), Wl = new RegExp("\\p{Emoji}", "u"), Nn = /\d/, Kl = /\s/, Km = "\r", Ql = `
23423
+ `, p0 = "️", m0 = "‍", Zl = "";
23432
23424
  let ha = null, _a = null;
23433
23425
  function h0(e = []) {
23434
23426
  const t = {};
23435
23427
  Ot.groups = t;
23436
23428
  const n = new Ot();
23437
- ha == null && (ha = Qm(a0)), _a == null && (_a = Qm(s0)), F(n, "'", eu), F(n, "{", oo), F(n, "}", ao), F(n, "[", ns), F(n, "]", rs), F(n, "(", is), F(n, ")", as), F(n, "<", ss), F(n, ">", ls), F(n, "(", cs), F(n, ")", ds), F(n, "「", us), F(n, "」", ps), F(n, "『", ms), F(n, "』", hs), F(n, "<", _s), F(n, ">", gs), F(n, "&", fs), F(n, "*", Es), F(n, "@", zn), F(n, "`", bs), F(n, "^", vs), F(n, ":", jn), F(n, ",", tu), F(n, "$", ys), F(n, ".", ln), F(n, "=", Cs), F(n, "!", nu), F(n, "-", zt), F(n, "%", so), F(n, "|", Ts), F(n, "+", Os), F(n, "#", Ns), F(n, "?", lo), F(n, '"', ru), F(n, "/", cn), F(n, ";", iu), F(n, "~", co), F(n, "_", Rs), F(n, "\\", Ss), F(n, "・", Ff);
23429
+ ha == null && (ha = Qm(a0)), _a == null && (_a = Qm(s0)), F(n, "'", eu), F(n, "{", oo), F(n, "}", ao), F(n, "[", ts), F(n, "]", ns), F(n, "(", rs), F(n, ")", is), F(n, "<", as), F(n, ">", ss), F(n, "(", ls), F(n, ")", cs), F(n, "「", ds), F(n, "」", us), F(n, "『", ps), F(n, "』", ms), F(n, "<", hs), F(n, ">", _s), F(n, "&", gs), F(n, "*", fs), F(n, "@", zn), F(n, "`", Ss), F(n, "^", bs), F(n, ":", jn), F(n, ",", tu), F(n, "$", vs), F(n, ".", ln), F(n, "=", ys), F(n, "!", nu), F(n, "-", zt), F(n, "%", so), F(n, "|", Cs), F(n, "+", Ts), F(n, "#", Os), F(n, "?", lo), F(n, '"', ru), F(n, "/", cn), F(n, ";", iu), F(n, "~", co), F(n, "_", Ns), F(n, "\\", Es), F(n, "・", Ff);
23438
23430
  const r = He(n, Nn, Xd, {
23439
23431
  [Jc]: !0
23440
23432
  });
@@ -23451,20 +23443,20 @@ function h0(e = []) {
23451
23443
  [td]: !0
23452
23444
  });
23453
23445
  He(s, On), He(s, Nn, o), He(s, Ui, s), He(o, Nn, o), He(o, On), He(o, Ui, o);
23454
- const l = F(n, Zl, Jd, {
23455
- [Wl]: !0
23446
+ const l = F(n, Ql, Jd, {
23447
+ [jl]: !0
23456
23448
  }), c = F(n, Km, ad, {
23457
- [Wl]: !0
23458
- }), d = He(n, Ql, ad, {
23459
- [Wl]: !0
23449
+ [jl]: !0
23450
+ }), d = He(n, Kl, ad, {
23451
+ [jl]: !0
23460
23452
  });
23461
- F(n, Xl, d), F(c, Zl, l), F(c, Xl, d), He(c, Ql, d), F(d, Km), F(d, Zl), He(d, Ql, d), F(d, Xl, d);
23462
- const u = He(n, Kl, Bf, {
23453
+ F(n, Zl, d), F(c, Ql, l), F(c, Zl, d), He(c, Kl, d), F(d, Km), F(d, Ql), He(d, Kl, d), F(d, Zl, d);
23454
+ const u = He(n, Wl, Bf, {
23463
23455
  [kf]: !0
23464
23456
  });
23465
- F(u, "#"), He(u, Kl, u), F(u, p0, u);
23457
+ F(u, "#"), He(u, Wl, u), F(u, p0, u);
23466
23458
  const p = F(u, m0);
23467
- F(p, "#"), He(p, Kl, u);
23459
+ F(p, "#"), He(p, Wl, u);
23468
23460
  const m = [[On, a], [Nn, i]], h = [[On, null], [Ui, s], [Nn, o]];
23469
23461
  for (let _ = 0; _ < ha.length; _++)
23470
23462
  Bn(n, ha[_], id, An, m);
@@ -23476,7 +23468,7 @@ function h0(e = []) {
23476
23468
  }, t), vr(od, {
23477
23469
  utld: !0,
23478
23470
  alpha: !0
23479
- }, t), Bn(n, "file", La, An, m), Bn(n, "mailto", La, An, m), Bn(n, "http", ni, An, m), Bn(n, "https", ni, An, m), Bn(n, "ftp", ni, An, m), Bn(n, "ftps", ni, An, m), vr(La, {
23471
+ }, t), Bn(n, "file", ka, An, m), Bn(n, "mailto", ka, An, m), Bn(n, "http", ni, An, m), Bn(n, "https", ni, An, m), Bn(n, "ftp", ni, An, m), Bn(n, "ftps", ni, An, m), vr(ka, {
23480
23472
  scheme: !0,
23481
23473
  ascii: !0
23482
23474
  }, t), vr(ni, {
@@ -23493,7 +23485,7 @@ function h0(e = []) {
23493
23485
  }
23494
23486
  return Wm(n, "localhost", No, {
23495
23487
  ascii: !0
23496
- }), n.jd = new Ot(As), {
23488
+ }), n.jd = new Ot(Rs), {
23497
23489
  start: n,
23498
23490
  tokens: yi({
23499
23491
  groups: t
@@ -23751,7 +23743,7 @@ Vf.prototype = {
23751
23743
  };
23752
23744
  }
23753
23745
  };
23754
- function cl(e, t) {
23746
+ function ll(e, t) {
23755
23747
  class n extends Vf {
23756
23748
  constructor(i, o) {
23757
23749
  super(i, o), this.t = e;
@@ -23761,12 +23753,12 @@ function cl(e, t) {
23761
23753
  n.prototype[r] = t[r];
23762
23754
  return n.t = e, n;
23763
23755
  }
23764
- const Xm = cl("email", {
23756
+ const Xm = ll("email", {
23765
23757
  isLink: !0,
23766
23758
  toHref() {
23767
23759
  return "mailto:" + this.toString();
23768
23760
  }
23769
- }), Jm = cl("text"), g0 = cl("nl"), ga = cl("url", {
23761
+ }), Jm = ll("text"), g0 = ll("nl"), ga = ll("url", {
23770
23762
  isLink: !0,
23771
23763
  /**
23772
23764
  Lowercases relevant parts of the domain and adds the protocol if
@@ -23790,7 +23782,7 @@ const Xm = cl("email", {
23790
23782
  function f0({
23791
23783
  groups: e
23792
23784
  }) {
23793
- const t = e.domain.concat([fs, Es, zn, Ss, bs, vs, ys, Cs, zt, Xd, so, Ts, Os, Ns, cn, As, co, Rs]), n = [jn, tu, ln, nu, so, lo, ru, iu, ss, ls, oo, ao, rs, ns, is, as, cs, ds, us, ps, ms, hs, _s, gs], r = [fs, eu, Es, Ss, bs, vs, ys, Cs, zt, oo, ao, so, Ts, Os, Ns, lo, cn, As, co, Rs], i = Gt(), o = F(i, co);
23785
+ const t = e.domain.concat([gs, fs, zn, Es, Ss, bs, vs, ys, zt, Xd, so, Cs, Ts, Os, cn, Rs, co, Ns]), n = [jn, tu, ln, nu, so, lo, ru, iu, as, ss, oo, ao, ns, ts, rs, is, ls, cs, ds, us, ps, ms, hs, _s], r = [gs, eu, fs, Es, Ss, bs, vs, ys, zt, oo, ao, so, Cs, Ts, Os, lo, cn, Rs, co, Ns], i = Gt(), o = F(i, co);
23794
23786
  _e(o, r, o), _e(o, e.domain, o);
23795
23787
  const a = Gt(), s = Gt(), l = Gt();
23796
23788
  _e(i, e.domain, a), _e(i, e.scheme, s), _e(i, e.slashscheme, l), _e(a, r, o), _e(a, e.domain, a);
@@ -23821,19 +23813,19 @@ function f0({
23821
23813
  const G = [
23822
23814
  [oo, ao],
23823
23815
  // {}
23824
- [ns, rs],
23816
+ [ts, ns],
23825
23817
  // []
23826
- [is, as],
23818
+ [rs, is],
23827
23819
  // ()
23828
- [ss, ls],
23820
+ [as, ss],
23829
23821
  // <>
23830
- [cs, ds],
23822
+ [ls, cs],
23831
23823
  // ()
23832
- [us, ps],
23824
+ [ds, us],
23833
23825
  // 「」
23834
- [ms, hs],
23826
+ [ps, ms],
23835
23827
  // 『』
23836
- [_s, gs]
23828
+ [hs, _s]
23837
23829
  // <>
23838
23830
  ];
23839
23831
  for (let U = 0; U < G.length; U++) {
@@ -23860,14 +23852,14 @@ function E0(e, t, n) {
23860
23852
  if (p < 0)
23861
23853
  i -= d, i < r && (a.push(n[i]), i++);
23862
23854
  else {
23863
- a.length > 0 && (o.push(Jl(Jm, t, a)), a = []), i -= p, d -= p;
23855
+ a.length > 0 && (o.push(Xl(Jm, t, a)), a = []), i -= p, d -= p;
23864
23856
  const m = u.t, h = n.slice(i - d, i);
23865
- o.push(Jl(m, t, h));
23857
+ o.push(Xl(m, t, h));
23866
23858
  }
23867
23859
  }
23868
- return a.length > 0 && o.push(Jl(Jm, t, a)), o;
23860
+ return a.length > 0 && o.push(Xl(Jm, t, a)), o;
23869
23861
  }
23870
- function Jl(e, t, n) {
23862
+ function Xl(e, t, n) {
23871
23863
  const r = n[0].s, i = n[n.length - 1].e, o = t.slice(r, i);
23872
23864
  return new e(o, n);
23873
23865
  }
@@ -24108,9 +24100,9 @@ const I0 = It.create({
24108
24100
  defaultValidate: (t) => !!mr(t, this.options.protocols),
24109
24101
  protocols: this.options.protocols,
24110
24102
  defaultProtocol: this.options.defaultProtocol
24111
- }) ? ["a", Ee(this.options.HTMLAttributes, e), 0] : [
24103
+ }) ? ["a", fe(this.options.HTMLAttributes, e), 0] : [
24112
24104
  "a",
24113
- Ee(this.options.HTMLAttributes, { ...e, href: "" }),
24105
+ fe(this.options.HTMLAttributes, { ...e, href: "" }),
24114
24106
  0
24115
24107
  ];
24116
24108
  },
@@ -24206,7 +24198,7 @@ const I0 = It.create({
24206
24198
  ];
24207
24199
  },
24208
24200
  renderHTML({ HTMLAttributes: e }) {
24209
- return ["sup", Ee(this.options.HTMLAttributes, e), 0];
24201
+ return ["sup", fe(this.options.HTMLAttributes, e), 0];
24210
24202
  },
24211
24203
  addCommands() {
24212
24204
  return {
@@ -24241,7 +24233,7 @@ const I0 = It.create({
24241
24233
  ];
24242
24234
  },
24243
24235
  renderHTML({ HTMLAttributes: e }) {
24244
- return ["sub", Ee(this.options.HTMLAttributes, e), 0];
24236
+ return ["sub", fe(this.options.HTMLAttributes, e), 0];
24245
24237
  },
24246
24238
  addCommands() {
24247
24239
  return {
@@ -24276,7 +24268,7 @@ const I0 = It.create({
24276
24268
  ];
24277
24269
  },
24278
24270
  renderHTML({ HTMLAttributes: e }) {
24279
- return ["ul", Ee(this.options.HTMLAttributes, e, { "data-type": this.name }), 0];
24271
+ return ["ul", fe(this.options.HTMLAttributes, e, { "data-type": this.name }), 0];
24280
24272
  },
24281
24273
  addCommands() {
24282
24274
  return {
@@ -24328,7 +24320,7 @@ const I0 = It.create({
24328
24320
  renderHTML({ node: e, HTMLAttributes: t }) {
24329
24321
  return [
24330
24322
  "li",
24331
- Ee(this.options.HTMLAttributes, t, {
24323
+ fe(this.options.HTMLAttributes, t, {
24332
24324
  "data-type": this.name
24333
24325
  }),
24334
24326
  [
@@ -24671,7 +24663,7 @@ const j0 = /\b\B/, Wf = "[a-zA-Z]\\w*", du = "[a-zA-Z_]\\w*", Kf = "\\b\\d+(\\.\
24671
24663
  contains: [wo]
24672
24664
  }, X0 = {
24673
24665
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
24674
- }, dl = function(e, t, n = {}) {
24666
+ }, cl = function(e, t, n = {}) {
24675
24667
  const r = Jn(
24676
24668
  {
24677
24669
  scope: "comment",
@@ -24737,7 +24729,7 @@ const j0 = /\b\B/, Wf = "[a-zA-Z]\\w*", du = "[a-zA-Z_]\\w*", Kf = "\\b\\d+(\\.\
24737
24729
  // look for 3 words in a row
24738
24730
  }
24739
24731
  ), r;
24740
- }, J0 = dl("//", "$"), eI = dl("/\\*", "\\*/"), tI = dl("#", "$"), nI = {
24732
+ }, J0 = cl("//", "$"), eI = cl("/\\*", "\\*/"), tI = cl("#", "$"), nI = {
24741
24733
  scope: "number",
24742
24734
  begin: Kf,
24743
24735
  relevance: 0
@@ -24795,7 +24787,7 @@ var fa = /* @__PURE__ */ Object.freeze({
24795
24787
  BACKSLASH_ESCAPE: wo,
24796
24788
  BINARY_NUMBER_MODE: iI,
24797
24789
  BINARY_NUMBER_RE: Zf,
24798
- COMMENT: dl,
24790
+ COMMENT: cl,
24799
24791
  C_BLOCK_COMMENT_MODE: eI,
24800
24792
  C_LINE_COMMENT_MODE: J0,
24801
24793
  C_NUMBER_MODE: rI,
@@ -24892,7 +24884,7 @@ const ih = {}, Ar = (e) => {
24892
24884
  console.log(`WARN: ${e}`, ...t);
24893
24885
  }, Qr = (e, t) => {
24894
24886
  ih[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), ih[`${e}/${t}`] = !0);
24895
- }, ws = new Error();
24887
+ }, As = new Error();
24896
24888
  function Jf(e, t, { key: n }) {
24897
24889
  let r = 0;
24898
24890
  const i = e[n], o = {}, a = {};
@@ -24903,18 +24895,18 @@ function Jf(e, t, { key: n }) {
24903
24895
  function vI(e) {
24904
24896
  if (Array.isArray(e.begin)) {
24905
24897
  if (e.skip || e.excludeBegin || e.returnBegin)
24906
- throw Ar("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), ws;
24898
+ throw Ar("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), As;
24907
24899
  if (typeof e.beginScope != "object" || e.beginScope === null)
24908
- throw Ar("beginScope must be object"), ws;
24900
+ throw Ar("beginScope must be object"), As;
24909
24901
  Jf(e, e.begin, { key: "beginScope" }), e.begin = cu(e.begin, { joinWith: "" });
24910
24902
  }
24911
24903
  }
24912
24904
  function yI(e) {
24913
24905
  if (Array.isArray(e.end)) {
24914
24906
  if (e.skip || e.excludeEnd || e.returnEnd)
24915
- throw Ar("skip, excludeEnd, returnEnd not compatible with endScope: {}"), ws;
24907
+ throw Ar("skip, excludeEnd, returnEnd not compatible with endScope: {}"), As;
24916
24908
  if (typeof e.endScope != "object" || e.endScope === null)
24917
- throw Ar("endScope must be object"), ws;
24909
+ throw Ar("endScope must be object"), As;
24918
24910
  Jf(e, e.end, { key: "endScope" }), e.end = cu(e.end, { joinWith: "" });
24919
24911
  }
24920
24912
  }
@@ -25046,7 +25038,7 @@ let AI = class extends Error {
25046
25038
  super(e), this.name = "HTMLInjectionError", this.html = t;
25047
25039
  }
25048
25040
  };
25049
- const ec = $f, ah = Jn, sh = /* @__PURE__ */ Symbol("nomatch"), wI = 7, tE = function(e) {
25041
+ const Jl = $f, ah = Jn, sh = /* @__PURE__ */ Symbol("nomatch"), wI = 7, tE = function(e) {
25050
25042
  const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
25051
25043
  let i = !0;
25052
25044
  const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -25094,14 +25086,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25094
25086
  }
25095
25087
  function $() {
25096
25088
  if (!ie.keywords) {
25097
- oe.addText(Se);
25089
+ oe.addText(Ee);
25098
25090
  return;
25099
25091
  }
25100
25092
  let w = 0;
25101
25093
  ie.keywordPatternRe.lastIndex = 0;
25102
- let P = ie.keywordPatternRe.exec(Se), j = "";
25094
+ let P = ie.keywordPatternRe.exec(Ee), j = "";
25103
25095
  for (; P; ) {
25104
- j += Se.substring(w, P.index);
25096
+ j += Ee.substring(w, P.index);
25105
25097
  const ce = pe.case_insensitive ? P[0].toLowerCase() : P[0], Ie = B(ie, ce);
25106
25098
  if (Ie) {
25107
25099
  const [Dt, Di] = Ie;
@@ -25113,26 +25105,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25113
25105
  }
25114
25106
  } else
25115
25107
  j += P[0];
25116
- w = ie.keywordPatternRe.lastIndex, P = ie.keywordPatternRe.exec(Se);
25108
+ w = ie.keywordPatternRe.lastIndex, P = ie.keywordPatternRe.exec(Ee);
25117
25109
  }
25118
- j += Se.substring(w), oe.addText(j);
25110
+ j += Ee.substring(w), oe.addText(j);
25119
25111
  }
25120
25112
  function x() {
25121
- if (Se === "") return;
25113
+ if (Ee === "") return;
25122
25114
  let w = null;
25123
25115
  if (typeof ie.subLanguage == "string") {
25124
25116
  if (!t[ie.subLanguage]) {
25125
- oe.addText(Se);
25117
+ oe.addText(Ee);
25126
25118
  return;
25127
25119
  }
25128
- w = u(ie.subLanguage, Se, !0, Te[ie.subLanguage]), Te[ie.subLanguage] = /** @type {CompiledMode} */
25120
+ w = u(ie.subLanguage, Ee, !0, Te[ie.subLanguage]), Te[ie.subLanguage] = /** @type {CompiledMode} */
25129
25121
  w._top;
25130
25122
  } else
25131
- w = m(Se, ie.subLanguage.length ? ie.subLanguage : null);
25123
+ w = m(Ee, ie.subLanguage.length ? ie.subLanguage : null);
25132
25124
  ie.relevance > 0 && ($e += w.relevance), oe.__addSublanguage(w._emitter, w.language);
25133
25125
  }
25134
25126
  function K() {
25135
- ie.subLanguage != null ? x() : $(), Se = "";
25127
+ ie.subLanguage != null ? x() : $(), Ee = "";
25136
25128
  }
25137
25129
  function ke(w, P) {
25138
25130
  w !== "" && (oe.startScope(P), oe.addText(w), oe.endScope());
@@ -25146,11 +25138,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25146
25138
  continue;
25147
25139
  }
25148
25140
  const Ie = pe.classNameAliases[w[j]] || w[j], Dt = P[j];
25149
- Ie ? ke(Dt, Ie) : (Se = Dt, $(), Se = ""), j++;
25141
+ Ie ? ke(Dt, Ie) : (Ee = Dt, $(), Ee = ""), j++;
25150
25142
  }
25151
25143
  }
25152
25144
  function et(w, P) {
25153
- return w.scope && typeof w.scope == "string" && oe.openNode(pe.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (ke(Se, pe.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), Se = "") : w.beginScope._multi && (mt(w.beginScope, P), Se = "")), ie = Object.create(w, { parent: { value: ie } }), ie;
25145
+ return w.scope && typeof w.scope == "string" && oe.openNode(pe.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (ke(Ee, pe.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), Ee = "") : w.beginScope._multi && (mt(w.beginScope, P), Ee = "")), ie = Object.create(w, { parent: { value: ie } }), ie;
25154
25146
  }
25155
25147
  function Xt(w, P, j) {
25156
25148
  let ce = Y0(w.endRe, j);
@@ -25169,21 +25161,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25169
25161
  return Xt(w.parent, P, j);
25170
25162
  }
25171
25163
  function vt(w) {
25172
- return ie.matcher.regexIndex === 0 ? (Se += w[0], 1) : (H = !0, 0);
25164
+ return ie.matcher.regexIndex === 0 ? (Ee += w[0], 1) : (H = !0, 0);
25173
25165
  }
25174
25166
  function Ut(w) {
25175
25167
  const P = w[0], j = w.rule, ce = new th(j), Ie = [j.__beforeBegin, j["on:begin"]];
25176
25168
  for (const Dt of Ie)
25177
25169
  if (Dt && (Dt(w, ce), ce.isMatchIgnored))
25178
25170
  return vt(P);
25179
- return j.skip ? Se += P : (j.excludeBegin && (Se += P), K(), !j.returnBegin && !j.excludeBegin && (Se = P)), et(j, w), j.returnBegin ? 0 : P.length;
25171
+ return j.skip ? Ee += P : (j.excludeBegin && (Ee += P), K(), !j.returnBegin && !j.excludeBegin && (Ee = P)), et(j, w), j.returnBegin ? 0 : P.length;
25180
25172
  }
25181
25173
  function on(w) {
25182
25174
  const P = w[0], j = N.substring(w.index), ce = Xt(ie, w, j);
25183
25175
  if (!ce)
25184
25176
  return sh;
25185
25177
  const Ie = ie;
25186
- ie.endScope && ie.endScope._wrap ? (K(), ke(P, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (K(), mt(ie.endScope, w)) : Ie.skip ? Se += P : (Ie.returnEnd || Ie.excludeEnd || (Se += P), K(), Ie.excludeEnd && (Se = P));
25178
+ ie.endScope && ie.endScope._wrap ? (K(), ke(P, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (K(), mt(ie.endScope, w)) : Ie.skip ? Ee += P : (Ie.returnEnd || Ie.excludeEnd || (Ee += P), K(), Ie.excludeEnd && (Ee = P));
25187
25179
  do
25188
25180
  ie.scope && oe.closeNode(), !ie.skip && !ie.subLanguage && ($e += ie.relevance), ie = ie.parent;
25189
25181
  while (ie !== ce.parent);
@@ -25198,10 +25190,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25198
25190
  let Ct = {};
25199
25191
  function ze(w, P) {
25200
25192
  const j = P && P[0];
25201
- if (Se += w, j == null)
25193
+ if (Ee += w, j == null)
25202
25194
  return K(), 0;
25203
25195
  if (Ct.type === "begin" && P.type === "end" && Ct.index === P.index && j === "") {
25204
- if (Se += N.slice(P.index, P.index + 1), !i) {
25196
+ if (Ee += N.slice(P.index, P.index + 1), !i) {
25205
25197
  const ce = new Error(`0 width match regex (${C})`);
25206
25198
  throw ce.languageName = C, ce.badRule = Ct.rule, ce;
25207
25199
  }
@@ -25221,7 +25213,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25221
25213
  return 1;
25222
25214
  if (Ht > 1e5 && Ht > P.index * 3)
25223
25215
  throw new Error("potential infinite loop, way more iterations than matches");
25224
- return Se += j, j.length;
25216
+ return Ee += j, j.length;
25225
25217
  }
25226
25218
  const pe = O(C);
25227
25219
  if (!pe)
@@ -25230,7 +25222,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25230
25222
  let ne = "", ie = z || at;
25231
25223
  const Te = {}, oe = new s.__emitter(s);
25232
25224
  yt();
25233
- let Se = "", $e = 0, tt = 0, Ht = 0, H = !1;
25225
+ let Ee = "", $e = 0, tt = 0, Ht = 0, H = !1;
25234
25226
  try {
25235
25227
  if (pe.__emitTokens)
25236
25228
  pe.__emitTokens(N, oe);
@@ -25256,7 +25248,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25256
25248
  if (w.message && w.message.includes("Illegal"))
25257
25249
  return {
25258
25250
  language: C,
25259
- value: ec(N),
25251
+ value: Jl(N),
25260
25252
  illegal: !0,
25261
25253
  relevance: 0,
25262
25254
  _illegalBy: {
@@ -25271,7 +25263,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25271
25263
  if (i)
25272
25264
  return {
25273
25265
  language: C,
25274
- value: ec(N),
25266
+ value: Jl(N),
25275
25267
  illegal: !1,
25276
25268
  relevance: 0,
25277
25269
  errorRaised: w,
@@ -25283,7 +25275,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), J = C, z = N), L ===
25283
25275
  }
25284
25276
  function p(C) {
25285
25277
  const N = {
25286
- value: ec(C),
25278
+ value: Jl(C),
25287
25279
  illegal: !1,
25288
25280
  relevance: 0,
25289
25281
  _top: a,
@@ -25593,13 +25585,13 @@ function uh(e) {
25593
25585
  var t;
25594
25586
  return !!((t = e.spec.group) != null && t.split(" ").includes("list"));
25595
25587
  }
25596
- function tc(e, t, n = {}) {
25588
+ function ec(e, t, n = {}) {
25597
25589
  if (!t)
25598
25590
  return kr(e, null, n) || dh(e, null, n);
25599
25591
  const r = e.schema.nodes[t];
25600
25592
  if (r) {
25601
25593
  if (uh(r)) {
25602
- const i = tl((o) => uh(o.type))(
25594
+ const i = el((o) => uh(o.type))(
25603
25595
  e.selection
25604
25596
  );
25605
25597
  return !!(i && i.node.type.name === t);
@@ -25732,7 +25724,7 @@ const PI = /^[`·]{3}([a-z]+)?[\s\n]$/, FI = /^[~~]{3}([a-z]+)?[\s\n]$/, BI =
25732
25724
  ...(e = this.parent) == null ? void 0 : e.call(this),
25733
25725
  addCodeComments: (t, n) => ({ editor: r }) => {
25734
25726
  const { view: { dispatch: i }, state: { tr: o } } = r;
25735
- return i(o.setSelection(re.create(r.state.doc, n)).deleteSelection()), sr.get(this.options.codeCommentsAi.model).chat(t.textContent, this.options.codeCommentsAi.prompt, new es(r, {
25727
+ return i(o.setSelection(re.create(r.state.doc, n)).deleteSelection()), sr.get(this.options.codeCommentsAi.model).chat(t.textContent, this.options.codeCommentsAi.prompt, new Ja(r, {
25736
25728
  markdownParseEnable: !0,
25737
25729
  useMarkdownTextOnly: !0
25738
25730
  })), !0;
@@ -25741,11 +25733,11 @@ const PI = /^[`·]{3}([a-z]+)?[\s\n]$/, FI = /^[~~]{3}([a-z]+)?[\s\n]$/, BI =
25741
25733
  const { view: { dispatch: i }, state: { tr: o } } = r, a = r.state.doc.nodeSize;
25742
25734
  a <= n + t.nodeSize + 2 ? (r.commands.insertContentAt(n + t.nodeSize + 1, "<p></p>"), i(o.setSelection(ee.create(r.state.doc, a - 2)))) : i(o.setSelection(ee.create(r.state.doc, n + t.nodeSize + 1)));
25743
25735
  const s = sr.get(this.options.codeExplainAi.model);
25744
- return s?.chat(t.textContent, this.options.codeExplainAi.prompt, new es(r)), !0;
25736
+ return s?.chat(t.textContent, this.options.codeExplainAi.prompt, new Ja(r)), !0;
25745
25737
  },
25746
25738
  toggleCodeBlock: (t) => ({ commands: n, editor: r, chain: i }) => {
25747
25739
  const { state: o } = r, { from: a, to: s } = o.selection;
25748
- if (!tc(o, this.name) && !o.selection.empty) {
25740
+ if (!ec(o, this.name) && !o.selection.empty) {
25749
25741
  let l = !0;
25750
25742
  const c = [];
25751
25743
  if (o.doc.nodesBetween(a, s, (d, u) => {
@@ -25784,7 +25776,7 @@ const PI = /^[`·]{3}([a-z]+)?[\s\n]$/, FI = /^[~~]{3}([a-z]+)?[\s\n]$/, BI =
25784
25776
  ...(e = this.parent) == null ? void 0 : e.call(this),
25785
25777
  Tab: ({ editor: t }) => {
25786
25778
  const { state: n, view: r } = t;
25787
- if (!tc(n, this.name))
25779
+ if (!ec(n, this.name))
25788
25780
  return !1;
25789
25781
  const { selection: i, tr: o } = n, a = " ";
25790
25782
  if (i.empty)
@@ -25816,7 +25808,7 @@ const PI = /^[`·]{3}([a-z]+)?[\s\n]$/, FI = /^[~~]{3}([a-z]+)?[\s\n]$/, BI =
25816
25808
  },
25817
25809
  "Shift-Tab": ({ editor: t }) => {
25818
25810
  const { state: n, view: r } = t;
25819
- if (!tc(n, this.name))
25811
+ if (!ec(n, this.name))
25820
25812
  return !1;
25821
25813
  const { selection: i, tr: o } = n, { $from: a, from: s, to: l } = i, c = a.node();
25822
25814
  if (c.type !== this.type)
@@ -37774,11 +37766,11 @@ function eD(e) {
37774
37766
  ]
37775
37767
  };
37776
37768
  }
37777
- function nc(e, t = {}) {
37769
+ function tc(e, t = {}) {
37778
37770
  return t.variants = e, t;
37779
37771
  }
37780
37772
  function tD(e) {
37781
- const t = e.regex, n = "[A-Za-z0-9_$]+", r = nc([
37773
+ const t = e.regex, n = "[A-Za-z0-9_$]+", r = tc([
37782
37774
  e.C_LINE_COMMENT_MODE,
37783
37775
  e.C_BLOCK_COMMENT_MODE,
37784
37776
  e.COMMENT(
@@ -37803,10 +37795,10 @@ function tD(e) {
37803
37795
  className: "regexp",
37804
37796
  begin: /~?\/[^\/\n]+\//,
37805
37797
  contains: [e.BACKSLASH_ESCAPE]
37806
- }, o = nc([
37798
+ }, o = tc([
37807
37799
  e.BINARY_NUMBER_MODE,
37808
37800
  e.C_NUMBER_MODE
37809
- ]), a = nc(
37801
+ ]), a = tc(
37810
37802
  [
37811
37803
  {
37812
37804
  begin: /"""/,
@@ -70698,7 +70690,7 @@ const uu = (e) => xe(
70698
70690
  ].map(uu), cL = [
70699
70691
  "Any",
70700
70692
  "Self"
70701
- ], rc = [
70693
+ ], nc = [
70702
70694
  // strings below will be fed into the regular `keywords` engine while regex
70703
70695
  // will result in additional modes being created to scan for those keywords to
70704
70696
  // avoid conflicts with other rules
@@ -70929,7 +70921,7 @@ const uu = (e) => xe(
70929
70921
  /[\uFE20-\uFE2F]/
70930
70922
  // TODO: The following characters are also allowed, but the regex isn't supported yet.
70931
70923
  // /[\u{E0100}-\u{E01EF}]/u
70932
- ), ic = xe(pE, mE, "*"), hE = _t(
70924
+ ), rc = xe(pE, mE, "*"), hE = _t(
70933
70925
  /[a-zA-Z_]/,
70934
70926
  /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
70935
70927
  /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
@@ -70947,11 +70939,11 @@ const uu = (e) => xe(
70947
70939
  // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
70948
70940
  // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
70949
70941
  // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
70950
- ), Is = _t(
70942
+ ), ws = _t(
70951
70943
  hE,
70952
70944
  /\d/,
70953
70945
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
70954
- ), an = xe(hE, Is, "*"), ya = xe(/[A-Z]/, Is, "*"), pL = [
70946
+ ), an = xe(hE, ws, "*"), ya = xe(/[A-Z]/, ws, "*"), pL = [
70955
70947
  "attached",
70956
70948
  "autoclosure",
70957
70949
  xe(/convention\(/, _t("swift", "block", "c"), /\)/),
@@ -71018,9 +71010,9 @@ function hL(e) {
71018
71010
  className: { 2: "keyword" }
71019
71011
  }, o = {
71020
71012
  // Consume .keyword to prevent highlighting properties and methods as keywords.
71021
- match: xe(/\./, _t(...rc)),
71013
+ match: xe(/\./, _t(...nc)),
71022
71014
  relevance: 0
71023
- }, a = rc.filter((pe) => typeof pe == "string").concat(["_|0"]), s = rc.filter((pe) => typeof pe != "string").concat(cL).map(uu), l = { variants: [
71015
+ }, a = nc.filter((pe) => typeof pe == "string").concat(["_|0"]), s = nc.filter((pe) => typeof pe != "string").concat(cL).map(uu), l = { variants: [
71024
71016
  {
71025
71017
  className: "keyword",
71026
71018
  match: _t(...s, ...fh)
@@ -71056,7 +71048,7 @@ function hL(e) {
71056
71048
  className: "operator",
71057
71049
  relevance: 0,
71058
71050
  variants: [
71059
- { match: ic },
71051
+ { match: rc },
71060
71052
  {
71061
71053
  // dot-operator: only operators that start with a dot are allowed to use dots as
71062
71054
  // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
@@ -71160,7 +71152,7 @@ function hL(e) {
71160
71152
  match: /\$\d+/
71161
71153
  }, A = {
71162
71154
  className: "variable",
71163
- match: `\\$${Is}+`
71155
+ match: `\\$${ws}+`
71164
71156
  }, C = [
71165
71157
  W,
71166
71158
  Z,
@@ -71197,7 +71189,7 @@ function hL(e) {
71197
71189
  {
71198
71190
  // Common Apple frameworks, for relevance boost
71199
71191
  className: "type",
71200
- match: xe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, Is, "+")
71192
+ match: xe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, ws, "+")
71201
71193
  },
71202
71194
  {
71203
71195
  // Type identifier
@@ -71303,7 +71295,7 @@ function hL(e) {
71303
71295
  match: [
71304
71296
  /(func|macro)/,
71305
71297
  /\s+/,
71306
- _t(W.match, an, ic)
71298
+ _t(W.match, an, rc)
71307
71299
  ],
71308
71300
  className: {
71309
71301
  1: "keyword",
@@ -71334,7 +71326,7 @@ function hL(e) {
71334
71326
  match: [
71335
71327
  /operator/,
71336
71328
  /\s+/,
71337
- ic
71329
+ rc
71338
71330
  ],
71339
71331
  className: {
71340
71332
  1: "keyword",
@@ -71463,7 +71455,7 @@ function hL(e) {
71463
71455
  ]
71464
71456
  };
71465
71457
  }
71466
- const xs = "[A-Za-z$_][0-9A-Za-z$_]*", _E = [
71458
+ const Is = "[A-Za-z$_][0-9A-Za-z$_]*", _E = [
71467
71459
  "as",
71468
71460
  // for exports
71469
71461
  "in",
@@ -71613,7 +71605,7 @@ function _L(e) {
71613
71605
  const t = e.regex, n = (C, { after: N }) => {
71614
71606
  const L = "</" + C[0].slice(1);
71615
71607
  return C.input.indexOf(L, N) !== -1;
71616
- }, r = xs, i = {
71608
+ }, r = Is, i = {
71617
71609
  begin: "<>",
71618
71610
  end: "</>"
71619
71611
  }, o = /<[A-Za-z0-9\\._:-]+\s*\/>/, a = {
@@ -71649,7 +71641,7 @@ function _L(e) {
71649
71641
  }
71650
71642
  }
71651
71643
  }, s = {
71652
- $pattern: xs,
71644
+ $pattern: Is,
71653
71645
  keyword: _E,
71654
71646
  literal: gE,
71655
71647
  built_in: vE,
@@ -72119,7 +72111,7 @@ function _L(e) {
72119
72111
  };
72120
72112
  }
72121
72113
  function gL(e) {
72122
- const t = e.regex, n = _L(e), r = xs, i = [
72114
+ const t = e.regex, n = _L(e), r = Is, i = [
72123
72115
  "any",
72124
72116
  "void",
72125
72117
  "number",
@@ -72168,7 +72160,7 @@ function gL(e) {
72168
72160
  "override",
72169
72161
  "satisfies"
72170
72162
  ], c = {
72171
- $pattern: xs,
72163
+ $pattern: Is,
72172
72164
  keyword: _E.concat(l),
72173
72165
  literal: gE,
72174
72166
  built_in: vE.concat(i),
@@ -73304,7 +73296,7 @@ const DL = /\b\B/, NE = "[a-zA-Z]\\w*", _u = "[a-zA-Z_]\\w*", RE = "\\b\\d+(\\.\
73304
73296
  contains: [xo]
73305
73297
  }, FL = {
73306
73298
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
73307
- }, ul = function(e, t, n = {}) {
73299
+ }, dl = function(e, t, n = {}) {
73308
73300
  const r = er(
73309
73301
  {
73310
73302
  scope: "comment",
@@ -73370,7 +73362,7 @@ const DL = /\b\B/, NE = "[a-zA-Z]\\w*", _u = "[a-zA-Z_]\\w*", RE = "\\b\\d+(\\.\
73370
73362
  // look for 3 words in a row
73371
73363
  }
73372
73364
  ), r;
73373
- }, BL = ul("//", "$"), UL = ul("/\\*", "\\*/"), HL = ul("#", "$"), VL = {
73365
+ }, BL = dl("//", "$"), UL = dl("/\\*", "\\*/"), HL = dl("#", "$"), VL = {
73374
73366
  scope: "number",
73375
73367
  begin: RE,
73376
73368
  relevance: 0
@@ -73428,7 +73420,7 @@ var Ca = /* @__PURE__ */ Object.freeze({
73428
73420
  BACKSLASH_ESCAPE: xo,
73429
73421
  BINARY_NUMBER_MODE: zL,
73430
73422
  BINARY_NUMBER_RE: wE,
73431
- COMMENT: ul,
73423
+ COMMENT: dl,
73432
73424
  C_BLOCK_COMMENT_MODE: UL,
73433
73425
  C_LINE_COMMENT_MODE: BL,
73434
73426
  C_NUMBER_MODE: GL,
@@ -73525,7 +73517,7 @@ const Ch = {}, wr = (e) => {
73525
73517
  console.log(`WARN: ${e}`, ...t);
73526
73518
  }, Zr = (e, t) => {
73527
73519
  Ch[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), Ch[`${e}/${t}`] = !0);
73528
- }, Ds = new Error();
73520
+ }, xs = new Error();
73529
73521
  function xE(e, t, { key: n }) {
73530
73522
  let r = 0;
73531
73523
  const i = e[n], o = {}, a = {};
@@ -73536,18 +73528,18 @@ function xE(e, t, { key: n }) {
73536
73528
  function a2(e) {
73537
73529
  if (Array.isArray(e.begin)) {
73538
73530
  if (e.skip || e.excludeBegin || e.returnBegin)
73539
- throw wr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ds;
73531
+ throw wr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), xs;
73540
73532
  if (typeof e.beginScope != "object" || e.beginScope === null)
73541
- throw wr("beginScope must be object"), Ds;
73533
+ throw wr("beginScope must be object"), xs;
73542
73534
  xE(e, e.begin, { key: "beginScope" }), e.begin = hu(e.begin, { joinWith: "" });
73543
73535
  }
73544
73536
  }
73545
73537
  function s2(e) {
73546
73538
  if (Array.isArray(e.end)) {
73547
73539
  if (e.skip || e.excludeEnd || e.returnEnd)
73548
- throw wr("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ds;
73540
+ throw wr("skip, excludeEnd, returnEnd not compatible with endScope: {}"), xs;
73549
73541
  if (typeof e.endScope != "object" || e.endScope === null)
73550
- throw wr("endScope must be object"), Ds;
73542
+ throw wr("endScope must be object"), xs;
73551
73543
  xE(e, e.end, { key: "endScope" }), e.end = hu(e.end, { joinWith: "" });
73552
73544
  }
73553
73545
  }
@@ -73679,7 +73671,7 @@ class m2 extends Error {
73679
73671
  super(t), this.name = "HTMLInjectionError", this.html = n;
73680
73672
  }
73681
73673
  }
73682
- const oc = CE, Oh = er, Nh = /* @__PURE__ */ Symbol("nomatch"), h2 = 7, ME = function(e) {
73674
+ const ic = CE, Oh = er, Nh = /* @__PURE__ */ Symbol("nomatch"), h2 = 7, ME = function(e) {
73683
73675
  const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
73684
73676
  let i = !0;
73685
73677
  const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -73738,7 +73730,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73738
73730
  const j = ze.case_insensitive ? w[0].toLowerCase() : w[0], ce = J(ne, j);
73739
73731
  if (ce) {
73740
73732
  const [Ie, Dt] = ce;
73741
- if (Te.addText(P), P = "", z[j] = (z[j] || 0) + 1, z[j] <= h2 && (Se += Dt), Ie.startsWith("_"))
73733
+ if (Te.addText(P), P = "", z[j] = (z[j] || 0) + 1, z[j] <= h2 && (Ee += Dt), Ie.startsWith("_"))
73742
73734
  P += w[0];
73743
73735
  else {
73744
73736
  const Di = ze.classNameAliases[Ie] || Ie;
@@ -73762,7 +73754,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73762
73754
  H._top;
73763
73755
  } else
73764
73756
  H = m(oe, ne.subLanguage.length ? ne.subLanguage : null);
73765
- ne.relevance > 0 && (Se += H.relevance), Te.__addSublanguage(H._emitter, H.language);
73757
+ ne.relevance > 0 && (Ee += H.relevance), Te.__addSublanguage(H._emitter, H.language);
73766
73758
  }
73767
73759
  function x() {
73768
73760
  ne.subLanguage != null ? $() : B(), oe = "";
@@ -73818,7 +73810,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73818
73810
  const ce = ne;
73819
73811
  ne.endScope && ne.endScope._wrap ? (x(), K(w, ne.endScope._wrap)) : ne.endScope && ne.endScope._multi ? (x(), ke(ne.endScope, H)) : ce.skip ? oe += w : (ce.returnEnd || ce.excludeEnd || (oe += w), x(), ce.excludeEnd && (oe = w));
73820
73812
  do
73821
- ne.scope && Te.closeNode(), !ne.skip && !ne.subLanguage && (Se += ne.relevance), ne = ne.parent;
73813
+ ne.scope && Te.closeNode(), !ne.skip && !ne.subLanguage && (Ee += ne.relevance), ne = ne.parent;
73822
73814
  while (ne !== j.parent);
73823
73815
  return j.starts && mt(j.starts, H), ce.returnEnd ? 0 : w.length;
73824
73816
  }
@@ -73864,7 +73856,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73864
73856
  let at = "", ne = L || pe;
73865
73857
  const ie = {}, Te = new s.__emitter(s);
73866
73858
  on();
73867
- let oe = "", Se = 0, $e = 0, tt = 0, Ht = !1;
73859
+ let oe = "", Ee = 0, $e = 0, tt = 0, Ht = !1;
73868
73860
  try {
73869
73861
  if (ze.__emitTokens)
73870
73862
  ze.__emitTokens(C, Te);
@@ -73881,7 +73873,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73881
73873
  return Te.finalize(), at = Te.toHTML(), {
73882
73874
  language: A,
73883
73875
  value: at,
73884
- relevance: Se,
73876
+ relevance: Ee,
73885
73877
  illegal: !1,
73886
73878
  _emitter: Te,
73887
73879
  _top: ne
@@ -73890,7 +73882,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73890
73882
  if (H.message && H.message.includes("Illegal"))
73891
73883
  return {
73892
73884
  language: A,
73893
- value: oc(C),
73885
+ value: ic(C),
73894
73886
  illegal: !0,
73895
73887
  relevance: 0,
73896
73888
  _illegalBy: {
@@ -73905,7 +73897,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73905
73897
  if (i)
73906
73898
  return {
73907
73899
  language: A,
73908
- value: oc(C),
73900
+ value: ic(C),
73909
73901
  illegal: !1,
73910
73902
  relevance: 0,
73911
73903
  errorRaised: H,
@@ -73917,7 +73909,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = A, L = C), N ===
73917
73909
  }
73918
73910
  function p(A) {
73919
73911
  const C = {
73920
- value: oc(A),
73912
+ value: ic(A),
73921
73913
  illegal: !1,
73922
73914
  relevance: 0,
73923
73915
  _top: a,
@@ -74093,7 +74085,7 @@ Ti.newInstance = () => ME({});
74093
74085
  var _2 = Ti;
74094
74086
  Ti.HighlightJS = Ti;
74095
74087
  Ti.default = Ti;
74096
- const g2 = /* @__PURE__ */ ol(_2), Rh = {}, f2 = "hljs-";
74088
+ const g2 = /* @__PURE__ */ il(_2), Rh = {}, f2 = "hljs-";
74097
74089
  function E2(e) {
74098
74090
  const t = g2.newInstance();
74099
74091
  return e && o(e), {
@@ -74351,7 +74343,7 @@ const b2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, Ah = new De("aie-vid
74351
74343
  const t = typeof this.options.uploadHeaders == "object" ? this.options.uploadHeaders : typeof this.options.uploadHeaders == "function" ? this.options.uploadHeaders() : {};
74352
74344
  if (this.options.uploaderEvent && this.options.uploaderEvent.onUploadBefore && this.options.uploaderEvent.onUploadBefore(e, this.options.uploadUrl, t) === !1)
74353
74345
  return !1;
74354
- const n = sl(), { state: { tr: r }, view: i, schema: o } = this.editor;
74346
+ const n = al(), { state: { tr: r }, view: i, schema: o } = this.editor;
74355
74347
  r.selection.empty || r.deleteSelection(), i.dispatch(r.setMeta(Gi, {
74356
74348
  type: "add",
74357
74349
  id: n,
@@ -74658,7 +74650,7 @@ const T2 = (e) => new Ne({
74658
74650
  key: typeof e.pluginKey == "string" ? new De(e.pluginKey) : e.pluginKey,
74659
74651
  view: (t) => new C2({ view: t, ...e })
74660
74652
  });
74661
- class pl extends HTMLElement {
74653
+ class ul extends HTMLElement {
74662
74654
  constructor() {
74663
74655
  super(), D(this, "editor"), D(this, "items", []), D(this, "tippyInstance"), D(this, "activeOnClick", !0);
74664
74656
  }
@@ -74794,7 +74786,7 @@ class gu {
74794
74786
  const A2 = new gu(
74795
74787
  [O2, N2, R2]
74796
74788
  );
74797
- class w2 extends pl {
74789
+ class w2 extends ul {
74798
74790
  constructor() {
74799
74791
  super();
74800
74792
  }
@@ -74927,7 +74919,7 @@ ${ae("unlink")}`, r.onCancelClick(() => {
74927
74919
  }, P2 = new gu(
74928
74920
  [I2, x2, D2, k2, L2, M2]
74929
74921
  );
74930
- class F2 extends pl {
74922
+ class F2 extends ul {
74931
74923
  constructor() {
74932
74924
  super();
74933
74925
  }
@@ -75002,8 +74994,8 @@ const kE = class sd {
75002
74994
  }
75003
74995
  };
75004
74996
  D(kE, "historyColorsKey", "cellBackgroundHistoryColors");
75005
- let ac = kE;
75006
- class B2 extends pl {
74997
+ let oc = kE;
74998
+ class B2 extends ul {
75007
74999
  constructor() {
75008
75000
  super(), this.items = [
75009
75001
  {
@@ -75113,13 +75105,13 @@ class B2 extends pl {
75113
75105
  </div>
75114
75106
  `.trim(),
75115
75107
  onInit: (t, n, r) => {
75116
- const i = ac.getLastUsedColor() || "", o = r.querySelector("#cellBgColorStatus");
75108
+ const i = oc.getLastUsedColor() || "", o = r.querySelector("#cellBgColorStatus");
75117
75109
  o && (o.style.backgroundColor = i);
75118
75110
  },
75119
75111
  onClick: ({ innerEditor: t }, n, r, i) => {
75120
75112
  const o = window.event.target, a = r.querySelector("#cell-background-color"), s = o.closest("#dropdown"), l = o.closest(".colors-menu-icon");
75121
75113
  if (s) {
75122
- const c = new ac();
75114
+ const c = new oc();
75123
75115
  c.editor = t;
75124
75116
  const d = c.createColorPicker(), u = Fe(a, {
75125
75117
  content: d,
@@ -75140,7 +75132,7 @@ class B2 extends pl {
75140
75132
  m && (m.style.backgroundColor = p || "");
75141
75133
  }, u.show();
75142
75134
  } else if (l) {
75143
- const c = ac.getLastUsedColor();
75135
+ const c = oc.getLastUsedColor();
75144
75136
  t?.chain().setCellAttribute("backgroundColor", c).run();
75145
75137
  }
75146
75138
  }
@@ -75223,7 +75215,7 @@ class B2 extends pl {
75223
75215
  return !0;
75224
75216
  }
75225
75217
  }
75226
- const Ms = {
75218
+ const Ds = {
75227
75219
  refresh: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" fill="currentColor"></path></svg>',
75228
75220
  aiPanelStart: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"></path></svg>',
75229
75221
  aiPanelStop: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V7C18 6.44772 17.5523 6 17 6H7C6.44772 6 6 6.44772 6 7Z"></path></svg>'
@@ -75333,10 +75325,10 @@ const PE = (e) => {
75333
75325
  const u = new LE(30, o);
75334
75326
  d.chat(l, n, {
75335
75327
  onStart(p) {
75336
- e.aiClient = p, t.querySelector(".aie-ai-panel-actions").style.display = "none", t.querySelector(".loader").style.display = "block", t.querySelector(".aie-ai-panel-body-content").style.display = "block", t.querySelector("#go").innerHTML = Ms.aiPanelStop;
75328
+ e.aiClient = p, t.querySelector(".aie-ai-panel-actions").style.display = "none", t.querySelector(".loader").style.display = "block", t.querySelector(".aie-ai-panel-body-content").style.display = "block", t.querySelector("#go").innerHTML = Ds.aiPanelStop;
75337
75329
  },
75338
75330
  onStop() {
75339
- e.aiClient = void 0, t.querySelector("#go").innerHTML = Ms.aiPanelStart, t.querySelector(".aie-ai-panel-footer").style.display = "block", t.querySelector(".loader").style.display = "none", t.querySelector(".aie-ai-panel-actions").style.display = "none", u.finished();
75331
+ e.aiClient = void 0, t.querySelector("#go").innerHTML = Ds.aiPanelStart, t.querySelector(".aie-ai-panel-footer").style.display = "block", t.querySelector(".loader").style.display = "none", t.querySelector(".aie-ai-panel-actions").style.display = "none", u.finished();
75340
75332
  },
75341
75333
  onMessage(p) {
75342
75334
  u.appendText(p.content);
@@ -75349,9 +75341,9 @@ const PE = (e) => {
75349
75341
  const n = document.createElement("div");
75350
75342
  return n.classList.add("aie-ai-panel"), n.innerHTML = `
75351
75343
  <div class="aie-ai-panel-body">
75352
- <div class="aie-ai-panel-body-content" style="display: none"><div class="loader">${Ms.refresh}</div><textarea readonly></textarea></div>
75344
+ <div class="aie-ai-panel-body-content" style="display: none"><div class="loader">${Ds.refresh}</div><textarea readonly></textarea></div>
75353
75345
  <div class="aie-ai-panel-body-input"><input id="prompt" placeholder="${ae("placeholder-tell-ai-what-to-do-next")}" type="text" />
75354
- <button type="button" id="go" style="width: 30px;height: 30px">${Ms.aiPanelStart}</button></div>
75346
+ <button type="button" id="go" style="width: 30px;height: 30px">${Ds.aiPanelStart}</button></div>
75355
75347
  <div class="aie-ai-panel-body-tips"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 17C9 17 16 18 19 21H20C20.5523 21 21 20.5523 21 20V13.937C21.8626 13.715 22.5 12.9319 22.5 12C22.5 11.0681 21.8626 10.285 21 10.063V4C21 3.44772 20.5523 3 20 3H19C16 6 9 7 9 7H5C3.89543 7 3 7.89543 3 9V15C3 16.1046 3.89543 17 5 17H6L7 22H9V17ZM11 8.6612C11.6833 8.5146 12.5275 8.31193 13.4393 8.04373C15.1175 7.55014 17.25 6.77262 19 5.57458V18.4254C17.25 17.2274 15.1175 16.4499 13.4393 15.9563C12.5275 15.6881 11.6833 15.4854 11 15.3388V8.6612ZM5 9H9V15H5V9Z" fill="currentColor"></path></svg>
75356
75348
  ${ae("tip-you-can-enter-text-above-or-select-the-operation-below")}</div>
75357
75349
  </div>
@@ -75593,7 +75585,7 @@ ${ae("ai-append")}</button>
75593
75585
  t(e[n], n, e) ? e.splice(n, 1) : ++n;
75594
75586
  return e;
75595
75587
  };
75596
- class eP extends pl {
75588
+ class eP extends ul {
75597
75589
  constructor() {
75598
75590
  super();
75599
75591
  }
@@ -75614,7 +75606,7 @@ ue("aie-bubble-link", w2);
75614
75606
  ue("aie-bubble-image", F2);
75615
75607
  ue("aie-bubble-table", B2);
75616
75608
  ue("aie-bubble-text", eP);
75617
- function ml(e, t) {
75609
+ function pl(e, t) {
75618
75610
  return Ce.create({
75619
75611
  name: e,
75620
75612
  addOptions() {
@@ -75640,7 +75632,7 @@ function ml(e, t) {
75640
75632
  const tP = (e) => {
75641
75633
  var t;
75642
75634
  const n = ((t = e.options.textSelectionBubbleMenu) == null ? void 0 : t.elementTagName) || "aie-bubble-text", r = document.createElement(n);
75643
- return e.eventComponents.push(r), ml("textSelectionBubble", {
75635
+ return e.eventComponents.push(r), pl("textSelectionBubble", {
75644
75636
  pluginKey: "textSelectionBubble",
75645
75637
  element: r,
75646
75638
  updateDelay: 0,
@@ -75658,7 +75650,7 @@ const tP = (e) => {
75658
75650
  if (!i.isEditable)
75659
75651
  return !1;
75660
75652
  const { state: { selection: o } } = i;
75661
- return !o.empty && Js(i.state.doc, {
75653
+ return !o.empty && Xs(i.state.doc, {
75662
75654
  from: o.from,
75663
75655
  to: o.to
75664
75656
  }).trim().length > 0 && !i.isActive("link") && !i.isActive("image") && !i.isActive("codeBlock") && !(o instanceof we);
@@ -75666,7 +75658,7 @@ const tP = (e) => {
75666
75658
  });
75667
75659
  }, nP = (e) => {
75668
75660
  const t = document.createElement("aie-bubble-link");
75669
- return e.eventComponents.push(t), ml("linkBubble", {
75661
+ return e.eventComponents.push(t), pl("linkBubble", {
75670
75662
  pluginKey: "linkBubble",
75671
75663
  element: t,
75672
75664
  tippyOptions: {
@@ -75681,7 +75673,7 @@ const tP = (e) => {
75681
75673
  });
75682
75674
  }, rP = (e) => {
75683
75675
  const t = document.createElement("aie-bubble-image");
75684
- return e.eventComponents.push(t), ml("imageBubble", {
75676
+ return e.eventComponents.push(t), pl("imageBubble", {
75685
75677
  pluginKey: "imageBubble",
75686
75678
  element: t,
75687
75679
  tippyOptions: {
@@ -75703,7 +75695,7 @@ const tP = (e) => {
75703
75695
  });
75704
75696
  }, iP = (e) => {
75705
75697
  const t = document.createElement("aie-bubble-table");
75706
- return e.eventComponents.push(t), ml("tableBubble", {
75698
+ return e.eventComponents.push(t), pl("tableBubble", {
75707
75699
  pluginKey: "tableBubble",
75708
75700
  element: t,
75709
75701
  tippyOptions: {
@@ -75750,7 +75742,7 @@ const tP = (e) => {
75750
75742
  return null;
75751
75743
  const o = this.editor.isEmpty;
75752
75744
  return e.descendants((a, s) => {
75753
- const l = r >= s && r <= s + a.nodeSize, c = !a.isLeaf && nl(a);
75745
+ const l = r >= s && r <= s + a.nodeSize, c = !a.isLeaf && tl(a);
75754
75746
  if ((l || !this.options.showOnlyCurrent) && c) {
75755
75747
  const d = [this.options.emptyNodeClass];
75756
75748
  o && d.push(this.options.emptyEditorClass);
@@ -75957,7 +75949,7 @@ const dP = Be.create({
75957
75949
  var r, i;
75958
75950
  return [
75959
75951
  "span",
75960
- Ee(this.HTMLAttributes, e.HTMLAttributes),
75952
+ fe(this.HTMLAttributes, e.HTMLAttributes),
75961
75953
  `${(r = n?.char) !== null && r !== void 0 ? r : "@"}${(i = t.attrs.label) !== null && i !== void 0 ? i : t.attrs.id}`
75962
75954
  ];
75963
75955
  },
@@ -76007,7 +75999,7 @@ const dP = Be.create({
76007
75999
  if (this.options.renderLabel !== void 0)
76008
76000
  return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
76009
76001
  "span",
76010
- Ee({ "data-type": this.name }, this.options.HTMLAttributes, t),
76002
+ fe({ "data-type": this.name }, this.options.HTMLAttributes, t),
76011
76003
  this.options.renderLabel({
76012
76004
  options: this.options,
76013
76005
  node: e,
@@ -76015,7 +76007,7 @@ const dP = Be.create({
76015
76007
  })
76016
76008
  ];
76017
76009
  const r = { ...this.options };
76018
- r.HTMLAttributes = Ee({ "data-type": this.name }, this.options.HTMLAttributes, t);
76010
+ r.HTMLAttributes = fe({ "data-type": this.name }, this.options.HTMLAttributes, t);
76019
76011
  const i = this.options.renderHTML({
76020
76012
  options: r,
76021
76013
  node: e,
@@ -76023,7 +76015,7 @@ const dP = Be.create({
76023
76015
  });
76024
76016
  return typeof i == "string" ? [
76025
76017
  "span",
76026
- Ee({ "data-type": this.name }, this.options.HTMLAttributes, t),
76018
+ fe({ "data-type": this.name }, this.options.HTMLAttributes, t),
76027
76019
  i
76028
76020
  ] : i;
76029
76021
  },
@@ -76258,7 +76250,7 @@ const mP = [
76258
76250
  a.onClick(o.event, r.aiEditor);
76259
76251
  else {
76260
76252
  const s = pP(r) || "", l = a.model, c = sr.get(a.model);
76261
- c ? c?.chat(s, a.prompt, new es(r)) : console.error("Ai model config error. can not find the type:" + l + " at command menu");
76253
+ c ? c?.chat(s, a.prompt, new Ja(r)) : console.error("Ai model config error. can not find the type:" + l + " at command menu");
76262
76254
  }
76263
76255
  } else
76264
76256
  e.length < o.index && e[o.index].click(r);
@@ -76385,7 +76377,7 @@ const mP = [
76385
76377
  ];
76386
76378
  },
76387
76379
  renderHTML({ HTMLAttributes: e }) {
76388
- return ["div", Ee(this.options.HTMLAttributes, e), 0];
76380
+ return ["div", fe(this.options.HTMLAttributes, e), 0];
76389
76381
  },
76390
76382
  addCommands() {
76391
76383
  return {
@@ -76411,12 +76403,12 @@ const mP = [
76411
76403
  n.classList.add("container-wrapper"), n.classList.add(e.attrs.containerClass);
76412
76404
  let r = n, i = null;
76413
76405
  if (t.isEditable) {
76414
- n.style.position = "relative", n.appendChild($l(`<div class="aie-container-tools">
76406
+ n.style.position = "relative", n.appendChild(zl(`<div class="aie-container-tools">
76415
76407
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z"></path></svg>
76416
76408
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 14L8 10H16L12 14Z"></path></svg>
76417
- </div>`)), r = $l("<div></div>"), n.appendChild(r);
76409
+ </div>`)), r = zl("<div></div>"), n.appendChild(r);
76418
76410
  const o = () => {
76419
- const a = $l(`<div>
76411
+ const a = zl(`<div>
76420
76412
  <div class="aie-container-tools-body">
76421
76413
  <div>${ae("type")}</div>
76422
76414
  <div class="aie-container-tools-body-color-items">${this.options.typeItems.map((s) => `<div class="aie-container-tools-body-color-box ${s}" title="${s}"></div>`).join("")}</div>
@@ -76485,7 +76477,7 @@ const mP = [
76485
76477
  return [{ tag: "figure" }];
76486
76478
  },
76487
76479
  renderHTML({ HTMLAttributes: e }) {
76488
- return ["figure", Ee(this.options.HTMLAttributes, e), 0];
76480
+ return ["figure", fe(this.options.HTMLAttributes, e), 0];
76489
76481
  }
76490
76482
  }), vP = Be.create({
76491
76483
  name: "figcaption",
@@ -76503,7 +76495,7 @@ const mP = [
76503
76495
  return [{ tag: "figcaption" }];
76504
76496
  },
76505
76497
  renderHTML({ HTMLAttributes: e }) {
76506
- return ["figcaption", Ee(this.options.HTMLAttributes, e), 0];
76498
+ return ["figcaption", fe(this.options.HTMLAttributes, e), 0];
76507
76499
  }
76508
76500
  }), yP = Ce.create({
76509
76501
  name: "pasteExt",
@@ -78053,7 +78045,7 @@ function fu(e) {
78053
78045
  let t = "";
78054
78046
  return t += e.protocol || "", t += e.slashes ? "//" : "", t += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? t += "[" + e.hostname + "]" : t += e.hostname || "", t += e.port ? ":" + e.port : "", t += e.pathname || "", t += e.search || "", t += e.hash || "", t;
78055
78047
  }
78056
- function ks() {
78048
+ function Ms() {
78057
78049
  this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
78058
78050
  }
78059
78051
  const BP = /^([a-z0-9.+-]+:)/i, UP = /:[0-9]*$/, HP = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, VP = ["<", ">", '"', "`", " ", "\r", `
@@ -78073,11 +78065,11 @@ const BP = /^([a-z0-9.+-]+:)/i, UP = /:[0-9]*$/, HP = /^(\/\/?(?!\/)[^\?\s]*)(\?
78073
78065
  "file:": !0
78074
78066
  };
78075
78067
  function Eu(e, t) {
78076
- if (e && e instanceof ks) return e;
78077
- const n = new ks();
78068
+ if (e && e instanceof Ms) return e;
78069
+ const n = new Ms();
78078
78070
  return n.parse(e, t), n;
78079
78071
  }
78080
- ks.prototype.parse = function(e, t) {
78072
+ Ms.prototype.parse = function(e, t) {
78081
78073
  let n, r, i, o = e;
78082
78074
  if (o = o.trim(), !t && e.split("#").length === 1) {
78083
78075
  const c = HP.exec(o);
@@ -78120,7 +78112,7 @@ ks.prototype.parse = function(e, t) {
78120
78112
  const l = o.indexOf("?");
78121
78113
  return l !== -1 && (this.search = o.substr(l), o = o.slice(0, l)), o && (this.pathname = o), Fh[n] && this.hostname && !this.pathname && (this.pathname = ""), this;
78122
78114
  };
78123
- ks.prototype.parseHost = function(e) {
78115
+ Ms.prototype.parseHost = function(e) {
78124
78116
  let t = UP.exec(e);
78125
78117
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
78126
78118
  };
@@ -78145,7 +78137,7 @@ const qP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78145
78137
  // prettier-ignore
78146
78138
  "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
78147
78139
  );
78148
- var sc;
78140
+ var ac;
78149
78141
  const ZP = /* @__PURE__ */ new Map([
78150
78142
  [0, 65533],
78151
78143
  // C1 Unicode control character reference replacements
@@ -78178,7 +78170,7 @@ const ZP = /* @__PURE__ */ new Map([
78178
78170
  [159, 376]
78179
78171
  ]), XP = (
78180
78172
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
78181
- (sc = String.fromCodePoint) !== null && sc !== void 0 ? sc : function(e) {
78173
+ (ac = String.fromCodePoint) !== null && ac !== void 0 ? ac : function(e) {
78182
78174
  let t = "";
78183
78175
  return e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), t += String.fromCharCode(e), t;
78184
78176
  }
@@ -78460,7 +78452,7 @@ const lF = Object.prototype.hasOwnProperty;
78460
78452
  function cF(e, t) {
78461
78453
  return lF.call(e, t);
78462
78454
  }
78463
- function hl(e) {
78455
+ function ml(e) {
78464
78456
  return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
78465
78457
  if (t) {
78466
78458
  if (typeof t != "object")
@@ -78477,7 +78469,7 @@ function qE(e, t, n) {
78477
78469
  function vu(e) {
78478
78470
  return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
78479
78471
  }
78480
- function Ls(e) {
78472
+ function ks(e) {
78481
78473
  if (e > 65535) {
78482
78474
  e -= 65536;
78483
78475
  const t = 55296 + (e >> 10), n = 56320 + (e & 1023);
@@ -78489,7 +78481,7 @@ const jE = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, dF = /&([a-z#][a-z0-9]{
78489
78481
  function mF(e, t) {
78490
78482
  if (t.charCodeAt(0) === 35 && pF.test(t)) {
78491
78483
  const r = t[1].toLowerCase() === "x" ? parseInt(t.slice(2), 16) : parseInt(t.slice(1), 10);
78492
- return vu(r) ? Ls(r) : e;
78484
+ return vu(r) ? ks(r) : e;
78493
78485
  }
78494
78486
  const n = YE(e);
78495
78487
  return n !== e ? n : e;
@@ -78587,16 +78579,16 @@ function ko(e) {
78587
78579
  return !1;
78588
78580
  }
78589
78581
  }
78590
- function _l(e) {
78582
+ function hl(e) {
78591
78583
  return e = e.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (e = e.replace(/ẞ/g, "ß")), e.toLowerCase().toUpperCase();
78592
78584
  }
78593
78585
  const vF = { mdurl: qP, ucmicro: WP }, yF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78594
78586
  __proto__: null,
78595
78587
  arrayReplaceAt: qE,
78596
- assign: hl,
78588
+ assign: ml,
78597
78589
  escapeHtml: lr,
78598
78590
  escapeRE: bF,
78599
- fromCodePoint: Ls,
78591
+ fromCodePoint: ks,
78600
78592
  has: cF,
78601
78593
  isMdAsciiPunct: ko,
78602
78594
  isPunctChar: Mo,
@@ -78605,7 +78597,7 @@ const vF = { mdurl: qP, ucmicro: WP }, yF = /* @__PURE__ */ Object.freeze(/* @__
78605
78597
  isValidEntityCode: vu,
78606
78598
  isWhiteSpace: Do,
78607
78599
  lib: vF,
78608
- normalizeReference: _l,
78600
+ normalizeReference: hl,
78609
78601
  unescapeAll: Ni,
78610
78602
  unescapeMd: hF
78611
78603
  }, Symbol.toStringTag, { value: "Module" }));
@@ -78763,7 +78755,7 @@ yn.html_inline = function(e, t) {
78763
78755
  return e[t].content;
78764
78756
  };
78765
78757
  function xi() {
78766
- this.rules = hl({}, yn);
78758
+ this.rules = ml({}, yn);
78767
78759
  }
78768
78760
  xi.prototype.renderAttrs = function(e) {
78769
78761
  let t, n, r;
@@ -79139,7 +79131,7 @@ function YF(e) {
79139
79131
  t !== n && (a.length = n);
79140
79132
  }
79141
79133
  }
79142
- const lc = [
79134
+ const sc = [
79143
79135
  ["normalize", wF],
79144
79136
  ["block", IF],
79145
79137
  ["inline", xF],
@@ -79152,8 +79144,8 @@ const lc = [
79152
79144
  ];
79153
79145
  function yu() {
79154
79146
  this.ruler = new xt();
79155
- for (let e = 0; e < lc.length; e++)
79156
- this.ruler.push(lc[e][0], lc[e][1]);
79147
+ for (let e = 0; e < sc.length; e++)
79148
+ this.ruler.push(sc[e][0], sc[e][1]);
79157
79149
  }
79158
79150
  yu.prototype.process = function(e) {
79159
79151
  const t = this.ruler.getRules("");
@@ -79241,7 +79233,7 @@ Cn.prototype.getLines = function(e, t, n, r) {
79241
79233
  };
79242
79234
  Cn.prototype.Token = rn;
79243
79235
  const qF = 65536;
79244
- function cc(e, t) {
79236
+ function lc(e, t) {
79245
79237
  const n = e.bMarks[t] + e.tShift[t], r = e.eMarks[t];
79246
79238
  return e.src.slice(n, r);
79247
79239
  }
@@ -79273,7 +79265,7 @@ function jF(e, t, n, r) {
79273
79265
  return !1;
79274
79266
  o++;
79275
79267
  }
79276
- let l = cc(e, t + 1), c = l.split("|");
79268
+ let l = lc(e, t + 1), c = l.split("|");
79277
79269
  const d = [];
79278
79270
  for (let f = 0; f < c.length; f++) {
79279
79271
  const v = c[f].trim();
@@ -79286,7 +79278,7 @@ function jF(e, t, n, r) {
79286
79278
  return !1;
79287
79279
  v.charCodeAt(v.length - 1) === 58 ? d.push(v.charCodeAt(0) === 58 ? "center" : "right") : v.charCodeAt(0) === 58 ? d.push("left") : d.push("");
79288
79280
  }
79289
- if (l = cc(e, t).trim(), l.indexOf("|") === -1 || e.sCount[t] - e.blkIndent >= 4)
79281
+ if (l = lc(e, t).trim(), l.indexOf("|") === -1 || e.sCount[t] - e.blkIndent >= 4)
79290
79282
  return !1;
79291
79283
  c = Hh(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop();
79292
79284
  const u = c.length;
@@ -79317,7 +79309,7 @@ function jF(e, t, n, r) {
79317
79309
  f = !0;
79318
79310
  break;
79319
79311
  }
79320
- if (f || (l = cc(e, i).trim(), !l) || e.sCount[i] - e.blkIndent >= 4 || (c = Hh(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(), b += u - c.length, b > qF))
79312
+ if (f || (l = lc(e, i).trim(), !l) || e.sCount[i] - e.blkIndent >= 4 || (c = Hh(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(), b += u - c.length, b > qF))
79321
79313
  break;
79322
79314
  if (i === t + 2) {
79323
79315
  const y = e.push("tbody_open", "tbody", 1);
@@ -79654,7 +79646,7 @@ function e3(e, t, n, r) {
79654
79646
  }
79655
79647
  if (i < o && l.charCodeAt(i) !== 10)
79656
79648
  return !1;
79657
- const S = _l(l.slice(1, c));
79649
+ const S = hl(l.slice(1, c));
79658
79650
  return S ? (r || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[S] > "u" && (e.env.references[S] = { title: g, href: u }), e.line = a), !0) : !1;
79659
79651
  }
79660
79652
  const t3 = [
@@ -79853,12 +79845,12 @@ const Oa = [
79853
79845
  ["lheading", g3],
79854
79846
  ["paragraph", f3]
79855
79847
  ];
79856
- function gl() {
79848
+ function _l() {
79857
79849
  this.ruler = new xt();
79858
79850
  for (let e = 0; e < Oa.length; e++)
79859
79851
  this.ruler.push(Oa[e][0], Oa[e][1], { alt: (Oa[e][2] || []).slice() });
79860
79852
  }
79861
- gl.prototype.tokenize = function(e, t, n) {
79853
+ _l.prototype.tokenize = function(e, t, n) {
79862
79854
  const r = this.ruler.getRules(""), i = r.length, o = e.md.options.maxNesting;
79863
79855
  let a = t, s = !1;
79864
79856
  for (; a < n && (e.line = a = e.skipEmptyLines(a), !(a >= n || e.sCount[a] < e.blkIndent)); ) {
@@ -79878,13 +79870,13 @@ gl.prototype.tokenize = function(e, t, n) {
79878
79870
  e.tight = !s, e.isEmpty(e.line - 1) && (s = !0), a = e.line, a < n && e.isEmpty(a) && (s = !0, a++, e.line = a);
79879
79871
  }
79880
79872
  };
79881
- gl.prototype.parse = function(e, t, n, r) {
79873
+ _l.prototype.parse = function(e, t, n, r) {
79882
79874
  if (!e)
79883
79875
  return;
79884
79876
  const i = new this.State(e, t, n, r);
79885
79877
  this.tokenize(i, i.line, i.lineMax);
79886
79878
  };
79887
- gl.prototype.State = Cn;
79879
+ _l.prototype.State = Cn;
79888
79880
  function Yo(e, t, n, r) {
79889
79881
  this.src = e, this.env = n, this.md = t, this.tokens = r, this.tokens_meta = Array(r.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
79890
79882
  }
@@ -80173,7 +80165,7 @@ function w3(e, t) {
80173
80165
  if (c) {
80174
80166
  if (typeof e.env.references > "u")
80175
80167
  return !1;
80176
- if (h < u && e.src.charCodeAt(h) === 91 ? (l = h + 1, h = e.md.helpers.parseLinkLabel(e, h), h >= 0 ? r = e.src.slice(l, h++) : h = m + 1) : h = m + 1, r || (r = e.src.slice(p, m)), o = e.env.references[_l(r)], !o)
80168
+ if (h < u && e.src.charCodeAt(h) === 91 ? (l = h + 1, h = e.md.helpers.parseLinkLabel(e, h), h >= 0 ? r = e.src.slice(l, h++) : h = m + 1) : h = m + 1, r || (r = e.src.slice(p, m)), o = e.env.references[hl(r)], !o)
80177
80169
  return e.pos = d, !1;
80178
80170
  a = o.href, s = o.title;
80179
80171
  }
@@ -80210,7 +80202,7 @@ function I3(e, t) {
80210
80202
  } else {
80211
80203
  if (typeof e.env.references > "u")
80212
80204
  return !1;
80213
- if (o < p && e.src.charCodeAt(o) === 91 ? (c = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? i = e.src.slice(c, o++) : o = h + 1) : o = h + 1, i || (i = e.src.slice(m, h)), a = e.env.references[_l(i)], !a)
80205
+ if (o < p && e.src.charCodeAt(o) === 91 ? (c = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? i = e.src.slice(c, o++) : o = h + 1) : o = h + 1, i || (i = e.src.slice(m, h)), a = e.env.references[hl(i)], !a)
80214
80206
  return e.pos = u, !1;
80215
80207
  d = a.href, l = a.title;
80216
80208
  }
@@ -80308,7 +80300,7 @@ function H3(e, t) {
80308
80300
  if (i) {
80309
80301
  if (!t) {
80310
80302
  const o = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), a = e.push("text_special", "", 0);
80311
- a.content = vu(o) ? Ls(o) : Ls(65533), a.markup = i[0], a.info = "entity";
80303
+ a.content = vu(o) ? ks(o) : ks(65533), a.markup = i[0], a.info = "entity";
80312
80304
  }
80313
80305
  return e.pos += i[0].length, !0;
80314
80306
  }
@@ -80365,7 +80357,7 @@ function G3(e) {
80365
80357
  i[t].nesting < 0 && r--, i[t].level = r, i[t].nesting > 0 && r++, i[t].type === "text" && t + 1 < o && i[t + 1].type === "text" ? i[t + 1].content = i[t].content + i[t + 1].content : (t !== n && (i[n] = i[t]), n++);
80366
80358
  t !== n && (i.length = n);
80367
80359
  }
80368
- const dc = [
80360
+ const cc = [
80369
80361
  ["text", S3],
80370
80362
  ["linkify", v3],
80371
80363
  ["newline", y3],
@@ -80378,7 +80370,7 @@ const dc = [
80378
80370
  ["autolink", M3],
80379
80371
  ["html_inline", F3],
80380
80372
  ["entity", H3]
80381
- ], uc = [
80373
+ ], dc = [
80382
80374
  ["balance_pairs", V3],
80383
80375
  ["strikethrough", XE.postProcess],
80384
80376
  ["emphasis", JE.postProcess],
@@ -80388,11 +80380,11 @@ const dc = [
80388
80380
  ];
80389
80381
  function qo() {
80390
80382
  this.ruler = new xt();
80391
- for (let e = 0; e < dc.length; e++)
80392
- this.ruler.push(dc[e][0], dc[e][1]);
80383
+ for (let e = 0; e < cc.length; e++)
80384
+ this.ruler.push(cc[e][0], cc[e][1]);
80393
80385
  this.ruler2 = new xt();
80394
- for (let e = 0; e < uc.length; e++)
80395
- this.ruler2.push(uc[e][0], uc[e][1]);
80386
+ for (let e = 0; e < dc.length; e++)
80387
+ this.ruler2.push(dc[e][0], dc[e][1]);
80396
80388
  }
80397
80389
  qo.prototype.skipToken = function(e) {
80398
80390
  const t = e.pos, n = this.ruler.getRules(""), r = n.length, i = e.md.options.maxNesting, o = e.cache;
@@ -80461,20 +80453,20 @@ function cd(e) {
80461
80453
  });
80462
80454
  }), e;
80463
80455
  }
80464
- function fl(e) {
80456
+ function gl(e) {
80465
80457
  return Object.prototype.toString.call(e);
80466
80458
  }
80467
80459
  function $3(e) {
80468
- return fl(e) === "[object String]";
80460
+ return gl(e) === "[object String]";
80469
80461
  }
80470
80462
  function Y3(e) {
80471
- return fl(e) === "[object Object]";
80463
+ return gl(e) === "[object Object]";
80472
80464
  }
80473
80465
  function q3(e) {
80474
- return fl(e) === "[object RegExp]";
80466
+ return gl(e) === "[object RegExp]";
80475
80467
  }
80476
80468
  function qh(e) {
80477
- return fl(e) === "[object Function]";
80469
+ return gl(e) === "[object Function]";
80478
80470
  }
80479
80471
  function j3(e) {
80480
80472
  return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
@@ -80536,7 +80528,7 @@ function jh() {
80536
80528
  t.normalize(e);
80537
80529
  };
80538
80530
  }
80539
- function Ps(e) {
80531
+ function Ls(e) {
80540
80532
  const t = e.re = z3(e.__opts__), n = e.__tlds__.slice();
80541
80533
  e.onCompile(), e.__tlds_replaced__ || n.push(Q3), n.push(t.src_xn), t.src_tlds = n.join("|");
80542
80534
  function r(s) {
@@ -80584,10 +80576,10 @@ function dd(e, t) {
80584
80576
  function Bt(e, t) {
80585
80577
  if (!(this instanceof Bt))
80586
80578
  return new Bt(e, t);
80587
- t || W3(e) && (t = e, e = {}), this.__opts__ = cd({}, eS, t), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = cd({}, K3, e), this.__compiled__ = {}, this.__tlds__ = Z3, this.__tlds_replaced__ = !1, this.re = {}, Ps(this);
80579
+ t || W3(e) && (t = e, e = {}), this.__opts__ = cd({}, eS, t), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = cd({}, K3, e), this.__compiled__ = {}, this.__tlds__ = Z3, this.__tlds_replaced__ = !1, this.re = {}, Ls(this);
80588
80580
  }
80589
80581
  Bt.prototype.add = function(e, t) {
80590
- return this.__schemas__[e] = t, Ps(this), this;
80582
+ return this.__schemas__[e] = t, Ls(this), this;
80591
80583
  };
80592
80584
  Bt.prototype.set = function(e) {
80593
80585
  return this.__opts__ = cd(this.__opts__, e), this;
@@ -80630,7 +80622,7 @@ Bt.prototype.matchAtStart = function(e) {
80630
80622
  Bt.prototype.tlds = function(e, t) {
80631
80623
  return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, i) {
80632
80624
  return n !== i[r - 1];
80633
- }).reverse(), Ps(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Ps(this), this);
80625
+ }).reverse(), Ls(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Ls(this), this);
80634
80626
  };
80635
80627
  Bt.prototype.normalize = function(e) {
80636
80628
  e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
@@ -80641,7 +80633,7 @@ const pi = 2147483647, hn = 36, Tu = 1, Lo = 26, tB = 38, nB = 700, tS = 72, nS
80641
80633
  overflow: "Overflow: input needs wider integers to process",
80642
80634
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
80643
80635
  "invalid-input": "Invalid input"
80644
- }, pc = hn - Tu, _n = Math.floor, mc = String.fromCharCode;
80636
+ }, uc = hn - Tu, _n = Math.floor, pc = String.fromCharCode;
80645
80637
  function $n(e) {
80646
80638
  throw new RangeError(aB[e]);
80647
80639
  }
@@ -80679,9 +80671,9 @@ const lB = (e) => String.fromCodePoint(...e), cB = function(e) {
80679
80671
  return e + 22 + 75 * (e < 26) - ((t != 0) << 5);
80680
80672
  }, aS = function(e, t, n) {
80681
80673
  let r = 0;
80682
- for (e = n ? _n(e / nB) : e >> 1, e += _n(e / t); e > pc * Lo >> 1; r += hn)
80683
- e = _n(e / pc);
80684
- return _n(r + (pc + 1) * e / (e + tB));
80674
+ for (e = n ? _n(e / nB) : e >> 1, e += _n(e / t); e > uc * Lo >> 1; r += hn)
80675
+ e = _n(e / uc);
80676
+ return _n(r + (uc + 1) * e / (e + tB));
80685
80677
  }, sS = function(e) {
80686
80678
  const t = [], n = e.length;
80687
80679
  let r = 0, i = nS, o = tS, a = e.lastIndexOf(rS);
@@ -80710,7 +80702,7 @@ const lB = (e) => String.fromCodePoint(...e), cB = function(e) {
80710
80702
  const n = e.length;
80711
80703
  let r = nS, i = 0, o = tS;
80712
80704
  for (const l of e)
80713
- l < 128 && t.push(mc(l));
80705
+ l < 128 && t.push(pc(l));
80714
80706
  const a = t.length;
80715
80707
  let s = a;
80716
80708
  for (a && t.push(rS); s < n; ) {
@@ -80728,10 +80720,10 @@ const lB = (e) => String.fromCodePoint(...e), cB = function(e) {
80728
80720
  break;
80729
80721
  const h = u - m, _ = hn - m;
80730
80722
  t.push(
80731
- mc(Wh(m + h % _, 0))
80723
+ pc(Wh(m + h % _, 0))
80732
80724
  ), u = _n(h / _);
80733
80725
  }
80734
- t.push(mc(Wh(u, 0))), o = aS(i, c, s === a), i = 0, ++s;
80726
+ t.push(pc(Wh(u, 0))), o = aS(i, c, s === a), i = 0, ++s;
80735
80727
  }
80736
80728
  ++i, ++r;
80737
80729
  }
@@ -80962,10 +80954,10 @@ function bB(e) {
80962
80954
  function Zt(e, t) {
80963
80955
  if (!(this instanceof Zt))
80964
80956
  return new Zt(e, t);
80965
- t || bu(e) || (t = e || {}, e = "default"), this.inline = new qo(), this.block = new gl(), this.core = new yu(), this.renderer = new xi(), this.linkify = new Bt(), this.validateLink = EB, this.normalizeLink = SB, this.normalizeLinkText = bB, this.utils = yF, this.helpers = hl({}, NF), this.options = {}, this.configure(e), t && this.set(t);
80957
+ t || bu(e) || (t = e || {}, e = "default"), this.inline = new qo(), this.block = new _l(), this.core = new yu(), this.renderer = new xi(), this.linkify = new Bt(), this.validateLink = EB, this.normalizeLink = SB, this.normalizeLinkText = bB, this.utils = yF, this.helpers = ml({}, NF), this.options = {}, this.configure(e), t && this.set(t);
80966
80958
  }
80967
80959
  Zt.prototype.set = function(e) {
80968
- return hl(this.options, e), this;
80960
+ return ml(this.options, e), this;
80969
80961
  };
80970
80962
  Zt.prototype.configure = function(e) {
80971
80963
  const t = this;
@@ -81125,7 +81117,7 @@ function DB(e) {
81125
81117
  function MB(e) {
81126
81118
  return e.content.indexOf("[ ] ") === 0 || e.content.indexOf("[x] ") === 0 || e.content.indexOf("[X] ") === 0;
81127
81119
  }
81128
- const kB = /* @__PURE__ */ ol(yB);
81120
+ const kB = /* @__PURE__ */ il(yB);
81129
81121
  function LB(e) {
81130
81122
  for (var t = 1; t < arguments.length; t++) {
81131
81123
  var n = arguments[t];
@@ -81371,7 +81363,7 @@ pt.inlineLink = {
81371
81363
  replacement: function(e, t) {
81372
81364
  var n = t.getAttribute("href");
81373
81365
  n && (n = n.replace(/([()])/g, "\\$1"));
81374
- var r = Fs(t.getAttribute("title"));
81366
+ var r = Ps(t.getAttribute("title"));
81375
81367
  return r && (r = ' "' + r.replace(/"/g, '\\"') + '"'), "[" + e + "](" + n + r + ")";
81376
81368
  }
81377
81369
  };
@@ -81380,7 +81372,7 @@ pt.referenceLink = {
81380
81372
  return t.linkStyle === "referenced" && e.nodeName === "A" && e.getAttribute("href");
81381
81373
  },
81382
81374
  replacement: function(e, t, n) {
81383
- var r = t.getAttribute("href"), i = Fs(t.getAttribute("title"));
81375
+ var r = t.getAttribute("href"), i = Ps(t.getAttribute("title"));
81384
81376
  i && (i = ' "' + i + '"');
81385
81377
  var o, a;
81386
81378
  switch (n.linkReferenceStyle) {
@@ -81434,11 +81426,11 @@ pt.code = {
81434
81426
  pt.image = {
81435
81427
  filter: "img",
81436
81428
  replacement: function(e, t) {
81437
- var n = Fs(t.getAttribute("alt")), r = t.getAttribute("src") || "", i = Fs(t.getAttribute("title")), o = i ? ' "' + i + '"' : "";
81429
+ var n = Ps(t.getAttribute("alt")), r = t.getAttribute("src") || "", i = Ps(t.getAttribute("title")), o = i ? ' "' + i + '"' : "";
81438
81430
  return r ? "![" + n + "](" + r + o + ")" : "";
81439
81431
  }
81440
81432
  };
81441
- function Fs(e) {
81433
+ function Ps(e) {
81442
81434
  return e ? e.replace(/(\n+\s*)+/g, `
81443
81435
  `) : "";
81444
81436
  }
@@ -81471,13 +81463,13 @@ fS.prototype = {
81471
81463
  forNode: function(e) {
81472
81464
  if (e.isBlank) return this.blankRule;
81473
81465
  var t;
81474
- return (t = hc(this.array, e, this.options)) || (t = hc(this._keep, e, this.options)) || (t = hc(this._remove, e, this.options)) ? t : this.defaultRule;
81466
+ return (t = mc(this.array, e, this.options)) || (t = mc(this._keep, e, this.options)) || (t = mc(this._remove, e, this.options)) ? t : this.defaultRule;
81475
81467
  },
81476
81468
  forEach: function(e) {
81477
81469
  for (var t = 0; t < this.array.length; t++) e(this.array[t], t);
81478
81470
  }
81479
81471
  };
81480
- function hc(e, t, n) {
81472
+ function mc(e, t, n) {
81481
81473
  for (var r = 0; r < e.length; r++) {
81482
81474
  var i = e[r];
81483
81475
  if (GB(i, t, n)) return i;
@@ -81503,23 +81495,23 @@ function zB(e) {
81503
81495
  if (l.nodeType === 3 || l.nodeType === 4) {
81504
81496
  var c = l.data.replace(/[ \r\n\t]+/g, " ");
81505
81497
  if ((!o || / $/.test(o.data)) && !a && c[0] === " " && (c = c.substr(1)), !c) {
81506
- l = _c(l);
81498
+ l = hc(l);
81507
81499
  continue;
81508
81500
  }
81509
81501
  l.data = c, o = l;
81510
81502
  } else if (l.nodeType === 1)
81511
81503
  n(l) || l.nodeName === "BR" ? (o && (o.data = o.data.replace(/ $/, "")), o = null, a = !1) : r(l) || i(l) ? (o = null, a = !0) : o && (a = !1);
81512
81504
  else {
81513
- l = _c(l);
81505
+ l = hc(l);
81514
81506
  continue;
81515
81507
  }
81516
81508
  var d = Qh(s, l, i);
81517
81509
  s = l, l = d;
81518
81510
  }
81519
- o && (o.data = o.data.replace(/ $/, ""), o.data || _c(o));
81511
+ o && (o.data = o.data.replace(/ $/, ""), o.data || hc(o));
81520
81512
  }
81521
81513
  }
81522
- function _c(e) {
81514
+ function hc(e) {
81523
81515
  var t = e.nextSibling || e.parentNode;
81524
81516
  return e.parentNode.removeChild(e), t;
81525
81517
  }
@@ -81576,9 +81568,9 @@ function WB(e, t) {
81576
81568
  isPre: t.preformattedCode ? QB : null
81577
81569
  }), n;
81578
81570
  }
81579
- var gc;
81571
+ var _c;
81580
81572
  function KB() {
81581
- return gc = gc || new jB(), gc;
81573
+ return _c = _c || new jB(), _c;
81582
81574
  }
81583
81575
  function QB(e) {
81584
81576
  return e.nodeName === "PRE" || e.nodeName === "CODE";
@@ -81627,8 +81619,8 @@ var tU = Array.prototype.reduce, nU = [
81627
81619
  [/_/g, "\\_"],
81628
81620
  [/^(\d+)\. /g, "$1\\. "]
81629
81621
  ];
81630
- function Bs(e) {
81631
- if (!(this instanceof Bs)) return new Bs(e);
81622
+ function Fs(e) {
81623
+ if (!(this instanceof Fs)) return new Fs(e);
81632
81624
  var t = {
81633
81625
  rules: pt,
81634
81626
  headingStyle: "setext",
@@ -81664,7 +81656,7 @@ function Bs(e) {
81664
81656
  };
81665
81657
  this.options = LB({}, t, e), this.rules = new fS(this.options);
81666
81658
  }
81667
- Bs.prototype = {
81659
+ Fs.prototype = {
81668
81660
  /**
81669
81661
  * The entry point for converting a string or DOM node to Markdown
81670
81662
  * @public
@@ -81939,7 +81931,7 @@ wu.use(kB, {
81939
81931
  enabled: !0,
81940
81932
  label: !0
81941
81933
  });
81942
- const Gr = new Bs({
81934
+ const Gr = new Fs({
81943
81935
  headingStyle: "atx",
81944
81936
  hr: "---",
81945
81937
  bulletListMarker: "-",
@@ -81988,7 +81980,7 @@ Gr.addRule("container", {
81988
81980
  `;
81989
81981
  }
81990
81982
  });
81991
- const Us = (e) => {
81983
+ const Bs = (e) => {
81992
81984
  if (!e) return e;
81993
81985
  const t = wu.render(e).trim();
81994
81986
  return t ? ro(t.includes("<pre") ? t : t.replace(/\n/g, "")) : e;
@@ -82029,11 +82021,11 @@ class fU extends n1 {
82029
82021
  return si.fromSchema(this.schema).parse(n(t), {}).content;
82030
82022
  }
82031
82023
  parseMarkdown(t) {
82032
- const n = Us(t);
82024
+ const n = Bs(t);
82033
82025
  return this.parseHtml(n);
82034
82026
  }
82035
82027
  insertMarkdown(t) {
82036
- this.commands.insertContent(Us(t));
82028
+ this.commands.insertContent(Bs(t));
82037
82029
  }
82038
82030
  }
82039
82031
  class EU {
@@ -82069,7 +82061,7 @@ class EU {
82069
82061
  const t = typeof this.options.element == "string" ? document.querySelector(this.options.element) : this.options.element;
82070
82062
  t.classList.add(`aie-theme-${this.options.theme}`), this.container = t.querySelector(".aie-container"), this.container ? this.customLayout = !0 : (this.container = document.createElement("div"), this.container.classList.add("aie-container")), t.appendChild(this.container), this.mainEl = document.createElement("div"), this.mainEl.style.flexGrow = "1", this.mainEl.style.overflow = "auto", this.header = new _f(), this.eventComponents.push(this.header), this.footer = new gf(), this.footer.initDraggable(this.options.draggable), this.eventComponents.push(this.footer);
82071
82063
  let n = this.options.content;
82072
- if (typeof n == "string" && (this.options.contentIsMarkdown ? n = Us(n) : n = ro(n)), this.options.contentRetention && this.options.contentRetentionKey) {
82064
+ if (typeof n == "string" && (this.options.contentIsMarkdown ? n = Bs(n) : n = ro(n)), this.options.contentRetention && this.options.contentRetentionKey) {
82073
82065
  const r = localStorage.getItem(this.options.contentRetentionKey);
82074
82066
  if (r)
82075
82067
  try {
@@ -82143,7 +82135,7 @@ class EU {
82143
82135
  }
82144
82136
  getSelectedText() {
82145
82137
  const t = this.innerEditor.state.selection;
82146
- return t.empty ? "" : Js(this.innerEditor.state.doc, { from: t.from, to: t.to });
82138
+ return t.empty ? "" : Xs(this.innerEditor.state.doc, { from: t.from, to: t.to });
82147
82139
  }
82148
82140
  getMarkdown() {
82149
82141
  return _U(this.getHtml());
@@ -82224,7 +82216,7 @@ class EU {
82224
82216
  return typeof t == "string" && (t = ro(t)), n === !1 ? this.clear().insert(t) : this.focus().clear().insert(t), this;
82225
82217
  }
82226
82218
  setMarkdownContent(t) {
82227
- const n = Us(t);
82219
+ const n = Bs(t);
82228
82220
  return this.setContent(n);
82229
82221
  }
82230
82222
  clear() {
@@ -82344,7 +82336,7 @@ const SU = {
82344
82336
  const r = t.item.type === "multiple-select" || t.item.type === "checkbox" || t.item.searchFormType === "multiple-select" || t.item.searchFormType === "checkbox";
82345
82337
  typeof n == "object" && n !== null && !Array.isArray(n) && (n = Object.values(n).join(",")), r && typeof n == "string" && n && (n = n.split(","));
82346
82338
  const i = Oe(n);
82347
- return Hs(() => {
82339
+ return Us(() => {
82348
82340
  switch (t.item.type) {
82349
82341
  case "select":
82350
82342
  case "radio":
@@ -82357,16 +82349,16 @@ const SU = {
82357
82349
  i.value = s.join(",") || "";
82358
82350
  break;
82359
82351
  case "date":
82360
- i.value = t.modelValue ? Pa(t.modelValue).format(t.item.formatter || "YYYY-MM-DD") : "";
82352
+ i.value = t.modelValue ? La(t.modelValue).format(t.item.formatter || "YYYY-MM-DD") : "";
82361
82353
  break;
82362
82354
  case "datetime":
82363
- i.value = t.modelValue ? Pa(t.modelValue).format(t.item.formatter || "YYYY-MM-DD HH:mm:ss") : "";
82355
+ i.value = t.modelValue ? La(t.modelValue).format(t.item.formatter || "YYYY-MM-DD HH:mm:ss") : "";
82364
82356
  break;
82365
82357
  default:
82366
82358
  i.value = t.modelValue;
82367
82359
  break;
82368
82360
  }
82369
- }), (o, a) => (Q(), ye("span", null, Vs(i.value), 1));
82361
+ }), (o, a) => (Q(), ye("span", null, Hs(i.value), 1));
82370
82362
  }
82371
82363
  });
82372
82364
  var zi = { exports: {} }, Jh;
@@ -82989,7 +82981,7 @@ const wU = { class: "map-draw-container" }, IU = {
82989
82981
  r.value = l, l === "none" ? n("draw-cancel") : n("draw-start", l);
82990
82982
  };
82991
82983
  return (l, c) => (Q(), ye("div", wU, [
82992
- e.geomType === "point" ? (Q(), fe(q(lt), {
82984
+ e.geomType === "point" ? (Q(), Se(q(lt), {
82993
82985
  key: 0,
82994
82986
  type: "primary",
82995
82987
  size: "small",
@@ -82998,7 +82990,7 @@ const wU = { class: "map-draw-container" }, IU = {
82998
82990
  icon: q(i),
82999
82991
  class: Na({ active: r.value === "point" })
83000
82992
  }, null, 8, ["icon", "class"])) : Ke("", !0),
83001
- e.geomType === "linestring" ? (Q(), fe(q(lt), {
82993
+ e.geomType === "linestring" ? (Q(), Se(q(lt), {
83002
82994
  key: 1,
83003
82995
  type: "primary",
83004
82996
  size: "small",
@@ -83007,7 +82999,7 @@ const wU = { class: "map-draw-container" }, IU = {
83007
82999
  icon: q(o),
83008
83000
  class: Na({ active: r.value === "line" })
83009
83001
  }, null, 8, ["icon", "class"])) : Ke("", !0),
83010
- e.geomType === "polygon" ? (Q(), fe(q(lt), {
83002
+ e.geomType === "polygon" ? (Q(), Se(q(lt), {
83011
83003
  key: 2,
83012
83004
  type: "primary",
83013
83005
  size: "small",
@@ -83105,7 +83097,7 @@ const wU = { class: "map-draw-container" }, IU = {
83105
83097
  onLoad: l
83106
83098
  }, {
83107
83099
  "top-left": se(() => [
83108
- e.currentOperationType !== "details" ? (Q(), fe(DU, {
83100
+ e.currentOperationType !== "details" ? (Q(), Se(DU, {
83109
83101
  key: 0,
83110
83102
  onDrawStart: c,
83111
83103
  onDrawCancel: d
@@ -83152,7 +83144,7 @@ const wU = { class: "map-draw-container" }, IU = {
83152
83144
  { required: !0, message: "请输入文件名称", trigger: ["blur"] }
83153
83145
  ]
83154
83146
  }), a = Ir(() => (t?.columns || []).filter((c) => c.checkedFields.indexOf("exportable") > -1));
83155
- Hs(() => {
83147
+ Us(() => {
83156
83148
  i.selectedFields = t?.visibleColumns || [];
83157
83149
  });
83158
83150
  const s = async () => {
@@ -83246,7 +83238,7 @@ const wU = { class: "map-draw-container" }, IU = {
83246
83238
  prop: "filename"
83247
83239
  }, {
83248
83240
  default: se(() => [
83249
- ge(q(Ra), {
83241
+ ge(q(gc), {
83250
83242
  modelValue: i.filename,
83251
83243
  "onUpdate:modelValue": d[1] || (d[1] = (u) => i.filename = u),
83252
83244
  placeholder: "请输入文件名称"
@@ -83270,7 +83262,7 @@ const wU = { class: "map-draw-container" }, IU = {
83270
83262
  value: u.columnProperty
83271
83263
  }, {
83272
83264
  default: se(() => [
83273
- Tt(Vs(u.columnLabel), 1)
83265
+ Tt(Hs(u.columnLabel), 1)
83274
83266
  ]),
83275
83267
  _: 2
83276
83268
  }, 1032, ["value"])
@@ -83353,7 +83345,7 @@ const wU = { class: "map-draw-container" }, IU = {
83353
83345
  onChange: (d) => a(c.columnProperty, d)
83354
83346
  }, {
83355
83347
  default: se(() => [
83356
- Tt(Vs(c.columnLabel || c.columnProperty), 1)
83348
+ Tt(Hs(c.columnLabel || c.columnProperty), 1)
83357
83349
  ]),
83358
83350
  _: 2
83359
83351
  }, 1032, ["modelValue", "onChange"])
@@ -83375,11 +83367,14 @@ class YU {
83375
83367
  cloneSearchForm = "{}";
83376
83368
  cloneFormData = "{}";
83377
83369
  dictionaryMap = /* @__PURE__ */ new Map();
83370
+ columnMap = /* @__PURE__ */ new Map();
83378
83371
  constructor({ serverConfig: t }) {
83379
83372
  this.serverConfig = t;
83380
83373
  }
83381
83374
  setConfig({ curdConfig: t, searchConfig: n, tableConfig: r, editorConfig: i }) {
83382
- this.curdConfig = t || this.curdConfig, this.searchConfig = n || this.searchConfig, this.tableConfig = r || this.tableConfig, this.editorConfig = i || this.editorConfig;
83375
+ this.curdConfig = t || this.curdConfig, this.searchConfig = n || this.searchConfig, this.tableConfig = r || this.tableConfig, this.editorConfig = i || this.editorConfig, this.columnMap?.clear(), this.tableConfig?.columns?.forEach((o) => {
83376
+ this.columnMap?.set(o.columnProperty, o);
83377
+ });
83383
83378
  }
83384
83379
  //加载字典数据,确保全部加载完成后返回结果
83385
83380
  async loadDictionary() {
@@ -83421,9 +83416,9 @@ class YU {
83421
83416
  return n;
83422
83417
  switch (t.fieldType) {
83423
83418
  case "date":
83424
- return n ? Pa(n).format(t.formatter || "YYYY-MM-DD") : "";
83419
+ return n ? La(n).format(t.formatter || "YYYY-MM-DD") : "";
83425
83420
  case "datetime":
83426
- return n ? Pa(n).format(t.formatter || "YYYY-MM-DD HH:mm:ss") : "";
83421
+ return n ? La(n).format(t.formatter || "YYYY-MM-DD HH:mm:ss") : "";
83427
83422
  default:
83428
83423
  return n;
83429
83424
  }
@@ -83441,13 +83436,15 @@ class YU {
83441
83436
  });
83442
83437
  const t = {};
83443
83438
  return this.searchConfig?.columns.forEach((n) => {
83444
- t[n.columnProperty] = n.searchDefaultValue;
83439
+ let r = n.searchDefaultValue;
83440
+ r != null && r !== "" && (r = this.formatValueByColumnProperty(r, n.columnProperty)), t[n.columnProperty] = r;
83445
83441
  }), this.cloneSearchForm = JSON.stringify(t), t;
83446
83442
  }
83447
83443
  formatFormConfigData() {
83448
83444
  const t = {};
83449
83445
  return (this.editorConfig?.columns || []).filter((r) => r.columnProperty === this.curdConfig?.priKey ? !0 : r.type !== "hidden").forEach((r) => {
83450
- t[r.columnProperty] = r.defaultValue;
83446
+ let i = r.defaultValue;
83447
+ i != null && i !== "" && (i = this.formatValueByColumnProperty(i, r.columnProperty)), t[r.columnProperty] = i;
83451
83448
  }), this.cloneFormData = JSON.stringify(t), t;
83452
83449
  }
83453
83450
  //拼接查询条件
@@ -83505,6 +83502,21 @@ class YU {
83505
83502
  hasGeometryField() {
83506
83503
  return (this.editorConfig?.columns || []).find((n) => n.type === "shape") || void 0;
83507
83504
  }
83505
+ //根据类型格式化值
83506
+ formatValueByColumnProperty(t, n) {
83507
+ const r = this.columnMap?.get(n);
83508
+ if (!r)
83509
+ return t;
83510
+ switch (r?.fieldType) {
83511
+ case "integer":
83512
+ case "float":
83513
+ case "double":
83514
+ case "number":
83515
+ return Number(t);
83516
+ default:
83517
+ return t;
83518
+ }
83519
+ }
83508
83520
  }
83509
83521
  const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83510
83522
  key: 0,
@@ -83702,7 +83714,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83702
83714
  y.value = !1;
83703
83715
  });
83704
83716
  };
83705
- Hs(async () => {
83717
+ Us(async () => {
83706
83718
  if (r.serverConfig?.init) {
83707
83719
  const B = await r.serverConfig.init();
83708
83720
  if (B.success && B.data) {
@@ -83739,7 +83751,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83739
83751
  "label-width": g.searchLabelWidth
83740
83752
  }, {
83741
83753
  default: se(() => [
83742
- (Q(!0), ye(gt, null, xn(g.columns, (x) => (Q(), fe(q(Wi), {
83754
+ (Q(!0), ye(gt, null, xn(g.columns, (x) => (Q(), Se(q(Wi), {
83743
83755
  key: x.columnProperty,
83744
83756
  label: x.searchFormLabel || x.columnLabel,
83745
83757
  style: AS(`width: ${g.searchFormWidth}px;`)
@@ -83748,7 +83760,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83748
83760
  x.showMethod === "slot" ? _r(B.$slots, "search-" + x.columnProperty, {
83749
83761
  key: 0,
83750
83762
  scope: { ...B.scope, searchForm: S.value, data: S.value[x.columnProperty] }
83751
- }, void 0, !0) : (Q(), fe(Lu, {
83763
+ }, void 0, !0) : (Q(), Se(Lu, {
83752
83764
  key: 1,
83753
83765
  modelValue: S.value[x.columnProperty],
83754
83766
  "onUpdate:modelValue": (K) => S.value[x.columnProperty] = K,
@@ -83791,7 +83803,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83791
83803
  ]),
83792
83804
  u.webFunction.length > 0 ? (Q(), ye("div", WU, [
83793
83805
  Nt("div", KU, [
83794
- e.permissions.add && u.webFunction.includes("add") ? (Q(), fe(q(lt), {
83806
+ e.permissions.add && u.webFunction.includes("add") ? (Q(), Se(q(lt), {
83795
83807
  key: 0,
83796
83808
  type: "primary",
83797
83809
  size: e.size,
@@ -83803,7 +83815,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83803
83815
  ])]),
83804
83816
  _: 1
83805
83817
  }, 8, ["size"])) : Ke("", !0),
83806
- e.permissions.delete && u.webFunction.includes("batchDelete") ? (Q(), fe(q(lt), {
83818
+ e.permissions.delete && u.webFunction.includes("batchDelete") ? (Q(), Se(q(lt), {
83807
83819
  key: 1,
83808
83820
  type: "danger",
83809
83821
  size: e.size,
@@ -83819,7 +83831,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83819
83831
  ]),
83820
83832
  Nt("div", QU, [
83821
83833
  _r(B.$slots, "table-actions-right", {}, void 0, !0),
83822
- u.webFunction.includes("export") ? (Q(), fe(HU, {
83834
+ u.webFunction.includes("export") ? (Q(), Se(HU, {
83823
83835
  key: 0,
83824
83836
  columns: p.columns,
83825
83837
  "visible-columns": O.value,
@@ -83845,14 +83857,14 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83845
83857
  "header-cell-style": { background: "#F5F7FA" }
83846
83858
  }, {
83847
83859
  default: se(() => [
83848
- p.showIndex ? (Q(), fe(q(Zo), {
83860
+ p.showIndex ? (Q(), Se(q(Zo), {
83849
83861
  key: 0,
83850
83862
  type: "index",
83851
83863
  width: p.indexWidth,
83852
83864
  label: "#",
83853
83865
  align: "center"
83854
83866
  }, null, 8, ["width"])) : Ke("", !0),
83855
- e.permissions.delete && u.webFunction.includes("batchDelete") ? (Q(), fe(q(Zo), {
83867
+ e.permissions.delete && u.webFunction.includes("batchDelete") ? (Q(), Se(q(Zo), {
83856
83868
  key: 1,
83857
83869
  type: "selection",
83858
83870
  width: "55",
@@ -83861,7 +83873,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83861
83873
  (Q(!0), ye(gt, null, xn(p.columns, (x) => (Q(), ye(gt, {
83862
83874
  key: x.prop
83863
83875
  }, [
83864
- O.value.includes(x.columnProperty) ? (Q(), fe(q(Zo), {
83876
+ O.value.includes(x.columnProperty) ? (Q(), Se(q(Zo), {
83865
83877
  key: 0,
83866
83878
  label: x.columnLabel,
83867
83879
  width: (x.width || "") + "px",
@@ -83875,7 +83887,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83875
83887
  key: 0,
83876
83888
  scope: K
83877
83889
  }, void 0, !0) : (Q(), ye(gt, { key: 1 }, [
83878
- Tt(Vs(q(l).formatColumnValue(x, K?.row[x.columnProperty])), 1)
83890
+ Tt(Hs(q(l).formatColumnValue(x, K?.row[x.columnProperty])), 1)
83879
83891
  ], 64))
83880
83892
  ]),
83881
83893
  _: 2
@@ -83888,7 +83900,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83888
83900
  label: "操作"
83889
83901
  }, {
83890
83902
  default: se((x) => [
83891
- p.visibleOperationButtons.includes("detail") ? (Q(), fe(q(lt), {
83903
+ p.visibleOperationButtons.includes("detail") ? (Q(), Se(q(lt), {
83892
83904
  key: 0,
83893
83905
  type: "primary",
83894
83906
  plain: "",
@@ -83900,7 +83912,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83900
83912
  ])]),
83901
83913
  _: 1
83902
83914
  }, 8, ["size", "onClick"])) : Ke("", !0),
83903
- p.visibleOperationButtons.includes("edit") && e.permissions.edit ? (Q(), fe(q(lt), {
83915
+ p.visibleOperationButtons.includes("edit") && e.permissions.edit ? (Q(), Se(q(lt), {
83904
83916
  key: 1,
83905
83917
  type: "success",
83906
83918
  plain: "",
@@ -83912,7 +83924,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83912
83924
  ])]),
83913
83925
  _: 1
83914
83926
  }, 8, ["size", "onClick"])) : Ke("", !0),
83915
- p.visibleOperationButtons.includes("delete") && e.permissions.delete ? (Q(), fe(q(lt), {
83927
+ p.visibleOperationButtons.includes("delete") && e.permissions.delete ? (Q(), Se(q(lt), {
83916
83928
  key: 2,
83917
83929
  type: "danger",
83918
83930
  plain: "",
@@ -83960,7 +83972,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83960
83972
  "align-center": ""
83961
83973
  }, wS({
83962
83974
  default: se(() => [
83963
- ge(q(Sl), null, {
83975
+ ge(q(El), null, {
83964
83976
  default: se(() => [
83965
83977
  ge(q(Xo), {
83966
83978
  span: R.value ? 24 - R.value.span : 24
@@ -83977,13 +83989,13 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83977
83989
  class: Na({ "curd-form-details": d.value === "details" })
83978
83990
  }, {
83979
83991
  default: se(() => [
83980
- ge(q(Sl), null, {
83992
+ ge(q(El), null, {
83981
83993
  default: se(() => [
83982
83994
  ge(q(Xo), { span: 24 }, {
83983
83995
  default: se(() => [
83984
- ge(q(Sl), null, {
83996
+ ge(q(El), null, {
83985
83997
  default: se(() => [
83986
- (Q(!0), ye(gt, null, xn(_.formColumns, (x) => (Q(), fe(q(Xo), {
83998
+ (Q(!0), ye(gt, null, xn(_.formColumns, (x) => (Q(), Se(q(Xo), {
83987
83999
  key: x.columnProperty,
83988
84000
  span: x.span || 12
83989
84001
  }, {
@@ -83994,7 +84006,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
83994
84006
  }, {
83995
84007
  default: se(() => [
83996
84008
  d.value === "details" ? (Q(), ye(gt, { key: 0 }, [
83997
- x.type === "upload" ? (Q(), fe(Pu, {
84009
+ x.type === "upload" ? (Q(), Se(Pu, {
83998
84010
  key: 0,
83999
84011
  item: x,
84000
84012
  modelValue: f.data[x.columnProperty],
@@ -84003,7 +84015,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
84003
84015
  headers: e.serverConfig.headers(),
84004
84016
  upload: e.serverConfig.upload(),
84005
84017
  download: e.serverConfig.download()
84006
- }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : (Q(), fe(yU, {
84018
+ }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : (Q(), Se(yU, {
84007
84019
  key: 1,
84008
84020
  item: x,
84009
84021
  modelValue: f.data[x.columnProperty],
@@ -84015,7 +84027,7 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
84015
84027
  key: 0,
84016
84028
  item: x,
84017
84029
  scope: { ...B.scope, formData: f.data, data: f.data[x.columnProperty] }
84018
- }, void 0, !0) : x.type === "upload" ? (Q(), fe(Pu, {
84030
+ }, void 0, !0) : x.type === "upload" ? (Q(), Se(Pu, {
84019
84031
  key: 1,
84020
84032
  item: x,
84021
84033
  modelValue: f.data[x.columnProperty],
@@ -84024,13 +84036,13 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
84024
84036
  headers: e.serverConfig.headers(),
84025
84037
  upload: e.serverConfig.upload(),
84026
84038
  download: e.serverConfig.download()
84027
- }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : x.type === "editor" ? (Q(), fe(bU, {
84039
+ }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : x.type === "editor" ? (Q(), Se(bU, {
84028
84040
  key: 2,
84029
84041
  item: x,
84030
84042
  modelValue: f.data[x.columnProperty],
84031
84043
  "onUpdate:modelValue": (K) => f.data[x.columnProperty] = K,
84032
84044
  currentOperationType: d.value
84033
- }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType"])) : (Q(), fe(Lu, {
84045
+ }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType"])) : (Q(), Se(Lu, {
84034
84046
  key: 3,
84035
84047
  item: x,
84036
84048
  modelValue: f.data[x.columnProperty],
@@ -84060,13 +84072,13 @@ const qU = { class: "curd-container" }, jU = { class: "curd-search" }, WU = {
84060
84072
  ]),
84061
84073
  _: 3
84062
84074
  }, 8, ["span"]),
84063
- R.value ? (Q(), fe(q(Xo), {
84075
+ R.value ? (Q(), Se(q(Xo), {
84064
84076
  key: 0,
84065
84077
  span: R.value ? R.value.span : 0,
84066
84078
  style: { padding: "0 10px" }
84067
84079
  }, {
84068
84080
  default: se(() => [
84069
- T.value ? (Q(), fe(PU, {
84081
+ T.value ? (Q(), Se(PU, {
84070
84082
  key: 0,
84071
84083
  modelValue: f.data.wktstr,
84072
84084
  "onUpdate:modelValue": $[3] || ($[3] = (x) => f.data.wktstr = x),