buildgrid-ui 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -339,7 +339,7 @@ function mf() {
339
339
  value: null
340
340
  }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
341
341
  }
342
- function w(y, $, _, te, xe, ue) {
342
+ function v(y, $, _, te, xe, ue) {
343
343
  if (typeof y == "string" || typeof y == "function" || y === R || y === D || y === P || y === j || y === H || y === L || typeof y == "object" && y !== null && (y.$$typeof === ne || y.$$typeof === B || y.$$typeof === W || y.$$typeof === I || y.$$typeof === z || y.$$typeof === K || y.getModuleId !== void 0)) {
344
344
  var U = $.children;
345
345
  if (U !== void 0)
@@ -392,20 +392,20 @@ React keys must be passed directly to JSX without using spread:
392
392
  if (G(y))
393
393
  for (var _ = 0; _ < y.length; _++) {
394
394
  var te = y[_];
395
- v(te) && b(te, $);
395
+ w(te) && x(te, $);
396
396
  }
397
- else if (v(y))
397
+ else if (w(y))
398
398
  y._store && (y._store.validated = 1);
399
399
  else if (y === null || typeof y != "object" ? _ = null : (_ = V && y[V] || y["@@iterator"], _ = typeof _ == "function" ? _ : null), typeof _ == "function" && _ !== y.entries && (_ = _.call(y), _ !== y))
400
400
  for (; !(y = _.next()).done; )
401
- v(y.value) && b(y.value, $);
401
+ w(y.value) && x(y.value, $);
402
402
  }
403
403
  }
404
- function v(y) {
404
+ function w(y) {
405
405
  return typeof y == "object" && y !== null && y.$$typeof === N;
406
406
  }
407
- function b(y, $) {
408
- if (y._store && !y._store.validated && y.key == null && (y._store.validated = 1, $ = x($), !ot[$])) {
407
+ function x(y, $) {
408
+ if (y._store && !y._store.validated && y.key == null && (y._store.validated = 1, $ = b($), !ot[$])) {
409
409
  ot[$] = !0;
410
410
  var _ = "";
411
411
  y && y._owner != null && y._owner !== d() && (_ = null, typeof y._owner.tag == "number" ? _ = e(y._owner.type) : typeof y._owner.name == "string" && (_ = y._owner.name), _ = " It was passed a child from " + _ + ".");
@@ -420,7 +420,7 @@ React keys must be passed directly to JSX without using spread:
420
420
  ), S.getCurrentStack = te;
421
421
  }
422
422
  }
423
- function x(y) {
423
+ function b(y) {
424
424
  var $ = "", _ = d();
425
425
  return _ && (_ = e(_.type)) && ($ = `
426
426
 
@@ -432,9 +432,9 @@ Check the top-level render call using <` + y + ">."), $;
432
432
  r.__reactDisabledLog = !0;
433
433
  var se, ve, Ne = !1, Te = new (typeof WeakMap == "function" ? WeakMap : Map)(), nt = Symbol.for("react.client.reference"), Oe, rt = {}, He = {}, ot = {};
434
434
  nn.Fragment = R, nn.jsx = function(y, $, _, te, xe) {
435
- return w(y, $, _, !1, te, xe);
435
+ return v(y, $, _, !1, te, xe);
436
436
  }, nn.jsxs = function(y, $, _, te, xe) {
437
- return w(y, $, _, !0, te, xe);
437
+ return v(y, $, _, !0, te, xe);
438
438
  };
439
439
  }()), nn;
440
440
  }
@@ -565,25 +565,25 @@ const vo = "-", hf = (e) => {
565
565
  } = e, r = t.length === 1, o = t[0], a = t.length, s = (i) => {
566
566
  const u = [];
567
567
  let d = 0, f = 0, p;
568
- for (let v = 0; v < i.length; v++) {
569
- let b = i[v];
568
+ for (let w = 0; w < i.length; w++) {
569
+ let x = i[w];
570
570
  if (d === 0) {
571
- if (b === o && (r || i.slice(v, v + a) === t)) {
572
- u.push(i.slice(f, v)), f = v + a;
571
+ if (x === o && (r || i.slice(w, w + a) === t)) {
572
+ u.push(i.slice(f, w)), f = w + a;
573
573
  continue;
574
574
  }
575
- if (b === "/") {
576
- p = v;
575
+ if (x === "/") {
576
+ p = w;
577
577
  continue;
578
578
  }
579
579
  }
580
- b === "[" ? d++ : b === "]" && d--;
580
+ x === "[" ? d++ : x === "]" && d--;
581
581
  }
582
- const g = u.length === 0 ? i : i.substring(f), m = g.startsWith(Ds), w = m ? g.substring(1) : g, h = p && p > f ? p - f : void 0;
582
+ const g = u.length === 0 ? i : i.substring(f), m = g.startsWith(Ds), v = m ? g.substring(1) : g, h = p && p > f ? p - f : void 0;
583
583
  return {
584
584
  modifiers: u,
585
585
  hasImportantModifier: m,
586
- baseClassName: w,
586
+ baseClassName: v,
587
587
  maybePostfixModifierPosition: h
588
588
  };
589
589
  };
@@ -617,9 +617,9 @@ const vo = "-", hf = (e) => {
617
617
  baseClassName: g,
618
618
  maybePostfixModifierPosition: m
619
619
  } = n(d);
620
- let w = !!m, h = r(w ? g.substring(0, m) : g);
620
+ let v = !!m, h = r(v ? g.substring(0, m) : g);
621
621
  if (!h) {
622
- if (!w) {
622
+ if (!v) {
623
623
  i = d + (i.length > 0 ? " " + i : i);
624
624
  continue;
625
625
  }
@@ -627,16 +627,16 @@ const vo = "-", hf = (e) => {
627
627
  i = d + (i.length > 0 ? " " + i : i);
628
628
  continue;
629
629
  }
630
- w = !1;
630
+ v = !1;
631
631
  }
632
- const v = Cf(f).join(":"), b = p ? v + Ds : v, x = b + h;
633
- if (a.includes(x))
632
+ const w = Cf(f).join(":"), x = p ? w + Ds : w, b = x + h;
633
+ if (a.includes(b))
634
634
  continue;
635
- a.push(x);
636
- const C = o(h, w);
635
+ a.push(b);
636
+ const C = o(h, v);
637
637
  for (let N = 0; N < C.length; ++N) {
638
638
  const E = C[N];
639
- a.push(b + E);
639
+ a.push(x + E);
640
640
  }
641
641
  i = d + (i.length > 0 ? " " + i : i);
642
642
  }
@@ -685,7 +685,7 @@ const de = (e) => {
685
685
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
686
686
  Df.test(e) && !kf.test(e)
687
687
  ), _s = () => !1, Vf = (e) => If.test(e), Yf = (e) => _f.test(e), Hf = () => {
688
- const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), a = de("borderRadius"), s = de("borderSpacing"), i = de("borderWidth"), u = de("contrast"), d = de("grayscale"), f = de("hueRotate"), p = de("invert"), g = de("gap"), m = de("gradientColorStops"), w = de("gradientColorStopPositions"), h = de("inset"), v = de("margin"), b = de("opacity"), x = de("padding"), C = de("saturate"), N = de("scale"), E = de("sepia"), R = de("skew"), P = de("space"), D = de("translate"), I = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", J, t], j = () => [J, t], H = () => ["", at, ft], B = () => ["auto", Lt, J], ne = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], S = () => ["", "0", J], Y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Lt, J];
688
+ const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), a = de("borderRadius"), s = de("borderSpacing"), i = de("borderWidth"), u = de("contrast"), d = de("grayscale"), f = de("hueRotate"), p = de("invert"), g = de("gap"), m = de("gradientColorStops"), v = de("gradientColorStopPositions"), h = de("inset"), w = de("margin"), x = de("opacity"), b = de("padding"), C = de("saturate"), N = de("scale"), E = de("sepia"), R = de("skew"), P = de("space"), D = de("translate"), I = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", J, t], j = () => [J, t], H = () => ["", at, ft], B = () => ["auto", Lt, J], ne = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], S = () => ["", "0", J], Y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Lt, J];
689
689
  return {
690
690
  cacheSize: 500,
691
691
  separator: ":",
@@ -1153,126 +1153,126 @@ const de = (e) => {
1153
1153
  * @see https://tailwindcss.com/docs/padding
1154
1154
  */
1155
1155
  p: [{
1156
- p: [x]
1156
+ p: [b]
1157
1157
  }],
1158
1158
  /**
1159
1159
  * Padding X
1160
1160
  * @see https://tailwindcss.com/docs/padding
1161
1161
  */
1162
1162
  px: [{
1163
- px: [x]
1163
+ px: [b]
1164
1164
  }],
1165
1165
  /**
1166
1166
  * Padding Y
1167
1167
  * @see https://tailwindcss.com/docs/padding
1168
1168
  */
1169
1169
  py: [{
1170
- py: [x]
1170
+ py: [b]
1171
1171
  }],
1172
1172
  /**
1173
1173
  * Padding Start
1174
1174
  * @see https://tailwindcss.com/docs/padding
1175
1175
  */
1176
1176
  ps: [{
1177
- ps: [x]
1177
+ ps: [b]
1178
1178
  }],
1179
1179
  /**
1180
1180
  * Padding End
1181
1181
  * @see https://tailwindcss.com/docs/padding
1182
1182
  */
1183
1183
  pe: [{
1184
- pe: [x]
1184
+ pe: [b]
1185
1185
  }],
1186
1186
  /**
1187
1187
  * Padding Top
1188
1188
  * @see https://tailwindcss.com/docs/padding
1189
1189
  */
1190
1190
  pt: [{
1191
- pt: [x]
1191
+ pt: [b]
1192
1192
  }],
1193
1193
  /**
1194
1194
  * Padding Right
1195
1195
  * @see https://tailwindcss.com/docs/padding
1196
1196
  */
1197
1197
  pr: [{
1198
- pr: [x]
1198
+ pr: [b]
1199
1199
  }],
1200
1200
  /**
1201
1201
  * Padding Bottom
1202
1202
  * @see https://tailwindcss.com/docs/padding
1203
1203
  */
1204
1204
  pb: [{
1205
- pb: [x]
1205
+ pb: [b]
1206
1206
  }],
1207
1207
  /**
1208
1208
  * Padding Left
1209
1209
  * @see https://tailwindcss.com/docs/padding
1210
1210
  */
1211
1211
  pl: [{
1212
- pl: [x]
1212
+ pl: [b]
1213
1213
  }],
1214
1214
  /**
1215
1215
  * Margin
1216
1216
  * @see https://tailwindcss.com/docs/margin
1217
1217
  */
1218
1218
  m: [{
1219
- m: [v]
1219
+ m: [w]
1220
1220
  }],
1221
1221
  /**
1222
1222
  * Margin X
1223
1223
  * @see https://tailwindcss.com/docs/margin
1224
1224
  */
1225
1225
  mx: [{
1226
- mx: [v]
1226
+ mx: [w]
1227
1227
  }],
1228
1228
  /**
1229
1229
  * Margin Y
1230
1230
  * @see https://tailwindcss.com/docs/margin
1231
1231
  */
1232
1232
  my: [{
1233
- my: [v]
1233
+ my: [w]
1234
1234
  }],
1235
1235
  /**
1236
1236
  * Margin Start
1237
1237
  * @see https://tailwindcss.com/docs/margin
1238
1238
  */
1239
1239
  ms: [{
1240
- ms: [v]
1240
+ ms: [w]
1241
1241
  }],
1242
1242
  /**
1243
1243
  * Margin End
1244
1244
  * @see https://tailwindcss.com/docs/margin
1245
1245
  */
1246
1246
  me: [{
1247
- me: [v]
1247
+ me: [w]
1248
1248
  }],
1249
1249
  /**
1250
1250
  * Margin Top
1251
1251
  * @see https://tailwindcss.com/docs/margin
1252
1252
  */
1253
1253
  mt: [{
1254
- mt: [v]
1254
+ mt: [w]
1255
1255
  }],
1256
1256
  /**
1257
1257
  * Margin Right
1258
1258
  * @see https://tailwindcss.com/docs/margin
1259
1259
  */
1260
1260
  mr: [{
1261
- mr: [v]
1261
+ mr: [w]
1262
1262
  }],
1263
1263
  /**
1264
1264
  * Margin Bottom
1265
1265
  * @see https://tailwindcss.com/docs/margin
1266
1266
  */
1267
1267
  mb: [{
1268
- mb: [v]
1268
+ mb: [w]
1269
1269
  }],
1270
1270
  /**
1271
1271
  * Margin Left
1272
1272
  * @see https://tailwindcss.com/docs/margin
1273
1273
  */
1274
1274
  ml: [{
1275
- ml: [v]
1275
+ ml: [w]
1276
1276
  }],
1277
1277
  /**
1278
1278
  * Space Between X
@@ -1467,7 +1467,7 @@ const de = (e) => {
1467
1467
  * @see https://tailwindcss.com/docs/placeholder-opacity
1468
1468
  */
1469
1469
  "placeholder-opacity": [{
1470
- "placeholder-opacity": [b]
1470
+ "placeholder-opacity": [x]
1471
1471
  }],
1472
1472
  /**
1473
1473
  * Text Alignment
@@ -1488,7 +1488,7 @@ const de = (e) => {
1488
1488
  * @see https://tailwindcss.com/docs/text-opacity
1489
1489
  */
1490
1490
  "text-opacity": [{
1491
- "text-opacity": [b]
1491
+ "text-opacity": [x]
1492
1492
  }],
1493
1493
  /**
1494
1494
  * Text Decoration
@@ -1603,7 +1603,7 @@ const de = (e) => {
1603
1603
  * @see https://tailwindcss.com/docs/background-opacity
1604
1604
  */
1605
1605
  "bg-opacity": [{
1606
- "bg-opacity": [b]
1606
+ "bg-opacity": [x]
1607
1607
  }],
1608
1608
  /**
1609
1609
  * Background Origin
@@ -1656,21 +1656,21 @@ const de = (e) => {
1656
1656
  * @see https://tailwindcss.com/docs/gradient-color-stops
1657
1657
  */
1658
1658
  "gradient-from-pos": [{
1659
- from: [w]
1659
+ from: [v]
1660
1660
  }],
1661
1661
  /**
1662
1662
  * Gradient Color Stops Via Position
1663
1663
  * @see https://tailwindcss.com/docs/gradient-color-stops
1664
1664
  */
1665
1665
  "gradient-via-pos": [{
1666
- via: [w]
1666
+ via: [v]
1667
1667
  }],
1668
1668
  /**
1669
1669
  * Gradient Color Stops To Position
1670
1670
  * @see https://tailwindcss.com/docs/gradient-color-stops
1671
1671
  */
1672
1672
  "gradient-to-pos": [{
1673
- to: [w]
1673
+ to: [v]
1674
1674
  }],
1675
1675
  /**
1676
1676
  * Gradient Color Stops From
@@ -1867,7 +1867,7 @@ const de = (e) => {
1867
1867
  * @see https://tailwindcss.com/docs/border-opacity
1868
1868
  */
1869
1869
  "border-opacity": [{
1870
- "border-opacity": [b]
1870
+ "border-opacity": [x]
1871
1871
  }],
1872
1872
  /**
1873
1873
  * Border Style
@@ -1905,7 +1905,7 @@ const de = (e) => {
1905
1905
  * @see https://tailwindcss.com/docs/divide-opacity
1906
1906
  */
1907
1907
  "divide-opacity": [{
1908
- "divide-opacity": [b]
1908
+ "divide-opacity": [x]
1909
1909
  }],
1910
1910
  /**
1911
1911
  * Divide Style
@@ -2036,7 +2036,7 @@ const de = (e) => {
2036
2036
  * @see https://tailwindcss.com/docs/ring-opacity
2037
2037
  */
2038
2038
  "ring-opacity": [{
2039
- "ring-opacity": [b]
2039
+ "ring-opacity": [x]
2040
2040
  }],
2041
2041
  /**
2042
2042
  * Ring Offset Width
@@ -2072,7 +2072,7 @@ const de = (e) => {
2072
2072
  * @see https://tailwindcss.com/docs/opacity
2073
2073
  */
2074
2074
  opacity: [{
2075
- opacity: [b]
2075
+ opacity: [x]
2076
2076
  }],
2077
2077
  /**
2078
2078
  * Mix Blend Mode
@@ -2215,7 +2215,7 @@ const de = (e) => {
2215
2215
  * @see https://tailwindcss.com/docs/backdrop-opacity
2216
2216
  */
2217
2217
  "backdrop-opacity": [{
2218
- "backdrop-opacity": [b]
2218
+ "backdrop-opacity": [x]
2219
2219
  }],
2220
2220
  /**
2221
2221
  * Backdrop Saturate
@@ -3946,30 +3946,30 @@ function Ym(e) {
3946
3946
  }
3947
3947
  const Hm = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Gm = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Um = /^'([^]*?)'?$/, Km = /''/g, qm = /[a-zA-Z]/;
3948
3948
  function Mr(e, t, n) {
3949
- var f, p, g, m, w, h, v, b;
3950
- const r = nr(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? wo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((p = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((h = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((b = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : b.weekStartsOn) ?? 0, i = Me(e, n == null ? void 0 : n.in);
3949
+ var f, p, g, m, v, h, w, x;
3950
+ const r = nr(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? wo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((p = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((h = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((x = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : x.weekStartsOn) ?? 0, i = Me(e, n == null ? void 0 : n.in);
3951
3951
  if (!Ym(i))
3952
3952
  throw new RangeError("Invalid time value");
3953
- let u = t.match(Gm).map((x) => {
3954
- const C = x[0];
3953
+ let u = t.match(Gm).map((b) => {
3954
+ const C = b[0];
3955
3955
  if (C === "p" || C === "P") {
3956
3956
  const N = jm[C];
3957
- return N(x, o.formatLong);
3957
+ return N(b, o.formatLong);
3958
3958
  }
3959
- return x;
3960
- }).join("").match(Hm).map((x) => {
3961
- if (x === "''")
3959
+ return b;
3960
+ }).join("").match(Hm).map((b) => {
3961
+ if (b === "''")
3962
3962
  return { isToken: !1, value: "'" };
3963
- const C = x[0];
3963
+ const C = b[0];
3964
3964
  if (C === "'")
3965
- return { isToken: !1, value: Xm(x) };
3965
+ return { isToken: !1, value: Xm(b) };
3966
3966
  if (Ia[C])
3967
- return { isToken: !0, value: x };
3967
+ return { isToken: !0, value: b };
3968
3968
  if (C.match(qm))
3969
3969
  throw new RangeError(
3970
3970
  "Format string contains an unescaped latin alphabet character `" + C + "`"
3971
3971
  );
3972
- return { isToken: !1, value: x };
3972
+ return { isToken: !1, value: b };
3973
3973
  });
3974
3974
  o.localize.preprocessor && (u = o.localize.preprocessor(i, u));
3975
3975
  const d = {
@@ -3977,9 +3977,9 @@ function Mr(e, t, n) {
3977
3977
  weekStartsOn: s,
3978
3978
  locale: o
3979
3979
  };
3980
- return u.map((x) => {
3981
- if (!x.isToken) return x.value;
3982
- const C = x.value;
3980
+ return u.map((b) => {
3981
+ if (!b.isToken) return b.value;
3982
+ const C = b.value;
3983
3983
  (!(n != null && n.useAdditionalWeekYearTokens) && Wm(C) || !(n != null && n.useAdditionalDayOfYearTokens) && Fm(C)) && Bm(C, t, String(e));
3984
3984
  const N = Ia[C[0]];
3985
3985
  return N(i, C, o.localize, d);
@@ -4390,15 +4390,15 @@ const iC = (e, t = "pt-BR", n = "BRL") => new Intl.NumberFormat(t, {
4390
4390
  return g === void 0 || (d[p] = g), d;
4391
4391
  }, {}), u = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, f) => {
4392
4392
  let { class: p, className: g, ...m } = f;
4393
- return Object.entries(m).every((w) => {
4394
- let [h, v] = w;
4395
- return Array.isArray(v) ? v.includes({
4393
+ return Object.entries(m).every((v) => {
4394
+ let [h, w] = v;
4395
+ return Array.isArray(w) ? w.includes({
4396
4396
  ...a,
4397
4397
  ...i
4398
4398
  }[h]) : {
4399
4399
  ...a,
4400
4400
  ...i
4401
- }[h] === v;
4401
+ }[h] === w;
4402
4402
  }) ? [
4403
4403
  ...d,
4404
4404
  p,
@@ -4486,15 +4486,15 @@ function we(e, t = []) {
4486
4486
  const i = c.createContext(s), u = n.length;
4487
4487
  n = [...n, s];
4488
4488
  const d = (p) => {
4489
- var b;
4490
- const { scope: g, children: m, ...w } = p, h = ((b = g == null ? void 0 : g[e]) == null ? void 0 : b[u]) || i, v = c.useMemo(() => w, Object.values(w));
4491
- return /* @__PURE__ */ l.jsx(h.Provider, { value: v, children: m });
4489
+ var x;
4490
+ const { scope: g, children: m, ...v } = p, h = ((x = g == null ? void 0 : g[e]) == null ? void 0 : x[u]) || i, w = c.useMemo(() => v, Object.values(v));
4491
+ return /* @__PURE__ */ l.jsx(h.Provider, { value: w, children: m });
4492
4492
  };
4493
4493
  d.displayName = a + "Provider";
4494
4494
  function f(p, g) {
4495
4495
  var h;
4496
- const m = ((h = g == null ? void 0 : g[e]) == null ? void 0 : h[u]) || i, w = c.useContext(m);
4497
- if (w) return w;
4496
+ const m = ((h = g == null ? void 0 : g[e]) == null ? void 0 : h[u]) || i, v = c.useContext(m);
4497
+ if (v) return v;
4498
4498
  if (s !== void 0) return s;
4499
4499
  throw new Error(`\`${p}\` must be used within \`${a}\``);
4500
4500
  }
@@ -4696,7 +4696,7 @@ var Ip = "DismissableLayer", qr = "dismissableLayer.update", _p = "dismissableLa
4696
4696
  onInteractOutside: s,
4697
4697
  onDismiss: i,
4698
4698
  ...u
4699
- } = e, d = c.useContext(Ys), [f, p] = c.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), w = Q(t, (P) => p(P)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = h.indexOf(v), x = f ? h.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, N = x >= b, E = Lp((P) => {
4699
+ } = e, d = c.useContext(Ys), [f, p] = c.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), v = Q(t, (P) => p(P)), h = Array.from(d.layers), [w] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(w), b = f ? h.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, N = b >= x, E = Lp((P) => {
4700
4700
  const D = P.target, I = [...d.branches].some((W) => W.contains(D));
4701
4701
  !N || I || (o == null || o(P), s == null || s(P), P.defaultPrevented || i == null || i());
4702
4702
  }, g), R = Fp((P) => {
@@ -4704,7 +4704,7 @@ var Ip = "DismissableLayer", qr = "dismissableLayer.update", _p = "dismissableLa
4704
4704
  [...d.branches].some((W) => W.contains(D)) || (a == null || a(P), s == null || s(P), P.defaultPrevented || i == null || i());
4705
4705
  }, g);
4706
4706
  return kp((P) => {
4707
- x === d.layers.size - 1 && (r == null || r(P), !P.defaultPrevented && i && (P.preventDefault(), i()));
4707
+ b === d.layers.size - 1 && (r == null || r(P), !P.defaultPrevented && i && (P.preventDefault(), i()));
4708
4708
  }, g), c.useEffect(() => {
4709
4709
  if (f)
4710
4710
  return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Xa = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), Za(), () => {
@@ -4719,7 +4719,7 @@ var Ip = "DismissableLayer", qr = "dismissableLayer.update", _p = "dismissableLa
4719
4719
  O.div,
4720
4720
  {
4721
4721
  ...u,
4722
- ref: w,
4722
+ ref: v,
4723
4723
  style: {
4724
4724
  pointerEvents: C ? N ? "auto" : "none" : void 0,
4725
4725
  ...e.style
@@ -4820,19 +4820,19 @@ var Ir = "focusScope.autoFocusOnMount", _r = "focusScope.autoFocusOnUnmount", Qa
4820
4820
  if (m.paused || !i) return;
4821
4821
  const N = C.target;
4822
4822
  i.contains(N) ? p.current = N : ht(p.current, { select: !0 });
4823
- }, v = function(C) {
4823
+ }, w = function(C) {
4824
4824
  if (m.paused || !i) return;
4825
4825
  const N = C.relatedTarget;
4826
4826
  N !== null && (i.contains(N) || ht(p.current, { select: !0 }));
4827
- }, b = function(C) {
4827
+ }, x = function(C) {
4828
4828
  if (document.activeElement === document.body)
4829
4829
  for (const E of C)
4830
4830
  E.removedNodes.length > 0 && ht(i);
4831
4831
  };
4832
- document.addEventListener("focusin", h), document.addEventListener("focusout", v);
4833
- const x = new MutationObserver(b);
4834
- return i && x.observe(i, { childList: !0, subtree: !0 }), () => {
4835
- document.removeEventListener("focusin", h), document.removeEventListener("focusout", v), x.disconnect();
4832
+ document.addEventListener("focusin", h), document.addEventListener("focusout", w);
4833
+ const b = new MutationObserver(x);
4834
+ return i && b.observe(i, { childList: !0, subtree: !0 }), () => {
4835
+ document.removeEventListener("focusin", h), document.removeEventListener("focusout", w), b.disconnect();
4836
4836
  };
4837
4837
  }
4838
4838
  }, [r, i, m.paused]), c.useEffect(() => {
@@ -4840,29 +4840,29 @@ var Ir = "focusScope.autoFocusOnMount", _r = "focusScope.autoFocusOnUnmount", Qa
4840
4840
  es.add(m);
4841
4841
  const h = document.activeElement;
4842
4842
  if (!i.contains(h)) {
4843
- const b = new CustomEvent(Ir, Qa);
4844
- i.addEventListener(Ir, d), i.dispatchEvent(b), b.defaultPrevented || (Bp(Gp(Gs(i)), { select: !0 }), document.activeElement === h && ht(i));
4843
+ const x = new CustomEvent(Ir, Qa);
4844
+ i.addEventListener(Ir, d), i.dispatchEvent(x), x.defaultPrevented || (Bp(Gp(Gs(i)), { select: !0 }), document.activeElement === h && ht(i));
4845
4845
  }
4846
4846
  return () => {
4847
4847
  i.removeEventListener(Ir, d), setTimeout(() => {
4848
- const b = new CustomEvent(_r, Qa);
4849
- i.addEventListener(_r, f), i.dispatchEvent(b), b.defaultPrevented || ht(h ?? document.body, { select: !0 }), i.removeEventListener(_r, f), es.remove(m);
4848
+ const x = new CustomEvent(_r, Qa);
4849
+ i.addEventListener(_r, f), i.dispatchEvent(x), x.defaultPrevented || ht(h ?? document.body, { select: !0 }), i.removeEventListener(_r, f), es.remove(m);
4850
4850
  }, 0);
4851
4851
  };
4852
4852
  }
4853
4853
  }, [i, d, f, m]);
4854
- const w = c.useCallback(
4854
+ const v = c.useCallback(
4855
4855
  (h) => {
4856
4856
  if (!n && !r || m.paused) return;
4857
- const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, b = document.activeElement;
4858
- if (v && b) {
4859
- const x = h.currentTarget, [C, N] = zp(x);
4860
- C && N ? !h.shiftKey && b === N ? (h.preventDefault(), n && ht(C, { select: !0 })) : h.shiftKey && b === C && (h.preventDefault(), n && ht(N, { select: !0 })) : b === x && h.preventDefault();
4857
+ const w = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, x = document.activeElement;
4858
+ if (w && x) {
4859
+ const b = h.currentTarget, [C, N] = zp(b);
4860
+ C && N ? !h.shiftKey && x === N ? (h.preventDefault(), n && ht(C, { select: !0 })) : h.shiftKey && x === C && (h.preventDefault(), n && ht(N, { select: !0 })) : x === b && h.preventDefault();
4861
4861
  }
4862
4862
  },
4863
4863
  [n, r, m.paused]
4864
4864
  );
4865
- return /* @__PURE__ */ l.jsx(O.div, { tabIndex: -1, ...s, ref: g, onKeyDown: w });
4865
+ return /* @__PURE__ */ l.jsx(O.div, { tabIndex: -1, ...s, ref: g, onKeyDown: v });
4866
4866
  });
4867
4867
  pn.displayName = Wp;
4868
4868
  function Bp(e, { select: t = !1 } = {}) {
@@ -4972,9 +4972,9 @@ function qp(e) {
4972
4972
  const f = t.ownerDocument.defaultView ?? window, p = (m) => {
4973
4973
  const h = An(r.current).includes(m.animationName);
4974
4974
  if (m.target === t && h && (u("ANIMATION_END"), !o.current)) {
4975
- const v = t.style.animationFillMode;
4975
+ const w = t.style.animationFillMode;
4976
4976
  t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
4977
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
4977
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w);
4978
4978
  });
4979
4979
  }
4980
4980
  }, g = (m) => {
@@ -5162,12 +5162,12 @@ var qs = ah(), $r = function() {
5162
5162
  onScrollCapture: $r,
5163
5163
  onWheelCapture: $r,
5164
5164
  onTouchMoveCapture: $r
5165
- }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noIsolation, w = e.inert, h = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, x = e.gapMode, C = Us(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = g, E = nh([n, t]), R = Qe(Qe({}, C), o);
5165
+ }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noIsolation, v = e.inert, h = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, b = e.gapMode, C = Us(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = g, E = nh([n, t]), R = Qe(Qe({}, C), o);
5166
5166
  return c.createElement(
5167
5167
  c.Fragment,
5168
5168
  null,
5169
- f && c.createElement(N, { sideCar: qs, removeScrollBar: d, shards: p, noIsolation: m, inert: w, setCallbacks: a, allowPinchZoom: !!h, lockRef: n, gapMode: x }),
5170
- s ? c.cloneElement(c.Children.only(i), Qe(Qe({}, R), { ref: E })) : c.createElement(b, Qe({}, R, { className: u, ref: E }), i)
5169
+ f && c.createElement(N, { sideCar: qs, removeScrollBar: d, shards: p, noIsolation: m, inert: v, setCallbacks: a, allowPinchZoom: !!h, lockRef: n, gapMode: b }),
5170
+ s ? c.cloneElement(c.Children.only(i), Qe(Qe({}, R), { ref: E })) : c.createElement(x, Qe({}, R, { className: u, ref: E }), i)
5171
5171
  );
5172
5172
  });
5173
5173
  or.defaultProps = {
@@ -5367,8 +5367,8 @@ var jt = Xr ? { passive: !1 } : !1, xh = function(e) {
5367
5367
  }, Rh = function(e, t, n, r, o) {
5368
5368
  var a = Sh(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, u = t.contains(i), d = !1, f = s > 0, p = 0, g = 0;
5369
5369
  do {
5370
- var m = Js(e, i), w = m[0], h = m[1], v = m[2], b = h - v - a * w;
5371
- (w || b) && Qs(e, i) && (p += b, g += w), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
5370
+ var m = Js(e, i), v = m[0], h = m[1], w = m[2], x = h - w - a * v;
5371
+ (v || x) && Qs(e, i) && (p += x, g += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
5372
5372
  } while (
5373
5373
  // portaled content
5374
5374
  !u && i !== document.body || // self content
@@ -5397,19 +5397,19 @@ function Ah(e) {
5397
5397
  if (e.inert) {
5398
5398
  document.body.classList.add("block-interactivity-".concat(o));
5399
5399
  var h = Zp([e.lockRef.current], (e.shards || []).map(is), !0).filter(Boolean);
5400
- return h.forEach(function(v) {
5401
- return v.classList.add("allow-interactivity-".concat(o));
5400
+ return h.forEach(function(w) {
5401
+ return w.classList.add("allow-interactivity-".concat(o));
5402
5402
  }), function() {
5403
- document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(v) {
5404
- return v.classList.remove("allow-interactivity-".concat(o));
5403
+ document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(w) {
5404
+ return w.classList.remove("allow-interactivity-".concat(o));
5405
5405
  });
5406
5406
  };
5407
5407
  }
5408
5408
  }, [e.inert, e.lockRef.current, e.shards]);
5409
- var i = c.useCallback(function(h, v) {
5409
+ var i = c.useCallback(function(h, w) {
5410
5410
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
5411
5411
  return !s.current.allowPinchZoom;
5412
- var b = kn(h), x = n.current, C = "deltaX" in h ? h.deltaX : x[0] - b[0], N = "deltaY" in h ? h.deltaY : x[1] - b[1], E, R = h.target, P = Math.abs(C) > Math.abs(N) ? "h" : "v";
5412
+ var x = kn(h), b = n.current, C = "deltaX" in h ? h.deltaX : b[0] - x[0], N = "deltaY" in h ? h.deltaY : b[1] - x[1], E, R = h.target, P = Math.abs(C) > Math.abs(N) ? "h" : "v";
5413
5413
  if ("touches" in h && P === "h" && R.type === "range")
5414
5414
  return !1;
5415
5415
  var D = as(P, R);
@@ -5420,26 +5420,26 @@ function Ah(e) {
5420
5420
  if (!r.current && "changedTouches" in h && (C || N) && (r.current = E), !E)
5421
5421
  return !0;
5422
5422
  var I = r.current || E;
5423
- return Rh(I, v, h, I === "h" ? C : N, !0);
5423
+ return Rh(I, w, h, I === "h" ? C : N, !0);
5424
5424
  }, []), u = c.useCallback(function(h) {
5425
- var v = h;
5425
+ var w = h;
5426
5426
  if (!(!Ot.length || Ot[Ot.length - 1] !== a)) {
5427
- var b = "deltaY" in v ? ss(v) : kn(v), x = t.current.filter(function(E) {
5428
- return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Ph(E.delta, b);
5427
+ var x = "deltaY" in w ? ss(w) : kn(w), b = t.current.filter(function(E) {
5428
+ return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) && Ph(E.delta, x);
5429
5429
  })[0];
5430
- if (x && x.should) {
5431
- v.cancelable && v.preventDefault();
5430
+ if (b && b.should) {
5431
+ w.cancelable && w.preventDefault();
5432
5432
  return;
5433
5433
  }
5434
- if (!x) {
5434
+ if (!b) {
5435
5435
  var C = (s.current.shards || []).map(is).filter(Boolean).filter(function(E) {
5436
- return E.contains(v.target);
5437
- }), N = C.length > 0 ? i(v, C[0]) : !s.current.noIsolation;
5438
- N && v.cancelable && v.preventDefault();
5436
+ return E.contains(w.target);
5437
+ }), N = C.length > 0 ? i(w, C[0]) : !s.current.noIsolation;
5438
+ N && w.cancelable && w.preventDefault();
5439
5439
  }
5440
5440
  }
5441
- }, []), d = c.useCallback(function(h, v, b, x) {
5442
- var C = { name: h, delta: v, target: b, should: x, shadowParent: Dh(b) };
5441
+ }, []), d = c.useCallback(function(h, w, x, b) {
5442
+ var C = { name: h, delta: w, target: x, should: b, shadowParent: Dh(x) };
5443
5443
  t.current.push(C), setTimeout(function() {
5444
5444
  t.current = t.current.filter(function(N) {
5445
5445
  return N !== C;
@@ -5463,11 +5463,11 @@ function Ah(e) {
5463
5463
  }), document.removeEventListener("wheel", u, jt), document.removeEventListener("touchmove", u, jt), document.removeEventListener("touchstart", f, jt);
5464
5464
  };
5465
5465
  }, []);
5466
- var m = e.removeScrollBar, w = e.inert;
5466
+ var m = e.removeScrollBar, v = e.inert;
5467
5467
  return c.createElement(
5468
5468
  c.Fragment,
5469
5469
  null,
5470
- w ? c.createElement(a, { styles: Mh(o) }) : null,
5470
+ v ? c.createElement(a, { styles: Mh(o) }) : null,
5471
5471
  m ? c.createElement(bh, { gapMode: e.gapMode }) : null
5472
5472
  );
5473
5473
  }
@@ -5510,10 +5510,10 @@ var Ih = function(e) {
5510
5510
  f(g);
5511
5511
  else
5512
5512
  try {
5513
- var m = g.getAttribute(r), w = m !== null && m !== "false", h = ($t.get(g) || 0) + 1, v = (a.get(g) || 0) + 1;
5514
- $t.set(g, h), a.set(g, v), s.push(g), h === 1 && w && In.set(g, !0), v === 1 && g.setAttribute(n, "true"), w || g.setAttribute(r, "true");
5515
- } catch (b) {
5516
- console.error("aria-hidden: cannot operate on ", g, b);
5513
+ var m = g.getAttribute(r), v = m !== null && m !== "false", h = ($t.get(g) || 0) + 1, w = (a.get(g) || 0) + 1;
5514
+ $t.set(g, h), a.set(g, w), s.push(g), h === 1 && v && In.set(g, !0), w === 1 && g.setAttribute(n, "true"), v || g.setAttribute(r, "true");
5515
+ } catch (x) {
5516
+ console.error("aria-hidden: cannot operate on ", g, x);
5517
5517
  }
5518
5518
  });
5519
5519
  };
@@ -5896,6 +5896,7 @@ const ir = qt(
5896
5896
  xmlns: "http://www.w3.org/2000/svg",
5897
5897
  fill: "none",
5898
5898
  viewBox: "0 0 24 24",
5899
+ "data-testid": "loader-svg",
5899
5900
  children: [
5900
5901
  /* @__PURE__ */ l.jsx(
5901
5902
  "circle",
@@ -6450,17 +6451,17 @@ const Ig = async (e, t, n) => {
6450
6451
  }), {
6451
6452
  x: f,
6452
6453
  y: p
6453
- } = ls(d, r, u), g = r, m = {}, w = 0;
6454
+ } = ls(d, r, u), g = r, m = {}, v = 0;
6454
6455
  for (let h = 0; h < i.length; h++) {
6455
6456
  const {
6456
- name: v,
6457
- fn: b
6457
+ name: w,
6458
+ fn: x
6458
6459
  } = i[h], {
6459
- x,
6460
+ x: b,
6460
6461
  y: C,
6461
6462
  data: N,
6462
6463
  reset: E
6463
- } = await b({
6464
+ } = await x({
6464
6465
  x: f,
6465
6466
  y: p,
6466
6467
  initialPlacement: r,
@@ -6474,13 +6475,13 @@ const Ig = async (e, t, n) => {
6474
6475
  floating: t
6475
6476
  }
6476
6477
  });
6477
- f = x ?? f, p = C ?? p, m = {
6478
+ f = b ?? f, p = C ?? p, m = {
6478
6479
  ...m,
6479
- [v]: {
6480
- ...m[v],
6480
+ [w]: {
6481
+ ...m[w],
6481
6482
  ...N
6482
6483
  }
6483
- }, E && w <= 50 && (w++, typeof E == "object" && (E.placement && (g = E.placement), E.rects && (d = E.rects === !0 ? await s.getElementRects({
6484
+ }, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (g = E.placement), E.rects && (d = E.rects === !0 ? await s.getElementRects({
6484
6485
  reference: e,
6485
6486
  floating: t,
6486
6487
  strategy: o
@@ -6513,12 +6514,12 @@ async function ln(e, t) {
6513
6514
  elementContext: p = "floating",
6514
6515
  altBoundary: g = !1,
6515
6516
  padding: m = 0
6516
- } = ct(t, e), w = Vi(m), v = i[g ? p === "floating" ? "reference" : "floating" : p], b = Un(await a.getClippingRect({
6517
- element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
6517
+ } = ct(t, e), v = Vi(m), w = i[g ? p === "floating" ? "reference" : "floating" : p], x = Un(await a.getClippingRect({
6518
+ element: (n = await (a.isElement == null ? void 0 : a.isElement(w))) == null || n ? w : w.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
6518
6519
  boundary: d,
6519
6520
  rootBoundary: f,
6520
6521
  strategy: u
6521
- })), x = p === "floating" ? {
6522
+ })), b = p === "floating" ? {
6522
6523
  x: r,
6523
6524
  y: o,
6524
6525
  width: s.floating.width,
@@ -6531,15 +6532,15 @@ async function ln(e, t) {
6531
6532
  y: 1
6532
6533
  }, E = Un(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
6533
6534
  elements: i,
6534
- rect: x,
6535
+ rect: b,
6535
6536
  offsetParent: C,
6536
6537
  strategy: u
6537
- }) : x);
6538
+ }) : b);
6538
6539
  return {
6539
- top: (b.top - E.top + w.top) / N.y,
6540
- bottom: (E.bottom - b.bottom + w.bottom) / N.y,
6541
- left: (b.left - E.left + w.left) / N.x,
6542
- right: (E.right - b.right + w.right) / N.x
6540
+ top: (x.top - E.top + v.top) / N.y,
6541
+ bottom: (E.bottom - x.bottom + v.bottom) / N.y,
6542
+ left: (x.left - E.left + v.left) / N.x,
6543
+ right: (E.right - x.right + v.right) / N.x
6543
6544
  };
6544
6545
  }
6545
6546
  const _g = (e) => ({
@@ -6563,10 +6564,10 @@ const _g = (e) => ({
6563
6564
  const p = Vi(f), g = {
6564
6565
  x: n,
6565
6566
  y: r
6566
- }, m = jo(o), w = _o(m), h = await s.getDimensions(d), v = m === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", N = a.reference[w] + a.reference[m] - g[m] - a.floating[w], E = g[m] - a.reference[m], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
6567
+ }, m = jo(o), v = _o(m), h = await s.getDimensions(d), w = m === "y", x = w ? "top" : "left", b = w ? "bottom" : "right", C = w ? "clientHeight" : "clientWidth", N = a.reference[v] + a.reference[m] - g[m] - a.floating[v], E = g[m] - a.reference[m], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
6567
6568
  let P = R ? R[C] : 0;
6568
- (!P || !await (s.isElement == null ? void 0 : s.isElement(R))) && (P = i.floating[C] || a.floating[w]);
6569
- const D = N / 2 - E / 2, I = P / 2 - h[w] / 2 - 1, W = vt(p[b], I), z = vt(p[x], I), j = W, H = P - h[w] - z, B = P / 2 - h[w] / 2 + D, ne = Zr(j, B, H), L = !u.arrow && Xt(o) != null && B !== ne && a.reference[w] / 2 - (B < j ? W : z) - h[w] / 2 < 0, V = L ? B < j ? B - j : B - H : 0;
6569
+ (!P || !await (s.isElement == null ? void 0 : s.isElement(R))) && (P = i.floating[C] || a.floating[v]);
6570
+ const D = N / 2 - E / 2, I = P / 2 - h[v] / 2 - 1, W = vt(p[x], I), z = vt(p[b], I), j = W, H = P - h[v] - z, B = P / 2 - h[v] / 2 + D, ne = Zr(j, B, H), L = !u.arrow && Xt(o) != null && B !== ne && a.reference[v] / 2 - (B < j ? W : z) - h[v] / 2 < 0, V = L ? B < j ? B - j : B - H : 0;
6570
6571
  return {
6571
6572
  [m]: g[m] + V,
6572
6573
  data: {
@@ -6597,17 +6598,17 @@ const _g = (e) => ({
6597
6598
  crossAxis: p = !0,
6598
6599
  fallbackPlacements: g,
6599
6600
  fallbackStrategy: m = "bestFit",
6600
- fallbackAxisSideDirection: w = "none",
6601
+ fallbackAxisSideDirection: v = "none",
6601
6602
  flipAlignment: h = !0,
6602
- ...v
6603
+ ...w
6603
6604
  } = ct(e, t);
6604
6605
  if ((n = a.arrow) != null && n.alignmentOffset)
6605
6606
  return {};
6606
- const b = lt(o), x = wt(i), C = lt(i) === i, N = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), E = g || (C || !h ? [Gn(i)] : Tg(i)), R = w !== "none";
6607
- !g && R && E.push(...Dg(i, h, w, N));
6608
- const P = [i, ...E], D = await ln(t, v), I = [];
6607
+ const x = lt(o), b = wt(i), C = lt(i) === i, N = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), E = g || (C || !h ? [Gn(i)] : Tg(i)), R = v !== "none";
6608
+ !g && R && E.push(...Dg(i, h, v, N));
6609
+ const P = [i, ...E], D = await ln(t, w), I = [];
6609
6610
  let W = ((r = a.flip) == null ? void 0 : r.overflows) || [];
6610
- if (f && I.push(D[b]), p) {
6611
+ if (f && I.push(D[x]), p) {
6611
6612
  const B = Mg(o, s, N);
6612
6613
  I.push(D[B[0]], D[B[1]]);
6613
6614
  }
@@ -6635,7 +6636,7 @@ const _g = (e) => ({
6635
6636
  const V = (H = W.filter((F) => {
6636
6637
  if (R) {
6637
6638
  const S = wt(F.placement);
6638
- return S === x || // Create a bias to the `y` side axis due to horizontal
6639
+ return S === b || // Create a bias to the `y` side axis due to horizontal
6639
6640
  // reading directions favoring greater width.
6640
6641
  S === "y";
6641
6642
  }
@@ -6721,7 +6722,7 @@ async function $g(e, t) {
6721
6722
  let {
6722
6723
  mainAxis: g,
6723
6724
  crossAxis: m,
6724
- alignmentAxis: w
6725
+ alignmentAxis: v
6725
6726
  } = typeof p == "number" ? {
6726
6727
  mainAxis: p,
6727
6728
  crossAxis: 0,
@@ -6731,7 +6732,7 @@ async function $g(e, t) {
6731
6732
  crossAxis: p.crossAxis || 0,
6732
6733
  alignmentAxis: p.alignmentAxis
6733
6734
  };
6734
- return i && typeof w == "number" && (m = i === "end" ? w * -1 : w), u ? {
6735
+ return i && typeof v == "number" && (m = i === "end" ? v * -1 : v), u ? {
6735
6736
  x: m * f,
6736
6737
  y: g * d
6737
6738
  } : {
@@ -6774,14 +6775,14 @@ const Lg = function(e) {
6774
6775
  mainAxis: a = !0,
6775
6776
  crossAxis: s = !1,
6776
6777
  limiter: i = {
6777
- fn: (v) => {
6778
+ fn: (w) => {
6778
6779
  let {
6779
- x: b,
6780
- y: x
6781
- } = v;
6780
+ x,
6781
+ y: b
6782
+ } = w;
6782
6783
  return {
6783
- x: b,
6784
- y: x
6784
+ x,
6785
+ y: b
6785
6786
  };
6786
6787
  }
6787
6788
  },
@@ -6790,19 +6791,19 @@ const Lg = function(e) {
6790
6791
  x: n,
6791
6792
  y: r
6792
6793
  }, f = await ln(t, u), p = wt(lt(o)), g = Io(p);
6793
- let m = d[g], w = d[p];
6794
+ let m = d[g], v = d[p];
6794
6795
  if (a) {
6795
- const v = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", x = m + f[v], C = m - f[b];
6796
- m = Zr(x, m, C);
6796
+ const w = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", b = m + f[w], C = m - f[x];
6797
+ m = Zr(b, m, C);
6797
6798
  }
6798
6799
  if (s) {
6799
- const v = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", x = w + f[v], C = w - f[b];
6800
- w = Zr(x, w, C);
6800
+ const w = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", b = v + f[w], C = v - f[x];
6801
+ v = Zr(b, v, C);
6801
6802
  }
6802
6803
  const h = i.fn({
6803
6804
  ...t,
6804
6805
  [g]: m,
6805
- [p]: w
6806
+ [p]: v
6806
6807
  });
6807
6808
  return {
6808
6809
  ...h,
@@ -6835,8 +6836,8 @@ const Lg = function(e) {
6835
6836
  x: n,
6836
6837
  y: r
6837
6838
  }, p = wt(o), g = Io(p);
6838
- let m = f[g], w = f[p];
6839
- const h = ct(i, t), v = typeof h == "number" ? {
6839
+ let m = f[g], v = f[p];
6840
+ const h = ct(i, t), w = typeof h == "number" ? {
6840
6841
  mainAxis: h,
6841
6842
  crossAxis: 0
6842
6843
  } : {
@@ -6845,17 +6846,17 @@ const Lg = function(e) {
6845
6846
  ...h
6846
6847
  };
6847
6848
  if (u) {
6848
- const C = g === "y" ? "height" : "width", N = a.reference[g] - a.floating[C] + v.mainAxis, E = a.reference[g] + a.reference[C] - v.mainAxis;
6849
+ const C = g === "y" ? "height" : "width", N = a.reference[g] - a.floating[C] + w.mainAxis, E = a.reference[g] + a.reference[C] - w.mainAxis;
6849
6850
  m < N ? m = N : m > E && (m = E);
6850
6851
  }
6851
6852
  if (d) {
6852
- var b, x;
6853
- const C = g === "y" ? "width" : "height", N = ["top", "left"].includes(lt(o)), E = a.reference[p] - a.floating[C] + (N && ((b = s.offset) == null ? void 0 : b[p]) || 0) + (N ? 0 : v.crossAxis), R = a.reference[p] + a.reference[C] + (N ? 0 : ((x = s.offset) == null ? void 0 : x[p]) || 0) - (N ? v.crossAxis : 0);
6854
- w < E ? w = E : w > R && (w = R);
6853
+ var x, b;
6854
+ const C = g === "y" ? "width" : "height", N = ["top", "left"].includes(lt(o)), E = a.reference[p] - a.floating[C] + (N && ((x = s.offset) == null ? void 0 : x[p]) || 0) + (N ? 0 : w.crossAxis), R = a.reference[p] + a.reference[C] + (N ? 0 : ((b = s.offset) == null ? void 0 : b[p]) || 0) - (N ? w.crossAxis : 0);
6855
+ v < E ? v = E : v > R && (v = R);
6855
6856
  }
6856
6857
  return {
6857
6858
  [g]: m,
6858
- [p]: w
6859
+ [p]: v
6859
6860
  };
6860
6861
  }
6861
6862
  };
@@ -6875,16 +6876,16 @@ const Lg = function(e) {
6875
6876
  },
6876
6877
  ...d
6877
6878
  } = ct(e, t), f = await ln(t, d), p = lt(o), g = Xt(o), m = wt(o) === "y", {
6878
- width: w,
6879
+ width: v,
6879
6880
  height: h
6880
6881
  } = a.floating;
6881
- let v, b;
6882
- p === "top" || p === "bottom" ? (v = p, b = g === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (b = p, v = g === "end" ? "top" : "bottom");
6883
- const x = h - f.top - f.bottom, C = w - f.left - f.right, N = vt(h - f[v], x), E = vt(w - f[b], C), R = !t.middlewareData.shift;
6882
+ let w, x;
6883
+ p === "top" || p === "bottom" ? (w = p, x = g === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = p, w = g === "end" ? "top" : "bottom");
6884
+ const b = h - f.top - f.bottom, C = v - f.left - f.right, N = vt(h - f[w], b), E = vt(v - f[x], C), R = !t.middlewareData.shift;
6884
6885
  let P = N, D = E;
6885
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = C), (r = t.middlewareData.shift) != null && r.enabled.y && (P = x), R && !g) {
6886
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = C), (r = t.middlewareData.shift) != null && r.enabled.y && (P = b), R && !g) {
6886
6887
  const W = De(f.left, 0), z = De(f.right, 0), j = De(f.top, 0), H = De(f.bottom, 0);
6887
- m ? D = w - 2 * (W !== 0 || z !== 0 ? W + z : De(f.left, f.right)) : P = h - 2 * (j !== 0 || H !== 0 ? j + H : De(f.top, f.bottom));
6888
+ m ? D = v - 2 * (W !== 0 || z !== 0 ? W + z : De(f.left, f.right)) : P = h - 2 * (j !== 0 || H !== 0 ? j + H : De(f.top, f.bottom));
6888
6889
  }
6889
6890
  await u({
6890
6891
  ...t,
@@ -6892,7 +6893,7 @@ const Lg = function(e) {
6892
6893
  availableHeight: P
6893
6894
  });
6894
6895
  const I = await s.getDimensions(i.floating);
6895
- return w !== I.width || h !== I.height ? {
6896
+ return v !== I.width || h !== I.height ? {
6896
6897
  reset: {
6897
6898
  rects: !0
6898
6899
  }
@@ -7057,10 +7058,10 @@ function Mt(e, t, n, r) {
7057
7058
  let u = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, f = o.width / s.x, p = o.height / s.y;
7058
7059
  if (a) {
7059
7060
  const g = ke(a), m = r && ze(r) ? ke(r) : r;
7060
- let w = g, h = Jr(w);
7061
- for (; h && r && m !== w; ) {
7062
- const v = zt(h), b = h.getBoundingClientRect(), x = Ve(h), C = b.left + (h.clientLeft + parseFloat(x.paddingLeft)) * v.x, N = b.top + (h.clientTop + parseFloat(x.paddingTop)) * v.y;
7063
- u *= v.x, d *= v.y, f *= v.x, p *= v.y, u += C, d += N, w = ke(h), h = Jr(w);
7061
+ let v = g, h = Jr(v);
7062
+ for (; h && r && m !== v; ) {
7063
+ const w = zt(h), x = h.getBoundingClientRect(), b = Ve(h), C = x.left + (h.clientLeft + parseFloat(b.paddingLeft)) * w.x, N = x.top + (h.clientTop + parseFloat(b.paddingTop)) * w.y;
7064
+ u *= w.x, d *= w.y, f *= w.x, p *= w.y, u += C, d += N, v = ke(h), h = Jr(v);
7064
7065
  }
7065
7066
  }
7066
7067
  return Un({
@@ -7307,8 +7308,8 @@ function ov(e, t) {
7307
7308
  } = e.getBoundingClientRect();
7308
7309
  if (i || t(), !p || !g)
7309
7310
  return;
7310
- const m = jn(f), w = jn(o.clientWidth - (d + p)), h = jn(o.clientHeight - (f + g)), v = jn(d), x = {
7311
- rootMargin: -m + "px " + -w + "px " + -h + "px " + -v + "px",
7311
+ const m = jn(f), v = jn(o.clientWidth - (d + p)), h = jn(o.clientHeight - (f + g)), w = jn(d), b = {
7312
+ rootMargin: -m + "px " + -v + "px " + -h + "px " + -w + "px",
7312
7313
  threshold: De(0, vt(1, u)) || 1
7313
7314
  };
7314
7315
  let C = !0;
@@ -7325,12 +7326,12 @@ function ov(e, t) {
7325
7326
  }
7326
7327
  try {
7327
7328
  n = new IntersectionObserver(N, {
7328
- ...x,
7329
+ ...b,
7329
7330
  // Handle <iframe>s
7330
7331
  root: o.ownerDocument
7331
7332
  });
7332
7333
  } catch {
7333
- n = new IntersectionObserver(N, x);
7334
+ n = new IntersectionObserver(N, b);
7334
7335
  }
7335
7336
  n.observe(e);
7336
7337
  }
@@ -7345,31 +7346,31 @@ function av(e, t, n, r) {
7345
7346
  layoutShift: i = typeof IntersectionObserver == "function",
7346
7347
  animationFrame: u = !1
7347
7348
  } = r, d = Lo(e), f = o || a ? [...d ? un(d) : [], ...un(t)] : [];
7348
- f.forEach((b) => {
7349
- o && b.addEventListener("scroll", n, {
7349
+ f.forEach((x) => {
7350
+ o && x.addEventListener("scroll", n, {
7350
7351
  passive: !0
7351
- }), a && b.addEventListener("resize", n);
7352
+ }), a && x.addEventListener("resize", n);
7352
7353
  });
7353
7354
  const p = d && i ? ov(d, n) : null;
7354
7355
  let g = -1, m = null;
7355
- s && (m = new ResizeObserver((b) => {
7356
- let [x] = b;
7357
- x && x.target === d && m && (m.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
7356
+ s && (m = new ResizeObserver((x) => {
7357
+ let [b] = x;
7358
+ b && b.target === d && m && (m.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
7358
7359
  var C;
7359
7360
  (C = m) == null || C.observe(t);
7360
7361
  })), n();
7361
7362
  }), d && !u && m.observe(d), m.observe(t));
7362
- let w, h = u ? Mt(e) : null;
7363
- u && v();
7364
- function v() {
7365
- const b = Mt(e);
7366
- h && (b.x !== h.x || b.y !== h.y || b.width !== h.width || b.height !== h.height) && n(), h = b, w = requestAnimationFrame(v);
7363
+ let v, h = u ? Mt(e) : null;
7364
+ u && w();
7365
+ function w() {
7366
+ const x = Mt(e);
7367
+ h && (x.x !== h.x || x.y !== h.y || x.width !== h.width || x.height !== h.height) && n(), h = x, v = requestAnimationFrame(w);
7367
7368
  }
7368
7369
  return n(), () => {
7369
- var b;
7370
- f.forEach((x) => {
7371
- o && x.removeEventListener("scroll", n), a && x.removeEventListener("resize", n);
7372
- }), p == null || p(), (b = m) == null || b.disconnect(), m = null, u && cancelAnimationFrame(w);
7370
+ var x;
7371
+ f.forEach((b) => {
7372
+ o && b.removeEventListener("scroll", n), a && b.removeEventListener("resize", n);
7373
+ }), p == null || p(), (x = m) == null || x.disconnect(), m = null, u && cancelAnimationFrame(v);
7373
7374
  };
7374
7375
  }
7375
7376
  const sv = Lg, iv = Fg, cv = jg, lv = Bg, uv = Og, hs = _g, dv = Wg, fv = (e, t, n) => {
@@ -7452,11 +7453,11 @@ function mv(e) {
7452
7453
  isPositioned: !1
7453
7454
  }), [g, m] = c.useState(r);
7454
7455
  Kn(g, r) || m(r);
7455
- const [w, h] = c.useState(null), [v, b] = c.useState(null), x = c.useCallback((F) => {
7456
+ const [v, h] = c.useState(null), [w, x] = c.useState(null), b = c.useCallback((F) => {
7456
7457
  F !== R.current && (R.current = F, h(F));
7457
7458
  }, []), C = c.useCallback((F) => {
7458
- F !== P.current && (P.current = F, b(F));
7459
- }, []), N = a || w, E = s || v, R = c.useRef(null), P = c.useRef(null), D = c.useRef(f), I = u != null, W = Br(u), z = Br(o), j = Br(d), H = c.useCallback(() => {
7459
+ F !== P.current && (P.current = F, x(F));
7460
+ }, []), N = a || v, E = s || w, R = c.useRef(null), P = c.useRef(null), D = c.useRef(f), I = u != null, W = Br(u), z = Br(o), j = Br(d), H = c.useCallback(() => {
7460
7461
  if (!R.current || !P.current)
7461
7462
  return;
7462
7463
  const F = {
@@ -7497,9 +7498,9 @@ function mv(e) {
7497
7498
  const ne = c.useMemo(() => ({
7498
7499
  reference: R,
7499
7500
  floating: P,
7500
- setReference: x,
7501
+ setReference: b,
7501
7502
  setFloating: C
7502
- }), [x, C]), L = c.useMemo(() => ({
7503
+ }), [b, C]), L = c.useMemo(() => ({
7503
7504
  reference: N,
7504
7505
  floating: E
7505
7506
  }), [N, E]), V = c.useMemo(() => {
@@ -7643,9 +7644,9 @@ var Bo = "PopperContent", [Sv, Rv] = Ji(Bo), oc = c.forwardRef(
7643
7644
  sticky: p = "partial",
7644
7645
  hideWhenDetached: g = !1,
7645
7646
  updatePositionStrategy: m = "optimized",
7646
- onPlaced: w,
7647
+ onPlaced: v,
7647
7648
  ...h
7648
- } = e, v = ec(Bo, n), [b, x] = c.useState(null), C = Q(t, (ve) => x(ve)), [N, E] = c.useState(null), R = fr(N), P = (R == null ? void 0 : R.width) ?? 0, D = (R == null ? void 0 : R.height) ?? 0, I = r + (a !== "center" ? "-" + a : ""), W = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, z = Array.isArray(d) ? d : [d], j = z.length > 0, H = {
7649
+ } = e, w = ec(Bo, n), [x, b] = c.useState(null), C = Q(t, (ve) => b(ve)), [N, E] = c.useState(null), R = fr(N), P = (R == null ? void 0 : R.width) ?? 0, D = (R == null ? void 0 : R.height) ?? 0, I = r + (a !== "center" ? "-" + a : ""), W = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, z = Array.isArray(d) ? d : [d], j = z.length > 0, H = {
7649
7650
  padding: W,
7650
7651
  boundary: z.filter(Mv),
7651
7652
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -7658,7 +7659,7 @@ var Bo = "PopperContent", [Sv, Rv] = Ji(Bo), oc = c.forwardRef(
7658
7659
  animationFrame: m === "always"
7659
7660
  }),
7660
7661
  elements: {
7661
- reference: v.anchor
7662
+ reference: w.anchor
7662
7663
  },
7663
7664
  middleware: [
7664
7665
  hv({ mainAxis: o + D, alignmentAxis: s }),
@@ -7680,14 +7681,14 @@ var Bo = "PopperContent", [Sv, Rv] = Ji(Bo), oc = c.forwardRef(
7680
7681
  Tv({ arrowWidth: P, arrowHeight: D }),
7681
7682
  g && xv({ strategy: "referenceHidden", ...H })
7682
7683
  ]
7683
- }), [S, Y] = ic(L), X = he(w);
7684
+ }), [S, Y] = ic(L), X = he(v);
7684
7685
  ge(() => {
7685
7686
  V && (X == null || X());
7686
7687
  }, [V, X]);
7687
7688
  const K = (k = F.arrow) == null ? void 0 : k.x, G = (oe = F.arrow) == null ? void 0 : oe.y, q = ((ae = F.arrow) == null ? void 0 : ae.centerOffset) !== 0, [le, fe] = c.useState();
7688
7689
  return ge(() => {
7689
- b && fe(window.getComputedStyle(b).zIndex);
7690
- }, [b]), /* @__PURE__ */ l.jsx(
7690
+ x && fe(window.getComputedStyle(x).zIndex);
7691
+ }, [x]), /* @__PURE__ */ l.jsx(
7691
7692
  "div",
7692
7693
  {
7693
7694
  ref: B.setFloating,
@@ -7800,10 +7801,10 @@ var Tv = (e) => ({
7800
7801
  name: "transformOrigin",
7801
7802
  options: e,
7802
7803
  fn(t) {
7803
- var v, b, x;
7804
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [d, f] = ic(n), p = { start: "0%", center: "50%", end: "100%" }[f], g = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + i / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
7805
- let w = "", h = "";
7806
- return d === "bottom" ? (w = s ? p : `${g}px`, h = `${-u}px`) : d === "top" ? (w = s ? p : `${g}px`, h = `${r.floating.height + u}px`) : d === "right" ? (w = `${-u}px`, h = s ? p : `${m}px`) : d === "left" && (w = `${r.floating.width + u}px`, h = s ? p : `${m}px`), { data: { x: w, y: h } };
7804
+ var w, x, b;
7805
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((w = o.arrow) == null ? void 0 : w.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [d, f] = ic(n), p = { start: "0%", center: "50%", end: "100%" }[f], g = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + i / 2, m = (((b = o.arrow) == null ? void 0 : b.y) ?? 0) + u / 2;
7806
+ let v = "", h = "";
7807
+ return d === "bottom" ? (v = s ? p : `${g}px`, h = `${-u}px`) : d === "top" ? (v = s ? p : `${g}px`, h = `${r.floating.height + u}px`) : d === "right" ? (v = `${-u}px`, h = s ? p : `${m}px`) : d === "left" && (v = `${r.floating.width + u}px`, h = s ? p : `${m}px`), { data: { x: v, y: h } };
7807
7808
  }
7808
7809
  });
7809
7810
  function ic(e) {
@@ -8044,14 +8045,14 @@ function RC(e) {
8044
8045
  placeholder: a = "Search...",
8045
8046
  emptyMessage: s = "Nothing found",
8046
8047
  defaultOption: i
8047
- } = e, [u, d] = Ee((i == null ? void 0 : i.label) || t), [f, p] = Ee(r), [g, m] = Ee(-1), [w, h] = Ee(!1), v = (E) => {
8048
+ } = e, [u, d] = Ee((i == null ? void 0 : i.label) || t), [f, p] = Ee(r), [g, m] = Ee(-1), [v, h] = Ee(!1), w = (E) => {
8048
8049
  const R = E.target.value;
8049
8050
  d(R), n == null || n(R), m(-1), h(!0), R.trim() === "" ? p(r) : p(
8050
8051
  r.filter(
8051
8052
  (P) => P.label.toLowerCase().includes(R.toLowerCase())
8052
8053
  )
8053
8054
  );
8054
- }, b = (E) => {
8055
+ }, x = (E) => {
8055
8056
  if (E.key === "ArrowDown")
8056
8057
  E.preventDefault(), m((R) => R < f.length - 1 ? R + 1 : R);
8057
8058
  else if (E.key === "ArrowUp")
@@ -8060,22 +8061,22 @@ function RC(e) {
8060
8061
  const R = f[g];
8061
8062
  d(R.label), n == null || n(R.value), p([]), m(-1), h(!1);
8062
8063
  } else E.key === "Escape" && (p([]), m(-1));
8063
- }, x = (E) => {
8064
+ }, b = (E) => {
8064
8065
  h(!1), d(E.label), n == null || n(E.value), p(r), m(-1);
8065
8066
  }, C = () => {
8066
8067
  h(!0);
8067
8068
  }, N = () => {
8068
8069
  h(!1);
8069
8070
  };
8070
- return /* @__PURE__ */ l.jsxs(zv, { open: w, children: [
8071
- /* @__PURE__ */ l.jsx(Vv, { asChild: !0, children: /* @__PURE__ */ l.jsx("div", { className: "relative w-full", children: /* @__PURE__ */ l.jsx(
8071
+ return /* @__PURE__ */ l.jsxs(zv, { open: v, children: [
8072
+ /* @__PURE__ */ l.jsx(Vv, { asChild: !0, children: /* @__PURE__ */ l.jsx(
8072
8073
  xo,
8073
8074
  {
8074
8075
  type: "text",
8075
8076
  placeholder: a,
8076
8077
  value: u,
8077
- onChange: v,
8078
- onKeyDown: b,
8078
+ onChange: w,
8079
+ onKeyDown: x,
8079
8080
  onClick: C,
8080
8081
  onFocus: C,
8081
8082
  onBlur: N,
@@ -8084,14 +8085,15 @@ function RC(e) {
8084
8085
  "aria-autocomplete": "list",
8085
8086
  "aria-controls": "suggestions-list",
8086
8087
  "aria-expanded": f.length > 0,
8088
+ tabIndex: 0,
8087
8089
  leftIcon: /* @__PURE__ */ l.jsx(Ng, { className: "w-4 h-4" })
8088
8090
  }
8089
- ) }) }),
8091
+ ) }),
8090
8092
  /* @__PURE__ */ l.jsx(xc, { className: "p-0 w-[var(--radix-popover-trigger-width)] max-h-96 overflow-y-auto", children: f.length > 0 ? /* @__PURE__ */ l.jsx("ul", { id: "suggestions-list", role: "listbox", children: f.map((E, R) => /* @__PURE__ */ l.jsx(
8091
8093
  "li",
8092
8094
  {
8093
8095
  className: `px-4 py-2 cursor-pointer hover:bg-muted ${R === g ? "bg-muted" : ""}`,
8094
- onClick: () => x(E),
8096
+ onClick: () => b(E),
8095
8097
  role: "option",
8096
8098
  "aria-selected": R === g,
8097
8099
  children: E.label
@@ -8594,8 +8596,8 @@ const Zv = {
8594
8596
  t && t(m);
8595
8597
  }, f = Array.from({
8596
8598
  length: Qm(r)
8597
- }).map((m, w) => new Date(r.getFullYear(), r.getMonth(), w + 1)), p = Zm(r).getDay(), g = Array.from({ length: 7 }).map(
8598
- (m, w) => Mr(new Date(2021, 0, w + 3), "EEEEEE", { locale: s })
8599
+ }).map((m, v) => new Date(r.getFullYear(), r.getMonth(), v + 1)), p = Zm(r).getDay(), g = Array.from({ length: 7 }).map(
8600
+ (m, v) => Mr(new Date(2021, 0, v + 3), "EEEEEE", { locale: s })
8599
8601
  );
8600
8602
  return /* @__PURE__ */ l.jsxs(
8601
8603
  "div",
@@ -8626,8 +8628,8 @@ const Zv = {
8626
8628
  )
8627
8629
  ] }),
8628
8630
  /* @__PURE__ */ l.jsxs("div", { className: "grid grid-cols-7 gap-2", children: [
8629
- g.map((m, w) => /* @__PURE__ */ l.jsx("div", { className: "text-center font-medium", "aria-hidden": "true", children: m }, w)),
8630
- Array.from({ length: p }).map((m, w) => /* @__PURE__ */ l.jsx("div", { className: "", "aria-hidden": "true" }, `empty-${w}`)),
8631
+ g.map((m, v) => /* @__PURE__ */ l.jsx("div", { className: "text-center font-medium", "aria-hidden": "true", children: m }, v)),
8632
+ Array.from({ length: p }).map((m, v) => /* @__PURE__ */ l.jsx("div", { className: "", "aria-hidden": "true" }, `empty-${v}`)),
8631
8633
  f.map((m) => /* @__PURE__ */ l.jsx(
8632
8634
  "button",
8633
8635
  {
@@ -8701,47 +8703,47 @@ var Ho = "Checkbox", [Iw, AC] = we(Ho), [_w, jw] = Iw(Ho), Ac = c.forwardRef(
8701
8703
  onCheckedChange: d,
8702
8704
  form: f,
8703
8705
  ...p
8704
- } = e, [g, m] = c.useState(null), w = Q(t, (N) => m(N)), h = c.useRef(!1), v = g ? f || !!g.closest("form") : !0, [b = !1, x] = Ce({
8706
+ } = e, [g, m] = c.useState(null), v = Q(t, (N) => m(N)), h = c.useRef(!1), w = g ? f || !!g.closest("form") : !0, [x = !1, b] = Ce({
8705
8707
  prop: o,
8706
8708
  defaultProp: a,
8707
8709
  onChange: d
8708
- }), C = c.useRef(b);
8710
+ }), C = c.useRef(x);
8709
8711
  return c.useEffect(() => {
8710
8712
  const N = g == null ? void 0 : g.form;
8711
8713
  if (N) {
8712
- const E = () => x(C.current);
8714
+ const E = () => b(C.current);
8713
8715
  return N.addEventListener("reset", E), () => N.removeEventListener("reset", E);
8714
8716
  }
8715
- }, [g, x]), /* @__PURE__ */ l.jsxs(_w, { scope: n, state: b, disabled: i, children: [
8717
+ }, [g, b]), /* @__PURE__ */ l.jsxs(_w, { scope: n, state: x, disabled: i, children: [
8716
8718
  /* @__PURE__ */ l.jsx(
8717
8719
  O.button,
8718
8720
  {
8719
8721
  type: "button",
8720
8722
  role: "checkbox",
8721
- "aria-checked": gt(b) ? "mixed" : b,
8723
+ "aria-checked": gt(x) ? "mixed" : x,
8722
8724
  "aria-required": s,
8723
- "data-state": Ic(b),
8725
+ "data-state": Ic(x),
8724
8726
  "data-disabled": i ? "" : void 0,
8725
8727
  disabled: i,
8726
8728
  value: u,
8727
8729
  ...p,
8728
- ref: w,
8730
+ ref: v,
8729
8731
  onKeyDown: A(e.onKeyDown, (N) => {
8730
8732
  N.key === "Enter" && N.preventDefault();
8731
8733
  }),
8732
8734
  onClick: A(e.onClick, (N) => {
8733
- x((E) => gt(E) ? !0 : !E), v && (h.current = N.isPropagationStopped(), h.current || N.stopPropagation());
8735
+ b((E) => gt(E) ? !0 : !E), w && (h.current = N.isPropagationStopped(), h.current || N.stopPropagation());
8734
8736
  })
8735
8737
  }
8736
8738
  ),
8737
- v && /* @__PURE__ */ l.jsx(
8739
+ w && /* @__PURE__ */ l.jsx(
8738
8740
  Ow,
8739
8741
  {
8740
8742
  control: g,
8741
8743
  bubbles: !h.current,
8742
8744
  name: r,
8743
8745
  value: u,
8744
- checked: b,
8746
+ checked: x,
8745
8747
  required: s,
8746
8748
  disabled: i,
8747
8749
  form: f,
@@ -8774,8 +8776,8 @@ var Ow = (e) => {
8774
8776
  c.useEffect(() => {
8775
8777
  const f = s.current, p = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(p, "checked").set;
8776
8778
  if (i !== n && m) {
8777
- const w = new Event("click", { bubbles: r });
8778
- f.indeterminate = gt(n), m.call(f, gt(n) ? !1 : n), f.dispatchEvent(w);
8779
+ const v = new Event("click", { bubbles: r });
8780
+ f.indeterminate = gt(n), m.call(f, gt(n) ? !1 : n), f.dispatchEvent(v);
8779
8781
  }
8780
8782
  }, [i, n, r]);
8781
8783
  const d = c.useRef(gt(n) ? !1 : n);
@@ -8838,18 +8840,18 @@ const Fw = M.forwardRef(
8838
8840
  } = e, d = Hr(null);
8839
8841
  df(t, () => d.current);
8840
8842
  const [f, p] = Ee(""), g = (h) => {
8841
- const v = h.toFixed(2).split("."), b = v[0].replace(/\B(?=(\d{3})+(?!\d))/g, o);
8842
- return `${n} ${b}${r}${v[1]}`;
8843
+ const w = h.toFixed(2).split("."), x = w[0].replace(/\B(?=(\d{3})+(?!\d))/g, o);
8844
+ return `${n} ${x}${r}${w[1]}`;
8843
8845
  }, m = (h) => {
8844
- const v = h.target.value, b = parseFloat(v.replace(/\D/g, "")) / 100;
8845
- p(g(b)), a(b), d.current && window.requestAnimationFrame(() => {
8846
- var x;
8847
- (x = d.current) == null || x.setSelectionRange(
8846
+ const w = h.target.value, x = parseFloat(w.replace(/\D/g, "")) / 100;
8847
+ p(g(x)), a(x), d.current && window.requestAnimationFrame(() => {
8848
+ var b;
8849
+ (b = d.current) == null || b.setSelectionRange(
8848
8850
  d.current.value.length,
8849
8851
  d.current.value.length
8850
8852
  );
8851
8853
  });
8852
- }, w = () => {
8854
+ }, v = () => {
8853
8855
  d.current && d.current.setSelectionRange(
8854
8856
  d.current.value.length,
8855
8857
  d.current.value.length
@@ -8865,8 +8867,8 @@ const Fw = M.forwardRef(
8865
8867
  value: f,
8866
8868
  ref: d,
8867
8869
  onChange: m,
8868
- onFocus: w,
8869
- onClick: w,
8870
+ onFocus: v,
8871
+ onClick: v,
8870
8872
  placeholder: `${n} 0${r}00`,
8871
8873
  className: s,
8872
8874
  ...u
@@ -8953,34 +8955,34 @@ function Cn(e) {
8953
8955
  t,
8954
8956
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
8955
8957
  ), s = (m) => {
8956
- const { scope: w, children: h } = m, v = M.useRef(null), b = M.useRef(/* @__PURE__ */ new Map()).current;
8957
- return /* @__PURE__ */ l.jsx(o, { scope: w, itemMap: b, collectionRef: v, children: h });
8958
+ const { scope: v, children: h } = m, w = M.useRef(null), x = M.useRef(/* @__PURE__ */ new Map()).current;
8959
+ return /* @__PURE__ */ l.jsx(o, { scope: v, itemMap: x, collectionRef: w, children: h });
8958
8960
  };
8959
8961
  s.displayName = t;
8960
8962
  const i = e + "CollectionSlot", u = M.forwardRef(
8961
- (m, w) => {
8962
- const { scope: h, children: v } = m, b = a(i, h), x = Q(w, b.collectionRef);
8963
- return /* @__PURE__ */ l.jsx(st, { ref: x, children: v });
8963
+ (m, v) => {
8964
+ const { scope: h, children: w } = m, x = a(i, h), b = Q(v, x.collectionRef);
8965
+ return /* @__PURE__ */ l.jsx(st, { ref: b, children: w });
8964
8966
  }
8965
8967
  );
8966
8968
  u.displayName = i;
8967
8969
  const d = e + "CollectionItemSlot", f = "data-radix-collection-item", p = M.forwardRef(
8968
- (m, w) => {
8969
- const { scope: h, children: v, ...b } = m, x = M.useRef(null), C = Q(w, x), N = a(d, h);
8970
- return M.useEffect(() => (N.itemMap.set(x, { ref: x, ...b }), () => void N.itemMap.delete(x))), /* @__PURE__ */ l.jsx(st, { [f]: "", ref: C, children: v });
8970
+ (m, v) => {
8971
+ const { scope: h, children: w, ...x } = m, b = M.useRef(null), C = Q(v, b), N = a(d, h);
8972
+ return M.useEffect(() => (N.itemMap.set(b, { ref: b, ...x }), () => void N.itemMap.delete(b))), /* @__PURE__ */ l.jsx(st, { [f]: "", ref: C, children: w });
8971
8973
  }
8972
8974
  );
8973
8975
  p.displayName = d;
8974
8976
  function g(m) {
8975
- const w = a(e + "CollectionConsumer", m);
8977
+ const v = a(e + "CollectionConsumer", m);
8976
8978
  return M.useCallback(() => {
8977
- const v = w.collectionRef.current;
8978
- if (!v) return [];
8979
- const b = Array.from(v.querySelectorAll(`[${f}]`));
8980
- return Array.from(w.itemMap.values()).sort(
8981
- (N, E) => b.indexOf(N.ref.current) - b.indexOf(E.ref.current)
8979
+ const w = v.collectionRef.current;
8980
+ if (!w) return [];
8981
+ const x = Array.from(w.querySelectorAll(`[${f}]`));
8982
+ return Array.from(v.itemMap.values()).sort(
8983
+ (N, E) => x.indexOf(N.ref.current) - x.indexOf(E.ref.current)
8982
8984
  );
8983
- }, [w.collectionRef, w.itemMap]);
8985
+ }, [v.collectionRef, v.itemMap]);
8984
8986
  }
8985
8987
  return [
8986
8988
  { Provider: s, Slot: u, ItemSlot: p },
@@ -9012,11 +9014,11 @@ var qw = c.forwardRef((e, t) => {
9012
9014
  onEntryFocus: d,
9013
9015
  preventScrollOnEntryFocus: f = !1,
9014
9016
  ...p
9015
- } = e, g = c.useRef(null), m = Q(t, g), w = Dt(a), [h = null, v] = Ce({
9017
+ } = e, g = c.useRef(null), m = Q(t, g), v = Dt(a), [h = null, w] = Ce({
9016
9018
  prop: s,
9017
9019
  defaultProp: i,
9018
9020
  onChange: u
9019
- }), [b, x] = c.useState(!1), C = he(d), N = $c(n), E = c.useRef(!1), [R, P] = c.useState(0);
9021
+ }), [x, b] = c.useState(!1), C = he(d), N = $c(n), E = c.useRef(!1), [R, P] = c.useState(0);
9020
9022
  return c.useEffect(() => {
9021
9023
  const D = g.current;
9022
9024
  if (D)
@@ -9026,14 +9028,14 @@ var qw = c.forwardRef((e, t) => {
9026
9028
  {
9027
9029
  scope: n,
9028
9030
  orientation: r,
9029
- dir: w,
9031
+ dir: v,
9030
9032
  loop: o,
9031
9033
  currentTabStopId: h,
9032
9034
  onItemFocus: c.useCallback(
9033
- (D) => v(D),
9034
- [v]
9035
+ (D) => w(D),
9036
+ [w]
9035
9037
  ),
9036
- onItemShiftTab: c.useCallback(() => x(!0), []),
9038
+ onItemShiftTab: c.useCallback(() => b(!0), []),
9037
9039
  onFocusableItemAdd: c.useCallback(
9038
9040
  () => P((D) => D + 1),
9039
9041
  []
@@ -9045,7 +9047,7 @@ var qw = c.forwardRef((e, t) => {
9045
9047
  children: /* @__PURE__ */ l.jsx(
9046
9048
  O.div,
9047
9049
  {
9048
- tabIndex: b || R === 0 ? -1 : 0,
9050
+ tabIndex: x || R === 0 ? -1 : 0,
9049
9051
  "data-orientation": r,
9050
9052
  ...p,
9051
9053
  ref: m,
@@ -9055,7 +9057,7 @@ var qw = c.forwardRef((e, t) => {
9055
9057
  }),
9056
9058
  onFocus: A(e.onFocus, (D) => {
9057
9059
  const I = !E.current;
9058
- if (D.target === D.currentTarget && I && !b) {
9060
+ if (D.target === D.currentTarget && I && !x) {
9059
9061
  const W = new CustomEvent(zr, Yw);
9060
9062
  if (D.currentTarget.dispatchEvent(W), !W.defaultPrevented) {
9061
9063
  const z = N().filter((L) => L.focusable), j = z.find((L) => L.active), H = z.find((L) => L.id === h), ne = [j, H, ...z].filter(
@@ -9066,7 +9068,7 @@ var qw = c.forwardRef((e, t) => {
9066
9068
  }
9067
9069
  E.current = !1;
9068
9070
  }),
9069
- onBlur: A(e.onBlur, () => x(!1))
9071
+ onBlur: A(e.onBlur, () => b(!1))
9070
9072
  }
9071
9073
  )
9072
9074
  }
@@ -9097,28 +9099,28 @@ var qw = c.forwardRef((e, t) => {
9097
9099
  "data-orientation": d.orientation,
9098
9100
  ...s,
9099
9101
  ref: t,
9100
- onMouseDown: A(e.onMouseDown, (w) => {
9101
- r ? d.onItemFocus(u) : w.preventDefault();
9102
+ onMouseDown: A(e.onMouseDown, (v) => {
9103
+ r ? d.onItemFocus(u) : v.preventDefault();
9102
9104
  }),
9103
9105
  onFocus: A(e.onFocus, () => d.onItemFocus(u)),
9104
- onKeyDown: A(e.onKeyDown, (w) => {
9105
- if (w.key === "Tab" && w.shiftKey) {
9106
+ onKeyDown: A(e.onKeyDown, (v) => {
9107
+ if (v.key === "Tab" && v.shiftKey) {
9106
9108
  d.onItemShiftTab();
9107
9109
  return;
9108
9110
  }
9109
- if (w.target !== w.currentTarget) return;
9110
- const h = Qw(w, d.orientation, d.dir);
9111
+ if (v.target !== v.currentTarget) return;
9112
+ const h = Qw(v, d.orientation, d.dir);
9111
9113
  if (h !== void 0) {
9112
- if (w.metaKey || w.ctrlKey || w.altKey || w.shiftKey) return;
9113
- w.preventDefault();
9114
- let b = p().filter((x) => x.focusable).map((x) => x.ref.current);
9115
- if (h === "last") b.reverse();
9114
+ if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
9115
+ v.preventDefault();
9116
+ let x = p().filter((b) => b.focusable).map((b) => b.ref.current);
9117
+ if (h === "last") x.reverse();
9116
9118
  else if (h === "prev" || h === "next") {
9117
- h === "prev" && b.reverse();
9118
- const x = b.indexOf(w.currentTarget);
9119
- b = d.loop ? Jw(b, x + 1) : b.slice(x + 1);
9119
+ h === "prev" && x.reverse();
9120
+ const b = x.indexOf(v.currentTarget);
9121
+ x = d.loop ? Jw(x, b + 1) : x.slice(b + 1);
9120
9122
  }
9121
- setTimeout(() => Bc(b));
9123
+ setTimeout(() => Bc(x));
9122
9124
  }
9123
9125
  })
9124
9126
  }
@@ -9168,10 +9170,10 @@ var gr = Lc, vr = Wc, to = ["Enter", " "], eb = ["ArrowDown", "PageUp", "Home"],
9168
9170
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: s = !0 } = e, i = En(t), [u, d] = c.useState(null), f = c.useRef(!1), p = he(a), g = Dt(o);
9169
9171
  return c.useEffect(() => {
9170
9172
  const m = () => {
9171
- f.current = !0, document.addEventListener("pointerdown", w, { capture: !0, once: !0 }), document.addEventListener("pointermove", w, { capture: !0, once: !0 });
9172
- }, w = () => f.current = !1;
9173
+ f.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
9174
+ }, v = () => f.current = !1;
9173
9175
  return document.addEventListener("keydown", m, { capture: !0 }), () => {
9174
- document.removeEventListener("keydown", m, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
9176
+ document.removeEventListener("keydown", m, { capture: !0 }), document.removeEventListener("pointerdown", v, { capture: !0 }), document.removeEventListener("pointermove", v, { capture: !0 });
9175
9177
  };
9176
9178
  }, []), /* @__PURE__ */ l.jsx(wn, { ...i, children: /* @__PURE__ */ l.jsx(
9177
9179
  Hc,
@@ -9266,9 +9268,9 @@ var _e = "MenuContent", [lb, Qo] = kt(_e), qc = c.forwardRef(
9266
9268
  onFocusOutside: p,
9267
9269
  onInteractOutside: g,
9268
9270
  onDismiss: m,
9269
- disableOutsideScroll: w,
9271
+ disableOutsideScroll: v,
9270
9272
  ...h
9271
- } = e, v = Nt(_e, n), b = Sn(_e, n), x = En(n), C = Yc(n), N = ob(n), [E, R] = c.useState(null), P = c.useRef(null), D = Q(t, P, v.onContentChange), I = c.useRef(0), W = c.useRef(""), z = c.useRef(0), j = c.useRef(null), H = c.useRef("right"), B = c.useRef(0), ne = w ? gn : c.Fragment, L = w ? { as: st, allowPinchZoom: !0 } : void 0, V = (S) => {
9273
+ } = e, w = Nt(_e, n), x = Sn(_e, n), b = En(n), C = Yc(n), N = ob(n), [E, R] = c.useState(null), P = c.useRef(null), D = Q(t, P, w.onContentChange), I = c.useRef(0), W = c.useRef(""), z = c.useRef(0), j = c.useRef(null), H = c.useRef("right"), B = c.useRef(0), ne = v ? gn : c.Fragment, L = v ? { as: st, allowPinchZoom: !0 } : void 0, V = (S) => {
9272
9274
  var k, oe;
9273
9275
  const Y = W.current + S, X = N().filter((ae) => !ae.disabled), K = document.activeElement, G = (k = X.find((ae) => ae.ref.current === K)) == null ? void 0 : k.textValue, q = X.map((ae) => ae.textValue), le = Nb(q, Y, G), fe = (oe = X.find((ae) => ae.textValue === le)) == null ? void 0 : oe.ref.current;
9274
9276
  (function ae(ee) {
@@ -9333,13 +9335,13 @@ var _e = "MenuContent", [lb, Qo] = kt(_e), qc = c.forwardRef(
9333
9335
  {
9334
9336
  asChild: !0,
9335
9337
  ...C,
9336
- dir: b.dir,
9338
+ dir: x.dir,
9337
9339
  orientation: "vertical",
9338
9340
  loop: r,
9339
9341
  currentTabStopId: E,
9340
9342
  onCurrentTabStopIdChange: R,
9341
9343
  onEntryFocus: A(u, (S) => {
9342
- b.isUsingKeyboardRef.current || S.preventDefault();
9344
+ x.isUsingKeyboardRef.current || S.preventDefault();
9343
9345
  }),
9344
9346
  preventScrollOnEntryFocus: !0,
9345
9347
  children: /* @__PURE__ */ l.jsx(
@@ -9347,10 +9349,10 @@ var _e = "MenuContent", [lb, Qo] = kt(_e), qc = c.forwardRef(
9347
9349
  {
9348
9350
  role: "menu",
9349
9351
  "aria-orientation": "vertical",
9350
- "data-state": fl(v.open),
9352
+ "data-state": fl(w.open),
9351
9353
  "data-radix-menu-content": "",
9352
- dir: b.dir,
9353
- ...x,
9354
+ dir: x.dir,
9355
+ ...b,
9354
9356
  ...h,
9355
9357
  ref: D,
9356
9358
  style: { outline: "none", ...h.style },
@@ -9440,8 +9442,8 @@ var Zc = c.forwardRef(
9440
9442
  (e, t) => {
9441
9443
  const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, s = Qo(qn, n), i = Yc(n), u = c.useRef(null), d = Q(t, u), [f, p] = c.useState(!1), [g, m] = c.useState("");
9442
9444
  return c.useEffect(() => {
9443
- const w = u.current;
9444
- w && m((w.textContent ?? "").trim());
9445
+ const v = u.current;
9446
+ v && m((v.textContent ?? "").trim());
9445
9447
  }, [a.children]), /* @__PURE__ */ l.jsx(
9446
9448
  dn.ItemSlot,
9447
9449
  {
@@ -9459,13 +9461,13 @@ var Zc = c.forwardRef(
9459
9461
  ref: d,
9460
9462
  onPointerMove: A(
9461
9463
  e.onPointerMove,
9462
- fn((w) => {
9463
- r ? s.onItemLeave(w) : (s.onItemEnter(w), w.defaultPrevented || w.currentTarget.focus({ preventScroll: !0 }));
9464
+ fn((v) => {
9465
+ r ? s.onItemLeave(v) : (s.onItemEnter(v), v.defaultPrevented || v.currentTarget.focus({ preventScroll: !0 }));
9464
9466
  })
9465
9467
  ),
9466
9468
  onPointerLeave: A(
9467
9469
  e.onPointerLeave,
9468
- fn((w) => s.onItemLeave(w))
9470
+ fn((v) => s.onItemLeave(v))
9469
9471
  ),
9470
9472
  onFocus: A(e.onFocus, () => p(!0)),
9471
9473
  onBlur: A(e.onBlur, () => p(!1))
@@ -9635,20 +9637,20 @@ var an = "MenuSubTrigger", ll = c.forwardRef(
9635
9637
  onPointerLeave: A(
9636
9638
  e.onPointerLeave,
9637
9639
  fn((p) => {
9638
- var m, w;
9640
+ var m, v;
9639
9641
  f();
9640
9642
  const g = (m = n.content) == null ? void 0 : m.getBoundingClientRect();
9641
9643
  if (g) {
9642
- const h = (w = n.content) == null ? void 0 : w.dataset.side, v = h === "right", b = v ? -5 : 5, x = g[v ? "left" : "right"], C = g[v ? "right" : "left"];
9644
+ const h = (v = n.content) == null ? void 0 : v.dataset.side, w = h === "right", x = w ? -5 : 5, b = g[w ? "left" : "right"], C = g[w ? "right" : "left"];
9643
9645
  a.onPointerGraceIntentChange({
9644
9646
  area: [
9645
9647
  // Apply a bleed on clientX to ensure that our exit point is
9646
9648
  // consistently within polygon bounds
9647
- { x: p.clientX + b, y: p.clientY },
9648
- { x, y: g.top },
9649
+ { x: p.clientX + x, y: p.clientY },
9650
+ { x: b, y: g.top },
9649
9651
  { x: C, y: g.top },
9650
9652
  { x: C, y: g.bottom },
9651
- { x, y: g.bottom }
9653
+ { x: b, y: g.bottom }
9652
9654
  ],
9653
9655
  side: h
9654
9656
  }), window.clearTimeout(i.current), i.current = window.setTimeout(
@@ -10107,49 +10109,49 @@ var zl = aa, Qt = "NavigationMenu", [sa, Vl, Cx] = Cn(Qt), [no, Nx, Ex] = Cn(Qt)
10107
10109
  orientation: u = "horizontal",
10108
10110
  dir: d,
10109
10111
  ...f
10110
- } = e, [p, g] = c.useState(null), m = Q(t, (I) => g(I)), w = Dt(d), h = c.useRef(0), v = c.useRef(0), b = c.useRef(0), [x, C] = c.useState(!0), [N = "", E] = Ce({
10112
+ } = e, [p, g] = c.useState(null), m = Q(t, (I) => g(I)), v = Dt(d), h = c.useRef(0), w = c.useRef(0), x = c.useRef(0), [b, C] = c.useState(!0), [N = "", E] = Ce({
10111
10113
  prop: r,
10112
10114
  onChange: (I) => {
10113
10115
  const W = I !== "", z = i > 0;
10114
- W ? (window.clearTimeout(b.current), z && C(!1)) : (window.clearTimeout(b.current), b.current = window.setTimeout(
10116
+ W ? (window.clearTimeout(x.current), z && C(!1)) : (window.clearTimeout(x.current), x.current = window.setTimeout(
10115
10117
  () => C(!0),
10116
10118
  i
10117
10119
  )), o == null || o(I);
10118
10120
  },
10119
10121
  defaultProp: a
10120
10122
  }), R = c.useCallback(() => {
10121
- window.clearTimeout(v.current), v.current = window.setTimeout(() => E(""), 150);
10123
+ window.clearTimeout(w.current), w.current = window.setTimeout(() => E(""), 150);
10122
10124
  }, [E]), P = c.useCallback(
10123
10125
  (I) => {
10124
- window.clearTimeout(v.current), E(I);
10126
+ window.clearTimeout(w.current), E(I);
10125
10127
  },
10126
10128
  [E]
10127
10129
  ), D = c.useCallback(
10128
10130
  (I) => {
10129
- N === I ? window.clearTimeout(v.current) : h.current = window.setTimeout(() => {
10130
- window.clearTimeout(v.current), E(I);
10131
+ N === I ? window.clearTimeout(w.current) : h.current = window.setTimeout(() => {
10132
+ window.clearTimeout(w.current), E(I);
10131
10133
  }, s);
10132
10134
  },
10133
10135
  [N, E, s]
10134
10136
  );
10135
10137
  return c.useEffect(() => () => {
10136
- window.clearTimeout(h.current), window.clearTimeout(v.current), window.clearTimeout(b.current);
10138
+ window.clearTimeout(h.current), window.clearTimeout(w.current), window.clearTimeout(x.current);
10137
10139
  }, []), /* @__PURE__ */ l.jsx(
10138
10140
  Gl,
10139
10141
  {
10140
10142
  scope: n,
10141
10143
  isRootMenu: !0,
10142
10144
  value: N,
10143
- dir: w,
10145
+ dir: v,
10144
10146
  orientation: u,
10145
10147
  rootNavigationMenu: p,
10146
10148
  onTriggerEnter: (I) => {
10147
- window.clearTimeout(h.current), x ? D(I) : P(I);
10149
+ window.clearTimeout(h.current), b ? D(I) : P(I);
10148
10150
  },
10149
10151
  onTriggerLeave: () => {
10150
10152
  window.clearTimeout(h.current), R();
10151
10153
  },
10152
- onContentEnter: () => window.clearTimeout(v.current),
10154
+ onContentEnter: () => window.clearTimeout(w.current),
10153
10155
  onContentLeave: R,
10154
10156
  onItemSelect: (I) => {
10155
10157
  E((W) => W === I ? "" : I);
@@ -10160,7 +10162,7 @@ var zl = aa, Qt = "NavigationMenu", [sa, Vl, Cx] = Cn(Qt), [no, Nx, Ex] = Cn(Qt)
10160
10162
  {
10161
10163
  "aria-label": "Main",
10162
10164
  "data-orientation": u,
10163
- dir: w,
10165
+ dir: v,
10164
10166
  ...f,
10165
10167
  ref: m
10166
10168
  }
@@ -10217,7 +10219,7 @@ var Gl = (e) => {
10217
10219
  onTriggerLeave: p,
10218
10220
  onContentEnter: g,
10219
10221
  onContentLeave: m
10220
- } = e, [w, h] = c.useState(null), [v, b] = c.useState(/* @__PURE__ */ new Map()), [x, C] = c.useState(null);
10222
+ } = e, [v, h] = c.useState(null), [w, x] = c.useState(/* @__PURE__ */ new Map()), [b, C] = c.useState(null);
10221
10223
  return /* @__PURE__ */ l.jsx(
10222
10224
  Sx,
10223
10225
  {
@@ -10229,9 +10231,9 @@ var Gl = (e) => {
10229
10231
  baseId: Se(),
10230
10232
  dir: o,
10231
10233
  orientation: a,
10232
- viewport: w,
10234
+ viewport: v,
10233
10235
  onViewportChange: h,
10234
- indicatorTrack: x,
10236
+ indicatorTrack: b,
10235
10237
  onIndicatorTrackChange: C,
10236
10238
  onTriggerEnter: he(f),
10237
10239
  onTriggerLeave: he(p),
@@ -10240,12 +10242,12 @@ var Gl = (e) => {
10240
10242
  onItemSelect: he(u),
10241
10243
  onItemDismiss: he(d),
10242
10244
  onViewportContentChange: c.useCallback((N, E) => {
10243
- b((R) => (R.set(N, E), new Map(R)));
10245
+ x((R) => (R.set(N, E), new Map(R)));
10244
10246
  }, []),
10245
10247
  onViewportContentRemove: c.useCallback((N) => {
10246
- b((E) => E.has(N) ? (E.delete(N), new Map(E)) : E);
10248
+ x((E) => E.has(N) ? (E.delete(N), new Map(E)) : E);
10247
10249
  }, []),
10248
- children: /* @__PURE__ */ l.jsx(sa.Provider, { scope: t, children: /* @__PURE__ */ l.jsx(Rx, { scope: t, items: v, children: s }) })
10250
+ children: /* @__PURE__ */ l.jsx(sa.Provider, { scope: t, children: /* @__PURE__ */ l.jsx(Rx, { scope: t, items: w, children: s }) })
10249
10251
  }
10250
10252
  );
10251
10253
  }, Ul = "NavigationMenuList", Kl = c.forwardRef(
@@ -10258,16 +10260,16 @@ Kl.displayName = Ul;
10258
10260
  var ql = "NavigationMenuItem", [Tx, Xl] = ia(ql), Zl = c.forwardRef(
10259
10261
  (e, t) => {
10260
10262
  const { __scopeNavigationMenu: n, value: r, ...o } = e, a = Se(), s = r || a || "LEGACY_REACT_AUTO_VALUE", i = c.useRef(null), u = c.useRef(null), d = c.useRef(null), f = c.useRef(() => {
10261
- }), p = c.useRef(!1), g = c.useCallback((w = "start") => {
10263
+ }), p = c.useRef(!1), g = c.useCallback((v = "start") => {
10262
10264
  if (i.current) {
10263
10265
  f.current();
10264
10266
  const h = oo(i.current);
10265
- h.length && ua(w === "start" ? h : h.reverse());
10267
+ h.length && ua(v === "start" ? h : h.reverse());
10266
10268
  }
10267
10269
  }, []), m = c.useCallback(() => {
10268
10270
  if (i.current) {
10269
- const w = oo(i.current);
10270
- w.length && (f.current = Ox(w));
10271
+ const v = oo(i.current);
10272
+ v.length && (f.current = Ox(v));
10271
10273
  }
10272
10274
  }, []);
10273
10275
  return /* @__PURE__ */ l.jsx(
@@ -10321,9 +10323,9 @@ var ro = "NavigationMenuTrigger", Ql = c.forwardRef((e, t) => {
10321
10323
  onClick: A(e.onClick, () => {
10322
10324
  a.onItemSelect(s.value), g.current = m;
10323
10325
  }),
10324
- onKeyDown: A(e.onKeyDown, (w) => {
10325
- const v = { horizontal: "ArrowDown", vertical: a.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[a.orientation];
10326
- m && w.key === v && (s.onEntryKeyDown(), w.preventDefault());
10326
+ onKeyDown: A(e.onKeyDown, (v) => {
10327
+ const w = { horizontal: "ArrowDown", vertical: a.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[a.orientation];
10328
+ m && v.key === w && (s.onEntryKeyDown(), v.preventDefault());
10327
10329
  })
10328
10330
  }
10329
10331
  ) }) }),
@@ -10334,9 +10336,9 @@ var ro = "NavigationMenuTrigger", Ql = c.forwardRef((e, t) => {
10334
10336
  "aria-hidden": !0,
10335
10337
  tabIndex: 0,
10336
10338
  ref: s.focusProxyRef,
10337
- onFocus: (w) => {
10338
- const h = s.contentRef.current, v = w.relatedTarget, b = v === i.current, x = h == null ? void 0 : h.contains(v);
10339
- (b || !x) && s.onFocusProxyEnter(b ? "start" : "end");
10339
+ onFocus: (v) => {
10340
+ const h = s.contentRef.current, w = v.relatedTarget, x = w === i.current, b = h == null ? void 0 : h.contains(w);
10341
+ (x || !b) && s.onFocusProxyEnter(x ? "start" : "end");
10340
10342
  }
10341
10343
  }
10342
10344
  ),
@@ -10391,8 +10393,8 @@ var Dx = c.forwardRef((e, t) => {
10391
10393
  ), [u, d] = c.useState(null), f = o.orientation === "horizontal", p = !!o.value;
10392
10394
  c.useEffect(() => {
10393
10395
  var h;
10394
- const w = (h = a().find((v) => v.value === o.value)) == null ? void 0 : h.ref.current;
10395
- w && i(w);
10396
+ const v = (h = a().find((w) => w.value === o.value)) == null ? void 0 : h.ref.current;
10397
+ v && i(v);
10396
10398
  }, [a, o.value]);
10397
10399
  const g = () => {
10398
10400
  s && d({
@@ -10471,22 +10473,22 @@ var kx = c.forwardRef((e, t) => {
10471
10473
  onRootContentClose: i,
10472
10474
  onContentFocusOutside: u,
10473
10475
  ...d
10474
- } = e, f = je(Ht, n), p = c.useRef(null), g = Q(p, t), m = su(f.baseId, r), w = iu(f.baseId, r), h = Vl(n), v = c.useRef(null), { onItemDismiss: b } = f;
10476
+ } = e, f = je(Ht, n), p = c.useRef(null), g = Q(p, t), m = su(f.baseId, r), v = iu(f.baseId, r), h = Vl(n), w = c.useRef(null), { onItemDismiss: x } = f;
10475
10477
  c.useEffect(() => {
10476
10478
  const C = p.current;
10477
10479
  if (f.isRootMenu && C) {
10478
10480
  const N = () => {
10479
10481
  var E;
10480
- b(), i(), C.contains(document.activeElement) && ((E = o.current) == null || E.focus());
10482
+ x(), i(), C.contains(document.activeElement) && ((E = o.current) == null || E.focus());
10481
10483
  };
10482
10484
  return C.addEventListener(Wn, N), () => C.removeEventListener(Wn, N);
10483
10485
  }
10484
- }, [f.isRootMenu, e.value, o, b, i]);
10485
- const x = c.useMemo(() => {
10486
+ }, [f.isRootMenu, e.value, o, x, i]);
10487
+ const b = c.useMemo(() => {
10486
10488
  const N = h().map((W) => W.value);
10487
10489
  f.dir === "rtl" && N.reverse();
10488
10490
  const E = N.indexOf(f.value), R = N.indexOf(f.previousValue), P = r === f.value, D = R === N.indexOf(r);
10489
- if (!P && !D) return v.current;
10491
+ if (!P && !D) return w.current;
10490
10492
  const I = (() => {
10491
10493
  if (E !== R) {
10492
10494
  if (P && R !== -1) return E > R ? "from-end" : "from-start";
@@ -10494,14 +10496,14 @@ var kx = c.forwardRef((e, t) => {
10494
10496
  }
10495
10497
  return null;
10496
10498
  })();
10497
- return v.current = I, I;
10499
+ return w.current = I, I;
10498
10500
  }, [f.previousValue, f.value, f.dir, h, r]);
10499
10501
  return /* @__PURE__ */ l.jsx(ou, { asChild: !0, children: /* @__PURE__ */ l.jsx(
10500
10502
  At,
10501
10503
  {
10502
- id: w,
10504
+ id: v,
10503
10505
  "aria-labelledby": m,
10504
- "data-motion": x,
10506
+ "data-motion": b,
10505
10507
  "data-orientation": f.orientation,
10506
10508
  ...d,
10507
10509
  ref: g,
@@ -10550,36 +10552,36 @@ var Ix = c.forwardRef((e, t) => {
10550
10552
  const { __scopeNavigationMenu: n, children: r, ...o } = e, a = je(la, n), s = Q(t, a.onViewportChange), i = Px(
10551
10553
  Ht,
10552
10554
  e.__scopeNavigationMenu
10553
- ), [u, d] = c.useState(null), [f, p] = c.useState(null), g = u ? (u == null ? void 0 : u.width) + "px" : void 0, m = u ? (u == null ? void 0 : u.height) + "px" : void 0, w = !!a.value, h = w ? a.value : a.previousValue;
10555
+ ), [u, d] = c.useState(null), [f, p] = c.useState(null), g = u ? (u == null ? void 0 : u.width) + "px" : void 0, m = u ? (u == null ? void 0 : u.height) + "px" : void 0, v = !!a.value, h = v ? a.value : a.previousValue;
10554
10556
  return ao(f, () => {
10555
10557
  f && d({ width: f.offsetWidth, height: f.offsetHeight });
10556
10558
  }), /* @__PURE__ */ l.jsx(
10557
10559
  O.div,
10558
10560
  {
10559
- "data-state": da(w),
10561
+ "data-state": da(v),
10560
10562
  "data-orientation": a.orientation,
10561
10563
  ...o,
10562
10564
  ref: s,
10563
10565
  style: {
10564
10566
  // Prevent interaction when animating out
10565
- pointerEvents: !w && a.isRootMenu ? "none" : void 0,
10567
+ pointerEvents: !v && a.isRootMenu ? "none" : void 0,
10566
10568
  "--radix-navigation-menu-viewport-width": g,
10567
10569
  "--radix-navigation-menu-viewport-height": m,
10568
10570
  ...o.style
10569
10571
  },
10570
10572
  onPointerEnter: A(e.onPointerEnter, a.onContentEnter),
10571
10573
  onPointerLeave: A(e.onPointerLeave, Zn(a.onContentLeave)),
10572
- children: Array.from(i.items).map(([b, { ref: x, forceMount: C, ...N }]) => {
10573
- const E = h === b;
10574
+ children: Array.from(i.items).map(([x, { ref: b, forceMount: C, ...N }]) => {
10575
+ const E = h === x;
10574
10576
  return /* @__PURE__ */ l.jsx(be, { present: C || E, children: /* @__PURE__ */ l.jsx(
10575
10577
  nu,
10576
10578
  {
10577
10579
  ...N,
10578
- ref: mn(x, (R) => {
10580
+ ref: mn(b, (R) => {
10579
10581
  E && R && p(R);
10580
10582
  })
10581
10583
  }
10582
- ) }, b);
10584
+ ) }, x);
10583
10585
  })
10584
10586
  }
10585
10587
  );
@@ -10944,12 +10946,12 @@ function VC(e) {
10944
10946
  hidePasswordLabel: a = "Hide password",
10945
10947
  strengthTitle: s = "Password strength",
10946
10948
  ...i
10947
- } = e, [u, d] = Ee(""), [f, p] = Ee(!1), g = (b) => {
10948
- let x = 0;
10949
- return b.length >= 8 && (x += 25), b.match(/[a-z]/) && (x += 25), b.match(/[A-Z]/) && (x += 25), b.match(/[0-9]/) && (x += 25), x;
10950
- }, m = (b) => b === 0 ? r.veryWeak : b <= 25 ? r.weak : b <= 50 ? r.medium : b <= 75 ? r.strong : r.veryStrong, w = g(u), h = m(w), v = (b) => {
10951
- var x;
10952
- d(b.target.value), (x = e.onChange) == null || x.call(e, b);
10949
+ } = e, [u, d] = Ee(""), [f, p] = Ee(!1), g = (x) => {
10950
+ let b = 0;
10951
+ return x.length >= 8 && (b += 25), x.match(/[a-z]/) && (b += 25), x.match(/[A-Z]/) && (b += 25), x.match(/[0-9]/) && (b += 25), b;
10952
+ }, m = (x) => x === 0 ? r.veryWeak : x <= 25 ? r.weak : x <= 50 ? r.medium : x <= 75 ? r.strong : r.veryStrong, v = g(u), h = m(v), w = (x) => {
10953
+ var b;
10954
+ d(x.target.value), (b = e.onChange) == null || b.call(e, x);
10953
10955
  };
10954
10956
  return /* @__PURE__ */ l.jsxs("div", { className: "w-full space-y-4", children: [
10955
10957
  /* @__PURE__ */ l.jsxs("div", { className: "relative", children: [
@@ -10959,7 +10961,7 @@ function VC(e) {
10959
10961
  ...i,
10960
10962
  type: f ? "text" : "password",
10961
10963
  value: u,
10962
- onChange: v,
10964
+ onChange: w,
10963
10965
  className: `pr-10 ${n || ""}`
10964
10966
  }
10965
10967
  ),
@@ -10984,7 +10986,7 @@ function VC(e) {
10984
10986
  ] }),
10985
10987
  /* @__PURE__ */ l.jsx("span", { children: h })
10986
10988
  ] }),
10987
- /* @__PURE__ */ l.jsx(Eu, { value: w, className: "h-2" })
10989
+ /* @__PURE__ */ l.jsx(Eu, { value: v, className: "h-2" })
10988
10990
  ] })
10989
10991
  ] });
10990
10992
  }
@@ -11000,7 +11002,7 @@ var pa = "Radio", [Jx, Su] = we(pa), [ey, ty] = Jx(pa), Ru = c.forwardRef(
11000
11002
  onCheck: u,
11001
11003
  form: d,
11002
11004
  ...f
11003
- } = e, [p, g] = c.useState(null), m = Q(t, (v) => g(v)), w = c.useRef(!1), h = p ? d || !!p.closest("form") : !0;
11005
+ } = e, [p, g] = c.useState(null), m = Q(t, (w) => g(w)), v = c.useRef(!1), h = p ? d || !!p.closest("form") : !0;
11004
11006
  return /* @__PURE__ */ l.jsxs(ey, { scope: n, checked: o, disabled: s, children: [
11005
11007
  /* @__PURE__ */ l.jsx(
11006
11008
  O.button,
@@ -11014,8 +11016,8 @@ var pa = "Radio", [Jx, Su] = we(pa), [ey, ty] = Jx(pa), Ru = c.forwardRef(
11014
11016
  value: i,
11015
11017
  ...f,
11016
11018
  ref: m,
11017
- onClick: A(e.onClick, (v) => {
11018
- o || u == null || u(), h && (w.current = v.isPropagationStopped(), w.current || v.stopPropagation());
11019
+ onClick: A(e.onClick, (w) => {
11020
+ o || u == null || u(), h && (v.current = w.isPropagationStopped(), v.current || w.stopPropagation());
11019
11021
  })
11020
11022
  }
11021
11023
  ),
@@ -11023,7 +11025,7 @@ var pa = "Radio", [Jx, Su] = we(pa), [ey, ty] = Jx(pa), Ru = c.forwardRef(
11023
11025
  ny,
11024
11026
  {
11025
11027
  control: p,
11026
- bubbles: !w.current,
11028
+ bubbles: !v.current,
11027
11029
  name: r,
11028
11030
  value: i,
11029
11031
  checked: o,
@@ -11100,7 +11102,7 @@ var ry = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ha = "RadioGroup",
11100
11102
  loop: f = !0,
11101
11103
  onValueChange: p,
11102
11104
  ...g
11103
- } = e, m = Au(n), w = Dt(d), [h, v] = Ce({
11105
+ } = e, m = Au(n), v = Dt(d), [h, w] = Ce({
11104
11106
  prop: a,
11105
11107
  defaultProp: o,
11106
11108
  onChange: p
@@ -11113,14 +11115,14 @@ var ry = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ha = "RadioGroup",
11113
11115
  required: s,
11114
11116
  disabled: i,
11115
11117
  value: h,
11116
- onValueChange: v,
11118
+ onValueChange: w,
11117
11119
  children: /* @__PURE__ */ l.jsx(
11118
11120
  gr,
11119
11121
  {
11120
11122
  asChild: !0,
11121
11123
  ...m,
11122
11124
  orientation: u,
11123
- dir: w,
11125
+ dir: v,
11124
11126
  loop: f,
11125
11127
  children: /* @__PURE__ */ l.jsx(
11126
11128
  O.div,
@@ -11129,7 +11131,7 @@ var ry = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ha = "RadioGroup",
11129
11131
  "aria-required": s,
11130
11132
  "aria-orientation": u,
11131
11133
  "data-disabled": i ? "" : void 0,
11132
- dir: w,
11134
+ dir: v,
11133
11135
  ...g,
11134
11136
  ref: t
11135
11137
  }
@@ -11147,9 +11149,9 @@ var Iu = "RadioGroupItem", _u = c.forwardRef(
11147
11149
  return c.useEffect(() => {
11148
11150
  const m = (h) => {
11149
11151
  ry.includes(h.key) && (g.current = !0);
11150
- }, w = () => g.current = !1;
11151
- return document.addEventListener("keydown", m), document.addEventListener("keyup", w), () => {
11152
- document.removeEventListener("keydown", m), document.removeEventListener("keyup", w);
11152
+ }, v = () => g.current = !1;
11153
+ return document.addEventListener("keydown", m), document.addEventListener("keyup", v), () => {
11154
+ document.removeEventListener("keydown", m), document.removeEventListener("keyup", v);
11153
11155
  };
11154
11156
  }, []), /* @__PURE__ */ l.jsx(
11155
11157
  vr,
@@ -11234,8 +11236,8 @@ var dy = [" ", "Enter", "ArrowUp", "ArrowDown"], fy = [" ", "Enter"], Rn = "Sele
11234
11236
  autoComplete: p,
11235
11237
  disabled: g,
11236
11238
  required: m,
11237
- form: w
11238
- } = e, h = Cr(t), [v, b] = c.useState(null), [x, C] = c.useState(null), [N, E] = c.useState(!1), R = Dt(d), [P = !1, D] = Ce({
11239
+ form: v
11240
+ } = e, h = Cr(t), [w, x] = c.useState(null), [b, C] = c.useState(null), [N, E] = c.useState(!1), R = Dt(d), [P = !1, D] = Ce({
11239
11241
  prop: r,
11240
11242
  defaultProp: o,
11241
11243
  onChange: a
@@ -11243,15 +11245,15 @@ var dy = [" ", "Enter", "ArrowUp", "ArrowDown"], fy = [" ", "Enter"], Rn = "Sele
11243
11245
  prop: s,
11244
11246
  defaultProp: i,
11245
11247
  onChange: u
11246
- }), z = c.useRef(null), j = v ? w || !!v.closest("form") : !0, [H, B] = c.useState(/* @__PURE__ */ new Set()), ne = Array.from(H).map((L) => L.props.value).join(";");
11248
+ }), z = c.useRef(null), j = w ? v || !!w.closest("form") : !0, [H, B] = c.useState(/* @__PURE__ */ new Set()), ne = Array.from(H).map((L) => L.props.value).join(";");
11247
11249
  return /* @__PURE__ */ l.jsx(wn, { ...h, children: /* @__PURE__ */ l.jsxs(
11248
11250
  py,
11249
11251
  {
11250
11252
  required: m,
11251
11253
  scope: t,
11252
- trigger: v,
11253
- onTriggerChange: b,
11254
- valueNode: x,
11254
+ trigger: w,
11255
+ onTriggerChange: x,
11256
+ valueNode: b,
11255
11257
  onValueNodeChange: C,
11256
11258
  valueNodeHasChildren: N,
11257
11259
  onValueNodeHasChildrenChange: E,
@@ -11291,7 +11293,7 @@ var dy = [" ", "Enter", "ArrowUp", "ArrowDown"], fy = [" ", "Enter"], Rn = "Sele
11291
11293
  value: I,
11292
11294
  onChange: (L) => W(L.target.value),
11293
11295
  disabled: g,
11294
- form: w,
11296
+ form: v,
11295
11297
  children: [
11296
11298
  I === void 0 ? /* @__PURE__ */ l.jsx("option", { value: "" }) : null,
11297
11299
  Array.from(H)
@@ -11307,9 +11309,9 @@ Lu.displayName = Rn;
11307
11309
  var Fu = "SelectTrigger", Wu = c.forwardRef(
11308
11310
  (e, t) => {
11309
11311
  const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = Cr(n), s = Et(Fu, n), i = s.disabled || r, u = Q(t, s.onTriggerChange), d = yr(n), f = c.useRef("touch"), [p, g, m] = ud((h) => {
11310
- const v = d().filter((C) => !C.disabled), b = v.find((C) => C.value === s.value), x = dd(v, h, b);
11311
- x !== void 0 && s.onValueChange(x.value);
11312
- }), w = (h) => {
11312
+ const w = d().filter((C) => !C.disabled), x = w.find((C) => C.value === s.value), b = dd(w, h, x);
11313
+ b !== void 0 && s.onValueChange(b.value);
11314
+ }), v = (h) => {
11313
11315
  i || (s.onOpenChange(!0), m()), h && (s.triggerPointerDownPosRef.current = {
11314
11316
  x: Math.round(h.pageX),
11315
11317
  y: Math.round(h.pageY)
@@ -11332,16 +11334,16 @@ var Fu = "SelectTrigger", Wu = c.forwardRef(
11332
11334
  ...o,
11333
11335
  ref: u,
11334
11336
  onClick: A(o.onClick, (h) => {
11335
- h.currentTarget.focus(), f.current !== "mouse" && w(h);
11337
+ h.currentTarget.focus(), f.current !== "mouse" && v(h);
11336
11338
  }),
11337
11339
  onPointerDown: A(o.onPointerDown, (h) => {
11338
11340
  f.current = h.pointerType;
11339
- const v = h.target;
11340
- v.hasPointerCapture(h.pointerId) && v.releasePointerCapture(h.pointerId), h.button === 0 && h.ctrlKey === !1 && h.pointerType === "mouse" && (w(h), h.preventDefault());
11341
+ const w = h.target;
11342
+ w.hasPointerCapture(h.pointerId) && w.releasePointerCapture(h.pointerId), h.button === 0 && h.ctrlKey === !1 && h.pointerType === "mouse" && (v(h), h.preventDefault());
11341
11343
  }),
11342
11344
  onKeyDown: A(o.onKeyDown, (h) => {
11343
- const v = p.current !== "";
11344
- !(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && g(h.key), !(v && h.key === " ") && dy.includes(h.key) && (w(), h.preventDefault());
11345
+ const w = p.current !== "";
11346
+ !(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && g(h.key), !(w && h.key === " ") && dy.includes(h.key) && (v(), h.preventDefault());
11345
11347
  })
11346
11348
  }
11347
11349
  ) });
@@ -11405,12 +11407,12 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11405
11407
  arrowPadding: p,
11406
11408
  collisionBoundary: g,
11407
11409
  collisionPadding: m,
11408
- sticky: w,
11410
+ sticky: v,
11409
11411
  hideWhenDetached: h,
11410
- avoidCollisions: v,
11412
+ avoidCollisions: w,
11411
11413
  //
11412
- ...b
11413
- } = e, x = Et(Tt, n), [C, N] = c.useState(null), [E, R] = c.useState(null), P = Q(t, (k) => N(k)), [D, I] = c.useState(null), [W, z] = c.useState(
11414
+ ...x
11415
+ } = e, b = Et(Tt, n), [C, N] = c.useState(null), [E, R] = c.useState(null), P = Q(t, (k) => N(k)), [D, I] = c.useState(null), [W, z] = c.useState(
11414
11416
  null
11415
11417
  ), j = yr(n), [H, B] = c.useState(!1), ne = c.useRef(!1);
11416
11418
  c.useEffect(() => {
@@ -11430,7 +11432,7 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11430
11432
  c.useEffect(() => {
11431
11433
  H && V();
11432
11434
  }, [H, V]);
11433
- const { onOpenChange: F, triggerPointerDownPosRef: S } = x;
11435
+ const { onOpenChange: F, triggerPointerDownPosRef: S } = b;
11434
11436
  c.useEffect(() => {
11435
11437
  if (C) {
11436
11438
  let k = { x: 0, y: 0 };
@@ -11459,15 +11461,15 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11459
11461
  }), K = c.useCallback(
11460
11462
  (k, oe, ae) => {
11461
11463
  const ee = !ne.current && !ae;
11462
- (x.value !== void 0 && x.value === oe || ee) && (I(k), ee && (ne.current = !0));
11464
+ (b.value !== void 0 && b.value === oe || ee) && (I(k), ee && (ne.current = !0));
11463
11465
  },
11464
- [x.value]
11466
+ [b.value]
11465
11467
  ), G = c.useCallback(() => C == null ? void 0 : C.focus(), [C]), q = c.useCallback(
11466
11468
  (k, oe, ae) => {
11467
11469
  const ee = !ne.current && !ae;
11468
- (x.value !== void 0 && x.value === oe || ee) && z(k);
11470
+ (b.value !== void 0 && b.value === oe || ee) && z(k);
11469
11471
  },
11470
- [x.value]
11472
+ [b.value]
11471
11473
  ), le = r === "popper" ? so : Uu, fe = le === so ? {
11472
11474
  side: i,
11473
11475
  sideOffset: u,
@@ -11476,9 +11478,9 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11476
11478
  arrowPadding: p,
11477
11479
  collisionBoundary: g,
11478
11480
  collisionPadding: m,
11479
- sticky: w,
11481
+ sticky: v,
11480
11482
  hideWhenDetached: h,
11481
- avoidCollisions: v
11483
+ avoidCollisions: w
11482
11484
  } : {};
11483
11485
  return /* @__PURE__ */ l.jsx(
11484
11486
  Hu,
@@ -11500,13 +11502,13 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11500
11502
  pn,
11501
11503
  {
11502
11504
  asChild: !0,
11503
- trapped: x.open,
11505
+ trapped: b.open,
11504
11506
  onMountAutoFocus: (k) => {
11505
11507
  k.preventDefault();
11506
11508
  },
11507
11509
  onUnmountAutoFocus: A(o, (k) => {
11508
11510
  var oe;
11509
- (oe = x.trigger) == null || oe.focus({ preventScroll: !0 }), k.preventDefault();
11511
+ (oe = b.trigger) == null || oe.focus({ preventScroll: !0 }), k.preventDefault();
11510
11512
  }),
11511
11513
  children: /* @__PURE__ */ l.jsx(
11512
11514
  At,
@@ -11516,16 +11518,16 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11516
11518
  onEscapeKeyDown: a,
11517
11519
  onPointerDownOutside: s,
11518
11520
  onFocusOutside: (k) => k.preventDefault(),
11519
- onDismiss: () => x.onOpenChange(!1),
11521
+ onDismiss: () => b.onOpenChange(!1),
11520
11522
  children: /* @__PURE__ */ l.jsx(
11521
11523
  le,
11522
11524
  {
11523
11525
  role: "listbox",
11524
- id: x.contentId,
11525
- "data-state": x.open ? "open" : "closed",
11526
- dir: x.dir,
11526
+ id: b.contentId,
11527
+ "data-state": b.open ? "open" : "closed",
11528
+ dir: b.dir,
11527
11529
  onContextMenu: (k) => k.preventDefault(),
11528
- ...b,
11530
+ ...x,
11529
11531
  ...fe,
11530
11532
  onPlaced: () => B(!0),
11531
11533
  ref: P,
@@ -11535,9 +11537,9 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11535
11537
  flexDirection: "column",
11536
11538
  // reset the outline by default as the content MAY get focused
11537
11539
  outline: "none",
11538
- ...b.style
11540
+ ...x.style
11539
11541
  },
11540
- onKeyDown: A(b.onKeyDown, (k) => {
11542
+ onKeyDown: A(x.onKeyDown, (k) => {
11541
11543
  const oe = k.ctrlKey || k.altKey || k.metaKey;
11542
11544
  if (k.key === "Tab" && k.preventDefault(), !oe && k.key.length === 1 && X(k.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(k.key)) {
11543
11545
  let ee = j().filter((re) => !re.disabled).map((re) => re.ref.current);
@@ -11560,9 +11562,9 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
11560
11562
  );
11561
11563
  Gu.displayName = wy;
11562
11564
  var by = "SelectItemAlignedPosition", Uu = c.forwardRef((e, t) => {
11563
- const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Et(Tt, n), s = St(Tt, n), [i, u] = c.useState(null), [d, f] = c.useState(null), p = Q(t, (P) => f(P)), g = yr(n), m = c.useRef(!1), w = c.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: b, focusSelectedItem: x } = s, C = c.useCallback(() => {
11564
- if (a.trigger && a.valueNode && i && d && h && v && b) {
11565
- const P = a.trigger.getBoundingClientRect(), D = d.getBoundingClientRect(), I = a.valueNode.getBoundingClientRect(), W = b.getBoundingClientRect();
11565
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Et(Tt, n), s = St(Tt, n), [i, u] = c.useState(null), [d, f] = c.useState(null), p = Q(t, (P) => f(P)), g = yr(n), m = c.useRef(!1), v = c.useRef(!0), { viewport: h, selectedItem: w, selectedItemText: x, focusSelectedItem: b } = s, C = c.useCallback(() => {
11566
+ if (a.trigger && a.valueNode && i && d && h && w && x) {
11567
+ const P = a.trigger.getBoundingClientRect(), D = d.getBoundingClientRect(), I = a.valueNode.getBoundingClientRect(), W = x.getBoundingClientRect();
11566
11568
  if (a.dir !== "rtl") {
11567
11569
  const re = W.left - D.left, se = I.left - re, ve = P.left - se, Ne = P.width + ve, Te = Math.max(Ne, D.width), nt = window.innerWidth - We, Oe = Cs(se, [
11568
11570
  We,
@@ -11581,9 +11583,9 @@ var by = "SelectItemAlignedPosition", Uu = c.forwardRef((e, t) => {
11581
11583
  ]);
11582
11584
  i.style.minWidth = Ne + "px", i.style.right = Oe + "px";
11583
11585
  }
11584
- const z = g(), j = window.innerHeight - We * 2, H = h.scrollHeight, B = window.getComputedStyle(d), ne = parseInt(B.borderTopWidth, 10), L = parseInt(B.paddingTop, 10), V = parseInt(B.borderBottomWidth, 10), F = parseInt(B.paddingBottom, 10), S = ne + L + H + F + V, Y = Math.min(v.offsetHeight * 5, S), X = window.getComputedStyle(h), K = parseInt(X.paddingTop, 10), G = parseInt(X.paddingBottom, 10), q = P.top + P.height / 2 - We, le = j - q, fe = v.offsetHeight / 2, k = v.offsetTop + fe, oe = ne + L + k, ae = S - oe;
11586
+ const z = g(), j = window.innerHeight - We * 2, H = h.scrollHeight, B = window.getComputedStyle(d), ne = parseInt(B.borderTopWidth, 10), L = parseInt(B.paddingTop, 10), V = parseInt(B.borderBottomWidth, 10), F = parseInt(B.paddingBottom, 10), S = ne + L + H + F + V, Y = Math.min(w.offsetHeight * 5, S), X = window.getComputedStyle(h), K = parseInt(X.paddingTop, 10), G = parseInt(X.paddingBottom, 10), q = P.top + P.height / 2 - We, le = j - q, fe = w.offsetHeight / 2, k = w.offsetTop + fe, oe = ne + L + k, ae = S - oe;
11585
11587
  if (oe <= q) {
11586
- const re = z.length > 0 && v === z[z.length - 1].ref.current;
11588
+ const re = z.length > 0 && w === z[z.length - 1].ref.current;
11587
11589
  i.style.bottom = "0px";
11588
11590
  const se = d.clientHeight - h.offsetTop - h.offsetHeight, ve = Math.max(
11589
11591
  le,
@@ -11592,7 +11594,7 @@ var by = "SelectItemAlignedPosition", Uu = c.forwardRef((e, t) => {
11592
11594
  ), Ne = oe + ve;
11593
11595
  i.style.height = Ne + "px";
11594
11596
  } else {
11595
- const re = z.length > 0 && v === z[0].ref.current;
11597
+ const re = z.length > 0 && w === z[0].ref.current;
11596
11598
  i.style.top = "0px";
11597
11599
  const ve = Math.max(
11598
11600
  q,
@@ -11610,8 +11612,8 @@ var by = "SelectItemAlignedPosition", Uu = c.forwardRef((e, t) => {
11610
11612
  i,
11611
11613
  d,
11612
11614
  h,
11613
- v,
11614
- b,
11615
+ w,
11616
+ x,
11615
11617
  a.dir,
11616
11618
  r
11617
11619
  ]);
@@ -11622,9 +11624,9 @@ var by = "SelectItemAlignedPosition", Uu = c.forwardRef((e, t) => {
11622
11624
  }, [d]);
11623
11625
  const R = c.useCallback(
11624
11626
  (P) => {
11625
- P && w.current === !0 && (C(), x == null || x(), w.current = !1);
11627
+ P && v.current === !0 && (C(), b == null || b(), v.current = !1);
11626
11628
  },
11627
- [C, x]
11629
+ [C, b]
11628
11630
  );
11629
11631
  return /* @__PURE__ */ l.jsx(
11630
11632
  yy,
@@ -11731,9 +11733,9 @@ var [yy, ga] = Jt(Tt, {}), io = "SelectViewport", Ku = c.forwardRef(
11731
11733
  if (g != null && g.current && p) {
11732
11734
  const m = Math.abs(u.current - f.scrollTop);
11733
11735
  if (m > 0) {
11734
- const w = window.innerHeight - We * 2, h = parseFloat(p.style.minHeight), v = parseFloat(p.style.height), b = Math.max(h, v);
11735
- if (b < w) {
11736
- const x = b + m, C = Math.min(w, x), N = x - C;
11736
+ const v = window.innerHeight - We * 2, h = parseFloat(p.style.minHeight), w = parseFloat(p.style.height), x = Math.max(h, w);
11737
+ if (x < v) {
11738
+ const b = x + m, C = Math.min(v, b), N = b - C;
11737
11739
  p.style.height = C + "px", p.style.bottom === "0px" && (f.scrollTop = N > 0 ? N : 0, p.style.justifyContent = "flex-end");
11738
11740
  }
11739
11741
  }
@@ -11768,13 +11770,13 @@ var Jn = "SelectItem", [Ey, Ju] = Jt(Jn), ed = c.forwardRef(
11768
11770
  disabled: o = !1,
11769
11771
  textValue: a,
11770
11772
  ...s
11771
- } = e, i = Et(Jn, n), u = St(Jn, n), d = i.value === r, [f, p] = c.useState(a ?? ""), [g, m] = c.useState(!1), w = Q(
11773
+ } = e, i = Et(Jn, n), u = St(Jn, n), d = i.value === r, [f, p] = c.useState(a ?? ""), [g, m] = c.useState(!1), v = Q(
11772
11774
  t,
11773
- (x) => {
11775
+ (b) => {
11774
11776
  var C;
11775
- return (C = u.itemRefCallback) == null ? void 0 : C.call(u, x, r, o);
11777
+ return (C = u.itemRefCallback) == null ? void 0 : C.call(u, b, r, o);
11776
11778
  }
11777
- ), h = Se(), v = c.useRef("touch"), b = () => {
11779
+ ), h = Se(), w = c.useRef("touch"), x = () => {
11778
11780
  o || (i.onValueChange(r), i.onOpenChange(!1));
11779
11781
  };
11780
11782
  if (r === "")
@@ -11789,8 +11791,8 @@ var Jn = "SelectItem", [Ey, Ju] = Jt(Jn), ed = c.forwardRef(
11789
11791
  disabled: o,
11790
11792
  textId: h,
11791
11793
  isSelected: d,
11792
- onItemTextChange: c.useCallback((x) => {
11793
- p((C) => C || ((x == null ? void 0 : x.textContent) ?? "").trim());
11794
+ onItemTextChange: c.useCallback((b) => {
11795
+ p((C) => C || ((b == null ? void 0 : b.textContent) ?? "").trim());
11794
11796
  }, []),
11795
11797
  children: /* @__PURE__ */ l.jsx(
11796
11798
  xr.ItemSlot,
@@ -11811,29 +11813,29 @@ var Jn = "SelectItem", [Ey, Ju] = Jt(Jn), ed = c.forwardRef(
11811
11813
  "data-disabled": o ? "" : void 0,
11812
11814
  tabIndex: o ? void 0 : -1,
11813
11815
  ...s,
11814
- ref: w,
11816
+ ref: v,
11815
11817
  onFocus: A(s.onFocus, () => m(!0)),
11816
11818
  onBlur: A(s.onBlur, () => m(!1)),
11817
11819
  onClick: A(s.onClick, () => {
11818
- v.current !== "mouse" && b();
11820
+ w.current !== "mouse" && x();
11819
11821
  }),
11820
11822
  onPointerUp: A(s.onPointerUp, () => {
11821
- v.current === "mouse" && b();
11823
+ w.current === "mouse" && x();
11822
11824
  }),
11823
- onPointerDown: A(s.onPointerDown, (x) => {
11824
- v.current = x.pointerType;
11825
+ onPointerDown: A(s.onPointerDown, (b) => {
11826
+ w.current = b.pointerType;
11825
11827
  }),
11826
- onPointerMove: A(s.onPointerMove, (x) => {
11828
+ onPointerMove: A(s.onPointerMove, (b) => {
11827
11829
  var C;
11828
- v.current = x.pointerType, o ? (C = u.onItemLeave) == null || C.call(u) : v.current === "mouse" && x.currentTarget.focus({ preventScroll: !0 });
11830
+ w.current = b.pointerType, o ? (C = u.onItemLeave) == null || C.call(u) : w.current === "mouse" && b.currentTarget.focus({ preventScroll: !0 });
11829
11831
  }),
11830
- onPointerLeave: A(s.onPointerLeave, (x) => {
11832
+ onPointerLeave: A(s.onPointerLeave, (b) => {
11831
11833
  var C;
11832
- x.currentTarget === document.activeElement && ((C = u.onItemLeave) == null || C.call(u));
11834
+ b.currentTarget === document.activeElement && ((C = u.onItemLeave) == null || C.call(u));
11833
11835
  }),
11834
- onKeyDown: A(s.onKeyDown, (x) => {
11836
+ onKeyDown: A(s.onKeyDown, (b) => {
11835
11837
  var N;
11836
- ((N = u.searchRef) == null ? void 0 : N.current) !== "" && x.key === " " || (fy.includes(x.key) && b(), x.key === " " && x.preventDefault());
11838
+ ((N = u.searchRef) == null ? void 0 : N.current) !== "" && b.key === " " || (fy.includes(b.key) && x(), b.key === " " && b.preventDefault());
11837
11839
  })
11838
11840
  }
11839
11841
  )
@@ -11848,17 +11850,17 @@ var sn = "SelectItemText", td = c.forwardRef(
11848
11850
  (e, t) => {
11849
11851
  const { __scopeSelect: n, className: r, style: o, ...a } = e, s = Et(sn, n), i = St(sn, n), u = Ju(sn, n), d = gy(sn, n), [f, p] = c.useState(null), g = Q(
11850
11852
  t,
11851
- (b) => p(b),
11853
+ (x) => p(x),
11852
11854
  u.onItemTextChange,
11853
- (b) => {
11854
- var x;
11855
- return (x = i.itemTextRefCallback) == null ? void 0 : x.call(i, b, u.value, u.disabled);
11855
+ (x) => {
11856
+ var b;
11857
+ return (b = i.itemTextRefCallback) == null ? void 0 : b.call(i, x, u.value, u.disabled);
11856
11858
  }
11857
- ), m = f == null ? void 0 : f.textContent, w = c.useMemo(
11859
+ ), m = f == null ? void 0 : f.textContent, v = c.useMemo(
11858
11860
  () => /* @__PURE__ */ l.jsx("option", { value: u.value, disabled: u.disabled, children: m }, u.value),
11859
11861
  [u.disabled, u.value, m]
11860
- ), { onNativeOptionAdd: h, onNativeOptionRemove: v } = d;
11861
- return ge(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
11862
+ ), { onNativeOptionAdd: h, onNativeOptionRemove: w } = d;
11863
+ return ge(() => (h(v), () => w(v)), [h, w, v]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
11862
11864
  /* @__PURE__ */ l.jsx(O.span, { id: u.textId, ...a, ref: g }),
11863
11865
  u.isSelected && s.valueNode && !s.valueNodeHasChildren ? tr.createPortal(a.children, s.valueNode) : null
11864
11866
  ] });
@@ -12126,38 +12128,38 @@ var va = "Switch", [Wy, XC] = we(va), [By, zy] = Wy(va), yd = c.forwardRef(
12126
12128
  onCheckedChange: d,
12127
12129
  form: f,
12128
12130
  ...p
12129
- } = e, [g, m] = c.useState(null), w = Q(t, (C) => m(C)), h = c.useRef(!1), v = g ? f || !!g.closest("form") : !0, [b = !1, x] = Ce({
12131
+ } = e, [g, m] = c.useState(null), v = Q(t, (C) => m(C)), h = c.useRef(!1), w = g ? f || !!g.closest("form") : !0, [x = !1, b] = Ce({
12130
12132
  prop: o,
12131
12133
  defaultProp: a,
12132
12134
  onChange: d
12133
12135
  });
12134
- return /* @__PURE__ */ l.jsxs(By, { scope: n, checked: b, disabled: i, children: [
12136
+ return /* @__PURE__ */ l.jsxs(By, { scope: n, checked: x, disabled: i, children: [
12135
12137
  /* @__PURE__ */ l.jsx(
12136
12138
  O.button,
12137
12139
  {
12138
12140
  type: "button",
12139
12141
  role: "switch",
12140
- "aria-checked": b,
12142
+ "aria-checked": x,
12141
12143
  "aria-required": s,
12142
- "data-state": Ed(b),
12144
+ "data-state": Ed(x),
12143
12145
  "data-disabled": i ? "" : void 0,
12144
12146
  disabled: i,
12145
12147
  value: u,
12146
12148
  ...p,
12147
- ref: w,
12149
+ ref: v,
12148
12150
  onClick: A(e.onClick, (C) => {
12149
- x((N) => !N), v && (h.current = C.isPropagationStopped(), h.current || C.stopPropagation());
12151
+ b((N) => !N), w && (h.current = C.isPropagationStopped(), h.current || C.stopPropagation());
12150
12152
  })
12151
12153
  }
12152
12154
  ),
12153
- v && /* @__PURE__ */ l.jsx(
12155
+ w && /* @__PURE__ */ l.jsx(
12154
12156
  Vy,
12155
12157
  {
12156
12158
  control: g,
12157
12159
  bubbles: !h.current,
12158
12160
  name: r,
12159
12161
  value: u,
12160
- checked: b,
12162
+ checked: x,
12161
12163
  required: s,
12162
12164
  disabled: i,
12163
12165
  form: f,
@@ -12583,32 +12585,32 @@ function M0(...e) {
12583
12585
  }
12584
12586
  var T0 = (e) => {
12585
12587
  var t, n, r, o, a, s, i, u, d, f, p;
12586
- let { invert: g, toast: m, unstyled: w, interacting: h, setHeights: v, visibleToasts: b, heights: x, index: C, toasts: N, expanded: E, removeToast: R, defaultRichColors: P, closeButton: D, style: I, cancelButtonStyle: W, actionButtonStyle: z, className: j = "", descriptionClassName: H = "", duration: B, position: ne, gap: L, loadingIcon: V, expandByDefault: F, classNames: S, icons: Y, closeButtonAriaLabel: X = "Close toast", pauseWhenPageIsHidden: K, cn: G } = e, [q, le] = M.useState(!1), [fe, k] = M.useState(!1), [oe, ae] = M.useState(!1), [ee, re] = M.useState(!1), [se, ve] = M.useState(!1), [Ne, Te] = M.useState(0), [nt, Oe] = M.useState(0), rt = M.useRef(m.duration || B || Ns), He = M.useRef(null), ot = M.useRef(null), y = C === 0, $ = C + 1 <= b, _ = m.type, te = m.dismissible !== !1, xe = m.className || "", ue = m.descriptionClassName || "", U = M.useMemo(() => x.findIndex((Z) => Z.toastId === m.id) || 0, [x, m.id]), $e = M.useMemo(() => {
12588
+ let { invert: g, toast: m, unstyled: v, interacting: h, setHeights: w, visibleToasts: x, heights: b, index: C, toasts: N, expanded: E, removeToast: R, defaultRichColors: P, closeButton: D, style: I, cancelButtonStyle: W, actionButtonStyle: z, className: j = "", descriptionClassName: H = "", duration: B, position: ne, gap: L, loadingIcon: V, expandByDefault: F, classNames: S, icons: Y, closeButtonAriaLabel: X = "Close toast", pauseWhenPageIsHidden: K, cn: G } = e, [q, le] = M.useState(!1), [fe, k] = M.useState(!1), [oe, ae] = M.useState(!1), [ee, re] = M.useState(!1), [se, ve] = M.useState(!1), [Ne, Te] = M.useState(0), [nt, Oe] = M.useState(0), rt = M.useRef(m.duration || B || Ns), He = M.useRef(null), ot = M.useRef(null), y = C === 0, $ = C + 1 <= x, _ = m.type, te = m.dismissible !== !1, xe = m.className || "", ue = m.descriptionClassName || "", U = M.useMemo(() => b.findIndex((Z) => Z.toastId === m.id) || 0, [b, m.id]), $e = M.useMemo(() => {
12587
12589
  var Z;
12588
12590
  return (Z = m.closeButton) != null ? Z : D;
12589
12591
  }, [m.closeButton, D]);
12590
12592
  M.useMemo(() => m.duration || B || Ns, [m.duration, B]);
12591
- let Ge = M.useRef(0), pe = M.useRef(0), Ue = M.useRef(0), Ke = M.useRef(null), [Le, It] = ne.split("-"), Ie = M.useMemo(() => x.reduce((Z, ce, me) => me >= U ? Z : Z + ce.height, 0), [x, U]), Ea = h0(), sf = m.invert || g, Rr = _ === "loading";
12593
+ let Ge = M.useRef(0), pe = M.useRef(0), Ue = M.useRef(0), Ke = M.useRef(null), [Le, It] = ne.split("-"), Ie = M.useMemo(() => b.reduce((Z, ce, me) => me >= U ? Z : Z + ce.height, 0), [b, U]), Ea = h0(), sf = m.invert || g, Rr = _ === "loading";
12592
12594
  pe.current = M.useMemo(() => U * L + Ie, [U, Ie]), M.useEffect(() => {
12593
12595
  le(!0);
12594
12596
  }, []), M.useEffect(() => {
12595
12597
  let Z = ot.current;
12596
12598
  if (Z) {
12597
12599
  let ce = Z.getBoundingClientRect().height;
12598
- return Oe(ce), v((me) => [{ toastId: m.id, height: ce, position: m.position }, ...me]), () => v((me) => me.filter((Fe) => Fe.toastId !== m.id));
12600
+ return Oe(ce), w((me) => [{ toastId: m.id, height: ce, position: m.position }, ...me]), () => w((me) => me.filter((Fe) => Fe.toastId !== m.id));
12599
12601
  }
12600
- }, [v, m.id]), M.useLayoutEffect(() => {
12602
+ }, [w, m.id]), M.useLayoutEffect(() => {
12601
12603
  if (!q) return;
12602
12604
  let Z = ot.current, ce = Z.style.height;
12603
12605
  Z.style.height = "auto";
12604
12606
  let me = Z.getBoundingClientRect().height;
12605
- Z.style.height = ce, Oe(me), v((Fe) => Fe.find((qe) => qe.toastId === m.id) ? Fe.map((qe) => qe.toastId === m.id ? { ...qe, height: me } : qe) : [{ toastId: m.id, height: me, position: m.position }, ...Fe]);
12606
- }, [q, m.title, m.description, v, m.id]);
12607
+ Z.style.height = ce, Oe(me), w((Fe) => Fe.find((qe) => qe.toastId === m.id) ? Fe.map((qe) => qe.toastId === m.id ? { ...qe, height: me } : qe) : [{ toastId: m.id, height: me, position: m.position }, ...Fe]);
12608
+ }, [q, m.title, m.description, w, m.id]);
12607
12609
  let dt = M.useCallback(() => {
12608
- k(!0), Te(pe.current), v((Z) => Z.filter((ce) => ce.toastId !== m.id)), setTimeout(() => {
12610
+ k(!0), Te(pe.current), w((Z) => Z.filter((ce) => ce.toastId !== m.id)), setTimeout(() => {
12609
12611
  R(m);
12610
12612
  }, P0);
12611
- }, [m, R, v, pe]);
12613
+ }, [m, R, w, pe]);
12612
12614
  M.useEffect(() => {
12613
12615
  if (m.promise && _ === "loading" || m.duration === 1 / 0 || m.type === "loading") return;
12614
12616
  let Z;
@@ -12629,7 +12631,7 @@ var T0 = (e) => {
12629
12631
  var Z, ce, me;
12630
12632
  return Y != null && Y.loading ? M.createElement("div", { className: G(S == null ? void 0 : S.loader, (Z = m == null ? void 0 : m.classNames) == null ? void 0 : Z.loader, "sonner-loader"), "data-visible": _ === "loading" }, Y.loading) : V ? M.createElement("div", { className: G(S == null ? void 0 : S.loader, (ce = m == null ? void 0 : m.classNames) == null ? void 0 : ce.loader, "sonner-loader"), "data-visible": _ === "loading" }, V) : M.createElement(l0, { className: G(S == null ? void 0 : S.loader, (me = m == null ? void 0 : m.classNames) == null ? void 0 : me.loader), visible: _ === "loading" });
12631
12633
  }
12632
- return M.createElement("li", { tabIndex: 0, ref: ot, className: G(j, xe, S == null ? void 0 : S.toast, (t = m == null ? void 0 : m.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[_], (n = m == null ? void 0 : m.classNames) == null ? void 0 : n[_]), "data-sonner-toast": "", "data-rich-colors": (r = m.richColors) != null ? r : P, "data-styled": !(m.jsx || m.unstyled || w), "data-mounted": q, "data-promise": !!m.promise, "data-swiped": se, "data-removed": fe, "data-visible": $, "data-y-position": Le, "data-x-position": It, "data-index": C, "data-front": y, "data-swiping": oe, "data-dismissible": te, "data-type": _, "data-invert": sf, "data-swipe-out": ee, "data-expanded": !!(E || F && q), style: { "--index": C, "--toasts-before": C, "--z-index": N.length - C, "--offset": `${fe ? Ne : pe.current}px`, "--initial-height": F ? "auto" : `${nt}px`, ...I, ...m.style }, onPointerDown: (Z) => {
12634
+ return M.createElement("li", { tabIndex: 0, ref: ot, className: G(j, xe, S == null ? void 0 : S.toast, (t = m == null ? void 0 : m.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[_], (n = m == null ? void 0 : m.classNames) == null ? void 0 : n[_]), "data-sonner-toast": "", "data-rich-colors": (r = m.richColors) != null ? r : P, "data-styled": !(m.jsx || m.unstyled || v), "data-mounted": q, "data-promise": !!m.promise, "data-swiped": se, "data-removed": fe, "data-visible": $, "data-y-position": Le, "data-x-position": It, "data-index": C, "data-front": y, "data-swiping": oe, "data-dismissible": te, "data-type": _, "data-invert": sf, "data-swipe-out": ee, "data-expanded": !!(E || F && q), style: { "--index": C, "--toasts-before": C, "--z-index": N.length - C, "--offset": `${fe ? Ne : pe.current}px`, "--initial-height": F ? "auto" : `${nt}px`, ...I, ...m.style }, onPointerDown: (Z) => {
12633
12635
  Rr || !te || (He.current = /* @__PURE__ */ new Date(), Te(pe.current), Z.target.setPointerCapture(Z.pointerId), Z.target.tagName !== "BUTTON" && (ae(!0), Ke.current = { x: Z.clientX, y: Z.clientY }));
12634
12636
  }, onPointerUp: () => {
12635
12637
  var Z, ce, me, Fe;
@@ -12664,7 +12666,7 @@ function Es() {
12664
12666
  return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
12665
12667
  }
12666
12668
  var A0 = ho(function(e, t) {
12667
- let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: s, className: i, offset: u, theme: d = "light", richColors: f, duration: p, style: g, visibleToasts: m = C0, toastOptions: w, dir: h = Es(), gap: v = S0, loadingIcon: b, icons: x, containerAriaLabel: C = "Notifications", pauseWhenPageIsHidden: N, cn: E = M0 } = e, [R, P] = M.useState([]), D = M.useMemo(() => Array.from(new Set([r].concat(R.filter((K) => K.position).map((K) => K.position)))), [R, r]), [I, W] = M.useState([]), [z, j] = M.useState(!1), [H, B] = M.useState(!1), [ne, L] = M.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), V = M.useRef(null), F = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = M.useRef(null), Y = M.useRef(!1), X = M.useCallback((K) => {
12669
+ let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: s, className: i, offset: u, theme: d = "light", richColors: f, duration: p, style: g, visibleToasts: m = C0, toastOptions: v, dir: h = Es(), gap: w = S0, loadingIcon: x, icons: b, containerAriaLabel: C = "Notifications", pauseWhenPageIsHidden: N, cn: E = M0 } = e, [R, P] = M.useState([]), D = M.useMemo(() => Array.from(new Set([r].concat(R.filter((K) => K.position).map((K) => K.position)))), [R, r]), [I, W] = M.useState([]), [z, j] = M.useState(!1), [H, B] = M.useState(!1), [ne, L] = M.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), V = M.useRef(null), F = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = M.useRef(null), Y = M.useRef(!1), X = M.useCallback((K) => {
12668
12670
  P((G) => {
12669
12671
  var q;
12670
12672
  return (q = G.find((le) => le.id === K.id)) != null && q.delete || Ae.dismiss(K.id), G.filter(({ id: le }) => le !== K.id);
@@ -12718,7 +12720,7 @@ var A0 = ho(function(e, t) {
12718
12720
  }, [V.current]), M.createElement("section", { "aria-label": `${C} ${F}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false" }, D.map((K, G) => {
12719
12721
  var q;
12720
12722
  let [le, fe] = K.split("-");
12721
- return R.length ? M.createElement("ol", { key: K, dir: h === "auto" ? Es() : h, tabIndex: -1, ref: V, className: i, "data-sonner-toaster": !0, "data-theme": ne, "data-y-position": le, "data-lifted": z && R.length > 1 && !a, "data-x-position": fe, style: { "--front-toast-height": `${((q = I[0]) == null ? void 0 : q.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || N0, "--width": `${E0}px`, "--gap": `${v}px`, ...g }, onBlur: (k) => {
12723
+ return R.length ? M.createElement("ol", { key: K, dir: h === "auto" ? Es() : h, tabIndex: -1, ref: V, className: i, "data-sonner-toaster": !0, "data-theme": ne, "data-y-position": le, "data-lifted": z && R.length > 1 && !a, "data-x-position": fe, style: { "--front-toast-height": `${((q = I[0]) == null ? void 0 : q.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || N0, "--width": `${E0}px`, "--gap": `${w}px`, ...g }, onBlur: (k) => {
12722
12724
  Y.current && !k.currentTarget.contains(k.relatedTarget) && (Y.current = !1, S.current && (S.current.focus({ preventScroll: !0 }), S.current = null));
12723
12725
  }, onFocus: (k) => {
12724
12726
  k.target instanceof HTMLElement && k.target.dataset.dismissible === "false" || Y.current || (Y.current = !0, S.current = k.relatedTarget);
@@ -12728,7 +12730,7 @@ var A0 = ho(function(e, t) {
12728
12730
  k.target instanceof HTMLElement && k.target.dataset.dismissible === "false" || B(!0);
12729
12731
  }, onPointerUp: () => B(!1) }, R.filter((k) => !k.position && G === 0 || k.position === K).map((k, oe) => {
12730
12732
  var ae, ee;
12731
- return M.createElement(T0, { key: k.id, icons: x, index: oe, toast: k, defaultRichColors: f, duration: (ae = w == null ? void 0 : w.duration) != null ? ae : p, className: w == null ? void 0 : w.className, descriptionClassName: w == null ? void 0 : w.descriptionClassName, invert: n, visibleToasts: m, closeButton: (ee = w == null ? void 0 : w.closeButton) != null ? ee : s, interacting: H, position: K, style: w == null ? void 0 : w.style, unstyled: w == null ? void 0 : w.unstyled, classNames: w == null ? void 0 : w.classNames, cancelButtonStyle: w == null ? void 0 : w.cancelButtonStyle, actionButtonStyle: w == null ? void 0 : w.actionButtonStyle, removeToast: X, toasts: R.filter((re) => re.position == k.position), heights: I.filter((re) => re.position == k.position), setHeights: W, expandByDefault: a, gap: v, loadingIcon: b, expanded: z, pauseWhenPageIsHidden: N, cn: E });
12733
+ return M.createElement(T0, { key: k.id, icons: b, index: oe, toast: k, defaultRichColors: f, duration: (ae = v == null ? void 0 : v.duration) != null ? ae : p, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: n, visibleToasts: m, closeButton: (ee = v == null ? void 0 : v.closeButton) != null ? ee : s, interacting: H, position: K, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: X, toasts: R.filter((re) => re.position == k.position), heights: I.filter((re) => re.position == k.position), setHeights: W, expandByDefault: a, gap: w, loadingIcon: x, expanded: z, pauseWhenPageIsHidden: N, cn: E });
12732
12734
  })) : null;
12733
12735
  }));
12734
12736
  });
@@ -13002,21 +13004,21 @@ var Sr = "Tooltip", [B0, Pn] = Nr(Sr), Qd = (e) => {
13002
13004
  onOpenChange: a,
13003
13005
  disableHoverableContent: s,
13004
13006
  delayDuration: i
13005
- } = e, u = Ca(Sr, e.__scopeTooltip), d = Er(t), [f, p] = c.useState(null), g = Se(), m = c.useRef(0), w = s ?? u.disableHoverableContent, h = i ?? u.delayDuration, v = c.useRef(!1), [b = !1, x] = Ce({
13007
+ } = e, u = Ca(Sr, e.__scopeTooltip), d = Er(t), [f, p] = c.useState(null), g = Se(), m = c.useRef(0), v = s ?? u.disableHoverableContent, h = i ?? u.delayDuration, w = c.useRef(!1), [x = !1, b] = Ce({
13006
13008
  prop: r,
13007
13009
  defaultProp: o,
13008
13010
  onChange: (P) => {
13009
13011
  P ? (u.onOpen(), document.dispatchEvent(new CustomEvent(mo))) : u.onClose(), a == null || a(P);
13010
13012
  }
13011
- }), C = c.useMemo(() => b ? v.current ? "delayed-open" : "instant-open" : "closed", [b]), N = c.useCallback(() => {
13012
- window.clearTimeout(m.current), m.current = 0, v.current = !1, x(!0);
13013
- }, [x]), E = c.useCallback(() => {
13014
- window.clearTimeout(m.current), m.current = 0, x(!1);
13015
- }, [x]), R = c.useCallback(() => {
13013
+ }), C = c.useMemo(() => x ? w.current ? "delayed-open" : "instant-open" : "closed", [x]), N = c.useCallback(() => {
13014
+ window.clearTimeout(m.current), m.current = 0, w.current = !1, b(!0);
13015
+ }, [b]), E = c.useCallback(() => {
13016
+ window.clearTimeout(m.current), m.current = 0, b(!1);
13017
+ }, [b]), R = c.useCallback(() => {
13016
13018
  window.clearTimeout(m.current), m.current = window.setTimeout(() => {
13017
- v.current = !0, x(!0), m.current = 0;
13019
+ w.current = !0, b(!0), m.current = 0;
13018
13020
  }, h);
13019
- }, [h, x]);
13021
+ }, [h, b]);
13020
13022
  return c.useEffect(() => () => {
13021
13023
  m.current && (window.clearTimeout(m.current), m.current = 0);
13022
13024
  }, []), /* @__PURE__ */ l.jsx(wn, { ...d, children: /* @__PURE__ */ l.jsx(
@@ -13024,7 +13026,7 @@ var Sr = "Tooltip", [B0, Pn] = Nr(Sr), Qd = (e) => {
13024
13026
  {
13025
13027
  scope: t,
13026
13028
  contentId: g,
13027
- open: b,
13029
+ open: x,
13028
13030
  stateAttribute: C,
13029
13031
  trigger: f,
13030
13032
  onTriggerChange: p,
@@ -13032,11 +13034,11 @@ var Sr = "Tooltip", [B0, Pn] = Nr(Sr), Qd = (e) => {
13032
13034
  u.isOpenDelayed ? R() : N();
13033
13035
  }, [u.isOpenDelayed, R, N]),
13034
13036
  onTriggerLeave: c.useCallback(() => {
13035
- w ? E() : (window.clearTimeout(m.current), m.current = 0);
13036
- }, [E, w]),
13037
+ v ? E() : (window.clearTimeout(m.current), m.current = 0);
13038
+ }, [E, v]),
13037
13039
  onOpen: N,
13038
13040
  onClose: E,
13039
- disableHoverableContent: w,
13041
+ disableHoverableContent: v,
13040
13042
  children: n
13041
13043
  }
13042
13044
  ) });
@@ -13087,26 +13089,26 @@ var Gt = "TooltipContent", tf = c.forwardRef(
13087
13089
  const n = Pn(Gt, e.__scopeTooltip), r = Ca(Gt, e.__scopeTooltip), o = c.useRef(null), a = Q(t, o), [s, i] = c.useState(null), { trigger: u, onClose: d } = n, f = o.current, { onPointerInTransitChange: p } = r, g = c.useCallback(() => {
13088
13090
  i(null), p(!1);
13089
13091
  }, [p]), m = c.useCallback(
13090
- (w, h) => {
13091
- const v = w.currentTarget, b = { x: w.clientX, y: w.clientY }, x = K0(b, v.getBoundingClientRect()), C = q0(b, x), N = X0(h.getBoundingClientRect()), E = Q0([...C, ...N]);
13092
+ (v, h) => {
13093
+ const w = v.currentTarget, x = { x: v.clientX, y: v.clientY }, b = K0(x, w.getBoundingClientRect()), C = q0(x, b), N = X0(h.getBoundingClientRect()), E = Q0([...C, ...N]);
13092
13094
  i(E), p(!0);
13093
13095
  },
13094
13096
  [p]
13095
13097
  );
13096
13098
  return c.useEffect(() => () => g(), [g]), c.useEffect(() => {
13097
13099
  if (u && f) {
13098
- const w = (v) => m(v, f), h = (v) => m(v, u);
13099
- return u.addEventListener("pointerleave", w), f.addEventListener("pointerleave", h), () => {
13100
- u.removeEventListener("pointerleave", w), f.removeEventListener("pointerleave", h);
13100
+ const v = (w) => m(w, f), h = (w) => m(w, u);
13101
+ return u.addEventListener("pointerleave", v), f.addEventListener("pointerleave", h), () => {
13102
+ u.removeEventListener("pointerleave", v), f.removeEventListener("pointerleave", h);
13101
13103
  };
13102
13104
  }
13103
13105
  }, [u, f, m, g]), c.useEffect(() => {
13104
13106
  if (s) {
13105
- const w = (h) => {
13106
- const v = h.target, b = { x: h.clientX, y: h.clientY }, x = (u == null ? void 0 : u.contains(v)) || (f == null ? void 0 : f.contains(v)), C = !Z0(b, s);
13107
- x ? g() : C && (g(), d());
13107
+ const v = (h) => {
13108
+ const w = h.target, x = { x: h.clientX, y: h.clientY }, b = (u == null ? void 0 : u.contains(w)) || (f == null ? void 0 : f.contains(w)), C = !Z0(x, s);
13109
+ b ? g() : C && (g(), d());
13108
13110
  };
13109
- return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
13111
+ return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
13110
13112
  }
13111
13113
  }, [u, f, s, d, g]), /* @__PURE__ */ l.jsx(nf, { ...e, ref: a });
13112
13114
  }), [H0, G0] = Nr(Sr, { isInside: !1 }), nf = c.forwardRef(
@@ -13490,47 +13492,47 @@ const af = c.createContext(void 0), Rs = {
13490
13492
  custom: { icon: cs, className: "text-gray-500" }
13491
13493
  };
13492
13494
  function gN({ children: e }) {
13493
- var m, w, h;
13495
+ var h, w, x;
13494
13496
  const [t, n] = c.useState({
13495
13497
  isOpen: !1,
13496
13498
  options: null
13497
- }), r = c.useCallback((v) => {
13498
- n({ isOpen: !0, options: v });
13499
+ }), r = c.useCallback((b) => {
13500
+ n({ isOpen: !0, options: b });
13499
13501
  }, []), o = c.useCallback(() => {
13500
- n((v) => ({ ...v, isOpen: !1 }));
13502
+ n((b) => ({ ...b, isOpen: !1 }));
13501
13503
  }, []), a = c.useCallback(
13502
- (v) => {
13503
- r({ ...v, type: "info" });
13504
+ (b) => {
13505
+ r({ ...b, type: "info" });
13504
13506
  },
13505
13507
  [r]
13506
13508
  ), s = c.useCallback(
13507
- (v) => {
13508
- r({ ...v, type: "success" });
13509
+ (b) => {
13510
+ r({ ...b, type: "success" });
13509
13511
  },
13510
13512
  [r]
13511
13513
  ), i = c.useCallback(
13512
- (v) => {
13513
- r({ ...v, type: "error" });
13514
+ (b) => {
13515
+ r({ ...b, type: "error" });
13514
13516
  },
13515
13517
  [r]
13516
13518
  ), u = c.useCallback(
13517
- (v) => {
13518
- r({ ...v, type: "warning" });
13519
+ (b) => {
13520
+ r({ ...b, type: "warning" });
13519
13521
  },
13520
13522
  [r]
13521
13523
  ), d = c.useCallback(
13522
- (v) => {
13523
- r({ ...v, type: "custom" });
13524
+ (b) => {
13525
+ r({ ...b, type: "custom" });
13524
13526
  },
13525
13527
  [r]
13526
13528
  ), f = c.useCallback(
13527
- (v) => {
13528
- r({ ...v, type: "confirm" });
13529
+ (b) => {
13530
+ r({ ...b, type: "confirm" });
13529
13531
  },
13530
13532
  [r]
13531
- ), p = (v, b) => {
13532
- let x = Ps[v].icon;
13533
- return b && (x = b), /* @__PURE__ */ l.jsx(x, { className: T("h-24 w-24", Ps[v].className) });
13533
+ ), p = (b, C) => {
13534
+ let N = Ps[b].icon;
13535
+ return C && (N = C), /* @__PURE__ */ l.jsx(N, { className: T("h-24 w-24", Ps[b].className) });
13534
13536
  }, g = c.useMemo(
13535
13537
  () => ({
13536
13538
  open: r,
@@ -13543,14 +13545,14 @@ function gN({ children: e }) {
13543
13545
  confirm: f
13544
13546
  }),
13545
13547
  [r, o, a, s, i, u, d, f]
13546
- );
13548
+ ), [m, v] = c.useState(!1);
13547
13549
  return /* @__PURE__ */ l.jsxs(af.Provider, { value: g, children: [
13548
13550
  e,
13549
- /* @__PURE__ */ l.jsx(jc, { open: t.isOpen, onOpenChange: (v) => !v && o(), modal: !0, children: /* @__PURE__ */ l.jsxs(
13551
+ /* @__PURE__ */ l.jsx(jc, { open: t.isOpen, onOpenChange: (b) => !b && o(), modal: !0, children: /* @__PURE__ */ l.jsxs(
13550
13552
  Go,
13551
13553
  {
13552
13554
  className: T(
13553
- (m = t.options) != null && m.size ? Rs[t.options.size] : Rs.sm,
13555
+ (h = t.options) != null && h.size ? Rs[t.options.size] : Rs.sm,
13554
13556
  (w = t.options) == null ? void 0 : w.className
13555
13557
  ),
13556
13558
  children: [
@@ -13559,18 +13561,24 @@ function gN({ children: e }) {
13559
13561
  t.options.title && /* @__PURE__ */ l.jsx(Ko, { className: "text-center", children: t.options.title }),
13560
13562
  /* @__PURE__ */ l.jsx(qo, { className: "text-center", children: t.options.message })
13561
13563
  ] }),
13562
- ((h = t.options) == null ? void 0 : h.type) === "confirm" && /* @__PURE__ */ l.jsxs("div", { className: "flex justify-center gap-4 mt-4", children: [
13564
+ ((x = t.options) == null ? void 0 : x.type) === "confirm" && /* @__PURE__ */ l.jsxs("div", { className: "flex justify-center gap-4 mt-4", children: [
13563
13565
  /* @__PURE__ */ l.jsx(
13564
13566
  it,
13565
13567
  {
13568
+ isLoading: m,
13566
13569
  onClick: () => {
13567
- var v, b;
13568
- (b = (v = t.options) == null ? void 0 : v.onConfirm) == null || b.call(v), o();
13570
+ if (!t.options || !t.options.onConfirm) {
13571
+ o();
13572
+ return;
13573
+ }
13574
+ v(!0), Promise.resolve(t.options.onConfirm).then(() => {
13575
+ o(), v(!1);
13576
+ });
13569
13577
  },
13570
13578
  children: t.options.confirmLabel || "Confirm"
13571
13579
  }
13572
13580
  ),
13573
- t.options.displayCancel && /* @__PURE__ */ l.jsx(it, { variant: "outline", onClick: o, children: t.options.cancelLabel || "Cancel" })
13581
+ t.options.displayCancel && /* @__PURE__ */ l.jsx(it, { variant: "outline", onClick: o, disabled: m, children: t.options.cancelLabel || "Cancel" })
13574
13582
  ] })
13575
13583
  ]
13576
13584
  }