@nuasite/cms 0.23.0 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/editor.js CHANGED
@@ -3,7 +3,7 @@ var l1 = (t) => {
3
3
  };
4
4
  var c1 = (t, e, r) => e.has(t) || l1("Cannot " + r);
5
5
  var $e = (t, e, r) => (c1(t, e, "read from private field"), r ? r.call(t) : e.get(t)), yt = (t, e, r) => e.has(t) ? l1("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Do = (t, e, r, n) => (c1(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
6
- var yp, at, dS, pS, Bi, u1, fS, mS, lf, fh, ec, gS, D0, Pm, Lm, sd = {}, od = [], O_ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, wp = Array.isArray;
6
+ var yp, at, dS, pS, Fi, u1, fS, mS, lf, fh, ec, gS, D0, Pm, Lm, sd = {}, od = [], O_ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, wp = Array.isArray;
7
7
  function oi(t, e) {
8
8
  for (var r in e) t[r] = e[r];
9
9
  return t;
@@ -44,13 +44,13 @@ function bS(t) {
44
44
  }), bS(t);
45
45
  }
46
46
  function h1(t) {
47
- (!t.__d && (t.__d = !0) && Bi.push(t) && !ad.__r++ || u1 != at.debounceRendering) && ((u1 = at.debounceRendering) || fS)(ad);
47
+ (!t.__d && (t.__d = !0) && Fi.push(t) && !ad.__r++ || u1 != at.debounceRendering) && ((u1 = at.debounceRendering) || fS)(ad);
48
48
  }
49
49
  function ad() {
50
50
  try {
51
- for (var t, e = 1; Bi.length; ) Bi.length > e && Bi.sort(mS), t = Bi.shift(), e = Bi.length, D_(t);
51
+ for (var t, e = 1; Fi.length; ) Fi.length > e && Fi.sort(mS), t = Fi.shift(), e = Fi.length, D_(t);
52
52
  } finally {
53
- Bi.length = ad.__r = 0;
53
+ Fi.length = ad.__r = 0;
54
54
  }
55
55
  }
