ui-mathilde-web 0.1.27 → 0.1.28

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.
@@ -6,11 +6,11 @@ import * as W from "react";
6
6
  import ee, { forwardRef as Oe, useState as me, useRef as Gt, useEffect as gt, createContext as ut, useContext as rt, createElement as hr, Fragment as Vh, useMemo as no, Children as Zn, cloneElement as ms, isValidElement as Cy, PureComponent as Ey, useImperativeHandle as qh, useLayoutEffect as nc, useCallback as xn, useId as Fn } from "react";
7
7
  import * as Ty from "react-dom";
8
8
  import { createPortal as Py } from "react-dom";
9
- const Ry = "button-module__mth-btn-default__cda3k", Ny = "button-module__mth-btn-border__-pdSm", Iy = "button-module__mth-btn__LkrNk", Ay = "button-module__mth-btn-full__7QycJ", Ri = {
10
- "mth-btn-default": "button-module__mth-btn-default__cda3k",
11
- mthBtnDefault: Ry,
12
- "mth-btn-border": "button-module__mth-btn-border__-pdSm",
13
- mthBtnBorder: Ny,
9
+ const Ry = "button-module__mth-btn-gray__l3gnX", Ny = "button-module__mth-btn-blue__yw5Zv", Iy = "button-module__mth-btn__LkrNk", Ay = "button-module__mth-btn-full__7QycJ", Ri = {
10
+ "mth-btn-gray": "button-module__mth-btn-gray__l3gnX",
11
+ mthBtnGray: Ry,
12
+ "mth-btn-blue": "button-module__mth-btn-blue__yw5Zv",
13
+ mthBtnBlue: Ny,
14
14
  "mth-btn": "button-module__mth-btn__LkrNk",
15
15
  mthBtn: Iy,
16
16
  "mth-btn-full": "button-module__mth-btn-full__7QycJ",
@@ -25,20 +25,23 @@ const Ry = "button-module__mth-btn-default__cda3k", Ny = "button-module__mth-btn
25
25
  leftIcon: s,
26
26
  rightIcon: o,
27
27
  iconSize: l = 20
28
- }) => /* @__PURE__ */ b("div", { className: `${r ? Ri["mth-btn-full"] : ""}`, children: /* @__PURE__ */ K(
29
- "button",
30
- {
31
- type: i,
32
- className: `${Ri["mth-btn"]} ${Ri[`mth-btn-${e}`]} ${r ? Ri["mth-btn-full"] : ""} flex items-center justify-center gap-2`,
33
- onClick: n,
34
- disabled: a,
35
- children: [
36
- s && /* @__PURE__ */ b(s, { size: l }),
37
- t,
38
- o && /* @__PURE__ */ b(o, { size: l })
39
- ]
40
- }
41
- ) }), Fy = "checkbox-module__checkmark__pC-qY", ps = {
28
+ }) => {
29
+ const c = (d) => d ? typeof d == "string" ? /* @__PURE__ */ b("img", { src: d, alt: "icon", width: l, height: l }) : /* @__PURE__ */ b(d, { size: l }) : null;
30
+ return /* @__PURE__ */ b("div", { className: `${r ? Ri["mth-btn-full"] : ""}`, children: /* @__PURE__ */ K(
31
+ "button",
32
+ {
33
+ type: i,
34
+ className: `${Ri["mth-btn"]} ${Ri[`mth-btn-${e}`]} ${r ? Ri["mth-btn-full"] : ""} flex items-center justify-center gap-2`,
35
+ onClick: n,
36
+ disabled: a,
37
+ children: [
38
+ c(s),
39
+ t,
40
+ c(o)
41
+ ]
42
+ }
43
+ ) });
44
+ }, Fy = "checkbox-module__checkmark__pC-qY", ps = {
42
45
  "checkbox-container": "checkbox-module__checkbox-container__jLidj",
43
46
  checkmark: Fy
44
47
  }, vI = ({
@@ -3949,15 +3952,15 @@ class so extends mi {
3949
3952
  s.push(k), o.push(y), c = Math.max(k, c), d = Math.max(y, d);
3950
3953
  }
3951
3954
  _w(i, r);
3952
- const _ = s.indexOf(c), E = o.indexOf(d), M = (T) => ({
3955
+ const _ = s.indexOf(c), E = o.indexOf(d), D = (T) => ({
3953
3956
  width: s[T] || 0,
3954
3957
  height: o[T] || 0
3955
3958
  });
3956
3959
  return {
3957
- first: M(0),
3958
- last: M(r - 1),
3959
- widest: M(_),
3960
- highest: M(E),
3960
+ first: D(0),
3961
+ last: D(r - 1),
3962
+ widest: D(_),
3963
+ highest: D(E),
3961
3964
  widths: s,
3962
3965
  heights: o
3963
3966
  };
@@ -4010,15 +4013,15 @@ class so extends mi {
4010
4013
  const r = this.axis, n = this.chart, a = this.options, { grid: i, position: s, border: o } = a, l = i.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = Da(i), h = [], g = o.setContext(this.getContext()), m = g.display ? g.width : 0, p = m / 2, w = function($) {
4011
4014
  return cn(n, $, m);
4012
4015
  };
4013
- let x, k, y, v, _, E, M, T, C, z, S, F;
4016
+ let x, k, y, v, _, E, D, T, C, z, F, M;
4014
4017
  if (s === "top")
4015
- x = w(this.bottom), E = this.bottom - f, T = x - p, z = w(e.top) + p, F = e.bottom;
4018
+ x = w(this.bottom), E = this.bottom - f, T = x - p, z = w(e.top) + p, M = e.bottom;
4016
4019
  else if (s === "bottom")
4017
- x = w(this.top), z = e.top, F = w(e.bottom) - p, E = x + p, T = this.top + f;
4020
+ x = w(this.top), z = e.top, M = w(e.bottom) - p, E = x + p, T = this.top + f;
4018
4021
  else if (s === "left")
4019
- x = w(this.right), _ = this.right - f, M = x - p, C = w(e.left) + p, S = e.right;
4022
+ x = w(this.right), _ = this.right - f, D = x - p, C = w(e.left) + p, F = e.right;
4020
4023
  else if (s === "right")
4021
- x = w(this.left), C = e.left, S = w(e.right) - p, _ = x + p, M = this.left + f;
4024
+ x = w(this.left), C = e.left, F = w(e.right) - p, _ = x + p, D = this.left + f;
4022
4025
  else if (r === "x") {
4023
4026
  if (s === "center")
4024
4027
  x = w((e.top + e.bottom) / 2 + 0.5);
@@ -4026,7 +4029,7 @@ class so extends mi {
4026
4029
  const $ = Object.keys(s)[0], B = s[$];
4027
4030
  x = w(this.chart.scales[$].getPixelForValue(B));
4028
4031
  }
4029
- z = e.top, F = e.bottom, E = x + p, T = E + f;
4032
+ z = e.top, M = e.bottom, E = x + p, T = E + f;
4030
4033
  } else if (r === "y") {
4031
4034
  if (s === "center")
4032
4035
  x = w((e.left + e.right) / 2);
@@ -4034,26 +4037,26 @@ class so extends mi {
4034
4037
  const $ = Object.keys(s)[0], B = s[$];
4035
4038
  x = w(this.chart.scales[$].getPixelForValue(B));
4036
4039
  }
4037
- _ = x - p, M = _ - f, C = e.left, S = e.right;
4040
+ _ = x - p, D = _ - f, C = e.left, F = e.right;
4038
4041
  }
4039
- const D = De(a.ticks.maxTicksLimit, u), I = Math.max(1, Math.ceil(u / D));
4040
- for (k = 0; k < u; k += I) {
4041
- const $ = this.getContext(k), B = i.setContext($), U = o.setContext($), Z = B.lineWidth, P = B.color, j = U.dash || [], A = U.dashOffset, N = B.tickWidth, R = B.tickColor, O = B.tickBorderDash || [], L = B.tickBorderDashOffset;
4042
- y = kw(this, k, l), y !== void 0 && (v = cn(n, y, Z), c ? _ = M = C = S = v : E = T = z = F = v, h.push({
4042
+ const S = De(a.ticks.maxTicksLimit, u), R = Math.max(1, Math.ceil(u / S));
4043
+ for (k = 0; k < u; k += R) {
4044
+ const $ = this.getContext(k), B = i.setContext($), U = o.setContext($), Z = B.lineWidth, P = B.color, j = U.dash || [], A = U.dashOffset, I = B.tickWidth, N = B.tickColor, O = B.tickBorderDash || [], L = B.tickBorderDashOffset;
4045
+ y = kw(this, k, l), y !== void 0 && (v = cn(n, y, Z), c ? _ = D = C = F = v : E = T = z = M = v, h.push({
4043
4046
  tx1: _,
4044
4047
  ty1: E,
4045
- tx2: M,
4048
+ tx2: D,
4046
4049
  ty2: T,
4047
4050
  x1: C,
4048
4051
  y1: z,
4049
- x2: S,
4050
- y2: F,
4052
+ x2: F,
4053
+ y2: M,
4051
4054
  width: Z,
4052
4055
  color: P,
4053
4056
  borderDash: j,
4054
4057
  borderDashOffset: A,
4055
- tickWidth: N,
4056
- tickColor: R,
4058
+ tickWidth: I,
4059
+ tickColor: N,
4057
4060
  tickBorderDash: O,
4058
4061
  tickBorderDashOffset: L
4059
4062
  }));
@@ -4062,85 +4065,85 @@ class so extends mi {
4062
4065
  }
4063
4066
  _computeLabelItems(e) {
4064
4067
  const r = this.axis, n = this.options, { position: a, ticks: i } = n, s = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: d, mirror: u } = i, f = Da(n.grid), h = f + d, g = u ? -d : h, m = -kn(this.labelRotation), p = [];
4065
- let w, x, k, y, v, _, E, M, T, C, z, S, F = "middle";
4068
+ let w, x, k, y, v, _, E, D, T, C, z, F, M = "middle";
4066
4069
  if (a === "top")
4067
4070
  _ = this.bottom - g, E = this._getXAxisLabelAlignment();
4068
4071
  else if (a === "bottom")
4069
4072
  _ = this.top + g, E = this._getXAxisLabelAlignment();
4070
4073
  else if (a === "left") {
4071
- const I = this._getYAxisLabelAlignment(f);
4072
- E = I.textAlign, v = I.x;
4074
+ const R = this._getYAxisLabelAlignment(f);
4075
+ E = R.textAlign, v = R.x;
4073
4076
  } else if (a === "right") {
4074
- const I = this._getYAxisLabelAlignment(f);
4075
- E = I.textAlign, v = I.x;
4077
+ const R = this._getYAxisLabelAlignment(f);
4078
+ E = R.textAlign, v = R.x;
4076
4079
  } else if (r === "x") {
4077
4080
  if (a === "center")
4078
4081
  _ = (e.top + e.bottom) / 2 + h;
4079
4082
  else if (be(a)) {
4080
- const I = Object.keys(a)[0], $ = a[I];
4081
- _ = this.chart.scales[I].getPixelForValue($) + h;
4083
+ const R = Object.keys(a)[0], $ = a[R];
4084
+ _ = this.chart.scales[R].getPixelForValue($) + h;
4082
4085
  }
4083
4086
  E = this._getXAxisLabelAlignment();
4084
4087
  } else if (r === "y") {
4085
4088
  if (a === "center")
4086
4089
  v = (e.left + e.right) / 2 - h;
4087
4090
  else if (be(a)) {
4088
- const I = Object.keys(a)[0], $ = a[I];
4089
- v = this.chart.scales[I].getPixelForValue($);
4091
+ const R = Object.keys(a)[0], $ = a[R];
4092
+ v = this.chart.scales[R].getPixelForValue($);
4090
4093
  }
4091
4094
  E = this._getYAxisLabelAlignment(f).textAlign;
4092
4095
  }
4093
- r === "y" && (l === "start" ? F = "top" : l === "end" && (F = "bottom"));
4094
- const D = this._getLabelSizes();
4096
+ r === "y" && (l === "start" ? M = "top" : l === "end" && (M = "bottom"));
4097
+ const S = this._getLabelSizes();
4095
4098
  for (w = 0, x = o.length; w < x; ++w) {
4096
4099
  k = o[w], y = k.label;
4097
- const I = i.setContext(this.getContext(w));
4098
- M = this.getPixelForTick(w) + i.labelOffset, T = this._resolveTickFontOptions(w), C = T.lineHeight, z = lt(y) ? y.length : 1;
4099
- const $ = z / 2, B = I.color, U = I.textStrokeColor, Z = I.textStrokeWidth;
4100
+ const R = i.setContext(this.getContext(w));
4101
+ D = this.getPixelForTick(w) + i.labelOffset, T = this._resolveTickFontOptions(w), C = T.lineHeight, z = lt(y) ? y.length : 1;
4102
+ const $ = z / 2, B = R.color, U = R.textStrokeColor, Z = R.textStrokeWidth;
4100
4103
  let P = E;
4101
- s ? (v = M, E === "inner" && (w === x - 1 ? P = this.options.reverse ? "left" : "right" : w === 0 ? P = this.options.reverse ? "right" : "left" : P = "center"), a === "top" ? c === "near" || m !== 0 ? S = -z * C + C / 2 : c === "center" ? S = -D.highest.height / 2 - $ * C + C : S = -D.highest.height + C / 2 : c === "near" || m !== 0 ? S = C / 2 : c === "center" ? S = D.highest.height / 2 - $ * C : S = D.highest.height - z * C, u && (S *= -1), m !== 0 && !I.showLabelBackdrop && (v += C / 2 * Math.sin(m))) : (_ = M, S = (1 - z) * C / 2);
4104
+ s ? (v = D, E === "inner" && (w === x - 1 ? P = this.options.reverse ? "left" : "right" : w === 0 ? P = this.options.reverse ? "right" : "left" : P = "center"), a === "top" ? c === "near" || m !== 0 ? F = -z * C + C / 2 : c === "center" ? F = -S.highest.height / 2 - $ * C + C : F = -S.highest.height + C / 2 : c === "near" || m !== 0 ? F = C / 2 : c === "center" ? F = S.highest.height / 2 - $ * C : F = S.highest.height - z * C, u && (F *= -1), m !== 0 && !R.showLabelBackdrop && (v += C / 2 * Math.sin(m))) : (_ = D, F = (1 - z) * C / 2);
4102
4105
  let j;
4103
- if (I.showLabelBackdrop) {
4104
- const A = Kt(I.backdropPadding), N = D.heights[w], R = D.widths[w];
4105
- let O = S - A.top, L = 0 - A.left;
4106
- switch (F) {
4106
+ if (R.showLabelBackdrop) {
4107
+ const A = Kt(R.backdropPadding), I = S.heights[w], N = S.widths[w];
4108
+ let O = F - A.top, L = 0 - A.left;
4109
+ switch (M) {
4107
4110
  case "middle":
4108
- O -= N / 2;
4111
+ O -= I / 2;
4109
4112
  break;
4110
4113
  case "bottom":
4111
- O -= N;
4114
+ O -= I;
4112
4115
  break;
4113
4116
  }
4114
4117
  switch (E) {
4115
4118
  case "center":
4116
- L -= R / 2;
4119
+ L -= N / 2;
4117
4120
  break;
4118
4121
  case "right":
4119
- L -= R;
4122
+ L -= N;
4120
4123
  break;
4121
4124
  case "inner":
4122
- w === x - 1 ? L -= R : w > 0 && (L -= R / 2);
4125
+ w === x - 1 ? L -= N : w > 0 && (L -= N / 2);
4123
4126
  break;
4124
4127
  }
4125
4128
  j = {
4126
4129
  left: L,
4127
4130
  top: O,
4128
- width: R + A.width,
4129
- height: N + A.height,
4130
- color: I.backdropColor
4131
+ width: N + A.width,
4132
+ height: I + A.height,
4133
+ color: R.backdropColor
4131
4134
  };
4132
4135
  }
4133
4136
  p.push({
4134
4137
  label: y,
4135
4138
  font: T,
4136
- textOffset: S,
4139
+ textOffset: F,
4137
4140
  options: {
4138
4141
  rotation: m,
4139
4142
  color: B,
4140
4143
  strokeColor: U,
4141
4144
  strokeWidth: Z,
4142
4145
  textAlign: P,
4143
- textBaseline: F,
4146
+ textBaseline: M,
4144
4147
  translation: [
4145
4148
  v,
4146
4149
  _
@@ -5350,25 +5353,25 @@ function Cs(t, e, r, n, a, i) {
5350
5353
  let h = 0;
5351
5354
  const g = a - l;
5352
5355
  if (n) {
5353
- const I = d > 0 ? d - n : 0, $ = u > 0 ? u - n : 0, B = (I + $) / 2, U = B !== 0 ? g * B / (B + n) : g;
5356
+ const R = d > 0 ? d - n : 0, $ = u > 0 ? u - n : 0, B = (R + $) / 2, U = B !== 0 ? g * B / (B + n) : g;
5354
5357
  h = (g - U) / 2;
5355
5358
  }
5356
- const m = Math.max(1e-3, g * u - r / at) / u, p = (g - m) / 2, w = l + p + h, x = a - p - h, { outerStart: k, outerEnd: y, innerStart: v, innerEnd: _ } = e1(e, f, u, x - w), E = u - k, M = u - y, T = w + k / E, C = x - y / M, z = f + v, S = f + _, F = w + v / z, D = x - _ / S;
5359
+ const m = Math.max(1e-3, g * u - r / at) / u, p = (g - m) / 2, w = l + p + h, x = a - p - h, { outerStart: k, outerEnd: y, innerStart: v, innerEnd: _ } = e1(e, f, u, x - w), E = u - k, D = u - y, T = w + k / E, C = x - y / D, z = f + v, F = f + _, M = w + v / z, S = x - _ / F;
5357
5360
  if (t.beginPath(), i) {
5358
- const I = (T + C) / 2;
5359
- if (t.arc(s, o, u, T, I), t.arc(s, o, u, I, C), y > 0) {
5360
- const Z = Hn(M, C, s, o);
5361
+ const R = (T + C) / 2;
5362
+ if (t.arc(s, o, u, T, R), t.arc(s, o, u, R, C), y > 0) {
5363
+ const Z = Hn(D, C, s, o);
5361
5364
  t.arc(Z.x, Z.y, y, C, x + tt);
5362
5365
  }
5363
- const $ = Hn(S, x, s, o);
5366
+ const $ = Hn(F, x, s, o);
5364
5367
  if (t.lineTo($.x, $.y), _ > 0) {
5365
- const Z = Hn(S, D, s, o);
5366
- t.arc(Z.x, Z.y, _, x + tt, D + Math.PI);
5368
+ const Z = Hn(F, S, s, o);
5369
+ t.arc(Z.x, Z.y, _, x + tt, S + Math.PI);
5367
5370
  }
5368
5371
  const B = (x - _ / f + (w + v / f)) / 2;
5369
5372
  if (t.arc(s, o, f, x - _ / f, B, !0), t.arc(s, o, f, B, w + v / f, !0), v > 0) {
5370
- const Z = Hn(z, F, s, o);
5371
- t.arc(Z.x, Z.y, v, F + Math.PI, w - tt);
5373
+ const Z = Hn(z, M, s, o);
5374
+ t.arc(Z.x, Z.y, v, M + Math.PI, w - tt);
5372
5375
  }
5373
5376
  const U = Hn(E, w, s, o);
5374
5377
  if (t.lineTo(U.x, U.y), k > 0) {
@@ -5377,8 +5380,8 @@ function Cs(t, e, r, n, a, i) {
5377
5380
  }
5378
5381
  } else {
5379
5382
  t.moveTo(s, o);
5380
- const I = Math.cos(T) * u + s, $ = Math.sin(T) * u + o;
5381
- t.lineTo(I, $);
5383
+ const R = Math.cos(T) * u + s, $ = Math.sin(T) * u + o;
5384
+ t.lineTo(R, $);
5382
5385
  const B = Math.cos(C) * u + s, U = Math.sin(C) * u + o;
5383
5386
  t.lineTo(B, U);
5384
5387
  }
@@ -5583,34 +5586,34 @@ class Nu extends mi {
5583
5586
  const { options: e, columnSizes: r, lineWidths: n, ctx: a } = this, { align: i, labels: s } = e, o = Ve.color, l = Jn(e.rtl, this.left, this.width), c = _t(s.font), { padding: d } = s, u = c.size, f = u / 2;
5584
5587
  let h;
5585
5588
  this.drawTitle(), a.textAlign = l.textAlign("left"), a.textBaseline = "middle", a.lineWidth = 0.5, a.font = c.string;
5586
- const { boxWidth: g, boxHeight: m, itemHeight: p } = Ru(s, u), w = function(_, E, M) {
5589
+ const { boxWidth: g, boxHeight: m, itemHeight: p } = Ru(s, u), w = function(_, E, D) {
5587
5590
  if (isNaN(g) || g <= 0 || isNaN(m) || m < 0)
5588
5591
  return;
5589
5592
  a.save();
5590
- const T = De(M.lineWidth, 1);
5591
- if (a.fillStyle = De(M.fillStyle, o), a.lineCap = De(M.lineCap, "butt"), a.lineDashOffset = De(M.lineDashOffset, 0), a.lineJoin = De(M.lineJoin, "miter"), a.lineWidth = T, a.strokeStyle = De(M.strokeStyle, o), a.setLineDash(De(M.lineDash, [])), s.usePointStyle) {
5593
+ const T = De(D.lineWidth, 1);
5594
+ if (a.fillStyle = De(D.fillStyle, o), a.lineCap = De(D.lineCap, "butt"), a.lineDashOffset = De(D.lineDashOffset, 0), a.lineJoin = De(D.lineJoin, "miter"), a.lineWidth = T, a.strokeStyle = De(D.strokeStyle, o), a.setLineDash(De(D.lineDash, [])), s.usePointStyle) {
5592
5595
  const C = {
5593
5596
  radius: m * Math.SQRT2 / 2,
5594
- pointStyle: M.pointStyle,
5595
- rotation: M.rotation,
5597
+ pointStyle: D.pointStyle,
5598
+ rotation: D.rotation,
5596
5599
  borderWidth: T
5597
- }, z = l.xPlus(_, g / 2), S = E + f;
5598
- og(a, C, z, S, s.pointStyleWidth && g);
5600
+ }, z = l.xPlus(_, g / 2), F = E + f;
5601
+ og(a, C, z, F, s.pointStyleWidth && g);
5599
5602
  } else {
5600
- const C = E + Math.max((u - m) / 2, 0), z = l.leftForLtr(_, g), S = qa(M.borderRadius);
5601
- a.beginPath(), Object.values(S).some((F) => F !== 0) ? Cl(a, {
5603
+ const C = E + Math.max((u - m) / 2, 0), z = l.leftForLtr(_, g), F = qa(D.borderRadius);
5604
+ a.beginPath(), Object.values(F).some((M) => M !== 0) ? Cl(a, {
5602
5605
  x: z,
5603
5606
  y: C,
5604
5607
  w: g,
5605
5608
  h: m,
5606
- radius: S
5609
+ radius: F
5607
5610
  }) : a.rect(z, C, g, m), a.fill(), T !== 0 && a.stroke();
5608
5611
  }
5609
5612
  a.restore();
5610
- }, x = function(_, E, M) {
5611
- Ss(a, M.text, _, E + p / 2, c, {
5612
- strikethrough: M.hidden,
5613
- textAlign: l.textAlign(M.textAlign)
5613
+ }, x = function(_, E, D) {
5614
+ Ss(a, D.text, _, E + p / 2, c, {
5615
+ strikethrough: D.hidden,
5616
+ textAlign: l.textAlign(D.textAlign)
5614
5617
  });
5615
5618
  }, k = this.isHorizontal(), y = this._computeTitleHeight();
5616
5619
  k ? h = {
@@ -5625,15 +5628,15 @@ class Nu extends mi {
5625
5628
  const v = p + d;
5626
5629
  this.legendItems.forEach((_, E) => {
5627
5630
  a.strokeStyle = _.fontColor, a.fillStyle = _.fontColor;
5628
- const M = a.measureText(_.text).width, T = l.textAlign(_.textAlign || (_.textAlign = s.textAlign)), C = g + f + M;
5629
- let z = h.x, S = h.y;
5630
- l.setWidth(this.width), k ? E > 0 && z + C + d > this.right && (S = h.y += v, h.line++, z = h.x = It(i, this.left + d, this.right - n[h.line])) : E > 0 && S + v > this.bottom && (z = h.x = z + r[h.line].width + d, h.line++, S = h.y = It(i, this.top + y + d, this.bottom - r[h.line].height));
5631
- const F = l.x(z);
5632
- if (w(F, S, _), z = Hv(T, z + g + f, k ? z + C : this.right, e.rtl), x(l.x(z), S, _), k)
5631
+ const D = a.measureText(_.text).width, T = l.textAlign(_.textAlign || (_.textAlign = s.textAlign)), C = g + f + D;
5632
+ let z = h.x, F = h.y;
5633
+ l.setWidth(this.width), k ? E > 0 && z + C + d > this.right && (F = h.y += v, h.line++, z = h.x = It(i, this.left + d, this.right - n[h.line])) : E > 0 && F + v > this.bottom && (z = h.x = z + r[h.line].width + d, h.line++, F = h.y = It(i, this.top + y + d, this.bottom - r[h.line].height));
5634
+ const M = l.x(z);
5635
+ if (w(M, F, _), z = Hv(T, z + g + f, k ? z + C : this.right, e.rtl), x(l.x(z), F, _), k)
5633
5636
  h.x += C + d;
5634
5637
  else if (typeof _.text != "string") {
5635
- const D = c.lineHeight;
5636
- h.y += Dg(_, D) + d;
5638
+ const S = c.lineHeight;
5639
+ h.y += Dg(_, S) + d;
5637
5640
  } else
5638
5641
  h.y += v;
5639
5642
  }), gg(this.ctx, e.textDirection);
@@ -6127,8 +6130,8 @@ let Wu = (Ol = class extends mi {
6127
6130
  drawBody(e, r, n) {
6128
6131
  const { body: a } = this, { bodySpacing: i, bodyAlign: s, displayColors: o, boxHeight: l, boxWidth: c, boxPadding: d } = n, u = _t(n.bodyFont);
6129
6132
  let f = u.lineHeight, h = 0;
6130
- const g = Jn(n.rtl, this.x, this.width), m = function(M) {
6131
- r.fillText(M, g.x(e.x + h), e.y + f / 2), e.y += f + i;
6133
+ const g = Jn(n.rtl, this.x, this.width), m = function(D) {
6134
+ r.fillText(D, g.x(e.x + h), e.y + f / 2), e.y += f + i;
6132
6135
  }, p = g.textAlign(s);
6133
6136
  let w, x, k, y, v, _, E;
6134
6137
  for (r.textAlign = s, r.textBaseline = "middle", r.font = u.string, e.x = Yi(this, p, n), r.fillStyle = n.bodyColor, Se(this.beforeBody, m), h = o && p !== "right" ? s === "center" ? c / 2 + d : c + 2 + d : 0, y = 0, _ = a.length; y < _; ++y) {
@@ -7482,12 +7485,12 @@ If multiple caches share the same key they might "fight" for each other's style
7482
7485
  })], f = Zu(c.concat(a, u)), h = function(v) {
7483
7486
  return Dn(Xu(v), f);
7484
7487
  };
7485
- l = function(v, _, E, M) {
7488
+ l = function(v, _, E, D) {
7486
7489
  d = E, process.env.NODE_ENV !== "production" && _.map !== void 0 && (d = {
7487
7490
  insert: function(C) {
7488
7491
  E.insert(C + _.map);
7489
7492
  }
7490
- }), h(v ? v + "{" + _.styles + "}" : _.styles), M && (k.inserted[_.name] = !0);
7493
+ }), h(v ? v + "{" + _.styles + "}" : _.styles), D && (k.inserted[_.name] = !0);
7491
7494
  };
7492
7495
  } else {
7493
7496
  var g = [Qu], m = Zu(c.concat(a, g)), p = function(v) {
@@ -7496,13 +7499,13 @@ If multiple caches share the same key they might "fight" for each other's style
7496
7499
  var E = _.name;
7497
7500
  return w[E] === void 0 && (w[E] = p(v ? v + "{" + _.styles + "}" : _.styles)), w[E];
7498
7501
  };
7499
- l = function(v, _, E, M) {
7502
+ l = function(v, _, E, D) {
7500
7503
  var T = _.name, C = x(v, _);
7501
7504
  if (k.compat === void 0)
7502
- return M && (k.inserted[T] = !0), // using === development instead of !== production
7505
+ return D && (k.inserted[T] = !0), // using === development instead of !== production
7503
7506
  // because if people do ssr in tests, the source maps showing up would be annoying
7504
7507
  process.env.NODE_ENV === "development" && _.map !== void 0 ? C + _.map : C;
7505
- if (M)
7508
+ if (D)
7506
7509
  k.inserted[T] = C;
7507
7510
  else
7508
7511
  return C;
@@ -8163,10 +8166,10 @@ You may have forgotten to import it.`);
8163
8166
  typeof m.className == "string" ? k = Ck(p.registered, y, m.className) : m.className != null && (k = m.className + " ");
8164
8167
  var E = zk(u.concat(y), p.registered, v);
8165
8168
  k += p.key + "-" + E.name, s !== void 0 && (k += " " + s);
8166
- var M = c && o === void 0 ? gf(x) : l, T = {};
8169
+ var D = c && o === void 0 ? gf(x) : l, T = {};
8167
8170
  for (var C in m)
8168
8171
  c && C === "as" || // $FlowFixMe
8169
- M(C) && (T[C] = m[C]);
8172
+ D(C) && (T[C] = m[C]);
8170
8173
  return T.className = k, T.ref = w, /* @__PURE__ */ hr(Vh, null, /* @__PURE__ */ hr(Yk, {
8171
8174
  cache: p,
8172
8175
  serialized: E,
@@ -8610,7 +8613,7 @@ var et = Gg.exports, Uk = ee.createContext(void 0), Xk = function() {
8610
8613
  rtl: !1,
8611
8614
  transitionDuration: 300
8612
8615
  }), t_ = ee.forwardRef(function(t, e) {
8613
- var r, n = t.collapsed, a = t.toggled, i = t.onBackdropClick, s = t.onBreakPoint, o = t.width, l = o === void 0 ? "250px" : o, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, m = t.customBreakPoint, p = t.backgroundColor, w = p === void 0 ? "rgb(249, 249, 249, 0.7)" : p, x = t.transitionDuration, k = x === void 0 ? 300 : x, y = t.image, v = t.rtl, _ = t.rootStyles, E = Rn(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), M = function() {
8616
+ var r, n = t.collapsed, a = t.toggled, i = t.onBackdropClick, s = t.onBreakPoint, o = t.width, l = o === void 0 ? "250px" : o, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, m = t.customBreakPoint, p = t.backgroundColor, w = p === void 0 ? "rgb(249, 249, 249, 0.7)" : p, x = t.transitionDuration, k = x === void 0 ? 300 : x, y = t.image, v = t.rtl, _ = t.rootStyles, E = Rn(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), D = function() {
8614
8617
  if (m)
8615
8618
  return "(max-width: ".concat(m, ")");
8616
8619
  if (g)
@@ -8619,24 +8622,24 @@ var et = Gg.exports, Uk = ee.createContext(void 0), Xk = function() {
8619
8622
  T.current = function(U) {
8620
8623
  s == null || s(U);
8621
8624
  };
8622
- var C = Gk(M()), z = ee.useState(!1), S = z[0], F = z[1], D = Xk(), I = n ?? (!S && u ? !0 : D == null ? void 0 : D.collapsed), $ = a ?? (D == null ? void 0 : D.toggled), B = function() {
8623
- i == null || i(), D == null || D.updateSidebarState({ toggled: !1 });
8625
+ var C = Gk(D()), z = ee.useState(!1), F = z[0], M = z[1], S = Xk(), R = n ?? (!F && u ? !0 : S == null ? void 0 : S.collapsed), $ = a ?? (S == null ? void 0 : S.toggled), B = function() {
8626
+ i == null || i(), S == null || S.updateSidebarState({ toggled: !1 });
8624
8627
  };
8625
8628
  return ee.useEffect(function() {
8626
8629
  var U;
8627
8630
  (U = T.current) === null || U === void 0 || U.call(T, C);
8628
8631
  }, [C]), ee.useEffect(function() {
8629
- D == null || D.updateSidebarState({ broken: C, rtl: v, transitionDuration: k });
8630
- }, [C, D == null ? void 0 : D.updateSidebarState, v, k]), ee.useEffect(function() {
8631
- S || (D == null || D.updateSidebarState({
8632
+ S == null || S.updateSidebarState({ broken: C, rtl: v, transitionDuration: k });
8633
+ }, [C, S == null ? void 0 : S.updateSidebarState, v, k]), ee.useEffect(function() {
8634
+ F || (S == null || S.updateSidebarState({
8632
8635
  collapsed: u
8633
- }), F(!0));
8634
- }, [u, S, D == null ? void 0 : D.updateSidebarState]), ee.createElement(
8636
+ }), M(!0));
8637
+ }, [u, F, S == null ? void 0 : S.updateSidebarState]), ee.createElement(
8635
8638
  go.Provider,
8636
- { value: { collapsed: I, toggled: $, rtl: v, transitionDuration: k } },
8639
+ { value: { collapsed: R, toggled: $, rtl: v, transitionDuration: k } },
8637
8640
  ee.createElement(
8638
8641
  Zk,
8639
- At({ ref: e, "data-testid": "".concat(He.root, "-test-id"), rtl: v, rootStyles: _, width: l, collapsedWidth: d, transitionDuration: k, className: et(He.root, (r = {}, r[He.collapsed] = I, r[He.toggled] = $, r[He.broken] = C, r[He.rtl] = v, r), f) }, E),
8642
+ At({ ref: e, "data-testid": "".concat(He.root, "-test-id"), rtl: v, rootStyles: _, width: l, collapsedWidth: d, transitionDuration: k, className: et(He.root, (r = {}, r[He.collapsed] = R, r[He.toggled] = $, r[He.broken] = C, r[He.rtl] = v, r), f) }, E),
8640
8643
  ee.createElement(Jk, { "data-testid": "".concat(He.container, "-test-id"), className: He.container, backgroundColor: w }, h),
8641
8644
  y && ee.createElement(e_, { "data-testid": "".concat(He.image, "-test-id"), src: y, alt: "sidebar background", className: He.image }),
8642
8645
  C && $ && ee.createElement(Kk, { "data-testid": "".concat(He.backdrop, "-test-id"), role: "button", tabIndex: 0, "aria-label": "backdrop", onClick: B, onKeyPress: B, className: He.backdrop })
@@ -9117,8 +9120,8 @@ var C_ = function(e, r) {
9117
9120
  function E_(t) {
9118
9121
  var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, s = r.modifiersData.popperOffsets, o = Xt(r.placement), l = Ec(o), c = [St, Ht].indexOf(o) >= 0, d = c ? "height" : "width";
9119
9122
  if (!(!i || !s)) {
9120
- var u = C_(a.padding, r), f = Cc(i), h = l === "y" ? Ot : St, g = l === "y" ? jt : Ht, m = r.rects.reference[d] + r.rects.reference[l] - s[l] - r.rects.popper[d], p = s[l] - r.rects.reference[l], w = yi(i), x = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, k = m / 2 - p / 2, y = u[h], v = x - f[d] - u[g], _ = x / 2 - f[d] / 2 + k, E = Xa(y, _, v), M = l;
9121
- r.modifiersData[n] = (e = {}, e[M] = E, e.centerOffset = E - _, e);
9123
+ var u = C_(a.padding, r), f = Cc(i), h = l === "y" ? Ot : St, g = l === "y" ? jt : Ht, m = r.rects.reference[d] + r.rects.reference[l] - s[l] - r.rects.popper[d], p = s[l] - r.rects.reference[l], w = yi(i), x = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, k = m / 2 - p / 2, y = u[h], v = x - f[d] - u[g], _ = x / 2 - f[d] / 2 + k, E = Xa(y, _, v), D = l;
9124
+ r.modifiersData[n] = (e = {}, e[D] = E, e.centerOffset = E - _, e);
9122
9125
  }
9123
9126
  }
9124
9127
  function T_(t) {
@@ -9167,8 +9170,8 @@ function Nf(t) {
9167
9170
  h = p.x, m = p.y;
9168
9171
  var w = s.hasOwnProperty("x"), x = s.hasOwnProperty("y"), k = St, y = Ot, v = window;
9169
9172
  if (c) {
9170
- var _ = yi(r), E = "clientHeight", M = "clientWidth";
9171
- if (_ === Vt(r) && (_ = tn(r), Qt(_).position !== "static" && o === "absolute" && (E = "scrollHeight", M = "scrollWidth")), _ = _, a === Ot || (a === St || a === Ht) && i === ci) {
9173
+ var _ = yi(r), E = "clientHeight", D = "clientWidth";
9174
+ if (_ === Vt(r) && (_ = tn(r), Qt(_).position !== "static" && o === "absolute" && (E = "scrollHeight", D = "scrollWidth")), _ = _, a === Ot || (a === St || a === Ht) && i === ci) {
9172
9175
  y = jt;
9173
9176
  var T = u && _ === v && v.visualViewport ? v.visualViewport.height : (
9174
9177
  // $FlowFixMe[prop-missing]
@@ -9180,23 +9183,23 @@ function Nf(t) {
9180
9183
  k = Ht;
9181
9184
  var C = u && _ === v && v.visualViewport ? v.visualViewport.width : (
9182
9185
  // $FlowFixMe[prop-missing]
9183
- _[M]
9186
+ _[D]
9184
9187
  );
9185
9188
  h -= C - n.width, h *= l ? 1 : -1;
9186
9189
  }
9187
9190
  }
9188
9191
  var z = Object.assign({
9189
9192
  position: o
9190
- }, c && R_), S = d === !0 ? N_({
9193
+ }, c && R_), F = d === !0 ? N_({
9191
9194
  x: h,
9192
9195
  y: m
9193
9196
  }) : {
9194
9197
  x: h,
9195
9198
  y: m
9196
9199
  };
9197
- if (h = S.x, m = S.y, l) {
9198
- var F;
9199
- return Object.assign({}, z, (F = {}, F[y] = x ? "0" : "", F[k] = w ? "0" : "", F.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", F));
9200
+ if (h = F.x, m = F.y, l) {
9201
+ var M;
9202
+ return Object.assign({}, z, (M = {}, M[y] = x ? "0" : "", M[k] = w ? "0" : "", M.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", M));
9200
9203
  }
9201
9204
  return Object.assign({}, z, (e = {}, e[y] = x ? m + "px" : "", e[k] = w ? h + "px" : "", e.transform = "", e));
9202
9205
  }
@@ -9411,17 +9414,17 @@ function di(t, e) {
9411
9414
  reference: _,
9412
9415
  element: k,
9413
9416
  placement: a
9414
- }), M = $l(Object.assign({}, k, E)), T = f === Ea ? M : _, C = {
9417
+ }), D = $l(Object.assign({}, k, E)), T = f === Ea ? D : _, C = {
9415
9418
  top: v.top - T.top + w.top,
9416
9419
  bottom: T.bottom - v.bottom + w.bottom,
9417
9420
  left: v.left - T.left + w.left,
9418
9421
  right: T.right - v.right + w.right
9419
9422
  }, z = t.modifiersData.offset;
9420
9423
  if (f === Ea && z) {
9421
- var S = z[a];
9422
- Object.keys(C).forEach(function(F) {
9423
- var D = [Ht, jt].indexOf(F) >= 0 ? 1 : -1, I = [Ot, jt].indexOf(F) >= 0 ? "y" : "x";
9424
- C[F] += S[I] * D;
9424
+ var F = z[a];
9425
+ Object.keys(C).forEach(function(M) {
9426
+ var S = [Ht, jt].indexOf(M) >= 0 ? 1 : -1, R = [Ot, jt].indexOf(M) >= 0 ? "y" : "x";
9427
+ C[M] += F[R] * S;
9425
9428
  });
9426
9429
  }
9427
9430
  return C;
@@ -9455,8 +9458,8 @@ function q_(t) {
9455
9458
  function U_(t) {
9456
9459
  var e = t.state, r = t.options, n = t.name;
9457
9460
  if (!e.modifiersData[n]._skip) {
9458
- for (var a = r.mainAxis, i = a === void 0 ? !0 : a, s = r.altAxis, o = s === void 0 ? !0 : s, l = r.fallbackPlacements, c = r.padding, d = r.boundary, u = r.rootBoundary, f = r.altBoundary, h = r.flipVariations, g = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, p = e.options.placement, w = Xt(p), x = w === p, k = l || (x || !g ? [fs(p)] : q_(p)), y = [p].concat(k).reduce(function(R, O) {
9459
- return R.concat(Xt(O) === mo ? V_(e, {
9461
+ for (var a = r.mainAxis, i = a === void 0 ? !0 : a, s = r.altAxis, o = s === void 0 ? !0 : s, l = r.fallbackPlacements, c = r.padding, d = r.boundary, u = r.rootBoundary, f = r.altBoundary, h = r.flipVariations, g = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, p = e.options.placement, w = Xt(p), x = w === p, k = l || (x || !g ? [fs(p)] : q_(p)), y = [p].concat(k).reduce(function(N, O) {
9462
+ return N.concat(Xt(O) === mo ? V_(e, {
9460
9463
  placement: O,
9461
9464
  boundary: d,
9462
9465
  rootBoundary: u,
@@ -9464,25 +9467,25 @@ function U_(t) {
9464
9467
  flipVariations: g,
9465
9468
  allowedAutoPlacements: m
9466
9469
  }) : O);
9467
- }, []), v = e.rects.reference, _ = e.rects.popper, E = /* @__PURE__ */ new Map(), M = !0, T = y[0], C = 0; C < y.length; C++) {
9468
- var z = y[C], S = Xt(z), F = ca(z) === sa, D = [Ot, jt].indexOf(S) >= 0, I = D ? "width" : "height", $ = di(e, {
9470
+ }, []), v = e.rects.reference, _ = e.rects.popper, E = /* @__PURE__ */ new Map(), D = !0, T = y[0], C = 0; C < y.length; C++) {
9471
+ var z = y[C], F = Xt(z), M = ca(z) === sa, S = [Ot, jt].indexOf(F) >= 0, R = S ? "width" : "height", $ = di(e, {
9469
9472
  placement: z,
9470
9473
  boundary: d,
9471
9474
  rootBoundary: u,
9472
9475
  altBoundary: f,
9473
9476
  padding: c
9474
- }), B = D ? F ? Ht : St : F ? jt : Ot;
9475
- v[I] > _[I] && (B = fs(B));
9477
+ }), B = S ? M ? Ht : St : M ? jt : Ot;
9478
+ v[R] > _[R] && (B = fs(B));
9476
9479
  var U = fs(B), Z = [];
9477
- if (i && Z.push($[S] <= 0), o && Z.push($[B] <= 0, $[U] <= 0), Z.every(function(R) {
9478
- return R;
9480
+ if (i && Z.push($[F] <= 0), o && Z.push($[B] <= 0, $[U] <= 0), Z.every(function(N) {
9481
+ return N;
9479
9482
  })) {
9480
- T = z, M = !1;
9483
+ T = z, D = !1;
9481
9484
  break;
9482
9485
  }
9483
9486
  E.set(z, Z);
9484
9487
  }
9485
- if (M)
9488
+ if (D)
9486
9489
  for (var P = g ? 3 : 1, j = function(O) {
9487
9490
  var L = y.find(function(X) {
9488
9491
  var q = E.get(X);
@@ -9494,8 +9497,8 @@ function U_(t) {
9494
9497
  if (L)
9495
9498
  return T = L, "break";
9496
9499
  }, A = P; A > 0; A--) {
9497
- var N = j(A);
9498
- if (N === "break") break;
9500
+ var I = j(A);
9501
+ if (I === "break") break;
9499
9502
  }
9500
9503
  e.placement !== T && (e.modifiersData[n]._skip = !0, e.placement = T, e.reset = !0);
9501
9504
  }
@@ -9598,7 +9601,7 @@ function nO(t) {
9598
9601
  rootBoundary: c,
9599
9602
  padding: u,
9600
9603
  altBoundary: d
9601
- }), w = Xt(e.placement), x = ca(e.placement), k = !x, y = Ec(w), v = rO(y), _ = e.modifiersData.popperOffsets, E = e.rects.reference, M = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, {
9604
+ }), w = Xt(e.placement), x = ca(e.placement), k = !x, y = Ec(w), v = rO(y), _ = e.modifiersData.popperOffsets, E = e.rects.reference, D = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, {
9602
9605
  placement: e.placement
9603
9606
  })) : m, C = typeof T == "number" ? {
9604
9607
  mainAxis: T,
@@ -9606,23 +9609,23 @@ function nO(t) {
9606
9609
  } : Object.assign({
9607
9610
  mainAxis: 0,
9608
9611
  altAxis: 0
9609
- }, T), z = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, S = {
9612
+ }, T), z = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = {
9610
9613
  x: 0,
9611
9614
  y: 0
9612
9615
  };
9613
9616
  if (_) {
9614
9617
  if (i) {
9615
- var F, D = y === "y" ? Ot : St, I = y === "y" ? jt : Ht, $ = y === "y" ? "height" : "width", B = _[y], U = B + p[D], Z = B - p[I], P = h ? -M[$] / 2 : 0, j = x === sa ? E[$] : M[$], A = x === sa ? -M[$] : -E[$], N = e.elements.arrow, R = h && N ? Cc(N) : {
9618
+ var M, S = y === "y" ? Ot : St, R = y === "y" ? jt : Ht, $ = y === "y" ? "height" : "width", B = _[y], U = B + p[S], Z = B - p[R], P = h ? -D[$] / 2 : 0, j = x === sa ? E[$] : D[$], A = x === sa ? -D[$] : -E[$], I = e.elements.arrow, N = h && I ? Cc(I) : {
9616
9619
  width: 0,
9617
9620
  height: 0
9618
- }, O = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : sm(), L = O[D], X = O[I], q = Xa(0, E[$], R[$]), G = k ? E[$] / 2 - P - q - L - C.mainAxis : j - q - L - C.mainAxis, J = k ? -E[$] / 2 + P + q + X + C.mainAxis : A + q + X + C.mainAxis, ne = e.elements.arrow && yi(e.elements.arrow), H = ne ? y === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, ae = (F = z == null ? void 0 : z[y]) != null ? F : 0, re = B + G - ae - H, le = B + J - ae, fe = Xa(h ? Is(U, re) : U, B, h ? Mn(Z, le) : Z);
9619
- _[y] = fe, S[y] = fe - B;
9621
+ }, O = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : sm(), L = O[S], X = O[R], q = Xa(0, E[$], N[$]), G = k ? E[$] / 2 - P - q - L - C.mainAxis : j - q - L - C.mainAxis, J = k ? -E[$] / 2 + P + q + X + C.mainAxis : A + q + X + C.mainAxis, ne = e.elements.arrow && yi(e.elements.arrow), H = ne ? y === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, ae = (M = z == null ? void 0 : z[y]) != null ? M : 0, re = B + G - ae - H, le = B + J - ae, fe = Xa(h ? Is(U, re) : U, B, h ? Mn(Z, le) : Z);
9622
+ _[y] = fe, F[y] = fe - B;
9620
9623
  }
9621
9624
  if (o) {
9622
- var de, ie = y === "x" ? Ot : St, We = y === "x" ? jt : Ht, ge = _[v], Fe = v === "y" ? "height" : "width", je = ge + p[ie], Ye = ge - p[We], Et = [Ot, St].indexOf(w) !== -1, Tt = (de = z == null ? void 0 : z[v]) != null ? de : 0, Pt = Et ? je : ge - E[Fe] - M[Fe] - Tt + C.altAxis, zr = Et ? ge + E[Fe] + M[Fe] - Tt - C.altAxis : Ye, Rt = h && Et ? M_(Pt, ge, zr) : Xa(h ? Pt : je, ge, h ? zr : Ye);
9623
- _[v] = Rt, S[v] = Rt - ge;
9625
+ var de, ie = y === "x" ? Ot : St, We = y === "x" ? jt : Ht, ge = _[v], Fe = v === "y" ? "height" : "width", je = ge + p[ie], Ye = ge - p[We], Et = [Ot, St].indexOf(w) !== -1, Tt = (de = z == null ? void 0 : z[v]) != null ? de : 0, Pt = Et ? je : ge - E[Fe] - D[Fe] - Tt + C.altAxis, zr = Et ? ge + E[Fe] + D[Fe] - Tt - C.altAxis : Ye, Rt = h && Et ? M_(Pt, ge, zr) : Xa(h ? Pt : je, ge, h ? zr : Ye);
9626
+ _[v] = Rt, F[v] = Rt - ge;
9624
9627
  }
9625
- e.modifiersData[n] = S;
9628
+ e.modifiersData[n] = F;
9626
9629
  }
9627
9630
  }
9628
9631
  var aO = {
@@ -9811,18 +9814,18 @@ function bO(t) {
9811
9814
  return z.enabled;
9812
9815
  }), process.env.NODE_ENV !== "production") {
9813
9816
  var y = gO([].concat(k, d.options.modifiers), function(z) {
9814
- var S = z.name;
9815
- return S;
9817
+ var F = z.name;
9818
+ return F;
9816
9819
  });
9817
9820
  if (hO(y), Xt(d.options.placement) === mo) {
9818
9821
  var v = d.orderedModifiers.find(function(z) {
9819
- var S = z.name;
9820
- return S === "flip";
9822
+ var F = z.name;
9823
+ return F === "flip";
9821
9824
  });
9822
9825
  v || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
9823
9826
  }
9824
- var _ = Qt(l), E = _.marginTop, M = _.marginRight, T = _.marginBottom, C = _.marginLeft;
9825
- [E, M, T, C].some(function(z) {
9827
+ var _ = Qt(l), E = _.marginTop, D = _.marginRight, T = _.marginBottom, C = _.marginLeft;
9828
+ [E, D, T, C].some(function(z) {
9826
9829
  return parseFloat(z);
9827
9830
  }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
9828
9831
  }
@@ -9855,7 +9858,7 @@ function bO(t) {
9855
9858
  d.reset = !1, v = -1;
9856
9859
  continue;
9857
9860
  }
9858
- var _ = d.orderedModifiers[v], E = _.fn, M = _.options, T = M === void 0 ? {} : M, C = _.name;
9861
+ var _ = d.orderedModifiers[v], E = _.fn, D = _.options, T = D === void 0 ? {} : D, C = _.name;
9859
9862
  typeof E == "function" && (d = E({
9860
9863
  state: d,
9861
9864
  options: T,
@@ -10021,7 +10024,7 @@ var yO = [L_, tO, A_, O_, J_, X_, aO, P_, K_], vO = /* @__PURE__ */ bO({
10021
10024
  var e = t.buttonStyles;
10022
10025
  return e;
10023
10026
  }), _O = function(t, e) {
10024
- var r, n = t.children, a = t.className, i = t.label, s = t.icon, o = t.title, l = t.prefix, c = t.suffix, d = t.open, u = t.defaultOpen, f = t.active, h = f === void 0 ? !1 : f, g = t.disabled, m = g === void 0 ? !1 : g, p = t.rootStyles, w = t.component, x = t.onOpenChange, k = t.onClick, y = t.onKeyUp, v = Rn(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), _ = ee.useContext(Ns), E = ee.useContext(go), M = E.collapsed, T = E.rtl, C = E.transitionDuration, z = Dc(), S = z.renderExpandIcon, F = z.closeOnClick, D = z.menuItemStyles, I = z.transitionDuration, $ = ee.useState(!!u), B = $[0], U = $[1], Z = ee.useState(!1), P = Z[0], j = Z[1], A = ee.useState(!1), N = A[0], R = A[1], O = ee.useRef(null), L = ee.useRef(null), X = ee.useRef(), q = xO({
10027
+ var r, n = t.children, a = t.className, i = t.label, s = t.icon, o = t.title, l = t.prefix, c = t.suffix, d = t.open, u = t.defaultOpen, f = t.active, h = f === void 0 ? !1 : f, g = t.disabled, m = g === void 0 ? !1 : g, p = t.rootStyles, w = t.component, x = t.onOpenChange, k = t.onClick, y = t.onKeyUp, v = Rn(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), _ = ee.useContext(Ns), E = ee.useContext(go), D = E.collapsed, T = E.rtl, C = E.transitionDuration, z = Dc(), F = z.renderExpandIcon, M = z.closeOnClick, S = z.menuItemStyles, R = z.transitionDuration, $ = ee.useState(!!u), B = $[0], U = $[1], Z = ee.useState(!1), P = Z[0], j = Z[1], A = ee.useState(!1), I = A[0], N = A[1], O = ee.useRef(null), L = ee.useRef(null), X = ee.useRef(), q = xO({
10025
10028
  level: _,
10026
10029
  buttonRef: O,
10027
10030
  contentRef: L
@@ -10031,27 +10034,27 @@ var yO = [L_, tO, A_, O_, J_, X_, aO, P_, K_], vO = /* @__PURE__ */ bO({
10031
10034
  var ie = (fe = de == null ? void 0 : de.querySelector(".".concat(ve.subMenuContent, " > ul"))) === null || fe === void 0 ? void 0 : fe.clientHeight;
10032
10035
  de.style.overflow = "hidden", de.style.height = "".concat(ie, "px"), X.current = setTimeout(function() {
10033
10036
  de.style.overflow = "auto", de.style.height = "auto";
10034
- }, I);
10037
+ }, R);
10035
10038
  }
10036
- }, [I]), J = function() {
10039
+ }, [R]), J = function() {
10037
10040
  var fe, de = L.current;
10038
10041
  if (de) {
10039
10042
  var ie = (fe = de == null ? void 0 : de.querySelector(".".concat(ve.subMenuContent, " > ul"))) === null || fe === void 0 ? void 0 : fe.clientHeight;
10040
10043
  de.style.overflow = "hidden", de.style.height = "".concat(ie, "px"), de.offsetHeight, de.style.height = "0px";
10041
10044
  }
10042
10045
  }, ne = function() {
10043
- _ === 0 && M || (typeof d > "u" ? (clearTimeout(Number(X.current)), B ? J() : G(), x == null || x(!B), U(!B)) : x == null || x(!d));
10046
+ _ === 0 && D || (typeof d > "u" ? (clearTimeout(Number(X.current)), B ? J() : G(), x == null || x(!B), U(!B)) : x == null || x(!d));
10044
10047
  };
10045
10048
  ee.useEffect(function() {
10046
- !(_ === 0 && M) && typeof d < "u" && N && (clearTimeout(Number(X.current)), d ? G() : J());
10047
- }, [M, G, i, _, x, d]);
10049
+ !(_ === 0 && D) && typeof d < "u" && I && (clearTimeout(Number(X.current)), d ? G() : J());
10050
+ }, [D, G, i, _, x, d]);
10048
10051
  var H = function(fe) {
10049
10052
  k == null || k(fe), ne();
10050
10053
  }, ae = function(fe) {
10051
10054
  y == null || y(fe), fe.key === "Enter" && ne();
10052
10055
  }, re = function(fe) {
10053
- if (D) {
10054
- var de = { level: _, disabled: m, active: h, isSubmenu: !0, open: d ?? B }, ie = D.root, We = D.button, ge = D.label, Fe = D.icon, je = D.prefix, Ye = D.suffix, Et = D.subMenuContent, Tt = D.SubMenuExpandIcon;
10056
+ if (S) {
10057
+ var de = { level: _, disabled: m, active: h, isSubmenu: !0, open: d ?? B }, ie = S.root, We = S.button, ge = S.label, Fe = S.icon, je = S.prefix, Ye = S.suffix, Et = S.subMenuContent, Tt = S.SubMenuExpandIcon;
10055
10058
  switch (fe) {
10056
10059
  case "root":
10057
10060
  return typeof ie == "function" ? ie(de) : ie;
@@ -10077,11 +10080,11 @@ var yO = [L_, tO, A_, O_, J_, X_, aO, P_, K_], vO = /* @__PURE__ */ bO({
10077
10080
  ee.useEffect(function() {
10078
10081
  setTimeout(function() {
10079
10082
  return q == null ? void 0 : q.update();
10080
- }, C), M && _ === 0 && j(!1);
10081
- }, [M, _, T, C, q]), ee.useEffect(function() {
10083
+ }, C), D && _ === 0 && j(!1);
10084
+ }, [D, _, T, C, q]), ee.useEffect(function() {
10082
10085
  var fe = function(ge) {
10083
10086
  var Fe, je, Ye;
10084
- !P && (!((Fe = O.current) === null || Fe === void 0) && Fe.contains(ge)) ? j(!0) : (F && !(!((je = ge.closest(".".concat(ve.menuItemRoot))) === null || je === void 0) && je.classList.contains(ve.subMenuRoot)) || !(!((Ye = L.current) === null || Ye === void 0) && Ye.contains(ge)) && P) && j(!1);
10087
+ !P && (!((Fe = O.current) === null || Fe === void 0) && Fe.contains(ge)) ? j(!0) : (M && !(!((je = ge.closest(".".concat(ve.menuItemRoot))) === null || je === void 0) && je.classList.contains(ve.subMenuRoot)) || !(!((Ye = L.current) === null || Ye === void 0) && Ye.contains(ge)) && P) && j(!1);
10085
10088
  }, de = function(ge) {
10086
10089
  fe(ge.target);
10087
10090
  }, ie = function(ge) {
@@ -10089,33 +10092,33 @@ var yO = [L_, tO, A_, O_, J_, X_, aO, P_, K_], vO = /* @__PURE__ */ bO({
10089
10092
  }, We = function() {
10090
10093
  document.removeEventListener("click", de), document.removeEventListener("keyup", ie);
10091
10094
  };
10092
- return We(), M && _ === 0 && (document.addEventListener("click", de, !1), document.addEventListener("keyup", ie, !1)), function() {
10095
+ return We(), D && _ === 0 && (document.addEventListener("click", de, !1), document.addEventListener("keyup", ie, !1)), function() {
10093
10096
  We();
10094
10097
  };
10095
- }, [M, _, F, P]), ee.useEffect(function() {
10096
- R(!0);
10098
+ }, [D, _, M, P]), ee.useEffect(function() {
10099
+ N(!0);
10097
10100
  }, []);
10098
10101
  var le = (r = {}, r[ve.active] = h, r[ve.disabled] = m, r[ve.open] = d ?? B, r);
10099
10102
  return ee.createElement(
10100
10103
  kO,
10101
- { ref: e, className: et(ve.menuItemRoot, ve.subMenuRoot, le, a), menuItemStyles: re("root"), level: _, collapsed: M, rtl: T, disabled: m, active: h, buttonStyles: re("button"), rootStyles: p },
10104
+ { ref: e, className: et(ve.menuItemRoot, ve.subMenuRoot, le, a), menuItemStyles: re("root"), level: _, collapsed: D, rtl: T, disabled: m, active: h, buttonStyles: re("button"), rootStyles: p },
10102
10105
  ee.createElement(
10103
10106
  fm,
10104
10107
  At({ "data-testid": "".concat(ve.button, "-test-id"), ref: O, title: o, className: et(ve.button, le), onClick: H, onKeyUp: ae, component: w, tabIndex: 0 }, v),
10105
10108
  s && ee.createElement(Jg, { rtl: T, className: et(ve.icon, le), rootStyles: re("icon") }, s),
10106
- l && ee.createElement(em, { collapsed: M, transitionDuration: C, firstLevel: _ === 0, className: et(ve.prefix, le), rtl: T, rootStyles: re("prefix") }, l),
10109
+ l && ee.createElement(em, { collapsed: D, transitionDuration: C, firstLevel: _ === 0, className: et(ve.prefix, le), rtl: T, rootStyles: re("prefix") }, l),
10107
10110
  ee.createElement(Zg, { className: et(ve.label, le), rootStyles: re("label") }, i),
10108
- c && ee.createElement(tm, { collapsed: M, transitionDuration: C, firstLevel: _ === 0, className: et(ve.suffix, le), rootStyles: re("suffix") }, c),
10109
- ee.createElement(l_, { rtl: T, className: et(ve.SubMenuExpandIcon, le), collapsed: M, level: _, rootStyles: re("SubMenuExpandIcon") }, S ? S({
10111
+ c && ee.createElement(tm, { collapsed: D, transitionDuration: C, firstLevel: _ === 0, className: et(ve.suffix, le), rootStyles: re("suffix") }, c),
10112
+ ee.createElement(l_, { rtl: T, className: et(ve.SubMenuExpandIcon, le), collapsed: D, level: _, rootStyles: re("SubMenuExpandIcon") }, F ? F({
10110
10113
  level: _,
10111
10114
  disabled: m,
10112
10115
  active: h,
10113
10116
  open: d ?? B
10114
- }) : M && _ === 0 ? ee.createElement(d_, null) : ee.createElement(c_, { rtl: T, open: d ?? B }))
10117
+ }) : D && _ === 0 ? ee.createElement(d_, null) : ee.createElement(c_, { rtl: T, open: d ?? B }))
10115
10118
  ),
10116
10119
  ee.createElement(
10117
10120
  o_,
10118
- { ref: L, openWhenCollapsed: P, open: d ?? B, firstLevel: _ === 0, collapsed: M, defaultOpen: d && !N || u, className: et(ve.subMenuContent, le), rootStyles: re("subMenuContent") },
10121
+ { ref: L, openWhenCollapsed: P, open: d ?? B, firstLevel: _ === 0, collapsed: D, defaultOpen: d && !I || u, className: et(ve.subMenuContent, le), rootStyles: re("subMenuContent") },
10119
10122
  ee.createElement(Ns.Provider, { value: _ + 1 }, n)
10120
10123
  )
10121
10124
  );
@@ -10168,20 +10171,20 @@ var Hf, OO = it.li(Bf || (Bf = pt([`
10168
10171
  }), SO = function(t, e) {
10169
10172
  var r, n = t.children, a = t.icon, i = t.className, s = t.prefix, o = t.suffix, l = t.active, c = l === void 0 ? !1 : l, d = t.disabled, u = d === void 0 ? !1 : d, f = t.component, h = t.rootStyles, g = Rn(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), m = ee.useContext(Ns), p = ee.useContext(go), w = p.collapsed, x = p.rtl, k = p.transitionDuration, y = Dc().menuItemStyles, v = function(E) {
10170
10173
  if (y) {
10171
- var M = { level: m, disabled: u, active: c, isSubmenu: !1 }, T = y.root, C = y.button, z = y.label, S = y.icon, F = y.prefix, D = y.suffix;
10174
+ var D = { level: m, disabled: u, active: c, isSubmenu: !1 }, T = y.root, C = y.button, z = y.label, F = y.icon, M = y.prefix, S = y.suffix;
10172
10175
  switch (E) {
10173
10176
  case "root":
10174
- return typeof T == "function" ? T(M) : T;
10177
+ return typeof T == "function" ? T(D) : T;
10175
10178
  case "button":
10176
- return typeof C == "function" ? C(M) : C;
10179
+ return typeof C == "function" ? C(D) : C;
10177
10180
  case "label":
10178
- return typeof z == "function" ? z(M) : z;
10181
+ return typeof z == "function" ? z(D) : z;
10179
10182
  case "icon":
10180
- return typeof S == "function" ? S(M) : S;
10183
+ return typeof F == "function" ? F(D) : F;
10181
10184
  case "prefix":
10182
- return typeof F == "function" ? F(M) : F;
10185
+ return typeof M == "function" ? M(D) : M;
10183
10186
  case "suffix":
10184
- return typeof D == "function" ? D(M) : D;
10187
+ return typeof S == "function" ? S(D) : S;
10185
10188
  default:
10186
10189
  return;
10187
10190
  }
@@ -10221,140 +10224,142 @@ const hm = Oe(
10221
10224
  );
10222
10225
  hm.displayName = "Card";
10223
10226
  const SI = ({
10224
- logo: t,
10225
- menuItems: e,
10226
- campaignCards: r = [],
10227
- onLogout: n,
10228
- defaultCollapsed: a = !1,
10229
- background: i = "linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",
10230
- textColor: s = "#ffffff",
10231
- className: o = ""
10227
+ aHref: t,
10228
+ logo: e,
10229
+ menuItems: r,
10230
+ campaignCards: n = [],
10231
+ onLogout: a,
10232
+ defaultCollapsed: i = !1,
10233
+ background: s = "linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",
10234
+ textColor: o = "#ffffff",
10235
+ className: l = ""
10232
10236
  }) => {
10233
- const [l, c] = me(a), [d, u] = me(null), [f, h] = me(/* @__PURE__ */ new Set()), [g, m] = me(null), [p, w] = me(null), x = e.filter((S) => S.position !== "bottom"), k = e.filter((S) => S.position === "bottom"), y = (S, F = "text-xl") => typeof S == "string" ? /* @__PURE__ */ b("img", { src: S, style: { width: "25px", height: "25px" } }) : S ? ee.createElement(S, { className: F }) : null, v = (S = !1, F = !1) => ({
10234
- background: l ? "transparent" : F ? "#FFFFFF55" : S ? "#FFFFFF22" : "#FFFFFF33",
10235
- color: s,
10236
- borderRadius: S ? "15px" : "20px",
10237
+ const [c, d] = me(i), [u, f] = me(null), [h, g] = me(/* @__PURE__ */ new Set()), [m, p] = me(null), [w, x] = me(null), k = r.filter((M) => M.position !== "bottom"), y = r.filter((M) => M.position === "bottom"), v = (M, S = "text-xl") => typeof M == "string" ? /* @__PURE__ */ b("img", { src: M, style: { width: "25px", height: "25px" } }) : M ? ee.createElement(M, { className: S }) : null, _ = (M = !1, S = !1) => ({
10238
+ background: c ? "transparent" : S ? "#FFFFFF55" : M ? "#FFFFFF22" : "#FFFFFF33",
10239
+ color: o,
10240
+ borderRadius: M ? "15px" : "20px",
10237
10241
  button: {
10238
- width: l ? "calc(100% - 0.5rem)" : "calc(100% - 1rem)",
10239
- margin: l ? "0 0.25rem" : "0 0.5rem",
10240
- color: s,
10241
- fontSize: S ? "0.9rem" : void 0
10242
+ width: c ? "calc(100% - 0.5rem)" : "calc(100% - 1rem)",
10243
+ margin: c ? "0 0.25rem" : "0 0.5rem",
10244
+ color: o,
10245
+ fontSize: M ? "0.9rem" : void 0
10242
10246
  }
10243
- }), _ = (S, F = !1, D) => {
10244
- const I = F ? p === S.id : g === S.id;
10247
+ }), E = (M, S = !1, R) => {
10248
+ const $ = S ? w === M.id : m === M.id;
10245
10249
  return /* @__PURE__ */ b(
10246
10250
  DO,
10247
10251
  {
10248
- icon: y(S.icon, F ? "" : "text-2xl"),
10249
- onClick: () => C(S, D),
10252
+ icon: v(M.icon, S ? "" : "text-2xl"),
10253
+ onClick: () => z(M, R),
10250
10254
  className: "mx-auto mb-1 rounded-md",
10251
- rootStyles: v(F, I),
10252
- children: F ? S.label : /* @__PURE__ */ K("div", { className: "flex items-center justify-between w-full", children: [
10253
- /* @__PURE__ */ b("span", { children: S.label }),
10254
- S.subMenuSection && /* @__PURE__ */ b(
10255
+ rootStyles: _(S, $),
10256
+ children: S ? M.label : /* @__PURE__ */ K("div", { className: "flex w-full items-center justify-between", children: [
10257
+ /* @__PURE__ */ b("span", { children: M.label }),
10258
+ M.subMenuSection && /* @__PURE__ */ b(
10255
10259
  E1,
10256
10260
  {
10257
- className: `text-lg transition-transform duration-200 ${f.has(S.id) ? "rotate-180" : ""}`
10261
+ className: `text-lg transition-transform duration-200 ${h.has(M.id) ? "rotate-180" : ""}`
10258
10262
  }
10259
10263
  )
10260
10264
  ] })
10261
10265
  },
10262
- S.id
10266
+ M.id
10263
10267
  );
10264
- }, E = (S) => S.map((F) => /* @__PURE__ */ K("div", { children: [
10265
- _(F),
10266
- F.subMenuSection && f.has(F.id) && /* @__PURE__ */ b("div", { className: "ml-4 space-y-1 mb-2", children: F.subMenuSection.items.map(
10267
- (D) => _(D, !0, F.id)
10268
+ }, D = (M) => M.map((S) => /* @__PURE__ */ K("div", { children: [
10269
+ E(S),
10270
+ S.subMenuSection && h.has(S.id) && /* @__PURE__ */ b("div", { className: "ml-4 space-y-1 mb-2", children: S.subMenuSection.items.map(
10271
+ (R) => E(R, !0, S.id)
10268
10272
  ) })
10269
- ] }, F.id)), M = () => {
10270
- d || c(!1);
10271
- }, T = () => {
10272
- d || (c(!0), h(/* @__PURE__ */ new Set()));
10273
- }, C = (S, F) => {
10274
- if (F ? (m(F), w(S.id)) : (m(S.id), w(null)), S.subMenuSection) {
10275
- const D = new Set(f);
10276
- D.has(S.id) ? D.delete(S.id) : D.add(S.id), h(D);
10277
- } else S.action ? S.action() : S.href && (S.target === "_blank" ? window.open(S.href, "_blank") : window.location.href = S.href);
10278
- }, z = (S) => {
10279
- S.action ? S.action() : S.href && (S.target === "_blank" ? window.open(S.href, "_blank") : window.location.href = S.href);
10273
+ ] }, S.id)), T = () => {
10274
+ u || d(!1);
10275
+ }, C = () => {
10276
+ u || (d(!0), g(/* @__PURE__ */ new Set()));
10277
+ }, z = (M, S) => {
10278
+ if (S ? (p(S), x(M.id)) : (p(M.id), x(null)), M.subMenuSection) {
10279
+ const R = new Set(h);
10280
+ R.has(M.id) ? R.delete(M.id) : R.add(M.id), g(R);
10281
+ } else M.action ? M.action() : M.href && (M.target === "_blank" ? window.open(M.href, "_blank") : window.location.href = M.href);
10282
+ }, F = (M) => {
10283
+ M.action ? M.action() : M.href && (M.target === "_blank" ? window.open(M.href, "_blank") : window.location.href = M.href);
10280
10284
  };
10281
- return /* @__PURE__ */ b("div", { className: `fixed left-0 top-0 z-40 h-full ${o}`, children: /* @__PURE__ */ K(
10285
+ return /* @__PURE__ */ b("div", { className: `fixed left-0 top-0 z-40 h-full ${l}`, children: /* @__PURE__ */ K(
10282
10286
  "div",
10283
10287
  {
10284
10288
  className: "flex flex-col",
10285
- onMouseEnter: M,
10286
- onMouseLeave: T,
10289
+ onMouseEnter: T,
10290
+ onMouseLeave: C,
10287
10291
  children: [
10288
10292
  /* @__PURE__ */ K(
10289
10293
  t_,
10290
10294
  {
10291
- collapsed: l,
10295
+ collapsed: c,
10292
10296
  rootStyles: {
10293
10297
  [`.${He.container}`]: {
10294
- background: i,
10295
- color: s,
10298
+ background: s,
10299
+ color: o,
10296
10300
  height: "100vh",
10297
10301
  display: "flex",
10298
10302
  flexDirection: "column",
10299
- width: l ? "95px" : "275px"
10303
+ width: c ? "95px" : "275px",
10304
+ transition: "all 400ms ease-in-out"
10300
10305
  }
10301
10306
  },
10302
10307
  children: [
10303
- /* @__PURE__ */ b("div", { className: `${l ? "mx-auto" : ""} mb-2 mt-5 px-2`, children: /* @__PURE__ */ b("a", { href: "/", children: /* @__PURE__ */ b(
10308
+ /* @__PURE__ */ b("div", { className: `${c ? "mx-auto" : ""} mb-2 mt-5 px-2`, children: /* @__PURE__ */ b("a", { href: t || "/", children: /* @__PURE__ */ b(
10304
10309
  Tn,
10305
10310
  {
10306
10311
  classIm: "mx-3",
10307
- src: t.src,
10308
- alt: t.alt,
10309
- width: t.width,
10310
- height: t.height
10312
+ src: e.src,
10313
+ alt: e.alt,
10314
+ width: e.width,
10315
+ height: e.height
10311
10316
  }
10312
10317
  ) }) }),
10313
10318
  /* @__PURE__ */ K("div", { className: "flex flex-col h-full", children: [
10314
10319
  /* @__PURE__ */ K(a_, { className: "flex-1 mx-5 relative", children: [
10315
- /* @__PURE__ */ b("div", { className: "flex flex-col", children: E(x) }),
10316
- /* @__PURE__ */ b("div", { className: ` ${f.size === 0 ? "absolute bottom-0" : ""} w-full`, children: E(k) })
10320
+ /* @__PURE__ */ b("div", { className: "flex flex-col", children: D(k) }),
10321
+ /* @__PURE__ */ b("div", { className: ` ${h.size === 0 ? "absolute bottom-0" : ""} w-full`, children: D(y) })
10317
10322
  ] }),
10318
- n && /* @__PURE__ */ b("div", { className: "w-full cursor-pointer py-4 px-7 mt-auto", children: /* @__PURE__ */ b(
10323
+ a && /* @__PURE__ */ b("div", { className: "w-full cursor-pointer py-4 px-7 mt-auto", children: /* @__PURE__ */ b(
10319
10324
  "div",
10320
10325
  {
10321
10326
  className: "flex rounded-2xl p-2",
10322
10327
  style: {
10323
- background: l ? "transparent" : "#FFFFFF1A",
10324
- float: l ? "none" : "right",
10325
- width: l ? "" : "fit-content"
10328
+ background: c ? "transparent" : "#FFFFFF1A",
10329
+ float: c ? "none" : "right",
10330
+ width: c ? "" : "fit-content"
10326
10331
  },
10327
- onClick: n,
10328
- children: /* @__PURE__ */ b("button", { style: { color: s }, children: /* @__PURE__ */ b("img", { src: "https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg", width: "25px", height: "25px", alt: "logout" }) })
10332
+ onClick: a,
10333
+ children: /* @__PURE__ */ b("button", { style: { color: o }, children: /* @__PURE__ */ b("img", { src: "https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg", width: "25px", height: "25px", alt: "logout" }) })
10329
10334
  }
10330
10335
  ) })
10331
10336
  ] })
10332
10337
  ]
10333
10338
  }
10334
10339
  ),
10335
- r.length > 0 && /* @__PURE__ */ b(
10340
+ n.length > 0 && /* @__PURE__ */ b(
10336
10341
  P1,
10337
10342
  {
10338
10343
  width: "40%",
10339
- isOpen: d === "campaigns",
10340
- onClose: () => u(null),
10344
+ isOpen: u === "campaigns",
10345
+ onClose: () => f(null),
10341
10346
  children: /* @__PURE__ */ K("div", { className: "flex flex-col px-10 pb-5", children: [
10342
10347
  /* @__PURE__ */ b("h2", { className: "mb-3 text-center font-bold", children: "Selecciona el tipo de campaña que quieres crear" }),
10343
- /* @__PURE__ */ b("div", { className: "flex", children: r.map((S) => /* @__PURE__ */ b(
10348
+ /* @__PURE__ */ b("div", { className: "flex", children: n.map((M) => /* @__PURE__ */ b(
10344
10349
  "div",
10345
10350
  {
10346
10351
  className: "flex w-3/6 p-2",
10347
- onClick: () => z(S),
10352
+ onClick: () => F(M),
10348
10353
  children: /* @__PURE__ */ b(
10349
10354
  hm,
10350
10355
  {
10351
- imageUrl: S.imageUrl,
10352
- title: S.title,
10353
- description: S.description
10356
+ imageUrl: M.imageUrl,
10357
+ title: M.title,
10358
+ description: M.description
10354
10359
  }
10355
10360
  )
10356
10361
  },
10357
- S.id
10362
+ M.id
10358
10363
  )) })
10359
10364
  ] })
10360
10365
  }
@@ -10716,7 +10721,7 @@ function fS(t) {
10716
10721
  return rS.test(t);
10717
10722
  }
10718
10723
  function hS() {
10719
- const t = Ne("colors"), e = Ne("spacing"), r = Ne("blur"), n = Ne("brightness"), a = Ne("borderColor"), i = Ne("borderRadius"), s = Ne("borderSpacing"), o = Ne("borderWidth"), l = Ne("contrast"), c = Ne("grayscale"), d = Ne("hueRotate"), u = Ne("invert"), f = Ne("gap"), h = Ne("gradientColorStops"), g = Ne("gradientColorStopPositions"), m = Ne("inset"), p = Ne("margin"), w = Ne("opacity"), x = Ne("padding"), k = Ne("saturate"), y = Ne("scale"), v = Ne("sepia"), _ = Ne("skew"), E = Ne("space"), M = Ne("translate"), T = () => ["auto", "contain", "none"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", he, e], S = () => [he, e], F = () => ["", _r, Hr], D = () => ["auto", _n, he], I = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Z = () => ["", "0", he], P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [_n, Xi], A = () => [_n, he];
10724
+ const t = Ne("colors"), e = Ne("spacing"), r = Ne("blur"), n = Ne("brightness"), a = Ne("borderColor"), i = Ne("borderRadius"), s = Ne("borderSpacing"), o = Ne("borderWidth"), l = Ne("contrast"), c = Ne("grayscale"), d = Ne("hueRotate"), u = Ne("invert"), f = Ne("gap"), h = Ne("gradientColorStops"), g = Ne("gradientColorStopPositions"), m = Ne("inset"), p = Ne("margin"), w = Ne("opacity"), x = Ne("padding"), k = Ne("saturate"), y = Ne("scale"), v = Ne("sepia"), _ = Ne("skew"), E = Ne("space"), D = Ne("translate"), T = () => ["auto", "contain", "none"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", he, e], F = () => [he, e], M = () => ["", _r, Hr], S = () => ["auto", _n, he], R = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Z = () => ["", "0", he], P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [_n, Xi], A = () => [_n, he];
10720
10725
  return {
10721
10726
  cacheSize: 500,
10722
10727
  separator: ":",
@@ -10727,25 +10732,25 @@ function hS() {
10727
10732
  brightness: j(),
10728
10733
  borderColor: [t],
10729
10734
  borderRadius: ["none", "", "full", Br, he],
10730
- borderSpacing: S(),
10731
- borderWidth: F(),
10735
+ borderSpacing: F(),
10736
+ borderWidth: M(),
10732
10737
  contrast: j(),
10733
10738
  grayscale: Z(),
10734
10739
  hueRotate: A(),
10735
10740
  invert: Z(),
10736
- gap: S(),
10741
+ gap: F(),
10737
10742
  gradientColorStops: [t],
10738
10743
  gradientColorStopPositions: [nS, Hr],
10739
10744
  inset: z(),
10740
10745
  margin: z(),
10741
10746
  opacity: j(),
10742
- padding: S(),
10747
+ padding: F(),
10743
10748
  saturate: j(),
10744
10749
  scale: j(),
10745
10750
  sepia: Z(),
10746
10751
  skew: A(),
10747
- space: S(),
10748
- translate: S()
10752
+ space: F(),
10753
+ translate: F()
10749
10754
  },
10750
10755
  classGroups: {
10751
10756
  // Layout
@@ -10839,7 +10844,7 @@ function hS() {
10839
10844
  * @see https://tailwindcss.com/docs/object-position
10840
10845
  */
10841
10846
  "object-position": [{
10842
- object: [...I(), he]
10847
+ object: [...R(), he]
10843
10848
  }],
10844
10849
  /**
10845
10850
  * Overflow
@@ -11034,14 +11039,14 @@ function hS() {
11034
11039
  * @see https://tailwindcss.com/docs/grid-column
11035
11040
  */
11036
11041
  "col-start": [{
11037
- "col-start": D()
11042
+ "col-start": S()
11038
11043
  }],
11039
11044
  /**
11040
11045
  * Grid Column End
11041
11046
  * @see https://tailwindcss.com/docs/grid-column
11042
11047
  */
11043
11048
  "col-end": [{
11044
- "col-end": D()
11049
+ "col-end": S()
11045
11050
  }],
11046
11051
  /**
11047
11052
  * Grid Template Rows
@@ -11064,14 +11069,14 @@ function hS() {
11064
11069
  * @see https://tailwindcss.com/docs/grid-row
11065
11070
  */
11066
11071
  "row-start": [{
11067
- "row-start": D()
11072
+ "row-start": S()
11068
11073
  }],
11069
11074
  /**
11070
11075
  * Grid Row End
11071
11076
  * @see https://tailwindcss.com/docs/grid-row
11072
11077
  */
11073
11078
  "row-end": [{
11074
- "row-end": D()
11079
+ "row-end": S()
11075
11080
  }],
11076
11081
  /**
11077
11082
  * Grid Auto Flow
@@ -11576,7 +11581,7 @@ function hS() {
11576
11581
  * @see https://tailwindcss.com/docs/text-indent
11577
11582
  */
11578
11583
  indent: [{
11579
- indent: S()
11584
+ indent: F()
11580
11585
  }],
11581
11586
  /**
11582
11587
  * Vertical Alignment
@@ -11648,7 +11653,7 @@ function hS() {
11648
11653
  * @see https://tailwindcss.com/docs/background-position
11649
11654
  */
11650
11655
  "bg-position": [{
11651
- bg: [...I(), sS]
11656
+ bg: [...R(), sS]
11652
11657
  }],
11653
11658
  /**
11654
11659
  * Background Repeat
@@ -12034,7 +12039,7 @@ function hS() {
12034
12039
  * @see https://tailwindcss.com/docs/ring-width
12035
12040
  */
12036
12041
  "ring-w": [{
12037
- ring: F()
12042
+ ring: M()
12038
12043
  }],
12039
12044
  /**
12040
12045
  * Ring Width Inset
@@ -12368,14 +12373,14 @@ function hS() {
12368
12373
  * @see https://tailwindcss.com/docs/translate
12369
12374
  */
12370
12375
  "translate-x": [{
12371
- "translate-x": [M]
12376
+ "translate-x": [D]
12372
12377
  }],
12373
12378
  /**
12374
12379
  * Translate Y
12375
12380
  * @see https://tailwindcss.com/docs/translate
12376
12381
  */
12377
12382
  "translate-y": [{
12378
- "translate-y": [M]
12383
+ "translate-y": [D]
12379
12384
  }],
12380
12385
  /**
12381
12386
  * Skew X
@@ -12453,126 +12458,126 @@ function hS() {
12453
12458
  * @see https://tailwindcss.com/docs/scroll-margin
12454
12459
  */
12455
12460
  "scroll-m": [{
12456
- "scroll-m": S()
12461
+ "scroll-m": F()
12457
12462
  }],
12458
12463
  /**
12459
12464
  * Scroll Margin X
12460
12465
  * @see https://tailwindcss.com/docs/scroll-margin
12461
12466
  */
12462
12467
  "scroll-mx": [{
12463
- "scroll-mx": S()
12468
+ "scroll-mx": F()
12464
12469
  }],
12465
12470
  /**
12466
12471
  * Scroll Margin Y
12467
12472
  * @see https://tailwindcss.com/docs/scroll-margin
12468
12473
  */
12469
12474
  "scroll-my": [{
12470
- "scroll-my": S()
12475
+ "scroll-my": F()
12471
12476
  }],
12472
12477
  /**
12473
12478
  * Scroll Margin Start
12474
12479
  * @see https://tailwindcss.com/docs/scroll-margin
12475
12480
  */
12476
12481
  "scroll-ms": [{
12477
- "scroll-ms": S()
12482
+ "scroll-ms": F()
12478
12483
  }],
12479
12484
  /**
12480
12485
  * Scroll Margin End
12481
12486
  * @see https://tailwindcss.com/docs/scroll-margin
12482
12487
  */
12483
12488
  "scroll-me": [{
12484
- "scroll-me": S()
12489
+ "scroll-me": F()
12485
12490
  }],
12486
12491
  /**
12487
12492
  * Scroll Margin Top
12488
12493
  * @see https://tailwindcss.com/docs/scroll-margin
12489
12494
  */
12490
12495
  "scroll-mt": [{
12491
- "scroll-mt": S()
12496
+ "scroll-mt": F()
12492
12497
  }],
12493
12498
  /**
12494
12499
  * Scroll Margin Right
12495
12500
  * @see https://tailwindcss.com/docs/scroll-margin
12496
12501
  */
12497
12502
  "scroll-mr": [{
12498
- "scroll-mr": S()
12503
+ "scroll-mr": F()
12499
12504
  }],
12500
12505
  /**
12501
12506
  * Scroll Margin Bottom
12502
12507
  * @see https://tailwindcss.com/docs/scroll-margin
12503
12508
  */
12504
12509
  "scroll-mb": [{
12505
- "scroll-mb": S()
12510
+ "scroll-mb": F()
12506
12511
  }],
12507
12512
  /**
12508
12513
  * Scroll Margin Left
12509
12514
  * @see https://tailwindcss.com/docs/scroll-margin
12510
12515
  */
12511
12516
  "scroll-ml": [{
12512
- "scroll-ml": S()
12517
+ "scroll-ml": F()
12513
12518
  }],
12514
12519
  /**
12515
12520
  * Scroll Padding
12516
12521
  * @see https://tailwindcss.com/docs/scroll-padding
12517
12522
  */
12518
12523
  "scroll-p": [{
12519
- "scroll-p": S()
12524
+ "scroll-p": F()
12520
12525
  }],
12521
12526
  /**
12522
12527
  * Scroll Padding X
12523
12528
  * @see https://tailwindcss.com/docs/scroll-padding
12524
12529
  */
12525
12530
  "scroll-px": [{
12526
- "scroll-px": S()
12531
+ "scroll-px": F()
12527
12532
  }],
12528
12533
  /**
12529
12534
  * Scroll Padding Y
12530
12535
  * @see https://tailwindcss.com/docs/scroll-padding
12531
12536
  */
12532
12537
  "scroll-py": [{
12533
- "scroll-py": S()
12538
+ "scroll-py": F()
12534
12539
  }],
12535
12540
  /**
12536
12541
  * Scroll Padding Start
12537
12542
  * @see https://tailwindcss.com/docs/scroll-padding
12538
12543
  */
12539
12544
  "scroll-ps": [{
12540
- "scroll-ps": S()
12545
+ "scroll-ps": F()
12541
12546
  }],
12542
12547
  /**
12543
12548
  * Scroll Padding End
12544
12549
  * @see https://tailwindcss.com/docs/scroll-padding
12545
12550
  */
12546
12551
  "scroll-pe": [{
12547
- "scroll-pe": S()
12552
+ "scroll-pe": F()
12548
12553
  }],
12549
12554
  /**
12550
12555
  * Scroll Padding Top
12551
12556
  * @see https://tailwindcss.com/docs/scroll-padding
12552
12557
  */
12553
12558
  "scroll-pt": [{
12554
- "scroll-pt": S()
12559
+ "scroll-pt": F()
12555
12560
  }],
12556
12561
  /**
12557
12562
  * Scroll Padding Right
12558
12563
  * @see https://tailwindcss.com/docs/scroll-padding
12559
12564
  */
12560
12565
  "scroll-pr": [{
12561
- "scroll-pr": S()
12566
+ "scroll-pr": F()
12562
12567
  }],
12563
12568
  /**
12564
12569
  * Scroll Padding Bottom
12565
12570
  * @see https://tailwindcss.com/docs/scroll-padding
12566
12571
  */
12567
12572
  "scroll-pb": [{
12568
- "scroll-pb": S()
12573
+ "scroll-pb": F()
12569
12574
  }],
12570
12575
  /**
12571
12576
  * Scroll Padding Left
12572
12577
  * @see https://tailwindcss.com/docs/scroll-padding
12573
12578
  */
12574
12579
  "scroll-pl": [{
12575
- "scroll-pl": S()
12580
+ "scroll-pl": F()
12576
12581
  }],
12577
12582
  /**
12578
12583
  * Scroll Snap Align
@@ -14995,10 +15000,10 @@ const xi = (t, e, r) => {
14995
15000
  }, w) => {
14996
15001
  const x = te(ue().datepicker, g);
14997
15002
  l = gD(l, c, d);
14998
- const [k, y] = me(e), [v, _] = me(Le.Days), [E, M] = me(l), [T, C] = me(l), z = Gt(null), S = Gt(null), F = (Z, P) => {
14999
- M(Z), m && m(Z), n && v === Le.Days && P == !0 && !r && y(!1);
15000
- }, D = () => {
15001
- F(l, !0), l && C(l);
15003
+ const [k, y] = me(e), [v, _] = me(Le.Days), [E, D] = me(l), [T, C] = me(l), z = Gt(null), F = Gt(null), M = (Z, P) => {
15004
+ D(Z), m && m(Z), n && v === Le.Days && P == !0 && !r && y(!1);
15005
+ }, S = () => {
15006
+ M(l, !0), l && C(l);
15002
15007
  };
15003
15008
  qh(w, () => ({
15004
15009
  focus() {
@@ -15006,10 +15011,10 @@ const xi = (t, e, r) => {
15006
15011
  (Z = z.current) == null || Z.focus();
15007
15012
  },
15008
15013
  clear() {
15009
- D();
15014
+ S();
15010
15015
  }
15011
15016
  }));
15012
- const I = (Z) => {
15017
+ const R = (Z) => {
15013
15018
  switch (Z) {
15014
15019
  case Le.Decades:
15015
15020
  return /* @__PURE__ */ b(xD, { theme: x.views.decades });
@@ -15059,14 +15064,14 @@ const xi = (t, e, r) => {
15059
15064
  };
15060
15065
  return gt(() => {
15061
15066
  const Z = (P) => {
15062
- var N, R;
15063
- const j = (N = S == null ? void 0 : S.current) == null ? void 0 : N.contains(P.target), A = (R = z == null ? void 0 : z.current) == null ? void 0 : R.contains(P.target);
15067
+ var I, N;
15068
+ const j = (I = F == null ? void 0 : F.current) == null ? void 0 : I.contains(P.target), A = (N = z == null ? void 0 : z.current) == null ? void 0 : N.contains(P.target);
15064
15069
  !j && !A && y(!1);
15065
15070
  };
15066
15071
  return document.addEventListener("mousedown", Z), () => {
15067
15072
  document.removeEventListener("mousedown", Z);
15068
15073
  };
15069
- }, [z, S, y]), /* @__PURE__ */ b(
15074
+ }, [z, F, y]), /* @__PURE__ */ b(
15070
15075
  Um.Provider,
15071
15076
  {
15072
15077
  value: {
@@ -15082,8 +15087,8 @@ const xi = (t, e, r) => {
15082
15087
  viewDate: T,
15083
15088
  setViewDate: C,
15084
15089
  selectedDate: E,
15085
- setSelectedDate: M,
15086
- changeSelectedDate: F
15090
+ setSelectedDate: D,
15091
+ changeSelectedDate: M
15087
15092
  },
15088
15093
  children: /* @__PURE__ */ K("div", { className: Y(x.root.base, h), children: [
15089
15094
  !r && /* @__PURE__ */ b(
@@ -15100,7 +15105,7 @@ const xi = (t, e, r) => {
15100
15105
  ...p
15101
15106
  }
15102
15107
  ),
15103
- (k || r) && /* @__PURE__ */ b("div", { ref: S, className: Y(x.popup.root.base, r && x.popup.root.inline), children: /* @__PURE__ */ K("div", { className: x.popup.root.inner, children: [
15108
+ (k || r) && /* @__PURE__ */ b("div", { ref: F, className: Y(x.popup.root.base, r && x.popup.root.inline), children: /* @__PURE__ */ K("div", { className: x.popup.root.inner, children: [
15104
15109
  /* @__PURE__ */ K("div", { className: x.popup.header.base, children: [
15105
15110
  t && /* @__PURE__ */ b("div", { className: x.popup.header.title, children: t }),
15106
15111
  /* @__PURE__ */ K("div", { className: x.popup.header.selectors.base, children: [
@@ -15142,7 +15147,7 @@ const xi = (t, e, r) => {
15142
15147
  )
15143
15148
  ] })
15144
15149
  ] }),
15145
- /* @__PURE__ */ b("div", { className: x.popup.view.base, children: I(v) }),
15150
+ /* @__PURE__ */ b("div", { className: x.popup.view.base, children: R(v) }),
15146
15151
  (a || s) && /* @__PURE__ */ K("div", { className: x.popup.footer.base, children: [
15147
15152
  s && /* @__PURE__ */ b(
15148
15153
  "button",
@@ -15151,7 +15156,7 @@ const xi = (t, e, r) => {
15151
15156
  className: Y(x.popup.footer.button.base, x.popup.footer.button.today),
15152
15157
  onClick: () => {
15153
15158
  const Z = /* @__PURE__ */ new Date();
15154
- F(Z, !0), C(Z);
15159
+ M(Z, !0), C(Z);
15155
15160
  },
15156
15161
  children: o
15157
15162
  }
@@ -15162,7 +15167,7 @@ const xi = (t, e, r) => {
15162
15167
  type: "button",
15163
15168
  className: Y(x.popup.footer.button.base, x.popup.footer.button.clear),
15164
15169
  onClick: () => {
15165
- F(l, !0), l && C(l);
15170
+ M(l, !0), l && C(l);
15166
15171
  },
15167
15172
  children: i
15168
15173
  }
@@ -15657,12 +15662,12 @@ const $D = (t) => ({
15657
15662
  }, h = Vc(a), g = Yc(h), m = await s.getDimensions(c), p = h === "y", w = p ? "top" : "left", x = p ? "bottom" : "right", k = p ? "clientHeight" : "clientWidth", y = i.reference[g] + i.reference[h] - f[h] - i.floating[g], v = f[h] - i.reference[h], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
15658
15663
  let E = _ ? _[k] : 0;
15659
15664
  (!E || !await (s.isElement == null ? void 0 : s.isElement(_))) && (E = o.floating[k] || i.floating[g]);
15660
- const M = y / 2 - v / 2, T = E / 2 - m[g] / 2 - 1, C = da(u[w], T), z = da(u[x], T), S = C, F = E - m[g] - z, D = E / 2 - m[g] / 2 + M, I = Bl(S, D, F), $ = !l.arrow && pr(a) != null && D !== I && i.reference[g] / 2 - (D < S ? C : z) - m[g] / 2 < 0, B = $ ? D < S ? D - S : D - F : 0;
15665
+ const D = y / 2 - v / 2, T = E / 2 - m[g] / 2 - 1, C = da(u[w], T), z = da(u[x], T), F = C, M = E - m[g] - z, S = E / 2 - m[g] / 2 + D, R = Bl(F, S, M), $ = !l.arrow && pr(a) != null && S !== R && i.reference[g] / 2 - (S < F ? C : z) - m[g] / 2 < 0, B = $ ? S < F ? S - F : S - M : 0;
15661
15666
  return {
15662
15667
  [h]: f[h] + B,
15663
15668
  data: {
15664
- [h]: I,
15665
- centerOffset: D - I - B,
15669
+ [h]: R,
15670
+ centerOffset: S - R - B,
15666
15671
  ...$ && {
15667
15672
  alignmentOffset: B
15668
15673
  }
@@ -15720,7 +15725,7 @@ const zD = function(t) {
15720
15725
  const z = pr(C.placement);
15721
15726
  return [C.placement, z && d ? (
15722
15727
  // Check along the mainAxis and main crossAxis side.
15723
- C.overflows.slice(0, 2).reduce((S, F) => S + F, 0)
15728
+ C.overflows.slice(0, 2).reduce((F, M) => F + M, 0)
15724
15729
  ) : (
15725
15730
  // Check only the mainAxis.
15726
15731
  C.overflows[0]
@@ -15769,44 +15774,44 @@ const zD = function(t) {
15769
15774
  const w = Nr(a), x = Nr(o) === o, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = f || (x || !m ? [$s(o)] : ND(o));
15770
15775
  !f && g !== "none" && y.push(...AD(o, m, g, k));
15771
15776
  const v = [o, ...y], _ = await qc(e, p), E = [];
15772
- let M = ((n = i.flip) == null ? void 0 : n.overflows) || [];
15777
+ let D = ((n = i.flip) == null ? void 0 : n.overflows) || [];
15773
15778
  if (d && E.push(_[w]), u) {
15774
- const S = n0(a, s, k);
15775
- E.push(_[S[0]], _[S[1]]);
15779
+ const F = n0(a, s, k);
15780
+ E.push(_[F[0]], _[F[1]]);
15776
15781
  }
15777
- if (M = [...M, {
15782
+ if (D = [...D, {
15778
15783
  placement: a,
15779
15784
  overflows: E
15780
- }], !E.every((S) => S <= 0)) {
15785
+ }], !E.every((F) => F <= 0)) {
15781
15786
  var T, C;
15782
- const S = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, F = v[S];
15783
- if (F)
15787
+ const F = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, M = v[F];
15788
+ if (M)
15784
15789
  return {
15785
15790
  data: {
15786
- index: S,
15787
- overflows: M
15791
+ index: F,
15792
+ overflows: D
15788
15793
  },
15789
15794
  reset: {
15790
- placement: F
15795
+ placement: M
15791
15796
  }
15792
15797
  };
15793
- let D = (C = M.filter((I) => I.overflows[0] <= 0).sort((I, $) => I.overflows[1] - $.overflows[1])[0]) == null ? void 0 : C.placement;
15794
- if (!D)
15798
+ let S = (C = D.filter((R) => R.overflows[0] <= 0).sort((R, $) => R.overflows[1] - $.overflows[1])[0]) == null ? void 0 : C.placement;
15799
+ if (!S)
15795
15800
  switch (h) {
15796
15801
  case "bestFit": {
15797
15802
  var z;
15798
- const I = (z = M.map(($) => [$.placement, $.overflows.filter((B) => B > 0).reduce((B, U) => B + U, 0)]).sort(($, B) => $[1] - B[1])[0]) == null ? void 0 : z[0];
15799
- I && (D = I);
15803
+ const R = (z = D.map(($) => [$.placement, $.overflows.filter((B) => B > 0).reduce((B, U) => B + U, 0)]).sort(($, B) => $[1] - B[1])[0]) == null ? void 0 : z[0];
15804
+ R && (S = R);
15800
15805
  break;
15801
15806
  }
15802
15807
  case "initialPlacement":
15803
- D = o;
15808
+ S = o;
15804
15809
  break;
15805
15810
  }
15806
- if (a !== D)
15811
+ if (a !== S)
15807
15812
  return {
15808
15813
  reset: {
15809
- placement: D
15814
+ placement: S
15810
15815
  }
15811
15816
  };
15812
15817
  }
@@ -16367,7 +16372,7 @@ function uM(t) {
16367
16372
  U !== _.current && (_.current = U, m(U));
16368
16373
  }, []), k = W.useCallback((U) => {
16369
16374
  U !== E.current && (E.current = U, w(U));
16370
- }, []), y = i || g, v = s || p, _ = W.useRef(null), E = W.useRef(null), M = W.useRef(d), T = l != null, C = al(l), z = al(a), S = al(c), F = W.useCallback(() => {
16375
+ }, []), y = i || g, v = s || p, _ = W.useRef(null), E = W.useRef(null), D = W.useRef(d), T = l != null, C = al(l), z = al(a), F = al(c), M = W.useCallback(() => {
16371
16376
  if (!_.current || !E.current)
16372
16377
  return;
16373
16378
  const U = {
@@ -16382,30 +16387,30 @@ function uM(t) {
16382
16387
  // but still mounted (such as when transitioning out). To ensure
16383
16388
  // `isPositioned` will be `false` initially on the next open, avoid
16384
16389
  // setting it to `true` when `open === false` (must be specified).
16385
- isPositioned: S.current !== !1
16390
+ isPositioned: F.current !== !1
16386
16391
  };
16387
- D.current && !zs(M.current, P) && (M.current = P, Ty.flushSync(() => {
16392
+ S.current && !zs(D.current, P) && (D.current = P, Ty.flushSync(() => {
16388
16393
  u(P);
16389
16394
  }));
16390
16395
  });
16391
- }, [f, e, r, z, S]);
16396
+ }, [f, e, r, z, F]);
16392
16397
  hs(() => {
16393
- c === !1 && M.current.isPositioned && (M.current.isPositioned = !1, u((U) => ({
16398
+ c === !1 && D.current.isPositioned && (D.current.isPositioned = !1, u((U) => ({
16394
16399
  ...U,
16395
16400
  isPositioned: !1
16396
16401
  })));
16397
16402
  }, [c]);
16398
- const D = W.useRef(!1);
16399
- hs(() => (D.current = !0, () => {
16400
- D.current = !1;
16403
+ const S = W.useRef(!1);
16404
+ hs(() => (S.current = !0, () => {
16405
+ S.current = !1;
16401
16406
  }), []), hs(() => {
16402
16407
  if (y && (_.current = y), v && (E.current = v), y && v) {
16403
16408
  if (C.current)
16404
- return C.current(y, v, F);
16405
- F();
16409
+ return C.current(y, v, M);
16410
+ M();
16406
16411
  }
16407
- }, [y, v, F, C, T]);
16408
- const I = W.useMemo(() => ({
16412
+ }, [y, v, M, C, T]);
16413
+ const R = W.useMemo(() => ({
16409
16414
  reference: _,
16410
16415
  floating: E,
16411
16416
  setReference: x,
@@ -16436,11 +16441,11 @@ function uM(t) {
16436
16441
  }, [r, o, $.floating, d.x, d.y]);
16437
16442
  return W.useMemo(() => ({
16438
16443
  ...d,
16439
- update: F,
16440
- refs: I,
16444
+ update: M,
16445
+ refs: R,
16441
16446
  elements: $,
16442
16447
  floatingStyles: B
16443
- }), [d, F, I, $, B]);
16448
+ }), [d, M, R, $, B]);
16444
16449
  }
16445
16450
  const fM = (t) => {
16446
16451
  function e(r) {
@@ -16994,54 +16999,54 @@ function JM(t, e) {
16994
16999
  mouseOnly: f = !1,
16995
17000
  restMs: h = 0,
16996
17001
  move: g = !0
16997
- } = e, m = _i(), p = So(), w = br(u), x = br(d), k = W.useRef(), y = W.useRef(), v = W.useRef(), _ = W.useRef(), E = W.useRef(!0), M = W.useRef(!1), T = W.useRef(() => {
17002
+ } = e, m = _i(), p = So(), w = br(u), x = br(d), k = W.useRef(), y = W.useRef(), v = W.useRef(), _ = W.useRef(), E = W.useRef(!0), D = W.useRef(!1), T = W.useRef(() => {
16998
17003
  }), C = W.useCallback(() => {
16999
- var D;
17000
- const I = (D = a.current.openEvent) == null ? void 0 : D.type;
17001
- return (I == null ? void 0 : I.includes("mouse")) && I !== "mousedown";
17004
+ var S;
17005
+ const R = (S = a.current.openEvent) == null ? void 0 : S.type;
17006
+ return (R == null ? void 0 : R.includes("mouse")) && R !== "mousedown";
17002
17007
  }, [a]);
17003
17008
  W.useEffect(() => {
17004
17009
  if (!c)
17005
17010
  return;
17006
- function D(I) {
17011
+ function S(R) {
17007
17012
  let {
17008
17013
  open: $
17009
- } = I;
17014
+ } = R;
17010
17015
  $ || (clearTimeout(y.current), clearTimeout(_.current), E.current = !0);
17011
17016
  }
17012
- return i.on("openchange", D), () => {
17013
- i.off("openchange", D);
17017
+ return i.on("openchange", S), () => {
17018
+ i.off("openchange", S);
17014
17019
  };
17015
17020
  }, [c, i]), W.useEffect(() => {
17016
17021
  if (!c || !w.current || !r)
17017
17022
  return;
17018
- function D($) {
17023
+ function S($) {
17019
17024
  C() && n(!1, $, "hover");
17020
17025
  }
17021
- const I = yt(o).documentElement;
17022
- return I.addEventListener("mouseleave", D), () => {
17023
- I.removeEventListener("mouseleave", D);
17026
+ const R = yt(o).documentElement;
17027
+ return R.addEventListener("mouseleave", S), () => {
17028
+ R.removeEventListener("mouseleave", S);
17024
17029
  };
17025
17030
  }, [o, r, n, c, w, C]);
17026
- const z = W.useCallback(function(D, I, $) {
17027
- I === void 0 && (I = !0), $ === void 0 && ($ = "hover");
17031
+ const z = W.useCallback(function(S, R, $) {
17032
+ R === void 0 && (R = !0), $ === void 0 && ($ = "hover");
17028
17033
  const B = ol(x.current, "close", k.current);
17029
- B && !v.current ? (clearTimeout(y.current), y.current = setTimeout(() => n(!1, D, $), B)) : I && (clearTimeout(y.current), n(!1, D, $));
17030
- }, [x, n]), S = W.useCallback(() => {
17034
+ B && !v.current ? (clearTimeout(y.current), y.current = setTimeout(() => n(!1, S, $), B)) : R && (clearTimeout(y.current), n(!1, S, $));
17035
+ }, [x, n]), F = W.useCallback(() => {
17031
17036
  T.current(), v.current = void 0;
17032
- }, []), F = W.useCallback(() => {
17033
- if (M.current) {
17034
- const D = yt(l.floating.current).body;
17035
- D.style.pointerEvents = "", D.removeAttribute(ih), M.current = !1;
17037
+ }, []), M = W.useCallback(() => {
17038
+ if (D.current) {
17039
+ const S = yt(l.floating.current).body;
17040
+ S.style.pointerEvents = "", S.removeAttribute(ih), D.current = !1;
17036
17041
  }
17037
17042
  }, [l]);
17038
17043
  return W.useEffect(() => {
17039
17044
  if (!c)
17040
17045
  return;
17041
- function D() {
17046
+ function S() {
17042
17047
  return a.current.openEvent ? ["click", "mousedown"].includes(a.current.openEvent.type) : !1;
17043
17048
  }
17044
- function I(U) {
17049
+ function R(U) {
17045
17050
  if (clearTimeout(y.current), E.current = !1, f && !As(k.current) || h > 0 && ol(x.current, "open") === 0)
17046
17051
  return;
17047
17052
  const Z = ol(x.current, "open", k.current);
@@ -17050,7 +17055,7 @@ function JM(t, e) {
17050
17055
  }, Z) : n(!0, U, "hover");
17051
17056
  }
17052
17057
  function $(U) {
17053
- if (D())
17058
+ if (S())
17054
17059
  return;
17055
17060
  T.current();
17056
17061
  const Z = yt(o);
@@ -17061,7 +17066,7 @@ function JM(t, e) {
17061
17066
  x: U.clientX,
17062
17067
  y: U.clientY,
17063
17068
  onClose() {
17064
- F(), S(), z(U, !0, "safe-polygon");
17069
+ M(), F(), z(U, !0, "safe-polygon");
17065
17070
  }
17066
17071
  });
17067
17072
  const j = v.current;
@@ -17073,53 +17078,53 @@ function JM(t, e) {
17073
17078
  (k.current === "touch" ? !Ge(o, U.relatedTarget) : !0) && z(U);
17074
17079
  }
17075
17080
  function B(U) {
17076
- D() || w.current == null || w.current({
17081
+ S() || w.current == null || w.current({
17077
17082
  ...t,
17078
17083
  tree: m,
17079
17084
  x: U.clientX,
17080
17085
  y: U.clientY,
17081
17086
  onClose() {
17082
- F(), S(), z(U);
17087
+ M(), F(), z(U);
17083
17088
  }
17084
17089
  })(U);
17085
17090
  }
17086
17091
  if (Ce(s)) {
17087
17092
  const U = s;
17088
- return r && U.addEventListener("mouseleave", B), o == null || o.addEventListener("mouseleave", B), g && U.addEventListener("mousemove", I, {
17093
+ return r && U.addEventListener("mouseleave", B), o == null || o.addEventListener("mouseleave", B), g && U.addEventListener("mousemove", R, {
17089
17094
  once: !0
17090
- }), U.addEventListener("mouseenter", I), U.addEventListener("mouseleave", $), () => {
17091
- r && U.removeEventListener("mouseleave", B), o == null || o.removeEventListener("mouseleave", B), g && U.removeEventListener("mousemove", I), U.removeEventListener("mouseenter", I), U.removeEventListener("mouseleave", $);
17095
+ }), U.addEventListener("mouseenter", R), U.addEventListener("mouseleave", $), () => {
17096
+ r && U.removeEventListener("mouseleave", B), o == null || o.removeEventListener("mouseleave", B), g && U.removeEventListener("mousemove", R), U.removeEventListener("mouseenter", R), U.removeEventListener("mouseleave", $);
17092
17097
  };
17093
17098
  }
17094
- }, [s, o, c, t, f, h, g, z, S, F, n, r, m, x, w, a]), Re(() => {
17095
- var D;
17096
- if (c && r && (D = w.current) != null && D.__options.blockPointerEvents && C()) {
17099
+ }, [s, o, c, t, f, h, g, z, F, M, n, r, m, x, w, a]), Re(() => {
17100
+ var S;
17101
+ if (c && r && (S = w.current) != null && S.__options.blockPointerEvents && C()) {
17097
17102
  const $ = yt(o).body;
17098
- if ($.setAttribute(ih, ""), $.style.pointerEvents = "none", M.current = !0, Ce(s) && o) {
17099
- var I;
17100
- const B = s, U = m == null || (I = m.nodesRef.current.find((Z) => Z.id === p)) == null || (I = I.context) == null ? void 0 : I.elements.floating;
17103
+ if ($.setAttribute(ih, ""), $.style.pointerEvents = "none", D.current = !0, Ce(s) && o) {
17104
+ var R;
17105
+ const B = s, U = m == null || (R = m.nodesRef.current.find((Z) => Z.id === p)) == null || (R = R.context) == null ? void 0 : R.elements.floating;
17101
17106
  return U && (U.style.pointerEvents = ""), B.style.pointerEvents = "auto", o.style.pointerEvents = "auto", () => {
17102
17107
  B.style.pointerEvents = "", o.style.pointerEvents = "";
17103
17108
  };
17104
17109
  }
17105
17110
  }
17106
17111
  }, [c, r, p, o, s, m, w, C]), Re(() => {
17107
- r || (k.current = void 0, S(), F());
17108
- }, [r, S, F]), W.useEffect(() => () => {
17109
- S(), clearTimeout(y.current), clearTimeout(_.current), F();
17110
- }, [c, s, S, F]), W.useMemo(() => {
17112
+ r || (k.current = void 0, F(), M());
17113
+ }, [r, F, M]), W.useEffect(() => () => {
17114
+ F(), clearTimeout(y.current), clearTimeout(_.current), M();
17115
+ }, [c, s, F, M]), W.useMemo(() => {
17111
17116
  if (!c)
17112
17117
  return {};
17113
- function D(I) {
17114
- k.current = I.pointerType;
17118
+ function S(R) {
17119
+ k.current = R.pointerType;
17115
17120
  }
17116
17121
  return {
17117
17122
  reference: {
17118
- onPointerDown: D,
17119
- onPointerEnter: D,
17120
- onMouseMove(I) {
17123
+ onPointerDown: S,
17124
+ onPointerEnter: S,
17125
+ onMouseMove(R) {
17121
17126
  r || h === 0 || (clearTimeout(_.current), _.current = setTimeout(() => {
17122
- E.current || n(!0, I.nativeEvent, "hover");
17127
+ E.current || n(!0, R.nativeEvent, "hover");
17123
17128
  }, h));
17124
17129
  }
17125
17130
  },
@@ -17127,8 +17132,8 @@ function JM(t, e) {
17127
17132
  onMouseEnter() {
17128
17133
  clearTimeout(y.current);
17129
17134
  },
17130
- onMouseLeave(I) {
17131
- z(I.nativeEvent, !1);
17135
+ onMouseLeave(R) {
17136
+ z(R.nativeEvent, !1);
17132
17137
  }
17133
17138
  }
17134
17139
  };
@@ -17412,7 +17417,7 @@ function S0(t) {
17412
17417
  domReference: w,
17413
17418
  floating: x
17414
17419
  }
17415
- } = e, k = typeof s == "number" && s < 0, y = t0(w) && k, v = r2() ? i : !0, _ = br(a), E = br(s), M = br(o), T = _i(), C = O0(), z = W.useRef(null), S = W.useRef(null), F = W.useRef(!1), D = W.useRef(!1), I = C != null, $ = W.useCallback(function(P) {
17420
+ } = e, k = typeof s == "number" && s < 0, y = t0(w) && k, v = r2() ? i : !0, _ = br(a), E = br(s), D = br(o), T = _i(), C = O0(), z = W.useRef(null), F = W.useRef(null), M = W.useRef(!1), S = W.useRef(!1), R = C != null, $ = W.useCallback(function(P) {
17416
17421
  return P === void 0 && (P = x), P ? _o(P, hi()) : [];
17417
17422
  }, [x]), B = W.useCallback((P) => {
17418
17423
  const j = $(P);
@@ -17423,8 +17428,8 @@ function S0(t) {
17423
17428
  function P(A) {
17424
17429
  if (A.key === "Tab") {
17425
17430
  Ge(x, or(yt(x))) && $().length === 0 && !y && st(A);
17426
- const N = B(), R = Vr(A);
17427
- _.current[0] === "reference" && R === w && (st(A), A.shiftKey ? Cr(N[N.length - 1]) : Cr(N[1])), _.current[1] === "floating" && R === x && A.shiftKey && (st(A), Cr(N[0]));
17431
+ const I = B(), N = Vr(A);
17432
+ _.current[0] === "reference" && N === w && (st(A), A.shiftKey ? Cr(I[I.length - 1]) : Cr(I[1])), _.current[1] === "floating" && N === x && A.shiftKey && (st(A), Cr(I[0]));
17428
17433
  }
17429
17434
  }
17430
17435
  const j = yt(x);
@@ -17434,22 +17439,22 @@ function S0(t) {
17434
17439
  }, [n, w, x, l, _, y, $, B]), W.useEffect(() => {
17435
17440
  if (n || !d) return;
17436
17441
  function P() {
17437
- D.current = !0, setTimeout(() => {
17438
- D.current = !1;
17442
+ S.current = !0, setTimeout(() => {
17443
+ S.current = !1;
17439
17444
  });
17440
17445
  }
17441
17446
  function j(A) {
17442
- const N = A.relatedTarget;
17447
+ const I = A.relatedTarget;
17443
17448
  queueMicrotask(() => {
17444
- const R = !(Ge(w, N) || Ge(x, N) || Ge(N, x) || Ge(C == null ? void 0 : C.portalNode, N) || N != null && N.hasAttribute(An("focus-guard")) || T && (En(T.nodesRef.current, h).find((O) => {
17449
+ const N = !(Ge(w, I) || Ge(x, I) || Ge(I, x) || Ge(C == null ? void 0 : C.portalNode, I) || I != null && I.hasAttribute(An("focus-guard")) || T && (En(T.nodesRef.current, h).find((O) => {
17445
17450
  var L, X;
17446
- return Ge((L = O.context) == null ? void 0 : L.elements.floating, N) || Ge((X = O.context) == null ? void 0 : X.elements.domReference, N);
17451
+ return Ge((L = O.context) == null ? void 0 : L.elements.floating, I) || Ge((X = O.context) == null ? void 0 : X.elements.domReference, I);
17447
17452
  }) || e2(T.nodesRef.current, h).find((O) => {
17448
17453
  var L, X;
17449
- return ((L = O.context) == null ? void 0 : L.elements.floating) === N || ((X = O.context) == null ? void 0 : X.elements.domReference) === N;
17454
+ return ((L = O.context) == null ? void 0 : L.elements.floating) === I || ((X = O.context) == null ? void 0 : X.elements.domReference) === I;
17450
17455
  })));
17451
- N && R && !D.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
17452
- N !== ch() && (F.current = !0, g(!1, A));
17456
+ I && N && !S.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
17457
+ I !== ch() && (M.current = !0, g(!1, A));
17453
17458
  });
17454
17459
  }
17455
17460
  if (x && dt(w))
@@ -17461,42 +17466,42 @@ function S0(t) {
17461
17466
  if (n) return;
17462
17467
  const j = Array.from((C == null || (P = C.portalNode) == null ? void 0 : P.querySelectorAll("[" + An("portal") + "]")) || []);
17463
17468
  if (x) {
17464
- const A = [x, ...j, z.current, S.current, _.current.includes("reference") || y ? w : null].filter((R) => R != null), N = l || y ? sh(A, v, !v) : sh(A);
17469
+ const A = [x, ...j, z.current, F.current, _.current.includes("reference") || y ? w : null].filter((N) => N != null), I = l || y ? sh(A, v, !v) : sh(A);
17465
17470
  return () => {
17466
- N();
17471
+ I();
17467
17472
  };
17468
17473
  }
17469
17474
  }, [n, w, x, l, _, C, y, v]), Re(() => {
17470
17475
  if (n || !x) return;
17471
17476
  const P = yt(x), j = or(P);
17472
17477
  queueMicrotask(() => {
17473
- const A = B(x), N = E.current, R = (typeof N == "number" ? A[N] : N.current) || x, O = Ge(x, j);
17474
- !k && !O && u && Cr(R, {
17475
- preventScroll: R === x
17478
+ const A = B(x), I = E.current, N = (typeof I == "number" ? A[I] : I.current) || x, O = Ge(x, j);
17479
+ !k && !O && u && Cr(N, {
17480
+ preventScroll: N === x
17476
17481
  });
17477
17482
  });
17478
17483
  }, [n, u, x, k, B, E]), Re(() => {
17479
17484
  if (n || !x) return;
17480
17485
  let P = !1;
17481
- const j = yt(x), A = or(j), N = p.current;
17486
+ const j = yt(x), A = or(j), I = p.current;
17482
17487
  cl(A);
17483
- function R(O) {
17488
+ function N(O) {
17484
17489
  let {
17485
17490
  reason: L,
17486
17491
  event: X,
17487
17492
  nested: q
17488
17493
  } = O;
17489
- L === "escape-key" && f.domReference.current && cl(f.domReference.current), L === "hover" && X.type === "mouseleave" && (F.current = !0), L === "outside-press" && (q ? (F.current = !1, P = !0) : F.current = !(Jm(X) || jc(X)));
17494
+ L === "escape-key" && f.domReference.current && cl(f.domReference.current), L === "hover" && X.type === "mouseleave" && (M.current = !0), L === "outside-press" && (q ? (M.current = !1, P = !0) : M.current = !(Jm(X) || jc(X)));
17490
17495
  }
17491
- return m.on("openchange", R), () => {
17492
- m.off("openchange", R);
17496
+ return m.on("openchange", N), () => {
17497
+ m.off("openchange", N);
17493
17498
  const O = or(j), L = Ge(x, O) || T && En(T.nodesRef.current, h).some((G) => {
17494
17499
  var J;
17495
17500
  return Ge((J = G.context) == null ? void 0 : J.elements.floating, O);
17496
17501
  });
17497
- (L || N.openEvent && ["click", "mousedown"].includes(N.openEvent.type)) && f.domReference.current && cl(f.domReference.current);
17502
+ (L || I.openEvent && ["click", "mousedown"].includes(I.openEvent.type)) && f.domReference.current && cl(f.domReference.current);
17498
17503
  const q = ch();
17499
- M.current && !F.current && dt(q) && // If the focus moved somewhere else after mount, avoid returning focus
17504
+ D.current && !M.current && dt(q) && // If the focus moved somewhere else after mount, avoid returning focus
17500
17505
  // since it likely entered a different element which should be
17501
17506
  // respected: https://github.com/floating-ui/floating-ui/issues/2607
17502
17507
  (!(q !== O && O !== j.body) || L) && Cr(q, {
@@ -17508,7 +17513,7 @@ function S0(t) {
17508
17513
  preventScroll: P
17509
17514
  });
17510
17515
  };
17511
- }, [n, x, M, p, f, m, T, h]), Re(() => {
17516
+ }, [n, x, D, p, f, m, T, h]), Re(() => {
17512
17517
  if (!(n || !C))
17513
17518
  return C.setFocusManagerState({
17514
17519
  modal: l,
@@ -17538,11 +17543,11 @@ function S0(t) {
17538
17543
  }, [n, x, f, _, $, k]);
17539
17544
  function U(P) {
17540
17545
  return n || !c || !l ? null : /* @__PURE__ */ W.createElement(u2, {
17541
- ref: P === "start" ? z : S,
17546
+ ref: P === "start" ? z : F,
17542
17547
  onClick: (j) => g(!1, j.nativeEvent)
17543
17548
  }, typeof c == "string" ? c : "Dismiss");
17544
17549
  }
17545
- const Z = !n && v && (I || l);
17550
+ const Z = !n && v && (R || l);
17546
17551
  return /* @__PURE__ */ W.createElement(W.Fragment, null, Z && /* @__PURE__ */ W.createElement(Ys, {
17547
17552
  "data-type": "inside",
17548
17553
  ref: C == null ? void 0 : C.beforeInsideRef,
@@ -17551,7 +17556,7 @@ function S0(t) {
17551
17556
  const A = B();
17552
17557
  Cr(a[0] === "reference" ? A[0] : A[A.length - 1]);
17553
17558
  } else if (C != null && C.preserveTabOrder && C.portalNode)
17554
- if (F.current = !1, Za(P, C.portalNode)) {
17559
+ if (M.current = !1, Za(P, C.portalNode)) {
17555
17560
  const A = w0() || w;
17556
17561
  A == null || A.focus();
17557
17562
  } else {
@@ -17566,7 +17571,7 @@ function S0(t) {
17566
17571
  if (l)
17567
17572
  Cr(B()[0]);
17568
17573
  else if (C != null && C.preserveTabOrder && C.portalNode)
17569
- if (d && (F.current = !0), Za(P, C.portalNode)) {
17574
+ if (d && (M.current = !0), Za(P, C.portalNode)) {
17570
17575
  const A = k0() || w;
17571
17576
  A == null || A.focus();
17572
17577
  } else {
@@ -17706,15 +17711,15 @@ function M0(t, e) {
17706
17711
  capture: w
17707
17712
  } = e, x = _i(), k = lr(typeof u == "function" ? u : () => !1), y = typeof u == "function" ? k : u, v = W.useRef(!1), _ = W.useRef(!1), {
17708
17713
  escapeKey: E,
17709
- outsidePress: M
17714
+ outsidePress: D
17710
17715
  } = fh(p), {
17711
17716
  escapeKey: T,
17712
17717
  outsidePress: C
17713
- } = fh(w), z = lr((I) => {
17714
- if (!r || !c || !d || I.key !== "Escape")
17718
+ } = fh(w), z = lr((R) => {
17719
+ if (!r || !c || !d || R.key !== "Escape")
17715
17720
  return;
17716
17721
  const $ = x ? En(x.nodesRef.current, a) : [];
17717
- if (!E && (I.stopPropagation(), $.length > 0)) {
17722
+ if (!E && (R.stopPropagation(), $.length > 0)) {
17718
17723
  let B = !0;
17719
17724
  if ($.forEach((U) => {
17720
17725
  var Z;
@@ -17725,95 +17730,95 @@ function M0(t, e) {
17725
17730
  }), !B)
17726
17731
  return;
17727
17732
  }
17728
- n(!1, MD(I) ? I.nativeEvent : I, "escape-key");
17729
- }), S = lr((I) => {
17733
+ n(!1, MD(R) ? R.nativeEvent : R, "escape-key");
17734
+ }), F = lr((R) => {
17730
17735
  var $;
17731
17736
  const B = () => {
17732
17737
  var U;
17733
- z(I), (U = Vr(I)) == null || U.removeEventListener("keydown", B);
17738
+ z(R), (U = Vr(R)) == null || U.removeEventListener("keydown", B);
17734
17739
  };
17735
- ($ = Vr(I)) == null || $.addEventListener("keydown", B);
17736
- }), F = lr((I) => {
17740
+ ($ = Vr(R)) == null || $.addEventListener("keydown", B);
17741
+ }), M = lr((R) => {
17737
17742
  const $ = v.current;
17738
17743
  v.current = !1;
17739
17744
  const B = _.current;
17740
- if (_.current = !1, f === "click" && B || $ || typeof y == "function" && !y(I))
17745
+ if (_.current = !1, f === "click" && B || $ || typeof y == "function" && !y(R))
17741
17746
  return;
17742
- const U = Vr(I), Z = "[" + An("inert") + "]", P = yt(o).querySelectorAll(Z);
17747
+ const U = Vr(R), Z = "[" + An("inert") + "]", P = yt(o).querySelectorAll(Z);
17743
17748
  let j = Ce(U) ? U : null;
17744
17749
  for (; j && !Qr(j); ) {
17745
- const R = Rr(j);
17746
- if (Qr(R) || !Ce(R))
17750
+ const N = Rr(j);
17751
+ if (Qr(N) || !Ce(N))
17747
17752
  break;
17748
- j = R;
17753
+ j = N;
17749
17754
  }
17750
17755
  if (P.length && Ce(U) && !CD(U) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
17751
17756
  !Ge(U, o) && // If the target root element contains none of the markers, then the
17752
17757
  // element was injected after the floating element rendered.
17753
- Array.from(P).every((R) => !Ge(j, R)))
17758
+ Array.from(P).every((N) => !Ge(j, N)))
17754
17759
  return;
17755
17760
  if (dt(U) && o) {
17756
- const R = U.clientWidth > 0 && U.scrollWidth > U.clientWidth, O = U.clientHeight > 0 && U.scrollHeight > U.clientHeight;
17757
- let L = O && I.offsetX > U.clientWidth;
17758
- if (O && Bt(U).direction === "rtl" && (L = I.offsetX <= U.offsetWidth - U.clientWidth), L || R && I.offsetY > U.clientHeight)
17761
+ const N = U.clientWidth > 0 && U.scrollWidth > U.clientWidth, O = U.clientHeight > 0 && U.scrollHeight > U.clientHeight;
17762
+ let L = O && R.offsetX > U.clientWidth;
17763
+ if (O && Bt(U).direction === "rtl" && (L = R.offsetX <= U.offsetWidth - U.clientWidth), L || N && R.offsetY > U.clientHeight)
17759
17764
  return;
17760
17765
  }
17761
- const A = x && En(x.nodesRef.current, a).some((R) => {
17766
+ const A = x && En(x.nodesRef.current, a).some((N) => {
17762
17767
  var O;
17763
- return rl(I, (O = R.context) == null ? void 0 : O.elements.floating);
17768
+ return rl(R, (O = N.context) == null ? void 0 : O.elements.floating);
17764
17769
  });
17765
- if (rl(I, o) || rl(I, s) || A)
17770
+ if (rl(R, o) || rl(R, s) || A)
17766
17771
  return;
17767
- const N = x ? En(x.nodesRef.current, a) : [];
17768
- if (N.length > 0) {
17769
- let R = !0;
17770
- if (N.forEach((O) => {
17772
+ const I = x ? En(x.nodesRef.current, a) : [];
17773
+ if (I.length > 0) {
17774
+ let N = !0;
17775
+ if (I.forEach((O) => {
17771
17776
  var L;
17772
17777
  if ((L = O.context) != null && L.open && !O.context.dataRef.current.__outsidePressBubbles) {
17773
- R = !1;
17778
+ N = !1;
17774
17779
  return;
17775
17780
  }
17776
- }), !R)
17781
+ }), !N)
17777
17782
  return;
17778
17783
  }
17779
- n(!1, I, "outside-press");
17780
- }), D = lr((I) => {
17784
+ n(!1, R, "outside-press");
17785
+ }), S = lr((R) => {
17781
17786
  var $;
17782
17787
  const B = () => {
17783
17788
  var U;
17784
- F(I), (U = Vr(I)) == null || U.removeEventListener(f, B);
17789
+ M(R), (U = Vr(R)) == null || U.removeEventListener(f, B);
17785
17790
  };
17786
- ($ = Vr(I)) == null || $.addEventListener(f, B);
17791
+ ($ = Vr(R)) == null || $.addEventListener(f, B);
17787
17792
  });
17788
17793
  return W.useEffect(() => {
17789
17794
  if (!r || !c)
17790
17795
  return;
17791
- l.current.__escapeKeyBubbles = E, l.current.__outsidePressBubbles = M;
17792
- function I(U) {
17796
+ l.current.__escapeKeyBubbles = E, l.current.__outsidePressBubbles = D;
17797
+ function R(U) {
17793
17798
  n(!1, U, "ancestor-scroll");
17794
17799
  }
17795
17800
  const $ = yt(o);
17796
- d && $.addEventListener("keydown", T ? S : z, T), y && $.addEventListener(f, C ? D : F, C);
17801
+ d && $.addEventListener("keydown", T ? F : z, T), y && $.addEventListener(f, C ? S : M, C);
17797
17802
  let B = [];
17798
17803
  return m && (Ce(s) && (B = Gr(s)), Ce(o) && (B = B.concat(Gr(o))), !Ce(i) && i && i.contextElement && (B = B.concat(Gr(i.contextElement)))), B = B.filter((U) => {
17799
17804
  var Z;
17800
17805
  return U !== ((Z = $.defaultView) == null ? void 0 : Z.visualViewport);
17801
17806
  }), B.forEach((U) => {
17802
- U.addEventListener("scroll", I, {
17807
+ U.addEventListener("scroll", R, {
17803
17808
  passive: !0
17804
17809
  });
17805
17810
  }), () => {
17806
- d && $.removeEventListener("keydown", T ? S : z, T), y && $.removeEventListener(f, C ? D : F, C), B.forEach((U) => {
17807
- U.removeEventListener("scroll", I);
17811
+ d && $.removeEventListener("keydown", T ? F : z, T), y && $.removeEventListener(f, C ? S : M, C), B.forEach((U) => {
17812
+ U.removeEventListener("scroll", R);
17808
17813
  });
17809
17814
  };
17810
- }, [l, o, s, i, d, y, f, r, n, m, c, E, M, z, T, S, F, C, D]), W.useEffect(() => {
17815
+ }, [l, o, s, i, d, y, f, r, n, m, c, E, D, z, T, F, M, C, S]), W.useEffect(() => {
17811
17816
  v.current = !1;
17812
17817
  }, [y, f]), W.useMemo(() => c ? {
17813
17818
  reference: {
17814
17819
  onKeyDown: z,
17815
- [h2[g]]: (I) => {
17816
- h && n(!1, I.nativeEvent, "reference-press");
17820
+ [h2[g]]: (R) => {
17821
+ h && n(!1, R.nativeEvent, "reference-press");
17817
17822
  }
17818
17823
  },
17819
17824
  floating: {
@@ -17842,33 +17847,33 @@ function C0(t) {
17842
17847
  } = t;
17843
17848
  if (process.env.NODE_ENV !== "production") {
17844
17849
  var i;
17845
- const M = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
17850
+ const D = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
17846
17851
  if ((i = t.elements) != null && i.reference && !Ce(t.elements.reference)) {
17847
17852
  var s;
17848
- if (!((s = Vl) != null && s.has(M))) {
17853
+ if (!((s = Vl) != null && s.has(D))) {
17849
17854
  var o;
17850
- (o = Vl) == null || o.add(M), console.error(M);
17855
+ (o = Vl) == null || o.add(D), console.error(D);
17851
17856
  }
17852
17857
  }
17853
17858
  }
17854
- const [l, c] = W.useState(null), d = ((e = t.elements) == null ? void 0 : e.reference) || l, u = uM(t), f = _i(), h = So() != null, g = lr((M, T, C) => {
17855
- M && (p.current.openEvent = T), w.emit("openchange", {
17856
- open: M,
17859
+ const [l, c] = W.useState(null), d = ((e = t.elements) == null ? void 0 : e.reference) || l, u = uM(t), f = _i(), h = So() != null, g = lr((D, T, C) => {
17860
+ D && (p.current.openEvent = T), w.emit("openchange", {
17861
+ open: D,
17857
17862
  event: T,
17858
17863
  reason: C,
17859
17864
  nested: h
17860
- }), n == null || n(M, T, C);
17861
- }), m = W.useRef(null), p = W.useRef({}), w = W.useState(() => KM())[0], x = Oo(), k = W.useCallback((M) => {
17862
- const T = Ce(M) ? {
17863
- getBoundingClientRect: () => M.getBoundingClientRect(),
17864
- contextElement: M
17865
- } : M;
17865
+ }), n == null || n(D, T, C);
17866
+ }), m = W.useRef(null), p = W.useRef({}), w = W.useState(() => KM())[0], x = Oo(), k = W.useCallback((D) => {
17867
+ const T = Ce(D) ? {
17868
+ getBoundingClientRect: () => D.getBoundingClientRect(),
17869
+ contextElement: D
17870
+ } : D;
17866
17871
  u.refs.setReference(T);
17867
- }, [u.refs]), y = W.useCallback((M) => {
17868
- (Ce(M) || M === null) && (m.current = M, c(M)), (Ce(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
17872
+ }, [u.refs]), y = W.useCallback((D) => {
17873
+ (Ce(D) || D === null) && (m.current = D, c(D)), (Ce(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
17869
17874
  // `null` to support `positionReference` + an unstable `reference`
17870
17875
  // callback ref.
17871
- M !== null && !Ce(M)) && u.refs.setReference(M);
17876
+ D !== null && !Ce(D)) && u.refs.setReference(D);
17872
17877
  }, [u.refs]), v = W.useMemo(() => ({
17873
17878
  ...u.refs,
17874
17879
  setReference: y,
@@ -17889,8 +17894,8 @@ function C0(t) {
17889
17894
  onOpenChange: g
17890
17895
  }), [u, a, x, w, r, g, v, _]);
17891
17896
  return Re(() => {
17892
- const M = f == null ? void 0 : f.nodesRef.current.find((T) => T.id === a);
17893
- M && (M.context = E);
17897
+ const D = f == null ? void 0 : f.nodesRef.current.find((T) => T.id === a);
17898
+ D && (D.context = E);
17894
17899
  }), W.useMemo(() => ({
17895
17900
  ...u,
17896
17901
  context: E,
@@ -18075,15 +18080,15 @@ function b2(t, e) {
18075
18080
  orientation: v = "vertical",
18076
18081
  cols: _ = 1,
18077
18082
  scrollItemIntoView: E = !0,
18078
- virtualItemRef: M,
18083
+ virtualItemRef: D,
18079
18084
  itemSizes: T,
18080
18085
  dense: C = !1
18081
18086
  } = e;
18082
18087
  process.env.NODE_ENV !== "production" && (f && (h || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), p || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), v === "vertical" && _ > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
18083
- const z = So(), S = _i(), F = lr(c), D = W.useRef(w), I = W.useRef(u ?? -1), $ = W.useRef(null), B = W.useRef(!0), U = W.useRef(F), Z = W.useRef(!!s), P = W.useRef(!1), j = W.useRef(!1), A = br(y), N = br(r), R = br(E), [O, L] = W.useState(), [X, q] = W.useState(), G = lr(function(H, ae, re) {
18088
+ const z = So(), F = _i(), M = lr(c), S = W.useRef(w), R = W.useRef(u ?? -1), $ = W.useRef(null), B = W.useRef(!0), U = W.useRef(M), Z = W.useRef(!!s), P = W.useRef(!1), j = W.useRef(!1), A = br(y), I = br(r), N = br(E), [O, L] = W.useState(), [X, q] = W.useState(), G = lr(function(H, ae, re) {
18084
18089
  re === void 0 && (re = !1);
18085
18090
  const le = H.current[ae.current];
18086
- le && (p ? (L(le.id), S == null || S.events.emit("virtualfocus", le), M && (M.current = le)) : Cr(le, {
18091
+ le && (p ? (L(le.id), F == null || F.events.emit("virtualfocus", le), D && (D.current = le)) : Cr(le, {
18087
18092
  preventScroll: !0,
18088
18093
  // Mac Safari does not move the virtual cursor unless the focus call
18089
18094
  // is sync. However, for the very first focus call, we need to wait
@@ -18095,7 +18100,7 @@ function b2(t, e) {
18095
18100
  // iOS Safari must be async or the first item will not be focused.
18096
18101
  sync: e0() && Hc() ? mh || P.current : !1
18097
18102
  }), requestAnimationFrame(() => {
18098
- const fe = R.current;
18103
+ const fe = N.current;
18099
18104
  fe && le && (re || !B.current) && (le.scrollIntoView == null || le.scrollIntoView(typeof fe == "boolean" ? {
18100
18105
  block: "nearest",
18101
18106
  inline: "nearest"
@@ -18109,38 +18114,38 @@ function b2(t, e) {
18109
18114
  }
18110
18115
  });
18111
18116
  }, []), Re(() => {
18112
- d && (r && s ? D.current && u != null && (j.current = !0, I.current = u, F(u)) : Z.current && (I.current = -1, U.current(null)));
18113
- }, [d, r, s, u, F]), Re(() => {
18117
+ d && (r && s ? S.current && u != null && (j.current = !0, R.current = u, M(u)) : Z.current && (R.current = -1, U.current(null)));
18118
+ }, [d, r, s, u, M]), Re(() => {
18114
18119
  if (d && r && s)
18115
18120
  if (l == null) {
18116
18121
  if (P.current = !1, u != null)
18117
18122
  return;
18118
- if (Z.current && (I.current = -1, G(o, I)), !Z.current && D.current && ($.current != null || D.current === !0 && $.current == null)) {
18123
+ if (Z.current && (R.current = -1, G(o, R)), !Z.current && S.current && ($.current != null || S.current === !0 && $.current == null)) {
18119
18124
  let H = 0;
18120
18125
  const ae = () => {
18121
- o.current[0] == null ? (H < 2 && (H ? requestAnimationFrame : queueMicrotask)(ae), H++) : (I.current = $.current == null || fl($.current, v, m) || g ? il(o, A.current) : rh(o, A.current), $.current = null, F(I.current));
18126
+ o.current[0] == null ? (H < 2 && (H ? requestAnimationFrame : queueMicrotask)(ae), H++) : (R.current = $.current == null || fl($.current, v, m) || g ? il(o, A.current) : rh(o, A.current), $.current = null, M(R.current));
18122
18127
  };
18123
18128
  ae();
18124
18129
  }
18125
- } else Qa(o, l) || (I.current = l, G(o, I, j.current), j.current = !1);
18126
- }, [d, r, s, l, u, g, o, v, m, F, G, A]), Re(() => {
18130
+ } else Qa(o, l) || (R.current = l, G(o, R, j.current), j.current = !1);
18131
+ }, [d, r, s, l, u, g, o, v, m, M, G, A]), Re(() => {
18127
18132
  var H;
18128
- if (!d || s || !S || p || !Z.current)
18133
+ if (!d || s || !F || p || !Z.current)
18129
18134
  return;
18130
- const ae = S.nodesRef.current, re = (H = ae.find((de) => de.id === z)) == null || (H = H.context) == null ? void 0 : H.elements.floating, le = or(yt(s)), fe = ae.some((de) => de.context && Ge(de.context.elements.floating, le));
18135
+ const ae = F.nodesRef.current, re = (H = ae.find((de) => de.id === z)) == null || (H = H.context) == null ? void 0 : H.elements.floating, le = or(yt(s)), fe = ae.some((de) => de.context && Ge(de.context.elements.floating, le));
18131
18136
  re && !fe && B.current && re.focus({
18132
18137
  preventScroll: !0
18133
18138
  });
18134
- }, [d, s, S, z, p]), Re(() => {
18135
- if (!d || !S || !p || z) return;
18139
+ }, [d, s, F, z, p]), Re(() => {
18140
+ if (!d || !F || !p || z) return;
18136
18141
  function H(ae) {
18137
- q(ae.id), M && (M.current = ae);
18142
+ q(ae.id), D && (D.current = ae);
18138
18143
  }
18139
- return S.events.on("virtualfocus", H), () => {
18140
- S.events.off("virtualfocus", H);
18144
+ return F.events.on("virtualfocus", H), () => {
18145
+ F.events.off("virtualfocus", H);
18141
18146
  };
18142
- }, [d, S, p, z, M]), Re(() => {
18143
- U.current = F, Z.current = !!s;
18147
+ }, [d, F, p, z, D]), Re(() => {
18148
+ U.current = M, Z.current = !!s;
18144
18149
  }), Re(() => {
18145
18150
  r || ($.current = null);
18146
18151
  }, [r]);
@@ -18148,7 +18153,7 @@ function b2(t, e) {
18148
18153
  function H(re) {
18149
18154
  if (!r) return;
18150
18155
  const le = o.current.indexOf(re);
18151
- le !== -1 && F(le);
18156
+ le !== -1 && M(le);
18152
18157
  }
18153
18158
  return {
18154
18159
  onFocus(re) {
@@ -18177,33 +18182,33 @@ function b2(t, e) {
18177
18182
  let {
18178
18183
  pointerType: le
18179
18184
  } = re;
18180
- !B.current || le === "touch" || (I.current = -1, G(o, I), F(null), p || Cr(a.floating.current, {
18185
+ !B.current || le === "touch" || (R.current = -1, G(o, R), M(null), p || Cr(a.floating.current, {
18181
18186
  preventScroll: !0
18182
18187
  }));
18183
18188
  }
18184
18189
  }
18185
18190
  };
18186
- }, [r, a, G, x, o, F, p]);
18191
+ }, [r, a, G, x, o, M, p]);
18187
18192
  return W.useMemo(() => {
18188
18193
  if (!d)
18189
18194
  return {};
18190
18195
  const H = A.current;
18191
18196
  function ae(ie) {
18192
- if (B.current = !1, P.current = !0, !N.current && ie.currentTarget === a.floating.current)
18197
+ if (B.current = !1, P.current = !0, !I.current && ie.currentTarget === a.floating.current)
18193
18198
  return;
18194
18199
  if (g && bh(ie.key, v, m)) {
18195
18200
  st(ie), n(!1, ie.nativeEvent, "list-navigation"), dt(i) && !p && i.focus();
18196
18201
  return;
18197
18202
  }
18198
- const We = I.current, ge = il(o, H), Fe = rh(o, H);
18199
- if (ie.key === "Home" && (st(ie), I.current = ge, F(I.current)), ie.key === "End" && (st(ie), I.current = Fe, F(I.current)), _ > 1) {
18203
+ const We = R.current, ge = il(o, H), Fe = rh(o, H);
18204
+ if (ie.key === "Home" && (st(ie), R.current = ge, M(R.current)), ie.key === "End" && (st(ie), R.current = Fe, M(R.current)), _ > 1) {
18200
18205
  const je = T || Array.from({
18201
18206
  length: o.current.length
18202
18207
  }, () => ({
18203
18208
  width: 1,
18204
18209
  height: 1
18205
18210
  })), Ye = zM(je, _, C), Et = Ye.findIndex((Pt) => Pt != null && !(H != null && H.includes(Pt))), Tt = Ye.reduce((Pt, zr, Rt) => zr != null && !(H != null && H.includes(zr)) ? Rt : Pt, -1);
18206
- if (I.current = Ye[WM({
18211
+ if (R.current = Ye[WM({
18207
18212
  current: Ye.map((Pt) => Pt != null ? o.current[Pt] : null)
18208
18213
  }, {
18209
18214
  event: ie,
@@ -18216,7 +18221,7 @@ function b2(t, e) {
18216
18221
  minIndex: Et,
18217
18222
  maxIndex: Tt,
18218
18223
  prevIndex: jM(
18219
- I.current,
18224
+ R.current,
18220
18225
  je,
18221
18226
  Ye,
18222
18227
  _,
@@ -18226,36 +18231,36 @@ function b2(t, e) {
18226
18231
  ie.key === ki ? "bl" : ie.key === va ? "tr" : "tl"
18227
18232
  ),
18228
18233
  stopEvent: !0
18229
- })], F(I.current), v === "both")
18234
+ })], M(R.current), v === "both")
18230
18235
  return;
18231
18236
  }
18232
18237
  if (ph(ie.key, v)) {
18233
18238
  if (st(ie), r && !p && or(ie.currentTarget.ownerDocument) === ie.currentTarget) {
18234
- I.current = fl(ie.key, v, m) ? ge : Fe, F(I.current);
18239
+ R.current = fl(ie.key, v, m) ? ge : Fe, M(R.current);
18235
18240
  return;
18236
18241
  }
18237
- fl(ie.key, v, m) ? h ? I.current = We >= Fe ? f && We !== o.current.length ? -1 : ge : ht(o, {
18242
+ fl(ie.key, v, m) ? h ? R.current = We >= Fe ? f && We !== o.current.length ? -1 : ge : ht(o, {
18238
18243
  startingIndex: We,
18239
18244
  disabledIndices: H
18240
- }) : I.current = Math.min(Fe, ht(o, {
18245
+ }) : R.current = Math.min(Fe, ht(o, {
18241
18246
  startingIndex: We,
18242
18247
  disabledIndices: H
18243
- })) : h ? I.current = We <= ge ? f && We !== -1 ? o.current.length : Fe : ht(o, {
18248
+ })) : h ? R.current = We <= ge ? f && We !== -1 ? o.current.length : Fe : ht(o, {
18244
18249
  startingIndex: We,
18245
18250
  decrement: !0,
18246
18251
  disabledIndices: H
18247
- }) : I.current = Math.max(ge, ht(o, {
18252
+ }) : R.current = Math.max(ge, ht(o, {
18248
18253
  startingIndex: We,
18249
18254
  decrement: !0,
18250
18255
  disabledIndices: H
18251
- })), Qa(o, I.current) ? F(null) : F(I.current);
18256
+ })), Qa(o, R.current) ? M(null) : M(R.current);
18252
18257
  }
18253
18258
  }
18254
18259
  function re(ie) {
18255
- w === "auto" && Jm(ie.nativeEvent) && (D.current = !0);
18260
+ w === "auto" && Jm(ie.nativeEvent) && (S.current = !0);
18256
18261
  }
18257
18262
  function le(ie) {
18258
- D.current = w, w === "auto" && jc(ie.nativeEvent) && (D.current = !0);
18263
+ S.current = w, w === "auto" && jc(ie.nativeEvent) && (S.current = !0);
18259
18264
  }
18260
18265
  const fe = p && r && J && {
18261
18266
  "aria-activedescendant": X || O
@@ -18267,8 +18272,8 @@ function b2(t, e) {
18267
18272
  B.current = !1;
18268
18273
  const We = ie.key.indexOf("Arrow") === 0, ge = p2(ie.key, v, m), Fe = bh(ie.key, v, m), je = ph(ie.key, v), Ye = (g ? ge : je) || ie.key === "Enter" || ie.key.trim() === "";
18269
18274
  if (p && r) {
18270
- const zr = S == null ? void 0 : S.nodesRef.current.find((Pi) => Pi.parentId == null), Rt = S && zr ? t2(S.nodesRef.current, zr.id) : null;
18271
- if (We && Rt && M) {
18275
+ const zr = F == null ? void 0 : F.nodesRef.current.find((Pi) => Pi.parentId == null), Rt = F && zr ? t2(F.nodesRef.current, zr.id) : null;
18276
+ if (We && Rt && D) {
18272
18277
  const Pi = new KeyboardEvent("keydown", {
18273
18278
  key: ie.key,
18274
18279
  bubbles: !0
@@ -18288,14 +18293,14 @@ function b2(t, e) {
18288
18293
  }
18289
18294
  if (!(!r && !k && We)) {
18290
18295
  if (Ye && ($.current = g && je ? null : ie.key), g) {
18291
- ge && (st(ie), r ? (I.current = il(o, H), F(I.current)) : n(!0, ie.nativeEvent, "list-navigation"));
18296
+ ge && (st(ie), r ? (R.current = il(o, H), M(R.current)) : n(!0, ie.nativeEvent, "list-navigation"));
18292
18297
  return;
18293
18298
  }
18294
- je && (u != null && (I.current = u), st(ie), !r && k ? n(!0, ie.nativeEvent, "list-navigation") : ae(ie), r && F(I.current));
18299
+ je && (u != null && (R.current = u), st(ie), !r && k ? n(!0, ie.nativeEvent, "list-navigation") : ae(ie), r && M(R.current));
18295
18300
  }
18296
18301
  },
18297
18302
  onFocus() {
18298
- r && F(null);
18303
+ r && M(null);
18299
18304
  },
18300
18305
  onPointerDown: le,
18301
18306
  onMouseDown: re,
@@ -18311,7 +18316,7 @@ function b2(t, e) {
18311
18316
  },
18312
18317
  item: ne
18313
18318
  };
18314
- }, [i, a, O, X, A, N, o, d, v, m, p, r, J, g, u, k, f, _, h, w, F, n, ne, S, M, T, C]);
18319
+ }, [i, a, O, X, A, I, o, d, v, m, p, r, J, g, u, k, f, _, h, w, M, n, ne, F, D, T, C]);
18315
18320
  }
18316
18321
  const y2 = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
18317
18322
  function T0(t, e) {
@@ -18424,30 +18429,30 @@ function v2(t, e) {
18424
18429
  T ? a.current.typing || (a.current.typing = T, k(T)) : a.current.typing && (a.current.typing = T, k(T));
18425
18430
  }
18426
18431
  function E(T, C, z) {
18427
- const S = y.current ? y.current(C, z) : C.find((F) => (F == null ? void 0 : F.toLocaleLowerCase().indexOf(z.toLocaleLowerCase())) === 0);
18428
- return S ? T.indexOf(S) : -1;
18432
+ const F = y.current ? y.current(C, z) : C.find((M) => (M == null ? void 0 : M.toLocaleLowerCase().indexOf(z.toLocaleLowerCase())) === 0);
18433
+ return F ? T.indexOf(F) : -1;
18429
18434
  }
18430
- function M(T) {
18435
+ function D(T) {
18431
18436
  const C = i.current;
18432
18437
  if (m.current.length > 0 && m.current[0] !== " " && (E(C, C, m.current) === -1 ? _(!1) : T.key === " " && st(T)), C == null || v.current.includes(T.key) || // Character key.
18433
18438
  T.key.length !== 1 || // Modifier key.
18434
18439
  T.ctrlKey || T.metaKey || T.altKey)
18435
18440
  return;
18436
- n && T.key !== " " && (st(T), _(!0)), C.every((D) => {
18437
- var I, $;
18438
- return D ? ((I = D[0]) == null ? void 0 : I.toLocaleLowerCase()) !== (($ = D[1]) == null ? void 0 : $.toLocaleLowerCase()) : !0;
18441
+ n && T.key !== " " && (st(T), _(!0)), C.every((S) => {
18442
+ var R, $;
18443
+ return S ? ((R = S[0]) == null ? void 0 : R.toLocaleLowerCase()) !== (($ = S[1]) == null ? void 0 : $.toLocaleLowerCase()) : !0;
18439
18444
  }) && m.current === T.key && (m.current = "", p.current = w.current), m.current += T.key, clearTimeout(g.current), g.current = setTimeout(() => {
18440
18445
  m.current = "", p.current = w.current, _(!1);
18441
18446
  }, u);
18442
- const S = p.current, F = E(C, [...C.slice((S || 0) + 1), ...C.slice(0, (S || 0) + 1)], m.current);
18443
- F !== -1 ? (x(F), w.current = F) : T.key !== " " && (m.current = "", _(!1));
18447
+ const F = p.current, M = E(C, [...C.slice((F || 0) + 1), ...C.slice(0, (F || 0) + 1)], m.current);
18448
+ M !== -1 ? (x(M), w.current = M) : T.key !== " " && (m.current = "", _(!1));
18444
18449
  }
18445
18450
  return {
18446
18451
  reference: {
18447
- onKeyDown: M
18452
+ onKeyDown: D
18448
18453
  },
18449
18454
  floating: {
18450
- onKeyDown: M,
18455
+ onKeyDown: D,
18451
18456
  onKeyUp(T) {
18452
18457
  T.key === " " && _(!1);
18453
18458
  }
@@ -18502,10 +18507,10 @@ function w2(t) {
18502
18507
  const {
18503
18508
  clientX: _,
18504
18509
  clientY: E
18505
- } = y, M = [_, E], T = Vr(y), C = y.type === "mouseleave", z = Ge(m.floating, T), S = Ge(m.domReference, T), F = m.domReference.getBoundingClientRect(), D = m.floating.getBoundingClientRect(), I = g.split("-")[0], $ = f > D.right - D.width / 2, B = h > D.bottom - D.height / 2, U = x2(M, F), Z = D.width > F.width, P = D.height > F.height, j = (Z ? F : D).left, A = (Z ? F : D).right, N = (P ? F : D).top, R = (P ? F : D).bottom;
18510
+ } = y, D = [_, E], T = Vr(y), C = y.type === "mouseleave", z = Ge(m.floating, T), F = Ge(m.domReference, T), M = m.domReference.getBoundingClientRect(), S = m.floating.getBoundingClientRect(), R = g.split("-")[0], $ = f > S.right - S.width / 2, B = h > S.bottom - S.height / 2, U = x2(D, M), Z = S.width > M.width, P = S.height > M.height, j = (Z ? M : S).left, A = (Z ? M : S).right, I = (P ? M : S).top, N = (P ? M : S).bottom;
18506
18511
  if (z && (i = !0, !C))
18507
18512
  return;
18508
- if (S && (i = !1), S && !C) {
18513
+ if (F && (i = !1), F && !C) {
18509
18514
  i = !0;
18510
18515
  return;
18511
18516
  }
@@ -18516,40 +18521,40 @@ function w2(t) {
18516
18521
  return q == null ? void 0 : q.open;
18517
18522
  }))
18518
18523
  return;
18519
- if (I === "top" && h >= F.bottom - 1 || I === "bottom" && h <= F.top + 1 || I === "left" && f >= F.right - 1 || I === "right" && f <= F.left + 1)
18524
+ if (R === "top" && h >= M.bottom - 1 || R === "bottom" && h <= M.top + 1 || R === "left" && f >= M.right - 1 || R === "right" && f <= M.left + 1)
18520
18525
  return v();
18521
18526
  let O = [];
18522
- switch (I) {
18527
+ switch (R) {
18523
18528
  case "top":
18524
- O = [[j, F.top + 1], [j, D.bottom - 1], [A, D.bottom - 1], [A, F.top + 1]];
18529
+ O = [[j, M.top + 1], [j, S.bottom - 1], [A, S.bottom - 1], [A, M.top + 1]];
18525
18530
  break;
18526
18531
  case "bottom":
18527
- O = [[j, D.top + 1], [j, F.bottom - 1], [A, F.bottom - 1], [A, D.top + 1]];
18532
+ O = [[j, S.top + 1], [j, M.bottom - 1], [A, M.bottom - 1], [A, S.top + 1]];
18528
18533
  break;
18529
18534
  case "left":
18530
- O = [[D.right - 1, R], [D.right - 1, N], [F.left + 1, N], [F.left + 1, R]];
18535
+ O = [[S.right - 1, N], [S.right - 1, I], [M.left + 1, I], [M.left + 1, N]];
18531
18536
  break;
18532
18537
  case "right":
18533
- O = [[F.right - 1, R], [F.right - 1, N], [D.left + 1, N], [D.left + 1, R]];
18538
+ O = [[M.right - 1, N], [M.right - 1, I], [S.left + 1, I], [S.left + 1, N]];
18534
18539
  break;
18535
18540
  }
18536
18541
  function L(X) {
18537
18542
  let [q, G] = X;
18538
- switch (I) {
18543
+ switch (R) {
18539
18544
  case "top": {
18540
- const J = [Z ? q + e / 2 : $ ? q + e * 4 : q - e * 4, G + e + 1], ne = [Z ? q - e / 2 : $ ? q + e * 4 : q - e * 4, G + e + 1], H = [[D.left, $ || Z ? D.bottom - e : D.top], [D.right, $ ? Z ? D.bottom - e : D.top : D.bottom - e]];
18545
+ const J = [Z ? q + e / 2 : $ ? q + e * 4 : q - e * 4, G + e + 1], ne = [Z ? q - e / 2 : $ ? q + e * 4 : q - e * 4, G + e + 1], H = [[S.left, $ || Z ? S.bottom - e : S.top], [S.right, $ ? Z ? S.bottom - e : S.top : S.bottom - e]];
18541
18546
  return [J, ne, ...H];
18542
18547
  }
18543
18548
  case "bottom": {
18544
- const J = [Z ? q + e / 2 : $ ? q + e * 4 : q - e * 4, G - e], ne = [Z ? q - e / 2 : $ ? q + e * 4 : q - e * 4, G - e], H = [[D.left, $ || Z ? D.top + e : D.bottom], [D.right, $ ? Z ? D.top + e : D.bottom : D.top + e]];
18549
+ const J = [Z ? q + e / 2 : $ ? q + e * 4 : q - e * 4, G - e], ne = [Z ? q - e / 2 : $ ? q + e * 4 : q - e * 4, G - e], H = [[S.left, $ || Z ? S.top + e : S.bottom], [S.right, $ ? Z ? S.top + e : S.bottom : S.top + e]];
18545
18550
  return [J, ne, ...H];
18546
18551
  }
18547
18552
  case "left": {
18548
18553
  const J = [q + e + 1, P ? G + e / 2 : B ? G + e * 4 : G - e * 4], ne = [q + e + 1, P ? G - e / 2 : B ? G + e * 4 : G - e * 4];
18549
- return [...[[B || P ? D.right - e : D.left, D.top], [B ? P ? D.right - e : D.left : D.right - e, D.bottom]], J, ne];
18554
+ return [...[[B || P ? S.right - e : S.left, S.top], [B ? P ? S.right - e : S.left : S.right - e, S.bottom]], J, ne];
18550
18555
  }
18551
18556
  case "right": {
18552
- const J = [q - e, P ? G + e / 2 : B ? G + e * 4 : G - e * 4], ne = [q - e, P ? G - e / 2 : B ? G + e * 4 : G - e * 4], H = [[B || P ? D.left + e : D.right, D.top], [B ? P ? D.left + e : D.right : D.left + e, D.bottom]];
18557
+ const J = [q - e, P ? G + e / 2 : B ? G + e * 4 : G - e * 4], ne = [q - e, P ? G - e / 2 : B ? G + e * 4 : G - e * 4], H = [[B || P ? S.left + e : S.right, S.top], [B ? P ? S.left + e : S.right : S.left + e, S.bottom]];
18553
18558
  return [J, ne, ...H];
18554
18559
  }
18555
18560
  }
@@ -18684,7 +18689,7 @@ const S2 = {
18684
18689
  label: v,
18685
18690
  inline: _,
18686
18691
  arrowIcon: E = !0,
18687
- ...M
18692
+ ...D
18688
18693
  } = w, T = xn((P) => {
18689
18694
  u(P), o(!1);
18690
18695
  }, []), C = xn(
@@ -18692,16 +18697,16 @@ const S2 = {
18692
18697
  s ? c(P) : T(P);
18693
18698
  },
18694
18699
  [s, T]
18695
- ), { context: z, floatingStyles: S, refs: F } = P0({
18700
+ ), { context: z, floatingStyles: F, refs: M } = P0({
18696
18701
  open: s,
18697
18702
  setOpen: o,
18698
18703
  placement: k
18699
- }), D = b2(z, {
18704
+ }), S = b2(z, {
18700
18705
  listRef: g,
18701
18706
  activeIndex: l,
18702
18707
  selectedIndex: d,
18703
18708
  onNavigate: c
18704
- }), I = v2(z, {
18709
+ }), R = v2(z, {
18705
18710
  listRef: m,
18706
18711
  activeIndex: l,
18707
18712
  selectedIndex: d,
@@ -18710,7 +18715,7 @@ const S2 = {
18710
18715
  context: z,
18711
18716
  role: "menu",
18712
18717
  trigger: y,
18713
- interactions: [D, I]
18718
+ interactions: [S, R]
18714
18719
  }), Z = no(() => {
18715
18720
  const [P] = k.split("-");
18716
18721
  return S2[P] ?? bm;
@@ -18719,12 +18724,12 @@ const S2 = {
18719
18724
  /* @__PURE__ */ K(
18720
18725
  D2,
18721
18726
  {
18722
- ...M,
18723
- refs: F,
18727
+ ...D,
18728
+ refs: M,
18724
18729
  inline: _,
18725
18730
  theme: p,
18726
18731
  "data-testid": x,
18727
- className: Y(p.floating.target, M.className),
18732
+ className: Y(p.floating.target, D.className),
18728
18733
  setButtonWidth: h,
18729
18734
  getReferenceProps: $,
18730
18735
  renderTrigger: a,
@@ -18737,8 +18742,8 @@ const S2 = {
18737
18742
  s && /* @__PURE__ */ b(S0, { context: z, modal: !1, children: /* @__PURE__ */ b(
18738
18743
  "div",
18739
18744
  {
18740
- ref: F.setFloating,
18741
- style: { ...S, minWidth: f },
18745
+ ref: M.setFloating,
18746
+ style: { ...F, minWidth: f },
18742
18747
  "data-testid": "flowbite-dropdown",
18743
18748
  "aria-expanded": s,
18744
18749
  ...B({
@@ -19497,7 +19502,7 @@ const N2 = ({
19497
19502
  update: y,
19498
19503
  x: v,
19499
19504
  y: _
19500
- } = g, E = m2(m), { getFloatingProps: M, getReferenceProps: T } = R0({
19505
+ } = g, E = m2(m), { getFloatingProps: D, getReferenceProps: T } = R0({
19501
19506
  context: m,
19502
19507
  role: "tooltip",
19503
19508
  trigger: l,
@@ -19522,7 +19527,7 @@ const N2 = ({
19522
19527
  {
19523
19528
  ref: x.setFloating,
19524
19529
  "data-testid": "flowbite-tooltip",
19525
- ...M({
19530
+ ...D({
19526
19531
  className: Y(
19527
19532
  o.base,
19528
19533
  t && `${o.animation} ${t}`,
@@ -20371,8 +20376,8 @@ const DI = ({
20371
20376
  onChange: (k) => l(k.target.value)
20372
20377
  }
20373
20378
  ) }) }),
20374
- /* @__PURE__ */ K("div", { className: "overflow-x-auto mt-0", children: [
20375
- /* @__PURE__ */ K(Yn, { striped: !0, children: [
20379
+ /* @__PURE__ */ K("div", { className: "mt-0", children: [
20380
+ /* @__PURE__ */ K(Yn, { children: [
20376
20381
  /* @__PURE__ */ b(Yn.Head, { children: t.map((k, y) => /* @__PURE__ */ b(
20377
20382
  Yn.HeadCell,
20378
20383
  {
@@ -20401,7 +20406,7 @@ const DI = ({
20401
20406
  k.id
20402
20407
  )) })
20403
20408
  ] }),
20404
- i && p > 1 && /* @__PURE__ */ b("div", { className: "flex w-full justify-end mt-2", children: /* @__PURE__ */ b(
20409
+ i && p > 1 && /* @__PURE__ */ b("div", { className: "mt-2 flex w-full justify-end", children: /* @__PURE__ */ b(
20405
20410
  H2,
20406
20411
  {
20407
20412
  currentPage: c,
@@ -20942,7 +20947,7 @@ function Q2() {
20942
20947
  }
20943
20948
  }
20944
20949
  }
20945
- var v = l, _ = c, E = o, M = s, T = e, C = d, z = n, S = g, F = h, D = r, I = i, $ = a, B = u, U = !1;
20950
+ var v = l, _ = c, E = o, D = s, T = e, C = d, z = n, F = g, M = h, S = r, R = i, $ = a, B = u, U = !1;
20946
20951
  function Z(H) {
20947
20952
  return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), P(H) || y(H) === l;
20948
20953
  }
@@ -20955,10 +20960,10 @@ function Q2() {
20955
20960
  function A(H) {
20956
20961
  return y(H) === s;
20957
20962
  }
20958
- function N(H) {
20963
+ function I(H) {
20959
20964
  return typeof H == "object" && H !== null && H.$$typeof === e;
20960
20965
  }
20961
- function R(H) {
20966
+ function N(H) {
20962
20967
  return y(H) === d;
20963
20968
  }
20964
20969
  function O(H) {
@@ -20982,7 +20987,7 @@ function Q2() {
20982
20987
  function ne(H) {
20983
20988
  return y(H) === u;
20984
20989
  }
20985
- ke.AsyncMode = v, ke.ConcurrentMode = _, ke.ContextConsumer = E, ke.ContextProvider = M, ke.Element = T, ke.ForwardRef = C, ke.Fragment = z, ke.Lazy = S, ke.Memo = F, ke.Portal = D, ke.Profiler = I, ke.StrictMode = $, ke.Suspense = B, ke.isAsyncMode = Z, ke.isConcurrentMode = P, ke.isContextConsumer = j, ke.isContextProvider = A, ke.isElement = N, ke.isForwardRef = R, ke.isFragment = O, ke.isLazy = L, ke.isMemo = X, ke.isPortal = q, ke.isProfiler = G, ke.isStrictMode = J, ke.isSuspense = ne, ke.isValidElementType = k, ke.typeOf = y;
20990
+ ke.AsyncMode = v, ke.ConcurrentMode = _, ke.ContextConsumer = E, ke.ContextProvider = D, ke.Element = T, ke.ForwardRef = C, ke.Fragment = z, ke.Lazy = F, ke.Memo = M, ke.Portal = S, ke.Profiler = R, ke.StrictMode = $, ke.Suspense = B, ke.isAsyncMode = Z, ke.isConcurrentMode = P, ke.isContextConsumer = j, ke.isContextProvider = A, ke.isElement = I, ke.isForwardRef = N, ke.isFragment = O, ke.isLazy = L, ke.isMemo = X, ke.isPortal = q, ke.isProfiler = G, ke.isStrictMode = J, ke.isSuspense = ne, ke.isValidElementType = k, ke.typeOf = y;
20986
20991
  }()), ke;
20987
20992
  }
20988
20993
  var Oh;
@@ -21139,11 +21144,11 @@ function eC() {
21139
21144
  elementType: v(),
21140
21145
  instanceOf: _,
21141
21146
  node: C(),
21142
- objectOf: M,
21147
+ objectOf: D,
21143
21148
  oneOf: E,
21144
21149
  oneOfType: T,
21145
- shape: S,
21146
- exact: F
21150
+ shape: F,
21151
+ exact: M
21147
21152
  };
21148
21153
  function g(P, j) {
21149
21154
  return P === j ? P !== 0 || 1 / P === 1 / j : P !== P && j !== j;
@@ -21155,7 +21160,7 @@ function eC() {
21155
21160
  function p(P) {
21156
21161
  if (process.env.NODE_ENV !== "production")
21157
21162
  var j = {}, A = 0;
21158
- function N(O, L, X, q, G, J, ne) {
21163
+ function I(O, L, X, q, G, J, ne) {
21159
21164
  if (q = q || f, J = J || X, ne !== r) {
21160
21165
  if (l) {
21161
21166
  var H = new Error(
@@ -21172,16 +21177,16 @@ function eC() {
21172
21177
  }
21173
21178
  return L[X] == null ? O ? L[X] === null ? new m("The " + G + " `" + J + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new m("The " + G + " `" + J + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : P(L, X, q, G, J);
21174
21179
  }
21175
- var R = N.bind(null, !1);
21176
- return R.isRequired = N.bind(null, !0), R;
21180
+ var N = I.bind(null, !1);
21181
+ return N.isRequired = I.bind(null, !0), N;
21177
21182
  }
21178
21183
  function w(P) {
21179
- function j(A, N, R, O, L, X) {
21180
- var q = A[N], G = $(q);
21184
+ function j(A, I, N, O, L, X) {
21185
+ var q = A[I], G = $(q);
21181
21186
  if (G !== P) {
21182
21187
  var J = B(q);
21183
21188
  return new m(
21184
- "Invalid " + O + " `" + L + "` of type " + ("`" + J + "` supplied to `" + R + "`, expected ") + ("`" + P + "`."),
21189
+ "Invalid " + O + " `" + L + "` of type " + ("`" + J + "` supplied to `" + N + "`, expected ") + ("`" + P + "`."),
21185
21190
  { expectedType: P }
21186
21191
  );
21187
21192
  }
@@ -21193,16 +21198,16 @@ function eC() {
21193
21198
  return p(s);
21194
21199
  }
21195
21200
  function k(P) {
21196
- function j(A, N, R, O, L) {
21201
+ function j(A, I, N, O, L) {
21197
21202
  if (typeof P != "function")
21198
- return new m("Property `" + L + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
21199
- var X = A[N];
21203
+ return new m("Property `" + L + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
21204
+ var X = A[I];
21200
21205
  if (!Array.isArray(X)) {
21201
21206
  var q = $(X);
21202
- return new m("Invalid " + O + " `" + L + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected an array."));
21207
+ return new m("Invalid " + O + " `" + L + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected an array."));
21203
21208
  }
21204
21209
  for (var G = 0; G < X.length; G++) {
21205
- var J = P(X, G, R, O, L + "[" + G + "]", r);
21210
+ var J = P(X, G, N, O, L + "[" + G + "]", r);
21206
21211
  if (J instanceof Error)
21207
21212
  return J;
21208
21213
  }
@@ -21211,32 +21216,32 @@ function eC() {
21211
21216
  return p(j);
21212
21217
  }
21213
21218
  function y() {
21214
- function P(j, A, N, R, O) {
21219
+ function P(j, A, I, N, O) {
21215
21220
  var L = j[A];
21216
21221
  if (!o(L)) {
21217
21222
  var X = $(L);
21218
- return new m("Invalid " + R + " `" + O + "` of type " + ("`" + X + "` supplied to `" + N + "`, expected a single ReactElement."));
21223
+ return new m("Invalid " + N + " `" + O + "` of type " + ("`" + X + "` supplied to `" + I + "`, expected a single ReactElement."));
21219
21224
  }
21220
21225
  return null;
21221
21226
  }
21222
21227
  return p(P);
21223
21228
  }
21224
21229
  function v() {
21225
- function P(j, A, N, R, O) {
21230
+ function P(j, A, I, N, O) {
21226
21231
  var L = j[A];
21227
21232
  if (!t.isValidElementType(L)) {
21228
21233
  var X = $(L);
21229
- return new m("Invalid " + R + " `" + O + "` of type " + ("`" + X + "` supplied to `" + N + "`, expected a single ReactElement type."));
21234
+ return new m("Invalid " + N + " `" + O + "` of type " + ("`" + X + "` supplied to `" + I + "`, expected a single ReactElement type."));
21230
21235
  }
21231
21236
  return null;
21232
21237
  }
21233
21238
  return p(P);
21234
21239
  }
21235
21240
  function _(P) {
21236
- function j(A, N, R, O, L) {
21237
- if (!(A[N] instanceof P)) {
21238
- var X = P.name || f, q = Z(A[N]);
21239
- return new m("Invalid " + O + " `" + L + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected ") + ("instance of `" + X + "`."));
21241
+ function j(A, I, N, O, L) {
21242
+ if (!(A[I] instanceof P)) {
21243
+ var X = P.name || f, q = Z(A[I]);
21244
+ return new m("Invalid " + O + " `" + L + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected ") + ("instance of `" + X + "`."));
21240
21245
  }
21241
21246
  return null;
21242
21247
  }
@@ -21247,28 +21252,28 @@ function eC() {
21247
21252
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
21248
21253
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
21249
21254
  ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
21250
- function j(A, N, R, O, L) {
21251
- for (var X = A[N], q = 0; q < P.length; q++)
21255
+ function j(A, I, N, O, L) {
21256
+ for (var X = A[I], q = 0; q < P.length; q++)
21252
21257
  if (g(X, P[q]))
21253
21258
  return null;
21254
21259
  var G = JSON.stringify(P, function(ne, H) {
21255
21260
  var ae = B(H);
21256
21261
  return ae === "symbol" ? String(H) : H;
21257
21262
  });
21258
- return new m("Invalid " + O + " `" + L + "` of value `" + String(X) + "` " + ("supplied to `" + R + "`, expected one of " + G + "."));
21263
+ return new m("Invalid " + O + " `" + L + "` of value `" + String(X) + "` " + ("supplied to `" + N + "`, expected one of " + G + "."));
21259
21264
  }
21260
21265
  return p(j);
21261
21266
  }
21262
- function M(P) {
21263
- function j(A, N, R, O, L) {
21267
+ function D(P) {
21268
+ function j(A, I, N, O, L) {
21264
21269
  if (typeof P != "function")
21265
- return new m("Property `" + L + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
21266
- var X = A[N], q = $(X);
21270
+ return new m("Property `" + L + "` of component `" + N + "` has invalid PropType notation inside objectOf.");
21271
+ var X = A[I], q = $(X);
21267
21272
  if (q !== "object")
21268
- return new m("Invalid " + O + " `" + L + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected an object."));
21273
+ return new m("Invalid " + O + " `" + L + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected an object."));
21269
21274
  for (var G in X)
21270
21275
  if (n(X, G)) {
21271
- var J = P(X, G, R, O, L + "." + G, r);
21276
+ var J = P(X, G, N, O, L + "." + G, r);
21272
21277
  if (J instanceof Error)
21273
21278
  return J;
21274
21279
  }
@@ -21286,9 +21291,9 @@ function eC() {
21286
21291
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(A) + " at index " + j + "."
21287
21292
  ), s;
21288
21293
  }
21289
- function N(R, O, L, X, q) {
21294
+ function I(N, O, L, X, q) {
21290
21295
  for (var G = [], J = 0; J < P.length; J++) {
21291
- var ne = P[J], H = ne(R, O, L, X, q, r);
21296
+ var ne = P[J], H = ne(N, O, L, X, q, r);
21292
21297
  if (H == null)
21293
21298
  return null;
21294
21299
  H.data && n(H.data, "expectedType") && G.push(H.data.expectedType);
@@ -21296,29 +21301,29 @@ function eC() {
21296
21301
  var ae = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
21297
21302
  return new m("Invalid " + X + " `" + q + "` supplied to " + ("`" + L + "`" + ae + "."));
21298
21303
  }
21299
- return p(N);
21304
+ return p(I);
21300
21305
  }
21301
21306
  function C() {
21302
- function P(j, A, N, R, O) {
21303
- return D(j[A]) ? null : new m("Invalid " + R + " `" + O + "` supplied to " + ("`" + N + "`, expected a ReactNode."));
21307
+ function P(j, A, I, N, O) {
21308
+ return S(j[A]) ? null : new m("Invalid " + N + " `" + O + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
21304
21309
  }
21305
21310
  return p(P);
21306
21311
  }
21307
- function z(P, j, A, N, R) {
21312
+ function z(P, j, A, I, N) {
21308
21313
  return new m(
21309
- (P || "React class") + ": " + j + " type `" + A + "." + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
21314
+ (P || "React class") + ": " + j + " type `" + A + "." + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
21310
21315
  );
21311
21316
  }
21312
- function S(P) {
21313
- function j(A, N, R, O, L) {
21314
- var X = A[N], q = $(X);
21317
+ function F(P) {
21318
+ function j(A, I, N, O, L) {
21319
+ var X = A[I], q = $(X);
21315
21320
  if (q !== "object")
21316
- return new m("Invalid " + O + " `" + L + "` of type `" + q + "` " + ("supplied to `" + R + "`, expected `object`."));
21321
+ return new m("Invalid " + O + " `" + L + "` of type `" + q + "` " + ("supplied to `" + N + "`, expected `object`."));
21317
21322
  for (var G in P) {
21318
21323
  var J = P[G];
21319
21324
  if (typeof J != "function")
21320
- return z(R, O, L, G, B(J));
21321
- var ne = J(X, G, R, O, L + "." + G, r);
21325
+ return z(N, O, L, G, B(J));
21326
+ var ne = J(X, G, N, O, L + "." + G, r);
21322
21327
  if (ne)
21323
21328
  return ne;
21324
21329
  }
@@ -21326,22 +21331,22 @@ function eC() {
21326
21331
  }
21327
21332
  return p(j);
21328
21333
  }
21329
- function F(P) {
21330
- function j(A, N, R, O, L) {
21331
- var X = A[N], q = $(X);
21334
+ function M(P) {
21335
+ function j(A, I, N, O, L) {
21336
+ var X = A[I], q = $(X);
21332
21337
  if (q !== "object")
21333
- return new m("Invalid " + O + " `" + L + "` of type `" + q + "` " + ("supplied to `" + R + "`, expected `object`."));
21334
- var G = e({}, A[N], P);
21338
+ return new m("Invalid " + O + " `" + L + "` of type `" + q + "` " + ("supplied to `" + N + "`, expected `object`."));
21339
+ var G = e({}, A[I], P);
21335
21340
  for (var J in G) {
21336
21341
  var ne = P[J];
21337
21342
  if (n(P, J) && typeof ne != "function")
21338
- return z(R, O, L, J, B(ne));
21343
+ return z(N, O, L, J, B(ne));
21339
21344
  if (!ne)
21340
21345
  return new m(
21341
- "Invalid " + O + " `" + L + "` key `" + J + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(A[N], null, " ") + `
21346
+ "Invalid " + O + " `" + L + "` key `" + J + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(A[I], null, " ") + `
21342
21347
  Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
21343
21348
  );
21344
- var H = ne(X, J, R, O, L + "." + J, r);
21349
+ var H = ne(X, J, N, O, L + "." + J, r);
21345
21350
  if (H)
21346
21351
  return H;
21347
21352
  }
@@ -21349,7 +21354,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
21349
21354
  }
21350
21355
  return p(j);
21351
21356
  }
21352
- function D(P) {
21357
+ function S(P) {
21353
21358
  switch (typeof P) {
21354
21359
  case "number":
21355
21360
  case "string":
@@ -21359,20 +21364,20 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
21359
21364
  return !P;
21360
21365
  case "object":
21361
21366
  if (Array.isArray(P))
21362
- return P.every(D);
21367
+ return P.every(S);
21363
21368
  if (P === null || o(P))
21364
21369
  return !0;
21365
21370
  var j = u(P);
21366
21371
  if (j) {
21367
- var A = j.call(P), N;
21372
+ var A = j.call(P), I;
21368
21373
  if (j !== P.entries) {
21369
- for (; !(N = A.next()).done; )
21370
- if (!D(N.value))
21374
+ for (; !(I = A.next()).done; )
21375
+ if (!S(I.value))
21371
21376
  return !1;
21372
21377
  } else
21373
- for (; !(N = A.next()).done; ) {
21374
- var R = N.value;
21375
- if (R && !D(R[1]))
21378
+ for (; !(I = A.next()).done; ) {
21379
+ var N = I.value;
21380
+ if (N && !S(N[1]))
21376
21381
  return !1;
21377
21382
  }
21378
21383
  } else
@@ -21382,12 +21387,12 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
21382
21387
  return !1;
21383
21388
  }
21384
21389
  }
21385
- function I(P, j) {
21390
+ function R(P, j) {
21386
21391
  return P === "symbol" ? !0 : j ? j["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && j instanceof Symbol : !1;
21387
21392
  }
21388
21393
  function $(P) {
21389
21394
  var j = typeof P;
21390
- return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" : I(j, P) ? "symbol" : j;
21395
+ return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" : R(j, P) ? "symbol" : j;
21391
21396
  }
21392
21397
  function B(P) {
21393
21398
  if (typeof P > "u" || P === null)
@@ -25023,64 +25028,64 @@ function qb(t, e, r, n) {
25023
25028
  firstWeekContainsDate: o,
25024
25029
  weekStartsOn: l,
25025
25030
  locale: s
25026
- }, d = [new gT(n == null ? void 0 : n.in, r)], u = e.match(GT).map((M) => {
25027
- const T = M[0];
25031
+ }, d = [new gT(n == null ? void 0 : n.in, r)], u = e.match(GT).map((D) => {
25032
+ const T = D[0];
25028
25033
  if (T in Zs) {
25029
25034
  const C = Zs[T];
25030
- return C(M, s.formatLong);
25035
+ return C(D, s.formatLong);
25031
25036
  }
25032
- return M;
25037
+ return D;
25033
25038
  }).join("").match(XT), f = [];
25034
- for (let M of u) {
25035
- !(n != null && n.useAdditionalWeekYearTokens) && Cb(M) && Kl(M, e, t), !(n != null && n.useAdditionalDayOfYearTokens) && Mb(M) && Kl(M, e, t);
25036
- const T = M[0], C = Vb[T];
25039
+ for (let D of u) {
25040
+ !(n != null && n.useAdditionalWeekYearTokens) && Cb(D) && Kl(D, e, t), !(n != null && n.useAdditionalDayOfYearTokens) && Mb(D) && Kl(D, e, t);
25041
+ const T = D[0], C = Vb[T];
25037
25042
  if (C) {
25038
25043
  const { incompatibleTokens: z } = C;
25039
25044
  if (Array.isArray(z)) {
25040
- const F = f.find(
25041
- (D) => z.includes(D.token) || D.token === T
25045
+ const M = f.find(
25046
+ (S) => z.includes(S.token) || S.token === T
25042
25047
  );
25043
- if (F)
25048
+ if (M)
25044
25049
  throw new RangeError(
25045
- `The format string mustn't contain \`${F.fullToken}\` and \`${M}\` at the same time`
25050
+ `The format string mustn't contain \`${M.fullToken}\` and \`${D}\` at the same time`
25046
25051
  );
25047
25052
  } else if (C.incompatibleTokens === "*" && f.length > 0)
25048
25053
  throw new RangeError(
25049
- `The format string mustn't contain \`${M}\` and any other token at the same time`
25054
+ `The format string mustn't contain \`${D}\` and any other token at the same time`
25050
25055
  );
25051
- f.push({ token: T, fullToken: M });
25052
- const S = C.run(
25056
+ f.push({ token: T, fullToken: D });
25057
+ const F = C.run(
25053
25058
  t,
25054
- M,
25059
+ D,
25055
25060
  s.match,
25056
25061
  c
25057
25062
  );
25058
- if (!S)
25063
+ if (!F)
25059
25064
  return a();
25060
- d.push(S.setter), t = S.rest;
25065
+ d.push(F.setter), t = F.rest;
25061
25066
  } else {
25062
25067
  if (T.match(JT))
25063
25068
  throw new RangeError(
25064
25069
  "Format string contains an unescaped latin alphabet character `" + T + "`"
25065
25070
  );
25066
- if (M === "''" ? M = "'" : T === "'" && (M = eP(M)), t.indexOf(M) === 0)
25067
- t = t.slice(M.length);
25071
+ if (D === "''" ? D = "'" : T === "'" && (D = eP(D)), t.indexOf(D) === 0)
25072
+ t = t.slice(D.length);
25068
25073
  else
25069
25074
  return a();
25070
25075
  }
25071
25076
  }
25072
25077
  if (t.length > 0 && ZT.test(t))
25073
25078
  return a();
25074
- const h = d.map((M) => M.priority).sort((M, T) => T - M).filter((M, T, C) => C.indexOf(M) === T).map(
25075
- (M) => d.filter((T) => T.priority === M).sort((T, C) => C.subPriority - T.subPriority)
25076
- ).map((M) => M[0]);
25079
+ const h = d.map((D) => D.priority).sort((D, T) => T - D).filter((D, T, C) => C.indexOf(D) === T).map(
25080
+ (D) => d.filter((T) => T.priority === D).sort((T, C) => C.subPriority - T.subPriority)
25081
+ ).map((D) => D[0]);
25077
25082
  let g = V(r, n == null ? void 0 : n.in);
25078
25083
  if (isNaN(+g)) return a();
25079
25084
  const m = {};
25080
- for (const M of h) {
25081
- if (!M.validate(g, c))
25085
+ for (const D of h) {
25086
+ if (!D.validate(g, c))
25082
25087
  return a();
25083
- const T = M.set(g, m, c);
25088
+ const T = D.set(g, m, c);
25084
25089
  Array.isArray(T) ? (g = T[0], Object.assign(m, T[1])) : g = T;
25085
25090
  }
25086
25091
  return g;
@@ -26539,30 +26544,30 @@ var dy = {};
26539
26544
  }), e.default = void 0;
26540
26545
  function a(A) {
26541
26546
  "@babel/helpers - typeof";
26542
- return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(N) {
26543
- return typeof N;
26544
- } : function(N) {
26545
- return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N;
26547
+ return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(I) {
26548
+ return typeof I;
26549
+ } : function(I) {
26550
+ return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I;
26546
26551
  }, a(A);
26547
26552
  }
26548
- function i(A, N) {
26549
- if (!(A instanceof N)) throw new TypeError("Cannot call a class as a function");
26553
+ function i(A, I) {
26554
+ if (!(A instanceof I)) throw new TypeError("Cannot call a class as a function");
26550
26555
  }
26551
- function s(A, N) {
26552
- for (var R = 0; R < N.length; R++) {
26553
- var O = N[R];
26556
+ function s(A, I) {
26557
+ for (var N = 0; N < I.length; N++) {
26558
+ var O = I[N];
26554
26559
  O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(A, x(O.key), O);
26555
26560
  }
26556
26561
  }
26557
- function o(A, N, R) {
26558
- return N && s(A.prototype, N), R && s(A, R), Object.defineProperty(A, "prototype", { writable: !1 }), A;
26562
+ function o(A, I, N) {
26563
+ return I && s(A.prototype, I), N && s(A, N), Object.defineProperty(A, "prototype", { writable: !1 }), A;
26559
26564
  }
26560
- function l(A, N, R) {
26561
- return N = f(N), c(A, u() ? Reflect.construct(N, R || [], f(A).constructor) : N.apply(A, R));
26565
+ function l(A, I, N) {
26566
+ return I = f(I), c(A, u() ? Reflect.construct(I, N || [], f(A).constructor) : I.apply(A, N));
26562
26567
  }
26563
- function c(A, N) {
26564
- if (N && (a(N) == "object" || typeof N == "function")) return N;
26565
- if (N !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
26568
+ function c(A, I) {
26569
+ if (I && (a(I) == "object" || typeof I == "function")) return I;
26570
+ if (I !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
26566
26571
  return d(A);
26567
26572
  }
26568
26573
  function d(A) {
@@ -26580,56 +26585,56 @@ var dy = {};
26580
26585
  })();
26581
26586
  }
26582
26587
  function f(A) {
26583
- return f = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(N) {
26584
- return N.__proto__ || Object.getPrototypeOf(N);
26588
+ return f = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(I) {
26589
+ return I.__proto__ || Object.getPrototypeOf(I);
26585
26590
  }, f(A);
26586
26591
  }
26587
- function h(A, N) {
26588
- if (typeof N != "function" && N !== null) throw new TypeError("Super expression must either be null or a function");
26589
- A.prototype = Object.create(N && N.prototype, { constructor: { value: A, writable: !0, configurable: !0 } }), Object.defineProperty(A, "prototype", { writable: !1 }), N && g(A, N);
26592
+ function h(A, I) {
26593
+ if (typeof I != "function" && I !== null) throw new TypeError("Super expression must either be null or a function");
26594
+ A.prototype = Object.create(I && I.prototype, { constructor: { value: A, writable: !0, configurable: !0 } }), Object.defineProperty(A, "prototype", { writable: !1 }), I && g(A, I);
26590
26595
  }
26591
- function g(A, N) {
26592
- return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, O) {
26593
- return R.__proto__ = O, R;
26594
- }, g(A, N);
26596
+ function g(A, I) {
26597
+ return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(N, O) {
26598
+ return N.__proto__ = O, N;
26599
+ }, g(A, I);
26595
26600
  }
26596
- function m(A, N) {
26597
- var R = Object.keys(A);
26601
+ function m(A, I) {
26602
+ var N = Object.keys(A);
26598
26603
  if (Object.getOwnPropertySymbols) {
26599
26604
  var O = Object.getOwnPropertySymbols(A);
26600
- N && (O = O.filter(function(L) {
26605
+ I && (O = O.filter(function(L) {
26601
26606
  return Object.getOwnPropertyDescriptor(A, L).enumerable;
26602
- })), R.push.apply(R, O);
26607
+ })), N.push.apply(N, O);
26603
26608
  }
26604
- return R;
26609
+ return N;
26605
26610
  }
26606
26611
  function p(A) {
26607
- for (var N = 1; N < arguments.length; N++) {
26608
- var R = arguments[N] != null ? arguments[N] : {};
26609
- N % 2 ? m(Object(R), !0).forEach(function(O) {
26610
- w(A, O, R[O]);
26611
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(R)) : m(Object(R)).forEach(function(O) {
26612
- Object.defineProperty(A, O, Object.getOwnPropertyDescriptor(R, O));
26612
+ for (var I = 1; I < arguments.length; I++) {
26613
+ var N = arguments[I] != null ? arguments[I] : {};
26614
+ I % 2 ? m(Object(N), !0).forEach(function(O) {
26615
+ w(A, O, N[O]);
26616
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(N)) : m(Object(N)).forEach(function(O) {
26617
+ Object.defineProperty(A, O, Object.getOwnPropertyDescriptor(N, O));
26613
26618
  });
26614
26619
  }
26615
26620
  return A;
26616
26621
  }
26617
- function w(A, N, R) {
26618
- return (N = x(N)) in A ? Object.defineProperty(A, N, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : A[N] = R, A;
26622
+ function w(A, I, N) {
26623
+ return (I = x(I)) in A ? Object.defineProperty(A, I, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : A[I] = N, A;
26619
26624
  }
26620
26625
  function x(A) {
26621
- var N = k(A, "string");
26622
- return a(N) == "symbol" ? N : N + "";
26626
+ var I = k(A, "string");
26627
+ return a(I) == "symbol" ? I : I + "";
26623
26628
  }
26624
- function k(A, N) {
26629
+ function k(A, I) {
26625
26630
  if (a(A) != "object" || !A) return A;
26626
- var R = A[Symbol.toPrimitive];
26627
- if (R !== void 0) {
26628
- var O = R.call(A, N);
26631
+ var N = A[Symbol.toPrimitive];
26632
+ if (N !== void 0) {
26633
+ var O = N.call(A, I);
26629
26634
  if (a(O) != "object") return O;
26630
26635
  throw new TypeError("@@toPrimitive must return a primitive value.");
26631
26636
  }
26632
- return (N === "string" ? String : Number)(A);
26637
+ return (I === "string" ? String : Number)(A);
26633
26638
  }
26634
26639
  var y = {
26635
26640
  x: "clientWidth",
@@ -26643,7 +26648,7 @@ var dy = {};
26643
26648
  }, E = {
26644
26649
  x: "offsetWidth",
26645
26650
  y: "offsetHeight"
26646
- }, M = {
26651
+ }, D = {
26647
26652
  x: "offsetLeft",
26648
26653
  y: "offsetTop"
26649
26654
  }, T = {
@@ -26655,15 +26660,15 @@ var dy = {};
26655
26660
  }, z = {
26656
26661
  x: "scrollLeft",
26657
26662
  y: "scrollTop"
26658
- }, S = {
26663
+ }, F = {
26659
26664
  x: "width",
26660
26665
  y: "height"
26661
- }, F = function() {
26662
- }, D = function() {
26666
+ }, M = function() {
26667
+ }, S = function() {
26663
26668
  if (typeof window > "u") return !1;
26664
26669
  var A = !1;
26665
26670
  try {
26666
- document.createElement("div").addEventListener("test", F, {
26671
+ document.createElement("div").addEventListener("test", M, {
26667
26672
  get passive() {
26668
26673
  return A = !0, !1;
26669
26674
  }
@@ -26673,11 +26678,11 @@ var dy = {};
26673
26678
  return A;
26674
26679
  }() ? {
26675
26680
  passive: !0
26676
- } : !1, I = "ReactList failed to reach a stable state.", $ = 40, B = function(N, R) {
26677
- for (var O in R) if (N[O] !== R[O]) return !1;
26681
+ } : !1, R = "ReactList failed to reach a stable state.", $ = 40, B = function(I, N) {
26682
+ for (var O in N) if (I[O] !== N[O]) return !1;
26678
26683
  return !0;
26679
- }, U = function(N) {
26680
- for (var R = N.props.axis, O = N.getEl(), L = T[R]; O = O.parentElement; )
26684
+ }, U = function(I) {
26685
+ for (var N = I.props.axis, O = I.getEl(), L = T[N]; O = O.parentElement; )
26681
26686
  switch (window.getComputedStyle(O)[L]) {
26682
26687
  case "auto":
26683
26688
  case "scroll":
@@ -26685,27 +26690,27 @@ var dy = {};
26685
26690
  return O;
26686
26691
  }
26687
26692
  return window;
26688
- }, Z = function(N) {
26689
- var R = N.props.axis, O = N.scrollParent;
26690
- return O === window ? window[_[R]] : O[y[R]];
26691
- }, P = function(N, R) {
26692
- var O = N.length, L = N.minSize, X = N.type, q = R.from, G = R.size, J = R.itemsPerRow;
26693
+ }, Z = function(I) {
26694
+ var N = I.props.axis, O = I.scrollParent;
26695
+ return O === window ? window[_[N]] : O[y[N]];
26696
+ }, P = function(I, N) {
26697
+ var O = I.length, L = I.minSize, X = I.type, q = N.from, G = N.size, J = N.itemsPerRow;
26693
26698
  G = Math.max(G, L);
26694
26699
  var ne = G % J;
26695
- return ne && (G += J - ne), G > O && (G = O), q = X === "simple" || !q ? 0 : Math.max(Math.min(q, O - G), 0), (ne = q % J) && (q -= ne, G += ne), q === R.from && G === R.size ? R : p(p({}, R), {}, {
26700
+ return ne && (G += J - ne), G > O && (G = O), q = X === "simple" || !q ? 0 : Math.max(Math.min(q, O - G), 0), (ne = q % J) && (q -= ne, G += ne), q === N.from && G === N.size ? N : p(p({}, N), {}, {
26696
26701
  from: q,
26697
26702
  size: G
26698
26703
  });
26699
26704
  }, j = e.default = /* @__PURE__ */ function(A) {
26700
- function N(R) {
26705
+ function I(N) {
26701
26706
  var O;
26702
- return i(this, N), O = l(this, N, [R]), O.state = P(R, {
26707
+ return i(this, I), O = l(this, I, [N]), O.state = P(N, {
26703
26708
  itemsPerRow: 1,
26704
- from: R.initialIndex,
26709
+ from: N.initialIndex,
26705
26710
  size: 0
26706
26711
  }), O.cache = {}, O.cachedScrollPosition = null, O.prevPrevState = {}, O.unstable = !1, O.updateCounter = 0, O;
26707
26712
  }
26708
- return h(N, A), o(N, [{
26713
+ return h(I, A), o(I, [{
26709
26714
  key: "componentDidMount",
26710
26715
  value: function() {
26711
26716
  this.updateFrameAndClearCache = this.updateFrameAndClearCache.bind(this), window.addEventListener("resize", this.updateFrameAndClearCache), this.updateFrame(this.scrollTo.bind(this, this.props.initialIndex));
@@ -26716,7 +26721,7 @@ var dy = {};
26716
26721
  var L = this;
26717
26722
  if (this.props.axis !== O.axis && this.clearSizeCache(), !this.unstable) {
26718
26723
  if (++this.updateCounter > $)
26719
- return this.unstable = !0, console.error(I);
26724
+ return this.unstable = !0, console.error(R);
26720
26725
  this.updateCounterTimeoutId || (this.updateCounterTimeoutId = setTimeout(function() {
26721
26726
  L.updateCounter = 0, delete L.updateCounterTimeoutId;
26722
26727
  }, 0)), this.updateFrame();
@@ -26731,12 +26736,12 @@ var dy = {};
26731
26736
  }, {
26732
26737
  key: "componentWillUnmount",
26733
26738
  value: function() {
26734
- window.removeEventListener("resize", this.updateFrameAndClearCache), this.scrollParent.removeEventListener("scroll", this.updateFrameAndClearCache, D), this.scrollParent.removeEventListener("mousewheel", F, D);
26739
+ window.removeEventListener("resize", this.updateFrameAndClearCache), this.scrollParent.removeEventListener("scroll", this.updateFrameAndClearCache, S), this.scrollParent.removeEventListener("mousewheel", M, S);
26735
26740
  }
26736
26741
  }, {
26737
26742
  key: "getOffset",
26738
26743
  value: function(O) {
26739
- var L = this.props.axis, X = O[v[L]] || 0, q = M[L];
26744
+ var L = this.props.axis, X = O[v[L]] || 0, q = D[L];
26740
26745
  do
26741
26746
  X += O[q] || 0;
26742
26747
  while (O = O.offsetParent);
@@ -26801,7 +26806,7 @@ var dy = {};
26801
26806
  if (!ne.length) return {};
26802
26807
  var H = ne[0], ae = H[E[L]], re = Math.abs(ae - G);
26803
26808
  if ((isNaN(re) || re >= 1) && (G = ae), !G) return {};
26804
- var le = M[L], fe = H[le];
26809
+ var le = D[L], fe = H[le];
26805
26810
  J = 1;
26806
26811
  for (var de = ne[J]; de && de[le] === fe; de = ne[J])
26807
26812
  ++J;
@@ -26824,7 +26829,7 @@ var dy = {};
26824
26829
  }, {
26825
26830
  key: "updateFrame",
26826
26831
  value: function(O) {
26827
- switch (this.updateScrollParent(), typeof O != "function" && (O = F), this.props.type) {
26832
+ switch (this.updateScrollParent(), typeof O != "function" && (O = M), this.props.type) {
26828
26833
  case "simple":
26829
26834
  return this.updateSimpleFrame(O);
26830
26835
  case "variable":
@@ -26837,7 +26842,7 @@ var dy = {};
26837
26842
  key: "updateScrollParent",
26838
26843
  value: function() {
26839
26844
  var O = this.scrollParent;
26840
- this.scrollParent = this.props.scrollParentGetter(this), O !== this.scrollParent && (O && (O.removeEventListener("scroll", this.updateFrameAndClearCache), O.removeEventListener("mousewheel", F)), this.clearSizeCache(), this.scrollParent.addEventListener("scroll", this.updateFrameAndClearCache, D), this.scrollParent.addEventListener("mousewheel", F, D));
26845
+ this.scrollParent = this.props.scrollParentGetter(this), O !== this.scrollParent && (O && (O.removeEventListener("scroll", this.updateFrameAndClearCache), O.removeEventListener("mousewheel", M)), this.clearSizeCache(), this.scrollParent.addEventListener("scroll", this.updateFrameAndClearCache, S), this.scrollParent.addEventListener("mousewheel", M, S));
26841
26846
  }
26842
26847
  }, {
26843
26848
  key: "updateSimpleFrame",
@@ -26966,7 +26971,7 @@ var dy = {};
26966
26971
  var le = {
26967
26972
  position: "relative"
26968
26973
  }, fe = {}, de = Math.ceil(q / ae) * ae, ie = this.getSpaceBefore(de, fe);
26969
- ie && (le[S[X]] = ie, X === "x" && (le.overflowX = "hidden"));
26974
+ ie && (le[F[X]] = ie, X === "x" && (le.overflowX = "hidden"));
26970
26975
  var We = this.getSpaceBefore(H, fe), ge = X === "x" ? We : 0, Fe = X === "y" ? We : 0, je = J ? "translate3d(".concat(ge, "px, ").concat(Fe, "px, 0)") : "translate(".concat(ge, "px, ").concat(Fe, "px)"), Ye = {
26971
26976
  msTransform: je,
26972
26977
  WebkitTransform: je,
@@ -26993,15 +26998,15 @@ var dy = {};
26993
26998
  }(r.Component);
26994
26999
  w(j, "displayName", "ReactList"), w(j, "defaultProps", {
26995
27000
  axis: "y",
26996
- itemRenderer: function(N, R) {
27001
+ itemRenderer: function(I, N) {
26997
27002
  return /* @__PURE__ */ (0, n.jsx)("div", {
26998
- children: N
26999
- }, R);
27003
+ children: I
27004
+ }, N);
27000
27005
  },
27001
- itemsRenderer: function(N, R) {
27006
+ itemsRenderer: function(I, N) {
27002
27007
  return /* @__PURE__ */ (0, n.jsx)("div", {
27003
- ref: R,
27004
- children: N
27008
+ ref: N,
27009
+ children: I
27005
27010
  });
27006
27011
  },
27007
27012
  length: 0,