@knime/jsonforms 1.15.34 → 1.15.35

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AnyOfTwinlist-DRfKC3ja.js → AnyOfTwinlist-BxxV-vXH.js} +1 -1
  3. package/dist/{Button-C779CcnN.js → Button-C1YbM3aI.js} +1 -1
  4. package/dist/{CheckboxControl-C-T6CPpm.js → CheckboxControl-Br6yNvvQ.js} +1 -1
  5. package/dist/{Checkboxes-HMZEutQr.js → Checkboxes-Cq8yG3IF.js} +1 -1
  6. package/dist/{CheckboxesControl-LptJIZ26.js → CheckboxesControl-DFGrfGnh.js} +3 -3
  7. package/dist/{ComboBoxControl-DvibYPBQ.js → ComboBoxControl-XXv-bHn8.js} +2 -2
  8. package/dist/{DateControl-DmoYm0ZC.js → DateControl-CU7oiLe8.js} +1 -1
  9. package/dist/{DateTimeControl-D7iCQuj3.js → DateTimeControl-DVPVqdQ1.js} +1 -1
  10. package/dist/{DateTimeFormatInput-ZAxJRG_W.js → DateTimeFormatInput-Cb3oICrR.js} +3 -3
  11. package/dist/{DateTimeFormatPickerControl-D_T7iA-J.js → DateTimeFormatPickerControl-CYy0llzC.js} +2 -2
  12. package/dist/{DateTimeFormatPickerWithTypeControl-D5EKjTbt.js → DateTimeFormatPickerWithTypeControl-BddMp7Jk.js} +3 -3
  13. package/dist/{Dropdown-BMQ2cULv.js → Dropdown-cU7QSWA2.js} +2 -2
  14. package/dist/{DropdownControl-D_Cv0Y53.js → DropdownControl-CZ-y9hDR.js} +2 -2
  15. package/dist/{HorizontalLayout-DFWur7ZE.js → HorizontalLayout-yAUmGkR2.js} +1 -1
  16. package/dist/{InputField-BR_pF-hk.js → InputField-CS5yFxgB.js} +1 -1
  17. package/dist/{IntegerControl-BwZfBax4.js → IntegerControl-Cli0AQRY.js} +1 -1
  18. package/dist/{IntervalControl-Cq9aZk9K.js → IntervalControl-CXMo5jZF.js} +3 -3
  19. package/dist/{LoadingDropdown-CbQFVRkX.js → LoadingDropdown-AM-gEPfk.js} +3 -3
  20. package/dist/{LoadingIcon-DwiQTtVp.js → LoadingIcon-oWPAdW1o.js} +1 -1
  21. package/dist/{ManualTwinlistControl-Cx67bPPD.js → ManualTwinlistControl-kS4s8uyn.js} +4 -4
  22. package/dist/{MultiSelectListBoxControl-CzAUzYat.js → MultiSelectListBoxControl-BCvcSoqh.js} +2 -2
  23. package/dist/{MultimodeTwinlistControl-Cs4jg9XU.js → MultimodeTwinlistControl-CAxo_Ngb.js} +6 -6
  24. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_a6fd4504_lang-DMibSx-E.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_a6fd4504_lang-BYga7onx.js} +1 -1
  25. package/dist/{MultiselectListBox-Hf2ZcYL8.js → MultiselectListBox-clSTp1-1.js} +2 -2
  26. package/dist/{NameFilter-CMoIYmJ1.js → NameFilter-CnWwCZpN.js} +1 -1
  27. package/dist/{NumberControl-DuJBzz0A.js → NumberControl-tB_MjxGQ.js} +1 -1
  28. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-CtX1RKV3.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CTnlXQBz.js} +2 -2
  29. package/dist/{NumberInput-UPTwSPzu.js → NumberInput-BNheesNm.js} +1 -1
  30. package/dist/{OneOfDropdown-DwsNSy-h.js → OneOfDropdown-D2mbeDYO.js} +1 -1
  31. package/dist/{RadioControl-VmoEv9dJ.js → RadioControl-txJeApK9.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Cn9-fOSg.js → RadioControlBase.vue_vue_type_script_setup_true_lang-P8DY-oIn.js} +3 -3
  33. package/dist/{RichTextControl-qxb7TlZF.js → RichTextControl-Bk7bf81X.js} +404 -403
  34. package/dist/{SectionHeading-DchScXmi.js → SectionHeading-CMpUCBtM.js} +1 -1
  35. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-QqVBwk2Y.js → SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-Do0etb2v.js} +34 -34
  36. package/dist/{SectionLayout-Bi3Ri3P_.js → SectionLayout-CA5sy4yp.js} +3 -3
  37. package/dist/{SettingsSubPanel-DH7FE7TU.js → SettingsSubPanel-Bw3bHKkG.js} +1 -1
  38. package/dist/{SettingsSubPanelLayout-D6uMLNqJ.js → SettingsSubPanelLayout-9TsjJKug.js} +4 -4
  39. package/dist/{SimpleButtonControl-DYGNIK7N.js → SimpleButtonControl-ogvNWx25.js} +2 -2
  40. package/dist/{SimpleTwinlistControl-DcX7nw0Z.js → SimpleTwinlistControl-BqT1pxMU.js} +2 -2
  41. package/dist/{SingleSelectControl-B6MFSAh_.js → SingleSelectControl-Bx7mOJM0.js} +2 -2
  42. package/dist/{SingleSelectListBoxControl-B00rs75L.js → SingleSelectListBoxControl-qjXOElDT.js} +3 -3
  43. package/dist/{SortListControl-DfoFG_yS.js → SortListControl-CmHm1Sz5.js} +6 -6
  44. package/dist/{StyledListItem-BxbQmLS0.js → StyledListItem-D0mZZhK0.js} +1 -1
  45. package/dist/{TextAreaControl-F_oItRdX.js → TextAreaControl-B18dd6_s.js} +1 -1
  46. package/dist/{TextControl-BqRM2i1D.js → TextControl-Dpfk3z7N.js} +1 -1
  47. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DTwfEJGu.js → TextControl.vue_vue_type_script_setup_true_lang-30D3WpVY.js} +3 -3
  48. package/dist/{TimeControl-ZASlcDoy.js → TimeControl-DC6f3AOm.js} +1 -1
  49. package/dist/{TwinlistControlBase-DyQF66tF.js → TwinlistControlBase-5Hq8wJ7U.js} +3 -3
  50. package/dist/{TwinlistLoadingInfo-DHe1GpoQ.js → TwinlistLoadingInfo-9NuaQllh.js} +4 -4
  51. package/dist/{TypedStringFilter-Bt_j_R0O.js → TypedStringFilter-kAtL2VnN.js} +1 -1
  52. package/dist/{ValueSwitch-CVyp6vCX.js → ValueSwitch-CYYZDFP_.js} +1 -1
  53. package/dist/{ValueSwitchControl-BuivqtRX.js → ValueSwitchControl-B1b_4stQ.js} +1 -1
  54. package/dist/{VerticalLayout-CEoA-xWO.js → VerticalLayout-dU4Lhcag.js} +2 -2
  55. package/dist/{VerticalLayoutBase-BQtzUcxY.js → VerticalLayoutBase-C7eckPND.js} +1 -1
  56. package/dist/{ZonedDateTimeControl-C75lX_FS.js → ZonedDateTimeControl-xOiRSrD6.js} +3 -3
  57. package/dist/{_baseEach-zm6S5YMo.js → _baseEach-CuUdn735.js} +2 -2
  58. package/dist/{_baseIteratee-CWy3NzN2.js → _baseIteratee-Dp4yBmhi.js} +3 -3
  59. package/dist/{_getTag-Ds1u6apJ.js → _getTag-CBwdewIU.js} +1 -1
  60. package/dist/knime-jsonforms.css +1 -1
  61. package/dist/knime-jsonforms.js +7 -7
  62. package/dist/{localTimeUtils-B4sXG50p.js → localTimeUtils-BlRVDpai.js} +6 -6
  63. package/dist/testing.js +2 -2
  64. package/dist/{toString-B5G0JI4B.js → toString-nVzS6mO9.js} +1 -1
  65. package/dist/{useBuiltinValidations-D6e4jQa8.js → useBuiltinValidations-CrJ2Uydv.js} +1 -1
  66. package/dist/{usePossibleValues-BkW9NfiM.js → usePossibleValues-6lsPicV7.js} +1 -1
  67. package/package.json +3 -3
@@ -1,20 +1,20 @@
1
- import { defineComponent as de, resolveComponent as Ht, createBlock as ne, openBlock as N, Transition as bs, withCtx as q, createCommentVNode as ee, createElementVNode as L, withModifiers as Hn, createVNode as Z, createElementBlock as H, renderSlot as Ne, normalizeClass as $e, toDisplayString as wt, useCssVars as Fa, ref as J, watch as Ut, unref as V, onUnmounted as $a, Fragment as tr, createTextVNode as Td, resolveDynamicComponent as ks, mergeProps as nr, toRef as Fi, onBeforeUpdate as Ed, computed as ye, normalizeStyle as xs, renderList as Ha, nextTick as yi, toRefs as Va, inject as Od, Teleport as Ad, withDirectives as ja, vShow as _a, shallowRef as Nd, onMounted as rr, onBeforeUnmount as bi, h as ir, getCurrentInstance as Id, watchEffect as Dd, markRaw as Rd, customRef as Ld, withKeys as Pd, useSlots as Bd, toHandlers as Wa } from "vue";
2
- import { c as zd, a as Fd } from "./popper-LGjf7Wza.js";
1
+ import { defineComponent as de, resolveComponent as Ht, createBlock as ne, openBlock as N, Transition as bs, withCtx as q, createCommentVNode as ee, createElementVNode as L, withModifiers as Hn, createVNode as Z, createElementBlock as H, renderSlot as Ne, normalizeClass as $e, toDisplayString as wt, useCssVars as Fa, ref as J, watch as Ut, unref as V, onUnmounted as $a, Fragment as tr, createTextVNode as Md, resolveDynamicComponent as ks, mergeProps as nr, toRef as Fi, onBeforeUpdate as Td, computed as ye, normalizeStyle as xs, renderList as Ha, nextTick as yi, toRefs as Va, inject as Ed, Teleport as Od, withDirectives as ja, vShow as _a, shallowRef as Ad, onMounted as rr, onBeforeUnmount as bi, h as ir, getCurrentInstance as Nd, watchEffect as Id, markRaw as Dd, customRef as Rd, withKeys as Ld, useSlots as Pd, toHandlers as Wa } from "vue";
2
+ import { c as Bd, a as zd } from "./popper-LGjf7Wza.js";
3
3
  import { g as Ka } from "./hotkeys-rxnt4egK.js";
4
4
  import { i as Ua } from "./navigator-e30QQMkl.js";
5
- import { C as $d } from "./close-DGt8x-x_.js";
6
- import { _ as Ve, v as Qs, W as $i, P as Hd, M as tl, y as Vd, z as nl, A as jd, B as wn, D as _d, G as Wd, H as rl, I as Kd, J as Ud, C as qd, K as il } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-QqVBwk2Y.js";
7
- import { F as Jd, u as Gd } from "./useDropdownNavigation-BfCXUheD.js";
8
- import { B as Hi } from "./Button-C779CcnN.js";
9
- import { I as sl } from "./InputField-BR_pF-hk.js";
10
- import { u as qa, a as Ja, f as Ga, s as Ya } from "./floating-ui.vue-CDo9Kas1.js";
5
+ import { C as Fd } from "./close-DGt8x-x_.js";
6
+ import { _ as Ve, v as Qs, W as $i, P as $d, M as tl, y as Hd, z as nl, A as Vd, B as wn, D as jd, G as _d, H as rl, I as Wd, J as Kd, C as Ud, K as il } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-Do0etb2v.js";
7
+ import { F as qd, u as Jd } from "./useDropdownNavigation-BfCXUheD.js";
8
+ import { B as Hi } from "./Button-C1YbM3aI.js";
9
+ import { I as sl } from "./InputField-CS5yFxgB.js";
10
+ import { u as qa, a as Ja, f as Ga, s as Gd } from "./floating-ui.vue-CDo9Kas1.js";
11
11
  import { o as Yd } from "./index-CpKfM262.js";
12
12
  import { N as Xd } from "./arrow-next-BQVCxGb8.js";
13
- import { t as Qd } from "./toString-B5G0JI4B.js";
13
+ import { t as Qd } from "./toString-nVzS6mO9.js";
14
14
  const Zd = (n, e) => (n % e + e) % e, ef = de({
15
15
  name: "BaseModal",
16
16
  components: {
17
- FocusTrap: Jd
17
+ FocusTrap: qd
18
18
  },
19
19
  props: {
20
20
  /**
@@ -128,7 +128,7 @@ const sf = /* @__PURE__ */ Ve(ef, [["render", rf], ["__scopeId", "data-v-7a47e15
128
128
  name: "Modal",
129
129
  components: {
130
130
  BaseModal: sf,
131
- CloseIcon: $d,
131
+ CloseIcon: Fd,
132
132
  FunctionButton: Qs
133
133
  },
134
134
  props: {
@@ -225,7 +225,7 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
225
225
  }));
226
226
  const e = n, t = {
227
227
  default: {
228
- background: Ud,
228
+ background: Kd,
229
229
  foreground: wn,
230
230
  text: wn
231
231
  },
@@ -235,27 +235,27 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
235
235
  text: wn
236
236
  },
237
237
  info: {
238
- background: Kd,
238
+ background: Wd,
239
239
  foreground: rl,
240
240
  text: rl
241
241
  },
242
242
  warning: {
243
- background: Wd,
244
- foreground: _d,
243
+ background: _d,
244
+ foreground: jd,
245
245
  text: wn
246
246
  },
247
247
  error: {
248
- background: jd,
248
+ background: Vd,
249
249
  foreground: nl,
250
250
  text: nl
251
251
  },
252
252
  success: {
253
- background: Vd,
253
+ background: Hd,
254
254
  foreground: tl,
255
255
  text: tl
256
256
  },
257
257
  promotion: {
258
- background: Hd,
258
+ background: $d,
259
259
  foreground: $i,
260
260
  text: $i
261
261
  }
@@ -305,7 +305,7 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
305
305
  class: "badge-text"
306
306
  }, {
307
307
  default: q(() => [
308
- Td(wt(e.badgeText), 1)
308
+ Md(wt(e.badgeText), 1)
309
309
  ]),
310
310
  _: 1
311
311
  })) : ee("", !0)
@@ -348,7 +348,7 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
348
348
  })) : ee("", !0),
349
349
  L("div", kf, [
350
350
  L("div", xf, [
351
- r.item.checkbox ? (N(), ne(qd, {
351
+ r.item.checkbox ? (N(), ne(Ud, {
352
352
  key: 0,
353
353
  "model-value": r.item.checkbox.checked,
354
354
  class: "checkbox"
@@ -379,7 +379,7 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
379
379
  _: 3
380
380
  }, 16, ["class", "to", "href"]));
381
381
  }
382
- }), Xa = /* @__PURE__ */ Ve(wf, [["__scopeId", "data-v-55633a4a"]]);
382
+ }), Ya = /* @__PURE__ */ Ve(wf, [["__scopeId", "data-v-55633a4a"]]);
383
383
  var Sf = 0;
384
384
  function Cf(n) {
385
385
  var e = ++Sf;
@@ -402,16 +402,13 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
402
402
  return !("$el" in g);
403
403
  }
404
404
  const i = n, s = t, o = J([]), l = Fi(i, "positionRelativeToElement"), a = J();
405
- Ed(() => {
405
+ Td(() => {
406
406
  o.value = [];
407
407
  });
408
408
  const { floatingStyles: c } = l.value ? qa(l, a, {
409
409
  strategy: "fixed",
410
410
  placement: "right-start",
411
- middleware: [
412
- Ga({ boundary: i.clippingBoundary }),
413
- Ya({ boundary: i.clippingBoundary })
414
- ],
411
+ middleware: [Ga({ boundary: i.clippingBoundary })],
415
412
  whileElementsMounted: Ja
416
413
  }) : { floatingStyles: null }, u = c, d = ye(() => !!i.maxMenuWidth), f = ye(() => i.items.map((g, S) => ({ item: g, index: S })).filter(({ item: g }) => !g.disabled).map(({ index: g }) => g)), h = (g) => `menu-item-${i.id}-${g}`, p = () => {
417
414
  if (i.focusedItemIndex === null) {
@@ -496,7 +493,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
496
493
  maxMenuWidth: g.maxMenuWidth,
497
494
  focusedItemIndex: g.focusedItemIndex
498
495
  }, () => [
499
- Z(Xa, {
496
+ Z(Ya, {
500
497
  id: h(P),
501
498
  item: x,
502
499
  index: P,
@@ -507,7 +504,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
507
504
  ], 46, Tf))), 128))
508
505
  ], 44, Mf));
509
506
  }
510
- }), Of = /* @__PURE__ */ Ve(Ef, [["__scopeId", "data-v-a034f5d2"]]), Af = /* @__PURE__ */ de({
507
+ }), Of = /* @__PURE__ */ Ve(Ef, [["__scopeId", "data-v-41efc99c"]]), Af = /* @__PURE__ */ de({
511
508
  __name: "MenuItems",
512
509
  props: {
513
510
  items: {},
@@ -538,7 +535,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
538
535
  onKeydown: u,
539
536
  resetNavigation: d,
540
537
  setElement: f
541
- } = Gd({
538
+ } = Jd({
542
539
  disableSpaceToClick: r.disableSpaceToClick,
543
540
  getNextElement: a,
544
541
  close: () => i("close")
@@ -597,7 +594,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
597
594
  maxMenuWidth: j,
598
595
  focusedItemIndex: Ee
599
596
  }) => [
600
- Z(Xa, {
597
+ Z(Ya, {
601
598
  id: T(z),
602
599
  item: x,
603
600
  index: z,
@@ -738,7 +735,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
738
735
  },
739
736
  emits: ["item-click", "toggle", "open", "close"],
740
737
  setup(n) {
741
- const { positioningStrategy: e } = Va(n), t = J(null), r = J(null), i = J(null), s = J(!1), o = Od("shadowRoot", null), l = ye(
738
+ const { positioningStrategy: e } = Va(n), t = J(null), r = J(null), i = J(null), s = J(!1), o = Ed("shadowRoot", null), l = ye(
742
739
  () => o || document?.body
743
740
  ), a = () => {
744
741
  s.value = !1;
@@ -748,7 +745,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
748
745
  s
749
746
  );
750
747
  const c = ye(() => If[n.orientation]), u = ye(() => [
751
- Ya({ mainAxis: n.allowOverflowMainAxis }),
748
+ Gd({ mainAxis: n.allowOverflowMainAxis }),
752
749
  Ga()
753
750
  ]), {
754
751
  floatingStyles: d,
@@ -779,7 +776,10 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
779
776
  computed: {
780
777
  maxHeightStyle() {
781
778
  return {
782
- ...this.maxHeight ? { "max-height": this.maxHeight } : {}
779
+ ...this.maxHeight ? {
780
+ "max-height": this.maxHeight,
781
+ "overflow-y": "auto"
782
+ } : {}
783
783
  };
784
784
  }
785
785
  },
@@ -840,20 +840,21 @@ function Lf(n, e, t, r, i, s) {
840
840
  ]),
841
841
  _: 3
842
842
  }, 8, ["title", "class", "aria-expanded", "disabled", "active", "compact", "onClick"]),
843
- (N(), ne(Ad, {
843
+ (N(), ne(Od, {
844
844
  to: r.shadowRoot || "body",
845
845
  disabled: !t.teleportToBody
846
846
  }, [
847
847
  ja(L("div", {
848
848
  ref: "menuWrapper",
849
- style: xs({ ...r.menuWrapperFloatingStyles, ...s.maxHeightStyle }),
850
- class: $e(["menu-wrapper", { disabled: t.disabled }])
849
+ class: $e(["menu-wrapper", { disabled: t.disabled }]),
850
+ style: xs(r.menuWrapperFloatingStyles)
851
851
  }, [
852
852
  r.expanded ? (N(), ne(l, nr({
853
853
  key: 0,
854
854
  id: t.id,
855
855
  ref: "menuItems",
856
856
  class: ["menu-items", `orient-${t.orientation}`],
857
+ style: { ...s.maxHeightStyle },
857
858
  items: t.items,
858
859
  "max-menu-width": t.maxMenuWidth,
859
860
  "clipping-boundary": r.clippingBoundary
@@ -862,14 +863,14 @@ function Lf(n, e, t, r, i, s) {
862
863
  onItemClick: s.onItemClick,
863
864
  onClose: r.closeMenu,
864
865
  onItemFocused: s.setActiveDescendant
865
- }), null, 16, ["id", "class", "items", "max-menu-width", "clipping-boundary", "onItemClick", "onClose", "onItemFocused"])) : ee("", !0)
866
+ }), null, 16, ["id", "class", "style", "items", "max-menu-width", "clipping-boundary", "onItemClick", "onClose", "onItemFocused"])) : ee("", !0)
866
867
  ], 6), [
867
868
  [_a, r.expanded]
868
869
  ])
869
870
  ], 8, ["to", "disabled"]))
870
871
  ], 42, Rf);
871
872
  }
872
- const Pf = /* @__PURE__ */ Ve(Df, [["render", Lf], ["__scopeId", "data-v-78af385f"]]), Bf = {
873
+ const Pf = /* @__PURE__ */ Ve(Df, [["render", Lf], ["__scopeId", "data-v-7335dd6b"]]), Bf = {
873
874
  xmlns: "http://www.w3.org/2000/svg",
874
875
  fill: "none",
875
876
  stroke: "#000",
@@ -1014,7 +1015,7 @@ const Ff = { render: zf }, $f = {
1014
1015
  [_a, f.isActive.value]
1015
1016
  ]);
1016
1017
  }
1017
- }), Qa = /* @__PURE__ */ Ve(Vf, [["__scopeId", "data-v-5cf1f560"]]);
1018
+ }), Xa = /* @__PURE__ */ Ve(Vf, [["__scopeId", "data-v-5cf1f560"]]);
1018
1019
  function fe(n) {
1019
1020
  this.content = n;
1020
1021
  }
