@storyblok/astro 8.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- const xp = `
1
+ const Fp = `
2
2
  <svg class="logo-storyblok logo-storyblok--dark" role="img" aria-label="Storyblok Official Logo" viewBox="0 0 19 22" xmlns="http://www.w3.org/2000/svg">
3
3
  <path d="M29.0287 14.9132C28.2686 14.9132 27.5302 14.8018 26.7918 14.5568C26.0988 14.3265 25.462 13.9468 24.924 13.4432L25.9013 11.7504C26.4443 12.1291 26.9655 12.4186 27.4867 12.6414C27.9862 12.8641 28.4858 12.9532 28.9636 12.9532C29.3111 12.9532 29.5934 12.8864 29.7888 12.7527C29.9843 12.6414 30.0712 12.4409 30.0712 12.1959C30.0712 11.9732 29.9626 11.7504 29.702 11.6168C29.2938 11.4162 28.8636 11.2666 28.4206 11.1714L26.9003 10.6591C26.4877 10.4809 26.1619 10.3027 25.9013 10.1023C25.6407 9.92408 25.4452 9.67908 25.3366 9.43408C25.2184 9.1529 25.1592 8.84935 25.1629 8.54317C25.1502 7.66646 25.5255 6.83107 26.1836 6.27136C26.4877 6.00408 26.8786 5.80363 27.313 5.64772C27.7473 5.49181 28.2251 5.42499 28.7247 5.42499C29.3979 5.42499 30.0277 5.51408 30.6141 5.69226C31.2005 5.89272 31.7652 6.22681 32.3081 6.71681L31.244 8.38726C30.8236 8.07881 30.3722 7.81747 29.8974 7.60772C29.4848 7.42954 29.1156 7.36272 28.7247 7.36272C28.4423 7.36272 28.1817 7.40726 27.9862 7.5409C27.7691 7.65226 27.6822 7.85272 27.6822 8.11999C27.6822 8.38726 27.7908 8.56545 28.008 8.69908C28.2251 8.83272 28.6595 8.96635 29.2459 9.12226C29.7903 9.26289 30.3268 9.4339 30.853 9.63454C31.2874 9.81272 31.6349 10.0132 31.9172 10.2136C32.4511 10.6169 32.7463 11.2726 32.6991 11.9509C32.6991 12.8641 32.3733 13.5768 31.7 14.1114C31.0485 14.6459 30.1798 14.9132 29.0287 14.9132ZM39.7792 14.2673C39.41 14.4232 38.9756 14.5791 38.4978 14.7127C38.02 14.8464 37.5422 14.9354 37.0427 14.9354C36.6952 14.9354 36.3911 14.8909 36.0871 14.8018C35.7915 14.7134 35.5176 14.5616 35.2835 14.3564C35.0663 14.1782 34.8926 13.9109 34.7623 13.6214C34.632 13.3095 34.5451 12.9309 34.5451 12.4854V7.69681H33.4158V5.60317H34.5668V2.68545H37.2599V5.5809H39.0842V7.69681H37.2599V11.5277C37.2599 11.8173 37.325 12.04 37.4771 12.1959C37.6291 12.3073 37.8245 12.3741 38.0417 12.3741C38.2589 12.3741 38.4761 12.3518 38.6715 12.2627C38.8887 12.1959 39.0842 12.1291 39.2362 12.04L39.7575 14.2673H39.7792ZM44.8612 14.9132C44.1701 14.9255 43.4835 14.7968 42.8414 14.5345C41.7112 14.076 40.8261 13.1439 40.409 11.9732C39.9823 10.8102 39.9823 9.52792 40.409 8.36499C40.8261 7.19423 41.7112 6.26214 42.8414 5.80363C43.4278 5.55863 44.1011 5.42499 44.8612 5.42499C46.1833 5.36117 47.4671 5.88947 48.3795 6.87272C48.7922 7.2959 49.0962 7.80817 49.3134 8.36499C49.758 9.5322 49.758 10.8282 49.3134 11.9954C48.8937 13.1518 48.0186 14.0734 46.9027 14.5345C46.2538 14.7998 45.5596 14.9285 44.8612 14.9132ZM42.9066 10.1914C42.9066 10.9041 43.0803 11.4832 43.4495 11.9064C43.8405 12.3518 44.3183 12.5745 44.8829 12.5745C45.4284 12.5853 45.9487 12.3391 46.2946 11.9064C46.4683 11.6836 46.5987 11.4609 46.7072 11.1491C46.8158 10.8595 46.8593 10.5254 46.8593 10.1914C46.8593 9.45636 46.6638 8.87726 46.2946 8.45408C45.9254 8.00863 45.4476 7.78589 44.8829 7.78589C44.3394 7.78464 43.8229 8.02909 43.4712 8.45408C43.2975 8.67681 43.1455 8.89954 43.0369 9.21136C42.939 9.52794 42.8949 9.85944 42.9066 10.1914ZM56.6541 7.98636C56.0026 7.98636 55.3945 8.09772 54.8515 8.32045C54.3736 8.48572 53.9666 8.81646 53.7005 9.2559V14.7573H50.9857V5.60317H53.4833V7.42954C53.7873 6.8059 54.1783 6.3159 54.6778 5.98181C55.1556 5.62545 55.6551 5.44726 56.1981 5.42499H56.4804L56.6541 5.44726V7.96408V7.98636ZM57.8486 16.1159C58.2263 16.2505 58.6217 16.3256 59.0214 16.3386C59.3472 16.3386 59.6078 16.2273 59.8033 16.0045C59.977 15.7818 60.129 15.3364 60.2811 14.7573L56.893 5.60317H59.6947L61.7579 12.3518L63.5605 5.60317H66.1015L62.6918 16.2273C62.1569 18.0318 60.3638 19.1157 58.5653 18.7218C58.3481 18.6773 58.0875 18.6104 57.8486 18.4991V16.1159ZM72.5301 14.9133C71.8568 14.9133 71.2487 14.7795 70.7492 14.4677C70.2417 14.1818 69.8208 13.758 69.533 13.2427V14.7573H67.1657V2.01727H69.9022V7.09545C70.4962 6.02938 71.6157 5.38681 72.8124 5.42499C73.3771 5.42499 73.8983 5.53636 74.3761 5.80363C74.8539 6.02636 75.2448 6.38272 75.614 6.8059C76.6831 8.32739 76.974 10.2831 76.3959 12.0623C76.1787 12.6414 75.8746 13.1536 75.5054 13.5768C74.7429 14.4342 73.6616 14.9198 72.5301 14.9133ZM71.7699 12.5745C72.6515 12.5764 73.4369 12.0037 73.7245 11.1491C74.043 10.2518 73.887 9.24956 73.3119 8.49863C72.9724 8.0401 72.4398 7.7753 71.8785 7.7859C71.4659 7.7859 71.0749 7.94181 70.7057 8.23136C70.3582 8.54317 70.0759 8.92181 69.8805 9.38954V11.305C70.2309 12.0628 70.9738 12.5476 71.7916 12.5523L71.7699 12.5745ZM78.0247 2.01727H80.7395V11.4832C80.7395 12.1959 81.0218 12.53 81.6082 12.53C81.9183 12.5309 82.2239 12.4545 82.4987 12.3073L82.8679 14.3786C82.1072 14.7203 81.2875 14.902 80.4572 14.9132C79.6753 14.9132 79.0672 14.6904 78.6546 14.2895C78.2202 13.8441 78.003 13.265 78.003 12.4632V2.01727H78.0247ZM87.9933 14.9132C87.3023 14.9255 86.6157 14.7968 85.9736 14.5345C84.8367 14.0789 83.9437 13.1469 83.5194 11.9732C82.8914 10.2226 83.2408 8.26037 84.4316 6.85045C84.8659 6.40499 85.3437 6.0709 85.9518 5.80363C86.5382 5.55863 87.2115 5.42499 87.9716 5.42499C89.2937 5.36117 90.5776 5.88947 91.49 6.87272C91.9243 7.2959 92.2066 7.80817 92.4238 8.36499C93.0767 10.1133 92.7249 12.0889 91.5117 13.4877C91.099 13.9332 90.5995 14.2895 89.9914 14.5345C89.3493 14.7968 88.6627 14.9255 87.9716 14.9132H87.9933ZM86.017 10.1914C86.017 10.9041 86.1907 11.4832 86.5599 11.9064C86.9509 12.3518 87.4287 12.5745 87.9933 12.5745C88.5382 12.5821 89.0571 12.3364 89.405 11.9064C89.5788 11.6836 89.7091 11.4609 89.8177 11.1491C89.9262 10.8595 89.9697 10.5254 89.9697 10.1914C89.9697 9.45636 89.7742 8.87726 89.405 8.45408C89.0358 8.00863 88.558 7.78589 87.9933 7.78589C87.4498 7.78464 86.9334 8.02909 86.5817 8.45408C86.4079 8.67681 86.2559 8.89954 86.1473 9.21136C86.0387 9.52317 86.017 9.83499 86.017 10.1914ZM100.112 14.7573L97.7882 11.06L96.8326 12.0845V14.7573H94.1178V2.01727H96.8326V9.38954L99.8514 5.60317H102.74L99.5256 9.54545L103.001 14.7573H100.112Z" fill="currentColor"></path>
4
4
  <path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.71089C0 0.76599 0.76599 0 1.71089 0H17.1089C18.0538 0 18.8198 0.76599 18.8198 1.71089V17.1089C18.8198 18.0538 18.0538 18.8198 17.1089 18.8198H7.13145L4.57616 20.9297C4.24445 21.2036 3.74366 20.9676 3.74366 20.5375V18.8198H1.71089C0.76599 18.8198 0 18.0538 0 17.1089V1.71089ZM3.74233 3.10946H11.9675C13.7438 3.10946 15.1839 4.5495 15.1839 6.32587C15.1839 7.74936 14.2592 8.95687 12.9777 9.38045C14.4761 9.65447 15.6117 10.9667 15.6117 12.5443C15.6117 14.3207 14.1717 15.7607 12.3953 15.7607H3.74247V9.54229H3.74233V3.10946ZM10.583 6.00384H6.73607V7.93369H10.583C11.1159 7.93369 11.5479 7.50168 11.5479 6.96877C11.5479 6.43585 11.1159 6.00384 10.583 6.00384ZM6.73607 10.2925H10.9035C11.4956 10.2925 11.9757 10.7725 11.9757 11.3647C11.9757 11.9568 11.4956 12.4368 10.9035 12.4368H6.73607V10.2925Z" fill="currentColor"></path>
5
5
  </svg>
