@strands.gg/accui 2.17.37 → 2.17.39

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,4 +1,4 @@
1
- import { defineComponent as ae, computed as L, createElementBlock as E, openBlock as C, createElementVNode as $, normalizeClass as Q, createCommentVNode as W, toDisplayString as ee, renderSlot as T, createTextVNode as Ve, unref as R, normalizeStyle as Ne, useSlots as xn, createVNode as z, Fragment as be, withCtx as A, getCurrentInstance as ea, createBlock as Y, resolveDynamicComponent as gr, resolveComponent as Hd, ref as _, onUnmounted as wn, mergeProps as In, Teleport as di, nextTick as Re, normalizeProps as jd, createSlots as je, useAttrs as qd, h as Kt, onMounted as _n, withModifiers as cn, renderList as Ge, watch as ht, toRefs as Ud, withDirectives as So, vModelSelect as Mo, watchEffect as Wd, onBeforeUnmount as Ns, shallowRef as Kd, markRaw as Jd, customRef as Gd, useCssVars as Yd } from "vue";
1
+ import { defineComponent as ae, computed as L, createElementBlock as E, openBlock as C, createElementVNode as $, normalizeClass as Q, createCommentVNode as W, toDisplayString as ee, renderSlot as T, createTextVNode as Ve, unref as R, normalizeStyle as Ne, useSlots as xn, createVNode as z, Fragment as be, withCtx as A, getCurrentInstance as Ns, createBlock as G, resolveDynamicComponent as In, resolveComponent as Hd, ref as _, onUnmounted as wn, mergeProps as Dn, Teleport as di, nextTick as Re, normalizeProps as jd, createSlots as je, useAttrs as qd, h as Kt, onMounted as er, withModifiers as cn, renderList as Ge, watch as ht, toRefs as Ud, withDirectives as Mo, vModelSelect as To, watchEffect as Wd, onBeforeUnmount as Is, shallowRef as Kd, markRaw as Jd, customRef as Gd, useCssVars as Yd } from "vue";
2
2
  const Ae = (n, e) => {
3
3
  const t = n.__vccOpts || n;
4
4
  for (const [r, i] of e)
@@ -185,7 +185,7 @@ const Ae = (n, e) => {
185
185
  n.text ? (C(), E("p", uu, ee(n.text), 1)) : W("", !0)
186
186
  ], 2));
187
187
  }
188
- }), Is = /* @__PURE__ */ Ae(fu, [["__scopeId", "data-v-4b565c5d"]]), hu = {
188
+ }), Ds = /* @__PURE__ */ Ae(fu, [["__scopeId", "data-v-4b565c5d"]]), hu = {
189
189
  key: 0,
190
190
  class: "button-loading-content"
191
191
  }, pu = { key: 0 }, mu = {
@@ -226,7 +226,7 @@ const Ae = (n, e) => {
226
226
  }
227
227
  }), o = L(() => i.size ? `button-content-${i.size}` : "button-content-md");
228
228
  return (l, a) => n.loading ? (C(), E("span", hu, [
229
- z(Is, {
229
+ z(Ds, {
230
230
  variant: "circle",
231
231
  size: s.value,
232
232
  centered: !1,
@@ -251,7 +251,7 @@ const Ae = (n, e) => {
251
251
  ], 64))
252
252
  ], 2));
253
253
  }
254
- }), jn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-12d1d1fc"]]), ku = ["href", "target", "rel"], To = /* @__PURE__ */ ae({
254
+ }), qn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-12d1d1fc"]]), ku = ["href", "target", "rel"], Eo = /* @__PURE__ */ ae({
255
255
  __name: "UiButton.Anchor",
