@kpf_/kiso 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kiso.js CHANGED
@@ -65,10 +65,10 @@ function w1() {
65
65
  ue.unshift("Warning: " + T), Function.prototype.apply.call(console[y], console, ue);
66
66
  }
67
67
  }
68
- var A = !1, S = !1, k = !1, C = !1, O = !1, F;
68
+ var S = !1, A = !1, M = !1, C = !1, O = !1, F;
69
69
  F = Symbol.for("react.module.reference");
70
70
  function N(y) {
71
- return !!(typeof y == "string" || typeof y == "function" || y === r || y === s || O || y === o || y === d || y === f || C || y === h || A || S || k || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === m || y.$$typeof === i || y.$$typeof === l || y.$$typeof === u || // This needs to include all possible module reference object
71
+ return !!(typeof y == "string" || typeof y == "function" || y === r || y === s || O || y === o || y === d || y === f || C || y === h || S || A || M || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === m || y.$$typeof === i || y.$$typeof === l || y.$$typeof === u || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
@@ -129,7 +129,7 @@ function w1() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var M = Object.assign, Z = 0, D, G, j, H, V, X, ge;
132
+ var k = Object.assign, Z = 0, D, G, j, H, V, X, ge;
133
133
  function B() {
134
134
  }
135
135
  B.__reactDisabledLog = !0;
@@ -165,25 +165,25 @@ function w1() {
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: M({}, y, {
168
+ log: k({}, y, {
169
169
  value: D
170
170
  }),
171
- info: M({}, y, {
171
+ info: k({}, y, {
172
172
  value: G
173
173
  }),
174
- warn: M({}, y, {
174
+ warn: k({}, y, {
175
175
  value: j
176
176
  }),
177
- error: M({}, y, {
177
+ error: k({}, y, {
178
178
  value: H
179
179
  }),
180
- group: M({}, y, {
180
+ group: k({}, y, {
181
181
  value: V
182
182
  }),
183
- groupCollapsed: M({}, y, {
183
+ groupCollapsed: k({}, y, {
184
184
  value: X
185
185
  }),
186
- groupEnd: M({}, y, {
186
+ groupEnd: k({}, y, {
187
187
  value: ge
188
188
  })
189
189
  });
@@ -1819,9 +1819,9 @@ const xu = Yl, Xa = "-", yu = (e) => {
1819
1819
  continue;
1820
1820
  s.push(w);
1821
1821
  const E = o(p, b);
1822
- for (let A = 0; A < E.length; ++A) {
1823
- const S = E[A];
1824
- s.push(x + S);
1822
+ for (let S = 0; S < E.length; ++S) {
1823
+ const A = E[S];
1824
+ s.push(x + A);
1825
1825
  }
1826
1826
  l = d + (l.length > 0 ? " " + l : l);
1827
1827
  }
@@ -1870,7 +1870,7 @@ const ve = (e) => {
1870
1870
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1871
1871
  Iu.test(e) && !Ou.test(e)
1872
1872
  ), ei = () => !1, Ku = (e) => Hu.test(e), Yu = (e) => Vu.test(e), qu = () => {
1873
- const e = ve("colors"), t = ve("spacing"), n = ve("blur"), r = ve("brightness"), o = ve("borderColor"), s = ve("borderRadius"), i = ve("borderSpacing"), l = ve("borderWidth"), u = ve("contrast"), d = ve("grayscale"), f = ve("hueRotate"), m = ve("invert"), v = ve("gap"), h = ve("gradientColorStops"), b = ve("gradientColorStopPositions"), p = ve("inset"), g = ve("margin"), x = ve("opacity"), w = ve("padding"), E = ve("saturate"), A = ve("scale"), S = ve("sepia"), k = ve("skew"), C = ve("space"), O = ve("translate"), F = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", Y, t], R = () => [Y, t], z = () => ["", ht, At], M = () => ["auto", Jt, Y], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", Y], V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Jt, Y];
1873
+ const e = ve("colors"), t = ve("spacing"), n = ve("blur"), r = ve("brightness"), o = ve("borderColor"), s = ve("borderRadius"), i = ve("borderSpacing"), l = ve("borderWidth"), u = ve("contrast"), d = ve("grayscale"), f = ve("hueRotate"), m = ve("invert"), v = ve("gap"), h = ve("gradientColorStops"), b = ve("gradientColorStopPositions"), p = ve("inset"), g = ve("margin"), x = ve("opacity"), w = ve("padding"), E = ve("saturate"), S = ve("scale"), A = ve("sepia"), M = ve("skew"), C = ve("space"), O = ve("translate"), F = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", Y, t], R = () => [Y, t], z = () => ["", ht, At], k = () => ["auto", Jt, Y], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", Y], V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Jt, Y];
1874
1874
  return {
1875
1875
  cacheSize: 500,
1876
1876
  separator: ":",
@@ -2188,14 +2188,14 @@ const ve = (e) => {
2188
2188
  * @see https://tailwindcss.com/docs/grid-column
2189
2189
  */
2190
2190
  "col-start": [{
2191
- "col-start": M()
2191
+ "col-start": k()
2192
2192
  }],
2193
2193
  /**
2194
2194
  * Grid Column End
2195
2195
  * @see https://tailwindcss.com/docs/grid-column
2196
2196
  */
2197
2197
  "col-end": [{
2198
- "col-end": M()
2198
+ "col-end": k()
2199
2199
  }],
2200
2200
  /**
2201
2201
  * Grid Template Rows
@@ -2218,14 +2218,14 @@ const ve = (e) => {
2218
2218
  * @see https://tailwindcss.com/docs/grid-row
2219
2219
  */
2220
2220
  "row-start": [{
2221
- "row-start": M()
2221
+ "row-start": k()
2222
2222
  }],
2223
2223
  /**
2224
2224
  * Grid Row End
2225
2225
  * @see https://tailwindcss.com/docs/grid-row
2226
2226
  */
2227
2227
  "row-end": [{
2228
- "row-end": M()
2228
+ "row-end": k()
2229
2229
  }],
2230
2230
  /**
2231
2231
  * Grid Auto Flow
@@ -3343,7 +3343,7 @@ const ve = (e) => {
3343
3343
  * @see https://tailwindcss.com/docs/sepia
3344
3344
  */
3345
3345
  sepia: [{
3346
- sepia: [S]
3346
+ sepia: [A]
3347
3347
  }],
3348
3348
  /**
3349
3349
  * Backdrop Filter
@@ -3414,7 +3414,7 @@ const ve = (e) => {
3414
3414
  * @see https://tailwindcss.com/docs/backdrop-sepia
3415
3415
  */
3416
3416
  "backdrop-sepia": [{
3417
- "backdrop-sepia": [S]
3417
+ "backdrop-sepia": [A]
3418
3418
  }],
3419
3419
  // Tables
3420
3420
  /**
@@ -3508,21 +3508,21 @@ const ve = (e) => {
3508
3508
  * @see https://tailwindcss.com/docs/scale
3509
3509
  */
3510
3510
  scale: [{
3511
- scale: [A]
3511
+ scale: [S]
3512
3512
  }],
3513
3513
  /**
3514
3514
  * Scale X
3515
3515
  * @see https://tailwindcss.com/docs/scale
3516
3516
  */
3517
3517
  "scale-x": [{
3518
- "scale-x": [A]
3518
+ "scale-x": [S]
3519
3519
  }],
3520
3520
  /**
3521
3521
  * Scale Y
3522
3522
  * @see https://tailwindcss.com/docs/scale
3523
3523
  */
3524
3524
  "scale-y": [{
3525
- "scale-y": [A]
3525
+ "scale-y": [S]
3526
3526
  }],
3527
3527
  /**
3528
3528
  * Rotate
@@ -3550,14 +3550,14 @@ const ve = (e) => {
3550
3550
  * @see https://tailwindcss.com/docs/skew
3551
3551
  */
3552
3552
  "skew-x": [{
3553
- "skew-x": [k]
3553
+ "skew-x": [M]
3554
3554
  }],
3555
3555
  /**
3556
3556
  * Skew Y
3557
3557
  * @see https://tailwindcss.com/docs/skew
3558
3558
  */
3559
3559
  "skew-y": [{
3560
- "skew-y": [k]
3560
+ "skew-y": [M]
3561
3561
  }],
3562
3562
  /**
3563
3563
  * Transform Origin
@@ -5131,26 +5131,26 @@ function b2() {
5131
5131
  } else b = h.current;
5132
5132
  h = i(
5133
5133
  function() {
5134
- function g(S) {
5134
+ function g(A) {
5135
5135
  if (!x) {
5136
- if (x = !0, w = S, S = m(S), v !== void 0 && b.hasValue) {
5137
- var k = b.value;
5138
- if (v(k, S))
5139
- return E = k;
5136
+ if (x = !0, w = A, A = m(A), v !== void 0 && b.hasValue) {
5137
+ var M = b.value;
5138
+ if (v(M, A))
5139
+ return E = M;
5140
5140
  }
5141
- return E = S;
5141
+ return E = A;
5142
5142
  }
5143
- if (k = E, n(w, S)) return k;
5144
- var C = m(S);
5145
- return v !== void 0 && v(k, C) ? (w = S, k) : (w = S, E = C);
5143
+ if (M = E, n(w, A)) return M;
5144
+ var C = m(A);
5145
+ return v !== void 0 && v(M, C) ? (w = A, M) : (w = A, E = C);
5146
5146
  }
5147
- var x = !1, w, E, A = f === void 0 ? null : f;
5147
+ var x = !1, w, E, S = f === void 0 ? null : f;
5148
5148
  return [
5149
5149
  function() {
5150
5150
  return g(d());
5151
5151
  },
5152
- A === null ? void 0 : function() {
5153
- return g(A());
5152
+ S === null ? void 0 : function() {
5153
+ return g(S());
5154
5154
  }
5155
5155
  ];
5156
5156
  },
@@ -5191,27 +5191,27 @@ function x2() {
5191
5191
  } else b = h.current;
5192
5192
  h = i(
5193
5193
  function() {
5194
- function g(S) {
5194
+ function g(A) {
5195
5195
  if (!x) {
5196
- if (x = !0, w = S, S = m(S), v !== void 0 && b.hasValue) {
5197
- var k = b.value;
5198
- if (v(k, S))
5199
- return E = k;
5196
+ if (x = !0, w = A, A = m(A), v !== void 0 && b.hasValue) {
5197
+ var M = b.value;
5198
+ if (v(M, A))
5199
+ return E = M;
5200
5200
  }
5201
- return E = S;
5201
+ return E = A;
5202
5202
  }
5203
- if (k = E, n(w, S))
5204
- return k;
5205
- var C = m(S);
5206
- return v !== void 0 && v(k, C) ? (w = S, k) : (w = S, E = C);
5203
+ if (M = E, n(w, A))
5204
+ return M;
5205
+ var C = m(A);
5206
+ return v !== void 0 && v(M, C) ? (w = A, M) : (w = A, E = C);
5207
5207
  }
5208
- var x = !1, w, E, A = f === void 0 ? null : f;
5208
+ var x = !1, w, E, S = f === void 0 ? null : f;
5209
5209
  return [
5210
5210
  function() {
5211
5211
  return g(d());
5212
5212
  },
5213
- A === null ? void 0 : function() {
5214
- return g(A());
5213
+ S === null ? void 0 : function() {
5214
+ return g(S());
5215
5215
  }
5216
5216
  ];
5217
5217
  },
@@ -5992,8 +5992,8 @@ const xf = async (e, t, n) => {
5992
5992
  } = l[p], {
5993
5993
  x: w,
5994
5994
  y: E,
5995
- data: A,
5996
- reset: S
5995
+ data: S,
5996
+ reset: A
5997
5997
  } = await x({
5998
5998
  x: f,
5999
5999
  y: m,
@@ -6012,13 +6012,13 @@ const xf = async (e, t, n) => {
6012
6012
  ...h,
6013
6013
  [g]: {
6014
6014
  ...h[g],
6015
- ...A
6015
+ ...S
6016
6016
  }
6017
- }, S && b <= 50 && (b++, typeof S == "object" && (S.placement && (v = S.placement), S.rects && (d = S.rects === !0 ? await i.getElementRects({
6017
+ }, A && b <= 50 && (b++, typeof A == "object" && (A.placement && (v = A.placement), A.rects && (d = A.rects === !0 ? await i.getElementRects({
6018
6018
  reference: e,
6019
6019
  floating: t,
6020
6020
  strategy: o
6021
- }) : S.rects), {
6021
+ }) : A.rects), {
6022
6022
  x: f,
6023
6023
  y: m
6024
6024
  } = js(d, v, u)), p = -1);
@@ -6057,23 +6057,23 @@ async function Pr(e, t) {
6057
6057
  y: o,
6058
6058
  width: i.floating.width,
6059
6059
  height: i.floating.height
6060
- } : i.reference, E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), A = await (s.isElement == null ? void 0 : s.isElement(E)) ? await (s.getScale == null ? void 0 : s.getScale(E)) || {
6060
+ } : i.reference, E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), S = await (s.isElement == null ? void 0 : s.isElement(E)) ? await (s.getScale == null ? void 0 : s.getScale(E)) || {
6061
6061
  x: 1,
6062
6062
  y: 1
6063
6063
  } : {
6064
6064
  x: 1,
6065
6065
  y: 1
6066
- }, S = xr(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
6066
+ }, A = xr(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
6067
6067
  elements: l,
6068
6068
  rect: w,
6069
6069
  offsetParent: E,
6070
6070
  strategy: u
6071
6071
  }) : w);
6072
6072
  return {
6073
- top: (x.top - S.top + b.top) / A.y,
6074
- bottom: (S.bottom - x.bottom + b.bottom) / A.y,
6075
- left: (x.left - S.left + b.left) / A.x,
6076
- right: (S.right - x.right + b.right) / A.x
6073
+ top: (x.top - A.top + b.top) / S.y,
6074
+ bottom: (A.bottom - x.bottom + b.bottom) / S.y,
6075
+ left: (x.left - A.left + b.left) / S.x,
6076
+ right: (A.right - x.right + b.right) / S.x
6077
6077
  };
6078
6078
  }
6079
6079
  const yf = function(e) {
@@ -6100,26 +6100,26 @@ const yf = function(e) {
6100
6100
  } = hn(e, t);
6101
6101
  if ((n = s.arrow) != null && n.alignmentOffset)
6102
6102
  return {};
6103
- const x = Lt(o), w = gt(l), E = Lt(l) === l, A = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), S = v || (E || !p ? [br(l)] : ff(l)), k = b !== "none";
6104
- !v && k && S.push(...vf(l, p, b, A));
6105
- const C = [l, ...S], O = await Pr(t, g), F = [];
6103
+ const x = Lt(o), w = gt(l), E = Lt(l) === l, S = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), A = v || (E || !p ? [br(l)] : ff(l)), M = b !== "none";
6104
+ !v && M && A.push(...vf(l, p, b, S));
6105
+ const C = [l, ...A], O = await Pr(t, g), F = [];
6106
6106
  let N = ((r = s.flip) == null ? void 0 : r.overflows) || [];
6107
6107
  if (f && F.push(O[x]), m) {
6108
- const M = df(o, i, A);
6109
- F.push(O[M[0]], O[M[1]]);
6108
+ const k = df(o, i, S);
6109
+ F.push(O[k[0]], O[k[1]]);
6110
6110
  }
6111
6111
  if (N = [...N, {
6112
6112
  placement: o,
6113
6113
  overflows: F
6114
- }], !F.every((M) => M <= 0)) {
6114
+ }], !F.every((k) => k <= 0)) {
6115
6115
  var P, R;
6116
- const M = (((P = s.flip) == null ? void 0 : P.index) || 0) + 1, Z = C[M];
6116
+ const k = (((P = s.flip) == null ? void 0 : P.index) || 0) + 1, Z = C[k];
6117
6117
  if (Z && (!(m === "alignment" ? w !== gt(Z) : !1) || // We leave the current main axis only if every placement on that axis
6118
6118
  // overflows the main axis.
6119
6119
  N.every((j) => gt(j.placement) === w ? j.overflows[0] > 0 : !0)))
6120
6120
  return {
6121
6121
  data: {
6122
- index: M,
6122
+ index: k,
6123
6123
  overflows: N
6124
6124
  },
6125
6125
  reset: {
@@ -6132,7 +6132,7 @@ const yf = function(e) {
6132
6132
  case "bestFit": {
6133
6133
  var z;
6134
6134
  const G = (z = N.filter((j) => {
6135
- if (k) {
6135
+ if (M) {
6136
6136
  const H = gt(j.placement);
6137
6137
  return H === w || // Create a bias to the `y` side axis due to horizontal
6138
6138
  // reading directions favoring greater width.
@@ -6284,9 +6284,9 @@ const Af = function(e) {
6284
6284
  } = s.floating;
6285
6285
  let g, x;
6286
6286
  m === "top" || m === "bottom" ? (g = m, x = v === (await (i.isRTL == null ? void 0 : i.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (x = m, g = v === "end" ? "top" : "bottom");
6287
- const w = p - f.top - f.bottom, E = b - f.left - f.right, A = _t(p - f[g], w), S = _t(b - f[x], E), k = !t.middlewareData.shift;
6288
- let C = A, O = S;
6289
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = w), k && !v) {
6287
+ const w = p - f.top - f.bottom, E = b - f.left - f.right, S = _t(p - f[g], w), A = _t(b - f[x], E), M = !t.middlewareData.shift;
6288
+ let C = S, O = A;
6289
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = w), M && !v) {
6290
6290
  const N = Oe(f.left, 0), P = Oe(f.right, 0), R = Oe(f.top, 0), z = Oe(f.bottom, 0);
6291
6291
  h ? O = b - 2 * (N !== 0 || P !== 0 ? N + P : Oe(f.left, f.right)) : C = p - 2 * (R !== 0 || z !== 0 ? R + z : Oe(f.top, f.bottom));
6292
6292
  }
@@ -6354,8 +6354,8 @@ function Bt(e, t, n, r) {
6354
6354
  const v = Ge(s), h = r && He(r) ? Ge(r) : r;
6355
6355
  let b = v, p = Ha(b);
6356
6356
  for (; p && r && h !== b; ) {
6357
- const g = tn(p), x = p.getBoundingClientRect(), w = et(p), E = x.left + (p.clientLeft + parseFloat(w.paddingLeft)) * g.x, A = x.top + (p.clientTop + parseFloat(w.paddingTop)) * g.y;
6358
- u *= g.x, d *= g.y, f *= g.x, m *= g.y, u += E, d += A, b = Ge(p), p = Ha(b);
6357
+ const g = tn(p), x = p.getBoundingClientRect(), w = et(p), E = x.left + (p.clientLeft + parseFloat(w.paddingLeft)) * g.x, S = x.top + (p.clientTop + parseFloat(w.paddingTop)) * g.y;
6358
+ u *= g.x, d *= g.y, f *= g.x, m *= g.y, u += E, d += S, b = Ge(p), p = Ha(b);
6359
6359
  }
6360
6360
  }
6361
6361
  return xr({
@@ -6616,26 +6616,26 @@ function Df(e, t) {
6616
6616
  rootMargin: -b + "px " + -p + "px " + -g + "px " + -x + "px",
6617
6617
  threshold: Oe(0, _t(1, u)) || 1
6618
6618
  };
6619
- let A = !0;
6620
- function S(k) {
6621
- const C = k[0].intersectionRatio;
6619
+ let S = !0;
6620
+ function A(M) {
6621
+ const C = M[0].intersectionRatio;
6622
6622
  if (C !== u) {
6623
- if (!A)
6623
+ if (!S)
6624
6624
  return i();
6625
6625
  C ? i(!1, C) : r = setTimeout(() => {
6626
6626
  i(!1, 1e-7);
6627
6627
  }, 1e3);
6628
6628
  }
6629
- C === 1 && !Ki(d, e.getBoundingClientRect()) && i(), A = !1;
6629
+ C === 1 && !Ki(d, e.getBoundingClientRect()) && i(), S = !1;
6630
6630
  }
6631
6631
  try {
6632
- n = new IntersectionObserver(S, {
6632
+ n = new IntersectionObserver(A, {
6633
6633
  ...E,
6634
6634
  // Handle <iframe>s
6635
6635
  root: o.ownerDocument
6636
6636
  });
6637
6637
  } catch {
6638
- n = new IntersectionObserver(S, E);
6638
+ n = new IntersectionObserver(A, E);
6639
6639
  }
6640
6640
  n.observe(e);
6641
6641
  }
@@ -6759,18 +6759,18 @@ function qf(e) {
6759
6759
  }), [v, h] = a.useState(r);
6760
6760
  yr(v, r) || h(r);
6761
6761
  const [b, p] = a.useState(null), [g, x] = a.useState(null), w = a.useCallback((j) => {
6762
- j !== k.current && (k.current = j, p(j));
6762
+ j !== M.current && (M.current = j, p(j));
6763
6763
  }, []), E = a.useCallback((j) => {
6764
6764
  j !== C.current && (C.current = j, x(j));
6765
- }, []), A = s || b, S = i || g, k = a.useRef(null), C = a.useRef(null), O = a.useRef(f), F = u != null, N = ua(u), P = ua(o), R = ua(d), z = a.useCallback(() => {
6766
- if (!k.current || !C.current)
6765
+ }, []), S = s || b, A = i || g, M = a.useRef(null), C = a.useRef(null), O = a.useRef(f), F = u != null, N = ua(u), P = ua(o), R = ua(d), z = a.useCallback(() => {
6766
+ if (!M.current || !C.current)
6767
6767
  return;
6768
6768
  const j = {
6769
6769
  placement: t,
6770
6770
  strategy: n,
6771
6771
  middleware: v
6772
6772
  };
6773
- P.current && (j.platform = P.current), Gf(k.current, C.current, j).then((H) => {
6773
+ P.current && (j.platform = P.current), Gf(M.current, C.current, j).then((H) => {
6774
6774
  const V = {
6775
6775
  ...H,
6776
6776
  // The floating element's position may be recomputed while it's closed
@@ -6779,7 +6779,7 @@ function qf(e) {
6779
6779
  // setting it to `true` when `open === false` (must be specified).
6780
6780
  isPositioned: R.current !== !1
6781
6781
  };
6782
- M.current && !yr(O.current, V) && (O.current = V, rn.flushSync(() => {
6782
+ k.current && !yr(O.current, V) && (O.current = V, rn.flushSync(() => {
6783
6783
  m(V);
6784
6784
  }));
6785
6785
  });
@@ -6790,25 +6790,25 @@ function qf(e) {
6790
6790
  isPositioned: !1
6791
6791
  })));
6792
6792
  }, [d]);
6793
- const M = a.useRef(!1);
6794
- dr(() => (M.current = !0, () => {
6795
- M.current = !1;
6793
+ const k = a.useRef(!1);
6794
+ dr(() => (k.current = !0, () => {
6795
+ k.current = !1;
6796
6796
  }), []), dr(() => {
6797
- if (A && (k.current = A), S && (C.current = S), A && S) {
6797
+ if (S && (M.current = S), A && (C.current = A), S && A) {
6798
6798
  if (N.current)
6799
- return N.current(A, S, z);
6799
+ return N.current(S, A, z);
6800
6800
  z();
6801
6801
  }
6802
- }, [A, S, z, N, F]);
6802
+ }, [S, A, z, N, F]);
6803
6803
  const Z = a.useMemo(() => ({
6804
- reference: k,
6804
+ reference: M,
6805
6805
  floating: C,
6806
6806
  setReference: w,
6807
6807
  setFloating: E
6808
6808
  }), [w, E]), D = a.useMemo(() => ({
6809
- reference: A,
6810
- floating: S
6811
- }), [A, S]), G = a.useMemo(() => {
6809
+ reference: S,
6810
+ floating: A
6811
+ }), [S, A]), G = a.useMemo(() => {
6812
6812
  const j = {
6813
6813
  position: n,
6814
6814
  left: 0,
@@ -6979,11 +6979,11 @@ function h8(e) {
6979
6979
  }
6980
6980
  }
6981
6981
  }), b = a.useCallback((E) => {
6982
- const A = He(E) ? {
6982
+ const S = He(E) ? {
6983
6983
  getBoundingClientRect: () => E.getBoundingClientRect(),
6984
6984
  contextElement: E
6985
6985
  } : E;
6986
- u(A), h.refs.setReference(A);
6986
+ u(S), h.refs.setReference(S);
6987
6987
  }, [h.refs]), p = a.useCallback((E) => {
6988
6988
  (He(E) || E === null) && (m.current = E, i(E)), (He(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
6989
6989
  // `null` to support `positionReference` + an unstable `reference`
@@ -7006,7 +7006,7 @@ function h8(e) {
7006
7006
  }), [h, g, x, t, r]);
7007
7007
  return Za(() => {
7008
7008
  r.dataRef.current.floatingContext = w;
7009
- const E = v == null ? void 0 : v.nodesRef.current.find((A) => A.id === t);
7009
+ const E = v == null ? void 0 : v.nodesRef.current.find((S) => S.id === t);
7010
7010
  E && (E.context = w);
7011
7011
  }), a.useMemo(() => ({
7012
7012
  ...h,
@@ -7111,12 +7111,12 @@ const g8 = (e) => ({
7111
7111
  const E = {
7112
7112
  ...t,
7113
7113
  ...await qi(-h.offsetTop - v.clientTop - m.reference.height / 2 - h.offsetHeight / 2 - s).fn(t)
7114
- }, A = await ca(Hs(E, b.scrollHeight + p + v.clientTop), f), S = await ca(E, {
7114
+ }, S = await ca(Hs(E, b.scrollHeight + p + v.clientTop), f), A = await ca(E, {
7115
7115
  ...f,
7116
7116
  elementContext: "reference"
7117
- }), k = Oe(0, A.top), C = E.y + k, N = (b.scrollHeight > b.clientHeight ? (P) => P : In)(Oe(0, b.scrollHeight + (g && w || x ? p * 2 : 0) - k - Oe(0, A.bottom)));
7118
- if (b.style.maxHeight = N + "px", b.scrollTop = k, o) {
7119
- const P = b.offsetHeight < h.offsetHeight * _t(l, n.current.length) - 1 || S.top >= -u || S.bottom >= -u;
7117
+ }), M = Oe(0, S.top), C = E.y + M, N = (b.scrollHeight > b.clientHeight ? (P) => P : In)(Oe(0, b.scrollHeight + (g && w || x ? p * 2 : 0) - M - Oe(0, S.bottom)));
7118
+ if (b.style.maxHeight = N + "px", b.scrollTop = M, o) {
7119
+ const P = b.offsetHeight < h.offsetHeight * _t(l, n.current.length) - 1 || A.top >= -u || A.bottom >= -u;
7120
7120
  rn.flushSync(() => o(P));
7121
7121
  }
7122
7122
  return r && (r.current = await ca(Hs({
@@ -7142,9 +7142,9 @@ function b8(e, t) {
7142
7142
  function h(p) {
7143
7143
  if (p.ctrlKey || !b || s.current == null)
7144
7144
  return;
7145
- const g = p.deltaY, x = s.current.top >= -0.5, w = s.current.bottom >= -0.5, E = b.scrollHeight - b.clientHeight, A = g < 0 ? -1 : 1, S = g < 0 ? "max" : "min";
7145
+ const g = p.deltaY, x = s.current.top >= -0.5, w = s.current.bottom >= -0.5, E = b.scrollHeight - b.clientHeight, S = g < 0 ? -1 : 1, A = g < 0 ? "max" : "min";
7146
7146
  b.scrollHeight <= b.clientHeight || (!x && g > 0 || !w && g < 0 ? (p.preventDefault(), rn.flushSync(() => {
7147
- u((k) => k + Math[S](g, E * A));
7147
+ u((M) => M + Math[A](g, E * S));
7148
7148
  })) : /firefox/i.test(sf()) && (b.scrollTop += g));
7149
7149
  }
7150
7150
  const b = (i == null ? void 0 : i.current) || r.floating;
@@ -7226,11 +7226,11 @@ function r0({ children: e, enabled: t = !0 }) {
7226
7226
  let { refs: x, floatingStyles: w, context: E } = h8({ open: d, placement: p === "selection" ? g === "center" ? "bottom" : `bottom-${g}` : g === "center" ? `${p}` : `${p}-${g}`, strategy: "absolute", transform: !1, middleware: [qi({ mainAxis: p === "selection" ? 0 : m, crossAxis: v }), Xf({ padding: h }), p !== "selection" && Qf({ padding: h }), p === "selection" && b ? g8({ ...b, padding: h, overflowRef: i, offset: o, minItemsVisible: Vs, referenceOverflowThreshold: h, onFallbackChange(P) {
7227
7227
  var R, z;
7228
7228
  if (!P) return;
7229
- let M = E.elements.floating;
7230
- if (!M) return;
7231
- let Z = parseFloat(getComputedStyle(M).scrollPaddingBottom) || 0, D = Math.min(Vs, M.childElementCount), G = 0, j = 0;
7229
+ let k = E.elements.floating;
7230
+ if (!k) return;
7231
+ let Z = parseFloat(getComputedStyle(k).scrollPaddingBottom) || 0, D = Math.min(Vs, k.childElementCount), G = 0, j = 0;
7232
7232
  for (let H of (z = (R = E.elements.floating) == null ? void 0 : R.childNodes) != null ? z : []) if (Je(H)) {
7233
- let V = H.offsetTop, X = V + H.clientHeight + Z, ge = M.scrollTop, B = ge + M.clientHeight;
7233
+ let V = H.offsetTop, X = V + H.clientHeight + Z, ge = k.scrollTop, B = ge + k.clientHeight;
7234
7234
  if (V >= ge && X <= B) D--;
7235
7235
  else {
7236
7236
  j = Math.max(0, Math.min(X, B) - Math.max(V, ge)), G = H.clientHeight;
@@ -7243,12 +7243,12 @@ function r0({ children: e, enabled: t = !0 }) {
7243
7243
  });
7244
7244
  } }) : null, Jf({ padding: h, apply({ availableWidth: P, availableHeight: R, elements: z }) {
7245
7245
  Object.assign(z.floating.style, { overflow: "auto", maxWidth: `${P}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${R}px)` });
7246
- } })].filter(Boolean), whileElementsMounted: _f }), [A = p, S = g] = E.placement.split("-");
7247
- p === "selection" && (A = "selection");
7248
- let k = me(() => ({ anchor: [A, S].filter(Boolean).join(" ") }), [A, S]), C = b8(E, { overflowRef: i, onChange: s }), { getReferenceProps: O, getFloatingProps: F } = v8([C]), N = L((P) => {
7246
+ } })].filter(Boolean), whileElementsMounted: _f }), [S = p, A = g] = E.placement.split("-");
7247
+ p === "selection" && (S = "selection");
7248
+ let M = me(() => ({ anchor: [S, A].filter(Boolean).join(" ") }), [S, A]), C = b8(E, { overflowRef: i, onChange: s }), { getReferenceProps: O, getFloatingProps: F } = v8([C]), N = L((P) => {
7249
7249
  u(P), x.setFloating(P);
7250
7250
  });
7251
- return a.createElement(fo.Provider, { value: r }, a.createElement(vn.Provider, { value: { setFloating: N, setReference: x.setReference, styles: w, getReferenceProps: O, getFloatingProps: F, slot: k } }, e));
7251
+ return a.createElement(fo.Provider, { value: r }, a.createElement(vn.Provider, { value: { setFloating: N, setReference: x.setReference, styles: w, getReferenceProps: O, getFloatingProps: F, slot: M } }, e));
7252
7252
  }
7253
7253
  function y8(e) {
7254
7254
  ce(() => {
@@ -7549,22 +7549,22 @@ function g0(e, t) {
7549
7549
  let b0 = ct, x0 = Qe.RenderStrategy;
7550
7550
  function V8(e, t) {
7551
7551
  var n, r;
7552
- let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: l, afterLeave: u, enter: d, enterFrom: f, enterTo: m, entered: v, leave: h, leaveFrom: b, leaveTo: p, ...g } = e, [x, w] = ee(null), E = W(null), A = v0(e), S = pe(...A ? [E, t, w] : t === null ? [] : [t]), k = (n = g.unmount) == null || n ? kt.Unmount : kt.Hidden, { show: C, appear: O, initial: F } = O8(), [N, P] = ee(C ? "visible" : "hidden"), R = H8(), { register: z, unregister: M } = R;
7552
+ let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: l, afterLeave: u, enter: d, enterFrom: f, enterTo: m, entered: v, leave: h, leaveFrom: b, leaveTo: p, ...g } = e, [x, w] = ee(null), E = W(null), S = v0(e), A = pe(...S ? [E, t, w] : t === null ? [] : [t]), M = (n = g.unmount) == null || n ? kt.Unmount : kt.Hidden, { show: C, appear: O, initial: F } = O8(), [N, P] = ee(C ? "visible" : "hidden"), R = H8(), { register: z, unregister: k } = R;
7553
7553
  ce(() => z(E), [z, E]), ce(() => {
7554
- if (k === kt.Hidden && E.current) {
7554
+ if (M === kt.Hidden && E.current) {
7555
7555
  if (C && N !== "visible") {
7556
7556
  P("visible");
7557
7557
  return;
7558
7558
  }
7559
- return be(N, { hidden: () => M(E), visible: () => z(E) });
7559
+ return be(N, { hidden: () => k(E), visible: () => z(E) });
7560
7560
  }
7561
- }, [N, E, z, M, C, k]);
7561
+ }, [N, E, z, k, C, M]);
7562
7562
  let Z = m0();
7563
7563
  ce(() => {
7564
- if (A && Z && N === "visible" && E.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
7565
- }, [E, N, Z, A]);
7564
+ if (S && Z && N === "visible" && E.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
7565
+ }, [E, N, Z, S]);
7566
7566
  let D = F && !O, G = O && C && F, j = W(!1), H = g0(() => {
7567
- j.current || (P("hidden"), M(E));
7567
+ j.current || (P("hidden"), k(E));
7568
7568
  }, R), V = L((ie) => {
7569
7569
  j.current = !0;
7570
7570
  let Ne = ie ? "enter" : "leave";
@@ -7575,12 +7575,12 @@ function V8(e, t) {
7575
7575
  let Ne = ie ? "enter" : "leave";
7576
7576
  j.current = !1, H.onStop(E, Ne, (Le) => {
7577
7577
  Le === "enter" ? i == null || i() : Le === "leave" && (u == null || u());
7578
- }), Ne === "leave" && !Hr(H) && (P("hidden"), M(E));
7578
+ }), Ne === "leave" && !Hr(H) && (P("hidden"), k(E));
7579
7579
  });
7580
7580
  fe(() => {
7581
- A && o || (V(C), X(C));
7582
- }, [C, A, o]);
7583
- let ge = !(!o || !A || !Z || D), [, B] = zn(ge, x, C, { start: V, end: X }), _ = Mt({ ref: S, className: ((r = Ra(g.className, G && d, G && f, B.enter && d, B.enter && B.closed && f, B.enter && !B.closed && m, B.leave && h, B.leave && !B.closed && b, B.leave && B.closed && p, !B.transition && C && v)) == null ? void 0 : r.trim()) || void 0, ...Wn(B) }), Q = 0;
7581
+ S && o || (V(C), X(C));
7582
+ }, [C, S, o]);
7583
+ let ge = !(!o || !S || !Z || D), [, B] = zn(ge, x, C, { start: V, end: X }), _ = Mt({ ref: A, className: ((r = Ra(g.className, G && d, G && f, B.enter && d, B.enter && B.closed && f, B.enter && !B.closed && m, B.leave && h, B.leave && !B.closed && b, B.leave && B.closed && p, !B.transition && C && v)) == null ? void 0 : r.trim()) || void 0, ...Wn(B) }), Q = 0;
7584
7584
  N === "visible" && (Q |= we.Open), N === "hidden" && (Q |= we.Closed), C && N === "hidden" && (Q |= we.Opening), !C && N === "visible" && (Q |= we.Closing);
7585
7585
  let Ee = le();
7586
7586
  return $.createElement(Or.Provider, { value: H }, $.createElement(Fr, { value: Q }, Ee({ ourProps: _, theirProps: g, defaultTag: b0, features: x0, visible: N === "visible", name: "Transition.Child" })));
@@ -7601,13 +7601,13 @@ function Z8(e, t) {
7601
7601
  n ? m("visible") : !Hr(v) && i.current !== null && m("hidden");
7602
7602
  }, [n, v]);
7603
7603
  let x = { unmount: o }, w = L(() => {
7604
- var S;
7605
- h && b(!1), (S = e.beforeEnter) == null || S.call(e);
7604
+ var A;
7605
+ h && b(!1), (A = e.beforeEnter) == null || A.call(e);
7606
7606
  }), E = L(() => {
7607
- var S;
7608
- h && b(!1), (S = e.beforeLeave) == null || S.call(e);
7609
- }), A = le();
7610
- return $.createElement(Or.Provider, { value: v }, $.createElement(Ir.Provider, { value: g }, A({ ourProps: { ...x, as: ct, children: $.createElement(y0, { ref: u, ...x, ...s, beforeEnter: w, beforeLeave: E }) }, theirProps: {}, defaultTag: ct, features: x0, visible: f === "visible", name: "Transition" })));
7607
+ var A;
7608
+ h && b(!1), (A = e.beforeLeave) == null || A.call(e);
7609
+ }), S = le();
7610
+ return $.createElement(Or.Provider, { value: v }, $.createElement(Ir.Provider, { value: g }, S({ ourProps: { ...x, as: ct, children: $.createElement(y0, { ref: u, ...x, ...s, beforeEnter: w, beforeLeave: E }) }, theirProps: {}, defaultTag: ct, features: x0, visible: f === "visible", name: "Transition" })));
7611
7611
  }
7612
7612
  function D8(e, t) {
7613
7613
  let n = ae(Ir) !== null, r = gn() !== null;
@@ -7703,8 +7703,8 @@ function Q8(e, t) {
7703
7703
  }), p = L((F) => {
7704
7704
  var N;
7705
7705
  sn(F.currentTarget) || o || (f ? (u({ type: 0 }), (N = l.buttonElement) == null || N.focus()) : u({ type: 0 }));
7706
- }), { isFocusVisible: g, focusProps: x } = mn({ autoFocus: s }), { isHovered: w, hoverProps: E } = Zn({ isDisabled: o }), { pressed: A, pressProps: S } = Dn({ disabled: o }), k = ke({ open: l.disclosureState === 0, hover: w, active: A, disabled: o, focus: g, autofocus: s }), C = Bn(e, l.buttonElement), O = dt(f ? { ref: v, type: C, disabled: o || void 0, autoFocus: s, onKeyDown: h, onClick: p } : { ref: v, id: r, type: C, "aria-expanded": l.disclosureState === 0, "aria-controls": l.panelElement ? l.panelId : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: h, onKeyUp: b, onClick: p }, x, E, S);
7707
- return le()({ ourProps: O, theirProps: i, slot: k, defaultTag: X8, name: "Disclosure.Button" });
7706
+ }), { isFocusVisible: g, focusProps: x } = mn({ autoFocus: s }), { isHovered: w, hoverProps: E } = Zn({ isDisabled: o }), { pressed: S, pressProps: A } = Dn({ disabled: o }), M = ke({ open: l.disclosureState === 0, hover: w, active: S, disabled: o, focus: g, autofocus: s }), C = Bn(e, l.buttonElement), O = dt(f ? { ref: v, type: C, disabled: o || void 0, autoFocus: s, onKeyDown: h, onClick: p } : { ref: v, id: r, type: C, "aria-expanded": l.disclosureState === 0, "aria-controls": l.panelElement ? l.panelId : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: h, onKeyUp: b, onClick: p }, x, E, A);
7707
+ return le()({ ourProps: O, theirProps: i, slot: M, defaultTag: X8, name: "Disclosure.Button" });
7708
7708
  }
7709
7709
  let J8 = "div", em = Qe.RenderStrategy | Qe.Static;
7710
7710
  function tm(e, t) {
@@ -7915,22 +7915,22 @@ function pm(e, t) {
7915
7915
  let x = u2((N) => {
7916
7916
  var P;
7917
7917
  s || (h === Ie.Open ? (hr(() => n.send({ type: de.CloseMenu })), (P = u.current) == null || P.focus({ preventScroll: !0 })) : (N.preventDefault(), n.send({ type: de.OpenMenu, focus: { focus: Se.Nothing }, trigger: wr.Pointer })));
7918
- }), { isFocusVisible: w, focusProps: E } = mn({ autoFocus: i }), { isHovered: A, hoverProps: S } = Zn({ isDisabled: s }), { pressed: k, pressProps: C } = Dn({ disabled: s }), O = ke({ open: h === Ie.Open, active: k || h === Ie.Open, disabled: s, hover: A, focus: w, autofocus: i }), F = dt(d(), { ref: f, id: o, type: Bn(e, u.current), "aria-haspopup": "menu", "aria-controls": p == null ? void 0 : p.id, "aria-expanded": h === Ie.Open, disabled: s || void 0, autoFocus: i, onKeyDown: m, onKeyUp: v }, x, E, S, C);
7918
+ }), { isFocusVisible: w, focusProps: E } = mn({ autoFocus: i }), { isHovered: S, hoverProps: A } = Zn({ isDisabled: s }), { pressed: M, pressProps: C } = Dn({ disabled: s }), O = ke({ open: h === Ie.Open, active: M || h === Ie.Open, disabled: s, hover: S, focus: w, autofocus: i }), F = dt(d(), { ref: f, id: o, type: Bn(e, u.current), "aria-haspopup": "menu", "aria-controls": p == null ? void 0 : p.id, "aria-expanded": h === Ie.Open, disabled: s || void 0, autoFocus: i, onKeyDown: m, onKeyUp: v }, x, E, A, C);
7919
7919
  return le()({ ourProps: F, theirProps: l, slot: O, defaultTag: mm, name: "Menu.Button" });
7920
7920
  }
7921
7921
  let hm = "div", vm = Qe.RenderStrategy | Qe.Static;
7922
7922
  function gm(e, t) {
7923
- let n = $e(), { id: r = `headlessui-menu-items-${n}`, anchor: o, portal: s = !1, modal: i = !0, transition: l = !1, ...u } = e, d = Ji(o), f = xo("Menu.Items"), [m, v] = n0(d), h = t0(), [b, p] = ee(null), g = pe(t, d ? m : null, L((j) => f.send({ type: de.SetItemsElement, element: j })), p), [x, w] = Fe(f, (j) => [j.menuState, j.buttonElement]), E = Ln(w), A = Ln(b);
7923
+ let n = $e(), { id: r = `headlessui-menu-items-${n}`, anchor: o, portal: s = !1, modal: i = !0, transition: l = !1, ...u } = e, d = Ji(o), f = xo("Menu.Items"), [m, v] = n0(d), h = t0(), [b, p] = ee(null), g = pe(t, d ? m : null, L((j) => f.send({ type: de.SetItemsElement, element: j })), p), [x, w] = Fe(f, (j) => [j.menuState, j.buttonElement]), E = Ln(w), S = Ln(b);
7924
7924
  d && (s = !0);
7925
- let S = gn(), [k, C] = zn(l, b, S !== null ? (S & we.Open) === we.Open : x === Ie.Open);
7926
- Pi(k, w, () => {
7925
+ let A = gn(), [M, C] = zn(l, b, A !== null ? (A & we.Open) === we.Open : x === Ie.Open);
7926
+ Pi(M, w, () => {
7927
7927
  f.send({ type: de.CloseMenu });
7928
7928
  });
7929
7929
  let O = Fe(f, (j) => j.__demoMode), F = O ? !1 : i && x === Ie.Open;
7930
- Oi(F, A);
7930
+ Oi(F, S);
7931
7931
  let N = O ? !1 : i && x === Ie.Open;
7932
7932
  E2(N, { allowed: re(() => [w, b], [w, b]) });
7933
- let P = Fe(f, f.selectors.didButtonMove) ? !1 : k;
7933
+ let P = Fe(f, f.selectors.didButtonMove) ? !1 : M;
7934
7934
  fe(() => {
7935
7935
  let j = b;
7936
7936
  j && x === Ie.Open && (jd(j) || j.focus({ preventScroll: !0 }));
@@ -7971,7 +7971,7 @@ function gm(e, t) {
7971
7971
  j.key.length === 1 && (f.send({ type: de.Search, value: j.key }), R.setTimeout(() => f.send({ type: de.ClearSearch }), 350));
7972
7972
  break;
7973
7973
  }
7974
- }), M = L((j) => {
7974
+ }), k = L((j) => {
7975
7975
  switch (j.key) {
7976
7976
  case q.Space:
7977
7977
  j.preventDefault();
@@ -7980,8 +7980,8 @@ function gm(e, t) {
7980
7980
  }), Z = ke({ open: x === Ie.Open }), D = dt(d ? h() : {}, { "aria-activedescendant": Fe(f, f.selectors.activeDescendantId), "aria-labelledby": Fe(f, (j) => {
7981
7981
  var H;
7982
7982
  return (H = j.buttonElement) == null ? void 0 : H.id;
7983
- }), id: r, onKeyDown: z, onKeyUp: M, role: "menu", tabIndex: x === Ie.Open ? 0 : void 0, ref: g, style: { ...u.style, ...v, "--button-width": Si(k, w, !0).width }, ...Wn(C) }), G = le();
7984
- return $.createElement(i0, { enabled: s ? e.static || k : !1, ownerDocument: E }, G({ ourProps: D, theirProps: u, slot: Z, defaultTag: hm, features: vm, visible: P, name: "Menu.Items" }));
7983
+ }), id: r, onKeyDown: z, onKeyUp: k, role: "menu", tabIndex: x === Ie.Open ? 0 : void 0, ref: g, style: { ...u.style, ...v, "--button-width": Si(M, w, !0).width }, ...Wn(C) }), G = le();
7984
+ return $.createElement(i0, { enabled: s ? e.static || M : !1, ownerDocument: E }, G({ ourProps: D, theirProps: u, slot: Z, defaultTag: hm, features: vm, visible: P, name: "Menu.Items" }));
7985
7985
  }
7986
7986
  let bm = ct;
7987
7987
  function xm(e, t) {
@@ -8010,8 +8010,8 @@ function xm(e, t) {
8010
8010
  g.wasMoved(P) && (o || l || i.send({ type: de.GoToItem, focus: Se.Specific, id: r, trigger: wr.Pointer }));
8011
8011
  }), E = L((P) => {
8012
8012
  g.wasMoved(P) && (o || l && i.state.activationTrigger === wr.Pointer && i.send({ type: de.GoToItem, focus: Se.Nothing }));
8013
- }), [A, S] = oo(), [k, C] = Ei(), O = ke({ active: l, focus: l, disabled: o, close: h }), F = { id: r, ref: d, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": A, "aria-describedby": k, disabled: void 0, onClick: b, onFocus: p, onPointerEnter: x, onMouseEnter: x, onPointerMove: w, onMouseMove: w, onPointerLeave: E, onMouseLeave: E }, N = le();
8014
- return $.createElement(S, null, $.createElement(C, null, N({ ourProps: F, theirProps: s, slot: O, defaultTag: bm, name: "Menu.Item" })));
8013
+ }), [S, A] = oo(), [M, C] = Ei(), O = ke({ active: l, focus: l, disabled: o, close: h }), F = { id: r, ref: d, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": S, "aria-describedby": M, disabled: void 0, onClick: b, onFocus: p, onPointerEnter: x, onMouseEnter: x, onPointerMove: w, onMouseMove: w, onPointerLeave: E, onMouseLeave: E }, N = le();
8014
+ return $.createElement(A, null, $.createElement(C, null, N({ ourProps: F, theirProps: s, slot: O, defaultTag: bm, name: "Menu.Item" })));
8015
8015
  }
8016
8016
  let ym = "div";
8017
8017
  function wm(e, t) {
@@ -8095,29 +8095,29 @@ function Hm() {
8095
8095
  let Vm = "div";
8096
8096
  function Zm(e, t) {
8097
8097
  var n;
8098
- let r = $e(), { __demoMode: o = !1, ...s } = e, i = Om({ id: r, __demoMode: o }), l = W(null), u = pe(t, ro((M) => {
8099
- l.current = M;
8100
- })), [d, f, m, v, h] = Fe(i, re((M) => [M.popoverState, M.button, M.panel, M.buttonId, M.panelId], [])), b = P2((n = l.current) != null ? n : f), p = Ue(v), g = Ue(h), x = me(() => ({ buttonId: p, panelId: g, close: i.actions.close }), [p, g, i]), w = M0(), E = w == null ? void 0 : w.registerPopover, A = L(() => {
8101
- var M, Z;
8102
- let D = xt((M = l.current) != null ? M : f);
8098
+ let r = $e(), { __demoMode: o = !1, ...s } = e, i = Om({ id: r, __demoMode: o }), l = W(null), u = pe(t, ro((k) => {
8099
+ l.current = k;
8100
+ })), [d, f, m, v, h] = Fe(i, re((k) => [k.popoverState, k.button, k.panel, k.buttonId, k.panelId], [])), b = P2((n = l.current) != null ? n : f), p = Ue(v), g = Ue(h), x = me(() => ({ buttonId: p, panelId: g, close: i.actions.close }), [p, g, i]), w = M0(), E = w == null ? void 0 : w.registerPopover, S = L(() => {
8101
+ var k, Z;
8102
+ let D = xt((k = l.current) != null ? k : f);
8103
8103
  return (Z = w == null ? void 0 : w.isFocusWithinPopoverGroup()) != null ? Z : D && ((f == null ? void 0 : f.contains(D)) || (m == null ? void 0 : m.contains(D)));
8104
8104
  });
8105
8105
  fe(() => E == null ? void 0 : E(x), [E, x]);
8106
- let [S, k] = T8(), C = f0(f), O = L8({ mainTreeNode: C, portals: S, defaultContainers: [{ get current() {
8106
+ let [A, M] = T8(), C = f0(f), O = L8({ mainTreeNode: C, portals: A, defaultContainers: [{ get current() {
8107
8107
  return i.state.button;
8108
8108
  } }, { get current() {
8109
8109
  return i.state.panel;
8110
8110
  } }] });
8111
- I2(b, "focus", (M) => {
8111
+ I2(b, "focus", (k) => {
8112
8112
  var Z, D, G, j, H, V;
8113
- M.target !== window && ot(M.target) && i.state.popoverState === Ce.Open && (A() || i.state.button && i.state.panel && (O.contains(M.target) || (D = (Z = i.state.beforePanelSentinel.current) == null ? void 0 : Z.contains) != null && D.call(Z, M.target) || (j = (G = i.state.afterPanelSentinel.current) == null ? void 0 : G.contains) != null && j.call(G, M.target) || (V = (H = i.state.afterButtonSentinel.current) == null ? void 0 : H.contains) != null && V.call(H, M.target) || i.actions.close()));
8113
+ k.target !== window && ot(k.target) && i.state.popoverState === Ce.Open && (S() || i.state.button && i.state.panel && (O.contains(k.target) || (D = (Z = i.state.beforePanelSentinel.current) == null ? void 0 : Z.contains) != null && D.call(Z, k.target) || (j = (G = i.state.afterPanelSentinel.current) == null ? void 0 : G.contains) != null && j.call(G, k.target) || (V = (H = i.state.afterButtonSentinel.current) == null ? void 0 : H.contains) != null && V.call(H, k.target) || i.actions.close()));
8114
8114
  }, !0);
8115
8115
  let F = d === Ce.Open;
8116
- Ii(F, O.resolveContainers, (M, Z) => {
8117
- i.actions.close(), Nr(Z, kr.Loose) || (M.preventDefault(), f == null || f.focus());
8116
+ Ii(F, O.resolveContainers, (k, Z) => {
8117
+ i.actions.close(), Nr(Z, kr.Loose) || (k.preventDefault(), f == null || f.focus());
8118
8118
  });
8119
- let N = ke({ open: d === Ce.Open, close: i.actions.refocusableClose }), P = Fe(i, re((M) => be(M.popoverState, { [Ce.Open]: we.Open, [Ce.Closed]: we.Closed }), [])), R = { ref: u }, z = le();
8120
- return $.createElement(d0, { node: C }, $.createElement(r0, null, $.createElement(Zr.Provider, { value: null }, $.createElement(C0.Provider, { value: i }, $.createElement(so, { value: i.actions.refocusableClose }, $.createElement(Fr, { value: P }, $.createElement(k, null, z({ ourProps: R, theirProps: s, slot: N, defaultTag: Vm, name: "Popover" }))))))));
8119
+ let N = ke({ open: d === Ce.Open, close: i.actions.refocusableClose }), P = Fe(i, re((k) => be(k.popoverState, { [Ce.Open]: we.Open, [Ce.Closed]: we.Closed }), [])), R = { ref: u }, z = le();
8120
+ return $.createElement(d0, { node: C }, $.createElement(r0, null, $.createElement(Zr.Provider, { value: null }, $.createElement(C0.Provider, { value: i }, $.createElement(so, { value: i.actions.refocusableClose }, $.createElement(Fr, { value: P }, $.createElement(M, null, z({ ourProps: R, theirProps: s, slot: N, defaultTag: Vm, name: "Popover" }))))))));
8121
8121
  }
8122
8122
  let Dm = "button";
8123
8123
  function _m(e, t) {
@@ -8125,16 +8125,16 @@ function _m(e, t) {
8125
8125
  fe(() => {
8126
8126
  if (!E) return l.actions.setButtonId(r), () => l.actions.setButtonId(null);
8127
8127
  }, [E, r, l]);
8128
- let [A] = ee(() => Symbol()), S = pe(p, t, e0(), L((_) => {
8128
+ let [S] = ee(() => Symbol()), A = pe(p, t, e0(), L((_) => {
8129
8129
  if (!E) {
8130
- if (_) l.state.buttons.current.push(A);
8130
+ if (_) l.state.buttons.current.push(S);
8131
8131
  else {
8132
- let Q = l.state.buttons.current.indexOf(A);
8132
+ let Q = l.state.buttons.current.indexOf(S);
8133
8133
  Q !== -1 && l.state.buttons.current.splice(Q, 1);
8134
8134
  }
8135
8135
  l.state.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), _ && l.actions.setButton(_);
8136
8136
  }
8137
- })), k = pe(p, t), C = L((_) => {
8137
+ })), M = pe(p, t), C = L((_) => {
8138
8138
  var Q, Ee, ie;
8139
8139
  if (E) {
8140
8140
  if (l.state.popoverState === Ce.Closed) return;
@@ -8164,7 +8164,7 @@ function _m(e, t) {
8164
8164
  sn(_.currentTarget) || o || (E ? (l.actions.close(), (Q = l.state.button) == null || Q.focus()) : (_.preventDefault(), _.stopPropagation(), l.state.popoverState === Ce.Closed ? (w == null || w(l.state.buttonId), l.actions.open()) : l.actions.close(), (Ee = l.state.button) == null || Ee.focus()));
8165
8165
  }), N = L((_) => {
8166
8166
  _.preventDefault(), _.stopPropagation();
8167
- }), { isFocusVisible: P, focusProps: R } = mn({ autoFocus: s }), { isHovered: z, hoverProps: M } = Zn({ isDisabled: o }), { pressed: Z, pressProps: D } = Dn({ disabled: o }), G = u === Ce.Open, j = ke({ open: G, active: Z || G, disabled: o, hover: z, focus: P, autofocus: s }), H = Bn(e, f), V = dt(E ? { ref: k, type: H, onKeyDown: C, onClick: F, disabled: o || void 0, autoFocus: s } : { ref: S, id: m, type: H, "aria-expanded": u === Ce.Open, "aria-controls": v ? h : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: C, onKeyUp: O, onClick: F, onMouseDown: N }, R, M, D), X = h0(), ge = L(() => {
8167
+ }), { isFocusVisible: P, focusProps: R } = mn({ autoFocus: s }), { isHovered: z, hoverProps: k } = Zn({ isDisabled: o }), { pressed: Z, pressProps: D } = Dn({ disabled: o }), G = u === Ce.Open, j = ke({ open: G, active: Z || G, disabled: o, hover: z, focus: P, autofocus: s }), H = Bn(e, f), V = dt(E ? { ref: M, type: H, onKeyDown: C, onClick: F, disabled: o || void 0, autoFocus: s } : { ref: A, id: m, type: H, "aria-expanded": u === Ce.Open, "aria-controls": v ? h : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: C, onKeyUp: O, onClick: F, onMouseDown: N }, R, k, D), X = h0(), ge = L(() => {
8168
8168
  if (!Je(l.state.panel)) return;
8169
8169
  let _ = l.state.panel;
8170
8170
  function Q() {
@@ -8184,12 +8184,12 @@ function k0(e, t) {
8184
8184
  }
8185
8185
  let zm = "div", Um = Qe.RenderStrategy | Qe.Static;
8186
8186
  function Gm(e, t) {
8187
- let n = $e(), { id: r = `headlessui-popover-panel-${n}`, focus: o = !1, anchor: s, portal: i = !1, modal: l = !1, transition: u = !1, ...d } = e, f = Vr("Popover.Panel"), m = Fe(f, f.selectors.isPortalled), [v, h, b, p, g] = Fe(f, re((B) => [B.popoverState, B.button, B.__demoMode, B.beforePanelSentinel, B.afterPanelSentinel], [])), x = `headlessui-focus-sentinel-before-${n}`, w = `headlessui-focus-sentinel-after-${n}`, E = W(null), A = Ji(s), [S, k] = n0(A), C = t0();
8188
- A && (i = !0);
8189
- let [O, F] = ee(null), N = pe(E, t, A ? S : null, f.actions.setPanel, F), P = Ln(h), R = Ln(E.current);
8187
+ let n = $e(), { id: r = `headlessui-popover-panel-${n}`, focus: o = !1, anchor: s, portal: i = !1, modal: l = !1, transition: u = !1, ...d } = e, f = Vr("Popover.Panel"), m = Fe(f, f.selectors.isPortalled), [v, h, b, p, g] = Fe(f, re((B) => [B.popoverState, B.button, B.__demoMode, B.beforePanelSentinel, B.afterPanelSentinel], [])), x = `headlessui-focus-sentinel-before-${n}`, w = `headlessui-focus-sentinel-after-${n}`, E = W(null), S = Ji(s), [A, M] = n0(S), C = t0();
8188
+ S && (i = !0);
8189
+ let [O, F] = ee(null), N = pe(E, t, S ? A : null, f.actions.setPanel, F), P = Ln(h), R = Ln(E.current);
8190
8190
  ce(() => (f.actions.setPanelId(r), () => f.actions.setPanelId(null)), [r, f]);
8191
- let z = gn(), [M, Z] = zn(u, O, z !== null ? (z & we.Open) === we.Open : v === Ce.Open);
8192
- Pi(M, h, f.actions.close), Oi(b ? !1 : l && M, R);
8191
+ let z = gn(), [k, Z] = zn(u, O, z !== null ? (z & we.Open) === we.Open : v === Ce.Open);
8192
+ Pi(k, h, f.actions.close), Oi(b ? !1 : l && k, R);
8193
8193
  let D = L((B) => {
8194
8194
  var _;
8195
8195
  switch (B.key) {
@@ -8209,11 +8209,11 @@ function Gm(e, t) {
8209
8209
  let B = xt(E.current);
8210
8210
  E.current.contains(B) || We(E.current, ye.First);
8211
8211
  }, [b, o, E.current, v]);
8212
- let G = ke({ open: v === Ce.Open, close: f.actions.refocusableClose }), j = dt(A ? C() : {}, { ref: N, id: r, onKeyDown: D, onBlur: o && v === Ce.Open ? (B) => {
8212
+ let G = ke({ open: v === Ce.Open, close: f.actions.refocusableClose }), j = dt(S ? C() : {}, { ref: N, id: r, onKeyDown: D, onBlur: o && v === Ce.Open ? (B) => {
8213
8213
  var _, Q, Ee, ie, Ne;
8214
8214
  let Le = B.relatedTarget;
8215
8215
  Le && E.current && ((_ = E.current) != null && _.contains(Le) || (f.actions.close(), ((Ee = (Q = p.current) == null ? void 0 : Q.contains) != null && Ee.call(Q, Le) || (Ne = (ie = g.current) == null ? void 0 : ie.contains) != null && Ne.call(ie, Le)) && Le.focus({ preventScroll: !0 })));
8216
- } : void 0, tabIndex: -1, style: { ...d.style, ...k, "--button-width": Si(M, h, !0).width }, ...Wn(Z) }), H = h0(), V = L(() => {
8216
+ } : void 0, tabIndex: -1, style: { ...d.style, ...M, "--button-width": Si(k, h, !0).width }, ...Wn(Z) }), H = h0(), V = L(() => {
8217
8217
  let B = E.current;
8218
8218
  if (!B) return;
8219
8219
  function _() {
@@ -8246,7 +8246,7 @@ function Gm(e, t) {
8246
8246
  }
8247
8247
  _();
8248
8248
  }), ge = le();
8249
- return $.createElement(o0, null, $.createElement(Zr.Provider, { value: r }, $.createElement(so, { value: f.actions.refocusableClose }, $.createElement(i0, { enabled: i ? e.static || M : !1, ownerDocument: P }, M && m && $.createElement(Pt, { id: x, ref: p, features: $t.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: V }), ge({ ourProps: j, theirProps: d, slot: G, defaultTag: zm, features: Um, visible: M, name: "Popover.Panel" }), M && m && $.createElement(Pt, { id: w, ref: g, features: $t.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: X })))));
8249
+ return $.createElement(o0, null, $.createElement(Zr.Provider, { value: r }, $.createElement(so, { value: f.actions.refocusableClose }, $.createElement(i0, { enabled: i ? e.static || k : !1, ownerDocument: P }, k && m && $.createElement(Pt, { id: x, ref: p, features: $t.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: V }), ge({ ourProps: j, theirProps: d, slot: G, defaultTag: zm, features: Um, visible: k, name: "Popover.Panel" }), k && m && $.createElement(Pt, { id: w, ref: g, features: $t.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: X })))));
8250
8250
  }
8251
8251
  let Km = "div";
8252
8252
  function Ym(e, t) {
@@ -8265,8 +8265,8 @@ function Ym(e, t) {
8265
8265
  if (!g) return !1;
8266
8266
  let x = xt(n.current);
8267
8267
  return (p = n.current) != null && p.contains(x) ? !0 : o.some((w) => {
8268
- var E, A;
8269
- return ((E = g.getElementById(w.buttonId.current)) == null ? void 0 : E.contains(x)) || ((A = g.getElementById(w.panelId.current)) == null ? void 0 : A.contains(x));
8268
+ var E, S;
8269
+ return ((E = g.getElementById(w.buttonId.current)) == null ? void 0 : E.contains(x)) || ((S = g.getElementById(w.panelId.current)) == null ? void 0 : S.contains(x));
8270
8270
  });
8271
8271
  }), d = L((p) => {
8272
8272
  for (let g of o) g.buttonId.current !== p && g.close();
@@ -8286,8 +8286,8 @@ function r4(e) {
8286
8286
  let a4 = "button";
8287
8287
  function o4(e, t) {
8288
8288
  var n;
8289
- let r = $e(), o = vi(), s = no(), { id: i = o || `headlessui-switch-${r}`, disabled: l = s || !1, checked: u, defaultChecked: d, onChange: f, name: m, value: v, form: h, autoFocus: b = !1, ...p } = e, g = ae(Eo), [x, w] = ee(null), E = W(null), A = pe(E, t, g === null ? null : g.setSwitch, w), S = Vd(d), [k, C] = Hd(u, f, S ?? !1), O = It(), [F, N] = ee(!1), P = L(() => {
8290
- N(!0), C == null || C(!k), O.nextFrame(() => {
8289
+ let r = $e(), o = vi(), s = no(), { id: i = o || `headlessui-switch-${r}`, disabled: l = s || !1, checked: u, defaultChecked: d, onChange: f, name: m, value: v, form: h, autoFocus: b = !1, ...p } = e, g = ae(Eo), [x, w] = ee(null), E = W(null), S = pe(E, t, g === null ? null : g.setSwitch, w), A = Vd(d), [M, C] = Hd(u, f, A ?? !1), O = It(), [F, N] = ee(!1), P = L(() => {
8290
+ N(!0), C == null || C(!M), O.nextFrame(() => {
8291
8291
  N(!1);
8292
8292
  });
8293
8293
  }), R = L((ie) => {
@@ -8295,10 +8295,10 @@ function o4(e, t) {
8295
8295
  ie.preventDefault(), P();
8296
8296
  }), z = L((ie) => {
8297
8297
  ie.key === q.Space ? (ie.preventDefault(), P()) : ie.key === q.Enter && Zd(ie.currentTarget);
8298
- }), M = L((ie) => ie.preventDefault()), Z = Ai(), D = e2(), { isFocusVisible: G, focusProps: j } = mn({ autoFocus: b }), { isHovered: H, hoverProps: V } = Zn({ isDisabled: l }), { pressed: X, pressProps: ge } = Dn({ disabled: l }), B = ke({ checked: k, disabled: l, hover: H, focus: G, active: X, autofocus: b, changing: F }), _ = dt({ id: i, ref: A, role: "switch", type: Bn(e, x), tabIndex: e.tabIndex === -1 ? 0 : (n = e.tabIndex) != null ? n : 0, "aria-checked": k, "aria-labelledby": Z, "aria-describedby": D, disabled: l || void 0, autoFocus: b, onClick: R, onKeyUp: z, onKeyPress: M }, j, V, ge), Q = re(() => {
8299
- if (S !== void 0) return C == null ? void 0 : C(S);
8300
- }, [C, S]), Ee = le();
8301
- return $.createElement($.Fragment, null, m != null && $.createElement(Ud, { disabled: l, data: { [m]: v || "on" }, overrides: { type: "checkbox", checked: k }, form: h, onReset: Q }), Ee({ ourProps: _, theirProps: p, slot: B, defaultTag: a4, name: "Switch" }));
8298
+ }), k = L((ie) => ie.preventDefault()), Z = Ai(), D = e2(), { isFocusVisible: G, focusProps: j } = mn({ autoFocus: b }), { isHovered: H, hoverProps: V } = Zn({ isDisabled: l }), { pressed: X, pressProps: ge } = Dn({ disabled: l }), B = ke({ checked: M, disabled: l, hover: H, focus: G, active: X, autofocus: b, changing: F }), _ = dt({ id: i, ref: S, role: "switch", type: Bn(e, x), tabIndex: e.tabIndex === -1 ? 0 : (n = e.tabIndex) != null ? n : 0, "aria-checked": M, "aria-labelledby": Z, "aria-describedby": D, disabled: l || void 0, autoFocus: b, onClick: R, onKeyUp: z, onKeyPress: k }, j, V, ge), Q = re(() => {
8299
+ if (A !== void 0) return C == null ? void 0 : C(A);
8300
+ }, [C, A]), Ee = le();
8301
+ return $.createElement($.Fragment, null, m != null && $.createElement(Ud, { disabled: l, data: { [m]: v || "on" }, overrides: { type: "checkbox", checked: M }, form: h, onReset: Q }), Ee({ ourProps: _, theirProps: p, slot: B, defaultTag: a4, name: "Switch" }));
8302
8302
  }
8303
8303
  let s4 = oe(o4), l4 = r4, i4 = i2, c4 = a2, u4 = Object.assign(s4, { Group: l4, Label: i4, Description: c4 });
8304
8304
  function d4({ onFocus: e }) {
@@ -8402,15 +8402,15 @@ function y4(e, t) {
8402
8402
  let { defaultIndex: n = 0, vertical: r = !1, manual: o = !1, onChange: s, selectedIndex: i = null, ...l } = e;
8403
8403
  const u = r ? "vertical" : "horizontal", d = o ? "manual" : "auto";
8404
8404
  let f = i !== null, m = Ue({ isControlled: f }), v = pe(t), [h, b] = ul(b4, { info: m, selectedIndex: i ?? n, tabs: [], panels: [] }), p = ke({ selectedIndex: h.selectedIndex }), g = Ue(s || (() => {
8405
- })), x = Ue(h.tabs), w = me(() => ({ orientation: u, activation: d, ...h }), [u, d, h]), E = L((N) => (b({ type: 1, tab: N }), () => b({ type: 2, tab: N }))), A = L((N) => (b({ type: 3, panel: N }), () => b({ type: 4, panel: N }))), S = L((N) => {
8406
- k.current !== N && g.current(N), f || b({ type: 0, index: N });
8407
- }), k = Ue(f ? e.selectedIndex : h.selectedIndex), C = me(() => ({ registerTab: E, registerPanel: A, change: S }), []);
8405
+ })), x = Ue(h.tabs), w = me(() => ({ orientation: u, activation: d, ...h }), [u, d, h]), E = L((N) => (b({ type: 1, tab: N }), () => b({ type: 2, tab: N }))), S = L((N) => (b({ type: 3, panel: N }), () => b({ type: 4, panel: N }))), A = L((N) => {
8406
+ M.current !== N && g.current(N), f || b({ type: 0, index: N });
8407
+ }), M = Ue(f ? e.selectedIndex : h.selectedIndex), C = me(() => ({ registerTab: E, registerPanel: S, change: A }), []);
8408
8408
  ce(() => {
8409
8409
  b({ type: 0, index: i ?? n });
8410
8410
  }, [i]), ce(() => {
8411
- if (k.current === void 0 || h.tabs.length <= 0) return;
8411
+ if (M.current === void 0 || h.tabs.length <= 0) return;
8412
8412
  let N = Vt(h.tabs, (P) => P.current);
8413
- N.some((P, R) => h.tabs[R] !== P) && S(N.indexOf(h.tabs[k.current]));
8413
+ N.some((P, R) => h.tabs[R] !== P) && A(N.indexOf(h.tabs[M.current]));
8414
8414
  });
8415
8415
  let O = { ref: v }, F = le();
8416
8416
  return $.createElement(m4, null, $.createElement(So.Provider, { value: C }, $.createElement(Ao.Provider, { value: w }, w.tabs.length <= 0 && $.createElement(d4, { onFocus: () => {
@@ -8429,9 +8429,9 @@ function S4(e, t) {
8429
8429
  var n, r;
8430
8430
  let o = $e(), { id: s = `headlessui-tabs-tab-${o}`, disabled: i = !1, autoFocus: l = !1, ...u } = e, { orientation: d, activation: f, selectedIndex: m, tabs: v, panels: h } = cn("Tab"), b = Co("Tab"), p = cn("Tab"), [g, x] = ee(null), w = W(null), E = pe(w, t, x);
8431
8431
  ce(() => b.registerTab(w), [b, w]);
8432
- let A = j0("tabs"), S = v.indexOf(w);
8433
- S === -1 && (S = A);
8434
- let k = S === m, C = L((V) => {
8432
+ let S = j0("tabs"), A = v.indexOf(w);
8433
+ A === -1 && (A = S);
8434
+ let M = A === m, C = L((V) => {
8435
8435
  let X = V();
8436
8436
  if (X === Nt.Success && f === "auto") {
8437
8437
  let ge = xt(w.current), B = p.tabs.findIndex((_) => _.current === ge);
@@ -8441,7 +8441,7 @@ function S4(e, t) {
8441
8441
  }), O = L((V) => {
8442
8442
  let X = v.map((ge) => ge.current).filter(Boolean);
8443
8443
  if (V.key === q.Space || V.key === q.Enter) {
8444
- V.preventDefault(), V.stopPropagation(), b.change(S);
8444
+ V.preventDefault(), V.stopPropagation(), b.change(A);
8445
8445
  return;
8446
8446
  }
8447
8447
  switch (V.key) {
@@ -8459,12 +8459,12 @@ function S4(e, t) {
8459
8459
  } })) === Nt.Success) return V.preventDefault();
8460
8460
  }), F = W(!1), N = L(() => {
8461
8461
  var V;
8462
- F.current || (F.current = !0, (V = w.current) == null || V.focus({ preventScroll: !0 }), b.change(S), to(() => {
8462
+ F.current || (F.current = !0, (V = w.current) == null || V.focus({ preventScroll: !0 }), b.change(A), to(() => {
8463
8463
  F.current = !1;
8464
8464
  }));
8465
8465
  }), P = L((V) => {
8466
8466
  V.preventDefault();
8467
- }), { isFocusVisible: R, focusProps: z } = mn({ autoFocus: l }), { isHovered: M, hoverProps: Z } = Zn({ isDisabled: i }), { pressed: D, pressProps: G } = Dn({ disabled: i }), j = ke({ selected: k, hover: M, active: D, focus: R, autofocus: l, disabled: i }), H = dt({ ref: E, onKeyDown: O, onMouseDown: P, onClick: N, id: s, role: "tab", type: Bn(e, g), "aria-controls": (r = (n = h[S]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": k, tabIndex: k ? 0 : -1, disabled: i || void 0, autoFocus: l }, z, Z, G);
8467
+ }), { isFocusVisible: R, focusProps: z } = mn({ autoFocus: l }), { isHovered: k, hoverProps: Z } = Zn({ isDisabled: i }), { pressed: D, pressProps: G } = Dn({ disabled: i }), j = ke({ selected: M, hover: k, active: D, focus: R, autofocus: l, disabled: i }), H = dt({ ref: E, onKeyDown: O, onMouseDown: P, onClick: N, id: s, role: "tab", type: Bn(e, g), "aria-controls": (r = (n = h[A]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": M, tabIndex: M ? 0 : -1, disabled: i || void 0, autoFocus: l }, z, Z, G);
8468
8468
  return le()({ ourProps: H, theirProps: u, slot: j, defaultTag: A4, name: "Tabs.Tab" });
8469
8469
  }
8470
8470
  let C4 = "div";
@@ -8479,8 +8479,8 @@ function j4(e, t) {
8479
8479
  ce(() => h.registerPanel(b), [h, b]);
8480
8480
  let g = j0("panels"), x = v.indexOf(b);
8481
8481
  x === -1 && (x = g);
8482
- let w = x === f, { isFocusVisible: E, focusProps: A } = mn(), S = ke({ selected: w, focus: E }), k = dt({ ref: p, id: l, role: "tabpanel", "aria-labelledby": (r = (n = m[x]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: w ? u : -1 }, A), C = le();
8483
- return !w && ((o = d.unmount) == null || o) && !((s = d.static) != null && s) ? $.createElement(Pt, { "aria-hidden": "true", ...k }) : C({ ourProps: k, theirProps: d, slot: S, defaultTag: k4, features: N4, visible: w, name: "Tabs.Panel" });
8482
+ let w = x === f, { isFocusVisible: E, focusProps: S } = mn(), A = ke({ selected: w, focus: E }), M = dt({ ref: p, id: l, role: "tabpanel", "aria-labelledby": (r = (n = m[x]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: w ? u : -1 }, S), C = le();
8483
+ return !w && ((o = d.unmount) == null || o) && !((s = d.static) != null && s) ? $.createElement(Pt, { "aria-hidden": "true", ...M }) : C({ ourProps: M, theirProps: d, slot: A, defaultTag: k4, features: N4, visible: w, name: "Tabs.Panel" });
8484
8484
  }
8485
8485
  let T4 = oe(S4), $4 = oe(y4), P4 = oe(E4), R4 = oe(M4), L4 = oe(j4), Cn = Object.assign(T4, { Group: $4, List: P4, Panels: R4, Panel: L4 });
8486
8486
  const F4 = {
@@ -9457,10 +9457,10 @@ var M6 = "DismissableLayer", Ba = "dismissableLayer.update", k6 = "dismissableLa
9457
9457
  onInteractOutside: i,
9458
9458
  onDismiss: l,
9459
9459
  ...u
9460
- } = e, d = a.useContext(F0), [f, m] = a.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = a.useState({}), b = tt(t, (C) => m(C)), p = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = p.indexOf(g), w = f ? p.indexOf(f) : -1, E = d.layersWithOutsidePointerEventsDisabled.size > 0, A = w >= x, S = T6((C) => {
9460
+ } = e, d = a.useContext(F0), [f, m] = a.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = a.useState({}), b = tt(t, (C) => m(C)), p = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = p.indexOf(g), w = f ? p.indexOf(f) : -1, E = d.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= x, A = T6((C) => {
9461
9461
  const O = C.target, F = [...d.branches].some((N) => N.contains(O));
9462
- !A || F || (o == null || o(C), i == null || i(C), C.defaultPrevented || l == null || l());
9463
- }, v), k = $6((C) => {
9462
+ !S || F || (o == null || o(C), i == null || i(C), C.defaultPrevented || l == null || l());
9463
+ }, v), M = $6((C) => {
9464
9464
  const O = C.target;
9465
9465
  [...d.branches].some((N) => N.contains(O)) || (s == null || s(C), i == null || i(C), C.defaultPrevented || l == null || l());
9466
9466
  }, v);
@@ -9482,14 +9482,14 @@ var M6 = "DismissableLayer", Ba = "dismissableLayer.update", k6 = "dismissableLa
9482
9482
  ...u,
9483
9483
  ref: b,
9484
9484
  style: {
9485
- pointerEvents: E ? A ? "auto" : "none" : void 0,
9485
+ pointerEvents: E ? S ? "auto" : "none" : void 0,
9486
9486
  ...e.style
9487
9487
  },
9488
- onFocusCapture: Te(e.onFocusCapture, k.onFocusCapture),
9489
- onBlurCapture: Te(e.onBlurCapture, k.onBlurCapture),
9488
+ onFocusCapture: Te(e.onFocusCapture, M.onFocusCapture),
9489
+ onBlurCapture: Te(e.onBlurCapture, M.onBlurCapture),
9490
9490
  onPointerDownCapture: Te(
9491
9491
  e.onPointerDownCapture,
9492
- S.onPointerDownCapture
9492
+ A.onPointerDownCapture
9493
9493
  )
9494
9494
  }
9495
9495
  );
@@ -9579,16 +9579,16 @@ var P6 = No, R6 = I0, va = "focusScope.autoFocusOnMount", ga = "focusScope.autoF
9579
9579
  if (r) {
9580
9580
  let p = function(E) {
9581
9581
  if (h.paused || !l) return;
9582
- const A = E.target;
9583
- l.contains(A) ? m.current = A : Ct(m.current, { select: !0 });
9582
+ const S = E.target;
9583
+ l.contains(S) ? m.current = S : Ct(m.current, { select: !0 });
9584
9584
  }, g = function(E) {
9585
9585
  if (h.paused || !l) return;
9586
- const A = E.relatedTarget;
9587
- A !== null && (l.contains(A) || Ct(m.current, { select: !0 }));
9586
+ const S = E.relatedTarget;
9587
+ S !== null && (l.contains(S) || Ct(m.current, { select: !0 }));
9588
9588
  }, x = function(E) {
9589
9589
  if (document.activeElement === document.body)
9590
- for (const S of E)
9591
- S.removedNodes.length > 0 && Ct(l);
9590
+ for (const A of E)
9591
+ A.removedNodes.length > 0 && Ct(l);
9592
9592
  };
9593
9593
  document.addEventListener("focusin", p), document.addEventListener("focusout", g);
9594
9594
  const w = new MutationObserver(x);
@@ -9617,8 +9617,8 @@ var P6 = No, R6 = I0, va = "focusScope.autoFocusOnMount", ga = "focusScope.autoF
9617
9617
  if (!n && !r || h.paused) return;
9618
9618
  const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, x = document.activeElement;
9619
9619
  if (g && x) {
9620
- const w = p.currentTarget, [E, A] = I6(w);
9621
- E && A ? !p.shiftKey && x === A ? (p.preventDefault(), n && Ct(E, { select: !0 })) : p.shiftKey && x === E && (p.preventDefault(), n && Ct(A, { select: !0 })) : x === w && p.preventDefault();
9620
+ const w = p.currentTarget, [E, S] = I6(w);
9621
+ E && S ? !p.shiftKey && x === S ? (p.preventDefault(), n && Ct(E, { select: !0 })) : p.shiftKey && x === E && (p.preventDefault(), n && Ct(S, { select: !0 })) : x === w && p.preventDefault();
9622
9622
  }
9623
9623
  },
9624
9624
  [n, r, h.paused]
@@ -9923,12 +9923,12 @@ var _0 = ep(), ya = function() {
9923
9923
  onScrollCapture: ya,
9924
9924
  onWheelCapture: ya,
9925
9925
  onTouchMoveCapture: ya
9926
- }), o = r[0], s = r[1], i = e.forwardProps, l = e.children, u = e.className, d = e.removeScrollBar, f = e.enabled, m = e.shards, v = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, g = e.allowPinchZoom, x = e.as, w = x === void 0 ? "div" : x, E = e.gapMode, A = Z0(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = v, k = X6([n, t]), C = at(at({}, A), o);
9926
+ }), o = r[0], s = r[1], i = e.forwardProps, l = e.children, u = e.className, d = e.removeScrollBar, f = e.enabled, m = e.shards, v = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, g = e.allowPinchZoom, x = e.as, w = x === void 0 ? "div" : x, E = e.gapMode, S = Z0(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), A = v, M = X6([n, t]), C = at(at({}, S), o);
9927
9927
  return a.createElement(
9928
9928
  a.Fragment,
9929
9929
  null,
9930
- f && a.createElement(S, { sideCar: _0, removeScrollBar: d, shards: m, noRelative: h, noIsolation: b, inert: p, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: E }),
9931
- i ? a.cloneElement(a.Children.only(l), at(at({}, C), { ref: k })) : a.createElement(w, at({}, C, { className: u, ref: k }), l)
9930
+ f && a.createElement(A, { sideCar: _0, removeScrollBar: d, shards: m, noRelative: h, noIsolation: b, inert: p, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: E }),
9931
+ i ? a.cloneElement(a.Children.only(l), at(at({}, C), { ref: M })) : a.createElement(w, at({}, C, { className: u, ref: M }), l)
9932
9932
  );
9933
9933
  });
9934
9934
  Wr.defaultProps = {
@@ -10174,43 +10174,43 @@ function Cp(e) {
10174
10174
  var l = a.useCallback(function(p, g) {
10175
10175
  if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
10176
10176
  return !i.current.allowPinchZoom;
10177
- var x = lr(p), w = n.current, E = "deltaX" in p ? p.deltaX : w[0] - x[0], A = "deltaY" in p ? p.deltaY : w[1] - x[1], S, k = p.target, C = Math.abs(E) > Math.abs(A) ? "h" : "v";
10178
- if ("touches" in p && C === "h" && k.type === "range")
10177
+ var x = lr(p), w = n.current, E = "deltaX" in p ? p.deltaX : w[0] - x[0], S = "deltaY" in p ? p.deltaY : w[1] - x[1], A, M = p.target, C = Math.abs(E) > Math.abs(S) ? "h" : "v";
10178
+ if ("touches" in p && C === "h" && M.type === "range")
10179
10179
  return !1;
10180
- var O = window.getSelection(), F = O && O.anchorNode, N = F ? F === k || F.contains(k) : !1;
10180
+ var O = window.getSelection(), F = O && O.anchorNode, N = F ? F === M || F.contains(M) : !1;
10181
10181
  if (N)
10182
10182
  return !1;
10183
- var P = rl(C, k);
10183
+ var P = rl(C, M);
10184
10184
  if (!P)
10185
10185
  return !0;
10186
- if (P ? S = C : (S = C === "v" ? "h" : "v", P = rl(C, k)), !P)
10186
+ if (P ? A = C : (A = C === "v" ? "h" : "v", P = rl(C, M)), !P)
10187
10187
  return !1;
10188
- if (!r.current && "changedTouches" in p && (E || A) && (r.current = S), !S)
10188
+ if (!r.current && "changedTouches" in p && (E || S) && (r.current = A), !A)
10189
10189
  return !0;
10190
- var R = r.current || S;
10191
- return wp(R, g, p, R === "h" ? E : A);
10190
+ var R = r.current || A;
10191
+ return wp(R, g, p, R === "h" ? E : S);
10192
10192
  }, []), u = a.useCallback(function(p) {
10193
10193
  var g = p;
10194
10194
  if (!(!qt.length || qt[qt.length - 1] !== s)) {
10195
- var x = "deltaY" in g ? al(g) : lr(g), w = t.current.filter(function(S) {
10196
- return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && Ep(S.delta, x);
10195
+ var x = "deltaY" in g ? al(g) : lr(g), w = t.current.filter(function(A) {
10196
+ return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && Ep(A.delta, x);
10197
10197
  })[0];
10198
10198
  if (w && w.should) {
10199
10199
  g.cancelable && g.preventDefault();
10200
10200
  return;
10201
10201
  }
10202
10202
  if (!w) {
10203
- var E = (i.current.shards || []).map(ol).filter(Boolean).filter(function(S) {
10204
- return S.contains(g.target);
10205
- }), A = E.length > 0 ? l(g, E[0]) : !i.current.noIsolation;
10206
- A && g.cancelable && g.preventDefault();
10203
+ var E = (i.current.shards || []).map(ol).filter(Boolean).filter(function(A) {
10204
+ return A.contains(g.target);
10205
+ }), S = E.length > 0 ? l(g, E[0]) : !i.current.noIsolation;
10206
+ S && g.cancelable && g.preventDefault();
10207
10207
  }
10208
10208
  }
10209
10209
  }, []), d = a.useCallback(function(p, g, x, w) {
10210
10210
  var E = { name: p, delta: g, target: x, should: w, shadowParent: Mp(x) };
10211
10211
  t.current.push(E), setTimeout(function() {
10212
- t.current = t.current.filter(function(A) {
10213
- return A !== E;
10212
+ t.current = t.current.filter(function(S) {
10213
+ return S !== E;
10214
10214
  });
10215
10215
  }, 1);
10216
10216
  }, []), f = a.useCallback(function(p) {
@@ -10764,15 +10764,15 @@ function sh(e) {
10764
10764
  i.displayName = t;
10765
10765
  const l = e + "CollectionSlot", u = /* @__PURE__ */ ll(l), d = $.forwardRef(
10766
10766
  (p, g) => {
10767
- const { scope: x, children: w } = p, E = s(l, x), A = tt(g, E.collectionRef);
10768
- return /* @__PURE__ */ c.jsx(u, { ref: A, children: w });
10767
+ const { scope: x, children: w } = p, E = s(l, x), S = tt(g, E.collectionRef);
10768
+ return /* @__PURE__ */ c.jsx(u, { ref: S, children: w });
10769
10769
  }
10770
10770
  );
10771
10771
  d.displayName = l;
10772
10772
  const f = e + "CollectionItemSlot", m = "data-radix-collection-item", v = /* @__PURE__ */ ll(f), h = $.forwardRef(
10773
10773
  (p, g) => {
10774
- const { scope: x, children: w, ...E } = p, A = $.useRef(null), S = tt(g, A), k = s(f, x);
10775
- return $.useEffect(() => (k.itemMap.set(A, { ref: A, ...E }), () => void k.itemMap.delete(A))), /* @__PURE__ */ c.jsx(v, { [m]: "", ref: S, children: w });
10774
+ const { scope: x, children: w, ...E } = p, S = $.useRef(null), A = tt(g, S), M = s(f, x);
10775
+ return $.useEffect(() => (M.itemMap.set(S, { ref: S, ...E }), () => void M.itemMap.delete(S))), /* @__PURE__ */ c.jsx(v, { [m]: "", ref: A, children: w });
10776
10776
  }
10777
10777
  );
10778
10778
  h.displayName = f;
@@ -10783,7 +10783,7 @@ function sh(e) {
10783
10783
  if (!w) return [];
10784
10784
  const E = Array.from(w.querySelectorAll(`[${m}]`));
10785
10785
  return Array.from(g.itemMap.values()).sort(
10786
- (k, C) => E.indexOf(k.ref.current) - E.indexOf(C.ref.current)
10786
+ (M, C) => E.indexOf(M.ref.current) - E.indexOf(C.ref.current)
10787
10787
  );
10788
10788
  }, [g.collectionRef, g.itemMap]);
10789
10789
  }
@@ -10858,7 +10858,7 @@ var Sc = "ToastViewport", fh = ["F8"], za = "toast.viewportPause", Ua = "toast.v
10858
10858
  a.useEffect(() => {
10859
10859
  const g = (x) => {
10860
10860
  var E;
10861
- r.length !== 0 && r.every((A) => x[A] || x.code === A) && ((E = m.current) == null || E.focus());
10861
+ r.length !== 0 && r.every((S) => x[S] || x.code === S) && ((E = m.current) == null || E.focus());
10862
10862
  };
10863
10863
  return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
10864
10864
  }, [r]), a.useEffect(() => {
@@ -10866,29 +10866,29 @@ var Sc = "ToastViewport", fh = ["F8"], za = "toast.viewportPause", Ua = "toast.v
10866
10866
  if (b && g && x) {
10867
10867
  const w = () => {
10868
10868
  if (!i.isClosePausedRef.current) {
10869
- const k = new CustomEvent(za);
10870
- x.dispatchEvent(k), i.isClosePausedRef.current = !0;
10869
+ const M = new CustomEvent(za);
10870
+ x.dispatchEvent(M), i.isClosePausedRef.current = !0;
10871
10871
  }
10872
10872
  }, E = () => {
10873
10873
  if (i.isClosePausedRef.current) {
10874
- const k = new CustomEvent(Ua);
10875
- x.dispatchEvent(k), i.isClosePausedRef.current = !1;
10874
+ const M = new CustomEvent(Ua);
10875
+ x.dispatchEvent(M), i.isClosePausedRef.current = !1;
10876
10876
  }
10877
- }, A = (k) => {
10878
- !g.contains(k.relatedTarget) && E();
10879
- }, S = () => {
10877
+ }, S = (M) => {
10878
+ !g.contains(M.relatedTarget) && E();
10879
+ }, A = () => {
10880
10880
  g.contains(document.activeElement) || E();
10881
10881
  };
10882
- return g.addEventListener("focusin", w), g.addEventListener("focusout", A), g.addEventListener("pointermove", w), g.addEventListener("pointerleave", S), window.addEventListener("blur", w), window.addEventListener("focus", E), () => {
10883
- g.removeEventListener("focusin", w), g.removeEventListener("focusout", A), g.removeEventListener("pointermove", w), g.removeEventListener("pointerleave", S), window.removeEventListener("blur", w), window.removeEventListener("focus", E);
10882
+ return g.addEventListener("focusin", w), g.addEventListener("focusout", S), g.addEventListener("pointermove", w), g.addEventListener("pointerleave", A), window.addEventListener("blur", w), window.addEventListener("focus", E), () => {
10883
+ g.removeEventListener("focusin", w), g.removeEventListener("focusout", S), g.removeEventListener("pointermove", w), g.removeEventListener("pointerleave", A), window.removeEventListener("blur", w), window.removeEventListener("focus", E);
10884
10884
  };
10885
10885
  }
10886
10886
  }, [b, i.isClosePausedRef]);
10887
10887
  const p = a.useCallback(
10888
10888
  ({ tabbingDirection: g }) => {
10889
10889
  const w = l().map((E) => {
10890
- const A = E.ref.current, S = [A, ...Mh(A)];
10891
- return g === "forwards" ? S : S.reverse();
10890
+ const S = E.ref.current, A = [S, ...Mh(S)];
10891
+ return g === "forwards" ? A : A.reverse();
10892
10892
  });
10893
10893
  return (g === "forwards" ? w.reverse() : w).flat();
10894
10894
  },
@@ -10898,16 +10898,16 @@ var Sc = "ToastViewport", fh = ["F8"], za = "toast.viewportPause", Ua = "toast.v
10898
10898
  const g = m.current;
10899
10899
  if (g) {
10900
10900
  const x = (w) => {
10901
- var S, k, C;
10901
+ var A, M, C;
10902
10902
  const E = w.altKey || w.ctrlKey || w.metaKey;
10903
10903
  if (w.key === "Tab" && !E) {
10904
10904
  const O = document.activeElement, F = w.shiftKey;
10905
10905
  if (w.target === g && F) {
10906
- (S = d.current) == null || S.focus();
10906
+ (A = d.current) == null || A.focus();
10907
10907
  return;
10908
10908
  }
10909
- const R = p({ tabbingDirection: F ? "backwards" : "forwards" }), z = R.findIndex((M) => M === O);
10910
- Aa(R.slice(z + 1)) ? w.preventDefault() : F ? (k = d.current) == null || k.focus() : (C = f.current) == null || C.focus();
10909
+ const R = p({ tabbingDirection: F ? "backwards" : "forwards" }), z = R.findIndex((k) => k === O);
10910
+ Aa(R.slice(z + 1)) ? w.preventDefault() : F ? (M = d.current) == null || M.focus() : (C = f.current) == null || C.focus();
10911
10911
  }
10912
10912
  };
10913
10913
  return g.addEventListener("keydown", x), () => g.removeEventListener("keydown", x);
@@ -11027,31 +11027,31 @@ var [gh, bh] = Ec(Yn, {
11027
11027
  onSwipeCancel: v,
11028
11028
  onSwipeEnd: h,
11029
11029
  ...b
11030
- } = e, p = Ur(Yn, n), [g, x] = a.useState(null), w = tt(t, (M) => x(M)), E = a.useRef(null), A = a.useRef(null), S = o || p.duration, k = a.useRef(0), C = a.useRef(S), O = a.useRef(0), { onToastAdd: F, onToastRemove: N } = p, P = yt(() => {
11030
+ } = e, p = Ur(Yn, n), [g, x] = a.useState(null), w = tt(t, (k) => x(k)), E = a.useRef(null), S = a.useRef(null), A = o || p.duration, M = a.useRef(0), C = a.useRef(A), O = a.useRef(0), { onToastAdd: F, onToastRemove: N } = p, P = yt(() => {
11031
11031
  var Z;
11032
11032
  (g == null ? void 0 : g.contains(document.activeElement)) && ((Z = p.viewport) == null || Z.focus()), i();
11033
11033
  }), R = a.useCallback(
11034
- (M) => {
11035
- !M || M === 1 / 0 || (window.clearTimeout(O.current), k.current = (/* @__PURE__ */ new Date()).getTime(), O.current = window.setTimeout(P, M));
11034
+ (k) => {
11035
+ !k || k === 1 / 0 || (window.clearTimeout(O.current), M.current = (/* @__PURE__ */ new Date()).getTime(), O.current = window.setTimeout(P, k));
11036
11036
  },
11037
11037
  [P]
11038
11038
  );
11039
11039
  a.useEffect(() => {
11040
- const M = p.viewport;
11041
- if (M) {
11040
+ const k = p.viewport;
11041
+ if (k) {
11042
11042
  const Z = () => {
11043
11043
  R(C.current), d == null || d();
11044
11044
  }, D = () => {
11045
- const G = (/* @__PURE__ */ new Date()).getTime() - k.current;
11045
+ const G = (/* @__PURE__ */ new Date()).getTime() - M.current;
11046
11046
  C.current = C.current - G, window.clearTimeout(O.current), u == null || u();
11047
11047
  };
11048
- return M.addEventListener(za, D), M.addEventListener(Ua, Z), () => {
11049
- M.removeEventListener(za, D), M.removeEventListener(Ua, Z);
11048
+ return k.addEventListener(za, D), k.addEventListener(Ua, Z), () => {
11049
+ k.removeEventListener(za, D), k.removeEventListener(Ua, Z);
11050
11050
  };
11051
11051
  }
11052
- }, [p.viewport, S, u, d, R]), a.useEffect(() => {
11053
- s && !p.isClosePausedRef.current && R(S);
11054
- }, [s, S, p.isClosePausedRef, R]), a.useEffect(() => (F(), () => N()), [F, N]);
11052
+ }, [p.viewport, A, u, d, R]), a.useEffect(() => {
11053
+ s && !p.isClosePausedRef.current && R(A);
11054
+ }, [s, A, p.isClosePausedRef, R]), a.useEffect(() => (F(), () => N()), [F, N]);
11055
11055
  const z = a.useMemo(() => g ? Rc(g) : null, [g]);
11056
11056
  return p.viewport ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
11057
11057
  z && /* @__PURE__ */ c.jsx(
@@ -11080,25 +11080,25 @@ var [gh, bh] = Ec(Yn, {
11080
11080
  ...b,
11081
11081
  ref: w,
11082
11082
  style: { userSelect: "none", touchAction: "none", ...e.style },
11083
- onKeyDown: Te(e.onKeyDown, (M) => {
11084
- M.key === "Escape" && (l == null || l(M.nativeEvent), M.nativeEvent.defaultPrevented || (p.isFocusedToastEscapeKeyDownRef.current = !0, P()));
11083
+ onKeyDown: Te(e.onKeyDown, (k) => {
11084
+ k.key === "Escape" && (l == null || l(k.nativeEvent), k.nativeEvent.defaultPrevented || (p.isFocusedToastEscapeKeyDownRef.current = !0, P()));
11085
11085
  }),
11086
- onPointerDown: Te(e.onPointerDown, (M) => {
11087
- M.button === 0 && (E.current = { x: M.clientX, y: M.clientY });
11086
+ onPointerDown: Te(e.onPointerDown, (k) => {
11087
+ k.button === 0 && (E.current = { x: k.clientX, y: k.clientY });
11088
11088
  }),
11089
- onPointerMove: Te(e.onPointerMove, (M) => {
11089
+ onPointerMove: Te(e.onPointerMove, (k) => {
11090
11090
  if (!E.current) return;
11091
- const Z = M.clientX - E.current.x, D = M.clientY - E.current.y, G = !!A.current, j = ["left", "right"].includes(p.swipeDirection), H = ["left", "up"].includes(p.swipeDirection) ? Math.min : Math.max, V = j ? H(0, Z) : 0, X = j ? 0 : H(0, D), ge = M.pointerType === "touch" ? 10 : 2, B = { x: V, y: X }, _ = { originalEvent: M, delta: B };
11092
- G ? (A.current = B, ur(ph, m, _, {
11091
+ const Z = k.clientX - E.current.x, D = k.clientY - E.current.y, G = !!S.current, j = ["left", "right"].includes(p.swipeDirection), H = ["left", "up"].includes(p.swipeDirection) ? Math.min : Math.max, V = j ? H(0, Z) : 0, X = j ? 0 : H(0, D), ge = k.pointerType === "touch" ? 10 : 2, B = { x: V, y: X }, _ = { originalEvent: k, delta: B };
11092
+ G ? (S.current = B, ur(ph, m, _, {
11093
11093
  discrete: !1
11094
- })) : il(B, p.swipeDirection, ge) ? (A.current = B, ur(mh, f, _, {
11094
+ })) : il(B, p.swipeDirection, ge) ? (S.current = B, ur(mh, f, _, {
11095
11095
  discrete: !1
11096
- }), M.target.setPointerCapture(M.pointerId)) : (Math.abs(Z) > ge || Math.abs(D) > ge) && (E.current = null);
11096
+ }), k.target.setPointerCapture(k.pointerId)) : (Math.abs(Z) > ge || Math.abs(D) > ge) && (E.current = null);
11097
11097
  }),
11098
- onPointerUp: Te(e.onPointerUp, (M) => {
11099
- const Z = A.current, D = M.target;
11100
- if (D.hasPointerCapture(M.pointerId) && D.releasePointerCapture(M.pointerId), A.current = null, E.current = null, Z) {
11101
- const G = M.currentTarget, j = { originalEvent: M, delta: Z };
11098
+ onPointerUp: Te(e.onPointerUp, (k) => {
11099
+ const Z = S.current, D = k.target;
11100
+ if (D.hasPointerCapture(k.pointerId) && D.releasePointerCapture(k.pointerId), S.current = null, E.current = null, Z) {
11101
+ const G = k.currentTarget, j = { originalEvent: k, delta: Z };
11102
11102
  il(Z, p.swipeDirection, p.swipeThreshold) ? ur(vh, h, j, {
11103
11103
  discrete: !0
11104
11104
  }) : ur(
@@ -12271,21 +12271,27 @@ function Cv({ children: e, direction: t = "forward", layoutId: n, className: r }
12271
12271
  n
12272
12272
  ) }) });
12273
12273
  }
12274
- const dv = a.memo(({ children: e, strength: t = 0.5 }) => {
12275
- const n = a.useRef(null), r = an(0), o = an(0), s = { damping: 15, stiffness: 150, mass: 0.1 }, i = on(r, s), l = on(o, s), u = (f) => {
12276
- if (!n.current) return;
12277
- const { clientX: m, clientY: v } = f, { left: h, top: b, width: p, height: g } = n.current.getBoundingClientRect(), x = h + p / 2, w = b + g / 2, E = m - x, A = v - w;
12278
- r.set(E * t), o.set(A * t);
12279
- }, d = () => {
12280
- r.set(0), o.set(0);
12274
+ const dv = a.memo(({
12275
+ children: e,
12276
+ strength: t = 0.5,
12277
+ mode: n = "attract",
12278
+ springConfig: r = { damping: 15, stiffness: 150, mass: 0.1 }
12279
+ }) => {
12280
+ const o = a.useRef(null), s = an(0), i = an(0), l = on(s, r), u = on(i, r), d = (m) => {
12281
+ if (!o.current) return;
12282
+ const { clientX: v, clientY: h } = m, { left: b, top: p, width: g, height: x } = o.current.getBoundingClientRect(), w = b + g / 2, E = p + x / 2, S = v - w, A = h - E, M = n === "attract" ? 1 : -1;
12283
+ s.set(S * t * M), i.set(A * t * M);
12284
+ }, f = () => {
12285
+ s.set(0), i.set(0);
12281
12286
  };
12282
12287
  return /* @__PURE__ */ c.jsx(
12283
12288
  ut.div,
12284
12289
  {
12285
- ref: n,
12286
- onMouseMove: u,
12287
- onMouseLeave: d,
12288
- style: { x: i, y: l },
12290
+ ref: o,
12291
+ onMouseMove: d,
12292
+ onMouseLeave: f,
12293
+ style: { x: l, y: u },
12294
+ className: "inline-block",
12289
12295
  children: e
12290
12296
  }
12291
12297
  );