@stackable-labs/embeddables 1.42.0 → 1.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js CHANGED
@@ -5,7 +5,7 @@ import * as wn from "react-dom";
5
5
  import ls from "react-dom";
6
6
  const Gc = () => {
7
7
  try {
8
- return "52114b9a-7416-4f5e-bba6-816bb13afef4";
8
+ return "7591f218-e27d-40bc-86ae-20e67ded8a13";
9
9
  } catch {
10
10
  return "dev";
11
11
  }
@@ -539,25 +539,25 @@ const Qc = (e) => {
539
539
  if (l.current !== v && (l.current = v, u({})), !c || m.length === 0) return;
540
540
  const y = (w) => {
541
541
  const x = w.data;
542
- if (!(!x || typeof x != "object" || !m.some((R) => {
543
- const E = Ct(R.id);
542
+ if (!(!x || typeof x != "object" || !m.some((N) => {
543
+ const E = Ct(N.id);
544
544
  return E && w.source === E.iframe.contentWindow;
545
545
  }))) {
546
546
  if (x.type === "surface-update" && x.surfaceId === e) {
547
- const R = m.find((k) => {
547
+ const N = m.find((k) => {
548
548
  const C = Ct(k.id);
549
549
  return C && w.source === C.iframe.contentWindow;
550
550
  });
551
- if (!R) return;
551
+ if (!N) return;
552
552
  const E = g(x.tree, w.source ?? null);
553
553
  u((k) => ({
554
554
  ...k,
555
- [R.id]: E
555
+ [N.id]: E
556
556
  }));
557
557
  }
558
- x.type === "surface-ready" && x.surfaceId === e && t && m.forEach((R) => {
558
+ x.type === "surface-ready" && x.surfaceId === e && t && m.forEach((N) => {
559
559
  var k;
560
- const E = Ct(R.id);
560
+ const E = Ct(N.id);
561
561
  (k = E == null ? void 0 : E.iframe.contentWindow) == null || k.postMessage(
562
562
  { type: "context-update", surfaceId: e, context: t },
563
563
  "*"
@@ -588,14 +588,14 @@ const Qc = (e) => {
588
588
  }) : /* @__PURE__ */ p(_.Fragment, { children: v.children }, v.id), S = /* @__PURE__ */ p(_.Fragment, { children: x }, `extension:${v.id}`);
589
589
  if (y === 0 || !o)
590
590
  return [S];
591
- const R = w[y - 1], E = typeof o == "function" ? o({
591
+ const N = w[y - 1], E = typeof o == "function" ? o({
592
592
  index: y,
593
593
  total: w.length,
594
- previousExtensionId: R.id,
594
+ previousExtensionId: N.id,
595
595
  extensionId: v.id
596
596
  }) : o;
597
597
  return [
598
- /* @__PURE__ */ p(_.Fragment, { children: E }, `separator:${R.id}:${v.id}:${y}`),
598
+ /* @__PURE__ */ p(_.Fragment, { children: E }, `separator:${N.id}:${v.id}:${y}`),
599
599
  S
600
600
  ];
601
601
  }) : r;
@@ -889,7 +889,7 @@ function Pl(e) {
889
889
  }
890
890
  const Al = (e) => {
891
891
  var t, n, o, r, s, a, i, c, d;
892
- const { invert: u, toast: l, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: S, defaultRichColors: R, closeButton: E, style: k, cancelButtonStyle: C, actionButtonStyle: M, className: B = "", descriptionClassName: A = "", duration: T, position: P, gap: O, expandByDefault: L, classNames: N, icons: D, closeButtonAriaLabel: z = "Close toast" } = e, [q, I] = _.useState(null), [ae, de] = _.useState(null), [K, oe] = _.useState(!1), [Y, te] = _.useState(!1), [V, W] = _.useState(!1), [X, re] = _.useState(!1), [ee, J] = _.useState(!1), [ue, fe] = _.useState(0), [rt, Ye] = _.useState(0), Ne = _.useRef(l.duration || T || mr), Gt = _.useRef(null), be = _.useRef(null), Mc = y === 0, Oc = y + 1 <= h, xe = l.type, gt = l.dismissible !== !1, Lc = l.className || "", Dc = l.descriptionClassName || "", Yt = _.useMemo(() => v.findIndex((Z) => Z.toastId === l.id) || 0, [
892
+ const { invert: u, toast: l, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: S, defaultRichColors: N, closeButton: E, style: k, cancelButtonStyle: C, actionButtonStyle: I, className: B = "", descriptionClassName: A = "", duration: T, position: P, gap: M, expandByDefault: L, classNames: R, icons: D, closeButtonAriaLabel: z = "Close toast" } = e, [q, O] = _.useState(null), [ae, de] = _.useState(null), [K, oe] = _.useState(!1), [Y, te] = _.useState(!1), [V, W] = _.useState(!1), [X, re] = _.useState(!1), [ee, J] = _.useState(!1), [ue, fe] = _.useState(0), [rt, Ye] = _.useState(0), Ne = _.useRef(l.duration || T || mr), Gt = _.useRef(null), be = _.useRef(null), Mc = y === 0, Oc = y + 1 <= h, xe = l.type, gt = l.dismissible !== !1, Lc = l.className || "", Dc = l.descriptionClassName || "", Yt = _.useMemo(() => v.findIndex((Z) => Z.toastId === l.id) || 0, [
893
893
  v,
894
894
  l.id
895
895
  ]), zc = _.useMemo(() => {
@@ -905,7 +905,7 @@ const Al = (e) => {
905
905
  v,
906
906
  Yt
907
907
  ]), lr = hl(), Bc = l.invert || u, jn = xe === "loading";
908
- vt.current = _.useMemo(() => Yt * O + cr, [
908
+ vt.current = _.useMemo(() => Yt * M + cr, [
909
909
  Yt,
910
910
  cr
911
911
  ]), _.useEffect(() => {
@@ -998,12 +998,12 @@ const Al = (e) => {
998
998
  if (D != null && D.loading) {
999
999
  var me;
1000
1000
  return /* @__PURE__ */ _.createElement("div", {
1001
- className: Oe(N == null ? void 0 : N.loader, l == null || (me = l.classNames) == null ? void 0 : me.loader, "sonner-loader"),
1001
+ className: Oe(R == null ? void 0 : R.loader, l == null || (me = l.classNames) == null ? void 0 : me.loader, "sonner-loader"),
1002
1002
  "data-visible": xe === "loading"
1003
1003
  }, D.loading);
1004
1004
  }
1005
1005
  return /* @__PURE__ */ _.createElement(ll, {
1006
- className: Oe(N == null ? void 0 : N.loader, l == null || (Z = l.classNames) == null ? void 0 : Z.loader),
1006
+ className: Oe(R == null ? void 0 : R.loader, l == null || (Z = l.classNames) == null ? void 0 : Z.loader),
1007
1007
  visible: xe === "loading"
1008
1008
  });
1009
1009
  }
@@ -1012,9 +1012,9 @@ const Al = (e) => {
1012
1012
  return /* @__PURE__ */ _.createElement("li", {
1013
1013
  tabIndex: 0,
1014
1014
  ref: be,
1015
- className: Oe(B, Lc, N == null ? void 0 : N.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, N == null ? void 0 : N.default, N == null ? void 0 : N[xe], l == null || (n = l.classNames) == null ? void 0 : n[xe]),
1015
+ className: Oe(B, Lc, R == null ? void 0 : R.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[xe], l == null || (n = l.classNames) == null ? void 0 : n[xe]),
1016
1016
  "data-sonner-toast": "",
1017
- "data-rich-colors": (dr = l.richColors) != null ? dr : R,
1017
+ "data-rich-colors": (dr = l.richColors) != null ? dr : N,
1018
1018
  "data-styled": !(l.jsx || l.unstyled || m),
1019
1019
  "data-mounted": K,
1020
1020
  "data-promise": !!l.promise,
@@ -1043,7 +1043,7 @@ const Al = (e) => {
1043
1043
  ...l.style
1044
1044
  },
1045
1045
  onDragEnd: () => {
1046
- W(!1), I(null), bt.current = null;
1046
+ W(!1), O(null), bt.current = null;
1047
1047
  },
1048
1048
  onPointerDown: (Z) => {
1049
1049
  Z.button !== 2 && (jn || !gt || (Gt.current = /* @__PURE__ */ new Date(), fe(vt.current), Z.target.setPointerCapture(Z.pointerId), Z.target.tagName !== "BUTTON" && (W(!0), bt.current = {
@@ -1063,7 +1063,7 @@ const Al = (e) => {
1063
1063
  var Te, Pe;
1064
1064
  (Te = be.current) == null || Te.style.setProperty("--swipe-amount-x", "0px"), (Pe = be.current) == null || Pe.style.setProperty("--swipe-amount-y", "0px");
1065
1065
  }
1066
- J(!1), W(!1), I(null);
1066
+ J(!1), W(!1), O(null);
1067
1067
  },
1068
1068
  onPointerMove: (Z) => {
1069
1069
  var me, ge, Se;
@@ -1071,7 +1071,7 @@ const Al = (e) => {
1071
1071
  const he = Z.clientY - bt.current.y, Ee = Z.clientX - bt.current.x;
1072
1072
  var Kt;
1073
1073
  const Te = (Kt = e.swipeDirections) != null ? Kt : Pl(P);
1074
- !q && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && I(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
1074
+ !q && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && O(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
1075
1075
  let Pe = {
1076
1076
  x: 0,
1077
1077
  y: 0
@@ -1102,19 +1102,19 @@ const Al = (e) => {
1102
1102
  } : () => {
1103
1103
  qe(), l.onDismiss == null || l.onDismiss.call(l, l);
1104
1104
  },
1105
- className: Oe(N == null ? void 0 : N.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
1105
+ className: Oe(R == null ? void 0 : R.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
1106
1106
  }, (ur = D == null ? void 0 : D.close) != null ? ur : ml) : null, (xe || l.icon || l.promise) && l.icon !== null && ((D == null ? void 0 : D[xe]) !== null || l.icon) ? /* @__PURE__ */ _.createElement("div", {
1107
1107
  "data-icon": "",
1108
- className: Oe(N == null ? void 0 : N.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
1108
+ className: Oe(R == null ? void 0 : R.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
1109
1109
  }, l.promise || l.type === "loading" && !l.icon ? l.icon || Hc() : null, l.type !== "loading" ? Vc : null) : null, /* @__PURE__ */ _.createElement("div", {
1110
1110
  "data-content": "",
1111
- className: Oe(N == null ? void 0 : N.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
1111
+ className: Oe(R == null ? void 0 : R.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
1112
1112
  }, /* @__PURE__ */ _.createElement("div", {
1113
1113
  "data-title": "",
1114
- className: Oe(N == null ? void 0 : N.title, l == null || (a = l.classNames) == null ? void 0 : a.title)
1114
+ className: Oe(R == null ? void 0 : R.title, l == null || (a = l.classNames) == null ? void 0 : a.title)
1115
1115
  }, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ _.createElement("div", {
1116
1116
  "data-description": "",
1117
- className: Oe(A, Dc, N == null ? void 0 : N.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
1117
+ className: Oe(A, Dc, R == null ? void 0 : R.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
1118
1118
  }, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ _.isValidElement(l.cancel) ? l.cancel : l.cancel && Zt(l.cancel) ? /* @__PURE__ */ _.createElement("button", {
1119
1119
  "data-button": !0,
1120
1120
  "data-cancel": !0,
@@ -1122,15 +1122,15 @@ const Al = (e) => {
1122
1122
  onClick: (Z) => {
1123
1123
  Zt(l.cancel) && gt && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, Z), qe());
1124
1124
  },
1125
- className: Oe(N == null ? void 0 : N.cancelButton, l == null || (c = l.classNames) == null ? void 0 : c.cancelButton)
1125
+ className: Oe(R == null ? void 0 : R.cancelButton, l == null || (c = l.classNames) == null ? void 0 : c.cancelButton)
1126
1126
  }, l.cancel.label) : null, /* @__PURE__ */ _.isValidElement(l.action) ? l.action : l.action && Zt(l.action) ? /* @__PURE__ */ _.createElement("button", {
1127
1127
  "data-button": !0,
1128
1128
  "data-action": !0,
1129
- style: l.actionButtonStyle || M,
1129
+ style: l.actionButtonStyle || I,
1130
1130
  onClick: (Z) => {
1131
1131
  Zt(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, Z), !Z.defaultPrevented && qe());
1132
1132
  },
1133
- className: Oe(N == null ? void 0 : N.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
1133
+ className: Oe(R == null ? void 0 : R.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
1134
1134
  }, l.action.label) : null);
1135
1135
  };
1136
1136
  function hr() {
@@ -1169,15 +1169,15 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
1169
1169
  const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
1170
1170
  "altKey",
1171
1171
  "KeyT"
1172
- ], expand: i, closeButton: c, className: d, offset: u, mobileOffset: l, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Sl, toastOptions: y, dir: w = hr(), gap: x = Rl, icons: S, containerAriaLabel: R = "Notifications" } = t, [E, k] = _.useState([]), C = _.useMemo(() => o ? E.filter((K) => K.toasterId === o) : E.filter((K) => !K.toasterId), [
1172
+ ], expand: i, closeButton: c, className: d, offset: u, mobileOffset: l, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Sl, toastOptions: y, dir: w = hr(), gap: x = Rl, icons: S, containerAriaLabel: N = "Notifications" } = t, [E, k] = _.useState([]), C = _.useMemo(() => o ? E.filter((K) => K.toasterId === o) : E.filter((K) => !K.toasterId), [
1173
1173
  E,
1174
1174
  o
1175
- ]), M = _.useMemo(() => Array.from(new Set([
1175
+ ]), I = _.useMemo(() => Array.from(new Set([
1176
1176
  s
1177
1177
  ].concat(C.filter((K) => K.position).map((K) => K.position)))), [
1178
1178
  C,
1179
1179
  s
1180
- ]), [B, A] = _.useState([]), [T, P] = _.useState(!1), [O, L] = _.useState(!1), [N, D] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), z = _.useRef(null), q = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), I = _.useRef(null), ae = _.useRef(!1), de = _.useCallback((K) => {
1180
+ ]), [B, A] = _.useState([]), [T, P] = _.useState(!1), [M, L] = _.useState(!1), [R, D] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), z = _.useRef(null), q = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), O = _.useRef(null), ae = _.useRef(!1), de = _.useCallback((K) => {
1181
1181
  k((oe) => {
1182
1182
  var Y;
1183
1183
  return (Y = oe.find((te) => te.id === K.id)) != null && Y.delete || ye.dismiss(K.id), oe.filter(({ id: te }) => te !== K.id);
@@ -1254,22 +1254,22 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
1254
1254
  ]), _.useEffect(() => {
1255
1255
  if (z.current)
1256
1256
  return () => {
1257
- I.current && (I.current.focus({
1257
+ O.current && (O.current.focus({
1258
1258
  preventScroll: !0
1259
- }), I.current = null, ae.current = !1);
1259
+ }), O.current = null, ae.current = !1);
1260
1260
  };
1261
1261
  }, [
1262
1262
  z.current
1263
1263
  ]), // Remove item from normal navigation flow, only available via hotkey
1264
1264
  /* @__PURE__ */ _.createElement("section", {
1265
1265
  ref: n,
1266
- "aria-label": `${R} ${q}`,
1266
+ "aria-label": `${N} ${q}`,
1267
1267
  tabIndex: -1,
1268
1268
  "aria-live": "polite",
1269
1269
  "aria-relevant": "additions text",
1270
1270
  "aria-atomic": "false",
1271
1271
  suppressHydrationWarning: !0
1272
- }, M.map((K, oe) => {
1272
+ }, I.map((K, oe) => {
1273
1273
  var Y;
1274
1274
  const [te, V] = K.split("-");
1275
1275
  return C.length ? /* @__PURE__ */ _.createElement("ol", {
@@ -1279,7 +1279,7 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
1279
1279
  ref: z,
1280
1280
  className: d,
1281
1281
  "data-sonner-toaster": !0,
1282
- "data-sonner-theme": N,
1282
+ "data-sonner-theme": R,
1283
1283
  "data-y-position": te,
1284
1284
  "data-x-position": V,
1285
1285
  style: {
@@ -1290,17 +1290,17 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
1290
1290
  ..._l(u, l)
1291
1291
  },
1292
1292
  onBlur: (W) => {
1293
- ae.current && !W.currentTarget.contains(W.relatedTarget) && (ae.current = !1, I.current && (I.current.focus({
1293
+ ae.current && !W.currentTarget.contains(W.relatedTarget) && (ae.current = !1, O.current && (O.current.focus({
1294
1294
  preventScroll: !0
1295
- }), I.current = null));
1295
+ }), O.current = null));
1296
1296
  },
1297
1297
  onFocus: (W) => {
1298
- W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || ae.current || (ae.current = !0, I.current = W.relatedTarget);
1298
+ W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || ae.current || (ae.current = !0, O.current = W.relatedTarget);
1299
1299
  },
1300
1300
  onMouseEnter: () => P(!0),
1301
1301
  onMouseMove: () => P(!0),
1302
1302
  onMouseLeave: () => {
1303
- O || P(!1);
1303
+ M || P(!1);
1304
1304
  },
1305
1305
  onDragEnd: () => P(!1),
1306
1306
  onPointerDown: (W) => {
@@ -1321,7 +1321,7 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
1321
1321
  invert: r,
1322
1322
  visibleToasts: v,
1323
1323
  closeButton: (ee = y == null ? void 0 : y.closeButton) != null ? ee : c,
1324
- interacting: O,
1324
+ interacting: M,
1325
1325
  position: K,
1326
1326
  style: y == null ? void 0 : y.style,
1327
1327
  unstyled: y == null ? void 0 : y.unstyled,
@@ -2164,9 +2164,9 @@ const Vd = (e, t) => {
2164
2164
  if (a.indexOf(S) > -1)
2165
2165
  continue;
2166
2166
  a.push(S);
2167
- const R = r(y, v);
2168
- for (let E = 0; E < R.length; ++E) {
2169
- const k = R[E];
2167
+ const N = r(y, v);
2168
+ for (let E = 0; E < N.length; ++E) {
2169
+ const k = N[E];
2170
2170
  a.push(x + k);
2171
2171
  }
2172
2172
  c = u + (c.length > 0 ? " " + c : c);
@@ -2230,9 +2230,9 @@ const Vd = (e, t) => {
2230
2230
  "bottom-left",
2231
2231
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
2232
2232
  "left-bottom"
2233
- ], R = () => [...S(), F, $], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], C = () => [F, $, c], M = () => [Ke, "full", "auto", ...C()], B = () => [Xe, "none", "subgrid", F, $], A = () => ["auto", {
2233
+ ], N = () => [...S(), F, $], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], C = () => [F, $, c], I = () => [Ke, "full", "auto", ...C()], B = () => [Xe, "none", "subgrid", F, $], A = () => ["auto", {
2234
2234
  span: ["full", Xe, F, $]
2235
- }, Xe, F, $], T = () => [Xe, "auto", F, $], P = () => ["auto", "min", "max", "fr", F, $], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], N = () => ["auto", ...C()], D = () => [Ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], z = () => [Ke, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], q = () => [Ke, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], I = () => [e, F, $], ae = () => [...S(), kr, Cr, {
2235
+ }, Xe, F, $], T = () => [Xe, "auto", F, $], P = () => ["auto", "min", "max", "fr", F, $], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...C()], D = () => [Ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], z = () => [Ke, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], q = () => [Ke, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], O = () => [e, F, $], ae = () => [...S(), kr, Cr, {
2236
2236
  position: [F, $]
2237
2237
  }], de = () => ["no-repeat", {
2238
2238
  repeat: ["", "x", "y", "space", "round"]
@@ -2377,7 +2377,7 @@ const Vd = (e, t) => {
2377
2377
  * @see https://tailwindcss.com/docs/object-position
2378
2378
  */
2379
2379
  "object-position": [{
2380
- object: R()
2380
+ object: N()
2381
2381
  }],
2382
2382
  /**
2383
2383
  * Overflow
@@ -2431,21 +2431,21 @@ const Vd = (e, t) => {
2431
2431
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2432
2432
  */
2433
2433
  inset: [{
2434
- inset: M()
2434
+ inset: I()
2435
2435
  }],
2436
2436
  /**
2437
2437
  * Inset Inline
2438
2438
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2439
2439
  */
2440
2440
  "inset-x": [{
2441
- "inset-x": M()
2441
+ "inset-x": I()
2442
2442
  }],
2443
2443
  /**
2444
2444
  * Inset Block
2445
2445
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2446
2446
  */
2447
2447
  "inset-y": [{
2448
- "inset-y": M()
2448
+ "inset-y": I()
2449
2449
  }],
2450
2450
  /**
2451
2451
  * Inset Inline Start
@@ -2453,12 +2453,12 @@ const Vd = (e, t) => {
2453
2453
  * @todo class group will be renamed to `inset-s` in next major release
2454
2454
  */
2455
2455
  start: [{
2456
- "inset-s": M(),
2456
+ "inset-s": I(),
2457
2457
  /**
2458
2458
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
2459
2459
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
2460
2460
  */
2461
- start: M()
2461
+ start: I()
2462
2462
  }],
2463
2463
  /**
2464
2464
  * Inset Inline End
@@ -2466,54 +2466,54 @@ const Vd = (e, t) => {
2466
2466
  * @todo class group will be renamed to `inset-e` in next major release
2467
2467
  */
2468
2468
  end: [{
2469
- "inset-e": M(),
2469
+ "inset-e": I(),
2470
2470
  /**
2471
2471
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
2472
2472
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
2473
2473
  */
2474
- end: M()
2474
+ end: I()
2475
2475
  }],
2476
2476
  /**
2477
2477
  * Inset Block Start
2478
2478
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2479
2479
  */
2480
2480
  "inset-bs": [{
2481
- "inset-bs": M()
2481
+ "inset-bs": I()
2482
2482
  }],
2483
2483
  /**
2484
2484
  * Inset Block End
2485
2485
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2486
2486
  */
2487
2487
  "inset-be": [{
2488
- "inset-be": M()
2488
+ "inset-be": I()
2489
2489
  }],
2490
2490
  /**
2491
2491
  * Top
2492
2492
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2493
2493
  */
2494
2494
  top: [{
2495
- top: M()
2495
+ top: I()
2496
2496
  }],
2497
2497
  /**
2498
2498
  * Right
2499
2499
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2500
2500
  */
2501
2501
  right: [{
2502
- right: M()
2502
+ right: I()
2503
2503
  }],
2504
2504
  /**
2505
2505
  * Bottom
2506
2506
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2507
2507
  */
2508
2508
  bottom: [{
2509
- bottom: M()
2509
+ bottom: I()
2510
2510
  }],
2511
2511
  /**
2512
2512
  * Left
2513
2513
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2514
2514
  */
2515
2515
  left: [{
2516
- left: M()
2516
+ left: I()
2517
2517
  }],
2518
2518
  /**
2519
2519
  * Visibility
@@ -2682,7 +2682,7 @@ const Vd = (e, t) => {
2682
2682
  * @see https://tailwindcss.com/docs/justify-content
2683
2683
  */
2684
2684
  "justify-content": [{
2685
- justify: [...O(), "normal"]
2685
+ justify: [...M(), "normal"]
2686
2686
  }],
2687
2687
  /**
2688
2688
  * Justify Items
@@ -2703,7 +2703,7 @@ const Vd = (e, t) => {
2703
2703
  * @see https://tailwindcss.com/docs/align-content
2704
2704
  */
2705
2705
  "align-content": [{
2706
- content: ["normal", ...O()]
2706
+ content: ["normal", ...M()]
2707
2707
  }],
2708
2708
  /**
2709
2709
  * Align Items
@@ -2728,7 +2728,7 @@ const Vd = (e, t) => {
2728
2728
  * @see https://tailwindcss.com/docs/place-content
2729
2729
  */
2730
2730
  "place-content": [{
2731
- "place-content": O()
2731
+ "place-content": M()
2732
2732
  }],
2733
2733
  /**
2734
2734
  * Place Items
@@ -2827,77 +2827,77 @@ const Vd = (e, t) => {
2827
2827
  * @see https://tailwindcss.com/docs/margin
2828
2828
  */
2829
2829
  m: [{
2830
- m: N()
2830
+ m: R()
2831
2831
  }],
2832
2832
  /**
2833
2833
  * Margin Inline
2834
2834
  * @see https://tailwindcss.com/docs/margin
2835
2835
  */
2836
2836
  mx: [{
2837
- mx: N()
2837
+ mx: R()
2838
2838
  }],
2839
2839
  /**
2840
2840
  * Margin Block
2841
2841
  * @see https://tailwindcss.com/docs/margin
2842
2842
  */
2843
2843
  my: [{
2844
- my: N()
2844
+ my: R()
2845
2845
  }],
2846
2846
  /**
2847
2847
  * Margin Inline Start
2848
2848
  * @see https://tailwindcss.com/docs/margin
2849
2849
  */
2850
2850
  ms: [{
2851
- ms: N()
2851
+ ms: R()
2852
2852
  }],
2853
2853
  /**
2854
2854
  * Margin Inline End
2855
2855
  * @see https://tailwindcss.com/docs/margin
2856
2856
  */
2857
2857
  me: [{
2858
- me: N()
2858
+ me: R()
2859
2859
  }],
2860
2860
  /**
2861
2861
  * Margin Block Start
2862
2862
  * @see https://tailwindcss.com/docs/margin
2863
2863
  */
2864
2864
  mbs: [{
2865
- mbs: N()
2865
+ mbs: R()
2866
2866
  }],
2867
2867
  /**
2868
2868
  * Margin Block End
2869
2869
  * @see https://tailwindcss.com/docs/margin
2870
2870
  */
2871
2871
  mbe: [{
2872
- mbe: N()
2872
+ mbe: R()
2873
2873
  }],
2874
2874
  /**
2875
2875
  * Margin Top
2876
2876
  * @see https://tailwindcss.com/docs/margin
2877
2877
  */
2878
2878
  mt: [{
2879
- mt: N()
2879
+ mt: R()
2880
2880
  }],
2881
2881
  /**
2882
2882
  * Margin Right
2883
2883
  * @see https://tailwindcss.com/docs/margin
2884
2884
  */
2885
2885
  mr: [{
2886
- mr: N()
2886
+ mr: R()
2887
2887
  }],
2888
2888
  /**
2889
2889
  * Margin Bottom
2890
2890
  * @see https://tailwindcss.com/docs/margin
2891
2891
  */
2892
2892
  mb: [{
2893
- mb: N()
2893
+ mb: R()
2894
2894
  }],
2895
2895
  /**
2896
2896
  * Margin Left
2897
2897
  * @see https://tailwindcss.com/docs/margin
2898
2898
  */
2899
2899
  ml: [{
2900
- ml: N()
2900
+ ml: R()
2901
2901
  }],
2902
2902
  /**
2903
2903
  * Space Between X
@@ -3171,14 +3171,14 @@ const Vd = (e, t) => {
3171
3171
  * @see https://v3.tailwindcss.com/docs/placeholder-color
3172
3172
  */
3173
3173
  "placeholder-color": [{
3174
- placeholder: I()
3174
+ placeholder: O()
3175
3175
  }],
3176
3176
  /**
3177
3177
  * Text Color
3178
3178
  * @see https://tailwindcss.com/docs/text-color
3179
3179
  */
3180
3180
  "text-color": [{
3181
- text: I()
3181
+ text: O()
3182
3182
  }],
3183
3183
  /**
3184
3184
  * Text Decoration
@@ -3204,7 +3204,7 @@ const Vd = (e, t) => {
3204
3204
  * @see https://tailwindcss.com/docs/text-decoration-color
3205
3205
  */
3206
3206
  "text-decoration-color": [{
3207
- decoration: I()
3207
+ decoration: O()
3208
3208
  }],
3209
3209
  /**
3210
3210
  * Text Underline Offset
@@ -3342,7 +3342,7 @@ const Vd = (e, t) => {
3342
3342
  * @see https://tailwindcss.com/docs/background-color
3343
3343
  */
3344
3344
  "bg-color": [{
3345
- bg: I()
3345
+ bg: O()
3346
3346
  }],
3347
3347
  /**
3348
3348
  * Gradient Color Stops From Position
@@ -3370,21 +3370,21 @@ const Vd = (e, t) => {
3370
3370
  * @see https://tailwindcss.com/docs/gradient-color-stops
3371
3371
  */
3372
3372
  "gradient-from": [{
3373
- from: I()
3373
+ from: O()
3374
3374
  }],
3375
3375
  /**
3376
3376
  * Gradient Color Stops Via
3377
3377
  * @see https://tailwindcss.com/docs/gradient-color-stops
3378
3378
  */
3379
3379
  "gradient-via": [{
3380
- via: I()
3380
+ via: O()
3381
3381
  }],
3382
3382
  /**
3383
3383
  * Gradient Color Stops To
3384
3384
  * @see https://tailwindcss.com/docs/gradient-color-stops
3385
3385
  */
3386
3386
  "gradient-to": [{
3387
- to: I()
3387
+ to: O()
3388
3388
  }],
3389
3389
  // ---------------
3390
3390
  // --- Borders ---
@@ -3614,84 +3614,84 @@ const Vd = (e, t) => {
3614
3614
  * @see https://tailwindcss.com/docs/border-color
3615
3615
  */
3616
3616
  "border-color": [{
3617
- border: I()
3617
+ border: O()
3618
3618
  }],
3619
3619
  /**
3620
3620
  * Border Color Inline
3621
3621
  * @see https://tailwindcss.com/docs/border-color
3622
3622
  */
3623
3623
  "border-color-x": [{
3624
- "border-x": I()
3624
+ "border-x": O()
3625
3625
  }],
3626
3626
  /**
3627
3627
  * Border Color Block
3628
3628
  * @see https://tailwindcss.com/docs/border-color
3629
3629
  */
3630
3630
  "border-color-y": [{
3631
- "border-y": I()
3631
+ "border-y": O()
3632
3632
  }],
3633
3633
  /**
3634
3634
  * Border Color Inline Start
3635
3635
  * @see https://tailwindcss.com/docs/border-color
3636
3636
  */
3637
3637
  "border-color-s": [{
3638
- "border-s": I()
3638
+ "border-s": O()
3639
3639
  }],
3640
3640
  /**
3641
3641
  * Border Color Inline End
3642
3642
  * @see https://tailwindcss.com/docs/border-color
3643
3643
  */
3644
3644
  "border-color-e": [{
3645
- "border-e": I()
3645
+ "border-e": O()
3646
3646
  }],
3647
3647
  /**
3648
3648
  * Border Color Block Start
3649
3649
  * @see https://tailwindcss.com/docs/border-color
3650
3650
  */
3651
3651
  "border-color-bs": [{
3652
- "border-bs": I()
3652
+ "border-bs": O()
3653
3653
  }],
3654
3654
  /**
3655
3655
  * Border Color Block End
3656
3656
  * @see https://tailwindcss.com/docs/border-color
3657
3657
  */
3658
3658
  "border-color-be": [{
3659
- "border-be": I()
3659
+ "border-be": O()
3660
3660
  }],
3661
3661
  /**
3662
3662
  * Border Color Top
3663
3663
  * @see https://tailwindcss.com/docs/border-color
3664
3664
  */
3665
3665
  "border-color-t": [{
3666
- "border-t": I()
3666
+ "border-t": O()
3667
3667
  }],
3668
3668
  /**
3669
3669
  * Border Color Right
3670
3670
  * @see https://tailwindcss.com/docs/border-color
3671
3671
  */
3672
3672
  "border-color-r": [{
3673
- "border-r": I()
3673
+ "border-r": O()
3674
3674
  }],
3675
3675
  /**
3676
3676
  * Border Color Bottom
3677
3677
  * @see https://tailwindcss.com/docs/border-color
3678
3678
  */
3679
3679
  "border-color-b": [{
3680
- "border-b": I()
3680
+ "border-b": O()
3681
3681
  }],
3682
3682
  /**
3683
3683
  * Border Color Left
3684
3684
  * @see https://tailwindcss.com/docs/border-color
3685
3685
  */
3686
3686
  "border-color-l": [{
3687
- "border-l": I()
3687
+ "border-l": O()
3688
3688
  }],
3689
3689
  /**
3690
3690
  * Divide Color
3691
3691
  * @see https://tailwindcss.com/docs/divide-color
3692
3692
  */
3693
3693
  "divide-color": [{
3694
- divide: I()
3694
+ divide: O()
3695
3695
  }],
3696
3696
  /**
3697
3697
  * Outline Style
@@ -3719,7 +3719,7 @@ const Vd = (e, t) => {
3719
3719
  * @see https://tailwindcss.com/docs/outline-color
3720
3720
  */
3721
3721
  "outline-color": [{
3722
- outline: I()
3722
+ outline: O()
3723
3723
  }],
3724
3724
  // ---------------
3725
3725
  // --- Effects ---
@@ -3743,7 +3743,7 @@ const Vd = (e, t) => {
3743
3743
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
3744
3744
  */
3745
3745
  "shadow-color": [{
3746
- shadow: I()
3746
+ shadow: O()
3747
3747
  }],
3748
3748
  /**
3749
3749
  * Inset Box Shadow
@@ -3757,7 +3757,7 @@ const Vd = (e, t) => {
3757
3757
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
3758
3758
  */
3759
3759
  "inset-shadow-color": [{
3760
- "inset-shadow": I()
3760
+ "inset-shadow": O()
3761
3761
  }],
3762
3762
  /**
3763
3763
  * Ring Width
@@ -3778,7 +3778,7 @@ const Vd = (e, t) => {
3778
3778
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
3779
3779
  */
3780
3780
  "ring-color": [{
3781
- ring: I()
3781
+ ring: O()
3782
3782
  }],
3783
3783
  /**
3784
3784
  * Ring Offset Width
@@ -3796,7 +3796,7 @@ const Vd = (e, t) => {
3796
3796
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
3797
3797
  */
3798
3798
  "ring-offset-color": [{
3799
- "ring-offset": I()
3799
+ "ring-offset": O()
3800
3800
  }],
3801
3801
  /**
3802
3802
  * Inset Ring Width
@@ -3810,7 +3810,7 @@ const Vd = (e, t) => {
3810
3810
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
3811
3811
  */
3812
3812
  "inset-ring-color": [{
3813
- "inset-ring": I()
3813
+ "inset-ring": O()
3814
3814
  }],
3815
3815
  /**
3816
3816
  * Text Shadow
@@ -3824,7 +3824,7 @@ const Vd = (e, t) => {
3824
3824
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
3825
3825
  */
3826
3826
  "text-shadow-color": [{
3827
- "text-shadow": I()
3827
+ "text-shadow": O()
3828
3828
  }],
3829
3829
  /**
3830
3830
  * Opacity
@@ -3875,10 +3875,10 @@ const Vd = (e, t) => {
3875
3875
  "mask-linear-to": X()
3876
3876
  }],
3877
3877
  "mask-image-linear-from-color": [{
3878
- "mask-linear-from": I()
3878
+ "mask-linear-from": O()
3879
3879
  }],
3880
3880
  "mask-image-linear-to-color": [{
3881
- "mask-linear-to": I()
3881
+ "mask-linear-to": O()
3882
3882
  }],
3883
3883
  "mask-image-t-from-pos": [{
3884
3884
  "mask-t-from": X()
@@ -3887,10 +3887,10 @@ const Vd = (e, t) => {
3887
3887
  "mask-t-to": X()
3888
3888
  }],
3889
3889
  "mask-image-t-from-color": [{
3890
- "mask-t-from": I()
3890
+ "mask-t-from": O()
3891
3891
  }],
3892
3892
  "mask-image-t-to-color": [{
3893
- "mask-t-to": I()
3893
+ "mask-t-to": O()
3894
3894
  }],
3895
3895
  "mask-image-r-from-pos": [{
3896
3896
  "mask-r-from": X()
@@ -3899,10 +3899,10 @@ const Vd = (e, t) => {
3899
3899
  "mask-r-to": X()
3900
3900
  }],
3901
3901
  "mask-image-r-from-color": [{
3902
- "mask-r-from": I()
3902
+ "mask-r-from": O()
3903
3903
  }],
3904
3904
  "mask-image-r-to-color": [{
3905
- "mask-r-to": I()
3905
+ "mask-r-to": O()
3906
3906
  }],
3907
3907
  "mask-image-b-from-pos": [{
3908
3908
  "mask-b-from": X()
@@ -3911,10 +3911,10 @@ const Vd = (e, t) => {
3911
3911
  "mask-b-to": X()
3912
3912
  }],
3913
3913
  "mask-image-b-from-color": [{
3914
- "mask-b-from": I()
3914
+ "mask-b-from": O()
3915
3915
  }],
3916
3916
  "mask-image-b-to-color": [{
3917
- "mask-b-to": I()
3917
+ "mask-b-to": O()
3918
3918
  }],
3919
3919
  "mask-image-l-from-pos": [{
3920
3920
  "mask-l-from": X()
@@ -3923,10 +3923,10 @@ const Vd = (e, t) => {
3923
3923
  "mask-l-to": X()
3924
3924
  }],
3925
3925
  "mask-image-l-from-color": [{
3926
- "mask-l-from": I()
3926
+ "mask-l-from": O()
3927
3927
  }],
3928
3928
  "mask-image-l-to-color": [{
3929
- "mask-l-to": I()
3929
+ "mask-l-to": O()
3930
3930
  }],
3931
3931
  "mask-image-x-from-pos": [{
3932
3932
  "mask-x-from": X()
@@ -3935,10 +3935,10 @@ const Vd = (e, t) => {
3935
3935
  "mask-x-to": X()
3936
3936
  }],
3937
3937
  "mask-image-x-from-color": [{
3938
- "mask-x-from": I()
3938
+ "mask-x-from": O()
3939
3939
  }],
3940
3940
  "mask-image-x-to-color": [{
3941
- "mask-x-to": I()
3941
+ "mask-x-to": O()
3942
3942
  }],
3943
3943
  "mask-image-y-from-pos": [{
3944
3944
  "mask-y-from": X()
@@ -3947,10 +3947,10 @@ const Vd = (e, t) => {
3947
3947
  "mask-y-to": X()
3948
3948
  }],
3949
3949
  "mask-image-y-from-color": [{
3950
- "mask-y-from": I()
3950
+ "mask-y-from": O()
3951
3951
  }],
3952
3952
  "mask-image-y-to-color": [{
3953
- "mask-y-to": I()
3953
+ "mask-y-to": O()
3954
3954
  }],
3955
3955
  "mask-image-radial": [{
3956
3956
  "mask-radial": [F, $]
@@ -3962,10 +3962,10 @@ const Vd = (e, t) => {
3962
3962
  "mask-radial-to": X()
3963
3963
  }],
3964
3964
  "mask-image-radial-from-color": [{
3965
- "mask-radial-from": I()
3965
+ "mask-radial-from": O()
3966
3966
  }],
3967
3967
  "mask-image-radial-to-color": [{
3968
- "mask-radial-to": I()
3968
+ "mask-radial-to": O()
3969
3969
  }],
3970
3970
  "mask-image-radial-shape": [{
3971
3971
  "mask-radial": ["circle", "ellipse"]
@@ -3989,10 +3989,10 @@ const Vd = (e, t) => {
3989
3989
  "mask-conic-to": X()
3990
3990
  }],
3991
3991
  "mask-image-conic-from-color": [{
3992
- "mask-conic-from": I()
3992
+ "mask-conic-from": O()
3993
3993
  }],
3994
3994
  "mask-image-conic-to-color": [{
3995
- "mask-conic-to": I()
3995
+ "mask-conic-to": O()
3996
3996
  }],
3997
3997
  /**
3998
3998
  * Mask Mode
@@ -4099,7 +4099,7 @@ const Vd = (e, t) => {
4099
4099
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
4100
4100
  */
4101
4101
  "drop-shadow-color": [{
4102
- "drop-shadow": I()
4102
+ "drop-shadow": O()
4103
4103
  }],
4104
4104
  /**
4105
4105
  * Grayscale
@@ -4324,7 +4324,7 @@ const Vd = (e, t) => {
4324
4324
  * @see https://tailwindcss.com/docs/perspective-origin
4325
4325
  */
4326
4326
  "perspective-origin": [{
4327
- "perspective-origin": R()
4327
+ "perspective-origin": N()
4328
4328
  }],
4329
4329
  /**
4330
4330
  * Rotate
@@ -4420,7 +4420,7 @@ const Vd = (e, t) => {
4420
4420
  * @see https://tailwindcss.com/docs/transform-origin
4421
4421
  */
4422
4422
  "transform-origin": [{
4423
- origin: R()
4423
+ origin: N()
4424
4424
  }],
4425
4425
  /**
4426
4426
  * Transform Style
@@ -4470,7 +4470,7 @@ const Vd = (e, t) => {
4470
4470
  * @see https://tailwindcss.com/docs/accent-color
4471
4471
  */
4472
4472
  accent: [{
4473
- accent: I()
4473
+ accent: O()
4474
4474
  }],
4475
4475
  /**
4476
4476
  * Appearance
@@ -4484,7 +4484,7 @@ const Vd = (e, t) => {
4484
4484
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
4485
4485
  */
4486
4486
  "caret-color": [{
4487
- caret: I()
4487
+ caret: O()
4488
4488
  }],
4489
4489
  /**
4490
4490
  * Color Scheme
@@ -4758,7 +4758,7 @@ const Vd = (e, t) => {
4758
4758
  * @see https://tailwindcss.com/docs/fill
4759
4759
  */
4760
4760
  fill: [{
4761
- fill: ["none", ...I()]
4761
+ fill: ["none", ...O()]
4762
4762
  }],
4763
4763
  /**
4764
4764
  * Stroke Width
@@ -4772,7 +4772,7 @@ const Vd = (e, t) => {
4772
4772
  * @see https://tailwindcss.com/docs/stroke
4773
4773
  */
4774
4774
  stroke: [{
4775
- stroke: ["none", ...I()]
4775
+ stroke: ["none", ...O()]
4776
4776
  }],
4777
4777
  // ---------------------
4778
4778
  // --- Accessibility ---
@@ -5101,8 +5101,8 @@ function Vs(e) {
5101
5101
  d.displayName = i;
5102
5102
  const u = e + "CollectionItemSlot", l = "data-radix-collection-item", m = /* @__PURE__ */ $t(u), g = _.forwardRef(
5103
5103
  (h, v) => {
5104
- const { scope: y, children: w, ...x } = h, S = _.useRef(null), R = ne(v, S), E = s(u, y);
5105
- return _.useEffect(() => (E.itemMap.set(S, { ref: S, ...x }), () => void E.itemMap.delete(S))), /* @__PURE__ */ p(m, { [l]: "", ref: R, children: w });
5104
+ const { scope: y, children: w, ...x } = h, S = _.useRef(null), N = ne(v, S), E = s(u, y);
5105
+ return _.useEffect(() => (E.itemMap.set(S, { ref: S, ...x }), () => void E.itemMap.delete(S))), /* @__PURE__ */ p(m, { [l]: "", ref: N, children: w });
5106
5106
  }
5107
5107
  );
5108
5108
  g.displayName = u;
@@ -5389,9 +5389,9 @@ var nf = "DismissableLayer", mo = "dismissableLayer.update", of = "dismissableLa
5389
5389
  onInteractOutside: a,
5390
5390
  onDismiss: i,
5391
5391
  ...c
5392
- } = e, d = f.useContext(Ys), [u, l] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = ne(t, (k) => l(k)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = u ? h.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= y, R = cf((k) => {
5393
- const C = k.target, M = [...d.branches].some((B) => B.contains(C));
5394
- !S || M || (r == null || r(k), a == null || a(k), k.defaultPrevented || i == null || i());
5392
+ } = e, d = f.useContext(Ys), [u, l] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = ne(t, (k) => l(k)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = u ? h.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= y, N = cf((k) => {
5393
+ const C = k.target, I = [...d.branches].some((B) => B.contains(C));
5394
+ !S || I || (r == null || r(k), a == null || a(k), k.defaultPrevented || i == null || i());
5395
5395
  }, m), E = lf((k) => {
5396
5396
  const C = k.target;
5397
5397
  [...d.branches].some((B) => B.contains(C)) || (s == null || s(k), a == null || a(k), k.defaultPrevented || i == null || i());
@@ -5421,7 +5421,7 @@ var nf = "DismissableLayer", mo = "dismissableLayer.update", of = "dismissableLa
5421
5421
  onBlurCapture: G(e.onBlurCapture, E.onBlurCapture),
5422
5422
  onPointerDownCapture: G(
5423
5423
  e.onPointerDownCapture,
5424
- R.onPointerDownCapture
5424
+ N.onPointerDownCapture
5425
5425
  )
5426
5426
  }
5427
5427
  );
@@ -5519,8 +5519,8 @@ var Yn = "focusScope.autoFocusOnMount", qn = "focusScope.autoFocusOnUnmount", Ar
5519
5519
  S !== null && (i.contains(S) || Ze(l.current, { select: !0 }));
5520
5520
  }, y = function(x) {
5521
5521
  if (document.activeElement === document.body)
5522
- for (const R of x)
5523
- R.removedNodes.length > 0 && Ze(i);
5522
+ for (const N of x)
5523
+ N.removedNodes.length > 0 && Ze(i);
5524
5524
  };
5525
5525
  document.addEventListener("focusin", h), document.addEventListener("focusout", v);
5526
5526
  const w = new MutationObserver(y);
@@ -5790,11 +5790,11 @@ var Qs = Nf(), Zn = function() {
5790
5790
  onScrollCapture: Zn,
5791
5791
  onWheelCapture: Zn,
5792
5792
  onTouchMoveCapture: Zn
5793
- }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, S = Zs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, E = kf([n, t]), k = De(De({}, S), r);
5793
+ }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, S = Zs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, E = kf([n, t]), k = De(De({}, S), r);
5794
5794
  return f.createElement(
5795
5795
  f.Fragment,
5796
5796
  null,
5797
- u && f.createElement(R, { sideCar: Qs, removeScrollBar: d, shards: l, noRelative: g, noIsolation: b, inert: h, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
5797
+ u && f.createElement(N, { sideCar: Qs, removeScrollBar: d, shards: l, noRelative: g, noIsolation: b, inert: h, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
5798
5798
  a ? f.cloneElement(f.Children.only(i), De(De({}, k), { ref: E })) : f.createElement(w, De({}, k, { className: c, ref: E }), i)
5799
5799
  );
5800
5800
  });
@@ -6041,34 +6041,34 @@ function Jf(e) {
6041
6041
  var i = f.useCallback(function(h, v) {
6042
6042
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
6043
6043
  return !a.current.allowPinchZoom;
6044
- var y = nn(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], S = "deltaY" in h ? h.deltaY : w[1] - y[1], R, E = h.target, k = Math.abs(x) > Math.abs(S) ? "h" : "v";
6044
+ var y = nn(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], S = "deltaY" in h ? h.deltaY : w[1] - y[1], N, E = h.target, k = Math.abs(x) > Math.abs(S) ? "h" : "v";
6045
6045
  if ("touches" in h && k === "h" && E.type === "range")
6046
6046
  return !1;
6047
- var C = window.getSelection(), M = C && C.anchorNode, B = M ? M === E || M.contains(E) : !1;
6047
+ var C = window.getSelection(), I = C && C.anchorNode, B = I ? I === E || I.contains(E) : !1;
6048
6048
  if (B)
6049
6049
  return !1;
6050
6050
  var A = zr(k, E);
6051
6051
  if (!A)
6052
6052
  return !0;
6053
- if (A ? R = k : (R = k === "v" ? "h" : "v", A = zr(k, E)), !A)
6053
+ if (A ? N = k : (N = k === "v" ? "h" : "v", A = zr(k, E)), !A)
6054
6054
  return !1;
6055
- if (!o.current && "changedTouches" in h && (x || S) && (o.current = R), !R)
6055
+ if (!o.current && "changedTouches" in h && (x || S) && (o.current = N), !N)
6056
6056
  return !0;
6057
- var T = o.current || R;
6057
+ var T = o.current || N;
6058
6058
  return qf(T, v, h, T === "h" ? x : S);
6059
6059
  }, []), c = f.useCallback(function(h) {
6060
6060
  var v = h;
6061
6061
  if (!(!xt.length || xt[xt.length - 1] !== s)) {
6062
- var y = "deltaY" in v ? $r(v) : nn(v), w = t.current.filter(function(R) {
6063
- return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && Kf(R.delta, y);
6062
+ var y = "deltaY" in v ? $r(v) : nn(v), w = t.current.filter(function(N) {
6063
+ return N.name === v.type && (N.target === v.target || v.target === N.shadowParent) && Kf(N.delta, y);
6064
6064
  })[0];
6065
6065
  if (w && w.should) {
6066
6066
  v.cancelable && v.preventDefault();
6067
6067
  return;
6068
6068
  }
6069
6069
  if (!w) {
6070
- var x = (a.current.shards || []).map(Fr).filter(Boolean).filter(function(R) {
6071
- return R.contains(v.target);
6070
+ var x = (a.current.shards || []).map(Fr).filter(Boolean).filter(function(N) {
6071
+ return N.contains(v.target);
6072
6072
  }), S = x.length > 0 ? i(v, x[0]) : !a.current.noIsolation;
6073
6073
  S && v.cancelable && v.preventDefault();
6074
6074
  }
@@ -6496,13 +6496,13 @@ var va = "CheckboxBubbleInput", ba = f.forwardRef(
6496
6496
  f.useEffect(() => {
6497
6497
  const w = m;
6498
6498
  if (!w) return;
6499
- const x = window.HTMLInputElement.prototype, R = Object.getOwnPropertyDescriptor(
6499
+ const x = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
6500
6500
  x,
6501
6501
  "checked"
6502
6502
  ).set, E = !r.current;
6503
- if (h !== s && R) {
6503
+ if (h !== s && N) {
6504
6504
  const k = new Event("click", { bubbles: E });
6505
- w.indeterminate = Je(s), R.call(w, Je(s) ? !1 : s), w.dispatchEvent(k);
6505
+ w.indeterminate = Je(s), N.call(w, Je(s) ? !1 : s), w.dispatchEvent(k);
6506
6506
  }
6507
6507
  }, [m, h, s, r]);
6508
6508
  const y = f.useRef(Je(s) ? !1 : s);
@@ -6730,17 +6730,17 @@ async function Pp(e, t) {
6730
6730
  } : {
6731
6731
  x: 1,
6732
6732
  y: 1
6733
- }, R = mn(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
6733
+ }, N = mn(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
6734
6734
  elements: i,
6735
6735
  rect: w,
6736
6736
  offsetParent: x,
6737
6737
  strategy: c
6738
6738
  }) : w);
6739
6739
  return {
6740
- top: (y.top - R.top + b.top) / S.y,
6741
- bottom: (R.bottom - y.bottom + b.bottom) / S.y,
6742
- left: (y.left - R.left + b.left) / S.x,
6743
- right: (R.right - y.right + b.right) / S.x
6740
+ top: (y.top - N.top + b.top) / S.y,
6741
+ bottom: (N.bottom - y.bottom + b.bottom) / S.y,
6742
+ left: (y.left - N.left + b.left) / S.x,
6743
+ right: (N.right - y.right + b.right) / S.x
6744
6744
  };
6745
6745
  }
6746
6746
  const Ap = 50, _p = async (e, t, n) => {
@@ -6772,7 +6772,7 @@ const Ap = 50, _p = async (e, t, n) => {
6772
6772
  } = v, {
6773
6773
  x,
6774
6774
  y: S,
6775
- data: R,
6775
+ data: N,
6776
6776
  reset: E
6777
6777
  } = await w({
6778
6778
  x: u,
@@ -6790,7 +6790,7 @@ const Ap = 50, _p = async (e, t, n) => {
6790
6790
  });
6791
6791
  u = x ?? u, l = S ?? l, b[y] = {
6792
6792
  ...b[y],
6793
- ...R
6793
+ ...N
6794
6794
  }, E && g < Ap && (g++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (d = E.rects === !0 ? await a.getElementRects({
6795
6795
  reference: e,
6796
6796
  floating: t,
@@ -6828,20 +6828,20 @@ const Ap = 50, _p = async (e, t, n) => {
6828
6828
  const l = wa(u), m = {
6829
6829
  x: n,
6830
6830
  y: o
6831
- }, g = Uo(r), b = Wo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[g] - m[g] - s.floating[b], R = m[g] - s.reference[g], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
6831
+ }, g = Uo(r), b = Wo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[g] - m[g] - s.floating[b], N = m[g] - s.reference[g], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
6832
6832
  let k = E ? E[x] : 0;
6833
6833
  (!k || !await (a.isElement == null ? void 0 : a.isElement(E))) && (k = i.floating[x] || s.floating[b]);
6834
- const C = S / 2 - R / 2, M = k / 2 - h[b] / 2 - 1, B = Qe(l[y], M), A = Qe(l[w], M), T = B, P = k - h[b] - A, O = k / 2 - h[b] / 2 + C, L = go(T, O, P), N = !c.arrow && At(r) != null && O !== L && s.reference[b] / 2 - (O < T ? B : A) - h[b] / 2 < 0, D = N ? O < T ? O - T : O - P : 0;
6834
+ const C = S / 2 - N / 2, I = k / 2 - h[b] / 2 - 1, B = Qe(l[y], I), A = Qe(l[w], I), T = B, P = k - h[b] - A, M = k / 2 - h[b] / 2 + C, L = go(T, M, P), R = !c.arrow && At(r) != null && M !== L && s.reference[b] / 2 - (M < T ? B : A) - h[b] / 2 < 0, D = R ? M < T ? M - T : M - P : 0;
6835
6835
  return {
6836
6836
  [g]: m[g] + D,
6837
6837
  data: {
6838
6838
  [g]: L,
6839
- centerOffset: O - L - D,
6840
- ...N && {
6839
+ centerOffset: M - L - D,
6840
+ ...R && {
6841
6841
  alignmentOffset: D
6842
6842
  }
6843
6843
  },
6844
- reset: N
6844
+ reset: R
6845
6845
  };
6846
6846
  }
6847
6847
  }), Mp = function(e) {
@@ -6868,34 +6868,34 @@ const Ap = 50, _p = async (e, t, n) => {
6868
6868
  } = Ue(e, t);
6869
6869
  if ((n = s.arrow) != null && n.alignmentOffset)
6870
6870
  return {};
6871
- const y = je(r), w = ze(i), x = je(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), R = m || (x || !h ? [pn(i)] : Cp(i)), E = b !== "none";
6872
- !m && E && R.push(...Np(i, h, b, S));
6873
- const k = [i, ...R], C = await c.detectOverflow(t, v), M = [];
6871
+ const y = je(r), w = ze(i), x = je(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), N = m || (x || !h ? [pn(i)] : Cp(i)), E = b !== "none";
6872
+ !m && E && N.push(...Np(i, h, b, S));
6873
+ const k = [i, ...N], C = await c.detectOverflow(t, v), I = [];
6874
6874
  let B = ((o = s.flip) == null ? void 0 : o.overflows) || [];
6875
- if (u && M.push(C[y]), l) {
6876
- const O = Sp(r, a, S);
6877
- M.push(C[O[0]], C[O[1]]);
6875
+ if (u && I.push(C[y]), l) {
6876
+ const M = Sp(r, a, S);
6877
+ I.push(C[M[0]], C[M[1]]);
6878
6878
  }
6879
6879
  if (B = [...B, {
6880
6880
  placement: r,
6881
- overflows: M
6882
- }], !M.every((O) => O <= 0)) {
6881
+ overflows: I
6882
+ }], !I.every((M) => M <= 0)) {
6883
6883
  var A, T;
6884
- const O = (((A = s.flip) == null ? void 0 : A.index) || 0) + 1, L = k[O];
6884
+ const M = (((A = s.flip) == null ? void 0 : A.index) || 0) + 1, L = k[M];
6885
6885
  if (L && (!(l === "alignment" ? w !== ze(L) : !1) || // We leave the current main axis only if every placement on that axis
6886
6886
  // overflows the main axis.
6887
6887
  B.every((z) => ze(z.placement) === w ? z.overflows[0] > 0 : !0)))
6888
6888
  return {
6889
6889
  data: {
6890
- index: O,
6890
+ index: M,
6891
6891
  overflows: B
6892
6892
  },
6893
6893
  reset: {
6894
6894
  placement: L
6895
6895
  }
6896
6896
  };
6897
- let N = (T = B.filter((D) => D.overflows[0] <= 0).sort((D, z) => D.overflows[1] - z.overflows[1])[0]) == null ? void 0 : T.placement;
6898
- if (!N)
6897
+ let R = (T = B.filter((D) => D.overflows[0] <= 0).sort((D, z) => D.overflows[1] - z.overflows[1])[0]) == null ? void 0 : T.placement;
6898
+ if (!R)
6899
6899
  switch (g) {
6900
6900
  case "bestFit": {
6901
6901
  var P;
@@ -6907,18 +6907,18 @@ const Ap = 50, _p = async (e, t, n) => {
6907
6907
  q === "y";
6908
6908
  }
6909
6909
  return !0;
6910
- }).map((z) => [z.placement, z.overflows.filter((q) => q > 0).reduce((q, I) => q + I, 0)]).sort((z, q) => z[1] - q[1])[0]) == null ? void 0 : P[0];
6911
- D && (N = D);
6910
+ }).map((z) => [z.placement, z.overflows.filter((q) => q > 0).reduce((q, O) => q + O, 0)]).sort((z, q) => z[1] - q[1])[0]) == null ? void 0 : P[0];
6911
+ D && (R = D);
6912
6912
  break;
6913
6913
  }
6914
6914
  case "initialPlacement":
6915
- N = i;
6915
+ R = i;
6916
6916
  break;
6917
6917
  }
6918
- if (r !== N)
6918
+ if (r !== R)
6919
6919
  return {
6920
6920
  reset: {
6921
- placement: N
6921
+ placement: R
6922
6922
  }
6923
6923
  };
6924
6924
  }
@@ -7114,13 +7114,13 @@ const Dp = function(e) {
7114
7114
  ...h
7115
7115
  };
7116
7116
  if (c) {
7117
- const x = m === "y" ? "height" : "width", S = s.reference[m] - s.floating[x] + v.mainAxis, R = s.reference[m] + s.reference[x] - v.mainAxis;
7118
- g < S ? g = S : g > R && (g = R);
7117
+ const x = m === "y" ? "height" : "width", S = s.reference[m] - s.floating[x] + v.mainAxis, N = s.reference[m] + s.reference[x] - v.mainAxis;
7118
+ g < S ? g = S : g > N && (g = N);
7119
7119
  }
7120
7120
  if (d) {
7121
7121
  var y, w;
7122
- const x = m === "y" ? "width" : "height", S = xa.has(je(r)), R = s.reference[l] - s.floating[x] + (S && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (S ? 0 : v.crossAxis), E = s.reference[l] + s.reference[x] + (S ? 0 : ((w = a.offset) == null ? void 0 : w[l]) || 0) - (S ? v.crossAxis : 0);
7123
- b < R ? b = R : b > E && (b = E);
7122
+ const x = m === "y" ? "width" : "height", S = xa.has(je(r)), N = s.reference[l] - s.floating[x] + (S && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (S ? 0 : v.crossAxis), E = s.reference[l] + s.reference[x] + (S ? 0 : ((w = a.offset) == null ? void 0 : w[l]) || 0) - (S ? v.crossAxis : 0);
7123
+ b < N ? b = N : b > E && (b = E);
7124
7124
  }
7125
7125
  return {
7126
7126
  [m]: g,
@@ -7149,8 +7149,8 @@ const Dp = function(e) {
7149
7149
  } = s.floating;
7150
7150
  let v, y;
7151
7151
  l === "top" || l === "bottom" ? (v = l, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = l, v = m === "end" ? "top" : "bottom");
7152
- const w = h - u.top - u.bottom, x = b - u.left - u.right, S = Qe(h - u[v], w), R = Qe(b - u[y], x), E = !t.middlewareData.shift;
7153
- let k = S, C = R;
7152
+ const w = h - u.top - u.bottom, x = b - u.left - u.right, S = Qe(h - u[v], w), N = Qe(b - u[y], x), E = !t.middlewareData.shift;
7153
+ let k = S, C = N;
7154
7154
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = x), (o = t.middlewareData.shift) != null && o.enabled.y && (k = w), E && !m) {
7155
7155
  const B = Ce(u.left, 0), A = Ce(u.right, 0), T = Ce(u.top, 0), P = Ce(u.bottom, 0);
7156
7156
  g ? C = b - 2 * (B !== 0 || A !== 0 ? B + A : Ce(u.left, u.right)) : k = h - 2 * (T !== 0 || P !== 0 ? T + P : Ce(u.top, u.bottom));
@@ -7160,8 +7160,8 @@ const Dp = function(e) {
7160
7160
  availableWidth: C,
7161
7161
  availableHeight: k
7162
7162
  });
7163
- const M = await a.getDimensions(i.floating);
7164
- return b !== M.width || h !== M.height ? {
7163
+ const I = await a.getDimensions(i.floating);
7164
+ return b !== I.width || h !== I.height ? {
7165
7165
  reset: {
7166
7166
  rects: !0
7167
7167
  }
@@ -7597,7 +7597,7 @@ function rm(e, t) {
7597
7597
  threshold: Ce(0, Qe(1, c)) || 1
7598
7598
  };
7599
7599
  let S = !0;
7600
- function R(E) {
7600
+ function N(E) {
7601
7601
  const k = E[0].intersectionRatio;
7602
7602
  if (k !== c) {
7603
7603
  if (!S)
@@ -7609,13 +7609,13 @@ function rm(e, t) {
7609
7609
  k === 1 && !Pa(d, e.getBoundingClientRect()) && a(), S = !1;
7610
7610
  }
7611
7611
  try {
7612
- n = new IntersectionObserver(R, {
7612
+ n = new IntersectionObserver(N, {
7613
7613
  ...x,
7614
7614
  // Handle <iframe>s
7615
7615
  root: r.ownerDocument
7616
7616
  });
7617
7617
  } catch {
7618
- n = new IntersectionObserver(R, x);
7618
+ n = new IntersectionObserver(N, x);
7619
7619
  }
7620
7620
  n.observe(e);
7621
7621
  }
@@ -7742,7 +7742,7 @@ function hm(e) {
7742
7742
  z !== E.current && (E.current = z, h(z));
7743
7743
  }, []), x = f.useCallback((z) => {
7744
7744
  z !== k.current && (k.current = z, y(z));
7745
- }, []), S = s || b, R = a || v, E = f.useRef(null), k = f.useRef(null), C = f.useRef(u), M = c != null, B = ro(c), A = ro(r), T = ro(d), P = f.useCallback(() => {
7745
+ }, []), S = s || b, N = a || v, E = f.useRef(null), k = f.useRef(null), C = f.useRef(u), I = c != null, B = ro(c), A = ro(r), T = ro(d), P = f.useCallback(() => {
7746
7746
  if (!E.current || !k.current)
7747
7747
  return;
7748
7748
  const z = {
@@ -7751,7 +7751,7 @@ function hm(e) {
7751
7751
  middleware: m
7752
7752
  };
7753
7753
  A.current && (z.platform = A.current), fm(E.current, k.current, z).then((q) => {
7754
- const I = {
7754
+ const O = {
7755
7755
  ...q,
7756
7756
  // The floating element's position may be recomputed while it's closed
7757
7757
  // but still mounted (such as when transitioning out). To ensure
@@ -7759,8 +7759,8 @@ function hm(e) {
7759
7759
  // setting it to `true` when `open === false` (must be specified).
7760
7760
  isPositioned: T.current !== !1
7761
7761
  };
7762
- O.current && !hn(C.current, I) && (C.current = I, wn.flushSync(() => {
7763
- l(I);
7762
+ M.current && !hn(C.current, O) && (C.current = O, wn.flushSync(() => {
7763
+ l(O);
7764
7764
  }));
7765
7765
  });
7766
7766
  }, [m, t, n, A, T]);
@@ -7770,52 +7770,52 @@ function hm(e) {
7770
7770
  isPositioned: !1
7771
7771
  })));
7772
7772
  }, [d]);
7773
- const O = f.useRef(!1);
7774
- ln(() => (O.current = !0, () => {
7775
- O.current = !1;
7773
+ const M = f.useRef(!1);
7774
+ ln(() => (M.current = !0, () => {
7775
+ M.current = !1;
7776
7776
  }), []), ln(() => {
7777
- if (S && (E.current = S), R && (k.current = R), S && R) {
7777
+ if (S && (E.current = S), N && (k.current = N), S && N) {
7778
7778
  if (B.current)
7779
- return B.current(S, R, P);
7779
+ return B.current(S, N, P);
7780
7780
  P();
7781
7781
  }
7782
- }, [S, R, P, B, M]);
7782
+ }, [S, N, P, B, I]);
7783
7783
  const L = f.useMemo(() => ({
7784
7784
  reference: E,
7785
7785
  floating: k,
7786
7786
  setReference: w,
7787
7787
  setFloating: x
7788
- }), [w, x]), N = f.useMemo(() => ({
7788
+ }), [w, x]), R = f.useMemo(() => ({
7789
7789
  reference: S,
7790
- floating: R
7791
- }), [S, R]), D = f.useMemo(() => {
7790
+ floating: N
7791
+ }), [S, N]), D = f.useMemo(() => {
7792
7792
  const z = {
7793
7793
  position: n,
7794
7794
  left: 0,
7795
7795
  top: 0
7796
7796
  };
7797
- if (!N.floating)
7797
+ if (!R.floating)
7798
7798
  return z;
7799
- const q = Qr(N.floating, u.x), I = Qr(N.floating, u.y);
7799
+ const q = Qr(R.floating, u.x), O = Qr(R.floating, u.y);
7800
7800
  return i ? {
7801
7801
  ...z,
7802
- transform: "translate(" + q + "px, " + I + "px)",
7803
- ...Aa(N.floating) >= 1.5 && {
7802
+ transform: "translate(" + q + "px, " + O + "px)",
7803
+ ...Aa(R.floating) >= 1.5 && {
7804
7804
  willChange: "transform"
7805
7805
  }
7806
7806
  } : {
7807
7807
  position: n,
7808
7808
  left: q,
7809
- top: I
7809
+ top: O
7810
7810
  };
7811
- }, [n, i, N.floating, u.x, u.y]);
7811
+ }, [n, i, R.floating, u.x, u.y]);
7812
7812
  return f.useMemo(() => ({
7813
7813
  ...u,
7814
7814
  update: P,
7815
7815
  refs: L,
7816
- elements: N,
7816
+ elements: R,
7817
7817
  floatingStyles: D
7818
- }), [u, P, L, N, D]);
7818
+ }), [u, P, L, R, D]);
7819
7819
  }
7820
7820
  const gm = (e) => {
7821
7821
  function t(n) {
@@ -7933,15 +7933,15 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
7933
7933
  updatePositionStrategy: g = "optimized",
7934
7934
  onPlaced: b,
7935
7935
  ...h
7936
- } = e, v = Ma(Ko, n), [y, w] = f.useState(null), x = ne(t, (ue) => w(ue)), [S, R] = f.useState(null), E = Rn(S), k = (E == null ? void 0 : E.width) ?? 0, C = (E == null ? void 0 : E.height) ?? 0, M = o + (s !== "center" ? "-" + s : ""), B = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, A = Array.isArray(d) ? d : [d], T = A.length > 0, P = {
7936
+ } = e, v = Ma(Ko, n), [y, w] = f.useState(null), x = ne(t, (ue) => w(ue)), [S, N] = f.useState(null), E = Rn(S), k = (E == null ? void 0 : E.width) ?? 0, C = (E == null ? void 0 : E.height) ?? 0, I = o + (s !== "center" ? "-" + s : ""), B = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, A = Array.isArray(d) ? d : [d], T = A.length > 0, P = {
7937
7937
  padding: B,
7938
7938
  boundary: A.filter(Am),
7939
7939
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
7940
7940
  altBoundary: T
7941
- }, { refs: O, floatingStyles: L, placement: N, isPositioned: D, middlewareData: z } = hm({
7941
+ }, { refs: M, floatingStyles: L, placement: R, isPositioned: D, middlewareData: z } = hm({
7942
7942
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
7943
7943
  strategy: "fixed",
7944
- placement: M,
7944
+ placement: I,
7945
7945
  whileElementsMounted: (...ue) => sm(...ue, {
7946
7946
  animationFrame: g === "always"
7947
7947
  }),
@@ -7968,7 +7968,7 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
7968
7968
  _m({ arrowWidth: k, arrowHeight: C }),
7969
7969
  m && Sm({ strategy: "referenceHidden", ...P })
7970
7970
  ]
7971
- }), [q, I] = Ba(N), ae = ve(b);
7971
+ }), [q, O] = Ba(R), ae = ve(b);
7972
7972
  le(() => {
7973
7973
  D && (ae == null || ae());
7974
7974
  }, [D, ae]);
@@ -7978,7 +7978,7 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
7978
7978
  }, [y]), /* @__PURE__ */ p(
7979
7979
  "div",
7980
7980
  {
7981
- ref: O.setFloating,
7981
+ ref: M.setFloating,
7982
7982
  "data-radix-popper-content-wrapper": "",
7983
7983
  style: {
7984
7984
  ...L,
@@ -8004,7 +8004,7 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
8004
8004
  {
8005
8005
  scope: n,
8006
8006
  placedSide: q,
8007
- onArrowChange: R,
8007
+ onArrowChange: N,
8008
8008
  arrowX: de,
8009
8009
  arrowY: K,
8010
8010
  shouldHideArrow: oe,
@@ -8012,7 +8012,7 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
8012
8012
  j.div,
8013
8013
  {
8014
8014
  "data-side": q,
8015
- "data-align": I,
8015
+ "data-align": O,
8016
8016
  ...h,
8017
8017
  ref: x,
8018
8018
  style: {
@@ -8122,7 +8122,7 @@ var zm = f.forwardRef((e, t) => {
8122
8122
  defaultProp: i ?? null,
8123
8123
  onChange: c,
8124
8124
  caller: Ut
8125
- }), [y, w] = f.useState(!1), x = ve(d), S = ja(n), R = f.useRef(!1), [E, k] = f.useState(0);
8125
+ }), [y, w] = f.useState(!1), x = ve(d), S = ja(n), N = f.useRef(!1), [E, k] = f.useState(0);
8126
8126
  return f.useEffect(() => {
8127
8127
  const C = m.current;
8128
8128
  if (C)
@@ -8157,20 +8157,20 @@ var zm = f.forwardRef((e, t) => {
8157
8157
  ref: g,
8158
8158
  style: { outline: "none", ...e.style },
8159
8159
  onMouseDown: G(e.onMouseDown, () => {
8160
- R.current = !0;
8160
+ N.current = !0;
8161
8161
  }),
8162
8162
  onFocus: G(e.onFocus, (C) => {
8163
- const M = !R.current;
8164
- if (C.target === C.currentTarget && M && !y) {
8163
+ const I = !N.current;
8164
+ if (C.target === C.currentTarget && I && !y) {
8165
8165
  const B = new CustomEvent(so, Im);
8166
8166
  if (C.currentTarget.dispatchEvent(B), !B.defaultPrevented) {
8167
- const A = S().filter((N) => N.focusable), T = A.find((N) => N.active), P = A.find((N) => N.id === h), L = [T, P, ...A].filter(
8167
+ const A = S().filter((R) => R.focusable), T = A.find((R) => R.active), P = A.find((R) => R.id === h), L = [T, P, ...A].filter(
8168
8168
  Boolean
8169
- ).map((N) => N.ref.current);
8169
+ ).map((R) => R.ref.current);
8170
8170
  Ka(L, u);
8171
8171
  }
8172
8172
  }
8173
- R.current = !1;
8173
+ N.current = !1;
8174
8174
  }),
8175
8175
  onBlur: G(e.onBlur, () => w(!1))
8176
8176
  }
@@ -8580,7 +8580,7 @@ var Qo = "ScrollArea", [hi] = we(Qo), [uh, Re] = hi(Qo), gi = f.forwardRef(
8580
8580
  dir: r,
8581
8581
  scrollHideDelay: s = 600,
8582
8582
  ...a
8583
- } = e, [i, c] = f.useState(null), [d, u] = f.useState(null), [l, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, S] = f.useState(0), [R, E] = f.useState(!1), [k, C] = f.useState(!1), M = ne(t, (A) => c(A)), B = Vt(r);
8583
+ } = e, [i, c] = f.useState(null), [d, u] = f.useState(null), [l, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, S] = f.useState(0), [N, E] = f.useState(!1), [k, C] = f.useState(!1), I = ne(t, (A) => c(A)), B = Vt(r);
8584
8584
  return /* @__PURE__ */ p(
8585
8585
  uh,
8586
8586
  {
@@ -8595,7 +8595,7 @@ var Qo = "ScrollArea", [hi] = we(Qo), [uh, Re] = hi(Qo), gi = f.forwardRef(
8595
8595
  onContentChange: m,
8596
8596
  scrollbarX: g,
8597
8597
  onScrollbarXChange: b,
8598
- scrollbarXEnabled: R,
8598
+ scrollbarXEnabled: N,
8599
8599
  onScrollbarXEnabledChange: E,
8600
8600
  scrollbarY: h,
8601
8601
  onScrollbarYChange: v,
@@ -8608,7 +8608,7 @@ var Qo = "ScrollArea", [hi] = we(Qo), [uh, Re] = hi(Qo), gi = f.forwardRef(
8608
8608
  {
8609
8609
  dir: B,
8610
8610
  ...a,
8611
- ref: M,
8611
+ ref: I,
8612
8612
  style: {
8613
8613
  position: "relative",
8614
8614
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
@@ -8902,20 +8902,20 @@ var fh = f.forwardRef((e, t) => {
8902
8902
  onWheelScroll: u,
8903
8903
  onResize: l,
8904
8904
  ...m
8905
- } = e, g = Re(He, n), [b, h] = f.useState(null), v = ne(t, (M) => h(M)), y = f.useRef(null), w = f.useRef(""), x = g.viewport, S = o.content - o.viewport, R = ve(u), E = ve(c), k = Dn(l, 10);
8906
- function C(M) {
8905
+ } = e, g = Re(He, n), [b, h] = f.useState(null), v = ne(t, (I) => h(I)), y = f.useRef(null), w = f.useRef(""), x = g.viewport, S = o.content - o.viewport, N = ve(u), E = ve(c), k = Dn(l, 10);
8906
+ function C(I) {
8907
8907
  if (y.current) {
8908
- const B = M.clientX - y.current.left, A = M.clientY - y.current.top;
8908
+ const B = I.clientX - y.current.left, A = I.clientY - y.current.top;
8909
8909
  d({ x: B, y: A });
8910
8910
  }
8911
8911
  }
8912
8912
  return f.useEffect(() => {
8913
- const M = (B) => {
8913
+ const I = (B) => {
8914
8914
  const A = B.target;
8915
- (b == null ? void 0 : b.contains(A)) && R(B, S);
8915
+ (b == null ? void 0 : b.contains(A)) && N(B, S);
8916
8916
  };
8917
- return document.addEventListener("wheel", M, { passive: !1 }), () => document.removeEventListener("wheel", M, { passive: !1 });
8918
- }, [x, b, S, R]), f.useEffect(E, [o, E]), Tt(b, k), Tt(g.content, k), /* @__PURE__ */ p(
8917
+ return document.addEventListener("wheel", I, { passive: !1 }), () => document.removeEventListener("wheel", I, { passive: !1 });
8918
+ }, [x, b, S, N]), f.useEffect(E, [o, E]), Tt(b, k), Tt(g.content, k), /* @__PURE__ */ p(
8919
8919
  gh,
8920
8920
  {
8921
8921
  scope: n,
@@ -8931,13 +8931,13 @@ var fh = f.forwardRef((e, t) => {
8931
8931
  ...m,
8932
8932
  ref: v,
8933
8933
  style: { position: "absolute", ...m.style },
8934
- onPointerDown: G(e.onPointerDown, (M) => {
8935
- M.button === 0 && (M.target.setPointerCapture(M.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), C(M));
8934
+ onPointerDown: G(e.onPointerDown, (I) => {
8935
+ I.button === 0 && (I.target.setPointerCapture(I.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), C(I));
8936
8936
  }),
8937
8937
  onPointerMove: G(e.onPointerMove, C),
8938
- onPointerUp: G(e.onPointerUp, (M) => {
8939
- const B = M.target;
8940
- B.hasPointerCapture(M.pointerId) && B.releasePointerCapture(M.pointerId), document.body.style.webkitUserSelect = w.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
8938
+ onPointerUp: G(e.onPointerUp, (I) => {
8939
+ const B = I.target;
8940
+ B.hasPointerCapture(I.pointerId) && B.releasePointerCapture(I.pointerId), document.body.style.webkitUserSelect = w.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
8941
8941
  })
8942
8942
  }
8943
8943
  )
@@ -9098,17 +9098,17 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
9098
9098
  disabled: m,
9099
9099
  required: g,
9100
9100
  form: b
9101
- } = e, h = Fn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [S, R] = f.useState(!1), E = Vt(d), [k, C] = We({
9101
+ } = e, h = Fn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [S, N] = f.useState(!1), E = Vt(d), [k, C] = We({
9102
9102
  prop: o,
9103
9103
  defaultProp: r ?? !1,
9104
9104
  onChange: s,
9105
9105
  caller: ft
9106
- }), [M, B] = We({
9106
+ }), [I, B] = We({
9107
9107
  prop: a,
9108
9108
  defaultProp: i,
9109
9109
  onChange: c,
9110
9110
  caller: ft
9111
- }), A = f.useRef(null), T = v ? b || !!v.closest("form") : !0, [P, O] = f.useState(/* @__PURE__ */ new Set()), L = Array.from(P).map((N) => N.props.value).join(";");
9111
+ }), A = f.useRef(null), T = v ? b || !!v.closest("form") : !0, [P, M] = f.useState(/* @__PURE__ */ new Set()), L = Array.from(P).map((R) => R.props.value).join(";");
9112
9112
  return /* @__PURE__ */ p(Ha, { ...h, children: /* @__PURE__ */ H(
9113
9113
  Nh,
9114
9114
  {
@@ -9119,9 +9119,9 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
9119
9119
  valueNode: w,
9120
9120
  onValueNodeChange: x,
9121
9121
  valueNodeHasChildren: S,
9122
- onValueNodeHasChildrenChange: R,
9122
+ onValueNodeHasChildrenChange: N,
9123
9123
  contentId: ht(),
9124
- value: M,
9124
+ value: I,
9125
9125
  onValueChange: B,
9126
9126
  open: k,
9127
9127
  onOpenChange: C,
@@ -9133,13 +9133,13 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
9133
9133
  Th,
9134
9134
  {
9135
9135
  scope: e.__scopeSelect,
9136
- onNativeOptionAdd: f.useCallback((N) => {
9137
- O((D) => new Set(D).add(N));
9136
+ onNativeOptionAdd: f.useCallback((R) => {
9137
+ M((D) => new Set(D).add(R));
9138
9138
  }, []),
9139
- onNativeOptionRemove: f.useCallback((N) => {
9140
- O((D) => {
9139
+ onNativeOptionRemove: f.useCallback((R) => {
9140
+ M((D) => {
9141
9141
  const z = new Set(D);
9142
- return z.delete(N), z;
9142
+ return z.delete(R), z;
9143
9143
  });
9144
9144
  }, []),
9145
9145
  children: n
@@ -9153,12 +9153,12 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
9153
9153
  tabIndex: -1,
9154
9154
  name: u,
9155
9155
  autoComplete: l,
9156
- value: M,
9157
- onChange: (N) => B(N.target.value),
9156
+ value: I,
9157
+ onChange: (R) => B(R.target.value),
9158
9158
  disabled: m,
9159
9159
  form: b,
9160
9160
  children: [
9161
- M === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
9161
+ I === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
9162
9162
  Array.from(P)
9163
9163
  ]
9164
9164
  },
@@ -9277,22 +9277,22 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
9277
9277
  avoidCollisions: v,
9278
9278
  //
9279
9279
  ...y
9280
- } = e, w = nt(pt, n), [x, S] = f.useState(null), [R, E] = f.useState(null), k = ne(t, (V) => S(V)), [C, M] = f.useState(null), [B, A] = f.useState(
9280
+ } = e, w = nt(pt, n), [x, S] = f.useState(null), [N, E] = f.useState(null), k = ne(t, (V) => S(V)), [C, I] = f.useState(null), [B, A] = f.useState(
9281
9281
  null
9282
- ), T = $n(n), [P, O] = f.useState(!1), L = f.useRef(!1);
9282
+ ), T = $n(n), [P, M] = f.useState(!1), L = f.useRef(!1);
9283
9283
  f.useEffect(() => {
9284
9284
  if (x) return rp(x);
9285
9285
  }, [x]), bf();
9286
- const N = f.useCallback(
9286
+ const R = f.useCallback(
9287
9287
  (V) => {
9288
9288
  const [W, ...X] = T().map((J) => J.ref.current), [re] = X.slice(-1), ee = document.activeElement;
9289
9289
  for (const J of V)
9290
- if (J === ee || (J == null || J.scrollIntoView({ block: "nearest" }), J === W && R && (R.scrollTop = 0), J === re && R && (R.scrollTop = R.scrollHeight), J == null || J.focus(), document.activeElement !== ee)) return;
9290
+ if (J === ee || (J == null || J.scrollIntoView({ block: "nearest" }), J === W && N && (N.scrollTop = 0), J === re && N && (N.scrollTop = N.scrollHeight), J == null || J.focus(), document.activeElement !== ee)) return;
9291
9291
  },
9292
- [T, R]
9292
+ [T, N]
9293
9293
  ), D = f.useCallback(
9294
- () => N([C, x]),
9295
- [N, C, x]
9294
+ () => R([C, x]),
9295
+ [R, C, x]
9296
9296
  );
9297
9297
  f.useEffect(() => {
9298
9298
  P && D();
@@ -9320,13 +9320,13 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
9320
9320
  window.removeEventListener("blur", V), window.removeEventListener("resize", V);
9321
9321
  };
9322
9322
  }, [z]);
9323
- const [I, ae] = Ji((V) => {
9323
+ const [O, ae] = Ji((V) => {
9324
9324
  const W = T().filter((ee) => !ee.disabled), X = W.find((ee) => ee.ref.current === document.activeElement), re = Qi(W, V, X);
9325
9325
  re && setTimeout(() => re.ref.current.focus());
9326
9326
  }), de = f.useCallback(
9327
9327
  (V, W, X) => {
9328
9328
  const re = !L.current && !X;
9329
- (w.value !== void 0 && w.value === W || re) && (M(V), re && (L.current = !0));
9329
+ (w.value !== void 0 && w.value === W || re) && (I(V), re && (L.current = !0));
9330
9330
  },
9331
9331
  [w.value]
9332
9332
  ), K = f.useCallback(() => x == null ? void 0 : x.focus(), [x]), oe = f.useCallback(
@@ -9352,7 +9352,7 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
9352
9352
  {
9353
9353
  scope: n,
9354
9354
  content: x,
9355
- viewport: R,
9355
+ viewport: N,
9356
9356
  onViewportChange: E,
9357
9357
  itemRefCallback: de,
9358
9358
  selectedItem: C,
@@ -9362,7 +9362,7 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
9362
9362
  selectedItemText: B,
9363
9363
  position: o,
9364
9364
  isPositioned: P,
9365
- searchRef: I,
9365
+ searchRef: O,
9366
9366
  children: /* @__PURE__ */ p(ra, { as: Mh, allowPinchZoom: !0, children: /* @__PURE__ */ p(
9367
9367
  Ks,
9368
9368
  {
@@ -9394,7 +9394,7 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
9394
9394
  onContextMenu: (V) => V.preventDefault(),
9395
9395
  ...y,
9396
9396
  ...te,
9397
- onPlaced: () => O(!0),
9397
+ onPlaced: () => M(!0),
9398
9398
  ref: k,
9399
9399
  style: {
9400
9400
  // flex layout so we can place the scroll buttons properly
@@ -9412,7 +9412,7 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
9412
9412
  const ee = V.target, J = re.indexOf(ee);
9413
9413
  re = re.slice(J + 1);
9414
9414
  }
9415
- setTimeout(() => N(re)), V.preventDefault();
9415
+ setTimeout(() => R(re)), V.preventDefault();
9416
9416
  }
9417
9417
  })
9418
9418
  }
@@ -9429,9 +9429,9 @@ zi.displayName = Ih;
9429
9429
  var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
9430
9430
  const { __scopeSelect: n, onPlaced: o, ...r } = e, s = nt(pt, n), a = ot(pt, n), [i, c] = f.useState(null), [d, u] = f.useState(null), l = ne(t, (k) => u(k)), m = $n(n), g = f.useRef(!1), b = f.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = a, x = f.useCallback(() => {
9431
9431
  if (s.trigger && s.valueNode && i && d && h && v && y) {
9432
- const k = s.trigger.getBoundingClientRect(), C = d.getBoundingClientRect(), M = s.valueNode.getBoundingClientRect(), B = y.getBoundingClientRect();
9432
+ const k = s.trigger.getBoundingClientRect(), C = d.getBoundingClientRect(), I = s.valueNode.getBoundingClientRect(), B = y.getBoundingClientRect();
9433
9433
  if (s.dir !== "rtl") {
9434
- const ee = B.left - C.left, J = M.left - ee, ue = k.left - J, fe = k.width + ue, rt = Math.max(fe, C.width), Ye = window.innerWidth - Ae, Ne = wo(J, [
9434
+ const ee = B.left - C.left, J = I.left - ee, ue = k.left - J, fe = k.width + ue, rt = Math.max(fe, C.width), Ye = window.innerWidth - Ae, Ne = wo(J, [
9435
9435
  Ae,
9436
9436
  // Prevents the content from going off the starting edge of the
9437
9437
  // viewport. It may still go off the ending edge, but this can be
@@ -9442,13 +9442,13 @@ var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
9442
9442
  ]);
9443
9443
  i.style.minWidth = fe + "px", i.style.left = Ne + "px";
9444
9444
  } else {
9445
- const ee = C.right - B.right, J = window.innerWidth - M.right - ee, ue = window.innerWidth - k.right - J, fe = k.width + ue, rt = Math.max(fe, C.width), Ye = window.innerWidth - Ae, Ne = wo(J, [
9445
+ const ee = C.right - B.right, J = window.innerWidth - I.right - ee, ue = window.innerWidth - k.right - J, fe = k.width + ue, rt = Math.max(fe, C.width), Ye = window.innerWidth - Ae, Ne = wo(J, [
9446
9446
  Ae,
9447
9447
  Math.max(Ae, Ye - rt)
9448
9448
  ]);
9449
9449
  i.style.minWidth = fe + "px", i.style.right = Ne + "px";
9450
9450
  }
9451
- const A = m(), T = window.innerHeight - Ae * 2, P = h.scrollHeight, O = window.getComputedStyle(d), L = parseInt(O.borderTopWidth, 10), N = parseInt(O.paddingTop, 10), D = parseInt(O.borderBottomWidth, 10), z = parseInt(O.paddingBottom, 10), q = L + N + P + z + D, I = Math.min(v.offsetHeight * 5, q), ae = window.getComputedStyle(h), de = parseInt(ae.paddingTop, 10), K = parseInt(ae.paddingBottom, 10), oe = k.top + k.height / 2 - Ae, Y = T - oe, te = v.offsetHeight / 2, V = v.offsetTop + te, W = L + N + V, X = q - W;
9451
+ const A = m(), T = window.innerHeight - Ae * 2, P = h.scrollHeight, M = window.getComputedStyle(d), L = parseInt(M.borderTopWidth, 10), R = parseInt(M.paddingTop, 10), D = parseInt(M.borderBottomWidth, 10), z = parseInt(M.paddingBottom, 10), q = L + R + P + z + D, O = Math.min(v.offsetHeight * 5, q), ae = window.getComputedStyle(h), de = parseInt(ae.paddingTop, 10), K = parseInt(ae.paddingBottom, 10), oe = k.top + k.height / 2 - Ae, Y = T - oe, te = v.offsetHeight / 2, V = v.offsetTop + te, W = L + R + V, X = q - W;
9452
9452
  if (W <= oe) {
9453
9453
  const ee = A.length > 0 && v === A[A.length - 1].ref.current;
9454
9454
  i.style.bottom = "0px";
@@ -9468,7 +9468,7 @@ var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
9468
9468
  ) + X;
9469
9469
  i.style.height = ue + "px", h.scrollTop = W - oe + h.offsetTop;
9470
9470
  }
9471
- i.style.margin = `${Ae}px 0`, i.style.minHeight = I + "px", i.style.maxHeight = T + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
9471
+ i.style.margin = `${Ae}px 0`, i.style.minHeight = O + "px", i.style.maxHeight = T + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
9472
9472
  }
9473
9473
  }, [
9474
9474
  m,
@@ -9483,9 +9483,9 @@ var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
9483
9483
  o
9484
9484
  ]);
9485
9485
  le(() => x(), [x]);
9486
- const [S, R] = f.useState();
9486
+ const [S, N] = f.useState();
9487
9487
  le(() => {
9488
- d && R(window.getComputedStyle(d).zIndex);
9488
+ d && N(window.getComputedStyle(d).zIndex);
9489
9489
  }, [d]);
9490
9490
  const E = f.useCallback(
9491
9491
  (k) => {
@@ -10213,7 +10213,7 @@ var Bt = "Tooltip", [Cg, jt] = Vn(Bt), bc = (e) => {
10213
10213
  caller: Bt
10214
10214
  }), x = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), S = f.useCallback(() => {
10215
10215
  window.clearTimeout(g.current), g.current = 0, v.current = !1, w(!0);
10216
- }, [w]), R = f.useCallback(() => {
10216
+ }, [w]), N = f.useCallback(() => {
10217
10217
  window.clearTimeout(g.current), g.current = 0, w(!1);
10218
10218
  }, [w]), E = f.useCallback(() => {
10219
10219
  window.clearTimeout(g.current), g.current = window.setTimeout(() => {
@@ -10235,10 +10235,10 @@ var Bt = "Tooltip", [Cg, jt] = Vn(Bt), bc = (e) => {
10235
10235
  c.isOpenDelayedRef.current ? E() : S();
10236
10236
  }, [c.isOpenDelayedRef, E, S]),
10237
10237
  onTriggerLeave: f.useCallback(() => {
10238
- b ? R() : (window.clearTimeout(g.current), g.current = 0);
10239
- }, [R, b]),
10238
+ b ? N() : (window.clearTimeout(g.current), g.current = 0);
10239
+ }, [N, b]),
10240
10240
  onOpen: S,
10241
- onClose: R,
10241
+ onClose: N,
10242
10242
  disableHoverableContent: b,
10243
10243
  children: n
10244
10244
  }
@@ -10291,8 +10291,8 @@ var Pt = "TooltipContent", xc = f.forwardRef(
10291
10291
  i(null), l(!1);
10292
10292
  }, [l]), g = f.useCallback(
10293
10293
  (b, h) => {
10294
- const v = b.currentTarget, y = { x: b.clientX, y: b.clientY }, w = Ag(y, v.getBoundingClientRect()), x = _g(y, w), S = Ig(h.getBoundingClientRect()), R = Og([...x, ...S]);
10295
- i(R), l(!0);
10294
+ const v = b.currentTarget, y = { x: b.clientX, y: b.clientY }, w = Ag(y, v.getBoundingClientRect()), x = _g(y, w), S = Ig(h.getBoundingClientRect()), N = Og([...x, ...S]);
10295
+ i(N), l(!0);
10296
10296
  },
10297
10297
  [l]
10298
10298
  );
@@ -11775,8 +11775,8 @@ const Rc = {
11775
11775
  console.warn(`[ExtensionSetup] Instance not found or failed to load: ${T}`), d([]), y(!0);
11776
11776
  return;
11777
11777
  }
11778
- const O = await P.json(), L = ps(typeof window < "u" ? window.location.search : ""), N = await Dl(O, L), { tokens: D, errors: z } = await vb(N, t, o, L);
11779
- d(N), l(L), g(new Map(D)), h(z);
11778
+ const M = await P.json(), L = ps(typeof window < "u" ? window.location.search : ""), R = await Dl(M, L), { tokens: D, errors: z } = await vb(R, t, o, L);
11779
+ d(R), l(L), g(new Map(D)), h(z);
11780
11780
  } catch (P) {
11781
11781
  console.error("Failed to load extensions:", P);
11782
11782
  } finally {
@@ -11788,27 +11788,27 @@ const Rc = {
11788
11788
  const T = setInterval(async () => {
11789
11789
  const P = [];
11790
11790
  await Promise.all(
11791
- c.filter((O) => O.manifest.permissions.includes("data:fetch")).map(async (O) => {
11792
- const L = u.find((I) => I.extensionId === O.id), N = L == null ? void 0 : L.token, D = L == null ? void 0 : L.mode, z = Lt(t, "/proxy-token"), q = await fetch(z, {
11791
+ c.filter((M) => M.manifest.permissions.includes("data:fetch")).map(async (M) => {
11792
+ const L = u.find((O) => O.extensionId === M.id), R = L == null ? void 0 : L.token, D = L == null ? void 0 : L.mode, z = Lt(t, "/proxy-token"), q = await fetch(z, {
11793
11793
  method: "POST",
11794
11794
  headers: { "Content-Type": "application/json" },
11795
11795
  body: JSON.stringify({
11796
11796
  appId: o,
11797
- extensionId: O.id,
11797
+ extensionId: M.id,
11798
11798
  ...D && { mode: D },
11799
- ...N && { devSessionToken: N }
11799
+ ...R && { devSessionToken: R }
11800
11800
  })
11801
11801
  });
11802
11802
  if (q.ok) {
11803
- const { token: I, encryptionKey: ae } = await q.json();
11804
- P.push([O.id, { token: I, encryptionKey: ae }]);
11803
+ const { token: O, encryptionKey: ae } = await q.json();
11804
+ P.push([M.id, { token: O, encryptionKey: ae }]);
11805
11805
  } else
11806
- console.warn(`[embeddables] Proxy token refresh failed for extension ${O.id} (${q.status}) — using stale token`);
11806
+ console.warn(`[embeddables] Proxy token refresh failed for extension ${M.id} (${q.status}) — using stale token`);
11807
11807
  })
11808
- ), P.length > 0 && g((O) => {
11809
- const L = new Map(O);
11810
- for (const [N, D] of P)
11811
- L.set(N, D);
11808
+ ), P.length > 0 && g((M) => {
11809
+ const L = new Map(M);
11810
+ for (const [R, D] of P)
11811
+ L.set(R, D);
11812
11812
  return L;
11813
11813
  });
11814
11814
  }, 3300 * 1e3);
@@ -11818,34 +11818,34 @@ const Rc = {
11818
11818
  const A = (T) => {
11819
11819
  const P = T.data;
11820
11820
  if ((P == null ? void 0 : P.type) !== "extension-ready") return;
11821
- const O = P.extensionId, L = c.find((z) => z.id === O);
11821
+ const M = P.extensionId, L = c.find((z) => z.id === M);
11822
11822
  if (!(L != null && L.bundleUrl)) return;
11823
- const N = u.find((z) => z.extensionId === O);
11824
- if (Ml(L.bundleUrl) && (N == null ? void 0 : N.mode) !== "staging") return;
11825
- const D = m.get(O);
11826
- D && ct(O, { type: "extension-encryption-key", encryptionKey: D.encryptionKey });
11823
+ const R = u.find((z) => z.extensionId === M);
11824
+ if (Ml(L.bundleUrl) && (R == null ? void 0 : R.mode) !== "staging") return;
11825
+ const D = m.get(M);
11826
+ D && ct(M, { type: "extension-encryption-key", encryptionKey: D.encryptionKey });
11827
11827
  };
11828
11828
  return window.addEventListener("message", A), () => window.removeEventListener("message", A);
11829
11829
  }, [c, u, m]);
11830
11830
  const S = Le((A, T) => {
11831
11831
  const P = lo();
11832
- for (const [O, L] of P)
11833
- L.manifest.permissions.includes("identity:subscribe") && ct(O, {
11832
+ for (const [M, L] of P)
11833
+ L.manifest.permissions.includes("identity:subscribe") && ct(M, {
11834
11834
  type: "extension-event",
11835
11835
  eventType: A,
11836
11836
  payload: { type: A, state: T, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
11837
11837
  });
11838
- }, []), R = Le(async (A) => {
11838
+ }, []), N = Le(async (A) => {
11839
11839
  const T = lo(), P = [];
11840
- for (const [L, N] of T) {
11841
- if (!N.manifest.permissions.includes("identity:extend")) continue;
11840
+ for (const [L, R] of T) {
11841
+ if (!R.manifest.permissions.includes("identity:extend")) continue;
11842
11842
  const D = new Promise((z) => {
11843
- const q = `enrich_${L}_${Date.now()}`, I = (ae) => {
11843
+ const q = `enrich_${L}_${Date.now()}`, O = (ae) => {
11844
11844
  const de = ae.data;
11845
- (de == null ? void 0 : de.type) !== "identity-extend-response" || de.id !== q || (window.removeEventListener("message", I), de.additionalClaims ? z(de.additionalClaims) : z({}));
11845
+ (de == null ? void 0 : de.type) !== "identity-extend-response" || de.id !== q || (window.removeEventListener("message", O), de.additionalClaims ? z(de.additionalClaims) : z({}));
11846
11846
  };
11847
- window.addEventListener("message", I), setTimeout(() => {
11848
- window.removeEventListener("message", I), z({});
11847
+ window.addEventListener("message", O), setTimeout(() => {
11848
+ window.removeEventListener("message", O), z({});
11849
11849
  }, 5e3), ct(L, {
11850
11850
  type: "identity-extend-request",
11851
11851
  id: q,
@@ -11855,8 +11855,8 @@ const Rc = {
11855
11855
  P.push(D);
11856
11856
  }
11857
11857
  if (P.length === 0) return {};
11858
- const O = await Promise.all(P);
11859
- return Object.assign({}, ...O);
11858
+ const M = await Promise.all(P);
11859
+ return Object.assign({}, ...M);
11860
11860
  }, []), E = Le(async (A) => {
11861
11861
  if (!t || !o || !e)
11862
11862
  return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!t, appId: !!o, instanceId: !!e }), null;
@@ -11870,8 +11870,8 @@ const Rc = {
11870
11870
  });
11871
11871
  if (!P.ok)
11872
11872
  return console.warn(`[embeddables] Identity sign failed (${P.status})`), null;
11873
- const { token: O } = await P.json();
11874
- return O;
11873
+ const { token: M } = await P.json();
11874
+ return M;
11875
11875
  } catch (P) {
11876
11876
  return console.warn("[embeddables] Identity sign request failed:", P), null;
11877
11877
  }
@@ -11883,20 +11883,20 @@ const Rc = {
11883
11883
  }, []), C = Le(() => {
11884
11884
  const A = window.zE;
11885
11885
  A && A("messenger", "logoutUser");
11886
- }, []), M = Le((A) => {
11887
- const { email: T, name: P } = A, O = { external_id: String(A.id) };
11886
+ }, []), I = Le((A) => {
11887
+ const { email: T, name: P } = A, M = { external_id: String(A.id) };
11888
11888
  (async () => {
11889
- const L = await R({ ...O, email: T, name: P });
11889
+ const L = await N({ ...M, email: T, name: P });
11890
11890
  console.log("[embeddables] Enriched claims:", L);
11891
- const N = await E({
11892
- ...O,
11891
+ const R = await E({
11892
+ ...M,
11893
11893
  ...L,
11894
11894
  email: T,
11895
11895
  name: P
11896
11896
  });
11897
- console.log("[embeddables] Sign result:", { hasToken: !!N }), N && k(N);
11897
+ console.log("[embeddables] Sign result:", { hasToken: !!R }), R && k(R);
11898
11898
  })();
11899
- }, [R, E, k]);
11899
+ }, [N, E, k]);
11900
11900
  ce(() => {
11901
11901
  if (s) {
11902
11902
  console.log("[embeddables] Identity from props:", { customerId: s, customerEmail: a, customerName: i });
@@ -11910,56 +11910,67 @@ const Rc = {
11910
11910
  }
11911
11911
  };
11912
11912
  x((T) => {
11913
- var P, O;
11914
- return T.authenticated && ((P = T.user) == null ? void 0 : P.id) === ((O = A.user) == null ? void 0 : O.id) ? T : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), M(A.user), S("identity.login", A), A);
11913
+ var P, M;
11914
+ return T.authenticated && ((P = T.user) == null ? void 0 : P.id) === ((M = A.user) == null ? void 0 : M.id) ? T : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), I(A.user), S("identity.login", A), A);
11915
11915
  });
11916
11916
  } else {
11917
11917
  if (s === void 0)
11918
11918
  return;
11919
11919
  x((A) => A.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), C(), S("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : A);
11920
11920
  }
11921
- }, [s, a, i, M, S, C]), ce(() => {
11921
+ }, [s, a, i, I, S, C]), ce(() => {
11922
11922
  if (s !== void 0) return;
11923
11923
  const A = () => {
11924
11924
  const P = document.getElementById("stackable-identity");
11925
11925
  if (P)
11926
11926
  try {
11927
- const O = JSON.parse(P.textContent ?? "{}"), L = {
11927
+ const M = JSON.parse(P.textContent ?? "{}"), L = {
11928
11928
  authenticated: !0,
11929
11929
  user: {
11930
- id: String(O.customerId ?? ""),
11931
- email: O.customerEmail,
11932
- name: O.customerName,
11930
+ id: String(M.customerId ?? ""),
11931
+ email: M.customerEmail,
11932
+ name: M.customerName,
11933
11933
  provider: "shopify"
11934
11934
  }
11935
11935
  };
11936
- x((N) => {
11936
+ x((R) => {
11937
11937
  var D, z;
11938
- return N.authenticated && ((D = N.user) == null ? void 0 : D.id) === ((z = L.user) == null ? void 0 : z.id) ? N : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), M(L.user), S("identity.login", L), L);
11938
+ return R.authenticated && ((D = R.user) == null ? void 0 : D.id) === ((z = L.user) == null ? void 0 : z.id) ? R : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), I(L.user), S("identity.login", L), L);
11939
11939
  });
11940
11940
  } catch {
11941
11941
  console.warn("[embeddables] Failed to parse #stackable-identity JSON");
11942
11942
  }
11943
11943
  else
11944
- x((O) => O.authenticated ? (C(), S("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : O);
11944
+ x((M) => M.authenticated ? (C(), S("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : M);
11945
11945
  };
11946
11946
  A();
11947
11947
  const T = new MutationObserver(A);
11948
11948
  return T.observe(document.head, { childList: !0, subtree: !0 }), T.observe(document.body, { childList: !0, subtree: !0 }), () => T.disconnect();
11949
- }, [s, M, S, C]), ce(() => {
11950
- if (!w.authenticated) return;
11949
+ }, [s, I, S, C]), ce(() => {
11950
+ if (!w.authenticated)
11951
+ return;
11951
11952
  const A = (T) => {
11952
11953
  const P = T.data;
11953
11954
  if ((P == null ? void 0 : P.type) !== "extension-ready") return;
11954
- const O = P.extensionId, L = c.find((N) => N.id === O);
11955
- L != null && L.manifest.permissions.includes("identity:subscribe") && ct(O, {
11955
+ const M = P.extensionId, L = c.find((R) => R.id === M);
11956
+ L != null && L.manifest.permissions.includes("identity:subscribe") && ct(M, {
11956
11957
  type: "extension-event",
11957
11958
  eventType: "identity.login",
11958
11959
  payload: { type: "identity.login", state: w, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
11959
11960
  });
11960
11961
  };
11961
11962
  return window.addEventListener("message", A), () => window.removeEventListener("message", A);
11962
- }, [w, c]);
11963
+ }, [w, c]), ce(() => {
11964
+ if (!w.authenticated || !w.user)
11965
+ return;
11966
+ const A = (T) => {
11967
+ const P = T.data;
11968
+ if ((P == null ? void 0 : P.type) !== "extension-ready") return;
11969
+ const M = P.extensionId, L = c.find((R) => R.id === M);
11970
+ L != null && L.manifest.permissions.includes("identity:extend") && (console.log("[embeddables] Extension with identity:extend ready, re-running sign lifecycle"), I(w.user));
11971
+ };
11972
+ return window.addEventListener("message", A), () => window.removeEventListener("message", A);
11973
+ }, [w, c, I]);
11963
11974
  const B = co(
11964
11975
  () => ({
11965
11976
  // TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
@@ -11974,12 +11985,12 @@ const Rc = {
11974
11985
  error: "data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"
11975
11986
  }
11976
11987
  };
11977
- const O = bb(T) ? T : {
11988
+ const M = bb(T) ? T : {
11978
11989
  url: T.url,
11979
11990
  method: T.method ?? "GET",
11980
11991
  headers: T.headers ?? {},
11981
11992
  body: T.body ?? null
11982
- }, L = Lt(t, "/proxy"), N = await fetch(L, {
11993
+ }, L = Lt(t, "/proxy"), R = await fetch(L, {
11983
11994
  method: "POST",
11984
11995
  headers: {
11985
11996
  "Content-Type": "application/json",
@@ -11987,11 +11998,11 @@ const Rc = {
11987
11998
  "X-Application-Id": o ?? "",
11988
11999
  Authorization: `Bearer ${P.token}`
11989
12000
  },
11990
- body: JSON.stringify(O)
11991
- }), D = await N.json();
12001
+ body: JSON.stringify(M)
12002
+ }), D = await R.json();
11992
12003
  return {
11993
- status: D.status ?? N.status,
11994
- ok: D.ok ?? N.ok,
12004
+ status: D.status ?? R.status,
12005
+ ok: D.ok ?? R.ok,
11995
12006
  data: D.data
11996
12007
  };
11997
12008
  },
@@ -12004,10 +12015,10 @@ const Rc = {
12004
12015
  ...T.closeButton != null && { closeButton: T.closeButton }
12005
12016
  };
12006
12017
  if (T.fetch) {
12007
- const O = (N) => new Promise((D) => setTimeout(D, N)), L = Promise.all([
12018
+ const M = (R) => new Promise((D) => setTimeout(D, R)), L = Promise.all([
12008
12019
  B["data.fetch"](A, T.fetch),
12009
- O(gb)
12010
- ]).then(([N]) => N);
12020
+ M(gb)
12021
+ ]).then(([R]) => R);
12011
12022
  yt.promise(L, {
12012
12023
  loading: T.loading ?? T.message,
12013
12024
  success: T.success ?? T.message,
@@ -12307,9 +12318,9 @@ const Cb = ({ ...e }) => {
12307
12318
  if (!h) return;
12308
12319
  const E = (C) => {
12309
12320
  if (!y.current) return;
12310
- const M = y.current.getBoundingClientRect();
12311
- if ((l ? M.width : M.height) === 0) return;
12312
- const A = l ? (C.clientX - M.left) / M.width * 100 : (C.clientY - M.top) / M.height * 100, T = Math.max(
12321
+ const I = y.current.getBoundingClientRect();
12322
+ if ((l ? I.width : I.height) === 0) return;
12323
+ const A = l ? (C.clientX - I.left) / I.width * 100 : (C.clientY - I.top) / I.height * 100, T = Math.max(
12313
12324
  ao,
12314
12325
  Math.min(io, A)
12315
12326
  );
@@ -12323,8 +12334,8 @@ const Cb = ({ ...e }) => {
12323
12334
  }, [h, l]), ce(() => {
12324
12335
  if (!y.current) return;
12325
12336
  const E = y.current, k = () => {
12326
- const M = getComputedStyle(E).flexDirection === "row";
12327
- m(M);
12337
+ const I = getComputedStyle(E).flexDirection === "row";
12338
+ m(I);
12328
12339
  };
12329
12340
  k();
12330
12341
  const C = new ResizeObserver(k);
@@ -12338,7 +12349,7 @@ const Cb = ({ ...e }) => {
12338
12349
  return;
12339
12350
  }
12340
12351
  E.preventDefault(), v(!0);
12341
- }, [a]), R = { customerId: o, customerEmail: r };
12352
+ }, [a]), N = { customerId: o, customerEmail: r };
12342
12353
  return /* @__PURE__ */ H("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
12343
12354
  /* @__PURE__ */ p("style", {
12344
12355
  // eslint-disable-next-line @stylistic/quotes
@@ -12393,7 +12404,7 @@ const Cb = ({ ...e }) => {
12393
12404
  Xt,
12394
12405
  {
12395
12406
  target: "slot.header",
12396
- context: R,
12407
+ context: N,
12397
12408
  className: "flex-none"
12398
12409
  }
12399
12410
  ) }),
@@ -12401,7 +12412,7 @@ const Cb = ({ ...e }) => {
12401
12412
  Xt,
12402
12413
  {
12403
12414
  target: "slot.content",
12404
- context: R,
12415
+ context: N,
12405
12416
  className: "flex flex-col gap-2"
12406
12417
  }
12407
12418
  )
@@ -12427,7 +12438,7 @@ const Cb = ({ ...e }) => {
12427
12438
  Xt,
12428
12439
  {
12429
12440
  target: "slot.footer",
12430
- context: R,
12441
+ context: N,
12431
12442
  className: "flex items-center gap-1",
12432
12443
  fallback: /* @__PURE__ */ H(Fe, { children: [
12433
12444
  /* @__PURE__ */ p("div", { children: "powered by" }),
@@ -12439,7 +12450,7 @@ const Cb = ({ ...e }) => {
12439
12450
  Xt,
12440
12451
  {
12441
12452
  target: "slot.footer-links",
12442
- context: R,
12453
+ context: N,
12443
12454
  className: "flex items-center gap-1",
12444
12455
  separator: /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "/" }),
12445
12456
  render: ({ children: E, index: k }) => /* @__PURE__ */ H(Fe, { children: [