@firstnoodle-ui/bui 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  var sp = Object.defineProperty;
2
2
  var lp = (n, e, t) => e in n ? sp(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var Ir = (n, e, t) => lp(n, typeof e != "symbol" ? e + "" : e, t);
3
+ var $r = (n, e, t) => lp(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { createElementBlock as v, openBlock as g, renderSlot as J, createElementVNode as w, defineComponent as F, toDisplayString as me, normalizeStyle as Te, createVNode as P, unref as k, ref as V, computed as te, createBlock as A, withCtx as B, resolveDynamicComponent as hr, normalizeClass as U, createCommentVNode as D, provide as ap, onMounted as Se, withModifiers as re, Fragment as O, renderList as Qt, onBeforeMount as Hr, watch as Xe, toRef as up, onBeforeUnmount as Bt, onUnmounted as cs, nextTick as bn, createStaticVNode as G, Teleport as Mi, withDirectives as Tr, vShow as xi, Transition as _l, useSlots as Si, withKeys as Ce, createSlots as ad, vModelText as dp, reactive as ud, createTextVNode as dd, shallowRef as cp, h as Hi, getCurrentInstance as fp, watchEffect as pp, markRaw as hp, customRef as mp, resolveComponent as gp } from "vue";
5
5
  const Mn = (n, e) => {
6
6
  const t = n.__vccOpts || n;
@@ -25,7 +25,7 @@ function Cp(n, e) {
25
25
  }, null, -1))
26
26
  ]);
27
27
  }
