@box/box-ai-agent-selector 0.38.15 → 0.38.16

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.
@@ -28,19 +28,19 @@ import '../../styles/box-ai-agent-selector.css';var xi = Object.defineProperty,
28
28
  for (var n of Wt(e))
29
29
  t.indexOf(n) < 0 && Qr.call(e, n) && (r[n] = e[n]);
30
30
  return r;
31
- }, Ci = Object.defineProperty, Oi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, Zr = Object.prototype.hasOwnProperty, eo = Object.prototype.propertyIsEnumerable, mr = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, te = (e, t) => {
31
+ }, Ci = Object.defineProperty, Oi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, qt = Object.getOwnPropertySymbols, Zr = Object.prototype.hasOwnProperty, eo = Object.prototype.propertyIsEnumerable, mr = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, te = (e, t) => {
32
32
  for (var r in t || (t = {}))
33
33
  Zr.call(t, r) && mr(e, r, t[r]);
34
- if (zt)
35
- for (var r of zt(t))
34
+ if (qt)
35
+ for (var r of qt(t))
36
36
  eo.call(t, r) && mr(e, r, t[r]);
37
37
  return e;
38
38
  }, ve = (e, t) => Oi(e, _i(t)), to = (e, t) => {
39
39
  var r = {};
40
40
  for (var n in e)
41
41
  Zr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
42
- if (e != null && zt)
43
- for (var n of zt(e))
42
+ if (e != null && qt)
43
+ for (var n of qt(e))
44
44
  t.indexOf(n) < 0 && eo.call(e, n) && (r[n] = e[n]);
45
45
  return r;
46
46
  };
@@ -102,7 +102,7 @@ function rt(e) {
102
102
  e[r] !== void 0 && (t[r] = e[r]);
103
103
  return t;
104
104
  }
