@dcrackel/hematournamentui 1.0.444 → 1.0.446

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,7 +1,7 @@
1
1
  var nC = Object.defineProperty;
2
2
  var rC = (n, e, t) => e in n ? nC(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var ye = (n, e, t) => rC(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { openBlock as f, createElementBlock as m, normalizeClass as ne, withDirectives as No, createElementVNode as h, vModelText as Sd, Fragment as fe, renderList as be, withKeys as kd, withModifiers as Ct, toDisplayString as Xe, reactive as si, computed as de, resolveComponent as y, createBlock as se, createCommentVNode as x, withCtx as Pe, createVNode as p, normalizeStyle as Lt, Transition as yn, renderSlot as Qe, ref as Ce, defineComponent as it, useSlots as fo, toRef as Hi, onMounted as Et, nextTick as an, onUnmounted as As, watch as nn, mergeProps as Bt, unref as P, isRef as lc, createSlots as Nt, normalizeProps as Dt, guardReactiveProps as tn, resolveDynamicComponent as rA, Teleport as oC, h as ai, render as cc, useAttrs as iC, createTextVNode as gr, onBeforeUpdate as AC, vShow as kA, getCurrentScope as sC, onScopeDispose as aC, createStaticVNode as oA, onBeforeUnmount as ss, getCurrentInstance as lC, watchEffect as cC, shallowRef as uC, markRaw as dC, customRef as gC } from "vue";
4
+ import { openBlock as f, createElementBlock as m, normalizeClass as ne, withDirectives as No, createElementVNode as h, vModelText as Sd, Fragment as fe, renderList as be, withKeys as kd, withModifiers as Ct, toDisplayString as Xe, reactive as si, computed as de, resolveComponent as y, createBlock as se, createCommentVNode as x, withCtx as Pe, createVNode as p, normalizeStyle as Lt, Transition as yn, renderSlot as Qe, ref as Ce, defineComponent as it, useSlots as fo, toRef as Hi, onMounted as Et, nextTick as an, onUnmounted as As, watch as nn, mergeProps as Bt, unref as P, isRef as lc, createSlots as Nt, normalizeProps as Dt, guardReactiveProps as tn, resolveDynamicComponent as rA, Teleport as oC, h as ai, render as cc, useAttrs as iC, createTextVNode as Fn, onBeforeUpdate as AC, vShow as kA, getCurrentScope as sC, onScopeDispose as aC, createStaticVNode as oA, onBeforeUnmount as ss, getCurrentInstance as lC, watchEffect as cC, shallowRef as uC, markRaw as dC, customRef as gC } from "vue";
5
5
  const ie = (n, e) => {
6
6
  const t = n.__vccOpts || n;
7
7
  for (const [r, o] of e)
@@ -881,7 +881,7 @@ function XC(n, e, t, r, o, i) {
881
881
  class: ne(["flex flex-col shadow-lg mt-10 z-20 rounded-b-xl absolute bg-neutral border border-dropdownSelect overflow-y-auto max-h-44", t.dropDownWidth])
882
882
  }, [
883
883
  (f(!0), m(fe, null, be(o.localItems, (l) => (f(), m("a", {
884
- key: l.id,
884
+ key: l.link,
885
885
  onClick: (c) => i.handleClick(l),
886
886
  class: "hover:bg-dropdownSelect py-1 px-2 border-b border-l border-r border-dropdownSelect"
887
887
  }, [
@@ -1278,13 +1278,13 @@ let MI = {};
1278
1278
  function mo() {
1279
1279
  return MI;
1280
1280
  }
1281
- function Fn(n, e) {
1281
+ function Ln(n, e) {
1282
1282
  var a, l, c, u;
1283
1283
  const t = mo(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (a = e == null ? void 0 : e.locale) == null ? void 0 : a.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((u = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, o = Me(n), i = o.getDay(), A = (i < r ? 7 : 0) + i - r;
1284
1284
  return o.setDate(o.getDate() - A), o.setHours(0, 0, 0, 0), o;
1285
1285
  }
1286
1286
  function Jo(n) {
1287
- return Fn(n, { weekStartsOn: 1 });
1287
+ return Ln(n, { weekStartsOn: 1 });
1288
1288
  }
1289
1289
  function Rd(n) {
1290
1290
  const e = Me(n), t = e.getFullYear(), r = Ge(n, 0);
@@ -1843,18 +1843,18 @@ function ul(n, e) {
1843
1843
  var u, d, g, C;
1844
1844
  const t = Me(n), r = t.getFullYear(), o = mo(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((C = (g = o.locale) == null ? void 0 : g.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, A = Ge(n, 0);
1845
1845
  A.setFullYear(r + 1, 0, i), A.setHours(0, 0, 0, 0);
1846
- const a = Fn(A, e), l = Ge(n, 0);
1846
+ const a = Ln(A, e), l = Ge(n, 0);
1847
1847
  l.setFullYear(r, 0, i), l.setHours(0, 0, 0, 0);
1848
- const c = Fn(l, e);
1848
+ const c = Ln(l, e);
1849
1849
  return t.getTime() >= a.getTime() ? r + 1 : t.getTime() >= c.getTime() ? r : r - 1;
1850
1850
  }
1851
1851
  function ff(n, e) {
1852
1852
  var a, l, c, u;
1853
1853
  const t = mo(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((l = (a = e == null ? void 0 : e.locale) == null ? void 0 : a.options) == null ? void 0 : l.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((u = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, o = ul(n, e), i = Ge(n, 0);
1854
- return i.setFullYear(o, 0, r), i.setHours(0, 0, 0, 0), Fn(i, e);
1854
+ return i.setFullYear(o, 0, r), i.setHours(0, 0, 0, 0), Ln(i, e);
1855
1855
  }
1856
1856
  function dl(n, e) {
1857
- const t = Me(n), r = +Fn(t, e) - +ff(t, e);
1857
+ const t = Me(n), r = +Ln(t, e) - +ff(t, e);
1858
1858
  return Math.round(r / Od) + 1;
1859
1859
  }
1860
1860
  function We(n, e) {
@@ -2487,7 +2487,7 @@ function vf(n, e, t) {
2487
2487
  return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2488
2488
  }
2489
2489
  const wf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, yf = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, bf = /^'([^]*?)'?$/, xf = /''/g, Df = /[a-zA-Z]/;
2490
- function Zn(n, e, t) {
2490
+ function _n(n, e, t) {
2491
2491
  var u, d, g, C, I, B, Q, b;
2492
2492
  const r = mo(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Nd, i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((C = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, A = (t == null ? void 0 : t.weekStartsOn) ?? ((B = (I = t == null ? void 0 : t.locale) == null ? void 0 : I.options) == null ? void 0 : B.weekStartsOn) ?? r.weekStartsOn ?? ((b = (Q = r.locale) == null ? void 0 : Q.options) == null ? void 0 : b.weekStartsOn) ?? 0, a = Me(n);
2493
2493
  if (!Si(a))
@@ -2694,7 +2694,7 @@ const ut = {
2694
2694
  // 0 to 999, -0 to -999
2695
2695
  fourDigitsSigned: /^-?\d{1,4}/
2696
2696
  // 0 to 9999, -0 to -9999
2697
- }, Gn = {
2697
+ }, Jn = {
2698
2698
  basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
2699
2699
  basic: /^([+-])(\d{2})(\d{2})|Z/,
2700
2700
  basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
@@ -2714,7 +2714,7 @@ function ot(n, e) {
2714
2714
  rest: e.slice(t[0].length)
2715
2715
  } : null;
2716
2716
  }
2717
- function Jn(n, e) {
2717
+ function Vn(n, e) {
2718
2718
  const t = e.match(n);
2719
2719
  if (!t)
2720
2720
  return null;
@@ -2885,10 +2885,10 @@ class Nf extends Ve {
2885
2885
  l,
2886
2886
  0,
2887
2887
  i.firstWeekContainsDate
2888
- ), t.setHours(0, 0, 0, 0), Fn(t, i);
2888
+ ), t.setHours(0, 0, 0, 0), Ln(t, i);
2889
2889
  }
2890
2890
  const a = !("era" in r) || r.era === 1 ? o.year : 1 - o.year;
2891
- return t.setFullYear(a, 0, i.firstWeekContainsDate), t.setHours(0, 0, 0, 0), Fn(t, i);
2891
+ return t.setFullYear(a, 0, i.firstWeekContainsDate), t.setHours(0, 0, 0, 0), Ln(t, i);
2892
2892
  }
2893
2893
  }
2894
2894
  class Yf extends Ve {
@@ -3220,7 +3220,7 @@ class Vf extends Ve {
3220
3220
  return r >= 1 && r <= 53;
3221
3221
  }
3222
3222
  set(t, r, o, i) {
3223
- return Fn(Jf(t, o, i), i);
3223
+ return Ln(Jf(t, o, i), i);
3224
3224
  }
3225
3225
  }
3226
3226
  function Wf(n, e) {
@@ -3911,25 +3911,25 @@ class Cm extends Ve {
3911
3911
  parse(t, r) {
3912
3912
  switch (r) {
3913
3913
  case "X":
3914
- return Jn(
3915
- Gn.basicOptionalMinutes,
3914
+ return Vn(
3915
+ Jn.basicOptionalMinutes,
3916
3916
  t
3917
3917
  );
3918
3918
  case "XX":
3919
- return Jn(Gn.basic, t);
3919
+ return Vn(Jn.basic, t);
3920
3920
  case "XXXX":
3921
- return Jn(
3922
- Gn.basicOptionalSeconds,
3921
+ return Vn(
3922
+ Jn.basicOptionalSeconds,
3923
3923
  t
3924
3924
  );
3925
3925
  case "XXXXX":
3926
- return Jn(
3927
- Gn.extendedOptionalSeconds,
3926
+ return Vn(
3927
+ Jn.extendedOptionalSeconds,
3928
3928
  t
3929
3929
  );
3930
3930
  case "XXX":
3931
3931
  default:
3932
- return Jn(Gn.extended, t);
3932
+ return Vn(Jn.extended, t);
3933
3933
  }
3934
3934
  }
3935
3935
  set(t, r, o) {
@@ -3948,25 +3948,25 @@ class Im extends Ve {
3948
3948
  parse(t, r) {
3949
3949
  switch (r) {
3950
3950
  case "x":
3951
- return Jn(
3952
- Gn.basicOptionalMinutes,
3951
+ return Vn(
3952
+ Jn.basicOptionalMinutes,
3953
3953
  t
3954
3954
  );
3955
3955
  case "xx":
3956
- return Jn(Gn.basic, t);
3956
+ return Vn(Jn.basic, t);
3957
3957
  case "xxxx":
3958
- return Jn(
3959
- Gn.basicOptionalSeconds,
3958
+ return Vn(
3959
+ Jn.basicOptionalSeconds,
3960
3960
  t
3961
3961
  );
3962
3962
  case "xxxxx":
3963
- return Jn(
3964
- Gn.extendedOptionalSeconds,
3963
+ return Vn(
3964
+ Jn.extendedOptionalSeconds,
3965
3965
  t
3966
3966
  );
3967
3967
  case "xxx":
3968
3968
  default:
3969
- return Jn(Gn.extended, t);
3969
+ return Vn(Jn.extended, t);
3970
3970
  }
3971
3971
  }
3972
3972
  set(t, r, o) {
@@ -4143,7 +4143,7 @@ function Xd(n, e) {
4143
4143
  const t = Me(n);
4144
4144
  return t.setSeconds(e), t;
4145
4145
  }
4146
- function Wn(n, e) {
4146
+ function Xn(n, e) {
4147
4147
  const t = Me(n);
4148
4148
  return isNaN(+t) ? Ge(n, NaN) : (t.setFullYear(e), t);
4149
4149
  }
@@ -4348,7 +4348,7 @@ function Ec(n) {
4348
4348
  return (e) => new Intl.DateTimeFormat(n, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${e}T00:00:00+00:00`)).slice(0, 2);
4349
4349
  }
4350
4350
  function Pm(n) {
4351
- return (e) => Zn(rn(/* @__PURE__ */ new Date(`2017-01-0${e}T00:00:00+00:00`), "UTC"), "EEEEEE", { locale: n });
4351
+ return (e) => _n(rn(/* @__PURE__ */ new Date(`2017-01-0${e}T00:00:00+00:00`), "UTC"), "EEEEEE", { locale: n });
4352
4352
  }
4353
4353
  const zm = (n, e, t) => {
4354
4354
  const r = [1, 2, 3, 4, 5, 6, 7];
@@ -4377,7 +4377,7 @@ const zm = (n, e, t) => {
4377
4377
  try {
4378
4378
  const i = t === "long" ? "LLLL" : "LLL";
4379
4379
  return r.map((A, a) => {
4380
- const l = Zn(rn(A, "UTC"), i, { locale: n });
4380
+ const l = _n(rn(A, "UTC"), i, { locale: n });
4381
4381
  return {
4382
4382
  text: l.charAt(0).toUpperCase() + l.substring(1),
4383
4383
  value: a
@@ -4449,7 +4449,7 @@ function Ym(n, e) {
4449
4449
  if (r >= 0 && (e ? r - 1 >= 0 : r + 1 <= t.length))
4450
4450
  return t[r + (e ? -1 : 1)];
4451
4451
  }
4452
- const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), ng = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), vl = (n) => Zn(n, "dd-MM-yyyy"), Ls = (n) => Array.isArray(n), NA = (n, e) => e.get(vl(n)), qm = (n, e) => n ? e ? e instanceof Map ? !!NA(n, e) : e(ce(n)) : !1 : !0, Ut = (n, e, t = !1, r) => {
4452
+ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), ng = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), vl = (n) => _n(n, "dd-MM-yyyy"), Ls = (n) => Array.isArray(n), NA = (n, e) => e.get(vl(n)), qm = (n, e) => n ? e ? e instanceof Map ? !!NA(n, e) : e(ce(n)) : !1 : !0, Ut = (n, e, t = !1, r) => {
4453
4453
  if (n.key === et.enter || n.key === et.space)
4454
4454
  return t && n.preventDefault(), e();
4455
4455
  if (r) return r(n);
@@ -4527,8 +4527,8 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4527
4527
  }, Um = (n) => {
4528
4528
  const e = Pn(n, 1);
4529
4529
  return { month: qe(e), year: Fe(e) };
4530
- }, lr = (n, e) => {
4531
- const t = Fn(n, { weekStartsOn: +e }), r = Hd(n, { weekStartsOn: +e });
4530
+ }, cr = (n, e) => {
4531
+ const t = Ln(n, { weekStartsOn: +e }), r = Hd(n, { weekStartsOn: +e });
4532
4532
  return [t, r];
4533
4533
  }, Ag = (n, e) => {
4534
4534
  const t = {
@@ -4537,9 +4537,9 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4537
4537
  seconds: e ? Vo(ce()) : 0
4538
4538
  };
4539
4539
  return Object.assign(t, n);
4540
- }, vr = (n, e, t) => [Ze(ce(n), { date: 1 }), Ze(ce(), { month: e, year: t, date: 1 })], cr = (n, e, t) => {
4540
+ }, vr = (n, e, t) => [Ze(ce(n), { date: 1 }), Ze(ce(), { month: e, year: t, date: 1 })], ur = (n, e, t) => {
4541
4541
  let r = n ? ce(n) : ce();
4542
- return (e || e === 0) && (r = Vd(r, e)), t && (r = Wn(r, t)), r;
4542
+ return (e || e === 0) && (r = Vd(r, e)), t && (r = Xn(r, t)), r;
4543
4543
  }, sg = (n, e, t, r, o) => {
4544
4544
  if (!r || o && !e || !o && !t) return !1;
4545
4545
  const i = o ? Pn(n, 1) : Xo(n, 1), A = [qe(i), Fe(i)];
@@ -4547,7 +4547,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4547
4547
  }, Gm = (n, e, t) => At(...vr(t, n, e)) || Ue(...vr(t, n, e)), Jm = (n, e, t) => ct(...vr(t, n, e)) || Ue(...vr(t, n, e)), ag = (n, e, t, r, o, i, A) => {
4548
4548
  if (typeof e == "function" && !A) return e(n);
4549
4549
  const a = t ? { locale: t } : void 0;
4550
- return Array.isArray(n) ? `${Zn(n[0], i, a)}${o && !n[1] ? "" : r}${n[1] ? Zn(n[1], i, a) : ""}` : Zn(n, i, a);
4550
+ return Array.isArray(n) ? `${_n(n[0], i, a)}${o && !n[1] ? "" : r}${n[1] ? _n(n[1], i, a) : ""}` : _n(n, i, a);
4551
4551
  }, yo = (n) => {
4552
4552
  if (n) return null;
4553
4553
  throw new Error(Ql.prop("partial-range"));
@@ -4572,7 +4572,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4572
4572
  }
4573
4573
  const i = Ys(n, r, e);
4574
4574
  return Ns(r, i, t, !!e) && o;
4575
- }, qs = (n) => Ze(ce(), no(n)), Wm = (n, e) => n instanceof Map ? Array.from(n.values()).filter((t) => Fe(ce(t)) === e).map((t) => qe(t)) : [], lg = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((r) => r.month === e && r.year === t), wl = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), cg = (n) => Zn(n, "yyyy-MM-dd"), fi = si({
4575
+ }, qs = (n) => Ze(ce(), no(n)), Wm = (n, e) => n instanceof Map ? Array.from(n.values()).filter((t) => Fe(ce(t)) === e).map((t) => qe(t)) : [], lg = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((r) => r.month === e && r.year === t), wl = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), cg = (n) => _n(n, "yyyy-MM-dd"), fi = si({
4576
4576
  menuFocused: !1,
4577
4577
  shiftKeyInMenu: !1
4578
4578
  }), ug = () => {
@@ -4874,13 +4874,13 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4874
4874
  hours: hr(k),
4875
4875
  minutes: Pr(k),
4876
4876
  seconds: e.enableSeconds ? Vo(k) : 0
4877
- } : null, Q = (k) => e.modelType ? H(k) : { month: qe(k), year: Fe(k) }, b = (k) => Array.isArray(k) ? a.value.enabled ? k.map((ge) => T(ge, Wn(ce(), ge))) : IA(
4877
+ } : null, Q = (k) => e.modelType ? H(k) : { month: qe(k), year: Fe(k) }, b = (k) => Array.isArray(k) ? a.value.enabled ? k.map((ge) => T(ge, Xn(ce(), ge))) : IA(
4878
4878
  () => [
4879
- Wn(ce(), k[0]),
4880
- k[1] ? Wn(ce(), k[1]) : yo(i.value.partialRange)
4879
+ Xn(ce(), k[0]),
4880
+ k[1] ? Xn(ce(), k[1]) : yo(i.value.partialRange)
4881
4881
  ],
4882
4882
  i.value.enabled
4883
- ) : Wn(ce(), +k), T = (k, ge) => (typeof k == "string" || typeof k == "number") && e.modelType ? z(k) : ge, S = (k) => Array.isArray(k) ? [
4883
+ ) : Xn(ce(), +k), T = (k, ge) => (typeof k == "string" || typeof k == "number") && e.modelType ? z(k) : ge, S = (k) => Array.isArray(k) ? [
4884
4884
  T(
4885
4885
  k[0],
4886
4886
  kr(null, +k[0].hours, +k[0].minutes, k[0].seconds)
@@ -4891,16 +4891,16 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4891
4891
  )
4892
4892
  ] : T(k, kr(null, k.hours, k.minutes, k.seconds)), v = (k) => {
4893
4893
  const ge = Ze(ce(), { date: 1 });
4894
- return Array.isArray(k) ? a.value.enabled ? k.map((xe) => T(xe, cr(ge, +xe.month, +xe.year))) : IA(
4894
+ return Array.isArray(k) ? a.value.enabled ? k.map((xe) => T(xe, ur(ge, +xe.month, +xe.year))) : IA(
4895
4895
  () => [
4896
- T(k[0], cr(ge, +k[0].month, +k[0].year)),
4896
+ T(k[0], ur(ge, +k[0].month, +k[0].year)),
4897
4897
  T(
4898
4898
  k[1],
4899
- k[1] ? cr(ge, +k[1].month, +k[1].year) : yo(i.value.partialRange)
4899
+ k[1] ? ur(ge, +k[1].month, +k[1].year) : yo(i.value.partialRange)
4900
4900
  )
4901
4901
  ],
4902
4902
  i.value.enabled
4903
- ) : T(k, cr(ge, +k.month, +k.year));
4903
+ ) : T(k, ur(ge, +k.month, +k.year));
4904
4904
  }, G = (k) => {
4905
4905
  if (Array.isArray(k))
4906
4906
  return k.map((ge) => z(ge));
@@ -4932,9 +4932,9 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4932
4932
  const ge = me(k);
4933
4933
  ya(yt(ge)) ? (r.value = yt(ge), Ae()) : (r.value = null, c.value = "");
4934
4934
  }, K = () => {
4935
- const k = (ge) => Zn(ge, o.value.format);
4935
+ const k = (ge) => _n(ge, o.value.format);
4936
4936
  return `${k(r.value[0])} ${o.value.rangeSeparator} ${r.value[1] ? k(r.value[1]) : ""}`;
4937
- }, L = () => t.value && r.value ? Array.isArray(r.value) ? K() : Zn(r.value, o.value.format) : I(r.value), X = () => r.value ? a.value.enabled ? r.value.map((k) => I(k)).join("; ") : o.value.enabled && typeof o.value.format == "string" ? L() : I(r.value) : "", Ae = () => {
4937
+ }, L = () => t.value && r.value ? Array.isArray(r.value) ? K() : _n(r.value, o.value.format) : I(r.value), X = () => r.value ? a.value.enabled ? r.value.map((k) => I(k)).join("; ") : o.value.enabled && typeof o.value.format == "string" ? L() : I(r.value) : "", Ae = () => {
4938
4938
  !e.format || typeof e.format == "string" || o.value.enabled && typeof o.value.format == "string" ? c.value = X() : c.value = e.format(r.value);
4939
4939
  }, z = (k) => {
4940
4940
  if (e.utc) {
@@ -4957,10 +4957,10 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4957
4957
  r.value[1] ? k(r.value[1]) : yo(i.value.partialRange)
4958
4958
  ] : k(yt(r.value)), R = () => {
4959
4959
  if (Array.isArray(r.value)) {
4960
- const k = lr(r.value[0], e.weekStart), ge = r.value[1] ? lr(r.value[1], e.weekStart) : [];
4960
+ const k = cr(r.value[0], e.weekStart), ge = r.value[1] ? cr(r.value[1], e.weekStart) : [];
4961
4961
  return [k.map((xe) => ce(xe)), ge.map((xe) => ce(xe))];
4962
4962
  }
4963
- return lr(r.value, e.weekStart).map((k) => ce(k));
4963
+ return cr(r.value, e.weekStart).map((k) => ce(k));
4964
4964
  }, E = (k, ge) => W(yt(M(k)), !1, ge), q = (k) => {
4965
4965
  const ge = R();
4966
4966
  return k ? ge : n("update:model-value", R());
@@ -4983,7 +4983,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4983
4983
  }, a = (u, d = !1) => {
4984
4984
  const g = Ze(ce(), { month: n.month, year: n.year });
4985
4985
  let C = u ? Pn(g, 1) : Xo(g, 1);
4986
- n.disableYearSelect && (C = Wn(C, n.year));
4986
+ n.disableYearSelect && (C = Xn(C, n.year));
4987
4987
  let I = qe(C), B = Fe(C);
4988
4988
  t.value.months.includes(I) && (C = i(C, u), I = qe(C), B = Fe(C)), t.value.years.includes(B) && (C = A(C, u), B = Fe(C)), o(I, B, u, n.preventMinMaxNavigation) && l(I, B, d);
4989
4989
  }, l = (u, d, g) => {
@@ -5118,7 +5118,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5118
5118
  onInternalModelChange: { type: [Function, Object], default: null },
5119
5119
  enableMinutes: { type: Boolean, default: !0 },
5120
5120
  ui: { type: Object, default: () => ({}) }
5121
- }, Nn = {
5121
+ }, Yn = {
5122
5122
  ...cs,
5123
5123
  shadow: { type: Boolean, default: !1 },
5124
5124
  flowStep: { type: Number, default: 0 },
@@ -5136,7 +5136,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5136
5136
  props: {
5137
5137
  menuMount: { type: Boolean, default: !1 },
5138
5138
  calendarWidth: { type: Number, default: 0 },
5139
- ...Nn
5139
+ ...Yn
5140
5140
  },
5141
5141
  emits: ["close-picker", "select-date", "select-now", "invalid-select"],
5142
5142
  setup(n, { emit: e }) {
@@ -5202,7 +5202,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5202
5202
  value: N.internalModelValue
5203
5203
  }) : x("", !0),
5204
5204
  !N.$slots["action-preview"] && Q.value ? (f(), m(fe, { key: 1 }, [
5205
- gr(Xe(ae.value), 1)
5205
+ Fn(Xe(ae.value), 1)
5206
5206
  ], 64)) : x("", !0)
5207
5207
  ], 12, pB)) : x("", !0),
5208
5208
  h("div", {
@@ -5416,7 +5416,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5416
5416
  item: k
5417
5417
  }) : x("", !0),
5418
5418
  M.$slots.item ? x("", !0) : (f(), m(fe, { key: 1 }, [
5419
- gr(Xe(k.text), 1)
5419
+ Fn(Xe(k.text), 1)
5420
5420
  ], 64))
5421
5421
  ], 2)
5422
5422
  ], 42, BB))), 128))
@@ -5507,7 +5507,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5507
5507
  }), vB = ["aria-label", "data-test"], dg = /* @__PURE__ */ it({
5508
5508
  __name: "YearModePicker",
5509
5509
  props: {
5510
- ...Nn,
5510
+ ...Yn,
5511
5511
  showYearPicker: { type: Boolean, default: !1 },
5512
5512
  items: { type: Array, default: () => [] },
5513
5513
  instance: { type: Number, default: 0 },
@@ -5557,7 +5557,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5557
5557
  year: n.year
5558
5558
  }) : x("", !0),
5559
5559
  b.$slots.year ? x("", !0) : (f(), m(fe, { key: 1 }, [
5560
- gr(Xe(n.year), 1)
5560
+ Fn(Xe(n.year), 1)
5561
5561
  ], 64))
5562
5562
  ], 40, vB),
5563
5563
  P(o)(P(a), n.instance) ? (f(), se(ki, {
@@ -5771,7 +5771,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5771
5771
  if (A.value.enabled) {
5772
5772
  const _ = ae();
5773
5773
  if (Array.isArray(C.value) && Array.isArray(_)) {
5774
- const k = N(E, q, 0) || N(E, q, 1), ge = cr(Tn(ce()), E, I.value(q));
5774
+ const k = N(E, q, 0) || N(E, q, 1), ge = ur(Tn(ce()), E, I.value(q));
5775
5775
  return ls(C.value, T.value, ge) && !k;
5776
5776
  }
5777
5777
  return !1;
@@ -5785,9 +5785,9 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5785
5785
  og(I.value(E), l.value.maxDate)
5786
5786
  ) || Wm(l.value.disabledDates, I.value(E)).includes(q.value) || ((_ = u.value.months) == null ? void 0 : _.includes(q.value)), xe = K(q.value, E), Ye = lg(a.value, q.value, I.value(E));
5787
5787
  return { active: k, disabled: ge, isBetween: xe, highlighted: Ye };
5788
- })), X = (E, q) => cr(Tn(ce()), E, I.value(q)), Ae = (E, q) => {
5788
+ })), X = (E, q) => ur(Tn(ce()), E, I.value(q)), Ae = (E, q) => {
5789
5789
  const _ = C.value ? C.value : Tn(/* @__PURE__ */ new Date());
5790
- C.value = cr(_, E, I.value(q)), e("auto-apply"), e("update-flow-step");
5790
+ C.value = ur(_, E, I.value(q)), e("auto-apply"), e("update-flow-step");
5791
5791
  }, z = (E, q) => {
5792
5792
  const _ = X(E, q);
5793
5793
  A.value.fixedEnd || A.value.fixedStart ? C.value = hg(_, C, e, A) : C.value ? S(_, C.value) && (C.value = bl(C, X(E, q), e)) : C.value = [X(E, q)], an().then(() => {
@@ -5840,7 +5840,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5840
5840
  },
5841
5841
  __name: "MonthPicker",
5842
5842
  props: {
5843
- ...Nn
5843
+ ...Yn
5844
5844
  },
5845
5845
  emits: [
5846
5846
  "update:internal-model-value",
@@ -5966,18 +5966,18 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5966
5966
  _o(c.value.maxDate)
5967
5967
  ) || a.value.years.includes(B.value), T = g(B.value) && !Q, S = wl(i.value, B.value);
5968
5968
  return { active: Q, disabled: b, isBetween: T, highlighted: S };
5969
- })), I = (B) => Wn(Tn(Ni(/* @__PURE__ */ new Date())), B);
5969
+ })), I = (B) => Xn(Tn(Ni(/* @__PURE__ */ new Date())), B);
5970
5970
  return {
5971
5971
  groupedYears: C,
5972
5972
  modelValue: r,
5973
5973
  focusYear: u,
5974
5974
  setHoverValue: (B) => {
5975
- o.value = Wn(Tn(/* @__PURE__ */ new Date()), B);
5975
+ o.value = Xn(Tn(/* @__PURE__ */ new Date()), B);
5976
5976
  },
5977
5977
  selectYear: (B) => {
5978
5978
  var Q;
5979
5979
  if (e("update-month-year", { instance: 0, year: B }), A.value.enabled)
5980
- return r.value ? Array.isArray(r.value) && (((Q = r.value) == null ? void 0 : Q.map((b) => Fe(b))).includes(B) ? r.value = r.value.filter((b) => Fe(b) !== B) : r.value.push(Wn(Jt(ce()), B))) : r.value = [Wn(Jt(Ni(ce())), B)], e("auto-apply", !0);
5980
+ return r.value ? Array.isArray(r.value) && (((Q = r.value) == null ? void 0 : Q.map((b) => Fe(b))).includes(B) ? r.value = r.value.filter((b) => Fe(b) !== B) : r.value.push(Xn(Jt(ce()), B))) : r.value = [Xn(Jt(Ni(ce())), B)], e("auto-apply", !0);
5981
5981
  l.value.enabled ? (r.value = bl(r, I(B), e), an().then(() => {
5982
5982
  ds(r.value, e, n.autoApply, n.modelAuto);
5983
5983
  })) : (r.value = I(B), e("auto-apply"));
@@ -5989,7 +5989,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5989
5989
  },
5990
5990
  __name: "YearPicker",
5991
5991
  props: {
5992
- ...Nn
5992
+ ...Yn
5993
5993
  },
5994
5994
  emits: [
5995
5995
  "update:internal-model-value",
@@ -6054,7 +6054,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6054
6054
  order: { type: Number, default: 0 },
6055
6055
  disabledTimesConfig: { type: Function, default: null },
6056
6056
  validateTime: { type: Function, default: () => !1 },
6057
- ...Nn
6057
+ ...Yn
6058
6058
  },
6059
6059
  emits: [
6060
6060
  "set-hours",
@@ -6169,7 +6169,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6169
6169
  }, [
6170
6170
  $.separator ? (f(), m(fe, { key: 0 }, [
6171
6171
  S.value ? x("", !0) : (f(), m(fe, { key: 0 }, [
6172
- gr(":")
6172
+ Fn(":")
6173
6173
  ], 64))
6174
6174
  ], 64)) : (f(), m(fe, { key: 1 }, [
6175
6175
  h("button", {
@@ -6227,7 +6227,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6227
6227
  value: L.value($.type).value
6228
6228
  }) : x("", !0),
6229
6229
  D.$slots[$.type] ? x("", !0) : (f(), m(fe, { key: 1 }, [
6230
- gr(Xe(L.value($.type).text), 1)
6230
+ Fn(Xe(L.value($.type).text), 1)
6231
6231
  ], 64))
6232
6232
  ], 42, OB),
6233
6233
  h("button", {
@@ -6352,7 +6352,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6352
6352
  type: Function,
6353
6353
  default: () => !1
6354
6354
  },
6355
- ...Nn
6355
+ ...Yn
6356
6356
  },
6357
6357
  emits: [
6358
6358
  "update:hours",
@@ -6648,7 +6648,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6648
6648
  },
6649
6649
  __name: "TimePickerSolo",
6650
6650
  props: {
6651
- ...Nn
6651
+ ...Yn
6652
6652
  },
6653
6653
  emits: [
6654
6654
  "update:internal-model-value",
@@ -6718,7 +6718,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6718
6718
  instance: { type: Number, default: 0 },
6719
6719
  years: { type: Array, default: () => [] },
6720
6720
  months: { type: Array, default: () => [] },
6721
- ...Nn
6721
+ ...Yn
6722
6722
  },
6723
6723
  emits: ["update-month-year", "mount", "reset-flow", "overlay-closed", "overlay-opened"],
6724
6724
  setup(n, { expose: e, emit: t }) {
@@ -6855,7 +6855,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6855
6855
  value: o[Z.type]
6856
6856
  }) : x("", !0),
6857
6857
  R.$slots[Z.type] ? x("", !0) : (f(), m(fe, { key: 1 }, [
6858
- gr(Xe(Z.text), 1)
6858
+ Fn(Xe(Z.text), 1)
6859
6859
  ], 64))
6860
6860
  ], 42, WB),
6861
6861
  p(yn, {
@@ -6975,7 +6975,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6975
6975
  instance: { type: Number, default: 0 },
6976
6976
  month: { type: Number, default: 0 },
6977
6977
  year: { type: Number, default: 0 },
6978
- ...Nn
6978
+ ...Yn
6979
6979
  },
6980
6980
  emits: [
6981
6981
  "select-date",
@@ -7006,8 +7006,8 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7006
7006
  });
7007
7007
  const F = (Z) => Z ? o.vertical ? "vNext" : "next" : o.vertical ? "vPrevious" : "previous", j = (Z, he) => {
7008
7008
  if (o.transitions) {
7009
- const D = Jt(cr(ce(), o.month, o.year));
7010
- T.value = ct(Jt(cr(ce(), Z, he)), D) ? A.value[F(!0)] : A.value[F(!1)], b.value = !1, an(() => {
7009
+ const D = Jt(ur(ce(), o.month, o.year));
7010
+ T.value = ct(Jt(ur(ce(), Z, he)), D) ? A.value[F(!0)] : A.value[F(!1)], b.value = !1, an(() => {
7011
7011
  b.value = !0;
7012
7012
  });
7013
7013
  }
@@ -7097,7 +7097,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7097
7097
  index: oe
7098
7098
  }) : x("", !0),
7099
7099
  Z.$slots["calendar-header"] ? x("", !0) : (f(), m(fe, { key: 1 }, [
7100
- gr(Xe(D), 1)
7100
+ Fn(Xe(D), 1)
7101
7101
  ], 64))
7102
7102
  ], 8, $B);
7103
7103
  }), 128))
@@ -7153,7 +7153,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7153
7153
  date: pe.value
7154
7154
  }) : x("", !0),
7155
7155
  Z.$slots.day ? x("", !0) : (f(), m(fe, { key: 1 }, [
7156
- gr(Xe(pe.text), 1)
7156
+ Fn(Xe(pe.text), 1)
7157
7157
  ], 64)),
7158
7158
  pe.marker && K.value(pe) ? (f(), m(fe, { key: 2 }, [
7159
7159
  Z.$slots.marker ? Qe(Z.$slots, "marker", {
@@ -7327,13 +7327,13 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7327
7327
  }
7328
7328
  }, Re = (Y, te, V, le) => {
7329
7329
  if (n.sixWeeks && Y.length < 6) {
7330
- const Be = 6 - Y.length, wt = (te.getDay() + 7 - le) % 7, gt = 6 - (V.getDay() + 7 - le) % 7, [Dn, ir] = $(wt, gt);
7330
+ const Be = 6 - Y.length, wt = (te.getDay() + 7 - le) % 7, gt = 6 - (V.getDay() + 7 - le) % 7, [Dn, Ar] = $(wt, gt);
7331
7331
  for (let Cn = 1; Cn <= Be; Cn++)
7332
- if (ir ? !!(Cn % 2) == Dn : Dn) {
7333
- const jn = Y[0].days[0], jr = J(On(jn.value, -7), qe(te));
7332
+ if (Ar ? !!(Cn % 2) == Dn : Dn) {
7333
+ const Kn = Y[0].days[0], jr = J(On(Kn.value, -7), qe(te));
7334
7334
  Y.unshift({ days: jr });
7335
7335
  } else {
7336
- const jn = Y[Y.length - 1], jr = jn.days[jn.days.length - 1], vo = J(On(jr.value, 1), qe(te));
7336
+ const Kn = Y[Y.length - 1], jr = Kn.days[Kn.days.length - 1], vo = J(On(jr.value, 1), qe(te));
7337
7337
  Y.push({ days: vo });
7338
7338
  }
7339
7339
  }
@@ -7351,13 +7351,13 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7351
7351
  }
7352
7352
  return le;
7353
7353
  }, ue = (Y, te) => {
7354
- const V = [], le = new Date(te, Y), Be = new Date(te, Y + 1, 0), wt = n.weekStart, gt = Fn(le, { weekStartsOn: wt }), Dn = (ir) => {
7355
- const Cn = J(ir, Y);
7354
+ const V = [], le = new Date(te, Y), Be = new Date(te, Y + 1, 0), wt = n.weekStart, gt = Ln(le, { weekStartsOn: wt }), Dn = (Ar) => {
7355
+ const Cn = J(Ar, Y);
7356
7356
  if (V.push({ days: Cn }), !V[V.length - 1].days.some(
7357
- (jn) => Ue(Jt(jn.value), Jt(Be))
7357
+ (Kn) => Ue(Jt(Kn.value), Jt(Be))
7358
7358
  )) {
7359
- const jn = On(ir, 7);
7360
- Dn(jn);
7359
+ const Kn = On(Ar, 7);
7360
+ Dn(Kn);
7361
7361
  }
7362
7362
  };
7363
7363
  return Dn(gt), Re(V, le, Be, wt);
@@ -7387,11 +7387,11 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7387
7387
  if (ze(Y.value) || !w(Y.value, l.value, I.value.fixedStart ? 0 : 1))
7388
7388
  return e("invalid-date", Y.value);
7389
7389
  o.value = hg(ce(Y.value), l, e, I);
7390
- }, Yn = (Y, te) => {
7390
+ }, qn = (Y, te) => {
7391
7391
  if (Qt(), I.value.autoRange) return Se(Y, te);
7392
7392
  if (I.value.fixedStart || I.value.fixedEnd) return jt(Y);
7393
7393
  o.value[0] ? w(ce(Y.value), l.value) && !ze(Y.value) ? At(ce(Y.value), ce(o.value[0])) ? (o.value.unshift(ce(Y.value)), e("range-end", o.value[0])) : (o.value[1] = ce(Y.value), e("range-end", o.value[1])) : (n.autoApply && e("auto-apply-invalid", Y.value), e("invalid-date", Y.value)) : (o.value[0] = ce(Y.value), e("range-start", o.value[0]));
7394
- }, vt = (Y = !0) => n.enableSeconds ? Array.isArray(u.seconds) ? Y ? u.seconds[0] : u.seconds[1] : u.seconds : 0, qn = (Y) => {
7394
+ }, vt = (Y = !0) => n.enableSeconds ? Array.isArray(u.seconds) ? Y ? u.seconds[0] : u.seconds[1] : u.seconds : 0, jn = (Y) => {
7395
7395
  o.value[Y] = kr(
7396
7396
  o.value[Y],
7397
7397
  u.hours[Y],
@@ -7402,11 +7402,11 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7402
7402
  var Y, te;
7403
7403
  o.value[0] && o.value[1] && +((Y = o.value) == null ? void 0 : Y[0]) > +((te = o.value) == null ? void 0 : te[1]) && (o.value.reverse(), e("range-start", o.value[0]), e("range-end", o.value[1]));
7404
7404
  }, Qo = () => {
7405
- o.value.length && (o.value[0] && !o.value[1] ? qn(0) : (qn(0), qn(1), r()), di(), l.value = o.value.slice(), ds(o.value, e, n.autoApply, n.modelAuto));
7405
+ o.value.length && (o.value[0] && !o.value[1] ? jn(0) : (jn(0), jn(1), r()), di(), l.value = o.value.slice(), ds(o.value, e, n.autoApply, n.modelAuto));
7406
7406
  }, gi = (Y, te = !1) => {
7407
7407
  if (v(Y.value) || !Y.current && n.hideOffsetDates) return e("invalid-date", Y.value);
7408
7408
  if (A.value = JSON.parse(JSON.stringify(Y)), !I.value.enabled) return Ee(Y);
7409
- Sc(u.hours) && Sc(u.minutes) && !T.value.enabled && (Yn(Y, te), Qo());
7409
+ Sc(u.hours) && Sc(u.minutes) && !T.value.enabled && (qn(Y, te), Qo());
7410
7410
  }, hi = (Y, te) => {
7411
7411
  var V;
7412
7412
  L(Y, te.month, te.year, !0), g.value.count && !g.value.solo && xe(Y), e("update-month-year", { instance: Y, month: te.month, year: te.year }), t(g.value.solo ? Y : void 0);
@@ -7459,7 +7459,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7459
7459
  }, AE = { key: 0 }, sE = /* @__PURE__ */ it({
7460
7460
  __name: "DatePicker",
7461
7461
  props: {
7462
- ...Nn
7462
+ ...Yn
7463
7463
  },
7464
7464
  emits: [
7465
7465
  "tooltip-open",
@@ -7549,7 +7549,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7549
7549
  }, k = (he, D) => {
7550
7550
  var oe;
7551
7551
  if (!o.range) {
7552
- const pe = l.value ? l.value : d, $ = D ? new Date(D) : pe, Re = he ? Fn($, { weekStartsOn: 1 }) : Hd($, { weekStartsOn: 1 });
7552
+ const pe = l.value ? l.value : d, $ = D ? new Date(D) : pe, Re = he ? Ln($, { weekStartsOn: 1 }) : Hd($, { weekStartsOn: 1 });
7553
7553
  T({
7554
7554
  value: Re,
7555
7555
  current: qe($) === A.value(0),
@@ -7700,7 +7700,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7700
7700
  filters: l,
7701
7701
  props: n,
7702
7702
  emit: e
7703
- }), w = (K, L) => [K, L].map((X) => Zn(X, "MMMM", { locale: n.formatLocale })).join("-"), O = de(() => (K) => u.value ? Array.isArray(u.value) ? u.value.some((L) => Bc(K, L)) : Bc(u.value, K) : !1), U = (K) => {
7703
+ }), w = (K, L) => [K, L].map((X) => _n(X, "MMMM", { locale: n.formatLocale })).join("-"), O = de(() => (K) => u.value ? Array.isArray(u.value) ? u.value.some((L) => Bc(K, L)) : Bc(u.value, K) : !1), U = (K) => {
7704
7704
  if (A.value.enabled) {
7705
7705
  if (Array.isArray(u.value)) {
7706
7706
  const L = Ue(K, u.value[0]) || Ue(K, u.value[1]);
@@ -7759,7 +7759,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7759
7759
  },
7760
7760
  __name: "QuarterPicker",
7761
7761
  props: {
7762
- ...Nn
7762
+ ...Yn
7763
7763
  },
7764
7764
  emits: [
7765
7765
  "update:internal-model-value",
@@ -7846,7 +7846,7 @@ const wa = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7846
7846
  value: O.value,
7847
7847
  text: O.text
7848
7848
  }) : (f(), m(fe, { key: 1 }, [
7849
- gr(Xe(O.text), 1)
7849
+ Fn(Xe(O.text), 1)
7850
7850
  ], 64))
7851
7851
  ], 42, cE)
7852
7852
  ]))), 128))
@@ -8425,7 +8425,7 @@ const EE = ({
8425
8425
  if (l.value.autoRange || e.weekPicker) {
8426
8426
  if (u.value) {
8427
8427
  if (e.hideOffsetDates && !E.current) return !1;
8428
- const q = On(u.value, +l.value.autoRange), _ = lr(ce(u.value), e.weekStart);
8428
+ const q = On(u.value, +l.value.autoRange), _ = cr(ce(u.value), e.weekStart);
8429
8429
  return e.weekPicker ? Ue(_[1], ce(E.value)) : Ue(q, ce(E.value));
8430
8430
  }
8431
8431
  return !1;
@@ -8436,7 +8436,7 @@ const EE = ({
8436
8436
  if (u.value) {
8437
8437
  const q = On(u.value, +l.value.autoRange);
8438
8438
  if (e.hideOffsetDates && !E.current) return !1;
8439
- const _ = lr(ce(u.value), e.weekStart);
8439
+ const _ = cr(ce(u.value), e.weekStart);
8440
8440
  return e.weekPicker ? ct(E.value, _[0]) && At(E.value, _[1]) : ct(E.value, u.value) && At(E.value, q);
8441
8441
  }
8442
8442
  return !1;
@@ -8446,7 +8446,7 @@ const EE = ({
8446
8446
  if (l.value.autoRange || e.weekPicker) {
8447
8447
  if (u.value) {
8448
8448
  if (e.hideOffsetDates && !E.current) return !1;
8449
- const q = lr(ce(u.value), e.weekStart);
8449
+ const q = cr(ce(u.value), e.weekStart);
8450
8450
  return e.weekPicker ? Ue(q[0], E.value) : Ue(u.value, E.value);
8451
8451
  }
8452
8452
  return !1;
@@ -8479,7 +8479,7 @@ const EE = ({
8479
8479
  dp__date_hover: j(E)
8480
8480
  }), Ae = (E) => {
8481
8481
  if (n.value && !Array.isArray(n.value)) {
8482
- const q = lr(n.value, e.weekStart);
8482
+ const q = cr(n.value, e.weekStart);
8483
8483
  return {
8484
8484
  ...M(E),
8485
8485
  dp__range_start: Ue(q[0], E.value),
@@ -8492,7 +8492,7 @@ const EE = ({
8492
8492
  };
8493
8493
  }, z = (E) => {
8494
8494
  if (n.value && Array.isArray(n.value)) {
8495
- const q = lr(n.value[0], e.weekStart), _ = n.value[1] ? lr(n.value[1], e.weekStart) : [];
8495
+ const q = cr(n.value[0], e.weekStart), _ = n.value[1] ? cr(n.value[1], e.weekStart) : [];
8496
8496
  return {
8497
8497
  ...M(E),
8498
8498
  dp__range_start: Ue(q[0], E.value) || Ue(_[0], E.value),
@@ -8982,10 +8982,10 @@ const EE = ({
8982
8982
  }, J = (V) => {
8983
8983
  B.value = V.shiftKey;
8984
8984
  }, ue = () => {
8985
- !o.disabled && !o.readonly && (M(kc, o), H(!1), A.value = !0, A.value && r("open"), A.value || Yn(), q(o.modelValue));
8985
+ !o.disabled && !o.readonly && (M(kc, o), H(!1), A.value = !0, A.value && r("open"), A.value || qn(), q(o.modelValue));
8986
8986
  }, Ee = () => {
8987
8987
  var V;
8988
- R.value = "", Yn(), (V = d.value) == null || V.setParsedDate(null), r("update:model-value", null), r("update:model-timezone-value", null), r("cleared"), j.value.closeOnClearValue && vt();
8988
+ R.value = "", qn(), (V = d.value) == null || V.setParsedDate(null), r("update:model-value", null), r("update:model-timezone-value", null), r("cleared"), j.value.closeOnClearValue && vt();
8989
8989
  }, ze = () => {
8990
8990
  const V = E.value;
8991
8991
  return !V || !Array.isArray(V) && G(V) ? !0 : Array.isArray(V) ? ae.value.enabled || V.length === 2 && G(V[0]) && G(V[1]) ? !0 : re.value.partialRange && !o.timePicker ? G(V[0]) : !1 : !1;
@@ -8997,11 +8997,11 @@ const EE = ({
8997
8997
  d.value && U.value.enabled && d.value.setParsedDate(E.value);
8998
8998
  }, jt = (V = !1) => {
8999
8999
  o.autoApply && w(E.value) && ze() && (re.value.enabled && Array.isArray(E.value) ? (re.value.partialRange || E.value.length === 2) && Se(V) : Se(V));
9000
- }, Yn = () => {
9000
+ }, qn = () => {
9001
9001
  U.value.enabled || (E.value = null);
9002
9002
  }, vt = () => {
9003
- F.value.enabled || (A.value && (A.value = !1, z.value = !1, T(!1), S(!1), v(), r("closed"), R.value && q(a.value)), Yn(), r("blur"));
9004
- }, qn = (V, le, Be = !1) => {
9003
+ F.value.enabled || (A.value && (A.value = !1, z.value = !1, T(!1), S(!1), v(), r("closed"), R.value && q(a.value)), qn(), r("blur"));
9004
+ }, jn = (V, le, Be = !1) => {
9005
9005
  if (!V) {
9006
9006
  E.value = null;
9007
9007
  return;
@@ -9067,7 +9067,7 @@ const EE = ({
9067
9067
  }, V.$props, {
9068
9068
  onClear: Ee,
9069
9069
  onOpen: ue,
9070
- onSetInputDate: qn,
9070
+ onSetInputDate: jn,
9071
9071
  onSetEmptyDate: P(_),
9072
9072
  onSelectDate: Qt,
9073
9073
  onToggle: Qo,
@@ -9417,11 +9417,12 @@ const Bo = /* @__PURE__ */ ie(UE, [["render", WE]]), XE = {
9417
9417
  return (n == null ? void 0 : n.RuleValue) || "";
9418
9418
  },
9419
9419
  getWeapons() {
9420
- var n;
9421
- return (n = this.localWeapons) == null ? void 0 : n.map((e) => ({
9420
+ console.log(this.localWeapons);
9421
+ const n = this.localWeapons.map((e) => ({
9422
9422
  text: e.Name,
9423
9423
  link: e.Id
9424
9424
  }));
9425
+ return console.log(n), n;
9425
9426
  }
9426
9427
  },
9427
9428
  methods: {
@@ -9533,6 +9534,7 @@ function uQ(n, e, t, r, o, i) {
9533
9534
  }, null, 8, ["invalid", "setDate", "onUpdate:selectedDate"])
9534
9535
  ]),
9535
9536
  h("div", iQ, [
9537
+ Fn(Xe(i.getWeapons) + " ", 1),
9536
9538
  p(a, {
9537
9539
  color: "quinary",
9538
9540
  invalid: o.validation.WeaponId,
@@ -10452,6 +10454,7 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
10452
10454
  function Qv(n, e, t, r, o, i) {
10453
10455
  const A = y("BasicEventInfo"), a = y("PoolConfiguration"), l = y("DirectEliminationPromotion"), c = y("DirectElimination");
10454
10456
  return f(), m("div", Ev, [
10457
+ Fn(" BasicEventInfo = " + Xe(o.localWeapons) + " ", 1),
10455
10458
  o.currentStep === 1 ? (f(), se(A, {
10456
10459
  key: 0,
10457
10460
  event: o.localEvent,
@@ -11689,7 +11692,7 @@ function bw() {
11689
11692
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
11690
11693
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
11691
11694
  }
11692
- var Cs = typeof window < "u" && typeof window.document < "u", er = Cs ? window : {}, Dl = Cs && er.document.documentElement ? "ontouchstart" in er.document.documentElement : !1, Sl = Cs ? "PointerEvent" in er : !1, tt = "cropper", kl = "all", yg = "crop", bg = "move", xg = "zoom", Kr = "e", Ur = "w", bo = "s", fr = "n", mi = "ne", Bi = "nw", Ei = "se", Qi = "sw", Da = "".concat(tt, "-crop"), Fc = "".concat(tt, "-disabled"), en = "".concat(tt, "-hidden"), Lc = "".concat(tt, "-hide"), xw = "".concat(tt, "-invisible"), YA = "".concat(tt, "-modal"), Sa = "".concat(tt, "-move"), ji = "".concat(tt, "Action"), mA = "".concat(tt, "Preview"), Ml = "crop", Dg = "move", Sg = "none", ka = "crop", Ma = "cropend", Oa = "cropmove", Ta = "cropstart", Hc = "dblclick", Dw = Dl ? "touchstart" : "mousedown", Sw = Dl ? "touchmove" : "mousemove", kw = Dl ? "touchend touchcancel" : "mouseup", Nc = Sl ? "pointerdown" : Dw, Yc = Sl ? "pointermove" : Sw, qc = Sl ? "pointerup pointercancel" : kw, jc = "ready", Kc = "resize", Uc = "wheel", Ra = "zoom", Gc = "image/jpeg", Mw = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Ow = /^data:/, Tw = /^data:image\/jpeg;base64,/, Rw = /^img|canvas$/i, kg = 200, Mg = 100, Jc = {
11695
+ var Cs = typeof window < "u" && typeof window.document < "u", tr = Cs ? window : {}, Dl = Cs && tr.document.documentElement ? "ontouchstart" in tr.document.documentElement : !1, Sl = Cs ? "PointerEvent" in tr : !1, tt = "cropper", kl = "all", yg = "crop", bg = "move", xg = "zoom", Kr = "e", Ur = "w", bo = "s", fr = "n", mi = "ne", Bi = "nw", Ei = "se", Qi = "sw", Da = "".concat(tt, "-crop"), Fc = "".concat(tt, "-disabled"), en = "".concat(tt, "-hidden"), Lc = "".concat(tt, "-hide"), xw = "".concat(tt, "-invisible"), YA = "".concat(tt, "-modal"), Sa = "".concat(tt, "-move"), ji = "".concat(tt, "Action"), mA = "".concat(tt, "Preview"), Ml = "crop", Dg = "move", Sg = "none", ka = "crop", Ma = "cropend", Oa = "cropmove", Ta = "cropstart", Hc = "dblclick", Dw = Dl ? "touchstart" : "mousedown", Sw = Dl ? "touchmove" : "mousemove", kw = Dl ? "touchend touchcancel" : "mouseup", Nc = Sl ? "pointerdown" : Dw, Yc = Sl ? "pointermove" : Sw, qc = Sl ? "pointerup pointercancel" : kw, jc = "ready", Kc = "resize", Uc = "wheel", Ra = "zoom", Gc = "image/jpeg", Mw = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Ow = /^data:/, Tw = /^data:image\/jpeg;base64,/, Rw = /^img|canvas$/i, kg = 200, Mg = 100, Jc = {
11693
11696
  // Define the view mode of the cropper
11694
11697
  viewMode: 0,
11695
11698
  // 0, 1, 2, 3
@@ -11760,7 +11763,7 @@ var Cs = typeof window < "u" && typeof window.document < "u", er = Cs ? window :
11760
11763
  cropend: null,
11761
11764
  crop: null,
11762
11765
  zoom: null
11763
- }, Pw = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', zw = Number.isNaN || er.isNaN;
11766
+ }, Pw = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', zw = Number.isNaN || tr.isNaN;
11764
11767
  function Ke(n) {
11765
11768
  return typeof n == "number" && !zw(n);
11766
11769
  }
@@ -11837,11 +11840,11 @@ function bt(n, e) {
11837
11840
  t ? t.indexOf(e) < 0 && (n.className = "".concat(t, " ").concat(e)) : n.className = e;
11838
11841
  }
11839
11842
  }
11840
- function _n(n, e) {
11843
+ function $n(n, e) {
11841
11844
  if (e) {
11842
11845
  if (Ke(n.length)) {
11843
11846
  ht(n, function(t) {
11844
- _n(t, e);
11847
+ $n(t, e);
11845
11848
  });
11846
11849
  return;
11847
11850
  }
@@ -11860,7 +11863,7 @@ function Fo(n, e, t) {
11860
11863
  });
11861
11864
  return;
11862
11865
  }
11863
- t ? bt(n, e) : _n(n, e);
11866
+ t ? bt(n, e) : $n(n, e);
11864
11867
  }
11865
11868
  }
11866
11869
  var qw = /([a-z\d])([A-Z])/g;
@@ -11906,7 +11909,7 @@ var Tg = /\s\s*/, Rg = function() {
11906
11909
  e = i;
11907
11910
  }
11908
11911
  });
11909
- er.addEventListener("test", t, r), er.removeEventListener("test", t, r);
11912
+ tr.addEventListener("test", t, r), tr.removeEventListener("test", t, r);
11910
11913
  }
11911
11914
  return n;
11912
11915
  }();
@@ -11950,7 +11953,7 @@ function Pg(n) {
11950
11953
  top: e.top + (window.pageYOffset - document.documentElement.clientTop)
11951
11954
  };
11952
11955
  }
11953
- var Xs = er.location, Kw = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
11956
+ var Xs = tr.location, Kw = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
11954
11957
  function Wc(n) {
11955
11958
  var e = n.match(Kw);
11956
11959
  return e !== null && (e[1] !== Xs.protocol || e[2] !== Xs.hostname || e[3] !== Xs.port);
@@ -12139,7 +12142,7 @@ var ty = {
12139
12142
  },
12140
12143
  initContainer: function() {
12141
12144
  var e = this.element, t = this.options, r = this.container, o = this.cropper, i = Number(t.minContainerWidth), A = Number(t.minContainerHeight);
12142
- bt(o, en), _n(e, en);
12145
+ bt(o, en), $n(e, en);
12143
12146
  var a = {
12144
12147
  width: Math.max(r.offsetWidth, i >= 0 ? i : kg),
12145
12148
  height: Math.max(r.offsetHeight, A >= 0 ? A : Mg)
@@ -12147,7 +12150,7 @@ var ty = {
12147
12150
  this.containerData = a, wr(o, {
12148
12151
  width: a.width,
12149
12152
  height: a.height
12150
- }), bt(e, en), _n(o, en);
12153
+ }), bt(e, en), $n(o, en);
12151
12154
  },
12152
12155
  // Canvas (image wrapper)
12153
12156
  initCanvas: function() {
@@ -12472,7 +12475,7 @@ var ty = {
12472
12475
  S = !1;
12473
12476
  break;
12474
12477
  }
12475
- v = Pg(this.cropper), c = G.startX - v.left, u = G.startY - v.top, d = i.minWidth, g = i.minHeight, w.x > 0 ? a = w.y > 0 ? Ei : mi : w.x < 0 && (c -= d, a = w.y > 0 ? Qi : Bi), w.y < 0 && (u -= g), this.cropped || (_n(this.cropBox, en), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
12478
+ v = Pg(this.cropper), c = G.startX - v.left, u = G.startY - v.top, d = i.minWidth, g = i.minHeight, w.x > 0 ? a = w.y > 0 ? Ei : mi : w.x < 0 && (c -= d, a = w.y > 0 ? Qi : Bi), w.y < 0 && (u -= g), this.cropped || ($n(this.cropBox, en), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
12476
12479
  break;
12477
12480
  }
12478
12481
  S && (i.width = d, i.height = g, i.left = c, i.top = u, this.action = a, this.renderCropBox()), ht(A, function(U) {
@@ -12482,7 +12485,7 @@ var ty = {
12482
12485
  }, Ay = {
12483
12486
  // Show the crop box manually
12484
12487
  crop: function() {
12485
- return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && bt(this.dragBox, YA), _n(this.cropBox, en), this.setCropBoxData(this.initialCropBoxData)), this;
12488
+ return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && bt(this.dragBox, YA), $n(this.cropBox, en), this.setCropBoxData(this.initialCropBoxData)), this;
12486
12489
  },
12487
12490
  // Reset the image and crop box to their initial states
12488
12491
  reset: function() {
@@ -12495,7 +12498,7 @@ var ty = {
12495
12498
  top: 0,
12496
12499
  width: 0,
12497
12500
  height: 0
12498
- }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), _n(this.dragBox, YA), bt(this.cropBox, en)), this;
12501
+ }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), $n(this.dragBox, YA), bt(this.cropBox, en)), this;
12499
12502
  },
12500
12503
  /**
12501
12504
  * Replace the image's src and rebuild the cropper
@@ -12511,7 +12514,7 @@ var ty = {
12511
12514
  },
12512
12515
  // Enable (unfreeze) the cropper
12513
12516
  enable: function() {
12514
- return this.ready && this.disabled && (this.disabled = !1, _n(this.cropper, Fc)), this;
12517
+ return this.ready && this.disabled && (this.disabled = !1, $n(this.cropper, Fc)), this;
12515
12518
  },
12516
12519
  // Disable (freeze) the cropper
12517
12520
  disable: function() {
@@ -12792,7 +12795,7 @@ var ty = {
12792
12795
  }
12793
12796
  return this;
12794
12797
  }
12795
- }, sy = er.Cropper, Fg = /* @__PURE__ */ function() {
12798
+ }, sy = tr.Cropper, Fg = /* @__PURE__ */ function() {
12796
12799
  function n(e) {
12797
12800
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12798
12801
  if (Bw(this, n), !e || !Rw.test(e.tagName))
@@ -12861,7 +12864,7 @@ var ty = {
12861
12864
  value: function() {
12862
12865
  var t = this, r = this.image;
12863
12866
  r.onload = null, r.onerror = null, this.sizing = !0;
12864
- var o = er.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(er.navigator.userAgent), i = function(c, u) {
12867
+ var o = tr.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(tr.navigator.userAgent), i = function(c, u) {
12865
12868
  nt(t.imageData, {
12866
12869
  naturalWidth: c,
12867
12870
  naturalHeight: u,
@@ -12890,7 +12893,7 @@ var ty = {
12890
12893
  var t = this.element, r = this.options, o = this.image, i = t.parentNode, A = document.createElement("div");
12891
12894
  A.innerHTML = Pw;
12892
12895
  var a = A.querySelector(".".concat(tt, "-container")), l = a.querySelector(".".concat(tt, "-canvas")), c = a.querySelector(".".concat(tt, "-drag-box")), u = a.querySelector(".".concat(tt, "-crop-box")), d = u.querySelector(".".concat(tt, "-face"));
12893
- this.container = i, this.cropper = a, this.canvas = l, this.dragBox = c, this.cropBox = u, this.viewBox = a.querySelector(".".concat(tt, "-view-box")), this.face = d, l.appendChild(o), bt(t, en), i.insertBefore(a, t.nextSibling), _n(o, Lc), this.initPreview(), this.bind(), r.initialAspectRatio = Math.max(0, r.initialAspectRatio) || NaN, r.aspectRatio = Math.max(0, r.aspectRatio) || NaN, r.viewMode = Math.max(0, Math.min(3, Math.round(r.viewMode))) || 0, bt(u, en), r.guides || bt(u.getElementsByClassName("".concat(tt, "-dashed")), en), r.center || bt(u.getElementsByClassName("".concat(tt, "-center")), en), r.background && bt(a, "".concat(tt, "-bg")), r.highlight || bt(d, xw), r.cropBoxMovable && (bt(d, Sa), Ki(d, ji, kl)), r.cropBoxResizable || (bt(u.getElementsByClassName("".concat(tt, "-line")), en), bt(u.getElementsByClassName("".concat(tt, "-point")), en)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), $t(r.ready) && fn(t, jc, r.ready, {
12896
+ this.container = i, this.cropper = a, this.canvas = l, this.dragBox = c, this.cropBox = u, this.viewBox = a.querySelector(".".concat(tt, "-view-box")), this.face = d, l.appendChild(o), bt(t, en), i.insertBefore(a, t.nextSibling), $n(o, Lc), this.initPreview(), this.bind(), r.initialAspectRatio = Math.max(0, r.initialAspectRatio) || NaN, r.aspectRatio = Math.max(0, r.aspectRatio) || NaN, r.viewMode = Math.max(0, Math.min(3, Math.round(r.viewMode))) || 0, bt(u, en), r.guides || bt(u.getElementsByClassName("".concat(tt, "-dashed")), en), r.center || bt(u.getElementsByClassName("".concat(tt, "-center")), en), r.background && bt(a, "".concat(tt, "-bg")), r.highlight || bt(d, xw), r.cropBoxMovable && (bt(d, Sa), Ki(d, ji, kl)), r.cropBoxResizable || (bt(u.getElementsByClassName("".concat(tt, "-line")), en), bt(u.getElementsByClassName("".concat(tt, "-point")), en)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), $t(r.ready) && fn(t, jc, r.ready, {
12894
12897
  once: !0
12895
12898
  }), qo(t, jc);
12896
12899
  }
@@ -12901,7 +12904,7 @@ var ty = {
12901
12904
  if (this.ready) {
12902
12905
  this.ready = !1, this.unbind(), this.resetPreview();
12903
12906
  var t = this.cropper.parentNode;
12904
- t && t.removeChild(this.cropper), _n(this.element, en);
12907
+ t && t.removeChild(this.cropper), $n(this.element, en);
12905
12908
  }
12906
12909
  }
12907
12910
  }, {
@@ -16409,7 +16412,7 @@ class br extends qt {
16409
16412
  return pt.fromReplace(e, this.from, this.to, i);
16410
16413
  }
16411
16414
  invert() {
16412
- return new Xn(this.from, this.to, this.mark);
16415
+ return new Zn(this.from, this.to, this.mark);
16413
16416
  }
16414
16417
  map(e) {
16415
16418
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
@@ -16436,7 +16439,7 @@ class br extends qt {
16436
16439
  }
16437
16440
  }
16438
16441
  qt.jsonID("addMark", br);
16439
- class Xn extends qt {
16442
+ class Zn extends qt {
16440
16443
  /**
16441
16444
  Create a mark-removing step.
16442
16445
  */
@@ -16452,10 +16455,10 @@ class Xn extends qt {
16452
16455
  }
16453
16456
  map(e) {
16454
16457
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
16455
- return t.deleted && r.deleted || t.pos >= r.pos ? null : new Xn(t.pos, r.pos, this.mark);
16458
+ return t.deleted && r.deleted || t.pos >= r.pos ? null : new Zn(t.pos, r.pos, this.mark);
16456
16459
  }
16457
16460
  merge(e) {
16458
- return e instanceof Xn && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Xn(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
16461
+ return e instanceof Zn && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Zn(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
16459
16462
  }
16460
16463
  toJSON() {
16461
16464
  return {
@@ -16471,10 +16474,10 @@ class Xn extends qt {
16471
16474
  static fromJSON(e, t) {
16472
16475
  if (typeof t.from != "number" || typeof t.to != "number")
16473
16476
  throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
16474
- return new Xn(t.from, t.to, e.markFromJSON(t.mark));
16477
+ return new Zn(t.from, t.to, e.markFromJSON(t.mark));
16475
16478
  }
16476
16479
  }
16477
- qt.jsonID("removeMark", Xn);
16480
+ qt.jsonID("removeMark", Zn);
16478
16481
  class xr extends qt {
16479
16482
  /**
16480
16483
  Create a node mark step.
@@ -16687,7 +16690,7 @@ function Vy(n, e, t, r) {
16687
16690
  if (!r.isInSet(d) && u.type.allowsMarkType(r.type)) {
16688
16691
  let g = Math.max(c, e), C = Math.min(c + l.nodeSize, t), I = r.addToSet(d);
16689
16692
  for (let B = 0; B < d.length; B++)
16690
- d[B].isInSet(I) || (A && A.to == g && A.mark.eq(d[B]) ? A.to = C : o.push(A = new Xn(g, C, d[B])));
16693
+ d[B].isInSet(I) || (A && A.to == g && A.mark.eq(d[B]) ? A.to = C : o.push(A = new Zn(g, C, d[B])));
16691
16694
  a && a.to == g ? a.to = C : i.push(a = new br(g, C, r));
16692
16695
  }
16693
16696
  }), o.forEach((l) => n.step(l)), i.forEach((l) => n.step(l));
@@ -16715,7 +16718,7 @@ function Wy(n, e, t, r) {
16715
16718
  g ? (g.to = c, g.step = i) : o.push({ style: d, from: Math.max(a, e), to: c, step: i });
16716
16719
  }
16717
16720
  }
16718
- }), o.forEach((A) => n.step(new Xn(A.from, A.to, A.style)));
16721
+ }), o.forEach((A) => n.step(new Zn(A.from, A.to, A.style)));
16719
16722
  }
16720
16723
  function ah(n, e, t, r = t.contentMatch, o = !0) {
16721
16724
  let i = n.doc.nodeAt(e), A = [], a = e + 1;
@@ -16726,7 +16729,7 @@ function ah(n, e, t, r = t.contentMatch, o = !0) {
16726
16729
  else {
16727
16730
  r = d;
16728
16731
  for (let g = 0; g < c.marks.length; g++)
16729
- t.allowsMarkType(c.marks[g].type) || n.step(new Xn(a, u, c.marks[g]));
16732
+ t.allowsMarkType(c.marks[g].type) || n.step(new Zn(a, u, c.marks[g]));
16730
16733
  if (o && c.isText && t.whitespace != "pre") {
16731
16734
  let g, C = /\r?\n|\r/g, I;
16732
16735
  for (; g = C.exec(c.text); )
@@ -18313,7 +18316,7 @@ const oa = /* @__PURE__ */ Object.create(null);
18313
18316
  function Ch(n) {
18314
18317
  return n in oa ? n + "$" + ++oa[n] : (oa[n] = 0, n + "$");
18315
18318
  }
18316
- class or {
18319
+ class ir {
18317
18320
  /**
18318
18321
  Create a plugin key.
18319
18322
  */
@@ -18343,7 +18346,7 @@ const Tt = function(n) {
18343
18346
  return e && e.nodeType == 11 ? e.host : e;
18344
18347
  };
18345
18348
  let Ya = null;
18346
- const sr = function(n, e, t) {
18349
+ const ar = function(n, e, t) {
18347
18350
  let r = Ya || (Ya = document.createRange());
18348
18351
  return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
18349
18352
  }, Bb = function() {
@@ -18355,7 +18358,7 @@ function Iu(n, e, t, r, o) {
18355
18358
  for (; ; ) {
18356
18359
  if (n == t && e == r)
18357
18360
  return !0;
18358
- if (e == (o < 0 ? 0 : Vn(n))) {
18361
+ if (e == (o < 0 ? 0 : Wn(n))) {
18359
18362
  let i = n.parentNode;
18360
18363
  if (!i || i.nodeType != 1 || uA(n) || Eb.test(n.nodeName) || n.contentEditable == "false")
18361
18364
  return !1;
@@ -18363,12 +18366,12 @@ function Iu(n, e, t, r, o) {
18363
18366
  } else if (n.nodeType == 1) {
18364
18367
  if (n = n.childNodes[e + (o < 0 ? -1 : 0)], n.contentEditable == "false")
18365
18368
  return !1;
18366
- e = o < 0 ? Vn(n) : 0;
18369
+ e = o < 0 ? Wn(n) : 0;
18367
18370
  } else
18368
18371
  return !1;
18369
18372
  }
18370
18373
  }
18371
- function Vn(n) {
18374
+ function Wn(n) {
18372
18375
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
18373
18376
  }
18374
18377
  function Qb(n, e) {
@@ -18378,7 +18381,7 @@ function Qb(n, e) {
18378
18381
  if (n.nodeType == 1 && e > 0) {
18379
18382
  if (n.contentEditable == "false")
18380
18383
  return null;
18381
- n = n.childNodes[e - 1], e = Vn(n);
18384
+ n = n.childNodes[e - 1], e = Wn(n);
18382
18385
  } else if (n.parentNode && !uA(n))
18383
18386
  e = Tt(n), n = n.parentNode;
18384
18387
  else
@@ -18400,13 +18403,13 @@ function vb(n, e) {
18400
18403
  }
18401
18404
  }
18402
18405
  function wb(n, e, t) {
18403
- for (let r = e == 0, o = e == Vn(n); r || o; ) {
18406
+ for (let r = e == 0, o = e == Wn(n); r || o; ) {
18404
18407
  if (n == t)
18405
18408
  return !0;
18406
18409
  let i = Tt(n);
18407
18410
  if (n = n.parentNode, !n)
18408
18411
  return !1;
18409
- r = r && i == 0, o = o && i == Vn(n);
18412
+ r = r && i == 0, o = o && i == Wn(n);
18410
18413
  }
18411
18414
  }
18412
18415
  function uA(n) {
@@ -18442,9 +18445,9 @@ function bb(n, e, t) {
18442
18445
  return { node: r.startContainer, offset: r.startOffset };
18443
18446
  }
18444
18447
  }
18445
- const tr = typeof navigator < "u" ? navigator : null, fu = typeof document < "u" ? document : null, Nr = tr && tr.userAgent || "", qa = /Edge\/(\d+)/.exec(Nr), Ih = /MSIE \d/.exec(Nr), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nr), on = !!(Ih || ja || qa), Or = Ih ? document.documentMode : ja ? +ja[1] : qa ? +qa[1] : 0, Ln = !on && /gecko\/(\d+)/i.test(Nr);
18446
- Ln && +(/Firefox\/(\d+)/.exec(Nr) || [0, 0])[1];
18447
- const Ka = !on && /Chrome\/(\d+)/.exec(Nr), Ht = !!Ka, fh = Ka ? +Ka[1] : 0, Vt = !on && !!tr && /Apple Computer/.test(tr.vendor), ti = Vt && (/Mobile\/\w+/.test(Nr) || !!tr && tr.maxTouchPoints > 2), mn = ti || (tr ? /Mac/.test(tr.platform) : !1), xb = tr ? /Win/.test(tr.platform) : !1, Mn = /Android \d/.test(Nr), dA = !!fu && "webkitFontSmoothing" in fu.documentElement.style, Db = dA ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
18448
+ const nr = typeof navigator < "u" ? navigator : null, fu = typeof document < "u" ? document : null, Nr = nr && nr.userAgent || "", qa = /Edge\/(\d+)/.exec(Nr), Ih = /MSIE \d/.exec(Nr), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nr), on = !!(Ih || ja || qa), Or = Ih ? document.documentMode : ja ? +ja[1] : qa ? +qa[1] : 0, Hn = !on && /gecko\/(\d+)/i.test(Nr);
18449
+ Hn && +(/Firefox\/(\d+)/.exec(Nr) || [0, 0])[1];
18450
+ const Ka = !on && /Chrome\/(\d+)/.exec(Nr), Ht = !!Ka, fh = Ka ? +Ka[1] : 0, Vt = !on && !!nr && /Apple Computer/.test(nr.vendor), ti = Vt && (/Mobile\/\w+/.test(Nr) || !!nr && nr.maxTouchPoints > 2), mn = ti || (nr ? /Mac/.test(nr.platform) : !1), xb = nr ? /Win/.test(nr.platform) : !1, Mn = /Android \d/.test(Nr), dA = !!fu && "webkitFontSmoothing" in fu.documentElement.style, Db = dA ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
18448
18451
  function Sb(n) {
18449
18452
  let e = n.defaultView && n.defaultView.visualViewport;
18450
18453
  return e ? {
@@ -18459,7 +18462,7 @@ function Sb(n) {
18459
18462
  bottom: n.documentElement.clientHeight
18460
18463
  };
18461
18464
  }
18462
- function Ar(n, e) {
18465
+ function sr(n, e) {
18463
18466
  return typeof n == "number" ? n : n[e];
18464
18467
  }
18465
18468
  function kb(n) {
@@ -18477,7 +18480,7 @@ function mu(n, e, t) {
18477
18480
  if (A.nodeType != 1)
18478
18481
  continue;
18479
18482
  let a = A, l = a == i.body, c = l ? Sb(i) : kb(a), u = 0, d = 0;
18480
- if (e.top < c.top + Ar(r, "top") ? d = -(c.top - e.top + Ar(o, "top")) : e.bottom > c.bottom - Ar(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Ar(o, "top") - c.top : e.bottom - c.bottom + Ar(o, "bottom")), e.left < c.left + Ar(r, "left") ? u = -(c.left - e.left + Ar(o, "left")) : e.right > c.right - Ar(r, "right") && (u = e.right - c.right + Ar(o, "right")), u || d)
18483
+ if (e.top < c.top + sr(r, "top") ? d = -(c.top - e.top + sr(o, "top")) : e.bottom > c.bottom - sr(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + sr(o, "top") - c.top : e.bottom - c.bottom + sr(o, "bottom")), e.left < c.left + sr(r, "left") ? u = -(c.left - e.left + sr(o, "left")) : e.right > c.right - sr(r, "right") && (u = e.right - c.right + sr(o, "right")), u || d)
18481
18484
  if (l)
18482
18485
  i.defaultView.scrollBy(u, d);
18483
18486
  else {
@@ -18540,7 +18543,7 @@ function Eh(n, e) {
18540
18543
  if (u.nodeType == 1)
18541
18544
  g = u.getClientRects();
18542
18545
  else if (u.nodeType == 3)
18543
- g = sr(u).getClientRects();
18546
+ g = ar(u).getClientRects();
18544
18547
  else
18545
18548
  continue;
18546
18549
  for (let C = 0; C < g.length; C++) {
@@ -18632,7 +18635,7 @@ function Lb(n, e) {
18632
18635
  for (let c = A; r && c; c = Ji(c))
18633
18636
  c.draggable && (r = void 0);
18634
18637
  if (A = Pb(A, e), r) {
18635
- if (Ln && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
18638
+ if (Hn && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
18636
18639
  let u = r.childNodes[o], d;
18637
18640
  u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && o++;
18638
18641
  }
@@ -18657,14 +18660,14 @@ function mr(n, e) {
18657
18660
  }
18658
18661
  const Hb = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
18659
18662
  function vh(n, e, t) {
18660
- let { node: r, offset: o, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), A = dA || Ln;
18663
+ let { node: r, offset: o, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), A = dA || Hn;
18661
18664
  if (r.nodeType == 3)
18662
18665
  if (A && (Hb.test(r.nodeValue) || (t < 0 ? !o : o == r.nodeValue.length))) {
18663
- let l = mr(sr(r, o, o), t);
18664
- if (Ln && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
18665
- let c = mr(sr(r, o - 1, o - 1), -1);
18666
+ let l = mr(ar(r, o, o), t);
18667
+ if (Hn && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
18668
+ let c = mr(ar(r, o - 1, o - 1), -1);
18666
18669
  if (c.top == l.top) {
18667
- let u = mr(sr(r, o, o + 1), -1);
18670
+ let u = mr(ar(r, o, o + 1), -1);
18668
18671
  if (u.top != l.top)
18669
18672
  return vi(u, u.left < c.left);
18670
18673
  }
@@ -18672,35 +18675,35 @@ function vh(n, e, t) {
18672
18675
  return l;
18673
18676
  } else {
18674
18677
  let l = o, c = o, u = t < 0 ? 1 : -1;
18675
- return t < 0 && !o ? (c++, u = -1) : t >= 0 && o == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : c++, vi(mr(sr(r, l, c), u), u < 0);
18678
+ return t < 0 && !o ? (c++, u = -1) : t >= 0 && o == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : c++, vi(mr(ar(r, l, c), u), u < 0);
18676
18679
  }
18677
18680
  if (!n.state.doc.resolve(e - (i || 0)).parent.inlineContent) {
18678
- if (i == null && o && (t < 0 || o == Vn(r))) {
18681
+ if (i == null && o && (t < 0 || o == Wn(r))) {
18679
18682
  let l = r.childNodes[o - 1];
18680
18683
  if (l.nodeType == 1)
18681
18684
  return ia(l.getBoundingClientRect(), !1);
18682
18685
  }
18683
- if (i == null && o < Vn(r)) {
18686
+ if (i == null && o < Wn(r)) {
18684
18687
  let l = r.childNodes[o];
18685
18688
  if (l.nodeType == 1)
18686
18689
  return ia(l.getBoundingClientRect(), !0);
18687
18690
  }
18688
18691
  return ia(r.getBoundingClientRect(), t >= 0);
18689
18692
  }
18690
- if (i == null && o && (t < 0 || o == Vn(r))) {
18691
- let l = r.childNodes[o - 1], c = l.nodeType == 3 ? sr(l, Vn(l) - (A ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
18693
+ if (i == null && o && (t < 0 || o == Wn(r))) {
18694
+ let l = r.childNodes[o - 1], c = l.nodeType == 3 ? ar(l, Wn(l) - (A ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
18692
18695
  if (c)
18693
18696
  return vi(mr(c, 1), !1);
18694
18697
  }
18695
- if (i == null && o < Vn(r)) {
18698
+ if (i == null && o < Wn(r)) {
18696
18699
  let l = r.childNodes[o];
18697
18700
  for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
18698
18701
  l = l.nextSibling;
18699
- let c = l ? l.nodeType == 3 ? sr(l, 0, A ? 0 : 1) : l.nodeType == 1 ? l : null : null;
18702
+ let c = l ? l.nodeType == 3 ? ar(l, 0, A ? 0 : 1) : l.nodeType == 1 ? l : null : null;
18700
18703
  if (c)
18701
18704
  return vi(mr(c, -1), !0);
18702
18705
  }
18703
- return vi(mr(r.nodeType == 3 ? sr(r) : r, -t), t >= 0);
18706
+ return vi(mr(r.nodeType == 3 ? ar(r) : r, -t), t >= 0);
18704
18707
  }
18705
18708
  function vi(n, e) {
18706
18709
  if (n.width == 0)
@@ -18743,7 +18746,7 @@ function Nb(n, e, t) {
18743
18746
  if (a.nodeType == 1)
18744
18747
  l = a.getClientRects();
18745
18748
  else if (a.nodeType == 3)
18746
- l = sr(a, 0, a.nodeValue.length).getClientRects();
18749
+ l = ar(a, 0, a.nodeValue.length).getClientRects();
18747
18750
  else
18748
18751
  continue;
18749
18752
  for (let c = 0; c < l.length; c++) {
@@ -18776,7 +18779,7 @@ let Eu = null, Qu = null, vu = !1;
18776
18779
  function jb(n, e, t) {
18777
18780
  return Eu == e && Qu == t ? vu : (Eu = e, Qu = t, vu = t == "up" || t == "down" ? Nb(n, e, t) : qb(n, e, t));
18778
18781
  }
18779
- const En = 0, wu = 1, $r = 2, nr = 3;
18782
+ const En = 0, wu = 1, $r = 2, rr = 3;
18780
18783
  class gA {
18781
18784
  constructor(e, t, r, o) {
18782
18785
  this.parent = e, this.children = t, this.dom = r, this.contentDOM = o, this.dirty = En, r.pmViewDesc = this;
@@ -19030,7 +19033,7 @@ class gA {
19030
19033
  C = B;
19031
19034
  }
19032
19035
  let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), c = r.getSelection(), u = !1;
19033
- if ((Ln || Vt) && e == t) {
19036
+ if ((Hn || Vt) && e == t) {
19034
19037
  let { node: g, offset: C } = a;
19035
19038
  if (g.nodeType == 3) {
19036
19039
  if (u = !!(C && g.nodeValue[C - 1] == `
@@ -19049,7 +19052,7 @@ class gA {
19049
19052
  u = I && (I.nodeName == "BR" || I.contentEditable == "false");
19050
19053
  }
19051
19054
  }
19052
- if (Ln && c.focusNode && c.focusNode != l.node && c.focusNode.nodeType == 1) {
19055
+ if (Hn && c.focusNode && c.focusNode != l.node && c.focusNode.nodeType == 1) {
19053
19056
  let g = c.focusNode.childNodes[c.focusOffset];
19054
19057
  g && g.contentEditable == "false" && (o = !0);
19055
19058
  }
@@ -19086,10 +19089,10 @@ class gA {
19086
19089
  if (r == A ? e <= A && t >= r : e < A && t > r) {
19087
19090
  let a = r + i.border, l = A - i.border;
19088
19091
  if (e >= a && t <= l) {
19089
- this.dirty = e == r || t == A ? $r : wu, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = nr : i.markDirty(e - a, t - a);
19092
+ this.dirty = e == r || t == A ? $r : wu, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = rr : i.markDirty(e - a, t - a);
19090
19093
  return;
19091
19094
  } else
19092
- i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? $r : nr;
19095
+ i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? $r : rr;
19093
19096
  }
19094
19097
  r = A;
19095
19098
  }
@@ -19178,10 +19181,10 @@ class ho extends gA {
19178
19181
  return (!A || !A.dom) && (A = Eo.renderSpec(document, t.type.spec.toDOM(t, r), null, t.attrs)), new ho(e, t, A.dom, A.contentDOM || A.dom);
19179
19182
  }
19180
19183
  parseRule() {
19181
- return this.dirty & nr || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
19184
+ return this.dirty & rr || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
19182
19185
  }
19183
19186
  matchesMark(e) {
19184
- return this.dirty != nr && this.mark.eq(e);
19187
+ return this.dirty != rr && this.mark.eq(e);
19185
19188
  }
19186
19189
  markDirty(e, t) {
19187
19190
  if (super.markDirty(e, t), this.dirty != En) {
@@ -19302,7 +19305,7 @@ class Tr extends gA {
19302
19305
  // If this desc must be updated to match the given node decoration,
19303
19306
  // do so and return true.
19304
19307
  update(e, t, r, o) {
19305
- return this.dirty == nr || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, o), !0);
19308
+ return this.dirty == rr || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, o), !0);
19306
19309
  }
19307
19310
  updateInner(e, t, r, o) {
19308
19311
  this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(o, this.posAtStart), this.dirty = En;
@@ -19341,7 +19344,7 @@ class Qs extends Tr {
19341
19344
  return { skip: e || !0 };
19342
19345
  }
19343
19346
  update(e, t, r, o) {
19344
- return this.dirty == nr || this.dirty != En && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != En || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, o.trackWrites == this.nodeDOM && (o.trackWrites = null)), this.node = e, this.dirty = En, !0);
19347
+ return this.dirty == rr || this.dirty != En && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != En || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, o.trackWrites == this.nodeDOM && (o.trackWrites = null)), this.node = e, this.dirty = En, !0);
19345
19348
  }
19346
19349
  inParent() {
19347
19350
  let e = this.parent.contentDOM;
@@ -19364,7 +19367,7 @@ class Qs extends Tr {
19364
19367
  return new Qs(this.parent, o, this.outerDeco, this.innerDeco, i, i, r);
19365
19368
  }
19366
19369
  markDirty(e, t) {
19367
- super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = nr);
19370
+ super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = rr);
19368
19371
  }
19369
19372
  get domAtom() {
19370
19373
  return !1;
@@ -19395,7 +19398,7 @@ class Ub extends Tr {
19395
19398
  // through. If it does, and there's a `contentDOM` node, our logic
19396
19399
  // updates the children.
19397
19400
  update(e, t, r, o) {
19398
- if (this.dirty == nr)
19401
+ if (this.dirty == rr)
19399
19402
  return !1;
19400
19403
  if (this.spec.update) {
19401
19404
  let i = this.spec.update(e, t, r);
@@ -19574,7 +19577,7 @@ class Jb {
19574
19577
  }
19575
19578
  updateNodeAt(e, t, r, o, i) {
19576
19579
  let A = this.top.children[o];
19577
- return A.dirty == nr && A.dom == A.contentDOM && (A.dirty = $r), A.update(e, t, r, i) ? (this.destroyBetween(this.index, o), this.index++, !0) : !1;
19580
+ return A.dirty == rr && A.dom == A.contentDOM && (A.dirty = $r), A.update(e, t, r, i) ? (this.destroyBetween(this.index, o), this.index++, !0) : !1;
19578
19581
  }
19579
19582
  findIndexWithChild(e) {
19580
19583
  for (; ; ) {
@@ -19602,7 +19605,7 @@ class Jb {
19602
19605
  let c = this.preMatch.matched.get(l);
19603
19606
  if (c != null && c != i)
19604
19607
  return !1;
19605
- let u = l.dom, d, g = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != nr && Ga(t, l.outerDeco));
19608
+ let u = l.dom, d, g = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != rr && Ga(t, l.outerDeco));
19606
19609
  if (!g && l.update(e, t, r, o))
19607
19610
  return this.destroyBetween(this.index, a), l.dom != u && (this.changed = !0), this.index++, !0;
19608
19611
  if (!g && (d = this.recreateWrapper(l, e, t, r, o, A)))
@@ -19809,7 +19812,7 @@ function Fl(n, e = null) {
19809
19812
  function kh(n) {
19810
19813
  return n.editable ? n.hasFocus() : Oh(n) && document.activeElement && document.activeElement.contains(n.dom);
19811
19814
  }
19812
- function dr(n, e = !1) {
19815
+ function gr(n, e = !1) {
19813
19816
  let t = n.state.selection;
19814
19817
  if (Mh(n, t), !!kh(n)) {
19815
19818
  if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && Ht) {
@@ -19945,7 +19948,7 @@ function nx(n) {
19945
19948
  if (!t)
19946
19949
  return;
19947
19950
  let o, i, A = !1;
19948
- for (Ln && t.nodeType == 1 && r < WA(t) && Pi(t.childNodes[r], -1) && (A = !0); ; )
19951
+ for (Hn && t.nodeType == 1 && r < WA(t) && Pi(t.childNodes[r], -1) && (A = !0); ; )
19949
19952
  if (r > 0) {
19950
19953
  if (t.nodeType != 1)
19951
19954
  break;
@@ -20051,7 +20054,7 @@ function Wa(n, e, t) {
20051
20054
  n.domObserver.setCurSelection();
20052
20055
  let { state: o } = n;
20053
20056
  setTimeout(() => {
20054
- n.state == o && dr(n);
20057
+ n.state == o && gr(n);
20055
20058
  }, 50);
20056
20059
  }
20057
20060
  function Tu(n, e) {
@@ -20503,13 +20506,13 @@ class xx {
20503
20506
  node: i,
20504
20507
  pos: A,
20505
20508
  addAttr: !!(this.target && !this.target.draggable),
20506
- setUneditable: !!(this.target && Ln && !this.target.hasAttribute("contentEditable"))
20509
+ setUneditable: !!(this.target && Hn && !this.target.hasAttribute("contentEditable"))
20507
20510
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
20508
20511
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
20509
20512
  }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Dr(e, "pointer");
20510
20513
  }
20511
20514
  done() {
20512
- this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => dr(this.view)), this.view.input.mouseDown = null;
20515
+ this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => gr(this.view)), this.view.input.mouseDown = null;
20513
20516
  }
20514
20517
  up(e) {
20515
20518
  if (this.done(), !this.view.dom.contains(e.target))
@@ -20549,7 +20552,7 @@ Xt.compositionstart = Xt.compositionupdate = (n) => {
20549
20552
  let { state: e } = n, t = e.selection.$to;
20550
20553
  if (e.selection instanceof Le && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
20551
20554
  n.markCursor = n.state.storedMarks || t.marks(), XA(n, !0), n.markCursor = null;
20552
- else if (XA(n, !e.selection.empty), Ln && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
20555
+ else if (XA(n, !e.selection.empty), Hn && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
20553
20556
  let r = n.domSelectionRange();
20554
20557
  for (let o = r.focusNode, i = r.focusOffset; o && o.nodeType == 1 && i != 0; ) {
20555
20558
  let A = i < 0 ? o.lastChild : o.childNodes[i - 1];
@@ -20732,7 +20735,7 @@ Xt.drop = (n, e) => {
20732
20735
  };
20733
20736
  Wt.focus = (n) => {
20734
20737
  n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
20735
- n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && dr(n);
20738
+ n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && gr(n);
20736
20739
  }, 20));
20737
20740
  };
20738
20741
  Wt.blur = (n, e) => {
@@ -21321,7 +21324,7 @@ class Hx {
21321
21324
  onSelectionChange() {
21322
21325
  if (Mu(this.view)) {
21323
21326
  if (this.suppressingSelectionUpdates)
21324
- return dr(this.view);
21327
+ return gr(this.view);
21325
21328
  if (on && Or <= 11 && !this.view.state.selection.empty) {
21326
21329
  let e = this.view.domSelectionRange();
21327
21330
  if (e.focusNode && go(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
@@ -21369,7 +21372,7 @@ class Hx {
21369
21372
  let d = this.registerMutation(t[u], l);
21370
21373
  d && (i = i < 0 ? d.from : Math.min(d.from, i), A = A < 0 ? d.to : Math.max(d.to, A), d.typeOver && (a = !0));
21371
21374
  }
21372
- if (Ln && l.length) {
21375
+ if (Hn && l.length) {
21373
21376
  let u = l.filter((d) => d.nodeName == "BR");
21374
21377
  if (u.length == 2) {
21375
21378
  let [d, g] = u;
@@ -21383,7 +21386,7 @@ class Hx {
21383
21386
  }
21384
21387
  }
21385
21388
  let c = null;
21386
- i < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Es(r) && (c = Fl(e)) && c.eq(He.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, dr(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || o) && (i > -1 && (e.docView.markDirty(i, A), Nx(e)), this.handleDOMChange(i, A, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || dr(e), this.currentSelection.set(r));
21389
+ i < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Es(r) && (c = Fl(e)) && c.eq(He.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, gr(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || o) && (i > -1 && (e.docView.markDirty(i, A), Nx(e)), this.handleDOMChange(i, A, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || gr(e), this.currentSelection.set(r));
21387
21390
  }
21388
21391
  registerMutation(e, t) {
21389
21392
  if (t.indexOf(e.target) > -1)
@@ -21421,7 +21424,7 @@ class Hx {
21421
21424
  let Nu = /* @__PURE__ */ new WeakMap(), Yu = !1;
21422
21425
  function Nx(n) {
21423
21426
  if (!Nu.has(n) && (Nu.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
21424
- if (n.requiresGeckoHackNode = Ln, Yu)
21427
+ if (n.requiresGeckoHackNode = Hn, Yu)
21425
21428
  return;
21426
21429
  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."), Yu = !0;
21427
21430
  }
@@ -21546,7 +21549,7 @@ function Gx(n, e, t, r, o) {
21546
21549
  let v = I.start, G = I.endA, w, O, U;
21547
21550
  if (T) {
21548
21551
  if (B.pos == Q.pos)
21549
- on && Or <= 11 && B.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => dr(n), 20)), w = n.state.tr.delete(v, G), O = u.resolve(I.start).marksAcross(u.resolve(I.endA));
21552
+ on && Or <= 11 && B.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => gr(n), 20)), w = n.state.tr.delete(v, G), O = u.resolve(I.start).marksAcross(u.resolve(I.endA));
21550
21553
  else if (
21551
21554
  // Adding or removing a mark
21552
21555
  I.endA == I.endB && (U = Jx(B.parent.content.cut(B.parentOffset, Q.parentOffset), b.parent.content.cut(b.parentOffset, I.endA - b.start())))
@@ -21720,7 +21723,7 @@ class Xx {
21720
21723
  let I = Ht ? this.trackWrites = this.domSelectionRange().focusNode : null;
21721
21724
  this.composing && (this.input.compositionNode = Sx(this)), (i || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = yu(e.doc, c, l, this.dom, this)), I && !this.trackWrites && (C = !0);
21722
21725
  }
21723
- C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && tx(this)) ? dr(this, C) : (Mh(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
21726
+ C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && tx(this)) ? gr(this, C) : (Mh(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
21724
21727
  }
21725
21728
  this.updatePluginViews(o), !((r = this.dragging) === null || r === void 0) && r.node && !o.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, o), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : g && Ob(g);
21726
21729
  }
@@ -21807,7 +21810,7 @@ class Xx {
21807
21810
  Focus the editor.
21808
21811
  */
21809
21812
  focus() {
21810
- this.domObserver.stop(), this.editable && Tb(this.dom), dr(this), this.domObserver.start();
21813
+ this.domObserver.stop(), this.editable && Tb(this.dom), gr(this), this.domObserver.start();
21811
21814
  }
21812
21815
  /**
21813
21816
  Get the document root in which the editor exists. This will
@@ -23215,7 +23218,7 @@ class Ho {
23215
23218
  type: ua(A.name, this.schema)
23216
23219
  }, l = [], c = ke(A, "addKeyboardShortcuts", a);
23217
23220
  let u = {};
23218
- if (A.type === "mark" && ke(A, "exitable", a) && (u.ArrowRight = () => Hn.handleExit({ editor: e, mark: A })), c) {
23221
+ if (A.type === "mark" && ke(A, "exitable", a) && (u.ArrowRight = () => Nn.handleExit({ editor: e, mark: A })), c) {
23219
23222
  const B = Object.fromEntries(Object.entries(c()).map(([Q, b]) => [Q, () => b({ editor: e })]));
23220
23223
  u = { ...u, ...B };
23221
23224
  }
@@ -23382,7 +23385,7 @@ const GD = Yt.create({
23382
23385
  addProseMirrorPlugins() {
23383
23386
  return [
23384
23387
  new cn({
23385
- key: new or("clipboardTextSerializer"),
23388
+ key: new ir("clipboardTextSerializer"),
23386
23389
  props: {
23387
23390
  clipboardTextSerializer: () => {
23388
23391
  const { editor: n } = this, { state: e, schema: t } = n, { doc: r, selection: o } = e, { ranges: i } = o, A = Math.min(...i.map((u) => u.$from.pos)), a = Math.max(...i.map((u) => u.$to.pos)), l = sp(t);
@@ -23506,7 +23509,7 @@ const A0 = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
23506
23509
  function Vl(n) {
23507
23510
  return n instanceof Le;
23508
23511
  }
23509
- function ur(n = 0, e = 0, t = 0) {
23512
+ function dr(n = 0, e = 0, t = 0) {
23510
23513
  return Math.min(Math.max(n, e), t);
23511
23514
  }
23512
23515
  function ap(n, e = null) {
@@ -23518,7 +23521,7 @@ function ap(n, e = null) {
23518
23521
  if (e === "end")
23519
23522
  return r;
23520
23523
  const o = t.from, i = r.to;
23521
- return e === "all" ? Le.create(n, ur(0, o, i), ur(n.content.size, o, i)) : Le.create(n, ur(e, o, i), ur(e, o, i));
23524
+ return e === "all" ? Le.create(n, dr(0, o, i), dr(n.content.size, o, i)) : Le.create(n, dr(e, o, i), dr(e, o, i));
23522
23525
  }
23523
23526
  function Wl() {
23524
23527
  return [
@@ -23917,7 +23920,7 @@ function gp(n) {
23917
23920
  return n instanceof Oe;
23918
23921
  }
23919
23922
  function hp(n, e, t) {
23920
- const o = n.state.doc.content.size, i = ur(e, 0, o), A = ur(t, 0, o), a = n.coordsAtPos(i), l = n.coordsAtPos(A, -1), c = Math.min(a.top, l.top), u = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), g = Math.max(a.right, l.right), C = g - d, I = u - c, b = {
23923
+ const o = n.state.doc.content.size, i = dr(e, 0, o), A = dr(t, 0, o), a = n.coordsAtPos(i), l = n.coordsAtPos(A, -1), c = Math.min(a.top, l.top), u = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), g = Math.max(a.right, l.right), C = g - d, I = u - c, b = {
23921
23924
  top: c,
23922
23925
  bottom: u,
23923
23926
  left: d,
@@ -23982,13 +23985,13 @@ const U0 = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
23982
23985
  return i.isTextblock ? o().command(({ commands: A }) => Xu(i, e)(t) ? !0 : A.clearNodes()).command(({ state: A }) => Xu(i, e)(A, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
23983
23986
  }, V0 = (n) => ({ tr: e, dispatch: t }) => {
23984
23987
  if (t) {
23985
- const { doc: r } = e, o = ur(n, 0, r.content.size), i = Oe.create(r, o);
23988
+ const { doc: r } = e, o = dr(n, 0, r.content.size), i = Oe.create(r, o);
23986
23989
  e.setSelection(i);
23987
23990
  }
23988
23991
  return !0;
23989
23992
  }, W0 = (n) => ({ tr: e, dispatch: t }) => {
23990
23993
  if (t) {
23991
- const { doc: r } = e, { from: o, to: i } = typeof n == "number" ? { from: n, to: n } : n, A = Le.atStart(r).from, a = Le.atEnd(r).to, l = ur(o, A, a), c = ur(i, A, a), u = Le.create(r, l, c);
23994
+ const { doc: r } = e, { from: o, to: i } = typeof n == "number" ? { from: n, to: n } : n, A = Le.atStart(r).from, a = Le.atEnd(r).to, l = dr(o, A, a), c = dr(i, A, a), u = Le.create(r, l, c);
23992
23995
  e.setSelection(u);
23993
23996
  }
23994
23997
  return !0;
@@ -24265,7 +24268,7 @@ const cS = Yt.create({
24265
24268
  addProseMirrorPlugins() {
24266
24269
  return [
24267
24270
  new cn({
24268
- key: new or("editable"),
24271
+ key: new ir("editable"),
24269
24272
  props: {
24270
24273
  editable: () => this.editor.options.editable
24271
24274
  }
@@ -24278,7 +24281,7 @@ const cS = Yt.create({
24278
24281
  const { editor: n } = this;
24279
24282
  return [
24280
24283
  new cn({
24281
- key: new or("focusEvents"),
24284
+ key: new ir("focusEvents"),
24282
24285
  props: {
24283
24286
  handleDOMEvents: {
24284
24287
  focus: (e, t) => {
@@ -24351,7 +24354,7 @@ const cS = Yt.create({
24351
24354
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
24352
24355
  // with many other commands.
24353
24356
  new cn({
24354
- key: new or("clearDocument"),
24357
+ key: new ir("clearDocument"),
24355
24358
  appendTransaction: (n, e, t) => {
24356
24359
  if (!(n.some((I) => I.docChanged) && !e.doc.eq(t.doc)))
24357
24360
  return;
@@ -24376,7 +24379,7 @@ const cS = Yt.create({
24376
24379
  addProseMirrorPlugins() {
24377
24380
  return [
24378
24381
  new cn({
24379
- key: new or("tabindex"),
24382
+ key: new ir("tabindex"),
24380
24383
  props: {
24381
24384
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
24382
24385
  }
@@ -24984,7 +24987,7 @@ function _i(n) {
24984
24987
  }
24985
24988
  });
24986
24989
  }
24987
- class Hn {
24990
+ class Nn {
24988
24991
  constructor(e = {}) {
24989
24992
  this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
24990
24993
  name: this.name,
@@ -25000,7 +25003,7 @@ class Hn {
25000
25003
  })) || {};
25001
25004
  }
25002
25005
  static create(e = {}) {
25003
- return new Hn(e);
25006
+ return new Nn(e);
25004
25007
  }
25005
25008
  configure(e = {}) {
25006
25009
  const t = this.extend({
@@ -25010,7 +25013,7 @@ class Hn {
25010
25013
  return t.name = this.name, t.parent = this.parent, t;
25011
25014
  }
25012
25015
  extend(e = {}) {
25013
- const t = new Hn(e);
25016
+ const t = new Nn(e);
25014
25017
  return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = Ne(ke(t, "addOptions", {
25015
25018
  name: t.name
25016
25019
  })), t.storage = Ne(ke(t, "addStorage", {
@@ -25088,7 +25091,7 @@ var An = "top", vn = "bottom", wn = "right", sn = "left", Zl = "auto", hA = [An,
25088
25091
  }, []), Cp = /* @__PURE__ */ [].concat(hA, [Zl]).reduce(function(n, e) {
25089
25092
  return n.concat([e, e + "-" + ri, e + "-" + $i]);
25090
25093
  }, []), ES = "beforeRead", QS = "read", vS = "afterRead", wS = "beforeMain", yS = "main", bS = "afterMain", xS = "beforeWrite", DS = "write", SS = "afterWrite", kS = [ES, QS, vS, wS, yS, bS, xS, DS, SS];
25091
- function rr(n) {
25094
+ function or(n) {
25092
25095
  return n ? (n.nodeName || "").toLowerCase() : null;
25093
25096
  }
25094
25097
  function hn(n) {
@@ -25118,7 +25121,7 @@ function MS(n) {
25118
25121
  var e = n.state;
25119
25122
  Object.keys(e.elements).forEach(function(t) {
25120
25123
  var r = e.styles[t] || {}, o = e.attributes[t] || {}, i = e.elements[t];
25121
- !Qn(i) || !rr(i) || (Object.assign(i.style, r), Object.keys(o).forEach(function(A) {
25124
+ !Qn(i) || !or(i) || (Object.assign(i.style, r), Object.keys(o).forEach(function(A) {
25122
25125
  var a = o[A];
25123
25126
  a === !1 ? i.removeAttribute(A) : i.setAttribute(A, a === !0 ? "" : a);
25124
25127
  }));
@@ -25142,7 +25145,7 @@ function OS(n) {
25142
25145
  var o = e.elements[r], i = e.attributes[r] || {}, A = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : t[r]), a = A.reduce(function(l, c) {
25143
25146
  return l[c] = "", l;
25144
25147
  }, {});
25145
- !Qn(o) || !rr(o) || (Object.assign(o.style, a), Object.keys(i).forEach(function(l) {
25148
+ !Qn(o) || !or(o) || (Object.assign(o.style, a), Object.keys(i).forEach(function(l) {
25146
25149
  o.removeAttribute(l);
25147
25150
  }));
25148
25151
  });
@@ -25156,7 +25159,7 @@ const Ip = {
25156
25159
  effect: OS,
25157
25160
  requires: ["computeStyles"]
25158
25161
  };
25159
- function $n(n) {
25162
+ function er(n) {
25160
25163
  return n.split("-")[0];
25161
25164
  }
25162
25165
  var ao = Math.max, ns = Math.min, oi = Math.round;
@@ -25212,7 +25215,7 @@ function pr(n) {
25212
25215
  return hn(n).getComputedStyle(n);
25213
25216
  }
25214
25217
  function TS(n) {
25215
- return ["table", "td", "th"].indexOf(rr(n)) >= 0;
25218
+ return ["table", "td", "th"].indexOf(or(n)) >= 0;
25216
25219
  }
25217
25220
  function qr(n) {
25218
25221
  return ((Io(n) ? n.ownerDocument : (
@@ -25221,7 +25224,7 @@ function qr(n) {
25221
25224
  )) || window.document).documentElement;
25222
25225
  }
25223
25226
  function Ms(n) {
25224
- return rr(n) === "html" ? n : (
25227
+ return or(n) === "html" ? n : (
25225
25228
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
25226
25229
  // $FlowFixMe[incompatible-return]
25227
25230
  // $FlowFixMe[prop-missing]
@@ -25244,7 +25247,7 @@ function RS(n) {
25244
25247
  return null;
25245
25248
  }
25246
25249
  var o = Ms(n);
25247
- for (_l(o) && (o = o.host); Qn(o) && ["html", "body"].indexOf(rr(o)) < 0; ) {
25250
+ for (_l(o) && (o = o.host); Qn(o) && ["html", "body"].indexOf(or(o)) < 0; ) {
25248
25251
  var i = pr(o);
25249
25252
  if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
25250
25253
  return o;
@@ -25255,7 +25258,7 @@ function RS(n) {
25255
25258
  function pA(n) {
25256
25259
  for (var e = hn(n), t = od(n); t && TS(t) && pr(t).position === "static"; )
25257
25260
  t = od(t);
25258
- return t && (rr(t) === "html" || rr(t) === "body" && pr(t).position === "static") ? e : t || RS(n) || e;
25261
+ return t && (or(t) === "html" || or(t) === "body" && pr(t).position === "static") ? e : t || RS(n) || e;
25259
25262
  }
25260
25263
  function ec(n) {
25261
25264
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
@@ -25289,7 +25292,7 @@ var zS = function(e, t) {
25289
25292
  })) : e, Ep(typeof e != "number" ? e : Qp(e, hA));
25290
25293
  };
25291
25294
  function FS(n) {
25292
- var e, t = n.state, r = n.name, o = n.options, i = t.elements.arrow, A = t.modifiersData.popperOffsets, a = $n(t.placement), l = ec(a), c = [sn, wn].indexOf(a) >= 0, u = c ? "height" : "width";
25295
+ var e, t = n.state, r = n.name, o = n.options, i = t.elements.arrow, A = t.modifiersData.popperOffsets, a = er(t.placement), l = ec(a), c = [sn, wn].indexOf(a) >= 0, u = c ? "height" : "width";
25293
25296
  if (!(!i || !A)) {
25294
25297
  var d = zS(o.padding, t), g = $l(i), C = l === "y" ? An : sn, I = l === "y" ? vn : wn, B = t.rects.reference[u] + t.rects.reference[l] - A[l] - t.rects.popper[u], Q = A[l] - t.rects.reference[l], b = pA(i), T = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = B / 2 - Q / 2, v = d[C], G = T - g[u] - d[I], w = T / 2 - g[u] / 2 + S, O = zi(v, w, G), U = l;
25295
25298
  t.modifiersData[r] = (e = {}, e[U] = O, e.centerOffset = O - w, e);
@@ -25370,7 +25373,7 @@ function id(n) {
25370
25373
  }
25371
25374
  function qS(n) {
25372
25375
  var e = n.state, t = n.options, r = t.gpuAcceleration, o = r === void 0 ? !0 : r, i = t.adaptive, A = i === void 0 ? !0 : i, a = t.roundOffsets, l = a === void 0 ? !0 : a, c = {
25373
- placement: $n(e.placement),
25376
+ placement: er(e.placement),
25374
25377
  variation: Ai(e.placement),
25375
25378
  popper: e.elements.popper,
25376
25379
  popperRect: e.rects.popper,
@@ -25478,7 +25481,7 @@ function rc(n) {
25478
25481
  return /auto|scroll|overlay|hidden/.test(t + o + r);
25479
25482
  }
25480
25483
  function vp(n) {
25481
- return ["html", "body", "#document"].indexOf(rr(n)) >= 0 ? n.ownerDocument.body : Qn(n) && rc(n) ? n : vp(Ms(n));
25484
+ return ["html", "body", "#document"].indexOf(or(n)) >= 0 ? n.ownerDocument.body : Qn(n) && rc(n) ? n : vp(Ms(n));
25482
25485
  }
25483
25486
  function Fi(n, e) {
25484
25487
  var t;
@@ -25507,7 +25510,7 @@ function sd(n, e, t) {
25507
25510
  function ZS(n) {
25508
25511
  var e = Fi(Ms(n)), t = ["absolute", "fixed"].indexOf(pr(n).position) >= 0, r = t && Qn(n) ? pA(n) : n;
25509
25512
  return Io(r) ? e.filter(function(o) {
25510
- return Io(o) && mp(o, r) && rr(o) !== "body";
25513
+ return Io(o) && mp(o, r) && or(o) !== "body";
25511
25514
  }) : [];
25512
25515
  }
25513
25516
  function _S(n, e, t, r) {
@@ -25518,7 +25521,7 @@ function _S(n, e, t, r) {
25518
25521
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
25519
25522
  }
25520
25523
  function wp(n) {
25521
- var e = n.reference, t = n.element, r = n.placement, o = r ? $n(r) : null, i = r ? Ai(r) : null, A = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
25524
+ var e = n.reference, t = n.element, r = n.placement, o = r ? er(r) : null, i = r ? Ai(r) : null, A = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
25522
25525
  switch (o) {
25523
25526
  case An:
25524
25527
  l = {
@@ -25600,14 +25603,14 @@ function $S(n, e) {
25600
25603
  boundary: o,
25601
25604
  rootBoundary: i,
25602
25605
  padding: A
25603
- })[$n(B)], I;
25606
+ })[er(B)], I;
25604
25607
  }, {});
25605
25608
  return Object.keys(C).sort(function(I, B) {
25606
25609
  return C[I] - C[B];
25607
25610
  });
25608
25611
  }
25609
25612
  function ek(n) {
25610
- if ($n(n) === Zl)
25613
+ if (er(n) === Zl)
25611
25614
  return [];
25612
25615
  var e = zA(n);
25613
25616
  return [Ad(n), e, Ad(e)];
@@ -25615,8 +25618,8 @@ function ek(n) {
25615
25618
  function tk(n) {
25616
25619
  var e = n.state, t = n.options, r = n.name;
25617
25620
  if (!e.modifiersData[r]._skip) {
25618
- for (var o = t.mainAxis, i = o === void 0 ? !0 : o, A = t.altAxis, a = A === void 0 ? !0 : A, l = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, g = t.altBoundary, C = t.flipVariations, I = C === void 0 ? !0 : C, B = t.allowedAutoPlacements, Q = e.options.placement, b = $n(Q), T = b === Q, S = l || (T || !I ? [zA(Q)] : ek(Q)), v = [Q].concat(S).reduce(function(E, q) {
25619
- return E.concat($n(q) === Zl ? $S(e, {
25621
+ for (var o = t.mainAxis, i = o === void 0 ? !0 : o, A = t.altAxis, a = A === void 0 ? !0 : A, l = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, g = t.altBoundary, C = t.flipVariations, I = C === void 0 ? !0 : C, B = t.allowedAutoPlacements, Q = e.options.placement, b = er(Q), T = b === Q, S = l || (T || !I ? [zA(Q)] : ek(Q)), v = [Q].concat(S).reduce(function(E, q) {
25622
+ return E.concat(er(q) === Zl ? $S(e, {
25620
25623
  placement: q,
25621
25624
  boundary: u,
25622
25625
  rootBoundary: d,
@@ -25625,7 +25628,7 @@ function tk(n) {
25625
25628
  allowedAutoPlacements: B
25626
25629
  }) : q);
25627
25630
  }, []), G = e.rects.reference, w = e.rects.popper, O = /* @__PURE__ */ new Map(), U = !0, F = v[0], j = 0; j < v.length; j++) {
25628
- var re = v[j], ae = $n(re), me = Ai(re) === ri, N = [An, vn].indexOf(ae) >= 0, K = N ? "width" : "height", L = eA(e, {
25631
+ var re = v[j], ae = er(re), me = Ai(re) === ri, N = [An, vn].indexOf(ae) >= 0, K = N ? "width" : "height", L = eA(e, {
25629
25632
  placement: re,
25630
25633
  boundary: u,
25631
25634
  rootBoundary: d,
@@ -25710,7 +25713,7 @@ const ok = {
25710
25713
  fn: rk
25711
25714
  };
25712
25715
  function ik(n, e, t) {
25713
- var r = $n(n), o = [sn, An].indexOf(r) >= 0 ? -1 : 1, i = typeof t == "function" ? t(Object.assign({}, e, {
25716
+ var r = er(n), o = [sn, An].indexOf(r) >= 0 ? -1 : 1, i = typeof t == "function" ? t(Object.assign({}, e, {
25714
25717
  placement: n
25715
25718
  })) : t, A = i[0], a = i[1];
25716
25719
  return A = A || 0, a = (a || 0) * o, [sn, wn].indexOf(r) >= 0 ? {
@@ -25759,7 +25762,7 @@ function uk(n) {
25759
25762
  rootBoundary: c,
25760
25763
  padding: d,
25761
25764
  altBoundary: u
25762
- }), b = $n(e.placement), T = Ai(e.placement), S = !T, v = ec(b), G = ck(v), w = e.modifiersData.popperOffsets, O = e.rects.reference, U = e.rects.popper, F = typeof B == "function" ? B(Object.assign({}, e.rects, {
25765
+ }), b = er(e.placement), T = Ai(e.placement), S = !T, v = ec(b), G = ck(v), w = e.modifiersData.popperOffsets, O = e.rects.reference, U = e.rects.popper, F = typeof B == "function" ? B(Object.assign({}, e.rects, {
25763
25766
  placement: e.placement
25764
25767
  })) : B, j = typeof F == "number" ? {
25765
25768
  mainAxis: F,
@@ -25780,8 +25783,8 @@ function uk(n) {
25780
25783
  w[v] = $, ae[v] = $ - X;
25781
25784
  }
25782
25785
  if (a) {
25783
- var Re, J = v === "x" ? An : sn, ue = v === "x" ? vn : wn, Ee = w[G], ze = G === "y" ? "height" : "width", Qt = Ee + Q[J], Se = Ee - Q[ue], _t = [An, sn].indexOf(b) !== -1, jt = (Re = re == null ? void 0 : re[G]) != null ? Re : 0, Yn = _t ? Qt : Ee - O[ze] - U[ze] - jt + j.altAxis, vt = _t ? Ee + O[ze] + U[ze] - jt - j.altAxis : Se, qn = C && _t ? PS(Yn, Ee, vt) : zi(C ? Yn : Qt, Ee, C ? vt : Se);
25784
- w[G] = qn, ae[G] = qn - Ee;
25786
+ var Re, J = v === "x" ? An : sn, ue = v === "x" ? vn : wn, Ee = w[G], ze = G === "y" ? "height" : "width", Qt = Ee + Q[J], Se = Ee - Q[ue], _t = [An, sn].indexOf(b) !== -1, jt = (Re = re == null ? void 0 : re[G]) != null ? Re : 0, qn = _t ? Qt : Ee - O[ze] - U[ze] - jt + j.altAxis, vt = _t ? Ee + O[ze] + U[ze] - jt - j.altAxis : Se, jn = C && _t ? PS(qn, Ee, vt) : zi(C ? qn : Qt, Ee, C ? vt : Se);
25787
+ w[G] = jn, ae[G] = jn - Ee;
25785
25788
  }
25786
25789
  e.modifiersData[r] = ae;
25787
25790
  }
@@ -25815,7 +25818,7 @@ function Ck(n, e, t) {
25815
25818
  x: 0,
25816
25819
  y: 0
25817
25820
  };
25818
- return (r || !r && !t) && ((rr(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
25821
+ return (r || !r && !t) && ((or(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
25819
25822
  rc(i)) && (a = hk(e)), Qn(e) ? (l = ii(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = nc(i))), {
25820
25823
  x: A.left + a.scrollLeft - l.x,
25821
25824
  y: A.top + a.scrollTop - l.y,
@@ -26108,15 +26111,15 @@ function Cd(n, e) {
26108
26111
  }
26109
26112
  return !1;
26110
26113
  }
26111
- var Un = {
26114
+ var Gn = {
26112
26115
  isTouch: !1
26113
26116
  }, Id = 0;
26114
26117
  function Fk() {
26115
- Un.isTouch || (Un.isTouch = !0, window.performance && document.addEventListener("mousemove", kp));
26118
+ Gn.isTouch || (Gn.isTouch = !0, window.performance && document.addEventListener("mousemove", kp));
26116
26119
  }
26117
26120
  function kp() {
26118
26121
  var n = performance.now();
26119
- n - Id < 20 && (Un.isTouch = !1, document.removeEventListener("mousemove", kp)), Id = n;
26122
+ n - Id < 20 && (Gn.isTouch = !1, document.removeEventListener("mousemove", kp)), Id = n;
26120
26123
  }
26121
26124
  function Lk() {
26122
26125
  var n = document.activeElement;
@@ -26165,7 +26168,7 @@ process.env.NODE_ENV !== "production" && jk();
26165
26168
  function jk() {
26166
26169
  nA = /* @__PURE__ */ new Set();
26167
26170
  }
26168
- function ar(n, e) {
26171
+ function lr(n, e) {
26169
26172
  if (n && !nA.has(e)) {
26170
26173
  var t;
26171
26174
  nA.add(e), (t = console).warn.apply(t, Mp(e));
@@ -26297,7 +26300,7 @@ function Rp(n, e) {
26297
26300
  var o = xk(dn, Object.keys(Op)), i = !bk(o, r);
26298
26301
  i && (i = e.filter(function(A) {
26299
26302
  return A.name === r;
26300
- }).length === 0), ar(i, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
26303
+ }).length === 0), lr(i, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
26301
26304
 
26302
26305
  `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
26303
26306
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
@@ -26369,9 +26372,9 @@ function Zk(n, e) {
26369
26372
  state: S,
26370
26373
  plugins: T,
26371
26374
  // methods
26372
- clearDelayTimeouts: Yn,
26375
+ clearDelayTimeouts: qn,
26373
26376
  setProps: vt,
26374
- setContent: qn,
26377
+ setContent: jn,
26375
26378
  show: di,
26376
26379
  hide: Qo,
26377
26380
  hideWithInteractivity: gi,
@@ -26414,7 +26417,7 @@ function Zk(n, e) {
26414
26417
  return al(w);
26415
26418
  }
26416
26419
  function L(ee) {
26417
- return v.state.isMounted && !v.state.isVisible || Un.isTouch || u && u.type === "focus" ? 0 : ha(v.props.delay, ee ? 0 : 1, dn.delay);
26420
+ return v.state.isMounted && !v.state.isVisible || Gn.isTouch || u && u.type === "focus" ? 0 : ha(v.props.delay, ee ? 0 : 1, dn.delay);
26418
26421
  }
26419
26422
  function X(ee) {
26420
26423
  ee === void 0 && (ee = !1), w.style.pointerEvents = v.props.interactive && !ee ? "" : "none", w.style.zIndex = "" + v.props.zIndex;
@@ -26456,13 +26459,13 @@ function Zk(n, e) {
26456
26459
  });
26457
26460
  }
26458
26461
  function M(ee) {
26459
- if (!(Un.isTouch && (l || ee.type === "mousedown"))) {
26462
+ if (!(Gn.isTouch && (l || ee.type === "mousedown"))) {
26460
26463
  var De = ee.composedPath && ee.composedPath()[0] || ee.target;
26461
26464
  if (!(v.props.interactive && Cd(w, De))) {
26462
26465
  if (Ro(v.props.triggerTarget || n).some(function(Te) {
26463
26466
  return Cd(Te, De);
26464
26467
  })) {
26465
- if (Un.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
26468
+ if (Gn.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
26466
26469
  return;
26467
26470
  } else
26468
26471
  Ae("onClickOutside", [v, ee]);
@@ -26578,7 +26581,7 @@ function Zk(n, e) {
26578
26581
  v.props.trigger.indexOf("focusin") < 0 && ee.target !== me() || v.props.interactive && ee.relatedTarget && w.contains(ee.relatedTarget) || Se(ee);
26579
26582
  }
26580
26583
  function Re(ee) {
26581
- return Un.isTouch ? re() !== ee.type.indexOf("touch") >= 0 : !1;
26584
+ return Gn.isTouch ? re() !== ee.type.indexOf("touch") >= 0 : !1;
26582
26585
  }
26583
26586
  function J() {
26584
26587
  ue();
@@ -26590,10 +26593,10 @@ function Zk(n, e) {
26590
26593
  enabled: !0,
26591
26594
  phase: "beforeWrite",
26592
26595
  requires: ["computeStyles"],
26593
- fn: function(ir) {
26594
- var Cn = ir.state;
26596
+ fn: function(Ar) {
26597
+ var Cn = Ar.state;
26595
26598
  if (ae()) {
26596
- var jn = K(), jr = jn.box;
26599
+ var Kn = K(), jr = Kn.box;
26597
26600
  ["placement", "reference-hidden", "escaped"].forEach(function(vo) {
26598
26601
  vo === "placement" ? jr.setAttribute("data-placement", Cn.placement) : Cn.attributes.popper["data-popper-" + vo] ? jr.setAttribute("data-" + vo, "") : jr.removeAttribute("data-" + vo);
26599
26602
  }), Cn.attributes.popper = {};
@@ -26642,7 +26645,7 @@ function Zk(n, e) {
26642
26645
  }
26643
26646
  function Ee() {
26644
26647
  var ee = v.props.appendTo, De, Te = me();
26645
- v.props.interactive && ee === Dp || ee === "parent" ? De = Te.parentNode : De = Sp(ee, [Te]), De.contains(w) || De.appendChild(w), v.state.isMounted = !0, J(), process.env.NODE_ENV !== "production" && ar(v.props.interactive && ee === dn.appendTo && Te.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
26648
+ v.props.interactive && ee === Dp || ee === "parent" ? De = Te.parentNode : De = Sp(ee, [Te]), De.contains(w) || De.appendChild(w), v.state.isMounted = !0, J(), process.env.NODE_ENV !== "production" && lr(v.props.interactive && ee === dn.appendTo && Te.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
26646
26649
 
26647
26650
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
26648
26651
 
@@ -26656,7 +26659,7 @@ function Zk(n, e) {
26656
26659
  function Qt(ee) {
26657
26660
  v.clearDelayTimeouts(), ee && Ae("onTrigger", [v, ee]), q();
26658
26661
  var De = L(!0), Te = j(), Y = Te[0], te = Te[1];
26659
- Un.isTouch && Y === "hold" && te && (De = te), De ? r = setTimeout(function() {
26662
+ Gn.isTouch && Y === "hold" && te && (De = te), De ? r = setTimeout(function() {
26660
26663
  v.show();
26661
26664
  }, De) : v.show();
26662
26665
  }
@@ -26680,11 +26683,11 @@ function Zk(n, e) {
26680
26683
  function jt() {
26681
26684
  v.hide(), v.state.isEnabled = !1;
26682
26685
  }
26683
- function Yn() {
26686
+ function qn() {
26684
26687
  clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i);
26685
26688
  }
26686
26689
  function vt(ee) {
26687
- if (process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("setProps")), !v.state.isDestroyed) {
26690
+ if (process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("setProps")), !v.state.isDestroyed) {
26688
26691
  Ae("onBeforeUpdate", [v, ee]), he();
26689
26692
  var De = v.props, Te = md(n, Object.assign({}, De, hd(ee), {
26690
26693
  ignoreAttributes: !0
@@ -26696,14 +26699,14 @@ function Zk(n, e) {
26696
26699
  })), Ae("onAfterUpdate", [v, ee]);
26697
26700
  }
26698
26701
  }
26699
- function qn(ee) {
26702
+ function jn(ee) {
26700
26703
  v.setProps({
26701
26704
  content: ee
26702
26705
  });
26703
26706
  }
26704
26707
  function di() {
26705
- process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("show"));
26706
- var ee = v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y = Un.isTouch && !v.props.touch, te = ha(v.props.duration, 0, dn.duration);
26708
+ process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("show"));
26709
+ var ee = v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y = Gn.isTouch && !v.props.touch, te = ha(v.props.duration, 0, dn.duration);
26707
26710
  if (!(ee || De || Te || Y) && !me().hasAttribute("disabled") && (Ae("onShow", [v], !1), v.props.onShow(v) !== !1)) {
26708
26711
  if (v.state.isVisible = !0, ae() && (w.style.visibility = "visible"), X(), q(), v.state.isMounted || (w.style.transition = "none"), ae()) {
26709
26712
  var V = K(), le = V.box, Be = V.content;
@@ -26713,8 +26716,8 @@ function Zk(n, e) {
26713
26716
  var gt;
26714
26717
  if (!(!v.state.isVisible || c)) {
26715
26718
  if (c = !0, w.offsetHeight, w.style.transition = v.props.moveTransition, ae() && v.props.animation) {
26716
- var Dn = K(), ir = Dn.box, Cn = Dn.content;
26717
- pa([ir, Cn], te), pd([ir, Cn], "visible");
26719
+ var Dn = K(), Ar = Dn.box, Cn = Dn.content;
26720
+ pa([Ar, Cn], te), pd([Ar, Cn], "visible");
26718
26721
  }
26719
26722
  z(), H(), gd(Ia, v), (gt = v.popperInstance) == null || gt.forceUpdate(), Ae("onMount", [v]), v.props.animation && ae() && ge(te, function() {
26720
26723
  v.state.isShown = !0, Ae("onShown", [v]);
@@ -26724,7 +26727,7 @@ function Zk(n, e) {
26724
26727
  }
26725
26728
  }
26726
26729
  function Qo() {
26727
- process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("hide"));
26730
+ process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("hide"));
26728
26731
  var ee = !v.state.isVisible, De = v.state.isDestroyed, Te = !v.state.isEnabled, Y = ha(v.props.duration, 1, dn.duration);
26729
26732
  if (!(ee || De || Te) && (Ae("onHide", [v], !1), v.props.onHide(v) !== !1)) {
26730
26733
  if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, A = !1, ae() && (w.style.visibility = "hidden"), W(), _(), X(!0), ae()) {
@@ -26735,17 +26738,17 @@ function Zk(n, e) {
26735
26738
  }
26736
26739
  }
26737
26740
  function gi(ee) {
26738
- process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("hideWithInteractivity")), N().addEventListener("mousemove", I), gd(DA, I), I(ee);
26741
+ process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("hideWithInteractivity")), N().addEventListener("mousemove", I), gd(DA, I), I(ee);
26739
26742
  }
26740
26743
  function hi() {
26741
- process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (ue(), ze().forEach(function(ee) {
26744
+ process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (ue(), ze().forEach(function(ee) {
26742
26745
  ee._tippy.unmount();
26743
26746
  }), w.parentNode && w.parentNode.removeChild(w), Ia = Ia.filter(function(ee) {
26744
26747
  return ee !== v;
26745
26748
  }), v.state.isMounted = !1, Ae("onHidden", [v]));
26746
26749
  }
26747
26750
  function pi() {
26748
- process.env.NODE_ENV !== "production" && ar(v.state.isDestroyed, So("destroy")), !v.state.isDestroyed && (v.clearDelayTimeouts(), v.unmount(), he(), delete n._tippy, v.state.isDestroyed = !0, Ae("onDestroy", [v]));
26751
+ process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, So("destroy")), !v.state.isDestroyed && (v.clearDelayTimeouts(), v.unmount(), he(), delete n._tippy, v.state.isDestroyed = !0, Ae("onDestroy", [v]));
26749
26752
  }
26750
26753
  }
26751
26754
  function ui(n, e) {
@@ -26757,7 +26760,7 @@ function ui(n, e) {
26757
26760
  }), o = Rk(n);
26758
26761
  if (process.env.NODE_ENV !== "production") {
26759
26762
  var i = tA(r.content), A = o.length > 1;
26760
- ar(i && A, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
26763
+ lr(i && A, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
26761
26764
 
26762
26765
  `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
26763
26766
 
@@ -26772,7 +26775,7 @@ function ui(n, e) {
26772
26775
  }
26773
26776
  ui.defaultProps = dn;
26774
26777
  ui.setDefaultProps = Jk;
26775
- ui.currentInput = Un;
26778
+ ui.currentInput = Gn;
26776
26779
  Object.assign({}, Ip, {
26777
26780
  effect: function(e) {
26778
26781
  var t = e.state, r = {
@@ -26885,7 +26888,7 @@ class _k {
26885
26888
  }
26886
26889
  }
26887
26890
  const zp = (n) => new cn({
26888
- key: typeof n.pluginKey == "string" ? new or(n.pluginKey) : n.pluginKey,
26891
+ key: typeof n.pluginKey == "string" ? new ir(n.pluginKey) : n.pluginKey,
26889
26892
  view: (e) => new _k({ view: e, ...n })
26890
26893
  });
26891
26894
  Yt.create({
@@ -26977,7 +26980,7 @@ class $k {
26977
26980
  }
26978
26981
  }
26979
26982
  const Fp = (n) => new cn({
26980
- key: typeof n.pluginKey == "string" ? new or(n.pluginKey) : n.pluginKey,
26983
+ key: typeof n.pluginKey == "string" ? new ir(n.pluginKey) : n.pluginKey,
26981
26984
  view: (e) => new $k({ view: e, ...n })
26982
26985
  });
26983
26986
  Yt.create({
@@ -27260,7 +27263,7 @@ const nM = (n = {}) => {
27260
27263
  })
27261
27264
  ];
27262
27265
  }
27263
- }), iM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, AM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, sM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, lM = Hn.create({
27266
+ }), iM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, AM = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, sM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aM = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, lM = Nn.create({
27264
27267
  name: "bold",
27265
27268
  addOptions() {
27266
27269
  return {
@@ -27350,7 +27353,7 @@ const nM = (n = {}) => {
27350
27353
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
27351
27354
  };
27352
27355
  }
27353
- }), vd = Hn.create({
27356
+ }), vd = Nn.create({
27354
27357
  name: "textStyle",
27355
27358
  priority: 101,
27356
27359
  addOptions() {
@@ -27425,7 +27428,7 @@ const nM = (n = {}) => {
27425
27428
  n
27426
27429
  ];
27427
27430
  }
27428
- }), dM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, gM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, hM = Hn.create({
27431
+ }), dM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, gM = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, hM = Nn.create({
27429
27432
  name: "code",
27430
27433
  addOptions() {
27431
27434
  return {
@@ -27582,7 +27585,7 @@ const nM = (n = {}) => {
27582
27585
  // this plugin creates a code block for pasted content from VS Code
27583
27586
  // we can also detect the copied code language
27584
27587
  new cn({
27585
- key: new or("codeBlockVSCodeHandler"),
27588
+ key: new ir("codeBlockVSCodeHandler"),
27586
27589
  props: {
27587
27590
  handlePaste: (n, e) => {
27588
27591
  if (!e.clipboardData || this.editor.isActive(this.type.name))
@@ -28129,9 +28132,9 @@ class Rn {
28129
28132
  return;
28130
28133
  }
28131
28134
  if (o) {
28132
- u.push(new Kn(d.map));
28135
+ u.push(new Un(d.map));
28133
28136
  let C = d.step.map(o.slice(i)), I;
28134
- C && A.maybeStep(C).doc && (I = A.mapping.maps[A.mapping.maps.length - 1], c.push(new Kn(I, void 0, void 0, c.length + u.length))), i--, I && o.appendMap(I, i);
28137
+ C && A.maybeStep(C).doc && (I = A.mapping.maps[A.mapping.maps.length - 1], c.push(new Un(I, void 0, void 0, c.length + u.length))), i--, I && o.appendMap(I, i);
28135
28138
  } else
28136
28139
  A.maybeStep(d.step);
28137
28140
  if (d.selection)
@@ -28142,7 +28145,7 @@ class Rn {
28142
28145
  addTransform(e, t, r, o) {
28143
28146
  let i = [], A = this.eventCount, a = this.items, l = !o && a.length ? a.get(a.length - 1) : null;
28144
28147
  for (let u = 0; u < e.steps.length; u++) {
28145
- let d = e.steps[u].invert(e.docs[u]), g = new Kn(e.mapping.maps[u], d, t), C;
28148
+ let d = e.steps[u].invert(e.docs[u]), g = new Un(e.mapping.maps[u], d, t), C;
28146
28149
  (C = l && l.merge(g)) && (g = C, u ? i.pop() : a = a.slice(0, a.length - 1)), i.push(g), t && (A++, t = void 0), o || (l = g);
28147
28150
  }
28148
28151
  let c = A - r.depth;
@@ -28156,7 +28159,7 @@ class Rn {
28156
28159
  }, e, t), r;
28157
28160
  }
28158
28161
  addMaps(e) {
28159
- return this.eventCount == 0 ? this : new Rn(this.items.append(e.map((t) => new Kn(t))), this.eventCount);
28162
+ return this.eventCount == 0 ? this : new Rn(this.items.append(e.map((t) => new Un(t))), this.eventCount);
28160
28163
  }
28161
28164
  // When the collab module receives remote changes, the history has
28162
28165
  // to know about those, so that it can adjust the steps that were
@@ -28178,13 +28181,13 @@ class Rn {
28178
28181
  let I = i.maps[C];
28179
28182
  if (g.step) {
28180
28183
  let B = e.steps[C].invert(e.docs[C]), Q = g.selection && g.selection.map(i.slice(l + 1, C));
28181
- Q && a++, r.push(new Kn(I, B, Q));
28184
+ Q && a++, r.push(new Un(I, B, Q));
28182
28185
  } else
28183
- r.push(new Kn(I));
28186
+ r.push(new Un(I));
28184
28187
  }, o);
28185
28188
  let c = [];
28186
28189
  for (let g = t; g < A; g++)
28187
- c.push(new Kn(i.maps[g]));
28190
+ c.push(new Un(i.maps[g]));
28188
28191
  let u = this.items.slice(0, o).append(c).append(r), d = new Rn(u, a);
28189
28192
  return d.emptyItemCount() > TM && (d = d.compress(this.items.length - r.length)), d;
28190
28193
  }
@@ -28210,7 +28213,7 @@ class Rn {
28210
28213
  if (r--, c && t.appendMap(c, r), l) {
28211
28214
  let u = A.selection && A.selection.map(t.slice(r));
28212
28215
  u && i++;
28213
- let d = new Kn(c.invert(), l, u), g, C = o.length - 1;
28216
+ let d = new Un(c.invert(), l, u), g, C = o.length - 1;
28214
28217
  (g = o.length && o[C].merge(d)) ? o[C] = g : o.push(d);
28215
28218
  }
28216
28219
  } else A.map && r--;
@@ -28225,7 +28228,7 @@ function RM(n, e) {
28225
28228
  return t = o, !1;
28226
28229
  }), n.slice(t);
28227
28230
  }
28228
- class Kn {
28231
+ class Un {
28229
28232
  constructor(e, t, r, o) {
28230
28233
  this.map = e, this.step = t, this.selection = r, this.mirrorOffset = o;
28231
28234
  }
@@ -28233,7 +28236,7 @@ class Kn {
28233
28236
  if (this.step && e.step && !e.selection) {
28234
28237
  let t = e.step.merge(this.step);
28235
28238
  if (t)
28236
- return new Kn(t.getMap().invert(), t, this.selection);
28239
+ return new Un(t.getMap().invert(), t, this.selection);
28237
28240
  }
28238
28241
  }
28239
28242
  }
@@ -28305,7 +28308,7 @@ function FA(n) {
28305
28308
  }
28306
28309
  return ma;
28307
28310
  }
28308
- const lo = new or("history"), HM = new or("closeHistory");
28311
+ const lo = new ir("history"), HM = new ir("closeHistory");
28309
28312
  function NM(n = {}) {
28310
28313
  return n = {
28311
28314
  depth: n.depth || 100,
@@ -28422,7 +28425,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
28422
28425
  })
28423
28426
  ];
28424
28427
  }
28425
- }), jM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, KM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, UM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, GM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JM = Hn.create({
28428
+ }), jM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, KM = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, UM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, GM = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JM = Nn.create({
28426
28429
  name: "italic",
28427
28430
  addOptions() {
28428
28431
  return {
@@ -28539,7 +28542,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
28539
28542
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
28540
28543
  };
28541
28544
  }
28542
- }), xd = Hn.create({
28545
+ }), xd = Nn.create({
28543
28546
  name: "textStyle",
28544
28547
  priority: 101,
28545
28548
  addOptions() {
@@ -28660,7 +28663,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
28660
28663
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
28661
28664
  };
28662
28665
  }
28663
- }), _M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, $M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e1 = Hn.create({
28666
+ }), _M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, $M = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e1 = Nn.create({
28664
28667
  name: "strike",
28665
28668
  addOptions() {
28666
28669
  return {
@@ -28726,7 +28729,7 @@ const Np = Hp(!1, !0), Yp = Hp(!0, !0), YM = Yt.create({
28726
28729
  const T = [];
28727
28730
  return this.options.bold !== !1 && T.push(lM.configure((n = this.options) === null || n === void 0 ? void 0 : n.bold)), this.options.blockquote !== !1 && T.push(oM.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && T.push(uM.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && T.push(hM.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && T.push(IM.configure((o = this.options) === null || o === void 0 ? void 0 : o.codeBlock)), this.options.document !== !1 && T.push(fM.configure((i = this.options) === null || i === void 0 ? void 0 : i.document)), this.options.dropcursor !== !1 && T.push(EM.configure((A = this.options) === null || A === void 0 ? void 0 : A.dropcursor)), this.options.gapcursor !== !1 && T.push(SM.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && T.push(kM.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && T.push(MM.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && T.push(YM.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && T.push(qM.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && T.push(JM.configure((g = this.options) === null || g === void 0 ? void 0 : g.italic)), this.options.listItem !== !1 && T.push(VM.configure((C = this.options) === null || C === void 0 ? void 0 : C.listItem)), this.options.orderedList !== !1 && T.push(XM.configure((I = this.options) === null || I === void 0 ? void 0 : I.orderedList)), this.options.paragraph !== !1 && T.push(ZM.configure((B = this.options) === null || B === void 0 ? void 0 : B.paragraph)), this.options.strike !== !1 && T.push(e1.configure((Q = this.options) === null || Q === void 0 ? void 0 : Q.strike)), this.options.text !== !1 && T.push(t1.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), T;
28728
28731
  }
28729
- }), r1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, i1 = Hn.create({
28732
+ }), r1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, i1 = Nn.create({
28730
28733
  name: "highlight",
28731
28734
  addOptions() {
28732
28735
  return {