@firstnoodle-ui/bui 0.0.59 → 0.0.60

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,7 +1,7 @@
1
1
  var jf = Object.defineProperty;
2
2
  var Uf = (t, e, n) => e in t ? jf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var de = (t, e, n) => Uf(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { createElementBlock as v, openBlock as y, renderSlot as F, createElementVNode as C, defineComponent as $, toDisplayString as ce, ref as M, watch as Oe, computed as Y, createBlock as H, createCommentVNode as T, normalizeClass as z, normalizeStyle as Ce, createVNode as V, unref as k, withCtx as R, resolveDynamicComponent as An, provide as Kf, onMounted as Ve, withModifiers as X, Fragment as I, renderList as yt, onBeforeMount as lr, toRef as qf, onUnmounted as Jr, onBeforeUnmount as Kt, nextTick as fn, createStaticVNode as Ae, Teleport as Gr, withDirectives as Xr, vShow as Li, Transition as hl, useSlots as ar, withKeys as pe, createSlots as kc, vModelText as Yf, reactive as xc, createTextVNode as wc, shallowRef as Jf, h as Mi, getCurrentInstance as Gf, watchEffect as Xf, markRaw as Qf, customRef as _f, resolveComponent as eh } from "vue";
4
+ import { createElementBlock as v, openBlock as y, renderSlot as F, createElementVNode as C, defineComponent as $, toDisplayString as ce, ref as M, watch as Re, computed as Y, createBlock as H, createCommentVNode as T, normalizeClass as z, normalizeStyle as Ce, createVNode as V, unref as k, withCtx as O, resolveDynamicComponent as An, provide as Kf, onMounted as Ve, withModifiers as X, Fragment as I, renderList as yt, onBeforeMount as lr, toRef as qf, onUnmounted as Jr, onBeforeUnmount as Kt, nextTick as fn, createStaticVNode as Ae, Teleport as Gr, withDirectives as Xr, vShow as Li, Transition as hl, useSlots as ar, withKeys as pe, createSlots as kc, vModelText as Yf, reactive as xc, createTextVNode as wc, shallowRef as Jf, h as Mi, getCurrentInstance as Gf, watchEffect as Xf, markRaw as Qf, customRef as _f, resolveComponent as eh } from "vue";
5
5
  const gn = (t, e) => {
6
6
  const n = t.__vccOpts || t;
7
7
  for (const [r, s] of e)
@@ -59,8 +59,8 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
59
59
  },
60
60
  emits: ["update:modelValue", "change"],
61
61
  setup(t, { emit: e }) {
62
- const n = t, r = e, s = M(), i = M(), o = M(), l = M(), a = M(null), c = M(null), u = M(n.modelValue), d = M(100), f = M(!1), h = M(0), p = M(0), m = M(1), g = M(1), b = M(0), x = M(0), w = M(0), L = M(0);
63
- Oe(
62
+ const n = t, r = e, s = M(), i = M(), o = M(), l = M(), a = M(null), c = M(null), u = M(n.modelValue), d = M(100), f = M(!1), h = M(0), p = M(0), m = M(1), g = M(1), b = M(0), w = M(0), x = M(0), L = M(0);
63
+ Re(
64
64
  () => n.modelValue,
65
65
  (K) => {
66
66
  u.value = K;
@@ -73,18 +73,18 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
73
73
  })), N = () => {
74
74
  var K;
75
75
  n.disabled || (K = s.value) == null || K.click();
76
- }, O = () => {
76
+ }, R = () => {
77
77
  if (!n.disabled)
78
78
  if (u.value && c.value) {
79
79
  const K = new Image();
80
80
  K.onload = () => {
81
- a.value = K, b.value = K.width, x.value = K.height, d.value = Se * 0.5;
81
+ a.value = K, b.value = K.width, w.value = K.height, d.value = Se * 0.5;
82
82
  const q = Math.max(d.value / K.width, d.value / K.height);
83
83
  g.value = q;
84
84
  const le = Math.min(Se / K.width, Se / K.height);
85
85
  m.value = Math.max(le, q);
86
86
  const Ye = K.width * m.value, te = K.height * m.value;
87
- w.value = (Se - Ye) / 2, L.value = (Se - te) / 2;
87
+ x.value = (Se - Ye) / 2, L.value = (Se - te) / 2;
88
88
  }, K.src = c.value;
89
89
  } else
90
90
  N();
@@ -99,25 +99,25 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
99
99
  c.value = oe;
100
100
  const Ee = new Image();
101
101
  Ee.onload = () => {
102
- a.value = Ee, b.value = Ee.width, x.value = Ee.height, d.value = Se * 0.7;
103
- const Ot = Math.max(d.value / Ee.width, d.value / Ee.height);
104
- g.value = Ot;
102
+ a.value = Ee, b.value = Ee.width, w.value = Ee.height, d.value = Se * 0.7;
103
+ const Rt = Math.max(d.value / Ee.width, d.value / Ee.height);
104
+ g.value = Rt;
105
105
  const Jt = Math.min(Se / Ee.width, Se / Ee.height);
106
- m.value = Math.max(Jt, Ot);
106
+ m.value = Math.max(Jt, Rt);
107
107
  const U = Ee.width * m.value, ue = Ee.height * m.value;
108
- w.value = (Se - U) / 2, L.value = (Se - ue) / 2, setTimeout(() => {
108
+ x.value = (Se - U) / 2, L.value = (Se - ue) / 2, setTimeout(() => {
109
109
  }, 10);
110
110
  }, Ee.src = oe;
111
111
  }, te.readAsDataURL(le);
112
112
  }
113
113
  q.value = "";
114
114
  }, E = (K) => {
115
- f.value = !0, h.value = K.clientX - w.value, p.value = K.clientY - L.value, window.addEventListener("mousemove", P), window.addEventListener("mouseup", Q);
115
+ f.value = !0, h.value = K.clientX - x.value, p.value = K.clientY - L.value, window.addEventListener("mousemove", P), window.addEventListener("mouseup", Q);
116
116
  }, P = (K) => {
117
117
  if (f.value) {
118
118
  let q = K.clientX - h.value, le = K.clientY - p.value;
119
- const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = Ye + d.value / 2, Ee = te - d.value / 2, Yt = te + d.value / 2, Ot = b.value * m.value, Jt = x.value * m.value;
120
- q = Math.min(q, ee), q = Math.max(q, oe - Ot), le = Math.min(le, Ee), le = Math.max(le, Yt - Jt), w.value = q, L.value = le;
119
+ const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = Ye + d.value / 2, Ee = te - d.value / 2, Yt = te + d.value / 2, Rt = b.value * m.value, Jt = w.value * m.value;
120
+ q = Math.min(q, ee), q = Math.max(q, oe - Rt), le = Math.min(le, Ee), le = Math.max(le, Yt - Jt), x.value = q, L.value = le;
121
121
  }
122
122
  }, Q = () => {
123
123
  f.value = !1, window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", Q);
@@ -131,13 +131,13 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
131
131
  if (!q) return;
132
132
  const le = 512;
133
133
  K.width = le, K.height = le;
134
- const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = te - d.value / 2, Ee = (ee - w.value) / m.value, Yt = (oe - L.value) / m.value, Ot = d.value / m.value;
134
+ const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = te - d.value / 2, Ee = (ee - x.value) / m.value, Yt = (oe - L.value) / m.value, Rt = d.value / m.value;
135
135
  q.fillStyle = "#ffffff", q.fillRect(0, 0, le, le), n.cropShape === "circle" && (q.save(), q.beginPath(), q.arc(le / 2, le / 2, le / 2, 0, Math.PI * 2), q.closePath(), q.clip()), q.drawImage(
136
136
  a.value,
137
137
  Ee,
138
138
  Yt,
139
- Ot,
140
- Ot,
139
+ Rt,
140
+ Rt,
141
141
  0,
142
142
  0,
143
143
  le,
@@ -153,7 +153,7 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
153
153
  C("div", {
154
154
  style: Ce(S.value),
155
155
  class: z(["relative overflow-hidden bg-tertiary border border-default flex items-center justify-center cursor-pointer group", { "opacity-50 cursor-not-allowed": t.disabled }]),
156
- onClick: O
156
+ onClick: R
157
157
  }, [
158
158
  u.value ? (y(), v("img", {
159
159
  key: 0,
@@ -187,7 +187,7 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
187
187
  "width-class": "max-w-xl",
188
188
  onClose: xe
189
189
  }, {
190
- main: R(() => [
190
+ main: O(() => [
191
191
  C("div", dh, [
192
192
  C("div", {
193
193
  class: z(["relative bg-slate-100 dark:bg-slate-800 overflow-hidden select-none transition-all", { "cursor-grabbing": f.value, "cursor-grab": !f.value }]),
@@ -199,8 +199,8 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
199
199
  class: "absolute border border-yellow-300 pointer-events-none",
200
200
  style: Ce({
201
201
  width: `${b.value * m.value}px`,
202
- height: `${x.value * m.value}px`,
203
- left: `${w.value}px`,
202
+ height: `${w.value * m.value}px`,
203
+ left: `${x.value}px`,
204
204
  top: `${L.value}px`
205
205
  })
206
206
  }, [
@@ -288,12 +288,12 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
288
288
  }, null, 512)
289
289
  ])
290
290
  ]),
291
- footer: R(() => [
291
+ footer: O(() => [
292
292
  V(k(ye), {
293
293
  class: "w-full",
294
294
  justify: "between"
295
295
  }, {
296
- default: R(() => [
296
+ default: O(() => [
297
297
  V(k(se), {
298
298
  disabled: t.disabled,
299
299
  variant: "outlineSubtle",
@@ -465,7 +465,7 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
465
465
  var p;
466
466
  r.stopPropagation && h.stopPropagation(), !r.disabled && !r.loading && (r.href && window.open(r.href, "_blank"), r.mailto && window.open(`mailto:${r.mailto}`), r.tooltip && ((p = l.value) == null || p.hide()), s("click"));
467
467
  };
468
- return e({ focus: () => o.value.focus() }), (h, p) => t.tooltip ? (y(), H(k(Oi), {
468
+ return e({ focus: () => o.value.focus() }), (h, p) => t.tooltip ? (y(), H(k(Ri), {
469
469
  key: 0,
470
470
  ref_key: "tooltipRef",
471
471
  ref: l,
@@ -474,7 +474,7 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
474
474
  placement: t.tooltipPlacement,
475
475
  "trigger-full-width": t.fullwidth
476
476
  }, {
477
- default: R(() => [
477
+ default: O(() => [
478
478
  (y(), H(An(i.value), {
479
479
  ref_key: "buttonRef",
480
480
  ref: o,
@@ -485,9 +485,9 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
485
485
  onClick: d,
486
486
  onBlur: p[0] || (p[0] = (m) => s("blur"))
487
487
  }, {
488
- default: R(() => [
488
+ default: O(() => [
489
489
  V(k(La), null, {
490
- default: R(() => [
490
+ default: O(() => [
491
491
  t.loading ? (y(), H(k(Nr), {
492
492
  key: 0,
493
493
  class: z(a.value)
@@ -528,9 +528,9 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
528
528
  onClick: d,
529
529
  onBlur: p[1] || (p[1] = (m) => s("blur"))
530
530
  }, {
531
- default: R(() => [
531
+ default: O(() => [
532
532
  V(k(La), null, {
533
- default: R(() => [
533
+ default: O(() => [
534
534
  t.loading ? (y(), H(k(Nr), {
535
535
  key: 0,
536
536
  class: z(a.value)
@@ -676,7 +676,7 @@ const Ah = /* @__PURE__ */ $({
676
676
  onClick: s[0] || (s[0] = X((i) => n("click", t.date), ["stop"]))
677
677
  }, ce(t.date.label), 3));
678
678
  }
679
- }), Oh = { class: "w-56 grid grid-cols-7" }, Rh = { class: "col-span-3 h-8 flex items-center justify-center" }, Dh = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Nh = { class: "w-56 grid grid-cols-7" }, $h = /* @__PURE__ */ $({
679
+ }), Rh = { class: "w-56 grid grid-cols-7" }, Oh = { class: "col-span-3 h-8 flex items-center justify-center" }, Dh = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Nh = { class: "w-56 grid grid-cols-7" }, $h = /* @__PURE__ */ $({
680
680
  __name: "MonthView",
681
681
  props: {
682
682
  viewData: {},
@@ -688,7 +688,7 @@ const Ah = /* @__PURE__ */ $({
688
688
  setup(t, { emit: e }) {
689
689
  const n = e;
690
690
  return (r, s) => (y(), v("div", null, [
691
- C("nav", Oh, [
691
+ C("nav", Rh, [
692
692
  V(k(se), {
693
693
  variant: "textSubtle",
694
694
  icon: "chevron-left-double",
@@ -699,7 +699,7 @@ const Ah = /* @__PURE__ */ $({
699
699
  icon: "chevron-left",
700
700
  onClick: s[1] || (s[1] = (i) => n("move", { amount: -1, unit: k(ae).MONTH }))
701
701
  }),
702
- C("div", Rh, [
702
+ C("div", Oh, [
703
703
  V(k(se), {
704
704
  variant: "textSubtle",
705
705
  label: k(Sc)(t.currentMonth.slice(0, 3)),
@@ -1072,7 +1072,7 @@ const Yh = (t = null, e) => {
1072
1072
  setSelectedDate: u,
1073
1073
  setViewDateAndChangeView: d
1074
1074
  } = Yh(t.value, { weekStart: t.weekStart, disabledDates: t.disabledDates });
1075
- Oe(() => t.value, (g) => u(g));
1075
+ Re(() => t.value, (g) => u(g));
1076
1076
  const f = qf(i), h = M(Object.values(rn).map((g, b) => Object.values(rn)[xs(b + t.weekStart, Object.values(rn).length)])), p = (g) => {
1077
1077
  if (!g) {
1078
1078
  n("change", null);
@@ -1134,7 +1134,7 @@ const Yh = (t = null, e) => {
1134
1134
  "leading-icon": "trash",
1135
1135
  label: "Clear",
1136
1136
  disabled: !t.value,
1137
- onClick: b[0] || (b[0] = (x) => p(null))
1137
+ onClick: b[0] || (b[0] = (w) => p(null))
1138
1138
  }, null, 8, ["disabled"])
1139
1139
  ])) : T("", !0)
1140
1140
  ]));
@@ -1279,12 +1279,12 @@ const Yh = (t = null, e) => {
1279
1279
  top: "-1px",
1280
1280
  paddingTop: "1px"
1281
1281
  } : {});
1282
- Oe(
1282
+ Re(
1283
1283
  () => n.open,
1284
1284
  (u) => {
1285
1285
  u || (o.value = !1);
1286
1286
  }
1287
- ), Oe(o, (u) => {
1287
+ ), Re(o, (u) => {
1288
1288
  u && s.value.blur();
1289
1289
  });
1290
1290
  const c = M(null);
@@ -1360,7 +1360,7 @@ const Yh = (t = null, e) => {
1360
1360
  col: t.vertical,
1361
1361
  class: "gap-2"
1362
1362
  }, {
1363
- default: R(() => [
1363
+ default: O(() => [
1364
1364
  r.value ? (y(), H(k(se), {
1365
1365
  key: 0,
1366
1366
  small: t.small,
@@ -1505,7 +1505,7 @@ const m0 = () => {
1505
1505
  function b0(t, e) {
1506
1506
  return " To be implemented ";
1507
1507
  }
1508
- const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1508
+ const RC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1509
1509
  class: "relative w-4 h-4 min-w-4 min-h-4 fill-current",
1510
1510
  viewBox: "0 0 16 16",
1511
1511
  xmlns: "http://www.w3.org/2000/svg"
@@ -1543,10 +1543,10 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1543
1543
  "fill-rule": "evenodd",
1544
1544
  "clip-rule": "evenodd",
1545
1545
  d: "M5.5 4C5.5 4.93192 4.86261 5.71497 4 5.93699V7.5C4 8.88071 5.11929 10 6.5 10H13.2929L11.1464 7.85355L11.8536 7.14645L15.2071 10.5L11.8536 13.8536L11.1464 13.1464L13.2929 11H6.5C4.567 11 3 9.433 3 7.5V5.93699C2.13739 5.71497 1.5 4.93192 1.5 4C1.5 2.89543 2.39543 2 3.5 2C4.60457 2 5.5 2.89543 5.5 4ZM3.5 5C4.05228 5 4.5 4.55228 4.5 4C4.5 3.44772 4.05228 3 3.5 3C2.94772 3 2.5 3.44772 2.5 4C2.5 4.55228 2.94772 5 3.5 5Z"
1546
- }, O0 = {
1546
+ }, R0 = {
1547
1547
  key: 12,
1548
1548
  "clip-path": "url(#clip0_1_1043)"
1549
- }, R0 = {
1549
+ }, O0 = {
1550
1550
  key: 14,
1551
1551
  d: "M8 2.29297L12.7071 7.00007L12 7.70718L8.49989 4.20697L8.5 14.0001H7.5L7.49989 4.20697L4 7.70718L3.29289 7.00007L8 2.29297Z"
1552
1552
  }, D0 = {
@@ -1719,10 +1719,10 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1719
1719
  "fill-rule": "evenodd",
1720
1720
  "clip-rule": "evenodd",
1721
1721
  d: "M4.00002 3.99998L14.7575 1.31062C15.3886 1.15284 16 1.6302 16 2.28077V11.7192C16 12.3698 15.3886 12.8471 14.7575 12.6894L6 10.5V15H3V9.99998C1.34315 9.99998 0 8.65684 0 6.99998C0 5.34313 1.34315 3.99998 3 3.99998H4.00002ZM15 11.7192L5 9.21921V4.78077L15 2.28077V11.7192ZM4 4.99998H3C1.89543 4.99998 1 5.89542 1 6.99998C1 8.10455 1.89543 8.99998 3 8.99998H4V4.99998ZM4 9.99999V14H5V10.25L4 9.99999Z"
1722
- }, Op = {
1722
+ }, Rp = {
1723
1723
  key: 104,
1724
1724
  "clip-path": "url(#clip0_1_843)"
1725
- }, Rp = {
1725
+ }, Op = {
1726
1726
  key: 105,
1727
1727
  "clip-path": "url(#clip0_169_65)"
1728
1728
  }, Dp = {
@@ -1942,7 +1942,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1942
1942
  C("g", { mask: "url(#mask0_1_853)" }, [
1943
1943
  C("path", { d: "M8 0.292969L10.7071 3.00008L10 3.70718L8.49989 2.20597V7.49997H13.7929L12.2929 6.00008L13 5.29297L15.7071 8.00008L13 10.7072L12.2929 10.0001L13.7929 8.49997H8.49989V13.792L10 12.293L10.7071 13.0001L8 15.7072L5.29289 13.0001L6 12.293L7.49989 13.794V8.49997H2.20689L3.70711 10.0001L3 10.7072L0.292892 8.00008L3 5.29297L3.70711 6.00008L2.20489 7.49997H7.49989V2.20597L6 3.70718L5.29289 3.00008L8 0.292969Z" })
1944
1944
  ], -1)
1945
- ])])) : t.name === "arrow-right" ? (y(), v("path", E0)) : t.name === "arrow-sub" ? (y(), v("path", A0)) : t.name === "arrow-trend" ? (y(), v("g", O0, [...n[9] || (n[9] = [
1945
+ ])])) : t.name === "arrow-right" ? (y(), v("path", E0)) : t.name === "arrow-sub" ? (y(), v("path", A0)) : t.name === "arrow-trend" ? (y(), v("g", R0, [...n[9] || (n[9] = [
1946
1946
  C("g", { mask: "url(#mask0_1_1043)" }, [
1947
1947
  C("path", {
1948
1948
  "fill-rule": "evenodd",
@@ -1953,7 +1953,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1953
1953
  ])])) : t.name === "arrow-up-plus" ? (y(), v(I, { key: 13 }, [
1954
1954
  n[10] || (n[10] = C("path", { d: "M10.7071 6.00007L6.00001 1.29297L1.29291 6.00007L2.00001 6.70718L5.49991 3.20697L5.50001 15.0001H6.50001L6.49991 3.20697L10 6.70718L10.7071 6.00007Z" }, null, -1)),
1955
1955
  n[11] || (n[11] = C("path", { d: "M13 11.5V9.5H12V11.5H10V12.5H12V14.5H13V12.5H15V11.5H13Z" }, null, -1))
1956
- ], 64)) : t.name === "arrow-up" ? (y(), v("path", R0)) : t.name === "at-symbol" ? (y(), v("path", D0)) : t.name === "audio" ? (y(), v(I, { key: 16 }, [
1956
+ ], 64)) : t.name === "arrow-up" ? (y(), v("path", O0)) : t.name === "at-symbol" ? (y(), v("path", D0)) : t.name === "audio" ? (y(), v(I, { key: 16 }, [
1957
1957
  n[12] || (n[12] = C("path", {
1958
1958
  "fill-rule": "evenodd",
1959
1959
  "clip-rule": "evenodd",
@@ -2283,11 +2283,11 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2283
2283
  "clip-rule": "evenodd",
2284
2284
  d: "M3.57422 10.4258C3.88411 10.569 4.22917 10.6406 4.60938 10.6406C4.95833 10.6406 5.25391 10.5885 5.49609 10.4844C5.73828 10.3802 5.93229 10.2539 6.07812 10.1055C6.22396 9.95703 6.32812 9.81771 6.39062 9.6875H6.4375V10.5H7.35938V6.54688C7.35938 6.07031 7.28125 5.6901 7.125 5.40625C6.96875 5.1224 6.77214 4.91016 6.53516 4.76953C6.30078 4.62891 6.05729 4.53646 5.80469 4.49219C5.55469 4.44531 5.33333 4.42188 5.14062 4.42188C4.83854 4.42188 4.53125 4.46354 4.21875 4.54688C3.90885 4.6276 3.6224 4.77083 3.35938 4.97656C3.09896 5.17969 2.89062 5.46354 2.73438 5.82812L3.60938 6.14062C3.71094 5.92187 3.88672 5.71615 4.13672 5.52344C4.38672 5.33073 4.73177 5.23438 5.17188 5.23438C5.59635 5.23438 5.91276 5.34115 6.12109 5.55469C6.33203 5.76823 6.4375 6.06771 6.4375 6.45312V6.48437C6.4375 6.63281 6.38411 6.73698 6.27734 6.79688C6.17318 6.85677 6.00651 6.89974 5.77734 6.92578C5.55078 6.94922 5.25521 6.98438 4.89062 7.03125C4.61198 7.06771 4.33464 7.11719 4.05859 7.17969C3.78516 7.23958 3.53516 7.33073 3.30859 7.45312C3.08203 7.57552 2.90104 7.74479 2.76562 7.96094C2.63021 8.17448 2.5625 8.45312 2.5625 8.79688C2.5625 9.1875 2.65365 9.52083 2.83594 9.79688C3.01823 10.0703 3.26432 10.2799 3.57422 10.4258ZM5.67188 9.59766C5.42188 9.74089 5.11458 9.8125 4.75 9.8125C4.38281 9.8125 4.07943 9.73177 3.83984 9.57031C3.60286 9.40625 3.48438 9.16406 3.48438 8.84375C3.48438 8.60938 3.54688 8.42448 3.67188 8.28906C3.79948 8.15104 3.96615 8.04818 4.17188 7.98047C4.38021 7.91016 4.60417 7.85938 4.84375 7.82812C4.94271 7.8151 5.07161 7.79948 5.23047 7.78125C5.39193 7.76042 5.55729 7.73698 5.72656 7.71094C5.89844 7.68229 6.04948 7.64974 6.17969 7.61328C6.3125 7.57422 6.39844 7.53125 6.4375 7.48438V8.32812C6.4375 8.57812 6.3724 8.81641 6.24219 9.04297C6.11458 9.26953 5.92448 9.45443 5.67188 9.59766Z"
2285
2285
  }, null, -1))
2286
- ], 64)) : t.name === "megaphone" ? (y(), v("path", Ap)) : t.name === "message" ? (y(), v("g", Op, [...n[116] || (n[116] = [
2286
+ ], 64)) : t.name === "megaphone" ? (y(), v("path", Ap)) : t.name === "message" ? (y(), v("g", Rp, [...n[116] || (n[116] = [
2287
2287
  C("g", { mask: "url(#mask0_1_843)" }, [
2288
2288
  C("path", { d: "M16 0V11H9L4 16V11H0V0H16ZM0.999 0.999V10H5L4.999 13.585L8.58579 10H14.999V1L0.999 0.999Z" })
2289
2289
  ], -1)
2290
- ])])) : t.name === "message-question" ? (y(), v("g", Rp, [...n[117] || (n[117] = [
2290
+ ])])) : t.name === "message-question" ? (y(), v("g", Op, [...n[117] || (n[117] = [
2291
2291
  C("path", { d: "M8 10.5H7V9.5H8V10.5Z" }, null, -1),
2292
2292
  C("path", { d: "M7.83301 3C8.86537 3 9.66699 3.86733 9.66699 4.8916C9.66695 5.46568 9.54984 5.81515 9.38672 6.0752C9.24618 6.29917 9.07188 6.46031 8.87402 6.64551L8.86719 6.65234C8.82513 6.69171 8.78151 6.73227 8.73633 6.77539L8.72461 6.78711L8.71191 6.79688C8.33415 7.11345 8.16854 7.30869 8.08691 7.50977C8.00652 7.70792 7.99978 7.93175 8 8.32324H7C6.9998 7.97316 6.99338 7.54486 7.16016 7.13379C7.33679 6.69854 7.66179 6.37539 8.04688 6.05078C8.09558 6.00431 8.1423 5.9615 8.18359 5.92285L8.19043 5.91602C8.40446 5.71568 8.47904 5.63947 8.53906 5.54395C8.58366 5.47284 8.66695 5.31615 8.66699 4.8916C8.66699 4.37908 8.2734 4 7.83301 4C7.39274 4.00019 7 4.37921 7 4.8916H6C6 3.86744 6.8008 3.00018 7.83301 3Z" }, null, -1),
2293
2293
  C("path", {
@@ -2554,7 +2554,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2554
2554
  V(k(ve), { name: "close" })
2555
2555
  ]));
2556
2556
  }
2557
- }), H5 = { class: "flex items-center justify-between w-full h-12" }, T5 = { key: 0 }, V5 = { key: 1 }, E5 = { class: "flex items-center h-12" }, RC = /* @__PURE__ */ $({
2557
+ }), H5 = { class: "flex items-center justify-between w-full h-12" }, T5 = { key: 0 }, V5 = { key: 1 }, E5 = { class: "flex items-center h-12" }, OC = /* @__PURE__ */ $({
2558
2558
  __name: "Dialog",
2559
2559
  props: {
2560
2560
  closeable: { type: Boolean, default: !0 },
@@ -2574,19 +2574,19 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2574
2574
  onClick: l,
2575
2575
  onClose: c[1] || (c[1] = (u) => r("close"))
2576
2576
  }, {
2577
- default: R(() => [
2577
+ default: O(() => [
2578
2578
  V(k(Vc), {
2579
2579
  onTransitionAfterEnter: c[0] || (c[0] = (u) => r("open"))
2580
2580
  }, {
2581
- default: R(() => [
2581
+ default: O(() => [
2582
2582
  Xr(V(k(Ll), {
2583
2583
  ref_key: "windowRef",
2584
2584
  ref: i,
2585
2585
  class: "h-64 max-w-2xl md:w-1/2 md:max-w-lg p-4 md:px-8"
2586
2586
  }, {
2587
- default: R(() => [
2587
+ default: O(() => [
2588
2588
  V(k(ka), null, {
2589
- header: R(() => [
2589
+ header: O(() => [
2590
2590
  C("header", H5, [
2591
2591
  t.title ? (y(), v("h4", T5, ce(t.title), 1)) : (y(), v("h4", V5, [
2592
2592
  F(a.$slots, "title")
@@ -2600,10 +2600,10 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2600
2600
  })) : T("", !0)
2601
2601
  ])
2602
2602
  ]),
2603
- main: R(() => [
2603
+ main: O(() => [
2604
2604
  F(a.$slots, "main")
2605
2605
  ]),
2606
- footer: R(() => [
2606
+ footer: O(() => [
2607
2607
  C("footer", E5, [
2608
2608
  F(a.$slots, "footer")
2609
2609
  ])
@@ -2637,16 +2637,16 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2637
2637
  "leave-to-class": "translate-y-2 opacity-0",
2638
2638
  onAfterEnter: s[0] || (s[0] = (i) => n("transition-after-enter"))
2639
2639
  }, {
2640
- default: R(() => [
2640
+ default: O(() => [
2641
2641
  F(r.$slots, "default")
2642
2642
  ]),
2643
2643
  _: 3
2644
2644
  }));
2645
2645
  }
2646
- }), A5 = { class: "text-sm" }, O5 = {
2646
+ }), A5 = { class: "text-sm" }, R5 = {
2647
2647
  key: 0,
2648
2648
  class: "h-4 px-1 min-w-4 flex items-center justify-center rounded-full text-xs font-medium bg-black/15"
2649
- }, R5 = /* @__PURE__ */ $({
2649
+ }, O5 = /* @__PURE__ */ $({
2650
2650
  __name: "FilterChip",
2651
2651
  props: {
2652
2652
  label: {},
@@ -2666,7 +2666,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2666
2666
  onClick: n[1] || (n[1] = (r) => e.$emit("click"))
2667
2667
  }, [
2668
2668
  C("span", A5, ce(t.label), 1),
2669
- t.active && t.count ? (y(), v("span", O5, ce(t.count), 1)) : T("", !0),
2669
+ t.active && t.count ? (y(), v("span", R5, ce(t.count), 1)) : T("", !0),
2670
2670
  t.deletable && t.active ? (y(), H(k(S5), {
2671
2671
  key: 1,
2672
2672
  "data-theme": "dark",
@@ -2724,7 +2724,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2724
2724
  return (i, o) => (y(), H(An(t.tag), {
2725
2725
  class: z(s.value)
2726
2726
  }, {
2727
- default: R(() => [
2727
+ default: O(() => [
2728
2728
  F(i.$slots, "default")
2729
2729
  ]),
2730
2730
  _: 3
@@ -2839,42 +2839,54 @@ const I5 = () => {
2839
2839
  borders: { type: Boolean, default: !1 },
2840
2840
  mainBgColorClass: { default: "" }
2841
2841
  },
2842
- emits: ["aside-left-transition-end", "aside-right-transition-end"],
2842
+ emits: ["aside-left-resize", "aside-left-resize-end", "aside-left-resize-start", "aside-left-transition-end", "aside-right-resize", "aside-right-resize-end", "aside-right-resize-start", "aside-right-transition-end"],
2843
2843
  setup(t, { emit: e }) {
2844
2844
  const n = t, r = e, s = M(!1), i = M(n.asideLeftWidth), o = M(n.asideRightWidth), l = M(n.asideLeftWidth), a = M(n.asideRightWidth), c = Y(() => ({
2845
2845
  paddingLeft: `${l.value}px`,
2846
2846
  paddingRight: `${a.value}px`
2847
- })), u = (m) => i.value = l.value = m, d = (m) => !m && r("aside-left-transition-end"), f = (m) => o.value = a.value = m, h = (m) => !m && r("aside-right-transition-end");
2848
- Oe(
2847
+ })), u = () => {
2848
+ s.value = !1, r("aside-left-resize-end");
2849
+ }, d = () => {
2850
+ s.value = !0, r("aside-left-resize-start");
2851
+ }, f = (x) => {
2852
+ i.value = l.value = x, r("aside-left-resize", x);
2853
+ }, h = (x) => !x && r("aside-left-transition-end"), p = () => {
2854
+ s.value = !1, r("aside-right-resize-end");
2855
+ }, m = () => {
2856
+ s.value = !0, r("aside-right-resize-start");
2857
+ }, g = (x) => {
2858
+ o.value = a.value = x, r("aside-right-resize", x);
2859
+ }, b = (x) => !x && r("aside-right-transition-end");
2860
+ Re(
2849
2861
  () => n.asideLeftVisible,
2850
- (m) => l.value = m ? i.value : 0
2851
- ), Oe(
2862
+ (x) => l.value = x ? i.value : 0
2863
+ ), Re(
2852
2864
  () => n.asideRightVisible,
2853
- (m) => a.value = m ? o.value : 0
2854
- ), Oe(
2865
+ (x) => a.value = x ? o.value : 0
2866
+ ), Re(
2855
2867
  () => n.asideLeftWidth,
2856
- (m) => i.value = l.value = m
2857
- ), Oe(
2868
+ (x) => i.value = l.value = x
2869
+ ), Re(
2858
2870
  () => n.asideRightWidth,
2859
- (m) => o.value = a.value = m
2871
+ (x) => o.value = a.value = x
2860
2872
  );
2861
- const p = ar();
2873
+ const w = ar();
2862
2874
  return Ve(() => {
2863
- l.value = n.asideLeftVisible && p["aside-left"] ? i.value : 0, a.value = n.asideRightVisible && p["aside-right"] ? o.value : 0;
2864
- }), (m, g) => (y(), v("div", z5, [
2865
- k(p)["aside-left"] && t.asideLeftVisible ? (y(), H(Ta, {
2875
+ l.value = n.asideLeftVisible && w["aside-left"] ? i.value : 0, a.value = n.asideRightVisible && w["aside-right"] ? o.value : 0;
2876
+ }), (x, L) => (y(), v("div", z5, [
2877
+ k(w)["aside-left"] && t.asideLeftVisible ? (y(), H(Ta, {
2866
2878
  key: 0,
2867
2879
  side: "left",
2868
2880
  border: n.borders,
2869
2881
  draggable: t.asideLeftDraggable,
2870
2882
  width: i.value,
2871
- onResizeStart: g[0] || (g[0] = (b) => s.value = !0),
2872
- onResize: u,
2873
- onResizeEnd: g[1] || (g[1] = (b) => s.value = !1),
2874
- onTransitioning: d
2883
+ onResizeStart: d,
2884
+ onResize: f,
2885
+ onResizeEnd: u,
2886
+ onTransitioning: h
2875
2887
  }, {
2876
- default: R(() => [
2877
- F(m.$slots, "aside-left")
2888
+ default: O(() => [
2889
+ F(x.$slots, "aside-left")
2878
2890
  ]),
2879
2891
  _: 3
2880
2892
  }, 8, ["border", "draggable", "width"])) : T("", !0),
@@ -2882,21 +2894,21 @@ const I5 = () => {
2882
2894
  class: z(["relative z-0 h-full overflow-x-hidden overflow-y-auto", [n.mainBgColorClass]]),
2883
2895
  style: Ce(c.value)
2884
2896
  }, [
2885
- F(m.$slots, "main")
2897
+ F(x.$slots, "main")
2886
2898
  ], 6),
2887
- k(p)["aside-right"] && t.asideRightVisible ? (y(), H(Ta, {
2899
+ k(w)["aside-right"] && t.asideRightVisible ? (y(), H(Ta, {
2888
2900
  key: 1,
2889
2901
  side: "right",
2890
2902
  border: n.borders,
2891
2903
  draggable: t.asideRightDraggable,
2892
2904
  width: o.value,
2893
- onResizeStart: g[2] || (g[2] = (b) => s.value = !0),
2894
- onResize: f,
2895
- onResizeEnd: g[3] || (g[3] = (b) => s.value = !1),
2896
- onTransitioning: h
2905
+ onResizeStart: m,
2906
+ onResize: g,
2907
+ onResizeEnd: p,
2908
+ onTransitioning: b
2897
2909
  }, {
2898
- default: R(() => [
2899
- F(m.$slots, "aside-right")
2910
+ default: O(() => [
2911
+ F(x.$slots, "aside-right")
2900
2912
  ]),
2901
2913
  _: 3
2902
2914
  }, 8, ["border", "draggable", "width"])) : T("", !0)
@@ -2927,22 +2939,22 @@ const I5 = () => {
2927
2939
  tabindex: "0",
2928
2940
  class: "border border-default bg-primary rounded-lg focus:outline-none focus-within:shadow-sm focus-within:border-action"
2929
2941
  }, {
2930
- default: R(() => [
2942
+ default: O(() => [
2931
2943
  F(r.$slots, "default"),
2932
2944
  V(k(ye), {
2933
2945
  tag: "footer",
2934
2946
  justify: "between",
2935
2947
  class: "gap-2 px-2 py-2 border-t border-default"
2936
2948
  }, {
2937
- default: R(() => [
2949
+ default: O(() => [
2938
2950
  V(k(ye), null, {
2939
- default: R(() => [
2951
+ default: O(() => [
2940
2952
  F(r.$slots, "footer-left")
2941
2953
  ]),
2942
2954
  _: 3
2943
2955
  }),
2944
2956
  V(k(ye), { class: "gap-2" }, {
2945
- default: R(() => [
2957
+ default: O(() => [
2946
2958
  V(k(cr), {
2947
2959
  small: "",
2948
2960
  order: "confirm-last",
@@ -3263,9 +3275,9 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3263
3275
  onClick: c,
3264
3276
  onClose: f[0] || (f[0] = (h) => s("close"))
3265
3277
  }, {
3266
- default: R(() => [
3278
+ default: O(() => [
3267
3279
  V(k(Vc), { onTransitionAfterEnter: u }, {
3268
- default: R(() => [
3280
+ default: O(() => [
3269
3281
  Xr(V(k(Ll), {
3270
3282
  ref_key: "windowRef",
3271
3283
  ref: o,
@@ -3277,16 +3289,16 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3277
3289
  }
3278
3290
  ]])
3279
3291
  }, {
3280
- default: R(() => [
3292
+ default: O(() => [
3281
3293
  d.$slots.default ? F(d.$slots, "default", { key: 0 }) : (y(), H(k(ka), { key: 1 }, kc({
3282
- main: R(() => [
3294
+ main: O(() => [
3283
3295
  F(d.$slots, "main", { close: a })
3284
3296
  ]),
3285
3297
  _: 2
3286
3298
  }, [
3287
3299
  r.title || d.$slots.header ? {
3288
3300
  name: "header",
3289
- fn: R(() => [
3301
+ fn: O(() => [
3290
3302
  r.title ? (y(), v("header", q5, [
3291
3303
  C("h4", null, ce(r.title), 1),
3292
3304
  t.closeable ? (y(), H(k(se), {
@@ -3302,7 +3314,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3302
3314
  } : void 0,
3303
3315
  d.$slots.footer ? {
3304
3316
  name: "footer",
3305
- fn: R(() => [
3317
+ fn: O(() => [
3306
3318
  C("footer", Y5, [
3307
3319
  F(d.$slots, "footer", { close: a })
3308
3320
  ])
@@ -3399,16 +3411,16 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3399
3411
  "text-emerald-300": t.type === "success"
3400
3412
  }])
3401
3413
  }, {
3402
- default: R(() => [
3414
+ default: O(() => [
3403
3415
  V(k(ve), { name: r.value }, null, 8, ["name"]),
3404
3416
  C("span", _5, ce(t.text), 1)
3405
3417
  ]),
3406
3418
  _: 1
3407
3419
  }, 8, ["class"]),
3408
3420
  V(k(ye), null, {
3409
- default: R(() => [
3421
+ default: O(() => [
3410
3422
  V(k(ye), { class: "px-2" }, {
3411
- default: R(() => [
3423
+ default: O(() => [
3412
3424
  t.showDetailsButton ? (y(), H(k(se), {
3413
3425
  key: 0,
3414
3426
  small: "",
@@ -3420,7 +3432,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3420
3432
  _: 1
3421
3433
  }),
3422
3434
  V(k(ye), { class: "px-1" }, {
3423
- default: R(() => [
3435
+ default: O(() => [
3424
3436
  V(k(se), {
3425
3437
  small: "",
3426
3438
  variant: "textSubtle",
@@ -3470,7 +3482,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3470
3482
  options: s.value,
3471
3483
  onSelect: u
3472
3484
  }, {
3473
- trigger: R((h) => [
3485
+ trigger: O((h) => [
3474
3486
  V(k(se), {
3475
3487
  variant: a.value,
3476
3488
  label: `${t.currentPage} / ${t.lastPage}`,
@@ -3521,8 +3533,8 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3521
3533
  function f(m) {
3522
3534
  let g;
3523
3535
  s.value === "vertical" ? g = n.placement === "top" ? m.pageY - a : a - m.pageY : g = n.placement === "left" ? m.pageX - a : a - m.pageX;
3524
- const b = c + g, x = Dr(b, n.minSize, n.maxSize);
3525
- x !== n.size && r("resize", x);
3536
+ const b = c + g, w = Dr(b, n.minSize, n.maxSize);
3537
+ w !== n.size && r("resize", w);
3526
3538
  }
3527
3539
  function h() {
3528
3540
  u.value = !1, window.removeEventListener("mouseup", h), window.removeEventListener("mousemove", f), r("resize-end");
@@ -3531,8 +3543,8 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3531
3543
  let b = n.size;
3532
3544
  if (n.placement === "left" ? m.key === "ArrowLeft" ? b = n.size - 30 : m.key === "ArrowRight" && (b = n.size + 30) : n.placement === "right" ? m.key === "ArrowLeft" ? b = n.size + 30 : m.key === "ArrowRight" && (b = n.size - 30) : n.placement === "top" ? m.key === "ArrowUp" ? b = n.size - 30 : m.key === "ArrowDown" && (b = n.size + 30) : n.placement === "bottom" && (m.key === "ArrowUp" ? b = n.size + 30 : m.key === "ArrowDown" && (b = n.size - 30)), b !== n.size) {
3533
3545
  m.preventDefault();
3534
- const x = Dr(b, n.minSize, n.maxSize);
3535
- x !== n.size && r("resize", x);
3546
+ const w = Dr(b, n.minSize, n.maxSize);
3547
+ w !== n.size && r("resize", w);
3536
3548
  }
3537
3549
  }
3538
3550
  return (m, g) => (y(), v("aside", {
@@ -3572,42 +3584,54 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3572
3584
  mainPanelBgColorClass: { default: "" },
3573
3585
  orientation: { default: "horizontal" }
3574
3586
  },
3575
- emits: ["start-panel-transition-end", "end-panel-transition-end"],
3587
+ emits: ["start-panel-resize", "start-panel-resize-end", "start-panel-resize-start", "start-panel-transition-end", "end-panel-resize", "end-panel-resize-end", "end-panel-resize-start", "end-panel-transition-end"],
3576
3588
  setup(t, { emit: e }) {
3577
3589
  const n = t, r = e, s = M(!1), i = M(n.startPanelSize), o = M(n.endPanelSize), l = M(n.startPanelSize), a = M(n.endPanelSize), c = Y(() => ({
3578
3590
  [n.orientation === "horizontal" ? "paddingLeft" : "paddingTop"]: `${l.value}px`,
3579
3591
  [n.orientation === "horizontal" ? "paddingRight" : "paddingBottom"]: `${a.value}px`
3580
- })), u = (m) => i.value = l.value = m, d = (m) => !m && r("start-panel-transition-end"), f = (m) => o.value = a.value = m, h = (m) => !m && r("end-panel-transition-end");
3581
- Oe(
3592
+ })), u = () => {
3593
+ s.value = !1, r("start-panel-resize-end");
3594
+ }, d = () => {
3595
+ s.value = !0, r("start-panel-resize-start");
3596
+ }, f = (x) => {
3597
+ i.value = l.value = x, r("start-panel-resize", x);
3598
+ }, h = (x) => !x && r("start-panel-transition-end"), p = () => {
3599
+ s.value = !1, r("end-panel-resize-end");
3600
+ }, m = () => {
3601
+ s.value = !0, r("end-panel-resize-start");
3602
+ }, g = (x) => {
3603
+ o.value = a.value = x, r("end-panel-resize", x);
3604
+ }, b = (x) => !x && r("end-panel-transition-end");
3605
+ Re(
3582
3606
  () => n.startPanelVisible,
3583
- (m) => l.value = m ? i.value : 0
3584
- ), Oe(
3607
+ (x) => l.value = x ? i.value : 0
3608
+ ), Re(
3585
3609
  () => n.endPanelVisible,
3586
- (m) => a.value = m ? o.value : 0
3587
- ), Oe(
3610
+ (x) => a.value = x ? o.value : 0
3611
+ ), Re(
3588
3612
  () => n.startPanelSize,
3589
- (m) => i.value = l.value = m
3590
- ), Oe(
3613
+ (x) => i.value = l.value = x
3614
+ ), Re(
3591
3615
  () => n.endPanelSize,
3592
- (m) => o.value = a.value = m
3616
+ (x) => o.value = a.value = x
3593
3617
  );
3594
- const p = ar();
3618
+ const w = ar();
3595
3619
  return Ve(() => {
3596
- l.value = n.startPanelVisible && p["start-panel"] ? i.value : 0, a.value = n.endPanelVisible && p["end-panel"] ? o.value : 0;
3597
- }), (m, g) => (y(), v("div", t2, [
3598
- k(p)["start-panel"] && t.startPanelVisible ? (y(), H(Ea, {
3620
+ l.value = n.startPanelVisible && w["start-panel"] ? i.value : 0, a.value = n.endPanelVisible && w["end-panel"] ? o.value : 0;
3621
+ }), (x, L) => (y(), v("div", t2, [
3622
+ k(w)["start-panel"] && t.startPanelVisible ? (y(), H(Ea, {
3599
3623
  key: 0,
3600
3624
  placement: t.orientation === "horizontal" ? "left" : "top",
3601
3625
  border: n.borders,
3602
3626
  draggable: t.startPanelDraggable,
3603
3627
  size: i.value,
3604
- onResizeStart: g[0] || (g[0] = (b) => s.value = !0),
3605
- onResize: u,
3606
- onResizeEnd: g[1] || (g[1] = (b) => s.value = !1),
3607
- onTransitioning: d
3628
+ onResizeStart: d,
3629
+ onResize: f,
3630
+ onResizeEnd: u,
3631
+ onTransitioning: h
3608
3632
  }, {
3609
- default: R(() => [
3610
- F(m.$slots, "start-panel")
3633
+ default: O(() => [
3634
+ F(x.$slots, "start-panel")
3611
3635
  ]),
3612
3636
  _: 3
3613
3637
  }, 8, ["placement", "border", "draggable", "size"])) : T("", !0),
@@ -3615,21 +3639,21 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3615
3639
  class: z(["relative z-0 h-full overflow-hidden", [n.mainPanelBgColorClass]]),
3616
3640
  style: Ce(c.value)
3617
3641
  }, [
3618
- F(m.$slots, "main")
3642
+ F(x.$slots, "main")
3619
3643
  ], 6),
3620
- k(p)["end-panel"] && t.endPanelVisible ? (y(), H(Ea, {
3644
+ k(w)["end-panel"] && t.endPanelVisible ? (y(), H(Ea, {
3621
3645
  key: 1,
3622
3646
  placement: t.orientation === "horizontal" ? "right" : "bottom",
3623
3647
  border: n.borders,
3624
3648
  draggable: t.endPanelDraggable,
3625
3649
  size: o.value,
3626
- onResizeStart: g[2] || (g[2] = (b) => s.value = !0),
3627
- onResize: f,
3628
- onResizeEnd: g[3] || (g[3] = (b) => s.value = !1),
3629
- onTransitioning: h
3650
+ onResizeStart: m,
3651
+ onResize: g,
3652
+ onResizeEnd: p,
3653
+ onTransitioning: b
3630
3654
  }, {
3631
- default: R(() => [
3632
- F(m.$slots, "end-panel")
3655
+ default: O(() => [
3656
+ F(x.$slots, "end-panel")
3633
3657
  ]),
3634
3658
  _: 3
3635
3659
  }, 8, ["placement", "border", "draggable", "size"])) : T("", !0)
@@ -3650,7 +3674,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3650
3674
  function Aa(t, e, n) {
3651
3675
  return st(t, _n(e, n));
3652
3676
  }
3653
- function On(t, e) {
3677
+ function Rn(t, e) {
3654
3678
  return typeof t == "function" ? t(e) : t;
3655
3679
  }
3656
3680
  function Ut(t) {
@@ -3669,12 +3693,12 @@ const s2 = /* @__PURE__ */ new Set(["top", "bottom"]);
3669
3693
  function St(t) {
3670
3694
  return s2.has(Ut(t)) ? "y" : "x";
3671
3695
  }
3672
- function Oc(t) {
3696
+ function Rc(t) {
3673
3697
  return Cl(St(t));
3674
3698
  }
3675
3699
  function i2(t, e, n) {
3676
3700
  n === void 0 && (n = !1);
3677
- const r = Qr(t), s = Oc(t), i = Ac(s);
3701
+ const r = Qr(t), s = Rc(t), i = Ac(s);
3678
3702
  let o = s === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3679
3703
  return e.reference[i] > e.floating[i] && (o = As(o)), [o, As(o)];
3680
3704
  }
@@ -3685,12 +3709,12 @@ function o2(t) {
3685
3709
  function To(t) {
3686
3710
  return t.replace(/start|end/g, (e) => r2[e]);
3687
3711
  }
3688
- const Oa = ["left", "right"], Ra = ["right", "left"], l2 = ["top", "bottom"], a2 = ["bottom", "top"];
3712
+ const Ra = ["left", "right"], Oa = ["right", "left"], l2 = ["top", "bottom"], a2 = ["bottom", "top"];
3689
3713
  function c2(t, e, n) {
3690
3714
  switch (t) {
3691
3715
  case "top":
3692
3716
  case "bottom":
3693
- return n ? e ? Ra : Oa : e ? Oa : Ra;
3717
+ return n ? e ? Oa : Ra : e ? Ra : Oa;
3694
3718
  case "left":
3695
3719
  case "right":
3696
3720
  return e ? l2 : a2;
@@ -3723,7 +3747,7 @@ function f2(t) {
3723
3747
  left: t
3724
3748
  };
3725
3749
  }
3726
- function Os(t) {
3750
+ function Rs(t) {
3727
3751
  const {
3728
3752
  x: e,
3729
3753
  y: n,
@@ -3746,7 +3770,7 @@ function Da(t, e, n) {
3746
3770
  reference: r,
3747
3771
  floating: s
3748
3772
  } = t;
3749
- const i = St(e), o = Oc(e), l = Ac(o), a = Ut(e), c = i === "y", u = r.x + r.width / 2 - s.width / 2, d = r.y + r.height / 2 - s.height / 2, f = r[l] / 2 - s[l] / 2;
3773
+ const i = St(e), o = Rc(e), l = Ac(o), a = Ut(e), c = i === "y", u = r.x + r.width / 2 - s.width / 2, d = r.y + r.height / 2 - s.height / 2, f = r[l] / 2 - s[l] / 2;
3750
3774
  let h;
3751
3775
  switch (a) {
3752
3776
  case "top":
@@ -3809,8 +3833,8 @@ const h2 = async (t, e, n) => {
3809
3833
  name: g,
3810
3834
  fn: b
3811
3835
  } = l[m], {
3812
- x,
3813
- y: w,
3836
+ x: w,
3837
+ y: x,
3814
3838
  data: L,
3815
3839
  reset: S
3816
3840
  } = await b({
@@ -3827,7 +3851,7 @@ const h2 = async (t, e, n) => {
3827
3851
  floating: e
3828
3852
  }
3829
3853
  });
3830
- u = x ?? u, d = w ?? d, h = {
3854
+ u = w ?? u, d = x ?? d, h = {
3831
3855
  ...h,
3832
3856
  [g]: {
3833
3857
  ...h[g],
@@ -3866,28 +3890,28 @@ async function vl(t, e) {
3866
3890
  elementContext: d = "floating",
3867
3891
  altBoundary: f = !1,
3868
3892
  padding: h = 0
3869
- } = On(e, t), p = f2(h), g = l[f ? d === "floating" ? "reference" : "floating" : d], b = Os(await i.getClippingRect({
3893
+ } = Rn(e, t), p = f2(h), g = l[f ? d === "floating" ? "reference" : "floating" : d], b = Rs(await i.getClippingRect({
3870
3894
  element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
3871
3895
  boundary: c,
3872
3896
  rootBoundary: u,
3873
3897
  strategy: a
3874
- })), x = d === "floating" ? {
3898
+ })), w = d === "floating" ? {
3875
3899
  x: r,
3876
3900
  y: s,
3877
3901
  width: o.floating.width,
3878
3902
  height: o.floating.height
3879
- } : o.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), L = await (i.isElement == null ? void 0 : i.isElement(w)) ? await (i.getScale == null ? void 0 : i.getScale(w)) || {
3903
+ } : o.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), L = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
3880
3904
  x: 1,
3881
3905
  y: 1
3882
3906
  } : {
3883
3907
  x: 1,
3884
3908
  y: 1
3885
- }, S = Os(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
3909
+ }, S = Rs(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
3886
3910
  elements: l,
3887
- rect: x,
3888
- offsetParent: w,
3911
+ rect: w,
3912
+ offsetParent: x,
3889
3913
  strategy: a
3890
- }) : x);
3914
+ }) : w);
3891
3915
  return {
3892
3916
  top: (b.top - S.top + p.top) / L.y,
3893
3917
  bottom: (S.bottom - b.bottom + p.bottom) / L.y,
@@ -3916,12 +3940,12 @@ const p2 = function(t) {
3916
3940
  fallbackAxisSideDirection: p = "none",
3917
3941
  flipAlignment: m = !0,
3918
3942
  ...g
3919
- } = On(t, e);
3943
+ } = Rn(t, e);
3920
3944
  if ((n = i.arrow) != null && n.alignmentOffset)
3921
3945
  return {};
3922
- const b = Ut(s), x = St(l), w = Ut(l) === l, L = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (w || !m ? [As(l)] : o2(l)), N = p !== "none";
3946
+ const b = Ut(s), w = St(l), x = Ut(l) === l, L = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !m ? [As(l)] : o2(l)), N = p !== "none";
3923
3947
  !f && N && S.push(...u2(l, m, p, L));
3924
- const O = [l, ...S], Z = await vl(e, g), E = [];
3948
+ const R = [l, ...S], Z = await vl(e, g), E = [];
3925
3949
  let P = ((r = i.flip) == null ? void 0 : r.overflows) || [];
3926
3950
  if (u && E.push(Z[b]), d) {
3927
3951
  const G = i2(s, o, L);
@@ -3932,10 +3956,10 @@ const p2 = function(t) {
3932
3956
  overflows: E
3933
3957
  }], !E.every((G) => G <= 0)) {
3934
3958
  var Q, _;
3935
- const G = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, be = O[G];
3936
- if (be && (!(d === "alignment" ? x !== St(be) : !1) || // We leave the current main axis only if every placement on that axis
3959
+ const G = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, be = R[G];
3960
+ if (be && (!(d === "alignment" ? w !== St(be) : !1) || // We leave the current main axis only if every placement on that axis
3937
3961
  // overflows the main axis.
3938
- P.every((q) => St(q.placement) === x ? q.overflows[0] > 0 : !0)))
3962
+ P.every((q) => St(q.placement) === w ? q.overflows[0] > 0 : !0)))
3939
3963
  return {
3940
3964
  data: {
3941
3965
  index: G,
@@ -3953,7 +3977,7 @@ const p2 = function(t) {
3953
3977
  const K = (j = P.filter((q) => {
3954
3978
  if (N) {
3955
3979
  const le = St(q.placement);
3956
- return le === x || // Create a bias to the `y` side axis due to horizontal
3980
+ return le === w || // Create a bias to the `y` side axis due to horizontal
3957
3981
  // reading directions favoring greater width.
3958
3982
  le === "y";
3959
3983
  }
@@ -3976,13 +4000,13 @@ const p2 = function(t) {
3976
4000
  return {};
3977
4001
  }
3978
4002
  };
3979
- }, Rc = /* @__PURE__ */ new Set(["left", "top"]);
4003
+ }, Oc = /* @__PURE__ */ new Set(["left", "top"]);
3980
4004
  async function m2(t, e) {
3981
4005
  const {
3982
4006
  placement: n,
3983
4007
  platform: r,
3984
4008
  elements: s
3985
- } = t, i = await (r.isRTL == null ? void 0 : r.isRTL(s.floating)), o = Ut(n), l = Qr(n), a = St(n) === "y", c = Rc.has(o) ? -1 : 1, u = i && a ? -1 : 1, d = On(e, t);
4009
+ } = t, i = await (r.isRTL == null ? void 0 : r.isRTL(s.floating)), o = Ut(n), l = Qr(n), a = St(n) === "y", c = Oc.has(o) ? -1 : 1, u = i && a ? -1 : 1, d = Rn(e, t);
3986
4010
  let {
3987
4011
  mainAxis: f,
3988
4012
  crossAxis: h,
@@ -4042,27 +4066,27 @@ const g2 = function(t) {
4042
4066
  fn: (g) => {
4043
4067
  let {
4044
4068
  x: b,
4045
- y: x
4069
+ y: w
4046
4070
  } = g;
4047
4071
  return {
4048
4072
  x: b,
4049
- y: x
4073
+ y: w
4050
4074
  };
4051
4075
  }
4052
4076
  },
4053
4077
  ...a
4054
- } = On(t, e), c = {
4078
+ } = Rn(t, e), c = {
4055
4079
  x: n,
4056
4080
  y: r
4057
4081
  }, u = await vl(e, a), d = St(Ut(s)), f = Cl(d);
4058
4082
  let h = c[f], p = c[d];
4059
4083
  if (i) {
4060
- const g = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", x = h + u[g], w = h - u[b];
4061
- h = Aa(x, h, w);
4084
+ const g = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", w = h + u[g], x = h - u[b];
4085
+ h = Aa(w, h, x);
4062
4086
  }
4063
4087
  if (o) {
4064
- const g = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", x = p + u[g], w = p - u[b];
4065
- p = Aa(x, p, w);
4088
+ const g = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", w = p + u[g], x = p - u[b];
4089
+ p = Aa(w, p, x);
4066
4090
  }
4067
4091
  const m = l.fn({
4068
4092
  ...e,
@@ -4096,12 +4120,12 @@ const g2 = function(t) {
4096
4120
  offset: l = 0,
4097
4121
  mainAxis: a = !0,
4098
4122
  crossAxis: c = !0
4099
- } = On(t, e), u = {
4123
+ } = Rn(t, e), u = {
4100
4124
  x: n,
4101
4125
  y: r
4102
4126
  }, d = St(s), f = Cl(d);
4103
4127
  let h = u[f], p = u[d];
4104
- const m = On(l, e), g = typeof m == "number" ? {
4128
+ const m = Rn(l, e), g = typeof m == "number" ? {
4105
4129
  mainAxis: m,
4106
4130
  crossAxis: 0
4107
4131
  } : {
@@ -4110,12 +4134,12 @@ const g2 = function(t) {
4110
4134
  ...m
4111
4135
  };
4112
4136
  if (a) {
4113
- const w = f === "y" ? "height" : "width", L = i.reference[f] - i.floating[w] + g.mainAxis, S = i.reference[f] + i.reference[w] - g.mainAxis;
4137
+ const x = f === "y" ? "height" : "width", L = i.reference[f] - i.floating[x] + g.mainAxis, S = i.reference[f] + i.reference[x] - g.mainAxis;
4114
4138
  h < L ? h = L : h > S && (h = S);
4115
4139
  }
4116
4140
  if (c) {
4117
- var b, x;
4118
- const w = f === "y" ? "width" : "height", L = Rc.has(Ut(s)), S = i.reference[d] - i.floating[w] + (L && ((b = o.offset) == null ? void 0 : b[d]) || 0) + (L ? 0 : g.crossAxis), N = i.reference[d] + i.reference[w] + (L ? 0 : ((x = o.offset) == null ? void 0 : x[d]) || 0) - (L ? g.crossAxis : 0);
4141
+ var b, w;
4142
+ const x = f === "y" ? "width" : "height", L = Oc.has(Ut(s)), S = i.reference[d] - i.floating[x] + (L && ((b = o.offset) == null ? void 0 : b[d]) || 0) + (L ? 0 : g.crossAxis), N = i.reference[d] + i.reference[x] + (L ? 0 : ((w = o.offset) == null ? void 0 : w[d]) || 0) - (L ? g.crossAxis : 0);
4119
4143
  p < S ? p = S : p > N && (p = N);
4120
4144
  }
4121
4145
  return {
@@ -4139,22 +4163,22 @@ const g2 = function(t) {
4139
4163
  apply: a = () => {
4140
4164
  },
4141
4165
  ...c
4142
- } = On(t, e), u = await vl(e, c), d = Ut(s), f = Qr(s), h = St(s) === "y", {
4166
+ } = Rn(t, e), u = await vl(e, c), d = Ut(s), f = Qr(s), h = St(s) === "y", {
4143
4167
  width: p,
4144
4168
  height: m
4145
4169
  } = i.floating;
4146
4170
  let g, b;
4147
4171
  d === "top" || d === "bottom" ? (g = d, b = f === (await (o.isRTL == null ? void 0 : o.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (b = d, g = f === "end" ? "top" : "bottom");
4148
- const x = m - u.top - u.bottom, w = p - u.left - u.right, L = _n(m - u[g], x), S = _n(p - u[b], w), N = !e.middlewareData.shift;
4149
- let O = L, Z = S;
4150
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (Z = w), (r = e.middlewareData.shift) != null && r.enabled.y && (O = x), N && !f) {
4172
+ const w = m - u.top - u.bottom, x = p - u.left - u.right, L = _n(m - u[g], w), S = _n(p - u[b], x), N = !e.middlewareData.shift;
4173
+ let R = L, Z = S;
4174
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (Z = x), (r = e.middlewareData.shift) != null && r.enabled.y && (R = w), N && !f) {
4151
4175
  const P = st(u.left, 0), Q = st(u.right, 0), _ = st(u.top, 0), j = st(u.bottom, 0);
4152
- h ? Z = p - 2 * (P !== 0 || Q !== 0 ? P + Q : st(u.left, u.right)) : O = m - 2 * (_ !== 0 || j !== 0 ? _ + j : st(u.top, u.bottom));
4176
+ h ? Z = p - 2 * (P !== 0 || Q !== 0 ? P + Q : st(u.left, u.right)) : R = m - 2 * (_ !== 0 || j !== 0 ? _ + j : st(u.top, u.bottom));
4153
4177
  }
4154
4178
  await a({
4155
4179
  ...e,
4156
4180
  availableWidth: Z,
4157
- availableHeight: O
4181
+ availableHeight: R
4158
4182
  });
4159
4183
  const E = await o.getDimensions(l.floating);
4160
4184
  return p !== E.width || m !== E.height ? {
@@ -4318,7 +4342,7 @@ function Ic(t) {
4318
4342
  function E2(t, e, n) {
4319
4343
  return e === void 0 && (e = !1), !n || e && n !== ot(t) ? !1 : e;
4320
4344
  }
4321
- function Rn(t, e, n, r) {
4345
+ function On(t, e, n, r) {
4322
4346
  e === void 0 && (e = !1), n === void 0 && (n = !1);
4323
4347
  const s = t.getBoundingClientRect(), i = xl(t);
4324
4348
  let o = Ht(1);
@@ -4329,11 +4353,11 @@ function Rn(t, e, n, r) {
4329
4353
  const f = ot(i), h = r && Ct(r) ? ot(r) : r;
4330
4354
  let p = f, m = Vo(p);
4331
4355
  for (; m && r && h !== p; ) {
4332
- const g = Jn(m), b = m.getBoundingClientRect(), x = vt(m), w = b.left + (m.clientLeft + parseFloat(x.paddingLeft)) * g.x, L = b.top + (m.clientTop + parseFloat(x.paddingTop)) * g.y;
4333
- a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += w, c += L, p = ot(m), m = Vo(p);
4356
+ const g = Jn(m), b = m.getBoundingClientRect(), w = vt(m), x = b.left + (m.clientLeft + parseFloat(w.paddingLeft)) * g.x, L = b.top + (m.clientTop + parseFloat(w.paddingTop)) * g.y;
4357
+ a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += x, c += L, p = ot(m), m = Vo(p);
4334
4358
  }
4335
4359
  }
4336
- return Os({
4360
+ return Rs({
4337
4361
  width: u,
4338
4362
  height: d,
4339
4363
  x: a,
@@ -4342,7 +4366,7 @@ function Rn(t, e, n, r) {
4342
4366
  }
4343
4367
  function Ei(t, e) {
4344
4368
  const n = Vi(t).scrollLeft;
4345
- return e ? e.left + n : Rn(At(t)).left + n;
4369
+ return e ? e.left + n : On(At(t)).left + n;
4346
4370
  }
4347
4371
  function Pc(t, e) {
4348
4372
  const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Ei(t, n), s = n.top + e.scrollTop;
@@ -4367,7 +4391,7 @@ function A2(t) {
4367
4391
  }, c = Ht(1);
4368
4392
  const u = Ht(0), d = Tt(r);
4369
4393
  if ((d || !d && !i) && ((ur(r) !== "body" || _r(o)) && (a = Vi(r)), Tt(r))) {
4370
- const h = Rn(r);
4394
+ const h = On(r);
4371
4395
  c = Jn(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
4372
4396
  }
4373
4397
  const f = o && !d && !i ? Pc(o, a) : Ht(0);
@@ -4378,10 +4402,10 @@ function A2(t) {
4378
4402
  y: n.y * c.y - a.scrollTop * c.y + u.y + f.y
4379
4403
  };
4380
4404
  }
4381
- function O2(t) {
4405
+ function R2(t) {
4382
4406
  return Array.from(t.getClientRects());
4383
4407
  }
4384
- function R2(t) {
4408
+ function O2(t) {
4385
4409
  const e = At(t), n = Vi(t), r = t.ownerDocument.body, s = st(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = st(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
4386
4410
  let o = -n.scrollLeft + Ei(t);
4387
4411
  const l = -n.scrollTop;
@@ -4415,7 +4439,7 @@ function D2(t, e) {
4415
4439
  }
4416
4440
  const N2 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
4417
4441
  function $2(t, e) {
4418
- const n = Rn(t, !0, e === "fixed"), r = n.top + t.clientTop, s = n.left + t.clientLeft, i = Tt(t) ? Jn(t) : Ht(1), o = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = r * i.y;
4442
+ const n = On(t, !0, e === "fixed"), r = n.top + t.clientTop, s = n.left + t.clientLeft, i = Tt(t) ? Jn(t) : Ht(1), o = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = r * i.y;
4419
4443
  return {
4420
4444
  width: o,
4421
4445
  height: l,
@@ -4428,7 +4452,7 @@ function Ia(t, e, n) {
4428
4452
  if (e === "viewport")
4429
4453
  r = D2(t, n);
4430
4454
  else if (e === "document")
4431
- r = R2(At(t));
4455
+ r = O2(At(t));
4432
4456
  else if (Ct(e))
4433
4457
  r = $2(e, n);
4434
4458
  else {
@@ -4440,7 +4464,7 @@ function Ia(t, e, n) {
4440
4464
  height: e.height
4441
4465
  };
4442
4466
  }
4443
- return Os(r);
4467
+ return Rs(r);
4444
4468
  }
4445
4469
  function zc(t, e) {
4446
4470
  const n = hn(t);
@@ -4488,7 +4512,7 @@ function z2(t) {
4488
4512
  };
4489
4513
  }
4490
4514
  function B2(t, e, n) {
4491
- const r = Tt(e), s = At(e), i = n === "fixed", o = Rn(t, !0, i, e);
4515
+ const r = Tt(e), s = At(e), i = n === "fixed", o = On(t, !0, i, e);
4492
4516
  let l = {
4493
4517
  scrollLeft: 0,
4494
4518
  scrollTop: 0
@@ -4499,7 +4523,7 @@ function B2(t, e, n) {
4499
4523
  }
4500
4524
  if (r || !r && !i)
4501
4525
  if ((ur(e) !== "body" || _r(s)) && (l = Vi(e)), r) {
4502
- const h = Rn(e, !0, i, e);
4526
+ const h = On(e, !0, i, e);
4503
4527
  a.x = h.x + e.clientLeft, a.y = h.y + e.clientTop;
4504
4528
  } else s && c();
4505
4529
  i && !r && s && c();
@@ -4561,7 +4585,7 @@ const W2 = {
4561
4585
  getClippingRect: P2,
4562
4586
  getOffsetParent: Bc,
4563
4587
  getElementRects: Z2,
4564
- getClientRects: O2,
4588
+ getClientRects: R2,
4565
4589
  getDimensions: z2,
4566
4590
  getScale: Jn,
4567
4591
  isElement: Ct,
@@ -4587,30 +4611,30 @@ function j2(t, e) {
4587
4611
  } = c;
4588
4612
  if (l || e(), !f || !h)
4589
4613
  return;
4590
- const p = as(d), m = as(s.clientWidth - (u + f)), g = as(s.clientHeight - (d + h)), b = as(u), w = {
4614
+ const p = as(d), m = as(s.clientWidth - (u + f)), g = as(s.clientHeight - (d + h)), b = as(u), x = {
4591
4615
  rootMargin: -p + "px " + -m + "px " + -g + "px " + -b + "px",
4592
4616
  threshold: st(0, _n(1, a)) || 1
4593
4617
  };
4594
4618
  let L = !0;
4595
4619
  function S(N) {
4596
- const O = N[0].intersectionRatio;
4597
- if (O !== a) {
4620
+ const R = N[0].intersectionRatio;
4621
+ if (R !== a) {
4598
4622
  if (!L)
4599
4623
  return o();
4600
- O ? o(!1, O) : r = setTimeout(() => {
4624
+ R ? o(!1, R) : r = setTimeout(() => {
4601
4625
  o(!1, 1e-7);
4602
4626
  }, 1e3);
4603
4627
  }
4604
- O === 1 && !Zc(c, t.getBoundingClientRect()) && o(), L = !1;
4628
+ R === 1 && !Zc(c, t.getBoundingClientRect()) && o(), L = !1;
4605
4629
  }
4606
4630
  try {
4607
4631
  n = new IntersectionObserver(S, {
4608
- ...w,
4632
+ ...x,
4609
4633
  // Handle <iframe>s
4610
4634
  root: s.ownerDocument
4611
4635
  });
4612
4636
  } catch {
4613
- n = new IntersectionObserver(S, w);
4637
+ n = new IntersectionObserver(S, x);
4614
4638
  }
4615
4639
  n.observe(t);
4616
4640
  }
@@ -4633,22 +4657,22 @@ function U2(t, e, n, r) {
4633
4657
  const d = c && l ? j2(c, n) : null;
4634
4658
  let f = -1, h = null;
4635
4659
  o && (h = new ResizeObserver((b) => {
4636
- let [x] = b;
4637
- x && x.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
4638
- var w;
4639
- (w = h) == null || w.observe(e);
4660
+ let [w] = b;
4661
+ w && w.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
4662
+ var x;
4663
+ (x = h) == null || x.observe(e);
4640
4664
  })), n();
4641
4665
  }), c && !a && h.observe(c), h.observe(e));
4642
- let p, m = a ? Rn(t) : null;
4666
+ let p, m = a ? On(t) : null;
4643
4667
  a && g();
4644
4668
  function g() {
4645
- const b = Rn(t);
4669
+ const b = On(t);
4646
4670
  m && !Zc(m, b) && n(), m = b, p = requestAnimationFrame(g);
4647
4671
  }
4648
4672
  return n(), () => {
4649
4673
  var b;
4650
- u.forEach((x) => {
4651
- s && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
4674
+ u.forEach((w) => {
4675
+ s && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
4652
4676
  }), d == null || d(), (b = h) == null || b.disconnect(), h = null, a && cancelAnimationFrame(p);
4653
4677
  };
4654
4678
  }
@@ -4766,36 +4790,36 @@ const Eo = /* @__PURE__ */ G2(Q2), _2 = Fc({
4766
4790
  const E = i.default && i.default({ visible: u.value });
4767
4791
  if (E && E.length > 1)
4768
4792
  return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${E.length} child nodes.`);
4769
- r.popperWidthClass ? (r.sameWidthAsElement || r.sameWidthAsTrigger) && console.warn("[Popper]: The props 'sameWidthAsElement' or 'sameWidthAsTrigger' will be ignored because the 'popperWidthClass' is set") : r.sameWidthAsElement && r.sameWidthAsTrigger && console.warn("[Popper]: The 'sameWidthAsElement' prop will be ignored because 'sameWidthAsTrigger' is set to true"), r.trigger === "manual" && r.show && x();
4793
+ r.popperWidthClass ? (r.sameWidthAsElement || r.sameWidthAsTrigger) && console.warn("[Popper]: The props 'sameWidthAsElement' or 'sameWidthAsTrigger' will be ignored because the 'popperWidthClass' is set") : r.sameWidthAsElement && r.sameWidthAsTrigger && console.warn("[Popper]: The 'sameWidthAsElement' prop will be ignored because 'sameWidthAsTrigger' is set to true"), r.trigger === "manual" && r.show && w();
4770
4794
  }), Jr(() => {
4771
- x.clear(), o && (o(), o = null);
4795
+ w.clear(), o && (o(), o = null);
4772
4796
  });
4773
4797
  const g = () => {
4774
- x.clear(), u.value && (u.value = !1, s("close"), r.closeOnClickOutside && f(), o && (o(), o = null));
4798
+ w.clear(), u.value && (u.value = !1, s("close"), r.closeOnClickOutside && f(), o && (o(), o = null));
4775
4799
  }, b = async () => {
4776
4800
  u.value || (u.value = !0, await fn(), s("open", [c.value, a.value]), o = U2(c.value, a.value, m), r.closeOnClickOutside && a.value && c.value && h([a.value, c.value]));
4777
- }, x = Eo(b, r.openDelay), w = Eo(g, r.closeDelay), L = async () => {
4778
- r.disabled || (w.clear(), x());
4801
+ }, w = Eo(b, r.openDelay), x = Eo(g, r.closeDelay), L = async () => {
4802
+ r.disabled || (x.clear(), w());
4779
4803
  }, S = async () => {
4780
- x.clear(), w();
4804
+ w.clear(), x();
4781
4805
  }, N = (E) => {
4782
4806
  r.trigger === "click" && (E.preventDefault(), E.stopPropagation(), Z());
4783
- }, O = (E) => {
4807
+ }, R = (E) => {
4784
4808
  a.value && c.value && p([a.value, c.value, ...E]);
4785
4809
  }, Z = () => u.value ? S() : L();
4786
- return Oe(
4810
+ return Re(
4787
4811
  () => r.disabled,
4788
4812
  (E) => u.value && E && g()
4789
- ), Oe(
4813
+ ), Re(
4790
4814
  () => r.show,
4791
4815
  (E) => {
4792
- r.trigger === "manual" ? E ? x() : w() : console.warn("[Popper]: The 'show' prop is only available when the 'trigger' prop is set to 'manual'");
4816
+ r.trigger === "manual" ? E ? w() : x() : console.warn("[Popper]: The 'show' prop is only available when the 'trigger' prop is set to 'manual'");
4793
4817
  }
4794
4818
  ), e({
4795
4819
  close: g,
4796
4820
  containerRef: l,
4797
4821
  open: b,
4798
- updateClickOutsideTargets: O
4822
+ updateClickOutsideTargets: R
4799
4823
  }), (E, P) => (y(), v("div", {
4800
4824
  ref_key: "containerRef",
4801
4825
  ref: l,
@@ -4878,14 +4902,14 @@ const ts = /* @__PURE__ */ gn(t4, [["render", r4]]), s4 = {
4878
4902
  onClose: u[0] || (u[0] = (d) => n("close")),
4879
4903
  onOpen: a
4880
4904
  }, {
4881
- default: R((d) => [
4905
+ default: O((d) => [
4882
4906
  F(c.$slots, "trigger", {
4883
4907
  visible: d.visible
4884
4908
  })
4885
4909
  ]),
4886
- content: R(() => [
4910
+ content: O(() => [
4887
4911
  V(k(ts), null, {
4888
- default: R(() => [
4912
+ default: O(() => [
4889
4913
  V(k(Qh), {
4890
4914
  value: t.mode === "confirmation" ? s.value : t.value,
4891
4915
  format: t.format,
@@ -4958,16 +4982,16 @@ const ts = /* @__PURE__ */ gn(t4, [["render", r4]]), s4 = {
4958
4982
  onOpen: l,
4959
4983
  onClose: o
4960
4984
  }, {
4961
- default: R((f) => [
4985
+ default: O((f) => [
4962
4986
  C("div", i4, [
4963
4987
  F(u.$slots, "trigger", {
4964
4988
  visible: f && f.visible
4965
4989
  })
4966
4990
  ])
4967
4991
  ]),
4968
- content: R(() => [
4992
+ content: O(() => [
4969
4993
  V(k(ts), null, {
4970
- default: R(() => [
4994
+ default: O(() => [
4971
4995
  C("div", {
4972
4996
  ref_key: "contentRef",
4973
4997
  ref: s,
@@ -5054,7 +5078,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5054
5078
  setup(t, { emit: e }) {
5055
5079
  const n = e;
5056
5080
  return (r, s) => (y(), v("section", f4, [
5057
- (y(!0), v(I, null, yt(t.filters, (i) => (y(), H(k(R5), {
5081
+ (y(!0), v(I, null, yt(t.filters, (i) => (y(), H(k(O5), {
5058
5082
  key: i.name,
5059
5083
  active: !!(t.selected && t.selected.name === i.name),
5060
5084
  count: i.count,
@@ -5113,31 +5137,31 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5113
5137
  },
5114
5138
  emits: ["close", "save-custom", "select"],
5115
5139
  setup(t, { expose: e, emit: n }) {
5116
- const r = t, s = n, i = ar(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(), m = M(r.resultFilters || []), g = M(r.resultFilters ? r.resultFilters[0] : null), { nextFrame: b } = yl(), x = Y(() => r.selected ? Array.isArray(r.selected) ? r.selected : [r.selected] : []), w = Y(() => l.value.every((te) => te.disabled)), L = Y(() => !a.value.length && !l.value.length), S = Y(() => a.value.length && !l.value.length), N = Y(() => {
5140
+ const r = t, s = n, i = ar(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(), m = M(r.resultFilters || []), g = M(r.resultFilters ? r.resultFilters[0] : null), { nextFrame: b } = yl(), w = Y(() => r.selected ? Array.isArray(r.selected) ? r.selected : [r.selected] : []), x = Y(() => l.value.every((te) => te.disabled)), L = Y(() => !a.value.length && !l.value.length), S = Y(() => a.value.length && !l.value.length), N = Y(() => {
5117
5141
  if (u.value) return kt.ERROR;
5118
5142
  if (r.loading) return kt.LOADING;
5119
5143
  if (S.value && !r.loading) return kt.NO_MATCH;
5120
5144
  if (L.value && !r.loading) return kt.IDLE;
5121
5145
  if (l.value.length && !r.loading) return kt.MATCH;
5122
- }), O = (te) => {
5146
+ }), R = (te) => {
5123
5147
  l.value = g.value ? te.filter(g.value.execute) : te, r.resultFilters && m.value.forEach((ee) => {
5124
5148
  ee.count = te.filter(ee.execute).length;
5125
5149
  });
5126
5150
  };
5127
- Oe(
5151
+ Re(
5128
5152
  () => r.options,
5129
5153
  (te) => {
5130
- O(te), o.value = null;
5154
+ R(te), o.value = null;
5131
5155
  }
5132
5156
  ), lr(() => {
5133
- r.filterable && r.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), O(r.options);
5157
+ r.filterable && r.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), R(r.options);
5134
5158
  });
5135
5159
  const Z = () => h.value.close(), E = () => h.value.open(), P = async () => {
5136
5160
  b(() => {
5137
5161
  p.value && b(() => p.value.update()), d.value && b(() => d.value.focus());
5138
5162
  });
5139
5163
  }, Q = () => {
5140
- r.keepOpen || (o.value = null, r.resetOnClose && (a.value = "", r.remoteMethod ? r.remoteMethod("") : O([]), g.value = r.resultFilters ? r.resultFilters[0] : null), s("close"));
5164
+ r.keepOpen || (o.value = null, r.resetOnClose && (a.value = "", r.remoteMethod ? r.remoteMethod("") : R([]), g.value = r.resultFilters ? r.resultFilters[0] : null), s("close"));
5141
5165
  }, _ = (te) => {
5142
5166
  s("select", te), r.keepOpen || Z();
5143
5167
  }, j = (te) => l.value = r.options.filter((ee) => ee.label.toLowerCase().includes(te.toLowerCase())), be = $5(async (te) => {
@@ -5158,11 +5182,11 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5158
5182
  var Ee;
5159
5183
  return oe.label === ((Ee = o.value) == null ? void 0 : Ee.label);
5160
5184
  });
5161
- w.value || (te === "next" ? (ee++, ee === l.value.length && (ee = 0)) : te === "prev" && (ee--, ee < 0 && (ee = l.value.length - 1)), o.value = l.value[ee], o.value.disabled === !0 && q(te), await fn(), o.value && K(o.value));
5185
+ x.value || (te === "next" ? (ee++, ee === l.value.length && (ee = 0)) : te === "prev" && (ee--, ee < 0 && (ee = l.value.length - 1)), o.value = l.value[ee], o.value.disabled === !0 && q(te), await fn(), o.value && K(o.value));
5162
5186
  }, le = () => {
5163
5187
  o.value ? _(o.value) : a.value.length && s("save-custom", a.value);
5164
5188
  }, Ye = (te) => {
5165
- g.value = te, O(r.options), d.value.focus();
5189
+ g.value = te, R(r.options), d.value.focus();
5166
5190
  };
5167
5191
  return e({ close: Z, focus: E }), (te, ee) => (y(), H(k(es), {
5168
5192
  ref_key: "popperRef",
@@ -5178,19 +5202,19 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5178
5202
  onClose: Q,
5179
5203
  onOpen: P
5180
5204
  }, {
5181
- default: R((oe) => [
5205
+ default: O((oe) => [
5182
5206
  F(te.$slots, "trigger", {
5183
5207
  disabled: t.disabled,
5184
5208
  visible: oe && oe.visible
5185
5209
  })
5186
5210
  ]),
5187
- content: R(() => [
5211
+ content: O(() => [
5188
5212
  V(k(ts), {
5189
5213
  ref_key: "contentRef",
5190
5214
  ref: c,
5191
5215
  class: z(["flex flex-col", { "h-72": t.fixedHeight }])
5192
5216
  }, {
5193
- default: R(() => [
5217
+ default: O(() => [
5194
5218
  t.filterable || t.remoteMethod || t.resultFilters ? (y(), v("header", p4, [
5195
5219
  t.filterable || t.remoteMethod ? (y(), v("header", m4, [
5196
5220
  V(k(ve), {
@@ -5249,12 +5273,12 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5249
5273
  C("span", M4, ce(t.emptyStateText), 1)
5250
5274
  ]),
5251
5275
  ee[6] || (ee[6] = C("div", { class: "h-8 w-full bg-primary" }, null, -1))
5252
- ])) : N.value === k(kt).MATCH ? (y(), H(k(Rs), {
5276
+ ])) : N.value === k(kt).MATCH ? (y(), H(k(Os), {
5253
5277
  key: 5,
5254
5278
  ref_key: "scrollbarRef",
5255
5279
  ref: p
5256
5280
  }, {
5257
- default: R(() => [
5281
+ default: O(() => [
5258
5282
  C("div", S4, [
5259
5283
  (y(!0), v(I, null, yt(l.value, (oe) => (y(), H(d4, {
5260
5284
  ref_for: !0,
@@ -5264,18 +5288,18 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5264
5288
  disabled: oe.disabled,
5265
5289
  label: oe.label,
5266
5290
  "hovered-option": o.value,
5267
- selected: x.value.includes(oe),
5291
+ selected: w.value.includes(oe),
5268
5292
  onFocus: xe,
5269
5293
  onHover: xe,
5270
5294
  onClick: (Ee) => _(oe)
5271
5295
  }, {
5272
- default: R(() => [
5296
+ default: O(() => [
5273
5297
  C("div", H4, [
5274
5298
  oe.icon ? (y(), H(k(ve), {
5275
5299
  key: 0,
5276
5300
  name: oe.icon
5277
5301
  }, null, 8, ["name"])) : T("", !0),
5278
- V(k(Of), {
5302
+ V(k(Rf), {
5279
5303
  "background-color": "yellow",
5280
5304
  value: oe.label,
5281
5305
  highlight: a.value
@@ -5319,7 +5343,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5319
5343
  "leave-to-class": "opacity-0",
5320
5344
  onAfterLeave: l[1] || (l[1] = (a) => r("close"))
5321
5345
  }, {
5322
- default: R(() => [
5346
+ default: O(() => [
5323
5347
  Xr(C("div", {
5324
5348
  class: z(["z-40 fixed w-screen h-screen top-0 left-0 flex items-center justify-center pointer-events-auto p-4", s.value]),
5325
5349
  style: Ce(i),
@@ -5351,7 +5375,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5351
5375
  axis: "Y",
5352
5376
  client: "clientY",
5353
5377
  direction: "top"
5354
- }, O4 = ["aria-label", "aria-valuenow"], Za = /* @__PURE__ */ $({
5378
+ }, R4 = ["aria-label", "aria-valuenow"], Za = /* @__PURE__ */ $({
5355
5379
  __name: "Bar",
5356
5380
  props: {
5357
5381
  vertical: { type: Boolean },
@@ -5364,9 +5388,9 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5364
5388
  if (!o.value) return;
5365
5389
  const b = a.value;
5366
5390
  if (!b) return;
5367
- const x = s.value.getBoundingClientRect();
5368
- if (x) {
5369
- const w = ((x[l.direction] || 0) - (g[l.client] || 0)) * -1, L = i.value && typeof i.value[l.offset] == "number" ? i.value[l.offset] - b : 0, S = s.value ? Number(s.value[l.offset]) : 0, N = S ? (w - L) * 100 / S : 0;
5391
+ const w = s.value.getBoundingClientRect();
5392
+ if (w) {
5393
+ const x = ((w[l.direction] || 0) - (g[l.client] || 0)) * -1, L = i.value && typeof i.value[l.offset] == "number" ? i.value[l.offset] - b : 0, S = s.value ? Number(s.value[l.offset]) : 0, N = S ? (x - L) * 100 / S : 0;
5370
5394
  r("update", {
5371
5395
  scrollReference: l.scroll,
5372
5396
  positionPercentage: N,
@@ -5379,16 +5403,16 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5379
5403
  g.stopImmediatePropagation(), o.value = !0, document.addEventListener("mousemove", c), document.addEventListener("mouseup", u), document.onselectstart = () => !1;
5380
5404
  }, f = (g) => {
5381
5405
  if (!(g.ctrlKey || g.button === 2) && (d(g), g.currentTarget)) {
5382
- const b = g.currentTarget[l.offset], x = g[l.client], L = g.currentTarget.getBoundingClientRect()[l.direction];
5383
- a.value = b - (x - L);
5406
+ const b = g.currentTarget[l.offset], w = g[l.client], L = g.currentTarget.getBoundingClientRect()[l.direction];
5407
+ a.value = b - (w - L);
5384
5408
  }
5385
5409
  }, h = (g) => {
5386
5410
  const b = g.target.getBoundingClientRect();
5387
5411
  if (b) {
5388
- const x = b[l.direction], w = g[l.client], L = Math.abs((x ? Number(x) : 0) - (w ? Number(w) : 0)), S = i.value[l.offset] / 2, N = s.value ? Number(s.value[l.offset]) : 0, O = N ? (L - S) * 100 / N : 0;
5412
+ const w = b[l.direction], x = g[l.client], L = Math.abs((w ? Number(w) : 0) - (x ? Number(x) : 0)), S = i.value[l.offset] / 2, N = s.value ? Number(s.value[l.offset]) : 0, R = N ? (L - S) * 100 / N : 0;
5389
5413
  r("update", {
5390
5414
  scrollReference: l.scroll,
5391
- positionPercentage: O,
5415
+ positionPercentage: R,
5392
5416
  scrollSize: l.scrollSize
5393
5417
  });
5394
5418
  }
@@ -5426,10 +5450,10 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5426
5450
  }, ["stop", "prevent"])),
5427
5451
  onMousedown: X(f, ["stop", "prevent"]),
5428
5452
  onKeydown: m
5429
- }, null, 44, O4)
5453
+ }, null, 44, R4)
5430
5454
  ], 34));
5431
5455
  }
5432
- }), Rs = /* @__PURE__ */ $({
5456
+ }), Os = /* @__PURE__ */ $({
5433
5457
  __name: "Scrollbar",
5434
5458
  props: {
5435
5459
  disableX: { type: Boolean, default: !1 },
@@ -5459,22 +5483,22 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5459
5483
  for (const Q of r.triggers)
5460
5484
  c.value < Q.px && m.value.scrollTop >= Q.px ? Q.callback(Q, "down") : c.value > Q.px && m.value.scrollTop <= Q.px && Q.callback(Q, "up");
5461
5485
  c.value = m.value.scrollTop;
5462
- }, x = () => ({
5486
+ }, w = () => ({
5463
5487
  heightPercentage: m.value.clientHeight * 100 / m.value.scrollHeight,
5464
5488
  widthPercentage: m.value.clientWidth * 100 / m.value.scrollWidth
5465
- }), w = async () => {
5489
+ }), x = async () => {
5466
5490
  if (!m.value) return;
5467
5491
  await fn();
5468
- const { heightPercentage: E, widthPercentage: P } = x();
5492
+ const { heightPercentage: E, widthPercentage: P } = w();
5469
5493
  !E && !P || (r.disableX || (h.width === 100 && P < 100 ? s("scrollXActive", !0) : P === 100 && h.width < 100 && s("scrollXActive", !1), P === 100 ? f.marginBottom = "0px" : o.value && (f.marginBottom = `-${o.value}px`), h.width = P, d.value = P < 100 ? `${P}%` : ""), r.disableY || (h.height === 100 && E < 100 ? s("scrollYActive", !0) : E === 100 && h.height < 100 && s("scrollYActive", !1), E === 100 ? f.marginRight = "0px" : o.value && (f.marginRight = `-${o.value}px`), h.height = E, u.value = E < 100 ? `${E}%` : ""), b());
5470
5494
  };
5471
5495
  Ve(async () => {
5472
- await fn(w), h.height === 100 && s("intersect", { edge: "top", hit: !0 }), r.windowResize && window.addEventListener("resize", w), r.noresize || (i = new MutationObserver(w), i.observe(g.value, {
5496
+ await fn(x), h.height === 100 && s("intersect", { edge: "top", hit: !0 }), r.windowResize && window.addEventListener("resize", x), r.noresize || (i = new MutationObserver(x), i.observe(g.value, {
5473
5497
  childList: !0,
5474
5498
  subtree: !0
5475
5499
  }));
5476
5500
  }), Kt(() => {
5477
- !r.noresize && i.disconnect(), r.windowResize && window.removeEventListener("resize", w);
5501
+ !r.noresize && i.disconnect(), r.windowResize && window.removeEventListener("resize", x);
5478
5502
  });
5479
5503
  const L = (E) => {
5480
5504
  m.value[E.scrollReference] = E.positionPercentage * m.value[E.scrollSize] / 100;
@@ -5487,7 +5511,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5487
5511
  E === "x" ? m.value.scrollLeft = m.value.scrollWidth * P / 100 : m.value.scrollTop = m.value.scrollHeight * P / 100, b();
5488
5512
  }, scrollToPercentage: (E, P) => {
5489
5513
  E === "x" ? m.value.scrollTo({ left: m.value.scrollWidth * P / 100, behavior: "smooth" }) : m.value.scrollTo({ top: m.value.scrollHeight * P / 100, behavior: "smooth" }), b();
5490
- }, update: w }), (E, P) => (y(), v("main", {
5514
+ }, update: x }), (E, P) => (y(), v("main", {
5491
5515
  class: z(["scrollbar scroll-hidden", [t.viewHeightClass, { show: t.show }]])
5492
5516
  }, [
5493
5517
  C("div", {
@@ -5503,7 +5527,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5503
5527
  ref: g,
5504
5528
  class: z(["scrollbar__view relative", [t.viewClass]])
5505
5529
  }, {
5506
- default: R(() => [
5530
+ default: O(() => [
5507
5531
  F(E.$slots, "default")
5508
5532
  ]),
5509
5533
  _: 3
@@ -5547,7 +5571,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5547
5571
  }))
5548
5572
  ], 512));
5549
5573
  }
5550
- }), qC = ["top", "bottom", "left", "right"], YC = ["up", "down", "left", "right"], R4 = {
5574
+ }), qC = ["top", "bottom", "left", "right"], YC = ["up", "down", "left", "right"], O4 = {
5551
5575
  key: 1,
5552
5576
  class: "text-xs"
5553
5577
  }, D4 = /* @__PURE__ */ $({
@@ -5570,7 +5594,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5570
5594
  key: 0,
5571
5595
  name: t.segment.icon
5572
5596
  }, null, 8, ["name"])) : T("", !0),
5573
- t.segment.label ? (y(), v("p", R4, ce(t.segment.label), 1)) : T("", !0)
5597
+ t.segment.label ? (y(), v("p", O4, ce(t.segment.label), 1)) : T("", !0)
5574
5598
  ], 2));
5575
5599
  }
5576
5600
  }), JC = /* @__PURE__ */ $({
@@ -5583,7 +5607,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5583
5607
  setup(t, { emit: e }) {
5584
5608
  const n = e, r = (s) => s.label === t.selectedSegment.label;
5585
5609
  return (s, i) => (y(), H(k(ye), { class: "gap-0.5 p-1 rounded-lg bg-secondary" }, {
5586
- default: R(() => [
5610
+ default: O(() => [
5587
5611
  (y(!0), v(I, null, yt(t.segments, (o) => (y(), H(D4, {
5588
5612
  key: o.label,
5589
5613
  segment: o,
@@ -5637,7 +5661,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5637
5661
  onMouseover: l[1] || (l[1] = (a) => n("hover", t.option)),
5638
5662
  onFocus: l[2] || (l[2] = (a) => n("focus", t.option))
5639
5663
  }, {
5640
- default: R(() => [
5664
+ default: O(() => [
5641
5665
  C("main", $4, [
5642
5666
  t.variant === "checkbox" ? (y(), H(k(Tc), {
5643
5667
  key: 0,
@@ -5652,7 +5676,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5652
5676
  "text-action": t.selected && t.variant === "single"
5653
5677
  }])
5654
5678
  }, null, 8, ["name", "class"])) : T("", !0),
5655
- V(k(Of), {
5679
+ V(k(Rf), {
5656
5680
  "background-color": "yellow",
5657
5681
  value: t.option.label,
5658
5682
  highlight: t.search,
@@ -5711,7 +5735,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5711
5735
  status: t.message,
5712
5736
  variant: "error"
5713
5737
  }, {
5714
- default: R(() => [...n[0] || (n[0] = [
5738
+ default: O(() => [...n[0] || (n[0] = [
5715
5739
  C("svg", {
5716
5740
  width: "37",
5717
5741
  height: "50",
@@ -5766,7 +5790,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5766
5790
  status: "Type to search",
5767
5791
  variant: "idle"
5768
5792
  }, {
5769
- default: R(() => [...n[0] || (n[0] = [
5793
+ default: O(() => [...n[0] || (n[0] = [
5770
5794
  C("svg", {
5771
5795
  width: "44",
5772
5796
  height: "36",
@@ -5792,7 +5816,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5792
5816
  status: "Loading",
5793
5817
  variant: "loading"
5794
5818
  }, {
5795
- default: R(() => [
5819
+ default: O(() => [
5796
5820
  V(k(Nr))
5797
5821
  ]),
5798
5822
  _: 1
@@ -5805,7 +5829,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5805
5829
  status: "No matches",
5806
5830
  variant: "no match"
5807
5831
  }, {
5808
- default: R(() => [...n[0] || (n[0] = [
5832
+ default: O(() => [...n[0] || (n[0] = [
5809
5833
  C("svg", {
5810
5834
  width: "26",
5811
5835
  height: "44",
@@ -5888,18 +5912,18 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5888
5912
  },
5889
5913
  emits: ["escape", "selectQuery", "select"],
5890
5914
  setup(t, { expose: e, emit: n }) {
5891
- const r = t, s = n, { nextFrame: i } = yl(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(r.filters ? r.filters[0] : null), m = M(!1), g = M(!1), b = M(""), x = (U) => {
5915
+ const r = t, s = n, { nextFrame: i } = yl(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(r.filters ? r.filters[0] : null), m = M(!1), g = M(!1), b = M(""), w = (U) => {
5892
5916
  if (!Array.isArray(U)) throw new Error("Item passed must be an Array");
5893
5917
  return U.length === 0 ? !1 : "options" in U[0];
5894
- }, w = Y(() => x(r.options)), L = Y(() => w.value ? r.options.flatMap((U) => U.options) : r.options), S = Y(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), N = Y(() => r.selected && "length" in r.selected), O = Y(() => r.selected ? N.value ? r.selected.length : 1 : 0), Z = Y(() => r.selected ? p.value ? r.selected.length >= L.value.filter(p.value.execute).length : N.value ? r.selected.length === L.value.length : !1 : !1), E = Y(() => r.selected ? N.value ? !r.selected.length : !r.selected : !0);
5895
- Oe(() => r.selected, (U) => {
5918
+ }, x = Y(() => w(r.options)), L = Y(() => x.value ? r.options.flatMap((U) => U.options) : r.options), S = Y(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), N = Y(() => r.selected && "length" in r.selected), R = Y(() => r.selected ? N.value ? r.selected.length : 1 : 0), Z = Y(() => r.selected ? p.value ? r.selected.length >= L.value.filter(p.value.execute).length : N.value ? r.selected.length === L.value.length : !1 : !1), E = Y(() => r.selected ? N.value ? !r.selected.length : !r.selected : !0);
5919
+ Re(() => r.selected, (U) => {
5896
5920
  U && m.value && i(() => {
5897
- if (d.value.update(), N.value && O.value) {
5921
+ if (d.value.update(), N.value && R.value) {
5898
5922
  const ue = f.value[f.value.length - 1].$el, Ne = h.value.$el.querySelector(".scrollbar__wrap");
5899
5923
  Ne && (Ec(Ne, ue), h.value.handleScroll());
5900
5924
  }
5901
5925
  });
5902
- }), Oe(() => r.options, (U) => {
5926
+ }), Re(() => r.options, (U) => {
5903
5927
  xe(U), o.value = null;
5904
5928
  }), lr(() => xe(r.options)), Ve(() => {
5905
5929
  !N.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."), i(() => {
@@ -5920,7 +5944,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5920
5944
  a.value = U, o.value = null, r.searchFunction && await r.searchFunction(U);
5921
5945
  }, be = r.searchDebounce ? Eo(G, r.searchDebounce) : G, xe = (U) => {
5922
5946
  var ue;
5923
- if (w.value) {
5947
+ if (x.value) {
5924
5948
  const Ne = U;
5925
5949
  l.value = Ne.map((vn) => {
5926
5950
  var xa;
@@ -5937,7 +5961,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5937
5961
  p.value = U, xe(r.options);
5938
5962
  }, q = () => {
5939
5963
  if (!N.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
5940
- O.value === 0 || O.value && !Z.value ? s("select", p.value ? L.value.filter(p.value.execute) : L.value) : s("select", []);
5964
+ R.value === 0 || R.value && !Z.value ? s("select", p.value ? L.value.filter(p.value.execute) : L.value) : s("select", []);
5941
5965
  }, le = (U) => o.value = L.value.find((ue) => ue[r.identifier] === U[r.identifier]) || null, Ye = Y(() => {
5942
5966
  const U = Array.isArray(l.value) && l.value.length > 0 && "options" in l.value[0] ? l.value.flatMap((ue) => ue.options) : l.value;
5943
5967
  return U.length > 0 && U.every((ue) => !!ue.disabled);
@@ -5956,7 +5980,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5956
5980
  m.value = !m.value, h.value.update();
5957
5981
  }, Ee = Y(() => m.value && g.value ? b.value : "border-transparent"), Yt = (U) => {
5958
5982
  U.hit ? U.edge === "bottom" && U.hit ? b.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : U.edge === "top" && U.hit && (b.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : b.value = "border-y-outline-subtle shadow-scroll-y";
5959
- }, Ot = (U) => {
5983
+ }, Rt = (U) => {
5960
5984
  g.value = U;
5961
5985
  };
5962
5986
  return e({
@@ -6004,7 +6028,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6004
6028
  onClick: q
6005
6029
  }, [
6006
6030
  V(k(Tc), {
6007
- indeterminate: !!(O.value && !Z.value),
6031
+ indeterminate: !!(R.value && !Z.value),
6008
6032
  checked: Z.value,
6009
6033
  onClick: q
6010
6034
  }, null, 8, ["indeterminate", "checked"]),
@@ -6015,21 +6039,21 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6015
6039
  S.value === "error" ? (y(), H(k(B4), {
6016
6040
  key: 0,
6017
6041
  message: t.errorMessage
6018
- }, null, 8, ["message"])) : S.value === "loading" ? (y(), H(k(F4), { key: 1 })) : S.value === "no match" ? (y(), H(k(W4), { key: 2 })) : S.value === "idle" ? (y(), H(k(Z4), { key: 3 })) : S.value === "match" ? (y(), H(k(Rs), {
6042
+ }, null, 8, ["message"])) : S.value === "loading" ? (y(), H(k(F4), { key: 1 })) : S.value === "no match" ? (y(), H(k(W4), { key: 2 })) : S.value === "idle" ? (y(), H(k(Z4), { key: 3 })) : S.value === "match" ? (y(), H(k(Os), {
6019
6043
  key: 4,
6020
6044
  ref_key: "scrollbarRef",
6021
6045
  ref: d,
6022
6046
  class: "flex-1",
6023
6047
  show: ""
6024
6048
  }, {
6025
- default: R(() => [
6049
+ default: O(() => [
6026
6050
  C("ul", {
6027
6051
  ref_key: "optionsRef",
6028
6052
  ref: u,
6029
6053
  class: z(["px-1", {
6030
- "py-2": t.small && w.value || !t.small && !w.value,
6031
- "py-1": t.small && !w.value,
6032
- "py-4": !t.small && w.value
6054
+ "py-2": t.small && x.value || !t.small && !x.value,
6055
+ "py-1": t.small && !x.value,
6056
+ "py-4": !t.small && x.value
6033
6057
  }])
6034
6058
  }, [
6035
6059
  F(U.$slots, "options", {
@@ -6052,22 +6076,22 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6052
6076
  size: "tiny",
6053
6077
  variant: "text",
6054
6078
  class: "-ml-4",
6055
- label: `${m.value ? "Hide" : "Show"} selected items (${O.value})`,
6079
+ label: `${m.value ? "Hide" : "Show"} selected items (${R.value})`,
6056
6080
  "trailing-icon": m.value ? "chevron-down" : "chevron-up",
6057
6081
  onClick: oe
6058
6082
  }, null, 8, ["label", "trailing-icon"])
6059
6083
  ]),
6060
- V(k(Rs), {
6084
+ V(k(Os), {
6061
6085
  ref_key: "selectionScrollbarRef",
6062
6086
  ref: h,
6063
6087
  show: "",
6064
6088
  tag: "ul",
6065
6089
  class: z(["border-y-1", Ee.value]),
6066
6090
  "view-height-class": m.value ? "flex-1 max-h-72" : "flex-none h-0",
6067
- onScrollYActive: Ot,
6091
+ onScrollYActive: Rt,
6068
6092
  onIntersect: Yt
6069
6093
  }, {
6070
- default: R(() => [
6094
+ default: O(() => [
6071
6095
  m.value ? (y(), v(I, { key: 0 }, [
6072
6096
  E.value ? (y(), v("span", G4, "Nothing selected")) : T("", !0),
6073
6097
  ue[2] || (ue[2] = C("section", { class: "w-full px-4 flex flex-wrap items-center gap-2" }, null, -1))
@@ -6128,7 +6152,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6128
6152
  onClick: a,
6129
6153
  onClose: d[0] || (d[0] = (f) => r("close"))
6130
6154
  }, {
6131
- default: R(() => [
6155
+ default: O(() => [
6132
6156
  V(hl, {
6133
6157
  "enter-active-class": "transform transition ease-in-out duration-500",
6134
6158
  "enter-from-class": t.placement === "right" ? "translate-x-full" : "-translate-x-full",
@@ -6138,7 +6162,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6138
6162
  "leave-to-class": t.placement === "right" ? "translate-x-full" : "-translate-x-full",
6139
6163
  onAfterEnter: c
6140
6164
  }, {
6141
- default: R(() => [
6165
+ default: O(() => [
6142
6166
  Xr(V(Ll, {
6143
6167
  ref_key: "panelRef",
6144
6168
  ref: o,
@@ -6149,14 +6173,14 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6149
6173
  }]]),
6150
6174
  style: { "pointer-events": "auto" }
6151
6175
  }, {
6152
- default: R(() => [
6176
+ default: O(() => [
6153
6177
  u.$slots.default ? F(u.$slots, "default", { key: 0 }) : (y(), H(k(ka), { key: 1 }, kc({
6154
- main: R(() => [
6178
+ main: O(() => [
6155
6179
  C("main", _4, [
6156
6180
  F(u.$slots, "main")
6157
6181
  ])
6158
6182
  ]),
6159
- footer: R(() => [
6183
+ footer: O(() => [
6160
6184
  C("footer", e3, [
6161
6185
  F(u.$slots, "footer")
6162
6186
  ])
@@ -6165,7 +6189,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6165
6189
  }, [
6166
6190
  t.title || u.$slots.header ? {
6167
6191
  name: "header",
6168
- fn: R(() => [
6192
+ fn: O(() => [
6169
6193
  t.title ? (y(), v("header", Q4, [
6170
6194
  C("h4", null, ce(t.title), 1),
6171
6195
  t.closeable ? (y(), H(k(se), {
@@ -6228,7 +6252,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6228
6252
  pe(X(r, ["prevent"]), ["enter"])
6229
6253
  ]
6230
6254
  }, {
6231
- default: R(() => [
6255
+ default: O(() => [
6232
6256
  C("span", {
6233
6257
  "aria-hidden": "true",
6234
6258
  class: z([[
@@ -6310,9 +6334,9 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6310
6334
  "pl-1 pr-0.5": t.deletable
6311
6335
  }])
6312
6336
  }, {
6313
- default: R(() => [
6337
+ default: O(() => [
6314
6338
  V(k(ye), { class: "gap-1" }, {
6315
- default: R(() => [
6339
+ default: O(() => [
6316
6340
  t.icon ? (y(), H(k(ve), {
6317
6341
  key: 0,
6318
6342
  name: t.icon
@@ -6334,7 +6358,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6334
6358
  _: 1
6335
6359
  }, 8, ["class"]));
6336
6360
  }
6337
- }), Fa = (t) => t != null, Oi = /* @__PURE__ */ $({
6361
+ }), Fa = (t) => t != null, Ri = /* @__PURE__ */ $({
6338
6362
  __name: "Tooltip",
6339
6363
  props: {
6340
6364
  bgColorClass: { default: "bg-black" },
@@ -6362,7 +6386,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6362
6386
  "trigger-class": n.triggerFullWidth ? "w-full flex overflow-hidden" : "inline-flex overflow-hidden",
6363
6387
  placement: n.placement
6364
6388
  }, {
6365
- content: R(() => [
6389
+ content: O(() => [
6366
6390
  n.text ? (y(), v("div", {
6367
6391
  key: 0,
6368
6392
  class: z(["z-50 min-w-0 px-2 py-1 rounded-md text-sm shadow-sm-md", [n.bgColorClass, n.textColorClass]])
@@ -6371,7 +6395,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6371
6395
  F(s.$slots, "content")
6372
6396
  ], 2)) : T("", !0)
6373
6397
  ]),
6374
- default: R(() => [
6398
+ default: O(() => [
6375
6399
  F(s.$slots, "default")
6376
6400
  ]),
6377
6401
  _: 3
@@ -6385,10 +6409,10 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6385
6409
  emits: ["delete"],
6386
6410
  setup(t, { emit: e }) {
6387
6411
  const n = e, r = () => n("delete", t.entry.id);
6388
- return (s, i) => (y(), H(k(Oi), {
6412
+ return (s, i) => (y(), H(k(Ri), {
6389
6413
  text: t.entry.error
6390
6414
  }, {
6391
- default: R(() => [
6415
+ default: O(() => [
6392
6416
  V(k(ye), {
6393
6417
  id: t.entry.id,
6394
6418
  tabindex: "1",
@@ -6398,7 +6422,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6398
6422
  }]),
6399
6423
  onKeyup: pe(r, ["delete"])
6400
6424
  }, {
6401
- default: R(() => [
6425
+ default: O(() => [
6402
6426
  C("div", i3, ce(t.entry.value), 1),
6403
6427
  C("button", {
6404
6428
  class: "group cursor-pointer w-4 h-4 rounded hover:bg-secondary active:bg-tertiary",
@@ -6429,7 +6453,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6429
6453
  }, a = (f) => {
6430
6454
  f.target && (i.value = f.target.value, (f.data === "," || i.value.includes(",")) && (o.value = [...o.value, ...c(i.value)], i.value = "", r("update:entries", o.value)));
6431
6455
  }, c = (f) => f.trim().split(",").filter((h) => h.length).map((h, p) => {
6432
- const m = h.trim(), g = [...t.validators].reduce((b, x, w, L) => (x.validate(m) || (b = x.errorMessage(m), L.splice(1)), b), null);
6456
+ const m = h.trim(), g = [...t.validators].reduce((b, w, x, L) => (w.validate(m) || (b = w.errorMessage(m), L.splice(1)), b), null);
6433
6457
  return {
6434
6458
  id: p + m + Date.now(),
6435
6459
  value: m,
@@ -6444,7 +6468,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6444
6468
  o.value = o.value.filter((p) => p.id !== f), r("update:entries", o.value), (h = s.value) == null || h.focus();
6445
6469
  };
6446
6470
  return e({ importEntries: l, inputElement: s }), (f, h) => (y(), H(k(ye), { class: "flex-1 flex-wrap gap-1 px-2 py-1" }, {
6447
- default: R(() => [
6471
+ default: O(() => [
6448
6472
  (y(!0), v(I, null, yt(o.value, (p) => (y(), H(k(o3), {
6449
6473
  key: p.id,
6450
6474
  entry: p,
@@ -6485,11 +6509,11 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6485
6509
  emits: ["click"],
6486
6510
  setup(t, { emit: e }) {
6487
6511
  const n = e;
6488
- return (r, s) => (y(), H(k(Oi), {
6512
+ return (r, s) => (y(), H(k(Ri), {
6489
6513
  text: t.tooltip,
6490
6514
  delay: 200
6491
6515
  }, {
6492
- default: R(() => [
6516
+ default: O(() => [
6493
6517
  V(k(ye), {
6494
6518
  tag: "button",
6495
6519
  inline: "",
@@ -6505,7 +6529,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6505
6529
  }]),
6506
6530
  onClick: s[0] || (s[0] = (i) => !t.disabled && n("click"))
6507
6531
  }, {
6508
- default: R(() => [
6532
+ default: O(() => [
6509
6533
  t.icon ? (y(), H(k(ve), {
6510
6534
  key: 0,
6511
6535
  name: t.icon
@@ -7188,7 +7212,7 @@ function Jc(t, e) {
7188
7212
  if (!e.type.compatibleContent(t.type))
7189
7213
  throw new Ns("Cannot join " + e.type.name + " onto " + t.type.name);
7190
7214
  }
7191
- function Oo(t, e, n) {
7215
+ function Ro(t, e, n) {
7192
7216
  let r = t.node(n);
7193
7217
  return Jc(r, e.node(n)), r;
7194
7218
  }
@@ -7207,13 +7231,13 @@ function Hn(t, e) {
7207
7231
  return t.type.checkContent(e), t.copy(e);
7208
7232
  }
7209
7233
  function Gc(t, e, n, r, s) {
7210
- let i = t.depth > s && Oo(t, e, s + 1), o = r.depth > s && Oo(n, r, s + 1), l = [];
7234
+ let i = t.depth > s && Ro(t, e, s + 1), o = r.depth > s && Ro(n, r, s + 1), l = [];
7211
7235
  return wr(null, t, s, l), i && o && e.index(s) == n.index(s) ? (Jc(i, o), Sn(Hn(i, Gc(t, e, n, r, s + 1)), l)) : (i && Sn(Hn(i, $s(t, e, s + 1)), l), wr(e, n, s, l), o && Sn(Hn(o, $s(n, r, s + 1)), l)), wr(r, null, s, l), new A(l);
7212
7236
  }
7213
7237
  function $s(t, e, n) {
7214
7238
  let r = [];
7215
7239
  if (wr(null, t, n, r), t.depth > n) {
7216
- let s = Oo(t, e, n + 1);
7240
+ let s = Ro(t, e, n + 1);
7217
7241
  Sn(Hn(s, $s(t, e, n + 1)), r);
7218
7242
  }
7219
7243
  return wr(e, null, n, r), new A(r);
@@ -7521,7 +7545,7 @@ class Is {
7521
7545
  }
7522
7546
  }
7523
7547
  const g3 = /* @__PURE__ */ Object.create(null);
7524
- let an = class Ro {
7548
+ let an = class Oo {
7525
7549
  /**
7526
7550
  @internal
7527
7551
  */
@@ -7646,14 +7670,14 @@ let an = class Ro {
7646
7670
  the given content (or empty, if no content is given).
7647
7671
  */
7648
7672
  copy(e = null) {
7649
- return e == this.content ? this : new Ro(this.type, this.attrs, e, this.marks);
7673
+ return e == this.content ? this : new Oo(this.type, this.attrs, e, this.marks);
7650
7674
  }
7651
7675
  /**
7652
7676
  Create a copy of this node, with the given set of marks instead
7653
7677
  of the node's own marks.
7654
7678
  */
7655
7679
  mark(e) {
7656
- return e == this.marks ? this : new Ro(this.type, this.attrs, this.content, e);
7680
+ return e == this.marks ? this : new Oo(this.type, this.attrs, this.content, e);
7657
7681
  }
7658
7682
  /**
7659
7683
  Create a copy of this node with only the content between the
@@ -8513,7 +8537,7 @@ class H3 {
8513
8537
  return !this.hasDefault;
8514
8538
  }
8515
8539
  }
8516
- class Ri {
8540
+ class Oi {
8517
8541
  /**
8518
8542
  @internal
8519
8543
  */
@@ -8535,7 +8559,7 @@ class Ri {
8535
8559
  */
8536
8560
  static compile(e, n) {
8537
8561
  let r = /* @__PURE__ */ Object.create(null), s = 0;
8538
- return e.forEach((i, o) => r[i] = new Ri(i, s++, n, o)), r;
8562
+ return e.forEach((i, o) => r[i] = new Oi(i, s++, n, o)), r;
8539
8563
  }
8540
8564
  /**
8541
8565
  When there is a mark of this type in the given set, a new set
@@ -8577,7 +8601,7 @@ class iu {
8577
8601
  let n = this.spec = {};
8578
8602
  for (let s in e)
8579
8603
  n[s] = e[s];
8580
- n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = Ka.compile(this.spec.nodes, this), this.marks = Ri.compile(this.spec.marks, this);
8604
+ n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = Ka.compile(this.spec.nodes, this), this.marks = Oi.compile(this.spec.marks, this);
8581
8605
  let r = /* @__PURE__ */ Object.create(null);
8582
8606
  for (let s in this.nodes) {
8583
8607
  if (s in this.marks)
@@ -8706,7 +8730,7 @@ class Ft {
8706
8730
  matchTag(e, n, r) {
8707
8731
  for (let s = r ? this.tags.indexOf(r) + 1 : 0; s < this.tags.length; s++) {
8708
8732
  let i = this.tags[s];
8709
- if (O3(e, i.tag) && (i.namespace === void 0 || e.namespaceURI == i.namespace) && (!i.context || n.matchesContext(i.context))) {
8733
+ if (R3(e, i.tag) && (i.namespace === void 0 || e.namespaceURI == i.namespace) && (!i.context || n.matchesContext(i.context))) {
8710
8734
  if (i.getAttrs) {
8711
8735
  let o = i.getAttrs(e);
8712
8736
  if (o === !1)
@@ -9139,7 +9163,7 @@ function A3(t) {
9139
9163
  r && lu.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
9140
9164
  }
9141
9165
  }
9142
- function O3(t, e) {
9166
+ function R3(t, e) {
9143
9167
  return (t.matches || t.msMatchesSelector || t.webkitMatchesSelector || t.mozMatchesSelector).call(t, e);
9144
9168
  }
9145
9169
  function Ga(t) {
@@ -9282,7 +9306,7 @@ function eo(t) {
9282
9306
  return t.document || window.document;
9283
9307
  }
9284
9308
  const _a = /* @__PURE__ */ new WeakMap();
9285
- function R3(t) {
9309
+ function O3(t) {
9286
9310
  let e = _a.get(t);
9287
9311
  return e === void 0 && _a.set(t, e = D3(t)), e;
9288
9312
  }
@@ -9312,7 +9336,7 @@ function Ls(t, e, n, r) {
9312
9336
  let s = e[0], i;
9313
9337
  if (typeof s != "string")
9314
9338
  throw new RangeError("Invalid array passed to renderSpec");
9315
- if (r && (i = R3(r)) && i.indexOf(e) > -1)
9339
+ if (r && (i = O3(r)) && i.indexOf(e) > -1)
9316
9340
  throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
9317
9341
  let o = s.indexOf(" ");
9318
9342
  o > 0 && (n = s.slice(0, o), s = s.slice(o + 1));
@@ -9635,7 +9659,7 @@ class qe {
9635
9659
  return to[e] = n, n.prototype.jsonID = e, n;
9636
9660
  }
9637
9661
  }
9638
- class Re {
9662
+ class Oe {
9639
9663
  /**
9640
9664
  @internal
9641
9665
  */
@@ -9646,13 +9670,13 @@ class Re {
9646
9670
  Create a successful step result.
9647
9671
  */
9648
9672
  static ok(e) {
9649
- return new Re(e, null);
9673
+ return new Oe(e, null);
9650
9674
  }
9651
9675
  /**
9652
9676
  Create a failed step result.
9653
9677
  */
9654
9678
  static fail(e) {
9655
- return new Re(null, e);
9679
+ return new Oe(null, e);
9656
9680
  }
9657
9681
  /**
9658
9682
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -9661,10 +9685,10 @@ class Re {
9661
9685
  */
9662
9686
  static fromReplace(e, n, r, s) {
9663
9687
  try {
9664
- return Re.ok(e.replace(n, r, s));
9688
+ return Oe.ok(e.replace(n, r, s));
9665
9689
  } catch (i) {
9666
9690
  if (i instanceof Ns)
9667
- return Re.fail(i.message);
9691
+ return Oe.fail(i.message);
9668
9692
  throw i;
9669
9693
  }
9670
9694
  }
@@ -9686,7 +9710,7 @@ class sn extends qe {
9686
9710
  }
9687
9711
  apply(e) {
9688
9712
  let n = e.slice(this.from, this.to), r = e.resolve(this.from), s = r.node(r.sharedDepth(this.to)), i = new B(Ml(n.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), s), n.openStart, n.openEnd);
9689
- return Re.fromReplace(e, this.from, this.to, i);
9713
+ return Oe.fromReplace(e, this.from, this.to, i);
9690
9714
  }
9691
9715
  invert() {
9692
9716
  return new gt(this.from, this.to, this.mark);
@@ -9725,7 +9749,7 @@ class gt extends qe {
9725
9749
  }
9726
9750
  apply(e) {
9727
9751
  let n = e.slice(this.from, this.to), r = new B(Ml(n.content, (s) => s.mark(this.mark.removeFromSet(s.marks)), e), n.openStart, n.openEnd);
9728
- return Re.fromReplace(e, this.from, this.to, r);
9752
+ return Oe.fromReplace(e, this.from, this.to, r);
9729
9753
  }
9730
9754
  invert() {
9731
9755
  return new sn(this.from, this.to, this.mark);
@@ -9765,9 +9789,9 @@ class on extends qe {
9765
9789
  apply(e) {
9766
9790
  let n = e.nodeAt(this.pos);
9767
9791
  if (!n)
9768
- return Re.fail("No node at mark step's position");
9792
+ return Oe.fail("No node at mark step's position");
9769
9793
  let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
9770
- return Re.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9794
+ return Oe.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9771
9795
  }
9772
9796
  invert(e) {
9773
9797
  let n = e.nodeAt(this.pos);
@@ -9809,9 +9833,9 @@ class Nn extends qe {
9809
9833
  apply(e) {
9810
9834
  let n = e.nodeAt(this.pos);
9811
9835
  if (!n)
9812
- return Re.fail("No node at mark step's position");
9836
+ return Oe.fail("No node at mark step's position");
9813
9837
  let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
9814
- return Re.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9838
+ return Oe.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9815
9839
  }
9816
9840
  invert(e) {
9817
9841
  let n = e.nodeAt(this.pos);
@@ -9848,7 +9872,7 @@ class Ie extends qe {
9848
9872
  super(), this.from = e, this.to = n, this.slice = r, this.structure = s;
9849
9873
  }
9850
9874
  apply(e) {
9851
- return this.structure && $o(e, this.from, this.to) ? Re.fail("Structure replace would overwrite content") : Re.fromReplace(e, this.from, this.to, this.slice);
9875
+ return this.structure && $o(e, this.from, this.to) ? Oe.fail("Structure replace would overwrite content") : Oe.fromReplace(e, this.from, this.to, this.slice);
9852
9876
  }
9853
9877
  getMap() {
9854
9878
  return new it([this.from, this.to - this.from, this.slice.size]);
@@ -9898,12 +9922,12 @@ class ze extends qe {
9898
9922
  }
9899
9923
  apply(e) {
9900
9924
  if (this.structure && ($o(e, this.from, this.gapFrom) || $o(e, this.gapTo, this.to)))
9901
- return Re.fail("Structure gap-replace would overwrite content");
9925
+ return Oe.fail("Structure gap-replace would overwrite content");
9902
9926
  let n = e.slice(this.gapFrom, this.gapTo);
9903
9927
  if (n.openStart || n.openEnd)
9904
- return Re.fail("Gap is not a flat range");
9928
+ return Oe.fail("Gap is not a flat range");
9905
9929
  let r = this.slice.insertAt(this.insert, n.content);
9906
- return r ? Re.fromReplace(e, this.from, this.to, r) : Re.fail("Content does not fit in gap");
9930
+ return r ? Oe.fromReplace(e, this.from, this.to, r) : Oe.fail("Content does not fit in gap");
9907
9931
  }
9908
9932
  getMap() {
9909
9933
  return new it([
@@ -9979,7 +10003,7 @@ function P3(t, e, n, r) {
9979
10003
  return;
9980
10004
  i++;
9981
10005
  let a = null;
9982
- if (r instanceof Ri) {
10006
+ if (r instanceof Oi) {
9983
10007
  let c = o.marks, u;
9984
10008
  for (; u = r.isInSet(c); )
9985
10009
  (a || (a = [])).push(u), c = u.removeFromSet(c);
@@ -10477,8 +10501,8 @@ function e9(t, e, n, r) {
10477
10501
  for (let m = 0; m < o.length; m++) {
10478
10502
  let g = o[(m + a) % o.length], b = !0;
10479
10503
  g < 0 && (b = !1, g = -g);
10480
- let x = s.node(g - 1), w = s.index(g - 1);
10481
- if (x.canReplaceWith(w, w, p.type, p.marks))
10504
+ let w = s.node(g - 1), x = s.index(g - 1);
10505
+ if (w.canReplaceWith(x, x, p.type, p.marks))
10482
10506
  return t.replace(s.before(g), b ? i.after(g) : n, new B(vu(r.content, 0, r.openStart, h), h, r.openEnd));
10483
10507
  }
10484
10508
  }
@@ -10540,13 +10564,13 @@ class Gn extends qe {
10540
10564
  apply(e) {
10541
10565
  let n = e.nodeAt(this.pos);
10542
10566
  if (!n)
10543
- return Re.fail("No node at attribute step's position");
10567
+ return Oe.fail("No node at attribute step's position");
10544
10568
  let r = /* @__PURE__ */ Object.create(null);
10545
10569
  for (let i in n.attrs)
10546
10570
  r[i] = n.attrs[i];
10547
10571
  r[this.attr] = this.value;
10548
10572
  let s = n.type.create(r, null, n.marks);
10549
- return Re.fromReplace(e, this.pos, this.pos + 1, new B(A.from(s), 0, n.isLeaf ? 0 : 1));
10573
+ return Oe.fromReplace(e, this.pos, this.pos + 1, new B(A.from(s), 0, n.isLeaf ? 0 : 1));
10550
10574
  }
10551
10575
  getMap() {
10552
10576
  return it.empty;
@@ -10581,7 +10605,7 @@ class Br extends qe {
10581
10605
  n[s] = e.attrs[s];
10582
10606
  n[this.attr] = this.value;
10583
10607
  let r = e.type.create(n, e.content, e.marks);
10584
- return Re.ok(r);
10608
+ return Oe.ok(r);
10585
10609
  }
10586
10610
  getMap() {
10587
10611
  return it.empty;
@@ -11826,7 +11850,7 @@ const c9 = (t, e) => {
11826
11850
  return !n.parent.type.spec.code || !n.sameParent(r) ? !1 : (e && e(t.tr.insertText(`
11827
11851
  `).scrollIntoView()), !0);
11828
11852
  };
11829
- function Ol(t) {
11853
+ function Rl(t) {
11830
11854
  for (let e = 0; e < t.edgeCount; e++) {
11831
11855
  let { type: n } = t.edge(e);
11832
11856
  if (n.isTextblock && !n.hasRequiredAttrs())
@@ -11838,7 +11862,7 @@ const f9 = (t, e) => {
11838
11862
  let { $head: n, $anchor: r } = t.selection;
11839
11863
  if (!n.parent.type.spec.code || !n.sameParent(r))
11840
11864
  return !1;
11841
- let s = n.node(-1), i = n.indexAfter(-1), o = Ol(s.contentMatchAt(i));
11865
+ let s = n.node(-1), i = n.indexAfter(-1), o = Rl(s.contentMatchAt(i));
11842
11866
  if (!o || !s.canReplaceWith(i, i, o))
11843
11867
  return !1;
11844
11868
  if (e) {
@@ -11846,11 +11870,11 @@ const f9 = (t, e) => {
11846
11870
  a.setSelection(ie.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
11847
11871
  }
11848
11872
  return !0;
11849
- }, Ou = (t, e) => {
11873
+ }, Ru = (t, e) => {
11850
11874
  let n = t.selection, { $from: r, $to: s } = n;
11851
11875
  if (n instanceof lt || r.parent.inlineContent || s.parent.inlineContent)
11852
11876
  return !1;
11853
- let i = Ol(s.parent.contentMatchAt(s.indexAfter()));
11877
+ let i = Rl(s.parent.contentMatchAt(s.indexAfter()));
11854
11878
  if (!i || !i.isTextblock)
11855
11879
  return !1;
11856
11880
  if (e) {
@@ -11858,7 +11882,7 @@ const f9 = (t, e) => {
11858
11882
  l.setSelection(ne.create(l.doc, o + 1)), e(l.scrollIntoView());
11859
11883
  }
11860
11884
  return !0;
11861
- }, Ru = (t, e) => {
11885
+ }, Ou = (t, e) => {
11862
11886
  let { $cursor: n } = t.selection;
11863
11887
  if (!n || n.parent.content.size)
11864
11888
  return !1;
@@ -11880,7 +11904,7 @@ function h9(t) {
11880
11904
  let i = [], o, l, a = !1, c = !1;
11881
11905
  for (let h = r.depth; ; h--)
11882
11906
  if (r.node(h).isBlock) {
11883
- a = r.end(h) == r.pos + (r.depth - h), c = r.start(h) == r.pos - (r.depth - h), l = Ol(r.node(h - 1).contentMatchAt(r.indexAfter(h - 1))), i.unshift(a && l ? { type: l } : null), o = h;
11907
+ a = r.end(h) == r.pos + (r.depth - h), c = r.start(h) == r.pos - (r.depth - h), l = Rl(r.node(h - 1).contentMatchAt(r.indexAfter(h - 1))), i.unshift(a && l ? { type: l } : null), o = h;
11884
11908
  break;
11885
11909
  } else {
11886
11910
  if (h == 1)
@@ -11936,10 +11960,10 @@ function Du(t, e, n, r) {
11936
11960
  if (h.canReplace(h.childCount, h.childCount, m.content)) {
11937
11961
  if (n) {
11938
11962
  let b = A.empty;
11939
- for (let w = p.length - 1; w >= 0; w--)
11940
- b = A.from(p[w].copy(b));
11941
- let x = t.tr.step(new ze(e.pos - p.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new B(b, p.length, 0), 0, !0));
11942
- n(x.scrollIntoView());
11963
+ for (let x = p.length - 1; x >= 0; x--)
11964
+ b = A.from(p[x].copy(b));
11965
+ let w = t.tr.step(new ze(e.pos - p.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new B(b, p.length, 0), 0, !0));
11966
+ n(w.scrollIntoView());
11943
11967
  }
11944
11968
  return !0;
11945
11969
  }
@@ -11994,7 +12018,7 @@ function a1(t, e = null) {
11994
12018
  return !0;
11995
12019
  };
11996
12020
  }
11997
- function Rl(...t) {
12021
+ function Ol(...t) {
11998
12022
  return function(e, n, r) {
11999
12023
  for (let s = 0; s < t.length; s++)
12000
12024
  if (t[s](e, n, r))
@@ -12002,9 +12026,9 @@ function Rl(...t) {
12002
12026
  return !1;
12003
12027
  };
12004
12028
  }
12005
- Rl(Vl, Mu, Hu);
12006
- Rl(Vl, Vu, Eu);
12007
- Rl(Au, Ou, Ru, p9);
12029
+ Ol(Vl, Mu, Hu);
12030
+ Ol(Vl, Vu, Eu);
12031
+ Ol(Au, Ru, Ou, p9);
12008
12032
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
12009
12033
  function b9(t, e = null) {
12010
12034
  return function(n, r) {
@@ -12179,13 +12203,13 @@ function kn(t, e) {
12179
12203
  let n = document.createEvent("Event");
12180
12204
  return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
12181
12205
  }
12182
- function O9(t) {
12206
+ function R9(t) {
12183
12207
  let e = t.activeElement;
12184
12208
  for (; e && e.shadowRoot; )
12185
12209
  e = e.shadowRoot.activeElement;
12186
12210
  return e;
12187
12211
  }
12188
- function R9(t, e, n) {
12212
+ function O9(t, e, n) {
12189
12213
  if (t.caretPositionFromPoint)
12190
12214
  try {
12191
12215
  let r = t.caretPositionFromPoint(e, n);
@@ -12216,7 +12240,7 @@ function N9(t) {
12216
12240
  bottom: t.documentElement.clientHeight
12217
12241
  };
12218
12242
  }
12219
- function Rt(t, e) {
12243
+ function Ot(t, e) {
12220
12244
  return typeof t == "number" ? t : t[e];
12221
12245
  }
12222
12246
  function $9(t) {
@@ -12236,7 +12260,7 @@ function d1(t, e, n) {
12236
12260
  continue;
12237
12261
  }
12238
12262
  let l = o, a = l == i.body, c = a ? N9(i) : $9(l), u = 0, d = 0;
12239
- if (e.top < c.top + Rt(r, "top") ? d = -(c.top - e.top + Rt(s, "top")) : e.bottom > c.bottom - Rt(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Rt(s, "top") - c.top : e.bottom - c.bottom + Rt(s, "bottom")), e.left < c.left + Rt(r, "left") ? u = -(c.left - e.left + Rt(s, "left")) : e.right > c.right - Rt(r, "right") && (u = e.right - c.right + Rt(s, "right")), u || d)
12263
+ if (e.top < c.top + Ot(r, "top") ? d = -(c.top - e.top + Ot(s, "top")) : e.bottom > c.bottom - Ot(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Ot(s, "top") - c.top : e.bottom - c.bottom + Ot(s, "bottom")), e.left < c.left + Ot(r, "left") ? u = -(c.left - e.left + Ot(s, "left")) : e.right > c.right - Ot(r, "right") && (u = e.right - c.right + Ot(s, "right")), u || d)
12240
12264
  if (a)
12241
12265
  i.defaultView.scrollBy(u, d);
12242
12266
  else {
@@ -12381,7 +12405,7 @@ function Fu(t, e, n) {
12381
12405
  return t;
12382
12406
  }
12383
12407
  function j9(t, e) {
12384
- let n = t.dom.ownerDocument, r, s = 0, i = R9(n, e.left, e.top);
12408
+ let n = t.dom.ownerDocument, r, s = 0, i = O9(n, e.left, e.top);
12385
12409
  i && ({ node: r, offset: s } = i);
12386
12410
  let o = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), l;
12387
12411
  if (!o || !t.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
@@ -14249,10 +14273,10 @@ function Em(t, e, n, r, s) {
14249
14273
  function Am(t, e, n, r) {
14250
14274
  return zl(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (s) => s(t, e, r));
14251
14275
  }
14252
- function Om(t, e, n, r) {
14253
- return zl(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (s) => s(t, e, r)) || Rm(t, n, r);
14276
+ function Rm(t, e, n, r) {
14277
+ return zl(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (s) => s(t, e, r)) || Om(t, n, r);
14254
14278
  }
14255
- function Rm(t, e, n) {
14279
+ function Om(t, e, n) {
14256
14280
  if (n.button != 0)
14257
14281
  return !1;
14258
14282
  let r = t.state.doc;
@@ -14280,7 +14304,7 @@ _e.mousedown = (t, e) => {
14280
14304
  let r = Bl(t), s = Date.now(), i = "singleClick";
14281
14305
  s - t.input.lastClick.time < 500 && Hm(n, t.input.lastClick) && !n[od] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? i = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i = "tripleClick")), t.input.lastClick = { time: s, x: n.clientX, y: n.clientY, type: i, button: n.button };
14282
14306
  let o = t.posAtCoords(zi(n));
14283
- o && (i == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Dm(t, o, n, !!r)) : (i == "doubleClick" ? Am : Om)(t, o.pos, o.inside, n) ? n.preventDefault() : ln(t, "pointer"));
14307
+ o && (i == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Dm(t, o, n, !!r)) : (i == "doubleClick" ? Am : Rm)(t, o.pos, o.inside, n) ? n.preventDefault() : ln(t, "pointer"));
14284
14308
  };
14285
14309
  class Dm {
14286
14310
  constructor(e, n, r, s) {
@@ -14947,11 +14971,11 @@ function jm(t, e, n, r, s, i, o) {
14947
14971
  n.maps[c].forEach((f, h, p, m) => {
14948
14972
  let g = m - p - (h - f);
14949
14973
  for (let b = 0; b < l.length; b += 3) {
14950
- let x = l[b + 1];
14951
- if (x < 0 || f > x + u - d)
14974
+ let w = l[b + 1];
14975
+ if (w < 0 || f > w + u - d)
14952
14976
  continue;
14953
- let w = l[b] + u - d;
14954
- h >= w ? l[b + 1] = f <= w ? -2 : -1 : f >= u && g && (l[b] += g, l[b + 1] += g);
14977
+ let x = l[b] + u - d;
14978
+ h >= x ? l[b + 1] = f <= x ? -2 : -1 : f >= u && g && (l[b] += g, l[b + 1] += g);
14955
14979
  }
14956
14980
  d += g;
14957
14981
  }), u = n.maps[c].map(u, -1);
@@ -15244,12 +15268,12 @@ class Jm {
15244
15268
  });
15245
15269
  }
15246
15270
  }
15247
- let O1 = /* @__PURE__ */ new WeakMap(), R1 = !1;
15271
+ let R1 = /* @__PURE__ */ new WeakMap(), O1 = !1;
15248
15272
  function Gm(t) {
15249
- if (!O1.has(t) && (O1.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
15250
- if (t.requiresGeckoHackNode = ft, R1)
15273
+ if (!R1.has(t) && (R1.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
15274
+ if (t.requiresGeckoHackNode = ft, O1)
15251
15275
  return;
15252
- console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), R1 = !0;
15276
+ console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), O1 = !0;
15253
15277
  }
15254
15278
  }
15255
15279
  function D1(t, e) {
@@ -15280,12 +15304,12 @@ function _m(t, e, n) {
15280
15304
  let { node: r, fromOffset: s, toOffset: i, from: o, to: l } = t.docView.parseRange(e, n), a = t.domSelectionRange(), c, u = a.anchorNode;
15281
15305
  if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], Ii(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), Pe && t.input.lastKeyCode === 8)
15282
15306
  for (let g = i; g > s; g--) {
15283
- let b = r.childNodes[g - 1], x = b.pmViewDesc;
15284
- if (b.nodeName == "BR" && !x) {
15307
+ let b = r.childNodes[g - 1], w = b.pmViewDesc;
15308
+ if (b.nodeName == "BR" && !w) {
15285
15309
  i = g;
15286
15310
  break;
15287
15311
  }
15288
- if (!x || x.size)
15312
+ if (!w || w.size)
15289
15313
  break;
15290
15314
  }
15291
15315
  let d = t.state.doc, f = t.someProp("domParser") || Ft.fromSchema(t.state.schema), h = d.resolve(o), p = null, m = f.parse(r, {
@@ -15323,12 +15347,12 @@ const t8 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
15323
15347
  function n8(t, e, n, r, s) {
15324
15348
  let i = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
15325
15349
  if (t.input.compositionPendingChanges = 0, e < 0) {
15326
- let O = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, Z = Nl(t, O);
15350
+ let R = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, Z = Nl(t, R);
15327
15351
  if (Z && !t.state.selection.eq(Z)) {
15328
15352
  if (Pe && zt && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (P) => P(t, kn(13, "Enter"))))
15329
15353
  return;
15330
15354
  let E = t.state.tr.setSelection(Z);
15331
- O == "pointer" ? E.setMeta("pointer", !0) : O == "key" && E.scrollIntoView(), i && E.setMeta("composition", i), t.dispatch(E);
15355
+ R == "pointer" ? E.setMeta("pointer", !0) : R == "key" && E.scrollIntoView(), i && E.setMeta("composition", i), t.dispatch(E);
15332
15356
  }
15333
15357
  return;
15334
15358
  }
@@ -15337,7 +15361,7 @@ function n8(t, e, n, r, s) {
15337
15361
  let a = t.state.selection, c = _m(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), f, h;
15338
15362
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f = t.state.selection.to, h = "end") : (f = t.state.selection.from, h = "start"), t.input.lastKeyCode = null;
15339
15363
  let p = i8(d.content, c.doc.content, c.from, f, h);
15340
- if (p && t.input.domChangeCount++, (sr && t.input.lastIOSEnter > Date.now() - 225 || zt) && s.some((O) => O.nodeType == 1 && !t8.test(O.nodeName)) && (!p || p.endA >= p.endB) && t.someProp("handleKeyDown", (O) => O(t, kn(13, "Enter")))) {
15364
+ if (p && t.input.domChangeCount++, (sr && t.input.lastIOSEnter > Date.now() - 225 || zt) && s.some((R) => R.nodeType == 1 && !t8.test(R.nodeName)) && (!p || p.endA >= p.endB) && t.someProp("handleKeyDown", (R) => R(t, kn(13, "Enter")))) {
15341
15365
  t.input.lastIOSEnter = 0;
15342
15366
  return;
15343
15367
  }
@@ -15346,51 +15370,51 @@ function n8(t, e, n, r, s) {
15346
15370
  p = { start: a.from, endA: a.to, endB: a.to };
15347
15371
  else {
15348
15372
  if (c.sel) {
15349
- let O = N1(t, t.state.doc, c.sel);
15350
- if (O && !O.eq(t.state.selection)) {
15351
- let Z = t.state.tr.setSelection(O);
15373
+ let R = N1(t, t.state.doc, c.sel);
15374
+ if (R && !R.eq(t.state.selection)) {
15375
+ let Z = t.state.tr.setSelection(R);
15352
15376
  i && Z.setMeta("composition", i), t.dispatch(Z);
15353
15377
  }
15354
15378
  }
15355
15379
  return;
15356
15380
  }
15357
15381
  t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof ne && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), nt && cn <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
15358
- let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), b = u.resolve(p.start), x = m.sameParent(g) && m.parent.inlineContent && b.end() >= p.endA;
15359
- if ((sr && t.input.lastIOSEnter > Date.now() - 225 && (!x || s.some((O) => O.nodeName == "DIV" || O.nodeName == "P")) || !x && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && m.pos < g.pos && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", ""))) && t.someProp("handleKeyDown", (O) => O(t, kn(13, "Enter")))) {
15382
+ let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), b = u.resolve(p.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= p.endA;
15383
+ if ((sr && t.input.lastIOSEnter > Date.now() - 225 && (!w || s.some((R) => R.nodeName == "DIV" || R.nodeName == "P")) || !w && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && m.pos < g.pos && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", ""))) && t.someProp("handleKeyDown", (R) => R(t, kn(13, "Enter")))) {
15360
15384
  t.input.lastIOSEnter = 0;
15361
15385
  return;
15362
15386
  }
15363
- if (t.state.selection.anchor > p.start && s8(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (O) => O(t, kn(8, "Backspace")))) {
15387
+ if (t.state.selection.anchor > p.start && s8(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (R) => R(t, kn(8, "Backspace")))) {
15364
15388
  zt && Pe && t.domObserver.suppressSelectionUpdates();
15365
15389
  return;
15366
15390
  }
15367
- Pe && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), zt && !x && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
15368
- t.someProp("handleKeyDown", function(O) {
15369
- return O(t, kn(13, "Enter"));
15391
+ Pe && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), zt && !w && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
15392
+ t.someProp("handleKeyDown", function(R) {
15393
+ return R(t, kn(13, "Enter"));
15370
15394
  });
15371
15395
  }, 20));
15372
- let w = p.start, L = p.endA, S = (O) => {
15373
- let Z = O || t.state.tr.replace(w, L, c.doc.slice(p.start - c.from, p.endB - c.from));
15396
+ let x = p.start, L = p.endA, S = (R) => {
15397
+ let Z = R || t.state.tr.replace(x, L, c.doc.slice(p.start - c.from, p.endB - c.from));
15374
15398
  if (c.sel) {
15375
15399
  let E = N1(t, Z.doc, c.sel);
15376
- E && !(Pe && t.composing && E.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (E.head == w || E.head == Z.mapping.map(L) - 1) || nt && E.empty && E.head == w) && Z.setSelection(E);
15400
+ E && !(Pe && t.composing && E.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (E.head == x || E.head == Z.mapping.map(L) - 1) || nt && E.empty && E.head == x) && Z.setSelection(E);
15377
15401
  }
15378
15402
  return i && Z.setMeta("composition", i), Z.scrollIntoView();
15379
15403
  }, N;
15380
- if (x)
15404
+ if (w)
15381
15405
  if (m.pos == g.pos) {
15382
15406
  nt && cn <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => jt(t), 20));
15383
- let O = S(t.state.tr.delete(w, L)), Z = u.resolve(p.start).marksAcross(u.resolve(p.endA));
15384
- Z && O.ensureMarks(Z), t.dispatch(O);
15407
+ let R = S(t.state.tr.delete(x, L)), Z = u.resolve(p.start).marksAcross(u.resolve(p.endA));
15408
+ Z && R.ensureMarks(Z), t.dispatch(R);
15385
15409
  } else if (
15386
15410
  // Adding or removing a mark
15387
15411
  p.endA == p.endB && (N = r8(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, p.endA - b.start())))
15388
15412
  ) {
15389
- let O = S(t.state.tr);
15390
- N.type == "add" ? O.addMark(w, L, N.mark) : O.removeMark(w, L, N.mark), t.dispatch(O);
15413
+ let R = S(t.state.tr);
15414
+ N.type == "add" ? R.addMark(x, L, N.mark) : R.removeMark(x, L, N.mark), t.dispatch(R);
15391
15415
  } else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
15392
- let O = m.parent.textBetween(m.parentOffset, g.parentOffset), Z = () => S(t.state.tr.insertText(O, w, L));
15393
- t.someProp("handleTextInput", (E) => E(t, w, L, O, Z)) || t.dispatch(Z());
15416
+ let R = m.parent.textBetween(m.parentOffset, g.parentOffset), Z = () => S(t.state.tr.insertText(R, x, L));
15417
+ t.someProp("handleTextInput", (E) => E(t, x, L, R, Z)) || t.dispatch(Z());
15394
15418
  } else
15395
15419
  t.dispatch(S());
15396
15420
  else
@@ -15792,7 +15816,7 @@ class gd {
15792
15816
  */
15793
15817
  domSelectionRange() {
15794
15818
  let e = this.domSelection();
15795
- return e ? Ke && this.root.nodeType === 11 && O9(this.dom.ownerDocument) == this.dom && Xm(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
15819
+ return e ? Ke && this.root.nodeType === 11 && R9(this.dom.ownerDocument) == this.dom && Xm(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
15796
15820
  }
15797
15821
  /**
15798
15822
  @internal
@@ -16106,8 +16130,8 @@ Wl(pt, {
16106
16130
  exitCode: () => T8,
16107
16131
  extendMarkRange: () => V8,
16108
16132
  first: () => E8,
16109
- focus: () => O8,
16110
- forEach: () => R8,
16133
+ focus: () => R8,
16134
+ forEach: () => O8,
16111
16135
  insertContent: () => D8,
16112
16136
  insertContentAt: () => I8,
16113
16137
  joinBackward: () => B8,
@@ -16136,8 +16160,8 @@ Wl(pt, {
16136
16160
  setMeta: () => V7,
16137
16161
  setNode: () => E7,
16138
16162
  setNodeSelection: () => A7,
16139
- setTextDirection: () => O7,
16140
- setTextSelection: () => R7,
16163
+ setTextDirection: () => R7,
16164
+ setTextSelection: () => O7,
16141
16165
  sinkListItem: () => D7,
16142
16166
  splitBlock: () => N7,
16143
16167
  splitListItem: () => $7,
@@ -16173,7 +16197,7 @@ var y8 = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
16173
16197
  (p || p === 0) && e.lift(h, p);
16174
16198
  });
16175
16199
  }), !0;
16176
- }, b8 = (t) => (e) => t(e), k8 = () => ({ state: t, dispatch: e }) => Ou(t, e), x8 = (t, e) => ({ editor: n, tr: r }) => {
16200
+ }, b8 = (t) => (e) => t(e), k8 = () => ({ state: t, dispatch: e }) => Ru(t, e), x8 = (t, e) => ({ editor: n, tr: r }) => {
16177
16201
  const { state: s } = n, i = s.doc.slice(t.from, t.to);
16178
16202
  r.deleteRange(t.from, t.to);
16179
16203
  const o = r.mapping.map(e);
@@ -16299,7 +16323,7 @@ function Kl() {
16299
16323
  return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || // iPad on iOS 13 detection
16300
16324
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
16301
16325
  }
16302
- var O8 = (t = null, e = {}) => ({ editor: n, view: r, tr: s, dispatch: i }) => {
16326
+ var R8 = (t = null, e = {}) => ({ editor: n, view: r, tr: s, dispatch: i }) => {
16303
16327
  e = {
16304
16328
  scrollIntoView: !0,
16305
16329
  ...e
@@ -16315,7 +16339,7 @@ var O8 = (t = null, e = {}) => ({ editor: n, view: r, tr: s, dispatch: i }) => {
16315
16339
  return o(), !0;
16316
16340
  const l = bd(s.doc, t) || n.state.selection, a = n.state.selection.eq(l);
16317
16341
  return i && (a || s.setSelection(l), a && s.storedMarks && s.setStoredMarks(s.storedMarks), o()), !0;
16318
- }, R8 = (t, e) => (n) => t.every((r, s) => e(r, { ...n, index: s })), D8 = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), kd = (t) => {
16342
+ }, O8 = (t, e) => (n) => t.every((r, s) => e(r, { ...n, index: s })), D8 = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), kd = (t) => {
16319
16343
  const e = t.childNodes;
16320
16344
  for (let n = e.length - 1; n >= 0; n -= 1) {
16321
16345
  const r = e[n];
@@ -16453,8 +16477,8 @@ var $8 = (t) => !("type" in t), I8 = (t, e, n) => ({ tr: r, dispatch: s, editor:
16453
16477
  r.insertText(m, u, d);
16454
16478
  } else {
16455
16479
  m = l;
16456
- const g = r.doc.resolve(u), b = g.node(), x = g.parentOffset === 0, w = b.isText || b.isTextblock, L = b.content.size > 0;
16457
- x && w && L && (u = Math.max(0, u - 1)), r.replaceWith(u, d, m);
16480
+ const g = r.doc.resolve(u), b = g.node(), w = g.parentOffset === 0, x = b.isText || b.isTextblock, L = b.content.size > 0;
16481
+ w && x && L && (u = Math.max(0, u - 1)), r.replaceWith(u, d, m);
16458
16482
  }
16459
16483
  n.updateSelection && N8(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: u, text: m }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: m });
16460
16484
  }
@@ -16534,7 +16558,7 @@ function mn(t, e, n = {}) {
16534
16558
  var Y8 = (t, e = {}) => ({ state: n, dispatch: r }) => {
16535
16559
  const s = De(t, n.schema);
16536
16560
  return mn(n, s, e) ? d9(n, r) : !1;
16537
- }, J8 = () => ({ state: t, dispatch: e }) => Ru(t, e), G8 = (t) => ({ state: e, dispatch: n }) => {
16561
+ }, J8 = () => ({ state: t, dispatch: e }) => Ou(t, e), G8 = (t) => ({ state: e, dispatch: n }) => {
16538
16562
  const r = De(t, e.schema);
16539
16563
  return w9(r)(e, n);
16540
16564
  }, X8 = () => ({ state: t, dispatch: e }) => Au(t, e);
@@ -16808,11 +16832,11 @@ function Hd(t, e) {
16808
16832
  options: c.options,
16809
16833
  storage: c.storage,
16810
16834
  editor: e
16811
- }, f = t.reduce((b, x) => {
16812
- const w = W(x, "extendNodeSchema", d);
16835
+ }, f = t.reduce((b, w) => {
16836
+ const x = W(w, "extendNodeSchema", d);
16813
16837
  return {
16814
16838
  ...b,
16815
- ...w ? w(c) : {}
16839
+ ...x ? x(c) : {}
16816
16840
  };
16817
16841
  }, {}), h = U1({
16818
16842
  ...f,
@@ -16851,10 +16875,10 @@ function Hd(t, e) {
16851
16875
  storage: c.storage,
16852
16876
  editor: e
16853
16877
  }, f = t.reduce((g, b) => {
16854
- const x = W(b, "extendMarkSchema", d);
16878
+ const w = W(b, "extendMarkSchema", d);
16855
16879
  return {
16856
16880
  ...g,
16857
- ...x ? x(c) : {}
16881
+ ...w ? w(c) : {}
16858
16882
  };
16859
16883
  }, {}), h = U1({
16860
16884
  ...f,
@@ -17055,12 +17079,12 @@ function Yo(t, e, n = {}) {
17055
17079
  t.doc.nodesBetween(h, p, (m, g) => {
17056
17080
  if (!m.isText && !m.marks.length)
17057
17081
  return;
17058
- const b = Math.max(h, g), x = Math.min(p, g + m.nodeSize), w = x - b;
17059
- o += w, l.push(
17082
+ const b = Math.max(h, g), w = Math.min(p, g + m.nodeSize), x = w - b;
17083
+ o += x, l.push(
17060
17084
  ...m.marks.map((L) => ({
17061
17085
  mark: L,
17062
17086
  from: b,
17063
- to: x
17087
+ to: w
17064
17088
  }))
17065
17089
  );
17066
17090
  });
@@ -17131,7 +17155,7 @@ function Ui(t, {
17131
17155
  function L7(t) {
17132
17156
  return t instanceof J;
17133
17157
  }
17134
- var Od = class Rd {
17158
+ var Rd = class Od {
17135
17159
  constructor(e) {
17136
17160
  this.position = e;
17137
17161
  }
@@ -17139,7 +17163,7 @@ var Od = class Rd {
17139
17163
  * Creates a MappablePosition from a JSON object.
17140
17164
  */
17141
17165
  static fromJSON(e) {
17142
- return new Rd(e.position);
17166
+ return new Od(e.position);
17143
17167
  }
17144
17168
  /**
17145
17169
  * Converts the MappablePosition to a JSON object.
@@ -17153,12 +17177,12 @@ var Od = class Rd {
17153
17177
  function M7(t, e) {
17154
17178
  const n = e.mapping.mapResult(t.position);
17155
17179
  return {
17156
- position: new Od(n.pos),
17180
+ position: new Rd(n.pos),
17157
17181
  mapResult: n
17158
17182
  };
17159
17183
  }
17160
17184
  function S7(t) {
17161
- return new Od(t);
17185
+ return new Rd(t);
17162
17186
  }
17163
17187
  function H7(t, e, n) {
17164
17188
  var r;
@@ -17221,7 +17245,7 @@ var T7 = (t, e = {}) => ({ tr: n, state: r, dispatch: s }) => {
17221
17245
  e.setSelection(i);
17222
17246
  }
17223
17247
  return !0;
17224
- }, O7 = (t, e) => ({ tr: n, state: r, dispatch: s }) => {
17248
+ }, R7 = (t, e) => ({ tr: n, state: r, dispatch: s }) => {
17225
17249
  const { selection: i } = r;
17226
17250
  let o, l;
17227
17251
  return typeof e == "number" ? (o = e, l = e) : e && "from" in e && "to" in e ? (o = e.from, l = e.to) : (o = i.from, l = i.to), s && n.doc.nodesBetween(o, l, (a, c) => {
@@ -17230,7 +17254,7 @@ var T7 = (t, e = {}) => ({ tr: n, state: r, dispatch: s }) => {
17230
17254
  dir: t
17231
17255
  });
17232
17256
  }), !0;
17233
- }, R7 = (t) => ({ tr: e, dispatch: n }) => {
17257
+ }, O7 = (t) => ({ tr: e, dispatch: n }) => {
17234
17258
  if (n) {
17235
17259
  const { doc: r } = e, { from: s, to: i } = typeof t == "number" ? { from: t, to: t } : t, o = ne.atStart(r).from, l = ne.atEnd(r).to, a = Ln(s, o, l), c = Ln(i, o, l), u = ne.create(r, a, c);
17236
17260
  e.setSelection(u);
@@ -17287,10 +17311,10 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17287
17311
  return !1;
17288
17312
  if (s) {
17289
17313
  let b = A.empty;
17290
- const x = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
17291
- for (let Z = a.depth - x; Z >= a.depth - 3; Z -= 1)
17314
+ const w = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
17315
+ for (let Z = a.depth - w; Z >= a.depth - 3; Z -= 1)
17292
17316
  b = A.from(a.node(Z).copy(b));
17293
- const w = (
17317
+ const x = (
17294
17318
  // eslint-disable-next-line no-nested-ternary
17295
17319
  a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3
17296
17320
  ), L = {
@@ -17298,14 +17322,14 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17298
17322
  ...e
17299
17323
  }, S = ((o = l.contentMatch.defaultType) == null ? void 0 : o.createAndFill(L)) || void 0;
17300
17324
  b = b.append(A.from(l.createAndFill(null, S) || void 0));
17301
- const N = a.before(a.depth - (x - 1));
17302
- n.replace(N, a.after(-w), new B(b, 4 - x, 0));
17303
- let O = -1;
17325
+ const N = a.before(a.depth - (w - 1));
17326
+ n.replace(N, a.after(-x), new B(b, 4 - w, 0));
17327
+ let R = -1;
17304
17328
  n.doc.nodesBetween(N, n.doc.content.size, (Z, E) => {
17305
- if (O > -1)
17329
+ if (R > -1)
17306
17330
  return !1;
17307
- Z.isTextblock && Z.content.size === 0 && (O = E + 1);
17308
- }), O > -1 && n.setSelection(ne.near(n.doc.resolve(O))), n.scrollIntoView();
17331
+ Z.isTextblock && Z.content.size === 0 && (R = E + 1);
17332
+ }), R > -1 && n.setSelection(ne.near(n.doc.resolve(R))), n.scrollIntoView();
17309
17333
  }
17310
17334
  return !0;
17311
17335
  }
@@ -17324,10 +17348,10 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17324
17348
  if (!Wt(n.doc, a.pos, 2))
17325
17349
  return !1;
17326
17350
  if (s) {
17327
- const { selection: b, storedMarks: x } = r, { splittableMarks: w } = i.extensionManager, L = x || b.$to.parentOffset && b.$from.marks();
17351
+ const { selection: b, storedMarks: w } = r, { splittableMarks: x } = i.extensionManager, L = w || b.$to.parentOffset && b.$from.marks();
17328
17352
  if (n.split(a.pos, 2, g).scrollIntoView(), !L || !s)
17329
17353
  return !0;
17330
- const S = L.filter((N) => w.includes(N.type.name));
17354
+ const S = L.filter((N) => x.includes(N.type.name));
17331
17355
  n.ensureMarks(S);
17332
17356
  }
17333
17357
  return !0;
@@ -17350,19 +17374,19 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17350
17374
  const s = t.doc.nodeAt(r);
17351
17375
  return n.node.type === (s == null ? void 0 : s.type) && yn(t.doc, r) && t.join(r), !0;
17352
17376
  }, I7 = (t, e, n, r = {}) => ({ editor: s, tr: i, state: o, dispatch: l, chain: a, commands: c, can: u }) => {
17353
- const { extensions: d, splittableMarks: f } = s.extensionManager, h = De(t, o.schema), p = De(e, o.schema), { selection: m, storedMarks: g } = o, { $from: b, $to: x } = m, w = b.blockRange(x), L = g || m.$to.parentOffset && m.$from.marks();
17354
- if (!w)
17377
+ const { extensions: d, splittableMarks: f } = s.extensionManager, h = De(t, o.schema), p = De(e, o.schema), { selection: m, storedMarks: g } = o, { $from: b, $to: w } = m, x = b.blockRange(w), L = g || m.$to.parentOffset && m.$from.marks();
17378
+ if (!x)
17355
17379
  return !1;
17356
17380
  const S = Wi((N) => Y1(N.type.name, d))(m);
17357
- if (w.depth >= 1 && S && w.depth - S.depth <= 1) {
17381
+ if (x.depth >= 1 && S && x.depth - S.depth <= 1) {
17358
17382
  if (S.node.type === h)
17359
17383
  return c.liftListItem(p);
17360
17384
  if (Y1(S.node.type.name, d) && h.validContent(S.node.content) && l)
17361
17385
  return a().command(() => (i.setNodeMarkup(S.pos, h), !0)).command(() => go(i, h)).command(() => yo(i, h)).run();
17362
17386
  }
17363
17387
  return !n || !L || !l ? a().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => go(i, h)).command(() => yo(i, h)).run() : a().command(() => {
17364
- const N = u().wrapInList(h, r), O = L.filter((Z) => f.includes(Z.type.name));
17365
- return i.ensureMarks(O), N ? !0 : c.clearNodes();
17388
+ const N = u().wrapInList(h, r), R = L.filter((Z) => f.includes(Z.type.name));
17389
+ return i.ensureMarks(R), N ? !0 : c.clearNodes();
17366
17390
  }).wrapInList(h, r).command(() => go(i, h)).command(() => yo(i, h)).run();
17367
17391
  }, P7 = (t, e = {}, n = {}) => ({ state: r, commands: s }) => {
17368
17392
  const { extendEmptyMarkRange: i = !1 } = n, o = qt(t, r.schema);
@@ -17441,14 +17465,14 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17441
17465
  b < u && i && i === g.type && (a = !0, p = Math.max(b, u), m = Math.min(b + g.nodeSize, d), f = b, h = g), b >= u && b <= d && (i && i === g.type && (a = !0, s && n.setNodeMarkup(b, void 0, {
17442
17466
  ...g.attrs,
17443
17467
  ...e
17444
- })), o && g.marks.length && g.marks.forEach((x) => {
17445
- if (o === x.type && (a = !0, s)) {
17446
- const w = Math.max(b, u), L = Math.min(b + g.nodeSize, d);
17468
+ })), o && g.marks.length && g.marks.forEach((w) => {
17469
+ if (o === w.type && (a = !0, s)) {
17470
+ const x = Math.max(b, u), L = Math.min(b + g.nodeSize, d);
17447
17471
  n.addMark(
17448
- w,
17472
+ x,
17449
17473
  L,
17450
17474
  o.create({
17451
- ...x.attrs,
17475
+ ...w.attrs,
17452
17476
  ...e
17453
17477
  })
17454
17478
  );
@@ -17537,7 +17561,7 @@ function hs(t) {
17537
17561
  }), g = {
17538
17562
  from: r - (h[0].length - i.length),
17539
17563
  to: s
17540
- }, { commands: b, chain: x, can: w } = new Zi({
17564
+ }, { commands: b, chain: w, can: x } = new Zi({
17541
17565
  editor: n,
17542
17566
  state: m
17543
17567
  });
@@ -17546,8 +17570,8 @@ function hs(t) {
17546
17570
  range: g,
17547
17571
  match: h,
17548
17572
  commands: b,
17549
- chain: x,
17550
- can: w
17573
+ chain: w,
17574
+ can: x
17551
17575
  }) === null || !p.steps.length || (f.undoable && p.setMeta(l, {
17552
17576
  transform: p,
17553
17577
  from: r,
@@ -17732,14 +17756,14 @@ function t6(t) {
17732
17756
  state: n
17733
17757
  }), d = [];
17734
17758
  return n.doc.nodesBetween(r, s, (h, p) => {
17735
- var m, g, b, x, w;
17759
+ var m, g, b, w, x;
17736
17760
  if ((g = (m = h.type) == null ? void 0 : m.spec) != null && g.code || !(h.isText || h.isTextblock || h.isInline))
17737
17761
  return;
17738
- const L = (w = (x = (b = h.content) == null ? void 0 : b.size) != null ? x : h.nodeSize) != null ? w : 0, S = Math.max(r, p), N = Math.min(s, p + L);
17762
+ const L = (x = (w = (b = h.content) == null ? void 0 : b.size) != null ? w : h.nodeSize) != null ? x : 0, S = Math.max(r, p), N = Math.min(s, p + L);
17739
17763
  if (S >= N)
17740
17764
  return;
17741
- const O = h.isText ? h.text || "" : h.textBetween(S - p, N - p, void 0, "");
17742
- e6(O, i.find, o).forEach((E) => {
17765
+ const R = h.isText ? h.text || "" : h.textBetween(S - p, N - p, void 0, "");
17766
+ e6(R, i.find, o).forEach((E) => {
17743
17767
  if (E.index === void 0)
17744
17768
  return;
17745
17769
  const P = S + E.index + 1, Q = P + E[0].length, _ = {
@@ -17837,27 +17861,27 @@ function r6(t) {
17837
17861
  }
17838
17862
  },
17839
17863
  appendTransaction: (d, f, h) => {
17840
- const p = d[0], m = p.getMeta("uiEvent") === "paste" && !s, g = p.getMeta("uiEvent") === "drop" && !i, b = p.getMeta("applyPasteRules"), x = !!b;
17841
- if (!m && !g && !x)
17864
+ const p = d[0], m = p.getMeta("uiEvent") === "paste" && !s, g = p.getMeta("uiEvent") === "drop" && !i, b = p.getMeta("applyPasteRules"), w = !!b;
17865
+ if (!m && !g && !w)
17842
17866
  return;
17843
- if (x) {
17867
+ if (w) {
17844
17868
  let { text: S } = b;
17845
17869
  typeof S == "string" ? S = S : S = ql(A.from(S), h.schema);
17846
- const { from: N } = b, O = N + S.length, Z = n6(S);
17870
+ const { from: N } = b, R = N + S.length, Z = n6(S);
17847
17871
  return a({
17848
17872
  rule: u,
17849
17873
  state: h,
17850
17874
  from: N,
17851
- to: { b: O },
17875
+ to: { b: R },
17852
17876
  pasteEvt: Z
17853
17877
  });
17854
17878
  }
17855
- const w = f.doc.content.findDiffStart(h.doc.content), L = f.doc.content.findDiffEnd(h.doc.content);
17856
- if (!(!Q7(w) || !L || w === L.b))
17879
+ const x = f.doc.content.findDiffStart(h.doc.content), L = f.doc.content.findDiffEnd(h.doc.content);
17880
+ if (!(!Q7(x) || !L || x === L.b))
17857
17881
  return a({
17858
17882
  rule: u,
17859
17883
  state: h,
17860
- from: w,
17884
+ from: x,
17861
17885
  to: L,
17862
17886
  pasteEvt: o
17863
17887
  });
@@ -18149,19 +18173,19 @@ var Me = class $d extends Xl {
18149
18173
  u.steps.forEach((h, p) => {
18150
18174
  var m, g;
18151
18175
  if (h instanceof gt) {
18152
- const b = f.slice(p).map(h.from, -1), x = f.slice(p).map(h.to), w = f.invert().map(b, -1), L = f.invert().map(x), S = (m = u.doc.nodeAt(b - 1)) == null ? void 0 : m.marks.some((O) => O.eq(h.mark)), N = (g = u.doc.nodeAt(x)) == null ? void 0 : g.marks.some((O) => O.eq(h.mark));
18176
+ const b = f.slice(p).map(h.from, -1), w = f.slice(p).map(h.to), x = f.invert().map(b, -1), L = f.invert().map(w), S = (m = u.doc.nodeAt(b - 1)) == null ? void 0 : m.marks.some((R) => R.eq(h.mark)), N = (g = u.doc.nodeAt(w)) == null ? void 0 : g.marks.some((R) => R.eq(h.mark));
18153
18177
  this.editor.emit("delete", {
18154
18178
  type: "mark",
18155
18179
  mark: h.mark,
18156
18180
  from: h.from,
18157
18181
  to: h.to,
18158
18182
  deletedRange: {
18159
- from: w,
18183
+ from: x,
18160
18184
  to: L
18161
18185
  },
18162
18186
  newRange: {
18163
18187
  from: b,
18164
- to: x
18188
+ to: w
18165
18189
  },
18166
18190
  partial: !!(N || S),
18167
18191
  editor: this.editor,
@@ -19428,7 +19452,7 @@ function p6(t) {
19428
19452
  if (!p)
19429
19453
  return;
19430
19454
  const m = p[1] || "", g = r(m);
19431
- if (!o.find((x) => !(x in g)))
19455
+ if (!o.find((w) => !(w in g)))
19432
19456
  return {
19433
19457
  type: e,
19434
19458
  raw: p[0],
@@ -19483,13 +19507,13 @@ function m6(t) {
19483
19507
  const m = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), g = d.match(m);
19484
19508
  if (!g)
19485
19509
  return;
19486
- const [b, x = ""] = g, w = s(x);
19510
+ const [b, w = ""] = g, x = s(w);
19487
19511
  let L = 1;
19488
19512
  const S = b.length;
19489
19513
  let N = "";
19490
- const O = /^:::([\w-]*)(\s.*)?/gm, Z = d.slice(S);
19491
- for (O.lastIndex = 0; ; ) {
19492
- const E = O.exec(Z);
19514
+ const R = /^:::([\w-]*)(\s.*)?/gm, Z = d.slice(S);
19515
+ for (R.lastIndex = 0; ; ) {
19516
+ const E = R.exec(Z);
19493
19517
  if (E === null)
19494
19518
  break;
19495
19519
  const P = E.index, Q = E[1];
@@ -19517,7 +19541,7 @@ function m6(t) {
19517
19541
  return {
19518
19542
  type: e,
19519
19543
  raw: j,
19520
- attributes: w,
19544
+ attributes: x,
19521
19545
  content: N,
19522
19546
  tokens: G
19523
19547
  };
@@ -19595,20 +19619,20 @@ function C6(t) {
19595
19619
  const m = l ? new RegExp(`^\\[${d}\\s*([^\\]]*)\\]`) : new RegExp(`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`), g = f.match(m);
19596
19620
  if (!g)
19597
19621
  return;
19598
- let b = "", x = "";
19622
+ let b = "", w = "";
19599
19623
  if (l) {
19600
19624
  const [, L] = g;
19601
- x = L;
19625
+ w = L;
19602
19626
  } else {
19603
19627
  const [, L, S] = g;
19604
- x = L, b = S || "";
19628
+ w = L, b = S || "";
19605
19629
  }
19606
- const w = s(x.trim());
19630
+ const x = s(w.trim());
19607
19631
  return {
19608
19632
  type: e,
19609
19633
  raw: g[0],
19610
19634
  content: b.trim(),
19611
- attributes: w
19635
+ attributes: x
19612
19636
  };
19613
19637
  }
19614
19638
  },
@@ -19645,10 +19669,10 @@ function Jo(t, e, n) {
19645
19669
  for (u += 1; u < l.length; ) {
19646
19670
  const S = l[u];
19647
19671
  if (S.trim() === "") {
19648
- const O = l.slice(u + 1).findIndex((P) => P.trim() !== "");
19649
- if (O === -1)
19672
+ const R = l.slice(u + 1).findIndex((P) => P.trim() !== "");
19673
+ if (R === -1)
19650
19674
  break;
19651
- if ((((s = (r = l[u + 1 + O].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : s.length) || 0) > m) {
19675
+ if ((((s = (r = l[u + 1 + R].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : s.length) || 0) > m) {
19652
19676
  b.push(S), c = `${c}${S}
19653
19677
  `, u += 1;
19654
19678
  continue;
@@ -19661,14 +19685,14 @@ function Jo(t, e, n) {
19661
19685
  else
19662
19686
  break;
19663
19687
  }
19664
- let x;
19665
- const w = b.slice(1);
19666
- if (w.length > 0) {
19667
- const S = w.map((N) => N.slice(m + d)).join(`
19688
+ let w;
19689
+ const x = b.slice(1);
19690
+ if (x.length > 0) {
19691
+ const S = x.map((N) => N.slice(m + d)).join(`
19668
19692
  `);
19669
- S.trim() && (e.customNestedParser ? x = e.customNestedParser(S) : x = n.blockTokens(S));
19693
+ S.trim() && (e.customNestedParser ? w = e.customNestedParser(S) : w = n.blockTokens(S));
19670
19694
  }
19671
- const L = e.createToken(p, x);
19695
+ const L = e.createToken(p, w);
19672
19696
  a.push(L);
19673
19697
  }
19674
19698
  if (a.length !== 0)
@@ -19865,20 +19889,20 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
19865
19889
  },
19866
19890
  emits: ["cancel", "inserted", "updateTargets"],
19867
19891
  setup(t, { emit: e }) {
19868
- const n = t, r = e, s = M(), i = M(), o = M(""), l = (w) => o.value = w, a = () => {
19869
- var w;
19870
- h.value ? x() : (w = u.value) == null || w.focus();
19871
- }, c = M(""), u = M(), d = (w) => c.value = w, f = () => {
19872
- h.value && x();
19892
+ const n = t, r = e, s = M(), i = M(), o = M(""), l = (x) => o.value = x, a = () => {
19893
+ var x;
19894
+ h.value ? w() : (x = u.value) == null || x.focus();
19895
+ }, c = M(""), u = M(), d = (x) => c.value = x, f = () => {
19896
+ h.value && w();
19873
19897
  }, h = Y(() => {
19874
- var w, L;
19875
- return !c.value || !o.value ? !1 : ((w = c.value) == null ? void 0 : w.trim().length) > 0 && ((L = o.value) == null ? void 0 : L.trim().length) > 0;
19876
- }), p = M(!1), m = ([w, L]) => {
19898
+ var x, L;
19899
+ return !c.value || !o.value ? !1 : ((x = c.value) == null ? void 0 : x.trim().length) > 0 && ((L = o.value) == null ? void 0 : L.trim().length) > 0;
19900
+ }), p = M(!1), m = ([x, L]) => {
19877
19901
  var Q, _;
19878
- const { state: S, view: N } = n.editor, { empty: O, from: Z } = S.selection, P = S.doc.resolve(Z).marks().find((j) => j.type.name === "link");
19902
+ const { state: S, view: N } = n.editor, { empty: R, from: Z } = S.selection, P = S.doc.resolve(Z).marks().find((j) => j.type.name === "link");
19879
19903
  if (P)
19880
19904
  c.value = P.attrs.href;
19881
- else if (O)
19905
+ else if (R)
19882
19906
  o.value = b6(n.editor) || "", p.value = !0;
19883
19907
  else {
19884
19908
  const { from: j, to: G } = N.state.selection;
@@ -19887,8 +19911,8 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
19887
19911
  o.value.trim().length ? (Q = u.value) == null || Q.focus() : (_ = i.value) == null || _.focus(), r("updateTargets", [L]);
19888
19912
  }, g = () => r("updateTargets", []), b = () => {
19889
19913
  c.value = "", o.value = "";
19890
- }, x = () => {
19891
- var w;
19914
+ }, w = () => {
19915
+ var x;
19892
19916
  if (c.value && !c.value.includes("http") && (c.value = `https://${c.value}`), c.value) {
19893
19917
  if (n.editor.chain().focus().extendMarkRange("link").setLink({ href: c.value }).run(), p.value)
19894
19918
  x6(n.editor, o.value);
@@ -19898,9 +19922,9 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
19898
19922
  }
19899
19923
  r("inserted");
19900
19924
  }
19901
- (w = s.value) == null || w.close(), b();
19925
+ (x = s.value) == null || x.close(), b();
19902
19926
  };
19903
- return (w, L) => (y(), H(k(es), {
19927
+ return (x, L) => (y(), H(k(es), {
19904
19928
  ref_key: "popperRef",
19905
19929
  ref: s,
19906
19930
  placement: "top",
@@ -19908,15 +19932,15 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
19908
19932
  onOpen: m,
19909
19933
  onClose: g
19910
19934
  }, {
19911
- default: R(({ visible: S }) => [
19935
+ default: O(({ visible: S }) => [
19912
19936
  V(Je, {
19913
19937
  icon: "link",
19914
19938
  active: S
19915
19939
  }, null, 8, ["active"])
19916
19940
  ]),
19917
- content: R(({ close: S }) => [
19941
+ content: O(({ close: S }) => [
19918
19942
  V(k(ts), { class: "p-4 flex flex-col gap-4" }, {
19919
- default: R(() => [
19943
+ default: O(() => [
19920
19944
  L[2] || (L[2] = C("p", { class: "text-sm" }, " Insert link ", -1)),
19921
19945
  C("section", L6, [
19922
19946
  L[0] || (L[0] = C("div", {
@@ -19951,7 +19975,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
19951
19975
  order: "confirm-last",
19952
19976
  "confirm-label": "Insert",
19953
19977
  "confirm-disabled": !h.value,
19954
- onConfirm: x,
19978
+ onConfirm: w,
19955
19979
  onCancel: (N) => {
19956
19980
  b(), S();
19957
19981
  }
@@ -20001,7 +20025,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
20001
20025
  setup(t) {
20002
20026
  return (e, n) => (y(), H(Gr, { to: "#modals" }, [
20003
20027
  V(k(ts), { class: "w-96" }, {
20004
- default: R(() => [
20028
+ default: O(() => [
20005
20029
  C("div", S6, [
20006
20030
  F(e.$slots, "default")
20007
20031
  ])
@@ -20039,7 +20063,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
20039
20063
  }
20040
20064
  };
20041
20065
  return (d, f) => (y(), H(Jd, null, {
20042
- default: R(() => [
20066
+ default: O(() => [
20043
20067
  f[3] || (f[3] = C("header", null, "Insert link", -1)),
20044
20068
  C("section", H6, [
20045
20069
  f[1] || (f[1] = C("div", { class: "text-xs text-secondary" }, " Text to display ", -1)),
@@ -20068,7 +20092,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
20068
20092
  _: 1
20069
20093
  }));
20070
20094
  }
20071
- }), E6 = { class: "space-y-1" }, A6 = { class: "flex flex-1 justify-end" }, O6 = /* @__PURE__ */ $({
20095
+ }), E6 = { class: "space-y-1" }, A6 = { class: "flex flex-1 justify-end" }, R6 = /* @__PURE__ */ $({
20072
20096
  __name: "InsertTextDialog",
20073
20097
  emits: ["cancel", "insert"],
20074
20098
  setup(t, { emit: e }) {
@@ -20080,7 +20104,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE_
20080
20104
  n("insert", r.value), r.value = null;
20081
20105
  };
20082
20106
  return (a, c) => (y(), H(Jd, null, {
20083
- default: R(() => [
20107
+ default: O(() => [
20084
20108
  c[0] || (c[0] = C("header", null, "Insert text", -1)),
20085
20109
  C("section", E6, [
20086
20110
  V(k(Qn), {
@@ -20112,7 +20136,7 @@ var X1 = (t, e) => {
20112
20136
  if (t === "svg")
20113
20137
  throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
20114
20138
  return [t, r, n];
20115
- }, R6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, D6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, N6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, $6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, I6 = fr.create({
20139
+ }, O6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, D6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, N6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, $6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, I6 = fr.create({
20116
20140
  name: "bold",
20117
20141
  addOptions() {
20118
20142
  return {
@@ -20160,7 +20184,7 @@ var X1 = (t, e) => {
20160
20184
  addInputRules() {
20161
20185
  return [
20162
20186
  Ur({
20163
- find: R6,
20187
+ find: O6,
20164
20188
  type: this.type
20165
20189
  }),
20166
20190
  Ur({
@@ -21996,7 +22020,7 @@ function Mn(t, e, n) {
21996
22020
  s.indexOf(t) < 0 && s.push(t);
21997
22021
  }
21998
22022
  }
21999
- function Og(t, e) {
22023
+ function Rg(t, e) {
22000
22024
  const n = {};
22001
22025
  for (const r in e)
22002
22026
  e[r].indexOf(t) >= 0 && (n[r] = !0);
@@ -22118,7 +22142,7 @@ tt.prototype = {
22118
22142
  if (l ? (o = new tt(), Object.assign(o.j, l.j), o.jr.push.apply(o.jr, l.jr), o.jd = l.jd, o.t = l.t) : o = new tt(), i) {
22119
22143
  if (r)
22120
22144
  if (o.t && typeof o.t == "string") {
22121
- const a = Object.assign(Og(o.t, r), n);
22145
+ const a = Object.assign(Rg(o.t, r), n);
22122
22146
  Mn(i, a, r);
22123
22147
  } else n && Mn(i, n, r);
22124
22148
  o.t = i;
@@ -22126,7 +22150,7 @@ tt.prototype = {
22126
22150
  return s.j[t] = o, o;
22127
22151
  }
22128
22152
  };
22129
- const re = (t, e, n, r, s) => t.ta(e, n, r, s), He = (t, e, n, r, s) => t.tr(e, n, r, s), oc = (t, e, n, r, s) => t.ts(e, n, r, s), D = (t, e, n, r, s) => t.tt(e, n, r, s), $t = "WORD", il = "UWORD", gf = "ASCIINUMERICAL", yf = "ALPHANUMERICAL", qr = "LOCALHOST", ol = "TLD", ll = "UTLD", Ts = "SCHEME", Kn = "SLASH_SCHEME", ra = "NUM", al = "WS", sa = "NL", Tr = "OPENBRACE", Vr = "CLOSEBRACE", Ys = "OPENBRACKET", Js = "CLOSEBRACKET", Gs = "OPENPAREN", Xs = "CLOSEPAREN", Qs = "OPENANGLEBRACKET", _s = "CLOSEANGLEBRACKET", ei = "FULLWIDTHLEFTPAREN", ti = "FULLWIDTHRIGHTPAREN", ni = "LEFTCORNERBRACKET", ri = "RIGHTCORNERBRACKET", si = "LEFTWHITECORNERBRACKET", ii = "RIGHTWHITECORNERBRACKET", oi = "FULLWIDTHLESSTHAN", li = "FULLWIDTHGREATERTHAN", ai = "AMPERSAND", ci = "APOSTROPHE", ui = "ASTERISK", en = "AT", di = "BACKSLASH", fi = "BACKTICK", hi = "CARET", nn = "COLON", ia = "COMMA", pi = "DOLLAR", Lt = "DOT", mi = "EQUALS", oa = "EXCLAMATION", ct = "HYPHEN", Er = "PERCENT", gi = "PIPE", yi = "PLUS", Ci = "POUND", Ar = "QUERY", la = "QUOTE", Cf = "FULLWIDTHMIDDLEDOT", aa = "SEMI", Mt = "SLASH", Or = "TILDE", vi = "UNDERSCORE", vf = "EMOJI", bi = "SYM";
22153
+ const re = (t, e, n, r, s) => t.ta(e, n, r, s), He = (t, e, n, r, s) => t.tr(e, n, r, s), oc = (t, e, n, r, s) => t.ts(e, n, r, s), D = (t, e, n, r, s) => t.tt(e, n, r, s), $t = "WORD", il = "UWORD", gf = "ASCIINUMERICAL", yf = "ALPHANUMERICAL", qr = "LOCALHOST", ol = "TLD", ll = "UTLD", Ts = "SCHEME", Kn = "SLASH_SCHEME", ra = "NUM", al = "WS", sa = "NL", Tr = "OPENBRACE", Vr = "CLOSEBRACE", Ys = "OPENBRACKET", Js = "CLOSEBRACKET", Gs = "OPENPAREN", Xs = "CLOSEPAREN", Qs = "OPENANGLEBRACKET", _s = "CLOSEANGLEBRACKET", ei = "FULLWIDTHLEFTPAREN", ti = "FULLWIDTHRIGHTPAREN", ni = "LEFTCORNERBRACKET", ri = "RIGHTCORNERBRACKET", si = "LEFTWHITECORNERBRACKET", ii = "RIGHTWHITECORNERBRACKET", oi = "FULLWIDTHLESSTHAN", li = "FULLWIDTHGREATERTHAN", ai = "AMPERSAND", ci = "APOSTROPHE", ui = "ASTERISK", en = "AT", di = "BACKSLASH", fi = "BACKTICK", hi = "CARET", nn = "COLON", ia = "COMMA", pi = "DOLLAR", Lt = "DOT", mi = "EQUALS", oa = "EXCLAMATION", ct = "HYPHEN", Er = "PERCENT", gi = "PIPE", yi = "PLUS", Ci = "POUND", Ar = "QUERY", la = "QUOTE", Cf = "FULLWIDTHMIDDLEDOT", aa = "SEMI", Mt = "SLASH", Rr = "TILDE", vi = "UNDERSCORE", vf = "EMOJI", bi = "SYM";
22130
22154
  var bf = /* @__PURE__ */ Object.freeze({
22131
22155
  __proto__: null,
22132
22156
  ALPHANUMERICAL: yf,
@@ -22177,7 +22201,7 @@ var bf = /* @__PURE__ */ Object.freeze({
22177
22201
  SLASH: Mt,
22178
22202
  SLASH_SCHEME: Kn,
22179
22203
  SYM: bi,
22180
- TILDE: Or,
22204
+ TILDE: Rr,
22181
22205
  TLD: ol,
22182
22206
  UNDERSCORE: vi,
22183
22207
  UTLD: ll,
@@ -22186,13 +22210,13 @@ var bf = /* @__PURE__ */ Object.freeze({
22186
22210
  WS: al
22187
22211
  });
22188
22212
  const Dt = /[a-z]/, mr = new RegExp("\\p{L}", "u"), ko = new RegExp("\\p{Emoji}", "u"), Nt = /\d/, xo = /\s/, lc = "\r", wo = `
22189
- `, Rg = "️", Dg = "‍", Lo = "";
22213
+ `, Og = "️", Dg = "‍", Lo = "";
22190
22214
  let ys = null, Cs = null;
22191
22215
  function Ng(t = []) {
22192
22216
  const e = {};
22193
22217
  tt.groups = e;
22194
22218
  const n = new tt();
22195
- ys == null && (ys = ac(Hg)), Cs == null && (Cs = ac(Tg)), D(n, "'", ci), D(n, "{", Tr), D(n, "}", Vr), D(n, "[", Ys), D(n, "]", Js), D(n, "(", Gs), D(n, ")", Xs), D(n, "<", Qs), D(n, ">", _s), D(n, "(", ei), D(n, ")", ti), D(n, "「", ni), D(n, "」", ri), D(n, "『", si), D(n, "』", ii), D(n, "<", oi), D(n, ">", li), D(n, "&", ai), D(n, "*", ui), D(n, "@", en), D(n, "`", fi), D(n, "^", hi), D(n, ":", nn), D(n, ",", ia), D(n, "$", pi), D(n, ".", Lt), D(n, "=", mi), D(n, "!", oa), D(n, "-", ct), D(n, "%", Er), D(n, "|", gi), D(n, "+", yi), D(n, "#", Ci), D(n, "?", Ar), D(n, '"', la), D(n, "/", Mt), D(n, ";", aa), D(n, "~", Or), D(n, "_", vi), D(n, "\\", di), D(n, "・", Cf);
22219
+ ys == null && (ys = ac(Hg)), Cs == null && (Cs = ac(Tg)), D(n, "'", ci), D(n, "{", Tr), D(n, "}", Vr), D(n, "[", Ys), D(n, "]", Js), D(n, "(", Gs), D(n, ")", Xs), D(n, "<", Qs), D(n, ">", _s), D(n, "(", ei), D(n, ")", ti), D(n, "「", ni), D(n, "」", ri), D(n, "『", si), D(n, "』", ii), D(n, "<", oi), D(n, ">", li), D(n, "&", ai), D(n, "*", ui), D(n, "@", en), D(n, "`", fi), D(n, "^", hi), D(n, ":", nn), D(n, ",", ia), D(n, "$", pi), D(n, ".", Lt), D(n, "=", mi), D(n, "!", oa), D(n, "-", ct), D(n, "%", Er), D(n, "|", gi), D(n, "+", yi), D(n, "#", Ci), D(n, "?", Ar), D(n, '"', la), D(n, "/", Mt), D(n, ";", aa), D(n, "~", Rr), D(n, "_", vi), D(n, "\\", di), D(n, "・", Cf);
22196
22220
  const r = He(n, Nt, ra, {
22197
22221
  [tl]: !0
22198
22222
  });
@@ -22220,7 +22244,7 @@ function Ng(t = []) {
22220
22244
  const d = He(n, ko, vf, {
22221
22245
  [mf]: !0
22222
22246
  });
22223
- D(d, "#"), He(d, ko, d), D(d, Rg, d);
22247
+ D(d, "#"), He(d, ko, d), D(d, Og, d);
22224
22248
  const f = D(d, Dg);
22225
22249
  D(f, "#"), He(f, ko, d);
22226
22250
  const h = [[Dt, o], [Nt, s]], p = [[Dt, null], [mr, l], [Nt, i]];
@@ -22242,12 +22266,12 @@ function Ng(t = []) {
22242
22266
  ascii: !0
22243
22267
  }, e), t = t.sort((m, g) => m[0] > g[0] ? 1 : -1);
22244
22268
  for (let m = 0; m < t.length; m++) {
22245
- const g = t[m][0], x = t[m][1] ? {
22269
+ const g = t[m][0], w = t[m][1] ? {
22246
22270
  [Vg]: !0
22247
22271
  } : {
22248
22272
  [Eg]: !0
22249
22273
  };
22250
- g.indexOf("-") >= 0 ? x[sl] = !0 : Dt.test(g) ? Nt.test(g) ? x[Hr] = !0 : x[nl] = !0 : x[tl] = !0, oc(n, g, g, x);
22274
+ g.indexOf("-") >= 0 ? w[sl] = !0 : Dt.test(g) ? Nt.test(g) ? w[Hr] = !0 : w[nl] = !0 : w[tl] = !0, oc(n, g, g, w);
22251
22275
  }
22252
22276
  return oc(n, "localhost", qr, {
22253
22277
  ascii: !0
@@ -22548,7 +22572,7 @@ const uc = Yi("email", {
22548
22572
  function Pg({
22549
22573
  groups: t
22550
22574
  }) {
22551
- const e = t.domain.concat([ai, ui, en, di, fi, hi, pi, mi, ct, ra, Er, gi, yi, Ci, Mt, bi, Or, vi]), n = [ci, nn, ia, Lt, oa, Er, Ar, la, aa, Qs, _s, Tr, Vr, Js, Ys, Gs, Xs, ei, ti, ni, ri, si, ii, oi, li], r = [ai, ci, ui, di, fi, hi, pi, mi, ct, Tr, Vr, Er, gi, yi, Ci, Ar, Mt, bi, Or, vi], s = at(), i = D(s, Or);
22575
+ const e = t.domain.concat([ai, ui, en, di, fi, hi, pi, mi, ct, ra, Er, gi, yi, Ci, Mt, bi, Rr, vi]), n = [ci, nn, ia, Lt, oa, Er, Ar, la, aa, Qs, _s, Tr, Vr, Js, Ys, Gs, Xs, ei, ti, ni, ri, si, ii, oi, li], r = [ai, ci, ui, di, fi, hi, pi, mi, ct, Tr, Vr, Er, gi, yi, Ci, Ar, Mt, bi, Rr, vi], s = at(), i = D(s, Rr);
22552
22576
  re(i, r, i), re(i, t.domain, i);
22553
22577
  const o = at(), l = at(), a = at();
22554
22578
  re(s, t.domain, o), re(s, t.scheme, l), re(s, t.slashscheme, a), re(o, r, i), re(o, t.domain, o);
@@ -22568,14 +22592,14 @@ function Pg({
22568
22592
  re(m, t.numeric, uc);
22569
22593
  const g = D(o, ct), b = D(o, Lt);
22570
22594
  D(g, ct, g), re(g, t.domain, o), re(b, r, i), re(b, t.domain, o);
22571
- const x = at(vs);
22572
- re(b, t.tld, x), re(b, t.utld, x), re(x, t.domain, o), re(x, r, i), D(x, Lt, b), D(x, ct, g), D(x, en, c);
22573
- const w = D(x, nn), L = at(vs);
22574
- re(w, t.numeric, L);
22595
+ const w = at(vs);
22596
+ re(b, t.tld, w), re(b, t.utld, w), re(w, t.domain, o), re(w, r, i), D(w, Lt, b), D(w, ct, g), D(w, en, c);
22597
+ const x = D(w, nn), L = at(vs);
22598
+ re(x, t.numeric, L);
22575
22599
  const S = at(vs), N = at();
22576
- re(S, e, S), re(S, n, N), re(N, e, S), re(N, n, N), D(x, Mt, S), D(L, Mt, S);
22577
- const O = D(l, nn), Z = D(a, nn), E = D(Z, Mt), P = D(E, Mt);
22578
- re(l, t.domain, o), D(l, Lt, b), D(l, ct, g), re(a, t.domain, o), D(a, Lt, b), D(a, ct, g), re(O, t.domain, S), D(O, Mt, S), D(O, Ar, S), re(P, t.domain, S), re(P, e, S), D(P, Mt, S);
22600
+ re(S, e, S), re(S, n, N), re(N, e, S), re(N, n, N), D(w, Mt, S), D(L, Mt, S);
22601
+ const R = D(l, nn), Z = D(a, nn), E = D(Z, Mt), P = D(E, Mt);
22602
+ re(l, t.domain, o), D(l, Lt, b), D(l, ct, g), re(a, t.domain, o), D(a, Lt, b), D(a, ct, g), re(R, t.domain, S), D(R, Mt, S), D(R, Ar, S), re(P, t.domain, S), re(P, e, S), D(P, Mt, S);
22579
22603
  const Q = [
22580
22604
  [Tr, Vr],
22581
22605
  // {}
@@ -22602,7 +22626,7 @@ function Pg({
22602
22626
  const K = at();
22603
22627
  re(be, n), re(xe, e, xe), re(xe, n, K), re(K, e, xe), re(K, n, K), D(xe, G, S), D(K, G, S);
22604
22628
  }
22605
- return D(s, qr, x), D(s, sa, Ig), {
22629
+ return D(s, qr, w), D(s, sa, Ig), {
22606
22630
  start: s,
22607
22631
  tokens: bf
22608
22632
  };
@@ -22723,7 +22747,7 @@ function Yg(t) {
22723
22747
  from: m + b.start + 1,
22724
22748
  to: m + b.end + 1
22725
22749
  })).filter((b) => r.schema.marks.code ? !r.doc.rangeHasMark(b.from, b.to, r.schema.marks.code) : !0).filter((b) => t.validate(b.value)).filter((b) => t.shouldAutoLink(b.value)).forEach((b) => {
22726
- Gl(b.from, b.to, r.doc).some((x) => x.mark.type === t.type) || o.addMark(
22750
+ Gl(b.from, b.to, r.doc).some((w) => w.mark.type === t.type) || o.addMark(
22727
22751
  b.from,
22728
22752
  b.to,
22729
22753
  t.type.create({
@@ -23298,16 +23322,16 @@ const ny = { key: 1 }, ry = {
23298
23322
  var G;
23299
23323
  const j = g.includes(_) ? _ : "end";
23300
23324
  (G = f.value) == null || G.commands.focus(j);
23301
- }, x = () => {
23325
+ }, w = () => {
23302
23326
  var _;
23303
23327
  (_ = f.value) == null || _.commands.blur(), o.value = !1;
23304
- }, w = () => a.value = !1, L = () => o.value = !0, S = () => a.value = !1, N = (_) => {
23328
+ }, x = () => a.value = !1, L = () => o.value = !0, S = () => a.value = !1, N = (_) => {
23305
23329
  var j;
23306
23330
  return (j = f.value) == null ? void 0 : j.commands.insertContent(_);
23307
- }, O = (_) => {
23331
+ }, R = (_) => {
23308
23332
  N(_), l.value = !1;
23309
23333
  }, Z = () => a.value = !0, E = () => l.value = !0;
23310
- return e({ blur: x, closeInsert: () => l.value = !1, focus: b, setContent: (_) => {
23334
+ return e({ blur: w, closeInsert: () => l.value = !1, focus: b, setContent: (_) => {
23311
23335
  var j;
23312
23336
  return (j = f.value) == null ? void 0 : j.commands.setContent(_);
23313
23337
  } }), (_, j) => k(f) ? (y(), v("section", {
@@ -23327,13 +23351,13 @@ const ny = { key: 1 }, ry = {
23327
23351
  "border-subtle": !o.value && !t.embedded
23328
23352
  }])
23329
23353
  }, {
23330
- default: R(() => [
23354
+ default: O(() => [
23331
23355
  t.headerLabel || t.headerIcon ? (y(), H(k(ye), {
23332
23356
  key: 0,
23333
23357
  tag: "header",
23334
23358
  class: z(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", p.value])
23335
23359
  }, {
23336
- default: R(() => [
23360
+ default: O(() => [
23337
23361
  t.headerIcon ? (y(), H(k(ve), {
23338
23362
  key: 0,
23339
23363
  name: t.headerIcon
@@ -23347,7 +23371,7 @@ const ny = { key: 1 }, ry = {
23347
23371
  align: "start",
23348
23372
  fullwidth: ""
23349
23373
  }, {
23350
- default: R(() => [
23374
+ default: O(() => [
23351
23375
  V(k(Ef), {
23352
23376
  class: z(["flex-1 overflow-y-auto rounded-t-lg focus:outline-hidden", {
23353
23377
  [t.editorContentClasses]: !o.value,
@@ -23363,9 +23387,9 @@ const ny = { key: 1 }, ry = {
23363
23387
  class: z(["flex-0 min-h-0 p-1 rounded-b-lg overflow-hidden", m.value])
23364
23388
  }, [
23365
23389
  V(k(ye), { justify: "between" }, {
23366
- default: R(() => [
23390
+ default: O(() => [
23367
23391
  V(k(ye), { class: "gap-0.5" }, {
23368
- default: R(() => [
23392
+ default: O(() => [
23369
23393
  k(el) ? (y(), v(I, { key: 0 }, [
23370
23394
  V(Je, {
23371
23395
  icon: "undo",
@@ -23493,12 +23517,12 @@ const ny = { key: 1 }, ry = {
23493
23517
  key: 2,
23494
23518
  editor: k(f),
23495
23519
  onInserted: S,
23496
- onCancel: w
23520
+ onCancel: x
23497
23521
  }, null, 8, ["editor"])) : T("", !0),
23498
23522
  l.value ? (y(), v(I, { key: 3 }, [
23499
- _.$slots.insert ? F(_.$slots, "insert", { key: 0 }) : (y(), H(O6, {
23523
+ _.$slots.insert ? F(_.$slots, "insert", { key: 0 }) : (y(), H(R6, {
23500
23524
  key: 1,
23501
- onInsert: O,
23525
+ onInsert: R,
23502
23526
  onCancel: j[13] || (j[13] = (G) => l.value = !1)
23503
23527
  }))
23504
23528
  ], 64)) : T("", !0)
@@ -23510,7 +23534,7 @@ const ny = { key: 1 }, ry = {
23510
23534
  }), sy = { class: "relative z-0" }, iy = {
23511
23535
  key: 1,
23512
23536
  class: "relative z-10"
23513
- }, Of = /* @__PURE__ */ $({
23537
+ }, Rf = /* @__PURE__ */ $({
23514
23538
  __name: "TextHighlight",
23515
23539
  props: {
23516
23540
  value: {},
@@ -23556,7 +23580,7 @@ const ny = { key: 1 }, ry = {
23556
23580
  };
23557
23581
  return lr(() => {
23558
23582
  n.value = e.highlight ? s(e.value, e.highlight) : [];
23559
- }), Oe(
23583
+ }), Re(
23560
23584
  () => e.highlight,
23561
23585
  (i) => {
23562
23586
  n.value = i ? s(e.value, i) : [];
@@ -23781,10 +23805,10 @@ function fa() {
23781
23805
  };
23782
23806
  }
23783
23807
  var Bn = fa();
23784
- function Rf(t) {
23808
+ function Of(t) {
23785
23809
  Bn = t;
23786
23810
  }
23787
- var Rr = { exec: () => null };
23811
+ var Or = { exec: () => null };
23788
23812
  function fe(t, e = "") {
23789
23813
  let n = typeof t == "string" ? t : t.source;
23790
23814
  const r = {
@@ -23868,7 +23892,7 @@ var Xe = {
23868
23892
  list: ky,
23869
23893
  newline: py,
23870
23894
  paragraph: $f,
23871
- table: Rr,
23895
+ table: Or,
23872
23896
  text: vy
23873
23897
  }, pc = fe(
23874
23898
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
@@ -23884,26 +23908,26 @@ var Xe = {
23884
23908
  ).replace("comment", ga).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
23885
23909
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
23886
23910
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
23887
- fences: Rr,
23911
+ fences: Or,
23888
23912
  // fences not supported
23889
23913
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
23890
23914
  paragraph: fe(pa).replace("hr", ls).replace("heading", ` *#{1,6} *[^
23891
23915
  ]`).replace("lheading", Nf).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
23892
- }, Sy = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Hy = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, If = /^( {2,}|\\)\n(?!\s*$)/, Ty = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Gi = /[\p{P}\p{S}]/u, Ca = /[\s\p{P}\p{S}]/u, Pf = /[^\s\p{P}\p{S}]/u, Vy = fe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ca).getRegex(), zf = /(?!~)[\p{P}\p{S}]/u, Ey = /(?!~)[\s\p{P}\p{S}]/u, Ay = /(?:[^\s\p{P}\p{S}]|~)/u, Oy = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Bf = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ry = fe(Bf, "u").replace(/punct/g, Gi).getRegex(), Dy = fe(Bf, "u").replace(/punct/g, zf).getRegex(), Zf = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ny = fe(Zf, "gu").replace(/notPunctSpace/g, Pf).replace(/punctSpace/g, Ca).replace(/punct/g, Gi).getRegex(), $y = fe(Zf, "gu").replace(/notPunctSpace/g, Ay).replace(/punctSpace/g, Ey).replace(/punct/g, zf).getRegex(), Iy = fe(
23916
+ }, Sy = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Hy = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, If = /^( {2,}|\\)\n(?!\s*$)/, Ty = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Gi = /[\p{P}\p{S}]/u, Ca = /[\s\p{P}\p{S}]/u, Pf = /[^\s\p{P}\p{S}]/u, Vy = fe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ca).getRegex(), zf = /(?!~)[\p{P}\p{S}]/u, Ey = /(?!~)[\s\p{P}\p{S}]/u, Ay = /(?:[^\s\p{P}\p{S}]|~)/u, Ry = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Bf = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Oy = fe(Bf, "u").replace(/punct/g, Gi).getRegex(), Dy = fe(Bf, "u").replace(/punct/g, zf).getRegex(), Zf = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ny = fe(Zf, "gu").replace(/notPunctSpace/g, Pf).replace(/punctSpace/g, Ca).replace(/punct/g, Gi).getRegex(), $y = fe(Zf, "gu").replace(/notPunctSpace/g, Ay).replace(/punctSpace/g, Ey).replace(/punct/g, zf).getRegex(), Iy = fe(
23893
23917
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
23894
23918
  "gu"
23895
23919
  ).replace(/notPunctSpace/g, Pf).replace(/punctSpace/g, Ca).replace(/punct/g, Gi).getRegex(), Py = fe(/\\(punct)/, "gu").replace(/punct/g, Gi).getRegex(), zy = fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), By = fe(ga).replace("(?:-->|$)", "-->").getRegex(), Zy = fe(
23896
23920
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
23897
23921
  ).replace("comment", By).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), ki = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Fy = fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", ki).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ff = fe(/^!?\[(label)\]\[(ref)\]/).replace("label", ki).replace("ref", ma).getRegex(), Wf = fe(/^!?\[(ref)\](?:\[\])?/).replace("ref", ma).getRegex(), Wy = fe("reflink|nolink(?!\\()", "g").replace("reflink", Ff).replace("nolink", Wf).getRegex(), va = {
23898
- _backpedal: Rr,
23922
+ _backpedal: Or,
23899
23923
  // only used for GFM url
23900
23924
  anyPunctuation: Py,
23901
23925
  autolink: zy,
23902
- blockSkip: Oy,
23926
+ blockSkip: Ry,
23903
23927
  br: If,
23904
23928
  code: Hy,
23905
- del: Rr,
23906
- emStrongLDelim: Ry,
23929
+ del: Or,
23930
+ emStrongLDelim: Oy,
23907
23931
  emStrongRDelimAst: Ny,
23908
23932
  emStrongRDelimUnd: Iy,
23909
23933
  escape: Sy,
@@ -23914,7 +23938,7 @@ var Xe = {
23914
23938
  reflinkSearch: Wy,
23915
23939
  tag: Zy,
23916
23940
  text: Ty,
23917
- url: Rr
23941
+ url: Or
23918
23942
  }, jy = {
23919
23943
  ...va,
23920
23944
  link: fe(/^!?\[(label)\]\((.*?)\)/).replace("label", ki).getRegex(),
@@ -24177,24 +24201,24 @@ ${u}` : u;
24177
24201
  `, 1)[0], h = !d.trim(), p = 0;
24178
24202
  if (this.options.pedantic ? (p = 2, u = d.trimStart()) : h ? p = e[1].length + 1 : (p = e[2].search(this.rules.other.nonSpaceChar), p = p > 4 ? 1 : p, u = d.slice(p), p += e[1].length), h && this.rules.other.blankLine.test(f) && (c += f + `
24179
24203
  `, t = t.substring(f.length + 1), a = !0), !a) {
24180
- const b = this.rules.other.nextBulletRegex(p), x = this.rules.other.hrRegex(p), w = this.rules.other.fencesBeginRegex(p), L = this.rules.other.headingBeginRegex(p), S = this.rules.other.htmlBeginRegex(p);
24204
+ const b = this.rules.other.nextBulletRegex(p), w = this.rules.other.hrRegex(p), x = this.rules.other.fencesBeginRegex(p), L = this.rules.other.headingBeginRegex(p), S = this.rules.other.htmlBeginRegex(p);
24181
24205
  for (; t; ) {
24182
24206
  const N = t.split(`
24183
24207
  `, 1)[0];
24184
- let O;
24185
- if (f = N, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), O = f) : O = f.replace(this.rules.other.tabCharGlobal, " "), w.test(f) || L.test(f) || S.test(f) || b.test(f) || x.test(f))
24208
+ let R;
24209
+ if (f = N, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), R = f) : R = f.replace(this.rules.other.tabCharGlobal, " "), x.test(f) || L.test(f) || S.test(f) || b.test(f) || w.test(f))
24186
24210
  break;
24187
- if (O.search(this.rules.other.nonSpaceChar) >= p || !f.trim())
24211
+ if (R.search(this.rules.other.nonSpaceChar) >= p || !f.trim())
24188
24212
  u += `
24189
- ` + O.slice(p);
24213
+ ` + R.slice(p);
24190
24214
  else {
24191
- if (h || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || w.test(d) || L.test(d) || x.test(d))
24215
+ if (h || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || x.test(d) || L.test(d) || w.test(d))
24192
24216
  break;
24193
24217
  u += `
24194
24218
  ` + f;
24195
24219
  }
24196
24220
  !h && !f.trim() && (h = !0), c += N + `
24197
- `, t = t.substring(N.length + 1), d = O.slice(p);
24221
+ `, t = t.substring(N.length + 1), d = R.slice(p);
24198
24222
  }
24199
24223
  }
24200
24224
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
@@ -25299,12 +25323,12 @@ function me(t, e) {
25299
25323
  return Pn.parse(t, e);
25300
25324
  }
25301
25325
  me.options = me.setOptions = function(t) {
25302
- return Pn.setOptions(t), me.defaults = Pn.defaults, Rf(me.defaults), me;
25326
+ return Pn.setOptions(t), me.defaults = Pn.defaults, Of(me.defaults), me;
25303
25327
  };
25304
25328
  me.getDefaults = fa;
25305
25329
  me.defaults = Bn;
25306
25330
  me.use = function(...t) {
25307
- return Pn.use(...t), me.defaults = Pn.defaults, Rf(me.defaults), me;
25331
+ return Pn.use(...t), me.defaults = Pn.defaults, Of(me.defaults), me;
25308
25332
  };
25309
25333
  me.walkTokens = function(t, e) {
25310
25334
  return Pn.walkTokens(t, e);
@@ -25556,14 +25580,14 @@ var nC = class {
25556
25580
  if (c) {
25557
25581
  const m = (a.raw || a.text || "").split(`
25558
25582
  `), g = m[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/), b = g ? g[2] : "";
25559
- let x = [];
25583
+ let w = [];
25560
25584
  if (m.length > 1 && m.slice(1).join(`
25561
25585
  `).trim()) {
25562
25586
  const L = m.slice(1), S = L.filter((N) => N.trim());
25563
25587
  if (S.length > 0) {
25564
25588
  const N = Math.min(...S.map((E) => E.length - E.trimStart().length)), Z = L.map((E) => E.trim() ? E.slice(N) : "").join(`
25565
25589
  `).trim();
25566
- Z && (x = this.markedInstance.lexer(`${Z}
25590
+ Z && (w = this.markedInstance.lexer(`${Z}
25567
25591
  `));
25568
25592
  }
25569
25593
  }
@@ -25575,7 +25599,7 @@ var nC = class {
25575
25599
  checked: u ?? !1,
25576
25600
  text: b,
25577
25601
  tokens: this.lexer.inlineTokens(b),
25578
- nestedTokens: x
25602
+ nestedTokens: w
25579
25603
  };
25580
25604
  }
25581
25605
  const h = c ? "taskList" : "list";
@@ -25662,21 +25686,21 @@ var nC = class {
25662
25686
  let m = -1;
25663
25687
  const g = [a];
25664
25688
  for (let b = o + 1; b < t.length; b += 1) {
25665
- const x = t[b], w = ((s = (r = x.raw) != null ? r : x.text) != null ? s : "").toString();
25666
- if (g.push(w), x.type === "html" && p.test(w)) {
25689
+ const w = t[b], x = ((s = (r = w.raw) != null ? r : w.text) != null ? s : "").toString();
25690
+ if (g.push(x), w.type === "html" && p.test(x)) {
25667
25691
  m = b;
25668
25692
  break;
25669
25693
  }
25670
25694
  }
25671
25695
  if (m !== -1) {
25672
- const b = g.join(""), x = {
25696
+ const b = g.join(""), w = {
25673
25697
  type: "html",
25674
25698
  raw: b,
25675
25699
  text: b,
25676
25700
  block: !1
25677
- }, w = this.parseHTMLToken(x);
25678
- if (w) {
25679
- const L = this.normalizeParseResult(w);
25701
+ }, x = this.parseHTMLToken(w);
25702
+ if (x) {
25703
+ const L = this.normalizeParseResult(x);
25680
25704
  Array.isArray(L) ? i.push(...L) : L && i.push(L);
25681
25705
  }
25682
25706
  o = m;
@@ -25822,8 +25846,8 @@ var nC = class {
25822
25846
  let c = o.text || "";
25823
25847
  const u = new Map((o.marks || []).map((g) => [g.type, g])), d = Xy(i, u), f = Qy(i, u);
25824
25848
  d.forEach((g) => {
25825
- const b = i.get(g), x = this.getMarkClosing(g, b);
25826
- x && (c += x), i.delete(g);
25849
+ const b = i.get(g), w = this.getMarkClosing(g, b);
25850
+ w && (c += w), i.delete(g);
25827
25851
  });
25828
25852
  let h = "";
25829
25853
  if (f.length > 0) {
@@ -25831,8 +25855,8 @@ var nC = class {
25831
25855
  g && (h = g[1], c = c.slice(h.length));
25832
25856
  }
25833
25857
  f.forEach(({ type: g, mark: b }) => {
25834
- const x = this.getMarkOpening(g, b);
25835
- x && (c = x + c), i.set(g, b);
25858
+ const w = this.getMarkOpening(g, b);
25859
+ w && (c = w + c), i.set(g, b);
25836
25860
  }), c = h + c;
25837
25861
  const p = _y(
25838
25862
  i,
@@ -25846,8 +25870,8 @@ var nC = class {
25846
25870
  g && (m = g[1], c = c.slice(0, -m.length));
25847
25871
  }
25848
25872
  p.forEach((g) => {
25849
- const b = i.get(g), x = this.getMarkClosing(g, b);
25850
- x && (c += x), i.delete(g);
25873
+ const b = i.get(g), w = this.getMarkClosing(g, b);
25874
+ w && (c += w), i.delete(g);
25851
25875
  }), c += m, s.push(c);
25852
25876
  } else {
25853
25877
  const c = new Map(i), u = eC(i, this.getMarkClosing.bind(this)), d = this.renderNodeToMarkdown(o, e, l, r), f = o.type === "hardBreak" ? "" : tC(c, i, this.getMarkOpening.bind(this));
@@ -26034,7 +26058,7 @@ const pv = /* @__PURE__ */ $({
26034
26058
  G1.name,
26035
26059
  "hasUsedNewline"
26036
26060
  );
26037
- Oe(o, (u) => {
26061
+ Re(o, (u) => {
26038
26062
  r("new-line-state-changed", u || !1);
26039
26063
  });
26040
26064
  const l = ["start", "end", "all"], a = (u) => {
@@ -26112,14 +26136,14 @@ const pv = /* @__PURE__ */ $({
26112
26136
  }), l = Y(() => r.disabled ? { background: "hsl(0 0% 90%)" } : {}), a = (u) => {
26113
26137
  r.stopPropagation && u.stopPropagation(), r.disabled || s("click");
26114
26138
  };
26115
- return e({ focus: () => i.value.focus() }), (u, d) => t.tooltip ? (y(), H(k(Oi), {
26139
+ return e({ focus: () => i.value.focus() }), (u, d) => t.tooltip ? (y(), H(k(Ri), {
26116
26140
  key: 0,
26117
26141
  hover: "",
26118
26142
  text: t.tooltip,
26119
26143
  delay: t.tooltipDelay,
26120
26144
  placement: t.tooltipPlacement
26121
26145
  }, {
26122
- default: R(() => [
26146
+ default: O(() => [
26123
26147
  C("button", {
26124
26148
  ref_key: "buttonRef",
26125
26149
  ref: i,
@@ -26253,7 +26277,7 @@ const pv = /* @__PURE__ */ $({
26253
26277
  class: "h-8 gap-1 pr-1",
26254
26278
  style: Ce({ paddingLeft: `${t.indentation}px` })
26255
26279
  }, {
26256
- default: R(() => [
26280
+ default: O(() => [
26257
26281
  d[4] || (d[4] = C("div", { class: "w-4 h-4" }, null, -1)),
26258
26282
  C("section", aC, [
26259
26283
  C("input", {
@@ -26311,7 +26335,7 @@ const pv = /* @__PURE__ */ $({
26311
26335
  emits: ["action", "key", "select", "toggle", "cancel-new-child", "save"],
26312
26336
  setup(t, { emit: e }) {
26313
26337
  const n = e, r = Y(() => t.selection.length > 0 && t.selection[t.selection.length - 1].id === t.node.id), s = Y(() => t.createNewPath.length > 0 && t.createNewPath[t.createNewPath.length - 1].id === t.node.id);
26314
- Oe(() => s.value, (m, g) => {
26338
+ Re(() => s.value, (m, g) => {
26315
26339
  !m && g && o.value && (o.value = !1), i.value = "";
26316
26340
  });
26317
26341
  const i = M(""), o = M(!1), l = () => {
@@ -26330,7 +26354,7 @@ const pv = /* @__PURE__ */ $({
26330
26354
  n("toggle", { path: [t.node, ...m], targetNode: [t.node, ...m][[t.node, ...m].length - 1] });
26331
26355
  };
26332
26356
  return (m, g) => {
26333
- var x;
26357
+ var w;
26334
26358
  const b = eh("TreeList", !0);
26335
26359
  return y(), v(I, null, [
26336
26360
  V(k(ye), {
@@ -26341,7 +26365,7 @@ const pv = /* @__PURE__ */ $({
26341
26365
  "text-secondary hover:text-primary hover:bg-secondary": !r.value
26342
26366
  }]),
26343
26367
  style: Ce({ paddingLeft: `${t.level * t.indentationAmount}px` }),
26344
- onClick: g[1] || (g[1] = (w) => n("select", { path: [t.node], targetNode: t.node })),
26368
+ onClick: g[1] || (g[1] = (x) => n("select", { path: [t.node], targetNode: t.node })),
26345
26369
  onKeydown: [
26346
26370
  g[2] || (g[2] = pe(X(() => {
26347
26371
  }, ["stop", "prevent"]), ["left"])),
@@ -26353,18 +26377,18 @@ const pv = /* @__PURE__ */ $({
26353
26377
  }, ["stop", "prevent"]), ["down"]))
26354
26378
  ],
26355
26379
  onKeyup: [
26356
- g[3] || (g[3] = pe(X((w) => c("left"), ["stop", "prevent"]), ["left"])),
26357
- g[5] || (g[5] = pe(X((w) => c("right"), ["stop", "prevent"]), ["right"])),
26358
- g[7] || (g[7] = pe(X((w) => c("up"), ["stop", "prevent"]), ["up"])),
26359
- g[9] || (g[9] = pe(X((w) => c("down"), ["stop", "prevent"]), ["down"]))
26380
+ g[3] || (g[3] = pe(X((x) => c("left"), ["stop", "prevent"]), ["left"])),
26381
+ g[5] || (g[5] = pe(X((x) => c("right"), ["stop", "prevent"]), ["right"])),
26382
+ g[7] || (g[7] = pe(X((x) => c("up"), ["stop", "prevent"]), ["up"])),
26383
+ g[9] || (g[9] = pe(X((x) => c("down"), ["stop", "prevent"]), ["down"]))
26360
26384
  ]
26361
26385
  }, {
26362
- default: R(() => [
26386
+ default: O(() => [
26363
26387
  V(k(ye), { class: "flex-1 min-w-0 pl-1 gap-1" }, {
26364
- default: R(() => {
26365
- var w;
26388
+ default: O(() => {
26389
+ var x;
26366
26390
  return [
26367
- (w = t.node.children) != null && w.length || s.value ? (y(), v("button", {
26391
+ (x = t.node.children) != null && x.length || s.value ? (y(), v("button", {
26368
26392
  key: 0,
26369
26393
  class: "w-4 h-4 flex items-center justify-center rounded cursor-pointer",
26370
26394
  onClick: g[0] || (g[0] = X((L) => n("toggle", { path: [t.node], targetNode: t.node }), ["stop", "prevent"]))
@@ -26382,13 +26406,13 @@ const pv = /* @__PURE__ */ $({
26382
26406
  key: 0,
26383
26407
  class: "flex-none"
26384
26408
  }, {
26385
- default: R(() => [
26409
+ default: O(() => [
26386
26410
  V(k(Wc), {
26387
26411
  options: t.node.actions,
26388
26412
  placement: "bottom-end",
26389
26413
  onSelect: u
26390
26414
  }, {
26391
- trigger: R(() => [
26415
+ trigger: O(() => [
26392
26416
  V(k(se), {
26393
26417
  icon: "options",
26394
26418
  small: "",
@@ -26403,21 +26427,21 @@ const pv = /* @__PURE__ */ $({
26403
26427
  ]),
26404
26428
  _: 1
26405
26429
  }, 8, ["class", "style"]),
26406
- (s.value || (x = t.node.children) != null && x.length) && t.node.open ? (y(), v("main", pC, [
26430
+ (s.value || (w = t.node.children) != null && w.length) && t.node.open ? (y(), v("main", pC, [
26407
26431
  s.value ? (y(), H(dC, {
26408
26432
  key: 0,
26409
26433
  value: i.value,
26410
26434
  indentation: (t.level + 1) * t.indentationAmount,
26411
26435
  saving: o.value,
26412
- onChange: g[10] || (g[10] = (w) => i.value = w),
26436
+ onChange: g[10] || (g[10] = (x) => i.value = x),
26413
26437
  onSave: l,
26414
26438
  onCancel: a
26415
26439
  }, null, 8, ["value", "indentation", "saving"])) : T("", !0),
26416
- (y(!0), v(I, null, yt(t.node.children, (w) => (y(), H(b, {
26417
- key: w.id,
26440
+ (y(!0), v(I, null, yt(t.node.children, (x) => (y(), H(b, {
26441
+ key: x.id,
26418
26442
  "indentation-amount": t.indentationAmount,
26419
26443
  level: t.level + 1,
26420
- node: w,
26444
+ node: x,
26421
26445
  "create-new-path": t.createNewPath,
26422
26446
  selection: t.selection,
26423
26447
  onAction: d,
@@ -26630,7 +26654,7 @@ const pv = /* @__PURE__ */ $({
26630
26654
  class: z(["relative flex-none w-full overflow-hidden transition-height duration-500 ease-in-out", s.value]),
26631
26655
  style: Ce(i.value)
26632
26656
  }, {
26633
- default: R(() => [
26657
+ default: O(() => [
26634
26658
  F(o.$slots, "default")
26635
26659
  ]),
26636
26660
  _: 3
@@ -26653,23 +26677,23 @@ const pv = /* @__PURE__ */ $({
26653
26677
  justify: "start",
26654
26678
  class: z(["relative h-full overflow-x-hidden", n])
26655
26679
  }, {
26656
- default: R(() => [
26680
+ default: O(() => [
26657
26681
  r.$slots.header ? (y(), H(bc, {
26658
26682
  key: 0,
26659
26683
  type: "header",
26660
26684
  border: t.borders,
26661
26685
  "height-class": t.headerHeightClass
26662
26686
  }, {
26663
- default: R(() => [
26687
+ default: O(() => [
26664
26688
  F(r.$slots, "header")
26665
26689
  ]),
26666
26690
  _: 3
26667
26691
  }, 8, ["border", "height-class"])) : T("", !0),
26668
- V(k(Rs), {
26692
+ V(k(Os), {
26669
26693
  "window-resize": "",
26670
26694
  "wrap-class": "h-full"
26671
26695
  }, {
26672
- default: R(() => [
26696
+ default: O(() => [
26673
26697
  F(r.$slots, "main")
26674
26698
  ]),
26675
26699
  _: 3
@@ -26680,7 +26704,7 @@ const pv = /* @__PURE__ */ $({
26680
26704
  border: t.borders,
26681
26705
  "height-class": t.footerHeightClass
26682
26706
  }, {
26683
- default: R(() => [
26707
+ default: O(() => [
26684
26708
  F(r.$slots, "footer")
26685
26709
  ]),
26686
26710
  _: 3
@@ -26703,11 +26727,11 @@ export {
26703
26727
  EC as BCollapse,
26704
26728
  cr as BConfirmCancel,
26705
26729
  AC as BContentSlider,
26706
- OC as BDataPoint,
26730
+ RC as BDataPoint,
26707
26731
  S5 as BDeleteButton,
26708
- RC as BDialog,
26732
+ OC as BDialog,
26709
26733
  Vc as BFadeInUp,
26710
- R5 as BFilterChip,
26734
+ O5 as BFilterChip,
26711
26735
  DC as BFirstPaint,
26712
26736
  ye as BFlexbox,
26713
26737
  Je as BFormattingButton,
@@ -26736,7 +26760,7 @@ export {
26736
26760
  bc as BRunningSection,
26737
26761
  wl as BScreenOverlay,
26738
26762
  KC as BScrollBottomLoader,
26739
- Rs as BScrollbar,
26763
+ Os as BScrollbar,
26740
26764
  JC as BSegmentedControls,
26741
26765
  QC as BSelectList,
26742
26766
  XC as BSelectListOption,
@@ -26748,11 +26772,11 @@ export {
26748
26772
  iv as BTag,
26749
26773
  ov as BTagInput,
26750
26774
  fv as BTextEditor,
26751
- Of as BTextHighlight,
26775
+ Rf as BTextHighlight,
26752
26776
  hv as BTextViewer,
26753
26777
  pv as BTiptapEditor,
26754
26778
  mv as BToggleButton,
26755
- Oi as BTooltip,
26779
+ Ri as BTooltip,
26756
26780
  kv as BTreeList,
26757
26781
  ka as BVerticalLayout,
26758
26782
  Ll as BWindowFrame,