105
- function U(...e) {
105
+ function z(...e) {
106
106
  for (const t of e)
107
107
  if (t !== void 0) return t;
108
108
  }
@@ -197,7 +197,7 @@ function oo(e) {
197
197
  const t = e;
198
198
  return t.offsetWidth > 0 || t.offsetHeight > 0 || e.getClientRects().length > 0;
199
199
  }
200
- function ze(e) {
200
+ function qe(e) {
201
201
  try {
202
202
  const t = e instanceof HTMLInputElement && e.selectionStart !== null, r = e.tagName === "TEXTAREA";
203
203
  return t || r || !1;
@@ -206,10 +206,10 @@ function ze(e) {
206
206
  }
207
207
  }
208
208
  function En(e) {
209
- return e.isContentEditable || ze(e);
209
+ return e.isContentEditable || qe(e);
210
210
  }
211
211
  function Ki(e) {
212
- if (ze(e))
212
+ if (qe(e))
213
213
  return e.value;
214
214
  if (e.isContentEditable) {
215
215
  const t = ne(e).createRange();
@@ -219,7 +219,7 @@ function Ki(e) {
219
219
  }
220
220
  function Hi(e) {
221
221
  let t = 0, r = 0;
222
- if (ze(e))
222
+ if (qe(e))
223
223
  t = e.selectionStart || 0, r = e.selectionEnd || 0;
224
224
  else if (e.isContentEditable) {
225
225
  const n = ne(e).getSelection();
@@ -260,13 +260,13 @@ function so(e, t) {
260
260
  let n = !1;
261
261
  return r.sort(([o, i], [s, u]) => {
262
262
  const a = t(i), d = t(u);
263
- return a === d || !a || !d ? 0 : zi(a, d) ? (o > s && (n = !0), -1) : (o < s && (n = !0), 1);
263
+ return a === d || !a || !d ? 0 : qi(a, d) ? (o > s && (n = !0), -1) : (o < s && (n = !0), 1);
264
264
  }), n ? r.map(([o, i]) => i) : e;
265
265
  }
266
- function zi(e, t) {
266
+ function qi(e, t) {
267
267
  return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
268
268
  }
269
- function Ui() {
269
+ function zi() {
270
270
  return yt && !!navigator.maxTouchPoints;
271
271
  }
272
272
  function Mn() {
@@ -275,11 +275,11 @@ function Mn() {
275
275
  function kn() {
276
276
  return yt && Mn() && /apple/i.test(navigator.vendor);
277
277
  }
278
- function ji() {
278
+ function Ui() {
279
279
  return yt && /firefox\//i.test(navigator.userAgent);
280
280
  }
281
- function qi() {
282
- return yt && navigator.platform.startsWith("Mac") && !Ui();
281
+ function ji() {
282
+ return yt && navigator.platform.startsWith("Mac") && !zi();
283
283
  }
284
284
  function uo(e) {
285
285
  return !!(e.currentTarget && !se(e.currentTarget, e.target));
@@ -358,7 +358,7 @@ function Qi(e) {
358
358
  t.current = e;
359
359
  }), t;
360
360
  }
361
- function j(e) {
361
+ function U(e) {
362
362
  const t = Y(() => {
363
363
  throw new Error("Cannot call an event handler while rendering.");
364
364
  });
@@ -439,7 +439,7 @@ function es() {
439
439
  return fi(() => [], []);
440
440
  }
441
441
  function fe(e) {
442
- return j(
442
+ return U(
443
443
  typeof e == "function" ? e : () => e
444
444
  );
445
445
  }
@@ -462,7 +462,7 @@ function fo(e, t, r) {
462
462
  function ts() {
463
463
  return W(() => {
464
464
  Ce("mousemove", rs, !0), Ce("mousedown", kt, !0), Ce("mouseup", kt, !0), Ce("keydown", kt, !0), Ce("scroll", kt, !0);
465
- }, []), j(() => $n);
465
+ }, []), U(() => $n);
466
466
  }
467
467
  var $n = !1, br = 0, yr = 0;
468
468
  function ns(e) {
@@ -535,12 +535,12 @@ var us = Dt.useProviderContext, Hn = Dt.ContextProvider, po = Dt.ScopedContextPr
535
535
  ), At = it();
536
536
  At.useContext;
537
537
  At.useScopedContext;
538
- var Wn = At.useProviderContext, ls = At.ContextProvider, fs = At.ScopedContextProvider, zn = it(
538
+ var Wn = At.useProviderContext, ls = At.ContextProvider, fs = At.ScopedContextProvider, qn = it(
539
539
  [ls],
540
540
  [fs]
541
- ), Qt = zn.useProviderContext, ds = zn.ContextProvider, Un = zn.ScopedContextProvider, ps = ge(void 0), ms = ge(void 0), Tt = it(
541
+ ), Qt = qn.useProviderContext, ds = qn.ContextProvider, zn = qn.ScopedContextProvider, ps = ge(void 0), ms = ge(void 0), Tt = it(
542
542
  [ds],
543
- [Un]
543
+ [zn]
544
544
  ), vs = Tt.useContext;
545
545
  Tt.useScopedContext;
546
546
  var Zt = Tt.useProviderContext, mo = Tt.ContextProvider, en = Tt.ScopedContextProvider;
@@ -588,7 +588,7 @@ function Ke(e, ...t) {
588
588
  ), M = [];
589
589
  for (const L of a)
590
590
  M.push(L());
591
- const I = t.map(jn);
591
+ const I = t.map(Un);
592
592
  return i = Te(...N, ...M, ...I), T;
593
593
  }, v = (A, S, T = d) => (T.add(S), l.set(S, A), () => {
594
594
  var N;
@@ -638,11 +638,11 @@ function Oe(e, ...t) {
638
638
  if (e)
639
639
  return St(e, "setup")(...t);
640
640
  }
641
- function jn(e, ...t) {
641
+ function Un(e, ...t) {
642
642
  if (e)
643
643
  return St(e, "init")(...t);
644
644
  }
645
- function qn(e, ...t) {
645
+ function jn(e, ...t) {
646
646
  if (e)
647
647
  return St(e, "subscribe")(...t);
648
648
  }
@@ -650,7 +650,7 @@ function $e(e, ...t) {
650
650
  if (e)
651
651
  return St(e, "sync")(...t);
652
652
  }
653
- function Ut(e, ...t) {
653
+ function zt(e, ...t) {
654
654
  if (e)
655
655
  return St(e, "batch")(...t);
656
656
  }
@@ -832,7 +832,7 @@ var { useSyncExternalStore: vo } = Es, go = () => () => {
832
832
  };
833
833
  function _e(e, t = no) {
834
834
  const r = ce.useCallback(
835
- (o) => e ? qn(e, null, o) : go(),
835
+ (o) => e ? jn(e, null, o) : go(),
836
836
  [e]
837
837
  ), n = () => {
838
838
  const o = typeof t == "string" ? t : null, i = typeof t == "function" ? t : null, s = e == null ? void 0 : e.getState();
@@ -846,7 +846,7 @@ function ho(e, t) {
846
846
  const r = ce.useRef(
847
847
  {}
848
848
  ), n = ce.useCallback(
849
- (i) => e ? qn(e, null, i) : go(),
849
+ (i) => e ? jn(e, null, i) : go(),
850
850
  [e]
851
851
  ), o = () => {
852
852
  const i = e == null ? void 0 : e.getState();
@@ -875,21 +875,21 @@ function pe(e, t, r, n) {
875
875
  f && u[r] !== a[r] && u[r] !== d && f(u[r]);
876
876
  }), [e, r]), ee(() => {
877
877
  if (o !== void 0)
878
- return e.setState(r, o), Ut(e, [r], () => {
878
+ return e.setState(r, o), zt(e, [r], () => {
879
879
  o !== void 0 && e.setState(r, o);
880
880
  });
881
881
  });
882
882
  }
883
883
  function Xn(e, t) {
884
884
  const [r, n] = ce.useState(() => e(t));
885
- ee(() => jn(r), [r]);
885
+ ee(() => Un(r), [r]);
886
886
  const o = ce.useCallback(
887
887
  (u) => _e(r, u),
888
888
  [r]
889
889
  ), i = ce.useMemo(
890
890
  () => B(_({}, r), { useState: o }),
891
891
  [r, o]
892
- ), s = j(() => {
892
+ ), s = U(() => {
893
893
  n((u) => e(_(_({}, t), u.getState())));
894
894
  });
895
895
  return [i, s];
@@ -911,14 +911,14 @@ function Ps(e) {
911
911
  function Is(e = {}) {
912
912
  var t;
913
913
  tn(e, e.store);
914
- const r = (t = e.store) == null ? void 0 : t.getState(), n = U(
914
+ const r = (t = e.store) == null ? void 0 : t.getState(), n = z(
915
915
  e.items,
916
916
  r == null ? void 0 : r.items,
917
917
  e.defaultItems,
918
918
  []
919
919
  ), o = new Map(n.map((l) => [l.id, l])), i = {
920
920
  items: n,
921
- renderedItems: U(r == null ? void 0 : r.renderedItems, [])
921
+ renderedItems: z(r == null ? void 0 : r.renderedItems, [])
922
922
  }, s = Ps(e.store), u = Ke(
923
923
  { items: n, renderedItems: i.renderedItems },
924
924
  s
@@ -926,9 +926,9 @@ function Is(e = {}) {
926
926
  const p = so(l, (b) => b.element);
927
927
  u.setState("renderedItems", p), a.setState("renderedItems", p);
928
928
  };
929
- Oe(a, () => jn(u)), Oe(u, () => Ut(u, ["items"], (l) => {
929
+ Oe(a, () => Un(u)), Oe(u, () => zt(u, ["items"], (l) => {
930
930
  a.setState("items", l.items);
931
- })), Oe(u, () => Ut(u, ["renderedItems"], (l) => {
931
+ })), Oe(u, () => zt(u, ["renderedItems"], (l) => {
932
932
  let p = !0, b = requestAnimationFrame(() => {
933
933
  const { renderedItems: P } = a.getState();
934
934
  l.renderedItems !== P && d(l.renderedItems);
@@ -1083,38 +1083,38 @@ function Ls(e) {
1083
1083
  }
1084
1084
  function Rs(e = {}) {
1085
1085
  var t;
1086
- const r = (t = e.store) == null ? void 0 : t.getState(), n = Is(e), o = U(
1086
+ const r = (t = e.store) == null ? void 0 : t.getState(), n = Is(e), o = z(
1087
1087
  e.activeId,
1088
1088
  r == null ? void 0 : r.activeId,
1089
1089
  e.defaultActiveId
1090
1090
  ), i = ve(te({}, n.getState()), {
1091
- id: U(
1091
+ id: z(
1092
1092
  e.id,
1093
1093
  r == null ? void 0 : r.id,
1094
1094
  `id-${Math.random().toString(36).slice(2, 8)}`
1095
1095
  ),
1096
1096
  activeId: o,
1097
- baseElement: U(r == null ? void 0 : r.baseElement, null),
1098
- includesBaseElement: U(
1097
+ baseElement: z(r == null ? void 0 : r.baseElement, null),
1098
+ includesBaseElement: z(
1099
1099
  e.includesBaseElement,
1100
1100
  r == null ? void 0 : r.includesBaseElement,
1101
1101
  o === null
1102
1102
  ),
1103
- moves: U(r == null ? void 0 : r.moves, 0),
1104
- orientation: U(
1103
+ moves: z(r == null ? void 0 : r.moves, 0),
1104
+ orientation: z(
1105
1105
  e.orientation,
1106
1106
  r == null ? void 0 : r.orientation,
1107
1107
  "both"
1108
1108
  ),
1109
- rtl: U(e.rtl, r == null ? void 0 : r.rtl, !1),
1110
- virtualFocus: U(
1109
+ rtl: z(e.rtl, r == null ? void 0 : r.rtl, !1),
1110
+ virtualFocus: z(
1111
1111
  e.virtualFocus,
1112
1112
  r == null ? void 0 : r.virtualFocus,
1113
1113
  !1
1114
1114
  ),
1115
- focusLoop: U(e.focusLoop, r == null ? void 0 : r.focusLoop, !1),
1116
- focusWrap: U(e.focusWrap, r == null ? void 0 : r.focusWrap, !1),
1117
- focusShift: U(e.focusShift, r == null ? void 0 : r.focusShift, !1)
1115
+ focusLoop: z(e.focusLoop, r == null ? void 0 : r.focusLoop, !1),
1116
+ focusWrap: z(e.focusWrap, r == null ? void 0 : r.focusWrap, !1),
1117
+ focusShift: z(e.focusShift, r == null ? void 0 : r.focusShift, !1)
1118
1118
  }), s = Ke(i, n, e.store);
1119
1119
  Oe(
1120
1120
  s,
@@ -1205,18 +1205,18 @@ function Eo(e = {}) {
1205
1205
  Gn(e.disclosure, ["contentElement", "disclosureElement"])
1206
1206
  );
1207
1207
  tn(e, t);
1208
- const r = t == null ? void 0 : t.getState(), n = U(
1208
+ const r = t == null ? void 0 : t.getState(), n = z(
1209
1209
  e.open,
1210
1210
  r == null ? void 0 : r.open,
1211
1211
  e.defaultOpen,
1212
1212
  !1
1213
- ), o = U(e.animated, r == null ? void 0 : r.animated, !1), i = {
1213
+ ), o = z(e.animated, r == null ? void 0 : r.animated, !1), i = {
1214
1214
  open: n,
1215
1215
  animated: o,
1216
1216
  animating: !!o && n,
1217
1217
  mounted: n,
1218
- contentElement: U(r == null ? void 0 : r.contentElement, null),
1219
- disclosureElement: U(r == null ? void 0 : r.disclosureElement, null)
1218
+ contentElement: z(r == null ? void 0 : r.contentElement, null),
1219
+ disclosureElement: z(r == null ? void 0 : r.disclosureElement, null)
1220
1220
  }, s = Ke(i, t);
1221
1221
  return Oe(
1222
1222
  s,
@@ -1225,7 +1225,7 @@ function Eo(e = {}) {
1225
1225
  })
1226
1226
  ), Oe(
1227
1227
  s,
1228
- () => qn(s, ["open"], () => {
1228
+ () => jn(s, ["open"], () => {
1229
1229
  s.getState().animated && s.setState("animating", !0);
1230
1230
  })
1231
1231
  ), Oe(
@@ -1278,16 +1278,16 @@ function Vs(e = {}) {
1278
1278
  ])
1279
1279
  );
1280
1280
  tn(n, o);
1281
- const i = o == null ? void 0 : o.getState(), s = Po(ve(te({}, n), { store: o })), u = U(
1281
+ const i = o == null ? void 0 : o.getState(), s = Po(ve(te({}, n), { store: o })), u = z(
1282
1282
  n.placement,
1283
1283
  i == null ? void 0 : i.placement,
1284
1284
  "bottom"
1285
1285
  ), a = ve(te({}, s.getState()), {
1286
1286
  placement: u,
1287
1287
  currentPlacement: u,
1288
- anchorElement: U(i == null ? void 0 : i.anchorElement, null),
1289
- popoverElement: U(i == null ? void 0 : i.popoverElement, null),
1290
- arrowElement: U(i == null ? void 0 : i.arrowElement, null),
1288
+ anchorElement: z(i == null ? void 0 : i.anchorElement, null),
1289
+ popoverElement: z(i == null ? void 0 : i.popoverElement, null),
1290
+ arrowElement: z(i == null ? void 0 : i.arrowElement, null),
1291
1291
  rendered: Symbol("rendered")
1292
1292
  }), d = Ke(a, s, o);
1293
1293
  return ve(te(te({}, s), d), {
@@ -1323,49 +1323,49 @@ function Bs(e = {}) {
1323
1323
  tn(n, o);
1324
1324
  const i = o.getState(), s = Rs(ve(te({}, n), {
1325
1325
  store: o,
1326
- virtualFocus: U(
1326
+ virtualFocus: z(
1327
1327
  n.virtualFocus,
1328
1328
  i.virtualFocus,
1329
1329
  !0
1330
1330
  ),
1331
- includesBaseElement: U(
1331
+ includesBaseElement: z(
1332
1332
  n.includesBaseElement,
1333
1333
  i.includesBaseElement,
1334
1334
  !1
1335
1335
  ),
1336
- activeId: U(
1336
+ activeId: z(
1337
1337
  n.activeId,
1338
1338
  i.activeId,
1339
1339
  n.defaultActiveId,
1340
1340
  null
1341
1341
  ),
1342
- orientation: U(
1342
+ orientation: z(
1343
1343
  n.orientation,
1344
1344
  i.orientation,
1345
1345
  "vertical"
1346
1346
  )
1347
1347
  })), u = Vs(ve(te({}, n), {
1348
1348
  store: o,
1349
- placement: U(
1349
+ placement: z(
1350
1350
  n.placement,
1351
1351
  i.placement,
1352
1352
  "bottom-start"
1353
1353
  )
1354
1354
  })), a = new String(""), d = ve(te(te({}, s.getState()), u.getState()), {
1355
- value: U(
1355
+ value: z(
1356
1356
  n.value,
1357
1357
  i.value,
1358
1358
  n.defaultValue,
1359
1359
  a
1360
1360
  ),
1361
- setValueOnMove: U(
1361
+ setValueOnMove: z(
1362
1362
  n.setValueOnMove,
1363
1363
  i.setValueOnMove,
1364
1364
  !1
1365
1365
  ),
1366
- labelElement: U(i.labelElement, null),
1367
- selectElement: U(i.selectElement, null),
1368
- listElement: U(i.listElement, null)
1366
+ labelElement: z(i.labelElement, null),
1367
+ selectElement: z(i.selectElement, null),
1368
+ listElement: z(i.listElement, null)
1369
1369
  }), f = Ke(d, s, u, o);
1370
1370
  return Oe(
1371
1371
  f,
@@ -1394,7 +1394,7 @@ function Bs(e = {}) {
1394
1394
  })
1395
1395
  ), Oe(
1396
1396
  f,
1397
- () => Ut(f, ["setValueOnMove", "moves"], (c) => {
1397
+ () => zt(f, ["setValueOnMove", "moves"], (c) => {
1398
1398
  const { mounted: l, value: p, activeId: b } = f.getState();
1399
1399
  if (!c.setValueOnMove && l || Array.isArray(p) || !c.moves || !b) return;
1400
1400
  const v = s.item(b);
@@ -1432,15 +1432,15 @@ function Ws(e = {}) {
1432
1432
  var Lt = it(
1433
1433
  [mo, Hn],
1434
1434
  [en, po]
1435
- ), Co = Lt.useContext, zs = Lt.useScopedContext, Jn = Lt.useProviderContext, Us = Lt.ContextProvider, Oo = Lt.ScopedContextProvider, js = ge(!1), xr = ge(null), _o = ge(!0), nn = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
1436
- function qs(e) {
1435
+ ), Co = Lt.useContext, qs = Lt.useScopedContext, Jn = Lt.useProviderContext, zs = Lt.ContextProvider, Oo = Lt.ScopedContextProvider, Us = ge(!1), xr = ge(null), _o = ge(!0), nn = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
1436
+ function js(e) {
1437
1437
  return Number.parseInt(e.getAttribute("tabindex") || "0", 10) < 0;
1438
1438
  }
1439
1439
  function De(e) {
1440
1440
  return !(!e.matches(nn) || !oo(e) || e.closest("[inert]"));
1441
1441
  }
1442
1442
  function Ct(e) {
1443
- if (!De(e) || qs(e)) return !1;
1443
+ if (!De(e) || js(e)) return !1;
1444
1444
  if (!("form" in e) || !e.form || e.checked || e.type !== "radio") return !0;
1445
1445
  const t = e.form.elements.namedItem(e.name);
1446
1446
  if (!t || !("length" in t)) return !0;
@@ -1510,7 +1510,7 @@ function Js(e) {
1510
1510
  e = e.closest(nn);
1511
1511
  return e || null;
1512
1512
  }
1513
- function jt(e) {
1513
+ function Ut(e) {
1514
1514
  const t = We(e);
1515
1515
  if (!t) return !1;
1516
1516
  if (t === e) return !0;
@@ -1590,7 +1590,7 @@ function cu(e, t, r, n, o) {
1590
1590
  return e ? t ? r && !n ? -1 : void 0 : r ? o : o || 0 : o;
1591
1591
  }
1592
1592
  function vn(e, t) {
1593
- return j((r) => {
1593
+ return U((r) => {
1594
1594
  e == null || e(r), !r.defaultPrevented && t && (r.stopPropagation(), r.preventDefault());
1595
1595
  });
1596
1596
  }
@@ -1650,7 +1650,7 @@ var on = Z(
1650
1650
  ), b = vn(
1651
1651
  u.onMouseDownCapture,
1652
1652
  d
1653
- ), v = vn(u.onClickCapture, d), x = u.onMouseDown, w = j((h) => {
1653
+ ), v = vn(u.onClickCapture, d), x = u.onMouseDown, w = U((h) => {
1654
1654
  if (x == null || x(h), h.defaultPrevented || !n) return;
1655
1655
  const F = h.currentTarget;
1656
1656
  if (!Ir || uo(h) || !Xe(F) && !Or(F)) return;
@@ -1666,12 +1666,12 @@ var on = Z(
1666
1666
  }), P = (h, F) => {
1667
1667
  if (F && (h.currentTarget = F), !n) return;
1668
1668
  const R = h.currentTarget;
1669
- R && jt(R) && (s == null || s(h), !h.defaultPrevented && (R.dataset.focusVisible = "true", l(!0)));
1670
- }, g = u.onKeyDownCapture, m = j((h) => {
1669
+ R && Ut(R) && (s == null || s(h), !h.defaultPrevented && (R.dataset.focusVisible = "true", l(!0)));
1670
+ }, g = u.onKeyDownCapture, m = U((h) => {
1671
1671
  if (g == null || g(h), h.defaultPrevented || !n || c || h.metaKey || h.altKey || h.ctrlKey || !me(h)) return;
1672
1672
  const F = h.currentTarget;
1673
1673
  vt(F, "focusout", () => P(h, F));
1674
- }), y = u.onFocusCapture, C = j((h) => {
1674
+ }), y = u.onFocusCapture, C = U((h) => {
1675
1675
  if (y == null || y(h), h.defaultPrevented || !n) return;
1676
1676
  if (!me(h)) {
1677
1677
  l(!1);
@@ -1679,11 +1679,11 @@ var on = Z(
1679
1679
  }
1680
1680
  const F = h.currentTarget, R = () => P(h, F);
1681
1681
  Zn || iu(h.target) ? vt(h.target, "focusout", R) : l(!1);
1682
- }), O = u.onBlur, A = j((h) => {
1682
+ }), O = u.onBlur, A = U((h) => {
1683
1683
  O == null || O(h), n && pt(h) && l(!1);
1684
- }), S = et(_o), T = j((h) => {
1684
+ }), S = et(_o), T = U((h) => {
1685
1685
  n && i && h && S && queueMicrotask(() => {
1686
- jt(h) || De(h) && h.focus();
1686
+ Ut(h) || De(h) && h.focus();
1687
1687
  });
1688
1688
  }), N = co(a), M = n && uu(N), I = n && au(N), L = u.style, D = He(() => f ? _({ pointerEvents: "none" }, L) : L, [f, L]);
1689
1689
  return u = B(_({
@@ -1730,10 +1730,10 @@ var pu = Symbol("command"), er = Z(
1730
1730
  W(() => {
1731
1731
  s.current && a(Xe(s.current));
1732
1732
  }, []);
1733
- const [d, f] = X(!1), c = Y(!1), l = Xt(i), [p, b] = fo(i, pu, !0), v = i.onKeyDown, x = j((g) => {
1733
+ const [d, f] = X(!1), c = Y(!1), l = Xt(i), [p, b] = fo(i, pu, !0), v = i.onKeyDown, x = U((g) => {
1734
1734
  v == null || v(g);
1735
1735
  const m = g.currentTarget;
1736
- if (g.defaultPrevented || p || l || !me(g) || ze(m) || m.isContentEditable) return;
1736
+ if (g.defaultPrevented || p || l || !me(g) || qe(m) || m.isContentEditable) return;
1737
1737
  const y = n && g.key === "Enter", C = o && g.key === " ", O = g.key === "Enter" && !n, A = g.key === " " && !o;
1738
1738
  if (O || A) {
1739
1739
  g.preventDefault();
@@ -1745,11 +1745,11 @@ var pu = Symbol("command"), er = Z(
1745
1745
  if (!S) {
1746
1746
  g.preventDefault();
1747
1747
  const T = g, N = J(T, ["view"]), M = () => vr(m, N);
1748
- ji() ? vt(m, "keyup", M) : queueMicrotask(M);
1748
+ Ui() ? vt(m, "keyup", M) : queueMicrotask(M);
1749
1749
  }
1750
1750
  } else C && (c.current = !0, S || (g.preventDefault(), f(!0)));
1751
1751
  }
1752
- }), w = i.onKeyUp, P = j((g) => {
1752
+ }), w = i.onKeyUp, P = U((g) => {
1753
1753
  if (w == null || w(g), g.defaultPrevented || p || l || g.metaKey) return;
1754
1754
  const m = o && g.key === " ";
1755
1755
  if (c.current && m && (c.current = !1, !_r(g))) {
@@ -1803,7 +1803,7 @@ var mu = "button", vu = Symbol("disclosure"), Fo = Z(
1803
1803
  let P = f === u.current;
1804
1804
  f != null && f.isConnected || (n == null || n.setDisclosureElement(u.current), P = !0), d(c && P);
1805
1805
  }, [f, n, c]);
1806
- const l = i.onClick, p = fe(o), [b, v] = fo(i, vu, !0), x = j((P) => {
1806
+ const l = i.onClick, p = fe(o), [b, v] = fo(i, vu, !0), x = U((P) => {
1807
1807
  l == null || l(P), !P.defaultPrevented && (b || p(P) && (n == null || n.setDisclosureElement(P.currentTarget), n == null || n.toggle()));
1808
1808
  }), w = n.useState("contentElement");
1809
1809
  return i = B(_(_({
@@ -1857,7 +1857,7 @@ var bu = "button", ko = Z(function(t) {
1857
1857
  n,
1858
1858
  process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
1859
1859
  );
1860
- const s = o.onClick, u = j((a) => {
1860
+ const s = o.onClick, u = U((a) => {
1861
1861
  n == null || n.setAnchorElement(a.currentTarget), s == null || s(a);
1862
1862
  });
1863
1863
  return o = le(
@@ -1955,7 +1955,7 @@ function Ou(e) {
1955
1955
  return t;
1956
1956
  }
1957
1957
  function _u(e, t = !1) {
1958
- if (ze(e))
1958
+ if (qe(e))
1959
1959
  e.setSelectionRange(
1960
1960
  t ? e.value.length : 0,
1961
1961
  e.value.length
@@ -1982,7 +1982,7 @@ function gn() {
1982
1982
  }
1983
1983
  function Lu(e) {
1984
1984
  const t = e.target;
1985
- return t && ze(t) ? !1 : e.key === " " && Ve.length ? !0 : e.key.length === 1 && !e.ctrlKey && !e.altKey && !e.metaKey && /^[\p{Letter}\p{Number}]$/u.test(e.key);
1985
+ return t && qe(t) ? !1 : e.key === " " && Ve.length ? !0 : e.key.length === 1 && !e.ctrlKey && !e.altKey && !e.metaKey && /^[\p{Letter}\p{Number}]$/u.test(e.key);
1986
1986
  }
1987
1987
  function Ru(e, t) {
1988
1988
  if (me(e)) return !0;
@@ -2016,7 +2016,7 @@ var tr = Z(function(t) {
2016
2016
  n,
2017
2017
  process.env.NODE_ENV !== "production" && "CompositeTypeahead must be a Composite component"
2018
2018
  );
2019
- const u = i.onKeyDownCapture, a = Y(0), d = j((f) => {
2019
+ const u = i.onKeyDownCapture, a = Y(0), d = U((f) => {
2020
2020
  if (u == null || u(f), f.defaultPrevented || !o || !n) return;
2021
2021
  if (!Lu(f))
2022
2022
  return gn();
@@ -2089,7 +2089,7 @@ var Vu = Z(function(t) {
2089
2089
  n,
2090
2090
  process.env.NODE_ENV !== "production" && "Select must receive a `store` prop or be wrapped in a SelectProvider component."
2091
2091
  );
2092
- const p = c.onKeyDown, b = fe(u), v = fe(a), w = n.useState("placement").split("-")[0], P = n.useState("value"), g = Array.isArray(P), m = j((D) => {
2092
+ const p = c.onKeyDown, b = fe(u), v = fe(a), w = n.useState("placement").split("-")[0], P = n.useState("value"), g = Array.isArray(P), m = U((D) => {
2093
2093
  var h;
2094
2094
  if (p == null || p(D), D.defaultPrevented || !n) return;
2095
2095
  const { orientation: F, items: R, activeId: E } = n.getState(), V = F !== "horizontal", K = F !== "vertical", H = !!((h = R.find((ue) => !ue.disabled && ue.value != null)) != null && h.rowId), oe = {
@@ -2201,7 +2201,7 @@ var Vu = Z(function(t) {
2201
2201
  });
2202
2202
  function Bu(e = {}) {
2203
2203
  const t = Ws(e);
2204
- return /* @__PURE__ */ k(Us, { value: t, children: e.children });
2204
+ return /* @__PURE__ */ k(zs, { value: t, children: e.children });
2205
2205
  }
2206
2206
  var Dr = ge(0), Ku = "div";
2207
2207
  function $o(e) {
@@ -2238,15 +2238,15 @@ var Bo = Z(
2238
2238
  n,
2239
2239
  process.env.NODE_ENV !== "production" && "CompositeHover must be wrapped in a Composite component."
2240
2240
  );
2241
- const a = ts(), d = s.onMouseMove, f = fe(o), c = j((x) => {
2241
+ const a = ts(), d = s.onMouseMove, f = fe(o), c = U((x) => {
2242
2242
  if (d == null || d(x), !x.defaultPrevented && a() && f(x)) {
2243
2243
  if (!Do(x.currentTarget)) {
2244
2244
  const w = n == null ? void 0 : n.getState().baseElement;
2245
- w && !jt(w) && w.focus();
2245
+ w && !Ut(w) && w.focus();
2246
2246
  }
2247
2247
  n == null || n.setActiveId(x.currentTarget.id);
2248
2248
  }
2249
- }), l = s.onMouseLeave, p = fe(i), b = j((x) => {
2249
+ }), l = s.onMouseLeave, p = fe(i), b = U((x) => {
2250
2250
  var w;
2251
2251
  l == null || l(x), !x.defaultPrevented && a() && (Hu(x) || Wu(x) || f(x) && p(x) && (n == null || n.setActiveId(null), (w = n == null ? void 0 : n.getState().baseElement) == null || w.focus()));
2252
2252
  }), v = xe((x) => {
@@ -2265,7 +2265,7 @@ Bn(
2265
2265
  return Q(Ku, r);
2266
2266
  })
2267
2267
  );
2268
- var zu = "div", Ko = Z(
2268
+ var qu = "div", Ko = Z(
2269
2269
  function(t) {
2270
2270
  var r = t, {
2271
2271
  store: n,
@@ -2294,13 +2294,13 @@ var zu = "div", Ko = Z(
2294
2294
  );
2295
2295
  G(function(t) {
2296
2296
  const r = Ko(t);
2297
- return Q(zu, r);
2297
+ return Q(qu, r);
2298
2298
  });
2299
- var Uu = "button";
2300
- function ju(e) {
2299
+ var zu = "button";
2300
+ function Uu(e) {
2301
2301
  return En(e) ? !0 : e.tagName === "INPUT" && !Xe(e);
2302
2302
  }
2303
- function qu(e, t = !1) {
2303
+ function ju(e, t = !1) {
2304
2304
  const r = e.clientHeight, { top: n } = e.getBoundingClientRect(), o = Math.max(r * 0.875, r - 40) * 1.5, i = t ? r - o + n : o + n;
2305
2305
  return e.tagName === "HTML" ? i + e.scrollTop : i;
2306
2306
  }
@@ -2313,7 +2313,7 @@ function Ar(e, t, r, n = !1) {
2313
2313
  if (!t || !r) return;
2314
2314
  const { renderedItems: i } = t.getState(), s = io(e);
2315
2315
  if (!s) return;
2316
- const u = qu(s, n);
2316
+ const u = ju(s, n);
2317
2317
  let a, d;
2318
2318
  for (let f = 0; f < i.length; f += 1) {
2319
2319
  const c = a;
@@ -2408,21 +2408,21 @@ var Ho = Z(
2408
2408
  return a ? a(K) : K;
2409
2409
  },
2410
2410
  [p, P, w, a]
2411
- ), S = c.onFocus, T = Y(!1), N = j((E) => {
2411
+ ), S = c.onFocus, T = Y(!1), N = U((E) => {
2412
2412
  if (S == null || S(E), E.defaultPrevented || uo(E) || !p || !n || Yu(E, n)) return;
2413
2413
  const { virtualFocus: V, baseElement: K } = n.getState();
2414
- if (n.setActiveId(p), En(E.currentTarget) && _u(E.currentTarget), !V || !me(E) || ju(E.currentTarget) || !(K != null && K.isConnected)) return;
2414
+ if (n.setActiveId(p), En(E.currentTarget) && _u(E.currentTarget), !V || !me(E) || Uu(E.currentTarget) || !(K != null && K.isConnected)) return;
2415
2415
  kn() && E.currentTarget.hasAttribute("data-autofocus") && E.currentTarget.scrollIntoView({
2416
2416
  block: "nearest",
2417
2417
  inline: "nearest"
2418
2418
  }), T.current = !0, E.relatedTarget === K || xt(n, E.relatedTarget) ? Du(K) : K.focus();
2419
- }), M = c.onBlurCapture, I = j((E) => {
2419
+ }), M = c.onBlurCapture, I = U((E) => {
2420
2420
  if (M == null || M(E), E.defaultPrevented) return;
2421
2421
  const V = n == null ? void 0 : n.getState();
2422
2422
  V != null && V.virtualFocus && T.current && (T.current = !1, E.preventDefault(), E.stopPropagation());
2423
- }), L = c.onKeyDown, D = fe(i), h = fe(s), F = j((E) => {
2423
+ }), L = c.onKeyDown, D = fe(i), h = fe(s), F = U((E) => {
2424
2424
  if (L == null || L(E), E.defaultPrevented || !me(E) || !n) return;
2425
- const { currentTarget: V } = E, K = n.getState(), H = n.item(p), ie = !!(H != null && H.rowId), oe = K.orientation !== "horizontal", re = K.orientation !== "vertical", be = () => !!(ie || re || !K.baseElement || !ze(K.baseElement)), ye = {
2425
+ const { currentTarget: V } = E, K = n.getState(), H = n.item(p), ie = !!(H != null && H.rowId), oe = K.orientation !== "horizontal", re = K.orientation !== "vertical", be = () => !!(ie || re || !K.baseElement || !qe(K.baseElement)), ye = {
2426
2426
  ArrowUp: (ie || oe) && n.up,
2427
2427
  ArrowRight: (ie || re) && n.next,
2428
2428
  ArrowDown: (ie || oe) && n.down,
@@ -2440,8 +2440,8 @@ var Ho = Z(
2440
2440
  }[E.key];
2441
2441
  if (ye) {
2442
2442
  if (En(V)) {
2443
- const ue = Hi(V), ut = re && E.key === "ArrowLeft", at = re && E.key === "ArrowRight", Me = oe && E.key === "ArrowUp", je = oe && E.key === "ArrowDown";
2444
- if (at || je) {
2443
+ const ue = Hi(V), ut = re && E.key === "ArrowLeft", at = re && E.key === "ArrowRight", Me = oe && E.key === "ArrowUp", Ue = oe && E.key === "ArrowDown";
2444
+ if (at || Ue) {
2445
2445
  const { length: ct } = Ki(V);
2446
2446
  if (ue.end !== ct) return;
2447
2447
  } else if ((ut || Me) && ue.start !== 0) return;
@@ -2483,7 +2483,7 @@ var Ho = Z(
2483
2483
  Bn(
2484
2484
  G(function(t) {
2485
2485
  const r = Ho(t);
2486
- return Q(Uu, r);
2486
+ return Q(zu, r);
2487
2487
  })
2488
2488
  );
2489
2489
  var Xu = "div";
@@ -2510,7 +2510,7 @@ var Qu = Z(
2510
2510
  "preventScrollOnKeyDown",
2511
2511
  "focusOnHover"
2512
2512
  ]), c;
2513
- const l = zs();
2513
+ const l = qs();
2514
2514
  n = n || l, he(
2515
2515
  n,
2516
2516
  process.env.NODE_ENV !== "production" && "SelectItem must be wrapped in a SelectList or SelectPopover component."
@@ -2537,12 +2537,12 @@ var Qu = Z(
2537
2537
  [b, o, i]
2538
2538
  );
2539
2539
  s = s ?? (o != null && !x);
2540
- const m = f.onClick, y = fe(u), C = fe(s), O = j((S) => {
2540
+ const m = f.onClick, y = fe(u), C = fe(s), O = U((S) => {
2541
2541
  m == null || m(S), !S.defaultPrevented && (Yi(S) || Gi(S) || (y(S) && o != null && (n == null || n.setValue((T) => Array.isArray(T) ? T.includes(o) ? T.filter((N) => N !== o) : [...T, o] : o)), C(S) && (n == null || n.hide())));
2542
2542
  });
2543
2543
  f = le(
2544
2544
  f,
2545
- (S) => /* @__PURE__ */ k(js.Provider, { value: w ?? !1, children: S }),
2545
+ (S) => /* @__PURE__ */ k(Us.Provider, { value: w ?? !1, children: S }),
2546
2546
  [w]
2547
2547
  ), f = B(_({
2548
2548
  id: p,
@@ -2582,13 +2582,13 @@ function ta(e) {
2582
2582
  }
2583
2583
  function na(e) {
2584
2584
  const t = e.target;
2585
- return t && !ze(t) ? !1 : e.key.length === 1 && !e.ctrlKey && !e.metaKey;
2585
+ return t && !qe(t) ? !1 : e.key.length === 1 && !e.ctrlKey && !e.metaKey;
2586
2586
  }
2587
2587
  function ra(e) {
2588
2588
  return e.key === "Shift" || e.key === "Control" || e.key === "Alt" || e.key === "Meta";
2589
2589
  }
2590
2590
  function Tr(e, t, r) {
2591
- return j((n) => {
2591
+ return U((n) => {
2592
2592
  var o;
2593
2593
  if (t == null || t(n), n.defaultPrevented || n.isPropagationStopped() || !me(n) || ra(n) || na(n)) return;
2594
2594
  const i = e.getState(), s = (o = Ge(e, i.activeId)) == null ? void 0 : o.element;
@@ -2642,7 +2642,7 @@ var Wo = Z(
2642
2642
  const { baseElement: I, activeId: L } = n.getState();
2643
2643
  if (!(L === null) || !I) return;
2644
2644
  const h = f.current;
2645
- f.current = null, h && dt(h, { relatedTarget: I }), jt(I) || I.focus();
2645
+ f.current = null, h && dt(h, { relatedTarget: I }), Ut(I) || I.focus();
2646
2646
  }, [n, l, o]);
2647
2647
  const b = n.useState("activeId"), v = n.useState("virtualFocus");
2648
2648
  ee(() => {
@@ -2661,30 +2661,30 @@ var Wo = Z(
2661
2661
  n,
2662
2662
  u.onKeyUpCapture,
2663
2663
  f
2664
- ), P = u.onFocusCapture, g = j((I) => {
2664
+ ), P = u.onFocusCapture, g = U((I) => {
2665
2665
  if (P == null || P(I), I.defaultPrevented || !n) return;
2666
2666
  const { virtualFocus: L } = n.getState();
2667
2667
  if (!L) return;
2668
2668
  const D = I.relatedTarget, h = Au(I.currentTarget);
2669
2669
  me(I) && h && (I.stopPropagation(), f.current = D);
2670
- }), m = u.onFocus, y = j((I) => {
2670
+ }), m = u.onFocus, y = U((I) => {
2671
2671
  if (m == null || m(I), I.defaultPrevented || !o || !n) return;
2672
2672
  const { relatedTarget: L } = I, { virtualFocus: D } = n.getState();
2673
2673
  D ? me(I) && !xt(n, L) && queueMicrotask(c) : me(I) && n.setActiveId(null);
2674
- }), C = u.onBlurCapture, O = j((I) => {
2674
+ }), C = u.onBlurCapture, O = U((I) => {
2675
2675
  var L;
2676
2676
  if (C == null || C(I), I.defaultPrevented || !n) return;
2677
2677
  const { virtualFocus: D, activeId: h } = n.getState();
2678
2678
  if (!D) return;
2679
2679
  const F = (L = Ge(n, h)) == null ? void 0 : L.element, R = I.relatedTarget, E = xt(n, R), V = f.current;
2680
2680
  f.current = null, me(I) && E ? (R === F ? V && V !== R && dt(V, I) : F ? dt(F, I) : V && dt(V, I), I.stopPropagation()) : !xt(n, I.target) && F && dt(F, I);
2681
- }), A = u.onKeyDown, S = fe(s), T = j((I) => {
2681
+ }), A = u.onKeyDown, S = fe(s), T = U((I) => {
2682
2682
  var L;
2683
2683
  if (A == null || A(I), I.defaultPrevented || !n || !me(I)) return;
2684
2684
  const { orientation: D, renderedItems: h, activeId: F } = n.getState(), R = Ge(n, F);
2685
2685
  if ((L = R == null ? void 0 : R.element) != null && L.isConnected) return;
2686
2686
  const E = D !== "horizontal", V = D !== "vertical", K = ta(h);
2687
- if ((I.key === "ArrowLeft" || I.key === "ArrowRight" || I.key === "Home" || I.key === "End") && ze(I.currentTarget)) return;
2687
+ if ((I.key === "ArrowLeft" || I.key === "ArrowRight" || I.key === "Home" || I.key === "End") && qe(I.currentTarget)) return;
2688
2688
  const re = {
2689
2689
  ArrowUp: (K || E) && (() => {
2690
2690
  if (K) {
@@ -2820,7 +2820,7 @@ var rr = Z(function(t) {
2820
2820
  return Lr(F, m);
2821
2821
  }, [n, p, b, v, c, d]), i = le(
2822
2822
  i,
2823
- (g) => /* @__PURE__ */ k(Un, { value: n, children: g }),
2823
+ (g) => /* @__PURE__ */ k(zn, { value: n, children: g }),
2824
2824
  [n]
2825
2825
  );
2826
2826
  const x = nr(l, i.hidden, o), w = i.style, P = He(() => x ? B(_({}, w), { display: "none" }) : w, [x, w]);
@@ -2850,7 +2850,7 @@ G(function(t) {
2850
2850
  (a) => !n || (a == null ? void 0 : a.mounted)
2851
2851
  ) === !1 ? null : /* @__PURE__ */ k(aa, _({}, o));
2852
2852
  });
2853
- var ca = "div", Fr = ge(null), zo = Z(
2853
+ var ca = "div", Fr = ge(null), qo = Z(
2854
2854
  function(t) {
2855
2855
  var r = t, {
2856
2856
  store: n,
@@ -2876,7 +2876,7 @@ var ca = "div", Fr = ge(null), zo = Z(
2876
2876
  W(() => {
2877
2877
  x || v(l);
2878
2878
  }, [x, l]), o = o && !p;
2879
- const w = d.onKeyDown, P = fe(o), g = fe(i), m = j((H) => {
2879
+ const w = d.onKeyDown, P = fe(o), g = fe(i), m = U((H) => {
2880
2880
  w == null || w(H), !H.defaultPrevented && (H.key === "Escape" && P(H) && (n == null || n.setValue(b)), (H.key === " " || H.key === "Enter") && me(H) && g(H) && (H.preventDefault(), n == null || n.hide()));
2881
2881
  }), y = et(xr), C = X(), [O, A] = y || C, S = He(
2882
2882
  () => [O, A],
@@ -2916,10 +2916,10 @@ var ca = "div", Fr = ge(null), zo = Z(
2916
2916
  }), d = Wo(B(_({ store: n }, d), { composite: u })), d = tr(_({ store: n, typeahead: !I }, d)), d;
2917
2917
  }
2918
2918
  ), la = G(function(t) {
2919
- const r = zo(t);
2919
+ const r = qo(t);
2920
2920
  return Q(ca, r);
2921
2921
  });
2922
- function Uo(e, ...t) {
2922
+ function zo(e, ...t) {
2923
2923
  if (!e) return !1;
2924
2924
  const r = e.getAttribute("data-backdrop");
2925
2925
  return r == null ? !1 : r === "" || r === "true" || !t.length ? !0 : t.some((n) => r === n);
@@ -3023,7 +3023,7 @@ function ga(e, t = "") {
3023
3023
  tt(e, ht(t), !0)
3024
3024
  );
3025
3025
  }
3026
- function jo(e, t = "") {
3026
+ function Uo(e, t = "") {
3027
3027
  return Te(
3028
3028
  tt(e, ht("", !0), !0),
3029
3029
  tt(e, ht(t, !0), !0)
@@ -3045,10 +3045,10 @@ function Nr(e, t) {
3045
3045
  e,
3046
3046
  t,
3047
3047
  (i) => {
3048
- Uo(i, ...n) || r.unshift(ga(i, e));
3048
+ zo(i, ...n) || r.unshift(ga(i, e));
3049
3049
  },
3050
3050
  (i, s) => {
3051
- s.hasAttribute("data-dialog") && s.id !== e || r.unshift(jo(i, e));
3051
+ s.hasAttribute("data-dialog") && s.id !== e || r.unshift(Uo(i, e));
3052
3052
  }
3053
3053
  ), () => {
3054
3054
  for (const i of r)
@@ -3116,7 +3116,7 @@ function ya({
3116
3116
  if (!d) return;
3117
3117
  const f = o.current;
3118
3118
  if (f)
3119
- return jo(f, d);
3119
+ return Uo(f, d);
3120
3120
  }, [s]);
3121
3121
  const u = rr({
3122
3122
  ref: o,
@@ -3147,12 +3147,12 @@ function Sa(e, ...t) {
3147
3147
  function wa(e) {
3148
3148
  return or(e, "aria-hidden", "true");
3149
3149
  }
3150
- function qo() {
3150
+ function jo() {
3151
3151
  return "inert" in HTMLElement.prototype;
3152
3152
  }
3153
3153
  function Go(e, t) {
3154
3154
  if (!("style" in e)) return Kt;
3155
- if (qo())
3155
+ if (jo())
3156
3156
  return tt(e, "inert", !0);
3157
3157
  const n = rn(e, !0).map((o) => {
3158
3158
  if (t != null && t.some((s) => s && se(s, o))) return Kt;
@@ -3177,7 +3177,7 @@ function Ea(e, t) {
3177
3177
  e,
3178
3178
  t,
3179
3179
  (i) => {
3180
- Uo(i, ...n) || Sa(i, ...n) || r.unshift(Go(i, t));
3180
+ zo(i, ...n) || Sa(i, ...n) || r.unshift(Go(i, t));
3181
3181
  },
3182
3182
  (i) => {
3183
3183
  i.hasAttribute("role") && (t.some((s) => s && se(s, i)) || r.unshift(or(i, "role", "none")));
@@ -3240,7 +3240,7 @@ function Ia(e, t, r) {
3240
3240
  return () => {
3241
3241
  C(), process.env.NODE_ENV !== "test" && i.scrollTo({ left: w, top: P, behavior: "instant" });
3242
3242
  };
3243
- }, b = Mn() && !qi();
3243
+ }, b = Mn() && !ji();
3244
3244
  return Te(
3245
3245
  f(),
3246
3246
  b ? p() : l()
@@ -3307,7 +3307,7 @@ function bn({
3307
3307
  capture: n,
3308
3308
  domReady: o
3309
3309
  }) {
3310
- const i = j(r), s = _e(e, "open"), u = Y(!1);
3310
+ const i = U(r), s = _e(e, "open"), u = Y(!1);
3311
3311
  ee(() => {
3312
3312
  if (!s || !o) return;
3313
3313
  const { contentElement: a } = e.getState();
@@ -3429,7 +3429,7 @@ function Ba(e, t) {
3429
3429
  function Ka(e = "id") {
3430
3430
  return `${e ? `${e}-` : ""}${Math.random().toString(36).slice(2, 8)}`;
3431
3431
  }
3432
- function qe(e) {
3432
+ function je(e) {
3433
3433
  queueMicrotask(() => {
3434
3434
  e == null || e.focus();
3435
3435
  });
@@ -3513,7 +3513,7 @@ var Jo = Z(function(t) {
3513
3513
  "data-focus-trap": a.id,
3514
3514
  className: "__focus-trap-inner-before",
3515
3515
  onFocus: (C) => {
3516
- pt(C, l) ? qe(mn()) : qe(x.current);
3516
+ pt(C, l) ? je(mn()) : je(x.current);
3517
3517
  }
3518
3518
  }
3519
3519
  ),
@@ -3525,7 +3525,7 @@ var Jo = Z(function(t) {
3525
3525
  "data-focus-trap": a.id,
3526
3526
  className: "__focus-trap-inner-after",
3527
3527
  onFocus: (C) => {
3528
- pt(C, l) ? qe(Pr()) : qe(g.current);
3528
+ pt(C, l) ? je(Pr()) : je(g.current);
3529
3529
  }
3530
3530
  }
3531
3531
  )
@@ -3538,7 +3538,7 @@ var Jo = Z(function(t) {
3538
3538
  "data-focus-trap": a.id,
3539
3539
  className: "__focus-trap-outer-before",
3540
3540
  onFocus: (C) => {
3541
- !(C.relatedTarget === g.current) && pt(C, l) ? qe(w.current) : qe(Pr());
3541
+ !(C.relatedTarget === g.current) && pt(C, l) ? je(w.current) : je(Pr());
3542
3542
  }
3543
3543
  }
3544
3544
  ),
@@ -3553,7 +3553,7 @@ var Jo = Z(function(t) {
3553
3553
  className: "__focus-trap-outer-after",
3554
3554
  onFocus: (C) => {
3555
3555
  if (pt(C, l))
3556
- qe(P.current);
3556
+ je(P.current);
3557
3557
  else {
3558
3558
  const O = mn();
3559
3559
  if (O === w.current) {
@@ -3563,7 +3563,7 @@ var Jo = Z(function(t) {
3563
3563
  });
3564
3564
  return;
3565
3565
  }
3566
- qe(O);
3566
+ je(O);
3567
3567
  }
3568
3568
  }
3569
3569
  }
@@ -3639,10 +3639,10 @@ var Qo = Z(function(t) {
3639
3639
  open: o,
3640
3640
  setOpen($) {
3641
3641
  if ($) return;
3642
- const z = C.current;
3643
- if (!z) return;
3642
+ const q = C.current;
3643
+ if (!q) return;
3644
3644
  const ae = new Event("close", { bubbles: !1, cancelable: !0 });
3645
- i && z.addEventListener("close", i, { once: !0 }), z.dispatchEvent(ae), ae.defaultPrevented && O.setOpen(!0);
3645
+ i && q.addEventListener("close", i, { once: !0 }), q.dispatchEvent(ae), ae.defaultPrevented && O.setOpen(!0);
3646
3646
  }
3647
3647
  }), { portalRef: A, domReady: S } = lo(a, m.portalRef), T = m.preserveTabOrder, N = _e(
3648
3648
  O,
@@ -3652,35 +3652,35 @@ var Qo = Z(function(t) {
3652
3652
  const { wrapElement: F, nestedDialogs: R } = Ca(O);
3653
3653
  m = le(m, F, [F]), ee(() => {
3654
3654
  if (!I) return;
3655
- const $ = C.current, z = We($, !0);
3656
- z && z.tagName !== "BODY" && ($ && se($, z) || O.setDisclosureElement(z));
3655
+ const $ = C.current, q = We($, !0);
3656
+ q && q.tagName !== "BODY" && ($ && se($, q) || O.setDisclosureElement(q));
3657
3657
  }, [O, I]), Vr && W(() => {
3658
3658
  if (!L) return;
3659
3659
  const { disclosureElement: $ } = O.getState();
3660
3660
  if (!$ || !Xe($)) return;
3661
- const z = () => {
3661
+ const q = () => {
3662
3662
  let ae = !1;
3663
- const q = () => {
3663
+ const j = () => {
3664
3664
  ae = !0;
3665
3665
  }, Se = { capture: !0, once: !0 };
3666
- $.addEventListener("focusin", q, Se), vt($, "mouseup", () => {
3667
- $.removeEventListener("focusin", q, !0), !ae && Ao($);
3666
+ $.addEventListener("focusin", j, Se), vt($, "mouseup", () => {
3667
+ $.removeEventListener("focusin", j, !0), !ae && Ao($);
3668
3668
  });
3669
3669
  };
3670
- return $.addEventListener("mousedown", z), () => {
3671
- $.removeEventListener("mousedown", z);
3670
+ return $.addEventListener("mousedown", q), () => {
3671
+ $.removeEventListener("mousedown", q);
3672
3672
  };
3673
3673
  }, [O, L]), W(() => {
3674
3674
  if (!L || !S) return;
3675
3675
  const $ = C.current;
3676
3676
  if (!$) return;
3677
- const z = ro($), ae = z.visualViewport || z, q = () => {
3677
+ const q = ro($), ae = q.visualViewport || q, j = () => {
3678
3678
  var Se, Re;
3679
- const Et = (Re = (Se = z.visualViewport) == null ? void 0 : Se.height) != null ? Re : z.innerHeight;
3679
+ const Et = (Re = (Se = q.visualViewport) == null ? void 0 : Se.height) != null ? Re : q.innerHeight;
3680
3680
  $.style.setProperty("--dialog-viewport-height", `${Et}px`);
3681
3681
  };
3682
- return q(), ae.addEventListener("resize", q), () => {
3683
- ae.removeEventListener("resize", q);
3682
+ return j(), ae.addEventListener("resize", j), () => {
3683
+ ae.removeEventListener("resize", j);
3684
3684
  };
3685
3685
  }, [L, S]), W(() => {
3686
3686
  if (!u || !L || !S) return;
@@ -3688,7 +3688,7 @@ var Qo = Z(function(t) {
3688
3688
  if (!(!$ || $.querySelector("[data-dialog-dismiss]")))
3689
3689
  return La($, O.hide);
3690
3690
  }, [O, u, L, S]), ee(() => {
3691
- if (!qo() || I || !L || !S) return;
3691
+ if (!jo() || I || !L || !S) return;
3692
3692
  const $ = C.current;
3693
3693
  if ($)
3694
3694
  return Go($);
@@ -3699,18 +3699,18 @@ var Qo = Z(function(t) {
3699
3699
  const $ = C.current;
3700
3700
  return va(M, [$]);
3701
3701
  }, [M, E, g]);
3702
- const V = j(l);
3702
+ const V = U(l);
3703
3703
  ee(() => {
3704
3704
  if (!M || !E) return;
3705
- const { disclosureElement: $ } = O.getState(), z = C.current, ae = V() || [], q = [
3706
- z,
3705
+ const { disclosureElement: $ } = O.getState(), q = C.current, ae = V() || [], j = [
3706
+ q,
3707
3707
  ...ae,
3708
3708
  ...R.map((Se) => Se.getState().contentElement)
3709
3709
  ];
3710
3710
  return u ? Te(
3711
- Nr(M, q),
3712
- Ea(M, q)
3713
- ) : Nr(M, [$, ...q]);
3711
+ Nr(M, j),
3712
+ Ea(M, j)
3713
+ ) : Nr(M, [$, ...j]);
3714
3714
  }, [
3715
3715
  M,
3716
3716
  O,
@@ -3734,8 +3734,8 @@ var Qo = Z(function(t) {
3734
3734
  // properly because the elements aren't tabbable until the dialog receives
3735
3735
  // focus.
3736
3736
  Gs(D, !0, a && N) || // Finally, we fallback to the dialog element itself.
3737
- D, z = De($);
3738
- H(z ? $ : null) && (oe(!0), queueMicrotask(() => {
3737
+ D, q = De($);
3738
+ H(q ? $ : null) && (oe(!0), queueMicrotask(() => {
3739
3739
  $.focus(), Vr && $.scrollIntoView({ block: "nearest", inline: "nearest" });
3740
3740
  }));
3741
3741
  }, [
@@ -3748,42 +3748,42 @@ var Qo = Z(function(t) {
3748
3748
  N,
3749
3749
  H
3750
3750
  ]);
3751
- const re = !!v, be = fe(v), [Ue, ye] = X(!1);
3751
+ const re = !!v, be = fe(v), [ze, ye] = X(!1);
3752
3752
  W(() => {
3753
3753
  if (I)
3754
3754
  return ye(!0), () => ye(!1);
3755
3755
  }, [I]);
3756
3756
  const Ie = xe(
3757
- ($, z = !0) => {
3757
+ ($, q = !0) => {
3758
3758
  const { disclosureElement: ae } = O.getState();
3759
3759
  if (Wa($)) return;
3760
- let q = $r(w) || ae;
3761
- if (q != null && q.id) {
3762
- const Re = ne(q), Et = `[aria-activedescendant="${q.id}"]`, Ft = Re.querySelector(Et);
3763
- Ft && (q = Ft);
3760
+ let j = $r(w) || ae;
3761
+ if (j != null && j.id) {
3762
+ const Re = ne(j), Et = `[aria-activedescendant="${j.id}"]`, Ft = Re.querySelector(Et);
3763
+ Ft && (j = Ft);
3764
3764
  }
3765
- if (q && !De(q)) {
3766
- const Re = q.closest("[data-dialog]");
3765
+ if (j && !De(j)) {
3766
+ const Re = j.closest("[data-dialog]");
3767
3767
  if (Re != null && Re.id) {
3768
3768
  const Et = ne(Re), Ft = `[aria-controls~="${Re.id}"]`, lr = Et.querySelector(Ft);
3769
- lr && (q = lr);
3769
+ lr && (j = lr);
3770
3770
  }
3771
3771
  }
3772
- const Se = q && De(q);
3773
- if (!Se && z) {
3772
+ const Se = j && De(j);
3773
+ if (!Se && q) {
3774
3774
  requestAnimationFrame(() => Ie($, !1));
3775
3775
  return;
3776
3776
  }
3777
- be(Se ? q : null) && Se && (q == null || q.focus());
3777
+ be(Se ? j : null) && Se && (j == null || j.focus());
3778
3778
  },
3779
3779
  [O, w, be]
3780
3780
  ), ue = Y(!1);
3781
3781
  ee(() => {
3782
- if (I || !Ue || !re) return;
3782
+ if (I || !ze || !re) return;
3783
3783
  const $ = C.current;
3784
3784
  ue.current = !0, Ie($);
3785
- }, [I, Ue, S, re, Ie]), W(() => {
3786
- if (!Ue || !re) return;
3785
+ }, [I, ze, S, re, Ie]), W(() => {
3786
+ if (!ze || !re) return;
3787
3787
  const $ = C.current;
3788
3788
  return () => {
3789
3789
  if (ue.current) {
@@ -3792,16 +3792,16 @@ var Qo = Z(function(t) {
3792
3792
  }
3793
3793
  Ie($);
3794
3794
  };
3795
- }, [Ue, re, Ie]);
3795
+ }, [ze, re, Ie]);
3796
3796
  const ut = fe(f);
3797
- W(() => !S || !L ? void 0 : Ce("keydown", (z) => {
3798
- if (z.key !== "Escape" || z.defaultPrevented) return;
3797
+ W(() => !S || !L ? void 0 : Ce("keydown", (q) => {
3798
+ if (q.key !== "Escape" || q.defaultPrevented) return;
3799
3799
  const ae = C.current;
3800
3800
  if (!ae || sr(ae)) return;
3801
- const q = z.target;
3802
- if (!q) return;
3801
+ const j = q.target;
3802
+ if (!j) return;
3803
3803
  const { disclosureElement: Se } = O.getState();
3804
- !!(q.tagName === "BODY" || se(ae, q) || !Se || se(Se, q)) && ut(z) && O.hide();
3804
+ !!(j.tagName === "BODY" || se(ae, j) || !Se || se(Se, j)) && ut(q) && O.hide();
3805
3805
  }, !0), [O, S, L, ut]), m = le(
3806
3806
  m,
3807
3807
  ($) => /* @__PURE__ */ k(Fa, { level: u ? 1 : void 0, children: $ }),
@@ -3824,17 +3824,17 @@ var Qo = Z(function(t) {
3824
3824
  ] }) : $,
3825
3825
  [O, d, at, Me]
3826
3826
  );
3827
- const [je, ct] = X(), [lt, ft] = X();
3827
+ const [Ue, ct] = X(), [lt, ft] = X();
3828
3828
  return m = le(
3829
3829
  m,
3830
- ($) => /* @__PURE__ */ k(Un, { value: O, children: /* @__PURE__ */ k(ps.Provider, { value: ct, children: /* @__PURE__ */ k(ms.Provider, { value: ft, children: $ }) }) }),
3830
+ ($) => /* @__PURE__ */ k(zn, { value: O, children: /* @__PURE__ */ k(ps.Provider, { value: ct, children: /* @__PURE__ */ k(ms.Provider, { value: ft, children: $ }) }) }),
3831
3831
  [O]
3832
3832
  ), m = B(_({
3833
3833
  id: M,
3834
3834
  "data-dialog": "",
3835
3835
  role: "dialog",
3836
3836
  tabIndex: s ? -1 : void 0,
3837
- "aria-labelledby": je,
3837
+ "aria-labelledby": Ue,
3838
3838
  "aria-describedby": lt
3839
3839
  }, m), {
3840
3840
  ref: de(C, m.ref)
@@ -3899,7 +3899,7 @@ function Br(e, t, r) {
3899
3899
  }
3900
3900
  return c;
3901
3901
  }
3902
- const za = async (e, t, r) => {
3902
+ const qa = async (e, t, r) => {
3903
3903
  const { placement: n = "bottom", strategy: o = "absolute", middleware: i = [], platform: s } = r, u = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
3904
3904
  let d = await s.getElementRects({ reference: e, floating: t, strategy: o }), { x: f, y: c } = Br(d, n, a), l = n, p = {}, b = 0;
3905
3905
  for (let v = 0; v < u.length; v++) {
@@ -3913,20 +3913,20 @@ function Zo(e) {
3913
3913
  return { top: 0, right: 0, bottom: 0, left: 0, ...t };
3914
3914
  }(e) : { top: e, right: e, bottom: e, left: e };
3915
3915
  }
3916
- function qt(e) {
3916
+ function jt(e) {
3917
3917
  return { ...e, top: e.y, left: e.x, right: e.x + e.width, bottom: e.y + e.height };
3918
3918
  }
3919
3919
  async function cr(e, t) {
3920
3920
  var r;
3921
3921
  t === void 0 && (t = {});
3922
- const { x: n, y: o, platform: i, rects: s, elements: u, strategy: a } = e, { boundary: d = "clippingAncestors", rootBoundary: f = "viewport", elementContext: c = "floating", altBoundary: l = !1, padding: p = 0 } = t, b = Zo(p), v = u[l ? c === "floating" ? "reference" : "floating" : c], x = qt(await i.getClippingRect({ element: (r = await (i.isElement == null ? void 0 : i.isElement(v))) == null || r ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(u.floating)), boundary: d, rootBoundary: f, strategy: a })), w = c === "floating" ? { ...s.floating, x: n, y: o } : s.reference, P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u.floating)), g = await (i.isElement == null ? void 0 : i.isElement(P)) && await (i.getScale == null ? void 0 : i.getScale(P)) || { x: 1, y: 1 }, m = qt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: w, offsetParent: P, strategy: a }) : w);
3922
+ const { x: n, y: o, platform: i, rects: s, elements: u, strategy: a } = e, { boundary: d = "clippingAncestors", rootBoundary: f = "viewport", elementContext: c = "floating", altBoundary: l = !1, padding: p = 0 } = t, b = Zo(p), v = u[l ? c === "floating" ? "reference" : "floating" : c], x = jt(await i.getClippingRect({ element: (r = await (i.isElement == null ? void 0 : i.isElement(v))) == null || r ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(u.floating)), boundary: d, rootBoundary: f, strategy: a })), w = c === "floating" ? { ...s.floating, x: n, y: o } : s.reference, P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u.floating)), g = await (i.isElement == null ? void 0 : i.isElement(P)) && await (i.getScale == null ? void 0 : i.getScale(P)) || { x: 1, y: 1 }, m = jt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: w, offsetParent: P, strategy: a }) : w);
3923
3923
  return { top: (x.top - m.top + b.top) / g.y, bottom: (m.bottom - x.bottom + b.bottom) / g.y, left: (x.left - m.left + b.left) / g.x, right: (m.right - x.right + b.right) / g.x };
3924
3924
  }
3925
3925
  const An = Math.min, Ze = Math.max;
3926
3926
  function Tn(e, t, r) {
3927
3927
  return Ze(e, An(t, r));
3928
3928
  }
3929
- const Ua = (e) => ({ name: "arrow", options: e, async fn(t) {
3929
+ const za = (e) => ({ name: "arrow", options: e, async fn(t) {
3930
3930
  const { element: r, padding: n = 0 } = e, { x: o, y: i, placement: s, rects: u, platform: a, elements: d } = t;
3931
3931
  if (r == null) return {};
3932
3932
  const f = Zo(n), c = { x: o, y: i }, l = st(s), p = ar(l), b = await a.getDimensions(r), v = l === "y", x = v ? "top" : "left", w = v ? "bottom" : "right", P = v ? "clientHeight" : "clientWidth", g = u.reference[p] + u.reference[l] - c[l] - u.floating[p], m = c[l] - u.reference[l], y = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(r));
@@ -3934,11 +3934,11 @@ const Ua = (e) => ({ name: "arrow", options: e, async fn(t) {
3934
3934
  C && await (a.isElement == null ? void 0 : a.isElement(y)) || (C = d.floating[P] || u.floating[p]);
3935
3935
  const O = g / 2 - m / 2, A = f[x], S = C - b[p] - f[w], T = C / 2 - b[p] / 2 + O, N = Tn(A, T, S), M = wt(s) != null && T != N && u.reference[p] / 2 - (T < A ? f[x] : f[w]) - b[p] / 2 < 0;
3936
3936
  return { [l]: c[l] - (M ? T < A ? A - T : S - T : 0), data: { [l]: N, centerOffset: T - N } };
3937
- } }), ja = ["top", "right", "bottom", "left"];
3938
- ja.reduce((e, t) => e.concat(t, t + "-start", t + "-end"), []);
3939
- const qa = { left: "right", right: "left", bottom: "top", top: "bottom" };
3937
+ } }), Ua = ["top", "right", "bottom", "left"];
3938
+ Ua.reduce((e, t) => e.concat(t, t + "-start", t + "-end"), []);
3939
+ const ja = { left: "right", right: "left", bottom: "top", top: "bottom" };
3940
3940
  function Gt(e) {
3941
- return e.replace(/left|right|bottom|top/g, (t) => qa[t]);
3941
+ return e.replace(/left|right|bottom|top/g, (t) => ja[t]);
3942
3942
  }
3943
3943
  function Ga(e, t, r) {
3944
3944
  r === void 0 && (r = !1);
@@ -4152,7 +4152,7 @@ function nt(e, t, r, n) {
4152
4152
  g.x += (w.clientLeft + parseFloat(m.paddingLeft)) * P.x, g.y += (w.clientTop + parseFloat(m.paddingTop)) * P.y, c *= P.x, l *= P.y, p *= P.x, b *= P.y, c += g.x, l += g.y, w = we(w).frameElement;
4153
4153
  }
4154
4154
  }
4155
- return qt({ width: p, height: b, x: c, y: l });
4155
+ return jt({ width: p, height: b, x: c, y: l });
4156
4156
  }
4157
4157
  function Ye(e) {
4158
4158
  return ((ti(e) ? e.ownerDocument : e.document) || window.document).documentElement;
@@ -4209,20 +4209,20 @@ function Wr(e, t, r) {
4209
4209
  }
4210
4210
  n = s;
4211
4211
  }
4212
- return qt(n);
4212
+ return jt(n);
4213
4213
  }
4214
4214
  function ai(e, t) {
4215
4215
  const r = bt(e);
4216
4216
  return !(r === t || !Ee(r) || sn(r)) && (Ae(r).position === "fixed" || ai(r, t));
4217
4217
  }
4218
- function zr(e, t) {
4218
+ function qr(e, t) {
4219
4219
  return Le(e) && Ae(e).position !== "fixed" ? t ? t(e) : e.offsetParent : null;
4220
4220
  }
4221
- function Ur(e, t) {
4221
+ function zr(e, t) {
4222
4222
  const r = we(e);
4223
4223
  if (!Le(e)) return r;
4224
- let n = zr(e, t);
4225
- for (; n && tc(n) && Ae(n).position === "static"; ) n = zr(n, t);
4224
+ let n = qr(e, t);
4225
+ for (; n && tc(n) && Ae(n).position === "static"; ) n = qr(n, t);
4226
4226
  return n && (Je(n) === "html" || Je(n) === "body" && Ae(n).position === "static" && !Ln(n)) ? r : n || function(o) {
4227
4227
  let i = bt(o);
4228
4228
  for (; Le(i) && !sn(i); ) {
@@ -4273,9 +4273,9 @@ const rc = { getClippingRect: function(e) {
4273
4273
  return { width: t.width * u.x, height: t.height * u.y, x: t.x * u.x - s.scrollLeft * u.x + a.x, y: t.y * u.y - s.scrollTop * u.y + a.y };
4274
4274
  }, isElement: Ee, getDimensions: function(e) {
4275
4275
  return ri(e);
4276
- }, getOffsetParent: Ur, getDocumentElement: Ye, getScale: gt, async getElementRects(e) {
4276
+ }, getOffsetParent: zr, getDocumentElement: Ye, getScale: gt, async getElementRects(e) {
4277
4277
  let { reference: t, floating: r, strategy: n } = e;
4278
- const o = this.getOffsetParent || Ur, i = this.getDimensions;
4278
+ const o = this.getOffsetParent || zr, i = this.getDimensions;
4279
4279
  return { reference: nc(t, await o(r), n), floating: { x: 0, y: 0, ...await i(r) } };
4280
4280
  }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => Ae(e).direction === "rtl" };
4281
4281
  function oc(e, t, r, n) {
@@ -4302,10 +4302,10 @@ function oc(e, t, r, n) {
4302
4302
  }
4303
4303
  const ic = (e, t, r) => {
4304
4304
  const n = /* @__PURE__ */ new Map(), o = { platform: rc, ...r }, i = { ...o.platform, _c: n };
4305
- return za(e, t, { ...o, platform: i });
4305
+ return qa(e, t, { ...o, platform: i });
4306
4306
  };
4307
4307
  var sc = "div";
4308
- function jr(e = 0, t = 0, r = 0, n = 0) {
4308
+ function Ur(e = 0, t = 0, r = 0, n = 0) {
4309
4309
  if (typeof DOMRect == "function")
4310
4310
  return new DOMRect(e, t, r, n);
4311
4311
  const o = {
@@ -4321,9 +4321,9 @@ function jr(e = 0, t = 0, r = 0, n = 0) {
4321
4321
  return B(_({}, o), { toJSON: () => o });
4322
4322
  }
4323
4323
  function uc(e) {
4324
- if (!e) return jr();
4324
+ if (!e) return Ur();
4325
4325
  const { x: t, y: r, width: n, height: o } = e;
4326
- return jr(t, r, n, o);
4326
+ return Ur(t, r, n, o);
4327
4327
  }
4328
4328
  function ac(e, t) {
4329
4329
  return {
@@ -4337,7 +4337,7 @@ function ac(e, t) {
4337
4337
  function cc(e) {
4338
4338
  return /^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e);
4339
4339
  }
4340
- function qr(e) {
4340
+ function jr(e) {
4341
4341
  const t = window.devicePixelRatio || 1;
4342
4342
  return Math.round(e * t) / t;
4343
4343
  }
@@ -4392,7 +4392,7 @@ function pc(e) {
4392
4392
  }
4393
4393
  function mc(e, t) {
4394
4394
  if (e)
4395
- return Ua({
4395
+ return za({
4396
4396
  element: e,
4397
4397
  padding: t.arrowPadding
4398
4398
  });
@@ -4443,7 +4443,7 @@ var ci = Z(
4443
4443
  n,
4444
4444
  process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
4445
4445
  );
4446
- const O = n.useState("arrowElement"), A = n.useState("anchorElement"), S = n.useState("disclosureElement"), T = n.useState("popoverElement"), N = n.useState("contentElement"), M = n.useState("placement"), I = n.useState("mounted"), L = n.useState("rendered"), D = Y(null), [h, F] = X(!1), { portalRef: R, domReady: E } = lo(i, y.portalRef), V = j(g), K = j(m), H = !!m;
4446
+ const O = n.useState("arrowElement"), A = n.useState("anchorElement"), S = n.useState("disclosureElement"), T = n.useState("popoverElement"), N = n.useState("contentElement"), M = n.useState("placement"), I = n.useState("mounted"), L = n.useState("rendered"), D = Y(null), [h, F] = X(!1), { portalRef: R, domReady: E } = lo(i, y.portalRef), V = U(g), K = U(m), H = !!m;
4447
4447
  ee(() => {
4448
4448
  if (!(T != null && T.isConnected)) return;
4449
4449
  T.style.setProperty(
@@ -4469,35 +4469,35 @@ var ci = Z(
4469
4469
  middleware: Ie
4470
4470
  });
4471
4471
  n == null || n.setState("currentPlacement", ue.placement), F(!0);
4472
- const ut = qr(ue.x), at = qr(ue.y);
4472
+ const ut = jr(ue.x), at = jr(ue.y);
4473
4473
  if (Object.assign(T.style, {
4474
4474
  top: "0",
4475
4475
  left: "0",
4476
4476
  transform: `translate3d(${ut}px,${at}px,0)`
4477
4477
  }), ye && ue.middlewareData.arrow) {
4478
- const { x: Me, y: je } = ue.middlewareData.arrow, ct = ue.placement.split("-")[0], lt = ye.clientWidth / 2, ft = ye.clientHeight / 2, $ = Me != null ? Me + lt : -lt, z = je != null ? je + ft : -ft;
4478
+ const { x: Me, y: Ue } = ue.middlewareData.arrow, ct = ue.placement.split("-")[0], lt = ye.clientWidth / 2, ft = ye.clientHeight / 2, $ = Me != null ? Me + lt : -lt, q = Ue != null ? Ue + ft : -ft;
4479
4479
  T.style.setProperty(
4480
4480
  "--popover-transform-origin",
4481
4481
  {
4482
4482
  top: `${$}px calc(100% + ${ft}px)`,
4483
4483
  bottom: `${$}px ${-ft}px`,
4484
- left: `calc(100% + ${lt}px) ${z}px`,
4485
- right: `${-lt}px ${z}px`
4484
+ left: `calc(100% + ${lt}px) ${q}px`,
4485
+ right: `${-lt}px ${q}px`
4486
4486
  }[ct]
4487
4487
  ), Object.assign(ye.style, {
4488
4488
  left: Me != null ? `${Me}px` : "",
4489
- top: je != null ? `${je}px` : "",
4489
+ top: Ue != null ? `${Ue}px` : "",
4490
4490
  [ct]: "100%"
4491
4491
  });
4492
4492
  }
4493
- }, Ue = oc(oe, T, async () => {
4493
+ }, ze = oc(oe, T, async () => {
4494
4494
  H ? (await K({ updatePosition: re }), F(!0)) : await re();
4495
4495
  }, {
4496
4496
  // JSDOM doesn't support ResizeObserver
4497
4497
  elementResize: typeof ResizeObserver == "function"
4498
4498
  });
4499
4499
  return () => {
4500
- F(!1), Ue();
4500
+ F(!1), ze();
4501
4501
  };
4502
4502
  }, [
4503
4503
  n,
@@ -4588,7 +4588,7 @@ var vc = "div", gc = Z(
4588
4588
  function(t) {
4589
4589
  var r = t, { store: n, alwaysVisible: o } = r, i = J(r, ["store", "alwaysVisible"]);
4590
4590
  const s = Jn();
4591
- return n = n || s, i = zo(_({ store: n, alwaysVisible: o }, i)), i = ci(_({ store: n, alwaysVisible: o }, i)), i;
4591
+ return n = n || s, i = qo(_({ store: n, alwaysVisible: o }, i)), i = ci(_({ store: n, alwaysVisible: o }, i)), i;
4592
4592
  }
4593
4593
  ), hc = ur(
4594
4594
  G(function(t) {
@@ -4597,7 +4597,7 @@ var vc = "div", gc = Z(
4597
4597
  }),
4598
4598
  Jn
4599
4599
  );
4600
- const bc = "_agentSelector_bg7t4_1", yc = "_agentSelectorButton_bg7t4_4", Sc = "_agentStatus_bg7t4_8", wc = "_agentLoader_bg7t4_21", Ec = "_agentError_bg7t4_24", xc = "_triggerChip_bg7t4_27", Pc = "_agentLabel_bg7t4_33", Ic = "_dropdownIndicator_bg7t4_39", Cc = "_sidebar_bg7t4_54", Oc = "_agentListRetryButton_bg7t4_67", _c = "_agentList_bg7t4_67", Dc = "_agentListItemIcon_bg7t4_99", Ac = "_agentListContainer_bg7t4_104", Pe = {
4600
+ const bc = "_agentSelector_f2uiq_1", yc = "_agentSelectorButton_f2uiq_4", Sc = "_agentStatus_f2uiq_8", wc = "_agentLoader_f2uiq_21", Ec = "_agentError_f2uiq_24", xc = "_triggerChip_f2uiq_27", Pc = "_agentLabel_f2uiq_33", Ic = "_dropdownIndicator_f2uiq_39", Cc = "_sidebar_f2uiq_54", Oc = "_agentListRetryButton_f2uiq_67", _c = "_agentList_f2uiq_67", Dc = "_agentListItemIcon_f2uiq_99", Ac = "_agentListContainer_f2uiq_104", Pe = {
4601
4601
  agentSelector: bc,
4602
4602
  agentSelectorButton: yc,
4603
4603
  agentStatus: Sc,
@@ -4612,7 +4612,7 @@ const bc = "_agentSelector_bg7t4_1", yc = "_agentSelectorButton_bg7t4_4", Sc = "
4612
4612
  agentListItemIcon: Dc,
4613
4613
  agentListContainer: Ac
4614
4614
  };
4615
- function Uc({
4615
+ function zc({
4616
4616
  agents: e,
4617
4617
  contentClassName: t,
4618
4618
  onErrorAction: r,
@@ -4754,6 +4754,6 @@ function Uc({
4754
4754
  });
4755
4755
  }
4756
4756
  export {
4757
- Uc as BoxAiAgentSelector,
4758
- Uc as default
4757
+ zc as BoxAiAgentSelector,
4758
+ zc as default
4759
4759
  };