@@ -1115,7 +1116,7 @@ fe.from = function(n) {
1115
1116
  if (n) for (var t in n) e.push(t, n[t]);
1116
1117
  return new fe(e);
1117
1118
  };
1118
- function Za(n, e, t) {
1119
+ function Qa(n, e, t) {
1119
1120
  for (let r = 0; ; r++) {
1120
1121
  if (r == n.childCount || r == e.childCount)
1121
1122
  return n.childCount == e.childCount ? null : t;
@@ -1132,14 +1133,14 @@ function Za(n, e, t) {
1132
1133
  return t;
1133
1134
  }
1134
1135
  if (i.content.size || s.content.size) {
1135
- let o = Za(i.content, s.content, t + 1);
1136
+ let o = Qa(i.content, s.content, t + 1);
1136
1137
  if (o != null)
1137
1138
  return o;
1138
1139
  }
1139
1140
  t += i.nodeSize;
1140
1141
  }
1141
1142
  }
1142
- function ec(n, e, t, r) {
1143
+ function Za(n, e, t, r) {
1143
1144
  for (let i = n.childCount, s = e.childCount; ; ) {
1144
1145
  if (i == 0 || s == 0)
1145
1146
  return i == s ? null : { a: t, b: r };
@@ -1157,7 +1158,7 @@ function ec(n, e, t, r) {
1157
1158
  return { a: t, b: r };
1158
1159
  }
1159
1160
  if (o.content.size || l.content.size) {
1160
- let c = ec(o.content, l.content, t - 1, r - 1);
1161
+ let c = Za(o.content, l.content, t - 1, r - 1);
1161
1162
  if (c)
1162
1163
  return c;
1163
1164
  }
@@ -1326,7 +1327,7 @@ class v {
1326
1327
  fragment differ, or `null` if they are the same.
1327
1328
  */
1328
1329
  findDiffStart(e, t = 0) {
1329
- return Za(this, e, t);
1330
+ return Qa(this, e, t);
1330
1331
  }
1331
1332
  /**
1332
1333
  Find the first position, searching from the end, at which this
@@ -1335,7 +1336,7 @@ class v {
1335
1336
  nodes, an object with two separate positions is returned.
1336
1337
  */
1337
1338
  findDiffEnd(e, t = this.size, r = e.size) {
1338
- return ec(this, e, t, r);
1339
+ return Za(this, e, t, r);
1339
1340
  }
1340
1341
  /**
1341
1342
  Find the index and inner offset corresponding to a given relative
@@ -1579,14 +1580,14 @@ class E {
1579
1580
  @internal
1580
1581
  */
1581
1582
  insertAt(e, t) {
1582
- let r = nc(this.content, e + this.openStart, t);
1583
+ let r = tc(this.content, e + this.openStart, t);
1583
1584
  return r && new E(r, this.openStart, this.openEnd);
1584
1585
  }
1585
1586
  /**
1586
1587
  @internal
1587
1588
  */
1588
1589
  removeBetween(e, t) {
1589
- return new E(tc(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
1590
+ return new E(ec(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
1590
1591
  }
1591
1592
  /**
1592
1593
  Tests whether this slice is equal to another slice.
@@ -1634,7 +1635,7 @@ class E {
1634
1635
  }
1635
1636
  }
1636
1637
  E.empty = new E(v.empty, 0, 0);
1637
- function tc(n, e, t) {
1638
+ function ec(n, e, t) {
1638
1639
  let { index: r, offset: i } = n.findIndex(e), s = n.maybeChild(r), { index: o, offset: l } = n.findIndex(t);
1639
1640
  if (i == e || s.isText) {
1640
1641
  if (l != t && !n.child(o).isText)
@@ -1643,13 +1644,13 @@ function tc(n, e, t) {
1643
1644
  }
1644
1645
  if (r != o)
1645
1646
  throw new RangeError("Removing non-flat range");
1646
- return n.replaceChild(r, s.copy(tc(s.content, e - i - 1, t - i - 1)));
1647
+ return n.replaceChild(r, s.copy(ec(s.content, e - i - 1, t - i - 1)));
1647
1648
  }
1648
- function nc(n, e, t, r) {
1649
+ function tc(n, e, t, r) {
1649
1650
  let { index: i, offset: s } = n.findIndex(e), o = n.maybeChild(i);
1650
1651
  if (s == e || o.isText)
1651
1652
  return n.cut(0, e).append(t).append(n.cut(e));
1652
- let l = nc(o.content, e - s - 1, t);
1653
+ let l = tc(o.content, e - s - 1, t);
1653
1654
  return l && n.replaceChild(i, o.copy(l));
1654
1655
  }
1655
1656
  function jf(n, e, t) {
@@ -1657,12 +1658,12 @@ function jf(n, e, t) {
1657
1658
  throw new Ir("Inserted content deeper than insertion position");
1658
1659
  if (n.depth - t.openStart != e.depth - t.openEnd)
1659
1660
  throw new Ir("Inconsistent open depths");
1660
- return rc(n, e, t, 0);
1661
+ return nc(n, e, t, 0);
1661
1662
  }
1662
- function rc(n, e, t, r) {
1663
+ function nc(n, e, t, r) {
1663
1664
  let i = n.index(r), s = n.node(r);
1664
1665
  if (i == e.index(r) && r < n.depth - t.openStart) {
1665
- let o = rc(n, e, t, r + 1);
1666
+ let o = nc(n, e, t, r + 1);
1666
1667
  return s.copy(s.content.replaceChild(i, o));
1667
1668
  } else if (t.content.size)
1668
1669
  if (!t.openStart && !t.openEnd && n.depth == r && e.depth == r) {
@@ -1670,17 +1671,17 @@ function rc(n, e, t, r) {
1670
1671
  return jt(o, l.cut(0, n.parentOffset).append(t.content).append(l.cut(e.parentOffset)));
1671
1672
  } else {
1672
1673
  let { start: o, end: l } = _f(t, n);
1673
- return jt(s, sc(n, o, l, e, r));
1674
+ return jt(s, ic(n, o, l, e, r));
1674
1675
  }
1675
1676
  else return jt(s, Dr(n, e, r));
1676
1677
  }
1677
- function ic(n, e) {
1678
+ function rc(n, e) {
1678
1679
  if (!e.type.compatibleContent(n.type))
1679
1680
  throw new Ir("Cannot join " + e.type.name + " onto " + n.type.name);
1680
1681
  }
1681
1682
  function ws(n, e, t) {
1682
1683
  let r = n.node(t);
1683
- return ic(r, e.node(t)), r;
1684
+ return rc(r, e.node(t)), r;
1684
1685
  }
1685
1686
  function Vt(n, e) {
1686
1687
  let t = e.length - 1;
@@ -1696,9 +1697,9 @@ function An(n, e, t, r) {
1696
1697
  function jt(n, e) {
1697
1698
  return n.type.checkContent(e), n.copy(e);
1698
1699
  }
1699
- function sc(n, e, t, r, i) {
1700
+ function ic(n, e, t, r, i) {
1700
1701
  let s = n.depth > i && ws(n, e, i + 1), o = r.depth > i && ws(t, r, i + 1), l = [];
1701
- return An(null, n, i, l), s && o && e.index(i) == t.index(i) ? (ic(s, o), Vt(jt(s, sc(n, e, t, r, i + 1)), l)) : (s && Vt(jt(s, Dr(n, e, i + 1)), l), An(e, t, i, l), o && Vt(jt(o, Dr(t, r, i + 1)), l)), An(r, null, i, l), new v(l);
1702
+ return An(null, n, i, l), s && o && e.index(i) == t.index(i) ? (rc(s, o), Vt(jt(s, ic(n, e, t, r, i + 1)), l)) : (s && Vt(jt(s, Dr(n, e, i + 1)), l), An(e, t, i, l), o && Vt(jt(o, Dr(t, r, i + 1)), l)), An(r, null, i, l), new v(l);
1702
1703
  }
1703
1704
  function Dr(n, e, t) {
1704
1705
  let r = [];
@@ -2287,7 +2288,7 @@ let St = class Ss {
2287
2288
  if (this.type.spec.toDebugString)
2288
2289
  return this.type.spec.toDebugString(this);
2289
2290
  let e = this.type.name;
2290
- return this.content.size && (e += "(" + this.content.toStringInner() + ")"), oc(this.marks, e);
2291
+ return this.content.size && (e += "(" + this.content.toStringInner() + ")"), sc(this.marks, e);
2291
2292
  }
2292
2293
  /**
2293
2294
  Get the content match in this node at the given index.
@@ -2391,7 +2392,7 @@ class Lr extends St {
2391
2392
  this.text = r;
2392
2393
  }
2393
2394
  toString() {
2394
- return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : oc(this.marks, JSON.stringify(this.text));
2395
+ return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : sc(this.marks, JSON.stringify(this.text));
2395
2396
  }
2396
2397
  get textContent() {
2397
2398
  return this.text;
@@ -2419,7 +2420,7 @@ class Lr extends St {
2419
2420
  return e.text = this.text, e;
2420
2421
  }
2421
2422
  }
2422
- function oc(n, e) {
2423
+ function sc(n, e) {
2423
2424
  for (let t = n.length - 1; t >= 0; t--)
2424
2425
  e = n[t].type.name + "(" + e + ")";
2425
2426
  return e;
@@ -2438,7 +2439,7 @@ class qt {
2438
2439
  let r = new qf(e, t);
2439
2440
  if (r.next == null)
2440
2441
  return qt.empty;
2441
- let i = lc(r);
2442
+ let i = oc(r);
2442
2443
  r.next && r.err("Unexpected trailing text");
2443
2444
  let s = eh(Zf(i));
2444
2445
  return th(s, r), s;
@@ -2601,7 +2602,7 @@ class qf {
2601
2602
  throw new SyntaxError(e + " (in content expression '" + this.string + "')");
2602
2603
  }
2603
2604
  }
2604
- function lc(n) {
2605
+ function oc(n) {
2605
2606
  let e = [];
2606
2607
  do
2607
2608
  e.push(Jf(n));
@@ -2652,7 +2653,7 @@ function Xf(n, e) {
2652
2653
  }
2653
2654
  function Qf(n) {
2654
2655
  if (n.eat("(")) {
2655
- let e = lc(n);
2656
+ let e = oc(n);
2656
2657
  return n.eat(")") || n.err("Missing closing paren"), e;
2657
2658
  } else if (/\W/.test(n.next))
2658
2659
  n.err("Unexpected token '" + n.next + "'");
@@ -2715,12 +2716,12 @@ function Zf(n) {
2715
2716
  }
2716
2717
  }
2717
2718
  }
2718
- function ac(n, e) {
2719
+ function lc(n, e) {
2719
2720
  return e - n;
2720
2721
  }
2721
2722
  function cl(n, e) {
2722
2723
  let t = [];
2723
- return r(e), t.sort(ac);
2724
+ return r(e), t.sort(lc);
2724
2725
  function r(i) {
2725
2726
  let s = n[i];
2726
2727
  if (s.length == 1 && !s[0].term)
@@ -2751,7 +2752,7 @@ function eh(n) {
2751
2752
  });
2752
2753
  let s = e[r.join(",")] = new qt(r.indexOf(n.length - 1) > -1);
2753
2754
  for (let o = 0; o < i.length; o++) {
2754
- let l = i[o][1].sort(ac);
2755
+ let l = i[o][1].sort(lc);
2755
2756
  s.next.push({ type: i[o][0], next: e[l.join(",")] || t(l) });
2756
2757
  }
2757
2758
  return s;
@@ -2767,7 +2768,7 @@ function th(n, e) {
2767
2768
  s && e.err("Only non-generatable nodes (" + o.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
2768
2769
  }
2769
2770
  }
2770
- function cc(n) {
2771
+ function ac(n) {
2771
2772
  let e = /* @__PURE__ */ Object.create(null);
2772
2773
  for (let t in n) {
2773
2774
  let r = n[t];
@@ -2777,7 +2778,7 @@ function cc(n) {
2777
2778
  }
2778
2779
  return e;
2779
2780
  }
2780
- function uc(n, e) {
2781
+ function cc(n, e) {
2781
2782
  let t = /* @__PURE__ */ Object.create(null);
2782
2783
  for (let r in n) {
2783
2784
  let i = e && e[r];
@@ -2792,7 +2793,7 @@ function uc(n, e) {
2792
2793
  }
2793
2794
  return t;
2794
2795
  }
2795
- function dc(n, e, t, r) {
2796
+ function uc(n, e, t, r) {
2796
2797
  for (let i in e)
2797
2798
  if (!(i in n))
2798
2799
  throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${i}`);
@@ -2801,19 +2802,19 @@ function dc(n, e, t, r) {
2801
2802
  s.validate && s.validate(e[i]);
2802
2803
  }
2803
2804
  }
2804
- function fc(n, e) {
2805
+ function dc(n, e) {
2805
2806
  let t = /* @__PURE__ */ Object.create(null);
2806
2807
  if (e)
2807
2808
  for (let r in e)
2808
2809
  t[r] = new rh(n, r, e[r]);
2809
2810
  return t;
2810
2811
  }
2811
- let ul = class hc {
2812
+ let ul = class fc {
2812
2813
  /**
2813
2814
  @internal
2814
2815
  */
2815
2816
  constructor(e, t, r) {
2816
- this.name = e, this.schema = t, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = fc(e, r.attrs), this.defaultAttrs = cc(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
2817
+ this.name = e, this.schema = t, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = dc(e, r.attrs), this.defaultAttrs = ac(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
2817
2818
  }
2818
2819
  /**
2819
2820
  True if this is an inline type.
@@ -2874,7 +2875,7 @@ let ul = class hc {
2874
2875
  @internal
2875
2876
  */
2876
2877
  computeAttrs(e) {
2877
- return !e && this.defaultAttrs ? this.defaultAttrs : uc(this.attrs, e);
2878
+ return !e && this.defaultAttrs ? this.defaultAttrs : cc(this.attrs, e);
2878
2879
  }
2879
2880
  /**
2880
2881
  Create a `Node` of this type. The given attributes are
@@ -2941,7 +2942,7 @@ let ul = class hc {
2941
2942
  @internal
2942
2943
  */
2943
2944
  checkAttrs(e) {
2944
- dc(this.attrs, e, "node", this.name);
2945
+ uc(this.attrs, e, "node", this.name);
2945
2946
  }
2946
2947
  /**
2947
2948
  Check whether the given mark type is allowed in this node.
@@ -2976,7 +2977,7 @@ let ul = class hc {
2976
2977
  */
2977
2978
  static compile(e, t) {
2978
2979
  let r = /* @__PURE__ */ Object.create(null);
2979
- e.forEach((s, o) => r[s] = new hc(s, t, o));
2980
+ e.forEach((s, o) => r[s] = new fc(s, t, o));
2980
2981
  let i = t.spec.topNode || "doc";
2981
2982
  if (!r[i])
2982
2983
  throw new RangeError("Schema is missing its top node type ('" + i + "')");
@@ -3008,8 +3009,8 @@ class ki {
3008
3009
  @internal
3009
3010
  */
3010
3011
  constructor(e, t, r, i) {
3011
- this.name = e, this.rank = t, this.schema = r, this.spec = i, this.attrs = fc(e, i.attrs), this.excluded = null;
3012
- let s = cc(this.attrs);
3012
+ this.name = e, this.rank = t, this.schema = r, this.spec = i, this.attrs = dc(e, i.attrs), this.excluded = null;
3013
+ let s = ac(this.attrs);
3013
3014
  this.instance = s ? new K(this, s) : null;
3014
3015
  }
3015
3016
  /**
@@ -3018,7 +3019,7 @@ class ki {
3018
3019
  they have defaults, will be added.
3019
3020
  */
3020
3021
  create(e = null) {
3021
- return !e && this.instance ? this.instance : new K(this, uc(this.attrs, e));
3022
+ return !e && this.instance ? this.instance : new K(this, cc(this.attrs, e));
3022
3023
  }
3023
3024
  /**
3024
3025
  @internal
@@ -3048,7 +3049,7 @@ class ki {
3048
3049
  @internal
3049
3050
  */
3050
3051
  checkAttrs(e) {
3051
- dc(this.attrs, e, "mark", this.name);
3052
+ uc(this.attrs, e, "mark", this.name);
3052
3053
  }
3053
3054
  /**
3054
3055
  Queries whether a given mark type is
@@ -3058,7 +3059,7 @@ class ki {
3058
3059
  return this.excluded.indexOf(e) > -1;
3059
3060
  }
3060
3061
  }
3061
- class pc {
3062
+ class hc {
3062
3063
  /**
3063
3064
  Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
3064
3065
  */
@@ -3264,7 +3265,7 @@ class Ct {
3264
3265
  return e.cached.domParser || (e.cached.domParser = new Ct(e, Ct.schemaRules(e)));
3265
3266
  }
3266
3267
  }
3267
- const mc = {
3268
+ const pc = {
3268
3269
  address: !0,
3269
3270
  article: !0,
3270
3271
  aside: !0,
@@ -3304,7 +3305,7 @@ const mc = {
3304
3305
  script: !0,
3305
3306
  style: !0,
3306
3307
  title: !0
3307
- }, gc = { ol: !0, ul: !0 }, jn = 1, Cs = 2, Nn = 4;
3308
+ }, mc = { ol: !0, ul: !0 }, jn = 1, Cs = 2, Nn = 4;
3308
3309
  function fl(n, e, t) {
3309
3310
  return e != null ? (e ? jn : 0) | (e === "full" ? Cs : 0) : n && n.whitespace == "pre" ? jn | Cs : t & ~Nn;
3310
3311
  }
@@ -3338,7 +3339,7 @@ class hr {
3338
3339
  return !e && this.match && (t = t.append(this.match.fillBefore(v.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
3339
3340
  }
3340
3341
  inlineContext(e) {
3341
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !mc.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
3342
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !pc.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
3342
3343
  }
3343
3344
  }
3344
3345
  class hl {
@@ -3376,14 +3377,14 @@ class hl {
3376
3377
  let i = this.localPreserveWS, s = this.top;
3377
3378
  (e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
3378
3379
  let o = e.nodeName.toLowerCase(), l;
3379
- gc.hasOwnProperty(o) && this.parser.normalizeLists && lh(e);
3380
+ mc.hasOwnProperty(o) && this.parser.normalizeLists && lh(e);
3380
3381
  let a = this.options.ruleFromNode && this.options.ruleFromNode(e) || (l = this.parser.matchTag(e, this, r));
3381
3382
  e: if (a ? a.ignore : oh.hasOwnProperty(o))
3382
3383
  this.findInside(e), this.ignoreFallback(e, t);
3383
3384
  else if (!a || a.skip || a.closeParent) {
3384
3385
  a && a.closeParent ? this.open = Math.max(0, this.open - 1) : a && a.skip.nodeType && (e = a.skip);
3385
3386
  let c, u = this.needsBlock;
3386
- if (mc.hasOwnProperty(o))
3387
+ if (pc.hasOwnProperty(o))
3387
3388
  s.content.length && s.content[0].isInline && this.open && (this.open--, s = this.top), c = !0, s.type || (this.needsBlock = !0);
3388
3389
  else if (!e.firstChild) {
3389
3390
  this.leafFallback(e, t);
@@ -3618,7 +3619,7 @@ class hl {
3618
3619
  function lh(n) {
3619
3620
  for (let e = n.firstChild, t = null; e; e = e.nextSibling) {
3620
3621
  let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
3621
- r && gc.hasOwnProperty(r) && t ? (t.appendChild(e), e = t) : r == "li" ? t = e : r && (t = null);
3622
+ r && mc.hasOwnProperty(r) && t ? (t.appendChild(e), e = t) : r == "li" ? t = e : r && (t = null);
3622
3623
  }
3623
3624
  }
3624
3625
  function ah(n, e) {
@@ -3824,17 +3825,17 @@ function Cr(n, e, t, r) {
3824
3825
  }
3825
3826
  return { dom: a, contentDOM: l };
3826
3827
  }
3827
- const yc = 65535, bc = Math.pow(2, 16);
3828
+ const gc = 65535, yc = Math.pow(2, 16);
3828
3829
  function dh(n, e) {
3829
- return n + e * bc;
3830
+ return n + e * yc;
3830
3831
  }
3831
3832
  function bl(n) {
3832
- return n & yc;
3833
+ return n & gc;
3833
3834
  }
3834
3835
  function fh(n) {
3835
- return (n - (n & yc)) / bc;
3836
+ return (n - (n & gc)) / yc;
3836
3837
  }
3837
- const kc = 1, xc = 2, Mr = 4, vc = 8;
3838
+ const bc = 1, kc = 2, Mr = 4, xc = 8;
3838
3839
  class Ms {
3839
3840
  /**
3840
3841
  @internal
@@ -3848,19 +3849,19 @@ class Ms {
3848
3849
  argument from the document.
3849
3850
  */
3850
3851
  get deleted() {
3851
- return (this.delInfo & vc) > 0;
3852
+ return (this.delInfo & xc) > 0;
3852
3853
  }
3853
3854
  /**
3854
3855
  Tells you whether the token before the mapped position was deleted.
3855
3856
  */
3856
3857
  get deletedBefore() {
3857
- return (this.delInfo & (kc | Mr)) > 0;
3858
+ return (this.delInfo & (bc | Mr)) > 0;
3858
3859
  }
3859
3860
  /**
3860
3861
  True when the token after the mapped position was deleted.
3861
3862
  */
3862
3863
  get deletedAfter() {
3863
- return (this.delInfo & (xc | Mr)) > 0;
3864
+ return (this.delInfo & (kc | Mr)) > 0;
3864
3865
  }
3865
3866
  /**
3866
3867
  Tells whether any of the steps mapped through deletes across the
@@ -3911,8 +3912,8 @@ class Oe {
3911
3912
  let f = c ? e == a ? -1 : e == d ? 1 : t : t, h = a + i + (f < 0 ? 0 : u);
3912
3913
  if (r)
3913
3914
  return h;
3914
- let p = e == (t < 0 ? a : d) ? null : dh(l / 3, e - a), m = e == a ? xc : e == d ? kc : Mr;
3915
- return (t < 0 ? e != a : e != d) && (m |= vc), new Ms(h, m, p);
3915
+ let p = e == (t < 0 ? a : d) ? null : dh(l / 3, e - a), m = e == a ? kc : e == d ? bc : Mr;
3916
+ return (t < 0 ? e != a : e != d) && (m |= xc), new Ms(h, m, p);
3916
3917
  }
3917
3918
  i += u - c;
3918
3919
  }
@@ -4575,13 +4576,13 @@ function xh(n, e, t, r, i) {
4575
4576
  let h = r.whitespace == "pre", p = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
4576
4577
  h && !p ? c = !1 : !h && p && (c = !0);
4577
4578
  }
4578
- c === !1 && Sc(n, o, l, s), eo(n, n.mapping.slice(s).map(l, 1), r, void 0, c === null);
4579
+ c === !1 && wc(n, o, l, s), eo(n, n.mapping.slice(s).map(l, 1), r, void 0, c === null);
4579
4580
  let u = n.mapping.slice(s), d = u.map(l, 1), f = u.map(l + o.nodeSize, 1);
4580
- return n.step(new le(d, f, d + 1, f - 1, new E(v.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), c === !0 && wc(n, o, l, s), !1;
4581
+ return n.step(new le(d, f, d + 1, f - 1, new E(v.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), c === !0 && vc(n, o, l, s), !1;
4581
4582
  }
4582
4583
  });
4583
4584
  }
4584
- function wc(n, e, t, r) {
4585
+ function vc(n, e, t, r) {
4585
4586
  e.forEach((i, s) => {
4586
4587
  if (i.isText) {
4587
4588
  let o, l = /\r?\n|\r/g;
@@ -4592,7 +4593,7 @@ function wc(n, e, t, r) {
4592
4593
  }
4593
4594
  });
4594
4595
  }
4595
- function Sc(n, e, t, r) {
4596
+ function wc(n, e, t, r) {
4596
4597
  e.forEach((i, s) => {
4597
4598
  if (i.type == i.type.schema.linebreakReplacement) {
4598
4599
  let o = n.mapping.slice(r).map(t + 1 + s);
@@ -4645,7 +4646,7 @@ function Sh(n, e, t = 1, r) {
4645
4646
  }
4646
4647
  function At(n, e) {
4647
4648
  let t = n.resolve(e), r = t.index();
4648
- return Cc(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
4649
+ return Sc(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
4649
4650
  }
4650
4651
  function Ch(n, e) {
4651
4652
  e.content.size || n.type.compatibleContent(e.type);
@@ -4657,14 +4658,14 @@ function Ch(n, e) {
4657
4658
  }
4658
4659
  return t.validEnd;
4659
4660
  }
4660
- function Cc(n, e) {
4661
+ function Sc(n, e) {
4661
4662
  return !!(n && e && !n.isLeaf && Ch(n, e));
4662
4663
  }
4663
4664
  function xi(n, e, t = -1) {
4664
4665
  let r = n.resolve(e);
4665
4666
  for (let i = r.depth; ; i--) {
4666
4667
  let s, o, l = r.index(i);
4667
- if (i == r.depth ? (s = r.nodeBefore, o = r.nodeAfter) : t > 0 ? (s = r.node(i + 1), l++, o = r.node(i).maybeChild(l)) : (s = r.node(i).maybeChild(l - 1), o = r.node(i + 1)), s && !s.isTextblock && Cc(s, o) && r.node(i).canReplace(l, l + 1))
4668
+ if (i == r.depth ? (s = r.nodeBefore, o = r.nodeAfter) : t > 0 ? (s = r.node(i + 1), l++, o = r.node(i).maybeChild(l)) : (s = r.node(i).maybeChild(l - 1), o = r.node(i + 1)), s && !s.isTextblock && Sc(s, o) && r.node(i).canReplace(l, l + 1))
4668
4669
  return e;
4669
4670
  if (i == 0)
4670
4671
  break;
@@ -4680,13 +4681,13 @@ function Mh(n, e, t) {
4680
4681
  let l = n.steps.length;
4681
4682
  if (r === !1) {
4682
4683
  let u = n.doc.resolve(e + t);
4683
- Sc(n, u.node(), u.before(), l);
4684
+ wc(n, u.node(), u.before(), l);
4684
4685
  }
4685
4686
  o.inlineContent && eo(n, e + t - 1, o, s.node().contentMatchAt(s.index()), r == null);
4686
4687
  let a = n.mapping.slice(l), c = a.map(e - t);
4687
4688
  if (n.step(new oe(c, a.map(e + t, -1), E.empty, !0)), r === !0) {
4688
4689
  let u = n.doc.resolve(c);
4689
- wc(n, u.node(), u.before(), n.steps.length);
4690
+ vc(n, u.node(), u.before(), n.steps.length);
4690
4691
  }
4691
4692
  return n;
4692
4693
  }
@@ -4712,7 +4713,7 @@ function Th(n, e, t) {
4712
4713
  }
4713
4714
  return null;
4714
4715
  }
4715
- function Mc(n, e, t) {
4716
+ function Cc(n, e, t) {
4716
4717
  let r = n.resolve(e);
4717
4718
  if (!t.content.size)
4718
4719
  return e;
@@ -4737,9 +4738,9 @@ function vi(n, e, t = e, r = E.empty) {
4737
4738
  if (e == t && !r.size)
4738
4739
  return null;
4739
4740
  let i = n.resolve(e), s = n.resolve(t);
4740
- return Tc(i, s, r) ? new oe(e, t, r) : new Eh(i, s, r).fit();
4741
+ return Mc(i, s, r) ? new oe(e, t, r) : new Eh(i, s, r).fit();
4741
4742
  }
4742
- function Tc(n, e, t) {
4743
+ function Mc(n, e, t) {
4743
4744
  return !t.openStart && !t.openEnd && n.start() == e.start() && n.parent.canReplace(n.index(), e.index(), t.content);
4744
4745
  }
4745
4746
  class Eh {
@@ -4833,7 +4834,7 @@ class Eh {
4833
4834
  let m = l.child(c), y = d.matchType(m.type);
4834
4835
  if (!y)
4835
4836
  break;
4836
- c++, (c > 1 || a == 0 || m.content.size) && (d = y, u.push(Ec(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
4837
+ c++, (c > 1 || a == 0 || m.content.size) && (d = y, u.push(Tc(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
4837
4838
  }
4838
4839
  let p = c == l.childCount;
4839
4840
  p || (h = -1), this.placed = Tn(this.placed, t, v.from(u)), this.frontier[t].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
@@ -4900,11 +4901,11 @@ function Wi(n, e) {
4900
4901
  n = n.firstChild.content;
4901
4902
  return n;
4902
4903
  }
4903
- function Ec(n, e, t) {
4904
+ function Tc(n, e, t) {
4904
4905
  if (e <= 0)
4905
4906
  return n;
4906
4907
  let r = n.content;
4907
- return e > 1 && (r = r.replaceChild(0, Ec(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(v.empty, !0)))), n.copy(r);
4908
+ return e > 1 && (r = r.replaceChild(0, Tc(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(v.empty, !0)))), n.copy(r);
4908
4909
  }
4909
4910
  function Ki(n, e, t, r, i) {
4910
4911
  let s = n.node(e), o = i ? n.indexAfter(e) : n.index(e);
@@ -4926,9 +4927,9 @@ function Nh(n, e, t, r) {
4926
4927
  if (!r.size)
4927
4928
  return n.deleteRange(e, t);
4928
4929
  let i = n.doc.resolve(e), s = n.doc.resolve(t);
4929
- if (Tc(i, s, r))
4930
+ if (Mc(i, s, r))
4930
4931
  return n.step(new oe(e, t, r));
4931
- let o = Ac(i, n.doc.resolve(t));
4932
+ let o = Oc(i, n.doc.resolve(t));
4932
4933
  o[o.length - 1] == 0 && o.pop();
4933
4934
  let l = -(i.depth + 1);
4934
4935
  o.unshift(l);
@@ -4960,7 +4961,7 @@ function Nh(n, e, t, r) {
4960
4961
  y < 0 && (b = !1, y = -y);
4961
4962
  let C = i.node(y - 1), M = i.index(y - 1);
4962
4963
  if (C.canReplaceWith(M, M, p.type, p.marks))
4963
- return n.replace(i.before(y), b ? s.after(y) : t, new E(Oc(r.content, 0, r.openStart, h), h, r.openEnd));
4964
+ return n.replace(i.before(y), b ? s.after(y) : t, new E(Ec(r.content, 0, r.openStart, h), h, r.openEnd));
4964
4965
  }
4965
4966
  }
4966
4967
  let d = n.steps.length;
@@ -4969,10 +4970,10 @@ function Nh(n, e, t, r) {
4969
4970
  h < 0 || (e = i.before(h), t = s.after(h));
4970
4971
  }
4971
4972
  }
4972
- function Oc(n, e, t, r, i) {
4973
+ function Ec(n, e, t, r, i) {
4973
4974
  if (e < t) {
4974
4975
  let s = n.firstChild;
4975
- n = n.replaceChild(0, s.copy(Oc(s.content, e + 1, t, r, s)));
4976
+ n = n.replaceChild(0, s.copy(Ec(s.content, e + 1, t, r, s)));
4976
4977
  }
4977
4978
  if (e > r) {
4978
4979
  let s = i.contentMatchAt(0), o = s.fillBefore(n).append(n);
@@ -4988,7 +4989,7 @@ function Ih(n, e, t, r) {
4988
4989
  n.replaceRange(e, t, new E(v.from(r), 0, 0));
4989
4990
  }
4990
4991
  function Dh(n, e, t) {
4991
- let r = n.doc.resolve(e), i = n.doc.resolve(t), s = Ac(r, i);
4992
+ let r = n.doc.resolve(e), i = n.doc.resolve(t), s = Oc(r, i);
4992
4993
  for (let o = 0; o < s.length; o++) {
4993
4994
  let l = s[o], a = o == s.length - 1;
4994
4995
  if (a && l == 0 || r.node(l).type.contentMatch.validEnd)
@@ -5001,7 +5002,7 @@ function Dh(n, e, t) {
5001
5002
  return n.delete(r.before(o), t);
5002
5003
  n.delete(e, t);
5003
5004
  }
5004
- function Ac(n, e) {
5005
+ function Oc(n, e) {
5005
5006
  let t = [], r = Math.min(n.depth, e.depth);
5006
5007
  for (let i = r; i >= 0; i--) {
5007
5008
  let s = n.start(i);
@@ -5092,7 +5093,7 @@ pn = function n(e) {
5092
5093
  pn.prototype = Object.create(Error.prototype);
5093
5094
  pn.prototype.constructor = pn;
5094
5095
  pn.prototype.name = "TransformError";
5095
- class Nc {
5096
+ class Ac {
5096
5097
  /**
5097
5098
  Create a transform that starts with the given document.
5098
5099
  */
@@ -5713,7 +5714,7 @@ function wl(n, e, t) {
5713
5714
  }), n.setSelection(B.near(n.doc.resolve(o), t));
5714
5715
  }
5715
5716
  const Sl = 1, pr = 2, Cl = 4;
5716
- class Ph extends Nc {
5717
+ class Ph extends Ac {
5717
5718
  /**
5718
5719
  @internal
5719
5720
  */
@@ -6080,10 +6081,10 @@ class un {
6080
6081
  }), s;
6081
6082
  }
6082
6083
  }
6083
- function Ic(n, e, t) {
6084
+ function Nc(n, e, t) {
6084
6085
  for (let r in n) {
6085
6086
  let i = n[r];
6086
- i instanceof Function ? i = i.bind(e) : r == "handleDOMEvents" && (i = Ic(i, e, {})), t[r] = i;
6087
+ i instanceof Function ? i = i.bind(e) : r == "handleDOMEvents" && (i = Nc(i, e, {})), t[r] = i;
6087
6088
  }
6088
6089
  return t;
6089
6090
  }
@@ -6092,7 +6093,7 @@ class Q {
6092
6093
  Create a plugin.
6093
6094
  */
6094
6095
  constructor(e) {
6095
- this.spec = e, this.props = {}, e.props && Ic(e.props, this, this.props), this.key = e.key ? e.key.key : Dc("plugin");
6096
+ this.spec = e, this.props = {}, e.props && Nc(e.props, this, this.props), this.key = e.key ? e.key.key : Ic("plugin");
6096
6097
  }
6097
6098
  /**
6098
6099
  Extract the plugin's state field from an editor state.
@@ -6102,7 +6103,7 @@ class Q {
6102
6103
  }
6103
6104
  }
6104
6105
  const Ji = /* @__PURE__ */ Object.create(null);
6105
- function Dc(n) {
6106
+ function Ic(n) {
6106
6107
  return n in Ji ? n + "$" + ++Ji[n] : (Ji[n] = 0, n + "$");
6107
6108
  }
6108
6109
  class me {
@@ -6110,7 +6111,7 @@ class me {
6110
6111
  Create a plugin key.
6111
6112
  */
6112
6113
  constructor(e = "key") {
6113
- this.key = Dc(e);
6114
+ this.key = Ic(e);
6114
6115
  }
6115
6116
  /**
6116
6117
  Get the active plugin with this key, if any, from an editor
@@ -6239,9 +6240,9 @@ function _h(n, e, t) {
6239
6240
  return { node: r.startContainer, offset: Math.min(ze(r.startContainer), r.startOffset) };
6240
6241
  }
6241
6242
  }
6242
- const Xe = typeof navigator < "u" ? navigator : null, El = typeof document < "u" ? document : null, Nt = Xe && Xe.userAgent || "", Os = /Edge\/(\d+)/.exec(Nt), Rc = /MSIE \d/.exec(Nt), As = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nt), Me = !!(Rc || As || Os), Mt = Rc ? document.documentMode : As ? +As[1] : Os ? +Os[1] : 0, _e = !Me && /gecko\/(\d+)/i.test(Nt);
6243
+ const Xe = typeof navigator < "u" ? navigator : null, El = typeof document < "u" ? document : null, Nt = Xe && Xe.userAgent || "", Os = /Edge\/(\d+)/.exec(Nt), Dc = /MSIE \d/.exec(Nt), As = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nt), Me = !!(Dc || As || Os), Mt = Dc ? document.documentMode : As ? +As[1] : Os ? +Os[1] : 0, _e = !Me && /gecko\/(\d+)/i.test(Nt);
6243
6244
  _e && +(/Firefox\/(\d+)/.exec(Nt) || [0, 0])[1];
6244
- const Ns = !Me && /Chrome\/(\d+)/.exec(Nt), be = !!Ns, Lc = Ns ? +Ns[1] : 0, ve = !Me && !!Xe && /Apple Computer/.test(Xe.vendor), gn = ve && (/Mobile\/\w+/.test(Nt) || !!Xe && Xe.maxTouchPoints > 2), Be = gn || (Xe ? /Mac/.test(Xe.platform) : !1), Wh = Xe ? /Win/.test(Xe.platform) : !1, at = /Android \d/.test(Nt), or = !!El && "webkitFontSmoothing" in El.documentElement.style, Kh = or ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6245
+ const Ns = !Me && /Chrome\/(\d+)/.exec(Nt), be = !!Ns, Rc = Ns ? +Ns[1] : 0, ve = !Me && !!Xe && /Apple Computer/.test(Xe.vendor), gn = ve && (/Mobile\/\w+/.test(Nt) || !!Xe && Xe.maxTouchPoints > 2), Be = gn || (Xe ? /Mac/.test(Xe.platform) : !1), Wh = Xe ? /Win/.test(Xe.platform) : !1, at = /Android \d/.test(Nt), or = !!El && "webkitFontSmoothing" in El.documentElement.style, Kh = or ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6245
6246
  function Uh(n) {
6246
6247
  let e = n.defaultView && n.defaultView.visualViewport;
6247
6248
  return e ? {
@@ -6303,9 +6304,9 @@ function Jh(n) {
6303
6304
  break;
6304
6305
  }
6305
6306
  }
6306
- return { refDOM: r, refTop: i, stack: Pc(n.dom) };
6307
+ return { refDOM: r, refTop: i, stack: Lc(n.dom) };
6307
6308
  }
6308
- function Pc(n) {
6309
+ function Lc(n) {
6309
6310
  let e = [], t = n.ownerDocument;
6310
6311
  for (let r = n; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), n != t); r = mn(r))
6311
6312
  ;
@@ -6313,9 +6314,9 @@ function Pc(n) {
6313
6314
  }
6314
6315
  function Gh({ refDOM: n, refTop: e, stack: t }) {
6315
6316
  let r = n ? n.getBoundingClientRect().top : 0;
6316
- Bc(t, r == 0 ? 0 : r - e);
6317
+ Pc(t, r == 0 ? 0 : r - e);
6317
6318
  }
6318
- function Bc(n, e) {
6319
+ function Pc(n, e) {
6319
6320
  for (let t = 0; t < n.length; t++) {
6320
6321
  let { dom: r, top: i, left: s } = n[t];
6321
6322
  r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != s && (r.scrollLeft = s);
@@ -6327,14 +6328,14 @@ function Yh(n) {
6327
6328
  return n.setActive();
6328
6329
  if (nn)
6329
6330
  return n.focus(nn);
6330
- let e = Pc(n);
6331
+ let e = Lc(n);
6331
6332
  n.focus(nn == null ? {
6332
6333
  get preventScroll() {
6333
6334
  return nn = { preventScroll: !0 }, !0;
6334
6335
  }
6335
- } : void 0), nn || (nn = !1, Bc(e, 0));
6336
+ } : void 0), nn || (nn = !1, Pc(e, 0));
6336
6337
  }
6337
- function zc(n, e) {
6338
+ function Bc(n, e) {
6338
6339
  let t, r = 2e8, i, s = 0, o = e.top, l = e.top, a, c;
6339
6340
  for (let u = n.firstChild, d = 0; u; u = u.nextSibling, d++) {
6340
6341
  let f;
@@ -6360,7 +6361,7 @@ function zc(n, e) {
6360
6361
  !t && (e.left >= p.right && e.top >= p.top || e.left >= p.left && e.top >= p.bottom) && (s = d + 1);
6361
6362
  }
6362
6363
  }
6363
- return !t && a && (t = a, i = c, r = 0), t && t.nodeType == 3 ? Xh(t, i) : !t || r && t.nodeType == 1 ? { node: n, offset: s } : zc(t, i);
6364
+ return !t && a && (t = a, i = c, r = 0), t && t.nodeType == 3 ? Xh(t, i) : !t || r && t.nodeType == 1 ? { node: n, offset: s } : Bc(t, i);
6364
6365
  }
6365
6366
  function Xh(n, e) {
6366
6367
  let t = n.nodeValue.length, r = document.createRange();
@@ -6380,7 +6381,7 @@ function Qh(n, e) {
6380
6381
  return t && /^li$/i.test(t.nodeName) && e.left < n.getBoundingClientRect().left ? t : n;
6381
6382
  }
6382
6383
  function Zh(n, e, t) {
6383
- let { node: r, offset: i } = zc(e, t), s = -1;
6384
+ let { node: r, offset: i } = Bc(e, t), s = -1;
6384
6385
  if (r.nodeType == 1 && !r.firstChild) {
6385
6386
  let o = r.getBoundingClientRect();
6386
6387
  s = o.left != o.right && t.left > (o.left + o.right) / 2 ? 1 : -1;
@@ -6400,7 +6401,7 @@ function ep(n, e, t, r) {
6400
6401
  }
6401
6402
  return i > -1 ? i : n.docView.posFromDOM(e, t, -1);
6402
6403
  }
6403
- function Fc(n, e, t) {
6404
+ function zc(n, e, t) {
6404
6405
  let r = n.childNodes.length;
6405
6406
  if (r && t.top < t.bottom)
6406
6407
  for (let i = Math.max(0, Math.min(r - 1, Math.floor(r * (e.top - t.top) / (t.bottom - t.top)) - 2)), s = i; ; ) {
@@ -6410,7 +6411,7 @@ function Fc(n, e, t) {
6410
6411
  for (let a = 0; a < l.length; a++) {
6411
6412
  let c = l[a];
6412
6413
  if (ro(e, c))
6413
- return Fc(o, e, c);
6414
+ return zc(o, e, c);
6414
6415
  }
6415
6416
  }
6416
6417
  if ((s = (s + 1) % r) == i)
@@ -6424,7 +6425,7 @@ function tp(n, e) {
6424
6425
  let o = (n.root.elementFromPoint ? n.root : t).elementFromPoint(e.left, e.top), l;
6425
6426
  if (!o || !n.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
6426
6427
  let c = n.dom.getBoundingClientRect();
6427
- if (!ro(e, c) || (o = Fc(n.dom, e, c), !o))
6428
+ if (!ro(e, c) || (o = zc(n.dom, e, c), !o))
6428
6429
  return null;
6429
6430
  }
6430
6431
  if (ve)
@@ -6455,7 +6456,7 @@ function ht(n, e) {
6455
6456
  return Array.prototype.find.call(t, Al) || n.getBoundingClientRect();
6456
6457
  }
6457
6458
  const np = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
6458
- function $c(n, e, t) {
6459
+ function Fc(n, e, t) {
6459
6460
  let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = or || _e;
6460
6461
  if (r.nodeType == 3)
6461
6462
  if (o && (np.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
@@ -6513,7 +6514,7 @@ function Gi(n, e) {
6513
6514
  let t = e ? n.top : n.bottom;
6514
6515
  return { top: t, bottom: t, left: n.left, right: n.right };
6515
6516
  }
6516
- function Hc(n, e, t) {
6517
+ function $c(n, e, t) {
6517
6518
  let r = n.state, i = n.root.activeElement;
6518
6519
  r != e && n.updateState(e), i != n.dom && n.focus();
6519
6520
  try {
@@ -6524,7 +6525,7 @@ function Hc(n, e, t) {
6524
6525
  }
6525
6526
  function rp(n, e, t) {
6526
6527
  let r = e.selection, i = t == "up" ? r.$from : r.$to;
6527
- return Hc(n, e, () => {
6528
+ return $c(n, e, () => {
6528
6529
  let { node: s } = n.docView.domFromPos(i.pos, t == "up" ? -1 : 1);
6529
6530
  for (; ; ) {
6530
6531
  let l = n.docView.nearestDesc(s, !0);
@@ -6536,7 +6537,7 @@ function rp(n, e, t) {
6536
6537
  }
6537
6538
  s = l.dom.parentNode;
6538
6539
  }
6539
- let o = $c(n, i.pos, 1);
6540
+ let o = Fc(n, i.pos, 1);
6540
6541
  for (let l = s.firstChild; l; l = l.nextSibling) {
6541
6542
  let a;
6542
6543
  if (l.nodeType == 1)
@@ -6560,7 +6561,7 @@ function sp(n, e, t) {
6560
6561
  if (!r.parent.isTextblock)
6561
6562
  return !1;
6562
6563
  let i = r.parentOffset, s = !i, o = i == r.parent.content.size, l = n.domSelection();
6563
- return l ? !ip.test(r.parent.textContent) || !l.modify ? t == "left" || t == "backward" ? s : o : Hc(n, e, () => {
6564
+ return l ? !ip.test(r.parent.textContent) || !l.modify ? t == "left" || t == "backward" ? s : o : $c(n, e, () => {
6564
6565
  let { focusNode: a, focusOffset: c, anchorNode: u, anchorOffset: d } = n.domSelectionRange(), f = l.caretBidiLevel;
6565
6566
  l.modify("move", t, "character");
6566
6567
  let h = r.depth ? n.docView.domAfterPos(r.before()) : n.dom, { focusNode: p, focusOffset: m } = n.domSelectionRange(), y = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || a == p && c == m;
@@ -6747,7 +6748,7 @@ class lr {
6747
6748
  let r = 0, i = 0;
6748
6749
  for (let s = 0; r < this.children.length; r++) {
6749
6750
  let o = this.children[r], l = s + o.size;
6750
- if (l > e || o instanceof jc) {
6751
+ if (l > e || o instanceof Vc) {
6751
6752
  i = e - s;
6752
6753
  break;
6753
6754
  }
@@ -6755,7 +6756,7 @@ class lr {
6755
6756
  }
6756
6757
  if (i)
6757
6758
  return this.children[r].domFromPos(i - this.children[r].border, t);
6758
- for (let s; r && !(s = this.children[r - 1]).size && s instanceof Vc && s.side >= 0; r--)
6759
+ for (let s; r && !(s = this.children[r - 1]).size && s instanceof Hc && s.side >= 0; r--)
6759
6760
  ;
6760
6761
  if (t <= 0) {
6761
6762
  let s, o = !0;
@@ -6920,7 +6921,7 @@ class lr {
6920
6921
  return !1;
6921
6922
  }
6922
6923
  }
6923
- class Vc extends lr {
6924
+ class Hc extends lr {
6924
6925
  constructor(e, t, r, i) {
6925
6926
  let s, o = t.type.toDOM;
6926
6927
  if (typeof o == "function" && (o = o(r, () => {
@@ -7044,7 +7045,7 @@ class Tt extends lr {
7044
7045
  } else u || ({ dom: u, contentDOM: d } = Qt.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
7045
7046
  !d && !t.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), t.type.spec.draggable && (u.draggable = !0));
7046
7047
  let f = u;
7047
- return u = Kc(u, r, t), c ? a = new ap(e, t, r, i, u, d || null, f, c, s, o + 1) : t.isText ? new Ci(e, t, r, i, u, f, s) : new Tt(e, t, r, i, u, d || null, f, s, o + 1);
7048
+ return u = Wc(u, r, t), c ? a = new ap(e, t, r, i, u, d || null, f, c, s, o + 1) : t.isText ? new Ci(e, t, r, i, u, f, s) : new Tt(e, t, r, i, u, d || null, f, s, o + 1);
7048
7049
  }
7049
7050
  parseRule() {
7050
7051
  if (this.node.type.spec.reparseInView)
@@ -7087,7 +7088,7 @@ class Tt extends lr {
7087
7088
  a.syncToMarks(c.marks, r, e);
7088
7089
  let h;
7089
7090
  a.findNodeMatch(c, u, d, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (h = a.findIndexWithChild(s.node)) > -1 && a.updateNodeAt(c, u, d, h, e) || a.updateNextNode(c, u, d, e, f, i) || a.addNode(c, u, d, e, i), i += c.nodeSize;
7090
- }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == zt) && (o && this.protectLocalComposition(e, o), _c(this.contentDOM, this.children, e), gn && pp(this.dom));
7091
+ }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == zt) && (o && this.protectLocalComposition(e, o), jc(this.contentDOM, this.children, e), gn && pp(this.dom));
7091
7092
  }
7092
7093
  localCompositionInfo(e, t) {
7093
7094
  let { from: r, to: i } = e.state.selection;
@@ -7128,7 +7129,7 @@ class Tt extends lr {
7128
7129
  if (Pr(e, this.outerDeco))
7129
7130
  return;
7130
7131
  let t = this.nodeDOM.nodeType != 1, r = this.dom;
7131
- this.dom = Wc(this.dom, this.nodeDOM, Is(this.outerDeco, this.node, t), Is(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
7132
+ this.dom = _c(this.dom, this.nodeDOM, Is(this.outerDeco, this.node, t), Is(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
7132
7133
  }
7133
7134
  // Mark this node as being the selected node.
7134
7135
  selectNode() {
@@ -7143,7 +7144,7 @@ class Tt extends lr {
7143
7144
  }
7144
7145
  }
7145
7146
  function Ll(n, e, t, r, i) {
7146
- Kc(r, e, n);
7147
+ Wc(r, e, n);
7147
7148
  let s = new Tt(void 0, n, e, t, r, r, r, i, 0);
7148
7149
  return s.contentDOM && s.updateChildren(i, 0), s;
7149
7150
  }
@@ -7190,7 +7191,7 @@ class Ci extends Tt {
7190
7191
  return this.node.text == e;
7191
7192
  }
7192
7193
  }
7193
- class jc extends lr {
7194
+ class Vc extends lr {
7194
7195
  parseRule() {
7195
7196
  return { ignore: !0 };
7196
7197
  }
@@ -7238,7 +7239,7 @@ class ap extends Tt {
7238
7239
  return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
7239
7240
  }
7240
7241
  }
7241
- function _c(n, e, t) {
7242
+ function jc(n, e, t) {
7242
7243
  let r = n.firstChild, i = !1;
7243
7244
  for (let s = 0; s < e.length; s++) {
7244
7245
  let o = e[s], l = o.dom;
@@ -7250,7 +7251,7 @@ function _c(n, e, t) {
7250
7251
  i = !0, n.insertBefore(l, r);
7251
7252
  if (o instanceof Yt) {
7252
7253
  let a = r ? r.previousSibling : n.lastChild;
7253
- _c(o.contentDOM, o.children, t), r = a ? a.nextSibling : n.firstChild;
7254
+ jc(o.contentDOM, o.children, t), r = a ? a.nextSibling : n.firstChild;
7254
7255
  }
7255
7256
  }
7256
7257
  for (; r; )
@@ -7278,7 +7279,7 @@ function Is(n, e, t) {
7278
7279
  }
7279
7280
  return i;
7280
7281
  }
7281
- function Wc(n, e, t, r) {
7282
+ function _c(n, e, t, r) {
7282
7283
  if (t == Ft && r == Ft)
7283
7284
  return e;
7284
7285
  let i = e;
@@ -7314,8 +7315,8 @@ function cp(n, e, t) {
7314
7315
  t.style && (n.style.cssText += t.style);
7315
7316
  }
7316
7317
  }
7317
- function Kc(n, e, t) {
7318
- return Wc(n, n, Ft, Is(e, t, n.nodeType != 1));
7318
+ function Wc(n, e, t) {
7319
+ return _c(n, n, Ft, Is(e, t, n.nodeType != 1));
7319
7320
  }
7320
7321
  function Pr(n, e) {
7321
7322
  if (n.length != e.length)
@@ -7452,7 +7453,7 @@ class up {
7452
7453
  if (i && i.matchesWidget(e) && (e == i.widget || !i.widget.type.toDOM.parentNode))
7453
7454
  this.index++;
7454
7455
  else {
7455
- let s = new Vc(this.top, e, t, r);
7456
+ let s = new Hc(this.top, e, t, r);
7456
7457
  this.top.children.splice(this.index++, 0, s), this.changed = !0;
7457
7458
  }
7458
7459
  }
@@ -7471,7 +7472,7 @@ class up {
7471
7472
  else {
7472
7473
  let r = document.createElement(e);
7473
7474
  e == "IMG" && (r.className = "ProseMirror-separator", r.alt = ""), e == "BR" && (r.className = "ProseMirror-trailingBreak");
7474
- let i = new jc(this.top, [], r, null);
7475
+ let i = new Vc(this.top, [], r, null);
7475
7476
  t != this.top ? t.children.push(i) : t.children.splice(this.index++, 0, i), this.changed = !0;
7476
7477
  }
7477
7478
  }
@@ -7633,12 +7634,12 @@ function io(n, e = null) {
7633
7634
  }
7634
7635
  return c;
7635
7636
  }
7636
- function Uc(n) {
7637
- return n.editable ? n.hasFocus() : Jc(n) && document.activeElement && document.activeElement.contains(n.dom);
7637
+ function Kc(n) {
7638
+ return n.editable ? n.hasFocus() : qc(n) && document.activeElement && document.activeElement.contains(n.dom);
7638
7639
  }
7639
7640
  function dt(n, e = !1) {
7640
7641
  let t = n.state.selection;
7641
- if (qc(n, t), !!Uc(n)) {
7642
+ if (Uc(n, t), !!Kc(n)) {
7642
7643
  if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && be) {
7643
7644
  let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
7644
7645
  if (r.anchorNode && i.anchorNode && Gt(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
@@ -7655,7 +7656,7 @@ function dt(n, e = !1) {
7655
7656
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
7656
7657
  }
7657
7658
  }
7658
- const Bl = ve || be && Lc < 63;
7659
+ const Bl = ve || be && Rc < 63;
7659
7660
  function zl(n, e) {
7660
7661
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, s = r ? t.childNodes[r - 1] : null;
7661
7662
  if (ve && i && i.contentEditable == "false")
@@ -7679,7 +7680,7 @@ function gp(n) {
7679
7680
  let t = n.domSelectionRange(), r = t.anchorNode, i = t.anchorOffset;
7680
7681
  e.addEventListener("selectionchange", n.input.hideSelectionGuard = () => {
7681
7682
  (t.anchorNode != r || t.anchorOffset != i) && (e.removeEventListener("selectionchange", n.input.hideSelectionGuard), setTimeout(() => {
7682
- (!Uc(n) || n.state.selection.visible) && n.dom.classList.remove("ProseMirror-hideselection");
7683
+ (!Kc(n) || n.state.selection.visible) && n.dom.classList.remove("ProseMirror-hideselection");
7683
7684
  }, 20));
7684
7685
  });
7685
7686
  }
@@ -7690,7 +7691,7 @@ function yp(n) {
7690
7691
  let r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
7691
7692
  i ? t.setStart(r.parentNode, he(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && Me && Mt <= 11 && (r.disabled = !0, r.disabled = !1);
7692
7693
  }
7693
- function qc(n, e) {
7694
+ function Uc(n, e) {
7694
7695
  if (e instanceof I) {
7695
7696
  let t = n.docView.descAt(e.from);
7696
7697
  t != n.lastSelectedViewDesc && ($l(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
@@ -7704,9 +7705,9 @@ function so(n, e, t, r) {
7704
7705
  return n.someProp("createSelectionBetween", (i) => i(n, e, t)) || R.between(e, t, r);
7705
7706
  }
7706
7707
  function Hl(n) {
7707
- return n.editable && !n.hasFocus() ? !1 : Jc(n);
7708
+ return n.editable && !n.hasFocus() ? !1 : qc(n);
7708
7709
  }
7709
- function Jc(n) {
7710
+ function qc(n) {
7710
7711
  let e = n.domSelectionRange();
7711
7712
  if (!e.anchorNode)
7712
7713
  return !1;
@@ -7786,7 +7787,7 @@ function kp(n) {
7786
7787
  break;
7787
7788
  }
7788
7789
  } else {
7789
- if (Gc(t))
7790
+ if (Jc(t))
7790
7791
  break;
7791
7792
  {
7792
7793
  let l = t.previousSibling;
@@ -7818,7 +7819,7 @@ function xp(n) {
7818
7819
  else
7819
7820
  break;
7820
7821
  } else {
7821
- if (Gc(t))
7822
+ if (Jc(t))
7822
7823
  break;
7823
7824
  {
7824
7825
  let l = t.nextSibling;
@@ -7835,7 +7836,7 @@ function xp(n) {
7835
7836
  }
7836
7837
  s && Ls(n, s, o);
7837
7838
  }
7838
- function Gc(n) {
7839
+ function Jc(n) {
7839
7840
  let e = n.pmViewDesc;
7840
7841
  return e && e.node && e.node.isBlock;
7841
7842
  }
@@ -7982,10 +7983,10 @@ function oo(n, e) {
7982
7983
  let h = r.firstChild;
7983
7984
  t.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
7984
7985
  }
7985
- let o = n.someProp("clipboardSerializer") || Qt.fromSchema(n.state.schema), l = tu(), a = l.createElement("div");
7986
+ let o = n.someProp("clipboardSerializer") || Qt.fromSchema(n.state.schema), l = eu(), a = l.createElement("div");
7986
7987
  a.appendChild(o.serializeFragment(r, { document: l }));
7987
7988
  let c = a.firstChild, u, d = 0;
7988
- for (; c && c.nodeType == 1 && (u = eu[c.nodeName.toLowerCase()]); ) {
7989
+ for (; c && c.nodeType == 1 && (u = Zc[c.nodeName.toLowerCase()]); ) {
7989
7990
  for (let h = u.length - 1; h >= 0; h--) {
7990
7991
  let p = l.createElement(u[h]);
7991
7992
  for (; a.firstChild; )
@@ -8000,7 +8001,7 @@ function oo(n, e) {
8000
8001
  `);
8001
8002
  return { dom: a, text: f, slice: e };
8002
8003
  }
8003
- function Yc(n, e, t, r, i) {
8004
+ function Gc(n, e, t, r, i) {
8004
8005
  let s = i.parent.type.spec.code, o, l;
8005
8006
  if (!t && !e)
8006
8007
  return null;
@@ -8067,11 +8068,11 @@ function Ep(n, e) {
8067
8068
  let a = i.findWrapping(l.type), c;
8068
8069
  if (!a)
8069
8070
  return o = null;
8070
- if (c = o.length && s.length && Qc(a, s, l, o[o.length - 1], 0))
8071
+ if (c = o.length && s.length && Xc(a, s, l, o[o.length - 1], 0))
8071
8072
  o[o.length - 1] = c;
8072
8073
  else {
8073
- o.length && (o[o.length - 1] = Zc(o[o.length - 1], s.length));
8074
- let u = Xc(l, a);
8074
+ o.length && (o[o.length - 1] = Qc(o[o.length - 1], s.length));
8075
+ let u = Yc(l, a);
8075
8076
  o.push(u), i = i.matchType(u.type), s = a;
8076
8077
  }
8077
8078
  }), o)
@@ -8079,24 +8080,24 @@ function Ep(n, e) {
8079
8080
  }
8080
8081
  return n;
8081
8082
  }
8082
- function Xc(n, e, t = 0) {
8083
+ function Yc(n, e, t = 0) {
8083
8084
  for (let r = e.length - 1; r >= t; r--)
8084
8085
  n = e[r].create(null, v.from(n));
8085
8086
  return n;
8086
8087
  }
8087
- function Qc(n, e, t, r, i) {
8088
+ function Xc(n, e, t, r, i) {
8088
8089
  if (i < n.length && i < e.length && n[i] == e[i]) {
8089
- let s = Qc(n, e, t, r.lastChild, i + 1);
8090
+ let s = Xc(n, e, t, r.lastChild, i + 1);
8090
8091
  if (s)
8091
8092
  return r.copy(r.content.replaceChild(r.childCount - 1, s));
8092
8093
  if (r.contentMatchAt(r.childCount).matchType(i == n.length - 1 ? t.type : n[i + 1]))
8093
- return r.copy(r.content.append(v.from(Xc(t, n, i + 1))));
8094
+ return r.copy(r.content.append(v.from(Yc(t, n, i + 1))));
8094
8095
  }
8095
8096
  }
8096
- function Zc(n, e) {
8097
+ function Qc(n, e) {
8097
8098
  if (e == 0)
8098
8099
  return n;
8099
- let t = n.content.replaceChild(n.childCount - 1, Zc(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(v.empty, !0);
8100
+ let t = n.content.replaceChild(n.childCount - 1, Qc(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(v.empty, !0);
8100
8101
  return n.copy(t.append(r));
8101
8102
  }
8102
8103
  function Ps(n, e, t, r, i, s) {
@@ -8106,7 +8107,7 @@ function Ps(n, e, t, r, i, s) {
8106
8107
  function Ul(n, e, t) {
8107
8108
  return e < n.openStart && (n = new E(Ps(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new E(Ps(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
8108
8109
  }
8109
- const eu = {
8110
+ const Zc = {
8110
8111
  thead: ["table"],
8111
8112
  tbody: ["table"],
8112
8113
  tfoot: ["table"],
@@ -8118,7 +8119,7 @@ const eu = {
8118
8119
  th: ["table", "tbody", "tr"]
8119
8120
  };
8120
8121
  let ql = null;
8121
- function tu() {
8122
+ function eu() {
8122
8123
  return ql || (ql = document.implementation.createHTMLDocument("title"));
8123
8124
  }
8124
8125
  let Xi = null;
@@ -8129,8 +8130,8 @@ function Op(n) {
8129
8130
  function Ap(n) {
8130
8131
  let e = /^(\s*<meta [^>]*>)*/.exec(n);
8131
8132
  e && (n = n.slice(e[0].length));
8132
- let t = tu().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(n), i;
8133
- if ((i = r && eu[r[1].toLowerCase()]) && (n = i.map((s) => "<" + s + ">").join("") + n + i.map((s) => "</" + s + ">").reverse().join("")), t.innerHTML = Op(n), i)
8133
+ let t = eu().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(n), i;
8134
+ if ((i = r && Zc[r[1].toLowerCase()]) && (n = i.map((s) => "<" + s + ">").join("") + n + i.map((s) => "</" + s + ">").reverse().join("")), t.innerHTML = Op(n), i)
8134
8135
  for (let s = 0; s < i.length; s++)
8135
8136
  t = t.querySelector(i[s]) || t;
8136
8137
  return t;
@@ -8211,7 +8212,7 @@ function zp(n, e) {
8211
8212
  }
8212
8213
  Se.keydown = (n, e) => {
8213
8214
  let t = e;
8214
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ru(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(at && be && t.keyCode == 13)))
8215
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !nu(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(at && be && t.keyCode == 13)))
8215
8216
  if (t.keyCode != 229 && n.domObserver.forceFlush(), gn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
8216
8217
  let r = Date.now();
8217
8218
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -8224,7 +8225,7 @@ Se.keyup = (n, e) => {
8224
8225
  };
8225
8226
  Se.keypress = (n, e) => {
8226
8227
  let t = e;
8227
- if (ru(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Be && t.metaKey)
8228
+ if (nu(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Be && t.metaKey)
8228
8229
  return;
8229
8230
  if (n.someProp("handleKeyPress", (i) => i(n, t))) {
8230
8231
  t.preventDefault();
@@ -8309,18 +8310,18 @@ function Wp(n, e, t) {
8309
8310
  function co(n) {
8310
8311
  return zr(n);
8311
8312
  }
8312
- const nu = Be ? "metaKey" : "ctrlKey";
8313
+ const tu = Be ? "metaKey" : "ctrlKey";
8313
8314
  we.mousedown = (n, e) => {
8314
8315
  let t = e;
8315
8316
  n.input.shiftKey = t.shiftKey;
8316
8317
  let r = co(n), i = Date.now(), s = "singleClick";
8317
- i - n.input.lastClick.time < 500 && Fp(t, n.input.lastClick) && !t[nu] && n.input.lastClick.button == t.button && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s, button: t.button };
8318
+ i - n.input.lastClick.time < 500 && Fp(t, n.input.lastClick) && !t[tu] && n.input.lastClick.button == t.button && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s, button: t.button };
8318
8319
  let o = n.posAtCoords(Mi(t));
8319
8320
  o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new Kp(n, o, t, !!r)) : (s == "doubleClick" ? jp : _p)(n, o.pos, o.inside, t) ? t.preventDefault() : vt(n, "pointer"));
8320
8321
  };
8321
8322
  class Kp {
8322
8323
  constructor(e, t, r, i) {
8323
- this.view = e, this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[nu], this.allowDefault = r.shiftKey;
8324
+ this.view = e, this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[tu], this.allowDefault = r.shiftKey;
8324
8325
  let s, o;
8325
8326
  if (t.inside > -1)
8326
8327
  s = e.state.doc.nodeAt(t.inside), o = t.inside;
@@ -8371,7 +8372,7 @@ we.touchmove = (n) => {
8371
8372
  n.input.lastTouch = Date.now(), vt(n, "pointer");
8372
8373
  };
8373
8374
  we.contextmenu = (n) => co(n);
8374
- function ru(n, e) {
8375
+ function nu(n, e) {
8375
8376
  return n.composing ? !0 : ve && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
8376
8377
  }
8377
8378
  const Up = at ? 5e3 : -1;
@@ -8397,15 +8398,15 @@ Se.compositionstart = Se.compositionupdate = (n) => {
8397
8398
  }
8398
8399
  n.input.composing = !0;
8399
8400
  }
8400
- iu(n, Up);
8401
+ ru(n, Up);
8401
8402
  };
8402
8403
  Se.compositionend = (n, e) => {
8403
- n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, iu(n, 20));
8404
+ n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, ru(n, 20));
8404
8405
  };
8405
- function iu(n, e) {
8406
+ function ru(n, e) {
8406
8407
  clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => zr(n), e));
8407
8408
  }
8408
- function su(n) {
8409
+ function iu(n) {
8409
8410
  for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = Jp()); n.input.compositionNodes.length > 0; )
8410
8411
  n.input.compositionNodes.pop().markParentsDirty();
8411
8412
  }
@@ -8434,7 +8435,7 @@ function Jp() {
8434
8435
  }
8435
8436
  function zr(n, e = !1) {
8436
8437
  if (!(at && n.domObserver.flushingSoon >= 0)) {
8437
- if (n.domObserver.forceFlush(), su(n), e || n.docView && n.docView.dirty) {
8438
+ if (n.domObserver.forceFlush(), iu(n), e || n.docView && n.docView.dirty) {
8438
8439
  let t = io(n), r = n.state.selection;
8439
8440
  return t && !t.eq(r) ? n.dispatch(n.state.tr.setSelection(t)) : (n.markCursor || e) && !r.$from.node(r.$from.sharedDepth(r.to)).inlineContent ? n.dispatch(n.state.tr.deleteSelection()) : n.updateState(n.state), !0;
8440
8441
  }
@@ -8473,7 +8474,7 @@ function Xp(n, e) {
8473
8474
  }, 50);
8474
8475
  }
8475
8476
  function Un(n, e, t, r, i) {
8476
- let s = Yc(n, e, t, r, n.state.selection.$from);
8477
+ let s = Gc(n, e, t, r, n.state.selection.$from);
8477
8478
  if (n.someProp("handlePaste", (a) => a(n, i, s || E.empty)))
8478
8479
  return !0;
8479
8480
  if (!s)
@@ -8481,7 +8482,7 @@ function Un(n, e, t, r, i) {
8481
8482
  let o = Yp(s), l = o ? n.state.tr.replaceSelectionWith(o, r) : n.state.tr.replaceSelection(s);
8482
8483
  return n.dispatch(l.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
8483
8484
  }
8484
- function ou(n) {
8485
+ function su(n) {
8485
8486
  let e = n.getData("text/plain") || n.getData("Text");
8486
8487
  if (e)
8487
8488
  return e;
@@ -8493,15 +8494,15 @@ Se.paste = (n, e) => {
8493
8494
  if (n.composing && !at)
8494
8495
  return;
8495
8496
  let r = Kn ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
8496
- r && Un(n, ou(r), r.getData("text/html"), i, t) ? t.preventDefault() : Xp(n, t);
8497
+ r && Un(n, su(r), r.getData("text/html"), i, t) ? t.preventDefault() : Xp(n, t);
8497
8498
  };
8498
- class lu {
8499
+ class ou {
8499
8500
  constructor(e, t, r) {
8500
8501
  this.slice = e, this.move = t, this.node = r;
8501
8502
  }
8502
8503
  }
8503
8504
  const Qp = Be ? "altKey" : "ctrlKey";
8504
- function au(n, e) {
8505
+ function lu(n, e) {
8505
8506
  let t = n.someProp("dragCopies", (r) => !r(e));
8506
8507
  return t ?? !e[Qp];
8507
8508
  }
@@ -8519,7 +8520,7 @@ we.dragstart = (n, e) => {
8519
8520
  }
8520
8521
  }
8521
8522
  let l = (o || n.state.selection).content(), { dom: a, text: c, slice: u } = oo(n, l);
8522
- (!t.dataTransfer.files.length || !be || Lc > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Kn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Kn || t.dataTransfer.setData("text/plain", c), n.dragging = new lu(u, au(n, t), o);
8523
+ (!t.dataTransfer.files.length || !be || Rc > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Kn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Kn || t.dataTransfer.setData("text/plain", c), n.dragging = new ou(u, lu(n, t), o);
8523
8524
  };
8524
8525
  we.dragend = (n) => {
8525
8526
  let e = n.dragging;
@@ -8538,8 +8539,8 @@ Se.drop = (n, e) => {
8538
8539
  let s = n.state.doc.resolve(i.pos), o = r && r.slice;
8539
8540
  o ? n.someProp("transformPasted", (p) => {
8540
8541
  o = p(o, n);
8541
- }) : o = Yc(n, ou(t.dataTransfer), Kn ? null : t.dataTransfer.getData("text/html"), !1, s);
8542
- let l = !!(r && au(n, t));
8542
+ }) : o = Gc(n, su(t.dataTransfer), Kn ? null : t.dataTransfer.getData("text/html"), !1, s);
8543
+ let l = !!(r && lu(n, t));
8543
8544
  if (n.someProp("handleDrop", (p) => p(n, t, o || E.empty, l))) {
8544
8545
  t.preventDefault();
8545
8546
  return;
@@ -8547,7 +8548,7 @@ Se.drop = (n, e) => {
8547
8548
  if (!o)
8548
8549
  return;
8549
8550
  t.preventDefault();
8550
- let a = o ? Mc(n.state.doc, s.pos, o) : s.pos;
8551
+ let a = o ? Cc(n.state.doc, s.pos, o) : s.pos;
8551
8552
  a == null && (a = s.pos);
8552
8553
  let c = n.state.tr;
8553
8554
  if (l) {
@@ -8800,13 +8801,13 @@ class ie {
8800
8801
  let i, s = 0;
8801
8802
  e.forEach((l, a) => {
8802
8803
  let c = a + r, u;
8803
- if (u = uu(t, l, c)) {
8804
+ if (u = cu(t, l, c)) {
8804
8805
  for (i || (i = this.children.slice()); s < i.length && i[s] < a; )
8805
8806
  s += 3;
8806
8807
  i[s] == a ? i[s + 2] = i[s + 2].addInner(l, u, c + 1) : i.splice(s, 0, a, a + l.nodeSize, $r(u, l, c + 1, _t)), s += 3;
8807
8808
  }
8808
8809
  });
8809
- let o = cu(s ? du(t) : t, -r);
8810
+ let o = au(s ? uu(t) : t, -r);
8810
8811
  for (let l = 0; l < o.length; l++)
8811
8812
  o[l].type.valid(e, o[l]) || o.splice(l--, 1);
8812
8813
  return new ie(o.length ? this.local.concat(o).sort(Wt) : this.local, i || this.children);
@@ -9012,7 +9013,7 @@ function Zp(n, e, t, r, i, s, o) {
9012
9013
  }
9013
9014
  return new ie(e.sort(Wt), l);
9014
9015
  }
9015
- function cu(n, e) {
9016
+ function au(n, e) {
9016
9017
  if (!e || !n.length)
9017
9018
  return n;
9018
9019
  let t = [];
@@ -9035,7 +9036,7 @@ function em(n, e, t, r, i, s, o) {
9035
9036
  n[a + 1] == -1 && l(n[a + 2], e[a] + s + 1);
9036
9037
  return t;
9037
9038
  }
9038
- function uu(n, e, t) {
9039
+ function cu(n, e, t) {
9039
9040
  if (e.isLeaf)
9040
9041
  return null;
9041
9042
  let r = t + e.nodeSize, i = null;
@@ -9043,7 +9044,7 @@ function uu(n, e, t) {
9043
9044
  (o = n[s]) && o.from > t && o.to < r && ((i || (i = [])).push(o), n[s] = null);
9044
9045
  return i;
9045
9046
  }
9046
- function du(n) {
9047
+ function uu(n) {
9047
9048
  let e = [];
9048
9049
  for (let t = 0; t < n.length; t++)
9049
9050
  n[t] != null && e.push(n[t]);
@@ -9052,14 +9053,14 @@ function du(n) {
9052
9053
  function $r(n, e, t, r) {
9053
9054
  let i = [], s = !1;
9054
9055
  e.forEach((l, a) => {
9055
- let c = uu(n, l, a + t);
9056
+ let c = cu(n, l, a + t);
9056
9057
  if (c) {
9057
9058
  s = !0;
9058
9059
  let u = $r(c, l, t + a + 1, r);
9059
9060
  u != ge && i.push(a, a + l.nodeSize, u);
9060
9061
  }
9061
9062
  });
9062
- let o = cu(s ? du(n) : n, -t).sort(Wt);
9063
+ let o = au(s ? uu(n) : n, -t).sort(Wt);
9063
9064
  for (let l = 0; l < o.length; l++)
9064
9065
  o[l].type.valid(e, o[l]) || (r.onRemove && r.onRemove(o[l].spec), o.splice(l--, 1));
9065
9066
  return o.length || i.length ? new ie(o, i) : ge;
@@ -9485,7 +9486,7 @@ function Zl(n) {
9485
9486
  let e = n.charCodeAt(0), t = n.charCodeAt(1);
9486
9487
  return e >= 56320 && e <= 57343 && t >= 55296 && t <= 56319;
9487
9488
  }
9488
- class fu {
9489
+ class du {
9489
9490
  /**
9490
9491
  Create a view. `place` may be a DOM node that the editor should
9491
9492
  be appended to, a function that will place it into the document,
@@ -9550,7 +9551,7 @@ class fu {
9550
9551
  updateStateInner(e, t) {
9551
9552
  var r;
9552
9553
  let i = this.state, s = !1, o = !1;
9553
- e.storedMarks && this.composing && (su(this), o = !0), this.state = e;
9554
+ e.storedMarks && this.composing && (iu(this), o = !0), this.state = e;
9554
9555
  let l = i.plugins != e.plugins || this._props.plugins != t.plugins;
9555
9556
  if (l || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
9556
9557
  let h = ra(this);
@@ -9567,7 +9568,7 @@ class fu {
9567
9568
  let p = be ? this.trackWrites = this.domSelectionRange().focusNode : null;
9568
9569
  this.composing && (this.input.compositionNode = qp(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = Ll(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
9569
9570
  }
9570
- h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && bp(this)) ? dt(this, h) : (qc(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
9571
+ h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && bp(this)) ? dt(this, h) : (Uc(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
9571
9572
  }
9572
9573
  this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : f && Gh(f);
9573
9574
  }
@@ -9614,7 +9615,7 @@ class fu {
9614
9615
  let s = r.from + (this.state.doc.content.size - t.doc.content.size);
9615
9616
  (s > 0 && this.state.doc.nodeAt(s)) == r.node && (i = s);
9616
9617
  }
9617
- this.dragging = new lu(e.slice, e.move, i < 0 ? void 0 : I.create(this.state.doc, i));
9618
+ this.dragging = new ou(e.slice, e.move, i < 0 ? void 0 : I.create(this.state.doc, i));
9618
9619
  }
9619
9620
  someProp(e, t) {
9620
9621
  let r = this._props && this._props[e], i;
@@ -9701,7 +9702,7 @@ class fu {
9701
9702
  otherwise the element after.
9702
9703
  */
9703
9704
  coordsAtPos(e, t = 1) {
9704
- return $c(this, e, t);
9705
+ return Fc(this, e, t);
9705
9706
  }
9706
9707
  /**
9707
9708
  Find the DOM position that corresponds to the given document
@@ -9817,7 +9818,7 @@ class fu {
9817
9818
  return this.root.getSelection();
9818
9819
  }
9819
9820
  }
9820
- fu.prototype.dispatch = function(n) {
9821
+ du.prototype.dispatch = function(n) {
9821
9822
  let e = this._props.dispatchTransaction;
9822
9823
  e ? e.call(this, n) : this.updateState(this.state.apply(n));
9823
9824
  };
@@ -9986,9 +9987,9 @@ function ts(n, e, t = !0) {
9986
9987
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
9987
9988
  }
9988
9989
  function Cm(n) {
9989
- return new Q({ props: { handleKeyDown: hu(n) } });
9990
+ return new Q({ props: { handleKeyDown: fu(n) } });
9990
9991
  }
9991
- function hu(n) {
9992
+ function fu(n) {
9992
9993
  let e = Sm(n);
9993
9994
  return function(t, r) {
9994
9995
  let i = km(r), s, o = e[ts(i, r)];
@@ -10011,12 +10012,12 @@ function hu(n) {
10011
10012
  };
10012
10013
  }
10013
10014
  const ho = (n, e) => n.selection.empty ? !1 : (e && e(n.tr.deleteSelection().scrollIntoView()), !0);
10014
- function pu(n, e) {
10015
+ function hu(n, e) {
10015
10016
  let { $cursor: t } = n.selection;
10016
10017
  return !t || (e ? !e.endOfTextblock("backward", n) : t.parentOffset > 0) ? null : t;
10017
10018
  }
10018
- const mu = (n, e, t) => {
10019
- let r = pu(n, t);
10019
+ const pu = (n, e, t) => {
10020
+ let r = hu(n, t);
10020
10021
  if (!r)
10021
10022
  return !1;
10022
10023
  let i = po(r);
@@ -10025,7 +10026,7 @@ const mu = (n, e, t) => {
10025
10026
  return l == null ? !1 : (e && e(n.tr.lift(o, l).scrollIntoView()), !0);
10026
10027
  }
10027
10028
  let s = i.nodeBefore;
10028
- if (Cu(n, i, e, -1))
10029
+ if (Su(n, i, e, -1))
10029
10030
  return !0;
10030
10031
  if (r.parent.content.size == 0 && (yn(s, "end") || I.isSelectable(s)))
10031
10032
  for (let o = r.depth; ; o--) {
@@ -10042,19 +10043,19 @@ const mu = (n, e, t) => {
10042
10043
  }
10043
10044
  return s.isAtom && i.depth == r.depth - 1 ? (e && e(n.tr.delete(i.pos - s.nodeSize, i.pos).scrollIntoView()), !0) : !1;
10044
10045
  }, Mm = (n, e, t) => {
10045
- let r = pu(n, t);
10046
+ let r = hu(n, t);
10046
10047
  if (!r)
10047
10048
  return !1;
10048
10049
  let i = po(r);
10049
- return i ? gu(n, i, e) : !1;
10050
+ return i ? mu(n, i, e) : !1;
10050
10051
  }, Tm = (n, e, t) => {
10051
- let r = bu(n, t);
10052
+ let r = yu(n, t);
10052
10053
  if (!r)
10053
10054
  return !1;
10054
10055
  let i = mo(r);
10055
- return i ? gu(n, i, e) : !1;
10056
+ return i ? mu(n, i, e) : !1;
10056
10057
  };
10057
- function gu(n, e, t) {
10058
+ function mu(n, e, t) {
10058
10059
  let r = e.nodeBefore, i = r, s = e.pos - 1;
10059
10060
  for (; !i.isTextblock; s--) {
10060
10061
  if (i.type.spec.isolating)
@@ -10091,7 +10092,7 @@ function yn(n, e, t = !1) {
10091
10092
  }
10092
10093
  return !1;
10093
10094
  }
10094
- const yu = (n, e, t) => {
10095
+ const gu = (n, e, t) => {
10095
10096
  let { $head: r, empty: i } = n.selection, s = r;
10096
10097
  if (!i)
10097
10098
  return !1;
@@ -10113,19 +10114,19 @@ function po(n) {
10113
10114
  }
10114
10115
  return null;
10115
10116
  }
10116
- function bu(n, e) {
10117
+ function yu(n, e) {
10117
10118
  let { $cursor: t } = n.selection;
10118
10119
  return !t || (e ? !e.endOfTextblock("forward", n) : t.parentOffset < t.parent.content.size) ? null : t;
10119
10120
  }
10120
- const ku = (n, e, t) => {
10121
- let r = bu(n, t);
10121
+ const bu = (n, e, t) => {
10122
+ let r = yu(n, t);
10122
10123
  if (!r)
10123
10124
  return !1;
10124
10125
  let i = mo(r);
10125
10126
  if (!i)
10126
10127
  return !1;
10127
10128
  let s = i.nodeAfter;
10128
- if (Cu(n, i, e, 1))
10129
+ if (Su(n, i, e, 1))
10129
10130
  return !0;
10130
10131
  if (r.parent.content.size == 0 && (yn(s, "start") || I.isSelectable(s))) {
10131
10132
  let o = vi(n.doc, r.before(), r.after(), E.empty);
@@ -10138,7 +10139,7 @@ const ku = (n, e, t) => {
10138
10139
  }
10139
10140
  }
10140
10141
  return s.isAtom && i.depth == r.depth - 1 ? (e && e(n.tr.delete(i.pos, i.pos + s.nodeSize).scrollIntoView()), !0) : !1;
10141
- }, xu = (n, e, t) => {
10142
+ }, ku = (n, e, t) => {
10142
10143
  let { $head: r, empty: i } = n.selection, s = r;
10143
10144
  if (!i)
10144
10145
  return !1;
@@ -10186,7 +10187,7 @@ const Em = (n, e) => {
10186
10187
  }, Am = (n, e) => {
10187
10188
  let { $from: t, $to: r } = n.selection, i = t.blockRange(r), s = i && kn(i);
10188
10189
  return s == null ? !1 : (e && e(n.tr.lift(i, s).scrollIntoView()), !0);
10189
- }, vu = (n, e) => {
10190
+ }, xu = (n, e) => {
10190
10191
  let { $head: t, $anchor: r } = n.selection;
10191
10192
  return !t.parent.type.spec.code || !t.sameParent(r) ? !1 : (e && e(n.tr.insertText(`
10192
10193
  `).scrollIntoView()), !0);
@@ -10211,7 +10212,7 @@ const Nm = (n, e) => {
10211
10212
  a.setSelection(B.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
10212
10213
  }
10213
10214
  return !0;
10214
- }, wu = (n, e) => {
10215
+ }, vu = (n, e) => {
10215
10216
  let t = n.selection, { $from: r, $to: i } = t;
10216
10217
  if (t instanceof Ie || r.parent.inlineContent || i.parent.inlineContent)
10217
10218
  return !1;
@@ -10223,7 +10224,7 @@ const Nm = (n, e) => {
10223
10224
  l.setSelection(R.create(l.doc, o + 1)), e(l.scrollIntoView());
10224
10225
  }
10225
10226
  return !0;
10226
- }, Su = (n, e) => {
10227
+ }, wu = (n, e) => {
10227
10228
  let { $cursor: t } = n.selection;
10228
10229
  if (!t || t.parent.content.size)
10229
10230
  return !1;
@@ -10272,7 +10273,7 @@ function Lm(n, e, t) {
10272
10273
  let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
10273
10274
  return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock || At(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
10274
10275
  }
10275
- function Cu(n, e, t, r) {
10276
+ function Su(n, e, t, r) {
10276
10277
  let i = e.nodeBefore, s = e.nodeAfter, o, l, a = i.type.spec.isolating || s.type.spec.isolating;
10277
10278
  if (!a && Lm(n, e, t))
10278
10279
  return !0;
@@ -10311,7 +10312,7 @@ function Cu(n, e, t, r) {
10311
10312
  }
10312
10313
  return !1;
10313
10314
  }
10314
- function Mu(n) {
10315
+ function Cu(n) {
10315
10316
  return function(e, t) {
10316
10317
  let r = e.selection, i = n < 0 ? r.$from : r.$to, s = i.depth;
10317
10318
  for (; i.node(s).isInline; ) {
@@ -10322,7 +10323,7 @@ function Mu(n) {
10322
10323
  return i.node(s).isTextblock ? (t && t(e.tr.setSelection(R.create(e.doc, n < 0 ? i.start(s) : i.end(s)))), !0) : !1;
10323
10324
  };
10324
10325
  }
10325
- const Pm = Mu(-1), Bm = Mu(1);
10326
+ const Pm = Cu(-1), Bm = Cu(1);
10326
10327
  function zm(n, e = null) {
10327
10328
  return function(t, r) {
10328
10329
  let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && to(o, n, e);
@@ -10367,9 +10368,9 @@ function yo(...n) {
10367
10368
  return !1;
10368
10369
  };
10369
10370
  }
10370
- yo(ho, mu, yu);
10371
- yo(ho, ku, xu);
10372
- yo(vu, wu, Su, Dm);
10371
+ yo(ho, pu, gu);
10372
+ yo(ho, bu, ku);
10373
+ yo(xu, vu, wu, Dm);
10373
10374
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
10374
10375
  function Fm(n, e = null) {
10375
10376
  return function(t, r) {
@@ -10575,7 +10576,7 @@ function Oi(n) {
10575
10576
  markExtensions: r
10576
10577
  };
10577
10578
  }
10578
- function Tu(n) {
10579
+ function Mu(n) {
10579
10580
  const e = [], { nodeExtensions: t, markExtensions: r } = Oi(n), i = [...t, ...r], s = {
10580
10581
  default: null,
10581
10582
  rendered: !0,
@@ -10667,11 +10668,11 @@ function zs(n, e) {
10667
10668
  [t.name]: n.attrs[t.name]
10668
10669
  }).reduce((t, r) => ue(t, r), {});
10669
10670
  }
10670
- function Eu(n) {
10671
+ function Tu(n) {
10671
10672
  return typeof n == "function";
10672
10673
  }
10673
10674
  function $(n, e = void 0, ...t) {
10674
- return Eu(n) ? e ? n.bind(e)(...t) : n(...t) : n;
10675
+ return Tu(n) ? e ? n.bind(e)(...t) : n(...t) : n;
10675
10676
  }
10676
10677
  function Um(n = {}) {
10677
10678
  return Object.keys(n).length === 0 && n.constructor === Object;
@@ -10705,7 +10706,7 @@ function la(n) {
10705
10706
  }
10706
10707
  function Jm(n, e) {
10707
10708
  var t;
10708
- const r = Tu(n), { nodeExtensions: i, markExtensions: s } = Oi(n), o = (t = i.find((c) => O(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
10709
+ const r = Mu(n), { nodeExtensions: i, markExtensions: s } = Oi(n), o = (t = i.find((c) => O(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
10709
10710
  const u = r.filter((b) => b.type === c.name), d = {
10710
10711
  name: c.name,
10711
10712
  options: c.options,
@@ -10775,7 +10776,7 @@ function Jm(n, e) {
10775
10776
  HTMLAttributes: zs(y, u)
10776
10777
  })), [c.name, h];
10777
10778
  }));
10778
- return new pc({
10779
+ return new hc({
10779
10780
  topNode: o,
10780
10781
  nodes: l,
10781
10782
  marks: a
@@ -11253,7 +11254,7 @@ class dn {
11253
11254
  * @returns An array of attributes
11254
11255
  */
11255
11256
  get attributes() {
11256
- return Tu(this.extensions);
11257
+ return Mu(this.extensions);
11257
11258
  }
11258
11259
  /**
11259
11260
  * Get all node views from the extensions.
@@ -11345,7 +11346,7 @@ class re {
11345
11346
  })), t;
11346
11347
  }
11347
11348
  }
11348
- function Ou(n, e, t) {
11349
+ function Eu(n, e, t) {
11349
11350
  const { from: r, to: i } = e, { blockSeparator: s = `
11350
11351
 
11351
11352
  `, textSerializers: o = {} } = t || {};
@@ -11382,7 +11383,7 @@ const og = re.create({
11382
11383
  props: {
11383
11384
  clipboardTextSerializer: () => {
11384
11385
  const { editor: n } = this, { state: e, schema: t } = n, { doc: r, selection: i } = e, { ranges: s } = i, o = Math.min(...s.map((u) => u.$from.pos)), l = Math.max(...s.map((u) => u.$to.pos)), a = xo(t);
11385
- return Ou(r, { from: o, to: l }, {
11386
+ return Eu(r, { from: o, to: l }, {
11386
11387
  ...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
11387
11388
  textSerializers: a
11388
11389
  });
@@ -11411,7 +11412,7 @@ const og = re.create({
11411
11412
  (p || p === 0) && e.lift(h, p);
11412
11413
  });
11413
11414
  }), !0;
11414
- }, ug = (n) => (e) => n(e), dg = () => ({ state: n, dispatch: e }) => wu(n, e), fg = (n, e) => ({ editor: t, tr: r }) => {
11415
+ }, ug = (n) => (e) => n(e), dg = () => ({ state: n, dispatch: e }) => vu(n, e), fg = (n, e) => ({ editor: t, tr: r }) => {
11415
11416
  const { state: i } = t, s = i.doc.slice(n.from, n.to);
11416
11417
  r.deleteRange(n.from, n.to);
11417
11418
  const o = r.mapping.map(e);
@@ -11449,7 +11450,7 @@ function Vr(n, e, t = { strict: !0 }) {
11449
11450
  const r = Object.keys(e);
11450
11451
  return r.length ? r.every((i) => t.strict ? e[i] === n[i] : ko(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
11451
11452
  }
11452
- function Au(n, e, t = {}) {
11453
+ function Ou(n, e, t = {}) {
11453
11454
  return n.find((r) => r.type === e && Vr(
11454
11455
  // Only check equality for the attributes that are provided
11455
11456
  Object.fromEntries(Object.keys(t).map((i) => [i, r.attrs[i]])),
@@ -11457,14 +11458,14 @@ function Au(n, e, t = {}) {
11457
11458
  ));
11458
11459
  }
11459
11460
  function ca(n, e, t = {}) {
11460
- return !!Au(n, e, t);
11461
+ return !!Ou(n, e, t);
11461
11462
  }
11462
11463
  function vo(n, e, t) {
11463
11464
  var r;
11464
11465
  if (!n || !e)
11465
11466
  return;
11466
11467
  let i = n.parent.childAfter(n.parentOffset);
11467
- if ((!i.node || !i.node.marks.some((u) => u.type === e)) && (i = n.parent.childBefore(n.parentOffset)), !i.node || !i.node.marks.some((u) => u.type === e) || (t = t || ((r = i.node.marks[0]) === null || r === void 0 ? void 0 : r.attrs), !Au([...i.node.marks], e, t)))
11468
+ if ((!i.node || !i.node.marks.some((u) => u.type === e)) && (i = n.parent.childBefore(n.parentOffset)), !i.node || !i.node.marks.some((u) => u.type === e) || (t = t || ((r = i.node.marks[0]) === null || r === void 0 ? void 0 : r.attrs), !Ou([...i.node.marks], e, t)))
11468
11469
  return;
11469
11470
  let o = i.index, l = n.start() + i.offset, a = o + 1, c = l + i.node.nodeSize;
11470
11471
  for (; o > 0 && ca([...n.parent.child(o - 1).marks], e, t); )
@@ -11507,7 +11508,7 @@ function wo(n) {
11507
11508
  function ct(n = 0, e = 0, t = 0) {
11508
11509
  return Math.min(Math.max(n, e), t);
11509
11510
  }
11510
- function Nu(n, e = null) {
11511
+ function Au(n, e = null) {
11511
11512
  if (!e)
11512
11513
  return null;
11513
11514
  const t = B.atStart(n), r = B.atEnd(n);
@@ -11545,19 +11546,19 @@ const wg = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) =>
11545
11546
  return !0;
11546
11547
  if (s && n === null && !wo(t.state.selection))
11547
11548
  return o(), !0;
11548
- const l = Nu(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
11549
+ const l = Au(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
11549
11550
  return s && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
11550
- }, Sg = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), Cg = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e), Iu = (n) => {
11551
+ }, Sg = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), Cg = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e), Nu = (n) => {
11551
11552
  const e = n.childNodes;
11552
11553
  for (let t = e.length - 1; t >= 0; t -= 1) {
11553
11554
  const r = e[t];
11554
- r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? n.removeChild(r) : r.nodeType === 1 && Iu(r);
11555
+ r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? n.removeChild(r) : r.nodeType === 1 && Nu(r);
11555
11556
  }
11556
11557
  return n;
11557
11558
  };
11558
11559
  function br(n) {
11559
11560
  const e = `<body>${n}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
11560
- return Iu(t);
11561
+ return Nu(t);
11561
11562
  }
11562
11563
  function Jn(n, e, t) {
11563
11564
  if (n instanceof St || n instanceof v)
@@ -11582,7 +11583,7 @@ function Jn(n, e, t) {
11582
11583
  if (i) {
11583
11584
  if (t.errorOnInvalidContent) {
11584
11585
  let o = !1, l = "";
11585
- const a = new pc({
11586
+ const a = new hc({
11586
11587
  topNode: e.spec.topNode,
11587
11588
  marks: e.spec.marks,
11588
11589
  // Prosemirror's schemas are executed such that: the last to execute, matches last
@@ -11684,7 +11685,7 @@ const Tg = (n) => !("type" in n), Eg = (n, e, t) => ({ tr: r, dispatch: i, edito
11684
11685
  t.updateSelection && Mg(r, r.steps.length - 1, -1), t.applyInputRules && r.setMeta("applyInputRules", { from: u, text: m }), t.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: m });
11685
11686
  }
11686
11687
  return !0;
11687
- }, Og = () => ({ state: n, dispatch: e }) => Em(n, e), Ag = () => ({ state: n, dispatch: e }) => Om(n, e), Ng = () => ({ state: n, dispatch: e }) => mu(n, e), Ig = () => ({ state: n, dispatch: e }) => ku(n, e), Dg = () => ({ state: n, dispatch: e, tr: t }) => {
11688
+ }, Og = () => ({ state: n, dispatch: e }) => Em(n, e), Ag = () => ({ state: n, dispatch: e }) => Om(n, e), Ng = () => ({ state: n, dispatch: e }) => pu(n, e), Ig = () => ({ state: n, dispatch: e }) => bu(n, e), Dg = () => ({ state: n, dispatch: e, tr: t }) => {
11688
11689
  try {
11689
11690
  const r = xi(n.doc, n.selection.$from.pos, -1);
11690
11691
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
@@ -11699,7 +11700,7 @@ const Tg = (n) => !("type" in n), Eg = (n, e, t) => ({ tr: r, dispatch: i, edito
11699
11700
  return !1;
11700
11701
  }
11701
11702
  }, Lg = () => ({ state: n, dispatch: e }) => Mm(n, e), Pg = () => ({ state: n, dispatch: e }) => Tm(n, e);
11702
- function Du() {
11703
+ function Iu() {
11703
11704
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
11704
11705
  }
11705
11706
  function Bg(n) {
@@ -11718,7 +11719,7 @@ function Bg(n) {
11718
11719
  else if (/^s(hift)?$/i.test(a))
11719
11720
  s = !0;
11720
11721
  else if (/^mod$/i.test(a))
11721
- So() || Du() ? o = !0 : i = !0;
11722
+ So() || Iu() ? o = !0 : i = !0;
11722
11723
  else
11723
11724
  throw new Error(`Unrecognized modifier name: ${a}`);
11724
11725
  }
@@ -11759,10 +11760,10 @@ function Gn(n, e, t = {}) {
11759
11760
  const Fg = (n, e = {}) => ({ state: t, dispatch: r }) => {
11760
11761
  const i = ce(n, t.schema);
11761
11762
  return Gn(t, i, e) ? Am(t, r) : !1;
11762
- }, $g = () => ({ state: n, dispatch: e }) => Su(n, e), Hg = (n) => ({ state: e, dispatch: t }) => {
11763
+ }, $g = () => ({ state: n, dispatch: e }) => wu(n, e), Hg = (n) => ({ state: e, dispatch: t }) => {
11763
11764
  const r = ce(n, e.schema);
11764
11765
  return Vm(r)(e, t);
11765
- }, Vg = () => ({ state: n, dispatch: e }) => vu(n, e);
11766
+ }, Vg = () => ({ state: n, dispatch: e }) => xu(n, e);
11766
11767
  function Ii(n, e) {
11767
11768
  return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
11768
11769
  }
@@ -11786,7 +11787,7 @@ const jg = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
11786
11787
  n.setSelection(t);
11787
11788
  }
11788
11789
  return !0;
11789
- }, Kg = () => ({ state: n, dispatch: e }) => yu(n, e), Ug = () => ({ state: n, dispatch: e }) => xu(n, e), qg = () => ({ state: n, dispatch: e }) => Rm(n, e), Jg = () => ({ state: n, dispatch: e }) => Bm(n, e), Gg = () => ({ state: n, dispatch: e }) => Pm(n, e);
11790
+ }, Kg = () => ({ state: n, dispatch: e }) => gu(n, e), Ug = () => ({ state: n, dispatch: e }) => ku(n, e), qg = () => ({ state: n, dispatch: e }) => Rm(n, e), Jg = () => ({ state: n, dispatch: e }) => Bm(n, e), Gg = () => ({ state: n, dispatch: e }) => Pm(n, e);
11790
11791
  function Fs(n, e, t = {}, r = {}) {
11791
11792
  return Jn(n, e, {
11792
11793
  slice: !1,
@@ -11808,7 +11809,7 @@ const Yg = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: s, dispatch: o, comm
11808
11809
  errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : i.options.enableContentCheck
11809
11810
  });
11810
11811
  };
11811
- function Ru(n, e) {
11812
+ function Du(n, e) {
11812
11813
  const t = It(e, n.schema), { from: r, to: i, empty: s } = n.selection, o = [];
11813
11814
  s ? (n.storedMarks && o.push(...n.storedMarks), o.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, i, (a) => {
11814
11815
  o.push(...a.marks);
@@ -11817,7 +11818,7 @@ function Ru(n, e) {
11817
11818
  return l ? { ...l.attrs } : {};
11818
11819
  }
11819
11820
  function Xg(n, e) {
11820
- const t = new Nc(n);
11821
+ const t = new Ac(n);
11821
11822
  return e.forEach((r) => {
11822
11823
  r.steps.forEach((i) => {
11823
11824
  t.step(i);
@@ -11856,12 +11857,12 @@ function ey(n, e) {
11856
11857
  function Co(n) {
11857
11858
  return (e) => ey(e.$from, n);
11858
11859
  }
11859
- function Lu(n, e) {
11860
+ function Ru(n, e) {
11860
11861
  const t = {
11861
11862
  from: 0,
11862
11863
  to: n.content.size
11863
11864
  };
11864
- return Ou(n, t, e);
11865
+ return Eu(n, t, e);
11865
11866
  }
11866
11867
  function ty(n, e) {
11867
11868
  const t = ce(e, n.schema), { from: r, to: i } = n.selection, s = [];
@@ -11873,7 +11874,7 @@ function ty(n, e) {
11873
11874
  }
11874
11875
  function Mo(n, e) {
11875
11876
  const t = Ii(typeof e == "string" ? e : e.name, n.schema);
11876
- return t === "node" ? ty(n, e) : t === "mark" ? Ru(n, e) : {};
11877
+ return t === "node" ? ty(n, e) : t === "mark" ? Du(n, e) : {};
11877
11878
  }
11878
11879
  function ny(n, e = JSON.stringify) {
11879
11880
  const t = {};
@@ -11999,10 +12000,10 @@ function Eo(n, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
11999
12000
  }
12000
12001
  return !1;
12001
12002
  }
12002
- function Pu(n) {
12003
+ function Lu(n) {
12003
12004
  return n instanceof I;
12004
12005
  }
12005
- function Bu(n, e, t) {
12006
+ function Pu(n, e, t) {
12006
12007
  const i = n.state.doc.content.size, s = ct(e, 0, i), o = ct(t, 0, i), l = n.coordsAtPos(s), a = n.coordsAtPos(o, -1), c = Math.min(l.top, a.top), u = Math.max(l.bottom, a.bottom), d = Math.min(l.left, a.left), f = Math.max(l.right, a.right), h = f - d, p = u - c, b = {
12007
12008
  top: c,
12008
12009
  bottom: u,
@@ -12044,7 +12045,7 @@ const ly = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12044
12045
  const { selection: s } = t, { empty: o, ranges: l } = s, a = It(n, r.schema);
12045
12046
  if (i)
12046
12047
  if (o) {
12047
- const c = Ru(r, a);
12048
+ const c = Du(r, a);
12048
12049
  t.addStoredMark(a.create({
12049
12050
  ...c,
12050
12051
  ...e
@@ -12459,7 +12460,7 @@ const Ty = re.create({
12459
12460
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
12460
12461
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
12461
12462
  };
12462
- return So() || Du() ? s : i;
12463
+ return So() || Iu() ? s : i;
12463
12464
  },
12464
12465
  addProseMirrorPlugins() {
12465
12466
  return [
@@ -12833,7 +12834,7 @@ let By = class extends Km {
12833
12834
  * @returns The new editor state
12834
12835
  */
12835
12836
  registerPlugin(e, t) {
12836
- const r = Eu(t) ? t(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r });
12837
+ const r = Tu(t) ? t(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r });
12837
12838
  return this.view.updateState(i), i;
12838
12839
  }
12839
12840
  /**
@@ -12909,8 +12910,8 @@ let By = class extends Km {
12909
12910
  }
12910
12911
  }), t = Fs(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
12911
12912
  }
12912
- const r = Nu(t, this.options.autofocus);
12913
- this.view = new fu(this.options.element, {
12913
+ const r = Au(t, this.options.autofocus);
12914
+ this.view = new du(this.options.element, {
12914
12915
  ...this.options.editorProps,
12915
12916
  attributes: {
12916
12917
  // add `role="textbox"` to the editor element
@@ -13023,7 +13024,7 @@ let By = class extends Km {
13023
13024
  const { blockSeparator: t = `
13024
13025
 
13025
13026
  `, textSerializers: r = {} } = e || {};
13026
- return Lu(this.state.doc, {
13027
+ return Ru(this.state.doc, {
13027
13028
  blockSeparator: t,
13028
13029
  textSerializers: {
13029
13030
  ...xo(this.schema),
@@ -13716,7 +13717,7 @@ class i0 {
13716
13717
  if (t && !s) {
13717
13718
  let o = t.pos;
13718
13719
  if (this.editorView.dragging && this.editorView.dragging.slice) {
13719
- let l = Mc(this.editorView.state.doc, o, this.editorView.dragging.slice);
13720
+ let l = Cc(this.editorView.state.doc, o, this.editorView.dragging.slice);
13720
13721
  l != null && (o = l);
13721
13722
  }
13722
13723
  this.setCursor(o), this.scheduleRemoval(5e3);
@@ -13894,7 +13895,7 @@ function a0() {
13894
13895
  }
13895
13896
  });
13896
13897
  }
13897
- const c0 = hu({
13898
+ const c0 = fu({
13898
13899
  ArrowLeft: kr("horiz", -1),
13899
13900
  ArrowRight: kr("horiz", 1),
13900
13901
  ArrowUp: kr("vert", -1),
@@ -13958,7 +13959,7 @@ const h0 = re.create({
13958
13959
  allowGapCursor: (e = $(O(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
13959
13960
  };
13960
13961
  }
13961
- }), zu = Te.create({
13962
+ }), Bu = Te.create({
13962
13963
  name: "hardBreak",
13963
13964
  addOptions() {
13964
13965
  return {
@@ -14087,9 +14088,9 @@ ae.prototype.map = function(e, t, r) {
14087
14088
  }, t, r), i;
14088
14089
  };
14089
14090
  ae.from = function(e) {
14090
- return e instanceof ae ? e : e && e.length ? new Fu(e) : ae.empty;
14091
+ return e instanceof ae ? e : e && e.length ? new zu(e) : ae.empty;
14091
14092
  };
14092
- var Fu = /* @__PURE__ */ function(n) {
14093
+ var zu = /* @__PURE__ */ function(n) {
14093
14094
  function e(r) {
14094
14095
  n.call(this), this.values = r;
14095
14096
  }
@@ -14121,7 +14122,7 @@ var Fu = /* @__PURE__ */ function(n) {
14121
14122
  return 0;
14122
14123
  }, Object.defineProperties(e.prototype, t), e;
14123
14124
  }(ae);
14124
- ae.empty = new Fu([]);
14125
+ ae.empty = new zu([]);
14125
14126
  var m0 = /* @__PURE__ */ function(n) {
14126
14127
  function e(t, r) {
14127
14128
  n.call(this), this.left = t, this.right = r, this.length = t.length + r.length, this.depth = Math.max(t.depth, r.depth) + 1;
@@ -14375,14 +14376,14 @@ function S0(n = {}) {
14375
14376
  props: {
14376
14377
  handleDOMEvents: {
14377
14378
  beforeinput(e, t) {
14378
- let r = t.inputType, i = r == "historyUndo" ? Hu : r == "historyRedo" ? Vu : null;
14379
+ let r = t.inputType, i = r == "historyUndo" ? $u : r == "historyRedo" ? Hu : null;
14379
14380
  return i ? (t.preventDefault(), i(e.state, e.dispatch)) : !1;
14380
14381
  }
14381
14382
  }
14382
14383
  }
14383
14384
  });
14384
14385
  }
14385
- function $u(n, e) {
14386
+ function Fu(n, e) {
14386
14387
  return (t, r) => {
14387
14388
  let i = Kt.getState(t);
14388
14389
  if (!i || (n ? i.undone : i.done).eventCount == 0)
@@ -14394,7 +14395,7 @@ function $u(n, e) {
14394
14395
  return !0;
14395
14396
  };
14396
14397
  }
14397
- const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14398
+ const $u = Fu(!1, !0), Hu = Fu(!0, !0), C0 = re.create({
14398
14399
  name: "history",
14399
14400
  addOptions() {
14400
14401
  return {
@@ -14404,8 +14405,8 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14404
14405
  },
14405
14406
  addCommands() {
14406
14407
  return {
14407
- undo: () => ({ state: n, dispatch: e }) => Hu(n, e),
14408
- redo: () => ({ state: n, dispatch: e }) => Vu(n, e)
14408
+ undo: () => ({ state: n, dispatch: e }) => $u(n, e),
14409
+ redo: () => ({ state: n, dispatch: e }) => Hu(n, e)
14409
14410
  };
14410
14411
  },
14411
14412
  addProseMirrorPlugins() {
@@ -14448,7 +14449,7 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14448
14449
  to: i.pos
14449
14450
  }, {
14450
14451
  type: this.name
14451
- }) : Pu(t) ? s.insertContentAt(i.pos, {
14452
+ }) : Lu(t) ? s.insertContentAt(i.pos, {
14452
14453
  type: this.name
14453
14454
  }) : s.insertContent({ type: this.name }), s.command(({ tr: o, dispatch: l }) => {
14454
14455
  var a;
@@ -14634,7 +14635,7 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14634
14635
  n
14635
14636
  ];
14636
14637
  }
14637
- }), ju = Te.create({
14638
+ }), Vu = Te.create({
14638
14639
  name: "paragraph",
14639
14640
  priority: 1e3,
14640
14641
  addOptions() {
@@ -14725,13 +14726,13 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14725
14726
  name: "starterKit",
14726
14727
  addExtensions() {
14727
14728
  const n = [];
14728
- return this.options.bold !== !1 && n.push(qy.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(jy.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push(Gy.configure(this.options.bulletList)), this.options.code !== !1 && n.push(Qy.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(t0.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(n0.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(s0.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(h0.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(zu.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(p0.configure(this.options.heading)), this.options.history !== !1 && n.push(C0.configure(this.options.history)), this.options.horizontalRule !== !1 && n.push(M0.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(N0.configure(this.options.italic)), this.options.listItem !== !1 && n.push(I0.configure(this.options.listItem)), this.options.orderedList !== !1 && n.push(R0.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(ju.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(B0.configure(this.options.strike)), this.options.text !== !1 && n.push(z0.configure(this.options.text)), n;
14729
+ return this.options.bold !== !1 && n.push(qy.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(jy.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push(Gy.configure(this.options.bulletList)), this.options.code !== !1 && n.push(Qy.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(t0.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(n0.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(s0.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(h0.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(Bu.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(p0.configure(this.options.heading)), this.options.history !== !1 && n.push(C0.configure(this.options.history)), this.options.horizontalRule !== !1 && n.push(M0.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(N0.configure(this.options.italic)), this.options.listItem !== !1 && n.push(I0.configure(this.options.listItem)), this.options.orderedList !== !1 && n.push(R0.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(Vu.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(B0.configure(this.options.strike)), this.options.text !== !1 && n.push(z0.configure(this.options.text)), n;
14729
14730
  }
14730
14731
  });
14731
- var $0 = "tippy-box", _u = "tippy-content", H0 = "tippy-backdrop", Wu = "tippy-arrow", Ku = "tippy-svg-arrow", Lt = {
14732
+ var $0 = "tippy-box", ju = "tippy-content", H0 = "tippy-backdrop", _u = "tippy-arrow", Wu = "tippy-svg-arrow", Lt = {
14732
14733
  passive: !0,
14733
14734
  capture: !0
14734
- }, Uu = function() {
14735
+ }, Ku = function() {
14735
14736
  return document.body;
14736
14737
  };
14737
14738
  function V0(n, e) {
@@ -14748,7 +14749,7 @@ function Ao(n, e) {
14748
14749
  var t = {}.toString.call(n);
14749
14750
  return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
14750
14751
  }
14751
- function qu(n, e) {
14752
+ function Uu(n, e) {
14752
14753
  return typeof n == "function" ? n.apply(void 0, e) : n;
14753
14754
  }
14754
14755
  function ka(n, e) {
@@ -14855,11 +14856,11 @@ var Ge = {
14855
14856
  isTouch: !1
14856
14857
  }, Ca = 0;
14857
14858
  function Q0() {
14858
- Ge.isTouch || (Ge.isTouch = !0, window.performance && document.addEventListener("mousemove", Ju));
14859
+ Ge.isTouch || (Ge.isTouch = !0, window.performance && document.addEventListener("mousemove", qu));
14859
14860
  }
14860
- function Ju() {
14861
+ function qu() {
14861
14862
  var n = performance.now();
14862
- n - Ca < 20 && (Ge.isTouch = !1, document.removeEventListener("mousemove", Ju)), Ca = n;
14863
+ n - Ca < 20 && (Ge.isTouch = !1, document.removeEventListener("mousemove", qu)), Ca = n;
14863
14864
  }
14864
14865
  function Z0() {
14865
14866
  var n = document.activeElement;
@@ -14892,7 +14893,7 @@ function rb(n) {
14892
14893
  %c👷‍ This is a development-only message. It will be removed in production.
14893
14894
  `);
14894
14895
  }
14895
- function Gu(n) {
14896
+ function Ju(n) {
14896
14897
  return [
14897
14898
  rb(n),
14898
14899
  // title
@@ -14911,20 +14912,20 @@ function ib() {
14911
14912
  function lt(n, e) {
14912
14913
  if (n && !Qn.has(e)) {
14913
14914
  var t;
14914
- Qn.add(e), (t = console).warn.apply(t, Gu(e));
14915
+ Qn.add(e), (t = console).warn.apply(t, Ju(e));
14915
14916
  }
14916
14917
  }
14917
14918
  function Vs(n, e) {
14918
14919
  if (n && !Qn.has(e)) {
14919
14920
  var t;
14920
- Qn.add(e), (t = console).error.apply(t, Gu(e));
14921
+ Qn.add(e), (t = console).error.apply(t, Ju(e));
14921
14922
  }
14922
14923
  }
14923
14924
  function sb(n) {
14924
14925
  var e = !n, t = Object.prototype.toString.call(n) === "[object Object]" && !n.addEventListener;
14925
14926
  Vs(e, ["tippy() was passed", "`" + String(n) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Vs(t, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
14926
14927
  }
14927
- var Yu = {
14928
+ var Gu = {
14928
14929
  animateFill: !1,
14929
14930
  followCursor: !1,
14930
14931
  inlinePositioning: !1,
@@ -14940,7 +14941,7 @@ var Yu = {
14940
14941
  theme: "",
14941
14942
  zIndex: 9999
14942
14943
  }, Ae = Object.assign({
14943
- appendTo: Uu,
14944
+ appendTo: Ku,
14944
14945
  aria: {
14945
14946
  content: "auto",
14946
14947
  expanded: "auto"
@@ -14987,14 +14988,14 @@ var Yu = {
14987
14988
  touch: !0,
14988
14989
  trigger: "mouseenter focus",
14989
14990
  triggerTarget: null
14990
- }, Yu, ob), lb = Object.keys(Ae), ab = function(e) {
14991
- process.env.NODE_ENV !== "production" && Qu(e, []);
14991
+ }, Gu, ob), lb = Object.keys(Ae), ab = function(e) {
14992
+ process.env.NODE_ENV !== "production" && Xu(e, []);
14992
14993
  var t = Object.keys(e);
14993
14994
  t.forEach(function(r) {
14994
14995
  Ae[r] = e[r];
14995
14996
  });
14996
14997
  };
14997
- function Xu(n) {
14998
+ function Yu(n) {
14998
14999
  var e = n.plugins || [], t = e.reduce(function(r, i) {
14999
15000
  var s = i.name, o = i.defaultValue;
15000
15001
  if (s) {
@@ -15006,7 +15007,7 @@ function Xu(n) {
15006
15007
  return Object.assign({}, n, t);
15007
15008
  }
15008
15009
  function cb(n, e) {
15009
- var t = e ? Object.keys(Xu(Object.assign({}, Ae, {
15010
+ var t = e ? Object.keys(Yu(Object.assign({}, Ae, {
15010
15011
  plugins: e
15011
15012
  }))) : lb, r = t.reduce(function(i, s) {
15012
15013
  var o = (n.getAttribute("data-tippy-" + s) || "").trim();
@@ -15026,18 +15027,18 @@ function cb(n, e) {
15026
15027
  }
15027
15028
  function Ta(n, e) {
15028
15029
  var t = Object.assign({}, e, {
15029
- content: qu(e.content, [n])
15030
+ content: Uu(e.content, [n])
15030
15031
  }, e.ignoreAttributes ? {} : cb(n, e.plugins));
15031
15032
  return t.aria = Object.assign({}, Ae.aria, t.aria), t.aria = {
15032
15033
  expanded: t.aria.expanded === "auto" ? e.interactive : t.aria.expanded,
15033
15034
  content: t.aria.content === "auto" ? e.interactive ? null : "describedby" : t.aria.content
15034
15035
  }, t;
15035
15036
  }
15036
- function Qu(n, e) {
15037
+ function Xu(n, e) {
15037
15038
  n === void 0 && (n = {}), e === void 0 && (e = []);
15038
15039
  var t = Object.keys(n);
15039
15040
  t.forEach(function(r) {
15040
- var i = j0(Ae, Object.keys(Yu)), s = !V0(i, r);
15041
+ var i = j0(Ae, Object.keys(Gu)), s = !V0(i, r);
15041
15042
  s && (s = e.filter(function(o) {
15042
15043
  return o.name === r;
15043
15044
  }).length === 0), lt(s, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -15054,7 +15055,7 @@ function js(n, e) {
15054
15055
  }
15055
15056
  function Ea(n) {
15056
15057
  var e = Rn();
15057
- return n === !0 ? e.className = Wu : (e.className = Ku, Xn(n) ? e.appendChild(n) : js(e, n)), e;
15058
+ return n === !0 ? e.className = _u : (e.className = Wu, Xn(n) ? e.appendChild(n) : js(e, n)), e;
15058
15059
  }
15059
15060
  function Oa(n, e) {
15060
15061
  Xn(e.content) ? (js(n, ""), n.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? js(n, e.content) : n.textContent = e.content);
@@ -15064,21 +15065,21 @@ function _s(n) {
15064
15065
  return {
15065
15066
  box: e,
15066
15067
  content: t.find(function(r) {
15067
- return r.classList.contains(_u);
15068
+ return r.classList.contains(ju);
15068
15069
  }),
15069
15070
  arrow: t.find(function(r) {
15070
- return r.classList.contains(Wu) || r.classList.contains(Ku);
15071
+ return r.classList.contains(_u) || r.classList.contains(Wu);
15071
15072
  }),
15072
15073
  backdrop: t.find(function(r) {
15073
15074
  return r.classList.contains(H0);
15074
15075
  })
15075
15076
  };
15076
15077
  }
15077
- function Zu(n) {
15078
+ function Qu(n) {
15078
15079
  var e = Rn(), t = Rn();
15079
15080
  t.className = $0, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
15080
15081
  var r = Rn();
15081
- r.className = _u, r.setAttribute("data-state", "hidden"), Oa(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
15082
+ r.className = ju, r.setAttribute("data-state", "hidden"), Oa(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
15082
15083
  function i(s, o) {
15083
15084
  var l = _s(e), a = l.box, c = l.content, u = l.arrow;
15084
15085
  o.theme ? a.setAttribute("data-theme", o.theme) : a.removeAttribute("data-theme"), typeof o.animation == "string" ? a.setAttribute("data-animation", o.animation) : a.removeAttribute("data-animation"), o.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof o.maxWidth == "number" ? o.maxWidth + "px" : o.maxWidth, o.role ? a.setAttribute("role", o.role) : a.removeAttribute("role"), (s.content !== o.content || s.allowHTML !== o.allowHTML) && Oa(c, n.props), o.arrow ? u ? s.arrow !== o.arrow && (a.removeChild(u), a.appendChild(Ea(o.arrow))) : a.appendChild(Ea(o.arrow)) : u && a.removeChild(u);
@@ -15088,10 +15089,10 @@ function Zu(n) {
15088
15089
  onUpdate: i
15089
15090
  };
15090
15091
  }
15091
- Zu.$$tippy = !0;
15092
+ Qu.$$tippy = !0;
15092
15093
  var db = 1, xr = [], ds = [];
15093
15094
  function fb(n, e) {
15094
- var t = Ta(n, Object.assign({}, Ae, Xu(va(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, h = [], p = ka(qo, t.interactiveDebounce), m, y = db++, b = null, C = W0(t.plugins), M = {
15095
+ var t = Ta(n, Object.assign({}, Ae, Yu(va(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, h = [], p = ka(qo, t.interactiveDebounce), m, y = db++, b = null, C = W0(t.plugins), M = {
15095
15096
  // Is the instance currently enabled?
15096
15097
  isEnabled: !0,
15097
15098
  // Is the tippy currently showing and not transitioning out?
@@ -15112,16 +15113,16 @@ function fb(n, e) {
15112
15113
  state: M,
15113
15114
  plugins: C,
15114
15115
  // methods
15115
- clearDelayTimeouts: yd,
15116
- setProps: bd,
15117
- setContent: kd,
15118
- show: xd,
15119
- hide: vd,
15120
- hideWithInteractivity: wd,
15121
- enable: md,
15122
- disable: gd,
15123
- unmount: Sd,
15124
- destroy: Cd
15116
+ clearDelayTimeouts: gd,
15117
+ setProps: yd,
15118
+ setContent: bd,
15119
+ show: kd,
15120
+ hide: xd,
15121
+ hideWithInteractivity: vd,
15122
+ enable: pd,
15123
+ disable: md,
15124
+ unmount: wd,
15125
+ destroy: Sd
15125
15126
  };
15126
15127
  if (!t.render)
15127
15128
  return process.env.NODE_ENV !== "production" && Vs(!0, "render() function has not been supplied."), g;
@@ -15229,12 +15230,12 @@ function fb(n, e) {
15229
15230
  var k = et();
15230
15231
  k.removeEventListener("mousedown", ar, !0), k.removeEventListener("touchend", ar, Lt), k.removeEventListener("touchstart", Vo, Lt), k.removeEventListener("touchmove", Ho, Lt);
15231
15232
  }
15232
- function fd(k, A) {
15233
+ function dd(k, A) {
15233
15234
  _o(k, function() {
15234
15235
  !g.state.isVisible && x.parentNode && x.parentNode.contains(x) && A();
15235
15236
  });
15236
15237
  }
15237
- function hd(k, A) {
15238
+ function fd(k, A) {
15238
15239
  _o(k, A);
15239
15240
  }
15240
15241
  function _o(k, A) {
@@ -15336,7 +15337,7 @@ function fb(n, e) {
15336
15337
  fn: function(ur) {
15337
15338
  var tn = ur.state;
15338
15339
  if (se()) {
15339
- var Md = We(), zi = Md.box;
15340
+ var Cd = We(), zi = Cd.box;
15340
15341
  ["placement", "reference-hidden", "escaped"].forEach(function(dr) {
15341
15342
  dr === "placement" ? zi.setAttribute("data-placement", tn.placement) : tn.attributes.popper["data-popper-" + dr] ? zi.setAttribute("data-" + dr, "") : zi.removeAttribute("data-" + dr);
15342
15343
  }), tn.attributes.popper = {};
@@ -15374,7 +15375,7 @@ function fb(n, e) {
15374
15375
  element: Re,
15375
15376
  padding: 3
15376
15377
  }
15377
- }), Dt.push.apply(Dt, A?.modifiers || []), g.popperInstance = zd(en, x, Object.assign({}, A, {
15378
+ }), Dt.push.apply(Dt, A?.modifiers || []), g.popperInstance = Bd(en, x, Object.assign({}, A, {
15378
15379
  placement: D,
15379
15380
  onFirstUpdate: f,
15380
15381
  modifiers: Dt
@@ -15383,9 +15384,9 @@ function fb(n, e) {
15383
15384
  function Qo() {
15384
15385
  g.popperInstance && (g.popperInstance.destroy(), g.popperInstance = null);
15385
15386
  }
15386
- function pd() {
15387
+ function hd() {
15387
15388
  var k = g.props.appendTo, A, D = X();
15388
- g.props.interactive && k === Uu || k === "parent" ? A = D.parentNode : A = qu(k, [D]), A.contains(x) || A.appendChild(x), g.state.isMounted = !0, Xo(), process.env.NODE_ENV !== "production" && lt(g.props.interactive && k === Ae.appendTo && D.nextElementSibling !== x, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
15389
+ g.props.interactive && k === Ku || k === "parent" ? A = D.parentNode : A = Uu(k, [D]), A.contains(x) || A.appendChild(x), g.state.isMounted = !0, Xo(), process.env.NODE_ENV !== "production" && lt(g.props.interactive && k === Ae.appendTo && D.nextElementSibling !== x, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
15389
15390
 
15390
15391
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
15391
15392
 
@@ -15417,16 +15418,16 @@ function fb(n, e) {
15417
15418
  });
15418
15419
  }
15419
15420
  }
15420
- function md() {
15421
+ function pd() {
15421
15422
  g.state.isEnabled = !0;
15422
15423
  }
15423
- function gd() {
15424
+ function md() {
15424
15425
  g.hide(), g.state.isEnabled = !1;
15425
15426
  }
15426
- function yd() {
15427
+ function gd() {
15427
15428
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(s);
15428
15429
  }
15429
- function bd(k) {
15430
+ function yd(k) {
15430
15431
  if (process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("setProps")), !g.state.isDestroyed) {
15431
15432
  De("onBeforeUpdate", [g, k]), Ko();
15432
15433
  var A = g.props, D = Ta(n, Object.assign({}, A, va(k), {
@@ -15439,12 +15440,12 @@ function fb(n, e) {
15439
15440
  })), De("onAfterUpdate", [g, k]);
15440
15441
  }
15441
15442
  }
15442
- function kd(k) {
15443
+ function bd(k) {
15443
15444
  g.setProps({
15444
15445
  content: k
15445
15446
  });
15446
15447
  }
15447
- function xd() {
15448
+ function kd() {
15448
15449
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("show"));
15449
15450
  var k = g.state.isVisible, A = g.state.isDestroyed, D = !g.state.isEnabled, W = Ge.isTouch && !g.props.touch, _ = as(g.props.duration, 0, Ae.duration);
15450
15451
  if (!(k || A || D || W) && !X().hasAttribute("disabled") && (De("onShow", [g], !1), g.props.onShow(g) !== !1)) {
@@ -15459,14 +15460,14 @@ function fb(n, e) {
15459
15460
  var Bi = We(), ur = Bi.box, tn = Bi.content;
15460
15461
  cs([ur, tn], _), wa([ur, tn], "visible");
15461
15462
  }
15462
- $o(), vn(), xa(ds, g), (Dt = g.popperInstance) == null || Dt.forceUpdate(), De("onMount", [g]), g.props.animation && se() && hd(_, function() {
15463
+ $o(), vn(), xa(ds, g), (Dt = g.popperInstance) == null || Dt.forceUpdate(), De("onMount", [g]), g.props.animation && se() && fd(_, function() {
15463
15464
  g.state.isShown = !0, De("onShown", [g]);
15464
15465
  });
15465
15466
  }
15466
- }, pd();
15467
+ }, hd();
15467
15468
  }
15468
15469
  }
15469
- function vd() {
15470
+ function xd() {
15470
15471
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("hide"));
15471
15472
  var k = !g.state.isVisible, A = g.state.isDestroyed, D = !g.state.isEnabled, W = as(g.props.duration, 1, Ae.duration);
15472
15473
  if (!(k || A || D) && (De("onHide", [g], !1), g.props.onHide(g) !== !1)) {
@@ -15474,27 +15475,27 @@ function fb(n, e) {
15474
15475
  var _ = We(), xe = _.box, Re = _.content;
15475
15476
  g.props.animation && (cs([xe, Re], W), wa([xe, Re], "hidden"));
15476
15477
  }
15477
- $o(), vn(), g.props.animation ? se() && fd(W, g.unmount) : g.unmount();
15478
+ $o(), vn(), g.props.animation ? se() && dd(W, g.unmount) : g.unmount();
15478
15479
  }
15479
15480
  }
15480
- function wd(k) {
15481
+ function vd(k) {
15481
15482
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("hideWithInteractivity")), et().addEventListener("mousemove", p), xa(xr, p), p(k);
15482
15483
  }
15483
- function Sd() {
15484
+ function wd() {
15484
15485
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Qo(), Pi().forEach(function(k) {
15485
15486
  k._tippy.unmount();
15486
15487
  }), x.parentNode && x.parentNode.removeChild(x), ds = ds.filter(function(k) {
15487
15488
  return k !== g;
15488
15489
  }), g.state.isMounted = !1, De("onHidden", [g]));
15489
15490
  }
15490
- function Cd() {
15491
+ function Sd() {
15491
15492
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("destroy")), !g.state.isDestroyed && (g.clearDelayTimeouts(), g.unmount(), Ko(), delete n._tippy, g.state.isDestroyed = !0, De("onDestroy", [g]));
15492
15493
  }
15493
15494
  }
15494
15495
  function xn(n, e) {
15495
15496
  e === void 0 && (e = {});
15496
15497
  var t = Ae.plugins.concat(e.plugins || []);
15497
- process.env.NODE_ENV !== "production" && (sb(n), Qu(e, t)), eb();
15498
+ process.env.NODE_ENV !== "production" && (sb(n), Xu(e, t)), eb();
15498
15499
  var r = Object.assign({}, e, {
15499
15500
  plugins: t
15500
15501
  }), i = G0(n);
@@ -15516,7 +15517,7 @@ function xn(n, e) {
15516
15517
  xn.defaultProps = Ae;
15517
15518
  xn.setDefaultProps = ab;
15518
15519
  xn.currentInput = Ge;
15519
- Object.assign({}, Fd, {
15520
+ Object.assign({}, zd, {
15520
15521
  effect: function(e) {
15521
15522
  var t = e.state, r = {
15522
15523
  popper: {
@@ -15534,7 +15535,7 @@ Object.assign({}, Fd, {
15534
15535
  }
15535
15536
  });
15536
15537
  xn.setDefaultProps({
15537
- render: Zu
15538
+ render: Qu
15538
15539
  });
15539
15540
  class hb {
15540
15541
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: s = 250, shouldShow: o }) {
@@ -15582,7 +15583,7 @@ class hb {
15582
15583
  }
15583
15584
  (f = this.tippy) === null || f === void 0 || f.setProps({
15584
15585
  getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
15585
- if (Pu(p.selection)) {
15586
+ if (Lu(p.selection)) {
15586
15587
  let x = l.nodeDOM(M);
15587
15588
  if (x) {
15588
15589
  const P = x.dataset.nodeViewWrapper ? x : x.querySelector("[data-node-view-wrapper]");
@@ -15590,7 +15591,7 @@ class hb {
15590
15591
  return x.getBoundingClientRect();
15591
15592
  }
15592
15593
  }
15593
- return Bu(l, M, g);
15594
+ return Pu(l, M, g);
15594
15595
  })
15595
15596
  }), this.show();
15596
15597
  }, this.editor = e, this.element = t, this.view = r, this.updateDelay = s, o && (this.shouldShow = o), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
@@ -15630,7 +15631,7 @@ class hb {
15630
15631
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
15631
15632
  }
15632
15633
  }
15633
- const ed = (n) => new Q({
15634
+ const Zu = (n) => new Q({
15634
15635
  key: typeof n.pluginKey == "string" ? new me(n.pluginKey) : n.pluginKey,
15635
15636
  view: (e) => new hb({ view: e, ...n })
15636
15637
  });
@@ -15647,7 +15648,7 @@ re.create({
15647
15648
  },
15648
15649
  addProseMirrorPlugins() {
15649
15650
  return this.options.element ? [
15650
- ed({
15651
+ Zu({
15651
15652
  pluginKey: this.options.pluginKey,
15652
15653
  editor: this.editor,
15653
15654
  element: this.options.element,
@@ -15660,7 +15661,7 @@ re.create({
15660
15661
  });
15661
15662
  class pb {
15662
15663
  getTextContent(e) {
15663
- return Lu(e, { textSerializers: xo(this.editor.schema) });
15664
+ return Ru(e, { textSerializers: xo(this.editor.schema) });
15664
15665
  }
15665
15666
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, shouldShow: s }) {
15666
15667
  this.preventHide = !1, this.shouldShow = ({ view: o, state: l }) => {
@@ -15709,7 +15710,7 @@ class pb {
15709
15710
  return;
15710
15711
  }
15711
15712
  (i = this.tippy) === null || i === void 0 || i.setProps({
15712
- getReferenceClientRect: ((s = this.tippyOptions) === null || s === void 0 ? void 0 : s.getReferenceClientRect) || (() => Bu(e, c, u))
15713
+ getReferenceClientRect: ((s = this.tippyOptions) === null || s === void 0 ? void 0 : s.getReferenceClientRect) || (() => Pu(e, c, u))
15713
15714
  }), this.show();
15714
15715
  }
15715
15716
  show() {
@@ -15725,7 +15726,7 @@ class pb {
15725
15726
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
15726
15727
  }
15727
15728
  }
15728
- const td = (n) => new Q({
15729
+ const ed = (n) => new Q({
15729
15730
  key: typeof n.pluginKey == "string" ? new me(n.pluginKey) : n.pluginKey,
15730
15731
  view: (e) => new pb({ view: e, ...n })
15731
15732
  });
@@ -15741,7 +15742,7 @@ re.create({
15741
15742
  },
15742
15743
  addProseMirrorPlugins() {
15743
15744
  return this.options.element ? [
15744
- td({
15745
+ ed({
15745
15746
  pluginKey: this.options.pluginKey,
15746
15747
  editor: this.editor,
15747
15748
  element: this.options.element,
@@ -15779,7 +15780,7 @@ de({
15779
15780
  const t = J(null);
15780
15781
  return rr(() => {
15781
15782
  const { updateDelay: r, editor: i, pluginKey: s, shouldShow: o, tippyOptions: l } = n;
15782
- i.registerPlugin(ed({
15783
+ i.registerPlugin(Zu({
15783
15784
  updateDelay: r,
15784
15785
  editor: i,
15785
15786
  element: t.value,
@@ -15797,7 +15798,7 @@ de({
15797
15798
  }
15798
15799
  });
15799
15800
  function Aa(n) {
15800
- return Ld((e, t) => ({
15801
+ return Rd((e, t) => ({
15801
15802
  get() {
15802
15803
  return e(), n;
15803
15804
  },
@@ -15814,7 +15815,7 @@ class mb extends By {
15814
15815
  constructor(e = {}) {
15815
15816
  return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Aa(this.view.state), this.reactiveExtensionStorage = Aa(this.extensionStorage), this.on("beforeTransaction", ({ nextState: t }) => {
15816
15817
  this.reactiveState.value = t, this.reactiveExtensionStorage.value = this.extensionStorage;
15817
- }), Rd(this);
15818
+ }), Dd(this);
15818
15819
  }
15819
15820
  get state() {
15820
15821
  return this.reactiveState ? this.reactiveState.value : this.view.state;
@@ -15846,8 +15847,8 @@ const gb = de({
15846
15847
  }
15847
15848
  },
15848
15849
  setup(n) {
15849
- const e = J(), t = Id();
15850
- return Dd(() => {
15850
+ const e = J(), t = Nd();
15851
+ return Id(() => {
15851
15852
  const r = n.editor;
15852
15853
  r && r.options.element && e.value && yi(() => {
15853
15854
  if (!e.value || !r.options.element.firstChild)
@@ -15902,7 +15903,7 @@ de({
15902
15903
  const t = J(null);
15903
15904
  return rr(() => {
15904
15905
  const { pluginKey: r, editor: i, tippyOptions: s, shouldShow: o } = n;
15905
- i.registerPlugin(td({
15906
+ i.registerPlugin(ed({
15906
15907
  pluginKey: r,
15907
15908
  editor: i,
15908
15909
  element: t.value,
@@ -15959,7 +15960,7 @@ de({
15959
15960
  }
15960
15961
  });
15961
15962
  const yb = (n = {}) => {
15962
- const e = Nd();
15963
+ const e = Ad();
15963
15964
  return rr(() => {
15964
15965
  e.value = new mb(n);
15965
15966
  }), bi(() => {
@@ -15967,18 +15968,18 @@ const yb = (n = {}) => {
15967
15968
  const s = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, o = s?.cloneNode(!0);
15968
15969
  (r = s?.parentNode) === null || r === void 0 || r.replaceChild(o, s), (i = e.value) === null || i === void 0 || i.destroy();
15969
15970
  }), e;
15970
- }, bb = zu.extend({
15971
+ }, bb = Bu.extend({
15971
15972
  addKeyboardShortcuts() {
15972
15973
  return {
15973
15974
  "Shift-Enter": () => this.editor.commands.setHardBreak()
15974
15975
  };
15975
15976
  }
15976
- }), kb = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", xb = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Ws = "numeric", Ks = "ascii", Us = "alpha", Ln = "asciinumeric", On = "alphanumeric", qs = "domain", nd = "emoji", vb = "scheme", wb = "slashscheme", fs = "whitespace";
15977
+ }), kb = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", xb = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Ws = "numeric", Ks = "ascii", Us = "alpha", Ln = "asciinumeric", On = "alphanumeric", qs = "domain", td = "emoji", vb = "scheme", wb = "slashscheme", fs = "whitespace";
15977
15978
  function Sb(n, e) {
15978
15979
  return n in e || (e[n] = []), e[n];
15979
15980
  }
15980
15981
  function $t(n, e, t) {
15981
- e[Ws] && (e[Ln] = !0, e[On] = !0), e[Ks] && (e[Ln] = !0, e[Us] = !0), e[Ln] && (e[On] = !0), e[Us] && (e[On] = !0), e[On] && (e[qs] = !0), e[nd] && (e[qs] = !0);
15982
+ e[Ws] && (e[Ln] = !0, e[On] = !0), e[Ks] && (e[Ln] = !0, e[Us] = !0), e[Ln] && (e[On] = !0), e[Us] && (e[On] = !0), e[On] && (e[qs] = !0), e[td] && (e[qs] = !0);
15982
15983
  for (const r in e) {
15983
15984
  const i = Sb(r, t);
15984
15985
  i.indexOf(n) < 0 && i.push(n);
@@ -16114,13 +16115,13 @@ Ce.prototype = {
16114
16115
  return i.j[n] = o, o;
16115
16116
  }
16116
16117
  };
16117
- const F = (n, e, t, r, i) => n.ta(e, t, r, i), G = (n, e, t, r, i) => n.tr(e, t, r, i), Na = (n, e, t, r, i) => n.ts(e, t, r, i), w = (n, e, t, r, i) => n.tt(e, t, r, i), st = "WORD", Js = "UWORD", rd = "ASCIINUMERICAL", id = "ALPHANUMERICAL", Zn = "LOCALHOST", Gs = "TLD", Ys = "UTLD", Or = "SCHEME", cn = "SLASH_SCHEME", No = "NUM", Xs = "WS", Io = "NL", Pn = "OPENBRACE", Bn = "CLOSEBRACE", Wr = "OPENBRACKET", Kr = "CLOSEBRACKET", Ur = "OPENPAREN", qr = "CLOSEPAREN", Jr = "OPENANGLEBRACKET", Gr = "CLOSEANGLEBRACKET", Yr = "FULLWIDTHLEFTPAREN", Xr = "FULLWIDTHRIGHTPAREN", Qr = "LEFTCORNERBRACKET", Zr = "RIGHTCORNERBRACKET", ei = "LEFTWHITECORNERBRACKET", ti = "RIGHTWHITECORNERBRACKET", ni = "FULLWIDTHLESSTHAN", ri = "FULLWIDTHGREATERTHAN", ii = "AMPERSAND", si = "APOSTROPHE", oi = "ASTERISK", gt = "AT", li = "BACKSLASH", ai = "BACKTICK", ci = "CARET", bt = "COLON", Do = "COMMA", ui = "DOLLAR", qe = "DOT", di = "EQUALS", Ro = "EXCLAMATION", Pe = "HYPHEN", zn = "PERCENT", fi = "PIPE", hi = "PLUS", pi = "POUND", Fn = "QUERY", Lo = "QUOTE", sd = "FULLWIDTHMIDDLEDOT", Po = "SEMI", Je = "SLASH", $n = "TILDE", mi = "UNDERSCORE", od = "EMOJI", gi = "SYM";
16118
- var ld = /* @__PURE__ */ Object.freeze({
16118
+ const F = (n, e, t, r, i) => n.ta(e, t, r, i), G = (n, e, t, r, i) => n.tr(e, t, r, i), Na = (n, e, t, r, i) => n.ts(e, t, r, i), w = (n, e, t, r, i) => n.tt(e, t, r, i), st = "WORD", Js = "UWORD", nd = "ASCIINUMERICAL", rd = "ALPHANUMERICAL", Zn = "LOCALHOST", Gs = "TLD", Ys = "UTLD", Or = "SCHEME", cn = "SLASH_SCHEME", No = "NUM", Xs = "WS", Io = "NL", Pn = "OPENBRACE", Bn = "CLOSEBRACE", Wr = "OPENBRACKET", Kr = "CLOSEBRACKET", Ur = "OPENPAREN", qr = "CLOSEPAREN", Jr = "OPENANGLEBRACKET", Gr = "CLOSEANGLEBRACKET", Yr = "FULLWIDTHLEFTPAREN", Xr = "FULLWIDTHRIGHTPAREN", Qr = "LEFTCORNERBRACKET", Zr = "RIGHTCORNERBRACKET", ei = "LEFTWHITECORNERBRACKET", ti = "RIGHTWHITECORNERBRACKET", ni = "FULLWIDTHLESSTHAN", ri = "FULLWIDTHGREATERTHAN", ii = "AMPERSAND", si = "APOSTROPHE", oi = "ASTERISK", gt = "AT", li = "BACKSLASH", ai = "BACKTICK", ci = "CARET", bt = "COLON", Do = "COMMA", ui = "DOLLAR", qe = "DOT", di = "EQUALS", Ro = "EXCLAMATION", Pe = "HYPHEN", zn = "PERCENT", fi = "PIPE", hi = "PLUS", pi = "POUND", Fn = "QUERY", Lo = "QUOTE", id = "FULLWIDTHMIDDLEDOT", Po = "SEMI", Je = "SLASH", $n = "TILDE", mi = "UNDERSCORE", sd = "EMOJI", gi = "SYM";
16119
+ var od = /* @__PURE__ */ Object.freeze({
16119
16120
  __proto__: null,
16120
- ALPHANUMERICAL: id,
16121
+ ALPHANUMERICAL: rd,
16121
16122
  AMPERSAND: ii,
16122
16123
  APOSTROPHE: si,
16123
- ASCIINUMERICAL: rd,
16124
+ ASCIINUMERICAL: nd,
16124
16125
  ASTERISK: oi,
16125
16126
  AT: gt,
16126
16127
  BACKSLASH: li,
@@ -16134,13 +16135,13 @@ var ld = /* @__PURE__ */ Object.freeze({
16134
16135
  COMMA: Do,
16135
16136
  DOLLAR: ui,
16136
16137
  DOT: qe,
16137
- EMOJI: od,
16138
+ EMOJI: sd,
16138
16139
  EQUALS: di,
16139
16140
  EXCLAMATION: Ro,
16140
16141
  FULLWIDTHGREATERTHAN: ri,
16141
16142
  FULLWIDTHLEFTPAREN: Yr,
16142
16143
  FULLWIDTHLESSTHAN: ni,
16143
- FULLWIDTHMIDDLEDOT: sd,
16144
+ FULLWIDTHMIDDLEDOT: id,
16144
16145
  FULLWIDTHRIGHTPAREN: Xr,
16145
16146
  HYPHEN: Pe,
16146
16147
  LEFTCORNERBRACKET: Qr,
@@ -16180,14 +16181,14 @@ function Eb(n = []) {
16180
16181
  const e = {};
16181
16182
  Ce.groups = e;
16182
16183
  const t = new Ce();
16183
- vr == null && (vr = Da(kb)), wr == null && (wr = Da(xb)), w(t, "'", si), w(t, "{", Pn), w(t, "}", Bn), w(t, "[", Wr), w(t, "]", Kr), w(t, "(", Ur), w(t, ")", qr), w(t, "<", Jr), w(t, ">", Gr), w(t, "(", Yr), w(t, ")", Xr), w(t, "「", Qr), w(t, "」", Zr), w(t, "『", ei), w(t, "』", ti), w(t, "<", ni), w(t, ">", ri), w(t, "&", ii), w(t, "*", oi), w(t, "@", gt), w(t, "`", ai), w(t, "^", ci), w(t, ":", bt), w(t, ",", Do), w(t, "$", ui), w(t, ".", qe), w(t, "=", di), w(t, "!", Ro), w(t, "-", Pe), w(t, "%", zn), w(t, "|", fi), w(t, "+", hi), w(t, "#", pi), w(t, "?", Fn), w(t, '"', Lo), w(t, "/", Je), w(t, ";", Po), w(t, "~", $n), w(t, "_", mi), w(t, "\\", li), w(t, "・", sd);
16184
+ vr == null && (vr = Da(kb)), wr == null && (wr = Da(xb)), w(t, "'", si), w(t, "{", Pn), w(t, "}", Bn), w(t, "[", Wr), w(t, "]", Kr), w(t, "(", Ur), w(t, ")", qr), w(t, "<", Jr), w(t, ">", Gr), w(t, "(", Yr), w(t, ")", Xr), w(t, "「", Qr), w(t, "」", Zr), w(t, "『", ei), w(t, "』", ti), w(t, "<", ni), w(t, ">", ri), w(t, "&", ii), w(t, "*", oi), w(t, "@", gt), w(t, "`", ai), w(t, "^", ci), w(t, ":", bt), w(t, ",", Do), w(t, "$", ui), w(t, ".", qe), w(t, "=", di), w(t, "!", Ro), w(t, "-", Pe), w(t, "%", zn), w(t, "|", fi), w(t, "+", hi), w(t, "#", pi), w(t, "?", Fn), w(t, '"', Lo), w(t, "/", Je), w(t, ";", Po), w(t, "~", $n), w(t, "_", mi), w(t, "\\", li), w(t, "・", id);
16184
16185
  const r = G(t, it, No, {
16185
16186
  [Ws]: !0
16186
16187
  });
16187
16188
  G(r, it, r);
16188
- const i = G(r, rt, rd, {
16189
+ const i = G(r, rt, nd, {
16189
16190
  [Ln]: !0
16190
- }), s = G(r, Cn, id, {
16191
+ }), s = G(r, Cn, rd, {
16191
16192
  [On]: !0
16192
16193
  }), o = G(t, rt, st, {
16193
16194
  [Ks]: !0
@@ -16205,8 +16206,8 @@ function Eb(n = []) {
16205
16206
  [fs]: !0
16206
16207
  });
16207
16208
  w(t, gs, u), w(c, ms, a), w(c, gs, u), G(c, ps, u), w(u, Ia), w(u, ms), G(u, ps, u), w(u, gs, u);
16208
- const d = G(t, hs, od, {
16209
- [nd]: !0
16209
+ const d = G(t, hs, sd, {
16210
+ [td]: !0
16210
16211
  });
16211
16212
  w(d, "#"), G(d, hs, d), w(d, Mb, d);
16212
16213
  const f = w(d, Tb);
@@ -16243,10 +16244,10 @@ function Eb(n = []) {
16243
16244
  start: t,
16244
16245
  tokens: Object.assign({
16245
16246
  groups: e
16246
- }, ld)
16247
+ }, od)
16247
16248
  };
16248
16249
  }
16249
- function ad(n, e) {
16250
+ function ld(n, e) {
16250
16251
  const t = Ob(e.replace(/[A-Z]/g, (l) => l.toLowerCase())), r = t.length, i = [];
16251
16252
  let s = 0, o = 0;
16252
16253
  for (; o < r; ) {
@@ -16390,10 +16391,10 @@ Bo.prototype = {
16390
16391
  function Ra(n) {
16391
16392
  return n;
16392
16393
  }
16393
- function cd(n, e) {
16394
+ function ad(n, e) {
16394
16395
  this.t = "token", this.v = n, this.tk = e;
16395
16396
  }
16396
- cd.prototype = {
16397
+ ad.prototype = {
16397
16398
  isLink: !1,
16398
16399
  /**
16399
16400
  * Return the string this token represents.
@@ -16498,7 +16499,7 @@ cd.prototype = {
16498
16499
  }
16499
16500
  };
16500
16501
  function Di(n, e) {
16501
- class t extends cd {
16502
+ class t extends ad {
16502
16503
  constructor(i, s) {
16503
16504
  super(i, s), this.t = n;
16504
16505
  }
@@ -16592,7 +16593,7 @@ function Nb({
16592
16593
  }
16593
16594
  return w(i, Zn, C), w(i, Io, Ab), {
16594
16595
  start: i,
16595
- tokens: ld
16596
+ tokens: od
16596
16597
  };
16597
16598
  }
16598
16599
  function Ib(n, e, t) {
@@ -16652,10 +16653,10 @@ function Pb() {
16652
16653
  return U.initialized = !0, U;
16653
16654
  }
16654
16655
  function zo(n) {
16655
- return U.initialized || Pb(), Ib(U.parser.start, n, ad(U.scanner.start, n));
16656
+ return U.initialized || Pb(), Ib(U.parser.start, n, ld(U.scanner.start, n));
16656
16657
  }
16657
- zo.scan = ad;
16658
- function ud(n, e = null, t = null) {
16658
+ zo.scan = ld;
16659
+ function cd(n, e = null, t = null) {
16659
16660
  if (e && typeof e == "object") {
16660
16661
  if (t)
16661
16662
  throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
@@ -16748,7 +16749,7 @@ function jb(n) {
16748
16749
  r.content.forEach((c) => {
16749
16750
  l += c.textContent;
16750
16751
  });
16751
- const a = ud(l, { defaultProtocol: n.defaultProtocol }).find((c) => c.isLink && c.value === l);
16752
+ const a = cd(l, { defaultProtocol: n.defaultProtocol }).find((c) => c.isLink && c.value === l);
16752
16753
  return !l || !a ? !1 : n.editor.commands.setMark(n.type, {
16753
16754
  href: a.href
16754
16755
  });
@@ -16887,7 +16888,7 @@ const _b = Ze.create({
16887
16888
  find: (n) => {
16888
16889
  const e = [];
16889
16890
  if (n) {
16890
- const { protocols: t, defaultProtocol: r } = this.options, i = ud(n).filter((s) => s.isLink && this.options.isAllowedUri(s.value, {
16891
+ const { protocols: t, defaultProtocol: r } = this.options, i = cd(n).filter((s) => s.isLink && this.options.isAllowedUri(s.value, {
16891
16892
  defaultValidate: (o) => !!Rt(o, t),
16892
16893
  protocols: t,
16893
16894
  defaultProtocol: r
@@ -16934,8 +16935,8 @@ const _b = Ze.create({
16934
16935
  }), Wb = () => {
16935
16936
  const n = "(http://www\\.|https://www\\.|http://|https://)", e = "[a-z0-9]+([-.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?";
16936
16937
  return new RegExp(`^${n}?${e}$`);
16937
- }, Kb = Wb(), dd = (n) => Kb.test(n), Ar = {
16938
- urlValidator: dd,
16938
+ }, Kb = Wb(), ud = (n) => Kb.test(n), Ar = {
16939
+ urlValidator: ud,
16939
16940
  sanitizeUrlText: (n) => ["http://", "https://"].some(
16940
16941
  (t) => n.includes(t)
16941
16942
  ) ? n : `https://${n}`
@@ -17023,7 +17024,7 @@ const _b = Ze.create({
17023
17024
  "Mod-Shift-r": () => n() && this.editor.commands.setTextAlign("right")
17024
17025
  };
17025
17026
  }
17026
- }), Gb = ju.extend({
17027
+ }), Gb = Vu.extend({
17027
17028
  addAttributes() {
17028
17029
  const n = "small-text";
17029
17030
  return {
@@ -17521,7 +17522,7 @@ const z1 = { render: B1 }, F1 = ({
17521
17522
  active: a.active?.(),
17522
17523
  title: o.hotkeyFormatter(a.hotkey ?? []),
17523
17524
  compact: "",
17524
- onKeydown: Pd(Hn(a.onClick, ["prevent"]), ["enter"]),
17525
+ onKeydown: Ld(Hn(a.onClick, ["prevent"]), ["enter"]),
17525
17526
  onClick: Hn(a.onClick, ["stop"])
17526
17527
  }, {
17527
17528
  default: q(() => [
@@ -17579,7 +17580,7 @@ const z1 = { render: B1 }, F1 = ({
17579
17580
  "3be646ac": M.value,
17580
17581
  "1017f318": b.value
17581
17582
  }));
17582
- const r = n, i = Math.max(r.characterLimit, J1), s = Bd(), {
17583
+ const r = n, i = Math.max(r.characterLimit, J1), s = Pd(), {
17583
17584
  modelValue: o,
17584
17585
  editable: l,
17585
17586
  disabled: a,
@@ -17612,7 +17613,7 @@ const z1 = { render: B1 }, F1 = ({
17612
17613
  alignments: ["left", "right", "center"]
17613
17614
  })
17614
17615
  ] : [],
17615
- ...h("link") ? [Ub.configure({ validate: dd })] : [],
17616
+ ...h("link") ? [Ub.configure({ validate: ud })] : [],
17616
17617
  bb,
17617
17618
  $y.configure({
17618
17619
  limit: i
@@ -17691,7 +17692,7 @@ const z1 = { render: B1 }, F1 = ({
17691
17692
  ]),
17692
17693
  linkModal: q(({ linkTool: j }) => [
17693
17694
  Ne(T.$slots, "linkModal", { linkTool: j }, () => [
17694
- h("link") && j ? (N(), ne(Qa, nr({ key: 0 }, j.props, Wa(j.events)), null, 16)) : ee("", !0)
17695
+ h("link") && j ? (N(), ne(Xa, nr({ key: 0 }, j.props, Wa(j.events)), null, 16)) : ee("", !0)
17695
17696
  ], !0)
17696
17697
  ]),
17697
17698
  _: 3
@@ -17760,7 +17761,7 @@ const z1 = { render: B1 }, F1 = ({
17760
17761
  ref_key: "linkDialog",
17761
17762
  ref: t
17762
17763
  }, [
17763
- Z(V(Qa), nr({ ...o.linkTool.props, ...r }, Wa(o.linkTool.events)), null, 16)
17764
+ Z(V(Xa), nr({ ...o.linkTool.props, ...r }, Wa(o.linkTool.events)), null, 16)
17764
17765
  ], 512));
17765
17766
  }
17766
17767
  }), Z1 = /* @__PURE__ */ Ve(Q1, [["__scopeId", "data-v-9d1514e4"]]), ek = /* @__PURE__ */ de({