@openpawlabs/diy-guides-ui 1.5.1 → 1.5.2

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.
@@ -855,7 +855,7 @@ function Gt(t, e, n, r) {
855
855
  function Dn(t, e, n = {}) {
856
856
  let { block: r = "nearest", inline: o = "nearest" } = n;
857
857
  if (t === e) return;
858
- let i = t.scrollTop, l = t.scrollLeft, s = e.getBoundingClientRect(), a = t.getBoundingClientRect(), c = window.getComputedStyle(e), u = window.getComputedStyle(t), d = document.scrollingElement || document.documentElement, h = t === d, f = t === d ? 0 : a.top, m = t === d ? t.clientHeight : a.bottom, g = t === d ? 0 : a.left, y = t === d ? t.clientWidth : a.right, x = parseFloat(c.scrollMarginTop) || 0, v = parseFloat(c.scrollMarginBottom) || 0, T = parseFloat(c.scrollMarginLeft) || 0, w = parseFloat(c.scrollMarginRight) || 0, D = parseFloat(u.scrollPaddingTop) || 0, B = parseFloat(u.scrollPaddingBottom) || 0, N = parseFloat(u.scrollPaddingLeft) || 0, I = parseFloat(u.scrollPaddingRight) || 0, A = parseFloat(u.borderTopWidth) || 0, k = parseFloat(u.borderBottomWidth) || 0, O = parseFloat(u.borderLeftWidth) || 0, W = parseFloat(u.borderRightWidth) || 0, V = s.top - x, p = s.bottom + v, E = s.left - T, L = s.right + w, S = t === d ? 0 : O + W, M = t === d ? 0 : A + k, $ = t === d ? 0 : t.offsetWidth - t.clientWidth - S, P = t === d ? 0 : t.offsetHeight - t.clientHeight - M, R = f + (h ? 0 : A) + D, J = m - (h ? 0 : k) - B - P, ee = g + (h ? 0 : O) + N, te = y - (h ? 0 : W) - I;
858
+ let i = t.scrollTop, l = t.scrollLeft, s = e.getBoundingClientRect(), a = t.getBoundingClientRect(), c = window.getComputedStyle(e), u = window.getComputedStyle(t), d = document.scrollingElement || document.documentElement, h = t === d, f = t === d ? 0 : a.top, m = t === d ? t.clientHeight : a.bottom, y = t === d ? 0 : a.left, g = t === d ? t.clientWidth : a.right, x = parseFloat(c.scrollMarginTop) || 0, v = parseFloat(c.scrollMarginBottom) || 0, T = parseFloat(c.scrollMarginLeft) || 0, w = parseFloat(c.scrollMarginRight) || 0, D = parseFloat(u.scrollPaddingTop) || 0, B = parseFloat(u.scrollPaddingBottom) || 0, N = parseFloat(u.scrollPaddingLeft) || 0, I = parseFloat(u.scrollPaddingRight) || 0, A = parseFloat(u.borderTopWidth) || 0, k = parseFloat(u.borderBottomWidth) || 0, O = parseFloat(u.borderLeftWidth) || 0, W = parseFloat(u.borderRightWidth) || 0, V = s.top - x, p = s.bottom + v, E = s.left - T, L = s.right + w, S = t === d ? 0 : O + W, M = t === d ? 0 : A + k, $ = t === d ? 0 : t.offsetWidth - t.clientWidth - S, P = t === d ? 0 : t.offsetHeight - t.clientHeight - M, R = f + (h ? 0 : A) + D, J = m - (h ? 0 : k) - B - P, ee = y + (h ? 0 : O) + N, te = g - (h ? 0 : W) - I;
859
859
  u.direction === "rtl" && !pt() ? ee += $ : te -= $;
860
860
  let ae = V < R || p > J, pe = E < ee || L > te;
861
861
  if (ae && r === "start") i += V - R;
@@ -1187,15 +1187,15 @@ var Ue = Zu(), Ju = (t) => {
1187
1187
  defaultVariants: u = {}
1188
1188
  } = r, d = { ...Xu, ...o }, h = i != null && i.base ? en(i.base, r == null ? void 0 : r.base) : r == null ? void 0 : r.base, f = i != null && i.variants && !Ce(i.variants) ? Fr(s, i.variants) : s, m = i != null && i.defaultVariants && !Ce(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
1189
1189
  !Ce(d.twMergeConfig) && !qu(d.twMergeConfig, Ue.cachedTwMergeConfig) && (Ue.didTwMergeConfigChange = !0, Ue.cachedTwMergeConfig = d.twMergeConfig);
1190
- const g = Ce(i == null ? void 0 : i.slots), y = Ce(l) ? {} : {
1190
+ const y = Ce(i == null ? void 0 : i.slots), g = Ce(l) ? {} : {
1191
1191
  // add "base" to the slots object
1192
- base: en(r == null ? void 0 : r.base, g && (i == null ? void 0 : i.base)),
1192
+ base: en(r == null ? void 0 : r.base, y && (i == null ? void 0 : i.base)),
1193
1193
  ...l
1194
- }, x = g ? y : Yu(
1194
+ }, x = y ? g : Yu(
1195
1195
  { ...i == null ? void 0 : i.slots },
1196
- Ce(y) ? { base: r == null ? void 0 : r.base } : y
1196
+ Ce(g) ? { base: r == null ? void 0 : r.base } : g
1197
1197
  ), v = Ce(i == null ? void 0 : i.compoundVariants) ? a : Hl(i == null ? void 0 : i.compoundVariants, a), T = (D) => {
1198
- if (Ce(f) && Ce(l) && g)
1198
+ if (Ce(f) && Ce(l) && y)
1199
1199
  return t(h, D == null ? void 0 : D.class, D == null ? void 0 : D.className)(d);
1200
1200
  if (v && !Array.isArray(v))
1201
1201
  throw new TypeError(
@@ -1314,7 +1314,7 @@ var Ue = Zu(), Ju = (t) => {
1314
1314
  }
1315
1315
  return E;
1316
1316
  };
1317
- if (!Ce(l) || !g) {
1317
+ if (!Ce(l) || !y) {
1318
1318
  const p = {};
1319
1319
  if (typeof x == "object" && !Ce(x)) {
1320
1320
  const E = t;
@@ -1497,19 +1497,19 @@ const Qu = (t, e) => {
1497
1497
  const i = [];
1498
1498
  let l = 0, s = 0, a = 0, c;
1499
1499
  const u = o.length;
1500
- for (let g = 0; g < u; g++) {
1501
- const y = o[g];
1500
+ for (let y = 0; y < u; y++) {
1501
+ const g = o[y];
1502
1502
  if (l === 0 && s === 0) {
1503
- if (y === si) {
1504
- i.push(o.slice(a, g)), a = g + 1;
1503
+ if (g === si) {
1504
+ i.push(o.slice(a, y)), a = y + 1;
1505
1505
  continue;
1506
1506
  }
1507
- if (y === "/") {
1508
- c = g;
1507
+ if (g === "/") {
1508
+ c = y;
1509
1509
  continue;
1510
1510
  }
1511
1511
  }
1512
- y === "[" ? l++ : y === "]" ? l-- : y === "(" ? s++ : y === ")" && s--;
1512
+ g === "[" ? l++ : g === "]" ? l-- : g === "(" ? s++ : g === ")" && s--;
1513
1513
  }
1514
1514
  const d = i.length === 0 ? o : o.slice(a);
1515
1515
  let h = d, f = !1;
@@ -1567,15 +1567,15 @@ const Qu = (t, e) => {
1567
1567
  modifiers: h,
1568
1568
  hasImportantModifier: f,
1569
1569
  baseClassName: m,
1570
- maybePostfixModifierPosition: g
1570
+ maybePostfixModifierPosition: y
1571
1571
  } = n(u);
1572
1572
  if (d) {
1573
1573
  a = u + (a.length > 0 ? " " + a : a);
1574
1574
  continue;
1575
1575
  }
1576
- let y = !!g, x = r(y ? m.substring(0, g) : m);
1576
+ let g = !!y, x = r(g ? m.substring(0, y) : m);
1577
1577
  if (!x) {
1578
- if (!y) {
1578
+ if (!g) {
1579
1579
  a = u + (a.length > 0 ? " " + a : a);
1580
1580
  continue;
1581
1581
  }
@@ -1583,13 +1583,13 @@ const Qu = (t, e) => {
1583
1583
  a = u + (a.length > 0 ? " " + a : a);
1584
1584
  continue;
1585
1585
  }
1586
- y = !1;
1586
+ g = !1;
1587
1587
  }
1588
1588
  const v = h.length === 0 ? "" : h.length === 1 ? h[0] : i(h).join(":"), T = f ? v + _r : v, w = T + x;
1589
1589
  if (l.indexOf(w) > -1)
1590
1590
  continue;
1591
1591
  l.push(w);
1592
- const D = o(x, y);
1592
+ const D = o(x, g);
1593
1593
  for (let B = 0; B < D.length; ++B) {
1594
1594
  const N = D[B];
1595
1595
  l.push(T + N);
@@ -1637,7 +1637,7 @@ const Qu = (t, e) => {
1637
1637
  const r = Yl.exec(t);
1638
1638
  return r ? r[1] ? e(r[1]) : n : !1;
1639
1639
  }, Zl = (t) => t === "position" || t === "percentage", Jl = (t) => t === "image" || t === "url", Ql = (t) => t === "length" || t === "size" || t === "bg-size", es = (t) => t === "length", Od = (t) => t === "number", Ad = (t) => t === "family-name", ts = (t) => t === "shadow", Vr = () => {
1640
- const t = ye("color"), e = ye("font"), n = ye("text"), r = ye("font-weight"), o = ye("tracking"), i = ye("leading"), l = ye("breakpoint"), s = ye("container"), a = ye("spacing"), c = ye("radius"), u = ye("shadow"), d = ye("inset-shadow"), h = ye("text-shadow"), f = ye("drop-shadow"), m = ye("blur"), g = ye("perspective"), y = ye("aspect"), x = ye("ease"), v = ye("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w = () => [
1640
+ const t = ye("color"), e = ye("font"), n = ye("text"), r = ye("font-weight"), o = ye("tracking"), i = ye("leading"), l = ye("breakpoint"), s = ye("container"), a = ye("spacing"), c = ye("radius"), u = ye("shadow"), d = ye("inset-shadow"), h = ye("text-shadow"), f = ye("drop-shadow"), m = ye("blur"), y = ye("perspective"), g = ye("aspect"), x = ye("ease"), v = ye("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w = () => [
1641
1641
  "center",
1642
1642
  "top",
1643
1643
  "bottom",
@@ -1711,7 +1711,7 @@ const Qu = (t, e) => {
1711
1711
  * @see https://tailwindcss.com/docs/aspect-ratio
1712
1712
  */
1713
1713
  aspect: [{
1714
- aspect: ["auto", "square", xt, z, H, y]
1714
+ aspect: ["auto", "square", xt, z, H, g]
1715
1715
  }],
1716
1716
  /**
1717
1717
  * Container
@@ -3611,7 +3611,7 @@ const Qu = (t, e) => {
3611
3611
  * @see https://tailwindcss.com/docs/perspective
3612
3612
  */
3613
3613
  perspective: [{
3614
- perspective: [g, H, z]
3614
+ perspective: [y, H, z]
3615
3615
  }],
3616
3616
  /**
3617
3617
  * Perspective Origin
@@ -5327,7 +5327,7 @@ class xn {
5327
5327
  Mt = new WeakMap();
5328
5328
  const gi = Symbol("linkClicked"), yi = "react-aria-pressable-style", vi = "data-react-aria-pressable";
5329
5329
  function it(t) {
5330
- let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: o, onPressUp: i, onClick: l, isDisabled: s, isPressed: a, preventFocusOnPress: c, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: h, ...f } = Mf(t), [m, g] = G(!1), y = K({
5330
+ let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: o, onPressUp: i, onClick: l, isDisabled: s, isPressed: a, preventFocusOnPress: c, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: h, ...f } = Mf(t), [m, y] = G(!1), g = K({
5331
5331
  isPressed: !1,
5332
5332
  ignoreEmulatedMouseEvents: !1,
5333
5333
  didFirePressStart: !1,
@@ -5338,20 +5338,20 @@ function it(t) {
5338
5338
  pointerType: null,
5339
5339
  disposables: []
5340
5340
  }), { addGlobalListener: x, removeAllGlobalListeners: v } = Qn(), T = X((p, E) => {
5341
- let L = y.current;
5341
+ let L = g.current;
5342
5342
  if (s || L.didFirePressStart) return !1;
5343
5343
  let S = !0;
5344
5344
  if (L.isTriggeringEvent = !0, r) {
5345
5345
  let M = new xn("pressstart", E, p);
5346
5346
  r(M), S = M.shouldStopPropagation;
5347
5347
  }
5348
- return n && n(!0), L.isTriggeringEvent = !1, L.didFirePressStart = !0, g(!0), S;
5348
+ return n && n(!0), L.isTriggeringEvent = !1, L.didFirePressStart = !0, y(!0), S;
5349
5349
  }, [
5350
5350
  s,
5351
5351
  r,
5352
5352
  n
5353
5353
  ]), w = X((p, E, L = !0) => {
5354
- let S = y.current;
5354
+ let S = g.current;
5355
5355
  if (!S.didFirePressStart) return !1;
5356
5356
  S.didFirePressStart = !1, S.isTriggeringEvent = !0;
5357
5357
  let M = !0;
@@ -5359,7 +5359,7 @@ function it(t) {
5359
5359
  let $ = new xn("pressend", E, p);
5360
5360
  o($), M = $.shouldStopPropagation;
5361
5361
  }
5362
- if (n && n(!1), g(!1), e && L && !s) {
5362
+ if (n && n(!1), y(!1), e && L && !s) {
5363
5363
  let $ = new xn("press", E, p);
5364
5364
  e($), M && (M = $.shouldStopPropagation);
5365
5365
  }
@@ -5370,7 +5370,7 @@ function it(t) {
5370
5370
  n,
5371
5371
  e
5372
5372
  ]), D = Ke(w), B = X((p, E) => {
5373
- let L = y.current;
5373
+ let L = g.current;
5374
5374
  if (s) return !1;
5375
5375
  if (i) {
5376
5376
  L.isTriggeringEvent = !0;
@@ -5382,7 +5382,7 @@ function it(t) {
5382
5382
  s,
5383
5383
  i
5384
5384
  ]), N = Ke(B), I = X((p) => {
5385
- let E = y.current;
5385
+ let E = g.current;
5386
5386
  if (E.isPressed && E.target) {
5387
5387
  E.didFirePressStart && E.pointerType != null && w(dt(E.target, p), E.pointerType, !1), E.isPressed = !1, E.isOverTarget = !1, E.activePointerId = null, E.pointerType = null, v(), d || wr(E.target);
5388
5388
  for (let L of E.disposables) L();
@@ -5394,8 +5394,8 @@ function it(t) {
5394
5394
  w
5395
5395
  ]), A = Ke(I);
5396
5396
  Z(() => {
5397
- s && y.current.isPressed && A({
5398
- currentTarget: y.current.target,
5397
+ s && g.current.isPressed && A({
5398
+ currentTarget: g.current.target,
5399
5399
  shiftKey: !1,
5400
5400
  ctrlKey: !1,
5401
5401
  metaKey: !1,
@@ -5423,7 +5423,7 @@ function it(t) {
5423
5423
  s,
5424
5424
  l
5425
5425
  ]), V = Q(() => {
5426
- let p = y.current, E = {
5426
+ let p = g.current, E = {
5427
5427
  onKeyDown(S) {
5428
5428
  var M;
5429
5429
  if (Er(S.nativeEvent, S.currentTarget) && Y(S.currentTarget, _(S))) {
@@ -5606,7 +5606,7 @@ function it(t) {
5606
5606
  }, [
5607
5607
  h
5608
5608
  ]), Z(() => {
5609
- let p = y.current;
5609
+ let p = g.current;
5610
5610
  return () => {
5611
5611
  d || wr(p.target ?? void 0);
5612
5612
  for (let E of p.disposables) E();
@@ -5703,9 +5703,9 @@ function vs(t, e) {
5703
5703
  return t.type === "checkbox" || t.type === "radio" ? e === " " : Rf.has(t.type);
5704
5704
  }
5705
5705
  function Kf(t, e) {
5706
- let { elementType: n = "button", isDisabled: r, onPress: o, onPressStart: i, onPressEnd: l, onPressUp: s, onPressChange: a, preventFocusOnPress: c, allowFocusWhenDisabled: u, onClick: d, href: h, target: f, rel: m, type: g = "button" } = t, y;
5707
- n === "button" ? y = {
5708
- type: g,
5706
+ let { elementType: n = "button", isDisabled: r, onPress: o, onPressStart: i, onPressEnd: l, onPressUp: s, onPressChange: a, preventFocusOnPress: c, allowFocusWhenDisabled: u, onClick: d, href: h, target: f, rel: m, type: y = "button" } = t, g;
5707
+ n === "button" ? g = {
5708
+ type: y,
5709
5709
  disabled: r,
5710
5710
  form: t.form,
5711
5711
  formAction: t.formAction,
@@ -5715,11 +5715,11 @@ function Kf(t, e) {
5715
5715
  formTarget: t.formTarget,
5716
5716
  name: t.name,
5717
5717
  value: t.value
5718
- } : y = {
5718
+ } : g = {
5719
5719
  role: "button",
5720
5720
  href: n === "a" && !r ? h : void 0,
5721
5721
  target: n === "a" ? f : void 0,
5722
- type: n === "input" ? g : void 0,
5722
+ type: n === "input" ? y : void 0,
5723
5723
  disabled: n === "input" ? r : void 0,
5724
5724
  "aria-disabled": !r || n === "input" ? void 0 : r,
5725
5725
  rel: n === "a" ? m : void 0
@@ -5741,7 +5741,7 @@ function Kf(t, e) {
5741
5741
  }));
5742
5742
  return {
5743
5743
  isPressed: v,
5744
- buttonProps: ne(y, w, {
5744
+ buttonProps: ne(g, w, {
5745
5745
  "aria-haspopup": t["aria-haspopup"],
5746
5746
  "aria-expanded": t["aria-expanded"],
5747
5747
  "aria-controls": t["aria-controls"],
@@ -5767,14 +5767,14 @@ function To(t) {
5767
5767
  const f = se(h), m = ue(f);
5768
5768
  if (!i.current.isFocusWithin && m === h) {
5769
5769
  r && r(d), o && o(!0), i.current.isFocusWithin = !0, c(d);
5770
- let g = d.currentTarget;
5771
- l(f, "focus", (y) => {
5772
- let x = _(y);
5773
- if (i.current.isFocusWithin && !Y(g, x)) {
5770
+ let y = d.currentTarget;
5771
+ l(f, "focus", (g) => {
5772
+ let x = _(g);
5773
+ if (i.current.isFocusWithin && !Y(y, x)) {
5774
5774
  let v = new f.defaultView.FocusEvent("blur", {
5775
5775
  relatedTarget: x
5776
5776
  });
5777
- ds(v, g);
5777
+ ds(v, y);
5778
5778
  let T = Co(v);
5779
5779
  a(T);
5780
5780
  }
@@ -5858,37 +5858,37 @@ function hn(t) {
5858
5858
  }).current;
5859
5859
  Z(Of, []);
5860
5860
  let { addGlobalListener: a, removeAllGlobalListeners: c } = Qn(), { hoverProps: u, triggerHoverEnd: d } = Q(() => {
5861
- let h = (g, y) => {
5862
- if (s.pointerType = y, o || y === "touch" || s.isHovered || !Y(g.currentTarget, _(g))) return;
5861
+ let h = (y, g) => {
5862
+ if (s.pointerType = g, o || g === "touch" || s.isHovered || !Y(y.currentTarget, _(y))) return;
5863
5863
  s.isHovered = !0;
5864
- let x = g.currentTarget;
5865
- s.target = x, a(se(_(g)), "pointerover", (v) => {
5864
+ let x = y.currentTarget;
5865
+ s.target = x, a(se(_(y)), "pointerover", (v) => {
5866
5866
  s.isHovered && s.target && !Y(s.target, _(v)) && f(v, v.pointerType);
5867
5867
  }, {
5868
5868
  capture: !0
5869
5869
  }), e && e({
5870
5870
  type: "hoverstart",
5871
5871
  target: x,
5872
- pointerType: y
5872
+ pointerType: g
5873
5873
  }), n && n(!0), l(!0);
5874
- }, f = (g, y) => {
5874
+ }, f = (y, g) => {
5875
5875
  let x = s.target;
5876
- s.pointerType = "", s.target = null, !(y === "touch" || !s.isHovered || !x) && (s.isHovered = !1, c(), r && r({
5876
+ s.pointerType = "", s.target = null, !(g === "touch" || !s.isHovered || !x) && (s.isHovered = !1, c(), r && r({
5877
5877
  type: "hoverend",
5878
5878
  target: x,
5879
- pointerType: y
5879
+ pointerType: g
5880
5880
  }), n && n(!1), l(!1));
5881
5881
  }, m = {};
5882
- return typeof PointerEvent < "u" ? (m.onPointerEnter = (g) => {
5883
- Wn && g.pointerType === "mouse" || h(g, g.pointerType);
5884
- }, m.onPointerLeave = (g) => {
5885
- !o && Y(g.currentTarget, _(g)) && f(g, g.pointerType);
5882
+ return typeof PointerEvent < "u" ? (m.onPointerEnter = (y) => {
5883
+ Wn && y.pointerType === "mouse" || h(y, y.pointerType);
5884
+ }, m.onPointerLeave = (y) => {
5885
+ !o && Y(y.currentTarget, _(y)) && f(y, y.pointerType);
5886
5886
  }) : process.env.NODE_ENV === "test" && (m.onTouchStart = () => {
5887
5887
  s.ignoreEmulatedMouseEvents = !0;
5888
- }, m.onMouseEnter = (g) => {
5889
- !s.ignoreEmulatedMouseEvents && !Wn && h(g, "mouse"), s.ignoreEmulatedMouseEvents = !1;
5890
- }, m.onMouseLeave = (g) => {
5891
- !o && Y(g.currentTarget, _(g)) && f(g, "mouse");
5888
+ }, m.onMouseEnter = (y) => {
5889
+ !s.ignoreEmulatedMouseEvents && !Wn && h(y, "mouse"), s.ignoreEmulatedMouseEvents = !1;
5890
+ }, m.onMouseLeave = (y) => {
5891
+ !o && Y(y.currentTarget, _(y)) && f(y, "mouse");
5892
5892
  }), {
5893
5893
  hoverProps: m,
5894
5894
  triggerHoverEnd: f
@@ -5931,18 +5931,18 @@ const $s = /* @__PURE__ */ q({}), No = /* @__PURE__ */ of(function(e, n) {
5931
5931
  ...e,
5932
5932
  values: h,
5933
5933
  defaultClassName: "react-aria-Button"
5934
- }), m = xe(i.id), g = xe(), y = i["aria-labelledby"];
5935
- o && (y ? y = `${y} ${g}` : i["aria-label"] && (y = `${m} ${g}`));
5934
+ }), m = xe(i.id), y = xe(), g = i["aria-labelledby"];
5935
+ o && (g ? g = `${g} ${y}` : i["aria-label"] && (g = `${m} ${y}`));
5936
5936
  let x = K(o);
5937
5937
  Z(() => {
5938
5938
  let T = {
5939
- "aria-labelledby": y || m
5939
+ "aria-labelledby": g || m
5940
5940
  };
5941
5941
  (!x.current && a && o || x.current && a && !o) && hi(T, "assertive"), x.current = o;
5942
5942
  }, [
5943
5943
  o,
5944
5944
  a,
5945
- y,
5945
+ g,
5946
5946
  m
5947
5947
  ]);
5948
5948
  let v = me(e, {
@@ -5955,7 +5955,7 @@ const $s = /* @__PURE__ */ q({}), No = /* @__PURE__ */ of(function(e, n) {
5955
5955
  type: i.type === "submit" && o ? "button" : i.type,
5956
5956
  id: m,
5957
5957
  ref: n,
5958
- "aria-labelledby": y,
5958
+ "aria-labelledby": g,
5959
5959
  slot: e.slot || void 0,
5960
5960
  "aria-disabled": o ? "true" : i["aria-disabled"],
5961
5961
  "data-disabled": e.isDisabled || void 0,
@@ -5966,7 +5966,7 @@ const $s = /* @__PURE__ */ q({}), No = /* @__PURE__ */ of(function(e, n) {
5966
5966
  "data-focus-visible": c || void 0
5967
5967
  }, /* @__PURE__ */ C.createElement(cs.Provider, {
5968
5968
  value: {
5969
- id: g
5969
+ id: y
5970
5970
  }
5971
5971
  }, f.children));
5972
5972
  }), Af = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
@@ -6143,39 +6143,39 @@ let zt = /* @__PURE__ */ new WeakMap(), ke = [];
6143
6143
  function ws(t, e) {
6144
6144
  let n = $e(t == null ? void 0 : t[0]), r = e instanceof n.Element ? {
6145
6145
  root: e
6146
- } : e, o = (r == null ? void 0 : r.root) ?? document.body, i = (r == null ? void 0 : r.shouldUseInert) && Yf, l = new Set(t), s = /* @__PURE__ */ new Set(), a = (y) => i && y instanceof n.HTMLElement ? y.inert : y.getAttribute("aria-hidden") === "true", c = (y, x) => {
6147
- i && y instanceof n.HTMLElement ? y.inert = x : x ? y.setAttribute("aria-hidden", "true") : (y.removeAttribute("aria-hidden"), y instanceof n.HTMLElement && (y.inert = !1));
6146
+ } : e, o = (r == null ? void 0 : r.root) ?? document.body, i = (r == null ? void 0 : r.shouldUseInert) && Yf, l = new Set(t), s = /* @__PURE__ */ new Set(), a = (g) => i && g instanceof n.HTMLElement ? g.inert : g.getAttribute("aria-hidden") === "true", c = (g, x) => {
6147
+ i && g instanceof n.HTMLElement ? g.inert = x : x ? g.setAttribute("aria-hidden", "true") : (g.removeAttribute("aria-hidden"), g instanceof n.HTMLElement && (g.inert = !1));
6148
6148
  }, u = /* @__PURE__ */ new Set();
6149
6149
  if (We())
6150
- for (let y of t) {
6151
- let x = y;
6150
+ for (let g of t) {
6151
+ let x = g;
6152
6152
  for (; x && x !== o; ) {
6153
6153
  let v = x.getRootNode();
6154
6154
  "shadowRoot" in v && u.add(v.shadowRoot), x = v.parentNode;
6155
6155
  }
6156
6156
  }
6157
- let d = (y) => {
6158
- for (let w of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(w);
6157
+ let d = (g) => {
6158
+ for (let w of g.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(w);
6159
6159
  let x = (w) => {
6160
6160
  if (s.has(w) || l.has(w) || w.parentElement && s.has(w.parentElement) && w.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
6161
6161
  for (let D of l)
6162
6162
  if (Y(w, D)) return NodeFilter.FILTER_SKIP;
6163
6163
  return NodeFilter.FILTER_ACCEPT;
6164
- }, v = Ll(se(y), y, NodeFilter.SHOW_ELEMENT, {
6164
+ }, v = Ll(se(g), g, NodeFilter.SHOW_ELEMENT, {
6165
6165
  acceptNode: x
6166
- }), T = x(y);
6167
- if (T === NodeFilter.FILTER_ACCEPT && h(y), T !== NodeFilter.FILTER_REJECT) {
6166
+ }), T = x(g);
6167
+ if (T === NodeFilter.FILTER_ACCEPT && h(g), T !== NodeFilter.FILTER_REJECT) {
6168
6168
  let w = v.nextNode();
6169
6169
  for (; w != null; )
6170
6170
  h(w), w = v.nextNode();
6171
6171
  }
6172
- }, h = (y) => {
6173
- let x = zt.get(y) ?? 0;
6174
- a(y) && x === 0 || (x === 0 && c(y, !0), s.add(y), zt.set(y, x + 1));
6172
+ }, h = (g) => {
6173
+ let x = zt.get(g) ?? 0;
6174
+ a(g) && x === 0 || (x === 0 && c(g, !0), s.add(g), zt.set(g, x + 1));
6175
6175
  };
6176
6176
  ke.length && ke[ke.length - 1].disconnect(), d(o);
6177
- let f = new MutationObserver((y) => {
6178
- for (let x of y)
6177
+ let f = new MutationObserver((g) => {
6178
+ for (let x of g)
6179
6179
  if (x.type === "childList") {
6180
6180
  if (x.target.isConnected && ![
6181
6181
  ...l,
@@ -6195,7 +6195,7 @@ function ws(t, e) {
6195
6195
  subtree: !0
6196
6196
  });
6197
6197
  let m = /* @__PURE__ */ new Set();
6198
- if (We()) for (let y of u) {
6198
+ if (We()) for (let g of u) {
6199
6199
  let x = new MutationObserver((v) => {
6200
6200
  for (let T of v)
6201
6201
  if (T.type === "childList") {
@@ -6212,12 +6212,12 @@ function ws(t, e) {
6212
6212
  }
6213
6213
  }
6214
6214
  });
6215
- x.observe(y, {
6215
+ x.observe(g, {
6216
6216
  childList: !0,
6217
6217
  subtree: !0
6218
6218
  }), m.add(x);
6219
6219
  }
6220
- let g = {
6220
+ let y = {
6221
6221
  visibleNodes: l,
6222
6222
  hiddenNodes: s,
6223
6223
  observe() {
@@ -6230,13 +6230,13 @@ function ws(t, e) {
6230
6230
  f.disconnect();
6231
6231
  }
6232
6232
  };
6233
- return ke.push(g), () => {
6234
- if (f.disconnect(), We()) for (let y of m) y.disconnect();
6235
- for (let y of s) {
6236
- let x = zt.get(y);
6237
- x != null && (x === 1 ? (c(y, !1), zt.delete(y)) : zt.set(y, x - 1));
6233
+ return ke.push(y), () => {
6234
+ if (f.disconnect(), We()) for (let g of m) g.disconnect();
6235
+ for (let g of s) {
6236
+ let x = zt.get(g);
6237
+ x != null && (x === 1 ? (c(g, !1), zt.delete(g)) : zt.set(g, x - 1));
6238
6238
  }
6239
- g === ke[ke.length - 1] ? (ke.pop(), ke.length && ke[ke.length - 1].observe()) : ke.splice(ke.indexOf(g), 1);
6239
+ y === ke[ke.length - 1] ? (ke.pop(), ke.length && ke[ke.length - 1].observe()) : ke.splice(ke.indexOf(y), 1);
6240
6240
  };
6241
6241
  }
6242
6242
  function Xf(t) {
@@ -6320,13 +6320,13 @@ function Ti(t) {
6320
6320
  }, En[t];
6321
6321
  }
6322
6322
  function Sr(t, e, n, r, o, i, l, s, a, c, u) {
6323
- let { placement: d, crossPlacement: h, axis: f, crossAxis: m, size: g, crossSize: y } = r, x = {};
6324
- x[m] = t[m] ?? 0, h === "center" ? x[m] += ((t[y] ?? 0) - (n[y] ?? 0)) / 2 : h !== m && (x[m] += (t[y] ?? 0) - (n[y] ?? 0)), x[m] += i;
6325
- const v = t[m] - n[y] + a + c, T = t[m] + t[y] - a - c;
6323
+ let { placement: d, crossPlacement: h, axis: f, crossAxis: m, size: y, crossSize: g } = r, x = {};
6324
+ x[m] = t[m] ?? 0, h === "center" ? x[m] += ((t[g] ?? 0) - (n[g] ?? 0)) / 2 : h !== m && (x[m] += (t[g] ?? 0) - (n[g] ?? 0)), x[m] += i;
6325
+ const v = t[m] - n[g] + a + c, T = t[m] + t[g] - a - c;
6326
6326
  if (x[m] = Vn(x[m], v, T), d === f) {
6327
- let w = s ? u[g] : u[Es[g]];
6327
+ let w = s ? u[y] : u[Es[y]];
6328
6328
  x[Gn[f]] = Math.floor(w - t[f] + o);
6329
- } else x[f] = Math.floor(t[f] + t[g] + o);
6329
+ } else x[f] = Math.floor(t[f] + t[y] + o);
6330
6330
  return x;
6331
6331
  }
6332
6332
  function th(t, e, n, r, o, i, l, s, a, c, u) {
@@ -6352,20 +6352,20 @@ function Mi(t, e, n, r, o, i, l, s) {
6352
6352
  (r[c] ?? 0) - // margins usually for arrows or other decorations
6353
6353
  r[Gn[c]] - o) : Math.max(0, t[u] + t[c] + (s ? e[c] : 0) - n[c] - n[u] + (l.scroll[c] ?? 0) - (r[c] ?? 0) - r[Gn[c]] - o);
6354
6354
  }
6355
- function nh(t, e, n, r, o, i, l, s, a, c, u, d, h, f, m, g, y, x) {
6356
- let v = Ti(t), { size: T, crossAxis: w, crossSize: D, placement: B, crossPlacement: N } = v, I = Sr(e, s, n, v, u, d, c, h, m, g, a), A = u, k = Mi(s, c, e, o, i + u, v, a, y);
6355
+ function nh(t, e, n, r, o, i, l, s, a, c, u, d, h, f, m, y, g, x) {
6356
+ let v = Ti(t), { size: T, crossAxis: w, crossSize: D, placement: B, crossPlacement: N } = v, I = Sr(e, s, n, v, u, d, c, h, m, y, a), A = u, k = Mi(s, c, e, o, i + u, v, a, g);
6357
6357
  if (l && n[T] > k) {
6358
- let ae = Ti(`${Gn[B]} ${N}`), pe = Sr(e, s, n, ae, u, d, c, h, m, g, a);
6359
- Mi(s, c, e, o, i + u, ae, a, y) > k && (v = ae, I = pe, A = u);
6358
+ let ae = Ti(`${Gn[B]} ${N}`), pe = Sr(e, s, n, ae, u, d, c, h, m, y, a);
6359
+ Mi(s, c, e, o, i + u, ae, a, g) > k && (v = ae, I = pe, A = u);
6360
6360
  }
6361
6361
  let O = "bottom";
6362
6362
  v.axis === "top" ? v.placement === "top" ? O = "top" : v.placement === "bottom" && (O = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? O = "bottom" : v.crossPlacement === "bottom" && (O = "top"));
6363
6363
  let W = ki(w, I[w], n[D], s, a, i, c);
6364
6364
  I[w] += W;
6365
- let V = th(I, s, c, h, o, i, n.height, O, a, y, x);
6366
- f && f < V && (V = f), n.height = Math.min(n.height, V), I = Sr(e, s, n, v, A, d, c, h, m, g, a), W = ki(w, I[w], n[D], s, a, i, c), I[w] += W;
6365
+ let V = th(I, s, c, h, o, i, n.height, O, a, g, x);
6366
+ f && f < V && (V = f), n.height = Math.min(n.height, V), I = Sr(e, s, n, v, A, d, c, h, m, y, a), W = ki(w, I[w], n[D], s, a, i, c), I[w] += W;
6367
6367
  let p = {}, E = e[w] - I[w] - o[Re[w]], L = E + 0.5 * e[D];
6368
- const S = m / 2 + g, M = Re[w] === "left" ? (o.left ?? 0) + (o.right ?? 0) : (o.top ?? 0) + (o.bottom ?? 0), $ = n[D] - M - m / 2 - g, P = e[w] + m / 2 - (I[w] + o[Re[w]]), R = e[w] + e[D] - m / 2 - (I[w] + o[Re[w]]), J = Vn(L, P, R);
6368
+ const S = m / 2 + y, M = Re[w] === "left" ? (o.left ?? 0) + (o.right ?? 0) : (o.top ?? 0) + (o.bottom ?? 0), $ = n[D] - M - m / 2 - y, P = e[w] + m / 2 - (I[w] + o[Re[w]]), R = e[w] + e[D] - m / 2 - (I[w] + o[Re[w]]), J = Vn(L, P, R);
6369
6369
  p[w] = Vn(J, S, $), { placement: B, crossPlacement: N } = v, m ? E = p[w] : N === "right" ? E += e[D] : N === "center" && (E += e[D] / 2);
6370
6370
  let ee = B === "left" || B === "top" ? n[T] : 0, te = {
6371
6371
  x: B === "top" || B === "bottom" ? E : ee,
@@ -6381,17 +6381,17 @@ function nh(t, e, n, r, o, i, l, s, a, c, u, d, h, f, m, g, y, x) {
6381
6381
  };
6382
6382
  }
6383
6383
  function rh(t) {
6384
- let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: a, crossOffset: c, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: h = 0 } = t, f = Jf(), m = r instanceof HTMLElement ? oh(r) : document.documentElement, g = m === document.documentElement;
6385
- const y = window.getComputedStyle(m).position;
6386
- let x = !!y && y !== "static", v = g ? ln(n, !1) : Ni(n, m, !1);
6387
- if (!g) {
6384
+ let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: a, crossOffset: c, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: h = 0 } = t, f = Jf(), m = r instanceof HTMLElement ? oh(r) : document.documentElement, y = m === document.documentElement;
6385
+ const g = window.getComputedStyle(m).position;
6386
+ let x = !!g && g !== "static", v = y ? ln(n, !1) : Ni(n, m, !1);
6387
+ if (!y) {
6388
6388
  let { marginTop: k, marginLeft: O } = window.getComputedStyle(n);
6389
6389
  v.top += parseInt(k, 10) || 0, v.left += parseInt(O, 10) || 0;
6390
6390
  }
6391
6391
  let T = ln(r, !0), w = eh(r);
6392
6392
  T.width += (w.left ?? 0) + (w.right ?? 0), T.height += (w.top ?? 0) + (w.bottom ?? 0);
6393
6393
  let D = Qf(o), B = Ci(s, f), N = Ci(m, f), I;
6394
- if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
6394
+ if ((s.tagName === "BODY" || s.tagName === "HTML") && !y) {
6395
6395
  let k = rr(m, !1);
6396
6396
  I = {
6397
6397
  top: -(k.top - B.top),
@@ -6399,7 +6399,7 @@ function rh(t) {
6399
6399
  width: 0,
6400
6400
  height: 0
6401
6401
  };
6402
- } else (s.tagName === "BODY" || s.tagName === "HTML") && g ? I = {
6402
+ } else (s.tagName === "BODY" || s.tagName === "HTML") && y ? I = {
6403
6403
  top: 0,
6404
6404
  left: 0,
6405
6405
  width: 0,
@@ -6468,7 +6468,7 @@ function ih(t) {
6468
6468
  }
6469
6469
  let be = typeof document < "u" ? window.visualViewport : null;
6470
6470
  function lh(t) {
6471
- let { direction: e } = $t(), { arrowSize: n, targetRef: r, overlayRef: o, arrowRef: i, scrollRef: l = o, placement: s = "bottom", containerPadding: a = 12, shouldFlip: c = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: h = 0, shouldUpdatePosition: f = !0, isOpen: m = !0, onClose: g, maxHeight: y, arrowBoundaryOffset: x = 0 } = t, [v, T] = G(null), w = [
6471
+ let { direction: e } = $t(), { arrowSize: n, targetRef: r, overlayRef: o, arrowRef: i, scrollRef: l = o, placement: s = "bottom", containerPadding: a = 12, shouldFlip: c = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: h = 0, shouldUpdatePosition: f = !0, isOpen: m = !0, onClose: y, maxHeight: g, arrowBoundaryOffset: x = 0 } = t, [v, T] = G(null), w = [
6472
6472
  f,
6473
6473
  s,
6474
6474
  o.current,
@@ -6482,7 +6482,7 @@ function lh(t) {
6482
6482
  h,
6483
6483
  m,
6484
6484
  e,
6485
- y,
6485
+ g,
6486
6486
  x,
6487
6487
  n
6488
6488
  ], D = K(be == null ? void 0 : be.scale);
@@ -6503,7 +6503,7 @@ function lh(t) {
6503
6503
  }, A.offset > L.height / 2 && (A.type = "bottom", A.offset = ((E == null ? void 0 : E.bottom) ?? 0) - L.bottom);
6504
6504
  }
6505
6505
  let k = o.current;
6506
- !y && o.current && (k.style.top = "0px", k.style.bottom = "", k.style.maxHeight = (((p = window.visualViewport) == null ? void 0 : p.height) ?? window.innerHeight) + "px");
6506
+ !g && o.current && (k.style.top = "0px", k.style.bottom = "", k.style.maxHeight = (((p = window.visualViewport) == null ? void 0 : p.height) ?? window.innerHeight) + "px");
6507
6507
  let O = rh({
6508
6508
  placement: ah(s, e),
6509
6509
  overlayNode: o.current,
@@ -6514,7 +6514,7 @@ function lh(t) {
6514
6514
  boundaryElement: u,
6515
6515
  offset: d,
6516
6516
  crossOffset: h,
6517
- maxHeight: y,
6517
+ maxHeight: g,
6518
6518
  arrowSize: n ?? (i != null && i.current ? rr(i.current, !0).width : 0),
6519
6519
  arrowBoundaryOffset: x
6520
6520
  });
@@ -6550,15 +6550,15 @@ function lh(t) {
6550
6550
  B
6551
6551
  ]);
6552
6552
  let I = X(() => {
6553
- N.current || g == null || g();
6553
+ N.current || y == null || y();
6554
6554
  }, [
6555
- g,
6555
+ y,
6556
6556
  N
6557
6557
  ]);
6558
6558
  return ih({
6559
6559
  triggerRef: r,
6560
6560
  isOpen: m,
6561
- onClose: g && I
6561
+ onClose: y && I
6562
6562
  }), {
6563
6563
  overlayProps: {
6564
6564
  style: {
@@ -6617,12 +6617,12 @@ function Ps(t) {
6617
6617
  }, [
6618
6618
  n
6619
6619
  ]), le(() => {
6620
- var g;
6621
- let h = (g = i.current) == null ? void 0 : g.nextSibling, f = [], m = (y) => y.stopPropagation();
6620
+ var y;
6621
+ let h = (y = i.current) == null ? void 0 : y.nextSibling, f = [], m = (g) => g.stopPropagation();
6622
6622
  for (; h && h !== l.current; )
6623
6623
  f.push(h), h.addEventListener(Xr, m), h = h.nextSibling;
6624
6624
  return s.current = f, () => {
6625
- for (let y of f) y.removeEventListener(Xr, m);
6625
+ for (let g of f) g.removeEventListener(Xr, m);
6626
6626
  };
6627
6627
  }, [
6628
6628
  e
@@ -7070,8 +7070,8 @@ function Ts(t, e) {
7070
7070
  let c = () => {
7071
7071
  Ve[Ve.length - 1] === e && n && n();
7072
7072
  }, u = (m) => {
7073
- const g = Ve[Ve.length - 1];
7074
- a.current = g, (!s || s(_(m))) && g === e && m.stopPropagation();
7073
+ const y = Ve[Ve.length - 1];
7074
+ a.current = y, (!s || s(_(m))) && y === e && m.stopPropagation();
7075
7075
  }, d = (m) => {
7076
7076
  (!s || s(_(m))) && (Ve[Ve.length - 1] === e && m.stopPropagation(), a.current === e && c()), a.current = void 0;
7077
7077
  }, h = (m) => {
@@ -7211,7 +7211,7 @@ function $h(t, e) {
7211
7211
  isDismissable: !i || c,
7212
7212
  isKeyboardDismissDisabled: l,
7213
7213
  shouldCloseOnInteractOutside: s
7214
- }, o ?? r), { overlayProps: h, arrowProps: f, placement: m, triggerAnchorPoint: g } = lh({
7214
+ }, o ?? r), { overlayProps: h, arrowProps: f, placement: m, triggerAnchorPoint: y } = lh({
7215
7215
  ...a,
7216
7216
  targetRef: n,
7217
7217
  overlayRef: r,
@@ -7237,7 +7237,7 @@ function $h(t, e) {
7237
7237
  arrowProps: f,
7238
7238
  underlayProps: d,
7239
7239
  placement: m,
7240
- triggerAnchorPoint: g
7240
+ triggerAnchorPoint: y
7241
7241
  };
7242
7242
  }
7243
7243
  var Ns = {};
@@ -7658,13 +7658,13 @@ function Rh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
7658
7658
  // If this is a submenu/subdialog, use the root popover's container
7659
7659
  // to detect outside interaction and add aria-hidden.
7660
7660
  groupRef: a ? s : l
7661
- }, t), m = o.popoverRef, g = vo(m, !!h) || o.isEntering || !1, y = Ae({
7661
+ }, t), m = o.popoverRef, y = vo(m, !!h) || o.isEntering || !1, g = Ae({
7662
7662
  ...o,
7663
7663
  defaultClassName: "react-aria-Popover",
7664
7664
  values: {
7665
7665
  trigger: o.trigger || null,
7666
7666
  placement: h,
7667
- isEntering: g,
7667
+ isEntering: y,
7668
7668
  isExiting: e
7669
7669
  }
7670
7670
  }), x = !o.isNonModal || o.trigger === "SubmenuTrigger", [v, T] = G(!1);
@@ -7681,13 +7681,13 @@ function Rh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
7681
7681
  o.trigger
7682
7682
  ]);
7683
7683
  let w = Q(() => {
7684
- let W = y.children;
7684
+ let W = g.children;
7685
7685
  if (r) for (let V of r) W = /* @__PURE__ */ C.createElement(V.Provider, {
7686
7686
  value: null
7687
7687
  }, W);
7688
7688
  return W;
7689
7689
  }, [
7690
- y.children,
7690
+ g.children,
7691
7691
  r
7692
7692
  ]), [D, B] = G(null), N = X(() => {
7693
7693
  o.triggerRef.current && B(o.triggerRef.current.getBoundingClientRect().width + "px");
@@ -7697,19 +7697,19 @@ function Rh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
7697
7697
  le(N, [
7698
7698
  N
7699
7699
  ]), On({
7700
- ref: (k = y.style) != null && k["--trigger-width"] ? void 0 : o.triggerRef,
7700
+ ref: (k = g.style) != null && k["--trigger-width"] ? void 0 : o.triggerRef,
7701
7701
  onResize: N
7702
7702
  });
7703
7703
  let I = {
7704
7704
  ...c.style,
7705
7705
  "--trigger-anchor-point": f ? `${f.x}px ${f.y}px` : void 0,
7706
- ...y.style,
7707
- "--trigger-width": ((O = y.style) == null ? void 0 : O["--trigger-width"]) || D
7706
+ ...g.style,
7707
+ "--trigger-width": ((O = g.style) == null ? void 0 : O["--trigger-width"]) || D
7708
7708
  }, A = /* @__PURE__ */ C.createElement(we.div, {
7709
7709
  ...ne(me(o, {
7710
7710
  global: !0
7711
7711
  }), c),
7712
- ...y,
7712
+ ...g,
7713
7713
  role: v ? "dialog" : void 0,
7714
7714
  tabIndex: v ? -1 : void 0,
7715
7715
  "aria-label": o["aria-label"],
@@ -7720,7 +7720,7 @@ function Rh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
7720
7720
  dir: o.dir,
7721
7721
  "data-trigger": o.trigger,
7722
7722
  "data-placement": h,
7723
- "data-entering": g || void 0,
7723
+ "data-entering": y || void 0,
7724
7724
  "data-exiting": e || void 0
7725
7725
  }, !o.isNonModal && /* @__PURE__ */ C.createElement(Qr, {
7726
7726
  onDismiss: t.close
@@ -8186,16 +8186,16 @@ function Fh() {
8186
8186
  }
8187
8187
  var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, o = t.useEffect, i = t.useLayoutEffect, l = t.useDebugValue;
8188
8188
  function s(d, h) {
8189
- var f = h(), m = r({ inst: { value: f, getSnapshot: h } }), g = m[0].inst, y = m[1];
8189
+ var f = h(), m = r({ inst: { value: f, getSnapshot: h } }), y = m[0].inst, g = m[1];
8190
8190
  return i(
8191
8191
  function() {
8192
- g.value = f, g.getSnapshot = h, a(g) && y({ inst: g });
8192
+ y.value = f, y.getSnapshot = h, a(y) && g({ inst: y });
8193
8193
  },
8194
8194
  [d, f, h]
8195
8195
  ), o(
8196
8196
  function() {
8197
- return a(g) && y({ inst: g }), d(function() {
8198
- a(g) && y({ inst: g });
8197
+ return a(y) && g({ inst: y }), d(function() {
8198
+ a(y) && g({ inst: y });
8199
8199
  });
8200
8200
  },
8201
8201
  [d]
@@ -8237,22 +8237,22 @@ function _h() {
8237
8237
  u || o.startTransition === void 0 || (u = !0, console.error(
8238
8238
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
8239
8239
  ));
8240
- var g = m();
8240
+ var y = m();
8241
8241
  if (!d) {
8242
- var y = m();
8243
- i(g, y) || (console.error(
8242
+ var g = m();
8243
+ i(y, g) || (console.error(
8244
8244
  "The result of getSnapshot should be cached to avoid an infinite loop"
8245
8245
  ), d = !0);
8246
8246
  }
8247
- y = l({
8248
- inst: { value: g, getSnapshot: m }
8247
+ g = l({
8248
+ inst: { value: y, getSnapshot: m }
8249
8249
  });
8250
- var x = y[0].inst, v = y[1];
8250
+ var x = g[0].inst, v = g[1];
8251
8251
  return a(
8252
8252
  function() {
8253
- x.value = g, x.getSnapshot = m, n(x) && v({ inst: x });
8253
+ x.value = y, x.getSnapshot = m, n(x) && v({ inst: x });
8254
8254
  },
8255
- [f, g, m]
8255
+ [f, y, m]
8256
8256
  ), s(
8257
8257
  function() {
8258
8258
  return n(x) && v({ inst: x }), f(function() {
@@ -8260,14 +8260,14 @@ function _h() {
8260
8260
  });
8261
8261
  },
8262
8262
  [f]
8263
- ), c(g), g;
8263
+ ), c(y), y;
8264
8264
  }
8265
8265
  function n(f) {
8266
8266
  var m = f.getSnapshot;
8267
8267
  f = f.value;
8268
8268
  try {
8269
- var g = m();
8270
- return !i(f, g);
8269
+ var y = m();
8270
+ return !i(f, y);
8271
8271
  } catch {
8272
8272
  return !0;
8273
8273
  }
@@ -8745,8 +8745,8 @@ function cc(t) {
8745
8745
  type: "longpress"
8746
8746
  }), s.current = void 0;
8747
8747
  }, i), h.pointerType === "touch")) {
8748
- let f = (g) => {
8749
- g.preventDefault();
8748
+ let f = (y) => {
8749
+ y.preventDefault();
8750
8750
  }, m = $e(h.target);
8751
8751
  a(h.target, "contextmenu", f, {
8752
8752
  once: !0
@@ -8892,7 +8892,7 @@ function gp(t) {
8892
8892
  return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
8893
8893
  }
8894
8894
  function yp(t) {
8895
- let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: h = !1, scrollRef: f = r, linkBehavior: m = "action" } = t, { direction: g } = $t(), y = cn(), x = (p) => {
8895
+ let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: h = !1, scrollRef: f = r, linkBehavior: m = "action" } = t, { direction: y } = $t(), g = cn(), x = (p) => {
8896
8896
  var L, S, M, $, P, R, J, ee, te, ae, pe, ie, Se, ze;
8897
8897
  if (p.altKey && p.key === "Tab" && p.preventDefault(), !r.current || !Y(r.current, _(p))) return;
8898
8898
  const E = (j, Ne) => {
@@ -8902,7 +8902,7 @@ function yp(t) {
8902
8902
  e.setFocusedKey(j, Ne);
8903
8903
  });
8904
8904
  let Pe = Rn(r, j), ct = e.getItemProps(j);
8905
- Pe && y.open(Pe, p, ct.href, ct.routerOptions);
8905
+ Pe && g.open(Pe, p, ct.href, ct.routerOptions);
8906
8906
  return;
8907
8907
  }
8908
8908
  if (e.setFocusedKey(j, Ne), e.isLink(j) && m === "override") return;
@@ -8925,13 +8925,13 @@ function yp(t) {
8925
8925
  case "ArrowLeft":
8926
8926
  if (n.getKeyLeftOf) {
8927
8927
  let j = e.focusedKey != null ? (J = n.getKeyLeftOf) == null ? void 0 : J.call(n, e.focusedKey) : (ee = n.getFirstKey) == null ? void 0 : ee.call(n);
8928
- j == null && i && (j = g === "rtl" ? (te = n.getFirstKey) == null ? void 0 : te.call(n, e.focusedKey) : (ae = n.getLastKey) == null ? void 0 : ae.call(n, e.focusedKey)), j != null && (p.preventDefault(), E(j, g === "rtl" ? "first" : "last"));
8928
+ j == null && i && (j = y === "rtl" ? (te = n.getFirstKey) == null ? void 0 : te.call(n, e.focusedKey) : (ae = n.getLastKey) == null ? void 0 : ae.call(n, e.focusedKey)), j != null && (p.preventDefault(), E(j, y === "rtl" ? "first" : "last"));
8929
8929
  }
8930
8930
  break;
8931
8931
  case "ArrowRight":
8932
8932
  if (n.getKeyRightOf) {
8933
8933
  let j = e.focusedKey != null ? (pe = n.getKeyRightOf) == null ? void 0 : pe.call(n, e.focusedKey) : (ie = n.getFirstKey) == null ? void 0 : ie.call(n);
8934
- j == null && i && (j = g === "rtl" ? (Se = n.getLastKey) == null ? void 0 : Se.call(n, e.focusedKey) : (ze = n.getFirstKey) == null ? void 0 : ze.call(n, e.focusedKey)), j != null && (p.preventDefault(), E(j, g === "rtl" ? "last" : "first"));
8934
+ j == null && i && (j = y === "rtl" ? (Se = n.getLastKey) == null ? void 0 : Se.call(n, e.focusedKey) : (ze = n.getFirstKey) == null ? void 0 : ze.call(n, e.focusedKey)), j != null && (p.preventDefault(), E(j, y === "rtl" ? "last" : "first"));
8935
8935
  }
8936
8936
  break;
8937
8937
  case "Home":
@@ -9359,7 +9359,7 @@ function Ep(t) {
9359
9359
  a,
9360
9360
  r
9361
9361
  ]);
9362
- let g = n.isLink(r) && d === "override", y = c && t.UNSTABLE_itemBehavior === "action", x = n.isLink(r) && d !== "selection" && d !== "none", v = !a && n.canSelectItem(r) && !g && !y, T = (c || x) && !a, w = T && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), D = T && v && n.selectionBehavior === "replace", B = w || D, N = K(null), I = B && v, A = K(!1), k = K(!1), O = n.getItemProps(r), W = (P) => {
9362
+ let y = n.isLink(r) && d === "override", g = c && t.UNSTABLE_itemBehavior === "action", x = n.isLink(r) && d !== "selection" && d !== "none", v = !a && n.canSelectItem(r) && !y && !g, T = (c || x) && !a, w = T && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), D = T && v && n.selectionBehavior === "replace", B = w || D, N = K(null), I = B && v, A = K(!1), k = K(!1), O = n.getItemProps(r), W = (P) => {
9363
9363
  var R;
9364
9364
  c && (c(), (R = o.current) == null || R.dispatchEvent(new CustomEvent("react-aria-item-action", {
9365
9365
  bubbles: !0
@@ -9454,7 +9454,7 @@ function Pp(t) {
9454
9454
  return r(t), Qi.set(t, n), n;
9455
9455
  }
9456
9456
  function Cp(t, e, n) {
9457
- let { id: r, key: o, closeOnSelect: i, shouldCloseOnSelect: l, isVirtualized: s, "aria-haspopup": a, onPressStart: c, onPressUp: u, onPress: d, onPressChange: h, onPressEnd: f, onClick: m, onHoverStart: g, onHoverChange: y, onHoverEnd: x, onKeyDown: v, onKeyUp: T, onFocus: w, onFocusChange: D, onBlur: B, selectionManager: N = e.selectionManager } = t, I = !!a, A = I && t["aria-expanded"] === "true", k = t.isDisabled ?? N.isDisabled(o), O = t.isSelected ?? N.isSelected(o), W = dc.get(e), V = e.collection.getItem(o), p = t.onClose || W.onClose, E = cn(), L = () => {
9457
+ let { id: r, key: o, closeOnSelect: i, shouldCloseOnSelect: l, isVirtualized: s, "aria-haspopup": a, onPressStart: c, onPressUp: u, onPress: d, onPressChange: h, onPressEnd: f, onClick: m, onHoverStart: y, onHoverChange: g, onHoverEnd: x, onKeyDown: v, onKeyUp: T, onFocus: w, onFocusChange: D, onBlur: B, selectionManager: N = e.selectionManager } = t, I = !!a, A = I && t["aria-expanded"] === "true", k = t.isDisabled ?? N.isDisabled(o), O = t.isSelected ?? N.isSelected(o), W = dc.get(e), V = e.collection.getItem(o), p = t.onClose || W.onClose, E = cn(), L = () => {
9458
9458
  var ce;
9459
9459
  if (!I && ((ce = V == null ? void 0 : V.props) != null && ce.onAction ? V.props.onAction() : t.onAction && t.onAction(o), W.onAction)) {
9460
9460
  let Bt = W.onAction;
@@ -9515,9 +9515,9 @@ function Cp(t, e, n) {
9515
9515
  }), { hoverProps: Ne } = hn({
9516
9516
  isDisabled: k,
9517
9517
  onHoverStart(ce) {
9518
- !nn() && !(A && a) && (N.setFocused(!0), N.setFocusedKey(o)), g == null || g(ce);
9518
+ !nn() && !(A && a) && (N.setFocused(!0), N.setFocusedKey(o)), y == null || y(ce);
9519
9519
  },
9520
- onHoverChange: y,
9520
+ onHoverChange: g,
9521
9521
  onHoverEnd: x
9522
9522
  }), { keyboardProps: Pe } = ys({
9523
9523
  onKeyDown: (ce) => {
@@ -9622,9 +9622,9 @@ function Np(t) {
9622
9622
  n.current && (l.current = n.current.getBoundingClientRect(), u.current = void 0);
9623
9623
  }
9624
9624
  });
9625
- let g = () => {
9625
+ let y = () => {
9626
9626
  f(!1), d.current = kn, i.current = void 0;
9627
- }, y = Sf(), x = Ke((v) => {
9627
+ }, g = Sf(), x = Ke((v) => {
9628
9628
  h && v.preventDefault();
9629
9629
  });
9630
9630
  Z(() => {
@@ -9634,8 +9634,8 @@ function Np(t) {
9634
9634
  h
9635
9635
  ]), le(() => {
9636
9636
  let v = n.current, T = e.current;
9637
- if (o || !v || !r || y !== "pointer" || !T) {
9638
- g();
9637
+ if (o || !v || !r || g !== "pointer" || !T) {
9638
+ y();
9639
9639
  return;
9640
9640
  }
9641
9641
  l.current = v.getBoundingClientRect();
@@ -9654,7 +9654,7 @@ function Np(t) {
9654
9654
  }
9655
9655
  if (!l.current) return;
9656
9656
  if (u.current || (u.current = N > l.current.right ? "left" : "right"), N < T.getBoundingClientRect().left || N > T.getBoundingClientRect().right || I < T.getBoundingClientRect().top || I > T.getBoundingClientRect().bottom) {
9657
- g();
9657
+ y();
9658
9658
  return;
9659
9659
  }
9660
9660
  let A = i.current.x, k = i.current.y, O = u.current === "right" ? l.current.left - A : A - l.current.right, W = Math.atan2(k - l.current.top, O) + el, V = Math.atan2(k - l.current.bottom, O) - el, p = Math.atan2(k - I, u.current === "left" ? -(N - A) : N - A), E = p < W && p > V;
@@ -9662,7 +9662,7 @@ function Np(t) {
9662
9662
  x: N,
9663
9663
  y: I
9664
9664
  }, E && (a.current = setTimeout(() => {
9665
- g(), c.current = setTimeout(() => {
9665
+ y(), c.current = setTimeout(() => {
9666
9666
  let L = document.elementFromPoint(N, I);
9667
9667
  L && Y(T, L) && L.dispatchEvent(new PointerEvent("pointerover", {
9668
9668
  bubbles: !0,
@@ -9678,7 +9678,7 @@ function Np(t) {
9678
9678
  o,
9679
9679
  r,
9680
9680
  e,
9681
- y,
9681
+ g,
9682
9682
  f,
9683
9683
  n
9684
9684
  ]);
@@ -9693,7 +9693,7 @@ function Dp(t, e, n) {
9693
9693
  }, [
9694
9694
  e,
9695
9695
  f
9696
- ]), g = X(() => {
9696
+ ]), y = X(() => {
9697
9697
  f(), e.close();
9698
9698
  }, [
9699
9699
  e,
@@ -9704,17 +9704,17 @@ function Dp(t, e, n) {
9704
9704
  }, [
9705
9705
  f
9706
9706
  ]);
9707
- let y = (N) => {
9707
+ let g = (N) => {
9708
9708
  if (Lt(N.currentTarget))
9709
9709
  switch (N.key) {
9710
9710
  case "ArrowLeft":
9711
- d === "ltr" && Y(N.currentTarget, _(N)) && (N.preventDefault(), N.stopPropagation(), g(), !a && n.current && ve(n.current));
9711
+ d === "ltr" && Y(N.currentTarget, _(N)) && (N.preventDefault(), N.stopPropagation(), y(), !a && n.current && ve(n.current));
9712
9712
  break;
9713
9713
  case "ArrowRight":
9714
- d === "rtl" && Y(N.currentTarget, _(N)) && (N.preventDefault(), N.stopPropagation(), g(), !a && n.current && ve(n.current));
9714
+ d === "rtl" && Y(N.currentTarget, _(N)) && (N.preventDefault(), N.stopPropagation(), y(), !a && n.current && ve(n.current));
9715
9715
  break;
9716
9716
  case "Escape":
9717
- Y(o.current, _(N)) && (N.stopPropagation(), g(), !a && n.current && ve(n.current));
9717
+ Y(o.current, _(N)) && (N.stopPropagation(), y(), !a && n.current && ve(n.current));
9718
9718
  break;
9719
9719
  }
9720
9720
  }, x = {
@@ -9724,15 +9724,15 @@ function Dp(t, e, n) {
9724
9724
  ...i === "menu" && {
9725
9725
  onClose: e.closeAll,
9726
9726
  autoFocus: e.focusStrategy ?? void 0,
9727
- onKeyDown: y
9727
+ onKeyDown: g
9728
9728
  }
9729
9729
  }, v = (N) => {
9730
9730
  switch (N.key) {
9731
9731
  case "ArrowRight":
9732
- l || (d === "ltr" ? (N.preventDefault(), e.isOpen || m("first"), i === "menu" && (o != null && o.current) && ue() === (n == null ? void 0 : n.current) && ve(o.current)) : e.isOpen ? g() : N.continuePropagation());
9732
+ l || (d === "ltr" ? (N.preventDefault(), e.isOpen || m("first"), i === "menu" && (o != null && o.current) && ue() === (n == null ? void 0 : n.current) && ve(o.current)) : e.isOpen ? y() : N.continuePropagation());
9733
9733
  break;
9734
9734
  case "ArrowLeft":
9735
- l || (d === "rtl" ? (N.preventDefault(), e.isOpen || m("first"), i === "menu" && (o != null && o.current) && ue() === (n == null ? void 0 : n.current) && ve(o.current)) : e.isOpen ? g() : N.continuePropagation());
9735
+ l || (d === "rtl" ? (N.preventDefault(), e.isOpen || m("first"), i === "menu" && (o != null && o.current) && ue() === (n == null ? void 0 : n.current) && ve(o.current)) : e.isOpen ? y() : N.continuePropagation());
9736
9736
  break;
9737
9737
  default:
9738
9738
  N.continuePropagation();
@@ -9748,7 +9748,7 @@ function Dp(t, e, n) {
9748
9748
  }, s)) : N || f());
9749
9749
  };
9750
9750
  Gt(r, "focusin", (N) => {
9751
- e.isOpen && Y(r.current, _(N)) && _(N) !== n.current && g();
9751
+ e.isOpen && Y(r.current, _(N)) && _(N) !== n.current && y();
9752
9752
  });
9753
9753
  let B = (N) => N !== n.current;
9754
9754
  return Np({
@@ -10287,7 +10287,7 @@ class Ap {
10287
10287
  e.index = u;
10288
10288
  let f = h.key ?? null;
10289
10289
  f == null && (f = h.element ? null : this.getKey(i, e, n, r));
10290
- let g = [
10290
+ let y = [
10291
10291
  ...this.getFullNode({
10292
10292
  ...h,
10293
10293
  key: f,
@@ -10295,11 +10295,11 @@ class Ap {
10295
10295
  wrapper: Fp(e.wrapper, h.wrapper)
10296
10296
  }, this.getChildState(n, h), r ? `${r}${i.key}` : i.key, o)
10297
10297
  ];
10298
- for (let y of g) {
10299
- if (y.value = h.value ?? e.value ?? null, y.value && this.cache.set(y.value, y), e.type && y.type !== e.type) throw new Error(`Unsupported type <${Dr(y.type)}> in <${Dr((o == null ? void 0 : o.type) ?? "unknown parent type")}>. Only <${Dr(e.type)}> is supported.`);
10300
- u++, yield y;
10298
+ for (let g of y) {
10299
+ if (g.value = h.value ?? e.value ?? null, g.value && this.cache.set(g.value, g), e.type && g.type !== e.type) throw new Error(`Unsupported type <${Dr(g.type)}> in <${Dr((o == null ? void 0 : o.type) ?? "unknown parent type")}>. Only <${Dr(e.type)}> is supported.`);
10300
+ u++, yield g;
10301
10301
  }
10302
- d = c.next(g);
10302
+ d = c.next(y);
10303
10303
  }
10304
10304
  return;
10305
10305
  }
@@ -10386,10 +10386,10 @@ function hc(t) {
10386
10386
  t.selectedKeys
10387
10387
  ]), h = Q(() => rl(t.defaultSelectedKeys, new _e()), [
10388
10388
  t.defaultSelectedKeys
10389
- ]), [f, m] = tr(d, h, t.onSelectionChange), g = Q(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
10389
+ ]), [f, m] = tr(d, h, t.onSelectionChange), y = Q(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
10390
10390
  t.disabledKeys
10391
- ]), [y, x] = G(o);
10392
- o === "replace" && y === "toggle" && typeof f == "object" && f.size === 0 && x("replace");
10391
+ ]), [g, x] = G(o);
10392
+ o === "replace" && g === "toggle" && typeof f == "object" && f.size === 0 && x("replace");
10393
10393
  let v = K(o);
10394
10394
  return Z(() => {
10395
10395
  o !== v.current && (x(o), v.current = o);
@@ -10398,7 +10398,7 @@ function hc(t) {
10398
10398
  ]), {
10399
10399
  selectionMode: e,
10400
10400
  disallowEmptySelection: n,
10401
- selectionBehavior: y,
10401
+ selectionBehavior: g,
10402
10402
  setSelectionBehavior: x,
10403
10403
  get isFocused() {
10404
10404
  return l.current;
@@ -10419,7 +10419,7 @@ function hc(t) {
10419
10419
  setSelectedKeys(T) {
10420
10420
  (r || !Bp(T, f)) && m(T);
10421
10421
  },
10422
- disabledKeys: g,
10422
+ disabledKeys: y,
10423
10423
  disabledBehavior: i
10424
10424
  };
10425
10425
  }
@@ -10675,7 +10675,7 @@ class jp extends sr {
10675
10675
  }
10676
10676
  }
10677
10677
  function bc(t, e, n, r = "react-aria-MenuSection") {
10678
- var y, x, v;
10678
+ var g, x, v;
10679
10679
  let o = F(ar), { CollectionBranch: i } = F(lr), [l, s] = os(), { headingProps: a, groupProps: c } = kp({
10680
10680
  heading: s,
10681
10681
  "aria-label": n.props["aria-label"] ?? void 0
@@ -10684,14 +10684,14 @@ function bc(t, e, n, r = "react-aria-MenuSection") {
10684
10684
  id: void 0,
10685
10685
  children: void 0,
10686
10686
  defaultClassName: r,
10687
- className: (y = n.props) == null ? void 0 : y.className,
10687
+ className: (g = n.props) == null ? void 0 : g.className,
10688
10688
  style: (x = n.props) == null ? void 0 : x.style,
10689
10689
  values: void 0
10690
- }), d = F(qn), h = hc(t), f = t.selectionMode != null ? new jp(d, h) : d, m = (v = dn(Rt)) == null ? void 0 : v.shouldCloseOnSelect, g = me(t, {
10690
+ }), d = F(qn), h = hc(t), f = t.selectionMode != null ? new jp(d, h) : d, m = (v = dn(Rt)) == null ? void 0 : v.shouldCloseOnSelect, y = me(t, {
10691
10691
  global: !0
10692
10692
  });
10693
- return delete g.id, /* @__PURE__ */ C.createElement(we.section, {
10694
- ...ne(g, u, c),
10693
+ return delete y.id, /* @__PURE__ */ C.createElement(we.section, {
10694
+ ...ne(y, u, c),
10695
10695
  ref: e
10696
10696
  }, /* @__PURE__ */ C.createElement(Ze, {
10697
10697
  values: [
@@ -10727,16 +10727,16 @@ const qp = /* @__PURE__ */ Ea(no, bc), Rt = /* @__PURE__ */ q(null), Yp = /* @__
10727
10727
  key: r.key,
10728
10728
  selectionManager: s,
10729
10729
  isVirtualized: a
10730
- }, i, l), { hoverProps: m, isHovered: g } = hn({
10730
+ }, i, l), { hoverProps: m, isHovered: y } = hn({
10731
10731
  isDisabled: f.isDisabled
10732
- }), y = Ae({
10732
+ }), g = Ae({
10733
10733
  ...e,
10734
10734
  id: void 0,
10735
10735
  children: r.rendered,
10736
10736
  defaultClassName: "react-aria-MenuItem",
10737
10737
  values: {
10738
10738
  ...f,
10739
- isHovered: g,
10739
+ isHovered: y,
10740
10740
  isFocusVisible: f.isFocusVisible,
10741
10741
  selectionMode: s.selectionMode,
10742
10742
  selectionBehavior: s.selectionBehavior,
@@ -10747,10 +10747,10 @@ const qp = /* @__PURE__ */ Ea(no, bc), Rt = /* @__PURE__ */ q(null), Yp = /* @__
10747
10747
  global: !0
10748
10748
  });
10749
10749
  return delete v.id, delete v.onClick, /* @__PURE__ */ C.createElement(x, {
10750
- ...ne(v, y, c, m),
10750
+ ...ne(v, g, c, m),
10751
10751
  ref: l,
10752
10752
  "data-disabled": f.isDisabled || void 0,
10753
- "data-hovered": g || void 0,
10753
+ "data-hovered": y || void 0,
10754
10754
  "data-focused": f.isFocused || void 0,
10755
10755
  "data-focus-visible": f.isFocusVisible || void 0,
10756
10756
  "data-pressed": f.isPressed || void 0,
@@ -10781,7 +10781,7 @@ const qp = /* @__PURE__ */ Ea(no, bc), Rt = /* @__PURE__ */ q(null), Yp = /* @__
10781
10781
  }
10782
10782
  ]
10783
10783
  ]
10784
- }, y.children));
10784
+ }, g.children));
10785
10785
  });
10786
10786
  function Xp(t, e) {
10787
10787
  let { role: n = "dialog" } = t, r = Nn();
@@ -10940,7 +10940,7 @@ function Qp(t, e, n) {
10940
10940
  const eb = /* @__PURE__ */ q(null), Oo = /* @__PURE__ */ q(null), tb = /* @__PURE__ */ Ee(function(e, n) {
10941
10941
  if (F(Oo)) {
10942
10942
  if (process.env.NODE_ENV !== "production" && (e.onOpenChange || e.defaultOpen !== void 0 || e.isOpen !== void 0)) {
10943
- const g = /* @__PURE__ */ new Set([
10943
+ const y = /* @__PURE__ */ new Set([
10944
10944
  "isDismissable",
10945
10945
  "isKeyboardDismissDisabled",
10946
10946
  "isOpen",
@@ -10950,8 +10950,8 @@ const eb = /* @__PURE__ */ q(null), Oo = /* @__PURE__ */ q(null), tb = /* @__PUR
10950
10950
  "isExiting",
10951
10951
  "UNSTABLE_portalContainer",
10952
10952
  "shouldCloseOnInteractOutside"
10953
- ]), y = Object.keys(e).filter((x) => g.has(x));
10954
- console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`);
10953
+ ]), g = Object.keys(e).filter((x) => y.has(x));
10954
+ console.warn(`This modal is already wrapped in a ModalOverlay, props [${g.join(", ")}] should be placed on the ModalOverlay instead.`);
10955
10955
  }
10956
10956
  return /* @__PURE__ */ C.createElement(ol, {
10957
10957
  ...e,
@@ -11203,17 +11203,17 @@ function fb(t, e) {
11203
11203
  ref: e
11204
11204
  }), f = me(a, {
11205
11205
  labelable: !0
11206
- }), m = ne(u, d), g = cn(), y = Nl(t);
11206
+ }), m = ne(u, d), y = cn(), g = Nl(t);
11207
11207
  return {
11208
11208
  isPressed: h,
11209
- linkProps: ne(f, y, {
11209
+ linkProps: ne(f, g, {
11210
11210
  ...m,
11211
11211
  ...c,
11212
11212
  "aria-disabled": s || void 0,
11213
11213
  "aria-current": t["aria-current"],
11214
11214
  onClick: (x) => {
11215
11215
  var v;
11216
- (v = d.onClick) == null || v.call(d, x), Dl(x, g, t.href, t.routerOptions);
11216
+ (v = d.onClick) == null || v.call(d, x), Dl(x, y, t.href, t.routerOptions);
11217
11217
  }
11218
11218
  })
11219
11219
  };
@@ -11315,8 +11315,8 @@ const gb = /* @__PURE__ */ q({}), yb = "__button_group_child", sl = ({
11315
11315
  [yb]: c,
11316
11316
  ...u
11317
11317
  }) => {
11318
- const d = F(gb), h = c === !0, f = i ?? (h ? d == null ? void 0 : d.size : void 0), m = a ?? (h ? d == null ? void 0 : d.variant : void 0), g = r ?? (h ? d == null ? void 0 : d.isDisabled : void 0), y = n ?? (h ? d == null ? void 0 : d.fullWidth : void 0), x = nt({
11319
- fullWidth: y,
11318
+ const d = F(gb), h = c === !0, f = i ?? (h ? d == null ? void 0 : d.size : void 0), m = a ?? (h ? d == null ? void 0 : d.variant : void 0), y = r ?? (h ? d == null ? void 0 : d.isDisabled : void 0), g = n ?? (h ? d == null ? void 0 : d.fullWidth : void 0), x = nt({
11319
+ fullWidth: g,
11320
11320
  isIconOnly: o,
11321
11321
  size: f,
11322
11322
  variant: m
@@ -11324,7 +11324,7 @@ const gb = /* @__PURE__ */ q({}), yb = "__button_group_child", sl = ({
11324
11324
  return /* @__PURE__ */ b(No, {
11325
11325
  className: Ie(e, x),
11326
11326
  "data-slot": "button",
11327
- isDisabled: g,
11327
+ isDisabled: y,
11328
11328
  slot: l,
11329
11329
  style: s,
11330
11330
  ...u,
@@ -11505,9 +11505,9 @@ function Tb(t) {
11505
11505
  let u = F(kb), d = Q(() => r ? Array.isArray(r) ? r.flatMap((k) => so(u[k])) : so(u[r]) : [], [
11506
11506
  u,
11507
11507
  r
11508
- ]), [h, f] = G(u), [m, g] = G(!1);
11509
- u !== h && (f(u), g(!1));
11510
- let y = Q(() => ul(m ? [] : d), [
11508
+ ]), [h, f] = G(u), [m, y] = G(!1);
11509
+ u !== h && (f(u), y(!1));
11510
+ let g = Q(() => ul(m ? [] : d), [
11511
11511
  m,
11512
11512
  d
11513
11513
  ]), x = K(Pt), [v, T] = G(Pt), w = K(Pt), D = () => {
@@ -11517,17 +11517,17 @@ function Tb(t) {
11517
11517
  Ir(k, w.current) || (w.current = k, T(k));
11518
11518
  }, [B, N] = G(!1);
11519
11519
  return Z(D), {
11520
- realtimeValidation: a || y || c || i || Pt,
11521
- displayValidation: s === "native" ? a || y || v : a || y || c || i || v,
11520
+ realtimeValidation: a || g || c || i || Pt,
11521
+ displayValidation: s === "native" ? a || g || v : a || g || c || i || v,
11522
11522
  updateValidation(k) {
11523
11523
  s === "aria" && !Ir(v, k) ? T(k) : x.current = k;
11524
11524
  },
11525
11525
  resetValidation() {
11526
11526
  let k = Pt;
11527
- Ir(k, w.current) || (w.current = k, T(k)), s === "native" && N(!1), g(!0);
11527
+ Ir(k, w.current) || (w.current = k, T(k)), s === "native" && N(!1), y(!0);
11528
11528
  },
11529
11529
  commitValidation() {
11530
- s === "native" && N(!0), g(!0);
11530
+ s === "native" && N(!0), y(!0);
11531
11531
  }
11532
11532
  };
11533
11533
  }
@@ -11554,7 +11554,7 @@ function Ir(t, e) {
11554
11554
  return t === e ? !0 : !!t && !!e && t.isInvalid === e.isInvalid && t.validationErrors.length === e.validationErrors.length && t.validationErrors.every((n, r) => n === e.validationErrors[r]) && Object.entries(t.validationDetails).every(([n, r]) => e.validationDetails[n] === r);
11555
11555
  }
11556
11556
  function Nb(t, e, n) {
11557
- let { isDisabled: r = !1, isReadOnly: o = !1, value: i, name: l, form: s, children: a, isRequired: c, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": h, "aria-describedby": f, onPressStart: m, onPressEnd: g, onPressChange: y, onPress: x, onPressUp: v, onClick: T } = t, w = xc({
11557
+ let { isDisabled: r = !1, isReadOnly: o = !1, value: i, name: l, form: s, children: a, isRequired: c, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": h, "aria-describedby": f, onPressStart: m, onPressEnd: y, onPressChange: g, onPress: x, onPressUp: v, onClick: T } = t, w = xc({
11558
11558
  ...t,
11559
11559
  value: e.isSelected
11560
11560
  }), { isInvalid: D, validationErrors: B, validationDetails: N } = w.displayValidation;
@@ -11565,8 +11565,8 @@ function Nb(t, e, n) {
11565
11565
  !A && !k && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
11566
11566
  let { pressProps: O, isPressed: W } = it({
11567
11567
  onPressStart: m,
11568
- onPressEnd: g,
11569
- onPressChange: y,
11568
+ onPressEnd: y,
11569
+ onPressChange: g,
11570
11570
  onPress: x,
11571
11571
  onPressUp: v,
11572
11572
  onClick: T,
@@ -11577,14 +11577,14 @@ function Nb(t, e, n) {
11577
11577
  R.continuePropagation();
11578
11578
  return;
11579
11579
  }
11580
- m == null || m(R), y == null || y(!0), p(!0);
11580
+ m == null || m(R), g == null || g(!0), p(!0);
11581
11581
  },
11582
11582
  onPressEnd(R) {
11583
11583
  if (R.pointerType === "keyboard" || R.pointerType === "virtual") {
11584
11584
  R.continuePropagation();
11585
11585
  return;
11586
11586
  }
11587
- g == null || g(R), y == null || y(!1), p(!1);
11587
+ y == null || y(R), g == null || g(!1), p(!1);
11588
11588
  },
11589
11589
  onPressUp(R) {
11590
11590
  if (R.pointerType === "keyboard" || R.pointerType === "virtual") {
@@ -11656,7 +11656,7 @@ function wc(t, e, n) {
11656
11656
  labelProps: ne(r, Q(() => ({
11657
11657
  // Prevent label from being focused when mouse down on it.
11658
11658
  // Note, this does not prevent the input from being focused in the `click` event.
11659
- onMouseDown: (g) => g.preventDefault()
11659
+ onMouseDown: (y) => y.preventDefault()
11660
11660
  }), [])),
11661
11661
  inputProps: o,
11662
11662
  descriptionProps: i,
@@ -11715,8 +11715,8 @@ function Rb(t, e, n) {
11715
11715
  isReadOnly: t.isReadOnly || e.isReadOnly,
11716
11716
  isSelected: e.isSelected(t.value),
11717
11717
  defaultSelected: e.defaultValue.includes(t.value),
11718
- onChange(g) {
11719
- g ? e.addValue(t.value) : e.removeValue(t.value), t.onChange && t.onChange(g);
11718
+ onChange(y) {
11719
+ y ? e.addValue(t.value) : e.removeValue(t.value), t.onChange && t.onChange(y);
11720
11720
  }
11721
11721
  });
11722
11722
  let { name: o, form: i, descriptionId: l, errorMessageId: s, validationBehavior: a } = Pb.get(e);
@@ -11744,8 +11744,8 @@ function Rb(t, e, n) {
11744
11744
  displayValidation: f,
11745
11745
  resetValidation: e.resetValidation,
11746
11746
  commitValidation: e.commitValidation,
11747
- updateValidation(g) {
11748
- u.current = g, d();
11747
+ updateValidation(y) {
11748
+ u.current = y, d();
11749
11749
  }
11750
11750
  }
11751
11751
  }, r, n);
@@ -11764,7 +11764,7 @@ function Rb(t, e, n) {
11764
11764
  const Kb = /* @__PURE__ */ q(null), Ec = /* @__PURE__ */ q(null), Sc = /* @__PURE__ */ q(null), Ob = /* @__PURE__ */ Ee(function(e, n) {
11765
11765
  let { inputRef: r = null, ...o } = e;
11766
11766
  [e, n] = Fe(o, n, Kb);
11767
- let i = F(Ec), [l, s] = Ab(e, r), { descriptionProps: a, errorMessageProps: c, isSelected: u, isDisabled: d, isReadOnly: h, isInvalid: f, validationDetails: m, validationErrors: g } = l, y = Ae({
11767
+ let i = F(Ec), [l, s] = Ab(e, r), { descriptionProps: a, errorMessageProps: c, isSelected: u, isDisabled: d, isReadOnly: h, isInvalid: f, validationDetails: m, validationErrors: y } = l, g = Ae({
11768
11768
  ...e,
11769
11769
  defaultClassName: "react-aria-CheckboxField",
11770
11770
  values: {
@@ -11779,7 +11779,7 @@ const Kb = /* @__PURE__ */ q(null), Ec = /* @__PURE__ */ q(null), Sc = /* @__PUR
11779
11779
  global: !0
11780
11780
  });
11781
11781
  return delete x.id, delete x.onClick, /* @__PURE__ */ C.createElement(we.div, {
11782
- ...ne(x, y),
11782
+ ...ne(x, g),
11783
11783
  ref: n,
11784
11784
  slot: e.slot || void 0,
11785
11785
  "data-selected": u || void 0,
@@ -11815,11 +11815,11 @@ const Kb = /* @__PURE__ */ q(null), Ec = /* @__PURE__ */ q(null), Sc = /* @__PUR
11815
11815
  i ? null : {
11816
11816
  isInvalid: f,
11817
11817
  validationDetails: m,
11818
- validationErrors: g
11818
+ validationErrors: y
11819
11819
  }
11820
11820
  ]
11821
11821
  ]
11822
- }, y.children));
11822
+ }, g.children));
11823
11823
  });
11824
11824
  function Ab(t, e) {
11825
11825
  let { validationBehavior: n } = dn(sb) || {}, r = t.validationBehavior ?? n ?? "native", o = F(Ec), i = st(Q(() => vt(e, t.inputRef !== void 0 ? t.inputRef : null), [
@@ -11837,7 +11837,7 @@ function Ab(t, e) {
11837
11837
  ];
11838
11838
  }
11839
11839
  const Fb = /* @__PURE__ */ Ee(function(e, n) {
11840
- let { labelProps: r, inputProps: o, isSelected: i, isDisabled: l, isReadOnly: s, isPressed: a, isInvalid: c, inputRef: u, defaultClassName: d, isIndeterminate: h, isRequired: f } = F(Sc), { isFocused: m, isFocusVisible: g, focusProps: y } = Mo(), x = l || s, { hoverProps: v, isHovered: T } = hn({
11840
+ let { labelProps: r, inputProps: o, isSelected: i, isDisabled: l, isReadOnly: s, isPressed: a, isInvalid: c, inputRef: u, defaultClassName: d, isIndeterminate: h, isRequired: f } = F(Sc), { isFocused: m, isFocusVisible: y, focusProps: g } = Mo(), x = l || s, { hoverProps: v, isHovered: T } = hn({
11841
11841
  ...e,
11842
11842
  isDisabled: x
11843
11843
  }), w = Ae({
@@ -11849,7 +11849,7 @@ const Fb = /* @__PURE__ */ Ee(function(e, n) {
11849
11849
  isPressed: a,
11850
11850
  isHovered: T,
11851
11851
  isFocused: m,
11852
- isFocusVisible: g,
11852
+ isFocusVisible: y,
11853
11853
  isDisabled: l,
11854
11854
  isReadOnly: s,
11855
11855
  isInvalid: c,
@@ -11867,7 +11867,7 @@ const Fb = /* @__PURE__ */ Ee(function(e, n) {
11867
11867
  "data-pressed": a || void 0,
11868
11868
  "data-hovered": T || void 0,
11869
11869
  "data-focused": m || void 0,
11870
- "data-focus-visible": g || void 0,
11870
+ "data-focus-visible": y || void 0,
11871
11871
  "data-disabled": l || void 0,
11872
11872
  "data-readonly": s || void 0,
11873
11873
  "data-invalid": c || void 0,
@@ -11875,7 +11875,7 @@ const Fb = /* @__PURE__ */ Ee(function(e, n) {
11875
11875
  }, /* @__PURE__ */ C.createElement(fa, {
11876
11876
  elementType: "span"
11877
11877
  }, /* @__PURE__ */ C.createElement("input", {
11878
- ...ne(o, y),
11878
+ ...ne(o, g),
11879
11879
  ref: u
11880
11880
  })), w.children);
11881
11881
  }), _b = /* @__PURE__ */ q({}), cr = /* @__PURE__ */ q({}), ao = ({
@@ -12735,7 +12735,7 @@ function vm({ type: t }) {
12735
12735
  }
12736
12736
  );
12737
12737
  }
12738
- function Sg({
12738
+ function Pg({
12739
12739
  type: t = "caution",
12740
12740
  title: e,
12741
12741
  icon: n,
@@ -12806,99 +12806,106 @@ function wm(t, e, n, r, o) {
12806
12806
  maxWidth: "none"
12807
12807
  };
12808
12808
  }
12809
- function Em({ src: t }) {
12810
- const e = K(null);
12809
+ function Em(t) {
12810
+ const e = t.split(/[?#]/)[0] ?? t, n = e.lastIndexOf("/"), r = e.lastIndexOf(".");
12811
+ return r <= n ? null : e.slice(r + 1).toLowerCase() || null;
12812
+ }
12813
+ function Sm({ src: t, modelFileName: e }) {
12814
+ const n = K(null);
12811
12815
  return Z(() => {
12812
- const n = e.current;
12813
- if (!n)
12816
+ const r = n.current;
12817
+ if (!r)
12814
12818
  return;
12815
- let r = !1, o = null, i = null;
12816
- return import("online-3d-viewer").then((l) => {
12817
- if (r)
12819
+ let o = !1, i = null, l = null;
12820
+ return import("online-3d-viewer").then((s) => {
12821
+ if (o)
12818
12822
  return;
12819
- const s = new l.EmbeddedViewer(n, {
12820
- projectionMode: l.ProjectionMode.Orthographic,
12821
- backgroundColor: new l.RGBAColor(219, 234, 254, 255),
12822
- defaultColor: new l.RGBColor(30, 64, 175),
12823
+ const a = new s.EmbeddedViewer(r, {
12824
+ projectionMode: s.ProjectionMode.Orthographic,
12825
+ backgroundColor: new s.RGBAColor(219, 234, 254, 255),
12826
+ defaultColor: new s.RGBColor(30, 64, 175),
12823
12827
  onModelLoaded: () => {
12824
- const a = s.GetViewer();
12825
- a.SetNavigationMode(l.NavigationMode.FreeOrbit), a.SetUpVector(l.Direction.Z, !1);
12826
- const c = a.GetBoundingSphere(() => !0);
12827
- a.FitSphereToWindow(c, !1);
12828
+ const u = a.GetViewer();
12829
+ u.SetNavigationMode(s.NavigationMode.FreeOrbit), u.SetUpVector(s.Direction.Z, !1);
12830
+ const d = u.GetBoundingSphere(() => !0);
12831
+ u.FitSphereToWindow(d, !1);
12828
12832
  }
12829
12833
  });
12830
- i = s, s.LoadModelFromUrlList([t]), typeof ResizeObserver < "u" && (o = new ResizeObserver(() => {
12831
- s.Resize();
12832
- }), o.observe(n));
12834
+ l = a, (t.startsWith("blob:") || Em(t) === null && !!e) && e ? a.LoadModelFromInputFiles([
12835
+ new s.InputFile(e, s.FileSource.Url, t)
12836
+ ]) : a.LoadModelFromUrlList([t]), typeof ResizeObserver < "u" && (i = new ResizeObserver(() => {
12837
+ a.Resize();
12838
+ }), i.observe(r));
12833
12839
  }), () => {
12834
- r = !0, o == null || o.disconnect(), i == null || i.Destroy();
12840
+ o = !0, i == null || i.disconnect(), l == null || l.Destroy();
12835
12841
  };
12836
- }, [t]), /* @__PURE__ */ b(
12842
+ }, [t, e]), /* @__PURE__ */ b(
12837
12843
  "div",
12838
12844
  {
12839
- ref: e,
12845
+ ref: n,
12840
12846
  className: "absolute inset-0 [&_canvas]:size-full!",
12841
12847
  "aria-label": "Interactive 3D model",
12842
12848
  role: "img"
12843
12849
  }
12844
12850
  );
12845
12851
  }
12846
- function Sm({
12852
+ function Pm({
12847
12853
  src: t,
12848
12854
  type: e,
12849
- displayRegion: n
12855
+ displayRegion: n,
12856
+ modelFileName: r
12850
12857
  }) {
12851
- const r = K(null), [o, i] = G(null), [l, s] = G(null), a = X(() => {
12852
- const m = r.current;
12853
- if (!m)
12858
+ const o = K(null), [i, l] = G(null), [s, a] = G(null), c = X(() => {
12859
+ const y = o.current;
12860
+ if (!y)
12854
12861
  return;
12855
- const { width: g, height: y } = m.getBoundingClientRect();
12856
- g > 0 && y > 0 && s({ width: g, height: y });
12862
+ const { width: g, height: x } = y.getBoundingClientRect();
12863
+ g > 0 && x > 0 && a({ width: g, height: x });
12857
12864
  }, []);
12858
12865
  Z(() => {
12859
12866
  if (!n)
12860
12867
  return;
12861
- a();
12862
- const m = r.current;
12863
- if (!m)
12868
+ c();
12869
+ const y = o.current;
12870
+ if (!y)
12864
12871
  return;
12865
- const g = new ResizeObserver(a);
12866
- return g.observe(m), () => g.disconnect();
12867
- }, [n, a]);
12868
- const c = n && o && l && wm(
12872
+ const g = new ResizeObserver(c);
12873
+ return g.observe(y), () => g.disconnect();
12874
+ }, [n, c]);
12875
+ const u = n && i && s && wm(
12869
12876
  n,
12870
- o.width,
12871
- o.height,
12872
- l.width,
12873
- l.height
12874
- ), u = !!c, d = "size-full object-cover object-center", h = (m) => {
12875
- const g = m.currentTarget;
12876
- g.naturalWidth > 0 && g.naturalHeight > 0 && i({ width: g.naturalWidth, height: g.naturalHeight });
12877
- }, f = (m) => {
12878
- const g = m.currentTarget;
12879
- g.videoWidth > 0 && g.videoHeight > 0 && i({ width: g.videoWidth, height: g.videoHeight });
12877
+ i.width,
12878
+ i.height,
12879
+ s.width,
12880
+ s.height
12881
+ ), d = !!u, h = "size-full object-cover object-center", f = (y) => {
12882
+ const g = y.currentTarget;
12883
+ g.naturalWidth > 0 && g.naturalHeight > 0 && l({ width: g.naturalWidth, height: g.naturalHeight });
12884
+ }, m = (y) => {
12885
+ const g = y.currentTarget;
12886
+ g.videoWidth > 0 && g.videoHeight > 0 && l({ width: g.videoWidth, height: g.videoHeight });
12880
12887
  };
12881
- return e === "model" ? /* @__PURE__ */ b(Em, { src: t }) : /* @__PURE__ */ b("div", { ref: r, className: "absolute inset-0", children: e === "video" ? /* @__PURE__ */ b(
12888
+ return e === "model" ? /* @__PURE__ */ b(Sm, { src: t, modelFileName: r }) : /* @__PURE__ */ b("div", { ref: o, className: "absolute inset-0", children: e === "video" ? /* @__PURE__ */ b(
12882
12889
  "video",
12883
12890
  {
12884
12891
  src: t,
12885
12892
  controls: !0,
12886
- className: u ? "absolute max-w-none" : d,
12887
- style: u && c ? c : void 0,
12888
- onLoadedMetadata: n ? f : void 0
12893
+ className: d ? "absolute max-w-none" : h,
12894
+ style: d && u ? u : void 0,
12895
+ onLoadedMetadata: n ? m : void 0
12889
12896
  }
12890
12897
  ) : /* @__PURE__ */ b(
12891
12898
  "img",
12892
12899
  {
12893
12900
  src: t,
12894
- className: u ? "absolute max-w-none" : d,
12895
- style: u && c ? c : void 0,
12896
- onLoad: n ? h : void 0
12901
+ className: d ? "absolute max-w-none" : h,
12902
+ style: d && u ? u : void 0,
12903
+ onLoad: n ? f : void 0
12897
12904
  }
12898
12905
  ) });
12899
12906
  }
12900
- const Pm = 2, yl = 3, Zn = (t, e, n) => Math.min(Math.max(t, e), n), Rc = (t) => t.type === "circle", bn = (t) => t.type === "rectangle", vl = (t) => bn(t) ? [t.x1, t.x2] : [t.x], $l = (t) => bn(t) ? [t.y1, t.y2] : [t.y];
12901
- function Cm(t, e, n) {
12907
+ const Cm = 2, yl = 3, Zn = (t, e, n) => Math.min(Math.max(t, e), n), Rc = (t) => t.type === "circle", bn = (t) => t.type === "rectangle", vl = (t) => bn(t) ? [t.x1, t.x2] : [t.x], $l = (t) => bn(t) ? [t.y1, t.y2] : [t.y];
12908
+ function km(t, e, n) {
12902
12909
  const r = Zn(e, -Math.min(...vl(t)), 100 - Math.max(...vl(t))), o = Zn(n, -Math.min(...$l(t)), 100 - Math.max(...$l(t)));
12903
12910
  return bn(t) ? { ...t, x1: t.x1 + r, y1: t.y1 + o, x2: t.x2 + r, y2: t.y2 + o } : { ...t, x: t.x + r, y: t.y + o };
12904
12911
  }
@@ -12914,18 +12921,18 @@ function Kc(t) {
12914
12921
  y2: Math.max(t.y1, t.y2)
12915
12922
  };
12916
12923
  }
12917
- function km(t, e, n) {
12924
+ function Tm(t, e, n) {
12918
12925
  return t === "circle" ? { type: "circle", x: e.x, y: e.y, radius: 0, color: n } : t === "rectangle" ? { type: "rectangle", x1: e.x, y1: e.y, x2: e.x, y2: e.y, color: n } : { type: "point", x: e.x, y: e.y, color: n };
12919
12926
  }
12920
- function Tm(t) {
12927
+ function Mm(t) {
12921
12928
  return t === "circle" ? "create-circle" : t === "rectangle" ? "create-rectangle" : "create-point";
12922
12929
  }
12923
- function Mm(t, e, n) {
12930
+ function Nm(t, e, n) {
12924
12931
  switch (t.mode) {
12925
12932
  case "create-point":
12926
12933
  return { ...t.base, x: e.x, y: e.y };
12927
12934
  case "move":
12928
- return Cm(t.base, e.x - t.start.x, e.y - t.start.y);
12935
+ return km(t.base, e.x - t.start.x, e.y - t.start.y);
12929
12936
  case "create-circle":
12930
12937
  return { ...t.base, radius: xl(t.start, e, n) };
12931
12938
  case "resize-circle": {
@@ -12947,7 +12954,7 @@ function Mm(t, e, n) {
12947
12954
  }
12948
12955
  }
12949
12956
  function wl(t) {
12950
- if (Rc(t)) return { ...t, radius: Math.max(t.radius, Pm) };
12957
+ if (Rc(t)) return { ...t, radius: Math.max(t.radius, Cm) };
12951
12958
  if (bn(t)) {
12952
12959
  const e = Kc(t);
12953
12960
  return {
@@ -12973,11 +12980,11 @@ function El({
12973
12980
  }
12974
12981
  );
12975
12982
  }
12976
- function Nm({
12983
+ function Dm({
12977
12984
  annotations: t,
12978
12985
  editing: e
12979
12986
  }) {
12980
- const { tool: n, color: r, selectedId: o, onSelect: i, onAdd: l, onChange: s, onRemove: a } = e, c = K(null), u = K(!1), [d, h] = G(null), [f, m] = G(null), g = n === "select", y = (k) => {
12987
+ const { tool: n, color: r, selectedId: o, onSelect: i, onAdd: l, onChange: s, onRemove: a } = e, c = K(null), u = K(!1), [d, h] = G(null), [f, m] = G(null), y = n === "select", g = (k) => {
12981
12988
  const O = c.current.getBoundingClientRect();
12982
12989
  return {
12983
12990
  x: Zn((k.clientX - O.left) / O.width * 100, 0, 100),
@@ -12987,39 +12994,39 @@ function Nm({
12987
12994
  var W;
12988
12995
  (W = c.current) == null || W.setPointerCapture(k.pointerId), u.current = !1, h(O), m(wl(O.base));
12989
12996
  }, v = (k) => {
12990
- if (g) {
12997
+ if (y) {
12991
12998
  i == null || i(null);
12992
12999
  return;
12993
13000
  }
12994
- const O = y(k);
13001
+ const O = g(k);
12995
13002
  x(k, {
12996
- mode: Tm(n),
13003
+ mode: Mm(n),
12997
13004
  id: null,
12998
13005
  start: O,
12999
- base: km(n, O, r)
13006
+ base: Tm(n, O, r)
13000
13007
  });
13001
13008
  }, T = (k) => {
13002
13009
  if (!d) return;
13003
13010
  const O = c.current.getBoundingClientRect();
13004
- u.current = !0, m(wl(Mm(d, y(k), O.width / O.height)));
13011
+ u.current = !0, m(wl(Nm(d, g(k), O.width / O.height)));
13005
13012
  }, w = (k) => {
13006
13013
  var O;
13007
13014
  d && f && ((O = c.current) == null || O.releasePointerCapture(k.pointerId), d.id === null ? l == null || l(f) : u.current && (s == null || s(d.id, f))), h(null), m(null);
13008
13015
  }, D = (k, O, W) => {
13009
13016
  var V;
13010
- k.stopPropagation(), (V = c.current) == null || V.focus(), i == null || i(O), x(k, { mode: "move", id: O, start: y(k), base: W });
13017
+ k.stopPropagation(), (V = c.current) == null || V.focus(), i == null || i(O), x(k, { mode: "move", id: O, start: g(k), base: W });
13011
13018
  }, B = (k, O, W) => {
13012
13019
  k.stopPropagation(), x(k, {
13013
13020
  mode: "resize-circle",
13014
13021
  id: O,
13015
- start: y(k),
13022
+ start: g(k),
13016
13023
  base: W
13017
13024
  });
13018
13025
  }, N = (k, O, W, V) => {
13019
13026
  k.stopPropagation(), x(k, {
13020
13027
  mode: "resize-rect",
13021
13028
  id: O,
13022
- start: y(k),
13029
+ start: g(k),
13023
13030
  base: Kc(W),
13024
13031
  corner: V
13025
13032
  });
@@ -13137,27 +13144,27 @@ function Nm({
13137
13144
  onKeyDown: I,
13138
13145
  className: oe(
13139
13146
  "absolute inset-0 focus:outline-none",
13140
- g ? "cursor-default" : "cursor-crosshair"
13147
+ y ? "cursor-default" : "cursor-crosshair"
13141
13148
  ),
13142
13149
  children: [
13143
13150
  t.map((k, O) => {
13144
13151
  const W = k.id ?? String(O), V = (d == null ? void 0 : d.id) === W && f ? f : k;
13145
- return A(V, W, g);
13152
+ return A(V, W, y);
13146
13153
  }),
13147
13154
  (d == null ? void 0 : d.id) === null && f && A(f, "__draft__", !1)
13148
13155
  ]
13149
13156
  }
13150
13157
  );
13151
13158
  }
13152
- function Dm(t) {
13159
+ function Im(t) {
13153
13160
  return t.type === "circle";
13154
13161
  }
13155
- function Im(t) {
13162
+ function Lm(t) {
13156
13163
  return t.type === "rectangle";
13157
13164
  }
13158
- function Lm(t, e) {
13165
+ function Rm(t, e) {
13159
13166
  const n = t.id ?? e, r = t.color ?? "GREY", o = rt[r];
13160
- if (Dm(t))
13167
+ if (Im(t))
13161
13168
  return /* @__PURE__ */ b(
13162
13169
  "div",
13163
13170
  {
@@ -13176,7 +13183,7 @@ function Lm(t, e) {
13176
13183
  },
13177
13184
  n
13178
13185
  );
13179
- if (Im(t)) {
13186
+ if (Lm(t)) {
13180
13187
  const i = Math.min(t.x1, t.x2), l = Math.min(t.y1, t.y2), s = Math.abs(t.x2 - t.x1), a = Math.abs(t.y2 - t.y1);
13181
13188
  return /* @__PURE__ */ b(
13182
13189
  "div",
@@ -13213,32 +13220,41 @@ function Lm(t, e) {
13213
13220
  n
13214
13221
  );
13215
13222
  }
13216
- function Rm({
13223
+ function Km({
13217
13224
  src: t,
13218
13225
  type: e = "image",
13219
- annotations: n = [],
13220
- displayRegion: r,
13221
- zoomable: o = !0,
13222
- annotationEditing: i,
13223
- className: l
13226
+ modelFileName: n,
13227
+ annotations: r = [],
13228
+ displayRegion: o,
13229
+ zoomable: i = !0,
13230
+ annotationEditing: l,
13231
+ className: s
13224
13232
  }) {
13225
- const s = "relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft", a = /* @__PURE__ */ U(gt, { children: [
13226
- /* @__PURE__ */ b(Sm, { src: t, type: e, displayRegion: r }),
13227
- i ? /* @__PURE__ */ b(
13228
- Nm,
13233
+ const a = "relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft", c = /* @__PURE__ */ U(gt, { children: [
13234
+ /* @__PURE__ */ b(
13235
+ Pm,
13236
+ {
13237
+ src: t,
13238
+ type: e,
13239
+ displayRegion: o,
13240
+ modelFileName: n
13241
+ }
13242
+ ),
13243
+ l ? /* @__PURE__ */ b(
13244
+ Dm,
13229
13245
  {
13230
- annotations: n,
13231
- editing: i
13246
+ annotations: r,
13247
+ editing: l
13232
13248
  }
13233
- ) : n.map(Lm)
13249
+ ) : r.map(Rm)
13234
13250
  ] });
13235
- return /* @__PURE__ */ b("figure", { className: oe("flex flex-col gap-2", l), children: o && e === "image" && !i ? /* @__PURE__ */ U(Et, { children: [
13251
+ return /* @__PURE__ */ b("figure", { className: oe("flex flex-col gap-2", s), children: i && e === "image" && !l ? /* @__PURE__ */ U(Et, { children: [
13236
13252
  /* @__PURE__ */ b(
13237
13253
  Et.Trigger,
13238
13254
  {
13239
13255
  "aria-label": "View image full size",
13240
- className: oe(s, "cursor-zoom-in"),
13241
- children: a
13256
+ className: oe(a, "cursor-zoom-in"),
13257
+ children: c
13242
13258
  }
13243
13259
  ),
13244
13260
  /* @__PURE__ */ b(Et.Backdrop, { variant: "blur", children: /* @__PURE__ */ b(Et.Container, { placement: "center", children: /* @__PURE__ */ U(
@@ -13259,14 +13275,14 @@ function Rm({
13259
13275
  ]
13260
13276
  }
13261
13277
  ) }) })
13262
- ] }) : /* @__PURE__ */ b("div", { className: s, children: a }) });
13278
+ ] }) : /* @__PURE__ */ b("div", { className: a, children: c }) });
13263
13279
  }
13264
- function Km() {
13280
+ function Om() {
13265
13281
  return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", className: "size-2/3", children: /* @__PURE__ */ b("path", { d: "M8 5v14l11-7z" }) });
13266
13282
  }
13267
- const Om = {
13283
+ const Am = {
13268
13284
  model: { hex: rt.BLUE, content: /* @__PURE__ */ b("span", { className: "text-lg font-bold", children: "3D" }) },
13269
- video: { hex: rt.MAGENTA, content: /* @__PURE__ */ b(Km, {}) }
13285
+ video: { hex: rt.MAGENTA, content: /* @__PURE__ */ b(Om, {}) }
13270
13286
  };
13271
13287
  function Sl({
13272
13288
  src: t,
@@ -13283,7 +13299,7 @@ function Sl({
13283
13299
  className: oe("object-cover", n)
13284
13300
  }
13285
13301
  );
13286
- const { hex: r, content: o } = Om[e];
13302
+ const { hex: r, content: o } = Am[e];
13287
13303
  return /* @__PURE__ */ b(
13288
13304
  "div",
13289
13305
  {
@@ -13294,21 +13310,21 @@ function Sl({
13294
13310
  }
13295
13311
  );
13296
13312
  }
13297
- const Am = [
13313
+ const Fm = [
13298
13314
  { corner: "nw", cursor: "nwse-resize" },
13299
13315
  { corner: "ne", cursor: "nesw-resize" },
13300
13316
  { corner: "sw", cursor: "nesw-resize" },
13301
13317
  { corner: "se", cursor: "nwse-resize" }
13302
- ], Fm = (t, e, n) => Math.min(Math.max(t, e), n);
13303
- function _m(t, e, n, r, o) {
13318
+ ], _m = (t, e, n) => Math.min(Math.max(t, e), n);
13319
+ function Bm(t, e, n, r, o) {
13304
13320
  return fr(
13305
13321
  { x: t.x + e, y: t.y + n, width: t.width },
13306
13322
  r,
13307
13323
  o
13308
13324
  );
13309
13325
  }
13310
- function Bm(t, e, n, r, o) {
13311
- const i = e === "nw" || e === "sw", l = e === "nw" || e === "ne", s = i ? t.x + t.width : t.x, a = l ? t.y + Kt(t.width) : t.y, c = i ? s : r - s, u = l ? a : o - a, d = Math.min(c, u * (4 / 3)), h = Fm(Math.abs(n.x - s), Lc, d), f = Kt(h);
13326
+ function Vm(t, e, n, r, o) {
13327
+ const i = e === "nw" || e === "sw", l = e === "nw" || e === "ne", s = i ? t.x + t.width : t.x, a = l ? t.y + Kt(t.width) : t.y, c = i ? s : r - s, u = l ? a : o - a, d = Math.min(c, u * (4 / 3)), h = _m(Math.abs(n.x - s), Lc, d), f = Kt(h);
13312
13328
  return fr(
13313
13329
  {
13314
13330
  x: i ? s - h : s,
@@ -13319,7 +13335,7 @@ function Bm(t, e, n, r, o) {
13319
13335
  o
13320
13336
  );
13321
13337
  }
13322
- function Pg({
13338
+ function Cg({
13323
13339
  src: t,
13324
13340
  region: e,
13325
13341
  onChange: n,
@@ -13339,15 +13355,15 @@ function Pg({
13339
13355
  }, m = (v, T) => {
13340
13356
  var w;
13341
13357
  v.stopPropagation(), (w = o.current) == null || w.setPointerCapture(v.pointerId), a(T), u(T.base);
13342
- }, g = (v) => {
13358
+ }, y = (v) => {
13343
13359
  if (!s || !i) return;
13344
- const T = f(v), w = s.mode === "move" ? _m(
13360
+ const T = f(v), w = s.mode === "move" ? Bm(
13345
13361
  s.base,
13346
13362
  T.x - s.start.x,
13347
13363
  T.y - s.start.y,
13348
13364
  i.width,
13349
13365
  i.height
13350
- ) : Bm(
13366
+ ) : Vm(
13351
13367
  s.base,
13352
13368
  s.corner,
13353
13369
  T,
@@ -13355,7 +13371,7 @@ function Pg({
13355
13371
  i.height
13356
13372
  );
13357
13373
  u(w);
13358
- }, y = (v) => {
13374
+ }, g = (v) => {
13359
13375
  var T;
13360
13376
  s && c && ((T = o.current) == null || T.releasePointerCapture(v.pointerId), n(c)), a(null), u(null);
13361
13377
  }, x = h && i ? {
@@ -13375,8 +13391,8 @@ function Pg({
13375
13391
  r
13376
13392
  ),
13377
13393
  style: i ? { "--crop-aspect": i.width / i.height } : void 0,
13378
- onPointerMove: g,
13379
- onPointerUp: y,
13394
+ onPointerMove: y,
13395
+ onPointerUp: g,
13380
13396
  children: [
13381
13397
  /* @__PURE__ */ b(
13382
13398
  "img",
@@ -13400,7 +13416,7 @@ function Pg({
13400
13416
  boxShadow: "0 0 0 9999px rgba(0, 0, 0, 0.5)"
13401
13417
  },
13402
13418
  onPointerDown: (v) => m(v, { mode: "move", start: f(v), base: h }),
13403
- children: Am.map(({ corner: v, cursor: T }) => /* @__PURE__ */ b(
13419
+ children: Fm.map(({ corner: v, cursor: T }) => /* @__PURE__ */ b(
13404
13420
  "span",
13405
13421
  {
13406
13422
  className: "crop-handle pointer-events-auto absolute size-3 -translate-x-1/2 -translate-y-1/2 rounded-sm border border-background bg-accent shadow",
@@ -13424,7 +13440,7 @@ function Pg({
13424
13440
  }
13425
13441
  );
13426
13442
  }
13427
- function Vm({
13443
+ function zm({
13428
13444
  name: t,
13429
13445
  thumbnail: e,
13430
13446
  href: n,
@@ -13462,7 +13478,7 @@ function Vm({
13462
13478
  }
13463
13479
  );
13464
13480
  }
13465
- function zm({
13481
+ function Hm({
13466
13482
  title: t = "What you need",
13467
13483
  children: e,
13468
13484
  className: n
@@ -13472,11 +13488,11 @@ function zm({
13472
13488
  /* @__PURE__ */ b(Xt.Content, { children: /* @__PURE__ */ b("ul", { className: "flex flex-col divide-y divide-default", children: e }) })
13473
13489
  ] });
13474
13490
  }
13475
- const Cg = Object.assign(zm, { Item: Vm });
13491
+ const kg = Object.assign(Hm, { Item: zm });
13476
13492
  function Oc(t) {
13477
13493
  return null;
13478
13494
  }
13479
- function Hm(t) {
13495
+ function Um(t) {
13480
13496
  return yt(t) && t.type === Oc;
13481
13497
  }
13482
13498
  function Ac() {
@@ -13511,7 +13527,7 @@ function Pl() {
13511
13527
  }
13512
13528
  );
13513
13529
  }
13514
- function Um() {
13530
+ function Wm() {
13515
13531
  return /* @__PURE__ */ b(
13516
13532
  "svg",
13517
13533
  {
@@ -13527,7 +13543,7 @@ function Um() {
13527
13543
  }
13528
13544
  );
13529
13545
  }
13530
- function Wm() {
13546
+ function Gm() {
13531
13547
  return /* @__PURE__ */ b(
13532
13548
  "svg",
13533
13549
  {
@@ -13543,7 +13559,7 @@ function Wm() {
13543
13559
  }
13544
13560
  );
13545
13561
  }
13546
- function Gm() {
13562
+ function jm() {
13547
13563
  return /* @__PURE__ */ U(
13548
13564
  "svg",
13549
13565
  {
@@ -13570,7 +13586,7 @@ function fo(t) {
13570
13586
  ...r ? { target: "_blank", rel: "noreferrer noopener" } : {}
13571
13587
  };
13572
13588
  }
13573
- function jm(t, e, n, r) {
13589
+ function qm(t, e, n, r) {
13574
13590
  return oe(
13575
13591
  nt({ variant: t, size: e, fullWidth: !0 }),
13576
13592
  "!min-h-0 !justify-center !rounded-none",
@@ -13588,7 +13604,7 @@ function ho() {
13588
13604
  }
13589
13605
  );
13590
13606
  }
13591
- function qm({
13607
+ function Ym({
13592
13608
  variant: t = "primary",
13593
13609
  size: e = "md",
13594
13610
  icon: n,
@@ -13597,10 +13613,10 @@ function qm({
13597
13613
  children: i,
13598
13614
  className: l
13599
13615
  }) {
13600
- const s = Dt.toArray(i).filter(Hm);
13616
+ const s = Dt.toArray(i).filter(Um);
13601
13617
  if (o)
13602
13618
  return /* @__PURE__ */ b(
13603
- Xm,
13619
+ Zm,
13604
13620
  {
13605
13621
  items: s,
13606
13622
  variant: t,
@@ -13622,7 +13638,7 @@ function qm({
13622
13638
  ] });
13623
13639
  }
13624
13640
  return /* @__PURE__ */ b(
13625
- Ym,
13641
+ Xm,
13626
13642
  {
13627
13643
  items: s,
13628
13644
  variant: t,
@@ -13633,7 +13649,7 @@ function qm({
13633
13649
  }
13634
13650
  );
13635
13651
  }
13636
- function Ym({
13652
+ function Xm({
13637
13653
  items: t,
13638
13654
  variant: e,
13639
13655
  size: n,
@@ -13690,7 +13706,7 @@ function Ym({
13690
13706
  Ut.Item,
13691
13707
  {
13692
13708
  ...fo(d),
13693
- className: jm(
13709
+ className: qm(
13694
13710
  "secondary",
13695
13711
  n,
13696
13712
  h === t.length - 1,
@@ -13710,7 +13726,7 @@ function Ym({
13710
13726
  }
13711
13727
  );
13712
13728
  }
13713
- function Xm({
13729
+ function Zm({
13714
13730
  items: t,
13715
13731
  variant: e,
13716
13732
  size: n,
@@ -13719,10 +13735,10 @@ function Xm({
13719
13735
  editing: i,
13720
13736
  className: l
13721
13737
  }) {
13722
- const [s, a] = G(!1), [c, u] = G(null), [d, h] = G(null), { onAddItem: f, onRemoveItem: m, onReorderItem: g, onSelectItem: y } = i, x = t[0], v = t.slice(1), T = nt({ variant: e, size: n }), w = g != null, D = () => {
13738
+ const [s, a] = G(!1), [c, u] = G(null), [d, h] = G(null), { onAddItem: f, onRemoveItem: m, onReorderItem: y, onSelectItem: g } = i, x = t[0], v = t.slice(1), T = nt({ variant: e, size: n }), w = y != null, D = () => {
13723
13739
  u(null), h(null);
13724
13740
  }, B = (N) => {
13725
- c != null && c !== N && (g == null || g(c, N)), D();
13741
+ c != null && c !== N && (y == null || y(c, N)), D();
13726
13742
  };
13727
13743
  return /* @__PURE__ */ U("div", { className: oe("relative inline-flex flex-col items-start", l), children: [
13728
13744
  /* @__PURE__ */ U("div", { className: So({ orientation: "horizontal" }).base(), children: [
@@ -13730,11 +13746,11 @@ function Xm({
13730
13746
  r,
13731
13747
  x ? x.props.children : /* @__PURE__ */ b("span", { className: "opacity-60", children: "Add a link" })
13732
13748
  ] }),
13733
- x && y && /* @__PURE__ */ U(
13749
+ x && g && /* @__PURE__ */ U(
13734
13750
  "button",
13735
13751
  {
13736
13752
  type: "button",
13737
- onClick: () => y(0),
13753
+ onClick: () => g(0),
13738
13754
  "aria-label": "Edit primary link",
13739
13755
  className: nt({ variant: e, size: n, isIconOnly: !0 }),
13740
13756
  children: [
@@ -13752,7 +13768,7 @@ function Xm({
13752
13768
  "aria-expanded": s,
13753
13769
  className: nt({ variant: e, size: n, isIconOnly: !0 }),
13754
13770
  children: [
13755
- !(x && y) && /* @__PURE__ */ b(ho, {}),
13771
+ !(x && g) && /* @__PURE__ */ b(ho, {}),
13756
13772
  /* @__PURE__ */ b(Ac, {})
13757
13773
  ]
13758
13774
  }
@@ -13789,23 +13805,23 @@ function Xm({
13789
13805
  d === A && c !== A && "ring-2 ring-accent"
13790
13806
  ),
13791
13807
  children: [
13792
- w && /* @__PURE__ */ b("span", { className: "shrink-0 text-default-400", children: /* @__PURE__ */ b(Gm, {}) }),
13808
+ w && /* @__PURE__ */ b("span", { className: "shrink-0 text-default-400", children: /* @__PURE__ */ b(jm, {}) }),
13793
13809
  /* @__PURE__ */ b("span", { className: "min-w-0 flex-1 text-sm", children: N.props.children }),
13794
- g && /* @__PURE__ */ b(
13810
+ y && /* @__PURE__ */ b(
13795
13811
  "button",
13796
13812
  {
13797
13813
  type: "button",
13798
- onClick: () => g(A, 0),
13814
+ onClick: () => y(A, 0),
13799
13815
  "aria-label": "Make default download",
13800
13816
  className: "shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
13801
- children: /* @__PURE__ */ b(Um, {})
13817
+ children: /* @__PURE__ */ b(Wm, {})
13802
13818
  }
13803
13819
  ),
13804
- y && /* @__PURE__ */ b(
13820
+ g && /* @__PURE__ */ b(
13805
13821
  "button",
13806
13822
  {
13807
13823
  type: "button",
13808
- onClick: () => y(A),
13824
+ onClick: () => g(A),
13809
13825
  "aria-label": "Edit link",
13810
13826
  className: "shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
13811
13827
  children: /* @__PURE__ */ b(Pl, {})
@@ -13818,7 +13834,7 @@ function Xm({
13818
13834
  onClick: () => m(A),
13819
13835
  "aria-label": "Remove option",
13820
13836
  className: "shrink-0 rounded p-0.5 text-default-500 transition hover:text-danger focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
13821
- children: /* @__PURE__ */ b(Wm, {})
13837
+ children: /* @__PURE__ */ b(Gm, {})
13822
13838
  }
13823
13839
  )
13824
13840
  ]
@@ -13839,8 +13855,8 @@ function Xm({
13839
13855
  ] })
13840
13856
  ] });
13841
13857
  }
13842
- const kg = Object.assign(qm, { Item: Oc });
13843
- function Zm(t, e, n) {
13858
+ const Tg = Object.assign(Ym, { Item: Oc });
13859
+ function Jm(t, e, n) {
13844
13860
  const [r, o] = G(e), i = t !== void 0, l = i ? t : r, s = X(
13845
13861
  (a) => {
13846
13862
  i || o(a), n == null || n(a);
@@ -13849,12 +13865,12 @@ function Zm(t, e, n) {
13849
13865
  );
13850
13866
  return [l, s];
13851
13867
  }
13852
- const Fc = 3, Jm = "#3ABF84", Qm = "#34B07A", eg = "#0B7A47", tg = {
13868
+ const Fc = 3, Qm = "#3ABF84", eg = "#34B07A", tg = "#0B7A47", ng = {
13853
13869
  caution: Rr.caution,
13854
13870
  reminder: "Reminder",
13855
13871
  note: Rr.note
13856
13872
  };
13857
- function ng() {
13873
+ function rg() {
13858
13874
  return /* @__PURE__ */ b(
13859
13875
  "svg",
13860
13876
  {
@@ -13870,7 +13886,7 @@ function ng() {
13870
13886
  }
13871
13887
  );
13872
13888
  }
13873
- function rg() {
13889
+ function og() {
13874
13890
  return /* @__PURE__ */ U(
13875
13891
  "svg",
13876
13892
  {
@@ -13889,7 +13905,7 @@ function rg() {
13889
13905
  }
13890
13906
  );
13891
13907
  }
13892
- function og() {
13908
+ function ig() {
13893
13909
  return /* @__PURE__ */ b(
13894
13910
  "span",
13895
13911
  {
@@ -13907,7 +13923,7 @@ function og() {
13907
13923
  }
13908
13924
  );
13909
13925
  }
13910
- function ig() {
13926
+ function lg() {
13911
13927
  return /* @__PURE__ */ b(
13912
13928
  "svg",
13913
13929
  {
@@ -13939,7 +13955,7 @@ function _c() {
13939
13955
  }
13940
13956
  );
13941
13957
  }
13942
- function lg() {
13958
+ function sg() {
13943
13959
  return /* @__PURE__ */ b(
13944
13960
  "svg",
13945
13961
  {
@@ -13955,7 +13971,7 @@ function lg() {
13955
13971
  }
13956
13972
  );
13957
13973
  }
13958
- function sg() {
13974
+ function ag() {
13959
13975
  return /* @__PURE__ */ b(
13960
13976
  "svg",
13961
13977
  {
@@ -13971,7 +13987,7 @@ function sg() {
13971
13987
  }
13972
13988
  );
13973
13989
  }
13974
- function ag() {
13990
+ function cg() {
13975
13991
  return /* @__PURE__ */ U(
13976
13992
  "svg",
13977
13993
  {
@@ -13990,21 +14006,21 @@ function ag() {
13990
14006
  }
13991
14007
  );
13992
14008
  }
13993
- function cg(t) {
13994
- return yt(t) && t.type === Rm;
14009
+ function ug(t) {
14010
+ return yt(t) && t.type === Km;
13995
14011
  }
13996
14012
  function Bc(t) {
13997
14013
  return yt(t) && t.type === Hc;
13998
14014
  }
13999
- function ug(t) {
14015
+ function dg(t) {
14000
14016
  return yt(t) ? Dt.toArray(t.props.children).filter(Bc).length : 0;
14001
14017
  }
14002
- function dg(t, e = !1) {
14018
+ function fg(t, e = !1) {
14003
14019
  let n = null, r = null;
14004
14020
  for (const i of Dt.toArray(t))
14005
14021
  yt(i) && (i.type === Vc && (n = i.props.children), i.type === zc && (r = i));
14006
- const o = Dt.toArray(n).filter(cg);
14007
- return ug(r), {
14022
+ const o = Dt.toArray(n).filter(ug);
14023
+ return dg(r), {
14008
14024
  figures: o.slice(0, Fc),
14009
14025
  bullets: r
14010
14026
  };
@@ -14022,21 +14038,21 @@ function zc({
14022
14038
  return /* @__PURE__ */ b("ul", { className: oe("flex flex-col gap-2", e), children: t });
14023
14039
  const { onAddBullet: s, onRemoveBullet: a, onReorderBullet: c } = n, u = Dt.toArray(t).filter(Bc), d = c != null && u.length > 1, h = a != null && u.length > 1, f = () => {
14024
14040
  o(null), l(null);
14025
- }, m = (g) => {
14026
- r != null && r !== g && (c == null || c(r, g)), f();
14041
+ }, m = (y) => {
14042
+ r != null && r !== y && (c == null || c(r, y)), f();
14027
14043
  };
14028
14044
  return /* @__PURE__ */ U("ul", { className: oe("flex flex-col gap-2", e), children: [
14029
14045
  u.map(
14030
- (g, y) => Nt(g, {
14031
- key: g.key ?? y,
14046
+ (y, g) => Nt(y, {
14047
+ key: y.key ?? g,
14032
14048
  __edit: {
14033
14049
  canReorder: d,
14034
- isDragging: r === y,
14035
- isOver: i === y && r !== y,
14036
- onRemove: h ? () => a == null ? void 0 : a(y) : void 0,
14037
- onDragStart: () => o(y),
14038
- onDragOver: () => l(y),
14039
- onDrop: () => m(y),
14050
+ isDragging: r === g,
14051
+ isOver: i === g && r !== g,
14052
+ onRemove: h ? () => a == null ? void 0 : a(g) : void 0,
14053
+ onDragStart: () => o(g),
14054
+ onDragOver: () => l(g),
14055
+ onDrop: () => m(g),
14040
14056
  onDragEnd: f
14041
14057
  }
14042
14058
  })
@@ -14093,7 +14109,7 @@ function Hc(t) {
14093
14109
  }
14094
14110
  ) : null, f = /* @__PURE__ */ b("div", { className: "min-w-0 flex-1", children: s });
14095
14111
  else {
14096
- const T = r ?? tg[e], w = e === "caution" ? /* @__PURE__ */ b(ng, {}) : e === "reminder" ? /* @__PURE__ */ b(og, {}) : /* @__PURE__ */ b(rg, {});
14112
+ const T = r ?? ng[e], w = e === "caution" ? /* @__PURE__ */ b(rg, {}) : e === "reminder" ? /* @__PURE__ */ b(ig, {}) : /* @__PURE__ */ b(og, {});
14097
14113
  h = i ? /* @__PURE__ */ b(
14098
14114
  "button",
14099
14115
  {
@@ -14125,38 +14141,38 @@ function Hc(t) {
14125
14141
  h,
14126
14142
  f
14127
14143
  ] });
14128
- const { canReorder: g, isDragging: y, isOver: x, onRemove: v } = c;
14144
+ const { canReorder: y, isDragging: g, isOver: x, onRemove: v } = c;
14129
14145
  return /* @__PURE__ */ U(
14130
14146
  "li",
14131
14147
  {
14132
14148
  className: oe(
14133
14149
  "group rounded-md",
14134
14150
  m,
14135
- y && "opacity-40",
14151
+ g && "opacity-40",
14136
14152
  x && "ring-2 ring-accent"
14137
14153
  ),
14138
- draggable: g && u ? !0 : void 0,
14139
- onDragStart: g ? (T) => {
14154
+ draggable: y && u ? !0 : void 0,
14155
+ onDragStart: y ? (T) => {
14140
14156
  T.dataTransfer.effectAllowed = "move", c.onDragStart();
14141
14157
  } : void 0,
14142
- onDragOver: g ? (T) => {
14158
+ onDragOver: y ? (T) => {
14143
14159
  T.preventDefault(), T.dataTransfer.dropEffect = "move", c.onDragOver();
14144
14160
  } : void 0,
14145
- onDrop: g ? (T) => {
14161
+ onDrop: y ? (T) => {
14146
14162
  T.preventDefault(), c.onDrop();
14147
14163
  } : void 0,
14148
- onDragEnd: g ? () => {
14164
+ onDragEnd: y ? () => {
14149
14165
  d(!1), c.onDragEnd();
14150
14166
  } : void 0,
14151
14167
  children: [
14152
- g && /* @__PURE__ */ b(
14168
+ y && /* @__PURE__ */ b(
14153
14169
  "span",
14154
14170
  {
14155
14171
  "aria-hidden": "true",
14156
14172
  onPointerDown: () => d(!0),
14157
14173
  onPointerUp: () => d(!1),
14158
14174
  className: "mt-1 shrink-0 cursor-grab text-default-400 transition hover:text-default-500",
14159
- children: /* @__PURE__ */ b(ag, {})
14175
+ children: /* @__PURE__ */ b(cg, {})
14160
14176
  }
14161
14177
  ),
14162
14178
  h,
@@ -14175,7 +14191,7 @@ function Hc(t) {
14175
14191
  }
14176
14192
  );
14177
14193
  }
14178
- function fg() {
14194
+ function hg() {
14179
14195
  return /* @__PURE__ */ b(
14180
14196
  "svg",
14181
14197
  {
@@ -14191,7 +14207,7 @@ function fg() {
14191
14207
  }
14192
14208
  );
14193
14209
  }
14194
- function hg({
14210
+ function pg({
14195
14211
  figures: t,
14196
14212
  bullets: e,
14197
14213
  mediaEditing: n
@@ -14199,11 +14215,11 @@ function hg({
14199
14215
  const r = n != null, [o, i] = G(0), [l, s] = G(null), [a, c] = G(null), u = (n == null ? void 0 : n.activeIndex) ?? o, d = t[u] ?? t[0], f = ((d == null ? void 0 : d.props.type) ?? "image") === "image", m = (w) => {
14200
14216
  var D;
14201
14217
  i(w), (D = n == null ? void 0 : n.onSelectImage) == null || D.call(n, w);
14202
- }, g = r && (n == null ? void 0 : n.onReorderImage) != null && t.length > 1, y = () => {
14218
+ }, y = r && (n == null ? void 0 : n.onReorderImage) != null && t.length > 1, g = () => {
14203
14219
  s(null), c(null);
14204
14220
  }, x = (w) => {
14205
14221
  var D;
14206
- l != null && l !== w && ((D = n == null ? void 0 : n.onReorderImage) == null || D.call(n, l, w)), y();
14222
+ l != null && l !== w && ((D = n == null ? void 0 : n.onReorderImage) == null || D.call(n, l, w)), g();
14207
14223
  }, v = r && ((n == null ? void 0 : n.canAddImage) ?? !0) && t.length >= 1 && t.length < Fc, T = r ? t.length >= 1 : t.length > 1;
14208
14224
  return /* @__PURE__ */ U("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2", children: [
14209
14225
  /* @__PURE__ */ b("div", { className: "min-w-0", children: d ? r ? /* @__PURE__ */ U("div", { className: "group relative", children: [
@@ -14222,7 +14238,7 @@ function hg({
14222
14238
  },
14223
14239
  className: "flex items-center gap-1.5 rounded-md bg-background/90 px-2.5 py-1.5 text-sm font-semibold text-foreground shadow transition hover:bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
14224
14240
  children: [
14225
- /* @__PURE__ */ b(lg, {}),
14241
+ /* @__PURE__ */ b(sg, {}),
14226
14242
  "Edit annotations"
14227
14243
  ]
14228
14244
  }
@@ -14237,7 +14253,7 @@ function hg({
14237
14253
  },
14238
14254
  className: "flex items-center gap-1.5 rounded-md bg-background/90 px-2.5 py-1.5 text-sm font-semibold text-foreground shadow transition hover:bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
14239
14255
  children: [
14240
- /* @__PURE__ */ b(sg, {}),
14256
+ /* @__PURE__ */ b(ag, {}),
14241
14257
  "Adjust crop"
14242
14258
  ]
14243
14259
  }
@@ -14255,7 +14271,7 @@ function hg({
14255
14271
  },
14256
14272
  className: "flex aspect-[4/3] w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-default bg-default-soft text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none",
14257
14273
  children: [
14258
- /* @__PURE__ */ b(ig, {}),
14274
+ /* @__PURE__ */ b(lg, {}),
14259
14275
  /* @__PURE__ */ b("span", { className: "text-sm font-medium", children: "Add image" })
14260
14276
  ]
14261
14277
  }
@@ -14274,21 +14290,21 @@ function hg({
14274
14290
  {
14275
14291
  className: oe(
14276
14292
  "relative rounded-md transition-shadow",
14277
- g && "cursor-grab",
14293
+ y && "cursor-grab",
14278
14294
  l === D && "opacity-40",
14279
14295
  a === D && l !== D && "ring-2 ring-accent ring-offset-2 ring-offset-background"
14280
14296
  ),
14281
- draggable: g || void 0,
14282
- onDragStart: g ? (B) => {
14297
+ draggable: y || void 0,
14298
+ onDragStart: y ? (B) => {
14283
14299
  B.dataTransfer.effectAllowed = "move", s(D);
14284
14300
  } : void 0,
14285
- onDragOver: g ? (B) => {
14301
+ onDragOver: y ? (B) => {
14286
14302
  B.preventDefault(), B.dataTransfer.dropEffect = "move", c(D);
14287
14303
  } : void 0,
14288
- onDrop: g ? (B) => {
14304
+ onDrop: y ? (B) => {
14289
14305
  B.preventDefault(), x(D);
14290
14306
  } : void 0,
14291
- onDragEnd: g ? y : void 0,
14307
+ onDragEnd: y ? g : void 0,
14292
14308
  children: [
14293
14309
  /* @__PURE__ */ b(
14294
14310
  "button",
@@ -14384,7 +14400,7 @@ function hg({
14384
14400
  ] })
14385
14401
  ] });
14386
14402
  }
14387
- function pg({
14403
+ function bg({
14388
14404
  number: t,
14389
14405
  title: e,
14390
14406
  isCompleted: n,
@@ -14395,11 +14411,11 @@ function pg({
14395
14411
  children: s,
14396
14412
  className: a
14397
14413
  }) {
14398
- const [c, u] = Zm(
14414
+ const [c, u] = Jm(
14399
14415
  n,
14400
14416
  r,
14401
14417
  o
14402
- ), d = Gc(), { figures: h, bullets: f } = dg(s, l != null);
14418
+ ), d = Gc(), { figures: h, bullets: f } = fg(s, l != null);
14403
14419
  return /* @__PURE__ */ U(
14404
14420
  "section",
14405
14421
  {
@@ -14420,7 +14436,7 @@ function pg({
14420
14436
  "flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-bold tabular-nums",
14421
14437
  c ? "bg-success text-success-foreground" : "bg-foreground text-background"
14422
14438
  ),
14423
- children: c ? /* @__PURE__ */ b(fg, {}) : t
14439
+ children: c ? /* @__PURE__ */ b(hg, {}) : t
14424
14440
  }
14425
14441
  ),
14426
14442
  e != null && /* @__PURE__ */ b(
@@ -14444,9 +14460,9 @@ function pg({
14444
14460
  c && "guide-step-complete-button"
14445
14461
  ),
14446
14462
  style: c ? {
14447
- "--guide-step-complete-bg": Jm,
14448
- "--guide-step-complete-bg-hover": Qm,
14449
- "--guide-step-complete-checkbox": eg
14463
+ "--guide-step-complete-bg": Qm,
14464
+ "--guide-step-complete-bg-hover": eg,
14465
+ "--guide-step-complete-checkbox": tg
14450
14466
  } : void 0,
14451
14467
  children: /* @__PURE__ */ b(
14452
14468
  Tn,
@@ -14465,7 +14481,7 @@ function pg({
14465
14481
  )
14466
14482
  ] }),
14467
14483
  /* @__PURE__ */ b(
14468
- hg,
14484
+ pg,
14469
14485
  {
14470
14486
  figures: h,
14471
14487
  bullets: f,
@@ -14476,21 +14492,21 @@ function pg({
14476
14492
  }
14477
14493
  );
14478
14494
  }
14479
- const Tg = Object.assign(pg, {
14495
+ const Mg = Object.assign(bg, {
14480
14496
  Media: Vc,
14481
14497
  Bullets: zc,
14482
14498
  Bullet: Hc
14483
14499
  });
14484
- function bg(t) {
14500
+ function mg(t) {
14485
14501
  return yt(t);
14486
14502
  }
14487
- function Mg({
14503
+ function Ng({
14488
14504
  children: t,
14489
14505
  showProgress: e = !0,
14490
14506
  onProgressChange: n,
14491
14507
  className: r
14492
14508
  }) {
14493
- const o = Dt.toArray(t).filter(bg), i = o.length, [l, s] = G(
14509
+ const o = Dt.toArray(t).filter(mg), i = o.length, [l, s] = G(
14494
14510
  () => Object.fromEntries(
14495
14511
  o.map((c, u) => [
14496
14512
  c.props.number ?? u + 1,
@@ -14530,7 +14546,7 @@ function Mg({
14530
14546
  isCompleted: l[d] ?? !1,
14531
14547
  onCompletedChange: (h) => {
14532
14548
  var f, m;
14533
- s((g) => ({ ...g, [d]: h })), (m = (f = c.props).onCompletedChange) == null || m.call(f, h);
14549
+ s((y) => ({ ...y, [d]: h })), (m = (f = c.props).onCompletedChange) == null || m.call(f, h);
14534
14550
  }
14535
14551
  }),
14536
14552
  u < o.length - 1 && /* @__PURE__ */ b(Bb, { className: "my-8" })
@@ -14538,7 +14554,7 @@ function Mg({
14538
14554
  }) })
14539
14555
  ] });
14540
14556
  }
14541
- function mg({
14557
+ function gg({
14542
14558
  title: t,
14543
14559
  difficulty: e,
14544
14560
  timeEstimate: n,
@@ -14566,22 +14582,22 @@ function mg({
14566
14582
  }
14567
14583
  );
14568
14584
  }
14569
- function gg({ children: t, className: e }) {
14585
+ function yg({ children: t, className: e }) {
14570
14586
  return /* @__PURE__ */ b("div", { className: oe("min-w-0 md:[grid-area:intro]", e), children: /* @__PURE__ */ b("div", { className: "max-w-prose text-default-700", children: t }) });
14571
14587
  }
14572
- function yg({
14588
+ function vg({
14573
14589
  children: t,
14574
14590
  className: e
14575
14591
  }) {
14576
14592
  return /* @__PURE__ */ b("aside", { className: oe("min-w-0 md:[grid-area:sidebar]", e), children: /* @__PURE__ */ b("div", { className: "flex flex-col gap-4", children: t }) });
14577
14593
  }
14578
- function vg({
14594
+ function $g({
14579
14595
  children: t,
14580
14596
  className: e
14581
14597
  }) {
14582
14598
  return /* @__PURE__ */ b("main", { className: oe("min-w-0 w-full md:[grid-area:main]", e), children: t });
14583
14599
  }
14584
- const Ng = Object.assign(
14600
+ const Dg = Object.assign(
14585
14601
  function({ children: e, className: n }) {
14586
14602
  return /* @__PURE__ */ b(
14587
14603
  "div",
@@ -14595,26 +14611,26 @@ const Ng = Object.assign(
14595
14611
  );
14596
14612
  },
14597
14613
  {
14598
- Header: mg,
14599
- Intro: gg,
14600
- Sidebar: yg,
14601
- Content: vg
14614
+ Header: gg,
14615
+ Intro: yg,
14616
+ Sidebar: vg,
14617
+ Content: $g
14602
14618
  }
14603
14619
  );
14604
14620
  export {
14605
14621
  rt as COLORS,
14606
- Sg as Callout,
14622
+ Pg as Callout,
14607
14623
  uo as DISPLAY_REGION_ASPECT,
14608
14624
  mm as DifficultyBadge,
14609
- Ng as GuideLayout,
14610
- Tg as GuideStep,
14611
- Mg as GuideStepList,
14612
- kg as LinkButton,
14625
+ Dg as GuideLayout,
14626
+ Mg as GuideStep,
14627
+ Ng as GuideStepList,
14628
+ Tg as LinkButton,
14613
14629
  Lc as MIN_REGION_WIDTH,
14614
- Pg as MediaCropEditor,
14615
- Rm as MediaFigure,
14630
+ Cg as MediaCropEditor,
14631
+ Km as MediaFigure,
14616
14632
  Sl as MediaFigureThumbnail,
14617
- Cg as ToolList,
14633
+ kg as ToolList,
14618
14634
  Yc as calloutTypeColor,
14619
14635
  Xc as calloutTypeHex,
14620
14636
  Rr as calloutTypeLabel,