@react-hive/honey-layout 9.2.1 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +879 -881
  2. package/package.json +16 -16
package/dist/index.js CHANGED
@@ -162,232 +162,230 @@ var yt = {};
162
162
  var wr;
163
163
  function Rs() {
164
164
  return wr || (wr = 1, process.env.NODE_ENV !== "production" && (function() {
165
- function e(y) {
166
- if (y == null) return null;
167
- if (typeof y == "function")
168
- return y.$$typeof === L ? null : y.displayName || y.name || null;
169
- if (typeof y == "string") return y;
170
- switch (y) {
171
- case h:
165
+ function e(b) {
166
+ if (b == null) return null;
167
+ if (typeof b == "function")
168
+ return b.$$typeof === H ? null : b.displayName || b.name || null;
169
+ if (typeof b == "string") return b;
170
+ switch (b) {
171
+ case E:
172
172
  return "Fragment";
173
- case T:
173
+ case R:
174
174
  return "Profiler";
175
- case E:
175
+ case T:
176
176
  return "StrictMode";
177
- case k:
178
- return "Suspense";
179
177
  case C:
180
- return "SuspenseList";
178
+ return "Suspense";
181
179
  case P:
180
+ return "SuspenseList";
181
+ case D:
182
182
  return "Activity";
183
183
  }
184
- if (typeof y == "object")
185
- switch (typeof y.tag == "number" && console.error(
184
+ if (typeof b == "object")
185
+ switch (typeof b.tag == "number" && console.error(
186
186
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
187
- ), y.$$typeof) {
188
- case v:
187
+ ), b.$$typeof) {
188
+ case h:
189
189
  return "Portal";
190
- case O:
191
- return (y.displayName || "Context") + ".Provider";
192
- case R:
193
- return (y._context.displayName || "Context") + ".Consumer";
194
- case D:
195
- var $ = y.render;
196
- return y = y.displayName, y || (y = $.displayName || $.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
197
- case A:
198
- return $ = y.displayName || null, $ !== null ? $ : e(y.type) || "Memo";
190
+ case I:
191
+ return b.displayName || "Context";
192
+ case _:
193
+ return (b._context.displayName || "Context") + ".Consumer";
199
194
  case N:
200
- $ = y._payload, y = y._init;
195
+ var L = b.render;
196
+ return b = b.displayName, b || (b = L.displayName || L.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
197
+ case j:
198
+ return L = b.displayName || null, L !== null ? L : e(b.type) || "Memo";
199
+ case A:
200
+ L = b._payload, b = b._init;
201
201
  try {
202
- return e(y($));
202
+ return e(b(L));
203
203
  } catch {
204
204
  }
205
205
  }
206
206
  return null;
207
207
  }
208
- function t(y) {
209
- return "" + y;
208
+ function t(b) {
209
+ return "" + b;
210
210
  }
211
- function n(y) {
211
+ function n(b) {
212
212
  try {
213
- t(y);
214
- var $ = !1;
213
+ t(b);
214
+ var L = !1;
215
215
  } catch {
216
- $ = !0;
216
+ L = !0;
217
217
  }
218
- if ($) {
219
- $ = console;
220
- var H = $.error, _ = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
221
- return H.call(
222
- $,
218
+ if (L) {
219
+ L = console;
220
+ var O = L.error, X = typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object";
221
+ return O.call(
222
+ L,
223
223
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
224
- _
225
- ), t(y);
224
+ X
225
+ ), t(b);
226
226
  }
227
227
  }
228
- function r(y) {
229
- if (y === h) return "<>";
230
- if (typeof y == "object" && y !== null && y.$$typeof === N)
228
+ function r(b) {
229
+ if (b === E) return "<>";
230
+ if (typeof b == "object" && b !== null && b.$$typeof === A)
231
231
  return "<...>";
232
232
  try {
233
- var $ = e(y);
234
- return $ ? "<" + $ + ">" : "<...>";
233
+ var L = e(b);
234
+ return L ? "<" + L + ">" : "<...>";
235
235
  } catch {
236
236
  return "<...>";
237
237
  }
238
238
  }
239
239
  function o() {
240
- var y = W.A;
241
- return y === null ? null : y.getOwner();
240
+ var b = U.A;
241
+ return b === null ? null : b.getOwner();
242
242
  }
243
243
  function i() {
244
244
  return Error("react-stack-top-frame");
245
245
  }
246
- function s(y) {
247
- if (Y.call(y, "key")) {
248
- var $ = Object.getOwnPropertyDescriptor(y, "key").get;
249
- if ($ && $.isReactWarning) return !1;
246
+ function s(b) {
247
+ if ($.call(b, "key")) {
248
+ var L = Object.getOwnPropertyDescriptor(b, "key").get;
249
+ if (L && L.isReactWarning) return !1;
250
250
  }
251
- return y.key !== void 0;
251
+ return b.key !== void 0;
252
252
  }
253
- function u(y, $) {
254
- function H() {
255
- M || (M = !0, console.error(
253
+ function u(b, L) {
254
+ function O() {
255
+ Y || (Y = !0, console.error(
256
256
  "%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)",
257
- $
257
+ L
258
258
  ));
259
259
  }
260
- H.isReactWarning = !0, Object.defineProperty(y, "key", {
261
- get: H,
260
+ O.isReactWarning = !0, Object.defineProperty(b, "key", {
261
+ get: O,
262
262
  configurable: !0
263
263
  });
264
264
  }
265
265
  function l() {
266
- var y = e(this.type);
267
- return U[y] || (U[y] = !0, console.error(
266
+ var b = e(this.type);
267
+ return k[b] || (k[b] = !0, console.error(
268
268
  "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."
269
- )), y = this.props.ref, y !== void 0 ? y : null;
270
- }
271
- function c(y, $, H, _, Q, G, K, ne) {
272
- return H = G.ref, y = {
273
- $$typeof: g,
274
- type: y,
275
- key: $,
276
- props: G,
277
- _owner: Q
278
- }, (H !== void 0 ? H : null) !== null ? Object.defineProperty(y, "ref", {
269
+ )), b = this.props.ref, b !== void 0 ? b : null;
270
+ }
271
+ function c(b, L, O, X, K, Z) {
272
+ var G = O.ref;
273
+ return b = {
274
+ $$typeof: v,
275
+ type: b,
276
+ key: L,
277
+ props: O,
278
+ _owner: X
279
+ }, (G !== void 0 ? G : null) !== null ? Object.defineProperty(b, "ref", {
279
280
  enumerable: !1,
280
281
  get: l
281
- }) : Object.defineProperty(y, "ref", { enumerable: !1, value: null }), y._store = {}, Object.defineProperty(y._store, "validated", {
282
+ }) : Object.defineProperty(b, "ref", { enumerable: !1, value: null }), b._store = {}, Object.defineProperty(b._store, "validated", {
282
283
  configurable: !1,
283
284
  enumerable: !1,
284
285
  writable: !0,
285
286
  value: 0
286
- }), Object.defineProperty(y, "_debugInfo", {
287
+ }), Object.defineProperty(b, "_debugInfo", {
287
288
  configurable: !1,
288
289
  enumerable: !1,
289
290
  writable: !0,
290
291
  value: null
291
- }), Object.defineProperty(y, "_debugStack", {
292
+ }), Object.defineProperty(b, "_debugStack", {
292
293
  configurable: !1,
293
294
  enumerable: !1,
294
295
  writable: !0,
295
296
  value: K
296
- }), Object.defineProperty(y, "_debugTask", {
297
+ }), Object.defineProperty(b, "_debugTask", {
297
298
  configurable: !1,
298
299
  enumerable: !1,
299
300
  writable: !0,
300
- value: ne
301
- }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
302
- }
303
- function p(y, $, H, _, Q, G, K, ne) {
304
- var B = $.children;
305
- if (B !== void 0)
306
- if (_)
307
- if (F(B)) {
308
- for (_ = 0; _ < B.length; _++)
309
- f(B[_]);
310
- Object.freeze && Object.freeze(B);
301
+ value: Z
302
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
303
+ }
304
+ function p(b, L, O, X, K, Z) {
305
+ var G = L.children;
306
+ if (G !== void 0)
307
+ if (X)
308
+ if (y(G)) {
309
+ for (X = 0; X < G.length; X++)
310
+ f(G[X]);
311
+ Object.freeze && Object.freeze(G);
311
312
  } else
312
313
  console.error(
313
314
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
314
315
  );
315
- else f(B);
316
- if (Y.call($, "key")) {
317
- B = e(y);
318
- var X = Object.keys($).filter(function(le) {
319
- return le !== "key";
316
+ else f(G);
317
+ if ($.call(L, "key")) {
318
+ G = e(b);
319
+ var W = Object.keys(L).filter(function(se) {
320
+ return se !== "key";
320
321
  });
321
- _ = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", j[B + _] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
322
+ X = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", B[G + X] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
322
323
  `A props object containing a "key" prop is being spread into JSX:
323
324
  let props = %s;
324
325
  <%s {...props} />
325
326
  React keys must be passed directly to JSX without using spread:
326
327
  let props = %s;
327
328
  <%s key={someKey} {...props} />`,
328
- _,
329
- B,
330
329
  X,
331
- B
332
- ), j[B + _] = !0);
330
+ G,
331
+ W,
332
+ G
333
+ ), B[G + X] = !0);
333
334
  }
334
- if (B = null, H !== void 0 && (n(H), B = "" + H), s($) && (n($.key), B = "" + $.key), "key" in $) {
335
- H = {};
336
- for (var oe in $)
337
- oe !== "key" && (H[oe] = $[oe]);
338
- } else H = $;
339
- return B && u(
340
- H,
341
- typeof y == "function" ? y.displayName || y.name || "Unknown" : y
335
+ if (G = null, O !== void 0 && (n(O), G = "" + O), s(L) && (n(L.key), G = "" + L.key), "key" in L) {
336
+ O = {};
337
+ for (var J in L)
338
+ J !== "key" && (O[J] = L[J]);
339
+ } else O = L;
340
+ return G && u(
341
+ O,
342
+ typeof b == "function" ? b.displayName || b.name || "Unknown" : b
342
343
  ), c(
343
- y,
344
- B,
344
+ b,
345
345
  G,
346
- Q,
346
+ O,
347
347
  o(),
348
- H,
349
348
  K,
350
- ne
349
+ Z
351
350
  );
352
351
  }
353
- function f(y) {
354
- typeof y == "object" && y !== null && y.$$typeof === g && y._store && (y._store.validated = 1);
352
+ function f(b) {
353
+ a(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === A && (b._payload.status === "fulfilled" ? a(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
354
+ }
355
+ function a(b) {
356
+ return typeof b == "object" && b !== null && b.$$typeof === v;
355
357
  }
356
- var a = jn, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), O = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), W = a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, F = Array.isArray, b = console.createTask ? console.createTask : function() {
358
+ var g = jn, v = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), I = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), U = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, y = Array.isArray, M = console.createTask ? console.createTask : function() {
357
359
  return null;
358
360
  };
359
- a = {
360
- react_stack_bottom_frame: function(y) {
361
- return y();
361
+ g = {
362
+ react_stack_bottom_frame: function(b) {
363
+ return b();
362
364
  }
363
365
  };
364
- var M, U = {}, I = a.react_stack_bottom_frame.bind(
365
- a,
366
+ var Y, k = {}, S = g.react_stack_bottom_frame.bind(
367
+ g,
366
368
  i
367
- )(), S = b(r(i)), j = {};
368
- yt.Fragment = h, yt.jsx = function(y, $, H, _, Q) {
369
- var G = 1e4 > W.recentlyCreatedOwnerStacks++;
369
+ )(), F = M(r(i)), B = {};
370
+ yt.Fragment = E, yt.jsx = function(b, L, O) {
371
+ var X = 1e4 > U.recentlyCreatedOwnerStacks++;
370
372
  return p(
371
- y,
372
- $,
373
- H,
373
+ b,
374
+ L,
375
+ O,
374
376
  !1,
375
- _,
376
- Q,
377
- G ? Error("react-stack-top-frame") : I,
378
- G ? b(r(y)) : S
377
+ X ? Error("react-stack-top-frame") : S,
378
+ X ? M(r(b)) : F
379
379
  );
380
- }, yt.jsxs = function(y, $, H, _, Q) {
381
- var G = 1e4 > W.recentlyCreatedOwnerStacks++;
380
+ }, yt.jsxs = function(b, L, O) {
381
+ var X = 1e4 > U.recentlyCreatedOwnerStacks++;
382
382
  return p(
383
- y,
384
- $,
385
- H,
383
+ b,
384
+ L,
385
+ O,
386
386
  !0,
387
- _,
388
- Q,
389
- G ? Error("react-stack-top-frame") : I,
390
- G ? b(r(y)) : S
387
+ X ? Error("react-stack-top-frame") : S,
388
+ X ? M(r(b)) : F
391
389
  );
392
390
  };
393
391
  })()), yt;
@@ -544,87 +542,87 @@ function Ls() {
544
542
  var e = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, u = parseInt, l = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, c = typeof self == "object" && self && self.Object === Object && self, p = l || c || Function("return this")(), f = Object.prototype, a = f.toString, g = Math.max, v = Math.min, h = function() {
545
543
  return p.Date.now();
546
544
  };
547
- function E(C, A, N) {
548
- var P, L, W, Y, F, b, M = 0, U = !1, I = !1, S = !0;
545
+ function E(C, P, j) {
546
+ var A, D, H, U, $, y, M = 0, Y = !1, k = !1, S = !0;
549
547
  if (typeof C != "function")
550
548
  throw new TypeError(e);
551
- A = k(A) || 0, R(N) && (U = !!N.leading, I = "maxWait" in N, W = I ? g(k(N.maxWait) || 0, A) : W, S = "trailing" in N ? !!N.trailing : S);
552
- function j(B) {
553
- var X = P, oe = L;
554
- return P = L = void 0, M = B, Y = C.apply(oe, X), Y;
555
- }
556
- function y(B) {
557
- return M = B, F = setTimeout(_, A), U ? j(B) : Y;
549
+ P = N(P) || 0, R(j) && (Y = !!j.leading, k = "maxWait" in j, H = k ? g(N(j.maxWait) || 0, P) : H, S = "trailing" in j ? !!j.trailing : S);
550
+ function F(W) {
551
+ var J = A, se = D;
552
+ return A = D = void 0, M = W, U = C.apply(se, J), U;
558
553
  }
559
- function $(B) {
560
- var X = B - b, oe = B - M, le = A - X;
561
- return I ? v(le, W - oe) : le;
554
+ function B(W) {
555
+ return M = W, $ = setTimeout(O, P), Y ? F(W) : U;
562
556
  }
563
- function H(B) {
564
- var X = B - b, oe = B - M;
565
- return b === void 0 || X >= A || X < 0 || I && oe >= W;
557
+ function b(W) {
558
+ var J = W - y, se = W - M, ge = P - J;
559
+ return k ? v(ge, H - se) : ge;
566
560
  }
567
- function _() {
568
- var B = h();
569
- if (H(B))
570
- return Q(B);
571
- F = setTimeout(_, $(B));
561
+ function L(W) {
562
+ var J = W - y, se = W - M;
563
+ return y === void 0 || J >= P || J < 0 || k && se >= H;
572
564
  }
573
- function Q(B) {
574
- return F = void 0, S && P ? j(B) : (P = L = void 0, Y);
565
+ function O() {
566
+ var W = h();
567
+ if (L(W))
568
+ return X(W);
569
+ $ = setTimeout(O, b(W));
575
570
  }
576
- function G() {
577
- F !== void 0 && clearTimeout(F), M = 0, P = b = L = F = void 0;
571
+ function X(W) {
572
+ return $ = void 0, S && A ? F(W) : (A = D = void 0, U);
578
573
  }
579
574
  function K() {
580
- return F === void 0 ? Y : Q(h());
581
- }
582
- function ne() {
583
- var B = h(), X = H(B);
584
- if (P = arguments, L = this, b = B, X) {
585
- if (F === void 0)
586
- return y(b);
587
- if (I)
588
- return F = setTimeout(_, A), j(b);
575
+ $ !== void 0 && clearTimeout($), M = 0, A = y = D = $ = void 0;
576
+ }
577
+ function Z() {
578
+ return $ === void 0 ? U : X(h());
579
+ }
580
+ function G() {
581
+ var W = h(), J = L(W);
582
+ if (A = arguments, D = this, y = W, J) {
583
+ if ($ === void 0)
584
+ return B(y);
585
+ if (k)
586
+ return $ = setTimeout(O, P), F(y);
589
587
  }
590
- return F === void 0 && (F = setTimeout(_, A)), Y;
588
+ return $ === void 0 && ($ = setTimeout(O, P)), U;
591
589
  }
592
- return ne.cancel = G, ne.flush = K, ne;
590
+ return G.cancel = K, G.flush = Z, G;
593
591
  }
594
- function T(C, A, N) {
595
- var P = !0, L = !0;
592
+ function T(C, P, j) {
593
+ var A = !0, D = !0;
596
594
  if (typeof C != "function")
597
595
  throw new TypeError(e);
598
- return R(N) && (P = "leading" in N ? !!N.leading : P, L = "trailing" in N ? !!N.trailing : L), E(C, A, {
599
- leading: P,
600
- maxWait: A,
601
- trailing: L
596
+ return R(j) && (A = "leading" in j ? !!j.leading : A, D = "trailing" in j ? !!j.trailing : D), E(C, P, {
597
+ leading: A,
598
+ maxWait: P,
599
+ trailing: D
602
600
  });
603
601
  }
604
602
  function R(C) {
605
- var A = typeof C;
606
- return !!C && (A == "object" || A == "function");
603
+ var P = typeof C;
604
+ return !!C && (P == "object" || P == "function");
607
605
  }
608
- function O(C) {
606
+ function _(C) {
609
607
  return !!C && typeof C == "object";
610
608
  }
611
- function D(C) {
612
- return typeof C == "symbol" || O(C) && a.call(C) == n;
609
+ function I(C) {
610
+ return typeof C == "symbol" || _(C) && a.call(C) == n;
613
611
  }
614
- function k(C) {
612
+ function N(C) {
615
613
  if (typeof C == "number")
616
614
  return C;
617
- if (D(C))
615
+ if (I(C))
618
616
  return t;
619
617
  if (R(C)) {
620
- var A = typeof C.valueOf == "function" ? C.valueOf() : C;
621
- C = R(A) ? A + "" : A;
618
+ var P = typeof C.valueOf == "function" ? C.valueOf() : C;
619
+ C = R(P) ? P + "" : P;
622
620
  }
623
621
  if (typeof C != "string")
624
622
  return C === 0 ? C : +C;
625
623
  C = C.replace(r, "");
626
- var N = i.test(C);
627
- return N || s.test(C) ? u(C.slice(2), N ? 2 : 8) : o.test(C) ? t : +C;
624
+ var j = i.test(C);
625
+ return j || s.test(C) ? u(C.slice(2), j ? 2 : 8) : o.test(C) ? t : +C;
628
626
  }
629
627
  return bn = T, bn;
630
628
  }
@@ -658,63 +656,63 @@ const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScr
658
656
  return;
659
657
  const u = r(s);
660
658
  let l = !1, c = 0, p = 0, f = 0, a = 0, g = 0;
661
- const v = async (P, L, W) => {
662
- o && !await o(s, W) || (l = !0, c = P, p = L, f = P, a = L, g = Date.now());
663
- }, h = async (P, L) => {
664
- if (l && (l = !1, P && i)) {
665
- const W = Date.now() - g, Y = f - c, F = a - p;
659
+ const v = async (A, D, H) => {
660
+ o && !await o(s, H) || (l = !0, c = A, p = D, f = A, a = D, g = Date.now());
661
+ }, h = async (A, D) => {
662
+ if (l && (l = !1, A && i)) {
663
+ const H = Date.now() - g, U = f - c, $ = a - p;
666
664
  await i({
667
- deltaX: Y,
668
- deltaY: F,
665
+ deltaX: U,
666
+ deltaY: $,
669
667
  get movingSpeedX() {
670
- return vr(Y, W);
668
+ return vr(U, H);
671
669
  },
672
670
  get movingSpeedY() {
673
- return vr(F, W);
671
+ return vr($, H);
674
672
  }
675
- }, s, L);
673
+ }, s, D);
676
674
  }
677
- }, E = async (P, L) => {
678
- await h(P, L), window.removeEventListener("mousemove", O), window.removeEventListener("mouseup", T), window.removeEventListener("touchmove", D), window.removeEventListener("touchend", k), window.removeEventListener("touchcancel", C);
679
- }, T = async (P) => {
680
- await E(!0, P);
681
- }, R = async (P, L, W) => {
675
+ }, E = async (A, D) => {
676
+ await h(A, D), window.removeEventListener("mousemove", _), window.removeEventListener("mouseup", T), window.removeEventListener("touchmove", I), window.removeEventListener("touchend", N), window.removeEventListener("touchcancel", C);
677
+ }, T = async (A) => {
678
+ await E(!0, A);
679
+ }, R = async (A, D, H) => {
682
680
  if (!l)
683
681
  return;
684
- const Y = {
685
- deltaX: P - f,
686
- deltaY: L - a,
687
- distanceX: P - c,
688
- distanceY: L - p,
689
- euclideanDistance: ds(c, p, P, L)
682
+ const U = {
683
+ deltaX: A - f,
684
+ deltaY: D - a,
685
+ distanceX: A - c,
686
+ distanceY: D - p,
687
+ euclideanDistance: ds(c, p, A, D)
690
688
  };
691
- if (!await u(Y)) {
692
- f = P, a = L, await E(!t, W);
689
+ if (!await u(U)) {
690
+ f = A, a = D, await E(!t, H);
693
691
  return;
694
692
  }
695
- f = P, a = L;
696
- }, O = async (P) => {
697
- await R(P.clientX, P.clientY, P);
698
- }, D = async (P) => {
699
- const L = P.touches[0];
700
- await R(L.clientX, L.clientY, P);
701
- }, k = async (P) => {
702
- await E(!0, P);
703
- }, C = async (P) => {
704
- await E(!0, P);
705
- }, A = async (P) => {
706
- P.stopPropagation();
707
- const L = P.touches[0];
708
- await v(L.clientX, L.clientY, P), window.addEventListener("touchmove", D, {
693
+ f = A, a = D;
694
+ }, _ = async (A) => {
695
+ await R(A.clientX, A.clientY, A);
696
+ }, I = async (A) => {
697
+ const D = A.touches[0];
698
+ await R(D.clientX, D.clientY, A);
699
+ }, N = async (A) => {
700
+ await E(!0, A);
701
+ }, C = async (A) => {
702
+ await E(!0, A);
703
+ }, P = async (A) => {
704
+ A.stopPropagation();
705
+ const D = A.touches[0];
706
+ await v(D.clientX, D.clientY, A), window.addEventListener("touchmove", I, {
709
707
  passive: !0
710
- }), window.addEventListener("touchend", k), window.addEventListener("touchcancel", C);
711
- }, N = async (P) => {
712
- P.stopPropagation(), await v(P.clientX, P.clientY, P), window.addEventListener("mousemove", O), window.addEventListener("mouseup", T);
708
+ }), window.addEventListener("touchend", N), window.addEventListener("touchcancel", C);
709
+ }, j = async (A) => {
710
+ A.stopPropagation(), await v(A.clientX, A.clientY, A), window.addEventListener("mousemove", _), window.addEventListener("mouseup", T);
713
711
  };
714
- return s.addEventListener("mousedown", N), s.addEventListener("touchstart", A, {
712
+ return s.addEventListener("mousedown", j), s.addEventListener("touchstart", P, {
715
713
  passive: !0
716
714
  }), () => {
717
- s.removeEventListener("mousedown", N), s.removeEventListener("touchstart", A);
715
+ s.removeEventListener("mousedown", j), s.removeEventListener("touchstart", P);
718
716
  };
719
717
  }, [n, o, r, i]);
720
718
  }, Au = (e, t, { enabled: n = !0, preventDefault: r = !0 } = {}) => {
@@ -794,10 +792,10 @@ function je(e) {
794
792
  function Yn(e) {
795
793
  return en() ? e instanceof Node || e instanceof Re(e).Node : !1;
796
794
  }
797
- function se(e) {
795
+ function ie(e) {
798
796
  return en() ? e instanceof Element || e instanceof Re(e).Element : !1;
799
797
  }
800
- function fe(e) {
798
+ function le(e) {
801
799
  return en() ? e instanceof HTMLElement || e instanceof Re(e).HTMLElement : !1;
802
800
  }
803
801
  function Bt(e) {
@@ -829,12 +827,12 @@ function tn(e) {
829
827
  }
830
828
  const Bs = ["transform", "translate", "scale", "rotate", "perspective"], Ws = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vs = ["paint", "layout", "strict", "content"];
831
829
  function zn(e) {
832
- const t = nn(), n = se(e) ? _e(e) : e;
830
+ const t = nn(), n = ie(e) ? _e(e) : e;
833
831
  return Bs.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Ws.some((r) => (n.willChange || "").includes(r)) || Vs.some((r) => (n.contain || "").includes(r));
834
832
  }
835
833
  function Us(e) {
836
834
  let t = We(e);
837
- for (; fe(t) && !He(t); ) {
835
+ for (; le(t) && !He(t); ) {
838
836
  if (zn(t))
839
837
  return t;
840
838
  if (tn(t))
@@ -854,7 +852,7 @@ function _e(e) {
854
852
  return Re(e).getComputedStyle(e);
855
853
  }
856
854
  function rn(e) {
857
- return se(e) ? {
855
+ return ie(e) ? {
858
856
  scrollLeft: e.scrollLeft,
859
857
  scrollTop: e.scrollTop
860
858
  } : {
@@ -876,7 +874,7 @@ function We(e) {
876
874
  }
877
875
  function ho(e) {
878
876
  const t = We(e);
879
- return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : fe(t) && Tt(t) ? t : ho(t);
877
+ return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && Tt(t) ? t : ho(t);
880
878
  }
881
879
  function ze(e, t, n) {
882
880
  var r;
@@ -1258,7 +1256,7 @@ function be(e) {
1258
1256
  return e?.ownerDocument || document;
1259
1257
  }
1260
1258
  function Xn(e) {
1261
- return fe(e) && e.matches(bc);
1259
+ return le(e) && e.matches(bc);
1262
1260
  }
1263
1261
  function Ar(e) {
1264
1262
  return e ? e.getAttribute("role") === "combobox" && Xn(e) : !1;
@@ -1307,13 +1305,13 @@ function lt(e, t) {
1307
1305
  return t || n.push("", void 0), n.includes(e);
1308
1306
  }
1309
1307
  var Sc = typeof document < "u", Oc = function() {
1310
- }, ge = Sc ? Hn : Oc;
1308
+ }, de = Sc ? Hn : Oc;
1311
1309
  const _c = {
1312
1310
  ...x
1313
1311
  };
1314
1312
  function Me(e) {
1315
1313
  const t = x.useRef(e);
1316
- return ge(() => {
1314
+ return de(() => {
1317
1315
  t.current = e;
1318
1316
  }), t;
1319
1317
  }
@@ -1508,7 +1506,7 @@ function Lc() {
1508
1506
  return s.H.useFormState(l, c, p);
1509
1507
  }, ve.useFormStatus = function() {
1510
1508
  return s.H.useHostTransitionStatus();
1511
- }, ve.version = "19.1.1", ve;
1509
+ }, ve.version = "19.2.0", ve;
1512
1510
  }
1513
1511
  var ye = {};
1514
1512
  /**
@@ -1730,7 +1728,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1730
1728
  return s().useFormState(f, a, g);
1731
1729
  }, ye.useFormStatus = function() {
1732
1730
  return s().useHostTransitionStatus();
1733
- }, ye.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1731
+ }, ye.version = "19.2.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1734
1732
  })()), ye;
1735
1733
  }
1736
1734
  var Ir;
@@ -1820,9 +1818,9 @@ const Ic = async (e, t, n) => {
1820
1818
  fn: T
1821
1819
  } = u[h], {
1822
1820
  x: R,
1823
- y: O,
1824
- data: D,
1825
- reset: k
1821
+ y: _,
1822
+ data: I,
1823
+ reset: N
1826
1824
  } = await T({
1827
1825
  x: p,
1828
1826
  y: f,
@@ -1837,17 +1835,17 @@ const Ic = async (e, t, n) => {
1837
1835
  floating: t
1838
1836
  }
1839
1837
  });
1840
- p = R ?? p, f = O ?? f, g = {
1838
+ p = R ?? p, f = _ ?? f, g = {
1841
1839
  ...g,
1842
1840
  [E]: {
1843
1841
  ...g[E],
1844
- ...D
1842
+ ...I
1845
1843
  }
1846
- }, k && v <= 50 && (v++, typeof k == "object" && (k.placement && (a = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
1844
+ }, N && v <= 50 && (v++, typeof N == "object" && (N.placement && (a = N.placement), N.rects && (c = N.rects === !0 ? await s.getElementRects({
1847
1845
  reference: e,
1848
1846
  floating: t,
1849
1847
  strategy: o
1850
- }) : k.rects), {
1848
+ }) : N.rects), {
1851
1849
  x: p,
1852
1850
  y: f
1853
1851
  } = kr(c, a, l)), h = -1);
@@ -1886,23 +1884,23 @@ async function sn(e, t) {
1886
1884
  y: o,
1887
1885
  width: s.floating.width,
1888
1886
  height: s.floating.height
1889
- } : s.reference, O = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u.floating)), D = await (i.isElement == null ? void 0 : i.isElement(O)) ? await (i.getScale == null ? void 0 : i.getScale(O)) || {
1887
+ } : s.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u.floating)), I = await (i.isElement == null ? void 0 : i.isElement(_)) ? await (i.getScale == null ? void 0 : i.getScale(_)) || {
1890
1888
  x: 1,
1891
1889
  y: 1
1892
1890
  } : {
1893
1891
  x: 1,
1894
1892
  y: 1
1895
- }, k = Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1893
+ }, N = Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1896
1894
  elements: u,
1897
1895
  rect: R,
1898
- offsetParent: O,
1896
+ offsetParent: _,
1899
1897
  strategy: l
1900
1898
  }) : R);
1901
1899
  return {
1902
- top: (T.top - k.top + v.top) / D.y,
1903
- bottom: (k.bottom - T.bottom + v.bottom) / D.y,
1904
- left: (T.left - k.left + v.left) / D.x,
1905
- right: (k.right - T.right + v.right) / D.x
1900
+ top: (T.top - N.top + v.top) / I.y,
1901
+ bottom: (N.bottom - T.bottom + v.bottom) / I.y,
1902
+ left: (T.left - N.left + v.left) / I.x,
1903
+ right: (N.right - T.right + v.right) / I.x
1906
1904
  };
1907
1905
  }
1908
1906
  const kc = (e) => ({
@@ -1926,20 +1924,20 @@ const kc = (e) => ({
1926
1924
  const f = bo(p), a = {
1927
1925
  x: n,
1928
1926
  y: r
1929
- }, g = qn(o), v = Gn(g), h = await s.getDimensions(c), E = g === "y", T = E ? "top" : "left", R = E ? "bottom" : "right", O = E ? "clientHeight" : "clientWidth", D = i.reference[v] + i.reference[g] - a[g] - i.floating[v], k = a[g] - i.reference[g], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1930
- let A = C ? C[O] : 0;
1931
- (!A || !await (s.isElement == null ? void 0 : s.isElement(C))) && (A = u.floating[O] || i.floating[v]);
1932
- const N = D / 2 - k / 2, P = A / 2 - h[v] / 2 - 1, L = Ge(f[T], P), W = Ge(f[R], P), Y = L, F = A - h[v] - W, b = A / 2 - h[v] / 2 + N, M = Mn(Y, b, F), U = !l.arrow && De(o) != null && b !== M && i.reference[v] / 2 - (b < Y ? L : W) - h[v] / 2 < 0, I = U ? b < Y ? b - Y : b - F : 0;
1927
+ }, g = qn(o), v = Gn(g), h = await s.getDimensions(c), E = g === "y", T = E ? "top" : "left", R = E ? "bottom" : "right", _ = E ? "clientHeight" : "clientWidth", I = i.reference[v] + i.reference[g] - a[g] - i.floating[v], N = a[g] - i.reference[g], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1928
+ let P = C ? C[_] : 0;
1929
+ (!P || !await (s.isElement == null ? void 0 : s.isElement(C))) && (P = u.floating[_] || i.floating[v]);
1930
+ const j = I / 2 - N / 2, A = P / 2 - h[v] / 2 - 1, D = Ge(f[T], A), H = Ge(f[R], A), U = D, $ = P - h[v] - H, y = P / 2 - h[v] / 2 + j, M = Mn(U, y, $), Y = !l.arrow && De(o) != null && y !== M && i.reference[v] / 2 - (y < U ? D : H) - h[v] / 2 < 0, k = Y ? y < U ? y - U : y - $ : 0;
1933
1931
  return {
1934
- [g]: a[g] + I,
1932
+ [g]: a[g] + k,
1935
1933
  data: {
1936
1934
  [g]: M,
1937
- centerOffset: b - M - I,
1938
- ...U && {
1939
- alignmentOffset: I
1935
+ centerOffset: y - M - k,
1936
+ ...Y && {
1937
+ alignmentOffset: k
1940
1938
  }
1941
1939
  },
1942
- reset: U
1940
+ reset: Y
1943
1941
  };
1944
1942
  }
1945
1943
  });
@@ -1967,49 +1965,49 @@ const jc = function(e) {
1967
1965
  } = tt(e, t), h = f !== void 0 || a === Tr ? Nc(f || null, g, a) : a, E = await sn(t, v), T = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, R = h[T];
1968
1966
  if (R == null)
1969
1967
  return {};
1970
- const O = yo(R, i, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
1968
+ const _ = yo(R, i, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
1971
1969
  if (u !== R)
1972
1970
  return {
1973
1971
  reset: {
1974
1972
  placement: h[0]
1975
1973
  }
1976
1974
  };
1977
- const D = [E[Ne(R)], E[O[0]], E[O[1]]], k = [...((r = s.autoPlacement) == null ? void 0 : r.overflows) || [], {
1975
+ const I = [E[Ne(R)], E[_[0]], E[_[1]]], N = [...((r = s.autoPlacement) == null ? void 0 : r.overflows) || [], {
1978
1976
  placement: R,
1979
- overflows: D
1977
+ overflows: I
1980
1978
  }], C = h[T + 1];
1981
1979
  if (C)
1982
1980
  return {
1983
1981
  data: {
1984
1982
  index: T + 1,
1985
- overflows: k
1983
+ overflows: N
1986
1984
  },
1987
1985
  reset: {
1988
1986
  placement: C
1989
1987
  }
1990
1988
  };
1991
- const A = k.map((L) => {
1992
- const W = De(L.placement);
1993
- return [L.placement, W && p ? (
1989
+ const P = N.map((D) => {
1990
+ const H = De(D.placement);
1991
+ return [D.placement, H && p ? (
1994
1992
  // Check along the mainAxis and main crossAxis side.
1995
- L.overflows.slice(0, 2).reduce((Y, F) => Y + F, 0)
1993
+ D.overflows.slice(0, 2).reduce((U, $) => U + $, 0)
1996
1994
  ) : (
1997
1995
  // Check only the mainAxis.
1998
- L.overflows[0]
1999
- ), L.overflows];
2000
- }).sort((L, W) => L[1] - W[1]), P = ((o = A.filter((L) => L[2].slice(
1996
+ D.overflows[0]
1997
+ ), D.overflows];
1998
+ }).sort((D, H) => D[1] - H[1]), A = ((o = P.filter((D) => D[2].slice(
2001
1999
  0,
2002
2000
  // Aligned placements should not check their opposite crossAxis
2003
2001
  // side.
2004
- De(L[0]) ? 2 : 3
2005
- ).every((W) => W <= 0))[0]) == null ? void 0 : o[0]) || A[0][0];
2006
- return P !== u ? {
2002
+ De(D[0]) ? 2 : 3
2003
+ ).every((H) => H <= 0))[0]) == null ? void 0 : o[0]) || P[0][0];
2004
+ return A !== u ? {
2007
2005
  data: {
2008
2006
  index: T + 1,
2009
- overflows: k
2007
+ overflows: N
2010
2008
  },
2011
2009
  reset: {
2012
- placement: P
2010
+ placement: A
2013
2011
  }
2014
2012
  } : {};
2015
2013
  }
@@ -2038,57 +2036,57 @@ const jc = function(e) {
2038
2036
  } = tt(e, t);
2039
2037
  if ((n = i.arrow) != null && n.alignmentOffset)
2040
2038
  return {};
2041
- const T = Ne(o), R = $e(u), O = Ne(u) === u, D = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), k = a || (O || !h ? [Ut(u)] : Ks(u)), C = v !== "none";
2042
- !a && C && k.push(...ec(u, h, v, D));
2043
- const A = [u, ...k], N = await sn(t, E), P = [];
2044
- let L = ((r = i.flip) == null ? void 0 : r.overflows) || [];
2045
- if (p && P.push(N[T]), f) {
2046
- const b = yo(o, s, D);
2047
- P.push(N[b[0]], N[b[1]]);
2039
+ const T = Ne(o), R = $e(u), _ = Ne(u) === u, I = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), N = a || (_ || !h ? [Ut(u)] : Ks(u)), C = v !== "none";
2040
+ !a && C && N.push(...ec(u, h, v, I));
2041
+ const P = [u, ...N], j = await sn(t, E), A = [];
2042
+ let D = ((r = i.flip) == null ? void 0 : r.overflows) || [];
2043
+ if (p && A.push(j[T]), f) {
2044
+ const y = yo(o, s, I);
2045
+ A.push(j[y[0]], j[y[1]]);
2048
2046
  }
2049
- if (L = [...L, {
2047
+ if (D = [...D, {
2050
2048
  placement: o,
2051
- overflows: P
2052
- }], !P.every((b) => b <= 0)) {
2053
- var W, Y;
2054
- const b = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, M = A[b];
2049
+ overflows: A
2050
+ }], !A.every((y) => y <= 0)) {
2051
+ var H, U;
2052
+ const y = (((H = i.flip) == null ? void 0 : H.index) || 0) + 1, M = P[y];
2055
2053
  if (M && (!(f === "alignment" ? R !== $e(M) : !1) || // We leave the current main axis only if every placement on that axis
2056
2054
  // overflows the main axis.
2057
- L.every((S) => $e(S.placement) === R ? S.overflows[0] > 0 : !0)))
2055
+ D.every((S) => $e(S.placement) === R ? S.overflows[0] > 0 : !0)))
2058
2056
  return {
2059
2057
  data: {
2060
- index: b,
2061
- overflows: L
2058
+ index: y,
2059
+ overflows: D
2062
2060
  },
2063
2061
  reset: {
2064
2062
  placement: M
2065
2063
  }
2066
2064
  };
2067
- let U = (Y = L.filter((I) => I.overflows[0] <= 0).sort((I, S) => I.overflows[1] - S.overflows[1])[0]) == null ? void 0 : Y.placement;
2068
- if (!U)
2065
+ let Y = (U = D.filter((k) => k.overflows[0] <= 0).sort((k, S) => k.overflows[1] - S.overflows[1])[0]) == null ? void 0 : U.placement;
2066
+ if (!Y)
2069
2067
  switch (g) {
2070
2068
  case "bestFit": {
2071
- var F;
2072
- const I = (F = L.filter((S) => {
2069
+ var $;
2070
+ const k = ($ = D.filter((S) => {
2073
2071
  if (C) {
2074
- const j = $e(S.placement);
2075
- return j === R || // Create a bias to the `y` side axis due to horizontal
2072
+ const F = $e(S.placement);
2073
+ return F === R || // Create a bias to the `y` side axis due to horizontal
2076
2074
  // reading directions favoring greater width.
2077
- j === "y";
2075
+ F === "y";
2078
2076
  }
2079
2077
  return !0;
2080
- }).map((S) => [S.placement, S.overflows.filter((j) => j > 0).reduce((j, y) => j + y, 0)]).sort((S, j) => S[1] - j[1])[0]) == null ? void 0 : F[0];
2081
- I && (U = I);
2078
+ }).map((S) => [S.placement, S.overflows.filter((F) => F > 0).reduce((F, B) => F + B, 0)]).sort((S, F) => S[1] - F[1])[0]) == null ? void 0 : $[0];
2079
+ k && (Y = k);
2082
2080
  break;
2083
2081
  }
2084
2082
  case "initialPlacement":
2085
- U = u;
2083
+ Y = u;
2086
2084
  break;
2087
2085
  }
2088
- if (o !== U)
2086
+ if (o !== Y)
2089
2087
  return {
2090
2088
  reset: {
2091
- placement: U
2089
+ placement: Y
2092
2090
  }
2093
2091
  };
2094
2092
  }
@@ -2176,12 +2174,12 @@ const Bc = function(e) {
2176
2174
  }, p = await sn(t, l), f = $e(Ne(o)), a = vo(f);
2177
2175
  let g = c[a], v = c[f];
2178
2176
  if (i) {
2179
- const E = a === "y" ? "top" : "left", T = a === "y" ? "bottom" : "right", R = g + p[E], O = g - p[T];
2180
- g = Mn(R, g, O);
2177
+ const E = a === "y" ? "top" : "left", T = a === "y" ? "bottom" : "right", R = g + p[E], _ = g - p[T];
2178
+ g = Mn(R, g, _);
2181
2179
  }
2182
2180
  if (s) {
2183
- const E = f === "y" ? "top" : "left", T = f === "y" ? "bottom" : "right", R = v + p[E], O = v - p[T];
2184
- v = Mn(R, v, O);
2181
+ const E = f === "y" ? "top" : "left", T = f === "y" ? "bottom" : "right", R = v + p[E], _ = v - p[T];
2182
+ v = Mn(R, v, _);
2185
2183
  }
2186
2184
  const h = u.fn({
2187
2185
  ...t,
@@ -2222,19 +2220,19 @@ const Bc = function(e) {
2222
2220
  } = i.floating;
2223
2221
  let E, T;
2224
2222
  f === "top" || f === "bottom" ? (E = f, T = a === (await (s.isRTL == null ? void 0 : s.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (T = f, E = a === "end" ? "top" : "bottom");
2225
- const R = h - p.top - p.bottom, O = v - p.left - p.right, D = Ge(h - p[E], R), k = Ge(v - p[T], O), C = !t.middlewareData.shift;
2226
- let A = D, N = k;
2227
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = O), (r = t.middlewareData.shift) != null && r.enabled.y && (A = R), C && !a) {
2228
- const L = Oe(p.left, 0), W = Oe(p.right, 0), Y = Oe(p.top, 0), F = Oe(p.bottom, 0);
2229
- g ? N = v - 2 * (L !== 0 || W !== 0 ? L + W : Oe(p.left, p.right)) : A = h - 2 * (Y !== 0 || F !== 0 ? Y + F : Oe(p.top, p.bottom));
2223
+ const R = h - p.top - p.bottom, _ = v - p.left - p.right, I = Ge(h - p[E], R), N = Ge(v - p[T], _), C = !t.middlewareData.shift;
2224
+ let P = I, j = N;
2225
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = _), (r = t.middlewareData.shift) != null && r.enabled.y && (P = R), C && !a) {
2226
+ const D = Oe(p.left, 0), H = Oe(p.right, 0), U = Oe(p.top, 0), $ = Oe(p.bottom, 0);
2227
+ g ? j = v - 2 * (D !== 0 || H !== 0 ? D + H : Oe(p.left, p.right)) : P = h - 2 * (U !== 0 || $ !== 0 ? U + $ : Oe(p.top, p.bottom));
2230
2228
  }
2231
2229
  await l({
2232
2230
  ...t,
2233
- availableWidth: N,
2234
- availableHeight: A
2231
+ availableWidth: j,
2232
+ availableHeight: P
2235
2233
  });
2236
- const P = await s.getDimensions(u.floating);
2237
- return v !== P.width || h !== P.height ? {
2234
+ const A = await s.getDimensions(u.floating);
2235
+ return v !== A.width || h !== A.height ? {
2238
2236
  reset: {
2239
2237
  rects: !0
2240
2238
  }
@@ -2245,7 +2243,7 @@ const Bc = function(e) {
2245
2243
  function Io(e) {
2246
2244
  const t = _e(e);
2247
2245
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2248
- const o = fe(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, u = Wt(n) !== i || Wt(r) !== s;
2246
+ const o = le(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, u = Wt(n) !== i || Wt(r) !== s;
2249
2247
  return u && (n = i, r = s), {
2250
2248
  width: n,
2251
2249
  height: r,
@@ -2253,11 +2251,11 @@ function Io(e) {
2253
2251
  };
2254
2252
  }
2255
2253
  function Jn(e) {
2256
- return se(e) ? e : e.contextElement;
2254
+ return ie(e) ? e : e.contextElement;
2257
2255
  }
2258
2256
  function ct(e) {
2259
2257
  const t = Jn(e);
2260
- if (!fe(t))
2258
+ if (!le(t))
2261
2259
  return ke(1);
2262
2260
  const n = t.getBoundingClientRect(), {
2263
2261
  width: r,
@@ -2285,15 +2283,15 @@ function Qe(e, t, n, r) {
2285
2283
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2286
2284
  const o = e.getBoundingClientRect(), i = Jn(e);
2287
2285
  let s = ke(1);
2288
- t && (r ? se(r) && (s = ct(r)) : s = ct(e));
2286
+ t && (r ? ie(r) && (s = ct(r)) : s = ct(e));
2289
2287
  const u = Yc(i, n, r) ? ko(i) : ke(0);
2290
2288
  let l = (o.left + u.x) / s.x, c = (o.top + u.y) / s.y, p = o.width / s.x, f = o.height / s.y;
2291
2289
  if (i) {
2292
- const a = Re(i), g = r && se(r) ? Re(r) : r;
2290
+ const a = Re(i), g = r && ie(r) ? Re(r) : r;
2293
2291
  let v = a, h = Ln(v);
2294
2292
  for (; h && r && g !== v; ) {
2295
- const E = ct(h), T = h.getBoundingClientRect(), R = _e(h), O = T.left + (h.clientLeft + parseFloat(R.paddingLeft)) * E.x, D = T.top + (h.clientTop + parseFloat(R.paddingTop)) * E.y;
2296
- l *= E.x, c *= E.y, p *= E.x, f *= E.y, l += O, c += D, v = Re(h), h = Ln(v);
2293
+ const E = ct(h), T = h.getBoundingClientRect(), R = _e(h), _ = T.left + (h.clientLeft + parseFloat(R.paddingLeft)) * E.x, I = T.top + (h.clientTop + parseFloat(R.paddingTop)) * E.y;
2294
+ l *= E.x, c *= E.y, p *= E.x, f *= E.y, l += _, c += I, v = Re(h), h = Ln(v);
2297
2295
  }
2298
2296
  }
2299
2297
  return Yt({
@@ -2328,8 +2326,8 @@ function zc(e) {
2328
2326
  scrollLeft: 0,
2329
2327
  scrollTop: 0
2330
2328
  }, c = ke(1);
2331
- const p = ke(0), f = fe(r);
2332
- if ((f || !f && !i) && ((Xe(r) !== "body" || Tt(s)) && (l = rn(r)), fe(r))) {
2329
+ const p = ke(0), f = le(r);
2330
+ if ((f || !f && !i) && ((Xe(r) !== "body" || Tt(s)) && (l = rn(r)), le(r))) {
2333
2331
  const g = Qe(r);
2334
2332
  c = ct(r), p.x = g.x + r.clientLeft, p.y = g.y + r.clientTop;
2335
2333
  }
@@ -2378,7 +2376,7 @@ function Xc(e, t) {
2378
2376
  }
2379
2377
  const Kc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2380
2378
  function Jc(e, t) {
2381
- const n = Qe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = fe(e) ? ct(e) : ke(1), s = e.clientWidth * i.x, u = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
2379
+ const n = Qe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = le(e) ? ct(e) : ke(1), s = e.clientWidth * i.x, u = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
2382
2380
  return {
2383
2381
  width: s,
2384
2382
  height: u,
@@ -2392,7 +2390,7 @@ function jr(e, t, n) {
2392
2390
  r = Xc(e, n);
2393
2391
  else if (t === "document")
2394
2392
  r = qc(je(e));
2395
- else if (se(t))
2393
+ else if (ie(t))
2396
2394
  r = Jc(t, n);
2397
2395
  else {
2398
2396
  const o = ko(e);
@@ -2407,16 +2405,16 @@ function jr(e, t, n) {
2407
2405
  }
2408
2406
  function jo(e, t) {
2409
2407
  const n = We(e);
2410
- return n === t || !se(n) || He(n) ? !1 : _e(n).position === "fixed" || jo(n, t);
2408
+ return n === t || !ie(n) || He(n) ? !1 : _e(n).position === "fixed" || jo(n, t);
2411
2409
  }
2412
2410
  function Zc(e, t) {
2413
2411
  const n = t.get(e);
2414
2412
  if (n)
2415
2413
  return n;
2416
- let r = ze(e, [], !1).filter((u) => se(u) && Xe(u) !== "body"), o = null;
2414
+ let r = ze(e, [], !1).filter((u) => ie(u) && Xe(u) !== "body"), o = null;
2417
2415
  const i = _e(e).position === "fixed";
2418
2416
  let s = i ? We(e) : e;
2419
- for (; se(s) && !He(s); ) {
2417
+ for (; ie(s) && !He(s); ) {
2420
2418
  const u = _e(s), l = zn(s);
2421
2419
  !l && u.position === "fixed" && (o = null), (i ? !l && !o : !l && u.position === "static" && !!o && Kc.has(o.position) || Tt(s) && !l && jo(e, s)) ? r = r.filter((p) => p !== s) : o = u, s = We(s);
2422
2420
  }
@@ -2451,7 +2449,7 @@ function ea(e) {
2451
2449
  };
2452
2450
  }
2453
2451
  function ta(e, t, n) {
2454
- const r = fe(t), o = je(t), i = n === "fixed", s = Qe(e, !0, i, t);
2452
+ const r = le(t), o = je(t), i = n === "fixed", s = Qe(e, !0, i, t);
2455
2453
  let u = {
2456
2454
  scrollLeft: 0,
2457
2455
  scrollTop: 0
@@ -2478,7 +2476,7 @@ function Rn(e) {
2478
2476
  return _e(e).position === "static";
2479
2477
  }
2480
2478
  function Fr(e, t) {
2481
- if (!fe(e) || _e(e).position === "fixed")
2479
+ if (!le(e) || _e(e).position === "fixed")
2482
2480
  return null;
2483
2481
  if (t)
2484
2482
  return t(e);
@@ -2489,10 +2487,10 @@ function Fo(e, t) {
2489
2487
  const n = Re(e);
2490
2488
  if (tn(e))
2491
2489
  return n;
2492
- if (!fe(e)) {
2490
+ if (!le(e)) {
2493
2491
  let o = We(e);
2494
2492
  for (; o && !He(o); ) {
2495
- if (se(o) && !Rn(o))
2493
+ if (ie(o) && !Rn(o))
2496
2494
  return o;
2497
2495
  o = We(o);
2498
2496
  }
@@ -2527,7 +2525,7 @@ const oa = {
2527
2525
  getClientRects: Gc,
2528
2526
  getDimensions: ea,
2529
2527
  getScale: ct,
2530
- isElement: se,
2528
+ isElement: ie,
2531
2529
  isRTL: ra
2532
2530
  };
2533
2531
  function $o(e, t) {
@@ -2550,30 +2548,30 @@ function ia(e, t) {
2550
2548
  } = c;
2551
2549
  if (u || t(), !a || !g)
2552
2550
  return;
2553
- const v = kt(f), h = kt(o.clientWidth - (p + a)), E = kt(o.clientHeight - (f + g)), T = kt(p), O = {
2551
+ const v = kt(f), h = kt(o.clientWidth - (p + a)), E = kt(o.clientHeight - (f + g)), T = kt(p), _ = {
2554
2552
  rootMargin: -v + "px " + -h + "px " + -E + "px " + -T + "px",
2555
2553
  threshold: Oe(0, Ge(1, l)) || 1
2556
2554
  };
2557
- let D = !0;
2558
- function k(C) {
2559
- const A = C[0].intersectionRatio;
2560
- if (A !== l) {
2561
- if (!D)
2555
+ let I = !0;
2556
+ function N(C) {
2557
+ const P = C[0].intersectionRatio;
2558
+ if (P !== l) {
2559
+ if (!I)
2562
2560
  return s();
2563
- A ? s(!1, A) : r = setTimeout(() => {
2561
+ P ? s(!1, P) : r = setTimeout(() => {
2564
2562
  s(!1, 1e-7);
2565
2563
  }, 1e3);
2566
2564
  }
2567
- A === 1 && !$o(c, e.getBoundingClientRect()) && s(), D = !1;
2565
+ P === 1 && !$o(c, e.getBoundingClientRect()) && s(), I = !1;
2568
2566
  }
2569
2567
  try {
2570
- n = new IntersectionObserver(k, {
2571
- ...O,
2568
+ n = new IntersectionObserver(N, {
2569
+ ..._,
2572
2570
  // Handle <iframe>s
2573
2571
  root: o.ownerDocument
2574
2572
  });
2575
2573
  } catch {
2576
- n = new IntersectionObserver(k, O);
2574
+ n = new IntersectionObserver(N, _);
2577
2575
  }
2578
2576
  n.observe(e);
2579
2577
  }
@@ -2598,8 +2596,8 @@ function sa(e, t, n, r) {
2598
2596
  s && (g = new ResizeObserver((T) => {
2599
2597
  let [R] = T;
2600
2598
  R && R.target === c && g && (g.unobserve(t), cancelAnimationFrame(a), a = requestAnimationFrame(() => {
2601
- var O;
2602
- (O = g) == null || O.observe(t);
2599
+ var _;
2600
+ (_ = g) == null || _.observe(t);
2603
2601
  })), n();
2604
2602
  }), c && !l && g.observe(c), g.observe(t));
2605
2603
  let v, h = l ? Qe(e) : null;
@@ -2698,82 +2696,82 @@ function ma(e) {
2698
2696
  Xt(a, r) || g(r);
2699
2697
  const [v, h] = x.useState(null), [E, T] = x.useState(null), R = x.useCallback((S) => {
2700
2698
  S !== C.current && (C.current = S, h(S));
2701
- }, []), O = x.useCallback((S) => {
2702
- S !== A.current && (A.current = S, T(S));
2703
- }, []), D = i || v, k = s || E, C = x.useRef(null), A = x.useRef(null), N = x.useRef(p), P = l != null, L = En(l), W = En(o), Y = En(c), F = x.useCallback(() => {
2704
- if (!C.current || !A.current)
2699
+ }, []), _ = x.useCallback((S) => {
2700
+ S !== P.current && (P.current = S, T(S));
2701
+ }, []), I = i || v, N = s || E, C = x.useRef(null), P = x.useRef(null), j = x.useRef(p), A = l != null, D = En(l), H = En(o), U = En(c), $ = x.useCallback(() => {
2702
+ if (!C.current || !P.current)
2705
2703
  return;
2706
2704
  const S = {
2707
2705
  placement: t,
2708
2706
  strategy: n,
2709
2707
  middleware: a
2710
2708
  };
2711
- W.current && (S.platform = W.current), da(C.current, A.current, S).then((j) => {
2712
- const y = {
2713
- ...j,
2709
+ H.current && (S.platform = H.current), da(C.current, P.current, S).then((F) => {
2710
+ const B = {
2711
+ ...F,
2714
2712
  // The floating element's position may be recomputed while it's closed
2715
2713
  // but still mounted (such as when transitioning out). To ensure
2716
2714
  // `isPositioned` will be `false` initially on the next open, avoid
2717
2715
  // setting it to `true` when `open === false` (must be specified).
2718
- isPositioned: Y.current !== !1
2716
+ isPositioned: U.current !== !1
2719
2717
  };
2720
- b.current && !Xt(N.current, y) && (N.current = y, Kn.flushSync(() => {
2721
- f(y);
2718
+ y.current && !Xt(j.current, B) && (j.current = B, Kn.flushSync(() => {
2719
+ f(B);
2722
2720
  }));
2723
2721
  });
2724
- }, [a, t, n, W, Y]);
2722
+ }, [a, t, n, H, U]);
2725
2723
  $t(() => {
2726
- c === !1 && N.current.isPositioned && (N.current.isPositioned = !1, f((S) => ({
2724
+ c === !1 && j.current.isPositioned && (j.current.isPositioned = !1, f((S) => ({
2727
2725
  ...S,
2728
2726
  isPositioned: !1
2729
2727
  })));
2730
2728
  }, [c]);
2731
- const b = x.useRef(!1);
2732
- $t(() => (b.current = !0, () => {
2733
- b.current = !1;
2729
+ const y = x.useRef(!1);
2730
+ $t(() => (y.current = !0, () => {
2731
+ y.current = !1;
2734
2732
  }), []), $t(() => {
2735
- if (D && (C.current = D), k && (A.current = k), D && k) {
2736
- if (L.current)
2737
- return L.current(D, k, F);
2738
- F();
2733
+ if (I && (C.current = I), N && (P.current = N), I && N) {
2734
+ if (D.current)
2735
+ return D.current(I, N, $);
2736
+ $();
2739
2737
  }
2740
- }, [D, k, F, L, P]);
2738
+ }, [I, N, $, D, A]);
2741
2739
  const M = x.useMemo(() => ({
2742
2740
  reference: C,
2743
- floating: A,
2741
+ floating: P,
2744
2742
  setReference: R,
2745
- setFloating: O
2746
- }), [R, O]), U = x.useMemo(() => ({
2747
- reference: D,
2748
- floating: k
2749
- }), [D, k]), I = x.useMemo(() => {
2743
+ setFloating: _
2744
+ }), [R, _]), Y = x.useMemo(() => ({
2745
+ reference: I,
2746
+ floating: N
2747
+ }), [I, N]), k = x.useMemo(() => {
2750
2748
  const S = {
2751
2749
  position: n,
2752
2750
  left: 0,
2753
2751
  top: 0
2754
2752
  };
2755
- if (!U.floating)
2753
+ if (!Y.floating)
2756
2754
  return S;
2757
- const j = Hr(U.floating, p.x), y = Hr(U.floating, p.y);
2755
+ const F = Hr(Y.floating, p.x), B = Hr(Y.floating, p.y);
2758
2756
  return u ? {
2759
2757
  ...S,
2760
- transform: "translate(" + j + "px, " + y + "px)",
2761
- ...Ho(U.floating) >= 1.5 && {
2758
+ transform: "translate(" + F + "px, " + B + "px)",
2759
+ ...Ho(Y.floating) >= 1.5 && {
2762
2760
  willChange: "transform"
2763
2761
  }
2764
2762
  } : {
2765
2763
  position: n,
2766
- left: j,
2767
- top: y
2764
+ left: F,
2765
+ top: B
2768
2766
  };
2769
- }, [n, u, U.floating, p.x, p.y]);
2767
+ }, [n, u, Y.floating, p.x, p.y]);
2770
2768
  return x.useMemo(() => ({
2771
2769
  ...p,
2772
- update: F,
2770
+ update: $,
2773
2771
  refs: M,
2774
- elements: U,
2775
- floatingStyles: I
2776
- }), [p, F, M, U, I]);
2772
+ elements: Y,
2773
+ floatingStyles: k
2774
+ }), [p, $, M, Y, k]);
2777
2775
  }
2778
2776
  const ha = (e) => {
2779
2777
  function t(n) {
@@ -2825,7 +2823,7 @@ const Ur = () => (
2825
2823
  );
2826
2824
  function Oa() {
2827
2825
  const [e, t] = x.useState(() => Vr ? Ur() : void 0);
2828
- return ge(() => {
2826
+ return de(() => {
2829
2827
  e == null && t(Ur());
2830
2828
  }, []), x.useEffect(() => {
2831
2829
  Vr = !0;
@@ -2878,55 +2876,55 @@ const Pa = /* @__PURE__ */ x.forwardRef(function(t, n) {
2878
2876
  ...E
2879
2877
  } = t;
2880
2878
  process.env.NODE_ENV !== "production" && (n || Ca("The `ref` prop is required for `FloatingArrow`."));
2881
- const T = Ot(), [R, O] = x.useState(!1);
2882
- if (ge(() => {
2879
+ const T = Ot(), [R, _] = x.useState(!1);
2880
+ if (de(() => {
2883
2881
  if (!o) return;
2884
- _e(o).direction === "rtl" && O(!0);
2882
+ _e(o).direction === "rtl" && _(!0);
2885
2883
  }, [o]), !o)
2886
2884
  return null;
2887
- const [D, k] = r.split("-"), C = D === "top" || D === "bottom";
2888
- let A = f;
2889
- (C && s != null && s.x || !C && s != null && s.y) && (A = null);
2890
- const N = p * 2, P = N / 2, L = u / 2 * (c / -8 + 1), W = l / 2 * c / 4, Y = !!g, F = A && k === "end" ? "bottom" : "top";
2891
- let b = A && k === "end" ? "right" : "left";
2892
- A && R && (b = k === "end" ? "left" : "right");
2893
- const M = i?.x != null ? A || i.x : "", U = i?.y != null ? A || i.y : "", I = g || "M0,0" + (" H" + u) + (" L" + (u - L) + "," + (l - W)) + (" Q" + u / 2 + "," + l + " " + L + "," + (l - W)) + " Z", S = {
2894
- top: Y ? "rotate(180deg)" : "",
2895
- left: Y ? "rotate(90deg)" : "rotate(-90deg)",
2896
- bottom: Y ? "" : "rotate(180deg)",
2897
- right: Y ? "rotate(-90deg)" : "rotate(90deg)"
2898
- }[D];
2885
+ const [I, N] = r.split("-"), C = I === "top" || I === "bottom";
2886
+ let P = f;
2887
+ (C && s != null && s.x || !C && s != null && s.y) && (P = null);
2888
+ const j = p * 2, A = j / 2, D = u / 2 * (c / -8 + 1), H = l / 2 * c / 4, U = !!g, $ = P && N === "end" ? "bottom" : "top";
2889
+ let y = P && N === "end" ? "right" : "left";
2890
+ P && R && (y = N === "end" ? "left" : "right");
2891
+ const M = i?.x != null ? P || i.x : "", Y = i?.y != null ? P || i.y : "", k = g || "M0,0" + (" H" + u) + (" L" + (u - D) + "," + (l - H)) + (" Q" + u / 2 + "," + l + " " + D + "," + (l - H)) + " Z", S = {
2892
+ top: U ? "rotate(180deg)" : "",
2893
+ left: U ? "rotate(90deg)" : "rotate(-90deg)",
2894
+ bottom: U ? "" : "rotate(180deg)",
2895
+ right: U ? "rotate(-90deg)" : "rotate(90deg)"
2896
+ }[I];
2899
2897
  return /* @__PURE__ */ z.jsxs("svg", {
2900
2898
  ...E,
2901
2899
  "aria-hidden": !0,
2902
2900
  ref: n,
2903
- width: Y ? u : u + N,
2901
+ width: U ? u : u + j,
2904
2902
  height: u,
2905
2903
  viewBox: "0 0 " + u + " " + (l > u ? l : u),
2906
2904
  style: {
2907
2905
  position: "absolute",
2908
2906
  pointerEvents: "none",
2909
- [b]: M,
2910
- [F]: U,
2911
- [D]: C || Y ? "100%" : "calc(100% - " + N / 2 + "px)",
2912
- transform: [S, v].filter((j) => !!j).join(" "),
2907
+ [y]: M,
2908
+ [$]: Y,
2909
+ [I]: C || U ? "100%" : "calc(100% - " + j / 2 + "px)",
2910
+ transform: [S, v].filter((F) => !!F).join(" "),
2913
2911
  ...h
2914
2912
  },
2915
- children: [N > 0 && /* @__PURE__ */ z.jsx("path", {
2913
+ children: [j > 0 && /* @__PURE__ */ z.jsx("path", {
2916
2914
  clipPath: "url(#" + T + ")",
2917
2915
  fill: "none",
2918
2916
  stroke: a,
2919
- strokeWidth: N + (g ? 0 : 1),
2920
- d: I
2917
+ strokeWidth: j + (g ? 0 : 1),
2918
+ d: k
2921
2919
  }), /* @__PURE__ */ z.jsx("path", {
2922
- stroke: N && !g ? E.fill : "none",
2923
- d: I
2920
+ stroke: j && !g ? E.fill : "none",
2921
+ d: k
2924
2922
  }), /* @__PURE__ */ z.jsx("clipPath", {
2925
2923
  id: T,
2926
2924
  children: /* @__PURE__ */ z.jsx("rect", {
2927
- x: -P,
2928
- y: P * (Y ? -1 : 1),
2929
- width: u + N,
2925
+ x: -A,
2926
+ y: A * (U ? -1 : 1),
2927
+ width: u + j,
2930
2928
  height: u
2931
2929
  })
2932
2930
  })]
@@ -2954,7 +2952,7 @@ const Wo = /* @__PURE__ */ x.createContext(null), Vo = /* @__PURE__ */ x.createC
2954
2952
  }, _t = () => x.useContext(Vo);
2955
2953
  function La(e) {
2956
2954
  const t = Ot(), n = _t(), o = dt();
2957
- return ge(() => {
2955
+ return de(() => {
2958
2956
  if (!t) return;
2959
2957
  const i = {
2960
2958
  id: t,
@@ -3032,146 +3030,146 @@ function Ia(e, t) {
3032
3030
  mouseOnly: p = !1,
3033
3031
  restMs: f = 0,
3034
3032
  move: a = !0
3035
- } = t, g = _t(), v = dt(), h = Me(c), E = Me(l), T = Me(n), R = Me(f), O = x.useRef(), D = x.useRef(-1), k = x.useRef(), C = x.useRef(-1), A = x.useRef(!0), N = x.useRef(!1), P = x.useRef(() => {
3036
- }), L = x.useRef(!1), W = we(() => {
3037
- var I;
3038
- const S = (I = o.current.openEvent) == null ? void 0 : I.type;
3033
+ } = t, g = _t(), v = dt(), h = Me(c), E = Me(l), T = Me(n), R = Me(f), _ = x.useRef(), I = x.useRef(-1), N = x.useRef(), C = x.useRef(-1), P = x.useRef(!0), j = x.useRef(!1), A = x.useRef(() => {
3034
+ }), D = x.useRef(!1), H = we(() => {
3035
+ var k;
3036
+ const S = (k = o.current.openEvent) == null ? void 0 : k.type;
3039
3037
  return S?.includes("mouse") && S !== "mousedown";
3040
3038
  });
3041
3039
  x.useEffect(() => {
3042
3040
  if (!u) return;
3043
- function I(S) {
3041
+ function k(S) {
3044
3042
  let {
3045
- open: j
3043
+ open: F
3046
3044
  } = S;
3047
- j || (xe(D), xe(C), A.current = !0, L.current = !1);
3045
+ F || (xe(I), xe(C), P.current = !0, D.current = !1);
3048
3046
  }
3049
- return i.on("openchange", I), () => {
3050
- i.off("openchange", I);
3047
+ return i.on("openchange", k), () => {
3048
+ i.off("openchange", k);
3051
3049
  };
3052
3050
  }, [u, i]), x.useEffect(() => {
3053
3051
  if (!u || !h.current || !n) return;
3054
- function I(j) {
3055
- W() && r(!1, j, "hover");
3052
+ function k(F) {
3053
+ H() && r(!1, F, "hover");
3056
3054
  }
3057
3055
  const S = be(s.floating).documentElement;
3058
- return S.addEventListener("mouseleave", I), () => {
3059
- S.removeEventListener("mouseleave", I);
3056
+ return S.addEventListener("mouseleave", k), () => {
3057
+ S.removeEventListener("mouseleave", k);
3060
3058
  };
3061
- }, [s.floating, n, r, u, h, W]);
3062
- const Y = x.useCallback(function(I, S, j) {
3063
- S === void 0 && (S = !0), j === void 0 && (j = "hover");
3064
- const y = Tn(E.current, "close", O.current);
3065
- y && !k.current ? (xe(D), D.current = window.setTimeout(() => r(!1, I, j), y)) : S && (xe(D), r(!1, I, j));
3066
- }, [E, r]), F = we(() => {
3067
- P.current(), k.current = void 0;
3068
- }), b = we(() => {
3069
- if (N.current) {
3070
- const I = be(s.floating).body;
3071
- I.style.pointerEvents = "", I.removeAttribute(Yr), N.current = !1;
3059
+ }, [s.floating, n, r, u, h, H]);
3060
+ const U = x.useCallback(function(k, S, F) {
3061
+ S === void 0 && (S = !0), F === void 0 && (F = "hover");
3062
+ const B = Tn(E.current, "close", _.current);
3063
+ B && !N.current ? (xe(I), I.current = window.setTimeout(() => r(!1, k, F), B)) : S && (xe(I), r(!1, k, F));
3064
+ }, [E, r]), $ = we(() => {
3065
+ A.current(), N.current = void 0;
3066
+ }), y = we(() => {
3067
+ if (j.current) {
3068
+ const k = be(s.floating).body;
3069
+ k.style.pointerEvents = "", k.removeAttribute(Yr), j.current = !1;
3072
3070
  }
3073
3071
  }), M = we(() => o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1);
3074
3072
  x.useEffect(() => {
3075
3073
  if (!u) return;
3076
- function I(H) {
3077
- if (xe(D), A.current = !1, p && !lt(O.current) || Sn(R.current) > 0 && !Tn(E.current, "open"))
3074
+ function k(L) {
3075
+ if (xe(I), P.current = !1, p && !lt(_.current) || Sn(R.current) > 0 && !Tn(E.current, "open"))
3078
3076
  return;
3079
- const _ = Tn(E.current, "open", O.current);
3080
- _ ? D.current = window.setTimeout(() => {
3081
- T.current || r(!0, H, "hover");
3082
- }, _) : n || r(!0, H, "hover");
3077
+ const O = Tn(E.current, "open", _.current);
3078
+ O ? I.current = window.setTimeout(() => {
3079
+ T.current || r(!0, L, "hover");
3080
+ }, O) : n || r(!0, L, "hover");
3083
3081
  }
3084
- function S(H) {
3082
+ function S(L) {
3085
3083
  if (M()) {
3086
- b();
3084
+ y();
3087
3085
  return;
3088
3086
  }
3089
- P.current();
3090
- const _ = be(s.floating);
3091
- if (xe(C), L.current = !1, h.current && o.current.floatingContext) {
3092
- n || xe(D), k.current = h.current({
3087
+ A.current();
3088
+ const O = be(s.floating);
3089
+ if (xe(C), D.current = !1, h.current && o.current.floatingContext) {
3090
+ n || xe(I), N.current = h.current({
3093
3091
  ...o.current.floatingContext,
3094
3092
  tree: g,
3095
- x: H.clientX,
3096
- y: H.clientY,
3093
+ x: L.clientX,
3094
+ y: L.clientY,
3097
3095
  onClose() {
3098
- b(), F(), M() || Y(H, !0, "safe-polygon");
3096
+ y(), $(), M() || U(L, !0, "safe-polygon");
3099
3097
  }
3100
3098
  });
3101
- const G = k.current;
3102
- _.addEventListener("mousemove", G), P.current = () => {
3103
- _.removeEventListener("mousemove", G);
3099
+ const K = N.current;
3100
+ O.addEventListener("mousemove", K), A.current = () => {
3101
+ O.removeEventListener("mousemove", K);
3104
3102
  };
3105
3103
  return;
3106
3104
  }
3107
- (O.current === "touch" ? !he(s.floating, H.relatedTarget) : !0) && Y(H);
3105
+ (_.current === "touch" ? !he(s.floating, L.relatedTarget) : !0) && U(L);
3108
3106
  }
3109
- function j(H) {
3107
+ function F(L) {
3110
3108
  M() || o.current.floatingContext && (h.current == null || h.current({
3111
3109
  ...o.current.floatingContext,
3112
3110
  tree: g,
3113
- x: H.clientX,
3114
- y: H.clientY,
3111
+ x: L.clientX,
3112
+ y: L.clientY,
3115
3113
  onClose() {
3116
- b(), F(), M() || Y(H);
3114
+ y(), $(), M() || U(L);
3117
3115
  }
3118
- })(H));
3116
+ })(L));
3119
3117
  }
3120
- function y() {
3121
- xe(D);
3118
+ function B() {
3119
+ xe(I);
3122
3120
  }
3123
- function $(H) {
3124
- M() || Y(H, !1);
3121
+ function b(L) {
3122
+ M() || U(L, !1);
3125
3123
  }
3126
- if (se(s.domReference)) {
3127
- const H = s.domReference, _ = s.floating;
3128
- return n && H.addEventListener("mouseleave", j), a && H.addEventListener("mousemove", I, {
3124
+ if (ie(s.domReference)) {
3125
+ const L = s.domReference, O = s.floating;
3126
+ return n && L.addEventListener("mouseleave", F), a && L.addEventListener("mousemove", k, {
3129
3127
  once: !0
3130
- }), H.addEventListener("mouseenter", I), H.addEventListener("mouseleave", S), _ && (_.addEventListener("mouseleave", j), _.addEventListener("mouseenter", y), _.addEventListener("mouseleave", $)), () => {
3131
- n && H.removeEventListener("mouseleave", j), a && H.removeEventListener("mousemove", I), H.removeEventListener("mouseenter", I), H.removeEventListener("mouseleave", S), _ && (_.removeEventListener("mouseleave", j), _.removeEventListener("mouseenter", y), _.removeEventListener("mouseleave", $));
3128
+ }), L.addEventListener("mouseenter", k), L.addEventListener("mouseleave", S), O && (O.addEventListener("mouseleave", F), O.addEventListener("mouseenter", B), O.addEventListener("mouseleave", b)), () => {
3129
+ n && L.removeEventListener("mouseleave", F), a && L.removeEventListener("mousemove", k), L.removeEventListener("mouseenter", k), L.removeEventListener("mouseleave", S), O && (O.removeEventListener("mouseleave", F), O.removeEventListener("mouseenter", B), O.removeEventListener("mouseleave", b));
3132
3130
  };
3133
3131
  }
3134
- }, [s, u, e, p, a, Y, F, b, r, n, T, g, E, h, o, M, R]), ge(() => {
3135
- var I;
3136
- if (u && n && (I = h.current) != null && (I = I.__options) != null && I.blockPointerEvents && W()) {
3137
- N.current = !0;
3138
- const j = s.floating;
3139
- if (se(s.domReference) && j) {
3132
+ }, [s, u, e, p, a, U, $, y, r, n, T, g, E, h, o, M, R]), de(() => {
3133
+ var k;
3134
+ if (u && n && (k = h.current) != null && (k = k.__options) != null && k.blockPointerEvents && H()) {
3135
+ j.current = !0;
3136
+ const F = s.floating;
3137
+ if (ie(s.domReference) && F) {
3140
3138
  var S;
3141
- const y = be(s.floating).body;
3142
- y.setAttribute(Yr, "");
3143
- const $ = s.domReference, H = g == null || (S = g.nodesRef.current.find((_) => _.id === v)) == null || (S = S.context) == null ? void 0 : S.elements.floating;
3144
- return H && (H.style.pointerEvents = ""), y.style.pointerEvents = "none", $.style.pointerEvents = "auto", j.style.pointerEvents = "auto", () => {
3145
- y.style.pointerEvents = "", $.style.pointerEvents = "", j.style.pointerEvents = "";
3139
+ const B = be(s.floating).body;
3140
+ B.setAttribute(Yr, "");
3141
+ const b = s.domReference, L = g == null || (S = g.nodesRef.current.find((O) => O.id === v)) == null || (S = S.context) == null ? void 0 : S.elements.floating;
3142
+ return L && (L.style.pointerEvents = ""), B.style.pointerEvents = "none", b.style.pointerEvents = "auto", F.style.pointerEvents = "auto", () => {
3143
+ B.style.pointerEvents = "", b.style.pointerEvents = "", F.style.pointerEvents = "";
3146
3144
  };
3147
3145
  }
3148
3146
  }
3149
- }, [u, n, v, s, g, h, W]), ge(() => {
3150
- n || (O.current = void 0, L.current = !1, F(), b());
3151
- }, [n, F, b]), x.useEffect(() => () => {
3152
- F(), xe(D), xe(C), b();
3153
- }, [u, s.domReference, F, b]);
3154
- const U = x.useMemo(() => {
3155
- function I(S) {
3156
- O.current = S.pointerType;
3147
+ }, [u, n, v, s, g, h, H]), de(() => {
3148
+ n || (_.current = void 0, D.current = !1, $(), y());
3149
+ }, [n, $, y]), x.useEffect(() => () => {
3150
+ $(), xe(I), xe(C), y();
3151
+ }, [u, s.domReference, $, y]);
3152
+ const Y = x.useMemo(() => {
3153
+ function k(S) {
3154
+ _.current = S.pointerType;
3157
3155
  }
3158
3156
  return {
3159
- onPointerDown: I,
3160
- onPointerEnter: I,
3157
+ onPointerDown: k,
3158
+ onPointerEnter: k,
3161
3159
  onMouseMove(S) {
3162
3160
  const {
3163
- nativeEvent: j
3161
+ nativeEvent: F
3164
3162
  } = S;
3165
- function y() {
3166
- !A.current && !T.current && r(!0, j, "hover");
3163
+ function B() {
3164
+ !P.current && !T.current && r(!0, F, "hover");
3167
3165
  }
3168
- p && !lt(O.current) || n || Sn(R.current) === 0 || L.current && S.movementX ** 2 + S.movementY ** 2 < 2 || (xe(C), O.current === "touch" ? y() : (L.current = !0, C.current = window.setTimeout(y, Sn(R.current))));
3166
+ p && !lt(_.current) || n || Sn(R.current) === 0 || D.current && S.movementX ** 2 + S.movementY ** 2 < 2 || (xe(C), _.current === "touch" ? B() : (D.current = !0, C.current = window.setTimeout(B, Sn(R.current))));
3169
3167
  }
3170
3168
  };
3171
3169
  }, [p, r, n, T, R]);
3172
3170
  return x.useMemo(() => u ? {
3173
- reference: U
3174
- } : {}, [u, U]);
3171
+ reference: Y
3172
+ } : {}, [u, Y]);
3175
3173
  }
3176
3174
  let zr = 0;
3177
3175
  function ot(e, t) {
@@ -3238,8 +3236,8 @@ function $a(e, t, n, r) {
3238
3236
  if (u.has(v))
3239
3237
  a(v);
3240
3238
  else {
3241
- const h = i ? v.getAttribute(i) : null, E = h !== null && h !== "false", T = Gr(i), R = (T.get(v) || 0) + 1, O = (p.get(v) || 0) + 1;
3242
- T.set(v, R), p.set(v, O), c.push(v), R === 1 && E && jt.add(v), O === 1 && v.setAttribute(o, ""), !E && i && v.setAttribute(i, i === "inert" ? "" : "true");
3239
+ const h = i ? v.getAttribute(i) : null, E = h !== null && h !== "false", T = Gr(i), R = (T.get(v) || 0) + 1, _ = (p.get(v) || 0) + 1;
3240
+ T.set(v, R), p.set(v, _), c.push(v), R === 1 && E && jt.add(v), _ === 1 && v.setAttribute(o, ""), !E && i && v.setAttribute(i, i === "inert" ? "" : "true");
3243
3241
  }
3244
3242
  });
3245
3243
  }
@@ -3269,7 +3267,7 @@ const an = {
3269
3267
  left: 0
3270
3268
  }, Kt = /* @__PURE__ */ x.forwardRef(function(t, n) {
3271
3269
  const [r, o] = x.useState();
3272
- ge(() => {
3270
+ de(() => {
3273
3271
  Ao() && o("button");
3274
3272
  }, []);
3275
3273
  const i = {
@@ -3292,17 +3290,17 @@ function Ha(e) {
3292
3290
  id: t,
3293
3291
  root: n
3294
3292
  } = e, r = Ot(), o = zo(), [i, s] = x.useState(null), u = x.useRef(null);
3295
- return ge(() => () => {
3293
+ return de(() => () => {
3296
3294
  i?.remove(), queueMicrotask(() => {
3297
3295
  u.current = null;
3298
3296
  });
3299
- }, [i]), ge(() => {
3297
+ }, [i]), de(() => {
3300
3298
  if (!r || u.current) return;
3301
3299
  const l = t ? document.getElementById(t) : null;
3302
3300
  if (!l) return;
3303
3301
  const c = document.createElement("div");
3304
3302
  c.id = r, c.setAttribute(Xr, ""), l.appendChild(c), u.current = c, s(c);
3305
- }, [t, r]), ge(() => {
3303
+ }, [t, r]), de(() => {
3306
3304
  if (n === null || !r || u.current) return;
3307
3305
  let l = n || o?.portalNode;
3308
3306
  l && !Yn(l) && (l = l.current), l = l || document.body;
@@ -3443,105 +3441,105 @@ function za(e) {
3443
3441
  dataRef: T,
3444
3442
  elements: {
3445
3443
  domReference: R,
3446
- floating: O
3444
+ floating: _
3447
3445
  }
3448
- } = t, D = we(() => {
3446
+ } = t, I = we(() => {
3449
3447
  var q;
3450
3448
  return (q = T.current.floatingContext) == null ? void 0 : q.nodeId;
3451
- }), k = we(g), C = typeof s == "number" && s < 0, A = Ar(R) && C, N = ja(), P = N ? i : !0, L = !P || N && a, W = Me(o), Y = Me(s), F = Me(u), b = _t(), M = zo(), U = x.useRef(null), I = x.useRef(null), S = x.useRef(!1), j = x.useRef(!1), y = x.useRef(-1), $ = x.useRef(-1), H = M != null, _ = Nn(O), Q = we(function(q) {
3452
- return q === void 0 && (q = _), q ? on(q, St()) : [];
3453
- }), G = we((q) => {
3454
- const ee = Q(q);
3455
- return W.current.map((J) => R && J === "reference" ? R : _ && J === "floating" ? _ : ee).filter(Boolean).flat();
3449
+ }), N = we(g), C = typeof s == "number" && s < 0, P = Ar(R) && C, j = ja(), A = j ? i : !0, D = !A || j && a, H = Me(o), U = Me(s), $ = Me(u), y = _t(), M = zo(), Y = x.useRef(null), k = x.useRef(null), S = x.useRef(!1), F = x.useRef(!1), B = x.useRef(-1), b = x.useRef(-1), L = M != null, O = Nn(_), X = we(function(q) {
3450
+ return q === void 0 && (q = O), q ? on(q, St()) : [];
3451
+ }), K = we((q) => {
3452
+ const te = X(q);
3453
+ return H.current.map((Q) => R && Q === "reference" ? R : O && Q === "floating" ? O : te).filter(Boolean).flat();
3456
3454
  });
3457
3455
  x.useEffect(() => {
3458
3456
  if (r || !c) return;
3459
- function q(J) {
3460
- if (J.key === "Tab") {
3461
- he(_, Ve(be(_))) && Q().length === 0 && !A && xn(J);
3462
- const ue = G(), de = Ie(J);
3463
- W.current[0] === "reference" && de === R && (xn(J), J.shiftKey ? ot(ue[ue.length - 1]) : ot(ue[1])), W.current[1] === "floating" && de === _ && J.shiftKey && (xn(J), ot(ue[0]));
3457
+ function q(Q) {
3458
+ if (Q.key === "Tab") {
3459
+ he(O, Ve(be(O))) && X().length === 0 && !P && xn(Q);
3460
+ const ue = K(), fe = Ie(Q);
3461
+ H.current[0] === "reference" && fe === R && (xn(Q), Q.shiftKey ? ot(ue[ue.length - 1]) : ot(ue[1])), H.current[1] === "floating" && fe === O && Q.shiftKey && (xn(Q), ot(ue[0]));
3464
3462
  }
3465
3463
  }
3466
- const ee = be(_);
3467
- return ee.addEventListener("keydown", q), () => {
3468
- ee.removeEventListener("keydown", q);
3464
+ const te = be(O);
3465
+ return te.addEventListener("keydown", q), () => {
3466
+ te.removeEventListener("keydown", q);
3469
3467
  };
3470
- }, [r, R, _, c, W, A, Q, G]), x.useEffect(() => {
3471
- if (r || !O) return;
3472
- function q(ee) {
3473
- const J = Ie(ee), de = Q().indexOf(J);
3474
- de !== -1 && (y.current = de);
3468
+ }, [r, R, O, c, H, P, X, K]), x.useEffect(() => {
3469
+ if (r || !_) return;
3470
+ function q(te) {
3471
+ const Q = Ie(te), fe = X().indexOf(Q);
3472
+ fe !== -1 && (B.current = fe);
3475
3473
  }
3476
- return O.addEventListener("focusin", q), () => {
3477
- O.removeEventListener("focusin", q);
3474
+ return _.addEventListener("focusin", q), () => {
3475
+ _.removeEventListener("focusin", q);
3478
3476
  };
3479
- }, [r, O, Q]), x.useEffect(() => {
3477
+ }, [r, _, X]), x.useEffect(() => {
3480
3478
  if (r || !f) return;
3481
3479
  function q() {
3482
- j.current = !0, setTimeout(() => {
3483
- j.current = !1;
3480
+ F.current = !0, setTimeout(() => {
3481
+ F.current = !1;
3484
3482
  });
3485
3483
  }
3486
- function ee(de) {
3487
- const re = de.relatedTarget, Ce = de.currentTarget, Ee = Ie(de);
3484
+ function te(fe) {
3485
+ const re = fe.relatedTarget, Ce = fe.currentTarget, Ee = Ie(fe);
3488
3486
  queueMicrotask(() => {
3489
- const pe = D(), Ae = !(he(R, re) || he(O, re) || he(re, O) || he(M?.portalNode, re) || re != null && re.hasAttribute(et("focus-guard")) || b && (st(b.nodesRef.current, pe).find((Te) => {
3487
+ const pe = I(), Ae = !(he(R, re) || he(_, re) || he(re, _) || he(M?.portalNode, re) || re != null && re.hasAttribute(et("focus-guard")) || y && (st(y.nodesRef.current, pe).find((Te) => {
3490
3488
  var me, Pe;
3491
3489
  return he((me = Te.context) == null ? void 0 : me.elements.floating, re) || he((Pe = Te.context) == null ? void 0 : Pe.elements.domReference, re);
3492
- }) || Pr(b.nodesRef.current, pe).find((Te) => {
3490
+ }) || Pr(y.nodesRef.current, pe).find((Te) => {
3493
3491
  var me, Pe, gt;
3494
3492
  return [(me = Te.context) == null ? void 0 : me.elements.floating, Nn((Pe = Te.context) == null ? void 0 : Pe.elements.floating)].includes(re) || ((gt = Te.context) == null ? void 0 : gt.elements.domReference) === re;
3495
3493
  })));
3496
- if (Ce === R && _ && Zr(_, W), l && Ce !== R && !(Ee != null && Ee.isConnected) && Ve(be(_)) === be(_).body) {
3497
- fe(_) && _.focus();
3498
- const Te = y.current, me = Q(), Pe = me[Te] || me[me.length - 1] || _;
3499
- fe(Pe) && Pe.focus();
3494
+ if (Ce === R && O && Zr(O, H), l && Ce !== R && !(Ee != null && Ee.isConnected) && Ve(be(O)) === be(O).body) {
3495
+ le(O) && O.focus();
3496
+ const Te = B.current, me = X(), Pe = me[Te] || me[me.length - 1] || O;
3497
+ le(Pe) && Pe.focus();
3500
3498
  }
3501
3499
  if (T.current.insideReactTree) {
3502
3500
  T.current.insideReactTree = !1;
3503
3501
  return;
3504
3502
  }
3505
- (A || !c) && re && Ae && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3506
- re !== Jr() && (S.current = !0, h(!1, de, "focus-out"));
3503
+ (P || !c) && re && Ae && !F.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3504
+ re !== Jr() && (S.current = !0, h(!1, fe, "focus-out"));
3507
3505
  });
3508
3506
  }
3509
- const J = !!(!b && M);
3507
+ const Q = !!(!y && M);
3510
3508
  function ue() {
3511
- xe($), T.current.insideReactTree = !0, $.current = window.setTimeout(() => {
3509
+ xe(b), T.current.insideReactTree = !0, b.current = window.setTimeout(() => {
3512
3510
  T.current.insideReactTree = !1;
3513
3511
  });
3514
3512
  }
3515
- if (O && fe(R))
3516
- return R.addEventListener("focusout", ee), R.addEventListener("pointerdown", q), O.addEventListener("focusout", ee), J && O.addEventListener("focusout", ue, !0), () => {
3517
- R.removeEventListener("focusout", ee), R.removeEventListener("pointerdown", q), O.removeEventListener("focusout", ee), J && O.removeEventListener("focusout", ue, !0);
3513
+ if (_ && le(R))
3514
+ return R.addEventListener("focusout", te), R.addEventListener("pointerdown", q), _.addEventListener("focusout", te), Q && _.addEventListener("focusout", ue, !0), () => {
3515
+ R.removeEventListener("focusout", te), R.removeEventListener("pointerdown", q), _.removeEventListener("focusout", te), Q && _.removeEventListener("focusout", ue, !0);
3518
3516
  };
3519
- }, [r, R, O, _, c, b, M, h, f, l, Q, A, D, W, T]);
3520
- const K = x.useRef(null), ne = x.useRef(null), B = Kr([K, M?.beforeInsideRef]), X = Kr([ne, M?.afterInsideRef]);
3517
+ }, [r, R, _, O, c, y, M, h, f, l, X, P, I, H, T]);
3518
+ const Z = x.useRef(null), G = x.useRef(null), W = Kr([Z, M?.beforeInsideRef]), J = Kr([G, M?.afterInsideRef]);
3521
3519
  x.useEffect(() => {
3522
- var q, ee;
3523
- if (r || !O) return;
3524
- const J = Array.from((M == null || (q = M.portalNode) == null ? void 0 : q.querySelectorAll("[" + et("portal") + "]")) || []), de = (ee = (b ? Pr(b.nodesRef.current, D()) : []).find((Ee) => {
3520
+ var q, te;
3521
+ if (r || !_) return;
3522
+ const Q = Array.from((M == null || (q = M.portalNode) == null ? void 0 : q.querySelectorAll("[" + et("portal") + "]")) || []), fe = (te = (y ? Pr(y.nodesRef.current, I()) : []).find((Ee) => {
3525
3523
  var pe;
3526
3524
  return Ar(((pe = Ee.context) == null ? void 0 : pe.elements.domReference) || null);
3527
- })) == null || (ee = ee.context) == null ? void 0 : ee.elements.domReference, re = [O, de, ...J, ...k(), U.current, I.current, K.current, ne.current, M?.beforeOutsideRef.current, M?.afterOutsideRef.current, W.current.includes("reference") || A ? R : null].filter((Ee) => Ee != null), Ce = c || A ? qr(re, !L, L) : qr(re);
3525
+ })) == null || (te = te.context) == null ? void 0 : te.elements.domReference, re = [_, fe, ...Q, ...N(), Y.current, k.current, Z.current, G.current, M?.beforeOutsideRef.current, M?.afterOutsideRef.current, H.current.includes("reference") || P ? R : null].filter((Ee) => Ee != null), Ce = c || P ? qr(re, !D, D) : qr(re);
3528
3526
  return () => {
3529
3527
  Ce();
3530
3528
  };
3531
- }, [r, R, O, c, W, M, A, P, L, b, D, k]), ge(() => {
3532
- if (r || !fe(_)) return;
3533
- const q = be(_), ee = Ve(q);
3529
+ }, [r, R, _, c, H, M, P, A, D, y, I, N]), de(() => {
3530
+ if (r || !le(O)) return;
3531
+ const q = be(O), te = Ve(q);
3534
3532
  queueMicrotask(() => {
3535
- const J = G(_), ue = Y.current, de = (typeof ue == "number" ? J[ue] : ue.current) || _, re = he(_, ee);
3536
- !C && !re && v && ot(de, {
3537
- preventScroll: de === _
3533
+ const Q = K(O), ue = U.current, fe = (typeof ue == "number" ? Q[ue] : ue.current) || O, re = he(O, te);
3534
+ !C && !re && v && ot(fe, {
3535
+ preventScroll: fe === O
3538
3536
  });
3539
3537
  });
3540
- }, [r, v, _, C, G, Y]), ge(() => {
3541
- if (r || !_) return;
3542
- const q = be(_), ee = Ve(q);
3543
- Va(ee);
3544
- function J(re) {
3538
+ }, [r, v, O, C, K, U]), de(() => {
3539
+ if (r || !O) return;
3540
+ const q = be(O), te = Ve(q);
3541
+ Va(te);
3542
+ function Q(re) {
3545
3543
  let {
3546
3544
  reason: Ce,
3547
3545
  event: Ee,
@@ -3561,26 +3559,26 @@ function za(e) {
3561
3559
  }), Ae ? S.current = !1 : S.current = !0;
3562
3560
  }
3563
3561
  }
3564
- E.on("openchange", J);
3562
+ E.on("openchange", Q);
3565
3563
  const ue = q.createElement("span");
3566
- ue.setAttribute("tabindex", "-1"), ue.setAttribute("aria-hidden", "true"), Object.assign(ue.style, an), H && R && R.insertAdjacentElement("afterend", ue);
3567
- function de() {
3568
- if (typeof F.current == "boolean") {
3564
+ ue.setAttribute("tabindex", "-1"), ue.setAttribute("aria-hidden", "true"), Object.assign(ue.style, an), L && R && R.insertAdjacentElement("afterend", ue);
3565
+ function fe() {
3566
+ if (typeof $.current == "boolean") {
3569
3567
  const re = R || Jr();
3570
3568
  return re && re.isConnected ? re : ue;
3571
3569
  }
3572
- return F.current.current || ue;
3570
+ return $.current.current || ue;
3573
3571
  }
3574
3572
  return () => {
3575
- E.off("openchange", J);
3576
- const re = Ve(q), Ce = he(O, re) || b && st(b.nodesRef.current, D(), !1).some((pe) => {
3573
+ E.off("openchange", Q);
3574
+ const re = Ve(q), Ce = he(_, re) || y && st(y.nodesRef.current, I(), !1).some((pe) => {
3577
3575
  var Ae;
3578
3576
  return he((Ae = pe.context) == null ? void 0 : Ae.elements.floating, re);
3579
- }), Ee = de();
3577
+ }), Ee = fe();
3580
3578
  queueMicrotask(() => {
3581
3579
  const pe = Ua(Ee);
3582
3580
  // eslint-disable-next-line react-hooks/exhaustive-deps
3583
- F.current && !S.current && fe(pe) && // If the focus moved somewhere else after mount, avoid returning focus
3581
+ $.current && !S.current && le(pe) && // If the focus moved somewhere else after mount, avoid returning focus
3584
3582
  // since it likely entered a different element which should be
3585
3583
  // respected: https://github.com/floating-ui/floating-ui/issues/2607
3586
3584
  (!(pe !== re && re !== q.body) || Ce) && pe.focus({
@@ -3588,11 +3586,11 @@ function za(e) {
3588
3586
  }), ue.remove();
3589
3587
  });
3590
3588
  };
3591
- }, [r, O, _, F, T, E, b, H, R, D]), x.useEffect(() => (queueMicrotask(() => {
3589
+ }, [r, _, O, $, T, E, y, L, R, I]), x.useEffect(() => (queueMicrotask(() => {
3592
3590
  S.current = !1;
3593
3591
  }), () => {
3594
3592
  queueMicrotask(Zn);
3595
- }), [r]), ge(() => {
3593
+ }), [r]), de(() => {
3596
3594
  if (!r && M)
3597
3595
  return M.setFocusManagerState({
3598
3596
  modal: c,
@@ -3603,57 +3601,57 @@ function za(e) {
3603
3601
  }), () => {
3604
3602
  M.setFocusManagerState(null);
3605
3603
  };
3606
- }, [r, M, c, v, h, f, R]), ge(() => {
3607
- r || _ && Zr(_, W);
3608
- }, [r, _, W]);
3609
- function oe(q) {
3604
+ }, [r, M, c, v, h, f, R]), de(() => {
3605
+ r || O && Zr(O, H);
3606
+ }, [r, O, H]);
3607
+ function se(q) {
3610
3608
  return r || !p || !c ? null : /* @__PURE__ */ z.jsx(Ya, {
3611
- ref: q === "start" ? U : I,
3612
- onClick: (ee) => h(!1, ee.nativeEvent),
3609
+ ref: q === "start" ? Y : k,
3610
+ onClick: (te) => h(!1, te.nativeEvent),
3613
3611
  children: typeof p == "string" ? p : "Dismiss"
3614
3612
  });
3615
3613
  }
3616
- const le = !r && P && (c ? !A : !0) && (H || c);
3614
+ const ge = !r && A && (c ? !P : !0) && (L || c);
3617
3615
  return /* @__PURE__ */ z.jsxs(z.Fragment, {
3618
- children: [le && /* @__PURE__ */ z.jsx(Kt, {
3616
+ children: [ge && /* @__PURE__ */ z.jsx(Kt, {
3619
3617
  "data-type": "inside",
3620
- ref: B,
3618
+ ref: W,
3621
3619
  onFocus: (q) => {
3622
3620
  if (c) {
3623
- const J = G();
3624
- ot(o[0] === "reference" ? J[0] : J[J.length - 1]);
3621
+ const Q = K();
3622
+ ot(o[0] === "reference" ? Q[0] : Q[Q.length - 1]);
3625
3623
  } else if (M != null && M.preserveTabOrder && M.portalNode)
3626
3624
  if (S.current = !1, wt(q, M.portalNode)) {
3627
- const J = Mo(R);
3628
- J?.focus();
3625
+ const Q = Mo(R);
3626
+ Q?.focus();
3629
3627
  } else {
3630
- var ee;
3631
- (ee = M.beforeOutsideRef.current) == null || ee.focus();
3628
+ var te;
3629
+ (te = M.beforeOutsideRef.current) == null || te.focus();
3632
3630
  }
3633
3631
  }
3634
- }), !A && oe("start"), n, oe("end"), le && /* @__PURE__ */ z.jsx(Kt, {
3632
+ }), !P && se("start"), n, se("end"), ge && /* @__PURE__ */ z.jsx(Kt, {
3635
3633
  "data-type": "inside",
3636
- ref: X,
3634
+ ref: J,
3637
3635
  onFocus: (q) => {
3638
3636
  if (c)
3639
- ot(G()[0]);
3637
+ ot(K()[0]);
3640
3638
  else if (M != null && M.preserveTabOrder && M.portalNode)
3641
3639
  if (f && (S.current = !0), wt(q, M.portalNode)) {
3642
- const J = Do(R);
3643
- J?.focus();
3640
+ const Q = Do(R);
3641
+ Q?.focus();
3644
3642
  } else {
3645
- var ee;
3646
- (ee = M.afterOutsideRef.current) == null || ee.focus();
3643
+ var te;
3644
+ (te = M.afterOutsideRef.current) == null || te.focus();
3647
3645
  }
3648
3646
  }
3649
3647
  })]
3650
3648
  });
3651
3649
  }
3652
3650
  function Qr(e) {
3653
- return fe(e.target) && e.target.tagName === "BUTTON";
3651
+ return le(e.target) && e.target.tagName === "BUTTON";
3654
3652
  }
3655
3653
  function Ga(e) {
3656
- return fe(e.target) && e.target.tagName === "A";
3654
+ return le(e.target) && e.target.tagName === "A";
3657
3655
  }
3658
3656
  function eo(e) {
3659
3657
  return Xn(e);
@@ -3745,45 +3743,45 @@ function Ka(e, t) {
3745
3743
  axis: l = "both",
3746
3744
  x: c = null,
3747
3745
  y: p = null
3748
- } = t, f = x.useRef(!1), a = x.useRef(null), [g, v] = x.useState(), [h, E] = x.useState([]), T = we((C, A) => {
3746
+ } = t, f = x.useRef(!1), a = x.useRef(null), [g, v] = x.useState(), [h, E] = x.useState([]), T = we((C, P) => {
3749
3747
  f.current || r.current.openEvent && !to(r.current.openEvent) || s.setPositionReference(Xa(i, {
3750
3748
  x: C,
3751
- y: A,
3749
+ y: P,
3752
3750
  axis: l,
3753
3751
  dataRef: r,
3754
3752
  pointerType: g
3755
3753
  }));
3756
3754
  }), R = we((C) => {
3757
3755
  c != null || p != null || (n ? a.current || E([]) : T(C.clientX, C.clientY));
3758
- }), O = lt(g) ? o : n, D = x.useCallback(() => {
3759
- if (!O || !u || c != null || p != null) return;
3756
+ }), _ = lt(g) ? o : n, I = x.useCallback(() => {
3757
+ if (!_ || !u || c != null || p != null) return;
3760
3758
  const C = Re(o);
3761
- function A(N) {
3762
- const P = Ie(N);
3763
- he(o, P) ? (C.removeEventListener("mousemove", A), a.current = null) : T(N.clientX, N.clientY);
3759
+ function P(j) {
3760
+ const A = Ie(j);
3761
+ he(o, A) ? (C.removeEventListener("mousemove", P), a.current = null) : T(j.clientX, j.clientY);
3764
3762
  }
3765
3763
  if (!r.current.openEvent || to(r.current.openEvent)) {
3766
- C.addEventListener("mousemove", A);
3767
- const N = () => {
3768
- C.removeEventListener("mousemove", A), a.current = null;
3764
+ C.addEventListener("mousemove", P);
3765
+ const j = () => {
3766
+ C.removeEventListener("mousemove", P), a.current = null;
3769
3767
  };
3770
- return a.current = N, N;
3768
+ return a.current = j, j;
3771
3769
  }
3772
3770
  s.setPositionReference(i);
3773
- }, [O, u, c, p, o, r, s, i, T]);
3774
- x.useEffect(() => D(), [D, h]), x.useEffect(() => {
3771
+ }, [_, u, c, p, o, r, s, i, T]);
3772
+ x.useEffect(() => I(), [I, h]), x.useEffect(() => {
3775
3773
  u && !o && (f.current = !1);
3776
3774
  }, [u, o]), x.useEffect(() => {
3777
3775
  !u && n && (f.current = !0);
3778
- }, [u, n]), ge(() => {
3776
+ }, [u, n]), de(() => {
3779
3777
  u && (c != null || p != null) && (f.current = !1, T(c, p));
3780
3778
  }, [u, c, p, T]);
3781
- const k = x.useMemo(() => {
3782
- function C(A) {
3779
+ const N = x.useMemo(() => {
3780
+ function C(P) {
3783
3781
  let {
3784
- pointerType: N
3785
- } = A;
3786
- v(N);
3782
+ pointerType: j
3783
+ } = P;
3784
+ v(j);
3787
3785
  }
3788
3786
  return {
3789
3787
  onPointerDown: C,
@@ -3793,8 +3791,8 @@ function Ka(e, t) {
3793
3791
  };
3794
3792
  }, [R]);
3795
3793
  return x.useMemo(() => u ? {
3796
- reference: k
3797
- } : {}, [u, k]);
3794
+ reference: N
3795
+ } : {}, [u, N]);
3798
3796
  }
3799
3797
  const Ja = {
3800
3798
  pointerdown: "onPointerDown",
@@ -3829,102 +3827,102 @@ function Qa(e, t) {
3829
3827
  bubbles: g,
3830
3828
  capture: v
3831
3829
  } = t, h = _t(), E = we(typeof l == "function" ? l : () => !1), T = typeof l == "function" ? E : l, R = x.useRef(!1), {
3832
- escapeKey: O,
3833
- outsidePress: D
3830
+ escapeKey: _,
3831
+ outsidePress: I
3834
3832
  } = no(g), {
3835
- escapeKey: k,
3833
+ escapeKey: N,
3836
3834
  outsidePress: C
3837
- } = no(v), A = x.useRef(!1), N = we((b) => {
3835
+ } = no(v), P = x.useRef(!1), j = we((y) => {
3838
3836
  var M;
3839
- if (!n || !s || !u || b.key !== "Escape" || A.current)
3837
+ if (!n || !s || !u || y.key !== "Escape" || P.current)
3840
3838
  return;
3841
- const U = (M = i.current.floatingContext) == null ? void 0 : M.nodeId, I = h ? st(h.nodesRef.current, U) : [];
3842
- if (!O && (b.stopPropagation(), I.length > 0)) {
3839
+ const Y = (M = i.current.floatingContext) == null ? void 0 : M.nodeId, k = h ? st(h.nodesRef.current, Y) : [];
3840
+ if (!_ && (y.stopPropagation(), k.length > 0)) {
3843
3841
  let S = !0;
3844
- if (I.forEach((j) => {
3845
- var y;
3846
- if ((y = j.context) != null && y.open && !j.context.dataRef.current.__escapeKeyBubbles) {
3842
+ if (k.forEach((F) => {
3843
+ var B;
3844
+ if ((B = F.context) != null && B.open && !F.context.dataRef.current.__escapeKeyBubbles) {
3847
3845
  S = !1;
3848
3846
  return;
3849
3847
  }
3850
3848
  }), !S)
3851
3849
  return;
3852
3850
  }
3853
- r(!1, Rc(b) ? b.nativeEvent : b, "escape-key");
3854
- }), P = we((b) => {
3851
+ r(!1, Rc(y) ? y.nativeEvent : y, "escape-key");
3852
+ }), A = we((y) => {
3855
3853
  var M;
3856
- const U = () => {
3857
- var I;
3858
- N(b), (I = Ie(b)) == null || I.removeEventListener("keydown", U);
3854
+ const Y = () => {
3855
+ var k;
3856
+ j(y), (k = Ie(y)) == null || k.removeEventListener("keydown", Y);
3859
3857
  };
3860
- (M = Ie(b)) == null || M.addEventListener("keydown", U);
3861
- }), L = we((b) => {
3858
+ (M = Ie(y)) == null || M.addEventListener("keydown", Y);
3859
+ }), D = we((y) => {
3862
3860
  var M;
3863
- const U = i.current.insideReactTree;
3861
+ const Y = i.current.insideReactTree;
3864
3862
  i.current.insideReactTree = !1;
3865
- const I = R.current;
3866
- if (R.current = !1, c === "click" && I || U || typeof T == "function" && !T(b))
3863
+ const k = R.current;
3864
+ if (R.current = !1, c === "click" && k || Y || typeof T == "function" && !T(y))
3867
3865
  return;
3868
- const S = Ie(b), j = "[" + et("inert") + "]", y = be(o.floating).querySelectorAll(j);
3869
- let $ = se(S) ? S : null;
3870
- for (; $ && !He($); ) {
3871
- const G = We($);
3872
- if (He(G) || !se(G))
3866
+ const S = Ie(y), F = "[" + et("inert") + "]", B = be(o.floating).querySelectorAll(F);
3867
+ let b = ie(S) ? S : null;
3868
+ for (; b && !He(b); ) {
3869
+ const K = We(b);
3870
+ if (He(K) || !ie(K))
3873
3871
  break;
3874
- $ = G;
3872
+ b = K;
3875
3873
  }
3876
- if (y.length && se(S) && !wc(S) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3874
+ if (B.length && ie(S) && !wc(S) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3877
3875
  !he(S, o.floating) && // If the target root element contains none of the markers, then the
3878
3876
  // element was injected after the floating element rendered.
3879
- Array.from(y).every((G) => !he($, G)))
3877
+ Array.from(B).every((K) => !he(b, K)))
3880
3878
  return;
3881
- if (fe(S) && F) {
3882
- const G = He(S), K = _e(S), ne = /auto|scroll/, B = G || ne.test(K.overflowX), X = G || ne.test(K.overflowY), oe = B && S.clientWidth > 0 && S.scrollWidth > S.clientWidth, le = X && S.clientHeight > 0 && S.scrollHeight > S.clientHeight, q = K.direction === "rtl", ee = le && (q ? b.offsetX <= S.offsetWidth - S.clientWidth : b.offsetX > S.clientWidth), J = oe && b.offsetY > S.clientHeight;
3883
- if (ee || J)
3879
+ if (le(S) && $) {
3880
+ const K = He(S), Z = _e(S), G = /auto|scroll/, W = K || G.test(Z.overflowX), J = K || G.test(Z.overflowY), se = W && S.clientWidth > 0 && S.scrollWidth > S.clientWidth, ge = J && S.clientHeight > 0 && S.scrollHeight > S.clientHeight, q = Z.direction === "rtl", te = ge && (q ? y.offsetX <= S.offsetWidth - S.clientWidth : y.offsetX > S.clientWidth), Q = se && y.offsetY > S.clientHeight;
3881
+ if (te || Q)
3884
3882
  return;
3885
3883
  }
3886
- const H = (M = i.current.floatingContext) == null ? void 0 : M.nodeId, _ = h && st(h.nodesRef.current, H).some((G) => {
3887
- var K;
3888
- return wn(b, (K = G.context) == null ? void 0 : K.elements.floating);
3884
+ const L = (M = i.current.floatingContext) == null ? void 0 : M.nodeId, O = h && st(h.nodesRef.current, L).some((K) => {
3885
+ var Z;
3886
+ return wn(y, (Z = K.context) == null ? void 0 : Z.elements.floating);
3889
3887
  });
3890
- if (wn(b, o.floating) || wn(b, o.domReference) || _)
3888
+ if (wn(y, o.floating) || wn(y, o.domReference) || O)
3891
3889
  return;
3892
- const Q = h ? st(h.nodesRef.current, H) : [];
3893
- if (Q.length > 0) {
3894
- let G = !0;
3895
- if (Q.forEach((K) => {
3896
- var ne;
3897
- if ((ne = K.context) != null && ne.open && !K.context.dataRef.current.__outsidePressBubbles) {
3898
- G = !1;
3890
+ const X = h ? st(h.nodesRef.current, L) : [];
3891
+ if (X.length > 0) {
3892
+ let K = !0;
3893
+ if (X.forEach((Z) => {
3894
+ var G;
3895
+ if ((G = Z.context) != null && G.open && !Z.context.dataRef.current.__outsidePressBubbles) {
3896
+ K = !1;
3899
3897
  return;
3900
3898
  }
3901
- }), !G)
3899
+ }), !K)
3902
3900
  return;
3903
3901
  }
3904
- r(!1, b, "outside-press");
3905
- }), W = we((b) => {
3902
+ r(!1, y, "outside-press");
3903
+ }), H = we((y) => {
3906
3904
  var M;
3907
- const U = () => {
3908
- var I;
3909
- L(b), (I = Ie(b)) == null || I.removeEventListener(c, U);
3905
+ const Y = () => {
3906
+ var k;
3907
+ D(y), (k = Ie(y)) == null || k.removeEventListener(c, Y);
3910
3908
  };
3911
- (M = Ie(b)) == null || M.addEventListener(c, U);
3909
+ (M = Ie(y)) == null || M.addEventListener(c, Y);
3912
3910
  });
3913
3911
  x.useEffect(() => {
3914
3912
  if (!n || !s)
3915
3913
  return;
3916
- i.current.__escapeKeyBubbles = O, i.current.__outsidePressBubbles = D;
3917
- let b = -1;
3918
- function M(y) {
3919
- r(!1, y, "ancestor-scroll");
3914
+ i.current.__escapeKeyBubbles = _, i.current.__outsidePressBubbles = I;
3915
+ let y = -1;
3916
+ function M(B) {
3917
+ r(!1, B, "ancestor-scroll");
3920
3918
  }
3921
- function U() {
3922
- window.clearTimeout(b), A.current = !0;
3919
+ function Y() {
3920
+ window.clearTimeout(y), P.current = !0;
3923
3921
  }
3924
- function I() {
3925
- b = window.setTimeout(
3922
+ function k() {
3923
+ y = window.setTimeout(
3926
3924
  () => {
3927
- A.current = !1;
3925
+ P.current = !1;
3928
3926
  },
3929
3927
  // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
3930
3928
  // Only apply to WebKit for the test to remain 0ms.
@@ -3932,37 +3930,37 @@ function Qa(e, t) {
3932
3930
  );
3933
3931
  }
3934
3932
  const S = be(o.floating);
3935
- u && (S.addEventListener("keydown", k ? P : N, k), S.addEventListener("compositionstart", U), S.addEventListener("compositionend", I)), T && S.addEventListener(c, C ? W : L, C);
3936
- let j = [];
3937
- return a && (se(o.domReference) && (j = ze(o.domReference)), se(o.floating) && (j = j.concat(ze(o.floating))), !se(o.reference) && o.reference && o.reference.contextElement && (j = j.concat(ze(o.reference.contextElement)))), j = j.filter((y) => {
3938
- var $;
3939
- return y !== (($ = S.defaultView) == null ? void 0 : $.visualViewport);
3940
- }), j.forEach((y) => {
3941
- y.addEventListener("scroll", M, {
3933
+ u && (S.addEventListener("keydown", N ? A : j, N), S.addEventListener("compositionstart", Y), S.addEventListener("compositionend", k)), T && S.addEventListener(c, C ? H : D, C);
3934
+ let F = [];
3935
+ return a && (ie(o.domReference) && (F = ze(o.domReference)), ie(o.floating) && (F = F.concat(ze(o.floating))), !ie(o.reference) && o.reference && o.reference.contextElement && (F = F.concat(ze(o.reference.contextElement)))), F = F.filter((B) => {
3936
+ var b;
3937
+ return B !== ((b = S.defaultView) == null ? void 0 : b.visualViewport);
3938
+ }), F.forEach((B) => {
3939
+ B.addEventListener("scroll", M, {
3942
3940
  passive: !0
3943
3941
  });
3944
3942
  }), () => {
3945
- u && (S.removeEventListener("keydown", k ? P : N, k), S.removeEventListener("compositionstart", U), S.removeEventListener("compositionend", I)), T && S.removeEventListener(c, C ? W : L, C), j.forEach((y) => {
3946
- y.removeEventListener("scroll", M);
3947
- }), window.clearTimeout(b);
3943
+ u && (S.removeEventListener("keydown", N ? A : j, N), S.removeEventListener("compositionstart", Y), S.removeEventListener("compositionend", k)), T && S.removeEventListener(c, C ? H : D, C), F.forEach((B) => {
3944
+ B.removeEventListener("scroll", M);
3945
+ }), window.clearTimeout(y);
3948
3946
  };
3949
- }, [i, o, u, T, c, n, r, a, s, O, D, N, k, P, L, C, W]), x.useEffect(() => {
3947
+ }, [i, o, u, T, c, n, r, a, s, _, I, j, N, A, D, C, H]), x.useEffect(() => {
3950
3948
  i.current.insideReactTree = !1;
3951
3949
  }, [i, T, c]);
3952
- const Y = x.useMemo(() => ({
3953
- onKeyDown: N,
3950
+ const U = x.useMemo(() => ({
3951
+ onKeyDown: j,
3954
3952
  ...p && {
3955
- [Ja[f]]: (b) => {
3956
- r(!1, b.nativeEvent, "reference-press");
3953
+ [Ja[f]]: (y) => {
3954
+ r(!1, y.nativeEvent, "reference-press");
3957
3955
  },
3958
3956
  ...f !== "click" && {
3959
- onClick(b) {
3960
- r(!1, b.nativeEvent, "reference-press");
3957
+ onClick(y) {
3958
+ r(!1, y.nativeEvent, "reference-press");
3961
3959
  }
3962
3960
  }
3963
3961
  }
3964
- }), [N, r, p, f]), F = x.useMemo(() => ({
3965
- onKeyDown: N,
3962
+ }), [j, r, p, f]), $ = x.useMemo(() => ({
3963
+ onKeyDown: j,
3966
3964
  onMouseDown() {
3967
3965
  R.current = !0;
3968
3966
  },
@@ -3972,11 +3970,11 @@ function Qa(e, t) {
3972
3970
  [Za[c]]: () => {
3973
3971
  i.current.insideReactTree = !0;
3974
3972
  }
3975
- }), [N, c, i]);
3973
+ }), [j, c, i]);
3976
3974
  return x.useMemo(() => s ? {
3977
- reference: Y,
3978
- floating: F
3979
- } : {}, [s, Y, F]);
3975
+ reference: U,
3976
+ floating: $
3977
+ } : {}, [s, U, $]);
3980
3978
  }
3981
3979
  function eu(e) {
3982
3980
  const {
@@ -3986,7 +3984,7 @@ function eu(e) {
3986
3984
  } = e, o = Ot(), i = x.useRef({}), [s] = x.useState(() => Bo()), u = dt() != null;
3987
3985
  if (process.env.NODE_ENV !== "production") {
3988
3986
  const g = r.reference;
3989
- g && !se(g) && Aa("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
3987
+ g && !ie(g) && Aa("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
3990
3988
  }
3991
3989
  const [l, c] = x.useState(r.reference), p = we((g, v, h) => {
3992
3990
  i.current.openEvent = g ? v : void 0, s.emit("openchange", {
@@ -4024,7 +4022,7 @@ function tu(e) {
4024
4022
  ...e.elements
4025
4023
  }
4026
4024
  }), r = e.rootContext || n, o = r.elements, [i, s] = x.useState(null), [u, l] = x.useState(null), p = o?.domReference || i, f = x.useRef(null), a = _t();
4027
- ge(() => {
4025
+ de(() => {
4028
4026
  p && (f.current = p);
4029
4027
  }, [p]);
4030
4028
  const g = ma({
@@ -4035,18 +4033,18 @@ function tu(e) {
4035
4033
  reference: u
4036
4034
  }
4037
4035
  }
4038
- }), v = x.useCallback((O) => {
4039
- const D = se(O) ? {
4040
- getBoundingClientRect: () => O.getBoundingClientRect(),
4041
- getClientRects: () => O.getClientRects(),
4042
- contextElement: O
4043
- } : O;
4044
- l(D), g.refs.setReference(D);
4045
- }, [g.refs]), h = x.useCallback((O) => {
4046
- (se(O) || O === null) && (f.current = O, s(O)), (se(g.refs.reference.current) || g.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
4036
+ }), v = x.useCallback((_) => {
4037
+ const I = ie(_) ? {
4038
+ getBoundingClientRect: () => _.getBoundingClientRect(),
4039
+ getClientRects: () => _.getClientRects(),
4040
+ contextElement: _
4041
+ } : _;
4042
+ l(I), g.refs.setReference(I);
4043
+ }, [g.refs]), h = x.useCallback((_) => {
4044
+ (ie(_) || _ === null) && (f.current = _, s(_)), (ie(g.refs.reference.current) || g.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
4047
4045
  // `null` to support `positionReference` + an unstable `reference`
4048
4046
  // callback ref.
4049
- O !== null && !se(O)) && g.refs.setReference(O);
4047
+ _ !== null && !ie(_)) && g.refs.setReference(_);
4050
4048
  }, [g.refs]), E = x.useMemo(() => ({
4051
4049
  ...g.refs,
4052
4050
  setReference: h,
@@ -4062,10 +4060,10 @@ function tu(e) {
4062
4060
  elements: T,
4063
4061
  nodeId: t
4064
4062
  }), [g, E, T, t, r]);
4065
- return ge(() => {
4063
+ return de(() => {
4066
4064
  r.dataRef.current.floatingContext = R;
4067
- const O = a?.nodesRef.current.find((D) => D.id === t);
4068
- O && (O.context = R);
4065
+ const _ = a?.nodesRef.current.find((I) => I.id === t);
4066
+ _ && (_.context = R);
4069
4067
  }), x.useMemo(() => ({
4070
4068
  ...g,
4071
4069
  context: R,
@@ -4092,7 +4090,7 @@ function nu(e, t) {
4092
4090
  if (!u) return;
4093
4091
  const g = Re(s.domReference);
4094
4092
  function v() {
4095
- !n && fe(s.domReference) && s.domReference === Ve(be(s.domReference)) && (c.current = !0);
4093
+ !n && le(s.domReference) && s.domReference === Ve(be(s.domReference)) && (c.current = !0);
4096
4094
  }
4097
4095
  function h() {
4098
4096
  f.current = !0;
@@ -4124,7 +4122,7 @@ function nu(e, t) {
4124
4122
  onFocus(g) {
4125
4123
  if (c.current) return;
4126
4124
  const v = Ie(g.nativeEvent);
4127
- if (l && se(v)) {
4125
+ if (l && ie(v)) {
4128
4126
  if (Cn() && !g.relatedTarget) {
4129
4127
  if (!f.current && !Xn(v))
4130
4128
  return;
@@ -4135,7 +4133,7 @@ function nu(e, t) {
4135
4133
  },
4136
4134
  onBlur(g) {
4137
4135
  c.current = !1;
4138
- const v = g.relatedTarget, h = g.nativeEvent, E = se(v) && v.hasAttribute(et("focus-guard")) && v.getAttribute("data-type") === "outside";
4136
+ const v = g.relatedTarget, h = g.nativeEvent, E = ie(v) && v.hasAttribute(et("focus-guard")) && v.getAttribute("data-type") === "outside";
4139
4137
  p.current = window.setTimeout(() => {
4140
4138
  var T;
4141
4139
  const R = Ve(s.domReference ? s.domReference.ownerDocument : document);
@@ -4255,12 +4253,12 @@ function iu(e, t) {
4255
4253
  };
4256
4254
  }, [a, f, p, l]), T = x.useCallback((R) => {
4257
4255
  let {
4258
- active: O,
4259
- selected: D
4256
+ active: _,
4257
+ selected: I
4260
4258
  } = R;
4261
- const k = {
4259
+ const N = {
4262
4260
  role: "option",
4263
- ...O && {
4261
+ ..._ && {
4264
4262
  id: f + "-fui-option"
4265
4263
  }
4266
4264
  };
@@ -4268,8 +4266,8 @@ function iu(e, t) {
4268
4266
  case "select":
4269
4267
  case "combobox":
4270
4268
  return {
4271
- ...k,
4272
- "aria-selected": D
4269
+ ...N,
4270
+ "aria-selected": I
4273
4271
  };
4274
4272
  }
4275
4273
  return {};
@@ -4303,7 +4301,7 @@ function cu(e, t) {
4303
4301
  } = e, {
4304
4302
  duration: o = 250
4305
4303
  } = t, s = (typeof o == "number" ? o : o.close) || 0, [u, l] = x.useState("unmounted"), c = su(n, s);
4306
- return !c && u === "close" && l("unmounted"), ge(() => {
4304
+ return !c && u === "close" && l("unmounted"), de(() => {
4307
4305
  if (r) {
4308
4306
  if (n) {
4309
4307
  l("initial");
@@ -4344,28 +4342,28 @@ function au(e, t) {
4344
4342
  status: E
4345
4343
  } = cu(e, {
4346
4344
  duration: s
4347
- }), T = Me(n), R = Me(r), O = Me(o), D = Me(i);
4348
- return ge(() => {
4349
- const k = it(T.current, c), C = it(O.current, c), A = it(D.current, c), N = it(R.current, c) || Object.keys(k).reduce((P, L) => (P[L] = "", P), {});
4350
- if (E === "initial" && v((P) => ({
4351
- transitionProperty: P.transitionProperty,
4352
- ...A,
4353
- ...k
4345
+ }), T = Me(n), R = Me(r), _ = Me(o), I = Me(i);
4346
+ return de(() => {
4347
+ const N = it(T.current, c), C = it(_.current, c), P = it(I.current, c), j = it(R.current, c) || Object.keys(N).reduce((A, D) => (A[D] = "", A), {});
4348
+ if (E === "initial" && v((A) => ({
4349
+ transitionProperty: A.transitionProperty,
4350
+ ...P,
4351
+ ...N
4354
4352
  })), E === "open" && v({
4355
- transitionProperty: Object.keys(N).map(ro).join(","),
4353
+ transitionProperty: Object.keys(j).map(ro).join(","),
4356
4354
  transitionDuration: f + "ms",
4357
- ...A,
4358
- ...N
4355
+ ...P,
4356
+ ...j
4359
4357
  }), E === "close") {
4360
- const P = C || k;
4358
+ const A = C || N;
4361
4359
  v({
4362
- transitionProperty: Object.keys(P).map(ro).join(","),
4360
+ transitionProperty: Object.keys(A).map(ro).join(","),
4363
4361
  transitionDuration: a + "ms",
4364
- ...A,
4365
- ...P
4362
+ ...P,
4363
+ ...A
4366
4364
  });
4367
4365
  }
4368
- }, [a, O, T, R, D, f, E, c]), {
4366
+ }, [a, _, T, R, I, f, E, c]), {
4369
4367
  isMounted: h,
4370
4368
  styles: g
4371
4369
  };
@@ -4416,71 +4414,71 @@ function lu(e) {
4416
4414
  nodeId: T,
4417
4415
  tree: R
4418
4416
  } = f;
4419
- return function(D) {
4420
- function k() {
4417
+ return function(I) {
4418
+ function N() {
4421
4419
  xe(o), E();
4422
4420
  }
4423
4421
  if (xe(o), !h.domReference || !h.floating || v == null || a == null || g == null)
4424
4422
  return;
4425
4423
  const {
4426
4424
  clientX: C,
4427
- clientY: A
4428
- } = D, N = [C, A], P = ka(D), L = D.type === "mouseleave", W = On(h.floating, P), Y = On(h.domReference, P), F = h.domReference.getBoundingClientRect(), b = h.floating.getBoundingClientRect(), M = v.split("-")[0], U = a > b.right - b.width / 2, I = g > b.bottom - b.height / 2, S = uu(N, F), j = b.width > F.width, y = b.height > F.height, $ = (j ? F : b).left, H = (j ? F : b).right, _ = (y ? F : b).top, Q = (y ? F : b).bottom;
4429
- if (W && (i = !0, !L))
4425
+ clientY: P
4426
+ } = I, j = [C, P], A = ka(I), D = I.type === "mouseleave", H = On(h.floating, A), U = On(h.domReference, A), $ = h.domReference.getBoundingClientRect(), y = h.floating.getBoundingClientRect(), M = v.split("-")[0], Y = a > y.right - y.width / 2, k = g > y.bottom - y.height / 2, S = uu(j, $), F = y.width > $.width, B = y.height > $.height, b = (F ? $ : y).left, L = (F ? $ : y).right, O = (B ? $ : y).top, X = (B ? $ : y).bottom;
4427
+ if (H && (i = !0, !D))
4430
4428
  return;
4431
- if (Y && (i = !1), Y && !L) {
4429
+ if (U && (i = !1), U && !D) {
4432
4430
  i = !0;
4433
4431
  return;
4434
4432
  }
4435
- if (L && se(D.relatedTarget) && On(h.floating, D.relatedTarget) || R && Go(R.nodesRef.current, T).length)
4433
+ if (D && ie(I.relatedTarget) && On(h.floating, I.relatedTarget) || R && Go(R.nodesRef.current, T).length)
4436
4434
  return;
4437
- if (M === "top" && g >= F.bottom - 1 || M === "bottom" && g <= F.top + 1 || M === "left" && a >= F.right - 1 || M === "right" && a <= F.left + 1)
4438
- return k();
4439
- let G = [];
4435
+ if (M === "top" && g >= $.bottom - 1 || M === "bottom" && g <= $.top + 1 || M === "left" && a >= $.right - 1 || M === "right" && a <= $.left + 1)
4436
+ return N();
4437
+ let K = [];
4440
4438
  switch (M) {
4441
4439
  case "top":
4442
- G = [[$, F.top + 1], [$, b.bottom - 1], [H, b.bottom - 1], [H, F.top + 1]];
4440
+ K = [[b, $.top + 1], [b, y.bottom - 1], [L, y.bottom - 1], [L, $.top + 1]];
4443
4441
  break;
4444
4442
  case "bottom":
4445
- G = [[$, b.top + 1], [$, F.bottom - 1], [H, F.bottom - 1], [H, b.top + 1]];
4443
+ K = [[b, y.top + 1], [b, $.bottom - 1], [L, $.bottom - 1], [L, y.top + 1]];
4446
4444
  break;
4447
4445
  case "left":
4448
- G = [[b.right - 1, Q], [b.right - 1, _], [F.left + 1, _], [F.left + 1, Q]];
4446
+ K = [[y.right - 1, X], [y.right - 1, O], [$.left + 1, O], [$.left + 1, X]];
4449
4447
  break;
4450
4448
  case "right":
4451
- G = [[F.right - 1, Q], [F.right - 1, _], [b.left + 1, _], [b.left + 1, Q]];
4449
+ K = [[$.right - 1, X], [$.right - 1, O], [y.left + 1, O], [y.left + 1, X]];
4452
4450
  break;
4453
4451
  }
4454
- function K(ne) {
4455
- let [B, X] = ne;
4452
+ function Z(G) {
4453
+ let [W, J] = G;
4456
4454
  switch (M) {
4457
4455
  case "top": {
4458
- const oe = [j ? B + t / 2 : U ? B + t * 4 : B - t * 4, X + t + 1], le = [j ? B - t / 2 : U ? B + t * 4 : B - t * 4, X + t + 1], q = [[b.left, U || j ? b.bottom - t : b.top], [b.right, U ? j ? b.bottom - t : b.top : b.bottom - t]];
4459
- return [oe, le, ...q];
4456
+ const se = [F ? W + t / 2 : Y ? W + t * 4 : W - t * 4, J + t + 1], ge = [F ? W - t / 2 : Y ? W + t * 4 : W - t * 4, J + t + 1], q = [[y.left, Y || F ? y.bottom - t : y.top], [y.right, Y ? F ? y.bottom - t : y.top : y.bottom - t]];
4457
+ return [se, ge, ...q];
4460
4458
  }
4461
4459
  case "bottom": {
4462
- const oe = [j ? B + t / 2 : U ? B + t * 4 : B - t * 4, X - t], le = [j ? B - t / 2 : U ? B + t * 4 : B - t * 4, X - t], q = [[b.left, U || j ? b.top + t : b.bottom], [b.right, U ? j ? b.top + t : b.bottom : b.top + t]];
4463
- return [oe, le, ...q];
4460
+ const se = [F ? W + t / 2 : Y ? W + t * 4 : W - t * 4, J - t], ge = [F ? W - t / 2 : Y ? W + t * 4 : W - t * 4, J - t], q = [[y.left, Y || F ? y.top + t : y.bottom], [y.right, Y ? F ? y.top + t : y.bottom : y.top + t]];
4461
+ return [se, ge, ...q];
4464
4462
  }
4465
4463
  case "left": {
4466
- const oe = [B + t + 1, y ? X + t / 2 : I ? X + t * 4 : X - t * 4], le = [B + t + 1, y ? X - t / 2 : I ? X + t * 4 : X - t * 4];
4467
- return [...[[I || y ? b.right - t : b.left, b.top], [I ? y ? b.right - t : b.left : b.right - t, b.bottom]], oe, le];
4464
+ const se = [W + t + 1, B ? J + t / 2 : k ? J + t * 4 : J - t * 4], ge = [W + t + 1, B ? J - t / 2 : k ? J + t * 4 : J - t * 4];
4465
+ return [...[[k || B ? y.right - t : y.left, y.top], [k ? B ? y.right - t : y.left : y.right - t, y.bottom]], se, ge];
4468
4466
  }
4469
4467
  case "right": {
4470
- const oe = [B - t, y ? X + t / 2 : I ? X + t * 4 : X - t * 4], le = [B - t, y ? X - t / 2 : I ? X + t * 4 : X - t * 4], q = [[I || y ? b.left + t : b.right, b.top], [I ? y ? b.left + t : b.right : b.left + t, b.bottom]];
4471
- return [oe, le, ...q];
4468
+ const se = [W - t, B ? J + t / 2 : k ? J + t * 4 : J - t * 4], ge = [W - t, B ? J - t / 2 : k ? J + t * 4 : J - t * 4], q = [[k || B ? y.left + t : y.right, y.top], [k ? B ? y.left + t : y.right : y.left + t, y.bottom]];
4469
+ return [se, ge, ...q];
4472
4470
  }
4473
4471
  }
4474
4472
  }
4475
- if (!oo([C, A], G)) {
4473
+ if (!oo([C, P], K)) {
4476
4474
  if (i && !S)
4477
- return k();
4478
- if (!L && r) {
4479
- const ne = c(D.clientX, D.clientY);
4480
- if (ne !== null && ne < 0.1)
4481
- return k();
4475
+ return N();
4476
+ if (!D && r) {
4477
+ const G = c(I.clientX, I.clientY);
4478
+ if (G !== null && G < 0.1)
4479
+ return N();
4482
4480
  }
4483
- oo([C, A], K([a, g])) ? !i && r && (o.current = window.setTimeout(k, 40)) : k();
4481
+ oo([C, P], Z([a, g])) ? !i && r && (o.current = window.setTimeout(N, 40)) : N();
4484
4482
  }
4485
4483
  };
4486
4484
  };
@@ -4546,73 +4544,73 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4546
4544
  shiftOptions: E,
4547
4545
  useArrow: T = !1,
4548
4546
  arrowOptions: R,
4549
- transitionOptions: O,
4550
- useAutoPlacement: D = !1,
4551
- autoPlacementOptions: k,
4547
+ transitionOptions: _,
4548
+ useAutoPlacement: I = !1,
4549
+ autoPlacementOptions: N,
4552
4550
  useAutoUpdate: C = !1,
4553
- autoUpdateOptions: A,
4554
- useAutoSize: N = !1,
4555
- minAcceptableWidth: P = 0,
4556
- minAcceptableHeight: L = 0,
4557
- maxAcceptableWidth: W,
4558
- maxAcceptableHeight: Y,
4559
- onOpen: F,
4560
- onClose: b
4551
+ autoUpdateOptions: P,
4552
+ useAutoSize: j = !1,
4553
+ minAcceptableWidth: A = 0,
4554
+ minAcceptableHeight: D = 0,
4555
+ maxAcceptableWidth: H,
4556
+ maxAcceptableHeight: U,
4557
+ onOpen: $,
4558
+ onClose: y
4561
4559
  }) => {
4562
- const { theme: M } = Un(), U = La(), [I, S] = $n(!1), j = Et(null), y = e && (c ?? I);
4560
+ const { theme: M } = Un(), Y = La(), [k, S] = $n(!1), F = Et(null), B = e && (c ?? k);
4563
4561
  qe(() => {
4564
- y && F?.();
4565
- }, [y]), Ps(e, (K) => {
4566
- K || S(!1);
4562
+ B && $?.();
4563
+ }, [B]), Ps(e, (Z) => {
4564
+ Z || S(!1);
4567
4565
  });
4568
- const $ = [];
4569
- f && $.push(va(a ?? M.spacings.base));
4570
- let H = null;
4571
- if (D ? $.push(xa(k)) : g && (H = ba({
4566
+ const b = [];
4567
+ f && b.push(va(a ?? M.spacings.base));
4568
+ let L = null;
4569
+ if (I ? b.push(xa(N)) : g && (L = ba({
4572
4570
  // https://floating-ui.com/docs/flip#combining-with-shift
4573
4571
  crossAxis: !1,
4574
4572
  fallbackStrategy: "bestFit",
4575
4573
  ...v
4576
- })), N) {
4577
- const K = wa({
4578
- apply({ elements: ne, rects: B, availableWidth: X, availableHeight: oe }) {
4579
- Object.assign(ne.floating.style, {
4580
- minWidth: `${Math.max(P, B.reference.width)}px`,
4581
- minHeight: `${Math.max(L, B.reference.height)}px`,
4582
- maxWidth: `${Math.min(X, W ?? 1 / 0)}px`,
4583
- maxHeight: `${Math.min(oe, Y ?? 1 / 0)}px`
4574
+ })), j) {
4575
+ const Z = wa({
4576
+ apply({ elements: G, rects: W, availableWidth: J, availableHeight: se }) {
4577
+ Object.assign(G.floating.style, {
4578
+ minWidth: `${Math.max(A, W.reference.width)}px`,
4579
+ minHeight: `${Math.max(D, W.reference.height)}px`,
4580
+ maxWidth: `${Math.min(J, H ?? 1 / 0)}px`,
4581
+ maxHeight: `${Math.min(se, U ?? 1 / 0)}px`
4584
4582
  });
4585
4583
  }
4586
4584
  });
4587
- H ? v?.fallbackStrategy === "initialPlacement" ? $.push(K, H) : $.push(H, K) : $.push(K);
4588
- } else H && $.push(H);
4589
- h && $.push(
4585
+ L ? v?.fallbackStrategy === "initialPlacement" ? b.push(Z, L) : b.push(L, Z) : b.push(Z);
4586
+ } else L && b.push(L);
4587
+ h && b.push(
4590
4588
  // https://floating-ui.com/docs/shift
4591
4589
  ya({
4592
4590
  padding: M.spacings.base,
4593
4591
  ...E
4594
4592
  })
4595
- ), T && $.push(
4593
+ ), T && b.push(
4596
4594
  Ra({
4597
- element: j,
4595
+ element: F,
4598
4596
  // https://floating-ui.com/docs/floatingarrow#arrow-does-not-avoid-rounded-corners
4599
4597
  padding: M.spacings.base,
4600
4598
  ...R
4601
4599
  })
4602
4600
  );
4603
- const _ = tu({
4604
- nodeId: U,
4605
- open: y,
4606
- middleware: $,
4607
- onOpenChange: (K, ne, B) => {
4608
- S(K), K || b?.(B, ne);
4601
+ const O = tu({
4602
+ nodeId: Y,
4603
+ open: B,
4604
+ middleware: b,
4605
+ onOpenChange: (Z, G, W) => {
4606
+ S(Z), Z || y?.(W, G);
4609
4607
  },
4610
4608
  // https://floating-ui.com/docs/usefloating#whileelementsmounted
4611
4609
  ...C && {
4612
- whileElementsMounted: (K, ne, B) => sa(K, ne, B, A)
4610
+ whileElementsMounted: (Z, G, W) => sa(Z, G, W, P)
4613
4611
  },
4614
4612
  ...p
4615
- }), Q = pu(_.context, {
4613
+ }), X = pu(O.context, {
4616
4614
  enabled: e,
4617
4615
  event: t,
4618
4616
  dismissOptions: n,
@@ -4622,17 +4620,17 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4622
4620
  clientPointsOptions: s,
4623
4621
  roleOptions: u,
4624
4622
  extraInteractions: l
4625
- }), G = au(_.context, {
4623
+ }), K = au(O.context, {
4626
4624
  duration: 250,
4627
- ...O
4625
+ ..._
4628
4626
  });
4629
4627
  return {
4630
- nodeId: U,
4631
- isOpen: y,
4632
- floating: _,
4633
- arrowRef: j,
4634
- interactions: Q,
4635
- transition: G
4628
+ nodeId: Y,
4629
+ isOpen: B,
4630
+ floating: O,
4631
+ arrowRef: F,
4632
+ interactions: X,
4633
+ transition: K
4636
4634
  };
4637
4635
  }, qo = () => {
4638
4636
  const e = Zt(
@@ -4656,7 +4654,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4656
4654
  }) => {
4657
4655
  const { useArrow: p, onClose: f } = c, { nodeId: a, floating: g, isOpen: v, arrowRef: h, interactions: E, transition: T } = mu(c), R = Ht(() => {
4658
4656
  f?.("escape-key");
4659
- }, [f]), O = Rt(
4657
+ }, [f]), _ = Rt(
4660
4658
  () => ({
4661
4659
  context: l,
4662
4660
  floatingContext: g.context
@@ -4670,8 +4668,8 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4670
4668
  ...E.getReferenceProps(),
4671
4669
  ...t,
4672
4670
  "data-testid": "honey-popup",
4673
- children: /* @__PURE__ */ z.jsxs(mo, { value: O, children: [
4674
- Pn(e, O),
4671
+ children: /* @__PURE__ */ z.jsxs(mo, { value: _, children: [
4672
+ Pn(e, _),
4675
4673
  /* @__PURE__ */ z.jsx(Ma, { id: a, children: T.isMounted && /* @__PURE__ */ z.jsx(gu, { ...s, children: /* @__PURE__ */ z.jsx(
4676
4674
  za,
4677
4675
  {
@@ -4709,7 +4707,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4709
4707
  ...i
4710
4708
  }
4711
4709
  ),
4712
- Pn(n, O)
4710
+ Pn(n, _)
4713
4711
  ]
4714
4712
  }
4715
4713
  )
@@ -4881,16 +4879,16 @@ bt.exports;
4881
4879
  var so;
4882
4880
  function yu() {
4883
4881
  return so || (so = 1, (function(e, t) {
4884
- var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, s = 9007199254740991, u = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", p = "[object Boolean]", f = "[object Date]", a = "[object Error]", g = "[object Function]", v = "[object GeneratorFunction]", h = "[object Map]", E = "[object Number]", T = "[object Null]", R = "[object Object]", O = "[object Proxy]", D = "[object RegExp]", k = "[object Set]", C = "[object String]", A = "[object Undefined]", N = "[object WeakMap]", P = "[object ArrayBuffer]", L = "[object DataView]", W = "[object Float32Array]", Y = "[object Float64Array]", F = "[object Int8Array]", b = "[object Int16Array]", M = "[object Int32Array]", U = "[object Uint8Array]", I = "[object Uint8ClampedArray]", S = "[object Uint16Array]", j = "[object Uint32Array]", y = /[\\^$.*+?()[\]{}|]/g, $ = /^\[object .+?Constructor\]$/, H = /^(?:0|[1-9]\d*)$/, _ = {};
4885
- _[W] = _[Y] = _[F] = _[b] = _[M] = _[U] = _[I] = _[S] = _[j] = !0, _[u] = _[l] = _[P] = _[p] = _[L] = _[f] = _[a] = _[g] = _[h] = _[E] = _[R] = _[D] = _[k] = _[C] = _[N] = !1;
4886
- var Q = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, G = typeof self == "object" && self && self.Object === Object && self, K = Q || G || Function("return this")(), ne = t && !t.nodeType && t, B = ne && !0 && e && !e.nodeType && e, X = B && B.exports === ne, oe = X && Q.process, le = (function() {
4882
+ var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, s = 9007199254740991, u = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", p = "[object Boolean]", f = "[object Date]", a = "[object Error]", g = "[object Function]", v = "[object GeneratorFunction]", h = "[object Map]", E = "[object Number]", T = "[object Null]", R = "[object Object]", _ = "[object Proxy]", I = "[object RegExp]", N = "[object Set]", C = "[object String]", P = "[object Undefined]", j = "[object WeakMap]", A = "[object ArrayBuffer]", D = "[object DataView]", H = "[object Float32Array]", U = "[object Float64Array]", $ = "[object Int8Array]", y = "[object Int16Array]", M = "[object Int32Array]", Y = "[object Uint8Array]", k = "[object Uint8ClampedArray]", S = "[object Uint16Array]", F = "[object Uint32Array]", B = /[\\^$.*+?()[\]{}|]/g, b = /^\[object .+?Constructor\]$/, L = /^(?:0|[1-9]\d*)$/, O = {};
4883
+ O[H] = O[U] = O[$] = O[y] = O[M] = O[Y] = O[k] = O[S] = O[F] = !0, O[u] = O[l] = O[A] = O[p] = O[D] = O[f] = O[a] = O[g] = O[h] = O[E] = O[R] = O[I] = O[N] = O[C] = O[j] = !1;
4884
+ var X = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, K = typeof self == "object" && self && self.Object === Object && self, Z = X || K || Function("return this")(), G = t && !t.nodeType && t, W = G && !0 && e && !e.nodeType && e, J = W && W.exports === G, se = J && X.process, ge = (function() {
4887
4885
  try {
4888
- var d = B && B.require && B.require("util").types;
4889
- return d || oe && oe.binding && oe.binding("util");
4886
+ var d = W && W.require && W.require("util").types;
4887
+ return d || se && se.binding && se.binding("util");
4890
4888
  } catch {
4891
4889
  }
4892
- })(), q = le && le.isTypedArray;
4893
- function ee(d, m, w) {
4890
+ })(), q = ge && ge.isTypedArray;
4891
+ function te(d, m, w) {
4894
4892
  switch (w.length) {
4895
4893
  case 0:
4896
4894
  return d.call(m);
@@ -4903,7 +4901,7 @@ function yu() {
4903
4901
  }
4904
4902
  return d.apply(m, w);
4905
4903
  }
4906
- function J(d, m) {
4904
+ function Q(d, m) {
4907
4905
  for (var w = -1, V = Array(d); ++w < d; )
4908
4906
  V[w] = m(w);
4909
4907
  return V;
@@ -4913,7 +4911,7 @@ function yu() {
4913
4911
  return d(m);
4914
4912
  };
4915
4913
  }
4916
- function de(d, m) {
4914
+ function fe(d, m) {
4917
4915
  return d?.[m];
4918
4916
  }
4919
4917
  function re(d, m) {
@@ -4921,12 +4919,12 @@ function yu() {
4921
4919
  return d(m(w));
4922
4920
  };
4923
4921
  }
4924
- var Ce = Array.prototype, Ee = Function.prototype, pe = Object.prototype, Ae = K["__core-js_shared__"], Te = Ee.toString, me = pe.hasOwnProperty, Pe = (function() {
4922
+ var Ce = Array.prototype, Ee = Function.prototype, pe = Object.prototype, Ae = Z["__core-js_shared__"], Te = Ee.toString, me = pe.hasOwnProperty, Pe = (function() {
4925
4923
  var d = /[^.]+$/.exec(Ae && Ae.keys && Ae.keys.IE_PROTO || "");
4926
4924
  return d ? "Symbol(src)_1." + d : "";
4927
4925
  })(), gt = pe.toString, Jo = Te.call(Object), Zo = RegExp(
4928
- "^" + Te.call(me).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4929
- ), Ct = X ? K.Buffer : void 0, Qn = K.Symbol, er = K.Uint8Array;
4926
+ "^" + Te.call(me).replace(B, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4927
+ ), Ct = J ? Z.Buffer : void 0, Qn = Z.Symbol, er = Z.Uint8Array;
4930
4928
  Ct && Ct.allocUnsafe;
4931
4929
  var tr = re(Object.getPrototypeOf, Object), nr = Object.create, Qo = pe.propertyIsEnumerable, ei = Ce.splice, Ke = Qn ? Qn.toStringTag : void 0, At = (function() {
4932
4930
  try {
@@ -4934,7 +4932,7 @@ function yu() {
4934
4932
  return d({}, "", {}), d;
4935
4933
  } catch {
4936
4934
  }
4937
- })(), ti = Ct ? Ct.isBuffer : void 0, rr = Math.max, ni = Date.now, or = fn(K, "Map"), pt = fn(Object, "create"), ri = /* @__PURE__ */ (function() {
4935
+ })(), ti = Ct ? Ct.isBuffer : void 0, rr = Math.max, ni = Date.now, or = fn(Z, "Map"), pt = fn(Object, "create"), ri = /* @__PURE__ */ (function() {
4938
4936
  function d() {
4939
4937
  }
4940
4938
  return function(m) {
@@ -5065,14 +5063,14 @@ function yu() {
5065
5063
  }
5066
5064
  rt.prototype.clear = bi, rt.prototype.delete = wi, rt.prototype.get = xi, rt.prototype.has = Ri, rt.prototype.set = Ei;
5067
5065
  function Ti(d, m) {
5068
- var w = pn(d), V = !w && gn(d), Z = !w && !V && ur(d), ie = !w && !V && !Z && fr(d), ce = w || V || Z || ie, te = ce ? J(d.length, String) : [], ae = te.length;
5066
+ var w = pn(d), V = !w && gn(d), ee = !w && !V && ur(d), oe = !w && !V && !ee && fr(d), ce = w || V || ee || oe, ne = ce ? Q(d.length, String) : [], ae = ne.length;
5069
5067
  for (var Le in d)
5070
5068
  ce && // Safari 9 has enumerable `arguments.length` in strict mode.
5071
5069
  (Le == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5072
- Z && (Le == "offset" || Le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5073
- ie && (Le == "buffer" || Le == "byteLength" || Le == "byteOffset") || // Skip index properties.
5074
- cr(Le, ae)) || te.push(Le);
5075
- return te;
5070
+ ee && (Le == "offset" || Le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5071
+ oe && (Le == "buffer" || Le == "byteLength" || Le == "byteOffset") || // Skip index properties.
5072
+ cr(Le, ae)) || ne.push(Le);
5073
+ return ne;
5076
5074
  }
5077
5075
  function un(d, m, w) {
5078
5076
  (w !== void 0 && !Dt(d[m], w) || w === void 0 && !(m in d)) && ln(d, m, w);
@@ -5097,7 +5095,7 @@ function yu() {
5097
5095
  }
5098
5096
  var Oi = $i();
5099
5097
  function Lt(d) {
5100
- return d == null ? d === void 0 ? A : T : Ke && Ke in Object(d) ? Hi(d) : zi(d);
5098
+ return d == null ? d === void 0 ? P : T : Ke && Ke in Object(d) ? Hi(d) : zi(d);
5101
5099
  }
5102
5100
  function ir(d) {
5103
5101
  return mt(d) && Lt(d) == u;
@@ -5105,11 +5103,11 @@ function yu() {
5105
5103
  function _i(d) {
5106
5104
  if (!Ze(d) || Ui(d))
5107
5105
  return !1;
5108
- var m = hn(d) ? Zo : $;
5106
+ var m = hn(d) ? Zo : b;
5109
5107
  return m.test(Ki(d));
5110
5108
  }
5111
5109
  function Ci(d) {
5112
- return mt(d) && lr(d.length) && !!_[Lt(d)];
5110
+ return mt(d) && lr(d.length) && !!O[Lt(d)];
5113
5111
  }
5114
5112
  function Ai(d) {
5115
5113
  if (!Ze(d))
@@ -5119,28 +5117,28 @@ function yu() {
5119
5117
  V == "constructor" && (m || !me.call(d, V)) || w.push(V);
5120
5118
  return w;
5121
5119
  }
5122
- function sr(d, m, w, V, Z) {
5123
- d !== m && Oi(m, function(ie, ce) {
5124
- if (Z || (Z = new rt()), Ze(ie))
5125
- Pi(d, m, ce, w, sr, V, Z);
5120
+ function sr(d, m, w, V, ee) {
5121
+ d !== m && Oi(m, function(oe, ce) {
5122
+ if (ee || (ee = new rt()), Ze(oe))
5123
+ Pi(d, m, ce, w, sr, V, ee);
5126
5124
  else {
5127
- var te = V ? V(dn(d, ce), ie, ce + "", d, m, Z) : void 0;
5128
- te === void 0 && (te = ie), un(d, ce, te);
5125
+ var ne = V ? V(dn(d, ce), oe, ce + "", d, m, ee) : void 0;
5126
+ ne === void 0 && (ne = oe), un(d, ce, ne);
5129
5127
  }
5130
5128
  }, dr);
5131
5129
  }
5132
- function Pi(d, m, w, V, Z, ie, ce) {
5133
- var te = dn(d, w), ae = dn(m, w), Le = ce.get(ae);
5130
+ function Pi(d, m, w, V, ee, oe, ce) {
5131
+ var ne = dn(d, w), ae = dn(m, w), Le = ce.get(ae);
5134
5132
  if (Le) {
5135
5133
  un(d, w, Le);
5136
5134
  return;
5137
5135
  }
5138
- var Se = ie ? ie(te, ae, w + "", d, m, ce) : void 0, ht = Se === void 0;
5136
+ var Se = oe ? oe(ne, ae, w + "", d, m, ce) : void 0, ht = Se === void 0;
5139
5137
  if (ht) {
5140
5138
  var vn = pn(ae), yn = !vn && ur(ae), pr = !vn && !yn && fr(ae);
5141
- Se = ae, vn || yn || pr ? pn(te) ? Se = te : Ji(te) ? Se = Ni(te) : yn ? (ht = !1, Se = Di(ae)) : pr ? (ht = !1, Se = ki(ae)) : Se = [] : Zi(ae) || gn(ae) ? (Se = te, gn(te) ? Se = Qi(te) : (!Ze(te) || hn(te)) && (Se = Bi(ae))) : ht = !1;
5139
+ Se = ae, vn || yn || pr ? pn(ne) ? Se = ne : Ji(ne) ? Se = Ni(ne) : yn ? (ht = !1, Se = Di(ae)) : pr ? (ht = !1, Se = ki(ae)) : Se = [] : Zi(ae) || gn(ae) ? (Se = ne, gn(ne) ? Se = Qi(ne) : (!Ze(ne) || hn(ne)) && (Se = Bi(ae))) : ht = !1;
5142
5140
  }
5143
- ht && (ce.set(ae, Se), Z(Se, ae, V, ie, ce), ce.delete(ae)), un(d, w, Se);
5141
+ ht && (ce.set(ae, Se), ee(Se, ae, V, oe, ce), ce.delete(ae)), un(d, w, Se);
5144
5142
  }
5145
5143
  function Li(d, m) {
5146
5144
  return qi(Gi(d, m, gr), d + "");
@@ -5171,29 +5169,29 @@ function yu() {
5171
5169
  return m;
5172
5170
  }
5173
5171
  function ji(d, m, w, V) {
5174
- var Z = !w;
5172
+ var ee = !w;
5175
5173
  w || (w = {});
5176
- for (var ie = -1, ce = m.length; ++ie < ce; ) {
5177
- var te = m[ie], ae = void 0;
5178
- ae === void 0 && (ae = d[te]), Z ? ln(w, te, ae) : Si(w, te, ae);
5174
+ for (var oe = -1, ce = m.length; ++oe < ce; ) {
5175
+ var ne = m[oe], ae = void 0;
5176
+ ae === void 0 && (ae = d[ne]), ee ? ln(w, ne, ae) : Si(w, ne, ae);
5179
5177
  }
5180
5178
  return w;
5181
5179
  }
5182
5180
  function Fi(d) {
5183
5181
  return Li(function(m, w) {
5184
- var V = -1, Z = w.length, ie = Z > 1 ? w[Z - 1] : void 0, ce = Z > 2 ? w[2] : void 0;
5185
- for (ie = d.length > 3 && typeof ie == "function" ? (Z--, ie) : void 0, ce && Wi(w[0], w[1], ce) && (ie = Z < 3 ? void 0 : ie, Z = 1), m = Object(m); ++V < Z; ) {
5186
- var te = w[V];
5187
- te && d(m, te, V, ie);
5182
+ var V = -1, ee = w.length, oe = ee > 1 ? w[ee - 1] : void 0, ce = ee > 2 ? w[2] : void 0;
5183
+ for (oe = d.length > 3 && typeof oe == "function" ? (ee--, oe) : void 0, ce && Wi(w[0], w[1], ce) && (oe = ee < 3 ? void 0 : oe, ee = 1), m = Object(m); ++V < ee; ) {
5184
+ var ne = w[V];
5185
+ ne && d(m, ne, V, oe);
5188
5186
  }
5189
5187
  return m;
5190
5188
  });
5191
5189
  }
5192
5190
  function $i(d) {
5193
5191
  return function(m, w, V) {
5194
- for (var Z = -1, ie = Object(m), ce = V(m), te = ce.length; te--; ) {
5195
- var ae = ce[++Z];
5196
- if (w(ie[ae], ae, ie) === !1)
5192
+ for (var ee = -1, oe = Object(m), ce = V(m), ne = ce.length; ne--; ) {
5193
+ var ae = ce[++ee];
5194
+ if (w(oe[ae], ae, oe) === !1)
5197
5195
  break;
5198
5196
  }
5199
5197
  return m;
@@ -5204,7 +5202,7 @@ function yu() {
5204
5202
  return Vi(m) ? w[typeof m == "string" ? "string" : "hash"] : w.map;
5205
5203
  }
5206
5204
  function fn(d, m) {
5207
- var w = de(d, m);
5205
+ var w = fe(d, m);
5208
5206
  return _i(w) ? w : void 0;
5209
5207
  }
5210
5208
  function Hi(d) {
@@ -5214,15 +5212,15 @@ function yu() {
5214
5212
  var V = !0;
5215
5213
  } catch {
5216
5214
  }
5217
- var Z = gt.call(d);
5218
- return V && (m ? d[Ke] = w : delete d[Ke]), Z;
5215
+ var ee = gt.call(d);
5216
+ return V && (m ? d[Ke] = w : delete d[Ke]), ee;
5219
5217
  }
5220
5218
  function Bi(d) {
5221
5219
  return typeof d.constructor == "function" && !ar(d) ? ri(tr(d)) : {};
5222
5220
  }
5223
5221
  function cr(d, m) {
5224
5222
  var w = typeof d;
5225
- return m = m ?? s, !!m && (w == "number" || w != "symbol" && H.test(d)) && d > -1 && d % 1 == 0 && d < m;
5223
+ return m = m ?? s, !!m && (w == "number" || w != "symbol" && L.test(d)) && d > -1 && d % 1 == 0 && d < m;
5226
5224
  }
5227
5225
  function Wi(d, m, w) {
5228
5226
  if (!Ze(w))
@@ -5253,12 +5251,12 @@ function yu() {
5253
5251
  }
5254
5252
  function Gi(d, m, w) {
5255
5253
  return m = rr(m === void 0 ? d.length - 1 : m, 0), function() {
5256
- for (var V = arguments, Z = -1, ie = rr(V.length - m, 0), ce = Array(ie); ++Z < ie; )
5257
- ce[Z] = V[m + Z];
5258
- Z = -1;
5259
- for (var te = Array(m + 1); ++Z < m; )
5260
- te[Z] = V[Z];
5261
- return te[m] = w(ce), ee(d, this, te);
5254
+ for (var V = arguments, ee = -1, oe = rr(V.length - m, 0), ce = Array(oe); ++ee < oe; )
5255
+ ce[ee] = V[m + ee];
5256
+ ee = -1;
5257
+ for (var ne = Array(m + 1); ++ee < m; )
5258
+ ne[ee] = V[ee];
5259
+ return ne[m] = w(ce), te(d, this, ne);
5262
5260
  };
5263
5261
  }
5264
5262
  function dn(d, m) {
@@ -5269,8 +5267,8 @@ function yu() {
5269
5267
  function Xi(d) {
5270
5268
  var m = 0, w = 0;
5271
5269
  return function() {
5272
- var V = ni(), Z = i - (V - w);
5273
- if (w = V, Z > 0) {
5270
+ var V = ni(), ee = i - (V - w);
5271
+ if (w = V, ee > 0) {
5274
5272
  if (++m >= o)
5275
5273
  return arguments[0];
5276
5274
  } else
@@ -5310,7 +5308,7 @@ function yu() {
5310
5308
  if (!Ze(d))
5311
5309
  return !1;
5312
5310
  var m = Lt(d);
5313
- return m == g || m == v || m == c || m == O;
5311
+ return m == g || m == v || m == c || m == _;
5314
5312
  }
5315
5313
  function lr(d) {
5316
5314
  return typeof d == "number" && d > -1 && d % 1 == 0 && d <= s;