@vc-shell/framework 1.1.61 → 1.1.63

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 (123) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/core/composables/useLanguages/index.ts +16 -73
  3. package/core/services/index.ts +1 -0
  4. package/core/services/language-service.ts +88 -0
  5. package/core/services/menu-service.ts +9 -20
  6. package/core/types/index.ts +1 -1
  7. package/dist/core/composables/useLanguages/index.d.ts +4 -15
  8. package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
  9. package/dist/core/services/index.d.ts +1 -0
  10. package/dist/core/services/index.d.ts.map +1 -1
  11. package/dist/core/services/language-service.d.ts +15 -0
  12. package/dist/core/services/language-service.d.ts.map +1 -0
  13. package/dist/core/services/menu-service.d.ts.map +1 -1
  14. package/dist/core/types/index.d.ts +1 -1
  15. package/dist/core/types/index.d.ts.map +1 -1
  16. package/dist/framework.js +12621 -9109
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/injection-keys.d.ts +2 -1
  19. package/dist/injection-keys.d.ts.map +1 -1
  20. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  21. package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
  22. package/dist/tsconfig.tsbuildinfo +1 -1
  23. package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
  24. package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
  25. package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
  26. package/dist/vendor-core-js-DFA7rceR.js +1206 -0
  27. package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
  28. package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
  29. package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
  30. package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
  31. package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
  32. package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
  33. package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
  34. package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
  35. package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
  36. package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
  37. package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
  38. package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
  39. package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
  40. package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
  41. package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
  42. package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
  43. package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
  44. package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
  45. package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
  46. package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
  47. package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
  48. package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
  49. package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
  50. package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
  51. package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
  52. package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
  53. package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
  54. package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
  55. package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
  56. package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
  57. package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
  58. package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
  59. package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
  60. package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
  61. package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
  62. package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
  63. package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
  64. package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
  65. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
  66. package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
  67. package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
  68. package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
  69. package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
  70. package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
  71. package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
  72. package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
  73. package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
  74. package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
  75. package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
  76. package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
  77. package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
  78. package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
  79. package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
  80. package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
  81. package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
  82. package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
  83. package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
  84. package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
  85. package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
  86. package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
  87. package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
  88. package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
  89. package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
  90. package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
  91. package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
  92. package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
  93. package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
  94. package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
  95. package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
  96. package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
  97. package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
  98. package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
  99. package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
  100. package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
  101. package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
  102. package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
  103. package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
  104. package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
  105. package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
  106. package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
  107. package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
  108. package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
  109. package/package.json +5 -5
  110. package/shared/components/language-selector/language-selector.vue +16 -8
  111. package/shared/components/theme-selector/theme-selector.vue +5 -10
  112. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +4 -4
  113. package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
  114. package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
  115. package/dist/vendor-intlify-core-base-FyGSkd6r.js +0 -1130
  116. package/dist/vendor-intlify-message-compiler-D_vL9-DK.js +0 -945
  117. package/dist/vendor-intlify-shared-BMbzEQSk.js +0 -144
  118. package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
  119. package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
  120. package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
  121. package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
  122. package/dist/vendor-vue-i18n-DC6m6S7G.js +0 -1359
  123. package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