6
6
  `;
7
- function Ep(t, e, o) {
7
+ function xp(t, e, o) {
8
8
  const a = "virtual:storyblok-init", n = `\0${a}`;
9
9
  return {
10
10
  name: "vite-plugin-storyblok-init",
@@ -26,7 +26,7 @@ function Ep(t, e, o) {
26
26
  }
27
27
  };
28
28
  }
29
- function Fp(t) {
29
+ function Ep(t) {
30
30
  const e = "virtual:storyblok-options", o = `\0${e}`;
31
31
  return {
32
32
  name: "vite-plugin-storyblok-options",
@@ -58,7 +58,7 @@ function Sp(t) {
58
58
  function sn(t) {
59
59
  return `/${t.trim().replace(/^\/+/, "").replace(/\/+$/, "").replace(/\/{2,}/g, "/")}`;
60
60
  }
61
- const Mp = /[\p{Lu}]/u, Tp = /[\p{Ll}]/u, Ms = /^[\p{Lu}](?![\p{Lu}])/gu, ti = /([\p{Alpha}\p{N}_]|$)/u, Bn = /[_.\- ]+/, Lp = new RegExp("^" + Bn.source), Ts = new RegExp(Bn.source + ti.source, "gu"), Ls = new RegExp("\\d+" + ti.source, "gu"), $p = (t, e, o, a) => {
61
+ const Mp = /[\p{Lu}]/u, Tp = /[\p{Ll}]/u, Ms = /^[\p{Lu}](?![\p{Lu}])/gu, ti = /([\p{Alpha}\p{N}_]|$)/u, On = /[_.\- ]+/, Lp = new RegExp("^" + On.source), Ts = new RegExp(On.source + ti.source, "gu"), Ls = new RegExp("\\d+" + ti.source, "gu"), $p = (t, e, o, a) => {
62
62
  let n = !1, s = !1, r = !1, i = !1;
63
63
  for (let l = 0; l < t.length; l++) {
64
64
  const p = t[l];
@@ -76,12 +76,12 @@ function Np(t, e) {
76
76
  }, Array.isArray(t) ? t = t.map((s) => s.trim()).filter((s) => s.length).join("-") : t = t.trim(), t.length === 0)
77
77
  return "";
78
78
  const o = e.locale === !1 ? (s) => s.toLowerCase() : (s) => s.toLocaleLowerCase(e.locale), a = e.locale === !1 ? (s) => s.toUpperCase() : (s) => s.toLocaleUpperCase(e.locale);
79
- return t.length === 1 ? Bn.test(t) ? "" : e.pascalCase ? a(t) : o(t) : (t !== o(t) && (t = $p(t, o, a, e.preserveConsecutiveUppercase)), t = t.replace(Lp, ""), t = e.preserveConsecutiveUppercase ? zp(t, o) : o(t), e.pascalCase && (t = a(t.charAt(0)) + t.slice(1)), Rp(t, a));
79
+ return t.length === 1 ? On.test(t) ? "" : e.pascalCase ? a(t) : o(t) : (t !== o(t) && (t = $p(t, o, a, e.preserveConsecutiveUppercase)), t = t.replace(Lp, ""), t = e.preserveConsecutiveUppercase ? zp(t, o) : o(t), e.pascalCase && (t = a(t.charAt(0)) + t.slice(1)), Rp(t, a));
80
80
  }
81
- function Op(t) {
81
+ function Bp(t) {
82
82
  return Np(t);
83
83
  }
84
- function Bp(t, e, o, a) {
84
+ function Op(t, e, o, a) {
85
85
  const n = "virtual:import-storyblok-components", s = `\0${n}`;
86
86
  return {
87
87
  name: "vite-plugin-import-storyblok-components",
@@ -182,7 +182,7 @@ async function qp(t, e, o, a) {
182
182
  for await (const [s, r] of Object.entries(e)) {
183
183
  const i = oi(o, r), l = await t.resolve(i);
184
184
  if (l)
185
- n.push(`import ${Op(s)} from "${l.id}"`);
185
+ n.push(`import ${Bp(s)} from "${l.id}"`);
186
186
  else if (!a)
187
187
  throw new Error(
188
188
  `Component could not be found for blok "${s}"! Does "${i}" exist?`
@@ -226,14 +226,14 @@ function pj(t) {
226
226
  if (g({
227
227
  vite: {
228
228
  plugins: [
229
- Ep(o, a, n),
230
- Bp(
229
+ xp(o, a, n),
230
+ Op(
231
231
  l || {},
232
232
  s,
233
233
  i,
234
234
  r
235
235
  ),
236
- Fp(e)
236
+ Ep(e)
237
237
  ]
238
238
  }
239
239
  }), c && (h == null ? void 0 : h.output) !== "server")
@@ -274,7 +274,7 @@ function pj(t) {
274
274
  })), u({
275
275
  id: "storyblok",
276
276
  name: "Storyblok",
277
- icon: xp,
277
+ icon: Fp,
278
278
  entrypoint: "@storyblok/astro/toolbarApp.ts"
279
279
  });
280
280
  }
@@ -322,7 +322,7 @@ async function Vp(t) {
322
322
  function zs(t, e) {
323
323
  document.dispatchEvent(new CustomEvent(t, { detail: e }));
324
324
  }
325
- var Kp = Object.defineProperty, Up = (t, e, o) => e in t ? Kp(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, O = (t, e, o) => Up(t, typeof e != "symbol" ? e + "" : e, o);
325
+ var Kp = Object.defineProperty, Up = (t, e, o) => e in t ? Kp(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, B = (t, e, o) => Up(t, typeof e != "symbol" ? e + "" : e, o);
326
326
  function ae(t) {
327
327
  this.content = t;
328
328
  }
@@ -652,15 +652,15 @@ class v {
652
652
  */
653
653
  findIndex(e) {
654
654
  if (e == 0)
655
- return no(0, e);
655
+ return so(0, e);
656
656
  if (e == this.size)
657
- return no(this.content.length, e);
657
+ return so(this.content.length, e);
658
658
  if (e > this.size || e < 0)
659
659
  throw new RangeError(`Position ${e} outside of fragment (${this})`);
660
660
  for (let o = 0, a = 0; ; o++) {
661
661
  let n = this.child(o), s = a + n.nodeSize;
662
662
  if (s >= e)
663
- return s == e ? no(o + 1, s) : no(o, a);
663
+ return s == e ? so(o + 1, s) : so(o, a);
664
664
  a = s;
665
665
  }
666
666
  }
@@ -726,7 +726,7 @@ class v {
726
726
  }
727
727
  v.empty = new v([], 0);
728
728
  const Ta = { index: 0, offset: 0 };
729
- function no(t, e) {
729
+ function so(t, e) {
730
730
  return Ta.index = t, Ta.offset = e, Ta;
731
731
  }
732
732
  function So(t, e) {
@@ -1025,7 +1025,7 @@ function Gp(t, e) {
1025
1025
  end: a.resolveNoCache(a.content.size - t.openEnd - o)
1026
1026
  };
1027
1027
  }
1028
- class Wt {
1028
+ class Vt {
1029
1029
  /**
1030
1030
  @internal
1031
1031
  */
@@ -1253,7 +1253,7 @@ class Wt {
1253
1253
  break;
1254
1254
  s = p - 1, n += l + 1;
1255
1255
  }
1256
- return new Wt(o, a, s);
1256
+ return new Vt(o, a, s);
1257
1257
  }
1258
1258
  /**
1259
1259
  @internal
@@ -1268,7 +1268,7 @@ class Wt {
1268
1268
  }
1269
1269
  else
1270
1270
  Rs.set(e, a = new Xp());
1271
- let n = a.elts[a.i] = Wt.resolve(e, o);
1271
+ let n = a.elts[a.i] = Vt.resolve(e, o);
1272
1272
  return a.i = (a.i + 1) % Yp, n;
1273
1273
  }
1274
1274
  }
@@ -1523,13 +1523,13 @@ class Ie {
1523
1523
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1524
1524
  */
1525
1525
  resolve(e) {
1526
- return Wt.resolveCached(this, e);
1526
+ return Vt.resolveCached(this, e);
1527
1527
  }
1528
1528
  /**
1529
1529
  @internal
1530
1530
  */
1531
1531
  resolveNoCache(e) {
1532
- return Wt.resolve(this, e);
1532
+ return Vt.resolve(this, e);
1533
1533
  }
1534
1534
  /**
1535
1535
  Test whether a given mark or mark type occurs in this document
@@ -2026,7 +2026,7 @@ function sc(t) {
2026
2026
  function di(t, e) {
2027
2027
  return e - t;
2028
2028
  }
2029
- function Os(t, e) {
2029
+ function Bs(t, e) {
2030
2030
  let o = [];
2031
2031
  return a(e), o.sort(di);
2032
2032
  function a(n) {
@@ -2042,7 +2042,7 @@ function Os(t, e) {
2042
2042
  }
2043
2043
  function rc(t) {
2044
2044
  let e = /* @__PURE__ */ Object.create(null);
2045
- return o(Os(t, 0));
2045
+ return o(Bs(t, 0));
2046
2046
  function o(a) {
2047
2047
  let n = [];
2048
2048
  a.forEach((r) => {
@@ -2052,7 +2052,7 @@ function rc(t) {
2052
2052
  let p;
2053
2053
  for (let c = 0; c < n.length; c++)
2054
2054
  n[c][0] == i && (p = n[c][1]);
2055
- Os(t, l).forEach((c) => {
2055
+ Bs(t, l).forEach((c) => {
2056
2056
  p || n.push([i, p = []]), p.indexOf(c) == -1 && p.push(c);
2057
2057
  });
2058
2058
  });
@@ -2116,7 +2116,7 @@ function hi(t, e) {
2116
2116
  o[a] = new pc(t, a, e[a]);
2117
2117
  return o;
2118
2118
  }
2119
- let Bs = class bi {
2119
+ let Os = class bi {
2120
2120
  /**
2121
2121
  @internal
2122
2122
  */
@@ -2375,7 +2375,7 @@ class cc {
2375
2375
  let o = this.spec = {};
2376
2376
  for (let n in e)
2377
2377
  o[n] = e[n];
2378
- o.nodes = ae.from(e.nodes), o.marks = ae.from(e.marks || {}), this.nodes = Bs.compile(this.spec.nodes, this), this.marks = ka.compile(this.spec.marks, this);
2378
+ o.nodes = ae.from(e.nodes), o.marks = ae.from(e.marks || {}), this.nodes = Os.compile(this.spec.nodes, this), this.marks = ka.compile(this.spec.marks, this);
2379
2379
  let a = /* @__PURE__ */ Object.create(null);
2380
2380
  for (let n in this.nodes) {
2381
2381
  if (n in this.marks)
@@ -2405,7 +2405,7 @@ class cc {
2405
2405
  node(e, o = null, a, n) {
2406
2406
  if (typeof e == "string")
2407
2407
  e = this.nodeType(e);
2408
- else if (e instanceof Bs) {
2408
+ else if (e instanceof Os) {
2409
2409
  if (e.schema != this)
2410
2410
  throw new RangeError("Node type from different schema used (" + e.name + ")");
2411
2411
  } else throw new RangeError("Invalid node type: " + e);
@@ -2612,13 +2612,13 @@ const ji = {
2612
2612
  script: !0,
2613
2613
  style: !0,
2614
2614
  title: !0
2615
- }, vi = { ol: !0, ul: !0 }, Vt = 1, pn = 2, _o = 4;
2615
+ }, vi = { ol: !0, ul: !0 }, Kt = 1, pn = 2, Rt = 4;
2616
2616
  function Ps(t, e, o) {
2617
- return e != null ? (e ? Vt : 0) | (e === "full" ? pn : 0) : t && t.whitespace == "pre" ? Vt | pn : o & -5;
2617
+ return e != null ? (e ? Kt : 0) | (e === "full" ? pn : 0) : t && t.whitespace == "pre" ? Kt | pn : o & ~Rt;
2618
2618
  }
2619
- class so {
2619
+ class ro {
2620
2620
  constructor(e, o, a, n, s, r) {
2621
- this.type = e, this.attrs = o, this.marks = a, this.solid = n, this.options = r, this.content = [], this.activeMarks = W.none, this.match = s || (r & _o ? null : e.contentMatch);
2621
+ this.type = e, this.attrs = o, this.marks = a, this.solid = n, this.options = r, this.content = [], this.activeMarks = W.none, this.match = s || (r & Rt ? null : e.contentMatch);
2622
2622
  }
2623
2623
  findWrapping(e) {
2624
2624
  if (!this.match) {
@@ -2635,7 +2635,7 @@ class so {
2635
2635
  return this.match.findWrapping(e.type);
2636
2636
  }
2637
2637
  finish(e) {
2638
- if (!(this.options & Vt)) {
2638
+ if (!(this.options & Kt)) {
2639
2639
  let a = this.content[this.content.length - 1], n;
2640
2640
  if (a && a.isText && (n = /[ \t\r\n\u000c]+$/.exec(a.text))) {
2641
2641
  let s = a;
@@ -2652,8 +2652,8 @@ class so {
2652
2652
  class qs {
2653
2653
  constructor(e, o, a) {
2654
2654
  this.parser = e, this.options = o, this.isOpen = a, this.open = 0, this.localPreserveWS = !1;
2655
- let n = o.topNode, s, r = Ps(null, o.preserveWhitespace, 0) | (a ? _o : 0);
2656
- n ? s = new so(n.type, n.attrs, W.none, !0, o.topMatch || n.type.contentMatch, r) : a ? s = new so(null, null, W.none, !0, null, r) : s = new so(e.schema.topNodeType, null, W.none, !0, null, r), this.nodes = [s], this.find = o.findPositions, this.needsBlock = !1;
2655
+ let n = o.topNode, s, r = Ps(null, o.preserveWhitespace, 0) | (a ? Rt : 0);
2656
+ n ? s = new ro(n.type, n.attrs, W.none, !0, o.topMatch || n.type.contentMatch, r) : a ? s = new ro(null, null, W.none, !0, null, r) : s = new ro(e.schema.topNodeType, null, W.none, !0, null, r), this.nodes = [s], this.find = o.findPositions, this.needsBlock = !1;
2657
2657
  }
2658
2658
  get top() {
2659
2659
  return this.nodes[this.open];
@@ -2665,7 +2665,7 @@ class qs {
2665
2665
  e.nodeType == 3 ? this.addTextNode(e, o) : e.nodeType == 1 && this.addElement(e, o);
2666
2666
  }
2667
2667
  addTextNode(e, o) {
2668
- let a = e.nodeValue, n = this.top, s = n.options & pn ? "full" : this.localPreserveWS || (n.options & Vt) > 0, { schema: r } = this.parser;
2668
+ let a = e.nodeValue, n = this.top, s = n.options & pn ? "full" : this.localPreserveWS || (n.options & Kt) > 0, { schema: r } = this.parser;
2669
2669
  if (s === "full" || n.inlineContext(e) || /[^ \t\r\n\u000c]/.test(a)) {
2670
2670
  if (s)
2671
2671
  if (s === "full")
@@ -2835,9 +2835,9 @@ class qs {
2835
2835
  let r = this.top;
2836
2836
  r.match = r.match && r.match.matchType(e);
2837
2837
  let i = Ps(e, s, r.options);
2838
- r.options & _o && r.content.length == 0 && (i |= _o);
2838
+ r.options & Rt && r.content.length == 0 && (i |= Rt);
2839
2839
  let l = W.none;
2840
- return a = a.filter((p) => (r.type ? r.type.allowsMarkType(p.type) : Vs(p.type, e)) ? (l = p.addToSet(l), !1) : !0), this.nodes.push(new so(e, o, l, n, null, i)), this.open++, a;
2840
+ return a = a.filter((p) => (r.type ? r.type.allowsMarkType(p.type) : Vs(p.type, e)) ? (l = p.addToSet(l), !1) : !0), this.nodes.push(new ro(e, o, l, n, null, i)), this.open++, a;
2841
2841
  }
2842
2842
  // Make sure all nodes above this.open are finished and added to
2843
2843
  // their parents
@@ -2856,7 +2856,7 @@ class qs {
2856
2856
  for (let o = this.open; o >= 0; o--) {
2857
2857
  if (this.nodes[o] == e)
2858
2858
  return this.open = o, !0;
2859
- this.localPreserveWS && (this.nodes[o].options |= Vt);
2859
+ this.localPreserveWS && (this.nodes[o].options |= Kt);
2860
2860
  }
2861
2861
  return !1;
2862
2862
  }
@@ -3823,7 +3823,7 @@ function Pn(t, e, o, a = o.contentMatch, n = !0) {
3823
3823
  function _c(t, e, o) {
3824
3824
  return (e == 0 || t.canReplace(e, t.childCount)) && (o == t.childCount || t.canReplace(0, o));
3825
3825
  }
3826
- function Et(t) {
3826
+ function xt(t) {
3827
3827
  let e = t.parent.content.cutByIndex(t.startIndex, t.endIndex);
3828
3828
  for (let o = t.depth, a = 0, n = 0; ; --o) {
3829
3829
  let s = t.$from.node(o), r = t.$from.index(o) + a, i = t.$to.indexAfter(o) - n;
@@ -3880,13 +3880,13 @@ function Cc(t, e, o) {
3880
3880
  let n = e.start, s = e.end;
3881
3881
  t.step(new oe(n, s, n, s, new _(a, 0, 0), o.length, !0));
3882
3882
  }
3883
- function xc(t, e, o, a, n) {
3883
+ function Fc(t, e, o, a, n) {
3884
3884
  if (!a.isTextblock)
3885
3885
  throw new RangeError("Type given to setBlockType should be a textblock");
3886
3886
  let s = t.steps.length;
3887
3887
  t.doc.nodesBetween(e, o, (r, i) => {
3888
3888
  let l = typeof n == "function" ? n(r) : n;
3889
- if (r.isTextblock && !r.hasMarkup(a, l) && Ec(t.doc, t.mapping.slice(s).map(i), a)) {
3889
+ if (r.isTextblock && !r.hasMarkup(a, l) && xc(t.doc, t.mapping.slice(s).map(i), a)) {
3890
3890
  let p = null;
3891
3891
  if (a.schema.linebreakReplacement) {
3892
3892
  let g = a.whitespace == "pre", u = !!a.contentMatch.matchType(a.schema.linebreakReplacement);
@@ -3918,11 +3918,11 @@ function Ci(t, e, o, a) {
3918
3918
  }
3919
3919
  });
3920
3920
  }
3921
- function Ec(t, e, o) {
3921
+ function xc(t, e, o) {
3922
3922
  let a = t.resolve(e), n = a.index();
3923
3923
  return a.parent.canReplaceWith(n, n + 1, o);
3924
3924
  }
3925
- function Fc(t, e, o, a, n) {
3925
+ function Ec(t, e, o, a, n) {
3926
3926
  let s = t.doc.nodeAt(e);
3927
3927
  if (!s)
3928
3928
  throw new RangeError("No node at given position");
@@ -3962,7 +3962,7 @@ function Ac(t, e, o = 1, a) {
3962
3962
  }
3963
3963
  function Ge(t, e) {
3964
3964
  let o = t.resolve(e), a = o.index();
3965
- return xi(o.nodeBefore, o.nodeAfter) && o.parent.canReplace(a, a + 1);
3965
+ return Fi(o.nodeBefore, o.nodeAfter) && o.parent.canReplace(a, a + 1);
3966
3966
  }
3967
3967
  function Sc(t, e) {
3968
3968
  e.content.size || t.type.compatibleContent(e.type);
@@ -3974,14 +3974,14 @@ function Sc(t, e) {
3974
3974
  }
3975
3975
  return o.validEnd;
3976
3976
  }
3977
- function xi(t, e) {
3977
+ function Fi(t, e) {
3978
3978
  return !!(t && e && !t.isLeaf && Sc(t, e));
3979
3979
  }
3980
3980
  function _a(t, e, o = -1) {
3981
3981
  let a = t.resolve(e);
3982
3982
  for (let n = a.depth; ; n--) {
3983
3983
  let s, r, i = a.index(n);
3984
- if (n == a.depth ? (s = a.nodeBefore, r = a.nodeAfter) : o > 0 ? (s = a.node(n + 1), i++, r = a.node(n).maybeChild(i)) : (s = a.node(n).maybeChild(i - 1), r = a.node(n + 1)), s && !s.isTextblock && xi(s, r) && a.node(n).canReplace(i, i + 1))
3984
+ if (n == a.depth ? (s = a.nodeBefore, r = a.nodeAfter) : o > 0 ? (s = a.node(n + 1), i++, r = a.node(n).maybeChild(i)) : (s = a.node(n).maybeChild(i - 1), r = a.node(n + 1)), s && !s.isTextblock && Fi(s, r) && a.node(n).canReplace(i, i + 1))
3985
3985
  return e;
3986
3986
  if (n == 0)
3987
3987
  break;
@@ -4054,9 +4054,9 @@ function wa(t, e, o = e, a = _.empty) {
4054
4054
  if (e == o && !a.size)
4055
4055
  return null;
4056
4056
  let n = t.resolve(e), s = t.resolve(o);
4057
- return Ei(n, s, a) ? new te(e, o, a) : new $c(n, s, a).fit();
4057
+ return xi(n, s, a) ? new te(e, o, a) : new $c(n, s, a).fit();
4058
4058
  }
4059
- function Ei(t, e, o) {
4059
+ function xi(t, e, o) {
4060
4060
  return !o.openStart && !o.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), o.content);
4061
4061
  }
4062
4062
  class $c {
@@ -4150,7 +4150,7 @@ class $c {
4150
4150
  let f = i.child(p), h = m.matchType(f.type);
4151
4151
  if (!h)
4152
4152
  break;
4153
- p++, (p > 1 || l == 0 || f.content.size) && (m = h, c.push(Fi(f.mark(d.allowedMarks(f.marks)), p == 1 ? l : 0, p == i.childCount ? g : -1)));
4153
+ p++, (p > 1 || l == 0 || f.content.size) && (m = h, c.push(Ei(f.mark(d.allowedMarks(f.marks)), p == 1 ? l : 0, p == i.childCount ? g : -1)));
4154
4154
  }
4155
4155
  let u = p == i.childCount;
4156
4156
  u || (g = -1), this.placed = Tt(this.placed, o, v.from(c)), this.frontier[o].match = m, u && g < 0 && a && a.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
@@ -4217,11 +4217,11 @@ function za(t, e) {
4217
4217
  t = t.firstChild.content;
4218
4218
  return t;
4219
4219
  }
4220
- function Fi(t, e, o) {
4220
+ function Ei(t, e, o) {
4221
4221
  if (e <= 0)
4222
4222
  return t;
4223
4223
  let a = t.content;
4224
- return e > 1 && (a = a.replaceChild(0, Fi(a.firstChild, e - 1, a.childCount == 1 ? o - 1 : 0))), e > 0 && (a = t.type.contentMatch.fillBefore(a).append(a), o <= 0 && (a = a.append(t.type.contentMatch.matchFragment(a).fillBefore(v.empty, !0)))), t.copy(a);
4224
+ return e > 1 && (a = a.replaceChild(0, Ei(a.firstChild, e - 1, a.childCount == 1 ? o - 1 : 0))), e > 0 && (a = t.type.contentMatch.fillBefore(a).append(a), o <= 0 && (a = a.append(t.type.contentMatch.matchFragment(a).fillBefore(v.empty, !0)))), t.copy(a);
4225
4225
  }
4226
4226
  function Ra(t, e, o, a, n) {
4227
4227
  let s = t.node(e), r = n ? t.indexAfter(e) : t.index(e);
@@ -4243,7 +4243,7 @@ function Nc(t, e, o, a) {
4243
4243
  if (!a.size)
4244
4244
  return t.deleteRange(e, o);
4245
4245
  let n = t.doc.resolve(e), s = t.doc.resolve(o);
4246
- if (Ei(n, s, a))
4246
+ if (xi(n, s, a))
4247
4247
  return t.step(new te(e, o, a));
4248
4248
  let r = Si(n, s);
4249
4249
  r[r.length - 1] == 0 && r.pop();
@@ -4297,14 +4297,14 @@ function Ai(t, e, o, a, n) {
4297
4297
  }
4298
4298
  return t;
4299
4299
  }
4300
- function Oc(t, e, o, a) {
4300
+ function Bc(t, e, o, a) {
4301
4301
  if (!a.isInline && e == o && t.doc.resolve(e).parent.content.size) {
4302
4302
  let n = Tc(t.doc, e, a.type);
4303
4303
  n != null && (e = o = n);
4304
4304
  }
4305
4305
  t.replaceRange(e, o, new _(v.from(a), 0, 0));
4306
4306
  }
4307
- function Bc(t, e, o) {
4307
+ function Oc(t, e, o) {
4308
4308
  let a = t.doc.resolve(e), n = t.doc.resolve(o), s = Si(a, n);
4309
4309
  for (let r = 0; r < s.length; r++) {
4310
4310
  let i = s[r], l = r == s.length - 1;
@@ -4366,7 +4366,7 @@ class _t extends ie {
4366
4366
  }
4367
4367
  }
4368
4368
  ie.jsonID("attr", _t);
4369
- class Kt extends ie {
4369
+ class Ut extends ie {
4370
4370
  /**
4371
4371
  Construct an attribute step.
4372
4372
  */
@@ -4385,7 +4385,7 @@ class Kt extends ie {
4385
4385
  return de.empty;
4386
4386
  }
4387
4387
  invert(e) {
4388
- return new Kt(this.attr, e.attrs[this.attr]);
4388
+ return new Ut(this.attr, e.attrs[this.attr]);
4389
4389
  }
4390
4390
  map(e) {
4391
4391
  return this;
@@ -4396,10 +4396,10 @@ class Kt extends ie {
4396
4396
  static fromJSON(e, o) {
4397
4397
  if (typeof o.attr != "string")
4398
4398
  throw new RangeError("Invalid input for DocAttrStep.fromJSON");
4399
- return new Kt(o.attr, o.value);
4399
+ return new Ut(o.attr, o.value);
4400
4400
  }
4401
4401
  }
4402
- ie.jsonID("docAttr", Kt);
4402
+ ie.jsonID("docAttr", Ut);
4403
4403
  let Dt = class extends Error {
4404
4404
  };
4405
4405
  Dt = function t(e) {
@@ -4528,14 +4528,14 @@ class Mi {
4528
4528
  that parent node.
4529
4529
  */
4530
4530
  replaceRangeWith(e, o, a) {
4531
- return Oc(this, e, o, a), this;
4531
+ return Bc(this, e, o, a), this;
4532
4532
  }
4533
4533
  /**
4534
4534
  Delete the given range, expanding it to cover fully covered
4535
4535
  parent nodes until a valid replace is found.
4536
4536
  */
4537
4537
  deleteRange(e, o) {
4538
- return Bc(this, e, o), this;
4538
+ return Oc(this, e, o), this;
4539
4539
  }
4540
4540
  /**
4541
4541
  Split the content in the given range off from its parent, if there
@@ -4567,14 +4567,14 @@ class Mi {
4567
4567
  the given node type with the given attributes.
4568
4568
  */
4569
4569
  setBlockType(e, o = e, a, n = null) {
4570
- return xc(this, e, o, a, n), this;
4570
+ return Fc(this, e, o, a, n), this;
4571
4571
  }
4572
4572
  /**
4573
4573
  Change the type, attributes, and/or marks of the node at `pos`.
4574
4574
  When `type` isn't given, the existing node type is preserved,
4575
4575
  */
4576
4576
  setNodeMarkup(e, o, a = null, n) {
4577
- return Fc(this, e, o, a, n), this;
4577
+ return Ec(this, e, o, a, n), this;
4578
4578
  }
4579
4579
  /**
4580
4580
  Set a single attribute on a given node to a new value.
@@ -4588,7 +4588,7 @@ class Mi {
4588
4588
  Set a single attribute on the document to a new value.
4589
4589
  */
4590
4590
  setDocAttribute(e, o) {
4591
- return this.step(new Kt(e, o)), this;
4591
+ return this.step(new Ut(e, o)), this;
4592
4592
  }
4593
4593
  /**
4594
4594
  Add a mark to the node at position `pos`.
@@ -4745,7 +4745,7 @@ class A {
4745
4745
  found.
4746
4746
  */
4747
4747
  static findFrom(e, o, a = !1) {
4748
- let n = e.parent.inlineContent ? new E(e) : vt(e.node(0), e.parent, e.pos, e.index(), o, a);
4748
+ let n = e.parent.inlineContent ? new x(e) : vt(e.node(0), e.parent, e.pos, e.index(), o, a);
4749
4749
  if (n)
4750
4750
  return n;
4751
4751
  for (let s = e.depth - 1; s >= 0; s--) {
@@ -4812,7 +4812,7 @@ class A {
4812
4812
  returns the bookmark for that.
4813
4813
  */
4814
4814
  getBookmark() {
4815
- return E.between(this.$anchor, this.$head).getBookmark();
4815
+ return x.between(this.$anchor, this.$head).getBookmark();
4816
4816
  }
4817
4817
  }
4818
4818
  A.prototype.visible = !0;
@@ -4828,7 +4828,7 @@ let Xs = !1;
4828
4828
  function Ys(t) {
4829
4829
  !Xs && !t.parent.inlineContent && (Xs = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
4830
4830
  }
4831
- class E extends A {
4831
+ class x extends A {
4832
4832
  /**
4833
4833
  Construct a text selection between the given points.
4834
4834
  */
@@ -4847,7 +4847,7 @@ class E extends A {
4847
4847
  if (!a.parent.inlineContent)
4848
4848
  return A.near(a);
4849
4849
  let n = e.resolve(o.map(this.anchor));
4850
- return new E(n.parent.inlineContent ? n : a, a);
4850
+ return new x(n.parent.inlineContent ? n : a, a);
4851
4851
  }
4852
4852
  replace(e, o = _.empty) {
4853
4853
  if (super.replace(e, o), o == _.empty) {
@@ -4856,7 +4856,7 @@ class E extends A {
4856
4856
  }
4857
4857
  }
4858
4858
  eq(e) {
4859
- return e instanceof E && e.anchor == this.anchor && e.head == this.head;
4859
+ return e instanceof x && e.anchor == this.anchor && e.head == this.head;
4860
4860
  }
4861
4861
  getBookmark() {
4862
4862
  return new Da(this.anchor, this.head);
@@ -4870,7 +4870,7 @@ class E extends A {
4870
4870
  static fromJSON(e, o) {
4871
4871
  if (typeof o.anchor != "number" || typeof o.head != "number")
4872
4872
  throw new RangeError("Invalid input for TextSelection.fromJSON");
4873
- return new E(e.resolve(o.anchor), e.resolve(o.head));
4873
+ return new x(e.resolve(o.anchor), e.resolve(o.head));
4874
4874
  }
4875
4875
  /**
4876
4876
  Create a text selection from non-resolved positions.
@@ -4896,10 +4896,10 @@ class E extends A {
4896
4896
  else
4897
4897
  return A.near(o, a);
4898
4898
  }
4899
- return e.parent.inlineContent || (n == 0 ? e = o : (e = (A.findFrom(e, -a, !0) || A.findFrom(e, a, !0)).$anchor, e.pos < o.pos != n < 0 && (e = o))), new E(e, o);
4899
+ return e.parent.inlineContent || (n == 0 ? e = o : (e = (A.findFrom(e, -a, !0) || A.findFrom(e, a, !0)).$anchor, e.pos < o.pos != n < 0 && (e = o))), new x(e, o);
4900
4900
  }
4901
4901
  }
4902
- A.jsonID("text", E);
4902
+ A.jsonID("text", x);
4903
4903
  class Da {
4904
4904
  constructor(e, o) {
4905
4905
  this.anchor = e, this.head = o;
@@ -4908,10 +4908,10 @@ class Da {
4908
4908
  return new Da(e.map(this.anchor), e.map(this.head));
4909
4909
  }
4910
4910
  resolve(e) {
4911
- return E.between(e.resolve(this.anchor), e.resolve(this.head));
4911
+ return x.between(e.resolve(this.anchor), e.resolve(this.head));
4912
4912
  }
4913
4913
  }
4914
- class x extends A {
4914
+ class F extends A {
4915
4915
  /**
4916
4916
  Create a node selection. Does not verify the validity of its
4917
4917
  argument.
@@ -4922,13 +4922,13 @@ class x extends A {
4922
4922
  }
4923
4923
  map(e, o) {
4924
4924
  let { deleted: a, pos: n } = o.mapResult(this.anchor), s = e.resolve(n);
4925
- return a ? A.near(s) : new x(s);
4925
+ return a ? A.near(s) : new F(s);
4926
4926
  }
4927
4927
  content() {
4928
4928
  return new _(v.from(this.node), 0, 0);
4929
4929
  }
4930
4930
  eq(e) {
4931
- return e instanceof x && e.anchor == this.anchor;
4931
+ return e instanceof F && e.anchor == this.anchor;
4932
4932
  }
4933
4933
  toJSON() {
4934
4934
  return { type: "node", anchor: this.anchor };
@@ -4942,13 +4942,13 @@ class x extends A {
4942
4942
  static fromJSON(e, o) {
4943
4943
  if (typeof o.anchor != "number")
4944
4944
  throw new RangeError("Invalid input for NodeSelection.fromJSON");
4945
- return new x(e.resolve(o.anchor));
4945
+ return new F(e.resolve(o.anchor));
4946
4946
  }
4947
4947
  /**
4948
4948
  Create a node selection from non-resolved positions.
4949
4949
  */
4950
4950
  static create(e, o) {
4951
- return new x(e.resolve(o));
4951
+ return new F(e.resolve(o));
4952
4952
  }
4953
4953
  /**
4954
4954
  Determines whether the given node may be selected as a node
@@ -4958,8 +4958,8 @@ class x extends A {
4958
4958
  return !e.isText && e.type.spec.selectable !== !1;
4959
4959
  }
4960
4960
  }
4961
- x.prototype.visible = !1;
4962
- A.jsonID("node", x);
4961
+ F.prototype.visible = !1;
4962
+ A.jsonID("node", F);
4963
4963
  class Wn {
4964
4964
  constructor(e) {
4965
4965
  this.anchor = e;
@@ -4970,7 +4970,7 @@ class Wn {
4970
4970
  }
4971
4971
  resolve(e) {
4972
4972
  let o = e.resolve(this.anchor), a = o.nodeAfter;
4973
- return a && x.isSelectable(a) ? new x(o) : A.near(o);
4973
+ return a && F.isSelectable(a) ? new F(o) : A.near(o);
4974
4974
  }
4975
4975
  }
4976
4976
  class fe extends A {
@@ -5018,12 +5018,12 @@ const Hc = {
5018
5018
  };
5019
5019
  function vt(t, e, o, a, n, s = !1) {
5020
5020
  if (e.inlineContent)
5021
- return E.create(t, o);
5021
+ return x.create(t, o);
5022
5022
  for (let r = a - (n > 0 ? 0 : 1); n > 0 ? r < e.childCount : r >= 0; r += n) {
5023
5023
  let i = e.child(r);
5024
5024
  if (i.isAtom) {
5025
- if (!s && x.isSelectable(i))
5026
- return x.create(t, o - (n < 0 ? i.nodeSize : 0));
5025
+ if (!s && F.isSelectable(i))
5026
+ return F.create(t, o - (n < 0 ? i.nodeSize : 0));
5027
5027
  } else {
5028
5028
  let l = vt(t, i, o + n, n < 0 ? i.childCount : 0, n, s);
5029
5029
  if (l)
@@ -5048,33 +5048,33 @@ function Zs(t, e, o) {
5048
5048
  function Qs(t, e) {
5049
5049
  return !e || !t ? t : t.bind(e);
5050
5050
  }
5051
- class ro {
5051
+ class io {
5052
5052
  constructor(e, o, a) {
5053
5053
  this.name = e, this.init = Qs(o.init, a), this.apply = Qs(o.apply, a);
5054
5054
  }
5055
5055
  }
5056
- new ro("doc", {
5056
+ new io("doc", {
5057
5057
  init(t) {
5058
5058
  return t.doc || t.schema.topNodeType.createAndFill();
5059
5059
  },
5060
5060
  apply(t) {
5061
5061
  return t.doc;
5062
5062
  }
5063
- }), new ro("selection", {
5063
+ }), new io("selection", {
5064
5064
  init(t, e) {
5065
5065
  return t.selection || A.atStart(e.doc);
5066
5066
  },
5067
5067
  apply(t) {
5068
5068
  return t.selection;
5069
5069
  }
5070
- }), new ro("storedMarks", {
5070
+ }), new io("storedMarks", {
5071
5071
  init(t) {
5072
5072
  return t.storedMarks || null;
5073
5073
  },
5074
5074
  apply(t, e, o, a) {
5075
5075
  return a.selection.$cursor ? t.storedMarks : null;
5076
5076
  }
5077
- }), new ro("scrollToSelection", {
5077
+ }), new io("scrollToSelection", {
5078
5078
  init() {
5079
5079
  return 0;
5080
5080
  },
@@ -5103,9 +5103,9 @@ class se {
5103
5103
  return e[this.key];
5104
5104
  }
5105
5105
  }
5106
- const Oa = /* @__PURE__ */ Object.create(null);
5106
+ const Ba = /* @__PURE__ */ Object.create(null);
5107
5107
  function $i(t) {
5108
- return t in Oa ? t + "$" + ++Oa[t] : (Oa[t] = 0, t + "$");
5108
+ return t in Ba ? t + "$" + ++Ba[t] : (Ba[t] = 0, t + "$");
5109
5109
  }
5110
5110
  class Z {
5111
5111
  /**
@@ -5139,19 +5139,19 @@ const Ri = (t, e, o) => {
5139
5139
  return !1;
5140
5140
  let n = Kn(a);
5141
5141
  if (!n) {
5142
- let r = a.blockRange(), i = r && Et(r);
5142
+ let r = a.blockRange(), i = r && xt(r);
5143
5143
  return i == null ? !1 : (e && e(t.tr.lift(r, i).scrollIntoView()), !0);
5144
5144
  }
5145
5145
  let s = n.nodeBefore;
5146
5146
  if (Ki(t, n, e, -1))
5147
5147
  return !0;
5148
- if (a.parent.content.size == 0 && (It(s, "end") || x.isSelectable(s)))
5148
+ if (a.parent.content.size == 0 && (It(s, "end") || F.isSelectable(s)))
5149
5149
  for (let r = a.depth; ; r--) {
5150
5150
  let i = wa(t.doc, a.before(r), a.after(r), _.empty);
5151
5151
  if (i && i.slice.size < i.to - i.from) {
5152
5152
  if (e) {
5153
5153
  let l = t.tr.step(i);
5154
- l.setSelection(It(s, "end") ? A.findFrom(l.doc.resolve(l.mapping.map(n.pos, -1)), -1) : x.create(l.doc, n.pos - s.nodeSize)), e(l.scrollIntoView());
5154
+ l.setSelection(It(s, "end") ? A.findFrom(l.doc.resolve(l.mapping.map(n.pos, -1)), -1) : F.create(l.doc, n.pos - s.nodeSize)), e(l.scrollIntoView());
5155
5155
  }
5156
5156
  return !0;
5157
5157
  }
@@ -5166,7 +5166,7 @@ const Ri = (t, e, o) => {
5166
5166
  let n = Kn(a);
5167
5167
  return n ? Ni(t, n, e) : !1;
5168
5168
  }, qc = (t, e, o) => {
5169
- let a = Bi(t, o);
5169
+ let a = Oi(t, o);
5170
5170
  if (!a)
5171
5171
  return !1;
5172
5172
  let n = Un(a);
@@ -5196,7 +5196,7 @@ function Ni(t, e, o) {
5196
5196
  return !1;
5197
5197
  if (o) {
5198
5198
  let c = t.tr.step(p);
5199
- c.setSelection(E.create(c.doc, s)), o(c.scrollIntoView());
5199
+ c.setSelection(x.create(c.doc, s)), o(c.scrollIntoView());
5200
5200
  }
5201
5201
  return !0;
5202
5202
  }
@@ -5209,7 +5209,7 @@ function It(t, e, o = !1) {
5209
5209
  }
5210
5210
  return !1;
5211
5211
  }
5212
- const Oi = (t, e, o) => {
5212
+ const Bi = (t, e, o) => {
5213
5213
  let { $head: a, empty: n } = t.selection, s = a;
5214
5214
  if (!n)
5215
5215
  return !1;
@@ -5219,7 +5219,7 @@ const Oi = (t, e, o) => {
5219
5219
  s = Kn(a);
5220
5220
  }
5221
5221
  let r = s && s.nodeBefore;
5222
- return !r || !x.isSelectable(r) ? !1 : (e && e(t.tr.setSelection(x.create(t.doc, s.pos - r.nodeSize)).scrollIntoView()), !0);
5222
+ return !r || !F.isSelectable(r) ? !1 : (e && e(t.tr.setSelection(F.create(t.doc, s.pos - r.nodeSize)).scrollIntoView()), !0);
5223
5223
  };
5224
5224
  function Kn(t) {
5225
5225
  if (!t.parent.type.spec.isolating)
@@ -5231,12 +5231,12 @@ function Kn(t) {
5231
5231
  }
5232
5232
  return null;
5233
5233
  }
5234
- function Bi(t, e) {
5234
+ function Oi(t, e) {
5235
5235
  let { $cursor: o } = t.selection;
5236
5236
  return !o || (e ? !e.endOfTextblock("forward", t) : o.parentOffset < o.parent.content.size) ? null : o;
5237
5237
  }
5238
5238
  const Hi = (t, e, o) => {
5239
- let a = Bi(t, o);
5239
+ let a = Oi(t, o);
5240
5240
  if (!a)
5241
5241
  return !1;
5242
5242
  let n = Un(a);
@@ -5245,12 +5245,12 @@ const Hi = (t, e, o) => {
5245
5245
  let s = n.nodeAfter;
5246
5246
  if (Ki(t, n, e, 1))
5247
5247
  return !0;
5248
- if (a.parent.content.size == 0 && (It(s, "start") || x.isSelectable(s))) {
5248
+ if (a.parent.content.size == 0 && (It(s, "start") || F.isSelectable(s))) {
5249
5249
  let r = wa(t.doc, a.before(), a.after(), _.empty);
5250
5250
  if (r && r.slice.size < r.to - r.from) {
5251
5251
  if (e) {
5252
5252
  let i = t.tr.step(r);
5253
- i.setSelection(It(s, "start") ? A.findFrom(i.doc.resolve(i.mapping.map(n.pos)), 1) : x.create(i.doc, i.mapping.map(n.pos))), e(i.scrollIntoView());
5253
+ i.setSelection(It(s, "start") ? A.findFrom(i.doc.resolve(i.mapping.map(n.pos)), 1) : F.create(i.doc, i.mapping.map(n.pos))), e(i.scrollIntoView());
5254
5254
  }
5255
5255
  return !0;
5256
5256
  }
@@ -5266,7 +5266,7 @@ const Hi = (t, e, o) => {
5266
5266
  s = Un(a);
5267
5267
  }
5268
5268
  let r = s && s.nodeAfter;
5269
- return !r || !x.isSelectable(r) ? !1 : (e && e(t.tr.setSelection(x.create(t.doc, s.pos)).scrollIntoView()), !0);
5269
+ return !r || !F.isSelectable(r) ? !1 : (e && e(t.tr.setSelection(F.create(t.doc, s.pos)).scrollIntoView()), !0);
5270
5270
  };
5271
5271
  function Un(t) {
5272
5272
  if (!t.parent.type.spec.isolating)
@@ -5280,7 +5280,7 @@ function Un(t) {
5280
5280
  return null;
5281
5281
  }
5282
5282
  const Wc = (t, e) => {
5283
- let o = t.selection, a = o instanceof x, n;
5283
+ let o = t.selection, a = o instanceof F, n;
5284
5284
  if (a) {
5285
5285
  if (o.node.isTextblock || !Ge(t.doc, o.from))
5286
5286
  return !1;
@@ -5289,12 +5289,12 @@ const Wc = (t, e) => {
5289
5289
  return !1;
5290
5290
  if (e) {
5291
5291
  let s = t.tr.join(n);
5292
- a && s.setSelection(x.create(s.doc, n - t.doc.resolve(n).nodeBefore.nodeSize)), e(s.scrollIntoView());
5292
+ a && s.setSelection(F.create(s.doc, n - t.doc.resolve(n).nodeBefore.nodeSize)), e(s.scrollIntoView());
5293
5293
  }
5294
5294
  return !0;
5295
5295
  }, Vc = (t, e) => {
5296
5296
  let o = t.selection, a;
5297
- if (o instanceof x) {
5297
+ if (o instanceof F) {
5298
5298
  if (o.node.isTextblock || !Ge(t.doc, o.to))
5299
5299
  return !1;
5300
5300
  a = o.to;
@@ -5302,7 +5302,7 @@ const Wc = (t, e) => {
5302
5302
  return !1;
5303
5303
  return e && e(t.tr.join(a).scrollIntoView()), !0;
5304
5304
  }, Kc = (t, e) => {
5305
- let { $from: o, $to: a } = t.selection, n = o.blockRange(a), s = n && Et(n);
5305
+ let { $from: o, $to: a } = t.selection, n = o.blockRange(a), s = n && xt(n);
5306
5306
  return s == null ? !1 : (e && e(t.tr.lift(n, s).scrollIntoView()), !0);
5307
5307
  }, qi = (t, e) => {
5308
5308
  let { $head: o, $anchor: a } = t.selection;
@@ -5338,7 +5338,7 @@ const Uc = (t, e) => {
5338
5338
  return !1;
5339
5339
  if (e) {
5340
5340
  let r = (!a.parentOffset && n.index() < n.parent.childCount ? a : n).pos, i = t.tr.insert(r, s.createAndFill());
5341
- i.setSelection(E.create(i.doc, r + 1)), e(i.scrollIntoView());
5341
+ i.setSelection(x.create(i.doc, r + 1)), e(i.scrollIntoView());
5342
5342
  }
5343
5343
  return !0;
5344
5344
  }, Vi = (t, e) => {
@@ -5350,13 +5350,13 @@ const Uc = (t, e) => {
5350
5350
  if (Me(t.doc, s))
5351
5351
  return e && e(t.tr.split(s).scrollIntoView()), !0;
5352
5352
  }
5353
- let a = o.blockRange(), n = a && Et(a);
5353
+ let a = o.blockRange(), n = a && xt(a);
5354
5354
  return n == null ? !1 : (e && e(t.tr.lift(a, n).scrollIntoView()), !0);
5355
5355
  };
5356
5356
  function Jc(t) {
5357
5357
  return (e, o) => {
5358
5358
  let { $from: a, $to: n } = e.selection;
5359
- if (e.selection instanceof x && e.selection.node.isBlock)
5359
+ if (e.selection instanceof F && e.selection.node.isBlock)
5360
5360
  return !a.parentOffset || !Me(e.doc, a.pos) ? !1 : (o && o(e.tr.split(a.pos).scrollIntoView()), !0);
5361
5361
  if (!a.depth)
5362
5362
  return !1;
@@ -5371,7 +5371,7 @@ function Jc(t) {
5371
5371
  s.unshift(null);
5372
5372
  }
5373
5373
  let c = e.tr;
5374
- (e.selection instanceof E || e.selection instanceof fe) && c.deleteSelection();
5374
+ (e.selection instanceof x || e.selection instanceof fe) && c.deleteSelection();
5375
5375
  let m = c.mapping.map(a.pos), d = Me(c.doc, m, s.length, s);
5376
5376
  if (d || (s[0] = i ? { type: i } : null, d = Me(c.doc, m, s.length, s)), !d)
5377
5377
  return !1;
@@ -5384,7 +5384,7 @@ function Jc(t) {
5384
5384
  }
5385
5385
  const Gc = Jc(), Xc = (t, e) => {
5386
5386
  let { $from: o, to: a } = t.selection, n, s = o.sharedDepth(a);
5387
- return s == 0 ? !1 : (n = o.before(s), e && e(t.tr.setSelection(x.create(t.doc, n))), !0);
5387
+ return s == 0 ? !1 : (n = o.before(s), e && e(t.tr.setSelection(F.create(t.doc, n))), !0);
5388
5388
  };
5389
5389
  function Yc(t, e, o) {
5390
5390
  let a = e.nodeBefore, n = e.nodeAfter, s = e.index();
@@ -5406,7 +5406,7 @@ function Ki(t, e, o, a) {
5406
5406
  }
5407
5407
  return !0;
5408
5408
  }
5409
- let c = s.type.spec.isolating || a > 0 && l ? null : A.findFrom(e, 1), m = c && c.$from.blockRange(c.$to), d = m && Et(m);
5409
+ let c = s.type.spec.isolating || a > 0 && l ? null : A.findFrom(e, 1), m = c && c.$from.blockRange(c.$to), d = m && xt(m);
5410
5410
  if (d != null && d >= e.depth)
5411
5411
  return o && o(t.tr.lift(m, d).scrollIntoView()), !0;
5412
5412
  if (p && It(s, "start", !0) && It(n, "end")) {
@@ -5437,7 +5437,7 @@ function Ui(t) {
5437
5437
  return !1;
5438
5438
  s--;
5439
5439
  }
5440
- return n.node(s).isTextblock ? (o && o(e.tr.setSelection(E.create(e.doc, t < 0 ? n.start(s) : n.end(s)))), !0) : !1;
5440
+ return n.node(s).isTextblock ? (o && o(e.tr.setSelection(x.create(e.doc, t < 0 ? n.start(s) : n.end(s)))), !0) : !1;
5441
5441
  };
5442
5442
  }
5443
5443
  const Zc = Ui(-1), Qc = Ui(1);
@@ -5485,7 +5485,7 @@ function Gn(...t) {
5485
5485
  return !1;
5486
5486
  };
5487
5487
  }
5488
- Gn(Vn, Ri, Oi);
5488
+ Gn(Vn, Ri, Bi);
5489
5489
  Gn(Vn, Hi, Pi);
5490
5490
  Gn(qi, Wi, Vi, Gc);
5491
5491
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
@@ -5531,7 +5531,7 @@ function nm(t) {
5531
5531
  function sm(t, e, o, a) {
5532
5532
  let n = t.tr, s = a.end, r = a.$to.end(a.depth);
5533
5533
  s < r && (n.step(new oe(s - 1, r, s, r, new _(v.from(o.create(null, a.parent.copy())), 1, 0), 1, !0)), a = new Lo(n.doc.resolve(a.$from.pos), n.doc.resolve(r), a.depth));
5534
- const i = Et(a);
5534
+ const i = xt(a);
5535
5535
  if (i == null)
5536
5536
  return !1;
5537
5537
  n.lift(a, i);
@@ -5624,9 +5624,9 @@ function Xi(t, e) {
5624
5624
  let o = document.createEvent("Event");
5625
5625
  return o.initEvent("keydown", !0, !0), o.keyCode = t, o.key = o.code = e, o;
5626
5626
  }
5627
- const Ce = typeof navigator < "u" ? navigator : null, or = typeof document < "u" ? document : null, Xe = Ce && Ce.userAgent || "", dn = /Edge\/(\d+)/.exec(Xe), Yi = /MSIE \d/.exec(Xe), gn = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xe), Qt = !!(Yi || gn || dn), Zi = Yi ? document.documentMode : gn ? +gn[1] : dn ? +dn[1] : 0, Ia = !Qt && /gecko\/(\d+)/i.test(Xe);
5627
+ const Ce = typeof navigator < "u" ? navigator : null, or = typeof document < "u" ? document : null, Xe = Ce && Ce.userAgent || "", dn = /Edge\/(\d+)/.exec(Xe), Yi = /MSIE \d/.exec(Xe), gn = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xe), eo = !!(Yi || gn || dn), Zi = Yi ? document.documentMode : gn ? +gn[1] : dn ? +dn[1] : 0, Ia = !eo && /gecko\/(\d+)/i.test(Xe);
5628
5628
  Ia && +(/Firefox\/(\d+)/.exec(Xe) || [0, 0])[1];
5629
- const un = !Qt && /Chrome\/(\d+)/.exec(Xe), Le = !!un, Qi = un ? +un[1] : 0, gt = !Qt && !!Ce && /Apple Computer/.test(Ce.vendor), Yn = gt && (/Mobile\/\w+/.test(Xe) || !!Ce && Ce.maxTouchPoints > 2), ve = Yn || (Ce ? /Mac/.test(Ce.platform) : !1), el = Ce ? /Win/.test(Ce.platform) : !1, eo = /Android \d/.test(Xe), Zn = !!or && "webkitFontSmoothing" in or.documentElement.style, cm = Zn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5629
+ const un = !eo && /Chrome\/(\d+)/.exec(Xe), Le = !!un, Qi = un ? +un[1] : 0, gt = !eo && !!Ce && /Apple Computer/.test(Ce.vendor), Yn = gt && (/Mobile\/\w+/.test(Xe) || !!Ce && Ce.maxTouchPoints > 2), ve = Yn || (Ce ? /Mac/.test(Ce.platform) : !1), el = Ce ? /Win/.test(Ce.platform) : !1, to = /Android \d/.test(Xe), Zn = !!or && "webkitFontSmoothing" in or.documentElement.style, cm = Zn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5630
5630
  function mm(t, e = null) {
5631
5631
  let o = t.domSelectionRange(), a = t.state.doc;
5632
5632
  if (!o.focusNode)
@@ -5639,9 +5639,9 @@ function mm(t, e = null) {
5639
5639
  for (l = r; n && !n.node; )
5640
5640
  n = n.parent;
5641
5641
  let m = n.node;
5642
- if (n && m.isAtom && x.isSelectable(m) && n.parent && !(m.isInline && pm(o.focusNode, o.focusOffset, n.dom))) {
5642
+ if (n && m.isAtom && F.isSelectable(m) && n.parent && !(m.isInline && pm(o.focusNode, o.focusOffset, n.dom))) {
5643
5643
  let d = n.posBefore;
5644
- p = new x(r == d ? i : a.resolve(d));
5644
+ p = new F(r == d ? i : a.resolve(d));
5645
5645
  }
5646
5646
  } else {
5647
5647
  if (o instanceof t.dom.ownerDocument.defaultView.Selection && o.rangeCount > 1) {
@@ -5682,7 +5682,7 @@ function Qn(t, e = !1) {
5682
5682
  gm(t);
5683
5683
  else {
5684
5684
  let { anchor: a, head: n } = o, s, r;
5685
- ar && !(o instanceof E) && (o.$from.parent.inlineContent || (s = nr(t, o.from)), !o.empty && !o.$from.parent.inlineContent && (r = nr(t, o.to))), t.docView.setSelection(a, n, t, e), ar && (s && sr(s), r && sr(r)), o.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && dm(t));
5685
+ ar && !(o instanceof x) && (o.$from.parent.inlineContent || (s = nr(t, o.from)), !o.empty && !o.$from.parent.inlineContent && (r = nr(t, o.to))), t.docView.setSelection(a, n, t, e), ar && (s && sr(s), r && sr(r)), o.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && dm(t));
5686
5686
  }
5687
5687
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
5688
5688
  }
@@ -5691,15 +5691,15 @@ const ar = gt || Le && Qi < 63;
5691
5691
  function nr(t, e) {
5692
5692
  let { node: o, offset: a } = t.docView.domFromPos(e, 0), n = a < o.childNodes.length ? o.childNodes[a] : null, s = a ? o.childNodes[a - 1] : null;
5693
5693
  if (gt && n && n.contentEditable == "false")
5694
- return Ba(n);
5694
+ return Oa(n);
5695
5695
  if ((!n || n.contentEditable == "false") && (!s || s.contentEditable == "false")) {
5696
5696
  if (n)
5697
- return Ba(n);
5697
+ return Oa(n);
5698
5698
  if (s)
5699
- return Ba(s);
5699
+ return Oa(s);
5700
5700
  }
5701
5701
  }
5702
- function Ba(t) {
5702
+ function Oa(t) {
5703
5703
  return t.contentEditable = "true", gt && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
5704
5704
  }
5705
5705
  function sr(t) {
@@ -5720,10 +5720,10 @@ function gm(t) {
5720
5720
  if (!e)
5721
5721
  return;
5722
5722
  let o = t.cursorWrapper.dom, a = o.nodeName == "IMG";
5723
- a ? e.collapse(o.parentNode, dt(o) + 1) : e.collapse(o, 0), !a && !t.state.selection.visible && Qt && Zi <= 11 && (o.disabled = !0, o.disabled = !1);
5723
+ a ? e.collapse(o.parentNode, dt(o) + 1) : e.collapse(o, 0), !a && !t.state.selection.visible && eo && Zi <= 11 && (o.disabled = !0, o.disabled = !1);
5724
5724
  }
5725
5725
  function um(t, e) {
5726
- if (e instanceof x) {
5726
+ if (e instanceof F) {
5727
5727
  let o = t.docView.descAt(e.from);
5728
5728
  o != t.lastSelectedViewDesc && (rr(t), o && o.selectNode(), t.lastSelectedViewDesc = o);
5729
5729
  } else
@@ -5733,7 +5733,7 @@ function rr(t) {
5733
5733
  t.lastSelectedViewDesc && (t.lastSelectedViewDesc.parent && t.lastSelectedViewDesc.deselectNode(), t.lastSelectedViewDesc = void 0);
5734
5734
  }
5735
5735
  function ol(t, e, o, a) {
5736
- return t.someProp("createSelectionBetween", (n) => n(t, e, o)) || E.between(e, o, a);
5736
+ return t.someProp("createSelectionBetween", (n) => n(t, e, o)) || x.between(e, o, a);
5737
5737
  }
5738
5738
  function fm(t) {
5739
5739
  let e = t.domSelectionRange();
@@ -5754,28 +5754,28 @@ function Ne(t, e) {
5754
5754
  }
5755
5755
  function ir(t, e, o) {
5756
5756
  let a = t.state.selection;
5757
- if (a instanceof E)
5757
+ if (a instanceof x)
5758
5758
  if (o.indexOf("s") > -1) {
5759
5759
  let { $head: n } = a, s = n.textOffset ? null : e < 0 ? n.nodeBefore : n.nodeAfter;
5760
5760
  if (!s || s.isText || !s.isLeaf)
5761
5761
  return !1;
5762
5762
  let r = t.state.doc.resolve(n.pos + s.nodeSize * (e < 0 ? -1 : 1));
5763
- return Ne(t, new E(a.$anchor, r));
5763
+ return Ne(t, new x(a.$anchor, r));
5764
5764
  } else if (a.empty) {
5765
5765
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
5766
5766
  let n = fn(t.state, e);
5767
- return n && n instanceof x ? Ne(t, n) : !1;
5767
+ return n && n instanceof F ? Ne(t, n) : !1;
5768
5768
  } else if (!(ve && o.indexOf("m") > -1)) {
5769
5769
  let n = a.$head, s = n.textOffset ? null : e < 0 ? n.nodeBefore : n.nodeAfter, r;
5770
5770
  if (!s || s.isText)
5771
5771
  return !1;
5772
5772
  let i = e < 0 ? n.pos - s.nodeSize : n.pos;
5773
- return s.isAtom || (r = t.docView.descAt(i)) && !r.contentDOM ? x.isSelectable(s) ? Ne(t, new x(e < 0 ? t.state.doc.resolve(n.pos - s.nodeSize) : n)) : Zn ? Ne(t, new E(t.state.doc.resolve(e < 0 ? i : i + s.nodeSize))) : !1 : !1;
5773
+ return s.isAtom || (r = t.docView.descAt(i)) && !r.contentDOM ? F.isSelectable(s) ? Ne(t, new F(e < 0 ? t.state.doc.resolve(n.pos - s.nodeSize) : n)) : Zn ? Ne(t, new x(t.state.doc.resolve(e < 0 ? i : i + s.nodeSize))) : !1 : !1;
5774
5774
  }
5775
5775
  } else return !1;
5776
5776
  else {
5777
- if (a instanceof x && a.node.isInline)
5778
- return Ne(t, new E(e > 0 ? a.$to : a.$from));
5777
+ if (a instanceof F && a.node.isInline)
5778
+ return Ne(t, new x(e > 0 ? a.$to : a.$from));
5779
5779
  {
5780
5780
  let n = fn(t.state, e);
5781
5781
  return n ? Ne(t, n) : !1;
@@ -5785,7 +5785,7 @@ function ir(t, e, o) {
5785
5785
  function No(t) {
5786
5786
  return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
5787
5787
  }
5788
- function Rt(t, e) {
5788
+ function Nt(t, e) {
5789
5789
  let o = t.pmViewDesc;
5790
5790
  return o && o.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
5791
5791
  }
@@ -5797,13 +5797,13 @@ function hm(t) {
5797
5797
  if (!o)
5798
5798
  return;
5799
5799
  let n, s, r = !1;
5800
- for (Ia && o.nodeType == 1 && a < No(o) && Rt(o.childNodes[a], -1) && (r = !0); ; )
5800
+ for (Ia && o.nodeType == 1 && a < No(o) && Nt(o.childNodes[a], -1) && (r = !0); ; )
5801
5801
  if (a > 0) {
5802
5802
  if (o.nodeType != 1)
5803
5803
  break;
5804
5804
  {
5805
5805
  let i = o.childNodes[a - 1];
5806
- if (Rt(i, -1))
5806
+ if (Nt(i, -1))
5807
5807
  n = o, s = --a;
5808
5808
  else if (i.nodeType == 3)
5809
5809
  o = i, a = o.nodeValue.length;
@@ -5815,7 +5815,7 @@ function hm(t) {
5815
5815
  break;
5816
5816
  {
5817
5817
  let i = o.previousSibling;
5818
- for (; i && Rt(i, -1); )
5818
+ for (; i && Nt(i, -1); )
5819
5819
  n = o.parentNode, s = dt(i), i = i.previousSibling;
5820
5820
  if (i)
5821
5821
  o = i, a = No(o);
@@ -5838,7 +5838,7 @@ function bm(t) {
5838
5838
  if (o.nodeType != 1)
5839
5839
  break;
5840
5840
  let i = o.childNodes[a];
5841
- if (Rt(i, 1))
5841
+ if (Nt(i, 1))
5842
5842
  s = o, r = ++a;
5843
5843
  else
5844
5844
  break;
@@ -5847,7 +5847,7 @@ function bm(t) {
5847
5847
  break;
5848
5848
  {
5849
5849
  let i = o.nextSibling;
5850
- for (; i && Rt(i, 1); )
5850
+ for (; i && Nt(i, 1); )
5851
5851
  s = i.parentNode, r = dt(i) + 1, i = i.nextSibling;
5852
5852
  if (i)
5853
5853
  o = i, a = 0, n = No(o);
@@ -5925,12 +5925,12 @@ function lr(t, e) {
5925
5925
  }
5926
5926
  function pr(t, e, o) {
5927
5927
  let a = t.state.selection;
5928
- if (a instanceof E && !a.empty || o.indexOf("s") > -1 || ve && o.indexOf("m") > -1)
5928
+ if (a instanceof x && !a.empty || o.indexOf("s") > -1 || ve && o.indexOf("m") > -1)
5929
5929
  return !1;
5930
5930
  let { $from: n, $to: s } = a;
5931
5931
  if (!n.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
5932
5932
  let r = fn(t.state, e);
5933
- if (r && r instanceof x)
5933
+ if (r && r instanceof F)
5934
5934
  return Ne(t, r);
5935
5935
  }
5936
5936
  if (!n.parent.inlineContent) {
@@ -5940,7 +5940,7 @@ function pr(t, e, o) {
5940
5940
  return !1;
5941
5941
  }
5942
5942
  function cr(t, e) {
5943
- if (!(t.state.selection instanceof E))
5943
+ if (!(t.state.selection instanceof x))
5944
5944
  return !0;
5945
5945
  let { $head: o, $anchor: a, empty: n } = t.state.selection;
5946
5946
  if (!o.sameParent(a))
@@ -6051,7 +6051,7 @@ function sl(t, e, o, a, n) {
6051
6051
  } else
6052
6052
  t.someProp("transformPastedHTML", (m) => {
6053
6053
  o = m(o, t);
6054
- }), r = Cm(o), Zn && xm(r);
6054
+ }), r = Cm(o), Zn && Fm(r);
6055
6055
  let p = r && r.querySelector("[data-pm-slice]"), c = p && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(p.getAttribute("data-pm-slice") || "");
6056
6056
  if (c && c[3])
6057
6057
  for (let m = +c[3]; m > 0; m--) {
@@ -6069,7 +6069,7 @@ function sl(t, e, o, a, n) {
6069
6069
  return m.nodeName == "BR" && !m.nextSibling && m.parentNode && !wm.test(m.parentNode.nodeName) ? { ignore: !0 } : null;
6070
6070
  }
6071
6071
  })), c)
6072
- i = Em(dr(i, +c[1], +c[2]), c[4]);
6072
+ i = xm(dr(i, +c[1], +c[2]), c[4]);
6073
6073
  else if (i = _.maxOpen(Dm(i.content, n), !0), i.openStart || i.openEnd) {
6074
6074
  let m = 0, d = 0;
6075
6075
  for (let g = i.content.firstChild; m < i.openStart && !g.type.spec.isolating; m++, g = g.firstChild)
@@ -6162,14 +6162,14 @@ function Cm(t) {
6162
6162
  o = o.querySelector(n[s]) || o;
6163
6163
  return o;
6164
6164
  }
6165
- function xm(t) {
6165
+ function Fm(t) {
6166
6166
  let e = t.querySelectorAll(Le ? "span:not([class]):not([style])" : "span.Apple-converted-space");
6167
6167
  for (let o = 0; o < e.length; o++) {
6168
6168
  let a = e[o];
6169
6169
  a.childNodes.length == 1 && a.textContent == " " && a.parentNode && a.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), a);
6170
6170
  }
6171
6171
  }
6172
- function Em(t, e) {
6172
+ function xm(t, e) {
6173
6173
  if (!t.size)
6174
6174
  return t;
6175
6175
  let o = t.content.firstChild.type.schema, a;
@@ -6193,7 +6193,7 @@ function We(t, e) {
6193
6193
  }
6194
6194
  he.keydown = (t, e) => {
6195
6195
  let o = e;
6196
- if (t.input.shiftKey = o.keyCode == 16 || o.shiftKey, !dl(t, o) && (t.input.lastKeyCode = o.keyCode, t.input.lastKeyCodeTime = Date.now(), !(eo && Le && o.keyCode == 13)))
6196
+ if (t.input.shiftKey = o.keyCode == 16 || o.shiftKey, !dl(t, o) && (t.input.lastKeyCode = o.keyCode, t.input.lastKeyCodeTime = Date.now(), !(to && Le && o.keyCode == 13)))
6197
6197
  if (o.keyCode != 229 && t.domObserver.forceFlush(), Yn && o.keyCode == 13 && !o.ctrlKey && !o.altKey && !o.metaKey) {
6198
6198
  let a = Date.now();
6199
6199
  t.input.lastIOSEnter = a, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -6213,7 +6213,7 @@ he.keypress = (t, e) => {
6213
6213
  return;
6214
6214
  }
6215
6215
  let a = t.state.selection;
6216
- if (!(a instanceof E) || !a.$from.sameParent(a.$to)) {
6216
+ if (!(a instanceof x) || !a.$from.sameParent(a.$to)) {
6217
6217
  let n = String.fromCharCode(o.charCode), s = () => t.state.tr.insertText(n).scrollIntoView();
6218
6218
  !/[\r\n]/.test(n) && !t.someProp("handleTextInput", (r) => r(t, a.$from.pos, a.$to.pos, n, s)) && t.dispatch(s()), o.preventDefault();
6219
6219
  }
@@ -6221,7 +6221,7 @@ he.keypress = (t, e) => {
6221
6221
  function Ca(t) {
6222
6222
  return { left: t.clientX, top: t.clientY };
6223
6223
  }
6224
- function Fm(t, e) {
6224
+ function Em(t, e) {
6225
6225
  let o = e.x - t.clientX, a = e.y - t.clientY;
6226
6226
  return o * o + a * a < 100;
6227
6227
  }
@@ -6244,22 +6244,22 @@ function Am(t, e) {
6244
6244
  if (e == -1)
6245
6245
  return !1;
6246
6246
  let o = t.state.doc.resolve(e), a = o.nodeAfter;
6247
- return a && a.isAtom && x.isSelectable(a) ? (wt(t, new x(o)), !0) : !1;
6247
+ return a && a.isAtom && F.isSelectable(a) ? (wt(t, new F(o)), !0) : !1;
6248
6248
  }
6249
6249
  function Sm(t, e) {
6250
6250
  if (e == -1)
6251
6251
  return !1;
6252
6252
  let o = t.state.selection, a, n;
6253
- o instanceof x && (a = o.node);
6253
+ o instanceof F && (a = o.node);
6254
6254
  let s = t.state.doc.resolve(e);
6255
6255
  for (let r = s.depth + 1; r > 0; r--) {
6256
6256
  let i = r > s.depth ? s.nodeAfter : s.node(r);
6257
- if (x.isSelectable(i)) {
6257
+ if (F.isSelectable(i)) {
6258
6258
  a && o.$from.depth > 0 && r >= o.$from.depth && s.before(o.$from.depth + 1) == o.$from.pos ? n = s.before(o.$from.depth) : n = s.before(r);
6259
6259
  break;
6260
6260
  }
6261
6261
  }
6262
- return n != null ? (wt(t, x.create(t.state.doc, n)), !0) : !1;
6262
+ return n != null ? (wt(t, F.create(t.state.doc, n)), !0) : !1;
6263
6263
  }
6264
6264
  function Mm(t, e, o, a, n) {
6265
6265
  return es(t, "handleClickOn", e, o, a) || t.someProp("handleClick", (s) => s(t, e, a)) || (n ? Sm(t, o) : Am(t, o));
@@ -6275,28 +6275,28 @@ function $m(t, e, o) {
6275
6275
  return !1;
6276
6276
  let a = t.state.doc;
6277
6277
  if (e == -1)
6278
- return a.inlineContent ? (wt(t, E.create(a, 0, a.content.size)), !0) : !1;
6278
+ return a.inlineContent ? (wt(t, x.create(a, 0, a.content.size)), !0) : !1;
6279
6279
  let n = a.resolve(e);
6280
6280
  for (let s = n.depth + 1; s > 0; s--) {
6281
6281
  let r = s > n.depth ? n.nodeAfter : n.node(s), i = n.before(s);
6282
6282
  if (r.inlineContent)
6283
- wt(t, E.create(a, i + 1, i + 1 + r.content.size));
6284
- else if (x.isSelectable(r))
6285
- wt(t, x.create(a, i));
6283
+ wt(t, x.create(a, i + 1, i + 1 + r.content.size));
6284
+ else if (F.isSelectable(r))
6285
+ wt(t, F.create(a, i));
6286
6286
  else
6287
6287
  continue;
6288
6288
  return !0;
6289
6289
  }
6290
6290
  }
6291
6291
  function ts(t) {
6292
- return Oo(t);
6292
+ return Bo(t);
6293
6293
  }
6294
6294
  const ml = ve ? "metaKey" : "ctrlKey";
6295
6295
  ye.mousedown = (t, e) => {
6296
6296
  let o = e;
6297
6297
  t.input.shiftKey = o.shiftKey;
6298
6298
  let a = ts(t), n = Date.now(), s = "singleClick";
6299
- n - t.input.lastClick.time < 500 && Fm(o, t.input.lastClick) && !o[ml] && t.input.lastClick.button == o.button && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: n, x: o.clientX, y: o.clientY, type: s, button: o.button };
6299
+ n - t.input.lastClick.time < 500 && Em(o, t.input.lastClick) && !o[ml] && t.input.lastClick.button == o.button && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: n, x: o.clientX, y: o.clientY, type: s, button: o.button };
6300
6300
  let r = t.posAtCoords(Ca(o));
6301
6301
  r && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new zm(t, r, o, !!a)) : (s == "doubleClick" ? Tm : Lm)(t, r.pos, r.inside, o) ? o.preventDefault() : We(t, "pointer"));
6302
6302
  };
@@ -6313,7 +6313,7 @@ class zm {
6313
6313
  const i = n ? null : a.target, l = i ? e.docView.nearestDesc(i, !0) : null;
6314
6314
  this.target = l && l.nodeDOM.nodeType == 1 ? l.nodeDOM : null;
6315
6315
  let { selection: p } = e.state;
6316
- (a.button == 0 && s.type.spec.draggable && s.type.spec.selectable !== !1 || p instanceof x && p.from <= r && p.to > r) && (this.mightDrag = {
6316
+ (a.button == 0 && s.type.spec.draggable && s.type.spec.selectable !== !1 || p instanceof F && p.from <= r && p.to > r) && (this.mightDrag = {
6317
6317
  node: s,
6318
6318
  pos: r,
6319
6319
  addAttr: !!(this.target && !this.target.draggable),
@@ -6356,14 +6356,14 @@ ye.contextmenu = (t) => ts(t);
6356
6356
  function dl(t, e) {
6357
6357
  return t.composing ? !0 : gt && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
6358
6358
  }
6359
- const Rm = eo ? 5e3 : -1;
6359
+ const Rm = to ? 5e3 : -1;
6360
6360
  he.compositionstart = he.compositionupdate = (t) => {
6361
6361
  if (!t.composing) {
6362
6362
  t.domObserver.flush();
6363
6363
  let { state: e } = t, o = e.selection.$to;
6364
- if (e.selection instanceof E && (e.storedMarks || !o.textOffset && o.parentOffset && o.nodeBefore.marks.some((a) => a.type.spec.inclusive === !1) || Le && el && Nm(t)))
6365
- t.markCursor = t.state.storedMarks || o.marks(), Oo(t, !0), t.markCursor = null;
6366
- else if (Oo(t, !e.selection.empty), Ia && e.selection.empty && o.parentOffset && !o.textOffset && o.nodeBefore.marks.length) {
6364
+ if (e.selection instanceof x && (e.storedMarks || !o.textOffset && o.parentOffset && o.nodeBefore.marks.some((a) => a.type.spec.inclusive === !1) || Le && el && Nm(t)))
6365
+ t.markCursor = t.state.storedMarks || o.marks(), Bo(t, !0), t.markCursor = null;
6366
+ else if (Bo(t, !e.selection.empty), Ia && e.selection.empty && o.parentOffset && !o.textOffset && o.nodeBefore.marks.length) {
6367
6367
  let a = t.domSelectionRange();
6368
6368
  for (let n = a.focusNode, s = a.focusOffset; n && n.nodeType == 1 && s != 0; ) {
6369
6369
  let r = s < 0 ? n.lastChild : n.childNodes[s - 1];
@@ -6392,19 +6392,19 @@ he.compositionend = (t, e) => {
6392
6392
  t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.badSafariComposition ? t.domObserver.forceFlush() : t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, gl(t, 20));
6393
6393
  };
6394
6394
  function gl(t, e) {
6395
- clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => Oo(t), e));
6395
+ clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => Bo(t), e));
6396
6396
  }
6397
- function Om(t) {
6398
- for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = Bm()); t.input.compositionNodes.length > 0; )
6397
+ function Bm(t) {
6398
+ for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = Om()); t.input.compositionNodes.length > 0; )
6399
6399
  t.input.compositionNodes.pop().markParentsDirty();
6400
6400
  }
6401
- function Bm() {
6401
+ function Om() {
6402
6402
  let t = document.createEvent("Event");
6403
6403
  return t.initEvent("event", !0, !0), t.timeStamp;
6404
6404
  }
6405
- function Oo(t, e = !1) {
6406
- if (!(eo && t.domObserver.flushingSoon >= 0)) {
6407
- if (t.domObserver.forceFlush(), Om(t), e || t.docView && t.docView.dirty) {
6405
+ function Bo(t, e = !1) {
6406
+ if (!(to && t.domObserver.flushingSoon >= 0)) {
6407
+ if (t.domObserver.forceFlush(), Bm(t), e || t.docView && t.docView.dirty) {
6408
6408
  let o = mm(t), a = t.state.selection;
6409
6409
  return o && !o.eq(a) ? t.dispatch(t.state.tr.setSelection(o)) : (t.markCursor || e) && !a.$from.node(a.$from.sharedDepth(a.to)).inlineContent ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0;
6410
6410
  }
@@ -6421,12 +6421,12 @@ function Hm(t, e) {
6421
6421
  o.parentNode && o.parentNode.removeChild(o), t.focus();
6422
6422
  }, 50);
6423
6423
  }
6424
- const Ut = Qt && Zi < 15 || Yn && cm < 604;
6424
+ const Jt = eo && Zi < 15 || Yn && cm < 604;
6425
6425
  ye.copy = he.cut = (t, e) => {
6426
6426
  let o = e, a = t.state.selection, n = o.type == "cut";
6427
6427
  if (a.empty)
6428
6428
  return;
6429
- let s = Ut ? null : o.clipboardData, r = a.content(), { dom: i, text: l } = nl(t, r);
6429
+ let s = Jt ? null : o.clipboardData, r = a.content(), { dom: i, text: l } = nl(t, r);
6430
6430
  s ? (o.preventDefault(), s.clearData(), s.setData("text/html", i.innerHTML), s.setData("text/plain", l)) : Hm(t, i), n && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
6431
6431
  };
6432
6432
  function Pm(t) {
@@ -6460,9 +6460,9 @@ function ul(t) {
6460
6460
  }
6461
6461
  he.paste = (t, e) => {
6462
6462
  let o = e;
6463
- if (t.composing && !eo)
6463
+ if (t.composing && !to)
6464
6464
  return;
6465
- let a = Ut ? null : o.clipboardData, n = t.input.shiftKey && t.input.lastKeyCode != 45;
6465
+ let a = Jt ? null : o.clipboardData, n = t.input.shiftKey && t.input.lastKeyCode != 45;
6466
6466
  a && jn(t, ul(a), a.getData("text/html"), n, o) ? o.preventDefault() : qm(t, o);
6467
6467
  };
6468
6468
  class Wm {
@@ -6479,16 +6479,16 @@ ye.dragstart = (t, e) => {
6479
6479
  if (a && a.done(), !o.dataTransfer)
6480
6480
  return;
6481
6481
  let n = t.state.selection, s = n.empty ? null : t.posAtCoords(Ca(o)), r;
6482
- if (!(s && s.pos >= n.from && s.pos <= (n instanceof x ? n.to - 1 : n.to))) {
6482
+ if (!(s && s.pos >= n.from && s.pos <= (n instanceof F ? n.to - 1 : n.to))) {
6483
6483
  if (a && a.mightDrag)
6484
- r = x.create(t.state.doc, a.mightDrag.pos);
6484
+ r = F.create(t.state.doc, a.mightDrag.pos);
6485
6485
  else if (o.target && o.target.nodeType == 1) {
6486
6486
  let m = t.docView.nearestDesc(o.target, !0);
6487
- m && m.node.type.spec.draggable && m != t.docView && (r = x.create(t.state.doc, m.posBefore));
6487
+ m && m.node.type.spec.draggable && m != t.docView && (r = F.create(t.state.doc, m.posBefore));
6488
6488
  }
6489
6489
  }
6490
6490
  let i = (r || t.state.selection).content(), { dom: l, text: p, slice: c } = nl(t, i);
6491
- (!o.dataTransfer.files.length || !Le || Qi > 120) && o.dataTransfer.clearData(), o.dataTransfer.setData(Ut ? "Text" : "text/html", l.innerHTML), o.dataTransfer.effectAllowed = "copyMove", Ut || o.dataTransfer.setData("text/plain", p), t.dragging = new Wm(c, fl(t, o), r);
6491
+ (!o.dataTransfer.files.length || !Le || Qi > 120) && o.dataTransfer.clearData(), o.dataTransfer.setData(Jt ? "Text" : "text/html", l.innerHTML), o.dataTransfer.effectAllowed = "copyMove", Jt || o.dataTransfer.setData("text/plain", p), t.dragging = new Wm(c, fl(t, o), r);
6492
6492
  };
6493
6493
  ye.dragend = (t) => {
6494
6494
  let e = t.dragging;
@@ -6513,7 +6513,7 @@ function Km(t, e, o) {
6513
6513
  let n = t.state.doc.resolve(a.pos), s = o && o.slice;
6514
6514
  s ? t.someProp("transformPasted", (g) => {
6515
6515
  s = g(s, t, !1);
6516
- }) : s = sl(t, ul(e.dataTransfer), Ut ? null : e.dataTransfer.getData("text/html"), !1, n);
6516
+ }) : s = sl(t, ul(e.dataTransfer), Jt ? null : e.dataTransfer.getData("text/html"), !1, n);
6517
6517
  let r = !!(o && fl(t, e));
6518
6518
  if (t.someProp("handleDrop", (g) => g(t, e, s || _.empty, r))) {
6519
6519
  e.preventDefault();
@@ -6533,8 +6533,8 @@ function Km(t, e, o) {
6533
6533
  if (c ? l.replaceRangeWith(p, p, s.content.firstChild) : l.replaceRange(p, p, s), l.doc.eq(m))
6534
6534
  return;
6535
6535
  let d = l.doc.resolve(p);
6536
- if (c && x.isSelectable(s.content.firstChild) && d.nodeAfter && d.nodeAfter.sameMarkup(s.content.firstChild))
6537
- l.setSelection(new x(d));
6536
+ if (c && F.isSelectable(s.content.firstChild) && d.nodeAfter && d.nodeAfter.sameMarkup(s.content.firstChild))
6537
+ l.setSelection(new F(d));
6538
6538
  else {
6539
6539
  let g = l.mapping.map(i);
6540
6540
  l.mapping.maps[l.mapping.maps.length - 1].forEach((u, f, h, b) => g = b), l.setSelection(ol(t, d, l.doc.resolve(g)));
@@ -6551,7 +6551,7 @@ ye.blur = (t, e) => {
6551
6551
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), o.relatedTarget && t.dom.contains(o.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
6552
6552
  };
6553
6553
  ye.beforeinput = (t, e) => {
6554
- if (Le && eo && e.inputType == "deleteContentBackward") {
6554
+ if (Le && to && e.inputType == "deleteContentBackward") {
6555
6555
  t.domObserver.flushSoon();
6556
6556
  let { domChangeCount: o } = t.input;
6557
6557
  setTimeout(() => {
@@ -6564,7 +6564,7 @@ ye.beforeinput = (t, e) => {
6564
6564
  };
6565
6565
  for (let t in he)
6566
6566
  ye[t] = he[t];
6567
- function Jt(t, e) {
6567
+ function Gt(t, e) {
6568
6568
  if (t == e)
6569
6569
  return !0;
6570
6570
  for (let o in t)
@@ -6575,7 +6575,7 @@ function Jt(t, e) {
6575
6575
  return !1;
6576
6576
  return !0;
6577
6577
  }
6578
- class Bo {
6578
+ class Oo {
6579
6579
  constructor(e, o) {
6580
6580
  this.toDOM = e, this.spec = o || st, this.side = this.spec.side || 0;
6581
6581
  }
@@ -6587,7 +6587,7 @@ class Bo {
6587
6587
  return !0;
6588
6588
  }
6589
6589
  eq(e) {
6590
- return this == e || e instanceof Bo && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Jt(this.spec, e.spec));
6590
+ return this == e || e instanceof Oo && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Gt(this.spec, e.spec));
6591
6591
  }
6592
6592
  destroy(e) {
6593
6593
  this.spec.destroy && this.spec.destroy(e);
@@ -6605,7 +6605,7 @@ class Ve {
6605
6605
  return o.from < o.to;
6606
6606
  }
6607
6607
  eq(e) {
6608
- return this == e || e instanceof Ve && Jt(this.attrs, e.attrs) && Jt(this.spec, e.spec);
6608
+ return this == e || e instanceof Ve && Gt(this.attrs, e.attrs) && Gt(this.spec, e.spec);
6609
6609
  }
6610
6610
  static is(e) {
6611
6611
  return e.type instanceof Ve;
@@ -6629,7 +6629,7 @@ class as {
6629
6629
  return n == o.from && !(s = e.child(a)).isText && n + s.nodeSize == o.to;
6630
6630
  }
6631
6631
  eq(e) {
6632
- return this == e || e instanceof as && Jt(this.attrs, e.attrs) && Jt(this.spec, e.spec);
6632
+ return this == e || e instanceof as && Gt(this.attrs, e.attrs) && Gt(this.spec, e.spec);
6633
6633
  }
6634
6634
  destroy() {
6635
6635
  }
@@ -6668,7 +6668,7 @@ class ue {
6668
6668
  widget's current document position.
6669
6669
  */
6670
6670
  static widget(e, o, a) {
6671
- return new ue(e, e, new Bo(o, a));
6671
+ return new ue(e, e, new Oo(o, a));
6672
6672
  }
6673
6673
  /**
6674
6674
  Creates an inline decoration, which adds the given attributes to
@@ -6702,7 +6702,7 @@ class ue {
6702
6702
  @internal
6703
6703
  */
6704
6704
  get widget() {
6705
- return this.type instanceof Bo;
6705
+ return this.type instanceof Oo;
6706
6706
  }
6707
6707
  }
6708
6708
  const kt = [], st = {};
@@ -7322,19 +7322,19 @@ ss(yl, {
7322
7322
  forEach: () => _d,
7323
7323
  insertContent: () => wd,
7324
7324
  insertContentAt: () => Cd,
7325
- joinBackward: () => Fd,
7326
- joinDown: () => Ed,
7325
+ joinBackward: () => Ed,
7326
+ joinDown: () => xd,
7327
7327
  joinForward: () => Ad,
7328
7328
  joinItemBackward: () => Sd,
7329
7329
  joinItemForward: () => Md,
7330
7330
  joinTextblockBackward: () => Td,
7331
7331
  joinTextblockForward: () => Ld,
7332
- joinUp: () => xd,
7332
+ joinUp: () => Fd,
7333
7333
  keyboardShortcut: () => zd,
7334
7334
  lift: () => Rd,
7335
7335
  liftEmptyBlock: () => Nd,
7336
- liftListItem: () => Od,
7337
- newlineInCode: () => Bd,
7336
+ liftListItem: () => Bd,
7337
+ newlineInCode: () => Od,
7338
7338
  resetAttributes: () => Hd,
7339
7339
  scrollIntoView: () => Pd,
7340
7340
  selectAll: () => qd,
@@ -7360,9 +7360,9 @@ ss(yl, {
7360
7360
  undoInputRule: () => Dg,
7361
7361
  unsetAllMarks: () => Ig,
7362
7362
  unsetMark: () => Cg,
7363
- unsetTextDirection: () => xg,
7364
- updateAttributes: () => Eg,
7365
- wrapIn: () => Fg,
7363
+ unsetTextDirection: () => Fg,
7364
+ updateAttributes: () => xg,
7365
+ wrapIn: () => Eg,
7366
7366
  wrapInList: () => Ag
7367
7367
  });
7368
7368
  var nd = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
@@ -7377,7 +7377,7 @@ var nd = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
7377
7377
  const { doc: p, mapping: c } = e, m = p.resolve(c.map(l)), d = p.resolve(c.map(l + i.nodeSize)), g = m.blockRange(d);
7378
7378
  if (!g)
7379
7379
  return;
7380
- const u = Et(g);
7380
+ const u = xt(g);
7381
7381
  if (i.type.isTextblock) {
7382
7382
  const { defaultType: f } = m.parent.contentMatchAt(m.index());
7383
7383
  e.setNodeMarkup(g.start, f);
@@ -7389,7 +7389,7 @@ var nd = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
7389
7389
  const { state: n } = o, s = n.doc.slice(t.from, t.to);
7390
7390
  a.deleteRange(t.from, t.to);
7391
7391
  const r = a.mapping.map(e);
7392
- return a.insert(r, s.content), a.setSelection(new E(a.doc.resolve(Math.max(r - 1, 0)))), !0;
7392
+ return a.insert(r, s.content), a.setSelection(new x(a.doc.resolve(Math.max(r - 1, 0)))), !0;
7393
7393
  }, cd = () => ({ tr: t, dispatch: e }) => {
7394
7394
  const { selection: o } = t, a = o.$anchor.node();
7395
7395
  if (a.content.size > 0)
@@ -7475,7 +7475,7 @@ var bd = (t, e = {}) => ({ tr: o, state: a, dispatch: n }) => {
7475
7475
  if (n) {
7476
7476
  const m = rs(l, s, e);
7477
7477
  if (m && m.from <= p && m.to >= c) {
7478
- const d = E.create(r, m.from, m.to);
7478
+ const d = x.create(r, m.from, m.to);
7479
7479
  o.setSelection(d);
7480
7480
  }
7481
7481
  }
@@ -7488,7 +7488,7 @@ var bd = (t, e = {}) => ({ tr: o, state: a, dispatch: n }) => {
7488
7488
  return !1;
7489
7489
  };
7490
7490
  function wl(t) {
7491
- return t instanceof E;
7491
+ return t instanceof x;
7492
7492
  }
7493
7493
  function et(t = 0, e = 0, o = 0) {
7494
7494
  return Math.min(Math.max(t, e), o);
@@ -7502,7 +7502,7 @@ function vd(t, e = null) {
7502
7502
  if (e === "end")
7503
7503
  return a;
7504
7504
  const n = o.from, s = a.to;
7505
- return e === "all" ? E.create(t, et(0, n, s), et(t.content.size, n, s)) : E.create(t, et(e, n, s), et(e, n, s));
7505
+ return e === "all" ? x.create(t, et(0, n, s), et(t.content.size, n, s)) : x.create(t, et(e, n, s), et(e, n, s));
7506
7506
  }
7507
7507
  function hr() {
7508
7508
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
@@ -7542,13 +7542,13 @@ var yd = (t = null, e = {}) => ({ editor: o, view: a, tr: n, dispatch: s }) => {
7542
7542
  }
7543
7543
  return t;
7544
7544
  };
7545
- function io(t) {
7545
+ function lo(t) {
7546
7546
  if (typeof window > "u")
7547
7547
  throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
7548
7548
  const e = `<body>${t}</body>`, o = new window.DOMParser().parseFromString(e, "text/html").body;
7549
7549
  return Dl(o);
7550
7550
  }
7551
- function Gt(t, e, o) {
7551
+ function Xt(t, e, o) {
7552
7552
  if (t instanceof Ie || t instanceof v)
7553
7553
  return t;
7554
7554
  o = {
@@ -7566,7 +7566,7 @@ function Gt(t, e, o) {
7566
7566
  } catch (s) {
7567
7567
  if (o.errorOnInvalidContent)
7568
7568
  throw new Error("[tiptap error]: Invalid JSON content", { cause: s });
7569
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s), Gt("", e, o);
7569
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s), Xt("", e, o);
7570
7570
  }
7571
7571
  if (n) {
7572
7572
  if (o.errorOnInvalidContent) {
@@ -7589,15 +7589,15 @@ function Gt(t, e, o) {
7589
7589
  }
7590
7590
  })
7591
7591
  });
7592
- if (o.slice ? nt.fromSchema(l).parseSlice(io(t), o.parseOptions) : nt.fromSchema(l).parse(io(t), o.parseOptions), o.errorOnInvalidContent && r)
7592
+ if (o.slice ? nt.fromSchema(l).parseSlice(lo(t), o.parseOptions) : nt.fromSchema(l).parse(lo(t), o.parseOptions), o.errorOnInvalidContent && r)
7593
7593
  throw new Error("[tiptap error]: Invalid HTML content", {
7594
7594
  cause: new Error(`Invalid element found: ${i}`)
7595
7595
  });
7596
7596
  }
7597
7597
  const s = nt.fromSchema(e);
7598
- return o.slice ? s.parseSlice(io(t), o.parseOptions).content : s.parse(io(t), o.parseOptions);
7598
+ return o.slice ? s.parseSlice(lo(t), o.parseOptions).content : s.parse(lo(t), o.parseOptions);
7599
7599
  }
7600
- return Gt("", e, o);
7600
+ return Xt("", e, o);
7601
7601
  }
7602
7602
  function Dd(t, e, o) {
7603
7603
  const a = t.steps.length - 1;
@@ -7637,7 +7637,7 @@ var Id = (t) => !("type" in t), Cd = (t, e, o) => ({ tr: a, dispatch: n, editor:
7637
7637
  };
7638
7638
  if (!o.errorOnInvalidContent && !s.options.enableContentCheck && s.options.emitContentError)
7639
7639
  try {
7640
- Gt(e, s.schema, {
7640
+ Xt(e, s.schema, {
7641
7641
  parseOptions: p,
7642
7642
  errorOnInvalidContent: !0
7643
7643
  });
@@ -7645,7 +7645,7 @@ var Id = (t) => !("type" in t), Cd = (t, e, o) => ({ tr: a, dispatch: n, editor:
7645
7645
  l(f);
7646
7646
  }
7647
7647
  try {
7648
- i = Gt(e, s.schema, {
7648
+ i = Xt(e, s.schema, {
7649
7649
  parseOptions: p,
7650
7650
  errorOnInvalidContent: (r = o.errorOnInvalidContent) != null ? r : s.options.enableContentCheck
7651
7651
  });
@@ -7678,7 +7678,7 @@ var Id = (t) => !("type" in t), Cd = (t, e, o) => ({ tr: a, dispatch: n, editor:
7678
7678
  o.updateSelection && Dd(a, a.steps.length - 1, -1), o.applyInputRules && a.setMeta("applyInputRules", { from: c, text: u }), o.applyPasteRules && a.setMeta("applyPasteRules", { from: c, text: u });
7679
7679
  }
7680
7680
  return !0;
7681
- }, xd = () => ({ state: t, dispatch: e }) => Wc(t, e), Ed = () => ({ state: t, dispatch: e }) => Vc(t, e), Fd = () => ({ state: t, dispatch: e }) => Ri(t, e), Ad = () => ({ state: t, dispatch: e }) => Hi(t, e), Sd = () => ({ state: t, dispatch: e, tr: o }) => {
7681
+ }, Fd = () => ({ state: t, dispatch: e }) => Wc(t, e), xd = () => ({ state: t, dispatch: e }) => Vc(t, e), Ed = () => ({ state: t, dispatch: e }) => Ri(t, e), Ad = () => ({ state: t, dispatch: e }) => Hi(t, e), Sd = () => ({ state: t, dispatch: e, tr: o }) => {
7682
7682
  try {
7683
7683
  const a = _a(t.doc, t.selection.$from.pos, -1);
7684
7684
  return a == null ? !1 : (o.join(a, 2), e && e(o), !0);
@@ -7753,11 +7753,11 @@ function Ue(t, e, o = {}) {
7753
7753
  var Rd = (t, e = {}) => ({ state: o, dispatch: a }) => {
7754
7754
  const n = Y(t, o.schema);
7755
7755
  return Ue(o, n, e) ? Kc(o, a) : !1;
7756
- }, Nd = () => ({ state: t, dispatch: e }) => Vi(t, e), Od = (t) => ({ state: e, dispatch: o }) => {
7756
+ }, Nd = () => ({ state: t, dispatch: e }) => Vi(t, e), Bd = (t) => ({ state: e, dispatch: o }) => {
7757
7757
  const a = Y(t, e.schema);
7758
7758
  return nm(a)(e, o);
7759
- }, Bd = () => ({ state: t, dispatch: e }) => qi(t, e);
7760
- function xa(t, e) {
7759
+ }, Od = () => ({ state: t, dispatch: e }) => qi(t, e);
7760
+ function Fa(t, e) {
7761
7761
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
7762
7762
  }
7763
7763
  function br(t, e) {
@@ -7766,7 +7766,7 @@ function br(t, e) {
7766
7766
  }
7767
7767
  var Hd = (t, e) => ({ tr: o, state: a, dispatch: n }) => {
7768
7768
  let s = null, r = null;
7769
- const i = xa(
7769
+ const i = Fa(
7770
7770
  typeof t == "string" ? t : t.name,
7771
7771
  a.schema
7772
7772
  );
@@ -7787,9 +7787,9 @@ var Hd = (t, e) => ({ tr: o, state: a, dispatch: n }) => {
7787
7787
  t.setSelection(o);
7788
7788
  }
7789
7789
  return !0;
7790
- }, Wd = () => ({ state: t, dispatch: e }) => Oi(t, e), Vd = () => ({ state: t, dispatch: e }) => Pi(t, e), Kd = () => ({ state: t, dispatch: e }) => Xc(t, e), Ud = () => ({ state: t, dispatch: e }) => Qc(t, e), Jd = () => ({ state: t, dispatch: e }) => Zc(t, e);
7790
+ }, Wd = () => ({ state: t, dispatch: e }) => Bi(t, e), Vd = () => ({ state: t, dispatch: e }) => Pi(t, e), Kd = () => ({ state: t, dispatch: e }) => Xc(t, e), Ud = () => ({ state: t, dispatch: e }) => Qc(t, e), Jd = () => ({ state: t, dispatch: e }) => Zc(t, e);
7791
7791
  function Gd(t, e, o = {}, a = {}) {
7792
- return Gt(t, e, {
7792
+ return Xt(t, e, {
7793
7793
  slice: !1,
7794
7794
  parseOptions: o,
7795
7795
  errorOnInvalidContent: a.errorOnInvalidContent
@@ -7841,7 +7841,7 @@ function Io(t, e) {
7841
7841
  });
7842
7842
  }), o;
7843
7843
  }
7844
- function xl(t, e, o) {
7844
+ function Fl(t, e, o) {
7845
7845
  const a = [];
7846
7846
  return t.nodesBetween(e.from, e.to, (n, s) => {
7847
7847
  o(n) && a.push({
@@ -7850,7 +7850,7 @@ function xl(t, e, o) {
7850
7850
  });
7851
7851
  }), a;
7852
7852
  }
7853
- function El(t, e) {
7853
+ function xl(t, e) {
7854
7854
  for (let o = t.depth; o > 0; o -= 1) {
7855
7855
  const a = t.node(o);
7856
7856
  if (e(a))
@@ -7863,7 +7863,7 @@ function El(t, e) {
7863
7863
  }
7864
7864
  }
7865
7865
  function ut(t) {
7866
- return (e) => El(e.$from, t);
7866
+ return (e) => xl(e.$from, t);
7867
7867
  }
7868
7868
  function Ct(t, e, o) {
7869
7869
  return t.config[e] === void 0 && t.parent ? Ct(t.parent, e, o) : typeof t.config[e] == "function" ? t.config[e].bind({
@@ -7877,7 +7877,7 @@ function Yd(t) {
7877
7877
  function Te(t, e = void 0, ...o) {
7878
7878
  return Yd(t) ? e ? t.bind(e)(...o) : t(...o) : t;
7879
7879
  }
7880
- function Fl(t) {
7880
+ function El(t) {
7881
7881
  const e = t.filter((n) => n.type === "extension"), o = t.filter((n) => n.type === "node"), a = t.filter((n) => n.type === "mark");
7882
7882
  return {
7883
7883
  baseExtensions: e,
@@ -7949,7 +7949,7 @@ function tg(t, e) {
7949
7949
  return r ? { ...r.attrs } : {};
7950
7950
  }
7951
7951
  function og(t, e) {
7952
- const o = xa(
7952
+ const o = Fa(
7953
7953
  typeof e == "string" ? e : e.name,
7954
7954
  t.schema
7955
7955
  );
@@ -8039,6 +8039,8 @@ function vn(t, e, o = {}) {
8039
8039
  if (n.forEach(({ $from: c, $to: m }) => {
8040
8040
  const d = c.pos, g = m.pos;
8041
8041
  t.doc.nodesBetween(d, g, (u, f) => {
8042
+ if (s && u.inlineContent && !u.type.allowsMarkType(s))
8043
+ return !1;
8042
8044
  if (!u.isText && !u.marks.length)
8043
8045
  return;
8044
8046
  const h = Math.max(d, f), b = Math.min(g, f + u.nodeSize), j = b - h;
@@ -8058,7 +8060,7 @@ function vn(t, e, o = {}) {
8058
8060
  function rg(t, e, o = {}) {
8059
8061
  if (!e)
8060
8062
  return Ue(t, null, o) || vn(t, null, o);
8061
- const a = xa(e, t.schema);
8063
+ const a = Fa(e, t.schema);
8062
8064
  return a === "node" ? Ue(t, e, o) : a === "mark" ? vn(t, e, o) : !1;
8063
8065
  }
8064
8066
  var ig = (t, e) => {
@@ -8076,7 +8078,7 @@ var ig = (t, e) => {
8076
8078
  return !(e.parentOffset > 0 || e.pos !== o.pos);
8077
8079
  };
8078
8080
  function jr(t, e) {
8079
- const { nodeExtensions: o } = Fl(e), a = o.find((r) => r.name === t);
8081
+ const { nodeExtensions: o } = El(e), a = o.find((r) => r.name === t);
8080
8082
  if (!a)
8081
8083
  return !1;
8082
8084
  const n = {
@@ -8112,7 +8114,7 @@ function Al(t, {
8112
8114
  return !1;
8113
8115
  }
8114
8116
  function pg(t) {
8115
- return t instanceof x;
8117
+ return t instanceof F;
8116
8118
  }
8117
8119
  function cg(t, e, o) {
8118
8120
  var a;
@@ -8171,7 +8173,7 @@ var mg = (t, e = {}) => ({ tr: o, state: a, dispatch: n }) => {
8171
8173
  return o.selection.$anchor.sameParent(o.selection.$head) && (r = o.selection.$anchor.parent.attrs), s.isTextblock ? n().command(({ commands: i }) => er(s, { ...r, ...e })(o) ? !0 : i.clearNodes()).command(({ state: i }) => er(s, { ...r, ...e })(i, a)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
8172
8174
  }, ug = (t) => ({ tr: e, dispatch: o }) => {
8173
8175
  if (o) {
8174
- const { doc: a } = e, n = et(t, 0, a.content.size), s = x.create(a, n);
8176
+ const { doc: a } = e, n = et(t, 0, a.content.size), s = F.create(a, n);
8175
8177
  e.setSelection(s);
8176
8178
  }
8177
8179
  return !0;
@@ -8186,7 +8188,7 @@ var mg = (t, e = {}) => ({ tr: o, state: a, dispatch: n }) => {
8186
8188
  }), !0;
8187
8189
  }, hg = (t) => ({ tr: e, dispatch: o }) => {
8188
8190
  if (o) {
8189
- const { doc: a } = e, { from: n, to: s } = typeof t == "number" ? { from: t, to: t } : t, r = E.atStart(a).from, i = E.atEnd(a).to, l = et(n, r, i), p = et(s, r, i), c = E.create(a, l, p);
8191
+ const { doc: a } = e, { from: n, to: s } = typeof t == "number" ? { from: t, to: t } : t, r = x.atStart(a).from, i = x.atEnd(a).to, l = et(n, r, i), p = et(s, r, i), c = x.create(a, l, p);
8190
8192
  e.setSelection(c);
8191
8193
  }
8192
8194
  return !0;
@@ -8203,7 +8205,7 @@ function vr(t, e) {
8203
8205
  }
8204
8206
  var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor: n }) => {
8205
8207
  const { selection: s, doc: r } = e, { $from: i, $to: l } = s, p = n.extensionManager.attributes, c = Co(p, i.node().type.name, i.node().attrs);
8206
- if (s instanceof x && s.node.isBlock)
8208
+ if (s instanceof F && s.node.isBlock)
8207
8209
  return !i.parentOffset || !Me(r, i.pos) ? !1 : (a && (t && vr(o, n.extensionManager.splittableMarks), e.split(i.pos).scrollIntoView()), !0);
8208
8210
  if (!i.parent.isBlock)
8209
8211
  return !1;
@@ -8220,7 +8222,7 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8220
8222
  attrs: c
8221
8223
  }
8222
8224
  ] : void 0), a) {
8223
- if (u && (s instanceof E && e.deleteSelection(), e.split(e.mapping.map(i.pos), 1, g), d && !m && !i.parentOffset && i.parent.type !== d)) {
8225
+ if (u && (s instanceof x && e.deleteSelection(), e.split(e.mapping.map(i.pos), 1, g), d && !m && !i.parentOffset && i.parent.type !== d)) {
8224
8226
  const f = e.mapping.map(i.before()), h = e.doc.resolve(f);
8225
8227
  i.node(-1).canReplaceWith(h.index(), h.index() + 1, d) && e.setNodeMarkup(e.mapping.map(i.before()), d);
8226
8228
  }
@@ -8252,14 +8254,14 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8252
8254
  ...e
8253
8255
  }, w = ((r = i.contentMatch.defaultType) == null ? void 0 : r.createAndFill(I)) || void 0;
8254
8256
  b = b.append(v.from(i.createAndFill(null, w) || void 0));
8255
- const F = l.before(l.depth - (j - 1));
8256
- o.replace(F, l.after(-y), new _(b, 4 - j, 0));
8257
+ const E = l.before(l.depth - (j - 1));
8258
+ o.replace(E, l.after(-y), new _(b, 4 - j, 0));
8257
8259
  let D = -1;
8258
- o.doc.nodesBetween(F, o.doc.content.size, (C, L) => {
8260
+ o.doc.nodesBetween(E, o.doc.content.size, (C, L) => {
8259
8261
  if (D > -1)
8260
8262
  return !1;
8261
8263
  C.isTextblock && C.content.size === 0 && (D = L + 1);
8262
- }), D > -1 && o.setSelection(E.near(o.doc.resolve(D))), o.scrollIntoView();
8264
+ }), D > -1 && o.setSelection(x.near(o.doc.resolve(D))), o.scrollIntoView();
8263
8265
  }
8264
8266
  return !0;
8265
8267
  }
@@ -8281,7 +8283,7 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8281
8283
  const { selection: b, storedMarks: j } = a, { splittableMarks: y } = s.extensionManager, I = j || b.$to.parentOffset && b.$from.marks();
8282
8284
  if (o.split(l.pos, 2, h).scrollIntoView(), !I || !n)
8283
8285
  return !0;
8284
- const w = I.filter((F) => y.includes(F.type.name));
8286
+ const w = I.filter((E) => y.includes(E.type.name));
8285
8287
  o.ensureMarks(w);
8286
8288
  }
8287
8289
  return !0;
@@ -8307,7 +8309,7 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8307
8309
  const { extensions: m, splittableMarks: d } = n.extensionManager, g = Y(t, r.schema), u = Y(e, r.schema), { selection: f, storedMarks: h } = r, { $from: b, $to: j } = f, y = b.blockRange(j), I = h || f.$to.parentOffset && f.$from.marks();
8308
8310
  if (!y)
8309
8311
  return !1;
8310
- const w = ut((F) => jr(F.type.name, m))(f);
8312
+ const w = ut((E) => jr(E.type.name, m))(f);
8311
8313
  if (y.depth >= 1 && w && y.depth - w.depth <= 1) {
8312
8314
  if (w.node.type === g)
8313
8315
  return p.liftListItem(u);
@@ -8315,8 +8317,8 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8315
8317
  return l().command(() => (s.setNodeMarkup(w.pos, g), !0)).command(() => Wa(s, g)).command(() => Va(s, g)).run();
8316
8318
  }
8317
8319
  return !o || !I || !i ? l().command(() => c().wrapInList(g, a) ? !0 : p.clearNodes()).wrapInList(g, a).command(() => Wa(s, g)).command(() => Va(s, g)).run() : l().command(() => {
8318
- const F = c().wrapInList(g, a), D = I.filter((C) => d.includes(C.type.name));
8319
- return s.ensureMarks(D), F ? !0 : p.clearNodes();
8320
+ const E = c().wrapInList(g, a), D = I.filter((C) => d.includes(C.type.name));
8321
+ return s.ensureMarks(D), E ? !0 : p.clearNodes();
8320
8322
  }).wrapInList(g, a).command(() => Wa(s, g)).command(() => Va(s, g)).run();
8321
8323
  }, yg = (t, e = {}, o = {}) => ({ state: a, commands: n }) => {
8322
8324
  const { extendEmptyMarkRange: s = !1 } = o, r = Ye(t, a.schema);
@@ -8367,7 +8369,7 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8367
8369
  o.removeMark(d.$from.pos, d.$to.pos, l);
8368
8370
  });
8369
8371
  return o.removeStoredMark(l), !0;
8370
- }, xg = (t) => ({ tr: e, state: o, dispatch: a }) => {
8372
+ }, Fg = (t) => ({ tr: e, state: o, dispatch: a }) => {
8371
8373
  const { selection: n } = o;
8372
8374
  let s, r;
8373
8375
  return typeof t == "number" ? (s = t, r = t) : t && "from" in t && "to" in t ? (s = t.from, r = t.to) : (s = n.from, r = n.to), a && e.doc.nodesBetween(s, r, (i, l) => {
@@ -8376,9 +8378,9 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8376
8378
  const p = { ...i.attrs };
8377
8379
  delete p.dir, e.setNodeMarkup(l, void 0, p);
8378
8380
  }), !0;
8379
- }, Eg = (t, e = {}) => ({ tr: o, state: a, dispatch: n }) => {
8381
+ }, xg = (t, e = {}) => ({ tr: o, state: a, dispatch: n }) => {
8380
8382
  let s = null, r = null;
8381
- const i = xa(
8383
+ const i = Fa(
8382
8384
  typeof t == "string" ? t : t.name,
8383
8385
  a.schema
8384
8386
  );
@@ -8422,13 +8424,13 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8422
8424
  );
8423
8425
  }));
8424
8426
  }), l;
8425
- }, Fg = (t, e = {}) => ({ state: o, dispatch: a }) => {
8427
+ }, Eg = (t, e = {}) => ({ state: o, dispatch: a }) => {
8426
8428
  const n = Y(t, o.schema);
8427
8429
  return em(n, e)(o, a);
8428
8430
  }, Ag = (t, e = {}) => ({ state: o, dispatch: a }) => {
8429
8431
  const n = Y(t, o.schema);
8430
8432
  return tm(n, e)(o, a);
8431
- }, to = class {
8433
+ }, oo = class {
8432
8434
  constructor(t) {
8433
8435
  var e;
8434
8436
  this.find = t.find, this.handler = t.handler, this.undoable = (e = t.undoable) != null ? e : !0;
@@ -8437,13 +8439,13 @@ var jg = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: o, dispatch: a, editor
8437
8439
  function Sg(t) {
8438
8440
  return Object.prototype.toString.call(t).slice(8, -1);
8439
8441
  }
8440
- function lo(t) {
8442
+ function po(t) {
8441
8443
  return Sg(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
8442
8444
  }
8443
8445
  function Sl(t, e) {
8444
8446
  const o = { ...t };
8445
- return lo(t) && lo(e) && Object.keys(e).forEach((a) => {
8446
- lo(e[a]) && lo(t[a]) ? o[a] = Sl(t[a], e[a]) : o[a] = e[a];
8447
+ return po(t) && po(e) && Object.keys(e).forEach((a) => {
8448
+ po(e[a]) && po(t[a]) ? o[a] = Sl(t[a], e[a]) : o[a] = e[a];
8447
8449
  }), o;
8448
8450
  }
8449
8451
  var ms = class {
@@ -8527,8 +8529,8 @@ ss(Mg, {
8527
8529
  Drop: () => zg,
8528
8530
  Editable: () => Rg,
8529
8531
  FocusEvents: () => Ng,
8530
- Keymap: () => Og,
8531
- Paste: () => Bg,
8532
+ Keymap: () => Bg,
8533
+ Paste: () => Og,
8532
8534
  Tabindex: () => Hg,
8533
8535
  TextDirection: () => Pg,
8534
8536
  focusEventsPluginKey: () => $l
@@ -8614,7 +8616,7 @@ var Q = class Ll extends ms {
8614
8616
  c.steps.forEach((d, g) => {
8615
8617
  var u, f;
8616
8618
  if (d instanceof ke) {
8617
- const h = m.slice(g).map(d.from, -1), b = m.slice(g).map(d.to), j = m.invert().map(h, -1), y = m.invert().map(b), I = (u = c.doc.nodeAt(h - 1)) == null ? void 0 : u.marks.some((F) => F.eq(d.mark)), w = (f = c.doc.nodeAt(b)) == null ? void 0 : f.marks.some((F) => F.eq(d.mark));
8619
+ const h = m.slice(g).map(d.from, -1), b = m.slice(g).map(d.to), j = m.invert().map(h, -1), y = m.invert().map(b), I = (u = c.doc.nodeAt(h - 1)) == null ? void 0 : u.marks.some((E) => E.eq(d.mark)), w = (f = c.doc.nodeAt(b)) == null ? void 0 : f.marks.some((E) => E.eq(d.mark));
8618
8620
  this.editor.emit("delete", {
8619
8621
  type: "mark",
8620
8622
  mark: d.mark,
@@ -8693,7 +8695,7 @@ var Q = class Ll extends ms {
8693
8695
  })
8694
8696
  ];
8695
8697
  }
8696
- }), Og = Q.create({
8698
+ }), Bg = Q.create({
8697
8699
  name: "keymap",
8698
8700
  addKeyboardShortcuts() {
8699
8701
  const t = () => this.editor.commands.first(({ commands: s }) => [
@@ -8771,7 +8773,7 @@ var Q = class Ll extends ms {
8771
8773
  })
8772
8774
  ];
8773
8775
  }
8774
- }), Bg = Q.create({
8776
+ }), Og = Q.create({
8775
8777
  name: "paste",
8776
8778
  addProseMirrorPlugins() {
8777
8779
  return [
@@ -8811,7 +8813,7 @@ var Q = class Ll extends ms {
8811
8813
  addGlobalAttributes() {
8812
8814
  if (!this.options.direction)
8813
8815
  return [];
8814
- const { nodeExtensions: t } = Fl(this.extensions);
8816
+ const { nodeExtensions: t } = El(this.extensions);
8815
8817
  return [
8816
8818
  {
8817
8819
  types: t.filter((e) => e.name !== "text").map((e) => e.name),
@@ -8847,7 +8849,7 @@ var Q = class Ll extends ms {
8847
8849
  }
8848
8850
  });
8849
8851
  function pt(t) {
8850
- return new to({
8852
+ return new oo({
8851
8853
  find: t.find,
8852
8854
  handler: ({ state: e, range: o, match: a }) => {
8853
8855
  const n = Te(t.getAttributes, void 0, a);
@@ -8867,7 +8869,7 @@ function pt(t) {
8867
8869
  });
8868
8870
  }
8869
8871
  function ds(t) {
8870
- return new to({
8872
+ return new oo({
8871
8873
  find: t.find,
8872
8874
  handler: ({ state: e, range: o, match: a }) => {
8873
8875
  const n = Te(t.getAttributes, void 0, a) || {}, { tr: s } = e, r = o.from;
@@ -8889,7 +8891,7 @@ function ds(t) {
8889
8891
  });
8890
8892
  }
8891
8893
  function kn(t) {
8892
- return new to({
8894
+ return new oo({
8893
8895
  find: t.find,
8894
8896
  handler: ({ state: e, range: o, match: a }) => {
8895
8897
  const n = e.doc.resolve(o.from), s = Te(t.getAttributes, void 0, a) || {};
@@ -8900,8 +8902,8 @@ function kn(t) {
8900
8902
  undoable: t.undoable
8901
8903
  });
8902
8904
  }
8903
- function xt(t) {
8904
- return new to({
8905
+ function Ft(t) {
8906
+ return new oo({
8905
8907
  find: t.find,
8906
8908
  handler: ({ state: e, range: o, match: a, chain: n }) => {
8907
8909
  const s = Te(t.getAttributes, void 0, a) || {}, r = e.tr.delete(o.from, o.to), i = r.doc.resolve(o.from).blockRange(), l = i && qn(i, t.type, s);
@@ -9193,7 +9195,7 @@ var qg = (t) => "touches" in t, Wg = class {
9193
9195
  };
9194
9196
  function Vg(t, e) {
9195
9197
  const { selection: o } = t, { $from: a } = o;
9196
- if (o instanceof x) {
9198
+ if (o instanceof F) {
9197
9199
  const s = a.index();
9198
9200
  return a.parent.canReplaceWith(s, s + 1, e);
9199
9201
  }
@@ -9212,7 +9214,7 @@ function zl(t) {
9212
9214
  var Kg = {};
9213
9215
  ss(Kg, {
9214
9216
  createAtomBlockMarkdownSpec: () => Ug,
9215
- createBlockMarkdownSpec: () => Ea,
9217
+ createBlockMarkdownSpec: () => xa,
9216
9218
  createInlineMarkdownSpec: () => Xg,
9217
9219
  parseAttributes: () => gs,
9218
9220
  parseIndentedBlocks: () => yn,
@@ -9297,7 +9299,7 @@ function Ug(t) {
9297
9299
  }
9298
9300
  };
9299
9301
  }
9300
- function Ea(t) {
9302
+ function xa(t) {
9301
9303
  const {
9302
9304
  nodeName: e,
9303
9305
  name: o,
@@ -9341,7 +9343,7 @@ function Ea(t) {
9341
9343
  const [b, j = ""] = h, y = n(j);
9342
9344
  let I = 1;
9343
9345
  const w = b.length;
9344
- let F = "";
9346
+ let E = "";
9345
9347
  const D = /^:::([\w-]*)(\s.*)?/gm, C = m.slice(w);
9346
9348
  for (D.lastIndex = 0; ; ) {
9347
9349
  const L = D.exec(C);
@@ -9353,10 +9355,10 @@ function Ea(t) {
9353
9355
  I += 1;
9354
9356
  else if (I -= 1, I === 0) {
9355
9357
  const N = C.slice(0, R);
9356
- F = N.trim();
9358
+ E = N.trim();
9357
9359
  const H = m.slice(0, w + R + L[0].length);
9358
9360
  let P = [];
9359
- if (F)
9361
+ if (E)
9360
9362
  if (i === "block")
9361
9363
  for (P = g.blockTokens(N), P.forEach((z) => {
9362
9364
  z.text && (!z.tokens || z.tokens.length === 0) && (z.tokens = g.inlineTokens(z.text));
@@ -9368,12 +9370,12 @@ function Ea(t) {
9368
9370
  break;
9369
9371
  }
9370
9372
  else
9371
- P = g.inlineTokens(F);
9373
+ P = g.inlineTokens(E);
9372
9374
  return {
9373
9375
  type: e,
9374
9376
  raw: H,
9375
9377
  attributes: y,
9376
- content: F,
9378
+ content: E,
9377
9379
  tokens: P
9378
9380
  };
9379
9381
  }
@@ -9500,10 +9502,10 @@ function yn(t, e, o) {
9500
9502
  for (c += 1; c < i.length; ) {
9501
9503
  const w = i[c];
9502
9504
  if (w.trim() === "") {
9503
- const F = i.slice(c + 1).findIndex((D) => D.trim() !== "");
9504
- if (F === -1)
9505
+ const E = i.slice(c + 1).findIndex((D) => D.trim() !== "");
9506
+ if (E === -1)
9505
9507
  break;
9506
- if ((((n = (a = i[c + 1 + F].match(/^(\s*)/)) == null ? void 0 : a[1]) == null ? void 0 : n.length) || 0) > f) {
9508
+ if ((((n = (a = i[c + 1 + E].match(/^(\s*)/)) == null ? void 0 : a[1]) == null ? void 0 : n.length) || 0) > f) {
9507
9509
  b.push(w), p = `${p}${w}
