@cloudoperators/juno-messages-provider 0.2.31 → 0.2.32

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.
Files changed (2) hide show
  1. package/build/index.js +395 -394
  2. package/package.json +2 -2
package/build/index.js CHANGED
@@ -185,7 +185,7 @@ function Is() {
185
185
  function u(O, j, J, ne, de, B) {
186
186
  var te = J.ref;
187
187
  return O = {
188
- $$typeof: g,
188
+ $$typeof: v,
189
189
  type: O,
190
190
  key: j,
191
191
  props: J,
@@ -221,13 +221,13 @@ function Is() {
221
221
  if (ne)
222
222
  if (R(te)) {
223
223
  for (ne = 0; ne < te.length; ne++)
224
- v(te[ne]);
224
+ g(te[ne]);
225
225
  Object.freeze && Object.freeze(te);
226
226
  } else
227
227
  console.error(
228
228
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
229
229
  );
230
- else v(te);
230
+ else g(te);
231
231
  if (E.call(j, "key")) {
232
232
  te = t(O);
233
233
  var oe = Object.keys(j).filter(function(Qt) {
@@ -263,13 +263,13 @@ React keys must be passed directly to JSX without using spread:
263
263
  B
264
264
  );
265
265
  }
266
- function v(O) {
266
+ function g(O) {
267
267
  m(O) ? O._store && (O._store.validated = 1) : typeof O == "object" && O !== null && O.$$typeof === F && (O._payload.status === "fulfilled" ? m(O._payload.value) && O._payload.value._store && (O._payload.value._store.validated = 1) : O._store && (O._store.validated = 1));
268
268
  }
269
269
  function m(O) {
270
- return typeof O == "object" && O !== null && O.$$typeof === g;
270
+ return typeof O == "object" && O !== null && O.$$typeof === v;
271
271
  }
272
- var p = q, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), M = /* @__PURE__ */ Symbol.for("react.strict_mode"), C = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), L = /* @__PURE__ */ Symbol.for("react.context"), _ = /* @__PURE__ */ Symbol.for("react.forward_ref"), P = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"), F = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.activity"), z = /* @__PURE__ */ Symbol.for("react.client.reference"), w = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, R = Array.isArray, A = console.createTask ? console.createTask : function() {
272
+ var p = q, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), M = /* @__PURE__ */ Symbol.for("react.strict_mode"), C = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), L = /* @__PURE__ */ Symbol.for("react.context"), _ = /* @__PURE__ */ Symbol.for("react.forward_ref"), P = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"), F = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.activity"), z = /* @__PURE__ */ Symbol.for("react.client.reference"), w = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, R = Array.isArray, A = console.createTask ? console.createTask : function() {
273
273
  return null;
274
274
  };
275
275
  p = {
@@ -1350,14 +1350,14 @@ const zu = ({ icon: t, color: n, size: e, title: r, iconClassName: i, ...o }) =>
1350
1350
  title: r,
1351
1351
  iconClassName: o || l ? "" : i,
1352
1352
  ...o || l ? {} : s
1353
- }), v = (g) => {
1354
- l && l(g);
1353
+ }), g = (v) => {
1354
+ l && l(v);
1355
1355
  }, m = /* @__PURE__ */ H.jsx(
1356
1356
  "button",
1357
1357
  {
1358
1358
  ...s,
1359
1359
  type: "button",
1360
- onClick: v,
1360
+ onClick: g,
1361
1361
  className: `juno-icon-button ${Hu} ${i}`,
1362
1362
  "aria-label": r || t || void 0,
1363
1363
  disabled: a,
@@ -1467,17 +1467,17 @@ const zu = ({ icon: t, color: n, size: e, title: r, iconClassName: i, ...o }) =>
1467
1467
  jn:text-base
1468
1468
  jn:leading-6
1469
1469
  `, Zu = `
1470
- jn:py-[0.3125rem]
1470
+ jn:py-1.25
1471
1471
  jn:px-[0.5rem]
1472
1472
  `, qu = `
1473
1473
  jn:py-[0.25rem]
1474
- jn:px-[0.4375rem]
1474
+ jn:px-1.75
1475
1475
  `, Gu = `
1476
- jn:py-[0.4375rem]
1477
- jn:px-[0.625rem]
1476
+ jn:py-1.75
1477
+ jn:px-2.5
1478
1478
  `, Qu = `
1479
- jn:py-[0.375rem]
1480
- jn:px-[0.5625rem]
1479
+ jn:py-1.5
1480
+ jn:px-2.25
1481
1481
  `, ho = `
1482
1482
  jn:bg-theme-button-default
1483
1483
  jn:text-theme-button-default
@@ -1538,80 +1538,81 @@ const zu = ({ icon: t, color: n, size: e, title: r, iconClassName: i, ...o }) =>
1538
1538
  ({
1539
1539
  label: t,
1540
1540
  title: n,
1541
- variant: e = "default",
1542
- size: r = "default",
1543
- disabled: i,
1544
- href: o,
1545
- icon: a,
1546
- className: l = "",
1547
- onClick: s,
1548
- children: u,
1549
- progress: c = !1,
1550
- progressLabel: v = "",
1551
- ...m
1552
- }, p) => {
1553
- const g = n || t || "", b = c ? /* @__PURE__ */ H.jsx(Ku, { size: r === "small" ? "1.125rem" : "1.5rem", color: `${id(e)}` }) : a ? /* @__PURE__ */ H.jsx(
1541
+ type: e = "button",
1542
+ variant: r = "default",
1543
+ size: i = "default",
1544
+ disabled: o,
1545
+ href: a,
1546
+ icon: l,
1547
+ className: s = "",
1548
+ onClick: u,
1549
+ children: c,
1550
+ progress: g = !1,
1551
+ progressLabel: m = "",
1552
+ ...p
1553
+ }, v) => {
1554
+ const b = n || t || "", x = g ? /* @__PURE__ */ H.jsx(Ku, { size: i === "small" ? "1.125rem" : "1.5rem", color: id(r) }) : l ? /* @__PURE__ */ H.jsx(
1554
1555
  Wn,
1555
1556
  {
1556
- icon: a,
1557
- title: g,
1558
- className: `juno-button-icon ${t || u ? rd(r) : ""} `,
1559
- size: r === "small" ? "1.125rem" : "1.5rem"
1557
+ icon: l,
1558
+ title: b,
1559
+ className: `juno-button-icon ${t || c ? rd(i) : ""} `,
1560
+ size: i === "small" ? "1.125rem" : "1.5rem"
1560
1561
  }
1561
- ) : null, x = c && v ? v : t || u, M = (L) => {
1562
- s && s(L);
1563
- }, C = /* @__PURE__ */ H.jsxs(
1562
+ ) : null, M = g && m ? m : t || c, C = (_) => {
1563
+ u && u(_);
1564
+ }, k = /* @__PURE__ */ H.jsxs(
1564
1565
  "button",
1565
1566
  {
1566
1567
  className: `
1567
1568
  juno-button
1568
- juno-button-${e}
1569
- juno-button-${r}-size
1569
+ juno-button-${r}
1570
+ juno-button-${i}-size
1570
1571
  ${fo}
1571
- ${r === "small" ? po : mo}
1572
- ${go(r, e)}
1573
- ${vo(e)}
1574
- ${bo(c)}
1575
- ${l}`,
1576
- disabled: i || void 0,
1577
- onClick: M,
1578
- ref: p,
1579
- ...m,
1580
- type: "button",
1581
- title: g,
1572
+ ${i === "small" ? po : mo}
1573
+ ${go(i, r)}
1574
+ ${vo(r)}
1575
+ ${bo(g)}
1576
+ ${s}`,
1577
+ disabled: o || void 0,
1578
+ onClick: C,
1579
+ ref: v,
1580
+ ...p,
1581
+ type: e,
1582
+ title: b,
1582
1583
  children: [
1583
- b,
1584
- x
1584
+ x,
1585
+ M
1585
1586
  ]
1586
1587
  }
1587
- ), k = /* @__PURE__ */ H.jsxs(
1588
+ ), L = /* @__PURE__ */ H.jsxs(
1588
1589
  "a",
1589
1590
  {
1590
- href: o || void 0,
1591
+ href: a || void 0,
1591
1592
  role: "button",
1592
1593
  className: `
1593
1594
  juno-button
1594
- juno-button-${e}
1595
- juno-button-${r}-size
1595
+ juno-button-${r}
1596
+ juno-button-${i}-size
1596
1597
  ${fo}
1597
- ${r === "small" ? po : mo}
1598
- ${go(r, e)}
1599
- ${vo(e)}
1600
- ${bo(c)}
1601
- ${l}
1598
+ ${i === "small" ? po : mo}
1599
+ ${go(i, r)}
1600
+ ${vo(r)}
1601
+ ${bo(g)}
1602
+ ${s}
1602
1603
  `,
1603
- disabled: i,
1604
- onClick: s,
1605
- ref: p,
1606
- ...m,
1607
- title: g,
1604
+ disabled: o,
1605
+ onClick: u,
1606
+ ref: v,
1607
+ ...p,
1608
+ title: b,
1608
1609
  children: [
1609
- b,
1610
- x
1610
+ x,
1611
+ M
1611
1612
  ]
1612
1613
  }
1613
1614
  );
1614
- return o ? k : C;
1615
+ return a ? L : k;
1615
1616
  }
1616
1617
  );
1617
1618
  od.displayName = "Button";
@@ -2053,8 +2054,8 @@ function Ld(t) {
2053
2054
  i
2054
2055
  ]), a = Ta(o), l = ce((s) => {
2055
2056
  let u = Le(s);
2056
- const c = yt(u), v = c ? Yt(c) : Yt();
2057
- u === s.currentTarget && u === v && (e && e(s), i && i(!0), a(s));
2057
+ const c = yt(u), g = c ? Yt(c) : Yt();
2058
+ u === s.currentTarget && u === g && (e && e(s), i && i(!0), a(s));
2058
2059
  }, [
2059
2060
  i,
2060
2061
  e,
@@ -2070,20 +2071,20 @@ function Ld(t) {
2070
2071
  function Rd(t) {
2071
2072
  let { isDisabled: n, onBlurWithin: e, onFocusWithin: r, onFocusWithinChange: i } = t, o = se({
2072
2073
  isFocusWithin: !1
2073
- }), { addGlobalListener: a, removeAllGlobalListeners: l } = Oa(), s = ce((v) => {
2074
- ht(v.currentTarget, Le(v)) && o.current.isFocusWithin && !ht(v.currentTarget, v.relatedTarget) && (o.current.isFocusWithin = !1, l(), e && e(v), i && i(!1));
2074
+ }), { addGlobalListener: a, removeAllGlobalListeners: l } = Oa(), s = ce((g) => {
2075
+ ht(g.currentTarget, Le(g)) && o.current.isFocusWithin && !ht(g.currentTarget, g.relatedTarget) && (o.current.isFocusWithin = !1, l(), e && e(g), i && i(!1));
2075
2076
  }, [
2076
2077
  e,
2077
2078
  i,
2078
2079
  o,
2079
2080
  l
2080
- ]), u = Ta(s), c = ce((v) => {
2081
- if (!ht(v.currentTarget, Le(v))) return;
2082
- let m = Le(v);
2083
- const p = yt(m), g = Yt(p);
2084
- if (!o.current.isFocusWithin && g === m) {
2085
- r && r(v), i && i(!0), o.current.isFocusWithin = !0, u(v);
2086
- let b = v.currentTarget;
2081
+ ]), u = Ta(s), c = ce((g) => {
2082
+ if (!ht(g.currentTarget, Le(g))) return;
2083
+ let m = Le(g);
2084
+ const p = yt(m), v = Yt(p);
2085
+ if (!o.current.isFocusWithin && v === m) {
2086
+ r && r(g), i && i(!0), o.current.isFocusWithin = !0, u(g);
2087
+ let b = g.currentTarget;
2087
2088
  a(p, "focus", (x) => {
2088
2089
  let M = Le(x);
2089
2090
  if (o.current.isFocusWithin && !ht(b, M)) {
@@ -2141,7 +2142,7 @@ function sr(t) {
2141
2142
  target: null
2142
2143
  }).current;
2143
2144
  ye(_d, []);
2144
- let { addGlobalListener: s, removeAllGlobalListeners: u } = Oa(), { hoverProps: c, triggerHoverEnd: v } = Me(() => {
2145
+ let { addGlobalListener: s, removeAllGlobalListeners: u } = Oa(), { hoverProps: c, triggerHoverEnd: g } = Me(() => {
2145
2146
  let m = (b, x) => {
2146
2147
  if (l.pointerType = x, i || x === "touch" || l.isHovered || !ht(b.currentTarget, Le(b))) return;
2147
2148
  l.isHovered = !0;
@@ -2162,19 +2163,19 @@ function sr(t) {
2162
2163
  target: M,
2163
2164
  pointerType: x
2164
2165
  }), e && e(!1), a(!1));
2165
- }, g = {};
2166
- return typeof PointerEvent < "u" ? (g.onPointerEnter = (b) => {
2166
+ }, v = {};
2167
+ return typeof PointerEvent < "u" ? (v.onPointerEnter = (b) => {
2167
2168
  Bn && b.pointerType === "mouse" || m(b, b.pointerType);
2168
- }, g.onPointerLeave = (b) => {
2169
+ }, v.onPointerLeave = (b) => {
2169
2170
  !i && ht(b.currentTarget, Le(b)) && p(b, b.pointerType);
2170
- }) : process.env.NODE_ENV === "test" && (g.onTouchStart = () => {
2171
+ }) : process.env.NODE_ENV === "test" && (v.onTouchStart = () => {
2171
2172
  l.ignoreEmulatedMouseEvents = !0;
2172
- }, g.onMouseEnter = (b) => {
2173
+ }, v.onMouseEnter = (b) => {
2173
2174
  !l.ignoreEmulatedMouseEvents && !Bn && m(b, "mouse"), l.ignoreEmulatedMouseEvents = !1;
2174
- }, g.onMouseLeave = (b) => {
2175
+ }, v.onMouseLeave = (b) => {
2175
2176
  !i && ht(b.currentTarget, Le(b)) && p(b, "mouse");
2176
2177
  }), {
2177
- hoverProps: g,
2178
+ hoverProps: v,
2178
2179
  triggerHoverEnd: p
2179
2180
  };
2180
2181
  }, [
@@ -2187,7 +2188,7 @@ function sr(t) {
2187
2188
  u
2188
2189
  ]);
2189
2190
  return ye(() => {
2190
- i && v({
2191
+ i && g({
2191
2192
  currentTarget: l.target
2192
2193
  }, l.pointerType);
2193
2194
  }, [
@@ -2215,7 +2216,7 @@ function cr(t = {}) {
2215
2216
  enabled: o,
2216
2217
  isTextInput: e
2217
2218
  });
2218
- let { focusProps: v } = Ld({
2219
+ let { focusProps: g } = Ld({
2219
2220
  isDisabled: r,
2220
2221
  onFocusChange: c
2221
2222
  }), { focusWithinProps: m } = Rd({
@@ -2225,7 +2226,7 @@ function cr(t = {}) {
2225
2226
  return {
2226
2227
  isFocused: o,
2227
2228
  isFocusVisible: l,
2228
- focusProps: r ? m : v
2229
+ focusProps: r ? m : g
2229
2230
  };
2230
2231
  }
2231
2232
  var Hd = Object.defineProperty, zd = (t, n, e) => n in t ? Hd(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Fr = (t, n, e) => (zd(t, typeof n != "symbol" ? n + "" : n, e), e);
@@ -2386,15 +2387,15 @@ function Ud({ ourProps: t, theirProps: n, slot: e, defaultTag: r, features: i, v
2386
2387
  if (o) return jn(s, e, r, a, l);
2387
2388
  let u = i ?? 0;
2388
2389
  if (u & 2) {
2389
- let { static: c = !1, ...v } = s;
2390
- if (c) return jn(v, e, r, a, l);
2390
+ let { static: c = !1, ...g } = s;
2391
+ if (c) return jn(g, e, r, a, l);
2391
2392
  }
2392
2393
  if (u & 1) {
2393
- let { unmount: c = !0, ...v } = s;
2394
+ let { unmount: c = !0, ...g } = s;
2394
2395
  return Te(c ? 0 : 1, { 0() {
2395
2396
  return null;
2396
2397
  }, 1() {
2397
- return jn({ ...v, hidden: !0, style: { display: "none" } }, e, r, a, l);
2398
+ return jn({ ...g, hidden: !0, style: { display: "none" } }, e, r, a, l);
2398
2399
  } });
2399
2400
  }
2400
2401
  return jn(s, e, r, a, l);
@@ -2402,26 +2403,26 @@ function Ud({ ourProps: t, theirProps: n, slot: e, defaultTag: r, features: i, v
2402
2403
  function jn(t, n = {}, e, r, i) {
2403
2404
  let { as: o = e, children: a, refName: l = "ref", ...s } = Lr(t, ["unmount", "static"]), u = t.ref !== void 0 ? { [l]: t.ref } : {}, c = typeof a == "function" ? a(n) : a;
2404
2405
  "className" in s && s.className && typeof s.className == "function" && (s.className = s.className(n)), s["aria-labelledby"] && s["aria-labelledby"] === s.id && (s["aria-labelledby"] = void 0);
2405
- let v = {};
2406
+ let g = {};
2406
2407
  if (n) {
2407
2408
  let m = !1, p = [];
2408
- for (let [g, b] of Object.entries(n)) typeof b == "boolean" && (m = !0), b === !0 && p.push(g.replace(/([A-Z])/g, (x) => `-${x.toLowerCase()}`));
2409
+ for (let [v, b] of Object.entries(n)) typeof b == "boolean" && (m = !0), b === !0 && p.push(v.replace(/([A-Z])/g, (x) => `-${x.toLowerCase()}`));
2409
2410
  if (m) {
2410
- v["data-headlessui-state"] = p.join(" ");
2411
- for (let g of p) v[`data-${g}`] = "";
2411
+ g["data-headlessui-state"] = p.join(" ");
2412
+ for (let v of p) g[`data-${v}`] = "";
2412
2413
  }
2413
2414
  }
2414
- if (Rn(o) && (Object.keys(Mt(s)).length > 0 || Object.keys(Mt(v)).length > 0)) if (!ar(c) || Array.isArray(c) && c.length > 1 || Gd(c)) {
2415
- if (Object.keys(Mt(s)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Mt(s)).concat(Object.keys(Mt(v))).map((m) => ` - ${m}`).join(`
2415
+ if (Rn(o) && (Object.keys(Mt(s)).length > 0 || Object.keys(Mt(g)).length > 0)) if (!ar(c) || Array.isArray(c) && c.length > 1 || Gd(c)) {
2416
+ if (Object.keys(Mt(s)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Mt(s)).concat(Object.keys(Mt(g))).map((m) => ` - ${m}`).join(`
2416
2417
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
2417
2418
  `)].join(`
2418
2419
  `));
2419
2420
  } else {
2420
- let m = c.props, p = m?.className, g = typeof p == "function" ? (...M) => yo(p(...M), s.className) : yo(p, s.className), b = g ? { className: g } : {}, x = Na(c.props, Mt(Lr(s, ["ref"])));
2421
- for (let M in v) M in x && delete v[M];
2422
- return pi(c, Object.assign({}, x, v, u, { ref: i(qd(c), u.ref) }, b));
2421
+ let m = c.props, p = m?.className, v = typeof p == "function" ? (...M) => yo(p(...M), s.className) : yo(p, s.className), b = v ? { className: v } : {}, x = Na(c.props, Mt(Lr(s, ["ref"])));
2422
+ for (let M in g) M in x && delete g[M];
2423
+ return pi(c, Object.assign({}, x, g, u, { ref: i(qd(c), u.ref) }, b));
2423
2424
  }
2424
- return Es(o, Object.assign({}, Lr(s, ["ref"]), !Rn(o) && u, !Rn(o) && v), c);
2425
+ return Es(o, Object.assign({}, Lr(s, ["ref"]), !Rn(o) && u, !Rn(o) && g), c);
2425
2426
  }
2426
2427
  function Kd() {
2427
2428
  let t = se([]), n = ce((e) => {
@@ -2674,8 +2675,8 @@ function hr({ inherit: t = !1 } = {}) {
2674
2675
  let n = wn(), [e, r] = we([]), i = t ? [n, ...e].filter(Boolean) : e;
2675
2676
  return [i.length > 0 ? i.join(" ") : void 0, Me(() => function(o) {
2676
2677
  let a = X((s) => (r((u) => [...u, s]), () => r((u) => {
2677
- let c = u.slice(), v = c.indexOf(s);
2678
- return v !== -1 && c.splice(v, 1), c;
2678
+ let c = u.slice(), g = c.indexOf(s);
2679
+ return g !== -1 && c.splice(g, 1), c;
2679
2680
  }))), l = Me(() => ({ register: a, slot: o.slot, name: o.name, props: o.props, value: o.value }), [a, o.slot, o.name, o.props, o.value]);
2680
2681
  return q.createElement(mr.Provider, { value: l }, o.children);
2681
2682
  }, [r])];
@@ -2683,7 +2684,7 @@ function hr({ inherit: t = !1 } = {}) {
2683
2684
  let gf = "label";
2684
2685
  function vf(t, n) {
2685
2686
  var e;
2686
- let r = je(), i = Si(), o = Ei(), a = dr(), { id: l = `headlessui-label-${r}`, htmlFor: s = o ?? ((e = i.props) == null ? void 0 : e.htmlFor), passive: u = !1, ...c } = t, v = ke(n);
2687
+ let r = je(), i = Si(), o = Ei(), a = dr(), { id: l = `headlessui-label-${r}`, htmlFor: s = o ?? ((e = i.props) == null ? void 0 : e.htmlFor), passive: u = !1, ...c } = t, g = ke(n);
2687
2688
  ve(() => i.register(l), [l, i.register]);
2688
2689
  let m = X((b) => {
2689
2690
  let x = b.currentTarget;
@@ -2697,8 +2698,8 @@ function vf(t, n) {
2697
2698
  (Un(M) && (M.type === "file" || M.type === "radio" || M.type === "checkbox") || M.role === "radio" || M.role === "checkbox" || M.role === "switch") && M.click(), M.focus({ preventScroll: !0 });
2698
2699
  }
2699
2700
  }
2700
- }), p = Ie({ ...i.slot, disabled: a || !1 }), g = { ref: v, ...i.props, id: l, htmlFor: s, onClick: m };
2701
- return u && ("onClick" in g && (delete g.htmlFor, delete g.onClick), "onClick" in c && delete c.onClick), Ee()({ ourProps: g, theirProps: c, slot: p, defaultTag: s ? gf : "div", name: i.name || "Label" });
2701
+ }), p = Ie({ ...i.slot, disabled: a || !1 }), v = { ref: g, ...i.props, id: l, htmlFor: s, onClick: m };
2702
+ return u && ("onClick" in v && (delete v.htmlFor, delete v.onClick), "onClick" in c && delete c.onClick), Ee()({ ourProps: v, theirProps: c, slot: p, defaultTag: s ? gf : "div", name: i.name || "Label" });
2702
2703
  }
2703
2704
  let bf = Se(vf), Ka = Object.assign(bf, {});
2704
2705
  function zt(t, n, e) {
@@ -2707,19 +2708,19 @@ function zt(t, n, e) {
2707
2708
  var l, s, u;
2708
2709
  let c;
2709
2710
  e.key && (l = e.debug) != null && l.call(e) && (c = Date.now());
2710
- const v = t();
2711
- if (!(v.length !== r.length || v.some((p, g) => r[g] !== p)))
2711
+ const g = t();
2712
+ if (!(g.length !== r.length || g.some((p, v) => r[v] !== p)))
2712
2713
  return i;
2713
- r = v;
2714
+ r = g;
2714
2715
  let m;
2715
- if (e.key && (s = e.debug) != null && s.call(e) && (m = Date.now()), i = n(...v), e.key && (u = e.debug) != null && u.call(e)) {
2716
- const p = Math.round((Date.now() - c) * 100) / 100, g = Math.round((Date.now() - m) * 100) / 100, b = g / 16, x = (M, C) => {
2716
+ if (e.key && (s = e.debug) != null && s.call(e) && (m = Date.now()), i = n(...g), e.key && (u = e.debug) != null && u.call(e)) {
2717
+ const p = Math.round((Date.now() - c) * 100) / 100, v = Math.round((Date.now() - m) * 100) / 100, b = v / 16, x = (M, C) => {
2717
2718
  for (M = String(M); M.length < C; )
2718
2719
  M = " " + M;
2719
2720
  return M;
2720
2721
  };
2721
2722
  console.info(
2722
- `%c⏱ ${x(g, 5)} /${x(p, 5)} ms`,
2723
+ `%c⏱ ${x(v, 5)} /${x(p, 5)} ms`,
2723
2724
  `
2724
2725
  font-size: .6rem;
2725
2726
  font-weight: bold;
@@ -2803,8 +2804,8 @@ const wf = (t, n) => Math.abs(t - n) < 1.01, yf = (t, n, e) => {
2803
2804
  },
2804
2805
  t.options.isScrollingResetDelay
2805
2806
  ), a = (c) => () => {
2806
- const { horizontal: v, isRtl: m } = t.options;
2807
- i = v ? e.scrollLeft * (m && -1 || 1) : e.scrollTop, o(), n(i, c);
2807
+ const { horizontal: g, isRtl: m } = t.options;
2808
+ i = g ? e.scrollLeft * (m && -1 || 1) : e.scrollTop, o(), n(i, c);
2808
2809
  }, l = a(!0), s = a(!1);
2809
2810
  e.addEventListener("scroll", l, Co);
2810
2811
  const u = t.options.useScrollendEvent && Oo;
@@ -2992,19 +2993,19 @@ class Df {
2992
2993
  }));
2993
2994
  const u = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
2994
2995
  this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === e && (this.lanesSettling = !1);
2995
- const c = this.measurementsCache.slice(0, u), v = new Array(l).fill(
2996
+ const c = this.measurementsCache.slice(0, u), g = new Array(l).fill(
2996
2997
  void 0
2997
2998
  );
2998
2999
  for (let m = 0; m < u; m++) {
2999
3000
  const p = c[m];
3000
- p && (v[p.lane] = m);
3001
+ p && (g[p.lane] = m);
3001
3002
  }
3002
3003
  for (let m = u; m < e; m++) {
3003
- const p = o(m), g = this.laneAssignments.get(m);
3004
+ const p = o(m), v = this.laneAssignments.get(m);
3004
3005
  let b, x;
3005
- if (g !== void 0 && this.options.lanes > 1) {
3006
- b = g;
3007
- const L = v[b], _ = L !== void 0 ? c[L] : void 0;
3006
+ if (v !== void 0 && this.options.lanes > 1) {
3007
+ b = v;
3008
+ const L = g[b], _ = L !== void 0 ? c[L] : void 0;
3008
3009
  x = _ ? _.end + this.options.gap : r + i;
3009
3010
  } else {
3010
3011
  const L = this.options.lanes === 1 ? c[m - 1] : this.getFurthestMeasurement(c, m);
@@ -3018,7 +3019,7 @@ class Df {
3018
3019
  end: k,
3019
3020
  key: p,
3020
3021
  lane: b
3021
- }, v[b] = m;
3022
+ }, g[b] = m;
3022
3023
  }
3023
3024
  return this.measurementsCache = c, c;
3024
3025
  },
@@ -3479,25 +3480,25 @@ function Hf() {
3479
3480
  return s === u && (s !== 0 || 1 / s === 1 / u) || s !== s && u !== u;
3480
3481
  }
3481
3482
  var e = typeof Object.is == "function" ? Object.is : n, r = t.useSyncExternalStore, i = t.useRef, o = t.useEffect, a = t.useMemo, l = t.useDebugValue;
3482
- return zr.useSyncExternalStoreWithSelector = function(s, u, c, v, m) {
3483
+ return zr.useSyncExternalStoreWithSelector = function(s, u, c, g, m) {
3483
3484
  var p = i(null);
3484
3485
  if (p.current === null) {
3485
- var g = { hasValue: !1, value: null };
3486
- p.current = g;
3487
- } else g = p.current;
3486
+ var v = { hasValue: !1, value: null };
3487
+ p.current = v;
3488
+ } else v = p.current;
3488
3489
  p = a(
3489
3490
  function() {
3490
3491
  function x(_) {
3491
3492
  if (!M) {
3492
- if (M = !0, C = _, _ = v(_), m !== void 0 && g.hasValue) {
3493
- var P = g.value;
3493
+ if (M = !0, C = _, _ = g(_), m !== void 0 && v.hasValue) {
3494
+ var P = v.value;
3494
3495
  if (m(P, _))
3495
3496
  return k = P;
3496
3497
  }
3497
3498
  return k = _;
3498
3499
  }
3499
3500
  if (P = k, e(C, _)) return P;
3500
- var N = v(_);
3501
+ var N = g(_);
3501
3502
  return m !== void 0 && m(P, N) ? (C = _, P) : (C = _, k = N);
3502
3503
  }
3503
3504
  var M = !1, C, k, L = c === void 0 ? null : c;
@@ -3510,12 +3511,12 @@ function Hf() {
3510
3511
  }
3511
3512
  ];
3512
3513
  },
3513
- [u, c, v, m]
3514
+ [u, c, g, m]
3514
3515
  );
3515
3516
  var b = r(s, p[0], p[1]);
3516
3517
  return o(
3517
3518
  function() {
3518
- g.hasValue = !0, g.value = b;
3519
+ v.hasValue = !0, v.value = b;
3519
3520
  },
3520
3521
  [b]
3521
3522
  ), l(b), b;
@@ -3529,18 +3530,18 @@ function zf() {
3529
3530
  }
3530
3531
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3531
3532
  var n = q, e = typeof Object.is == "function" ? Object.is : t, r = n.useSyncExternalStore, i = n.useRef, o = n.useEffect, a = n.useMemo, l = n.useDebugValue;
3532
- Po.useSyncExternalStoreWithSelector = function(s, u, c, v, m) {
3533
+ Po.useSyncExternalStoreWithSelector = function(s, u, c, g, m) {
3533
3534
  var p = i(null);
3534
3535
  if (p.current === null) {
3535
- var g = { hasValue: !1, value: null };
3536
- p.current = g;
3537
- } else g = p.current;
3536
+ var v = { hasValue: !1, value: null };
3537
+ p.current = v;
3538
+ } else v = p.current;
3538
3539
  p = a(
3539
3540
  function() {
3540
3541
  function x(_) {
3541
3542
  if (!M) {
3542
- if (M = !0, C = _, _ = v(_), m !== void 0 && g.hasValue) {
3543
- var P = g.value;
3543
+ if (M = !0, C = _, _ = g(_), m !== void 0 && v.hasValue) {
3544
+ var P = v.value;
3544
3545
  if (m(P, _))
3545
3546
  return k = P;
3546
3547
  }
@@ -3548,7 +3549,7 @@ function zf() {
3548
3549
  }
3549
3550
  if (P = k, e(C, _))
3550
3551
  return P;
3551
- var N = v(_);
3552
+ var N = g(_);
3552
3553
  return m !== void 0 && m(P, N) ? (C = _, P) : (C = _, k = N);
3553
3554
  }
3554
3555
  var M = !1, C, k, L = c === void 0 ? null : c;
@@ -3561,12 +3562,12 @@ function zf() {
3561
3562
  }
3562
3563
  ];
3563
3564
  },
3564
- [u, c, v, m]
3565
+ [u, c, g, m]
3565
3566
  );
3566
3567
  var b = r(s, p[0], p[1]);
3567
3568
  return o(
3568
3569
  function() {
3569
- g.hasValue = !0, g.value = b;
3570
+ v.hasValue = !0, v.value = b;
3570
3571
  },
3571
3572
  [b]
3572
3573
  ), l(b), b;
@@ -3617,7 +3618,7 @@ function Oi(t, { allowed: n, disallowed: e } = {}) {
3617
3618
  if (!u) continue;
3618
3619
  let c = s.parentElement;
3619
3620
  for (; c && c !== u.body; ) {
3620
- for (let v of c.children) l.some((m) => v.contains(m)) || a.add(Lo(v));
3621
+ for (let g of c.children) l.some((m) => g.contains(m)) || a.add(Lo(g));
3621
3622
  c = c.parentElement;
3622
3623
  }
3623
3624
  }
@@ -3700,7 +3701,7 @@ function rl(t, n, e = t === null ? document.body : Yn(t)) {
3700
3701
  }
3701
3702
  function Xf(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: i = [] } = {}) {
3702
3703
  let o = Array.isArray(t) ? t.length > 0 ? Yn(t[0]) : document : Yn(t), a = Array.isArray(t) ? e ? yr(t) : t : n & 64 ? Kf(t) : tl(t);
3703
- i.length > 0 && a.length > 1 && (a = a.filter((p) => !i.some((g) => g != null && "current" in g ? g?.current === p : g === p))), r = r ?? o?.activeElement;
3704
+ i.length > 0 && a.length > 1 && (a = a.filter((p) => !i.some((v) => v != null && "current" in v ? v?.current === p : v === p))), r = r ?? o?.activeElement;
3704
3705
  let l = (() => {
3705
3706
  if (n & 5) return 1;
3706
3707
  if (n & 10) return -1;
@@ -3711,14 +3712,14 @@ function Xf(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: i = [] }
3711
3712
  if (n & 4) return Math.max(0, a.indexOf(r)) + 1;
3712
3713
  if (n & 8) return a.length - 1;
3713
3714
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
3714
- })(), u = n & 32 ? { preventScroll: !0 } : {}, c = 0, v = a.length, m;
3715
+ })(), u = n & 32 ? { preventScroll: !0 } : {}, c = 0, g = a.length, m;
3715
3716
  do {
3716
- if (c >= v || c + v <= 0) return 0;
3717
+ if (c >= g || c + g <= 0) return 0;
3717
3718
  let p = s + c;
3718
- if (n & 16) p = (p + v) % v;
3719
+ if (n & 16) p = (p + g) % g;
3719
3720
  else {
3720
3721
  if (p < 0) return 3;
3721
- if (p >= v) return 1;
3722
+ if (p >= g) return 1;
3722
3723
  }
3723
3724
  m = a[p], m?.focus(u), c += l;
3724
3725
  } while (m !== wi(m));
@@ -3759,10 +3760,10 @@ function Ti(t, n, e) {
3759
3760
  if (l.defaultPrevented) return;
3760
3761
  let u = s(l);
3761
3762
  if (u === null || !u.getRootNode().contains(u) || !u.isConnected) return;
3762
- let c = (function v(m) {
3763
- return typeof m == "function" ? v(m()) : Array.isArray(m) || m instanceof Set ? m : [m];
3763
+ let c = (function g(m) {
3764
+ return typeof m == "function" ? g(m()) : Array.isArray(m) || m instanceof Set ? m : [m];
3764
3765
  })(n);
3765
- for (let v of c) if (v !== null && (v.contains(u) || l.composed && l.composedPath().includes(v))) return;
3766
+ for (let g of c) if (g !== null && (g.contains(u) || l.composed && l.composedPath().includes(g))) return;
3766
3767
  return !wr(u, br.Loose) && u.tabIndex !== -1 && l.preventDefault(), r.current(l, u);
3767
3768
  }, [r, n]), o = se(null);
3768
3769
  Vt(t, "pointerdown", (l) => {
@@ -3792,14 +3793,14 @@ function ki(t, { trigger: n, action: e, close: r, select: i }) {
3792
3793
  Wa(s?.target) && n != null && n.contains(s.target) && (a.current = s.x, l.current = s.y, o.current = s.timeStamp);
3793
3794
  }), Vt(t && n !== null, "pointerup", (s) => {
3794
3795
  var u, c;
3795
- let v = o.current;
3796
- if (v === null || (o.current = null, !gt(s.target)) || Math.abs(s.x - ((u = a.current) != null ? u : s.x)) < Ho && Math.abs(s.y - ((c = l.current) != null ? c : s.y)) < Ho) return;
3796
+ let g = o.current;
3797
+ if (g === null || (o.current = null, !gt(s.target)) || Math.abs(s.x - ((u = a.current) != null ? u : s.x)) < Ho && Math.abs(s.y - ((c = l.current) != null ? c : s.y)) < Ho) return;
3797
3798
  let m = e(s);
3798
3799
  switch (m.kind) {
3799
3800
  case 0:
3800
3801
  return;
3801
3802
  case 1: {
3802
- s.timeStamp - v > np && (i(m.target), r());
3803
+ s.timeStamp - g > np && (i(m.target), r());
3803
3804
  break;
3804
3805
  }
3805
3806
  case 2: {
@@ -3990,7 +3991,7 @@ function Pi(t) {
3990
3991
  return n;
3991
3992
  }
3992
3993
  function Ni(t, n, e, r) {
3993
- let [i, o] = we(e), { hasFlag: a, addFlag: l, removeFlag: s } = up(t && i ? 3 : 0), u = se(!1), c = se(!1), v = xt();
3994
+ let [i, o] = we(e), { hasFlag: a, addFlag: l, removeFlag: s } = up(t && i ? 3 : 0), u = se(!1), c = se(!1), g = xt();
3994
3995
  return ve(() => {
3995
3996
  var m;
3996
3997
  if (t) {
@@ -4007,7 +4008,7 @@ function Ni(t, n, e, r) {
4007
4008
  c.current && hp(n) || (u.current = !1, s(7), e || o(!1), (p = void 0) == null || p.call(r, e));
4008
4009
  } });
4009
4010
  }
4010
- }, [t, e, n, v]), t ? [i, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [e, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
4011
+ }, [t, e, n, g]), t ? [i, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [e, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
4011
4012
  }
4012
4013
  function fp(t, { prepare: n, run: e, done: r, inFlight: i }) {
4013
4014
  let o = _e();
@@ -4050,7 +4051,7 @@ function al(t, { container: n, accept: e, walk: r }) {
4050
4051
  if (!n || !t) return;
4051
4052
  let a = bn(n);
4052
4053
  if (!a) return;
4053
- let l = i.current, s = o.current, u = Object.assign((v) => l(v), { acceptNode: l }), c = a.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, u, !1);
4054
+ let l = i.current, s = o.current, u = Object.assign((g) => l(g), { acceptNode: l }), c = a.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, u, !1);
4054
4055
  for (; c.nextNode(); ) s(c.currentNode);
4055
4056
  }, [n, t, i, o]);
4056
4057
  }
@@ -4327,8 +4328,8 @@ var fl = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
4327
4328
  var u = Ft.call(o, Qn);
4328
4329
  u && e.filter(o) && (n || !t.includes(o)) && r.push(o);
4329
4330
  var c = o.shadowRoot || // check for an undisclosed shadow
4330
- typeof e.getShadowRoot == "function" && e.getShadowRoot(o), v = !Jn(c, !1) && (!e.shadowRootFilter || e.shadowRootFilter(o));
4331
- if (c && v) {
4331
+ typeof e.getShadowRoot == "function" && e.getShadowRoot(o), g = !Jn(c, !1) && (!e.shadowRootFilter || e.shadowRootFilter(o));
4332
+ if (c && g) {
4332
4333
  var m = er(c === !0 ? o.children : c.children, !0, e);
4333
4334
  e.flatten ? r.push.apply(r, m) : r.push({
4334
4335
  scopeParent: o,
@@ -4513,7 +4514,7 @@ function Go(t, n, e) {
4513
4514
  reference: r,
4514
4515
  floating: i
4515
4516
  } = t;
4516
- const o = ut(n), a = dl(n), l = ul(a), s = wt(n), u = o === "y", c = r.x + r.width / 2 - i.width / 2, v = r.y + r.height / 2 - i.height / 2, m = r[l] / 2 - i[l] / 2;
4517
+ const o = ut(n), a = dl(n), l = ul(a), s = wt(n), u = o === "y", c = r.x + r.width / 2 - i.width / 2, g = r.y + r.height / 2 - i.height / 2, m = r[l] / 2 - i[l] / 2;
4517
4518
  let p;
4518
4519
  switch (s) {
4519
4520
  case "top":
@@ -4531,13 +4532,13 @@ function Go(t, n, e) {
4531
4532
  case "right":
4532
4533
  p = {
4533
4534
  x: r.x + r.width,
4534
- y: v
4535
+ y: g
4535
4536
  };
4536
4537
  break;
4537
4538
  case "left":
4538
4539
  p = {
4539
4540
  x: r.x - i.width,
4540
- y: v
4541
+ y: g
4541
4542
  };
4542
4543
  break;
4543
4544
  default:
@@ -4569,15 +4570,15 @@ async function yl(t, n) {
4569
4570
  } = t, {
4570
4571
  boundary: u = "clippingAncestors",
4571
4572
  rootBoundary: c = "viewport",
4572
- elementContext: v = "floating",
4573
+ elementContext: g = "floating",
4573
4574
  altBoundary: m = !1,
4574
4575
  padding: p = 0
4575
- } = Zt(n, t), g = kp(p), b = l[m ? v === "floating" ? "reference" : "floating" : v], x = Gn(await o.getClippingRect({
4576
+ } = Zt(n, t), v = kp(p), b = l[m ? g === "floating" ? "reference" : "floating" : g], x = Gn(await o.getClippingRect({
4576
4577
  element: (e = await (o.isElement == null ? void 0 : o.isElement(b))) == null || e ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
4577
4578
  boundary: u,
4578
4579
  rootBoundary: c,
4579
4580
  strategy: s
4580
- })), M = v === "floating" ? {
4581
+ })), M = g === "floating" ? {
4581
4582
  x: r,
4582
4583
  y: i,
4583
4584
  width: a.floating.width,
@@ -4595,10 +4596,10 @@ async function yl(t, n) {
4595
4596
  strategy: s
4596
4597
  }) : M);
4597
4598
  return {
4598
- top: (x.top - L.top + g.top) / k.y,
4599
- bottom: (L.bottom - x.bottom + g.bottom) / k.y,
4600
- left: (x.left - L.left + g.left) / k.x,
4601
- right: (L.right - x.right + g.right) / k.x
4599
+ top: (x.top - L.top + v.top) / k.y,
4600
+ bottom: (L.bottom - x.bottom + v.bottom) / k.y,
4601
+ left: (x.left - L.left + v.left) / k.x,
4602
+ right: (L.right - x.right + v.right) / k.x
4602
4603
  };
4603
4604
  }
4604
4605
  const Yp = 50, Up = async (t, n, e) => {
@@ -4617,9 +4618,9 @@ const Yp = 50, Up = async (t, n, e) => {
4617
4618
  strategy: i
4618
4619
  }), {
4619
4620
  x: c,
4620
- y: v
4621
+ y: g
4621
4622
  } = Go(u, r, s), m = r, p = 0;
4622
- const g = {};
4623
+ const v = {};
4623
4624
  for (let b = 0; b < o.length; b++) {
4624
4625
  const x = o[b];
4625
4626
  if (!x)
@@ -4634,11 +4635,11 @@ const Yp = 50, Up = async (t, n, e) => {
4634
4635
  reset: P
4635
4636
  } = await C({
4636
4637
  x: c,
4637
- y: v,
4638
+ y: g,
4638
4639
  initialPlacement: r,
4639
4640
  placement: m,
4640
4641
  strategy: i,
4641
- middlewareData: g,
4642
+ middlewareData: v,
4642
4643
  rects: u,
4643
4644
  platform: l,
4644
4645
  elements: {
@@ -4646,8 +4647,8 @@ const Yp = 50, Up = async (t, n, e) => {
4646
4647
  floating: n
4647
4648
  }
4648
4649
  });
4649
- c = k ?? c, v = L ?? v, g[M] = {
4650
- ...g[M],
4650
+ c = k ?? c, g = L ?? g, v[M] = {
4651
+ ...v[M],
4651
4652
  ..._
4652
4653
  }, P && p < Yp && (p++, typeof P == "object" && (P.placement && (m = P.placement), P.rects && (u = P.rects === !0 ? await a.getElementRects({
4653
4654
  reference: t,
@@ -4655,15 +4656,15 @@ const Yp = 50, Up = async (t, n, e) => {
4655
4656
  strategy: i
4656
4657
  }) : P.rects), {
4657
4658
  x: c,
4658
- y: v
4659
+ y: g
4659
4660
  } = Go(u, m, s)), b = -1);
4660
4661
  }
4661
4662
  return {
4662
4663
  x: c,
4663
- y: v,
4664
+ y: g,
4664
4665
  placement: m,
4665
4666
  strategy: i,
4666
- middlewareData: g
4667
+ middlewareData: v
4667
4668
  };
4668
4669
  }, Kp = function(t) {
4669
4670
  return t === void 0 && (t = {}), {
@@ -4680,20 +4681,20 @@ const Yp = 50, Up = async (t, n, e) => {
4680
4681
  elements: u
4681
4682
  } = n, {
4682
4683
  mainAxis: c = !0,
4683
- crossAxis: v = !0,
4684
+ crossAxis: g = !0,
4684
4685
  fallbackPlacements: m,
4685
4686
  fallbackStrategy: p = "bestFit",
4686
- fallbackAxisSideDirection: g = "none",
4687
+ fallbackAxisSideDirection: v = "none",
4687
4688
  flipAlignment: b = !0,
4688
4689
  ...x
4689
4690
  } = Zt(t, n);
4690
4691
  if ((e = o.arrow) != null && e.alignmentOffset)
4691
4692
  return {};
4692
- const M = wt(i), C = ut(l), k = wt(l) === l, L = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), _ = m || (k || !b ? [qn(l)] : Sp(l)), P = g !== "none";
4693
- !m && P && _.push(...Dp(l, b, g, L));
4693
+ const M = wt(i), C = ut(l), k = wt(l) === l, L = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), _ = m || (k || !b ? [qn(l)] : Sp(l)), P = v !== "none";
4694
+ !m && P && _.push(...Dp(l, b, v, L));
4694
4695
  const N = [l, ..._], I = await s.detectOverflow(n, x), F = [];
4695
4696
  let S = ((r = o.flip) == null ? void 0 : r.overflows) || [];
4696
- if (c && F.push(I[M]), v) {
4697
+ if (c && F.push(I[M]), g) {
4697
4698
  const R = Ep(i, a, L);
4698
4699
  F.push(I[R[0]], I[R[1]]);
4699
4700
  }
@@ -4703,7 +4704,7 @@ const Yp = 50, Up = async (t, n, e) => {
4703
4704
  }], !F.every((R) => R <= 0)) {
4704
4705
  var z, w;
4705
4706
  const R = (((z = o.flip) == null ? void 0 : z.index) || 0) + 1, A = N[R];
4706
- if (A && (!(v === "alignment" && C !== ut(A)) || // We leave the current main axis only if every placement on that axis
4707
+ if (A && (!(g === "alignment" && C !== ut(A)) || // We leave the current main axis only if every placement on that axis
4707
4708
  // overflows the main axis.
4708
4709
  S.every((Z) => ut(Z.placement) === C ? Z.overflows[0] > 0 : !0)))
4709
4710
  return {
@@ -4752,21 +4753,21 @@ async function qp(t, n) {
4752
4753
  placement: e,
4753
4754
  platform: r,
4754
4755
  elements: i
4755
- } = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), a = wt(e), l = xn(e), s = ut(e) === "y", u = Zp.has(a) ? -1 : 1, c = o && s ? -1 : 1, v = Zt(n, t);
4756
+ } = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), a = wt(e), l = xn(e), s = ut(e) === "y", u = Zp.has(a) ? -1 : 1, c = o && s ? -1 : 1, g = Zt(n, t);
4756
4757
  let {
4757
4758
  mainAxis: m,
4758
4759
  crossAxis: p,
4759
- alignmentAxis: g
4760
- } = typeof v == "number" ? {
4761
- mainAxis: v,
4760
+ alignmentAxis: v
4761
+ } = typeof g == "number" ? {
4762
+ mainAxis: g,
4762
4763
  crossAxis: 0,
4763
4764
  alignmentAxis: null
4764
4765
  } : {
4765
- mainAxis: v.mainAxis || 0,
4766
- crossAxis: v.crossAxis || 0,
4767
- alignmentAxis: v.alignmentAxis
4766
+ mainAxis: g.mainAxis || 0,
4767
+ crossAxis: g.crossAxis || 0,
4768
+ alignmentAxis: g.alignmentAxis
4768
4769
  };
4769
- return l && typeof g == "number" && (p = l === "end" ? g * -1 : g), s ? {
4770
+ return l && typeof v == "number" && (p = l === "end" ? v * -1 : v), s ? {
4770
4771
  x: p * c,
4771
4772
  y: m * u
4772
4773
  } : {
@@ -4825,19 +4826,19 @@ const Gp = function(t) {
4825
4826
  } = Zt(t, n), c = {
4826
4827
  x: e,
4827
4828
  y: r
4828
- }, v = await o.detectOverflow(n, u), m = ut(wt(i)), p = cl(m);
4829
- let g = c[p], b = c[m];
4829
+ }, g = await o.detectOverflow(n, u), m = ut(wt(i)), p = cl(m);
4830
+ let v = c[p], b = c[m];
4830
4831
  if (a) {
4831
- const M = p === "y" ? "top" : "left", C = p === "y" ? "bottom" : "right", k = g + v[M], L = g - v[C];
4832
- g = Uo(k, g, L);
4832
+ const M = p === "y" ? "top" : "left", C = p === "y" ? "bottom" : "right", k = v + g[M], L = v - g[C];
4833
+ v = Uo(k, v, L);
4833
4834
  }
4834
4835
  if (l) {
4835
- const M = m === "y" ? "top" : "left", C = m === "y" ? "bottom" : "right", k = b + v[M], L = b - v[C];
4836
+ const M = m === "y" ? "top" : "left", C = m === "y" ? "bottom" : "right", k = b + g[M], L = b - g[C];
4836
4837
  b = Uo(k, b, L);
4837
4838
  }
4838
4839
  const x = s.fn({
4839
4840
  ...n,
4840
- [p]: g,
4841
+ [p]: v,
4841
4842
  [m]: b
4842
4843
  });
4843
4844
  return {
@@ -4868,17 +4869,17 @@ const Gp = function(t) {
4868
4869
  apply: s = () => {
4869
4870
  },
4870
4871
  ...u
4871
- } = Zt(t, n), c = await a.detectOverflow(n, u), v = wt(i), m = xn(i), p = ut(i) === "y", {
4872
- width: g,
4872
+ } = Zt(t, n), c = await a.detectOverflow(n, u), g = wt(i), m = xn(i), p = ut(i) === "y", {
4873
+ width: v,
4873
4874
  height: b
4874
4875
  } = o.floating;
4875
4876
  let x, M;
4876
- v === "top" || v === "bottom" ? (x = v, M = m === (await (a.isRTL == null ? void 0 : a.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (M = v, x = m === "end" ? "top" : "bottom");
4877
- const C = b - c.top - c.bottom, k = g - c.left - c.right, L = Nt(b - c[x], C), _ = Nt(g - c[M], k), P = !n.middlewareData.shift;
4877
+ g === "top" || g === "bottom" ? (x = g, M = m === (await (a.isRTL == null ? void 0 : a.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (M = g, x = m === "end" ? "top" : "bottom");
4878
+ const C = b - c.top - c.bottom, k = v - c.left - c.right, L = Nt(b - c[x], C), _ = Nt(v - c[M], k), P = !n.middlewareData.shift;
4878
4879
  let N = L, I = _;
4879
4880
  if ((e = n.middlewareData.shift) != null && e.enabled.x && (I = k), (r = n.middlewareData.shift) != null && r.enabled.y && (N = C), P && !m) {
4880
4881
  const S = Ne(c.left, 0), z = Ne(c.right, 0), w = Ne(c.top, 0), E = Ne(c.bottom, 0);
4881
- p ? I = g - 2 * (S !== 0 || z !== 0 ? S + z : Ne(c.left, c.right)) : N = b - 2 * (w !== 0 || E !== 0 ? w + E : Ne(c.top, c.bottom));
4882
+ p ? I = v - 2 * (S !== 0 || z !== 0 ? S + z : Ne(c.left, c.right)) : N = b - 2 * (w !== 0 || E !== 0 ? w + E : Ne(c.top, c.bottom));
4882
4883
  }
4883
4884
  await s({
4884
4885
  ...n,
@@ -4886,7 +4887,7 @@ const Gp = function(t) {
4886
4887
  availableHeight: N
4887
4888
  });
4888
4889
  const F = await a.getDimensions(l.floating);
4889
- return g !== F.width || b !== F.height ? {
4890
+ return v !== F.width || b !== F.height ? {
4890
4891
  reset: {
4891
4892
  rects: !0
4892
4893
  }
@@ -4939,18 +4940,18 @@ function Lt(t, n, e, r) {
4939
4940
  let a = ot(1);
4940
4941
  n && (r ? Re(r) && (a = Wt(r)) : a = Wt(t));
4941
4942
  const l = em(o, e, r) ? El(o) : ot(0);
4942
- let s = (i.left + l.x) / a.x, u = (i.top + l.y) / a.y, c = i.width / a.x, v = i.height / a.y;
4943
+ let s = (i.left + l.x) / a.x, u = (i.top + l.y) / a.y, c = i.width / a.x, g = i.height / a.y;
4943
4944
  if (o) {
4944
4945
  const m = Ke(o), p = r && Re(r) ? Ke(r) : r;
4945
- let g = m, b = ai(g);
4946
- for (; b && r && p !== g; ) {
4946
+ let v = m, b = ai(v);
4947
+ for (; b && r && p !== v; ) {
4947
4948
  const x = Wt(b), M = b.getBoundingClientRect(), C = et(b), k = M.left + (b.clientLeft + parseFloat(C.paddingLeft)) * x.x, L = M.top + (b.clientTop + parseFloat(C.paddingTop)) * x.y;
4948
- s *= x.x, u *= x.y, c *= x.x, v *= x.y, s += k, u += L, g = Ke(b), b = ai(g);
4949
+ s *= x.x, u *= x.y, c *= x.x, g *= x.y, s += k, u += L, v = Ke(b), b = ai(v);
4949
4950
  }
4950
4951
  }
4951
4952
  return Gn({
4952
4953
  width: c,
4953
- height: v,
4954
+ height: g,
4954
4955
  x: s,
4955
4956
  y: u
4956
4957
  });
@@ -4980,12 +4981,12 @@ function tm(t) {
4980
4981
  scrollLeft: 0,
4981
4982
  scrollTop: 0
4982
4983
  }, u = ot(1);
4983
- const c = ot(0), v = pt(r);
4984
- if ((v || !v && !o) && ((Kt(r) !== "body" || yn(a)) && (s = Sr(r)), v)) {
4984
+ const c = ot(0), g = pt(r);
4985
+ if ((g || !g && !o) && ((Kt(r) !== "body" || yn(a)) && (s = Sr(r)), g)) {
4985
4986
  const p = Lt(r);
4986
4987
  u = Wt(r), c.x = p.x + r.clientLeft, c.y = p.y + r.clientTop;
4987
4988
  }
4988
- const m = a && !v && !o ? Sl(a, s) : ot(0);
4989
+ const m = a && !g && !o ? Sl(a, s) : ot(0);
4989
4990
  return {
4990
4991
  width: e.width * u.x,
4991
4992
  height: e.height * u.y,
@@ -5018,8 +5019,8 @@ function im(t, n) {
5018
5019
  }
5019
5020
  const u = Mr(r);
5020
5021
  if (u <= 0) {
5021
- const c = r.ownerDocument, v = c.body, m = getComputedStyle(v), p = c.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(r.clientWidth - v.clientWidth - p);
5022
- g <= Qo && (o -= g);
5022
+ const c = r.ownerDocument, g = c.body, m = getComputedStyle(g), p = c.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, v = Math.abs(r.clientWidth - g.clientWidth - p);
5023
+ v <= Qo && (o -= v);
5023
5024
  } else u <= Qo && (o += u);
5024
5025
  return {
5025
5026
  width: o,
@@ -5082,8 +5083,8 @@ function lm(t) {
5082
5083
  } = t;
5083
5084
  const o = [...e === "clippingAncestors" ? Er(n) ? [] : am(n, this._c) : [].concat(e), r], a = Xo(n, o[0], i);
5084
5085
  let l = a.top, s = a.right, u = a.bottom, c = a.left;
5085
- for (let v = 1; v < o.length; v++) {
5086
- const m = Xo(n, o[v], i);
5086
+ for (let g = 1; g < o.length; g++) {
5087
+ const m = Xo(n, o[g], i);
5087
5088
  l = Ne(m.top, l), s = Nt(m.right, s), u = Nt(m.bottom, u), c = Ne(m.left, c);
5088
5089
  }
5089
5090
  return {
@@ -5119,9 +5120,9 @@ function cm(t, n, e) {
5119
5120
  s.x = p.x + n.clientLeft, s.y = p.y + n.clientTop;
5120
5121
  } else i && u();
5121
5122
  o && !r && i && u();
5122
- const c = i && !r && !o ? Sl(i, l) : ot(0), v = a.left + l.scrollLeft - s.x - c.x, m = a.top + l.scrollTop - s.y - c.y;
5123
+ const c = i && !r && !o ? Sl(i, l) : ot(0), g = a.left + l.scrollLeft - s.x - c.x, m = a.top + l.scrollTop - s.y - c.y;
5123
5124
  return {
5124
- x: v,
5125
+ x: g,
5125
5126
  y: m,
5126
5127
  width: a.width,
5127
5128
  height: a.height
@@ -5197,14 +5198,14 @@ function pm(t, n) {
5197
5198
  l === void 0 && (l = !1), s === void 0 && (s = 1), o();
5198
5199
  const u = t.getBoundingClientRect(), {
5199
5200
  left: c,
5200
- top: v,
5201
+ top: g,
5201
5202
  width: m,
5202
5203
  height: p
5203
5204
  } = u;
5204
5205
  if (l || n(), !m || !p)
5205
5206
  return;
5206
- const g = An(v), b = An(i.clientWidth - (c + m)), x = An(i.clientHeight - (v + p)), M = An(c), C = {
5207
- rootMargin: -g + "px " + -b + "px " + -x + "px " + -M + "px",
5207
+ const v = An(g), b = An(i.clientWidth - (c + m)), x = An(i.clientHeight - (g + p)), M = An(c), C = {
5208
+ rootMargin: -v + "px " + -b + "px " + -x + "px " + -M + "px",
5208
5209
  threshold: Ne(0, Nt(1, s)) || 1
5209
5210
  };
5210
5211
  let k = !0;
@@ -5246,7 +5247,7 @@ function mm(t, n, e, r) {
5246
5247
  passive: !0
5247
5248
  }), o && M.addEventListener("resize", e);
5248
5249
  });
5249
- const v = u && l ? pm(u, e) : null;
5250
+ const g = u && l ? pm(u, e) : null;
5250
5251
  let m = -1, p = null;
5251
5252
  a && (p = new ResizeObserver((M) => {
5252
5253
  let [C] = M;
@@ -5255,17 +5256,17 @@ function mm(t, n, e, r) {
5255
5256
  (k = p) == null || k.observe(n);
5256
5257
  })), e();
5257
5258
  }), u && !s && p.observe(u), n && p.observe(n));
5258
- let g, b = s ? Lt(t) : null;
5259
+ let v, b = s ? Lt(t) : null;
5259
5260
  s && x();
5260
5261
  function x() {
5261
5262
  const M = Lt(t);
5262
- b && !Ol(b, M) && e(), b = M, g = requestAnimationFrame(x);
5263
+ b && !Ol(b, M) && e(), b = M, v = requestAnimationFrame(x);
5263
5264
  }
5264
5265
  return e(), () => {
5265
5266
  var M;
5266
5267
  c.forEach((C) => {
5267
5268
  i && C.removeEventListener("scroll", e), o && C.removeEventListener("resize", e);
5268
- }), v?.(), (M = p) == null || M.disconnect(), p = null, s && cancelAnimationFrame(g);
5269
+ }), g?.(), (M = p) == null || M.disconnect(), p = null, s && cancelAnimationFrame(v);
5269
5270
  };
5270
5271
  }
5271
5272
  const $r = yl, hm = Gp, gm = Qp, vm = Kp, bm = Xp, wm = (t, n, e) => {
@@ -5340,7 +5341,7 @@ function Em(t) {
5340
5341
  transform: l = !0,
5341
5342
  whileElementsMounted: s,
5342
5343
  open: u
5343
- } = t, [c, v] = d.useState({
5344
+ } = t, [c, g] = d.useState({
5344
5345
  x: 0,
5345
5346
  y: 0,
5346
5347
  strategy: e,
@@ -5349,11 +5350,11 @@ function Em(t) {
5349
5350
  isPositioned: !1
5350
5351
  }), [m, p] = d.useState(r);
5351
5352
  nr(m, r) || p(r);
5352
- const [g, b] = d.useState(null), [x, M] = d.useState(null), C = d.useCallback((D) => {
5353
+ const [v, b] = d.useState(null), [x, M] = d.useState(null), C = d.useCallback((D) => {
5353
5354
  D !== P.current && (P.current = D, b(D));
5354
5355
  }, []), k = d.useCallback((D) => {
5355
5356
  D !== N.current && (N.current = D, M(D));
5356
- }, []), L = o || g, _ = a || x, P = d.useRef(null), N = d.useRef(null), I = d.useRef(c), F = s != null, S = Br(s), z = Br(i), w = Br(u), E = d.useCallback(() => {
5357
+ }, []), L = o || v, _ = a || x, P = d.useRef(null), N = d.useRef(null), I = d.useRef(c), F = s != null, S = Br(s), z = Br(i), w = Br(u), E = d.useCallback(() => {
5357
5358
  if (!P.current || !N.current)
5358
5359
  return;
5359
5360
  const D = {
@@ -5371,12 +5372,12 @@ function Em(t) {
5371
5372
  isPositioned: w.current !== !1
5372
5373
  };
5373
5374
  R.current && !nr(I.current, Y) && (I.current = Y, Vn.flushSync(() => {
5374
- v(Y);
5375
+ g(Y);
5375
5376
  }));
5376
5377
  });
5377
5378
  }, [m, n, e, z, w]);
5378
5379
  Hn(() => {
5379
- u === !1 && I.current.isPositioned && (I.current.isPositioned = !1, v((D) => ({
5380
+ u === !1 && I.current.isPositioned && (I.current.isPositioned = !1, g((D) => ({
5380
5381
  ...D,
5381
5382
  isPositioned: !1
5382
5383
  })));
@@ -5538,14 +5539,14 @@ function zm(t) {
5538
5539
  const p = r.reference;
5539
5540
  p && !Re(p) && Pm("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
5540
5541
  }
5541
- const [s, u] = d.useState(r.reference), c = Il((p, g, b) => {
5542
- o.current.openEvent = p ? g : void 0, a.emit("openchange", {
5542
+ const [s, u] = d.useState(r.reference), c = Il((p, v, b) => {
5543
+ o.current.openEvent = p ? v : void 0, a.emit("openchange", {
5543
5544
  open: p,
5544
- event: g,
5545
+ event: v,
5545
5546
  reason: b,
5546
5547
  nested: l
5547
- }), e?.(p, g, b);
5548
- }), v = d.useMemo(() => ({
5548
+ }), e?.(p, v, b);
5549
+ }), g = d.useMemo(() => ({
5549
5550
  setPositionReference: u
5550
5551
  }), []), m = d.useMemo(() => ({
5551
5552
  reference: s || r.reference || null,
@@ -5559,8 +5560,8 @@ function zm(t) {
5559
5560
  elements: m,
5560
5561
  events: a,
5561
5562
  floatingId: i,
5562
- refs: v
5563
- }), [n, c, m, a, i, v]);
5563
+ refs: g
5564
+ }), [n, c, m, a, i, g]);
5564
5565
  }
5565
5566
  function Vm(t) {
5566
5567
  t === void 0 && (t = {});
@@ -5573,7 +5574,7 @@ function Vm(t) {
5573
5574
  floating: null,
5574
5575
  ...t.elements
5575
5576
  }
5576
- }), r = t.rootContext || e, i = r.elements, [o, a] = d.useState(null), [l, s] = d.useState(null), u = i?.domReference || o, c = d.useRef(null), v = _m();
5577
+ }), r = t.rootContext || e, i = r.elements, [o, a] = d.useState(null), [l, s] = d.useState(null), u = i?.domReference || o, c = d.useRef(null), g = _m();
5577
5578
  ci(() => {
5578
5579
  u && (c.current = u);
5579
5580
  }, [u]);
@@ -5591,17 +5592,17 @@ function Vm(t) {
5591
5592
  contextElement: C
5592
5593
  } : C;
5593
5594
  s(k), m.refs.setReference(k);
5594
- }, [m.refs]), g = d.useCallback((C) => {
5595
+ }, [m.refs]), v = d.useCallback((C) => {
5595
5596
  (Re(C) || C === null) && (c.current = C, a(C)), (Re(m.refs.reference.current) || m.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
5596
5597
  // `null` to support `positionReference` + an unstable `reference`
5597
5598
  // callback ref.
5598
5599
  C !== null && !Re(C)) && m.refs.setReference(C);
5599
5600
  }, [m.refs]), b = d.useMemo(() => ({
5600
5601
  ...m.refs,
5601
- setReference: g,
5602
+ setReference: v,
5602
5603
  setPositionReference: p,
5603
5604
  domReference: c
5604
- }), [m.refs, g, p]), x = d.useMemo(() => ({
5605
+ }), [m.refs, v, p]), x = d.useMemo(() => ({
5605
5606
  ...m.elements,
5606
5607
  domReference: u
5607
5608
  }), [m.elements, u]), M = d.useMemo(() => ({
@@ -5613,7 +5614,7 @@ function Vm(t) {
5613
5614
  }), [m, b, x, n, r]);
5614
5615
  return ci(() => {
5615
5616
  r.dataRef.current.floatingContext = M;
5616
- const C = v?.nodesRef.current.find((k) => k.id === n);
5617
+ const C = g?.nodesRef.current.find((k) => k.id === n);
5617
5618
  C && (C.context = M);
5618
5619
  }), d.useMemo(() => ({
5619
5620
  ...m,
@@ -5648,11 +5649,11 @@ function Yr(t, n, e) {
5648
5649
  if (!(i && [ra, ia].includes(u)))
5649
5650
  if (u.indexOf("on") === 0) {
5650
5651
  if (r.has(u) || r.set(u, []), typeof c == "function") {
5651
- var v;
5652
- (v = r.get(u)) == null || v.push(c), a[u] = function() {
5653
- for (var m, p = arguments.length, g = new Array(p), b = 0; b < p; b++)
5654
- g[b] = arguments[b];
5655
- return (m = r.get(u)) == null ? void 0 : m.map((x) => x(...g)).find((x) => x !== void 0);
5652
+ var g;
5653
+ (g = r.get(u)) == null || g.push(c), a[u] = function() {
5654
+ for (var m, p = arguments.length, v = new Array(p), b = 0; b < p; b++)
5655
+ v[b] = arguments[b];
5656
+ return (m = r.get(u)) == null ? void 0 : m.map((x) => x(...v)).find((x) => x !== void 0);
5656
5657
  };
5657
5658
  }
5658
5659
  } else
@@ -5708,28 +5709,28 @@ const $m = (t) => ({
5708
5709
  scrollRef: u,
5709
5710
  ...c
5710
5711
  } = Zt(t, n), {
5711
- rects: v,
5712
+ rects: g,
5712
5713
  elements: {
5713
5714
  floating: m
5714
5715
  }
5715
- } = n, p = e.current[a], g = u?.current || m, b = m.clientTop || g.clientTop, x = m.clientTop !== 0, M = g.clientTop !== 0, C = m === g;
5716
+ } = n, p = e.current[a], v = u?.current || m, b = m.clientTop || v.clientTop, x = m.clientTop !== 0, M = v.clientTop !== 0, C = m === v;
5716
5717
  if (process.env.NODE_ENV !== "production" && (n.placement.startsWith("bottom") || Am('`placement` side must be "bottom" when using the `inner`', "middleware.")), !p)
5717
5718
  return {};
5718
5719
  const k = {
5719
5720
  ...n,
5720
- ...await Tl(-p.offsetTop - m.clientTop - v.reference.height / 2 - p.offsetHeight / 2 - o).fn(n)
5721
- }, L = await $r(oa(k, g.scrollHeight + b + m.clientTop), c), _ = await $r(k, {
5721
+ ...await Tl(-p.offsetTop - m.clientTop - g.reference.height / 2 - p.offsetHeight / 2 - o).fn(n)
5722
+ }, L = await $r(oa(k, v.scrollHeight + b + m.clientTop), c), _ = await $r(k, {
5722
5723
  ...c,
5723
5724
  elementContext: "reference"
5724
- }), P = Ne(0, L.top), N = k.y + P, I = (g.scrollHeight > g.clientHeight ? (F) => F : pn)(Ne(0, g.scrollHeight + (x && C || M ? b * 2 : 0) - P - Ne(0, L.bottom)));
5725
- if (g.style.maxHeight = I + "px", g.scrollTop = P, i) {
5726
- const F = g.offsetHeight < p.offsetHeight * Nt(l, e.current.length) - 1 || _.top >= -s || _.bottom >= -s;
5725
+ }), P = Ne(0, L.top), N = k.y + P, I = (v.scrollHeight > v.clientHeight ? (F) => F : pn)(Ne(0, v.scrollHeight + (x && C || M ? b * 2 : 0) - P - Ne(0, L.bottom)));
5726
+ if (v.style.maxHeight = I + "px", v.scrollTop = P, i) {
5727
+ const F = v.offsetHeight < p.offsetHeight * Nt(l, e.current.length) - 1 || _.top >= -s || _.bottom >= -s;
5727
5728
  Vn.flushSync(() => i(F));
5728
5729
  }
5729
5730
  return r && (r.current = await $r(oa({
5730
5731
  ...k,
5731
5732
  y: N
5732
- }, g.offsetHeight + b + m.clientTop), c)), {
5733
+ }, v.offsetHeight + b + m.clientTop), c)), {
5733
5734
  y: N
5734
5735
  };
5735
5736
  }
@@ -5743,25 +5744,25 @@ function Bm(t, n) {
5743
5744
  overflowRef: o,
5744
5745
  scrollRef: a,
5745
5746
  onChange: l
5746
- } = n, s = Il(l), u = d.useRef(!1), c = d.useRef(null), v = d.useRef(null);
5747
+ } = n, s = Il(l), u = d.useRef(!1), c = d.useRef(null), g = d.useRef(null);
5747
5748
  d.useEffect(() => {
5748
5749
  if (!i) return;
5749
5750
  function p(b) {
5750
- if (b.ctrlKey || !g || o.current == null)
5751
+ if (b.ctrlKey || !v || o.current == null)
5751
5752
  return;
5752
- const x = b.deltaY, M = o.current.top >= -0.5, C = o.current.bottom >= -0.5, k = g.scrollHeight - g.clientHeight, L = x < 0 ? -1 : 1, _ = x < 0 ? "max" : "min";
5753
- g.scrollHeight <= g.clientHeight || (!M && x > 0 || !C && x < 0 ? (b.preventDefault(), Vn.flushSync(() => {
5753
+ const x = b.deltaY, M = o.current.top >= -0.5, C = o.current.bottom >= -0.5, k = v.scrollHeight - v.clientHeight, L = x < 0 ? -1 : 1, _ = x < 0 ? "max" : "min";
5754
+ v.scrollHeight <= v.clientHeight || (!M && x > 0 || !C && x < 0 ? (b.preventDefault(), Vn.flushSync(() => {
5754
5755
  s((P) => P + Math[_](x, k * L));
5755
- })) : /firefox/i.test(yp()) && (g.scrollTop += x));
5756
+ })) : /firefox/i.test(yp()) && (v.scrollTop += x));
5756
5757
  }
5757
- const g = a?.current || r.floating;
5758
- if (e && g)
5759
- return g.addEventListener("wheel", p), requestAnimationFrame(() => {
5760
- c.current = g.scrollTop, o.current != null && (v.current = {
5758
+ const v = a?.current || r.floating;
5759
+ if (e && v)
5760
+ return v.addEventListener("wheel", p), requestAnimationFrame(() => {
5761
+ c.current = v.scrollTop, o.current != null && (g.current = {
5761
5762
  ...o.current
5762
5763
  });
5763
5764
  }), () => {
5764
- c.current = null, v.current = null, g.removeEventListener("wheel", p);
5765
+ c.current = null, g.current = null, v.removeEventListener("wheel", p);
5765
5766
  };
5766
5767
  }, [i, e, r.floating, o, a, s]);
5767
5768
  const m = d.useMemo(() => ({
@@ -5778,8 +5779,8 @@ function Bm(t, n) {
5778
5779
  const p = a?.current || r.floating;
5779
5780
  if (!(!o.current || !p || !u.current)) {
5780
5781
  if (c.current !== null) {
5781
- const g = p.scrollTop - c.current;
5782
- (o.current.bottom < -0.5 && g < -1 || o.current.top < -0.5 && g > 1) && Vn.flushSync(() => s((b) => b + g));
5782
+ const v = p.scrollTop - c.current;
5783
+ (o.current.bottom < -0.5 && v < -1 || o.current.top < -0.5 && v > 1) && Vn.flushSync(() => s((b) => b + v));
5783
5784
  }
5784
5785
  requestAnimationFrame(() => {
5785
5786
  c.current = p.scrollTop;
@@ -5826,11 +5827,11 @@ let aa = 4;
5826
5827
  function $i({ children: t, enabled: n = !0 }) {
5827
5828
  let [e, r] = we(null), [i, o] = we(0), a = se(null), [l, s] = we(null);
5828
5829
  Ym(l);
5829
- let u = n && e !== null && l !== null, { to: c = "bottom", gap: v = 0, offset: m = 0, padding: p = 0, inner: g } = Um(e, l), [b, x = "center"] = c.split(" ");
5830
+ let u = n && e !== null && l !== null, { to: c = "bottom", gap: g = 0, offset: m = 0, padding: p = 0, inner: v } = Um(e, l), [b, x = "center"] = c.split(" ");
5830
5831
  ve(() => {
5831
5832
  u && o(0);
5832
5833
  }, [u]);
5833
- let { refs: M, floatingStyles: C, context: k } = Vm({ open: u, placement: b === "selection" ? x === "center" ? "bottom" : `bottom-${x}` : x === "center" ? `${b}` : `${b}-${x}`, strategy: "absolute", transform: !1, middleware: [Tl({ mainAxis: b === "selection" ? 0 : v, crossAxis: m }), Sm({ padding: p }), b !== "selection" && Mm({ padding: p }), b === "selection" && g ? $m({ ...g, padding: p, overflowRef: a, offset: i, minItemsVisible: aa, referenceOverflowThreshold: p, onFallbackChange(z) {
5834
+ let { refs: M, floatingStyles: C, context: k } = Vm({ open: u, placement: b === "selection" ? x === "center" ? "bottom" : `bottom-${x}` : x === "center" ? `${b}` : `${b}-${x}`, strategy: "absolute", transform: !1, middleware: [Tl({ mainAxis: b === "selection" ? 0 : g, crossAxis: m }), Sm({ padding: p }), b !== "selection" && Mm({ padding: p }), b === "selection" && v ? $m({ ...v, padding: p, overflowRef: a, offset: i, minItemsVisible: aa, referenceOverflowThreshold: p, onFallbackChange(z) {
5834
5835
  var w, E;
5835
5836
  if (!z) return;
5836
5837
  let R = k.elements.floating;
@@ -5883,12 +5884,12 @@ function Ur(t, n, e = void 0) {
5883
5884
  if (typeof s == "string") {
5884
5885
  if (!u) return [e, null];
5885
5886
  let c = la(s, u);
5886
- return [c, (v) => {
5887
+ return [c, (g) => {
5887
5888
  let m = Al(s);
5888
5889
  {
5889
- let p = m.map((g) => window.getComputedStyle(u).getPropertyValue(g));
5890
- r.requestAnimationFrame(function g() {
5891
- r.nextFrame(g);
5890
+ let p = m.map((v) => window.getComputedStyle(u).getPropertyValue(v));
5891
+ r.requestAnimationFrame(function v() {
5892
+ r.nextFrame(v);
5892
5893
  let b = !1;
5893
5894
  for (let [M, C] of m.entries()) {
5894
5895
  let k = window.getComputedStyle(u).getPropertyValue(C);
@@ -5899,7 +5900,7 @@ function Ur(t, n, e = void 0) {
5899
5900
  }
5900
5901
  if (!b) return;
5901
5902
  let x = la(s, u);
5902
- c !== x && (v(x), c = x);
5903
+ c !== x && (g(x), c = x);
5903
5904
  });
5904
5905
  }
5905
5906
  return r.dispose;
@@ -6029,13 +6030,13 @@ function Jm(t) {
6029
6030
  let Pl = dt, eh = Se(function(t, n) {
6030
6031
  let { ownerDocument: e = null, ...r } = t, i = se(null), o = ke(df((m) => {
6031
6032
  i.current = m;
6032
- }), n), a = Pt(i.current), l = e ?? a, s = Jm(l), u = be(ih), c = xt(), v = Ee();
6033
+ }), n), a = Pt(i.current), l = e ?? a, s = Jm(l), u = be(ih), c = xt(), g = Ee();
6033
6034
  return Cr(() => {
6034
6035
  var m;
6035
6036
  s && s.childNodes.length <= 0 && ((m = s.parentElement) == null || m.removeChild(s));
6036
6037
  }), s ? hi(q.createElement("div", { "data-headlessui-portal": "", ref: (m) => {
6037
6038
  c.dispose(), u && m && c.add(u.register(m));
6038
- } }, v({ ourProps: { ref: o }, theirProps: r, slot: {}, defaultTag: Pl, name: "Portal" })), s) : null;
6039
+ } }, g({ ourProps: { ref: o }, theirProps: r, slot: {}, defaultTag: Pl, name: "Portal" })), s) : null;
6039
6040
  });
6040
6041
  function th(t, n) {
6041
6042
  let e = ke(n), { enabled: r = !0, ownerDocument: i, ...o } = t, a = Ee();
@@ -6086,13 +6087,13 @@ let ch = { 1(t) {
6086
6087
  var e, r, i, o;
6087
6088
  if ((e = t.dataRef.current) != null && e.disabled || t.optionsElement && !((r = t.dataRef.current) != null && r.optionsPropsRef.current.static) && t.comboboxState === 1) return t;
6088
6089
  if (t.virtual) {
6089
- let { options: u, disabled: c } = t.virtual, v = n.focus === ee.Specific ? n.idx : it(n, { resolveItems: () => u, resolveActiveIndex: () => {
6090
- var p, g;
6091
- return (g = (p = t.activeOptionIndex) != null ? p : u.findIndex((b) => !c(b))) != null ? g : null;
6090
+ let { options: u, disabled: c } = t.virtual, g = n.focus === ee.Specific ? n.idx : it(n, { resolveItems: () => u, resolveActiveIndex: () => {
6091
+ var p, v;
6092
+ return (v = (p = t.activeOptionIndex) != null ? p : u.findIndex((b) => !c(b))) != null ? v : null;
6092
6093
  }, resolveDisabled: c, resolveId() {
6093
6094
  throw new Error("Function not implemented.");
6094
6095
  } }), m = (i = n.trigger) != null ? i : 2;
6095
- return t.activeOptionIndex === v && t.activationTrigger === m ? t : { ...t, activeOptionIndex: v, activationTrigger: m, isTyping: !1, __demoMode: !1 };
6096
+ return t.activeOptionIndex === g && t.activationTrigger === m ? t : { ...t, activeOptionIndex: g, activationTrigger: m, isTyping: !1, __demoMode: !1 };
6096
6097
  }
6097
6098
  let a = Kr(t);
6098
6099
  if (a.activeOptionIndex === null) {
@@ -6241,8 +6242,8 @@ function dh(t) {
6241
6242
  let n = En("VirtualProvider"), e = Gt("VirtualProvider"), { options: r } = e.virtual, i = le(n, (p) => p.optionsElement), [o, a] = Me(() => {
6242
6243
  let p = i;
6243
6244
  if (!p) return [0, 0];
6244
- let g = window.getComputedStyle(p);
6245
- return [parseFloat(g.paddingBlockStart || g.paddingTop), parseFloat(g.paddingBlockEnd || g.paddingBottom)];
6245
+ let v = window.getComputedStyle(p);
6246
+ return [parseFloat(v.paddingBlockStart || v.paddingTop), parseFloat(v.paddingBlockEnd || v.paddingBottom)];
6246
6247
  }, [i]), l = If({ enabled: r.length !== 0, scrollPaddingStart: o, scrollPaddingEnd: a, count: r.length, estimateSize() {
6247
6248
  return 40;
6248
6249
  }, getScrollElement() {
@@ -6251,17 +6252,17 @@ function dh(t) {
6251
6252
  ve(() => {
6252
6253
  u((p) => p + 1);
6253
6254
  }, [r]);
6254
- let c = l.getVirtualItems(), v = le(n, (p) => p.activationTrigger === at.Pointer), m = le(n, n.selectors.activeOptionIndex);
6255
+ let c = l.getVirtualItems(), g = le(n, (p) => p.activationTrigger === at.Pointer), m = le(n, n.selectors.activeOptionIndex);
6255
6256
  return c.length === 0 ? null : q.createElement(Hl.Provider, { value: l }, q.createElement("div", { style: { position: "relative", width: "100%", height: `${l.getTotalSize()}px` }, ref: (p) => {
6256
- p && (v || m !== null && r.length > m && l.scrollToIndex(m));
6257
+ p && (g || m !== null && r.length > m && l.scrollToIndex(m));
6257
6258
  } }, c.map((p) => {
6258
- var g;
6259
- return q.createElement(dt, { key: p.key }, q.cloneElement((g = t.children) == null ? void 0 : g.call(t, { ...t.slot, option: r[p.index] }), { key: `${s}-${p.key}`, "data-index": p.index, "aria-setsize": r.length, "aria-posinset": p.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${p.start}px)`, overflowAnchor: "none" } }));
6259
+ var v;
6260
+ return q.createElement(dt, { key: p.key }, q.cloneElement((v = t.children) == null ? void 0 : v.call(t, { ...t.slot, option: r[p.index] }), { key: `${s}-${p.key}`, "data-index": p.index, "aria-setsize": r.length, "aria-posinset": p.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${p.start}px)`, overflowAnchor: "none" } }));
6260
6261
  })));
6261
6262
  }
6262
6263
  let fh = dt;
6263
6264
  function ph(t, n) {
6264
- let e = je(), r = dr(), { value: i, defaultValue: o, onChange: a, form: l, name: s, by: u, invalid: c = !1, disabled: v = r || !1, onClose: m, __demoMode: p = !1, multiple: g = !1, immediate: b = !1, virtual: x = null, nullable: M, ...C } = t, k = La(o), [L = g ? [] : void 0, _] = Fa(i, a, k), P = _l({ id: e, virtual: x, __demoMode: p }), N = se({ static: !1, hold: !1 }), I = qa(u), F = X((oe) => x ? u === null ? x.options.indexOf(oe) : x.options.findIndex((De) => I(De, oe)) : P.state.options.findIndex((De) => I(De.dataRef.current.value, oe))), S = ce((oe) => Te(E.mode, { [Ye.Multi]: () => L.some((De) => I(De, oe)), [Ye.Single]: () => I(L, oe) }), [L]), z = le(P, (oe) => oe.virtual), w = X(() => m?.()), E = Me(() => ({ __demoMode: p, immediate: b, optionsPropsRef: N, value: L, defaultValue: k, disabled: v, invalid: c, mode: g ? Ye.Multi : Ye.Single, virtual: x ? z : null, onChange: _, isSelected: S, calculateIndex: F, compare: I, onClose: w }), [p, b, N, L, k, v, c, g, x, z, _, S, F, I, w]);
6265
+ let e = je(), r = dr(), { value: i, defaultValue: o, onChange: a, form: l, name: s, by: u, invalid: c = !1, disabled: g = r || !1, onClose: m, __demoMode: p = !1, multiple: v = !1, immediate: b = !1, virtual: x = null, nullable: M, ...C } = t, k = La(o), [L = v ? [] : void 0, _] = Fa(i, a, k), P = _l({ id: e, virtual: x, __demoMode: p }), N = se({ static: !1, hold: !1 }), I = qa(u), F = X((oe) => x ? u === null ? x.options.indexOf(oe) : x.options.findIndex((De) => I(De, oe)) : P.state.options.findIndex((De) => I(De.dataRef.current.value, oe))), S = ce((oe) => Te(E.mode, { [Ye.Multi]: () => L.some((De) => I(De, oe)), [Ye.Single]: () => I(L, oe) }), [L]), z = le(P, (oe) => oe.virtual), w = X(() => m?.()), E = Me(() => ({ __demoMode: p, immediate: b, optionsPropsRef: N, value: L, defaultValue: k, disabled: g, invalid: c, mode: v ? Ye.Multi : Ye.Single, virtual: x ? z : null, onChange: _, isSelected: S, calculateIndex: F, compare: I, onClose: w }), [p, b, N, L, k, g, c, v, x, z, _, S, F, I, w]);
6265
6266
  ve(() => {
6266
6267
  var oe;
6267
6268
  x && P.send({ type: Fl.UpdateVirtualConfiguration, options: x.options, disabled: (oe = x.disabled) != null ? oe : null });
@@ -6270,15 +6271,15 @@ function ph(t, n) {
6270
6271
  }, [E]);
6271
6272
  let [R, A, V, Z] = le(P, (oe) => [oe.comboboxState, oe.buttonElement, oe.inputElement, oe.optionsElement]), D = _t.get(null), $ = le(D, ce((oe) => D.selectors.isTop(oe, e), [D, e]));
6272
6273
  Ti($, [A, V, Z], () => P.actions.closeCombobox());
6273
- let Y = le(P, P.selectors.activeOptionIndex), O = le(P, P.selectors.activeOption), j = Ie({ open: R === fe.Open, disabled: v, invalid: c, activeIndex: Y, activeOption: O, value: L }), [J, ne] = hr(), de = n === null ? {} : { ref: n }, B = ce(() => {
6274
+ let Y = le(P, P.selectors.activeOptionIndex), O = le(P, P.selectors.activeOption), j = Ie({ open: R === fe.Open, disabled: g, invalid: c, activeIndex: Y, activeOption: O, value: L }), [J, ne] = hr(), de = n === null ? {} : { ref: n }, B = ce(() => {
6274
6275
  if (k !== void 0) return _?.(k);
6275
6276
  }, [_, k]), te = Ee();
6276
- return q.createElement(ne, { value: J, props: { htmlFor: V?.id }, slot: { open: R === fe.Open, disabled: v } }, q.createElement($i, null, q.createElement(hn.Provider, { value: E }, q.createElement(Rl.Provider, { value: P }, q.createElement(Ui, { value: Te(R, { [fe.Open]: Ze.Open, [fe.Closed]: Ze.Closed }) }, s != null && q.createElement(Va, { disabled: v, data: L != null ? { [s]: L } : {}, form: l, onReset: B }), te({ ourProps: de, theirProps: C, slot: j, defaultTag: fh, name: "Combobox" }))))));
6277
+ return q.createElement(ne, { value: J, props: { htmlFor: V?.id }, slot: { open: R === fe.Open, disabled: g } }, q.createElement($i, null, q.createElement(hn.Provider, { value: E }, q.createElement(Rl.Provider, { value: P }, q.createElement(Ui, { value: Te(R, { [fe.Open]: Ze.Open, [fe.Closed]: Ze.Closed }) }, s != null && q.createElement(Va, { disabled: g, data: L != null ? { [s]: L } : {}, form: l, onReset: B }), te({ ourProps: de, theirProps: C, slot: j, defaultTag: fh, name: "Combobox" }))))));
6277
6278
  }
6278
6279
  let mh = "input";
6279
6280
  function hh(t, n) {
6280
6281
  var e, r;
6281
- let i = En("Combobox.Input"), o = Gt("Combobox.Input"), a = je(), l = Ei(), { id: s = l || `headlessui-combobox-input-${a}`, onChange: u, displayValue: c, disabled: v = o.disabled || !1, autoFocus: m = !1, type: p = "text", ...g } = t, b = se(null), x = ke(b, n, zi(), i.actions.setInputElement), [M, C] = le(i, (j) => [j.comboboxState, j.isTyping]), k = xt(), L = X(() => {
6282
+ let i = En("Combobox.Input"), o = Gt("Combobox.Input"), a = je(), l = Ei(), { id: s = l || `headlessui-combobox-input-${a}`, onChange: u, displayValue: c, disabled: g = o.disabled || !1, autoFocus: m = !1, type: p = "text", ...v } = t, b = se(null), x = ke(b, n, zi(), i.actions.setInputElement), [M, C] = le(i, (j) => [j.comboboxState, j.isTyping]), k = xt(), L = X(() => {
6282
6283
  i.actions.onChange(null), i.state.optionsElement && (i.state.optionsElement.scrollTop = 0), i.actions.goToOption({ focus: ee.Nothing });
6283
6284
  }), _ = Me(() => {
6284
6285
  var j;
@@ -6352,17 +6353,17 @@ function hh(t, n) {
6352
6353
  (ne = i.state.buttonElement) != null && ne.contains(B) || (de = i.state.optionsElement) != null && de.contains(B) || o.disabled || o.immediate && i.state.comboboxState !== fe.Open && k.microTask(() => {
6353
6354
  Ve(() => i.actions.openCombobox()), i.actions.setActivationTrigger(at.Focus);
6354
6355
  });
6355
- }), E = wn(), R = Ua(), { isFocused: A, focusProps: V } = cr({ autoFocus: m }), { isHovered: Z, hoverProps: D } = sr({ isDisabled: v }), $ = le(i, (j) => j.optionsElement), Y = Ie({ open: M === fe.Open, disabled: v, invalid: o.invalid, hover: Z, focus: A, autofocus: m }), O = Rt({ ref: x, id: s, role: "combobox", type: p, "aria-controls": $?.id, "aria-expanded": M === fe.Open, "aria-activedescendant": le(i, i.selectors.activeDescendantId), "aria-labelledby": E, "aria-describedby": R, "aria-autocomplete": "list", defaultValue: (r = (e = t.defaultValue) != null ? e : o.defaultValue !== void 0 ? c?.(o.defaultValue) : null) != null ? r : o.defaultValue, disabled: v || void 0, autoFocus: m, onCompositionStart: N, onCompositionEnd: I, onKeyDown: F, onChange: S, onFocus: w, onBlur: z }, V, D);
6356
- return Ee()({ ourProps: O, theirProps: g, slot: Y, defaultTag: mh, name: "Combobox.Input" });
6356
+ }), E = wn(), R = Ua(), { isFocused: A, focusProps: V } = cr({ autoFocus: m }), { isHovered: Z, hoverProps: D } = sr({ isDisabled: g }), $ = le(i, (j) => j.optionsElement), Y = Ie({ open: M === fe.Open, disabled: g, invalid: o.invalid, hover: Z, focus: A, autofocus: m }), O = Rt({ ref: x, id: s, role: "combobox", type: p, "aria-controls": $?.id, "aria-expanded": M === fe.Open, "aria-activedescendant": le(i, i.selectors.activeDescendantId), "aria-labelledby": E, "aria-describedby": R, "aria-autocomplete": "list", defaultValue: (r = (e = t.defaultValue) != null ? e : o.defaultValue !== void 0 ? c?.(o.defaultValue) : null) != null ? r : o.defaultValue, disabled: g || void 0, autoFocus: m, onCompositionStart: N, onCompositionEnd: I, onKeyDown: F, onChange: S, onFocus: w, onBlur: z }, V, D);
6357
+ return Ee()({ ourProps: O, theirProps: v, slot: Y, defaultTag: mh, name: "Combobox.Input" });
6357
6358
  }
6358
6359
  let gh = "button";
6359
6360
  function vh(t, n) {
6360
- let e = En("Combobox.Button"), r = Gt("Combobox.Button"), [i, o] = we(null), a = ke(n, o, e.actions.setButtonElement), l = je(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...v } = t, [m, p, g] = le(e, (w) => [w.comboboxState, w.inputElement, w.optionsElement]), b = ol(p), x = m === fe.Open;
6361
+ let e = En("Combobox.Button"), r = Gt("Combobox.Button"), [i, o] = we(null), a = ke(n, o, e.actions.setButtonElement), l = je(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...g } = t, [m, p, v] = le(e, (w) => [w.comboboxState, w.inputElement, w.optionsElement]), b = ol(p), x = m === fe.Open;
6361
6362
  ki(x, { trigger: i, action: ce((w) => {
6362
6363
  if (i != null && i.contains(w.target) || p != null && p.contains(w.target)) return Je.Ignore;
6363
6364
  let E = w.target.closest('[role="option"]:not([data-disabled])');
6364
- return tt(E) ? Je.Select(E) : g != null && g.contains(w.target) ? Je.Ignore : Je.Close;
6365
- }, [i, p, g]), close: e.actions.closeCombobox, select: e.actions.selectActiveOption });
6365
+ return tt(E) ? Je.Select(E) : v != null && v.contains(w.target) ? Je.Ignore : Je.Close;
6366
+ }, [i, p, v]), close: e.actions.closeCombobox, select: e.actions.selectActiveOption });
6366
6367
  let M = X((w) => {
6367
6368
  switch (w.key) {
6368
6369
  case re.Space:
@@ -6384,27 +6385,27 @@ function vh(t, n) {
6384
6385
  }
6385
6386
  }), C = Ci(() => {
6386
6387
  e.state.comboboxState === fe.Open ? e.actions.closeCombobox() : e.actions.openCombobox(), b();
6387
- }), k = wn([s]), { isFocusVisible: L, focusProps: _ } = cr({ autoFocus: c }), { isHovered: P, hoverProps: N } = sr({ isDisabled: u }), { pressed: I, pressProps: F } = yi({ disabled: u }), S = Ie({ open: m === fe.Open, active: I || m === fe.Open, disabled: u, invalid: r.invalid, value: r.value, hover: P, focus: L }), z = Rt({ ref: a, id: s, type: Ii(t, i), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": m === fe.Open, "aria-labelledby": k, disabled: u || void 0, autoFocus: c, onKeyDown: M }, C, _, N, F);
6388
- return Ee()({ ourProps: z, theirProps: v, slot: S, defaultTag: gh, name: "Combobox.Button" });
6388
+ }), k = wn([s]), { isFocusVisible: L, focusProps: _ } = cr({ autoFocus: c }), { isHovered: P, hoverProps: N } = sr({ isDisabled: u }), { pressed: I, pressProps: F } = yi({ disabled: u }), S = Ie({ open: m === fe.Open, active: I || m === fe.Open, disabled: u, invalid: r.invalid, value: r.value, hover: P, focus: L }), z = Rt({ ref: a, id: s, type: Ii(t, i), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": v?.id, "aria-expanded": m === fe.Open, "aria-labelledby": k, disabled: u || void 0, autoFocus: c, onKeyDown: M }, C, _, N, F);
6389
+ return Ee()({ ourProps: z, theirProps: g, slot: S, defaultTag: gh, name: "Combobox.Button" });
6389
6390
  }
6390
6391
  let bh = "div", wh = At.RenderStrategy | At.Static;
6391
6392
  function yh(t, n) {
6392
6393
  var e, r, i;
6393
- let o = je(), { id: a = `headlessui-combobox-options-${o}`, hold: l = !1, anchor: s, portal: u = !1, modal: c = !0, transition: v = !1, ...m } = t, p = En("Combobox.Options"), g = Gt("Combobox.Options"), b = Hi(s);
6394
+ let o = je(), { id: a = `headlessui-combobox-options-${o}`, hold: l = !1, anchor: s, portal: u = !1, modal: c = !0, transition: g = !1, ...m } = t, p = En("Combobox.Options"), v = Gt("Combobox.Options"), b = Hi(s);
6394
6395
  b && (u = !0);
6395
- let [x, M] = Wi(b), [C, k] = we(null), L = Vi(), _ = ke(n, b ? x : null, p.actions.setOptionsElement, k), [P, N, I, F, S] = le(p, (Ce) => [Ce.comboboxState, Ce.inputElement, Ce.buttonElement, Ce.optionsElement, Ce.activationTrigger]), z = Pt(N || I), w = Pt(F), E = Yi(), [R, A] = Ni(v, C, E !== null ? (E & Ze.Open) === Ze.Open : P === fe.Open);
6396
+ let [x, M] = Wi(b), [C, k] = we(null), L = Vi(), _ = ke(n, b ? x : null, p.actions.setOptionsElement, k), [P, N, I, F, S] = le(p, (Ce) => [Ce.comboboxState, Ce.inputElement, Ce.buttonElement, Ce.optionsElement, Ce.activationTrigger]), z = Pt(N || I), w = Pt(F), E = Yi(), [R, A] = Ni(g, C, E !== null ? (E & Ze.Open) === Ze.Open : P === fe.Open);
6396
6397
  Di(R, N, p.actions.closeCombobox);
6397
- let V = g.__demoMode ? !1 : c && P === fe.Open;
6398
+ let V = v.__demoMode ? !1 : c && P === fe.Open;
6398
6399
  ji(V, w);
6399
- let Z = g.__demoMode ? !1 : c && P === fe.Open;
6400
+ let Z = v.__demoMode ? !1 : c && P === fe.Open;
6400
6401
  Oi(Z, { allowed: ce(() => [N, I, F], [N, I, F]) });
6401
6402
  let D = le(p, p.selectors.didInputMove) ? !1 : R;
6402
6403
  ve(() => {
6403
6404
  var Ce;
6404
- g.optionsPropsRef.current.static = (Ce = t.static) != null ? Ce : !1;
6405
- }, [g.optionsPropsRef, t.static]), ve(() => {
6406
- g.optionsPropsRef.current.hold = l;
6407
- }, [g.optionsPropsRef, l]), al(P === fe.Open, { container: F, accept(Ce) {
6405
+ v.optionsPropsRef.current.static = (Ce = t.static) != null ? Ce : !1;
6406
+ }, [v.optionsPropsRef, t.static]), ve(() => {
6407
+ v.optionsPropsRef.current.hold = l;
6408
+ }, [v.optionsPropsRef, l]), al(P === fe.Open, { container: F, accept(Ce) {
6408
6409
  return Ce.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : Ce.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
6409
6410
  }, walk(Ce) {
6410
6411
  Ce.setAttribute("role", "none");
@@ -6413,19 +6414,19 @@ function yh(t, n) {
6413
6414
  p.actions.setActivationTrigger(at.Pointer);
6414
6415
  }), j = X((Ce) => {
6415
6416
  Ce.preventDefault(), p.actions.setActivationTrigger(at.Pointer);
6416
- }), J = Rt(b ? L() : {}, { "aria-labelledby": $, role: "listbox", "aria-multiselectable": g.mode === Ye.Multi ? !0 : void 0, id: a, ref: _, style: { ...m.style, ...M, "--input-width": Kn(R, N, !0).width, "--button-width": Kn(R, I, !0).width }, onWheel: S === at.Pointer ? void 0 : O, onMouseDown: j, ...Pi(A) }), ne = R && P === fe.Closed && !t.static, de = rr(ne, (e = g.virtual) == null ? void 0 : e.options), B = rr(ne, g.value), te = ce((Ce) => g.compare(B, Ce), [g.compare, B]), oe = Me(() => {
6417
- if (!g.virtual) return g;
6417
+ }), J = Rt(b ? L() : {}, { "aria-labelledby": $, role: "listbox", "aria-multiselectable": v.mode === Ye.Multi ? !0 : void 0, id: a, ref: _, style: { ...m.style, ...M, "--input-width": Kn(R, N, !0).width, "--button-width": Kn(R, I, !0).width }, onWheel: S === at.Pointer ? void 0 : O, onMouseDown: j, ...Pi(A) }), ne = R && P === fe.Closed && !t.static, de = rr(ne, (e = v.virtual) == null ? void 0 : e.options), B = rr(ne, v.value), te = ce((Ce) => v.compare(B, Ce), [v.compare, B]), oe = Me(() => {
6418
+ if (!v.virtual) return v;
6418
6419
  if (de === void 0) throw new Error("Missing `options` in virtual mode");
6419
- return de !== g.virtual.options ? { ...g, virtual: { ...g.virtual, options: de } } : g;
6420
- }, [g, de, (r = g.virtual) == null ? void 0 : r.options]);
6421
- g.virtual && Object.assign(m, { children: q.createElement(hn.Provider, { value: oe }, q.createElement(dh, { slot: Y }, m.children)) });
6422
- let De = Ee(), Qt = Me(() => g.mode === Ye.Multi ? g : { ...g, isSelected: te }, [g, te]);
6420
+ return de !== v.virtual.options ? { ...v, virtual: { ...v.virtual, options: de } } : v;
6421
+ }, [v, de, (r = v.virtual) == null ? void 0 : r.options]);
6422
+ v.virtual && Object.assign(m, { children: q.createElement(hn.Provider, { value: oe }, q.createElement(dh, { slot: Y }, m.children)) });
6423
+ let De = Ee(), Qt = Me(() => v.mode === Ye.Multi ? v : { ...v, isSelected: te }, [v, te]);
6423
6424
  return q.createElement(Ki, { enabled: u ? t.static || R : !1, ownerDocument: z }, q.createElement(hn.Provider, { value: Qt }, De({ ourProps: J, theirProps: { ...m, children: q.createElement(Zm, { freeze: ne }, typeof m.children == "function" ? (i = m.children) == null ? void 0 : i.call(m, Y) : m.children) }, slot: Y, defaultTag: bh, features: wh, visible: D, name: "Combobox.Options" })));
6424
6425
  }
6425
6426
  let xh = "div";
6426
6427
  function Eh(t, n) {
6427
6428
  var e, r, i;
6428
- let o = Gt("Combobox.Option"), a = En("Combobox.Option"), l = je(), { id: s = `headlessui-combobox-option-${l}`, value: u, disabled: c = (i = (r = (e = o.virtual) == null ? void 0 : e.disabled) == null ? void 0 : r.call(e, u)) != null ? i : !1, order: v = null, ...m } = t, [p] = le(a, (A) => [A.inputElement]), g = ol(p), b = le(a, ce((A) => a.selectors.isActive(A, u, s), [u, s])), x = o.isSelected(u), M = se(null), C = Et({ disabled: c, value: u, domRef: M, order: v }), k = be(Hl), L = ke(n, M, k ? k.measureElement : null), _ = X(() => {
6429
+ let o = Gt("Combobox.Option"), a = En("Combobox.Option"), l = je(), { id: s = `headlessui-combobox-option-${l}`, value: u, disabled: c = (i = (r = (e = o.virtual) == null ? void 0 : e.disabled) == null ? void 0 : r.call(e, u)) != null ? i : !1, order: g = null, ...m } = t, [p] = le(a, (A) => [A.inputElement]), v = ol(p), b = le(a, ce((A) => a.selectors.isActive(A, u, s), [u, s])), x = o.isSelected(u), M = se(null), C = Et({ disabled: c, value: u, domRef: M, order: g }), k = be(Hl), L = ke(n, M, k ? k.measureElement : null), _ = X(() => {
6429
6430
  a.actions.setIsTyping(!1), a.actions.onChange(u);
6430
6431
  });
6431
6432
  ve(() => a.actions.registerOption(s, C), [C, s]);
@@ -6437,7 +6438,7 @@ function Eh(t, n) {
6437
6438
  });
6438
6439
  }, [P, M]);
6439
6440
  let N = X((A) => {
6440
- A.preventDefault(), A.button === Mi.Left && (c || (_(), oi() || requestAnimationFrame(() => g()), o.mode === Ye.Single && a.actions.closeCombobox()));
6441
+ A.preventDefault(), A.button === Mi.Left && (c || (_(), oi() || requestAnimationFrame(() => v()), o.mode === Ye.Single && a.actions.closeCombobox()));
6441
6442
  }), I = X(() => {
6442
6443
  if (c) return a.actions.goToOption({ focus: ee.Nothing });
6443
6444
  let A = o.calculateIndex(u);
@@ -6513,19 +6514,19 @@ let Ah = { 1(t) {
6513
6514
  if (n.focus === ee.Previous) {
6514
6515
  let c = t.activeOptionIndex;
6515
6516
  if (c !== null) {
6516
- let v = t.options[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6517
+ let g = t.options[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6517
6518
  if (m !== null) {
6518
6519
  let p = t.options[m].dataRef.current.domRef;
6519
- if (((r = v.current) == null ? void 0 : r.previousElementSibling) === p.current || ((i = p.current) == null ? void 0 : i.previousElementSibling) === null) return { ...l, activeOptionIndex: m };
6520
+ if (((r = g.current) == null ? void 0 : r.previousElementSibling) === p.current || ((i = p.current) == null ? void 0 : i.previousElementSibling) === null) return { ...l, activeOptionIndex: m };
6520
6521
  }
6521
6522
  }
6522
6523
  } else if (n.focus === ee.Next) {
6523
6524
  let c = t.activeOptionIndex;
6524
6525
  if (c !== null) {
6525
- let v = t.options[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6526
+ let g = t.options[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6526
6527
  if (m !== null) {
6527
6528
  let p = t.options[m].dataRef.current.domRef;
6528
- if (((o = v.current) == null ? void 0 : o.nextElementSibling) === p.current || ((a = p.current) == null ? void 0 : a.nextElementSibling) === null) return { ...l, activeOptionIndex: m };
6529
+ if (((o = g.current) == null ? void 0 : o.nextElementSibling) === p.current || ((a = p.current) == null ? void 0 : a.nextElementSibling) === null) return { ...l, activeOptionIndex: m };
6529
6530
  }
6530
6531
  }
6531
6532
  }
@@ -6673,9 +6674,9 @@ function Sn(t) {
6673
6674
  }
6674
6675
  let Nh = dt;
6675
6676
  function Fh(t, n) {
6676
- let e = je(), r = dr(), { value: i, defaultValue: o, form: a, name: l, onChange: s, by: u, invalid: c = !1, disabled: v = r || !1, horizontal: m = !1, multiple: p = !1, __demoMode: g = !1, ...b } = t;
6677
+ let e = je(), r = dr(), { value: i, defaultValue: o, form: a, name: l, onChange: s, by: u, invalid: c = !1, disabled: g = r || !1, horizontal: m = !1, multiple: p = !1, __demoMode: v = !1, ...b } = t;
6677
6678
  const x = m ? "horizontal" : "vertical";
6678
- let M = ke(n), C = La(o), [k = p ? [] : void 0, L] = Fa(i, s, C), _ = Bl({ id: e, __demoMode: g }), P = se({ static: !1, hold: !1 }), N = se(/* @__PURE__ */ new Map()), I = qa(u), F = ce((j) => Te(S.mode, { [vt.Multi]: () => k.some((J) => I(J, j)), [vt.Single]: () => I(k, j) }), [k]), S = Ie({ value: k, disabled: v, invalid: c, mode: p ? vt.Multi : vt.Single, orientation: x, onChange: L, compare: I, isSelected: F, optionsPropsRef: P, listRef: N });
6679
+ let M = ke(n), C = La(o), [k = p ? [] : void 0, L] = Fa(i, s, C), _ = Bl({ id: e, __demoMode: v }), P = se({ static: !1, hold: !1 }), N = se(/* @__PURE__ */ new Map()), I = qa(u), F = ce((j) => Te(S.mode, { [vt.Multi]: () => k.some((J) => I(J, j)), [vt.Single]: () => I(k, j) }), [k]), S = Ie({ value: k, disabled: g, invalid: c, mode: p ? vt.Multi : vt.Single, orientation: x, onChange: L, compare: I, isSelected: F, optionsPropsRef: P, listRef: N });
6679
6680
  ve(() => {
6680
6681
  _.state.dataRef.current = S;
6681
6682
  }, [S]);
@@ -6683,19 +6684,19 @@ function Fh(t, n) {
6683
6684
  Ti(E, [R, A], (j, J) => {
6684
6685
  _.send({ type: Vl.CloseListbox }), wr(J, br.Loose) || (j.preventDefault(), R?.focus());
6685
6686
  });
6686
- let V = Ie({ open: z === Fe.Open, disabled: v, invalid: c, value: k }), [Z, D] = hr({ inherit: !0 }), $ = { ref: M }, Y = ce(() => {
6687
+ let V = Ie({ open: z === Fe.Open, disabled: g, invalid: c, value: k }), [Z, D] = hr({ inherit: !0 }), $ = { ref: M }, Y = ce(() => {
6687
6688
  if (C !== void 0) return L?.(C);
6688
6689
  }, [L, C]), O = Ee();
6689
- return q.createElement(D, { value: Z, props: { htmlFor: R?.id }, slot: { open: z === Fe.Open, disabled: v } }, q.createElement($i, null, q.createElement($l.Provider, { value: _ }, q.createElement(Dr.Provider, { value: S }, q.createElement(Ui, { value: Te(z, { [Fe.Open]: Ze.Open, [Fe.Closed]: Ze.Closed }) }, l != null && k != null && q.createElement(Va, { disabled: v, data: { [l]: k }, form: a, onReset: Y }), O({ ourProps: $, theirProps: b, slot: V, defaultTag: Nh, name: "Listbox" }))))));
6690
+ return q.createElement(D, { value: Z, props: { htmlFor: R?.id }, slot: { open: z === Fe.Open, disabled: g } }, q.createElement($i, null, q.createElement($l.Provider, { value: _ }, q.createElement(Dr.Provider, { value: S }, q.createElement(Ui, { value: Te(z, { [Fe.Open]: Ze.Open, [Fe.Closed]: Ze.Closed }) }, l != null && k != null && q.createElement(Va, { disabled: g, data: { [l]: k }, form: a, onReset: Y }), O({ ourProps: $, theirProps: b, slot: V, defaultTag: Nh, name: "Listbox" }))))));
6690
6691
  }
6691
6692
  let Lh = "button";
6692
6693
  function Rh(t, n) {
6693
- let e = je(), r = Ei(), i = Sn("Listbox.Button"), o = qi("Listbox.Button"), { id: a = r || `headlessui-listbox-button-${e}`, disabled: l = i.disabled || !1, autoFocus: s = !1, ...u } = t, c = ke(n, zi(), o.actions.setButtonElement), v = jl(), [m, p, g] = le(o, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), b = m === Fe.Open;
6694
+ let e = je(), r = Ei(), i = Sn("Listbox.Button"), o = qi("Listbox.Button"), { id: a = r || `headlessui-listbox-button-${e}`, disabled: l = i.disabled || !1, autoFocus: s = !1, ...u } = t, c = ke(n, zi(), o.actions.setButtonElement), g = jl(), [m, p, v] = le(o, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), b = m === Fe.Open;
6694
6695
  ki(b, { trigger: p, action: ce((A) => {
6695
6696
  if (p != null && p.contains(A.target)) return Je.Ignore;
6696
6697
  let V = A.target.closest('[role="option"]:not([data-disabled])');
6697
- return tt(V) ? Je.Select(V) : g != null && g.contains(A.target) ? Je.Ignore : Je.Close;
6698
- }, [p, g]), close: o.actions.closeListbox, select: o.actions.selectActiveOption });
6698
+ return tt(V) ? Je.Select(V) : v != null && v.contains(A.target) ? Je.Ignore : Je.Close;
6699
+ }, [p, v]), close: o.actions.closeListbox, select: o.actions.selectActiveOption });
6699
6700
  let x = X((A) => {
6700
6701
  switch (A.key) {
6701
6702
  case re.Enter:
@@ -6714,18 +6715,18 @@ function Rh(t, n) {
6714
6715
  }), C = Ci((A) => {
6715
6716
  var V;
6716
6717
  o.state.listboxState === Fe.Open ? (Ve(() => o.actions.closeListbox()), (V = o.state.buttonElement) == null || V.focus({ preventScroll: !0 })) : (A.preventDefault(), o.actions.openListbox({ focus: ee.Nothing }));
6717
- }), k = X((A) => A.preventDefault()), L = wn([a]), _ = Ua(), { isFocusVisible: P, focusProps: N } = cr({ autoFocus: s }), { isHovered: I, hoverProps: F } = sr({ isDisabled: l }), { pressed: S, pressProps: z } = yi({ disabled: l }), w = Ie({ open: m === Fe.Open, active: S || m === Fe.Open, disabled: l, invalid: i.invalid, value: i.value, hover: I, focus: P, autofocus: s }), E = le(o, (A) => A.listboxState === Fe.Open), R = Rt(v(), { ref: c, id: a, type: Ii(t, p), "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": E, "aria-labelledby": L, "aria-describedby": _, disabled: l || void 0, autoFocus: s, onKeyDown: x, onKeyUp: M, onKeyPress: k }, C, N, F, z);
6718
+ }), k = X((A) => A.preventDefault()), L = wn([a]), _ = Ua(), { isFocusVisible: P, focusProps: N } = cr({ autoFocus: s }), { isHovered: I, hoverProps: F } = sr({ isDisabled: l }), { pressed: S, pressProps: z } = yi({ disabled: l }), w = Ie({ open: m === Fe.Open, active: S || m === Fe.Open, disabled: l, invalid: i.invalid, value: i.value, hover: I, focus: P, autofocus: s }), E = le(o, (A) => A.listboxState === Fe.Open), R = Rt(g(), { ref: c, id: a, type: Ii(t, p), "aria-haspopup": "listbox", "aria-controls": v?.id, "aria-expanded": E, "aria-labelledby": L, "aria-describedby": _, disabled: l || void 0, autoFocus: s, onKeyDown: x, onKeyUp: M, onKeyPress: k }, C, N, F, z);
6718
6719
  return Ee()({ ourProps: R, theirProps: u, slot: w, defaultTag: Lh, name: "Listbox.Button" });
6719
6720
  }
6720
6721
  let Yl = pe(!1), _h = "div", Hh = At.RenderStrategy | At.Static;
6721
6722
  function zh(t, n) {
6722
- let e = je(), { id: r = `headlessui-listbox-options-${e}`, anchor: i, portal: o = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Hi(i), [c, v] = we(null);
6723
+ let e = je(), { id: r = `headlessui-listbox-options-${e}`, anchor: i, portal: o = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Hi(i), [c, g] = we(null);
6723
6724
  u && (o = !0);
6724
- let m = Sn("Listbox.Options"), p = qi("Listbox.Options"), [g, b, x, M] = le(p, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), C = Pt(b), k = Pt(x), L = Yi(), [_, P] = Ni(l, c, L !== null ? (L & Ze.Open) === Ze.Open : g === Fe.Open);
6725
+ let m = Sn("Listbox.Options"), p = qi("Listbox.Options"), [v, b, x, M] = le(p, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), C = Pt(b), k = Pt(x), L = Yi(), [_, P] = Ni(l, c, L !== null ? (L & Ze.Open) === Ze.Open : v === Fe.Open);
6725
6726
  Di(_, b, p.actions.closeListbox);
6726
- let N = M ? !1 : a && g === Fe.Open;
6727
+ let N = M ? !1 : a && v === Fe.Open;
6727
6728
  ji(N, k);
6728
- let I = M ? !1 : a && g === Fe.Open;
6729
+ let I = M ? !1 : a && v === Fe.Open;
6729
6730
  Oi(I, { allowed: ce(() => [b, x], [b, x]) });
6730
6731
  let F = le(p, p.selectors.didButtonMove) ? !1 : _, S = le(p, p.selectors.hasFrozenValue) && !t.static, z = rr(S, m.value), w = ce((B) => m.compare(z, B), [m.compare, z]), E = le(p, (B) => {
6731
6732
  var te;
@@ -6737,11 +6738,11 @@ function zh(t, n) {
6737
6738
  if (E === null) return { ...u, inner: void 0 };
6738
6739
  let B = Array.from(m.listRef.current.values());
6739
6740
  return { ...u, inner: { listRef: { current: B }, index: E } };
6740
- })(), [A, V] = Wi(R), Z = Vi(), D = ke(n, u ? A : null, p.actions.setOptionsElement, v), $ = xt();
6741
+ })(), [A, V] = Wi(R), Z = Vi(), D = ke(n, u ? A : null, p.actions.setOptionsElement, g), $ = xt();
6741
6742
  ye(() => {
6742
6743
  let B = x;
6743
- B && g === Fe.Open && (ur(B) || B == null || B.focus({ preventScroll: !0 }));
6744
- }, [g, x]);
6744
+ B && v === Fe.Open && (ur(B) || B == null || B.focus({ preventScroll: !0 }));
6745
+ }, [v, x]);
6745
6746
  let Y = X((B) => {
6746
6747
  var te;
6747
6748
  switch ($.dispose(), B.key) {
@@ -6773,12 +6774,12 @@ function zh(t, n) {
6773
6774
  }), O = le(p, (B) => {
6774
6775
  var te;
6775
6776
  return (te = B.buttonElement) == null ? void 0 : te.id;
6776
- }), j = Ie({ open: g === Fe.Open }), J = Rt(u ? Z() : {}, { id: r, ref: D, "aria-activedescendant": le(p, p.selectors.activeDescendantId), "aria-multiselectable": m.mode === vt.Multi ? !0 : void 0, "aria-labelledby": O, "aria-orientation": m.orientation, onKeyDown: Y, role: "listbox", tabIndex: g === Fe.Open ? 0 : void 0, style: { ...s.style, ...V, "--button-width": Kn(_, b, !0).width }, ...Pi(P) }), ne = Ee(), de = Me(() => m.mode === vt.Multi ? m : { ...m, isSelected: w }, [m, w]);
6777
+ }), j = Ie({ open: v === Fe.Open }), J = Rt(u ? Z() : {}, { id: r, ref: D, "aria-activedescendant": le(p, p.selectors.activeDescendantId), "aria-multiselectable": m.mode === vt.Multi ? !0 : void 0, "aria-labelledby": O, "aria-orientation": m.orientation, onKeyDown: Y, role: "listbox", tabIndex: v === Fe.Open ? 0 : void 0, style: { ...s.style, ...V, "--button-width": Kn(_, b, !0).width }, ...Pi(P) }), ne = Ee(), de = Me(() => m.mode === vt.Multi ? m : { ...m, isSelected: w }, [m, w]);
6777
6778
  return q.createElement(Ki, { enabled: o ? t.static || _ : !1, ownerDocument: C }, q.createElement(Dr.Provider, { value: de }, ne({ ourProps: J, theirProps: s, slot: j, defaultTag: _h, features: Hh, visible: F, name: "Listbox.Options" })));
6778
6779
  }
6779
6780
  let Vh = "div";
6780
6781
  function Wh(t, n) {
6781
- let e = je(), { id: r = `headlessui-listbox-option-${e}`, disabled: i = !1, value: o, ...a } = t, l = be(Yl) === !0, s = Sn("Listbox.Option"), u = qi("Listbox.Option"), c = le(u, (S) => u.selectors.isActive(S, r)), v = s.isSelected(o), m = se(null), p = zl(m), g = Et({ disabled: i, value: o, domRef: m, get textValue() {
6782
+ let e = je(), { id: r = `headlessui-listbox-option-${e}`, disabled: i = !1, value: o, ...a } = t, l = be(Yl) === !0, s = Sn("Listbox.Option"), u = qi("Listbox.Option"), c = le(u, (S) => u.selectors.isActive(S, r)), g = s.isSelected(o), m = se(null), p = zl(m), v = Et({ disabled: i, value: o, domRef: m, get textValue() {
6782
6783
  return p();
6783
6784
  } }), b = ke(n, m, (S) => {
6784
6785
  S ? s.listRef.current.set(r, S) : s.listRef.current.delete(r);
@@ -6789,8 +6790,8 @@ function Wh(t, n) {
6789
6790
  (z = (S = m.current) == null ? void 0 : S.scrollIntoView) == null || z.call(S, { block: "nearest" });
6790
6791
  });
6791
6792
  }, [x, m]), ve(() => {
6792
- if (!l) return u.actions.registerOption(r, g), () => u.actions.unregisterOption(r);
6793
- }, [g, r, l]);
6793
+ if (!l) return u.actions.registerOption(r, v), () => u.actions.unregisterOption(r);
6794
+ }, [v, r, l]);
6794
6795
  let M = X((S) => {
6795
6796
  if (i) return S.preventDefault();
6796
6797
  u.actions.selectOption(o);
@@ -6801,8 +6802,8 @@ function Wh(t, n) {
6801
6802
  k.wasMoved(S) && (i || c && u.state.activationTrigger === zn.Pointer || u.actions.goToOption({ focus: ee.Specific, id: r }, zn.Pointer));
6802
6803
  }), P = X((S) => {
6803
6804
  k.wasMoved(S) && (i || c && u.state.activationTrigger === zn.Pointer && u.actions.goToOption({ focus: ee.Nothing }));
6804
- }), N = Ie({ active: c, focus: c, selected: v, disabled: i, selectedOption: v && l }), I = l ? {} : { id: r, ref: b, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onClick: M, onFocus: C, onPointerEnter: L, onMouseEnter: L, onPointerMove: _, onMouseMove: _, onPointerLeave: P, onMouseLeave: P }, F = Ee();
6805
- return !v && l ? null : F({ ourProps: I, theirProps: a, slot: N, defaultTag: Vh, name: "Listbox.Option" });
6805
+ }), N = Ie({ active: c, focus: c, selected: g, disabled: i, selectedOption: g && l }), I = l ? {} : { id: r, ref: b, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onClick: M, onFocus: C, onPointerEnter: L, onMouseEnter: L, onPointerMove: _, onMouseMove: _, onPointerLeave: P, onMouseLeave: P }, F = Ee();
6806
+ return !g && l ? null : F({ ourProps: I, theirProps: a, slot: N, defaultTag: Vh, name: "Listbox.Option" });
6806
6807
  }
6807
6808
  let $h = dt;
6808
6809
  function Bh(t, n) {
@@ -6831,19 +6832,19 @@ let Jh = { 1(t) {
6831
6832
  if (n.focus === ee.Previous) {
6832
6833
  let c = t.activeItemIndex;
6833
6834
  if (c !== null) {
6834
- let v = t.items[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6835
+ let g = t.items[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6835
6836
  if (m !== null) {
6836
6837
  let p = t.items[m].dataRef.current.domRef;
6837
- if (((r = v.current) == null ? void 0 : r.previousElementSibling) === p.current || ((i = p.current) == null ? void 0 : i.previousElementSibling) === null) return { ...l, activeItemIndex: m };
6838
+ if (((r = g.current) == null ? void 0 : r.previousElementSibling) === p.current || ((i = p.current) == null ? void 0 : i.previousElementSibling) === null) return { ...l, activeItemIndex: m };
6838
6839
  }
6839
6840
  }
6840
6841
  } else if (n.focus === ee.Next) {
6841
6842
  let c = t.activeItemIndex;
6842
6843
  if (c !== null) {
6843
- let v = t.items[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6844
+ let g = t.items[c].dataRef.current.domRef, m = it(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
6844
6845
  if (m !== null) {
6845
6846
  let p = t.items[m].dataRef.current.domRef;
6846
- if (((o = v.current) == null ? void 0 : o.nextElementSibling) === p.current || ((a = p.current) == null ? void 0 : a.nextElementSibling) === null) return { ...l, activeItemIndex: m };
6847
+ if (((o = g.current) == null ? void 0 : o.nextElementSibling) === p.current || ((a = p.current) == null ? void 0 : a.nextElementSibling) === null) return { ...l, activeItemIndex: m };
6847
6848
  }
6848
6849
  }
6849
6850
  }
@@ -6934,19 +6935,19 @@ function Kl({ id: t, __demoMode: n = !1 }) {
6934
6935
  }
6935
6936
  let eg = dt;
6936
6937
  function tg(t, n) {
6937
- let e = je(), { __demoMode: r = !1, ...i } = t, o = Kl({ id: e, __demoMode: r }), [a, l, s] = le(o, (x) => [x.menuState, x.itemsElement, x.buttonElement]), u = ke(n), c = _t.get(null), v = le(c, ce((x) => c.selectors.isTop(x, e), [c, e]));
6938
- Ti(v, [s, l], (x, M) => {
6938
+ let e = je(), { __demoMode: r = !1, ...i } = t, o = Kl({ id: e, __demoMode: r }), [a, l, s] = le(o, (x) => [x.menuState, x.itemsElement, x.buttonElement]), u = ke(n), c = _t.get(null), g = le(c, ce((x) => c.selectors.isTop(x, e), [c, e]));
6939
+ Ti(g, [s, l], (x, M) => {
6939
6940
  var C;
6940
6941
  o.send({ type: ge.CloseMenu }), wr(M, br.Loose) || (x.preventDefault(), (C = o.state.buttonElement) == null || C.focus());
6941
6942
  });
6942
6943
  let m = X(() => {
6943
6944
  o.send({ type: ge.CloseMenu });
6944
- }), p = Ie({ open: a === Pe.Open, close: m }), g = { ref: u }, b = Ee();
6945
- return q.createElement($i, null, q.createElement(Ul.Provider, { value: o }, q.createElement(Ui, { value: Te(a, { [Pe.Open]: Ze.Open, [Pe.Closed]: Ze.Closed }) }, b({ ourProps: g, theirProps: i, slot: p, defaultTag: eg, name: "Menu" }))));
6945
+ }), p = Ie({ open: a === Pe.Open, close: m }), v = { ref: u }, b = Ee();
6946
+ return q.createElement($i, null, q.createElement(Ul.Provider, { value: o }, q.createElement(Ui, { value: Te(a, { [Pe.Open]: Ze.Open, [Pe.Closed]: Ze.Closed }) }, b({ ourProps: v, theirProps: i, slot: p, defaultTag: eg, name: "Menu" }))));
6946
6947
  }
6947
6948
  let ng = "button";
6948
6949
  function rg(t, n) {
6949
- let e = Qi("Menu.Button"), r = je(), { id: i = `headlessui-menu-button-${r}`, disabled: o = !1, autoFocus: a = !1, ...l } = t, s = se(null), u = jl(), c = ke(n, s, zi(), X((S) => e.send({ type: ge.SetButtonElement, element: S }))), v = X((S) => {
6950
+ let e = Qi("Menu.Button"), r = je(), { id: i = `headlessui-menu-button-${r}`, disabled: o = !1, autoFocus: a = !1, ...l } = t, s = se(null), u = jl(), c = ke(n, s, zi(), X((S) => e.send({ type: ge.SetButtonElement, element: S }))), g = X((S) => {
6950
6951
  switch (S.key) {
6951
6952
  case re.Space:
6952
6953
  case re.Enter:
@@ -6959,35 +6960,35 @@ function rg(t, n) {
6959
6960
  }
6960
6961
  }), m = X((S) => {
6961
6962
  S.key === re.Space && S.preventDefault();
6962
- }), [p, g, b] = le(e, (S) => [S.menuState, S.buttonElement, S.itemsElement]), x = p === Pe.Open;
6963
- ki(x, { trigger: g, action: ce((S) => {
6964
- if (g != null && g.contains(S.target)) return Je.Ignore;
6963
+ }), [p, v, b] = le(e, (S) => [S.menuState, S.buttonElement, S.itemsElement]), x = p === Pe.Open;
6964
+ ki(x, { trigger: v, action: ce((S) => {
6965
+ if (v != null && v.contains(S.target)) return Je.Ignore;
6965
6966
  let z = S.target.closest('[role="menuitem"]:not([data-disabled])');
6966
6967
  return tt(z) ? Je.Select(z) : b != null && b.contains(S.target) ? Je.Ignore : Je.Close;
6967
- }, [g, b]), close: ce(() => e.send({ type: ge.CloseMenu }), []), select: ce((S) => S.click(), []) });
6968
+ }, [v, b]), close: ce(() => e.send({ type: ge.CloseMenu }), []), select: ce((S) => S.click(), []) });
6968
6969
  let M = Ci((S) => {
6969
6970
  var z;
6970
6971
  o || (p === Pe.Open ? (Ve(() => e.send({ type: ge.CloseMenu })), (z = s.current) == null || z.focus({ preventScroll: !0 })) : (S.preventDefault(), e.send({ type: ge.OpenMenu, focus: { focus: ee.Nothing }, trigger: ir.Pointer })));
6971
- }), { isFocusVisible: C, focusProps: k } = cr({ autoFocus: a }), { isHovered: L, hoverProps: _ } = sr({ isDisabled: o }), { pressed: P, pressProps: N } = yi({ disabled: o }), I = Ie({ open: p === Pe.Open, active: P || p === Pe.Open, disabled: o, hover: L, focus: C, autofocus: a }), F = Rt(u(), { ref: c, id: i, type: Ii(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": p === Pe.Open, disabled: o || void 0, autoFocus: a, onKeyDown: v, onKeyUp: m }, M, k, _, N);
6972
+ }), { isFocusVisible: C, focusProps: k } = cr({ autoFocus: a }), { isHovered: L, hoverProps: _ } = sr({ isDisabled: o }), { pressed: P, pressProps: N } = yi({ disabled: o }), I = Ie({ open: p === Pe.Open, active: P || p === Pe.Open, disabled: o, hover: L, focus: C, autofocus: a }), F = Rt(u(), { ref: c, id: i, type: Ii(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": p === Pe.Open, disabled: o || void 0, autoFocus: a, onKeyDown: g, onKeyUp: m }, M, k, _, N);
6972
6973
  return Ee()({ ourProps: F, theirProps: l, slot: I, defaultTag: ng, name: "Menu.Button" });
6973
6974
  }
6974
6975
  let ig = "div", og = At.RenderStrategy | At.Static;
6975
6976
  function ag(t, n) {
6976
- let e = je(), { id: r = `headlessui-menu-items-${e}`, anchor: i, portal: o = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Hi(i), c = Qi("Menu.Items"), [v, m] = Wi(u), p = Vi(), [g, b] = we(null), x = ke(n, u ? v : null, X((D) => c.send({ type: ge.SetItemsElement, element: D })), b), [M, C] = le(c, (D) => [D.menuState, D.buttonElement]), k = Pt(C), L = Pt(g);
6977
+ let e = je(), { id: r = `headlessui-menu-items-${e}`, anchor: i, portal: o = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Hi(i), c = Qi("Menu.Items"), [g, m] = Wi(u), p = Vi(), [v, b] = we(null), x = ke(n, u ? g : null, X((D) => c.send({ type: ge.SetItemsElement, element: D })), b), [M, C] = le(c, (D) => [D.menuState, D.buttonElement]), k = Pt(C), L = Pt(v);
6977
6978
  u && (o = !0);
6978
- let _ = Yi(), [P, N] = Ni(l, g, _ !== null ? (_ & Ze.Open) === Ze.Open : M === Pe.Open);
6979
+ let _ = Yi(), [P, N] = Ni(l, v, _ !== null ? (_ & Ze.Open) === Ze.Open : M === Pe.Open);
6979
6980
  Di(P, C, () => {
6980
6981
  c.send({ type: ge.CloseMenu });
6981
6982
  });
6982
6983
  let I = le(c, (D) => D.__demoMode), F = I ? !1 : a && M === Pe.Open;
6983
6984
  ji(F, L);
6984
6985
  let S = I ? !1 : a && M === Pe.Open;
6985
- Oi(S, { allowed: ce(() => [C, g], [C, g]) });
6986
+ Oi(S, { allowed: ce(() => [C, v], [C, v]) });
6986
6987
  let z = le(c, c.selectors.didButtonMove) ? !1 : P;
6987
6988
  ye(() => {
6988
- let D = g;
6989
+ let D = v;
6989
6990
  D && M === Pe.Open && (ur(D) || D.focus({ preventScroll: !0 }));
6990
- }, [M, g]), al(M === Pe.Open, { container: g, accept(D) {
6991
+ }, [M, v]), al(M === Pe.Open, { container: v, accept(D) {
6991
6992
  return D.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : D.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
6992
6993
  }, walk(D) {
6993
6994
  D.setAttribute("role", "none");
@@ -7041,15 +7042,15 @@ function sg(t, n) {
7041
7042
  (w = (z = s.current) == null ? void 0 : z.scrollIntoView) == null || w.call(z, { block: "nearest" });
7042
7043
  });
7043
7044
  }, [c, s]);
7044
- let v = zl(s), m = se({ disabled: i, domRef: s, get textValue() {
7045
- return v();
7045
+ let g = zl(s), m = se({ disabled: i, domRef: s, get textValue() {
7046
+ return g();
7046
7047
  } });
7047
7048
  ve(() => {
7048
7049
  m.current.disabled = i;
7049
7050
  }, [m, i]), ve(() => (a.actions.registerItem(r, m), () => a.actions.unregisterItem(r)), [m, r]);
7050
7051
  let p = X(() => {
7051
7052
  a.send({ type: ge.CloseMenu });
7052
- }), g = X((z) => {
7053
+ }), v = X((z) => {
7053
7054
  if (i) return z.preventDefault();
7054
7055
  a.send({ type: ge.CloseMenu }), nl(a.state.buttonElement);
7055
7056
  }), b = X(() => {
@@ -7059,7 +7060,7 @@ function sg(t, n) {
7059
7060
  x.wasMoved(z) && (i || l || a.send({ type: ge.GoToItem, focus: ee.Specific, id: r, trigger: ir.Pointer }));
7060
7061
  }), k = X((z) => {
7061
7062
  x.wasMoved(z) && (i || l && a.state.activationTrigger === ir.Pointer && a.send({ type: ge.GoToItem, focus: ee.Nothing }));
7062
- }), [L, _] = hr(), [P, N] = ff(), I = Ie({ active: l, focus: l, disabled: i, close: p }), F = { id: r, ref: u, role: "menuitem", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-labelledby": L, "aria-describedby": P, disabled: void 0, onClick: g, onFocus: b, onPointerEnter: M, onMouseEnter: M, onPointerMove: C, onMouseMove: C, onPointerLeave: k, onMouseLeave: k }, S = Ee();
7063
+ }), [L, _] = hr(), [P, N] = ff(), I = Ie({ active: l, focus: l, disabled: i, close: p }), F = { id: r, ref: u, role: "menuitem", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-labelledby": L, "aria-describedby": P, disabled: void 0, onClick: v, onFocus: b, onPointerEnter: M, onMouseEnter: M, onPointerMove: C, onMouseMove: C, onPointerLeave: k, onMouseLeave: k }, S = Ee();
7063
7064
  return q.createElement(_, null, q.createElement(N, null, S({ ourProps: F, theirProps: o, slot: I, defaultTag: lg, name: "Menu.Item" })));
7064
7065
  }
7065
7066
  let cg = "div";
@@ -7544,15 +7545,15 @@ var Gr = function() {
7544
7545
  var n = t.config, e = n === void 0 ? $t : n, r = t.l10n, i = r === void 0 ? gn : r, o = t.isMobile, a = o === void 0 ? !1 : o;
7545
7546
  return function(l, s, u) {
7546
7547
  var c = u || i;
7547
- return e.formatDate !== void 0 && !a ? e.formatDate(l, s, c) : s.split("").map(function(v, m, p) {
7548
- return ln[v] && p[m - 1] !== "\\" ? ln[v](l, c, e) : v !== "\\" ? v : "";
7548
+ return e.formatDate !== void 0 && !a ? e.formatDate(l, s, c) : s.split("").map(function(g, m, p) {
7549
+ return ln[g] && p[m - 1] !== "\\" ? ln[g](l, c, e) : g !== "\\" ? g : "";
7549
7550
  }).join("");
7550
7551
  };
7551
7552
  }, di = function(t) {
7552
7553
  var n = t.config, e = n === void 0 ? $t : n, r = t.l10n, i = r === void 0 ? gn : r;
7553
7554
  return function(o, a, l, s) {
7554
7555
  if (!(o !== 0 && !o)) {
7555
- var u = s || i, c, v = o;
7556
+ var u = s || i, c, g = o;
7556
7557
  if (o instanceof Date)
7557
7558
  c = new Date(o.getTime());
7558
7559
  else if (typeof o != "string" && o.toFixed !== void 0)
@@ -7566,12 +7567,12 @@ var Gr = function() {
7566
7567
  else if (/Z$/.test(p) || /GMT$/.test(p))
7567
7568
  c = new Date(o);
7568
7569
  else {
7569
- for (var g = void 0, b = [], x = 0, M = 0, C = ""; x < m.length; x++) {
7570
+ for (var v = void 0, b = [], x = 0, M = 0, C = ""; x < m.length; x++) {
7570
7571
  var k = m[x], L = k === "\\", _ = m[x - 1] === "\\" || L;
7571
7572
  if (Dt[k] && !_) {
7572
7573
  C += Dt[k];
7573
7574
  var P = new RegExp(C).exec(o);
7574
- P && (g = !0) && b[k !== "Y" ? "push" : "unshift"]({
7575
+ P && (v = !0) && b[k !== "Y" ? "push" : "unshift"]({
7575
7576
  fn: kg[k],
7576
7577
  val: P[++M]
7577
7578
  });
@@ -7580,11 +7581,11 @@ var Gr = function() {
7580
7581
  c = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), b.forEach(function(N) {
7581
7582
  var I = N.fn, F = N.val;
7582
7583
  return c = I(c, F, u) || c;
7583
- }), c = g ? c : void 0;
7584
+ }), c = v ? c : void 0;
7584
7585
  }
7585
7586
  }
7586
7587
  if (!(c instanceof Date && !isNaN(c.getTime()))) {
7587
- e.errorHandler(new Error("Invalid date provided: " + v));
7588
+ e.errorHandler(new Error("Invalid date provided: " + g));
7588
7589
  return;
7589
7590
  }
7590
7591
  return l === !0 && c.setHours(0, 0, 0, 0), c;
@@ -7687,7 +7688,7 @@ function Ng(t, n) {
7687
7688
  }
7688
7689
  f !== void 0 && f.type !== "blur" && fs(f);
7689
7690
  var T = e._input.value;
7690
- v(), st(), e._input.value !== T && e._debouncedChange();
7691
+ g(), st(), e._input.value !== T && e._debouncedChange();
7691
7692
  }
7692
7693
  function u(f, h) {
7693
7694
  return f % 12 + 12 * Ge(h === e.l10n.amPM[1]);
@@ -7701,7 +7702,7 @@ function Ng(t, n) {
7701
7702
  return f % 12;
7702
7703
  }
7703
7704
  }
7704
- function v() {
7705
+ function g() {
7705
7706
  if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
7706
7707
  var f = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, h = (parseInt(e.minuteElement.value, 10) || 0) % 60, y = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
7707
7708
  e.amPM !== void 0 && (f = u(f, e.amPM.textContent));
@@ -7732,7 +7733,7 @@ function Ng(t, n) {
7732
7733
  function p(f, h, y) {
7733
7734
  e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(f % 24, h, y || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = ze(e.config.time_24hr ? f : (12 + f) % 12 + 12 * Ge(f % 12 === 0)), e.minuteElement.value = ze(h), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[Ge(f >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = ze(y)));
7734
7735
  }
7735
- function g(f) {
7736
+ function v(f) {
7736
7737
  var h = $e(f), y = parseInt(h.value) + (f.delta || 0);
7737
7738
  (y / 1e3 > 1 || f.key === "Enter" && !/[^\d]/.test(y.toString())) && te(y);
7738
7739
  }
@@ -7766,7 +7767,7 @@ function Ng(t, n) {
7766
7767
  var f = ha(Jl, 50);
7767
7768
  if (e._debouncedChange = ha(x, Pg), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && b(e.daysContainer, "mouseover", function(y) {
7768
7769
  e.config.mode === "range" && Mn($e(y));
7769
- }), b(e._input, "keydown", Ce), e.calendarContainer !== void 0 && b(e.calendarContainer, "keydown", Ce), !e.config.inline && !e.config.static && b(window, "resize", f), window.ontouchstart !== void 0 ? b(window.document, "touchstart", B) : b(window.document, "mousedown", B), b(window.document, "focus", B, { capture: !0 }), e.config.clickOpens === !0 && (b(e._input, "focus", e.open), b(e._input, "click", e.open)), e.daysContainer !== void 0 && (b(e.monthNav, "click", ds), b(e.monthNav, ["keyup", "increment"], g), b(e.daysContainer, "click", no)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
7770
+ }), b(e._input, "keydown", Ce), e.calendarContainer !== void 0 && b(e.calendarContainer, "keydown", Ce), !e.config.inline && !e.config.static && b(window, "resize", f), window.ontouchstart !== void 0 ? b(window.document, "touchstart", B) : b(window.document, "mousedown", B), b(window.document, "focus", B, { capture: !0 }), e.config.clickOpens === !0 && (b(e._input, "focus", e.open), b(e._input, "click", e.open)), e.daysContainer !== void 0 && (b(e.monthNav, "click", ds), b(e.monthNav, ["keyup", "increment"], v), b(e.daysContainer, "click", no)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
7770
7771
  var h = function(y) {
7771
7772
  return $e(y).select();
7772
7773
  };
@@ -8132,11 +8133,11 @@ function Ng(t, n) {
8132
8133
  switch (f.key) {
8133
8134
  case e.l10n.amPM[0].charAt(0):
8134
8135
  case e.l10n.amPM[0].charAt(0).toLowerCase():
8135
- e.amPM.textContent = e.l10n.amPM[0], v(), st();
8136
+ e.amPM.textContent = e.l10n.amPM[0], g(), st();
8136
8137
  break;
8137
8138
  case e.l10n.amPM[1].charAt(0):
8138
8139
  case e.l10n.amPM[1].charAt(0).toLowerCase():
8139
- e.amPM.textContent = e.l10n.amPM[1], v(), st();
8140
+ e.amPM.textContent = e.l10n.amPM[1], g(), st();
8140
8141
  break;
8141
8142
  }
8142
8143
  (y || de(h)) && xe("onKeyDown", f);
@@ -8345,7 +8346,7 @@ function Ng(t, n) {
8345
8346
  } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = W, e.selectedDates.push(W), Be(W, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(ie, he) {
8346
8347
  return ie.getTime() - he.getTime();
8347
8348
  }));
8348
- if (v(), U) {
8349
+ if (g(), U) {
8349
8350
  var Q = e.currentYear !== W.getFullYear();
8350
8351
  e.currentYear = W.getFullYear(), e.currentMonth = W.getMonth(), Q && (xe("onYearChange"), E()), xe("onMonthChange");
8351
8352
  }
@@ -8725,7 +8726,7 @@ const Lg = `
8725
8726
  className: a = "",
8726
8727
  ...l
8727
8728
  }) => {
8728
- const [s, u] = we(!0), c = se(null), { text: v, children: m } = l, p = () => {
8729
+ const [s, u] = we(!0), c = se(null), { text: g, children: m } = l, p = () => {
8729
8730
  u(!1), o && o();
8730
8731
  };
8731
8732
  if (ye(() => () => {
@@ -8733,7 +8734,7 @@ const Lg = `
8733
8734
  }, []), ye(() => {
8734
8735
  Ug(r, i, p, c);
8735
8736
  }, [r, i]), !s) return null;
8736
- const g = Bg(n), b = Vg(n), x = Wg(n);
8737
+ const v = Bg(n), b = Vg(n), x = Wg(n);
8737
8738
  return /* @__PURE__ */ H.jsxs(
8738
8739
  "div",
8739
8740
  {
@@ -8741,10 +8742,10 @@ const Lg = `
8741
8742
  ...l,
8742
8743
  children: [
8743
8744
  /* @__PURE__ */ H.jsx("div", { className: `juno-message-border ${Hg} ${x}` }),
8744
- /* @__PURE__ */ H.jsx(Wn, { icon: g, className: `${Yg(n)}` }),
8745
+ /* @__PURE__ */ H.jsx(Wn, { icon: v, className: `${Yg(n)}` }),
8745
8746
  /* @__PURE__ */ H.jsxs("div", { className: `juno-message-content ${_g}`, children: [
8746
8747
  t && /* @__PURE__ */ H.jsx("h1", { className: Rg, children: t }),
8747
- /* @__PURE__ */ H.jsx("div", { children: m || v })
8748
+ /* @__PURE__ */ H.jsx("div", { children: m || g })
8748
8749
  ] }),
8749
8750
  e && /* @__PURE__ */ H.jsx("div", { className: zg, children: /* @__PURE__ */ H.jsx(
8750
8751
  Wn,
@@ -9016,7 +9017,7 @@ var ct = {
9016
9017
  if (!w)
9017
9018
  throw new Error("Your focus-trap needs to have at least one focusable element");
9018
9019
  return w;
9019
- }, v = function() {
9020
+ }, g = function() {
9020
9021
  if (o.containerGroups = o.containers.map(function(w) {
9021
9022
  var E = bl(w, i.tabbableOptions), R = wl(w, i.tabbableOptions), A = E.length > 0 ? E[0] : void 0, V = E.length > 0 ? E[E.length - 1] : void 0, Z = R.find(function(Y) {
9022
9023
  return Ct(Y);
@@ -9085,14 +9086,14 @@ var ct = {
9085
9086
  preventScroll: !!i.preventScroll
9086
9087
  }), o.mostRecentlyFocusedNode = w, nv(w) && w.select();
9087
9088
  }
9088
- }, g = function(w) {
9089
+ }, v = function(w) {
9089
9090
  var E = u("setReturnFocus", {
9090
9091
  params: [w]
9091
9092
  });
9092
9093
  return E || (E === !1 ? !1 : w);
9093
9094
  }, b = function(w) {
9094
9095
  var E = w.target, R = w.event, A = w.isBackward, V = A === void 0 ? !1 : A;
9095
- E = E || Ln(R), v();
9096
+ E = E || Ln(R), g();
9096
9097
  var Z = null;
9097
9098
  if (o.tabbableGroups.length > 0) {
9098
9099
  var D = s(E, R), $ = D >= 0 ? o.containerGroups[D] : void 0;
@@ -9269,9 +9270,9 @@ var ct = {
9269
9270
  (D = V._setSubtreeIsolation) === null || D === void 0 || D.call(V, !1), Z = !0;
9270
9271
  }
9271
9272
  try {
9272
- A || v(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = m(e), E?.();
9273
+ A || g(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = m(e), E?.();
9273
9274
  var $ = function() {
9274
- A && v(), P(), z(), i.isolateSubtrees && a._setSubtreeIsolation(!0), R?.();
9275
+ A && g(), P(), z(), i.isolateSubtrees && a._setSubtreeIsolation(!0), R?.();
9275
9276
  };
9276
9277
  if (A)
9277
9278
  return A(o.containers.concat()).then($, $), this;
@@ -9298,10 +9299,10 @@ var ct = {
9298
9299
  R?.();
9299
9300
  var D = function() {
9300
9301
  ya(function() {
9301
- Z && p(g(o.nodeFocusedBeforeActivation)), A?.();
9302
+ Z && p(v(o.nodeFocusedBeforeActivation)), A?.();
9302
9303
  });
9303
9304
  };
9304
- return Z && V ? (V(g(o.nodeFocusedBeforeActivation)).then(D, D), this) : (D(), this);
9305
+ return Z && V ? (V(v(o.nodeFocusedBeforeActivation)).then(D, D), this) : (D(), this);
9305
9306
  },
9306
9307
  pause: function(w) {
9307
9308
  return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0, w)) : this;
@@ -9313,7 +9314,7 @@ var ct = {
9313
9314
  var E = [].concat(w).filter(Boolean);
9314
9315
  return o.containers = E.map(function(R) {
9315
9316
  return typeof R == "string" ? e.querySelector(R) : R;
9316
- }), i.isolateSubtrees && N(o.containers), o.active && (v(), i.isolateSubtrees && !o.paused && a._setSubtreeIsolation(!0)), z(), this;
9317
+ }), i.isolateSubtrees && N(o.containers), o.active && (g(), i.isolateSubtrees && !o.paused && a._setSubtreeIsolation(!0)), z(), this;
9317
9318
  }
9318
9319
  }, Object.defineProperties(a, {
9319
9320
  _isManuallyPaused: {
@@ -9330,7 +9331,7 @@ var ct = {
9330
9331
  R?.(), I(), z(), a._setSubtreeIsolation(!1), A?.();
9331
9332
  } else {
9332
9333
  var V = l(E, "onUnpause"), Z = l(E, "onPostUnpause");
9333
- V?.(), a._setSubtreeIsolation(!0), v(), P(), z(), Z?.();
9334
+ V?.(), a._setSubtreeIsolation(!0), g(), P(), z(), Z?.();
9334
9335
  }
9335
9336
  return this;
9336
9337
  }
@@ -9368,7 +9369,7 @@ function dv() {
9368
9369
  function i(N, I) {
9369
9370
  for (var F = 0; F < I.length; F++) {
9370
9371
  var S = I[F];
9371
- S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(N, g(S.key), S);
9372
+ S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(N, v(S.key), S);
9372
9373
  }
9373
9374
  }
9374
9375
  function o(N, I, F) {
@@ -9401,7 +9402,7 @@ function dv() {
9401
9402
  return I.__proto__ || Object.getPrototypeOf(I);
9402
9403
  }, c(N);
9403
9404
  }
9404
- function v(N, I) {
9405
+ function g(N, I) {
9405
9406
  if (typeof I != "function" && I !== null) throw new TypeError("Super expression must either be null or a function");
9406
9407
  N.prototype = Object.create(I && I.prototype, { constructor: { value: N, writable: !0, configurable: !0 } }), Object.defineProperty(N, "prototype", { writable: !1 }), I && m(N, I);
9407
9408
  }
@@ -9411,9 +9412,9 @@ function dv() {
9411
9412
  }, m(N, I);
9412
9413
  }
9413
9414
  function p(N, I, F) {
9414
- return (I = g(I)) in N ? Object.defineProperty(N, I, { value: F, enumerable: !0, configurable: !0, writable: !0 }) : N[I] = F, N;
9415
+ return (I = v(I)) in N ? Object.defineProperty(N, I, { value: F, enumerable: !0, configurable: !0, writable: !0 }) : N[I] = F, N;
9415
9416
  }
9416
- function g(N) {
9417
+ function v(N) {
9417
9418
  var I = b(N, "string");
9418
9419
  return t(I) == "symbol" ? I : I + "";
9419
9420
  }
@@ -9490,7 +9491,7 @@ function dv() {
9490
9491
  }
9491
9492
  return S.outsideClick = null, S.focusTrapElements = F.containerElements || [], S.updatePreviousElement(), S;
9492
9493
  }
9493
- return v(I, N), o(I, [{
9494
+ return g(I, N), o(I, [{
9494
9495
  key: "getDocument",
9495
9496
  value: function() {
9496
9497
  return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
@@ -9688,8 +9689,8 @@ K(function({ children: t, asChild: n = !1, className: e = "", ...r }, i) {
9688
9689
  ...l,
9689
9690
  "data-state": o.open ? "open" : "closed",
9690
9691
  className: l.className + `${o.disabled && " jn:cursor-default"}`
9691
- }, v = o.getReferenceProps(c);
9692
- return pi(t, v);
9692
+ }, g = o.getReferenceProps(c);
9693
+ return pi(t, g);
9693
9694
  }
9694
9695
  return /* @__PURE__ */ H.jsx(
9695
9696
  "button",