56
56
  function xS(t, e, r, n, i, s, o, a, l, c, u) {
@@ -236,7 +236,7 @@ yp = od.slice, at = { __e: function(t, e, r, n) {
236
236
  r = this.__s != null && this.__s != this.state ? this.__s : this.__s = oi({}, this.state), typeof t == "function" && (t = t(oi({}, r), this.props)), t && oi(r, t), t != null && this.__v && (e && this._sb.push(e), h1(this));
237
237
  }, ia.prototype.forceUpdate = function(t) {
238
238
  this.__v && (this.__e = !0, t && this.__h.push(t), h1(this));
239
- }, ia.prototype.render = et, Bi = [], fS = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mS = function(t, e) {
239
+ }, ia.prototype.render = et, Fi = [], fS = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mS = function(t, e) {
240
240
  return t.__v.__b - e.__v.__b;
241
241
  }, ad.__r = 0, lf = Math.random().toString(8), fh = "__d" + lf, ec = "__a" + lf, gS = /(PointerCapture)$|Capture$/i, D0 = 0, Pm = p1(!1), Lm = p1(!0);
242
242
  var $_ = 0;
@@ -381,7 +381,7 @@ function CS(t, e) {
381
381
  function ES(t, e) {
382
382
  return typeof e == "function" ? e(t) : e;
383
383
  }
384
- const J_ = "0.23.0", j_ = J_, ct = {
384
+ const J_ = "0.23.1", j_ = J_, ct = {
385
385
  /** Highlight overlay for hovered elements */
386
386
  HIGHLIGHT: 2147483644,
387
387
  /** Hover outline for elements/components */
@@ -478,7 +478,7 @@ async function $0(t, e, r) {
478
478
  });
479
479
  return n.ok ? n.json() : e;
480
480
  }
481
- const qi = {
481
+ const Wi = {
482
482
  weight: {
483
483
  normal: { class: "font-normal", label: "Normal", css: { fontWeight: "400" } },
484
484
  medium: { class: "font-medium", label: "Medium", css: { fontWeight: "500" } },
@@ -528,7 +528,7 @@ const qi = {
528
528
  highlight: "none",
529
529
  size: "base"
530
530
  }, z0 = /* @__PURE__ */ new Map();
531
- for (const [t, e] of Object.entries(qi))
531
+ for (const [t, e] of Object.entries(Wi))
532
532
  for (const [r, n] of Object.entries(e))
533
533
  n.class && z0.set(n.class, { category: t, key: r });
534
534
  const q_ = new Set(z0.keys());
@@ -558,7 +558,7 @@ function Ac(t) {
558
558
  if (n === void 0) continue;
559
559
  const i = AS[r];
560
560
  if (n === i) continue;
561
- const o = qi[r][n];
561
+ const o = Wi[r][n];
562
562
  o?.class && e.push(o.class);
563
563
  }
564
564
  return e.join(" ");
@@ -578,7 +578,7 @@ function G_(t, e) {
578
578
  const r = {};
579
579
  for (const [n, i] of Object.entries(t)) {
580
580
  if (i === void 0) continue;
581
- const o = qi[n][i];
581
+ const o = Wi[n][i];
582
582
  if (o?.class) {
583
583
  const a = W_(o.class, e);
584
584
  a ? Object.assign(r, a) : o.css && Object.assign(r, o.css);
@@ -762,7 +762,7 @@ function k1(t) {
762
762
  return e ? On(e.className) : {};
763
763
  }
764
764
  function i3(t, e) {
765
- const r = qi[t];
765
+ const r = Wi[t];
766
766
  return typeof e == "string" && e in r;
767
767
  }
768
768
  function s3(t) {
@@ -1399,7 +1399,7 @@ function G0() {
1399
1399
  };
1400
1400
  }
1401
1401
  Oe(!1);
1402
- const xr = Oe(!1), Qi = Oe(!1), Jm = Oe(!1), K0 = Oe(!1), pd = Oe(null), Dn = Oe(null), io = Oe(null);
1402
+ const xr = Oe(!1), Zi = Oe(!1), Jm = Oe(!1), K0 = Oe(!1), pd = Oe(null), Dn = Oe(null), io = Oe(null);
1403
1403
  function rc(t) {
1404
1404
  io.value = t;
1405
1405
  }
@@ -1468,9 +1468,9 @@ Qe(() => pn.value.isCreating);
1468
1468
  Qe(() => pn.value.selectedCollection);
1469
1469
  const k3 = Qe(() => pn.value.mode), fn = Oe(
1470
1470
  U0()
1471
- ), S3 = Qe(() => fn.value.isOpen), rs = Oe(
1471
+ ), S3 = Qe(() => fn.value.isOpen), ns = Oe(
1472
1472
  q0()
1473
- ), XS = Qe(() => rs.value.isOpen), ya = Oe(
1473
+ ), XS = Qe(() => ns.value.isOpen), ya = Oe(
1474
1474
  qS()
1475
1475
  ), C3 = Qe(() => ya.value.isOpen), E3 = Qe(() => ya.value.selectedCollection), nc = Oe(null);
1476
1476
  let xh = null;
@@ -1751,16 +1751,16 @@ function Zu() {
1751
1751
  fn.value = U0();
1752
1752
  }
1753
1753
  function nO() {
1754
- rs.value = { ...q0(), isOpen: !0, isLoading: !0 };
1754
+ ns.value = { ...q0(), isOpen: !0, isLoading: !0 };
1755
1755
  }
1756
1756
  function iO(t) {
1757
- rs.value = { ...rs.value, rules: t, isLoading: !1 };
1757
+ ns.value = { ...ns.value, rules: t, isLoading: !1 };
1758
1758
  }
1759
1759
  function ff(t) {
1760
- rs.value = { ...rs.value, editingIndex: t };
1760
+ ns.value = { ...ns.value, editingIndex: t };
1761
1761
  }
1762
1762
  function A1() {
1763
- rs.value = q0();
1763
+ ns.value = q0();
1764
1764
  }
1765
1765
  function N1() {
1766
1766
  ya.value = { isOpen: !0, selectedCollection: null };
@@ -2394,7 +2394,7 @@ const OO = (t, e) => {
2394
2394
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2395
2395
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2396
2396
  r5.test(t) && !n5.test(t)
2397
- ), mb = () => !1, a5 = (t) => i5.test(t), l5 = (t) => s5.test(t), c5 = (t) => !pe(t) && !me(t), u5 = (t) => hs(t, AC, mb), pe = (t) => kC.test(t), ks = (t) => hs(t, NC, o5), R1 = (t) => hs(t, x5, ze), h5 = (t) => hs(t, MC, CC), d5 = (t) => hs(t, IC, mb), D1 = (t) => hs(t, EC, mb), p5 = (t) => hs(t, TC, l5), eh = (t) => hs(t, _C, a5), me = (t) => SC.test(t), tl = (t) => ko(t, NC), f5 = (t) => ko(t, IC), P1 = (t) => ko(t, EC), m5 = (t) => ko(t, AC), g5 = (t) => ko(t, TC), th = (t) => ko(t, _C, !0), b5 = (t) => ko(t, MC, !0), hs = (t, e, r) => {
2397
+ ), mb = () => !1, a5 = (t) => i5.test(t), l5 = (t) => s5.test(t), c5 = (t) => !pe(t) && !me(t), u5 = (t) => ds(t, AC, mb), pe = (t) => kC.test(t), Ss = (t) => ds(t, NC, o5), R1 = (t) => ds(t, x5, ze), h5 = (t) => ds(t, MC, CC), d5 = (t) => ds(t, IC, mb), D1 = (t) => ds(t, EC, mb), p5 = (t) => ds(t, TC, l5), eh = (t) => ds(t, _C, a5), me = (t) => SC.test(t), tl = (t) => ko(t, NC), f5 = (t) => ko(t, IC), P1 = (t) => ko(t, EC), m5 = (t) => ko(t, AC), g5 = (t) => ko(t, TC), th = (t) => ko(t, _C, !0), b5 = (t) => ko(t, MC, !0), ds = (t, e, r) => {
2398
2398
  const n = kC.exec(t);
2399
2399
  return n ? n[1] ? e(n[1]) : r(n[2]) : !1;
2400
2400
  }, ko = (t, e, r = !1) => {
@@ -2427,7 +2427,7 @@ const OO = (t, e) => {
2427
2427
  repeat: ["", "x", "y", "space", "round"]
2428
2428
  }], D = () => ["auto", "cover", "contain", m5, u5, {
2429
2429
  size: [me, pe]
2430
- }], ne = () => [gf, tl, ks], ae = () => [
2430
+ }], ne = () => [gf, tl, Ss], ae = () => [
2431
2431
  // Deprecated since Tailwind CSS v4.0.0
2432
2432
  "",
2433
2433
  "none",
@@ -2435,7 +2435,7 @@ const OO = (t, e) => {
2435
2435
  c,
2436
2436
  me,
2437
2437
  pe
2438
- ], le = () => ["", ze, tl, ks], Le = () => ["solid", "dashed", "dotted", "double"], De = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ce = () => [ze, gf, P1, D1], Ee = () => [
2438
+ ], le = () => ["", ze, tl, Ss], Le = () => ["solid", "dashed", "dotted", "double"], De = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ce = () => [ze, gf, P1, D1], Ee = () => [
2439
2439
  // Deprecated since Tailwind CSS v4.0.0
2440
2440
  "",
2441
2441
  "none",
@@ -3231,7 +3231,7 @@ const OO = (t, e) => {
3231
3231
  * @see https://tailwindcss.com/docs/font-size
3232
3232
  */
3233
3233
  "font-size": [{
3234
- text: ["base", r, tl, ks]
3234
+ text: ["base", r, tl, Ss]
3235
3235
  }],
3236
3236
  /**
3237
3237
  * Font Smoothing
@@ -3386,7 +3386,7 @@ const OO = (t, e) => {
3386
3386
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3387
3387
  */
3388
3388
  "text-decoration-thickness": [{
3389
- decoration: [ze, "from-font", "auto", me, ks]
3389
+ decoration: [ze, "from-font", "auto", me, Ss]
3390
3390
  }],
3391
3391
  /**
3392
3392
  * Text Decoration Color
@@ -3901,7 +3901,7 @@ const OO = (t, e) => {
3901
3901
  * @see https://tailwindcss.com/docs/outline-width
3902
3902
  */
3903
3903
  "outline-w": [{
3904
- outline: ["", ze, tl, ks]
3904
+ outline: ["", ze, tl, Ss]
3905
3905
  }],
3906
3906
  /**
3907
3907
  * Outline Color
@@ -3976,7 +3976,7 @@ const OO = (t, e) => {
3976
3976
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
3977
3977
  */
3978
3978
  "ring-offset-w": [{
3979
- "ring-offset": [ze, ks]
3979
+ "ring-offset": [ze, Ss]
3980
3980
  }],
3981
3981
  /**
3982
3982
  * Ring Offset Color
@@ -4954,7 +4954,7 @@ const OO = (t, e) => {
4954
4954
  * @see https://tailwindcss.com/docs/stroke-width
4955
4955
  */
4956
4956
  "stroke-w": [{
4957
- stroke: [ze, tl, ks, R1]
4957
+ stroke: [ze, tl, Ss, R1]
4958
4958
  }],
4959
4959
  /**
4960
4960
  * Stroke
@@ -5849,7 +5849,7 @@ function C5({ onClose: t }) {
5849
5849
  }
5850
5850
  );
5851
5851
  }
5852
- const BC = 100, E5 = 500, wa = Oe([]), ns = Oe([]), T5 = Qe(() => wa.value.length > 0 || In !== null), A5 = Qe(() => ns.value.length > 0);
5852
+ const BC = 100, E5 = 500, wa = Oe([]), is = Oe([]), T5 = Qe(() => wa.value.length > 0 || In !== null), A5 = Qe(() => is.value.length > 0);
5853
5853
  let mn = !1, In = null, ui = null;
5854
5854
  function Sd() {
5855
5855
  In && (gb(In), In = null), ui && (clearTimeout(ui), ui = null);
@@ -5859,18 +5859,18 @@ function N5(t) {
5859
5859
  ...In,
5860
5860
  currentHTML: t.currentHTML,
5861
5861
  currentText: t.currentText
5862
- } : (Sd(), In = t), ns.value = [], ui && clearTimeout(ui), ui = setTimeout(Sd, E5));
5862
+ } : (Sd(), In = t), is.value = [], ui && clearTimeout(ui), ui = setTimeout(Sd, E5));
5863
5863
  }
5864
5864
  function Np(t) {
5865
- mn || (Sd(), gb(t), ns.value = []);
5865
+ mn || (Sd(), gb(t), is.value = []);
5866
5866
  }
5867
5867
  function gb(t) {
5868
5868
  const e = [...wa.value, t];
5869
5869
  e.length > BC && e.shift(), wa.value = e;
5870
5870
  }
5871
5871
  function I5(t) {
5872
- const e = [...ns.value, t];
5873
- e.length > BC && e.shift(), ns.value = e;
5872
+ const e = [...is.value, t];
5873
+ e.length > BC && e.shift(), is.value = e;
5874
5874
  }
5875
5875
  function M5() {
5876
5876
  Sd();
@@ -5885,10 +5885,10 @@ function M5() {
5885
5885
  }
5886
5886
  }
5887
5887
  function _5() {
5888
- const t = ns.value;
5888
+ const t = is.value;
5889
5889
  if (t.length === 0) return;
5890
5890
  const e = t[t.length - 1];
5891
- ns.value = t.slice(0, -1), mn = !0;
5891
+ is.value = t.slice(0, -1), mn = !0;
5892
5892
  try {
5893
5893
  R5(e), gb(e);
5894
5894
  } finally {
@@ -6033,7 +6033,7 @@ function H1(t, e, r, n, i, s, o, a, l) {
6033
6033
  })), pb(vi.value);
6034
6034
  }
6035
6035
  function $C() {
6036
- wa.value = [], ns.value = [], In = null, ui && (clearTimeout(ui), ui = null);
6036
+ wa.value = [], is.value = [], In = null, ui && (clearTimeout(ui), ui = null);
6037
6037
  }
6038
6038
  function zC(t) {
6039
6039
  const e = {};
@@ -9064,7 +9064,7 @@ function Cb() {
9064
9064
  function YR() {
9065
9065
  return Cb() ? "#FFFFFF" : "#1A1A1A";
9066
9066
  }
9067
- let Ji = null;
9067
+ let ji = null;
9068
9068
  function ZC(t, e, r) {
9069
9069
  const n = document.elementsFromPoint(t, e);
9070
9070
  for (const i of n) {
@@ -9160,18 +9160,18 @@ function a2() {
9160
9160
  GR(), WR(), n4();
9161
9161
  }
9162
9162
  function r4() {
9163
- if (Ji) return;
9163
+ if (ji) return;
9164
9164
  const e = Cb() ? "rgba(255, 255, 255, 0.15)" : "rgba(26, 26, 26, 0.15)";
9165
- Ji = document.createElement("style"), Ji.id = "cms-focus-styles", Ji.textContent = `
9165
+ ji = document.createElement("style"), ji.id = "cms-focus-styles", ji.textContent = `
9166
9166
  [contenteditable="true"][data-cms-id]:focus {
9167
9167
  outline: 2px solid ${e};
9168
9168
  outline-offset: 6px;
9169
9169
  border-radius: 4px;
9170
9170
  }
9171
- `, document.head.appendChild(Ji);
9171
+ `, document.head.appendChild(ji);
9172
9172
  }
9173
9173
  function n4() {
9174
- Ji && (Ji.remove(), Ji = null);
9174
+ ji && (ji.remove(), ji = null);
9175
9175
  }
9176
9176
  function Ve(t, ...e) {
9177
9177
  t && console.debug("[CMS]", ...e);
@@ -9842,7 +9842,7 @@ function f2(t, e) {
9842
9842
  function dn(t) {
9843
9843
  return t.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
9844
9844
  }
9845
- const Ht = ds(/[A-Za-z]/), yr = ds(/[\dA-Za-z]/), N4 = ds(/[#-'*+\--9=?A-Z^-~]/);
9845
+ const Ht = ps(/[A-Za-z]/), yr = ps(/[\dA-Za-z]/), N4 = ps(/[#-'*+\--9=?A-Z^-~]/);
9846
9846
  function Ed(t) {
9847
9847
  return (
9848
9848
  // Special whitespace codes (which have negative values), C0 and Control
@@ -9850,7 +9850,7 @@ function Ed(t) {
9850
9850
  t !== null && (t < 32 || t === 127)
9851
9851
  );
9852
9852
  }
9853
- const ag = ds(/\d/), I4 = ds(/[\dA-Fa-f]/), M4 = ds(/[!-/:-@[-`{-~]/);
9853
+ const ag = ps(/\d/), I4 = ps(/[\dA-Fa-f]/), M4 = ps(/[!-/:-@[-`{-~]/);
9854
9854
  function be(t) {
9855
9855
  return t !== null && t < -2;
9856
9856
  }
@@ -9860,8 +9860,8 @@ function Ke(t) {
9860
9860
  function Pe(t) {
9861
9861
  return t === -2 || t === -1 || t === 32;
9862
9862
  }
9863
- const Rp = ds(new RegExp("\\p{P}|\\p{S}", "u")), tr = ds(/\s/);
9864
- function ds(t) {
9863
+ const Rp = ps(new RegExp("\\p{P}|\\p{S}", "u")), tr = ps(/\s/);
9864
+ function ps(t) {
9865
9865
  return e;
9866
9866
  function e(r) {
9867
9867
  return r !== null && r > -1 && t.test(String.fromCharCode(r));
@@ -12163,18 +12163,18 @@ function kP(t) {
12163
12163
  return K;
12164
12164
  }
12165
12165
  function i(J, K, I) {
12166
- let ve = K - 1, Me = -1, Ft = !1, Pr, se, Xn, vs;
12166
+ let ve = K - 1, Me = -1, Ft = !1, Pr, se, Xn, ks;
12167
12167
  for (; ++ve <= I; ) {
12168
12168
  const Qt = J[ve];
12169
12169
  switch (Qt[1].type) {
12170
12170
  case "listUnordered":
12171
12171
  case "listOrdered":
12172
12172
  case "blockQuote": {
12173
- Qt[0] === "enter" ? Me++ : Me--, vs = void 0;
12173
+ Qt[0] === "enter" ? Me++ : Me--, ks = void 0;
12174
12174
  break;
12175
12175
  }
12176
12176
  case "lineEndingBlank": {
12177
- Qt[0] === "enter" && (Pr && !vs && !Me && !Xn && (Xn = ve), vs = void 0);
12177
+ Qt[0] === "enter" && (Pr && !ks && !Me && !Xn && (Xn = ve), ks = void 0);
12178
12178
  break;
12179
12179
  }
12180
12180
  case "linePrefix":
@@ -12184,7 +12184,7 @@ function kP(t) {
12184
12184
  case "listItemPrefixWhitespace":
12185
12185
  break;
12186
12186
  default:
12187
- vs = void 0;
12187
+ ks = void 0;
12188
12188
  }
12189
12189
  if (!Me && Qt[0] === "enter" && Qt[1].type === "listItemPrefix" || Me === -1 && Qt[0] === "exit" && (Qt[1].type === "listUnordered" || Qt[1].type === "listOrdered")) {
12190
12190
  if (Pr) {
@@ -12206,7 +12206,7 @@ function kP(t) {
12206
12206
  // @ts-expect-error: we’ll add `end` in a second.
12207
12207
  end: void 0
12208
12208
  };
12209
- Pr = Lr, J.splice(ve, 0, ["enter", Lr, Qt[2]]), ve++, I++, Xn = void 0, vs = !0;
12209
+ Pr = Lr, J.splice(ve, 0, ["enter", Lr, Qt[2]]), ve++, I++, Xn = void 0, ks = !0;
12210
12210
  }
12211
12211
  }
12212
12212
  }
@@ -12781,7 +12781,7 @@ function DP(t) {
12781
12781
  );
12782
12782
  return e;
12783
12783
  }
12784
- function is(t) {
12784
+ function ss(t) {
12785
12785
  return "&#x" + t.toString(16).toUpperCase() + ";";
12786
12786
  }
12787
12787
  function Ad(t, e, r) {
@@ -12832,9 +12832,9 @@ function I2(t, e, r, n) {
12832
12832
  c,
12833
12833
  i
12834
12834
  );
12835
- u.inside && (l = is(c) + l.slice(1));
12835
+ u.inside && (l = ss(c) + l.slice(1));
12836
12836
  const d = l.charCodeAt(l.length - 1), p = Ad(n.after.charCodeAt(0), d, i);
12837
- p.inside && (l = l.slice(0, -1) + is(d));
12837
+ p.inside && (l = l.slice(0, -1) + ss(d));
12838
12838
  const f = o.move(i);
12839
12839
  return s(), r.attentionEncodeSurroundingInfo = {
12840
12840
  after: p.outside,
@@ -13022,7 +13022,7 @@ function jP(t, e, r, n) {
13022
13022
  `,
13023
13023
  ...s.current()
13024
13024
  });
13025
- return /^[\t ]/.test(c) && (c = is(c.charCodeAt(0)) + c.slice(1)), c = c ? o + " " + c : o, r.options.closeAtx && (c += " " + o), l(), a(), c;
13025
+ return /^[\t ]/.test(c) && (c = ss(c.charCodeAt(0)) + c.slice(1)), c = c ? o + " " + c : o, r.options.closeAtx && (c += " " + o), l(), a(), c;
13026
13026
  }
13027
13027
  O2.peek = UP;
13028
13028
  function O2(t) {
@@ -13332,9 +13332,9 @@ function z2(t, e, r, n) {
13332
13332
  c,
13333
13333
  i
13334
13334
  );
13335
- u.inside && (l = is(c) + l.slice(1));
13335
+ u.inside && (l = ss(c) + l.slice(1));
13336
13336
  const d = l.charCodeAt(l.length - 1), p = Ad(n.after.charCodeAt(0), d, i);
13337
- p.inside && (l = l.slice(0, -1) + is(d));
13337
+ p.inside && (l = l.slice(0, -1) + ss(d));
13338
13338
  const f = o.move(i + i);
13339
13339
  return s(), r.attentionEncodeSurroundingInfo = {
13340
13340
  after: p.outside,
@@ -13389,7 +13389,7 @@ function h6(t, e, r, n) {
13389
13389
  (t.type === e.type || e.type === "definition" || // Paragraph followed by a setext heading.
13390
13390
  e.type === "heading" && _2(e, n)) ? void 0 : r.spread ? 1 : 0;
13391
13391
  }
13392
- const Ss = [
13392
+ const Cs = [
13393
13393
  "autolink",
13394
13394
  "destinationLiteral",
13395
13395
  "destinationRaw",
@@ -13438,7 +13438,7 @@ const Ss = [
13438
13438
  character: "!",
13439
13439
  after: "\\[",
13440
13440
  inConstruct: "phrasing",
13441
- notInConstruct: Ss
13441
+ notInConstruct: Cs
13442
13442
  },
13443
13443
  // A quote can break out of a title.
13444
13444
  { character: '"', inConstruct: "titleQuote" },
@@ -13458,7 +13458,7 @@ const Ss = [
13458
13458
  before: "\\]",
13459
13459
  character: "(",
13460
13460
  inConstruct: "phrasing",
13461
- notInConstruct: Ss
13461
+ notInConstruct: Cs
13462
13462
  },
13463
13463
  // A right paren could start a list item or break out of a destination
13464
13464
  // raw.
@@ -13467,7 +13467,7 @@ const Ss = [
13467
13467
  // An asterisk can start thematic breaks, list items, emphasis, strong.
13468
13468
  { atBreak: !0, character: "*", after: `(?:[ \r
13469
13469
  *])` },
13470
- { character: "*", inConstruct: "phrasing", notInConstruct: Ss },
13470
+ { character: "*", inConstruct: "phrasing", notInConstruct: Cs },
13471
13471
  // A plus sign could start a list item.
13472
13472
  { atBreak: !0, character: "+", after: `(?:[ \r
13473
13473
  ])` },
@@ -13489,7 +13489,7 @@ const Ss = [
13489
13489
  character: "<",
13490
13490
  after: "[!/?A-Za-z]",
13491
13491
  inConstruct: "phrasing",
13492
- notInConstruct: Ss
13492
+ notInConstruct: Cs
13493
13493
  },
13494
13494
  { character: "<", inConstruct: "destinationLiteral" },
13495
13495
  // An equals to can start setext heading underlines.
@@ -13501,7 +13501,7 @@ const Ss = [
13501
13501
  // Question mark and at sign are not used in markdown for constructs.
13502
13502
  // A left bracket can start definitions, references, labels,
13503
13503
  { atBreak: !0, character: "[" },
13504
- { character: "[", inConstruct: "phrasing", notInConstruct: Ss },
13504
+ { character: "[", inConstruct: "phrasing", notInConstruct: Cs },
13505
13505
  { character: "[", inConstruct: ["label", "reference"] },
13506
13506
  // A backslash can start an escape (when followed by punctuation) or a
13507
13507
  // hard break (when followed by an eol).
@@ -13512,7 +13512,7 @@ const Ss = [
13512
13512
  // Caret is not used in markdown for constructs.
13513
13513
  // An underscore can start emphasis, strong, or a thematic break.
13514
13514
  { atBreak: !0, character: "_" },
13515
- { character: "_", inConstruct: "phrasing", notInConstruct: Ss },
13515
+ { character: "_", inConstruct: "phrasing", notInConstruct: Cs },
13516
13516
  // A grave accent can start code (fenced or text), or it can break out of
13517
13517
  // a grave accent code fence.
13518
13518
  { atBreak: !0, character: "`" },
@@ -13520,7 +13520,7 @@ const Ss = [
13520
13520
  character: "`",
13521
13521
  inConstruct: ["codeFencedLangGraveAccent", "codeFencedMetaGraveAccent"]
13522
13522
  },
13523
- { character: "`", inConstruct: "phrasing", notInConstruct: Ss },
13523
+ { character: "`", inConstruct: "phrasing", notInConstruct: Cs },
13524
13524
  // Left brace, vertical bar, right brace are not used in markdown for
13525
13525
  // constructs.
13526
13526
  // A tilde can start code (fenced).
@@ -13566,9 +13566,9 @@ function m6(t, e, r) {
13566
13566
  after: d,
13567
13567
  before: a
13568
13568
  });
13569
- l && l === p.slice(0, 1) && (p = is(l.charCodeAt(0)) + p.slice(1));
13569
+ l && l === p.slice(0, 1) && (p = ss(l.charCodeAt(0)) + p.slice(1));
13570
13570
  const f = e.attentionEncodeSurroundingInfo;
13571
- e.attentionEncodeSurroundingInfo = void 0, l = void 0, f && (s.length > 0 && f.before && a === s[s.length - 1].slice(-1) && (s[s.length - 1] = s[s.length - 1].slice(0, -1) + is(a.charCodeAt(0))), f.after && (l = d)), c.move(p), s.push(p), a = p.slice(-1);
13571
+ e.attentionEncodeSurroundingInfo = void 0, l = void 0, f && (s.length > 0 && f.before && a === s[s.length - 1].slice(-1) && (s[s.length - 1] = s[s.length - 1].slice(0, -1) + ss(a.charCodeAt(0))), f.after && (l = d)), c.move(p), s.push(p), a = p.slice(-1);
13572
13572
  }
13573
13573
  return n.pop(), s.join("");
13574
13574
  }
@@ -13643,7 +13643,7 @@ function w6(t, e, r) {
13643
13643
  const c = n.length - (r.after ? r.after.length : 0);
13644
13644
  for (a = -1; ++a < i.length; ) {
13645
13645
  const u = i[a];
13646
- u < l || u >= c || u + 1 < c && i[a + 1] === u + 1 && o[u].after && !o[u + 1].before && !o[u + 1].after || i[a - 1] === u - 1 && o[u].before && !o[u - 1].before && !o[u - 1].after || (l !== u && s.push(dw(n.slice(l, u), "\\")), l = u, /[!-/:-@[-`{-~]/.test(n.charAt(u)) && (!r.encode || !r.encode.includes(n.charAt(u))) ? s.push("\\") : (s.push(is(n.charCodeAt(u))), l++));
13646
+ u < l || u >= c || u + 1 < c && i[a + 1] === u + 1 && o[u].after && !o[u + 1].before && !o[u + 1].after || i[a - 1] === u - 1 && o[u].before && !o[u - 1].before && !o[u - 1].after || (l !== u && s.push(dw(n.slice(l, u), "\\")), l = u, /[!-/:-@[-`{-~]/.test(n.charAt(u)) && (!r.encode || !r.encode.includes(n.charAt(u))) ? s.push("\\") : (s.push(ss(n.charCodeAt(u))), l++));
13647
13647
  }
13648
13648
  return s.push(dw(n.slice(l, c), r.after)), s.join("");
13649
13649
  }
@@ -22005,15 +22005,15 @@ function KE(t, e, r = null) {
22005
22005
  return a.node(-1).canReplaceWith(a.index(-1), a.indexAfter(-1), e) ? n.tr.delete(s, o).setBlockType(s, s, e, l) : null;
22006
22006
  });
22007
22007
  }
22008
- const ss = typeof navigator < "u" ? navigator : null, Hw = typeof document < "u" ? document : null, ps = ss && ss.userAgent || "", _g = /Edge\/(\d+)/.exec(ps), XE = /MSIE \d/.exec(ps), Og = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ps), qb = !!(XE || Og || _g);
22008
+ const as = typeof navigator < "u" ? navigator : null, Hw = typeof document < "u" ? document : null, fs = as && as.userAgent || "", _g = /Edge\/(\d+)/.exec(fs), XE = /MSIE \d/.exec(fs), Og = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fs), qb = !!(XE || Og || _g);
22009
22009
  XE ? document.documentMode : Og ? +Og[1] : _g && +_g[1];
22010
- const LB = !qb && /gecko\/(\d+)/i.test(ps);
22011
- LB && +(/Firefox\/(\d+)/.exec(ps) || [0, 0])[1];
22012
- const Rg = !qb && /Chrome\/(\d+)/.exec(ps), BB = !!Rg;
22010
+ const LB = !qb && /gecko\/(\d+)/i.test(fs);
22011
+ LB && +(/Firefox\/(\d+)/.exec(fs) || [0, 0])[1];
22012
+ const Rg = !qb && /Chrome\/(\d+)/.exec(fs), BB = !!Rg;
22013
22013
  Rg && +Rg[1];
22014
- const FB = !qb && !!ss && /Apple Computer/.test(ss.vendor), $B = FB && (/Mobile\/\w+/.test(ps) || !!ss && ss.maxTouchPoints > 2);
22015
- $B || ss && /Mac/.test(ss.platform);
22016
- const zB = /Android \d/.test(ps), VB = !!Hw && "webkitFontSmoothing" in Hw.documentElement.style;
22014
+ const FB = !qb && !!as && /Apple Computer/.test(as.vendor), $B = FB && (/Mobile\/\w+/.test(fs) || !!as && as.maxTouchPoints > 2);
22015
+ $B || as && /Mac/.test(as.platform);
22016
+ const zB = /Android \d/.test(fs), VB = !!Hw && "webkitFontSmoothing" in Hw.documentElement.style;
22017
22017
  VB && +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1];
22018
22018
  function Hf(t, e, r, n, i, s) {
22019
22019
  if (t.composing) return !1;
@@ -22167,7 +22167,7 @@ const XB = (t, e) => {
22167
22167
  target: l
22168
22168
  };
22169
22169
  };
22170
- var as = {
22170
+ var ls = {
22171
22171
  8: "Backspace",
22172
22172
  9: "Tab",
22173
22173
  10: "Enter",
@@ -22246,13 +22246,13 @@ var as = {
22246
22246
  221: "}",
22247
22247
  222: '"'
22248
22248
  }, YB = typeof navigator < "u" && /Mac/.test(navigator.platform), QB = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
22249
- for (var Dt = 0; Dt < 10; Dt++) as[48 + Dt] = as[96 + Dt] = String(Dt);
22250
- for (var Dt = 1; Dt <= 24; Dt++) as[Dt + 111] = "F" + Dt;
22249
+ for (var Dt = 0; Dt < 10; Dt++) ls[48 + Dt] = ls[96 + Dt] = String(Dt);
22250
+ for (var Dt = 1; Dt <= 24; Dt++) ls[Dt + 111] = "F" + Dt;
22251
22251
  for (var Dt = 65; Dt <= 90; Dt++)
22252
- as[Dt] = String.fromCharCode(Dt + 32), Pd[Dt] = String.fromCharCode(Dt);
22253
- for (var Jf in as) Pd.hasOwnProperty(Jf) || (Pd[Jf] = as[Jf]);
22252
+ ls[Dt] = String.fromCharCode(Dt + 32), Pd[Dt] = String.fromCharCode(Dt);
22253
+ for (var Jf in ls) Pd.hasOwnProperty(Jf) || (Pd[Jf] = ls[Jf]);
22254
22254
  function ZB(t) {
22255
- var e = YB && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || QB && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? Pd : as)[t.keyCode] || t.key || "Unidentified";
22255
+ var e = YB && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || QB && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? Pd : ls)[t.keyCode] || t.key || "Unidentified";
22256
22256
  return r == "Esc" && (r = "Escape"), r == "Del" && (r = "Delete"), r == "Left" && (r = "ArrowLeft"), r == "Up" && (r = "ArrowUp"), r == "Right" && (r = "ArrowRight"), r == "Down" && (r = "ArrowDown"), r;
22257
22257
  }
22258
22258
  const eF = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), tF = typeof navigator < "u" && /Win/.test(navigator.platform);
@@ -22302,7 +22302,7 @@ function QE(t) {
22302
22302
  return !0;
22303
22303
  }
22304
22304
  if ((n.altKey || n.metaKey || n.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
22305
- !(tF && n.ctrlKey && n.altKey) && (s = as[n.keyCode]) && s != i) {
22305
+ !(tF && n.ctrlKey && n.altKey) && (s = ls[n.keyCode]) && s != i) {
22306
22306
  let a = e[jf(s, n)];
22307
22307
  if (a && a(r.state, r.dispatch, r))
22308
22308
  return !0;
@@ -23248,9 +23248,9 @@ function kF(t, e, r) {
23248
23248
  return { node: n.startContainer, offset: Math.min(Gr(n.startContainer), n.startOffset) };
23249
23249
  }
23250
23250
  }
23251
- const $n = typeof navigator < "u" ? navigator : null, Ww = typeof document < "u" ? document : null, fs = $n && $n.userAgent || "", Fg = /Edge\/(\d+)/.exec(fs), hT = /MSIE \d/.exec(fs), $g = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fs), wr = !!(hT || $g || Fg), Zi = hT ? document.documentMode : $g ? +$g[1] : Fg ? +Fg[1] : 0, Yr = !wr && /gecko\/(\d+)/i.test(fs);
23252
- Yr && +(/Firefox\/(\d+)/.exec(fs) || [0, 0])[1];
23253
- const zg = !wr && /Chrome\/(\d+)/.exec(fs), Lt = !!zg, dT = zg ? +zg[1] : 0, Jt = !wr && !!$n && /Apple Computer/.test($n.vendor), Ta = Jt && (/Mobile\/\w+/.test(fs) || !!$n && $n.maxTouchPoints > 2), Jr = Ta || ($n ? /Mac/.test($n.platform) : !1), pT = $n ? /Win/.test($n.platform) : !1, li = /Android \d/.test(fs), yu = !!Ww && "webkitFontSmoothing" in Ww.documentElement.style, SF = yu ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23251
+ const $n = typeof navigator < "u" ? navigator : null, Ww = typeof document < "u" ? document : null, ms = $n && $n.userAgent || "", Fg = /Edge\/(\d+)/.exec(ms), hT = /MSIE \d/.exec(ms), $g = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ms), wr = !!(hT || $g || Fg), es = hT ? document.documentMode : $g ? +$g[1] : Fg ? +Fg[1] : 0, Yr = !wr && /gecko\/(\d+)/i.test(ms);
23252
+ Yr && +(/Firefox\/(\d+)/.exec(ms) || [0, 0])[1];
23253
+ const zg = !wr && /Chrome\/(\d+)/.exec(ms), Lt = !!zg, dT = zg ? +zg[1] : 0, Jt = !wr && !!$n && /Apple Computer/.test($n.vendor), Ta = Jt && (/Mobile\/\w+/.test(ms) || !!$n && $n.maxTouchPoints > 2), Jr = Ta || ($n ? /Mac/.test($n.platform) : !1), pT = $n ? /Win/.test($n.platform) : !1, li = /Android \d/.test(ms), yu = !!Ww && "webkitFontSmoothing" in Ww.documentElement.style, SF = yu ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23254
23254
  function CF(t) {
23255
23255
  let e = t.defaultView && t.defaultView.visualViewport;
23256
23256
  return e ? {
@@ -23375,7 +23375,7 @@ function IF(t, e) {
23375
23375
  let r = t.nodeValue.length, n = document.createRange(), i;
23376
23376
  for (let s = 0; s < r; s++) {
23377
23377
  n.setEnd(t, s + 1), n.setStart(t, s);
23378
- let o = Ri(n, 1);
23378
+ let o = Di(n, 1);
23379
23379
  if (o.top != o.bottom && Gb(e, o)) {
23380
23380
  i = { node: t, offset: s + (e.left >= (o.left + o.right) / 2 ? 1 : 0) };
23381
23381
  break;
@@ -23456,7 +23456,7 @@ function RF(t, e) {
23456
23456
  function Kw(t) {
23457
23457
  return t.top < t.bottom || t.left < t.right;
23458
23458
  }
23459
- function Ri(t, e) {
23459
+ function Di(t, e) {
23460
23460
  let r = t.getClientRects();
23461
23461
  if (r.length) {
23462
23462
  let n = r[e < 0 ? 0 : r.length - 1];
@@ -23470,11 +23470,11 @@ function xT(t, e, r) {
23470
23470
  let { node: n, offset: i, atom: s } = t.docView.domFromPos(e, r < 0 ? -1 : 1), o = yu || Yr;
23471
23471
  if (n.nodeType == 3)
23472
23472
  if (o && (DF.test(n.nodeValue) || (r < 0 ? !i : i == n.nodeValue.length))) {
23473
- let l = Ri(ri(n, i, i), r);
23473
+ let l = Di(ri(n, i, i), r);
23474
23474
  if (Yr && i && /\s/.test(n.nodeValue[i - 1]) && i < n.nodeValue.length) {
23475
- let c = Ri(ri(n, i - 1, i - 1), -1);
23475
+ let c = Di(ri(n, i - 1, i - 1), -1);
23476
23476
  if (c.top == l.top) {
23477
- let u = Ri(ri(n, i, i + 1), -1);
23477
+ let u = Di(ri(n, i, i + 1), -1);
23478
23478
  if (u.top != l.top)
23479
23479
  return sl(u, u.left < c.left);
23480
23480
  }
@@ -23482,7 +23482,7 @@ function xT(t, e, r) {
23482
23482
  return l;
23483
23483
  } else {
23484
23484
  let l = i, c = i, u = r < 0 ? 1 : -1;
23485
- return r < 0 && !i ? (c++, u = -1) : r >= 0 && i == n.nodeValue.length ? (l--, u = 1) : r < 0 ? l-- : c++, sl(Ri(ri(n, l, c), u), u < 0);
23485
+ return r < 0 && !i ? (c++, u = -1) : r >= 0 && i == n.nodeValue.length ? (l--, u = 1) : r < 0 ? l-- : c++, sl(Di(ri(n, l, c), u), u < 0);
23486
23486
  }
23487
23487
  if (!t.state.doc.resolve(e - (s || 0)).parent.inlineContent) {
23488
23488
  if (s == null && i && (r < 0 || i == Gr(n))) {
@@ -23500,7 +23500,7 @@ function xT(t, e, r) {
23500
23500
  if (s == null && i && (r < 0 || i == Gr(n))) {
23501
23501
  let l = n.childNodes[i - 1], c = l.nodeType == 3 ? ri(l, Gr(l) - (o ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
23502
23502
  if (c)
23503
- return sl(Ri(c, 1), !1);
23503
+ return sl(Di(c, 1), !1);
23504
23504
  }
23505
23505
  if (s == null && i < Gr(n)) {
23506
23506
  let l = n.childNodes[i];
@@ -23508,9 +23508,9 @@ function xT(t, e, r) {
23508
23508
  l = l.nextSibling;
23509
23509
  let c = l ? l.nodeType == 3 ? ri(l, 0, o ? 0 : 1) : l.nodeType == 1 ? l : null : null;
23510
23510
  if (c)
23511
- return sl(Ri(c, -1), !0);
23511
+ return sl(Di(c, -1), !0);
23512
23512
  }
23513
- return sl(Ri(n.nodeType == 3 ? ri(n) : n, -r), r >= 0);
23513
+ return sl(Di(n.nodeType == 3 ? ri(n) : n, -r), r >= 0);
23514
23514
  }
23515
23515
  function sl(t, e) {
23516
23516
  if (t.width == 0)
@@ -24027,7 +24027,7 @@ class mo extends wu {
24027
24027
  this.spec.destroy && this.spec.destroy(), super.destroy();
24028
24028
  }
24029
24029
  }
24030
- class es extends wu {
24030
+ class ts extends wu {
24031
24031
  constructor(e, r, n, i, s, o, a, l, c) {
24032
24032
  super(e, [], s, o), this.node = r, this.outerDeco = n, this.innerDeco = i, this.nodeDOM = a;
24033
24033
  }
@@ -24055,7 +24055,7 @@ class es extends wu {
24055
24055
  } else u || ({ dom: u, contentDOM: d } = yn.renderSpec(document, r.type.spec.toDOM(r), null, r.attrs));
24056
24056
  !d && !r.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), r.type.spec.draggable && (u.draggable = !0));
24057
24057
  let p = u;
24058
- return u = CT(u, n, r), c ? l = new zF(e, r, n, i, u, d || null, p, c, s, o + 1) : r.isText ? new Vp(e, r, n, i, u, p, s) : new es(e, r, n, i, u, d || null, p, s, o + 1);
24058
+ return u = CT(u, n, r), c ? l = new zF(e, r, n, i, u, d || null, p, c, s, o + 1) : r.isText ? new Vp(e, r, n, i, u, p, s) : new ts(e, r, n, i, u, d || null, p, s, o + 1);
24059
24059
  }
24060
24060
  parseRule() {
24061
24061
  if (this.node.type.spec.reparseInView)
@@ -24155,10 +24155,10 @@ class es extends wu {
24155
24155
  }
24156
24156
  function ev(t, e, r, n, i) {
24157
24157
  CT(n, e, t);
24158
- let s = new es(void 0, t, e, r, n, n, n, i, 0);
24158
+ let s = new ts(void 0, t, e, r, n, n, n, i, 0);
24159
24159
  return s.contentDOM && s.updateChildren(i, 0), s;
24160
24160
  }
24161
- class Vp extends es {
24161
+ class Vp extends ts {
24162
24162
  constructor(e, r, n, i, s, o, a) {
24163
24163
  super(e, r, n, i, s, null, o, a, 0);
24164
24164
  }
@@ -24215,7 +24215,7 @@ class vT extends wu {
24215
24215
  return this.dom.nodeName == "IMG";
24216
24216
  }
24217
24217
  }
24218
- class zF extends es {
24218
+ class zF extends ts {
24219
24219
  constructor(e, r, n, i, s, o, a, l, c, u) {
24220
24220
  super(e, r, n, i, s, o, a, c, u), this.spec = l;
24221
24221
  }
@@ -24427,7 +24427,7 @@ class HF {
24427
24427
  updateNextNode(e, r, n, i, s, o) {
24428
24428
  for (let a = this.index; a < this.top.children.length; a++) {
24429
24429
  let l = this.top.children[a];
24430
- if (l instanceof es) {
24430
+ if (l instanceof ts) {
24431
24431
  let c = this.preMatch.matched.get(l);
24432
24432
  if (c != null && c != s)
24433
24433
  return !1;
@@ -24446,7 +24446,7 @@ class HF {
24446
24446
  recreateWrapper(e, r, n, i, s, o) {
24447
24447
  if (e.dirty || r.isAtom || !e.children.length || !e.node.content.eq(r.content) || !Ld(n, e.outerDeco) || !i.eq(e.innerDeco))
24448
24448
  return null;
24449
- let a = es.create(this.top, r, n, i, s, o);
24449
+ let a = ts.create(this.top, r, n, i, s, o);
24450
24450
  if (a.contentDOM) {
24451
24451
  a.children = e.children, e.children = [];
24452
24452
  for (let l of a.children)
@@ -24456,7 +24456,7 @@ class HF {
24456
24456
  }
24457
24457
  // Insert the node as a newly created node desc.
24458
24458
  addNode(e, r, n, i, s) {
24459
- let o = es.create(this.top, e, r, n, i, s);
24459
+ let o = ts.create(this.top, e, r, n, i, s);
24460
24460
  o.contentDOM && o.updateChildren(i, s + 1), this.top.children.splice(this.index++, 0, o), this.changed = !0;
24461
24461
  }
24462
24462
  placeWidget(e, r, n) {
@@ -24700,7 +24700,7 @@ function KF(t) {
24700
24700
  if (!e)
24701
24701
  return;
24702
24702
  let r = t.cursorWrapper.dom, n = r.nodeName == "IMG";
24703
- n ? e.collapse(r.parentNode, Pt(r) + 1) : e.collapse(r, 0), !n && !t.state.selection.visible && wr && Zi <= 11 && (r.disabled = !0, r.disabled = !1);
24703
+ n ? e.collapse(r.parentNode, Pt(r) + 1) : e.collapse(r, 0), !n && !t.state.selection.visible && wr && es <= 11 && (r.disabled = !0, r.disabled = !1);
24704
24704
  }
24705
24705
  function TT(t, e) {
24706
24706
  if (e instanceof Z) {
@@ -24736,7 +24736,7 @@ function Jg(t, e) {
24736
24736
  let { $anchor: r, $head: n } = t.selection, i = e > 0 ? r.max(n) : r.min(n), s = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
24737
24737
  return s && ke.findFrom(s, e);
24738
24738
  }
24739
- function Fi(t, e) {
24739
+ function $i(t, e) {
24740
24740
  return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0;
24741
24741
  }
24742
24742
  function av(t, e, r) {
@@ -24747,25 +24747,25 @@ function av(t, e, r) {
24747
24747
  if (!s || s.isText || !s.isLeaf)
24748
24748
  return !1;
24749
24749
  let o = t.state.doc.resolve(i.pos + s.nodeSize * (e < 0 ? -1 : 1));
24750
- return Fi(t, new he(n.$anchor, o));
24750
+ return $i(t, new he(n.$anchor, o));
24751
24751
  } else if (n.empty) {
24752
24752
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
24753
24753
  let i = Jg(t.state, e);
24754
- return i && i instanceof Z ? Fi(t, i) : !1;
24754
+ return i && i instanceof Z ? $i(t, i) : !1;
24755
24755
  } else if (!(Jr && r.indexOf("m") > -1)) {
24756
24756
  let i = n.$head, s = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, o;
24757
24757
  if (!s || s.isText)
24758
24758
  return !1;
24759
24759
  let a = e < 0 ? i.pos - s.nodeSize : i.pos;
24760
- return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Z.isSelectable(s) ? Fi(t, new Z(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : yu ? Fi(t, new he(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
24760
+ return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Z.isSelectable(s) ? $i(t, new Z(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : yu ? $i(t, new he(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
24761
24761
  }
24762
24762
  } else return !1;
24763
24763
  else {
24764
24764
  if (n instanceof Z && n.node.isInline)
24765
- return Fi(t, new he(e > 0 ? n.$to : n.$from));
24765
+ return $i(t, new he(e > 0 ? n.$to : n.$from));
24766
24766
  {
24767
24767
  let i = Jg(t.state, e);
24768
- return i ? Fi(t, i) : !1;
24768
+ return i ? $i(t, i) : !1;
24769
24769
  }
24770
24770
  }
24771
24771
  }
@@ -24918,11 +24918,11 @@ function cv(t, e, r) {
24918
24918
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
24919
24919
  let o = Jg(t.state, e);
24920
24920
  if (o && o instanceof Z)
24921
- return Fi(t, o);
24921
+ return $i(t, o);
24922
24922
  }
24923
24923
  if (!i.parent.inlineContent) {
24924
24924
  let o = e < 0 ? i : s, a = n instanceof cr ? ke.near(o, e) : ke.findFrom(o, e);
24925
- return a ? Fi(t, a) : !1;
24925
+ return a ? $i(t, a) : !1;
24926
24926
  }
24927
24927
  return !1;
24928
24928
  }
@@ -25189,7 +25189,7 @@ function d8(t) {
25189
25189
  }
25190
25190
  Jt && t.dom.addEventListener("input", () => null), qg(t);
25191
25191
  }
25192
- function Wi(t, e) {
25192
+ function Gi(t, e) {
25193
25193
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
25194
25194
  }
25195
25195
  function p8(t) {
@@ -25231,7 +25231,7 @@ dr.keydown = (t, e) => {
25231
25231
  t.input.lastIOSEnter = n, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
25232
25232
  t.input.lastIOSEnter == n && (t.someProp("handleKeyDown", (i) => i(t, Os(13, "Enter"))), t.input.lastIOSEnter = 0);
25233
25233
  }, 200);
25234
- } else t.someProp("handleKeyDown", (n) => n(t, r)) || n8(t, r) ? r.preventDefault() : Wi(t, "key");
25234
+ } else t.someProp("handleKeyDown", (n) => n(t, r)) || n8(t, r) ? r.preventDefault() : Gi(t, "key");
25235
25235
  };
25236
25236
  dr.keyup = (t, e) => {
25237
25237
  e.keyCode == 16 && (t.input.shiftKey = !1);
@@ -25330,7 +25330,7 @@ hr.mousedown = (t, e) => {
25330
25330
  let n = ex(t), i = Date.now(), s = "singleClick";
25331
25331
  i - t.input.lastClick.time < 500 && g8(r, t.input.lastClick) && !r[PT] && t.input.lastClick.button == r.button && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: i, x: r.clientX, y: r.clientY, type: s, button: r.button };
25332
25332
  let o = t.posAtCoords(Hp(r));
25333
- o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new S8(t, o, r, !!n)) : (s == "doubleClick" ? w8 : v8)(t, o.pos, o.inside, r) ? r.preventDefault() : Wi(t, "pointer"));
25333
+ o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new S8(t, o, r, !!n)) : (s == "doubleClick" ? w8 : v8)(t, o.pos, o.inside, r) ? r.preventDefault() : Gi(t, "pointer"));
25334
25334
  };
25335
25335
  let S8 = class {
25336
25336
  constructor(e, r, n, i) {
@@ -25352,7 +25352,7 @@ let S8 = class {
25352
25352
  setUneditable: !!(this.target && Yr && !this.target.hasAttribute("contentEditable"))
25353
25353
  }), 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(() => {
25354
25354
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
25355
- }, 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)), Wi(e, "pointer");
25355
+ }, 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)), Gi(e, "pointer");
25356
25356
  }
25357
25357
  done() {
25358
25358
  this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => pi(this.view)), this.view.input.mouseDown = null;
@@ -25361,7 +25361,7 @@ let S8 = class {
25361
25361
  if (this.done(), !this.view.dom.contains(e.target))
25362
25362
  return;
25363
25363
  let r = this.pos;
25364
- this.view.state.doc != this.startDoc && (r = this.view.posAtCoords(Hp(e))), this.updateAllowDefault(e), this.allowDefault || !r ? Wi(this.view, "pointer") : y8(this.view, r.pos, r.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
25364
+ this.view.state.doc != this.startDoc && (r = this.view.posAtCoords(Hp(e))), this.updateAllowDefault(e), this.allowDefault || !r ? Gi(this.view, "pointer") : y8(this.view, r.pos, r.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
25365
25365
  Jt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
25366
25366
  // cursor, but still report that the node is selected
25367
25367
  // when asked through getSelection. You'll then get a
@@ -25369,20 +25369,20 @@ let S8 = class {
25369
25369
  // (hidden) cursor is doesn't change the selection, and
25370
25370
  // thus doesn't get a reaction from ProseMirror. This
25371
25371
  // works around that.
25372
- Lt && !this.view.state.selection.visible && Math.min(Math.abs(r.pos - this.view.state.selection.from), Math.abs(r.pos - this.view.state.selection.to)) <= 2) ? (ha(this.view, ke.near(this.view.state.doc.resolve(r.pos))), e.preventDefault()) : Wi(this.view, "pointer");
25372
+ Lt && !this.view.state.selection.visible && Math.min(Math.abs(r.pos - this.view.state.selection.from), Math.abs(r.pos - this.view.state.selection.to)) <= 2) ? (ha(this.view, ke.near(this.view.state.doc.resolve(r.pos))), e.preventDefault()) : Gi(this.view, "pointer");
25373
25373
  }
25374
25374
  move(e) {
25375
- this.updateAllowDefault(e), Wi(this.view, "pointer"), e.buttons == 0 && this.done();
25375
+ this.updateAllowDefault(e), Gi(this.view, "pointer"), e.buttons == 0 && this.done();
25376
25376
  }
25377
25377
  updateAllowDefault(e) {
25378
25378
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
25379
25379
  }
25380
25380
  };
25381
25381
  hr.touchstart = (t) => {
25382
- t.input.lastTouch = Date.now(), ex(t), Wi(t, "pointer");
25382
+ t.input.lastTouch = Date.now(), ex(t), Gi(t, "pointer");
25383
25383
  };
25384
25384
  hr.touchmove = (t) => {
25385
- t.input.lastTouch = Date.now(), Wi(t, "pointer");
25385
+ t.input.lastTouch = Date.now(), Gi(t, "pointer");
25386
25386
  };
25387
25387
  hr.contextmenu = (t) => ex(t);
25388
25388
  function LT(t, e) {
@@ -25472,7 +25472,7 @@ function N8(t, e) {
25472
25472
  r.parentNode && r.parentNode.removeChild(r), t.focus();
25473
25473
  }, 50);
25474
25474
  }
25475
- const $c = wr && Zi < 15 || Ta && SF < 604;
25475
+ const $c = wr && es < 15 || Ta && SF < 604;
25476
25476
  hr.copy = dr.cut = (t, e) => {
25477
25477
  let r = e, n = t.state.selection, i = r.type == "cut";
25478
25478
  if (n.empty)
@@ -25633,7 +25633,7 @@ let fv = class HT {
25633
25633
  }
25634
25634
  map(e, r, n, i) {
25635
25635
  let { pos: s, deleted: o } = e.mapResult(r.from + i, this.side < 0 ? -1 : 1);
25636
- return o ? null : new ls(s - n, s - n, this);
25636
+ return o ? null : new cs(s - n, s - n, this);
25637
25637
  }
25638
25638
  valid() {
25639
25639
  return !0;
@@ -25650,7 +25650,7 @@ let fv = class HT {
25650
25650
  }
25651
25651
  map(e, r, n, i) {
25652
25652
  let s = e.map(r.from + i, this.spec.inclusiveStart ? -1 : 1) - n, o = e.map(r.to + i, this.spec.inclusiveEnd ? 1 : -1) - n;
25653
- return s >= o ? null : new ls(s, o, this);
25653
+ return s >= o ? null : new cs(s, o, this);
25654
25654
  }
25655
25655
  valid(e, r) {
25656
25656
  return r.from < r.to;
@@ -25672,7 +25672,7 @@ let fv = class HT {
25672
25672
  if (s.deleted)
25673
25673
  return null;
25674
25674
  let o = e.mapResult(r.to + i, -1);
25675
- return o.deleted || o.pos <= s.pos ? null : new ls(s.pos - n, o.pos - n, this);
25675
+ return o.deleted || o.pos <= s.pos ? null : new cs(s.pos - n, o.pos - n, this);
25676
25676
  }
25677
25677
  valid(e, r) {
25678
25678
  let { index: n, offset: i } = e.content.findIndex(r.from), s;
@@ -25683,7 +25683,7 @@ let fv = class HT {
25683
25683
  }
25684
25684
  destroy() {
25685
25685
  }
25686
- }, ls = class Pl {
25686
+ }, cs = class Pl {
25687
25687
  /**
25688
25688
  @internal
25689
25689
  */
@@ -25755,7 +25755,7 @@ let fv = class HT {
25755
25755
  }
25756
25756
  };
25757
25757
  const Uo = [], qs = {};
25758
- let Zr = class Di {
25758
+ let Zr = class Pi {
25759
25759
  /**
25760
25760
  @internal
25761
25761
  */
@@ -25809,7 +25809,7 @@ let Zr = class Di {
25809
25809
  let l = this.local[a].map(e, n, i);
25810
25810
  l && l.type.valid(r, l) ? (o || (o = [])).push(l) : s.onRemove && s.onRemove(this.local[a].spec);
25811
25811
  }
25812
- return this.children.length ? D8(this.children, o || [], e, r, n, i, s) : o ? new Di(o.sort(Ws), Uo) : zt;
25812
+ return this.children.length ? D8(this.children, o || [], e, r, n, i, s) : o ? new Pi(o.sort(Ws), Uo) : zt;
25813
25813
  }
25814
25814
  /**
25815
25815
  Add the given array of decorations to the ones in the set,
@@ -25818,7 +25818,7 @@ let Zr = class Di {
25818
25818
  structure.
25819
25819
  */
25820
25820
  add(e, r) {
25821
- return r.length ? this == zt ? Di.create(e, r) : this.addInner(e, r, 0) : this;
25821
+ return r.length ? this == zt ? Pi.create(e, r) : this.addInner(e, r, 0) : this;
25822
25822
  }
25823
25823
  addInner(e, r, n) {
25824
25824
  let i, s = 0;
@@ -25833,7 +25833,7 @@ let Zr = class Di {
25833
25833
  let o = UT(s ? WT(r) : r, -n);
25834
25834
  for (let a = 0; a < o.length; a++)
25835
25835
  o[a].type.valid(e, o[a]) || o.splice(a--, 1);
25836
- return new Di(o.length ? this.local.concat(o).sort(Ws) : this.local, i || this.children);
25836
+ return new Pi(o.length ? this.local.concat(o).sort(Ws) : this.local, i || this.children);
25837
25837
  }
25838
25838
  /**
25839
25839
  Create a new set that contains the decorations in this set, minus
@@ -25860,13 +25860,13 @@ let Zr = class Di {
25860
25860
  for (let a = 0; a < i.length; a++)
25861
25861
  i[a].eq(o, r) && (i == this.local && (i = this.local.slice()), i.splice(a--, 1));
25862
25862
  }
25863
- return n == this.children && i == this.local ? this : i.length || n.length ? new Di(i, n) : zt;
25863
+ return n == this.children && i == this.local ? this : i.length || n.length ? new Pi(i, n) : zt;
25864
25864
  }
25865
25865
  forChild(e, r) {
25866
25866
  if (this == zt)
25867
25867
  return this;
25868
25868
  if (r.isLeaf)
25869
- return Di.empty;
25869
+ return Pi.empty;
25870
25870
  let n, i;
25871
25871
  for (let a = 0; a < this.children.length; a += 3)
25872
25872
  if (this.children[a] >= e) {
@@ -25882,7 +25882,7 @@ let Zr = class Di {
25882
25882
  }
25883
25883
  }
25884
25884
  if (i) {
25885
- let a = new Di(i.sort(Ws), Uo);
25885
+ let a = new Pi(i.sort(Ws), Uo);
25886
25886
  return n ? new jT([a, n]) : a;
25887
25887
  }
25888
25888
  return n || zt;
@@ -25893,7 +25893,7 @@ let Zr = class Di {
25893
25893
  eq(e) {
25894
25894
  if (this == e)
25895
25895
  return !0;
25896
- if (!(e instanceof Di) || this.local.length != e.local.length || this.children.length != e.children.length)
25896
+ if (!(e instanceof Pi) || this.local.length != e.local.length || this.children.length != e.children.length)
25897
25897
  return !1;
25898
25898
  for (let r = 0; r < this.local.length; r++)
25899
25899
  if (!this.local[r].eq(e.local[r]))
@@ -26042,7 +26042,7 @@ function UT(t, e) {
26042
26042
  let r = [];
26043
26043
  for (let n = 0; n < t.length; n++) {
26044
26044
  let i = t[n];
26045
- r.push(new ls(i.from + e, i.to + e, i.type));
26045
+ r.push(new cs(i.from + e, i.to + e, i.type));
26046
26046
  }
26047
26047
  return r;
26048
26048
  }
@@ -26128,7 +26128,7 @@ const L8 = {
26128
26128
  attributes: !0,
26129
26129
  attributeOldValue: !0,
26130
26130
  subtree: !0
26131
- }, B8 = wr && Zi <= 11;
26131
+ }, B8 = wr && es <= 11;
26132
26132
  class F8 {
26133
26133
  constructor() {
26134
26134
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
@@ -26148,7 +26148,7 @@ class $8 {
26148
26148
  this.view = e, this.handleDOMChange = r, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new F8(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((n) => {
26149
26149
  for (let i = 0; i < n.length; i++)
26150
26150
  this.queue.push(n[i]);
26151
- wr && Zi <= 11 && n.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : Jt && e.composing && n.some((i) => i.type == "childList" && i.target.nodeName == "TR") ? (e.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
26151
+ wr && es <= 11 && n.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : Jt && e.composing && n.some((i) => i.type == "childList" && i.target.nodeName == "TR") ? (e.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
26152
26152
  }), B8 && (this.onCharData = (n) => {
26153
26153
  this.queue.push({ target: n.target, type: "characterData", oldValue: n.prevValue }), this.flushSoon();
26154
26154
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -26189,7 +26189,7 @@ class $8 {
26189
26189
  if (ov(this.view)) {
26190
26190
  if (this.suppressingSelectionUpdates)
26191
26191
  return pi(this.view);
26192
- if (wr && Zi <= 11 && !this.view.state.selection.empty) {
26192
+ if (wr && es <= 11 && !this.view.state.selection.empty) {
26193
26193
  let e = this.view.domSelectionRange();
26194
26194
  if (e.focusNode && fo(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
26195
26195
  return this.flushSoon();
@@ -26279,7 +26279,7 @@ class $8 {
26279
26279
  if (n.contentDOM && n.contentDOM != n.dom && !n.contentDOM.contains(e.target))
26280
26280
  return { from: n.posBefore, to: n.posAfter };
26281
26281
  let i = e.previousSibling, s = e.nextSibling;
26282
- if (wr && Zi <= 11 && e.addedNodes.length)
26282
+ if (wr && es <= 11 && e.addedNodes.length)
26283
26283
  for (let u = 0; u < e.addedNodes.length; u++) {
26284
26284
  let { previousSibling: d, nextSibling: p } = e.addedNodes[u];
26285
26285
  (!d || Array.prototype.indexOf.call(e.addedNodes, d) < 0) && (i = d), (!p || Array.prototype.indexOf.call(e.addedNodes, p) < 0) && (s = p);
@@ -26428,7 +26428,7 @@ function W8(t, e, r, n, i) {
26428
26428
  }
26429
26429
  return;
26430
26430
  }
26431
- t.state.selection.from < t.state.selection.to && b.start == b.endB && t.state.selection instanceof he && (b.start > t.state.selection.from && b.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? b.start = t.state.selection.from : b.endA < t.state.selection.to && b.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (b.endB += t.state.selection.to - b.endA, b.endA = t.state.selection.to)), wr && Zi <= 11 && b.endB == b.start + 1 && b.endA == b.start && b.start > c.from && c.doc.textBetween(b.start - c.from - 1, b.start - c.from + 1) == "  " && (b.start--, b.endA--, b.endB--);
26431
+ t.state.selection.from < t.state.selection.to && b.start == b.endB && t.state.selection instanceof he && (b.start > t.state.selection.from && b.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? b.start = t.state.selection.from : b.endA < t.state.selection.to && b.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (b.endB += t.state.selection.to - b.endA, b.endA = t.state.selection.to)), wr && es <= 11 && b.endB == b.start + 1 && b.endA == b.start && b.start > c.from && c.doc.textBetween(b.start - c.from - 1, b.start - c.from + 1) == "  " && (b.start--, b.endA--, b.endB--);
26432
26432
  let w = c.doc.resolveNoCache(b.start - c.from), x = c.doc.resolveNoCache(b.endB - c.from), v = u.resolve(b.start), C = w.sameParent(x) && w.parent.inlineContent && v.end() >= b.endA;
26433
26433
  if ((Ta && t.input.lastIOSEnter > Date.now() - 225 && (!C || i.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !C && w.pos < c.doc.content.size && (!w.sameParent(x) || !w.parent.inlineContent) && w.pos < x.pos && !/\S/.test(c.doc.textBetween(w.pos, x.pos, "", ""))) && t.someProp("handleKeyDown", (E) => E(t, Os(13, "Enter")))) {
26434
26434
  t.input.lastIOSEnter = 0;
@@ -26453,7 +26453,7 @@ function W8(t, e, r, n, i) {
26453
26453
  }, y;
26454
26454
  if (C)
26455
26455
  if (w.pos == x.pos) {
26456
- wr && Zi <= 11 && w.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => pi(t), 20));
26456
+ wr && es <= 11 && w.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => pi(t), 20));
26457
26457
  let E = N(t.state.tr.delete(_, R)), M = u.resolve(b.start).marksAcross(u.resolve(b.endA));
26458
26458
  M && E.ensureMarks(M), t.dispatch(E);
26459
26459
  } else if (
@@ -26885,12 +26885,12 @@ function vv(t) {
26885
26885
  if (typeof r == "function" && (r = r(t.state)), r)
26886
26886
  for (let n in r)
26887
26887
  n == "class" ? e.class += " " + r[n] : n == "style" ? e.style = (e.style ? e.style + ";" : "") + r[n] : !e[n] && n != "contenteditable" && n != "nodeName" && (e[n] = String(r[n]));
26888
- }), e.translate || (e.translate = "no"), [ls.node(0, t.state.doc.content.size, e)];
26888
+ }), e.translate || (e.translate = "no"), [cs.node(0, t.state.doc.content.size, e)];
26889
26889
  }
26890
26890
  function kv(t) {
26891
26891
  if (t.markCursor) {
26892
26892
  let e = document.createElement("img");
26893
- e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: ls.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) };
26893
+ e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: cs.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) };
26894
26894
  } else
26895
26895
  t.cursorWrapper = null;
26896
26896
  }
@@ -27578,22 +27578,22 @@ function $$(t, e) {
27578
27578
  };
27579
27579
  return r;
27580
27580
  }
27581
- function ms(t, e) {
27581
+ function gs(t, e) {
27582
27582
  const r = Ue(t, e), n = (i) => (i.inject(r), () => () => {
27583
27583
  i.remove(r);
27584
27584
  });
27585
27585
  return n.key = r, n;
27586
27586
  }
27587
27587
  function At(t, e) {
27588
- const r = ms(e, t), n = vu(t, (s) => s.get(r.key)(s)), i = [r, n];
27588
+ const r = gs(e, t), n = vu(t, (s) => s.get(r.key)(s)), i = [r, n];
27589
27589
  return i.id = n.id, i.node = n, i.type = (s) => n.type(s), i.ctx = r, i.key = r.key, i.extendSchema = (s) => At(t, s(e)), i;
27590
27590
  }
27591
27591
  function za(t, e) {
27592
- const r = ms(e, t), n = B$(t, (s) => s.get(r.key)(s)), i = [r, n];
27592
+ const r = gs(e, t), n = B$(t, (s) => s.get(r.key)(s)), i = [r, n];
27593
27593
  return i.id = n.id, i.mark = n, i.type = (s) => n.type(s), i.ctx = r, i.key = r.key, i.extendSchema = (s) => za(t, s(e)), i;
27594
27594
  }
27595
27595
  function Dr(t, e) {
27596
- const r = ms(Object.fromEntries(Object.entries(e).map(([s, { shortcuts: o, priority: a }]) => [s, {
27596
+ const r = gs(Object.fromEntries(Object.entries(e).map(([s, { shortcuts: o, priority: a }]) => [s, {
27597
27597
  shortcuts: o,
27598
27598
  priority: a
27599
27599
  }])), `${t}Keymap`), n = F$((s) => {
@@ -27609,9 +27609,9 @@ function Dr(t, e) {
27609
27609
  }), i = [r, n];
27610
27610
  return i.ctx = r, i.shortcuts = n, i.key = r.key, i.keymap = n.keymap, i;
27611
27611
  }
27612
- var wn = (t, e = () => ({})) => ms(e, `${t}Attr`), ku = (t, e = () => ({})) => ms(e, `${t}Attr`);
27613
- function gs(t, e, r) {
27614
- const n = ms({}, t), i = (o) => async () => {
27612
+ var wn = (t, e = () => ({})) => gs(e, `${t}Attr`), ku = (t, e = () => ({})) => gs(e, `${t}Attr`);
27613
+ function bs(t, e, r) {
27614
+ const n = gs({}, t), i = (o) => async () => {
27615
27615
  await o.wait(Ks);
27616
27616
  const a = {
27617
27617
  plugin: e(o),
@@ -28755,7 +28755,7 @@ let IA = class e0 extends Kt {
28755
28755
  }
28756
28756
  };
28757
28757
  Kt.jsonID("removeNodeMark", IA);
28758
- let ox = class Pi extends Kt {
28758
+ let ox = class Li extends Kt {
28759
28759
  /**
28760
28760
  The given `slice` should fit the 'gap' between `from` and
28761
28761
  `to`—the depths must line up, and the surrounding nodes must be
@@ -28775,21 +28775,21 @@ let ox = class Pi extends Kt {
28775
28775
  return new bo([this.from, this.to - this.from, this.slice.size]);
28776
28776
  }
28777
28777
  invert(e) {
28778
- return new Pi(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
28778
+ return new Li(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
28779
28779
  }
28780
28780
  map(e) {
28781
- let r = e.mapResult(this.to, -1), n = this.from == this.to && Pi.MAP_BIAS < 0 ? r : e.mapResult(this.from, 1);
28782
- return n.deletedAcross && r.deletedAcross ? null : new Pi(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
28781
+ let r = e.mapResult(this.to, -1), n = this.from == this.to && Li.MAP_BIAS < 0 ? r : e.mapResult(this.from, 1);
28782
+ return n.deletedAcross && r.deletedAcross ? null : new Li(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
28783
28783
  }
28784
28784
  merge(e) {
28785
- if (!(e instanceof Pi) || e.structure || this.structure)
28785
+ if (!(e instanceof Li) || e.structure || this.structure)
28786
28786
  return null;
28787
28787
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
28788
28788
  let r = this.slice.size + e.slice.size == 0 ? B.empty : new B(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
28789
- return new Pi(this.from, this.to + (e.to - e.from), r, this.structure);
28789
+ return new Li(this.from, this.to + (e.to - e.from), r, this.structure);
28790
28790
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
28791
28791
  let r = this.slice.size + e.slice.size == 0 ? B.empty : new B(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
28792
- return new Pi(e.from, this.to, r, this.structure);
28792
+ return new Li(e.from, this.to, r, this.structure);
28793
28793
  } else
28794
28794
  return null;
28795
28795
  }
@@ -28803,7 +28803,7 @@ let ox = class Pi extends Kt {
28803
28803
  static fromJSON(e, r) {
28804
28804
  if (typeof r.from != "number" || typeof r.to != "number")
28805
28805
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
28806
- return new Pi(r.from, r.to, B.fromJSON(e, r.slice), !!r.structure);
28806
+ return new Li(r.from, r.to, B.fromJSON(e, r.slice), !!r.structure);
28807
28807
  }
28808
28808
  };
28809
28809
  ox.MAP_BIAS = 1;
@@ -29222,7 +29222,7 @@ U(dx, {
29222
29222
  displayName: "Attr<inlineCode>",
29223
29223
  group: "InlineCode"
29224
29224
  });
29225
- var Gi = za("inlineCode", (t) => ({
29225
+ var Ki = za("inlineCode", (t) => ({
29226
29226
  priority: 100,
29227
29227
  code: !0,
29228
29228
  parseDOM: [{ tag: "code" }],
@@ -29238,11 +29238,11 @@ var Gi = za("inlineCode", (t) => ({
29238
29238
  runner: (e, r, n) => (e.withMark(r, "inlineCode", n.text || ""), !0)
29239
29239
  }
29240
29240
  }));
29241
- U(Gi.mark, {
29241
+ U(Ki.mark, {
29242
29242
  displayName: "MarkSchema<inlineCode>",
29243
29243
  group: "InlineCode"
29244
29244
  });
29245
- U(Gi.ctx, {
29245
+ U(Ki.ctx, {
29246
29246
  displayName: "MarkSchemaCtx<inlineCode>",
29247
29247
  group: "InlineCode"
29248
29248
  });
@@ -29250,15 +29250,15 @@ var px = Re("ToggleInlineCode", (t) => () => (e, r) => {
29250
29250
  const { selection: n, tr: i } = e;
29251
29251
  if (n.empty) return !1;
29252
29252
  const { from: s, to: o } = n;
29253
- return e.doc.rangeHasMark(s, o, Gi.type(t)) ? (r?.(i.removeMark(s, o, Gi.type(t))), !0) : (Object.keys(e.schema.marks).filter((a) => a !== Gi.type.name).map((a) => e.schema.marks[a]).forEach((a) => {
29253
+ return e.doc.rangeHasMark(s, o, Ki.type(t)) ? (r?.(i.removeMark(s, o, Ki.type(t))), !0) : (Object.keys(e.schema.marks).filter((a) => a !== Ki.type.name).map((a) => e.schema.marks[a]).forEach((a) => {
29254
29254
  i.removeMark(s, o, a);
29255
- }), r?.(i.addMark(s, o, Gi.type(t).create())), !0);
29255
+ }), r?.(i.addMark(s, o, Ki.type(t).create())), !0);
29256
29256
  });
29257
29257
  U(px, {
29258
29258
  displayName: "Command<toggleInlineCodeCommand>",
29259
29259
  group: "InlineCode"
29260
29260
  });
29261
- var DA = Cr((t) => bu(/(?:`)([^`]+)(?:`)$/, Gi.type(t)));
29261
+ var DA = Cr((t) => bu(/(?:`)([^`]+)(?:`)$/, Ki.type(t)));
29262
29262
  U(DA, {
29263
29263
  displayName: "InputRule<inlineCodeInputRule>",
29264
29264
  group: "InlineCode"
@@ -29387,7 +29387,7 @@ function fz(t) {
29387
29387
  i !== -1 && n.children.splice(i, 1);
29388
29388
  }, !0);
29389
29389
  }
29390
- var jp = gs("remark-preserve-empty-line", () => () => fz);
29390
+ var jp = bs("remark-preserve-empty-line", () => () => fz);
29391
29391
  U(jp.plugin, {
29392
29392
  displayName: "Remark<remarkPreserveEmptyLine>",
29393
29393
  group: "Remark"
@@ -29465,7 +29465,7 @@ var gz = Array(6).fill(0).map((t, e) => e + 1);
29465
29465
  function bz(t) {
29466
29466
  return t.textContent.toLowerCase().trim().replace(/\s+/g, "-");
29467
29467
  }
29468
- var Up = ms(bz, "headingIdGenerator");
29468
+ var Up = gs(bz, "headingIdGenerator");
29469
29469
  U(Up, {
29470
29470
  displayName: "Ctx<HeadingIdGenerator>",
29471
29471
  group: "Heading"
@@ -29544,8 +29544,8 @@ U(BA, {
29544
29544
  displayName: "InputRule<wrapInHeadingInputRule>",
29545
29545
  group: "Heading"
29546
29546
  });
29547
- var $i = Re("WrapInHeading", (t) => (e) => (e ??= 1, e < 1 ? Lc(Vn.type(t)) : Lc(Co.type(t), { level: e })));
29548
- U($i, {
29547
+ var zi = Re("WrapInHeading", (t) => (e) => (e ??= 1, e < 1 ? Lc(Vn.type(t)) : Lc(Co.type(t), { level: e })));
29548
+ U(zi, {
29549
29549
  displayName: "Command<wrapInHeadingCommand>",
29550
29550
  group: "Heading"
29551
29551
  });
@@ -29567,42 +29567,42 @@ var vx = Dr("headingKeymap", {
29567
29567
  shortcuts: "Mod-Alt-1",
29568
29568
  command: (t) => {
29569
29569
  const e = t.get(st);
29570
- return () => e.call($i.key, 1);
29570
+ return () => e.call(zi.key, 1);
29571
29571
  }
29572
29572
  },
29573
29573
  TurnIntoH2: {
29574
29574
  shortcuts: "Mod-Alt-2",
29575
29575
  command: (t) => {
29576
29576
  const e = t.get(st);
29577
- return () => e.call($i.key, 2);
29577
+ return () => e.call(zi.key, 2);
29578
29578
  }
29579
29579
  },
29580
29580
  TurnIntoH3: {
29581
29581
  shortcuts: "Mod-Alt-3",
29582
29582
  command: (t) => {
29583
29583
  const e = t.get(st);
29584
- return () => e.call($i.key, 3);
29584
+ return () => e.call(zi.key, 3);
29585
29585
  }
29586
29586
  },
29587
29587
  TurnIntoH4: {
29588
29588
  shortcuts: "Mod-Alt-4",
29589
29589
  command: (t) => {
29590
29590
  const e = t.get(st);
29591
- return () => e.call($i.key, 4);
29591
+ return () => e.call(zi.key, 4);
29592
29592
  }
29593
29593
  },
29594
29594
  TurnIntoH5: {
29595
29595
  shortcuts: "Mod-Alt-5",
29596
29596
  command: (t) => {
29597
29597
  const e = t.get(st);
29598
- return () => e.call($i.key, 5);
29598
+ return () => e.call(zi.key, 5);
29599
29599
  }
29600
29600
  },
29601
29601
  TurnIntoH6: {
29602
29602
  shortcuts: "Mod-Alt-6",
29603
29603
  command: (t) => {
29604
29604
  const e = t.get(st);
29605
- return () => e.call($i.key, 6);
29605
+ return () => e.call(zi.key, 6);
29606
29606
  }
29607
29607
  },
29608
29608
  DowngradeHeading: {
@@ -30414,7 +30414,7 @@ var vz = [
30414
30414
  ux,
30415
30415
  Cu,
30416
30416
  dx,
30417
- Gi,
30417
+ Ki,
30418
30418
  mx,
30419
30419
  pa,
30420
30420
  zx,
@@ -30488,7 +30488,7 @@ var vz = [
30488
30488
  }), _z = [
30489
30489
  bx,
30490
30490
  Au,
30491
- $i,
30491
+ zi,
30492
30492
  wx,
30493
30493
  Ex,
30494
30494
  Nx,
@@ -30525,7 +30525,7 @@ var vz = [
30525
30525
  cx,
30526
30526
  fx,
30527
30527
  hx
30528
- ].flat(), Hx = gs("remarkAddOrderInList", () => () => (t) => {
30528
+ ].flat(), Hx = bs("remarkAddOrderInList", () => () => (t) => {
30529
30529
  ax(t, "list", (e) => {
30530
30530
  if (e.ordered) {
30531
30531
  const r = e.start ?? 1;
@@ -30543,7 +30543,7 @@ U(Hx.options, {
30543
30543
  displayName: "RemarkConfig<remarkAddOrderInListPlugin>",
30544
30544
  group: "Remark"
30545
30545
  });
30546
- var Jx = gs("remarkLineBreak", () => () => (t) => {
30546
+ var Jx = bs("remarkLineBreak", () => () => (t) => {
30547
30547
  const e = /[\t ]*(?:\r?\n|\r)/g;
30548
30548
  ax(t, "text", (r, n, i) => {
30549
30549
  if (!r.value || typeof r.value != "string") return;
@@ -30576,7 +30576,7 @@ U(Jx.options, {
30576
30576
  displayName: "RemarkConfig<remarkLineBreak>",
30577
30577
  group: "Remark"
30578
30578
  });
30579
- var jx = gs("remarkInlineLink", () => pz);
30579
+ var jx = bs("remarkInlineLink", () => pz);
30580
30580
  U(jx.plugin, {
30581
30581
  displayName: "Remark<remarkInlineLinkPlugin>",
30582
30582
  group: "Remark"
@@ -30610,7 +30610,7 @@ var Lz = [
30610
30610
  "root",
30611
30611
  "blockquote",
30612
30612
  "listItem"
30613
- ], Ux = gs("remarkHTMLTransformer", () => () => (t) => {
30613
+ ], Ux = bs("remarkHTMLTransformer", () => () => (t) => {
30614
30614
  Pz(t, (e, r, n) => Dz(e) ? (n && Lz.includes(n.type) && (e.children = [{ ...e }], delete e.value, e.type = "paragraph"), [e]) : [e]);
30615
30615
  });
30616
30616
  U(Ux.plugin, {
@@ -30621,7 +30621,7 @@ U(Ux.options, {
30621
30621
  displayName: "RemarkConfig<remarkHtmlTransformer>",
30622
30622
  group: "Remark"
30623
30623
  });
30624
- var qx = gs("remarkMarker", () => () => (t, e) => {
30624
+ var qx = bs("remarkMarker", () => () => (t, e) => {
30625
30625
  const r = (n) => e.value.charAt(n.position.start.offset);
30626
30626
  ax(t, (n) => ["strong", "emphasis"].includes(n.type), (n) => {
30627
30627
  n.marker = r(n);
@@ -30668,7 +30668,7 @@ var WA = Si(() => {
30668
30668
  },
30669
30669
  decorations(r) {
30670
30670
  if (e.getState(r)) {
30671
- const n = r.selection.$from.pos, i = document.createElement("span"), s = ls.widget(n, i, { side: -1 }), o = document.createElement("span"), a = ls.widget(n, o);
30671
+ const n = r.selection.$from.pos, i = document.createElement("span"), s = cs.widget(n, i, { side: -1 }), o = document.createElement("span"), a = cs.widget(n, o);
30672
30672
  return setTimeout(() => {
30673
30673
  i.contentEditable = "true", o.contentEditable = "true";
30674
30674
  }), Zr.create(r.doc, [s, a]);
@@ -30708,7 +30708,7 @@ U(GA, {
30708
30708
  displayName: "Prose<hardbreakClearMarkPlugin>",
30709
30709
  group: "Prose"
30710
30710
  });
30711
- var Wx = ms(["table", "code_block"], "hardbreakFilterNodes");
30711
+ var Wx = gs(["table", "code_block"], "hardbreakFilterNodes");
30712
30712
  U(Wx, {
30713
30713
  displayName: "Ctx<hardbreakFilterNodes>",
30714
30714
  group: "Prose"
@@ -31309,7 +31309,7 @@ let Ud = class i0 extends Xt {
31309
31309
  }
31310
31310
  };
31311
31311
  Xt.jsonID("removeNodeMark", Ud);
31312
- let cs = class _s extends Xt {
31312
+ let us = class _s extends Xt {
31313
31313
  /**
31314
31314
  The given `slice` should fit the 'gap' between `from` and
31315
31315
  `to`—the depths must line up, and the surrounding nodes must be
@@ -31360,7 +31360,7 @@ let cs = class _s extends Xt {
31360
31360
  return new _s(r.from, r.to, B.fromJSON(e, r.slice), !!r.structure);
31361
31361
  }
31362
31362
  };
31363
- Xt.jsonID("replace", cs);
31363
+ Xt.jsonID("replace", us);
31364
31364
  let Ua = class Qh extends Xt {
31365
31365
  /**
31366
31366
  Create a replace-around step with the given range and gap.
@@ -31477,7 +31477,7 @@ function Yx(t, e, r, n = r.contentMatch, i = !0) {
31477
31477
  for (let l = 0; l < s.childCount; l++) {
31478
31478
  let c = s.child(l), u = a + c.nodeSize, d = n.matchType(c.type);
31479
31479
  if (!d)
31480
- o.push(new cs(a, u, B.empty));
31480
+ o.push(new us(a, u, B.empty));
31481
31481
  else {
31482
31482
  n = d;
31483
31483
  for (let p = 0; p < c.marks.length; p++)
@@ -31485,7 +31485,7 @@ function Yx(t, e, r, n = r.contentMatch, i = !0) {
31485
31485
  if (i && c.isText && r.whitespace != "pre") {
31486
31486
  let p, f = /\r?\n|\r/g, b;
31487
31487
  for (; p = f.exec(c.text); )
31488
- b || (b = new B(F.from(r.schema.text(" ", r.allowedMarks(c.marks))), 0, 0)), o.push(new cs(a + p.index, a + p.index + p[0].length, b));
31488
+ b || (b = new B(F.from(r.schema.text(" ", r.allowedMarks(c.marks))), 0, 0)), o.push(new us(a + p.index, a + p.index + p[0].length, b));
31489
31489
  }
31490
31490
  }
31491
31491
  a = u;
@@ -31580,7 +31580,7 @@ function Wz(t, e, r = 1, n) {
31580
31580
  let u = n && n[c];
31581
31581
  o = F.from(u ? u.type.create(u.attrs, o) : i.node(a).copy(o));
31582
31582
  }
31583
- t.step(new cs(e, e, new B(s.append(o), r, r), !0));
31583
+ t.step(new us(e, e, new B(s.append(o), r, r), !0));
31584
31584
  }
31585
31585
  function Gz(t, e, r) {
31586
31586
  let n = null, { linebreakReplacement: i } = t.doc.type.schema, s = t.doc.resolve(e - r), o = s.node().type;
@@ -31595,7 +31595,7 @@ function Gz(t, e, r) {
31595
31595
  }
31596
31596
  o.inlineContent && Yx(t, e + r - 1, o, s.node().contentMatchAt(s.index()), n == null);
31597
31597
  let l = t.mapping.slice(a), c = l.map(e - r);
31598
- if (t.step(new cs(c, l.map(e + r, -1), B.empty, !0)), n === !0) {
31598
+ if (t.step(new us(c, l.map(e + r, -1), B.empty, !0)), n === !0) {
31599
31599
  let u = t.doc.resolve(c);
31600
31600
  iN(t, u.node(), u.before(), t.steps.length);
31601
31601
  }
@@ -31648,7 +31648,7 @@ function Yz(t, e, r = e, n = B.empty) {
31648
31648
  if (e == r && !n.size)
31649
31649
  return null;
31650
31650
  let i = t.resolve(e), s = t.resolve(r);
31651
- return oN(i, s, n) ? new cs(e, r, n) : new Qz(i, s, n).fit();
31651
+ return oN(i, s, n) ? new us(e, r, n) : new Qz(i, s, n).fit();
31652
31652
  }
31653
31653
  function oN(t, e, r) {
31654
31654
  return !r.openStart && !r.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), r.content);
@@ -31681,7 +31681,7 @@ class Qz {
31681
31681
  for (; o && a && s.childCount == 1; )
31682
31682
  s = s.firstChild.content, o--, a--;
31683
31683
  let l = new B(s, o, a);
31684
- return e > -1 ? new Ua(n.pos, e, this.$to.pos, this.$to.end(), l, r) : l.size || n.pos != this.$to.pos ? new cs(n.pos, i.pos, l) : null;
31684
+ return e > -1 ? new Ua(n.pos, e, this.$to.pos, this.$to.end(), l, r) : l.size || n.pos != this.$to.pos ? new us(n.pos, i.pos, l) : null;
31685
31685
  }
31686
31686
  // Find a position on the start spine of `this.unplaced` that has
31687
31687
  // content that can be moved somewhere on the frontier. Returns two
@@ -31838,7 +31838,7 @@ function t9(t, e, r, n) {
31838
31838
  return t.deleteRange(e, r);
31839
31839
  let i = t.doc.resolve(e), s = t.doc.resolve(r);
31840
31840
  if (oN(i, s, n))
31841
- return t.step(new cs(e, r, n));
31841
+ return t.step(new us(e, r, n));
31842
31842
  let o = cN(i, s);
31843
31843
  o[o.length - 1] == 0 && o.pop();
31844
31844
  let a = -(i.depth + 1);
@@ -32299,9 +32299,9 @@ function fN(t, e) {
32299
32299
  let r = document.createEvent("Event");
32300
32300
  return r.initEvent("keydown", !0, !0), r.keyCode = t, r.key = r.code = e, r;
32301
32301
  }
32302
- const Hn = typeof navigator < "u" ? navigator : null, $v = typeof document < "u" ? document : null, bs = Hn && Hn.userAgent || "", a0 = /Edge\/(\d+)/.exec(bs), mN = /MSIE \d/.exec(bs), l0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(bs), Ru = !!(mN || l0 || a0), gN = mN ? document.documentMode : l0 ? +l0[1] : a0 ? +a0[1] : 0, qp = !Ru && /gecko\/(\d+)/i.test(bs);
32303
- qp && +(/Firefox\/(\d+)/.exec(bs) || [0, 0])[1];
32304
- const c0 = !Ru && /Chrome\/(\d+)/.exec(bs), Ei = !!c0, bN = c0 ? +c0[1] : 0, To = !Ru && !!Hn && /Apple Computer/.test(Hn.vendor), Zx = To && (/Mobile\/\w+/.test(bs) || !!Hn && Hn.maxTouchPoints > 2), jr = Zx || (Hn ? /Mac/.test(Hn.platform) : !1), xN = Hn ? /Win/.test(Hn.platform) : !1, Du = /Android \d/.test(bs), ey = !!$v && "webkitFontSmoothing" in $v.documentElement.style, a9 = ey ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
32302
+ const Hn = typeof navigator < "u" ? navigator : null, $v = typeof document < "u" ? document : null, xs = Hn && Hn.userAgent || "", a0 = /Edge\/(\d+)/.exec(xs), mN = /MSIE \d/.exec(xs), l0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xs), Ru = !!(mN || l0 || a0), gN = mN ? document.documentMode : l0 ? +l0[1] : a0 ? +a0[1] : 0, qp = !Ru && /gecko\/(\d+)/i.test(xs);
32303
+ qp && +(/Firefox\/(\d+)/.exec(xs) || [0, 0])[1];
32304
+ const c0 = !Ru && /Chrome\/(\d+)/.exec(xs), Ei = !!c0, bN = c0 ? +c0[1] : 0, To = !Ru && !!Hn && /Apple Computer/.test(Hn.vendor), Zx = To && (/Mobile\/\w+/.test(xs) || !!Hn && Hn.maxTouchPoints > 2), jr = Zx || (Hn ? /Mac/.test(Hn.platform) : !1), xN = Hn ? /Win/.test(Hn.platform) : !1, Du = /Android \d/.test(xs), ey = !!$v && "webkitFontSmoothing" in $v.documentElement.style, a9 = ey ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
32305
32305
  function l9(t, e = null) {
32306
32306
  let r = t.domSelectionRange(), n = t.state.doc;
32307
32307
  if (!r.focusNode)
@@ -32424,7 +32424,7 @@ function u0(t, e) {
32424
32424
  let { $anchor: r, $head: n } = t.selection, i = e > 0 ? r.max(n) : r.min(n), s = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
32425
32425
  return s && ke.findFrom(s, e);
32426
32426
  }
32427
- function zi(t, e) {
32427
+ function Vi(t, e) {
32428
32428
  return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0;
32429
32429
  }
32430
32430
  function jv(t, e, r) {
@@ -32435,25 +32435,25 @@ function jv(t, e, r) {
32435
32435
  if (!s || s.isText || !s.isLeaf)
32436
32436
  return !1;
32437
32437
  let o = t.state.doc.resolve(i.pos + s.nodeSize * (e < 0 ? -1 : 1));
32438
- return zi(t, new he(n.$anchor, o));
32438
+ return Vi(t, new he(n.$anchor, o));
32439
32439
  } else if (n.empty) {
32440
32440
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
32441
32441
  let i = u0(t.state, e);
32442
- return i && i instanceof Z ? zi(t, i) : !1;
32442
+ return i && i instanceof Z ? Vi(t, i) : !1;
32443
32443
  } else if (!(jr && r.indexOf("m") > -1)) {
32444
32444
  let i = n.$head, s = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, o;
32445
32445
  if (!s || s.isText)
32446
32446
  return !1;
32447
32447
  let a = e < 0 ? i.pos - s.nodeSize : i.pos;
32448
- return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Z.isSelectable(s) ? zi(t, new Z(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : ey ? zi(t, new he(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
32448
+ return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Z.isSelectable(s) ? Vi(t, new Z(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : ey ? Vi(t, new he(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
32449
32449
  }
32450
32450
  } else return !1;
32451
32451
  else {
32452
32452
  if (n instanceof Z && n.node.isInline)
32453
- return zi(t, new he(e > 0 ? n.$to : n.$from));
32453
+ return Vi(t, new he(e > 0 ? n.$to : n.$from));
32454
32454
  {
32455
32455
  let i = u0(t.state, e);
32456
- return i ? zi(t, i) : !1;
32456
+ return i ? Vi(t, i) : !1;
32457
32457
  }
32458
32458
  }
32459
32459
  }
@@ -32606,11 +32606,11 @@ function qv(t, e, r) {
32606
32606
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
32607
32607
  let o = u0(t.state, e);
32608
32608
  if (o && o instanceof Z)
32609
- return zi(t, o);
32609
+ return Vi(t, o);
32610
32610
  }
32611
32611
  if (!i.parent.inlineContent) {
32612
32612
  let o = e < 0 ? i : s, a = n instanceof cr ? ke.near(o, e) : ke.findFrom(o, e);
32613
- return a ? zi(t, a) : !1;
32613
+ return a ? Vi(t, a) : !1;
32614
32614
  }
32615
32615
  return !1;
32616
32616
  }
@@ -32863,7 +32863,7 @@ function E9(t, e) {
32863
32863
  return new B(i, s, o);
32864
32864
  }
32865
32865
  const vn = {}, _r = {};
32866
- function Ki(t, e) {
32866
+ function Xi(t, e) {
32867
32867
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
32868
32868
  }
32869
32869
  _r.keydown = (t, e) => {
@@ -32874,7 +32874,7 @@ _r.keydown = (t, e) => {
32874
32874
  t.input.lastIOSEnter = n, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
32875
32875
  t.input.lastIOSEnter == n && (t.someProp("handleKeyDown", (i) => i(t, fN(13, "Enter"))), t.input.lastIOSEnter = 0);
32876
32876
  }, 200);
32877
- } else t.someProp("handleKeyDown", (n) => n(t, r)) || y9(t, r) ? r.preventDefault() : Ki(t, "key");
32877
+ } else t.someProp("handleKeyDown", (n) => n(t, r)) || y9(t, r) ? r.preventDefault() : Xi(t, "key");
32878
32878
  };
32879
32879
  _r.keyup = (t, e) => {
32880
32880
  e.keyCode == 16 && (t.input.shiftKey = !1);
@@ -32973,7 +32973,7 @@ vn.mousedown = (t, e) => {
32973
32973
  let n = ny(t), i = Date.now(), s = "singleClick";
32974
32974
  i - t.input.lastClick.time < 500 && T9(r, t.input.lastClick) && !r[IN] && t.input.lastClick.button == r.button && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: i, x: r.clientX, y: r.clientY, type: s, button: r.button };
32975
32975
  let o = t.posAtCoords(Wp(r));
32976
- o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new R9(t, o, r, !!n)) : (s == "doubleClick" ? M9 : _9)(t, o.pos, o.inside, r) ? r.preventDefault() : Ki(t, "pointer"));
32976
+ o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new R9(t, o, r, !!n)) : (s == "doubleClick" ? M9 : _9)(t, o.pos, o.inside, r) ? r.preventDefault() : Xi(t, "pointer"));
32977
32977
  };
32978
32978
  let R9 = class {
32979
32979
  constructor(e, r, n, i) {
@@ -32995,7 +32995,7 @@ let R9 = class {
32995
32995
  setUneditable: !!(this.target && qp && !this.target.hasAttribute("contentEditable"))
32996
32996
  }), 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(() => {
32997
32997
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
32998
- }, 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)), Ki(e, "pointer");
32998
+ }, 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)), Xi(e, "pointer");
32999
32999
  }
33000
33000
  done() {
33001
33001
  this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => ty(this.view)), this.view.input.mouseDown = null;
@@ -33004,7 +33004,7 @@ let R9 = class {
33004
33004
  if (this.done(), !this.view.dom.contains(e.target))
33005
33005
  return;
33006
33006
  let r = this.pos;
33007
- this.view.state.doc != this.startDoc && (r = this.view.posAtCoords(Wp(e))), this.updateAllowDefault(e), this.allowDefault || !r ? Ki(this.view, "pointer") : I9(this.view, r.pos, r.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
33007
+ this.view.state.doc != this.startDoc && (r = this.view.posAtCoords(Wp(e))), this.updateAllowDefault(e), this.allowDefault || !r ? Xi(this.view, "pointer") : I9(this.view, r.pos, r.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
33008
33008
  To && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
33009
33009
  // cursor, but still report that the node is selected
33010
33010
  // when asked through getSelection. You'll then get a
@@ -33012,20 +33012,20 @@ let R9 = class {
33012
33012
  // (hidden) cursor is doesn't change the selection, and
33013
33013
  // thus doesn't get a reaction from ProseMirror. This
33014
33014
  // works around that.
33015
- Ei && !this.view.state.selection.visible && Math.min(Math.abs(r.pos - this.view.state.selection.from), Math.abs(r.pos - this.view.state.selection.to)) <= 2) ? (fa(this.view, ke.near(this.view.state.doc.resolve(r.pos))), e.preventDefault()) : Ki(this.view, "pointer");
33015
+ Ei && !this.view.state.selection.visible && Math.min(Math.abs(r.pos - this.view.state.selection.from), Math.abs(r.pos - this.view.state.selection.to)) <= 2) ? (fa(this.view, ke.near(this.view.state.doc.resolve(r.pos))), e.preventDefault()) : Xi(this.view, "pointer");
33016
33016
  }
33017
33017
  move(e) {
33018
- this.updateAllowDefault(e), Ki(this.view, "pointer"), e.buttons == 0 && this.done();
33018
+ this.updateAllowDefault(e), Xi(this.view, "pointer"), e.buttons == 0 && this.done();
33019
33019
  }
33020
33020
  updateAllowDefault(e) {
33021
33021
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
33022
33022
  }
33023
33023
  };
33024
33024
  vn.touchstart = (t) => {
33025
- t.input.lastTouch = Date.now(), ny(t), Ki(t, "pointer");
33025
+ t.input.lastTouch = Date.now(), ny(t), Xi(t, "pointer");
33026
33026
  };
33027
33027
  vn.touchmove = (t) => {
33028
- t.input.lastTouch = Date.now(), Ki(t, "pointer");
33028
+ t.input.lastTouch = Date.now(), Xi(t, "pointer");
33029
33029
  };
33030
33030
  vn.contextmenu = (t) => ny(t);
33031
33031
  function MN(t, e) {
@@ -33379,7 +33379,7 @@ let Yv = class DN {
33379
33379
  }
33380
33380
  };
33381
33381
  const Xo = [], Ys = {};
33382
- let en = class Li {
33382
+ let en = class Bi {
33383
33383
  /**
33384
33384
  @internal
33385
33385
  */
@@ -33433,7 +33433,7 @@ let en = class Li {
33433
33433
  let l = this.local[a].map(e, n, i);
33434
33434
  l && l.type.valid(r, l) ? (o || (o = [])).push(l) : s.onRemove && s.onRemove(this.local[a].spec);
33435
33435
  }
33436
- return this.children.length ? q9(this.children, o || [], e, r, n, i, s) : o ? new Li(o.sort(Qs), Xo) : Zt;
33436
+ return this.children.length ? q9(this.children, o || [], e, r, n, i, s) : o ? new Bi(o.sort(Qs), Xo) : Zt;
33437
33437
  }
33438
33438
  /**
33439
33439
  Add the given array of decorations to the ones in the set,
@@ -33442,7 +33442,7 @@ let en = class Li {
33442
33442
  structure.
33443
33443
  */
33444
33444
  add(e, r) {
33445
- return r.length ? this == Zt ? Li.create(e, r) : this.addInner(e, r, 0) : this;
33445
+ return r.length ? this == Zt ? Bi.create(e, r) : this.addInner(e, r, 0) : this;
33446
33446
  }
33447
33447
  addInner(e, r, n) {
33448
33448
  let i, s = 0;
@@ -33457,7 +33457,7 @@ let en = class Li {
33457
33457
  let o = LN(s ? FN(r) : r, -n);
33458
33458
  for (let a = 0; a < o.length; a++)
33459
33459
  o[a].type.valid(e, o[a]) || o.splice(a--, 1);
33460
- return new Li(o.length ? this.local.concat(o).sort(Qs) : this.local, i || this.children);
33460
+ return new Bi(o.length ? this.local.concat(o).sort(Qs) : this.local, i || this.children);
33461
33461
  }
33462
33462
  /**
33463
33463
  Create a new set that contains the decorations in this set, minus
@@ -33484,13 +33484,13 @@ let en = class Li {
33484
33484
  for (let a = 0; a < i.length; a++)
33485
33485
  i[a].eq(o, r) && (i == this.local && (i = this.local.slice()), i.splice(a--, 1));
33486
33486
  }
33487
- return n == this.children && i == this.local ? this : i.length || n.length ? new Li(i, n) : Zt;
33487
+ return n == this.children && i == this.local ? this : i.length || n.length ? new Bi(i, n) : Zt;
33488
33488
  }
33489
33489
  forChild(e, r) {
33490
33490
  if (this == Zt)
33491
33491
  return this;
33492
33492
  if (r.isLeaf)
33493
- return Li.empty;
33493
+ return Bi.empty;
33494
33494
  let n, i;
33495
33495
  for (let a = 0; a < this.children.length; a += 3)
33496
33496
  if (this.children[a] >= e) {
@@ -33506,7 +33506,7 @@ let en = class Li {
33506
33506
  }
33507
33507
  }
33508
33508
  if (i) {
33509
- let a = new Li(i.sort(Qs), Xo);
33509
+ let a = new Bi(i.sort(Qs), Xo);
33510
33510
  return n ? new U9([a, n]) : a;
33511
33511
  }
33512
33512
  return n || Zt;
@@ -33517,7 +33517,7 @@ let en = class Li {
33517
33517
  eq(e) {
33518
33518
  if (this == e)
33519
33519
  return !0;
33520
- if (!(e instanceof Li) || this.local.length != e.local.length || this.children.length != e.children.length)
33520
+ if (!(e instanceof Bi) || this.local.length != e.local.length || this.children.length != e.children.length)
33521
33521
  return !1;
33522
33522
  for (let r = 0; r < this.local.length; r++)
33523
33523
  if (!this.local[r].eq(e.local[r]))
@@ -34026,7 +34026,7 @@ function tn(t) {
34026
34026
  }
34027
34027
  return e;
34028
34028
  }
34029
- const ji = new Sr("selectingCells");
34029
+ const Ui = new Sr("selectingCells");
34030
34030
  function Ia(t) {
34031
34031
  for (let e = t.depth - 1; e > 0; e--) if (t.node(e).type.spec.tableRole == "row") return t.node(0).resolve(t.before(e + 1));
34032
34032
  return null;
@@ -34553,7 +34553,7 @@ function g7(t, e, r, n) {
34553
34553
  let i = HN(t);
34554
34554
  return i = jN(i, e, r), JN(t, i);
34555
34555
  }
34556
- function xs(t) {
34556
+ function ys(t) {
34557
34557
  const e = t.selection, r = Gp(t), n = r.node(-1), i = r.start(-1), s = ot.get(n);
34558
34558
  return {
34559
34559
  ...e instanceof ft ? s.rectBetween(e.$anchorCell.pos - i, e.$headCell.pos - i) : s.findCell(r.pos - i),
@@ -34580,7 +34580,7 @@ function UN(t, { map: e, tableStart: r, table: n }, i) {
34580
34580
  function b7(t, e) {
34581
34581
  if (!sn(t)) return !1;
34582
34582
  if (e) {
34583
- const r = xs(t);
34583
+ const r = ys(t);
34584
34584
  e(UN(t.tr, r, r.left));
34585
34585
  }
34586
34586
  return !0;
@@ -34588,7 +34588,7 @@ function b7(t, e) {
34588
34588
  function x7(t, e) {
34589
34589
  if (!sn(t)) return !1;
34590
34590
  if (e) {
34591
- const r = xs(t);
34591
+ const r = ys(t);
34592
34592
  e(UN(t.tr, r, r.right));
34593
34593
  }
34594
34594
  return !0;
@@ -34608,7 +34608,7 @@ function y7(t, { map: e, table: r, tableStart: n }, i) {
34608
34608
  function w7(t, e) {
34609
34609
  if (!sn(t)) return !1;
34610
34610
  if (e) {
34611
- const r = xs(t), n = t.tr;
34611
+ const r = ys(t), n = t.tr;
34612
34612
  if (r.left == 0 && r.right == r.map.width) return !1;
34613
34613
  for (let i = r.right - 1; y7(n, r, i), i != r.left; i--) {
34614
34614
  const s = r.tableStart ? n.doc.nodeAt(r.tableStart - 1) : n.doc;
@@ -34647,7 +34647,7 @@ function v7(t, { map: e, table: r, tableStart: n }, i) {
34647
34647
  function k7(t, e) {
34648
34648
  if (!sn(t)) return !1;
34649
34649
  if (e) {
34650
- const r = xs(t), n = t.tr;
34650
+ const r = ys(t), n = t.tr;
34651
34651
  if (r.top == 0 && r.bottom == r.map.height) return !1;
34652
34652
  for (let i = r.bottom - 1; v7(n, r, i), i != r.top; i--) {
34653
34653
  const s = r.tableStart ? n.doc.nodeAt(r.tableStart - 1) : n.doc;
@@ -34682,7 +34682,7 @@ function C7(t) {
34682
34682
  return function(e, r) {
34683
34683
  if (!sn(e)) return !1;
34684
34684
  if (r) {
34685
- const n = tn(e.schema), i = xs(e), s = e.tr, o = i.map.cellsInRect(t == "column" ? {
34685
+ const n = tn(e.schema), i = ys(e), s = e.tr, o = i.map.cellsInRect(t == "column" ? {
34686
34686
  left: i.left,
34687
34687
  top: 0,
34688
34688
  right: i.right,
@@ -34717,7 +34717,7 @@ function oy(t, e) {
34717
34717
  return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? C7(t) : function(r, n) {
34718
34718
  if (!sn(r)) return !1;
34719
34719
  if (n) {
34720
- const i = tn(r.schema), s = xs(r), o = r.tr, a = ik("row", s, i), l = ik("column", s, i), c = (t === "column" ? a : t === "row" && l) ? 1 : 0, u = t == "column" ? {
34720
+ const i = tn(r.schema), s = ys(r), o = r.tr, a = ik("row", s, i), l = ik("column", s, i), c = (t === "column" ? a : t === "row" && l) ? 1 : 0, u = t == "column" ? {
34721
34721
  left: 0,
34722
34722
  top: c,
34723
34723
  right: 1,
@@ -35043,20 +35043,20 @@ function L7(t, e) {
35043
35043
  else if (!n) return;
35044
35044
  function s(l, c) {
35045
35045
  let u = mm(t, c);
35046
- const d = ji.getState(t.state) == null;
35046
+ const d = Ui.getState(t.state) == null;
35047
35047
  if (!u || !sy(l, u)) if (d) u = l;
35048
35048
  else return;
35049
35049
  const p = new ft(l, u);
35050
35050
  if (d || !t.state.selection.eq(p)) {
35051
35051
  const f = t.state.tr.setSelection(p);
35052
- d && f.setMeta(ji, l.pos), t.dispatch(f);
35052
+ d && f.setMeta(Ui, l.pos), t.dispatch(f);
35053
35053
  }
35054
35054
  }
35055
35055
  function o() {
35056
- t.root.removeEventListener("mouseup", o), t.root.removeEventListener("dragstart", o), t.root.removeEventListener("mousemove", a), ji.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(ji, -1));
35056
+ t.root.removeEventListener("mouseup", o), t.root.removeEventListener("dragstart", o), t.root.removeEventListener("mousemove", a), Ui.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(Ui, -1));
35057
35057
  }
35058
35058
  function a(l) {
35059
- const c = l, u = ji.getState(t.state);
35059
+ const c = l, u = Ui.getState(t.state);
35060
35060
  let d;
35061
35061
  if (u != null) d = t.state.doc.resolve(u);
35062
35062
  else if (lk(t, c.target) != n && (d = mm(t, e), !d))
@@ -35301,13 +35301,13 @@ function W7(t, e) {
35301
35301
  }
35302
35302
  function G7({ allowTableNodeSelection: t = !1 } = {}) {
35303
35303
  return new kr({
35304
- key: ji,
35304
+ key: Ui,
35305
35305
  state: {
35306
35306
  init() {
35307
35307
  return null;
35308
35308
  },
35309
35309
  apply(e, r) {
35310
- const n = e.getMeta(ji);
35310
+ const n = e.getMeta(Ui);
35311
35311
  if (n != null) return n == -1 ? null : n;
35312
35312
  if (r == null || !e.docChanged) return r;
35313
35313
  const { deleted: i, pos: s } = e.mapping.mapResult(r);
@@ -35318,7 +35318,7 @@ function G7({ allowTableNodeSelection: t = !1 } = {}) {
35318
35318
  decorations: s7,
35319
35319
  handleDOMEvents: { mousedown: L7 },
35320
35320
  createSelectionBetween(e) {
35321
- return ji.getState(e.state) != null ? e.state.selection : null;
35321
+ return Ui.getState(e.state) != null ? e.state.selection : null;
35322
35322
  },
35323
35323
  handleTripleClick: D7,
35324
35324
  handleKeyDown: R7,
@@ -35714,7 +35714,7 @@ class Qc extends Yt {
35714
35714
  }
35715
35715
  }
35716
35716
  Yt.jsonID("removeNodeMark", Qc);
35717
- class Vi extends Yt {
35717
+ class Hi extends Yt {
35718
35718
  /**
35719
35719
  The given `slice` should fit the 'gap' between `from` and
35720
35720
  `to`—the depths must line up, and the surrounding nodes must be
@@ -35734,21 +35734,21 @@ class Vi extends Yt {
35734
35734
  return new Ir([this.from, this.to - this.from, this.slice.size]);
35735
35735
  }
35736
35736
  invert(e) {
35737
- return new Vi(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
35737
+ return new Hi(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
35738
35738
  }
35739
35739
  map(e) {
35740
35740
  let r = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
35741
- return r.deletedAcross && n.deletedAcross ? null : new Vi(r.pos, Math.max(r.pos, n.pos), this.slice, this.structure);
35741
+ return r.deletedAcross && n.deletedAcross ? null : new Hi(r.pos, Math.max(r.pos, n.pos), this.slice, this.structure);
35742
35742
  }
35743
35743
  merge(e) {
35744
- if (!(e instanceof Vi) || e.structure || this.structure)
35744
+ if (!(e instanceof Hi) || e.structure || this.structure)
35745
35745
  return null;
35746
35746
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
35747
35747
  let r = this.slice.size + e.slice.size == 0 ? B.empty : new B(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
35748
- return new Vi(this.from, this.to + (e.to - e.from), r, this.structure);
35748
+ return new Hi(this.from, this.to + (e.to - e.from), r, this.structure);
35749
35749
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
35750
35750
  let r = this.slice.size + e.slice.size == 0 ? B.empty : new B(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
35751
- return new Vi(e.from, this.to, r, this.structure);
35751
+ return new Hi(e.from, this.to, r, this.structure);
35752
35752
  } else
35753
35753
  return null;
35754
35754
  }
@@ -35762,10 +35762,10 @@ class Vi extends Yt {
35762
35762
  static fromJSON(e, r) {
35763
35763
  if (typeof r.from != "number" || typeof r.to != "number")
35764
35764
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
35765
- return new Vi(r.from, r.to, B.fromJSON(e, r.slice), !!r.structure);
35765
+ return new Hi(r.from, r.to, B.fromJSON(e, r.slice), !!r.structure);
35766
35766
  }
35767
35767
  }
35768
- Yt.jsonID("replace", Vi);
35768
+ Yt.jsonID("replace", Hi);
35769
35769
  class vc extends Yt {
35770
35770
  /**
35771
35771
  Create a replace-around step with the given range and gap.
@@ -35995,9 +35995,9 @@ function rI(t, e) {
35995
35995
  let r = document.createEvent("Event");
35996
35996
  return r.initEvent("keydown", !0, !0), r.keyCode = t, r.key = r.code = e, r;
35997
35997
  }
35998
- const Jn = typeof navigator < "u" ? navigator : null, mk = typeof document < "u" ? document : null, ys = Jn && Jn.userAgent || "", v0 = /Edge\/(\d+)/.exec(ys), nI = /MSIE \d/.exec(ys), k0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ys), Lu = !!(nI || k0 || v0), iI = nI ? document.documentMode : k0 ? +k0[1] : v0 ? +v0[1] : 0, Kp = !Lu && /gecko\/(\d+)/i.test(ys);
35999
- Kp && +(/Firefox\/(\d+)/.exec(ys) || [0, 0])[1];
36000
- const S0 = !Lu && /Chrome\/(\d+)/.exec(ys), Ti = !!S0, sI = S0 ? +S0[1] : 0, No = !Lu && !!Jn && /Apple Computer/.test(Jn.vendor), cy = No && (/Mobile\/\w+/.test(ys) || !!Jn && Jn.maxTouchPoints > 2), Ur = cy || (Jn ? /Mac/.test(Jn.platform) : !1), oI = Jn ? /Win/.test(Jn.platform) : !1, Bu = /Android \d/.test(ys), uy = !!mk && "webkitFontSmoothing" in mk.documentElement.style, eV = uy ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
35998
+ const Jn = typeof navigator < "u" ? navigator : null, mk = typeof document < "u" ? document : null, ws = Jn && Jn.userAgent || "", v0 = /Edge\/(\d+)/.exec(ws), nI = /MSIE \d/.exec(ws), k0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ws), Lu = !!(nI || k0 || v0), iI = nI ? document.documentMode : k0 ? +k0[1] : v0 ? +v0[1] : 0, Kp = !Lu && /gecko\/(\d+)/i.test(ws);
35999
+ Kp && +(/Firefox\/(\d+)/.exec(ws) || [0, 0])[1];
36000
+ const S0 = !Lu && /Chrome\/(\d+)/.exec(ws), Ti = !!S0, sI = S0 ? +S0[1] : 0, No = !Lu && !!Jn && /Apple Computer/.test(Jn.vendor), cy = No && (/Mobile\/\w+/.test(ws) || !!Jn && Jn.maxTouchPoints > 2), Ur = cy || (Jn ? /Mac/.test(Jn.platform) : !1), oI = Jn ? /Win/.test(Jn.platform) : !1, Bu = /Android \d/.test(ws), uy = !!mk && "webkitFontSmoothing" in mk.documentElement.style, eV = uy ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
36001
36001
  function tV(t, e = null) {
36002
36002
  let r = t.domSelectionRange(), n = t.state.doc;
36003
36003
  if (!r.focusNode)
@@ -36120,7 +36120,7 @@ function C0(t, e) {
36120
36120
  let { $anchor: r, $head: n } = t.selection, i = e > 0 ? r.max(n) : r.min(n), s = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
36121
36121
  return s && ke.findFrom(s, e);
36122
36122
  }
36123
- function Hi(t, e) {
36123
+ function Ji(t, e) {
36124
36124
  return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0;
36125
36125
  }
36126
36126
  function wk(t, e, r) {
@@ -36131,25 +36131,25 @@ function wk(t, e, r) {
36131
36131
  if (!s || s.isText || !s.isLeaf)
36132
36132
  return !1;
36133
36133
  let o = t.state.doc.resolve(i.pos + s.nodeSize * (e < 0 ? -1 : 1));
36134
- return Hi(t, new he(n.$anchor, o));
36134
+ return Ji(t, new he(n.$anchor, o));
36135
36135
  } else if (n.empty) {
36136
36136
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
36137
36137
  let i = C0(t.state, e);
36138
- return i && i instanceof Z ? Hi(t, i) : !1;
36138
+ return i && i instanceof Z ? Ji(t, i) : !1;
36139
36139
  } else if (!(Ur && r.indexOf("m") > -1)) {
36140
36140
  let i = n.$head, s = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, o;
36141
36141
  if (!s || s.isText)
36142
36142
  return !1;
36143
36143
  let a = e < 0 ? i.pos - s.nodeSize : i.pos;
36144
- return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Z.isSelectable(s) ? Hi(t, new Z(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : uy ? Hi(t, new he(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
36144
+ return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Z.isSelectable(s) ? Ji(t, new Z(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : uy ? Ji(t, new he(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
36145
36145
  }
36146
36146
  } else return !1;
36147
36147
  else {
36148
36148
  if (n instanceof Z && n.node.isInline)
36149
- return Hi(t, new he(e > 0 ? n.$to : n.$from));
36149
+ return Ji(t, new he(e > 0 ? n.$to : n.$from));
36150
36150
  {
36151
36151
  let i = C0(t.state, e);
36152
- return i ? Hi(t, i) : !1;
36152
+ return i ? Ji(t, i) : !1;
36153
36153
  }
36154
36154
  }
36155
36155
  }
@@ -36302,11 +36302,11 @@ function kk(t, e, r) {
36302
36302
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
36303
36303
  let o = C0(t.state, e);
36304
36304
  if (o && o instanceof Z)
36305
- return Hi(t, o);
36305
+ return Ji(t, o);
36306
36306
  }
36307
36307
  if (!i.parent.inlineContent) {
36308
36308
  let o = e < 0 ? i : s, a = n instanceof cr ? ke.near(o, e) : ke.findFrom(o, e);
36309
- return a ? Hi(t, a) : !1;
36309
+ return a ? Ji(t, a) : !1;
36310
36310
  }
36311
36311
  return !1;
36312
36312
  }
@@ -36559,7 +36559,7 @@ function xV(t, e) {
36559
36559
  return new B(i, s, o);
36560
36560
  }
36561
36561
  const kn = {}, Or = {};
36562
- function Xi(t, e) {
36562
+ function Yi(t, e) {
36563
36563
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
36564
36564
  }
36565
36565
  Or.keydown = (t, e) => {
@@ -36570,7 +36570,7 @@ Or.keydown = (t, e) => {
36570
36570
  t.input.lastIOSEnter = n, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
36571
36571
  t.input.lastIOSEnter == n && (t.someProp("handleKeyDown", (i) => i(t, rI(13, "Enter"))), t.input.lastIOSEnter = 0);
36572
36572
  }, 200);
36573
- } else t.someProp("handleKeyDown", (n) => n(t, r)) || dV(t, r) ? r.preventDefault() : Xi(t, "key");
36573
+ } else t.someProp("handleKeyDown", (n) => n(t, r)) || dV(t, r) ? r.preventDefault() : Yi(t, "key");
36574
36574
  };
36575
36575
  Or.keyup = (t, e) => {
36576
36576
  e.keyCode == 16 && (t.input.shiftKey = !1);
@@ -36669,7 +36669,7 @@ kn.mousedown = (t, e) => {
36669
36669
  let n = py(t), i = Date.now(), s = "singleClick";
36670
36670
  i - t.input.lastClick.time < 500 && yV(r, t.input.lastClick) && !r[bI] && t.input.lastClick.button == r.button && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: i, x: r.clientX, y: r.clientY, type: s, button: r.button };
36671
36671
  let o = t.posAtCoords(Xp(r));
36672
- o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new TV(t, o, r, !!n)) : (s == "doubleClick" ? SV : CV)(t, o.pos, o.inside, r) ? r.preventDefault() : Xi(t, "pointer"));
36672
+ o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new TV(t, o, r, !!n)) : (s == "doubleClick" ? SV : CV)(t, o.pos, o.inside, r) ? r.preventDefault() : Yi(t, "pointer"));
36673
36673
  };
36674
36674
  class TV {
36675
36675
  constructor(e, r, n, i) {
@@ -36691,7 +36691,7 @@ class TV {
36691
36691
  setUneditable: !!(this.target && Kp && !this.target.hasAttribute("contentEditable"))
36692
36692
  }), 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(() => {
36693
36693
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
36694
- }, 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)), Xi(e, "pointer");
36694
+ }, 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)), Yi(e, "pointer");
36695
36695
  }
36696
36696
  done() {
36697
36697
  this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => hy(this.view)), this.view.input.mouseDown = null;
@@ -36700,7 +36700,7 @@ class TV {
36700
36700
  if (this.done(), !this.view.dom.contains(e.target))
36701
36701
  return;
36702
36702
  let r = this.pos;
36703
- this.view.state.doc != this.startDoc && (r = this.view.posAtCoords(Xp(e))), this.updateAllowDefault(e), this.allowDefault || !r ? Xi(this.view, "pointer") : kV(this.view, r.pos, r.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
36703
+ this.view.state.doc != this.startDoc && (r = this.view.posAtCoords(Xp(e))), this.updateAllowDefault(e), this.allowDefault || !r ? Yi(this.view, "pointer") : kV(this.view, r.pos, r.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
36704
36704
  No && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
36705
36705
  // cursor, but still report that the node is selected
36706
36706
  // when asked through getSelection. You'll then get a
@@ -36708,20 +36708,20 @@ class TV {
36708
36708
  // (hidden) cursor is doesn't change the selection, and
36709
36709
  // thus doesn't get a reaction from ProseMirror. This
36710
36710
  // works around that.
36711
- Ti && !this.view.state.selection.visible && Math.min(Math.abs(r.pos - this.view.state.selection.from), Math.abs(r.pos - this.view.state.selection.to)) <= 2) ? (ma(this.view, ke.near(this.view.state.doc.resolve(r.pos))), e.preventDefault()) : Xi(this.view, "pointer");
36711
+ Ti && !this.view.state.selection.visible && Math.min(Math.abs(r.pos - this.view.state.selection.from), Math.abs(r.pos - this.view.state.selection.to)) <= 2) ? (ma(this.view, ke.near(this.view.state.doc.resolve(r.pos))), e.preventDefault()) : Yi(this.view, "pointer");
36712
36712
  }
36713
36713
  move(e) {
36714
- this.updateAllowDefault(e), Xi(this.view, "pointer"), e.buttons == 0 && this.done();
36714
+ this.updateAllowDefault(e), Yi(this.view, "pointer"), e.buttons == 0 && this.done();
36715
36715
  }
36716
36716
  updateAllowDefault(e) {
36717
36717
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
36718
36718
  }
36719
36719
  }
36720
36720
  kn.touchstart = (t) => {
36721
- t.input.lastTouch = Date.now(), py(t), Xi(t, "pointer");
36721
+ t.input.lastTouch = Date.now(), py(t), Yi(t, "pointer");
36722
36722
  };
36723
36723
  kn.touchmove = (t) => {
36724
- t.input.lastTouch = Date.now(), Xi(t, "pointer");
36724
+ t.input.lastTouch = Date.now(), Yi(t, "pointer");
36725
36725
  };
36726
36726
  kn.contextmenu = (t) => py(t);
36727
36727
  function xI(t, e) {
@@ -36965,7 +36965,7 @@ class ep {
36965
36965
  this.spec.destroy && this.spec.destroy(e);
36966
36966
  }
36967
36967
  }
36968
- class ts {
36968
+ class rs {
36969
36969
  constructor(e, r) {
36970
36970
  this.attrs = e, this.spec = r || Zs;
36971
36971
  }
@@ -36977,10 +36977,10 @@ class ts {
36977
36977
  return r.from < r.to;
36978
36978
  }
36979
36979
  eq(e) {
36980
- return this == e || e instanceof ts && tu(this.attrs, e.attrs) && tu(this.spec, e.spec);
36980
+ return this == e || e instanceof rs && tu(this.attrs, e.attrs) && tu(this.spec, e.spec);
36981
36981
  }
36982
36982
  static is(e) {
36983
- return e.type instanceof ts;
36983
+ return e.type instanceof rs;
36984
36984
  }
36985
36985
  destroy() {
36986
36986
  }
@@ -37047,7 +37047,7 @@ class Rn {
37047
37047
  each inline node between `from` and `to`.
37048
37048
  */
37049
37049
  static inline(e, r, n, i) {
37050
- return new Rn(e, r, new ts(n, i));
37050
+ return new Rn(e, r, new rs(n, i));
37051
37051
  }
37052
37052
  /**
37053
37053
  Creates a node decoration. `from` and `to` should point precisely
@@ -37068,7 +37068,7 @@ class Rn {
37068
37068
  @internal
37069
37069
  */
37070
37070
  get inline() {
37071
- return this.type instanceof ts;
37071
+ return this.type instanceof rs;
37072
37072
  }
37073
37073
  /**
37074
37074
  @internal
@@ -37199,7 +37199,7 @@ class _t {
37199
37199
  let s = e + 1, o = s + r.content.size;
37200
37200
  for (let a = 0; a < this.local.length; a++) {
37201
37201
  let l = this.local[a];
37202
- if (l.from < o && l.to > s && l.type instanceof ts) {
37202
+ if (l.from < o && l.to > s && l.type instanceof rs) {
37203
37203
  let c = Math.max(s, l.from) - s, u = Math.min(o, l.to) - s;
37204
37204
  c < u && (i || (i = [])).push(l.copy(c, u));
37205
37205
  }
@@ -37238,11 +37238,11 @@ class _t {
37238
37238
  localsInner(e) {
37239
37239
  if (this == er)
37240
37240
  return ea;
37241
- if (e.inlineContent || !this.local.some(ts.is))
37241
+ if (e.inlineContent || !this.local.some(rs.is))
37242
37242
  return this.local;
37243
37243
  let r = [];
37244
37244
  for (let n = 0; n < this.local.length; n++)
37245
- this.local[n].type instanceof ts || r.push(this.local[n]);
37245
+ this.local[n].type instanceof rs || r.push(this.local[n]);
37246
37246
  return r;
37247
37247
  }
37248
37248
  forEachSet(e) {
@@ -38106,9 +38106,9 @@ function WH() {
38106
38106
  text: Wn
38107
38107
  };
38108
38108
  }
38109
- let Cs = 48;
38110
- for (; Cs < 123; )
38111
- Wn[Cs] = Ai, Cs++, Cs === 58 ? Cs = 65 : Cs === 91 && (Cs = 97);
38109
+ let Es = 48;
38110
+ for (; Es < 123; )
38111
+ Wn[Es] = Ai, Es++, Es === 58 ? Es = 65 : Es === 91 && (Es = 97);
38112
38112
  Wn[43] = Ai;
38113
38113
  Wn[45] = Ai;
38114
38114
  Wn[46] = Ai;
@@ -39171,7 +39171,7 @@ Se(XI, {
39171
39171
  var YI = Re("AddRowBefore", (t) => () => (e, r) => {
39172
39172
  if (!sn(e)) return !1;
39173
39173
  if (r) {
39174
- const n = xs(e);
39174
+ const n = ys(e);
39175
39175
  r(VI(t, e.tr, n, n.top));
39176
39176
  }
39177
39177
  return !0;
@@ -39183,7 +39183,7 @@ Se(YI, {
39183
39183
  var QI = Re("AddRowAfter", (t) => () => (e, r) => {
39184
39184
  if (!sn(e)) return !1;
39185
39185
  if (r) {
39186
- const n = xs(e);
39186
+ const n = ys(e);
39187
39187
  r(VI(t, e.tr, n, n.bottom));
39188
39188
  }
39189
39189
  return !0;
@@ -39509,7 +39509,7 @@ Se(iM, {
39509
39509
  displayName: "Prose<tableEditingPlugin>",
39510
39510
  group: "Prose"
39511
39511
  });
39512
- var Ay = gs("remarkGFM", () => CJ);
39512
+ var Ay = bs("remarkGFM", () => CJ);
39513
39513
  Se(Ay.plugin, {
39514
39514
  displayName: "Remark<remarkGFMPlugin>",
39515
39515
  group: "Remark"
@@ -40338,7 +40338,7 @@ function M0(t, e) {
40338
40338
  function jn(t, e) {
40339
40339
  return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && vj.test(String.fromCharCode(t)) : e === !1 ? !1 : M0(t, hM);
40340
40340
  }
40341
- function us(t, e) {
40341
+ function hs(t, e) {
40342
40342
  return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && kj.test(String.fromCharCode(t)) : e === !1 ? !1 : M0(t, hM) || M0(t, bj);
40343
40343
  }
40344
40344
  var Xe = function(e, r) {
@@ -40462,7 +40462,7 @@ var fM = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Vt = /(?:\s|\/\/.*|\/\
40462
40462
  }), $k = Array.isArray || (function(t) {
40463
40463
  return Ej.call(t) === "[object Array]";
40464
40464
  }), zk = /* @__PURE__ */ Object.create(null);
40465
- function Yi(t) {
40465
+ function Qi(t) {
40466
40466
  return zk[t] || (zk[t] = new RegExp("^(?:" + t.replace(/ /g, "|") + ")$"));
40467
40467
  }
40468
40468
  function yi(t) {
@@ -40611,11 +40611,11 @@ function _y(t, e) {
40611
40611
  return Ka | (t ? Iy : 0) | (e ? bM : 0);
40612
40612
  }
40613
40613
  var ip = 0, Oy = 1, Ni = 2, wM = 3, vM = 4, kM = 5, Tt = function(e, r, n) {
40614
- this.options = e = Aj(e), this.sourceFile = e.sourceFile, this.keywords = Yi(yj[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
40614
+ this.options = e = Aj(e), this.sourceFile = e.sourceFile, this.keywords = Qi(yj[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
40615
40615
  var i = "";
40616
- e.allowReserved !== !0 && (i = Em[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (i += " await")), this.reservedWords = Yi(i);
40616
+ e.allowReserved !== !0 && (i = Em[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (i += " await")), this.reservedWords = Qi(i);
40617
40617
  var s = (i ? i + " " : "") + Em.strict;
40618
- this.reservedWordsStrict = Yi(s), this.reservedWordsStrictBind = Yi(s + " " + Em.strictBind), this.input = String(r), this.containsEsc = !1, n ? (this.pos = n, this.lineStart = this.input.lastIndexOf(`
40618
+ this.reservedWordsStrict = Qi(s), this.reservedWordsStrictBind = Qi(s + " " + Em.strictBind), this.input = String(r), this.containsEsc = !1, n ? (this.pos = n, this.lineStart = this.input.lastIndexOf(`
40619
40619
  `, n - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(vr).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = T.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(nu), this.regexpState = null, this.privateNameStack = [];
40620
40620
  }, Gn = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
40621
40621
  Tt.prototype.parse = function() {
@@ -40779,7 +40779,7 @@ ge.isLet = function(t) {
40779
40779
  if (n === 123 || n > 55295 && n < 56320)
40780
40780
  return !0;
40781
40781
  if (jn(n, !0)) {
40782
- for (var i = r + 1; us(n = this.input.charCodeAt(i), !0); )
40782
+ for (var i = r + 1; hs(n = this.input.charCodeAt(i), !0); )
40783
40783
  ++i;
40784
40784
  if (n === 92 || n > 55295 && n < 56320)
40785
40785
  return !0;
@@ -40794,7 +40794,7 @@ ge.isAsyncFunction = function() {
40794
40794
  return !1;
40795
40795
  Vt.lastIndex = this.pos;
40796
40796
  var t = Vt.exec(this.input), e = this.pos + t[0].length, r;
40797
- return !vr.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !(us(r = this.input.charCodeAt(e + 8)) || r > 55295 && r < 56320));
40797
+ return !vr.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !(hs(r = this.input.charCodeAt(e + 8)) || r > 55295 && r < 56320));
40798
40798
  };
40799
40799
  ge.isUsingKeyword = function(t, e) {
40800
40800
  if (this.options.ecmaVersion < 17 || !this.isContextual(t ? "await" : "using"))
@@ -40805,7 +40805,7 @@ ge.isUsingKeyword = function(t, e) {
40805
40805
  return !1;
40806
40806
  if (t) {
40807
40807
  var i = n + 5, s;
40808
- if (this.input.slice(n, i) !== "using" || i === this.input.length || us(s = this.input.charCodeAt(i)) || s > 55295 && s < 56320)
40808
+ if (this.input.slice(n, i) !== "using" || i === this.input.length || hs(s = this.input.charCodeAt(i)) || s > 55295 && s < 56320)
40809
40809
  return !1;
40810
40810
  Vt.lastIndex = i;
40811
40811
  var o = Vt.exec(this.input);
@@ -40814,7 +40814,7 @@ ge.isUsingKeyword = function(t, e) {
40814
40814
  }
40815
40815
  if (e) {
40816
40816
  var a = n + 2, l;
40817
- if (this.input.slice(n, a) === "of" && (a === this.input.length || !us(l = this.input.charCodeAt(a)) && !(l > 55295 && l < 56320)))
40817
+ if (this.input.slice(n, a) === "of" && (a === this.input.length || !hs(l = this.input.charCodeAt(a)) && !(l > 55295 && l < 56320)))
40818
40818
  return !1;
40819
40819
  }
40820
40820
  var c = this.input.charCodeAt(n);
@@ -41960,19 +41960,19 @@ op.curPosition = function() {
41960
41960
  if (this.options.locations)
41961
41961
  return new ru(this.curLine, this.pos - this.lineStart);
41962
41962
  };
41963
- var ws = Tt.prototype, Dj = function(e) {
41963
+ var vs = Tt.prototype, Dj = function(e) {
41964
41964
  this.flags = e, this.var = [], this.lexical = [], this.functions = [];
41965
41965
  };
41966
- ws.enterScope = function(t) {
41966
+ vs.enterScope = function(t) {
41967
41967
  this.scopeStack.push(new Dj(t));
41968
41968
  };
41969
- ws.exitScope = function() {
41969
+ vs.exitScope = function() {
41970
41970
  this.scopeStack.pop();
41971
41971
  };
41972
- ws.treatFunctionsAsVarInScope = function(t) {
41972
+ vs.treatFunctionsAsVarInScope = function(t) {
41973
41973
  return t.flags & Ka || !this.inModule && t.flags & nu;
41974
41974
  };
41975
- ws.declareName = function(t, e, r) {
41975
+ vs.declareName = function(t, e, r) {
41976
41976
  var n = !1;
41977
41977
  if (e === Ni) {
41978
41978
  var i = this.currentScope();
@@ -41995,20 +41995,20 @@ ws.declareName = function(t, e, r) {
41995
41995
  }
41996
41996
  n && this.raiseRecoverable(r, "Identifier '" + t + "' has already been declared");
41997
41997
  };
41998
- ws.checkLocalExport = function(t) {
41998
+ vs.checkLocalExport = function(t) {
41999
41999
  this.scopeStack[0].lexical.indexOf(t.name) === -1 && this.scopeStack[0].var.indexOf(t.name) === -1 && (this.undefinedExports[t.name] = t);
42000
42000
  };
42001
- ws.currentScope = function() {
42001
+ vs.currentScope = function() {
42002
42002
  return this.scopeStack[this.scopeStack.length - 1];
42003
42003
  };
42004
- ws.currentVarScope = function() {
42004
+ vs.currentVarScope = function() {
42005
42005
  for (var t = this.scopeStack.length - 1; ; t--) {
42006
42006
  var e = this.scopeStack[t];
42007
42007
  if (e.flags & (Zp | Ju | Io))
42008
42008
  return e;
42009
42009
  }
42010
42010
  };
42011
- ws.currentThisScope = function() {
42011
+ vs.currentThisScope = function() {
42012
42012
  for (var t = this.scopeStack.length - 1; ; t--) {
42013
42013
  var e = this.scopeStack[t];
42014
42014
  if (e.flags & (Zp | Ju | Io) && !(e.flags & My))
@@ -42063,11 +42063,11 @@ var Pj = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
42063
42063
  }, LM = {};
42064
42064
  function Hj(t) {
42065
42065
  var e = LM[t] = {
42066
- binary: Yi(Bj[t] + " " + Hk),
42067
- binaryOfStrings: Yi($j[t]),
42066
+ binary: Qi(Bj[t] + " " + Hk),
42067
+ binaryOfStrings: Qi($j[t]),
42068
42068
  nonBinary: {
42069
- General_Category: Yi(Hk),
42070
- Script: Yi(Vj[t])
42069
+ General_Category: Qi(Hk),
42070
+ Script: Qi(Vj[t])
42071
42071
  }
42072
42072
  };
42073
42073
  e.nonBinary.Script_Extensions = e.nonBinary.Script, e.nonBinary.gc = e.nonBinary.General_Category, e.nonBinary.sc = e.nonBinary.Script, e.nonBinary.scx = e.nonBinary.Script_Extensions;
@@ -42439,7 +42439,7 @@ fe.regexp_eatRegExpIdentifierPart = function(t) {
42439
42439
  return t.advance(r), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, r) && (n = t.lastIntValue), Wj(n) ? (t.lastIntValue = n, !0) : (t.pos = e, !1);
42440
42440
  };
42441
42441
  function Wj(t) {
42442
- return us(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
42442
+ return hs(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
42443
42443
  }
42444
42444
  fe.regexp_eatAtomEscape = function(t) {
42445
42445
  return this.regexp_eatBackReference(t) || this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t) || t.switchN && this.regexp_eatKGroupName(t) ? !0 : (t.switchU && (t.current() === 99 && t.raise("Invalid unicode escape"), t.raise("Invalid escape")), !1);
@@ -43392,14 +43392,14 @@ qe.readWord1 = function() {
43392
43392
  this.containsEsc = !1;
43393
43393
  for (var t = "", e = !0, r = this.pos, n = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
43394
43394
  var i = this.fullCharCodeAtPos();
43395
- if (us(i, n))
43395
+ if (hs(i, n))
43396
43396
  this.pos += i <= 65535 ? 1 : 2;
43397
43397
  else if (i === 92) {
43398
43398
  this.containsEsc = !0, t += this.input.slice(r, this.pos);
43399
43399
  var s = this.pos;
43400
43400
  this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
43401
43401
  var o = this.readCodePoint();
43402
- (e ? jn : us)(o, n) || this.invalidStringToken(s, "Invalid Unicode escape"), t += yi(o), r = this.pos;
43402
+ (e ? jn : hs)(o, n) || this.invalidStringToken(s, "Invalid Unicode escape"), t += yi(o), r = this.pos;
43403
43403
  } else
43404
43404
  break;
43405
43405
  e = !1;
@@ -43424,7 +43424,7 @@ Tt.acorn = {
43424
43424
  keywordTypes: Ny,
43425
43425
  TokContext: un,
43426
43426
  tokContexts: gt,
43427
- isIdentifierChar: us,
43427
+ isIdentifierChar: hs,
43428
43428
  isIdentifierStart: jn,
43429
43429
  Token: Dy,
43430
43430
  isNewLine: Wa,
@@ -44129,7 +44129,7 @@ Defaulting to 2020, but this will stop working in the future.`)), g.ecmaVersion
44129
44129
  }
44130
44130
  return this.adaptDirectivePrologue(h.body), this.next(), h.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType, this.finishNode(h, "Program");
44131
44131
  };
44132
- var Xn = { kind: "loop" }, vs = { kind: "switch" };
44132
+ var Xn = { kind: "loop" }, ks = { kind: "switch" };
44133
44133
  se.isLet = function(h) {
44134
44134
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
44135
44135
  return !1;
@@ -44289,7 +44289,7 @@ Defaulting to 2020, but this will stop working in the future.`)), g.ecmaVersion
44289
44289
  }, se.parseReturnStatement = function(h) {
44290
44290
  return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(y.semi) || this.insertSemicolon() ? h.argument = null : (h.argument = this.parseExpression(), this.semicolon()), this.finishNode(h, "ReturnStatement");
44291
44291
  }, se.parseSwitchStatement = function(h) {
44292
- this.next(), h.discriminant = this.parseParenExpression(), h.cases = [], this.expect(y.braceL), this.labels.push(vs), this.enterScope(ht);
44292
+ this.next(), h.discriminant = this.parseParenExpression(), h.cases = [], this.expect(y.braceL), this.labels.push(ks), this.enterScope(ht);
44293
44293
  for (var g, k = !1; this.type !== y.braceR; )
44294
44294
  if (this.type === y._case || this.type === y._default) {
44295
44295
  var S = this.type === y._case;
@@ -47888,7 +47888,7 @@ function VU({ value: t, onChange: e, placeholder: r }) {
47888
47888
  );
47889
47889
  }
47890
47890
  function HU({ componentName: t, props: e, hasExpressions: r, slotContent: n, onRemove: i, onSlotContentChange: s, onPropsChange: o }) {
47891
- const a = Object.entries(e).filter(([p, f]) => f !== "" || o), l = a.filter(([p, f]) => !f.startsWith(Ui)), c = a.filter(([p, f]) => f.startsWith(Ui)), u = s != null, d = (p, f) => {
47891
+ const a = Object.entries(e).filter(([p, f]) => f !== "" || o), l = a.filter(([p, f]) => !f.startsWith(qi)), c = a.filter(([p, f]) => f.startsWith(qi)), u = s != null, d = (p, f) => {
47892
47892
  o && o({ ...e, [p]: f });
47893
47893
  };
47894
47894
  return /* @__PURE__ */ m(
@@ -47943,13 +47943,13 @@ function HU({ componentName: t, props: e, hasExpressions: r, slotContent: n, onR
47943
47943
  c.length > 0 && /* @__PURE__ */ m("div", { class: "px-4 py-2 flex flex-wrap gap-x-3 gap-y-1 border-t border-white/10", children: c.map(([p, f]) => /* @__PURE__ */ m("span", { class: "text-[11px] text-white/40 font-mono", children: [
47944
47944
  /* @__PURE__ */ m("span", { class: "text-white/60", children: p }),
47945
47945
  /* @__PURE__ */ m("span", { class: "text-white/30", children: "=" }),
47946
- /* @__PURE__ */ m("span", { class: "text-amber-300/60", children: `{${f.slice(Ui.length)}}` })
47946
+ /* @__PURE__ */ m("span", { class: "text-amber-300/60", children: `{${f.slice(qi.length)}}` })
47947
47947
  ] }, p)) }),
47948
47948
  !o && a.length > 0 && /* @__PURE__ */ m("div", { class: "px-4 py-2 flex flex-wrap gap-x-3 gap-y-1", children: [
47949
47949
  a.slice(0, 6).map(([p, f]) => /* @__PURE__ */ m("span", { class: "text-[11px] text-white/40 font-mono", children: [
47950
47950
  /* @__PURE__ */ m("span", { class: "text-white/60", children: p }),
47951
47951
  /* @__PURE__ */ m("span", { class: "text-white/30", children: "=" }),
47952
- f.startsWith(Ui) ? /* @__PURE__ */ m("span", { class: "text-amber-300/60", children: `{${f.slice(Ui.length)}}` }) : /* @__PURE__ */ m("span", { class: "text-cms-primary/60", children: [
47952
+ f.startsWith(qi) ? /* @__PURE__ */ m("span", { class: "text-amber-300/60", children: `{${f.slice(qi.length)}}` }) : /* @__PURE__ */ m("span", { class: "text-cms-primary/60", children: [
47953
47953
  '"',
47954
47954
  f.length > 25 ? f.slice(0, 25) + "..." : f,
47955
47955
  '"'
@@ -47965,24 +47965,24 @@ function HU({ componentName: t, props: e, hasExpressions: r, slotContent: n, onR
47965
47965
  }
47966
47966
  );
47967
47967
  }
47968
- const Ui = "__mdx_expr__:", JU = /* @__PURE__ */ new Set(["br", "hr", "img", "input", "meta", "link", "area", "base", "col", "embed", "source", "track", "wbr"]), jU = Nd().use(Td), UU = gs("remarkMdx", () => LU);
47968
+ const qi = "__mdx_expr__:", JU = /* @__PURE__ */ new Set(["br", "hr", "img", "input", "meta", "link", "area", "base", "col", "embed", "source", "track", "wbr"]), jU = Nd().use(Td), UU = bs("remarkMdx", () => LU);
47969
47969
  function qU(t) {
47970
47970
  const e = {};
47971
47971
  let r = !1;
47972
47972
  if (!Array.isArray(t)) return { props: e, hasExpressions: r };
47973
47973
  for (const n of t)
47974
- n.type === "mdxJsxAttribute" && n.name && (n.value === null || n.value === void 0 ? e[n.name] = "true" : typeof n.value == "string" ? e[n.name] = n.value : n.value?.type === "mdxJsxAttributeValueExpression" && (e[n.name] = `${Ui}${n.value.value}`, r = !0)), n.type === "mdxJsxExpressionAttribute" && (r = !0);
47974
+ n.type === "mdxJsxAttribute" && n.name && (n.value === null || n.value === void 0 ? e[n.name] = "true" : typeof n.value == "string" ? e[n.name] = n.value : n.value?.type === "mdxJsxAttributeValueExpression" && (e[n.name] = `${qi}${n.value.value}`, r = !0)), n.type === "mdxJsxExpressionAttribute" && (r = !0);
47975
47975
  return { props: e, hasExpressions: r };
47976
47976
  }
47977
47977
  function WU(t) {
47978
47978
  const e = [];
47979
47979
  for (const [r, n] of Object.entries(t))
47980
- n.startsWith(Ui) ? e.push({
47980
+ n.startsWith(qi) ? e.push({
47981
47981
  type: "mdxJsxAttribute",
47982
47982
  name: r,
47983
47983
  value: {
47984
47984
  type: "mdxJsxAttributeValueExpression",
47985
- value: n.slice(Ui.length)
47985
+ value: n.slice(qi.length)
47986
47986
  }
47987
47987
  }) : e.push({
47988
47988
  type: "mdxJsxAttribute",
@@ -50058,7 +50058,7 @@ function sq() {
50058
50058
  );
50059
50059
  }
50060
50060
  function oq() {
50061
- const t = XS.value, e = rs.value;
50061
+ const t = XS.value, e = ns.value;
50062
50062
  return cq(), t ? /* @__PURE__ */ m(hi, { onClose: () => A1(), maxWidth: "max-w-2xl", extraClass: "max-h-[80vh] flex flex-col", children: [
50063
50063
  /* @__PURE__ */ m(gn, { title: "Redirects", onClose: () => A1() }),
50064
50064
  /* @__PURE__ */ m("div", { class: "flex-1 overflow-y-auto p-5 space-y-3", children: [
@@ -50404,7 +50404,7 @@ function sf(t, e, r = !0) {
50404
50404
  }, [t, r, e]);
50405
50405
  }
50406
50406
  function dq() {
50407
- const t = xe(null), e = xe(null), r = xe(null), n = xe(null), i = Dn.value, s = io.value, o = xr.value, a = Qi.value, l = !!i && (o || a), c = a && !!s, u = l || c;
50407
+ const t = xe(null), e = xe(null), r = xe(null), n = xe(null), i = Dn.value, s = io.value, o = xr.value, a = Zi.value, l = !!i && (o || a), c = a && !!s, u = l || c;
50408
50408
  let d = null, p = "Component";
50409
50409
  if (c && s)
50410
50410
  d = s.element, p = s.label;
@@ -51141,8 +51141,8 @@ function xq({ visible: t, rect: e, element: r, onStyleChange: n }) {
51141
51141
  bq,
51142
51142
  {
51143
51143
  color: _,
51144
- tailwindClass: qi.color[C]?.class || "",
51145
- label: qi.color[C]?.label || C,
51144
+ tailwindClass: Wi.color[C]?.class || "",
51145
+ label: Wi.color[C]?.label || C,
51146
51146
  isActive: i.color === C,
51147
51147
  onClick: () => {
51148
51148
  u("color", C), a(!1);
@@ -51189,7 +51189,7 @@ function xq({ visible: t, rect: e, element: r, onStyleChange: n }) {
51189
51189
  onClick: () => {
51190
51190
  u("highlight", C), c(!1);
51191
51191
  },
51192
- title: qi.highlight[C]?.label || C,
51192
+ title: Wi.highlight[C]?.label || C,
51193
51193
  class: lt(
51194
51194
  "w-5 h-5 rounded-full border-2 transition-transform cursor-pointer",
51195
51195
  i.highlight === C ? "border-cms-primary scale-125 ring-2 ring-cms-primary/30" : "border-white/20 hover:scale-110"
@@ -51206,7 +51206,7 @@ function xq({ visible: t, rect: e, element: r, onStyleChange: n }) {
51206
51206
  value: i.size || "base",
51207
51207
  onChange: (C) => u("size", C.target.value),
51208
51208
  class: "h-8 px-2 text-xs border border-white/20 rounded-cms-sm bg-white/10 text-white cursor-pointer hover:border-white/40 focus:outline-none focus:border-white/40 focus:ring-1 focus:ring-white/10",
51209
- children: Object.entries(qi.size).map(([C, { label: _ }]) => /* @__PURE__ */ m("option", { value: C, children: _ }, C))
51209
+ children: Object.entries(Wi.size).map(([C, { label: _ }]) => /* @__PURE__ */ m("option", { value: C, children: _ }, C))
51210
51210
  }
51211
51211
  )
51212
51212
  ] })
@@ -51274,7 +51274,7 @@ const yq = ({ id: t, message: e, type: r, onRemove: n }) => {
51274
51274
  cancelLabel: "Cancel",
51275
51275
  variant: "danger"
51276
51276
  }) && t.onDiscard();
51277
- }, C = Qi.value, _ = r || C, R = [], N = [];
51277
+ }, C = Zi.value, _ = r || C, R = [], N = [];
51278
51278
  if (t.onSelectElement && rt.value.features?.selectElement && N.push({
51279
51279
  label: "Select Element",
51280
51280
  icon: /* @__PURE__ */ m("svg", { class: "w-4 h-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", children: [
@@ -51711,7 +51711,7 @@ async function iS(t, e) {
51711
51711
  }
51712
51712
  }
51713
51713
  function r_(t) {
51714
- lC(!1), mC(!1), cC(!1), Qi.value || c2(), a2(), t?.(), Ap(), vd(), lb(), ab(), Hs(), Ar(), s2().forEach((e) => {
51714
+ lC(!1), mC(!1), cC(!1), Zi.value || c2(), a2(), t?.(), Ap(), vd(), lb(), ab(), Hs(), Ar(), s2().forEach((e) => {
51715
51715
  ni(e);
51716
51716
  });
51717
51717
  }
@@ -52390,7 +52390,7 @@ function Hq() {
52390
52390
  o && e(cn);
52391
52391
  }, [o]), ye(() => {
52392
52392
  const a = (l) => {
52393
- const c = xr.value, u = Qi.value;
52393
+ const c = xr.value, u = Zi.value;
52394
52394
  if (!c && !u) {
52395
52395
  n.current && (clearTimeout(n.current), n.current = null), e((x) => x.visible ? cn : x);
52396
52396
  return;
@@ -52492,7 +52492,7 @@ function Jq({
52492
52492
  }) {
52493
52493
  ye(() => {
52494
52494
  const r = (i) => {
52495
- const s = xr.value, o = Qi.value;
52495
+ const s = xr.value, o = Zi.value;
52496
52496
  if (!s && !o || nf(i)) return;
52497
52497
  const a = _e.value, l = a.entries;
52498
52498
  if (o) {
@@ -52889,7 +52889,7 @@ function Kq() {
52889
52889
  return document.addEventListener("mousemove", i, !0), () => document.removeEventListener("mousemove", i, !0);
52890
52890
  }, []), t;
52891
52891
  }
52892
- function Es(t) {
52892
+ function Ri(t) {
52893
52893
  window.parent !== window && window.parent.postMessage(t, "*");
52894
52894
  }
52895
52895
  function cS(t) {
@@ -53135,9 +53135,7 @@ const hS = {
53135
53135
  });
53136
53136
  }, []), ye(() => {
53137
53137
  const ie = () => {
53138
- Nc().then((Ye) => {
53139
- _c(Ye);
53140
- }).catch(() => {
53138
+ Ri({ type: "cms-page-navigated", page: { pathname: window.location.pathname } }), Nc().then((Ye) => _c(Ye)).catch(() => {
53141
53139
  });
53142
53140
  };
53143
53141
  return document.addEventListener("astro:after-swap", ie), () => document.removeEventListener("astro:after-swap", ie);
@@ -53164,9 +53162,9 @@ const hS = {
53164
53162
  instance: Nt
53165
53163
  })
53166
53164
  };
53167
- Es(vt);
53165
+ Ri(vt);
53168
53166
  } else
53169
- Es({ type: "cms-element-deselected" });
53167
+ Ri({ type: "cms-element-deselected" });
53170
53168
  });
53171
53169
  const c = xe({ cmsId: null, isComponent: !1 });
53172
53170
  ye(() => {
@@ -53186,14 +53184,14 @@ const hS = {
53186
53184
  instance: Ot
53187
53185
  })
53188
53186
  };
53189
- Es(It);
53187
+ Ri(It);
53190
53188
  } else
53191
- Es({ type: "cms-element-deselected" });
53189
+ Ri({ type: "cms-element-deselected" });
53192
53190
  }, [e]);
53193
53191
  const u = xe(!1);
53194
53192
  ye(() => {
53195
53193
  const ie = _e.value;
53196
- Object.keys(ie.entries).length !== 0 && (u.current ? Es(Yq(ie, window.location.pathname)) : (u.current = !0, Es(Xq(ie, window.location.pathname))));
53194
+ Object.keys(ie.entries).length !== 0 && (u.current ? Ri(Yq(ie, window.location.pathname)) : (u.current = !0, Ri(Xq(ie, window.location.pathname))));
53197
53195
  });
53198
53196
  const d = xe("");
53199
53197
  ye(() => {
@@ -53211,7 +53209,7 @@ const hS = {
53211
53209
  canUndo: T5.value,
53212
53210
  canRedo: A5.value
53213
53211
  }), Ye = JSON.stringify(ie);
53214
- Ye !== d.current && (d.current = Ye, Es(Zq(ie)));
53212
+ Ye !== d.current && (d.current = Ye, Ri(Zq(ie)));
53215
53213
  });
53216
53214
  const {
53217
53215
  blockEditorCursor: p,
@@ -53235,7 +53233,7 @@ const hS = {
53235
53233
  return window.addEventListener("message", ie), () => window.removeEventListener("message", ie);
53236
53234
  }, [b]);
53237
53235
  const C = G(async () => {
53238
- xr.value ? (o(), r_(a)) : X0.value ? await df() : (Qi.value = !1, await iS(t, a));
53236
+ xr.value ? (o(), r_(a)) : X0.value ? await df() : (Zi.value = !1, await iS(t, a));
53239
53237
  }, [t, a, o]), _ = G(() => {
53240
53238
  Aq(t, a);
53241
53239
  }, [t, a]), R = G(async () => {
@@ -53266,8 +53264,8 @@ const hS = {
53266
53264
  }, []), P = G(() => {
53267
53265
  cO();
53268
53266
  }, []), W = G(() => {
53269
- const ie = !Qi.value;
53270
- Qi.value = ie, ie || rc(null), xr.value || (ie ? l2() : c2());
53267
+ const ie = !Zi.value;
53268
+ Zi.value = ie, ie || rc(null), xr.value || (ie ? l2() : c2());
53271
53269
  }, []), H = G(
53272
53270
  (ie, Ye, Ze, ut, xt) => {
53273
53271
  const ht = ao.value.targetElementId;