9508
9510
  `, c += 1;
9509
9511
  continue;
@@ -9519,7 +9521,7 @@ function yn(t, e, o) {
9519
9521
  let j;
9520
9522
  const y = b.slice(1);
9521
9523
  if (y.length > 0) {
9522
- const w = y.map((F) => F.slice(f + m)).join(`
9524
+ const w = y.map((E) => E.slice(f + m)).join(`
9523
9525
  `);
9524
9526
  w.trim() && (e.customNestedParser ? j = e.customNestedParser(w) : j = o.blockTokens(w));
9525
9527
  }
@@ -9629,11 +9631,11 @@ var Yg = Object.defineProperty, Zg = (t, e) => {
9629
9631
  };
9630
9632
  },
9631
9633
  addInputRules() {
9632
- let t = xt({
9634
+ let t = Ft({
9633
9635
  find: yr,
9634
9636
  type: this.type
9635
9637
  });
9636
- return (this.options.keepMarks || this.options.keepAttributes) && (t = xt({
9638
+ return (this.options.keepMarks || this.options.keepAttributes) && (t = Ft({
9637
9639
  find: yr,
9638
9640
  type: this.type,
9639
9641
  keepMarks: this.options.keepMarks,
@@ -9642,7 +9644,7 @@ var Yg = Object.defineProperty, Zg = (t, e) => {
9642
9644
  editor: this.editor
9643
9645
  })), [t];
9644
9646
  }
9645
- }), Ol = V.create({
9647
+ }), Bl = V.create({
9646
9648
  name: "listItem",
9647
9649
  addOptions() {
9648
9650
  return {
@@ -9714,30 +9716,30 @@ var Yg = Object.defineProperty, Zg = (t, e) => {
9714
9716
  }
9715
9717
  }), eu = {};
9716
9718
  Zg(eu, {
9717
- findListItemPos: () => oo,
9719
+ findListItemPos: () => ao,
9718
9720
  getNextListDepth: () => hs,
9719
9721
  handleBackspace: () => _n,
9720
9722
  handleDelete: () => wn,
9721
- hasListBefore: () => Bl,
9723
+ hasListBefore: () => Ol,
9722
9724
  hasListItemAfter: () => tu,
9723
9725
  hasListItemBefore: () => Hl,
9724
9726
  listItemHasSubList: () => Pl,
9725
9727
  nextListIsDeeper: () => ql,
9726
9728
  nextListIsHigher: () => Wl
9727
9729
  });
9728
- var oo = (t, e) => {
9730
+ var ao = (t, e) => {
9729
9731
  const { $from: o } = e.selection, a = Y(t, e.schema);
9730
9732
  let n = null, s = o.depth, r = o.pos, i = null;
9731
9733
  for (; s > 0 && i === null; )
9732
9734
  n = o.node(s), n.type === a ? i = s : (s -= 1, r -= 1);
9733
9735
  return i === null ? null : { $pos: e.doc.resolve(r), depth: i };
9734
9736
  }, hs = (t, e) => {
9735
- const o = oo(t, e);
9737
+ const o = ao(t, e);
9736
9738
  if (!o)
9737
9739
  return !1;
9738
9740
  const [, a] = sg(e, t, o.$pos.pos + 4);
9739
9741
  return a;
9740
- }, Bl = (t, e, o) => {
9742
+ }, Ol = (t, e, o) => {
9741
9743
  const { $anchor: a } = t.selection, n = Math.max(0, a.pos - 2), s = t.doc.resolve(n).node();
9742
9744
  return !(!s || !o.includes(s.type.name));
9743
9745
  }, Hl = (t, e) => {
@@ -9757,7 +9759,7 @@ var oo = (t, e) => {
9757
9759
  return !0;
9758
9760
  if (t.state.selection.from !== t.state.selection.to)
9759
9761
  return !1;
9760
- if (!Ue(t.state, e) && Bl(t.state, e, o)) {
9762
+ if (!Ue(t.state, e) && Ol(t.state, e, o)) {
9761
9763
  const { $anchor: r } = t.state.selection, i = t.state.doc.resolve(r.before() - 1), l = [];
9762
9764
  i.node().descendants((m, d) => {
9763
9765
  m.type.name === e && l.push({ node: m, pos: d });
@@ -9770,16 +9772,16 @@ var oo = (t, e) => {
9770
9772
  }
9771
9773
  if (!Ue(t.state, e) || !lg(t.state))
9772
9774
  return !1;
9773
- const a = oo(e, t.state);
9775
+ const a = ao(e, t.state);
9774
9776
  if (!a)
9775
9777
  return !1;
9776
9778
  const n = t.state.doc.resolve(a.$pos.pos - 2).node(a.depth), s = Pl(e, t.state, n);
9777
9779
  return Hl(e, t.state) && !s ? t.commands.joinItemBackward() : t.chain().liftListItem(e).run();
9778
9780
  }, ql = (t, e) => {
9779
- const o = hs(t, e), a = oo(t, e);
9781
+ const o = hs(t, e), a = ao(t, e);
9780
9782
  return !a || !o ? !1 : o > a.depth;
9781
9783
  }, Wl = (t, e) => {
9782
- const o = hs(t, e), a = oo(t, e);
9784
+ const o = hs(t, e), a = ao(t, e);
9783
9785
  return !a || !o ? !1 : o < a.depth;
9784
9786
  }, wn = (t, e) => {
9785
9787
  if (!Ue(t.state, e) || !ig(t.state, e))
@@ -10028,13 +10030,13 @@ var ru = "listItem", wr = "textStyle", Dr = /^(\d+)\.\s$/, Kl = V.create({
10028
10030
  };
10029
10031
  },
10030
10032
  addInputRules() {
10031
- let t = xt({
10033
+ let t = Ft({
10032
10034
  find: Dr,
10033
10035
  type: this.type,
10034
10036
  getAttributes: (e) => ({ start: +e[1] }),
10035
10037
  joinPredicate: (e, o) => o.childCount + o.attrs.start === +e[1]
10036
10038
  });
10037
- return (this.options.keepMarks || this.options.keepAttributes) && (t = xt({
10039
+ return (this.options.keepMarks || this.options.keepAttributes) && (t = Ft({
10038
10040
  find: Dr,
10039
10041
  type: this.type,
10040
10042
  keepMarks: this.options.keepMarks,
@@ -10171,7 +10173,7 @@ var ru = "listItem", wr = "textStyle", Dr = /^(\d+)\.\s$/, Kl = V.create({
10171
10173
  },
10172
10174
  addInputRules() {
10173
10175
  return [
10174
- xt({
10176
+ Ft({
10175
10177
  find: iu,
10176
10178
  type: this.type,
10177
10179
  getAttributes: (t) => ({
@@ -10297,7 +10299,7 @@ Q.create({
10297
10299
  name: "listKit",
10298
10300
  addExtensions() {
10299
10301
  const t = [];
10300
- return this.options.bulletList !== !1 && t.push(Nl.configure(this.options.bulletList)), this.options.listItem !== !1 && t.push(Ol.configure(this.options.listItem)), this.options.listKeymap !== !1 && t.push(ou.configure(this.options.listKeymap)), this.options.orderedList !== !1 && t.push(Kl.configure(this.options.orderedList)), this.options.taskItem !== !1 && t.push(lu.configure(this.options.taskItem)), this.options.taskList !== !1 && t.push(pu.configure(this.options.taskList)), t;
10302
+ return this.options.bulletList !== !1 && t.push(Nl.configure(this.options.bulletList)), this.options.listItem !== !1 && t.push(Bl.configure(this.options.listItem)), this.options.listKeymap !== !1 && t.push(ou.configure(this.options.listKeymap)), this.options.orderedList !== !1 && t.push(Kl.configure(this.options.orderedList)), this.options.taskItem !== !1 && t.push(lu.configure(this.options.taskItem)), this.options.taskList !== !1 && t.push(pu.configure(this.options.taskList)), t;
10301
10303
  }
10302
10304
  });
10303
10305
  class ee extends A {
@@ -10370,7 +10372,7 @@ class ee extends A {
10370
10372
  for (; ; ) {
10371
10373
  let r = o > 0 ? s.firstChild : s.lastChild;
10372
10374
  if (!r) {
10373
- if (s.isAtom && !s.isText && !x.isSelectable(s)) {
10375
+ if (s.isAtom && !s.isText && !F.isSelectable(s)) {
10374
10376
  e = e.doc.resolve(n + s.nodeSize * o), a = !1;
10375
10377
  continue e;
10376
10378
  }
@@ -10438,16 +10440,16 @@ function mu(t) {
10438
10440
  return !0;
10439
10441
  }
10440
10442
  vl({
10441
- ArrowLeft: po("horiz", -1),
10442
- ArrowRight: po("horiz", 1),
10443
- ArrowUp: po("vert", -1),
10444
- ArrowDown: po("vert", 1)
10443
+ ArrowLeft: co("horiz", -1),
10444
+ ArrowRight: co("horiz", 1),
10445
+ ArrowUp: co("vert", -1),
10446
+ ArrowDown: co("vert", 1)
10445
10447
  });
10446
- function po(t, e) {
10448
+ function co(t, e) {
10447
10449
  const o = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
10448
10450
  return function(a, n, s) {
10449
10451
  let r = a.selection, i = e > 0 ? r.$to : r.$from, l = r.empty;
10450
- if (r instanceof E) {
10452
+ if (r instanceof x) {
10451
10453
  if (!s.endOfTextblock(o) || i.depth == 0)
10452
10454
  return !1;
10453
10455
  l = !1, i = a.doc.resolve(e > 0 ? i.after() : i.before());
@@ -10516,7 +10518,7 @@ var Vo = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, du = (t, e, o)
10516
10518
  renderHTML({ HTMLAttributes: t }) {
10517
10519
  return ["details", $(this.options.HTMLAttributes, t), 0];
10518
10520
  },
10519
- ...Ea({
10521
+ ...xa({
10520
10522
  nodeName: "details",
10521
10523
  content: "block"
10522
10524
  }),
@@ -10670,7 +10672,7 @@ var Vo = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, du = (t, e, o)
10670
10672
  );
10671
10673
  if (!i.length)
10672
10674
  return;
10673
- const l = i[0], p = (e.selection.from < o.selection.from ? "forward" : "backward") == "forward" ? r.start + l.pos : r.pos + l.pos + l.node.nodeSize, c = E.create(o.doc, p);
10675
+ const l = i[0], p = (e.selection.from < o.selection.from ? "forward" : "backward") == "forward" ? r.start + l.pos : r.pos + l.pos + l.node.nodeSize, c = x.create(o.doc, p);
10674
10676
  return o.tr.setSelection(c);
10675
10677
  }
10676
10678
  })
@@ -10741,14 +10743,14 @@ var Vo = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, du = (t, e, o)
10741
10743
  return !1;
10742
10744
  const { tr: y } = e, I = n.after(-2);
10743
10745
  y.replaceWith(I, I, j);
10744
- const w = y.doc.resolve(I), F = A.near(w, 1);
10745
- y.setSelection(F);
10746
+ const w = y.doc.resolve(I), E = A.near(w, 1);
10747
+ y.setSelection(E);
10746
10748
  const D = u, C = u + g.nodeSize;
10747
10749
  return y.delete(D, C), y.scrollIntoView(), o.dispatch(y), !0;
10748
10750
  }
10749
10751
  };
10750
10752
  },
10751
- ...Ea({
10753
+ ...xa({
10752
10754
  nodeName: "detailsContent"
10753
10755
  })
10754
10756
  }), fu = V.create({
@@ -10772,7 +10774,7 @@ var Vo = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, du = (t, e, o)
10772
10774
  renderHTML({ HTMLAttributes: t }) {
10773
10775
  return ["summary", $(this.options.HTMLAttributes, t), 0];
10774
10776
  },
10775
- ...Ea({
10777
+ ...xa({
10776
10778
  nodeName: "detailsSummary",
10777
10779
  content: "inline"
10778
10780
  })
@@ -10880,10 +10882,10 @@ function hu(t) {
10880
10882
  pos: c,
10881
10883
  n: h - w
10882
10884
  });
10883
- const F = j && j[w];
10884
- if (F) {
10885
+ const E = j && j[w];
10886
+ if (E) {
10885
10887
  const D = (I + w) % e * 2, C = r[D];
10886
- C == null || C != F && r[D + 1] == 1 ? (r[D] = F, r[D + 1] = 1) : C == F && r[D + 1]++;
10888
+ C == null || C != E && r[D + 1] == 1 ? (r[D] = E, r[D + 1] = 1) : C == E && r[D + 1]++;
10887
10889
  }
10888
10890
  }
10889
10891
  }
@@ -10963,7 +10965,7 @@ function re(t) {
10963
10965
  }
10964
10966
  return e;
10965
10967
  }
10966
- const Be = new Z("selectingCells");
10968
+ const Oe = new Z("selectingCells");
10967
10969
  function ct(t) {
10968
10970
  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));
10969
10971
  return null;
@@ -10980,7 +10982,7 @@ function _e(t) {
10980
10982
  for (let o = e.depth; o > 0; o--) if (e.node(o).type.spec.tableRole == "row") return !0;
10981
10983
  return !1;
10982
10984
  }
10983
- function Fa(t) {
10985
+ function Ea(t) {
10984
10986
  const e = t.selection;
10985
10987
  if ("$anchorCell" in e && e.$anchorCell) return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
10986
10988
  if ("node" in e && e.node && e.node.type.spec.tableRole == "cell") return e.$anchor;
@@ -11034,7 +11036,7 @@ function wu(t, e, o) {
11034
11036
  for (let n = 0; n < t.height; n++) if (e.nodeAt(t.map[o + n * t.width]).type != a) return !1;
11035
11037
  return !0;
11036
11038
  }
11037
- var B = class Ae extends A {
11039
+ var O = class Ae extends A {
11038
11040
  constructor(e, o = e) {
11039
11041
  const a = e.node(-1), n = U.get(a), s = e.start(-1), r = n.rectBetween(e.pos - s, o.pos - s), i = e.node(0), l = n.cellsInRect(r).filter((c) => c != o.pos - s);
11040
11042
  l.unshift(o.pos - s);
@@ -11052,7 +11054,7 @@ var B = class Ae extends A {
11052
11054
  const s = this.$anchorCell.node(-1) != a.node(-1);
11053
11055
  return s && this.isRowSelection() ? Ae.rowSelection(a, n) : s && this.isColSelection() ? Ae.colSelection(a, n) : new Ae(a, n);
11054
11056
  }
11055
- return E.between(a, n);
11057
+ return x.between(a, n);
11056
11058
  }
11057
11059
  content() {
11058
11060
  const e = this.$anchorCell.node(-1), o = U.get(e), a = this.$anchorCell.start(-1), n = o.rectBetween(this.$anchorCell.pos - a, this.$headCell.pos - a), s = {}, r = [];
@@ -11142,8 +11144,8 @@ var B = class Ae extends A {
11142
11144
  return new Du(this.$anchorCell.pos, this.$headCell.pos);
11143
11145
  }
11144
11146
  };
11145
- B.prototype.visible = !1;
11146
- A.jsonID("cell", B);
11147
+ O.prototype.visible = !1;
11148
+ A.jsonID("cell", O);
11147
11149
  var Du = class Xl {
11148
11150
  constructor(e, o) {
11149
11151
  this.anchor = e, this.head = o;
@@ -11153,11 +11155,11 @@ var Du = class Xl {
11153
11155
  }
11154
11156
  resolve(e) {
11155
11157
  const o = e.resolve(this.anchor), a = e.resolve(this.head);
11156
- return o.parent.type.spec.tableRole == "row" && a.parent.type.spec.tableRole == "row" && o.index() < o.parent.childCount && a.index() < a.parent.childCount && js(o, a) ? new B(o, a) : A.near(a, 1);
11158
+ return o.parent.type.spec.tableRole == "row" && a.parent.type.spec.tableRole == "row" && o.index() < o.parent.childCount && a.index() < a.parent.childCount && js(o, a) ? new O(o, a) : A.near(a, 1);
11157
11159
  }
11158
11160
  };
11159
11161
  function Iu(t) {
11160
- if (!(t.selection instanceof B)) return null;
11162
+ if (!(t.selection instanceof O)) return null;
11161
11163
  const e = [];
11162
11164
  return t.selection.forEachCell((o, a) => {
11163
11165
  e.push(ue.node(a, a + o.nodeSize, { class: "selectedCell" }));
@@ -11170,7 +11172,7 @@ function Cu({ $from: t, $to: e }) {
11170
11172
  for (let s = e.depth; s >= 0 && !(e.before(s + 1) > e.start(s)); s--, a--) ;
11171
11173
  return o == a && /row|table/.test(t.node(n).type.spec.tableRole);
11172
11174
  }
11173
- function xu({ $from: t, $to: e }) {
11175
+ function Fu({ $from: t, $to: e }) {
11174
11176
  let o, a;
11175
11177
  for (let n = t.depth; n > 0; n--) {
11176
11178
  const s = t.node(n);
@@ -11188,22 +11190,22 @@ function xu({ $from: t, $to: e }) {
11188
11190
  }
11189
11191
  return o !== a && e.parentOffset === 0;
11190
11192
  }
11191
- function Eu(t, e, o) {
11193
+ function xu(t, e, o) {
11192
11194
  const a = (e || t).selection, n = (e || t).doc;
11193
11195
  let s, r;
11194
- if (a instanceof x && (r = a.node.type.spec.tableRole)) {
11195
- if (r == "cell" || r == "header_cell") s = B.create(n, a.from);
11196
+ if (a instanceof F && (r = a.node.type.spec.tableRole)) {
11197
+ if (r == "cell" || r == "header_cell") s = O.create(n, a.from);
11196
11198
  else if (r == "row") {
11197
11199
  const i = n.resolve(a.from + 1);
11198
- s = B.rowSelection(i, i);
11200
+ s = O.rowSelection(i, i);
11199
11201
  } else if (!o) {
11200
11202
  const i = U.get(a.node), l = a.from + 1, p = l + i.map[i.width * i.height - 1];
11201
- s = B.create(n, l + 1, p);
11203
+ s = O.create(n, l + 1, p);
11202
11204
  }
11203
- } else a instanceof E && Cu(a) ? s = E.create(n, a.from) : a instanceof E && xu(a) && (s = E.create(n, a.$from.start(), a.$from.end()));
11205
+ } else a instanceof x && Cu(a) ? s = x.create(n, a.from) : a instanceof x && Fu(a) && (s = x.create(n, a.$from.start(), a.$from.end()));
11204
11206
  return s && (e || (e = t.tr)).setSelection(s), e;
11205
11207
  }
11206
- const Fu = new Z("fix-tables");
11208
+ const Eu = new Z("fix-tables");
11207
11209
  function Yl(t, e, o, a) {
11208
11210
  const n = t.childCount, s = e.childCount;
11209
11211
  e: for (let r = 0, i = 0; r < s; r++) {
@@ -11273,12 +11275,12 @@ function Au(t, e, o, a) {
11273
11275
  }
11274
11276
  p = m;
11275
11277
  }
11276
- return a.setMeta(Fu, { fixTables: !0 });
11278
+ return a.setMeta(Eu, { fixTables: !0 });
11277
11279
  }
11278
- function xe(t) {
11279
- const e = t.selection, o = Fa(t), a = o.node(-1), n = o.start(-1), s = U.get(a);
11280
+ function Fe(t) {
11281
+ const e = t.selection, o = Ea(t), a = o.node(-1), n = o.start(-1), s = U.get(a);
11280
11282
  return {
11281
- ...e instanceof B ? s.rectBetween(e.$anchorCell.pos - n, e.$headCell.pos - n) : s.findCell(o.pos - n),
11283
+ ...e instanceof O ? s.rectBetween(e.$anchorCell.pos - n, e.$headCell.pos - n) : s.findCell(o.pos - n),
11282
11284
  tableStart: n,
11283
11285
  map: s,
11284
11286
  table: a
@@ -11302,7 +11304,7 @@ function Ql(t, { map: e, tableStart: o, table: a }, n) {
11302
11304
  function Su(t, e) {
11303
11305
  if (!_e(t)) return !1;
11304
11306
  if (e) {
11305
- const o = xe(t);
11307
+ const o = Fe(t);
11306
11308
  e(Ql(t.tr, o, o.left));
11307
11309
  }
11308
11310
  return !0;
@@ -11310,7 +11312,7 @@ function Su(t, e) {
11310
11312
  function Mu(t, e) {
11311
11313
  if (!_e(t)) return !1;
11312
11314
  if (e) {
11313
- const o = xe(t);
11315
+ const o = Fe(t);
11314
11316
  e(Ql(t.tr, o, o.right));
11315
11317
  }
11316
11318
  return !0;
@@ -11330,7 +11332,7 @@ function Tu(t, { map: e, table: o, tableStart: a }, n) {
11330
11332
  function Lu(t, e) {
11331
11333
  if (!_e(t)) return !1;
11332
11334
  if (e) {
11333
- const o = xe(t), a = t.tr;
11335
+ const o = Fe(t), a = t.tr;
11334
11336
  if (o.left == 0 && o.right == o.map.width) return !1;
11335
11337
  for (let n = o.right - 1; Tu(a, o, n), n != o.left; n--) {
11336
11338
  const s = o.tableStart ? a.doc.nodeAt(o.tableStart - 1) : a.doc;
@@ -11369,7 +11371,7 @@ function ep(t, { map: e, tableStart: o, table: a }, n) {
11369
11371
  function zu(t, e) {
11370
11372
  if (!_e(t)) return !1;
11371
11373
  if (e) {
11372
- const o = xe(t);
11374
+ const o = Fe(t);
11373
11375
  e(ep(t.tr, o, o.top));
11374
11376
  }
11375
11377
  return !0;
@@ -11377,7 +11379,7 @@ function zu(t, e) {
11377
11379
  function Ru(t, e) {
11378
11380
  if (!_e(t)) return !1;
11379
11381
  if (e) {
11380
- const o = xe(t);
11382
+ const o = Fe(t);
11381
11383
  e(ep(t.tr, o, o.bottom));
11382
11384
  }
11383
11385
  return !0;
@@ -11407,10 +11409,10 @@ function Nu(t, { map: e, table: o, tableStart: a }, n) {
11407
11409
  }
11408
11410
  }
11409
11411
  }
11410
- function Ou(t, e) {
11412
+ function Bu(t, e) {
11411
11413
  if (!_e(t)) return !1;
11412
11414
  if (e) {
11413
- const o = xe(t), a = t.tr;
11415
+ const o = Fe(t), a = t.tr;
11414
11416
  if (o.top == 0 && o.bottom == o.map.height) return !1;
11415
11417
  for (let n = o.bottom - 1; Nu(a, o, n), n != o.top; n--) {
11416
11418
  const s = o.tableStart ? a.doc.nodeAt(o.tableStart - 1) : a.doc;
@@ -11425,7 +11427,7 @@ function Cr(t) {
11425
11427
  const e = t.content;
11426
11428
  return e.childCount == 1 && e.child(0).isTextblock && e.child(0).childCount == 0;
11427
11429
  }
11428
- function Bu({ width: t, height: e, map: o }, a) {
11430
+ function Ou({ width: t, height: e, map: o }, a) {
11429
11431
  let n = a.top * t + a.left, s = n, r = (a.bottom - 1) * t + a.left, i = n + (a.right - a.left - 1);
11430
11432
  for (let l = a.top; l < a.bottom; l++) {
11431
11433
  if (a.left > 0 && o[s] == o[s - 1] || a.right < t && o[i] == o[i + 1]) return !0;
@@ -11437,11 +11439,11 @@ function Bu({ width: t, height: e, map: o }, a) {
11437
11439
  }
11438
11440
  return !1;
11439
11441
  }
11440
- function xr(t, e) {
11442
+ function Fr(t, e) {
11441
11443
  const o = t.selection;
11442
- if (!(o instanceof B) || o.$anchorCell.pos == o.$headCell.pos) return !1;
11443
- const a = xe(t), { map: n } = a;
11444
- if (Bu(n, a)) return !1;
11444
+ if (!(o instanceof O) || o.$anchorCell.pos == o.$headCell.pos) return !1;
11445
+ const a = Fe(t), { map: n } = a;
11446
+ if (Ou(n, a)) return !1;
11445
11447
  if (e) {
11446
11448
  const s = t.tr, r = {};
11447
11449
  let i = v.empty, l, p;
@@ -11464,11 +11466,11 @@ function xr(t, e) {
11464
11466
  const c = l + 1 + p.content.size, m = Cr(p) ? l + 1 : c;
11465
11467
  s.replaceWith(m + a.tableStart, c + a.tableStart, i);
11466
11468
  }
11467
- s.setSelection(new B(s.doc.resolve(l + a.tableStart))), e(s);
11469
+ s.setSelection(new O(s.doc.resolve(l + a.tableStart))), e(s);
11468
11470
  }
11469
11471
  return !0;
11470
11472
  }
11471
- function Er(t, e) {
11473
+ function xr(t, e) {
11472
11474
  const o = re(t.schema);
11473
11475
  return Hu(({ node: a }) => o[a.type.spec.tableRole])(t, e);
11474
11476
  }
@@ -11476,7 +11478,7 @@ function Hu(t) {
11476
11478
  return (e, o) => {
11477
11479
  const a = e.selection;
11478
11480
  let n, s;
11479
- if (a instanceof B) {
11481
+ if (a instanceof O) {
11480
11482
  if (a.$anchorCell.pos != a.$headCell.pos) return !1;
11481
11483
  n = a.$anchorCell.nodeAfter, s = a.$anchorCell.pos;
11482
11484
  } else {
@@ -11495,7 +11497,7 @@ function Hu(t) {
11495
11497
  ...i,
11496
11498
  colspan: 1
11497
11499
  });
11498
- const c = xe(e), m = e.tr;
11500
+ const c = Fe(e), m = e.tr;
11499
11501
  for (let g = 0; g < c.right - c.left; g++) l.push(p ? {
11500
11502
  ...i,
11501
11503
  colwidth: p && p[g] ? [p[g]] : null
@@ -11515,7 +11517,7 @@ function Hu(t) {
11515
11517
  node: n,
11516
11518
  row: c.top,
11517
11519
  col: c.left
11518
- }), l[0]), a instanceof B && m.setSelection(new B(m.doc.resolve(a.$anchorCell.pos), d ? m.doc.resolve(d) : void 0)), o(m);
11520
+ }), l[0]), a instanceof O && m.setSelection(new O(m.doc.resolve(a.$anchorCell.pos), d ? m.doc.resolve(d) : void 0)), o(m);
11519
11521
  }
11520
11522
  return !0;
11521
11523
  };
@@ -11523,11 +11525,11 @@ function Hu(t) {
11523
11525
  function Pu(t, e) {
11524
11526
  return function(o, a) {
11525
11527
  if (!_e(o)) return !1;
11526
- const n = Fa(o);
11528
+ const n = Ea(o);
11527
11529
  if (n.nodeAfter.attrs[t] === e) return !1;
11528
11530
  if (a) {
11529
11531
  const s = o.tr;
11530
- o.selection instanceof B ? o.selection.forEachCell((r, i) => {
11532
+ o.selection instanceof O ? o.selection.forEachCell((r, i) => {
11531
11533
  r.attrs[t] !== e && s.setNodeMarkup(i, null, {
11532
11534
  ...r.attrs,
11533
11535
  [t]: e
@@ -11544,7 +11546,7 @@ function qu(t) {
11544
11546
  return function(e, o) {
11545
11547
  if (!_e(e)) return !1;
11546
11548
  if (o) {
11547
- const a = re(e.schema), n = xe(e), s = e.tr, r = n.map.cellsInRect(t == "column" ? {
11549
+ const a = re(e.schema), n = Fe(e), s = e.tr, r = n.map.cellsInRect(t == "column" ? {
11548
11550
  left: n.left,
11549
11551
  top: 0,
11550
11552
  right: n.right,
@@ -11562,7 +11564,7 @@ function qu(t) {
11562
11564
  return !0;
11563
11565
  };
11564
11566
  }
11565
- function Fr(t, e, o) {
11567
+ function Er(t, e, o) {
11566
11568
  const a = e.map.cellsInRect({
11567
11569
  left: 0,
11568
11570
  top: 0,
@@ -11575,11 +11577,11 @@ function Fr(t, e, o) {
11575
11577
  }
11576
11578
  return !0;
11577
11579
  }
11578
- function Xt(t, e) {
11580
+ function Yt(t, e) {
11579
11581
  return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? qu(t) : function(o, a) {
11580
11582
  if (!_e(o)) return !1;
11581
11583
  if (a) {
11582
- const n = re(o.schema), s = xe(o), r = o.tr, i = Fr("row", s, n), l = Fr("column", s, n), p = (t === "column" ? i : t === "row" && l) ? 1 : 0, c = t == "column" ? {
11584
+ const n = re(o.schema), s = Fe(o), r = o.tr, i = Er("row", s, n), l = Er("column", s, n), p = (t === "column" ? i : t === "row" && l) ? 1 : 0, c = t == "column" ? {
11583
11585
  left: 0,
11584
11586
  top: p,
11585
11587
  right: 1,
@@ -11598,9 +11600,9 @@ function Xt(t, e) {
11598
11600
  return !0;
11599
11601
  };
11600
11602
  }
11601
- Xt("row", { useDeprecatedLogic: !0 });
11602
- Xt("column", { useDeprecatedLogic: !0 });
11603
- const Wu = Xt("cell", { useDeprecatedLogic: !0 });
11603
+ Yt("row", { useDeprecatedLogic: !0 });
11604
+ Yt("column", { useDeprecatedLogic: !0 });
11605
+ const Wu = Yt("cell", { useDeprecatedLogic: !0 });
11604
11606
  function Vu(t, e) {
11605
11607
  if (e < 0) {
11606
11608
  const o = t.nodeBefore;
@@ -11624,11 +11626,11 @@ function Vu(t, e) {
11624
11626
  function Ar(t) {
11625
11627
  return function(e, o) {
11626
11628
  if (!_e(e)) return !1;
11627
- const a = Vu(Fa(e), t);
11629
+ const a = Vu(Ea(e), t);
11628
11630
  if (a == null) return !1;
11629
11631
  if (o) {
11630
11632
  const n = e.doc.resolve(a);
11631
- o(e.tr.setSelection(E.between(n, _u(n))).scrollIntoView());
11633
+ o(e.tr.setSelection(x.between(n, _u(n))).scrollIntoView());
11632
11634
  }
11633
11635
  return !0;
11634
11636
  };
@@ -11639,9 +11641,9 @@ function Ku(t, e) {
11639
11641
  return e && e(t.tr.delete(o.before(a), o.after(a)).scrollIntoView()), !0;
11640
11642
  return !1;
11641
11643
  }
11642
- function co(t, e) {
11644
+ function mo(t, e) {
11643
11645
  const o = t.selection;
11644
- if (!(o instanceof B)) return !1;
11646
+ if (!(o instanceof O)) return !1;
11645
11647
  if (e) {
11646
11648
  const a = t.tr, n = re(t.schema).cell.createAndFill().content;
11647
11649
  o.forEachCell((s, r) => {
@@ -11659,9 +11661,9 @@ function Uu(t) {
11659
11661
  if (s == "row") for (let l = 0; l < e.childCount; l++) {
11660
11662
  let p = e.child(l).content;
11661
11663
  const c = l ? 0 : Math.max(0, o - 1), m = l < e.childCount - 1 ? 0 : Math.max(0, a - 1);
11662
- (c || m) && (p = xn(re(r).row, new _(p, c, m)).content), i.push(p);
11664
+ (c || m) && (p = Fn(re(r).row, new _(p, c, m)).content), i.push(p);
11663
11665
  }
11664
- else if (s == "cell" || s == "header_cell") i.push(o || a ? xn(re(r).row, new _(e, o, a)).content : e);
11666
+ else if (s == "cell" || s == "header_cell") i.push(o || a ? Fn(re(r).row, new _(e, o, a)).content : e);
11665
11667
  else return null;
11666
11668
  return Ju(r, i);
11667
11669
  }
@@ -11688,7 +11690,7 @@ function Ju(t, e) {
11688
11690
  rows: e
11689
11691
  };
11690
11692
  }
11691
- function xn(t, e) {
11693
+ function Fn(t, e) {
11692
11694
  const o = t.createAndFill();
11693
11695
  return new Mi(o).replace(0, o.content.size, e).doc;
11694
11696
  }
@@ -11798,74 +11800,74 @@ function Tr(t, e, o, a, n) {
11798
11800
  const f = r.positionAt(u, l, s), h = r.positionAt(u, p, s);
11799
11801
  m.replace(m.mapping.slice(d).map(f + o), m.mapping.slice(d).map(h + o), new _(n.rows[u - i], 0, 0));
11800
11802
  }
11801
- g(), m.setSelection(new B(m.doc.resolve(o + r.positionAt(i, l, s)), m.doc.resolve(o + r.positionAt(c - 1, p - 1, s)))), e(m);
11803
+ g(), m.setSelection(new O(m.doc.resolve(o + r.positionAt(i, l, s)), m.doc.resolve(o + r.positionAt(c - 1, p - 1, s)))), e(m);
11802
11804
  }
11803
11805
  const Yu = vl({
11804
- ArrowLeft: mo("horiz", -1),
11805
- ArrowRight: mo("horiz", 1),
11806
- ArrowUp: mo("vert", -1),
11807
- ArrowDown: mo("vert", 1),
11808
- "Shift-ArrowLeft": go("horiz", -1),
11809
- "Shift-ArrowRight": go("horiz", 1),
11810
- "Shift-ArrowUp": go("vert", -1),
11811
- "Shift-ArrowDown": go("vert", 1),
11812
- Backspace: co,
11813
- "Mod-Backspace": co,
11814
- Delete: co,
11815
- "Mod-Delete": co
11806
+ ArrowLeft: go("horiz", -1),
11807
+ ArrowRight: go("horiz", 1),
11808
+ ArrowUp: go("vert", -1),
11809
+ ArrowDown: go("vert", 1),
11810
+ "Shift-ArrowLeft": uo("horiz", -1),
11811
+ "Shift-ArrowRight": uo("horiz", 1),
11812
+ "Shift-ArrowUp": uo("vert", -1),
11813
+ "Shift-ArrowDown": uo("vert", 1),
11814
+ Backspace: mo,
11815
+ "Mod-Backspace": mo,
11816
+ Delete: mo,
11817
+ "Mod-Delete": mo
11816
11818
  });
11817
- function xo(t, e, o) {
11819
+ function Fo(t, e, o) {
11818
11820
  return o.eq(t.selection) ? !1 : (e && e(t.tr.setSelection(o).scrollIntoView()), !0);
11819
11821
  }
11820
- function mo(t, e) {
11822
+ function go(t, e) {
11821
11823
  return (o, a, n) => {
11822
11824
  if (!n) return !1;
11823
11825
  const s = o.selection;
11824
- if (s instanceof B) return xo(o, a, A.near(s.$headCell, e));
11826
+ if (s instanceof O) return Fo(o, a, A.near(s.$headCell, e));
11825
11827
  if (t != "horiz" && !s.empty) return !1;
11826
11828
  const r = tp(n, t, e);
11827
11829
  if (r == null) return !1;
11828
- if (t == "horiz") return xo(o, a, A.near(o.doc.resolve(s.head + e), e));
11830
+ if (t == "horiz") return Fo(o, a, A.near(o.doc.resolve(s.head + e), e));
11829
11831
  {
11830
11832
  const i = o.doc.resolve(r), l = Jl(i, t, e);
11831
11833
  let p;
11832
- return l ? p = A.near(l, 1) : e < 0 ? p = A.near(o.doc.resolve(i.before(-1)), -1) : p = A.near(o.doc.resolve(i.after(-1)), 1), xo(o, a, p);
11834
+ return l ? p = A.near(l, 1) : e < 0 ? p = A.near(o.doc.resolve(i.before(-1)), -1) : p = A.near(o.doc.resolve(i.after(-1)), 1), Fo(o, a, p);
11833
11835
  }
11834
11836
  };
11835
11837
  }
11836
- function go(t, e) {
11838
+ function uo(t, e) {
11837
11839
  return (o, a, n) => {
11838
11840
  if (!n) return !1;
11839
11841
  const s = o.selection;
11840
11842
  let r;
11841
- if (s instanceof B) r = s;
11843
+ if (s instanceof O) r = s;
11842
11844
  else {
11843
11845
  const l = tp(n, t, e);
11844
11846
  if (l == null) return !1;
11845
- r = new B(o.doc.resolve(l));
11847
+ r = new O(o.doc.resolve(l));
11846
11848
  }
11847
11849
  const i = Jl(r.$headCell, t, e);
11848
- return i ? xo(o, a, new B(r.$anchorCell, i)) : !1;
11850
+ return i ? Fo(o, a, new O(r.$anchorCell, i)) : !1;
11849
11851
  };
11850
11852
  }
11851
11853
  function Zu(t, e) {
11852
11854
  const o = t.state.doc, a = ct(o.resolve(e));
11853
- return a ? (t.dispatch(t.state.tr.setSelection(new B(a))), !0) : !1;
11855
+ return a ? (t.dispatch(t.state.tr.setSelection(new O(a))), !0) : !1;
11854
11856
  }
11855
11857
  function Qu(t, e, o) {
11856
11858
  if (!_e(t.state)) return !1;
11857
11859
  let a = Uu(o);
11858
11860
  const n = t.state.selection;
11859
- if (n instanceof B) {
11861
+ if (n instanceof O) {
11860
11862
  a || (a = {
11861
11863
  width: 1,
11862
11864
  height: 1,
11863
- rows: [v.from(xn(re(t.state.schema).cell, o))]
11865
+ rows: [v.from(Fn(re(t.state.schema).cell, o))]
11864
11866
  });
11865
11867
  const s = n.$anchorCell.node(-1), r = n.$anchorCell.start(-1), i = U.get(s).rectBetween(n.$anchorCell.pos - r, n.$headCell.pos - r);
11866
11868
  return a = Gu(a, i.right - i.left, i.bottom - i.top), Tr(t.state, t.dispatch, r, i, a), !0;
11867
11869
  } else if (a) {
11868
- const s = Fa(t.state), r = s.start(-1);
11870
+ const s = Ea(t.state), r = s.start(-1);
11869
11871
  return Tr(t.state, t.dispatch, r, U.get(s.node(-1)).findCell(s.pos - r), a), !0;
11870
11872
  } else return !1;
11871
11873
  }
@@ -11874,27 +11876,27 @@ function ef(t, e) {
11874
11876
  if (e.button != 0 || e.ctrlKey || e.metaKey) return;
11875
11877
  const a = Lr(t, e.target);
11876
11878
  let n;
11877
- if (e.shiftKey && t.state.selection instanceof B)
11879
+ if (e.shiftKey && t.state.selection instanceof O)
11878
11880
  s(t.state.selection.$anchorCell, e), e.preventDefault();
11879
11881
  else if (e.shiftKey && a && (n = ct(t.state.selection.$anchor)) != null && ((o = Ka(t, e)) === null || o === void 0 ? void 0 : o.pos) != n.pos)
11880
11882
  s(n, e), e.preventDefault();
11881
11883
  else if (!a) return;
11882
11884
  function s(l, p) {
11883
11885
  let c = Ka(t, p);
11884
- const m = Be.getState(t.state) == null;
11886
+ const m = Oe.getState(t.state) == null;
11885
11887
  if (!c || !js(l, c)) if (m) c = l;
11886
11888
  else return;
11887
- const d = new B(l, c);
11889
+ const d = new O(l, c);
11888
11890
  if (m || !t.state.selection.eq(d)) {
11889
11891
  const g = t.state.tr.setSelection(d);
11890
- m && g.setMeta(Be, l.pos), t.dispatch(g);
11892
+ m && g.setMeta(Oe, l.pos), t.dispatch(g);
11891
11893
  }
11892
11894
  }
11893
11895
  function r() {
11894
- t.root.removeEventListener("mouseup", r), t.root.removeEventListener("dragstart", r), t.root.removeEventListener("mousemove", i), Be.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(Be, -1));
11896
+ t.root.removeEventListener("mouseup", r), t.root.removeEventListener("dragstart", r), t.root.removeEventListener("mousemove", i), Oe.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(Oe, -1));
11895
11897
  }
11896
11898
  function i(l) {
11897
- const p = l, c = Be.getState(t.state);
11899
+ const p = l, c = Oe.getState(t.state);
11898
11900
  let m;
11899
11901
  if (c != null) m = t.state.doc.resolve(c);
11900
11902
  else if (Lr(t, p.target) != a && (m = Ka(t, e), !m))
@@ -11904,7 +11906,7 @@ function ef(t, e) {
11904
11906
  t.root.addEventListener("mouseup", r), t.root.addEventListener("dragstart", r), t.root.addEventListener("mousemove", i);
11905
11907
  }
11906
11908
  function tp(t, e, o) {
11907
- if (!(t.state.selection instanceof E)) return null;
11909
+ if (!(t.state.selection instanceof x)) return null;
11908
11910
  const { $head: a } = t.state.selection;
11909
11911
  for (let n = a.depth - 1; n >= 0; n--) {
11910
11912
  const s = a.node(n);
@@ -11931,16 +11933,16 @@ function Ka(t, e) {
11931
11933
  }
11932
11934
  var tf = class {
11933
11935
  constructor(t, e) {
11934
- this.node = t, this.defaultCellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty("--default-cell-min-width", `${e}px`), this.colgroup = this.table.appendChild(document.createElement("colgroup")), En(t, this.colgroup, this.table, e), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
11936
+ this.node = t, this.defaultCellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty("--default-cell-min-width", `${e}px`), this.colgroup = this.table.appendChild(document.createElement("colgroup")), xn(t, this.colgroup, this.table, e), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
11935
11937
  }
11936
11938
  update(t) {
11937
- return t.type != this.node.type ? !1 : (this.node = t, En(t, this.colgroup, this.table, this.defaultCellMinWidth), !0);
11939
+ return t.type != this.node.type ? !1 : (this.node = t, xn(t, this.colgroup, this.table, this.defaultCellMinWidth), !0);
11938
11940
  }
11939
11941
  ignoreMutation(t) {
11940
11942
  return t.type == "attributes" && (t.target == this.table || this.colgroup.contains(t.target));
11941
11943
  }
11942
11944
  };
11943
- function En(t, e, o, a, n, s) {
11945
+ function xn(t, e, o, a, n, s) {
11944
11946
  let r = 0, i = !0, l = e.firstChild;
11945
11947
  const p = t.firstChild;
11946
11948
  if (p) {
@@ -12003,17 +12005,17 @@ function of({ handleWidth: t = 5, cellMinWidth: e = 25, defaultCellMinWidth: o =
12003
12005
  });
12004
12006
  return s;
12005
12007
  }
12006
- var af = class Eo {
12008
+ var af = class xo {
12007
12009
  constructor(e, o) {
12008
12010
  this.activeHandle = e, this.dragging = o;
12009
12011
  }
12010
12012
  apply(e) {
12011
12013
  const o = this, a = e.getMeta(ge);
12012
- if (a && a.setHandle != null) return new Eo(a.setHandle, !1);
12013
- if (a && a.setDragging !== void 0) return new Eo(o.activeHandle, a.setDragging);
12014
+ if (a && a.setHandle != null) return new xo(a.setHandle, !1);
12015
+ if (a && a.setDragging !== void 0) return new xo(o.activeHandle, a.setDragging);
12014
12016
  if (o.activeHandle > -1 && e.docChanged) {
12015
12017
  let n = e.mapping.map(o.activeHandle, -1);
12016
- return Cn(e.doc.resolve(n)) || (n = -1), new Eo(n, o.dragging);
12018
+ return Cn(e.doc.resolve(n)) || (n = -1), new xo(n, o.dragging);
12017
12019
  }
12018
12020
  return o;
12019
12021
  }
@@ -12118,7 +12120,7 @@ function Rr(t, e, o, a) {
12118
12120
  const n = t.state.doc.resolve(e), s = n.node(-1), r = n.start(-1), i = U.get(s).colCount(n.pos - r) + n.nodeAfter.attrs.colspan - 1;
12119
12121
  let l = t.domAtPos(n.start(-1)).node;
12120
12122
  for (; l && l.nodeName != "TABLE"; ) l = l.parentNode;
12121
- l && En(s, l.firstChild, l, a, i, o);
12123
+ l && xn(s, l.firstChild, l, a, i, o);
12122
12124
  }
12123
12125
  function mf(t) {
12124
12126
  return Array(t).fill(0);
@@ -12139,13 +12141,13 @@ function df(t, e) {
12139
12141
  }
12140
12142
  function gf({ allowTableNodeSelection: t = !1 } = {}) {
12141
12143
  return new se({
12142
- key: Be,
12144
+ key: Oe,
12143
12145
  state: {
12144
12146
  init() {
12145
12147
  return null;
12146
12148
  },
12147
12149
  apply(e, o) {
12148
- const a = e.getMeta(Be);
12150
+ const a = e.getMeta(Oe);
12149
12151
  if (a != null) return a == -1 ? null : a;
12150
12152
  if (o == null || !e.docChanged) return o;
12151
12153
  const { deleted: n, pos: s } = e.mapping.mapResult(o);
@@ -12156,14 +12158,14 @@ function gf({ allowTableNodeSelection: t = !1 } = {}) {
12156
12158
  decorations: Iu,
12157
12159
  handleDOMEvents: { mousedown: ef },
12158
12160
  createSelectionBetween(e) {
12159
- return Be.getState(e.state) != null ? e.state.selection : null;
12161
+ return Oe.getState(e.state) != null ? e.state.selection : null;
12160
12162
  },
12161
12163
  handleTripleClick: Zu,
12162
12164
  handleKeyDown: Yu,
12163
12165
  handlePaste: Qu
12164
12166
  },
12165
12167
  appendTransaction(e, o, a) {
12166
- return Eu(a, Zl(a, o), t);
12168
+ return xu(a, Zl(a, o), t);
12167
12169
  }
12168
12170
  });
12169
12171
  }
@@ -12257,7 +12259,7 @@ var ap = V.create({
12257
12259
  return ["tr", $(this.options.HTMLAttributes, t), 0];
12258
12260
  }
12259
12261
  });
12260
- function Fn(t, e) {
12262
+ function En(t, e) {
12261
12263
  return e ? ["width", `${Math.max(e, t)}px`] : ["min-width", `${t}px`];
12262
12264
  }
12263
12265
  function Nr(t, e, o, a, n, s) {
@@ -12271,12 +12273,12 @@ function Nr(t, e, o, a, n, s) {
12271
12273
  const b = n === g ? s : f && f[h], j = b ? `${b}px` : "";
12272
12274
  if (i += b || a, b || (l = !1), p) {
12273
12275
  if (p.style.width !== j) {
12274
- const [y, I] = Fn(a, b);
12276
+ const [y, I] = En(a, b);
12275
12277
  p.style.setProperty(y, I);
12276
12278
  }
12277
12279
  p = p.nextSibling;
12278
12280
  } else {
12279
- const y = document.createElement("col"), [I, w] = Fn(a, b);
12281
+ const y = document.createElement("col"), [I, w] = En(a, b);
12280
12282
  y.style.setProperty(I, w), e.appendChild(y);
12281
12283
  }
12282
12284
  }
@@ -12310,14 +12312,14 @@ function ff(t, e, o, a) {
12310
12312
  for (let u = 0; u < d; u += 1, m += 1) {
12311
12313
  const f = o === m ? a : g && g[u];
12312
12314
  n += f || e, f || (s = !1);
12313
- const [h, b] = Fn(e, f);
12315
+ const [h, b] = En(e, f);
12314
12316
  r.push(["col", { style: `${h}: ${b}` }]);
12315
12317
  }
12316
12318
  }
12317
12319
  const l = s ? `${n}px` : "", p = s ? "" : `${n}px`;
12318
12320
  return { colgroup: ["colgroup", {}, ...r], tableWidth: l, tableMinWidth: p };
12319
12321
  }
12320
- function Or(t, e) {
12322
+ function Br(t, e) {
12321
12323
  return t.createAndFill();
12322
12324
  }
12323
12325
  function hf(t) {
@@ -12332,9 +12334,9 @@ function hf(t) {
12332
12334
  function bf(t, e, o, a, n) {
12333
12335
  const s = hf(t), r = [], i = [];
12334
12336
  for (let p = 0; p < o; p += 1) {
12335
- const c = Or(s.cell);
12337
+ const c = Br(s.cell);
12336
12338
  if (c && i.push(c), a) {
12337
- const m = Or(s.header_cell);
12339
+ const m = Br(s.header_cell);
12338
12340
  m && r.push(m);
12339
12341
  }
12340
12342
  }
@@ -12344,14 +12346,14 @@ function bf(t, e, o, a, n) {
12344
12346
  return s.table.createChecked(null, l);
12345
12347
  }
12346
12348
  function jf(t) {
12347
- return t instanceof B;
12349
+ return t instanceof O;
12348
12350
  }
12349
- var uo = ({ editor: t }) => {
12351
+ var fo = ({ editor: t }) => {
12350
12352
  const { selection: e } = t.state;
12351
12353
  if (!jf(e))
12352
12354
  return !1;
12353
12355
  let o = 0;
12354
- const a = El(e.ranges[0].$from, (n) => n.type.name === "table");
12356
+ const a = xl(e.ranges[0].$from, (n) => n.type.name === "table");
12355
12357
  return a == null || a.node.descendants((n) => {
12356
12358
  if (n.type.name === "table")
12357
12359
  return !1;
@@ -12458,7 +12460,7 @@ var _f = yf, rp = V.create({
12458
12460
  const r = bf(s.schema, t, e, o);
12459
12461
  if (n) {
12460
12462
  const i = a.selection.from + 1;
12461
- a.replaceSelectionWith(r).scrollIntoView().setSelection(E.near(a.doc.resolve(i)));
12463
+ a.replaceSelectionWith(r).scrollIntoView().setSelection(x.near(a.doc.resolve(i)));
12462
12464
  }
12463
12465
  return !0;
12464
12466
  },
@@ -12467,21 +12469,21 @@ var _f = yf, rp = V.create({
12467
12469
  deleteColumn: () => ({ state: t, dispatch: e }) => Lu(t, e),
12468
12470
  addRowBefore: () => ({ state: t, dispatch: e }) => zu(t, e),
12469
12471
  addRowAfter: () => ({ state: t, dispatch: e }) => Ru(t, e),
12470
- deleteRow: () => ({ state: t, dispatch: e }) => Ou(t, e),
12472
+ deleteRow: () => ({ state: t, dispatch: e }) => Bu(t, e),
12471
12473
  deleteTable: () => ({ state: t, dispatch: e }) => Ku(t, e),
12472
- mergeCells: () => ({ state: t, dispatch: e }) => xr(t, e),
12473
- splitCell: () => ({ state: t, dispatch: e }) => Er(t, e),
12474
- toggleHeaderColumn: () => ({ state: t, dispatch: e }) => Xt("column")(t, e),
12475
- toggleHeaderRow: () => ({ state: t, dispatch: e }) => Xt("row")(t, e),
12474
+ mergeCells: () => ({ state: t, dispatch: e }) => Fr(t, e),
12475
+ splitCell: () => ({ state: t, dispatch: e }) => xr(t, e),
12476
+ toggleHeaderColumn: () => ({ state: t, dispatch: e }) => Yt("column")(t, e),
12477
+ toggleHeaderRow: () => ({ state: t, dispatch: e }) => Yt("row")(t, e),
12476
12478
  toggleHeaderCell: () => ({ state: t, dispatch: e }) => Wu(t, e),
12477
- mergeOrSplit: () => ({ state: t, dispatch: e }) => xr(t, e) ? !0 : Er(t, e),
12479
+ mergeOrSplit: () => ({ state: t, dispatch: e }) => Fr(t, e) ? !0 : xr(t, e),
12478
12480
  setCellAttribute: (t, e) => ({ state: o, dispatch: a }) => Pu(t, e)(o, a),
12479
12481
  goToNextCell: () => ({ state: t, dispatch: e }) => Ar(1)(t, e),
12480
12482
  goToPreviousCell: () => ({ state: t, dispatch: e }) => Ar(-1)(t, e),
12481
12483
  fixTables: () => ({ state: t, dispatch: e }) => (e && Zl(t), !0),
12482
12484
  setCellSelection: (t) => ({ tr: e, dispatch: o }) => {
12483
12485
  if (o) {
12484
- const a = B.create(e.doc, t.anchorCell, t.headCell);
12486
+ const a = O.create(e.doc, t.anchorCell, t.headCell);
12485
12487
  e.setSelection(a);
12486
12488
  }
12487
12489
  return !0;
@@ -12492,10 +12494,10 @@ var _f = yf, rp = V.create({
12492
12494
  return {
12493
12495
  Tab: () => this.editor.commands.goToNextCell() ? !0 : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : !1,
12494
12496
  "Shift-Tab": () => this.editor.commands.goToPreviousCell(),
12495
- Backspace: uo,
12496
- "Mod-Backspace": uo,
12497
- Delete: uo,
12498
- "Mod-Delete": uo
12497
+ Backspace: fo,
12498
+ "Mod-Backspace": fo,
12499
+ Delete: fo,
12500
+ "Mod-Delete": fo
12499
12501
  };
12500
12502
  },
12501
12503
  addProseMirrorPlugins() {
@@ -12585,13 +12587,13 @@ ${o}
12585
12587
  },
12586
12588
  addInputRules() {
12587
12589
  return [
12588
- xt({
12590
+ Ft({
12589
12591
  find: wf,
12590
12592
  type: this.type
12591
12593
  })
12592
12594
  ];
12593
12595
  }
12594
- }), If = Df, Ua = 4, Cf = /^```([a-z]+)?[\s\n]$/, xf = /^~~~([a-z]+)?[\s\n]$/, Ef = V.create({
12596
+ }), If = Df, Ua = 4, Cf = /^```([a-z]+)?[\s\n]$/, Ff = /^~~~([a-z]+)?[\s\n]$/, xf = V.create({
12595
12597
  name: "codeBlock",
12596
12598
  addOptions() {
12597
12599
  return {
@@ -12720,7 +12722,7 @@ ${o}
12720
12722
  let j = c;
12721
12723
  for (let y = 0; y < g; y += 1)
12722
12724
  j += d[y].length + 1;
12723
- return i.delete(j, j + b), p - j <= b && i.setSelection(E.create(i.doc, j)), !0;
12725
+ return i.delete(j, j + b), p - j <= b && i.setSelection(x.create(i.doc, j)), !0;
12724
12726
  }) : t.commands.command(({ tr: i }) => {
12725
12727
  const { from: l, to: p } = n, c = a.doc.textBetween(l, p, `
12726
12728
  `, `
@@ -12768,7 +12770,7 @@ ${o}
12768
12770
  })
12769
12771
  }),
12770
12772
  kn({
12771
- find: xf,
12773
+ find: Ff,
12772
12774
  type: this.type,
12773
12775
  getAttributes: (t) => ({
12774
12776
  language: t[1]
@@ -12791,13 +12793,13 @@ ${o}
12791
12793
  return !1;
12792
12794
  const { tr: r, schema: i } = t.state, l = i.text(o.replace(/\r\n?/g, `
12793
12795
  `));
12794
- return r.replaceSelectionWith(this.type.create({ language: s }, l)), r.selection.$from.parent.type !== this.type && r.setSelection(E.near(r.doc.resolve(Math.max(0, r.selection.from - 2)))), r.setMeta("paste", !0), t.dispatch(r), !0;
12796
+ return r.replaceSelectionWith(this.type.create({ language: s }, l)), r.selection.$from.parent.type !== this.type && r.setSelection(x.near(r.doc.resolve(Math.max(0, r.selection.from - 2)))), r.setMeta("paste", !0), t.dispatch(r), !0;
12795
12797
  }
12796
12798
  }
12797
12799
  })
12798
12800
  ];
12799
12801
  }
12800
- }), Ff = Ef, Af = V.create({
12802
+ }), Ef = xf, Af = V.create({
12801
12803
  name: "doc",
12802
12804
  topNode: !0,
12803
12805
  content: "block+",
@@ -12879,16 +12881,16 @@ function Lf({
12879
12881
  const R = D.state.tr.setMeta(C, { exit: !0 });
12880
12882
  D.dispatch(R);
12881
12883
  }
12882
- const F = new se({
12884
+ const E = new se({
12883
12885
  key: t,
12884
12886
  view() {
12885
12887
  return {
12886
12888
  update: async (D, C) => {
12887
12889
  var L, R, M, N, H, P, z;
12888
- const T = (L = this.key) == null ? void 0 : L.getState(C), X = (R = this.key) == null ? void 0 : R.getState(D.state), pe = T.active && X.active && T.range.from !== X.range.from, ht = !T.active && X.active, As = T.active && !X.active, Sa = !ht && !As && T.query !== X.query, Ft = ht || pe && Sa, ao = Sa || pe, Ma = As || pe && Sa;
12889
- if (!Ft && !ao && !Ma)
12890
+ const T = (L = this.key) == null ? void 0 : L.getState(C), X = (R = this.key) == null ? void 0 : R.getState(D.state), pe = T.active && X.active && T.range.from !== X.range.from, ht = !T.active && X.active, As = T.active && !X.active, Sa = !ht && !As && T.query !== X.query, Et = ht || pe && Sa, no = Sa || pe, Ma = As || pe && Sa;
12891
+ if (!Et && !no && !Ma)
12890
12892
  return;
12891
- const bt = Ma && !Ft ? T : X, Ss = D.dom.querySelector(`[data-decoration-id="${bt.decorationId}"]`);
12893
+ const bt = Ma && !Et ? T : X, Ss = D.dom.querySelector(`[data-decoration-id="${bt.decorationId}"]`);
12892
12894
  b = {
12893
12895
  editor: e,
12894
12896
  range: bt.range,
@@ -12902,10 +12904,10 @@ function Lf({
12902
12904
  }),
12903
12905
  decorationNode: Ss,
12904
12906
  clientRect: I(D, Ss)
12905
- }, Ft && ((M = j == null ? void 0 : j.onBeforeStart) == null || M.call(j, b)), ao && ((N = j == null ? void 0 : j.onBeforeUpdate) == null || N.call(j, b)), (ao || Ft) && (b.items = await d({
12907
+ }, Et && ((M = j == null ? void 0 : j.onBeforeStart) == null || M.call(j, b)), no && ((N = j == null ? void 0 : j.onBeforeUpdate) == null || N.call(j, b)), (no || Et) && (b.items = await d({
12906
12908
  editor: e,
12907
12909
  query: bt.query
12908
- })), Ma && ((H = j == null ? void 0 : j.onExit) == null || H.call(j, b)), ao && ((P = j == null ? void 0 : j.onUpdate) == null || P.call(j, b)), Ft && ((z = j == null ? void 0 : j.onStart) == null || z.call(j, b));
12910
+ })), Ma && ((H = j == null ? void 0 : j.onExit) == null || H.call(j, b)), no && ((P = j == null ? void 0 : j.onUpdate) == null || P.call(j, b)), Et && ((z = j == null ? void 0 : j.onStart) == null || z.call(j, b));
12909
12911
  },
12910
12912
  destroy: () => {
12911
12913
  var D;
@@ -12963,11 +12965,11 @@ function Lf({
12963
12965
  // Call the keydown hook if suggestion is active.
12964
12966
  handleKeyDown(D, C) {
12965
12967
  var L, R, M, N;
12966
- const { active: H, range: P } = F.getState(D.state);
12968
+ const { active: H, range: P } = E.getState(D.state);
12967
12969
  if (!H)
12968
12970
  return !1;
12969
12971
  if (C.key === "Escape" || C.key === "Esc") {
12970
- const z = F.getState(D.state), T = (L = b == null ? void 0 : b.decorationNode) != null ? L : null, X = T ?? (z != null && z.decorationId ? D.dom.querySelector(`[data-decoration-id="${z.decorationId}"]`) : null);
12972
+ const z = E.getState(D.state), T = (L = b == null ? void 0 : b.decorationNode) != null ? L : null, X = T ?? (z != null && z.decorationId ? D.dom.querySelector(`[data-decoration-id="${z.decorationId}"]`) : null);
12971
12973
  if ((R = j == null ? void 0 : j.onKeyDown) != null && R.call(j, { view: D, event: C, range: z.range }))
12972
12974
  return !0;
12973
12975
  const pe = {
@@ -12989,7 +12991,7 @@ function Lf({
12989
12991
  },
12990
12992
  // Setup decorator on the currently active suggestion.
12991
12993
  decorations(D) {
12992
- const { active: C, range: L, decorationId: R, query: M } = F.getState(D);
12994
+ const { active: C, range: L, decorationId: R, query: M } = E.getState(D);
12993
12995
  if (!C)
12994
12996
  return null;
12995
12997
  const N = !(M != null && M.length), H = [l];
@@ -13004,10 +13006,10 @@ function Lf({
13004
13006
  }
13005
13007
  }
13006
13008
  });
13007
- return F;
13009
+ return E;
13008
13010
  }
13009
13011
  var $f = Lf;
13010
- const zf = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
13012
+ const zf = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
13011
13013
  var Ja = /* @__PURE__ */ new Map();
13012
13014
  function Rf(t) {
13013
13015
  if (Ja.has(t))
@@ -13015,7 +13017,7 @@ function Rf(t) {
13015
13017
  var e = Nf(t);
13016
13018
  return Ja.set(t, e), e;
13017
13019
  }
13018
- var Nf = function() {
13020
+ var Nf = (function() {
13019
13021
  var t = null;
13020
13022
  try {
13021
13023
  t = document.createElement("canvas").getContext("2d");
@@ -13035,7 +13037,7 @@ var Nf = function() {
13035
13037
  var l = o + i / 4 % o, p = Math.floor(i / 4 / o), c = t.getImageData(l, p, 1, 1).data;
13036
13038
  return !(s[i] !== c[0] || s[i + 2] !== c[2] || t.measureText(n).width >= o);
13037
13039
  };
13038
- }(), ip = [
13040
+ })(), ip = [
13039
13041
  {
13040
13042
  emoji: "🇦",
13041
13043
  name: "regional_indicator_a",
@@ -32247,7 +32249,7 @@ var Nf = function() {
32247
32249
  version: 5,
32248
32250
  fallbackImage: "https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4-e0067-e0062-e0077-e006c-e0073-e007f.png"
32249
32251
  }
32250
- ], Of = [
32252
+ ], Bf = [
32251
32253
  {
32252
32254
  name: "atom",
32253
32255
  shortcodes: ["atom"],
@@ -32382,13 +32384,13 @@ var Nf = function() {
32382
32384
  fallbackImage: "https://github.githubassets.com/images/icons/emoji/trollface.png"
32383
32385
  }
32384
32386
  ];
32385
- [...ip, ...Of];
32386
- function Bf(t) {
32387
+ [...ip, ...Bf];
32388
+ function Of(t) {
32387
32389
  return t.replace("︎", "").replace("️", "");
32388
32390
  }
32389
32391
  function Hf(t, e) {
32390
32392
  var o;
32391
- return (o = e.find((a) => a.emoji === Bf(t))) == null ? void 0 : o.shortcodes[0];
32393
+ return (o = e.find((a) => a.emoji === Of(t))) == null ? void 0 : o.shortcodes[0];
32392
32394
  }
32393
32395
  function Pf(t, e = JSON.stringify) {
32394
32396
  const o = {};
@@ -32510,7 +32512,7 @@ var qf = new Z("emojiSuggestion"), Wf = /:([a-zA-Z0-9_+-]+):$/, Vf = /(^|\s):([a
32510
32512
  addInputRules() {
32511
32513
  const t = [];
32512
32514
  if (t.push(
32513
- new to({
32515
+ new oo({
32514
32516
  find: Wf,
32515
32517
  handler: ({ range: e, match: o, chain: a }) => {
32516
32518
  const n = o[1];
@@ -32595,7 +32597,7 @@ var qf = new Z("emojiSuggestion"), Wf = /:([a-zA-Z0-9_+-]+):$/, Vf = /(^|\s):([a
32595
32597
  return;
32596
32598
  const { tr: a } = o, n = is(e.doc, t);
32597
32599
  if (ps(n).forEach(({ newRange: s }) => {
32598
- o.doc.resolve(s.from).parent.type.spec.code || xl(o.doc, s, (r) => r.type.isText).forEach(({ node: r, pos: i }) => {
32600
+ o.doc.resolve(s.from).parent.type.spec.code || Fl(o.doc, s, (r) => r.type.isText).forEach(({ node: r, pos: i }) => {
32599
32601
  r.text && [...r.text.matchAll(zf())].forEach((l) => {
32600
32602
  if (l.index === void 0)
32601
32603
  return;
@@ -32759,10 +32761,10 @@ var qf = new Z("emojiSuggestion"), Wf = /:([a-zA-Z0-9_+-]+):$/, Vf = /(^|\s):([a
32759
32761
  if (i) {
32760
32762
  const { $to: l } = r.selection, p = l.end();
32761
32763
  if (l.nodeAfter)
32762
- l.nodeAfter.isTextblock ? r.setSelection(E.create(r.doc, l.pos + 1)) : l.nodeAfter.isBlock ? r.setSelection(x.create(r.doc, l.pos)) : r.setSelection(E.create(r.doc, l.pos));
32764
+ l.nodeAfter.isTextblock ? r.setSelection(x.create(r.doc, l.pos + 1)) : l.nodeAfter.isBlock ? r.setSelection(F.create(r.doc, l.pos)) : r.setSelection(x.create(r.doc, l.pos));
32763
32765
  else {
32764
32766
  const c = s.schema.nodes[this.options.nextNodeType] || l.parent.type.contentMatch.defaultType, m = c == null ? void 0 : c.create();
32765
- m && (r.insert(p, m), r.setSelection(E.create(r.doc, p + 1)));
32767
+ m && (r.insert(p, m), r.setSelection(x.create(r.doc, p + 1)));
32766
32768
  }
32767
32769
  r.scrollIntoView();
32768
32770
  }
@@ -32902,7 +32904,7 @@ var qf = new Z("emojiSuggestion"), Wf = /:([a-zA-Z0-9_+-]+):$/, Vf = /(^|\s):([a
32902
32904
  })
32903
32905
  ];
32904
32906
  }
32905
- }), oh = th, Br = "&nbsp;", ah = " ", nh = V.create({
32907
+ }), oh = th, Or = "&nbsp;", ah = " ", nh = V.create({
32906
32908
  name: "paragraph",
32907
32909
  priority: 1e3,
32908
32910
  addOptions() {
@@ -32923,13 +32925,13 @@ var qf = new Z("emojiSuggestion"), Wf = /:([a-zA-Z0-9_+-]+):$/, Vf = /(^|\s):([a
32923
32925
  if (o.length === 1 && o[0].type === "image")
32924
32926
  return e.parseChildren([o[0]]);
32925
32927
  const a = e.parseInline(o);
32926
- return a.length === 1 && a[0].type === "text" && (a[0].text === Br || a[0].text === ah) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, a);
32928
+ return a.length === 1 && a[0].type === "text" && (a[0].text === Or || a[0].text === ah) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, a);
32927
32929
  },
32928
32930
  renderMarkdown: (t, e) => {
32929
32931
  if (!t)
32930
32932
  return "";
32931
32933
  const o = Array.isArray(t.content) ? t.content : [];
32932
- return o.length === 0 ? Br : e.renderChildren(o);
32934
+ return o.length === 0 ? Or : e.renderChildren(o);
32933
32935
  },
32934
32936
  addCommands() {
32935
32937
  return {
@@ -33210,13 +33212,13 @@ var qf = new Z("emojiSuggestion"), Wf = /:([a-zA-Z0-9_+-]+):$/, Vf = /(^|\s):([a
33210
33212
  })
33211
33213
  ];
33212
33214
  }
33213
- }), xh = Ch;
33214
- const Eh = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Fh = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", An = "numeric", Sn = "ascii", Mn = "alpha", Nt = "asciinumeric", Lt = "alphanumeric", Tn = "domain", lp = "emoji", Ah = "scheme", Sh = "slashscheme", Ga = "whitespace";
33215
+ }), Fh = Ch;
33216
+ const xh = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Eh = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", An = "numeric", Sn = "ascii", Mn = "alpha", Bt = "asciinumeric", Lt = "alphanumeric", Tn = "domain", lp = "emoji", Ah = "scheme", Sh = "slashscheme", Ga = "whitespace";
33215
33217
  function Mh(t, e) {
33216
33218
  return t in e || (e[t] = []), e[t];
33217
33219
  }
33218
33220
  function tt(t, e, o) {
33219
- e[An] && (e[Nt] = !0, e[Lt] = !0), e[Sn] && (e[Nt] = !0, e[Mn] = !0), e[Nt] && (e[Lt] = !0), e[Mn] && (e[Lt] = !0), e[Lt] && (e[Tn] = !0), e[lp] && (e[Tn] = !0);
33221
+ e[An] && (e[Bt] = !0, e[Lt] = !0), e[Sn] && (e[Bt] = !0, e[Mn] = !0), e[Bt] && (e[Lt] = !0), e[Mn] && (e[Lt] = !0), e[Lt] && (e[Tn] = !0), e[lp] && (e[Tn] = !0);
33220
33222
  for (const a in e) {
33221
33223
  const n = Mh(a, o);
33222
33224
  n.indexOf(t) < 0 && n.push(t);
@@ -33352,7 +33354,7 @@ ce.prototype = {
33352
33354
  return n.j[t] = r, r;
33353
33355
  }
33354
33356
  };
33355
- const S = (t, e, o, a, n) => t.ta(e, o, a, n), K = (t, e, o, a, n) => t.tr(e, o, a, n), Hr = (t, e, o, a, n) => t.ts(e, o, a, n), k = (t, e, o, a, n) => t.tt(e, o, a, n), Se = "WORD", Ln = "UWORD", pp = "ASCIINUMERICAL", cp = "ALPHANUMERICAL", Yt = "LOCALHOST", $n = "TLD", zn = "UTLD", Fo = "SCHEME", yt = "SLASH_SCHEME", vs = "NUM", Rn = "WS", ks = "NL", Ot = "OPENBRACE", Bt = "CLOSEBRACE", Uo = "OPENBRACKET", Jo = "CLOSEBRACKET", Go = "OPENPAREN", Xo = "CLOSEPAREN", Yo = "OPENANGLEBRACKET", Zo = "CLOSEANGLEBRACKET", Qo = "FULLWIDTHLEFTPAREN", ea = "FULLWIDTHRIGHTPAREN", ta = "LEFTCORNERBRACKET", oa = "RIGHTCORNERBRACKET", aa = "LEFTWHITECORNERBRACKET", na = "RIGHTWHITECORNERBRACKET", sa = "FULLWIDTHLESSTHAN", ra = "FULLWIDTHGREATERTHAN", ia = "AMPERSAND", la = "APOSTROPHE", pa = "ASTERISK", Oe = "AT", ca = "BACKSLASH", ma = "BACKTICK", da = "CARET", He = "COLON", ys = "COMMA", ga = "DOLLAR", we = "DOT", ua = "EQUALS", _s = "EXCLAMATION", je = "HYPHEN", Ht = "PERCENT", fa = "PIPE", ha = "PLUS", ba = "POUND", Pt = "QUERY", ws = "QUOTE", mp = "FULLWIDTHMIDDLEDOT", Ds = "SEMI", De = "SLASH", qt = "TILDE", ja = "UNDERSCORE", dp = "EMOJI", va = "SYM";
33357
+ const S = (t, e, o, a, n) => t.ta(e, o, a, n), K = (t, e, o, a, n) => t.tr(e, o, a, n), Hr = (t, e, o, a, n) => t.ts(e, o, a, n), k = (t, e, o, a, n) => t.tt(e, o, a, n), Se = "WORD", Ln = "UWORD", pp = "ASCIINUMERICAL", cp = "ALPHANUMERICAL", Zt = "LOCALHOST", $n = "TLD", zn = "UTLD", Eo = "SCHEME", yt = "SLASH_SCHEME", vs = "NUM", Rn = "WS", ks = "NL", Ot = "OPENBRACE", Ht = "CLOSEBRACE", Uo = "OPENBRACKET", Jo = "CLOSEBRACKET", Go = "OPENPAREN", Xo = "CLOSEPAREN", Yo = "OPENANGLEBRACKET", Zo = "CLOSEANGLEBRACKET", Qo = "FULLWIDTHLEFTPAREN", ea = "FULLWIDTHRIGHTPAREN", ta = "LEFTCORNERBRACKET", oa = "RIGHTCORNERBRACKET", aa = "LEFTWHITECORNERBRACKET", na = "RIGHTWHITECORNERBRACKET", sa = "FULLWIDTHLESSTHAN", ra = "FULLWIDTHGREATERTHAN", ia = "AMPERSAND", la = "APOSTROPHE", pa = "ASTERISK", Be = "AT", ca = "BACKSLASH", ma = "BACKTICK", da = "CARET", He = "COLON", ys = "COMMA", ga = "DOLLAR", we = "DOT", ua = "EQUALS", _s = "EXCLAMATION", je = "HYPHEN", Pt = "PERCENT", fa = "PIPE", ha = "PLUS", ba = "POUND", qt = "QUERY", ws = "QUOTE", mp = "FULLWIDTHMIDDLEDOT", Ds = "SEMI", De = "SLASH", Wt = "TILDE", ja = "UNDERSCORE", dp = "EMOJI", va = "SYM";
33356
33358
  var gp = /* @__PURE__ */ Object.freeze({
33357
33359
  __proto__: null,
33358
33360
  ALPHANUMERICAL: cp,
@@ -33360,12 +33362,12 @@ var gp = /* @__PURE__ */ Object.freeze({
33360
33362
  APOSTROPHE: la,
33361
33363
  ASCIINUMERICAL: pp,
33362
33364
  ASTERISK: pa,
33363
- AT: Oe,
33365
+ AT: Be,
33364
33366
  BACKSLASH: ca,
33365
33367
  BACKTICK: ma,
33366
33368
  CARET: da,
33367
33369
  CLOSEANGLEBRACKET: Zo,
33368
- CLOSEBRACE: Bt,
33370
+ CLOSEBRACE: Ht,
33369
33371
  CLOSEBRACKET: Jo,
33370
33372
  CLOSEPAREN: Xo,
33371
33373
  COLON: He,
@@ -33383,27 +33385,27 @@ var gp = /* @__PURE__ */ Object.freeze({
33383
33385
  HYPHEN: je,
33384
33386
  LEFTCORNERBRACKET: ta,
33385
33387
  LEFTWHITECORNERBRACKET: aa,
33386
- LOCALHOST: Yt,
33388
+ LOCALHOST: Zt,
33387
33389
  NL: ks,
33388
33390
  NUM: vs,
33389
33391
  OPENANGLEBRACKET: Yo,
33390
33392
  OPENBRACE: Ot,
33391
33393
  OPENBRACKET: Uo,
33392
33394
  OPENPAREN: Go,
33393
- PERCENT: Ht,
33395
+ PERCENT: Pt,
33394
33396
  PIPE: fa,
33395
33397
  PLUS: ha,
33396
33398
  POUND: ba,
33397
- QUERY: Pt,
33399
+ QUERY: qt,
33398
33400
  QUOTE: ws,
33399
33401
  RIGHTCORNERBRACKET: oa,
33400
33402
  RIGHTWHITECORNERBRACKET: na,
33401
- SCHEME: Fo,
33403
+ SCHEME: Eo,
33402
33404
  SEMI: Ds,
33403
33405
  SLASH: De,
33404
33406
  SLASH_SCHEME: yt,
33405
33407
  SYM: va,
33406
- TILDE: qt,
33408
+ TILDE: Wt,
33407
33409
  TLD: $n,
33408
33410
  UNDERSCORE: ja,
33409
33411
  UTLD: zn,
@@ -33411,30 +33413,30 @@ var gp = /* @__PURE__ */ Object.freeze({
33411
33413
  WORD: Se,
33412
33414
  WS: Rn
33413
33415
  });
33414
- const Ee = /[a-z]/, St = new RegExp("\\p{L}", "u"), Xa = new RegExp("\\p{Emoji}", "u"), Fe = /\d/, Ya = /\s/, Pr = "\r", Za = `
33416
+ const xe = /[a-z]/, St = new RegExp("\\p{L}", "u"), Xa = new RegExp("\\p{Emoji}", "u"), Ee = /\d/, Ya = /\s/, Pr = "\r", Za = `
33415
33417
  `, Lh = "️", $h = "‍", Qa = "";
33416
- let fo = null, ho = null;
33418
+ let ho = null, bo = null;
33417
33419
  function zh(t = []) {
33418
33420
  const e = {};
33419
33421
  ce.groups = e;
33420
33422
  const o = new ce();
33421
- fo == null && (fo = qr(Eh)), ho == null && (ho = qr(Fh)), k(o, "'", la), k(o, "{", Ot), k(o, "}", Bt), k(o, "[", Uo), k(o, "]", Jo), k(o, "(", Go), k(o, ")", Xo), k(o, "<", Yo), k(o, ">", Zo), k(o, "(", Qo), k(o, ")", ea), k(o, "「", ta), k(o, "」", oa), k(o, "『", aa), k(o, "』", na), k(o, "<", sa), k(o, ">", ra), k(o, "&", ia), k(o, "*", pa), k(o, "@", Oe), k(o, "`", ma), k(o, "^", da), k(o, ":", He), k(o, ",", ys), k(o, "$", ga), k(o, ".", we), k(o, "=", ua), k(o, "!", _s), k(o, "-", je), k(o, "%", Ht), k(o, "|", fa), k(o, "+", ha), k(o, "#", ba), k(o, "?", Pt), k(o, '"', ws), k(o, "/", De), k(o, ";", Ds), k(o, "~", qt), k(o, "_", ja), k(o, "\\", ca), k(o, "・", mp);
33422
- const a = K(o, Fe, vs, {
33423
+ ho == null && (ho = qr(xh)), bo == null && (bo = qr(Eh)), k(o, "'", la), k(o, "{", Ot), k(o, "}", Ht), k(o, "[", Uo), k(o, "]", Jo), k(o, "(", Go), k(o, ")", Xo), k(o, "<", Yo), k(o, ">", Zo), k(o, "(", Qo), k(o, ")", ea), k(o, "「", ta), k(o, "」", oa), k(o, "『", aa), k(o, "』", na), k(o, "<", sa), k(o, ">", ra), k(o, "&", ia), k(o, "*", pa), k(o, "@", Be), k(o, "`", ma), k(o, "^", da), k(o, ":", He), k(o, ",", ys), k(o, "$", ga), k(o, ".", we), k(o, "=", ua), k(o, "!", _s), k(o, "-", je), k(o, "%", Pt), k(o, "|", fa), k(o, "+", ha), k(o, "#", ba), k(o, "?", qt), k(o, '"', ws), k(o, "/", De), k(o, ";", Ds), k(o, "~", Wt), k(o, "_", ja), k(o, "\\", ca), k(o, "・", mp);
33424
+ const a = K(o, Ee, vs, {
33423
33425
  [An]: !0
33424
33426
  });
33425
- K(a, Fe, a);
33426
- const n = K(a, Ee, pp, {
33427
- [Nt]: !0
33427
+ K(a, Ee, a);
33428
+ const n = K(a, xe, pp, {
33429
+ [Bt]: !0
33428
33430
  }), s = K(a, St, cp, {
33429
33431
  [Lt]: !0
33430
- }), r = K(o, Ee, Se, {
33432
+ }), r = K(o, xe, Se, {
33431
33433
  [Sn]: !0
33432
33434
  });
33433
- K(r, Fe, n), K(r, Ee, r), K(n, Fe, n), K(n, Ee, n);
33435
+ K(r, Ee, n), K(r, xe, r), K(n, Ee, n), K(n, xe, n);
33434
33436
  const i = K(o, St, Ln, {
33435
33437
  [Mn]: !0
33436
33438
  });
33437
- K(i, Ee), K(i, Fe, s), K(i, St, i), K(s, Fe, s), K(s, Ee), K(s, St, s);
33439
+ K(i, xe), K(i, Ee, s), K(i, St, i), K(s, Ee, s), K(s, xe), K(s, St, s);
33438
33440
  const l = k(o, Za, ks, {
33439
33441
  [Ga]: !0
33440
33442
  }), p = k(o, Pr, Rn, {
@@ -33449,18 +33451,18 @@ function zh(t = []) {
33449
33451
  k(m, "#"), K(m, Xa, m), k(m, Lh, m);
33450
33452
  const d = k(m, $h);
33451
33453
  k(d, "#"), K(d, Xa, m);
33452
- const g = [[Ee, r], [Fe, n]], u = [[Ee, null], [St, i], [Fe, s]];
33453
- for (let f = 0; f < fo.length; f++)
33454
- ze(o, fo[f], $n, Se, g);
33454
+ const g = [[xe, r], [Ee, n]], u = [[xe, null], [St, i], [Ee, s]];
33455
33455
  for (let f = 0; f < ho.length; f++)
33456
- ze(o, ho[f], zn, Ln, u);
33456
+ ze(o, ho[f], $n, Se, g);
33457
+ for (let f = 0; f < bo.length; f++)
33458
+ ze(o, bo[f], zn, Ln, u);
33457
33459
  tt($n, {
33458
33460
  tld: !0,
33459
33461
  ascii: !0
33460
33462
  }, e), tt(zn, {
33461
33463
  utld: !0,
33462
33464
  alpha: !0
33463
- }, e), ze(o, "file", Fo, Se, g), ze(o, "mailto", Fo, Se, g), ze(o, "http", yt, Se, g), ze(o, "https", yt, Se, g), ze(o, "ftp", yt, Se, g), ze(o, "ftps", yt, Se, g), tt(Fo, {
33465
+ }, e), ze(o, "file", Eo, Se, g), ze(o, "mailto", Eo, Se, g), ze(o, "http", yt, Se, g), ze(o, "https", yt, Se, g), ze(o, "ftp", yt, Se, g), ze(o, "ftps", yt, Se, g), tt(Eo, {
33464
33466
  scheme: !0,
33465
33467
  ascii: !0
33466
33468
  }, e), tt(yt, {
@@ -33473,9 +33475,9 @@ function zh(t = []) {
33473
33475
  } : {
33474
33476
  [Sh]: !0
33475
33477
  };
33476
- h.indexOf("-") >= 0 ? b[Tn] = !0 : Ee.test(h) ? Fe.test(h) ? b[Nt] = !0 : b[Sn] = !0 : b[An] = !0, Hr(o, h, h, b);
33478
+ h.indexOf("-") >= 0 ? b[Tn] = !0 : xe.test(h) ? Ee.test(h) ? b[Bt] = !0 : b[Sn] = !0 : b[An] = !0, Hr(o, h, h, b);
33477
33479
  }
33478
- return Hr(o, "localhost", Yt, {
33480
+ return Hr(o, "localhost", Zt, {
33479
33481
  ascii: !0
33480
33482
  }), o.jd = new ce(va), {
33481
33483
  start: o,
@@ -33539,7 +33541,7 @@ function qr(t) {
33539
33541
  }
33540
33542
  return e;
33541
33543
  }
33542
- const Zt = {
33544
+ const Qt = {
33543
33545
  defaultProtocol: "http",
33544
33546
  events: null,
33545
33547
  format: Wr,
@@ -33556,7 +33558,7 @@ const Zt = {
33556
33558
  render: null
33557
33559
  };
33558
33560
  function Is(t, e = null) {
33559
- let o = Object.assign({}, Zt);
33561
+ let o = Object.assign({}, Qt);
33560
33562
  t && (o = Object.assign(o, t instanceof Is ? t.o : t));
33561
33563
  const a = o.ignoreTags, n = [];
33562
33564
  for (let s = 0; s < a.length; s++)
@@ -33564,7 +33566,7 @@ function Is(t, e = null) {
33564
33566
  this.o = o, e && (this.defaultRender = e), this.ignoreTags = n;
33565
33567
  }
33566
33568
  Is.prototype = {
33567
- o: Zt,
33569
+ o: Qt,
33568
33570
  /**
33569
33571
  * @type string[]
33570
33572
  */
@@ -33600,7 +33602,7 @@ Is.prototype = {
33600
33602
  get(t, e, o) {
33601
33603
  const a = e != null;
33602
33604
  let n = this.o[t];
33603
- return n && (typeof n == "object" ? (n = o.t in n ? n[o.t] : Zt[t], typeof n == "function" && a && (n = n(e, o))) : typeof n == "function" && a && (n = n(e, o.t, o)), n);
33605
+ return n && (typeof n == "object" ? (n = o.t in n ? n[o.t] : Qt[t], typeof n == "function" && a && (n = n(e, o))) : typeof n == "function" && a && (n = n(e, o.t, o)), n);
33604
33606
  },
33605
33607
  /**
33606
33608
  * @template {keyof Opts} L
@@ -33689,7 +33691,7 @@ fp.prototype = {
33689
33691
  @method toObject
33690
33692
  @param {string} [protocol] `'http'` by default
33691
33693
  */
33692
- toObject(t = Zt.defaultProtocol) {
33694
+ toObject(t = Qt.defaultProtocol) {
33693
33695
  return {
33694
33696
  type: this.t,
33695
33697
  value: this.toString(),
@@ -33750,7 +33752,7 @@ const Vr = Aa("email", {
33750
33752
  toHref() {
33751
33753
  return "mailto:" + this.toString();
33752
33754
  }
33753
- }), Kr = Aa("text"), Nh = Aa("nl"), bo = Aa("url", {
33755
+ }), Kr = Aa("text"), Nh = Aa("nl"), jo = Aa("url", {
33754
33756
  isLink: !0,
33755
33757
  /**
33756
33758
  Lowercases relevant parts of the domain and adds the protocol if
@@ -33759,7 +33761,7 @@ const Vr = Aa("email", {
33759
33761
  @param {string} [scheme] default scheme (e.g., 'https')
33760
33762
  @return {string} the full href
33761
33763
  */
33762
- toHref(t = Zt.defaultProtocol) {
33764
+ toHref(t = Qt.defaultProtocol) {
33763
33765
  return this.hasProtocol() ? this.v : `${t}://${this.v}`;
33764
33766
  },
33765
33767
  /**
@@ -33768,18 +33770,18 @@ const Vr = Aa("email", {
33768
33770
  */
33769
33771
  hasProtocol() {
33770
33772
  const t = this.tk;
33771
- return t.length >= 2 && t[0].t !== Yt && t[1].t === He;
33773
+ return t.length >= 2 && t[0].t !== Zt && t[1].t === He;
33772
33774
  }
33773
33775
  }), be = (t) => new ce(t);
33774
- function Oh({
33776
+ function Bh({
33775
33777
  groups: t
33776
33778
  }) {
33777
- const e = t.domain.concat([ia, pa, Oe, ca, ma, da, ga, ua, je, vs, Ht, fa, ha, ba, De, va, qt, ja]), o = [la, He, ys, we, _s, Ht, Pt, ws, Ds, Yo, Zo, Ot, Bt, Jo, Uo, Go, Xo, Qo, ea, ta, oa, aa, na, sa, ra], a = [ia, la, pa, ca, ma, da, ga, ua, je, Ot, Bt, Ht, fa, ha, ba, Pt, De, va, qt, ja], n = be(), s = k(n, qt);
33779
+ const e = t.domain.concat([ia, pa, Be, ca, ma, da, ga, ua, je, vs, Pt, fa, ha, ba, De, va, Wt, ja]), o = [la, He, ys, we, _s, Pt, qt, ws, Ds, Yo, Zo, Ot, Ht, Jo, Uo, Go, Xo, Qo, ea, ta, oa, aa, na, sa, ra], a = [ia, la, pa, ca, ma, da, ga, ua, je, Ot, Ht, Pt, fa, ha, ba, qt, De, va, Wt, ja], n = be(), s = k(n, Wt);
33778
33780
  S(s, a, s), S(s, t.domain, s);
33779
33781
  const r = be(), i = be(), l = be();
33780
33782
  S(n, t.domain, r), S(n, t.scheme, i), S(n, t.slashscheme, l), S(r, a, s), S(r, t.domain, r);
33781
- const p = k(r, Oe);
33782
- k(s, Oe, p), k(i, Oe, p), k(l, Oe, p);
33783
+ const p = k(r, Be);
33784
+ k(s, Be, p), k(i, Be, p), k(l, Be, p);
33783
33785
  const c = k(s, we);
33784
33786
  S(c, a, s), S(c, t.domain, s);
33785
33787
  const m = be();
@@ -33787,23 +33789,23 @@ function Oh({
33787
33789
  const d = k(m, we);
33788
33790
  S(d, t.domain, m);
33789
33791
  const g = be(Vr);
33790
- S(d, t.tld, g), S(d, t.utld, g), k(p, Yt, g);
33792
+ S(d, t.tld, g), S(d, t.utld, g), k(p, Zt, g);
33791
33793
  const u = k(m, je);
33792
33794
  k(u, je, u), S(u, t.domain, m), S(g, t.domain, m), k(g, we, d), k(g, je, u);
33793
33795
  const f = k(g, He);
33794
33796
  S(f, t.numeric, Vr);
33795
33797
  const h = k(r, je), b = k(r, we);
33796
33798
  k(h, je, h), S(h, t.domain, r), S(b, a, s), S(b, t.domain, r);
33797
- const j = be(bo);
33798
- S(b, t.tld, j), S(b, t.utld, j), S(j, t.domain, r), S(j, a, s), k(j, we, b), k(j, je, h), k(j, Oe, p);
33799
- const y = k(j, He), I = be(bo);
33799
+ const j = be(jo);
33800
+ S(b, t.tld, j), S(b, t.utld, j), S(j, t.domain, r), S(j, a, s), k(j, we, b), k(j, je, h), k(j, Be, p);
33801
+ const y = k(j, He), I = be(jo);
33800
33802
  S(y, t.numeric, I);
33801
- const w = be(bo), F = be();
33802
- S(w, e, w), S(w, o, F), S(F, e, w), S(F, o, F), k(j, De, w), k(I, De, w);
33803
+ const w = be(jo), E = be();
33804
+ S(w, e, w), S(w, o, E), S(E, e, w), S(E, o, E), k(j, De, w), k(I, De, w);
33803
33805
  const D = k(i, He), C = k(l, He), L = k(C, De), R = k(L, De);
33804
- S(i, t.domain, r), k(i, we, b), k(i, je, h), S(l, t.domain, r), k(l, we, b), k(l, je, h), S(D, t.domain, w), k(D, De, w), k(D, Pt, w), S(R, t.domain, w), S(R, e, w), k(R, De, w);
33806
+ S(i, t.domain, r), k(i, we, b), k(i, je, h), S(l, t.domain, r), k(l, we, b), k(l, je, h), S(D, t.domain, w), k(D, De, w), k(D, qt, w), S(R, t.domain, w), S(R, e, w), k(R, De, w);
33805
33807
  const M = [
33806
- [Ot, Bt],
33808
+ [Ot, Ht],
33807
33809
  // {}
33808
33810
  [Uo, Jo],
33809
33811
  // []
@@ -33822,18 +33824,18 @@ function Oh({
33822
33824
  ];
33823
33825
  for (let N = 0; N < M.length; N++) {
33824
33826
  const [H, P] = M[N], z = k(w, H);
33825
- k(F, H, z), k(z, P, w);
33826
- const T = be(bo);
33827
+ k(E, H, z), k(z, P, w);
33828
+ const T = be(jo);
33827
33829
  S(z, e, T);
33828
33830
  const X = be();
33829
33831
  S(z, o), S(T, e, T), S(T, o, X), S(X, e, T), S(X, o, X), k(T, P, w), k(X, P, w);
33830
33832
  }
33831
- return k(n, Yt, j), k(n, ks, Nh), {
33833
+ return k(n, Zt, j), k(n, ks, Nh), {
33832
33834
  start: n,
33833
33835
  tokens: gp
33834
33836
  };
33835
33837
  }
33836
- function Bh(t, e, o) {
33838
+ function Oh(t, e, o) {
33837
33839
  let a = o.length, n = 0, s = [], r = [];
33838
33840
  for (; n < a; ) {
33839
33841
  let i = t, l = null, p = null, c = 0, m = null, d = -1;
@@ -33881,7 +33883,7 @@ function Wh() {
33881
33883
  q.tokenQueue[t][1]({
33882
33884
  scanner: q.scanner
33883
33885
  });
33884
- q.parser = Oh(q.scanner.tokens);
33886
+ q.parser = Bh(q.scanner.tokens);
33885
33887
  for (let t = 0; t < q.pluginQueue.length; t++)
33886
33888
  q.pluginQueue[t][1]({
33887
33889
  scanner: q.scanner,
@@ -33890,7 +33892,7 @@ function Wh() {
33890
33892
  return q.initialized = !0, q;
33891
33893
  }
33892
33894
  function Cs(t) {
33893
- return q.initialized || Wh(), Bh(q.parser.start, t, up(q.scanner.start, t));
33895
+ return q.initialized || Wh(), Oh(q.parser.start, t, up(q.scanner.start, t));
33894
33896
  }
33895
33897
  Cs.scan = up;
33896
33898
  function hp(t, e = null, o = null) {
@@ -33906,7 +33908,7 @@ function hp(t, e = null, o = null) {
33906
33908
  }
33907
33909
  return s;
33908
33910
  }
33909
- var xs = "[\0-   ᠎ -\u2029  ]", Vh = new RegExp(xs), Kh = new RegExp(`${xs}$`), Uh = new RegExp(xs, "g");
33911
+ var Fs = "[\0-   ᠎ -\u2029  ]", Vh = new RegExp(Fs), Kh = new RegExp(`${Fs}$`), Uh = new RegExp(Fs, "g");
33910
33912
  function Jh(t) {
33911
33913
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
33912
33914
  }
@@ -33919,7 +33921,7 @@ function Gh(t) {
33919
33921
  return;
33920
33922
  const { tr: r } = a, i = is(o.doc, [...e]);
33921
33923
  if (ps(i).forEach(({ newRange: l }) => {
33922
- const p = xl(a.doc, l, (d) => d.isTextblock);
33924
+ const p = Fl(a.doc, l, (d) => d.isTextblock);
33923
33925
  let c, m;
33924
33926
  if (p.length > 1)
33925
33927
  c = p[0], m = a.doc.textBetween(
@@ -34699,9 +34701,9 @@ function yb(t) {
34699
34701
  return t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
34700
34702
  }
34701
34703
  const ft = (t) => Object.fromEntries(Object.entries(t).filter(([e, o]) => o != null));
34702
- let jo = /* @__PURE__ */ function(t) {
34704
+ let vo = /* @__PURE__ */ (function(t) {
34703
34705
  return t.URL = "url", t.STORY = "story", t.ASSET = "asset", t.EMAIL = "email", t;
34704
- }({});
34706
+ })({});
34705
34707
  function $e(t = {}) {
34706
34708
  const { textAlign: e, class: o, id: a, style: n, ...s } = t, r = [];
34707
34709
  return n && r.push(n.endsWith(";") ? n : `${n};`), e && r.push(`text-align: ${e};`), ft({
@@ -34715,13 +34717,13 @@ function _b(t = {}) {
34715
34717
  const { linktype: e, href: o, anchor: a, uuid: n, custom: s, ...r } = t;
34716
34718
  let i = o ?? "";
34717
34719
  switch (e) {
34718
- case jo.ASSET:
34719
- case jo.URL:
34720
+ case vo.ASSET:
34721
+ case vo.URL:
34720
34722
  break;
34721
- case jo.EMAIL:
34723
+ case vo.EMAIL:
34722
34724
  i && !i.startsWith("mailto:") && (i = `mailto:${i}`);
34723
34725
  break;
34724
- case jo.STORY:
34726
+ case vo.STORY:
34725
34727
  a && (i = `${i}#${a}`);
34726
34728
  break;
34727
34729
  }
@@ -34789,7 +34791,7 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
34789
34791
  $e(t),
34790
34792
  0
34791
34793
  ];
34792
- } }), xb = Nl.extend({
34794
+ } }), Fb = Nl.extend({
34793
34795
  name: "bullet_list",
34794
34796
  addOptions() {
34795
34797
  return {
@@ -34804,7 +34806,7 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
34804
34806
  0
34805
34807
  ];
34806
34808
  }
34807
- }), Eb = Kl.extend({
34809
+ }), xb = Kl.extend({
34808
34810
  name: "ordered_list",
34809
34811
  addOptions() {
34810
34812
  return {
@@ -34819,7 +34821,7 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
34819
34821
  0
34820
34822
  ];
34821
34823
  }
34822
- }), Fb = Ol.extend({
34824
+ }), Eb = Bl.extend({
34823
34825
  name: "list_item",
34824
34826
  addOptions() {
34825
34827
  return {
@@ -34835,7 +34837,7 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
34835
34837
  0
34836
34838
  ];
34837
34839
  }
34838
- }), Ab = Ff.extend({
34840
+ }), Ab = Ef.extend({
34839
34841
  name: "code_block",
34840
34842
  renderHTML({ node: t, HTMLAttributes: e }) {
34841
34843
  const { language: o, ...a } = e, n = $e(a), s = t.attrs.language;
@@ -34931,7 +34933,7 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
34931
34933
  style: "display: none"
34932
34934
  })];
34933
34935
  }
34934
- }), Es = Qh.extend({
34936
+ }), xs = Qh.extend({
34935
34937
  addAttributes() {
34936
34938
  return {
34937
34939
  href: { parseHTML: (t) => t.getAttribute("href") },
@@ -34961,7 +34963,7 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
34961
34963
  0
34962
34964
  ];
34963
34965
  }
34964
- }), Rb = Es.extend({ addAttributes() {
34966
+ }), Rb = xs.extend({ addAttributes() {
34965
34967
  var t;
34966
34968
  return {
34967
34969
  ...(t = this.parent) == null ? void 0 : t.call(this),
@@ -35015,7 +35017,7 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
35015
35017
  0
35016
35018
  ];
35017
35019
  }
35018
- }), Ob = me.create({
35020
+ }), Bb = me.create({
35019
35021
  name: "textStyle",
35020
35022
  addAttributes() {
35021
35023
  return {
@@ -35065,15 +35067,15 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
35065
35067
  }
35066
35068
  }];
35067
35069
  }
35068
- }), Bb = {
35070
+ }), Ob = {
35069
35071
  document: Sf,
35070
35072
  text: ih,
35071
35073
  paragraph: Db,
35072
35074
  blockquote: wb,
35073
35075
  heading: Ib,
35074
- bulletList: xb,
35075
- orderedList: Eb,
35076
- listItem: Fb,
35076
+ bulletList: Fb,
35077
+ orderedList: xb,
35078
+ listItem: Eb,
35077
35079
  codeBlock: Ab,
35078
35080
  hardBreak: Sb,
35079
35081
  horizontalRule: Mb,
@@ -35088,24 +35090,24 @@ const wb = If.extend({ renderHTML({ HTMLAttributes: t }) {
35088
35090
  detailsContent: uu,
35089
35091
  detailsSummary: fu,
35090
35092
  bold: gh,
35091
- italic: xh,
35093
+ italic: Fh,
35092
35094
  strike: ab,
35093
35095
  underline: bb,
35094
35096
  code: bh,
35095
35097
  superscript: ib,
35096
35098
  subscript: sb,
35097
35099
  highlight: yh,
35098
- textStyle: Ob,
35099
- link: Es,
35100
+ textStyle: Bb,
35101
+ link: xs,
35100
35102
  anchor: Nb,
35101
35103
  styled: _p,
35102
35104
  reporter: wp
35103
35105
  };
35104
35106
  function Hb(t = {}) {
35105
35107
  var e;
35106
- const o = t.allowCustomAttributes ? Rb : Es;
35108
+ const o = t.allowCustomAttributes ? Rb : xs;
35107
35109
  return {
35108
- ...Bb,
35110
+ ...Ob,
35109
35111
  image: kp.configure({ optimizeImages: t.optimizeImages || !1 }),
35110
35112
  link: o,
35111
35113
  styled: _p.configure({ allowedStyles: (e = t.styleOptions) == null ? void 0 : e.map((a) => a.value) }),
@@ -35158,7 +35160,7 @@ function Dp(t = {}) {
35158
35160
  return o(b, j, y);
35159
35161
  };
35160
35162
  function u(b) {
35161
- var j, y, I, w, F, D;
35163
+ var j, y, I, w, E, D;
35162
35164
  if (b.type === "text") return f(b);
35163
35165
  if (b.type === "doc") return h(b);
35164
35166
  const C = m.get(b.type);
@@ -35170,7 +35172,7 @@ function Dp(t = {}) {
35170
35172
  const N = R.map((H) => C.options.renderComponent(H, M));
35171
35173
  return i ? N : N.filter((H) => H != null).join("");
35172
35174
  }
35173
- if (b.type === "table" && (F = b.content) != null && F.length) {
35175
+ if (b.type === "table" && (E = b.content) != null && E.length) {
35174
35176
  const R = [], M = [];
35175
35177
  for (const P of b.content) M.length === 0 && (D = P.content) != null && D.every((z) => z.type === "tableHeader") ? R.push(P) : M.push(P);
35176
35178
  const N = tn(C, "node", b.attrs || {}), H = [];
@@ -35183,17 +35185,17 @@ function Dp(t = {}) {
35183
35185
  const { marks: j, ...y } = b;
35184
35186
  if (j != null && j.length) {
35185
35187
  const w = (() => {
35186
- const F = {};
35188
+ const E = {};
35187
35189
  if (s) {
35188
35190
  const D = e.get("txt") || 0;
35189
- e.set("txt", D + 1), F.key = `txt-${D}`;
35191
+ e.set("txt", D + 1), E.key = `txt-${D}`;
35190
35192
  }
35191
- return a(y.text, F);
35193
+ return a(y.text, E);
35192
35194
  })();
35193
- return j.reduce((F, D) => {
35195
+ return j.reduce((E, D) => {
35194
35196
  var C;
35195
35197
  const L = d.get(D.type);
35196
- return (C = L == null ? void 0 : L.config) != null && C.renderHTML ? Ao(tn(L, "mark", D.attrs || {}), g, F) : (console.error("<Storyblok>", `No extension found for node type ${D.type}`), F);
35198
+ return (C = L == null ? void 0 : L.config) != null && C.renderHTML ? Ao(tn(L, "mark", D.attrs || {}), g, E) : (console.error("<Storyblok>", `No extension found for node type ${D.type}`), E);
35197
35199
  }, w);
35198
35200
  }
35199
35201
  const I = b.attrs || {};
@@ -35263,7 +35265,7 @@ const Yr = [], Ip = (t) => new Promise((e, o) => {
35263
35265
  }), Vb = (t) => new Promise((e) => setTimeout(e, t)), Kb = (t = 0, e) => Array.from({ length: t }, e), Ub = (t = 0, e = t) => {
35264
35266
  const o = Math.abs(e - t) || 0, a = t < e ? 1 : -1;
35265
35267
  return Kb(o, (n, s) => s * a + t);
35266
- }, Jb = async (t, e) => Promise.all(t.map(e)), Gb = (t = [], e) => t.map(e).reduce((o, a) => [...o, ...a], []), Fs = (t, e, o) => {
35268
+ }, Jb = async (t, e) => Promise.all(t.map(e)), Gb = (t = [], e) => t.map(e).reduce((o, a) => [...o, ...a], []), Es = (t, e, o) => {
35267
35269
  const a = [];
35268
35270
  for (const n in t) {
35269
35271
  if (!Object.prototype.hasOwnProperty.call(t, n)) continue;
@@ -35271,7 +35273,7 @@ const Yr = [], Ip = (t) => new Promise((e, o) => {
35271
35273
  if (s == null) continue;
35272
35274
  const r = o ? "" : encodeURIComponent(n);
35273
35275
  let i;
35274
- typeof s == "object" ? i = Fs(s, e ? e + encodeURIComponent(`[${r}]`) : r, Array.isArray(s)) : i = `${e ? e + encodeURIComponent(`[${r}]`) : r}=${encodeURIComponent(s)}`, a.push(i);
35276
+ typeof s == "object" ? i = Es(s, e ? e + encodeURIComponent(`[${r}]`) : r, Array.isArray(s)) : i = `${e ? e + encodeURIComponent(`[${r}]`) : r}=${encodeURIComponent(s)}`, a.push(i);
35275
35277
  }
35276
35278
  return a.join("&");
35277
35279
  }, Zr = (t) => {
@@ -35286,7 +35288,7 @@ const Yr = [], Ip = (t) => new Promise((e, o) => {
35286
35288
  };
35287
35289
  var Xb = class {
35288
35290
  constructor(t) {
35289
- O(this, "baseURL"), O(this, "timeout"), O(this, "headers"), O(this, "responseInterceptor"), O(this, "fetch"), O(this, "ejectInterceptor"), O(this, "url"), O(this, "parameters"), O(this, "fetchOptions"), this.baseURL = t.baseURL, this.headers = t.headers || new Headers(), this.timeout = t != null && t.timeout ? t.timeout * 1e3 : 0, this.responseInterceptor = t.responseInterceptor, this.fetch = (...e) => t.fetch ? t.fetch(...e) : fetch(...e), this.ejectInterceptor = !1, this.url = "", this.parameters = {}, this.fetchOptions = {};
35291
+ B(this, "baseURL"), B(this, "timeout"), B(this, "headers"), B(this, "responseInterceptor"), B(this, "fetch"), B(this, "ejectInterceptor"), B(this, "url"), B(this, "parameters"), B(this, "fetchOptions"), this.baseURL = t.baseURL, this.headers = t.headers || new Headers(), this.timeout = t != null && t.timeout ? t.timeout * 1e3 : 0, this.responseInterceptor = t.responseInterceptor, this.fetch = (...e) => t.fetch ? t.fetch(...e) : fetch(...e), this.ejectInterceptor = !1, this.url = "", this.parameters = {}, this.fetchOptions = {};
35290
35292
  }
35291
35293
  /**
35292
35294
  *
@@ -35321,7 +35323,7 @@ var Xb = class {
35321
35323
  }
35322
35324
  async _methodHandler(t) {
35323
35325
  let e = `${this.baseURL}${this.url}`, o = null;
35324
- t === "get" ? e = `${this.baseURL}${this.url}?${Fs(this.parameters)}` : o = JSON.stringify(this.parameters);
35326
+ t === "get" ? e = `${this.baseURL}${this.url}?${Es(this.parameters)}` : o = JSON.stringify(this.parameters);
35325
35327
  const a = new URL(e), n = new AbortController(), { signal: s } = n;
35326
35328
  let r = null;
35327
35329
  this.timeout && (r = setTimeout(() => n.abort(), this.timeout));
@@ -35390,7 +35392,7 @@ const Qr = "SB-Agent", an = {
35390
35392
  MEDIUM: 15,
35391
35393
  LARGE: 10,
35392
35394
  VERY_LARGE: 6
35393
- }, ei = 1e3, vo = 3;
35395
+ }, ei = 1e3, ko = 3;
35394
35396
  function Qb(t, e) {
35395
35397
  const o = t.includes("/cdn/stories/"), a = t.split("/").length > 3 && !t.endsWith("/cdn/stories"), n = "find_by" in e;
35396
35398
  return o && a || n;
@@ -35398,7 +35400,7 @@ function Qb(t, e) {
35398
35400
  function ej(t) {
35399
35401
  return t <= nn.SMALL ? $t.SINGLE_OR_SMALL : t <= nn.MEDIUM ? $t.MEDIUM : t <= nn.LARGE ? $t.LARGE : $t.VERY_LARGE;
35400
35402
  }
35401
- function ko(t, e, o = {}, a) {
35403
+ function yo(t, e, o = {}, a) {
35402
35404
  return o.userRateLimit !== void 0 ? Math.min(o.userRateLimit, ei) : o.serverHeadersRateLimit !== void 0 ? Math.min(o.serverHeadersRateLimit, ei) : a !== void 0 ? a : !t || !e || Qb(t, e) ? $t.SINGLE_OR_SMALL : ej(e.per_page || Zb);
35403
35405
  }
35404
35406
  function tj(t) {
@@ -35459,7 +35461,7 @@ function nj(t, e, o) {
35459
35461
  }
35460
35462
  var sj = class {
35461
35463
  constructor(t, e = 1e3) {
35462
- O(this, "queues"), O(this, "interval"), O(this, "throttledRequestFn"), this.queues = /* @__PURE__ */ new Map(), this.interval = e, this.throttledRequestFn = t;
35464
+ B(this, "queues"), B(this, "interval"), B(this, "throttledRequestFn"), this.queues = /* @__PURE__ */ new Map(), this.interval = e, this.throttledRequestFn = t;
35463
35465
  }
35464
35466
  /**
35465
35467
  * Gets or creates a throttle queue for the specified rate limit
@@ -35490,7 +35492,7 @@ var sj = class {
35490
35492
  return this.queues.size;
35491
35493
  }
35492
35494
  };
35493
- let yo = {};
35495
+ let _o = {};
35494
35496
  const Re = {};
35495
35497
  var rj = class {
35496
35498
  /**
@@ -35499,7 +35501,7 @@ var rj = class {
35499
35501
  * @param pEndpoint string, optional
35500
35502
  */
35501
35503
  constructor(t, e) {
35502
- O(this, "client"), O(this, "maxRetries"), O(this, "retriesDelay"), O(this, "throttleManager"), O(this, "accessToken"), O(this, "cache"), O(this, "resolveCounter"), O(this, "relations"), O(this, "links"), O(this, "version"), O(this, "rateLimitConfig"), O(this, "richTextResolver"), O(this, "resolveNestedRelations"), O(this, "stringifiedStoriesCache"), O(this, "inlineAssets");
35504
+ B(this, "client"), B(this, "maxRetries"), B(this, "retriesDelay"), B(this, "throttleManager"), B(this, "accessToken"), B(this, "cache"), B(this, "resolveCounter"), B(this, "relations"), B(this, "links"), B(this, "version"), B(this, "rateLimitConfig"), B(this, "richTextResolver"), B(this, "resolveNestedRelations"), B(this, "stringifiedStoriesCache"), B(this, "inlineAssets");
35503
35505
  let o = t.endpoint || e;
35504
35506
  if (!o) {
35505
35507
  const n = t.https === !1 ? "http" : "https";
@@ -35540,16 +35542,16 @@ var rj = class {
35540
35542
  return Gb([l, ...await Jb(Ub(i, l.total ? Math.ceil(l.total / (l.perPage || n)) : 1), (p) => this.makeRequest(s, e, n, p + 1, a))], (p) => Object.values(p.data[r]));
35541
35543
  }
35542
35544
  post(t, e = {}, o) {
35543
- const a = `/${t}`, n = ko(void 0, void 0, this.rateLimitConfig, vo);
35545
+ const a = `/${t}`, n = yo(void 0, void 0, this.rateLimitConfig, ko);
35544
35546
  return this.throttleManager.execute(n, "post", a, e, o);
35545
35547
  }
35546
35548
  put(t, e = {}, o) {
35547
- const a = `/${t}`, n = ko(void 0, void 0, this.rateLimitConfig, vo);
35549
+ const a = `/${t}`, n = yo(void 0, void 0, this.rateLimitConfig, ko);
35548
35550
  return this.throttleManager.execute(n, "put", a, e, o);
35549
35551
  }
35550
35552
  delete(t, e = {}, o) {
35551
35553
  e || (e = {});
35552
- const a = `/${t}`, n = ko(void 0, void 0, this.rateLimitConfig, vo);
35554
+ const a = `/${t}`, n = yo(void 0, void 0, this.rateLimitConfig, ko);
35553
35555
  return this.throttleManager.execute(n, "delete", a, e, o);
35554
35556
  }
35555
35557
  getStories(t = {}, e) {
@@ -35715,7 +35717,7 @@ var rj = class {
35715
35717
  }), this.stringifiedStoriesCache = {}, delete this.links[o], delete this.relations[o];
35716
35718
  }
35717
35719
  async cacheResponse(t, e, o, a) {
35718
- const n = Fs({
35720
+ const n = Es({
35719
35721
  url: t,
35720
35722
  params: e
35721
35723
  }), s = this.cacheProvider();
@@ -35723,7 +35725,7 @@ var rj = class {
35723
35725
  const l = await s.get(n);
35724
35726
  if (l) return Promise.resolve(l);
35725
35727
  }
35726
- const r = !on(t) && this.rateLimitConfig.isManagementApi ? vo : void 0, i = ko(t, e, this.rateLimitConfig, r);
35728
+ const r = !on(t) && this.rateLimitConfig.isManagementApi ? ko : void 0, i = yo(t, e, this.rateLimitConfig, r);
35727
35729
  return new Promise(async (l, p) => {
35728
35730
  var c;
35729
35731
  try {
@@ -35771,16 +35773,16 @@ var rj = class {
35771
35773
  case "memory":
35772
35774
  return {
35773
35775
  get(t) {
35774
- return Promise.resolve(yo[t]);
35776
+ return Promise.resolve(_o[t]);
35775
35777
  },
35776
35778
  getAll() {
35777
- return Promise.resolve(yo);
35779
+ return Promise.resolve(_o);
35778
35780
  },
35779
35781
  set(t, e) {
35780
- return yo[t] = e, Promise.resolve(void 0);
35782
+ return _o[t] = e, Promise.resolve(void 0);
35781
35783
  },
35782
35784
  flush() {
35783
- return yo = {}, Promise.resolve(void 0);
35785
+ return _o = {}, Promise.resolve(void 0);
35784
35786
  }
35785
35787
  };
35786
35788
  case "custom":
@@ -35845,7 +35847,7 @@ const dj = (t = {}) => {
35845
35847
  return {};
35846
35848
  }
35847
35849
  };
35848
- let On = "https://app.storyblok.com/f/storyblok-v2-latest.js";
35850
+ let Bn = "https://app.storyblok.com/f/storyblok-v2-latest.js";
35849
35851
  const uj = (t = {}) => {
35850
35852
  var e, o;
35851
35853
  const {
@@ -35860,14 +35862,14 @@ const uj = (t = {}) => {
35860
35862
  let p = {};
35861
35863
  s.forEach((m) => {
35862
35864
  p = { ...p, ...m(l) };
35863
- }), i && (On = i);
35865
+ }), i && (Bn = i);
35864
35866
  const c = !(typeof window > "u") && ((o = (e = window.location) == null ? void 0 : e.search) == null ? void 0 : o.includes("_storyblok_tk"));
35865
- return a !== !1 && c && Ip(On), p;
35867
+ return a !== !1 && c && Ip(Bn), p;
35866
35868
  };
35867
35869
  function fj(t, e) {
35868
35870
  return Dp(e).render(t);
35869
35871
  }
35870
- const hj = () => Ip(On);
35872
+ const hj = () => Ip(Bn);
35871
35873
  export {
35872
35874
  dj as apiPlugin,
35873
35875
  lj as getLiveStory,
@@ -35879,6 +35881,6 @@ export {
35879
35881
  pj as storyblok,
35880
35882
  gj as storyblokEditable,
35881
35883
  uj as storyblokInit,
35882
- Op as toCamelCase,
35884
+ Bp as toCamelCase,
35883
35885
  ij as useStoryblokApi
35884
35886
  };