28
- const vy = /* @__PURE__ */ Mn(yp, [["render", Cp]]), bp = { class: "w-full space-y-4" }, kp = { class: "w-full h-12 flex items-center" }, wp = { class: "flex-none pr-2 text-xs leading-none font-medium text-secondary" }, Cy = /* @__PURE__ */ F({
28
+ const by = /* @__PURE__ */ Mn(yp, [["render", Cp]]), bp = { class: "w-full space-y-4" }, kp = { class: "w-full h-12 flex items-center" }, wp = { class: "flex-none pr-2 text-xs leading-none font-medium text-secondary" }, ky = /* @__PURE__ */ F({
29
29
  __name: "AsideSectionLabel",
30
30
  props: {
31
31
  label: {}
@@ -276,7 +276,7 @@ const t1 = /* @__PURE__ */ Mn(Mp, [["render", Sp]]), Hp = { class: "w-3 h-3 bg-o
276
276
  _: 1
277
277
  }, 40, ["to", "target", "class", "disabled", "style"]));
278
278
  }
279
- }), by = /* @__PURE__ */ F({
279
+ }), wy = /* @__PURE__ */ F({
280
280
  __name: "ButtonGroup",
281
281
  props: {
282
282
  direction: { default: "horizontal" },
@@ -395,7 +395,7 @@ const Rp = /* @__PURE__ */ F({
395
395
  onClick: i[0] || (i[0] = re((o) => t("click", r.date), ["stop"]))
396
396
  }, me(r.date.label), 3));
397
397
  }
398
- }), Pp = { class: "w-56 grid grid-cols-7" }, Ip = { class: "col-span-3 h-8 flex items-center justify-center" }, $p = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Bp = { class: "w-56 grid grid-cols-7" }, Zp = /* @__PURE__ */ F({
398
+ }), Pp = { class: "w-56 grid grid-cols-7" }, $p = { class: "col-span-3 h-8 flex items-center justify-center" }, Ip = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Bp = { class: "w-56 grid grid-cols-7" }, Zp = /* @__PURE__ */ F({
399
399
  __name: "MonthView",
400
400
  props: {
401
401
  viewData: {},
@@ -418,7 +418,7 @@ const Rp = /* @__PURE__ */ F({
418
418
  icon: "chevron-left",
419
419
  onClick: i[1] || (i[1] = (o) => t("move", { amount: -1, unit: k(ge).MONTH }))
420
420
  }),
421
- w("div", Ip, [
421
+ w("div", $p, [
422
422
  P(k(fe), {
423
423
  variant: "textSubtle",
424
424
  label: k(fd)(r.currentMonth.slice(0, 3)),
@@ -441,7 +441,7 @@ const Rp = /* @__PURE__ */ F({
441
441
  onClick: i[5] || (i[5] = (o) => t("move", { amount: 1, unit: k(ge).YEAR }))
442
442
  })
443
443
  ]),
444
- w("header", $p, [
444
+ w("header", Ip, [
445
445
  (g(!0), v(O, null, Qt(r.weekdays, (o) => (g(), v("div", {
446
446
  key: o,
447
447
  class: "flex items-center justify-center w-8 h-6 text-muted text-xs select-none"
@@ -504,7 +504,7 @@ const mr = (n) => {
504
504
  if (!Number.isNaN(e.getTime()) && !e.toString().includes("Thu Jan 01 1970"))
505
505
  return new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()));
506
506
  throw new Error(`Invalid date [${n}]`);
507
- }, Ki = (n, e) => (n = mr(n), e = mr(e), !n || !e ? !1 : n.getUTCFullYear() === e.getUTCFullYear() && n.getUTCMonth() === e.getUTCMonth() && n.getUTCDate() === e.getUTCDate()), Up = (n) => (n = mr(n), Math.floor(n.getUTCFullYear() / 10) * 10), $r = (n, e, t) => {
507
+ }, Ki = (n, e) => (n = mr(n), e = mr(e), !n || !e ? !1 : n.getUTCFullYear() === e.getUTCFullYear() && n.getUTCMonth() === e.getUTCMonth() && n.getUTCDate() === e.getUTCDate()), Up = (n) => (n = mr(n), Math.floor(n.getUTCFullYear() / 10) * 10), Ir = (n, e, t) => {
508
508
  const r = mr(n), i = Op(t);
509
509
  if (i === ge.MONTH) throw new Error("Cannot move date by month");
510
510
  let o = r.getTime();
@@ -512,10 +512,10 @@ const mr = (n) => {
512
512
  }, Kp = 7, qp = 6, Yp = Kp * qp;
513
513
  class Jp {
514
514
  constructor(e, t = null) {
515
- Ir(this, "options");
516
- Ir(this, "today");
517
- Ir(this, "selectedDate");
518
- Ir(this, "dateCursor");
515
+ $r(this, "options");
516
+ $r(this, "today");
517
+ $r(this, "selectedDate");
518
+ $r(this, "dateCursor");
519
519
  this.options = e, "weekstart" in e || (this.options.weekStart = Object.values(cn).indexOf(cn.MONDAY));
520
520
  const r = /* @__PURE__ */ new Date();
521
521
  if (this.today = new Date(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate())), this.selectedDate = null, this.dateCursor = null, t)
@@ -577,7 +577,7 @@ class Jp {
577
577
  e.getUTCDay() - this.options.weekStart,
578
578
  Object.values(cn).length
579
579
  );
580
- e = $r(e, -t, ge.DAY);
580
+ e = Ir(e, -t, ge.DAY);
581
581
  const r = [];
582
582
  for (let i = 0; i < 7; i++)
583
583
  r.push({
@@ -623,16 +623,16 @@ class Jp {
623
623
  );
624
624
  switch (e) {
625
625
  case zr.UP:
626
- t = $r(t, -7, ge.DAY);
626
+ t = Ir(t, -7, ge.DAY);
627
627
  break;
628
628
  case zr.DOWN:
629
- t = $r(t, 7, ge.DAY);
629
+ t = Ir(t, 7, ge.DAY);
630
630
  break;
631
631
  case zr.LEFT:
632
- t = $r(t, -1, ge.DAY);
632
+ t = Ir(t, -1, ge.DAY);
633
633
  break;
634
634
  case zr.RIGHT:
635
- t = $r(t, 1, ge.DAY);
635
+ t = Ir(t, 1, ge.DAY);
636
636
  break;
637
637
  default:
638
638
  throw new Error(`Direction [${e}] not accepted`);
@@ -936,7 +936,7 @@ const Gp = (n = null, e) => {
936
936
  }, yh = {
937
937
  key: 0,
938
938
  class: "relative"
939
- }, ky = /* @__PURE__ */ F({
939
+ }, Ly = /* @__PURE__ */ F({
940
940
  __name: "Collapse",
941
941
  props: {
942
942
  alignment: { default: "right" },
@@ -1130,7 +1130,7 @@ const vh = () => {
1130
1130
  key: 1,
1131
1131
  class: "absolute w-16 right-0 z-10 h-full flex items-center justify-end pl-2",
1132
1132
  style: { background: "linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%, rgba(255,255,255,1) 100%)" }
1133
- }, i1 = 120, wy = /* @__PURE__ */ F({
1133
+ }, i1 = 120, My = /* @__PURE__ */ F({
1134
1134
  __name: "ContentSlider",
1135
1135
  setup(n, { expose: e }) {
1136
1136
  const t = V(0), r = V(null), i = V(null), o = V(r.value ? r.value.clientWidth : 0), s = V(i.value ? i.value.scrollWidth : 0), l = () => t.value = Math.max(0, t.value - i1), a = () => {
@@ -1180,7 +1180,7 @@ const vh = () => {
1180
1180
  function wh(n, e) {
1181
1181
  return " To be implemented ";
1182
1182
  }
1183
- const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1183
+ const xy = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1184
1184
  class: "w-4 h-4 min-w-4 min-h-4 fill-current",
1185
1185
  viewBox: "0 0 16 16",
1186
1186
  xmlns: "http://www.w3.org/2000/svg"
@@ -1229,10 +1229,10 @@ const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1229
1229
  }, Ph = {
1230
1230
  key: 28,
1231
1231
  d: "M11.7071 14L11 14.7071L4.29289 8.00002L11 1.29291L11.7071 2.00002L5.707 8.00002L11.7071 14Z"
1232
- }, Ih = {
1232
+ }, $h = {
1233
1233
  key: 29,
1234
1234
  d: "M10.4142 11L9.70711 11.7071L6 8.00002L9.70711 4.29291L10.4142 5.00002L7.41411 8.00002L10.4142 11Z"
1235
- }, $h = {
1235
+ }, Ih = {
1236
1236
  key: 31,
1237
1237
  d: "M4.29289 14L5 14.7071L11.7071 8.00002L5 1.29291L4.29289 2.00002L10.293 8.00002L4.29289 14Z"
1238
1238
  }, Bh = {
@@ -1492,10 +1492,10 @@ const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1492
1492
  ], 64)) : e.name === "check" ? (g(), v("path", Dh)) : e.name === "chevron-down" ? (g(), v("path", Nh)) : e.name === "chevron-down-small" ? (g(), v("path", Rh)) : e.name === "chevron-left-double" ? (g(), v(O, { key: 27 }, [
1493
1493
  t[25] || (t[25] = w("path", { d: "M8 14.7071L8.70711 14L2.708 8.00002L8.70711 2.00002L8 1.29291L1.29289 8.00002L8 14.7071Z" }, null, -1)),
1494
1494
  t[26] || (t[26] = w("path", { d: "M13 14.7071L13.7071 14L7.707 8.00002L13.7071 2.00002L13 1.29291L6.29289 8.00002L13 14.7071Z" }, null, -1))
1495
- ], 64)) : e.name === "chevron-left" ? (g(), v("path", Ph)) : e.name === "chevron-left-small" ? (g(), v("path", Ih)) : e.name === "chevron-right-double" ? (g(), v(O, { key: 30 }, [
1495
+ ], 64)) : e.name === "chevron-left" ? (g(), v("path", Ph)) : e.name === "chevron-left-small" ? (g(), v("path", $h)) : e.name === "chevron-right-double" ? (g(), v(O, { key: 30 }, [
1496
1496
  t[27] || (t[27] = w("path", { d: "M3.00001 14.7071L2.29291 14L8.29201 8.00002L2.29291 2.00002L3.00001 1.29291L9.70712 8.00002L3.00001 14.7071Z" }, null, -1)),
1497
1497
  t[28] || (t[28] = w("path", { d: "M8.00001 14.7071L7.29291 14L13.293 8.00002L7.29291 2.00002L8.00001 1.29291L14.7071 8.00002L8.00001 14.7071Z" }, null, -1))
1498
- ], 64)) : e.name === "chevron-right" ? (g(), v("path", $h)) : e.name === "chevron-right-small" ? (g(), v("path", Bh)) : e.name === "chevron-up" ? (g(), v("path", Zh)) : e.name === "chevron-up-small" ? (g(), v("path", Fh)) : e.name === "clock" ? (g(), v(O, { key: 35 }, [
1498
+ ], 64)) : e.name === "chevron-right" ? (g(), v("path", Ih)) : e.name === "chevron-right-small" ? (g(), v("path", Bh)) : e.name === "chevron-up" ? (g(), v("path", Zh)) : e.name === "chevron-up-small" ? (g(), v("path", Fh)) : e.name === "clock" ? (g(), v(O, { key: 35 }, [
1499
1499
  t[29] || (t[29] = w("path", { d: "M10.424 4.26501C10.5704 4.03084 10.4992 3.72236 10.265 3.57601C10.0308 3.42965 9.72235 3.50084 9.576 3.73501L7.076 7.73501C6.94152 7.95017 6.98952 8.23194 7.18765 8.39044L9.68765 10.3904C9.90328 10.5629 10.2179 10.528 10.3904 10.3124C10.5629 10.0967 10.528 9.78208 10.3123 9.60957L8.15988 7.8876L10.424 4.26501Z" }, null, -1)),
1500
1500
  t[30] || (t[30] = w("path", {
1501
1501
  "fill-rule": "evenodd",
@@ -1818,7 +1818,7 @@ const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1818
1818
  P(k(Me), { name: "close" })
1819
1819
  ]));
1820
1820
  }
1821
- }), D0 = { class: "flex items-center justify-between w-full h-12" }, N0 = { key: 0 }, R0 = { key: 1 }, P0 = { class: "flex items-center h-12" }, My = /* @__PURE__ */ F({
1821
+ }), D0 = { class: "flex items-center justify-between w-full h-12" }, N0 = { key: 0 }, R0 = { key: 1 }, P0 = { class: "flex items-center h-12" }, Sy = /* @__PURE__ */ F({
1822
1822
  __name: "Dialog",
1823
1823
  props: {
1824
1824
  closeable: { type: Boolean, default: !0 },
@@ -1911,7 +1911,7 @@ const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1911
1911
  _: 3
1912
1912
  }));
1913
1913
  }
1914
- }), I0 = { class: "text-sm" }, $0 = {
1914
+ }), $0 = { class: "text-sm" }, I0 = {
1915
1915
  key: 0,
1916
1916
  class: "h-4 px-1 min-w-4 flex items-center justify-center rounded-full text-xs font-medium bg-black/15"
1917
1917
  }, B0 = /* @__PURE__ */ F({
@@ -1933,8 +1933,8 @@ const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1933
1933
  }]),
1934
1934
  onClick: t[1] || (t[1] = (r) => e.$emit("click"))
1935
1935
  }, [
1936
- w("span", I0, me(e.label), 1),
1937
- e.active && e.count ? (g(), v("span", $0, me(e.count), 1)) : D("", !0),
1936
+ w("span", $0, me(e.label), 1),
1937
+ e.active && e.count ? (g(), v("span", I0, me(e.count), 1)) : D("", !0),
1938
1938
  e.deletable && e.active ? (g(), A(k(A0), {
1939
1939
  key: 1,
1940
1940
  "data-theme": "dark",
@@ -1942,7 +1942,7 @@ const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
1942
1942
  })) : D("", !0)
1943
1943
  ], 2));
1944
1944
  }
1945
- }), Z0 = { class: "opacity-0" }, F0 = { key: 1 }, xy = /* @__PURE__ */ F({
1945
+ }), Z0 = { class: "opacity-0" }, F0 = { key: 1 }, Hy = /* @__PURE__ */ F({
1946
1946
  __name: "FirstPaint",
1947
1947
  props: {
1948
1948
  delayIndex: {}
@@ -2004,11 +2004,11 @@ const Ly = /* @__PURE__ */ Mn(kh, [["render", wh]]), Lh = {
2004
2004
  clearTimeout(t), t = setTimeout(() => n.apply(void 0, r), e);
2005
2005
  };
2006
2006
  };
2007
- let Is;
2007
+ let $s;
2008
2008
  const j0 = () => {
2009
2009
  var i;
2010
2010
  if (j0 !== void 0)
2011
- return Is;
2011
+ return $s;
2012
2012
  const n = document.createElement("div");
2013
2013
  n.className = "el-scrollbar__wrap", n.style.visibility = "hidden", n.style.width = "100px", n.style.position = "absolute", n.style.top = "-9999px", document.body.appendChild(n);
2014
2014
  const e = n.offsetWidth;
@@ -2016,7 +2016,7 @@ const j0 = () => {
2016
2016
  const t = document.createElement("div");
2017
2017
  t.style.width = "100%", n.appendChild(t);
2018
2018
  const r = t.offsetWidth;
2019
- return (i = n.parentNode) == null || i.removeChild(n), Is = e - r, Is;
2019
+ return (i = n.parentNode) == null || i.removeChild(n), $s = e - r, $s;
2020
2020
  }, vd = (n, e) => {
2021
2021
  if (!e) {
2022
2022
  n.scrollTop = 0;
@@ -2077,7 +2077,7 @@ const j0 = () => {
2077
2077
  }, null, 34)) : D("", !0)
2078
2078
  ], 6));
2079
2079
  }
2080
- }), W0 = { class: "relative w-full h-full overflow-hidden bg-primary" }, Sy = /* @__PURE__ */ F({
2080
+ }), W0 = { class: "relative w-full h-full overflow-hidden bg-primary" }, Ty = /* @__PURE__ */ F({
2081
2081
  __name: "HorizontalLayout",
2082
2082
  props: {
2083
2083
  asideLeftBgColorClass: { default: "" },
@@ -2274,7 +2274,7 @@ const j0 = () => {
2274
2274
  }), Y0 = {
2275
2275
  key: 0,
2276
2276
  class: "absolute top-0 left-0 pr-1 pl-2 h-full flex items-center rounded-lg bg-transparent cursor-pointer"
2277
- }, J0 = ["min", "max", "auto-focus", "disabled", "value", "placeholder", "onKeydown"], G0 = { class: "flex flex-col w-8 h-full -space-y-px -mt-px -mr-px" }, Hy = /* @__PURE__ */ F({
2277
+ }, J0 = ["min", "max", "auto-focus", "disabled", "value", "placeholder", "onKeydown"], G0 = { class: "flex flex-col w-8 h-full -space-y-px -mt-px -mr-px" }, Ey = /* @__PURE__ */ F({
2278
2278
  __name: "InputNumber",
2279
2279
  props: {
2280
2280
  disabled: { type: Boolean, default: !1 },
@@ -2383,7 +2383,7 @@ function Q0(n, e) {
2383
2383
  const si = /* @__PURE__ */ Mn(_0, [["render", Q0]]), e5 = {
2384
2384
  key: 0,
2385
2385
  class: "flex items-center justify-between h-12 w-full mb-4"
2386
- }, t5 = { class: "flex items-center h-full" }, Ty = /* @__PURE__ */ F({
2386
+ }, t5 = { class: "flex items-center h-full" }, Oy = /* @__PURE__ */ F({
2387
2387
  __name: "Modal",
2388
2388
  props: {
2389
2389
  closeable: { type: Boolean, default: !0 },
@@ -2474,7 +2474,7 @@ const si = /* @__PURE__ */ Mn(_0, [["render", Q0]]), e5 = {
2474
2474
  }, 8, ["show", "type", "class"])
2475
2475
  ], 8, ["to"]));
2476
2476
  }
2477
- }), n5 = { class: "text-sm tracking-wide" }, r5 = { class: "text-sm tracking-wide" }, Ey = /* @__PURE__ */ F({
2477
+ }), n5 = { class: "text-sm tracking-wide" }, r5 = { class: "text-sm tracking-wide" }, Vy = /* @__PURE__ */ F({
2478
2478
  __name: "NavItem",
2479
2479
  props: {
2480
2480
  exact: { type: Boolean, default: !1 },
@@ -2531,7 +2531,7 @@ const si = /* @__PURE__ */ Mn(_0, [["render", Q0]]), e5 = {
2531
2531
  }), i5 = {
2532
2532
  "data-theme": "dark",
2533
2533
  class: "inline-flex items-stretch h-10 px-1 rounded-xl bg-black shadow-xl pointer-events-auto justify-between"
2534
- }, o5 = { class: "text-sm cursor-default truncate min-w-0" }, Oy = /* @__PURE__ */ F({
2534
+ }, o5 = { class: "text-sm cursor-default truncate min-w-0" }, Ay = /* @__PURE__ */ F({
2535
2535
  __name: "Notification",
2536
2536
  props: {
2537
2537
  showDetailsButton: { type: Boolean },
@@ -2586,7 +2586,7 @@ const si = /* @__PURE__ */ Mn(_0, [["render", Q0]]), e5 = {
2586
2586
  })
2587
2587
  ]));
2588
2588
  }
2589
- }), Vy = /* @__PURE__ */ F({
2589
+ }), Dy = /* @__PURE__ */ F({
2590
2590
  __name: "Pagination",
2591
2591
  props: {
2592
2592
  borders: { type: Boolean, default: !1 },
@@ -2928,12 +2928,12 @@ const v5 = function(n) {
2928
2928
  const b = kn(i), L = Yt(l), M = kn(l) === l, C = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), S = f || (M || !m ? [vo(l)] : d5(l)), x = h !== "none";
2929
2929
  !f && x && S.push(...h5(l, m, h, C));
2930
2930
  const Z = [l, ...S], E = await na(e, y), T = [];
2931
- let I = ((r = o.flip) == null ? void 0 : r.overflows) || [];
2931
+ let $ = ((r = o.flip) == null ? void 0 : r.overflows) || [];
2932
2932
  if (d && T.push(E[b]), c) {
2933
2933
  const Q = u5(i, s, C);
2934
2934
  T.push(E[Q[0]], E[Q[1]]);
2935
2935
  }
2936
- if (I = [...I, {
2936
+ if ($ = [...$, {
2937
2937
  placement: i,
2938
2938
  overflows: T
2939
2939
  }], !T.every((Q) => Q <= 0)) {
@@ -2941,22 +2941,22 @@ const v5 = function(n) {
2941
2941
  const Q = (((ne = o.flip) == null ? void 0 : ne.index) || 0) + 1, be = Z[Q];
2942
2942
  if (be && (!(c === "alignment" ? L !== Yt(be) : !1) || // We leave the current main axis only if every placement on that axis
2943
2943
  // overflows the main axis.
2944
- I.every((de) => Yt(de.placement) === L ? de.overflows[0] > 0 : !0)))
2944
+ $.every((de) => Yt(de.placement) === L ? de.overflows[0] > 0 : !0)))
2945
2945
  return {
2946
2946
  data: {
2947
2947
  index: Q,
2948
- overflows: I
2948
+ overflows: $
2949
2949
  },
2950
2950
  reset: {
2951
2951
  placement: be
2952
2952
  }
2953
2953
  };
2954
- let le = (z = I.filter((pe) => pe.overflows[0] <= 0).sort((pe, de) => pe.overflows[1] - de.overflows[1])[0]) == null ? void 0 : z.placement;
2954
+ let le = (z = $.filter((pe) => pe.overflows[0] <= 0).sort((pe, de) => pe.overflows[1] - de.overflows[1])[0]) == null ? void 0 : z.placement;
2955
2955
  if (!le)
2956
2956
  switch (p) {
2957
2957
  case "bestFit": {
2958
2958
  var j;
2959
- const pe = (j = I.filter((de) => {
2959
+ const pe = (j = $.filter((de) => {
2960
2960
  if (x) {
2961
2961
  const Le = Yt(de.placement);
2962
2962
  return Le === L || // Create a bias to the `y` side axis due to horizontal
@@ -3112,8 +3112,8 @@ const k5 = function(n) {
3112
3112
  const L = m - d.top - d.bottom, M = h - d.left - d.right, C = gr(m - d[y], L), S = gr(h - d[b], M), x = !e.middlewareData.shift;
3113
3113
  let Z = C, E = S;
3114
3114
  if ((t = e.middlewareData.shift) != null && t.enabled.x && (E = M), (r = e.middlewareData.shift) != null && r.enabled.y && (Z = L), x && !f) {
3115
- const I = ot(d.left, 0), ne = ot(d.right, 0), z = ot(d.top, 0), j = ot(d.bottom, 0);
3116
- p ? E = h - 2 * (I !== 0 || ne !== 0 ? I + ne : ot(d.left, d.right)) : Z = m - 2 * (z !== 0 || j !== 0 ? z + j : ot(d.top, d.bottom));
3115
+ const $ = ot(d.left, 0), ne = ot(d.right, 0), z = ot(d.top, 0), j = ot(d.bottom, 0);
3116
+ p ? E = h - 2 * ($ !== 0 || ne !== 0 ? $ + ne : ot(d.left, d.right)) : Z = m - 2 * (z !== 0 || j !== 0 ? z + j : ot(d.top, d.bottom));
3117
3117
  }
3118
3118
  await a({
3119
3119
  ...e,
@@ -3345,7 +3345,7 @@ function R5(n) {
3345
3345
  function P5(n) {
3346
3346
  return Array.from(n.getClientRects());
3347
3347
  }
3348
- function I5(n) {
3348
+ function $5(n) {
3349
3349
  const e = Zt(n), t = ms(n), r = n.ownerDocument.body, i = ot(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = ot(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
3350
3350
  let s = -t.scrollLeft + gs(n);
3351
3351
  const l = -t.scrollTop;
@@ -3357,7 +3357,7 @@ function I5(n) {
3357
3357
  };
3358
3358
  }
3359
3359
  const f1 = 25;
3360
- function $5(n, e) {
3360
+ function I5(n, e) {
3361
3361
  const t = at(n), r = Zt(n), i = t.visualViewport;
3362
3362
  let o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
3363
3363
  if (i) {
@@ -3390,9 +3390,9 @@ function Z5(n, e) {
3390
3390
  function p1(n, e, t) {
3391
3391
  let r;
3392
3392
  if (e === "viewport")
3393
- r = $5(n, t);
3393
+ r = I5(n, t);
3394
3394
  else if (e === "document")
3395
- r = I5(Zt(n));
3395
+ r = $5(Zt(n));
3396
3396
  else if (Mt(e))
3397
3397
  r = Z5(e, t);
3398
3398
  else {
@@ -3475,7 +3475,7 @@ function W5(n, e, t) {
3475
3475
  height: s.height
3476
3476
  };
3477
3477
  }
3478
- function $s(n) {
3478
+ function Is(n) {
3479
3479
  return xt(n).position === "static";
3480
3480
  }
3481
3481
  function h1(n, e) {
@@ -3493,16 +3493,16 @@ function Td(n, e) {
3493
3493
  if (!Rt(n)) {
3494
3494
  let i = wn(n);
3495
3495
  for (; i && !yr(i); ) {
3496
- if (Mt(i) && !$s(i))
3496
+ if (Mt(i) && !Is(i))
3497
3497
  return i;
3498
3498
  i = wn(i);
3499
3499
  }
3500
3500
  return t;
3501
3501
  }
3502
3502
  let r = h1(n, e);
3503
- for (; r && S5(r) && $s(r); )
3503
+ for (; r && S5(r) && Is(r); )
3504
3504
  r = h1(r, e);
3505
- return r && yr(r) && $s(r) && !ra(r) ? t : r || V5(n) || t;
3505
+ return r && yr(r) && Is(r) && !ra(r) ? t : r || V5(n) || t;
3506
3506
  }
3507
3507
  const U5 = async function(n) {
3508
3508
  const e = this.getOffsetParent || Td, t = this.getDimensions, r = await t(n.floating);
@@ -3718,11 +3718,11 @@ const yl = /* @__PURE__ */ e2(n2), r2 = Od({
3718
3718
  _5()
3719
3719
  ];
3720
3720
  r.popperWidthClass || (r.sameWidthAsTrigger ? T.push(r2) : r.sameWidthAsElement && T.push(i2(r.sameWidthAsElement)));
3721
- const I = await Q5(u.value, a.value, {
3721
+ const $ = await Q5(u.value, a.value, {
3722
3722
  placement: r.placement,
3723
3723
  middleware: T
3724
3724
  });
3725
- a.value.style.left = `${I.x}px`, a.value.style.top = `${I.y}px`;
3725
+ a.value.style.left = `${$.x}px`, a.value.style.top = `${$.y}px`;
3726
3726
  }
3727
3727
  };
3728
3728
  Se(() => {
@@ -3759,20 +3759,20 @@ const yl = /* @__PURE__ */ e2(n2), r2 = Od({
3759
3759
  containerRef: l,
3760
3760
  open: b,
3761
3761
  updateClickOutsideTargets: Z
3762
- }), (T, I) => (g(), v("div", {
3762
+ }), (T, $) => (g(), v("div", {
3763
3763
  ref_key: "containerRef",
3764
3764
  ref: l,
3765
3765
  class: U(T.rootClass),
3766
- onMouseleave: I[6] || (I[6] = (ne) => T.trigger === "hover" && S())
3766
+ onMouseleave: $[6] || ($[6] = (ne) => T.trigger === "hover" && S())
3767
3767
  }, [
3768
3768
  w("div", {
3769
3769
  ref_key: "triggerRef",
3770
3770
  ref: u,
3771
3771
  class: U(T.triggerClass),
3772
- onMouseover: I[0] || (I[0] = (ne) => T.trigger === "hover" && C()),
3772
+ onMouseover: $[0] || ($[0] = (ne) => T.trigger === "hover" && C()),
3773
3773
  onClick: x,
3774
- onFocus: I[1] || (I[1] = (ne) => T.trigger === "focus" && C()),
3775
- onKeyup: I[2] || (I[2] = Ce((ne) => S(), ["esc"]))
3774
+ onFocus: $[1] || ($[1] = (ne) => T.trigger === "focus" && C()),
3775
+ onKeyup: $[2] || ($[2] = Ce((ne) => S(), ["esc"]))
3776
3776
  }, [
3777
3777
  J(T.$slots, "default", { visible: d.value })
3778
3778
  ], 34),
@@ -3784,7 +3784,7 @@ const yl = /* @__PURE__ */ e2(n2), r2 = Od({
3784
3784
  T.useOverlay && T.trigger !== "hover" && T.trigger !== "manual" ? (g(), v("div", {
3785
3785
  key: 0,
3786
3786
  class: "pointer-events-auto absolute w-screen h-screen top-0 left-0 bg-transparent",
3787
- onClick: I[3] || (I[3] = (ne) => S())
3787
+ onClick: $[3] || ($[3] = (ne) => S())
3788
3788
  }, [
3789
3789
  Tr(w("div", {
3790
3790
  ref_key: "popperRef",
@@ -3803,8 +3803,8 @@ const yl = /* @__PURE__ */ e2(n2), r2 = Od({
3803
3803
  ref_key: "popperRef",
3804
3804
  ref: a,
3805
3805
  class: U(["absolute", T.popperWidthClass]),
3806
- onMouseover: I[4] || (I[4] = (ne) => T.trigger === "hover" && C()),
3807
- onMouseleave: I[5] || (I[5] = (ne) => T.trigger === "hover" && S())
3806
+ onMouseover: $[4] || ($[4] = (ne) => T.trigger === "hover" && C()),
3807
+ onMouseleave: $[5] || ($[5] = (ne) => T.trigger === "hover" && S())
3808
3808
  }, [
3809
3809
  J(T.$slots, "content", {
3810
3810
  close: y,
@@ -3821,7 +3821,7 @@ function l2(n, e) {
3821
3821
  J(n.$slots, "default")
3822
3822
  ]);
3823
3823
  }
3824
- const sa = /* @__PURE__ */ Mn(o2, [["render", l2]]), Ay = /* @__PURE__ */ F({
3824
+ const sa = /* @__PURE__ */ Mn(o2, [["render", l2]]), Ny = /* @__PURE__ */ F({
3825
3825
  __name: "PopCalendar",
3826
3826
  props: {
3827
3827
  value: { default: null },
@@ -3868,7 +3868,7 @@ const sa = /* @__PURE__ */ Mn(o2, [["render", l2]]), Ay = /* @__PURE__ */ F({
3868
3868
  }), a2 = { class: "inline-flex" }, u2 = {
3869
3869
  key: 0,
3870
3870
  class: "flex flex-col gap-0"
3871
- }, d2 = { class: "text-sm text-secondary" }, Dy = /* @__PURE__ */ F({
3871
+ }, d2 = { class: "text-sm text-secondary" }, Ry = /* @__PURE__ */ F({
3872
3872
  __name: "PopConfirm",
3873
3873
  props: {
3874
3874
  order: {},
@@ -3958,7 +3958,7 @@ const sa = /* @__PURE__ */ Mn(o2, [["render", l2]]), Ay = /* @__PURE__ */ F({
3958
3958
  function f2(n, e) {
3959
3959
  return " To be implemented ";
3960
3960
  }
3961
- const Ny = /* @__PURE__ */ Mn(c2, [["render", f2]]);
3961
+ const Py = /* @__PURE__ */ Mn(c2, [["render", f2]]);
3962
3962
  var Ht = /* @__PURE__ */ ((n) => (n.ERROR = "error", n.IDLE = "idle", n.LOADING = "loading", n.MATCH = "match", n.NO_MATCH = "no match", n))(Ht || {});
3963
3963
  const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
3964
3964
  __name: "option",
@@ -4081,7 +4081,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4081
4081
  ), Hr(() => {
4082
4082
  r.filterable && r.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), Z(r.options);
4083
4083
  });
4084
- const E = () => p.value.close(), T = () => p.value.open(), I = async () => {
4084
+ const E = () => p.value.close(), T = () => p.value.open(), $ = async () => {
4085
4085
  b(() => {
4086
4086
  h.value && b(() => h.value.update()), c.value && b(() => c.value.focus());
4087
4087
  });
@@ -4125,7 +4125,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4125
4125
  "root-class": q.rootClass,
4126
4126
  "trigger-class": q.triggerClass,
4127
4127
  onClose: ne,
4128
- onOpen: I
4128
+ onOpen: $
4129
4129
  }, {
4130
4130
  default: B((ae) => [
4131
4131
  J(q.$slots, "trigger", {
@@ -4397,8 +4397,8 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4397
4397
  a.value = m.value.scrollTop * 100 / m.value.clientHeight, l.value = m.value.scrollLeft * 100 / m.value.clientWidth, i("scroll", m.value.scrollTop);
4398
4398
  const E = m.value.scrollTop + m.value.clientHeight, T = m.value.scrollHeight;
4399
4399
  if (u.value > 0 && m.value.scrollTop === 0 ? i("intersect", { edge: "top", hit: !0 }) : u.value === 0 && m.value.scrollTop > 0 ? i("intersect", { edge: "top", hit: !1 }) : u.value + m.value.clientHeight < T && E === T ? i("intersect", { edge: "bottom", hit: !0 }) : u.value + m.value.clientHeight === T && E < T && i("intersect", { edge: "bottom", hit: !1 }), r.triggers)
4400
- for (const I of r.triggers)
4401
- u.value < I.px && m.value.scrollTop >= I.px ? I.callback(I, "down") : u.value > I.px && m.value.scrollTop <= I.px && I.callback(I, "up");
4400
+ for (const $ of r.triggers)
4401
+ u.value < $.px && m.value.scrollTop >= $.px ? $.callback($, "down") : u.value > $.px && m.value.scrollTop <= $.px && $.callback($, "up");
4402
4402
  u.value = m.value.scrollTop;
4403
4403
  }, L = () => ({
4404
4404
  heightPercentage: m.value.clientHeight * 100 / m.value.scrollHeight,
@@ -4463,7 +4463,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4463
4463
  }, null, 8, ["move", "size"]))
4464
4464
  ], 2));
4465
4465
  }
4466
- }), Ry = /* @__PURE__ */ F({
4466
+ }), $y = /* @__PURE__ */ F({
4467
4467
  __name: "ScrollBottomLoader",
4468
4468
  emits: ["intersect"],
4469
4469
  setup(n, { emit: e }) {
@@ -4484,7 +4484,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4484
4484
  }))
4485
4485
  ], 512));
4486
4486
  }
4487
- }), Py = ["top", "bottom", "left", "right"], Iy = ["up", "down", "left", "right"], $y = /* @__PURE__ */ F({
4487
+ }), Iy = ["top", "bottom", "left", "right"], By = ["up", "down", "left", "right"], Zy = /* @__PURE__ */ F({
4488
4488
  __name: "OptionGroup",
4489
4489
  props: {
4490
4490
  label: {},
@@ -4502,7 +4502,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4502
4502
  J(e.$slots, "default")
4503
4503
  ], 2));
4504
4504
  }
4505
- }), R2 = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, P2 = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" }, By = /* @__PURE__ */ F({
4505
+ }), R2 = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, P2 = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" }, Fy = /* @__PURE__ */ F({
4506
4506
  __name: "SelectListOption",
4507
4507
  props: {
4508
4508
  hoveredOption: {},
@@ -4569,15 +4569,15 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4569
4569
  }, 40, ["class"]))
4570
4570
  ]));
4571
4571
  }
4572
- }), I2 = { class: "flex-1 h-full flex flex-col items-center justify-center gap-2" }, $2 = { class: "flex flex-col items-center justify-center" }, B2 = { class: "flex items-center justify-center w-12 h-12" }, vs = /* @__PURE__ */ F({
4572
+ }), $2 = { class: "flex-1 h-full flex flex-col items-center justify-center gap-2" }, I2 = { class: "flex flex-col items-center justify-center" }, B2 = { class: "flex items-center justify-center w-12 h-12" }, vs = /* @__PURE__ */ F({
4573
4573
  __name: "StatusCard",
4574
4574
  props: {
4575
4575
  status: {},
4576
4576
  variant: {}
4577
4577
  },
4578
4578
  setup(n) {
4579
- return (e, t) => (g(), v("div", I2, [
4580
- w("div", $2, [
4579
+ return (e, t) => (g(), v("div", $2, [
4580
+ w("div", I2, [
4581
4581
  w("div", B2, [
4582
4582
  J(e.$slots, "default")
4583
4583
  ])
@@ -4758,7 +4758,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4758
4758
  }, J2 = { class: "flex-none flex items-center justify-between gap-1 px-4 py-1" }, G2 = {
4759
4759
  key: 0,
4760
4760
  class: "px-4 h-8 flex items-center text-ui-label-14-regular text-disabled-font"
4761
- }, _2 = { class: "flex-0 px-6 py-4" }, Zy = /* @__PURE__ */ F({
4761
+ }, _2 = { class: "flex-0 px-6 py-4" }, zy = /* @__PURE__ */ F({
4762
4762
  __name: "SelectList",
4763
4763
  props: {
4764
4764
  identifier: { default: "label" },
@@ -4778,40 +4778,40 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4778
4778
  },
4779
4779
  emits: ["escape", "selectQuery", "select"],
4780
4780
  setup(n, { expose: e, emit: t }) {
4781
- const r = n, i = t, { nextFrame: o } = ta(), s = V(null), l = V([]), a = V(""), u = V(), d = V(), c = V(), f = V(), p = V(), h = V(r.filters ? r.filters[0] : null), m = V(!1), y = V(!1), b = V(""), L = ($) => {
4782
- if (!Array.isArray($)) throw new Error("Item passed must be an Array");
4783
- return $.length === 0 ? !1 : "options" in $[0];
4784
- }, M = te(() => L(r.options)), C = te(() => M.value ? r.options.flatMap(($) => $.options) : r.options), S = te(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), x = te(() => r.selected && "length" in r.selected), Z = te(() => r.selected ? x.value ? r.selected.length : 1 : 0), E = te(() => r.selected ? h.value ? r.selected.length >= C.value.filter(h.value.execute).length : x.value ? r.selected.length === C.value.length : !1 : !1), T = te(() => r.selected ? x.value ? !r.selected.length : !r.selected : !0);
4785
- Xe(() => r.selected, ($) => {
4786
- $ && m.value && o(() => {
4781
+ const r = n, i = t, { nextFrame: o } = ta(), s = V(null), l = V([]), a = V(""), u = V(), d = V(), c = V(), f = V(), p = V(), h = V(r.filters ? r.filters[0] : null), m = V(!1), y = V(!1), b = V(""), L = (I) => {
4782
+ if (!Array.isArray(I)) throw new Error("Item passed must be an Array");
4783
+ return I.length === 0 ? !1 : "options" in I[0];
4784
+ }, M = te(() => L(r.options)), C = te(() => M.value ? r.options.flatMap((I) => I.options) : r.options), S = te(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), x = te(() => r.selected && "length" in r.selected), Z = te(() => r.selected ? x.value ? r.selected.length : 1 : 0), E = te(() => r.selected ? h.value ? r.selected.length >= C.value.filter(h.value.execute).length : x.value ? r.selected.length === C.value.length : !1 : !1), T = te(() => r.selected ? x.value ? !r.selected.length : !r.selected : !0);
4785
+ Xe(() => r.selected, (I) => {
4786
+ I && m.value && o(() => {
4787
4787
  if (c.value.update(), x.value && Z.value) {
4788
4788
  const se = f.value[f.value.length - 1].$el, ve = p.value.$el.querySelector(".scrollbar__wrap");
4789
4789
  ve && (vd(ve, se), p.value.handleScroll());
4790
4790
  }
4791
4791
  });
4792
- }), Xe(() => r.options, ($) => {
4793
- le($), s.value = null;
4792
+ }), Xe(() => r.options, (I) => {
4793
+ le(I), s.value = null;
4794
4794
  }), Hr(() => le(r.options)), Se(() => {
4795
4795
  !x.value && r.selectAll && console.warn("[SelectList] selectAll prop not allowed when SelectList is not isMultiselect. You need to pass an Array of selected options (or empty) if you want it to be isMultiselect."), o(() => {
4796
- c.value && c.value.update(), u.value.addEventListener("keydown", I);
4796
+ c.value && c.value.update(), u.value.addEventListener("keydown", $);
4797
4797
  });
4798
- }), Bt(() => u.value.removeEventListener("keydown", I));
4799
- const I = ($) => {
4800
- $.key === "Enter" ? z() : $.key === "Escape" ? i("escape") : $.key === "ArrowDown" ? q("next") : $.key === "ArrowUp" && q("prev");
4801
- }, ne = ($) => {
4798
+ }), Bt(() => u.value.removeEventListener("keydown", $));
4799
+ const $ = (I) => {
4800
+ I.key === "Enter" ? z() : I.key === "Escape" ? i("escape") : I.key === "ArrowDown" ? q("next") : I.key === "ArrowUp" && q("prev");
4801
+ }, ne = (I) => {
4802
4802
  if (x.value) {
4803
- const se = r.selected.map((ve) => ve.label).includes($.label) ? [...r.selected.filter((ve) => ve.label !== $.label)] : [...r.selected, $];
4803
+ const se = r.selected.map((ve) => ve.label).includes(I.label) ? [...r.selected.filter((ve) => ve.label !== I.label)] : [...r.selected, I];
4804
4804
  i("select", se);
4805
4805
  } else
4806
- i("select", $);
4806
+ i("select", I);
4807
4807
  }, z = () => {
4808
4808
  s.value ? ne(s.value) : a.value.length && i("selectQuery", a.value);
4809
- }, j = ($) => r.selected ? x.value ? r.selected.some((se) => se[r.identifier] === $[r.identifier]) : $[r.identifier] === r.selected[r.identifier] : !1, Q = async ($) => {
4810
- a.value = $, s.value = null, r.searchFunction && await r.searchFunction($);
4811
- }, be = r.searchDebounce ? yl(Q, r.searchDebounce) : Q, le = ($) => {
4809
+ }, j = (I) => r.selected ? x.value ? r.selected.some((se) => se[r.identifier] === I[r.identifier]) : I[r.identifier] === r.selected[r.identifier] : !1, Q = async (I) => {
4810
+ a.value = I, s.value = null, r.searchFunction && await r.searchFunction(I);
4811
+ }, be = r.searchDebounce ? yl(Q, r.searchDebounce) : Q, le = (I) => {
4812
4812
  var se;
4813
4813
  if (M.value) {
4814
- const ve = $;
4814
+ const ve = I;
4815
4815
  l.value = ve.map((Ge) => {
4816
4816
  var On;
4817
4817
  return {
@@ -4820,34 +4820,34 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4820
4820
  };
4821
4821
  });
4822
4822
  } else {
4823
- const ve = $;
4823
+ const ve = I;
4824
4824
  l.value = h.value ? ve.filter((se = h.value) == null ? void 0 : se.execute) : ve;
4825
4825
  }
4826
- }, pe = ($) => {
4827
- h.value = $, le(r.options);
4826
+ }, pe = (I) => {
4827
+ h.value = I, le(r.options);
4828
4828
  }, de = () => {
4829
4829
  if (!x.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
4830
4830
  Z.value === 0 || Z.value && !E.value ? i("select", h.value ? C.value.filter(h.value.execute) : C.value) : i("select", []);
4831
- }, Le = ($) => s.value = C.value.find((se) => se[r.identifier] === $[r.identifier]) || null, Be = te(() => {
4832
- const $ = Array.isArray(l.value) && l.value.length > 0 && "options" in l.value[0] ? l.value.flatMap((se) => se.options) : l.value;
4833
- return $.length > 0 && $.every((se) => !!se.disabled);
4834
- }), q = async ($) => {
4831
+ }, Le = (I) => s.value = C.value.find((se) => se[r.identifier] === I[r.identifier]) || null, Be = te(() => {
4832
+ const I = Array.isArray(l.value) && l.value.length > 0 && "options" in l.value[0] ? l.value.flatMap((se) => se.options) : l.value;
4833
+ return I.length > 0 && I.every((se) => !!se.disabled);
4834
+ }), q = async (I) => {
4835
4835
  if (l.value.length === 0) return;
4836
4836
  let se = C.value.findIndex((ve) => {
4837
4837
  var Ge;
4838
4838
  return ve.label === ((Ge = s.value) == null ? void 0 : Ge.label);
4839
4839
  });
4840
- Be.value || ($ === "next" ? (se++, se === l.value.length && (se = 0)) : $ === "prev" && (se--, se < 0 && (se = l.value.length - 1)), s.value = C.value[se], s.value.disabled === !0 && q($), await bn(), s.value && X(s.value));
4841
- }, X = ($) => {
4840
+ Be.value || (I === "next" ? (se++, se === l.value.length && (se = 0)) : I === "prev" && (se--, se < 0 && (se = l.value.length - 1)), s.value = C.value[se], s.value.disabled === !0 && q(I), await bn(), s.value && X(s.value));
4841
+ }, X = (I) => {
4842
4842
  if (!d.value.children.length) return;
4843
4843
  const se = null;
4844
4844
  c.value;
4845
4845
  }, ae = () => {
4846
4846
  m.value = !m.value, p.value.update();
4847
- }, je = te(() => m.value && y.value ? b.value : "border-transparent"), nt = ($) => {
4848
- $.hit ? $.edge === "bottom" && $.hit ? b.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : $.edge === "top" && $.hit && (b.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : b.value = "border-y-outline-subtle shadow-scroll-y";
4849
- }, wt = ($) => {
4850
- y.value = $;
4847
+ }, je = te(() => m.value && y.value ? b.value : "border-transparent"), nt = (I) => {
4848
+ I.hit ? I.edge === "bottom" && I.hit ? b.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : I.edge === "top" && I.hit && (b.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : b.value = "border-y-outline-subtle shadow-scroll-y";
4849
+ }, wt = (I) => {
4850
+ y.value = I;
4851
4851
  };
4852
4852
  return e({
4853
4853
  // focusSearch,
@@ -4856,30 +4856,30 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4856
4856
  a.value = "", r.searchFunction ? r.searchFunction("") : le([]), h.value = r.filters ? r.filters[0] : null;
4857
4857
  },
4858
4858
  scrollbarRef: c
4859
- }), ($, se) => (g(), v("div", {
4859
+ }), (I, se) => (g(), v("div", {
4860
4860
  ref_key: "selectListRef",
4861
4861
  ref: u,
4862
4862
  tabindex: "0",
4863
4863
  class: "relative flex flex-col focus:outline-none w-full h-full overflow-hidden",
4864
4864
  style: Te({
4865
- height: $.searchFunction ? "640px" : void 0,
4866
- maxHeight: $.searchFunction ? void 0 : "100%"
4865
+ height: I.searchFunction ? "640px" : void 0,
4866
+ maxHeight: I.searchFunction ? void 0 : "100%"
4867
4867
  })
4868
4868
  }, [
4869
- $.$slots.header || $.searchFunction || $.filters || $.selectAll ? (g(), v("header", W2, [
4870
- J($.$slots, "header"),
4871
- $.searchFunction ? (g(), v("section", U2, [
4869
+ I.$slots.header || I.searchFunction || I.filters || I.selectAll ? (g(), v("header", W2, [
4870
+ J(I.$slots, "header"),
4871
+ I.searchFunction ? (g(), v("section", U2, [
4872
4872
  P(k(go), {
4873
4873
  class: "w-full",
4874
4874
  clearable: "",
4875
4875
  value: a.value,
4876
- placeholder: $.placeholder,
4876
+ placeholder: I.placeholder,
4877
4877
  onChange: k(be),
4878
4878
  onClear: se[0] || (se[0] = (ve) => Q(""))
4879
4879
  }, null, 8, ["value", "placeholder", "onChange"])
4880
4880
  ])) : D("", !0),
4881
- $.filters ? (g(), v("section", K2, [
4882
- (g(!0), v(O, null, Qt($.filters, (ve) => (g(), A(k(fe), {
4881
+ I.filters ? (g(), v("section", K2, [
4882
+ (g(!0), v(O, null, Qt(I.filters, (ve) => (g(), A(k(fe), {
4883
4883
  key: ve.name,
4884
4884
  small: "",
4885
4885
  variant: "textSubtle",
@@ -4888,7 +4888,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4888
4888
  onClick: (Ge) => pe(ve)
4889
4889
  }, null, 8, ["focus", "label", "onClick"]))), 128))
4890
4890
  ])) : D("", !0),
4891
- $.selectAll ? (g(), v("button", {
4891
+ I.selectAll ? (g(), v("button", {
4892
4892
  key: 2,
4893
4893
  class: "cursor-pointer flex items-center gap-2 px-2 py-1 rounded-lg hover:bg-secondary active:bg-tertiary",
4894
4894
  onClick: de
@@ -4904,7 +4904,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4904
4904
  w("main", q2, [
4905
4905
  S.value === "error" ? (g(), A(k(Z2), {
4906
4906
  key: 0,
4907
- message: $.errorMessage
4907
+ message: I.errorMessage
4908
4908
  }, null, 8, ["message"])) : S.value === "loading" ? (g(), A(k(z2), { key: 1 })) : S.value === "no match" ? (g(), A(k(j2), { key: 2 })) : S.value === "idle" ? (g(), A(k(F2), { key: 3 })) : S.value === "match" ? (g(), A(k(bo), {
4909
4909
  key: 4,
4910
4910
  ref_key: "scrollbarRef",
@@ -4917,12 +4917,12 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4917
4917
  ref_key: "optionsRef",
4918
4918
  ref: d,
4919
4919
  class: U(["px-1", {
4920
- "py-2": $.small && M.value || !$.small && !M.value,
4921
- "py-1": $.small && !M.value,
4922
- "py-4": !$.small && M.value
4920
+ "py-2": I.small && M.value || !I.small && !M.value,
4921
+ "py-1": I.small && !M.value,
4922
+ "py-4": !I.small && M.value
4923
4923
  }])
4924
4924
  }, [
4925
- J($.$slots, "options", {
4925
+ J(I.$slots, "options", {
4926
4926
  options: l.value,
4927
4927
  hover: Le,
4928
4928
  hoveredOption: s.value,
@@ -4934,8 +4934,8 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4934
4934
  _: 3
4935
4935
  }, 512)) : D("", !0)
4936
4936
  ]),
4937
- $.$slots.footer ? (g(), v("footer", Y2, [
4938
- $.showSelection ? (g(), v(O, { key: 0 }, [
4937
+ I.$slots.footer ? (g(), v("footer", Y2, [
4938
+ I.showSelection ? (g(), v(O, { key: 0 }, [
4939
4939
  w("header", J2, [
4940
4940
  P(k(fe), {
4941
4941
  square: "",
@@ -4967,15 +4967,15 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
4967
4967
  }, 8, ["class", "view-height-class"])
4968
4968
  ], 64)) : D("", !0),
4969
4969
  w("footer", _2, [
4970
- J($.$slots, "footer")
4970
+ J(I.$slots, "footer")
4971
4971
  ])
4972
4972
  ])) : D("", !0)
4973
4973
  ], 4));
4974
4974
  }
4975
- }), Fy = ["error", "idle", "loading", "match", "no match"], zy = ["checkbox", "deletable", "single"], X2 = {
4975
+ }), jy = ["error", "idle", "loading", "match", "no match"], Wy = ["checkbox", "deletable", "single"], X2 = {
4976
4976
  key: 0,
4977
4977
  class: "flex items-center justify-between w-full h-12"
4978
- }, jy = /* @__PURE__ */ F({
4978
+ }, Uy = /* @__PURE__ */ F({
4979
4979
  __name: "SideOver",
4980
4980
  props: {
4981
4981
  closeable: { type: Boolean, default: !0 },
@@ -5062,12 +5062,12 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
5062
5062
  }, 8, ["show", "type"])
5063
5063
  ]));
5064
5064
  }
5065
- }), Wy = /* @__PURE__ */ F({
5065
+ }), Ky = /* @__PURE__ */ F({
5066
5066
  __name: "StatusSelect",
5067
5067
  setup(n) {
5068
5068
  return (e, t) => " TODO ";
5069
5069
  }
5070
- }), Uy = /* @__PURE__ */ F({
5070
+ }), qy = /* @__PURE__ */ F({
5071
5071
  __name: "Switch",
5072
5072
  props: {
5073
5073
  value: { type: Boolean, default: !1 },
@@ -5102,7 +5102,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
5102
5102
  key: 0,
5103
5103
  class: "absolute",
5104
5104
  style: { top: "0em", right: "-0.6em" }
5105
- }, Ky = /* @__PURE__ */ F({
5105
+ }, Yy = /* @__PURE__ */ F({
5106
5106
  __name: "Tab",
5107
5107
  props: {
5108
5108
  icon: {},
@@ -5151,7 +5151,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
5151
5151
  ])
5152
5152
  ], 10, Q2));
5153
5153
  }
5154
- }), n4 = { class: "truncate" }, qy = /* @__PURE__ */ F({
5154
+ }), n4 = { class: "truncate" }, Jy = /* @__PURE__ */ F({
5155
5155
  __name: "Tag",
5156
5156
  props: {
5157
5157
  label: {},
@@ -5232,7 +5232,7 @@ const p2 = ["onKeydown"], h2 = /* @__PURE__ */ F({
5232
5232
  _: 3
5233
5233
  }, 8, ["trigger", "open-delay", "offset-main", "offset-cross", "root-class", "trigger-class", "placement"]));
5234
5234
  }
5235
- }), r4 = { class: "text-xs" }, Yy = /* @__PURE__ */ F({
5235
+ }), r4 = { class: "text-xs" }, Gy = /* @__PURE__ */ F({
5236
5236
  __name: "TagInput",
5237
5237
  props: {
5238
5238
  label: {},
@@ -5925,17 +5925,17 @@ function Pd(n, e, t, r) {
5925
5925
  return Fn(s, l.cut(0, n.parentOffset).append(t.content).append(l.cut(e.parentOffset)));
5926
5926
  } else {
5927
5927
  let { start: s, end: l } = o4(t, n);
5928
- return Fn(o, $d(n, s, l, e, r));
5928
+ return Fn(o, Id(n, s, l, e, r));
5929
5929
  }
5930
5930
  else return Fn(o, Lo(n, e, r));
5931
5931
  }
5932
- function Id(n, e) {
5932
+ function $d(n, e) {
5933
5933
  if (!e.type.compatibleContent(n.type))
5934
5934
  throw new wo("Cannot join " + e.type.name + " onto " + n.type.name);
5935
5935
  }
5936
5936
  function Cl(n, e, t) {
5937
5937
  let r = n.node(t);
5938
- return Id(r, e.node(t)), r;
5938
+ return $d(r, e.node(t)), r;
5939
5939
  }
5940
5940
  function Zn(n, e) {
5941
5941
  let t = e.length - 1;
@@ -5951,9 +5951,9 @@ function qr(n, e, t, r) {
5951
5951
  function Fn(n, e) {
5952
5952
  return n.type.checkContent(e), n.copy(e);
5953
5953
  }
5954
- function $d(n, e, t, r, i) {
5954
+ function Id(n, e, t, r, i) {
5955
5955
  let o = n.depth > i && Cl(n, e, i + 1), s = r.depth > i && Cl(t, r, i + 1), l = [];
5956
- return qr(null, n, i, l), o && s && e.index(i) == t.index(i) ? (Id(o, s), Zn(Fn(o, $d(n, e, t, r, i + 1)), l)) : (o && Zn(Fn(o, Lo(n, e, i + 1)), l), qr(e, t, i, l), s && Zn(Fn(s, Lo(t, r, i + 1)), l)), qr(r, null, i, l), new N(l);
5956
+ return qr(null, n, i, l), o && s && e.index(i) == t.index(i) ? ($d(o, s), Zn(Fn(o, Id(n, e, t, r, i + 1)), l)) : (o && Zn(Fn(o, Lo(n, e, i + 1)), l), qr(e, t, i, l), s && Zn(Fn(s, Lo(t, r, i + 1)), l)), qr(r, null, i, l), new N(l);
5957
5957
  }
5958
5958
  function Lo(n, e, t) {
5959
5959
  let r = [];
@@ -8824,7 +8824,7 @@ function P4(n, e, t, r, i) {
8824
8824
  let o = n.steps.length;
8825
8825
  n.doc.nodesBetween(e, t, (s, l) => {
8826
8826
  let a = typeof i == "function" ? i(s) : i;
8827
- if (s.isTextblock && !s.hasMarkup(r, a) && I4(n.doc, n.mapping.slice(o).map(l), r)) {
8827
+ if (s.isTextblock && !s.hasMarkup(r, a) && $4(n.doc, n.mapping.slice(o).map(l), r)) {
8828
8828
  let u = null;
8829
8829
  if (r.schema.linebreakReplacement) {
8830
8830
  let p = r.whitespace == "pre", h = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
@@ -8856,11 +8856,11 @@ function nc(n, e, t, r) {
8856
8856
  }
8857
8857
  });
8858
8858
  }
8859
- function I4(n, e, t) {
8859
+ function $4(n, e, t) {
8860
8860
  let r = n.resolve(e), i = r.index();
8861
8861
  return r.parent.canReplaceWith(i, i + 1, t);
8862
8862
  }
8863
- function $4(n, e, t, r, i) {
8863
+ function I4(n, e, t, r, i) {
8864
8864
  let o = n.doc.nodeAt(e);
8865
8865
  if (!o)
8866
8866
  throw new RangeError("No node at given position");
@@ -9496,7 +9496,7 @@ class ac {
9496
9496
  When `type` isn't given, the existing node type is preserved,
9497
9497
  */
9498
9498
  setNodeMarkup(e, t, r = null, i) {
9499
- return $4(this, e, t, r, i), this;
9499
+ return I4(this, e, t, r, i), this;
9500
9500
  }
9501
9501
  /**
9502
9502
  Set a single attribute on a given node to a new value.
@@ -10342,7 +10342,7 @@ function uc(n, e, t) {
10342
10342
  }
10343
10343
  return t;
10344
10344
  }
10345
- class $e {
10345
+ class Ie {
10346
10346
  /**
10347
10347
  Create a plugin.
10348
10348
  */
@@ -10396,9 +10396,9 @@ const Kt = function(n, e, t) {
10396
10396
  }, e3 = function() {
10397
10397
  Ml = null;
10398
10398
  }, Jn = function(n, e, t, r) {
10399
- return t && (I1(n, e, t, r, -1) || I1(n, e, t, r, 1));
10399
+ return t && ($1(n, e, t, r, -1) || $1(n, e, t, r, 1));
10400
10400
  }, t3 = /^(img|br|input|textarea|hr)$/i;
10401
- function I1(n, e, t, r, i) {
10401
+ function $1(n, e, t, r, i) {
10402
10402
  for (var o; ; ) {
10403
10403
  if (n == t && e == r)
10404
10404
  return !0;
@@ -10494,9 +10494,9 @@ function s3(n, e, t) {
10494
10494
  return { node: r.startContainer, offset: Math.min(gt(r.startContainer), r.startOffset) };
10495
10495
  }
10496
10496
  }
10497
- const Pt = typeof navigator < "u" ? navigator : null, $1 = typeof document < "u" ? document : null, Sn = Pt && Pt.userAgent || "", xl = /Edge\/(\d+)/.exec(Sn), cc = /MSIE \d/.exec(Sn), Sl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Sn), Qe = !!(cc || Sl || xl), yn = cc ? document.documentMode : Sl ? +Sl[1] : xl ? +xl[1] : 0, St = !Qe && /gecko\/(\d+)/i.test(Sn);
10497
+ const Pt = typeof navigator < "u" ? navigator : null, I1 = typeof document < "u" ? document : null, Sn = Pt && Pt.userAgent || "", xl = /Edge\/(\d+)/.exec(Sn), cc = /MSIE \d/.exec(Sn), Sl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Sn), Qe = !!(cc || Sl || xl), yn = cc ? document.documentMode : Sl ? +Sl[1] : xl ? +xl[1] : 0, St = !Qe && /gecko\/(\d+)/i.test(Sn);
10498
10498
  St && +(/Firefox\/(\d+)/.exec(Sn) || [0, 0])[1];
10499
- const Hl = !Qe && /Chrome\/(\d+)/.exec(Sn), Fe = !!Hl, fc = Hl ? +Hl[1] : 0, Ue = !Qe && !!Pt && /Apple Computer/.test(Pt.vendor), br = Ue && (/Mobile\/\w+/.test(Sn) || !!Pt && Pt.maxTouchPoints > 2), mt = br || (Pt ? /Mac/.test(Pt.platform) : !1), l3 = Pt ? /Win/.test(Pt.platform) : !1, Jt = /Android \d/.test(Sn), Ai = !!$1 && "webkitFontSmoothing" in $1.documentElement.style, a3 = Ai ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
10499
+ const Hl = !Qe && /Chrome\/(\d+)/.exec(Sn), Fe = !!Hl, fc = Hl ? +Hl[1] : 0, Ue = !Qe && !!Pt && /Apple Computer/.test(Pt.vendor), br = Ue && (/Mobile\/\w+/.test(Sn) || !!Pt && Pt.maxTouchPoints > 2), mt = br || (Pt ? /Mac/.test(Pt.platform) : !1), l3 = Pt ? /Win/.test(Pt.platform) : !1, Jt = /Android \d/.test(Sn), Ai = !!I1 && "webkitFontSmoothing" in I1.documentElement.style, a3 = Ai ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
10500
10500
  function u3(n) {
10501
10501
  let e = n.defaultView && n.defaultView.visualViewport;
10502
10502
  return e ? {
@@ -10830,7 +10830,7 @@ let F1 = null, z1 = null, j1 = !1;
10830
10830
  function L3(n, e, t) {
10831
10831
  return F1 == e && z1 == t ? j1 : (F1 = e, z1 = t, j1 = t == "up" || t == "down" ? b3(n, e, t) : w3(n, e, t));
10832
10832
  }
10833
- const vt = 0, W1 = 1, In = 2, It = 3;
10833
+ const vt = 0, W1 = 1, $n = 2, $t = 3;
10834
10834
  class Di {
10835
10835
  constructor(e, t, r, i) {
10836
10836
  this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = vt, r.pmViewDesc = this;
@@ -11146,19 +11146,19 @@ class Di {
11146
11146
  if (r == s ? e <= s && t >= r : e < s && t > r) {
11147
11147
  let l = r + o.border, a = s - o.border;
11148
11148
  if (e >= l && t <= a) {
11149
- this.dirty = e == r || t == s ? In : W1, e == l && t == a && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = It : o.markDirty(e - l, t - l);
11149
+ this.dirty = e == r || t == s ? $n : W1, e == l && t == a && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = $t : o.markDirty(e - l, t - l);
11150
11150
  return;
11151
11151
  } else
11152
- o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? In : It;
11152
+ o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? $n : $t;
11153
11153
  }
11154
11154
  r = s;
11155
11155
  }
11156
- this.dirty = In;
11156
+ this.dirty = $n;
11157
11157
  }
11158
11158
  markParentsDirty() {
11159
11159
  let e = 1;
11160
11160
  for (let t = this.parent; t; t = t.parent, e++) {
11161
- let r = e == 1 ? In : W1;
11161
+ let r = e == 1 ? $n : W1;
11162
11162
  t.dirty < r && (t.dirty = r);
11163
11163
  }
11164
11164
  }
@@ -11244,10 +11244,10 @@ class Gn extends Di {
11244
11244
  return (!s || !s.dom) && (s = Xn.renderSpec(document, t.type.spec.toDOM(t, r), null, t.attrs)), new Gn(e, t, s.dom, s.contentDOM || s.dom, s);
11245
11245
  }
11246
11246
  parseRule() {
11247
- return this.dirty & It || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
11247
+ return this.dirty & $t || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
11248
11248
  }
11249
11249
  matchesMark(e) {
11250
- return this.dirty != It && this.mark.eq(e);
11250
+ return this.dirty != $t && this.mark.eq(e);
11251
11251
  }
11252
11252
  markDirty(e, t) {
11253
11253
  if (super.markDirty(e, t), this.dirty != vt) {
@@ -11342,7 +11342,7 @@ class vn extends Di {
11342
11342
  a.syncToMarks(u.marks, r, e);
11343
11343
  let p;
11344
11344
  a.findNodeMatch(u, d, c, f) || l && e.state.selection.from > i && e.state.selection.to < i + u.nodeSize && (p = a.findIndexWithChild(o.node)) > -1 && a.updateNodeAt(u, d, c, p, e) || a.updateNextNode(u, d, c, e, f, i) || a.addNode(u, d, c, e, i), i += u.nodeSize;
11345
- }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == In) && (s && this.protectLocalComposition(e, s), kc(this.contentDOM, this.children, e), br && V3(this.dom));
11345
+ }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == $n) && (s && this.protectLocalComposition(e, s), kc(this.contentDOM, this.children, e), br && V3(this.dom));
11346
11346
  }
11347
11347
  localCompositionInfo(e, t) {
11348
11348
  let { from: r, to: i } = e.state.selection;
@@ -11374,7 +11374,7 @@ class vn extends Di {
11374
11374
  // If this desc must be updated to match the given node decoration,
11375
11375
  // do so and return true.
11376
11376
  update(e, t, r, i) {
11377
- return this.dirty == It || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, i), !0);
11377
+ return this.dirty == $t || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, i), !0);
11378
11378
  }
11379
11379
  updateInner(e, t, r, i) {
11380
11380
  this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = vt;
@@ -11413,7 +11413,7 @@ class xs extends vn {
11413
11413
  return { skip: e || !0 };
11414
11414
  }
11415
11415
  update(e, t, r, i) {
11416
- return this.dirty == It || this.dirty != vt && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != vt || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = vt, !0);
11416
+ return this.dirty == $t || this.dirty != vt && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != vt || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = vt, !0);
11417
11417
  }
11418
11418
  inParent() {
11419
11419
  let e = this.parent.contentDOM;
@@ -11436,7 +11436,7 @@ class xs extends vn {
11436
11436
  return new xs(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
11437
11437
  }
11438
11438
  markDirty(e, t) {
11439
- super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = It);
11439
+ super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = $t);
11440
11440
  }
11441
11441
  get domAtom() {
11442
11442
  return !1;
@@ -11467,7 +11467,7 @@ class x3 extends vn {
11467
11467
  // through. If it does, and there's a `contentDOM` node, our logic
11468
11468
  // updates the children.
11469
11469
  update(e, t, r, i) {
11470
- if (this.dirty == It)
11470
+ if (this.dirty == $t)
11471
11471
  return !1;
11472
11472
  if (this.spec.update && (this.node.type == e.type || this.spec.multiType)) {
11473
11473
  let o = this.spec.update(e, t, r);
@@ -11516,11 +11516,11 @@ const Jr = function(n) {
11516
11516
  n && (this.nodeName = n);
11517
11517
  };
11518
11518
  Jr.prototype = /* @__PURE__ */ Object.create(null);
11519
- const $n = [new Jr()];
11519
+ const In = [new Jr()];
11520
11520
  function Tl(n, e, t) {
11521
11521
  if (n.length == 0)
11522
- return $n;
11523
- let r = t ? $n[0] : new Jr(), i = [r];
11522
+ return In;
11523
+ let r = t ? In[0] : new Jr(), i = [r];
11524
11524
  for (let o = 0; o < n.length; o++) {
11525
11525
  let s = n[o].type.attrs;
11526
11526
  if (s) {
@@ -11534,16 +11534,16 @@ function Tl(n, e, t) {
11534
11534
  return i;
11535
11535
  }
11536
11536
  function wc(n, e, t, r) {
11537
- if (t == $n && r == $n)
11537
+ if (t == In && r == In)
11538
11538
  return e;
11539
11539
  let i = e;
11540
11540
  for (let o = 0; o < r.length; o++) {
11541
11541
  let s = r[o], l = t[o];
11542
11542
  if (o) {
11543
11543
  let a;
11544
- l && l.nodeName == s.nodeName && i != n && (a = i.parentNode) && a.nodeName.toLowerCase() == s.nodeName || (a = document.createElement(s.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = $n[0]), i = a;
11544
+ l && l.nodeName == s.nodeName && i != n && (a = i.parentNode) && a.nodeName.toLowerCase() == s.nodeName || (a = document.createElement(s.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = In[0]), i = a;
11545
11545
  }
11546
- S3(i, l || $n[0], s);
11546
+ S3(i, l || In[0], s);
11547
11547
  }
11548
11548
  return i;
11549
11549
  }
@@ -11570,7 +11570,7 @@ function S3(n, e, t) {
11570
11570
  }
11571
11571
  }
11572
11572
  function Lc(n, e, t) {
11573
- return wc(n, n, $n, Tl(e, t, n.nodeType != 1));
11573
+ return wc(n, n, In, Tl(e, t, n.nodeType != 1));
11574
11574
  }
11575
11575
  function So(n, e) {
11576
11576
  if (n.length != e.length)
@@ -11646,7 +11646,7 @@ class H3 {
11646
11646
  }
11647
11647
  updateNodeAt(e, t, r, i, o) {
11648
11648
  let s = this.top.children[i];
11649
- return s.dirty == It && s.dom == s.contentDOM && (s.dirty = In), s.update(e, t, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
11649
+ return s.dirty == $t && s.dom == s.contentDOM && (s.dirty = $n), s.update(e, t, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
11650
11650
  }
11651
11651
  findIndexWithChild(e) {
11652
11652
  for (; ; ) {
@@ -11674,11 +11674,11 @@ class H3 {
11674
11674
  let u = this.preMatch.matched.get(a);
11675
11675
  if (u != null && u != o)
11676
11676
  return !1;
11677
- let d = a.dom, c, f = this.isLocked(d) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != It && So(t, a.outerDeco));
11677
+ let d = a.dom, c, f = this.isLocked(d) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != $t && So(t, a.outerDeco));
11678
11678
  if (!f && a.update(e, t, r, i))
11679
11679
  return this.destroyBetween(this.index, l), a.dom != d && (this.changed = !0), this.index++, !0;
11680
11680
  if (!f && (c = this.recreateWrapper(a, e, t, r, i, s)))
11681
- return this.destroyBetween(this.index, l), this.top.children[this.index] = c, c.contentDOM && (c.dirty = In, c.updateChildren(i, s + 1), c.dirty = vt), this.changed = !0, this.index++, !0;
11681
+ return this.destroyBetween(this.index, l), this.top.children[this.index] = c, c.contentDOM && (c.dirty = $n, c.updateChildren(i, s + 1), c.dirty = vt), this.changed = !0, this.index++, !0;
11682
11682
  break;
11683
11683
  }
11684
11684
  }
@@ -12020,7 +12020,7 @@ function Gr(n, e) {
12020
12020
  return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
12021
12021
  }
12022
12022
  function rr(n, e) {
12023
- return e < 0 ? P3(n) : I3(n);
12023
+ return e < 0 ? P3(n) : $3(n);
12024
12024
  }
12025
12025
  function P3(n) {
12026
12026
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
@@ -12058,7 +12058,7 @@ function P3(n) {
12058
12058
  }
12059
12059
  s ? Vl(n, t, r) : i && Vl(n, i, o);
12060
12060
  }
12061
- function I3(n) {
12061
+ function $3(n) {
12062
12062
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
12063
12063
  if (!t)
12064
12064
  return;
@@ -12094,7 +12094,7 @@ function Hc(n) {
12094
12094
  let e = n.pmViewDesc;
12095
12095
  return e && e.node && e.node.isBlock;
12096
12096
  }
12097
- function $3(n, e) {
12097
+ function I3(n, e) {
12098
12098
  for (; n && e == n.childNodes.length && !Vi(n); )
12099
12099
  e = Pe(n) + 1, n = n.parentNode;
12100
12100
  for (; n && e < n.childNodes.length; ) {
@@ -12121,7 +12121,7 @@ function B3(n, e) {
12121
12121
  function Vl(n, e, t) {
12122
12122
  if (e.nodeType != 3) {
12123
12123
  let o, s;
12124
- (s = $3(e, t)) ? (e = s, t = 0) : (o = B3(e, t)) && (e = o, t = o.nodeValue.length);
12124
+ (s = I3(e, t)) ? (e = s, t = 0) : (o = B3(e, t)) && (e = o, t = o.nodeValue.length);
12125
12125
  }
12126
12126
  let r = n.domSelection();
12127
12127
  if (!r)
@@ -12660,7 +12660,7 @@ qe.compositionend = (n, e) => {
12660
12660
  function Pc(n, e) {
12661
12661
  clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => To(n), e));
12662
12662
  }
12663
- function Ic(n) {
12663
+ function $c(n) {
12664
12664
  for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = c9()); n.input.compositionNodes.length > 0; )
12665
12665
  n.input.compositionNodes.pop().markParentsDirty();
12666
12666
  }
@@ -12689,7 +12689,7 @@ function c9() {
12689
12689
  }
12690
12690
  function To(n, e = !1) {
12691
12691
  if (!(Jt && n.domObserver.flushingSoon >= 0)) {
12692
- if (n.domObserver.forceFlush(), Ic(n), e || n.docView && n.docView.dirty) {
12692
+ if (n.domObserver.forceFlush(), $c(n), e || n.docView && n.docView.dirty) {
12693
12693
  let t = pa(n), r = n.state.selection;
12694
12694
  return t && !t.eq(r) ? n.dispatch(n.state.tr.setSelection(t)) : (n.markCursor || e) && !r.$from.node(r.$from.sharedDepth(r.to)).inlineContent ? n.dispatch(n.state.tr.deleteSelection()) : n.updateState(n.state), !0;
12695
12695
  }
@@ -12736,7 +12736,7 @@ function pi(n, e, t, r, i) {
12736
12736
  let s = p9(o), l = s ? n.state.tr.replaceSelectionWith(s, r) : n.state.tr.replaceSelection(o);
12737
12737
  return n.dispatch(l.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
12738
12738
  }
12739
- function $c(n) {
12739
+ function Ic(n) {
12740
12740
  let e = n.getData("text/plain") || n.getData("Text");
12741
12741
  if (e)
12742
12742
  return e;
@@ -12748,7 +12748,7 @@ qe.paste = (n, e) => {
12748
12748
  if (n.composing && !Jt)
12749
12749
  return;
12750
12750
  let r = fi ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
12751
- r && pi(n, $c(r), r.getData("text/html"), i, t) ? t.preventDefault() : h9(n, t);
12751
+ r && pi(n, Ic(r), r.getData("text/html"), i, t) ? t.preventDefault() : h9(n, t);
12752
12752
  };
12753
12753
  class Bc {
12754
12754
  constructor(e, t, r) {
@@ -12793,7 +12793,7 @@ qe.drop = (n, e) => {
12793
12793
  let o = n.state.doc.resolve(i.pos), s = r && r.slice;
12794
12794
  s ? n.someProp("transformPasted", (h) => {
12795
12795
  s = h(s, n);
12796
- }) : s = Tc(n, $c(t.dataTransfer), fi ? null : t.dataTransfer.getData("text/html"), !1, o);
12796
+ }) : s = Tc(n, Ic(t.dataTransfer), fi ? null : t.dataTransfer.getData("text/html"), !1, o);
12797
12797
  let l = !!(r && Zc(n, t));
12798
12798
  if (n.someProp("handleDrop", (h) => h(n, t, s || W.empty, l))) {
12799
12799
  t.preventDefault();
@@ -13599,8 +13599,8 @@ function T9(n, e, t, r, i) {
13599
13599
  if (T && !n.state.selection.eq(T)) {
13600
13600
  if (Fe && Jt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (ne) => ne(n, Rn(13, "Enter"))))
13601
13601
  return;
13602
- let I = n.state.tr.setSelection(T);
13603
- E == "pointer" ? I.setMeta("pointer", !0) : E == "key" && I.scrollIntoView(), o && I.setMeta("composition", o), n.dispatch(I);
13602
+ let $ = n.state.tr.setSelection(T);
13603
+ E == "pointer" ? $.setMeta("pointer", !0) : E == "key" && $.scrollIntoView(), o && $.setMeta("composition", o), n.dispatch($);
13604
13604
  }
13605
13605
  return;
13606
13606
  }
@@ -13644,8 +13644,8 @@ function T9(n, e, t, r, i) {
13644
13644
  let C = h.start, S = h.endA, x = (E) => {
13645
13645
  let T = E || n.state.tr.replace(C, S, u.doc.slice(h.start - u.from, h.endB - u.from));
13646
13646
  if (u.sel) {
13647
- let I = uu(n, T.doc, u.sel);
13648
- I && !(Fe && n.composing && I.empty && (h.start != h.endB || n.input.lastChromeDelete < Date.now() - 100) && (I.head == C || I.head == T.mapping.map(S) - 1) || Qe && I.empty && I.head == C) && T.setSelection(I);
13647
+ let $ = uu(n, T.doc, u.sel);
13648
+ $ && !(Fe && n.composing && $.empty && (h.start != h.endB || n.input.lastChromeDelete < Date.now() - 100) && ($.head == C || $.head == T.mapping.map(S) - 1) || Qe && $.empty && $.head == C) && T.setSelection($);
13649
13649
  }
13650
13650
  return o && T.setMeta("composition", o), T.scrollIntoView();
13651
13651
  }, Z;
@@ -13662,7 +13662,7 @@ function T9(n, e, t, r, i) {
13662
13662
  Z.type == "add" ? E.addMark(C, S, Z.mark) : E.removeMark(C, S, Z.mark), n.dispatch(E);
13663
13663
  } else if (m.parent.child(m.index()).isText && m.index() == y.index() - (y.textOffset ? 0 : 1)) {
13664
13664
  let E = m.parent.textBetween(m.parentOffset, y.parentOffset), T = () => x(n.state.tr.insertText(E, C, S));
13665
- n.someProp("handleTextInput", (I) => I(n, C, S, E, T)) || n.dispatch(T());
13665
+ n.someProp("handleTextInput", ($) => $(n, C, S, E, T)) || n.dispatch(T());
13666
13666
  }
13667
13667
  } else
13668
13668
  n.dispatch(x());
@@ -13805,7 +13805,7 @@ class Wc {
13805
13805
  updateStateInner(e, t) {
13806
13806
  var r;
13807
13807
  let i = this.state, o = !1, s = !1;
13808
- e.storedMarks && this.composing && (Ic(this), s = !0), this.state = e;
13808
+ e.storedMarks && this.composing && ($c(this), s = !0), this.state = e;
13809
13809
  let l = i.plugins != e.plugins || this._props.plugins != t.plugins;
13810
13810
  if (l || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
13811
13811
  let p = hu(this);
@@ -14200,16 +14200,16 @@ var Ln = {
14200
14200
  221: "}",
14201
14201
  222: '"'
14202
14202
  }, N9 = typeof navigator < "u" && /Mac/.test(navigator.platform), R9 = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
14203
- for (var Ie = 0; Ie < 10; Ie++) Ln[48 + Ie] = Ln[96 + Ie] = String(Ie);
14204
- for (var Ie = 1; Ie <= 24; Ie++) Ln[Ie + 111] = "F" + Ie;
14205
- for (var Ie = 65; Ie <= 90; Ie++)
14206
- Ln[Ie] = String.fromCharCode(Ie + 32), Vo[Ie] = String.fromCharCode(Ie);
14203
+ for (var $e = 0; $e < 10; $e++) Ln[48 + $e] = Ln[96 + $e] = String($e);
14204
+ for (var $e = 1; $e <= 24; $e++) Ln[$e + 111] = "F" + $e;
14205
+ for (var $e = 65; $e <= 90; $e++)
14206
+ Ln[$e] = String.fromCharCode($e + 32), Vo[$e] = String.fromCharCode($e);
14207
14207
  for (var Xs in Ln) Vo.hasOwnProperty(Xs) || (Vo[Xs] = Ln[Xs]);
14208
14208
  function P9(n) {
14209
14209
  var e = N9 && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || R9 && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Vo : Ln)[n.keyCode] || n.key || "Unidentified";
14210
14210
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
14211
14211
  }
14212
- const I9 = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), $9 = typeof navigator < "u" && /Win/.test(navigator.platform);
14212
+ const $9 = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), I9 = typeof navigator < "u" && /Win/.test(navigator.platform);
14213
14213
  function B9(n) {
14214
14214
  let e = n.split(/-(?!$)/), t = e[e.length - 1];
14215
14215
  t == "Space" && (t = " ");
@@ -14225,7 +14225,7 @@ function B9(n) {
14225
14225
  else if (/^s(hift)?$/i.test(a))
14226
14226
  o = !0;
14227
14227
  else if (/^mod$/i.test(a))
14228
- I9 ? s = !0 : i = !0;
14228
+ $9 ? s = !0 : i = !0;
14229
14229
  else
14230
14230
  throw new Error("Unrecognized modifier name: " + a);
14231
14231
  }
@@ -14241,7 +14241,7 @@ function Qs(n, e, t = !0) {
14241
14241
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
14242
14242
  }
14243
14243
  function F9(n) {
14244
- return new $e({ props: { handleKeyDown: z9(n) } });
14244
+ return new Ie({ props: { handleKeyDown: z9(n) } });
14245
14245
  }
14246
14246
  function z9(n) {
14247
14247
  let e = Z9(n);
@@ -14256,7 +14256,7 @@ function z9(n) {
14256
14256
  return !0;
14257
14257
  }
14258
14258
  if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
14259
- !($9 && r.ctrlKey && r.altKey) && (o = Ln[r.keyCode]) && o != i) {
14259
+ !(I9 && r.ctrlKey && r.altKey) && (o = Ln[r.keyCode]) && o != i) {
14260
14260
  let l = e[Qs(o, r)];
14261
14261
  if (l && l(t.state, t.dispatch, t))
14262
14262
  return !0;
@@ -15122,7 +15122,7 @@ function Xi(n) {
15122
15122
  }), d;
15123
15123
  }
15124
15124
  function mm(n) {
15125
- const { editor: e, rules: t } = n, r = new $e({
15125
+ const { editor: e, rules: t } = n, r = new Ie({
15126
15126
  state: {
15127
15127
  init() {
15128
15128
  return null;
@@ -15335,7 +15335,7 @@ function wm(n) {
15335
15335
  return s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, m;
15336
15336
  }
15337
15337
  };
15338
- return t.map((d) => new $e({
15338
+ return t.map((d) => new Ie({
15339
15339
  // we register a global drag handler to track the current drag source element
15340
15340
  view(c) {
15341
15341
  const f = (h) => {
@@ -15632,7 +15632,7 @@ const Mm = Ye.create({
15632
15632
  },
15633
15633
  addProseMirrorPlugins() {
15634
15634
  return [
15635
- new $e({
15635
+ new Ie({
15636
15636
  key: new Je("clipboardTextSerializer"),
15637
15637
  props: {
15638
15638
  clipboardTextSerializer: () => {
@@ -15739,7 +15739,7 @@ function Hn(n, e) {
15739
15739
  }
15740
15740
  return n;
15741
15741
  }
15742
- const Im = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
15742
+ const $m = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
15743
15743
  const o = Hn(n, r.schema), { doc: s, selection: l } = t, { $from: a, from: u, to: d } = l;
15744
15744
  if (i) {
15745
15745
  const c = Oa(a, o, e);
@@ -15749,7 +15749,7 @@ const Im = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
15749
15749
  }
15750
15750
  }
15751
15751
  return !0;
15752
- }, $m = (n) => (e) => {
15752
+ }, Im = (n) => (e) => {
15753
15753
  const t = typeof n == "function" ? n(e) : n;
15754
15754
  for (let r = 0; r < t.length; r += 1)
15755
15755
  if (t[r](e))
@@ -16466,10 +16466,10 @@ const A6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
16466
16466
  const o = Ne(n, r.schema), s = Ne(e, r.schema), l = gi(r, o, t);
16467
16467
  let a;
16468
16468
  return r.selection.$anchor.sameParent(r.selection.$head) && (a = r.selection.$anchor.parent.attrs), l ? i.setNode(s, a) : i.setNode(o, { ...a, ...t });
16469
- }, I6 = (n, e = {}) => ({ state: t, commands: r }) => {
16469
+ }, $6 = (n, e = {}) => ({ state: t, commands: r }) => {
16470
16470
  const i = Ne(n, t.schema);
16471
16471
  return gi(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
16472
- }, $6 = () => ({ state: n, dispatch: e }) => {
16472
+ }, I6 = () => ({ state: n, dispatch: e }) => {
16473
16473
  const t = n.plugins;
16474
16474
  for (let r = 0; r < t.length; r += 1) {
16475
16475
  const i = t[r];
@@ -16560,8 +16560,8 @@ var W6 = /* @__PURE__ */ Object.freeze({
16560
16560
  deleteSelection: Nm,
16561
16561
  enter: Rm,
16562
16562
  exitCode: Pm,
16563
- extendMarkRange: Im,
16564
- first: $m,
16563
+ extendMarkRange: $m,
16564
+ first: Im,
16565
16565
  focus: Zm,
16566
16566
  forEach: Fm,
16567
16567
  insertContent: zm,
@@ -16599,8 +16599,8 @@ var W6 = /* @__PURE__ */ Object.freeze({
16599
16599
  toggleList: N6,
16600
16600
  toggleMark: R6,
16601
16601
  toggleNode: P6,
16602
- toggleWrap: I6,
16603
- undoInputRule: $6,
16602
+ toggleWrap: $6,
16603
+ undoInputRule: I6,
16604
16604
  unsetAllMarks: B6,
16605
16605
  unsetMark: Z6,
16606
16606
  updateAttributes: F6,
@@ -16618,7 +16618,7 @@ const U6 = Ye.create({
16618
16618
  name: "drop",
16619
16619
  addProseMirrorPlugins() {
16620
16620
  return [
16621
- new $e({
16621
+ new Ie({
16622
16622
  key: new Je("tiptapDrop"),
16623
16623
  props: {
16624
16624
  handleDrop: (n, e, t, r) => {
@@ -16637,7 +16637,7 @@ const U6 = Ye.create({
16637
16637
  name: "editable",
16638
16638
  addProseMirrorPlugins() {
16639
16639
  return [
16640
- new $e({
16640
+ new Ie({
16641
16641
  key: new Je("editable"),
16642
16642
  props: {
16643
16643
  editable: () => this.editor.options.editable
@@ -16650,7 +16650,7 @@ const U6 = Ye.create({
16650
16650
  addProseMirrorPlugins() {
16651
16651
  const { editor: n } = this;
16652
16652
  return [
16653
- new $e({
16653
+ new Ie({
16654
16654
  key: Y6,
16655
16655
  props: {
16656
16656
  handleDOMEvents: {
@@ -16723,7 +16723,7 @@ const U6 = Ye.create({
16723
16723
  // to a paragraph if necessary.
16724
16724
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
16725
16725
  // with many other commands.
16726
- new $e({
16726
+ new Ie({
16727
16727
  key: new Je("clearDocument"),
16728
16728
  appendTransaction: (n, e, t) => {
16729
16729
  if (n.some((m) => m.getMeta("composition")))
@@ -16751,7 +16751,7 @@ const U6 = Ye.create({
16751
16751
  name: "paste",
16752
16752
  addProseMirrorPlugins() {
16753
16753
  return [
16754
- new $e({
16754
+ new Ie({
16755
16755
  key: new Je("tiptapPaste"),
16756
16756
  props: {
16757
16757
  handlePaste: (n, e, t) => {
@@ -16769,7 +16769,7 @@ const U6 = Ye.create({
16769
16769
  name: "tabindex",
16770
16770
  addProseMirrorPlugins() {
16771
16771
  return [
16772
- new $e({
16772
+ new Ie({
16773
16773
  key: new Je("tabindex"),
16774
16774
  props: {
16775
16775
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
@@ -17386,7 +17386,7 @@ function Do(n) {
17386
17386
  }
17387
17387
  });
17388
17388
  }
17389
- let Qn = class Il {
17389
+ let Qn = class $l {
17390
17390
  constructor(e = {}) {
17391
17391
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
17392
17392
  name: this.name,
@@ -17402,7 +17402,7 @@ let Qn = class Il {
17402
17402
  })) || {};
17403
17403
  }
17404
17404
  static create(e = {}) {
17405
- return new Il(e);
17405
+ return new $l(e);
17406
17406
  }
17407
17407
  configure(e = {}) {
17408
17408
  const t = this.extend({
@@ -17412,7 +17412,7 @@ let Qn = class Il {
17412
17412
  return t.name = this.name, t.parent = this.parent, t;
17413
17413
  }
17414
17414
  extend(e = {}) {
17415
- const t = new Il(e);
17415
+ const t = new $l(e);
17416
17416
  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 = ue(K(t, "addOptions", {
17417
17417
  name: t.name
17418
17418
  })), t.storage = ue(K(t, "addStorage", {
@@ -17968,7 +17968,7 @@ function k8(n = {}) {
17968
17968
  return n = {
17969
17969
  depth: n.depth || 100,
17970
17970
  newGroupDelay: n.newGroupDelay || 500
17971
- }, new $e({
17971
+ }, new Ie({
17972
17972
  key: Wn,
17973
17973
  state: {
17974
17974
  init() {
@@ -18095,12 +18095,12 @@ const yf = gf(!1, !0), vf = gf(!0, !0), Ou = Ye.create({
18095
18095
  })
18096
18096
  ];
18097
18097
  }
18098
- }), H8 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", T8 = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", $l = "numeric", Bl = "ascii", Zl = "alpha", _r = "asciinumeric", Kr = "alphanumeric", Fl = "domain", Cf = "emoji", E8 = "scheme", O8 = "slashscheme", ol = "whitespace";
18098
+ }), H8 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", T8 = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Il = "numeric", Bl = "ascii", Zl = "alpha", _r = "asciinumeric", Kr = "alphanumeric", Fl = "domain", Cf = "emoji", E8 = "scheme", O8 = "slashscheme", ol = "whitespace";
18099
18099
  function V8(n, e) {
18100
18100
  return n in e || (e[n] = []), e[n];
18101
18101
  }
18102
18102
  function Bn(n, e, t) {
18103
- e[$l] && (e[_r] = !0, e[Kr] = !0), e[Bl] && (e[_r] = !0, e[Zl] = !0), e[_r] && (e[Kr] = !0), e[Zl] && (e[Kr] = !0), e[Kr] && (e[Fl] = !0), e[Cf] && (e[Fl] = !0);
18103
+ e[Il] && (e[_r] = !0, e[Kr] = !0), e[Bl] && (e[_r] = !0, e[Zl] = !0), e[_r] && (e[Kr] = !0), e[Zl] && (e[Kr] = !0), e[Kr] && (e[Fl] = !0), e[Cf] && (e[Fl] = !0);
18104
18104
  for (const r in e) {
18105
18105
  const i = V8(r, t);
18106
18106
  i.indexOf(n) < 0 && i.push(n);
@@ -18236,7 +18236,7 @@ _e.prototype = {
18236
18236
  return i.j[n] = s, s;
18237
18237
  }
18238
18238
  };
18239
- const ie = (n, e, t, r, i) => n.ta(e, t, r, i), xe = (n, e, t, r, i) => n.tr(e, t, r, i), Vu = (n, e, t, r, i) => n.ts(e, t, r, i), R = (n, e, t, r, i) => n.tt(e, t, r, i), Ut = "WORD", zl = "UWORD", bf = "ASCIINUMERICAL", kf = "ALPHANUMERICAL", vi = "LOCALHOST", jl = "TLD", Wl = "UTLD", ho = "SCHEME", lr = "SLASH_SCHEME", Ra = "NUM", Ul = "WS", Pa = "NL", Xr = "OPENBRACE", Qr = "CLOSEBRACE", Ro = "OPENBRACKET", Po = "CLOSEBRACKET", Io = "OPENPAREN", $o = "CLOSEPAREN", Bo = "OPENANGLEBRACKET", Zo = "CLOSEANGLEBRACKET", Fo = "FULLWIDTHLEFTPAREN", zo = "FULLWIDTHRIGHTPAREN", jo = "LEFTCORNERBRACKET", Wo = "RIGHTCORNERBRACKET", Uo = "LEFTWHITECORNERBRACKET", Ko = "RIGHTWHITECORNERBRACKET", qo = "FULLWIDTHLESSTHAN", Yo = "FULLWIDTHGREATERTHAN", Jo = "AMPERSAND", Go = "APOSTROPHE", _o = "ASTERISK", an = "AT", Xo = "BACKSLASH", Qo = "BACKTICK", es = "CARET", dn = "COLON", Ia = "COMMA", ts = "DOLLAR", Et = "DOT", ns = "EQUALS", $a = "EXCLAMATION", ht = "HYPHEN", ei = "PERCENT", rs = "PIPE", is = "PLUS", ss = "POUND", ti = "QUERY", Ba = "QUOTE", wf = "FULLWIDTHMIDDLEDOT", Za = "SEMI", Ot = "SLASH", ni = "TILDE", ls = "UNDERSCORE", Lf = "EMOJI", as = "SYM";
18239
+ const ie = (n, e, t, r, i) => n.ta(e, t, r, i), xe = (n, e, t, r, i) => n.tr(e, t, r, i), Vu = (n, e, t, r, i) => n.ts(e, t, r, i), R = (n, e, t, r, i) => n.tt(e, t, r, i), Ut = "WORD", zl = "UWORD", bf = "ASCIINUMERICAL", kf = "ALPHANUMERICAL", vi = "LOCALHOST", jl = "TLD", Wl = "UTLD", ho = "SCHEME", lr = "SLASH_SCHEME", Ra = "NUM", Ul = "WS", Pa = "NL", Xr = "OPENBRACE", Qr = "CLOSEBRACE", Ro = "OPENBRACKET", Po = "CLOSEBRACKET", $o = "OPENPAREN", Io = "CLOSEPAREN", Bo = "OPENANGLEBRACKET", Zo = "CLOSEANGLEBRACKET", Fo = "FULLWIDTHLEFTPAREN", zo = "FULLWIDTHRIGHTPAREN", jo = "LEFTCORNERBRACKET", Wo = "RIGHTCORNERBRACKET", Uo = "LEFTWHITECORNERBRACKET", Ko = "RIGHTWHITECORNERBRACKET", qo = "FULLWIDTHLESSTHAN", Yo = "FULLWIDTHGREATERTHAN", Jo = "AMPERSAND", Go = "APOSTROPHE", _o = "ASTERISK", an = "AT", Xo = "BACKSLASH", Qo = "BACKTICK", es = "CARET", dn = "COLON", $a = "COMMA", ts = "DOLLAR", Et = "DOT", ns = "EQUALS", Ia = "EXCLAMATION", ht = "HYPHEN", ei = "PERCENT", rs = "PIPE", is = "PLUS", ss = "POUND", ti = "QUERY", Ba = "QUOTE", wf = "FULLWIDTHMIDDLEDOT", Za = "SEMI", Ot = "SLASH", ni = "TILDE", ls = "UNDERSCORE", Lf = "EMOJI", as = "SYM";
18240
18240
  var Mf = /* @__PURE__ */ Object.freeze({
18241
18241
  __proto__: null,
18242
18242
  ALPHANUMERICAL: kf,
@@ -18251,14 +18251,14 @@ var Mf = /* @__PURE__ */ Object.freeze({
18251
18251
  CLOSEANGLEBRACKET: Zo,
18252
18252
  CLOSEBRACE: Qr,
18253
18253
  CLOSEBRACKET: Po,
18254
- CLOSEPAREN: $o,
18254
+ CLOSEPAREN: Io,
18255
18255
  COLON: dn,
18256
- COMMA: Ia,
18256
+ COMMA: $a,
18257
18257
  DOLLAR: ts,
18258
18258
  DOT: Et,
18259
18259
  EMOJI: Lf,
18260
18260
  EQUALS: ns,
18261
- EXCLAMATION: $a,
18261
+ EXCLAMATION: Ia,
18262
18262
  FULLWIDTHGREATERTHAN: Yo,
18263
18263
  FULLWIDTHLEFTPAREN: Fo,
18264
18264
  FULLWIDTHLESSTHAN: qo,
@@ -18273,7 +18273,7 @@ var Mf = /* @__PURE__ */ Object.freeze({
18273
18273
  OPENANGLEBRACKET: Bo,
18274
18274
  OPENBRACE: Xr,
18275
18275
  OPENBRACKET: Ro,
18276
- OPENPAREN: Io,
18276
+ OPENPAREN: $o,
18277
18277
  PERCENT: ei,
18278
18278
  PIPE: rs,
18279
18279
  PLUS: is,
@@ -18302,9 +18302,9 @@ function R8(n = []) {
18302
18302
  const e = {};
18303
18303
  _e.groups = e;
18304
18304
  const t = new _e();
18305
- no == null && (no = Du(H8)), ro == null && (ro = Du(T8)), R(t, "'", Go), R(t, "{", Xr), R(t, "}", Qr), R(t, "[", Ro), R(t, "]", Po), R(t, "(", Io), R(t, ")", $o), R(t, "<", Bo), R(t, ">", Zo), R(t, "(", Fo), R(t, ")", zo), R(t, "「", jo), R(t, "」", Wo), R(t, "『", Uo), R(t, "』", Ko), R(t, "<", qo), R(t, ">", Yo), R(t, "&", Jo), R(t, "*", _o), R(t, "@", an), R(t, "`", Qo), R(t, "^", es), R(t, ":", dn), R(t, ",", Ia), R(t, "$", ts), R(t, ".", Et), R(t, "=", ns), R(t, "!", $a), R(t, "-", ht), R(t, "%", ei), R(t, "|", rs), R(t, "+", is), R(t, "#", ss), R(t, "?", ti), R(t, '"', Ba), R(t, "/", Ot), R(t, ";", Za), R(t, "~", ni), R(t, "_", ls), R(t, "\\", Xo), R(t, "・", wf);
18305
+ no == null && (no = Du(H8)), ro == null && (ro = Du(T8)), R(t, "'", Go), R(t, "{", Xr), R(t, "}", Qr), R(t, "[", Ro), R(t, "]", Po), R(t, "(", $o), R(t, ")", Io), R(t, "<", Bo), R(t, ">", Zo), R(t, "(", Fo), R(t, ")", zo), R(t, "「", jo), R(t, "」", Wo), R(t, "『", Uo), R(t, "』", Ko), R(t, "<", qo), R(t, ">", Yo), R(t, "&", Jo), R(t, "*", _o), R(t, "@", an), R(t, "`", Qo), R(t, "^", es), R(t, ":", dn), R(t, ",", $a), R(t, "$", ts), R(t, ".", Et), R(t, "=", ns), R(t, "!", Ia), R(t, "-", ht), R(t, "%", ei), R(t, "|", rs), R(t, "+", is), R(t, "#", ss), R(t, "?", ti), R(t, '"', Ba), R(t, "/", Ot), R(t, ";", Za), R(t, "~", ni), R(t, "_", ls), R(t, "\\", Xo), R(t, "・", wf);
18306
18306
  const r = xe(t, Wt, Ra, {
18307
- [$l]: !0
18307
+ [Il]: !0
18308
18308
  });
18309
18309
  xe(r, Wt, r);
18310
18310
  const i = xe(r, jt, bf, {
@@ -18357,7 +18357,7 @@ function R8(n = []) {
18357
18357
  } : {
18358
18358
  [O8]: !0
18359
18359
  };
18360
- y.indexOf("-") >= 0 ? L[Fl] = !0 : jt.test(y) ? Wt.test(y) ? L[_r] = !0 : L[Bl] = !0 : L[$l] = !0, Vu(t, y, y, L);
18360
+ y.indexOf("-") >= 0 ? L[Fl] = !0 : jt.test(y) ? Wt.test(y) ? L[_r] = !0 : L[Bl] = !0 : L[Il] = !0, Vu(t, y, y, L);
18361
18361
  }
18362
18362
  return Vu(t, "localhost", vi, {
18363
18363
  ascii: !0
@@ -18634,7 +18634,7 @@ const Ru = Ds("email", {
18634
18634
  toHref() {
18635
18635
  return "mailto:" + this.toString();
18636
18636
  }
18637
- }), Pu = Ds("text"), I8 = Ds("nl"), io = Ds("url", {
18637
+ }), Pu = Ds("text"), $8 = Ds("nl"), io = Ds("url", {
18638
18638
  isLink: !0,
18639
18639
  /**
18640
18640
  Lowercases relevant parts of the domain and adds the protocol if
@@ -18655,10 +18655,10 @@ const Ru = Ds("email", {
18655
18655
  return n.length >= 2 && n[0].t !== vi && n[1].t === dn;
18656
18656
  }
18657
18657
  }), pt = (n) => new _e(n);
18658
- function $8({
18658
+ function I8({
18659
18659
  groups: n
18660
18660
  }) {
18661
- const e = n.domain.concat([Jo, _o, an, Xo, Qo, es, ts, ns, ht, Ra, ei, rs, is, ss, Ot, as, ni, ls]), t = [Go, dn, Ia, Et, $a, ei, ti, Ba, Za, Bo, Zo, Xr, Qr, Po, Ro, Io, $o, Fo, zo, jo, Wo, Uo, Ko, qo, Yo], r = [Jo, Go, _o, Xo, Qo, es, ts, ns, ht, Xr, Qr, ei, rs, is, ss, ti, Ot, as, ni, ls], i = pt(), o = R(i, ni);
18661
+ const e = n.domain.concat([Jo, _o, an, Xo, Qo, es, ts, ns, ht, Ra, ei, rs, is, ss, Ot, as, ni, ls]), t = [Go, dn, $a, Et, Ia, ei, ti, Ba, Za, Bo, Zo, Xr, Qr, Po, Ro, $o, Io, Fo, zo, jo, Wo, Uo, Ko, qo, Yo], r = [Jo, Go, _o, Xo, Qo, es, ts, ns, ht, Xr, Qr, ei, rs, is, ss, ti, Ot, as, ni, ls], i = pt(), o = R(i, ni);
18662
18662
  ie(o, r, o), ie(o, n.domain, o);
18663
18663
  const s = pt(), l = pt(), a = pt();
18664
18664
  ie(i, n.domain, s), ie(i, n.scheme, l), ie(i, n.slashscheme, a), ie(s, r, o), ie(s, n.domain, s);
@@ -18684,14 +18684,14 @@ function $8({
18684
18684
  ie(M, n.numeric, C);
18685
18685
  const S = pt(io), x = pt();
18686
18686
  ie(S, e, S), ie(S, t, x), ie(x, e, S), ie(x, t, x), R(L, Ot, S), R(C, Ot, S);
18687
- const Z = R(l, dn), E = R(a, dn), T = R(E, Ot), I = R(T, Ot);
18688
- ie(l, n.domain, s), R(l, Et, b), R(l, ht, y), ie(a, n.domain, s), R(a, Et, b), R(a, ht, y), ie(Z, n.domain, S), R(Z, Ot, S), R(Z, ti, S), ie(I, n.domain, S), ie(I, e, S), R(I, Ot, S);
18687
+ const Z = R(l, dn), E = R(a, dn), T = R(E, Ot), $ = R(T, Ot);
18688
+ ie(l, n.domain, s), R(l, Et, b), R(l, ht, y), ie(a, n.domain, s), R(a, Et, b), R(a, ht, y), ie(Z, n.domain, S), R(Z, Ot, S), R(Z, ti, S), ie($, n.domain, S), ie($, e, S), R($, Ot, S);
18689
18689
  const ne = [
18690
18690
  [Xr, Qr],
18691
18691
  // {}
18692
18692
  [Ro, Po],
18693
18693
  // []
18694
- [Io, $o],
18694
+ [$o, Io],
18695
18695
  // ()
18696
18696
  [Bo, Zo],
18697
18697
  // <>
@@ -18712,7 +18712,7 @@ function $8({
18712
18712
  const pe = pt();
18713
18713
  ie(be, t), ie(le, e, le), ie(le, t, pe), ie(pe, e, le), ie(pe, t, pe), R(le, Q, S), R(pe, Q, S);
18714
18714
  }
18715
- return R(i, vi, L), R(i, Pa, I8), {
18715
+ return R(i, vi, L), R(i, Pa, $8), {
18716
18716
  start: i,
18717
18717
  tokens: Mf
18718
18718
  };
@@ -18751,7 +18751,7 @@ const Z8 = typeof console < "u" && console && console.warn || (() => {
18751
18751
  function z8() {
18752
18752
  return _e.groups = {}, we.scanner = null, we.parser = null, we.tokenQueue = [], we.pluginQueue = [], we.customSchemes = [], we.initialized = !1, we;
18753
18753
  }
18754
- function Iu(n, e = !1) {
18754
+ function $u(n, e = !1) {
18755
18755
  if (we.initialized && Z8(`linkifyjs: already initialized - will not register custom scheme "${n}" ${F8}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
18756
18756
  throw new Error(`linkifyjs: incorrect scheme format.
18757
18757
  1. Must only contain digits, lowercase ASCII letters or "-"
@@ -18765,7 +18765,7 @@ function j8() {
18765
18765
  we.tokenQueue[n][1]({
18766
18766
  scanner: we.scanner
18767
18767
  });
18768
- we.parser = $8(we.scanner.tokens);
18768
+ we.parser = I8(we.scanner.tokens);
18769
18769
  for (let n = 0; n < we.pluginQueue.length; n++)
18770
18770
  we.pluginQueue[n][1]({
18771
18771
  scanner: we.scanner,
@@ -18795,7 +18795,7 @@ function q8(n) {
18795
18795
  return n.length === 1 ? n[0].isLink : n.length === 3 && n[1].isLink ? ["()", "[]"].includes(n[0].value + n[2].value) : !1;
18796
18796
  }
18797
18797
  function Y8(n) {
18798
- return new $e({
18798
+ return new Ie({
18799
18799
  key: new Je("autolink"),
18800
18800
  appendTransaction: (e, t, r) => {
18801
18801
  const i = e.some((u) => u.docChanged) && !t.doc.eq(r.doc), o = e.some((u) => u.getMeta("preventAutolink"));
@@ -18839,7 +18839,7 @@ function Y8(n) {
18839
18839
  });
18840
18840
  }
18841
18841
  function J8(n) {
18842
- return new $e({
18842
+ return new Ie({
18843
18843
  key: new Je("handleClickLink"),
18844
18844
  props: {
18845
18845
  handleClick: (e, t, r) => {
@@ -18859,7 +18859,7 @@ function J8(n) {
18859
18859
  });
18860
18860
  }
18861
18861
  function G8(n) {
18862
- return new $e({
18862
+ return new Ie({
18863
18863
  key: new Je("handlePasteLink"),
18864
18864
  props: {
18865
18865
  handlePaste: (e, t, r) => {
@@ -18900,7 +18900,7 @@ function Dn(n, e) {
18900
18900
  "i"
18901
18901
  ));
18902
18902
  }
18903
- const $u = en.create({
18903
+ const Iu = en.create({
18904
18904
  name: "link",
18905
18905
  priority: 1e3,
18906
18906
  keepOnSplit: !1,
@@ -18908,10 +18908,10 @@ const $u = en.create({
18908
18908
  onCreate() {
18909
18909
  this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((n) => {
18910
18910
  if (typeof n == "string") {
18911
- Iu(n);
18911
+ $u(n);
18912
18912
  return;
18913
18913
  }
18914
- Iu(n.scheme, n.optionalSlashes);
18914
+ $u(n.scheme, n.optionalSlashes);
18915
18915
  });
18916
18916
  },
18917
18917
  onDestroy() {
@@ -19189,7 +19189,7 @@ const $u = en.create({
19189
19189
  },
19190
19190
  addProseMirrorPlugins() {
19191
19191
  return [
19192
- new $e({
19192
+ new Ie({
19193
19193
  key: new Je("placeholder"),
19194
19194
  props: {
19195
19195
  decorations: ({ doc: n, selection: e }) => {
@@ -19264,7 +19264,7 @@ var et = "top", bt = "bottom", kt = "right", tt = "left", Wa = "auto", Ni = [et,
19264
19264
  }, []), Ef = /* @__PURE__ */ [].concat(Ni, [Wa]).reduce(function(n, e) {
19265
19265
  return n.concat([e, e + "-" + Lr, e + "-" + bi]);
19266
19266
  }, []), s7 = "beforeRead", l7 = "read", a7 = "afterRead", u7 = "beforeMain", d7 = "main", c7 = "afterMain", f7 = "beforeWrite", p7 = "write", h7 = "afterWrite", m7 = [s7, l7, a7, u7, d7, c7, f7, p7, h7];
19267
- function $t(n) {
19267
+ function It(n) {
19268
19268
  return n ? (n.nodeName || "").toLowerCase() : null;
19269
19269
  }
19270
19270
  function ct(n) {
@@ -19294,7 +19294,7 @@ function g7(n) {
19294
19294
  var e = n.state;
19295
19295
  Object.keys(e.elements).forEach(function(t) {
19296
19296
  var r = e.styles[t] || {}, i = e.attributes[t] || {}, o = e.elements[t];
19297
- !Ct(o) || !$t(o) || (Object.assign(o.style, r), Object.keys(i).forEach(function(s) {
19297
+ !Ct(o) || !It(o) || (Object.assign(o.style, r), Object.keys(i).forEach(function(s) {
19298
19298
  var l = i[s];
19299
19299
  l === !1 ? o.removeAttribute(s) : o.setAttribute(s, l === !0 ? "" : l);
19300
19300
  }));
@@ -19318,7 +19318,7 @@ function y7(n) {
19318
19318
  var i = e.elements[r], o = e.attributes[r] || {}, s = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : t[r]), l = s.reduce(function(a, u) {
19319
19319
  return a[u] = "", a;
19320
19320
  }, {});
19321
- !Ct(i) || !$t(i) || (Object.assign(i.style, l), Object.keys(o).forEach(function(a) {
19321
+ !Ct(i) || !It(i) || (Object.assign(i.style, l), Object.keys(o).forEach(function(a) {
19322
19322
  i.removeAttribute(a);
19323
19323
  }));
19324
19324
  });
@@ -19388,7 +19388,7 @@ function tn(n) {
19388
19388
  return ct(n).getComputedStyle(n);
19389
19389
  }
19390
19390
  function v7(n) {
19391
- return ["table", "td", "th"].indexOf($t(n)) >= 0;
19391
+ return ["table", "td", "th"].indexOf(It(n)) >= 0;
19392
19392
  }
19393
19393
  function Tn(n) {
19394
19394
  return ((_n(n) ? n.ownerDocument : (
@@ -19397,7 +19397,7 @@ function Tn(n) {
19397
19397
  )) || window.document).documentElement;
19398
19398
  }
19399
19399
  function Ns(n) {
19400
- return $t(n) === "html" ? n : (
19400
+ return It(n) === "html" ? n : (
19401
19401
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
19402
19402
  // $FlowFixMe[incompatible-return]
19403
19403
  // $FlowFixMe[prop-missing]
@@ -19420,7 +19420,7 @@ function C7(n) {
19420
19420
  return null;
19421
19421
  }
19422
19422
  var i = Ns(n);
19423
- for (Ua(i) && (i = i.host); Ct(i) && ["html", "body"].indexOf($t(i)) < 0; ) {
19423
+ for (Ua(i) && (i = i.host); Ct(i) && ["html", "body"].indexOf(It(i)) < 0; ) {
19424
19424
  var o = tn(i);
19425
19425
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
19426
19426
  return i;
@@ -19431,7 +19431,7 @@ function C7(n) {
19431
19431
  function Ri(n) {
19432
19432
  for (var e = ct(n), t = zu(n); t && v7(t) && tn(t).position === "static"; )
19433
19433
  t = zu(t);
19434
- return t && ($t(t) === "html" || $t(t) === "body" && tn(t).position === "static") ? e : t || C7(n) || e;
19434
+ return t && (It(t) === "html" || It(t) === "body" && tn(t).position === "static") ? e : t || C7(n) || e;
19435
19435
  }
19436
19436
  function qa(n) {
19437
19437
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
@@ -19522,11 +19522,11 @@ function ju(n) {
19522
19522
  }
19523
19523
  if (i === tt || (i === et || i === bt) && o === bi) {
19524
19524
  M = kt;
19525
- var I = c && x === S && S.visualViewport ? S.visualViewport.width : (
19525
+ var $ = c && x === S && S.visualViewport ? S.visualViewport.width : (
19526
19526
  // $FlowFixMe[prop-missing]
19527
19527
  x[E]
19528
19528
  );
19529
- p -= I - r.width, p *= a ? 1 : -1;
19529
+ p -= $ - r.width, p *= a ? 1 : -1;
19530
19530
  }
19531
19531
  }
19532
19532
  var ne = Object.assign({
@@ -19654,7 +19654,7 @@ function Ga(n) {
19654
19654
  return /auto|scroll|overlay|hidden/.test(t + i + r);
19655
19655
  }
19656
19656
  function Pf(n) {
19657
- return ["html", "body", "#document"].indexOf($t(n)) >= 0 ? n.ownerDocument.body : Ct(n) && Ga(n) ? n : Pf(Ns(n));
19657
+ return ["html", "body", "#document"].indexOf(It(n)) >= 0 ? n.ownerDocument.body : Ct(n) && Ga(n) ? n : Pf(Ns(n));
19658
19658
  }
19659
19659
  function ii(n, e) {
19660
19660
  var t;
@@ -19683,17 +19683,17 @@ function Uu(n, e, t) {
19683
19683
  function P7(n) {
19684
19684
  var e = ii(Ns(n)), t = ["absolute", "fixed"].indexOf(tn(n).position) >= 0, r = t && Ct(n) ? Ri(n) : n;
19685
19685
  return _n(r) ? e.filter(function(i) {
19686
- return _n(i) && Af(i, r) && $t(i) !== "body";
19686
+ return _n(i) && Af(i, r) && It(i) !== "body";
19687
19687
  }) : [];
19688
19688
  }
19689
- function I7(n, e, t, r) {
19689
+ function $7(n, e, t, r) {
19690
19690
  var i = e === "clippingParents" ? P7(n) : [].concat(e), o = [].concat(i, [t]), s = o[0], l = o.reduce(function(a, u) {
19691
19691
  var d = Uu(n, u, r);
19692
19692
  return a.top = Un(d.top, a.top), a.right = us(d.right, a.right), a.bottom = us(d.bottom, a.bottom), a.left = Un(d.left, a.left), a;
19693
19693
  }, Uu(n, s, r));
19694
19694
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
19695
19695
  }
19696
- function If(n) {
19696
+ function $f(n) {
19697
19697
  var e = n.reference, t = n.element, r = n.placement, i = r ? Nt(r) : null, o = r ? Sr(r) : null, s = e.x + e.width / 2 - t.width / 2, l = e.y + e.height / 2 - t.height / 2, a;
19698
19698
  switch (i) {
19699
19699
  case et:
@@ -19742,11 +19742,11 @@ function If(n) {
19742
19742
  }
19743
19743
  function ki(n, e) {
19744
19744
  e === void 0 && (e = {});
19745
- var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? i7 : l, u = t.rootBoundary, d = u === void 0 ? Tf : u, c = t.elementContext, f = c === void 0 ? Fr : c, p = t.altBoundary, h = p === void 0 ? !1 : p, m = t.padding, y = m === void 0 ? 0 : m, b = Nf(typeof y != "number" ? y : Rf(y, Ni)), L = f === Fr ? o7 : Fr, M = n.rects.popper, C = n.elements[h ? L : f], S = I7(_n(C) ? C : C.contextElement || Tn(n.elements.popper), a, d, s), x = xr(n.elements.reference), Z = If({
19745
+ var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? i7 : l, u = t.rootBoundary, d = u === void 0 ? Tf : u, c = t.elementContext, f = c === void 0 ? Fr : c, p = t.altBoundary, h = p === void 0 ? !1 : p, m = t.padding, y = m === void 0 ? 0 : m, b = Nf(typeof y != "number" ? y : Rf(y, Ni)), L = f === Fr ? o7 : Fr, M = n.rects.popper, C = n.elements[h ? L : f], S = $7(_n(C) ? C : C.contextElement || Tn(n.elements.popper), a, d, s), x = xr(n.elements.reference), Z = $f({
19746
19746
  reference: x,
19747
19747
  element: M,
19748
19748
  placement: i
19749
- }), E = ql(Object.assign({}, M, Z)), T = f === Fr ? E : x, I = {
19749
+ }), E = ql(Object.assign({}, M, Z)), T = f === Fr ? E : x, $ = {
19750
19750
  top: S.top - T.top + b.top,
19751
19751
  bottom: T.bottom - S.bottom + b.bottom,
19752
19752
  left: S.left - T.left + b.left,
@@ -19754,14 +19754,14 @@ function ki(n, e) {
19754
19754
  }, ne = n.modifiersData.offset;
19755
19755
  if (f === Fr && ne) {
19756
19756
  var z = ne[i];
19757
- Object.keys(I).forEach(function(j) {
19757
+ Object.keys($).forEach(function(j) {
19758
19758
  var Q = [kt, bt].indexOf(j) >= 0 ? 1 : -1, be = [et, bt].indexOf(j) >= 0 ? "y" : "x";
19759
- I[j] += z[be] * Q;
19759
+ $[j] += z[be] * Q;
19760
19760
  });
19761
19761
  }
19762
- return I;
19762
+ return $;
19763
19763
  }
19764
- function $7(n, e) {
19764
+ function I7(n, e) {
19765
19765
  e === void 0 && (e = {});
19766
19766
  var t = e, r = t.placement, i = t.boundary, o = t.rootBoundary, s = t.padding, l = t.flipVariations, a = t.allowedAutoPlacements, u = a === void 0 ? Ef : a, d = Sr(r), c = d ? l ? Fu : Fu.filter(function(h) {
19767
19767
  return Sr(h) === d;
@@ -19791,7 +19791,7 @@ function Z7(n) {
19791
19791
  var e = n.state, t = n.options, r = n.name;
19792
19792
  if (!e.modifiersData[r]._skip) {
19793
19793
  for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, l = s === void 0 ? !0 : s, a = t.fallbackPlacements, u = t.padding, d = t.boundary, c = t.rootBoundary, f = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, m = t.allowedAutoPlacements, y = e.options.placement, b = Nt(y), L = b === y, M = a || (L || !h ? [mo(y)] : B7(y)), C = [y].concat(M).reduce(function(je, nt) {
19794
- return je.concat(Nt(nt) === Wa ? $7(e, {
19794
+ return je.concat(Nt(nt) === Wa ? I7(e, {
19795
19795
  placement: nt,
19796
19796
  boundary: d,
19797
19797
  rootBoundary: c,
@@ -19799,8 +19799,8 @@ function Z7(n) {
19799
19799
  flipVariations: h,
19800
19800
  allowedAutoPlacements: m
19801
19801
  }) : nt);
19802
- }, []), S = e.rects.reference, x = e.rects.popper, Z = /* @__PURE__ */ new Map(), E = !0, T = C[0], I = 0; I < C.length; I++) {
19803
- var ne = C[I], z = Nt(ne), j = Sr(ne) === Lr, Q = [et, bt].indexOf(z) >= 0, be = Q ? "width" : "height", le = ki(e, {
19802
+ }, []), S = e.rects.reference, x = e.rects.popper, Z = /* @__PURE__ */ new Map(), E = !0, T = C[0], $ = 0; $ < C.length; $++) {
19803
+ var ne = C[$], z = Nt(ne), j = Sr(ne) === Lr, Q = [et, bt].indexOf(z) >= 0, be = Q ? "width" : "height", le = ki(e, {
19804
19804
  placement: ne,
19805
19805
  boundary: d,
19806
19806
  rootBoundary: c,
@@ -19820,9 +19820,9 @@ function Z7(n) {
19820
19820
  if (E)
19821
19821
  for (var Be = h ? 3 : 1, q = function(nt) {
19822
19822
  var wt = C.find(function(En) {
19823
- var $ = Z.get(En);
19824
- if ($)
19825
- return $.slice(0, nt).every(function(se) {
19823
+ var I = Z.get(En);
19824
+ if (I)
19825
+ return I.slice(0, nt).every(function(se) {
19826
19826
  return se;
19827
19827
  });
19828
19828
  });
@@ -19911,7 +19911,7 @@ const K7 = {
19911
19911
  };
19912
19912
  function q7(n) {
19913
19913
  var e = n.state, t = n.name;
19914
- e.modifiersData[t] = If({
19914
+ e.modifiersData[t] = $f({
19915
19915
  reference: e.rects.reference,
19916
19916
  element: e.rects.popper,
19917
19917
  placement: e.placement
@@ -19935,7 +19935,7 @@ function G7(n) {
19935
19935
  altBoundary: d
19936
19936
  }), b = Nt(e.placement), L = Sr(e.placement), M = !L, C = qa(b), S = J7(C), x = e.modifiersData.popperOffsets, Z = e.rects.reference, E = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, {
19937
19937
  placement: e.placement
19938
- })) : m, I = typeof T == "number" ? {
19938
+ })) : m, $ = typeof T == "number" ? {
19939
19939
  mainAxis: T,
19940
19940
  altAxis: T
19941
19941
  } : Object.assign({
@@ -19950,11 +19950,11 @@ function G7(n) {
19950
19950
  var j, Q = C === "y" ? et : tt, be = C === "y" ? bt : kt, le = C === "y" ? "height" : "width", pe = x[C], de = pe + y[Q], Le = pe - y[be], Be = p ? -E[le] / 2 : 0, q = L === Lr ? Z[le] : E[le], X = L === Lr ? -E[le] : -Z[le], ae = e.elements.arrow, je = p && ae ? Ka(ae) : {
19951
19951
  width: 0,
19952
19952
  height: 0
19953
- }, nt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Df(), wt = nt[Q], En = nt[be], $ = ri(0, Z[le], je[le]), se = M ? Z[le] / 2 - Be - $ - wt - I.mainAxis : q - $ - wt - I.mainAxis, ve = M ? -Z[le] / 2 + Be + $ + En + I.mainAxis : X + $ + En + I.mainAxis, Ge = e.elements.arrow && Ri(e.elements.arrow), On = Ge ? C === "y" ? Ge.clientTop || 0 : Ge.clientLeft || 0 : 0, Ar = (j = ne == null ? void 0 : ne[C]) != null ? j : 0, Pi = pe + se - Ar - On, Ii = pe + ve - Ar, Dr = ri(p ? us(de, Pi) : de, pe, p ? Un(Le, Ii) : Le);
19953
+ }, nt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Df(), wt = nt[Q], En = nt[be], I = ri(0, Z[le], je[le]), se = M ? Z[le] / 2 - Be - I - wt - $.mainAxis : q - I - wt - $.mainAxis, ve = M ? -Z[le] / 2 + Be + I + En + $.mainAxis : X + I + En + $.mainAxis, Ge = e.elements.arrow && Ri(e.elements.arrow), On = Ge ? C === "y" ? Ge.clientTop || 0 : Ge.clientLeft || 0 : 0, Ar = (j = ne == null ? void 0 : ne[C]) != null ? j : 0, Pi = pe + se - Ar - On, $i = pe + ve - Ar, Dr = ri(p ? us(de, Pi) : de, pe, p ? Un(Le, $i) : Le);
19954
19954
  x[C] = Dr, z[C] = Dr - pe;
19955
19955
  }
19956
19956
  if (l) {
19957
- var Nr, $i = C === "x" ? et : tt, Bi = C === "x" ? bt : kt, Ft = x[S], nn = S === "y" ? "height" : "width", Rr = Ft + y[$i], Vn = Ft - y[Bi], Pr = [et, tt].indexOf(b) !== -1, Zi = (Nr = ne == null ? void 0 : ne[S]) != null ? Nr : 0, Fi = Pr ? Rr : Ft - Z[nn] - E[nn] - Zi + I.altAxis, zi = Pr ? Ft + Z[nn] + E[nn] - Zi - I.altAxis : Vn, ji = p && Pr ? b7(Fi, Ft, zi) : ri(p ? Fi : Rr, Ft, p ? zi : Vn);
19957
+ var Nr, Ii = C === "x" ? et : tt, Bi = C === "x" ? bt : kt, Ft = x[S], nn = S === "y" ? "height" : "width", Rr = Ft + y[Ii], Vn = Ft - y[Bi], Pr = [et, tt].indexOf(b) !== -1, Zi = (Nr = ne == null ? void 0 : ne[S]) != null ? Nr : 0, Fi = Pr ? Rr : Ft - Z[nn] - E[nn] - Zi + $.altAxis, zi = Pr ? Ft + Z[nn] + E[nn] - Zi - $.altAxis : Vn, ji = p && Pr ? b7(Fi, Ft, zi) : ri(p ? Fi : Rr, Ft, p ? zi : Vn);
19958
19958
  x[S] = ji, z[S] = ji - Ft;
19959
19959
  }
19960
19960
  e.modifiersData[r] = z;
@@ -19989,7 +19989,7 @@ function tg(n, e, t) {
19989
19989
  x: 0,
19990
19990
  y: 0
19991
19991
  };
19992
- return (r || !r && !t) && (($t(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
19992
+ return (r || !r && !t) && ((It(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
19993
19993
  Ga(o)) && (l = Q7(e)), Ct(e) ? (a = xr(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = Ja(o))), {
19994
19994
  x: s.left + l.scrollLeft - a.x,
19995
19995
  y: s.top + l.scrollTop - a.y,
@@ -20099,8 +20099,8 @@ function sg(n) {
20099
20099
  d.rects = {
20100
20100
  reference: tg(L, Ri(M), d.options.strategy === "fixed"),
20101
20101
  popper: Ka(M)
20102
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(I) {
20103
- return d.modifiersData[I.name] = Object.assign({}, I.data);
20102
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function($) {
20103
+ return d.modifiersData[$.name] = Object.assign({}, $.data);
20104
20104
  });
20105
20105
  for (var C = 0; C < d.orderedModifiers.length; C++) {
20106
20106
  if (d.reset === !0) {
@@ -20159,7 +20159,7 @@ function sg(n) {
20159
20159
  }
20160
20160
  var lg = [O7, Y7, T7, Of, K7, F7, _7, M7, j7], ag = /* @__PURE__ */ sg({
20161
20161
  defaultModifiers: lg
20162
- }), ug = "tippy-box", $f = "tippy-content", dg = "tippy-backdrop", Bf = "tippy-arrow", Zf = "tippy-svg-arrow", Nn = {
20162
+ }), ug = "tippy-box", If = "tippy-content", dg = "tippy-backdrop", Bf = "tippy-arrow", Zf = "tippy-svg-arrow", Nn = {
20163
20163
  passive: !0,
20164
20164
  capture: !0
20165
20165
  }, Ff = function() {
@@ -20495,7 +20495,7 @@ function Gl(n) {
20495
20495
  return {
20496
20496
  box: e,
20497
20497
  content: t.find(function(r) {
20498
- return r.classList.contains($f);
20498
+ return r.classList.contains(If);
20499
20499
  }),
20500
20500
  arrow: t.find(function(r) {
20501
20501
  return r.classList.contains(Bf) || r.classList.contains(Zf);
@@ -20509,7 +20509,7 @@ function Yf(n) {
20509
20509
  var e = oi(), t = oi();
20510
20510
  t.className = ug, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
20511
20511
  var r = oi();
20512
- r.className = $f, r.setAttribute("data-state", "hidden"), od(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
20512
+ r.className = If, r.setAttribute("data-state", "hidden"), od(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
20513
20513
  function i(o, s) {
20514
20514
  var l = Gl(e), a = l.box, u = l.content, d = l.arrow;
20515
20515
  s.theme ? a.setAttribute("data-theme", s.theme) : a.removeAttribute("data-theme"), typeof s.animation == "string" ? a.setAttribute("data-animation", s.animation) : a.removeAttribute("data-animation"), s.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? a.setAttribute("role", s.role) : a.removeAttribute("role"), (o.content !== s.content || o.allowHTML !== s.allowHTML) && od(u, n.props), s.arrow ? d ? o.arrow !== s.arrow && (a.removeChild(d), a.appendChild(id(s.arrow))) : a.appendChild(id(s.arrow)) : d && a.removeChild(d);
@@ -20566,12 +20566,12 @@ function Pg(n, e) {
20566
20566
  }), x.addEventListener("mouseleave", function() {
20567
20567
  C.props.interactive && C.props.trigger.indexOf("mouseenter") >= 0 && Q().addEventListener("mousemove", h);
20568
20568
  }), C;
20569
- function I() {
20569
+ function $() {
20570
20570
  var H = C.props.touch;
20571
20571
  return Array.isArray(H) ? H : [H, 0];
20572
20572
  }
20573
20573
  function ne() {
20574
- return I()[0] === "hold";
20574
+ return $()[0] === "hold";
20575
20575
  }
20576
20576
  function z() {
20577
20577
  var H;
@@ -20665,7 +20665,7 @@ function Pg(n, e) {
20665
20665
  !C.state.isVisible && x.parentNode && x.parentNode.contains(x) && Y();
20666
20666
  });
20667
20667
  }
20668
- function $(H, Y) {
20668
+ function I(H, Y) {
20669
20669
  se(H, Y);
20670
20670
  }
20671
20671
  function se(H, Y) {
@@ -20692,13 +20692,13 @@ function Pg(n, e) {
20692
20692
  function Ge() {
20693
20693
  ne() && (ve("touchstart", Ar, {
20694
20694
  passive: !0
20695
- }), ve("touchend", Ii, {
20695
+ }), ve("touchend", $i, {
20696
20696
  passive: !0
20697
20697
  })), pg(C.props.trigger).forEach(function(H) {
20698
20698
  if (H !== "manual")
20699
20699
  switch (ve(H, Ar), H) {
20700
20700
  case "mouseenter":
20701
- ve("mouseleave", Ii);
20701
+ ve("mouseleave", $i);
20702
20702
  break;
20703
20703
  case "focus":
20704
20704
  ve(Sg ? "focusout" : "blur", Dr);
@@ -20738,7 +20738,7 @@ function Pg(n, e) {
20738
20738
  kg(ye, H) && (q(), Vn(H));
20739
20739
  }
20740
20740
  }
20741
- function Ii(H) {
20741
+ function $i(H) {
20742
20742
  var Y = Nr(H) || C.props.trigger.indexOf("click") >= 0 && s;
20743
20743
  if (!Y) {
20744
20744
  if (C.props.interactive) {
@@ -20754,7 +20754,7 @@ function Pg(n, e) {
20754
20754
  function Nr(H) {
20755
20755
  return Vt.isTouch ? ne() !== H.type.indexOf("touch") >= 0 : !1;
20756
20756
  }
20757
- function $i() {
20757
+ function Ii() {
20758
20758
  Bi();
20759
20759
  var H = C.props, Y = H.popperOptions, ee = H.placement, ye = H.offset, he = H.getReferenceClientRect, We = H.moveTransition, ft = z() ? Gl(x).arrow : null, er = he ? {
20760
20760
  getBoundingClientRect: he,
@@ -20816,7 +20816,7 @@ function Pg(n, e) {
20816
20816
  }
20817
20817
  function Ft() {
20818
20818
  var H = C.props.appendTo, Y, ee = j();
20819
- C.props.interactive && H === Ff || H === "parent" ? Y = ee.parentNode : Y = zf(H, [ee]), Y.contains(x) || Y.appendChild(x), C.state.isMounted = !0, $i(), process.env.NODE_ENV !== "production" && qt(C.props.interactive && H === lt.appendTo && ee.nextElementSibling !== x, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
20819
+ C.props.interactive && H === Ff || H === "parent" ? Y = ee.parentNode : Y = zf(H, [ee]), Y.contains(x) || Y.appendChild(x), C.state.isMounted = !0, Ii(), process.env.NODE_ENV !== "production" && qt(C.props.interactive && H === lt.appendTo && ee.nextElementSibling !== x, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
20820
20820
 
20821
20821
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
20822
20822
 
@@ -20829,7 +20829,7 @@ function Pg(n, e) {
20829
20829
  }
20830
20830
  function Rr(H) {
20831
20831
  C.clearDelayTimeouts(), H && de("onTrigger", [C, H]), nt();
20832
- var Y = le(!0), ee = I(), ye = ee[0], he = ee[1];
20832
+ var Y = le(!0), ee = $(), ye = ee[0], he = ee[1];
20833
20833
  Vt.isTouch && ye === "hold" && he && (Y = he), Y ? r = setTimeout(function() {
20834
20834
  C.show();
20835
20835
  }, Y) : C.show();
@@ -20865,7 +20865,7 @@ function Pg(n, e) {
20865
20865
  }));
20866
20866
  C.props = ee, Ge(), Y.interactiveDebounce !== ee.interactiveDebounce && (q(), h = Gu(Pi, ee.interactiveDebounce)), Y.triggerTarget && !ee.triggerTarget ? ar(Y.triggerTarget).forEach(function(ye) {
20867
20867
  ye.removeAttribute("aria-expanded");
20868
- }) : ee.triggerTarget && n.removeAttribute("aria-expanded"), Be(), pe(), Z && Z(Y, ee), C.popperInstance && ($i(), nn().forEach(function(ye) {
20868
+ }) : ee.triggerTarget && n.removeAttribute("aria-expanded"), Be(), pe(), Z && Z(Y, ee), C.popperInstance && (Ii(), nn().forEach(function(ye) {
20869
20869
  requestAnimationFrame(ye._tippy.popperInstance.forceUpdate);
20870
20870
  })), de("onAfterUpdate", [C, H]);
20871
20871
  }
@@ -20890,7 +20890,7 @@ function Pg(n, e) {
20890
20890
  var Rs = be(), Wi = Rs.box, tr = Rs.content;
20891
20891
  fl([Wi, tr], he), Qu([Wi, tr], "visible");
20892
20892
  }
20893
- Le(), Be(), _u(hl, C), (An = C.popperInstance) == null || An.forceUpdate(), de("onMount", [C]), C.props.animation && z() && $(he, function() {
20893
+ Le(), Be(), _u(hl, C), (An = C.popperInstance) == null || An.forceUpdate(), de("onMount", [C]), C.props.animation && z() && I(he, function() {
20894
20894
  C.state.isShown = !0, de("onShown", [C]);
20895
20895
  });
20896
20896
  }
@@ -20967,7 +20967,7 @@ Object.assign({}, Of, {
20967
20967
  Vr.setDefaultProps({
20968
20968
  render: Yf
20969
20969
  });
20970
- class Ig {
20970
+ class $g {
20971
20971
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: o = 250, shouldShow: s }) {
20972
20972
  this.preventHide = !1, this.shouldShow = ({ view: l, state: a, from: u, to: d }) => {
20973
20973
  const { doc: c, selection: f } = a, { empty: p } = f, h = !c.textBetween(u, d).length && Va(a.selection), m = this.element.contains(document.activeElement);
@@ -21061,9 +21061,9 @@ class Ig {
21061
21061
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
21062
21062
  }
21063
21063
  }
21064
- const Jf = (n) => new $e({
21064
+ const Jf = (n) => new Ie({
21065
21065
  key: typeof n.pluginKey == "string" ? new Je(n.pluginKey) : n.pluginKey,
21066
- view: (e) => new Ig({ view: e, ...n })
21066
+ view: (e) => new $g({ view: e, ...n })
21067
21067
  });
21068
21068
  Ye.create({
21069
21069
  name: "bubbleMenu",
@@ -21089,7 +21089,7 @@ Ye.create({
21089
21089
  ] : [];
21090
21090
  }
21091
21091
  });
21092
- class $g {
21092
+ class Ig {
21093
21093
  getTextContent(e) {
21094
21094
  return ff(e, { textSerializers: Ea(this.editor.schema) });
21095
21095
  }
@@ -21156,9 +21156,9 @@ class $g {
21156
21156
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
21157
21157
  }
21158
21158
  }
21159
- const Gf = (n) => new $e({
21159
+ const Gf = (n) => new Ie({
21160
21160
  key: typeof n.pluginKey == "string" ? new Je(n.pluginKey) : n.pluginKey,
21161
- view: (e) => new $g({ view: e, ...n })
21161
+ view: (e) => new Ig({ view: e, ...n })
21162
21162
  });
21163
21163
  Ye.create({
21164
21164
  name: "floatingMenu",
@@ -21552,7 +21552,7 @@ const _f = /* @__PURE__ */ Mn(jg, [["render", Kg]]), qg = { class: "space-y-1" }
21552
21552
  }), Qg = { key: 1 }, ey = {
21553
21553
  key: 0,
21554
21554
  class: "pr-1"
21555
- }, Gy = /* @__PURE__ */ F({
21555
+ }, Xy = /* @__PURE__ */ F({
21556
21556
  __name: "TextEditor",
21557
21557
  props: {
21558
21558
  autoHideMenu: { type: Boolean, default: !1 },
@@ -21588,7 +21588,7 @@ const _f = /* @__PURE__ */ Mn(jg, [["render", Kg]]), qg = { class: "space-y-1" }
21588
21588
  Hu,
21589
21589
  Ou,
21590
21590
  S8,
21591
- $u,
21591
+ Iu,
21592
21592
  _8,
21593
21593
  Q8,
21594
21594
  r7,
@@ -21743,7 +21743,7 @@ const _f = /* @__PURE__ */ Mn(jg, [["render", Kg]]), qg = { class: "space-y-1" }
21743
21743
  k(f).chain().focus().toggleHeading({ level: 1 }).run(), C();
21744
21744
  })
21745
21745
  }, null, 8, ["active"])) : D("", !0),
21746
- k($u) ? (g(), A(rt, {
21746
+ k(Iu) ? (g(), A(rt, {
21747
21747
  key: 4,
21748
21748
  icon: "link",
21749
21749
  tooltip: "Add link",
@@ -21904,7 +21904,7 @@ function oy(n, e) {
21904
21904
  J(n.$slots, "default")
21905
21905
  ]);
21906
21906
  }
21907
- const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { key: 1 }, Xy = /* @__PURE__ */ F({
21907
+ const Qy = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { key: 1 }, ev = /* @__PURE__ */ F({
21908
21908
  __name: "ToggleButton",
21909
21909
  props: {
21910
21910
  active: { type: Boolean },
@@ -21968,7 +21968,94 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
21968
21968
  _: 1
21969
21969
  }, 8, ["text", "delay", "placement"])) : D("", !0);
21970
21970
  }
21971
- }), ay = { class: "flex items-center w-full h-6 pl-2 px-1 border border-default rounded-sm" }, uy = ["value", "onKeydown"], dy = { class: "flex items-center gap-1" }, cy = /* @__PURE__ */ F({
21971
+ }), tv = (n) => {
21972
+ n.forEach((e) => e.open = !0);
21973
+ }, nv = (n, e, t) => {
21974
+ let r = n;
21975
+ for (const i of e.map((o) => o.id)) {
21976
+ if (!r || r.id !== i) {
21977
+ if (!(r != null && r.children)) return;
21978
+ r = r.children.find((o) => o.id === i);
21979
+ }
21980
+ if (!r) return;
21981
+ }
21982
+ return r[t];
21983
+ }, rv = (n, e, t, r) => {
21984
+ let i = n;
21985
+ for (const o of e.map((s) => s.id)) {
21986
+ if (!i || i.id !== o) {
21987
+ if (!(i != null && i.children)) return !1;
21988
+ i = i.children.find((s) => s.id === o);
21989
+ }
21990
+ if (!i) return !1;
21991
+ }
21992
+ return i[t] = r, !0;
21993
+ }, iv = (n, e, t, r) => {
21994
+ let i = n;
21995
+ for (const o of e.map((s) => s.id)) {
21996
+ if (!i || i.id !== o) {
21997
+ if (!(i != null && i.children)) return !1;
21998
+ i = i.children.find((s) => s.id === o);
21999
+ }
22000
+ if (!i) return !1;
22001
+ }
22002
+ return i.data[t] = r, !0;
22003
+ }, ay = (n, e = []) => {
22004
+ const t = [...e, n], r = [{ node: n, path: t }];
22005
+ if (n.children)
22006
+ for (const i of n.children)
22007
+ r.push(...ay(i, t));
22008
+ return r;
22009
+ }, uy = (n) => {
22010
+ const e = [n];
22011
+ if (n.children)
22012
+ for (const t of n.children)
22013
+ e.push(...uy(t));
22014
+ return e;
22015
+ }, ov = ({
22016
+ items: n,
22017
+ itemIdField: e,
22018
+ parentIdField: t,
22019
+ labelField: r,
22020
+ treeIsOpen: i,
22021
+ actions: o
22022
+ }) => {
22023
+ const s = /* @__PURE__ */ new Map(), l = n.find((c) => c[t] === null);
22024
+ if (!l) throw new Error("Cannot construct tree, since no root item exists");
22025
+ const a = n.filter((c) => c[e] !== l[e]);
22026
+ for (const c of a)
22027
+ s.set(c[e], {
22028
+ id: c[e],
22029
+ label: c[r],
22030
+ open: i,
22031
+ data: c,
22032
+ actions: o,
22033
+ children: []
22034
+ });
22035
+ const u = {
22036
+ id: l[e],
22037
+ label: l[r],
22038
+ open: i,
22039
+ data: l,
22040
+ actions: o,
22041
+ children: []
22042
+ }, d = [u];
22043
+ for (; a.length > 0 && d.length > 0; ) {
22044
+ const c = d.shift();
22045
+ if (!c) break;
22046
+ let f = !1;
22047
+ for (let p = a.length - 1; p >= 0; p--)
22048
+ if (a[p][t] === c.id) {
22049
+ const h = s.get(a[p][e]);
22050
+ h && ((c.children ?? (c.children = [])).push(h), d.push(h)), a.splice(p, 1), f = !0;
22051
+ }
22052
+ if (d.length === 0 && !f && a.length > 0)
22053
+ throw new Error(
22054
+ `Some items could not be attached to the tree (orphans): ${JSON.stringify(a)}`
22055
+ );
22056
+ }
22057
+ return u;
22058
+ }, dy = { class: "flex items-center w-full h-6 pl-2 px-1 border border-default rounded-sm" }, cy = ["value", "onKeydown"], fy = { class: "flex items-center gap-1" }, py = /* @__PURE__ */ F({
21972
22059
  __name: "InputNode",
21973
22060
  props: {
21974
22061
  value: {},
@@ -21997,7 +22084,7 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
21997
22084
  }, {
21998
22085
  default: B(() => [
21999
22086
  c[4] || (c[4] = w("div", { class: "w-4 h-4" }, null, -1)),
22000
- w("section", ay, [
22087
+ w("section", dy, [
22001
22088
  w("input", {
22002
22089
  ref_key: "inputRef",
22003
22090
  ref: r,
@@ -22014,9 +22101,9 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
22014
22101
  onKeyup: c[1] || (c[1] = Ce(re(() => {
22015
22102
  }, ["stop", "prevent"]), ["enter"])),
22016
22103
  onInput: re(l, ["stop", "prevent"])
22017
- }, null, 40, uy)
22104
+ }, null, 40, cy)
22018
22105
  ]),
22019
- w("aside", dy, [
22106
+ w("aside", fy, [
22020
22107
  P(k(fe), {
22021
22108
  small: "",
22022
22109
  icon: "check",
@@ -22035,13 +22122,13 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
22035
22122
  _: 1
22036
22123
  }, 8, ["style"]));
22037
22124
  }
22038
- }), fy = {
22125
+ }), hy = {
22039
22126
  key: 1,
22040
22127
  class: "flex-none w-4 h-4"
22041
- }, py = { class: "text-xs truncate" }, hy = {
22128
+ }, my = { class: "text-xs truncate" }, gy = {
22042
22129
  key: 0,
22043
22130
  class: "relative"
22044
- }, Qy = /* @__PURE__ */ F({
22131
+ }, sv = /* @__PURE__ */ F({
22045
22132
  __name: "TreeList",
22046
22133
  props: {
22047
22134
  indentationAmount: { default: 20 },
@@ -22114,8 +22201,8 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
22114
22201
  P(k(Me), {
22115
22202
  name: m.node.open ? "chevron-down-small" : "chevron-right-small"
22116
22203
  }, null, 8, ["name"])
22117
- ])) : (g(), v("div", fy)),
22118
- w("span", py, me(m.node.label), 1)
22204
+ ])) : (g(), v("div", hy)),
22205
+ w("span", my, me(m.node.label), 1)
22119
22206
  ];
22120
22207
  }),
22121
22208
  _: 1
@@ -22145,8 +22232,8 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
22145
22232
  ]),
22146
22233
  _: 1
22147
22234
  }, 8, ["class", "style"]),
22148
- (i.value || (L = m.node.children) != null && L.length) && m.node.open ? (g(), v("main", hy, [
22149
- i.value ? (g(), A(cy, {
22235
+ (i.value || (L = m.node.children) != null && L.length) && m.node.open ? (g(), v("main", gy, [
22236
+ i.value ? (g(), A(py, {
22150
22237
  key: 0,
22151
22238
  value: o.value,
22152
22239
  indentation: (m.level + 1) * m.indentationAmount,
@@ -22173,7 +22260,7 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
22173
22260
  ], 64);
22174
22261
  };
22175
22262
  }
22176
- }), ev = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive"], tv = ["default", "primary", "error"], nv = ["default", "circle"], rv = ["horizontal", "vertical"], my = ["start", "center", "end", "stretch"], iv = [...my, "between", "around", "evenly"], ov = ["default", "blurred"], sv = ["click", "hover", "focus", "manual"], lv = ["Ok", "Not Ok", "Not Applicable"], av = [
22263
+ }), lv = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive"], av = ["default", "primary", "error"], uv = ["default", "circle"], dv = ["horizontal", "vertical"], yy = ["start", "center", "end", "stretch"], cv = [...yy, "between", "around", "evenly"], fv = ["default", "blurred"], pv = ["click", "hover", "focus", "manual"], hv = ["Ok", "Not Ok", "Not Applicable"], mv = [
22177
22264
  "admin",
22178
22265
  "arrow-deviate",
22179
22266
  "arrow-down-plus",
@@ -22360,7 +22447,7 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
22360
22447
  _: 3
22361
22448
  }, 8, ["class", "style"]));
22362
22449
  }
22363
- }), uv = ["header", "footer"], Xa = /* @__PURE__ */ F({
22450
+ }), gv = ["header", "footer"], Xa = /* @__PURE__ */ F({
22364
22451
  __name: "VerticalLayout",
22365
22452
  props: {
22366
22453
  borders: { type: Boolean, default: !1 },
@@ -22428,81 +22515,88 @@ const _y = /* @__PURE__ */ Mn(ry, [["render", oy]]), sy = ["disabled"], ly = { k
22428
22515
  }
22429
22516
  });
22430
22517
  export {
22431
- my as Alignments,
22432
- vy as BApplicationWrapper,
22518
+ yy as Alignments,
22519
+ by as BApplicationWrapper,
22433
22520
  o1 as BAside,
22434
- Cy as BAsideSectionLabel,
22521
+ ky as BAsideSectionLabel,
22435
22522
  fe as BButton,
22436
- by as BButtonGroup,
22523
+ wy as BButtonGroup,
22437
22524
  lh as BCalendarView,
22438
22525
  hd as BCheckbox,
22439
- ky as BCollapse,
22526
+ Ly as BCollapse,
22440
22527
  Xl as BConfirmCancel,
22441
- wy as BContentSlider,
22442
- Ly as BDataPoint,
22528
+ My as BContentSlider,
22529
+ xy as BDataPoint,
22443
22530
  A0 as BDeleteButton,
22444
- My as BDialog,
22531
+ Sy as BDialog,
22445
22532
  gd as BFadeInUp,
22446
22533
  B0 as BFilterChip,
22447
- xy as BFirstPaint,
22534
+ Hy as BFirstPaint,
22448
22535
  Oe as BFlexbox,
22449
- Sy as BHorizontalLayout,
22536
+ Ty as BHorizontalLayout,
22450
22537
  Me as BIcon,
22451
22538
  go as BInput,
22452
- Hy as BInputNumber,
22539
+ Ey as BInputNumber,
22453
22540
  si as BLoadSpinner,
22454
- Ty as BModal,
22455
- Ey as BNavItem,
22456
- Oy as BNotification,
22541
+ Oy as BModal,
22542
+ Vy as BNavItem,
22543
+ Ay as BNotification,
22457
22544
  cd as BNotificationBadge,
22458
- Vy as BPagination,
22459
- Ay as BPopCalendar,
22460
- Dy as BPopConfirm,
22545
+ Dy as BPagination,
22546
+ Ny as BPopCalendar,
22547
+ Ry as BPopConfirm,
22461
22548
  Vd as BPopSelect,
22462
- Ny as BPopSelectFooterButton,
22549
+ Py as BPopSelectFooterButton,
22463
22550
  ys as BPopper,
22464
22551
  sa as BPopperContent,
22465
22552
  ld as BRunningSection,
22466
22553
  la as BScreenOverlay,
22467
- Ry as BScrollBottomLoader,
22554
+ $y as BScrollBottomLoader,
22468
22555
  bo as BScrollbar,
22469
- Zy as BSelectList,
22470
- By as BSelectListOption,
22471
- $y as BSelectListOptionGroup,
22472
- jy as BSideOver,
22473
- Wy as BStatusSelect,
22474
- Uy as BSwitch,
22475
- Ky as BTab,
22476
- qy as BTag,
22477
- Yy as BTagInput,
22478
- Gy as BTextEditor,
22556
+ zy as BSelectList,
22557
+ Fy as BSelectListOption,
22558
+ Zy as BSelectListOptionGroup,
22559
+ Uy as BSideOver,
22560
+ Ky as BStatusSelect,
22561
+ qy as BSwitch,
22562
+ Yy as BTab,
22563
+ Jy as BTag,
22564
+ Gy as BTagInput,
22565
+ Xy as BTextEditor,
22479
22566
  Xf as BTextHighlight,
22480
- _y as BTextViewer,
22481
- Xy as BToggleButton,
22567
+ Qy as BTextViewer,
22568
+ ev as BToggleButton,
22482
22569
  Cs as BTooltip,
22483
- Qy as BTreeList,
22570
+ sv as BTreeList,
22484
22571
  Xa as BVerticalLayout,
22485
22572
  Qf as BWindowFrame,
22486
- tv as ButtonType,
22487
- iv as Justifications,
22488
- rv as Orientation,
22489
- ov as OverlayType,
22490
- sv as PopperTrigger,
22491
- uv as SectionTypes,
22492
- ev as buttonVariants,
22493
- nv as checkboxTypes,
22573
+ av as ButtonType,
22574
+ cv as Justifications,
22575
+ dv as Orientation,
22576
+ fv as OverlayType,
22577
+ pv as PopperTrigger,
22578
+ gv as SectionTypes,
22579
+ ov as buildTree,
22580
+ lv as buttonVariants,
22581
+ uv as checkboxTypes,
22494
22582
  yd as clamp,
22495
22583
  z0 as debounce,
22496
- Py as egdes,
22497
- av as icons,
22584
+ Iy as egdes,
22585
+ ay as flattenTree,
22586
+ uy as flattenTreeNodes,
22587
+ nv as getNodeValueByPath,
22588
+ mv as icons,
22498
22589
  lo as loopRange,
22590
+ tv as openPath,
22499
22591
  Tp as range,
22500
- Iy as scrollDirections,
22592
+ By as scrollDirections,
22501
22593
  vd as scrollIntoView,
22502
22594
  j0 as scrollbarWidth,
22503
- zy as selectOptionVariants,
22504
- Fy as states,
22505
- lv as statuses,
22595
+ Wy as selectOptionVariants,
22596
+ iv as setNodeObjectValueByPath,
22597
+ rv as setNodeValueByPath,
22598
+ jy as states,
22599
+ hv as statuses,
22506
22600
  Ql as useClickOutside,
22507
22601
  ea as useEscapeKey,
22508
22602
  vh as useMounted,