@matthiaskrijgsman/mat-ui 0.0.27 → 0.0.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.
package/dist/index.js CHANGED
@@ -50,13 +50,13 @@ var Gt = {};
50
50
  var No;
51
51
  function Fu() {
52
52
  return No || (No = 1, process.env.NODE_ENV !== "production" && (function() {
53
- function e(g) {
54
- if (g == null) return null;
55
- if (typeof g == "function")
56
- return g.$$typeof === B ? null : g.displayName || g.name || null;
57
- if (typeof g == "string") return g;
58
- switch (g) {
59
- case x:
53
+ function e(x) {
54
+ if (x == null) return null;
55
+ if (typeof x == "function")
56
+ return x.$$typeof === B ? null : x.displayName || x.name || null;
57
+ if (typeof x == "string") return x;
58
+ switch (x) {
59
+ case v:
60
60
  return "Fragment";
61
61
  case h:
62
62
  return "Profiler";
@@ -69,126 +69,126 @@ function Fu() {
69
69
  case O:
70
70
  return "Activity";
71
71
  }
72
- if (typeof g == "object")
73
- switch (typeof g.tag == "number" && console.error(
72
+ if (typeof x == "object")
73
+ switch (typeof x.tag == "number" && console.error(
74
74
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
75
- ), g.$$typeof) {
76
- case v:
75
+ ), x.$$typeof) {
76
+ case g:
77
77
  return "Portal";
78
78
  case w:
79
- return (g.displayName || "Context") + ".Provider";
79
+ return (x.displayName || "Context") + ".Provider";
80
80
  case T:
81
- return (g._context.displayName || "Context") + ".Consumer";
81
+ return (x._context.displayName || "Context") + ".Consumer";
82
82
  case S:
83
- var k = g.render;
84
- return g = g.displayName, g || (g = k.displayName || k.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
83
+ var k = x.render;
84
+ return x = x.displayName, x || (x = k.displayName || k.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
85
85
  case j:
86
- return k = g.displayName || null, k !== null ? k : e(g.type) || "Memo";
86
+ return k = x.displayName || null, k !== null ? k : e(x.type) || "Memo";
87
87
  case P:
88
- k = g._payload, g = g._init;
88
+ k = x._payload, x = x._init;
89
89
  try {
90
- return e(g(k));
90
+ return e(x(k));
91
91
  } catch {
92
92
  }
93
93
  }
94
94
  return null;
95
95
  }
96
- function t(g) {
97
- return "" + g;
96
+ function t(x) {
97
+ return "" + x;
98
98
  }
99
- function n(g) {
99
+ function n(x) {
100
100
  try {
101
- t(g);
101
+ t(x);
102
102
  var k = !1;
103
103
  } catch {
104
104
  k = !0;
105
105
  }
106
106
  if (k) {
107
107
  k = console;
108
- var M = k.error, F = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
108
+ var M = k.error, F = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
109
109
  return M.call(
110
110
  k,
111
111
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
112
112
  F
113
- ), t(g);
113
+ ), t(x);
114
114
  }
115
115
  }
116
- function i(g) {
117
- if (g === x) return "<>";
118
- if (typeof g == "object" && g !== null && g.$$typeof === P)
116
+ function i(x) {
117
+ if (x === v) return "<>";
118
+ if (typeof x == "object" && x !== null && x.$$typeof === P)
119
119
  return "<...>";
120
120
  try {
121
- var k = e(g);
121
+ var k = e(x);
122
122
  return k ? "<" + k + ">" : "<...>";
123
123
  } catch {
124
124
  return "<...>";
125
125
  }
126
126
  }
127
127
  function r() {
128
- var g = D.A;
129
- return g === null ? null : g.getOwner();
128
+ var x = D.A;
129
+ return x === null ? null : x.getOwner();
130
130
  }
131
131
  function o() {
132
132
  return Error("react-stack-top-frame");
133
133
  }
134
- function s(g) {
135
- if (X.call(g, "key")) {
136
- var k = Object.getOwnPropertyDescriptor(g, "key").get;
134
+ function s(x) {
135
+ if (X.call(x, "key")) {
136
+ var k = Object.getOwnPropertyDescriptor(x, "key").get;
137
137
  if (k && k.isReactWarning) return !1;
138
138
  }
139
- return g.key !== void 0;
139
+ return x.key !== void 0;
140
140
  }
141
- function a(g, k) {
141
+ function a(x, k) {
142
142
  function M() {
143
143
  J || (J = !0, console.error(
144
144
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
145
145
  k
146
146
  ));
147
147
  }
148
- M.isReactWarning = !0, Object.defineProperty(g, "key", {
148
+ M.isReactWarning = !0, Object.defineProperty(x, "key", {
149
149
  get: M,
150
150
  configurable: !0
151
151
  });
152
152
  }
153
153
  function l() {
154
- var g = e(this.type);
155
- return te[g] || (te[g] = !0, console.error(
154
+ var x = e(this.type);
155
+ return te[x] || (te[x] = !0, console.error(
156
156
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
157
- )), g = this.props.ref, g !== void 0 ? g : null;
157
+ )), x = this.props.ref, x !== void 0 ? x : null;
158
158
  }
159
- function u(g, k, M, F, V, _, U, z) {
160
- return M = _.ref, g = {
159
+ function u(x, k, M, F, V, _, U, z) {
160
+ return M = _.ref, x = {
161
161
  $$typeof: m,
162
- type: g,
162
+ type: x,
163
163
  key: k,
164
164
  props: _,
165
165
  _owner: V
166
- }, (M !== void 0 ? M : null) !== null ? Object.defineProperty(g, "ref", {
166
+ }, (M !== void 0 ? M : null) !== null ? Object.defineProperty(x, "ref", {
167
167
  enumerable: !1,
168
168
  get: l
169
- }) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
169
+ }) : Object.defineProperty(x, "ref", { enumerable: !1, value: null }), x._store = {}, Object.defineProperty(x._store, "validated", {
170
170
  configurable: !1,
171
171
  enumerable: !1,
172
172
  writable: !0,
173
173
  value: 0
174
- }), Object.defineProperty(g, "_debugInfo", {
174
+ }), Object.defineProperty(x, "_debugInfo", {
175
175
  configurable: !1,
176
176
  enumerable: !1,
177
177
  writable: !0,
178
178
  value: null
179
- }), Object.defineProperty(g, "_debugStack", {
179
+ }), Object.defineProperty(x, "_debugStack", {
180
180
  configurable: !1,
181
181
  enumerable: !1,
182
182
  writable: !0,
183
183
  value: U
184
- }), Object.defineProperty(g, "_debugTask", {
184
+ }), Object.defineProperty(x, "_debugTask", {
185
185
  configurable: !1,
186
186
  enumerable: !1,
187
187
  writable: !0,
188
188
  value: z
189
- }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
189
+ }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
190
190
  }
191
- function c(g, k, M, F, V, _, U, z) {
191
+ function c(x, k, M, F, V, _, U, z) {
192
192
  var L = k.children;
193
193
  if (L !== void 0)
194
194
  if (F)
@@ -202,7 +202,7 @@ function Fu() {
202
202
  );
203
203
  else d(L);
204
204
  if (X.call(k, "key")) {
205
- L = e(g);
205
+ L = e(x);
206
206
  var K = Object.keys(k).filter(function(ce) {
207
207
  return ce !== "key";
208
208
  });
@@ -226,9 +226,9 @@ React keys must be passed directly to JSX without using spread:
226
226
  } else M = k;
227
227
  return L && a(
228
228
  M,
229
- typeof g == "function" ? g.displayName || g.name || "Unknown" : g
229
+ typeof x == "function" ? x.displayName || x.name || "Unknown" : x
230
230
  ), u(
231
- g,
231
+ x,
232
232
  L,
233
233
  _,
234
234
  V,
@@ -238,44 +238,44 @@ React keys must be passed directly to JSX without using spread:
238
238
  z
239
239
  );
240
240
  }
241
- function d(g) {
242
- typeof g == "object" && g !== null && g.$$typeof === m && g._store && (g._store.validated = 1);
241
+ function d(x) {
242
+ typeof x == "object" && x !== null && x.$$typeof === m && x._store && (x._store.validated = 1);
243
243
  }
244
- var f = qa, m = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), D = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, H = Array.isArray, N = console.createTask ? console.createTask : function() {
244
+ var f = qa, m = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), D = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, H = Array.isArray, N = console.createTask ? console.createTask : function() {
245
245
  return null;
246
246
  };
247
247
  f = {
248
- react_stack_bottom_frame: function(g) {
249
- return g();
248
+ react_stack_bottom_frame: function(x) {
249
+ return x();
250
250
  }
251
251
  };
252
252
  var J, te = {}, Y = f.react_stack_bottom_frame.bind(
253
253
  f,
254
254
  o
255
255
  )(), W = N(i(o)), G = {};
256
- Gt.Fragment = x, Gt.jsx = function(g, k, M, F, V) {
256
+ Gt.Fragment = v, Gt.jsx = function(x, k, M, F, V) {
257
257
  var _ = 1e4 > D.recentlyCreatedOwnerStacks++;
258
258
  return c(
259
- g,
259
+ x,
260
260
  k,
261
261
  M,
262
262
  !1,
263
263
  F,
264
264
  V,
265
265
  _ ? Error("react-stack-top-frame") : Y,
266
- _ ? N(i(g)) : W
266
+ _ ? N(i(x)) : W
267
267
  );
268
- }, Gt.jsxs = function(g, k, M, F, V) {
268
+ }, Gt.jsxs = function(x, k, M, F, V) {
269
269
  var _ = 1e4 > D.recentlyCreatedOwnerStacks++;
270
270
  return c(
271
- g,
271
+ x,
272
272
  k,
273
273
  M,
274
274
  !0,
275
275
  F,
276
276
  V,
277
277
  _ ? Error("react-stack-top-frame") : Y,
278
- _ ? N(i(g)) : W
278
+ _ ? N(i(x)) : W
279
279
  );
280
280
  };
281
281
  })()), Gt;
@@ -433,8 +433,8 @@ function Hu(e, t) {
433
433
  * Schedule a process to run on the next frame.
434
434
  */
435
435
  schedule: (c, d = !1, f = !1) => {
436
- const v = f && r ? n : i;
437
- return d && s.add(c), v.has(c) || v.add(c), c;
436
+ const g = f && r ? n : i;
437
+ return d && s.add(c), g.has(c) || g.add(c), c;
438
438
  },
439
439
  /**
440
440
  * Cancel the provided callback from running on the next frame.
@@ -462,11 +462,11 @@ function pl(e, t) {
462
462
  delta: 0,
463
463
  timestamp: 0,
464
464
  isProcessing: !1
465
- }, o = () => n = !0, s = Cn.reduce((w, S) => (w[S] = Hu(o), w), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: d, preRender: f, render: m, postRender: v } = s, x = () => {
465
+ }, o = () => n = !0, s = Cn.reduce((w, S) => (w[S] = Hu(o), w), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: d, preRender: f, render: m, postRender: g } = s, v = () => {
466
466
  const w = Ye.useManualTiming ? r.timestamp : performance.now();
467
- n = !1, Ye.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(w - r.timestamp, Ku), 1)), r.timestamp = w, r.isProcessing = !0, a.process(r), l.process(r), u.process(r), c.process(r), d.process(r), f.process(r), m.process(r), v.process(r), r.isProcessing = !1, n && t && (i = !1, e(x));
467
+ n = !1, Ye.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(w - r.timestamp, Ku), 1)), r.timestamp = w, r.isProcessing = !0, a.process(r), l.process(r), u.process(r), c.process(r), d.process(r), f.process(r), m.process(r), g.process(r), r.isProcessing = !1, n && t && (i = !1, e(v));
468
468
  }, b = () => {
469
- n = !0, i = !0, r.isProcessing || e(x);
469
+ n = !0, i = !0, r.isProcessing || e(v);
470
470
  };
471
471
  return { schedule: Cn.reduce((w, S) => {
472
472
  const y = s[S];
@@ -747,11 +747,11 @@ function bd({ duration: e = ae.duration, bounce: t = ae.bounce, velocity: n = ae
747
747
  _t(e <= /* @__PURE__ */ Oe(ae.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
748
748
  let s = 1 - t;
749
749
  s = Ke(ae.minDamping, ae.maxDamping, s), e = Ke(ae.minDuration, ae.maxDuration, /* @__PURE__ */ ze(e)), s < 1 ? (r = (u) => {
750
- const c = u * s, d = c * e, f = c - n, m = Ji(u, s), v = Math.exp(-d);
751
- return ki - f / m * v;
750
+ const c = u * s, d = c * e, f = c - n, m = Ji(u, s), g = Math.exp(-d);
751
+ return ki - f / m * g;
752
752
  }, o = (u) => {
753
- const d = u * s * e, f = d * n + n, m = Math.pow(s, 2) * Math.pow(u, 2) * e, v = Math.exp(-d), x = Ji(Math.pow(u, 2), s);
754
- return (-r(u) + ki > 0 ? -1 : 1) * ((f - m) * v) / x;
753
+ const d = u * s * e, f = d * n + n, m = Math.pow(s, 2) * Math.pow(u, 2) * e, g = Math.exp(-d), v = Ji(Math.pow(u, 2), s);
754
+ return (-r(u) + ki > 0 ? -1 : 1) * ((f - m) * g) / v;
755
755
  }) : (r = (u) => {
756
756
  const c = Math.exp(-u * e), d = (u - n) * e + 1;
757
757
  return -ki + c * d;
@@ -827,22 +827,22 @@ function an(e = ae.visualDuration, t = ae.bounce) {
827
827
  const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: d, velocity: f, isResolvedFromDuration: m } = jd({
828
828
  ...n,
829
829
  velocity: -/* @__PURE__ */ ze(n.velocity || 0)
830
- }), v = f || 0, x = u / (2 * Math.sqrt(l * c)), b = s - o, h = /* @__PURE__ */ ze(Math.sqrt(l / c)), T = Math.abs(b) < 5;
830
+ }), g = f || 0, v = u / (2 * Math.sqrt(l * c)), b = s - o, h = /* @__PURE__ */ ze(Math.sqrt(l / c)), T = Math.abs(b) < 5;
831
831
  i || (i = T ? ae.restSpeed.granular : ae.restSpeed.default), r || (r = T ? ae.restDelta.granular : ae.restDelta.default);
832
832
  let w;
833
- if (x < 1) {
834
- const y = Ji(h, x);
833
+ if (v < 1) {
834
+ const y = Ji(h, v);
835
835
  w = (C) => {
836
- const j = Math.exp(-x * h * C);
837
- return s - j * ((v + x * h * b) / y * Math.sin(y * C) + b * Math.cos(y * C));
836
+ const j = Math.exp(-v * h * C);
837
+ return s - j * ((g + v * h * b) / y * Math.sin(y * C) + b * Math.cos(y * C));
838
838
  };
839
- } else if (x === 1)
840
- w = (y) => s - Math.exp(-h * y) * (b + (v + h * b) * y);
839
+ } else if (v === 1)
840
+ w = (y) => s - Math.exp(-h * y) * (b + (g + h * b) * y);
841
841
  else {
842
- const y = h * Math.sqrt(x * x - 1);
842
+ const y = h * Math.sqrt(v * v - 1);
843
843
  w = (C) => {
844
- const j = Math.exp(-x * h * C), P = Math.min(y * C, 300);
845
- return s - j * ((v + x * h * b) * Math.sinh(P) + y * b * Math.cosh(P)) / y;
844
+ const j = Math.exp(-v * h * C), P = Math.min(y * C, 300);
845
+ return s - j * ((g + v * h * b) * Math.sinh(P) + y * b * Math.cosh(P)) / y;
846
846
  };
847
847
  }
848
848
  const S = {
@@ -852,8 +852,8 @@ function an(e = ae.visualDuration, t = ae.bounce) {
852
852
  if (m)
853
853
  a.done = y >= d;
854
854
  else {
855
- let j = y === 0 ? v : 0;
856
- x < 1 && (j = y === 0 ? /* @__PURE__ */ Oe(v) : Sl(w, y, C));
855
+ let j = y === 0 ? g : 0;
856
+ v < 1 && (j = y === 0 ? /* @__PURE__ */ Oe(g) : Sl(w, y, C));
857
857
  const P = Math.abs(j) <= i, O = Math.abs(s - C) <= r;
858
858
  a.done = P && O;
859
859
  }
@@ -876,18 +876,18 @@ function Qi({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 3
876
876
  const d = e[0], f = {
877
877
  done: !1,
878
878
  value: d
879
- }, m = (P) => a !== void 0 && P < a || l !== void 0 && P > l, v = (P) => a === void 0 ? l : l === void 0 || Math.abs(a - P) < Math.abs(l - P) ? a : l;
880
- let x = n * t;
881
- const b = d + x, h = s === void 0 ? b : s(b);
882
- h !== b && (x = h - d);
883
- const T = (P) => -x * Math.exp(-P / i), w = (P) => h + T(P), S = (P) => {
879
+ }, m = (P) => a !== void 0 && P < a || l !== void 0 && P > l, g = (P) => a === void 0 ? l : l === void 0 || Math.abs(a - P) < Math.abs(l - P) ? a : l;
880
+ let v = n * t;
881
+ const b = d + v, h = s === void 0 ? b : s(b);
882
+ h !== b && (v = h - d);
883
+ const T = (P) => -v * Math.exp(-P / i), w = (P) => h + T(P), S = (P) => {
884
884
  const O = T(P), B = w(P);
885
885
  f.done = Math.abs(O) <= u, f.value = f.done ? h : B;
886
886
  };
887
887
  let y, C;
888
888
  const j = (P) => {
889
889
  m(f.value) && (y = P, C = an({
890
- keyframes: [f.value, v(f.value)],
890
+ keyframes: [f.value, g(f.value)],
891
891
  velocity: Sl(w, P, f.value),
892
892
  // TODO: This should be passing * 1000
893
893
  damping: r,
@@ -1041,7 +1041,7 @@ class Gr extends Yr {
1041
1041
  const { generator: i, totalDuration: r, mixKeyframes: o, mirroredGenerator: s, resolvedDuration: a, calculatedDuration: l } = this;
1042
1042
  if (this.startTime === null)
1043
1043
  return i.next(0);
1044
- const { delay: u = 0, keyframes: c, repeat: d, repeatType: f, repeatDelay: m, type: v, onUpdate: x, finalKeyframe: b } = this.options;
1044
+ const { delay: u = 0, keyframes: c, repeat: d, repeatType: f, repeatDelay: m, type: g, onUpdate: v, finalKeyframe: b } = this.options;
1045
1045
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - r / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
1046
1046
  const h = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), T = this.playbackSpeed >= 0 ? h < 0 : h > r;
1047
1047
  this.currentTime = Math.max(h, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
@@ -1056,7 +1056,7 @@ class Gr extends Yr {
1056
1056
  let { done: C } = y;
1057
1057
  !T && l !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
1058
1058
  const j = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
1059
- return j && v !== Qi && (y.value = Kr(c, this.options, b, this.speed)), x && x(y.value), j && this.finish(), y;
1059
+ return j && g !== Qi && (y.value = Kr(c, this.options, b, this.speed)), v && v(y.value), j && this.finish(), y;
1060
1060
  }
1061
1061
  /**
1062
1062
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -1528,7 +1528,7 @@ class op extends Yr {
1528
1528
  element: c,
1529
1529
  ...d
1530
1530
  }, m = c?.KeyframeResolver || Xr;
1531
- this.keyframeResolver = new m(a, (v, x, b) => this.onKeyframesResolved(v, x, f, !b), l, u, c), this.keyframeResolver?.scheduleResolve();
1531
+ this.keyframeResolver = new m(a, (g, v, b) => this.onKeyframesResolved(g, v, f, !b), l, u, c), this.keyframeResolver?.scheduleResolve();
1532
1532
  }
1533
1533
  onKeyframesResolved(t, n, i, r) {
1534
1534
  this.keyframeResolver = void 0;
@@ -2179,8 +2179,8 @@ function Pp(e, t, n = {}) {
2179
2179
  if (!is(a))
2180
2180
  return;
2181
2181
  _n.add(l);
2182
- const u = t(l, a), c = (m, v) => {
2183
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), _n.has(l) && _n.delete(l), is(m) && typeof u == "function" && u(m, { success: v });
2182
+ const u = t(l, a), c = (m, g) => {
2183
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), _n.has(l) && _n.delete(l), is(m) && typeof u == "function" && u(m, { success: g });
2184
2184
  }, d = (m) => {
2185
2185
  c(m, l === window || l === document || n.useGlobalTarget || Wl(l, m.target));
2186
2186
  }, f = (m) => {
@@ -2235,10 +2235,10 @@ function Op({ children: e, isPresent: t, anchorX: n, root: i }) {
2235
2235
  return;
2236
2236
  const m = n === "left" ? `left: ${d}` : `right: ${f}`;
2237
2237
  o.current.dataset.motionPopId = r;
2238
- const v = document.createElement("style");
2239
- a && (v.nonce = a);
2240
- const x = i ?? document.head;
2241
- return x.appendChild(v), v.sheet && v.sheet.insertRule(`
2238
+ const g = document.createElement("style");
2239
+ a && (g.nonce = a);
2240
+ const v = i ?? document.head;
2241
+ return v.appendChild(g), g.sheet && g.sheet.insertRule(`
2242
2242
  [data-motion-pop-id="${r}"] {
2243
2243
  position: absolute !important;
2244
2244
  width: ${l}px !important;
@@ -2247,7 +2247,7 @@ function Op({ children: e, isPresent: t, anchorX: n, root: i }) {
2247
2247
  top: ${c}px !important;
2248
2248
  }
2249
2249
  `), () => {
2250
- x.contains(v) && x.removeChild(v);
2250
+ v.contains(g) && v.removeChild(g);
2251
2251
  };
2252
2252
  }, [t]), p.jsx(Dp, { isPresent: t, childRef: o, sizeRef: s, children: E.cloneElement(e, { ref: o }) });
2253
2253
  }
@@ -2260,15 +2260,15 @@ const Mp = ({ children: e, initial: t, isPresent: n, onExitComplete: i, custom:
2260
2260
  custom: r,
2261
2261
  onExitComplete: (m) => {
2262
2262
  u.set(m, !0);
2263
- for (const v of u.values())
2264
- if (!v)
2263
+ for (const g of u.values())
2264
+ if (!g)
2265
2265
  return;
2266
2266
  i && i();
2267
2267
  },
2268
2268
  register: (m) => (u.set(m, !1), () => u.delete(m))
2269
2269
  }), [n, u, i]);
2270
2270
  return o && d && (f = { ...f }), Ee(() => {
2271
- u.forEach((m, v) => u.set(v, !1));
2271
+ u.forEach((m, g) => u.set(g, !1));
2272
2272
  }, [n]), E.useEffect(() => {
2273
2273
  !n && !u.size && i && i();
2274
2274
  }, [n]), s === "popLayout" && (e = p.jsx(Op, { isPresent: n, anchorX: a, root: l, children: e })), p.jsx(ni.Provider, { value: f, children: e });
@@ -2296,12 +2296,12 @@ function rs(e) {
2296
2296
  }), t;
2297
2297
  }
2298
2298
  const ri = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1, anchorX: a = "left", root: l }) => {
2299
- const [u, c] = ql(s), d = Ee(() => rs(e), [e]), f = s && !u ? [] : d.map(Rn), m = ye(!0), v = ye(d), x = Mr(() => /* @__PURE__ */ new Map()), [b, h] = ue(d), [T, w] = ue(d);
2299
+ const [u, c] = ql(s), d = Ee(() => rs(e), [e]), f = s && !u ? [] : d.map(Rn), m = ye(!0), g = ye(d), v = Mr(() => /* @__PURE__ */ new Map()), [b, h] = ue(d), [T, w] = ue(d);
2300
2300
  Ga(() => {
2301
- m.current = !1, v.current = d;
2301
+ m.current = !1, g.current = d;
2302
2302
  for (let C = 0; C < T.length; C++) {
2303
2303
  const j = Rn(T[C]);
2304
- f.includes(j) ? x.delete(j) : x.get(j) !== !0 && x.set(j, !1);
2304
+ f.includes(j) ? v.delete(j) : v.get(j) !== !0 && v.set(j, !1);
2305
2305
  }
2306
2306
  }, [T, f.length, f.join("-")]);
2307
2307
  const S = [];
@@ -2317,14 +2317,14 @@ const ri = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presen
2317
2317
  const { forceRender: y } = me(Or);
2318
2318
  return p.jsx(p.Fragment, { children: T.map((C) => {
2319
2319
  const j = Rn(C), P = s && !u ? !1 : d === T || f.includes(j), O = () => {
2320
- if (x.has(j))
2321
- x.set(j, !0);
2320
+ if (v.has(j))
2321
+ v.set(j, !0);
2322
2322
  else
2323
2323
  return;
2324
2324
  let B = !0;
2325
- x.forEach((D) => {
2325
+ v.forEach((D) => {
2326
2326
  D || (B = !1);
2327
- }), B && (y?.(), w(v.current), s && c?.(), i && i());
2327
+ }), B && (y?.(), w(g.current), s && c?.(), i && i());
2328
2328
  };
2329
2329
  return p.jsx(Mp, { isPresent: P, initial: !m.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: o, root: l, onExitComplete: P ? void 0 : O, anchorX: a, children: C }, j);
2330
2330
  }) });
@@ -2669,9 +2669,9 @@ function tf(e, t, n, i) {
2669
2669
  if (d && typeof d != "boolean" && !si(d)) {
2670
2670
  const f = Array.isArray(d) ? d : [d];
2671
2671
  for (let m = 0; m < f.length; m++) {
2672
- const v = co(e, f[m]);
2673
- if (v) {
2674
- const { transitionEnd: x, transition: b, ...h } = v;
2672
+ const g = co(e, f[m]);
2673
+ if (g) {
2674
+ const { transitionEnd: v, transition: b, ...h } = g;
2675
2675
  for (const T in h) {
2676
2676
  let w = h[T];
2677
2677
  if (Array.isArray(w)) {
@@ -2680,8 +2680,8 @@ function tf(e, t, n, i) {
2680
2680
  }
2681
2681
  w !== null && (r[T] = w);
2682
2682
  }
2683
- for (const T in x)
2684
- r[T] = x[T];
2683
+ for (const T in v)
2684
+ r[T] = v[T];
2685
2685
  }
2686
2686
  }
2687
2687
  }
@@ -2747,13 +2747,13 @@ function lf(e, t, n, i, r) {
2747
2747
  Ha(() => {
2748
2748
  c && f.current && c.update(n, a);
2749
2749
  });
2750
- const m = n[nc], v = ye(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
2750
+ const m = n[nc], g = ye(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
2751
2751
  return Ga(() => {
2752
- c && (f.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), v.current && c.animationState && c.animationState.animateChanges());
2752
+ c && (f.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), g.current && c.animationState && c.animationState.animateChanges());
2753
2753
  }), be(() => {
2754
- c && (!v.current && c.animationState && c.animationState.animateChanges(), v.current && (queueMicrotask(() => {
2754
+ c && (!g.current && c.animationState && c.animationState.animateChanges(), g.current && (queueMicrotask(() => {
2755
2755
  window.MotionHandoffMarkAsComplete?.(m);
2756
- }), v.current = !1), c.enteringChildren = void 0);
2756
+ }), g.current = !1), c.enteringChildren = void 0);
2757
2757
  }), c;
2758
2758
  }
2759
2759
  function cf(e, t, n, i) {
@@ -2793,8 +2793,8 @@ function Ei(e, { forwardMotionProps: t = !1 } = {}, n, i) {
2793
2793
  }, { isStatic: d } = c, f = zp(a), m = r(a, d);
2794
2794
  if (!d && Ir) {
2795
2795
  df(c, n);
2796
- const v = pf(c);
2797
- u = v.MeasureLayout, f.visualElement = lf(e, m, c, i, v.ProjectionNode);
2796
+ const g = pf(c);
2797
+ u = g.MeasureLayout, f.visualElement = lf(e, m, c, i, g.ProjectionNode);
2798
2798
  }
2799
2799
  return p.jsxs(oi.Provider, { value: f, children: [u && f.visualElement ? p.jsx(u, { visualElement: f.visualElement, ...c }) : null, Qp(e, a, sf(m, f.visualElement, l), m, d, t)] });
2800
2800
  }
@@ -3394,18 +3394,18 @@ function mo(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
3394
3394
  const m = {
3395
3395
  delay: n,
3396
3396
  ...Jr(o || {}, c)
3397
- }, v = d.get();
3398
- if (v !== void 0 && !d.isAnimating && !Array.isArray(f) && f === v && !m.velocity)
3397
+ }, g = d.get();
3398
+ if (g !== void 0 && !d.isAnimating && !Array.isArray(f) && f === g && !m.velocity)
3399
3399
  continue;
3400
- let x = !1;
3400
+ let v = !1;
3401
3401
  if (window.MotionHandoffAnimation) {
3402
3402
  const h = gc(e);
3403
3403
  if (h) {
3404
3404
  const T = window.MotionHandoffAnimation(h, c, oe);
3405
- T !== null && (m.startTime = T, x = !0);
3405
+ T !== null && (m.startTime = T, v = !0);
3406
3406
  }
3407
3407
  }
3408
- fr(e, c), d.start(fo(c, d, f, e.shouldReduceMotion && Ml.has(c) ? { type: !1 } : m, e, x));
3408
+ fr(e, c), d.start(fo(c, d, f, e.shouldReduceMotion && Ml.has(c) ? { type: !1 } : m, e, v));
3409
3409
  const b = d.animation;
3410
3410
  b && l.push(b);
3411
3411
  }
@@ -3493,8 +3493,8 @@ function $f(e) {
3493
3493
  const r = (l) => (u, c) => {
3494
3494
  const d = Ot(e, c, l === "exit" ? e.presenceContext?.custom : void 0);
3495
3495
  if (d) {
3496
- const { transition: f, transitionEnd: m, ...v } = d;
3497
- u = { ...u, ...v, ...m };
3496
+ const { transition: f, transitionEnd: m, ...g } = d;
3497
+ u = { ...u, ...g, ...m };
3498
3498
  }
3499
3499
  return u;
3500
3500
  };
@@ -3503,10 +3503,10 @@ function $f(e) {
3503
3503
  }
3504
3504
  function s(l) {
3505
3505
  const { props: u } = e, c = yc(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
3506
- let m = {}, v = 1 / 0;
3506
+ let m = {}, g = 1 / 0;
3507
3507
  for (let b = 0; b < zf; b++) {
3508
3508
  const h = _f[b], T = n[h], w = u[h] !== void 0 ? u[h] : c[h], S = ln(w), y = h === l ? T.isActive : null;
3509
- y === !1 && (v = b);
3509
+ y === !1 && (g = b);
3510
3510
  let C = w === c[h] && w !== u[h] && S;
3511
3511
  if (C && i && e.manuallyAnimateOnMount && (C = !1), T.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
3512
3512
  !T.isActive && y === null || // If we didn't and don't have any defined prop for this animation type
@@ -3516,7 +3516,7 @@ function $f(e) {
3516
3516
  const j = Wf(T.prevProp, w);
3517
3517
  let P = j || // If we're making this variant active, we want to always make it active
3518
3518
  h === l && T.isActive && !C && S || // If we removed a higher-priority variant (i is in reverse order)
3519
- b > v && S, O = !1;
3519
+ b > g && S, O = !1;
3520
3520
  const B = Array.isArray(w) ? w : [w];
3521
3521
  let D = B.reduce(r(h), {});
3522
3522
  y === !1 && (D = {});
@@ -3532,17 +3532,17 @@ function $f(e) {
3532
3532
  const W = D[Y], G = X[Y];
3533
3533
  if (m.hasOwnProperty(Y))
3534
3534
  continue;
3535
- let g = !1;
3536
- pr(W) && pr(G) ? g = !xc(W, G) : g = W !== G, g ? W != null ? N(Y) : f.add(Y) : W !== void 0 && f.has(Y) ? N(Y) : T.protectedKeys[Y] = !0;
3535
+ let x = !1;
3536
+ pr(W) && pr(G) ? x = !xc(W, G) : x = W !== G, x ? W != null ? N(Y) : f.add(Y) : W !== void 0 && f.has(Y) ? N(Y) : T.protectedKeys[Y] = !0;
3537
3537
  }
3538
3538
  T.prevProp = w, T.prevResolvedValues = D, T.isActive && (m = { ...m, ...D }), i && e.blockInitialAnimation && (P = !1);
3539
3539
  const J = C && j;
3540
3540
  P && (!J || O) && d.push(...B.map((Y) => {
3541
3541
  const W = { type: h };
3542
3542
  if (typeof Y == "string" && i && !J && e.manuallyAnimateOnMount && e.parent) {
3543
- const { parent: G } = e, g = Ot(G, Y);
3544
- if (G.enteringChildren && g) {
3545
- const { delayChildren: k } = g.transition || {};
3543
+ const { parent: G } = e, x = Ot(G, Y);
3544
+ if (G.enteringChildren && x) {
3545
+ const { delayChildren: k } = x.transition || {};
3546
3546
  W.delay = vc(G.enteringChildren, e, k);
3547
3547
  }
3548
3548
  }
@@ -3563,8 +3563,8 @@ function $f(e) {
3563
3563
  w && (w.liveStyle = !0), b[h] = T ?? null;
3564
3564
  }), d.push({ animation: b });
3565
3565
  }
3566
- let x = !!d.length;
3567
- return i && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (x = !1), i = !1, x ? t(d) : Promise.resolve();
3566
+ let v = !!d.length;
3567
+ return i && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (v = !1), i = !1, v ? t(d) : Promise.resolve();
3568
3568
  }
3569
3569
  function a(l, u) {
3570
3570
  if (n[l].isActive === u)
@@ -3725,22 +3725,22 @@ class Sc {
3725
3725
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3726
3726
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3727
3727
  return;
3728
- const f = Ri(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, v = tm(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3729
- if (!m && !v)
3728
+ const f = Ri(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, g = tm(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3729
+ if (!m && !g)
3730
3730
  return;
3731
- const { point: x } = f, { timestamp: b } = xe;
3732
- this.history.push({ ...x, timestamp: b });
3731
+ const { point: v } = f, { timestamp: b } = xe;
3732
+ this.history.push({ ...v, timestamp: b });
3733
3733
  const { onStart: h, onMove: T } = this.handlers;
3734
3734
  m || (h && h(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, f);
3735
3735
  }, this.handlePointerMove = (f, m) => {
3736
3736
  this.lastMoveEvent = f, this.lastMoveEventInfo = Pi(m, this.transformPagePoint), oe.update(this.updatePoint, !0);
3737
3737
  }, this.handlePointerUp = (f, m) => {
3738
3738
  this.end();
3739
- const { onEnd: v, onSessionEnd: x, resumeAnimation: b } = this.handlers;
3739
+ const { onEnd: g, onSessionEnd: v, resumeAnimation: b } = this.handlers;
3740
3740
  if (this.dragSnapToOrigin && b && b(), !(this.lastMoveEvent && this.lastMoveEventInfo))
3741
3741
  return;
3742
3742
  const h = Ri(f.type === "pointercancel" ? this.lastMoveEventInfo : Pi(m, this.transformPagePoint), this.history);
3743
- this.startEvent && v && v(f, h), x && x(f, h);
3743
+ this.startEvent && g && g(f, h), v && v(f, h);
3744
3744
  }, !to(t))
3745
3745
  return;
3746
3746
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = s, this.contextWindow = r || window;
@@ -3857,8 +3857,8 @@ class dm {
3857
3857
  const { dragSnapToOrigin: f } = this.getProps();
3858
3858
  f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(bn(d).point);
3859
3859
  }, s = (d, f) => {
3860
- const { drag: m, dragPropagation: v, onDragStart: x } = this.getProps();
3861
- if (m && !v && (this.openDragLock && this.openDragLock(), this.openDragLock = Sp(m), !this.openDragLock))
3860
+ const { drag: m, dragPropagation: g, onDragStart: v } = this.getProps();
3861
+ if (m && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Sp(m), !this.openDragLock))
3862
3862
  return;
3863
3863
  this.latestPointerEvent = d, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Re((h) => {
3864
3864
  let T = this.getAxisMotionValue(h).get() || 0;
@@ -3870,17 +3870,17 @@ class dm {
3870
3870
  }
3871
3871
  }
3872
3872
  this.originPoint[h] = T;
3873
- }), x && oe.postRender(() => x(d, f)), fr(this.visualElement, "transform");
3873
+ }), v && oe.postRender(() => v(d, f)), fr(this.visualElement, "transform");
3874
3874
  const { animationState: b } = this.visualElement;
3875
3875
  b && b.setActive("whileDrag", !0);
3876
3876
  }, a = (d, f) => {
3877
3877
  this.latestPointerEvent = d, this.latestPanInfo = f;
3878
- const { dragPropagation: m, dragDirectionLock: v, onDirectionLock: x, onDrag: b } = this.getProps();
3878
+ const { dragPropagation: m, dragDirectionLock: g, onDirectionLock: v, onDrag: b } = this.getProps();
3879
3879
  if (!m && !this.openDragLock)
3880
3880
  return;
3881
3881
  const { offset: h } = f;
3882
- if (v && this.currentDirection === null) {
3883
- this.currentDirection = pm(h), this.currentDirection !== null && x && x(this.currentDirection);
3882
+ if (g && this.currentDirection === null) {
3883
+ this.currentDirection = pm(h), this.currentDirection !== null && v && v(this.currentDirection);
3884
3884
  return;
3885
3885
  }
3886
3886
  this.updateAxis("x", f.point, h), this.updateAxis("y", f.point, h), this.visualElement.render(), b && b(d, f);
@@ -3959,7 +3959,7 @@ class dm {
3959
3959
  return;
3960
3960
  let d = l && l[c] || {};
3961
3961
  s && (d = { min: 0, max: 0 });
3962
- const f = r ? 200 : 1e6, m = r ? 40 : 1e7, v = {
3962
+ const f = r ? 200 : 1e6, m = r ? 40 : 1e7, g = {
3963
3963
  type: "inertia",
3964
3964
  velocity: i ? t[c] : 0,
3965
3965
  bounceStiffness: f,
@@ -3970,7 +3970,7 @@ class dm {
3970
3970
  ...o,
3971
3971
  ...d
3972
3972
  };
3973
- return this.startAxisValueAnimation(c, v);
3973
+ return this.startAxisValueAnimation(c, g);
3974
3974
  });
3975
3975
  return Promise.all(u).then(a);
3976
3976
  }
@@ -4376,8 +4376,8 @@ function Am(e, t, n) {
4376
4376
  let i = "";
4377
4377
  const r = e.x.translate / t.x, o = e.y.translate / t.y, s = n?.z || 0;
4378
4378
  if ((r || o || s) && (i = `translate3d(${r}px, ${o}px, ${s}px) `), (t.x !== 1 || t.y !== 1) && (i += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
4379
- const { transformPerspective: u, rotate: c, rotateX: d, rotateY: f, skewX: m, skewY: v } = n;
4380
- u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), d && (i += `rotateX(${d}deg) `), f && (i += `rotateY(${f}deg) `), m && (i += `skewX(${m}deg) `), v && (i += `skewY(${v}deg) `);
4379
+ const { transformPerspective: u, rotate: c, rotateX: d, rotateY: f, skewX: m, skewY: g } = n;
4380
+ u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), d && (i += `rotateX(${d}deg) `), f && (i += `rotateY(${f}deg) `), m && (i += `skewX(${m}deg) `), g && (i += `skewY(${g}deg) `);
4381
4381
  }
4382
4382
  const a = e.x.scale * t.x, l = e.y.scale * t.y;
4383
4383
  return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
@@ -4447,12 +4447,12 @@ function Oc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4447
4447
  this.target = void 0, this.relativeTarget = void 0;
4448
4448
  return;
4449
4449
  }
4450
- const v = this.options.transition || u.getDefaultTransition() || qm, { onLayoutAnimationStart: x, onLayoutAnimationComplete: b } = u.getProps(), h = !this.targetLayout || !Ac(this.targetLayout, m), T = !d && f;
4450
+ const g = this.options.transition || u.getDefaultTransition() || qm, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), h = !this.targetLayout || !Ac(this.targetLayout, m), T = !d && f;
4451
4451
  if (this.options.layoutRoot || this.resumeFrom || T || d && (h || !this.currentAnimation)) {
4452
4452
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
4453
4453
  const w = {
4454
- ...Jr(v, "layout"),
4455
- onPlay: x,
4454
+ ...Jr(g, "layout"),
4455
+ onPlay: v,
4456
4456
  onComplete: b
4457
4457
  };
4458
4458
  (u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w), this.setAnimationOrigin(c, T);
@@ -4704,12 +4704,12 @@ function Oc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4704
4704
  setAnimationOrigin(s, a = !1) {
4705
4705
  const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, d = Dt();
4706
4706
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4707
- const f = le(), m = l ? l.source : void 0, v = this.layout ? this.layout.source : void 0, x = m !== v, b = this.getStack(), h = !b || b.members.length <= 1, T = !!(x && !h && this.options.crossfade === !0 && !this.path.some(Um));
4707
+ const f = le(), m = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, v = m !== g, b = this.getStack(), h = !b || b.members.length <= 1, T = !!(v && !h && this.options.crossfade === !0 && !this.path.some(Um));
4708
4708
  this.animationProgress = 0;
4709
4709
  let w;
4710
4710
  this.mixTargetDelta = (S) => {
4711
4711
  const y = S / 1e3;
4712
- Us(d.x, s.x, y), Us(d.y, s.y, y), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (rn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Wm(this.relativeTarget, this.relativeTargetOrigin, f, y), w && Pm(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = le()), Pe(w, this.relativeTarget)), x && (this.animationValues = c, Tm(c, u, this.latestValues, y, T, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = y;
4712
+ Us(d.x, s.x, y), Us(d.y, s.y, y), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (rn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Wm(this.relativeTarget, this.relativeTargetOrigin, f, y), w && Pm(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = le()), Pe(w, this.relativeTarget)), v && (this.animationValues = c, Tm(c, u, this.latestValues, y, T, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = y;
4713
4713
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4714
4714
  }
4715
4715
  startAnimation(s) {
@@ -4825,16 +4825,16 @@ function Oc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4825
4825
  l && (d = l(c, d)), s.transform = d;
4826
4826
  const { x: f, y: m } = this.projectionDelta;
4827
4827
  s.transformOrigin = `${f.origin * 100}% ${m.origin * 100}% 0`, u.animationValues ? s.opacity = u === this ? c.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit : s.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
4828
- for (const v in cn) {
4829
- if (c[v] === void 0)
4828
+ for (const g in cn) {
4829
+ if (c[g] === void 0)
4830
4830
  continue;
4831
- const { correct: x, applyTo: b, isCSSVariable: h } = cn[v], T = d === "none" ? c[v] : x(c[v], u);
4831
+ const { correct: v, applyTo: b, isCSSVariable: h } = cn[g], T = d === "none" ? c[g] : v(c[g], u);
4832
4832
  if (b) {
4833
4833
  const w = b.length;
4834
4834
  for (let S = 0; S < w; S++)
4835
4835
  s[b[S]] = T;
4836
4836
  } else
4837
- h ? this.options.visualElement.renderState.vars[v] = T : s[v] = T;
4837
+ h ? this.options.visualElement.renderState.vars[g] = T : s[g] = T;
4838
4838
  }
4839
4839
  this.options.layoutId && (s.pointerEvents = u === this ? zn(a?.pointerEvents) || "" : "none");
4840
4840
  }
@@ -4874,8 +4874,8 @@ function Im(e) {
4874
4874
  if (d && f) {
4875
4875
  const m = le();
4876
4876
  rn(m, t.layoutBox, d.layoutBox);
4877
- const v = le();
4878
- rn(v, n, f.layoutBox), Ac(m, v) || (u = !0), c.options.layoutRoot && (e.relativeTarget = v, e.relativeTargetOrigin = m, e.relativeParent = c);
4877
+ const g = le();
4878
+ rn(g, n, f.layoutBox), Ac(m, g) || (u = !0), c.options.layoutRoot && (e.relativeTarget = g, e.relativeTargetOrigin = m, e.relativeParent = c);
4879
4879
  }
4880
4880
  }
4881
4881
  }
@@ -5162,24 +5162,24 @@ function gh(e, { defaultTransition: t = {}, ...n } = {}, i, r) {
5162
5162
  const o = t.duration || 0.3, s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map();
5163
5163
  let c = 0, d = 0, f = 0;
5164
5164
  for (let m = 0; m < e.length; m++) {
5165
- const v = e[m];
5166
- if (typeof v == "string") {
5167
- u.set(v, d);
5165
+ const g = e[m];
5166
+ if (typeof g == "string") {
5167
+ u.set(g, d);
5168
5168
  continue;
5169
- } else if (!Array.isArray(v)) {
5170
- u.set(v.name, Zs(d, v.at, c, u));
5169
+ } else if (!Array.isArray(g)) {
5170
+ u.set(g.name, Zs(d, g.at, c, u));
5171
5171
  continue;
5172
5172
  }
5173
- let [x, b, h = {}] = v;
5173
+ let [v, b, h = {}] = g;
5174
5174
  h.at !== void 0 && (d = Zs(d, h.at, c, u));
5175
5175
  let T = 0;
5176
5176
  const w = (S, y, C, j = 0, P = 0) => {
5177
5177
  const O = vh(S), { delay: B = 0, times: D = jl(O), type: X = "keyframes", repeat: H, repeatType: N, repeatDelay: J = 0, ...te } = y;
5178
5178
  let { ease: Y = t.ease || "easeOut", duration: W } = y;
5179
- const G = typeof B == "function" ? B(j, P) : B, g = O.length, k = Zr(X) ? X : r?.[X || "keyframes"];
5180
- if (g <= 2 && k) {
5179
+ const G = typeof B == "function" ? B(j, P) : B, x = O.length, k = Zr(X) ? X : r?.[X || "keyframes"];
5180
+ if (x <= 2 && k) {
5181
5181
  let _ = 100;
5182
- if (g === 2 && bh(O)) {
5182
+ if (x === 2 && bh(O)) {
5183
5183
  const L = O[1] - O[0];
5184
5184
  _ = Math.abs(L);
5185
5185
  }
@@ -5207,11 +5207,11 @@ function gh(e, { defaultTransition: t = {}, ...n } = {}, i, r) {
5207
5207
  const V = M + W;
5208
5208
  dh(C, O, Y, D, M, V), T = Math.max(G + W, T), f = Math.max(V, f);
5209
5209
  };
5210
- if (he(x)) {
5211
- const S = Js(x, a);
5210
+ if (he(v)) {
5211
+ const S = Js(v, a);
5212
5212
  w(b, h, Qs("default", S));
5213
5213
  } else {
5214
- const S = Nc(x, b, i, l), y = S.length;
5214
+ const S = Nc(v, b, i, l), y = S.length;
5215
5215
  for (let C = 0; C < y; C++) {
5216
5216
  b = b, h = h;
5217
5217
  const j = S[C], P = Js(j, a);
@@ -5221,21 +5221,21 @@ function gh(e, { defaultTransition: t = {}, ...n } = {}, i, r) {
5221
5221
  }
5222
5222
  c = d, d += T;
5223
5223
  }
5224
- return a.forEach((m, v) => {
5225
- for (const x in m) {
5226
- const b = m[x];
5224
+ return a.forEach((m, g) => {
5225
+ for (const v in m) {
5226
+ const b = m[v];
5227
5227
  b.sort(fh);
5228
5228
  const h = [], T = [], w = [];
5229
5229
  for (let y = 0; y < b.length; y++) {
5230
5230
  const { at: C, value: j, easing: P } = b[y];
5231
5231
  h.push(j), T.push(/* @__PURE__ */ It(0, f, C)), w.push(P || "easeOut");
5232
5232
  }
5233
- T[0] !== 0 && (T.unshift(0), h.unshift(h[0]), w.unshift(mh)), T[T.length - 1] !== 1 && (T.push(1), h.push(null)), s.has(v) || s.set(v, {
5233
+ T[0] !== 0 && (T.unshift(0), h.unshift(h[0]), w.unshift(mh)), T[T.length - 1] !== 1 && (T.push(1), h.push(null)), s.has(g) || s.set(g, {
5234
5234
  keyframes: {},
5235
5235
  transition: {}
5236
5236
  });
5237
- const S = s.get(v);
5238
- S.keyframes[x] = h, S.transition[x] = {
5237
+ const S = s.get(g);
5238
+ S.keyframes[v] = h, S.transition[v] = {
5239
5239
  ...t,
5240
5240
  duration: f,
5241
5241
  ease: w,
@@ -5618,7 +5618,7 @@ const fe = (e, t, n, i) => {
5618
5618
  },
5619
5619
  [
5620
5620
  l && Vn("title", { key: "svg-title" }, l),
5621
- ...i.map(([m, v]) => Vn(m, v)),
5621
+ ...i.map(([m, g]) => Vn(m, g)),
5622
5622
  ...Array.isArray(c) ? c : [c]
5623
5623
  ]
5624
5624
  )
@@ -6421,12 +6421,12 @@ const bv = async (e, t, n) => {
6421
6421
  }), {
6422
6422
  x: c,
6423
6423
  y: d
6424
- } = aa(u, i, l), f = i, m = {}, v = 0;
6425
- for (let x = 0; x < a.length; x++) {
6424
+ } = aa(u, i, l), f = i, m = {}, g = 0;
6425
+ for (let v = 0; v < a.length; v++) {
6426
6426
  const {
6427
6427
  name: b,
6428
6428
  fn: h
6429
- } = a[x], {
6429
+ } = a[v], {
6430
6430
  x: T,
6431
6431
  y: w,
6432
6432
  data: S,
@@ -6451,14 +6451,14 @@ const bv = async (e, t, n) => {
6451
6451
  ...m[b],
6452
6452
  ...S
6453
6453
  }
6454
- }, y && v <= 50 && (v++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (u = y.rects === !0 ? await s.getElementRects({
6454
+ }, y && g <= 50 && (g++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (u = y.rects === !0 ? await s.getElementRects({
6455
6455
  reference: e,
6456
6456
  floating: t,
6457
6457
  strategy: r
6458
6458
  }) : y.rects), {
6459
6459
  x: c,
6460
6460
  y: d
6461
- } = aa(u, f, l)), x = -1);
6461
+ } = aa(u, f, l)), v = -1);
6462
6462
  }
6463
6463
  return {
6464
6464
  x: c,
@@ -6484,7 +6484,7 @@ async function wv(e, t) {
6484
6484
  elementContext: d = "floating",
6485
6485
  altBoundary: f = !1,
6486
6486
  padding: m = 0
6487
- } = Uc(t, e), v = $g(m), b = a[f ? d === "floating" ? "reference" : "floating" : d], h = Yn(await o.getClippingRect({
6487
+ } = Uc(t, e), g = $g(m), b = a[f ? d === "floating" ? "reference" : "floating" : d], h = Yn(await o.getClippingRect({
6488
6488
  element: (n = await (o.isElement == null ? void 0 : o.isElement(b))) == null || n ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
6489
6489
  boundary: u,
6490
6490
  rootBoundary: c,
@@ -6507,10 +6507,10 @@ async function wv(e, t) {
6507
6507
  strategy: l
6508
6508
  }) : T);
6509
6509
  return {
6510
- top: (h.top - y.top + v.top) / S.y,
6511
- bottom: (y.bottom - h.bottom + v.bottom) / S.y,
6512
- left: (h.left - y.left + v.left) / S.x,
6513
- right: (y.right - h.right + v.right) / S.x
6510
+ top: (h.top - y.top + g.top) / S.y,
6511
+ bottom: (y.bottom - h.bottom + g.bottom) / S.y,
6512
+ left: (h.left - y.left + g.left) / S.x,
6513
+ right: (y.right - h.right + g.right) / S.x
6514
6514
  };
6515
6515
  }
6516
6516
  const Tv = function(e) {
@@ -6529,16 +6529,16 @@ const Tv = function(e) {
6529
6529
  },
6530
6530
  ...u
6531
6531
  } = Uc(e, t), c = await wv(t, u), d = So(r), f = qc(r), m = ko(r) === "y", {
6532
- width: v,
6533
- height: x
6532
+ width: g,
6533
+ height: v
6534
6534
  } = o.floating;
6535
6535
  let b, h;
6536
6536
  d === "top" || d === "bottom" ? (b = d, h = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = d, b = f === "end" ? "top" : "bottom");
6537
- const T = x - c.top - c.bottom, w = v - c.left - c.right, S = mn(x - c[b], T), y = mn(v - c[h], w), C = !t.middlewareData.shift;
6537
+ const T = v - c.top - c.bottom, w = g - c.left - c.right, S = mn(v - c[b], T), y = mn(g - c[h], w), C = !t.middlewareData.shift;
6538
6538
  let j = S, P = y;
6539
6539
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = w), (i = t.middlewareData.shift) != null && i.enabled.y && (j = T), C && !f) {
6540
6540
  const B = Ae(c.left, 0), D = Ae(c.right, 0), X = Ae(c.top, 0), H = Ae(c.bottom, 0);
6541
- m ? P = v - 2 * (B !== 0 || D !== 0 ? B + D : Ae(c.left, c.right)) : j = x - 2 * (X !== 0 || H !== 0 ? X + H : Ae(c.top, c.bottom));
6541
+ m ? P = g - 2 * (B !== 0 || D !== 0 ? B + D : Ae(c.left, c.right)) : j = v - 2 * (X !== 0 || H !== 0 ? X + H : Ae(c.top, c.bottom));
6542
6542
  }
6543
6543
  await l({
6544
6544
  ...t,
@@ -6546,7 +6546,7 @@ const Tv = function(e) {
6546
6546
  availableHeight: j
6547
6547
  });
6548
6548
  const O = await s.getDimensions(a.floating);
6549
- return v !== O.width || x !== O.height ? {
6549
+ return g !== O.width || v !== O.height ? {
6550
6550
  reset: {
6551
6551
  rects: !0
6552
6552
  }
@@ -6602,10 +6602,10 @@ function vt(e, t, n, i) {
6602
6602
  let l = (r.left + a.x) / s.x, u = (r.top + a.y) / s.y, c = r.width / s.x, d = r.height / s.y;
6603
6603
  if (o) {
6604
6604
  const f = Ce(o), m = i && Te(i) ? Ce(i) : i;
6605
- let v = f, x = yr(v);
6606
- for (; x && i && m !== v; ) {
6607
- const b = Mt(x), h = x.getBoundingClientRect(), T = Ve(x), w = h.left + (x.clientLeft + parseFloat(T.paddingLeft)) * b.x, S = h.top + (x.clientTop + parseFloat(T.paddingTop)) * b.y;
6608
- l *= b.x, u *= b.y, c *= b.x, d *= b.y, l += w, u += S, v = Ce(x), x = yr(v);
6605
+ let g = f, v = yr(g);
6606
+ for (; v && i && m !== g; ) {
6607
+ const b = Mt(v), h = v.getBoundingClientRect(), T = Ve(v), w = h.left + (v.clientLeft + parseFloat(T.paddingLeft)) * b.x, S = h.top + (v.clientTop + parseFloat(T.paddingTop)) * b.y;
6608
+ l *= b.x, u *= b.y, c *= b.x, d *= b.y, l += w, u += S, g = Ce(v), v = yr(g);
6609
6609
  }
6610
6610
  }
6611
6611
  return Yn({
@@ -6678,8 +6678,8 @@ function Pv(e, t) {
6678
6678
  }
6679
6679
  const u = di(i);
6680
6680
  if (u <= 0) {
6681
- const c = i.ownerDocument, d = c.body, f = getComputedStyle(d), m = c.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, v = Math.abs(i.clientWidth - d.clientWidth - m);
6682
- v <= la && (o -= v);
6681
+ const c = i.ownerDocument, d = c.body, f = getComputedStyle(d), m = c.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, g = Math.abs(i.clientWidth - d.clientWidth - m);
6682
+ g <= la && (o -= g);
6683
6683
  } else u <= la && (o += u);
6684
6684
  return {
6685
6685
  width: o,
@@ -6862,8 +6862,8 @@ function Lv(e, t) {
6862
6862
  } = u;
6863
6863
  if (a || t(), !f || !m)
6864
6864
  return;
6865
- const v = Dn(d), x = Dn(r.clientWidth - (c + f)), b = Dn(r.clientHeight - (d + m)), h = Dn(c), w = {
6866
- rootMargin: -v + "px " + -x + "px " + -b + "px " + -h + "px",
6865
+ const g = Dn(d), v = Dn(r.clientWidth - (c + f)), b = Dn(r.clientHeight - (d + m)), h = Dn(c), w = {
6866
+ rootMargin: -g + "px " + -v + "px " + -b + "px " + -h + "px",
6867
6867
  threshold: Ae(0, mn(1, l)) || 1
6868
6868
  };
6869
6869
  let S = !0;
@@ -6914,17 +6914,17 @@ function _v(e, t, n, i) {
6914
6914
  (w = m) == null || w.observe(t);
6915
6915
  })), n();
6916
6916
  }), u && !l && m.observe(u), m.observe(t));
6917
- let v, x = l ? vt(e) : null;
6917
+ let g, v = l ? vt(e) : null;
6918
6918
  l && b();
6919
6919
  function b() {
6920
6920
  const h = vt(e);
6921
- x && !ru(x, h) && n(), x = h, v = requestAnimationFrame(b);
6921
+ v && !ru(v, h) && n(), v = h, g = requestAnimationFrame(b);
6922
6922
  }
6923
6923
  return n(), () => {
6924
6924
  var h;
6925
6925
  c.forEach((T) => {
6926
6926
  r && T.removeEventListener("scroll", n), o && T.removeEventListener("resize", n);
6927
- }), d?.(), (h = m) == null || h.disconnect(), m = null, l && cancelAnimationFrame(v);
6927
+ }), d?.(), (h = m) == null || h.disconnect(), m = null, l && cancelAnimationFrame(g);
6928
6928
  };
6929
6929
  }
6930
6930
  const zv = Tv, Bv = (e, t, n) => {
@@ -7008,11 +7008,11 @@ function Uv(e) {
7008
7008
  isPositioned: !1
7009
7009
  }), [f, m] = E.useState(i);
7010
7010
  Zn(f, i) || m(i);
7011
- const [v, x] = E.useState(null), [b, h] = E.useState(null), T = E.useCallback((W) => {
7012
- W !== C.current && (C.current = W, x(W));
7011
+ const [g, v] = E.useState(null), [b, h] = E.useState(null), T = E.useCallback((W) => {
7012
+ W !== C.current && (C.current = W, v(W));
7013
7013
  }, []), w = E.useCallback((W) => {
7014
7014
  W !== j.current && (j.current = W, h(W));
7015
- }, []), S = o || v, y = s || b, C = E.useRef(null), j = E.useRef(null), P = E.useRef(c), O = l != null, B = Li(l), D = Li(r), X = Li(u), H = E.useCallback(() => {
7015
+ }, []), S = o || g, y = s || b, C = E.useRef(null), j = E.useRef(null), P = E.useRef(c), O = l != null, B = Li(l), D = Li(r), X = Li(u), H = E.useCallback(() => {
7016
7016
  if (!C.current || !j.current)
7017
7017
  return;
7018
7018
  const W = {
@@ -7021,7 +7021,7 @@ function Uv(e) {
7021
7021
  middleware: f
7022
7022
  };
7023
7023
  D.current && (W.platform = D.current), Bv(C.current, j.current, W).then((G) => {
7024
- const g = {
7024
+ const x = {
7025
7025
  ...G,
7026
7026
  // The floating element's position may be recomputed while it's closed
7027
7027
  // but still mounted (such as when transitioning out). To ensure
@@ -7029,8 +7029,8 @@ function Uv(e) {
7029
7029
  // setting it to `true` when `open === false` (must be specified).
7030
7030
  isPositioned: X.current !== !1
7031
7031
  };
7032
- N.current && !Zn(P.current, g) && (P.current = g, Ka.flushSync(() => {
7033
- d(g);
7032
+ N.current && !Zn(P.current, x) && (P.current = x, Ka.flushSync(() => {
7033
+ d(x);
7034
7034
  }));
7035
7035
  });
7036
7036
  }, [f, t, n, D, X]);
@@ -7066,17 +7066,17 @@ function Uv(e) {
7066
7066
  };
7067
7067
  if (!te.floating)
7068
7068
  return W;
7069
- const G = da(te.floating, c.x), g = da(te.floating, c.y);
7069
+ const G = da(te.floating, c.x), x = da(te.floating, c.y);
7070
7070
  return a ? {
7071
7071
  ...W,
7072
- transform: "translate(" + G + "px, " + g + "px)",
7072
+ transform: "translate(" + G + "px, " + x + "px)",
7073
7073
  ...ou(te.floating) >= 1.5 && {
7074
7074
  willChange: "transform"
7075
7075
  }
7076
7076
  } : {
7077
7077
  position: n,
7078
7078
  left: G,
7079
- top: g
7079
+ top: x
7080
7080
  };
7081
7081
  }, [n, a, te.floating, c.x, c.y]);
7082
7082
  return E.useMemo(() => ({
@@ -7208,7 +7208,7 @@ function Co(e) {
7208
7208
  } = e, o = nx({
7209
7209
  id: n,
7210
7210
  root: i
7211
- }), [s, a] = E.useState(null), l = E.useRef(null), u = E.useRef(null), c = E.useRef(null), d = E.useRef(null), f = s?.modal, m = s?.open, v = (
7211
+ }), [s, a] = E.useState(null), l = E.useRef(null), u = E.useRef(null), c = E.useRef(null), d = E.useRef(null), f = s?.modal, m = s?.open, g = (
7212
7212
  // The FocusManager and therefore floating element are currently open/
7213
7213
  // rendered.
7214
7214
  !!s && // Guards are only for non-modal focus management.
@@ -7218,11 +7218,11 @@ function Co(e) {
7218
7218
  return E.useEffect(() => {
7219
7219
  if (!o || !r || f)
7220
7220
  return;
7221
- function x(b) {
7221
+ function v(b) {
7222
7222
  o && Fi(b) && (b.type === "focusin" ? sa : yv)(o);
7223
7223
  }
7224
- return o.addEventListener("focusin", x, !0), o.addEventListener("focusout", x, !0), () => {
7225
- o.removeEventListener("focusin", x, !0), o.removeEventListener("focusout", x, !0);
7224
+ return o.addEventListener("focusin", v, !0), o.addEventListener("focusout", v, !0), () => {
7225
+ o.removeEventListener("focusin", v, !0), o.removeEventListener("focusout", v, !0);
7226
7226
  };
7227
7227
  }, [o, r, f]), E.useEffect(() => {
7228
7228
  o && (m || sa(o));
@@ -7236,11 +7236,11 @@ function Co(e) {
7236
7236
  portalNode: o,
7237
7237
  setFocusManagerState: a
7238
7238
  }), [r, o]),
7239
- children: [v && o && /* @__PURE__ */ p.jsx(ma, {
7239
+ children: [g && o && /* @__PURE__ */ p.jsx(ma, {
7240
7240
  "data-type": "outside",
7241
7241
  ref: l,
7242
- onFocus: (x) => {
7243
- if (Fi(x, o)) {
7242
+ onFocus: (v) => {
7243
+ if (Fi(v, o)) {
7244
7244
  var b;
7245
7245
  (b = c.current) == null || b.focus();
7246
7246
  } else {
@@ -7248,19 +7248,19 @@ function Co(e) {
7248
7248
  T?.focus();
7249
7249
  }
7250
7250
  }
7251
- }), v && o && /* @__PURE__ */ p.jsx("span", {
7251
+ }), g && o && /* @__PURE__ */ p.jsx("span", {
7252
7252
  "aria-owns": o.id,
7253
7253
  style: lu
7254
- }), o && /* @__PURE__ */ Ka.createPortal(t, o), v && o && /* @__PURE__ */ p.jsx(ma, {
7254
+ }), o && /* @__PURE__ */ Ka.createPortal(t, o), g && o && /* @__PURE__ */ p.jsx(ma, {
7255
7255
  "data-type": "outside",
7256
7256
  ref: u,
7257
- onFocus: (x) => {
7258
- if (Fi(x, o)) {
7257
+ onFocus: (v) => {
7258
+ if (Fi(v, o)) {
7259
7259
  var b;
7260
7260
  (b = d.current) == null || b.focus();
7261
7261
  } else {
7262
7262
  const h = s ? s.domReference : null, T = vv(h);
7263
- T?.focus(), s?.closeOnFocusOut && s?.onOpenChange(!1, x.nativeEvent, "focus-out");
7263
+ T?.focus(), s?.closeOnFocusOut && s?.onOpenChange(!1, v.nativeEvent, "focus-out");
7264
7264
  }
7265
7265
  }
7266
7266
  })]
@@ -7330,13 +7330,13 @@ function ox(e) {
7330
7330
  const m = i.reference;
7331
7331
  m && !Te(m) && Xv("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
7332
7332
  }
7333
- const [l, u] = E.useState(i.reference), c = gv((m, v, x) => {
7334
- o.current.openEvent = m ? v : void 0, s.emit("openchange", {
7333
+ const [l, u] = E.useState(i.reference), c = gv((m, g, v) => {
7334
+ o.current.openEvent = m ? g : void 0, s.emit("openchange", {
7335
7335
  open: m,
7336
- event: v,
7337
- reason: x,
7336
+ event: g,
7337
+ reason: v,
7338
7338
  nested: a
7339
- }), n?.(m, v, x);
7339
+ }), n?.(m, g, v);
7340
7340
  }), d = E.useMemo(() => ({
7341
7341
  setPositionReference: u
7342
7342
  }), []), f = E.useMemo(() => ({
@@ -7377,24 +7377,24 @@ function sx(e) {
7377
7377
  reference: a
7378
7378
  }
7379
7379
  }
7380
- }), v = E.useCallback((w) => {
7380
+ }), g = E.useCallback((w) => {
7381
7381
  const S = Te(w) ? {
7382
7382
  getBoundingClientRect: () => w.getBoundingClientRect(),
7383
7383
  getClientRects: () => w.getClientRects(),
7384
7384
  contextElement: w
7385
7385
  } : w;
7386
7386
  l(S), m.refs.setReference(S);
7387
- }, [m.refs]), x = E.useCallback((w) => {
7387
+ }, [m.refs]), v = E.useCallback((w) => {
7388
7388
  (Te(w) || w === null) && (d.current = w, s(w)), (Te(m.refs.reference.current) || m.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
7389
7389
  // `null` to support `positionReference` + an unstable `reference`
7390
7390
  // callback ref.
7391
7391
  w !== null && !Te(w)) && m.refs.setReference(w);
7392
7392
  }, [m.refs]), b = E.useMemo(() => ({
7393
7393
  ...m.refs,
7394
- setReference: x,
7395
- setPositionReference: v,
7394
+ setReference: v,
7395
+ setPositionReference: g,
7396
7396
  domReference: d
7397
- }), [m.refs, x, v]), h = E.useMemo(() => ({
7397
+ }), [m.refs, v, g]), h = E.useMemo(() => ({
7398
7398
  ...m.elements,
7399
7399
  domReference: c
7400
7400
  }), [m.elements, c]), T = E.useMemo(() => ({
@@ -7469,15 +7469,15 @@ const ax = {
7469
7469
  };
7470
7470
  const c = E.useMemo(() => {
7471
7471
  const d = (f) => {
7472
- const { floatingStyles: m, setFloating: v, onOutsideClick: x, placement: b } = u.current, { className: h, open: T, children: w } = f;
7472
+ const { floatingStyles: m, setFloating: g, onOutsideClick: v, placement: b } = u.current, { className: h, open: T, children: w } = f;
7473
7473
  return /* @__PURE__ */ p.jsx(
7474
7474
  lx,
7475
7475
  {
7476
7476
  open: T,
7477
7477
  className: h,
7478
- onOutsideClick: x,
7478
+ onOutsideClick: v,
7479
7479
  floatingStyles: m,
7480
- setFloating: v,
7480
+ setFloating: g,
7481
7481
  placement: b,
7482
7482
  children: w
7483
7483
  }
@@ -7514,26 +7514,26 @@ const ax = {
7514
7514
  const [n, i] = ue(() => ia(e) ?? [0, 0, 1]), r = ye(Zt(n[0], n[1], n[2]));
7515
7515
  be(() => {
7516
7516
  if ((e || "").toUpperCase() === r.current) return;
7517
- const x = ia(e);
7518
- x && i(x);
7517
+ const v = ia(e);
7518
+ v && i(v);
7519
7519
  }, [e]);
7520
- const o = (x) => {
7521
- i(x);
7522
- const b = Zt(x[0], x[1], x[2]);
7520
+ const o = (v) => {
7521
+ i(v);
7522
+ const b = Zt(v[0], v[1], v[2]);
7523
7523
  r.current = b, t(b);
7524
- }, [s, a, l] = n, u = Zt(s, 1, 1), c = Zt(s, a, 1), d = Zt(s, a, l), f = Ni((x, b, h) => {
7525
- o([s, Mn((x - h.left) / h.width), 1 - Mn((b - h.top) / h.height)]);
7526
- }), m = Ni((x, b, h) => {
7527
- o([Mn((x - h.left) / h.width) * 360, a, l]);
7528
- }), v = Ni((x, b, h) => {
7529
- o([s, a, Mn((x - h.left) / h.width)]);
7524
+ }, [s, a, l] = n, u = Zt(s, 1, 1), c = Zt(s, a, 1), d = Zt(s, a, l), f = Ni((v, b, h) => {
7525
+ o([s, Mn((v - h.left) / h.width), 1 - Mn((b - h.top) / h.height)]);
7526
+ }), m = Ni((v, b, h) => {
7527
+ o([Mn((v - h.left) / h.width) * 360, a, l]);
7528
+ }), g = Ni((v, b, h) => {
7529
+ o([s, a, Mn((v - h.left) / h.width)]);
7530
7530
  });
7531
7531
  return /* @__PURE__ */ p.jsxs(
7532
7532
  "div",
7533
7533
  {
7534
7534
  className: "flex flex-col gap-3",
7535
7535
  style: { width: 220, userSelect: "none" },
7536
- onMouseDown: (x) => x.preventDefault(),
7536
+ onMouseDown: (v) => v.preventDefault(),
7537
7537
  children: [
7538
7538
  /* @__PURE__ */ p.jsxs(
7539
7539
  "div",
@@ -7625,7 +7625,7 @@ const ax = {
7625
7625
  touchAction: "none",
7626
7626
  cursor: "ew-resize"
7627
7627
  },
7628
- ...v.bind,
7628
+ ...g.bind,
7629
7629
  children: /* @__PURE__ */ p.jsx(
7630
7630
  $e.div,
7631
7631
  {
@@ -7637,7 +7637,7 @@ const ax = {
7637
7637
  boxShadow: _i
7638
7638
  },
7639
7639
  initial: kt(!1),
7640
- animate: kt(v.isDragging),
7640
+ animate: kt(g.isDragging),
7641
7641
  transition: zi
7642
7642
  }
7643
7643
  )
@@ -7660,15 +7660,15 @@ const ax = {
7660
7660
  onBlur: c,
7661
7661
  onFocus: d,
7662
7662
  ...f
7663
- } = e, [m, v] = ue(
7663
+ } = e, [m, g] = ue(
7664
7664
  a != null ? String(a) : l != null ? String(l) : ""
7665
- ), [x, b] = ue(!1), h = ye(null), T = a != null ? String(a) : m, w = T || "white";
7666
- Ht(x, () => b(!1));
7665
+ ), [v, b] = ue(!1), h = ye(null), T = a != null ? String(a) : m, w = T || "white";
7666
+ Ht(v, () => b(!1));
7667
7667
  const { anchorRef: S, Popover: y } = qt({
7668
7668
  placement: "bottom-start",
7669
7669
  onOutsideClick: () => b(!1)
7670
7670
  }), C = (D) => {
7671
- v(D.target.value), u?.(D);
7671
+ g(D.target.value), u?.(D);
7672
7672
  }, j = (D) => {
7673
7673
  b(!0), d?.(D);
7674
7674
  }, P = (D) => {
@@ -7722,7 +7722,7 @@ const ax = {
7722
7722
  r && /* @__PURE__ */ p.jsx(at, {}),
7723
7723
  o
7724
7724
  ] }),
7725
- /* @__PURE__ */ p.jsx(y, { open: x, children: /* @__PURE__ */ p.jsx(Wt, { padding: "md", children: /* @__PURE__ */ p.jsx(gx, { value: T, onChange: O }) }) })
7725
+ /* @__PURE__ */ p.jsx(y, { open: v, children: /* @__PURE__ */ p.jsx(Wt, { padding: "md", children: /* @__PURE__ */ p.jsx(gx, { value: T, onChange: O }) }) })
7726
7726
  ] }),
7727
7727
  /* @__PURE__ */ p.jsx(Ie, { children: i }),
7728
7728
  /* @__PURE__ */ p.jsx(Ne, { children: r })
@@ -7793,22 +7793,30 @@ const Gy = (e) => {
7793
7793
  error: r,
7794
7794
  size: o = "md",
7795
7795
  autogrow: s = !1,
7796
- ref: a,
7797
- onChange: l,
7798
- ...u
7799
- } = e, c = E.useRef(null), d = E.useCallback(() => {
7800
- const m = c.current;
7801
- m && (m.style.height = "auto", m.style.height = `${m.scrollHeight}px`);
7802
- }, []);
7796
+ maxRows: a,
7797
+ ref: l,
7798
+ onChange: u,
7799
+ ...c
7800
+ } = e, d = E.useRef(null), f = E.useCallback(() => {
7801
+ const g = d.current;
7802
+ if (!g) return;
7803
+ g.style.height = "auto";
7804
+ let v = g.scrollHeight;
7805
+ if (a) {
7806
+ const b = window.getComputedStyle(g), h = parseFloat(b.lineHeight), T = parseFloat(b.paddingTop), w = parseFloat(b.paddingBottom), S = parseFloat(b.borderTopWidth), y = parseFloat(b.borderBottomWidth), C = h * a + T + w + S + y;
7807
+ v = Math.min(g.scrollHeight, C);
7808
+ }
7809
+ g.style.height = `${v}px`;
7810
+ }, [a]);
7803
7811
  E.useLayoutEffect(() => {
7804
7812
  if (!s) {
7805
- c.current && (c.current.style.height = "");
7813
+ d.current && (d.current.style.height = "");
7806
7814
  return;
7807
7815
  }
7808
- d();
7809
- }, [s, d, e.value, e.defaultValue, o]);
7810
- const f = (m) => {
7811
- l?.(m), s && d();
7816
+ f();
7817
+ }, [s, f, e.value, e.defaultValue, o]);
7818
+ const m = (g) => {
7819
+ u?.(g), s && f();
7812
7820
  };
7813
7821
  return /* @__PURE__ */ p.jsx(Ze.Provider, { value: o, children: /* @__PURE__ */ p.jsxs(
7814
7822
  "div",
@@ -7823,8 +7831,8 @@ const Gy = (e) => {
7823
7831
  /* @__PURE__ */ p.jsx(
7824
7832
  "textarea",
7825
7833
  {
7826
- ref: a ? yx([a, c]) : c,
7827
- onChange: f,
7834
+ ref: l ? yx([l, d]) : d,
7835
+ onChange: m,
7828
7836
  className: I(
7829
7837
  "py-2.5 border input-base transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",
7830
7838
  Dh[o],
@@ -7832,9 +7840,9 @@ const Gy = (e) => {
7832
7840
  xt[o],
7833
7841
  r ? yt[o] : go[o],
7834
7842
  r && "input-error",
7835
- s && "resize-none overflow-hidden"
7843
+ s && (a ? "resize-none overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" : "resize-none overflow-hidden")
7836
7844
  ),
7837
- ...u
7845
+ ...c
7838
7846
  }
7839
7847
  ),
7840
7848
  /* @__PURE__ */ p.jsx(wt, { className: "top-3.5 translate-y-0", children: r && /* @__PURE__ */ p.jsx(at, {}) })
@@ -7972,7 +7980,7 @@ var ya;
7972
7980
  function bx() {
7973
7981
  if (ya) return Q;
7974
7982
  ya = 1;
7975
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
7983
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
7976
7984
  function w(y) {
7977
7985
  if (typeof y == "object" && y !== null) {
7978
7986
  var C = y.$$typeof;
@@ -7990,7 +7998,7 @@ function bx() {
7990
7998
  switch (y = y && y.$$typeof, y) {
7991
7999
  case a:
7992
8000
  case c:
7993
- case v:
8001
+ case g:
7994
8002
  case m:
7995
8003
  case s:
7996
8004
  return y;
@@ -8006,7 +8014,7 @@ function bx() {
8006
8014
  function S(y) {
8007
8015
  return w(y) === u;
8008
8016
  }
8009
- return Q.AsyncMode = l, Q.ConcurrentMode = u, Q.ContextConsumer = a, Q.ContextProvider = s, Q.Element = t, Q.ForwardRef = c, Q.Fragment = i, Q.Lazy = v, Q.Memo = m, Q.Portal = n, Q.Profiler = o, Q.StrictMode = r, Q.Suspense = d, Q.isAsyncMode = function(y) {
8017
+ return Q.AsyncMode = l, Q.ConcurrentMode = u, Q.ContextConsumer = a, Q.ContextProvider = s, Q.Element = t, Q.ForwardRef = c, Q.Fragment = i, Q.Lazy = g, Q.Memo = m, Q.Portal = n, Q.Profiler = o, Q.StrictMode = r, Q.Suspense = d, Q.isAsyncMode = function(y) {
8010
8018
  return S(y) || w(y) === l;
8011
8019
  }, Q.isConcurrentMode = S, Q.isContextConsumer = function(y) {
8012
8020
  return w(y) === a;
@@ -8019,7 +8027,7 @@ function bx() {
8019
8027
  }, Q.isFragment = function(y) {
8020
8028
  return w(y) === i;
8021
8029
  }, Q.isLazy = function(y) {
8022
- return w(y) === v;
8030
+ return w(y) === g;
8023
8031
  }, Q.isMemo = function(y) {
8024
8032
  return w(y) === m;
8025
8033
  }, Q.isPortal = function(y) {
@@ -8031,7 +8039,7 @@ function bx() {
8031
8039
  }, Q.isSuspense = function(y) {
8032
8040
  return w(y) === d;
8033
8041
  }, Q.isValidElementType = function(y) {
8034
- return typeof y == "string" || typeof y == "function" || y === i || y === u || y === o || y === r || y === d || y === f || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === m || y.$$typeof === s || y.$$typeof === a || y.$$typeof === c || y.$$typeof === b || y.$$typeof === h || y.$$typeof === T || y.$$typeof === x);
8042
+ return typeof y == "string" || typeof y == "function" || y === i || y === u || y === o || y === r || y === d || y === f || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === m || y.$$typeof === s || y.$$typeof === a || y.$$typeof === c || y.$$typeof === b || y.$$typeof === h || y.$$typeof === T || y.$$typeof === v);
8035
8043
  }, Q.typeOf = w, Q;
8036
8044
  }
8037
8045
  var ee = {};
@@ -8046,10 +8054,10 @@ var ee = {};
8046
8054
  var ba;
8047
8055
  function wx() {
8048
8056
  return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
8049
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
8057
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
8050
8058
  function w(R) {
8051
8059
  return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8052
- R === i || R === u || R === o || R === r || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === v || R.$$typeof === m || R.$$typeof === s || R.$$typeof === a || R.$$typeof === c || R.$$typeof === b || R.$$typeof === h || R.$$typeof === T || R.$$typeof === x);
8060
+ R === i || R === u || R === o || R === r || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === m || R.$$typeof === s || R.$$typeof === a || R.$$typeof === c || R.$$typeof === b || R.$$typeof === h || R.$$typeof === T || R.$$typeof === v);
8053
8061
  }
8054
8062
  function S(R) {
8055
8063
  if (typeof R == "object" && R !== null) {
@@ -8070,7 +8078,7 @@ function wx() {
8070
8078
  switch (Kt) {
8071
8079
  case a:
8072
8080
  case c:
8073
- case v:
8081
+ case g:
8074
8082
  case m:
8075
8083
  case s:
8076
8084
  return Kt;
@@ -8083,11 +8091,11 @@ function wx() {
8083
8091
  }
8084
8092
  }
8085
8093
  }
8086
- var y = l, C = u, j = a, P = s, O = t, B = c, D = i, X = v, H = m, N = n, J = o, te = r, Y = d, W = !1;
8094
+ var y = l, C = u, j = a, P = s, O = t, B = c, D = i, X = g, H = m, N = n, J = o, te = r, Y = d, W = !1;
8087
8095
  function G(R) {
8088
- return W || (W = !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.")), g(R) || S(R) === l;
8096
+ return W || (W = !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.")), x(R) || S(R) === l;
8089
8097
  }
8090
- function g(R) {
8098
+ function x(R) {
8091
8099
  return S(R) === u;
8092
8100
  }
8093
8101
  function k(R) {
@@ -8106,7 +8114,7 @@ function wx() {
8106
8114
  return S(R) === i;
8107
8115
  }
8108
8116
  function U(R) {
8109
- return S(R) === v;
8117
+ return S(R) === g;
8110
8118
  }
8111
8119
  function z(R) {
8112
8120
  return S(R) === m;
@@ -8123,7 +8131,7 @@ function wx() {
8123
8131
  function ce(R) {
8124
8132
  return S(R) === d;
8125
8133
  }
8126
- ee.AsyncMode = y, ee.ConcurrentMode = C, ee.ContextConsumer = j, ee.ContextProvider = P, ee.Element = O, ee.ForwardRef = B, ee.Fragment = D, ee.Lazy = X, ee.Memo = H, ee.Portal = N, ee.Profiler = J, ee.StrictMode = te, ee.Suspense = Y, ee.isAsyncMode = G, ee.isConcurrentMode = g, ee.isContextConsumer = k, ee.isContextProvider = M, ee.isElement = F, ee.isForwardRef = V, ee.isFragment = _, ee.isLazy = U, ee.isMemo = z, ee.isPortal = L, ee.isProfiler = K, ee.isStrictMode = Z, ee.isSuspense = ce, ee.isValidElementType = w, ee.typeOf = S;
8134
+ ee.AsyncMode = y, ee.ConcurrentMode = C, ee.ContextConsumer = j, ee.ContextProvider = P, ee.Element = O, ee.ForwardRef = B, ee.Fragment = D, ee.Lazy = X, ee.Memo = H, ee.Portal = N, ee.Profiler = J, ee.StrictMode = te, ee.Suspense = Y, ee.isAsyncMode = G, ee.isConcurrentMode = x, ee.isContextConsumer = k, ee.isContextProvider = M, ee.isElement = F, ee.isForwardRef = V, ee.isFragment = _, ee.isLazy = U, ee.isMemo = z, ee.isPortal = L, ee.isProfiler = K, ee.isStrictMode = Z, ee.isSuspense = ce, ee.isValidElementType = w, ee.typeOf = S;
8127
8135
  })()), ee;
8128
8136
  }
8129
8137
  var wa;
@@ -8222,8 +8230,8 @@ function Sx() {
8222
8230
  throw f.name = "Invariant Violation", f;
8223
8231
  }
8224
8232
  d = o[c](s, c, l, a, null, t);
8225
- } catch (v) {
8226
- d = v;
8233
+ } catch (g) {
8234
+ d = g;
8227
8235
  }
8228
8236
  if (d && !(d instanceof Error) && e(
8229
8237
  (l || "React class") + ": type specification of " + a + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -8260,8 +8268,8 @@ function kx() {
8260
8268
  }
8261
8269
  return qi = function(a, l) {
8262
8270
  var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
8263
- function d(g) {
8264
- var k = g && (u && g[u] || g[c]);
8271
+ function d(x) {
8272
+ var k = x && (u && x[u] || x[c]);
8265
8273
  if (typeof k == "function")
8266
8274
  return k;
8267
8275
  }
@@ -8286,14 +8294,14 @@ function kx() {
8286
8294
  shape: X,
8287
8295
  exact: H
8288
8296
  };
8289
- function v(g, k) {
8290
- return g === k ? g !== 0 || 1 / g === 1 / k : g !== g && k !== k;
8297
+ function g(x, k) {
8298
+ return x === k ? x !== 0 || 1 / x === 1 / k : x !== x && k !== k;
8291
8299
  }
8292
- function x(g, k) {
8293
- this.message = g, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
8300
+ function v(x, k) {
8301
+ this.message = x, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
8294
8302
  }
8295
- x.prototype = Error.prototype;
8296
- function b(g) {
8303
+ v.prototype = Error.prototype;
8304
+ function b(x) {
8297
8305
  if (process.env.NODE_ENV !== "production")
8298
8306
  var k = {}, M = 0;
8299
8307
  function F(_, U, z, L, K, Z, ce) {
@@ -8311,19 +8319,19 @@ function kx() {
8311
8319
  ), k[ge] = !0, M++);
8312
8320
  }
8313
8321
  }
8314
- return U[z] == null ? _ ? U[z] === null ? new x("The " + K + " `" + Z + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new x("The " + K + " `" + Z + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : g(U, z, L, K, Z);
8322
+ return U[z] == null ? _ ? U[z] === null ? new v("The " + K + " `" + Z + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new v("The " + K + " `" + Z + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(U, z, L, K, Z);
8315
8323
  }
8316
8324
  var V = F.bind(null, !1);
8317
8325
  return V.isRequired = F.bind(null, !0), V;
8318
8326
  }
8319
- function h(g) {
8327
+ function h(x) {
8320
8328
  function k(M, F, V, _, U, z) {
8321
8329
  var L = M[F], K = te(L);
8322
- if (K !== g) {
8330
+ if (K !== x) {
8323
8331
  var Z = Y(L);
8324
- return new x(
8325
- "Invalid " + _ + " `" + U + "` of type " + ("`" + Z + "` supplied to `" + V + "`, expected ") + ("`" + g + "`."),
8326
- { expectedType: g }
8332
+ return new v(
8333
+ "Invalid " + _ + " `" + U + "` of type " + ("`" + Z + "` supplied to `" + V + "`, expected ") + ("`" + x + "`."),
8334
+ { expectedType: x }
8327
8335
  );
8328
8336
  }
8329
8337
  return null;
@@ -8333,17 +8341,17 @@ function kx() {
8333
8341
  function T() {
8334
8342
  return b(s);
8335
8343
  }
8336
- function w(g) {
8344
+ function w(x) {
8337
8345
  function k(M, F, V, _, U) {
8338
- if (typeof g != "function")
8339
- return new x("Property `" + U + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
8346
+ if (typeof x != "function")
8347
+ return new v("Property `" + U + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
8340
8348
  var z = M[F];
8341
8349
  if (!Array.isArray(z)) {
8342
8350
  var L = te(z);
8343
- return new x("Invalid " + _ + " `" + U + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected an array."));
8351
+ return new v("Invalid " + _ + " `" + U + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected an array."));
8344
8352
  }
8345
8353
  for (var K = 0; K < z.length; K++) {
8346
- var Z = g(z, K, V, _, U + "[" + K + "]", n);
8354
+ var Z = x(z, K, V, _, U + "[" + K + "]", n);
8347
8355
  if (Z instanceof Error)
8348
8356
  return Z;
8349
8357
  }
@@ -8352,64 +8360,64 @@ function kx() {
8352
8360
  return b(k);
8353
8361
  }
8354
8362
  function S() {
8355
- function g(k, M, F, V, _) {
8363
+ function x(k, M, F, V, _) {
8356
8364
  var U = k[M];
8357
8365
  if (!a(U)) {
8358
8366
  var z = te(U);
8359
- return new x("Invalid " + V + " `" + _ + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement."));
8367
+ return new v("Invalid " + V + " `" + _ + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement."));
8360
8368
  }
8361
8369
  return null;
8362
8370
  }
8363
- return b(g);
8371
+ return b(x);
8364
8372
  }
8365
8373
  function y() {
8366
- function g(k, M, F, V, _) {
8374
+ function x(k, M, F, V, _) {
8367
8375
  var U = k[M];
8368
8376
  if (!e.isValidElementType(U)) {
8369
8377
  var z = te(U);
8370
- return new x("Invalid " + V + " `" + _ + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement type."));
8378
+ return new v("Invalid " + V + " `" + _ + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement type."));
8371
8379
  }
8372
8380
  return null;
8373
8381
  }
8374
- return b(g);
8382
+ return b(x);
8375
8383
  }
8376
- function C(g) {
8384
+ function C(x) {
8377
8385
  function k(M, F, V, _, U) {
8378
- if (!(M[F] instanceof g)) {
8379
- var z = g.name || f, L = G(M[F]);
8380
- return new x("Invalid " + _ + " `" + U + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected ") + ("instance of `" + z + "`."));
8386
+ if (!(M[F] instanceof x)) {
8387
+ var z = x.name || f, L = G(M[F]);
8388
+ return new v("Invalid " + _ + " `" + U + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected ") + ("instance of `" + z + "`."));
8381
8389
  }
8382
8390
  return null;
8383
8391
  }
8384
8392
  return b(k);
8385
8393
  }
8386
- function j(g) {
8387
- if (!Array.isArray(g))
8394
+ function j(x) {
8395
+ if (!Array.isArray(x))
8388
8396
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
8389
8397
  "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])."
8390
8398
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
8391
8399
  function k(M, F, V, _, U) {
8392
- for (var z = M[F], L = 0; L < g.length; L++)
8393
- if (v(z, g[L]))
8400
+ for (var z = M[F], L = 0; L < x.length; L++)
8401
+ if (g(z, x[L]))
8394
8402
  return null;
8395
- var K = JSON.stringify(g, function(ce, R) {
8403
+ var K = JSON.stringify(x, function(ce, R) {
8396
8404
  var ge = Y(R);
8397
8405
  return ge === "symbol" ? String(R) : R;
8398
8406
  });
8399
- return new x("Invalid " + _ + " `" + U + "` of value `" + String(z) + "` " + ("supplied to `" + V + "`, expected one of " + K + "."));
8407
+ return new v("Invalid " + _ + " `" + U + "` of value `" + String(z) + "` " + ("supplied to `" + V + "`, expected one of " + K + "."));
8400
8408
  }
8401
8409
  return b(k);
8402
8410
  }
8403
- function P(g) {
8411
+ function P(x) {
8404
8412
  function k(M, F, V, _, U) {
8405
- if (typeof g != "function")
8406
- return new x("Property `" + U + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
8413
+ if (typeof x != "function")
8414
+ return new v("Property `" + U + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
8407
8415
  var z = M[F], L = te(z);
8408
8416
  if (L !== "object")
8409
- return new x("Invalid " + _ + " `" + U + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected an object."));
8417
+ return new v("Invalid " + _ + " `" + U + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected an object."));
8410
8418
  for (var K in z)
8411
8419
  if (i(z, K)) {
8412
- var Z = g(z, K, V, _, U + "." + K, n);
8420
+ var Z = x(z, K, V, _, U + "." + K, n);
8413
8421
  if (Z instanceof Error)
8414
8422
  return Z;
8415
8423
  }
@@ -8417,46 +8425,46 @@ function kx() {
8417
8425
  }
8418
8426
  return b(k);
8419
8427
  }
8420
- function O(g) {
8421
- if (!Array.isArray(g))
8428
+ function O(x) {
8429
+ if (!Array.isArray(x))
8422
8430
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
8423
- for (var k = 0; k < g.length; k++) {
8424
- var M = g[k];
8431
+ for (var k = 0; k < x.length; k++) {
8432
+ var M = x[k];
8425
8433
  if (typeof M != "function")
8426
8434
  return o(
8427
8435
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(M) + " at index " + k + "."
8428
8436
  ), s;
8429
8437
  }
8430
8438
  function F(V, _, U, z, L) {
8431
- for (var K = [], Z = 0; Z < g.length; Z++) {
8432
- var ce = g[Z], R = ce(V, _, U, z, L, n);
8439
+ for (var K = [], Z = 0; Z < x.length; Z++) {
8440
+ var ce = x[Z], R = ce(V, _, U, z, L, n);
8433
8441
  if (R == null)
8434
8442
  return null;
8435
8443
  R.data && i(R.data, "expectedType") && K.push(R.data.expectedType);
8436
8444
  }
8437
8445
  var ge = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
8438
- return new x("Invalid " + z + " `" + L + "` supplied to " + ("`" + U + "`" + ge + "."));
8446
+ return new v("Invalid " + z + " `" + L + "` supplied to " + ("`" + U + "`" + ge + "."));
8439
8447
  }
8440
8448
  return b(F);
8441
8449
  }
8442
8450
  function B() {
8443
- function g(k, M, F, V, _) {
8444
- return N(k[M]) ? null : new x("Invalid " + V + " `" + _ + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
8451
+ function x(k, M, F, V, _) {
8452
+ return N(k[M]) ? null : new v("Invalid " + V + " `" + _ + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
8445
8453
  }
8446
- return b(g);
8454
+ return b(x);
8447
8455
  }
8448
- function D(g, k, M, F, V) {
8449
- return new x(
8450
- (g || "React class") + ": " + k + " type `" + M + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
8456
+ function D(x, k, M, F, V) {
8457
+ return new v(
8458
+ (x || "React class") + ": " + k + " type `" + M + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
8451
8459
  );
8452
8460
  }
8453
- function X(g) {
8461
+ function X(x) {
8454
8462
  function k(M, F, V, _, U) {
8455
8463
  var z = M[F], L = te(z);
8456
8464
  if (L !== "object")
8457
- return new x("Invalid " + _ + " `" + U + "` of type `" + L + "` " + ("supplied to `" + V + "`, expected `object`."));
8458
- for (var K in g) {
8459
- var Z = g[K];
8465
+ return new v("Invalid " + _ + " `" + U + "` of type `" + L + "` " + ("supplied to `" + V + "`, expected `object`."));
8466
+ for (var K in x) {
8467
+ var Z = x[K];
8460
8468
  if (typeof Z != "function")
8461
8469
  return D(V, _, U, K, Y(Z));
8462
8470
  var ce = Z(z, K, V, _, U + "." + K, n);
@@ -8467,20 +8475,20 @@ function kx() {
8467
8475
  }
8468
8476
  return b(k);
8469
8477
  }
8470
- function H(g) {
8478
+ function H(x) {
8471
8479
  function k(M, F, V, _, U) {
8472
8480
  var z = M[F], L = te(z);
8473
8481
  if (L !== "object")
8474
- return new x("Invalid " + _ + " `" + U + "` of type `" + L + "` " + ("supplied to `" + V + "`, expected `object`."));
8475
- var K = t({}, M[F], g);
8482
+ return new v("Invalid " + _ + " `" + U + "` of type `" + L + "` " + ("supplied to `" + V + "`, expected `object`."));
8483
+ var K = t({}, M[F], x);
8476
8484
  for (var Z in K) {
8477
- var ce = g[Z];
8478
- if (i(g, Z) && typeof ce != "function")
8485
+ var ce = x[Z];
8486
+ if (i(x, Z) && typeof ce != "function")
8479
8487
  return D(V, _, U, Z, Y(ce));
8480
8488
  if (!ce)
8481
- return new x(
8489
+ return new v(
8482
8490
  "Invalid " + _ + " `" + U + "` key `" + Z + "` supplied to `" + V + "`.\nBad object: " + JSON.stringify(M[F], null, " ") + `
8483
- Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
8491
+ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
8484
8492
  );
8485
8493
  var R = ce(z, Z, V, _, U + "." + Z, n);
8486
8494
  if (R)
@@ -8490,23 +8498,23 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
8490
8498
  }
8491
8499
  return b(k);
8492
8500
  }
8493
- function N(g) {
8494
- switch (typeof g) {
8501
+ function N(x) {
8502
+ switch (typeof x) {
8495
8503
  case "number":
8496
8504
  case "string":
8497
8505
  case "undefined":
8498
8506
  return !0;
8499
8507
  case "boolean":
8500
- return !g;
8508
+ return !x;
8501
8509
  case "object":
8502
- if (Array.isArray(g))
8503
- return g.every(N);
8504
- if (g === null || a(g))
8510
+ if (Array.isArray(x))
8511
+ return x.every(N);
8512
+ if (x === null || a(x))
8505
8513
  return !0;
8506
- var k = d(g);
8514
+ var k = d(x);
8507
8515
  if (k) {
8508
- var M = k.call(g), F;
8509
- if (k !== g.entries) {
8516
+ var M = k.call(x), F;
8517
+ if (k !== x.entries) {
8510
8518
  for (; !(F = M.next()).done; )
8511
8519
  if (!N(F.value))
8512
8520
  return !1;
@@ -8523,27 +8531,27 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
8523
8531
  return !1;
8524
8532
  }
8525
8533
  }
8526
- function J(g, k) {
8527
- return g === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
8534
+ function J(x, k) {
8535
+ return x === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
8528
8536
  }
8529
- function te(g) {
8530
- var k = typeof g;
8531
- return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : J(k, g) ? "symbol" : k;
8537
+ function te(x) {
8538
+ var k = typeof x;
8539
+ return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : J(k, x) ? "symbol" : k;
8532
8540
  }
8533
- function Y(g) {
8534
- if (typeof g > "u" || g === null)
8535
- return "" + g;
8536
- var k = te(g);
8541
+ function Y(x) {
8542
+ if (typeof x > "u" || x === null)
8543
+ return "" + x;
8544
+ var k = te(x);
8537
8545
  if (k === "object") {
8538
- if (g instanceof Date)
8546
+ if (x instanceof Date)
8539
8547
  return "date";
8540
- if (g instanceof RegExp)
8548
+ if (x instanceof RegExp)
8541
8549
  return "regexp";
8542
8550
  }
8543
8551
  return k;
8544
8552
  }
8545
- function W(g) {
8546
- var k = Y(g);
8553
+ function W(x) {
8554
+ var k = Y(x);
8547
8555
  switch (k) {
8548
8556
  case "array":
8549
8557
  case "object":
@@ -8556,8 +8564,8 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
8556
8564
  return k;
8557
8565
  }
8558
8566
  }
8559
- function G(g) {
8560
- return !g.constructor || !g.constructor.name ? f : g.constructor.name;
8567
+ function G(x) {
8568
+ return !x.constructor || !x.constructor.name ? f : x.constructor.name;
8561
8569
  }
8562
8570
  return m.checkPropTypes = r, m.resetWarningCache = r.resetWarningCache, m.PropTypes = m, m;
8563
8571
  }, qi;
@@ -10143,8 +10151,8 @@ function dt(e) {
10143
10151
  function ny(e) {
10144
10152
  var t = e.files, n = e.accept, i = e.minSize, r = e.maxSize, o = e.multiple, s = e.maxFiles, a = e.validator;
10145
10153
  return !o && t.length > 1 || o && s >= 1 && t.length > s ? !1 : t.every(function(l) {
10146
- var u = gu(l, n), c = gn(u, 1), d = c[0], f = vu(l, i, r), m = gn(f, 1), v = m[0], x = a ? a(l) : null;
10147
- return d && v && !x;
10154
+ var u = gu(l, n), c = gn(u, 1), d = c[0], f = vu(l, i, r), m = gn(f, 1), g = m[0], v = a ? a(l) : null;
10155
+ return d && g && !v;
10148
10156
  });
10149
10157
  }
10150
10158
  function Qn(e) {
@@ -10526,15 +10534,15 @@ var Cr = {
10526
10534
  fileRejections: []
10527
10535
  };
10528
10536
  function Do() {
10529
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ie(ie({}, wu), e), n = t.accept, i = t.disabled, r = t.getFilesFromEvent, o = t.maxSize, s = t.minSize, a = t.multiple, l = t.maxFiles, u = t.onDragEnter, c = t.onDragLeave, d = t.onDragOver, f = t.onDrop, m = t.onDropAccepted, v = t.onDropRejected, x = t.onFileDialogCancel, b = t.onFileDialogOpen, h = t.useFsAccessApi, T = t.autoFocus, w = t.preventDropOnDocument, S = t.noClick, y = t.noKeyboard, C = t.noDrag, j = t.noDragEventsBubbling, P = t.onError, O = t.validator, B = Ee(function() {
10537
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ie(ie({}, wu), e), n = t.accept, i = t.disabled, r = t.getFilesFromEvent, o = t.maxSize, s = t.minSize, a = t.multiple, l = t.maxFiles, u = t.onDragEnter, c = t.onDragLeave, d = t.onDragOver, f = t.onDrop, m = t.onDropAccepted, g = t.onDropRejected, v = t.onFileDialogCancel, b = t.onFileDialogOpen, h = t.useFsAccessApi, T = t.autoFocus, w = t.preventDropOnDocument, S = t.noClick, y = t.noKeyboard, C = t.noDrag, j = t.noDragEventsBubbling, P = t.onError, O = t.validator, B = Ee(function() {
10530
10538
  return ly(n);
10531
10539
  }, [n]), D = Ee(function() {
10532
10540
  return ay(n);
10533
10541
  }, [n]), X = Ee(function() {
10534
10542
  return typeof b == "function" ? b : Ba;
10535
10543
  }, [b]), H = Ee(function() {
10536
- return typeof x == "function" ? x : Ba;
10537
- }, [x]), N = ye(null), J = ye(null), te = Mu(Ty, Cr), Y = Yi(te, 2), W = Y[0], G = Y[1], g = W.isFocused, k = W.isFileDialogActive, M = ye(typeof window < "u" && window.isSecureContext && h && sy()), F = function() {
10544
+ return typeof v == "function" ? v : Ba;
10545
+ }, [v]), N = ye(null), J = ye(null), te = Mu(Ty, Cr), Y = Yi(te, 2), W = Y[0], G = Y[1], x = W.isFocused, k = W.isFileDialogActive, M = ye(typeof window < "u" && window.isSecureContext && h && sy()), F = function() {
10538
10546
  !M.current && k && setTimeout(function() {
10539
10547
  if (J.current) {
10540
10548
  var $ = J.current.files;
@@ -10655,8 +10663,8 @@ function Do() {
10655
10663
  acceptedFiles: se,
10656
10664
  fileRejections: de,
10657
10665
  type: "setFiles"
10658
- }), f && f(se, de, $), de.length > 0 && v && v(de, $), se.length > 0 && m && m(se, $);
10659
- }, [G, a, B, s, o, l, f, m, v, O]), R = we(function(A) {
10666
+ }), f && f(se, de, $), de.length > 0 && g && g(de, $), se.length > 0 && m && m(se, $);
10667
+ }, [G, a, B, s, o, l, f, m, g, O]), R = we(function(A) {
10660
10668
  A.preventDefault(), A.persist(), kn(A), V.current = [], Jt(A) && Promise.resolve(r(A)).then(function($) {
10661
10669
  Qn(A) && !j || ce($, A);
10662
10670
  }).catch(function($) {
@@ -10754,7 +10762,7 @@ function Do() {
10754
10762
  };
10755
10763
  }, [J, n, a, R, i]);
10756
10764
  return ie(ie({}, W), {}, {
10757
- isFocused: g && !i,
10765
+ isFocused: x && !i,
10758
10766
  getRootProps: ju,
10759
10767
  getInputProps: Cu,
10760
10768
  rootRef: N,
@@ -10831,8 +10839,8 @@ const Sy = {
10831
10839
  onChange: d,
10832
10840
  onDropRejected: f,
10833
10841
  accept: m,
10834
- maxSize: v,
10835
- minSize: x,
10842
+ maxSize: g,
10843
+ minSize: v,
10836
10844
  disabled: b = !1,
10837
10845
  className: h
10838
10846
  } = e, T = async (O) => {
@@ -10847,8 +10855,8 @@ const Sy = {
10847
10855
  } = Do({
10848
10856
  multiple: !1,
10849
10857
  accept: m,
10850
- maxSize: v,
10851
- minSize: x,
10858
+ maxSize: g,
10859
+ minSize: v,
10852
10860
  disabled: b,
10853
10861
  onDrop: T,
10854
10862
  onDropRejected: f
@@ -10968,8 +10976,8 @@ const Sy = {
10968
10976
  accept: d,
10969
10977
  maxSize: f,
10970
10978
  minSize: m,
10971
- maxFiles: v,
10972
- disabled: x = !1,
10979
+ maxFiles: g,
10980
+ disabled: v = !1,
10973
10981
  className: b
10974
10982
  } = e, [h, T] = ue([]), w = ye(0), S = (D, X) => {
10975
10983
  T((H) => H.map((N) => N.id === D ? { ...N, ...X } : N));
@@ -11001,8 +11009,8 @@ const Sy = {
11001
11009
  accept: d,
11002
11010
  maxSize: f,
11003
11011
  minSize: m,
11004
- maxFiles: v,
11005
- disabled: x,
11012
+ maxFiles: g,
11013
+ disabled: v,
11006
11014
  onDrop: y,
11007
11015
  onDropRejected: u
11008
11016
  });
@@ -11019,7 +11027,7 @@ const Sy = {
11019
11027
  "ring-0 focus:outline-none",
11020
11028
  (B || O) && "ring-4",
11021
11029
  i && "input-error",
11022
- x && "opacity-60 cursor-not-allowed"
11030
+ v && "opacity-60 cursor-not-allowed"
11023
11031
  )
11024
11032
  }),
11025
11033
  children: [
@@ -11129,11 +11137,11 @@ const Sy = {
11129
11137
  maxHeight: l = 300,
11130
11138
  error: u,
11131
11139
  size: c = "md"
11132
- } = e, [d, f] = ue(!1), m = E.useRef(null), v = r?.find((h) => h.value === s);
11140
+ } = e, [d, f] = ue(!1), m = E.useRef(null), g = r?.find((h) => h.value === s);
11133
11141
  Ht(d, () => f(!1)), be(() => {
11134
11142
  d && m.current?.focus({ preventScroll: !0 });
11135
11143
  }, [d]);
11136
- const { anchorRef: x, Popover: b } = qt({
11144
+ const { anchorRef: v, Popover: b } = qt({
11137
11145
  placement: "bottom",
11138
11146
  fullWidth: !0,
11139
11147
  onOutsideClick: () => f(!1)
@@ -11147,7 +11155,7 @@ const Sy = {
11147
11155
  ),
11148
11156
  children: [
11149
11157
  /* @__PURE__ */ p.jsx(Xe, { children: n }),
11150
- /* @__PURE__ */ p.jsxs("div", { className: "relative flex w-full flex-col", ref: x, children: [
11158
+ /* @__PURE__ */ p.jsxs("div", { className: "relative flex w-full flex-col", ref: v, children: [
11151
11159
  /* @__PURE__ */ p.jsxs(
11152
11160
  "div",
11153
11161
  {
@@ -11166,8 +11174,8 @@ const Sy = {
11166
11174
  onKeyDown: (h) => h.key === " " && f((T) => !T),
11167
11175
  onClick: () => f(!d),
11168
11176
  children: [
11169
- v && /* @__PURE__ */ p.jsx("span", { children: v.label }),
11170
- !v && a && /* @__PURE__ */ p.jsx("span", { className: "select-placeholder", children: a })
11177
+ g && /* @__PURE__ */ p.jsx("span", { children: g.label }),
11178
+ !g && a && /* @__PURE__ */ p.jsx("span", { className: "select-placeholder", children: a })
11171
11179
  ]
11172
11180
  }
11173
11181
  ),
@@ -11210,9 +11218,9 @@ const Sy = {
11210
11218
  maxHeight: u = 300,
11211
11219
  error: c,
11212
11220
  size: d = "md"
11213
- } = e, [f, m] = ue(!1), [v, x] = ue(r), [b, h] = ue(""), T = E.useRef(null), w = E.useRef(null), S = r?.find((j) => j.value === a);
11221
+ } = e, [f, m] = ue(!1), [g, v] = ue(r), [b, h] = ue(""), T = E.useRef(null), w = E.useRef(null), S = r?.find((j) => j.value === a);
11214
11222
  Ht(f, () => m(!1)), be(() => {
11215
- x(s(b));
11223
+ v(s(b));
11216
11224
  }, [b, r, s]), be(() => {
11217
11225
  f && setTimeout(() => w.current?.focus(), 100);
11218
11226
  }, [f]);
@@ -11276,8 +11284,8 @@ const Sy = {
11276
11284
  ] }),
11277
11285
  /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-1 p-2", children: [
11278
11286
  b !== "" && /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
11279
- v.length === 0 && /* @__PURE__ */ p.jsx("div", { className: "flex flex-col items-center justify-center py-6", children: /* @__PURE__ */ p.jsx(Bc, { className: "h-6 w-6 text-[var(--color-input-text)]" }) }),
11280
- v.map((j) => {
11287
+ g.length === 0 && /* @__PURE__ */ p.jsx("div", { className: "flex flex-col items-center justify-center py-6", children: /* @__PURE__ */ p.jsx(Bc, { className: "h-6 w-6 text-[var(--color-input-text)]" }) }),
11288
+ g.map((j) => {
11281
11289
  const P = j.value === a;
11282
11290
  return /* @__PURE__ */ p.jsx(
11283
11291
  ti,
@@ -11340,8 +11348,8 @@ const Sy = {
11340
11348
  maxHeight: c = 300,
11341
11349
  error: d,
11342
11350
  size: f = "md"
11343
- } = e, [m, v] = ue(!1), x = E.useRef(null), [b, h] = ue(""), [T, w] = ue([]), [S, y] = ue(null), C = E.useRef(null), [j, P] = ue(!1), [O, B] = ue(!1);
11344
- Ht(m, () => v(!1));
11351
+ } = e, [m, g] = ue(!1), v = E.useRef(null), [b, h] = ue(""), [T, w] = ue([]), [S, y] = ue(null), C = E.useRef(null), [j, P] = ue(!1), [O, B] = ue(!1);
11352
+ Ht(m, () => g(!1));
11345
11353
  const D = Ry(b, a);
11346
11354
  be(() => {
11347
11355
  (async () => {
@@ -11366,7 +11374,7 @@ const Sy = {
11366
11374
  const { anchorRef: X, Popover: H } = qt({
11367
11375
  placement: "bottom",
11368
11376
  fullWidth: !0,
11369
- onOutsideClick: () => v(!1)
11377
+ onOutsideClick: () => g(!1)
11370
11378
  });
11371
11379
  return /* @__PURE__ */ p.jsx(Ze.Provider, { value: f, children: /* @__PURE__ */ p.jsxs(
11372
11380
  "div",
@@ -11381,7 +11389,7 @@ const Sy = {
11381
11389
  /* @__PURE__ */ p.jsxs(
11382
11390
  "div",
11383
11391
  {
11384
- ref: x,
11392
+ ref: v,
11385
11393
  role: "button",
11386
11394
  tabIndex: 0,
11387
11395
  className: I(
@@ -11393,8 +11401,8 @@ const Sy = {
11393
11401
  d && "select-trigger-error",
11394
11402
  m && "ring-4"
11395
11403
  ),
11396
- onKeyDown: (N) => N.key === " " && v((J) => !J),
11397
- onClick: () => v(!m),
11404
+ onKeyDown: (N) => N.key === " " && g((J) => !J),
11405
+ onClick: () => g(!m),
11398
11406
  children: [
11399
11407
  !O && S && /* @__PURE__ */ p.jsx("span", { children: S.label }),
11400
11408
  !O && !S && u && /* @__PURE__ */ p.jsx("span", { className: "select-placeholder", children: u }),
@@ -11431,7 +11439,7 @@ const Sy = {
11431
11439
  ti,
11432
11440
  {
11433
11441
  onClick: () => {
11434
- !N.disabled && r && (r(N.value), v(!1));
11442
+ !N.disabled && r && (r(N.value), g(!1));
11435
11443
  },
11436
11444
  selected: J,
11437
11445
  disabled: N.disabled,
@@ -11835,13 +11843,13 @@ const Sy = {
11835
11843
  if (!c || !d) return;
11836
11844
  let f = !0;
11837
11845
  const m = () => {
11838
- const x = i ? c.scrollWidth - c.clientWidth : c.scrollHeight - c.clientHeight, b = i ? c.scrollLeft : c.scrollTop;
11839
- if (!(x <= 0 || Math.abs(x - b) < 1)) {
11846
+ const v = i ? c.scrollWidth - c.clientWidth : c.scrollHeight - c.clientHeight, b = i ? c.scrollLeft : c.scrollTop;
11847
+ if (!(v <= 0 || Math.abs(v - b) < 1)) {
11840
11848
  if (f) {
11841
- f = !1, i ? c.scrollLeft = x : c.scrollTop = x;
11849
+ f = !1, i ? c.scrollLeft = v : c.scrollTop = v;
11842
11850
  return;
11843
11851
  }
11844
- u.current?.stop(), u.current = Rh(b, x, {
11852
+ u.current?.stop(), u.current = Rh(b, v, {
11845
11853
  duration: t,
11846
11854
  ease: n,
11847
11855
  onUpdate: (h) => {
@@ -11849,9 +11857,9 @@ const Sy = {
11849
11857
  }
11850
11858
  });
11851
11859
  }
11852
- }, v = new ResizeObserver(m);
11853
- return v.observe(d), () => {
11854
- v.disconnect(), u.current?.stop();
11860
+ }, g = new ResizeObserver(m);
11861
+ return g.observe(d), () => {
11862
+ g.disconnect(), u.current?.stop();
11855
11863
  };
11856
11864
  }, [t, n, i]), /* @__PURE__ */ p.jsx(
11857
11865
  "div",
@@ -11875,9 +11883,9 @@ function Iy(e) {
11875
11883
  disabled: r = !1,
11876
11884
  primaryButtonOnly: o = !0,
11877
11885
  preventScrollOnMove: s = !0
11878
- } = e, [a, l] = E.useState(!1), u = E.useRef(!1), c = E.useRef(0), d = E.useRef(0), f = E.useRef(0), m = E.useRef(null), v = E.useRef(null), x = E.useRef({ onDelta: t, onDragStart: n, onDragEnd: i, preventScrollOnMove: s });
11886
+ } = e, [a, l] = E.useState(!1), u = E.useRef(!1), c = E.useRef(0), d = E.useRef(0), f = E.useRef(0), m = E.useRef(null), g = E.useRef(null), v = E.useRef({ onDelta: t, onDragStart: n, onDragEnd: i, preventScrollOnMove: s });
11879
11887
  E.useEffect(() => {
11880
- x.current = { onDelta: t, onDragStart: n, onDragEnd: i, preventScrollOnMove: s };
11888
+ v.current = { onDelta: t, onDragStart: n, onDragEnd: i, preventScrollOnMove: s };
11881
11889
  });
11882
11890
  const b = E.useRef({}), h = E.useCallback((w) => {
11883
11891
  if (!u.current) return;
@@ -11889,7 +11897,7 @@ function Iy(e) {
11889
11897
  };
11890
11898
  u.current = !1, l(!1);
11891
11899
  const { move: y, up: C, keydown: j } = b.current;
11892
- y && window.removeEventListener("pointermove", y, !0), C && (window.removeEventListener("pointerup", C, !0), window.removeEventListener("pointercancel", C, !0)), j && window.removeEventListener("keydown", j, !0), b.current = {}, v.current != null && (cancelAnimationFrame(v.current), v.current = null), x.current.onDragEnd?.(S), m.current = null, f.current = 0;
11900
+ y && window.removeEventListener("pointermove", y, !0), C && (window.removeEventListener("pointerup", C, !0), window.removeEventListener("pointercancel", C, !0)), j && window.removeEventListener("keydown", j, !0), b.current = {}, g.current != null && (cancelAnimationFrame(g.current), g.current = null), v.current.onDragEnd?.(S), m.current = null, f.current = 0;
11893
11901
  }, []), T = E.useCallback((w) => {
11894
11902
  if (r || o && w.button !== 0) return;
11895
11903
  w.target.setPointerCapture?.(w.pointerId), c.current = w.clientX, d.current = w.clientX, f.current = 0, m.current = w.target, u.current = !0, l(!0);
@@ -11899,10 +11907,10 @@ function Iy(e) {
11899
11907
  totalDeltaX: 0,
11900
11908
  target: w.target
11901
11909
  };
11902
- x.current.onDragStart?.(S);
11910
+ v.current.onDragStart?.(S);
11903
11911
  const y = (P) => {
11904
- u.current && v.current == null && (v.current = requestAnimationFrame(() => {
11905
- v.current = null;
11912
+ u.current && g.current == null && (g.current = requestAnimationFrame(() => {
11913
+ g.current = null;
11906
11914
  const O = P.clientX, B = O - d.current;
11907
11915
  if (B === 0) return;
11908
11916
  d.current = O, f.current += B;
@@ -11912,7 +11920,7 @@ function Iy(e) {
11912
11920
  totalDeltaX: f.current,
11913
11921
  target: m.current
11914
11922
  };
11915
- x.current.preventScrollOnMove && P.preventDefault(), x.current.onDelta(B, D);
11923
+ v.current.preventScrollOnMove && P.preventDefault(), v.current.onDelta(B, D);
11916
11924
  }));
11917
11925
  }, C = (P) => {
11918
11926
  h(P.clientX);
@@ -12026,24 +12034,24 @@ const Ny = (e) => {
12026
12034
  }
12027
12035
  s(null);
12028
12036
  }
12029
- }, [o, s]), v = t.reduce(
12037
+ }, [o, s]), g = t.reduce(
12030
12038
  (h, T) => h + (c[T.id] ?? T.defaultWidth ?? jt),
12031
12039
  0
12032
- ), x = ye(null), b = (h) => {
12033
- x.current && (x.current.scrollLeft = h.currentTarget.scrollLeft);
12040
+ ), v = ye(null), b = (h) => {
12041
+ v.current && (v.current.scrollLeft = h.currentTarget.scrollLeft);
12034
12042
  };
12035
12043
  return /* @__PURE__ */ p.jsxs("div", { className: I("flex flex-col h-full w-full", a), children: [
12036
12044
  /* @__PURE__ */ p.jsx(
12037
12045
  "div",
12038
12046
  {
12039
- ref: x,
12047
+ ref: v,
12040
12048
  className: "overflow-hidden shrink-0 table-header-strip",
12041
12049
  style: { height: u },
12042
12050
  children: /* @__PURE__ */ p.jsx(
12043
12051
  "div",
12044
12052
  {
12045
12053
  className: "flex flex-row table-header font-medium",
12046
- style: { width: v, minWidth: "100%" },
12054
+ style: { width: g, minWidth: "100%" },
12047
12055
  children: t.map((h) => /* @__PURE__ */ p.jsx(
12048
12056
  Ny,
12049
12057
  {
@@ -12069,7 +12077,7 @@ const Ny = (e) => {
12069
12077
  "div",
12070
12078
  {
12071
12079
  className: "flex flex-col",
12072
- style: { width: v, minWidth: "100%" },
12080
+ style: { width: g, minWidth: "100%" },
12073
12081
  children: n.map((h, T) => /* @__PURE__ */ p.jsx(
12074
12082
  "div",
12075
12083
  {