256
256
  props: {
257
257
  to: {},
@@ -292,7 +292,7 @@ const Ae = (n, e) => {
292
292
  style: Ne(n.buttonStyles),
293
293
  onClick: s
294
294
  }, [
295
- z(jn, {
295
+ z(qn, {
296
296
  loading: n.loading,
297
297
  "loading-text": n.loadingText,
298
298
  icon: n.icon,
@@ -314,7 +314,7 @@ const Ae = (n, e) => {
314
314
  }, 8, ["loading", "loading-text", "icon", "text-align"])
315
315
  ], 14, ku));
316
316
  }
317
- }), Eo = /* @__PURE__ */ ae({
317
+ }), Ao = /* @__PURE__ */ ae({
318
318
  __name: "UiButton.Nuxt",
319
319
  props: {
320
320
  to: {},
@@ -328,14 +328,14 @@ const Ae = (n, e) => {
328
328
  },
329
329
  emits: ["click"],
330
330
  setup(n, { emit: e }) {
331
- const t = ea(), r = L(() => t?.appContext.app.component("NuxtLink") ? "NuxtLink" : t?.appContext.app.component("RouterLink") ? "RouterLink" : "a"), i = n, s = e, o = (l) => {
331
+ const t = Ns(), r = L(() => t?.appContext.app.component("NuxtLink") ? "NuxtLink" : t?.appContext.app.component("RouterLink") ? "RouterLink" : "a"), i = n, s = e, o = (l) => {
332
332
  if (i.disabled || i.loading) {
333
333
  l.preventDefault();
334
334
  return;
335
335
  }
336
336
  s("click", l);
337
337
  };
338
- return (l, a) => (C(), Y(gr(r.value), {
338
+ return (l, a) => (C(), G(In(r.value), {
339
339
  to: r.value !== "a" ? n.to : void 0,
340
340
  href: r.value === "a" ? typeof n.to == "string" ? n.to : "/" : void 0,
341
341
  class: Q(n.buttonClasses),
@@ -343,7 +343,7 @@ const Ae = (n, e) => {
343
343
  onClick: o
344
344
  }, {
345
345
  default: A(() => [
346
- z(jn, {
346
+ z(qn, {
347
347
  loading: n.loading,
348
348
  "loading-text": n.loadingText,
349
349
  icon: n.icon,
@@ -367,7 +367,7 @@ const Ae = (n, e) => {
367
367
  _: 3
368
368
  }, 8, ["to", "href", "class", "style"]));
369
369
  }
370
- }), Ao = /* @__PURE__ */ ae({
370
+ }), Oo = /* @__PURE__ */ ae({
371
371
  __name: "UiButton.Vue",
372
372
  props: {
373
373
  to: {},
@@ -390,14 +390,14 @@ const Ae = (n, e) => {
390
390
  };
391
391
  return (s, o) => {
392
392
  const l = Hd("router-link");
393
- return C(), Y(l, {
393
+ return C(), G(l, {
394
394
  to: n.to,
395
395
  class: Q(n.buttonClasses),
396
396
  style: Ne(n.buttonStyles),
397
397
  onClick: i
398
398
  }, {
399
399
  default: A(() => [
400
- z(jn, {
400
+ z(qn, {
401
401
  loading: n.loading,
402
402
  "loading-text": n.loadingText,
403
403
  icon: n.icon,
@@ -481,7 +481,7 @@ const Ae = (n, e) => {
481
481
  };
482
482
  return wn(() => {
483
483
  o && clearTimeout(o), l && clearTimeout(l);
484
- }), (f, h) => (C(), E("div", In({
484
+ }), (f, h) => (C(), E("div", Dn({
485
485
  ref_key: "tooltipContainer",
486
486
  ref: t,
487
487
  class: "ui-tooltip-container"
@@ -490,7 +490,7 @@ const Ae = (n, e) => {
490
490
  onMouseleave: u
491
491
  }), [
492
492
  T(f.$slots, "default", {}, void 0, !0),
493
- (C(), Y(di, { to: "body" }, [
493
+ (C(), G(di, { to: "body" }, [
494
494
  s.value ? (C(), E("div", {
495
495
  key: 0,
496
496
  ref_key: "tooltipRef",
@@ -567,9 +567,9 @@ const Ae = (n, e) => {
567
567
  ].filter(Boolean)), l = L(() => o.value.join(" ")), a = L(() => ({
568
568
  fontWeight: t.fontWeight
569
569
  })), c = L(() => t.disabled || t.loading ? -1 : t.tabindex ?? void 0);
570
- return (d, u) => n.title ? (C(), Y(wu, jd(In({ key: 0 }, r.value)), {
570
+ return (d, u) => n.title ? (C(), G(wu, jd(Dn({ key: 0 }, r.value)), {
571
571
  default: A(() => [
572
- n.to ? i.value && n.to ? (C(), Y(Eo, {
572
+ n.to ? i.value && n.to ? (C(), G(Ao, {
573
573
  key: 1,
574
574
  to: n.to,
575
575
  disabled: n.disabled,
@@ -604,7 +604,7 @@ const Ae = (n, e) => {
604
604
  ]),
605
605
  key: "1"
606
606
  } : void 0
607
- ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : s.value && n.to ? (C(), Y(Ao, {
607
+ ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : s.value && n.to ? (C(), G(Oo, {
608
608
  key: 2,
609
609
  to: n.to,
610
610
  disabled: n.disabled,
@@ -639,7 +639,7 @@ const Ae = (n, e) => {
639
639
  ]),
640
640
  key: "1"
641
641
  } : void 0
642
- ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), Y(To, {
642
+ ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), G(Eo, {
643
643
  key: 3,
644
644
  to: n.to,
645
645
  href: n.href,
@@ -676,7 +676,7 @@ const Ae = (n, e) => {
676
676
  ]),
677
677
  key: "1"
678
678
  } : void 0
679
- ]), 1032, ["to", "href", "external", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), E("button", In({ key: 0 }, d.$attrs, {
679
+ ]), 1032, ["to", "href", "external", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), E("button", Dn({ key: 0 }, d.$attrs, {
680
680
  type: n.type,
681
681
  disabled: n.disabled || n.loading,
682
682
  class: l.value,
@@ -684,7 +684,7 @@ const Ae = (n, e) => {
684
684
  tabindex: c.value,
685
685
  onClick: u[0] || (u[0] = (f) => d.$emit("click", f))
686
686
  }), [
687
- z(jn, {
687
+ z(qn, {
688
688
  loading: n.loading,
689
689
  "loading-text": n.loadingText,
690
690
  icon: n.icon,
@@ -718,7 +718,7 @@ const Ae = (n, e) => {
718
718
  ]),
719
719
  _: 3
720
720
  }, 16)) : (C(), E(be, { key: 1 }, [
721
- n.to ? i.value && n.to ? (C(), Y(Eo, {
721
+ n.to ? i.value && n.to ? (C(), G(Ao, {
722
722
  key: 1,
723
723
  to: n.to,
724
724
  disabled: n.disabled,
@@ -753,7 +753,7 @@ const Ae = (n, e) => {
753
753
  ]),
754
754
  key: "1"
755
755
  } : void 0
756
- ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : s.value && n.to ? (C(), Y(Ao, {
756
+ ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : s.value && n.to ? (C(), G(Oo, {
757
757
  key: 2,
758
758
  to: n.to,
759
759
  disabled: n.disabled,
@@ -788,7 +788,7 @@ const Ae = (n, e) => {
788
788
  ]),
789
789
  key: "1"
790
790
  } : void 0
791
- ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), Y(To, {
791
+ ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), G(Eo, {
792
792
  key: 3,
793
793
  to: n.to,
794
794
  href: n.href,
@@ -825,7 +825,7 @@ const Ae = (n, e) => {
825
825
  ]),
826
826
  key: "1"
827
827
  } : void 0
828
- ]), 1032, ["to", "href", "external", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), E("button", In({ key: 0 }, d.$attrs, {
828
+ ]), 1032, ["to", "href", "external", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex", "text-align"])) : (C(), E("button", Dn({ key: 0 }, d.$attrs, {
829
829
  type: n.type,
830
830
  disabled: n.disabled || n.loading,
831
831
  class: l.value,
@@ -833,7 +833,7 @@ const Ae = (n, e) => {
833
833
  tabindex: c.value,
834
834
  onClick: u[4] || (u[4] = (f) => d.$emit("click", f))
835
835
  }), [
836
- z(jn, {
836
+ z(qn, {
837
837
  loading: n.loading,
838
838
  "loading-text": n.loadingText,
839
839
  icon: n.icon,
@@ -893,50 +893,59 @@ const Ae = (n, e) => {
893
893
  shadow: { default: "sm" },
894
894
  color: { default: "default" },
895
895
  title: {},
896
- subtitle: {}
896
+ subtitle: {},
897
+ to: {}
897
898
  },
898
899
  setup(n) {
899
- const e = qd();
900
- return (t, r) => (C(), E("div", {
901
- class: Q(["ui-card", [
902
- `ui-card-${n.variant}`,
903
- `ui-card-padding-${n.padding}`,
904
- `ui-card-shadow-${n.shadow}`,
905
- `ui-card-color-${n.color}`,
906
- R(e).class
907
- ]])
908
- }, [
909
- t.$slots.header || n.title || n.subtitle || t.$slots["leading-icon"] || t.$slots["trailing-icon"] ? (C(), E("div", Tu, [
910
- T(t.$slots, "header", {}, () => [
911
- T(t.$slots, "leading-icon", {}, void 0, !0),
912
- n.title || t.$slots.title || n.subtitle || t.$slots.subtitle ? (C(), E("div", Eu, [
913
- n.title || t.$slots.title ? T(t.$slots, "title", { key: 0 }, () => [
914
- n.title ? (C(), E("h2", Au, ee(n.title), 1)) : W("", !0)
915
- ], !0) : W("", !0),
916
- n.subtitle || t.$slots.subtitle ? T(t.$slots, "subtitle", { key: 1 }, () => [
917
- n.subtitle ? (C(), E("p", Ou, ee(n.subtitle), 1)) : W("", !0)
918
- ], !0) : W("", !0)
919
- ])) : W("", !0),
920
- T(t.$slots, "trailing-icon", {}, void 0, !0),
921
- T(t.$slots, "actions", {}, void 0, !0)
922
- ], !0)
923
- ])) : W("", !0),
924
- t.$slots.default ? (C(), E("div", Nu, [
925
- T(t.$slots, "default", {}, void 0, !0)
926
- ])) : W("", !0),
927
- t.$slots.footer ? (C(), E("div", Iu, [
928
- T(t.$slots, "footer", {}, void 0, !0)
929
- ])) : W("", !0)
930
- ], 2));
900
+ const e = n, t = qd(), r = Ns(), i = L(() => e.to ? r?.appContext.app.component("NuxtLink") ? "NuxtLink" : r?.appContext.app.component("RouterLink") ? "RouterLink" : "a" : null), s = L(() => e.to ? i.value || "a" : "div"), o = L(() => {
901
+ const c = s.value;
902
+ return c === "NuxtLink" || c === "RouterLink";
903
+ }), l = L(() => s.value === "a" && !!e.to), a = L(() => [
904
+ `ui-card-${e.variant}`,
905
+ `ui-card-padding-${e.padding}`,
906
+ `ui-card-shadow-${e.shadow}`,
907
+ `ui-card-color-${e.color}`,
908
+ t.class
909
+ ]);
910
+ return (c, d) => (C(), G(In(s.value), {
911
+ to: o.value ? n.to : void 0,
912
+ href: l.value ? typeof n.to == "string" ? n.to : "" : void 0,
913
+ class: Q(["ui-card", [a.value, { "ui-card-linkable": !!n.to }]])
914
+ }, {
915
+ default: A(() => [
916
+ c.$slots.header || n.title || n.subtitle || c.$slots["leading-icon"] || c.$slots["trailing-icon"] ? (C(), E("div", Tu, [
917
+ T(c.$slots, "header", {}, () => [
918
+ T(c.$slots, "leading-icon", {}, void 0, !0),
919
+ n.title || c.$slots.title || n.subtitle || c.$slots.subtitle ? (C(), E("div", Eu, [
920
+ n.title || c.$slots.title ? T(c.$slots, "title", { key: 0 }, () => [
921
+ n.title ? (C(), E("h2", Au, ee(n.title), 1)) : W("", !0)
922
+ ], !0) : W("", !0),
923
+ n.subtitle || c.$slots.subtitle ? T(c.$slots, "subtitle", { key: 1 }, () => [
924
+ n.subtitle ? (C(), E("p", Ou, ee(n.subtitle), 1)) : W("", !0)
925
+ ], !0) : W("", !0)
926
+ ])) : W("", !0),
927
+ T(c.$slots, "trailing-icon", {}, void 0, !0),
928
+ T(c.$slots, "actions", {}, void 0, !0)
929
+ ], !0)
930
+ ])) : W("", !0),
931
+ c.$slots.default ? (C(), E("div", Nu, [
932
+ T(c.$slots, "default", {}, void 0, !0)
933
+ ])) : W("", !0),
934
+ c.$slots.footer ? (C(), E("div", Iu, [
935
+ T(c.$slots, "footer", {}, void 0, !0)
936
+ ])) : W("", !0)
937
+ ]),
938
+ _: 3
939
+ }, 8, ["to", "href", "class"]));
931
940
  }
932
- }), na = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-fc43a75a"]]);
933
- const Oo = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $u = (n) => n.replace(
941
+ }), na = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-5bb4dec2"]]);
942
+ const No = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $u = (n) => n.replace(
934
943
  /^([A-Z])|[\s-_]+(\w)/g,
935
944
  (e, t, r) => r ? r.toUpperCase() : t.toLowerCase()
936
945
  ), Ru = (n) => {
937
946
  const e = $u(n);
938
947
  return e.charAt(0).toUpperCase() + e.slice(1);
939
- }, Lu = (...n) => n.filter((e, t, r) => !!e && e.trim() !== "" && r.indexOf(e) === t).join(" ").trim(), No = (n) => n === "";
948
+ }, Lu = (...n) => n.filter((e, t, r) => !!e && e.trim() !== "" && r.indexOf(e) === t).join(" ").trim(), Io = (n) => n === "";
940
949
  var Sn = {
941
950
  xmlns: "http://www.w3.org/2000/svg",
942
951
  width: 24,
@@ -966,11 +975,11 @@ const Pu = ({
966
975
  width: o,
967
976
  height: o,
968
977
  stroke: l,
969
- "stroke-width": No(t) || No(r) || t === !0 || r === !0 ? Number(i || s || Sn["stroke-width"]) * 24 / Number(o) : i || s || Sn["stroke-width"],
978
+ "stroke-width": Io(t) || Io(r) || t === !0 || r === !0 ? Number(i || s || Sn["stroke-width"]) * 24 / Number(o) : i || s || Sn["stroke-width"],
970
979
  class: Lu(
971
980
  "lucide",
972
981
  a.class,
973
- ...n ? [`lucide-${Oo(Ru(n))}-icon`, `lucide-${Oo(n)}`] : ["lucide-icon"]
982
+ ...n ? [`lucide-${No(Ru(n))}-icon`, `lucide-${No(n)}`] : ["lucide-icon"]
974
983
  )
975
984
  },
976
985
  [...e.map((d) => Kt(...d)), ...c.default ? [c.default()] : []]
@@ -1021,7 +1030,7 @@ const ju = oe("calendar", [
1021
1030
  ["path", { d: "M3 10h18", key: "8toen8" }]
1022
1031
  ]);
1023
1032
  const qu = oe("check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
1024
- const Ds = oe("chevron-down", [
1033
+ const $s = oe("chevron-down", [
1025
1034
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
1026
1035
  ]);
1027
1036
  const Uu = oe("chevron-left", [
@@ -1150,7 +1159,7 @@ const df = oe("undo", [
1150
1159
  ["path", { d: "M3 7v6h6", key: "1v2h90" }],
1151
1160
  ["path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13", key: "1r6uu6" }]
1152
1161
  ]);
1153
- const $s = oe("x", [
1162
+ const Rs = oe("x", [
1154
1163
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1155
1164
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1156
1165
  ]), uf = {
@@ -1254,7 +1263,7 @@ const $s = oe("x", [
1254
1263
  onClick: p
1255
1264
  }, {
1256
1265
  icon: A(() => [
1257
- i.value ? (C(), Y(R(Gu), { key: 0 })) : (C(), Y(R(Yu), { key: 1 }))
1266
+ i.value ? (C(), G(R(Gu), { key: 0 })) : (C(), G(R(Yu), { key: 1 }))
1258
1267
  ]),
1259
1268
  _: 1
1260
1269
  }, 8, ["color", "variant", "tabindex", "aria-label"])
@@ -1270,7 +1279,7 @@ const $s = oe("x", [
1270
1279
  onClick: m
1271
1280
  }, {
1272
1281
  icon: A(() => [
1273
- z(R($s))
1282
+ z(R(Rs))
1274
1283
  ]),
1275
1284
  _: 1
1276
1285
  }, 8, ["tabindex"])
@@ -1314,7 +1323,7 @@ const $s = oe("x", [
1314
1323
  emits: ["update:modelValue", "blur", "focus", "keydown"],
1315
1324
  setup(n, { emit: e }) {
1316
1325
  const t = n, r = e, i = xn(), s = L(() => !!i.default), o = _(null);
1317
- _n(() => {
1326
+ er(() => {
1318
1327
  (t.modelValue === void 0 || t.modelValue === "") && s.value && setTimeout(() => {
1319
1328
  if (o.value) {
1320
1329
  const h = o.value.textContent?.trim() || "";
@@ -1386,7 +1395,7 @@ const $s = oe("x", [
1386
1395
  ], 2));
1387
1396
  }
1388
1397
  }), wf = /* @__PURE__ */ Ae(xf, [["__scopeId", "data-v-5728c58e"]]);
1389
- function Rs(n) {
1398
+ function Ls(n) {
1390
1399
  const {
1391
1400
  trigger: e,
1392
1401
  floating: t,
@@ -1494,7 +1503,7 @@ function Rs(n) {
1494
1503
  }, S = () => {
1495
1504
  a && (window.removeEventListener("resize", p), window.removeEventListener("scroll", m, !0)), c?.enabled && document.removeEventListener("click", g, !0), h && (h.disconnect(), h = null);
1496
1505
  };
1497
- return _n(() => {
1506
+ return er(() => {
1498
1507
  y();
1499
1508
  }), wn(() => {
1500
1509
  S();
@@ -1571,7 +1580,7 @@ const Cf = {
1571
1580
  floatingStyle: d,
1572
1581
  updatePosition: u,
1573
1582
  cleanup: f
1574
- } = Rs({
1583
+ } = Ls({
1575
1584
  trigger: i,
1576
1585
  floating: s,
1577
1586
  placement: "bottom-start",
@@ -1744,7 +1753,7 @@ const Cf = {
1744
1753
  $("div", {
1745
1754
  class: Q(["input-select-arrow", { "input-select-arrow-open": c.value.isOpen }])
1746
1755
  }, [
1747
- z(R(Ds))
1756
+ z(R($s))
1748
1757
  ], 2)
1749
1758
  ], 42, Sf),
1750
1759
  t.hasTrailingIcon ? (C(), E("div", Af, [
@@ -1752,7 +1761,7 @@ const Cf = {
1752
1761
  ])) : W("", !0),
1753
1762
  T(I.$slots, "trailing", {}, void 0, !0)
1754
1763
  ], 2),
1755
- (C(), Y(di, { to: a.value }, [
1764
+ (C(), G(di, { to: a.value }, [
1756
1765
  c.value.isOpen ? (C(), E("div", {
1757
1766
  key: 0,
1758
1767
  ref_key: "dropdownRef",
@@ -1766,7 +1775,7 @@ const Cf = {
1766
1775
  }, ["prevent"]))
1767
1776
  }, [
1768
1777
  n.searchable ? (C(), E("div", Nf, [
1769
- z(wo, {
1778
+ z(Co, {
1770
1779
  ref_key: "searchInputRef",
1771
1780
  ref: o,
1772
1781
  modelValue: c.value.searchQuery,
@@ -1945,7 +1954,7 @@ const Cf = {
1945
1954
  src: a.value,
1946
1955
  alt: "Preview",
1947
1956
  class: "input-file-preview"
1948
- }, null, 8, Ff)) : t.hasLeadingIcon ? T(M.$slots, "leading-icon", { key: 1 }, void 0, !0) : (C(), Y(R(Qu), { key: 2 }))
1957
+ }, null, 8, Ff)) : t.hasLeadingIcon ? T(M.$slots, "leading-icon", { key: 1 }, void 0, !0) : (C(), G(R(Qu), { key: 2 }))
1949
1958
  ]),
1950
1959
  $("div", {
1951
1960
  class: Q(["input-file-area", {
@@ -2003,7 +2012,7 @@ const Cf = {
2003
2012
  onClick: cn(m, ["stop"]),
2004
2013
  "aria-label": "Clear selected files"
2005
2014
  }, [
2006
- z(R($s))
2015
+ z(R(Rs))
2007
2016
  ])
2008
2017
  ])) : t.hasTrailingIcon ? (C(), E("div", nh, [
2009
2018
  T(M.$slots, "trailing-icon", {}, void 0, !0)
@@ -2229,7 +2238,7 @@ const Cf = {
2229
2238
  g = null;
2230
2239
  }, 50);
2231
2240
  };
2232
- _n(async () => {
2241
+ er(async () => {
2233
2242
  await Re();
2234
2243
  const v = t.tabs.findIndex((b) => b.value === t.modelValue);
2235
2244
  v !== -1 && (m(v), setTimeout(() => {
@@ -2309,7 +2318,7 @@ const Cf = {
2309
2318
  ], 10, ch)) : W("", !0)
2310
2319
  ], 2));
2311
2320
  }
2312
- }), Ls = /* @__PURE__ */ Ae(dh, [["__scopeId", "data-v-901716e3"]]), uh = {
2321
+ }), Ps = /* @__PURE__ */ Ae(dh, [["__scopeId", "data-v-901716e3"]]), uh = {
2313
2322
  key: 0,
2314
2323
  class: "ui-divider-text"
2315
2324
  }, fh = /* @__PURE__ */ ae({
@@ -2389,7 +2398,7 @@ const Cf = {
2389
2398
  floatingStyle: l,
2390
2399
  updatePosition: a,
2391
2400
  cleanup: c
2392
- } = Rs({
2401
+ } = Ls({
2393
2402
  trigger: i,
2394
2403
  floating: s,
2395
2404
  placement: "bottom-start",
@@ -2533,7 +2542,7 @@ const Cf = {
2533
2542
  F.getMinutes()
2534
2543
  );
2535
2544
  r("update:modelValue", B), r("change", B), t.type === "datetime" ? h.value = "time" : t.type === "date" && u();
2536
- }, ir = (q, F) => {
2545
+ }, sr = (q, F) => {
2537
2546
  let B = x.value ? new Date(x.value) : /* @__PURE__ */ new Date();
2538
2547
  if (!x.value) {
2539
2548
  const ne = /* @__PURE__ */ new Date();
@@ -2553,7 +2562,7 @@ const Cf = {
2553
2562
  }, Pd = () => {
2554
2563
  const q = /* @__PURE__ */ new Date();
2555
2564
  k.value && q < k.value || w.value && q > w.value || (r("update:modelValue", q), r("change", q), u());
2556
- }, Co = () => {
2565
+ }, So = () => {
2557
2566
  r("update:modelValue", null), r("change", null);
2558
2567
  };
2559
2568
  return ht(() => t.modelValue, (q) => {
@@ -2582,7 +2591,7 @@ const Cf = {
2582
2591
  onClick: f
2583
2592
  }, [
2584
2593
  $("div", ph, [
2585
- n.type === "date" ? (C(), Y(R(ju), { key: 0 })) : n.type === "time" ? (C(), Y(R(Ku), { key: 1 })) : (C(), Y(R(Hu), { key: 2 }))
2594
+ n.type === "date" ? (C(), G(R(ju), { key: 0 })) : n.type === "time" ? (C(), G(R(Ku), { key: 1 })) : (C(), G(R(Hu), { key: 2 }))
2586
2595
  ]),
2587
2596
  $("div", mh, [
2588
2597
  M.value ? (C(), E("span", gh, ee(M.value), 1)) : (C(), E("span", yh, ee(n.placeholder || Dd()), 1))
@@ -2590,14 +2599,14 @@ const Cf = {
2590
2599
  n.modelValue && !n.disabled && !n.readonly ? (C(), E("div", {
2591
2600
  key: 0,
2592
2601
  class: "datetime-picker-trailing-icon",
2593
- onClick: cn(Co, ["stop"])
2602
+ onClick: cn(So, ["stop"])
2594
2603
  }, [
2595
- z(R($s))
2604
+ z(R(Rs))
2596
2605
  ])) : (C(), E("div", bh, [
2597
- z(R(Ds))
2606
+ z(R($s))
2598
2607
  ]))
2599
2608
  ], 2),
2600
- (C(), Y(di, { to: "body" }, [
2609
+ (C(), G(di, { to: "body" }, [
2601
2610
  o.value ? (C(), E("div", {
2602
2611
  key: 0,
2603
2612
  ref_key: "floatingElement",
@@ -2605,7 +2614,7 @@ const Cf = {
2605
2614
  class: "datetime-picker-dropdown",
2606
2615
  style: Ne(R(l))
2607
2616
  }, [
2608
- n.type === "datetime" ? (C(), Y(Ls, {
2617
+ n.type === "datetime" ? (C(), G(Ps, {
2609
2618
  key: 0,
2610
2619
  modelValue: h.value,
2611
2620
  "onUpdate:modelValue": F[0] || (F[0] = (B) => h.value = B),
@@ -2630,7 +2639,7 @@ const Cf = {
2630
2639
  _: 1
2631
2640
  }, 8, ["disabled"]),
2632
2641
  $("div", xh, [
2633
- So($("select", {
2642
+ Mo($("select", {
2634
2643
  "onUpdate:modelValue": F[1] || (F[1] = (B) => p.value = B),
2635
2644
  class: "datetime-picker-select"
2636
2645
  }, [
@@ -2639,9 +2648,9 @@ const Cf = {
2639
2648
  value: ne
2640
2649
  }, ee(B), 9, wh)), 64))
2641
2650
  ], 512), [
2642
- [Mo, p.value]
2651
+ [To, p.value]
2643
2652
  ]),
2644
- So($("select", {
2653
+ Mo($("select", {
2645
2654
  "onUpdate:modelValue": F[2] || (F[2] = (B) => m.value = B),
2646
2655
  class: "datetime-picker-select"
2647
2656
  }, [
@@ -2650,7 +2659,7 @@ const Cf = {
2650
2659
  value: B
2651
2660
  }, ee(B), 9, Ch))), 128))
2652
2661
  ], 512), [
2653
- [Mo, m.value]
2662
+ [To, m.value]
2654
2663
  ])
2655
2664
  ]),
2656
2665
  z(re, {
@@ -2674,7 +2683,7 @@ const Cf = {
2674
2683
  }, ee(B), 1)), 64))
2675
2684
  ]),
2676
2685
  $("div", Mh, [
2677
- (C(!0), E(be, null, Ge(Ti.value, (B) => (C(), Y(re, {
2686
+ (C(!0), E(be, null, Ge(Ti.value, (B) => (C(), G(re, {
2678
2687
  key: B.key,
2679
2688
  color: B.isSelected || B.isToday ? "primary" : "secondary",
2680
2689
  variant: B.isSelected ? "primary" : B.isToday ? "outline" : "primary",
@@ -2702,13 +2711,13 @@ const Cf = {
2702
2711
  $("div", Ah, [
2703
2712
  F[6] || (F[6] = $("label", { class: "time-label" }, "Hour", -1)),
2704
2713
  $("div", Oh, [
2705
- (C(!0), E(be, null, Ge(ie.value, (B) => (C(), Y(re, {
2714
+ (C(!0), E(be, null, Ge(ie.value, (B) => (C(), G(re, {
2706
2715
  key: B,
2707
2716
  color: g.value === B ? "primary" : "secondary",
2708
2717
  variant: g.value === B ? "primary" : "ghost",
2709
2718
  size: "sm",
2710
2719
  squircle: "",
2711
- onClick: (ne) => ir("hour", B)
2720
+ onClick: (ne) => sr("hour", B)
2712
2721
  }, {
2713
2722
  default: A(() => [
2714
2723
  Ve(ee(String(B).padStart(2, "0")), 1)
@@ -2720,13 +2729,13 @@ const Cf = {
2720
2729
  $("div", Nh, [
2721
2730
  F[7] || (F[7] = $("label", { class: "time-label" }, "Minute", -1)),
2722
2731
  $("div", Ih, [
2723
- (C(!0), E(be, null, Ge(I.value, (B) => (C(), Y(re, {
2732
+ (C(!0), E(be, null, Ge(I.value, (B) => (C(), G(re, {
2724
2733
  key: B,
2725
2734
  color: y.value === B ? "primary" : "secondary",
2726
2735
  variant: y.value === B ? "primary" : "ghost",
2727
2736
  size: "sm",
2728
2737
  squircle: "",
2729
- onClick: (ne) => ir("minute", B)
2738
+ onClick: (ne) => sr("minute", B)
2730
2739
  }, {
2731
2740
  default: A(() => [
2732
2741
  Ve(ee(String(B).padStart(2, "0")), 1)
@@ -2744,7 +2753,7 @@ const Cf = {
2744
2753
  size: "sm",
2745
2754
  squircle: "",
2746
2755
  class: "time-option",
2747
- onClick: F[3] || (F[3] = (B) => ir("period", "AM"))
2756
+ onClick: F[3] || (F[3] = (B) => sr("period", "AM"))
2748
2757
  }, {
2749
2758
  default: A(() => [...F[8] || (F[8] = [
2750
2759
  Ve(" AM ", -1)
@@ -2757,7 +2766,7 @@ const Cf = {
2757
2766
  size: "sm",
2758
2767
  squircle: "",
2759
2768
  class: "time-option",
2760
- onClick: F[4] || (F[4] = (B) => ir("period", "PM"))
2769
+ onClick: F[4] || (F[4] = (B) => sr("period", "PM"))
2761
2770
  }, {
2762
2771
  default: A(() => [...F[9] || (F[9] = [
2763
2772
  Ve(" PM ", -1)
@@ -2784,7 +2793,7 @@ const Cf = {
2784
2793
  }),
2785
2794
  z(re, {
2786
2795
  onClick: F[5] || (F[5] = (B) => {
2787
- Co(), u();
2796
+ So(), u();
2788
2797
  }),
2789
2798
  color: "danger",
2790
2799
  variant: "primary",
@@ -2813,7 +2822,7 @@ const Cf = {
2813
2822
  ]))
2814
2823
  ]));
2815
2824
  }
2816
- }), Ps = /* @__PURE__ */ Ae(Lh, [["__scopeId", "data-v-f688c330"]]), Ph = /* @__PURE__ */ ae({
2825
+ }), zs = /* @__PURE__ */ Ae(Lh, [["__scopeId", "data-v-f688c330"]]), Ph = /* @__PURE__ */ ae({
2817
2826
  __name: "UiInput.Date",
2818
2827
  props: {
2819
2828
  min: {},
@@ -2840,7 +2849,7 @@ const Cf = {
2840
2849
  }, i = (s) => {
2841
2850
  t("change", s);
2842
2851
  };
2843
- return (s, o) => (C(), Y(Ps, {
2852
+ return (s, o) => (C(), G(zs, {
2844
2853
  "model-value": n.modelValue,
2845
2854
  type: "date",
2846
2855
  placeholder: n.placeholder,
@@ -2882,7 +2891,7 @@ const Cf = {
2882
2891
  }, i = (s) => {
2883
2892
  t("change", s);
2884
2893
  };
2885
- return (s, o) => (C(), Y(Ps, {
2894
+ return (s, o) => (C(), G(zs, {
2886
2895
  "model-value": n.modelValue,
2887
2896
  type: "time",
2888
2897
  placeholder: n.placeholder,
@@ -2926,7 +2935,7 @@ const Cf = {
2926
2935
  }, i = (s) => {
2927
2936
  t("change", s);
2928
2937
  };
2929
- return (s, o) => (C(), Y(Ps, {
2938
+ return (s, o) => (C(), G(zs, {
2930
2939
  "model-value": n.modelValue,
2931
2940
  type: "datetime",
2932
2941
  placeholder: n.placeholder,
@@ -3274,15 +3283,15 @@ class O {
3274
3283
  */
3275
3284
  findIndex(e) {
3276
3285
  if (e == 0)
3277
- return sr(0, e);
3286
+ return or(0, e);
3278
3287
  if (e == this.size)
3279
- return sr(this.content.length, e);
3288
+ return or(this.content.length, e);
3280
3289
  if (e > this.size || e < 0)
3281
3290
  throw new RangeError(`Position ${e} outside of fragment (${this})`);
3282
3291
  for (let t = 0, r = 0; ; t++) {
3283
3292
  let i = this.child(t), s = r + i.nodeSize;
3284
3293
  if (s >= e)
3285
- return s == e ? sr(t + 1, s) : sr(t, r);
3294
+ return s == e ? or(t + 1, s) : or(t, r);
3286
3295
  r = s;
3287
3296
  }
3288
3297
  }
@@ -3348,7 +3357,7 @@ class O {
3348
3357
  }
3349
3358
  O.empty = new O([], 0);
3350
3359
  const Ei = { index: 0, offset: 0 };
3351
- function sr(n, e) {
3360
+ function or(n, e) {
3352
3361
  return Ei.index = n, Ei.offset = e, Ei;
3353
3362
  }
3354
3363
  function wr(n, e) {
@@ -3616,7 +3625,7 @@ function Ht(n, e) {
3616
3625
  let t = e.length - 1;
3617
3626
  t >= 0 && n.isText && n.sameMarkup(e[t]) ? e[t] = n.withText(e[t].text + n.text) : e.push(n);
3618
3627
  }
3619
- function Dn(n, e, t, r) {
3628
+ function $n(n, e, t, r) {
3620
3629
  let i = (e || n).node(t), s = 0, o = e ? e.index(t) : i.childCount;
3621
3630
  n && (s = n.index(t), n.depth > t ? s++ : n.textOffset && (Ht(n.nodeAfter, r), s++));
3622
3631
  for (let l = s; l < o; l++)
@@ -3628,15 +3637,15 @@ function jt(n, e) {
3628
3637
  }
3629
3638
  function ca(n, e, t, r, i) {
3630
3639
  let s = n.depth > i && ts(n, e, i + 1), o = r.depth > i && ts(t, r, i + 1), l = [];
3631
- return Dn(null, n, i, l), s && o && e.index(i) == t.index(i) ? (aa(s, o), Ht(jt(s, ca(n, e, t, r, i + 1)), l)) : (s && Ht(jt(s, Sr(n, e, i + 1)), l), Dn(e, t, i, l), o && Ht(jt(o, Sr(t, r, i + 1)), l)), Dn(r, null, i, l), new O(l);
3640
+ return $n(null, n, i, l), s && o && e.index(i) == t.index(i) ? (aa(s, o), Ht(jt(s, ca(n, e, t, r, i + 1)), l)) : (s && Ht(jt(s, Sr(n, e, i + 1)), l), $n(e, t, i, l), o && Ht(jt(o, Sr(t, r, i + 1)), l)), $n(r, null, i, l), new O(l);
3632
3641
  }
3633
3642
  function Sr(n, e, t) {
3634
3643
  let r = [];
3635
- if (Dn(null, n, t, r), n.depth > t) {
3644
+ if ($n(null, n, t, r), n.depth > t) {
3636
3645
  let i = ts(n, e, t + 1);
3637
3646
  Ht(jt(i, Sr(n, e, t + 1)), r);
3638
3647
  }
3639
- return Dn(e, null, t, r), new O(r);
3648
+ return $n(e, null, t, r), new O(r);
3640
3649
  }
3641
3650
  function Fh(n, e) {
3642
3651
  let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
@@ -3647,7 +3656,7 @@ function Fh(n, e) {
3647
3656
  end: i.resolveNoCache(i.content.size - n.openEnd - t)
3648
3657
  };
3649
3658
  }
3650
- class qn {
3659
+ class Un {
3651
3660
  /**
3652
3661
  @internal
3653
3662
  */
@@ -3875,13 +3884,13 @@ class qn {
3875
3884
  break;
3876
3885
  s = c - 1, i += a + 1;
3877
3886
  }
3878
- return new qn(t, r, s);
3887
+ return new Un(t, r, s);
3879
3888
  }
3880
3889
  /**
3881
3890
  @internal
3882
3891
  */
3883
3892
  static resolveCached(e, t) {
3884
- let r = Io.get(e);
3893
+ let r = Do.get(e);
3885
3894
  if (r)
3886
3895
  for (let s = 0; s < r.elts.length; s++) {
3887
3896
  let o = r.elts[s];
@@ -3889,8 +3898,8 @@ class qn {
3889
3898
  return o;
3890
3899
  }
3891
3900
  else
3892
- Io.set(e, r = new Hh());
3893
- let i = r.elts[r.i] = qn.resolve(e, t);
3901
+ Do.set(e, r = new Hh());
3902
+ let i = r.elts[r.i] = Un.resolve(e, t);
3894
3903
  return r.i = (r.i + 1) % jh, i;
3895
3904
  }
3896
3905
  }
@@ -3899,7 +3908,7 @@ class Hh {
3899
3908
  this.elts = [], this.i = 0;
3900
3909
  }
3901
3910
  }
3902
- const jh = 12, Io = /* @__PURE__ */ new WeakMap();
3911
+ const jh = 12, Do = /* @__PURE__ */ new WeakMap();
3903
3912
  class Mr {
3904
3913
  /**
3905
3914
  Construct a node range. `$from` and `$to` should point into the
@@ -4145,13 +4154,13 @@ class et {
4145
4154
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
4146
4155
  */
4147
4156
  resolve(e) {
4148
- return qn.resolveCached(this, e);
4157
+ return Un.resolveCached(this, e);
4149
4158
  }
4150
4159
  /**
4151
4160
  @internal
4152
4161
  */
4153
4162
  resolveNoCache(e) {
4154
- return qn.resolve(this, e);
4163
+ return Un.resolve(this, e);
4155
4164
  }
4156
4165
  /**
4157
4166
  Test whether a given mark or mark type occurs in this document
@@ -4560,14 +4569,14 @@ function Kh(n) {
4560
4569
  break;
4561
4570
  return e;
4562
4571
  }
4563
- function Do(n) {
4572
+ function $o(n) {
4564
4573
  /\D/.test(n.next) && n.err("Expected number, got '" + n.next + "'");
4565
4574
  let e = Number(n.next);
4566
4575
  return n.pos++, e;
4567
4576
  }
4568
4577
  function Jh(n, e) {
4569
- let t = Do(n), r = t;
4570
- return n.eat(",") && (n.next != "}" ? r = Do(n) : r = -1), n.eat("}") || n.err("Unclosed braced range"), { type: "range", min: t, max: r, expr: e };
4578
+ let t = $o(n), r = t;
4579
+ return n.eat(",") && (n.next != "}" ? r = $o(n) : r = -1), n.eat("}") || n.err("Unclosed braced range"), { type: "range", min: t, max: r, expr: e };
4571
4580
  }
4572
4581
  function Gh(n, e) {
4573
4582
  let t = n.nodeTypes, r = t[e];
@@ -4648,7 +4657,7 @@ function Qh(n) {
4648
4657
  function fa(n, e) {
4649
4658
  return e - n;
4650
4659
  }
4651
- function $o(n, e) {
4660
+ function Ro(n, e) {
4652
4661
  let t = [];
4653
4662
  return r(e), t.sort(fa);
4654
4663
  function r(i) {
@@ -4664,7 +4673,7 @@ function $o(n, e) {
4664
4673
  }
4665
4674
  function Xh(n) {
4666
4675
  let e = /* @__PURE__ */ Object.create(null);
4667
- return t($o(n, 0));
4676
+ return t(Ro(n, 0));
4668
4677
  function t(r) {
4669
4678
  let i = [];
4670
4679
  r.forEach((o) => {
@@ -4674,7 +4683,7 @@ function Xh(n) {
4674
4683
  let c;
4675
4684
  for (let d = 0; d < i.length; d++)
4676
4685
  i[d][0] == l && (c = i[d][1]);
4677
- $o(n, a).forEach((d) => {
4686
+ Ro(n, a).forEach((d) => {
4678
4687
  c || i.push([l, c = []]), c.indexOf(d) == -1 && c.push(d);
4679
4688
  });
4680
4689
  });
@@ -4738,7 +4747,7 @@ function ga(n, e) {
4738
4747
  t[r] = new ep(n, r, e[r]);
4739
4748
  return t;
4740
4749
  }
4741
- let Ro = class ya {
4750
+ let Lo = class ya {
4742
4751
  /**
4743
4752
  @internal
4744
4753
  */
@@ -4997,7 +5006,7 @@ class ba {
4997
5006
  let t = this.spec = {};
4998
5007
  for (let i in e)
4999
5008
  t[i] = e[i];
5000
- t.nodes = Se.from(e.nodes), t.marks = Se.from(e.marks || {}), this.nodes = Ro.compile(this.spec.nodes, this), this.marks = ui.compile(this.spec.marks, this);
5009
+ t.nodes = Se.from(e.nodes), t.marks = Se.from(e.marks || {}), this.nodes = Lo.compile(this.spec.nodes, this), this.marks = ui.compile(this.spec.marks, this);
5001
5010
  let r = /* @__PURE__ */ Object.create(null);
5002
5011
  for (let i in this.nodes) {
5003
5012
  if (i in this.marks)
@@ -5010,11 +5019,11 @@ class ba {
5010
5019
  throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
5011
5020
  this.linebreakReplacement = s;
5012
5021
  }
5013
- s.markSet = l == "_" ? null : l ? Lo(this, l.split(" ")) : l == "" || !s.inlineContent ? [] : null;
5022
+ s.markSet = l == "_" ? null : l ? Po(this, l.split(" ")) : l == "" || !s.inlineContent ? [] : null;
5014
5023
  }
5015
5024
  for (let i in this.marks) {
5016
5025
  let s = this.marks[i], o = s.spec.excludes;
5017
- s.excluded = o == null ? [s] : o == "" ? [] : Lo(this, o.split(" "));
5026
+ s.excluded = o == null ? [s] : o == "" ? [] : Po(this, o.split(" "));
5018
5027
  }
5019
5028
  this.nodeFromJSON = (i) => et.fromJSON(this, i), this.markFromJSON = (i) => le.fromJSON(this, i), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
5020
5029
  }
@@ -5027,7 +5036,7 @@ class ba {
5027
5036
  node(e, t = null, r, i) {
5028
5037
  if (typeof e == "string")
5029
5038
  e = this.nodeType(e);
5030
- else if (e instanceof Ro) {
5039
+ else if (e instanceof Lo) {
5031
5040
  if (e.schema != this)
5032
5041
  throw new RangeError("Node type from different schema used (" + e.name + ")");
5033
5042
  } else throw new RangeError("Invalid node type: " + e);
@@ -5057,7 +5066,7 @@ class ba {
5057
5066
  return t;
5058
5067
  }
5059
5068
  }
5060
- function Lo(n, e) {
5069
+ function Po(n, e) {
5061
5070
  let t = [];
5062
5071
  for (let r = 0; r < e.length; r++) {
5063
5072
  let i = e[r], s = n.marks[i], o = s;
@@ -5105,7 +5114,7 @@ class Tt {
5105
5114
  Parse a document from the content of a DOM node.
5106
5115
  */
5107
5116
  parse(e, t = {}) {
5108
- let r = new zo(this, t, !1);
5117
+ let r = new Bo(this, t, !1);
5109
5118
  return r.addAll(e, le.none, t.from, t.to), r.finish();
5110
5119
  }
5111
5120
  /**
@@ -5117,7 +5126,7 @@ class Tt {
5117
5126
  the left of the input and the end of nodes at the end.
5118
5127
  */
5119
5128
  parseSlice(e, t = {}) {
5120
- let r = new zo(this, t, !0);
5129
+ let r = new Bo(this, t, !0);
5121
5130
  return r.addAll(e, le.none, t.from, t.to), P.maxOpen(r.finish());
5122
5131
  }
5123
5132
  /**
@@ -5174,13 +5183,13 @@ class Tt {
5174
5183
  for (let i in e.marks) {
5175
5184
  let s = e.marks[i].spec.parseDOM;
5176
5185
  s && s.forEach((o) => {
5177
- r(o = Bo(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
5186
+ r(o = Vo(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
5178
5187
  });
5179
5188
  }
5180
5189
  for (let i in e.nodes) {
5181
5190
  let s = e.nodes[i].spec.parseDOM;
5182
5191
  s && s.forEach((o) => {
5183
- r(o = Bo(o)), o.node || o.ignore || o.mark || (o.node = i);
5192
+ r(o = Vo(o)), o.node || o.ignore || o.mark || (o.node = i);
5184
5193
  });
5185
5194
  }
5186
5195
  return t;
@@ -5234,13 +5243,13 @@ const ka = {
5234
5243
  script: !0,
5235
5244
  style: !0,
5236
5245
  title: !0
5237
- }, va = { ol: !0, ul: !0 }, Un = 1, ns = 2, $n = 4;
5238
- function Po(n, e, t) {
5239
- return e != null ? (e ? Un : 0) | (e === "full" ? ns : 0) : n && n.whitespace == "pre" ? Un | ns : t & ~$n;
5246
+ }, va = { ol: !0, ul: !0 }, Wn = 1, ns = 2, Rn = 4;
5247
+ function zo(n, e, t) {
5248
+ return e != null ? (e ? Wn : 0) | (e === "full" ? ns : 0) : n && n.whitespace == "pre" ? Wn | ns : t & ~Rn;
5240
5249
  }
5241
- class or {
5250
+ class lr {
5242
5251
  constructor(e, t, r, i, s, o) {
5243
- this.type = e, this.attrs = t, this.marks = r, this.solid = i, this.options = o, this.content = [], this.activeMarks = le.none, this.match = s || (o & $n ? null : e.contentMatch);
5252
+ this.type = e, this.attrs = t, this.marks = r, this.solid = i, this.options = o, this.content = [], this.activeMarks = le.none, this.match = s || (o & Rn ? null : e.contentMatch);
5244
5253
  }
5245
5254
  findWrapping(e) {
5246
5255
  if (!this.match) {
@@ -5257,7 +5266,7 @@ class or {
5257
5266
  return this.match.findWrapping(e.type);
5258
5267
  }
5259
5268
  finish(e) {
5260
- if (!(this.options & Un)) {
5269
+ if (!(this.options & Wn)) {
5261
5270
  let r = this.content[this.content.length - 1], i;
5262
5271
  if (r && r.isText && (i = /[ \t\r\n\u000c]+$/.exec(r.text))) {
5263
5272
  let s = r;
@@ -5271,11 +5280,11 @@ class or {
5271
5280
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !ka.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
5272
5281
  }
5273
5282
  }
5274
- class zo {
5283
+ class Bo {
5275
5284
  constructor(e, t, r) {
5276
5285
  this.parser = e, this.options = t, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
5277
- let i = t.topNode, s, o = Po(null, t.preserveWhitespace, 0) | (r ? $n : 0);
5278
- i ? s = new or(i.type, i.attrs, le.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new or(null, null, le.none, !0, null, o) : s = new or(e.schema.topNodeType, null, le.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
5286
+ let i = t.topNode, s, o = zo(null, t.preserveWhitespace, 0) | (r ? Rn : 0);
5287
+ i ? s = new lr(i.type, i.attrs, le.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new lr(null, null, le.none, !0, null, o) : s = new lr(e.schema.topNodeType, null, le.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
5279
5288
  }
5280
5289
  get top() {
5281
5290
  return this.nodes[this.open];
@@ -5287,7 +5296,7 @@ class zo {
5287
5296
  e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
5288
5297
  }
5289
5298
  addTextNode(e, t) {
5290
- let r = e.nodeValue, i = this.top, s = i.options & ns ? "full" : this.localPreserveWS || (i.options & Un) > 0, { schema: o } = this.parser;
5299
+ let r = e.nodeValue, i = this.top, s = i.options & ns ? "full" : this.localPreserveWS || (i.options & Wn) > 0, { schema: o } = this.parser;
5291
5300
  if (s === "full" || i.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
5292
5301
  if (s)
5293
5302
  if (s === "full")
@@ -5440,7 +5449,7 @@ class zo {
5440
5449
  s.match && (s.match = s.match.matchType(e.type));
5441
5450
  let o = le.none;
5442
5451
  for (let l of i.concat(e.marks))
5443
- (s.type ? s.type.allowsMarkType(l.type) : Vo(l.type, e.type)) && (o = l.addToSet(o));
5452
+ (s.type ? s.type.allowsMarkType(l.type) : Fo(l.type, e.type)) && (o = l.addToSet(o));
5444
5453
  return s.content.push(e.mark(o)), !0;
5445
5454
  }
5446
5455
  return !1;
@@ -5456,10 +5465,10 @@ class zo {
5456
5465
  this.closeExtra();
5457
5466
  let o = this.top;
5458
5467
  o.match = o.match && o.match.matchType(e);
5459
- let l = Po(e, s, o.options);
5460
- o.options & $n && o.content.length == 0 && (l |= $n);
5468
+ let l = zo(e, s, o.options);
5469
+ o.options & Rn && o.content.length == 0 && (l |= Rn);
5461
5470
  let a = le.none;
5462
- return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : Vo(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new or(e, t, a, i, null, l)), this.open++, r;
5471
+ return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : Fo(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new lr(e, t, a, i, null, l)), this.open++, r;
5463
5472
  }
5464
5473
  // Make sure all nodes above this.open are finished and added to
5465
5474
  // their parents
@@ -5478,7 +5487,7 @@ class zo {
5478
5487
  for (let t = this.open; t >= 0; t--) {
5479
5488
  if (this.nodes[t] == e)
5480
5489
  return this.open = t, !0;
5481
- this.localPreserveWS && (this.nodes[t].options |= Un);
5490
+ this.localPreserveWS && (this.nodes[t].options |= Wn);
5482
5491
  }
5483
5492
  return !1;
5484
5493
  }
@@ -5562,13 +5571,13 @@ function ip(n) {
5562
5571
  function sp(n, e) {
5563
5572
  return (n.matches || n.msMatchesSelector || n.webkitMatchesSelector || n.mozMatchesSelector).call(n, e);
5564
5573
  }
5565
- function Bo(n) {
5574
+ function Vo(n) {
5566
5575
  let e = {};
5567
5576
  for (let t in n)
5568
5577
  e[t] = n[t];
5569
5578
  return e;
5570
5579
  }
5571
- function Vo(n, e) {
5580
+ function Fo(n, e) {
5572
5581
  let t = e.schema.nodes;
5573
5582
  for (let r in t) {
5574
5583
  let i = t[r];
@@ -5680,17 +5689,17 @@ class Zt {
5680
5689
  This can be useful as a base to build a custom serializer from.
5681
5690
  */
5682
5691
  static nodesFromSchema(e) {
5683
- let t = Fo(e.nodes);
5692
+ let t = Ho(e.nodes);
5684
5693
  return t.text || (t.text = (r) => r.text), t;
5685
5694
  }
5686
5695
  /**
5687
5696
  Gather the serializers in a schema's mark specs into an object.
5688
5697
  */
5689
5698
  static marksFromSchema(e) {
5690
- return Fo(e.marks);
5699
+ return Ho(e.marks);
5691
5700
  }
5692
5701
  }
5693
- function Fo(n) {
5702
+ function Ho(n) {
5694
5703
  let e = {};
5695
5704
  for (let t in n) {
5696
5705
  let r = n[t].spec.toDOM;
@@ -5701,10 +5710,10 @@ function Fo(n) {
5701
5710
  function Ai(n) {
5702
5711
  return n.document || window.document;
5703
5712
  }
5704
- const Ho = /* @__PURE__ */ new WeakMap();
5713
+ const jo = /* @__PURE__ */ new WeakMap();
5705
5714
  function op(n) {
5706
- let e = Ho.get(n);
5707
- return e === void 0 && Ho.set(n, e = lp(n)), e;
5715
+ let e = jo.get(n);
5716
+ return e === void 0 && jo.set(n, e = lp(n)), e;
5708
5717
  }
5709
5718
  function lp(n) {
5710
5719
  let e = null;
@@ -5766,7 +5775,7 @@ const xa = 65535, wa = Math.pow(2, 16);
5766
5775
  function ap(n, e) {
5767
5776
  return n + e * wa;
5768
5777
  }
5769
- function jo(n) {
5778
+ function qo(n) {
5770
5779
  return n & xa;
5771
5780
  }
5772
5781
  function cp(n) {
@@ -5823,7 +5832,7 @@ class qe {
5823
5832
  @internal
5824
5833
  */
5825
5834
  recover(e) {
5826
- let t = 0, r = jo(e);
5835
+ let t = 0, r = qo(e);
5827
5836
  if (!this.inverted)
5828
5837
  for (let i = 0; i < r; i++)
5829
5838
  t += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
@@ -5860,7 +5869,7 @@ class qe {
5860
5869
  @internal
5861
5870
  */
5862
5871
  touches(e, t) {
5863
- let r = 0, i = jo(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
5872
+ let r = 0, i = qo(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
5864
5873
  for (let l = 0; l < this.ranges.length; l += 3) {
5865
5874
  let a = this.ranges[l] - (this.inverted ? r : 0);
5866
5875
  if (a > e)
@@ -5906,7 +5915,7 @@ class qe {
5906
5915
  }
5907
5916
  }
5908
5917
  qe.empty = new qe([]);
5909
- class Wn {
5918
+ class Kn {
5910
5919
  /**
5911
5920
  Create a new mapping with the given position maps.
5912
5921
  */
@@ -5923,7 +5932,7 @@ class Wn {
5923
5932
  Create a mapping that maps only through a part of this one.
5924
5933
  */
5925
5934
  slice(e = 0, t = this.maps.length) {
5926
- return new Wn(this._maps, this.mirror, e, t);
5935
+ return new Kn(this._maps, this.mirror, e, t);
5927
5936
  }
5928
5937
  /**
5929
5938
  Add a step map to the end of this mapping. If `mirrors` is
@@ -5974,7 +5983,7 @@ class Wn {
5974
5983
  Create an inverted version of this mapping.
5975
5984
  */
5976
5985
  invert() {
5977
- let e = new Wn();
5986
+ let e = new Kn();
5978
5987
  return e.appendMappingInverted(this), e;
5979
5988
  }
5980
5989
  /**
@@ -6089,11 +6098,11 @@ class me {
6089
6098
  }
6090
6099
  }
6091
6100
  }
6092
- function zs(n, e, t) {
6101
+ function Bs(n, e, t) {
6093
6102
  let r = [];
6094
6103
  for (let i = 0; i < n.childCount; i++) {
6095
6104
  let s = n.child(i);
6096
- s.content.size && (s = s.copy(zs(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
6105
+ s.content.size && (s = s.copy(Bs(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
6097
6106
  }
6098
6107
  return O.fromArray(r);
6099
6108
  }
@@ -6105,7 +6114,7 @@ class Ct extends De {
6105
6114
  super(), this.from = e, this.to = t, this.mark = r;
6106
6115
  }
6107
6116
  apply(e) {
6108
- let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), s = new P(zs(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), t.openStart, t.openEnd);
6117
+ let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), s = new P(Bs(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), t.openStart, t.openEnd);
6109
6118
  return me.fromReplace(e, this.from, this.to, s);
6110
6119
  }
6111
6120
  invert() {
@@ -6144,7 +6153,7 @@ class _e extends De {
6144
6153
  super(), this.from = e, this.to = t, this.mark = r;
6145
6154
  }
6146
6155
  apply(e) {
6147
- let t = e.slice(this.from, this.to), r = new P(zs(t.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), t.openStart, t.openEnd);
6156
+ let t = e.slice(this.from, this.to), r = new P(Bs(t.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), t.openStart, t.openEnd);
6148
6157
  return me.fromReplace(e, this.from, this.to, r);
6149
6158
  }
6150
6159
  invert() {
@@ -6417,7 +6426,7 @@ function up(n, e, t, r) {
6417
6426
  }
6418
6427
  }), i.forEach((o) => n.step(new _e(o.from, o.to, o.style)));
6419
6428
  }
6420
- function Bs(n, e, t, r = t.contentMatch, i = !0) {
6429
+ function Vs(n, e, t, r = t.contentMatch, i = !0) {
6421
6430
  let s = n.doc.nodeAt(e), o = [], l = e + 1;
6422
6431
  for (let a = 0; a < s.childCount; a++) {
6423
6432
  let c = s.child(a), d = l + c.nodeSize, u = r.matchType(c.type);
@@ -6466,11 +6475,11 @@ function hp(n, e, t) {
6466
6475
  m || i.after(p + 1) < i.end(p) ? (m = !0, f = O.from(i.node(p).copy(f)), h++) : c++;
6467
6476
  n.step(new Ce(a, c, o, l, new P(d.append(f), u, h), d.size - u, !0));
6468
6477
  }
6469
- function Vs(n, e, t = null, r = n) {
6478
+ function Fs(n, e, t = null, r = n) {
6470
6479
  let i = pp(n, e), s = i && mp(r, e);
6471
- return s ? i.map(qo).concat({ type: e, attrs: t }).concat(s.map(qo)) : null;
6480
+ return s ? i.map(Uo).concat({ type: e, attrs: t }).concat(s.map(Uo)) : null;
6472
6481
  }
6473
- function qo(n) {
6482
+ function Uo(n) {
6474
6483
  return { type: n, attrs: null };
6475
6484
  }
6476
6485
  function pp(n, e) {
@@ -6514,7 +6523,7 @@ function yp(n, e, t, r, i) {
6514
6523
  let h = r.whitespace == "pre", p = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
6515
6524
  h && !p ? c = !1 : !h && p && (c = !0);
6516
6525
  }
6517
- c === !1 && Ea(n, o, l, s), Bs(n, n.mapping.slice(s).map(l, 1), r, void 0, c === null);
6526
+ c === !1 && Ea(n, o, l, s), Vs(n, n.mapping.slice(s).map(l, 1), r, void 0, c === null);
6518
6527
  let d = n.mapping.slice(s), u = d.map(l, 1), f = d.map(l + o.nodeSize, 1);
6519
6528
  return n.step(new Ce(u, f, u + 1, f - 1, new P(O.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), c === !0 && Ta(n, o, l, s), !1;
6520
6529
  }
@@ -6621,7 +6630,7 @@ function wp(n, e, t) {
6621
6630
  let d = n.doc.resolve(e + t);
6622
6631
  Ea(n, d.node(), d.before(), l);
6623
6632
  }
6624
- o.inlineContent && Bs(n, e + t - 1, o, s.node().contentMatchAt(s.index()), r == null);
6633
+ o.inlineContent && Vs(n, e + t - 1, o, s.node().contentMatchAt(s.index()), r == null);
6625
6634
  let a = n.mapping.slice(l), c = a.map(e - t);
6626
6635
  if (n.step(new xe(c, a.map(e + t, -1), P.empty, !0)), r === !0) {
6627
6636
  let d = n.doc.resolve(c);
@@ -6988,7 +6997,7 @@ class fn extends De {
6988
6997
  }
6989
6998
  }
6990
6999
  De.jsonID("attr", fn);
6991
- class Kn extends De {
7000
+ class Jn extends De {
6992
7001
  /**
6993
7002
  Construct an attribute step.
6994
7003
  */
@@ -7007,7 +7016,7 @@ class Kn extends De {
7007
7016
  return qe.empty;
7008
7017
  }
7009
7018
  invert(e) {
7010
- return new Kn(this.attr, e.attrs[this.attr]);
7019
+ return new Jn(this.attr, e.attrs[this.attr]);
7011
7020
  }
7012
7021
  map(e) {
7013
7022
  return this;
@@ -7018,10 +7027,10 @@ class Kn extends De {
7018
7027
  static fromJSON(e, t) {
7019
7028
  if (typeof t.attr != "string")
7020
7029
  throw new RangeError("Invalid input for DocAttrStep.fromJSON");
7021
- return new Kn(t.attr, t.value);
7030
+ return new Jn(t.attr, t.value);
7022
7031
  }
7023
7032
  }
7024
- De.jsonID("docAttr", Kn);
7033
+ De.jsonID("docAttr", Jn);
7025
7034
  let pn = class extends Error {
7026
7035
  };
7027
7036
  pn = function n(e) {
@@ -7036,7 +7045,7 @@ class Ra {
7036
7045
  Create a transform that starts with the given document.
7037
7046
  */
7038
7047
  constructor(e) {
7039
- this.doc = e, this.steps = [], this.docs = [], this.mapping = new Wn();
7048
+ this.doc = e, this.steps = [], this.docs = [], this.mapping = new Kn();
7040
7049
  }
7041
7050
  /**
7042
7051
  The starting document.
@@ -7194,7 +7203,7 @@ class Ra {
7194
7203
  Set a single attribute on the document to a new value.
7195
7204
  */
7196
7205
  setDocAttribute(e, t) {
7197
- return this.step(new Kn(e, t)), this;
7206
+ return this.step(new Jn(e, t)), this;
7198
7207
  }
7199
7208
  /**
7200
7209
  Add a mark to the node at position `pos`.
@@ -7253,7 +7262,7 @@ class Ra {
7253
7262
  third argument.
7254
7263
  */
7255
7264
  clearIncompatible(e, t, r) {
7256
- return Bs(this, e, t, r), this;
7265
+ return Vs(this, e, t, r), this;
7257
7266
  }
7258
7267
  }
7259
7268
  const Di = /* @__PURE__ */ Object.create(null);
@@ -7329,7 +7338,7 @@ class X {
7329
7338
  let s = e.steps.length, o = this.ranges;
7330
7339
  for (let l = 0; l < o.length; l++) {
7331
7340
  let { $from: a, $to: c } = o[l], d = e.mapping.slice(s);
7332
- e.replaceRange(d.map(a.pos), d.map(c.pos), l ? P.empty : t), l == 0 && Ko(e, s, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
7341
+ e.replaceRange(d.map(a.pos), d.map(c.pos), l ? P.empty : t), l == 0 && Jo(e, s, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
7333
7342
  }
7334
7343
  }
7335
7344
  /**
@@ -7340,7 +7349,7 @@ class X {
7340
7349
  let r = e.steps.length, i = this.ranges;
7341
7350
  for (let s = 0; s < i.length; s++) {
7342
7351
  let { $from: o, $to: l } = i[s], a = e.mapping.slice(r), c = a.map(o.pos), d = a.map(l.pos);
7343
- s ? e.deleteRange(c, d) : (e.replaceRangeWith(c, d, t), Ko(e, r, t.isInline ? -1 : 1));
7352
+ s ? e.deleteRange(c, d) : (e.replaceRangeWith(c, d, t), Jo(e, r, t.isInline ? -1 : 1));
7344
7353
  }
7345
7354
  }
7346
7355
  /**
@@ -7430,16 +7439,16 @@ class Np {
7430
7439
  this.$from = e, this.$to = t;
7431
7440
  }
7432
7441
  }
7433
- let Uo = !1;
7434
- function Wo(n) {
7435
- !Uo && !n.parent.inlineContent && (Uo = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
7442
+ let Wo = !1;
7443
+ function Ko(n) {
7444
+ !Wo && !n.parent.inlineContent && (Wo = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
7436
7445
  }
7437
7446
  class J extends X {
7438
7447
  /**
7439
7448
  Construct a text selection between the given points.
7440
7449
  */
7441
7450
  constructor(e, t = e) {
7442
- Wo(e), Wo(t), super(e, t);
7451
+ Ko(e), Ko(t), super(e, t);
7443
7452
  }
7444
7453
  /**
7445
7454
  Returns a resolved position if this is a cursor selection (an
@@ -7540,7 +7549,7 @@ class K extends X {
7540
7549
  return { type: "node", anchor: this.anchor };
7541
7550
  }
7542
7551
  getBookmark() {
7543
- return new Fs(this.anchor);
7552
+ return new Hs(this.anchor);
7544
7553
  }
7545
7554
  /**
7546
7555
  @internal
@@ -7566,13 +7575,13 @@ class K extends X {
7566
7575
  }
7567
7576
  K.prototype.visible = !1;
7568
7577
  X.jsonID("node", K);
7569
- class Fs {
7578
+ class Hs {
7570
7579
  constructor(e) {
7571
7580
  this.anchor = e;
7572
7581
  }
7573
7582
  map(e) {
7574
7583
  let { deleted: t, pos: r } = e.mapResult(this.anchor);
7575
- return t ? new pi(r, r) : new Fs(r);
7584
+ return t ? new pi(r, r) : new Hs(r);
7576
7585
  }
7577
7586
  resolve(e) {
7578
7587
  let t = e.resolve(this.anchor), r = t.nodeAfter;
@@ -7639,7 +7648,7 @@ function sn(n, e, t, r, i, s = !1) {
7639
7648
  }
7640
7649
  return null;
7641
7650
  }
7642
- function Ko(n, e, t) {
7651
+ function Jo(n, e, t) {
7643
7652
  let r = n.steps.length - 1;
7644
7653
  if (r < e)
7645
7654
  return;
@@ -7651,7 +7660,7 @@ function Ko(n, e, t) {
7651
7660
  o == null && (o = d);
7652
7661
  }), n.setSelection(X.near(n.doc.resolve(o), t));
7653
7662
  }
7654
- const Jo = 1, lr = 2, Go = 4;
7663
+ const Go = 1, ar = 2, Yo = 4;
7655
7664
  class Dp extends Ra {
7656
7665
  /**
7657
7666
  @internal
@@ -7675,19 +7684,19 @@ class Dp extends Ra {
7675
7684
  setSelection(e) {
7676
7685
  if (e.$from.doc != this.doc)
7677
7686
  throw new RangeError("Selection passed to setSelection must point at the current document");
7678
- return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | Jo) & ~lr, this.storedMarks = null, this;
7687
+ return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | Go) & ~ar, this.storedMarks = null, this;
7679
7688
  }
7680
7689
  /**
7681
7690
  Whether the selection was explicitly updated by this transaction.
7682
7691
  */
7683
7692
  get selectionSet() {
7684
- return (this.updated & Jo) > 0;
7693
+ return (this.updated & Go) > 0;
7685
7694
  }
7686
7695
  /**
7687
7696
  Set the current stored marks.
7688
7697
  */
7689
7698
  setStoredMarks(e) {
7690
- return this.storedMarks = e, this.updated |= lr, this;
7699
+ return this.storedMarks = e, this.updated |= ar, this;
7691
7700
  }
7692
7701
  /**
7693
7702
  Make sure the current stored marks or, if that is null, the marks
@@ -7713,13 +7722,13 @@ class Dp extends Ra {
7713
7722
  Whether the stored marks were explicitly set for this transaction.
7714
7723
  */
7715
7724
  get storedMarksSet() {
7716
- return (this.updated & lr) > 0;
7725
+ return (this.updated & ar) > 0;
7717
7726
  }
7718
7727
  /**
7719
7728
  @internal
7720
7729
  */
7721
7730
  addStep(e, t) {
7722
- super.addStep(e, t), this.updated = this.updated & ~lr, this.storedMarks = null;
7731
+ super.addStep(e, t), this.updated = this.updated & ~ar, this.storedMarks = null;
7723
7732
  }
7724
7733
  /**
7725
7734
  Update the timestamp for the transaction.
@@ -7794,21 +7803,21 @@ class Dp extends Ra {
7794
7803
  when updated to the state produced by this transaction.
7795
7804
  */
7796
7805
  scrollIntoView() {
7797
- return this.updated |= Go, this;
7806
+ return this.updated |= Yo, this;
7798
7807
  }
7799
7808
  /**
7800
7809
  True when this transaction has had `scrollIntoView` called on it.
7801
7810
  */
7802
7811
  get scrolledIntoView() {
7803
- return (this.updated & Go) > 0;
7812
+ return (this.updated & Yo) > 0;
7804
7813
  }
7805
7814
  }
7806
- function Yo(n, e) {
7815
+ function Qo(n, e) {
7807
7816
  return !e || !n ? n : n.bind(e);
7808
7817
  }
7809
7818
  class On {
7810
7819
  constructor(e, t, r) {
7811
- this.name = e, this.init = Yo(t.init, r), this.apply = Yo(t.apply, r);
7820
+ this.name = e, this.init = Qo(t.init, r), this.apply = Qo(t.apply, r);
7812
7821
  }
7813
7822
  }
7814
7823
  const $p = [
@@ -8074,7 +8083,7 @@ const Lp = (n, e, t) => {
8074
8083
  let r = za(n, t);
8075
8084
  if (!r)
8076
8085
  return !1;
8077
- let i = Hs(r);
8086
+ let i = js(r);
8078
8087
  if (!i) {
8079
8088
  let o = r.blockRange(), l = o && Cn(o);
8080
8089
  return l == null ? !1 : (e && e(n.tr.lift(o, l).scrollIntoView()), !0);
@@ -8100,13 +8109,13 @@ const Lp = (n, e, t) => {
8100
8109
  let r = za(n, t);
8101
8110
  if (!r)
8102
8111
  return !1;
8103
- let i = Hs(r);
8112
+ let i = js(r);
8104
8113
  return i ? Ba(n, i, e) : !1;
8105
8114
  }, zp = (n, e, t) => {
8106
8115
  let r = Va(n, t);
8107
8116
  if (!r)
8108
8117
  return !1;
8109
- let i = js(r);
8118
+ let i = qs(r);
8110
8119
  return i ? Ba(n, i, e) : !1;
8111
8120
  };
8112
8121
  function Ba(n, e, t) {
@@ -8153,12 +8162,12 @@ const Bp = (n, e, t) => {
8153
8162
  if (r.parent.isTextblock) {
8154
8163
  if (t ? !t.endOfTextblock("backward", n) : r.parentOffset > 0)
8155
8164
  return !1;
8156
- s = Hs(r);
8165
+ s = js(r);
8157
8166
  }
8158
8167
  let o = s && s.nodeBefore;
8159
8168
  return !o || !K.isSelectable(o) ? !1 : (e && e(n.tr.setSelection(K.create(n.doc, s.pos - o.nodeSize)).scrollIntoView()), !0);
8160
8169
  };
8161
- function Hs(n) {
8170
+ function js(n) {
8162
8171
  if (!n.parent.type.spec.isolating)
8163
8172
  for (let e = n.depth - 1; e >= 0; e--) {
8164
8173
  if (n.index(e) > 0)
@@ -8176,7 +8185,7 @@ const Vp = (n, e, t) => {
8176
8185
  let r = Va(n, t);
8177
8186
  if (!r)
8178
8187
  return !1;
8179
- let i = js(r);
8188
+ let i = qs(r);
8180
8189
  if (!i)
8181
8190
  return !1;
8182
8191
  let s = i.nodeAfter;
@@ -8200,12 +8209,12 @@ const Vp = (n, e, t) => {
8200
8209
  if (r.parent.isTextblock) {
8201
8210
  if (t ? !t.endOfTextblock("forward", n) : r.parentOffset < r.parent.content.size)
8202
8211
  return !1;
8203
- s = js(r);
8212
+ s = qs(r);
8204
8213
  }
8205
8214
  let o = s && s.nodeAfter;
8206
8215
  return !o || !K.isSelectable(o) ? !1 : (e && e(n.tr.setSelection(K.create(n.doc, s.pos)).scrollIntoView()), !0);
8207
8216
  };
8208
- function js(n) {
8217
+ function qs(n) {
8209
8218
  if (!n.parent.type.spec.isolating)
8210
8219
  for (let e = n.depth - 1; e >= 0; e--) {
8211
8220
  let t = n.node(e);
@@ -8350,11 +8359,11 @@ function ja(n) {
8350
8359
  const Qp = ja(-1), Xp = ja(1);
8351
8360
  function Zp(n, e = null) {
8352
8361
  return function(t, r) {
8353
- let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && Vs(o, n, e);
8362
+ let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && Fs(o, n, e);
8354
8363
  return l ? (r && r(t.tr.wrap(o, l).scrollIntoView()), !0) : !1;
8355
8364
  };
8356
8365
  }
8357
- function Qo(n, e = null) {
8366
+ function Xo(n, e = null) {
8358
8367
  return function(t, r) {
8359
8368
  let i = !1;
8360
8369
  for (let s = 0; s < t.selection.ranges.length && !i; s++) {
@@ -8402,7 +8411,7 @@ function em(n, e, t, r = null) {
8402
8411
  let a = o.resolve(e.start - 2);
8403
8412
  s = new Mr(a, a, e.depth), e.endIndex < e.parent.childCount && (e = new Mr(e.$from, o.resolve(e.$to.end(e.depth)), e.depth)), i = !0;
8404
8413
  }
8405
- let l = Vs(s, t, r, e);
8414
+ let l = Fs(s, t, r, e);
8406
8415
  return l ? (n && tm(n, e, l, i, t), !0) : !1;
8407
8416
  }
8408
8417
  function tm(n, e, t, r, i) {
@@ -8480,15 +8489,15 @@ const ut = function(n, e, t) {
8480
8489
  }, om = function() {
8481
8490
  ss = null;
8482
8491
  }, Yt = function(n, e, t, r) {
8483
- return t && (Xo(n, e, t, r, -1) || Xo(n, e, t, r, 1));
8492
+ return t && (Zo(n, e, t, r, -1) || Zo(n, e, t, r, 1));
8484
8493
  }, lm = /^(img|br|input|textarea|hr)$/i;
8485
- function Xo(n, e, t, r, i) {
8494
+ function Zo(n, e, t, r, i) {
8486
8495
  for (var s; ; ) {
8487
8496
  if (n == t && e == r)
8488
8497
  return !0;
8489
8498
  if (e == (i < 0 ? 0 : Ye(n))) {
8490
8499
  let o = n.parentNode;
8491
- if (!o || o.nodeType != 1 || er(n) || lm.test(n.nodeName) || n.contentEditable == "false")
8500
+ if (!o || o.nodeType != 1 || tr(n) || lm.test(n.nodeName) || n.contentEditable == "false")
8492
8501
  return !1;
8493
8502
  e = Me(n) + (i < 0 ? 0 : 1), n = o;
8494
8503
  } else if (n.nodeType == 1) {
@@ -8515,7 +8524,7 @@ function am(n, e) {
8515
8524
  if (n.contentEditable == "false")
8516
8525
  return null;
8517
8526
  n = n.childNodes[e - 1], e = Ye(n);
8518
- } else if (n.parentNode && !er(n))
8527
+ } else if (n.parentNode && !tr(n))
8519
8528
  e = Me(n), n = n.parentNode;
8520
8529
  else
8521
8530
  return null;
@@ -8529,7 +8538,7 @@ function cm(n, e) {
8529
8538
  if (n.contentEditable == "false")
8530
8539
  return null;
8531
8540
  n = n.childNodes[e], e = 0;
8532
- } else if (n.parentNode && !er(n))
8541
+ } else if (n.parentNode && !tr(n))
8533
8542
  e = Me(n) + 1, n = n.parentNode;
8534
8543
  else
8535
8544
  return null;
@@ -8545,7 +8554,7 @@ function dm(n, e, t) {
8545
8554
  r = r && s == 0, i = i && s == Ye(n);
8546
8555
  }
8547
8556
  }
8548
- function er(n) {
8557
+ function tr(n) {
8549
8558
  let e;
8550
8559
  for (let t = n; t && !(e = t.pmViewDesc); t = t.parentNode)
8551
8560
  ;
@@ -8578,7 +8587,7 @@ function fm(n, e, t) {
8578
8587
  return { node: r.startContainer, offset: Math.min(Ye(r.startContainer), r.startOffset) };
8579
8588
  }
8580
8589
  }
8581
- const st = typeof navigator < "u" ? navigator : null, Zo = typeof document < "u" ? document : null, _t = st && st.userAgent || "", ls = /Edge\/(\d+)/.exec(_t), qa = /MSIE \d/.exec(_t), as = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_t), He = !!(qa || as || ls), Et = qa ? document.documentMode : as ? +as[1] : ls ? +ls[1] : 0, tt = !He && /gecko\/(\d+)/i.test(_t), cs = !He && /Chrome\/(\d+)/.exec(_t), we = !!cs, Ua = cs ? +cs[1] : 0, Ie = !He && !!st && /Apple Computer/.test(st.vendor), yn = Ie && (/Mobile\/\w+/.test(_t) || !!st && st.maxTouchPoints > 2), Je = yn || (st ? /Mac/.test(st.platform) : !1), Wa = st ? /Win/.test(st.platform) : !1, ft = /Android \d/.test(_t), tr = !!Zo && "webkitFontSmoothing" in Zo.documentElement.style, hm = tr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
8590
+ const st = typeof navigator < "u" ? navigator : null, _o = typeof document < "u" ? document : null, _t = st && st.userAgent || "", ls = /Edge\/(\d+)/.exec(_t), qa = /MSIE \d/.exec(_t), as = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_t), He = !!(qa || as || ls), Et = qa ? document.documentMode : as ? +as[1] : ls ? +ls[1] : 0, tt = !He && /gecko\/(\d+)/i.test(_t), cs = !He && /Chrome\/(\d+)/.exec(_t), we = !!cs, Ua = cs ? +cs[1] : 0, Ie = !He && !!st && /Apple Computer/.test(st.vendor), yn = Ie && (/Mobile\/\w+/.test(_t) || !!st && st.maxTouchPoints > 2), Je = yn || (st ? /Mac/.test(st.platform) : !1), Wa = st ? /Win/.test(st.platform) : !1, ft = /Android \d/.test(_t), nr = !!_o && "webkitFontSmoothing" in _o.documentElement.style, hm = nr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
8582
8591
  function pm(n) {
8583
8592
  let e = n.defaultView && n.defaultView.visualViewport;
8584
8593
  return e ? {
@@ -8605,7 +8614,7 @@ function mm(n) {
8605
8614
  bottom: e.top + n.clientHeight * r
8606
8615
  };
8607
8616
  }
8608
- function _o(n, e, t) {
8617
+ function el(n, e, t) {
8609
8618
  let r = n.someProp("scrollThreshold") || 0, i = n.someProp("scrollMargin") || 5, s = n.dom.ownerDocument;
8610
8619
  for (let o = t || n.dom; o; ) {
8611
8620
  if (o.nodeType != 1) {
@@ -8704,14 +8713,14 @@ function km(n, e) {
8704
8713
  for (let s = 0; s < t; s++) {
8705
8714
  r.setEnd(n, s + 1), r.setStart(n, s);
8706
8715
  let o = yt(r, 1);
8707
- if (o.top != o.bottom && qs(e, o)) {
8716
+ if (o.top != o.bottom && Us(e, o)) {
8708
8717
  i = { node: n, offset: s + (e.left >= (o.left + o.right) / 2 ? 1 : 0) };
8709
8718
  break;
8710
8719
  }
8711
8720
  }
8712
8721
  return r.detach(), i || { node: n, offset: 0 };
8713
8722
  }
8714
- function qs(n, e) {
8723
+ function Us(n, e) {
8715
8724
  return n.left >= e.left - 1 && n.left <= e.right + 1 && n.top >= e.top - 1 && n.top <= e.bottom + 1;
8716
8725
  }
8717
8726
  function vm(n, e) {
@@ -8748,7 +8757,7 @@ function Ya(n, e, t) {
8748
8757
  let l = o.getClientRects();
8749
8758
  for (let a = 0; a < l.length; a++) {
8750
8759
  let c = l[a];
8751
- if (qs(e, c))
8760
+ if (Us(e, c))
8752
8761
  return Ya(o, e, c);
8753
8762
  }
8754
8763
  }
@@ -8763,7 +8772,7 @@ function Cm(n, e) {
8763
8772
  let o = (n.root.elementFromPoint ? n.root : t).elementFromPoint(e.left, e.top), l;
8764
8773
  if (!o || !n.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
8765
8774
  let c = n.dom.getBoundingClientRect();
8766
- if (!qs(e, c) || (o = Ya(n.dom, e, c), !o))
8775
+ if (!Us(e, c) || (o = Ya(n.dom, e, c), !o))
8767
8776
  return null;
8768
8777
  }
8769
8778
  if (Ie)
@@ -8775,27 +8784,27 @@ function Cm(n, e) {
8775
8784
  d.nodeName == "IMG" && (u = d.getBoundingClientRect()).right <= e.left && u.bottom > e.top && i++;
8776
8785
  }
8777
8786
  let c;
8778
- tr && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == n.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = wm(n, r, i, e));
8787
+ nr && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == n.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = wm(n, r, i, e));
8779
8788
  }
8780
8789
  l == null && (l = xm(n, o, e));
8781
8790
  let a = n.docView.nearestDesc(o, !0);
8782
8791
  return { pos: l, inside: a ? a.posAtStart - a.border : -1 };
8783
8792
  }
8784
- function el(n) {
8793
+ function tl(n) {
8785
8794
  return n.top < n.bottom || n.left < n.right;
8786
8795
  }
8787
8796
  function yt(n, e) {
8788
8797
  let t = n.getClientRects();
8789
8798
  if (t.length) {
8790
8799
  let r = t[e < 0 ? 0 : t.length - 1];
8791
- if (el(r))
8800
+ if (tl(r))
8792
8801
  return r;
8793
8802
  }
8794
- return Array.prototype.find.call(t, el) || n.getBoundingClientRect();
8803
+ return Array.prototype.find.call(t, tl) || n.getBoundingClientRect();
8795
8804
  }
8796
8805
  const Sm = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
8797
8806
  function Qa(n, e, t) {
8798
- let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = tr || tt;
8807
+ let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = nr || tt;
8799
8808
  if (r.nodeType == 3)
8800
8809
  if (o && (Sm.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
8801
8810
  let a = yt(ut(r, i, i), t);
@@ -8910,12 +8919,12 @@ function Em(n, e, t) {
8910
8919
  return f != null && (l.caretBidiLevel = f), g;
8911
8920
  }) : r.pos == r.start() || r.pos == r.end();
8912
8921
  }
8913
- let tl = null, nl = null, rl = !1;
8922
+ let nl = null, rl = null, il = !1;
8914
8923
  function Am(n, e, t) {
8915
- return tl == e && nl == t ? rl : (tl = e, nl = t, rl = t == "up" || t == "down" ? Mm(n, e, t) : Em(n, e, t));
8924
+ return nl == e && rl == t ? il : (nl = e, rl = t, il = t == "up" || t == "down" ? Mm(n, e, t) : Em(n, e, t));
8916
8925
  }
8917
- const Xe = 0, il = 1, zt = 2, ot = 3;
8918
- class nr {
8926
+ const Xe = 0, sl = 1, zt = 2, ot = 3;
8927
+ class rr {
8919
8928
  constructor(e, t, r, i) {
8920
8929
  this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Xe, r.pmViewDesc = this;
8921
8930
  }
@@ -9230,7 +9239,7 @@ class nr {
9230
9239
  if (r == o ? e <= o && t >= r : e < o && t > r) {
9231
9240
  let l = r + s.border, a = o - s.border;
9232
9241
  if (e >= l && t <= a) {
9233
- this.dirty = e == r || t == o ? zt : il, e == l && t == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = ot : s.markDirty(e - l, t - l);
9242
+ this.dirty = e == r || t == o ? zt : sl, e == l && t == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = ot : s.markDirty(e - l, t - l);
9234
9243
  return;
9235
9244
  } else
9236
9245
  s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? zt : ot;
@@ -9242,7 +9251,7 @@ class nr {
9242
9251
  markParentsDirty() {
9243
9252
  let e = 1;
9244
9253
  for (let t = this.parent; t; t = t.parent, e++) {
9245
- let r = e == 1 ? zt : il;
9254
+ let r = e == 1 ? zt : sl;
9246
9255
  t.dirty < r && (t.dirty = r);
9247
9256
  }
9248
9257
  }
@@ -9259,7 +9268,7 @@ class nr {
9259
9268
  return !1;
9260
9269
  }
9261
9270
  }
9262
- class Za extends nr {
9271
+ class Za extends rr {
9263
9272
  constructor(e, t, r, i) {
9264
9273
  let s, o = t.type.toDOM;
9265
9274
  if (typeof o == "function" && (o = o(r, () => {
@@ -9302,7 +9311,7 @@ class Za extends nr {
9302
9311
  return this.widget.type.side;
9303
9312
  }
9304
9313
  }
9305
- class Om extends nr {
9314
+ class Om extends rr {
9306
9315
  constructor(e, t, r, i) {
9307
9316
  super(e, [], t, null), this.textDOM = r, this.text = i;
9308
9317
  }
@@ -9319,7 +9328,7 @@ class Om extends nr {
9319
9328
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
9320
9329
  }
9321
9330
  }
9322
- class Qt extends nr {
9331
+ class Qt extends rr {
9323
9332
  constructor(e, t, r, i, s) {
9324
9333
  super(e, [], r, i), this.mark = t, this.spec = s;
9325
9334
  }
@@ -9355,7 +9364,7 @@ class Qt extends nr {
9355
9364
  this.spec.destroy && this.spec.destroy(), super.destroy();
9356
9365
  }
9357
9366
  }
9358
- class At extends nr {
9367
+ class At extends rr {
9359
9368
  constructor(e, t, r, i, s, o, l, a, c) {
9360
9369
  super(e, [], s, o), this.node = t, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = l;
9361
9370
  }
@@ -9481,7 +9490,7 @@ class At extends nr {
9481
9490
  return this.node.isAtom;
9482
9491
  }
9483
9492
  }
9484
- function sl(n, e, t, r, i) {
9493
+ function ol(n, e, t, r, i) {
9485
9494
  nc(r, e, n);
9486
9495
  let s = new At(void 0, n, e, t, r, r, r, i, 0);
9487
9496
  return s.contentDOM && s.updateChildren(i, 0), s;
@@ -9529,7 +9538,7 @@ class gi extends At {
9529
9538
  return this.node.text == e;
9530
9539
  }
9531
9540
  }
9532
- class _a extends nr {
9541
+ class _a extends rr {
9533
9542
  parseRule() {
9534
9543
  return { ignore: !0 };
9535
9544
  }
@@ -9583,7 +9592,7 @@ function ec(n, e, t) {
9583
9592
  let o = e[s], l = o.dom;
9584
9593
  if (l.parentNode == n) {
9585
9594
  for (; l != r; )
9586
- r = ol(r), i = !0;
9595
+ r = ll(r), i = !0;
9587
9596
  r = r.nextSibling;
9588
9597
  } else
9589
9598
  i = !0, n.insertBefore(l, r);
@@ -9593,25 +9602,25 @@ function ec(n, e, t) {
9593
9602
  }
9594
9603
  }
9595
9604
  for (; r; )
9596
- r = ol(r), i = !0;
9605
+ r = ll(r), i = !0;
9597
9606
  i && t.trackWrites == n && (t.trackWrites = null);
9598
9607
  }
9599
- const Rn = function(n) {
9608
+ const Ln = function(n) {
9600
9609
  n && (this.nodeName = n);
9601
9610
  };
9602
- Rn.prototype = /* @__PURE__ */ Object.create(null);
9603
- const Bt = [new Rn()];
9611
+ Ln.prototype = /* @__PURE__ */ Object.create(null);
9612
+ const Bt = [new Ln()];
9604
9613
  function ds(n, e, t) {
9605
9614
  if (n.length == 0)
9606
9615
  return Bt;
9607
- let r = t ? Bt[0] : new Rn(), i = [r];
9616
+ let r = t ? Bt[0] : new Ln(), i = [r];
9608
9617
  for (let s = 0; s < n.length; s++) {
9609
9618
  let o = n[s].type.attrs;
9610
9619
  if (o) {
9611
- o.nodeName && i.push(r = new Rn(o.nodeName));
9620
+ o.nodeName && i.push(r = new Ln(o.nodeName));
9612
9621
  for (let l in o) {
9613
9622
  let a = o[l];
9614
- a != null && (t && i.length == 1 && i.push(r = new Rn(e.isInline ? "span" : "div")), l == "class" ? r.class = (r.class ? r.class + " " : "") + a : l == "style" ? r.style = (r.style ? r.style + ";" : "") + a : l != "nodeName" && (r[l] = a));
9623
+ a != null && (t && i.length == 1 && i.push(r = new Ln(e.isInline ? "span" : "div")), l == "class" ? r.class = (r.class ? r.class + " " : "") + a : l == "style" ? r.style = (r.style ? r.style + ";" : "") + a : l != "nodeName" && (r[l] = a));
9615
9624
  }
9616
9625
  }
9617
9626
  }
@@ -9664,7 +9673,7 @@ function Er(n, e) {
9664
9673
  return !1;
9665
9674
  return !0;
9666
9675
  }
9667
- function ol(n) {
9676
+ function ll(n) {
9668
9677
  let e = n.nextSibling;
9669
9678
  return n.parentNode.removeChild(n), e;
9670
9679
  }
@@ -9934,7 +9943,7 @@ function us(n, e, t, r, i) {
9934
9943
  }
9935
9944
  return s;
9936
9945
  }
9937
- function Us(n, e = null) {
9946
+ function Ws(n, e = null) {
9938
9947
  let t = n.domSelectionRange(), r = n.state.doc;
9939
9948
  if (!t.focusNode)
9940
9949
  return null;
@@ -9968,7 +9977,7 @@ function Us(n, e = null) {
9968
9977
  let d = r.resolve(a);
9969
9978
  if (!c) {
9970
9979
  let u = e == "pointer" || n.state.selection.head < l.pos && !s ? 1 : -1;
9971
- c = Ws(n, d, l, u);
9980
+ c = Ks(n, d, l, u);
9972
9981
  }
9973
9982
  return c;
9974
9983
  }
@@ -9989,13 +9998,13 @@ function pt(n, e = !1) {
9989
9998
  Vm(n);
9990
9999
  else {
9991
10000
  let { anchor: r, head: i } = t, s, o;
9992
- ll && !(t instanceof J) && (t.$from.parent.inlineContent || (s = al(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (o = al(n, t.to))), n.docView.setSelection(r, i, n, e), ll && (s && cl(s), o && cl(o)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Bm(n));
10001
+ al && !(t instanceof J) && (t.$from.parent.inlineContent || (s = cl(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (o = cl(n, t.to))), n.docView.setSelection(r, i, n, e), al && (s && dl(s), o && dl(o)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Bm(n));
9993
10002
  }
9994
10003
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
9995
10004
  }
9996
10005
  }
9997
- const ll = Ie || we && Ua < 63;
9998
- function al(n, e) {
10006
+ const al = Ie || we && Ua < 63;
10007
+ function cl(n, e) {
9999
10008
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, s = r ? t.childNodes[r - 1] : null;
10000
10009
  if (Ie && i && i.contentEditable == "false")
10001
10010
  return Pi(i);
@@ -10009,7 +10018,7 @@ function al(n, e) {
10009
10018
  function Pi(n) {
10010
10019
  return n.contentEditable = "true", Ie && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
10011
10020
  }
10012
- function cl(n) {
10021
+ function dl(n) {
10013
10022
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
10014
10023
  }
10015
10024
  function Bm(n) {
@@ -10032,17 +10041,17 @@ function Vm(n) {
10032
10041
  function ic(n, e) {
10033
10042
  if (e instanceof K) {
10034
10043
  let t = n.docView.descAt(e.from);
10035
- t != n.lastSelectedViewDesc && (dl(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
10044
+ t != n.lastSelectedViewDesc && (ul(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
10036
10045
  } else
10037
- dl(n);
10046
+ ul(n);
10038
10047
  }
10039
- function dl(n) {
10048
+ function ul(n) {
10040
10049
  n.lastSelectedViewDesc && (n.lastSelectedViewDesc.parent && n.lastSelectedViewDesc.deselectNode(), n.lastSelectedViewDesc = void 0);
10041
10050
  }
10042
- function Ws(n, e, t, r) {
10051
+ function Ks(n, e, t, r) {
10043
10052
  return n.someProp("createSelectionBetween", (i) => i(n, e, t)) || J.between(e, t, r);
10044
10053
  }
10045
- function ul(n) {
10054
+ function fl(n) {
10046
10055
  return n.editable && !n.hasFocus() ? !1 : sc(n);
10047
10056
  }
10048
10057
  function sc(n) {
@@ -10066,7 +10075,7 @@ function fs(n, e) {
10066
10075
  function bt(n, e) {
10067
10076
  return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()), !0;
10068
10077
  }
10069
- function fl(n, e, t) {
10078
+ function hl(n, e, t) {
10070
10079
  let r = n.state.selection;
10071
10080
  if (r instanceof J)
10072
10081
  if (t.indexOf("s") > -1) {
@@ -10084,7 +10093,7 @@ function fl(n, e, t) {
10084
10093
  if (!s || s.isText)
10085
10094
  return !1;
10086
10095
  let l = e < 0 ? i.pos - s.nodeSize : i.pos;
10087
- return s.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? K.isSelectable(s) ? bt(n, new K(e < 0 ? n.state.doc.resolve(i.pos - s.nodeSize) : i)) : tr ? bt(n, new J(n.state.doc.resolve(e < 0 ? l : l + s.nodeSize))) : !1 : !1;
10096
+ return s.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? K.isSelectable(s) ? bt(n, new K(e < 0 ? n.state.doc.resolve(i.pos - s.nodeSize) : i)) : nr ? bt(n, new J(n.state.doc.resolve(e < 0 ? l : l + s.nodeSize))) : !1 : !1;
10088
10097
  }
10089
10098
  } else return !1;
10090
10099
  else {
@@ -10099,7 +10108,7 @@ function fl(n, e, t) {
10099
10108
  function Ar(n) {
10100
10109
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
10101
10110
  }
10102
- function Ln(n, e) {
10111
+ function Pn(n, e) {
10103
10112
  let t = n.pmViewDesc;
10104
10113
  return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
10105
10114
  }
@@ -10111,13 +10120,13 @@ function Hm(n) {
10111
10120
  if (!t)
10112
10121
  return;
10113
10122
  let i, s, o = !1;
10114
- for (tt && t.nodeType == 1 && r < Ar(t) && Ln(t.childNodes[r], -1) && (o = !0); ; )
10123
+ for (tt && t.nodeType == 1 && r < Ar(t) && Pn(t.childNodes[r], -1) && (o = !0); ; )
10115
10124
  if (r > 0) {
10116
10125
  if (t.nodeType != 1)
10117
10126
  break;
10118
10127
  {
10119
10128
  let l = t.childNodes[r - 1];
10120
- if (Ln(l, -1))
10129
+ if (Pn(l, -1))
10121
10130
  i = t, s = --r;
10122
10131
  else if (l.nodeType == 3)
10123
10132
  t = l, r = t.nodeValue.length;
@@ -10129,7 +10138,7 @@ function Hm(n) {
10129
10138
  break;
10130
10139
  {
10131
10140
  let l = t.previousSibling;
10132
- for (; l && Ln(l, -1); )
10141
+ for (; l && Pn(l, -1); )
10133
10142
  i = t.parentNode, s = Me(l), l = l.previousSibling;
10134
10143
  if (l)
10135
10144
  t = l, r = Ar(t);
@@ -10152,7 +10161,7 @@ function jm(n) {
10152
10161
  if (t.nodeType != 1)
10153
10162
  break;
10154
10163
  let l = t.childNodes[r];
10155
- if (Ln(l, 1))
10164
+ if (Pn(l, 1))
10156
10165
  s = t, o = ++r;
10157
10166
  else
10158
10167
  break;
@@ -10161,7 +10170,7 @@ function jm(n) {
10161
10170
  break;
10162
10171
  {
10163
10172
  let l = t.nextSibling;
10164
- for (; l && Ln(l, 1); )
10173
+ for (; l && Pn(l, 1); )
10165
10174
  s = l.parentNode, o = Me(l) + 1, l = l.nextSibling;
10166
10175
  if (l)
10167
10176
  t = l, r = 0, i = Ar(t);
@@ -10179,7 +10188,7 @@ function oc(n) {
10179
10188
  return e && e.node && e.node.isBlock;
10180
10189
  }
10181
10190
  function qm(n, e) {
10182
- for (; n && e == n.childNodes.length && !er(n); )
10191
+ for (; n && e == n.childNodes.length && !tr(n); )
10183
10192
  e = Me(n) + 1, n = n.parentNode;
10184
10193
  for (; n && e < n.childNodes.length; ) {
10185
10194
  let t = n.childNodes[e];
@@ -10191,7 +10200,7 @@ function qm(n, e) {
10191
10200
  }
10192
10201
  }
10193
10202
  function Um(n, e) {
10194
- for (; n && !e && !er(n); )
10203
+ for (; n && !e && !tr(n); )
10195
10204
  e = Me(n), n = n.parentNode;
10196
10205
  for (; n && e; ) {
10197
10206
  let t = n.childNodes[e - 1];
@@ -10220,7 +10229,7 @@ function hs(n, e, t) {
10220
10229
  n.state == i && pt(n);
10221
10230
  }, 50);
10222
10231
  }
10223
- function hl(n, e) {
10232
+ function pl(n, e) {
10224
10233
  let t = n.state.doc.resolve(e);
10225
10234
  if (!(we || Wa) && t.parent.inlineContent) {
10226
10235
  let i = n.coordsAtPos(e);
@@ -10237,7 +10246,7 @@ function hl(n, e) {
10237
10246
  }
10238
10247
  return getComputedStyle(n.dom).direction == "rtl" ? "rtl" : "ltr";
10239
10248
  }
10240
- function pl(n, e, t) {
10249
+ function ml(n, e, t) {
10241
10250
  let r = n.state.selection;
10242
10251
  if (r instanceof J && !r.empty || t.indexOf("s") > -1 || Je && t.indexOf("m") > -1)
10243
10252
  return !1;
@@ -10253,7 +10262,7 @@ function pl(n, e, t) {
10253
10262
  }
10254
10263
  return !1;
10255
10264
  }
10256
- function ml(n, e) {
10265
+ function gl(n, e) {
10257
10266
  if (!(n.state.selection instanceof J))
10258
10267
  return !0;
10259
10268
  let { $head: t, $anchor: r, empty: i } = n.state.selection;
@@ -10270,7 +10279,7 @@ function ml(n, e) {
10270
10279
  }
10271
10280
  return !1;
10272
10281
  }
10273
- function gl(n, e, t) {
10282
+ function yl(n, e, t) {
10274
10283
  n.domObserver.stop(), e.contentEditable = t, n.domObserver.start();
10275
10284
  }
10276
10285
  function Wm(n) {
@@ -10279,7 +10288,7 @@ function Wm(n) {
10279
10288
  let { focusNode: e, focusOffset: t } = n.domSelectionRange();
10280
10289
  if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
10281
10290
  let r = e.firstChild;
10282
- gl(n, r, "true"), setTimeout(() => gl(n, r, "false"), 20);
10291
+ yl(n, r, "true"), setTimeout(() => yl(n, r, "false"), 20);
10283
10292
  }
10284
10293
  return !1;
10285
10294
  }
@@ -10290,28 +10299,28 @@ function Km(n) {
10290
10299
  function Jm(n, e) {
10291
10300
  let t = e.keyCode, r = Km(e);
10292
10301
  if (t == 8 || Je && t == 72 && r == "c")
10293
- return ml(n, -1) || rn(n, -1);
10302
+ return gl(n, -1) || rn(n, -1);
10294
10303
  if (t == 46 && !e.shiftKey || Je && t == 68 && r == "c")
10295
- return ml(n, 1) || rn(n, 1);
10304
+ return gl(n, 1) || rn(n, 1);
10296
10305
  if (t == 13 || t == 27)
10297
10306
  return !0;
10298
10307
  if (t == 37 || Je && t == 66 && r == "c") {
10299
- let i = t == 37 ? hl(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
10300
- return fl(n, i, r) || rn(n, i);
10308
+ let i = t == 37 ? pl(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
10309
+ return hl(n, i, r) || rn(n, i);
10301
10310
  } else if (t == 39 || Je && t == 70 && r == "c") {
10302
- let i = t == 39 ? hl(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
10303
- return fl(n, i, r) || rn(n, i);
10311
+ let i = t == 39 ? pl(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
10312
+ return hl(n, i, r) || rn(n, i);
10304
10313
  } else {
10305
10314
  if (t == 38 || Je && t == 80 && r == "c")
10306
- return pl(n, -1, r) || rn(n, -1);
10315
+ return ml(n, -1, r) || rn(n, -1);
10307
10316
  if (t == 40 || Je && t == 78 && r == "c")
10308
- return Wm(n) || pl(n, 1, r) || rn(n, 1);
10317
+ return Wm(n) || ml(n, 1, r) || rn(n, 1);
10309
10318
  if (r == (Je ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
10310
10319
  return !0;
10311
10320
  }
10312
10321
  return !1;
10313
10322
  }
10314
- function Ks(n, e) {
10323
+ function Js(n, e) {
10315
10324
  n.someProp("transformCopied", (h) => {
10316
10325
  e = h(e, n);
10317
10326
  });
@@ -10365,7 +10374,7 @@ function lc(n, e, t, r, i) {
10365
10374
  } else
10366
10375
  n.someProp("transformPastedHTML", (u) => {
10367
10376
  t = u(t, n);
10368
- }), o = Xm(t), tr && Zm(o);
10377
+ }), o = Xm(t), nr && Zm(o);
10369
10378
  let c = o && o.querySelector("[data-pm-slice]"), d = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
10370
10379
  if (d && d[3])
10371
10380
  for (let u = +d[3]; u > 0; u--) {
@@ -10383,14 +10392,14 @@ function lc(n, e, t, r, i) {
10383
10392
  return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !Gm.test(f.parentNode.nodeName) ? { ignore: !0 } : null;
10384
10393
  }
10385
10394
  })), d)
10386
- l = _m(yl(l, +d[1], +d[2]), d[4]);
10395
+ l = _m(bl(l, +d[1], +d[2]), d[4]);
10387
10396
  else if (l = P.maxOpen(Ym(l.content, i), !0), l.openStart || l.openEnd) {
10388
10397
  let u = 0, f = 0;
10389
10398
  for (let h = l.content.firstChild; u < l.openStart && !h.type.spec.isolating; u++, h = h.firstChild)
10390
10399
  ;
10391
10400
  for (let h = l.content.lastChild; f < l.openEnd && !h.type.spec.isolating; f++, h = h.lastChild)
10392
10401
  ;
10393
- l = yl(l, u, f);
10402
+ l = bl(l, u, f);
10394
10403
  }
10395
10404
  return n.someProp("transformPasted", (u) => {
10396
10405
  l = u(l, n, a);
@@ -10444,7 +10453,7 @@ function ps(n, e, t, r, i, s) {
10444
10453
  let o = e < 0 ? n.firstChild : n.lastChild, l = o.content;
10445
10454
  return n.childCount > 1 && (s = 0), i < r - 1 && (l = ps(l, e, t, r, i + 1, s)), i >= t && (l = e < 0 ? o.contentMatchAt(0).fillBefore(l, s <= i).append(l) : l.append(o.contentMatchAt(o.childCount).fillBefore(O.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
10446
10455
  }
10447
- function yl(n, e, t) {
10456
+ function bl(n, e, t) {
10448
10457
  return e < n.openStart && (n = new P(ps(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new P(ps(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
10449
10458
  }
10450
10459
  const uc = {
@@ -10458,9 +10467,9 @@ const uc = {
10458
10467
  td: ["table", "tbody", "tr"],
10459
10468
  th: ["table", "tbody", "tr"]
10460
10469
  };
10461
- let bl = null;
10470
+ let kl = null;
10462
10471
  function fc() {
10463
- return bl || (bl = document.implementation.createHTMLDocument("title"));
10472
+ return kl || (kl = document.implementation.createHTMLDocument("title"));
10464
10473
  }
10465
10474
  let zi = null;
10466
10475
  function Qm(n) {
@@ -10511,7 +10520,7 @@ function ng(n) {
10511
10520
  for (let e in Pe) {
10512
10521
  let t = Pe[e];
10513
10522
  n.dom.addEventListener(e, n.input.eventHandlers[e] = (r) => {
10514
- ig(n, r) && !Js(n, r) && (n.editable || !(r.type in ze)) && t(n, r);
10523
+ ig(n, r) && !Gs(n, r) && (n.editable || !(r.type in ze)) && t(n, r);
10515
10524
  }, eg[e] ? { passive: !0 } : void 0);
10516
10525
  }
10517
10526
  Ie && n.dom.addEventListener("input", () => null), ms(n);
@@ -10528,10 +10537,10 @@ function rg(n) {
10528
10537
  function ms(n) {
10529
10538
  n.someProp("handleDOMEvents", (e) => {
10530
10539
  for (let t in e)
10531
- n.input.eventHandlers[t] || n.dom.addEventListener(t, n.input.eventHandlers[t] = (r) => Js(n, r));
10540
+ n.input.eventHandlers[t] || n.dom.addEventListener(t, n.input.eventHandlers[t] = (r) => Gs(n, r));
10532
10541
  });
10533
10542
  }
10534
- function Js(n, e) {
10543
+ function Gs(n, e) {
10535
10544
  return n.someProp("handleDOMEvents", (t) => {
10536
10545
  let r = t[e.type];
10537
10546
  return r ? r(n, e) || e.defaultPrevented : !1;
@@ -10548,7 +10557,7 @@ function ig(n, e) {
10548
10557
  return !0;
10549
10558
  }
10550
10559
  function sg(n, e) {
10551
- !Js(n, e) && Pe[e.type] && (n.editable || !(e.type in ze)) && Pe[e.type](n, e);
10560
+ !Gs(n, e) && Pe[e.type] && (n.editable || !(e.type in ze)) && Pe[e.type](n, e);
10552
10561
  }
10553
10562
  ze.keydown = (n, e) => {
10554
10563
  let t = e;
@@ -10584,7 +10593,7 @@ function og(n, e) {
10584
10593
  let t = e.x - n.clientX, r = e.y - n.clientY;
10585
10594
  return t * t + r * r < 100;
10586
10595
  }
10587
- function Gs(n, e, t, r, i) {
10596
+ function Ys(n, e, t, r, i) {
10588
10597
  if (r == -1)
10589
10598
  return !1;
10590
10599
  let s = n.state.doc.resolve(r);
@@ -10621,13 +10630,13 @@ function ag(n, e) {
10621
10630
  return i != null ? (hn(n, K.create(n.state.doc, i)), !0) : !1;
10622
10631
  }
10623
10632
  function cg(n, e, t, r, i) {
10624
- return Gs(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (i ? ag(n, t) : lg(n, t));
10633
+ return Ys(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (i ? ag(n, t) : lg(n, t));
10625
10634
  }
10626
10635
  function dg(n, e, t, r) {
10627
- return Gs(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
10636
+ return Ys(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
10628
10637
  }
10629
10638
  function ug(n, e, t, r) {
10630
- return Gs(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || fg(n, t, r);
10639
+ return Ys(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || fg(n, t, r);
10631
10640
  }
10632
10641
  function fg(n, e, t) {
10633
10642
  if (t.button != 0)
@@ -10647,14 +10656,14 @@ function fg(n, e, t) {
10647
10656
  return !0;
10648
10657
  }
10649
10658
  }
10650
- function Ys(n) {
10659
+ function Qs(n) {
10651
10660
  return Or(n);
10652
10661
  }
10653
10662
  const hc = Je ? "metaKey" : "ctrlKey";
10654
10663
  Pe.mousedown = (n, e) => {
10655
10664
  let t = e;
10656
10665
  n.input.shiftKey = t.shiftKey;
10657
- let r = Ys(n), i = Date.now(), s = "singleClick";
10666
+ let r = Qs(n), i = Date.now(), s = "singleClick";
10658
10667
  i - n.input.lastClick.time < 500 && og(t, n.input.lastClick) && !t[hc] && n.input.lastClick.button == t.button && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s, button: t.button };
10659
10668
  let o = n.posAtCoords(yi(t));
10660
10669
  o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new hg(n, o, t, !!r)) : (s == "doubleClick" ? dg : ug)(n, o.pos, o.inside, t) ? t.preventDefault() : Mt(n, "pointer"));
@@ -10706,12 +10715,12 @@ class hg {
10706
10715
  }
10707
10716
  }
10708
10717
  Pe.touchstart = (n) => {
10709
- n.input.lastTouch = Date.now(), Ys(n), Mt(n, "pointer");
10718
+ n.input.lastTouch = Date.now(), Qs(n), Mt(n, "pointer");
10710
10719
  };
10711
10720
  Pe.touchmove = (n) => {
10712
10721
  n.input.lastTouch = Date.now(), Mt(n, "pointer");
10713
10722
  };
10714
- Pe.contextmenu = (n) => Ys(n);
10723
+ Pe.contextmenu = (n) => Qs(n);
10715
10724
  function pc(n, e) {
10716
10725
  return n.composing ? !0 : Ie && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
10717
10726
  }
@@ -10783,7 +10792,7 @@ function yg() {
10783
10792
  function Or(n, e = !1) {
10784
10793
  if (!(ft && n.domObserver.flushingSoon >= 0)) {
10785
10794
  if (n.domObserver.forceFlush(), gc(n), e || n.docView && n.docView.dirty) {
10786
- let t = Us(n), r = n.state.selection;
10795
+ let t = Ws(n), r = n.state.selection;
10787
10796
  return t && !t.eq(r) ? n.dispatch(n.state.tr.setSelection(t)) : (n.markCursor || e) && !r.$from.node(r.$from.sharedDepth(r.to)).inlineContent ? n.dispatch(n.state.tr.deleteSelection()) : n.updateState(n.state), !0;
10788
10797
  }
10789
10798
  return !1;
@@ -10799,12 +10808,12 @@ function bg(n, e) {
10799
10808
  t.parentNode && t.parentNode.removeChild(t), n.focus();
10800
10809
  }, 50);
10801
10810
  }
10802
- const Jn = He && Et < 15 || yn && hm < 604;
10811
+ const Gn = He && Et < 15 || yn && hm < 604;
10803
10812
  Pe.copy = ze.cut = (n, e) => {
10804
10813
  let t = e, r = n.state.selection, i = t.type == "cut";
10805
10814
  if (r.empty)
10806
10815
  return;
10807
- let s = Jn ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = Ks(n, o);
10816
+ let s = Gn ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = Js(n, o);
10808
10817
  s ? (t.preventDefault(), s.clearData(), s.setData("text/html", l.innerHTML), s.setData("text/plain", a)) : bg(n, l), i && n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
10809
10818
  };
10810
10819
  function kg(n) {
@@ -10817,10 +10826,10 @@ function vg(n, e) {
10817
10826
  t || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus();
10818
10827
  let i = n.input.shiftKey && n.input.lastKeyCode != 45;
10819
10828
  setTimeout(() => {
10820
- n.focus(), r.parentNode && r.parentNode.removeChild(r), t ? Gn(n, r.value, null, i, e) : Gn(n, r.textContent, r.innerHTML, i, e);
10829
+ n.focus(), r.parentNode && r.parentNode.removeChild(r), t ? Yn(n, r.value, null, i, e) : Yn(n, r.textContent, r.innerHTML, i, e);
10821
10830
  }, 50);
10822
10831
  }
10823
- function Gn(n, e, t, r, i) {
10832
+ function Yn(n, e, t, r, i) {
10824
10833
  let s = lc(n, e, t, r, n.state.selection.$from);
10825
10834
  if (n.someProp("handlePaste", (a) => a(n, i, s || P.empty)))
10826
10835
  return !0;
@@ -10840,8 +10849,8 @@ ze.paste = (n, e) => {
10840
10849
  let t = e;
10841
10850
  if (n.composing && !ft)
10842
10851
  return;
10843
- let r = Jn ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
10844
- r && Gn(n, yc(r), r.getData("text/html"), i, t) ? t.preventDefault() : vg(n, t);
10852
+ let r = Gn ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
10853
+ r && Yn(n, yc(r), r.getData("text/html"), i, t) ? t.preventDefault() : vg(n, t);
10845
10854
  };
10846
10855
  class bc {
10847
10856
  constructor(e, t, r) {
@@ -10866,8 +10875,8 @@ Pe.dragstart = (n, e) => {
10866
10875
  u && u.node.type.spec.draggable && u != n.docView && (o = K.create(n.state.doc, u.posBefore));
10867
10876
  }
10868
10877
  }
10869
- let l = (o || n.state.selection).content(), { dom: a, text: c, slice: d } = Ks(n, l);
10870
- (!t.dataTransfer.files.length || !we || Ua > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Jn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Jn || t.dataTransfer.setData("text/plain", c), n.dragging = new bc(d, kc(n, t), o);
10878
+ let l = (o || n.state.selection).content(), { dom: a, text: c, slice: d } = Js(n, l);
10879
+ (!t.dataTransfer.files.length || !we || Ua > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Gn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Gn || t.dataTransfer.setData("text/plain", c), n.dragging = new bc(d, kc(n, t), o);
10871
10880
  };
10872
10881
  Pe.dragend = (n) => {
10873
10882
  let e = n.dragging;
@@ -10892,7 +10901,7 @@ function wg(n, e, t) {
10892
10901
  let i = n.state.doc.resolve(r.pos), s = t && t.slice;
10893
10902
  s ? n.someProp("transformPasted", (h) => {
10894
10903
  s = h(s, n, !1);
10895
- }) : s = lc(n, yc(e.dataTransfer), Jn ? null : e.dataTransfer.getData("text/html"), !1, i);
10904
+ }) : s = lc(n, yc(e.dataTransfer), Gn ? null : e.dataTransfer.getData("text/html"), !1, i);
10896
10905
  let o = !!(t && kc(n, e));
10897
10906
  if (n.someProp("handleDrop", (h) => h(n, e, s || P.empty, o))) {
10898
10907
  e.preventDefault();
@@ -10916,7 +10925,7 @@ function wg(n, e, t) {
10916
10925
  a.setSelection(new K(f));
10917
10926
  else {
10918
10927
  let h = a.mapping.map(l);
10919
- a.mapping.maps[a.mapping.maps.length - 1].forEach((p, m, g, y) => h = y), a.setSelection(Ws(n, f, a.doc.resolve(h)));
10928
+ a.mapping.maps[a.mapping.maps.length - 1].forEach((p, m, g, y) => h = y), a.setSelection(Ks(n, f, a.doc.resolve(h)));
10920
10929
  }
10921
10930
  n.focus(), n.dispatch(a.setMeta("uiEvent", "drop"));
10922
10931
  }
@@ -10943,7 +10952,7 @@ Pe.beforeinput = (n, e) => {
10943
10952
  };
10944
10953
  for (let n in ze)
10945
10954
  Pe[n] = ze[n];
10946
- function Yn(n, e) {
10955
+ function Qn(n, e) {
10947
10956
  if (n == e)
10948
10957
  return !0;
10949
10958
  for (let t in n)
@@ -10966,7 +10975,7 @@ class Nr {
10966
10975
  return !0;
10967
10976
  }
10968
10977
  eq(e) {
10969
- return this == e || e instanceof Nr && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Yn(this.spec, e.spec));
10978
+ return this == e || e instanceof Nr && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Qn(this.spec, e.spec));
10970
10979
  }
10971
10980
  destroy(e) {
10972
10981
  this.spec.destroy && this.spec.destroy(e);
@@ -10984,7 +10993,7 @@ class Ot {
10984
10993
  return t.from < t.to;
10985
10994
  }
10986
10995
  eq(e) {
10987
- return this == e || e instanceof Ot && Yn(this.attrs, e.attrs) && Yn(this.spec, e.spec);
10996
+ return this == e || e instanceof Ot && Qn(this.attrs, e.attrs) && Qn(this.spec, e.spec);
10988
10997
  }
10989
10998
  static is(e) {
10990
10999
  return e.type instanceof Ot;
@@ -10992,7 +11001,7 @@ class Ot {
10992
11001
  destroy() {
10993
11002
  }
10994
11003
  }
10995
- class Qs {
11004
+ class Xs {
10996
11005
  constructor(e, t) {
10997
11006
  this.attrs = e, this.spec = t || qt;
10998
11007
  }
@@ -11008,7 +11017,7 @@ class Qs {
11008
11017
  return i == t.from && !(s = e.child(r)).isText && i + s.nodeSize == t.to;
11009
11018
  }
11010
11019
  eq(e) {
11011
- return this == e || e instanceof Qs && Yn(this.attrs, e.attrs) && Yn(this.spec, e.spec);
11020
+ return this == e || e instanceof Xs && Qn(this.attrs, e.attrs) && Qn(this.spec, e.spec);
11012
11021
  }
11013
11022
  destroy() {
11014
11023
  }
@@ -11062,7 +11071,7 @@ class Le {
11062
11071
  node, will receive the given attributes.
11063
11072
  */
11064
11073
  static node(e, t, r, i) {
11065
- return new Le(e, t, new Qs(r, i));
11074
+ return new Le(e, t, new Xs(r, i));
11066
11075
  }
11067
11076
  /**
11068
11077
  The spec provided when creating this decoration. Can be useful
@@ -11237,7 +11246,7 @@ class de {
11237
11246
  @internal
11238
11247
  */
11239
11248
  locals(e) {
11240
- return Xs(this.localsInner(e));
11249
+ return Zs(this.localsInner(e));
11241
11250
  }
11242
11251
  /**
11243
11252
  @internal
@@ -11257,7 +11266,7 @@ class de {
11257
11266
  }
11258
11267
  }
11259
11268
  de.empty = new de([], []);
11260
- de.removeOverlap = Xs;
11269
+ de.removeOverlap = Zs;
11261
11270
  const Oe = de.empty;
11262
11271
  class xt {
11263
11272
  constructor(e) {
@@ -11298,7 +11307,7 @@ class xt {
11298
11307
  t.push(s[o]);
11299
11308
  }
11300
11309
  }
11301
- return t ? Xs(r ? t : t.sort(Ut)) : on;
11310
+ return t ? Zs(r ? t : t.sort(Ut)) : on;
11302
11311
  }
11303
11312
  // Create a group for the given array of decoration sets, or return
11304
11313
  // a single set when possible.
@@ -11421,7 +11430,7 @@ function Ir(n, e, t, r) {
11421
11430
  function Ut(n, e) {
11422
11431
  return n.from - e.from || n.to - e.to;
11423
11432
  }
11424
- function Xs(n) {
11433
+ function Zs(n) {
11425
11434
  let e = n;
11426
11435
  for (let t = 0; t < e.length - 1; t++) {
11427
11436
  let r = e[t];
@@ -11429,17 +11438,17 @@ function Xs(n) {
11429
11438
  for (let i = t + 1; i < e.length; i++) {
11430
11439
  let s = e[i];
11431
11440
  if (s.from == r.from) {
11432
- s.to != r.to && (e == n && (e = n.slice()), e[i] = s.copy(s.from, r.to), kl(e, i + 1, s.copy(r.to, s.to)));
11441
+ s.to != r.to && (e == n && (e = n.slice()), e[i] = s.copy(s.from, r.to), vl(e, i + 1, s.copy(r.to, s.to)));
11433
11442
  continue;
11434
11443
  } else {
11435
- s.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, s.from), kl(e, i, r.copy(s.from, r.to)));
11444
+ s.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, s.from), vl(e, i, r.copy(s.from, r.to)));
11436
11445
  break;
11437
11446
  }
11438
11447
  }
11439
11448
  }
11440
11449
  return e;
11441
11450
  }
11442
- function kl(n, e, t) {
11451
+ function vl(n, e, t) {
11443
11452
  for (; e < n.length && Ut(t, n[e]) > 0; )
11444
11453
  e++;
11445
11454
  n.splice(e, 0, t);
@@ -11516,7 +11525,7 @@ class Ag {
11516
11525
  this.suppressingSelectionUpdates = !0, setTimeout(() => this.suppressingSelectionUpdates = !1, 50);
11517
11526
  }
11518
11527
  onSelectionChange() {
11519
- if (ul(this.view)) {
11528
+ if (fl(this.view)) {
11520
11529
  if (this.suppressingSelectionUpdates)
11521
11530
  return pt(this.view);
11522
11531
  if (He && Et <= 11 && !this.view.state.selection.empty) {
@@ -11560,7 +11569,7 @@ class Ag {
11560
11569
  return;
11561
11570
  let t = this.pendingRecords();
11562
11571
  t.length && (this.queue = []);
11563
- let r = e.domSelectionRange(), i = !this.suppressingSelectionUpdates && !this.currentSelection.eq(r) && ul(e) && !this.ignoreSelectionChange(r), s = -1, o = -1, l = !1, a = [];
11572
+ let r = e.domSelectionRange(), i = !this.suppressingSelectionUpdates && !this.currentSelection.eq(r) && fl(e) && !this.ignoreSelectionChange(r), s = -1, o = -1, l = !1, a = [];
11564
11573
  if (e.editable)
11565
11574
  for (let d = 0; d < t.length; d++) {
11566
11575
  let u = this.registerMutation(t[d], a);
@@ -11586,7 +11595,7 @@ class Ag {
11586
11595
  }
11587
11596
  }
11588
11597
  let c = null;
11589
- s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && mi(r) && (c = Us(e)) && c.eq(X.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, pt(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Og(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || pt(e), this.currentSelection.set(r));
11598
+ s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && mi(r) && (c = Ws(e)) && c.eq(X.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, pt(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Og(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || pt(e), this.currentSelection.set(r));
11590
11599
  }
11591
11600
  registerMutation(e, t) {
11592
11601
  if (t.indexOf(e.target) > -1)
@@ -11621,15 +11630,15 @@ class Ag {
11621
11630
  });
11622
11631
  }
11623
11632
  }
11624
- let vl = /* @__PURE__ */ new WeakMap(), xl = !1;
11633
+ let xl = /* @__PURE__ */ new WeakMap(), wl = !1;
11625
11634
  function Og(n) {
11626
- if (!vl.has(n) && (vl.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
11627
- if (n.requiresGeckoHackNode = tt, xl)
11635
+ if (!xl.has(n) && (xl.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
11636
+ if (n.requiresGeckoHackNode = tt, wl)
11628
11637
  return;
11629
- console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), xl = !0;
11638
+ console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), wl = !0;
11630
11639
  }
11631
11640
  }
11632
- function wl(n, e) {
11641
+ function Cl(n, e) {
11633
11642
  let t = e.startContainer, r = e.startOffset, i = e.endContainer, s = e.endOffset, o = n.domAtPos(n.state.selection.anchor);
11634
11643
  return Yt(o.node, o.offset, i, s) && ([t, r, i, s] = [i, s, t, r]), { anchorNode: t, anchorOffset: r, focusNode: i, focusOffset: s };
11635
11644
  }
@@ -11637,13 +11646,13 @@ function Ng(n, e) {
11637
11646
  if (e.getComposedRanges) {
11638
11647
  let i = e.getComposedRanges(n.root)[0];
11639
11648
  if (i)
11640
- return wl(n, i);
11649
+ return Cl(n, i);
11641
11650
  }
11642
11651
  let t;
11643
11652
  function r(i) {
11644
11653
  i.preventDefault(), i.stopImmediatePropagation(), t = i.getTargetRanges()[0];
11645
11654
  }
11646
- return n.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), n.dom.removeEventListener("beforeinput", r, !0), t ? wl(n, t) : null;
11655
+ return n.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), n.dom.removeEventListener("beforeinput", r, !0), t ? Cl(n, t) : null;
11647
11656
  }
11648
11657
  function Ig(n, e) {
11649
11658
  for (let t = e.parentNode; t && t != n.dom; t = t.parentNode) {
@@ -11700,7 +11709,7 @@ const Rg = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
11700
11709
  function Lg(n, e, t, r, i) {
11701
11710
  let s = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
11702
11711
  if (n.input.compositionPendingChanges = 0, e < 0) {
11703
- let x = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, M = Us(n, x);
11712
+ let x = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, M = Ws(n, x);
11704
11713
  if (M && !n.state.selection.eq(M)) {
11705
11714
  if (we && ft && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (H) => H(n, Pt(13, "Enter"))))
11706
11715
  return;
@@ -11723,7 +11732,7 @@ function Lg(n, e, t, r, i) {
11723
11732
  p = { start: a.from, endA: a.to, endB: a.to };
11724
11733
  else {
11725
11734
  if (c.sel) {
11726
- let x = Cl(n, n.state.doc, c.sel);
11735
+ let x = Sl(n, n.state.doc, c.sel);
11727
11736
  if (x && !x.eq(n.state.selection)) {
11728
11737
  let M = n.state.tr.setSelection(x);
11729
11738
  s && M.setMeta("composition", s), n.dispatch(M);
@@ -11749,7 +11758,7 @@ function Lg(n, e, t, r, i) {
11749
11758
  let v = p.start, b = p.endA, k = (x) => {
11750
11759
  let M = x || n.state.tr.replace(v, b, c.doc.slice(p.start - c.from, p.endB - c.from));
11751
11760
  if (c.sel) {
11752
- let D = Cl(n, M.doc, c.sel);
11761
+ let D = Sl(n, M.doc, c.sel);
11753
11762
  D && !(we && n.composing && D.empty && (p.start != p.endB || n.input.lastChromeDelete < Date.now() - 100) && (D.head == v || D.head == M.mapping.map(b) - 1) || He && D.empty && D.head == v) && M.setSelection(D);
11754
11763
  }
11755
11764
  return s && M.setMeta("composition", s), M.scrollIntoView();
@@ -11773,8 +11782,8 @@ function Lg(n, e, t, r, i) {
11773
11782
  else
11774
11783
  n.dispatch(k());
11775
11784
  }
11776
- function Cl(n, e, t) {
11777
- return Math.max(t.anchor, t.head) > e.content.size ? null : Ws(n, e.resolve(t.anchor), e.resolve(t.head));
11785
+ function Sl(n, e, t) {
11786
+ return Math.max(t.anchor, t.head) > e.content.size ? null : Ks(n, e.resolve(t.anchor), e.resolve(t.head));
11778
11787
  }
11779
11788
  function Pg(n, e) {
11780
11789
  let t = n.firstChild.marks, r = e.firstChild.marks, i = t, s = r, o, l, a;
@@ -11833,14 +11842,14 @@ function Bg(n, e, t, r, i) {
11833
11842
  }
11834
11843
  if (o < s && n.size < e.size) {
11835
11844
  let a = r <= s && r >= o ? s - r : 0;
11836
- s -= a, s && s < e.size && Sl(e.textBetween(s - 1, s + 1)) && (s += a ? 1 : -1), l = s + (l - o), o = s;
11845
+ s -= a, s && s < e.size && Ml(e.textBetween(s - 1, s + 1)) && (s += a ? 1 : -1), l = s + (l - o), o = s;
11837
11846
  } else if (l < s) {
11838
11847
  let a = r <= s && r >= l ? s - r : 0;
11839
- s -= a, s && s < n.size && Sl(n.textBetween(s - 1, s + 1)) && (s += a ? 1 : -1), o = s + (o - l), l = s;
11848
+ s -= a, s && s < n.size && Ml(n.textBetween(s - 1, s + 1)) && (s += a ? 1 : -1), o = s + (o - l), l = s;
11840
11849
  }
11841
11850
  return { start: s, endA: o, endB: l };
11842
11851
  }
11843
- function Sl(n) {
11852
+ function Ml(n) {
11844
11853
  if (n.length != 2)
11845
11854
  return !1;
11846
11855
  let e = n.charCodeAt(0), t = n.charCodeAt(1);
@@ -11855,7 +11864,7 @@ class Cc {
11855
11864
  added to the document.
11856
11865
  */
11857
11866
  constructor(e, t) {
11858
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new tg(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Ol), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = El(this), Tl(this), this.nodeViews = Al(this), this.docView = sl(this.state.doc, Ml(this), Bi(this), this.dom, this), this.domObserver = new Ag(this, (r, i, s, o) => Lg(this, r, i, s, o)), this.domObserver.start(), ng(this), this.updatePluginViews();
11867
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new tg(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Nl), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Al(this), El(this), this.nodeViews = Ol(this), this.docView = ol(this.state.doc, Tl(this), Bi(this), this.dom, this), this.domObserver = new Ag(this, (r, i, s, o) => Lg(this, r, i, s, o)), this.domObserver.start(), ng(this), this.updatePluginViews();
11859
11868
  }
11860
11869
  /**
11861
11870
  Holds `true` when a
@@ -11885,7 +11894,7 @@ class Cc {
11885
11894
  update(e) {
11886
11895
  e.handleDOMEvents != this._props.handleDOMEvents && ms(this);
11887
11896
  let t = this._props;
11888
- this._props = e, e.plugins && (e.plugins.forEach(Ol), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
11897
+ this._props = e, e.plugins && (e.plugins.forEach(Nl), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
11889
11898
  }
11890
11899
  /**
11891
11900
  Update the view by updating existing props object with the object
@@ -11914,11 +11923,11 @@ class Cc {
11914
11923
  e.storedMarks && this.composing && (gc(this), o = !0), this.state = e;
11915
11924
  let l = i.plugins != e.plugins || this._props.plugins != t.plugins;
11916
11925
  if (l || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
11917
- let h = Al(this);
11926
+ let h = Ol(this);
11918
11927
  Fg(h, this.nodeViews) && (this.nodeViews = h, s = !0);
11919
11928
  }
11920
- (l || t.handleDOMEvents != this._props.handleDOMEvents) && ms(this), this.editable = El(this), Tl(this);
11921
- let a = Bi(this), c = Ml(this), d = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", u = s || !this.docView.matchesNode(e.doc, c, a);
11929
+ (l || t.handleDOMEvents != this._props.handleDOMEvents) && ms(this), this.editable = Al(this), El(this);
11930
+ let a = Bi(this), c = Tl(this), d = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", u = s || !this.docView.matchesNode(e.doc, c, a);
11922
11931
  (u || !e.selection.eq(i.selection)) && (o = !0);
11923
11932
  let f = d == "preserve" && o && this.dom.style.overflowAnchor == null && gm(this);
11924
11933
  if (o) {
@@ -11926,7 +11935,7 @@ class Cc {
11926
11935
  let h = u && (He || we) && !this.composing && !i.selection.empty && !e.selection.empty && Vg(i.selection, e.selection);
11927
11936
  if (u) {
11928
11937
  let p = we ? this.trackWrites = this.domSelectionRange().focusNode : null;
11929
- this.composing && (this.input.compositionNode = gg(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = sl(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
11938
+ this.composing && (this.input.compositionNode = gg(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = ol(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
11930
11939
  }
11931
11940
  h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Fm(this)) ? pt(this, h) : (ic(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
11932
11941
  }
@@ -11940,9 +11949,9 @@ class Cc {
11940
11949
  if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
11941
11950
  if (!this.someProp("handleScrollToSelection", (t) => t(this))) if (this.state.selection instanceof K) {
11942
11951
  let t = this.docView.domAfterPos(this.state.selection.from);
11943
- t.nodeType == 1 && _o(this, t.getBoundingClientRect(), e);
11952
+ t.nodeType == 1 && el(this, t.getBoundingClientRect(), e);
11944
11953
  } else
11945
- _o(this, this.coordsAtPos(this.state.selection.head, 1), e);
11954
+ el(this, this.coordsAtPos(this.state.selection.head, 1), e);
11946
11955
  }
11947
11956
  }
11948
11957
  destroyPluginViews() {
@@ -12124,13 +12133,13 @@ class Cc {
12124
12133
  [`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
12125
12134
  */
12126
12135
  pasteHTML(e, t) {
12127
- return Gn(this, "", e, !1, t || new ClipboardEvent("paste"));
12136
+ return Yn(this, "", e, !1, t || new ClipboardEvent("paste"));
12128
12137
  }
12129
12138
  /**
12130
12139
  Run the editor's paste logic with the given plain-text input.
12131
12140
  */
12132
12141
  pasteText(e, t) {
12133
- return Gn(this, e, null, !0, t || new ClipboardEvent("paste"));
12142
+ return Yn(this, e, null, !0, t || new ClipboardEvent("paste"));
12134
12143
  }
12135
12144
  /**
12136
12145
  Serialize the given slice as it would be if it was copied from
@@ -12141,7 +12150,7 @@ class Cc {
12141
12150
  [`transformCopied`](https://prosemirror.net/docs/ref/#view.EditorProps.transformCopied)).
12142
12151
  */
12143
12152
  serializeForClipboard(e) {
12144
- return Ks(this, e);
12153
+ return Js(this, e);
12145
12154
  }
12146
12155
  /**
12147
12156
  Removes the editor from the DOM and destroys all [node
@@ -12182,7 +12191,7 @@ Cc.prototype.dispatch = function(n) {
12182
12191
  let e = this._props.dispatchTransaction;
12183
12192
  e ? e.call(this, n) : this.updateState(this.state.apply(n));
12184
12193
  };
12185
- function Ml(n) {
12194
+ function Tl(n) {
12186
12195
  let e = /* @__PURE__ */ Object.create(null);
12187
12196
  return e.class = "ProseMirror", e.contenteditable = String(n.editable), n.someProp("attributes", (t) => {
12188
12197
  if (typeof t == "function" && (t = t(n.state)), t)
@@ -12190,21 +12199,21 @@ function Ml(n) {
12190
12199
  r == "class" ? e.class += " " + t[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + t[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(t[r]));
12191
12200
  }), e.translate || (e.translate = "no"), [Le.node(0, n.state.doc.content.size, e)];
12192
12201
  }
12193
- function Tl(n) {
12202
+ function El(n) {
12194
12203
  if (n.markCursor) {
12195
12204
  let e = document.createElement("img");
12196
12205
  e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco: Le.widget(n.state.selection.from, e, { raw: !0, marks: n.markCursor }) };
12197
12206
  } else
12198
12207
  n.cursorWrapper = null;
12199
12208
  }
12200
- function El(n) {
12209
+ function Al(n) {
12201
12210
  return !n.someProp("editable", (e) => e(n.state) === !1);
12202
12211
  }
12203
12212
  function Vg(n, e) {
12204
12213
  let t = Math.min(n.$anchor.sharedDepth(n.head), e.$anchor.sharedDepth(e.head));
12205
12214
  return n.$anchor.start(t) != e.$anchor.start(t);
12206
12215
  }
12207
- function Al(n) {
12216
+ function Ol(n) {
12208
12217
  let e = /* @__PURE__ */ Object.create(null);
12209
12218
  function t(r) {
12210
12219
  for (let i in r)
@@ -12223,7 +12232,7 @@ function Fg(n, e) {
12223
12232
  r++;
12224
12233
  return t != r;
12225
12234
  }
12226
- function Ol(n) {
12235
+ function Nl(n) {
12227
12236
  if (n.spec.state || n.spec.filterTransaction || n.spec.appendTransaction)
12228
12237
  throw new RangeError("Plugins passed directly to the view must not have a state component");
12229
12238
  }
@@ -12371,7 +12380,7 @@ function Sc(n) {
12371
12380
  return !1;
12372
12381
  };
12373
12382
  }
12374
- var Yg = Object.defineProperty, Zs = (n, e) => {
12383
+ var Yg = Object.defineProperty, _s = (n, e) => {
12375
12384
  for (var t in e)
12376
12385
  Yg(n, t, { get: e[t], enumerable: !0 });
12377
12386
  };
@@ -12468,7 +12477,7 @@ var ki = class {
12468
12477
  return o;
12469
12478
  }
12470
12479
  }, Mc = {};
12471
- Zs(Mc, {
12480
+ _s(Mc, {
12472
12481
  blur: () => Qg,
12473
12482
  clearContent: () => Xg,
12474
12483
  clearNodes: () => Zg,
@@ -12593,12 +12602,12 @@ var ry = (n) => ({ tr: e, state: t, dispatch: r }) => {
12593
12602
  const { from: r, to: i } = n;
12594
12603
  return t && e.delete(r, i), !0;
12595
12604
  }, sy = () => ({ state: n, dispatch: e }) => Rp(n, e), oy = () => ({ commands: n }) => n.keyboardShortcut("Enter"), ly = () => ({ state: n, dispatch: e }) => Wp(n, e);
12596
- function _s(n) {
12605
+ function eo(n) {
12597
12606
  return Object.prototype.toString.call(n) === "[object RegExp]";
12598
12607
  }
12599
12608
  function $r(n, e, t = { strict: !0 }) {
12600
12609
  const r = Object.keys(e);
12601
- return r.length ? r.every((i) => t.strict ? e[i] === n[i] : _s(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
12610
+ return r.length ? r.every((i) => t.strict ? e[i] === n[i] : eo(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
12602
12611
  }
12603
12612
  function Tc(n, e, t = {}) {
12604
12613
  return n.find((r) => r.type === e && $r(
@@ -12607,10 +12616,10 @@ function Tc(n, e, t = {}) {
12607
12616
  t
12608
12617
  ));
12609
12618
  }
12610
- function Nl(n, e, t = {}) {
12619
+ function Il(n, e, t = {}) {
12611
12620
  return !!Tc(n, e, t);
12612
12621
  }
12613
- function eo(n, e, t) {
12622
+ function to(n, e, t) {
12614
12623
  var r;
12615
12624
  if (!n || !e)
12616
12625
  return;
@@ -12618,9 +12627,9 @@ function eo(n, e, t) {
12618
12627
  if ((!i.node || !i.node.marks.some((d) => d.type === e)) && (i = n.parent.childBefore(n.parentOffset)), !i.node || !i.node.marks.some((d) => d.type === e) || (t = t || ((r = i.node.marks[0]) == null ? void 0 : r.attrs), !Tc([...i.node.marks], e, t)))
12619
12628
  return;
12620
12629
  let o = i.index, l = n.start() + i.offset, a = o + 1, c = l + i.node.nodeSize;
12621
- for (; o > 0 && Nl([...n.parent.child(o - 1).marks], e, t); )
12630
+ for (; o > 0 && Il([...n.parent.child(o - 1).marks], e, t); )
12622
12631
  o -= 1, l -= n.parent.child(o).nodeSize;
12623
- for (; a < n.parent.childCount && Nl([...n.parent.child(a).marks], e, t); )
12632
+ for (; a < n.parent.childCount && Il([...n.parent.child(a).marks], e, t); )
12624
12633
  c += n.parent.child(a).nodeSize, a += 1;
12625
12634
  return {
12626
12635
  from: l,
@@ -12638,7 +12647,7 @@ function mt(n, e) {
12638
12647
  var ay = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12639
12648
  const s = mt(n, r.schema), { doc: o, selection: l } = t, { $from: a, from: c, to: d } = l;
12640
12649
  if (i) {
12641
- const u = eo(a, s, e);
12650
+ const u = to(a, s, e);
12642
12651
  if (u && u.from <= c && u.to >= d) {
12643
12652
  const f = J.create(o, u.from, u.to);
12644
12653
  t.setSelection(f);
@@ -12672,7 +12681,7 @@ function Ac(n, e = null) {
12672
12681
  function dy() {
12673
12682
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
12674
12683
  }
12675
- function to() {
12684
+ function no() {
12676
12685
  return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || // iPad on iOS 13 detection
12677
12686
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
12678
12687
  }
@@ -12682,7 +12691,7 @@ var uy = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) => {
12682
12691
  ...e
12683
12692
  };
12684
12693
  const o = () => {
12685
- (to() || dy()) && r.dom.focus(), requestAnimationFrame(() => {
12694
+ (no() || dy()) && r.dom.focus(), requestAnimationFrame(() => {
12686
12695
  t.isDestroyed || (r.focus(), e?.scrollIntoView && t.commands.scrollIntoView());
12687
12696
  });
12688
12697
  };
@@ -12700,13 +12709,13 @@ var uy = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) => {
12700
12709
  }
12701
12710
  return n;
12702
12711
  };
12703
- function ar(n) {
12712
+ function cr(n) {
12704
12713
  if (typeof window > "u")
12705
12714
  throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
12706
12715
  const e = `<body>${n}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
12707
12716
  return Oc(t);
12708
12717
  }
12709
- function Qn(n, e, t) {
12718
+ function Xn(n, e, t) {
12710
12719
  if (n instanceof et || n instanceof O)
12711
12720
  return n;
12712
12721
  t = {
@@ -12724,7 +12733,7 @@ function Qn(n, e, t) {
12724
12733
  } catch (s) {
12725
12734
  if (t.errorOnInvalidContent)
12726
12735
  throw new Error("[tiptap error]: Invalid JSON content", { cause: s });
12727
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", s), Qn("", e, t);
12736
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", s), Xn("", e, t);
12728
12737
  }
12729
12738
  if (i) {
12730
12739
  if (t.errorOnInvalidContent) {
@@ -12747,15 +12756,15 @@ function Qn(n, e, t) {
12747
12756
  }
12748
12757
  })
12749
12758
  });
12750
- if (t.slice ? Tt.fromSchema(a).parseSlice(ar(n), t.parseOptions) : Tt.fromSchema(a).parse(ar(n), t.parseOptions), t.errorOnInvalidContent && o)
12759
+ if (t.slice ? Tt.fromSchema(a).parseSlice(cr(n), t.parseOptions) : Tt.fromSchema(a).parse(cr(n), t.parseOptions), t.errorOnInvalidContent && o)
12751
12760
  throw new Error("[tiptap error]: Invalid HTML content", {
12752
12761
  cause: new Error(`Invalid element found: ${l}`)
12753
12762
  });
12754
12763
  }
12755
12764
  const s = Tt.fromSchema(e);
12756
- return t.slice ? s.parseSlice(ar(n), t.parseOptions).content : s.parse(ar(n), t.parseOptions);
12765
+ return t.slice ? s.parseSlice(cr(n), t.parseOptions).content : s.parse(cr(n), t.parseOptions);
12757
12766
  }
12758
- return Qn("", e, t);
12767
+ return Xn("", e, t);
12759
12768
  }
12760
12769
  function py(n, e, t) {
12761
12770
  const r = n.steps.length - 1;
@@ -12795,7 +12804,7 @@ var my = (n) => !("type" in n), gy = (n, e, t) => ({ tr: r, dispatch: i, editor:
12795
12804
  };
12796
12805
  if (!t.errorOnInvalidContent && !s.options.enableContentCheck && s.options.emitContentError)
12797
12806
  try {
12798
- Qn(e, s.schema, {
12807
+ Xn(e, s.schema, {
12799
12808
  parseOptions: c,
12800
12809
  errorOnInvalidContent: !0
12801
12810
  });
@@ -12803,7 +12812,7 @@ var my = (n) => !("type" in n), gy = (n, e, t) => ({ tr: r, dispatch: i, editor:
12803
12812
  a(g);
12804
12813
  }
12805
12814
  try {
12806
- l = Qn(e, s.schema, {
12815
+ l = Xn(e, s.schema, {
12807
12816
  parseOptions: c,
12808
12817
  errorOnInvalidContent: (o = t.errorOnInvalidContent) != null ? o : s.options.enableContentCheck
12809
12818
  });
@@ -12870,7 +12879,7 @@ function My(n) {
12870
12879
  else if (/^s(hift)?$/i.test(a))
12871
12880
  s = !0;
12872
12881
  else if (/^mod$/i.test(a))
12873
- to() || Nc() ? o = !0 : i = !0;
12882
+ no() || Nc() ? o = !0 : i = !0;
12874
12883
  else
12875
12884
  throw new Error(`Unrecognized modifier name: ${a}`);
12876
12885
  }
@@ -12918,7 +12927,7 @@ var Ey = (n, e = {}) => ({ state: t, dispatch: r }) => {
12918
12927
  function vi(n, e) {
12919
12928
  return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
12920
12929
  }
12921
- function Il(n, e) {
12930
+ function Dl(n, e) {
12922
12931
  const t = typeof e == "string" ? [e] : e;
12923
12932
  return Object.keys(n).reduce((r, i) => (t.includes(i) || (r[i] = n[i]), r), {});
12924
12933
  }
@@ -12934,8 +12943,8 @@ var Iy = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
12934
12943
  let a = !1;
12935
12944
  return t.selection.ranges.forEach((c) => {
12936
12945
  r.doc.nodesBetween(c.$from.pos, c.$to.pos, (d, u) => {
12937
- s && s === d.type && (a = !0, i && t.setNodeMarkup(u, void 0, Il(d.attrs, e))), o && d.marks.length && d.marks.forEach((f) => {
12938
- o === f.type && (a = !0, i && t.addMark(u, u + d.nodeSize, o.create(Il(f.attrs, e))));
12946
+ s && s === d.type && (a = !0, i && t.setNodeMarkup(u, void 0, Dl(d.attrs, e))), o && d.marks.length && d.marks.forEach((f) => {
12947
+ o === f.type && (a = !0, i && t.addMark(u, u + d.nodeSize, o.create(Dl(f.attrs, e))));
12939
12948
  });
12940
12949
  });
12941
12950
  }), a;
@@ -12947,7 +12956,7 @@ var Iy = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
12947
12956
  return !0;
12948
12957
  }, Ry = () => ({ state: n, dispatch: e }) => Bp(n, e), Ly = () => ({ state: n, dispatch: e }) => Fp(n, e), Py = () => ({ state: n, dispatch: e }) => Gp(n, e), zy = () => ({ state: n, dispatch: e }) => Xp(n, e), By = () => ({ state: n, dispatch: e }) => Qp(n, e);
12949
12958
  function gs(n, e, t = {}, r = {}) {
12950
- return Qn(n, e, {
12959
+ return Xn(n, e, {
12951
12960
  slice: !1,
12952
12961
  parseOptions: t,
12953
12962
  errorOnInvalidContent: r.errorOnInvalidContent
@@ -13020,17 +13029,17 @@ function U(n, e, t) {
13020
13029
  parent: n.parent ? U(n.parent, e, t) : null
13021
13030
  }) : n.config[e];
13022
13031
  }
13023
- function no(n) {
13032
+ function ro(n) {
13024
13033
  return n.map((e) => {
13025
13034
  const t = {
13026
13035
  name: e.name,
13027
13036
  options: e.options,
13028
13037
  storage: e.storage
13029
13038
  }, r = U(e, "addExtensions", t);
13030
- return r ? [e, ...no(r())] : e;
13039
+ return r ? [e, ...ro(r())] : e;
13031
13040
  }).flat(10);
13032
13041
  }
13033
- function ro(n, e) {
13042
+ function io(n, e) {
13034
13043
  const t = Zt.fromSchema(e).serializeFragment(n), i = document.implementation.createHTMLDocument().createElement("div");
13035
13044
  return i.appendChild(t), i.innerHTML;
13036
13045
  }
@@ -13147,7 +13156,7 @@ function Rr(n, e) {
13147
13156
  function Uy(n) {
13148
13157
  return typeof n != "string" ? n : n.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(n) : n === "true" ? !0 : n === "false" ? !1 : n;
13149
13158
  }
13150
- function Dl(n, e) {
13159
+ function $l(n, e) {
13151
13160
  return "style" in n ? n : {
13152
13161
  ...n,
13153
13162
  getAttrs: (t) => {
@@ -13165,13 +13174,13 @@ function Dl(n, e) {
13165
13174
  }
13166
13175
  };
13167
13176
  }
13168
- function $l(n) {
13177
+ function Rl(n) {
13169
13178
  return Object.fromEntries(
13170
13179
  // @ts-ignore
13171
13180
  Object.entries(n).filter(([e, t]) => e === "attrs" && qy(t) ? !1 : t != null)
13172
13181
  );
13173
13182
  }
13174
- function Rl(n) {
13183
+ function Ll(n) {
13175
13184
  var e, t;
13176
13185
  const r = {};
13177
13186
  return !((e = n?.attribute) != null && e.isRequired) && "default" in (n?.attribute || {}) && (r.default = n.attribute.default), ((t = n?.attribute) == null ? void 0 : t.validate) !== void 0 && (r.validate = n.attribute.validate), [n.name, r];
@@ -13191,7 +13200,7 @@ function Wy(n, e) {
13191
13200
  ...y,
13192
13201
  ...v ? v(c) : {}
13193
13202
  };
13194
- }, {}), h = $l({
13203
+ }, {}), h = Rl({
13195
13204
  ...f,
13196
13205
  content: se(U(c, "content", u)),
13197
13206
  marks: se(U(c, "marks", u)),
@@ -13207,10 +13216,10 @@ function Wy(n, e) {
13207
13216
  ),
13208
13217
  defining: se(U(c, "defining", u)),
13209
13218
  isolating: se(U(c, "isolating", u)),
13210
- attrs: Object.fromEntries(d.map(Rl))
13219
+ attrs: Object.fromEntries(d.map(Ll))
13211
13220
  }), p = se(U(c, "parseHTML", u));
13212
13221
  p && (h.parseDOM = p.map(
13213
- (y) => Dl(y, d)
13222
+ (y) => $l(y, d)
13214
13223
  ));
13215
13224
  const m = U(c, "renderHTML", u);
13216
13225
  m && (h.toDOM = (y) => m({
@@ -13233,17 +13242,17 @@ function Wy(n, e) {
13233
13242
  ...g,
13234
13243
  ...S ? S(c) : {}
13235
13244
  };
13236
- }, {}), h = $l({
13245
+ }, {}), h = Rl({
13237
13246
  ...f,
13238
13247
  inclusive: se(U(c, "inclusive", u)),
13239
13248
  excludes: se(U(c, "excludes", u)),
13240
13249
  group: se(U(c, "group", u)),
13241
13250
  spanning: se(U(c, "spanning", u)),
13242
13251
  code: se(U(c, "code", u)),
13243
- attrs: Object.fromEntries(d.map(Rl))
13252
+ attrs: Object.fromEntries(d.map(Ll))
13244
13253
  }), p = se(U(c, "parseHTML", u));
13245
13254
  p && (h.parseDOM = p.map(
13246
- (g) => Dl(g, d)
13255
+ (g) => $l(g, d)
13247
13256
  ));
13248
13257
  const m = U(c, "renderHTML", u);
13249
13258
  return m && (h.toDOM = (g) => m({
@@ -13262,14 +13271,14 @@ function Ky(n) {
13262
13271
  const e = n.filter((t, r) => n.indexOf(t) !== r);
13263
13272
  return Array.from(new Set(e));
13264
13273
  }
13265
- function io(n) {
13274
+ function so(n) {
13266
13275
  return n.sort((t, r) => {
13267
13276
  const i = U(t, "priority") || 100, s = U(r, "priority") || 100;
13268
13277
  return i > s ? -1 : i < s ? 1 : 0;
13269
13278
  });
13270
13279
  }
13271
13280
  function Lc(n) {
13272
- const e = io(no(n)), t = Ky(e.map((r) => r.name));
13281
+ const e = so(ro(n)), t = Ky(e.map((r) => r.name));
13273
13282
  return t.length && console.warn(
13274
13283
  `[tiptap warn]: Duplicate extension names found: [${t.map((r) => `'${r}'`).join(", ")}]. This can lead to issues.`
13275
13284
  ), e;
@@ -13361,10 +13370,10 @@ function Vc(n) {
13361
13370
  });
13362
13371
  }), Qy(r);
13363
13372
  }
13364
- function so(n, e, t) {
13373
+ function oo(n, e, t) {
13365
13374
  const r = [];
13366
13375
  return n === e ? t.resolve(n).marks().forEach((i) => {
13367
- const s = t.resolve(n), o = eo(s, i.type);
13376
+ const s = t.resolve(n), o = to(s, i.type);
13368
13377
  o && r.push({
13369
13378
  mark: i,
13370
13379
  ...o
@@ -13458,10 +13467,10 @@ var e0 = (n, e) => {
13458
13467
  const { $from: e, $to: t } = n.selection;
13459
13468
  return !(e.parentOffset > 0 || e.pos !== t.pos);
13460
13469
  };
13461
- function Ll(n, e) {
13470
+ function Pl(n, e) {
13462
13471
  return Array.isArray(e) ? e.some((t) => (typeof t == "string" ? t : t.name) === n.name) : e;
13463
13472
  }
13464
- function Pl(n, e) {
13473
+ function zl(n, e) {
13465
13474
  const { nodeExtensions: t } = bn(e), r = t.find((o) => o.name === n);
13466
13475
  if (!r)
13467
13476
  return !1;
@@ -13583,7 +13592,7 @@ var s0 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
13583
13592
  }, o0 = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), l0 = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
13584
13593
  const s = ge(n, t.schema);
13585
13594
  let o;
13586
- return t.selection.$anchor.sameParent(t.selection.$head) && (o = t.selection.$anchor.parent.attrs), s.isTextblock ? i().command(({ commands: l }) => Qo(s, { ...o, ...e })(t) ? !0 : l.clearNodes()).command(({ state: l }) => Qo(s, { ...o, ...e })(l, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
13595
+ return t.selection.$anchor.sameParent(t.selection.$head) && (o = t.selection.$anchor.parent.attrs), s.isTextblock ? i().command(({ commands: l }) => Xo(s, { ...o, ...e })(t) ? !0 : l.clearNodes()).command(({ state: l }) => Xo(s, { ...o, ...e })(l, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
13587
13596
  }, a0 = (n) => ({ tr: e, dispatch: t }) => {
13588
13597
  if (t) {
13589
13598
  const { doc: r } = e, i = Vt(n, 0, r.content.size), s = K.create(r, i);
@@ -13609,7 +13618,7 @@ var s0 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
13609
13618
  const r = ge(n, e.schema);
13610
13619
  return sm(r)(e, t);
13611
13620
  };
13612
- function zl(n, e) {
13621
+ function Bl(n, e) {
13613
13622
  const t = n.storedMarks || n.selection.$to.parentOffset && n.selection.$from.marks();
13614
13623
  if (t) {
13615
13624
  const r = t.filter((i) => e?.includes(i.type.name));
@@ -13619,7 +13628,7 @@ function zl(n, e) {
13619
13628
  var f0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
13620
13629
  const { selection: s, doc: o } = e, { $from: l, $to: a } = s, c = i.extensionManager.attributes, d = kr(c, l.node().type.name, l.node().attrs);
13621
13630
  if (s instanceof K && s.node.isBlock)
13622
- return !l.parentOffset || !un(o, l.pos) ? !1 : (r && (n && zl(t, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
13631
+ return !l.parentOffset || !un(o, l.pos) ? !1 : (r && (n && Bl(t, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
13623
13632
  if (!l.parent.isBlock)
13624
13633
  return !1;
13625
13634
  const u = a.parentOffset === a.parent.content.size, f = l.depth === 0 ? void 0 : Fy(l.node(-1).contentMatchAt(l.indexAfter(-1)));
@@ -13639,7 +13648,7 @@ var f0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
13639
13648
  const m = e.mapping.map(l.before()), g = e.doc.resolve(m);
13640
13649
  l.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && e.setNodeMarkup(e.mapping.map(l.before()), f);
13641
13650
  }
13642
- n && zl(t, i.extensionManager.splittableMarks), e.scrollIntoView();
13651
+ n && Bl(t, i.extensionManager.splittableMarks), e.scrollIntoView();
13643
13652
  }
13644
13653
  return p;
13645
13654
  }, h0 = (n, e = {}) => ({ tr: t, state: r, dispatch: i, editor: s }) => {
@@ -13722,11 +13731,11 @@ var f0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
13722
13731
  const { extensions: u, splittableMarks: f } = i.extensionManager, h = ge(n, o.schema), p = ge(e, o.schema), { selection: m, storedMarks: g } = o, { $from: y, $to: S } = m, v = y.blockRange(S), b = g || m.$to.parentOffset && m.$from.marks();
13723
13732
  if (!v)
13724
13733
  return !1;
13725
- const k = xi((w) => Pl(w.type.name, u))(m);
13734
+ const k = xi((w) => zl(w.type.name, u))(m);
13726
13735
  if (v.depth >= 1 && k && v.depth - k.depth <= 1) {
13727
13736
  if (k.node.type === h)
13728
13737
  return c.liftListItem(p);
13729
- if (Pl(k.node.type.name, u) && h.validContent(k.node.content) && l)
13738
+ if (zl(k.node.type.name, u) && h.validContent(k.node.content) && l)
13730
13739
  return a().command(() => (s.setNodeMarkup(k.pos, h), !0)).command(() => qi(s, h)).command(() => Ui(s, h)).run();
13731
13740
  }
13732
13741
  return !t || !b || !l ? a().command(() => d().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => qi(s, h)).command(() => Ui(s, h)).run() : a().command(() => {
@@ -13775,7 +13784,7 @@ var f0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
13775
13784
  return !0;
13776
13785
  if (d && o) {
13777
13786
  let { from: f, to: h } = l;
13778
- const p = (s = c.marks().find((g) => g.type === a)) == null ? void 0 : s.attrs, m = eo(c, a, p);
13787
+ const p = (s = c.marks().find((g) => g.type === a)) == null ? void 0 : s.attrs, m = to(c, a, p);
13779
13788
  m && (f = m.from, h = m.to), t.removeMark(f, h, a);
13780
13789
  } else
13781
13790
  u.forEach((f) => {
@@ -13873,7 +13882,7 @@ var f0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
13873
13882
  this.find = n.find, this.handler = n.handler, this.undoable = (e = n.undoable) != null ? e : !0;
13874
13883
  }
13875
13884
  }, T0 = (n, e) => {
13876
- if (_s(e))
13885
+ if (eo(e))
13877
13886
  return e.exec(n);
13878
13887
  const t = e(n);
13879
13888
  if (!t)
@@ -13881,7 +13890,7 @@ var f0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
13881
13890
  const r = [t.text];
13882
13891
  return r.index = t.index, r.input = n, r.data = t.data, t.replaceWith && (t.text.includes(t.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(t.replaceWith)), r;
13883
13892
  };
13884
- function cr(n) {
13893
+ function dr(n) {
13885
13894
  var e;
13886
13895
  const { editor: t, from: r, to: i, text: s, rules: o, plugin: l } = n, { view: a } = t;
13887
13896
  if (a.composing)
@@ -13938,9 +13947,9 @@ function E0(n) {
13938
13947
  const a = i.getMeta("applyInputRules");
13939
13948
  return a && setTimeout(() => {
13940
13949
  let { text: d } = a;
13941
- typeof d == "string" ? d = d : d = ro(O.from(d), o.schema);
13950
+ typeof d == "string" ? d = d : d = io(O.from(d), o.schema);
13942
13951
  const { from: u } = a, f = u + d.length;
13943
- cr({
13952
+ dr({
13944
13953
  editor: e,
13945
13954
  from: u,
13946
13955
  to: f,
@@ -13953,7 +13962,7 @@ function E0(n) {
13953
13962
  },
13954
13963
  props: {
13955
13964
  handleTextInput(i, s, o, l) {
13956
- return cr({
13965
+ return dr({
13957
13966
  editor: e,
13958
13967
  from: s,
13959
13968
  to: o,
@@ -13965,7 +13974,7 @@ function E0(n) {
13965
13974
  handleDOMEvents: {
13966
13975
  compositionend: (i) => (setTimeout(() => {
13967
13976
  const { $cursor: s } = i.state.selection;
13968
- s && cr({
13977
+ s && dr({
13969
13978
  editor: e,
13970
13979
  from: s.pos,
13971
13980
  to: s.pos,
@@ -13981,7 +13990,7 @@ function E0(n) {
13981
13990
  if (s.key !== "Enter")
13982
13991
  return !1;
13983
13992
  const { $cursor: o } = i.state.selection;
13984
- return o ? cr({
13993
+ return o ? dr({
13985
13994
  editor: e,
13986
13995
  from: o.pos,
13987
13996
  to: o.pos,
@@ -14000,16 +14009,16 @@ function E0(n) {
14000
14009
  function A0(n) {
14001
14010
  return Object.prototype.toString.call(n).slice(8, -1);
14002
14011
  }
14003
- function dr(n) {
14012
+ function ur(n) {
14004
14013
  return A0(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
14005
14014
  }
14006
14015
  function qc(n, e) {
14007
14016
  const t = { ...n };
14008
- return dr(n) && dr(e) && Object.keys(e).forEach((r) => {
14009
- dr(e[r]) && dr(n[r]) ? t[r] = qc(n[r], e[r]) : t[r] = e[r];
14017
+ return ur(n) && ur(e) && Object.keys(e).forEach((r) => {
14018
+ ur(e[r]) && ur(n[r]) ? t[r] = qc(n[r], e[r]) : t[r] = e[r];
14010
14019
  }), t;
14011
14020
  }
14012
- var oo = class {
14021
+ var lo = class {
14013
14022
  constructor(n = {}) {
14014
14023
  this.type = "extendable", this.parent = null, this.child = null, this.name = "", this.config = {
14015
14024
  name: this.name
@@ -14048,7 +14057,7 @@ var oo = class {
14048
14057
  const e = new this.constructor({ ...this.config, ...n });
14049
14058
  return e.parent = this, this.child = e, e.name = "name" in n ? n.name : e.parent.name, e;
14050
14059
  }
14051
- }, en = class Uc extends oo {
14060
+ }, en = class Uc extends lo {
14052
14061
  constructor() {
14053
14062
  super(...arguments), this.type = "mark";
14054
14063
  }
@@ -14087,7 +14096,7 @@ var N0 = class {
14087
14096
  this.find = n.find, this.handler = n.handler;
14088
14097
  }
14089
14098
  }, I0 = (n, e, t) => {
14090
- if (_s(e))
14099
+ if (eo(e))
14091
14100
  return [...n.matchAll(e)];
14092
14101
  const r = e(n, t);
14093
14102
  return r ? r.map((i) => {
@@ -14128,7 +14137,7 @@ function D0(n) {
14128
14137
  });
14129
14138
  }), u.every((h) => h !== null);
14130
14139
  }
14131
- var ur = null, $0 = (n) => {
14140
+ var fr = null, $0 = (n) => {
14132
14141
  var e;
14133
14142
  const t = new ClipboardEvent("paste", {
14134
14143
  clipboardData: new DataTransfer()
@@ -14176,9 +14185,9 @@ function R0(n) {
14176
14185
  view(u) {
14177
14186
  const f = (p) => {
14178
14187
  var m;
14179
- r = (m = u.dom.parentElement) != null && m.contains(p.target) ? u.dom.parentElement : null, r && (ur = e);
14188
+ r = (m = u.dom.parentElement) != null && m.contains(p.target) ? u.dom.parentElement : null, r && (fr = e);
14180
14189
  }, h = () => {
14181
- ur && (ur = null);
14190
+ fr && (fr = null);
14182
14191
  };
14183
14192
  return window.addEventListener("dragstart", f), window.addEventListener("dragend", h), {
14184
14193
  destroy() {
@@ -14190,7 +14199,7 @@ function R0(n) {
14190
14199
  handleDOMEvents: {
14191
14200
  drop: (u, f) => {
14192
14201
  if (s = r === u.dom.parentElement, l = f, !s) {
14193
- const h = ur;
14202
+ const h = fr;
14194
14203
  h?.isEditable && setTimeout(() => {
14195
14204
  const p = h.state.selection;
14196
14205
  p && h.commands.deleteRange({ from: p.from, to: p.to });
@@ -14211,7 +14220,7 @@ function R0(n) {
14211
14220
  return;
14212
14221
  if (S) {
14213
14222
  let { text: k } = y;
14214
- typeof k == "string" ? k = k : k = ro(O.from(k), h.schema);
14223
+ typeof k == "string" ? k = k : k = io(O.from(k), h.schema);
14215
14224
  const { from: w } = y, x = w + k.length, M = $0(k);
14216
14225
  return a({
14217
14226
  rule: d,
@@ -14262,7 +14271,7 @@ var Si = class {
14262
14271
  */
14263
14272
  get plugins() {
14264
14273
  const { editor: n } = this;
14265
- return io([...this.extensions].reverse()).flatMap((r) => {
14274
+ return so([...this.extensions].reverse()).flatMap((r) => {
14266
14275
  const i = {
14267
14276
  name: r.name,
14268
14277
  options: r.options,
@@ -14284,7 +14293,7 @@ var Si = class {
14284
14293
  const a = Gg(l);
14285
14294
  s.push(a);
14286
14295
  const c = U(r, "addInputRules", i);
14287
- if (Ll(r, n.options.enableInputRules) && c) {
14296
+ if (Pl(r, n.options.enableInputRules) && c) {
14288
14297
  const f = c();
14289
14298
  if (f && f.length) {
14290
14299
  const h = E0({
@@ -14295,7 +14304,7 @@ var Si = class {
14295
14304
  }
14296
14305
  }
14297
14306
  const d = U(r, "addPasteRules", i);
14298
- if (Ll(r, n.options.enablePasteRules) && d) {
14307
+ if (Pl(r, n.options.enablePasteRules) && d) {
14299
14308
  const f = d();
14300
14309
  if (f && f.length) {
14301
14310
  const h = R0({ editor: n, rules: f });
@@ -14421,10 +14430,10 @@ var Si = class {
14421
14430
  }
14422
14431
  };
14423
14432
  Si.resolve = Lc;
14424
- Si.sort = io;
14425
- Si.flatten = no;
14433
+ Si.sort = so;
14434
+ Si.flatten = ro;
14426
14435
  var L0 = {};
14427
- Zs(L0, {
14436
+ _s(L0, {
14428
14437
  ClipboardTextSerializer: () => Kc,
14429
14438
  Commands: () => Jc,
14430
14439
  Delete: () => Gc,
@@ -14437,7 +14446,7 @@ Zs(L0, {
14437
14446
  TextDirection: () => nd,
14438
14447
  focusEventsPluginKey: () => Xc
14439
14448
  });
14440
- var pe = class Wc extends oo {
14449
+ var pe = class Wc extends lo {
14441
14450
  constructor() {
14442
14451
  super(...arguments), this.type = "extension";
14443
14452
  }
@@ -14642,7 +14651,7 @@ var pe = class Wc extends oo {
14642
14651
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
14643
14652
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
14644
14653
  };
14645
- return to() || Nc() ? s : i;
14654
+ return no() || Nc() ? s : i;
14646
14655
  },
14647
14656
  addProseMirrorPlugins() {
14648
14657
  return [
@@ -15316,7 +15325,7 @@ var V0 = class extends M0 {
15316
15325
  * Get the document as HTML.
15317
15326
  */
15318
15327
  getHTML() {
15319
- return ro(this.state.doc.content, this.schema);
15328
+ return io(this.state.doc.content, this.schema);
15320
15329
  }
15321
15330
  /**
15322
15331
  * Get the document as text.
@@ -15378,7 +15387,7 @@ function kn(n) {
15378
15387
  const { tr: s } = e, o = r[r.length - 1], l = r[0];
15379
15388
  if (o) {
15380
15389
  const a = l.search(/\S/), c = t.from + l.indexOf(o), d = c + o.length;
15381
- if (so(t.from, t.to, e.doc).filter((h) => h.mark.type.excluded.find((m) => m === n.type && m !== h.mark.type)).filter((h) => h.to > c).length)
15390
+ if (oo(t.from, t.to, e.doc).filter((h) => h.mark.type.excluded.find((m) => m === n.type && m !== h.mark.type)).filter((h) => h.to > c).length)
15382
15391
  return null;
15383
15392
  d < t.to && s.delete(d, t.to), c > t.from && s.delete(t.from + a, c);
15384
15393
  const f = t.from + a + o.length;
@@ -15426,7 +15435,7 @@ function vn(n) {
15426
15435
  return new Ci({
15427
15436
  find: n.find,
15428
15437
  handler: ({ state: e, range: t, match: r, chain: i }) => {
15429
- const s = se(n.getAttributes, void 0, r) || {}, o = e.tr.delete(t.from, t.to), a = o.doc.resolve(t.from).blockRange(), c = a && Vs(a, n.type, s);
15438
+ const s = se(n.getAttributes, void 0, r) || {}, o = e.tr.delete(t.from, t.to), a = o.doc.resolve(t.from).blockRange(), c = a && Fs(a, n.type, s);
15430
15439
  if (!c)
15431
15440
  return null;
15432
15441
  if (o.wrap(a, c), n.keepMarks && n.editor) {
@@ -15462,16 +15471,16 @@ function H0(n, e) {
15462
15471
  return !1;
15463
15472
  }
15464
15473
  var j0 = {};
15465
- Zs(j0, {
15474
+ _s(j0, {
15466
15475
  createAtomBlockMarkdownSpec: () => q0,
15467
15476
  createBlockMarkdownSpec: () => U0,
15468
15477
  createInlineMarkdownSpec: () => J0,
15469
- parseAttributes: () => lo,
15478
+ parseAttributes: () => ao,
15470
15479
  parseIndentedBlocks: () => ks,
15471
- renderNestedMarkdownContent: () => co,
15472
- serializeAttributes: () => ao
15480
+ renderNestedMarkdownContent: () => uo,
15481
+ serializeAttributes: () => co
15473
15482
  });
15474
- function lo(n) {
15483
+ function ao(n) {
15475
15484
  if (!n?.trim())
15476
15485
  return {};
15477
15486
  const e = {}, t = [], r = n.replace(/["']([^"']*)["']/g, (c) => (t.push(c), `__QUOTED_${t.length - 1}__`)), i = r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);
@@ -15492,7 +15501,7 @@ function lo(n) {
15492
15501
  d.match(/^[a-zA-Z][\w-]*$/) && (e[d] = !0);
15493
15502
  }), e;
15494
15503
  }
15495
- function ao(n) {
15504
+ function co(n) {
15496
15505
  if (!n || Object.keys(n).length === 0)
15497
15506
  return "";
15498
15507
  const e = [];
@@ -15504,8 +15513,8 @@ function q0(n) {
15504
15513
  const {
15505
15514
  nodeName: e,
15506
15515
  name: t,
15507
- parseAttributes: r = lo,
15508
- serializeAttributes: i = ao,
15516
+ parseAttributes: r = ao,
15517
+ serializeAttributes: i = co,
15509
15518
  defaultAttributes: s = {},
15510
15519
  requiredAttributes: o = [],
15511
15520
  allowedAttributes: l
@@ -15554,8 +15563,8 @@ function U0(n) {
15554
15563
  nodeName: e,
15555
15564
  name: t,
15556
15565
  getContent: r,
15557
- parseAttributes: i = lo,
15558
- serializeAttributes: s = ao,
15566
+ parseAttributes: i = ao,
15567
+ serializeAttributes: s = co,
15559
15568
  defaultAttributes: o = {},
15560
15569
  content: l = "block",
15561
15570
  allowedAttributes: a
@@ -15784,7 +15793,7 @@ function ks(n, e, t) {
15784
15793
  raw: c
15785
15794
  };
15786
15795
  }
15787
- function co(n, e, t, r) {
15796
+ function uo(n, e, t, r) {
15788
15797
  if (!n || !Array.isArray(n.content))
15789
15798
  return "";
15790
15799
  const i = typeof t == "function" ? t(r) : t, [s, ...o] = n.content, l = e.renderChildren([s]), a = [`${i}${l}`];
@@ -15822,7 +15831,7 @@ function G0(n, e, t = {}) {
15822
15831
  }
15823
15832
  }), s.docChanged && e.view.dispatch(s);
15824
15833
  }
15825
- var Ue = class rd extends oo {
15834
+ var Ue = class rd extends lo {
15826
15835
  constructor() {
15827
15836
  super(...arguments), this.type = "node";
15828
15837
  }
@@ -15853,14 +15862,14 @@ function Xt(n) {
15853
15862
  let c = t.to;
15854
15863
  if (l) {
15855
15864
  const d = a.search(/\S/), u = t.from + a.indexOf(l), f = u + l.length;
15856
- if (so(t.from, t.to, e.doc).filter((p) => p.mark.type.excluded.find((g) => g === n.type && g !== p.mark.type)).filter((p) => p.to > u).length)
15865
+ if (oo(t.from, t.to, e.doc).filter((p) => p.mark.type.excluded.find((g) => g === n.type && g !== p.mark.type)).filter((p) => p.to > u).length)
15857
15866
  return null;
15858
15867
  f < t.to && o.delete(f, t.to), u > t.from && o.delete(t.from + d, u), c = t.from + d + l.length, o.addMark(t.from + d, c, n.type.create(s || {})), o.removeStoredMark(n.type);
15859
15868
  }
15860
15869
  }
15861
15870
  });
15862
15871
  }
15863
- function Bl(n) {
15872
+ function Vl(n) {
15864
15873
  return Gd((e, t) => ({
15865
15874
  get() {
15866
15875
  return e(), n;
@@ -15876,7 +15885,7 @@ function Bl(n) {
15876
15885
  }
15877
15886
  var Y0 = class extends V0 {
15878
15887
  constructor(n = {}) {
15879
- return super(n), this.contentComponent = null, this.appContext = null, this.reactiveState = Bl(this.view.state), this.reactiveExtensionStorage = Bl(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
15888
+ return super(n), this.contentComponent = null, this.appContext = null, this.reactiveState = Vl(this.view.state), this.reactiveExtensionStorage = Vl(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
15880
15889
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
15881
15890
  }), Jd(this);
15882
15891
  }
@@ -15909,7 +15918,7 @@ var Y0 = class extends V0 {
15909
15918
  }
15910
15919
  },
15911
15920
  setup(n) {
15912
- const e = _(), t = ea();
15921
+ const e = _(), t = Ns();
15913
15922
  return Wd(() => {
15914
15923
  const r = n.editor;
15915
15924
  r && r.options.element && e.value && Re(() => {
@@ -15927,7 +15936,7 @@ var Y0 = class extends V0 {
15927
15936
  element: s
15928
15937
  }), r.createNodeViews();
15929
15938
  });
15930
- }), Ns(() => {
15939
+ }), Is(() => {
15931
15940
  const r = n.editor;
15932
15941
  r && (r.contentComponent = null, r.appContext = null);
15933
15942
  }), { rootEl: e };
@@ -15986,9 +15995,9 @@ ae({
15986
15995
  });
15987
15996
  var X0 = (n = {}) => {
15988
15997
  const e = Kd();
15989
- return _n(() => {
15998
+ return er(() => {
15990
15999
  e.value = new Y0(n);
15991
- }), Ns(() => {
16000
+ }), Is(() => {
15992
16001
  var t, r, i, s;
15993
16002
  const o = (r = (t = e.value) == null ? void 0 : t.view.dom) == null ? void 0 : r.parentNode, l = o?.cloneNode(!0);
15994
16003
  (i = o?.parentNode) == null || i.replaceChild(l, o), (s = e.value) == null || s.destroy();
@@ -16633,12 +16642,12 @@ ${t}
16633
16642
  ];
16634
16643
  }
16635
16644
  });
16636
- const v1 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", x1 = "ελ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", vs = "numeric", xs = "ascii", ws = "alpha", Pn = "asciinumeric", Nn = "alphanumeric", Cs = "domain", sd = "emoji", w1 = "scheme", C1 = "slashscheme", Ki = "whitespace";
16645
+ const v1 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", x1 = "ελ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", vs = "numeric", xs = "ascii", ws = "alpha", zn = "asciinumeric", Nn = "alphanumeric", Cs = "domain", sd = "emoji", w1 = "scheme", C1 = "slashscheme", Ki = "whitespace";
16637
16646
  function S1(n, e) {
16638
16647
  return n in e || (e[n] = []), e[n];
16639
16648
  }
16640
16649
  function Ft(n, e, t) {
16641
- e[vs] && (e[Pn] = !0, e[Nn] = !0), e[xs] && (e[Pn] = !0, e[ws] = !0), e[Pn] && (e[Nn] = !0), e[ws] && (e[Nn] = !0), e[Nn] && (e[Cs] = !0), e[sd] && (e[Cs] = !0);
16650
+ e[vs] && (e[zn] = !0, e[Nn] = !0), e[xs] && (e[zn] = !0, e[ws] = !0), e[zn] && (e[Nn] = !0), e[ws] && (e[Nn] = !0), e[Nn] && (e[Cs] = !0), e[sd] && (e[Cs] = !0);
16642
16651
  for (const r in e) {
16643
16652
  const i = S1(r, t);
16644
16653
  i.indexOf(n) < 0 && i.push(n);
@@ -16774,7 +16783,7 @@ Fe.prototype = {
16774
16783
  return i.j[n] = o, o;
16775
16784
  }
16776
16785
  };
16777
- const G = (n, e, t, r, i) => n.ta(e, t, r, i), fe = (n, e, t, r, i) => n.tr(e, t, r, i), Vl = (n, e, t, r, i) => n.ts(e, t, r, i), N = (n, e, t, r, i) => n.tt(e, t, r, i), dt = "WORD", Ss = "UWORD", od = "ASCIINUMERICAL", ld = "ALPHANUMERICAL", Xn = "LOCALHOST", Ms = "TLD", Ts = "UTLD", vr = "SCHEME", an = "SLASH_SCHEME", uo = "NUM", Es = "WS", fo = "NL", zn = "OPENBRACE", Bn = "CLOSEBRACE", Pr = "OPENBRACKET", zr = "CLOSEBRACKET", Br = "OPENPAREN", Vr = "CLOSEPAREN", Fr = "OPENANGLEBRACKET", Hr = "CLOSEANGLEBRACKET", jr = "FULLWIDTHLEFTPAREN", qr = "FULLWIDTHRIGHTPAREN", Ur = "LEFTCORNERBRACKET", Wr = "RIGHTCORNERBRACKET", Kr = "LEFTWHITECORNERBRACKET", Jr = "RIGHTWHITECORNERBRACKET", Gr = "FULLWIDTHLESSTHAN", Yr = "FULLWIDTHGREATERTHAN", Qr = "AMPERSAND", Xr = "APOSTROPHE", Zr = "ASTERISK", kt = "AT", _r = "BACKSLASH", ei = "BACKTICK", ti = "CARET", wt = "COLON", ho = "COMMA", ni = "DOLLAR", nt = "DOT", ri = "EQUALS", po = "EXCLAMATION", Ke = "HYPHEN", Vn = "PERCENT", ii = "PIPE", si = "PLUS", oi = "POUND", Fn = "QUERY", mo = "QUOTE", ad = "FULLWIDTHMIDDLEDOT", go = "SEMI", rt = "SLASH", Hn = "TILDE", li = "UNDERSCORE", cd = "EMOJI", ai = "SYM";
16786
+ const Y = (n, e, t, r, i) => n.ta(e, t, r, i), fe = (n, e, t, r, i) => n.tr(e, t, r, i), Fl = (n, e, t, r, i) => n.ts(e, t, r, i), N = (n, e, t, r, i) => n.tt(e, t, r, i), dt = "WORD", Ss = "UWORD", od = "ASCIINUMERICAL", ld = "ALPHANUMERICAL", Zn = "LOCALHOST", Ms = "TLD", Ts = "UTLD", vr = "SCHEME", an = "SLASH_SCHEME", fo = "NUM", Es = "WS", ho = "NL", Bn = "OPENBRACE", Vn = "CLOSEBRACE", Pr = "OPENBRACKET", zr = "CLOSEBRACKET", Br = "OPENPAREN", Vr = "CLOSEPAREN", Fr = "OPENANGLEBRACKET", Hr = "CLOSEANGLEBRACKET", jr = "FULLWIDTHLEFTPAREN", qr = "FULLWIDTHRIGHTPAREN", Ur = "LEFTCORNERBRACKET", Wr = "RIGHTCORNERBRACKET", Kr = "LEFTWHITECORNERBRACKET", Jr = "RIGHTWHITECORNERBRACKET", Gr = "FULLWIDTHLESSTHAN", Yr = "FULLWIDTHGREATERTHAN", Qr = "AMPERSAND", Xr = "APOSTROPHE", Zr = "ASTERISK", kt = "AT", _r = "BACKSLASH", ei = "BACKTICK", ti = "CARET", wt = "COLON", po = "COMMA", ni = "DOLLAR", nt = "DOT", ri = "EQUALS", mo = "EXCLAMATION", Ke = "HYPHEN", Fn = "PERCENT", ii = "PIPE", si = "PLUS", oi = "POUND", Hn = "QUERY", go = "QUOTE", ad = "FULLWIDTHMIDDLEDOT", yo = "SEMI", rt = "SLASH", jn = "TILDE", li = "UNDERSCORE", cd = "EMOJI", ai = "SYM";
16778
16787
  var dd = /* @__PURE__ */ Object.freeze({
16779
16788
  __proto__: null,
16780
16789
  ALPHANUMERICAL: ld,
@@ -16787,16 +16796,16 @@ var dd = /* @__PURE__ */ Object.freeze({
16787
16796
  BACKTICK: ei,
16788
16797
  CARET: ti,
16789
16798
  CLOSEANGLEBRACKET: Hr,
16790
- CLOSEBRACE: Bn,
16799
+ CLOSEBRACE: Vn,
16791
16800
  CLOSEBRACKET: zr,
16792
16801
  CLOSEPAREN: Vr,
16793
16802
  COLON: wt,
16794
- COMMA: ho,
16803
+ COMMA: po,
16795
16804
  DOLLAR: ni,
16796
16805
  DOT: nt,
16797
16806
  EMOJI: cd,
16798
16807
  EQUALS: ri,
16799
- EXCLAMATION: po,
16808
+ EXCLAMATION: mo,
16800
16809
  FULLWIDTHGREATERTHAN: Yr,
16801
16810
  FULLWIDTHLEFTPAREN: jr,
16802
16811
  FULLWIDTHLESSTHAN: Gr,
@@ -16805,27 +16814,27 @@ var dd = /* @__PURE__ */ Object.freeze({
16805
16814
  HYPHEN: Ke,
16806
16815
  LEFTCORNERBRACKET: Ur,
16807
16816
  LEFTWHITECORNERBRACKET: Kr,
16808
- LOCALHOST: Xn,
16809
- NL: fo,
16810
- NUM: uo,
16817
+ LOCALHOST: Zn,
16818
+ NL: ho,
16819
+ NUM: fo,
16811
16820
  OPENANGLEBRACKET: Fr,
16812
- OPENBRACE: zn,
16821
+ OPENBRACE: Bn,
16813
16822
  OPENBRACKET: Pr,
16814
16823
  OPENPAREN: Br,
16815
- PERCENT: Vn,
16824
+ PERCENT: Fn,
16816
16825
  PIPE: ii,
16817
16826
  PLUS: si,
16818
16827
  POUND: oi,
16819
- QUERY: Fn,
16820
- QUOTE: mo,
16828
+ QUERY: Hn,
16829
+ QUOTE: go,
16821
16830
  RIGHTCORNERBRACKET: Wr,
16822
16831
  RIGHTWHITECORNERBRACKET: Jr,
16823
16832
  SCHEME: vr,
16824
- SEMI: go,
16833
+ SEMI: yo,
16825
16834
  SLASH: rt,
16826
16835
  SLASH_SCHEME: an,
16827
16836
  SYM: ai,
16828
- TILDE: Hn,
16837
+ TILDE: jn,
16829
16838
  TLD: Ms,
16830
16839
  UNDERSCORE: li,
16831
16840
  UTLD: Ts,
@@ -16833,20 +16842,20 @@ var dd = /* @__PURE__ */ Object.freeze({
16833
16842
  WORD: dt,
16834
16843
  WS: Es
16835
16844
  });
16836
- const at = /[a-z]/, Tn = new RegExp("\\p{L}", "u"), Ji = new RegExp("\\p{Emoji}", "u"), ct = /\d/, Gi = /\s/, Fl = "\r", Yi = `
16845
+ const at = /[a-z]/, Tn = new RegExp("\\p{L}", "u"), Ji = new RegExp("\\p{Emoji}", "u"), ct = /\d/, Gi = /\s/, Hl = "\r", Yi = `
16837
16846
  `, T1 = "️", E1 = "‍", Qi = "";
16838
- let fr = null, hr = null;
16847
+ let hr = null, pr = null;
16839
16848
  function A1(n = []) {
16840
16849
  const e = {};
16841
16850
  Fe.groups = e;
16842
16851
  const t = new Fe();
16843
- fr == null && (fr = Hl(v1)), hr == null && (hr = Hl(x1)), N(t, "'", Xr), N(t, "{", zn), N(t, "}", Bn), N(t, "[", Pr), N(t, "]", zr), N(t, "(", Br), N(t, ")", Vr), N(t, "<", Fr), N(t, ">", Hr), N(t, "(", jr), N(t, ")", qr), N(t, "「", Ur), N(t, "」", Wr), N(t, "『", Kr), N(t, "』", Jr), N(t, "<", Gr), N(t, ">", Yr), N(t, "&", Qr), N(t, "*", Zr), N(t, "@", kt), N(t, "`", ei), N(t, "^", ti), N(t, ":", wt), N(t, ",", ho), N(t, "$", ni), N(t, ".", nt), N(t, "=", ri), N(t, "!", po), N(t, "-", Ke), N(t, "%", Vn), N(t, "|", ii), N(t, "+", si), N(t, "#", oi), N(t, "?", Fn), N(t, '"', mo), N(t, "/", rt), N(t, ";", go), N(t, "~", Hn), N(t, "_", li), N(t, "\\", _r), N(t, "・", ad);
16844
- const r = fe(t, ct, uo, {
16852
+ hr == null && (hr = jl(v1)), pr == null && (pr = jl(x1)), N(t, "'", Xr), N(t, "{", Bn), N(t, "}", Vn), N(t, "[", Pr), N(t, "]", zr), N(t, "(", Br), N(t, ")", Vr), N(t, "<", Fr), N(t, ">", Hr), N(t, "(", jr), N(t, ")", qr), N(t, "「", Ur), N(t, "」", Wr), N(t, "『", Kr), N(t, "』", Jr), N(t, "<", Gr), N(t, ">", Yr), N(t, "&", Qr), N(t, "*", Zr), N(t, "@", kt), N(t, "`", ei), N(t, "^", ti), N(t, ":", wt), N(t, ",", po), N(t, "$", ni), N(t, ".", nt), N(t, "=", ri), N(t, "!", mo), N(t, "-", Ke), N(t, "%", Fn), N(t, "|", ii), N(t, "+", si), N(t, "#", oi), N(t, "?", Hn), N(t, '"', go), N(t, "/", rt), N(t, ";", yo), N(t, "~", jn), N(t, "_", li), N(t, "\\", _r), N(t, "・", ad);
16853
+ const r = fe(t, ct, fo, {
16845
16854
  [vs]: !0
16846
16855
  });
16847
16856
  fe(r, ct, r);
16848
16857
  const i = fe(r, at, od, {
16849
- [Pn]: !0
16858
+ [zn]: !0
16850
16859
  }), s = fe(r, Tn, ld, {
16851
16860
  [Nn]: !0
16852
16861
  }), o = fe(t, at, dt, {
@@ -16857,14 +16866,14 @@ function A1(n = []) {
16857
16866
  [ws]: !0
16858
16867
  });
16859
16868
  fe(l, at), fe(l, ct, s), fe(l, Tn, l), fe(s, ct, s), fe(s, at), fe(s, Tn, s);
16860
- const a = N(t, Yi, fo, {
16869
+ const a = N(t, Yi, ho, {
16861
16870
  [Ki]: !0
16862
- }), c = N(t, Fl, Es, {
16871
+ }), c = N(t, Hl, Es, {
16863
16872
  [Ki]: !0
16864
16873
  }), d = fe(t, Gi, Es, {
16865
16874
  [Ki]: !0
16866
16875
  });
16867
- N(t, Qi, d), N(c, Yi, a), N(c, Qi, d), fe(c, Gi, d), N(d, Fl), N(d, Yi), fe(d, Gi, d), N(d, Qi, d);
16876
+ N(t, Qi, d), N(c, Yi, a), N(c, Qi, d), fe(c, Gi, d), N(d, Hl), N(d, Yi), fe(d, Gi, d), N(d, Qi, d);
16868
16877
  const u = fe(t, Ji, cd, {
16869
16878
  [sd]: !0
16870
16879
  });
@@ -16872,10 +16881,10 @@ function A1(n = []) {
16872
16881
  const f = N(u, E1);
16873
16882
  N(f, "#"), fe(f, Ji, u);
16874
16883
  const h = [[at, o], [ct, i]], p = [[at, null], [Tn, l], [ct, s]];
16875
- for (let m = 0; m < fr.length; m++)
16876
- gt(t, fr[m], Ms, dt, h);
16877
16884
  for (let m = 0; m < hr.length; m++)
16878
- gt(t, hr[m], Ts, Ss, p);
16885
+ gt(t, hr[m], Ms, dt, h);
16886
+ for (let m = 0; m < pr.length; m++)
16887
+ gt(t, pr[m], Ts, Ss, p);
16879
16888
  Ft(Ms, {
16880
16889
  tld: !0,
16881
16890
  ascii: !0
@@ -16895,9 +16904,9 @@ function A1(n = []) {
16895
16904
  } : {
16896
16905
  [C1]: !0
16897
16906
  };
16898
- g.indexOf("-") >= 0 ? S[Cs] = !0 : at.test(g) ? ct.test(g) ? S[Pn] = !0 : S[xs] = !0 : S[vs] = !0, Vl(t, g, g, S);
16907
+ g.indexOf("-") >= 0 ? S[Cs] = !0 : at.test(g) ? ct.test(g) ? S[zn] = !0 : S[xs] = !0 : S[vs] = !0, Fl(t, g, g, S);
16899
16908
  }
16900
- return Vl(t, "localhost", Xn, {
16909
+ return Fl(t, "localhost", Zn, {
16901
16910
  ascii: !0
16902
16911
  }), t.jd = new Fe(ai), {
16903
16912
  start: t,
@@ -16944,7 +16953,7 @@ function gt(n, e, t, r, i) {
16944
16953
  }
16945
16954
  return s = new Fe(t), s.jr = i.slice(), n.j[e[o - 1]] = s, s;
16946
16955
  }
16947
- function Hl(n) {
16956
+ function jl(n) {
16948
16957
  const e = [], t = [];
16949
16958
  let r = 0, i = "0123456789";
16950
16959
  for (; r < n.length; ) {
@@ -16961,11 +16970,11 @@ function Hl(n) {
16961
16970
  }
16962
16971
  return e;
16963
16972
  }
16964
- const Zn = {
16973
+ const _n = {
16965
16974
  defaultProtocol: "http",
16966
16975
  events: null,
16967
- format: jl,
16968
- formatHref: jl,
16976
+ format: ql,
16977
+ formatHref: ql,
16969
16978
  nl2br: !1,
16970
16979
  tagName: "a",
16971
16980
  target: null,
@@ -16977,16 +16986,16 @@ const Zn = {
16977
16986
  ignoreTags: [],
16978
16987
  render: null
16979
16988
  };
16980
- function yo(n, e = null) {
16981
- let t = Object.assign({}, Zn);
16982
- n && (t = Object.assign(t, n instanceof yo ? n.o : n));
16989
+ function bo(n, e = null) {
16990
+ let t = Object.assign({}, _n);
16991
+ n && (t = Object.assign(t, n instanceof bo ? n.o : n));
16983
16992
  const r = t.ignoreTags, i = [];
16984
16993
  for (let s = 0; s < r.length; s++)
16985
16994
  i.push(r[s].toUpperCase());
16986
16995
  this.o = t, e && (this.defaultRender = e), this.ignoreTags = i;
16987
16996
  }
16988
- yo.prototype = {
16989
- o: Zn,
16997
+ bo.prototype = {
16998
+ o: _n,
16990
16999
  /**
16991
17000
  * @type string[]
16992
17001
  */
@@ -17022,7 +17031,7 @@ yo.prototype = {
17022
17031
  get(n, e, t) {
17023
17032
  const r = e != null;
17024
17033
  let i = this.o[n];
17025
- return i && (typeof i == "object" ? (i = t.t in i ? i[t.t] : Zn[n], typeof i == "function" && r && (i = i(e, t))) : typeof i == "function" && r && (i = i(e, t.t, t)), i);
17034
+ return i && (typeof i == "object" ? (i = t.t in i ? i[t.t] : _n[n], typeof i == "function" && r && (i = i(e, t))) : typeof i == "function" && r && (i = i(e, t.t, t)), i);
17026
17035
  },
17027
17036
  /**
17028
17037
  * @template {keyof Opts} L
@@ -17047,7 +17056,7 @@ yo.prototype = {
17047
17056
  return (this.get("render", null, n) || this.defaultRender)(e, n.t, n);
17048
17057
  }
17049
17058
  };
17050
- function jl(n) {
17059
+ function ql(n) {
17051
17060
  return n;
17052
17061
  }
17053
17062
  function fd(n, e) {
@@ -17111,7 +17120,7 @@ fd.prototype = {
17111
17120
  @method toObject
17112
17121
  @param {string} [protocol] `'http'` by default
17113
17122
  */
17114
- toObject(n = Zn.defaultProtocol) {
17123
+ toObject(n = _n.defaultProtocol) {
17115
17124
  return {
17116
17125
  type: this.t,
17117
17126
  value: this.toString(),
@@ -17167,12 +17176,12 @@ function Mi(n, e) {
17167
17176
  t.prototype[r] = e[r];
17168
17177
  return t.t = n, t;
17169
17178
  }
17170
- const ql = Mi("email", {
17179
+ const Ul = Mi("email", {
17171
17180
  isLink: !0,
17172
17181
  toHref() {
17173
17182
  return "mailto:" + this.toString();
17174
17183
  }
17175
- }), Ul = Mi("text"), N1 = Mi("nl"), pr = Mi("url", {
17184
+ }), Wl = Mi("text"), N1 = Mi("nl"), mr = Mi("url", {
17176
17185
  isLink: !0,
17177
17186
  /**
17178
17187
  Lowercases relevant parts of the domain and adds the protocol if
@@ -17181,7 +17190,7 @@ const ql = Mi("email", {
17181
17190
  @param {string} [scheme] default scheme (e.g., 'https')
17182
17191
  @return {string} the full href
17183
17192
  */
17184
- toHref(n = Zn.defaultProtocol) {
17193
+ toHref(n = _n.defaultProtocol) {
17185
17194
  return this.hasProtocol() ? this.v : `${n}://${this.v}`;
17186
17195
  },
17187
17196
  /**
@@ -17190,42 +17199,42 @@ const ql = Mi("email", {
17190
17199
  */
17191
17200
  hasProtocol() {
17192
17201
  const n = this.tk;
17193
- return n.length >= 2 && n[0].t !== Xn && n[1].t === wt;
17202
+ return n.length >= 2 && n[0].t !== Zn && n[1].t === wt;
17194
17203
  }
17195
17204
  }), We = (n) => new Fe(n);
17196
17205
  function I1({
17197
17206
  groups: n
17198
17207
  }) {
17199
- const e = n.domain.concat([Qr, Zr, kt, _r, ei, ti, ni, ri, Ke, uo, Vn, ii, si, oi, rt, ai, Hn, li]), t = [Xr, wt, ho, nt, po, Vn, Fn, mo, go, Fr, Hr, zn, Bn, zr, Pr, Br, Vr, jr, qr, Ur, Wr, Kr, Jr, Gr, Yr], r = [Qr, Xr, Zr, _r, ei, ti, ni, ri, Ke, zn, Bn, Vn, ii, si, oi, Fn, rt, ai, Hn, li], i = We(), s = N(i, Hn);
17200
- G(s, r, s), G(s, n.domain, s);
17208
+ const e = n.domain.concat([Qr, Zr, kt, _r, ei, ti, ni, ri, Ke, fo, Fn, ii, si, oi, rt, ai, jn, li]), t = [Xr, wt, po, nt, mo, Fn, Hn, go, yo, Fr, Hr, Bn, Vn, zr, Pr, Br, Vr, jr, qr, Ur, Wr, Kr, Jr, Gr, Yr], r = [Qr, Xr, Zr, _r, ei, ti, ni, ri, Ke, Bn, Vn, Fn, ii, si, oi, Hn, rt, ai, jn, li], i = We(), s = N(i, jn);
17209
+ Y(s, r, s), Y(s, n.domain, s);
17201
17210
  const o = We(), l = We(), a = We();
17202
- G(i, n.domain, o), G(i, n.scheme, l), G(i, n.slashscheme, a), G(o, r, s), G(o, n.domain, o);
17211
+ Y(i, n.domain, o), Y(i, n.scheme, l), Y(i, n.slashscheme, a), Y(o, r, s), Y(o, n.domain, o);
17203
17212
  const c = N(o, kt);
17204
17213
  N(s, kt, c), N(l, kt, c), N(a, kt, c);
17205
17214
  const d = N(s, nt);
17206
- G(d, r, s), G(d, n.domain, s);
17215
+ Y(d, r, s), Y(d, n.domain, s);
17207
17216
  const u = We();
17208
- G(c, n.domain, u), G(u, n.domain, u);
17217
+ Y(c, n.domain, u), Y(u, n.domain, u);
17209
17218
  const f = N(u, nt);
17210
- G(f, n.domain, u);
17211
- const h = We(ql);
17212
- G(f, n.tld, h), G(f, n.utld, h), N(c, Xn, h);
17219
+ Y(f, n.domain, u);
17220
+ const h = We(Ul);
17221
+ Y(f, n.tld, h), Y(f, n.utld, h), N(c, Zn, h);
17213
17222
  const p = N(u, Ke);
17214
- N(p, Ke, p), G(p, n.domain, u), G(h, n.domain, u), N(h, nt, f), N(h, Ke, p);
17223
+ N(p, Ke, p), Y(p, n.domain, u), Y(h, n.domain, u), N(h, nt, f), N(h, Ke, p);
17215
17224
  const m = N(h, wt);
17216
- G(m, n.numeric, ql);
17225
+ Y(m, n.numeric, Ul);
17217
17226
  const g = N(o, Ke), y = N(o, nt);
17218
- N(g, Ke, g), G(g, n.domain, o), G(y, r, s), G(y, n.domain, o);
17219
- const S = We(pr);
17220
- G(y, n.tld, S), G(y, n.utld, S), G(S, n.domain, o), G(S, r, s), N(S, nt, y), N(S, Ke, g), N(S, kt, c);
17221
- const v = N(S, wt), b = We(pr);
17222
- G(v, n.numeric, b);
17223
- const k = We(pr), w = We();
17224
- G(k, e, k), G(k, t, w), G(w, e, k), G(w, t, w), N(S, rt, k), N(b, rt, k);
17227
+ N(g, Ke, g), Y(g, n.domain, o), Y(y, r, s), Y(y, n.domain, o);
17228
+ const S = We(mr);
17229
+ Y(y, n.tld, S), Y(y, n.utld, S), Y(S, n.domain, o), Y(S, r, s), N(S, nt, y), N(S, Ke, g), N(S, kt, c);
17230
+ const v = N(S, wt), b = We(mr);
17231
+ Y(v, n.numeric, b);
17232
+ const k = We(mr), w = We();
17233
+ Y(k, e, k), Y(k, t, w), Y(w, e, k), Y(w, t, w), N(S, rt, k), N(b, rt, k);
17225
17234
  const x = N(l, wt), M = N(a, wt), D = N(M, rt), H = N(D, rt);
17226
- G(l, n.domain, o), N(l, nt, y), N(l, Ke, g), G(a, n.domain, o), N(a, nt, y), N(a, Ke, g), G(x, n.domain, k), N(x, rt, k), N(x, Fn, k), G(H, n.domain, k), G(H, e, k), N(H, rt, k);
17235
+ Y(l, n.domain, o), N(l, nt, y), N(l, Ke, g), Y(a, n.domain, o), N(a, nt, y), N(a, Ke, g), Y(x, n.domain, k), N(x, rt, k), N(x, Hn, k), Y(H, n.domain, k), Y(H, e, k), N(H, rt, k);
17227
17236
  const te = [
17228
- [zn, Bn],
17237
+ [Bn, Vn],
17229
17238
  // {}
17230
17239
  [Pr, zr],
17231
17240
  // []
@@ -17245,12 +17254,12 @@ function I1({
17245
17254
  for (let Z = 0; Z < te.length; Z++) {
17246
17255
  const [ie, I] = te[Z], V = N(k, ie);
17247
17256
  N(w, ie, V), N(V, I, k);
17248
- const j = We(pr);
17249
- G(V, e, j);
17257
+ const j = We(mr);
17258
+ Y(V, e, j);
17250
17259
  const $e = We();
17251
- G(V, t), G(j, e, j), G(j, t, $e), G($e, e, j), G($e, t, $e), N(j, I, k), N($e, I, k);
17260
+ Y(V, t), Y(j, e, j), Y(j, t, $e), Y($e, e, j), Y($e, t, $e), N(j, I, k), N($e, I, k);
17252
17261
  }
17253
- return N(i, Xn, S), N(i, fo, N1), {
17262
+ return N(i, Zn, S), N(i, ho, N1), {
17254
17263
  start: i,
17255
17264
  tokens: dd
17256
17265
  };
@@ -17266,12 +17275,12 @@ function D1(n, e, t) {
17266
17275
  if (f < 0)
17267
17276
  i -= d, i < r && (o.push(t[i]), i++);
17268
17277
  else {
17269
- o.length > 0 && (s.push(Xi(Ul, e, o)), o = []), i -= f, d -= f;
17278
+ o.length > 0 && (s.push(Xi(Wl, e, o)), o = []), i -= f, d -= f;
17270
17279
  const h = u.t, p = t.slice(i - d, i);
17271
17280
  s.push(Xi(h, e, p));
17272
17281
  }
17273
17282
  }
17274
- return o.length > 0 && s.push(Xi(Ul, e, o)), s;
17283
+ return o.length > 0 && s.push(Xi(Wl, e, o)), s;
17275
17284
  }
17276
17285
  function Xi(n, e, t) {
17277
17286
  const r = t[0].s, i = t[t.length - 1].e, s = e.slice(r, i);
@@ -17289,7 +17298,7 @@ const $1 = typeof console < "u" && console && console.warn || (() => {
17289
17298
  function L1() {
17290
17299
  return Fe.groups = {}, ce.scanner = null, ce.parser = null, ce.tokenQueue = [], ce.pluginQueue = [], ce.customSchemes = [], ce.initialized = !1, ce;
17291
17300
  }
17292
- function Wl(n, e = !1) {
17301
+ function Kl(n, e = !1) {
17293
17302
  if (ce.initialized && $1(`linkifyjs: already initialized - will not register custom scheme "${n}" ${R1}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
17294
17303
  throw new Error(`linkifyjs: incorrect scheme format.
17295
17304
  1. Must only contain digits, lowercase ASCII letters or "-"
@@ -17311,24 +17320,24 @@ function P1() {
17311
17320
  });
17312
17321
  return ce.initialized = !0, ce;
17313
17322
  }
17314
- function bo(n) {
17323
+ function ko(n) {
17315
17324
  return ce.initialized || P1(), D1(ce.parser.start, n, ud(ce.scanner.start, n));
17316
17325
  }
17317
- bo.scan = ud;
17326
+ ko.scan = ud;
17318
17327
  function hd(n, e = null, t = null) {
17319
17328
  if (e && typeof e == "object") {
17320
17329
  if (t)
17321
17330
  throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
17322
17331
  t = e, e = null;
17323
17332
  }
17324
- const r = new yo(t), i = bo(n), s = [];
17333
+ const r = new bo(t), i = ko(n), s = [];
17325
17334
  for (let o = 0; o < i.length; o++) {
17326
17335
  const l = i[o];
17327
17336
  l.isLink && (!e || l.t === e) && r.check(l) && s.push(l.toFormattedObject(r));
17328
17337
  }
17329
17338
  return s;
17330
17339
  }
17331
- var ko = "[\0-   ᠎ -\u2029  ]", z1 = new RegExp(ko), B1 = new RegExp(`${ko}$`), V1 = new RegExp(ko, "g");
17340
+ var vo = "[\0-   ᠎ -\u2029  ]", z1 = new RegExp(vo), B1 = new RegExp(`${vo}$`), V1 = new RegExp(vo, "g");
17332
17341
  function F1(n) {
17333
17342
  return n.length === 1 ? n[0].isLink : n.length === 3 && n[1].isLink ? ["()", "[]"].includes(n[0].value + n[2].value) : !1;
17334
17343
  }
@@ -17363,7 +17372,7 @@ function H1(n) {
17363
17372
  const p = h[h.length - 1], m = u.pos + f.lastIndexOf(p);
17364
17373
  if (!p)
17365
17374
  return !1;
17366
- const g = bo(p).map((y) => y.toObject(n.defaultProtocol));
17375
+ const g = ko(p).map((y) => y.toObject(n.defaultProtocol));
17367
17376
  if (!F1(g))
17368
17377
  return !1;
17369
17378
  g.filter((y) => y.isLink).map((y) => ({
@@ -17371,7 +17380,7 @@ function H1(n) {
17371
17380
  from: m + y.start + 1,
17372
17381
  to: m + y.end + 1
17373
17382
  })).filter((y) => r.schema.marks.code ? !r.doc.rangeHasMark(y.from, y.to, r.schema.marks.code) : !0).filter((y) => n.validate(y.value)).filter((y) => n.shouldAutoLink(y.value)).forEach((y) => {
17374
- so(y.from, y.to, r.doc).some((S) => S.mark.type === n.type) || o.addMark(
17383
+ oo(y.from, y.to, r.doc).some((S) => S.mark.type === n.type) || o.addMark(
17375
17384
  y.from,
17376
17385
  y.to,
17377
17386
  n.type.create({
@@ -17458,10 +17467,10 @@ var U1 = en.create({
17458
17467
  onCreate() {
17459
17468
  this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((n) => {
17460
17469
  if (typeof n == "string") {
17461
- Wl(n);
17470
+ Kl(n);
17462
17471
  return;
17463
17472
  }
17464
- Wl(n.scheme, n.optionalSlashes);
17473
+ Kl(n.scheme, n.optionalSlashes);
17465
17474
  });
17466
17475
  },
17467
17476
  onDestroy() {
@@ -17627,7 +17636,7 @@ var U1 = en.create({
17627
17636
  }), W1 = Object.defineProperty, K1 = (n, e) => {
17628
17637
  for (var t in e)
17629
17638
  W1(n, t, { get: e[t], enumerable: !0 });
17630
- }, J1 = "listItem", Kl = "textStyle", Jl = /^\s*([-+*])\s$/, pd = Ue.create({
17639
+ }, J1 = "listItem", Jl = "textStyle", Gl = /^\s*([-+*])\s$/, pd = Ue.create({
17631
17640
  name: "bulletList",
17632
17641
  addOptions() {
17633
17642
  return {
@@ -17659,7 +17668,7 @@ var U1 = en.create({
17659
17668
  },
17660
17669
  addCommands() {
17661
17670
  return {
17662
- toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(J1, this.editor.getAttributes(Kl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
17671
+ toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(J1, this.editor.getAttributes(Jl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
17663
17672
  };
17664
17673
  },
17665
17674
  addKeyboardShortcuts() {
@@ -17669,15 +17678,15 @@ var U1 = en.create({
17669
17678
  },
17670
17679
  addInputRules() {
17671
17680
  let n = vn({
17672
- find: Jl,
17681
+ find: Gl,
17673
17682
  type: this.type
17674
17683
  });
17675
17684
  return (this.options.keepMarks || this.options.keepAttributes) && (n = vn({
17676
- find: Jl,
17685
+ find: Gl,
17677
17686
  type: this.type,
17678
17687
  keepMarks: this.options.keepMarks,
17679
17688
  keepAttributes: this.options.keepAttributes,
17680
- getAttributes: () => this.editor.getAttributes(Kl),
17689
+ getAttributes: () => this.editor.getAttributes(Jl),
17681
17690
  editor: this.editor
17682
17691
  })), [n];
17683
17692
  }
@@ -17735,7 +17744,7 @@ var U1 = en.create({
17735
17744
  content: t
17736
17745
  };
17737
17746
  },
17738
- renderMarkdown: (n, e, t) => co(
17747
+ renderMarkdown: (n, e, t) => uo(
17739
17748
  n,
17740
17749
  e,
17741
17750
  (r) => r.parentType === "bulletList" ? "- " : r.parentType === "orderedList" ? `${r.index + 1}. ` : "- ",
@@ -17750,8 +17759,8 @@ var U1 = en.create({
17750
17759
  }
17751
17760
  }), G1 = {};
17752
17761
  K1(G1, {
17753
- findListItemPos: () => rr,
17754
- getNextListDepth: () => vo,
17762
+ findListItemPos: () => ir,
17763
+ getNextListDepth: () => xo,
17755
17764
  handleBackspace: () => As,
17756
17765
  handleDelete: () => Os,
17757
17766
  hasListBefore: () => gd,
@@ -17761,14 +17770,14 @@ K1(G1, {
17761
17770
  nextListIsDeeper: () => kd,
17762
17771
  nextListIsHigher: () => vd
17763
17772
  });
17764
- var rr = (n, e) => {
17773
+ var ir = (n, e) => {
17765
17774
  const { $from: t } = e.selection, r = ge(n, e.schema);
17766
17775
  let i = null, s = t.depth, o = t.pos, l = null;
17767
17776
  for (; s > 0 && l === null; )
17768
17777
  i = t.node(s), i.type === r ? l = s : (s -= 1, o -= 1);
17769
17778
  return l === null ? null : { $pos: e.doc.resolve(o), depth: l };
17770
- }, vo = (n, e) => {
17771
- const t = rr(n, e);
17779
+ }, xo = (n, e) => {
17780
+ const t = ir(n, e);
17772
17781
  if (!t)
17773
17782
  return !1;
17774
17783
  const [, r] = Xy(e, n, t.$pos.pos + 4);
@@ -17806,16 +17815,16 @@ var rr = (n, e) => {
17806
17815
  }
17807
17816
  if (!It(n.state, e) || !t0(n.state))
17808
17817
  return !1;
17809
- const r = rr(e, n.state);
17818
+ const r = ir(e, n.state);
17810
17819
  if (!r)
17811
17820
  return !1;
17812
17821
  const s = n.state.doc.resolve(r.$pos.pos - 2).node(r.depth), o = bd(e, n.state, s);
17813
17822
  return yd(e, n.state) && !o ? n.commands.joinItemBackward() : n.chain().liftListItem(e).run();
17814
17823
  }, kd = (n, e) => {
17815
- const t = vo(n, e), r = rr(n, e);
17824
+ const t = xo(n, e), r = ir(n, e);
17816
17825
  return !r || !t ? !1 : t > r.depth;
17817
17826
  }, vd = (n, e) => {
17818
- const t = vo(n, e), r = rr(n, e);
17827
+ const t = xo(n, e), r = ir(n, e);
17819
17828
  return !r || !t ? !1 : t < r.depth;
17820
17829
  }, Os = (n, e) => {
17821
17830
  if (!It(n.state, e) || !e0(n.state, e))
@@ -17870,12 +17879,12 @@ var rr = (n, e) => {
17870
17879
  }
17871
17880
  };
17872
17881
  }
17873
- }), Gl = /^(\s*)(\d+)\.\s+(.*)$/, Q1 = /^\s/;
17882
+ }), Yl = /^(\s*)(\d+)\.\s+(.*)$/, Q1 = /^\s/;
17874
17883
  function X1(n) {
17875
17884
  const e = [];
17876
17885
  let t = 0, r = 0;
17877
17886
  for (; t < n.length; ) {
17878
- const i = n[t], s = i.match(Gl);
17887
+ const i = n[t], s = i.match(Yl);
17879
17888
  if (!s)
17880
17889
  break;
17881
17890
  const [, o, l, a] = s, c = o.length;
@@ -17883,7 +17892,7 @@ function X1(n) {
17883
17892
  const f = [i];
17884
17893
  for (; u < n.length; ) {
17885
17894
  const h = n[u];
17886
- if (h.match(Gl))
17895
+ if (h.match(Yl))
17887
17896
  break;
17888
17897
  if (h.trim() === "")
17889
17898
  f.push(h), d += `
@@ -17973,7 +17982,7 @@ function Z1(n, e) {
17973
17982
  };
17974
17983
  });
17975
17984
  }
17976
- var _1 = "listItem", Yl = "textStyle", Ql = /^(\d+)\.\s$/, Cd = Ue.create({
17985
+ var _1 = "listItem", Ql = "textStyle", Xl = /^(\d+)\.\s$/, Cd = Ue.create({
17977
17986
  name: "orderedList",
17978
17987
  addOptions() {
17979
17988
  return {
@@ -18055,7 +18064,7 @@ var _1 = "listItem", Yl = "textStyle", Ql = /^(\d+)\.\s$/, Cd = Ue.create({
18055
18064
  },
18056
18065
  addCommands() {
18057
18066
  return {
18058
- toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(_1, this.editor.getAttributes(Yl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
18067
+ toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(_1, this.editor.getAttributes(Ql)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
18059
18068
  };
18060
18069
  },
18061
18070
  addKeyboardShortcuts() {
@@ -18065,17 +18074,17 @@ var _1 = "listItem", Yl = "textStyle", Ql = /^(\d+)\.\s$/, Cd = Ue.create({
18065
18074
  },
18066
18075
  addInputRules() {
18067
18076
  let n = vn({
18068
- find: Ql,
18077
+ find: Xl,
18069
18078
  type: this.type,
18070
18079
  getAttributes: (e) => ({ start: +e[1] }),
18071
18080
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
18072
18081
  });
18073
18082
  return (this.options.keepMarks || this.options.keepAttributes) && (n = vn({
18074
- find: Ql,
18083
+ find: Xl,
18075
18084
  type: this.type,
18076
18085
  keepMarks: this.options.keepMarks,
18077
18086
  keepAttributes: this.options.keepAttributes,
18078
- getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(Yl) }),
18087
+ getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(Ql) }),
18079
18088
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1],
18080
18089
  editor: this.editor
18081
18090
  })), [n];
@@ -18148,7 +18157,7 @@ var _1 = "listItem", Yl = "textStyle", Ql = /^(\d+)\.\s$/, Cd = Ue.create({
18148
18157
  renderMarkdown: (n, e) => {
18149
18158
  var t;
18150
18159
  const i = `- [${(t = n.attrs) != null && t.checked ? "x" : " "}] `;
18151
- return co(n, e, i);
18160
+ return uo(n, e, i);
18152
18161
  },
18153
18162
  addKeyboardShortcuts() {
18154
18163
  const n = {
@@ -18601,7 +18610,7 @@ class he extends X {
18601
18610
  @internal
18602
18611
  */
18603
18612
  getBookmark() {
18604
- return new xo(this.anchor);
18613
+ return new wo(this.anchor);
18605
18614
  }
18606
18615
  /**
18607
18616
  @internal
@@ -18657,12 +18666,12 @@ class he extends X {
18657
18666
  he.prototype.visible = !1;
18658
18667
  he.findFrom = he.findGapCursorFrom;
18659
18668
  X.jsonID("gapcursor", he);
18660
- class xo {
18669
+ class wo {
18661
18670
  constructor(e) {
18662
18671
  this.pos = e;
18663
18672
  }
18664
18673
  map(e) {
18665
- return new xo(e.map(this.pos));
18674
+ return new wo(e.map(this.pos));
18666
18675
  }
18667
18676
  resolve(e) {
18668
18677
  let t = e.resolve(this.pos);
@@ -18720,12 +18729,12 @@ function hb() {
18720
18729
  });
18721
18730
  }
18722
18731
  const pb = Sc({
18723
- ArrowLeft: mr("horiz", -1),
18724
- ArrowRight: mr("horiz", 1),
18725
- ArrowUp: mr("vert", -1),
18726
- ArrowDown: mr("vert", 1)
18732
+ ArrowLeft: gr("horiz", -1),
18733
+ ArrowRight: gr("horiz", 1),
18734
+ ArrowUp: gr("vert", -1),
18735
+ ArrowDown: gr("vert", 1)
18727
18736
  });
18728
- function mr(n, e) {
18737
+ function gr(n, e) {
18729
18738
  const t = n == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
18730
18739
  return function(r, i, s) {
18731
18740
  let o = r.selection, l = e > 0 ? o.$to : o.$from, a = o.empty;
@@ -18907,7 +18916,7 @@ class Ze {
18907
18916
  return c > xb && (l = vb(l, c), o -= c), new Ze(l.append(s), o);
18908
18917
  }
18909
18918
  remapping(e, t) {
18910
- let r = new Wn();
18919
+ let r = new Kn();
18911
18920
  return this.items.forEach((i, s) => {
18912
18921
  let o = i.mirrorOffset != null && s - i.mirrorOffset >= e ? r.maps.length - i.mirrorOffset : void 0;
18913
18922
  r.appendMap(i.map, o);
@@ -19010,9 +19019,9 @@ function wb(n, e, t, r) {
19010
19019
  if (t.steps.length == 0)
19011
19020
  return n;
19012
19021
  if (o && o.getMeta(Wt))
19013
- return o.getMeta(Wt).redo ? new vt(n.done.addTransform(t, void 0, r, xr(e)), n.undone, Xl(t.mapping.maps), n.prevTime, n.prevComposition) : new vt(n.done, n.undone.addTransform(t, void 0, r, xr(e)), null, n.prevTime, n.prevComposition);
19022
+ return o.getMeta(Wt).redo ? new vt(n.done.addTransform(t, void 0, r, xr(e)), n.undone, Zl(t.mapping.maps), n.prevTime, n.prevComposition) : new vt(n.done, n.undone.addTransform(t, void 0, r, xr(e)), null, n.prevTime, n.prevComposition);
19014
19023
  if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
19015
- let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Cb(t, n.prevRanges)), c = o ? Zi(n.prevRanges, t.mapping) : Xl(t.mapping.maps);
19024
+ let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Cb(t, n.prevRanges)), c = o ? Zi(n.prevRanges, t.mapping) : Zl(t.mapping.maps);
19016
19025
  return new vt(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, xr(e)), Ze.empty, c, t.time, l ?? n.prevComposition);
19017
19026
  } else return (s = t.getMeta("rebased")) ? new vt(n.done.rebased(t, s), n.undone.rebased(t, s), Zi(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new vt(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), Zi(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
19018
19027
  }
@@ -19027,7 +19036,7 @@ function Cb(n, e) {
19027
19036
  r <= e[s + 1] && i >= e[s] && (t = !0);
19028
19037
  }), t;
19029
19038
  }
19030
- function Xl(n) {
19039
+ function Zl(n) {
19031
19040
  let e = [];
19032
19041
  for (let t = n.length - 1; t >= 0 && e.length == 0; t--)
19033
19042
  n[t].forEach((r, i, s, o) => e.push(s, o));
@@ -19050,11 +19059,11 @@ function Sb(n, e, t) {
19050
19059
  let o = s.selection.resolve(s.transform.doc), l = (t ? n.done : n.undone).addTransform(s.transform, e.selection.getBookmark(), i, r), a = new vt(t ? l : s.remaining, t ? s.remaining : l, null, 0, -1);
19051
19060
  return s.transform.setSelection(o).setMeta(Wt, { redo: t, historyState: a });
19052
19061
  }
19053
- let _i = !1, Zl = null;
19062
+ let _i = !1, _l = null;
19054
19063
  function xr(n) {
19055
19064
  let e = n.plugins;
19056
- if (Zl != e) {
19057
- _i = !1, Zl = e;
19065
+ if (_l != e) {
19066
+ _i = !1, _l = e;
19058
19067
  for (let t = 0; t < e.length; t++)
19059
19068
  if (e[t].spec.historyPreserveItems) {
19060
19069
  _i = !0;
@@ -19314,7 +19323,7 @@ pe.create({
19314
19323
  ];
19315
19324
  }
19316
19325
  });
19317
- function _l({ types: n, node: e }) {
19326
+ function ea({ types: n, node: e }) {
19318
19327
  return e && Array.isArray(n) && n.includes(e.type) || e?.type === n;
19319
19328
  }
19320
19329
  var Nb = pe.create({
@@ -19339,13 +19348,13 @@ var Nb = pe.create({
19339
19348
  state: {
19340
19349
  init: (i, s) => {
19341
19350
  const o = s.tr.doc.lastChild;
19342
- return !_l({ node: o, types: r });
19351
+ return !ea({ node: o, types: r });
19343
19352
  },
19344
19353
  apply: (i, s) => {
19345
19354
  if (!i.docChanged || i.getMeta("__uniqueIDTransaction"))
19346
19355
  return s;
19347
19356
  const o = i.doc.lastChild;
19348
- return !_l({ node: o, types: r });
19357
+ return !ea({ node: o, types: r });
19349
19358
  }
19350
19359
  }
19351
19360
  })
@@ -19457,7 +19466,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19457
19466
  v6f8994c7: k.maxHeight
19458
19467
  }));
19459
19468
  const t = n, r = e, i = xn(), s = L(() => !!i.default), o = _(null), l = _(typeof t.modelValue == "string" ? t.modelValue : "");
19460
- _n(() => {
19469
+ er(() => {
19461
19470
  (t.modelValue === void 0 || t.modelValue === "") && s.value && setTimeout(() => {
19462
19471
  if (o.value && b.value) {
19463
19472
  const k = o.value.innerHTML?.trim() || "";
@@ -19469,7 +19478,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19469
19478
  floatingStyle: u,
19470
19479
  updatePosition: f,
19471
19480
  cleanup: h
19472
- } = Rs({
19481
+ } = Ls({
19473
19482
  trigger: L(() => a.value !== null ? c.value[a.value] : void 0),
19474
19483
  floating: d,
19475
19484
  placement: "bottom-start",
@@ -19528,7 +19537,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19528
19537
  b.value && b.value.setEditable(!k && !t.readonly);
19529
19538
  }), ht(() => t.readonly, (k) => {
19530
19539
  b.value && b.value.setEditable(!t.disabled && !k);
19531
- }), Ns(() => {
19540
+ }), Is(() => {
19532
19541
  b.value && b.value.destroy(), h();
19533
19542
  }), (k, w) => (C(), E("div", {
19534
19543
  class: Q(["input-richtext-container", {
@@ -19813,7 +19822,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19813
19822
  }),
19814
19823
  $("div", qb, [
19815
19824
  (C(!0), E(be, null, Ge(n.customControls, (x, M) => (C(), E(be, { key: M }, [
19816
- x.action ? (C(), Y(re, {
19825
+ x.action ? (C(), G(re, {
19817
19826
  key: 0,
19818
19827
  color: "secondary",
19819
19828
  size: "sm",
@@ -19833,7 +19842,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19833
19842
  x.icon ? {
19834
19843
  name: "icon",
19835
19844
  fn: A(() => [
19836
- (C(), Y(gr(x.icon), { size: 16 }))
19845
+ (C(), G(In(x.icon), { size: 16 }))
19837
19846
  ]),
19838
19847
  key: "0"
19839
19848
  } : void 0
@@ -19850,7 +19859,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19850
19859
  class: Q({ "input-richtext-dropdown-open": a.value === M })
19851
19860
  }, je({
19852
19861
  "trailing-icon": A(() => [
19853
- z(R(Ds), {
19862
+ z(R($s), {
19854
19863
  size: 14,
19855
19864
  class: "input-richtext-dropdown-arrow"
19856
19865
  })
@@ -19863,7 +19872,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19863
19872
  x.icon ? {
19864
19873
  name: "leading-icon",
19865
19874
  fn: A(() => [
19866
- (C(), Y(gr(x.icon), { size: 16 }))
19875
+ (C(), G(In(x.icon), { size: 16 }))
19867
19876
  ]),
19868
19877
  key: "0"
19869
19878
  } : void 0
@@ -19873,7 +19882,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19873
19882
  ])
19874
19883
  ], 64)) : W("", !0)
19875
19884
  ]),
19876
- (C(), Y(di, { to: "body" }, [
19885
+ (C(), G(di, { to: "body" }, [
19877
19886
  a.value !== null && n.customControls?.[a.value]?.list ? (C(), E("div", {
19878
19887
  key: 0,
19879
19888
  ref_key: "dropdownRef",
@@ -19887,7 +19896,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
19887
19896
  onClick: (D) => S(x),
19888
19897
  type: "button"
19889
19898
  }, [
19890
- x.icon ? (C(), Y(gr(x.icon), {
19899
+ x.icon ? (C(), G(In(x.icon), {
19891
19900
  key: 0,
19892
19901
  size: 16,
19893
19902
  class: "input-richtext-dropdown-item-icon"
@@ -20058,7 +20067,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
20058
20067
  onBlur: y,
20059
20068
  onPaste: m
20060
20069
  }, null, 42, ek),
20061
- u(b) && c.value ? (C(), Y(Lt, In({
20070
+ u(b) && c.value ? (C(), G(Lt, Dn({
20062
20071
  key: 0,
20063
20072
  ref_for: !0
20064
20073
  }, d.value, { class: "pincode-custom-divider" }), null, 16)) : u(b) ? (C(), E("span", tk, ee(a.value), 1)) : W("", !0)
@@ -20181,7 +20190,7 @@ const ok = ["for"], lk = {
20181
20190
  t.required ? (C(), E("span", lk, "*")) : W("", !0)
20182
20191
  ], 8, ok)) : W("", !0),
20183
20192
  $("div", null, [
20184
- c.value ? (C(), Y(yf, {
20193
+ c.value ? (C(), G(yf, {
20185
20194
  key: 0,
20186
20195
  "model-value": o.value,
20187
20196
  type: n.type,
@@ -20218,7 +20227,7 @@ const ok = ["for"], lk = {
20218
20227
  T(y.$slots, "trailing", {}, void 0, !0)
20219
20228
  ]),
20220
20229
  _: 3
20221
- }, 8, ["model-value", "type", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "textarea" ? (C(), Y(wf, {
20230
+ }, 8, ["model-value", "type", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "textarea" ? (C(), G(wf, {
20222
20231
  key: 1,
20223
20232
  "model-value": o.value,
20224
20233
  placeholder: n.placeholder,
@@ -20263,7 +20272,7 @@ const ok = ["for"], lk = {
20263
20272
  ]),
20264
20273
  key: "0"
20265
20274
  } : void 0
20266
- ]), 1032, ["model-value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck", "resizable", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "select" ? (C(), Y(Bf, {
20275
+ ]), 1032, ["model-value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck", "resizable", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "select" ? (C(), G(Bf, {
20267
20276
  key: 2,
20268
20277
  "model-value": o.value,
20269
20278
  options: t.options,
@@ -20298,7 +20307,7 @@ const ok = ["for"], lk = {
20298
20307
  T(y.$slots, "trailing", {}, void 0, !0)
20299
20308
  ]),
20300
20309
  _: 3
20301
- }, 8, ["model-value", "options", "placeholder", "disabled", "multiple", "searchable", "allow-insert", "max-dropdown-height", "no-options-text", "search-placeholder", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "file" ? (C(), Y(ih, {
20310
+ }, 8, ["model-value", "options", "placeholder", "disabled", "multiple", "searchable", "allow-insert", "max-dropdown-height", "no-options-text", "search-placeholder", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "file" ? (C(), G(ih, {
20302
20311
  key: 3,
20303
20312
  "model-value": o.value,
20304
20313
  accept: t.accept,
@@ -20334,7 +20343,7 @@ const ok = ["for"], lk = {
20334
20343
  T(y.$slots, "trailing", {}, void 0, !0)
20335
20344
  ]),
20336
20345
  _: 3
20337
- }, 8, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "preview", "disabled", "required", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "date" ? (C(), Y(Ph, {
20346
+ }, 8, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "preview", "disabled", "required", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : n.type === "date" ? (C(), G(Ph, {
20338
20347
  key: 4,
20339
20348
  "model-value": o.value,
20340
20349
  placeholder: n.placeholder,
@@ -20350,7 +20359,7 @@ const ok = ["for"], lk = {
20350
20359
  "onUpdate:modelValue": d,
20351
20360
  onBlur: u,
20352
20361
  onFocus: f
20353
- }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size", "tabindex"])) : n.type === "time" ? (C(), Y(zh, {
20362
+ }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size", "tabindex"])) : n.type === "time" ? (C(), G(zh, {
20354
20363
  key: 5,
20355
20364
  "model-value": o.value,
20356
20365
  placeholder: n.placeholder,
@@ -20364,7 +20373,7 @@ const ok = ["for"], lk = {
20364
20373
  "onUpdate:modelValue": d,
20365
20374
  onBlur: u,
20366
20375
  onFocus: f
20367
- }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "input-id", "error", "size", "tabindex"])) : n.type === "datetime" ? (C(), Y(Bh, {
20376
+ }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "input-id", "error", "size", "tabindex"])) : n.type === "datetime" ? (C(), G(Bh, {
20368
20377
  key: 6,
20369
20378
  "model-value": o.value,
20370
20379
  placeholder: n.placeholder,
@@ -20380,7 +20389,7 @@ const ok = ["for"], lk = {
20380
20389
  "onUpdate:modelValue": d,
20381
20390
  onBlur: u,
20382
20391
  onFocus: f
20383
- }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size", "tabindex"])) : n.type === "richtext" ? (C(), Y(Xb, {
20392
+ }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size", "tabindex"])) : n.type === "richtext" ? (C(), G(Xb, {
20384
20393
  key: 7,
20385
20394
  "model-value": o.value,
20386
20395
  placeholder: n.placeholder,
@@ -20403,7 +20412,7 @@ const ok = ["for"], lk = {
20403
20412
  ]),
20404
20413
  key: "0"
20405
20414
  } : void 0
20406
- ]), 1032, ["model-value", "placeholder", "disabled", "readonly", "input-id", "error", "min-height", "max-height", "custom-controls", "tabindex"])) : n.type === "pincode" ? (C(), Y(ik, {
20415
+ ]), 1032, ["model-value", "placeholder", "disabled", "readonly", "input-id", "error", "min-height", "max-height", "custom-controls", "tabindex"])) : n.type === "pincode" ? (C(), G(ik, {
20407
20416
  key: 8,
20408
20417
  "model-value": o.value,
20409
20418
  "max-length": t.maxLength || 6,
@@ -20456,7 +20465,7 @@ const ok = ["for"], lk = {
20456
20465
  t.error && t.error !== !0 ? (C(), E("p", ck, ee(typeof t.error == "string" ? t.error : t.error?.message || String(t.error)), 1)) : t.helpText ? (C(), E("p", dk, ee(t.helpText), 1)) : W("", !0)
20457
20466
  ], 2));
20458
20467
  }
20459
- }), wo = /* @__PURE__ */ Ae(uk, [["__scopeId", "data-v-e216292d"]]), fk = ["disabled", "aria-disabled"], hk = ["href", "target", "rel", "aria-disabled"], pk = /* @__PURE__ */ ae({
20468
+ }), Co = /* @__PURE__ */ Ae(uk, [["__scopeId", "data-v-e216292d"]]), fk = ["disabled", "aria-disabled"], hk = ["href", "target", "rel", "aria-disabled"], pk = /* @__PURE__ */ ae({
20460
20469
  __name: "UiLink",
20461
20470
  props: {
20462
20471
  href: {},
@@ -20551,10 +20560,10 @@ const ok = ["for"], lk = {
20551
20560
  StrandsUiAlert: ta,
20552
20561
  StrandsUiButton: re,
20553
20562
  StrandsUiCard: na,
20554
- StrandsUiInput: wo,
20563
+ StrandsUiInput: Co,
20555
20564
  StrandsUiLink: Id,
20556
- StrandsUiTabs: Ls,
20557
- StrandsUiLoader: Is
20565
+ StrandsUiTabs: Ps,
20566
+ StrandsUiLoader: Ds
20558
20567
  }, gk = {
20559
20568
  install(n, e = {}) {
20560
20569
  const { prefix: t = "" } = e;
@@ -20568,31 +20577,31 @@ const ok = ["for"], lk = {
20568
20577
  StrandsUiAlert: ta,
20569
20578
  StrandsUiButton: re,
20570
20579
  StrandsUiCard: na,
20571
- StrandsUiInput: wo,
20580
+ StrandsUiInput: Co,
20572
20581
  StrandsUiLink: Id,
20573
- StrandsUiLoader: Is,
20574
- StrandsUiTabs: Ls,
20582
+ StrandsUiLoader: Ds,
20583
+ StrandsUiTabs: Ps,
20575
20584
  default: gk
20576
20585
  }, Symbol.toStringTag, { value: "Module" }));
20577
20586
  export {
20578
- Ds as C,
20587
+ $s as C,
20579
20588
  rf as M,
20580
20589
  re as S,
20581
- jn as U,
20590
+ qn as U,
20582
20591
  Ae as _,
20583
- To as a,
20584
- Eo as b,
20585
- Ao as c,
20592
+ Eo as a,
20593
+ Ao as b,
20594
+ Oo as c,
20586
20595
  oe as d,
20587
20596
  na as e,
20588
20597
  wu as f,
20589
20598
  Lt as g,
20590
- wo as h,
20591
- Is as i,
20592
- Ls as j,
20599
+ Co as h,
20600
+ Ds as i,
20601
+ Ps as j,
20593
20602
  Id as k,
20594
20603
  ta as l,
20595
20604
  gk as m,
20596
20605
  kk as n,
20597
- Rs as u
20606
+ Ls as u
20598
20607
  };