@@ -1,6 +1,6 @@
1
- import { N as D, S as he, T as x, A as Sn } from "./vendor-prosemirror-state-BN86J-Ko.js";
2
- import { S as J, D as Re, F as _, d as qt, M as Cn } from "./vendor-prosemirror-model-DwojkhDQ.js";
3
- import { d as On } from "./vendor-prosemirror-transform-B0c_LAV_.js";
1
+ import { N as D, S as he, T as x, A as Sn } from "./vendor-prosemirror-state-CRUasa1V.js";
2
+ import { S as J, D as Re, F as _, d as qt, M as Cn } from "./vendor-prosemirror-model-CVTn1Stc.js";
3
+ import { d as On } from "./vendor-prosemirror-transform-BeDaI3CS.js";
4
4
  const C = function(t) {
5
5
  for (var e = 0; ; e++)
6
6
  if (t = t.previousSibling, !t)
@@ -15,7 +15,7 @@ const K = function(t, e, n) {
15
15
  return o.setEnd(t, n ?? t.nodeValue.length), o.setStart(t, e || 0), o;
16
16
  }, Mn = function() {
17
17
  He = null;
18
- }, se = function(t, e, n, o) {
18
+ }, re = function(t, e, n, o) {
19
19
  return n && (rt(t, e, n, o, -1) || rt(t, e, n, o, 1));
20
20
  }, xn = /^(img|br|input|textarea|hr)$/i;
21
21
  function rt(t, e, n, o, i) {
@@ -88,9 +88,9 @@ function Ce(t) {
88
88
  return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
89
89
  }
90
90
  const Be = function(t) {
91
- return t.focusNode && se(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
91
+ return t.focusNode && re(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
92
92
  };
93
- function ee(t, e) {
93
+ function te(t, e) {
94
94
  let n = document.createEvent("Event");
95
95
  return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
96
96
  }
@@ -114,7 +114,9 @@ function Pn(t, e, n) {
114
114
  return { node: o.startContainer, offset: Math.min(B(o.startContainer), o.startOffset) };
115
115
  }
116
116
  }
117
- const z = typeof navigator < "u" ? navigator : null, lt = typeof document < "u" ? document : null, le = z && z.userAgent || "", We = /Edge\/(\d+)/.exec(le), Kt = /MSIE \d/.exec(le), _e = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(le), P = !!(Kt || _e || We), Z = Kt ? document.documentMode : _e ? +_e[1] : We ? +We[1] : 0, L = !P && /gecko\/(\d+)/i.test(le), je = !P && /Chrome\/(\d+)/.exec(le), M = !!je, Ht = je ? +je[1] : 0, k = !P && !!z && /Apple Computer/.test(z.vendor), pe = k && (/Mobile\/\w+/.test(le) || !!z && z.maxTouchPoints > 2), R = pe || (z ? /Mac/.test(z.platform) : !1), Vn = z ? /Win/.test(z.platform) : !1, H = /Android \d/.test(le), Oe = !!lt && "webkitFontSmoothing" in lt.documentElement.style, Rn = Oe ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
117
+ const L = typeof navigator < "u" ? navigator : null, lt = typeof document < "u" ? document : null, v = L && L.userAgent || "", We = /Edge\/(\d+)/.exec(v), Kt = /MSIE \d/.exec(v), _e = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(v), P = !!(Kt || _e || We), Z = Kt ? document.documentMode : _e ? +_e[1] : We ? +We[1] : 0, z = !P && /gecko\/(\d+)/i.test(v);
118
+ z && +(/Firefox\/(\d+)/.exec(v) || [0, 0])[1];
119
+ const je = !P && /Chrome\/(\d+)/.exec(v), M = !!je, Ht = je ? +je[1] : 0, k = !P && !!L && /Apple Computer/.test(L.vendor), pe = k && (/Mobile\/\w+/.test(v) || !!L && L.maxTouchPoints > 2), R = pe || (L ? /Mac/.test(L.platform) : !1), Vn = L ? /Win/.test(L.platform) : !1, H = /Android \d/.test(v), Oe = !!lt && "webkitFontSmoothing" in lt.documentElement.style, Rn = Oe ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
118
120
  function Bn(t) {
119
121
  let e = t.defaultView && t.defaultView.visualViewport;
120
122
  return e ? {
@@ -304,7 +306,7 @@ function Wn(t, e) {
304
306
  for (let c = r; o && c; c = ue(c))
305
307
  c.draggable && (o = void 0);
306
308
  if (r = qn(r, e), o) {
307
- if (L && o.nodeType == 1 && (i = Math.min(i, o.childNodes.length), i < o.childNodes.length)) {
309
+ if (z && o.nodeType == 1 && (i = Math.min(i, o.childNodes.length), i < o.childNodes.length)) {
308
310
  let d = o.childNodes[i], f;
309
311
  d.nodeName == "IMG" && (f = d.getBoundingClientRect()).right <= e.left && f.bottom > e.top && i++;
310
312
  }
@@ -329,11 +331,11 @@ function U(t, e) {
329
331
  }
330
332
  const _n = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
331
333
  function Yt(t, e, n) {
332
- let { node: o, offset: i, atom: s } = t.docView.domFromPos(e, n < 0 ? -1 : 1), r = Oe || L;
334
+ let { node: o, offset: i, atom: s } = t.docView.domFromPos(e, n < 0 ? -1 : 1), r = Oe || z;
333
335
  if (o.nodeType == 3)
334
336
  if (r && (_n.test(o.nodeValue) || (n < 0 ? !i : i == o.nodeValue.length))) {
335
337
  let a = U(K(o, i, i), n);
336
- if (L && i && /\s/.test(o.nodeValue[i - 1]) && i < o.nodeValue.length) {
338
+ if (z && i && /\s/.test(o.nodeValue[i - 1]) && i < o.nodeValue.length) {
337
339
  let c = U(K(o, i - 1, i - 1), -1);
338
340
  if (c.top == a.top) {
339
341
  let d = U(K(o, i, i + 1), -1);
@@ -448,7 +450,7 @@ let dt = null, ft = null, ht = !1;
448
450
  function Gn(t, e, n) {
449
451
  return dt == e && ft == n ? ht : (dt = e, ft = n, ht = n == "up" || n == "down" ? jn(t, e, n) : Yn(t, e, n));
450
452
  }
451
- const I = 0, ut = 1, te = 2, $ = 3;
453
+ const I = 0, ut = 1, ne = 2, $ = 3;
452
454
  class Me {
453
455
  constructor(e, n, o, i) {
454
456
  this.parent = e, this.children = n, this.dom = o, this.contentDOM = i, this.dirty = I, o.pmViewDesc = this;
@@ -708,7 +710,7 @@ class Me {
708
710
  h = m;
709
711
  }
710
712
  let l = this.domFromPos(e, e ? -1 : 1), a = n == e ? l : this.domFromPos(n, n ? -1 : 1), c = o.root.getSelection(), d = o.domSelectionRange(), f = !1;
711
- if ((L || k) && e == n) {
713
+ if ((z || k) && e == n) {
712
714
  let { node: p, offset: h } = l;
713
715
  if (p.nodeType == 3) {
714
716
  if (f = !!(h && p.nodeValue[h - 1] == `
@@ -727,11 +729,11 @@ class Me {
727
729
  f = g && (g.nodeName == "BR" || g.contentEditable == "false");
728
730
  }
729
731
  }
730
- if (L && d.focusNode && d.focusNode != a.node && d.focusNode.nodeType == 1) {
732
+ if (z && d.focusNode && d.focusNode != a.node && d.focusNode.nodeType == 1) {
731
733
  let p = d.focusNode.childNodes[d.focusOffset];
732
734
  p && p.contentEditable == "false" && (i = !0);
733
735
  }
734
- if (!(i || f && k) && se(l.node, l.offset, d.anchorNode, d.anchorOffset) && se(a.node, a.offset, d.focusNode, d.focusOffset))
736
+ if (!(i || f && k) && re(l.node, l.offset, d.anchorNode, d.anchorOffset) && re(a.node, a.offset, d.focusNode, d.focusOffset))
735
737
  return;
736
738
  let u = !1;
737
739
  if ((c.extend || e == n) && !f) {
@@ -764,19 +766,19 @@ class Me {
764
766
  if (o == r ? e <= r && n >= o : e < r && n > o) {
765
767
  let l = o + s.border, a = r - s.border;
766
768
  if (e >= l && n <= a) {
767
- this.dirty = e == o || n == r ? te : ut, e == l && n == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = $ : s.markDirty(e - l, n - l);
769
+ this.dirty = e == o || n == r ? ne : ut, e == l && n == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = $ : s.markDirty(e - l, n - l);
768
770
  return;
769
771
  } else
770
- s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? te : $;
772
+ s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? ne : $;
771
773
  }
772
774
  o = r;
773
775
  }
774
- this.dirty = te;
776
+ this.dirty = ne;
775
777
  }
776
778
  markParentsDirty() {
777
779
  let e = 1;
778
780
  for (let n = this.parent; n; n = n.parent, e++) {
779
- let o = e == 1 ? te : ut;
781
+ let o = e == 1 ? ne : ut;
780
782
  n.dirty < o && (n.dirty = o);
781
783
  }
782
784
  }
@@ -853,13 +855,13 @@ class Xn extends Me {
853
855
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
854
856
  }
855
857
  }
856
- class re extends Me {
858
+ class le extends Me {
857
859
  constructor(e, n, o, i, s) {
858
860
  super(e, [], o, i), this.mark = n, this.spec = s;
859
861
  }
860
862
  static create(e, n, o, i) {
861
863
  let s = i.nodeViews[n.type.name], r = s && s(n, i, o);
862
- return (!r || !r.dom) && (r = Re.renderSpec(document, n.type.spec.toDOM(n, o), null, n.attrs)), new re(e, n, r.dom, r.contentDOM || r.dom, r);
864
+ return (!r || !r.dom) && (r = Re.renderSpec(document, n.type.spec.toDOM(n, o), null, n.attrs)), new le(e, n, r.dom, r.contentDOM || r.dom, r);
863
865
  }
864
866
  parseRule() {
865
867
  return this.dirty & $ || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -876,7 +878,7 @@ class re extends Me {
876
878
  }
877
879
  }
878
880
  slice(e, n, o) {
879
- let i = re.create(this.parent, this.mark, !0, o), s = this.children, r = this.size;
881
+ let i = le.create(this.parent, this.mark, !0, o), s = this.children, r = this.size;
880
882
  n < r && (s = Ye(s, n, r, o)), e > 0 && (s = Ye(s, 0, e, o));
881
883
  for (let l = 0; l < s.length; l++)
882
884
  s[l].parent = i;
@@ -960,7 +962,7 @@ class Q extends Me {
960
962
  a.syncToMarks(c.marks, o, e);
961
963
  let p;
962
964
  a.findNodeMatch(c, d, f, u) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (p = a.findIndexWithChild(s.node)) > -1 && a.updateNodeAt(c, d, f, p, e) || a.updateNextNode(c, d, f, e, u, i) || a.addNode(c, d, f, e, i), i += c.nodeSize;
963
- }), a.syncToMarks([], o, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == te) && (r && this.protectLocalComposition(e, r), Zt(this.contentDOM, this.children, e), pe && to(this.dom));
965
+ }), a.syncToMarks([], o, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == ne) && (r && this.protectLocalComposition(e, r), Zt(this.contentDOM, this.children, e), pe && to(this.dom));
964
966
  }
965
967
  localCompositionInfo(e, n) {
966
968
  let { from: o, to: i } = e.state.selection;
@@ -1121,7 +1123,7 @@ function Zt(t, e, n) {
1121
1123
  o = o.nextSibling;
1122
1124
  } else
1123
1125
  i = !0, t.insertBefore(l, o);
1124
- if (r instanceof re) {
1126
+ if (r instanceof le) {
1125
1127
  let a = o ? o.previousSibling : t.lastChild;
1126
1128
  Zt(r.contentDOM, r.children, n), o = a ? a.nextSibling : t.firstChild;
1127
1129
  }
@@ -1134,11 +1136,11 @@ const ye = function(t) {
1134
1136
  t && (this.nodeName = t);
1135
1137
  };
1136
1138
  ye.prototype = /* @__PURE__ */ Object.create(null);
1137
- const ne = [new ye()];
1139
+ const oe = [new ye()];
1138
1140
  function Ue(t, e, n) {
1139
1141
  if (t.length == 0)
1140
- return ne;
1141
- let o = n ? ne[0] : new ye(), i = [o];
1142
+ return oe;
1143
+ let o = n ? oe[0] : new ye(), i = [o];
1142
1144
  for (let s = 0; s < t.length; s++) {
1143
1145
  let r = t[s].type.attrs;
1144
1146
  if (r) {
@@ -1152,16 +1154,16 @@ function Ue(t, e, n) {
1152
1154
  return i;
1153
1155
  }
1154
1156
  function Qt(t, e, n, o) {
1155
- if (n == ne && o == ne)
1157
+ if (n == oe && o == oe)
1156
1158
  return e;
1157
1159
  let i = e;
1158
1160
  for (let s = 0; s < o.length; s++) {
1159
1161
  let r = o[s], l = n[s];
1160
1162
  if (s) {
1161
1163
  let a;
1162
- l && l.nodeName == r.nodeName && i != t && (a = i.parentNode) && a.nodeName.toLowerCase() == r.nodeName || (a = document.createElement(r.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = ne[0]), i = a;
1164
+ l && l.nodeName == r.nodeName && i != t && (a = i.parentNode) && a.nodeName.toLowerCase() == r.nodeName || (a = document.createElement(r.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = oe[0]), i = a;
1163
1165
  }
1164
- Zn(i, l || ne[0], r);
1166
+ Zn(i, l || oe[0], r);
1165
1167
  }
1166
1168
  return i;
1167
1169
  }
@@ -1188,7 +1190,7 @@ function Zn(t, e, n) {
1188
1190
  }
1189
1191
  }
1190
1192
  function wt(t, e, n) {
1191
- return Qt(t, t, ne, Ue(e, n, t.nodeType != 1));
1193
+ return Qt(t, t, oe, Ue(e, n, t.nodeType != 1));
1192
1194
  }
1193
1195
  function Te(t, e) {
1194
1196
  if (t.length != e.length)
@@ -1240,7 +1242,7 @@ class Qn {
1240
1242
  if (l > -1)
1241
1243
  l > this.index && (this.changed = !0, this.destroyBetween(this.index, l)), this.top = this.top.children[this.index];
1242
1244
  else {
1243
- let a = re.create(this.top, e[s], n, o);
1245
+ let a = le.create(this.top, e[s], n, o);
1244
1246
  this.top.children.splice(this.index, 0, a), this.top = a, this.changed = !0;
1245
1247
  }
1246
1248
  this.index = 0, s++;
@@ -1264,7 +1266,7 @@ class Qn {
1264
1266
  }
1265
1267
  updateNodeAt(e, n, o, i, s) {
1266
1268
  let r = this.top.children[i];
1267
- return r.dirty == $ && r.dom == r.contentDOM && (r.dirty = te), r.update(e, n, o, s) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
1269
+ return r.dirty == $ && r.dom == r.contentDOM && (r.dirty = ne), r.update(e, n, o, s) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
1268
1270
  }
1269
1271
  findIndexWithChild(e) {
1270
1272
  for (; ; ) {
@@ -1296,7 +1298,7 @@ class Qn {
1296
1298
  if (!u && a.update(e, n, o, i))
1297
1299
  return this.destroyBetween(this.index, l), a.dom != d && (this.changed = !0), this.index++, !0;
1298
1300
  if (!u && (f = this.recreateWrapper(a, e, n, o, i, r)))
1299
- return this.destroyBetween(this.index, l), this.top.children[this.index] = f, f.contentDOM && (f.dirty = te, f.updateChildren(i, r + 1), f.dirty = I), this.changed = !0, this.index++, !0;
1301
+ return this.destroyBetween(this.index, l), this.top.children[this.index] = f, f.contentDOM && (f.dirty = ne, f.updateChildren(i, r + 1), f.dirty = I), this.changed = !0, this.index++, !0;
1300
1302
  break;
1301
1303
  }
1302
1304
  }
@@ -1333,7 +1335,7 @@ class Qn {
1333
1335
  // contentEditable.
1334
1336
  addTextblockHacks() {
1335
1337
  let e = this.top.children[this.index - 1], n = this.top;
1336
- for (; e instanceof re; )
1338
+ for (; e instanceof le; )
1337
1339
  n = e, e = n.children[n.children.length - 1];
1338
1340
  (!e || // Empty textblock
1339
1341
  !(e instanceof Ie) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((k || M) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
@@ -1359,7 +1361,7 @@ function wn(t, e) {
1359
1361
  for (; ; )
1360
1362
  if (o) {
1361
1363
  let c = n.children[o - 1];
1362
- if (c instanceof re)
1364
+ if (c instanceof le)
1363
1365
  n = c, o = c.children.length;
1364
1366
  else {
1365
1367
  l = c, o--;
@@ -1514,7 +1516,7 @@ function W(t, e = !1) {
1514
1516
  if (en(t, n), !!vt(t)) {
1515
1517
  if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && M) {
1516
1518
  let o = t.domSelectionRange(), i = t.domObserver.currentSelection;
1517
- if (o.anchorNode && i.anchorNode && se(o.anchorNode, o.anchorOffset, i.anchorNode, i.anchorOffset)) {
1519
+ if (o.anchorNode && i.anchorNode && re(o.anchorNode, o.anchorOffset, i.anchorNode, i.anchorOffset)) {
1518
1520
  t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
1519
1521
  return;
1520
1522
  }
@@ -1591,7 +1593,7 @@ function tn(t) {
1591
1593
  }
1592
1594
  function so(t) {
1593
1595
  let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
1594
- return se(e.node, e.offset, n.anchorNode, n.anchorOffset);
1596
+ return re(e.node, e.offset, n.anchorNode, n.anchorOffset);
1595
1597
  }
1596
1598
  function Ge(t, e) {
1597
1599
  let { $anchor: n, $head: o } = t.selection, i = e > 0 ? n.max(o) : n.min(o), s = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
@@ -1645,7 +1647,7 @@ function ro(t) {
1645
1647
  if (!n)
1646
1648
  return;
1647
1649
  let i, s, r = !1;
1648
- for (L && n.nodeType == 1 && o < Ae(n) && be(n.childNodes[o], -1) && (r = !0); ; )
1650
+ for (z && n.nodeType == 1 && o < Ae(n) && be(n.childNodes[o], -1) && (r = !0); ; )
1649
1651
  if (o > 0) {
1650
1652
  if (n.nodeType != 1)
1651
1653
  break;
@@ -2088,7 +2090,7 @@ A.keydown = (t, e) => {
2088
2090
  if (n.keyCode != 229 && t.domObserver.forceFlush(), pe && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
2089
2091
  let o = Date.now();
2090
2092
  t.input.lastIOSEnter = o, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
2091
- t.input.lastIOSEnter == o && (t.someProp("handleKeyDown", (i) => i(t, ee(13, "Enter"))), t.input.lastIOSEnter = 0);
2093
+ t.input.lastIOSEnter == o && (t.someProp("handleKeyDown", (i) => i(t, te(13, "Enter"))), t.input.lastIOSEnter = 0);
2092
2094
  }, 200);
2093
2095
  } else t.someProp("handleKeyDown", (o) => o(t, n)) || uo(t, n) ? n.preventDefault() : X(t, "key");
2094
2096
  };
@@ -2208,7 +2210,7 @@ class Bo {
2208
2210
  node: s,
2209
2211
  pos: r,
2210
2212
  addAttr: !!(this.target && !this.target.draggable),
2211
- setUneditable: !!(this.target && L && !this.target.hasAttribute("contentEditable"))
2213
+ setUneditable: !!(this.target && z && !this.target.hasAttribute("contentEditable"))
2212
2214
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
2213
2215
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
2214
2216
  }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), X(e, "pointer");
@@ -2254,7 +2256,7 @@ A.compositionstart = A.compositionupdate = (t) => {
2254
2256
  let { state: e } = t, n = e.selection.$to;
2255
2257
  if (e.selection instanceof x && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((o) => o.type.spec.inclusive === !1)))
2256
2258
  t.markCursor = t.state.storedMarks || n.marks(), Ee(t, !0), t.markCursor = null;
2257
- else if (Ee(t, !e.selection.empty), L && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
2259
+ else if (Ee(t, !e.selection.empty), z && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
2258
2260
  let o = t.domSelectionRange();
2259
2261
  for (let i = o.focusNode, s = o.focusOffset; i && i.nodeType == 1 && s != 0; ) {
2260
2262
  let r = s < 0 ? i.lastChild : i.childNodes[s - 1];
@@ -2453,7 +2455,7 @@ T.beforeinput = (t, e) => {
2453
2455
  t.domObserver.flushSoon();
2454
2456
  let { domChangeCount: o } = t.input;
2455
2457
  setTimeout(() => {
2456
- if (t.input.domChangeCount != o || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (s) => s(t, ee(8, "Backspace")))))
2458
+ if (t.input.domChangeCount != o || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (s) => s(t, te(8, "Backspace")))))
2457
2459
  return;
2458
2460
  let { $cursor: i } = t.state.selection;
2459
2461
  i && i.pos > 0 && t.dispatch(t.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
@@ -2475,7 +2477,7 @@ function Se(t, e) {
2475
2477
  }
2476
2478
  class Pe {
2477
2479
  constructor(e, n) {
2478
- this.toDOM = e, this.spec = n || oe, this.side = this.spec.side || 0;
2480
+ this.toDOM = e, this.spec = n || ie, this.side = this.spec.side || 0;
2479
2481
  }
2480
2482
  map(e, n, o, i) {
2481
2483
  let { pos: s, deleted: r } = e.mapResult(n.from + i, this.side < 0 ? -1 : 1);
@@ -2493,7 +2495,7 @@ class Pe {
2493
2495
  }
2494
2496
  class w {
2495
2497
  constructor(e, n) {
2496
- this.attrs = e, this.spec = n || oe;
2498
+ this.attrs = e, this.spec = n || ie;
2497
2499
  }
2498
2500
  map(e, n, o, i) {
2499
2501
  let s = e.map(n.from + i, this.spec.inclusiveStart ? -1 : 1) - o, r = e.map(n.to + i, this.spec.inclusiveEnd ? 1 : -1) - o;
@@ -2513,7 +2515,7 @@ class w {
2513
2515
  }
2514
2516
  class it {
2515
2517
  constructor(e, n) {
2516
- this.attrs = e, this.spec = n || oe;
2518
+ this.attrs = e, this.spec = n || ie;
2517
2519
  }
2518
2520
  map(e, n, o, i) {
2519
2521
  let s = e.mapResult(n.from + i, 1);
@@ -2603,7 +2605,7 @@ class F {
2603
2605
  return this.type instanceof Pe;
2604
2606
  }
2605
2607
  }
2606
- const de = [], oe = {};
2608
+ const de = [], ie = {};
2607
2609
  class S {
2608
2610
  /**
2609
2611
  @internal
@@ -2617,7 +2619,7 @@ class S {
2617
2619
  you must make a copy if you want need to preserve that.
2618
2620
  */
2619
2621
  static create(e, n) {
2620
- return n.length ? Ve(n, e, 0, oe) : O;
2622
+ return n.length ? Ve(n, e, 0, ie) : O;
2621
2623
  }
2622
2624
  /**
2623
2625
  Find all decorations in this set which touch the given range
@@ -2647,7 +2649,7 @@ class S {
2647
2649
  document.
2648
2650
  */
2649
2651
  map(e, n, o) {
2650
- return this == O || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, o || oe);
2652
+ return this == O || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, o || ie);
2651
2653
  }
2652
2654
  /**
2653
2655
  @internal
@@ -2658,7 +2660,7 @@ class S {
2658
2660
  let a = this.local[l].map(e, o, i);
2659
2661
  a && a.type.valid(n, a) ? (r || (r = [])).push(a) : s.onRemove && s.onRemove(this.local[l].spec);
2660
2662
  }
2661
- return this.children.length ? Ho(this.children, r || [], e, n, o, i, s) : r ? new S(r.sort(ie), de) : O;
2663
+ return this.children.length ? Ho(this.children, r || [], e, n, o, i, s) : r ? new S(r.sort(se), de) : O;
2662
2664
  }
2663
2665
  /**
2664
2666
  Add the given array of decorations to the ones in the set,
@@ -2676,13 +2678,13 @@ class S {
2676
2678
  if (d = bn(n, l, c)) {
2677
2679
  for (i || (i = this.children.slice()); s < i.length && i[s] < a; )
2678
2680
  s += 3;
2679
- i[s] == a ? i[s + 2] = i[s + 2].addInner(l, d, c + 1) : i.splice(s, 0, a, a + l.nodeSize, Ve(d, l, c + 1, oe)), s += 3;
2681
+ i[s] == a ? i[s + 2] = i[s + 2].addInner(l, d, c + 1) : i.splice(s, 0, a, a + l.nodeSize, Ve(d, l, c + 1, ie)), s += 3;
2680
2682
  }
2681
2683
  });
2682
2684
  let r = yn(s ? Dn(n) : n, -o);
2683
2685
  for (let l = 0; l < r.length; l++)
2684
2686
  r[l].type.valid(e, r[l]) || r.splice(l--, 1);
2685
- return new S(r.length ? this.local.concat(r).sort(ie) : this.local, i || this.children);
2687
+ return new S(r.length ? this.local.concat(r).sort(se) : this.local, i || this.children);
2686
2688
  }
2687
2689
  /**
2688
2690
  Create a new set that contains the decorations in this set, minus
@@ -2731,7 +2733,7 @@ class S {
2731
2733
  }
2732
2734
  }
2733
2735
  if (i) {
2734
- let l = new S(i.sort(ie), de);
2736
+ let l = new S(i.sort(se), de);
2735
2737
  return o ? new G([l, o]) : l;
2736
2738
  }
2737
2739
  return o || O;
@@ -2783,7 +2785,7 @@ class G {
2783
2785
  this.members = e;
2784
2786
  }
2785
2787
  map(e, n) {
2786
- const o = this.members.map((i) => i.map(e, n, oe));
2788
+ const o = this.members.map((i) => i.map(e, n, ie));
2787
2789
  return G.from(o);
2788
2790
  }
2789
2791
  forChild(e, n) {
@@ -2817,7 +2819,7 @@ class G {
2817
2819
  n.push(s[r]);
2818
2820
  }
2819
2821
  }
2820
- return n ? st(o ? n : n.sort(ie)) : de;
2822
+ return n ? st(o ? n : n.sort(se)) : de;
2821
2823
  }
2822
2824
  // Create a group for the given array of decoration sets, or return
2823
2825
  // a single set when possible.
@@ -2883,7 +2885,7 @@ function Ho(t, e, n, o, i, s, r) {
2883
2885
  l.splice(u, 0, d.children[f], d.children[f + 1], d.children[f + 2]);
2884
2886
  }
2885
2887
  }
2886
- return new S(e.sort(ie), l);
2888
+ return new S(e.sort(se), l);
2887
2889
  }
2888
2890
  function yn(t, e) {
2889
2891
  if (!e || !t.length)
@@ -2932,12 +2934,12 @@ function Ve(t, e, n, o) {
2932
2934
  d != O && i.push(a, a + l.nodeSize, d);
2933
2935
  }
2934
2936
  });
2935
- let r = yn(s ? Dn(t) : t, -n).sort(ie);
2937
+ let r = yn(s ? Dn(t) : t, -n).sort(se);
2936
2938
  for (let l = 0; l < r.length; l++)
2937
2939
  r[l].type.valid(e, r[l]) || (o.onRemove && o.onRemove(r[l].spec), r.splice(l--, 1));
2938
2940
  return r.length || i.length ? new S(r, i) : O;
2939
2941
  }
2940
- function ie(t, e) {
2942
+ function se(t, e) {
2941
2943
  return t.from - e.from || t.to - e.to;
2942
2944
  }
2943
2945
  function st(t) {
@@ -2959,7 +2961,7 @@ function st(t) {
2959
2961
  return e;
2960
2962
  }
2961
2963
  function At(t, e, n) {
2962
- for (; e < t.length && ie(n, t[e]) > 0; )
2964
+ for (; e < t.length && se(n, t[e]) > 0; )
2963
2965
  e++;
2964
2966
  t.splice(e, 0, n);
2965
2967
  }
@@ -3040,7 +3042,7 @@ class Yo {
3040
3042
  return W(this.view);
3041
3043
  if (P && Z <= 11 && !this.view.state.selection.empty) {
3042
3044
  let e = this.view.domSelectionRange();
3043
- if (e.focusNode && se(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
3045
+ if (e.focusNode && re(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
3044
3046
  return this.flushSoon();
3045
3047
  }
3046
3048
  this.flush();
@@ -3085,7 +3087,7 @@ class Yo {
3085
3087
  let f = this.registerMutation(n[d], a);
3086
3088
  f && (s = s < 0 ? f.from : Math.min(f.from, s), r = r < 0 ? f.to : Math.max(f.to, r), f.typeOver && (l = !0));
3087
3089
  }
3088
- if (L && a.length) {
3090
+ if (z && a.length) {
3089
3091
  let d = a.filter((f) => f.nodeName == "BR");
3090
3092
  if (d.length == 2) {
3091
3093
  let [f, u] = d;
@@ -3137,14 +3139,14 @@ class Yo {
3137
3139
  let Et = /* @__PURE__ */ new WeakMap(), Pt = !1;
3138
3140
  function Go(t) {
3139
3141
  if (!Et.has(t) && (Et.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
3140
- if (t.requiresGeckoHackNode = L, Pt)
3142
+ if (t.requiresGeckoHackNode = z, Pt)
3141
3143
  return;
3142
3144
  console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), Pt = !0;
3143
3145
  }
3144
3146
  }
3145
3147
  function Vt(t, e) {
3146
3148
  let n = e.startContainer, o = e.startOffset, i = e.endContainer, s = e.endOffset, r = t.domAtPos(t.state.selection.anchor);
3147
- return se(r.node, r.offset, i, s) && ([n, o, i, s] = [i, s, n, o]), { anchorNode: n, anchorOffset: o, focusNode: i, focusOffset: s };
3149
+ return re(r.node, r.offset, i, s) && ([n, o, i, s] = [i, s, n, o]), { anchorNode: n, anchorOffset: o, focusNode: i, focusOffset: s };
3148
3150
  }
3149
3151
  function Xo(t, e) {
3150
3152
  if (e.getComposedRanges) {
@@ -3215,7 +3217,7 @@ function vo(t, e, n, o, i) {
3215
3217
  if (t.input.compositionPendingChanges = 0, e < 0) {
3216
3218
  let b = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, N = we(t, b);
3217
3219
  if (N && !t.state.selection.eq(N)) {
3218
- if (M && H && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Nn) => Nn(t, ee(13, "Enter"))))
3220
+ if (M && H && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Nn) => Nn(t, te(13, "Enter"))))
3219
3221
  return;
3220
3222
  let E = t.state.tr.setSelection(N);
3221
3223
  b == "pointer" ? E.setMeta("pointer", !0) : b == "key" && E.scrollIntoView(), s && E.setMeta("composition", s), t.dispatch(E);
@@ -3227,7 +3229,7 @@ function vo(t, e, n, o, i) {
3227
3229
  let a = t.state.selection, c = Zo(t, e, n), d = t.state.doc, f = d.slice(c.from, c.to), u, p;
3228
3230
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (u = t.state.selection.to, p = "end") : (u = t.state.selection.from, p = "start"), t.input.lastKeyCode = null;
3229
3231
  let h = ni(f.content, c.doc.content, c.from, u, p);
3230
- if (h && t.input.domChangeCount++, (pe && t.input.lastIOSEnter > Date.now() - 225 || H) && i.some((b) => b.nodeType == 1 && !wo.test(b.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (b) => b(t, ee(13, "Enter")))) {
3232
+ if (h && t.input.domChangeCount++, (pe && t.input.lastIOSEnter > Date.now() - 225 || H) && i.some((b) => b.nodeType == 1 && !wo.test(b.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (b) => b(t, te(13, "Enter")))) {
3231
3233
  t.input.lastIOSEnter = 0;
3232
3234
  return;
3233
3235
  }
@@ -3246,41 +3248,41 @@ function vo(t, e, n, o, i) {
3246
3248
  }
3247
3249
  t.state.selection.from < t.state.selection.to && h.start == h.endB && t.state.selection instanceof x && (h.start > t.state.selection.from && h.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? h.start = t.state.selection.from : h.endA < t.state.selection.to && h.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (h.endB += t.state.selection.to - h.endA, h.endA = t.state.selection.to)), P && Z <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == "  " && (h.start--, h.endA--, h.endB--);
3248
3250
  let g = c.doc.resolveNoCache(h.start - c.from), m = c.doc.resolveNoCache(h.endB - c.from), y = d.resolve(h.start), V = g.sameParent(m) && g.parent.inlineContent && y.end() >= h.endA, me;
3249
- if ((pe && t.input.lastIOSEnter > Date.now() - 225 && (!V || i.some((b) => b.nodeName == "DIV" || b.nodeName == "P")) || !V && g.pos < c.doc.content.size && (!g.sameParent(m) || !g.parent.inlineContent) && !/\S/.test(c.doc.textBetween(g.pos, m.pos, "", "")) && (me = he.findFrom(c.doc.resolve(g.pos + 1), 1, !0)) && me.head > g.pos) && t.someProp("handleKeyDown", (b) => b(t, ee(13, "Enter")))) {
3251
+ if ((pe && t.input.lastIOSEnter > Date.now() - 225 && (!V || i.some((b) => b.nodeName == "DIV" || b.nodeName == "P")) || !V && g.pos < c.doc.content.size && (!g.sameParent(m) || !g.parent.inlineContent) && !/\S/.test(c.doc.textBetween(g.pos, m.pos, "", "")) && (me = he.findFrom(c.doc.resolve(g.pos + 1), 1, !0)) && me.head > g.pos) && t.someProp("handleKeyDown", (b) => b(t, te(13, "Enter")))) {
3250
3252
  t.input.lastIOSEnter = 0;
3251
3253
  return;
3252
3254
  }
3253
- if (t.state.selection.anchor > h.start && ti(d, h.start, h.endA, g, m) && t.someProp("handleKeyDown", (b) => b(t, ee(8, "Backspace")))) {
3255
+ if (t.state.selection.anchor > h.start && ti(d, h.start, h.endA, g, m) && t.someProp("handleKeyDown", (b) => b(t, te(8, "Backspace")))) {
3254
3256
  H && M && t.domObserver.suppressSelectionUpdates();
3255
3257
  return;
3256
3258
  }
3257
3259
  M && h.endB == h.start && (t.input.lastChromeDelete = Date.now()), H && !V && g.start() != m.start() && m.parentOffset == 0 && g.depth == m.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, m = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
3258
3260
  t.someProp("handleKeyDown", function(b) {
3259
- return b(t, ee(13, "Enter"));
3261
+ return b(t, te(13, "Enter"));
3260
3262
  });
3261
3263
  }, 20));
3262
- let j = h.start, v = h.endA, xe = (b) => {
3263
- let N = b || t.state.tr.replace(j, v, c.doc.slice(h.start - c.from, h.endB - c.from));
3264
+ let j = h.start, ee = h.endA, xe = (b) => {
3265
+ let N = b || t.state.tr.replace(j, ee, c.doc.slice(h.start - c.from, h.endB - c.from));
3264
3266
  if (c.sel) {
3265
3267
  let E = Rt(t, N.doc, c.sel);
3266
- E && !(M && t.composing && E.empty && (h.start != h.endB || t.input.lastChromeDelete < Date.now() - 100) && (E.head == j || E.head == N.mapping.map(v) - 1) || P && E.empty && E.head == j) && N.setSelection(E);
3268
+ E && !(M && t.composing && E.empty && (h.start != h.endB || t.input.lastChromeDelete < Date.now() - 100) && (E.head == j || E.head == N.mapping.map(ee) - 1) || P && E.empty && E.head == j) && N.setSelection(E);
3267
3269
  }
3268
3270
  return s && N.setMeta("composition", s), N.scrollIntoView();
3269
3271
  }, ke;
3270
3272
  if (V) {
3271
3273
  if (g.pos == m.pos) {
3272
3274
  P && Z <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => W(t), 20));
3273
- let b = xe(t.state.tr.delete(j, v)), N = d.resolve(h.start).marksAcross(d.resolve(h.endA));
3275
+ let b = xe(t.state.tr.delete(j, ee)), N = d.resolve(h.start).marksAcross(d.resolve(h.endA));
3274
3276
  N && b.ensureMarks(N), t.dispatch(b);
3275
3277
  } else if (
3276
3278
  // Adding or removing a mark
3277
3279
  h.endA == h.endB && (ke = ei(g.parent.content.cut(g.parentOffset, m.parentOffset), y.parent.content.cut(y.parentOffset, h.endA - y.start())))
3278
3280
  ) {
3279
3281
  let b = xe(t.state.tr);
3280
- ke.type == "add" ? b.addMark(j, v, ke.mark) : b.removeMark(j, v, ke.mark), t.dispatch(b);
3282
+ ke.type == "add" ? b.addMark(j, ee, ke.mark) : b.removeMark(j, ee, ke.mark), t.dispatch(b);
3281
3283
  } else if (g.parent.child(g.index()).isText && g.index() == m.index() - (m.textOffset ? 0 : 1)) {
3282
- let b = g.parent.textBetween(g.parentOffset, m.parentOffset), N = () => xe(t.state.tr.insertText(b, j, v));
3283
- t.someProp("handleTextInput", (E) => E(t, j, v, b, N)) || t.dispatch(N());
3284
+ let b = g.parent.textBetween(g.parentOffset, m.parentOffset), N = () => xe(t.state.tr.insertText(b, j, ee));
3285
+ t.someProp("handleTextInput", (E) => E(t, j, ee, b, N)) || t.dispatch(N());
3284
3286
  }
3285
3287
  } else
3286
3288
  t.dispatch(xe());